@seamapi/types 1.1176.0 → 1.1178.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;
@@ -91667,6 +91671,59 @@ export type Routes = {
91667
91671
  };
91668
91672
  maxDuration: undefined;
91669
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
+ };
91670
91727
  '/seam/console/v1/credits/purchases/get': {
91671
91728
  route: '/seam/console/v1/credits/purchases/get';
91672
91729
  method: 'POST';
@@ -91707,6 +91764,10 @@ export type Routes = {
91707
91764
  current_period_started_at: string | null;
91708
91765
  current_period_ends_at: string | null;
91709
91766
  past_due_since: string | null;
91767
+ payment_failure: {
91768
+ grace_ends_at: string;
91769
+ amount_due_cents: number | null;
91770
+ } | null;
91710
91771
  canceled_at: string | null;
91711
91772
  scheduled_package_quantity: number | null;
91712
91773
  scheduled_price_cents: number | null;
@@ -91738,6 +91799,10 @@ export type Routes = {
91738
91799
  current_period_started_at: string | null;
91739
91800
  current_period_ends_at: string | null;
91740
91801
  past_due_since: string | null;
91802
+ payment_failure: {
91803
+ grace_ends_at: string;
91804
+ amount_due_cents: number | null;
91805
+ } | null;
91741
91806
  canceled_at: string | null;
91742
91807
  scheduled_package_quantity: number | null;
91743
91808
  scheduled_price_cents: number | null;
@@ -91774,6 +91839,10 @@ export type Routes = {
91774
91839
  current_period_started_at: string | null;
91775
91840
  current_period_ends_at: string | null;
91776
91841
  past_due_since: string | null;
91842
+ payment_failure: {
91843
+ grace_ends_at: string;
91844
+ amount_due_cents: number | null;
91845
+ } | null;
91777
91846
  canceled_at: string | null;
91778
91847
  scheduled_package_quantity: number | null;
91779
91848
  scheduled_price_cents: number | null;
@@ -91804,6 +91873,10 @@ export type Routes = {
91804
91873
  current_period_started_at: string | null;
91805
91874
  current_period_ends_at: string | null;
91806
91875
  past_due_since: string | null;
91876
+ payment_failure: {
91877
+ grace_ends_at: string;
91878
+ amount_due_cents: number | null;
91879
+ } | null;
91807
91880
  canceled_at: string | null;
91808
91881
  scheduled_package_quantity: number | null;
91809
91882
  scheduled_price_cents: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1176.0",
3
+ "version": "1.1178.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -126,6 +126,10 @@ export const PROVIDER_CATEGORY_MAP = {
126
126
  'ultraloq',
127
127
  'dormakaba_oracode',
128
128
  'ring',
129
+ 'tapo',
130
+ 'arlo',
131
+ 'reolink',
132
+ 'unifi_protect',
129
133
  'korelock',
130
134
  'keyincode',
131
135
  'omnitec',
@@ -156,7 +160,15 @@ export const PROVIDER_CATEGORY_MAP = {
156
160
  'yacan',
157
161
  ],
158
162
 
159
- beta: ['salto_ks_accept', 'aqara', 'tapo', 'arlo', 'sifely'],
163
+ beta: [
164
+ 'salto_ks_accept',
165
+ 'aqara',
166
+ 'tapo',
167
+ 'arlo',
168
+ 'sifely',
169
+ 'reolink',
170
+ 'unifi_protect',
171
+ ],
160
172
 
161
173
  thermostats: ['ecobee', 'nest', 'sensi', 'honeywell_resideo', 'first_alert'],
162
174
  noise_sensors: ['minut', 'noiseaware'],
@@ -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',
@@ -62319,6 +62336,215 @@ const openapi: OpenAPISpec = {
62319
62336
  'x-undocumented': 'Internal endpoint for Console',
62320
62337
  },
62321
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
+ },
62322
62548
  '/seam/console/v1/credits/purchases/get': {
62323
62549
  post: {
62324
62550
  description:
@@ -62447,6 +62673,22 @@ const openapi: OpenAPISpec = {
62447
62673
  nullable: true,
62448
62674
  type: 'string',
62449
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
+ },
62450
62692
  pending_upgrade: {
62451
62693
  nullable: true,
62452
62694
  properties: {
@@ -62488,6 +62730,7 @@ const openapi: OpenAPISpec = {
62488
62730
  'current_period_started_at',
62489
62731
  'current_period_ends_at',
62490
62732
  'past_due_since',
62733
+ 'payment_failure',
62491
62734
  'canceled_at',
62492
62735
  'scheduled_package_quantity',
62493
62736
  'scheduled_price_cents',
@@ -62610,6 +62853,22 @@ const openapi: OpenAPISpec = {
62610
62853
  nullable: true,
62611
62854
  type: 'string',
62612
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
+ },
62613
62872
  pending_upgrade: {
62614
62873
  nullable: true,
62615
62874
  properties: {
@@ -62651,6 +62910,7 @@ const openapi: OpenAPISpec = {
62651
62910
  'current_period_started_at',
62652
62911
  'current_period_ends_at',
62653
62912
  'past_due_since',
62913
+ 'payment_failure',
62654
62914
  'canceled_at',
62655
62915
  'scheduled_package_quantity',
62656
62916
  'scheduled_price_cents',
@@ -62738,6 +62998,22 @@ const openapi: OpenAPISpec = {
62738
62998
  nullable: true,
62739
62999
  type: 'string',
62740
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
+ },
62741
63017
  pending_upgrade: {
62742
63018
  nullable: true,
62743
63019
  properties: {
@@ -62779,6 +63055,7 @@ const openapi: OpenAPISpec = {
62779
63055
  'current_period_started_at',
62780
63056
  'current_period_ends_at',
62781
63057
  'past_due_since',
63058
+ 'payment_failure',
62782
63059
  'canceled_at',
62783
63060
  'scheduled_package_quantity',
62784
63061
  'scheduled_price_cents',
@@ -62867,6 +63144,22 @@ const openapi: OpenAPISpec = {
62867
63144
  nullable: true,
62868
63145
  type: 'string',
62869
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
+ },
62870
63163
  pending_upgrade: {
62871
63164
  nullable: true,
62872
63165
  properties: {
@@ -62908,6 +63201,7 @@ const openapi: OpenAPISpec = {
62908
63201
  'current_period_started_at',
62909
63202
  'current_period_ends_at',
62910
63203
  'past_due_since',
63204
+ 'payment_failure',
62911
63205
  'canceled_at',
62912
63206
  'scheduled_package_quantity',
62913
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
@@ -109565,6 +109569,59 @@ export type Routes = {
109565
109569
  }
109566
109570
  maxDuration: undefined
109567
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
+ }
109568
109625
  '/seam/console/v1/credits/purchases/get': {
109569
109626
  route: '/seam/console/v1/credits/purchases/get'
109570
109627
  method: 'POST'
@@ -109605,6 +109662,10 @@ export type Routes = {
109605
109662
  current_period_started_at: string | null
109606
109663
  current_period_ends_at: string | null
109607
109664
  past_due_since: string | null
109665
+ payment_failure: {
109666
+ grace_ends_at: string
109667
+ amount_due_cents: number | null
109668
+ } | null
109608
109669
  canceled_at: string | null
109609
109670
  scheduled_package_quantity: number | null
109610
109671
  scheduled_price_cents: number | null
@@ -109636,6 +109697,10 @@ export type Routes = {
109636
109697
  current_period_started_at: string | null
109637
109698
  current_period_ends_at: string | null
109638
109699
  past_due_since: string | null
109700
+ payment_failure: {
109701
+ grace_ends_at: string
109702
+ amount_due_cents: number | null
109703
+ } | null
109639
109704
  canceled_at: string | null
109640
109705
  scheduled_package_quantity: number | null
109641
109706
  scheduled_price_cents: number | null
@@ -109673,6 +109738,10 @@ export type Routes = {
109673
109738
  current_period_started_at: string | null
109674
109739
  current_period_ends_at: string | null
109675
109740
  past_due_since: string | null
109741
+ payment_failure: {
109742
+ grace_ends_at: string
109743
+ amount_due_cents: number | null
109744
+ } | null
109676
109745
  canceled_at: string | null
109677
109746
  scheduled_package_quantity: number | null
109678
109747
  scheduled_price_cents: number | null
@@ -109703,6 +109772,10 @@ export type Routes = {
109703
109772
  current_period_started_at: string | null
109704
109773
  current_period_ends_at: string | null
109705
109774
  past_due_since: string | null
109775
+ payment_failure: {
109776
+ grace_ends_at: string
109777
+ amount_due_cents: number | null
109778
+ } | null
109706
109779
  canceled_at: string | null
109707
109780
  scheduled_package_quantity: number | null
109708
109781
  scheduled_price_cents: number | null