@seamapi/http 1.59.0 → 1.60.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/index.cjs CHANGED
@@ -8092,6 +8092,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
8092
8092
  constructor(apiKeyOrOptions = {}) {
8093
8093
  this.ltsVersion = seamApiLtsVersion;
8094
8094
  const options = parseOptions(apiKeyOrOptions);
8095
+ if (!options.isUndocumentedApiEnabled) {
8096
+ throw new Error(
8097
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8098
+ );
8099
+ }
8095
8100
  this.client = "client" in options ? options.client : createClient(options);
8096
8101
  this.defaults = limitToSeamHttpRequestOptions(options);
8097
8102
  }
@@ -8172,6 +8177,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
8172
8177
  await clientSessions.get();
8173
8178
  }
8174
8179
  create(parameters, options = {}) {
8180
+ if (!this.defaults.isUndocumentedApiEnabled) {
8181
+ throw new Error(
8182
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8183
+ );
8184
+ }
8175
8185
  return new SeamHttpRequest(this, {
8176
8186
  pathname: "/workspaces/customization_profiles/create",
8177
8187
  method: "POST",
@@ -8181,6 +8191,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
8181
8191
  });
8182
8192
  }
8183
8193
  get(parameters, options = {}) {
8194
+ if (!this.defaults.isUndocumentedApiEnabled) {
8195
+ throw new Error(
8196
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8197
+ );
8198
+ }
8184
8199
  return new SeamHttpRequest(this, {
8185
8200
  pathname: "/workspaces/customization_profiles/get",
8186
8201
  method: "POST",
@@ -8190,6 +8205,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
8190
8205
  });
8191
8206
  }
8192
8207
  list(parameters, options = {}) {
8208
+ if (!this.defaults.isUndocumentedApiEnabled) {
8209
+ throw new Error(
8210
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8211
+ );
8212
+ }
8193
8213
  return new SeamHttpRequest(this, {
8194
8214
  pathname: "/workspaces/customization_profiles/list",
8195
8215
  method: "GET",
@@ -8199,6 +8219,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
8199
8219
  });
8200
8220
  }
8201
8221
  update(parameters, options = {}) {
8222
+ if (!this.defaults.isUndocumentedApiEnabled) {
8223
+ throw new Error(
8224
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
8225
+ );
8226
+ }
8202
8227
  return new SeamHttpRequest(this, {
8203
8228
  pathname: "/workspaces/customization_profiles/update",
8204
8229
  method: "PATCH",
@@ -10296,6 +10321,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10296
10321
  }
10297
10322
  get ["/workspaces/customization_profiles/create"]() {
10298
10323
  const { client, defaults } = this;
10324
+ if (!this.defaults.isUndocumentedApiEnabled) {
10325
+ throw new Error(
10326
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10327
+ );
10328
+ }
10299
10329
  return function workspacesCustomizationProfilesCreate(...args) {
10300
10330
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10301
10331
  client,
@@ -10306,6 +10336,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10306
10336
  }
10307
10337
  get ["/workspaces/customization_profiles/get"]() {
10308
10338
  const { client, defaults } = this;
10339
+ if (!this.defaults.isUndocumentedApiEnabled) {
10340
+ throw new Error(
10341
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10342
+ );
10343
+ }
10309
10344
  return function workspacesCustomizationProfilesGet(...args) {
10310
10345
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10311
10346
  client,
@@ -10316,6 +10351,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10316
10351
  }
10317
10352
  get ["/workspaces/customization_profiles/list"]() {
10318
10353
  const { client, defaults } = this;
10354
+ if (!this.defaults.isUndocumentedApiEnabled) {
10355
+ throw new Error(
10356
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10357
+ );
10358
+ }
10319
10359
  return function workspacesCustomizationProfilesList(...args) {
10320
10360
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10321
10361
  client,
@@ -10326,6 +10366,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10326
10366
  }
10327
10367
  get ["/workspaces/customization_profiles/update"]() {
10328
10368
  const { client, defaults } = this;
10369
+ if (!this.defaults.isUndocumentedApiEnabled) {
10370
+ throw new Error(
10371
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10372
+ );
10373
+ }
10329
10374
  return function workspacesCustomizationProfilesUpdate(...args) {
10330
10375
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10331
10376
  client,