@seamapi/http 1.57.0 → 1.59.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 +200 -328
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +90 -146
- package/dist/index.cjs +202 -330
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/index.d.ts +0 -1
- package/lib/seam/connect/routes/index.js +0 -1
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +8 -12
- package/lib/seam/connect/routes/seam-http-endpoints.js +39 -91
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/seam/connect/routes/seam-http.d.ts +0 -2
- package/lib/seam/connect/routes/seam-http.js +0 -4
- package/lib/seam/connect/routes/seam-http.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.d.ts +86 -0
- package/lib/seam/connect/routes/{unstable-locations/unstable-locations.js → workspaces/customization-profiles/customization-profiles.js} +29 -92
- package/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.js.map +1 -0
- package/lib/seam/connect/routes/workspaces/customization-profiles/index.d.ts +1 -0
- package/lib/seam/connect/routes/{unstable-locations → workspaces/customization-profiles}/index.js +1 -1
- package/lib/seam/connect/routes/workspaces/customization-profiles/index.js.map +1 -0
- package/lib/seam/connect/routes/workspaces/index.d.ts +1 -0
- package/lib/seam/connect/routes/workspaces/index.js +1 -0
- package/lib/seam/connect/routes/workspaces/index.js.map +1 -1
- package/lib/seam/connect/routes/workspaces/workspaces.d.ts +2 -0
- package/lib/seam/connect/routes/workspaces/workspaces.js +4 -0
- package/lib/seam/connect/routes/workspaces/workspaces.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 +0 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +110 -201
- package/src/lib/seam/connect/routes/seam-http.ts +0 -5
- package/src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts +361 -0
- package/src/lib/seam/connect/routes/{unstable-locations → workspaces/customization-profiles}/index.ts +1 -1
- package/src/lib/seam/connect/routes/workspaces/index.ts +1 -0
- package/src/lib/seam/connect/routes/workspaces/workspaces.ts +9 -0
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/unstable-locations/index.d.ts +0 -1
- package/lib/seam/connect/routes/unstable-locations/index.js.map +0 -1
- package/lib/seam/connect/routes/unstable-locations/unstable-locations.d.ts +0 -138
- package/lib/seam/connect/routes/unstable-locations/unstable-locations.js.map +0 -1
- package/src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts +0 -544
package/dist/connect.cjs
CHANGED
|
@@ -7119,222 +7119,6 @@ var _SeamHttpThermostats = class _SeamHttpThermostats {
|
|
|
7119
7119
|
_SeamHttpThermostats.ltsVersion = seamApiLtsVersion;
|
|
7120
7120
|
var SeamHttpThermostats = _SeamHttpThermostats;
|
|
7121
7121
|
|
|
7122
|
-
// src/lib/seam/connect/routes/unstable-locations/unstable-locations.ts
|
|
7123
|
-
var _SeamHttpUnstableLocations = class _SeamHttpUnstableLocations {
|
|
7124
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7125
|
-
this.ltsVersion = seamApiLtsVersion;
|
|
7126
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7127
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7128
|
-
throw new Error(
|
|
7129
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7130
|
-
);
|
|
7131
|
-
}
|
|
7132
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7133
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7134
|
-
}
|
|
7135
|
-
static fromClient(client, options = {}) {
|
|
7136
|
-
const constructorOptions = { ...options, client };
|
|
7137
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7138
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7139
|
-
}
|
|
7140
|
-
return new _SeamHttpUnstableLocations(constructorOptions);
|
|
7141
|
-
}
|
|
7142
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7143
|
-
const constructorOptions = { ...options, apiKey };
|
|
7144
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7145
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7146
|
-
}
|
|
7147
|
-
return new _SeamHttpUnstableLocations(constructorOptions);
|
|
7148
|
-
}
|
|
7149
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7150
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7151
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7152
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7153
|
-
}
|
|
7154
|
-
return new _SeamHttpUnstableLocations(constructorOptions);
|
|
7155
|
-
}
|
|
7156
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7157
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7158
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7159
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7160
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7161
|
-
"The client option cannot be used with SeamHttpUnstableLocations.fromPublishableKey"
|
|
7162
|
-
);
|
|
7163
|
-
}
|
|
7164
|
-
const client = createClient(clientOptions);
|
|
7165
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7166
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7167
|
-
user_identifier_key: userIdentifierKey
|
|
7168
|
-
});
|
|
7169
|
-
return _SeamHttpUnstableLocations.fromClientSessionToken(token, options);
|
|
7170
|
-
}
|
|
7171
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7172
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7173
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7174
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7175
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7176
|
-
);
|
|
7177
|
-
}
|
|
7178
|
-
return new _SeamHttpUnstableLocations(constructorOptions);
|
|
7179
|
-
}
|
|
7180
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7181
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7182
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7183
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7184
|
-
"Missing personalAccessToken or workspaceId"
|
|
7185
|
-
);
|
|
7186
|
-
}
|
|
7187
|
-
return new _SeamHttpUnstableLocations(constructorOptions);
|
|
7188
|
-
}
|
|
7189
|
-
createPaginator(request) {
|
|
7190
|
-
return new SeamPaginator(this, request);
|
|
7191
|
-
}
|
|
7192
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7193
|
-
const { headers } = this.client.defaults;
|
|
7194
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7195
|
-
clientSessionToken
|
|
7196
|
-
});
|
|
7197
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7198
|
-
if (headers[key] == null) {
|
|
7199
|
-
throw new Error(
|
|
7200
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7201
|
-
);
|
|
7202
|
-
}
|
|
7203
|
-
}
|
|
7204
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7205
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7206
|
-
await clientSessions.get();
|
|
7207
|
-
}
|
|
7208
|
-
addAcsEntrances(parameters, options = {}) {
|
|
7209
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7210
|
-
throw new Error(
|
|
7211
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7212
|
-
);
|
|
7213
|
-
}
|
|
7214
|
-
return new SeamHttpRequest(this, {
|
|
7215
|
-
pathname: "/unstable_locations/add_acs_entrances",
|
|
7216
|
-
method: "PUT",
|
|
7217
|
-
body: parameters,
|
|
7218
|
-
responseKey: void 0,
|
|
7219
|
-
options
|
|
7220
|
-
});
|
|
7221
|
-
}
|
|
7222
|
-
addDevices(parameters, options = {}) {
|
|
7223
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7224
|
-
throw new Error(
|
|
7225
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7226
|
-
);
|
|
7227
|
-
}
|
|
7228
|
-
return new SeamHttpRequest(this, {
|
|
7229
|
-
pathname: "/unstable_locations/add_devices",
|
|
7230
|
-
method: "PUT",
|
|
7231
|
-
body: parameters,
|
|
7232
|
-
responseKey: void 0,
|
|
7233
|
-
options
|
|
7234
|
-
});
|
|
7235
|
-
}
|
|
7236
|
-
create(parameters, options = {}) {
|
|
7237
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7238
|
-
throw new Error(
|
|
7239
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7240
|
-
);
|
|
7241
|
-
}
|
|
7242
|
-
return new SeamHttpRequest(this, {
|
|
7243
|
-
pathname: "/unstable_locations/create",
|
|
7244
|
-
method: "POST",
|
|
7245
|
-
body: parameters,
|
|
7246
|
-
responseKey: "location",
|
|
7247
|
-
options
|
|
7248
|
-
});
|
|
7249
|
-
}
|
|
7250
|
-
delete(parameters, options = {}) {
|
|
7251
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7252
|
-
throw new Error(
|
|
7253
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7254
|
-
);
|
|
7255
|
-
}
|
|
7256
|
-
return new SeamHttpRequest(this, {
|
|
7257
|
-
pathname: "/unstable_locations/delete",
|
|
7258
|
-
method: "POST",
|
|
7259
|
-
body: parameters,
|
|
7260
|
-
responseKey: void 0,
|
|
7261
|
-
options
|
|
7262
|
-
});
|
|
7263
|
-
}
|
|
7264
|
-
get(parameters, options = {}) {
|
|
7265
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7266
|
-
throw new Error(
|
|
7267
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7268
|
-
);
|
|
7269
|
-
}
|
|
7270
|
-
return new SeamHttpRequest(this, {
|
|
7271
|
-
pathname: "/unstable_locations/get",
|
|
7272
|
-
method: "POST",
|
|
7273
|
-
body: parameters,
|
|
7274
|
-
responseKey: "location",
|
|
7275
|
-
options
|
|
7276
|
-
});
|
|
7277
|
-
}
|
|
7278
|
-
list(parameters, options = {}) {
|
|
7279
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7280
|
-
throw new Error(
|
|
7281
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7282
|
-
);
|
|
7283
|
-
}
|
|
7284
|
-
return new SeamHttpRequest(this, {
|
|
7285
|
-
pathname: "/unstable_locations/list",
|
|
7286
|
-
method: "GET",
|
|
7287
|
-
params: parameters,
|
|
7288
|
-
responseKey: "locations",
|
|
7289
|
-
options
|
|
7290
|
-
});
|
|
7291
|
-
}
|
|
7292
|
-
removeAcsEntrances(parameters, options = {}) {
|
|
7293
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7294
|
-
throw new Error(
|
|
7295
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7296
|
-
);
|
|
7297
|
-
}
|
|
7298
|
-
return new SeamHttpRequest(this, {
|
|
7299
|
-
pathname: "/unstable_locations/remove_acs_entrances",
|
|
7300
|
-
method: "POST",
|
|
7301
|
-
body: parameters,
|
|
7302
|
-
responseKey: void 0,
|
|
7303
|
-
options
|
|
7304
|
-
});
|
|
7305
|
-
}
|
|
7306
|
-
removeDevices(parameters, options = {}) {
|
|
7307
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7308
|
-
throw new Error(
|
|
7309
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7310
|
-
);
|
|
7311
|
-
}
|
|
7312
|
-
return new SeamHttpRequest(this, {
|
|
7313
|
-
pathname: "/unstable_locations/remove_devices",
|
|
7314
|
-
method: "POST",
|
|
7315
|
-
body: parameters,
|
|
7316
|
-
responseKey: void 0,
|
|
7317
|
-
options
|
|
7318
|
-
});
|
|
7319
|
-
}
|
|
7320
|
-
update(parameters, options = {}) {
|
|
7321
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7322
|
-
throw new Error(
|
|
7323
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7324
|
-
);
|
|
7325
|
-
}
|
|
7326
|
-
return new SeamHttpRequest(this, {
|
|
7327
|
-
pathname: "/unstable_locations/update",
|
|
7328
|
-
method: "PATCH",
|
|
7329
|
-
body: parameters,
|
|
7330
|
-
responseKey: "location",
|
|
7331
|
-
options
|
|
7332
|
-
});
|
|
7333
|
-
}
|
|
7334
|
-
};
|
|
7335
|
-
_SeamHttpUnstableLocations.ltsVersion = seamApiLtsVersion;
|
|
7336
|
-
var SeamHttpUnstableLocations = _SeamHttpUnstableLocations;
|
|
7337
|
-
|
|
7338
7122
|
// src/lib/seam/connect/routes/unstable-partner/building-blocks/building-blocks.ts
|
|
7339
7123
|
var _SeamHttpUnstablePartnerBuildingBlocks = class _SeamHttpUnstablePartnerBuildingBlocks {
|
|
7340
7124
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -8067,6 +7851,144 @@ var _SeamHttpWebhooks = class _SeamHttpWebhooks {
|
|
|
8067
7851
|
_SeamHttpWebhooks.ltsVersion = seamApiLtsVersion;
|
|
8068
7852
|
var SeamHttpWebhooks = _SeamHttpWebhooks;
|
|
8069
7853
|
|
|
7854
|
+
// src/lib/seam/connect/routes/workspaces/customization-profiles/customization-profiles.ts
|
|
7855
|
+
var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomizationProfiles {
|
|
7856
|
+
constructor(apiKeyOrOptions = {}) {
|
|
7857
|
+
this.ltsVersion = seamApiLtsVersion;
|
|
7858
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
7859
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
7860
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7861
|
+
}
|
|
7862
|
+
static fromClient(client, options = {}) {
|
|
7863
|
+
const constructorOptions = { ...options, client };
|
|
7864
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7865
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7866
|
+
}
|
|
7867
|
+
return new _SeamHttpWorkspacesCustomizationProfiles(constructorOptions);
|
|
7868
|
+
}
|
|
7869
|
+
static fromApiKey(apiKey, options = {}) {
|
|
7870
|
+
const constructorOptions = { ...options, apiKey };
|
|
7871
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7872
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7873
|
+
}
|
|
7874
|
+
return new _SeamHttpWorkspacesCustomizationProfiles(constructorOptions);
|
|
7875
|
+
}
|
|
7876
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7877
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
7878
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7879
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7880
|
+
}
|
|
7881
|
+
return new _SeamHttpWorkspacesCustomizationProfiles(constructorOptions);
|
|
7882
|
+
}
|
|
7883
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7884
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7885
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7886
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7887
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7888
|
+
"The client option cannot be used with SeamHttpWorkspacesCustomizationProfiles.fromPublishableKey"
|
|
7889
|
+
);
|
|
7890
|
+
}
|
|
7891
|
+
const client = createClient(clientOptions);
|
|
7892
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7893
|
+
const { token } = await clientSessions.getOrCreate({
|
|
7894
|
+
user_identifier_key: userIdentifierKey
|
|
7895
|
+
});
|
|
7896
|
+
return _SeamHttpWorkspacesCustomizationProfiles.fromClientSessionToken(
|
|
7897
|
+
token,
|
|
7898
|
+
options
|
|
7899
|
+
);
|
|
7900
|
+
}
|
|
7901
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7902
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7903
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7904
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7905
|
+
"Missing consoleSessionToken or workspaceId"
|
|
7906
|
+
);
|
|
7907
|
+
}
|
|
7908
|
+
return new _SeamHttpWorkspacesCustomizationProfiles(constructorOptions);
|
|
7909
|
+
}
|
|
7910
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7911
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7912
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7913
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7914
|
+
"Missing personalAccessToken or workspaceId"
|
|
7915
|
+
);
|
|
7916
|
+
}
|
|
7917
|
+
return new _SeamHttpWorkspacesCustomizationProfiles(constructorOptions);
|
|
7918
|
+
}
|
|
7919
|
+
createPaginator(request) {
|
|
7920
|
+
return new SeamPaginator(this, request);
|
|
7921
|
+
}
|
|
7922
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
7923
|
+
const { headers } = this.client.defaults;
|
|
7924
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7925
|
+
clientSessionToken
|
|
7926
|
+
});
|
|
7927
|
+
for (const key of Object.keys(authHeaders)) {
|
|
7928
|
+
if (headers[key] == null) {
|
|
7929
|
+
throw new Error(
|
|
7930
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7931
|
+
);
|
|
7932
|
+
}
|
|
7933
|
+
}
|
|
7934
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7935
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7936
|
+
await clientSessions.get();
|
|
7937
|
+
}
|
|
7938
|
+
create(parameters, options = {}) {
|
|
7939
|
+
return new SeamHttpRequest(this, {
|
|
7940
|
+
pathname: "/workspaces/customization_profiles/create",
|
|
7941
|
+
method: "POST",
|
|
7942
|
+
body: parameters,
|
|
7943
|
+
responseKey: "customization_profile",
|
|
7944
|
+
options
|
|
7945
|
+
});
|
|
7946
|
+
}
|
|
7947
|
+
get(parameters, options = {}) {
|
|
7948
|
+
return new SeamHttpRequest(this, {
|
|
7949
|
+
pathname: "/workspaces/customization_profiles/get",
|
|
7950
|
+
method: "POST",
|
|
7951
|
+
body: parameters,
|
|
7952
|
+
responseKey: "customization_profile",
|
|
7953
|
+
options
|
|
7954
|
+
});
|
|
7955
|
+
}
|
|
7956
|
+
list(parameters, options = {}) {
|
|
7957
|
+
return new SeamHttpRequest(this, {
|
|
7958
|
+
pathname: "/workspaces/customization_profiles/list",
|
|
7959
|
+
method: "GET",
|
|
7960
|
+
params: parameters,
|
|
7961
|
+
responseKey: "customization_profiles",
|
|
7962
|
+
options
|
|
7963
|
+
});
|
|
7964
|
+
}
|
|
7965
|
+
update(parameters, options = {}) {
|
|
7966
|
+
return new SeamHttpRequest(this, {
|
|
7967
|
+
pathname: "/workspaces/customization_profiles/update",
|
|
7968
|
+
method: "PATCH",
|
|
7969
|
+
body: parameters,
|
|
7970
|
+
responseKey: void 0,
|
|
7971
|
+
options
|
|
7972
|
+
});
|
|
7973
|
+
}
|
|
7974
|
+
uploadImages(parameters, options = {}) {
|
|
7975
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7976
|
+
throw new Error(
|
|
7977
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7978
|
+
);
|
|
7979
|
+
}
|
|
7980
|
+
return new SeamHttpRequest(this, {
|
|
7981
|
+
pathname: "/workspaces/customization_profiles/upload_images",
|
|
7982
|
+
method: "POST",
|
|
7983
|
+
body: parameters,
|
|
7984
|
+
responseKey: void 0,
|
|
7985
|
+
options
|
|
7986
|
+
});
|
|
7987
|
+
}
|
|
7988
|
+
};
|
|
7989
|
+
_SeamHttpWorkspacesCustomizationProfiles.ltsVersion = seamApiLtsVersion;
|
|
7990
|
+
var SeamHttpWorkspacesCustomizationProfiles = _SeamHttpWorkspacesCustomizationProfiles;
|
|
7991
|
+
|
|
8070
7992
|
// src/lib/seam/connect/routes/workspaces/workspaces.ts
|
|
8071
7993
|
var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
8072
7994
|
constructor(apiKeyOrOptions = {}) {
|
|
@@ -8148,6 +8070,12 @@ var _SeamHttpWorkspaces = class _SeamHttpWorkspaces {
|
|
|
8148
8070
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
8149
8071
|
await clientSessions.get();
|
|
8150
8072
|
}
|
|
8073
|
+
get customizationProfiles() {
|
|
8074
|
+
return SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
8075
|
+
this.client,
|
|
8076
|
+
this.defaults
|
|
8077
|
+
);
|
|
8078
|
+
}
|
|
8151
8079
|
create(parameters, options = {}) {
|
|
8152
8080
|
return new SeamHttpRequest(this, {
|
|
8153
8081
|
pathname: "/workspaces/create",
|
|
@@ -8346,9 +8274,6 @@ var _SeamHttp = class _SeamHttp {
|
|
|
8346
8274
|
get thermostats() {
|
|
8347
8275
|
return SeamHttpThermostats.fromClient(this.client, this.defaults);
|
|
8348
8276
|
}
|
|
8349
|
-
get unstableLocations() {
|
|
8350
|
-
return SeamHttpUnstableLocations.fromClient(this.client, this.defaults);
|
|
8351
|
-
}
|
|
8352
8277
|
get unstablePartner() {
|
|
8353
8278
|
return SeamHttpUnstablePartner.fromClient(this.client, this.defaults);
|
|
8354
8279
|
}
|
|
@@ -9840,114 +9765,6 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
9840
9765
|
return seam.temperatureReached(...args);
|
|
9841
9766
|
};
|
|
9842
9767
|
}
|
|
9843
|
-
get ["/unstable_locations/add_acs_entrances"]() {
|
|
9844
|
-
const { client, defaults } = this;
|
|
9845
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9846
|
-
throw new Error(
|
|
9847
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9848
|
-
);
|
|
9849
|
-
}
|
|
9850
|
-
return function unstableLocationsAddAcsEntrances(...args) {
|
|
9851
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9852
|
-
return seam.addAcsEntrances(...args);
|
|
9853
|
-
};
|
|
9854
|
-
}
|
|
9855
|
-
get ["/unstable_locations/add_devices"]() {
|
|
9856
|
-
const { client, defaults } = this;
|
|
9857
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9858
|
-
throw new Error(
|
|
9859
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9860
|
-
);
|
|
9861
|
-
}
|
|
9862
|
-
return function unstableLocationsAddDevices(...args) {
|
|
9863
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9864
|
-
return seam.addDevices(...args);
|
|
9865
|
-
};
|
|
9866
|
-
}
|
|
9867
|
-
get ["/unstable_locations/create"]() {
|
|
9868
|
-
const { client, defaults } = this;
|
|
9869
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9870
|
-
throw new Error(
|
|
9871
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9872
|
-
);
|
|
9873
|
-
}
|
|
9874
|
-
return function unstableLocationsCreate(...args) {
|
|
9875
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9876
|
-
return seam.create(...args);
|
|
9877
|
-
};
|
|
9878
|
-
}
|
|
9879
|
-
get ["/unstable_locations/delete"]() {
|
|
9880
|
-
const { client, defaults } = this;
|
|
9881
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9882
|
-
throw new Error(
|
|
9883
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9884
|
-
);
|
|
9885
|
-
}
|
|
9886
|
-
return function unstableLocationsDelete(...args) {
|
|
9887
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9888
|
-
return seam.delete(...args);
|
|
9889
|
-
};
|
|
9890
|
-
}
|
|
9891
|
-
get ["/unstable_locations/get"]() {
|
|
9892
|
-
const { client, defaults } = this;
|
|
9893
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9894
|
-
throw new Error(
|
|
9895
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9896
|
-
);
|
|
9897
|
-
}
|
|
9898
|
-
return function unstableLocationsGet(...args) {
|
|
9899
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9900
|
-
return seam.get(...args);
|
|
9901
|
-
};
|
|
9902
|
-
}
|
|
9903
|
-
get ["/unstable_locations/list"]() {
|
|
9904
|
-
const { client, defaults } = this;
|
|
9905
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9906
|
-
throw new Error(
|
|
9907
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9908
|
-
);
|
|
9909
|
-
}
|
|
9910
|
-
return function unstableLocationsList(...args) {
|
|
9911
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9912
|
-
return seam.list(...args);
|
|
9913
|
-
};
|
|
9914
|
-
}
|
|
9915
|
-
get ["/unstable_locations/remove_acs_entrances"]() {
|
|
9916
|
-
const { client, defaults } = this;
|
|
9917
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9918
|
-
throw new Error(
|
|
9919
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9920
|
-
);
|
|
9921
|
-
}
|
|
9922
|
-
return function unstableLocationsRemoveAcsEntrances(...args) {
|
|
9923
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9924
|
-
return seam.removeAcsEntrances(...args);
|
|
9925
|
-
};
|
|
9926
|
-
}
|
|
9927
|
-
get ["/unstable_locations/remove_devices"]() {
|
|
9928
|
-
const { client, defaults } = this;
|
|
9929
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9930
|
-
throw new Error(
|
|
9931
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9932
|
-
);
|
|
9933
|
-
}
|
|
9934
|
-
return function unstableLocationsRemoveDevices(...args) {
|
|
9935
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9936
|
-
return seam.removeDevices(...args);
|
|
9937
|
-
};
|
|
9938
|
-
}
|
|
9939
|
-
get ["/unstable_locations/update"]() {
|
|
9940
|
-
const { client, defaults } = this;
|
|
9941
|
-
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
9942
|
-
throw new Error(
|
|
9943
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
9944
|
-
);
|
|
9945
|
-
}
|
|
9946
|
-
return function unstableLocationsUpdate(...args) {
|
|
9947
|
-
const seam = SeamHttpUnstableLocations.fromClient(client, defaults);
|
|
9948
|
-
return seam.update(...args);
|
|
9949
|
-
};
|
|
9950
|
-
}
|
|
9951
9768
|
get ["/unstable_partner/building_blocks/connect_accounts"]() {
|
|
9952
9769
|
const { client, defaults } = this;
|
|
9953
9770
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -10241,6 +10058,61 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10241
10058
|
return seam.update(...args);
|
|
10242
10059
|
};
|
|
10243
10060
|
}
|
|
10061
|
+
get ["/workspaces/customization_profiles/create"]() {
|
|
10062
|
+
const { client, defaults } = this;
|
|
10063
|
+
return function workspacesCustomizationProfilesCreate(...args) {
|
|
10064
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10065
|
+
client,
|
|
10066
|
+
defaults
|
|
10067
|
+
);
|
|
10068
|
+
return seam.create(...args);
|
|
10069
|
+
};
|
|
10070
|
+
}
|
|
10071
|
+
get ["/workspaces/customization_profiles/get"]() {
|
|
10072
|
+
const { client, defaults } = this;
|
|
10073
|
+
return function workspacesCustomizationProfilesGet(...args) {
|
|
10074
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10075
|
+
client,
|
|
10076
|
+
defaults
|
|
10077
|
+
);
|
|
10078
|
+
return seam.get(...args);
|
|
10079
|
+
};
|
|
10080
|
+
}
|
|
10081
|
+
get ["/workspaces/customization_profiles/list"]() {
|
|
10082
|
+
const { client, defaults } = this;
|
|
10083
|
+
return function workspacesCustomizationProfilesList(...args) {
|
|
10084
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10085
|
+
client,
|
|
10086
|
+
defaults
|
|
10087
|
+
);
|
|
10088
|
+
return seam.list(...args);
|
|
10089
|
+
};
|
|
10090
|
+
}
|
|
10091
|
+
get ["/workspaces/customization_profiles/update"]() {
|
|
10092
|
+
const { client, defaults } = this;
|
|
10093
|
+
return function workspacesCustomizationProfilesUpdate(...args) {
|
|
10094
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10095
|
+
client,
|
|
10096
|
+
defaults
|
|
10097
|
+
);
|
|
10098
|
+
return seam.update(...args);
|
|
10099
|
+
};
|
|
10100
|
+
}
|
|
10101
|
+
get ["/workspaces/customization_profiles/upload_images"]() {
|
|
10102
|
+
const { client, defaults } = this;
|
|
10103
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
10104
|
+
throw new Error(
|
|
10105
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
10106
|
+
);
|
|
10107
|
+
}
|
|
10108
|
+
return function workspacesCustomizationProfilesUploadImages(...args) {
|
|
10109
|
+
const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
|
|
10110
|
+
client,
|
|
10111
|
+
defaults
|
|
10112
|
+
);
|
|
10113
|
+
return seam.uploadImages(...args);
|
|
10114
|
+
};
|
|
10115
|
+
}
|
|
10244
10116
|
};
|
|
10245
10117
|
_SeamHttpEndpoints.ltsVersion = seamApiLtsVersion;
|
|
10246
10118
|
var SeamHttpEndpoints = _SeamHttpEndpoints;
|
|
@@ -10409,7 +10281,6 @@ exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|
|
|
10409
10281
|
exports.SeamHttpThermostatsSchedules = SeamHttpThermostatsSchedules;
|
|
10410
10282
|
exports.SeamHttpThermostatsSimulate = SeamHttpThermostatsSimulate;
|
|
10411
10283
|
exports.SeamHttpUnauthorizedError = SeamHttpUnauthorizedError;
|
|
10412
|
-
exports.SeamHttpUnstableLocations = SeamHttpUnstableLocations;
|
|
10413
10284
|
exports.SeamHttpUnstablePartner = SeamHttpUnstablePartner;
|
|
10414
10285
|
exports.SeamHttpUnstablePartnerBuildingBlocks = SeamHttpUnstablePartnerBuildingBlocks;
|
|
10415
10286
|
exports.SeamHttpUserIdentities = SeamHttpUserIdentities;
|
|
@@ -10418,6 +10289,7 @@ exports.SeamHttpWebhooks = SeamHttpWebhooks;
|
|
|
10418
10289
|
exports.SeamHttpWithoutWorkspace = SeamHttpWithoutWorkspace;
|
|
10419
10290
|
exports.SeamHttpWithoutWorkspaceInvalidOptionsError = SeamHttpWithoutWorkspaceInvalidOptionsError;
|
|
10420
10291
|
exports.SeamHttpWorkspaces = SeamHttpWorkspaces;
|
|
10292
|
+
exports.SeamHttpWorkspacesCustomizationProfiles = SeamHttpWorkspacesCustomizationProfiles;
|
|
10421
10293
|
exports.SeamPaginator = SeamPaginator;
|
|
10422
10294
|
exports.errorInterceptor = errorInterceptor;
|
|
10423
10295
|
exports.getOpenapiSchema = getOpenapiSchema;
|