@seamapi/http 1.4.0 → 1.5.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 +55 -28
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +113 -34
- package/lib/seam/connect/resolve-action-attempt.d.ts +84 -0
- package/lib/seam/connect/routes/index.d.ts +1 -1
- package/lib/seam/connect/routes/index.js +1 -1
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-schedules.d.ts +37 -0
- package/lib/seam/connect/routes/{thermostats-climate-setting-schedules.js → thermostats-schedules.js} +16 -16
- package/lib/seam/connect/routes/thermostats-schedules.js.map +1 -0
- package/lib/seam/connect/routes/thermostats.d.ts +22 -6
- package/lib/seam/connect/routes/thermostats.js +39 -6
- 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 +3 -3
- package/src/lib/seam/connect/routes/index.ts +1 -1
- package/src/lib/seam/connect/routes/{thermostats-climate-setting-schedules.ts → thermostats-schedules.ts} +55 -64
- package/src/lib/seam/connect/routes/thermostats.ts +101 -13
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +0 -37
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +0 -1
package/dist/connect.d.cts
CHANGED
|
@@ -834,38 +834,38 @@ type PhonesListParams = RouteRequestBody<'/phones/list'>;
|
|
|
834
834
|
type PhonesListResponse = SetNonNullable<Required<RouteResponse<'/phones/list'>>>;
|
|
835
835
|
type PhonesListOptions = never;
|
|
836
836
|
|
|
837
|
-
declare class
|
|
837
|
+
declare class SeamHttpThermostatsSchedules {
|
|
838
838
|
client: Client;
|
|
839
839
|
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
840
840
|
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
841
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>):
|
|
842
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>):
|
|
843
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>):
|
|
844
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<
|
|
845
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>):
|
|
846
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>):
|
|
841
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpThermostatsSchedules;
|
|
842
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsSchedules;
|
|
843
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsSchedules;
|
|
844
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsSchedules>;
|
|
845
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpThermostatsSchedules;
|
|
846
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostatsSchedules;
|
|
847
847
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
848
|
-
create(body?:
|
|
849
|
-
delete(body?:
|
|
850
|
-
get(body?:
|
|
851
|
-
list(body?:
|
|
852
|
-
update(body?:
|
|
853
|
-
}
|
|
854
|
-
type
|
|
855
|
-
type
|
|
856
|
-
type
|
|
857
|
-
type
|
|
858
|
-
type
|
|
859
|
-
type
|
|
860
|
-
type
|
|
861
|
-
type
|
|
862
|
-
type
|
|
863
|
-
type
|
|
864
|
-
type
|
|
865
|
-
type
|
|
866
|
-
type
|
|
867
|
-
type
|
|
868
|
-
type
|
|
848
|
+
create(body?: ThermostatsSchedulesCreateBody): SeamHttpRequest<ThermostatsSchedulesCreateResponse, 'thermostat_schedule'>;
|
|
849
|
+
delete(body?: ThermostatsSchedulesDeleteParams): SeamHttpRequest<void, undefined>;
|
|
850
|
+
get(body?: ThermostatsSchedulesGetParams): SeamHttpRequest<ThermostatsSchedulesGetResponse, 'thermostat_schedule'>;
|
|
851
|
+
list(body?: ThermostatsSchedulesListParams): SeamHttpRequest<ThermostatsSchedulesListResponse, 'thermostat_schedules'>;
|
|
852
|
+
update(body?: ThermostatsSchedulesUpdateBody): SeamHttpRequest<void, undefined>;
|
|
853
|
+
}
|
|
854
|
+
type ThermostatsSchedulesCreateBody = RouteRequestBody<'/thermostats/schedules/create'>;
|
|
855
|
+
type ThermostatsSchedulesCreateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/create'>>>;
|
|
856
|
+
type ThermostatsSchedulesCreateOptions = never;
|
|
857
|
+
type ThermostatsSchedulesDeleteParams = RouteRequestBody<'/thermostats/schedules/delete'>;
|
|
858
|
+
type ThermostatsSchedulesDeleteResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/delete'>>>;
|
|
859
|
+
type ThermostatsSchedulesDeleteOptions = never;
|
|
860
|
+
type ThermostatsSchedulesGetParams = RouteRequestBody<'/thermostats/schedules/get'>;
|
|
861
|
+
type ThermostatsSchedulesGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/get'>>>;
|
|
862
|
+
type ThermostatsSchedulesGetOptions = never;
|
|
863
|
+
type ThermostatsSchedulesListParams = RouteRequestBody<'/thermostats/schedules/list'>;
|
|
864
|
+
type ThermostatsSchedulesListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/list'>>>;
|
|
865
|
+
type ThermostatsSchedulesListOptions = never;
|
|
866
|
+
type ThermostatsSchedulesUpdateBody = RouteRequestBody<'/thermostats/schedules/update'>;
|
|
867
|
+
type ThermostatsSchedulesUpdateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/update'>>>;
|
|
868
|
+
type ThermostatsSchedulesUpdateOptions = never;
|
|
869
869
|
|
|
870
870
|
declare class SeamHttpThermostats {
|
|
871
871
|
client: Client;
|
|
@@ -878,19 +878,32 @@ declare class SeamHttpThermostats {
|
|
|
878
878
|
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpThermostats;
|
|
879
879
|
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostats;
|
|
880
880
|
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
881
|
-
get
|
|
881
|
+
get schedules(): SeamHttpThermostatsSchedules;
|
|
882
|
+
activateClimatePreset(body?: ThermostatsActivateClimatePresetBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsActivateClimatePresetResponse, 'action_attempt'>;
|
|
882
883
|
cool(body?: ThermostatsCoolBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsCoolResponse, 'action_attempt'>;
|
|
884
|
+
createClimatePreset(body?: ThermostatsCreateClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
885
|
+
deleteClimatePreset(body?: ThermostatsDeleteClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
883
886
|
get(body?: ThermostatsGetParams): SeamHttpRequest<ThermostatsGetResponse, 'thermostat'>;
|
|
884
887
|
heat(body?: ThermostatsHeatBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsHeatResponse, 'action_attempt'>;
|
|
885
888
|
heatCool(body?: ThermostatsHeatCoolBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsHeatCoolResponse, 'action_attempt'>;
|
|
886
889
|
list(body?: ThermostatsListParams): SeamHttpRequest<ThermostatsListResponse, 'thermostats'>;
|
|
887
890
|
off(body?: ThermostatsOffBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsOffResponse, 'action_attempt'>;
|
|
891
|
+
setFallbackClimatePreset(body?: ThermostatsSetFallbackClimatePresetBody): SeamHttpRequest<void, undefined>;
|
|
888
892
|
setFanMode(body?: ThermostatsSetFanModeBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsSetFanModeResponse, 'action_attempt'>;
|
|
889
|
-
|
|
893
|
+
updateClimatePreset(body?: ThermostatsUpdateClimatePresetBody): SeamHttpRequest<ThermostatsUpdateClimatePresetResponse, 'climate_preset'>;
|
|
890
894
|
}
|
|
895
|
+
type ThermostatsActivateClimatePresetBody = RouteRequestBody<'/thermostats/activate_climate_preset'>;
|
|
896
|
+
type ThermostatsActivateClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/activate_climate_preset'>>>;
|
|
897
|
+
type ThermostatsActivateClimatePresetOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
891
898
|
type ThermostatsCoolBody = RouteRequestBody<'/thermostats/cool'>;
|
|
892
899
|
type ThermostatsCoolResponse = SetNonNullable<Required<RouteResponse<'/thermostats/cool'>>>;
|
|
893
900
|
type ThermostatsCoolOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
901
|
+
type ThermostatsCreateClimatePresetBody = RouteRequestBody<'/thermostats/create_climate_preset'>;
|
|
902
|
+
type ThermostatsCreateClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/create_climate_preset'>>>;
|
|
903
|
+
type ThermostatsCreateClimatePresetOptions = never;
|
|
904
|
+
type ThermostatsDeleteClimatePresetBody = RouteRequestBody<'/thermostats/delete_climate_preset'>;
|
|
905
|
+
type ThermostatsDeleteClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/delete_climate_preset'>>>;
|
|
906
|
+
type ThermostatsDeleteClimatePresetOptions = never;
|
|
894
907
|
type ThermostatsGetParams = RouteRequestBody<'/thermostats/get'>;
|
|
895
908
|
type ThermostatsGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/get'>>>;
|
|
896
909
|
type ThermostatsGetOptions = never;
|
|
@@ -906,12 +919,15 @@ type ThermostatsListOptions = never;
|
|
|
906
919
|
type ThermostatsOffBody = RouteRequestBody<'/thermostats/off'>;
|
|
907
920
|
type ThermostatsOffResponse = SetNonNullable<Required<RouteResponse<'/thermostats/off'>>>;
|
|
908
921
|
type ThermostatsOffOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
922
|
+
type ThermostatsSetFallbackClimatePresetBody = RouteRequestBody<'/thermostats/set_fallback_climate_preset'>;
|
|
923
|
+
type ThermostatsSetFallbackClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/set_fallback_climate_preset'>>>;
|
|
924
|
+
type ThermostatsSetFallbackClimatePresetOptions = never;
|
|
909
925
|
type ThermostatsSetFanModeBody = RouteRequestBody<'/thermostats/set_fan_mode'>;
|
|
910
926
|
type ThermostatsSetFanModeResponse = SetNonNullable<Required<RouteResponse<'/thermostats/set_fan_mode'>>>;
|
|
911
927
|
type ThermostatsSetFanModeOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>;
|
|
912
|
-
type
|
|
913
|
-
type
|
|
914
|
-
type
|
|
928
|
+
type ThermostatsUpdateClimatePresetBody = RouteRequestBody<'/thermostats/update_climate_preset'>;
|
|
929
|
+
type ThermostatsUpdateClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/update_climate_preset'>>>;
|
|
930
|
+
type ThermostatsUpdateClimatePresetOptions = never;
|
|
915
931
|
|
|
916
932
|
declare class SeamHttpUserIdentitiesEnrollmentAutomations {
|
|
917
933
|
client: Client;
|
|
@@ -1238,6 +1254,27 @@ declare const isSeamActionAttemptError: <T extends {
|
|
|
1238
1254
|
action_attempt_id: string;
|
|
1239
1255
|
result: null;
|
|
1240
1256
|
action_type: "SET_THERMOSTAT_OFF";
|
|
1257
|
+
} | {
|
|
1258
|
+
error: null;
|
|
1259
|
+
status: "pending";
|
|
1260
|
+
action_attempt_id: string;
|
|
1261
|
+
result: null;
|
|
1262
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1263
|
+
} | {
|
|
1264
|
+
error: null;
|
|
1265
|
+
status: "success";
|
|
1266
|
+
action_attempt_id: string;
|
|
1267
|
+
result: {};
|
|
1268
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1269
|
+
} | {
|
|
1270
|
+
error: {
|
|
1271
|
+
type: string;
|
|
1272
|
+
message: string;
|
|
1273
|
+
};
|
|
1274
|
+
status: "error";
|
|
1275
|
+
action_attempt_id: string;
|
|
1276
|
+
result: null;
|
|
1277
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1241
1278
|
} | {
|
|
1242
1279
|
error: null;
|
|
1243
1280
|
status: "pending";
|
|
@@ -1558,6 +1595,27 @@ declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
1558
1595
|
action_attempt_id: string;
|
|
1559
1596
|
result: null;
|
|
1560
1597
|
action_type: "SET_THERMOSTAT_OFF";
|
|
1598
|
+
} | {
|
|
1599
|
+
error: null;
|
|
1600
|
+
status: "pending";
|
|
1601
|
+
action_attempt_id: string;
|
|
1602
|
+
result: null;
|
|
1603
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1604
|
+
} | {
|
|
1605
|
+
error: null;
|
|
1606
|
+
status: "success";
|
|
1607
|
+
action_attempt_id: string;
|
|
1608
|
+
result: {};
|
|
1609
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1610
|
+
} | {
|
|
1611
|
+
error: {
|
|
1612
|
+
type: string;
|
|
1613
|
+
message: string;
|
|
1614
|
+
};
|
|
1615
|
+
status: "error";
|
|
1616
|
+
action_attempt_id: string;
|
|
1617
|
+
result: null;
|
|
1618
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1561
1619
|
} | {
|
|
1562
1620
|
error: null;
|
|
1563
1621
|
status: "pending";
|
|
@@ -1878,6 +1936,27 @@ declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1878
1936
|
action_attempt_id: string;
|
|
1879
1937
|
result: null;
|
|
1880
1938
|
action_type: "SET_THERMOSTAT_OFF";
|
|
1939
|
+
} | {
|
|
1940
|
+
error: null;
|
|
1941
|
+
status: "pending";
|
|
1942
|
+
action_attempt_id: string;
|
|
1943
|
+
result: null;
|
|
1944
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1945
|
+
} | {
|
|
1946
|
+
error: null;
|
|
1947
|
+
status: "success";
|
|
1948
|
+
action_attempt_id: string;
|
|
1949
|
+
result: {};
|
|
1950
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1951
|
+
} | {
|
|
1952
|
+
error: {
|
|
1953
|
+
type: string;
|
|
1954
|
+
message: string;
|
|
1955
|
+
};
|
|
1956
|
+
status: "error";
|
|
1957
|
+
action_attempt_id: string;
|
|
1958
|
+
result: null;
|
|
1959
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1881
1960
|
} | {
|
|
1882
1961
|
error: null;
|
|
1883
1962
|
status: "pending";
|
|
@@ -2172,4 +2251,4 @@ declare const isPublishableKey: (token: string) => boolean;
|
|
|
2172
2251
|
declare const isConsoleSessionToken: (token: string) => boolean;
|
|
2173
2252
|
declare const isPersonalAccessToken: (token: string) => boolean;
|
|
2174
2253
|
|
|
2175
|
-
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, SeamHttpThermostatsClimateSettingSchedules, SeamHttpUnauthorizedError, SeamHttpUserIdentities, SeamHttpUserIdentitiesEnrollmentAutomations, SeamHttpWebhooks, SeamHttpWorkspaces, type ThermostatsClimateSettingSchedulesCreateBody, type ThermostatsClimateSettingSchedulesCreateOptions, type ThermostatsClimateSettingSchedulesCreateResponse, type ThermostatsClimateSettingSchedulesDeleteOptions, type ThermostatsClimateSettingSchedulesDeleteParams, type ThermostatsClimateSettingSchedulesDeleteResponse, type ThermostatsClimateSettingSchedulesGetOptions, type ThermostatsClimateSettingSchedulesGetParams, type ThermostatsClimateSettingSchedulesGetResponse, type ThermostatsClimateSettingSchedulesListOptions, type ThermostatsClimateSettingSchedulesListParams, type ThermostatsClimateSettingSchedulesListResponse, type ThermostatsClimateSettingSchedulesUpdateBody, type ThermostatsClimateSettingSchedulesUpdateOptions, type ThermostatsClimateSettingSchedulesUpdateResponse, type ThermostatsCoolBody, type ThermostatsCoolOptions, type ThermostatsCoolResponse, type ThermostatsGetOptions, type ThermostatsGetParams, type ThermostatsGetResponse, type ThermostatsHeatBody, type ThermostatsHeatCoolBody, type ThermostatsHeatCoolOptions, type ThermostatsHeatCoolResponse, type ThermostatsHeatOptions, type ThermostatsHeatResponse, type ThermostatsListOptions, type ThermostatsListParams, type ThermostatsListResponse, type ThermostatsOffBody, type ThermostatsOffOptions, type ThermostatsOffResponse, type ThermostatsSetFanModeBody, type ThermostatsSetFanModeOptions, type ThermostatsSetFanModeResponse, type ThermostatsUpdateBody, type ThermostatsUpdateOptions, type ThermostatsUpdateResponse, type UserIdentitiesAddAcsUserBody, type UserIdentitiesAddAcsUserOptions, type UserIdentitiesAddAcsUserResponse, type UserIdentitiesCreateBody, type UserIdentitiesCreateOptions, type UserIdentitiesCreateResponse, type 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 };
|
|
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 };
|
|
@@ -172,6 +172,27 @@ export declare const resolveActionAttempt: <T extends {
|
|
|
172
172
|
action_attempt_id: string;
|
|
173
173
|
result: null;
|
|
174
174
|
action_type: "SET_THERMOSTAT_OFF";
|
|
175
|
+
} | {
|
|
176
|
+
error: null;
|
|
177
|
+
status: "pending";
|
|
178
|
+
action_attempt_id: string;
|
|
179
|
+
result: null;
|
|
180
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
181
|
+
} | {
|
|
182
|
+
error: null;
|
|
183
|
+
status: "success";
|
|
184
|
+
action_attempt_id: string;
|
|
185
|
+
result: {};
|
|
186
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
187
|
+
} | {
|
|
188
|
+
error: {
|
|
189
|
+
type: string;
|
|
190
|
+
message: string;
|
|
191
|
+
};
|
|
192
|
+
status: "error";
|
|
193
|
+
action_attempt_id: string;
|
|
194
|
+
result: null;
|
|
195
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
175
196
|
} | {
|
|
176
197
|
error: null;
|
|
177
198
|
status: "pending";
|
|
@@ -490,6 +511,27 @@ export declare const isSeamActionAttemptError: <T extends {
|
|
|
490
511
|
action_attempt_id: string;
|
|
491
512
|
result: null;
|
|
492
513
|
action_type: "SET_THERMOSTAT_OFF";
|
|
514
|
+
} | {
|
|
515
|
+
error: null;
|
|
516
|
+
status: "pending";
|
|
517
|
+
action_attempt_id: string;
|
|
518
|
+
result: null;
|
|
519
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
520
|
+
} | {
|
|
521
|
+
error: null;
|
|
522
|
+
status: "success";
|
|
523
|
+
action_attempt_id: string;
|
|
524
|
+
result: {};
|
|
525
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
526
|
+
} | {
|
|
527
|
+
error: {
|
|
528
|
+
type: string;
|
|
529
|
+
message: string;
|
|
530
|
+
};
|
|
531
|
+
status: "error";
|
|
532
|
+
action_attempt_id: string;
|
|
533
|
+
result: null;
|
|
534
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
493
535
|
} | {
|
|
494
536
|
error: null;
|
|
495
537
|
status: "pending";
|
|
@@ -810,6 +852,27 @@ export declare const isSeamActionAttemptFailedError: <T extends {
|
|
|
810
852
|
action_attempt_id: string;
|
|
811
853
|
result: null;
|
|
812
854
|
action_type: "SET_THERMOSTAT_OFF";
|
|
855
|
+
} | {
|
|
856
|
+
error: null;
|
|
857
|
+
status: "pending";
|
|
858
|
+
action_attempt_id: string;
|
|
859
|
+
result: null;
|
|
860
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
861
|
+
} | {
|
|
862
|
+
error: null;
|
|
863
|
+
status: "success";
|
|
864
|
+
action_attempt_id: string;
|
|
865
|
+
result: {};
|
|
866
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
867
|
+
} | {
|
|
868
|
+
error: {
|
|
869
|
+
type: string;
|
|
870
|
+
message: string;
|
|
871
|
+
};
|
|
872
|
+
status: "error";
|
|
873
|
+
action_attempt_id: string;
|
|
874
|
+
result: null;
|
|
875
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
813
876
|
} | {
|
|
814
877
|
error: null;
|
|
815
878
|
status: "pending";
|
|
@@ -1130,6 +1193,27 @@ export declare const isSeamActionAttemptTimeoutError: <T extends {
|
|
|
1130
1193
|
action_attempt_id: string;
|
|
1131
1194
|
result: null;
|
|
1132
1195
|
action_type: "SET_THERMOSTAT_OFF";
|
|
1196
|
+
} | {
|
|
1197
|
+
error: null;
|
|
1198
|
+
status: "pending";
|
|
1199
|
+
action_attempt_id: string;
|
|
1200
|
+
result: null;
|
|
1201
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1202
|
+
} | {
|
|
1203
|
+
error: null;
|
|
1204
|
+
status: "success";
|
|
1205
|
+
action_attempt_id: string;
|
|
1206
|
+
result: {};
|
|
1207
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1208
|
+
} | {
|
|
1209
|
+
error: {
|
|
1210
|
+
type: string;
|
|
1211
|
+
message: string;
|
|
1212
|
+
};
|
|
1213
|
+
status: "error";
|
|
1214
|
+
action_attempt_id: string;
|
|
1215
|
+
result: null;
|
|
1216
|
+
action_type: "ACTIVATE_CLIMATE_PRESET";
|
|
1133
1217
|
} | {
|
|
1134
1218
|
error: null;
|
|
1135
1219
|
status: "pending";
|
|
@@ -28,7 +28,7 @@ export * from './noise-sensors-simulate.js';
|
|
|
28
28
|
export * from './phones.js';
|
|
29
29
|
export * from './phones-simulate.js';
|
|
30
30
|
export * from './thermostats.js';
|
|
31
|
-
export * from './thermostats-
|
|
31
|
+
export * from './thermostats-schedules.js';
|
|
32
32
|
export * from './user-identities.js';
|
|
33
33
|
export * from './user-identities-enrollment-automations.js';
|
|
34
34
|
export * from './webhooks.js';
|
|
@@ -28,7 +28,7 @@ export * from './noise-sensors-simulate.js';
|
|
|
28
28
|
export * from './phones.js';
|
|
29
29
|
export * from './phones-simulate.js';
|
|
30
30
|
export * from './thermostats.js';
|
|
31
|
-
export * from './thermostats-
|
|
31
|
+
export * from './thermostats-schedules.js';
|
|
32
32
|
export * from './user-identities.js';
|
|
33
33
|
export * from './user-identities-enrollment-automations.js';
|
|
34
34
|
export * from './webhooks.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA;AACtC,cAAc,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,cAAc,8CAA8C,CAAA;AAC5D,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,UAAU,CAAA;AACxB,cAAc,wBAAwB,CAAA;AACtC,cAAc,kCAAkC,CAAA;AAChD,cAAc,2BAA2B,CAAA;AACzC,cAAc,8CAA8C,CAAA;AAC5D,cAAc,sBAAsB,CAAA;AACpC,cAAc,gCAAgC,CAAA;AAC9C,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,0BAA0B,CAAA;AACxC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,uBAAuB,CAAA;AACrC,cAAc,yBAAyB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,uBAAuB,CAAA;AACrC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,qCAAqC,CAAA;AACnD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,aAAa,CAAA;AAC3B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,sBAAsB,CAAA;AACpC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 SeamHttpThermostatsSchedules {
|
|
7
|
+
client: Client;
|
|
8
|
+
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
9
|
+
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
10
|
+
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpThermostatsSchedules;
|
|
11
|
+
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsSchedules;
|
|
12
|
+
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsSchedules;
|
|
13
|
+
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsSchedules>;
|
|
14
|
+
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpThermostatsSchedules;
|
|
15
|
+
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostatsSchedules;
|
|
16
|
+
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
17
|
+
create(body?: ThermostatsSchedulesCreateBody): SeamHttpRequest<ThermostatsSchedulesCreateResponse, 'thermostat_schedule'>;
|
|
18
|
+
delete(body?: ThermostatsSchedulesDeleteParams): SeamHttpRequest<void, undefined>;
|
|
19
|
+
get(body?: ThermostatsSchedulesGetParams): SeamHttpRequest<ThermostatsSchedulesGetResponse, 'thermostat_schedule'>;
|
|
20
|
+
list(body?: ThermostatsSchedulesListParams): SeamHttpRequest<ThermostatsSchedulesListResponse, 'thermostat_schedules'>;
|
|
21
|
+
update(body?: ThermostatsSchedulesUpdateBody): SeamHttpRequest<void, undefined>;
|
|
22
|
+
}
|
|
23
|
+
export type ThermostatsSchedulesCreateBody = RouteRequestBody<'/thermostats/schedules/create'>;
|
|
24
|
+
export type ThermostatsSchedulesCreateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/create'>>>;
|
|
25
|
+
export type ThermostatsSchedulesCreateOptions = never;
|
|
26
|
+
export type ThermostatsSchedulesDeleteParams = RouteRequestBody<'/thermostats/schedules/delete'>;
|
|
27
|
+
export type ThermostatsSchedulesDeleteResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/delete'>>>;
|
|
28
|
+
export type ThermostatsSchedulesDeleteOptions = never;
|
|
29
|
+
export type ThermostatsSchedulesGetParams = RouteRequestBody<'/thermostats/schedules/get'>;
|
|
30
|
+
export type ThermostatsSchedulesGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/get'>>>;
|
|
31
|
+
export type ThermostatsSchedulesGetOptions = never;
|
|
32
|
+
export type ThermostatsSchedulesListParams = RouteRequestBody<'/thermostats/schedules/list'>;
|
|
33
|
+
export type ThermostatsSchedulesListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/list'>>>;
|
|
34
|
+
export type ThermostatsSchedulesListOptions = never;
|
|
35
|
+
export type ThermostatsSchedulesUpdateBody = RouteRequestBody<'/thermostats/schedules/update'>;
|
|
36
|
+
export type ThermostatsSchedulesUpdateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/schedules/update'>>>;
|
|
37
|
+
export type ThermostatsSchedulesUpdateOptions = never;
|
|
@@ -8,7 +8,7 @@ import { isSeamHttpOptionsWithApiKey, isSeamHttpOptionsWithClient, isSeamHttpOpt
|
|
|
8
8
|
import { limitToSeamHttpRequestOptions, parseOptions, } from '../../../../lib/seam/connect/parse-options.js';
|
|
9
9
|
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
10
10
|
import { SeamHttpClientSessions } from './client-sessions.js';
|
|
11
|
-
export class
|
|
11
|
+
export class SeamHttpThermostatsSchedules {
|
|
12
12
|
constructor(apiKeyOrOptions = {}) {
|
|
13
13
|
const options = parseOptions(apiKeyOrOptions);
|
|
14
14
|
this.client = 'client' in options ? options.client : createClient(options);
|
|
@@ -19,21 +19,21 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
19
19
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
20
20
|
throw new SeamHttpInvalidOptionsError('Missing client');
|
|
21
21
|
}
|
|
22
|
-
return new
|
|
22
|
+
return new SeamHttpThermostatsSchedules(constructorOptions);
|
|
23
23
|
}
|
|
24
24
|
static fromApiKey(apiKey, options = {}) {
|
|
25
25
|
const constructorOptions = { ...options, apiKey };
|
|
26
26
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
27
27
|
throw new SeamHttpInvalidOptionsError('Missing apiKey');
|
|
28
28
|
}
|
|
29
|
-
return new
|
|
29
|
+
return new SeamHttpThermostatsSchedules(constructorOptions);
|
|
30
30
|
}
|
|
31
31
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
32
32
|
const constructorOptions = { ...options, clientSessionToken };
|
|
33
33
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
34
34
|
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken');
|
|
35
35
|
}
|
|
36
|
-
return new
|
|
36
|
+
return new SeamHttpThermostatsSchedules(constructorOptions);
|
|
37
37
|
}
|
|
38
38
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
39
39
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
@@ -46,21 +46,21 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
46
46
|
const { token } = await clientSessions.getOrCreate({
|
|
47
47
|
user_identifier_key: userIdentifierKey,
|
|
48
48
|
});
|
|
49
|
-
return
|
|
49
|
+
return SeamHttpThermostatsSchedules.fromClientSessionToken(token, options);
|
|
50
50
|
}
|
|
51
51
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
52
52
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
53
53
|
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
54
54
|
throw new SeamHttpInvalidOptionsError('Missing consoleSessionToken or workspaceId');
|
|
55
55
|
}
|
|
56
|
-
return new
|
|
56
|
+
return new SeamHttpThermostatsSchedules(constructorOptions);
|
|
57
57
|
}
|
|
58
58
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
59
59
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
60
60
|
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
61
61
|
throw new SeamHttpInvalidOptionsError('Missing personalAccessToken or workspaceId');
|
|
62
62
|
}
|
|
63
|
-
return new
|
|
63
|
+
return new SeamHttpThermostatsSchedules(constructorOptions);
|
|
64
64
|
}
|
|
65
65
|
async updateClientSessionToken(clientSessionToken) {
|
|
66
66
|
const { headers } = this.client.defaults;
|
|
@@ -78,15 +78,15 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
78
78
|
}
|
|
79
79
|
create(body) {
|
|
80
80
|
return new SeamHttpRequest(this, {
|
|
81
|
-
path: '/thermostats/
|
|
81
|
+
path: '/thermostats/schedules/create',
|
|
82
82
|
method: 'post',
|
|
83
83
|
body,
|
|
84
|
-
responseKey: '
|
|
84
|
+
responseKey: 'thermostat_schedule',
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
delete(body) {
|
|
88
88
|
return new SeamHttpRequest(this, {
|
|
89
|
-
path: '/thermostats/
|
|
89
|
+
path: '/thermostats/schedules/delete',
|
|
90
90
|
method: 'post',
|
|
91
91
|
body,
|
|
92
92
|
responseKey: undefined,
|
|
@@ -94,27 +94,27 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
94
94
|
}
|
|
95
95
|
get(body) {
|
|
96
96
|
return new SeamHttpRequest(this, {
|
|
97
|
-
path: '/thermostats/
|
|
97
|
+
path: '/thermostats/schedules/get',
|
|
98
98
|
method: 'post',
|
|
99
99
|
body,
|
|
100
|
-
responseKey: '
|
|
100
|
+
responseKey: 'thermostat_schedule',
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
list(body) {
|
|
104
104
|
return new SeamHttpRequest(this, {
|
|
105
|
-
path: '/thermostats/
|
|
105
|
+
path: '/thermostats/schedules/list',
|
|
106
106
|
method: 'post',
|
|
107
107
|
body,
|
|
108
|
-
responseKey: '
|
|
108
|
+
responseKey: 'thermostat_schedules',
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
update(body) {
|
|
112
112
|
return new SeamHttpRequest(this, {
|
|
113
|
-
path: '/thermostats/
|
|
113
|
+
path: '/thermostats/schedules/update',
|
|
114
114
|
method: 'post',
|
|
115
115
|
body,
|
|
116
116
|
responseKey: undefined,
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
//# sourceMappingURL=thermostats-
|
|
120
|
+
//# sourceMappingURL=thermostats-schedules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thermostats-schedules.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/thermostats-schedules.ts"],"names":[],"mappings":"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"}
|