@rendobar/sdk 5.6.0 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +19 -0
- package/dist/index.d.cts +46 -1
- package/dist/index.d.mts +46 -1
- package/dist/index.mjs +19 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -745,6 +745,24 @@ async revoke(params, options) {
|
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
747
|
//#endregion
|
|
748
|
+
//#region src/resources/account.ts
|
|
749
|
+
/**
|
|
750
|
+
* What this account is allowed to do.
|
|
751
|
+
*
|
|
752
|
+
* `orgs.current()` also carries plan limits, alongside the subscription and
|
|
753
|
+
* balance. This is the same ceilings with none of that, so a client that only
|
|
754
|
+
* needs to validate input before submitting does not have to read billing data
|
|
755
|
+
* it has no business seeing. It is also the only one of the two an OAuth token
|
|
756
|
+
* can reach.
|
|
757
|
+
*/
|
|
758
|
+
function createAccountResource(request) {
|
|
759
|
+
return {
|
|
760
|
+
/** Plan limits and enabled features. Validate input against these before submitting. */
|
|
761
|
+
async capabilities(options) {
|
|
762
|
+
return request("/account/capabilities", { signal: options?.signal });
|
|
763
|
+
} };
|
|
764
|
+
}
|
|
765
|
+
//#endregion
|
|
748
766
|
//#region src/resources/assets.ts
|
|
749
767
|
function createAssetsResource(request) {
|
|
750
768
|
return {
|
|
@@ -981,6 +999,7 @@ function createClient(config = {}) {
|
|
|
981
999
|
webhooks: createWebhooksResource(request),
|
|
982
1000
|
apiKeys: createApiKeysResource(request),
|
|
983
1001
|
orgs: createOrgsResource(request),
|
|
1002
|
+
account: createAccountResource(request),
|
|
984
1003
|
assets: createAssetsResource(request),
|
|
985
1004
|
team: createTeamResource(request),
|
|
986
1005
|
realtime: createRealtimeClient(baseUrl, {
|
package/dist/index.d.cts
CHANGED
|
@@ -2696,7 +2696,45 @@ declare const jobTypeSchema: ZodObject<{
|
|
|
2696
2696
|
tag: ZodString;
|
|
2697
2697
|
summary: ZodString;
|
|
2698
2698
|
acceptsMedia: ZodArray<ZodString>;
|
|
2699
|
+
useCases: ZodArray<ZodString>;
|
|
2700
|
+
chainsWith: ZodArray<ZodString>;
|
|
2699
2701
|
}, $strip>;
|
|
2702
|
+
/**
|
|
2703
|
+
* What the caller is allowed to do. Deliberately carries no balance, price or
|
|
2704
|
+
* subscription data: this is the one capability surface an OAuth token can
|
|
2705
|
+
* reach, and the billing routes it cannot are where money belongs.
|
|
2706
|
+
*
|
|
2707
|
+
* Written out rather than derived from PLAN_LIMITS / PLAN_FEATURES so the
|
|
2708
|
+
* published spec names every field and a generated client gets
|
|
2709
|
+
* `capabilities.features.gpu`, not a string map. `account-capabilities.test.ts`
|
|
2710
|
+
* fails the build if these keys and the plan constants ever diverge.
|
|
2711
|
+
*/
|
|
2712
|
+
declare const accountCapabilitiesSchema: ZodObject<{
|
|
2713
|
+
plan: ZodObject<{
|
|
2714
|
+
slug: ZodString;
|
|
2715
|
+
name: ZodString;
|
|
2716
|
+
}, $strip>;
|
|
2717
|
+
limits: ZodObject<{
|
|
2718
|
+
concurrentJobs: ZodNumber;
|
|
2719
|
+
maxQueuedJobs: ZodNumber;
|
|
2720
|
+
apiRequestsPerMinute: ZodNumber;
|
|
2721
|
+
maxJobTimeout: ZodNumber;
|
|
2722
|
+
maxInputFileSize: ZodNumber;
|
|
2723
|
+
maxJobInputSize: ZodNumber;
|
|
2724
|
+
storageQuota: ZodNumber;
|
|
2725
|
+
outputRetentionDays: ZodNumber;
|
|
2726
|
+
maxUploadSessionFiles: ZodNumber;
|
|
2727
|
+
}, $strip>;
|
|
2728
|
+
features: ZodObject<{
|
|
2729
|
+
rawFfmpeg: ZodBoolean;
|
|
2730
|
+
mcp: ZodBoolean;
|
|
2731
|
+
webhooks: ZodBoolean;
|
|
2732
|
+
priorityQueue: ZodBoolean;
|
|
2733
|
+
customRunners: ZodBoolean;
|
|
2734
|
+
gpu: ZodBoolean;
|
|
2735
|
+
}, $strip>;
|
|
2736
|
+
}, $strip>;
|
|
2737
|
+
type AccountCapabilities = output<typeof accountCapabilitiesSchema>;
|
|
2700
2738
|
declare const billingStateSchema: ZodObject<{
|
|
2701
2739
|
balance: ZodObject<{
|
|
2702
2740
|
amount: ZodNumber;
|
|
@@ -3587,6 +3625,11 @@ declare function createClient(config?: ClientConfig): {
|
|
|
3587
3625
|
}>;
|
|
3588
3626
|
};
|
|
3589
3627
|
};
|
|
3628
|
+
account: {
|
|
3629
|
+
capabilities(options?: {
|
|
3630
|
+
signal?: AbortSignal;
|
|
3631
|
+
}): Promise<AccountCapabilities>;
|
|
3632
|
+
};
|
|
3590
3633
|
assets: {
|
|
3591
3634
|
list(params?: ListAssetsParams, options?: {
|
|
3592
3635
|
signal?: AbortSignal;
|
|
@@ -3946,8 +3989,10 @@ type RetryDeliveryResult = {
|
|
|
3946
3989
|
//#endregion
|
|
3947
3990
|
//#region src/resources/orgs.d.ts
|
|
3948
3991
|
type OrgCurrentResponse = {
|
|
3992
|
+
/** `isDemo` marks the shared marketplace-reviewer account, whose content resets daily. */
|
|
3949
3993
|
org: Organization & {
|
|
3950
3994
|
memberRole: string;
|
|
3995
|
+
isDemo: boolean;
|
|
3951
3996
|
};
|
|
3952
3997
|
subscription: {
|
|
3953
3998
|
planId: string;
|
|
@@ -4005,4 +4050,4 @@ type AssetListPage = {
|
|
|
4005
4050
|
meta: AssetListMeta;
|
|
4006
4051
|
};
|
|
4007
4052
|
//#endregion
|
|
4008
|
-
export { ApiError, type ApiKey, type AssetResponse as Asset, type AssetDownloadResponse, type AssetInitResponse, type AssetListMeta, type AssetListPage, type BalanceDepletedData, type BalanceLowData, type BillingInvoice, type BillingState, type ClientConfig, type Cost, type CreateJobParams, type CreateUploadOptions, type CreateWebhookParams, type FfmpegParams, type FileType, type GenModelTier, type ImageEditParams, type ImageGenerateParams, type JobResponse as Job, type JobCancelledData, type JobCompletedData, type JobCreatedData, type JobCreatedResponse, type JobError, type JobFailedData, JobFailedError, type JobListPage, type JobStartedData, type JobStats, type JobStep, type JobSubscribeOptions, type JobSubscription, type JobTimings, type JobType, type ListAssetsParams, type ListDeliveriesParams, type ListJobsParams, type LogEntryData, type OrgCurrentResponse, type OrgEvent, type OrgSettings, type Organization, type Output, type OutputFile, type PaginationMeta, type PaymentMethod, type RealtimeConnectOptions, type RealtimeConnection, type RendobarClient, type RetryDeliveryResult, type StatsParams, type TestEventData, type Transaction, type TransactionListParams, type UpdateWebhookParams, type UploadProgress, type UsageParams, type UsageSummary, type WaitOptions, WaitTimeoutError, type WebhookDelivery, type WebhookEndpoint, type WebhookEventDataMap, type WebhookPayload, createClient, isApiError, jobData, outputUrl };
|
|
4053
|
+
export { type AccountCapabilities, ApiError, type ApiKey, type AssetResponse as Asset, type AssetDownloadResponse, type AssetInitResponse, type AssetListMeta, type AssetListPage, type BalanceDepletedData, type BalanceLowData, type BillingInvoice, type BillingState, type ClientConfig, type Cost, type CreateJobParams, type CreateUploadOptions, type CreateWebhookParams, type FfmpegParams, type FileType, type GenModelTier, type ImageEditParams, type ImageGenerateParams, type JobResponse as Job, type JobCancelledData, type JobCompletedData, type JobCreatedData, type JobCreatedResponse, type JobError, type JobFailedData, JobFailedError, type JobListPage, type JobStartedData, type JobStats, type JobStep, type JobSubscribeOptions, type JobSubscription, type JobTimings, type JobType, type ListAssetsParams, type ListDeliveriesParams, type ListJobsParams, type LogEntryData, type OrgCurrentResponse, type OrgEvent, type OrgSettings, type Organization, type Output, type OutputFile, type PaginationMeta, type PaymentMethod, type RealtimeConnectOptions, type RealtimeConnection, type RendobarClient, type RetryDeliveryResult, type StatsParams, type TestEventData, type Transaction, type TransactionListParams, type UpdateWebhookParams, type UploadProgress, type UsageParams, type UsageSummary, type WaitOptions, WaitTimeoutError, type WebhookDelivery, type WebhookEndpoint, type WebhookEventDataMap, type WebhookPayload, createClient, isApiError, jobData, outputUrl };
|
package/dist/index.d.mts
CHANGED
|
@@ -2696,7 +2696,45 @@ declare const jobTypeSchema: ZodObject<{
|
|
|
2696
2696
|
tag: ZodString;
|
|
2697
2697
|
summary: ZodString;
|
|
2698
2698
|
acceptsMedia: ZodArray<ZodString>;
|
|
2699
|
+
useCases: ZodArray<ZodString>;
|
|
2700
|
+
chainsWith: ZodArray<ZodString>;
|
|
2699
2701
|
}, $strip>;
|
|
2702
|
+
/**
|
|
2703
|
+
* What the caller is allowed to do. Deliberately carries no balance, price or
|
|
2704
|
+
* subscription data: this is the one capability surface an OAuth token can
|
|
2705
|
+
* reach, and the billing routes it cannot are where money belongs.
|
|
2706
|
+
*
|
|
2707
|
+
* Written out rather than derived from PLAN_LIMITS / PLAN_FEATURES so the
|
|
2708
|
+
* published spec names every field and a generated client gets
|
|
2709
|
+
* `capabilities.features.gpu`, not a string map. `account-capabilities.test.ts`
|
|
2710
|
+
* fails the build if these keys and the plan constants ever diverge.
|
|
2711
|
+
*/
|
|
2712
|
+
declare const accountCapabilitiesSchema: ZodObject<{
|
|
2713
|
+
plan: ZodObject<{
|
|
2714
|
+
slug: ZodString;
|
|
2715
|
+
name: ZodString;
|
|
2716
|
+
}, $strip>;
|
|
2717
|
+
limits: ZodObject<{
|
|
2718
|
+
concurrentJobs: ZodNumber;
|
|
2719
|
+
maxQueuedJobs: ZodNumber;
|
|
2720
|
+
apiRequestsPerMinute: ZodNumber;
|
|
2721
|
+
maxJobTimeout: ZodNumber;
|
|
2722
|
+
maxInputFileSize: ZodNumber;
|
|
2723
|
+
maxJobInputSize: ZodNumber;
|
|
2724
|
+
storageQuota: ZodNumber;
|
|
2725
|
+
outputRetentionDays: ZodNumber;
|
|
2726
|
+
maxUploadSessionFiles: ZodNumber;
|
|
2727
|
+
}, $strip>;
|
|
2728
|
+
features: ZodObject<{
|
|
2729
|
+
rawFfmpeg: ZodBoolean;
|
|
2730
|
+
mcp: ZodBoolean;
|
|
2731
|
+
webhooks: ZodBoolean;
|
|
2732
|
+
priorityQueue: ZodBoolean;
|
|
2733
|
+
customRunners: ZodBoolean;
|
|
2734
|
+
gpu: ZodBoolean;
|
|
2735
|
+
}, $strip>;
|
|
2736
|
+
}, $strip>;
|
|
2737
|
+
type AccountCapabilities = output<typeof accountCapabilitiesSchema>;
|
|
2700
2738
|
declare const billingStateSchema: ZodObject<{
|
|
2701
2739
|
balance: ZodObject<{
|
|
2702
2740
|
amount: ZodNumber;
|
|
@@ -3587,6 +3625,11 @@ declare function createClient(config?: ClientConfig): {
|
|
|
3587
3625
|
}>;
|
|
3588
3626
|
};
|
|
3589
3627
|
};
|
|
3628
|
+
account: {
|
|
3629
|
+
capabilities(options?: {
|
|
3630
|
+
signal?: AbortSignal;
|
|
3631
|
+
}): Promise<AccountCapabilities>;
|
|
3632
|
+
};
|
|
3590
3633
|
assets: {
|
|
3591
3634
|
list(params?: ListAssetsParams, options?: {
|
|
3592
3635
|
signal?: AbortSignal;
|
|
@@ -3946,8 +3989,10 @@ type RetryDeliveryResult = {
|
|
|
3946
3989
|
//#endregion
|
|
3947
3990
|
//#region src/resources/orgs.d.ts
|
|
3948
3991
|
type OrgCurrentResponse = {
|
|
3992
|
+
/** `isDemo` marks the shared marketplace-reviewer account, whose content resets daily. */
|
|
3949
3993
|
org: Organization & {
|
|
3950
3994
|
memberRole: string;
|
|
3995
|
+
isDemo: boolean;
|
|
3951
3996
|
};
|
|
3952
3997
|
subscription: {
|
|
3953
3998
|
planId: string;
|
|
@@ -4005,4 +4050,4 @@ type AssetListPage = {
|
|
|
4005
4050
|
meta: AssetListMeta;
|
|
4006
4051
|
};
|
|
4007
4052
|
//#endregion
|
|
4008
|
-
export { ApiError, type ApiKey, type AssetResponse as Asset, type AssetDownloadResponse, type AssetInitResponse, type AssetListMeta, type AssetListPage, type BalanceDepletedData, type BalanceLowData, type BillingInvoice, type BillingState, type ClientConfig, type Cost, type CreateJobParams, type CreateUploadOptions, type CreateWebhookParams, type FfmpegParams, type FileType, type GenModelTier, type ImageEditParams, type ImageGenerateParams, type JobResponse as Job, type JobCancelledData, type JobCompletedData, type JobCreatedData, type JobCreatedResponse, type JobError, type JobFailedData, JobFailedError, type JobListPage, type JobStartedData, type JobStats, type JobStep, type JobSubscribeOptions, type JobSubscription, type JobTimings, type JobType, type ListAssetsParams, type ListDeliveriesParams, type ListJobsParams, type LogEntryData, type OrgCurrentResponse, type OrgEvent, type OrgSettings, type Organization, type Output, type OutputFile, type PaginationMeta, type PaymentMethod, type RealtimeConnectOptions, type RealtimeConnection, type RendobarClient, type RetryDeliveryResult, type StatsParams, type TestEventData, type Transaction, type TransactionListParams, type UpdateWebhookParams, type UploadProgress, type UsageParams, type UsageSummary, type WaitOptions, WaitTimeoutError, type WebhookDelivery, type WebhookEndpoint, type WebhookEventDataMap, type WebhookPayload, createClient, isApiError, jobData, outputUrl };
|
|
4053
|
+
export { type AccountCapabilities, ApiError, type ApiKey, type AssetResponse as Asset, type AssetDownloadResponse, type AssetInitResponse, type AssetListMeta, type AssetListPage, type BalanceDepletedData, type BalanceLowData, type BillingInvoice, type BillingState, type ClientConfig, type Cost, type CreateJobParams, type CreateUploadOptions, type CreateWebhookParams, type FfmpegParams, type FileType, type GenModelTier, type ImageEditParams, type ImageGenerateParams, type JobResponse as Job, type JobCancelledData, type JobCompletedData, type JobCreatedData, type JobCreatedResponse, type JobError, type JobFailedData, JobFailedError, type JobListPage, type JobStartedData, type JobStats, type JobStep, type JobSubscribeOptions, type JobSubscription, type JobTimings, type JobType, type ListAssetsParams, type ListDeliveriesParams, type ListJobsParams, type LogEntryData, type OrgCurrentResponse, type OrgEvent, type OrgSettings, type Organization, type Output, type OutputFile, type PaginationMeta, type PaymentMethod, type RealtimeConnectOptions, type RealtimeConnection, type RendobarClient, type RetryDeliveryResult, type StatsParams, type TestEventData, type Transaction, type TransactionListParams, type UpdateWebhookParams, type UploadProgress, type UsageParams, type UsageSummary, type WaitOptions, WaitTimeoutError, type WebhookDelivery, type WebhookEndpoint, type WebhookEventDataMap, type WebhookPayload, createClient, isApiError, jobData, outputUrl };
|
package/dist/index.mjs
CHANGED
|
@@ -744,6 +744,24 @@ async revoke(params, options) {
|
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
//#endregion
|
|
747
|
+
//#region src/resources/account.ts
|
|
748
|
+
/**
|
|
749
|
+
* What this account is allowed to do.
|
|
750
|
+
*
|
|
751
|
+
* `orgs.current()` also carries plan limits, alongside the subscription and
|
|
752
|
+
* balance. This is the same ceilings with none of that, so a client that only
|
|
753
|
+
* needs to validate input before submitting does not have to read billing data
|
|
754
|
+
* it has no business seeing. It is also the only one of the two an OAuth token
|
|
755
|
+
* can reach.
|
|
756
|
+
*/
|
|
757
|
+
function createAccountResource(request) {
|
|
758
|
+
return {
|
|
759
|
+
/** Plan limits and enabled features. Validate input against these before submitting. */
|
|
760
|
+
async capabilities(options) {
|
|
761
|
+
return request("/account/capabilities", { signal: options?.signal });
|
|
762
|
+
} };
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
747
765
|
//#region src/resources/assets.ts
|
|
748
766
|
function createAssetsResource(request) {
|
|
749
767
|
return {
|
|
@@ -980,6 +998,7 @@ function createClient(config = {}) {
|
|
|
980
998
|
webhooks: createWebhooksResource(request),
|
|
981
999
|
apiKeys: createApiKeysResource(request),
|
|
982
1000
|
orgs: createOrgsResource(request),
|
|
1001
|
+
account: createAccountResource(request),
|
|
983
1002
|
assets: createAssetsResource(request),
|
|
984
1003
|
team: createTeamResource(request),
|
|
985
1004
|
realtime: createRealtimeClient(baseUrl, {
|