@seamapi/types 1.1182.0 → 1.1183.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.
@@ -91889,6 +91889,8 @@ export type Routes = {
91889
91889
  used_credits: number | null;
91890
91890
  remaining_credits: number | null;
91891
91891
  is_credits_used_up: boolean;
91892
+ can_extend_trial: boolean;
91893
+ extended_trial_ends_at: string | null;
91892
91894
  } | null;
91893
91895
  usage: {
91894
91896
  as_of: string;
@@ -92194,6 +92196,31 @@ export type Routes = {
92194
92196
  };
92195
92197
  maxDuration: undefined;
92196
92198
  };
92199
+ '/seam/console/v1/credits/trial/extend': {
92200
+ route: '/seam/console/v1/credits/trial/extend';
92201
+ method: 'POST';
92202
+ queryParams: {};
92203
+ jsonBody: {
92204
+ organization_id: string;
92205
+ };
92206
+ commonParams: {};
92207
+ formData: {};
92208
+ jsonResponse: {
92209
+ trial: {
92210
+ trial_started_at: string;
92211
+ trial_ends_at: string;
92212
+ is_active: boolean;
92213
+ is_suspended: boolean;
92214
+ trial_credits: number;
92215
+ used_credits: number | null;
92216
+ remaining_credits: number | null;
92217
+ is_credits_used_up: boolean;
92218
+ can_extend_trial: boolean;
92219
+ extended_trial_ends_at: string | null;
92220
+ };
92221
+ };
92222
+ maxDuration: undefined;
92223
+ };
92197
92224
  '/seam/console/v1/credits/usage/get': {
92198
92225
  route: '/seam/console/v1/credits/usage/get';
92199
92226
  method: 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1182.0",
3
+ "version": "1.1183.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -62218,6 +62218,12 @@ const openapi: OpenAPISpec = {
62218
62218
  trial: {
62219
62219
  nullable: true,
62220
62220
  properties: {
62221
+ can_extend_trial: { type: 'boolean' },
62222
+ extended_trial_ends_at: {
62223
+ format: 'date-time',
62224
+ nullable: true,
62225
+ type: 'string',
62226
+ },
62221
62227
  is_active: { type: 'boolean' },
62222
62228
  is_credits_used_up: { type: 'boolean' },
62223
62229
  is_suspended: { type: 'boolean' },
@@ -62250,6 +62256,8 @@ const openapi: OpenAPISpec = {
62250
62256
  'used_credits',
62251
62257
  'remaining_credits',
62252
62258
  'is_credits_used_up',
62259
+ 'can_extend_trial',
62260
+ 'extended_trial_ends_at',
62253
62261
  ],
62254
62262
  type: 'object',
62255
62263
  },
@@ -63514,6 +63522,95 @@ const openapi: OpenAPISpec = {
63514
63522
  'x-undocumented': 'Internal endpoint for Console',
63515
63523
  },
63516
63524
  },
63525
+ '/seam/console/v1/credits/trial/extend': {
63526
+ post: {
63527
+ description:
63528
+ "Moves the end of the organization's credits trial 14 days later. The trial keeps its 1,000 credits. An organization can extend its trial once; Seam support can extend it further.",
63529
+ operationId: 'seamConsoleV1CreditsTrialExtendPost',
63530
+ requestBody: {
63531
+ content: {
63532
+ 'application/json': {
63533
+ schema: {
63534
+ properties: {
63535
+ organization_id: { format: 'uuid', type: 'string' },
63536
+ },
63537
+ required: ['organization_id'],
63538
+ type: 'object',
63539
+ },
63540
+ },
63541
+ },
63542
+ },
63543
+ responses: {
63544
+ '200': {
63545
+ content: {
63546
+ 'application/json': {
63547
+ schema: {
63548
+ properties: {
63549
+ ok: { type: 'boolean' },
63550
+ trial: {
63551
+ properties: {
63552
+ can_extend_trial: { type: 'boolean' },
63553
+ extended_trial_ends_at: {
63554
+ format: 'date-time',
63555
+ nullable: true,
63556
+ type: 'string',
63557
+ },
63558
+ is_active: { type: 'boolean' },
63559
+ is_credits_used_up: { type: 'boolean' },
63560
+ is_suspended: { type: 'boolean' },
63561
+ remaining_credits: {
63562
+ format: 'float',
63563
+ nullable: true,
63564
+ type: 'number',
63565
+ },
63566
+ trial_credits: { format: 'float', type: 'number' },
63567
+ trial_ends_at: { format: 'date-time', type: 'string' },
63568
+ trial_started_at: {
63569
+ format: 'date-time',
63570
+ type: 'string',
63571
+ },
63572
+ used_credits: {
63573
+ format: 'float',
63574
+ nullable: true,
63575
+ type: 'number',
63576
+ },
63577
+ },
63578
+ required: [
63579
+ 'trial_started_at',
63580
+ 'trial_ends_at',
63581
+ 'is_active',
63582
+ 'is_suspended',
63583
+ 'trial_credits',
63584
+ 'used_credits',
63585
+ 'remaining_credits',
63586
+ 'is_credits_used_up',
63587
+ 'can_extend_trial',
63588
+ 'extended_trial_ends_at',
63589
+ ],
63590
+ type: 'object',
63591
+ },
63592
+ },
63593
+ required: ['trial', 'ok'],
63594
+ type: 'object',
63595
+ },
63596
+ },
63597
+ },
63598
+ description: 'OK',
63599
+ },
63600
+ '400': { description: 'Bad Request' },
63601
+ '401': { description: 'Unauthorized' },
63602
+ },
63603
+ security: [{ console_session_without_workspace: [] }],
63604
+ summary: '/seam/console/v1/credits/trial/extend',
63605
+ tags: [],
63606
+ 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'credits', 'trial'],
63607
+ 'x-fern-sdk-method-name': 'extend',
63608
+ 'x-fern-sdk-return-value': 'trial',
63609
+ 'x-response-key': 'trial',
63610
+ 'x-title': "Extend an Organization's Credits Trial",
63611
+ 'x-undocumented': 'Internal endpoint for Console',
63612
+ },
63613
+ },
63517
63614
  '/seam/console/v1/credits/usage/get': {
63518
63615
  post: {
63519
63616
  description:
@@ -109866,6 +109866,8 @@ export type Routes = {
109866
109866
  used_credits: number | null
109867
109867
  remaining_credits: number | null
109868
109868
  is_credits_used_up: boolean
109869
+ can_extend_trial: boolean
109870
+ extended_trial_ends_at: string | null
109869
109871
  } | null
109870
109872
  usage: {
109871
109873
  as_of: string
@@ -110172,6 +110174,31 @@ export type Routes = {
110172
110174
  }
110173
110175
  maxDuration: undefined
110174
110176
  }
110177
+ '/seam/console/v1/credits/trial/extend': {
110178
+ route: '/seam/console/v1/credits/trial/extend'
110179
+ method: 'POST'
110180
+ queryParams: {}
110181
+ jsonBody: {
110182
+ organization_id: string
110183
+ }
110184
+ commonParams: {}
110185
+ formData: {}
110186
+ jsonResponse: {
110187
+ trial: {
110188
+ trial_started_at: string
110189
+ trial_ends_at: string
110190
+ is_active: boolean
110191
+ is_suspended: boolean
110192
+ trial_credits: number
110193
+ used_credits: number | null
110194
+ remaining_credits: number | null
110195
+ is_credits_used_up: boolean
110196
+ can_extend_trial: boolean
110197
+ extended_trial_ends_at: string | null
110198
+ }
110199
+ }
110200
+ maxDuration: undefined
110201
+ }
110175
110202
  '/seam/console/v1/credits/usage/get': {
110176
110203
  route: '/seam/console/v1/credits/usage/get'
110177
110204
  method: 'POST'