@seamapi/types 1.428.0 → 1.429.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.
@@ -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'
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'
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: 'POST' | 'PATCH'
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'