@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.
@@ -56198,6 +56198,22 @@ const openapi = {
56198
56198
  nullable: true,
56199
56199
  type: 'string',
56200
56200
  },
56201
+ payment_failure: {
56202
+ nullable: true,
56203
+ properties: {
56204
+ amount_due_cents: {
56205
+ format: 'float',
56206
+ nullable: true,
56207
+ type: 'number',
56208
+ },
56209
+ grace_ends_at: {
56210
+ format: 'date-time',
56211
+ type: 'string',
56212
+ },
56213
+ },
56214
+ required: ['grace_ends_at', 'amount_due_cents'],
56215
+ type: 'object',
56216
+ },
56201
56217
  pending_upgrade: {
56202
56218
  nullable: true,
56203
56219
  properties: {
@@ -56242,6 +56258,7 @@ const openapi = {
56242
56258
  'current_period_started_at',
56243
56259
  'current_period_ends_at',
56244
56260
  'past_due_since',
56261
+ 'payment_failure',
56245
56262
  'canceled_at',
56246
56263
  'scheduled_package_quantity',
56247
56264
  'scheduled_price_cents',
@@ -56548,7 +56565,7 @@ const openapi = {
56548
56565
  },
56549
56566
  '/seam/console/v1/credits/packages/list': {
56550
56567
  post: {
56551
- description: "Lists the purchasable monthly token packages and the package recommended for the organization's trailing 30 days of usage.",
56568
+ description: "Lists the self-serve monthly token packages and the package recommended for the organization's trailing 30 days of usage.",
56552
56569
  operationId: 'seamConsoleV1CreditsPackagesListPost',
56553
56570
  requestBody: {
56554
56571
  content: {
@@ -56596,6 +56613,7 @@ const openapi = {
56596
56613
  },
56597
56614
  recommendation_basis: {
56598
56615
  properties: {
56616
+ exceeds_self_serve: { type: 'boolean' },
56599
56617
  is_projected_from_trial: { type: 'boolean' },
56600
56618
  trailing_30_day_tokens: {
56601
56619
  format: 'float',
@@ -56606,6 +56624,7 @@ const openapi = {
56606
56624
  required: [
56607
56625
  'trailing_30_day_tokens',
56608
56626
  'is_projected_from_trial',
56627
+ 'exceeds_self_serve',
56609
56628
  ],
56610
56629
  type: 'object',
56611
56630
  },
@@ -56646,6 +56665,213 @@ const openapi = {
56646
56665
  'x-undocumented': 'Internal endpoint for Console',
56647
56666
  },
56648
56667
  },
56668
+ '/seam/console/v1/credits/payment_method/confirm': {
56669
+ post: {
56670
+ description: "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.",
56671
+ operationId: 'seamConsoleV1CreditsPaymentMethodConfirmPost',
56672
+ requestBody: {
56673
+ content: {
56674
+ 'application/json': {
56675
+ schema: {
56676
+ properties: {
56677
+ checkout_session_id: { minLength: 1, type: 'string' },
56678
+ organization_id: { format: 'uuid', type: 'string' },
56679
+ },
56680
+ required: ['organization_id', 'checkout_session_id'],
56681
+ type: 'object',
56682
+ },
56683
+ },
56684
+ },
56685
+ },
56686
+ responses: {
56687
+ '200': {
56688
+ content: {
56689
+ 'application/json': {
56690
+ schema: {
56691
+ properties: {
56692
+ credit_subscription: {
56693
+ nullable: true,
56694
+ properties: {
56695
+ canceled_at: {
56696
+ format: 'date-time',
56697
+ nullable: true,
56698
+ type: 'string',
56699
+ },
56700
+ credit_subscription_id: {
56701
+ format: 'uuid',
56702
+ type: 'string',
56703
+ },
56704
+ current_period_ends_at: {
56705
+ format: 'date-time',
56706
+ nullable: true,
56707
+ type: 'string',
56708
+ },
56709
+ current_period_started_at: {
56710
+ format: 'date-time',
56711
+ nullable: true,
56712
+ type: 'string',
56713
+ },
56714
+ package_quantity: { format: 'float', type: 'number' },
56715
+ past_due_since: {
56716
+ format: 'date-time',
56717
+ nullable: true,
56718
+ type: 'string',
56719
+ },
56720
+ payment_failure: {
56721
+ nullable: true,
56722
+ properties: {
56723
+ amount_due_cents: {
56724
+ format: 'float',
56725
+ nullable: true,
56726
+ type: 'number',
56727
+ },
56728
+ grace_ends_at: {
56729
+ format: 'date-time',
56730
+ type: 'string',
56731
+ },
56732
+ },
56733
+ required: ['grace_ends_at', 'amount_due_cents'],
56734
+ type: 'object',
56735
+ },
56736
+ pending_upgrade: {
56737
+ nullable: true,
56738
+ properties: {
56739
+ hosted_invoice_url: {
56740
+ nullable: true,
56741
+ type: 'string',
56742
+ },
56743
+ package_quantity: {
56744
+ format: 'float',
56745
+ type: 'number',
56746
+ },
56747
+ },
56748
+ required: ['package_quantity', 'hosted_invoice_url'],
56749
+ type: 'object',
56750
+ },
56751
+ price_cents: { format: 'float', type: 'number' },
56752
+ scheduled_change_at: {
56753
+ format: 'date-time',
56754
+ nullable: true,
56755
+ type: 'string',
56756
+ },
56757
+ scheduled_package_quantity: {
56758
+ format: 'float',
56759
+ nullable: true,
56760
+ type: 'number',
56761
+ },
56762
+ scheduled_price_cents: {
56763
+ format: 'float',
56764
+ nullable: true,
56765
+ type: 'number',
56766
+ },
56767
+ status: { type: 'string' },
56768
+ },
56769
+ required: [
56770
+ 'credit_subscription_id',
56771
+ 'status',
56772
+ 'package_quantity',
56773
+ 'price_cents',
56774
+ 'current_period_started_at',
56775
+ 'current_period_ends_at',
56776
+ 'past_due_since',
56777
+ 'payment_failure',
56778
+ 'canceled_at',
56779
+ 'scheduled_package_quantity',
56780
+ 'scheduled_price_cents',
56781
+ 'scheduled_change_at',
56782
+ 'pending_upgrade',
56783
+ ],
56784
+ type: 'object',
56785
+ },
56786
+ ok: { type: 'boolean' },
56787
+ paid_invoice_count: { format: 'float', type: 'number' },
56788
+ unpaid_invoice_count: { format: 'float', type: 'number' },
56789
+ },
56790
+ required: [
56791
+ 'credit_subscription',
56792
+ 'paid_invoice_count',
56793
+ 'unpaid_invoice_count',
56794
+ 'ok',
56795
+ ],
56796
+ type: 'object',
56797
+ },
56798
+ },
56799
+ },
56800
+ description: 'OK',
56801
+ },
56802
+ '400': { description: 'Bad Request' },
56803
+ '401': { description: 'Unauthorized' },
56804
+ },
56805
+ security: [{ console_session_without_workspace: [] }],
56806
+ summary: '/seam/console/v1/credits/payment_method/confirm',
56807
+ tags: [],
56808
+ 'x-fern-sdk-group-name': [
56809
+ 'seam',
56810
+ 'console',
56811
+ 'v1',
56812
+ 'credits',
56813
+ 'payment_method',
56814
+ ],
56815
+ 'x-fern-sdk-method-name': 'confirm',
56816
+ 'x-response-key': null,
56817
+ 'x-title': 'Confirm a Credit Payment Method Update',
56818
+ 'x-undocumented': 'Internal endpoint for Console',
56819
+ },
56820
+ },
56821
+ '/seam/console/v1/credits/payment_method/update': {
56822
+ post: {
56823
+ description: "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.",
56824
+ operationId: 'seamConsoleV1CreditsPaymentMethodUpdatePost',
56825
+ requestBody: {
56826
+ content: {
56827
+ 'application/json': {
56828
+ schema: {
56829
+ properties: {
56830
+ cancel_url: { format: 'uri', type: 'string' },
56831
+ organization_id: { format: 'uuid', type: 'string' },
56832
+ success_url: { format: 'uri', type: 'string' },
56833
+ },
56834
+ required: ['organization_id', 'success_url', 'cancel_url'],
56835
+ type: 'object',
56836
+ },
56837
+ },
56838
+ },
56839
+ },
56840
+ responses: {
56841
+ '200': {
56842
+ content: {
56843
+ 'application/json': {
56844
+ schema: {
56845
+ properties: {
56846
+ checkout_url: { format: 'uri', type: 'string' },
56847
+ ok: { type: 'boolean' },
56848
+ },
56849
+ required: ['checkout_url', 'ok'],
56850
+ type: 'object',
56851
+ },
56852
+ },
56853
+ },
56854
+ description: 'OK',
56855
+ },
56856
+ '400': { description: 'Bad Request' },
56857
+ '401': { description: 'Unauthorized' },
56858
+ },
56859
+ security: [{ console_session_without_workspace: [] }],
56860
+ summary: '/seam/console/v1/credits/payment_method/update',
56861
+ tags: [],
56862
+ 'x-fern-sdk-group-name': [
56863
+ 'seam',
56864
+ 'console',
56865
+ 'v1',
56866
+ 'credits',
56867
+ 'payment_method',
56868
+ ],
56869
+ 'x-fern-sdk-method-name': 'update',
56870
+ 'x-response-key': null,
56871
+ 'x-title': 'Start a Credit Payment Method Update',
56872
+ 'x-undocumented': 'Internal endpoint for Console',
56873
+ },
56874
+ },
56649
56875
  '/seam/console/v1/credits/purchases/get': {
56650
56876
  post: {
56651
56877
  description: 'Advances a pending credit subscription purchase and returns its status, including whether its Stripe Checkout was left unfinished.',
@@ -56772,6 +56998,22 @@ const openapi = {
56772
56998
  nullable: true,
56773
56999
  type: 'string',
56774
57000
  },
57001
+ payment_failure: {
57002
+ nullable: true,
57003
+ properties: {
57004
+ amount_due_cents: {
57005
+ format: 'float',
57006
+ nullable: true,
57007
+ type: 'number',
57008
+ },
57009
+ grace_ends_at: {
57010
+ format: 'date-time',
57011
+ type: 'string',
57012
+ },
57013
+ },
57014
+ required: ['grace_ends_at', 'amount_due_cents'],
57015
+ type: 'object',
57016
+ },
56775
57017
  pending_upgrade: {
56776
57018
  nullable: true,
56777
57019
  properties: {
@@ -56813,6 +57055,7 @@ const openapi = {
56813
57055
  'current_period_started_at',
56814
57056
  'current_period_ends_at',
56815
57057
  'past_due_since',
57058
+ 'payment_failure',
56816
57059
  'canceled_at',
56817
57060
  'scheduled_package_quantity',
56818
57061
  'scheduled_price_cents',
@@ -56934,6 +57177,22 @@ const openapi = {
56934
57177
  nullable: true,
56935
57178
  type: 'string',
56936
57179
  },
57180
+ payment_failure: {
57181
+ nullable: true,
57182
+ properties: {
57183
+ amount_due_cents: {
57184
+ format: 'float',
57185
+ nullable: true,
57186
+ type: 'number',
57187
+ },
57188
+ grace_ends_at: {
57189
+ format: 'date-time',
57190
+ type: 'string',
57191
+ },
57192
+ },
57193
+ required: ['grace_ends_at', 'amount_due_cents'],
57194
+ type: 'object',
57195
+ },
56937
57196
  pending_upgrade: {
56938
57197
  nullable: true,
56939
57198
  properties: {
@@ -56975,6 +57234,7 @@ const openapi = {
56975
57234
  'current_period_started_at',
56976
57235
  'current_period_ends_at',
56977
57236
  'past_due_since',
57237
+ 'payment_failure',
56978
57238
  'canceled_at',
56979
57239
  'scheduled_package_quantity',
56980
57240
  'scheduled_price_cents',
@@ -57061,6 +57321,22 @@ const openapi = {
57061
57321
  nullable: true,
57062
57322
  type: 'string',
57063
57323
  },
57324
+ payment_failure: {
57325
+ nullable: true,
57326
+ properties: {
57327
+ amount_due_cents: {
57328
+ format: 'float',
57329
+ nullable: true,
57330
+ type: 'number',
57331
+ },
57332
+ grace_ends_at: {
57333
+ format: 'date-time',
57334
+ type: 'string',
57335
+ },
57336
+ },
57337
+ required: ['grace_ends_at', 'amount_due_cents'],
57338
+ type: 'object',
57339
+ },
57064
57340
  pending_upgrade: {
57065
57341
  nullable: true,
57066
57342
  properties: {
@@ -57102,6 +57378,7 @@ const openapi = {
57102
57378
  'current_period_started_at',
57103
57379
  'current_period_ends_at',
57104
57380
  'past_due_since',
57381
+ 'payment_failure',
57105
57382
  'canceled_at',
57106
57383
  'scheduled_package_quantity',
57107
57384
  'scheduled_price_cents',
@@ -57189,6 +57466,22 @@ const openapi = {
57189
57466
  nullable: true,
57190
57467
  type: 'string',
57191
57468
  },
57469
+ payment_failure: {
57470
+ nullable: true,
57471
+ properties: {
57472
+ amount_due_cents: {
57473
+ format: 'float',
57474
+ nullable: true,
57475
+ type: 'number',
57476
+ },
57477
+ grace_ends_at: {
57478
+ format: 'date-time',
57479
+ type: 'string',
57480
+ },
57481
+ },
57482
+ required: ['grace_ends_at', 'amount_due_cents'],
57483
+ type: 'object',
57484
+ },
57192
57485
  pending_upgrade: {
57193
57486
  nullable: true,
57194
57487
  properties: {
@@ -57230,6 +57523,7 @@ const openapi = {
57230
57523
  'current_period_started_at',
57231
57524
  'current_period_ends_at',
57232
57525
  'past_due_since',
57526
+ 'payment_failure',
57233
57527
  'canceled_at',
57234
57528
  'scheduled_package_quantity',
57235
57529
  'scheduled_price_cents',