@seamapi/http 0.17.0 → 0.18.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 +21 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +13 -1
- package/lib/seam/connect/routes/acs-users.js +7 -0
- package/lib/seam/connect/routes/acs-users.js.map +1 -1
- package/lib/seam/connect/routes/phones.js +7 -0
- package/lib/seam/connect/routes/phones.js.map +1 -1
- package/lib/seam/connect/routes/webhooks.js +7 -0
- package/lib/seam/connect/routes/webhooks.js.map +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/src/lib/seam/connect/routes/acs-users.ts +19 -0
- package/src/lib/seam/connect/routes/phones.ts +16 -0
- package/src/lib/seam/connect/routes/webhooks.ts +16 -0
- package/src/lib/version.ts +1 -1
- package/connect.d.ts +0 -2
- package/index.d.ts +0 -2
- package/lib/seam/connect/action-attempt-types.d.ts +0 -17
- package/lib/seam/connect/api-error-types.d.ts +0 -8
- package/lib/seam/connect/auth.d.ts +0 -10
- package/lib/seam/connect/client.d.ts +0 -10
- package/lib/seam/connect/error-interceptor.d.ts +0 -1
- package/lib/seam/connect/index.d.ts +0 -10
- package/lib/seam/connect/openapi.d.ts +0 -2
- package/lib/seam/connect/options.d.ts +0 -54
- package/lib/seam/connect/parse-options.d.ts +0 -17
- package/lib/seam/connect/resolve-action-attempt.d.ts +0 -21
- package/lib/seam/connect/routes/access-codes-unmanaged.d.ts +0 -36
- package/lib/seam/connect/routes/access-codes.d.ts +0 -50
- package/lib/seam/connect/routes/acs-access-groups.d.ts +0 -36
- package/lib/seam/connect/routes/acs-credential-pools.d.ts +0 -20
- package/lib/seam/connect/routes/acs-credential-provisioning-automations.d.ts +0 -20
- package/lib/seam/connect/routes/acs-credentials.d.ts +0 -44
- package/lib/seam/connect/routes/acs-entrances.d.ts +0 -32
- package/lib/seam/connect/routes/acs-systems.d.ts +0 -24
- package/lib/seam/connect/routes/acs-users.d.ts +0 -56
- package/lib/seam/connect/routes/acs.d.ts +0 -28
- package/lib/seam/connect/routes/action-attempts.d.ts +0 -24
- package/lib/seam/connect/routes/client-sessions.d.ts +0 -44
- package/lib/seam/connect/routes/connect-webviews.d.ts +0 -36
- package/lib/seam/connect/routes/connected-accounts.d.ts +0 -32
- package/lib/seam/connect/routes/devices-unmanaged.d.ts +0 -28
- package/lib/seam/connect/routes/devices.d.ts +0 -38
- package/lib/seam/connect/routes/events.d.ts +0 -24
- package/lib/seam/connect/routes/index.d.ts +0 -28
- package/lib/seam/connect/routes/locks.d.ts +0 -32
- package/lib/seam/connect/routes/networks.d.ts +0 -24
- package/lib/seam/connect/routes/noise-sensors-noise-thresholds.d.ts +0 -36
- package/lib/seam/connect/routes/noise-sensors.d.ts +0 -16
- package/lib/seam/connect/routes/phones.d.ts +0 -20
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +0 -36
- package/lib/seam/connect/routes/thermostats.d.ts +0 -50
- package/lib/seam/connect/routes/user-identities-enrollment-automations.d.ts +0 -28
- package/lib/seam/connect/routes/user-identities.d.ts +0 -62
- package/lib/seam/connect/routes/webhooks.d.ts +0 -32
- package/lib/seam/connect/routes/workspaces.d.ts +0 -32
- package/lib/seam/connect/seam-http-error.d.ts +0 -20
- package/lib/seam/connect/seam-http-multi-workspace.d.ts +0 -12
- package/lib/seam/connect/seam-http.d.ts +0 -31
- package/lib/seam/connect/token.d.ts +0 -13
- package/lib/version.d.ts +0 -2
package/dist/connect.d.cts
CHANGED
|
@@ -278,6 +278,7 @@ declare class SeamHttpAcsUsers {
|
|
|
278
278
|
list(body?: AcsUsersListParams): Promise<AcsUsersListResponse['acs_users']>;
|
|
279
279
|
listAccessibleEntrances(body?: AcsUsersListAccessibleEntrancesParams): Promise<AcsUsersListAccessibleEntrancesResponse['acs_entrances']>;
|
|
280
280
|
removeFromAccessGroup(body?: AcsUsersRemoveFromAccessGroupBody): Promise<void>;
|
|
281
|
+
revokeAccessToAllEntrances(body?: AcsUsersRevokeAccessToAllEntrancesBody): Promise<void>;
|
|
281
282
|
suspend(body?: AcsUsersSuspendBody): Promise<void>;
|
|
282
283
|
unsuspend(body?: AcsUsersUnsuspendBody): Promise<void>;
|
|
283
284
|
update(body?: AcsUsersUpdateBody): Promise<void>;
|
|
@@ -303,6 +304,9 @@ type AcsUsersListAccessibleEntrancesOptions = never;
|
|
|
303
304
|
type AcsUsersRemoveFromAccessGroupBody = RouteRequestBody<'/acs/users/remove_from_access_group'>;
|
|
304
305
|
type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable<Required<RouteResponse<'/acs/users/remove_from_access_group'>>>;
|
|
305
306
|
type AcsUsersRemoveFromAccessGroupOptions = never;
|
|
307
|
+
type AcsUsersRevokeAccessToAllEntrancesBody = RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'>;
|
|
308
|
+
type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable<Required<RouteResponse<'/acs/users/revoke_access_to_all_entrances'>>>;
|
|
309
|
+
type AcsUsersRevokeAccessToAllEntrancesOptions = never;
|
|
306
310
|
type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'>;
|
|
307
311
|
type AcsUsersSuspendResponse = SetNonNullable<Required<RouteResponse<'/acs/users/suspend'>>>;
|
|
308
312
|
type AcsUsersSuspendOptions = never;
|
|
@@ -645,8 +649,12 @@ declare class SeamHttpPhones {
|
|
|
645
649
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpPhones;
|
|
646
650
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpPhones;
|
|
647
651
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
652
|
+
deactivate(body?: PhonesDeactivateBody): Promise<void>;
|
|
648
653
|
list(body?: PhonesListParams): Promise<PhonesListResponse['phones']>;
|
|
649
654
|
}
|
|
655
|
+
type PhonesDeactivateBody = RouteRequestBody<'/phones/deactivate'>;
|
|
656
|
+
type PhonesDeactivateResponse = SetNonNullable<Required<RouteResponse<'/phones/deactivate'>>>;
|
|
657
|
+
type PhonesDeactivateOptions = never;
|
|
650
658
|
type PhonesListParams = RouteRequestBody<'/phones/list'>;
|
|
651
659
|
type PhonesListResponse = SetNonNullable<Required<RouteResponse<'/phones/list'>>>;
|
|
652
660
|
type PhonesListOptions = never;
|
|
@@ -828,6 +836,7 @@ declare class SeamHttpWebhooks {
|
|
|
828
836
|
delete(body?: WebhooksDeleteBody): Promise<void>;
|
|
829
837
|
get(body?: WebhooksGetParams): Promise<WebhooksGetResponse['webhook']>;
|
|
830
838
|
list(body?: WebhooksListParams): Promise<WebhooksListResponse['webhooks']>;
|
|
839
|
+
update(body?: WebhooksUpdateBody): Promise<void>;
|
|
831
840
|
}
|
|
832
841
|
type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'>;
|
|
833
842
|
type WebhooksCreateResponse = SetNonNullable<Required<RouteResponse<'/webhooks/create'>>>;
|
|
@@ -841,6 +850,9 @@ type WebhooksGetOptions = never;
|
|
|
841
850
|
type WebhooksListParams = RouteRequestBody<'/webhooks/list'>;
|
|
842
851
|
type WebhooksListResponse = SetNonNullable<Required<RouteResponse<'/webhooks/list'>>>;
|
|
843
852
|
type WebhooksListOptions = never;
|
|
853
|
+
type WebhooksUpdateBody = RouteRequestBody<'/webhooks/update'>;
|
|
854
|
+
type WebhooksUpdateResponse = SetNonNullable<Required<RouteResponse<'/webhooks/update'>>>;
|
|
855
|
+
type WebhooksUpdateOptions = never;
|
|
844
856
|
|
|
845
857
|
declare class SeamHttpWorkspaces {
|
|
846
858
|
client: Client;
|
|
@@ -1021,4 +1033,4 @@ declare const isPublishableKey: (token: string) => boolean;
|
|
|
1021
1033
|
declare const isConsoleSessionToken: (token: string) => boolean;
|
|
1022
1034
|
declare const isPersonalAccessToken: (token: string) => boolean;
|
|
1023
1035
|
|
|
1024
|
-
export { type AccessCodesCreateBody, type AccessCodesCreateMultipleBody, type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultipleResponse, type AccessCodesCreateOptions, type AccessCodesCreateResponse, type AccessCodesDeleteBody, type AccessCodesDeleteOptions, type AccessCodesDeleteResponse, type AccessCodesGenerateCodeBody, type AccessCodesGenerateCodeOptions, type AccessCodesGenerateCodeResponse, type AccessCodesGetOptions, type AccessCodesGetParams, type AccessCodesGetResponse, type AccessCodesListOptions, type AccessCodesListParams, type AccessCodesListResponse, type AccessCodesPullBackupAccessCodeBody, type AccessCodesPullBackupAccessCodeOptions, type AccessCodesPullBackupAccessCodeResponse, type AccessCodesUnmanagedConvertToManagedBody, type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedResponse, type AccessCodesUnmanagedDeleteBody, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteResponse, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParams, type AccessCodesUnmanagedGetResponse, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParams, type AccessCodesUnmanagedListResponse, type AccessCodesUnmanagedUpdateBody, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateResponse, type AccessCodesUpdateBody, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserBody, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserResponse, type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParams, type AcsCredentialPoolsListResponse, type AcsCredentialProvisioningAutomationsLaunchBody, type AcsCredentialProvisioningAutomationsLaunchOptions, type AcsCredentialProvisioningAutomationsLaunchResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type AcsCredentialsDeleteBody, type AcsCredentialsDeleteOptions, type AcsCredentialsDeleteResponse, type AcsCredentialsGetOptions, type AcsCredentialsGetParams, type AcsCredentialsGetResponse, type AcsCredentialsListOptions, type AcsCredentialsListParams, type AcsCredentialsListResponse, type AcsCredentialsUnassignBody, type AcsCredentialsUnassignOptions, type AcsCredentialsUnassignResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type AcsSystemsListOptions, type AcsSystemsListParams, type AcsSystemsListResponse, type AcsUsersAddToAccessGroupBody, type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupResponse, type AcsUsersCreateBody, type AcsUsersCreateOptions, type AcsUsersCreateResponse, type AcsUsersDeleteBody, type AcsUsersDeleteOptions, type AcsUsersDeleteResponse, type AcsUsersGetOptions, type AcsUsersGetParams, type AcsUsersGetResponse, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParams, type AcsUsersListAccessibleEntrancesResponse, type AcsUsersListOptions, type AcsUsersListParams, type AcsUsersListResponse, type AcsUsersRemoveFromAccessGroupBody, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupResponse, type AcsUsersSuspendBody, type AcsUsersSuspendOptions, type AcsUsersSuspendResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteBody, type ClientSessionsDeleteOptions, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeBody, type ClientSessionsRevokeOptions, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteBody, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectWebviewsViewOptions, type ConnectWebviewsViewParams, type ConnectWebviewsViewResponse, type ConnectedAccountsDeleteBody, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesDeleteBody, type DevicesDeleteOptions, type DevicesDeleteResponse, type DevicesGetOptions, type DevicesGetParams, type DevicesGetResponse, type DevicesListDeviceProvidersOptions, type DevicesListDeviceProvidersParams, type DevicesListDeviceProvidersResponse, type DevicesListOptions, type DevicesListParams, type DevicesListResponse, type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParams, type DevicesUnmanagedGetResponse, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParams, type DevicesUnmanagedListResponse, type DevicesUnmanagedUpdateBody, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateResponse, type DevicesUpdateBody, type DevicesUpdateOptions, type DevicesUpdateResponse, type EventsGetOptions, type EventsGetParams, type EventsGetResponse, type EventsListOptions, type EventsListParams, type EventsListResponse, type LocksGetOptions, type LocksGetParams, type LocksGetResponse, type LocksListOptions, type LocksListParams, type LocksListResponse, type LocksLockDoorBody, type LocksLockDoorOptions, type LocksLockDoorResponse, type LocksUnlockDoorBody, type LocksUnlockDoorOptions, type LocksUnlockDoorResponse, type NetworksGetOptions, type NetworksGetParams, type NetworksGetResponse, type NetworksListOptions, type NetworksListParams, type NetworksListResponse, type NoiseSensorsNoiseThresholdsCreateBody, type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateResponse, type NoiseSensorsNoiseThresholdsDeleteBody, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteResponse, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParams, type NoiseSensorsNoiseThresholdsGetResponse, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParams, type NoiseSensorsNoiseThresholdsListResponse, type NoiseSensorsNoiseThresholdsUpdateBody, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsWithClient, type SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, type SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNetworks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, type ThermostatsClimateSettingSchedulesCreateBody, type ThermostatsClimateSettingSchedulesCreateOptions, type ThermostatsClimateSettingSchedulesCreateResponse, type ThermostatsClimateSettingSchedulesDeleteBody, type ThermostatsClimateSettingSchedulesDeleteOptions, type ThermostatsClimateSettingSchedulesDeleteResponse, type ThermostatsClimateSettingSchedulesGetOptions, type ThermostatsClimateSettingSchedulesGetParams, type ThermostatsClimateSettingSchedulesGetResponse, type ThermostatsClimateSettingSchedulesListOptions, type ThermostatsClimateSettingSchedulesListParams, type ThermostatsClimateSettingSchedulesListResponse, type ThermostatsClimateSettingSchedulesUpdateBody, type ThermostatsClimateSettingSchedulesUpdateOptions, type ThermostatsClimateSettingSchedulesUpdateResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsUpdateBody, type ThermostatsUpdateOptions, type ThermostatsUpdateResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type UserIdentitiesDeleteBody, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteResponse, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParams, type UserIdentitiesEnrollmentAutomationsGetResponse, type UserIdentitiesEnrollmentAutomationsLaunchBody, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchResponse, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParams, type UserIdentitiesEnrollmentAutomationsListResponse, type UserIdentitiesGetOptions, type UserIdentitiesGetParams, type UserIdentitiesGetResponse, type UserIdentitiesGrantAccessToDeviceBody, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceResponse, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParams, type UserIdentitiesListAccessibleDevicesResponse, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParams, type UserIdentitiesListAcsSystemsResponse, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParams, type UserIdentitiesListAcsUsersResponse, type UserIdentitiesListOptions, type UserIdentitiesListParams, type UserIdentitiesListResponse, type UserIdentitiesRemoveAcsUserBody, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserResponse, type UserIdentitiesRevokeAccessToDeviceBody, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceResponse, type WebhooksCreateBody, type WebhooksCreateOptions, type WebhooksCreateResponse, type WebhooksDeleteBody, type WebhooksDeleteOptions, type WebhooksDeleteResponse, type WebhooksGetOptions, type WebhooksGetParams, type WebhooksGetResponse, type WebhooksListOptions, type WebhooksListParams, type WebhooksListResponse, type WorkspacesCreateBody, type WorkspacesCreateOptions, type WorkspacesCreateResponse, type WorkspacesGetOptions, type WorkspacesGetParams, type WorkspacesGetResponse, type WorkspacesListOptions, type WorkspacesListParams, type WorkspacesListResponse, type WorkspacesResetSandboxBody, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
|
|
1036
|
+
export { type AccessCodesCreateBody, type AccessCodesCreateMultipleBody, type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultipleResponse, type AccessCodesCreateOptions, type AccessCodesCreateResponse, type AccessCodesDeleteBody, type AccessCodesDeleteOptions, type AccessCodesDeleteResponse, type AccessCodesGenerateCodeBody, type AccessCodesGenerateCodeOptions, type AccessCodesGenerateCodeResponse, type AccessCodesGetOptions, type AccessCodesGetParams, type AccessCodesGetResponse, type AccessCodesListOptions, type AccessCodesListParams, type AccessCodesListResponse, type AccessCodesPullBackupAccessCodeBody, type AccessCodesPullBackupAccessCodeOptions, type AccessCodesPullBackupAccessCodeResponse, type AccessCodesUnmanagedConvertToManagedBody, type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedResponse, type AccessCodesUnmanagedDeleteBody, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteResponse, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParams, type AccessCodesUnmanagedGetResponse, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParams, type AccessCodesUnmanagedListResponse, type AccessCodesUnmanagedUpdateBody, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateResponse, type AccessCodesUpdateBody, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserBody, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserResponse, type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParams, type AcsCredentialPoolsListResponse, type AcsCredentialProvisioningAutomationsLaunchBody, type AcsCredentialProvisioningAutomationsLaunchOptions, type AcsCredentialProvisioningAutomationsLaunchResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type AcsCredentialsDeleteBody, type AcsCredentialsDeleteOptions, type AcsCredentialsDeleteResponse, type AcsCredentialsGetOptions, type AcsCredentialsGetParams, type AcsCredentialsGetResponse, type AcsCredentialsListOptions, type AcsCredentialsListParams, type AcsCredentialsListResponse, type AcsCredentialsUnassignBody, type AcsCredentialsUnassignOptions, type AcsCredentialsUnassignResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type AcsSystemsListOptions, type AcsSystemsListParams, type AcsSystemsListResponse, type AcsUsersAddToAccessGroupBody, type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupResponse, type AcsUsersCreateBody, type AcsUsersCreateOptions, type AcsUsersCreateResponse, type AcsUsersDeleteBody, type AcsUsersDeleteOptions, type AcsUsersDeleteResponse, type AcsUsersGetOptions, type AcsUsersGetParams, type AcsUsersGetResponse, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParams, type AcsUsersListAccessibleEntrancesResponse, type AcsUsersListOptions, type AcsUsersListParams, type AcsUsersListResponse, type AcsUsersRemoveFromAccessGroupBody, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupResponse, type AcsUsersRevokeAccessToAllEntrancesBody, type AcsUsersRevokeAccessToAllEntrancesOptions, type AcsUsersRevokeAccessToAllEntrancesResponse, type AcsUsersSuspendBody, type AcsUsersSuspendOptions, type AcsUsersSuspendResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteBody, type ClientSessionsDeleteOptions, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeBody, type ClientSessionsRevokeOptions, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteBody, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectWebviewsViewOptions, type ConnectWebviewsViewParams, type ConnectWebviewsViewResponse, type ConnectedAccountsDeleteBody, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesDeleteBody, type DevicesDeleteOptions, type DevicesDeleteResponse, type DevicesGetOptions, type DevicesGetParams, type DevicesGetResponse, type DevicesListDeviceProvidersOptions, type DevicesListDeviceProvidersParams, type DevicesListDeviceProvidersResponse, type DevicesListOptions, type DevicesListParams, type DevicesListResponse, type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParams, type DevicesUnmanagedGetResponse, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParams, type DevicesUnmanagedListResponse, type DevicesUnmanagedUpdateBody, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateResponse, type DevicesUpdateBody, type DevicesUpdateOptions, type DevicesUpdateResponse, type EventsGetOptions, type EventsGetParams, type EventsGetResponse, type EventsListOptions, type EventsListParams, type EventsListResponse, type LocksGetOptions, type LocksGetParams, type LocksGetResponse, type LocksListOptions, type LocksListParams, type LocksListResponse, type LocksLockDoorBody, type LocksLockDoorOptions, type LocksLockDoorResponse, type LocksUnlockDoorBody, type LocksUnlockDoorOptions, type LocksUnlockDoorResponse, type NetworksGetOptions, type NetworksGetParams, type NetworksGetResponse, type NetworksListOptions, type NetworksListParams, type NetworksListResponse, type NoiseSensorsNoiseThresholdsCreateBody, type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateResponse, type NoiseSensorsNoiseThresholdsDeleteBody, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteResponse, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParams, type NoiseSensorsNoiseThresholdsGetResponse, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParams, type NoiseSensorsNoiseThresholdsListResponse, type NoiseSensorsNoiseThresholdsUpdateBody, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateResponse, type PhonesDeactivateBody, type PhonesDeactivateOptions, type PhonesDeactivateResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsWithClient, type SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, type SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNetworks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, type ThermostatsClimateSettingSchedulesCreateBody, type ThermostatsClimateSettingSchedulesCreateOptions, type ThermostatsClimateSettingSchedulesCreateResponse, type ThermostatsClimateSettingSchedulesDeleteBody, type ThermostatsClimateSettingSchedulesDeleteOptions, type ThermostatsClimateSettingSchedulesDeleteResponse, type ThermostatsClimateSettingSchedulesGetOptions, type ThermostatsClimateSettingSchedulesGetParams, type ThermostatsClimateSettingSchedulesGetResponse, type ThermostatsClimateSettingSchedulesListOptions, type ThermostatsClimateSettingSchedulesListParams, type ThermostatsClimateSettingSchedulesListResponse, type ThermostatsClimateSettingSchedulesUpdateBody, type ThermostatsClimateSettingSchedulesUpdateOptions, type ThermostatsClimateSettingSchedulesUpdateResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsUpdateBody, type ThermostatsUpdateOptions, type ThermostatsUpdateResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type UserIdentitiesDeleteBody, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteResponse, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParams, type UserIdentitiesEnrollmentAutomationsGetResponse, type UserIdentitiesEnrollmentAutomationsLaunchBody, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchResponse, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParams, type UserIdentitiesEnrollmentAutomationsListResponse, type UserIdentitiesGetOptions, type UserIdentitiesGetParams, type UserIdentitiesGetResponse, type UserIdentitiesGrantAccessToDeviceBody, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceResponse, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParams, type UserIdentitiesListAccessibleDevicesResponse, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParams, type UserIdentitiesListAcsSystemsResponse, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParams, type UserIdentitiesListAcsUsersResponse, type UserIdentitiesListOptions, type UserIdentitiesListParams, type UserIdentitiesListResponse, type UserIdentitiesRemoveAcsUserBody, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserResponse, type UserIdentitiesRevokeAccessToDeviceBody, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceResponse, type WebhooksCreateBody, type WebhooksCreateOptions, type WebhooksCreateResponse, type WebhooksDeleteBody, type WebhooksDeleteOptions, type WebhooksDeleteResponse, type WebhooksGetOptions, type WebhooksGetParams, type WebhooksGetResponse, type WebhooksListOptions, type WebhooksListParams, type WebhooksListResponse, type WebhooksUpdateBody, type WebhooksUpdateOptions, type WebhooksUpdateResponse, type WorkspacesCreateBody, type WorkspacesCreateOptions, type WorkspacesCreateResponse, type WorkspacesGetOptions, type WorkspacesGetParams, type WorkspacesGetResponse, type WorkspacesListOptions, type WorkspacesListParams, type WorkspacesListResponse, type WorkspacesResetSandboxBody, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
|
|
@@ -128,6 +128,13 @@ export class SeamHttpAcsUsers {
|
|
|
128
128
|
data: body,
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
|
+
async revokeAccessToAllEntrances(body) {
|
|
132
|
+
await this.client.request({
|
|
133
|
+
url: '/acs/users/revoke_access_to_all_entrances',
|
|
134
|
+
method: 'post',
|
|
135
|
+
data: body,
|
|
136
|
+
});
|
|
137
|
+
}
|
|
131
138
|
async suspend(body) {
|
|
132
139
|
await this.client.request({
|
|
133
140
|
url: '/acs/users/suspend',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-users.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-users.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,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;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,gBAAgB;IAI3B,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,C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,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,IAAyB;QACpC,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyB;YAChD,GAAG,EAAE,mBAAmB;YACxB,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -75,6 +75,13 @@ export class SeamHttpPhones {
|
|
|
75
75
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
76
76
|
await clientSessions.get();
|
|
77
77
|
}
|
|
78
|
+
async deactivate(body) {
|
|
79
|
+
await this.client.request({
|
|
80
|
+
url: '/phones/deactivate',
|
|
81
|
+
method: 'post',
|
|
82
|
+
data: body,
|
|
83
|
+
});
|
|
84
|
+
}
|
|
78
85
|
async list(body) {
|
|
79
86
|
const { data } = await this.client.request({
|
|
80
87
|
url: '/phones/list',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"phones.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/phones.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,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;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,cAAc;IAIzB,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CA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AC,CAAA;QAEF,OAAO,IAAI,CAAC,MAAM,CAAA;IACpB,CAAC;CACF"}
|
|
@@ -106,5 +106,12 @@ export class SeamHttpWebhooks {
|
|
|
106
106
|
});
|
|
107
107
|
return data.webhooks;
|
|
108
108
|
}
|
|
109
|
+
async update(body) {
|
|
110
|
+
await this.client.request({
|
|
111
|
+
url: '/webhooks/update',
|
|
112
|
+
method: 'post',
|
|
113
|
+
data: body,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
109
116
|
}
|
|
110
117
|
//# sourceMappingURL=webhooks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/webhooks.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,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;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,gBAAgB;IAI3B,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,k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,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"build:entrypoints": "npm run build:ts",
|
|
60
60
|
"postbuild:entrypoints": "tsup",
|
|
61
61
|
"build:ts": "tsc --project tsconfig.build.json",
|
|
62
|
-
"prebuild:ts": "del 'index.*' 'connect.*'
|
|
62
|
+
"prebuild:ts": "del 'index.*' 'connect.*' lib",
|
|
63
63
|
"postbuild:ts": "tsc-alias --project tsconfig.build.json",
|
|
64
64
|
"typecheck": "tsc",
|
|
65
65
|
"docs:build": "typedoc",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"npm": ">= 9.0.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@seamapi/types": "^1.
|
|
87
|
+
"@seamapi/types": "^1.111.0",
|
|
88
88
|
"type-fest": "^4.0.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
105
|
"@seamapi/fake-seam-connect": "^1.44.2",
|
|
106
|
-
"@seamapi/types": "^1.
|
|
106
|
+
"@seamapi/types": "^1.111.0",
|
|
107
107
|
"@types/eslint": "^8.44.2",
|
|
108
108
|
"@types/node": "^20.8.10",
|
|
109
109
|
"ava": "^5.0.1",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"eslint-config-prettier": "^9.0.0",
|
|
116
116
|
"eslint-config-standard": "^17.1.0",
|
|
117
117
|
"eslint-config-standard-with-typescript": "^43.0.0",
|
|
118
|
-
"eslint-plugin-simple-import-sort": "^
|
|
118
|
+
"eslint-plugin-simple-import-sort": "^12.0.0",
|
|
119
119
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
120
120
|
"execa": "^8.0.1",
|
|
121
121
|
"landlubber": "^1.0.0",
|
|
@@ -228,6 +228,16 @@ export class SeamHttpAcsUsers {
|
|
|
228
228
|
})
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
+
async revokeAccessToAllEntrances(
|
|
232
|
+
body?: AcsUsersRevokeAccessToAllEntrancesBody,
|
|
233
|
+
): Promise<void> {
|
|
234
|
+
await this.client.request<AcsUsersRevokeAccessToAllEntrancesResponse>({
|
|
235
|
+
url: '/acs/users/revoke_access_to_all_entrances',
|
|
236
|
+
method: 'post',
|
|
237
|
+
data: body,
|
|
238
|
+
})
|
|
239
|
+
}
|
|
240
|
+
|
|
231
241
|
async suspend(body?: AcsUsersSuspendBody): Promise<void> {
|
|
232
242
|
await this.client.request<AcsUsersSuspendResponse>({
|
|
233
243
|
url: '/acs/users/suspend',
|
|
@@ -312,6 +322,15 @@ export type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable<
|
|
|
312
322
|
|
|
313
323
|
export type AcsUsersRemoveFromAccessGroupOptions = never
|
|
314
324
|
|
|
325
|
+
export type AcsUsersRevokeAccessToAllEntrancesBody =
|
|
326
|
+
RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'>
|
|
327
|
+
|
|
328
|
+
export type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable<
|
|
329
|
+
Required<RouteResponse<'/acs/users/revoke_access_to_all_entrances'>>
|
|
330
|
+
>
|
|
331
|
+
|
|
332
|
+
export type AcsUsersRevokeAccessToAllEntrancesOptions = never
|
|
333
|
+
|
|
315
334
|
export type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'>
|
|
316
335
|
|
|
317
336
|
export type AcsUsersSuspendResponse = SetNonNullable<
|
|
@@ -153,6 +153,14 @@ export class SeamHttpPhones {
|
|
|
153
153
|
await clientSessions.get()
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
async deactivate(body?: PhonesDeactivateBody): Promise<void> {
|
|
157
|
+
await this.client.request<PhonesDeactivateResponse>({
|
|
158
|
+
url: '/phones/deactivate',
|
|
159
|
+
method: 'post',
|
|
160
|
+
data: body,
|
|
161
|
+
})
|
|
162
|
+
}
|
|
163
|
+
|
|
156
164
|
async list(body?: PhonesListParams): Promise<PhonesListResponse['phones']> {
|
|
157
165
|
const { data } = await this.client.request<PhonesListResponse>({
|
|
158
166
|
url: '/phones/list',
|
|
@@ -164,6 +172,14 @@ export class SeamHttpPhones {
|
|
|
164
172
|
}
|
|
165
173
|
}
|
|
166
174
|
|
|
175
|
+
export type PhonesDeactivateBody = RouteRequestBody<'/phones/deactivate'>
|
|
176
|
+
|
|
177
|
+
export type PhonesDeactivateResponse = SetNonNullable<
|
|
178
|
+
Required<RouteResponse<'/phones/deactivate'>>
|
|
179
|
+
>
|
|
180
|
+
|
|
181
|
+
export type PhonesDeactivateOptions = never
|
|
182
|
+
|
|
167
183
|
export type PhonesListParams = RouteRequestBody<'/phones/list'>
|
|
168
184
|
|
|
169
185
|
export type PhonesListResponse = SetNonNullable<
|
|
@@ -194,6 +194,14 @@ export class SeamHttpWebhooks {
|
|
|
194
194
|
|
|
195
195
|
return data.webhooks
|
|
196
196
|
}
|
|
197
|
+
|
|
198
|
+
async update(body?: WebhooksUpdateBody): Promise<void> {
|
|
199
|
+
await this.client.request<WebhooksUpdateResponse>({
|
|
200
|
+
url: '/webhooks/update',
|
|
201
|
+
method: 'post',
|
|
202
|
+
data: body,
|
|
203
|
+
})
|
|
204
|
+
}
|
|
197
205
|
}
|
|
198
206
|
|
|
199
207
|
export type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'>
|
|
@@ -227,3 +235,11 @@ export type WebhooksListResponse = SetNonNullable<
|
|
|
227
235
|
>
|
|
228
236
|
|
|
229
237
|
export type WebhooksListOptions = never
|
|
238
|
+
|
|
239
|
+
export type WebhooksUpdateBody = RouteRequestBody<'/webhooks/update'>
|
|
240
|
+
|
|
241
|
+
export type WebhooksUpdateResponse = SetNonNullable<
|
|
242
|
+
Required<RouteResponse<'/webhooks/update'>>
|
|
243
|
+
>
|
|
244
|
+
|
|
245
|
+
export type WebhooksUpdateOptions = never
|
package/src/lib/version.ts
CHANGED
package/connect.d.ts
DELETED
package/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface ActionAttempt {
|
|
2
|
-
action_attempt_id: string;
|
|
3
|
-
status: 'pending' | 'error' | 'success';
|
|
4
|
-
}
|
|
5
|
-
export type SuccessfulActionAttempt<T extends ActionAttempt> = T & {
|
|
6
|
-
status: 'success';
|
|
7
|
-
};
|
|
8
|
-
export type PendingActionAttempt<T extends ActionAttempt> = T & {
|
|
9
|
-
status: 'pending';
|
|
10
|
-
};
|
|
11
|
-
export type FailedActionAttempt<T extends ActionAttempt> = T & {
|
|
12
|
-
status: 'error';
|
|
13
|
-
error: {
|
|
14
|
-
type: string;
|
|
15
|
-
message: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type SeamHttpOptionsWithClientSessionToken } from './options.js';
|
|
2
|
-
import type { Options } from './parse-options.js';
|
|
3
|
-
type Headers = Record<string, string>;
|
|
4
|
-
export declare const getAuthHeaders: (options: Options) => Headers;
|
|
5
|
-
export declare const getAuthHeadersForClientSessionToken: ({ clientSessionToken, }: SeamHttpOptionsWithClientSessionToken) => Headers;
|
|
6
|
-
export declare class SeamHttpInvalidTokenError extends Error {
|
|
7
|
-
constructor(message: string);
|
|
8
|
-
}
|
|
9
|
-
export declare const warnOnInsecureuserIdentifierKey: (userIdentifierKey: string) => void;
|
|
10
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type AxiosInstance, type AxiosRequestConfig } from 'axios';
|
|
2
|
-
import { type AxiosRetry } from 'axios-retry';
|
|
3
|
-
export type Client = AxiosInstance;
|
|
4
|
-
export interface ClientOptions {
|
|
5
|
-
axiosOptions?: AxiosRequestConfig;
|
|
6
|
-
axiosRetryOptions?: AxiosRetryConfig;
|
|
7
|
-
}
|
|
8
|
-
type AxiosRetryConfig = Parameters<AxiosRetry>[1];
|
|
9
|
-
export declare const createClient: (options: ClientOptions) => AxiosInstance;
|
|
10
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const errorInterceptor: (err: unknown) => Promise<void>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { SeamHttpInvalidTokenError } from './auth.js';
|
|
2
|
-
export * from './error-interceptor.js';
|
|
3
|
-
export * from './openapi.js';
|
|
4
|
-
export * from './options.js';
|
|
5
|
-
export { isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, } from './resolve-action-attempt.js';
|
|
6
|
-
export * from './routes/index.js';
|
|
7
|
-
export * from './seam-http.js';
|
|
8
|
-
export * from './seam-http-error.js';
|
|
9
|
-
export * from './seam-http-multi-workspace.js';
|
|
10
|
-
export { isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, } from './token.js';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import type { Client, ClientOptions } from './client.js';
|
|
2
|
-
import type { ResolveActionAttemptOptions } from './resolve-action-attempt.js';
|
|
3
|
-
export type SeamHttpMultiWorkspaceOptions = SeamHttpMultiWorkspaceOptionsWithClient | SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken | SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
|
|
4
|
-
export type SeamHttpOptions = SeamHttpOptionsFromEnv | SeamHttpOptionsWithClient | SeamHttpOptionsWithApiKey | SeamHttpOptionsWithClientSessionToken | SeamHttpOptionsWithConsoleSessionToken | SeamHttpOptionsWithPersonalAccessToken;
|
|
5
|
-
interface SeamHttpCommonOptions extends ClientOptions, SeamHttpRequestOptions {
|
|
6
|
-
endpoint?: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SeamHttpRequestOptions {
|
|
9
|
-
waitForActionAttempt?: boolean | ResolveActionAttemptOptions;
|
|
10
|
-
}
|
|
11
|
-
export interface SeamHttpFromPublishableKeyOptions extends SeamHttpCommonOptions {
|
|
12
|
-
}
|
|
13
|
-
export interface SeamHttpOptionsFromEnv extends SeamHttpCommonOptions {
|
|
14
|
-
}
|
|
15
|
-
export interface SeamHttpMultiWorkspaceOptionsWithClient extends SeamHttpRequestOptions {
|
|
16
|
-
client: Client;
|
|
17
|
-
}
|
|
18
|
-
export declare const isSeamHttpMultiWorkspaceOptionsWithClient: (options: SeamHttpOptions) => options is SeamHttpMultiWorkspaceOptionsWithClient;
|
|
19
|
-
export interface SeamHttpOptionsWithClient extends SeamHttpRequestOptions {
|
|
20
|
-
client: Client;
|
|
21
|
-
}
|
|
22
|
-
export declare const isSeamHttpOptionsWithClient: (options: SeamHttpOptions) => options is SeamHttpOptionsWithClient;
|
|
23
|
-
export interface SeamHttpOptionsWithApiKey extends SeamHttpCommonOptions {
|
|
24
|
-
apiKey: string;
|
|
25
|
-
}
|
|
26
|
-
export declare const isSeamHttpOptionsWithApiKey: (options: SeamHttpOptions) => options is SeamHttpOptionsWithApiKey;
|
|
27
|
-
export interface SeamHttpOptionsWithClientSessionToken extends SeamHttpCommonOptions {
|
|
28
|
-
clientSessionToken: string;
|
|
29
|
-
}
|
|
30
|
-
export declare const isSeamHttpOptionsWithClientSessionToken: (options: SeamHttpOptions) => options is SeamHttpOptionsWithClientSessionToken;
|
|
31
|
-
export interface SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken extends SeamHttpCommonOptions {
|
|
32
|
-
consoleSessionToken: string;
|
|
33
|
-
}
|
|
34
|
-
export declare const isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken: (options: SeamHttpOptions) => options is SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken;
|
|
35
|
-
export interface SeamHttpOptionsWithConsoleSessionToken extends SeamHttpCommonOptions {
|
|
36
|
-
consoleSessionToken: string;
|
|
37
|
-
workspaceId: string;
|
|
38
|
-
}
|
|
39
|
-
export declare const isSeamHttpOptionsWithConsoleSessionToken: (options: SeamHttpOptions) => options is SeamHttpOptionsWithConsoleSessionToken;
|
|
40
|
-
export interface SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken extends SeamHttpCommonOptions {
|
|
41
|
-
personalAccessToken: string;
|
|
42
|
-
}
|
|
43
|
-
export declare const isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken: (options: SeamHttpOptions) => options is SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken;
|
|
44
|
-
export interface SeamHttpOptionsWithPersonalAccessToken extends SeamHttpCommonOptions {
|
|
45
|
-
personalAccessToken: string;
|
|
46
|
-
workspaceId: string;
|
|
47
|
-
}
|
|
48
|
-
export declare const isSeamHttpOptionsWithPersonalAccessToken: (options: SeamHttpOptions) => options is SeamHttpOptionsWithPersonalAccessToken;
|
|
49
|
-
export declare class SeamHttpInvalidOptionsError extends Error {
|
|
50
|
-
constructor(message: string);
|
|
51
|
-
}
|
|
52
|
-
export declare class SeamHttpMultiWorkspaceInvalidOptionsError extends SeamHttpInvalidOptionsError {
|
|
53
|
-
}
|
|
54
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Client, ClientOptions } from './client.js';
|
|
2
|
-
import { type SeamHttpMultiWorkspaceOptions, type SeamHttpOptions, type SeamHttpRequestOptions } from './options.js';
|
|
3
|
-
export declare const defaultEndpoint = "https://connect.getseam.com";
|
|
4
|
-
export declare const sdkHeaders: {
|
|
5
|
-
'seam-sdk-name': string;
|
|
6
|
-
'seam-sdk-version': null;
|
|
7
|
-
};
|
|
8
|
-
export type Options = SeamHttpMultiWorkspaceOptions | (SeamHttpOptions & {
|
|
9
|
-
publishableKey?: string;
|
|
10
|
-
});
|
|
11
|
-
type ParsedOptions = Required<(ClientOptions | {
|
|
12
|
-
client: Client;
|
|
13
|
-
}) & SeamHttpRequestOptions>;
|
|
14
|
-
export declare const parseOptions: (apiKeyOrOptions: string | Options) => ParsedOptions;
|
|
15
|
-
export declare const limitToSeamHttpRequestOptions: (options: Required<SeamHttpRequestOptions>) => Required<SeamHttpRequestOptions>;
|
|
16
|
-
export declare const isSeamHttpRequestOption: (key: string) => key is "waitForActionAttempt";
|
|
17
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ActionAttempt, FailedActionAttempt, SuccessfulActionAttempt } from './action-attempt-types.js';
|
|
2
|
-
import type { SeamHttpActionAttempts } from './routes/index.js';
|
|
3
|
-
export interface ResolveActionAttemptOptions {
|
|
4
|
-
timeout?: number;
|
|
5
|
-
pollingInterval?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare const resolveActionAttempt: <T extends ActionAttempt>(actionAttempt: T, actionAttempts: SeamHttpActionAttempts, { timeout, pollingInterval }: ResolveActionAttemptOptions) => Promise<SuccessfulActionAttempt<T>>;
|
|
8
|
-
export declare const isSeamActionAttemptError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptError<T>;
|
|
9
|
-
export declare class SeamActionAttemptError<T extends ActionAttempt> extends Error {
|
|
10
|
-
actionAttempt: T;
|
|
11
|
-
constructor(message: string, actionAttempt: T);
|
|
12
|
-
}
|
|
13
|
-
export declare const isSeamActionAttemptFailedError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptFailedError<T>;
|
|
14
|
-
export declare class SeamActionAttemptFailedError<T extends ActionAttempt> extends SeamActionAttemptError<T> {
|
|
15
|
-
code: string;
|
|
16
|
-
constructor(actionAttempt: FailedActionAttempt<T>);
|
|
17
|
-
}
|
|
18
|
-
export declare const isSeamActionAttemptTimeoutError: <T extends ActionAttempt>(error: unknown) => error is SeamActionAttemptTimeoutError<T>;
|
|
19
|
-
export declare class SeamActionAttemptTimeoutError<T extends ActionAttempt> extends SeamActionAttemptError<T> {
|
|
20
|
-
constructor(actionAttempt: T, timeout: number);
|
|
21
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 SeamHttpAccessCodesUnmanaged {
|
|
6
|
-
client: Client;
|
|
7
|
-
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
8
|
-
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
9
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAccessCodesUnmanaged;
|
|
10
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAccessCodesUnmanaged;
|
|
11
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAccessCodesUnmanaged;
|
|
12
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAccessCodesUnmanaged>;
|
|
13
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAccessCodesUnmanaged;
|
|
14
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAccessCodesUnmanaged;
|
|
15
|
-
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
16
|
-
convertToManaged(body?: AccessCodesUnmanagedConvertToManagedBody): Promise<void>;
|
|
17
|
-
delete(body?: AccessCodesUnmanagedDeleteBody): Promise<void>;
|
|
18
|
-
get(body?: AccessCodesUnmanagedGetParams): Promise<AccessCodesUnmanagedGetResponse['access_code']>;
|
|
19
|
-
list(body?: AccessCodesUnmanagedListParams): Promise<AccessCodesUnmanagedListResponse['access_codes']>;
|
|
20
|
-
update(body?: AccessCodesUnmanagedUpdateBody): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
export type AccessCodesUnmanagedConvertToManagedBody = RouteRequestBody<'/access_codes/unmanaged/convert_to_managed'>;
|
|
23
|
-
export type AccessCodesUnmanagedConvertToManagedResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/convert_to_managed'>>>;
|
|
24
|
-
export type AccessCodesUnmanagedConvertToManagedOptions = never;
|
|
25
|
-
export type AccessCodesUnmanagedDeleteBody = RouteRequestBody<'/access_codes/unmanaged/delete'>;
|
|
26
|
-
export type AccessCodesUnmanagedDeleteResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/delete'>>>;
|
|
27
|
-
export type AccessCodesUnmanagedDeleteOptions = never;
|
|
28
|
-
export type AccessCodesUnmanagedGetParams = RouteRequestBody<'/access_codes/unmanaged/get'>;
|
|
29
|
-
export type AccessCodesUnmanagedGetResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/get'>>>;
|
|
30
|
-
export type AccessCodesUnmanagedGetOptions = never;
|
|
31
|
-
export type AccessCodesUnmanagedListParams = RouteRequestBody<'/access_codes/unmanaged/list'>;
|
|
32
|
-
export type AccessCodesUnmanagedListResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/list'>>>;
|
|
33
|
-
export type AccessCodesUnmanagedListOptions = never;
|
|
34
|
-
export type AccessCodesUnmanagedUpdateBody = RouteRequestBody<'/access_codes/unmanaged/update'>;
|
|
35
|
-
export type AccessCodesUnmanagedUpdateResponse = SetNonNullable<Required<RouteResponse<'/access_codes/unmanaged/update'>>>;
|
|
36
|
-
export type AccessCodesUnmanagedUpdateOptions = never;
|