@seamapi/http 1.85.0 → 1.87.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.
Files changed (27) hide show
  1. package/dist/connect.cjs +74 -0
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +16 -2
  4. package/dist/index.cjs +74 -0
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.d.cts +1 -1
  7. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js +6 -0
  8. package/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.js.map +1 -1
  9. package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js +9 -0
  10. package/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.js.map +1 -1
  11. package/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.d.ts +13 -0
  12. package/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.js +12 -0
  13. package/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.js.map +1 -1
  14. package/lib/seam/connect/routes/seam/customer/v1/v1.js +3 -0
  15. package/lib/seam/connect/routes/seam/customer/v1/v1.js.map +1 -1
  16. package/lib/seam/connect/routes/seam-http-endpoints.d.ts +3 -2
  17. package/lib/seam/connect/routes/seam-http-endpoints.js +19 -0
  18. package/lib/seam/connect/routes/seam-http-endpoints.js.map +1 -1
  19. package/lib/version.d.ts +1 -1
  20. package/lib/version.js +1 -1
  21. package/package.json +3 -3
  22. package/src/lib/seam/connect/routes/seam/customer/v1/connectors/connectors.ts +10 -0
  23. package/src/lib/seam/connect/routes/seam/customer/v1/spaces/spaces.ts +15 -0
  24. package/src/lib/seam/connect/routes/seam/customer/v1/staff-members/staff-members.ts +41 -0
  25. package/src/lib/seam/connect/routes/seam/customer/v1/v1.ts +5 -0
  26. package/src/lib/seam/connect/routes/seam-http-endpoints.ts +40 -0
  27. package/src/lib/version.ts +1 -1
package/dist/connect.cjs CHANGED
@@ -6120,6 +6120,11 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
6120
6120
  static ltsVersion = seamApiLtsVersion;
6121
6121
  constructor(apiKeyOrOptions = {}) {
6122
6122
  const options = parseOptions(apiKeyOrOptions);
6123
+ if (!options.isUndocumentedApiEnabled) {
6124
+ throw new Error(
6125
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6126
+ );
6127
+ }
6123
6128
  this.client = "client" in options ? options.client : createClient(options);
6124
6129
  this.defaults = limitToSeamHttpRequestOptions(options);
6125
6130
  }
@@ -6228,6 +6233,11 @@ var SeamHttpSeamCustomerV1Connectors = class _SeamHttpSeamCustomerV1Connectors {
6228
6233
  });
6229
6234
  }
6230
6235
  sync(parameters, options = {}) {
6236
+ if (!this.defaults.isUndocumentedApiEnabled) {
6237
+ throw new Error(
6238
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6239
+ );
6240
+ }
6231
6241
  return new SeamHttpRequest(this, {
6232
6242
  pathname: "/seam/customer/v1/connectors/sync",
6233
6243
  method: "POST",
@@ -6697,6 +6707,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
6697
6707
  static ltsVersion = seamApiLtsVersion;
6698
6708
  constructor(apiKeyOrOptions = {}) {
6699
6709
  const options = parseOptions(apiKeyOrOptions);
6710
+ if (!options.isUndocumentedApiEnabled) {
6711
+ throw new Error(
6712
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6713
+ );
6714
+ }
6700
6715
  this.client = "client" in options ? options.client : createClient(options);
6701
6716
  this.defaults = limitToSeamHttpRequestOptions(options);
6702
6717
  }
@@ -6774,6 +6789,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
6774
6789
  await clientSessions.get();
6775
6790
  }
6776
6791
  create(parameters, options = {}) {
6792
+ if (!this.defaults.isUndocumentedApiEnabled) {
6793
+ throw new Error(
6794
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6795
+ );
6796
+ }
6777
6797
  return new SeamHttpRequest(this, {
6778
6798
  pathname: "/seam/customer/v1/spaces/create",
6779
6799
  method: "POST",
@@ -6783,6 +6803,11 @@ var SeamHttpSeamCustomerV1Spaces = class _SeamHttpSeamCustomerV1Spaces {
6783
6803
  });
6784
6804
  }
6785
6805
  list(parameters, options = {}) {
6806
+ if (!this.defaults.isUndocumentedApiEnabled) {
6807
+ throw new Error(
6808
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6809
+ );
6810
+ }
6786
6811
  return new SeamHttpRequest(this, {
6787
6812
  pathname: "/seam/customer/v1/spaces/list",
6788
6813
  method: "POST",
@@ -6885,6 +6910,20 @@ var SeamHttpSeamCustomerV1StaffMembers = class _SeamHttpSeamCustomerV1StaffMembe
6885
6910
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
6886
6911
  await clientSessions.get();
6887
6912
  }
6913
+ get(parameters, options = {}) {
6914
+ if (!this.defaults.isUndocumentedApiEnabled) {
6915
+ throw new Error(
6916
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6917
+ );
6918
+ }
6919
+ return new SeamHttpRequest(this, {
6920
+ pathname: "/seam/customer/v1/staff_members/get",
6921
+ method: "POST",
6922
+ body: parameters,
6923
+ responseKey: "staff_member",
6924
+ options
6925
+ });
6926
+ }
6888
6927
  list(parameters, options = {}) {
6889
6928
  if (!this.defaults.isUndocumentedApiEnabled) {
6890
6929
  throw new Error(
@@ -6909,6 +6948,11 @@ var SeamHttpSeamCustomerV1 = class _SeamHttpSeamCustomerV1 {
6909
6948
  static ltsVersion = seamApiLtsVersion;
6910
6949
  constructor(apiKeyOrOptions = {}) {
6911
6950
  const options = parseOptions(apiKeyOrOptions);
6951
+ if (!options.isUndocumentedApiEnabled) {
6952
+ throw new Error(
6953
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6954
+ );
6955
+ }
6912
6956
  this.client = "client" in options ? options.client : createClient(options);
6913
6957
  this.defaults = limitToSeamHttpRequestOptions(options);
6914
6958
  }
@@ -10594,6 +10638,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10594
10638
  }
10595
10639
  get "/seam/customer/v1/connectors/sync"() {
10596
10640
  const { client, defaults } = this;
10641
+ if (!this.defaults.isUndocumentedApiEnabled) {
10642
+ throw new Error(
10643
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10644
+ );
10645
+ }
10597
10646
  return function seamCustomerV1ConnectorsSync(...args) {
10598
10647
  const seam = SeamHttpSeamCustomerV1Connectors.fromClient(client, defaults);
10599
10648
  return seam.sync(...args);
@@ -10679,6 +10728,11 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10679
10728
  }
10680
10729
  get "/seam/customer/v1/spaces/create"() {
10681
10730
  const { client, defaults } = this;
10731
+ if (!this.defaults.isUndocumentedApiEnabled) {
10732
+ throw new Error(
10733
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10734
+ );
10735
+ }
10682
10736
  return function seamCustomerV1SpacesCreate(...args) {
10683
10737
  const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
10684
10738
  return seam.create(...args);
@@ -10686,11 +10740,31 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
10686
10740
  }
10687
10741
  get "/seam/customer/v1/spaces/list"() {
10688
10742
  const { client, defaults } = this;
10743
+ if (!this.defaults.isUndocumentedApiEnabled) {
10744
+ throw new Error(
10745
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10746
+ );
10747
+ }
10689
10748
  return function seamCustomerV1SpacesList(...args) {
10690
10749
  const seam = SeamHttpSeamCustomerV1Spaces.fromClient(client, defaults);
10691
10750
  return seam.list(...args);
10692
10751
  };
10693
10752
  }
10753
+ get "/seam/customer/v1/staff_members/get"() {
10754
+ const { client, defaults } = this;
10755
+ if (!this.defaults.isUndocumentedApiEnabled) {
10756
+ throw new Error(
10757
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
10758
+ );
10759
+ }
10760
+ return function seamCustomerV1StaffMembersGet(...args) {
10761
+ const seam = SeamHttpSeamCustomerV1StaffMembers.fromClient(
10762
+ client,
10763
+ defaults
10764
+ );
10765
+ return seam.get(...args);
10766
+ };
10767
+ }
10694
10768
  get "/seam/customer/v1/staff_members/list"() {
10695
10769
  const { client, defaults } = this;
10696
10770
  if (!this.defaults.isUndocumentedApiEnabled) {