@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.
|
@@ -56526,6 +56526,192 @@ const openapi = {
|
|
|
56526
56526
|
'x-undocumented': 'Internal endpoint for Console',
|
|
56527
56527
|
},
|
|
56528
56528
|
},
|
|
56529
|
+
'/seam/console/v1/credits/subscription/cancel': {
|
|
56530
|
+
post: {
|
|
56531
|
+
description: "Cancels the organization's credit subscription at the end of its current period. The package stays available until then.",
|
|
56532
|
+
operationId: 'seamConsoleV1CreditsSubscriptionCancelPost',
|
|
56533
|
+
requestBody: {
|
|
56534
|
+
content: {
|
|
56535
|
+
'application/json': {
|
|
56536
|
+
schema: {
|
|
56537
|
+
properties: {
|
|
56538
|
+
organization_id: { format: 'uuid', type: 'string' },
|
|
56539
|
+
},
|
|
56540
|
+
required: ['organization_id'],
|
|
56541
|
+
type: 'object',
|
|
56542
|
+
},
|
|
56543
|
+
},
|
|
56544
|
+
},
|
|
56545
|
+
},
|
|
56546
|
+
responses: {
|
|
56547
|
+
'200': {
|
|
56548
|
+
content: {
|
|
56549
|
+
'application/json': {
|
|
56550
|
+
schema: {
|
|
56551
|
+
properties: {
|
|
56552
|
+
credit_subscription: {
|
|
56553
|
+
properties: {
|
|
56554
|
+
canceled_at: {
|
|
56555
|
+
format: 'date-time',
|
|
56556
|
+
nullable: true,
|
|
56557
|
+
type: 'string',
|
|
56558
|
+
},
|
|
56559
|
+
credit_subscription_id: {
|
|
56560
|
+
format: 'uuid',
|
|
56561
|
+
type: 'string',
|
|
56562
|
+
},
|
|
56563
|
+
current_period_ends_at: {
|
|
56564
|
+
format: 'date-time',
|
|
56565
|
+
nullable: true,
|
|
56566
|
+
type: 'string',
|
|
56567
|
+
},
|
|
56568
|
+
current_period_started_at: {
|
|
56569
|
+
format: 'date-time',
|
|
56570
|
+
nullable: true,
|
|
56571
|
+
type: 'string',
|
|
56572
|
+
},
|
|
56573
|
+
package_quantity: { format: 'float', type: 'number' },
|
|
56574
|
+
past_due_since: {
|
|
56575
|
+
format: 'date-time',
|
|
56576
|
+
nullable: true,
|
|
56577
|
+
type: 'string',
|
|
56578
|
+
},
|
|
56579
|
+
price_cents: { format: 'float', type: 'number' },
|
|
56580
|
+
status: { type: 'string' },
|
|
56581
|
+
},
|
|
56582
|
+
required: [
|
|
56583
|
+
'credit_subscription_id',
|
|
56584
|
+
'status',
|
|
56585
|
+
'package_quantity',
|
|
56586
|
+
'price_cents',
|
|
56587
|
+
'current_period_started_at',
|
|
56588
|
+
'current_period_ends_at',
|
|
56589
|
+
'past_due_since',
|
|
56590
|
+
'canceled_at',
|
|
56591
|
+
],
|
|
56592
|
+
type: 'object',
|
|
56593
|
+
},
|
|
56594
|
+
ok: { type: 'boolean' },
|
|
56595
|
+
},
|
|
56596
|
+
required: ['credit_subscription', 'ok'],
|
|
56597
|
+
type: 'object',
|
|
56598
|
+
},
|
|
56599
|
+
},
|
|
56600
|
+
},
|
|
56601
|
+
description: 'OK',
|
|
56602
|
+
},
|
|
56603
|
+
'400': { description: 'Bad Request' },
|
|
56604
|
+
'401': { description: 'Unauthorized' },
|
|
56605
|
+
},
|
|
56606
|
+
security: [{ console_session_without_workspace: [] }],
|
|
56607
|
+
summary: '/seam/console/v1/credits/subscription/cancel',
|
|
56608
|
+
tags: [],
|
|
56609
|
+
'x-fern-sdk-group-name': [
|
|
56610
|
+
'seam',
|
|
56611
|
+
'console',
|
|
56612
|
+
'v1',
|
|
56613
|
+
'credits',
|
|
56614
|
+
'subscription',
|
|
56615
|
+
],
|
|
56616
|
+
'x-fern-sdk-method-name': 'cancel',
|
|
56617
|
+
'x-response-key': null,
|
|
56618
|
+
'x-title': 'Cancel a Credit Subscription at Period End',
|
|
56619
|
+
'x-undocumented': 'Internal endpoint for Console',
|
|
56620
|
+
},
|
|
56621
|
+
},
|
|
56622
|
+
'/seam/console/v1/credits/subscription/resume': {
|
|
56623
|
+
post: {
|
|
56624
|
+
description: 'Undoes a cancellation that has not taken effect yet, so the credit subscription renews at the end of its current period.',
|
|
56625
|
+
operationId: 'seamConsoleV1CreditsSubscriptionResumePost',
|
|
56626
|
+
requestBody: {
|
|
56627
|
+
content: {
|
|
56628
|
+
'application/json': {
|
|
56629
|
+
schema: {
|
|
56630
|
+
properties: {
|
|
56631
|
+
organization_id: { format: 'uuid', type: 'string' },
|
|
56632
|
+
},
|
|
56633
|
+
required: ['organization_id'],
|
|
56634
|
+
type: 'object',
|
|
56635
|
+
},
|
|
56636
|
+
},
|
|
56637
|
+
},
|
|
56638
|
+
},
|
|
56639
|
+
responses: {
|
|
56640
|
+
'200': {
|
|
56641
|
+
content: {
|
|
56642
|
+
'application/json': {
|
|
56643
|
+
schema: {
|
|
56644
|
+
properties: {
|
|
56645
|
+
credit_subscription: {
|
|
56646
|
+
properties: {
|
|
56647
|
+
canceled_at: {
|
|
56648
|
+
format: 'date-time',
|
|
56649
|
+
nullable: true,
|
|
56650
|
+
type: 'string',
|
|
56651
|
+
},
|
|
56652
|
+
credit_subscription_id: {
|
|
56653
|
+
format: 'uuid',
|
|
56654
|
+
type: 'string',
|
|
56655
|
+
},
|
|
56656
|
+
current_period_ends_at: {
|
|
56657
|
+
format: 'date-time',
|
|
56658
|
+
nullable: true,
|
|
56659
|
+
type: 'string',
|
|
56660
|
+
},
|
|
56661
|
+
current_period_started_at: {
|
|
56662
|
+
format: 'date-time',
|
|
56663
|
+
nullable: true,
|
|
56664
|
+
type: 'string',
|
|
56665
|
+
},
|
|
56666
|
+
package_quantity: { format: 'float', type: 'number' },
|
|
56667
|
+
past_due_since: {
|
|
56668
|
+
format: 'date-time',
|
|
56669
|
+
nullable: true,
|
|
56670
|
+
type: 'string',
|
|
56671
|
+
},
|
|
56672
|
+
price_cents: { format: 'float', type: 'number' },
|
|
56673
|
+
status: { type: 'string' },
|
|
56674
|
+
},
|
|
56675
|
+
required: [
|
|
56676
|
+
'credit_subscription_id',
|
|
56677
|
+
'status',
|
|
56678
|
+
'package_quantity',
|
|
56679
|
+
'price_cents',
|
|
56680
|
+
'current_period_started_at',
|
|
56681
|
+
'current_period_ends_at',
|
|
56682
|
+
'past_due_since',
|
|
56683
|
+
'canceled_at',
|
|
56684
|
+
],
|
|
56685
|
+
type: 'object',
|
|
56686
|
+
},
|
|
56687
|
+
ok: { type: 'boolean' },
|
|
56688
|
+
},
|
|
56689
|
+
required: ['credit_subscription', 'ok'],
|
|
56690
|
+
type: 'object',
|
|
56691
|
+
},
|
|
56692
|
+
},
|
|
56693
|
+
},
|
|
56694
|
+
description: 'OK',
|
|
56695
|
+
},
|
|
56696
|
+
'400': { description: 'Bad Request' },
|
|
56697
|
+
'401': { description: 'Unauthorized' },
|
|
56698
|
+
},
|
|
56699
|
+
security: [{ console_session_without_workspace: [] }],
|
|
56700
|
+
summary: '/seam/console/v1/credits/subscription/resume',
|
|
56701
|
+
tags: [],
|
|
56702
|
+
'x-fern-sdk-group-name': [
|
|
56703
|
+
'seam',
|
|
56704
|
+
'console',
|
|
56705
|
+
'v1',
|
|
56706
|
+
'credits',
|
|
56707
|
+
'subscription',
|
|
56708
|
+
],
|
|
56709
|
+
'x-fern-sdk-method-name': 'resume',
|
|
56710
|
+
'x-response-key': null,
|
|
56711
|
+
'x-title': 'Resume a Canceled Credit Subscription',
|
|
56712
|
+
'x-undocumented': 'Internal endpoint for Console',
|
|
56713
|
+
},
|
|
56714
|
+
},
|
|
56529
56715
|
'/seam/console/v1/get_resource_locator': {
|
|
56530
56716
|
get: {
|
|
56531
56717
|
description: 'Returns the type and system information of a resource given its UUID.',
|