@seamapi/http 0.18.1 → 0.20.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/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Seam HTTP Client
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@seamapi/http.svg)](https://www.npmjs.com/package/@seamapi/http)
4
+ [![Seam LTS Version](https://img.shields.io/badge/Seam_LTS-1.0.0-blue)](https://docs.seam.co/lts)
4
5
  [![GitHub Actions](https://github.com/seamapi/javascript-http/actions/workflows/check.yml/badge.svg)](https://github.com/seamapi/javascript-http/actions/workflows/check.yml)
5
6
 
6
7
  JavaScript HTTP client for the Seam API written in TypeScript.
package/dist/connect.cjs CHANGED
@@ -11,15 +11,19 @@ var axios__default = /*#__PURE__*/_interopDefault(axios);
11
11
  var axiosBetterStacktrace__default = /*#__PURE__*/_interopDefault(axiosBetterStacktrace);
12
12
  var axiosRetry__default = /*#__PURE__*/_interopDefault(axiosRetry);
13
13
 
14
+ // src/lib/lts-version.ts
15
+ var seamApiLtsVersion = "1.0.0";
16
+
14
17
  // src/lib/version.ts
15
- var seamapiJavascriptHttpVersion = null;
18
+ var seamapiJavascriptHttpVersion = "0.0.0";
16
19
  var version_default = seamapiJavascriptHttpVersion;
17
20
 
18
21
  // src/lib/seam/connect/parse-options.ts
19
22
  var defaultEndpoint = "https://connect.getseam.com";
20
23
  var sdkHeaders = {
21
24
  "seam-sdk-name": "seamapi/javascript-http",
22
- "seam-sdk-version": version_default
25
+ "seam-sdk-version": version_default,
26
+ "seam-lts-version": seamApiLtsVersion
23
27
  };
24
28
  var parseOptions = (apiKeyOrOptions) => {
25
29
  const options = getNormalizedOptions(apiKeyOrOptions);
@@ -3456,6 +3460,15 @@ var SeamHttpUserIdentitiesEnrollmentAutomations = class _SeamHttpUserIdentitiesE
3456
3460
  const clientSessions = SeamHttpClientSessions.fromClient(this.client);
3457
3461
  await clientSessions.get();
3458
3462
  }
3463
+ async delete(body) {
3464
+ await this.client.request(
3465
+ {
3466
+ url: "/user_identities/enrollment_automations/delete",
3467
+ method: "post",
3468
+ data: body
3469
+ }
3470
+ );
3471
+ }
3459
3472
  async get(body) {
3460
3473
  const { data } = await this.client.request(
3461
3474
  {
@@ -3654,6 +3667,13 @@ var SeamHttpUserIdentities = class _SeamHttpUserIdentities {
3654
3667
  data: body
3655
3668
  });
3656
3669
  }
3670
+ async update(body) {
3671
+ await this.client.request({
3672
+ url: "/user_identities/update",
3673
+ method: "post",
3674
+ data: body
3675
+ });
3676
+ }
3657
3677
  };
3658
3678
 
3659
3679
  // src/lib/seam/connect/routes/webhooks.ts
@@ -3884,8 +3904,9 @@ var SeamHttpWorkspaces = class _SeamHttpWorkspaces {
3884
3904
  };
3885
3905
 
3886
3906
  // src/lib/seam/connect/seam-http.ts
3887
- var SeamHttp = class _SeamHttp {
3907
+ var _SeamHttp = class _SeamHttp {
3888
3908
  constructor(apiKeyOrOptions = {}) {
3909
+ this.ltsVersion = seamApiLtsVersion;
3889
3910
  const options = parseOptions(apiKeyOrOptions);
3890
3911
  this.client = "client" in options ? options.client : createClient(options);
3891
3912
  this.defaults = limitToSeamHttpRequestOptions(options);
@@ -4009,6 +4030,8 @@ var SeamHttp = class _SeamHttp {
4009
4030
  return SeamHttpWorkspaces.fromClient(this.client, this.defaults);
4010
4031
  }
4011
4032
  };
4033
+ _SeamHttp.ltsVersion = seamApiLtsVersion;
4034
+ var SeamHttp = _SeamHttp;
4012
4035
 
4013
4036
  // src/lib/seam/connect/seam-http-multi-workspace.ts
4014
4037
  var SeamHttpMultiWorkspace = class _SeamHttpMultiWorkspace {