@seamapi/http 1.102.0 → 1.105.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/connect.cjs +601 -235
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +184 -52
- package/dist/index.cjs +609 -239
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/lib/seam/connect/routes/access-codes/access-codes.d.ts +13 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js +9 -0
- package/lib/seam/connect/routes/access-codes/access-codes.js.map +1 -1
- package/lib/seam/connect/routes/access-methods/access-methods.d.ts +2 -2
- package/lib/seam/connect/routes/access-methods/access-methods.js +2 -2
- package/lib/seam/connect/routes/access-methods/access-methods.js.map +1 -1
- package/lib/seam/connect/routes/customers/customers.d.ts +2 -0
- package/lib/seam/connect/routes/customers/customers.js +4 -0
- package/lib/seam/connect/routes/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/customers/index.d.ts +1 -0
- package/lib/seam/connect/routes/customers/index.js +1 -0
- package/lib/seam/connect/routes/customers/index.js.map +1 -1
- package/lib/seam/connect/routes/customers/reservations/index.d.ts +1 -0
- package/lib/seam/connect/routes/{seam/v1 → customers/reservations}/index.js +1 -2
- package/lib/seam/connect/routes/customers/reservations/index.js.map +1 -0
- package/lib/seam/connect/routes/{seam/v1/v1.d.ts → customers/reservations/reservations.d.ts} +23 -10
- package/lib/seam/connect/routes/{seam/v1/v1.js → customers/reservations/reservations.js} +18 -12
- package/lib/seam/connect/routes/customers/reservations/reservations.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js +12 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.d.ts +33 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/access-methods/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.d.ts +14 -1
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js +9 -3
- package/lib/seam/connect/routes/seam/customer/v1/customers/customers.js.map +1 -1
- package/lib/seam/connect/routes/seam/{v1/customers/customers.d.ts → customer/v1/encoders/encoders.d.ts} +20 -20
- package/lib/seam/connect/routes/seam/{v1/customers/customers.js → customer/v1/encoders/encoders.js} +26 -20
- package/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/encoders/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/{v1/customers → customer/v1/encoders}/index.js +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/encoders/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.js +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/index.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.d.ts +2 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/settings.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.d.ts +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.js +6 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.d.ts +34 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js +104 -0
- package/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.js.map +1 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.d.ts +13 -0
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +9 -3
- package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
- package/lib/seam/connect/routes/seam/customer/v1/v1.d.ts +4 -0
- package/lib/seam/connect/routes/seam/customer/v1/v1.js +8 -3
- package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
- package/lib/seam/connect/routes/seam/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/index.js +0 -1
- package/lib/seam/connect/routes/seam/index.js.map +1 -1
- package/lib/seam/connect/routes/seam-http-endpoints.d.ts +19 -9
- package/lib/seam/connect/routes/seam-http-endpoints.js +72 -8
- package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -6
- package/src/lib/seam/connect/routes/access-codes/access-codes.ts +35 -0
- package/src/lib/seam/connect/routes/access-methods/access-methods.ts +8 -4
- package/src/lib/seam/connect/routes/customers/customers.ts +6 -0
- package/src/lib/seam/connect/routes/customers/index.ts +1 -0
- package/src/lib/seam/connect/routes/{seam/v1 → customers/reservations}/index.ts +1 -2
- package/src/lib/seam/connect/routes/{seam/v1/customers/customers.ts → customers/reservations/reservations.ts} +33 -29
- package/src/lib/seam/connect/routes/seam/customer/v1/access-grants/access-grants.ts +41 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts +217 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/access-methods/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/customers/customers.ts +38 -6
- package/src/lib/seam/connect/routes/seam/{v1/v1.ts → customer/v1/encoders/encoders.ts} +62 -19
- package/src/lib/seam/connect/routes/seam/{v1/customers → customer/v1/encoders}/index.ts +1 -1
- package/src/lib/seam/connect/routes/seam/customer/v1/index.ts +2 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/index.ts +1 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts +9 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/index.ts +6 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts +228 -0
- package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +36 -5
- package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +13 -5
- package/src/lib/seam/connect/routes/seam/index.ts +0 -1
- package/src/lib/seam/connect/routes/seam-http-endpoints.ts +182 -21
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/seam/v1/customers/customers.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/customers/index.d.ts +0 -1
- package/lib/seam/connect/routes/seam/v1/customers/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/index.d.ts +0 -2
- package/lib/seam/connect/routes/seam/v1/index.js.map +0 -1
- package/lib/seam/connect/routes/seam/v1/v1.js.map +0 -1
package/dist/connect.cjs
CHANGED
|
@@ -1345,6 +1345,15 @@ var SeamHttpAccessCodes = class _SeamHttpAccessCodes {
|
|
|
1345
1345
|
options
|
|
1346
1346
|
});
|
|
1347
1347
|
}
|
|
1348
|
+
getTimeline(parameters, options = {}) {
|
|
1349
|
+
return new SeamHttpRequest(this, {
|
|
1350
|
+
pathname: "/access_codes/get_timeline",
|
|
1351
|
+
method: "POST",
|
|
1352
|
+
body: parameters,
|
|
1353
|
+
responseKey: "timeline_events",
|
|
1354
|
+
options
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1348
1357
|
list(parameters, options = {}) {
|
|
1349
1358
|
return new SeamHttpRequest(this, {
|
|
1350
1359
|
pathname: "/access_codes/list",
|
|
@@ -1851,8 +1860,8 @@ var SeamHttpAccessMethods = class _SeamHttpAccessMethods {
|
|
|
1851
1860
|
delete(parameters, options = {}) {
|
|
1852
1861
|
return new SeamHttpRequest(this, {
|
|
1853
1862
|
pathname: "/access_methods/delete",
|
|
1854
|
-
method: "
|
|
1855
|
-
|
|
1863
|
+
method: "DELETE",
|
|
1864
|
+
params: parameters,
|
|
1856
1865
|
responseKey: void 0,
|
|
1857
1866
|
options
|
|
1858
1867
|
});
|
|
@@ -4176,6 +4185,101 @@ var SeamHttpConnectedAccounts = class _SeamHttpConnectedAccounts {
|
|
|
4176
4185
|
}
|
|
4177
4186
|
};
|
|
4178
4187
|
|
|
4188
|
+
// src/lib/seam/connect/routes/customers/reservations/reservations.ts
|
|
4189
|
+
var SeamHttpCustomersReservations = class _SeamHttpCustomersReservations {
|
|
4190
|
+
client;
|
|
4191
|
+
defaults;
|
|
4192
|
+
ltsVersion = seamApiLtsVersion;
|
|
4193
|
+
static ltsVersion = seamApiLtsVersion;
|
|
4194
|
+
constructor(apiKeyOrOptions = {}) {
|
|
4195
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
4196
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
4197
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
4198
|
+
}
|
|
4199
|
+
static fromClient(client, options = {}) {
|
|
4200
|
+
const constructorOptions = { ...options, client };
|
|
4201
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
4202
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
4203
|
+
}
|
|
4204
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4205
|
+
}
|
|
4206
|
+
static fromApiKey(apiKey, options = {}) {
|
|
4207
|
+
const constructorOptions = { ...options, apiKey };
|
|
4208
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
4209
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
4210
|
+
}
|
|
4211
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4212
|
+
}
|
|
4213
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
4214
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
4215
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
4216
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
4217
|
+
}
|
|
4218
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4219
|
+
}
|
|
4220
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
4221
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
4222
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
4223
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
4224
|
+
throw new SeamHttpInvalidOptionsError(
|
|
4225
|
+
"The client option cannot be used with SeamHttpCustomersReservations.fromPublishableKey"
|
|
4226
|
+
);
|
|
4227
|
+
}
|
|
4228
|
+
const client = createClient(clientOptions);
|
|
4229
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
4230
|
+
const { token } = await clientSessions.getOrCreate({
|
|
4231
|
+
user_identifier_key: userIdentifierKey
|
|
4232
|
+
});
|
|
4233
|
+
return _SeamHttpCustomersReservations.fromClientSessionToken(token, options);
|
|
4234
|
+
}
|
|
4235
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
4236
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
4237
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
4238
|
+
throw new SeamHttpInvalidOptionsError(
|
|
4239
|
+
"Missing consoleSessionToken or workspaceId"
|
|
4240
|
+
);
|
|
4241
|
+
}
|
|
4242
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4243
|
+
}
|
|
4244
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
4245
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
4246
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
4247
|
+
throw new SeamHttpInvalidOptionsError(
|
|
4248
|
+
"Missing personalAccessToken or workspaceId"
|
|
4249
|
+
);
|
|
4250
|
+
}
|
|
4251
|
+
return new _SeamHttpCustomersReservations(constructorOptions);
|
|
4252
|
+
}
|
|
4253
|
+
createPaginator(request) {
|
|
4254
|
+
return new SeamPaginator(this, request);
|
|
4255
|
+
}
|
|
4256
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
4257
|
+
const { headers } = this.client.defaults;
|
|
4258
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
4259
|
+
clientSessionToken
|
|
4260
|
+
});
|
|
4261
|
+
for (const key of Object.keys(authHeaders)) {
|
|
4262
|
+
if (headers[key] == null) {
|
|
4263
|
+
throw new Error(
|
|
4264
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
4265
|
+
);
|
|
4266
|
+
}
|
|
4267
|
+
}
|
|
4268
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
4269
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4270
|
+
await clientSessions.get();
|
|
4271
|
+
}
|
|
4272
|
+
createDeepLink(parameters, options = {}) {
|
|
4273
|
+
return new SeamHttpRequest(this, {
|
|
4274
|
+
pathname: "/customers/reservations/create_deep_link",
|
|
4275
|
+
method: "POST",
|
|
4276
|
+
body: parameters,
|
|
4277
|
+
responseKey: "deep_link",
|
|
4278
|
+
options
|
|
4279
|
+
});
|
|
4280
|
+
}
|
|
4281
|
+
};
|
|
4282
|
+
|
|
4179
4283
|
// src/lib/seam/connect/routes/customers/customers.ts
|
|
4180
4284
|
var SeamHttpCustomers = class _SeamHttpCustomers {
|
|
4181
4285
|
client;
|
|
@@ -4260,6 +4364,9 @@ var SeamHttpCustomers = class _SeamHttpCustomers {
|
|
|
4260
4364
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
4261
4365
|
await clientSessions.get();
|
|
4262
4366
|
}
|
|
4367
|
+
get reservations() {
|
|
4368
|
+
return SeamHttpCustomersReservations.fromClient(this.client, this.defaults);
|
|
4369
|
+
}
|
|
4263
4370
|
createPortal(parameters, options = {}) {
|
|
4264
4371
|
return new SeamHttpRequest(this, {
|
|
4265
4372
|
pathname: "/customers/create_portal",
|
|
@@ -6096,6 +6203,128 @@ var SeamHttpSeamCustomerV1AccessGrants = class _SeamHttpSeamCustomerV1AccessGran
|
|
|
6096
6203
|
options
|
|
6097
6204
|
});
|
|
6098
6205
|
}
|
|
6206
|
+
update(parameters, options = {}) {
|
|
6207
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6208
|
+
throw new Error(
|
|
6209
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6210
|
+
);
|
|
6211
|
+
}
|
|
6212
|
+
return new SeamHttpRequest(this, {
|
|
6213
|
+
pathname: "/seam/customer/v1/access_grants/update",
|
|
6214
|
+
method: "PATCH",
|
|
6215
|
+
body: parameters,
|
|
6216
|
+
responseKey: void 0,
|
|
6217
|
+
options
|
|
6218
|
+
});
|
|
6219
|
+
}
|
|
6220
|
+
};
|
|
6221
|
+
|
|
6222
|
+
// src/lib/seam/connect/routes/seam/customer/v1/access-methods/access-methods.ts
|
|
6223
|
+
var SeamHttpSeamCustomerV1AccessMethods = class _SeamHttpSeamCustomerV1AccessMethods {
|
|
6224
|
+
client;
|
|
6225
|
+
defaults;
|
|
6226
|
+
ltsVersion = seamApiLtsVersion;
|
|
6227
|
+
static ltsVersion = seamApiLtsVersion;
|
|
6228
|
+
constructor(apiKeyOrOptions = {}) {
|
|
6229
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
6230
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
6231
|
+
throw new Error(
|
|
6232
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6233
|
+
);
|
|
6234
|
+
}
|
|
6235
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
6236
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6237
|
+
}
|
|
6238
|
+
static fromClient(client, options = {}) {
|
|
6239
|
+
const constructorOptions = { ...options, client };
|
|
6240
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6241
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6242
|
+
}
|
|
6243
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6244
|
+
}
|
|
6245
|
+
static fromApiKey(apiKey, options = {}) {
|
|
6246
|
+
const constructorOptions = { ...options, apiKey };
|
|
6247
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6248
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6249
|
+
}
|
|
6250
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6251
|
+
}
|
|
6252
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6253
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
6254
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6255
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6256
|
+
}
|
|
6257
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6258
|
+
}
|
|
6259
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6260
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6261
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6262
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6263
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6264
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1AccessMethods.fromPublishableKey"
|
|
6265
|
+
);
|
|
6266
|
+
}
|
|
6267
|
+
const client = createClient(clientOptions);
|
|
6268
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
6269
|
+
const { token } = await clientSessions.getOrCreate({
|
|
6270
|
+
user_identifier_key: userIdentifierKey
|
|
6271
|
+
});
|
|
6272
|
+
return _SeamHttpSeamCustomerV1AccessMethods.fromClientSessionToken(
|
|
6273
|
+
token,
|
|
6274
|
+
options
|
|
6275
|
+
);
|
|
6276
|
+
}
|
|
6277
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6278
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
6279
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
6280
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6281
|
+
"Missing consoleSessionToken or workspaceId"
|
|
6282
|
+
);
|
|
6283
|
+
}
|
|
6284
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6285
|
+
}
|
|
6286
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6287
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
6288
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
6289
|
+
throw new SeamHttpInvalidOptionsError(
|
|
6290
|
+
"Missing personalAccessToken or workspaceId"
|
|
6291
|
+
);
|
|
6292
|
+
}
|
|
6293
|
+
return new _SeamHttpSeamCustomerV1AccessMethods(constructorOptions);
|
|
6294
|
+
}
|
|
6295
|
+
createPaginator(request) {
|
|
6296
|
+
return new SeamPaginator(this, request);
|
|
6297
|
+
}
|
|
6298
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
6299
|
+
const { headers } = this.client.defaults;
|
|
6300
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
6301
|
+
clientSessionToken
|
|
6302
|
+
});
|
|
6303
|
+
for (const key of Object.keys(authHeaders)) {
|
|
6304
|
+
if (headers[key] == null) {
|
|
6305
|
+
throw new Error(
|
|
6306
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
6307
|
+
);
|
|
6308
|
+
}
|
|
6309
|
+
}
|
|
6310
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
6311
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6312
|
+
await clientSessions.get();
|
|
6313
|
+
}
|
|
6314
|
+
encode(parameters, options = {}) {
|
|
6315
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6316
|
+
throw new Error(
|
|
6317
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6318
|
+
);
|
|
6319
|
+
}
|
|
6320
|
+
return new SeamHttpRequest(this, {
|
|
6321
|
+
pathname: "/seam/customer/v1/access_methods/encode",
|
|
6322
|
+
method: "POST",
|
|
6323
|
+
body: parameters,
|
|
6324
|
+
responseKey: "action_attempt",
|
|
6325
|
+
options
|
|
6326
|
+
});
|
|
6327
|
+
}
|
|
6099
6328
|
};
|
|
6100
6329
|
|
|
6101
6330
|
// src/lib/seam/connect/routes/seam/customer/v1/automation-runs/automation-runs.ts
|
|
@@ -6650,11 +6879,6 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6650
6879
|
static ltsVersion = seamApiLtsVersion;
|
|
6651
6880
|
constructor(apiKeyOrOptions = {}) {
|
|
6652
6881
|
const options = parseOptions(apiKeyOrOptions);
|
|
6653
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
6654
|
-
throw new Error(
|
|
6655
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6656
|
-
);
|
|
6657
|
-
}
|
|
6658
6882
|
this.client = "client" in options ? options.client : createClient(options);
|
|
6659
6883
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
6660
6884
|
}
|
|
@@ -6748,6 +6972,15 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6748
6972
|
options
|
|
6749
6973
|
});
|
|
6750
6974
|
}
|
|
6975
|
+
me(parameters, options = {}) {
|
|
6976
|
+
return new SeamHttpRequest(this, {
|
|
6977
|
+
pathname: "/seam/customer/v1/customers/me",
|
|
6978
|
+
method: "GET",
|
|
6979
|
+
params: parameters,
|
|
6980
|
+
responseKey: void 0,
|
|
6981
|
+
options
|
|
6982
|
+
});
|
|
6983
|
+
}
|
|
6751
6984
|
openPortal(parameters, options = {}) {
|
|
6752
6985
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6753
6986
|
throw new Error(
|
|
@@ -6764,8 +6997,8 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
|
|
|
6764
6997
|
}
|
|
6765
6998
|
};
|
|
6766
6999
|
|
|
6767
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6768
|
-
var
|
|
7000
|
+
// src/lib/seam/connect/routes/seam/customer/v1/encoders/encoders.ts
|
|
7001
|
+
var SeamHttpSeamCustomerV1Encoders = class _SeamHttpSeamCustomerV1Encoders {
|
|
6769
7002
|
client;
|
|
6770
7003
|
defaults;
|
|
6771
7004
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6785,28 +7018,28 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6785
7018
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6786
7019
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6787
7020
|
}
|
|
6788
|
-
return new
|
|
7021
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6789
7022
|
}
|
|
6790
7023
|
static fromApiKey(apiKey, options = {}) {
|
|
6791
7024
|
const constructorOptions = { ...options, apiKey };
|
|
6792
7025
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6793
7026
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6794
7027
|
}
|
|
6795
|
-
return new
|
|
7028
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6796
7029
|
}
|
|
6797
7030
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6798
7031
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6799
7032
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6800
7033
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6801
7034
|
}
|
|
6802
|
-
return new
|
|
7035
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6803
7036
|
}
|
|
6804
7037
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6805
7038
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6806
7039
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6807
7040
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6808
7041
|
throw new SeamHttpInvalidOptionsError(
|
|
6809
|
-
"The client option cannot be used with
|
|
7042
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Encoders.fromPublishableKey"
|
|
6810
7043
|
);
|
|
6811
7044
|
}
|
|
6812
7045
|
const client = createClient(clientOptions);
|
|
@@ -6814,7 +7047,7 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6814
7047
|
const { token } = await clientSessions.getOrCreate({
|
|
6815
7048
|
user_identifier_key: userIdentifierKey
|
|
6816
7049
|
});
|
|
6817
|
-
return
|
|
7050
|
+
return _SeamHttpSeamCustomerV1Encoders.fromClientSessionToken(token, options);
|
|
6818
7051
|
}
|
|
6819
7052
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6820
7053
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6823,7 +7056,7 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6823
7056
|
"Missing consoleSessionToken or workspaceId"
|
|
6824
7057
|
);
|
|
6825
7058
|
}
|
|
6826
|
-
return new
|
|
7059
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6827
7060
|
}
|
|
6828
7061
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6829
7062
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6832,7 +7065,7 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6832
7065
|
"Missing personalAccessToken or workspaceId"
|
|
6833
7066
|
);
|
|
6834
7067
|
}
|
|
6835
|
-
return new
|
|
7068
|
+
return new _SeamHttpSeamCustomerV1Encoders(constructorOptions);
|
|
6836
7069
|
}
|
|
6837
7070
|
createPaginator(request) {
|
|
6838
7071
|
return new SeamPaginator(this, request);
|
|
@@ -6860,17 +7093,17 @@ var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
|
6860
7093
|
);
|
|
6861
7094
|
}
|
|
6862
7095
|
return new SeamHttpRequest(this, {
|
|
6863
|
-
pathname: "/seam/customer/v1/
|
|
7096
|
+
pathname: "/seam/customer/v1/encoders/list",
|
|
6864
7097
|
method: "POST",
|
|
6865
7098
|
body: parameters,
|
|
6866
|
-
responseKey: "
|
|
7099
|
+
responseKey: "encoders",
|
|
6867
7100
|
options
|
|
6868
7101
|
});
|
|
6869
7102
|
}
|
|
6870
7103
|
};
|
|
6871
7104
|
|
|
6872
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6873
|
-
var
|
|
7105
|
+
// src/lib/seam/connect/routes/seam/customer/v1/events/events.ts
|
|
7106
|
+
var SeamHttpSeamCustomerV1Events = class _SeamHttpSeamCustomerV1Events {
|
|
6874
7107
|
client;
|
|
6875
7108
|
defaults;
|
|
6876
7109
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -6890,28 +7123,28 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6890
7123
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
6891
7124
|
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
6892
7125
|
}
|
|
6893
|
-
return new
|
|
7126
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6894
7127
|
}
|
|
6895
7128
|
static fromApiKey(apiKey, options = {}) {
|
|
6896
7129
|
const constructorOptions = { ...options, apiKey };
|
|
6897
7130
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
6898
7131
|
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
6899
7132
|
}
|
|
6900
|
-
return new
|
|
7133
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6901
7134
|
}
|
|
6902
7135
|
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
6903
7136
|
const constructorOptions = { ...options, clientSessionToken };
|
|
6904
7137
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
6905
7138
|
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
6906
7139
|
}
|
|
6907
|
-
return new
|
|
7140
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6908
7141
|
}
|
|
6909
7142
|
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
6910
7143
|
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
6911
7144
|
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
6912
7145
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
6913
7146
|
throw new SeamHttpInvalidOptionsError(
|
|
6914
|
-
"The client option cannot be used with
|
|
7147
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Events.fromPublishableKey"
|
|
6915
7148
|
);
|
|
6916
7149
|
}
|
|
6917
7150
|
const client = createClient(clientOptions);
|
|
@@ -6919,7 +7152,7 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6919
7152
|
const { token } = await clientSessions.getOrCreate({
|
|
6920
7153
|
user_identifier_key: userIdentifierKey
|
|
6921
7154
|
});
|
|
6922
|
-
return
|
|
7155
|
+
return _SeamHttpSeamCustomerV1Events.fromClientSessionToken(token, options);
|
|
6923
7156
|
}
|
|
6924
7157
|
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
6925
7158
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
@@ -6928,7 +7161,7 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6928
7161
|
"Missing consoleSessionToken or workspaceId"
|
|
6929
7162
|
);
|
|
6930
7163
|
}
|
|
6931
|
-
return new
|
|
7164
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6932
7165
|
}
|
|
6933
7166
|
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
6934
7167
|
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
@@ -6937,7 +7170,7 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6937
7170
|
"Missing personalAccessToken or workspaceId"
|
|
6938
7171
|
);
|
|
6939
7172
|
}
|
|
6940
|
-
return new
|
|
7173
|
+
return new _SeamHttpSeamCustomerV1Events(constructorOptions);
|
|
6941
7174
|
}
|
|
6942
7175
|
createPaginator(request) {
|
|
6943
7176
|
return new SeamPaginator(this, request);
|
|
@@ -6958,24 +7191,129 @@ var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
|
6958
7191
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
6959
7192
|
await clientSessions.get();
|
|
6960
7193
|
}
|
|
6961
|
-
|
|
7194
|
+
list(parameters, options = {}) {
|
|
6962
7195
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
6963
7196
|
throw new Error(
|
|
6964
7197
|
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
6965
7198
|
);
|
|
6966
7199
|
}
|
|
6967
7200
|
return new SeamHttpRequest(this, {
|
|
6968
|
-
pathname: "/seam/customer/v1/
|
|
7201
|
+
pathname: "/seam/customer/v1/events/list",
|
|
6969
7202
|
method: "POST",
|
|
6970
7203
|
body: parameters,
|
|
6971
|
-
responseKey: "
|
|
7204
|
+
responseKey: "events",
|
|
6972
7205
|
options
|
|
6973
7206
|
});
|
|
6974
7207
|
}
|
|
6975
7208
|
};
|
|
6976
7209
|
|
|
6977
|
-
// src/lib/seam/connect/routes/seam/customer/v1/
|
|
6978
|
-
var
|
|
7210
|
+
// src/lib/seam/connect/routes/seam/customer/v1/portals/portals.ts
|
|
7211
|
+
var SeamHttpSeamCustomerV1Portals = class _SeamHttpSeamCustomerV1Portals {
|
|
7212
|
+
client;
|
|
7213
|
+
defaults;
|
|
7214
|
+
ltsVersion = seamApiLtsVersion;
|
|
7215
|
+
static ltsVersion = seamApiLtsVersion;
|
|
7216
|
+
constructor(apiKeyOrOptions = {}) {
|
|
7217
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
7218
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7219
|
+
throw new Error(
|
|
7220
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7221
|
+
);
|
|
7222
|
+
}
|
|
7223
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
7224
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7225
|
+
}
|
|
7226
|
+
static fromClient(client, options = {}) {
|
|
7227
|
+
const constructorOptions = { ...options, client };
|
|
7228
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7229
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7230
|
+
}
|
|
7231
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
7232
|
+
}
|
|
7233
|
+
static fromApiKey(apiKey, options = {}) {
|
|
7234
|
+
const constructorOptions = { ...options, apiKey };
|
|
7235
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7236
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7237
|
+
}
|
|
7238
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
7239
|
+
}
|
|
7240
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7241
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
7242
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7243
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7244
|
+
}
|
|
7245
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
7246
|
+
}
|
|
7247
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7248
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7249
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7250
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7251
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7252
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1Portals.fromPublishableKey"
|
|
7253
|
+
);
|
|
7254
|
+
}
|
|
7255
|
+
const client = createClient(clientOptions);
|
|
7256
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7257
|
+
const { token } = await clientSessions.getOrCreate({
|
|
7258
|
+
user_identifier_key: userIdentifierKey
|
|
7259
|
+
});
|
|
7260
|
+
return _SeamHttpSeamCustomerV1Portals.fromClientSessionToken(token, options);
|
|
7261
|
+
}
|
|
7262
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7263
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7264
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7265
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7266
|
+
"Missing consoleSessionToken or workspaceId"
|
|
7267
|
+
);
|
|
7268
|
+
}
|
|
7269
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
7270
|
+
}
|
|
7271
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7272
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7273
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7274
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7275
|
+
"Missing personalAccessToken or workspaceId"
|
|
7276
|
+
);
|
|
7277
|
+
}
|
|
7278
|
+
return new _SeamHttpSeamCustomerV1Portals(constructorOptions);
|
|
7279
|
+
}
|
|
7280
|
+
createPaginator(request) {
|
|
7281
|
+
return new SeamPaginator(this, request);
|
|
7282
|
+
}
|
|
7283
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
7284
|
+
const { headers } = this.client.defaults;
|
|
7285
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7286
|
+
clientSessionToken
|
|
7287
|
+
});
|
|
7288
|
+
for (const key of Object.keys(authHeaders)) {
|
|
7289
|
+
if (headers[key] == null) {
|
|
7290
|
+
throw new Error(
|
|
7291
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7292
|
+
);
|
|
7293
|
+
}
|
|
7294
|
+
}
|
|
7295
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7296
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7297
|
+
await clientSessions.get();
|
|
7298
|
+
}
|
|
7299
|
+
get(parameters, options = {}) {
|
|
7300
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7301
|
+
throw new Error(
|
|
7302
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7303
|
+
);
|
|
7304
|
+
}
|
|
7305
|
+
return new SeamHttpRequest(this, {
|
|
7306
|
+
pathname: "/seam/customer/v1/portals/get",
|
|
7307
|
+
method: "POST",
|
|
7308
|
+
body: parameters,
|
|
7309
|
+
responseKey: "customer_portal",
|
|
7310
|
+
options
|
|
7311
|
+
});
|
|
7312
|
+
}
|
|
7313
|
+
};
|
|
7314
|
+
|
|
7315
|
+
// src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts
|
|
7316
|
+
var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservations {
|
|
6979
7317
|
client;
|
|
6980
7318
|
defaults;
|
|
6981
7319
|
ltsVersion = seamApiLtsVersion;
|
|
@@ -7096,6 +7434,124 @@ var SeamHttpSeamCustomerV1Reservations = class _SeamHttpSeamCustomerV1Reservatio
|
|
|
7096
7434
|
}
|
|
7097
7435
|
};
|
|
7098
7436
|
|
|
7437
|
+
// src/lib/seam/connect/routes/seam/customer/v1/settings/vertical-resource-aliases/vertical-resource-aliases.ts
|
|
7438
|
+
var SeamHttpSeamCustomerV1SettingsVerticalResourceAliases = class _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases {
|
|
7439
|
+
client;
|
|
7440
|
+
defaults;
|
|
7441
|
+
ltsVersion = seamApiLtsVersion;
|
|
7442
|
+
static ltsVersion = seamApiLtsVersion;
|
|
7443
|
+
constructor(apiKeyOrOptions = {}) {
|
|
7444
|
+
const options = parseOptions(apiKeyOrOptions);
|
|
7445
|
+
if (!options.isUndocumentedApiEnabled) {
|
|
7446
|
+
throw new Error(
|
|
7447
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7448
|
+
);
|
|
7449
|
+
}
|
|
7450
|
+
this.client = "client" in options ? options.client : createClient(options);
|
|
7451
|
+
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7452
|
+
}
|
|
7453
|
+
static fromClient(client, options = {}) {
|
|
7454
|
+
const constructorOptions = { ...options, client };
|
|
7455
|
+
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7456
|
+
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7457
|
+
}
|
|
7458
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7459
|
+
constructorOptions
|
|
7460
|
+
);
|
|
7461
|
+
}
|
|
7462
|
+
static fromApiKey(apiKey, options = {}) {
|
|
7463
|
+
const constructorOptions = { ...options, apiKey };
|
|
7464
|
+
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7465
|
+
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7466
|
+
}
|
|
7467
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7468
|
+
constructorOptions
|
|
7469
|
+
);
|
|
7470
|
+
}
|
|
7471
|
+
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7472
|
+
const constructorOptions = { ...options, clientSessionToken };
|
|
7473
|
+
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7474
|
+
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7475
|
+
}
|
|
7476
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7477
|
+
constructorOptions
|
|
7478
|
+
);
|
|
7479
|
+
}
|
|
7480
|
+
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7481
|
+
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7482
|
+
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7483
|
+
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7484
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7485
|
+
"The client option cannot be used with SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromPublishableKey"
|
|
7486
|
+
);
|
|
7487
|
+
}
|
|
7488
|
+
const client = createClient(clientOptions);
|
|
7489
|
+
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7490
|
+
const { token } = await clientSessions.getOrCreate({
|
|
7491
|
+
user_identifier_key: userIdentifierKey
|
|
7492
|
+
});
|
|
7493
|
+
return _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClientSessionToken(
|
|
7494
|
+
token,
|
|
7495
|
+
options
|
|
7496
|
+
);
|
|
7497
|
+
}
|
|
7498
|
+
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7499
|
+
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7500
|
+
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7501
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7502
|
+
"Missing consoleSessionToken or workspaceId"
|
|
7503
|
+
);
|
|
7504
|
+
}
|
|
7505
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7506
|
+
constructorOptions
|
|
7507
|
+
);
|
|
7508
|
+
}
|
|
7509
|
+
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7510
|
+
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7511
|
+
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7512
|
+
throw new SeamHttpInvalidOptionsError(
|
|
7513
|
+
"Missing personalAccessToken or workspaceId"
|
|
7514
|
+
);
|
|
7515
|
+
}
|
|
7516
|
+
return new _SeamHttpSeamCustomerV1SettingsVerticalResourceAliases(
|
|
7517
|
+
constructorOptions
|
|
7518
|
+
);
|
|
7519
|
+
}
|
|
7520
|
+
createPaginator(request) {
|
|
7521
|
+
return new SeamPaginator(this, request);
|
|
7522
|
+
}
|
|
7523
|
+
async updateClientSessionToken(clientSessionToken) {
|
|
7524
|
+
const { headers } = this.client.defaults;
|
|
7525
|
+
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7526
|
+
clientSessionToken
|
|
7527
|
+
});
|
|
7528
|
+
for (const key of Object.keys(authHeaders)) {
|
|
7529
|
+
if (headers[key] == null) {
|
|
7530
|
+
throw new Error(
|
|
7531
|
+
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7532
|
+
);
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7536
|
+
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7537
|
+
await clientSessions.get();
|
|
7538
|
+
}
|
|
7539
|
+
get(parameters, options = {}) {
|
|
7540
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7541
|
+
throw new Error(
|
|
7542
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7543
|
+
);
|
|
7544
|
+
}
|
|
7545
|
+
return new SeamHttpRequest(this, {
|
|
7546
|
+
pathname: "/seam/customer/v1/settings/vertical_resource_aliases/get",
|
|
7547
|
+
method: "POST",
|
|
7548
|
+
body: parameters,
|
|
7549
|
+
responseKey: "vertical_resource_aliases",
|
|
7550
|
+
options
|
|
7551
|
+
});
|
|
7552
|
+
}
|
|
7553
|
+
};
|
|
7554
|
+
|
|
7099
7555
|
// src/lib/seam/connect/routes/seam/customer/v1/settings/settings.ts
|
|
7100
7556
|
var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
7101
7557
|
client;
|
|
@@ -7185,6 +7641,12 @@ var SeamHttpSeamCustomerV1Settings = class _SeamHttpSeamCustomerV1Settings {
|
|
|
7185
7641
|
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7186
7642
|
await clientSessions.get();
|
|
7187
7643
|
}
|
|
7644
|
+
get verticalResourceAliases() {
|
|
7645
|
+
return SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClient(
|
|
7646
|
+
this.client,
|
|
7647
|
+
this.defaults
|
|
7648
|
+
);
|
|
7649
|
+
}
|
|
7188
7650
|
get(parameters, options = {}) {
|
|
7189
7651
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
7190
7652
|
throw new Error(
|
|
@@ -7223,11 +7685,6 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7223
7685
|
static ltsVersion = seamApiLtsVersion;
|
|
7224
7686
|
constructor(apiKeyOrOptions = {}) {
|
|
7225
7687
|
const options = parseOptions(apiKeyOrOptions);
|
|
7226
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7227
|
-
throw new Error(
|
|
7228
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7229
|
-
);
|
|
7230
|
-
}
|
|
7231
7688
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7232
7689
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7233
7690
|
}
|
|
@@ -7346,6 +7803,15 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
|
|
|
7346
7803
|
options
|
|
7347
7804
|
});
|
|
7348
7805
|
}
|
|
7806
|
+
pushCommonAreas(parameters, options = {}) {
|
|
7807
|
+
return new SeamHttpRequest(this, {
|
|
7808
|
+
pathname: "/seam/customer/v1/spaces/push_common_areas",
|
|
7809
|
+
method: "POST",
|
|
7810
|
+
body: parameters,
|
|
7811
|
+
responseKey: void 0,
|
|
7812
|
+
options
|
|
7813
|
+
});
|
|
7814
|
+
}
|
|
7349
7815
|
};
|
|
7350
7816
|
|
|
7351
7817
|
// src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts
|
|
@@ -7478,11 +7944,6 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7478
7944
|
static ltsVersion = seamApiLtsVersion;
|
|
7479
7945
|
constructor(apiKeyOrOptions = {}) {
|
|
7480
7946
|
const options = parseOptions(apiKeyOrOptions);
|
|
7481
|
-
if (!options.isUndocumentedApiEnabled) {
|
|
7482
|
-
throw new Error(
|
|
7483
|
-
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
7484
|
-
);
|
|
7485
|
-
}
|
|
7486
7947
|
this.client = "client" in options ? options.client : createClient(options);
|
|
7487
7948
|
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7488
7949
|
}
|
|
@@ -7565,6 +8026,12 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7565
8026
|
this.defaults
|
|
7566
8027
|
);
|
|
7567
8028
|
}
|
|
8029
|
+
get accessMethods() {
|
|
8030
|
+
return SeamHttpSeamCustomerV1AccessMethods.fromClient(
|
|
8031
|
+
this.client,
|
|
8032
|
+
this.defaults
|
|
8033
|
+
);
|
|
8034
|
+
}
|
|
7568
8035
|
get automationRuns() {
|
|
7569
8036
|
return SeamHttpSeamCustomerV1AutomationRuns.fromClient(
|
|
7570
8037
|
this.client,
|
|
@@ -7595,6 +8062,9 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
|
|
|
7595
8062
|
this.defaults
|
|
7596
8063
|
);
|
|
7597
8064
|
}
|
|
8065
|
+
get encoders() {
|
|
8066
|
+
return SeamHttpSeamCustomerV1Encoders.fromClient(this.client, this.defaults);
|
|
8067
|
+
}
|
|
7598
8068
|
get events() {
|
|
7599
8069
|
return SeamHttpSeamCustomerV1Events.fromClient(this.client, this.defaults);
|
|
7600
8070
|
}
|
|
@@ -7829,190 +8299,6 @@ var SeamHttpSeamPartnerV1BuildingBlocks = class _SeamHttpSeamPartnerV1BuildingBl
|
|
|
7829
8299
|
}
|
|
7830
8300
|
};
|
|
7831
8301
|
|
|
7832
|
-
// src/lib/seam/connect/routes/seam/v1/customers/customers.ts
|
|
7833
|
-
var SeamHttpSeamV1Customers = class _SeamHttpSeamV1Customers {
|
|
7834
|
-
client;
|
|
7835
|
-
defaults;
|
|
7836
|
-
ltsVersion = seamApiLtsVersion;
|
|
7837
|
-
static ltsVersion = seamApiLtsVersion;
|
|
7838
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7839
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7840
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7841
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7842
|
-
}
|
|
7843
|
-
static fromClient(client, options = {}) {
|
|
7844
|
-
const constructorOptions = { ...options, client };
|
|
7845
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7846
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7847
|
-
}
|
|
7848
|
-
return new _SeamHttpSeamV1Customers(constructorOptions);
|
|
7849
|
-
}
|
|
7850
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7851
|
-
const constructorOptions = { ...options, apiKey };
|
|
7852
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7853
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7854
|
-
}
|
|
7855
|
-
return new _SeamHttpSeamV1Customers(constructorOptions);
|
|
7856
|
-
}
|
|
7857
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7858
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7859
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7860
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7861
|
-
}
|
|
7862
|
-
return new _SeamHttpSeamV1Customers(constructorOptions);
|
|
7863
|
-
}
|
|
7864
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7865
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7866
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7867
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7868
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7869
|
-
"The client option cannot be used with SeamHttpSeamV1Customers.fromPublishableKey"
|
|
7870
|
-
);
|
|
7871
|
-
}
|
|
7872
|
-
const client = createClient(clientOptions);
|
|
7873
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7874
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7875
|
-
user_identifier_key: userIdentifierKey
|
|
7876
|
-
});
|
|
7877
|
-
return _SeamHttpSeamV1Customers.fromClientSessionToken(token, options);
|
|
7878
|
-
}
|
|
7879
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7880
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7881
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7882
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7883
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7884
|
-
);
|
|
7885
|
-
}
|
|
7886
|
-
return new _SeamHttpSeamV1Customers(constructorOptions);
|
|
7887
|
-
}
|
|
7888
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7889
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7890
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7891
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7892
|
-
"Missing personalAccessToken or workspaceId"
|
|
7893
|
-
);
|
|
7894
|
-
}
|
|
7895
|
-
return new _SeamHttpSeamV1Customers(constructorOptions);
|
|
7896
|
-
}
|
|
7897
|
-
createPaginator(request) {
|
|
7898
|
-
return new SeamPaginator(this, request);
|
|
7899
|
-
}
|
|
7900
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7901
|
-
const { headers } = this.client.defaults;
|
|
7902
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7903
|
-
clientSessionToken
|
|
7904
|
-
});
|
|
7905
|
-
for (const key of Object.keys(authHeaders)) {
|
|
7906
|
-
if (headers[key] == null) {
|
|
7907
|
-
throw new Error(
|
|
7908
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
7909
|
-
);
|
|
7910
|
-
}
|
|
7911
|
-
}
|
|
7912
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
7913
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
7914
|
-
await clientSessions.get();
|
|
7915
|
-
}
|
|
7916
|
-
pushData(parameters, options = {}) {
|
|
7917
|
-
return new SeamHttpRequest(this, {
|
|
7918
|
-
pathname: "/seam/v1/customers/push_data",
|
|
7919
|
-
method: "POST",
|
|
7920
|
-
body: parameters,
|
|
7921
|
-
responseKey: void 0,
|
|
7922
|
-
options
|
|
7923
|
-
});
|
|
7924
|
-
}
|
|
7925
|
-
};
|
|
7926
|
-
|
|
7927
|
-
// src/lib/seam/connect/routes/seam/v1/v1.ts
|
|
7928
|
-
var SeamHttpSeamV1 = class _SeamHttpSeamV1 {
|
|
7929
|
-
client;
|
|
7930
|
-
defaults;
|
|
7931
|
-
ltsVersion = seamApiLtsVersion;
|
|
7932
|
-
static ltsVersion = seamApiLtsVersion;
|
|
7933
|
-
constructor(apiKeyOrOptions = {}) {
|
|
7934
|
-
const options = parseOptions(apiKeyOrOptions);
|
|
7935
|
-
this.client = "client" in options ? options.client : createClient(options);
|
|
7936
|
-
this.defaults = limitToSeamHttpRequestOptions(options);
|
|
7937
|
-
}
|
|
7938
|
-
static fromClient(client, options = {}) {
|
|
7939
|
-
const constructorOptions = { ...options, client };
|
|
7940
|
-
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
7941
|
-
throw new SeamHttpInvalidOptionsError("Missing client");
|
|
7942
|
-
}
|
|
7943
|
-
return new _SeamHttpSeamV1(constructorOptions);
|
|
7944
|
-
}
|
|
7945
|
-
static fromApiKey(apiKey, options = {}) {
|
|
7946
|
-
const constructorOptions = { ...options, apiKey };
|
|
7947
|
-
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
7948
|
-
throw new SeamHttpInvalidOptionsError("Missing apiKey");
|
|
7949
|
-
}
|
|
7950
|
-
return new _SeamHttpSeamV1(constructorOptions);
|
|
7951
|
-
}
|
|
7952
|
-
static fromClientSessionToken(clientSessionToken, options = {}) {
|
|
7953
|
-
const constructorOptions = { ...options, clientSessionToken };
|
|
7954
|
-
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
7955
|
-
throw new SeamHttpInvalidOptionsError("Missing clientSessionToken");
|
|
7956
|
-
}
|
|
7957
|
-
return new _SeamHttpSeamV1(constructorOptions);
|
|
7958
|
-
}
|
|
7959
|
-
static async fromPublishableKey(publishableKey, userIdentifierKey, options = {}) {
|
|
7960
|
-
warnOnInsecureuserIdentifierKey(userIdentifierKey);
|
|
7961
|
-
const clientOptions = parseOptions({ ...options, publishableKey });
|
|
7962
|
-
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
7963
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7964
|
-
"The client option cannot be used with SeamHttpSeamV1.fromPublishableKey"
|
|
7965
|
-
);
|
|
7966
|
-
}
|
|
7967
|
-
const client = createClient(clientOptions);
|
|
7968
|
-
const clientSessions = SeamHttpClientSessions.fromClient(client);
|
|
7969
|
-
const { token } = await clientSessions.getOrCreate({
|
|
7970
|
-
user_identifier_key: userIdentifierKey
|
|
7971
|
-
});
|
|
7972
|
-
return _SeamHttpSeamV1.fromClientSessionToken(token, options);
|
|
7973
|
-
}
|
|
7974
|
-
static fromConsoleSessionToken(consoleSessionToken, workspaceId, options = {}) {
|
|
7975
|
-
const constructorOptions = { ...options, consoleSessionToken, workspaceId };
|
|
7976
|
-
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
7977
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7978
|
-
"Missing consoleSessionToken or workspaceId"
|
|
7979
|
-
);
|
|
7980
|
-
}
|
|
7981
|
-
return new _SeamHttpSeamV1(constructorOptions);
|
|
7982
|
-
}
|
|
7983
|
-
static fromPersonalAccessToken(personalAccessToken, workspaceId, options = {}) {
|
|
7984
|
-
const constructorOptions = { ...options, personalAccessToken, workspaceId };
|
|
7985
|
-
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
7986
|
-
throw new SeamHttpInvalidOptionsError(
|
|
7987
|
-
"Missing personalAccessToken or workspaceId"
|
|
7988
|
-
);
|
|
7989
|
-
}
|
|
7990
|
-
return new _SeamHttpSeamV1(constructorOptions);
|
|
7991
|
-
}
|
|
7992
|
-
createPaginator(request) {
|
|
7993
|
-
return new SeamPaginator(this, request);
|
|
7994
|
-
}
|
|
7995
|
-
async updateClientSessionToken(clientSessionToken) {
|
|
7996
|
-
const { headers } = this.client.defaults;
|
|
7997
|
-
const authHeaders = getAuthHeadersForClientSessionToken({
|
|
7998
|
-
clientSessionToken
|
|
7999
|
-
});
|
|
8000
|
-
for (const key of Object.keys(authHeaders)) {
|
|
8001
|
-
if (headers[key] == null) {
|
|
8002
|
-
throw new Error(
|
|
8003
|
-
"Cannot update a clientSessionToken on a client created without a clientSessionToken"
|
|
8004
|
-
);
|
|
8005
|
-
}
|
|
8006
|
-
}
|
|
8007
|
-
this.client.defaults.headers = { ...headers, ...authHeaders };
|
|
8008
|
-
const clientSessions = SeamHttpClientSessions.fromClient(this.client);
|
|
8009
|
-
await clientSessions.get();
|
|
8010
|
-
}
|
|
8011
|
-
get customers() {
|
|
8012
|
-
return SeamHttpSeamV1Customers.fromClient(this.client, this.defaults);
|
|
8013
|
-
}
|
|
8014
|
-
};
|
|
8015
|
-
|
|
8016
8302
|
// src/lib/seam/connect/routes/spaces/spaces.ts
|
|
8017
8303
|
var SeamHttpSpaces = class _SeamHttpSpaces {
|
|
8018
8304
|
client;
|
|
@@ -10223,6 +10509,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
10223
10509
|
return seam.get(...args);
|
|
10224
10510
|
};
|
|
10225
10511
|
}
|
|
10512
|
+
get "/access_codes/get_timeline"() {
|
|
10513
|
+
const { client, defaults } = this;
|
|
10514
|
+
return function accessCodesGetTimeline(...args) {
|
|
10515
|
+
const seam = SeamHttpAccessCodes.fromClient(client, defaults);
|
|
10516
|
+
return seam.getTimeline(...args);
|
|
10517
|
+
};
|
|
10518
|
+
}
|
|
10226
10519
|
get "/access_codes/list"() {
|
|
10227
10520
|
const { client, defaults } = this;
|
|
10228
10521
|
return function accessCodesList(...args) {
|
|
@@ -11005,6 +11298,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11005
11298
|
return seam.pushData(...args);
|
|
11006
11299
|
};
|
|
11007
11300
|
}
|
|
11301
|
+
get "/customers/reservations/create_deep_link"() {
|
|
11302
|
+
const { client, defaults } = this;
|
|
11303
|
+
return function customersReservationsCreateDeepLink(...args) {
|
|
11304
|
+
const seam = SeamHttpCustomersReservations.fromClient(client, defaults);
|
|
11305
|
+
return seam.createDeepLink(...args);
|
|
11306
|
+
};
|
|
11307
|
+
}
|
|
11008
11308
|
get "/devices/delete"() {
|
|
11009
11309
|
const { client, defaults } = this;
|
|
11010
11310
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11323,6 +11623,36 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11323
11623
|
return seam.list(...args);
|
|
11324
11624
|
};
|
|
11325
11625
|
}
|
|
11626
|
+
get "/seam/customer/v1/access_grants/update"() {
|
|
11627
|
+
const { client, defaults } = this;
|
|
11628
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11629
|
+
throw new Error(
|
|
11630
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11631
|
+
);
|
|
11632
|
+
}
|
|
11633
|
+
return function seamCustomerV1AccessGrantsUpdate(...args) {
|
|
11634
|
+
const seam = SeamHttpSeamCustomerV1AccessGrants.fromClient(
|
|
11635
|
+
client,
|
|
11636
|
+
defaults
|
|
11637
|
+
);
|
|
11638
|
+
return seam.update(...args);
|
|
11639
|
+
};
|
|
11640
|
+
}
|
|
11641
|
+
get "/seam/customer/v1/access_methods/encode"() {
|
|
11642
|
+
const { client, defaults } = this;
|
|
11643
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11644
|
+
throw new Error(
|
|
11645
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11646
|
+
);
|
|
11647
|
+
}
|
|
11648
|
+
return function seamCustomerV1AccessMethodsEncode(...args) {
|
|
11649
|
+
const seam = SeamHttpSeamCustomerV1AccessMethods.fromClient(
|
|
11650
|
+
client,
|
|
11651
|
+
defaults
|
|
11652
|
+
);
|
|
11653
|
+
return seam.encode(...args);
|
|
11654
|
+
};
|
|
11655
|
+
}
|
|
11326
11656
|
get "/seam/customer/v1/automation_runs/list"() {
|
|
11327
11657
|
const { client, defaults } = this;
|
|
11328
11658
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11494,6 +11824,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11494
11824
|
return seam.list(...args);
|
|
11495
11825
|
};
|
|
11496
11826
|
}
|
|
11827
|
+
get "/seam/customer/v1/customers/me"() {
|
|
11828
|
+
const { client, defaults } = this;
|
|
11829
|
+
return function seamCustomerV1CustomersMe(...args) {
|
|
11830
|
+
const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
|
|
11831
|
+
return seam.me(...args);
|
|
11832
|
+
};
|
|
11833
|
+
}
|
|
11497
11834
|
get "/seam/customer/v1/customers/open_portal"() {
|
|
11498
11835
|
const { client, defaults } = this;
|
|
11499
11836
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11506,6 +11843,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11506
11843
|
return seam.openPortal(...args);
|
|
11507
11844
|
};
|
|
11508
11845
|
}
|
|
11846
|
+
get "/seam/customer/v1/encoders/list"() {
|
|
11847
|
+
const { client, defaults } = this;
|
|
11848
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11849
|
+
throw new Error(
|
|
11850
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11851
|
+
);
|
|
11852
|
+
}
|
|
11853
|
+
return function seamCustomerV1EncodersList(...args) {
|
|
11854
|
+
const seam = SeamHttpSeamCustomerV1Encoders.fromClient(client, defaults);
|
|
11855
|
+
return seam.list(...args);
|
|
11856
|
+
};
|
|
11857
|
+
}
|
|
11509
11858
|
get "/seam/customer/v1/events/list"() {
|
|
11510
11859
|
const { client, defaults } = this;
|
|
11511
11860
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11584,6 +11933,21 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11584
11933
|
return seam.update(...args);
|
|
11585
11934
|
};
|
|
11586
11935
|
}
|
|
11936
|
+
get "/seam/customer/v1/settings/vertical_resource_aliases/get"() {
|
|
11937
|
+
const { client, defaults } = this;
|
|
11938
|
+
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
11939
|
+
throw new Error(
|
|
11940
|
+
"Cannot use undocumented API without isUndocumentedApiEnabled"
|
|
11941
|
+
);
|
|
11942
|
+
}
|
|
11943
|
+
return function seamCustomerV1SettingsVerticalResourceAliasesGet(...args) {
|
|
11944
|
+
const seam = SeamHttpSeamCustomerV1SettingsVerticalResourceAliases.fromClient(
|
|
11945
|
+
client,
|
|
11946
|
+
defaults
|
|
11947
|
+
);
|
|
11948
|
+
return seam.get(...args);
|
|
11949
|
+
};
|
|
11950
|
+
}
|
|
11587
11951
|
get "/seam/customer/v1/spaces/create"() {
|
|
11588
11952
|
const { client, defaults } = this;
|
|
11589
11953
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11620,6 +11984,13 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11620
11984
|
return seam.listReservations(...args);
|
|
11621
11985
|
};
|
|
11622
11986
|
}
|
|
11987
|
+
get "/seam/customer/v1/spaces/push_common_areas"() {
|
|
11988
|
+
const { client, defaults } = this;
|
|
11989
|
+
return function seamCustomerV1SpacesPushCommonAreas(...args) {
|
|
11990
|
+
const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
|
|
11991
|
+
return seam.pushCommonAreas(...args);
|
|
11992
|
+
};
|
|
11993
|
+
}
|
|
11623
11994
|
get "/seam/customer/v1/staff_members/get"() {
|
|
11624
11995
|
const { client, defaults } = this;
|
|
11625
11996
|
if (!this.defaults.isUndocumentedApiEnabled) {
|
|
@@ -11665,13 +12036,6 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
|
|
|
11665
12036
|
return seam.autoMap(...args);
|
|
11666
12037
|
};
|
|
11667
12038
|
}
|
|
11668
|
-
get "/seam/v1/customers/push_data"() {
|
|
11669
|
-
const { client, defaults } = this;
|
|
11670
|
-
return function seamV1CustomersPushData(...args) {
|
|
11671
|
-
const seam = SeamHttpSeamV1Customers.fromClient(client, defaults);
|
|
11672
|
-
return seam.pushData(...args);
|
|
11673
|
-
};
|
|
11674
|
-
}
|
|
11675
12039
|
get "/spaces/add_acs_entrances"() {
|
|
11676
12040
|
const { client, defaults } = this;
|
|
11677
12041
|
return function spacesAddAcsEntrances(...args) {
|
|
@@ -12459,6 +12823,7 @@ exports.SeamHttpConnectWebviews = SeamHttpConnectWebviews;
|
|
|
12459
12823
|
exports.SeamHttpConnectedAccounts = SeamHttpConnectedAccounts;
|
|
12460
12824
|
exports.SeamHttpConnectedAccountsSimulate = SeamHttpConnectedAccountsSimulate;
|
|
12461
12825
|
exports.SeamHttpCustomers = SeamHttpCustomers;
|
|
12826
|
+
exports.SeamHttpCustomersReservations = SeamHttpCustomersReservations;
|
|
12462
12827
|
exports.SeamHttpDevices = SeamHttpDevices;
|
|
12463
12828
|
exports.SeamHttpDevicesSimulate = SeamHttpDevicesSimulate;
|
|
12464
12829
|
exports.SeamHttpDevicesUnmanaged = SeamHttpDevicesUnmanaged;
|
|
@@ -12483,21 +12848,22 @@ exports.SeamHttpSeamConsoleV1 = SeamHttpSeamConsoleV1;
|
|
|
12483
12848
|
exports.SeamHttpSeamConsoleV1Timelines = SeamHttpSeamConsoleV1Timelines;
|
|
12484
12849
|
exports.SeamHttpSeamCustomerV1 = SeamHttpSeamCustomerV1;
|
|
12485
12850
|
exports.SeamHttpSeamCustomerV1AccessGrants = SeamHttpSeamCustomerV1AccessGrants;
|
|
12851
|
+
exports.SeamHttpSeamCustomerV1AccessMethods = SeamHttpSeamCustomerV1AccessMethods;
|
|
12486
12852
|
exports.SeamHttpSeamCustomerV1AutomationRuns = SeamHttpSeamCustomerV1AutomationRuns;
|
|
12487
12853
|
exports.SeamHttpSeamCustomerV1Automations = SeamHttpSeamCustomerV1Automations;
|
|
12488
12854
|
exports.SeamHttpSeamCustomerV1ConnectorCustomers = SeamHttpSeamCustomerV1ConnectorCustomers;
|
|
12489
12855
|
exports.SeamHttpSeamCustomerV1Connectors = SeamHttpSeamCustomerV1Connectors;
|
|
12490
12856
|
exports.SeamHttpSeamCustomerV1Customers = SeamHttpSeamCustomerV1Customers;
|
|
12857
|
+
exports.SeamHttpSeamCustomerV1Encoders = SeamHttpSeamCustomerV1Encoders;
|
|
12491
12858
|
exports.SeamHttpSeamCustomerV1Events = SeamHttpSeamCustomerV1Events;
|
|
12492
12859
|
exports.SeamHttpSeamCustomerV1Portals = SeamHttpSeamCustomerV1Portals;
|
|
12493
12860
|
exports.SeamHttpSeamCustomerV1Reservations = SeamHttpSeamCustomerV1Reservations;
|
|
12494
12861
|
exports.SeamHttpSeamCustomerV1Settings = SeamHttpSeamCustomerV1Settings;
|
|
12862
|
+
exports.SeamHttpSeamCustomerV1SettingsVerticalResourceAliases = SeamHttpSeamCustomerV1SettingsVerticalResourceAliases;
|
|
12495
12863
|
exports.SeamHttpSeamCustomerV1Spaces = SeamHttpSeamCustomerV1Spaces;
|
|
12496
12864
|
exports.SeamHttpSeamCustomerV1StaffMembers = SeamHttpSeamCustomerV1StaffMembers;
|
|
12497
12865
|
exports.SeamHttpSeamPartnerV1BuildingBlocks = SeamHttpSeamPartnerV1BuildingBlocks;
|
|
12498
12866
|
exports.SeamHttpSeamPartnerV1BuildingBlocksSpaces = SeamHttpSeamPartnerV1BuildingBlocksSpaces;
|
|
12499
|
-
exports.SeamHttpSeamV1 = SeamHttpSeamV1;
|
|
12500
|
-
exports.SeamHttpSeamV1Customers = SeamHttpSeamV1Customers;
|
|
12501
12867
|
exports.SeamHttpSpaces = SeamHttpSpaces;
|
|
12502
12868
|
exports.SeamHttpThermostats = SeamHttpThermostats;
|
|
12503
12869
|
exports.SeamHttpThermostatsDailyPrograms = SeamHttpThermostatsDailyPrograms;
|