@seamapi/types 1.428.0 → 1.429.1

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.
@@ -11197,7 +11197,7 @@ export interface Routes {
11197
11197
  }
11198
11198
  '/access_grants/delete': {
11199
11199
  route: '/access_grants/delete'
11200
- method: 'GET' | 'POST'
11200
+ method: 'DELETE' | 'POST'
11201
11201
  queryParams: {}
11202
11202
  jsonBody: {}
11203
11203
  commonParams: {
@@ -11333,7 +11333,7 @@ export interface Routes {
11333
11333
  }
11334
11334
  '/access_methods/delete': {
11335
11335
  route: '/access_methods/delete'
11336
- method: 'GET' | 'POST'
11336
+ method: 'DELETE' | 'POST'
11337
11337
  queryParams: {}
11338
11338
  jsonBody: {}
11339
11339
  commonParams: {
@@ -52263,6 +52263,154 @@ export interface Routes {
52263
52263
  }>
52264
52264
  }
52265
52265
  }
52266
+ '/seam/customer/v1/automation_runs/list': {
52267
+ route: '/seam/customer/v1/automation_runs/list'
52268
+ method: 'GET' | 'POST'
52269
+ queryParams: {}
52270
+ jsonBody: {}
52271
+ commonParams: {
52272
+ /** ID of the automation for which you want to retrieve all automation runs. */
52273
+ automation_id?: string | undefined
52274
+ /** ID of the partner resource for which you want to retrieve all automation runs. */
52275
+ partner_resource_id?: string | undefined
52276
+ /** Filter automation runs by the specific rule that was executed. */
52277
+ rule?:
52278
+ | (
52279
+ | 'reservation_created'
52280
+ | 'reservation_time_updated'
52281
+ | 'reservation_deleted'
52282
+ )
52283
+ | undefined
52284
+ /** Filter automation runs by success status. */
52285
+ success?: boolean | undefined
52286
+ /** Maximum number of records to return per page. */
52287
+ limit?: number
52288
+ /** Timestamp by which to limit returned automation runs. Returns runs created before this timestamp. */
52289
+ created_before?: Date | undefined
52290
+ /** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
52291
+ page_cursor?: (string | undefined) | null
52292
+ }
52293
+ formData: {}
52294
+ jsonResponse: {
52295
+ automation_runs: Array<{
52296
+ automation_run_id: string
52297
+ workspace_id: string
52298
+ automation_id: string
52299
+ partner_resource_id: string
52300
+ automation_result?:
52301
+ | {
52302
+ success: boolean
52303
+ rule:
52304
+ | 'reservation_created'
52305
+ | 'reservation_time_updated'
52306
+ | 'reservation_deleted'
52307
+ actions: Array<{
52308
+ action_type: 'create' | 'update' | 'delete'
52309
+ resource_type: string
52310
+ access_grant_id: string
52311
+ }>
52312
+ error?: string | undefined
52313
+ }
52314
+ | undefined
52315
+ created_at: string
52316
+ }>
52317
+ /** Information about the current page of results. */
52318
+ pagination: {
52319
+ /** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
52320
+ next_page_cursor: string | null
52321
+ /** Indicates whether there is another page of results after this one. */
52322
+ has_next_page: boolean
52323
+ /** URL to get the next page of results. */
52324
+ next_page_url: string | null
52325
+ }
52326
+ }
52327
+ }
52328
+ '/seam/customer/v1/automations/delete': {
52329
+ route: '/seam/customer/v1/automations/delete'
52330
+ method: 'DELETE' | 'POST'
52331
+ queryParams: {}
52332
+ jsonBody: {}
52333
+ commonParams: {}
52334
+ formData: {}
52335
+ jsonResponse: {}
52336
+ }
52337
+ '/seam/customer/v1/automations/get': {
52338
+ route: '/seam/customer/v1/automations/get'
52339
+ method: 'GET' | 'POST'
52340
+ queryParams: {}
52341
+ jsonBody: {}
52342
+ commonParams: {}
52343
+ formData: {}
52344
+ jsonResponse: {
52345
+ access_rules?:
52346
+ | {
52347
+ reservation_created?:
52348
+ | {
52349
+ rule: 'reservation_created'
52350
+ config: {
52351
+ access_methods: Array<'card' | 'mobile_key' | 'code'>
52352
+ method_issuance_strategy:
52353
+ | 'first_available'
52354
+ | 'first_two_available'
52355
+ | 'all_available'
52356
+ }
52357
+ }
52358
+ | undefined
52359
+ reservation_time_updated?:
52360
+ | {
52361
+ rule: 'reservation_time_updated'
52362
+ config: {}
52363
+ }
52364
+ | undefined
52365
+ reservation_deleted?:
52366
+ | {
52367
+ rule: 'reservation_deleted'
52368
+ config: {}
52369
+ }
52370
+ | undefined
52371
+ }
52372
+ | undefined
52373
+ }
52374
+ }
52375
+ '/seam/customer/v1/automations/update': {
52376
+ route: '/seam/customer/v1/automations/update'
52377
+ method: 'PATCH' | 'POST'
52378
+ queryParams: {}
52379
+ jsonBody: {
52380
+ /** Access automation rules configuration. */
52381
+ access_rules?:
52382
+ | {
52383
+ reservation_created?:
52384
+ | {
52385
+ rule: 'reservation_created'
52386
+ config: {
52387
+ access_methods: Array<'card' | 'mobile_key' | 'code'>
52388
+ method_issuance_strategy:
52389
+ | 'first_available'
52390
+ | 'first_two_available'
52391
+ | 'all_available'
52392
+ }
52393
+ }
52394
+ | undefined
52395
+ reservation_time_updated?:
52396
+ | {
52397
+ rule: 'reservation_time_updated'
52398
+ config: {}
52399
+ }
52400
+ | undefined
52401
+ reservation_deleted?:
52402
+ | {
52403
+ rule: 'reservation_deleted'
52404
+ config: {}
52405
+ }
52406
+ | undefined
52407
+ }
52408
+ | undefined
52409
+ }
52410
+ commonParams: {}
52411
+ formData: {}
52412
+ jsonResponse: {}
52413
+ }
52266
52414
  '/seam/customer/v1/portals/get': {
52267
52415
  route: '/seam/customer/v1/portals/get'
52268
52416
  method: 'GET' | 'POST'
@@ -52310,7 +52458,7 @@ export interface Routes {
52310
52458
  }
52311
52459
  '/seam/customer/v1/settings/update': {
52312
52460
  route: '/seam/customer/v1/settings/update'
52313
- method: 'POST' | 'PATCH'
52461
+ method: 'PATCH' | 'POST'
52314
52462
  queryParams: {}
52315
52463
  jsonBody: {
52316
52464
  /** Business vertical to set on the workspace. */
@@ -70694,7 +70842,7 @@ export interface Routes {
70694
70842
  }
70695
70843
  '/unstable_access_grants/delete': {
70696
70844
  route: '/unstable_access_grants/delete'
70697
- method: 'GET' | 'POST'
70845
+ method: 'DELETE' | 'POST'
70698
70846
  queryParams: {}
70699
70847
  jsonBody: {}
70700
70848
  commonParams: {
@@ -70814,7 +70962,7 @@ export interface Routes {
70814
70962
  }
70815
70963
  '/unstable_access_methods/delete': {
70816
70964
  route: '/unstable_access_methods/delete'
70817
- method: 'GET' | 'POST'
70965
+ method: 'DELETE' | 'POST'
70818
70966
  queryParams: {}
70819
70967
  jsonBody: {}
70820
70968
  commonParams: {