@seamapi/http 1.33.0 → 1.34.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/dist/connect.cjs +386 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +110 -1
- package/lib/seam/connect/routes/access-grants.d.ts +35 -0
- package/lib/seam/connect/routes/access-grants.js +116 -0
- package/lib/seam/connect/routes/access-grants.js.map +1 -0
- package/lib/seam/connect/routes/access-methods.d.ts +31 -0
- package/lib/seam/connect/routes/access-methods.js +108 -0
- package/lib/seam/connect/routes/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/index.d.ts +3 -0
- package/lib/seam/connect/routes/index.js +3 -0
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/spaces.d.ts +55 -0
- package/lib/seam/connect/routes/spaces.js +156 -0
- package/lib/seam/connect/routes/spaces.js.map +1 -0
- package/lib/seam/connect/seam-http.d.ts +4 -1
- package/lib/seam/connect/seam-http.js +10 -1
- package/lib/seam/connect/seam-http.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/routes/access-grants.ts +237 -0
- package/src/lib/seam/connect/routes/access-methods.ts +219 -0
- package/src/lib/seam/connect/routes/index.ts +3 -0
- package/src/lib/seam/connect/routes/spaces.ts +329 -0
- package/src/lib/seam/connect/seam-http.ts +15 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.d.cts
CHANGED
|
@@ -178,6 +178,62 @@ type AccessCodesUpdateMultipleBody = RouteRequestBody<'/access_codes/update_mult
|
|
|
178
178
|
type AccessCodesUpdateMultipleResponse = SetNonNullable<Required<RouteResponse<'/access_codes/update_multiple'>>>;
|
|
179
179
|
type AccessCodesUpdateMultipleOptions = never;
|
|
180
180
|
|
|
181
|
+
declare class SeamHttpAccessGrants {
|
|
182
|
+
client: Client;
|
|
183
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
184
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
185
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAccessGrants;
|
|
186
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessGrants;
|
|
187
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessGrants;
|
|
188
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessGrants>;
|
|
189
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAccessGrants;
|
|
190
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessGrants;
|
|
191
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
192
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
193
|
+
create(body?: AccessGrantsCreateBody): SeamHttpRequest<AccessGrantsCreateResponse, 'access_grant'>;
|
|
194
|
+
delete(body?: AccessGrantsDeleteParams): SeamHttpRequest<void, undefined>;
|
|
195
|
+
get(body?: AccessGrantsGetParams): SeamHttpRequest<AccessGrantsGetResponse, 'access_grant'>;
|
|
196
|
+
list(body?: AccessGrantsListParams): SeamHttpRequest<AccessGrantsListResponse, 'access_grants'>;
|
|
197
|
+
}
|
|
198
|
+
type AccessGrantsCreateBody = RouteRequestBody<'/access_grants/create'>;
|
|
199
|
+
type AccessGrantsCreateResponse = SetNonNullable<Required<RouteResponse<'/access_grants/create'>>>;
|
|
200
|
+
type AccessGrantsCreateOptions = never;
|
|
201
|
+
type AccessGrantsDeleteParams = RouteRequestBody<'/access_grants/delete'>;
|
|
202
|
+
type AccessGrantsDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_grants/delete'>>>;
|
|
203
|
+
type AccessGrantsDeleteOptions = never;
|
|
204
|
+
type AccessGrantsGetParams = RouteRequestBody<'/access_grants/get'>;
|
|
205
|
+
type AccessGrantsGetResponse = SetNonNullable<Required<RouteResponse<'/access_grants/get'>>>;
|
|
206
|
+
type AccessGrantsGetOptions = never;
|
|
207
|
+
type AccessGrantsListParams = RouteRequestBody<'/access_grants/list'>;
|
|
208
|
+
type AccessGrantsListResponse = SetNonNullable<Required<RouteResponse<'/access_grants/list'>>>;
|
|
209
|
+
type AccessGrantsListOptions = never;
|
|
210
|
+
|
|
211
|
+
declare class SeamHttpAccessMethods {
|
|
212
|
+
client: Client;
|
|
213
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
214
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
215
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAccessMethods;
|
|
216
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessMethods;
|
|
217
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessMethods;
|
|
218
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessMethods>;
|
|
219
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAccessMethods;
|
|
220
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessMethods;
|
|
221
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
222
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
223
|
+
delete(body?: AccessMethodsDeleteParams): SeamHttpRequest<void, undefined>;
|
|
224
|
+
get(body?: AccessMethodsGetParams): SeamHttpRequest<AccessMethodsGetResponse, 'access_method'>;
|
|
225
|
+
list(body?: AccessMethodsListParams): SeamHttpRequest<AccessMethodsListResponse, 'access_methods'>;
|
|
226
|
+
}
|
|
227
|
+
type AccessMethodsDeleteParams = RouteRequestBody<'/access_methods/delete'>;
|
|
228
|
+
type AccessMethodsDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_methods/delete'>>>;
|
|
229
|
+
type AccessMethodsDeleteOptions = never;
|
|
230
|
+
type AccessMethodsGetParams = RouteRequestBody<'/access_methods/get'>;
|
|
231
|
+
type AccessMethodsGetResponse = SetNonNullable<Required<RouteResponse<'/access_methods/get'>>>;
|
|
232
|
+
type AccessMethodsGetOptions = never;
|
|
233
|
+
type AccessMethodsListParams = RouteRequestBody<'/access_methods/list'>;
|
|
234
|
+
type AccessMethodsListResponse = SetNonNullable<Required<RouteResponse<'/access_methods/list'>>>;
|
|
235
|
+
type AccessMethodsListOptions = never;
|
|
236
|
+
|
|
181
237
|
declare class SeamHttpAcsAccessGroups {
|
|
182
238
|
client: Client;
|
|
183
239
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -842,6 +898,56 @@ type PhonesListParams = RouteRequestBody<'/phones/list'>;
|
|
|
842
898
|
type PhonesListResponse = SetNonNullable<Required<RouteResponse<'/phones/list'>>>;
|
|
843
899
|
type PhonesListOptions = never;
|
|
844
900
|
|
|
901
|
+
declare class SeamHttpSpaces {
|
|
902
|
+
client: Client;
|
|
903
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
904
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
905
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpSpaces;
|
|
906
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpSpaces;
|
|
907
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpSpaces;
|
|
908
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpSpaces>;
|
|
909
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpSpaces;
|
|
910
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpSpaces;
|
|
911
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
912
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
913
|
+
addAcsEntrances(body?: SpacesAddAcsEntrancesBody): SeamHttpRequest<void, undefined>;
|
|
914
|
+
addDevices(body?: SpacesAddDevicesBody): SeamHttpRequest<void, undefined>;
|
|
915
|
+
create(body?: SpacesCreateBody): SeamHttpRequest<SpacesCreateResponse, 'space'>;
|
|
916
|
+
delete(body?: SpacesDeleteParams): SeamHttpRequest<void, undefined>;
|
|
917
|
+
get(body?: SpacesGetParams): SeamHttpRequest<SpacesGetResponse, 'space'>;
|
|
918
|
+
list(body?: SpacesListParams): SeamHttpRequest<SpacesListResponse, 'spaces'>;
|
|
919
|
+
removeAcsEntrances(body?: SpacesRemoveAcsEntrancesParams): SeamHttpRequest<void, undefined>;
|
|
920
|
+
removeDevices(body?: SpacesRemoveDevicesParams): SeamHttpRequest<void, undefined>;
|
|
921
|
+
update(body?: SpacesUpdateBody): SeamHttpRequest<SpacesUpdateResponse, 'space'>;
|
|
922
|
+
}
|
|
923
|
+
type SpacesAddAcsEntrancesBody = RouteRequestBody<'/spaces/add_acs_entrances'>;
|
|
924
|
+
type SpacesAddAcsEntrancesResponse = SetNonNullable<Required<RouteResponse<'/spaces/add_acs_entrances'>>>;
|
|
925
|
+
type SpacesAddAcsEntrancesOptions = never;
|
|
926
|
+
type SpacesAddDevicesBody = RouteRequestBody<'/spaces/add_devices'>;
|
|
927
|
+
type SpacesAddDevicesResponse = SetNonNullable<Required<RouteResponse<'/spaces/add_devices'>>>;
|
|
928
|
+
type SpacesAddDevicesOptions = never;
|
|
929
|
+
type SpacesCreateBody = RouteRequestBody<'/spaces/create'>;
|
|
930
|
+
type SpacesCreateResponse = SetNonNullable<Required<RouteResponse<'/spaces/create'>>>;
|
|
931
|
+
type SpacesCreateOptions = never;
|
|
932
|
+
type SpacesDeleteParams = RouteRequestBody<'/spaces/delete'>;
|
|
933
|
+
type SpacesDeleteResponse = SetNonNullable<Required<RouteResponse<'/spaces/delete'>>>;
|
|
934
|
+
type SpacesDeleteOptions = never;
|
|
935
|
+
type SpacesGetParams = RouteRequestBody<'/spaces/get'>;
|
|
936
|
+
type SpacesGetResponse = SetNonNullable<Required<RouteResponse<'/spaces/get'>>>;
|
|
937
|
+
type SpacesGetOptions = never;
|
|
938
|
+
type SpacesListParams = RouteRequestBody<'/spaces/list'>;
|
|
939
|
+
type SpacesListResponse = SetNonNullable<Required<RouteResponse<'/spaces/list'>>>;
|
|
940
|
+
type SpacesListOptions = never;
|
|
941
|
+
type SpacesRemoveAcsEntrancesParams = RouteRequestBody<'/spaces/remove_acs_entrances'>;
|
|
942
|
+
type SpacesRemoveAcsEntrancesResponse = SetNonNullable<Required<RouteResponse<'/spaces/remove_acs_entrances'>>>;
|
|
943
|
+
type SpacesRemoveAcsEntrancesOptions = never;
|
|
944
|
+
type SpacesRemoveDevicesParams = RouteRequestBody<'/spaces/remove_devices'>;
|
|
945
|
+
type SpacesRemoveDevicesResponse = SetNonNullable<Required<RouteResponse<'/spaces/remove_devices'>>>;
|
|
946
|
+
type SpacesRemoveDevicesOptions = never;
|
|
947
|
+
type SpacesUpdateBody = RouteRequestBody<'/spaces/update'>;
|
|
948
|
+
type SpacesUpdateResponse = SetNonNullable<Required<RouteResponse<'/spaces/update'>>>;
|
|
949
|
+
type SpacesUpdateOptions = never;
|
|
950
|
+
|
|
845
951
|
declare class SeamHttpThermostatsDailyPrograms {
|
|
846
952
|
client: Client;
|
|
847
953
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -3535,6 +3641,8 @@ declare class SeamHttp {
|
|
|
3535
3641
|
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
3536
3642
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
3537
3643
|
get accessCodes(): SeamHttpAccessCodes;
|
|
3644
|
+
get accessGrants(): SeamHttpAccessGrants;
|
|
3645
|
+
get accessMethods(): SeamHttpAccessMethods;
|
|
3538
3646
|
get acs(): SeamHttpAcs;
|
|
3539
3647
|
get actionAttempts(): SeamHttpActionAttempts;
|
|
3540
3648
|
get clientSessions(): SeamHttpClientSessions;
|
|
@@ -3545,6 +3653,7 @@ declare class SeamHttp {
|
|
|
3545
3653
|
get locks(): SeamHttpLocks;
|
|
3546
3654
|
get noiseSensors(): SeamHttpNoiseSensors;
|
|
3547
3655
|
get phones(): SeamHttpPhones;
|
|
3656
|
+
get spaces(): SeamHttpSpaces;
|
|
3548
3657
|
get thermostats(): SeamHttpThermostats;
|
|
3549
3658
|
get userIdentities(): SeamHttpUserIdentities;
|
|
3550
3659
|
get webhooks(): SeamHttpWebhooks;
|
|
@@ -3598,4 +3707,4 @@ declare const isPublishableKey: (token: string) => boolean;
|
|
|
3598
3707
|
declare const isConsoleSessionToken: (token: string) => boolean;
|
|
3599
3708
|
declare const isPersonalAccessToken: (token: string) => boolean;
|
|
3600
3709
|
|
|
3601
|
-
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 AccessCodesReportDeviceConstraintsBody, type AccessCodesReportDeviceConstraintsOptions, type AccessCodesReportDeviceConstraintsResponse, 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 AcsEncodersEncodeAccessMethodBody, type AcsEncodersEncodeAccessMethodOptions, type AcsEncodersEncodeAccessMethodResponse, type AcsEncodersEncodeCredentialBody, type AcsEncodersEncodeCredentialOptions, type AcsEncodersEncodeCredentialResponse, type AcsEncodersGetOptions, type AcsEncodersGetParams, type AcsEncodersGetResponse, 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 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 ConnectedAccountsSyncBody, type ConnectedAccountsSyncOptions, type ConnectedAccountsSyncResponse, 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 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, 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, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpNoiseSensorsSimulate, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, SeamHttpPhonesSimulate, SeamHttpRequest, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsDailyPrograms, SeamHttpThermostatsSchedules, SeamHttpThermostatsSimulate, SeamHttpUnauthorizedError, SeamHttpUnstablePartner, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, SeamPaginator, type ThermostatsActivateClimatePresetBody, type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsCreateClimatePresetBody, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetResponse, type ThermostatsDailyProgramsCreateBody, type ThermostatsDailyProgramsCreateOptions, type ThermostatsDailyProgramsCreateResponse, type ThermostatsDailyProgramsDeleteOptions, type ThermostatsDailyProgramsDeleteParams, type ThermostatsDailyProgramsDeleteResponse, type ThermostatsDailyProgramsUpdateBody, type ThermostatsDailyProgramsUpdateOptions, type ThermostatsDailyProgramsUpdateResponse, 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 ThermostatsUpdateWeeklyProgramBody, type ThermostatsUpdateWeeklyProgramOptions, type ThermostatsUpdateWeeklyProgramResponse, 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 UserIdentitiesGenerateInstantKeyBody, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyResponse, 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, type WorkspacesUpdateBody, type WorkspacesUpdateOptions, type WorkspacesUpdateResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
|
|
3710
|
+
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 AccessCodesReportDeviceConstraintsBody, type AccessCodesReportDeviceConstraintsOptions, type AccessCodesReportDeviceConstraintsResponse, 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 AccessGrantsCreateBody, type AccessGrantsCreateOptions, type AccessGrantsCreateResponse, type AccessGrantsDeleteOptions, type AccessGrantsDeleteParams, type AccessGrantsDeleteResponse, type AccessGrantsGetOptions, type AccessGrantsGetParams, type AccessGrantsGetResponse, type AccessGrantsListOptions, type AccessGrantsListParams, type AccessGrantsListResponse, type AccessMethodsDeleteOptions, type AccessMethodsDeleteParams, type AccessMethodsDeleteResponse, type AccessMethodsGetOptions, type AccessMethodsGetParams, type AccessMethodsGetResponse, type AccessMethodsListOptions, type AccessMethodsListParams, type AccessMethodsListResponse, 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 AcsEncodersEncodeAccessMethodBody, type AcsEncodersEncodeAccessMethodOptions, type AcsEncodersEncodeAccessMethodResponse, type AcsEncodersEncodeCredentialBody, type AcsEncodersEncodeCredentialOptions, type AcsEncodersEncodeCredentialResponse, type AcsEncodersGetOptions, type AcsEncodersGetParams, type AcsEncodersGetResponse, 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 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 ConnectedAccountsSyncBody, type ConnectedAccountsSyncOptions, type ConnectedAccountsSyncResponse, 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 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, SeamHttpAccessGrants, SeamHttpAccessMethods, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsEncoders, SeamHttpAcsEncodersSimulate, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, 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, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpNoiseSensorsSimulate, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, SeamHttpPhonesSimulate, SeamHttpRequest, type SeamHttpRequestOptions, SeamHttpSpaces, SeamHttpThermostats, SeamHttpThermostatsDailyPrograms, SeamHttpThermostatsSchedules, SeamHttpThermostatsSimulate, SeamHttpUnauthorizedError, SeamHttpUnstablePartner, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, SeamPaginator, type SpacesAddAcsEntrancesBody, type SpacesAddAcsEntrancesOptions, type SpacesAddAcsEntrancesResponse, type SpacesAddDevicesBody, type SpacesAddDevicesOptions, type SpacesAddDevicesResponse, type SpacesCreateBody, type SpacesCreateOptions, type SpacesCreateResponse, type SpacesDeleteOptions, type SpacesDeleteParams, type SpacesDeleteResponse, type SpacesGetOptions, type SpacesGetParams, type SpacesGetResponse, type SpacesListOptions, type SpacesListParams, type SpacesListResponse, type SpacesRemoveAcsEntrancesOptions, type SpacesRemoveAcsEntrancesParams, type SpacesRemoveAcsEntrancesResponse, type SpacesRemoveDevicesOptions, type SpacesRemoveDevicesParams, type SpacesRemoveDevicesResponse, type SpacesUpdateBody, type SpacesUpdateOptions, type SpacesUpdateResponse, type ThermostatsActivateClimatePresetBody, type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsCreateClimatePresetBody, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetResponse, type ThermostatsDailyProgramsCreateBody, type ThermostatsDailyProgramsCreateOptions, type ThermostatsDailyProgramsCreateResponse, type ThermostatsDailyProgramsDeleteOptions, type ThermostatsDailyProgramsDeleteParams, type ThermostatsDailyProgramsDeleteResponse, type ThermostatsDailyProgramsUpdateBody, type ThermostatsDailyProgramsUpdateOptions, type ThermostatsDailyProgramsUpdateResponse, 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 ThermostatsUpdateWeeklyProgramBody, type ThermostatsUpdateWeeklyProgramOptions, type ThermostatsUpdateWeeklyProgramResponse, 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 UserIdentitiesGenerateInstantKeyBody, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyResponse, 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, type WorkspacesUpdateBody, type WorkspacesUpdateOptions, type WorkspacesUpdateResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
+
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
3
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
4
|
+
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
+
import { SeamPaginator } from '../../../../lib/seam/connect/seam-paginator.js';
|
|
6
|
+
import type { SetNonNullable } from '../../../../lib/types.js';
|
|
7
|
+
export declare class SeamHttpAccessGrants {
|
|
8
|
+
client: Client;
|
|
9
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
11
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAccessGrants;
|
|
12
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessGrants;
|
|
13
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessGrants;
|
|
14
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessGrants>;
|
|
15
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAccessGrants;
|
|
16
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessGrants;
|
|
17
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
18
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
19
|
+
create(body?: AccessGrantsCreateBody): SeamHttpRequest<AccessGrantsCreateResponse, 'access_grant'>;
|
|
20
|
+
delete(body?: AccessGrantsDeleteParams): SeamHttpRequest<void, undefined>;
|
|
21
|
+
get(body?: AccessGrantsGetParams): SeamHttpRequest<AccessGrantsGetResponse, 'access_grant'>;
|
|
22
|
+
list(body?: AccessGrantsListParams): SeamHttpRequest<AccessGrantsListResponse, 'access_grants'>;
|
|
23
|
+
}
|
|
24
|
+
export type AccessGrantsCreateBody = RouteRequestBody<'/access_grants/create'>;
|
|
25
|
+
export type AccessGrantsCreateResponse = SetNonNullable<Required<RouteResponse<'/access_grants/create'>>>;
|
|
26
|
+
export type AccessGrantsCreateOptions = never;
|
|
27
|
+
export type AccessGrantsDeleteParams = RouteRequestBody<'/access_grants/delete'>;
|
|
28
|
+
export type AccessGrantsDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_grants/delete'>>>;
|
|
29
|
+
export type AccessGrantsDeleteOptions = never;
|
|
30
|
+
export type AccessGrantsGetParams = RouteRequestBody<'/access_grants/get'>;
|
|
31
|
+
export type AccessGrantsGetResponse = SetNonNullable<Required<RouteResponse<'/access_grants/get'>>>;
|
|
32
|
+
export type AccessGrantsGetOptions = never;
|
|
33
|
+
export type AccessGrantsListParams = RouteRequestBody<'/access_grants/list'>;
|
|
34
|
+
export type AccessGrantsListResponse = SetNonNullable<Required<RouteResponse<'/access_grants/list'>>>;
|
|
35
|
+
export type AccessGrantsListOptions = never;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../lib/seam/connect/auth.js';
|
|
6
|
+
import { createClient } from '../../../../lib/seam/connect/client.js';
|
|
7
|
+
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../lib/seam/connect/options.js';
|
|
8
|
+
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../lib/seam/connect/parse-options.js';
|
|
9
|
+
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
10
|
+
import { SeamPaginator } from '../../../../lib/seam/connect/seam-paginator.js';
|
|
11
|
+
import { SeamHttpClientSessions } from './client-sessions.js';
|
|
12
|
+
export class SeamHttpAccessGrants {
|
|
13
|
+
constructor(apiKeyOrOptions = {}) {
|
|
14
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
15
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
16
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
17
|
+
}
|
|
18
|
+
static fromClient(client, options = {}) {
|
|
19
|
+
const constructorOptions = { ...options, client };
|
|
20
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
21
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
22
|
+
}
|
|
23
|
+
return new SeamHttpAccessGrants(constructorOptions);
|
|
24
|
+
}
|
|
25
|
+
static fromApiKey(apiKey, options = {}) {
|
|
26
|
+
const constructorOptions = { ...options, apiKey };
|
|
27
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
28
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
29
|
+
}
|
|
30
|
+
return new SeamHttpAccessGrants(constructorOptions);
|
|
31
|
+
}
|
|
32
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
33
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
34
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
35
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
36
|
+
}
|
|
37
|
+
return new SeamHttpAccessGrants(constructorOptions);
|
|
38
|
+
}
|
|
39
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
40
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
41
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
42
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
43
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
|
|
44
|
+
}
|
|
45
|
+
const client = createClient(clientOptions);
|
|
46
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
47
|
+
const { token } = await clientSessions.getOrCreate({
|
|
48
|
+
user_identifier_key: userIdentifierKey,
|
|
49
|
+
});
|
|
50
|
+
return SeamHttpAccessGrants.fromClientSessionToken(token, options);
|
|
51
|
+
}
|
|
52
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
53
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
54
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
55
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
56
|
+
}
|
|
57
|
+
return new SeamHttpAccessGrants(constructorOptions);
|
|
58
|
+
}
|
|
59
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
60
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
61
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
62
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
63
|
+
}
|
|
64
|
+
return new SeamHttpAccessGrants(constructorOptions);
|
|
65
|
+
}
|
|
66
|
+
createPaginator(request) {
|
|
67
|
+
return new SeamPaginator(this, request);
|
|
68
|
+
}
|
|
69
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
70
|
+
const { headers } = this.client.defaults;
|
|
71
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
72
|
+
clientSessionToken,
|
|
73
|
+
});
|
|
74
|
+
for (const key of Object.keys(authHeaders)) {
|
|
75
|
+
if (headers[key] == null) {
|
|
76
|
+
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
80
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
81
|
+
await clientSessions.get();
|
|
82
|
+
}
|
|
83
|
+
create(body) {
|
|
84
|
+
return new SeamHttpRequest(this, {
|
|
85
|
+
pathname: '/access_grants/create',
|
|
86
|
+
method: 'post',
|
|
87
|
+
body,
|
|
88
|
+
responseKey: 'access_grant',
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
delete(body) {
|
|
92
|
+
return new SeamHttpRequest(this, {
|
|
93
|
+
pathname: '/access_grants/delete',
|
|
94
|
+
method: 'post',
|
|
95
|
+
body,
|
|
96
|
+
responseKey: undefined,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
get(body) {
|
|
100
|
+
return new SeamHttpRequest(this, {
|
|
101
|
+
pathname: '/access_grants/get',
|
|
102
|
+
method: 'post',
|
|
103
|
+
body,
|
|
104
|
+
responseKey: 'access_grant',
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
list(body) {
|
|
108
|
+
return new SeamHttpRequest(this, {
|
|
109
|
+
pathname: '/access_grants/list',
|
|
110
|
+
method: 'post',
|
|
111
|
+
body,
|
|
112
|
+
responseKey: 'access_grants',
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=access-grants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-grants.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/access-grants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,oBAAoB;IAI/B,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAk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 -0,0 +1,31 @@
|
|
|
1
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
+
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
3
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
4
|
+
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
+
import { SeamPaginator } from '../../../../lib/seam/connect/seam-paginator.js';
|
|
6
|
+
import type { SetNonNullable } from '../../../../lib/types.js';
|
|
7
|
+
export declare class SeamHttpAccessMethods {
|
|
8
|
+
client: Client;
|
|
9
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
10
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
11
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAccessMethods;
|
|
12
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessMethods;
|
|
13
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessMethods;
|
|
14
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessMethods>;
|
|
15
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAccessMethods;
|
|
16
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessMethods;
|
|
17
|
+
createPaginator<const TResponse, const TResponseKey extends keyof TResponse>(request: SeamHttpRequest<TResponse, TResponseKey>): SeamPaginator<TResponse, TResponseKey>;
|
|
18
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
19
|
+
delete(body?: AccessMethodsDeleteParams): SeamHttpRequest<void, undefined>;
|
|
20
|
+
get(body?: AccessMethodsGetParams): SeamHttpRequest<AccessMethodsGetResponse, 'access_method'>;
|
|
21
|
+
list(body?: AccessMethodsListParams): SeamHttpRequest<AccessMethodsListResponse, 'access_methods'>;
|
|
22
|
+
}
|
|
23
|
+
export type AccessMethodsDeleteParams = RouteRequestBody<'/access_methods/delete'>;
|
|
24
|
+
export type AccessMethodsDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_methods/delete'>>>;
|
|
25
|
+
export type AccessMethodsDeleteOptions = never;
|
|
26
|
+
export type AccessMethodsGetParams = RouteRequestBody<'/access_methods/get'>;
|
|
27
|
+
export type AccessMethodsGetResponse = SetNonNullable<Required<RouteResponse<'/access_methods/get'>>>;
|
|
28
|
+
export type AccessMethodsGetOptions = never;
|
|
29
|
+
export type AccessMethodsListParams = RouteRequestBody<'/access_methods/list'>;
|
|
30
|
+
export type AccessMethodsListResponse = SetNonNullable<Required<RouteResponse<'/access_methods/list'>>>;
|
|
31
|
+
export type AccessMethodsListOptions = never;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../lib/seam/connect/auth.js';
|
|
6
|
+
import { createClient } from '../../../../lib/seam/connect/client.js';
|
|
7
|
+
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../lib/seam/connect/options.js';
|
|
8
|
+
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../lib/seam/connect/parse-options.js';
|
|
9
|
+
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
10
|
+
import { SeamPaginator } from '../../../../lib/seam/connect/seam-paginator.js';
|
|
11
|
+
import { SeamHttpClientSessions } from './client-sessions.js';
|
|
12
|
+
export class SeamHttpAccessMethods {
|
|
13
|
+
constructor(apiKeyOrOptions = {}) {
|
|
14
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
15
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
16
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
17
|
+
}
|
|
18
|
+
static fromClient(client, options = {}) {
|
|
19
|
+
const constructorOptions = { ...options, client };
|
|
20
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
21
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
22
|
+
}
|
|
23
|
+
return new SeamHttpAccessMethods(constructorOptions);
|
|
24
|
+
}
|
|
25
|
+
static fromApiKey(apiKey, options = {}) {
|
|
26
|
+
const constructorOptions = { ...options, apiKey };
|
|
27
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
28
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
29
|
+
}
|
|
30
|
+
return new SeamHttpAccessMethods(constructorOptions);
|
|
31
|
+
}
|
|
32
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
33
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
34
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
35
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
36
|
+
}
|
|
37
|
+
return new SeamHttpAccessMethods(constructorOptions);
|
|
38
|
+
}
|
|
39
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
40
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
41
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
42
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
43
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
|
|
44
|
+
}
|
|
45
|
+
const client = createClient(clientOptions);
|
|
46
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
47
|
+
const { token } = await clientSessions.getOrCreate({
|
|
48
|
+
user_identifier_key: userIdentifierKey,
|
|
49
|
+
});
|
|
50
|
+
return SeamHttpAccessMethods.fromClientSessionToken(token, options);
|
|
51
|
+
}
|
|
52
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
53
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
54
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
55
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
56
|
+
}
|
|
57
|
+
return new SeamHttpAccessMethods(constructorOptions);
|
|
58
|
+
}
|
|
59
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
60
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
61
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
62
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
63
|
+
}
|
|
64
|
+
return new SeamHttpAccessMethods(constructorOptions);
|
|
65
|
+
}
|
|
66
|
+
createPaginator(request) {
|
|
67
|
+
return new SeamPaginator(this, request);
|
|
68
|
+
}
|
|
69
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
70
|
+
const { headers } = this.client.defaults;
|
|
71
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
72
|
+
clientSessionToken,
|
|
73
|
+
});
|
|
74
|
+
for (const key of Object.keys(authHeaders)) {
|
|
75
|
+
if (headers[key] == null) {
|
|
76
|
+
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
80
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
81
|
+
await clientSessions.get();
|
|
82
|
+
}
|
|
83
|
+
delete(body) {
|
|
84
|
+
return new SeamHttpRequest(this, {
|
|
85
|
+
pathname: '/access_methods/delete',
|
|
86
|
+
method: 'post',
|
|
87
|
+
body,
|
|
88
|
+
responseKey: undefined,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
get(body) {
|
|
92
|
+
return new SeamHttpRequest(this, {
|
|
93
|
+
pathname: '/access_methods/get',
|
|
94
|
+
method: 'post',
|
|
95
|
+
body,
|
|
96
|
+
responseKey: 'access_method',
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
list(body) {
|
|
100
|
+
return new SeamHttpRequest(this, {
|
|
101
|
+
pathname: '/access_methods/list',
|
|
102
|
+
method: 'post',
|
|
103
|
+
body,
|
|
104
|
+
responseKey: 'access_methods',
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=access-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/access-methods.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,M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;QACrE,MAAM,cAAc,CAAC,GAAG,EAAE,CAAA;IAC5B,CAAC;IAED,MAAM,CAAC,IAAgC;QACrC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,wBAAwB;YAClC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,GAAG,CACD,IAA6B;QAE7B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,qBAAqB;YAC/B,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,eAAe;SAC7B,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,CACF,IAA8B;QAE9B,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,sBAAsB;YAChC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,gBAAgB;SAC9B,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './access-codes.js';
|
|
2
2
|
export * from './access-codes-simulate.js';
|
|
3
3
|
export * from './access-codes-unmanaged.js';
|
|
4
|
+
export * from './access-grants.js';
|
|
5
|
+
export * from './access-methods.js';
|
|
4
6
|
export * from './acs.js';
|
|
5
7
|
export * from './acs-access-groups.js';
|
|
6
8
|
export * from './acs-credentials.js';
|
|
@@ -23,6 +25,7 @@ export * from './noise-sensors-noise-thresholds.js';
|
|
|
23
25
|
export * from './noise-sensors-simulate.js';
|
|
24
26
|
export * from './phones.js';
|
|
25
27
|
export * from './phones-simulate.js';
|
|
28
|
+
export * from './spaces.js';
|
|
26
29
|
export * from './thermostats.js';
|
|
27
30
|
export * from './thermostats-daily-programs.js';
|
|
28
31
|
export * from './thermostats-schedules.js';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './access-codes.js';
|
|
2
2
|
export * from './access-codes-simulate.js';
|
|
3
3
|
export * from './access-codes-unmanaged.js';
|
|
4
|
+
export * from './access-grants.js';
|
|
5
|
+
export * from './access-methods.js';
|
|
4
6
|
export * from './acs.js';
|
|
5
7
|
export * from './acs-access-groups.js';
|
|
6
8
|
export * from './acs-credentials.js';
|
|
@@ -23,6 +25,7 @@ export * from './noise-sensors-noise-thresholds.js';
|
|
|
23
25
|
export * from './noise-sensors-simulate.js';
|
|
24
26
|
export * from './phones.js';
|
|
25
27
|
export * from './phones-simulate.js';
|
|
28
|
+
export * from './spaces.js';
|
|
26
29
|
export * from './thermostats.js';
|
|
27
30
|
export * from './thermostats-daily-programs.js';
|
|
28
31
|
export * from './thermostats-schedules.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,iCAAiC,CAAA;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