@seamapi/http 1.29.0 → 1.30.1
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 +9 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +5 -1
- package/lib/seam/connect/auth.js +1 -1
- package/lib/seam/connect/auth.js.map +1 -1
- package/lib/seam/connect/routes/user-identities.d.ts +4 -0
- package/lib/seam/connect/routes/user-identities.js +8 -0
- package/lib/seam/connect/routes/user-identities.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/seam/connect/auth.ts +1 -1
- package/src/lib/seam/connect/routes/user-identities.ts +20 -0
- package/src/lib/version.ts +1 -1
package/dist/connect.d.cts
CHANGED
|
@@ -1044,6 +1044,7 @@ declare class SeamHttpUserIdentities {
|
|
|
1044
1044
|
addAcsUser(body?: UserIdentitiesAddAcsUserBody): SeamHttpRequest<void, undefined>;
|
|
1045
1045
|
create(body?: UserIdentitiesCreateBody): SeamHttpRequest<UserIdentitiesCreateResponse, 'user_identity'>;
|
|
1046
1046
|
delete(body?: UserIdentitiesDeleteParams): SeamHttpRequest<void, undefined>;
|
|
1047
|
+
generateInstantKey(body?: UserIdentitiesGenerateInstantKeyBody): SeamHttpRequest<UserIdentitiesGenerateInstantKeyResponse, 'instant_key'>;
|
|
1047
1048
|
get(body?: UserIdentitiesGetParams): SeamHttpRequest<UserIdentitiesGetResponse, 'user_identity'>;
|
|
1048
1049
|
grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): SeamHttpRequest<void, undefined>;
|
|
1049
1050
|
list(body?: UserIdentitiesListParams): SeamHttpRequest<UserIdentitiesListResponse, 'user_identities'>;
|
|
@@ -1063,6 +1064,9 @@ type UserIdentitiesCreateOptions = never;
|
|
|
1063
1064
|
type UserIdentitiesDeleteParams = RouteRequestBody<'/user_identities/delete'>;
|
|
1064
1065
|
type UserIdentitiesDeleteResponse = SetNonNullable<Required<RouteResponse<'/user_identities/delete'>>>;
|
|
1065
1066
|
type UserIdentitiesDeleteOptions = never;
|
|
1067
|
+
type UserIdentitiesGenerateInstantKeyBody = RouteRequestBody<'/user_identities/generate_instant_key'>;
|
|
1068
|
+
type UserIdentitiesGenerateInstantKeyResponse = SetNonNullable<Required<RouteResponse<'/user_identities/generate_instant_key'>>>;
|
|
1069
|
+
type UserIdentitiesGenerateInstantKeyOptions = never;
|
|
1066
1070
|
type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'>;
|
|
1067
1071
|
type UserIdentitiesGetResponse = SetNonNullable<Required<RouteResponse<'/user_identities/get'>>>;
|
|
1068
1072
|
type UserIdentitiesGetOptions = never;
|
|
@@ -3251,4 +3255,4 @@ declare const isPublishableKey: (token: string) => boolean;
|
|
|
3251
3255
|
declare const isConsoleSessionToken: (token: string) => boolean;
|
|
3252
3256
|
declare const isPersonalAccessToken: (token: string) => boolean;
|
|
3253
3257
|
|
|
3254
|
-
export { type AccessCodesCreateBody, type AccessCodesCreateMultipleBody, type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultipleResponse, type AccessCodesCreateOptions, type AccessCodesCreateResponse, type AccessCodesDeleteOptions, type AccessCodesDeleteParams, type AccessCodesDeleteResponse, type AccessCodesGenerateCodeBody, type AccessCodesGenerateCodeOptions, type AccessCodesGenerateCodeResponse, type AccessCodesGetOptions, type AccessCodesGetParams, type AccessCodesGetResponse, type AccessCodesListOptions, type AccessCodesListParams, type AccessCodesListResponse, type AccessCodesPullBackupAccessCodeBody, type AccessCodesPullBackupAccessCodeOptions, type AccessCodesPullBackupAccessCodeResponse, type AccessCodesSimulateCreateUnmanagedAccessCodeBody, type AccessCodesSimulateCreateUnmanagedAccessCodeOptions, type AccessCodesSimulateCreateUnmanagedAccessCodeResponse, type AccessCodesUnmanagedConvertToManagedBody, type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedResponse, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteParams, type AccessCodesUnmanagedDeleteResponse, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParams, type AccessCodesUnmanagedGetResponse, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParams, type AccessCodesUnmanagedListResponse, type AccessCodesUnmanagedUpdateBody, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateResponse, type AccessCodesUpdateBody, type AccessCodesUpdateMultipleBody, type AccessCodesUpdateMultipleOptions, type AccessCodesUpdateMultipleResponse, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListAccessibleEntrancesOptions, type AcsAccessGroupsListAccessibleEntrancesParams, type AcsAccessGroupsListAccessibleEntrancesResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserParams, type AcsAccessGroupsRemoveUserResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type AcsCredentialsDeleteOptions, type AcsCredentialsDeleteParams, type AcsCredentialsDeleteResponse, type AcsCredentialsGetOptions, type AcsCredentialsGetParams, type AcsCredentialsGetResponse, type AcsCredentialsListAccessibleEntrancesOptions, type AcsCredentialsListAccessibleEntrancesParams, type AcsCredentialsListAccessibleEntrancesResponse, type AcsCredentialsListOptions, type AcsCredentialsListParams, type AcsCredentialsListResponse, type AcsCredentialsUnassignBody, type AcsCredentialsUnassignOptions, type AcsCredentialsUnassignResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEncodersEncodeCredentialBody, type AcsEncodersEncodeCredentialOptions, type AcsEncodersEncodeCredentialResponse, type AcsEncodersGetOptions, type AcsEncodersGetParams, type AcsEncodersGetResponse, type AcsEncodersListOptions, type AcsEncodersListParams, type AcsEncodersListResponse, type AcsEncodersScanCredentialBody, type AcsEncodersScanCredentialOptions, type AcsEncodersScanCredentialResponse, type AcsEncodersSimulateNextCredentialEncodeWillFailBody, type AcsEncodersSimulateNextCredentialEncodeWillFailOptions, type AcsEncodersSimulateNextCredentialEncodeWillFailResponse, type AcsEncodersSimulateNextCredentialEncodeWillSucceedBody, type AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions, type AcsEncodersSimulateNextCredentialEncodeWillSucceedResponse, type AcsEncodersSimulateNextCredentialScanWillFailBody, type AcsEncodersSimulateNextCredentialScanWillFailOptions, type AcsEncodersSimulateNextCredentialScanWillFailResponse, type AcsEncodersSimulateNextCredentialScanWillSucceedBody, type AcsEncodersSimulateNextCredentialScanWillSucceedOptions, type AcsEncodersSimulateNextCredentialScanWillSucceedResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type AcsSystemsListCompatibleCredentialManagerAcsSystemsOptions, type AcsSystemsListCompatibleCredentialManagerAcsSystemsParams, type AcsSystemsListCompatibleCredentialManagerAcsSystemsResponse, type AcsSystemsListOptions, type AcsSystemsListParams, type AcsSystemsListResponse, type AcsUsersAddToAccessGroupBody, type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupResponse, type AcsUsersCreateBody, type AcsUsersCreateOptions, type AcsUsersCreateResponse, type AcsUsersDeleteOptions, type AcsUsersDeleteParams, type AcsUsersDeleteResponse, type AcsUsersGetOptions, type AcsUsersGetParams, type AcsUsersGetResponse, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParams, type AcsUsersListAccessibleEntrancesResponse, type AcsUsersListOptions, type AcsUsersListParams, type AcsUsersListResponse, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupParams, type AcsUsersRemoveFromAccessGroupResponse, type AcsUsersRevokeAccessToAllEntrancesOptions, type AcsUsersRevokeAccessToAllEntrancesParams, type AcsUsersRevokeAccessToAllEntrancesResponse, type AcsUsersSuspendBody, type AcsUsersSuspendOptions, type AcsUsersSuspendResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type BridgesGetOptions, type BridgesGetParams, type BridgesGetResponse, type BridgesListOptions, type BridgesListParams, type BridgesListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteOptions, type ClientSessionsDeleteParams, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeOptions, type ClientSessionsRevokeParams, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteParams, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteParams, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesGetOptions, type DevicesGetParams, type DevicesGetResponse, type DevicesListDeviceProvidersOptions, type DevicesListDeviceProvidersParams, type DevicesListDeviceProvidersResponse, type DevicesListOptions, type DevicesListParams, type DevicesListResponse, type DevicesSimulateConnectBody, type DevicesSimulateConnectOptions, type DevicesSimulateConnectResponse, type DevicesSimulateDisconnectBody, type DevicesSimulateDisconnectOptions, type DevicesSimulateDisconnectResponse, type DevicesSimulateRemoveBody, type DevicesSimulateRemoveOptions, type DevicesSimulateRemoveResponse, type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParams, type DevicesUnmanagedGetResponse, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParams, type DevicesUnmanagedListResponse, type DevicesUnmanagedUpdateBody, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateResponse, type DevicesUpdateBody, type DevicesUpdateOptions, type DevicesUpdateResponse, type EventsGetOptions, type EventsGetParams, type EventsGetResponse, type EventsListOptions, type EventsListParams, type EventsListResponse, type LocksGetOptions, type LocksGetParams, type LocksGetResponse, type LocksListOptions, type LocksListParams, type LocksListResponse, type LocksLockDoorBody, type LocksLockDoorOptions, type LocksLockDoorResponse, type LocksUnlockDoorBody, type LocksUnlockDoorOptions, type LocksUnlockDoorResponse, type NetworksGetOptions, type NetworksGetParams, type NetworksGetResponse, type NetworksListOptions, type NetworksListParams, type NetworksListResponse, type NoiseSensorsListOptions, type NoiseSensorsListParams, type NoiseSensorsListResponse, type NoiseSensorsNoiseThresholdsCreateBody, type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateResponse, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteParams, type NoiseSensorsNoiseThresholdsDeleteResponse, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParams, type NoiseSensorsNoiseThresholdsGetResponse, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParams, type NoiseSensorsNoiseThresholdsListResponse, type NoiseSensorsNoiseThresholdsUpdateBody, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateResponse, type NoiseSensorsSimulateTriggerNoiseThresholdBody, type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdResponse, type PhonesDeactivateOptions, type PhonesDeactivateParams, type PhonesDeactivateResponse, type PhonesGetOptions, type PhonesGetParams, type PhonesGetResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsEncoders, SeamHttpAcsEncodersSimulate, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpBridges, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsFromEnv, type SeamHttpMultiWorkspaceOptionsWithClient, type SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, type SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNetworks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpNoiseSensorsSimulate, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, SeamHttpPhonesSimulate, SeamHttpRequest, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsSchedules, SeamHttpThermostatsSimulate, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, SeamPaginator, type ThermostatsActivateClimatePresetBody, type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsCreateClimatePresetBody, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetResponse, type ThermostatsDeleteClimatePresetBody, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSchedulesCreateBody, type ThermostatsSchedulesCreateOptions, type ThermostatsSchedulesCreateResponse, type ThermostatsSchedulesDeleteOptions, type ThermostatsSchedulesDeleteParams, type ThermostatsSchedulesDeleteResponse, type ThermostatsSchedulesGetOptions, type ThermostatsSchedulesGetParams, type ThermostatsSchedulesGetResponse, type ThermostatsSchedulesListOptions, type ThermostatsSchedulesListParams, type ThermostatsSchedulesListResponse, type ThermostatsSchedulesUpdateBody, type ThermostatsSchedulesUpdateOptions, type ThermostatsSchedulesUpdateResponse, type ThermostatsSetFallbackClimatePresetBody, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsSetHvacModeBody, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeResponse, type ThermostatsSetTemperatureThresholdBody, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdResponse, type ThermostatsSimulateHvacModeAdjustedBody, type ThermostatsSimulateHvacModeAdjustedOptions, type ThermostatsSimulateHvacModeAdjustedResponse, type ThermostatsSimulateTemperatureReachedBody, type ThermostatsSimulateTemperatureReachedOptions, type ThermostatsSimulateTemperatureReachedResponse, type ThermostatsUpdateClimatePresetBody, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParams, type UserIdentitiesDeleteResponse, type UserIdentitiesEnrollmentAutomationsDeleteOptions, type UserIdentitiesEnrollmentAutomationsDeleteParams, type UserIdentitiesEnrollmentAutomationsDeleteResponse, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParams, type UserIdentitiesEnrollmentAutomationsGetResponse, type UserIdentitiesEnrollmentAutomationsLaunchBody, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchResponse, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParams, type UserIdentitiesEnrollmentAutomationsListResponse, type UserIdentitiesGetOptions, type UserIdentitiesGetParams, type UserIdentitiesGetResponse, type UserIdentitiesGrantAccessToDeviceBody, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceResponse, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParams, type UserIdentitiesListAccessibleDevicesResponse, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParams, type UserIdentitiesListAcsSystemsResponse, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParams, type UserIdentitiesListAcsUsersResponse, type UserIdentitiesListOptions, type UserIdentitiesListParams, type UserIdentitiesListResponse, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParams, type UserIdentitiesRemoveAcsUserResponse, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParams, type UserIdentitiesRevokeAccessToDeviceResponse, type UserIdentitiesUpdateBody, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateResponse, type WebhooksCreateBody, type WebhooksCreateOptions, type WebhooksCreateResponse, type WebhooksDeleteOptions, type WebhooksDeleteParams, type WebhooksDeleteResponse, type WebhooksGetOptions, type WebhooksGetParams, type WebhooksGetResponse, type WebhooksListOptions, type WebhooksListParams, type WebhooksListResponse, type WebhooksUpdateBody, type WebhooksUpdateOptions, type WebhooksUpdateResponse, type WorkspacesCreateBody, type WorkspacesCreateOptions, type WorkspacesCreateResponse, type WorkspacesGetOptions, type WorkspacesGetParams, type WorkspacesGetResponse, type WorkspacesListOptions, type WorkspacesListParams, type WorkspacesListResponse, type WorkspacesResetSandboxBody, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
|
|
3258
|
+
export { type AccessCodesCreateBody, type AccessCodesCreateMultipleBody, type AccessCodesCreateMultipleOptions, type AccessCodesCreateMultipleResponse, type AccessCodesCreateOptions, type AccessCodesCreateResponse, type AccessCodesDeleteOptions, type AccessCodesDeleteParams, type AccessCodesDeleteResponse, type AccessCodesGenerateCodeBody, type AccessCodesGenerateCodeOptions, type AccessCodesGenerateCodeResponse, type AccessCodesGetOptions, type AccessCodesGetParams, type AccessCodesGetResponse, type AccessCodesListOptions, type AccessCodesListParams, type AccessCodesListResponse, type AccessCodesPullBackupAccessCodeBody, type AccessCodesPullBackupAccessCodeOptions, type AccessCodesPullBackupAccessCodeResponse, type AccessCodesSimulateCreateUnmanagedAccessCodeBody, type AccessCodesSimulateCreateUnmanagedAccessCodeOptions, type AccessCodesSimulateCreateUnmanagedAccessCodeResponse, type AccessCodesUnmanagedConvertToManagedBody, type AccessCodesUnmanagedConvertToManagedOptions, type AccessCodesUnmanagedConvertToManagedResponse, type AccessCodesUnmanagedDeleteOptions, type AccessCodesUnmanagedDeleteParams, type AccessCodesUnmanagedDeleteResponse, type AccessCodesUnmanagedGetOptions, type AccessCodesUnmanagedGetParams, type AccessCodesUnmanagedGetResponse, type AccessCodesUnmanagedListOptions, type AccessCodesUnmanagedListParams, type AccessCodesUnmanagedListResponse, type AccessCodesUnmanagedUpdateBody, type AccessCodesUnmanagedUpdateOptions, type AccessCodesUnmanagedUpdateResponse, type AccessCodesUpdateBody, type AccessCodesUpdateMultipleBody, type AccessCodesUpdateMultipleOptions, type AccessCodesUpdateMultipleResponse, type AccessCodesUpdateOptions, type AccessCodesUpdateResponse, type AcsAccessGroupsAddUserBody, type AcsAccessGroupsAddUserOptions, type AcsAccessGroupsAddUserResponse, type AcsAccessGroupsGetOptions, type AcsAccessGroupsGetParams, type AcsAccessGroupsGetResponse, type AcsAccessGroupsListAccessibleEntrancesOptions, type AcsAccessGroupsListAccessibleEntrancesParams, type AcsAccessGroupsListAccessibleEntrancesResponse, type AcsAccessGroupsListOptions, type AcsAccessGroupsListParams, type AcsAccessGroupsListResponse, type AcsAccessGroupsListUsersOptions, type AcsAccessGroupsListUsersParams, type AcsAccessGroupsListUsersResponse, type AcsAccessGroupsRemoveUserOptions, type AcsAccessGroupsRemoveUserParams, type AcsAccessGroupsRemoveUserResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type AcsCredentialsDeleteOptions, type AcsCredentialsDeleteParams, type AcsCredentialsDeleteResponse, type AcsCredentialsGetOptions, type AcsCredentialsGetParams, type AcsCredentialsGetResponse, type AcsCredentialsListAccessibleEntrancesOptions, type AcsCredentialsListAccessibleEntrancesParams, type AcsCredentialsListAccessibleEntrancesResponse, type AcsCredentialsListOptions, type AcsCredentialsListParams, type AcsCredentialsListResponse, type AcsCredentialsUnassignBody, type AcsCredentialsUnassignOptions, type AcsCredentialsUnassignResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEncodersEncodeCredentialBody, type AcsEncodersEncodeCredentialOptions, type AcsEncodersEncodeCredentialResponse, type AcsEncodersGetOptions, type AcsEncodersGetParams, type AcsEncodersGetResponse, type AcsEncodersListOptions, type AcsEncodersListParams, type AcsEncodersListResponse, type AcsEncodersScanCredentialBody, type AcsEncodersScanCredentialOptions, type AcsEncodersScanCredentialResponse, type AcsEncodersSimulateNextCredentialEncodeWillFailBody, type AcsEncodersSimulateNextCredentialEncodeWillFailOptions, type AcsEncodersSimulateNextCredentialEncodeWillFailResponse, type AcsEncodersSimulateNextCredentialEncodeWillSucceedBody, type AcsEncodersSimulateNextCredentialEncodeWillSucceedOptions, type AcsEncodersSimulateNextCredentialEncodeWillSucceedResponse, type AcsEncodersSimulateNextCredentialScanWillFailBody, type AcsEncodersSimulateNextCredentialScanWillFailOptions, type AcsEncodersSimulateNextCredentialScanWillFailResponse, type AcsEncodersSimulateNextCredentialScanWillSucceedBody, type AcsEncodersSimulateNextCredentialScanWillSucceedOptions, type AcsEncodersSimulateNextCredentialScanWillSucceedResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type AcsSystemsListCompatibleCredentialManagerAcsSystemsOptions, type AcsSystemsListCompatibleCredentialManagerAcsSystemsParams, type AcsSystemsListCompatibleCredentialManagerAcsSystemsResponse, type AcsSystemsListOptions, type AcsSystemsListParams, type AcsSystemsListResponse, type AcsUsersAddToAccessGroupBody, type AcsUsersAddToAccessGroupOptions, type AcsUsersAddToAccessGroupResponse, type AcsUsersCreateBody, type AcsUsersCreateOptions, type AcsUsersCreateResponse, type AcsUsersDeleteOptions, type AcsUsersDeleteParams, type AcsUsersDeleteResponse, type AcsUsersGetOptions, type AcsUsersGetParams, type AcsUsersGetResponse, type AcsUsersListAccessibleEntrancesOptions, type AcsUsersListAccessibleEntrancesParams, type AcsUsersListAccessibleEntrancesResponse, type AcsUsersListOptions, type AcsUsersListParams, type AcsUsersListResponse, type AcsUsersRemoveFromAccessGroupOptions, type AcsUsersRemoveFromAccessGroupParams, type AcsUsersRemoveFromAccessGroupResponse, type AcsUsersRevokeAccessToAllEntrancesOptions, type AcsUsersRevokeAccessToAllEntrancesParams, type AcsUsersRevokeAccessToAllEntrancesResponse, type AcsUsersSuspendBody, type AcsUsersSuspendOptions, type AcsUsersSuspendResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type BridgesGetOptions, type BridgesGetParams, type BridgesGetResponse, type BridgesListOptions, type BridgesListParams, type BridgesListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteOptions, type ClientSessionsDeleteParams, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeOptions, type ClientSessionsRevokeParams, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteParams, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteParams, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesGetOptions, type DevicesGetParams, type DevicesGetResponse, type DevicesListDeviceProvidersOptions, type DevicesListDeviceProvidersParams, type DevicesListDeviceProvidersResponse, type DevicesListOptions, type DevicesListParams, type DevicesListResponse, type DevicesSimulateConnectBody, type DevicesSimulateConnectOptions, type DevicesSimulateConnectResponse, type DevicesSimulateDisconnectBody, type DevicesSimulateDisconnectOptions, type DevicesSimulateDisconnectResponse, type DevicesSimulateRemoveBody, type DevicesSimulateRemoveOptions, type DevicesSimulateRemoveResponse, type DevicesUnmanagedGetOptions, type DevicesUnmanagedGetParams, type DevicesUnmanagedGetResponse, type DevicesUnmanagedListOptions, type DevicesUnmanagedListParams, type DevicesUnmanagedListResponse, type DevicesUnmanagedUpdateBody, type DevicesUnmanagedUpdateOptions, type DevicesUnmanagedUpdateResponse, type DevicesUpdateBody, type DevicesUpdateOptions, type DevicesUpdateResponse, type EventsGetOptions, type EventsGetParams, type EventsGetResponse, type EventsListOptions, type EventsListParams, type EventsListResponse, type LocksGetOptions, type LocksGetParams, type LocksGetResponse, type LocksListOptions, type LocksListParams, type LocksListResponse, type LocksLockDoorBody, type LocksLockDoorOptions, type LocksLockDoorResponse, type LocksUnlockDoorBody, type LocksUnlockDoorOptions, type LocksUnlockDoorResponse, type NetworksGetOptions, type NetworksGetParams, type NetworksGetResponse, type NetworksListOptions, type NetworksListParams, type NetworksListResponse, type NoiseSensorsListOptions, type NoiseSensorsListParams, type NoiseSensorsListResponse, type NoiseSensorsNoiseThresholdsCreateBody, type NoiseSensorsNoiseThresholdsCreateOptions, type NoiseSensorsNoiseThresholdsCreateResponse, type NoiseSensorsNoiseThresholdsDeleteOptions, type NoiseSensorsNoiseThresholdsDeleteParams, type NoiseSensorsNoiseThresholdsDeleteResponse, type NoiseSensorsNoiseThresholdsGetOptions, type NoiseSensorsNoiseThresholdsGetParams, type NoiseSensorsNoiseThresholdsGetResponse, type NoiseSensorsNoiseThresholdsListOptions, type NoiseSensorsNoiseThresholdsListParams, type NoiseSensorsNoiseThresholdsListResponse, type NoiseSensorsNoiseThresholdsUpdateBody, type NoiseSensorsNoiseThresholdsUpdateOptions, type NoiseSensorsNoiseThresholdsUpdateResponse, type NoiseSensorsSimulateTriggerNoiseThresholdBody, type NoiseSensorsSimulateTriggerNoiseThresholdOptions, type NoiseSensorsSimulateTriggerNoiseThresholdResponse, type PhonesDeactivateOptions, type PhonesDeactivateParams, type PhonesDeactivateResponse, type PhonesGetOptions, type PhonesGetParams, type PhonesGetResponse, type PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsCredentials, SeamHttpAcsEncoders, SeamHttpAcsEncodersSimulate, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpBridges, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, type SeamHttpMultiWorkspaceOptionsFromEnv, type SeamHttpMultiWorkspaceOptionsWithClient, type SeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, type SeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, SeamHttpNetworks, SeamHttpNoiseSensors, SeamHttpNoiseSensorsNoiseThresholds, SeamHttpNoiseSensorsSimulate, type SeamHttpOptions, type SeamHttpOptionsFromEnv, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, SeamHttpPhones, SeamHttpPhonesSimulate, SeamHttpRequest, type SeamHttpRequestOptions, SeamHttpThermostats, SeamHttpThermostatsSchedules, SeamHttpThermostatsSimulate, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, SeamPaginator, type ThermostatsActivateClimatePresetBody, type ThermostatsActivateClimatePresetOptions, type ThermostatsActivateClimatePresetResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsCreateClimatePresetBody, type ThermostatsCreateClimatePresetOptions, type ThermostatsCreateClimatePresetResponse, type ThermostatsDeleteClimatePresetBody, type ThermostatsDeleteClimatePresetOptions, type ThermostatsDeleteClimatePresetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSchedulesCreateBody, type ThermostatsSchedulesCreateOptions, type ThermostatsSchedulesCreateResponse, type ThermostatsSchedulesDeleteOptions, type ThermostatsSchedulesDeleteParams, type ThermostatsSchedulesDeleteResponse, type ThermostatsSchedulesGetOptions, type ThermostatsSchedulesGetParams, type ThermostatsSchedulesGetResponse, type ThermostatsSchedulesListOptions, type ThermostatsSchedulesListParams, type ThermostatsSchedulesListResponse, type ThermostatsSchedulesUpdateBody, type ThermostatsSchedulesUpdateOptions, type ThermostatsSchedulesUpdateResponse, type ThermostatsSetFallbackClimatePresetBody, type ThermostatsSetFallbackClimatePresetOptions, type ThermostatsSetFallbackClimatePresetResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsSetHvacModeBody, type ThermostatsSetHvacModeOptions, type ThermostatsSetHvacModeResponse, type ThermostatsSetTemperatureThresholdBody, type ThermostatsSetTemperatureThresholdOptions, type ThermostatsSetTemperatureThresholdResponse, type ThermostatsSimulateHvacModeAdjustedBody, type ThermostatsSimulateHvacModeAdjustedOptions, type ThermostatsSimulateHvacModeAdjustedResponse, type ThermostatsSimulateTemperatureReachedBody, type ThermostatsSimulateTemperatureReachedOptions, type ThermostatsSimulateTemperatureReachedResponse, type ThermostatsUpdateClimatePresetBody, type ThermostatsUpdateClimatePresetOptions, type ThermostatsUpdateClimatePresetResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type UserIdentitiesDeleteOptions, type UserIdentitiesDeleteParams, type UserIdentitiesDeleteResponse, type UserIdentitiesEnrollmentAutomationsDeleteOptions, type UserIdentitiesEnrollmentAutomationsDeleteParams, type UserIdentitiesEnrollmentAutomationsDeleteResponse, type UserIdentitiesEnrollmentAutomationsGetOptions, type UserIdentitiesEnrollmentAutomationsGetParams, type UserIdentitiesEnrollmentAutomationsGetResponse, type UserIdentitiesEnrollmentAutomationsLaunchBody, type UserIdentitiesEnrollmentAutomationsLaunchOptions, type UserIdentitiesEnrollmentAutomationsLaunchResponse, type UserIdentitiesEnrollmentAutomationsListOptions, type UserIdentitiesEnrollmentAutomationsListParams, type UserIdentitiesEnrollmentAutomationsListResponse, type UserIdentitiesGenerateInstantKeyBody, type UserIdentitiesGenerateInstantKeyOptions, type UserIdentitiesGenerateInstantKeyResponse, type UserIdentitiesGetOptions, type UserIdentitiesGetParams, type UserIdentitiesGetResponse, type UserIdentitiesGrantAccessToDeviceBody, type UserIdentitiesGrantAccessToDeviceOptions, type UserIdentitiesGrantAccessToDeviceResponse, type UserIdentitiesListAccessibleDevicesOptions, type UserIdentitiesListAccessibleDevicesParams, type UserIdentitiesListAccessibleDevicesResponse, type UserIdentitiesListAcsSystemsOptions, type UserIdentitiesListAcsSystemsParams, type UserIdentitiesListAcsSystemsResponse, type UserIdentitiesListAcsUsersOptions, type UserIdentitiesListAcsUsersParams, type UserIdentitiesListAcsUsersResponse, type UserIdentitiesListOptions, type UserIdentitiesListParams, type UserIdentitiesListResponse, type UserIdentitiesRemoveAcsUserOptions, type UserIdentitiesRemoveAcsUserParams, type UserIdentitiesRemoveAcsUserResponse, type UserIdentitiesRevokeAccessToDeviceOptions, type UserIdentitiesRevokeAccessToDeviceParams, type UserIdentitiesRevokeAccessToDeviceResponse, type UserIdentitiesUpdateBody, type UserIdentitiesUpdateOptions, type UserIdentitiesUpdateResponse, type WebhooksCreateBody, type WebhooksCreateOptions, type WebhooksCreateResponse, type WebhooksDeleteOptions, type WebhooksDeleteParams, type WebhooksDeleteResponse, type WebhooksGetOptions, type WebhooksGetParams, type WebhooksGetResponse, type WebhooksListOptions, type WebhooksListParams, type WebhooksListResponse, type WebhooksUpdateBody, type WebhooksUpdateOptions, type WebhooksUpdateResponse, type WorkspacesCreateBody, type WorkspacesCreateOptions, type WorkspacesCreateResponse, type WorkspacesGetOptions, type WorkspacesGetParams, type WorkspacesGetResponse, type WorkspacesListOptions, type WorkspacesListParams, type WorkspacesListResponse, type WorkspacesResetSandboxBody, type WorkspacesResetSandboxOptions, type WorkspacesResetSandboxResponse, errorInterceptor, getOpenapiSchema, isApiKey, isClientSessionToken, isConsoleSessionToken, isPersonalAccessToken, isPublishableKey, isSeamActionAttemptError, isSeamActionAttemptFailedError, isSeamActionAttemptTimeoutError, isSeamHttpApiError, isSeamHttpInvalidInputError, isSeamHttpMultiWorkspaceOptionsWithClient, isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, isSeamHttpUnauthorizedError };
|
package/lib/seam/connect/auth.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isSeamHttpMultiWorkspaceOptionsWithConsoleSessionToken, isSeamHttpMultiWorkspaceOptionsWithPersonalAccessToken, isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from './options.js';
|
|
2
2
|
import { accessTokenPrefix, clientSessionTokenPrefix, isAccessToken, isClientSessionToken, isJwt, isPublishableKey, isSeamToken, jwtPrefix, publishableKeyTokenPrefix, tokenPrefix, } from './token.js';
|
|
3
3
|
export const getAuthHeaders = (options) => {
|
|
4
|
-
if ('publishableKey' in options) {
|
|
4
|
+
if ('publishableKey' in options && options.publishableKey !== null) {
|
|
5
5
|
return getAuthHeadersForPublishableKey(options.publishableKey);
|
|
6
6
|
}
|
|
7
7
|
if (isSeamHttpOptionsWithApiKey(options)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sDAAsD,EACtD,sDAAsD,EACtD,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EACxC,2BAA2B,GAO5B,MAAM,cAAc,CAAA;AAErB,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,aAAa,EACb,oBAAoB,EACpB,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,yBAAyB,EACzB,WAAW,GACZ,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAW,EAAE;IAC1D,IAAI,gBAAgB,IAAI,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/seam/connect/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sDAAsD,EACtD,sDAAsD,EACtD,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EACxC,2BAA2B,GAO5B,MAAM,cAAc,CAAA;AAErB,OAAO,EACL,iBAAiB,EACjB,wBAAwB,EACxB,aAAa,EACb,oBAAoB,EACpB,KAAK,EACL,gBAAgB,EAChB,WAAW,EACX,SAAS,EACT,yBAAyB,EACzB,WAAW,GACZ,MAAM,YAAY,CAAA;AAInB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAW,EAAE;IAC1D,IAAI,gBAAgB,IAAI,OAAO,IAAI,OAAO,CAAC,cAAc,KAAK,IAAI,EAAE,CAAC;QACnE,OAAO,+BAA+B,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;IAChE,CAAC;IAED,IAAI,2BAA2B,CAAC,OAAO,CAAC,EAAE,CAAC;QACzC,OAAO,uBAAuB,CAAC,OAAO,CAAC,CAAA;IACzC,CAAC;IAED,IAAI,uCAAuC,CAAC,OAAO,CAAC,EAAE,CAAC;QACrD,OAAO,mCAAmC,CAAC,OAAO,CAAC,CAAA;IACrD,CAAC;IAED,IACE,sDAAsD,CAAC,OAAO,CAAC;QAC/D,wCAAwC,CAAC,OAAO,CAAC,EACjD,CAAC;QACD,OAAO,oCAAoC,CAAC,OAAO,CAAC,CAAA;IACtD,CAAC;IAED,IACE,sDAAsD,CAAC,OAAO,CAA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,CAAC;IAED,IAAI,oBAAoB,CAAC,cAAc,CAAC,EAAE,CAAC;QACzC,MAAM,IAAI,yBAAyB,CACjC,+DAA+D,CAChE,CAAA;IACH,CAAC;IAED,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,EAAE,CAAC;QACtC,MAAM,IAAI,yBAAyB,CACjC,0EAA0E,yBAAyB,EAAE,CACtG,CAAA;IACH,CAAC;IAED,OAAO;QACL,sBAAsB,EAAE,cAAc;KACvC,CAAA;AACH,CAAC,CAAA;AAED,MAAM,OAAO,yBAA0B,SAAQ,KAAK;IAClD,YAAY,OAAe;QACzB,KAAK,CAAC,uCAAuC,OAAO,EAAE,CAAC,CAAA;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAA;IACnC,CAAC;CACF;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAC7C,iBAAyB,EACnB,EAAE;IACR,IAAI,OAAO,CAAC,iBAAiB,CAAC,EAAE,CAAC;QAC/B,sCAAsC;QACtC,OAAO,CAAC,IAAI,CACV,GAAG;YACD,6FAA6F;YAC7F,0EAA0E;YAC1E,sFAAsF;YACtF,6CAA6C;YAC7C,6HAA6H;SAC9H,CACF,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AAED,4CAA4C;AAC5C,MAAM,OAAO,GAAG,CAAC,KAAa,EAAW,EAAE;IACzC,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,OAAO,KAAK,CAAA;IACrC,4FAA4F;IAC5F,OAAO,4BAA4B,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;AACjD,CAAC,CAAA"}
|
|
@@ -21,6 +21,7 @@ export declare class SeamHttpUserIdentities {
|
|
|
21
21
|
addAcsUser(body?: UserIdentitiesAddAcsUserBody): SeamHttpRequest<void, undefined>;
|
|
22
22
|
create(body?: UserIdentitiesCreateBody): SeamHttpRequest<UserIdentitiesCreateResponse, 'user_identity'>;
|
|
23
23
|
delete(body?: UserIdentitiesDeleteParams): SeamHttpRequest<void, undefined>;
|
|
24
|
+
generateInstantKey(body?: UserIdentitiesGenerateInstantKeyBody): SeamHttpRequest<UserIdentitiesGenerateInstantKeyResponse, 'instant_key'>;
|
|
24
25
|
get(body?: UserIdentitiesGetParams): SeamHttpRequest<UserIdentitiesGetResponse, 'user_identity'>;
|
|
25
26
|
grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): SeamHttpRequest<void, undefined>;
|
|
26
27
|
list(body?: UserIdentitiesListParams): SeamHttpRequest<UserIdentitiesListResponse, 'user_identities'>;
|
|
@@ -40,6 +41,9 @@ export type UserIdentitiesCreateOptions = never;
|
|
|
40
41
|
export type UserIdentitiesDeleteParams = RouteRequestBody<'/user_identities/delete'>;
|
|
41
42
|
export type UserIdentitiesDeleteResponse = SetNonNullable<Required<RouteResponse<'/user_identities/delete'>>>;
|
|
42
43
|
export type UserIdentitiesDeleteOptions = never;
|
|
44
|
+
export type UserIdentitiesGenerateInstantKeyBody = RouteRequestBody<'/user_identities/generate_instant_key'>;
|
|
45
|
+
export type UserIdentitiesGenerateInstantKeyResponse = SetNonNullable<Required<RouteResponse<'/user_identities/generate_instant_key'>>>;
|
|
46
|
+
export type UserIdentitiesGenerateInstantKeyOptions = never;
|
|
43
47
|
export type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'>;
|
|
44
48
|
export type UserIdentitiesGetResponse = SetNonNullable<Required<RouteResponse<'/user_identities/get'>>>;
|
|
45
49
|
export type UserIdentitiesGetOptions = never;
|
|
@@ -108,6 +108,14 @@ export class SeamHttpUserIdentities {
|
|
|
108
108
|
responseKey: undefined,
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
+
generateInstantKey(body) {
|
|
112
|
+
return new SeamHttpRequest(this, {
|
|
113
|
+
pathname: '/user_identities/generate_instant_key',
|
|
114
|
+
method: 'post',
|
|
115
|
+
body,
|
|
116
|
+
responseKey: 'instant_key',
|
|
117
|
+
});
|
|
118
|
+
}
|
|
111
119
|
get(body) {
|
|
112
120
|
return new SeamHttpRequest(this, {
|
|
113
121
|
pathname: '/user_identities/get',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identities.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/user-identities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,2CAA2C,EAAE,MAAM,6CAA6C,CAAA;AAEzG,MAAM,OAAO,sBAAsB;IAIjC,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,kBAAkB,CAAC,EAAE,C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AAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,IAA+B;QACpC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yBAAyB;YACnC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"user-identities.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/user-identities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAGlE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,EAAE,2CAA2C,EAAE,MAAM,6CAA6C,CAAA;AAEzG,MAAM,OAAO,sBAAsB;IAIjC,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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I;YACJ,WAAW,EAAE,WAAW;SACzB,CAAC,CAAA;IACJ,CAAC;IAED,aAAa,CACX,IAAwC;QAExC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,kCAAkC;YAC5C,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,oBAAoB,CAClB,IAA+C;QAE/C,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,0CAA0C;YACpD,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,IAA+B;QACpC,OAAO,IAAI,eAAe,CAAC,IAAI,EAAE;YAC/B,QAAQ,EAAE,yBAAyB;YACnC,MAAM,EAAE,MAAM;YACd,IAAI;YACJ,WAAW,EAAE,SAAS;SACvB,CAAC,CAAA;IACJ,CAAC;CACF"}
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const seamapiJavascriptHttpVersion = "1.
|
|
1
|
+
declare const seamapiJavascriptHttpVersion = "1.30.1";
|
|
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": "1.
|
|
3
|
+
"version": "1.30.1",
|
|
4
4
|
"description": "JavaScript HTTP client for the Seam API written in TypeScript.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"npm": ">= 9.0.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@seamapi/types": "^1.
|
|
87
|
+
"@seamapi/types": "^1.384.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependenciesMeta": {
|
|
90
90
|
"@seamapi/types": {
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
},
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@seamapi/fake-seam-connect": "^1.77.0",
|
|
102
|
-
"@seamapi/types": "1.
|
|
102
|
+
"@seamapi/types": "1.384.0",
|
|
103
103
|
"@types/eslint": "^8.44.2",
|
|
104
104
|
"@types/jsonwebtoken": "^9.0.6",
|
|
105
105
|
"@types/node": "^20.8.10",
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
type Headers = Record<string, string>
|
|
31
31
|
|
|
32
32
|
export const getAuthHeaders = (options: Options): Headers => {
|
|
33
|
-
if ('publishableKey' in options) {
|
|
33
|
+
if ('publishableKey' in options && options.publishableKey !== null) {
|
|
34
34
|
return getAuthHeadersForPublishableKey(options.publishableKey)
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -200,6 +200,17 @@ export class SeamHttpUserIdentities {
|
|
|
200
200
|
})
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
generateInstantKey(
|
|
204
|
+
body?: UserIdentitiesGenerateInstantKeyBody,
|
|
205
|
+
): SeamHttpRequest<UserIdentitiesGenerateInstantKeyResponse, 'instant_key'> {
|
|
206
|
+
return new SeamHttpRequest(this, {
|
|
207
|
+
pathname: '/user_identities/generate_instant_key',
|
|
208
|
+
method: 'post',
|
|
209
|
+
body,
|
|
210
|
+
responseKey: 'instant_key',
|
|
211
|
+
})
|
|
212
|
+
}
|
|
213
|
+
|
|
203
214
|
get(
|
|
204
215
|
body?: UserIdentitiesGetParams,
|
|
205
216
|
): SeamHttpRequest<UserIdentitiesGetResponse, 'user_identity'> {
|
|
@@ -325,6 +336,15 @@ export type UserIdentitiesDeleteResponse = SetNonNullable<
|
|
|
325
336
|
|
|
326
337
|
export type UserIdentitiesDeleteOptions = never
|
|
327
338
|
|
|
339
|
+
export type UserIdentitiesGenerateInstantKeyBody =
|
|
340
|
+
RouteRequestBody<'/user_identities/generate_instant_key'>
|
|
341
|
+
|
|
342
|
+
export type UserIdentitiesGenerateInstantKeyResponse = SetNonNullable<
|
|
343
|
+
Required<RouteResponse<'/user_identities/generate_instant_key'>>
|
|
344
|
+
>
|
|
345
|
+
|
|
346
|
+
export type UserIdentitiesGenerateInstantKeyOptions = never
|
|
347
|
+
|
|
328
348
|
export type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'>
|
|
329
349
|
|
|
330
350
|
export type UserIdentitiesGetResponse = SetNonNullable<
|
package/src/lib/version.ts
CHANGED