userplex 0.3.0 → 0.5.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.5.0 (2025-12-13)
4
+
5
+ Full Changelog: [v0.4.0...v0.5.0](https://github.com/dqnamo/userplex-typescript/compare/v0.4.0...v0.5.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([2b8b27e](https://github.com/dqnamo/userplex-typescript/commit/2b8b27ebd4c07df8559c1b69bd81ffcac1c2a7eb))
10
+
11
+ ## 0.4.0 (2025-12-13)
12
+
13
+ Full Changelog: [v0.3.0...v0.4.0](https://github.com/dqnamo/userplex-typescript/compare/v0.3.0...v0.4.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([e8afa29](https://github.com/dqnamo/userplex-typescript/commit/e8afa29b93a7b8747afae248be95048bb31facb8))
18
+
3
19
  ## 0.3.0 (2025-12-13)
4
20
 
5
21
  Full Changelog: [v0.2.0...v0.3.0](https://github.com/dqnamo/userplex-typescript/compare/v0.2.0...v0.3.0)
package/README.md CHANGED
@@ -26,11 +26,7 @@ const client = new Userplex({
26
26
  apiKey: process.env['USERPLEX_API_KEY'], // This is the default and can be omitted
27
27
  });
28
28
 
29
- const response = await client.users.identify({
30
- email: 'REPLACE_ME',
31
- name: 'REPLACE_ME',
32
- userId: 'REPLACE_ME',
33
- });
29
+ const response = await client.users.identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' });
34
30
 
35
31
  console.log(response.success);
36
32
  ```
@@ -47,7 +43,7 @@ const client = new Userplex({
47
43
  apiKey: process.env['USERPLEX_API_KEY'], // This is the default and can be omitted
48
44
  });
49
45
 
50
- const params: Userplex.UserIdentifyParams = { email: 'REPLACE_ME', name: 'REPLACE_ME', userId: 'REPLACE_ME' };
46
+ const params: Userplex.UserIdentifyParams = { user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' };
51
47
  const response: Userplex.UserIdentifyResponse = await client.users.identify(params);
52
48
  ```
53
49
 
@@ -62,7 +58,7 @@ a subclass of `APIError` will be thrown:
62
58
  <!-- prettier-ignore -->
63
59
  ```ts
64
60
  const response = await client.users
65
- .identify({ email: 'REPLACE_ME', name: 'REPLACE_ME', userId: 'REPLACE_ME' })
61
+ .identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' })
66
62
  .catch(async (err) => {
67
63
  if (err instanceof Userplex.APIError) {
68
64
  console.log(err.status); // 400
@@ -103,7 +99,7 @@ const client = new Userplex({
103
99
  });
104
100
 
105
101
  // Or, configure per-request:
106
- await client.users.identify({ email: 'REPLACE_ME', name: 'REPLACE_ME', userId: 'REPLACE_ME' }, {
102
+ await client.users.identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' }, {
107
103
  maxRetries: 5,
108
104
  });
109
105
  ```
@@ -120,7 +116,7 @@ const client = new Userplex({
120
116
  });
121
117
 
122
118
  // Override per-request:
123
- await client.users.identify({ email: 'REPLACE_ME', name: 'REPLACE_ME', userId: 'REPLACE_ME' }, {
119
+ await client.users.identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' }, {
124
120
  timeout: 5 * 1000,
125
121
  });
126
122
  ```
@@ -144,13 +140,13 @@ Unlike `.asResponse()` this method consumes the body, returning once it is parse
144
140
  const client = new Userplex();
145
141
 
146
142
  const response = await client.users
147
- .identify({ email: 'REPLACE_ME', name: 'REPLACE_ME', userId: 'REPLACE_ME' })
143
+ .identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' })
148
144
  .asResponse();
149
145
  console.log(response.headers.get('X-My-Header'));
150
146
  console.log(response.statusText); // access the underlying Response object
151
147
 
152
148
  const { data: response, response: raw } = await client.users
153
- .identify({ email: 'REPLACE_ME', name: 'REPLACE_ME', userId: 'REPLACE_ME' })
149
+ .identify({ user_id: 'user_id', email: 'REPLACE_ME', name: 'REPLACE_ME' })
154
150
  .withResponse();
155
151
  console.log(raw.headers.get('X-My-Header'));
156
152
  console.log(response.success);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "userplex",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "The official TypeScript library for the Userplex API",
5
5
  "author": "Userplex <>",
6
6
  "types": "./index.d.ts",
@@ -13,24 +13,20 @@ export interface UserIdentifyResponse {
13
13
  * Operation success status
14
14
  */
15
15
  success: boolean;
16
- /**
17
- * The ID of the identified user
18
- */
19
- userId: string;
20
16
  }
21
17
  export interface UserIdentifyParams {
22
18
  /**
23
- * User email address
19
+ * Unique identifier for the user
24
20
  */
25
- email: string;
21
+ user_id: string;
26
22
  /**
27
- * User full name
23
+ * User email address
28
24
  */
29
- name: string;
25
+ email?: string;
30
26
  /**
31
- * Unique identifier for the user
27
+ * User full name
32
28
  */
33
- userId: string;
29
+ name?: string;
34
30
  /**
35
31
  * Additional user properties
36
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
1
+ {"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
@@ -13,24 +13,20 @@ export interface UserIdentifyResponse {
13
13
  * Operation success status
14
14
  */
15
15
  success: boolean;
16
- /**
17
- * The ID of the identified user
18
- */
19
- userId: string;
20
16
  }
21
17
  export interface UserIdentifyParams {
22
18
  /**
23
- * User email address
19
+ * Unique identifier for the user
24
20
  */
25
- email: string;
21
+ user_id: string;
26
22
  /**
27
- * User full name
23
+ * User email address
28
24
  */
29
- name: string;
25
+ email?: string;
30
26
  /**
31
- * Unique identifier for the user
27
+ * User full name
32
28
  */
33
- userId: string;
29
+ name?: string;
34
30
  /**
35
31
  * Additional user properties
36
32
  */
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/resources/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;CAG/F;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,oBAAoB,IAAI,oBAAoB,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,CAAC;CAC7G"}
@@ -19,28 +19,23 @@ export interface UserIdentifyResponse {
19
19
  * Operation success status
20
20
  */
21
21
  success: boolean;
22
-
23
- /**
24
- * The ID of the identified user
25
- */
26
- userId: string;
27
22
  }
28
23
 
29
24
  export interface UserIdentifyParams {
30
25
  /**
31
- * User email address
26
+ * Unique identifier for the user
32
27
  */
33
- email: string;
28
+ user_id: string;
34
29
 
35
30
  /**
36
- * User full name
31
+ * User email address
37
32
  */
38
- name: string;
33
+ email?: string;
39
34
 
40
35
  /**
41
- * Unique identifier for the user
36
+ * User full name
42
37
  */
43
- userId: string;
38
+ name?: string;
44
39
 
45
40
  /**
46
41
  * Additional user properties
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.3.0'; // x-release-please-version
1
+ export const VERSION = '0.5.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.3.0";
1
+ export declare const VERSION = "0.5.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.3.0";
1
+ export declare const VERSION = "0.5.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.3.0'; // x-release-please-version
4
+ exports.VERSION = '0.5.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.3.0'; // x-release-please-version
1
+ export const VERSION = '0.5.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map