@papr/memory 1.9.0 → 1.13.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 +45 -0
- package/README.md +11 -9
- package/client.d.mts +23 -11
- package/client.d.mts.map +1 -1
- package/client.d.ts +23 -11
- package/client.d.ts.map +1 -1
- package/client.js +41 -21
- package/client.js.map +1 -1
- package/client.mjs +41 -21
- package/client.mjs.map +1 -1
- package/internal/request-options.d.mts +42 -0
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +42 -0
- package/internal/request-options.d.ts.map +1 -1
- package/internal/request-options.js.map +1 -1
- package/internal/request-options.mjs.map +1 -1
- package/internal/uploads.js +1 -1
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +4 -3
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs +4 -3
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +26 -5
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs +26 -5
- package/internal/utils/path.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/feedback.d.mts +333 -0
- package/resources/feedback.d.mts.map +1 -0
- package/resources/feedback.d.ts +333 -0
- package/resources/feedback.d.ts.map +1 -0
- package/resources/feedback.js +108 -0
- package/resources/feedback.js.map +1 -0
- package/resources/feedback.mjs +104 -0
- package/resources/feedback.mjs.map +1 -0
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/memory.d.mts +48 -11
- package/resources/memory.d.mts.map +1 -1
- package/resources/memory.d.ts +48 -11
- package/resources/memory.d.ts.map +1 -1
- package/resources/memory.js +11 -0
- package/resources/memory.js.map +1 -1
- package/resources/memory.mjs +11 -0
- package/resources/memory.mjs.map +1 -1
- package/resources/user.d.mts +24 -88
- package/resources/user.d.mts.map +1 -1
- package/resources/user.d.ts +24 -88
- package/resources/user.d.ts.map +1 -1
- package/resources/user.js +17 -56
- package/resources/user.js.map +1 -1
- package/resources/user.mjs +17 -56
- package/resources/user.mjs.map +1 -1
- package/src/client.ts +74 -28
- package/src/internal/request-options.ts +53 -0
- package/src/internal/uploads.ts +1 -1
- package/src/internal/utils/log.ts +3 -2
- package/src/internal/utils/path.ts +32 -7
- package/src/resources/feedback.ts +424 -0
- package/src/resources/index.ts +9 -1
- package/src/resources/memory.ts +44 -11
- package/src/resources/user.ts +29 -130
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/resources/user.d.mts
CHANGED
|
@@ -10,45 +10,38 @@ export declare class User extends APIResource {
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const userResponse = await client.user.create({
|
|
12
12
|
* external_id: 'user123',
|
|
13
|
-
* 'X-API-Key': 'X-API-Key',
|
|
14
13
|
* });
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
|
-
create(
|
|
16
|
+
create(body: UserCreateParams, options?: RequestOptions): APIPromise<UserResponse>;
|
|
18
17
|
/**
|
|
19
18
|
* Update user details by user_id (\_User.objectId) and developer association
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
21
|
* ```ts
|
|
23
|
-
* const userResponse = await client.user.update('user_id'
|
|
24
|
-
* 'X-API-Key': 'X-API-Key',
|
|
25
|
-
* });
|
|
22
|
+
* const userResponse = await client.user.update('user_id');
|
|
26
23
|
* ```
|
|
27
24
|
*/
|
|
28
|
-
update(userID: string,
|
|
25
|
+
update(userID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<UserResponse>;
|
|
29
26
|
/**
|
|
30
27
|
* List users for a developer
|
|
31
28
|
*
|
|
32
29
|
* @example
|
|
33
30
|
* ```ts
|
|
34
|
-
* const users = await client.user.list(
|
|
35
|
-
* 'X-API-Key': 'X-API-Key',
|
|
36
|
-
* });
|
|
31
|
+
* const users = await client.user.list();
|
|
37
32
|
* ```
|
|
38
33
|
*/
|
|
39
|
-
list(
|
|
34
|
+
list(query?: UserListParams | null | undefined, options?: RequestOptions): APIPromise<UserListResponse>;
|
|
40
35
|
/**
|
|
41
36
|
* Delete user association with developer and the user itself by , assume external
|
|
42
37
|
* user_id is provided, and resolve to internal user_id (\_User.objectId)
|
|
43
38
|
*
|
|
44
39
|
* @example
|
|
45
40
|
* ```ts
|
|
46
|
-
* const user = await client.user.delete('user_id'
|
|
47
|
-
* 'X-API-Key': 'X-API-Key',
|
|
48
|
-
* });
|
|
41
|
+
* const user = await client.user.delete('user_id');
|
|
49
42
|
* ```
|
|
50
43
|
*/
|
|
51
|
-
delete(userID: string, params
|
|
44
|
+
delete(userID: string, params?: UserDeleteParams | null | undefined, options?: RequestOptions): APIPromise<UserDeleteResponse>;
|
|
52
45
|
/**
|
|
53
46
|
* Create multiple users or link existing users to developer, and add each to the
|
|
54
47
|
* developer's workspace (if one exists).
|
|
@@ -57,22 +50,19 @@ export declare class User extends APIResource {
|
|
|
57
50
|
* ```ts
|
|
58
51
|
* const response = await client.user.createBatch({
|
|
59
52
|
* users: [{ external_id: 'user123' }],
|
|
60
|
-
* 'X-API-Key': 'X-API-Key',
|
|
61
53
|
* });
|
|
62
54
|
* ```
|
|
63
55
|
*/
|
|
64
|
-
createBatch(
|
|
56
|
+
createBatch(body: UserCreateBatchParams, options?: RequestOptions): APIPromise<UserCreateBatchResponse>;
|
|
65
57
|
/**
|
|
66
58
|
* Get user details by user_id (\_User.objectId) and developer association
|
|
67
59
|
*
|
|
68
60
|
* @example
|
|
69
61
|
* ```ts
|
|
70
|
-
* const userResponse = await client.user.get('user_id'
|
|
71
|
-
* 'X-API-Key': 'X-API-Key',
|
|
72
|
-
* });
|
|
62
|
+
* const userResponse = await client.user.get('user_id');
|
|
73
63
|
* ```
|
|
74
64
|
*/
|
|
75
|
-
get(userID: string,
|
|
65
|
+
get(userID: string, options?: RequestOptions): APIPromise<UserResponse>;
|
|
76
66
|
}
|
|
77
67
|
/**
|
|
78
68
|
* Response model for user operations
|
|
@@ -91,7 +81,9 @@ export interface UserResponse {
|
|
|
91
81
|
email?: string | null;
|
|
92
82
|
error?: string | null;
|
|
93
83
|
external_id?: string | null;
|
|
94
|
-
metadata?:
|
|
84
|
+
metadata?: {
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
} | null;
|
|
95
87
|
updated_at?: string | null;
|
|
96
88
|
user_id?: string | null;
|
|
97
89
|
}
|
|
@@ -155,90 +147,35 @@ export interface UserCreateBatchResponse {
|
|
|
155
147
|
total?: number | null;
|
|
156
148
|
}
|
|
157
149
|
export interface UserCreateParams {
|
|
158
|
-
/**
|
|
159
|
-
* Body param:
|
|
160
|
-
*/
|
|
161
150
|
external_id: string;
|
|
162
|
-
/**
|
|
163
|
-
* Header param:
|
|
164
|
-
*/
|
|
165
|
-
'X-API-Key': string;
|
|
166
|
-
/**
|
|
167
|
-
* Body param:
|
|
168
|
-
*/
|
|
169
151
|
email?: string | null;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
metadata?: unknown | null;
|
|
174
|
-
/**
|
|
175
|
-
* Body param:
|
|
176
|
-
*/
|
|
152
|
+
metadata?: {
|
|
153
|
+
[key: string]: unknown;
|
|
154
|
+
} | null;
|
|
177
155
|
type?: UserType;
|
|
178
156
|
}
|
|
179
157
|
export interface UserUpdateParams {
|
|
180
|
-
/**
|
|
181
|
-
* Header param:
|
|
182
|
-
*/
|
|
183
|
-
'X-API-Key': string;
|
|
184
|
-
/**
|
|
185
|
-
* Body param:
|
|
186
|
-
*/
|
|
187
158
|
email?: string | null;
|
|
188
|
-
/**
|
|
189
|
-
* Body param:
|
|
190
|
-
*/
|
|
191
159
|
external_id?: string | null;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
metadata?: unknown | null;
|
|
196
|
-
/**
|
|
197
|
-
* Body param:
|
|
198
|
-
*/
|
|
160
|
+
metadata?: {
|
|
161
|
+
[key: string]: unknown;
|
|
162
|
+
} | null;
|
|
199
163
|
type?: UserType | null;
|
|
200
164
|
}
|
|
201
165
|
export interface UserListParams {
|
|
202
|
-
/**
|
|
203
|
-
* Header param:
|
|
204
|
-
*/
|
|
205
|
-
'X-API-Key': string;
|
|
206
|
-
/**
|
|
207
|
-
* Query param:
|
|
208
|
-
*/
|
|
209
166
|
email?: string | null;
|
|
210
|
-
/**
|
|
211
|
-
* Query param:
|
|
212
|
-
*/
|
|
213
167
|
external_id?: string | null;
|
|
214
|
-
/**
|
|
215
|
-
* Query param:
|
|
216
|
-
*/
|
|
217
168
|
page?: number;
|
|
218
|
-
/**
|
|
219
|
-
* Query param:
|
|
220
|
-
*/
|
|
221
169
|
page_size?: number;
|
|
222
170
|
}
|
|
223
171
|
export interface UserDeleteParams {
|
|
224
172
|
/**
|
|
225
|
-
*
|
|
226
|
-
*/
|
|
227
|
-
'X-API-Key': string;
|
|
228
|
-
/**
|
|
229
|
-
* Query param: Is this an external user ID?
|
|
173
|
+
* Is this an external user ID?
|
|
230
174
|
*/
|
|
231
175
|
is_external?: boolean;
|
|
232
176
|
}
|
|
233
177
|
export interface UserCreateBatchParams {
|
|
234
|
-
/**
|
|
235
|
-
* Body param:
|
|
236
|
-
*/
|
|
237
178
|
users: Array<UserCreateBatchParams.User>;
|
|
238
|
-
/**
|
|
239
|
-
* Header param:
|
|
240
|
-
*/
|
|
241
|
-
'X-API-Key': string;
|
|
242
179
|
}
|
|
243
180
|
export declare namespace UserCreateBatchParams {
|
|
244
181
|
/**
|
|
@@ -247,14 +184,13 @@ export declare namespace UserCreateBatchParams {
|
|
|
247
184
|
interface User {
|
|
248
185
|
external_id: string;
|
|
249
186
|
email?: string | null;
|
|
250
|
-
metadata?:
|
|
187
|
+
metadata?: {
|
|
188
|
+
[key: string]: unknown;
|
|
189
|
+
} | null;
|
|
251
190
|
type?: UserAPI.UserType;
|
|
252
191
|
}
|
|
253
192
|
}
|
|
254
|
-
export interface UserGetParams {
|
|
255
|
-
'X-API-Key': string;
|
|
256
|
-
}
|
|
257
193
|
export declare namespace User {
|
|
258
|
-
export { type UserResponse as UserResponse, type UserType as UserType, type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateBatchResponse as UserCreateBatchResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserDeleteParams as UserDeleteParams, type UserCreateBatchParams as UserCreateBatchParams,
|
|
194
|
+
export { type UserResponse as UserResponse, type UserType as UserType, type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateBatchResponse as UserCreateBatchResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserDeleteParams as UserDeleteParams, type UserCreateBatchParams as UserCreateBatchParams, };
|
|
259
195
|
}
|
|
260
196
|
//# sourceMappingURL=user.d.mts.map
|
package/resources/user.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"user.d.mts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,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YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,IAAI,CAAC;QAE7C,IAAI,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC;KACzB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/user.d.ts
CHANGED
|
@@ -10,45 +10,38 @@ export declare class User extends APIResource {
|
|
|
10
10
|
* ```ts
|
|
11
11
|
* const userResponse = await client.user.create({
|
|
12
12
|
* external_id: 'user123',
|
|
13
|
-
* 'X-API-Key': 'X-API-Key',
|
|
14
13
|
* });
|
|
15
14
|
* ```
|
|
16
15
|
*/
|
|
17
|
-
create(
|
|
16
|
+
create(body: UserCreateParams, options?: RequestOptions): APIPromise<UserResponse>;
|
|
18
17
|
/**
|
|
19
18
|
* Update user details by user_id (\_User.objectId) and developer association
|
|
20
19
|
*
|
|
21
20
|
* @example
|
|
22
21
|
* ```ts
|
|
23
|
-
* const userResponse = await client.user.update('user_id'
|
|
24
|
-
* 'X-API-Key': 'X-API-Key',
|
|
25
|
-
* });
|
|
22
|
+
* const userResponse = await client.user.update('user_id');
|
|
26
23
|
* ```
|
|
27
24
|
*/
|
|
28
|
-
update(userID: string,
|
|
25
|
+
update(userID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<UserResponse>;
|
|
29
26
|
/**
|
|
30
27
|
* List users for a developer
|
|
31
28
|
*
|
|
32
29
|
* @example
|
|
33
30
|
* ```ts
|
|
34
|
-
* const users = await client.user.list(
|
|
35
|
-
* 'X-API-Key': 'X-API-Key',
|
|
36
|
-
* });
|
|
31
|
+
* const users = await client.user.list();
|
|
37
32
|
* ```
|
|
38
33
|
*/
|
|
39
|
-
list(
|
|
34
|
+
list(query?: UserListParams | null | undefined, options?: RequestOptions): APIPromise<UserListResponse>;
|
|
40
35
|
/**
|
|
41
36
|
* Delete user association with developer and the user itself by , assume external
|
|
42
37
|
* user_id is provided, and resolve to internal user_id (\_User.objectId)
|
|
43
38
|
*
|
|
44
39
|
* @example
|
|
45
40
|
* ```ts
|
|
46
|
-
* const user = await client.user.delete('user_id'
|
|
47
|
-
* 'X-API-Key': 'X-API-Key',
|
|
48
|
-
* });
|
|
41
|
+
* const user = await client.user.delete('user_id');
|
|
49
42
|
* ```
|
|
50
43
|
*/
|
|
51
|
-
delete(userID: string, params
|
|
44
|
+
delete(userID: string, params?: UserDeleteParams | null | undefined, options?: RequestOptions): APIPromise<UserDeleteResponse>;
|
|
52
45
|
/**
|
|
53
46
|
* Create multiple users or link existing users to developer, and add each to the
|
|
54
47
|
* developer's workspace (if one exists).
|
|
@@ -57,22 +50,19 @@ export declare class User extends APIResource {
|
|
|
57
50
|
* ```ts
|
|
58
51
|
* const response = await client.user.createBatch({
|
|
59
52
|
* users: [{ external_id: 'user123' }],
|
|
60
|
-
* 'X-API-Key': 'X-API-Key',
|
|
61
53
|
* });
|
|
62
54
|
* ```
|
|
63
55
|
*/
|
|
64
|
-
createBatch(
|
|
56
|
+
createBatch(body: UserCreateBatchParams, options?: RequestOptions): APIPromise<UserCreateBatchResponse>;
|
|
65
57
|
/**
|
|
66
58
|
* Get user details by user_id (\_User.objectId) and developer association
|
|
67
59
|
*
|
|
68
60
|
* @example
|
|
69
61
|
* ```ts
|
|
70
|
-
* const userResponse = await client.user.get('user_id'
|
|
71
|
-
* 'X-API-Key': 'X-API-Key',
|
|
72
|
-
* });
|
|
62
|
+
* const userResponse = await client.user.get('user_id');
|
|
73
63
|
* ```
|
|
74
64
|
*/
|
|
75
|
-
get(userID: string,
|
|
65
|
+
get(userID: string, options?: RequestOptions): APIPromise<UserResponse>;
|
|
76
66
|
}
|
|
77
67
|
/**
|
|
78
68
|
* Response model for user operations
|
|
@@ -91,7 +81,9 @@ export interface UserResponse {
|
|
|
91
81
|
email?: string | null;
|
|
92
82
|
error?: string | null;
|
|
93
83
|
external_id?: string | null;
|
|
94
|
-
metadata?:
|
|
84
|
+
metadata?: {
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
} | null;
|
|
95
87
|
updated_at?: string | null;
|
|
96
88
|
user_id?: string | null;
|
|
97
89
|
}
|
|
@@ -155,90 +147,35 @@ export interface UserCreateBatchResponse {
|
|
|
155
147
|
total?: number | null;
|
|
156
148
|
}
|
|
157
149
|
export interface UserCreateParams {
|
|
158
|
-
/**
|
|
159
|
-
* Body param:
|
|
160
|
-
*/
|
|
161
150
|
external_id: string;
|
|
162
|
-
/**
|
|
163
|
-
* Header param:
|
|
164
|
-
*/
|
|
165
|
-
'X-API-Key': string;
|
|
166
|
-
/**
|
|
167
|
-
* Body param:
|
|
168
|
-
*/
|
|
169
151
|
email?: string | null;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
metadata?: unknown | null;
|
|
174
|
-
/**
|
|
175
|
-
* Body param:
|
|
176
|
-
*/
|
|
152
|
+
metadata?: {
|
|
153
|
+
[key: string]: unknown;
|
|
154
|
+
} | null;
|
|
177
155
|
type?: UserType;
|
|
178
156
|
}
|
|
179
157
|
export interface UserUpdateParams {
|
|
180
|
-
/**
|
|
181
|
-
* Header param:
|
|
182
|
-
*/
|
|
183
|
-
'X-API-Key': string;
|
|
184
|
-
/**
|
|
185
|
-
* Body param:
|
|
186
|
-
*/
|
|
187
158
|
email?: string | null;
|
|
188
|
-
/**
|
|
189
|
-
* Body param:
|
|
190
|
-
*/
|
|
191
159
|
external_id?: string | null;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
metadata?: unknown | null;
|
|
196
|
-
/**
|
|
197
|
-
* Body param:
|
|
198
|
-
*/
|
|
160
|
+
metadata?: {
|
|
161
|
+
[key: string]: unknown;
|
|
162
|
+
} | null;
|
|
199
163
|
type?: UserType | null;
|
|
200
164
|
}
|
|
201
165
|
export interface UserListParams {
|
|
202
|
-
/**
|
|
203
|
-
* Header param:
|
|
204
|
-
*/
|
|
205
|
-
'X-API-Key': string;
|
|
206
|
-
/**
|
|
207
|
-
* Query param:
|
|
208
|
-
*/
|
|
209
166
|
email?: string | null;
|
|
210
|
-
/**
|
|
211
|
-
* Query param:
|
|
212
|
-
*/
|
|
213
167
|
external_id?: string | null;
|
|
214
|
-
/**
|
|
215
|
-
* Query param:
|
|
216
|
-
*/
|
|
217
168
|
page?: number;
|
|
218
|
-
/**
|
|
219
|
-
* Query param:
|
|
220
|
-
*/
|
|
221
169
|
page_size?: number;
|
|
222
170
|
}
|
|
223
171
|
export interface UserDeleteParams {
|
|
224
172
|
/**
|
|
225
|
-
*
|
|
226
|
-
*/
|
|
227
|
-
'X-API-Key': string;
|
|
228
|
-
/**
|
|
229
|
-
* Query param: Is this an external user ID?
|
|
173
|
+
* Is this an external user ID?
|
|
230
174
|
*/
|
|
231
175
|
is_external?: boolean;
|
|
232
176
|
}
|
|
233
177
|
export interface UserCreateBatchParams {
|
|
234
|
-
/**
|
|
235
|
-
* Body param:
|
|
236
|
-
*/
|
|
237
178
|
users: Array<UserCreateBatchParams.User>;
|
|
238
|
-
/**
|
|
239
|
-
* Header param:
|
|
240
|
-
*/
|
|
241
|
-
'X-API-Key': string;
|
|
242
179
|
}
|
|
243
180
|
export declare namespace UserCreateBatchParams {
|
|
244
181
|
/**
|
|
@@ -247,14 +184,13 @@ export declare namespace UserCreateBatchParams {
|
|
|
247
184
|
interface User {
|
|
248
185
|
external_id: string;
|
|
249
186
|
email?: string | null;
|
|
250
|
-
metadata?:
|
|
187
|
+
metadata?: {
|
|
188
|
+
[key: string]: unknown;
|
|
189
|
+
} | null;
|
|
251
190
|
type?: UserAPI.UserType;
|
|
252
191
|
}
|
|
253
192
|
}
|
|
254
|
-
export interface UserGetParams {
|
|
255
|
-
'X-API-Key': string;
|
|
256
|
-
}
|
|
257
193
|
export declare namespace User {
|
|
258
|
-
export { type UserResponse as UserResponse, type UserType as UserType, type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateBatchResponse as UserCreateBatchResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserDeleteParams as UserDeleteParams, type UserCreateBatchParams as UserCreateBatchParams,
|
|
194
|
+
export { type UserResponse as UserResponse, type UserType as UserType, type UserListResponse as UserListResponse, type UserDeleteResponse as UserDeleteResponse, type UserCreateBatchResponse as UserCreateBatchResponse, type UserCreateParams as UserCreateParams, type UserUpdateParams as UserUpdateParams, type UserListParams as UserListParams, type UserDeleteParams as UserDeleteParams, type UserCreateBatchParams as UserCreateBatchParams, };
|
|
259
195
|
}
|
|
260
196
|
//# sourceMappingURL=user.d.ts.map
|
package/resources/user.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAI,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC;IAIlF;;;;;;;OAOG;IACH,MAA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W,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,QAAQ,IAAI,QAAQ,EACzB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
package/resources/user.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.User = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
-
const headers_1 = require("../internal/headers.js");
|
|
7
6
|
const path_1 = require("../internal/utils/path.js");
|
|
8
7
|
class User extends resource_1.APIResource {
|
|
9
8
|
/**
|
|
@@ -13,53 +12,33 @@ class User extends resource_1.APIResource {
|
|
|
13
12
|
* ```ts
|
|
14
13
|
* const userResponse = await client.user.create({
|
|
15
14
|
* external_id: 'user123',
|
|
16
|
-
* 'X-API-Key': 'X-API-Key',
|
|
17
15
|
* });
|
|
18
16
|
* ```
|
|
19
17
|
*/
|
|
20
|
-
create(
|
|
21
|
-
|
|
22
|
-
return this._client.post('/v1/user', {
|
|
23
|
-
body,
|
|
24
|
-
...options,
|
|
25
|
-
headers: (0, headers_1.buildHeaders)([{ 'X-API-Key': xAPIKey }, options?.headers]),
|
|
26
|
-
});
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/v1/user', { body, ...options });
|
|
27
20
|
}
|
|
28
21
|
/**
|
|
29
22
|
* Update user details by user_id (\_User.objectId) and developer association
|
|
30
23
|
*
|
|
31
24
|
* @example
|
|
32
25
|
* ```ts
|
|
33
|
-
* const userResponse = await client.user.update('user_id'
|
|
34
|
-
* 'X-API-Key': 'X-API-Key',
|
|
35
|
-
* });
|
|
26
|
+
* const userResponse = await client.user.update('user_id');
|
|
36
27
|
* ```
|
|
37
28
|
*/
|
|
38
|
-
update(userID,
|
|
39
|
-
|
|
40
|
-
return this._client.put((0, path_1.path) `/v1/user/${userID}`, {
|
|
41
|
-
body,
|
|
42
|
-
...options,
|
|
43
|
-
headers: (0, headers_1.buildHeaders)([{ 'X-API-Key': xAPIKey }, options?.headers]),
|
|
44
|
-
});
|
|
29
|
+
update(userID, body, options) {
|
|
30
|
+
return this._client.put((0, path_1.path) `/v1/user/${userID}`, { body, ...options });
|
|
45
31
|
}
|
|
46
32
|
/**
|
|
47
33
|
* List users for a developer
|
|
48
34
|
*
|
|
49
35
|
* @example
|
|
50
36
|
* ```ts
|
|
51
|
-
* const users = await client.user.list(
|
|
52
|
-
* 'X-API-Key': 'X-API-Key',
|
|
53
|
-
* });
|
|
37
|
+
* const users = await client.user.list();
|
|
54
38
|
* ```
|
|
55
39
|
*/
|
|
56
|
-
list(
|
|
57
|
-
|
|
58
|
-
return this._client.get('/v1/user', {
|
|
59
|
-
query,
|
|
60
|
-
...options,
|
|
61
|
-
headers: (0, headers_1.buildHeaders)([{ 'X-API-Key': xAPIKey }, options?.headers]),
|
|
62
|
-
});
|
|
40
|
+
list(query = {}, options) {
|
|
41
|
+
return this._client.get('/v1/user', { query, ...options });
|
|
63
42
|
}
|
|
64
43
|
/**
|
|
65
44
|
* Delete user association with developer and the user itself by , assume external
|
|
@@ -67,18 +46,12 @@ class User extends resource_1.APIResource {
|
|
|
67
46
|
*
|
|
68
47
|
* @example
|
|
69
48
|
* ```ts
|
|
70
|
-
* const user = await client.user.delete('user_id'
|
|
71
|
-
* 'X-API-Key': 'X-API-Key',
|
|
72
|
-
* });
|
|
49
|
+
* const user = await client.user.delete('user_id');
|
|
73
50
|
* ```
|
|
74
51
|
*/
|
|
75
|
-
delete(userID, params, options) {
|
|
76
|
-
const {
|
|
77
|
-
return this._client.delete((0, path_1.path) `/v1/user/${userID}`, {
|
|
78
|
-
query: { is_external },
|
|
79
|
-
...options,
|
|
80
|
-
headers: (0, headers_1.buildHeaders)([{ 'X-API-Key': xAPIKey }, options?.headers]),
|
|
81
|
-
});
|
|
52
|
+
delete(userID, params = {}, options) {
|
|
53
|
+
const { is_external } = params ?? {};
|
|
54
|
+
return this._client.delete((0, path_1.path) `/v1/user/${userID}`, { query: { is_external }, ...options });
|
|
82
55
|
}
|
|
83
56
|
/**
|
|
84
57
|
* Create multiple users or link existing users to developer, and add each to the
|
|
@@ -88,34 +61,22 @@ class User extends resource_1.APIResource {
|
|
|
88
61
|
* ```ts
|
|
89
62
|
* const response = await client.user.createBatch({
|
|
90
63
|
* users: [{ external_id: 'user123' }],
|
|
91
|
-
* 'X-API-Key': 'X-API-Key',
|
|
92
64
|
* });
|
|
93
65
|
* ```
|
|
94
66
|
*/
|
|
95
|
-
createBatch(
|
|
96
|
-
|
|
97
|
-
return this._client.post('/v1/user/batch', {
|
|
98
|
-
body,
|
|
99
|
-
...options,
|
|
100
|
-
headers: (0, headers_1.buildHeaders)([{ 'X-API-Key': xAPIKey }, options?.headers]),
|
|
101
|
-
});
|
|
67
|
+
createBatch(body, options) {
|
|
68
|
+
return this._client.post('/v1/user/batch', { body, ...options });
|
|
102
69
|
}
|
|
103
70
|
/**
|
|
104
71
|
* Get user details by user_id (\_User.objectId) and developer association
|
|
105
72
|
*
|
|
106
73
|
* @example
|
|
107
74
|
* ```ts
|
|
108
|
-
* const userResponse = await client.user.get('user_id'
|
|
109
|
-
* 'X-API-Key': 'X-API-Key',
|
|
110
|
-
* });
|
|
75
|
+
* const userResponse = await client.user.get('user_id');
|
|
111
76
|
* ```
|
|
112
77
|
*/
|
|
113
|
-
get(userID,
|
|
114
|
-
|
|
115
|
-
return this._client.get((0, path_1.path) `/v1/user/${userID}`, {
|
|
116
|
-
...options,
|
|
117
|
-
headers: (0, headers_1.buildHeaders)([{ 'X-API-Key': xAPIKey }, options?.headers]),
|
|
118
|
-
});
|
|
78
|
+
get(userID, options) {
|
|
79
|
+
return this._client.get((0, path_1.path) `/v1/user/${userID}`, options);
|
|
119
80
|
}
|
|
120
81
|
}
|
|
121
82
|
exports.User = User;
|
package/resources/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/resources/user.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAA8C;AAE9C,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;OASG;IACH,MAAM,CAAC,IAAsB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,YAAY,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,MAAc,EACd,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACrC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA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