@seamapi/types 1.1159.0 → 1.1161.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.
|
@@ -109367,6 +109367,139 @@ export type Routes = {
|
|
|
109367
109367
|
}
|
|
109368
109368
|
maxDuration: undefined
|
|
109369
109369
|
}
|
|
109370
|
+
'/seam/console/v1/credits/checkout/start': {
|
|
109371
|
+
route: '/seam/console/v1/credits/checkout/start'
|
|
109372
|
+
method: 'POST'
|
|
109373
|
+
queryParams: {}
|
|
109374
|
+
jsonBody: {
|
|
109375
|
+
organization_id: string
|
|
109376
|
+
package_quantity: number
|
|
109377
|
+
success_url: string
|
|
109378
|
+
cancel_url: string
|
|
109379
|
+
}
|
|
109380
|
+
commonParams: {}
|
|
109381
|
+
formData: {}
|
|
109382
|
+
jsonResponse: {
|
|
109383
|
+
checkout_url: string
|
|
109384
|
+
credit_subscription_id: string
|
|
109385
|
+
}
|
|
109386
|
+
maxDuration: undefined
|
|
109387
|
+
}
|
|
109388
|
+
'/seam/console/v1/credits/get': {
|
|
109389
|
+
route: '/seam/console/v1/credits/get'
|
|
109390
|
+
method: 'POST'
|
|
109391
|
+
queryParams: {}
|
|
109392
|
+
jsonBody: {
|
|
109393
|
+
organization_id: string
|
|
109394
|
+
}
|
|
109395
|
+
commonParams: {}
|
|
109396
|
+
formData: {}
|
|
109397
|
+
jsonResponse: {
|
|
109398
|
+
credits: {
|
|
109399
|
+
is_test_mode: boolean
|
|
109400
|
+
credit_subscription: {
|
|
109401
|
+
credit_subscription_id: string
|
|
109402
|
+
status: string
|
|
109403
|
+
package_quantity: number
|
|
109404
|
+
price_cents: number
|
|
109405
|
+
current_period_started_at: string | null
|
|
109406
|
+
current_period_ends_at: string | null
|
|
109407
|
+
past_due_since: string | null
|
|
109408
|
+
canceled_at: string | null
|
|
109409
|
+
} | null
|
|
109410
|
+
usage: {
|
|
109411
|
+
period_started_at: string
|
|
109412
|
+
period_ends_at: string
|
|
109413
|
+
package_tokens: number
|
|
109414
|
+
used_tokens: number
|
|
109415
|
+
remaining_tokens: number
|
|
109416
|
+
extra_tokens: number
|
|
109417
|
+
extra_cents_per_token: number
|
|
109418
|
+
estimated_extra_cents: number
|
|
109419
|
+
percent_used: number
|
|
109420
|
+
breakdown: {
|
|
109421
|
+
billable_action: string
|
|
109422
|
+
label: string
|
|
109423
|
+
count: number
|
|
109424
|
+
token_weight: number
|
|
109425
|
+
tokens: number
|
|
109426
|
+
}[]
|
|
109427
|
+
connectivity: {
|
|
109428
|
+
metric: string
|
|
109429
|
+
label: string
|
|
109430
|
+
device_months: number
|
|
109431
|
+
tokens: number
|
|
109432
|
+
}[]
|
|
109433
|
+
} | null
|
|
109434
|
+
}
|
|
109435
|
+
}
|
|
109436
|
+
maxDuration: undefined
|
|
109437
|
+
}
|
|
109438
|
+
'/seam/console/v1/credits/invoices/list': {
|
|
109439
|
+
route: '/seam/console/v1/credits/invoices/list'
|
|
109440
|
+
method: 'POST'
|
|
109441
|
+
queryParams: {}
|
|
109442
|
+
jsonBody: {
|
|
109443
|
+
organization_id: string
|
|
109444
|
+
}
|
|
109445
|
+
commonParams: {}
|
|
109446
|
+
formData: {}
|
|
109447
|
+
jsonResponse: {
|
|
109448
|
+
invoices: {
|
|
109449
|
+
invoice_id: string
|
|
109450
|
+
period_started_at: string
|
|
109451
|
+
period_ends_at: string
|
|
109452
|
+
total_cents: number
|
|
109453
|
+
status: string
|
|
109454
|
+
hosted_invoice_url: string | null
|
|
109455
|
+
issued_at: string
|
|
109456
|
+
}[]
|
|
109457
|
+
}
|
|
109458
|
+
maxDuration: undefined
|
|
109459
|
+
}
|
|
109460
|
+
'/seam/console/v1/credits/packages/list': {
|
|
109461
|
+
route: '/seam/console/v1/credits/packages/list'
|
|
109462
|
+
method: 'POST'
|
|
109463
|
+
queryParams: {}
|
|
109464
|
+
jsonBody: {
|
|
109465
|
+
organization_id: string
|
|
109466
|
+
}
|
|
109467
|
+
commonParams: {}
|
|
109468
|
+
formData: {}
|
|
109469
|
+
jsonResponse: {
|
|
109470
|
+
packages: {
|
|
109471
|
+
package_quantity: number
|
|
109472
|
+
price_cents: number
|
|
109473
|
+
included_cents_per_token: number
|
|
109474
|
+
extra_cents_per_token: number
|
|
109475
|
+
}[]
|
|
109476
|
+
recommended_package_quantity: number
|
|
109477
|
+
recommendation_basis: {
|
|
109478
|
+
trailing_30_day_tokens: number
|
|
109479
|
+
}
|
|
109480
|
+
}
|
|
109481
|
+
maxDuration: undefined
|
|
109482
|
+
}
|
|
109483
|
+
'/seam/console/v1/credits/purchases/get': {
|
|
109484
|
+
route: '/seam/console/v1/credits/purchases/get'
|
|
109485
|
+
method: 'POST'
|
|
109486
|
+
queryParams: {}
|
|
109487
|
+
jsonBody: {
|
|
109488
|
+
organization_id: string
|
|
109489
|
+
credit_subscription_id: string
|
|
109490
|
+
}
|
|
109491
|
+
commonParams: {}
|
|
109492
|
+
formData: {}
|
|
109493
|
+
jsonResponse: {
|
|
109494
|
+
purchase: {
|
|
109495
|
+
status: string
|
|
109496
|
+
package_quantity: number
|
|
109497
|
+
hosted_invoice_url: string | null
|
|
109498
|
+
failure_reason: string | null
|
|
109499
|
+
}
|
|
109500
|
+
}
|
|
109501
|
+
maxDuration: undefined
|
|
109502
|
+
}
|
|
109370
109503
|
'/seam/console/v1/get_resource_locator': {
|
|
109371
109504
|
route: '/seam/console/v1/get_resource_locator'
|
|
109372
109505
|
method: 'GET' | 'POST'
|