@archildata/api-types 0.0.60 → 0.0.61

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.
Files changed (2) hide show
  1. package/index.d.ts +30 -5
  2. 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"];
@@ -3361,7 +3368,7 @@ export interface operations {
3361
3368
  400: components["responses"]["ValidationError"];
3362
3369
  401: components["responses"]["Unauthorized"];
3363
3370
  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 */
3371
+ /** @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
3372
  409: {
3366
3373
  headers: {
3367
3374
  [name: string]: unknown;
@@ -3371,6 +3378,15 @@ export interface operations {
3371
3378
  };
3372
3379
  };
3373
3380
  502: components["responses"]["InternalError"];
3381
+ /** @description Autumn already has this operation and is still applying it (`operation_in_progress`); retry with the same operationId */
3382
+ 503: {
3383
+ headers: {
3384
+ [name: string]: unknown;
3385
+ };
3386
+ content: {
3387
+ "application/json": components["schemas"]["ErrorResponse"];
3388
+ };
3389
+ };
3374
3390
  };
3375
3391
  };
3376
3392
  changeBillingSubscription: {
@@ -3407,6 +3423,15 @@ export interface operations {
3407
3423
  };
3408
3424
  };
3409
3425
  502: components["responses"]["InternalError"];
3426
+ /** @description Autumn already has this operation and is still applying it (`operation_in_progress`); retry with the same operationId */
3427
+ 503: {
3428
+ headers: {
3429
+ [name: string]: unknown;
3430
+ };
3431
+ content: {
3432
+ "application/json": components["schemas"]["ErrorResponse"];
3433
+ };
3434
+ };
3410
3435
  };
3411
3436
  };
3412
3437
  withdrawBillingScheduledChange: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.60",
3
+ "version": "0.0.61",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",