@seamapi/http 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/dist/connect.cjs +28 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +15 -3
- 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/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/package.json +12 -12
- package/src/lib/seam/connect/routes/acs-credentials.ts +33 -4
- 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
|
@@ -141,12 +141,13 @@ declare class SeamHttpAcsCredentials {
|
|
|
141
141
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsCredentials>;
|
|
142
142
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
143
143
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsCredentials;
|
|
144
|
-
assign(body?: AcsCredentialsAssignBody): Promise<
|
|
144
|
+
assign(body?: AcsCredentialsAssignBody): Promise<AcsCredentialsAssignResponse['acs_credential']>;
|
|
145
145
|
create(body?: AcsCredentialsCreateBody): Promise<AcsCredentialsCreateResponse['acs_credential']>;
|
|
146
146
|
delete(body?: AcsCredentialsDeleteBody): Promise<void>;
|
|
147
147
|
get(body?: AcsCredentialsGetParams): Promise<AcsCredentialsGetResponse['acs_credential']>;
|
|
148
148
|
list(body?: AcsCredentialsListParams): Promise<AcsCredentialsListResponse['acs_credentials']>;
|
|
149
|
-
unassign(body?: AcsCredentialsUnassignBody): Promise<
|
|
149
|
+
unassign(body?: AcsCredentialsUnassignBody): Promise<AcsCredentialsUnassignResponse['acs_credential']>;
|
|
150
|
+
update(body?: AcsCredentialsUpdateBody): Promise<AcsCredentialsUpdateResponse['acs_credential']>;
|
|
150
151
|
}
|
|
151
152
|
type AcsCredentialsAssignBody = RouteRequestBody<'/acs/credentials/assign'>;
|
|
152
153
|
type AcsCredentialsAssignResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/assign'>>>;
|
|
@@ -166,6 +167,9 @@ type AcsCredentialsListOptions = never;
|
|
|
166
167
|
type AcsCredentialsUnassignBody = RouteRequestBody<'/acs/credentials/unassign'>;
|
|
167
168
|
type AcsCredentialsUnassignResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/unassign'>>>;
|
|
168
169
|
type AcsCredentialsUnassignOptions = never;
|
|
170
|
+
type AcsCredentialsUpdateBody = RouteRequestBody<'/acs/credentials/update'>;
|
|
171
|
+
type AcsCredentialsUpdateResponse = SetNonNullable<Required<RouteResponse<'/acs/credentials/update'>>>;
|
|
172
|
+
type AcsCredentialsUpdateOptions = never;
|
|
169
173
|
|
|
170
174
|
declare class SeamHttpAcsSystems {
|
|
171
175
|
client: Client;
|
|
@@ -608,6 +612,7 @@ declare class SeamHttpUserIdentities {
|
|
|
608
612
|
create(body?: UserIdentitiesCreateBody): Promise<UserIdentitiesCreateResponse['user_identity']>;
|
|
609
613
|
get(body?: UserIdentitiesGetParams): Promise<UserIdentitiesGetResponse['user_identity']>;
|
|
610
614
|
grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): Promise<void>;
|
|
615
|
+
list(params?: UserIdentitiesListParams): Promise<UserIdentitiesListResponse['user_identities']>;
|
|
611
616
|
listAccessibleDevices(body?: UserIdentitiesListAccessibleDevicesParams): Promise<UserIdentitiesListAccessibleDevicesResponse['accessible_devices']>;
|
|
612
617
|
listAcsUsers(body?: UserIdentitiesListAcsUsersParams): Promise<UserIdentitiesListAcsUsersResponse['acs_users']>;
|
|
613
618
|
removeAcsUser(body?: UserIdentitiesRemoveAcsUserBody): Promise<void>;
|
|
@@ -625,6 +630,9 @@ type UserIdentitiesGetOptions = never;
|
|
|
625
630
|
type UserIdentitiesGrantAccessToDeviceBody = RouteRequestBody<'/user_identities/grant_access_to_device'>;
|
|
626
631
|
type UserIdentitiesGrantAccessToDeviceResponse = SetNonNullable<Required<RouteResponse<'/user_identities/grant_access_to_device'>>>;
|
|
627
632
|
type UserIdentitiesGrantAccessToDeviceOptions = never;
|
|
633
|
+
type UserIdentitiesListParams = RouteRequestParams<'/user_identities/list'>;
|
|
634
|
+
type UserIdentitiesListResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list'>>>;
|
|
635
|
+
type UserIdentitiesListOptions = never;
|
|
628
636
|
type UserIdentitiesListAccessibleDevicesParams = RouteRequestBody<'/user_identities/list_accessible_devices'>;
|
|
629
637
|
type UserIdentitiesListAccessibleDevicesResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list_accessible_devices'>>>;
|
|
630
638
|
type UserIdentitiesListAccessibleDevicesOptions = never;
|
|
@@ -676,10 +684,14 @@ declare class SeamHttpWorkspaces {
|
|
|
676
684
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWorkspaces>;
|
|
677
685
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpWorkspaces;
|
|
678
686
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpWorkspaces;
|
|
687
|
+
create(body?: WorkspacesCreateBody): Promise<WorkspacesCreateResponse['workspace']>;
|
|
679
688
|
get(params?: WorkspacesGetParams): Promise<WorkspacesGetResponse['workspace']>;
|
|
680
689
|
list(params?: WorkspacesListParams): Promise<WorkspacesListResponse['workspaces']>;
|
|
681
690
|
resetSandbox(body?: WorkspacesResetSandboxBody): Promise<void>;
|
|
682
691
|
}
|
|
692
|
+
type WorkspacesCreateBody = RouteRequestBody<'/workspaces/create'>;
|
|
693
|
+
type WorkspacesCreateResponse = SetNonNullable<Required<RouteResponse<'/workspaces/create'>>>;
|
|
694
|
+
type WorkspacesCreateOptions = never;
|
|
683
695
|
type WorkspacesGetParams = RouteRequestParams<'/workspaces/get'>;
|
|
684
696
|
type WorkspacesGetResponse = SetNonNullable<Required<RouteResponse<'/workspaces/get'>>>;
|
|
685
697
|
type WorkspacesGetOptions = never;
|
|
@@ -834,4 +846,4 @@ declare class UnserializableParamError extends Error {
|
|
|
834
846
|
constructor(name: string, message: string);
|
|
835
847
|
}
|
|
836
848
|
|
|
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 };
|
|
849
|
+
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, AcsCredentialsUpdateBody, AcsCredentialsUpdateOptions, AcsCredentialsUpdateResponse, 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, 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 };
|
|
@@ -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
|
-
{"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E,IAAI;SACX,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,cAAc,CAAA;IAC5B,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAA+B;QAE/B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAA+B;YACvE,GAAG,EAAE,yBAAyB;YAC9B,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,cAAc,CAAA;IAC5B,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
1
|
+
import type { RouteRequestBody, RouteRequestParams, RouteResponse } from '@seamapi/types/connect';
|
|
2
2
|
import type { SetNonNullable } from 'type-fest';
|
|
3
3
|
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
4
4
|
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
@@ -16,6 +16,7 @@ export declare class SeamHttpUserIdentities {
|
|
|
16
16
|
create(body?: UserIdentitiesCreateBody): Promise<UserIdentitiesCreateResponse['user_identity']>;
|
|
17
17
|
get(body?: UserIdentitiesGetParams): Promise<UserIdentitiesGetResponse['user_identity']>;
|
|
18
18
|
grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): Promise<void>;
|
|
19
|
+
list(params?: UserIdentitiesListParams): Promise<UserIdentitiesListResponse['user_identities']>;
|
|
19
20
|
listAccessibleDevices(body?: UserIdentitiesListAccessibleDevicesParams): Promise<UserIdentitiesListAccessibleDevicesResponse['accessible_devices']>;
|
|
20
21
|
listAcsUsers(body?: UserIdentitiesListAcsUsersParams): Promise<UserIdentitiesListAcsUsersResponse['acs_users']>;
|
|
21
22
|
removeAcsUser(body?: UserIdentitiesRemoveAcsUserBody): Promise<void>;
|
|
@@ -33,6 +34,9 @@ export type UserIdentitiesGetOptions = never;
|
|
|
33
34
|
export type UserIdentitiesGrantAccessToDeviceBody = RouteRequestBody<'/user_identities/grant_access_to_device'>;
|
|
34
35
|
export type UserIdentitiesGrantAccessToDeviceResponse = SetNonNullable<Required<RouteResponse<'/user_identities/grant_access_to_device'>>>;
|
|
35
36
|
export type UserIdentitiesGrantAccessToDeviceOptions = never;
|
|
37
|
+
export type UserIdentitiesListParams = RouteRequestParams<'/user_identities/list'>;
|
|
38
|
+
export type UserIdentitiesListResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list'>>>;
|
|
39
|
+
export type UserIdentitiesListOptions = never;
|
|
36
40
|
export type UserIdentitiesListAccessibleDevicesParams = RouteRequestBody<'/user_identities/list_accessible_devices'>;
|
|
37
41
|
export type UserIdentitiesListAccessibleDevicesResponse = SetNonNullable<Required<RouteResponse<'/user_identities/list_accessible_devices'>>>;
|
|
38
42
|
export type UserIdentitiesListAccessibleDevicesOptions = never;
|
|
@@ -91,6 +91,14 @@ export class SeamHttpUserIdentities {
|
|
|
91
91
|
data: body,
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
+
async list(params) {
|
|
95
|
+
const { data } = await this.client.request({
|
|
96
|
+
url: '/user_identities/list',
|
|
97
|
+
method: 'get',
|
|
98
|
+
params,
|
|
99
|
+
});
|
|
100
|
+
return data.user_identities;
|
|
101
|
+
}
|
|
94
102
|
async listAccessibleDevices(body) {
|
|
95
103
|
const { data } = await this.client.request({
|
|
96
104
|
url: '/user_identities/list_accessible_devices',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identities.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/user-identities.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"user-identities.js","sourceRoot":"","sources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YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -12,10 +12,14 @@ export declare class SeamHttpWorkspaces {
|
|
|
12
12
|
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpWorkspaces>;
|
|
13
13
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpWorkspaces;
|
|
14
14
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpWorkspaces;
|
|
15
|
+
create(body?: WorkspacesCreateBody): Promise<WorkspacesCreateResponse['workspace']>;
|
|
15
16
|
get(params?: WorkspacesGetParams): Promise<WorkspacesGetResponse['workspace']>;
|
|
16
17
|
list(params?: WorkspacesListParams): Promise<WorkspacesListResponse['workspaces']>;
|
|
17
18
|
resetSandbox(body?: WorkspacesResetSandboxBody): Promise<void>;
|
|
18
19
|
}
|
|
20
|
+
export type WorkspacesCreateBody = RouteRequestBody<'/workspaces/create'>;
|
|
21
|
+
export type WorkspacesCreateResponse = SetNonNullable<Required<RouteResponse<'/workspaces/create'>>>;
|
|
22
|
+
export type WorkspacesCreateOptions = never;
|
|
19
23
|
export type WorkspacesGetParams = RouteRequestParams<'/workspaces/get'>;
|
|
20
24
|
export type WorkspacesGetResponse = SetNonNullable<Required<RouteResponse<'/workspaces/get'>>>;
|
|
21
25
|
export type WorkspacesGetOptions = never;
|
|
@@ -61,6 +61,14 @@ export class SeamHttpWorkspaces {
|
|
|
61
61
|
}
|
|
62
62
|
return new SeamHttpWorkspaces(constructorOptions);
|
|
63
63
|
}
|
|
64
|
+
async create(body) {
|
|
65
|
+
const { data } = await this.client.request({
|
|
66
|
+
url: '/workspaces/create',
|
|
67
|
+
method: 'post',
|
|
68
|
+
data: body,
|
|
69
|
+
});
|
|
70
|
+
return data.workspace;
|
|
71
|
+
}
|
|
64
72
|
async get(params) {
|
|
65
73
|
const { data } = await this.client.request({
|
|
66
74
|
url: '/workspaces/get',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/workspaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,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,kBAAkB;IAI7B,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,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAA;QACjD,IAAI,CAAC,2BAA2B,CAAC,kBAA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F,OAAO,IAAI,CAAC,SAAS,CAAA;IACvB,CAAC;IAED,KAAK,CAAC,IAAI,CACR,MAA6B;QAE7B,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAyB;YACjE,GAAG,EAAE,kBAAkB;YACvB,MAAM,EAAE,KAAK;YACb,MAAM;SACP,CAAC,CAAA;QAEF,OAAO,IAAI,CAAC,UAAU,CAAA;IACxB,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,IAAiC;QAClD,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAiC;YACxD,GAAG,EAAE,2BAA2B;YAChC,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAAI;SACX,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "0.9.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "0.9.3";
|
|
2
2
|
export default seamapiJavascriptHttpVersion;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seamapi/http",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -8,22 +8,22 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"import": {
|
|
11
|
-
"
|
|
12
|
-
"
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"default": "./index.js"
|
|
13
13
|
},
|
|
14
14
|
"require": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
15
|
+
"types": "./dist/index.d.cts",
|
|
16
|
+
"default": "./dist/index.cjs"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"./connect": {
|
|
20
20
|
"import": {
|
|
21
|
-
"
|
|
22
|
-
"
|
|
21
|
+
"types": "./connect.d.ts",
|
|
22
|
+
"default": "./connect.js"
|
|
23
23
|
},
|
|
24
24
|
"require": {
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"types": "./dist/connect.d.cts",
|
|
26
|
+
"default": "./dist/connect.cjs"
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
},
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"npm": ">= 8.1.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@seamapi/types": "^1.
|
|
87
|
+
"@seamapi/types": "^1.58.0",
|
|
88
88
|
"type-fest": "^4.0.0"
|
|
89
89
|
},
|
|
90
90
|
"peerDependenciesMeta": {
|
|
@@ -98,11 +98,11 @@
|
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"axios": "^1.5.0",
|
|
100
100
|
"axios-better-stacktrace": "^2.1.5",
|
|
101
|
-
"axios-retry": "^3.8.1"
|
|
102
|
-
"@seamapi/types": "^1.44.1"
|
|
101
|
+
"axios-retry": "^3.8.1"
|
|
103
102
|
},
|
|
104
103
|
"devDependencies": {
|
|
105
104
|
"@seamapi/fake-seam-connect": "^1.43.0",
|
|
105
|
+
"@seamapi/types": "^1.58.0",
|
|
106
106
|
"@types/eslint": "^8.44.2",
|
|
107
107
|
"@types/node": "^18.11.18",
|
|
108
108
|
"ava": "^5.0.1",
|
|
@@ -131,12 +131,16 @@ export class SeamHttpAcsCredentials {
|
|
|
131
131
|
return new SeamHttpAcsCredentials(constructorOptions)
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
async assign(
|
|
135
|
-
|
|
134
|
+
async assign(
|
|
135
|
+
body?: AcsCredentialsAssignBody,
|
|
136
|
+
): Promise<AcsCredentialsAssignResponse['acs_credential']> {
|
|
137
|
+
const { data } = await this.client.request<AcsCredentialsAssignResponse>({
|
|
136
138
|
url: '/acs/credentials/assign',
|
|
137
139
|
method: 'post',
|
|
138
140
|
data: body,
|
|
139
141
|
})
|
|
142
|
+
|
|
143
|
+
return data.acs_credential
|
|
140
144
|
}
|
|
141
145
|
|
|
142
146
|
async create(
|
|
@@ -183,12 +187,28 @@ export class SeamHttpAcsCredentials {
|
|
|
183
187
|
return data.acs_credentials
|
|
184
188
|
}
|
|
185
189
|
|
|
186
|
-
async unassign(
|
|
187
|
-
|
|
190
|
+
async unassign(
|
|
191
|
+
body?: AcsCredentialsUnassignBody,
|
|
192
|
+
): Promise<AcsCredentialsUnassignResponse['acs_credential']> {
|
|
193
|
+
const { data } = await this.client.request<AcsCredentialsUnassignResponse>({
|
|
188
194
|
url: '/acs/credentials/unassign',
|
|
189
195
|
method: 'post',
|
|
190
196
|
data: body,
|
|
191
197
|
})
|
|
198
|
+
|
|
199
|
+
return data.acs_credential
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
async update(
|
|
203
|
+
body?: AcsCredentialsUpdateBody,
|
|
204
|
+
): Promise<AcsCredentialsUpdateResponse['acs_credential']> {
|
|
205
|
+
const { data } = await this.client.request<AcsCredentialsUpdateResponse>({
|
|
206
|
+
url: '/acs/credentials/update',
|
|
207
|
+
method: 'post',
|
|
208
|
+
data: body,
|
|
209
|
+
})
|
|
210
|
+
|
|
211
|
+
return data.acs_credential
|
|
192
212
|
}
|
|
193
213
|
}
|
|
194
214
|
|
|
@@ -243,3 +263,12 @@ export type AcsCredentialsUnassignResponse = SetNonNullable<
|
|
|
243
263
|
>
|
|
244
264
|
|
|
245
265
|
export type AcsCredentialsUnassignOptions = never
|
|
266
|
+
|
|
267
|
+
export type AcsCredentialsUpdateBody =
|
|
268
|
+
RouteRequestBody<'/acs/credentials/update'>
|
|
269
|
+
|
|
270
|
+
export type AcsCredentialsUpdateResponse = SetNonNullable<
|
|
271
|
+
Required<RouteResponse<'/acs/credentials/update'>>
|
|
272
|
+
>
|
|
273
|
+
|
|
274
|
+
export type AcsCredentialsUpdateOptions = never
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
* Do not edit this file or add other files to this directory.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
RouteRequestBody,
|
|
8
|
+
RouteRequestParams,
|
|
9
|
+
RouteResponse,
|
|
10
|
+
} from '@seamapi/types/connect'
|
|
7
11
|
import type { SetNonNullable } from 'type-fest'
|
|
8
12
|
|
|
9
13
|
import { warnOnInsecureuserIdentifierKey } from 'lib/seam/connect/auth.js'
|
|
@@ -173,6 +177,18 @@ export class SeamHttpUserIdentities {
|
|
|
173
177
|
})
|
|
174
178
|
}
|
|
175
179
|
|
|
180
|
+
async list(
|
|
181
|
+
params?: UserIdentitiesListParams,
|
|
182
|
+
): Promise<UserIdentitiesListResponse['user_identities']> {
|
|
183
|
+
const { data } = await this.client.request<UserIdentitiesListResponse>({
|
|
184
|
+
url: '/user_identities/list',
|
|
185
|
+
method: 'get',
|
|
186
|
+
params,
|
|
187
|
+
})
|
|
188
|
+
|
|
189
|
+
return data.user_identities
|
|
190
|
+
}
|
|
191
|
+
|
|
176
192
|
async listAccessibleDevices(
|
|
177
193
|
body?: UserIdentitiesListAccessibleDevicesParams,
|
|
178
194
|
): Promise<
|
|
@@ -255,6 +271,15 @@ export type UserIdentitiesGrantAccessToDeviceResponse = SetNonNullable<
|
|
|
255
271
|
|
|
256
272
|
export type UserIdentitiesGrantAccessToDeviceOptions = never
|
|
257
273
|
|
|
274
|
+
export type UserIdentitiesListParams =
|
|
275
|
+
RouteRequestParams<'/user_identities/list'>
|
|
276
|
+
|
|
277
|
+
export type UserIdentitiesListResponse = SetNonNullable<
|
|
278
|
+
Required<RouteResponse<'/user_identities/list'>>
|
|
279
|
+
>
|
|
280
|
+
|
|
281
|
+
export type UserIdentitiesListOptions = never
|
|
282
|
+
|
|
258
283
|
export type UserIdentitiesListAccessibleDevicesParams =
|
|
259
284
|
RouteRequestBody<'/user_identities/list_accessible_devices'>
|
|
260
285
|
|
|
@@ -135,6 +135,18 @@ export class SeamHttpWorkspaces {
|
|
|
135
135
|
return new SeamHttpWorkspaces(constructorOptions)
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
+
async create(
|
|
139
|
+
body?: WorkspacesCreateBody,
|
|
140
|
+
): Promise<WorkspacesCreateResponse['workspace']> {
|
|
141
|
+
const { data } = await this.client.request<WorkspacesCreateResponse>({
|
|
142
|
+
url: '/workspaces/create',
|
|
143
|
+
method: 'post',
|
|
144
|
+
data: body,
|
|
145
|
+
})
|
|
146
|
+
|
|
147
|
+
return data.workspace
|
|
148
|
+
}
|
|
149
|
+
|
|
138
150
|
async get(
|
|
139
151
|
params?: WorkspacesGetParams,
|
|
140
152
|
): Promise<WorkspacesGetResponse['workspace']> {
|
|
@@ -168,6 +180,14 @@ export class SeamHttpWorkspaces {
|
|
|
168
180
|
}
|
|
169
181
|
}
|
|
170
182
|
|
|
183
|
+
export type WorkspacesCreateBody = RouteRequestBody<'/workspaces/create'>
|
|
184
|
+
|
|
185
|
+
export type WorkspacesCreateResponse = SetNonNullable<
|
|
186
|
+
Required<RouteResponse<'/workspaces/create'>>
|
|
187
|
+
>
|
|
188
|
+
|
|
189
|
+
export type WorkspacesCreateOptions = never
|
|
190
|
+
|
|
171
191
|
export type WorkspacesGetParams = RouteRequestParams<'/workspaces/get'>
|
|
172
192
|
|
|
173
193
|
export type WorkspacesGetResponse = SetNonNullable<
|
package/src/lib/version.ts
CHANGED