@archildata/api-types 0.0.60 → 0.0.62
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/index.d.ts +32 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1240,7 +1240,7 @@ export interface components {
|
|
|
1240
1240
|
/** @enum {string} */
|
|
1241
1241
|
billingMode: "not_setup" | "self_serve" | "managed";
|
|
1242
1242
|
/** @enum {string} */
|
|
1243
|
-
plan: "developer" | "team" | "enterprise" | "unknown";
|
|
1243
|
+
plan: "free" | "developer" | "team" | "enterprise" | "unknown";
|
|
1244
1244
|
/** @description Current subscription status, `none`, or `managed`. */
|
|
1245
1245
|
subscriptionStatus: string;
|
|
1246
1246
|
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
@@ -1466,6 +1466,8 @@ export interface components {
|
|
|
1466
1466
|
consent: true;
|
|
1467
1467
|
paymentMethodId?: string;
|
|
1468
1468
|
setupIntentId?: string;
|
|
1469
|
+
/** @description Start Team on its free trial instead of billing it now. The card in paymentMethodId or setupIntentId is charged when the trial ends. Team only. Refused with trial_unavailable once the account has had the trial, and with trial_not_offered where free trials are not offered. */
|
|
1470
|
+
trial?: boolean;
|
|
1469
1471
|
};
|
|
1470
1472
|
BillingChangeRequest: {
|
|
1471
1473
|
/** @enum {string} */
|
|
@@ -1525,7 +1527,7 @@ export interface components {
|
|
|
1525
1527
|
/** @enum {string} */
|
|
1526
1528
|
kind: "subscribe" | "upgrade" | "downgrade" | "next_invoice";
|
|
1527
1529
|
/** @enum {string} */
|
|
1528
|
-
currentPlan: "none" | "developer" | "team" | "enterprise" | "unknown";
|
|
1530
|
+
currentPlan: "none" | "free" | "developer" | "team" | "enterprise" | "unknown";
|
|
1529
1531
|
/** @enum {string} */
|
|
1530
1532
|
targetPlan?: "developer" | "team";
|
|
1531
1533
|
/** @enum {string} */
|
|
@@ -1563,13 +1565,18 @@ export interface components {
|
|
|
1563
1565
|
};
|
|
1564
1566
|
BillingSubscriptionState: {
|
|
1565
1567
|
/** @enum {string} */
|
|
1566
|
-
plan: "developer" | "team" | "enterprise" | "unknown";
|
|
1568
|
+
plan: "free" | "developer" | "team" | "enterprise" | "unknown";
|
|
1567
1569
|
/** @description Current subscription status, or `none`. */
|
|
1568
1570
|
subscriptionStatus: string;
|
|
1569
1571
|
billingPeriod?: components["schemas"]["BillingPeriod"];
|
|
1570
1572
|
/** Format: int64 */
|
|
1571
1573
|
scheduledCancellationAt?: number;
|
|
1572
1574
|
scheduledChange?: components["schemas"]["BillingScheduledChange"];
|
|
1575
|
+
/**
|
|
1576
|
+
* Format: int64
|
|
1577
|
+
* @description When a free trial running now ends and the plan starts billing (Unix seconds).
|
|
1578
|
+
*/
|
|
1579
|
+
trialEndsAt?: number;
|
|
1573
1580
|
};
|
|
1574
1581
|
ApiResponse_BillingSubscriptionState: {
|
|
1575
1582
|
success: boolean;
|
|
@@ -1600,7 +1607,7 @@ export interface components {
|
|
|
1600
1607
|
*/
|
|
1601
1608
|
state?: "applied" | "pending" | "scheduled";
|
|
1602
1609
|
/** @enum {string} */
|
|
1603
|
-
plan?: "developer" | "team" | "enterprise" | "unknown";
|
|
1610
|
+
plan?: "free" | "developer" | "team" | "enterprise" | "unknown";
|
|
1604
1611
|
subscriptionStatus?: string;
|
|
1605
1612
|
scheduledChange?: components["schemas"]["BillingScheduledChange"];
|
|
1606
1613
|
nextAction?: components["schemas"]["BillingNextAction"];
|
|
@@ -2570,6 +2577,8 @@ export interface components {
|
|
|
2570
2577
|
name: string;
|
|
2571
2578
|
/** @description Token description */
|
|
2572
2579
|
description?: string;
|
|
2580
|
+
/** @description Permissions granted to the token. When omitted, the token receives full access (`*`). */
|
|
2581
|
+
permissions?: string[];
|
|
2573
2582
|
};
|
|
2574
2583
|
ApiTokenResponse: {
|
|
2575
2584
|
/** @description Token hash/ID */
|
|
@@ -3361,7 +3370,7 @@ export interface operations {
|
|
|
3361
3370
|
400: components["responses"]["ValidationError"];
|
|
3362
3371
|
401: components["responses"]["Unauthorized"];
|
|
3363
3372
|
404: components["responses"]["NotFound"];
|
|
3364
|
-
/** @description The account already has a subscription (`already_subscribed`), the operationId was used for a different request (`operation_conflict`), or the setup is incomplete (`setup_incomplete`); the current state is in data */
|
|
3373
|
+
/** @description The account already has a subscription (`already_subscribed`), the operationId was used for a different request (`operation_conflict`), or the setup is incomplete (`setup_incomplete`); the current state is in data. A trial is refused when the account has had it (`trial_unavailable`) or free trials are not offered (`trial_not_offered`). */
|
|
3365
3374
|
409: {
|
|
3366
3375
|
headers: {
|
|
3367
3376
|
[name: string]: unknown;
|
|
@@ -3371,6 +3380,15 @@ export interface operations {
|
|
|
3371
3380
|
};
|
|
3372
3381
|
};
|
|
3373
3382
|
502: components["responses"]["InternalError"];
|
|
3383
|
+
/** @description Autumn already has this operation and is still applying it (`operation_in_progress`); retry with the same operationId */
|
|
3384
|
+
503: {
|
|
3385
|
+
headers: {
|
|
3386
|
+
[name: string]: unknown;
|
|
3387
|
+
};
|
|
3388
|
+
content: {
|
|
3389
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3390
|
+
};
|
|
3391
|
+
};
|
|
3374
3392
|
};
|
|
3375
3393
|
};
|
|
3376
3394
|
changeBillingSubscription: {
|
|
@@ -3407,6 +3425,15 @@ export interface operations {
|
|
|
3407
3425
|
};
|
|
3408
3426
|
};
|
|
3409
3427
|
502: components["responses"]["InternalError"];
|
|
3428
|
+
/** @description Autumn already has this operation and is still applying it (`operation_in_progress`); retry with the same operationId */
|
|
3429
|
+
503: {
|
|
3430
|
+
headers: {
|
|
3431
|
+
[name: string]: unknown;
|
|
3432
|
+
};
|
|
3433
|
+
content: {
|
|
3434
|
+
"application/json": components["schemas"]["ErrorResponse"];
|
|
3435
|
+
};
|
|
3436
|
+
};
|
|
3410
3437
|
};
|
|
3411
3438
|
};
|
|
3412
3439
|
withdrawBillingScheduledChange: {
|