@seamapi/http 1.0.0-rc.1 → 1.0.0-rc.3

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.
Files changed (68) hide show
  1. package/LICENSE.txt +1 -1
  2. package/README.md +39 -33
  3. package/dist/connect.cjs +49 -67
  4. package/dist/connect.cjs.map +1 -1
  5. package/dist/connect.d.cts +1003 -59
  6. package/lib/seam/connect/parse-options.js +1 -1
  7. package/lib/seam/connect/parse-options.js.map +1 -1
  8. package/lib/seam/connect/resolve-action-attempt.d.ts +1273 -5
  9. package/lib/seam/connect/resolve-action-attempt.js.map +1 -1
  10. package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +2 -2
  11. package/lib/seam/connect/routes/access-codes-unmanaged.js.map +1 -1
  12. package/lib/seam/connect/routes/access-codes.d.ts +2 -2
  13. package/lib/seam/connect/routes/access-codes.js.map +1 -1
  14. package/lib/seam/connect/routes/acs-access-groups.d.ts +2 -2
  15. package/lib/seam/connect/routes/acs-access-groups.js.map +1 -1
  16. package/lib/seam/connect/routes/acs-credentials.d.ts +2 -2
  17. package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
  18. package/lib/seam/connect/routes/acs-users.d.ts +6 -6
  19. package/lib/seam/connect/routes/acs-users.js.map +1 -1
  20. package/lib/seam/connect/routes/client-sessions.d.ts +4 -4
  21. package/lib/seam/connect/routes/client-sessions.js.map +1 -1
  22. package/lib/seam/connect/routes/connect-webviews.d.ts +2 -2
  23. package/lib/seam/connect/routes/connect-webviews.js.map +1 -1
  24. package/lib/seam/connect/routes/connected-accounts.d.ts +2 -2
  25. package/lib/seam/connect/routes/connected-accounts.js.map +1 -1
  26. package/lib/seam/connect/routes/devices-simulate.d.ts +10 -2
  27. package/lib/seam/connect/routes/devices-simulate.js +16 -0
  28. package/lib/seam/connect/routes/devices-simulate.js.map +1 -1
  29. package/lib/seam/connect/routes/devices.d.ts +2 -2
  30. package/lib/seam/connect/routes/devices.js.map +1 -1
  31. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +2 -2
  32. package/lib/seam/connect/routes/noise-sensors-noise-thresholds.js.map +1 -1
  33. package/lib/seam/connect/routes/phones.d.ts +2 -2
  34. package/lib/seam/connect/routes/phones.js.map +1 -1
  35. package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +2 -2
  36. package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +1 -1
  37. package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +2 -2
  38. package/lib/seam/connect/routes/user-identities-enrollment-automations.js.map +1 -1
  39. package/lib/seam/connect/routes/user-identities.d.ts +6 -6
  40. package/lib/seam/connect/routes/user-identities.js.map +1 -1
  41. package/lib/seam/connect/routes/webhooks.d.ts +2 -2
  42. package/lib/seam/connect/routes/webhooks.js.map +1 -1
  43. package/lib/version.d.ts +1 -1
  44. package/lib/version.js +1 -1
  45. package/package.json +6 -6
  46. package/src/lib/seam/connect/parse-options.ts +1 -1
  47. package/src/lib/seam/connect/resolve-action-attempt.ts +16 -9
  48. package/src/lib/seam/connect/routes/access-codes-unmanaged.ts +2 -2
  49. package/src/lib/seam/connect/routes/access-codes.ts +2 -2
  50. package/src/lib/seam/connect/routes/acs-access-groups.ts +2 -2
  51. package/src/lib/seam/connect/routes/acs-credentials.ts +2 -2
  52. package/src/lib/seam/connect/routes/acs-users.ts +6 -6
  53. package/src/lib/seam/connect/routes/client-sessions.ts +4 -4
  54. package/src/lib/seam/connect/routes/connect-webviews.ts +2 -2
  55. package/src/lib/seam/connect/routes/connected-accounts.ts +4 -2
  56. package/src/lib/seam/connect/routes/devices-simulate.ts +40 -2
  57. package/src/lib/seam/connect/routes/devices.ts +2 -2
  58. package/src/lib/seam/connect/routes/noise-sensors-noise-thresholds.ts +2 -2
  59. package/src/lib/seam/connect/routes/phones.ts +2 -2
  60. package/src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts +2 -2
  61. package/src/lib/seam/connect/routes/user-identities-enrollment-automations.ts +2 -2
  62. package/src/lib/seam/connect/routes/user-identities.ts +6 -6
  63. package/src/lib/seam/connect/routes/webhooks.ts +2 -2
  64. package/src/lib/version.ts +1 -1
  65. package/lib/seam/connect/action-attempt-types.d.ts +0 -17
  66. package/lib/seam/connect/action-attempt-types.js +0 -3
  67. package/lib/seam/connect/action-attempt-types.js.map +0 -1
  68. package/src/lib/seam/connect/action-attempt-types.ts +0 -22
@@ -1,4 +1,4 @@
1
- import { RouteRequestBody, RouteResponse, openapi } from '@seamapi/types/connect';
1
+ import { RouteRequestBody, RouteResponse, ActionAttempt, openapi } from '@seamapi/types/connect';
2
2
  import { AxiosInstance, AxiosRequestConfig, Method } from 'axios';
3
3
  import { AxiosRetry } from 'axios-retry';
4
4
  export * from '@seamapi/url-search-params-serializer';
@@ -10,18 +10,6 @@ interface ClientOptions {
10
10
  }
11
11
  type AxiosRetryConfig = Parameters<AxiosRetry>[1];
12
12
 
13
- interface ActionAttempt {
14
- action_attempt_id: string;
15
- status: 'pending' | 'error' | 'success';
16
- }
17
- type FailedActionAttempt<T extends ActionAttempt> = T & {
18
- status: 'error';
19
- error: {
20
- type: string;
21
- message: string;
22
- };
23
- };
24
-
25
13
  interface SeamHttpRequestParent {
26
14
  readonly client: Client;
27
15
  readonly defaults: Required<SeamHttpRequestOptions>;
@@ -81,7 +69,7 @@ declare class SeamHttpAccessCodesUnmanaged {
81
69
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessCodesUnmanaged;
82
70
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
83
71
  convertToManaged(body?: AccessCodesUnmanagedConvertToManagedBody): SeamHttpRequest<void, undefined>;
84
- delete(body?: AccessCodesUnmanagedDeleteBody): SeamHttpRequest<void, undefined>;
72
+ delete(body?: AccessCodesUnmanagedDeleteParams): SeamHttpRequest<void, undefined>;
85
73
  get(body?: AccessCodesUnmanagedGetParams): SeamHttpRequest<AccessCodesUnmanagedGetResponse, 'access_code'>;
86
74
  list(body?: AccessCodesUnmanagedListParams): SeamHttpRequest<AccessCodesUnmanagedListResponse, 'access_codes'>;
87
75
  update(body?: AccessCodesUnmanagedUpdateBody): SeamHttpRequest<void, undefined>;
@@ -89,7 +77,7 @@ declare class SeamHttpAccessCodesUnmanaged {
89
77
  type AccessCodesUnmanagedConvertToManagedBody = RouteRequestBody<'/access_codes/unmanaged/convert_to_managed'>;
90
78
  type AccessCodesUnmanagedConvertToManagedResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/convert_to_managed'>>>;
91
79
  type AccessCodesUnmanagedConvertToManagedOptions = never;
92
- type AccessCodesUnmanagedDeleteBody = RouteRequestBody<'/access_codes/unmanaged/delete'>;
80
+ type AccessCodesUnmanagedDeleteParams = RouteRequestBody<'/access_codes/unmanaged/delete'>;
93
81
  type AccessCodesUnmanagedDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/delete'>>>;
94
82
  type AccessCodesUnmanagedDeleteOptions = never;
95
83
  type AccessCodesUnmanagedGetParams = RouteRequestBody<'/access_codes/unmanaged/get'>;
@@ -117,7 +105,7 @@ declare class SeamHttpAccessCodes {
117
105
  get simulate(): SeamHttpAccessCodesSimulate;
118
106
  create(body?: AccessCodesCreateBody): SeamHttpRequest<AccessCodesCreateResponse, 'access_code'>;
119
107
  createMultiple(body?: AccessCodesCreateMultipleBody): SeamHttpRequest<AccessCodesCreateMultipleResponse, 'access_codes'>;
120
- delete(body?: AccessCodesDeleteBody): SeamHttpRequest<void, undefined>;
108
+ delete(body?: AccessCodesDeleteParams): SeamHttpRequest<void, undefined>;
121
109
  generateCode(body?: AccessCodesGenerateCodeBody): SeamHttpRequest<AccessCodesGenerateCodeResponse, 'generated_code'>;
122
110
  get(body?: AccessCodesGetParams): SeamHttpRequest<AccessCodesGetResponse, 'access_code'>;
123
111
  list(body?: AccessCodesListParams): SeamHttpRequest<AccessCodesListResponse, 'access_codes'>;
@@ -130,7 +118,7 @@ type AccessCodesCreateOptions = never;
130
118
  type AccessCodesCreateMultipleBody = RouteRequestBody<'/access_codes/create_multiple'>;
131
119
  type AccessCodesCreateMultipleResponse = SetNonNullable<Required<RouteResponse<'/access_codes/create_multiple'>>>;
132
120
  type AccessCodesCreateMultipleOptions = never;
133
- type AccessCodesDeleteBody = RouteRequestBody<'/access_codes/delete'>;
121
+ type AccessCodesDeleteParams = RouteRequestBody<'/access_codes/delete'>;
134
122
  type AccessCodesDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/delete'>>>;
135
123
  type AccessCodesDeleteOptions = never;
136
124
  type AccessCodesGenerateCodeBody = RouteRequestBody<'/access_codes/generate_code'>;
@@ -164,7 +152,7 @@ declare class SeamHttpAcsAccessGroups {
164
152
  get(body?: AcsAccessGroupsGetParams): SeamHttpRequest<AcsAccessGroupsGetResponse, 'acs_access_group'>;
165
153
  list(body?: AcsAccessGroupsListParams): SeamHttpRequest<AcsAccessGroupsListResponse, 'acs_access_groups'>;
166
154
  listUsers(body?: AcsAccessGroupsListUsersParams): SeamHttpRequest<AcsAccessGroupsListUsersResponse, 'acs_users'>;
167
- removeUser(body?: AcsAccessGroupsRemoveUserBody): SeamHttpRequest<void, undefined>;
155
+ removeUser(body?: AcsAccessGroupsRemoveUserParams): SeamHttpRequest<void, undefined>;
168
156
  }
169
157
  type AcsAccessGroupsAddUserBody = RouteRequestBody<'/acs/access_groups/add_user'>;
170
158
  type AcsAccessGroupsAddUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/add_user'>>>;
@@ -178,7 +166,7 @@ type AcsAccessGroupsListOptions = never;
178
166
  type AcsAccessGroupsListUsersParams = RouteRequestBody<'/acs/access_groups/list_users'>;
179
167
  type AcsAccessGroupsListUsersResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/list_users'>>>;
180
168
  type AcsAccessGroupsListUsersOptions = never;
181
- type AcsAccessGroupsRemoveUserBody = RouteRequestBody<'/acs/access_groups/remove_user'>;
169
+ type AcsAccessGroupsRemoveUserParams = RouteRequestBody<'/acs/access_groups/remove_user'>;
182
170
  type AcsAccessGroupsRemoveUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/remove_user'>>>;
183
171
  type AcsAccessGroupsRemoveUserOptions = never;
184
172
 
@@ -229,7 +217,7 @@ declare class SeamHttpAcsCredentials {
229
217
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
230
218
  assign(body?: AcsCredentialsAssignBody): SeamHttpRequest<void, undefined>;
231
219
  create(body?: AcsCredentialsCreateBody): SeamHttpRequest<AcsCredentialsCreateResponse, 'acs_credential'>;
232
- delete(body?: AcsCredentialsDeleteBody): SeamHttpRequest<void, undefined>;
220
+ delete(body?: AcsCredentialsDeleteParams): SeamHttpRequest<void, undefined>;
233
221
  get(body?: AcsCredentialsGetParams): SeamHttpRequest<AcsCredentialsGetResponse, 'acs_credential'>;
234
222
  list(body?: AcsCredentialsListParams): SeamHttpRequest<AcsCredentialsListResponse, 'acs_credentials'>;
235
223
  listAccessibleEntrances(body?: AcsCredentialsListAccessibleEntrancesParams): SeamHttpRequest<AcsCredentialsListAccessibleEntrancesResponse, 'acs_entrances'>;
@@ -242,7 +230,7 @@ type AcsCredentialsAssignOptions = never;
242
230
  type AcsCredentialsCreateBody = RouteRequestBody<'/acs/credentials/create'>;
243
231
  type AcsCredentialsCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/create'>>>;
244
232
  type AcsCredentialsCreateOptions = never;
245
- type AcsCredentialsDeleteBody = RouteRequestBody<'/acs/credentials/delete'>;
233
+ type AcsCredentialsDeleteParams = RouteRequestBody<'/acs/credentials/delete'>;
246
234
  type AcsCredentialsDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/delete'>>>;
247
235
  type AcsCredentialsDeleteOptions = never;
248
236
  type AcsCredentialsGetParams = RouteRequestBody<'/acs/credentials/get'>;
@@ -328,12 +316,12 @@ declare class SeamHttpAcsUsers {
328
316
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
329
317
  addToAccessGroup(body?: AcsUsersAddToAccessGroupBody): SeamHttpRequest<void, undefined>;
330
318
  create(body?: AcsUsersCreateBody): SeamHttpRequest<AcsUsersCreateResponse, 'acs_user'>;
331
- delete(body?: AcsUsersDeleteBody): SeamHttpRequest<void, undefined>;
319
+ delete(body?: AcsUsersDeleteParams): SeamHttpRequest<void, undefined>;
332
320
  get(body?: AcsUsersGetParams): SeamHttpRequest<AcsUsersGetResponse, 'acs_user'>;
333
321
  list(body?: AcsUsersListParams): SeamHttpRequest<AcsUsersListResponse, 'acs_users'>;
334
322
  listAccessibleEntrances(body?: AcsUsersListAccessibleEntrancesParams): SeamHttpRequest<AcsUsersListAccessibleEntrancesResponse, 'acs_entrances'>;
335
- removeFromAccessGroup(body?: AcsUsersRemoveFromAccessGroupBody): SeamHttpRequest<void, undefined>;
336
- revokeAccessToAllEntrances(body?: AcsUsersRevokeAccessToAllEntrancesBody): SeamHttpRequest<void, undefined>;
323
+ removeFromAccessGroup(body?: AcsUsersRemoveFromAccessGroupParams): SeamHttpRequest<void, undefined>;
324
+ revokeAccessToAllEntrances(body?: AcsUsersRevokeAccessToAllEntrancesParams): SeamHttpRequest<void, undefined>;
337
325
  suspend(body?: AcsUsersSuspendBody): SeamHttpRequest<void, undefined>;
338
326
  unsuspend(body?: AcsUsersUnsuspendBody): SeamHttpRequest<void, undefined>;
339
327
  update(body?: AcsUsersUpdateBody): SeamHttpRequest<void, undefined>;
@@ -344,7 +332,7 @@ type AcsUsersAddToAccessGroupOptions = never;
344
332
  type AcsUsersCreateBody = RouteRequestBody<'/acs/users/create'>;
345
333
  type AcsUsersCreateResponse = SetNonNullable<Required<RouteResponse<'/acs/users/create'>>>;
346
334
  type AcsUsersCreateOptions = never;
347
- type AcsUsersDeleteBody = RouteRequestBody<'/acs/users/delete'>;
335
+ type AcsUsersDeleteParams = RouteRequestBody<'/acs/users/delete'>;
348
336
  type AcsUsersDeleteResponse = SetNonNullable<Required<RouteResponse<'/acs/users/delete'>>>;
349
337
  type AcsUsersDeleteOptions = never;
350
338
  type AcsUsersGetParams = RouteRequestBody<'/acs/users/get'>;
@@ -356,10 +344,10 @@ type AcsUsersListOptions = never;
356
344
  type AcsUsersListAccessibleEntrancesParams = RouteRequestBody<'/acs/users/list_accessible_entrances'>;
357
345
  type AcsUsersListAccessibleEntrancesResponse = SetNonNullable<Required<RouteResponse<'/acs/users/list_accessible_entrances'>>>;
358
346
  type AcsUsersListAccessibleEntrancesOptions = never;
359
- type AcsUsersRemoveFromAccessGroupBody = RouteRequestBody<'/acs/users/remove_from_access_group'>;
347
+ type AcsUsersRemoveFromAccessGroupParams = RouteRequestBody<'/acs/users/remove_from_access_group'>;
360
348
  type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable<Required<RouteResponse<'/acs/users/remove_from_access_group'>>>;
361
349
  type AcsUsersRemoveFromAccessGroupOptions = never;
362
- type AcsUsersRevokeAccessToAllEntrancesBody = RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'>;
350
+ type AcsUsersRevokeAccessToAllEntrancesParams = RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'>;
363
351
  type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable<Required<RouteResponse<'/acs/users/revoke_access_to_all_entrances'>>>;
364
352
  type AcsUsersRevokeAccessToAllEntrancesOptions = never;
365
353
  type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'>;
@@ -425,17 +413,17 @@ declare class SeamHttpClientSessions {
425
413
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpClientSessions;
426
414
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
427
415
  create(body?: ClientSessionsCreateBody): SeamHttpRequest<ClientSessionsCreateResponse, 'client_session'>;
428
- delete(body?: ClientSessionsDeleteBody): SeamHttpRequest<void, undefined>;
416
+ delete(body?: ClientSessionsDeleteParams): SeamHttpRequest<void, undefined>;
429
417
  get(body?: ClientSessionsGetParams): SeamHttpRequest<ClientSessionsGetResponse, 'client_session'>;
430
418
  getOrCreate(body?: ClientSessionsGetOrCreateBody): SeamHttpRequest<ClientSessionsGetOrCreateResponse, 'client_session'>;
431
419
  grantAccess(body?: ClientSessionsGrantAccessBody): SeamHttpRequest<void, undefined>;
432
420
  list(body?: ClientSessionsListParams): SeamHttpRequest<ClientSessionsListResponse, 'client_sessions'>;
433
- revoke(body?: ClientSessionsRevokeBody): SeamHttpRequest<void, undefined>;
421
+ revoke(body?: ClientSessionsRevokeParams): SeamHttpRequest<void, undefined>;
434
422
  }
435
423
  type ClientSessionsCreateBody = RouteRequestBody<'/client_sessions/create'>;
436
424
  type ClientSessionsCreateResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/create'>>>;
437
425
  type ClientSessionsCreateOptions = never;
438
- type ClientSessionsDeleteBody = RouteRequestBody<'/client_sessions/delete'>;
426
+ type ClientSessionsDeleteParams = RouteRequestBody<'/client_sessions/delete'>;
439
427
  type ClientSessionsDeleteResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/delete'>>>;
440
428
  type ClientSessionsDeleteOptions = never;
441
429
  type ClientSessionsGetParams = RouteRequestBody<'/client_sessions/get'>;
@@ -450,7 +438,7 @@ type ClientSessionsGrantAccessOptions = never;
450
438
  type ClientSessionsListParams = RouteRequestBody<'/client_sessions/list'>;
451
439
  type ClientSessionsListResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/list'>>>;
452
440
  type ClientSessionsListOptions = never;
453
- type ClientSessionsRevokeBody = RouteRequestBody<'/client_sessions/revoke'>;
441
+ type ClientSessionsRevokeParams = RouteRequestBody<'/client_sessions/revoke'>;
454
442
  type ClientSessionsRevokeResponse = SetNonNullable<Required<RouteResponse<'/client_sessions/revoke'>>>;
455
443
  type ClientSessionsRevokeOptions = never;
456
444
 
@@ -466,14 +454,14 @@ declare class SeamHttpConnectWebviews {
466
454
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpConnectWebviews;
467
455
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
468
456
  create(body?: ConnectWebviewsCreateBody): SeamHttpRequest<ConnectWebviewsCreateResponse, 'connect_webview'>;
469
- delete(body?: ConnectWebviewsDeleteBody): SeamHttpRequest<void, undefined>;
457
+ delete(body?: ConnectWebviewsDeleteParams): SeamHttpRequest<void, undefined>;
470
458
  get(body?: ConnectWebviewsGetParams): SeamHttpRequest<ConnectWebviewsGetResponse, 'connect_webview'>;
471
459
  list(body?: ConnectWebviewsListParams): SeamHttpRequest<ConnectWebviewsListResponse, 'connect_webviews'>;
472
460
  }
473
461
  type ConnectWebviewsCreateBody = RouteRequestBody<'/connect_webviews/create'>;
474
462
  type ConnectWebviewsCreateResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/create'>>>;
475
463
  type ConnectWebviewsCreateOptions = never;
476
- type ConnectWebviewsDeleteBody = RouteRequestBody<'/connect_webviews/delete'>;
464
+ type ConnectWebviewsDeleteParams = RouteRequestBody<'/connect_webviews/delete'>;
477
465
  type ConnectWebviewsDeleteResponse = SetNonNullable<Required<RouteResponse<'/connect_webviews/delete'>>>;
478
466
  type ConnectWebviewsDeleteOptions = never;
479
467
  type ConnectWebviewsGetParams = RouteRequestBody<'/connect_webviews/get'>;
@@ -494,12 +482,12 @@ declare class SeamHttpConnectedAccounts {
494
482
  static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpConnectedAccounts;
495
483
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpConnectedAccounts;
496
484
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
497
- delete(body?: ConnectedAccountsDeleteBody): SeamHttpRequest<void, undefined>;
485
+ delete(body?: ConnectedAccountsDeleteParams): SeamHttpRequest<void, undefined>;
498
486
  get(body?: ConnectedAccountsGetParams): SeamHttpRequest<ConnectedAccountsGetResponse, 'connected_account'>;
499
487
  list(body?: ConnectedAccountsListParams): SeamHttpRequest<ConnectedAccountsListResponse, 'connected_accounts'>;
500
488
  update(body?: ConnectedAccountsUpdateBody): SeamHttpRequest<ConnectedAccountsUpdateResponse, 'connected_account'>;
501
489
  }
502
- type ConnectedAccountsDeleteBody = RouteRequestBody<'/connected_accounts/delete'>;
490
+ type ConnectedAccountsDeleteParams = RouteRequestBody<'/connected_accounts/delete'>;
503
491
  type ConnectedAccountsDeleteResponse = SetNonNullable<Required<RouteResponse<'/connected_accounts/delete'>>>;
504
492
  type ConnectedAccountsDeleteOptions = never;
505
493
  type ConnectedAccountsGetParams = RouteRequestBody<'/connected_accounts/get'>;
@@ -523,9 +511,17 @@ declare class SeamHttpDevicesSimulate {
523
511
  static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpDevicesSimulate;
524
512
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpDevicesSimulate;
525
513
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
526
- remove(body?: DevicesSimulateRemoveBody): SeamHttpRequest<void, undefined>;
514
+ connect(body?: DevicesSimulateConnectBody): SeamHttpRequest<void, undefined>;
515
+ disconnect(body?: DevicesSimulateDisconnectBody): SeamHttpRequest<void, undefined>;
516
+ remove(body?: DevicesSimulateRemoveParams): SeamHttpRequest<void, undefined>;
527
517
  }
528
- type DevicesSimulateRemoveBody = RouteRequestBody<'/devices/simulate/remove'>;
518
+ type DevicesSimulateConnectBody = RouteRequestBody<'/devices/simulate/connect'>;
519
+ type DevicesSimulateConnectResponse = SetNonNullable<Required<RouteResponse<'/devices/simulate/connect'>>>;
520
+ type DevicesSimulateConnectOptions = never;
521
+ type DevicesSimulateDisconnectBody = RouteRequestBody<'/devices/simulate/disconnect'>;
522
+ type DevicesSimulateDisconnectResponse = SetNonNullable<Required<RouteResponse<'/devices/simulate/disconnect'>>>;
523
+ type DevicesSimulateDisconnectOptions = never;
524
+ type DevicesSimulateRemoveParams = RouteRequestBody<'/devices/simulate/remove'>;
529
525
  type DevicesSimulateRemoveResponse = SetNonNullable<Required<RouteResponse<'/devices/simulate/remove'>>>;
530
526
  type DevicesSimulateRemoveOptions = never;
531
527
 
@@ -567,13 +563,13 @@ declare class SeamHttpDevices {
567
563
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
568
564
  get unmanaged(): SeamHttpDevicesUnmanaged;
569
565
  get simulate(): SeamHttpDevicesSimulate;
570
- delete(body?: DevicesDeleteBody): SeamHttpRequest<void, undefined>;
566
+ delete(body?: DevicesDeleteParams): SeamHttpRequest<void, undefined>;
571
567
  get(body?: DevicesGetParams): SeamHttpRequest<DevicesGetResponse, 'device'>;
572
568
  list(body?: DevicesListParams): SeamHttpRequest<DevicesListResponse, 'devices'>;
573
569
  listDeviceProviders(body?: DevicesListDeviceProvidersParams): SeamHttpRequest<DevicesListDeviceProvidersResponse, 'device_providers'>;
574
570
  update(body?: DevicesUpdateBody): SeamHttpRequest<void, undefined>;
575
571
  }
576
- type DevicesDeleteBody = RouteRequestBody<'/devices/delete'>;
572
+ type DevicesDeleteParams = RouteRequestBody<'/devices/delete'>;
577
573
  type DevicesDeleteResponse = SetNonNullable<Required<RouteResponse<'/devices/delete'>>>;
578
574
  type DevicesDeleteOptions = never;
579
575
  type DevicesGetParams = RouteRequestBody<'/devices/get'>;
@@ -672,7 +668,7 @@ declare class SeamHttpNoiseSensorsNoiseThresholds {
672
668
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpNoiseSensorsNoiseThresholds;
673
669
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
674
670
  create(body?: NoiseSensorsNoiseThresholdsCreateBody): SeamHttpRequest<NoiseSensorsNoiseThresholdsCreateResponse, 'noise_threshold'>;
675
- delete(body?: NoiseSensorsNoiseThresholdsDeleteBody): SeamHttpRequest<void, undefined>;
671
+ delete(body?: NoiseSensorsNoiseThresholdsDeleteParams): SeamHttpRequest<void, undefined>;
676
672
  get(body?: NoiseSensorsNoiseThresholdsGetParams): SeamHttpRequest<NoiseSensorsNoiseThresholdsGetResponse, 'noise_threshold'>;
677
673
  list(body?: NoiseSensorsNoiseThresholdsListParams): SeamHttpRequest<NoiseSensorsNoiseThresholdsListResponse, 'noise_thresholds'>;
678
674
  update(body?: NoiseSensorsNoiseThresholdsUpdateBody): SeamHttpRequest<void, undefined>;
@@ -680,7 +676,7 @@ declare class SeamHttpNoiseSensorsNoiseThresholds {
680
676
  type NoiseSensorsNoiseThresholdsCreateBody = RouteRequestBody<'/noise_sensors/noise_thresholds/create'>;
681
677
  type NoiseSensorsNoiseThresholdsCreateResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/create'>>>;
682
678
  type NoiseSensorsNoiseThresholdsCreateOptions = never;
683
- type NoiseSensorsNoiseThresholdsDeleteBody = RouteRequestBody<'/noise_sensors/noise_thresholds/delete'>;
679
+ type NoiseSensorsNoiseThresholdsDeleteParams = RouteRequestBody<'/noise_sensors/noise_thresholds/delete'>;
684
680
  type NoiseSensorsNoiseThresholdsDeleteResponse = SetNonNullable<Required<RouteResponse<'/noise_sensors/noise_thresholds/delete'>>>;
685
681
  type NoiseSensorsNoiseThresholdsDeleteOptions = never;
686
682
  type NoiseSensorsNoiseThresholdsGetParams = RouteRequestBody<'/noise_sensors/noise_thresholds/get'>;
@@ -754,10 +750,10 @@ declare class SeamHttpPhones {
754
750
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpPhones;
755
751
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
756
752
  get simulate(): SeamHttpPhonesSimulate;
757
- deactivate(body?: PhonesDeactivateBody): SeamHttpRequest<void, undefined>;
753
+ deactivate(body?: PhonesDeactivateParams): SeamHttpRequest<void, undefined>;
758
754
  list(body?: PhonesListParams): SeamHttpRequest<PhonesListResponse, 'phones'>;
759
755
  }
760
- type PhonesDeactivateBody = RouteRequestBody<'/phones/deactivate'>;
756
+ type PhonesDeactivateParams = RouteRequestBody<'/phones/deactivate'>;
761
757
  type PhonesDeactivateResponse = SetNonNullable<Required<RouteResponse<'/phones/deactivate'>>>;
762
758
  type PhonesDeactivateOptions = never;
763
759
  type PhonesListParams = RouteRequestBody<'/phones/list'>;
@@ -776,7 +772,7 @@ declare class SeamHttpThermostatsClimateSettingSchedules {
776
772
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostatsClimateSettingSchedules;
777
773
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
778
774
  create(body?: ThermostatsClimateSettingSchedulesCreateBody): SeamHttpRequest<ThermostatsClimateSettingSchedulesCreateResponse, 'climate_setting_schedule'>;
779
- delete(body?: ThermostatsClimateSettingSchedulesDeleteBody): SeamHttpRequest<void, undefined>;
775
+ delete(body?: ThermostatsClimateSettingSchedulesDeleteParams): SeamHttpRequest<void, undefined>;
780
776
  get(body?: ThermostatsClimateSettingSchedulesGetParams): SeamHttpRequest<ThermostatsClimateSettingSchedulesGetResponse, 'climate_setting_schedule'>;
781
777
  list(body?: ThermostatsClimateSettingSchedulesListParams): SeamHttpRequest<ThermostatsClimateSettingSchedulesListResponse, 'climate_setting_schedules'>;
782
778
  update(body?: ThermostatsClimateSettingSchedulesUpdateBody): SeamHttpRequest<void, undefined>;
@@ -784,7 +780,7 @@ declare class SeamHttpThermostatsClimateSettingSchedules {
784
780
  type ThermostatsClimateSettingSchedulesCreateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/create'>;
785
781
  type ThermostatsClimateSettingSchedulesCreateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/create'>>>;
786
782
  type ThermostatsClimateSettingSchedulesCreateOptions = never;
787
- type ThermostatsClimateSettingSchedulesDeleteBody = RouteRequestBody<'/thermostats/climate_setting_schedules/delete'>;
783
+ type ThermostatsClimateSettingSchedulesDeleteParams = RouteRequestBody<'/thermostats/climate_setting_schedules/delete'>;
788
784
  type ThermostatsClimateSettingSchedulesDeleteResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/delete'>>>;
789
785
  type ThermostatsClimateSettingSchedulesDeleteOptions = never;
790
786
  type ThermostatsClimateSettingSchedulesGetParams = RouteRequestBody<'/thermostats/climate_setting_schedules/get'>;
@@ -854,12 +850,12 @@ declare class SeamHttpUserIdentitiesEnrollmentAutomations {
854
850
  static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpUserIdentitiesEnrollmentAutomations;
855
851
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpUserIdentitiesEnrollmentAutomations;
856
852
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
857
- delete(body?: UserIdentitiesEnrollmentAutomationsDeleteBody): SeamHttpRequest<void, undefined>;
853
+ delete(body?: UserIdentitiesEnrollmentAutomationsDeleteParams): SeamHttpRequest<void, undefined>;
858
854
  get(body?: UserIdentitiesEnrollmentAutomationsGetParams): SeamHttpRequest<UserIdentitiesEnrollmentAutomationsGetResponse, 'enrollment_automation'>;
859
855
  launch(body?: UserIdentitiesEnrollmentAutomationsLaunchBody): SeamHttpRequest<UserIdentitiesEnrollmentAutomationsLaunchResponse, 'enrollment_automation'>;
860
856
  list(body?: UserIdentitiesEnrollmentAutomationsListParams): SeamHttpRequest<UserIdentitiesEnrollmentAutomationsListResponse, 'enrollment_automations'>;
861
857
  }
862
- type UserIdentitiesEnrollmentAutomationsDeleteBody = RouteRequestBody<'/user_identities/enrollment_automations/delete'>;
858
+ type UserIdentitiesEnrollmentAutomationsDeleteParams = RouteRequestBody<'/user_identities/enrollment_automations/delete'>;
863
859
  type UserIdentitiesEnrollmentAutomationsDeleteResponse = SetNonNullable<Required<RouteResponse<'/user_identities/enrollment_automations/delete'>>>;
864
860
  type UserIdentitiesEnrollmentAutomationsDeleteOptions = never;
865
861
  type UserIdentitiesEnrollmentAutomationsGetParams = RouteRequestBody<'/user_identities/enrollment_automations/get'>;
@@ -886,15 +882,15 @@ declare class SeamHttpUserIdentities {
886
882
  get enrollmentAutomations(): SeamHttpUserIdentitiesEnrollmentAutomations;
887
883
  addAcsUser(body?: UserIdentitiesAddAcsUserBody): SeamHttpRequest<void, undefined>;
888
884
  create(body?: UserIdentitiesCreateBody): SeamHttpRequest<UserIdentitiesCreateResponse, 'user_identity'>;
889
- delete(body?: UserIdentitiesDeleteBody): SeamHttpRequest<void, undefined>;
885
+ delete(body?: UserIdentitiesDeleteParams): SeamHttpRequest<void, undefined>;
890
886
  get(body?: UserIdentitiesGetParams): SeamHttpRequest<UserIdentitiesGetResponse, 'user_identity'>;
891
887
  grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): SeamHttpRequest<void, undefined>;
892
888
  list(body?: UserIdentitiesListParams): SeamHttpRequest<UserIdentitiesListResponse, 'user_identities'>;
893
889
  listAccessibleDevices(body?: UserIdentitiesListAccessibleDevicesParams): SeamHttpRequest<UserIdentitiesListAccessibleDevicesResponse, 'devices'>;
894
890
  listAcsSystems(body?: UserIdentitiesListAcsSystemsParams): SeamHttpRequest<UserIdentitiesListAcsSystemsResponse, 'acs_systems'>;
895
891
  listAcsUsers(body?: UserIdentitiesListAcsUsersParams): SeamHttpRequest<UserIdentitiesListAcsUsersResponse, 'acs_users'>;
896
- removeAcsUser(body?: UserIdentitiesRemoveAcsUserBody): SeamHttpRequest<void, undefined>;
897
- revokeAccessToDevice(body?: UserIdentitiesRevokeAccessToDeviceBody): SeamHttpRequest<void, undefined>;
892
+ removeAcsUser(body?: UserIdentitiesRemoveAcsUserParams): SeamHttpRequest<void, undefined>;
893
+ revokeAccessToDevice(body?: UserIdentitiesRevokeAccessToDeviceParams): SeamHttpRequest<void, undefined>;
898
894
  update(body?: UserIdentitiesUpdateBody): SeamHttpRequest<void, undefined>;
899
895
  }
900
896
  type UserIdentitiesAddAcsUserBody = RouteRequestBody<'/user_identities/add_acs_user'>;
@@ -903,7 +899,7 @@ type UserIdentitiesAddAcsUserOptions = never;
903
899
  type UserIdentitiesCreateBody = RouteRequestBody<'/user_identities/create'>;
904
900
  type UserIdentitiesCreateResponse = SetNonNullable<Required<RouteResponse<'/user_identities/create'>>>;
905
901
  type UserIdentitiesCreateOptions = never;
906
- type UserIdentitiesDeleteBody = RouteRequestBody<'/user_identities/delete'>;
902
+ type UserIdentitiesDeleteParams = RouteRequestBody<'/user_identities/delete'>;
907
903
  type UserIdentitiesDeleteResponse = SetNonNullable<Required<RouteResponse<'/user_identities/delete'>>>;
908
904
  type UserIdentitiesDeleteOptions = never;
909
905
  type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'>;
@@ -924,10 +920,10 @@ type UserIdentitiesListAcsSystemsOptions = never;
924
920
  type UserIdentitiesListAcsUsersParams = RouteRequestBody<'/user_identities/list_acs_users'>;
925
921
  type UserIdentitiesListAcsUsersResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list_acs_users'>>>;
926
922
  type UserIdentitiesListAcsUsersOptions = never;
927
- type UserIdentitiesRemoveAcsUserBody = RouteRequestBody<'/user_identities/remove_acs_user'>;
923
+ type UserIdentitiesRemoveAcsUserParams = RouteRequestBody<'/user_identities/remove_acs_user'>;
928
924
  type UserIdentitiesRemoveAcsUserResponse = SetNonNullable<Required<RouteResponse<'/user_identities/remove_acs_user'>>>;
929
925
  type UserIdentitiesRemoveAcsUserOptions = never;
930
- type UserIdentitiesRevokeAccessToDeviceBody = RouteRequestBody<'/user_identities/revoke_access_to_device'>;
926
+ type UserIdentitiesRevokeAccessToDeviceParams = RouteRequestBody<'/user_identities/revoke_access_to_device'>;
931
927
  type UserIdentitiesRevokeAccessToDeviceResponse = SetNonNullable<Required<RouteResponse<'/user_identities/revoke_access_to_device'>>>;
932
928
  type UserIdentitiesRevokeAccessToDeviceOptions = never;
933
929
  type UserIdentitiesUpdateBody = RouteRequestBody<'/user_identities/update'>;
@@ -946,7 +942,7 @@ declare class SeamHttpWebhooks {
946
942
  static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpWebhooks;
947
943
  updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
948
944
  create(body?: WebhooksCreateBody): SeamHttpRequest<WebhooksCreateResponse, 'webhook'>;
949
- delete(body?: WebhooksDeleteBody): SeamHttpRequest<void, undefined>;
945
+ delete(body?: WebhooksDeleteParams): SeamHttpRequest<void, undefined>;
950
946
  get(body?: WebhooksGetParams): SeamHttpRequest<WebhooksGetResponse, 'webhook'>;
951
947
  list(body?: WebhooksListParams): SeamHttpRequest<WebhooksListResponse, 'webhooks'>;
952
948
  update(body?: WebhooksUpdateBody): SeamHttpRequest<void, undefined>;
@@ -954,7 +950,7 @@ declare class SeamHttpWebhooks {
954
950
  type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'>;
955
951
  type WebhooksCreateResponse = SetNonNullable<Required<RouteResponse<'/webhooks/create'>>>;
956
952
  type WebhooksCreateOptions = never;
957
- type WebhooksDeleteBody = RouteRequestBody<'/webhooks/delete'>;
953
+ type WebhooksDeleteParams = RouteRequestBody<'/webhooks/delete'>;
958
954
  type WebhooksDeleteResponse = SetNonNullable<Required<RouteResponse<'/webhooks/delete'>>>;
959
955
  type WebhooksDeleteOptions = never;
960
956
  type WebhooksGetParams = RouteRequestBody<'/webhooks/get'>;
@@ -1000,20 +996,968 @@ interface ResolveActionAttemptOptions {
1000
996
  timeout?: number;
1001
997
  pollingInterval?: number;
1002
998
  }
1003
- declare const isSeamActionAttemptError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptError<T>;
999
+ declare const isSeamActionAttemptError: <T extends {
1000
+ error: null;
1001
+ status: "pending";
1002
+ action_attempt_id: string;
1003
+ result: null;
1004
+ action_type: "LOCK_DOOR";
1005
+ } | {
1006
+ error: null;
1007
+ status: "success";
1008
+ action_attempt_id: string;
1009
+ result: {};
1010
+ action_type: "LOCK_DOOR";
1011
+ } | {
1012
+ error: {
1013
+ type: string;
1014
+ message: string;
1015
+ };
1016
+ status: "error";
1017
+ action_attempt_id: string;
1018
+ result: null;
1019
+ action_type: "LOCK_DOOR";
1020
+ } | {
1021
+ error: null;
1022
+ status: "pending";
1023
+ action_attempt_id: string;
1024
+ result: null;
1025
+ action_type: "UNLOCK_DOOR";
1026
+ } | {
1027
+ error: null;
1028
+ status: "success";
1029
+ action_attempt_id: string;
1030
+ result: {};
1031
+ action_type: "UNLOCK_DOOR";
1032
+ } | {
1033
+ error: {
1034
+ type: string;
1035
+ message: string;
1036
+ };
1037
+ status: "error";
1038
+ action_attempt_id: string;
1039
+ result: null;
1040
+ action_type: "UNLOCK_DOOR";
1041
+ } | {
1042
+ error: null;
1043
+ status: "pending";
1044
+ action_attempt_id: string;
1045
+ result: null;
1046
+ action_type: "RESET_SANDBOX_WORKSPACE";
1047
+ } | {
1048
+ error: null;
1049
+ status: "success";
1050
+ action_attempt_id: string;
1051
+ result: {};
1052
+ action_type: "RESET_SANDBOX_WORKSPACE";
1053
+ } | {
1054
+ error: {
1055
+ type: string;
1056
+ message: string;
1057
+ };
1058
+ status: "error";
1059
+ action_attempt_id: string;
1060
+ result: null;
1061
+ action_type: "RESET_SANDBOX_WORKSPACE";
1062
+ } | {
1063
+ error: null;
1064
+ status: "pending";
1065
+ action_attempt_id: string;
1066
+ result: null;
1067
+ action_type: "SET_COOL";
1068
+ } | {
1069
+ error: null;
1070
+ status: "success";
1071
+ action_attempt_id: string;
1072
+ result: {};
1073
+ action_type: "SET_COOL";
1074
+ } | {
1075
+ error: {
1076
+ type: string;
1077
+ message: string;
1078
+ };
1079
+ status: "error";
1080
+ action_attempt_id: string;
1081
+ result: null;
1082
+ action_type: "SET_COOL";
1083
+ } | {
1084
+ error: null;
1085
+ status: "pending";
1086
+ action_attempt_id: string;
1087
+ result: null;
1088
+ action_type: "SET_HEAT";
1089
+ } | {
1090
+ error: null;
1091
+ status: "success";
1092
+ action_attempt_id: string;
1093
+ result: {};
1094
+ action_type: "SET_HEAT";
1095
+ } | {
1096
+ error: {
1097
+ type: string;
1098
+ message: string;
1099
+ };
1100
+ status: "error";
1101
+ action_attempt_id: string;
1102
+ result: null;
1103
+ action_type: "SET_HEAT";
1104
+ } | {
1105
+ error: null;
1106
+ status: "pending";
1107
+ action_attempt_id: string;
1108
+ result: null;
1109
+ action_type: "SET_HEAT_COOL";
1110
+ } | {
1111
+ error: null;
1112
+ status: "success";
1113
+ action_attempt_id: string;
1114
+ result: {};
1115
+ action_type: "SET_HEAT_COOL";
1116
+ } | {
1117
+ error: {
1118
+ type: string;
1119
+ message: string;
1120
+ };
1121
+ status: "error";
1122
+ action_attempt_id: string;
1123
+ result: null;
1124
+ action_type: "SET_HEAT_COOL";
1125
+ } | {
1126
+ error: null;
1127
+ status: "pending";
1128
+ action_attempt_id: string;
1129
+ result: null;
1130
+ action_type: "SET_FAN_MODE";
1131
+ } | {
1132
+ error: null;
1133
+ status: "success";
1134
+ action_attempt_id: string;
1135
+ result: {};
1136
+ action_type: "SET_FAN_MODE";
1137
+ } | {
1138
+ error: {
1139
+ type: string;
1140
+ message: string;
1141
+ };
1142
+ status: "error";
1143
+ action_attempt_id: string;
1144
+ result: null;
1145
+ action_type: "SET_FAN_MODE";
1146
+ } | {
1147
+ error: null;
1148
+ status: "pending";
1149
+ action_attempt_id: string;
1150
+ result: null;
1151
+ action_type: "SET_THERMOSTAT_OFF";
1152
+ } | {
1153
+ error: null;
1154
+ status: "success";
1155
+ action_attempt_id: string;
1156
+ result: {};
1157
+ action_type: "SET_THERMOSTAT_OFF";
1158
+ } | {
1159
+ error: {
1160
+ type: string;
1161
+ message: string;
1162
+ };
1163
+ status: "error";
1164
+ action_attempt_id: string;
1165
+ result: null;
1166
+ action_type: "SET_THERMOSTAT_OFF";
1167
+ } | {
1168
+ error: null;
1169
+ status: "pending";
1170
+ action_attempt_id: string;
1171
+ result: null;
1172
+ action_type: "SYNC_ACCESS_CODES";
1173
+ } | {
1174
+ error: null;
1175
+ status: "success";
1176
+ action_attempt_id: string;
1177
+ action_type: "SYNC_ACCESS_CODES";
1178
+ result?: any;
1179
+ } | {
1180
+ error: {
1181
+ type: string;
1182
+ message: string;
1183
+ };
1184
+ status: "error";
1185
+ action_attempt_id: string;
1186
+ result: null;
1187
+ action_type: "SYNC_ACCESS_CODES";
1188
+ } | {
1189
+ error: null;
1190
+ status: "pending";
1191
+ action_attempt_id: string;
1192
+ result: null;
1193
+ action_type: "CREATE_ACCESS_CODE";
1194
+ } | {
1195
+ error: null;
1196
+ status: "success";
1197
+ action_attempt_id: string;
1198
+ action_type: "CREATE_ACCESS_CODE";
1199
+ result?: any;
1200
+ } | {
1201
+ error: {
1202
+ type: string;
1203
+ message: string;
1204
+ };
1205
+ status: "error";
1206
+ action_attempt_id: string;
1207
+ result: null;
1208
+ action_type: "CREATE_ACCESS_CODE";
1209
+ } | {
1210
+ error: null;
1211
+ status: "pending";
1212
+ action_attempt_id: string;
1213
+ result: null;
1214
+ action_type: "DELETE_ACCESS_CODE";
1215
+ } | {
1216
+ error: null;
1217
+ status: "success";
1218
+ action_attempt_id: string;
1219
+ action_type: "DELETE_ACCESS_CODE";
1220
+ result?: any;
1221
+ } | {
1222
+ error: {
1223
+ type: string;
1224
+ message: string;
1225
+ };
1226
+ status: "error";
1227
+ action_attempt_id: string;
1228
+ result: null;
1229
+ action_type: "DELETE_ACCESS_CODE";
1230
+ } | {
1231
+ error: null;
1232
+ status: "pending";
1233
+ action_attempt_id: string;
1234
+ result: null;
1235
+ action_type: "UPDATE_ACCESS_CODE";
1236
+ } | {
1237
+ error: null;
1238
+ status: "success";
1239
+ action_attempt_id: string;
1240
+ action_type: "UPDATE_ACCESS_CODE";
1241
+ result?: any;
1242
+ } | {
1243
+ error: {
1244
+ type: string;
1245
+ message: string;
1246
+ };
1247
+ status: "error";
1248
+ action_attempt_id: string;
1249
+ result: null;
1250
+ action_type: "UPDATE_ACCESS_CODE";
1251
+ } | {
1252
+ error: null;
1253
+ status: "pending";
1254
+ action_attempt_id: string;
1255
+ result: null;
1256
+ action_type: "CREATE_NOISE_THRESHOLD";
1257
+ } | {
1258
+ error: null;
1259
+ status: "success";
1260
+ action_attempt_id: string;
1261
+ action_type: "CREATE_NOISE_THRESHOLD";
1262
+ result?: any;
1263
+ } | {
1264
+ error: {
1265
+ type: string;
1266
+ message: string;
1267
+ };
1268
+ status: "error";
1269
+ action_attempt_id: string;
1270
+ result: null;
1271
+ action_type: "CREATE_NOISE_THRESHOLD";
1272
+ } | {
1273
+ error: null;
1274
+ status: "pending";
1275
+ action_attempt_id: string;
1276
+ result: null;
1277
+ action_type: "DELETE_NOISE_THRESHOLD";
1278
+ } | {
1279
+ error: null;
1280
+ status: "success";
1281
+ action_attempt_id: string;
1282
+ action_type: "DELETE_NOISE_THRESHOLD";
1283
+ result?: any;
1284
+ } | {
1285
+ error: {
1286
+ type: string;
1287
+ message: string;
1288
+ };
1289
+ status: "error";
1290
+ action_attempt_id: string;
1291
+ result: null;
1292
+ action_type: "DELETE_NOISE_THRESHOLD";
1293
+ } | {
1294
+ error: null;
1295
+ status: "pending";
1296
+ action_attempt_id: string;
1297
+ result: null;
1298
+ action_type: "UPDATE_NOISE_THRESHOLD";
1299
+ } | {
1300
+ error: null;
1301
+ status: "success";
1302
+ action_attempt_id: string;
1303
+ action_type: "UPDATE_NOISE_THRESHOLD";
1304
+ result?: any;
1305
+ } | {
1306
+ error: {
1307
+ type: string;
1308
+ message: string;
1309
+ };
1310
+ status: "error";
1311
+ action_attempt_id: string;
1312
+ result: null;
1313
+ action_type: "UPDATE_NOISE_THRESHOLD";
1314
+ }>(error: unknown) => error is SeamActionAttemptError<T>;
1004
1315
  declare class SeamActionAttemptError<T extends ActionAttempt> extends Error {
1005
1316
  actionAttempt: T;
1006
1317
  constructor(message: string, actionAttempt: T);
1007
1318
  }
1008
- declare const isSeamActionAttemptFailedError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptFailedError<T>;
1319
+ declare const isSeamActionAttemptFailedError: <T extends {
1320
+ error: null;
1321
+ status: "pending";
1322
+ action_attempt_id: string;
1323
+ result: null;
1324
+ action_type: "LOCK_DOOR";
1325
+ } | {
1326
+ error: null;
1327
+ status: "success";
1328
+ action_attempt_id: string;
1329
+ result: {};
1330
+ action_type: "LOCK_DOOR";
1331
+ } | {
1332
+ error: {
1333
+ type: string;
1334
+ message: string;
1335
+ };
1336
+ status: "error";
1337
+ action_attempt_id: string;
1338
+ result: null;
1339
+ action_type: "LOCK_DOOR";
1340
+ } | {
1341
+ error: null;
1342
+ status: "pending";
1343
+ action_attempt_id: string;
1344
+ result: null;
1345
+ action_type: "UNLOCK_DOOR";
1346
+ } | {
1347
+ error: null;
1348
+ status: "success";
1349
+ action_attempt_id: string;
1350
+ result: {};
1351
+ action_type: "UNLOCK_DOOR";
1352
+ } | {
1353
+ error: {
1354
+ type: string;
1355
+ message: string;
1356
+ };
1357
+ status: "error";
1358
+ action_attempt_id: string;
1359
+ result: null;
1360
+ action_type: "UNLOCK_DOOR";
1361
+ } | {
1362
+ error: null;
1363
+ status: "pending";
1364
+ action_attempt_id: string;
1365
+ result: null;
1366
+ action_type: "RESET_SANDBOX_WORKSPACE";
1367
+ } | {
1368
+ error: null;
1369
+ status: "success";
1370
+ action_attempt_id: string;
1371
+ result: {};
1372
+ action_type: "RESET_SANDBOX_WORKSPACE";
1373
+ } | {
1374
+ error: {
1375
+ type: string;
1376
+ message: string;
1377
+ };
1378
+ status: "error";
1379
+ action_attempt_id: string;
1380
+ result: null;
1381
+ action_type: "RESET_SANDBOX_WORKSPACE";
1382
+ } | {
1383
+ error: null;
1384
+ status: "pending";
1385
+ action_attempt_id: string;
1386
+ result: null;
1387
+ action_type: "SET_COOL";
1388
+ } | {
1389
+ error: null;
1390
+ status: "success";
1391
+ action_attempt_id: string;
1392
+ result: {};
1393
+ action_type: "SET_COOL";
1394
+ } | {
1395
+ error: {
1396
+ type: string;
1397
+ message: string;
1398
+ };
1399
+ status: "error";
1400
+ action_attempt_id: string;
1401
+ result: null;
1402
+ action_type: "SET_COOL";
1403
+ } | {
1404
+ error: null;
1405
+ status: "pending";
1406
+ action_attempt_id: string;
1407
+ result: null;
1408
+ action_type: "SET_HEAT";
1409
+ } | {
1410
+ error: null;
1411
+ status: "success";
1412
+ action_attempt_id: string;
1413
+ result: {};
1414
+ action_type: "SET_HEAT";
1415
+ } | {
1416
+ error: {
1417
+ type: string;
1418
+ message: string;
1419
+ };
1420
+ status: "error";
1421
+ action_attempt_id: string;
1422
+ result: null;
1423
+ action_type: "SET_HEAT";
1424
+ } | {
1425
+ error: null;
1426
+ status: "pending";
1427
+ action_attempt_id: string;
1428
+ result: null;
1429
+ action_type: "SET_HEAT_COOL";
1430
+ } | {
1431
+ error: null;
1432
+ status: "success";
1433
+ action_attempt_id: string;
1434
+ result: {};
1435
+ action_type: "SET_HEAT_COOL";
1436
+ } | {
1437
+ error: {
1438
+ type: string;
1439
+ message: string;
1440
+ };
1441
+ status: "error";
1442
+ action_attempt_id: string;
1443
+ result: null;
1444
+ action_type: "SET_HEAT_COOL";
1445
+ } | {
1446
+ error: null;
1447
+ status: "pending";
1448
+ action_attempt_id: string;
1449
+ result: null;
1450
+ action_type: "SET_FAN_MODE";
1451
+ } | {
1452
+ error: null;
1453
+ status: "success";
1454
+ action_attempt_id: string;
1455
+ result: {};
1456
+ action_type: "SET_FAN_MODE";
1457
+ } | {
1458
+ error: {
1459
+ type: string;
1460
+ message: string;
1461
+ };
1462
+ status: "error";
1463
+ action_attempt_id: string;
1464
+ result: null;
1465
+ action_type: "SET_FAN_MODE";
1466
+ } | {
1467
+ error: null;
1468
+ status: "pending";
1469
+ action_attempt_id: string;
1470
+ result: null;
1471
+ action_type: "SET_THERMOSTAT_OFF";
1472
+ } | {
1473
+ error: null;
1474
+ status: "success";
1475
+ action_attempt_id: string;
1476
+ result: {};
1477
+ action_type: "SET_THERMOSTAT_OFF";
1478
+ } | {
1479
+ error: {
1480
+ type: string;
1481
+ message: string;
1482
+ };
1483
+ status: "error";
1484
+ action_attempt_id: string;
1485
+ result: null;
1486
+ action_type: "SET_THERMOSTAT_OFF";
1487
+ } | {
1488
+ error: null;
1489
+ status: "pending";
1490
+ action_attempt_id: string;
1491
+ result: null;
1492
+ action_type: "SYNC_ACCESS_CODES";
1493
+ } | {
1494
+ error: null;
1495
+ status: "success";
1496
+ action_attempt_id: string;
1497
+ action_type: "SYNC_ACCESS_CODES";
1498
+ result?: any;
1499
+ } | {
1500
+ error: {
1501
+ type: string;
1502
+ message: string;
1503
+ };
1504
+ status: "error";
1505
+ action_attempt_id: string;
1506
+ result: null;
1507
+ action_type: "SYNC_ACCESS_CODES";
1508
+ } | {
1509
+ error: null;
1510
+ status: "pending";
1511
+ action_attempt_id: string;
1512
+ result: null;
1513
+ action_type: "CREATE_ACCESS_CODE";
1514
+ } | {
1515
+ error: null;
1516
+ status: "success";
1517
+ action_attempt_id: string;
1518
+ action_type: "CREATE_ACCESS_CODE";
1519
+ result?: any;
1520
+ } | {
1521
+ error: {
1522
+ type: string;
1523
+ message: string;
1524
+ };
1525
+ status: "error";
1526
+ action_attempt_id: string;
1527
+ result: null;
1528
+ action_type: "CREATE_ACCESS_CODE";
1529
+ } | {
1530
+ error: null;
1531
+ status: "pending";
1532
+ action_attempt_id: string;
1533
+ result: null;
1534
+ action_type: "DELETE_ACCESS_CODE";
1535
+ } | {
1536
+ error: null;
1537
+ status: "success";
1538
+ action_attempt_id: string;
1539
+ action_type: "DELETE_ACCESS_CODE";
1540
+ result?: any;
1541
+ } | {
1542
+ error: {
1543
+ type: string;
1544
+ message: string;
1545
+ };
1546
+ status: "error";
1547
+ action_attempt_id: string;
1548
+ result: null;
1549
+ action_type: "DELETE_ACCESS_CODE";
1550
+ } | {
1551
+ error: null;
1552
+ status: "pending";
1553
+ action_attempt_id: string;
1554
+ result: null;
1555
+ action_type: "UPDATE_ACCESS_CODE";
1556
+ } | {
1557
+ error: null;
1558
+ status: "success";
1559
+ action_attempt_id: string;
1560
+ action_type: "UPDATE_ACCESS_CODE";
1561
+ result?: any;
1562
+ } | {
1563
+ error: {
1564
+ type: string;
1565
+ message: string;
1566
+ };
1567
+ status: "error";
1568
+ action_attempt_id: string;
1569
+ result: null;
1570
+ action_type: "UPDATE_ACCESS_CODE";
1571
+ } | {
1572
+ error: null;
1573
+ status: "pending";
1574
+ action_attempt_id: string;
1575
+ result: null;
1576
+ action_type: "CREATE_NOISE_THRESHOLD";
1577
+ } | {
1578
+ error: null;
1579
+ status: "success";
1580
+ action_attempt_id: string;
1581
+ action_type: "CREATE_NOISE_THRESHOLD";
1582
+ result?: any;
1583
+ } | {
1584
+ error: {
1585
+ type: string;
1586
+ message: string;
1587
+ };
1588
+ status: "error";
1589
+ action_attempt_id: string;
1590
+ result: null;
1591
+ action_type: "CREATE_NOISE_THRESHOLD";
1592
+ } | {
1593
+ error: null;
1594
+ status: "pending";
1595
+ action_attempt_id: string;
1596
+ result: null;
1597
+ action_type: "DELETE_NOISE_THRESHOLD";
1598
+ } | {
1599
+ error: null;
1600
+ status: "success";
1601
+ action_attempt_id: string;
1602
+ action_type: "DELETE_NOISE_THRESHOLD";
1603
+ result?: any;
1604
+ } | {
1605
+ error: {
1606
+ type: string;
1607
+ message: string;
1608
+ };
1609
+ status: "error";
1610
+ action_attempt_id: string;
1611
+ result: null;
1612
+ action_type: "DELETE_NOISE_THRESHOLD";
1613
+ } | {
1614
+ error: null;
1615
+ status: "pending";
1616
+ action_attempt_id: string;
1617
+ result: null;
1618
+ action_type: "UPDATE_NOISE_THRESHOLD";
1619
+ } | {
1620
+ error: null;
1621
+ status: "success";
1622
+ action_attempt_id: string;
1623
+ action_type: "UPDATE_NOISE_THRESHOLD";
1624
+ result?: any;
1625
+ } | {
1626
+ error: {
1627
+ type: string;
1628
+ message: string;
1629
+ };
1630
+ status: "error";
1631
+ action_attempt_id: string;
1632
+ result: null;
1633
+ action_type: "UPDATE_NOISE_THRESHOLD";
1634
+ }>(error: unknown) => error is SeamActionAttemptFailedError<T>;
1009
1635
  declare class SeamActionAttemptFailedError<T extends ActionAttempt> extends SeamActionAttemptError<T> {
1010
1636
  code: string;
1011
1637
  constructor(actionAttempt: FailedActionAttempt<T>);
1012
1638
  }
1013
- declare const isSeamActionAttemptTimeoutError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptTimeoutError<T>;
1639
+ declare const isSeamActionAttemptTimeoutError: <T extends {
1640
+ error: null;
1641
+ status: "pending";
1642
+ action_attempt_id: string;
1643
+ result: null;
1644
+ action_type: "LOCK_DOOR";
1645
+ } | {
1646
+ error: null;
1647
+ status: "success";
1648
+ action_attempt_id: string;
1649
+ result: {};
1650
+ action_type: "LOCK_DOOR";
1651
+ } | {
1652
+ error: {
1653
+ type: string;
1654
+ message: string;
1655
+ };
1656
+ status: "error";
1657
+ action_attempt_id: string;
1658
+ result: null;
1659
+ action_type: "LOCK_DOOR";
1660
+ } | {
1661
+ error: null;
1662
+ status: "pending";
1663
+ action_attempt_id: string;
1664
+ result: null;
1665
+ action_type: "UNLOCK_DOOR";
1666
+ } | {
1667
+ error: null;
1668
+ status: "success";
1669
+ action_attempt_id: string;
1670
+ result: {};
1671
+ action_type: "UNLOCK_DOOR";
1672
+ } | {
1673
+ error: {
1674
+ type: string;
1675
+ message: string;
1676
+ };
1677
+ status: "error";
1678
+ action_attempt_id: string;
1679
+ result: null;
1680
+ action_type: "UNLOCK_DOOR";
1681
+ } | {
1682
+ error: null;
1683
+ status: "pending";
1684
+ action_attempt_id: string;
1685
+ result: null;
1686
+ action_type: "RESET_SANDBOX_WORKSPACE";
1687
+ } | {
1688
+ error: null;
1689
+ status: "success";
1690
+ action_attempt_id: string;
1691
+ result: {};
1692
+ action_type: "RESET_SANDBOX_WORKSPACE";
1693
+ } | {
1694
+ error: {
1695
+ type: string;
1696
+ message: string;
1697
+ };
1698
+ status: "error";
1699
+ action_attempt_id: string;
1700
+ result: null;
1701
+ action_type: "RESET_SANDBOX_WORKSPACE";
1702
+ } | {
1703
+ error: null;
1704
+ status: "pending";
1705
+ action_attempt_id: string;
1706
+ result: null;
1707
+ action_type: "SET_COOL";
1708
+ } | {
1709
+ error: null;
1710
+ status: "success";
1711
+ action_attempt_id: string;
1712
+ result: {};
1713
+ action_type: "SET_COOL";
1714
+ } | {
1715
+ error: {
1716
+ type: string;
1717
+ message: string;
1718
+ };
1719
+ status: "error";
1720
+ action_attempt_id: string;
1721
+ result: null;
1722
+ action_type: "SET_COOL";
1723
+ } | {
1724
+ error: null;
1725
+ status: "pending";
1726
+ action_attempt_id: string;
1727
+ result: null;
1728
+ action_type: "SET_HEAT";
1729
+ } | {
1730
+ error: null;
1731
+ status: "success";
1732
+ action_attempt_id: string;
1733
+ result: {};
1734
+ action_type: "SET_HEAT";
1735
+ } | {
1736
+ error: {
1737
+ type: string;
1738
+ message: string;
1739
+ };
1740
+ status: "error";
1741
+ action_attempt_id: string;
1742
+ result: null;
1743
+ action_type: "SET_HEAT";
1744
+ } | {
1745
+ error: null;
1746
+ status: "pending";
1747
+ action_attempt_id: string;
1748
+ result: null;
1749
+ action_type: "SET_HEAT_COOL";
1750
+ } | {
1751
+ error: null;
1752
+ status: "success";
1753
+ action_attempt_id: string;
1754
+ result: {};
1755
+ action_type: "SET_HEAT_COOL";
1756
+ } | {
1757
+ error: {
1758
+ type: string;
1759
+ message: string;
1760
+ };
1761
+ status: "error";
1762
+ action_attempt_id: string;
1763
+ result: null;
1764
+ action_type: "SET_HEAT_COOL";
1765
+ } | {
1766
+ error: null;
1767
+ status: "pending";
1768
+ action_attempt_id: string;
1769
+ result: null;
1770
+ action_type: "SET_FAN_MODE";
1771
+ } | {
1772
+ error: null;
1773
+ status: "success";
1774
+ action_attempt_id: string;
1775
+ result: {};
1776
+ action_type: "SET_FAN_MODE";
1777
+ } | {
1778
+ error: {
1779
+ type: string;
1780
+ message: string;
1781
+ };
1782
+ status: "error";
1783
+ action_attempt_id: string;
1784
+ result: null;
1785
+ action_type: "SET_FAN_MODE";
1786
+ } | {
1787
+ error: null;
1788
+ status: "pending";
1789
+ action_attempt_id: string;
1790
+ result: null;
1791
+ action_type: "SET_THERMOSTAT_OFF";
1792
+ } | {
1793
+ error: null;
1794
+ status: "success";
1795
+ action_attempt_id: string;
1796
+ result: {};
1797
+ action_type: "SET_THERMOSTAT_OFF";
1798
+ } | {
1799
+ error: {
1800
+ type: string;
1801
+ message: string;
1802
+ };
1803
+ status: "error";
1804
+ action_attempt_id: string;
1805
+ result: null;
1806
+ action_type: "SET_THERMOSTAT_OFF";
1807
+ } | {
1808
+ error: null;
1809
+ status: "pending";
1810
+ action_attempt_id: string;
1811
+ result: null;
1812
+ action_type: "SYNC_ACCESS_CODES";
1813
+ } | {
1814
+ error: null;
1815
+ status: "success";
1816
+ action_attempt_id: string;
1817
+ action_type: "SYNC_ACCESS_CODES";
1818
+ result?: any;
1819
+ } | {
1820
+ error: {
1821
+ type: string;
1822
+ message: string;
1823
+ };
1824
+ status: "error";
1825
+ action_attempt_id: string;
1826
+ result: null;
1827
+ action_type: "SYNC_ACCESS_CODES";
1828
+ } | {
1829
+ error: null;
1830
+ status: "pending";
1831
+ action_attempt_id: string;
1832
+ result: null;
1833
+ action_type: "CREATE_ACCESS_CODE";
1834
+ } | {
1835
+ error: null;
1836
+ status: "success";
1837
+ action_attempt_id: string;
1838
+ action_type: "CREATE_ACCESS_CODE";
1839
+ result?: any;
1840
+ } | {
1841
+ error: {
1842
+ type: string;
1843
+ message: string;
1844
+ };
1845
+ status: "error";
1846
+ action_attempt_id: string;
1847
+ result: null;
1848
+ action_type: "CREATE_ACCESS_CODE";
1849
+ } | {
1850
+ error: null;
1851
+ status: "pending";
1852
+ action_attempt_id: string;
1853
+ result: null;
1854
+ action_type: "DELETE_ACCESS_CODE";
1855
+ } | {
1856
+ error: null;
1857
+ status: "success";
1858
+ action_attempt_id: string;
1859
+ action_type: "DELETE_ACCESS_CODE";
1860
+ result?: any;
1861
+ } | {
1862
+ error: {
1863
+ type: string;
1864
+ message: string;
1865
+ };
1866
+ status: "error";
1867
+ action_attempt_id: string;
1868
+ result: null;
1869
+ action_type: "DELETE_ACCESS_CODE";
1870
+ } | {
1871
+ error: null;
1872
+ status: "pending";
1873
+ action_attempt_id: string;
1874
+ result: null;
1875
+ action_type: "UPDATE_ACCESS_CODE";
1876
+ } | {
1877
+ error: null;
1878
+ status: "success";
1879
+ action_attempt_id: string;
1880
+ action_type: "UPDATE_ACCESS_CODE";
1881
+ result?: any;
1882
+ } | {
1883
+ error: {
1884
+ type: string;
1885
+ message: string;
1886
+ };
1887
+ status: "error";
1888
+ action_attempt_id: string;
1889
+ result: null;
1890
+ action_type: "UPDATE_ACCESS_CODE";
1891
+ } | {
1892
+ error: null;
1893
+ status: "pending";
1894
+ action_attempt_id: string;
1895
+ result: null;
1896
+ action_type: "CREATE_NOISE_THRESHOLD";
1897
+ } | {
1898
+ error: null;
1899
+ status: "success";
1900
+ action_attempt_id: string;
1901
+ action_type: "CREATE_NOISE_THRESHOLD";
1902
+ result?: any;
1903
+ } | {
1904
+ error: {
1905
+ type: string;
1906
+ message: string;
1907
+ };
1908
+ status: "error";
1909
+ action_attempt_id: string;
1910
+ result: null;
1911
+ action_type: "CREATE_NOISE_THRESHOLD";
1912
+ } | {
1913
+ error: null;
1914
+ status: "pending";
1915
+ action_attempt_id: string;
1916
+ result: null;
1917
+ action_type: "DELETE_NOISE_THRESHOLD";
1918
+ } | {
1919
+ error: null;
1920
+ status: "success";
1921
+ action_attempt_id: string;
1922
+ action_type: "DELETE_NOISE_THRESHOLD";
1923
+ result?: any;
1924
+ } | {
1925
+ error: {
1926
+ type: string;
1927
+ message: string;
1928
+ };
1929
+ status: "error";
1930
+ action_attempt_id: string;
1931
+ result: null;
1932
+ action_type: "DELETE_NOISE_THRESHOLD";
1933
+ } | {
1934
+ error: null;
1935
+ status: "pending";
1936
+ action_attempt_id: string;
1937
+ result: null;
1938
+ action_type: "UPDATE_NOISE_THRESHOLD";
1939
+ } | {
1940
+ error: null;
1941
+ status: "success";
1942
+ action_attempt_id: string;
1943
+ action_type: "UPDATE_NOISE_THRESHOLD";
1944
+ result?: any;
1945
+ } | {
1946
+ error: {
1947
+ type: string;
1948
+ message: string;
1949
+ };
1950
+ status: "error";
1951
+ action_attempt_id: string;
1952
+ result: null;
1953
+ action_type: "UPDATE_NOISE_THRESHOLD";
1954
+ }>(error: unknown) => error is SeamActionAttemptTimeoutError<T>;
1014
1955
  declare class SeamActionAttemptTimeoutError<T extends ActionAttempt> extends SeamActionAttemptError<T> {
1015
1956
  constructor(actionAttempt: T, timeout: number);
1016
1957
  }
1958
+ type FailedActionAttempt<T extends ActionAttempt> = Extract<T, {
1959
+ status: 'error';
1960
+ }>;
1017
1961
 
1018
1962
  type SeamHttpMultiWorkspaceOptions = SeamHttpMultiWorkspaceOptionsWithClient | SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken | SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
1019
1963
  type SeamHttpOptions = SeamHttpOptionsFromEnv | SeamHttpOptionsWithClient | SeamHttpOptionsWithApiKey | SeamHttpOptionsWithClientSessionToken | SeamHttpOptionsWithConsoleSessionToken | SeamHttpOptionsWithPersonalAccessToken;
@@ -1148,4 +2092,4 @@ declare const isPublishableKey: (token: string) => boolean;
1148
2092
  declare const isConsoleSessionToken: (token: string) => boolean;
1149
2093
  declare const isPersonalAccessToken: (token: string) => boolean;
1150
2094
 
1151
- export { type AccessCodesCreateBody, type AccessCodesCreateMultipleBody, type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultipleResponse, type AccessCodesCreateOptions, type AccessCodesCreateResponse, type AccessCodesDeleteBody, type AccessCodesDeleteOptions, type AccessCodesDeleteResponse, type AccessCodesGenerateCodeBody, type AccessCodesGenerateCodeOptions, type AccessCodesGenerateCodeResponse, type AccessCodesGetOptions, type AccessCodesGetParams, type AccessCodesGetResponse, type AccessCodesListOptions, type AccessCodesListParams, type AccessCodesListResponse, type AccessCodesPullBackupAccessCodeBody, type AccessCodesPullBackupAccessCodeOptions, type AccessCodesPullBackupAccessCodeResponse, type AccessCodesSimulateCreateUnmanagedAccessCodeBody, type AccessCodesSimulateCreateUnmanagedAccessCodeOptions, type AccessCodesSimulateCreateUnmanagedAccessCodeResponse, type AccessCodesUnmanagedConvertToManagedBody, type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedResponse, type AccessCodesUnmanagedDeleteBody, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteResponse, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParams, type AccessCodesUnmanagedGetResponse, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParams, type AccessCodesUnmanagedListResponse, type AccessCodesUnmanagedUpdateBody, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateResponse, type AccessCodesUpdateBody, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserBody, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserResponse, type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParams, type AcsCredentialPoolsListResponse, type AcsCredentialProvisioningAutomationsLaunchBody, type AcsCredentialProvisioningAutomationsLaunchOptions, type AcsCredentialProvisioningAutomationsLaunchResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type AcsCredentialsDeleteBody, type AcsCredentialsDeleteOptions, type AcsCredentialsDeleteResponse, type AcsCredentialsGetOptions, type AcsCredentialsGetParams, type AcsCredentialsGetResponse, type AcsCredentialsListAccessibleEntrancesOptions, type AcsCredentialsListAccessibleEntrancesParams, type AcsCredentialsListAccessibleEntrancesResponse, type AcsCredentialsListOptions, type AcsCredentialsListParams, type AcsCredentialsListResponse, type AcsCredentialsUnassignBody, type AcsCredentialsUnassignOptions, type AcsCredentialsUnassignResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type AcsSystemsListCompatibleCredentialManagerAcsSystemsOptions, type AcsSystemsListCompatibleCredentialManagerAcsSystemsParams, type AcsSystemsListCompatibleCredentialManagerAcsSystemsResponse, type AcsSystemsListOptions, type AcsSystemsListParams, type AcsSystemsListResponse, type AcsUsersAddToAccessGroupBody, type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupResponse, type AcsUsersCreateBody, type AcsUsersCreateOptions, type AcsUsersCreateResponse, type AcsUsersDeleteBody, type AcsUsersDeleteOptions, type AcsUsersDeleteResponse, type AcsUsersGetOptions, type AcsUsersGetParams, type AcsUsersGetResponse, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParams, type AcsUsersListAccessibleEntrancesResponse, type AcsUsersListOptions, type AcsUsersListParams, type AcsUsersListResponse, type AcsUsersRemoveFromAccessGroupBody, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupResponse, type AcsUsersRevokeAccessToAllEntrancesBody, type AcsUsersRevokeAccessToAllEntrancesOptions, type AcsUsersRevokeAccessToAllEntrancesResponse, type AcsUsersSuspendBody, type AcsUsersSuspendOptions, type AcsUsersSuspendResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteBody, type ClientSessionsDeleteOptions, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeBody, type ClientSessionsRevokeOptions, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteBody, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectedAccountsDeleteBody, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesDeleteBody, type DevicesDeleteOptions, type DevicesDeleteResponse, type DevicesGetOptions, type DevicesGetParams, type DevicesGetResponse, type DevicesListDeviceProvidersOptions, type DevicesListDeviceProvidersParams, type DevicesListDeviceProvidersResponse, type DevicesListOptions, type DevicesListParams, type DevicesListResponse, type DevicesSimulateRemoveBody, type DevicesSimulateRemoveOptions, type DevicesSimulateRemoveResponse, type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParams, type DevicesUnmanagedGetResponse, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParams, type DevicesUnmanagedListResponse, type DevicesUnmanagedUpdateBody, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateResponse, type DevicesUpdateBody, type DevicesUpdateOptions, type DevicesUpdateResponse, type EventsGetOptions, type EventsGetParams, type EventsGetResponse, type EventsListOptions, type EventsListParams, type EventsListResponse, type LocksGetOptions, type LocksGetParams, type LocksGetResponse, type LocksListOptions, type LocksListParams, type LocksListResponse, type LocksLockDoorBody, type LocksLockDoorOptions, type LocksLockDoorResponse, type LocksUnlockDoorBody, type LocksUnlockDoorOptions, type LocksUnlockDoorResponse, type NetworksGetOptions, type NetworksGetParams, type NetworksGetResponse, type NetworksListOptions, type NetworksListParams, type NetworksListResponse, type NoiseSensorsNoiseThresholdsCreateBody, type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateResponse, type NoiseSensorsNoiseThresholdsDeleteBody, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteResponse, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParams, type NoiseSensorsNoiseThresholdsGetResponse, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParams, type NoiseSensorsNoiseThresholdsListResponse, type NoiseSensorsNoiseThresholdsUpdateBody, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateResponse, type NoiseSensorsSimulateTriggerNoiseThresholdBody, type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdResponse, type PhonesDeactivateBody, type PhonesDeactivateOptions, type PhonesDeactivateResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsWithClient, type SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, type SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNetworks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpNoiseSensorsSimulate, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, SeamHttpPhonesSimulate, SeamHttpRequest, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, type ThermostatsClimateSettingSchedulesCreateBody, type ThermostatsClimateSettingSchedulesCreateOptions, type ThermostatsClimateSettingSchedulesCreateResponse, type ThermostatsClimateSettingSchedulesDeleteBody, type ThermostatsClimateSettingSchedulesDeleteOptions, type ThermostatsClimateSettingSchedulesDeleteResponse, type ThermostatsClimateSettingSchedulesGetOptions, type ThermostatsClimateSettingSchedulesGetParams, type ThermostatsClimateSettingSchedulesGetResponse, type ThermostatsClimateSettingSchedulesListOptions, type ThermostatsClimateSettingSchedulesListParams, type ThermostatsClimateSettingSchedulesListResponse, type ThermostatsClimateSettingSchedulesUpdateBody, type ThermostatsClimateSettingSchedulesUpdateOptions, type ThermostatsClimateSettingSchedulesUpdateResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsUpdateBody, type ThermostatsUpdateOptions, type ThermostatsUpdateResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type UserIdentitiesDeleteBody, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteResponse, type UserIdentitiesEnrollmentAutomationsDeleteBody, type UserIdentitiesEnrollmentAutomationsDeleteOptions, type UserIdentitiesEnrollmentAutomationsDeleteResponse, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParams, type UserIdentitiesEnrollmentAutomationsGetResponse, type UserIdentitiesEnrollmentAutomationsLaunchBody, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchResponse, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParams, type UserIdentitiesEnrollmentAutomationsListResponse, type UserIdentitiesGetOptions, type UserIdentitiesGetParams, type UserIdentitiesGetResponse, type UserIdentitiesGrantAccessToDeviceBody, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceResponse, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParams, type UserIdentitiesListAccessibleDevicesResponse, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParams, type UserIdentitiesListAcsSystemsResponse, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParams, type UserIdentitiesListAcsUsersResponse, type UserIdentitiesListOptions, type UserIdentitiesListParams, type UserIdentitiesListResponse, type UserIdentitiesRemoveAcsUserBody, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserResponse, type UserIdentitiesRevokeAccessToDeviceBody, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceResponse, type UserIdentitiesUpdateBody, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateResponse, type WebhooksCreateBody, type WebhooksCreateOptions, type WebhooksCreateResponse, type WebhooksDeleteBody, type WebhooksDeleteOptions, type WebhooksDeleteResponse, type WebhooksGetOptions, type WebhooksGetParams, type WebhooksGetResponse, type WebhooksListOptions, type WebhooksListParams, type WebhooksListResponse, type WebhooksUpdateBody, type WebhooksUpdateOptions, type WebhooksUpdateResponse, type WorkspacesCreateBody, type WorkspacesCreateOptions, type WorkspacesCreateResponse, type WorkspacesGetOptions, type WorkspacesGetParams, type WorkspacesGetResponse, type WorkspacesListOptions, type WorkspacesListParams, type WorkspacesListResponse, type WorkspacesResetSandboxBody, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
2095
+ export { type AccessCodesCreateBody, type AccessCodesCreateMultipleBody, type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultipleResponse, type AccessCodesCreateOptions, type AccessCodesCreateResponse, type AccessCodesDeleteOptions, type AccessCodesDeleteParams, type AccessCodesDeleteResponse, type AccessCodesGenerateCodeBody, type AccessCodesGenerateCodeOptions, type AccessCodesGenerateCodeResponse, type AccessCodesGetOptions, type AccessCodesGetParams, type AccessCodesGetResponse, type AccessCodesListOptions, type AccessCodesListParams, type AccessCodesListResponse, type AccessCodesPullBackupAccessCodeBody, type AccessCodesPullBackupAccessCodeOptions, type AccessCodesPullBackupAccessCodeResponse, type AccessCodesSimulateCreateUnmanagedAccessCodeBody, type AccessCodesSimulateCreateUnmanagedAccessCodeOptions, type AccessCodesSimulateCreateUnmanagedAccessCodeResponse, type AccessCodesUnmanagedConvertToManagedBody, type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedResponse, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteParams, type AccessCodesUnmanagedDeleteResponse, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParams, type AccessCodesUnmanagedGetResponse, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParams, type AccessCodesUnmanagedListResponse, type AccessCodesUnmanagedUpdateBody, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateResponse, type AccessCodesUpdateBody, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserParams, type AcsAccessGroupsRemoveUserResponse, type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParams, type AcsCredentialPoolsListResponse, type AcsCredentialProvisioningAutomationsLaunchBody, type AcsCredentialProvisioningAutomationsLaunchOptions, type AcsCredentialProvisioningAutomationsLaunchResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type AcsCredentialsDeleteOptions, type AcsCredentialsDeleteParams, type AcsCredentialsDeleteResponse, type AcsCredentialsGetOptions, type AcsCredentialsGetParams, type AcsCredentialsGetResponse, type AcsCredentialsListAccessibleEntrancesOptions, type AcsCredentialsListAccessibleEntrancesParams, type AcsCredentialsListAccessibleEntrancesResponse, type AcsCredentialsListOptions, type AcsCredentialsListParams, type AcsCredentialsListResponse, type AcsCredentialsUnassignBody, type AcsCredentialsUnassignOptions, type AcsCredentialsUnassignResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type AcsSystemsListCompatibleCredentialManagerAcsSystemsOptions, type AcsSystemsListCompatibleCredentialManagerAcsSystemsParams, type AcsSystemsListCompatibleCredentialManagerAcsSystemsResponse, type AcsSystemsListOptions, type AcsSystemsListParams, type AcsSystemsListResponse, type AcsUsersAddToAccessGroupBody, type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupResponse, type AcsUsersCreateBody, type AcsUsersCreateOptions, type AcsUsersCreateResponse, type AcsUsersDeleteOptions, type AcsUsersDeleteParams, type AcsUsersDeleteResponse, type AcsUsersGetOptions, type AcsUsersGetParams, type AcsUsersGetResponse, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParams, type AcsUsersListAccessibleEntrancesResponse, type AcsUsersListOptions, type AcsUsersListParams, type AcsUsersListResponse, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupParams, type AcsUsersRemoveFromAccessGroupResponse, type AcsUsersRevokeAccessToAllEntrancesOptions, type AcsUsersRevokeAccessToAllEntrancesParams, type AcsUsersRevokeAccessToAllEntrancesResponse, type AcsUsersSuspendBody, type AcsUsersSuspendOptions, type AcsUsersSuspendResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteOptions, type ClientSessionsDeleteParams, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeOptions, type ClientSessionsRevokeParams, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteParams, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteParams, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesDeleteOptions, type DevicesDeleteParams, type DevicesDeleteResponse, type DevicesGetOptions, type DevicesGetParams, type DevicesGetResponse, type DevicesListDeviceProvidersOptions, type DevicesListDeviceProvidersParams, type DevicesListDeviceProvidersResponse, type DevicesListOptions, type DevicesListParams, type DevicesListResponse, type DevicesSimulateConnectBody, type DevicesSimulateConnectOptions, type DevicesSimulateConnectResponse, type DevicesSimulateDisconnectBody, type DevicesSimulateDisconnectOptions, type DevicesSimulateDisconnectResponse, type DevicesSimulateRemoveOptions, type DevicesSimulateRemoveParams, type DevicesSimulateRemoveResponse, type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParams, type DevicesUnmanagedGetResponse, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParams, type DevicesUnmanagedListResponse, type DevicesUnmanagedUpdateBody, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateResponse, type DevicesUpdateBody, type DevicesUpdateOptions, type DevicesUpdateResponse, type EventsGetOptions, type EventsGetParams, type EventsGetResponse, type EventsListOptions, type EventsListParams, type EventsListResponse, type LocksGetOptions, type LocksGetParams, type LocksGetResponse, type LocksListOptions, type LocksListParams, type LocksListResponse, type LocksLockDoorBody, type LocksLockDoorOptions, type LocksLockDoorResponse, type LocksUnlockDoorBody, type LocksUnlockDoorOptions, type LocksUnlockDoorResponse, type NetworksGetOptions, type NetworksGetParams, type NetworksGetResponse, type NetworksListOptions, type NetworksListParams, type NetworksListResponse, type NoiseSensorsNoiseThresholdsCreateBody, type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateResponse, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteParams, type NoiseSensorsNoiseThresholdsDeleteResponse, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParams, type NoiseSensorsNoiseThresholdsGetResponse, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParams, type NoiseSensorsNoiseThresholdsListResponse, type NoiseSensorsNoiseThresholdsUpdateBody, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateResponse, type NoiseSensorsSimulateTriggerNoiseThresholdBody, type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdResponse, type PhonesDeactivateOptions, type PhonesDeactivateParams, type PhonesDeactivateResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsWithClient, type SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, type SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNetworks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpNoiseSensorsSimulate, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, SeamHttpPhonesSimulate, SeamHttpRequest, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, type ThermostatsClimateSettingSchedulesCreateBody, type ThermostatsClimateSettingSchedulesCreateOptions, type ThermostatsClimateSettingSchedulesCreateResponse, type ThermostatsClimateSettingSchedulesDeleteOptions, type ThermostatsClimateSettingSchedulesDeleteParams, type ThermostatsClimateSettingSchedulesDeleteResponse, type ThermostatsClimateSettingSchedulesGetOptions, type ThermostatsClimateSettingSchedulesGetParams, type ThermostatsClimateSettingSchedulesGetResponse, type ThermostatsClimateSettingSchedulesListOptions, type ThermostatsClimateSettingSchedulesListParams, type ThermostatsClimateSettingSchedulesListResponse, type ThermostatsClimateSettingSchedulesUpdateBody, type ThermostatsClimateSettingSchedulesUpdateOptions, type ThermostatsClimateSettingSchedulesUpdateResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsUpdateBody, type ThermostatsUpdateOptions, type ThermostatsUpdateResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParams, type UserIdentitiesDeleteResponse, type UserIdentitiesEnrollmentAutomationsDeleteOptions, type UserIdentitiesEnrollmentAutomationsDeleteParams, type UserIdentitiesEnrollmentAutomationsDeleteResponse, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParams, type UserIdentitiesEnrollmentAutomationsGetResponse, type UserIdentitiesEnrollmentAutomationsLaunchBody, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchResponse, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParams, type UserIdentitiesEnrollmentAutomationsListResponse, type UserIdentitiesGetOptions, type UserIdentitiesGetParams, type UserIdentitiesGetResponse, type UserIdentitiesGrantAccessToDeviceBody, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceResponse, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParams, type UserIdentitiesListAccessibleDevicesResponse, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParams, type UserIdentitiesListAcsSystemsResponse, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParams, type UserIdentitiesListAcsUsersResponse, type UserIdentitiesListOptions, type UserIdentitiesListParams, type UserIdentitiesListResponse, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParams, type UserIdentitiesRemoveAcsUserResponse, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParams, type UserIdentitiesRevokeAccessToDeviceResponse, type UserIdentitiesUpdateBody, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateResponse, type WebhooksCreateBody, type WebhooksCreateOptions, type WebhooksCreateResponse, type WebhooksDeleteOptions, type WebhooksDeleteParams, type WebhooksDeleteResponse, type WebhooksGetOptions, type WebhooksGetParams, type WebhooksGetResponse, type WebhooksListOptions, type WebhooksListParams, type WebhooksListResponse, type WebhooksUpdateBody, type WebhooksUpdateOptions, type WebhooksUpdateResponse, type WorkspacesCreateBody, type WorkspacesCreateOptions, type WorkspacesCreateResponse, type WorkspacesGetOptions, type WorkspacesGetParams, type WorkspacesGetResponse, type WorkspacesListOptions, type WorkspacesListParams, type WorkspacesListResponse, type WorkspacesResetSandboxBody, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };