@seamapi/types 1.1166.0 → 1.1168.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.
@@ -91609,6 +91609,8 @@ export type Routes = {
91609
91609
  status: string;
91610
91610
  hosted_invoice_url: string | null;
91611
91611
  issued_at: string;
91612
+ package_quantity: number | null;
91613
+ kind: 'package' | 'usage' | 'other';
91612
91614
  }[];
91613
91615
  };
91614
91616
  maxDuration: undefined;
@@ -91651,6 +91653,8 @@ export type Routes = {
91651
91653
  status: string;
91652
91654
  package_quantity: number;
91653
91655
  hosted_invoice_url: string | null;
91656
+ checkout_state: ('awaiting_checkout' | 'processing') | null;
91657
+ checkout_url: string | null;
91654
91658
  failure_reason: string | null;
91655
91659
  };
91656
91660
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1166.0",
3
+ "version": "1.1168.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -61721,7 +61721,7 @@ const openapi: OpenAPISpec = {
61721
61721
  '/seam/console/v1/credits/checkout/start': {
61722
61722
  post: {
61723
61723
  description:
61724
- "Starts the Stripe Checkout for the first purchase of a monthly token package, or resumes the organization's pending one.",
61724
+ "Starts the Stripe Checkout for the first purchase of a monthly token package, or replaces the organization's unfinished one.",
61725
61725
  operationId: 'seamConsoleV1CreditsCheckoutStartPost',
61726
61726
  requestBody: {
61727
61727
  content: {
@@ -62008,6 +62008,15 @@ const openapi: OpenAPISpec = {
62008
62008
  },
62009
62009
  invoice_id: { type: 'string' },
62010
62010
  issued_at: { format: 'date-time', type: 'string' },
62011
+ kind: {
62012
+ enum: ['package', 'usage', 'other'],
62013
+ type: 'string',
62014
+ },
62015
+ package_quantity: {
62016
+ format: 'float',
62017
+ nullable: true,
62018
+ type: 'number',
62019
+ },
62011
62020
  period_ends_at: {
62012
62021
  format: 'date-time',
62013
62022
  type: 'string',
@@ -62027,6 +62036,8 @@ const openapi: OpenAPISpec = {
62027
62036
  'status',
62028
62037
  'hosted_invoice_url',
62029
62038
  'issued_at',
62039
+ 'package_quantity',
62040
+ 'kind',
62030
62041
  ],
62031
62042
  type: 'object',
62032
62043
  },
@@ -62161,7 +62172,7 @@ const openapi: OpenAPISpec = {
62161
62172
  '/seam/console/v1/credits/purchases/get': {
62162
62173
  post: {
62163
62174
  description:
62164
- 'Advances a pending credit subscription purchase and returns its status.',
62175
+ 'Advances a pending credit subscription purchase and returns its status, including whether its Stripe Checkout was left unfinished.',
62165
62176
  operationId: 'seamConsoleV1CreditsPurchasesGetPost',
62166
62177
  requestBody: {
62167
62178
  content: {
@@ -62186,6 +62197,12 @@ const openapi: OpenAPISpec = {
62186
62197
  ok: { type: 'boolean' },
62187
62198
  purchase: {
62188
62199
  properties: {
62200
+ checkout_state: {
62201
+ enum: ['awaiting_checkout', 'processing'],
62202
+ nullable: true,
62203
+ type: 'string',
62204
+ },
62205
+ checkout_url: { nullable: true, type: 'string' },
62189
62206
  failure_reason: { nullable: true, type: 'string' },
62190
62207
  hosted_invoice_url: { nullable: true, type: 'string' },
62191
62208
  package_quantity: { format: 'float', type: 'number' },
@@ -62195,6 +62212,8 @@ const openapi: OpenAPISpec = {
62195
62212
  'status',
62196
62213
  'package_quantity',
62197
62214
  'hosted_invoice_url',
62215
+ 'checkout_state',
62216
+ 'checkout_url',
62198
62217
  'failure_reason',
62199
62218
  ],
62200
62219
  type: 'object',
@@ -109468,6 +109468,8 @@ export type Routes = {
109468
109468
  status: string
109469
109469
  hosted_invoice_url: string | null
109470
109470
  issued_at: string
109471
+ package_quantity: number | null
109472
+ kind: 'package' | 'usage' | 'other'
109471
109473
  }[]
109472
109474
  }
109473
109475
  maxDuration: undefined
@@ -109510,6 +109512,8 @@ export type Routes = {
109510
109512
  status: string
109511
109513
  package_quantity: number
109512
109514
  hosted_invoice_url: string | null
109515
+ checkout_state: ('awaiting_checkout' | 'processing') | null
109516
+ checkout_url: string | null
109513
109517
  failure_reason: string | null
109514
109518
  }
109515
109519
  }