@seamapi/http 1.5.0 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +108 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +171 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +192 -0
- package/lib/seam/connect/routes/acs-encoders.d.ts +29 -0
- package/lib/seam/connect/routes/acs-encoders.js +106 -0
- package/lib/seam/connect/routes/acs-encoders.js.map +1 -0
- package/lib/seam/connect/routes/index.d.ts +1 -0
- package/lib/seam/connect/routes/index.js +1 -0
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +1 -1
- package/lib/seam/connect/routes/thermostats.js +1 -1
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/src/lib/seam/connect/routes/acs-encoders.ts +225 -0
- package/src/lib/seam/connect/routes/index.ts +1 -0
- package/src/lib/seam/connect/routes/thermostats.ts +2 -2
- package/src/lib/version.ts +1 -1
package/dist/connect.d.cts
CHANGED
|
@@ -450,6 +450,31 @@ declare class SeamHttpAcs {
|
|
|
450
450
|
get users(): SeamHttpAcsUsers;
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
+
declare class SeamHttpAcsEncoders {
|
|
454
|
+
client: Client;
|
|
455
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
456
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
457
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsEncoders;
|
|
458
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsEncoders;
|
|
459
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsEncoders;
|
|
460
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsEncoders>;
|
|
461
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsEncoders;
|
|
462
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEncoders;
|
|
463
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
464
|
+
encodeCard(body?: AcsEncodersEncodeCardBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersEncodeCardResponse, 'action_attempt'>;
|
|
465
|
+
list(body?: AcsEncodersListParams): SeamHttpRequest<AcsEncodersListResponse, 'devices'>;
|
|
466
|
+
readCard(body?: AcsEncodersReadCardBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersReadCardResponse, 'action_attempt'>;
|
|
467
|
+
}
|
|
468
|
+
type AcsEncodersEncodeCardBody = RouteRequestBody<'/acs/encoders/encode_card'>;
|
|
469
|
+
type AcsEncodersEncodeCardResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/encode_card'>>>;
|
|
470
|
+
type AcsEncodersEncodeCardOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
471
|
+
type AcsEncodersListParams = RouteRequestBody<'/acs/encoders/list'>;
|
|
472
|
+
type AcsEncodersListResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/list'>>>;
|
|
473
|
+
type AcsEncodersListOptions = never;
|
|
474
|
+
type AcsEncodersReadCardBody = RouteRequestBody<'/acs/encoders/read_card'>;
|
|
475
|
+
type AcsEncodersReadCardResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/read_card'>>>;
|
|
476
|
+
type AcsEncodersReadCardOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
477
|
+
|
|
453
478
|
declare class SeamHttpActionAttempts {
|
|
454
479
|
client: Client;
|
|
455
480
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
@@ -890,7 +915,7 @@ declare class SeamHttpThermostats {
|
|
|
890
915
|
off(body?: ThermostatsOffBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsOffResponse, 'action_attempt'>;
|
|
891
916
|
setFallbackClimatePreset(body?: ThermostatsSetFallbackClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
892
917
|
setFanMode(body?: ThermostatsSetFanModeBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsSetFanModeResponse, 'action_attempt'>;
|
|
893
|
-
updateClimatePreset(body?: ThermostatsUpdateClimatePresetBody): SeamHttpRequest<
|
|
918
|
+
updateClimatePreset(body?: ThermostatsUpdateClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
894
919
|
}
|
|
895
920
|
type ThermostatsActivateClimatePresetBody = RouteRequestBody<'/thermostats/activate_climate_preset'>;
|
|
896
921
|
type ThermostatsActivateClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/activate_climate_preset'>>>;
|
|
@@ -1128,6 +1153,54 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1128
1153
|
action_attempt_id: string;
|
|
1129
1154
|
result: null;
|
|
1130
1155
|
action_type: "UNLOCK_DOOR";
|
|
1156
|
+
} | {
|
|
1157
|
+
error: null;
|
|
1158
|
+
status: "pending";
|
|
1159
|
+
action_attempt_id: string;
|
|
1160
|
+
result: null;
|
|
1161
|
+
action_type: "READ_CARD";
|
|
1162
|
+
} | {
|
|
1163
|
+
error: null;
|
|
1164
|
+
status: "success";
|
|
1165
|
+
action_attempt_id: string;
|
|
1166
|
+
result: {
|
|
1167
|
+
acs_credential_id: string | null;
|
|
1168
|
+
card_number: string | null;
|
|
1169
|
+
};
|
|
1170
|
+
action_type: "READ_CARD";
|
|
1171
|
+
} | {
|
|
1172
|
+
error: {
|
|
1173
|
+
type: string;
|
|
1174
|
+
message: string;
|
|
1175
|
+
};
|
|
1176
|
+
status: "error";
|
|
1177
|
+
action_attempt_id: string;
|
|
1178
|
+
result: null;
|
|
1179
|
+
action_type: "READ_CARD";
|
|
1180
|
+
} | {
|
|
1181
|
+
error: null;
|
|
1182
|
+
status: "pending";
|
|
1183
|
+
action_attempt_id: string;
|
|
1184
|
+
result: null;
|
|
1185
|
+
action_type: "ENCODE_CARD";
|
|
1186
|
+
} | {
|
|
1187
|
+
error: null;
|
|
1188
|
+
status: "success";
|
|
1189
|
+
action_attempt_id: string;
|
|
1190
|
+
result: {
|
|
1191
|
+
acs_credential_id: string | null;
|
|
1192
|
+
card_number: string | null;
|
|
1193
|
+
};
|
|
1194
|
+
action_type: "ENCODE_CARD";
|
|
1195
|
+
} | {
|
|
1196
|
+
error: {
|
|
1197
|
+
type: string;
|
|
1198
|
+
message: string;
|
|
1199
|
+
};
|
|
1200
|
+
status: "error";
|
|
1201
|
+
action_attempt_id: string;
|
|
1202
|
+
result: null;
|
|
1203
|
+
action_type: "ENCODE_CARD";
|
|
1131
1204
|
} | {
|
|
1132
1205
|
error: null;
|
|
1133
1206
|
status: "pending";
|
|
@@ -1469,6 +1542,54 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1469
1542
|
action_attempt_id: string;
|
|
1470
1543
|
result: null;
|
|
1471
1544
|
action_type: "UNLOCK_DOOR";
|
|
1545
|
+
} | {
|
|
1546
|
+
error: null;
|
|
1547
|
+
status: "pending";
|
|
1548
|
+
action_attempt_id: string;
|
|
1549
|
+
result: null;
|
|
1550
|
+
action_type: "READ_CARD";
|
|
1551
|
+
} | {
|
|
1552
|
+
error: null;
|
|
1553
|
+
status: "success";
|
|
1554
|
+
action_attempt_id: string;
|
|
1555
|
+
result: {
|
|
1556
|
+
acs_credential_id: string | null;
|
|
1557
|
+
card_number: string | null;
|
|
1558
|
+
};
|
|
1559
|
+
action_type: "READ_CARD";
|
|
1560
|
+
} | {
|
|
1561
|
+
error: {
|
|
1562
|
+
type: string;
|
|
1563
|
+
message: string;
|
|
1564
|
+
};
|
|
1565
|
+
status: "error";
|
|
1566
|
+
action_attempt_id: string;
|
|
1567
|
+
result: null;
|
|
1568
|
+
action_type: "READ_CARD";
|
|
1569
|
+
} | {
|
|
1570
|
+
error: null;
|
|
1571
|
+
status: "pending";
|
|
1572
|
+
action_attempt_id: string;
|
|
1573
|
+
result: null;
|
|
1574
|
+
action_type: "ENCODE_CARD";
|
|
1575
|
+
} | {
|
|
1576
|
+
error: null;
|
|
1577
|
+
status: "success";
|
|
1578
|
+
action_attempt_id: string;
|
|
1579
|
+
result: {
|
|
1580
|
+
acs_credential_id: string | null;
|
|
1581
|
+
card_number: string | null;
|
|
1582
|
+
};
|
|
1583
|
+
action_type: "ENCODE_CARD";
|
|
1584
|
+
} | {
|
|
1585
|
+
error: {
|
|
1586
|
+
type: string;
|
|
1587
|
+
message: string;
|
|
1588
|
+
};
|
|
1589
|
+
status: "error";
|
|
1590
|
+
action_attempt_id: string;
|
|
1591
|
+
result: null;
|
|
1592
|
+
action_type: "ENCODE_CARD";
|
|
1472
1593
|
} | {
|
|
1473
1594
|
error: null;
|
|
1474
1595
|
status: "pending";
|
|
@@ -1810,6 +1931,54 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1810
1931
|
action_attempt_id: string;
|
|
1811
1932
|
result: null;
|
|
1812
1933
|
action_type: "UNLOCK_DOOR";
|
|
1934
|
+
} | {
|
|
1935
|
+
error: null;
|
|
1936
|
+
status: "pending";
|
|
1937
|
+
action_attempt_id: string;
|
|
1938
|
+
result: null;
|
|
1939
|
+
action_type: "READ_CARD";
|
|
1940
|
+
} | {
|
|
1941
|
+
error: null;
|
|
1942
|
+
status: "success";
|
|
1943
|
+
action_attempt_id: string;
|
|
1944
|
+
result: {
|
|
1945
|
+
acs_credential_id: string | null;
|
|
1946
|
+
card_number: string | null;
|
|
1947
|
+
};
|
|
1948
|
+
action_type: "READ_CARD";
|
|
1949
|
+
} | {
|
|
1950
|
+
error: {
|
|
1951
|
+
type: string;
|
|
1952
|
+
message: string;
|
|
1953
|
+
};
|
|
1954
|
+
status: "error";
|
|
1955
|
+
action_attempt_id: string;
|
|
1956
|
+
result: null;
|
|
1957
|
+
action_type: "READ_CARD";
|
|
1958
|
+
} | {
|
|
1959
|
+
error: null;
|
|
1960
|
+
status: "pending";
|
|
1961
|
+
action_attempt_id: string;
|
|
1962
|
+
result: null;
|
|
1963
|
+
action_type: "ENCODE_CARD";
|
|
1964
|
+
} | {
|
|
1965
|
+
error: null;
|
|
1966
|
+
status: "success";
|
|
1967
|
+
action_attempt_id: string;
|
|
1968
|
+
result: {
|
|
1969
|
+
acs_credential_id: string | null;
|
|
1970
|
+
card_number: string | null;
|
|
1971
|
+
};
|
|
1972
|
+
action_type: "ENCODE_CARD";
|
|
1973
|
+
} | {
|
|
1974
|
+
error: {
|
|
1975
|
+
type: string;
|
|
1976
|
+
message: string;
|
|
1977
|
+
};
|
|
1978
|
+
status: "error";
|
|
1979
|
+
action_attempt_id: string;
|
|
1980
|
+
result: null;
|
|
1981
|
+
action_type: "ENCODE_CARD";
|
|
1813
1982
|
} | {
|
|
1814
1983
|
error: null;
|
|
1815
1984
|
status: "pending";
|
|
@@ -2251,4 +2420,4 @@ declare const isPublishableKey: (token: string) => boolean;
|
|
|
2251
2420
|
declare const isConsoleSessionToken: (token: string) => boolean;
|
|
2252
2421
|
declare const isPersonalAccessToken: (token: string) => boolean;
|
|
2253
2422
|
|
|
2254
|
-
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 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 AcsAccessGroupsUnmanagedGetOptions, type AcsAccessGroupsUnmanagedGetParams, type AcsAccessGroupsUnmanagedGetResponse, type AcsAccessGroupsUnmanagedListOptions, type AcsAccessGroupsUnmanagedListParams, type AcsAccessGroupsUnmanagedListResponse, type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParams, type AcsCredentialPoolsListResponse, type AcsCredentialProvisioningAutomationsLaunchBody, type AcsCredentialProvisioningAutomationsLaunchOptions, type AcsCredentialProvisioningAutomationsLaunchResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type 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 AcsCredentialsUnmanagedGetOptions, type AcsCredentialsUnmanagedGetParams, type AcsCredentialsUnmanagedGetResponse, type AcsCredentialsUnmanagedListOptions, type AcsCredentialsUnmanagedListParams, type AcsCredentialsUnmanagedListResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEntrancesGetOptions, type AcsEntrancesGetParams, type AcsEntrancesGetResponse, type AcsEntrancesGrantAccessBody, type AcsEntrancesGrantAccessOptions, type AcsEntrancesGrantAccessResponse, type AcsEntrancesListCredentialsWithAccessOptions, type AcsEntrancesListCredentialsWithAccessParams, type AcsEntrancesListCredentialsWithAccessResponse, type AcsEntrancesListOptions, type AcsEntrancesListParams, type AcsEntrancesListResponse, type AcsSystemsGetOptions, type AcsSystemsGetParams, type AcsSystemsGetResponse, type 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 AcsUsersUnmanagedGetOptions, type AcsUsersUnmanagedGetParams, type AcsUsersUnmanagedGetResponse, type AcsUsersUnmanagedListOptions, type AcsUsersUnmanagedListParams, type AcsUsersUnmanagedListResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteOptions, type ClientSessionsDeleteParams, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeOptions, type ClientSessionsRevokeParams, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteParams, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteParams, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesDeleteOptions, type DevicesDeleteParams, type DevicesDeleteResponse, 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 DevicesSimulateRemoveOptions, type DevicesSimulateRemoveParams, 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 PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsAccessGroupsUnmanaged, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsCredentialsUnmanaged, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpAcsUsersUnmanaged, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, 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, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, 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 ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type 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 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 };
|
|
2423
|
+
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 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 AcsAccessGroupsUnmanagedGetOptions, type AcsAccessGroupsUnmanagedGetParams, type AcsAccessGroupsUnmanagedGetResponse, type AcsAccessGroupsUnmanagedListOptions, type AcsAccessGroupsUnmanagedListParams, type AcsAccessGroupsUnmanagedListResponse, type AcsCredentialPoolsListOptions, type AcsCredentialPoolsListParams, type AcsCredentialPoolsListResponse, type AcsCredentialProvisioningAutomationsLaunchBody, type AcsCredentialProvisioningAutomationsLaunchOptions, type AcsCredentialProvisioningAutomationsLaunchResponse, type AcsCredentialsAssignBody, type AcsCredentialsAssignOptions, type AcsCredentialsAssignResponse, type AcsCredentialsCreateBody, type AcsCredentialsCreateOptions, type AcsCredentialsCreateResponse, type 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 AcsCredentialsUnmanagedGetOptions, type AcsCredentialsUnmanagedGetParams, type AcsCredentialsUnmanagedGetResponse, type AcsCredentialsUnmanagedListOptions, type AcsCredentialsUnmanagedListParams, type AcsCredentialsUnmanagedListResponse, type AcsCredentialsUpdateBody, type AcsCredentialsUpdateOptions, type AcsCredentialsUpdateResponse, type AcsEncodersEncodeCardBody, type AcsEncodersEncodeCardOptions, type AcsEncodersEncodeCardResponse, type AcsEncodersListOptions, type AcsEncodersListParams, type AcsEncodersListResponse, type AcsEncodersReadCardBody, type AcsEncodersReadCardOptions, type AcsEncodersReadCardResponse, 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 AcsUsersUnmanagedGetOptions, type AcsUsersUnmanagedGetParams, type AcsUsersUnmanagedGetResponse, type AcsUsersUnmanagedListOptions, type AcsUsersUnmanagedListParams, type AcsUsersUnmanagedListResponse, type AcsUsersUnsuspendBody, type AcsUsersUnsuspendOptions, type AcsUsersUnsuspendResponse, type AcsUsersUpdateBody, type AcsUsersUpdateOptions, type AcsUsersUpdateResponse, type ActionAttemptsGetOptions, type ActionAttemptsGetParams, type ActionAttemptsGetResponse, type ActionAttemptsListOptions, type ActionAttemptsListParams, type ActionAttemptsListResponse, type ClientSessionsCreateBody, type ClientSessionsCreateOptions, type ClientSessionsCreateResponse, type ClientSessionsDeleteOptions, type ClientSessionsDeleteParams, type ClientSessionsDeleteResponse, type ClientSessionsGetOptions, type ClientSessionsGetOrCreateBody, type ClientSessionsGetOrCreateOptions, type ClientSessionsGetOrCreateResponse, type ClientSessionsGetParams, type ClientSessionsGetResponse, type ClientSessionsGrantAccessBody, type ClientSessionsGrantAccessOptions, type ClientSessionsGrantAccessResponse, type ClientSessionsListOptions, type ClientSessionsListParams, type ClientSessionsListResponse, type ClientSessionsRevokeOptions, type ClientSessionsRevokeParams, type ClientSessionsRevokeResponse, type ConnectWebviewsCreateBody, type ConnectWebviewsCreateOptions, type ConnectWebviewsCreateResponse, type ConnectWebviewsDeleteOptions, type ConnectWebviewsDeleteParams, type ConnectWebviewsDeleteResponse, type ConnectWebviewsGetOptions, type ConnectWebviewsGetParams, type ConnectWebviewsGetResponse, type ConnectWebviewsListOptions, type ConnectWebviewsListParams, type ConnectWebviewsListResponse, type ConnectedAccountsDeleteOptions, type ConnectedAccountsDeleteParams, type ConnectedAccountsDeleteResponse, type ConnectedAccountsGetOptions, type ConnectedAccountsGetParams, type ConnectedAccountsGetResponse, type ConnectedAccountsListOptions, type ConnectedAccountsListParams, type ConnectedAccountsListResponse, type ConnectedAccountsUpdateBody, type ConnectedAccountsUpdateOptions, type ConnectedAccountsUpdateResponse, type DevicesDeleteOptions, type DevicesDeleteParams, type DevicesDeleteResponse, 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 DevicesSimulateRemoveOptions, type DevicesSimulateRemoveParams, 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 PhonesListOptions, type PhonesListParams, type PhonesListResponse, type PhonesSimulateCreateSandboxPhoneBody, type PhonesSimulateCreateSandboxPhoneOptions, type PhonesSimulateCreateSandboxPhoneResponse, SeamActionAttemptError, SeamActionAttemptFailedError, SeamActionAttemptTimeoutError, SeamHttp, SeamHttpAccessCodes, SeamHttpAccessCodesSimulate, SeamHttpAccessCodesUnmanaged, SeamHttpAcs, SeamHttpAcsAccessGroups, SeamHttpAcsAccessGroupsUnmanaged, SeamHttpAcsCredentialPools, SeamHttpAcsCredentialProvisioningAutomations, SeamHttpAcsCredentials, SeamHttpAcsCredentialsUnmanaged, SeamHttpAcsEncoders, SeamHttpAcsEntrances, SeamHttpAcsSystems, SeamHttpAcsUsers, SeamHttpAcsUsersUnmanaged, SeamHttpActionAttempts, SeamHttpApiError, SeamHttpClientSessions, SeamHttpConnectWebviews, SeamHttpConnectedAccounts, SeamHttpDevices, SeamHttpDevicesSimulate, SeamHttpDevicesUnmanaged, SeamHttpEvents, type SeamHttpFromPublishableKeyOptions, SeamHttpInvalidInputError, SeamHttpInvalidOptionsError, SeamHttpInvalidTokenError, SeamHttpLocks, SeamHttpMultiWorkspace, SeamHttpMultiWorkspaceInvalidOptionsError, type SeamHttpMultiWorkspaceOptions, 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, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, 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 ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type 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 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 };
|
package/dist/index.cjs
CHANGED
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,IAAO,WAAQ,GAAA","file":"index.cjs","sourcesContent":["export default null\n"]}
|
|
@@ -46,6 +46,54 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
46
46
|
action_attempt_id: string;
|
|
47
47
|
result: null;
|
|
48
48
|
action_type: "UNLOCK_DOOR";
|
|
49
|
+
} | {
|
|
50
|
+
error: null;
|
|
51
|
+
status: "pending";
|
|
52
|
+
action_attempt_id: string;
|
|
53
|
+
result: null;
|
|
54
|
+
action_type: "READ_CARD";
|
|
55
|
+
} | {
|
|
56
|
+
error: null;
|
|
57
|
+
status: "success";
|
|
58
|
+
action_attempt_id: string;
|
|
59
|
+
result: {
|
|
60
|
+
acs_credential_id: string | null;
|
|
61
|
+
card_number: string | null;
|
|
62
|
+
};
|
|
63
|
+
action_type: "READ_CARD";
|
|
64
|
+
} | {
|
|
65
|
+
error: {
|
|
66
|
+
type: string;
|
|
67
|
+
message: string;
|
|
68
|
+
};
|
|
69
|
+
status: "error";
|
|
70
|
+
action_attempt_id: string;
|
|
71
|
+
result: null;
|
|
72
|
+
action_type: "READ_CARD";
|
|
73
|
+
} | {
|
|
74
|
+
error: null;
|
|
75
|
+
status: "pending";
|
|
76
|
+
action_attempt_id: string;
|
|
77
|
+
result: null;
|
|
78
|
+
action_type: "ENCODE_CARD";
|
|
79
|
+
} | {
|
|
80
|
+
error: null;
|
|
81
|
+
status: "success";
|
|
82
|
+
action_attempt_id: string;
|
|
83
|
+
result: {
|
|
84
|
+
acs_credential_id: string | null;
|
|
85
|
+
card_number: string | null;
|
|
86
|
+
};
|
|
87
|
+
action_type: "ENCODE_CARD";
|
|
88
|
+
} | {
|
|
89
|
+
error: {
|
|
90
|
+
type: string;
|
|
91
|
+
message: string;
|
|
92
|
+
};
|
|
93
|
+
status: "error";
|
|
94
|
+
action_attempt_id: string;
|
|
95
|
+
result: null;
|
|
96
|
+
action_type: "ENCODE_CARD";
|
|
49
97
|
} | {
|
|
50
98
|
error: null;
|
|
51
99
|
status: "pending";
|
|
@@ -385,6 +433,54 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
385
433
|
action_attempt_id: string;
|
|
386
434
|
result: null;
|
|
387
435
|
action_type: "UNLOCK_DOOR";
|
|
436
|
+
} | {
|
|
437
|
+
error: null;
|
|
438
|
+
status: "pending";
|
|
439
|
+
action_attempt_id: string;
|
|
440
|
+
result: null;
|
|
441
|
+
action_type: "READ_CARD";
|
|
442
|
+
} | {
|
|
443
|
+
error: null;
|
|
444
|
+
status: "success";
|
|
445
|
+
action_attempt_id: string;
|
|
446
|
+
result: {
|
|
447
|
+
acs_credential_id: string | null;
|
|
448
|
+
card_number: string | null;
|
|
449
|
+
};
|
|
450
|
+
action_type: "READ_CARD";
|
|
451
|
+
} | {
|
|
452
|
+
error: {
|
|
453
|
+
type: string;
|
|
454
|
+
message: string;
|
|
455
|
+
};
|
|
456
|
+
status: "error";
|
|
457
|
+
action_attempt_id: string;
|
|
458
|
+
result: null;
|
|
459
|
+
action_type: "READ_CARD";
|
|
460
|
+
} | {
|
|
461
|
+
error: null;
|
|
462
|
+
status: "pending";
|
|
463
|
+
action_attempt_id: string;
|
|
464
|
+
result: null;
|
|
465
|
+
action_type: "ENCODE_CARD";
|
|
466
|
+
} | {
|
|
467
|
+
error: null;
|
|
468
|
+
status: "success";
|
|
469
|
+
action_attempt_id: string;
|
|
470
|
+
result: {
|
|
471
|
+
acs_credential_id: string | null;
|
|
472
|
+
card_number: string | null;
|
|
473
|
+
};
|
|
474
|
+
action_type: "ENCODE_CARD";
|
|
475
|
+
} | {
|
|
476
|
+
error: {
|
|
477
|
+
type: string;
|
|
478
|
+
message: string;
|
|
479
|
+
};
|
|
480
|
+
status: "error";
|
|
481
|
+
action_attempt_id: string;
|
|
482
|
+
result: null;
|
|
483
|
+
action_type: "ENCODE_CARD";
|
|
388
484
|
} | {
|
|
389
485
|
error: null;
|
|
390
486
|
status: "pending";
|
|
@@ -726,6 +822,54 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
726
822
|
action_attempt_id: string;
|
|
727
823
|
result: null;
|
|
728
824
|
action_type: "UNLOCK_DOOR";
|
|
825
|
+
} | {
|
|
826
|
+
error: null;
|
|
827
|
+
status: "pending";
|
|
828
|
+
action_attempt_id: string;
|
|
829
|
+
result: null;
|
|
830
|
+
action_type: "READ_CARD";
|
|
831
|
+
} | {
|
|
832
|
+
error: null;
|
|
833
|
+
status: "success";
|
|
834
|
+
action_attempt_id: string;
|
|
835
|
+
result: {
|
|
836
|
+
acs_credential_id: string | null;
|
|
837
|
+
card_number: string | null;
|
|
838
|
+
};
|
|
839
|
+
action_type: "READ_CARD";
|
|
840
|
+
} | {
|
|
841
|
+
error: {
|
|
842
|
+
type: string;
|
|
843
|
+
message: string;
|
|
844
|
+
};
|
|
845
|
+
status: "error";
|
|
846
|
+
action_attempt_id: string;
|
|
847
|
+
result: null;
|
|
848
|
+
action_type: "READ_CARD";
|
|
849
|
+
} | {
|
|
850
|
+
error: null;
|
|
851
|
+
status: "pending";
|
|
852
|
+
action_attempt_id: string;
|
|
853
|
+
result: null;
|
|
854
|
+
action_type: "ENCODE_CARD";
|
|
855
|
+
} | {
|
|
856
|
+
error: null;
|
|
857
|
+
status: "success";
|
|
858
|
+
action_attempt_id: string;
|
|
859
|
+
result: {
|
|
860
|
+
acs_credential_id: string | null;
|
|
861
|
+
card_number: string | null;
|
|
862
|
+
};
|
|
863
|
+
action_type: "ENCODE_CARD";
|
|
864
|
+
} | {
|
|
865
|
+
error: {
|
|
866
|
+
type: string;
|
|
867
|
+
message: string;
|
|
868
|
+
};
|
|
869
|
+
status: "error";
|
|
870
|
+
action_attempt_id: string;
|
|
871
|
+
result: null;
|
|
872
|
+
action_type: "ENCODE_CARD";
|
|
729
873
|
} | {
|
|
730
874
|
error: null;
|
|
731
875
|
status: "pending";
|
|
@@ -1067,6 +1211,54 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1067
1211
|
action_attempt_id: string;
|
|
1068
1212
|
result: null;
|
|
1069
1213
|
action_type: "UNLOCK_DOOR";
|
|
1214
|
+
} | {
|
|
1215
|
+
error: null;
|
|
1216
|
+
status: "pending";
|
|
1217
|
+
action_attempt_id: string;
|
|
1218
|
+
result: null;
|
|
1219
|
+
action_type: "READ_CARD";
|
|
1220
|
+
} | {
|
|
1221
|
+
error: null;
|
|
1222
|
+
status: "success";
|
|
1223
|
+
action_attempt_id: string;
|
|
1224
|
+
result: {
|
|
1225
|
+
acs_credential_id: string | null;
|
|
1226
|
+
card_number: string | null;
|
|
1227
|
+
};
|
|
1228
|
+
action_type: "READ_CARD";
|
|
1229
|
+
} | {
|
|
1230
|
+
error: {
|
|
1231
|
+
type: string;
|
|
1232
|
+
message: string;
|
|
1233
|
+
};
|
|
1234
|
+
status: "error";
|
|
1235
|
+
action_attempt_id: string;
|
|
1236
|
+
result: null;
|
|
1237
|
+
action_type: "READ_CARD";
|
|
1238
|
+
} | {
|
|
1239
|
+
error: null;
|
|
1240
|
+
status: "pending";
|
|
1241
|
+
action_attempt_id: string;
|
|
1242
|
+
result: null;
|
|
1243
|
+
action_type: "ENCODE_CARD";
|
|
1244
|
+
} | {
|
|
1245
|
+
error: null;
|
|
1246
|
+
status: "success";
|
|
1247
|
+
action_attempt_id: string;
|
|
1248
|
+
result: {
|
|
1249
|
+
acs_credential_id: string | null;
|
|
1250
|
+
card_number: string | null;
|
|
1251
|
+
};
|
|
1252
|
+
action_type: "ENCODE_CARD";
|
|
1253
|
+
} | {
|
|
1254
|
+
error: {
|
|
1255
|
+
type: string;
|
|
1256
|
+
message: string;
|
|
1257
|
+
};
|
|
1258
|
+
status: "error";
|
|
1259
|
+
action_attempt_id: string;
|
|
1260
|
+
result: null;
|
|
1261
|
+
action_type: "ENCODE_CARD";
|
|
1070
1262
|
} | {
|
|
1071
1263
|
error: null;
|
|
1072
1264
|
status: "pending";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
+
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
3
|
+
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
4
|
+
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
+
import type { SetNonNullable } from '../../../../lib/types.js';
|
|
6
|
+
export declare class SeamHttpAcsEncoders {
|
|
7
|
+
client: Client;
|
|
8
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
9
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
10
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpAcsEncoders;
|
|
11
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpAcsEncoders;
|
|
12
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpAcsEncoders;
|
|
13
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpAcsEncoders>;
|
|
14
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpAcsEncoders;
|
|
15
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpAcsEncoders;
|
|
16
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
17
|
+
encodeCard(body?: AcsEncodersEncodeCardBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersEncodeCardResponse, 'action_attempt'>;
|
|
18
|
+
list(body?: AcsEncodersListParams): SeamHttpRequest<AcsEncodersListResponse, 'devices'>;
|
|
19
|
+
readCard(body?: AcsEncodersReadCardBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<AcsEncodersReadCardResponse, 'action_attempt'>;
|
|
20
|
+
}
|
|
21
|
+
export type AcsEncodersEncodeCardBody = RouteRequestBody<'/acs/encoders/encode_card'>;
|
|
22
|
+
export type AcsEncodersEncodeCardResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/encode_card'>>>;
|
|
23
|
+
export type AcsEncodersEncodeCardOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
24
|
+
export type AcsEncodersListParams = RouteRequestBody<'/acs/encoders/list'>;
|
|
25
|
+
export type AcsEncodersListResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/list'>>>;
|
|
26
|
+
export type AcsEncodersListOptions = never;
|
|
27
|
+
export type AcsEncodersReadCardBody = RouteRequestBody<'/acs/encoders/read_card'>;
|
|
28
|
+
export type AcsEncodersReadCardResponse = SetNonNullable<Required<RouteResponse<'/acs/encoders/read_card'>>>;
|
|
29
|
+
export type AcsEncodersReadCardOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Automatically generated by generate-routes.ts.
|
|
3
|
+
* Do not edit this file or add other files to this directory.
|
|
4
|
+
*/
|
|
5
|
+
import { getAuthHeadersForClientSessionToken, warnOnInsecureuserIdentifierKey, } from '../../../../lib/seam/connect/auth.js';
|
|
6
|
+
import { createClient } from '../../../../lib/seam/connect/client.js';
|
|
7
|
+
import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOptionsWithClientSessionToken, isSeamHttpOptionsWithConsoleSessionToken, isSeamHttpOptionsWithPersonalAccessToken, SeamHttpInvalidOptionsError, } from '../../../../lib/seam/connect/options.js';
|
|
8
|
+
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../lib/seam/connect/parse-options.js';
|
|
9
|
+
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
10
|
+
import { SeamHttpClientSessions } from './client-sessions.js';
|
|
11
|
+
export class SeamHttpAcsEncoders {
|
|
12
|
+
constructor(apiKeyOrOptions = {}) {
|
|
13
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
14
|
+
this.client = 'client' in options ? options.client : createClient(options);
|
|
15
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
16
|
+
}
|
|
17
|
+
static fromClient(client, options = {}) {
|
|
18
|
+
const constructorOptions = { ...options, client };
|
|
19
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
20
|
+
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
21
|
+
}
|
|
22
|
+
return new SeamHttpAcsEncoders(constructorOptions);
|
|
23
|
+
}
|
|
24
|
+
static fromApiKey(apiKey, options = {}) {
|
|
25
|
+
const constructorOptions = { ...options, apiKey };
|
|
26
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
27
|
+
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
28
|
+
}
|
|
29
|
+
return new SeamHttpAcsEncoders(constructorOptions);
|
|
30
|
+
}
|
|
31
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
32
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
33
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
34
|
+
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
35
|
+
}
|
|
36
|
+
return new SeamHttpAcsEncoders(constructorOptions);
|
|
37
|
+
}
|
|
38
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
39
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
40
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
41
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
42
|
+
throw new SeamHttpInvalidOptionsError('The client option cannot be used with SeamHttp.fromPublishableKey');
|
|
43
|
+
}
|
|
44
|
+
const client = createClient(clientOptions);
|
|
45
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
46
|
+
const { token } = await clientSessions.getOrCreate({
|
|
47
|
+
user_identifier_key: userIdentifierKey,
|
|
48
|
+
});
|
|
49
|
+
return SeamHttpAcsEncoders.fromClientSessionToken(token, options);
|
|
50
|
+
}
|
|
51
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
52
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
53
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
54
|
+
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
55
|
+
}
|
|
56
|
+
return new SeamHttpAcsEncoders(constructorOptions);
|
|
57
|
+
}
|
|
58
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
59
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
60
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
61
|
+
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
62
|
+
}
|
|
63
|
+
return new SeamHttpAcsEncoders(constructorOptions);
|
|
64
|
+
}
|
|
65
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
66
|
+
const { headers } = this.client.defaults;
|
|
67
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
68
|
+
clientSessionToken,
|
|
69
|
+
});
|
|
70
|
+
for (const key of Object.keys(authHeaders)) {
|
|
71
|
+
if (headers[key] == null) {
|
|
72
|
+
throw new Error('Cannot update a clientSessionToken on a client created without a clientSessionToken');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
76
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
77
|
+
await clientSessions.get();
|
|
78
|
+
}
|
|
79
|
+
encodeCard(body, options = {}) {
|
|
80
|
+
return new SeamHttpRequest(this, {
|
|
81
|
+
path: '/acs/encoders/encode_card',
|
|
82
|
+
method: 'post',
|
|
83
|
+
body,
|
|
84
|
+
responseKey: 'action_attempt',
|
|
85
|
+
options,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
list(body) {
|
|
89
|
+
return new SeamHttpRequest(this, {
|
|
90
|
+
path: '/acs/encoders/list',
|
|
91
|
+
method: 'post',
|
|
92
|
+
body,
|
|
93
|
+
responseKey: 'devices',
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
readCard(body, options = {}) {
|
|
97
|
+
return new SeamHttpRequest(this, {
|
|
98
|
+
path: '/acs/encoders/read_card',
|
|
99
|
+
method: 'post',
|
|
100
|
+
body,
|
|
101
|
+
responseKey: 'action_attempt',
|
|
102
|
+
options,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=acs-encoders.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acs-encoders.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/acs-encoders.ts"],"names":[],"mappings":"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"}
|