@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/connect.cjs CHANGED
@@ -7856,6 +7856,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
7856
7856
  constructor(apiKeyOrOptions = {}) {
7857
7857
  this.ltsVersion = seamApiLtsVersion;
7858
7858
  const options = parseOptions(apiKeyOrOptions);
7859
+ if (!options.isUndocumentedApiEnabled) {
7860
+ throw new Error(
7861
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7862
+ );
7863
+ }
7859
7864
  this.client = "client" in options ? options.client : createClient(options);
7860
7865
  this.defaults = limitToSeamHttpRequestOptions(options);
7861
7866
  }
@@ -7936,6 +7941,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
7936
7941
  await clientSessions.get();
7937
7942
  }
7938
7943
  create(parameters, options = {}) {
7944
+ if (!this.defaults.isUndocumentedApiEnabled) {
7945
+ throw new Error(
7946
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7947
+ );
7948
+ }
7939
7949
  return new SeamHttpRequest(this, {
7940
7950
  pathname: "/workspaces/customization_profiles/create",
7941
7951
  method: "POST",
@@ -7945,6 +7955,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
7945
7955
  });
7946
7956
  }
7947
7957
  get(parameters, options = {}) {
7958
+ if (!this.defaults.isUndocumentedApiEnabled) {
7959
+ throw new Error(
7960
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7961
+ );
7962
+ }
7948
7963
  return new SeamHttpRequest(this, {
7949
7964
  pathname: "/workspaces/customization_profiles/get",
7950
7965
  method: "POST",
@@ -7954,6 +7969,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
7954
7969
  });
7955
7970
  }
7956
7971
  list(parameters, options = {}) {
7972
+ if (!this.defaults.isUndocumentedApiEnabled) {
7973
+ throw new Error(
7974
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7975
+ );
7976
+ }
7957
7977
  return new SeamHttpRequest(this, {
7958
7978
  pathname: "/workspaces/customization_profiles/list",
7959
7979
  method: "GET",
@@ -7963,6 +7983,11 @@ var _SeamHttpWorkspacesCustomizationProfiles = class _SeamHttpWorkspacesCustomiz
7963
7983
  });
7964
7984
  }
7965
7985
  update(parameters, options = {}) {
7986
+ if (!this.defaults.isUndocumentedApiEnabled) {
7987
+ throw new Error(
7988
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
7989
+ );
7990
+ }
7966
7991
  return new SeamHttpRequest(this, {
7967
7992
  pathname: "/workspaces/customization_profiles/update",
7968
7993
  method: "PATCH",
@@ -10060,6 +10085,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10060
10085
  }
10061
10086
  get ["/workspaces/customization_profiles/create"]() {
10062
10087
  const { client, defaults } = this;
10088
+ if (!this.defaults.isUndocumentedApiEnabled) {
10089
+ throw new Error(
10090
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10091
+ );
10092
+ }
10063
10093
  return function workspacesCustomizationProfilesCreate(...args) {
10064
10094
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10065
10095
  client,
@@ -10070,6 +10100,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10070
10100
  }
10071
10101
  get ["/workspaces/customization_profiles/get"]() {
10072
10102
  const { client, defaults } = this;
10103
+ if (!this.defaults.isUndocumentedApiEnabled) {
10104
+ throw new Error(
10105
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10106
+ );
10107
+ }
10073
10108
  return function workspacesCustomizationProfilesGet(...args) {
10074
10109
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10075
10110
  client,
@@ -10080,6 +10115,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10080
10115
  }
10081
10116
  get ["/workspaces/customization_profiles/list"]() {
10082
10117
  const { client, defaults } = this;
10118
+ if (!this.defaults.isUndocumentedApiEnabled) {
10119
+ throw new Error(
10120
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10121
+ );
10122
+ }
10083
10123
  return function workspacesCustomizationProfilesList(...args) {
10084
10124
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10085
10125
  client,
@@ -10090,6 +10130,11 @@ var _SeamHttpEndpoints = class _SeamHttpEndpoints {
10090
10130
  }
10091
10131
  get ["/workspaces/customization_profiles/update"]() {
10092
10132
  const { client, defaults } = this;
10133
+ if (!this.defaults.isUndocumentedApiEnabled) {
10134
+ throw new Error(
10135
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10136
+ );
10137
+ }
10093
10138
  return function workspacesCustomizationProfilesUpdate(...args) {
10094
10139
  const seam = SeamHttpWorkspacesCustomizationProfiles.fromClient(
10095
10140
  client,