@seamapi/http 1.26.1 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/connect.cjs +24 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +18 -16
- package/lib/seam/connect/options.d.ts +3 -1
- package/lib/seam/connect/options.js.map +1 -1
- package/lib/seam/connect/parse-options.js +29 -1
- package/lib/seam/connect/parse-options.js.map +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +16 -16
- package/lib/seam/connect/seam-http-multi-workspace.d.ts +1 -1
- package/lib/seam/connect/seam-http-multi-workspace.js +1 -1
- package/lib/seam/connect/seam-http-multi-workspace.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/options.ts +4 -0
- package/src/lib/seam/connect/parse-options.ts +42 -0
- package/src/lib/seam/connect/seam-http-multi-workspace.ts +1 -1
- package/src/lib/version.ts +1 -1
package/dist/connect.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RouteRequestBody, RouteResponse, ActionAttempt, openapi } from '@seamapi/types/connect';
|
|
2
|
-
import {
|
|
2
|
+
import { AxiosRequestConfig, AxiosInstance, Method } from 'axios';
|
|
3
3
|
import { AxiosRetry } from 'axios-retry';
|
|
4
4
|
export * from '@seamapi/url-search-params-serializer';
|
|
5
5
|
|
|
@@ -1291,6 +1291,7 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1291
1291
|
door_names?: string[] | undefined;
|
|
1292
1292
|
} | undefined;
|
|
1293
1293
|
is_one_time_use?: boolean | undefined;
|
|
1294
|
+
issued_at?: string | null | undefined;
|
|
1294
1295
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1295
1296
|
external_type_display_name?: string | undefined;
|
|
1296
1297
|
acs_user_id?: string | undefined;
|
|
@@ -1298,7 +1299,6 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1298
1299
|
parent_acs_credential_id?: string | undefined;
|
|
1299
1300
|
card_number?: string | null | undefined;
|
|
1300
1301
|
is_issued?: boolean | undefined;
|
|
1301
|
-
issued_at?: string | null | undefined;
|
|
1302
1302
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1303
1303
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
1304
1304
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -1360,6 +1360,7 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1360
1360
|
door_names?: string[] | undefined;
|
|
1361
1361
|
} | undefined;
|
|
1362
1362
|
is_one_time_use?: boolean | undefined;
|
|
1363
|
+
issued_at?: string | null | undefined;
|
|
1363
1364
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1364
1365
|
external_type_display_name?: string | undefined;
|
|
1365
1366
|
acs_user_id?: string | undefined;
|
|
@@ -1367,7 +1368,6 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1367
1368
|
parent_acs_credential_id?: string | undefined;
|
|
1368
1369
|
card_number?: string | null | undefined;
|
|
1369
1370
|
is_issued?: boolean | undefined;
|
|
1370
|
-
issued_at?: string | null | undefined;
|
|
1371
1371
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1372
1372
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
1373
1373
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -1457,6 +1457,7 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1457
1457
|
door_names?: string[] | undefined;
|
|
1458
1458
|
} | undefined;
|
|
1459
1459
|
is_one_time_use?: boolean | undefined;
|
|
1460
|
+
issued_at?: string | null | undefined;
|
|
1460
1461
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1461
1462
|
external_type_display_name?: string | undefined;
|
|
1462
1463
|
acs_user_id?: string | undefined;
|
|
@@ -1464,7 +1465,6 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1464
1465
|
parent_acs_credential_id?: string | undefined;
|
|
1465
1466
|
card_number?: string | null | undefined;
|
|
1466
1467
|
is_issued?: boolean | undefined;
|
|
1467
|
-
issued_at?: string | null | undefined;
|
|
1468
1468
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1469
1469
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
1470
1470
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -1526,6 +1526,7 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1526
1526
|
door_names?: string[] | undefined;
|
|
1527
1527
|
} | undefined;
|
|
1528
1528
|
is_one_time_use?: boolean | undefined;
|
|
1529
|
+
issued_at?: string | null | undefined;
|
|
1529
1530
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1530
1531
|
external_type_display_name?: string | undefined;
|
|
1531
1532
|
acs_user_id?: string | undefined;
|
|
@@ -1533,7 +1534,6 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1533
1534
|
parent_acs_credential_id?: string | undefined;
|
|
1534
1535
|
card_number?: string | null | undefined;
|
|
1535
1536
|
is_issued?: boolean | undefined;
|
|
1536
|
-
issued_at?: string | null | undefined;
|
|
1537
1537
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1538
1538
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
1539
1539
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -1940,6 +1940,7 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1940
1940
|
door_names?: string[] | undefined;
|
|
1941
1941
|
} | undefined;
|
|
1942
1942
|
is_one_time_use?: boolean | undefined;
|
|
1943
|
+
issued_at?: string | null | undefined;
|
|
1943
1944
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
1944
1945
|
external_type_display_name?: string | undefined;
|
|
1945
1946
|
acs_user_id?: string | undefined;
|
|
@@ -1947,7 +1948,6 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1947
1948
|
parent_acs_credential_id?: string | undefined;
|
|
1948
1949
|
card_number?: string | null | undefined;
|
|
1949
1950
|
is_issued?: boolean | undefined;
|
|
1950
|
-
issued_at?: string | null | undefined;
|
|
1951
1951
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
1952
1952
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
1953
1953
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2009,6 +2009,7 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
2009
2009
|
door_names?: string[] | undefined;
|
|
2010
2010
|
} | undefined;
|
|
2011
2011
|
is_one_time_use?: boolean | undefined;
|
|
2012
|
+
issued_at?: string | null | undefined;
|
|
2012
2013
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2013
2014
|
external_type_display_name?: string | undefined;
|
|
2014
2015
|
acs_user_id?: string | undefined;
|
|
@@ -2016,7 +2017,6 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
2016
2017
|
parent_acs_credential_id?: string | undefined;
|
|
2017
2018
|
card_number?: string | null | undefined;
|
|
2018
2019
|
is_issued?: boolean | undefined;
|
|
2019
|
-
issued_at?: string | null | undefined;
|
|
2020
2020
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2021
2021
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2022
2022
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2106,6 +2106,7 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
2106
2106
|
door_names?: string[] | undefined;
|
|
2107
2107
|
} | undefined;
|
|
2108
2108
|
is_one_time_use?: boolean | undefined;
|
|
2109
|
+
issued_at?: string | null | undefined;
|
|
2109
2110
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2110
2111
|
external_type_display_name?: string | undefined;
|
|
2111
2112
|
acs_user_id?: string | undefined;
|
|
@@ -2113,7 +2114,6 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
2113
2114
|
parent_acs_credential_id?: string | undefined;
|
|
2114
2115
|
card_number?: string | null | undefined;
|
|
2115
2116
|
is_issued?: boolean | undefined;
|
|
2116
|
-
issued_at?: string | null | undefined;
|
|
2117
2117
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2118
2118
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2119
2119
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2175,6 +2175,7 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
2175
2175
|
door_names?: string[] | undefined;
|
|
2176
2176
|
} | undefined;
|
|
2177
2177
|
is_one_time_use?: boolean | undefined;
|
|
2178
|
+
issued_at?: string | null | undefined;
|
|
2178
2179
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2179
2180
|
external_type_display_name?: string | undefined;
|
|
2180
2181
|
acs_user_id?: string | undefined;
|
|
@@ -2182,7 +2183,6 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
2182
2183
|
parent_acs_credential_id?: string | undefined;
|
|
2183
2184
|
card_number?: string | null | undefined;
|
|
2184
2185
|
is_issued?: boolean | undefined;
|
|
2185
|
-
issued_at?: string | null | undefined;
|
|
2186
2186
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2187
2187
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2188
2188
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2589,6 +2589,7 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2589
2589
|
door_names?: string[] | undefined;
|
|
2590
2590
|
} | undefined;
|
|
2591
2591
|
is_one_time_use?: boolean | undefined;
|
|
2592
|
+
issued_at?: string | null | undefined;
|
|
2592
2593
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2593
2594
|
external_type_display_name?: string | undefined;
|
|
2594
2595
|
acs_user_id?: string | undefined;
|
|
@@ -2596,7 +2597,6 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2596
2597
|
parent_acs_credential_id?: string | undefined;
|
|
2597
2598
|
card_number?: string | null | undefined;
|
|
2598
2599
|
is_issued?: boolean | undefined;
|
|
2599
|
-
issued_at?: string | null | undefined;
|
|
2600
2600
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2601
2601
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2602
2602
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2658,6 +2658,7 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2658
2658
|
door_names?: string[] | undefined;
|
|
2659
2659
|
} | undefined;
|
|
2660
2660
|
is_one_time_use?: boolean | undefined;
|
|
2661
|
+
issued_at?: string | null | undefined;
|
|
2661
2662
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2662
2663
|
external_type_display_name?: string | undefined;
|
|
2663
2664
|
acs_user_id?: string | undefined;
|
|
@@ -2665,7 +2666,6 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2665
2666
|
parent_acs_credential_id?: string | undefined;
|
|
2666
2667
|
card_number?: string | null | undefined;
|
|
2667
2668
|
is_issued?: boolean | undefined;
|
|
2668
|
-
issued_at?: string | null | undefined;
|
|
2669
2669
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2670
2670
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2671
2671
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2755,6 +2755,7 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2755
2755
|
door_names?: string[] | undefined;
|
|
2756
2756
|
} | undefined;
|
|
2757
2757
|
is_one_time_use?: boolean | undefined;
|
|
2758
|
+
issued_at?: string | null | undefined;
|
|
2758
2759
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2759
2760
|
external_type_display_name?: string | undefined;
|
|
2760
2761
|
acs_user_id?: string | undefined;
|
|
@@ -2762,7 +2763,6 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2762
2763
|
parent_acs_credential_id?: string | undefined;
|
|
2763
2764
|
card_number?: string | null | undefined;
|
|
2764
2765
|
is_issued?: boolean | undefined;
|
|
2765
|
-
issued_at?: string | null | undefined;
|
|
2766
2766
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2767
2767
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2768
2768
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -2824,6 +2824,7 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2824
2824
|
door_names?: string[] | undefined;
|
|
2825
2825
|
} | undefined;
|
|
2826
2826
|
is_one_time_use?: boolean | undefined;
|
|
2827
|
+
issued_at?: string | null | undefined;
|
|
2827
2828
|
external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | undefined;
|
|
2828
2829
|
external_type_display_name?: string | undefined;
|
|
2829
2830
|
acs_user_id?: string | undefined;
|
|
@@ -2831,7 +2832,6 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
2831
2832
|
parent_acs_credential_id?: string | undefined;
|
|
2832
2833
|
card_number?: string | null | undefined;
|
|
2833
2834
|
is_issued?: boolean | undefined;
|
|
2834
|
-
issued_at?: string | null | undefined;
|
|
2835
2835
|
is_multi_phone_sync_credential?: boolean | undefined;
|
|
2836
2836
|
is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
|
|
2837
2837
|
latest_desired_state_synced_with_provider_at?: string | null | undefined;
|
|
@@ -3105,7 +3105,7 @@ type FailedActionAttempt<T extends ActionAttempt> = Extract<T, {
|
|
|
3105
3105
|
status: 'error';
|
|
3106
3106
|
}>;
|
|
3107
3107
|
|
|
3108
|
-
type SeamHttpMultiWorkspaceOptions = SeamHttpMultiWorkspaceOptionsWithClient | SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken | SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
|
|
3108
|
+
type SeamHttpMultiWorkspaceOptions = SeamHttpMultiWorkspaceOptionsFromEnv | SeamHttpMultiWorkspaceOptionsWithClient | SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken | SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
|
|
3109
3109
|
type SeamHttpOptions = SeamHttpOptionsFromEnv | SeamHttpOptionsWithClient | SeamHttpOptionsWithApiKey | SeamHttpOptionsWithClientSessionToken | SeamHttpOptionsWithConsoleSessionToken | SeamHttpOptionsWithPersonalAccessToken;
|
|
3110
3110
|
interface SeamHttpCommonOptions extends ClientOptions, SeamHttpRequestOptions {
|
|
3111
3111
|
endpoint?: string;
|
|
@@ -3117,6 +3117,8 @@ interface SeamHttpFromPublishableKeyOptions extends SeamHttpCommonOptions {
|
|
|
3117
3117
|
}
|
|
3118
3118
|
interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {
|
|
3119
3119
|
}
|
|
3120
|
+
interface SeamHttpMultiWorkspaceOptionsFromEnv extends SeamHttpCommonOptions {
|
|
3121
|
+
}
|
|
3120
3122
|
interface SeamHttpMultiWorkspaceOptionsWithClient extends SeamHttpRequestOptions {
|
|
3121
3123
|
client: Client;
|
|
3122
3124
|
}
|
|
@@ -3232,7 +3234,7 @@ declare const isSeamHttpInvalidInputError: (error: unknown) => error is SeamHttp
|
|
|
3232
3234
|
declare class SeamHttpMultiWorkspace {
|
|
3233
3235
|
client: Client;
|
|
3234
3236
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
3235
|
-
constructor(options
|
|
3237
|
+
constructor(options?: SeamHttpMultiWorkspaceOptions);
|
|
3236
3238
|
static fromClient(client: SeamHttpMultiWorkspaceOptionsWithClient['client'], options?: Omit<SeamHttpMultiWorkspaceOptionsWithClient, 'client'>): SeamHttpMultiWorkspace;
|
|
3237
3239
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken['consoleSessionToken'], options?: Omit<SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, 'consoleSessionToken'>): SeamHttpMultiWorkspace;
|
|
3238
3240
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken['personalAccessToken'], options?: Omit<SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, 'personalAccessToken'>): SeamHttpMultiWorkspace;
|
|
@@ -3245,4 +3247,4 @@ declare const isPublishableKey: (token: string) => boolean;
|
|
|
3245
3247
|
declare const isConsoleSessionToken: (token: string) => boolean;
|
|
3246
3248
|
declare const isPersonalAccessToken: (token: string) => boolean;
|
|
3247
3249
|
|
|
3248
|
-
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 AccessCodesUpdateMultipleBody, type AccessCodesUpdateMultipleOptions, type AccessCodesUpdateMultipleResponse, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListAccessibleEntrancesOptions, type AcsAccessGroupsListAccessibleEntrancesParams, type AcsAccessGroupsListAccessibleEntrancesResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserParams, type AcsAccessGroupsRemoveUserResponse, 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 AcsEncodersEncodeCredentialBody, type AcsEncodersEncodeCredentialOptions, type AcsEncodersEncodeCredentialResponse, type AcsEncodersListOptions, type AcsEncodersListParams, type AcsEncodersListResponse, type AcsEncodersScanCredentialBody, type AcsEncodersScanCredentialOptions, type AcsEncodersScanCredentialResponse, type AcsEncodersSimulateNextCredentialEncodeWillFailBody, type AcsEncodersSimulateNextCredentialEncodeWillFailOptions, type AcsEncodersSimulateNextCredentialEncodeWillFailResponse, type AcsEncodersSimulateNextCredentialEncodeWillSucceedBody, type AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions, type AcsEncodersSimulateNextCredentialEncodeWillSucceedResponse, type AcsEncodersSimulateNextCredentialScanWillFailBody, type AcsEncodersSimulateNextCredentialScanWillFailOptions, type AcsEncodersSimulateNextCredentialScanWillFailResponse, type AcsEncodersSimulateNextCredentialScanWillSucceedBody, type AcsEncodersSimulateNextCredentialScanWillSucceedOptions, type AcsEncodersSimulateNextCredentialScanWillSucceedResponse, 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 BridgesGetOptions, type BridgesGetParams, type BridgesGetResponse, type BridgesListOptions, type BridgesListParams, type BridgesListResponse, 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 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 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 NoiseSensorsListOptions, type NoiseSensorsListParams, type NoiseSensorsListResponse, 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 PhonesGetOptions, type PhonesGetParams, type PhonesGetResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsEncoders, SeamHttpAcsEncodersSimulate, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpBridges, 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, SeamHttpThermostatsSchedules, SeamHttpThermostatsSimulate, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, SeamPaginator, type ThermostatsActivateClimatePresetBody, type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsCreateClimatePresetBody, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetResponse, type ThermostatsDeleteClimatePresetBody, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetResponse, 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 ThermostatsSchedulesCreateBody, type ThermostatsSchedulesCreateOptions, type ThermostatsSchedulesCreateResponse, type ThermostatsSchedulesDeleteOptions, type ThermostatsSchedulesDeleteParams, type ThermostatsSchedulesDeleteResponse, type ThermostatsSchedulesGetOptions, type ThermostatsSchedulesGetParams, type ThermostatsSchedulesGetResponse, type ThermostatsSchedulesListOptions, type ThermostatsSchedulesListParams, type ThermostatsSchedulesListResponse, type ThermostatsSchedulesUpdateBody, type ThermostatsSchedulesUpdateOptions, type ThermostatsSchedulesUpdateResponse, type ThermostatsSetFallbackClimatePresetBody, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsSetHvacModeBody, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeResponse, type ThermostatsSetTemperatureThresholdBody, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdResponse, type ThermostatsSimulateHvacModeAdjustedBody, type ThermostatsSimulateHvacModeAdjustedOptions, type ThermostatsSimulateHvacModeAdjustedResponse, type ThermostatsSimulateTemperatureReachedBody, type ThermostatsSimulateTemperatureReachedOptions, type ThermostatsSimulateTemperatureReachedResponse, type ThermostatsUpdateClimatePresetBody, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetResponse, 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 };
|
|
3250
|
+
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 AccessCodesUpdateMultipleBody, type AccessCodesUpdateMultipleOptions, type AccessCodesUpdateMultipleResponse, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListAccessibleEntrancesOptions, type AcsAccessGroupsListAccessibleEntrancesParams, type AcsAccessGroupsListAccessibleEntrancesResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserParams, type AcsAccessGroupsRemoveUserResponse, 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 AcsEncodersEncodeCredentialBody, type AcsEncodersEncodeCredentialOptions, type AcsEncodersEncodeCredentialResponse, type AcsEncodersListOptions, type AcsEncodersListParams, type AcsEncodersListResponse, type AcsEncodersScanCredentialBody, type AcsEncodersScanCredentialOptions, type AcsEncodersScanCredentialResponse, type AcsEncodersSimulateNextCredentialEncodeWillFailBody, type AcsEncodersSimulateNextCredentialEncodeWillFailOptions, type AcsEncodersSimulateNextCredentialEncodeWillFailResponse, type AcsEncodersSimulateNextCredentialEncodeWillSucceedBody, type AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions, type AcsEncodersSimulateNextCredentialEncodeWillSucceedResponse, type AcsEncodersSimulateNextCredentialScanWillFailBody, type AcsEncodersSimulateNextCredentialScanWillFailOptions, type AcsEncodersSimulateNextCredentialScanWillFailResponse, type AcsEncodersSimulateNextCredentialScanWillSucceedBody, type AcsEncodersSimulateNextCredentialScanWillSucceedOptions, type AcsEncodersSimulateNextCredentialScanWillSucceedResponse, 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 BridgesGetOptions, type BridgesGetParams, type BridgesGetResponse, type BridgesListOptions, type BridgesListParams, type BridgesListResponse, 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 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 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 NoiseSensorsListOptions, type NoiseSensorsListParams, type NoiseSensorsListResponse, 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 PhonesGetOptions, type PhonesGetParams, type PhonesGetResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsEncoders, SeamHttpAcsEncodersSimulate, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpBridges, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsFromEnv, 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, SeamHttpThermostatsSchedules, SeamHttpThermostatsSimulate, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, SeamPaginator, type ThermostatsActivateClimatePresetBody, type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsCreateClimatePresetBody, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetResponse, type ThermostatsDeleteClimatePresetBody, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetResponse, 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 ThermostatsSchedulesCreateBody, type ThermostatsSchedulesCreateOptions, type ThermostatsSchedulesCreateResponse, type ThermostatsSchedulesDeleteOptions, type ThermostatsSchedulesDeleteParams, type ThermostatsSchedulesDeleteResponse, type ThermostatsSchedulesGetOptions, type ThermostatsSchedulesGetParams, type ThermostatsSchedulesGetResponse, type ThermostatsSchedulesListOptions, type ThermostatsSchedulesListParams, type ThermostatsSchedulesListResponse, type ThermostatsSchedulesUpdateBody, type ThermostatsSchedulesUpdateOptions, type ThermostatsSchedulesUpdateResponse, type ThermostatsSetFallbackClimatePresetBody, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsSetHvacModeBody, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeResponse, type ThermostatsSetTemperatureThresholdBody, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdResponse, type ThermostatsSimulateHvacModeAdjustedBody, type ThermostatsSimulateHvacModeAdjustedOptions, type ThermostatsSimulateHvacModeAdjustedResponse, type ThermostatsSimulateTemperatureReachedBody, type ThermostatsSimulateTemperatureReachedOptions, type ThermostatsSimulateTemperatureReachedResponse, type ThermostatsUpdateClimatePresetBody, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetResponse, 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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Client, ClientOptions } from './client.js';
|
|
2
2
|
import type { ResolveActionAttemptOptions } from './resolve-action-attempt.js';
|
|
3
|
-
export type SeamHttpMultiWorkspaceOptions = SeamHttpMultiWorkspaceOptionsWithClient | SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken | SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
|
|
3
|
+
export type SeamHttpMultiWorkspaceOptions = SeamHttpMultiWorkspaceOptionsFromEnv | SeamHttpMultiWorkspaceOptionsWithClient | SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken | SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
|
|
4
4
|
export type SeamHttpOptions = SeamHttpOptionsFromEnv | SeamHttpOptionsWithClient | SeamHttpOptionsWithApiKey | SeamHttpOptionsWithClientSessionToken | SeamHttpOptionsWithConsoleSessionToken | SeamHttpOptionsWithPersonalAccessToken;
|
|
5
5
|
interface SeamHttpCommonOptions extends ClientOptions, SeamHttpRequestOptions {
|
|
6
6
|
endpoint?: string;
|
|
@@ -12,6 +12,8 @@ export interface SeamHttpFromPublishableKeyOptions extends SeamHttpCommonOptions
|
|
|
12
12
|
}
|
|
13
13
|
export interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {
|
|
14
14
|
}
|
|
15
|
+
export interface SeamHttpMultiWorkspaceOptionsFromEnv extends SeamHttpCommonOptions {
|
|
16
|
+
}
|
|
15
17
|
export interface SeamHttpMultiWorkspaceOptionsWithClient extends SeamHttpRequestOptions {
|
|
16
18
|
client: Client;
|
|
17
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/options.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAA;AAsC5D,MAAM,CAAC,MAAM,yCAAyC,GAAG,CACvD,OAAwB,EAC4B,EAAE,CACtD,2BAA2B,CAAC,OAAO,CAAC,CAAA;AAMtC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CACzC,OAAwB,EACc,EAAE;IACxC,IAAI,CAAC,CAAC,QAAQ,IAAI,OAAO,CAAC;QAAE,OAAO,KAAK,CAAA;IACxC,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI;QAAE,OAAO,KAAK,CAAA;IAExC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAA;IAC/D,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAA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OAAO,2BAA4B,SAAQ,KAAK;IACpD,YAAY,OAAe;QACzB,KAAK,CAAC,sCAAsC,OAAO,EAAE,CAAC,CAAA;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;IACnC,CAAC;CACF;AAED,MAAM,OAAO,yCAA0C,SAAQ,KAAK;IAClE,YAAY,OAAe;QACzB,KAAK,CAAC,oDAAoD,OAAO,EAAE,CAAC,CAAA;QACpE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;IACnC,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { seamApiLtsVersion } from '../../../lib/lts-version.js';
|
|
2
2
|
import version from '../../../lib/version.js';
|
|
3
3
|
import { getAuthHeaders } from './auth.js';
|
|
4
|
-
import { isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, } from './options.js';
|
|
4
|
+
import { isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, SeamHttpInvalidOptionsError, } from './options.js';
|
|
5
5
|
export const defaultEndpoint = 'https://connect.getseam.com';
|
|
6
6
|
export const sdkHeaders = {
|
|
7
7
|
'seam-sdk-name': 'seamapi/javascript-http',
|
|
@@ -45,9 +45,22 @@ const getNormalizedOptions = (apiKeyOrOptions) => {
|
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
const apiKey = 'apiKey' in options ? options.apiKey : getApiKeyFromEnv(options);
|
|
48
|
+
const personalAccessToken = 'personalAccessToken' in options
|
|
49
|
+
? options.personalAccessToken
|
|
50
|
+
: getPersonalAccessTokenFromEnv(options);
|
|
51
|
+
const workspaceId = 'workspaceId' in options ? options.workspaceId : getWorkspaceIdFromEnv();
|
|
52
|
+
if (apiKey != null &&
|
|
53
|
+
personalAccessToken != null &&
|
|
54
|
+
!('apiKey' in options) &&
|
|
55
|
+
!('personalAccessToken' in options)) {
|
|
56
|
+
throw new SeamHttpInvalidOptionsError('Both SEAM_API_KEY and SEAM_PERSONAL_ACCESS_TOKEN environment variables are defined. Please use only one authentication method.');
|
|
57
|
+
}
|
|
48
58
|
return {
|
|
49
59
|
...options,
|
|
50
60
|
...(apiKey != null ? { apiKey } : {}),
|
|
61
|
+
...(personalAccessToken != null && workspaceId != null
|
|
62
|
+
? { personalAccessToken, workspaceId }
|
|
63
|
+
: {}),
|
|
51
64
|
...requestOptions,
|
|
52
65
|
};
|
|
53
66
|
};
|
|
@@ -63,6 +76,21 @@ const getApiKeyFromEnv = (options) => {
|
|
|
63
76
|
}
|
|
64
77
|
return globalThis.process?.env?.SEAM_API_KEY;
|
|
65
78
|
};
|
|
79
|
+
const getPersonalAccessTokenFromEnv = (options) => {
|
|
80
|
+
if ('apiKey' in options && options.apiKey != null) {
|
|
81
|
+
return null;
|
|
82
|
+
}
|
|
83
|
+
if ('clientSessionToken' in options && options.clientSessionToken != null) {
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
if ('consoleSessionToken' in options && options.consoleSessionToken != null) {
|
|
87
|
+
return null;
|
|
88
|
+
}
|
|
89
|
+
return globalThis.process?.env?.['SEAM_PERSONAL_ACCESS_TOKEN'];
|
|
90
|
+
};
|
|
91
|
+
const getWorkspaceIdFromEnv = () => {
|
|
92
|
+
return globalThis.process?.env?.['SEAM_WORKSPACE_ID'];
|
|
93
|
+
};
|
|
66
94
|
const getEndpointFromEnv = () => {
|
|
67
95
|
if (globalThis.process?.env?.SEAM_API_URL != null) {
|
|
68
96
|
// eslint-disable-next-line no-console
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-options.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/parse-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,OAAO,MAAM,gBAAgB,CAAA;AAEpC,OAAO,EA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