@seamapi/types 1.511.0 → 1.513.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.
@@ -38658,7 +38658,9 @@ export type Routes = {
38658
38658
  jsonBody: {};
38659
38659
  commonParams: {
38660
38660
  /** ID of the instant key to get. */
38661
- instant_key_id: string;
38661
+ instant_key_id?: string | undefined;
38662
+ /** URL of the instant key to get. */
38663
+ instant_key_url?: string | undefined;
38662
38664
  };
38663
38665
  formData: {};
38664
38666
  jsonResponse: {
@@ -55383,6 +55385,82 @@ export type Routes = {
55383
55385
  };
55384
55386
  };
55385
55387
  };
55388
+ '/seam/console/v1/timelines/get': {
55389
+ route: '/seam/console/v1/timelines/get';
55390
+ method: 'GET' | 'POST';
55391
+ queryParams: {};
55392
+ jsonBody: {};
55393
+ commonParams: {
55394
+ /** ID of the resource to get timelines for. */
55395
+ resource_id: string;
55396
+ /** Maximum number of timeline entry groups to return per page. */
55397
+ limit?: number;
55398
+ /** Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp. */
55399
+ created_before?: Date | undefined;
55400
+ /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
55401
+ page_cursor?: string | undefined;
55402
+ };
55403
+ formData: {};
55404
+ jsonResponse: {
55405
+ timeline: {
55406
+ context: {
55407
+ context_type: 'request';
55408
+ request_id: string;
55409
+ request_payload: {
55410
+ [x: string]: any;
55411
+ };
55412
+ response_payload: {
55413
+ [x: string]: any;
55414
+ };
55415
+ } | {
55416
+ context_type: 'job';
55417
+ job_id: string;
55418
+ };
55419
+ entries: {
55420
+ resource_type: string;
55421
+ resource_id: string;
55422
+ entry_type: string;
55423
+ body: {
55424
+ entry_type: 'resource_created';
55425
+ description: string;
55426
+ } | {
55427
+ entry_type: 'resource_updated';
55428
+ description: string;
55429
+ properties_updated?: {
55430
+ [x: string]: any;
55431
+ } | undefined;
55432
+ errors?: string[] | undefined;
55433
+ warnings?: string[] | undefined;
55434
+ } | {
55435
+ entry_type: 'resource_deleted';
55436
+ description: string;
55437
+ } | {
55438
+ entry_type: 'event';
55439
+ event_type: string;
55440
+ event_id: string;
55441
+ } | {
55442
+ entry_type: 'provider_call';
55443
+ description: string;
55444
+ response_status_code: number;
55445
+ response_body?: {
55446
+ [x: string]: any;
55447
+ } | undefined;
55448
+ };
55449
+ created_at: string;
55450
+ }[];
55451
+ created_at: string;
55452
+ }[];
55453
+ /** Information about the current page of results. */
55454
+ pagination: {
55455
+ /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
55456
+ next_page_cursor: string | null;
55457
+ /** Indicates whether there is another page of results after this one. */
55458
+ has_next_page: boolean;
55459
+ /** URL to get the next page of results. */
55460
+ next_page_url: string | null;
55461
+ };
55462
+ };
55463
+ };
55386
55464
  '/seam/customer/v1/automation_runs/list': {
55387
55465
  route: '/seam/customer/v1/automation_runs/list';
55388
55466
  method: 'GET' | 'POST';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.511.0",
3
+ "version": "1.513.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -43584,13 +43584,21 @@ export default {
43584
43584
  {
43585
43585
  in: 'query',
43586
43586
  name: 'instant_key_id',
43587
- required: true,
43588
43587
  schema: {
43589
43588
  description: 'ID of the instant key to get.',
43590
43589
  format: 'uuid',
43591
43590
  type: 'string',
43592
43591
  },
43593
43592
  },
43593
+ {
43594
+ in: 'query',
43595
+ name: 'instant_key_url',
43596
+ schema: {
43597
+ description: 'URL of the instant key to get.',
43598
+ format: 'uri',
43599
+ type: 'string',
43600
+ },
43601
+ },
43594
43602
  ],
43595
43603
  responses: {
43596
43604
  200: {
@@ -43638,8 +43646,12 @@ export default {
43638
43646
  format: 'uuid',
43639
43647
  type: 'string',
43640
43648
  },
43649
+ instant_key_url: {
43650
+ description: 'URL of the instant key to get.',
43651
+ format: 'uri',
43652
+ type: 'string',
43653
+ },
43641
43654
  },
43642
- required: ['instant_key_id'],
43643
43655
  type: 'object',
43644
43656
  },
43645
43657
  },
@@ -47104,6 +47116,494 @@ export default {
47104
47116
  'x-undocumented': 'Internal endpoint for Console',
47105
47117
  },
47106
47118
  },
47119
+ '/seam/console/v1/timelines/get': {
47120
+ get: {
47121
+ description:
47122
+ 'Returns timeline entries for a resource and its child resources, grouped by entry groups.',
47123
+ operationId: 'seamConsoleV1TimelinesGetGet',
47124
+ parameters: [
47125
+ {
47126
+ in: 'query',
47127
+ name: 'resource_id',
47128
+ required: true,
47129
+ schema: {
47130
+ description: 'ID of the resource to get timelines for.',
47131
+ format: 'uuid',
47132
+ type: 'string',
47133
+ },
47134
+ },
47135
+ {
47136
+ in: 'query',
47137
+ name: 'limit',
47138
+ required: false,
47139
+ schema: {
47140
+ default: 50,
47141
+ description:
47142
+ 'Maximum number of timeline entry groups to return per page.',
47143
+ exclusiveMinimum: true,
47144
+ minimum: 0,
47145
+ type: 'integer',
47146
+ },
47147
+ },
47148
+ {
47149
+ in: 'query',
47150
+ name: 'created_before',
47151
+ required: false,
47152
+ schema: {
47153
+ description:
47154
+ 'Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp.',
47155
+ format: 'date-time',
47156
+ type: 'string',
47157
+ },
47158
+ },
47159
+ {
47160
+ in: 'query',
47161
+ name: 'page_cursor',
47162
+ required: false,
47163
+ schema: {
47164
+ description:
47165
+ "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
47166
+ type: 'string',
47167
+ },
47168
+ },
47169
+ ],
47170
+ responses: {
47171
+ 200: {
47172
+ content: {
47173
+ 'application/json': {
47174
+ schema: {
47175
+ properties: {
47176
+ ok: { type: 'boolean' },
47177
+ pagination: { $ref: '#/components/schemas/pagination' },
47178
+ timeline: {
47179
+ items: {
47180
+ properties: {
47181
+ context: {
47182
+ oneOf: [
47183
+ {
47184
+ properties: {
47185
+ context_type: {
47186
+ enum: ['request'],
47187
+ type: 'string',
47188
+ },
47189
+ request_id: { type: 'string' },
47190
+ request_payload: {
47191
+ additionalProperties: {
47192
+ $ref: '#/components/schemas/access_code',
47193
+ },
47194
+ type: 'object',
47195
+ },
47196
+ response_payload: {
47197
+ additionalProperties: {
47198
+ $ref: '#/components/schemas/access_code',
47199
+ },
47200
+ type: 'object',
47201
+ },
47202
+ },
47203
+ required: [
47204
+ 'context_type',
47205
+ 'request_id',
47206
+ 'request_payload',
47207
+ 'response_payload',
47208
+ ],
47209
+ type: 'object',
47210
+ },
47211
+ {
47212
+ properties: {
47213
+ context_type: {
47214
+ enum: ['job'],
47215
+ type: 'string',
47216
+ },
47217
+ job_id: { type: 'string' },
47218
+ },
47219
+ required: ['context_type', 'job_id'],
47220
+ type: 'object',
47221
+ },
47222
+ ],
47223
+ },
47224
+ created_at: { type: 'string' },
47225
+ entries: {
47226
+ items: {
47227
+ properties: {
47228
+ body: {
47229
+ oneOf: [
47230
+ {
47231
+ properties: {
47232
+ description: { type: 'string' },
47233
+ entry_type: {
47234
+ enum: ['resource_created'],
47235
+ type: 'string',
47236
+ },
47237
+ },
47238
+ required: ['entry_type', 'description'],
47239
+ type: 'object',
47240
+ },
47241
+ {
47242
+ properties: {
47243
+ description: { type: 'string' },
47244
+ entry_type: {
47245
+ enum: ['resource_updated'],
47246
+ type: 'string',
47247
+ },
47248
+ errors: {
47249
+ items: { type: 'string' },
47250
+ type: 'array',
47251
+ },
47252
+ properties_updated: {
47253
+ additionalProperties: {
47254
+ $ref: '#/components/schemas/access_code',
47255
+ },
47256
+ type: 'object',
47257
+ },
47258
+ warnings: {
47259
+ items: { type: 'string' },
47260
+ type: 'array',
47261
+ },
47262
+ },
47263
+ required: ['entry_type', 'description'],
47264
+ type: 'object',
47265
+ },
47266
+ {
47267
+ properties: {
47268
+ description: { type: 'string' },
47269
+ entry_type: {
47270
+ enum: ['resource_deleted'],
47271
+ type: 'string',
47272
+ },
47273
+ },
47274
+ required: ['entry_type', 'description'],
47275
+ type: 'object',
47276
+ },
47277
+ {
47278
+ properties: {
47279
+ entry_type: {
47280
+ enum: ['event'],
47281
+ type: 'string',
47282
+ },
47283
+ event_id: { type: 'string' },
47284
+ event_type: { type: 'string' },
47285
+ },
47286
+ required: [
47287
+ 'entry_type',
47288
+ 'event_type',
47289
+ 'event_id',
47290
+ ],
47291
+ type: 'object',
47292
+ },
47293
+ {
47294
+ properties: {
47295
+ description: { type: 'string' },
47296
+ entry_type: {
47297
+ enum: ['provider_call'],
47298
+ type: 'string',
47299
+ },
47300
+ response_body: {
47301
+ additionalProperties: {
47302
+ $ref: '#/components/schemas/access_code',
47303
+ },
47304
+ type: 'object',
47305
+ },
47306
+ response_status_code: {
47307
+ format: 'float',
47308
+ type: 'number',
47309
+ },
47310
+ },
47311
+ required: [
47312
+ 'entry_type',
47313
+ 'description',
47314
+ 'response_status_code',
47315
+ ],
47316
+ type: 'object',
47317
+ },
47318
+ ],
47319
+ },
47320
+ created_at: { type: 'string' },
47321
+ entry_type: { type: 'string' },
47322
+ resource_id: { type: 'string' },
47323
+ resource_type: { type: 'string' },
47324
+ },
47325
+ required: [
47326
+ 'resource_type',
47327
+ 'resource_id',
47328
+ 'entry_type',
47329
+ 'body',
47330
+ 'created_at',
47331
+ ],
47332
+ type: 'object',
47333
+ },
47334
+ type: 'array',
47335
+ },
47336
+ },
47337
+ required: ['context', 'entries', 'created_at'],
47338
+ type: 'object',
47339
+ },
47340
+ type: 'array',
47341
+ },
47342
+ },
47343
+ required: ['timeline', 'pagination', 'ok'],
47344
+ type: 'object',
47345
+ },
47346
+ },
47347
+ },
47348
+ description: 'OK',
47349
+ },
47350
+ 400: { description: 'Bad Request' },
47351
+ 401: { description: 'Unauthorized' },
47352
+ },
47353
+ security: [
47354
+ { client_session: [] },
47355
+ { pat_with_workspace: [] },
47356
+ { console_session_with_workspace: [] },
47357
+ { api_key: [] },
47358
+ ],
47359
+ summary: '/seam/console/v1/timelines/get',
47360
+ tags: [],
47361
+ 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'timelines'],
47362
+ 'x-fern-sdk-method-name': 'get',
47363
+ 'x-fern-sdk-return-value': 'timeline',
47364
+ 'x-response-key': 'timeline',
47365
+ 'x-title': 'Get Timeline Entries',
47366
+ 'x-undocumented': 'Internal endpoint for Console',
47367
+ },
47368
+ post: {
47369
+ description:
47370
+ 'Returns timeline entries for a resource and its child resources, grouped by entry groups.',
47371
+ operationId: 'seamConsoleV1TimelinesGetPost',
47372
+ requestBody: {
47373
+ content: {
47374
+ 'application/json': {
47375
+ schema: {
47376
+ properties: {
47377
+ created_before: {
47378
+ description:
47379
+ 'Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp.',
47380
+ format: 'date-time',
47381
+ type: 'string',
47382
+ },
47383
+ limit: {
47384
+ default: 50,
47385
+ description:
47386
+ 'Maximum number of timeline entry groups to return per page.',
47387
+ exclusiveMinimum: true,
47388
+ minimum: 0,
47389
+ type: 'integer',
47390
+ },
47391
+ page_cursor: {
47392
+ description:
47393
+ "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
47394
+ type: 'string',
47395
+ },
47396
+ resource_id: {
47397
+ description: 'ID of the resource to get timelines for.',
47398
+ format: 'uuid',
47399
+ type: 'string',
47400
+ },
47401
+ },
47402
+ required: ['resource_id'],
47403
+ type: 'object',
47404
+ },
47405
+ },
47406
+ },
47407
+ },
47408
+ responses: {
47409
+ 200: {
47410
+ content: {
47411
+ 'application/json': {
47412
+ schema: {
47413
+ properties: {
47414
+ ok: { type: 'boolean' },
47415
+ pagination: { $ref: '#/components/schemas/pagination' },
47416
+ timeline: {
47417
+ items: {
47418
+ properties: {
47419
+ context: {
47420
+ oneOf: [
47421
+ {
47422
+ properties: {
47423
+ context_type: {
47424
+ enum: ['request'],
47425
+ type: 'string',
47426
+ },
47427
+ request_id: { type: 'string' },
47428
+ request_payload: {
47429
+ additionalProperties: {
47430
+ $ref: '#/components/schemas/access_code',
47431
+ },
47432
+ type: 'object',
47433
+ },
47434
+ response_payload: {
47435
+ additionalProperties: {
47436
+ $ref: '#/components/schemas/access_code',
47437
+ },
47438
+ type: 'object',
47439
+ },
47440
+ },
47441
+ required: [
47442
+ 'context_type',
47443
+ 'request_id',
47444
+ 'request_payload',
47445
+ 'response_payload',
47446
+ ],
47447
+ type: 'object',
47448
+ },
47449
+ {
47450
+ properties: {
47451
+ context_type: {
47452
+ enum: ['job'],
47453
+ type: 'string',
47454
+ },
47455
+ job_id: { type: 'string' },
47456
+ },
47457
+ required: ['context_type', 'job_id'],
47458
+ type: 'object',
47459
+ },
47460
+ ],
47461
+ },
47462
+ created_at: { type: 'string' },
47463
+ entries: {
47464
+ items: {
47465
+ properties: {
47466
+ body: {
47467
+ oneOf: [
47468
+ {
47469
+ properties: {
47470
+ description: { type: 'string' },
47471
+ entry_type: {
47472
+ enum: ['resource_created'],
47473
+ type: 'string',
47474
+ },
47475
+ },
47476
+ required: ['entry_type', 'description'],
47477
+ type: 'object',
47478
+ },
47479
+ {
47480
+ properties: {
47481
+ description: { type: 'string' },
47482
+ entry_type: {
47483
+ enum: ['resource_updated'],
47484
+ type: 'string',
47485
+ },
47486
+ errors: {
47487
+ items: { type: 'string' },
47488
+ type: 'array',
47489
+ },
47490
+ properties_updated: {
47491
+ additionalProperties: {
47492
+ $ref: '#/components/schemas/access_code',
47493
+ },
47494
+ type: 'object',
47495
+ },
47496
+ warnings: {
47497
+ items: { type: 'string' },
47498
+ type: 'array',
47499
+ },
47500
+ },
47501
+ required: ['entry_type', 'description'],
47502
+ type: 'object',
47503
+ },
47504
+ {
47505
+ properties: {
47506
+ description: { type: 'string' },
47507
+ entry_type: {
47508
+ enum: ['resource_deleted'],
47509
+ type: 'string',
47510
+ },
47511
+ },
47512
+ required: ['entry_type', 'description'],
47513
+ type: 'object',
47514
+ },
47515
+ {
47516
+ properties: {
47517
+ entry_type: {
47518
+ enum: ['event'],
47519
+ type: 'string',
47520
+ },
47521
+ event_id: { type: 'string' },
47522
+ event_type: { type: 'string' },
47523
+ },
47524
+ required: [
47525
+ 'entry_type',
47526
+ 'event_type',
47527
+ 'event_id',
47528
+ ],
47529
+ type: 'object',
47530
+ },
47531
+ {
47532
+ properties: {
47533
+ description: { type: 'string' },
47534
+ entry_type: {
47535
+ enum: ['provider_call'],
47536
+ type: 'string',
47537
+ },
47538
+ response_body: {
47539
+ additionalProperties: {
47540
+ $ref: '#/components/schemas/access_code',
47541
+ },
47542
+ type: 'object',
47543
+ },
47544
+ response_status_code: {
47545
+ format: 'float',
47546
+ type: 'number',
47547
+ },
47548
+ },
47549
+ required: [
47550
+ 'entry_type',
47551
+ 'description',
47552
+ 'response_status_code',
47553
+ ],
47554
+ type: 'object',
47555
+ },
47556
+ ],
47557
+ },
47558
+ created_at: { type: 'string' },
47559
+ entry_type: { type: 'string' },
47560
+ resource_id: { type: 'string' },
47561
+ resource_type: { type: 'string' },
47562
+ },
47563
+ required: [
47564
+ 'resource_type',
47565
+ 'resource_id',
47566
+ 'entry_type',
47567
+ 'body',
47568
+ 'created_at',
47569
+ ],
47570
+ type: 'object',
47571
+ },
47572
+ type: 'array',
47573
+ },
47574
+ },
47575
+ required: ['context', 'entries', 'created_at'],
47576
+ type: 'object',
47577
+ },
47578
+ type: 'array',
47579
+ },
47580
+ },
47581
+ required: ['timeline', 'pagination', 'ok'],
47582
+ type: 'object',
47583
+ },
47584
+ },
47585
+ },
47586
+ description: 'OK',
47587
+ },
47588
+ 400: { description: 'Bad Request' },
47589
+ 401: { description: 'Unauthorized' },
47590
+ },
47591
+ security: [
47592
+ { client_session: [] },
47593
+ { pat_with_workspace: [] },
47594
+ { console_session_with_workspace: [] },
47595
+ { api_key: [] },
47596
+ ],
47597
+ summary: '/seam/console/v1/timelines/get',
47598
+ tags: [],
47599
+ 'x-fern-sdk-group-name': ['seam', 'console', 'v1', 'timelines'],
47600
+ 'x-fern-sdk-method-name': 'get',
47601
+ 'x-fern-sdk-return-value': 'timeline',
47602
+ 'x-response-key': 'timeline',
47603
+ 'x-title': 'Get Timeline Entries',
47604
+ 'x-undocumented': 'Internal endpoint for Console',
47605
+ },
47606
+ },
47107
47607
  '/seam/customer/v1/automation_runs/list': {
47108
47608
  get: {
47109
47609
  description: