@seamapi/types 1.1163.0 → 1.1164.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.
@@ -91641,6 +91641,52 @@ export type Routes = {
91641
91641
  };
91642
91642
  maxDuration: undefined;
91643
91643
  };
91644
+ '/seam/console/v1/credits/subscription/cancel': {
91645
+ route: '/seam/console/v1/credits/subscription/cancel';
91646
+ method: 'POST';
91647
+ queryParams: {};
91648
+ jsonBody: {
91649
+ organization_id: string;
91650
+ };
91651
+ commonParams: {};
91652
+ formData: {};
91653
+ jsonResponse: {
91654
+ credit_subscription: {
91655
+ credit_subscription_id: string;
91656
+ status: string;
91657
+ package_quantity: number;
91658
+ price_cents: number;
91659
+ current_period_started_at: string | null;
91660
+ current_period_ends_at: string | null;
91661
+ past_due_since: string | null;
91662
+ canceled_at: string | null;
91663
+ };
91664
+ };
91665
+ maxDuration: undefined;
91666
+ };
91667
+ '/seam/console/v1/credits/subscription/resume': {
91668
+ route: '/seam/console/v1/credits/subscription/resume';
91669
+ method: 'POST';
91670
+ queryParams: {};
91671
+ jsonBody: {
91672
+ organization_id: string;
91673
+ };
91674
+ commonParams: {};
91675
+ formData: {};
91676
+ jsonResponse: {
91677
+ credit_subscription: {
91678
+ credit_subscription_id: string;
91679
+ status: string;
91680
+ package_quantity: number;
91681
+ price_cents: number;
91682
+ current_period_started_at: string | null;
91683
+ current_period_ends_at: string | null;
91684
+ past_due_since: string | null;
91685
+ canceled_at: string | null;
91686
+ };
91687
+ };
91688
+ maxDuration: undefined;
91689
+ };
91644
91690
  '/seam/console/v1/get_resource_locator': {
91645
91691
  route: '/seam/console/v1/get_resource_locator';
91646
91692
  method: 'GET' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1163.0",
3
+ "version": "1.1164.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -62194,6 +62194,194 @@ const openapi: OpenAPISpec = {
62194
62194
  'x-undocumented': 'Internal endpoint for Console',
62195
62195
  },
62196
62196
  },
62197
+ '/seam/console/v1/credits/subscription/cancel': {
62198
+ post: {
62199
+ description:
62200
+ "Cancels the organization's credit subscription at the end of its current period. The package stays available until then.",
62201
+ operationId: 'seamConsoleV1CreditsSubscriptionCancelPost',
62202
+ requestBody: {
62203
+ content: {
62204
+ 'application/json': {
62205
+ schema: {
62206
+ properties: {
62207
+ organization_id: { format: 'uuid', type: 'string' },
62208
+ },
62209
+ required: ['organization_id'],
62210
+ type: 'object',
62211
+ },
62212
+ },
62213
+ },
62214
+ },
62215
+ responses: {
62216
+ '200': {
62217
+ content: {
62218
+ 'application/json': {
62219
+ schema: {
62220
+ properties: {
62221
+ credit_subscription: {
62222
+ properties: {
62223
+ canceled_at: {
62224
+ format: 'date-time',
62225
+ nullable: true,
62226
+ type: 'string',
62227
+ },
62228
+ credit_subscription_id: {
62229
+ format: 'uuid',
62230
+ type: 'string',
62231
+ },
62232
+ current_period_ends_at: {
62233
+ format: 'date-time',
62234
+ nullable: true,
62235
+ type: 'string',
62236
+ },
62237
+ current_period_started_at: {
62238
+ format: 'date-time',
62239
+ nullable: true,
62240
+ type: 'string',
62241
+ },
62242
+ package_quantity: { format: 'float', type: 'number' },
62243
+ past_due_since: {
62244
+ format: 'date-time',
62245
+ nullable: true,
62246
+ type: 'string',
62247
+ },
62248
+ price_cents: { format: 'float', type: 'number' },
62249
+ status: { type: 'string' },
62250
+ },
62251
+ required: [
62252
+ 'credit_subscription_id',
62253
+ 'status',
62254
+ 'package_quantity',
62255
+ 'price_cents',
62256
+ 'current_period_started_at',
62257
+ 'current_period_ends_at',
62258
+ 'past_due_since',
62259
+ 'canceled_at',
62260
+ ],
62261
+ type: 'object',
62262
+ },
62263
+ ok: { type: 'boolean' },
62264
+ },
62265
+ required: ['credit_subscription', 'ok'],
62266
+ type: 'object',
62267
+ },
62268
+ },
62269
+ },
62270
+ description: 'OK',
62271
+ },
62272
+ '400': { description: 'Bad Request' },
62273
+ '401': { description: 'Unauthorized' },
62274
+ },
62275
+ security: [{ console_session_without_workspace: [] }],
62276
+ summary: '/seam/console/v1/credits/subscription/cancel',
62277
+ tags: [],
62278
+ 'x-fern-sdk-group-name': [
62279
+ 'seam',
62280
+ 'console',
62281
+ 'v1',
62282
+ 'credits',
62283
+ 'subscription',
62284
+ ],
62285
+ 'x-fern-sdk-method-name': 'cancel',
62286
+ 'x-response-key': null,
62287
+ 'x-title': 'Cancel a Credit Subscription at Period End',
62288
+ 'x-undocumented': 'Internal endpoint for Console',
62289
+ },
62290
+ },
62291
+ '/seam/console/v1/credits/subscription/resume': {
62292
+ post: {
62293
+ description:
62294
+ 'Undoes a cancellation that has not taken effect yet, so the credit subscription renews at the end of its current period.',
62295
+ operationId: 'seamConsoleV1CreditsSubscriptionResumePost',
62296
+ requestBody: {
62297
+ content: {
62298
+ 'application/json': {
62299
+ schema: {
62300
+ properties: {
62301
+ organization_id: { format: 'uuid', type: 'string' },
62302
+ },
62303
+ required: ['organization_id'],
62304
+ type: 'object',
62305
+ },
62306
+ },
62307
+ },
62308
+ },
62309
+ responses: {
62310
+ '200': {
62311
+ content: {
62312
+ 'application/json': {
62313
+ schema: {
62314
+ properties: {
62315
+ credit_subscription: {
62316
+ properties: {
62317
+ canceled_at: {
62318
+ format: 'date-time',
62319
+ nullable: true,
62320
+ type: 'string',
62321
+ },
62322
+ credit_subscription_id: {
62323
+ format: 'uuid',
62324
+ type: 'string',
62325
+ },
62326
+ current_period_ends_at: {
62327
+ format: 'date-time',
62328
+ nullable: true,
62329
+ type: 'string',
62330
+ },
62331
+ current_period_started_at: {
62332
+ format: 'date-time',
62333
+ nullable: true,
62334
+ type: 'string',
62335
+ },
62336
+ package_quantity: { format: 'float', type: 'number' },
62337
+ past_due_since: {
62338
+ format: 'date-time',
62339
+ nullable: true,
62340
+ type: 'string',
62341
+ },
62342
+ price_cents: { format: 'float', type: 'number' },
62343
+ status: { type: 'string' },
62344
+ },
62345
+ required: [
62346
+ 'credit_subscription_id',
62347
+ 'status',
62348
+ 'package_quantity',
62349
+ 'price_cents',
62350
+ 'current_period_started_at',
62351
+ 'current_period_ends_at',
62352
+ 'past_due_since',
62353
+ 'canceled_at',
62354
+ ],
62355
+ type: 'object',
62356
+ },
62357
+ ok: { type: 'boolean' },
62358
+ },
62359
+ required: ['credit_subscription', 'ok'],
62360
+ type: 'object',
62361
+ },
62362
+ },
62363
+ },
62364
+ description: 'OK',
62365
+ },
62366
+ '400': { description: 'Bad Request' },
62367
+ '401': { description: 'Unauthorized' },
62368
+ },
62369
+ security: [{ console_session_without_workspace: [] }],
62370
+ summary: '/seam/console/v1/credits/subscription/resume',
62371
+ tags: [],
62372
+ 'x-fern-sdk-group-name': [
62373
+ 'seam',
62374
+ 'console',
62375
+ 'v1',
62376
+ 'credits',
62377
+ 'subscription',
62378
+ ],
62379
+ 'x-fern-sdk-method-name': 'resume',
62380
+ 'x-response-key': null,
62381
+ 'x-title': 'Resume a Canceled Credit Subscription',
62382
+ 'x-undocumented': 'Internal endpoint for Console',
62383
+ },
62384
+ },
62197
62385
  '/seam/console/v1/get_resource_locator': {
62198
62386
  get: {
62199
62387
  description:
@@ -109500,6 +109500,52 @@ export type Routes = {
109500
109500
  }
109501
109501
  maxDuration: undefined
109502
109502
  }
109503
+ '/seam/console/v1/credits/subscription/cancel': {
109504
+ route: '/seam/console/v1/credits/subscription/cancel'
109505
+ method: 'POST'
109506
+ queryParams: {}
109507
+ jsonBody: {
109508
+ organization_id: string
109509
+ }
109510
+ commonParams: {}
109511
+ formData: {}
109512
+ jsonResponse: {
109513
+ credit_subscription: {
109514
+ credit_subscription_id: string
109515
+ status: string
109516
+ package_quantity: number
109517
+ price_cents: number
109518
+ current_period_started_at: string | null
109519
+ current_period_ends_at: string | null
109520
+ past_due_since: string | null
109521
+ canceled_at: string | null
109522
+ }
109523
+ }
109524
+ maxDuration: undefined
109525
+ }
109526
+ '/seam/console/v1/credits/subscription/resume': {
109527
+ route: '/seam/console/v1/credits/subscription/resume'
109528
+ method: 'POST'
109529
+ queryParams: {}
109530
+ jsonBody: {
109531
+ organization_id: string
109532
+ }
109533
+ commonParams: {}
109534
+ formData: {}
109535
+ jsonResponse: {
109536
+ credit_subscription: {
109537
+ credit_subscription_id: string
109538
+ status: string
109539
+ package_quantity: number
109540
+ price_cents: number
109541
+ current_period_started_at: string | null
109542
+ current_period_ends_at: string | null
109543
+ past_due_since: string | null
109544
+ canceled_at: string | null
109545
+ }
109546
+ }
109547
+ maxDuration: undefined
109548
+ }
109503
109549
  '/seam/console/v1/get_resource_locator': {
109504
109550
  route: '/seam/console/v1/get_resource_locator'
109505
109551
  method: 'GET' | 'POST'