@seamapi/http 0.9.2 → 0.10.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 +36 -0
- package/dist/connect.cjs +269 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +70 -3
- package/lib/seam/connect/routes/acs-credential-pools.d.ts +19 -0
- package/lib/seam/connect/routes/acs-credential-pools.js +73 -0
- package/lib/seam/connect/routes/acs-credential-pools.js.map +1 -0
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +19 -0
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js +73 -0
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.js.map +1 -0
- package/lib/seam/connect/routes/acs-credentials.d.ts +6 -2
- package/lib/seam/connect/routes/acs-credentials.js +12 -2
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/acs-entrances.d.ts +23 -0
- package/lib/seam/connect/routes/acs-entrances.js +81 -0
- package/lib/seam/connect/routes/acs-entrances.js.map +1 -0
- package/lib/seam/connect/routes/acs.d.ts +6 -0
- package/lib/seam/connect/routes/acs.js +12 -0
- package/lib/seam/connect/routes/acs.js.map +1 -1
- 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/user-identities.d.ts +5 -1
- package/lib/seam/connect/routes/user-identities.js +8 -0
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/seam/connect/routes/workspaces.d.ts +4 -0
- package/lib/seam/connect/routes/workspaces.js +8 -0
- package/lib/seam/connect/routes/workspaces.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +4 -4
- package/src/lib/seam/connect/routes/acs-credential-pools.ts +154 -0
- package/src/lib/seam/connect/routes/acs-credential-provisioning-automations.ts +162 -0
- package/src/lib/seam/connect/routes/acs-credentials.ts +33 -4
- package/src/lib/seam/connect/routes/acs-entrances.ts +173 -0
- package/src/lib/seam/connect/routes/acs.ts +18 -0
- package/src/lib/seam/connect/routes/index.ts +3 -0
- package/src/lib/seam/connect/routes/user-identities.ts +26 -1
- package/src/lib/seam/connect/routes/workspaces.ts +20 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.d.cts
CHANGED
|
@@ -131,6 +131,38 @@ type AcsAccessGroupsRemoveUserBody = RouteRequestBody<'/acs/access_groups/remove
|
|
|
131
131
|
type AcsAccessGroupsRemoveUserResponse = SetNonNullable<Required<RouteResponse<'/acs/access_groups/remove_user'>>>;
|
|
132
132
|
type AcsAccessGroupsRemoveUserOptions = never;
|
|
133
133
|
|
|
134
|
+
declare class SeamHttpAcsCredentialPools {
|
|
135
|
+
client: Client;
|
|
136
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
137
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
138
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsCredentialPools;
|
|
139
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsCredentialPools;
|
|
140
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsCredentialPools;
|
|
141
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentialPools>;
|
|
142
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentialPools;
|
|
143
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentialPools;
|
|
144
|
+
list(body?: AcsCredentialPoolsListParams): Promise<AcsCredentialPoolsListResponse['acs_credential_pools']>;
|
|
145
|
+
}
|
|
146
|
+
type AcsCredentialPoolsListParams = RouteRequestBody<'/acs/credential_pools/list'>;
|
|
147
|
+
type AcsCredentialPoolsListResponse = SetNonNullable<Required<RouteResponse<'/acs/credential_pools/list'>>>;
|
|
148
|
+
type AcsCredentialPoolsListOptions = never;
|
|
149
|
+
|
|
150
|
+
declare class SeamHttpAcsCredentialProvisioningAutomations {
|
|
151
|
+
client: Client;
|
|
152
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
153
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
154
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
155
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
156
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
157
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentialProvisioningAutomations>;
|
|
158
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
159
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
160
|
+
launch(body?: AcsCredentialProvisioningAutomationsLaunchBody): Promise<AcsCredentialProvisioningAutomationsLaunchResponse['acs_credential_provisioning_automation']>;
|
|
161
|
+
}
|
|
162
|
+
type AcsCredentialProvisioningAutomationsLaunchBody = RouteRequestBody<'/acs/credential_provisioning_automations/launch'>;
|
|
163
|
+
type AcsCredentialProvisioningAutomationsLaunchResponse = SetNonNullable<Required<RouteResponse<'/acs/credential_provisioning_automations/launch'>>>;
|
|
164
|
+
type AcsCredentialProvisioningAutomationsLaunchOptions = never;
|
|
165
|
+
|
|
134
166
|
declare class SeamHttpAcsCredentials {
|
|
135
167
|
client: Client;
|
|
136
168
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -141,12 +173,13 @@ declare class SeamHttpAcsCredentials {
|
|
|
141
173
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentials>;
|
|
142
174
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
143
175
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
144
|
-
assign(body?: AcsCredentialsAssignBody): Promise<
|
|
176
|
+
assign(body?: AcsCredentialsAssignBody): Promise<AcsCredentialsAssignResponse['acs_credential']>;
|
|
145
177
|
create(body?: AcsCredentialsCreateBody): Promise<AcsCredentialsCreateResponse['acs_credential']>;
|
|
146
178
|
delete(body?: AcsCredentialsDeleteBody): Promise<void>;
|
|
147
179
|
get(body?: AcsCredentialsGetParams): Promise<AcsCredentialsGetResponse['acs_credential']>;
|
|
148
180
|
list(body?: AcsCredentialsListParams): Promise<AcsCredentialsListResponse['acs_credentials']>;
|
|
149
|
-
unassign(body?: AcsCredentialsUnassignBody): Promise<
|
|
181
|
+
unassign(body?: AcsCredentialsUnassignBody): Promise<AcsCredentialsUnassignResponse['acs_credential']>;
|
|
182
|
+
update(body?: AcsCredentialsUpdateBody): Promise<AcsCredentialsUpdateResponse['acs_credential']>;
|
|
150
183
|
}
|
|
151
184
|
type AcsCredentialsAssignBody = RouteRequestBody<'/acs/credentials/assign'>;
|
|
152
185
|
type AcsCredentialsAssignResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/assign'>>>;
|
|
@@ -166,6 +199,29 @@ type AcsCredentialsListOptions = never;
|
|
|
166
199
|
type AcsCredentialsUnassignBody = RouteRequestBody<'/acs/credentials/unassign'>;
|
|
167
200
|
type AcsCredentialsUnassignResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/unassign'>>>;
|
|
168
201
|
type AcsCredentialsUnassignOptions = never;
|
|
202
|
+
type AcsCredentialsUpdateBody = RouteRequestBody<'/acs/credentials/update'>;
|
|
203
|
+
type AcsCredentialsUpdateResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/update'>>>;
|
|
204
|
+
type AcsCredentialsUpdateOptions = never;
|
|
205
|
+
|
|
206
|
+
declare class SeamHttpAcsEntrances {
|
|
207
|
+
client: Client;
|
|
208
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
209
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
210
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsEntrances;
|
|
211
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsEntrances;
|
|
212
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsEntrances;
|
|
213
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsEntrances>;
|
|
214
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsEntrances;
|
|
215
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEntrances;
|
|
216
|
+
get(body?: AcsEntrancesGetParams): Promise<AcsEntrancesGetResponse['acs_entrance']>;
|
|
217
|
+
list(body?: AcsEntrancesListParams): Promise<AcsEntrancesListResponse['acs_entrances']>;
|
|
218
|
+
}
|
|
219
|
+
type AcsEntrancesGetParams = RouteRequestBody<'/acs/entrances/get'>;
|
|
220
|
+
type AcsEntrancesGetResponse = SetNonNullable<Required<RouteResponse<'/acs/entrances/get'>>>;
|
|
221
|
+
type AcsEntrancesGetOptions = never;
|
|
222
|
+
type AcsEntrancesListParams = RouteRequestBody<'/acs/entrances/list'>;
|
|
223
|
+
type AcsEntrancesListResponse = SetNonNullable<Required<RouteResponse<'/acs/entrances/list'>>>;
|
|
224
|
+
type AcsEntrancesListOptions = never;
|
|
169
225
|
|
|
170
226
|
declare class SeamHttpAcsSystems {
|
|
171
227
|
client: Client;
|
|
@@ -246,7 +302,10 @@ declare class SeamHttpAcs {
|
|
|
246
302
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcs;
|
|
247
303
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcs;
|
|
248
304
|
get accessGroups(): SeamHttpAcsAccessGroups;
|
|
305
|
+
get credentialPools(): SeamHttpAcsCredentialPools;
|
|
306
|
+
get credentialProvisioningAutomations(): SeamHttpAcsCredentialProvisioningAutomations;
|
|
249
307
|
get credentials(): SeamHttpAcsCredentials;
|
|
308
|
+
get entrances(): SeamHttpAcsEntrances;
|
|
250
309
|
get systems(): SeamHttpAcsSystems;
|
|
251
310
|
get users(): SeamHttpAcsUsers;
|
|
252
311
|
}
|
|
@@ -608,6 +667,7 @@ declare class SeamHttpUserIdentities {
|
|
|
608
667
|
create(body?: UserIdentitiesCreateBody): Promise<UserIdentitiesCreateResponse['user_identity']>;
|
|
609
668
|
get(body?: UserIdentitiesGetParams): Promise<UserIdentitiesGetResponse['user_identity']>;
|
|
610
669
|
grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): Promise<void>;
|
|
670
|
+
list(params?: UserIdentitiesListParams): Promise<UserIdentitiesListResponse['user_identities']>;
|
|
611
671
|
listAccessibleDevices(body?: UserIdentitiesListAccessibleDevicesParams): Promise<UserIdentitiesListAccessibleDevicesResponse['accessible_devices']>;
|
|
612
672
|
listAcsUsers(body?: UserIdentitiesListAcsUsersParams): Promise<UserIdentitiesListAcsUsersResponse['acs_users']>;
|
|
613
673
|
removeAcsUser(body?: UserIdentitiesRemoveAcsUserBody): Promise<void>;
|
|
@@ -625,6 +685,9 @@ type UserIdentitiesGetOptions = never;
|
|
|
625
685
|
type UserIdentitiesGrantAccessToDeviceBody = RouteRequestBody<'/user_identities/grant_access_to_device'>;
|
|
626
686
|
type UserIdentitiesGrantAccessToDeviceResponse = SetNonNullable<Required<RouteResponse<'/user_identities/grant_access_to_device'>>>;
|
|
627
687
|
type UserIdentitiesGrantAccessToDeviceOptions = never;
|
|
688
|
+
type UserIdentitiesListParams = RouteRequestParams<'/user_identities/list'>;
|
|
689
|
+
type UserIdentitiesListResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list'>>>;
|
|
690
|
+
type UserIdentitiesListOptions = never;
|
|
628
691
|
type UserIdentitiesListAccessibleDevicesParams = RouteRequestBody<'/user_identities/list_accessible_devices'>;
|
|
629
692
|
type UserIdentitiesListAccessibleDevicesResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list_accessible_devices'>>>;
|
|
630
693
|
type UserIdentitiesListAccessibleDevicesOptions = never;
|
|
@@ -676,10 +739,14 @@ declare class SeamHttpWorkspaces {
|
|
|
676
739
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWorkspaces>;
|
|
677
740
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpWorkspaces;
|
|
678
741
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpWorkspaces;
|
|
742
|
+
create(body?: WorkspacesCreateBody): Promise<WorkspacesCreateResponse['workspace']>;
|
|
679
743
|
get(params?: WorkspacesGetParams): Promise<WorkspacesGetResponse['workspace']>;
|
|
680
744
|
list(params?: WorkspacesListParams): Promise<WorkspacesListResponse['workspaces']>;
|
|
681
745
|
resetSandbox(body?: WorkspacesResetSandboxBody): Promise<void>;
|
|
682
746
|
}
|
|
747
|
+
type WorkspacesCreateBody = RouteRequestBody<'/workspaces/create'>;
|
|
748
|
+
type WorkspacesCreateResponse = SetNonNullable<Required<RouteResponse<'/workspaces/create'>>>;
|
|
749
|
+
type WorkspacesCreateOptions = never;
|
|
683
750
|
type WorkspacesGetParams = RouteRequestParams<'/workspaces/get'>;
|
|
684
751
|
type WorkspacesGetResponse = SetNonNullable<Required<RouteResponse<'/workspaces/get'>>>;
|
|
685
752
|
type WorkspacesGetOptions = never;
|
|
@@ -834,4 +901,4 @@ declare class UnserializableParamError extends Error {
|
|
|
834
901
|
constructor(name: string, message: string);
|
|
835
902
|
}
|
|
836
903
|
|
|
837
|
-
export { AccessCodesCreateBody, AccessCodesCreateMultipleBody, AccessCodesCreateMultipleOptions, AccessCodesCreateMultipleResponse, AccessCodesCreateOptions, AccessCodesCreateResponse, AccessCodesDeleteBody, AccessCodesDeleteOptions, AccessCodesDeleteResponse, AccessCodesGenerateCodeBody, AccessCodesGenerateCodeOptions, AccessCodesGenerateCodeResponse, AccessCodesGetOptions, AccessCodesGetParams, AccessCodesGetResponse, AccessCodesListOptions, AccessCodesListParams, AccessCodesListResponse, AccessCodesPullBackupAccessCodeBody, AccessCodesPullBackupAccessCodeOptions, AccessCodesPullBackupAccessCodeResponse, AccessCodesUnmanagedConvertToManagedBody, AccessCodesUnmanagedConvertToManagedOptions, AccessCodesUnmanagedConvertToManagedResponse, AccessCodesUnmanagedDeleteBody, AccessCodesUnmanagedDeleteOptions, AccessCodesUnmanagedDeleteResponse, AccessCodesUnmanagedGetOptions, AccessCodesUnmanagedGetParams, AccessCodesUnmanagedGetResponse, AccessCodesUnmanagedListOptions, AccessCodesUnmanagedListParams, AccessCodesUnmanagedListResponse, AccessCodesUnmanagedUpdateBody, AccessCodesUnmanagedUpdateOptions, AccessCodesUnmanagedUpdateResponse, AccessCodesUpdateBody, AccessCodesUpdateOptions, AccessCodesUpdateResponse, AcsAccessGroupsAddUserBody, AcsAccessGroupsAddUserOptions, AcsAccessGroupsAddUserResponse, AcsAccessGroupsGetOptions, AcsAccessGroupsGetParams, AcsAccessGroupsGetResponse, AcsAccessGroupsListOptions, AcsAccessGroupsListParams, AcsAccessGroupsListResponse, AcsAccessGroupsListUsersOptions, AcsAccessGroupsListUsersParams, AcsAccessGroupsListUsersResponse, AcsAccessGroupsRemoveUserBody, AcsAccessGroupsRemoveUserOptions, AcsAccessGroupsRemoveUserResponse, AcsCredentialsAssignBody, AcsCredentialsAssignOptions, AcsCredentialsAssignResponse, AcsCredentialsCreateBody, AcsCredentialsCreateOptions, AcsCredentialsCreateResponse, AcsCredentialsDeleteBody, AcsCredentialsDeleteOptions, AcsCredentialsDeleteResponse, AcsCredentialsGetOptions, AcsCredentialsGetParams, AcsCredentialsGetResponse, AcsCredentialsListOptions, AcsCredentialsListParams, AcsCredentialsListResponse, AcsCredentialsUnassignBody, AcsCredentialsUnassignOptions, AcsCredentialsUnassignResponse, AcsSystemsGetOptions, AcsSystemsGetParams, AcsSystemsGetResponse, AcsSystemsListOptions, AcsSystemsListParams, AcsSystemsListResponse, AcsUsersAddToAccessGroupBody, AcsUsersAddToAccessGroupOptions, AcsUsersAddToAccessGroupResponse, AcsUsersCreateBody, AcsUsersCreateOptions, AcsUsersCreateResponse, AcsUsersDeleteBody, AcsUsersDeleteOptions, AcsUsersDeleteResponse, AcsUsersGetOptions, AcsUsersGetParams, AcsUsersGetResponse, AcsUsersListOptions, AcsUsersListParams, AcsUsersListResponse, AcsUsersRemoveFromAccessGroupBody, AcsUsersRemoveFromAccessGroupOptions, AcsUsersRemoveFromAccessGroupResponse, AcsUsersSuspendBody, AcsUsersSuspendOptions, AcsUsersSuspendResponse, AcsUsersUnsuspendBody, AcsUsersUnsuspendOptions, AcsUsersUnsuspendResponse, AcsUsersUpdateBody, AcsUsersUpdateOptions, AcsUsersUpdateResponse, ActionAttemptsGetOptions, ActionAttemptsGetParams, ActionAttemptsGetResponse, ActionAttemptsListOptions, ActionAttemptsListParams, ActionAttemptsListResponse, ClientSessionsCreateBody, ClientSessionsCreateOptions, ClientSessionsCreateResponse, ClientSessionsDeleteBody, ClientSessionsDeleteOptions, ClientSessionsDeleteResponse, ClientSessionsGetOptions, ClientSessionsGetOrCreateBody, ClientSessionsGetOrCreateOptions, ClientSessionsGetOrCreateResponse, ClientSessionsGetParams, ClientSessionsGetResponse, ClientSessionsGrantAccessBody, ClientSessionsGrantAccessOptions, ClientSessionsGrantAccessResponse, ClientSessionsListOptions, ClientSessionsListParams, ClientSessionsListResponse, ClientSessionsRevokeBody, ClientSessionsRevokeOptions, ClientSessionsRevokeResponse, ConnectWebviewsCreateBody, ConnectWebviewsCreateOptions, ConnectWebviewsCreateResponse, ConnectWebviewsDeleteBody, ConnectWebviewsDeleteOptions, ConnectWebviewsDeleteResponse, ConnectWebviewsGetOptions, ConnectWebviewsGetParams, ConnectWebviewsGetResponse, ConnectWebviewsListOptions, ConnectWebviewsListParams, ConnectWebviewsListResponse, ConnectWebviewsViewOptions, ConnectWebviewsViewParams, ConnectWebviewsViewResponse, ConnectedAccountsDeleteBody, ConnectedAccountsDeleteOptions, ConnectedAccountsDeleteResponse, ConnectedAccountsGetOptions, ConnectedAccountsGetParams, ConnectedAccountsGetResponse, ConnectedAccountsListOptions, ConnectedAccountsListParams, ConnectedAccountsListResponse, DevicesDeleteBody, DevicesDeleteOptions, DevicesDeleteResponse, DevicesGetOptions, DevicesGetParams, DevicesGetResponse, DevicesListDeviceProvidersOptions, DevicesListDeviceProvidersParams, DevicesListDeviceProvidersResponse, DevicesListOptions, DevicesListParams, DevicesListResponse, DevicesUnmanagedGetOptions, DevicesUnmanagedGetParams, DevicesUnmanagedGetResponse, DevicesUnmanagedListOptions, DevicesUnmanagedListParams, DevicesUnmanagedListResponse, DevicesUnmanagedUpdateBody, DevicesUnmanagedUpdateOptions, DevicesUnmanagedUpdateResponse, DevicesUpdateBody, DevicesUpdateOptions, DevicesUpdateResponse, EventsGetOptions, EventsGetParams, EventsGetResponse, EventsListOptions, EventsListParams, EventsListResponse, LocksGetOptions, LocksGetParams, LocksGetResponse, LocksListOptions, LocksListParams, LocksListResponse, LocksLockDoorBody, LocksLockDoorOptions, LocksLockDoorResponse, LocksUnlockDoorBody, LocksUnlockDoorOptions, LocksUnlockDoorResponse, NoiseSensorsNoiseThresholdsCreateBody, NoiseSensorsNoiseThresholdsCreateOptions, NoiseSensorsNoiseThresholdsCreateResponse, NoiseSensorsNoiseThresholdsDeleteBody, NoiseSensorsNoiseThresholdsDeleteOptions, NoiseSensorsNoiseThresholdsDeleteResponse, NoiseSensorsNoiseThresholdsGetOptions, NoiseSensorsNoiseThresholdsGetParams, NoiseSensorsNoiseThresholdsGetResponse, NoiseSensorsNoiseThresholdsListOptions, NoiseSensorsNoiseThresholdsListParams, NoiseSensorsNoiseThresholdsListResponse, NoiseSensorsNoiseThresholdsUpdateBody, NoiseSensorsNoiseThresholdsUpdateOptions, NoiseSensorsNoiseThresholdsUpdateResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesUnmanaged, SeamHttpEvents, SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, SeamHttpMultiWorkspaceOptions, SeamHttpMultiWorkspaceOptionsWithClient, SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpOptions, SeamHttpOptionsFromEnv, SeamHttpOptionsWithApiKey, SeamHttpOptionsWithClient, SeamHttpOptionsWithClientSessionToken, SeamHttpOptionsWithConsoleSessionToken, SeamHttpOptionsWithPersonalAccessToken, SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpWebhooks, SeamHttpWorkspaces, ThermostatsClimateSettingSchedulesCreateBody, ThermostatsClimateSettingSchedulesCreateOptions, ThermostatsClimateSettingSchedulesCreateResponse, ThermostatsClimateSettingSchedulesDeleteBody, ThermostatsClimateSettingSchedulesDeleteOptions, ThermostatsClimateSettingSchedulesDeleteResponse, ThermostatsClimateSettingSchedulesGetOptions, ThermostatsClimateSettingSchedulesGetParams, ThermostatsClimateSettingSchedulesGetResponse, ThermostatsClimateSettingSchedulesListOptions, ThermostatsClimateSettingSchedulesListParams, ThermostatsClimateSettingSchedulesListResponse, ThermostatsClimateSettingSchedulesUpdateBody, ThermostatsClimateSettingSchedulesUpdateOptions, ThermostatsClimateSettingSchedulesUpdateResponse, ThermostatsCoolBody, ThermostatsCoolOptions, ThermostatsCoolResponse, ThermostatsGetOptions, ThermostatsGetParams, ThermostatsGetResponse, ThermostatsHeatBody, ThermostatsHeatCoolBody, ThermostatsHeatCoolOptions, ThermostatsHeatCoolResponse, ThermostatsHeatOptions, ThermostatsHeatResponse, ThermostatsListOptions, ThermostatsListParams, ThermostatsListResponse, ThermostatsOffBody, ThermostatsOffOptions, ThermostatsOffResponse, ThermostatsSetFanModeBody, ThermostatsSetFanModeOptions, ThermostatsSetFanModeResponse, ThermostatsUpdateBody, ThermostatsUpdateOptions, ThermostatsUpdateResponse, UnserializableParamError, UserIdentitiesAddAcsUserBody, UserIdentitiesAddAcsUserOptions, UserIdentitiesAddAcsUserResponse, UserIdentitiesCreateBody, UserIdentitiesCreateOptions, UserIdentitiesCreateResponse, UserIdentitiesGetOptions, UserIdentitiesGetParams, UserIdentitiesGetResponse, UserIdentitiesGrantAccessToDeviceBody, UserIdentitiesGrantAccessToDeviceOptions, UserIdentitiesGrantAccessToDeviceResponse, UserIdentitiesListAccessibleDevicesOptions, UserIdentitiesListAccessibleDevicesParams, UserIdentitiesListAccessibleDevicesResponse, UserIdentitiesListAcsUsersOptions, UserIdentitiesListAcsUsersParams, UserIdentitiesListAcsUsersResponse, UserIdentitiesRemoveAcsUserBody, UserIdentitiesRemoveAcsUserOptions, UserIdentitiesRemoveAcsUserResponse, UserIdentitiesRevokeAccessToDeviceBody, UserIdentitiesRevokeAccessToDeviceOptions, UserIdentitiesRevokeAccessToDeviceResponse, WebhooksCreateBody, WebhooksCreateOptions, WebhooksCreateResponse, WebhooksDeleteBody, WebhooksDeleteOptions, WebhooksDeleteResponse, WebhooksGetOptions, WebhooksGetParams, WebhooksGetResponse, WebhooksListOptions, WebhooksListParams, WebhooksListResponse, WorkspacesGetOptions, WorkspacesGetParams, WorkspacesGetResponse, WorkspacesListOptions, WorkspacesListParams, WorkspacesListResponse, WorkspacesResetSandboxBody, WorkspacesResetSandboxOptions, WorkspacesResetSandboxResponse, errorInterceptor, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError, paramsSerializer };
|
|
904
|
+
export { AccessCodesCreateBody, AccessCodesCreateMultipleBody, AccessCodesCreateMultipleOptions, AccessCodesCreateMultipleResponse, AccessCodesCreateOptions, AccessCodesCreateResponse, AccessCodesDeleteBody, AccessCodesDeleteOptions, AccessCodesDeleteResponse, AccessCodesGenerateCodeBody, AccessCodesGenerateCodeOptions, AccessCodesGenerateCodeResponse, AccessCodesGetOptions, AccessCodesGetParams, AccessCodesGetResponse, AccessCodesListOptions, AccessCodesListParams, AccessCodesListResponse, AccessCodesPullBackupAccessCodeBody, AccessCodesPullBackupAccessCodeOptions, AccessCodesPullBackupAccessCodeResponse, AccessCodesUnmanagedConvertToManagedBody, AccessCodesUnmanagedConvertToManagedOptions, AccessCodesUnmanagedConvertToManagedResponse, AccessCodesUnmanagedDeleteBody, AccessCodesUnmanagedDeleteOptions, AccessCodesUnmanagedDeleteResponse, AccessCodesUnmanagedGetOptions, AccessCodesUnmanagedGetParams, AccessCodesUnmanagedGetResponse, AccessCodesUnmanagedListOptions, AccessCodesUnmanagedListParams, AccessCodesUnmanagedListResponse, AccessCodesUnmanagedUpdateBody, AccessCodesUnmanagedUpdateOptions, AccessCodesUnmanagedUpdateResponse, AccessCodesUpdateBody, AccessCodesUpdateOptions, AccessCodesUpdateResponse, AcsAccessGroupsAddUserBody, AcsAccessGroupsAddUserOptions, AcsAccessGroupsAddUserResponse, AcsAccessGroupsGetOptions, AcsAccessGroupsGetParams, AcsAccessGroupsGetResponse, AcsAccessGroupsListOptions, AcsAccessGroupsListParams, AcsAccessGroupsListResponse, AcsAccessGroupsListUsersOptions, AcsAccessGroupsListUsersParams, AcsAccessGroupsListUsersResponse, AcsAccessGroupsRemoveUserBody, AcsAccessGroupsRemoveUserOptions, AcsAccessGroupsRemoveUserResponse, AcsCredentialPoolsListOptions, AcsCredentialPoolsListParams, AcsCredentialPoolsListResponse, AcsCredentialProvisioningAutomationsLaunchBody, AcsCredentialProvisioningAutomationsLaunchOptions, AcsCredentialProvisioningAutomationsLaunchResponse, AcsCredentialsAssignBody, AcsCredentialsAssignOptions, AcsCredentialsAssignResponse, AcsCredentialsCreateBody, AcsCredentialsCreateOptions, AcsCredentialsCreateResponse, AcsCredentialsDeleteBody, AcsCredentialsDeleteOptions, AcsCredentialsDeleteResponse, AcsCredentialsGetOptions, AcsCredentialsGetParams, AcsCredentialsGetResponse, AcsCredentialsListOptions, AcsCredentialsListParams, AcsCredentialsListResponse, AcsCredentialsUnassignBody, AcsCredentialsUnassignOptions, AcsCredentialsUnassignResponse, AcsCredentialsUpdateBody, AcsCredentialsUpdateOptions, AcsCredentialsUpdateResponse, AcsEntrancesGetOptions, AcsEntrancesGetParams, AcsEntrancesGetResponse, AcsEntrancesListOptions, AcsEntrancesListParams, AcsEntrancesListResponse, AcsSystemsGetOptions, AcsSystemsGetParams, AcsSystemsGetResponse, AcsSystemsListOptions, AcsSystemsListParams, AcsSystemsListResponse, AcsUsersAddToAccessGroupBody, AcsUsersAddToAccessGroupOptions, AcsUsersAddToAccessGroupResponse, AcsUsersCreateBody, AcsUsersCreateOptions, AcsUsersCreateResponse, AcsUsersDeleteBody, AcsUsersDeleteOptions, AcsUsersDeleteResponse, AcsUsersGetOptions, AcsUsersGetParams, AcsUsersGetResponse, AcsUsersListOptions, AcsUsersListParams, AcsUsersListResponse, AcsUsersRemoveFromAccessGroupBody, AcsUsersRemoveFromAccessGroupOptions, AcsUsersRemoveFromAccessGroupResponse, AcsUsersSuspendBody, AcsUsersSuspendOptions, AcsUsersSuspendResponse, AcsUsersUnsuspendBody, AcsUsersUnsuspendOptions, AcsUsersUnsuspendResponse, AcsUsersUpdateBody, AcsUsersUpdateOptions, AcsUsersUpdateResponse, ActionAttemptsGetOptions, ActionAttemptsGetParams, ActionAttemptsGetResponse, ActionAttemptsListOptions, ActionAttemptsListParams, ActionAttemptsListResponse, ClientSessionsCreateBody, ClientSessionsCreateOptions, ClientSessionsCreateResponse, ClientSessionsDeleteBody, ClientSessionsDeleteOptions, ClientSessionsDeleteResponse, ClientSessionsGetOptions, ClientSessionsGetOrCreateBody, ClientSessionsGetOrCreateOptions, ClientSessionsGetOrCreateResponse, ClientSessionsGetParams, ClientSessionsGetResponse, ClientSessionsGrantAccessBody, ClientSessionsGrantAccessOptions, ClientSessionsGrantAccessResponse, ClientSessionsListOptions, ClientSessionsListParams, ClientSessionsListResponse, ClientSessionsRevokeBody, ClientSessionsRevokeOptions, ClientSessionsRevokeResponse, ConnectWebviewsCreateBody, ConnectWebviewsCreateOptions, ConnectWebviewsCreateResponse, ConnectWebviewsDeleteBody, ConnectWebviewsDeleteOptions, ConnectWebviewsDeleteResponse, ConnectWebviewsGetOptions, ConnectWebviewsGetParams, ConnectWebviewsGetResponse, ConnectWebviewsListOptions, ConnectWebviewsListParams, ConnectWebviewsListResponse, ConnectWebviewsViewOptions, ConnectWebviewsViewParams, ConnectWebviewsViewResponse, ConnectedAccountsDeleteBody, ConnectedAccountsDeleteOptions, ConnectedAccountsDeleteResponse, ConnectedAccountsGetOptions, ConnectedAccountsGetParams, ConnectedAccountsGetResponse, ConnectedAccountsListOptions, ConnectedAccountsListParams, ConnectedAccountsListResponse, DevicesDeleteBody, DevicesDeleteOptions, DevicesDeleteResponse, DevicesGetOptions, DevicesGetParams, DevicesGetResponse, DevicesListDeviceProvidersOptions, DevicesListDeviceProvidersParams, DevicesListDeviceProvidersResponse, DevicesListOptions, DevicesListParams, DevicesListResponse, DevicesUnmanagedGetOptions, DevicesUnmanagedGetParams, DevicesUnmanagedGetResponse, DevicesUnmanagedListOptions, DevicesUnmanagedListParams, DevicesUnmanagedListResponse, DevicesUnmanagedUpdateBody, DevicesUnmanagedUpdateOptions, DevicesUnmanagedUpdateResponse, DevicesUpdateBody, DevicesUpdateOptions, DevicesUpdateResponse, EventsGetOptions, EventsGetParams, EventsGetResponse, EventsListOptions, EventsListParams, EventsListResponse, LocksGetOptions, LocksGetParams, LocksGetResponse, LocksListOptions, LocksListParams, LocksListResponse, LocksLockDoorBody, LocksLockDoorOptions, LocksLockDoorResponse, LocksUnlockDoorBody, LocksUnlockDoorOptions, LocksUnlockDoorResponse, NoiseSensorsNoiseThresholdsCreateBody, NoiseSensorsNoiseThresholdsCreateOptions, NoiseSensorsNoiseThresholdsCreateResponse, NoiseSensorsNoiseThresholdsDeleteBody, NoiseSensorsNoiseThresholdsDeleteOptions, NoiseSensorsNoiseThresholdsDeleteResponse, NoiseSensorsNoiseThresholdsGetOptions, NoiseSensorsNoiseThresholdsGetParams, NoiseSensorsNoiseThresholdsGetResponse, NoiseSensorsNoiseThresholdsListOptions, NoiseSensorsNoiseThresholdsListParams, NoiseSensorsNoiseThresholdsListResponse, NoiseSensorsNoiseThresholdsUpdateBody, NoiseSensorsNoiseThresholdsUpdateOptions, NoiseSensorsNoiseThresholdsUpdateResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesUnmanaged, SeamHttpEvents, SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, SeamHttpMultiWorkspaceOptions, SeamHttpMultiWorkspaceOptionsWithClient, SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpOptions, SeamHttpOptionsFromEnv, SeamHttpOptionsWithApiKey, SeamHttpOptionsWithClient, SeamHttpOptionsWithClientSessionToken, SeamHttpOptionsWithConsoleSessionToken, SeamHttpOptionsWithPersonalAccessToken, SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpWebhooks, SeamHttpWorkspaces, ThermostatsClimateSettingSchedulesCreateBody, ThermostatsClimateSettingSchedulesCreateOptions, ThermostatsClimateSettingSchedulesCreateResponse, ThermostatsClimateSettingSchedulesDeleteBody, ThermostatsClimateSettingSchedulesDeleteOptions, ThermostatsClimateSettingSchedulesDeleteResponse, ThermostatsClimateSettingSchedulesGetOptions, ThermostatsClimateSettingSchedulesGetParams, ThermostatsClimateSettingSchedulesGetResponse, ThermostatsClimateSettingSchedulesListOptions, ThermostatsClimateSettingSchedulesListParams, ThermostatsClimateSettingSchedulesListResponse, ThermostatsClimateSettingSchedulesUpdateBody, ThermostatsClimateSettingSchedulesUpdateOptions, ThermostatsClimateSettingSchedulesUpdateResponse, ThermostatsCoolBody, ThermostatsCoolOptions, ThermostatsCoolResponse, ThermostatsGetOptions, ThermostatsGetParams, ThermostatsGetResponse, ThermostatsHeatBody, ThermostatsHeatCoolBody, ThermostatsHeatCoolOptions, ThermostatsHeatCoolResponse, ThermostatsHeatOptions, ThermostatsHeatResponse, ThermostatsListOptions, ThermostatsListParams, ThermostatsListResponse, ThermostatsOffBody, ThermostatsOffOptions, ThermostatsOffResponse, ThermostatsSetFanModeBody, ThermostatsSetFanModeOptions, ThermostatsSetFanModeResponse, ThermostatsUpdateBody, ThermostatsUpdateOptions, ThermostatsUpdateResponse, UnserializableParamError, UserIdentitiesAddAcsUserBody, UserIdentitiesAddAcsUserOptions, UserIdentitiesAddAcsUserResponse, UserIdentitiesCreateBody, UserIdentitiesCreateOptions, UserIdentitiesCreateResponse, UserIdentitiesGetOptions, UserIdentitiesGetParams, UserIdentitiesGetResponse, UserIdentitiesGrantAccessToDeviceBody, UserIdentitiesGrantAccessToDeviceOptions, UserIdentitiesGrantAccessToDeviceResponse, UserIdentitiesListAccessibleDevicesOptions, UserIdentitiesListAccessibleDevicesParams, UserIdentitiesListAccessibleDevicesResponse, UserIdentitiesListAcsUsersOptions, UserIdentitiesListAcsUsersParams, UserIdentitiesListAcsUsersResponse, UserIdentitiesListOptions, UserIdentitiesListParams, UserIdentitiesListResponse, UserIdentitiesRemoveAcsUserBody, UserIdentitiesRemoveAcsUserOptions, UserIdentitiesRemoveAcsUserResponse, UserIdentitiesRevokeAccessToDeviceBody, UserIdentitiesRevokeAccessToDeviceOptions, UserIdentitiesRevokeAccessToDeviceResponse, WebhooksCreateBody, WebhooksCreateOptions, WebhooksCreateResponse, WebhooksDeleteBody, WebhooksDeleteOptions, WebhooksDeleteResponse, WebhooksGetOptions, WebhooksGetParams, WebhooksGetResponse, WebhooksListOptions, WebhooksListParams, WebhooksListResponse, WorkspacesCreateBody, WorkspacesCreateOptions, WorkspacesCreateResponse, WorkspacesGetOptions, WorkspacesGetParams, WorkspacesGetResponse, WorkspacesListOptions, WorkspacesListParams, WorkspacesListResponse, WorkspacesResetSandboxBody, WorkspacesResetSandboxOptions, WorkspacesResetSandboxResponse, errorInterceptor, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError, paramsSerializer };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
+
import type { SetNonNullable } from 'type-fest';
|
|
3
|
+
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
4
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
5
|
+
export declare class SeamHttpAcsCredentialPools {
|
|
6
|
+
client: Client;
|
|
7
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
8
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
9
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsCredentialPools;
|
|
10
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsCredentialPools;
|
|
11
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsCredentialPools;
|
|
12
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentialPools>;
|
|
13
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentialPools;
|
|
14
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentialPools;
|
|
15
|
+
list(body?: AcsCredentialPoolsListParams): Promise<AcsCredentialPoolsListResponse['acs_credential_pools']>;
|
|
16
|
+
}
|
|
17
|
+
export type AcsCredentialPoolsListParams = RouteRequestBody<'/acs/credential_pools/list'>;
|
|
18
|
+
export type AcsCredentialPoolsListResponse = SetNonNullable<Required<RouteResponse<'/acs/credential_pools/list'>>>;
|
|
19
|
+
export type AcsCredentialPoolsListOptions = never;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { 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 { SeamHttpClientSessions } from './client-sessions.js';
|
|
10
|
+
export class SeamHttpAcsCredentialPools {
|
|
11
|
+
constructor(apiKeyOrOptions = {}) {
|
|
12
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
13
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
14
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
15
|
+
}
|
|
16
|
+
static fromClient(client, options = {}) {
|
|
17
|
+
const constructorOptions = { ...options, client };
|
|
18
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
19
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
20
|
+
}
|
|
21
|
+
return new SeamHttpAcsCredentialPools(constructorOptions);
|
|
22
|
+
}
|
|
23
|
+
static fromApiKey(apiKey, options = {}) {
|
|
24
|
+
const constructorOptions = { ...options, apiKey };
|
|
25
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
26
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
27
|
+
}
|
|
28
|
+
return new SeamHttpAcsCredentialPools(constructorOptions);
|
|
29
|
+
}
|
|
30
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
31
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
32
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
33
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
34
|
+
}
|
|
35
|
+
return new SeamHttpAcsCredentialPools(constructorOptions);
|
|
36
|
+
}
|
|
37
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
38
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
39
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
40
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
41
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
|
|
42
|
+
}
|
|
43
|
+
const client = createClient(clientOptions);
|
|
44
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
45
|
+
const { token } = await clientSessions.getOrCreate({
|
|
46
|
+
user_identifier_key: userIdentifierKey,
|
|
47
|
+
});
|
|
48
|
+
return SeamHttpAcsCredentialPools.fromClientSessionToken(token, options);
|
|
49
|
+
}
|
|
50
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
51
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
52
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
53
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
54
|
+
}
|
|
55
|
+
return new SeamHttpAcsCredentialPools(constructorOptions);
|
|
56
|
+
}
|
|
57
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
58
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
59
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
60
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
61
|
+
}
|
|
62
|
+
return new SeamHttpAcsCredentialPools(constructorOptions);
|
|
63
|
+
}
|
|
64
|
+
async list(body) {
|
|
65
|
+
const { data } = await this.client.request({
|
|
66
|
+
url: '/acs/credential_pools/list',
|
|
67
|
+
method: 'post',
|
|
68
|
+
data: body,
|
|
69
|
+
});
|
|
70
|
+
return data.acs_credential_pools;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=acs-credential-pools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acs-credential-pools.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-credential-pools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAA;AAC1E,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;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,0BAA0B;IAIrC,YAAY,kBAA4C,EAAE;Q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;IAC3D,CAAC;IAED,KAAK,CAAC,IAAI,CACR,IAAmC;QAEnC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAiC;YACzE,GAAG,EAAE,4BAA4B;YACjC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,oBAAoB,CAAA;IAClC,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
+
import type { SetNonNullable } from 'type-fest';
|
|
3
|
+
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
4
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
5
|
+
export declare class SeamHttpAcsCredentialProvisioningAutomations {
|
|
6
|
+
client: Client;
|
|
7
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
8
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
9
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
10
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
11
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
12
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentialProvisioningAutomations>;
|
|
13
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
14
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentialProvisioningAutomations;
|
|
15
|
+
launch(body?: AcsCredentialProvisioningAutomationsLaunchBody): Promise<AcsCredentialProvisioningAutomationsLaunchResponse['acs_credential_provisioning_automation']>;
|
|
16
|
+
}
|
|
17
|
+
export type AcsCredentialProvisioningAutomationsLaunchBody = RouteRequestBody<'/acs/credential_provisioning_automations/launch'>;
|
|
18
|
+
export type AcsCredentialProvisioningAutomationsLaunchResponse = SetNonNullable<Required<RouteResponse<'/acs/credential_provisioning_automations/launch'>>>;
|
|
19
|
+
export type AcsCredentialProvisioningAutomationsLaunchOptions = never;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { 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 { SeamHttpClientSessions } from './client-sessions.js';
|
|
10
|
+
export class SeamHttpAcsCredentialProvisioningAutomations {
|
|
11
|
+
constructor(apiKeyOrOptions = {}) {
|
|
12
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
13
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
14
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
15
|
+
}
|
|
16
|
+
static fromClient(client, options = {}) {
|
|
17
|
+
const constructorOptions = { ...options, client };
|
|
18
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
19
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
20
|
+
}
|
|
21
|
+
return new SeamHttpAcsCredentialProvisioningAutomations(constructorOptions);
|
|
22
|
+
}
|
|
23
|
+
static fromApiKey(apiKey, options = {}) {
|
|
24
|
+
const constructorOptions = { ...options, apiKey };
|
|
25
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
26
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
27
|
+
}
|
|
28
|
+
return new SeamHttpAcsCredentialProvisioningAutomations(constructorOptions);
|
|
29
|
+
}
|
|
30
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
31
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
32
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
33
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
34
|
+
}
|
|
35
|
+
return new SeamHttpAcsCredentialProvisioningAutomations(constructorOptions);
|
|
36
|
+
}
|
|
37
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
38
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
39
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
40
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
41
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
|
|
42
|
+
}
|
|
43
|
+
const client = createClient(clientOptions);
|
|
44
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
45
|
+
const { token } = await clientSessions.getOrCreate({
|
|
46
|
+
user_identifier_key: userIdentifierKey,
|
|
47
|
+
});
|
|
48
|
+
return SeamHttpAcsCredentialProvisioningAutomations.fromClientSessionToken(token, options);
|
|
49
|
+
}
|
|
50
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
51
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
52
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
53
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
54
|
+
}
|
|
55
|
+
return new SeamHttpAcsCredentialProvisioningAutomations(constructorOptions);
|
|
56
|
+
}
|
|
57
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
58
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
59
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
60
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
61
|
+
}
|
|
62
|
+
return new SeamHttpAcsCredentialProvisioningAutomations(constructorOptions);
|
|
63
|
+
}
|
|
64
|
+
async launch(body) {
|
|
65
|
+
const { data } = await this.client.request({
|
|
66
|
+
url: '/acs/credential_provisioning_automations/launch',
|
|
67
|
+
method: 'post',
|
|
68
|
+
data: body,
|
|
69
|
+
});
|
|
70
|
+
return data.acs_credential_provisioning_automation;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=acs-credential-provisioning-automations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acs-credential-provisioning-automations.js","sourceRoot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AAC,wCAAwC,CAAC,kBAAkB,CAAC,EAAE;YACjE,MAAM,IAAI,2BAA2B,CACnC,4CAA4C,CAC7C,CAAA;SACF;QACD,OAAO,IAAI,4CAA4C,CAAC,kBAAkB,CAAC,CAAA;IAC7E,CAAC;IAED,MAAM,CAAC,uBAAuB,CAC5B,mBAAkF,EAClF,WAAkE,EAClE,UAGI,EAAE;QAEN,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,mBAAmB,EAAE,WAAW,EAAE,CAAA;QAC3E,IAAI,CAAC,wCAAwC,CAAC,kBAAkB,CAAC,EAAE;YACjE,MAAM,IAAI,2BAA2B,CACnC,4CAA4C,CAC7C,CAAA;SACF;QACD,OAAO,IAAI,4CAA4C,CAAC,kBAAkB,CAAC,CAAA;IAC7E,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAqD;QAIrD,MAAM,EAAE,IAAI,EAAE,GACZ,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CACvB;YACE,GAAG,EAAE,iDAAiD;YACtD,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CACF,CAAA;QAEH,OAAO,IAAI,CAAC,sCAAsC,CAAA;IACpD,CAAC;CACF"}
|
|
@@ -12,12 +12,13 @@ export declare class SeamHttpAcsCredentials {
|
|
|
12
12
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentials>;
|
|
13
13
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
14
14
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
15
|
-
assign(body?: AcsCredentialsAssignBody): Promise<
|
|
15
|
+
assign(body?: AcsCredentialsAssignBody): Promise<AcsCredentialsAssignResponse['acs_credential']>;
|
|
16
16
|
create(body?: AcsCredentialsCreateBody): Promise<AcsCredentialsCreateResponse['acs_credential']>;
|
|
17
17
|
delete(body?: AcsCredentialsDeleteBody): Promise<void>;
|
|
18
18
|
get(body?: AcsCredentialsGetParams): Promise<AcsCredentialsGetResponse['acs_credential']>;
|
|
19
19
|
list(body?: AcsCredentialsListParams): Promise<AcsCredentialsListResponse['acs_credentials']>;
|
|
20
|
-
unassign(body?: AcsCredentialsUnassignBody): Promise<
|
|
20
|
+
unassign(body?: AcsCredentialsUnassignBody): Promise<AcsCredentialsUnassignResponse['acs_credential']>;
|
|
21
|
+
update(body?: AcsCredentialsUpdateBody): Promise<AcsCredentialsUpdateResponse['acs_credential']>;
|
|
21
22
|
}
|
|
22
23
|
export type AcsCredentialsAssignBody = RouteRequestBody<'/acs/credentials/assign'>;
|
|
23
24
|
export type AcsCredentialsAssignResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/assign'>>>;
|
|
@@ -37,3 +38,6 @@ export type AcsCredentialsListOptions = never;
|
|
|
37
38
|
export type AcsCredentialsUnassignBody = RouteRequestBody<'/acs/credentials/unassign'>;
|
|
38
39
|
export type AcsCredentialsUnassignResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/unassign'>>>;
|
|
39
40
|
export type AcsCredentialsUnassignOptions = never;
|
|
41
|
+
export type AcsCredentialsUpdateBody = RouteRequestBody<'/acs/credentials/update'>;
|
|
42
|
+
export type AcsCredentialsUpdateResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/update'>>>;
|
|
43
|
+
export type AcsCredentialsUpdateOptions = never;
|
|
@@ -62,11 +62,12 @@ export class SeamHttpAcsCredentials {
|
|
|
62
62
|
return new SeamHttpAcsCredentials(constructorOptions);
|
|
63
63
|
}
|
|
64
64
|
async assign(body) {
|
|
65
|
-
await this.client.request({
|
|
65
|
+
const { data } = await this.client.request({
|
|
66
66
|
url: '/acs/credentials/assign',
|
|
67
67
|
method: 'post',
|
|
68
68
|
data: body,
|
|
69
69
|
});
|
|
70
|
+
return data.acs_credential;
|
|
70
71
|
}
|
|
71
72
|
async create(body) {
|
|
72
73
|
const { data } = await this.client.request({
|
|
@@ -100,11 +101,20 @@ export class SeamHttpAcsCredentials {
|
|
|
100
101
|
return data.acs_credentials;
|
|
101
102
|
}
|
|
102
103
|
async unassign(body) {
|
|
103
|
-
await this.client.request({
|
|
104
|
+
const { data } = await this.client.request({
|
|
104
105
|
url: '/acs/credentials/unassign',
|
|
105
106
|
method: 'post',
|
|
106
107
|
data: body,
|
|
107
108
|
});
|
|
109
|
+
return data.acs_credential;
|
|
110
|
+
}
|
|
111
|
+
async update(body) {
|
|
112
|
+
const { data } = await this.client.request({
|
|
113
|
+
url: '/acs/credentials/update',
|
|
114
|
+
method: 'post',
|
|
115
|
+
data: body,
|
|
116
|
+
});
|
|
117
|
+
return data.acs_credential;
|
|
108
118
|
}
|
|
109
119
|
}
|
|
110
120
|
//# sourceMappingURL=acs-credentials.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-credentials.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAA;AAC1E,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;AAE1C,OAAO,EAAE,sBAAsB,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|
+
import type { SetNonNullable } from 'type-fest';
|
|
3
|
+
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
4
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
5
|
+
export declare class SeamHttpAcsEntrances {
|
|
6
|
+
client: Client;
|
|
7
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
8
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
9
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsEntrances;
|
|
10
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsEntrances;
|
|
11
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsEntrances;
|
|
12
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsEntrances>;
|
|
13
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsEntrances;
|
|
14
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEntrances;
|
|
15
|
+
get(body?: AcsEntrancesGetParams): Promise<AcsEntrancesGetResponse['acs_entrance']>;
|
|
16
|
+
list(body?: AcsEntrancesListParams): Promise<AcsEntrancesListResponse['acs_entrances']>;
|
|
17
|
+
}
|
|
18
|
+
export type AcsEntrancesGetParams = RouteRequestBody<'/acs/entrances/get'>;
|
|
19
|
+
export type AcsEntrancesGetResponse = SetNonNullable<Required<RouteResponse<'/acs/entrances/get'>>>;
|
|
20
|
+
export type AcsEntrancesGetOptions = never;
|
|
21
|
+
export type AcsEntrancesListParams = RouteRequestBody<'/acs/entrances/list'>;
|
|
22
|
+
export type AcsEntrancesListResponse = SetNonNullable<Required<RouteResponse<'/acs/entrances/list'>>>;
|
|
23
|
+
export type AcsEntrancesListOptions = never;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { 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 { SeamHttpClientSessions } from './client-sessions.js';
|
|
10
|
+
export class SeamHttpAcsEntrances {
|
|
11
|
+
constructor(apiKeyOrOptions = {}) {
|
|
12
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
13
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
14
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
15
|
+
}
|
|
16
|
+
static fromClient(client, options = {}) {
|
|
17
|
+
const constructorOptions = { ...options, client };
|
|
18
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
19
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
20
|
+
}
|
|
21
|
+
return new SeamHttpAcsEntrances(constructorOptions);
|
|
22
|
+
}
|
|
23
|
+
static fromApiKey(apiKey, options = {}) {
|
|
24
|
+
const constructorOptions = { ...options, apiKey };
|
|
25
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
26
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
27
|
+
}
|
|
28
|
+
return new SeamHttpAcsEntrances(constructorOptions);
|
|
29
|
+
}
|
|
30
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
31
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
32
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
33
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
34
|
+
}
|
|
35
|
+
return new SeamHttpAcsEntrances(constructorOptions);
|
|
36
|
+
}
|
|
37
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
38
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
39
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
40
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
41
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
|
|
42
|
+
}
|
|
43
|
+
const client = createClient(clientOptions);
|
|
44
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
45
|
+
const { token } = await clientSessions.getOrCreate({
|
|
46
|
+
user_identifier_key: userIdentifierKey,
|
|
47
|
+
});
|
|
48
|
+
return SeamHttpAcsEntrances.fromClientSessionToken(token, options);
|
|
49
|
+
}
|
|
50
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
51
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
52
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
53
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
54
|
+
}
|
|
55
|
+
return new SeamHttpAcsEntrances(constructorOptions);
|
|
56
|
+
}
|
|
57
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
58
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
59
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
60
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
61
|
+
}
|
|
62
|
+
return new SeamHttpAcsEntrances(constructorOptions);
|
|
63
|
+
}
|
|
64
|
+
async get(body) {
|
|
65
|
+
const { data } = await this.client.request({
|
|
66
|
+
url: '/acs/entrances/get',
|
|
67
|
+
method: 'post',
|
|
68
|
+
data: body,
|
|
69
|
+
});
|
|
70
|
+
return data.acs_entrance;
|
|
71
|
+
}
|
|
72
|
+
async list(body) {
|
|
73
|
+
const { data } = await this.client.request({
|
|
74
|
+
url: '/acs/entrances/list',
|
|
75
|
+
method: 'post',
|
|
76
|
+
data: body,
|
|
77
|
+
});
|
|
78
|
+
return data.acs_entrances;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=acs-entrances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acs-entrances.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-entrances.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,EAAE,+BAA+B,EAAE,MAAM,0BAA0B,CAAA;AAC1E,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACx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