Skip to content

🎥 Make videos programmatically with React

oops

Jonny Burger965dbf7a05c0
diff --git a/packages/licensing/src/get-usage.d.ts b/packages/licensing/src/get-usage.d.ts
deleted file mode 100644
index 7398e8deae..0000000000
--- a/packages/licensing/src/get-usage.d.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-export type EventCount = {
- billable: number;
- failed: number;
- development: number;
-};
-export type GetUsageApiResponse = {
- success: true;
- cloudRenders: EventCount;
- webcodecConversions: EventCount;
-} | {
- success: false;
- error: string;
-};
-export type GetUsageResponse = {
- cloudRenders: EventCount;
- webcodecConversions: EventCount;
-};
-export declare const getUsage: ({ apiKey, since, }: {
- apiKey: string;
- since?: number | null | undefined;
-}) => Promise<GetUsageResponse>;
diff --git a/packages/licensing/src/index.d.ts b/packages/licensing/src/index.d.ts
deleted file mode 100644
index 644740873b..0000000000
--- a/packages/licensing/src/index.d.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-export { UsageEventClassification as Classification, RegisterUsageEventResponse, registerUsageEvent, } from './register-usage-event';
-export { EventCount, GetUsageResponse, getUsage } from './get-usage';
-export declare const LicensingInternals: {
- internalRegisterUsageEvent: ({ host, succeeded, event, isStill, isProduction, ...apiOrLicenseKey }: ({
- host: string | null;
- succeeded: boolean;
- event: "cloud-render" | "webcodec-conversion";
- } & ({
- apiKey: string | null;
- } | {
- licenseKey: string | null;
- })) & {
- isStill: boolean;
- isProduction: boolean;
- }) => Promise<import("./register-usage-event").RegisterUsageEventResponse>;
-};
diff --git a/packages/licensing/src/is-network-error.d.ts b/packages/licensing/src/is-network-error.d.ts
deleted file mode 100644
index c3d05bc997..0000000000
--- a/packages/licensing/src/is-network-error.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare function isNetworkError(error: Error): boolean;
diff --git a/packages/licensing/src/register-usage-event.d.ts b/packages/licensing/src/register-usage-event.d.ts
deleted file mode 100644
index 66167e60b0..0000000000
--- a/packages/licensing/src/register-usage-event.d.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-export declare const HOST = "https://www.remotion.pro";
-import type { NoReactInternals } from 'remotion/no-react';
-export declare const exponentialBackoffMs: (attempt: number) => number;
-export declare const sleep: (ms: number) => Promise<void>;
-export type RegisterUsageEventResponse = {
- billable: boolean;
- classification: UsageEventClassification;
-};
-type UsageEventType = 'webcodec-conversion' | 'cloud-render';
-export type UsageEventClassification = 'billable' | 'development' | 'failed';
-type EitherApiKeyOrLicenseKey = true extends typeof NoReactInternals.ENABLE_V5_BREAKING_CHANGES ? {
- licenseKey: string | null;
-} : {
- /**
- * @deprecated Use `licenseKey` instead
- */
- apiKey: string | null;
-} | {
- licenseKey: string | null;
-};
-type RegisterUsageEventMandatoryOptions = {
- host: string | null;
- succeeded: boolean;
- event: UsageEventType;
-} & EitherApiKeyOrLicenseKey;
-type OptionalRegisterUsageEventOptional = {
- isStill: boolean;
- isProduction: boolean;
-};
-type InternalRegisterUsageEventOptions = RegisterUsageEventMandatoryOptions & OptionalRegisterUsageEventOptional;
-type RegisterUsageEventOptions = RegisterUsageEventMandatoryOptions & Partial<OptionalRegisterUsageEventOptional>;
-export declare const internalRegisterUsageEvent: ({ host, succeeded, event, isStill, isProduction, ...apiOrLicenseKey }: InternalRegisterUsageEventOptions) => Promise<RegisterUsageEventResponse>;
-export declare const registerUsageEvent: (options: RegisterUsageEventOptions) => Promise<RegisterUsageEventResponse>;
-export {};