@seamapi/types 1.1175.0 → 1.1177.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.
@@ -91561,6 +91561,10 @@ export type Routes = {
91561
91561
  current_period_started_at: string | null;
91562
91562
  current_period_ends_at: string | null;
91563
91563
  past_due_since: string | null;
91564
+ payment_failure: {
91565
+ grace_ends_at: string;
91566
+ amount_due_cents: number | null;
91567
+ } | null;
91564
91568
  canceled_at: string | null;
91565
91569
  scheduled_package_quantity: number | null;
91566
91570
  scheduled_price_cents: number | null;
@@ -91662,10 +91666,64 @@ export type Routes = {
91662
91666
  recommendation_basis: {
91663
91667
  trailing_30_day_tokens: number | null;
91664
91668
  is_projected_from_trial: boolean;
91669
+ exceeds_self_serve: boolean;
91665
91670
  };
91666
91671
  };
91667
91672
  maxDuration: undefined;
91668
91673
  };
91674
+ '/seam/console/v1/credits/payment_method/confirm': {
91675
+ route: '/seam/console/v1/credits/payment_method/confirm';
91676
+ method: 'POST';
91677
+ queryParams: {};
91678
+ jsonBody: {
91679
+ organization_id: string;
91680
+ checkout_session_id: string;
91681
+ };
91682
+ commonParams: {};
91683
+ formData: {};
91684
+ jsonResponse: {
91685
+ credit_subscription: {
91686
+ credit_subscription_id: string;
91687
+ status: string;
91688
+ package_quantity: number;
91689
+ price_cents: number;
91690
+ current_period_started_at: string | null;
91691
+ current_period_ends_at: string | null;
91692
+ past_due_since: string | null;
91693
+ payment_failure: {
91694
+ grace_ends_at: string;
91695
+ amount_due_cents: number | null;
91696
+ } | null;
91697
+ canceled_at: string | null;
91698
+ scheduled_package_quantity: number | null;
91699
+ scheduled_price_cents: number | null;
91700
+ scheduled_change_at: string | null;
91701
+ pending_upgrade: {
91702
+ package_quantity: number;
91703
+ hosted_invoice_url: string | null;
91704
+ } | null;
91705
+ } | null;
91706
+ paid_invoice_count: number;
91707
+ unpaid_invoice_count: number;
91708
+ };
91709
+ maxDuration: undefined;
91710
+ };
91711
+ '/seam/console/v1/credits/payment_method/update': {
91712
+ route: '/seam/console/v1/credits/payment_method/update';
91713
+ method: 'POST';
91714
+ queryParams: {};
91715
+ jsonBody: {
91716
+ organization_id: string;
91717
+ success_url: string;
91718
+ cancel_url: string;
91719
+ };
91720
+ commonParams: {};
91721
+ formData: {};
91722
+ jsonResponse: {
91723
+ checkout_url: string;
91724
+ };
91725
+ maxDuration: undefined;
91726
+ };
91669
91727
  '/seam/console/v1/credits/purchases/get': {
91670
91728
  route: '/seam/console/v1/credits/purchases/get';
91671
91729
  method: 'POST';
@@ -91706,6 +91764,10 @@ export type Routes = {
91706
91764
  current_period_started_at: string | null;
91707
91765
  current_period_ends_at: string | null;
91708
91766
  past_due_since: string | null;
91767
+ payment_failure: {
91768
+ grace_ends_at: string;
91769
+ amount_due_cents: number | null;
91770
+ } | null;
91709
91771
  canceled_at: string | null;
91710
91772
  scheduled_package_quantity: number | null;
91711
91773
  scheduled_price_cents: number | null;
@@ -91737,6 +91799,10 @@ export type Routes = {
91737
91799
  current_period_started_at: string | null;
91738
91800
  current_period_ends_at: string | null;
91739
91801
  past_due_since: string | null;
91802
+ payment_failure: {
91803
+ grace_ends_at: string;
91804
+ amount_due_cents: number | null;
91805
+ } | null;
91740
91806
  canceled_at: string | null;
91741
91807
  scheduled_package_quantity: number | null;
91742
91808
  scheduled_price_cents: number | null;
@@ -91773,6 +91839,10 @@ export type Routes = {
91773
91839
  current_period_started_at: string | null;
91774
91840
  current_period_ends_at: string | null;
91775
91841
  past_due_since: string | null;
91842
+ payment_failure: {
91843
+ grace_ends_at: string;
91844
+ amount_due_cents: number | null;
91845
+ } | null;
91776
91846
  canceled_at: string | null;
91777
91847
  scheduled_package_quantity: number | null;
91778
91848
  scheduled_price_cents: number | null;
@@ -91803,6 +91873,10 @@ export type Routes = {
91803
91873
  current_period_started_at: string | null;
91804
91874
  current_period_ends_at: string | null;
91805
91875
  past_due_since: string | null;
91876
+ payment_failure: {
91877
+ grace_ends_at: string;
91878
+ amount_due_cents: number | null;
91879
+ } | null;
91806
91880
  canceled_at: string | null;
91807
91881
  scheduled_package_quantity: number | null;
91808
91882
  scheduled_price_cents: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1175.0",
3
+ "version": "1.1177.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -61867,6 +61867,22 @@ const openapi: OpenAPISpec = {
61867
61867
  nullable: true,
61868
61868
  type: 'string',
61869
61869
  },
61870
+ payment_failure: {
61871
+ nullable: true,
61872
+ properties: {
61873
+ amount_due_cents: {
61874
+ format: 'float',
61875
+ nullable: true,
61876
+ type: 'number',
61877
+ },
61878
+ grace_ends_at: {
61879
+ format: 'date-time',
61880
+ type: 'string',
61881
+ },
61882
+ },
61883
+ required: ['grace_ends_at', 'amount_due_cents'],
61884
+ type: 'object',
61885
+ },
61870
61886
  pending_upgrade: {
61871
61887
  nullable: true,
61872
61888
  properties: {
@@ -61911,6 +61927,7 @@ const openapi: OpenAPISpec = {
61911
61927
  'current_period_started_at',
61912
61928
  'current_period_ends_at',
61913
61929
  'past_due_since',
61930
+ 'payment_failure',
61914
61931
  'canceled_at',
61915
61932
  'scheduled_package_quantity',
61916
61933
  'scheduled_price_cents',
@@ -62219,7 +62236,7 @@ const openapi: OpenAPISpec = {
62219
62236
  '/seam/console/v1/credits/packages/list': {
62220
62237
  post: {
62221
62238
  description:
62222
- "Lists the purchasable monthly token packages and the package recommended for the organization's trailing 30 days of usage.",
62239
+ "Lists the self-serve monthly token packages and the package recommended for the organization's trailing 30 days of usage.",
62223
62240
  operationId: 'seamConsoleV1CreditsPackagesListPost',
62224
62241
  requestBody: {
62225
62242
  content: {
@@ -62267,6 +62284,7 @@ const openapi: OpenAPISpec = {
62267
62284
  },
62268
62285
  recommendation_basis: {
62269
62286
  properties: {
62287
+ exceeds_self_serve: { type: 'boolean' },
62270
62288
  is_projected_from_trial: { type: 'boolean' },
62271
62289
  trailing_30_day_tokens: {
62272
62290
  format: 'float',
@@ -62277,6 +62295,7 @@ const openapi: OpenAPISpec = {
62277
62295
  required: [
62278
62296
  'trailing_30_day_tokens',
62279
62297
  'is_projected_from_trial',
62298
+ 'exceeds_self_serve',
62280
62299
  ],
62281
62300
  type: 'object',
62282
62301
  },
@@ -62317,6 +62336,215 @@ const openapi: OpenAPISpec = {
62317
62336
  'x-undocumented': 'Internal endpoint for Console',
62318
62337
  },
62319
62338
  },
62339
+ '/seam/console/v1/credits/payment_method/confirm': {
62340
+ post: {
62341
+ description:
62342
+ "Finishes a payment method update after the Stripe Checkout returns: saves the card as the default, retries the open credit invoices and refreshes the subscription's payment status. Safe to call more than once.",
62343
+ operationId: 'seamConsoleV1CreditsPaymentMethodConfirmPost',
62344
+ requestBody: {
62345
+ content: {
62346
+ 'application/json': {
62347
+ schema: {
62348
+ properties: {
62349
+ checkout_session_id: { minLength: 1, type: 'string' },
62350
+ organization_id: { format: 'uuid', type: 'string' },
62351
+ },
62352
+ required: ['organization_id', 'checkout_session_id'],
62353
+ type: 'object',
62354
+ },
62355
+ },
62356
+ },
62357
+ },
62358
+ responses: {
62359
+ '200': {
62360
+ content: {
62361
+ 'application/json': {
62362
+ schema: {
62363
+ properties: {
62364
+ credit_subscription: {
62365
+ nullable: true,
62366
+ properties: {
62367
+ canceled_at: {
62368
+ format: 'date-time',
62369
+ nullable: true,
62370
+ type: 'string',
62371
+ },
62372
+ credit_subscription_id: {
62373
+ format: 'uuid',
62374
+ type: 'string',
62375
+ },
62376
+ current_period_ends_at: {
62377
+ format: 'date-time',
62378
+ nullable: true,
62379
+ type: 'string',
62380
+ },
62381
+ current_period_started_at: {
62382
+ format: 'date-time',
62383
+ nullable: true,
62384
+ type: 'string',
62385
+ },
62386
+ package_quantity: { format: 'float', type: 'number' },
62387
+ past_due_since: {
62388
+ format: 'date-time',
62389
+ nullable: true,
62390
+ type: 'string',
62391
+ },
62392
+ payment_failure: {
62393
+ nullable: true,
62394
+ properties: {
62395
+ amount_due_cents: {
62396
+ format: 'float',
62397
+ nullable: true,
62398
+ type: 'number',
62399
+ },
62400
+ grace_ends_at: {
62401
+ format: 'date-time',
62402
+ type: 'string',
62403
+ },
62404
+ },
62405
+ required: ['grace_ends_at', 'amount_due_cents'],
62406
+ type: 'object',
62407
+ },
62408
+ pending_upgrade: {
62409
+ nullable: true,
62410
+ properties: {
62411
+ hosted_invoice_url: {
62412
+ nullable: true,
62413
+ type: 'string',
62414
+ },
62415
+ package_quantity: {
62416
+ format: 'float',
62417
+ type: 'number',
62418
+ },
62419
+ },
62420
+ required: ['package_quantity', 'hosted_invoice_url'],
62421
+ type: 'object',
62422
+ },
62423
+ price_cents: { format: 'float', type: 'number' },
62424
+ scheduled_change_at: {
62425
+ format: 'date-time',
62426
+ nullable: true,
62427
+ type: 'string',
62428
+ },
62429
+ scheduled_package_quantity: {
62430
+ format: 'float',
62431
+ nullable: true,
62432
+ type: 'number',
62433
+ },
62434
+ scheduled_price_cents: {
62435
+ format: 'float',
62436
+ nullable: true,
62437
+ type: 'number',
62438
+ },
62439
+ status: { type: 'string' },
62440
+ },
62441
+ required: [
62442
+ 'credit_subscription_id',
62443
+ 'status',
62444
+ 'package_quantity',
62445
+ 'price_cents',
62446
+ 'current_period_started_at',
62447
+ 'current_period_ends_at',
62448
+ 'past_due_since',
62449
+ 'payment_failure',
62450
+ 'canceled_at',
62451
+ 'scheduled_package_quantity',
62452
+ 'scheduled_price_cents',
62453
+ 'scheduled_change_at',
62454
+ 'pending_upgrade',
62455
+ ],
62456
+ type: 'object',
62457
+ },
62458
+ ok: { type: 'boolean' },
62459
+ paid_invoice_count: { format: 'float', type: 'number' },
62460
+ unpaid_invoice_count: { format: 'float', type: 'number' },
62461
+ },
62462
+ required: [
62463
+ 'credit_subscription',
62464
+ 'paid_invoice_count',
62465
+ 'unpaid_invoice_count',
62466
+ 'ok',
62467
+ ],
62468
+ type: 'object',
62469
+ },
62470
+ },
62471
+ },
62472
+ description: 'OK',
62473
+ },
62474
+ '400': { description: 'Bad Request' },
62475
+ '401': { description: 'Unauthorized' },
62476
+ },
62477
+ security: [{ console_session_without_workspace: [] }],
62478
+ summary: '/seam/console/v1/credits/payment_method/confirm',
62479
+ tags: [],
62480
+ 'x-fern-sdk-group-name': [
62481
+ 'seam',
62482
+ 'console',
62483
+ 'v1',
62484
+ 'credits',
62485
+ 'payment_method',
62486
+ ],
62487
+ 'x-fern-sdk-method-name': 'confirm',
62488
+ 'x-response-key': null,
62489
+ 'x-title': 'Confirm a Credit Payment Method Update',
62490
+ 'x-undocumented': 'Internal endpoint for Console',
62491
+ },
62492
+ },
62493
+ '/seam/console/v1/credits/payment_method/update': {
62494
+ post: {
62495
+ description:
62496
+ "Starts a Stripe Checkout that saves a new default card for the organization's credit subscription. Open credit invoices are retried once the card is confirmed.",
62497
+ operationId: 'seamConsoleV1CreditsPaymentMethodUpdatePost',
62498
+ requestBody: {
62499
+ content: {
62500
+ 'application/json': {
62501
+ schema: {
62502
+ properties: {
62503
+ cancel_url: { format: 'uri', type: 'string' },
62504
+ organization_id: { format: 'uuid', type: 'string' },
62505
+ success_url: { format: 'uri', type: 'string' },
62506
+ },
62507
+ required: ['organization_id', 'success_url', 'cancel_url'],
62508
+ type: 'object',
62509
+ },
62510
+ },
62511
+ },
62512
+ },
62513
+ responses: {
62514
+ '200': {
62515
+ content: {
62516
+ 'application/json': {
62517
+ schema: {
62518
+ properties: {
62519
+ checkout_url: { format: 'uri', type: 'string' },
62520
+ ok: { type: 'boolean' },
62521
+ },
62522
+ required: ['checkout_url', 'ok'],
62523
+ type: 'object',
62524
+ },
62525
+ },
62526
+ },
62527
+ description: 'OK',
62528
+ },
62529
+ '400': { description: 'Bad Request' },
62530
+ '401': { description: 'Unauthorized' },
62531
+ },
62532
+ security: [{ console_session_without_workspace: [] }],
62533
+ summary: '/seam/console/v1/credits/payment_method/update',
62534
+ tags: [],
62535
+ 'x-fern-sdk-group-name': [
62536
+ 'seam',
62537
+ 'console',
62538
+ 'v1',
62539
+ 'credits',
62540
+ 'payment_method',
62541
+ ],
62542
+ 'x-fern-sdk-method-name': 'update',
62543
+ 'x-response-key': null,
62544
+ 'x-title': 'Start a Credit Payment Method Update',
62545
+ 'x-undocumented': 'Internal endpoint for Console',
62546
+ },
62547
+ },
62320
62548
  '/seam/console/v1/credits/purchases/get': {
62321
62549
  post: {
62322
62550
  description:
@@ -62445,6 +62673,22 @@ const openapi: OpenAPISpec = {
62445
62673
  nullable: true,
62446
62674
  type: 'string',
62447
62675
  },
62676
+ payment_failure: {
62677
+ nullable: true,
62678
+ properties: {
62679
+ amount_due_cents: {
62680
+ format: 'float',
62681
+ nullable: true,
62682
+ type: 'number',
62683
+ },
62684
+ grace_ends_at: {
62685
+ format: 'date-time',
62686
+ type: 'string',
62687
+ },
62688
+ },
62689
+ required: ['grace_ends_at', 'amount_due_cents'],
62690
+ type: 'object',
62691
+ },
62448
62692
  pending_upgrade: {
62449
62693
  nullable: true,
62450
62694
  properties: {
@@ -62486,6 +62730,7 @@ const openapi: OpenAPISpec = {
62486
62730
  'current_period_started_at',
62487
62731
  'current_period_ends_at',
62488
62732
  'past_due_since',
62733
+ 'payment_failure',
62489
62734
  'canceled_at',
62490
62735
  'scheduled_package_quantity',
62491
62736
  'scheduled_price_cents',
@@ -62608,6 +62853,22 @@ const openapi: OpenAPISpec = {
62608
62853
  nullable: true,
62609
62854
  type: 'string',
62610
62855
  },
62856
+ payment_failure: {
62857
+ nullable: true,
62858
+ properties: {
62859
+ amount_due_cents: {
62860
+ format: 'float',
62861
+ nullable: true,
62862
+ type: 'number',
62863
+ },
62864
+ grace_ends_at: {
62865
+ format: 'date-time',
62866
+ type: 'string',
62867
+ },
62868
+ },
62869
+ required: ['grace_ends_at', 'amount_due_cents'],
62870
+ type: 'object',
62871
+ },
62611
62872
  pending_upgrade: {
62612
62873
  nullable: true,
62613
62874
  properties: {
@@ -62649,6 +62910,7 @@ const openapi: OpenAPISpec = {
62649
62910
  'current_period_started_at',
62650
62911
  'current_period_ends_at',
62651
62912
  'past_due_since',
62913
+ 'payment_failure',
62652
62914
  'canceled_at',
62653
62915
  'scheduled_package_quantity',
62654
62916
  'scheduled_price_cents',
@@ -62736,6 +62998,22 @@ const openapi: OpenAPISpec = {
62736
62998
  nullable: true,
62737
62999
  type: 'string',
62738
63000
  },
63001
+ payment_failure: {
63002
+ nullable: true,
63003
+ properties: {
63004
+ amount_due_cents: {
63005
+ format: 'float',
63006
+ nullable: true,
63007
+ type: 'number',
63008
+ },
63009
+ grace_ends_at: {
63010
+ format: 'date-time',
63011
+ type: 'string',
63012
+ },
63013
+ },
63014
+ required: ['grace_ends_at', 'amount_due_cents'],
63015
+ type: 'object',
63016
+ },
62739
63017
  pending_upgrade: {
62740
63018
  nullable: true,
62741
63019
  properties: {
@@ -62777,6 +63055,7 @@ const openapi: OpenAPISpec = {
62777
63055
  'current_period_started_at',
62778
63056
  'current_period_ends_at',
62779
63057
  'past_due_since',
63058
+ 'payment_failure',
62780
63059
  'canceled_at',
62781
63060
  'scheduled_package_quantity',
62782
63061
  'scheduled_price_cents',
@@ -62865,6 +63144,22 @@ const openapi: OpenAPISpec = {
62865
63144
  nullable: true,
62866
63145
  type: 'string',
62867
63146
  },
63147
+ payment_failure: {
63148
+ nullable: true,
63149
+ properties: {
63150
+ amount_due_cents: {
63151
+ format: 'float',
63152
+ nullable: true,
63153
+ type: 'number',
63154
+ },
63155
+ grace_ends_at: {
63156
+ format: 'date-time',
63157
+ type: 'string',
63158
+ },
63159
+ },
63160
+ required: ['grace_ends_at', 'amount_due_cents'],
63161
+ type: 'object',
63162
+ },
62868
63163
  pending_upgrade: {
62869
63164
  nullable: true,
62870
63165
  properties: {
@@ -62906,6 +63201,7 @@ const openapi: OpenAPISpec = {
62906
63201
  'current_period_started_at',
62907
63202
  'current_period_ends_at',
62908
63203
  'past_due_since',
63204
+ 'payment_failure',
62909
63205
  'canceled_at',
62910
63206
  'scheduled_package_quantity',
62911
63207
  'scheduled_price_cents',
@@ -109459,6 +109459,10 @@ export type Routes = {
109459
109459
  current_period_started_at: string | null
109460
109460
  current_period_ends_at: string | null
109461
109461
  past_due_since: string | null
109462
+ payment_failure: {
109463
+ grace_ends_at: string
109464
+ amount_due_cents: number | null
109465
+ } | null
109462
109466
  canceled_at: string | null
109463
109467
  scheduled_package_quantity: number | null
109464
109468
  scheduled_price_cents: number | null
@@ -109560,10 +109564,64 @@ export type Routes = {
109560
109564
  recommendation_basis: {
109561
109565
  trailing_30_day_tokens: number | null
109562
109566
  is_projected_from_trial: boolean
109567
+ exceeds_self_serve: boolean
109563
109568
  }
109564
109569
  }
109565
109570
  maxDuration: undefined
109566
109571
  }
109572
+ '/seam/console/v1/credits/payment_method/confirm': {
109573
+ route: '/seam/console/v1/credits/payment_method/confirm'
109574
+ method: 'POST'
109575
+ queryParams: {}
109576
+ jsonBody: {
109577
+ organization_id: string
109578
+ checkout_session_id: string
109579
+ }
109580
+ commonParams: {}
109581
+ formData: {}
109582
+ jsonResponse: {
109583
+ credit_subscription: {
109584
+ credit_subscription_id: string
109585
+ status: string
109586
+ package_quantity: number
109587
+ price_cents: number
109588
+ current_period_started_at: string | null
109589
+ current_period_ends_at: string | null
109590
+ past_due_since: string | null
109591
+ payment_failure: {
109592
+ grace_ends_at: string
109593
+ amount_due_cents: number | null
109594
+ } | null
109595
+ canceled_at: string | null
109596
+ scheduled_package_quantity: number | null
109597
+ scheduled_price_cents: number | null
109598
+ scheduled_change_at: string | null
109599
+ pending_upgrade: {
109600
+ package_quantity: number
109601
+ hosted_invoice_url: string | null
109602
+ } | null
109603
+ } | null
109604
+ paid_invoice_count: number
109605
+ unpaid_invoice_count: number
109606
+ }
109607
+ maxDuration: undefined
109608
+ }
109609
+ '/seam/console/v1/credits/payment_method/update': {
109610
+ route: '/seam/console/v1/credits/payment_method/update'
109611
+ method: 'POST'
109612
+ queryParams: {}
109613
+ jsonBody: {
109614
+ organization_id: string
109615
+ success_url: string
109616
+ cancel_url: string
109617
+ }
109618
+ commonParams: {}
109619
+ formData: {}
109620
+ jsonResponse: {
109621
+ checkout_url: string
109622
+ }
109623
+ maxDuration: undefined
109624
+ }
109567
109625
  '/seam/console/v1/credits/purchases/get': {
109568
109626
  route: '/seam/console/v1/credits/purchases/get'
109569
109627
  method: 'POST'
@@ -109604,6 +109662,10 @@ export type Routes = {
109604
109662
  current_period_started_at: string | null
109605
109663
  current_period_ends_at: string | null
109606
109664
  past_due_since: string | null
109665
+ payment_failure: {
109666
+ grace_ends_at: string
109667
+ amount_due_cents: number | null
109668
+ } | null
109607
109669
  canceled_at: string | null
109608
109670
  scheduled_package_quantity: number | null
109609
109671
  scheduled_price_cents: number | null
@@ -109635,6 +109697,10 @@ export type Routes = {
109635
109697
  current_period_started_at: string | null
109636
109698
  current_period_ends_at: string | null
109637
109699
  past_due_since: string | null
109700
+ payment_failure: {
109701
+ grace_ends_at: string
109702
+ amount_due_cents: number | null
109703
+ } | null
109638
109704
  canceled_at: string | null
109639
109705
  scheduled_package_quantity: number | null
109640
109706
  scheduled_price_cents: number | null
@@ -109672,6 +109738,10 @@ export type Routes = {
109672
109738
  current_period_started_at: string | null
109673
109739
  current_period_ends_at: string | null
109674
109740
  past_due_since: string | null
109741
+ payment_failure: {
109742
+ grace_ends_at: string
109743
+ amount_due_cents: number | null
109744
+ } | null
109675
109745
  canceled_at: string | null
109676
109746
  scheduled_package_quantity: number | null
109677
109747
  scheduled_price_cents: number | null
@@ -109702,6 +109772,10 @@ export type Routes = {
109702
109772
  current_period_started_at: string | null
109703
109773
  current_period_ends_at: string | null
109704
109774
  past_due_since: string | null
109775
+ payment_failure: {
109776
+ grace_ends_at: string
109777
+ amount_due_cents: number | null
109778
+ } | null
109705
109779
  canceled_at: string | null
109706
109780
  scheduled_package_quantity: number | null
109707
109781
  scheduled_price_cents: number | null