@rendobar/sdk 5.6.0 → 5.7.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 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;
@@ -4005,4 +4048,4 @@ type AssetListPage = {
4005
4048
  meta: AssetListMeta;
4006
4049
  };
4007
4050
  //#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 };
4051
+ 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;
@@ -4005,4 +4048,4 @@ type AssetListPage = {
4005
4048
  meta: AssetListMeta;
4006
4049
  };
4007
4050
  //#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 };
4051
+ 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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rendobar/sdk",
3
- "version": "5.6.0",
3
+ "version": "5.7.0",
4
4
  "type": "module",
5
5
  "description": "Rendobar SDK: TypeScript client for the media processing and AI generation API.",
6
6
  "license": "MIT",