@seamapi/http 1.98.0 → 1.99.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
@@ -6640,6 +6640,20 @@ var SeamHttpSeamCustomerV1Customers = class _SeamHttpSeamCustomerV1Customers {
6640
6640
  options
6641
6641
  });
6642
6642
  }
6643
+ openPortal(parameters, options = {}) {
6644
+ if (!this.defaults.isUndocumentedApiEnabled) {
6645
+ throw new Error(
6646
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
6647
+ );
6648
+ }
6649
+ return new SeamHttpRequest(this, {
6650
+ pathname: "/seam/customer/v1/customers/open_portal",
6651
+ method: "POST",
6652
+ body: parameters,
6653
+ responseKey: "magic_link",
6654
+ options
6655
+ });
6656
+ }
6643
6657
  };
6644
6658
 
6645
6659
  // src/lib/seam/connect/routes/seam/customer/v1/events/events.ts
@@ -11167,6 +11181,18 @@ var SeamHttpEndpoints = class _SeamHttpEndpoints {
11167
11181
  return seam.list(...args);
11168
11182
  };
11169
11183
  }
11184
+ get "/seam/customer/v1/customers/open_portal"() {
11185
+ const { client, defaults } = this;
11186
+ if (!this.defaults.isUndocumentedApiEnabled) {
11187
+ throw new Error(
11188
+ "Cannot use undocumented API without isUndocumentedApiEnabled"
11189
+ );
11190
+ }
11191
+ return function seamCustomerV1CustomersOpenPortal(...args) {
11192
+ const seam = SeamHttpSeamCustomerV1Customers.fromClient(client, defaults);
11193
+ return seam.openPortal(...args);
11194
+ };
11195
+ }
11170
11196
  get "/seam/customer/v1/events/list"() {
11171
11197
  const { client, defaults } = this;
11172
11198
  if (!this.defaults.isUndocumentedApiEnabled) {