@farthershore/client 0.5.0 → 0.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/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/README.md +8 -4
- package/dist/index.js +275 -222
- package/dist/types/api.generated.d.ts +82 -62
- package/dist/types/generated/schemas.d.ts +168 -284
- package/dist/types/operations/audit-notifications.d.ts +4 -0
- package/dist/types/operations/auth.d.ts +175 -0
- package/dist/types/operations/billing.d.ts +4 -4
- package/dist/types/operations/businesses.d.ts +107 -17
- package/dist/types/operations/consumers.d.ts +145 -0
- package/dist/types/operations/index.d.ts +504 -209
- package/dist/types/operations/organizations.d.ts +7 -0
- package/dist/types/operations/platform.d.ts +6 -6
- package/dist/types/operations/portal.d.ts +43 -0
- package/dist/types/operations/webhooks.d.ts +2 -2
- package/dist/types/transport.d.ts +2 -0
- package/dist/types/types.d.ts +34 -34
- package/dist/types/version.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/operations/agreements.d.ts +0 -174
|
@@ -19,8 +19,7 @@ export interface components {
|
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
21
|
* @default {
|
|
22
|
-
* "meters": []
|
|
23
|
-
* "billOn4xx": false
|
|
22
|
+
* "meters": []
|
|
24
23
|
* }
|
|
25
24
|
*/
|
|
26
25
|
metering: {
|
|
@@ -53,8 +52,6 @@ export interface components {
|
|
|
53
52
|
reserveCeiling?: number;
|
|
54
53
|
pairsWith?: string;
|
|
55
54
|
}[];
|
|
56
|
-
/** @default false */
|
|
57
|
-
billOn4xx: boolean;
|
|
58
55
|
};
|
|
59
56
|
backend?: {
|
|
60
57
|
[key: string]: {
|
|
@@ -382,8 +379,6 @@ export interface components {
|
|
|
382
379
|
name: string;
|
|
383
380
|
description?: string;
|
|
384
381
|
details?: string[];
|
|
385
|
-
/** @enum {string} */
|
|
386
|
-
kind: "free" | "flat" | "usage" | "prepaid" | "hybrid" | "trial" | "custom";
|
|
387
382
|
/** @default [] */
|
|
388
383
|
meters: {
|
|
389
384
|
dimension: string;
|
|
@@ -395,15 +390,10 @@ export interface components {
|
|
|
395
390
|
}[];
|
|
396
391
|
/** @default 0 */
|
|
397
392
|
recurring_fee_cents: number;
|
|
398
|
-
/**
|
|
399
|
-
|
|
400
|
-
* @enum {string}
|
|
401
|
-
*/
|
|
402
|
-
billing_interval: "month" | "year";
|
|
393
|
+
/** @enum {string} */
|
|
394
|
+
billing_interval?: "month" | "year";
|
|
403
395
|
/** @default 0 */
|
|
404
396
|
trial_days: number;
|
|
405
|
-
max_monthly_spend_cents?: number;
|
|
406
|
-
min_monthly_spend_cents?: number;
|
|
407
397
|
/** @default [] */
|
|
408
398
|
limits: {
|
|
409
399
|
dimension: string;
|
|
@@ -444,11 +434,6 @@ export interface components {
|
|
|
444
434
|
resource_limits: {
|
|
445
435
|
[key: string]: number;
|
|
446
436
|
};
|
|
447
|
-
/**
|
|
448
|
-
* @default block
|
|
449
|
-
* @enum {string}
|
|
450
|
-
*/
|
|
451
|
-
overageBehavior: "block" | "allow_and_bill";
|
|
452
437
|
/** @default true */
|
|
453
438
|
selfServeEnabled: boolean;
|
|
454
439
|
capacity?: {
|
|
@@ -512,63 +497,6 @@ export interface components {
|
|
|
512
497
|
require_successor_route: boolean;
|
|
513
498
|
};
|
|
514
499
|
};
|
|
515
|
-
environments?: {
|
|
516
|
-
[key: string]: {
|
|
517
|
-
plans?: {
|
|
518
|
-
[key: string]: {
|
|
519
|
-
meters?: {
|
|
520
|
-
dimension: string;
|
|
521
|
-
/**
|
|
522
|
-
* @default linear
|
|
523
|
-
* @enum {string}
|
|
524
|
-
*/
|
|
525
|
-
kind: "linear" | "active_count" | "event_count";
|
|
526
|
-
}[];
|
|
527
|
-
recurring_fee_cents?: number;
|
|
528
|
-
/** @enum {string} */
|
|
529
|
-
billing_interval?: "month" | "year";
|
|
530
|
-
trial_days?: number;
|
|
531
|
-
max_monthly_spend_cents?: number;
|
|
532
|
-
limits?: {
|
|
533
|
-
dimension: string;
|
|
534
|
-
window: {
|
|
535
|
-
/** @constant */
|
|
536
|
-
type: "named";
|
|
537
|
-
/** @enum {string} */
|
|
538
|
-
name: "second" | "minute" | "hour" | "day" | "week" | "month";
|
|
539
|
-
} | {
|
|
540
|
-
/** @constant */
|
|
541
|
-
type: "custom";
|
|
542
|
-
seconds: number;
|
|
543
|
-
label?: string;
|
|
544
|
-
};
|
|
545
|
-
capacity: number;
|
|
546
|
-
/** @enum {string} */
|
|
547
|
-
enforcement?: "enforce" | "track";
|
|
548
|
-
warnAt?: number;
|
|
549
|
-
/** @enum {string} */
|
|
550
|
-
strategy?: "fixed_window" | "sliding_window" | "token_bucket";
|
|
551
|
-
bucketCapacity?: number;
|
|
552
|
-
refillRatePerSecond?: number;
|
|
553
|
-
scope?: {
|
|
554
|
-
endpoint?: string;
|
|
555
|
-
apiKey?: string;
|
|
556
|
-
workspace?: string;
|
|
557
|
-
region?: string;
|
|
558
|
-
actor?: {
|
|
559
|
-
/** @enum {string} */
|
|
560
|
-
kind: "member" | "service_account";
|
|
561
|
-
};
|
|
562
|
-
};
|
|
563
|
-
acknowledgeUnreachable?: boolean;
|
|
564
|
-
}[];
|
|
565
|
-
/** @enum {string} */
|
|
566
|
-
overageBehavior?: "block" | "allow_and_bill";
|
|
567
|
-
selfServeEnabled?: boolean;
|
|
568
|
-
};
|
|
569
|
-
};
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
500
|
ephemeral?: {
|
|
573
501
|
defaultPlan?: string;
|
|
574
502
|
};
|
|
@@ -707,84 +635,13 @@ export interface components {
|
|
|
707
635
|
};
|
|
708
636
|
catalog: components["schemas"]["AgentCatalogEntry"][];
|
|
709
637
|
};
|
|
710
|
-
AgreementAmendEffect: {
|
|
711
|
-
/** @constant */
|
|
712
|
-
kind: "amend";
|
|
713
|
-
agreementId: string;
|
|
714
|
-
subjectId: string;
|
|
715
|
-
pricingPolicyId: string;
|
|
716
|
-
pricingPolicyVersionId: string;
|
|
717
|
-
currentVersion: {
|
|
718
|
-
id: string;
|
|
719
|
-
version: number;
|
|
720
|
-
};
|
|
721
|
-
nextVersion: number;
|
|
722
|
-
terms: components["schemas"]["ContractTerms"];
|
|
723
|
-
bounds: components["schemas"]["ContractTermsBounds"];
|
|
724
|
-
ownedNamespaces: string[];
|
|
725
|
-
effectiveAt: string | null;
|
|
726
|
-
};
|
|
727
|
-
AgreementAmendPreview: {
|
|
728
|
-
effect: components["schemas"]["AgreementAmendEffect"];
|
|
729
|
-
/** @description Pass with the SAME body to commit exactly this effect. Expires after 15 minutes; a changed body or a newly published policy version makes it stale. */
|
|
730
|
-
confirmationToken: string;
|
|
731
|
-
};
|
|
732
|
-
AgreementCreateEffect: {
|
|
733
|
-
/** @constant */
|
|
734
|
-
kind: "create";
|
|
735
|
-
environmentId: string | null;
|
|
736
|
-
subjectId: string;
|
|
737
|
-
binding: {
|
|
738
|
-
/** @enum {string} */
|
|
739
|
-
mode: "current" | "current_with_contract_terms" | "fixed_version";
|
|
740
|
-
pricingPolicyId: string;
|
|
741
|
-
pricingPolicyKey: string;
|
|
742
|
-
pricingPolicyVersionId: string;
|
|
743
|
-
pricingPolicyVersion: number;
|
|
744
|
-
};
|
|
745
|
-
/** @enum {string} */
|
|
746
|
-
newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
|
|
747
|
-
/** @enum {string} */
|
|
748
|
-
newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
|
|
749
|
-
terms?: components["schemas"]["ContractTerms"];
|
|
750
|
-
bounds: components["schemas"]["ContractTermsBounds"];
|
|
751
|
-
ownedNamespaces: string[];
|
|
752
|
-
agreedBasis: {
|
|
753
|
-
measurementRuleIds: string[];
|
|
754
|
-
measureSetByRuleId: {
|
|
755
|
-
[key: string]: string[];
|
|
756
|
-
};
|
|
757
|
-
};
|
|
758
|
-
effectiveAt: string | null;
|
|
759
|
-
expiresAt: string | null;
|
|
760
|
-
};
|
|
761
|
-
AgreementCreatePreview: {
|
|
762
|
-
effect: components["schemas"]["AgreementCreateEffect"];
|
|
763
|
-
/** @description Pass with the SAME body to commit exactly this effect. Expires after 15 minutes; a changed body or a newly published policy version makes it stale. */
|
|
764
|
-
confirmationToken: string;
|
|
765
|
-
};
|
|
766
|
-
AgreementUsagePricingBinding: {
|
|
767
|
-
/** @constant */
|
|
768
|
-
mode: "current";
|
|
769
|
-
pricingPolicyId: string;
|
|
770
|
-
} | {
|
|
771
|
-
/** @constant */
|
|
772
|
-
mode: "current_with_contract_terms";
|
|
773
|
-
pricingPolicyId: string;
|
|
774
|
-
contractPricingVersionId: string;
|
|
775
|
-
} | {
|
|
776
|
-
/** @constant */
|
|
777
|
-
mode: "fixed_version";
|
|
778
|
-
pricingPolicyId: string;
|
|
779
|
-
pricingPolicyVersionId: string;
|
|
780
|
-
};
|
|
781
638
|
AnalyticsEventFeedResponse: {
|
|
782
639
|
result: components["schemas"]["AnalyticsEventFeedRow"][];
|
|
783
640
|
};
|
|
784
641
|
AnalyticsEventFeedRow: {
|
|
785
642
|
id: string;
|
|
786
643
|
/** @enum {string} */
|
|
787
|
-
type: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "customer.created" | "customer.deleted" | "customer.member.added" | "customer.member.updated" | "customer.member.removed" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
|
|
644
|
+
type: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "balance.low" | "balance.exhausted" | "customer.created" | "customer.deleted" | "customer.member.added" | "customer.member.updated" | "customer.member.removed" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
|
|
788
645
|
/** Format: date-time */
|
|
789
646
|
occurredAt: string;
|
|
790
647
|
environmentId: string | null;
|
|
@@ -984,7 +841,7 @@ export interface components {
|
|
|
984
841
|
name: string;
|
|
985
842
|
trigger: {
|
|
986
843
|
/** @enum {string} */
|
|
987
|
-
eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "customer.created" | "customer.deleted" | "customer.member.added" | "customer.member.updated" | "customer.member.removed" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
|
|
844
|
+
eventType: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "balance.low" | "balance.exhausted" | "customer.created" | "customer.deleted" | "customer.member.added" | "customer.member.updated" | "customer.member.removed" | "rate_limit.exceeded" | "usage.recorded" | "usage.archive_checkpoint" | "gateway.request_denied" | "change_set.created" | "change_set.approved" | "change_set.applied" | "change_set.rolled_back" | "change_set.cancelled" | "billing.event_recorded" | "authz.decision" | "repo.changed" | "automation.rule_fired" | "automation.action_succeeded" | "automation.action_failed" | "automation.action_denied" | "automation.notification" | "access_request.created" | "access_request.resolved" | "build.failed" | "product.published" | "workflow.failed" | "pr.review_posted";
|
|
988
845
|
filter?: {
|
|
989
846
|
subjectType?: string;
|
|
990
847
|
subjectId?: string;
|
|
@@ -1123,6 +980,17 @@ export interface components {
|
|
|
1123
980
|
user: {
|
|
1124
981
|
id: string;
|
|
1125
982
|
};
|
|
983
|
+
legalAcceptance: {
|
|
984
|
+
accepted: ("terms" | "privacy" | "acceptableUse")[];
|
|
985
|
+
outstanding: ("terms" | "privacy" | "acceptableUse")[];
|
|
986
|
+
requiredVersions: {
|
|
987
|
+
terms: string;
|
|
988
|
+
privacy: string;
|
|
989
|
+
acceptableUse: string;
|
|
990
|
+
};
|
|
991
|
+
/** Format: uri */
|
|
992
|
+
dashboardUrl: string;
|
|
993
|
+
};
|
|
1126
994
|
personalOrganization: components["schemas"]["BuilderContextOrganization"];
|
|
1127
995
|
activeOrganization: {
|
|
1128
996
|
id: string;
|
|
@@ -1135,9 +1003,18 @@ export interface components {
|
|
|
1135
1003
|
organization: components["schemas"]["BuilderContextOrganization"];
|
|
1136
1004
|
role: string;
|
|
1137
1005
|
}[];
|
|
1138
|
-
effectivePermissions: ("
|
|
1006
|
+
effectivePermissions: ("account_erasure:read" | "account_erasure:request" | "agent:configure" | "agent:read" | "analytics:read" | "apply_timeline:read" | "audit_log:export" | "audit_log:read" | "auth_context:issue" | "auth_context:read" | "auth_provider_connection:create" | "auth_provider_connection:delete" | "auth_provider_connection:read" | "auth_provider_connection:update" | "automation_rule:create" | "automation_rule:delete" | "automation_rule:read" | "automation_rule:update" | "backend:bind" | "backend:create" | "backend:delete" | "backend:read" | "backend_spec:write" | "brand:update" | "bulletin:ack" | "bulletin:read" | "bulletin:resolve" | "business:compile" | "business:cors_update" | "business:create" | "business:delete" | "business:docs_update" | "business:preview_env_update" | "business:publish" | "business:rbac_update" | "business:read" | "business_dependents:read" | "business_variable:create" | "business_variable:delete" | "business_variable:operation_read" | "business_variable:read" | "business_variable:revoke" | "business_variable:rotate" | "change_set:propose" | "change_set:read" | "consumer:block" | "consumer:migrate_latest" | "consumer:read" | "consumer:remove" | "consumer:roles_assign" | "denial:read" | "environment:create" | "environment:delete" | "environment:read" | "frontend:read" | "frontend:rollback" | "git_connection:create" | "git_connection:delete" | "git_connection:read" | "git_connection:update" | "knowledge:read" | "maker_token:create" | "maker_token:create_org" | "maker_token:read" | "maker_token:revoke" | "maker_token:rotate" | "notification:preferences_read" | "notification:preferences_update" | "organization:create" | "organization:delete" | "organization:manage_billing" | "organization:ownership_transfer" | "organization:read" | "organization_bulletin:read" | "organization_invitation:accept" | "organization_invitation:create" | "organization_invitation:list" | "organization_invitation:revoke" | "organization_member:list" | "organization_member:remove" | "organization_member:update" | "organization_role:create" | "organization_role:delete" | "organization_role:read" | "organization_role:update" | "persona:issue" | "persona:read" | "persona:revoke" | "persona:rotate" | "personal_data:export" | "plan:read" | "platform_legal:accept" | "platform_legal:read" | "product_subscription:create" | "promo_code:archive" | "promo_code:create" | "promo_code:reactivate" | "promo_code:read" | "promo_code:update" | "rbac:read" | "resource_count:report" | "runtime_token:mint" | "runtime_token:read" | "runtime_token:revoke" | "runtime_token:rotate" | "stripe_connection:close" | "stripe_connection:create" | "stripe_connection:read" | "tax_settings:read" | "tax_settings:update" | "usage:read" | "webhook:create" | "webhook:delete" | "webhook:delivery_payload_read" | "webhook:delivery_read" | "webhook:read" | "webhook:test" | "webhook:update" | "workflow:replay" | "workflow:rollback")[];
|
|
1139
1007
|
shouldPersistActiveOrganization: boolean;
|
|
1140
1008
|
platformTier: string | null;
|
|
1009
|
+
platformSubscription: {
|
|
1010
|
+
status: string;
|
|
1011
|
+
planTier: string;
|
|
1012
|
+
cancelAtPeriodEnd: boolean;
|
|
1013
|
+
currentPeriodEnd: string | null;
|
|
1014
|
+
} | null;
|
|
1015
|
+
platformPlanLapsedAt: string | null;
|
|
1016
|
+
platformPausesAt: string | null;
|
|
1017
|
+
platformPausedAt: string | null;
|
|
1141
1018
|
features: {
|
|
1142
1019
|
team?: boolean;
|
|
1143
1020
|
};
|
|
@@ -1171,8 +1048,6 @@ export interface components {
|
|
|
1171
1048
|
name: string;
|
|
1172
1049
|
description?: string;
|
|
1173
1050
|
details?: string[];
|
|
1174
|
-
/** @enum {string} */
|
|
1175
|
-
kind: "free" | "flat" | "usage" | "prepaid" | "hybrid" | "trial" | "custom";
|
|
1176
1051
|
/** @default [] */
|
|
1177
1052
|
meters: {
|
|
1178
1053
|
dimension: string;
|
|
@@ -1184,15 +1059,10 @@ export interface components {
|
|
|
1184
1059
|
}[];
|
|
1185
1060
|
/** @default 0 */
|
|
1186
1061
|
recurring_fee_cents: number;
|
|
1187
|
-
/**
|
|
1188
|
-
|
|
1189
|
-
* @enum {string}
|
|
1190
|
-
*/
|
|
1191
|
-
billing_interval: "month" | "year";
|
|
1062
|
+
/** @enum {string} */
|
|
1063
|
+
billing_interval?: "month" | "year";
|
|
1192
1064
|
/** @default 0 */
|
|
1193
1065
|
trial_days: number;
|
|
1194
|
-
max_monthly_spend_cents?: number;
|
|
1195
|
-
min_monthly_spend_cents?: number;
|
|
1196
1066
|
/** @default [] */
|
|
1197
1067
|
limits: {
|
|
1198
1068
|
dimension: string;
|
|
@@ -1233,11 +1103,6 @@ export interface components {
|
|
|
1233
1103
|
resource_limits: {
|
|
1234
1104
|
[key: string]: number;
|
|
1235
1105
|
};
|
|
1236
|
-
/**
|
|
1237
|
-
* @default block
|
|
1238
|
-
* @enum {string}
|
|
1239
|
-
*/
|
|
1240
|
-
overageBehavior: "block" | "allow_and_bill";
|
|
1241
1106
|
/** @default true */
|
|
1242
1107
|
selfServeEnabled: boolean;
|
|
1243
1108
|
capacity?: {
|
|
@@ -1309,6 +1174,12 @@ export interface components {
|
|
|
1309
1174
|
id: string;
|
|
1310
1175
|
organizationId: string | null;
|
|
1311
1176
|
name: string;
|
|
1177
|
+
sellerLaunchRefusal?: {
|
|
1178
|
+
/** @constant */
|
|
1179
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
1180
|
+
settingsUrl: string;
|
|
1181
|
+
message: string;
|
|
1182
|
+
};
|
|
1312
1183
|
displayName: string | null;
|
|
1313
1184
|
description: string | null;
|
|
1314
1185
|
/** @enum {string} */
|
|
@@ -1423,6 +1294,12 @@ export interface components {
|
|
|
1423
1294
|
id: string;
|
|
1424
1295
|
organizationId: string | null;
|
|
1425
1296
|
name: string;
|
|
1297
|
+
sellerLaunchRefusal?: {
|
|
1298
|
+
/** @constant */
|
|
1299
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
1300
|
+
settingsUrl: string;
|
|
1301
|
+
message: string;
|
|
1302
|
+
};
|
|
1426
1303
|
displayName: string | null;
|
|
1427
1304
|
description: string | null;
|
|
1428
1305
|
/** @enum {string} */
|
|
@@ -1454,6 +1331,9 @@ export interface components {
|
|
|
1454
1331
|
createdAt: string;
|
|
1455
1332
|
/** Format: date-time */
|
|
1456
1333
|
updatedAt: string;
|
|
1334
|
+
usageUnitLabels?: {
|
|
1335
|
+
[key: string]: string;
|
|
1336
|
+
};
|
|
1457
1337
|
environments: components["schemas"]["BusinessEnvironment"][];
|
|
1458
1338
|
};
|
|
1459
1339
|
BusinessDiagnostic: {
|
|
@@ -1509,8 +1389,6 @@ export interface components {
|
|
|
1509
1389
|
name: string;
|
|
1510
1390
|
description?: string;
|
|
1511
1391
|
details?: string[];
|
|
1512
|
-
/** @enum {string} */
|
|
1513
|
-
kind: "free" | "flat" | "usage" | "prepaid" | "hybrid" | "trial" | "custom";
|
|
1514
1392
|
/** @default [] */
|
|
1515
1393
|
meters: {
|
|
1516
1394
|
dimension: string;
|
|
@@ -1522,15 +1400,10 @@ export interface components {
|
|
|
1522
1400
|
}[];
|
|
1523
1401
|
/** @default 0 */
|
|
1524
1402
|
recurring_fee_cents: number;
|
|
1525
|
-
/**
|
|
1526
|
-
|
|
1527
|
-
* @enum {string}
|
|
1528
|
-
*/
|
|
1529
|
-
billing_interval: "month" | "year";
|
|
1403
|
+
/** @enum {string} */
|
|
1404
|
+
billing_interval?: "month" | "year";
|
|
1530
1405
|
/** @default 0 */
|
|
1531
1406
|
trial_days: number;
|
|
1532
|
-
max_monthly_spend_cents?: number;
|
|
1533
|
-
min_monthly_spend_cents?: number;
|
|
1534
1407
|
/** @default [] */
|
|
1535
1408
|
limits: {
|
|
1536
1409
|
dimension: string;
|
|
@@ -1571,11 +1444,6 @@ export interface components {
|
|
|
1571
1444
|
resource_limits: {
|
|
1572
1445
|
[key: string]: number;
|
|
1573
1446
|
};
|
|
1574
|
-
/**
|
|
1575
|
-
* @default block
|
|
1576
|
-
* @enum {string}
|
|
1577
|
-
*/
|
|
1578
|
-
overageBehavior: "block" | "allow_and_bill";
|
|
1579
1447
|
/** @default true */
|
|
1580
1448
|
selfServeEnabled: boolean;
|
|
1581
1449
|
capacity?: {
|
|
@@ -1660,6 +1528,26 @@ export interface components {
|
|
|
1660
1528
|
key: string;
|
|
1661
1529
|
environmentId: string | null;
|
|
1662
1530
|
};
|
|
1531
|
+
BusinessUpdateRequest: {
|
|
1532
|
+
/** @description Display label for the business's usage unit. Null restores the default. Declare a usage unit and release first. */
|
|
1533
|
+
usageUnitLabel?: string | null;
|
|
1534
|
+
displayName?: string;
|
|
1535
|
+
description?: string;
|
|
1536
|
+
docsEnabled?: boolean;
|
|
1537
|
+
featuredPlanId?: string | null;
|
|
1538
|
+
/** Format: uri */
|
|
1539
|
+
iconUrl?: string | null;
|
|
1540
|
+
/** Format: uri */
|
|
1541
|
+
logoUrl?: string | null;
|
|
1542
|
+
allowedOrigins?: string[];
|
|
1543
|
+
envBranchPrefix?: string | null;
|
|
1544
|
+
/** @enum {string} */
|
|
1545
|
+
previewEnvTrigger?: "BRANCH_PREFIX" | "PULL_REQUEST" | "DISABLED";
|
|
1546
|
+
/** @description White-label prefix for subscriber API keys (fsk_ → e.g. acme_). Null clears to the platform default fsk. */
|
|
1547
|
+
keyPrefix?: string | null;
|
|
1548
|
+
/** @description Show (true) or hide (false) this product on the organization's public page at /organization/<slug>. Defaults to true. */
|
|
1549
|
+
listedOnOrganizationPage?: boolean;
|
|
1550
|
+
};
|
|
1663
1551
|
BusinessValidateResponse: {
|
|
1664
1552
|
success: boolean;
|
|
1665
1553
|
environment: {
|
|
@@ -1979,6 +1867,28 @@ export interface components {
|
|
|
1979
1867
|
ConsumerApiKeyList: {
|
|
1980
1868
|
apiKeys: components["schemas"]["ConsumerApiKey"][];
|
|
1981
1869
|
};
|
|
1870
|
+
ConsumerBalanceList: {
|
|
1871
|
+
subscriberId: string;
|
|
1872
|
+
balances: {
|
|
1873
|
+
unit: {
|
|
1874
|
+
key: string;
|
|
1875
|
+
/** @enum {string} */
|
|
1876
|
+
kind: "money" | "credits";
|
|
1877
|
+
code: string;
|
|
1878
|
+
displayName: string;
|
|
1879
|
+
};
|
|
1880
|
+
available: string;
|
|
1881
|
+
granted: string;
|
|
1882
|
+
revoked: string;
|
|
1883
|
+
consumed: string;
|
|
1884
|
+
exhausted: boolean;
|
|
1885
|
+
/** @enum {string} */
|
|
1886
|
+
source: "live" | "estimate";
|
|
1887
|
+
/** Format: date-time */
|
|
1888
|
+
asOf: string;
|
|
1889
|
+
environment: string | null;
|
|
1890
|
+
}[];
|
|
1891
|
+
};
|
|
1982
1892
|
ConsumerBlockResponse: {
|
|
1983
1893
|
/** @constant */
|
|
1984
1894
|
blocked: true;
|
|
@@ -2089,13 +1999,6 @@ export interface components {
|
|
|
2089
1999
|
kind: "linear" | "active_count" | "event_count";
|
|
2090
2000
|
}[];
|
|
2091
2001
|
};
|
|
2092
|
-
ContractPricingVersion: {
|
|
2093
|
-
id: string;
|
|
2094
|
-
version: number;
|
|
2095
|
-
terms: components["schemas"]["ContractTerms"];
|
|
2096
|
-
effectiveAt: string;
|
|
2097
|
-
createdAt: string;
|
|
2098
|
-
};
|
|
2099
2002
|
ContractRoute: {
|
|
2100
2003
|
routeId: string;
|
|
2101
2004
|
method: string;
|
|
@@ -2104,38 +2007,6 @@ export interface components {
|
|
|
2104
2007
|
meters: string[];
|
|
2105
2008
|
grantedBy: string[];
|
|
2106
2009
|
};
|
|
2107
|
-
ContractTerms: {
|
|
2108
|
-
percentDiscount?: {
|
|
2109
|
-
num: string;
|
|
2110
|
-
den: string;
|
|
2111
|
-
};
|
|
2112
|
-
floorNanos?: string;
|
|
2113
|
-
capNanos?: string;
|
|
2114
|
-
selectorScope: ({
|
|
2115
|
-
/** @constant */
|
|
2116
|
-
kind: "catalog_item";
|
|
2117
|
-
item: {
|
|
2118
|
-
provider: string;
|
|
2119
|
-
model: string;
|
|
2120
|
-
modality?: string;
|
|
2121
|
-
};
|
|
2122
|
-
} | {
|
|
2123
|
-
/** @constant */
|
|
2124
|
-
kind: "provider_model_glob";
|
|
2125
|
-
provider: string;
|
|
2126
|
-
modelGlob: string;
|
|
2127
|
-
modality?: string;
|
|
2128
|
-
})[];
|
|
2129
|
-
};
|
|
2130
|
-
ContractTermsBounds: {
|
|
2131
|
-
maxPercentDiscount?: {
|
|
2132
|
-
num: string;
|
|
2133
|
-
den: string;
|
|
2134
|
-
};
|
|
2135
|
-
minFloorNanos?: string;
|
|
2136
|
-
maxCapNanos?: string;
|
|
2137
|
-
requireFloorWithDiscount?: boolean;
|
|
2138
|
-
};
|
|
2139
2010
|
CustomPermissionSubject: {
|
|
2140
2011
|
subject: string;
|
|
2141
2012
|
verbs: string[];
|
|
@@ -2254,29 +2125,6 @@ export interface components {
|
|
|
2254
2125
|
DocsValidateResponse: {
|
|
2255
2126
|
issues: components["schemas"]["DocsCheckIssue"][];
|
|
2256
2127
|
};
|
|
2257
|
-
EconomicAgreement: {
|
|
2258
|
-
id: string;
|
|
2259
|
-
environmentId: string | null;
|
|
2260
|
-
subjectId: string;
|
|
2261
|
-
usagePricingBinding: components["schemas"]["AgreementUsagePricingBinding"];
|
|
2262
|
-
/** @enum {string} */
|
|
2263
|
-
newMeterPolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
|
|
2264
|
-
/** @enum {string} */
|
|
2265
|
-
newMeasurePolicy: "adopt_at_current_rate" | "exclude_until_renewal" | "require_amendment";
|
|
2266
|
-
effectiveAt: string;
|
|
2267
|
-
expiresAt: string | null;
|
|
2268
|
-
createdAt: string;
|
|
2269
|
-
contractPricingVersions: components["schemas"]["ContractPricingVersion"][];
|
|
2270
|
-
};
|
|
2271
|
-
EconomicAgreementList: {
|
|
2272
|
-
data: components["schemas"]["EconomicAgreement"][];
|
|
2273
|
-
pagination: {
|
|
2274
|
-
total: number;
|
|
2275
|
-
limit: number;
|
|
2276
|
-
offset: number;
|
|
2277
|
-
hasMore: boolean;
|
|
2278
|
-
};
|
|
2279
|
-
};
|
|
2280
2128
|
FrontendBuild: {
|
|
2281
2129
|
id: string;
|
|
2282
2130
|
/** @enum {string} */
|
|
@@ -2355,7 +2203,7 @@ export interface components {
|
|
|
2355
2203
|
updatedAt: string;
|
|
2356
2204
|
};
|
|
2357
2205
|
/** @enum {string} */
|
|
2358
|
-
MakerDelegablePermission: "
|
|
2206
|
+
MakerDelegablePermission: "account_erasure:read" | "agent:configure" | "agent:read" | "analytics:read" | "apply_timeline:read" | "audit_log:export" | "audit_log:read" | "auth_context:issue" | "auth_context:read" | "automation_rule:create" | "automation_rule:delete" | "automation_rule:read" | "automation_rule:update" | "backend:bind" | "backend:create" | "backend:delete" | "backend:read" | "backend_spec:write" | "brand:update" | "bulletin:ack" | "bulletin:read" | "bulletin:resolve" | "business:compile" | "business:cors_update" | "business:create" | "business:docs_update" | "business:preview_env_update" | "business:publish" | "business:rbac_update" | "business:read" | "business_dependents:read" | "business_variable:create" | "business_variable:delete" | "business_variable:operation_read" | "business_variable:read" | "business_variable:revoke" | "business_variable:rotate" | "change_set:propose" | "change_set:read" | "consumer:block" | "consumer:migrate_latest" | "consumer:read" | "consumer:remove" | "consumer:roles_assign" | "denial:read" | "environment:create" | "environment:delete" | "environment:read" | "frontend:read" | "frontend:rollback" | "knowledge:read" | "organization:read" | "organization_bulletin:read" | "persona:issue" | "persona:read" | "persona:revoke" | "persona:rotate" | "personal_data:export" | "plan:read" | "platform_legal:read" | "promo_code:archive" | "promo_code:create" | "promo_code:reactivate" | "promo_code:read" | "promo_code:update" | "rbac:read" | "resource_count:report" | "runtime_token:mint" | "runtime_token:read" | "runtime_token:revoke" | "runtime_token:rotate" | "tax_settings:read" | "tax_settings:update" | "usage:read" | "webhook:create" | "webhook:delete" | "webhook:delivery_read" | "webhook:read" | "webhook:test" | "webhook:update" | "workflow:replay" | "workflow:rollback";
|
|
2359
2207
|
MakerTokenBusinessScopeSummary: {
|
|
2360
2208
|
/** @constant */
|
|
2361
2209
|
mode: "ALL";
|
|
@@ -2434,16 +2282,6 @@ export interface components {
|
|
|
2434
2282
|
data: components["schemas"]["Business"][];
|
|
2435
2283
|
total: number;
|
|
2436
2284
|
};
|
|
2437
|
-
ManagementRollbackRequest: {
|
|
2438
|
-
publishId: string;
|
|
2439
|
-
reason?: string;
|
|
2440
|
-
};
|
|
2441
|
-
ManagementRollbackResponse: {
|
|
2442
|
-
businessId: string;
|
|
2443
|
-
/** @constant */
|
|
2444
|
-
status: "enqueued";
|
|
2445
|
-
rollbackPublishId: string;
|
|
2446
|
-
};
|
|
2447
2285
|
ManagementUsageLimit: {
|
|
2448
2286
|
id: string;
|
|
2449
2287
|
subscriberId: string;
|
|
@@ -2493,7 +2331,7 @@ export interface components {
|
|
|
2493
2331
|
credentialType: "maker_token";
|
|
2494
2332
|
tokenId: string;
|
|
2495
2333
|
organizationId: string;
|
|
2496
|
-
grantedPermissions: ("
|
|
2334
|
+
grantedPermissions: ("account_erasure:read" | "account_erasure:request" | "agent:configure" | "agent:read" | "analytics:read" | "apply_timeline:read" | "audit_log:export" | "audit_log:read" | "auth_context:issue" | "auth_context:read" | "auth_provider_connection:create" | "auth_provider_connection:delete" | "auth_provider_connection:read" | "auth_provider_connection:update" | "automation_rule:create" | "automation_rule:delete" | "automation_rule:read" | "automation_rule:update" | "backend:bind" | "backend:create" | "backend:delete" | "backend:read" | "backend_spec:write" | "brand:update" | "bulletin:ack" | "bulletin:read" | "bulletin:resolve" | "business:compile" | "business:cors_update" | "business:create" | "business:delete" | "business:docs_update" | "business:preview_env_update" | "business:publish" | "business:rbac_update" | "business:read" | "business_dependents:read" | "business_variable:create" | "business_variable:delete" | "business_variable:operation_read" | "business_variable:read" | "business_variable:revoke" | "business_variable:rotate" | "change_set:propose" | "change_set:read" | "consumer:block" | "consumer:migrate_latest" | "consumer:read" | "consumer:remove" | "consumer:roles_assign" | "denial:read" | "environment:create" | "environment:delete" | "environment:read" | "frontend:read" | "frontend:rollback" | "git_connection:create" | "git_connection:delete" | "git_connection:read" | "git_connection:update" | "knowledge:read" | "maker_token:create" | "maker_token:create_org" | "maker_token:read" | "maker_token:revoke" | "maker_token:rotate" | "notification:preferences_read" | "notification:preferences_update" | "organization:create" | "organization:delete" | "organization:manage_billing" | "organization:ownership_transfer" | "organization:read" | "organization_bulletin:read" | "organization_invitation:accept" | "organization_invitation:create" | "organization_invitation:list" | "organization_invitation:revoke" | "organization_member:list" | "organization_member:remove" | "organization_member:update" | "organization_role:create" | "organization_role:delete" | "organization_role:read" | "organization_role:update" | "persona:issue" | "persona:read" | "persona:revoke" | "persona:rotate" | "personal_data:export" | "plan:read" | "platform_legal:accept" | "platform_legal:read" | "product_subscription:create" | "promo_code:archive" | "promo_code:create" | "promo_code:reactivate" | "promo_code:read" | "promo_code:update" | "rbac:read" | "resource_count:report" | "runtime_token:mint" | "runtime_token:read" | "runtime_token:revoke" | "runtime_token:rotate" | "stripe_connection:close" | "stripe_connection:create" | "stripe_connection:read" | "tax_settings:read" | "tax_settings:update" | "usage:read" | "webhook:create" | "webhook:delete" | "webhook:delivery_payload_read" | "webhook:delivery_read" | "webhook:read" | "webhook:test" | "webhook:update" | "workflow:replay" | "workflow:rollback")[];
|
|
2497
2335
|
/** @enum {string} */
|
|
2498
2336
|
businessScopeMode: "ALL" | "SELECTED";
|
|
2499
2337
|
selectedBusinessIds: string[];
|
|
@@ -2507,6 +2345,7 @@ export interface components {
|
|
|
2507
2345
|
usage?: boolean;
|
|
2508
2346
|
access?: boolean;
|
|
2509
2347
|
product?: boolean;
|
|
2348
|
+
marketing?: boolean;
|
|
2510
2349
|
deployments?: boolean;
|
|
2511
2350
|
team?: boolean;
|
|
2512
2351
|
security?: boolean;
|
|
@@ -2786,6 +2625,11 @@ export interface components {
|
|
|
2786
2625
|
canDelete: boolean;
|
|
2787
2626
|
};
|
|
2788
2627
|
};
|
|
2628
|
+
OrganizationSellerDetails: {
|
|
2629
|
+
sellerIdentity: components["schemas"]["SellerIdentity"] | null;
|
|
2630
|
+
/** @enum {string} */
|
|
2631
|
+
status: "not_connected" | "incomplete" | "complete";
|
|
2632
|
+
};
|
|
2789
2633
|
OrganizationSentInvitation: {
|
|
2790
2634
|
id: string;
|
|
2791
2635
|
email: string;
|
|
@@ -2847,7 +2691,35 @@ export interface components {
|
|
|
2847
2691
|
unreadable?: components["schemas"]["BusinessUnreadablePlan"][];
|
|
2848
2692
|
};
|
|
2849
2693
|
/** @enum {string} */
|
|
2850
|
-
PlatformPermission: "
|
|
2694
|
+
PlatformPermission: "account_erasure:read" | "account_erasure:request" | "agent:configure" | "agent:read" | "analytics:read" | "apply_timeline:read" | "audit_log:export" | "audit_log:read" | "auth_context:issue" | "auth_context:read" | "auth_provider_connection:create" | "auth_provider_connection:delete" | "auth_provider_connection:read" | "auth_provider_connection:update" | "automation_rule:create" | "automation_rule:delete" | "automation_rule:read" | "automation_rule:update" | "backend:bind" | "backend:create" | "backend:delete" | "backend:read" | "backend_spec:write" | "brand:update" | "bulletin:ack" | "bulletin:read" | "bulletin:resolve" | "business:compile" | "business:cors_update" | "business:create" | "business:delete" | "business:docs_update" | "business:preview_env_update" | "business:publish" | "business:rbac_update" | "business:read" | "business_dependents:read" | "business_variable:create" | "business_variable:delete" | "business_variable:operation_read" | "business_variable:read" | "business_variable:revoke" | "business_variable:rotate" | "change_set:propose" | "change_set:read" | "consumer:block" | "consumer:migrate_latest" | "consumer:read" | "consumer:remove" | "consumer:roles_assign" | "denial:read" | "environment:create" | "environment:delete" | "environment:read" | "frontend:read" | "frontend:rollback" | "git_connection:create" | "git_connection:delete" | "git_connection:read" | "git_connection:update" | "knowledge:read" | "maker_token:create" | "maker_token:create_org" | "maker_token:read" | "maker_token:revoke" | "maker_token:rotate" | "notification:preferences_read" | "notification:preferences_update" | "organization:create" | "organization:delete" | "organization:manage_billing" | "organization:ownership_transfer" | "organization:read" | "organization_bulletin:read" | "organization_invitation:accept" | "organization_invitation:create" | "organization_invitation:list" | "organization_invitation:revoke" | "organization_member:list" | "organization_member:remove" | "organization_member:update" | "organization_role:create" | "organization_role:delete" | "organization_role:read" | "organization_role:update" | "persona:issue" | "persona:read" | "persona:revoke" | "persona:rotate" | "personal_data:export" | "plan:read" | "platform_legal:accept" | "platform_legal:read" | "product_subscription:create" | "promo_code:archive" | "promo_code:create" | "promo_code:reactivate" | "promo_code:read" | "promo_code:update" | "rbac:read" | "resource_count:report" | "runtime_token:mint" | "runtime_token:read" | "runtime_token:revoke" | "runtime_token:rotate" | "stripe_connection:close" | "stripe_connection:create" | "stripe_connection:read" | "tax_settings:read" | "tax_settings:update" | "usage:read" | "webhook:create" | "webhook:delete" | "webhook:delivery_payload_read" | "webhook:delivery_read" | "webhook:read" | "webhook:test" | "webhook:update" | "workflow:replay" | "workflow:rollback";
|
|
2695
|
+
PortalBalance: {
|
|
2696
|
+
/** @constant */
|
|
2697
|
+
disclosure: "transparent";
|
|
2698
|
+
balances: components["schemas"]["UnitBalance"][];
|
|
2699
|
+
} | {
|
|
2700
|
+
/** @constant */
|
|
2701
|
+
disclosure: "opaque";
|
|
2702
|
+
balances: {
|
|
2703
|
+
unit: {
|
|
2704
|
+
key: string;
|
|
2705
|
+
/** @enum {string} */
|
|
2706
|
+
kind: "money" | "credits";
|
|
2707
|
+
code: string;
|
|
2708
|
+
displayName: string;
|
|
2709
|
+
};
|
|
2710
|
+
display: {
|
|
2711
|
+
/** @constant */
|
|
2712
|
+
kind: "fraction";
|
|
2713
|
+
consumedBasisPoints: number;
|
|
2714
|
+
remainingBasisPoints: number;
|
|
2715
|
+
};
|
|
2716
|
+
exhausted: boolean;
|
|
2717
|
+
/** @enum {string} */
|
|
2718
|
+
source: "live" | "estimate";
|
|
2719
|
+
/** Format: date-time */
|
|
2720
|
+
asOf: string;
|
|
2721
|
+
}[];
|
|
2722
|
+
};
|
|
2851
2723
|
PortalOffsetPagination: {
|
|
2852
2724
|
limit: number;
|
|
2853
2725
|
offset: number;
|
|
@@ -3210,6 +3082,12 @@ export interface components {
|
|
|
3210
3082
|
id: string;
|
|
3211
3083
|
organizationId: string | null;
|
|
3212
3084
|
name: string;
|
|
3085
|
+
sellerLaunchRefusal?: {
|
|
3086
|
+
/** @constant */
|
|
3087
|
+
code: "SELLER_LAUNCH_REQUIREMENTS_MISSING";
|
|
3088
|
+
settingsUrl: string;
|
|
3089
|
+
message: string;
|
|
3090
|
+
};
|
|
3213
3091
|
displayName: string | null;
|
|
3214
3092
|
description: string | null;
|
|
3215
3093
|
/** @enum {string} */
|
|
@@ -3395,6 +3273,22 @@ export interface components {
|
|
|
3395
3273
|
subscriberCount: number;
|
|
3396
3274
|
};
|
|
3397
3275
|
};
|
|
3276
|
+
SellerIdentity: {
|
|
3277
|
+
legalName: string;
|
|
3278
|
+
/** Format: email */
|
|
3279
|
+
supportEmail: string;
|
|
3280
|
+
address: {
|
|
3281
|
+
line1: string;
|
|
3282
|
+
line2?: string;
|
|
3283
|
+
city: string;
|
|
3284
|
+
region?: string;
|
|
3285
|
+
postalCode: string;
|
|
3286
|
+
country: string;
|
|
3287
|
+
};
|
|
3288
|
+
/** Format: uri */
|
|
3289
|
+
supportUrl?: string;
|
|
3290
|
+
registrationNumber?: string;
|
|
3291
|
+
};
|
|
3398
3292
|
ServingState: {
|
|
3399
3293
|
/** @enum {string} */
|
|
3400
3294
|
status: "unconfigured" | "publishing" | "missing" | "invalid" | "coherent";
|
|
@@ -3403,41 +3297,13 @@ export interface components {
|
|
|
3403
3297
|
};
|
|
3404
3298
|
StripeConnectionStatus: {
|
|
3405
3299
|
connected: boolean;
|
|
3300
|
+
/** @constant */
|
|
3301
|
+
reconnectRequired?: true;
|
|
3406
3302
|
/** @enum {string} */
|
|
3407
|
-
source: "
|
|
3408
|
-
isOverride: boolean;
|
|
3303
|
+
source: "organization";
|
|
3409
3304
|
chargesEnabled: boolean;
|
|
3410
3305
|
cardPaymentsEnabled: boolean;
|
|
3411
3306
|
};
|
|
3412
|
-
StripeDisconnectResponse: {
|
|
3413
|
-
/** @constant */
|
|
3414
|
-
disconnected: true;
|
|
3415
|
-
};
|
|
3416
|
-
SubjectPins: {
|
|
3417
|
-
subjectId: string;
|
|
3418
|
-
environmentId: string | null;
|
|
3419
|
-
recurringPricePin: {
|
|
3420
|
-
planKey: string;
|
|
3421
|
-
version: number;
|
|
3422
|
-
recurringFeeCents: number;
|
|
3423
|
-
billingInterval: string;
|
|
3424
|
-
} | null;
|
|
3425
|
-
usagePricingBinding: {
|
|
3426
|
-
/** @constant */
|
|
3427
|
-
source: "agreement";
|
|
3428
|
-
agreementId: string;
|
|
3429
|
-
binding: components["schemas"]["AgreementUsagePricingBinding"];
|
|
3430
|
-
} | {
|
|
3431
|
-
/** @constant */
|
|
3432
|
-
source: "plan_default";
|
|
3433
|
-
/** @constant */
|
|
3434
|
-
mode: "current";
|
|
3435
|
-
};
|
|
3436
|
-
migrateToLatest: {
|
|
3437
|
-
/** @constant */
|
|
3438
|
-
status: "deferred";
|
|
3439
|
-
};
|
|
3440
|
-
};
|
|
3441
3307
|
TaxAddress: {
|
|
3442
3308
|
line1: string | null;
|
|
3443
3309
|
line2: string | null;
|
|
@@ -3522,6 +3388,24 @@ export interface components {
|
|
|
3522
3388
|
rotatedAt: string;
|
|
3523
3389
|
};
|
|
3524
3390
|
};
|
|
3391
|
+
UnitBalance: {
|
|
3392
|
+
unit: {
|
|
3393
|
+
key: string;
|
|
3394
|
+
/** @enum {string} */
|
|
3395
|
+
kind: "money" | "credits";
|
|
3396
|
+
code: string;
|
|
3397
|
+
displayName: string;
|
|
3398
|
+
};
|
|
3399
|
+
available: string;
|
|
3400
|
+
granted: string;
|
|
3401
|
+
revoked: string;
|
|
3402
|
+
consumed: string;
|
|
3403
|
+
exhausted: boolean;
|
|
3404
|
+
/** @enum {string} */
|
|
3405
|
+
source: "live" | "estimate";
|
|
3406
|
+
/** Format: date-time */
|
|
3407
|
+
asOf: string;
|
|
3408
|
+
};
|
|
3525
3409
|
UsageLimitPlan: {
|
|
3526
3410
|
key: string;
|
|
3527
3411
|
version: number;
|
|
@@ -3698,7 +3582,7 @@ export interface components {
|
|
|
3698
3582
|
data: {
|
|
3699
3583
|
events: {
|
|
3700
3584
|
/** @enum {string} */
|
|
3701
|
-
name: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "customer.created" | "customer.deleted" | "customer.member.added" | "customer.member.updated" | "customer.member.removed";
|
|
3585
|
+
name: "subscription.created" | "subscription.updated" | "subscription.canceled" | "payment.succeeded" | "payment.failed" | "entitlement.changed" | "usage.threshold_reached" | "balance.low" | "balance.exhausted" | "customer.created" | "customer.deleted" | "customer.member.added" | "customer.member.updated" | "customer.member.removed";
|
|
3702
3586
|
description: string;
|
|
3703
3587
|
}[];
|
|
3704
3588
|
};
|