userplex 0.1.0 → 1.0.1

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 (331) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +228 -273
  3. package/dist/index.d.mts +78 -0
  4. package/dist/index.d.ts +78 -0
  5. package/dist/index.js +132 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.mjs +126 -0
  8. package/dist/index.mjs.map +1 -0
  9. package/package.json +27 -130
  10. package/CHANGELOG.md +0 -11
  11. package/api-promise.d.mts +0 -2
  12. package/api-promise.d.mts.map +0 -1
  13. package/api-promise.d.ts +0 -2
  14. package/api-promise.d.ts.map +0 -1
  15. package/api-promise.js +0 -6
  16. package/api-promise.js.map +0 -1
  17. package/api-promise.mjs +0 -2
  18. package/api-promise.mjs.map +0 -1
  19. package/client.d.mts +0 -183
  20. package/client.d.mts.map +0 -1
  21. package/client.d.ts +0 -183
  22. package/client.d.ts.map +0 -1
  23. package/client.js +0 -464
  24. package/client.js.map +0 -1
  25. package/client.mjs +0 -460
  26. package/client.mjs.map +0 -1
  27. package/core/api-promise.d.mts +0 -46
  28. package/core/api-promise.d.mts.map +0 -1
  29. package/core/api-promise.d.ts +0 -46
  30. package/core/api-promise.d.ts.map +0 -1
  31. package/core/api-promise.js +0 -74
  32. package/core/api-promise.js.map +0 -1
  33. package/core/api-promise.mjs +0 -70
  34. package/core/api-promise.mjs.map +0 -1
  35. package/core/error.d.mts +0 -46
  36. package/core/error.d.mts.map +0 -1
  37. package/core/error.d.ts +0 -46
  38. package/core/error.d.ts.map +0 -1
  39. package/core/error.js +0 -113
  40. package/core/error.js.map +0 -1
  41. package/core/error.mjs +0 -97
  42. package/core/error.mjs.map +0 -1
  43. package/core/resource.d.mts +0 -6
  44. package/core/resource.d.mts.map +0 -1
  45. package/core/resource.d.ts +0 -6
  46. package/core/resource.d.ts.map +0 -1
  47. package/core/resource.js +0 -11
  48. package/core/resource.js.map +0 -1
  49. package/core/resource.mjs +0 -7
  50. package/core/resource.mjs.map +0 -1
  51. package/core/uploads.d.mts +0 -3
  52. package/core/uploads.d.mts.map +0 -1
  53. package/core/uploads.d.ts +0 -3
  54. package/core/uploads.d.ts.map +0 -1
  55. package/core/uploads.js +0 -6
  56. package/core/uploads.js.map +0 -1
  57. package/core/uploads.mjs +0 -2
  58. package/core/uploads.mjs.map +0 -1
  59. package/error.d.mts +0 -2
  60. package/error.d.mts.map +0 -1
  61. package/error.d.ts +0 -2
  62. package/error.d.ts.map +0 -1
  63. package/error.js +0 -6
  64. package/error.js.map +0 -1
  65. package/error.mjs +0 -2
  66. package/error.mjs.map +0 -1
  67. package/index.d.mts +0 -6
  68. package/index.d.mts.map +0 -1
  69. package/index.d.ts +0 -6
  70. package/index.d.ts.map +0 -1
  71. package/index.js +0 -30
  72. package/index.js.map +0 -1
  73. package/index.mjs +0 -7
  74. package/index.mjs.map +0 -1
  75. package/internal/builtin-types.d.mts +0 -73
  76. package/internal/builtin-types.d.mts.map +0 -1
  77. package/internal/builtin-types.d.ts +0 -73
  78. package/internal/builtin-types.d.ts.map +0 -1
  79. package/internal/builtin-types.js +0 -4
  80. package/internal/builtin-types.js.map +0 -1
  81. package/internal/builtin-types.mjs +0 -3
  82. package/internal/builtin-types.mjs.map +0 -1
  83. package/internal/detect-platform.d.mts +0 -15
  84. package/internal/detect-platform.d.mts.map +0 -1
  85. package/internal/detect-platform.d.ts +0 -15
  86. package/internal/detect-platform.d.ts.map +0 -1
  87. package/internal/detect-platform.js +0 -162
  88. package/internal/detect-platform.js.map +0 -1
  89. package/internal/detect-platform.mjs +0 -157
  90. package/internal/detect-platform.mjs.map +0 -1
  91. package/internal/errors.d.mts +0 -3
  92. package/internal/errors.d.mts.map +0 -1
  93. package/internal/errors.d.ts +0 -3
  94. package/internal/errors.d.ts.map +0 -1
  95. package/internal/errors.js +0 -41
  96. package/internal/errors.js.map +0 -1
  97. package/internal/errors.mjs +0 -36
  98. package/internal/errors.mjs.map +0 -1
  99. package/internal/headers.d.mts +0 -20
  100. package/internal/headers.d.mts.map +0 -1
  101. package/internal/headers.d.ts +0 -20
  102. package/internal/headers.d.ts.map +0 -1
  103. package/internal/headers.js +0 -79
  104. package/internal/headers.js.map +0 -1
  105. package/internal/headers.mjs +0 -74
  106. package/internal/headers.mjs.map +0 -1
  107. package/internal/parse.d.mts +0 -12
  108. package/internal/parse.d.mts.map +0 -1
  109. package/internal/parse.d.ts +0 -12
  110. package/internal/parse.d.ts.map +0 -1
  111. package/internal/parse.js +0 -35
  112. package/internal/parse.js.map +0 -1
  113. package/internal/parse.mjs +0 -32
  114. package/internal/parse.mjs.map +0 -1
  115. package/internal/request-options.d.mts +0 -75
  116. package/internal/request-options.d.mts.map +0 -1
  117. package/internal/request-options.d.ts +0 -75
  118. package/internal/request-options.d.ts.map +0 -1
  119. package/internal/request-options.js +0 -14
  120. package/internal/request-options.js.map +0 -1
  121. package/internal/request-options.mjs +0 -10
  122. package/internal/request-options.mjs.map +0 -1
  123. package/internal/shim-types.d.mts +0 -17
  124. package/internal/shim-types.d.mts.map +0 -1
  125. package/internal/shim-types.d.ts +0 -17
  126. package/internal/shim-types.d.ts.map +0 -1
  127. package/internal/shim-types.js +0 -4
  128. package/internal/shim-types.js.map +0 -1
  129. package/internal/shim-types.mjs +0 -3
  130. package/internal/shim-types.mjs.map +0 -1
  131. package/internal/shims.d.mts +0 -20
  132. package/internal/shims.d.mts.map +0 -1
  133. package/internal/shims.d.ts +0 -20
  134. package/internal/shims.d.ts.map +0 -1
  135. package/internal/shims.js +0 -92
  136. package/internal/shims.js.map +0 -1
  137. package/internal/shims.mjs +0 -85
  138. package/internal/shims.mjs.map +0 -1
  139. package/internal/to-file.d.mts +0 -45
  140. package/internal/to-file.d.mts.map +0 -1
  141. package/internal/to-file.d.ts +0 -45
  142. package/internal/to-file.d.ts.map +0 -1
  143. package/internal/to-file.js +0 -91
  144. package/internal/to-file.js.map +0 -1
  145. package/internal/to-file.mjs +0 -88
  146. package/internal/to-file.mjs.map +0 -1
  147. package/internal/tslib.js +0 -81
  148. package/internal/tslib.mjs +0 -17
  149. package/internal/types.d.mts +0 -69
  150. package/internal/types.d.mts.map +0 -1
  151. package/internal/types.d.ts +0 -69
  152. package/internal/types.d.ts.map +0 -1
  153. package/internal/types.js +0 -4
  154. package/internal/types.js.map +0 -1
  155. package/internal/types.mjs +0 -3
  156. package/internal/types.mjs.map +0 -1
  157. package/internal/uploads.d.mts +0 -42
  158. package/internal/uploads.d.mts.map +0 -1
  159. package/internal/uploads.d.ts +0 -42
  160. package/internal/uploads.d.ts.map +0 -1
  161. package/internal/uploads.js +0 -141
  162. package/internal/uploads.js.map +0 -1
  163. package/internal/uploads.mjs +0 -131
  164. package/internal/uploads.mjs.map +0 -1
  165. package/internal/utils/base64.d.mts +0 -3
  166. package/internal/utils/base64.d.mts.map +0 -1
  167. package/internal/utils/base64.d.ts +0 -3
  168. package/internal/utils/base64.d.ts.map +0 -1
  169. package/internal/utils/base64.js +0 -38
  170. package/internal/utils/base64.js.map +0 -1
  171. package/internal/utils/base64.mjs +0 -33
  172. package/internal/utils/base64.mjs.map +0 -1
  173. package/internal/utils/bytes.d.mts +0 -4
  174. package/internal/utils/bytes.d.mts.map +0 -1
  175. package/internal/utils/bytes.d.ts +0 -4
  176. package/internal/utils/bytes.d.ts.map +0 -1
  177. package/internal/utils/bytes.js +0 -31
  178. package/internal/utils/bytes.js.map +0 -1
  179. package/internal/utils/bytes.mjs +0 -26
  180. package/internal/utils/bytes.mjs.map +0 -1
  181. package/internal/utils/env.d.mts +0 -9
  182. package/internal/utils/env.d.mts.map +0 -1
  183. package/internal/utils/env.d.ts +0 -9
  184. package/internal/utils/env.d.ts.map +0 -1
  185. package/internal/utils/env.js +0 -22
  186. package/internal/utils/env.js.map +0 -1
  187. package/internal/utils/env.mjs +0 -18
  188. package/internal/utils/env.mjs.map +0 -1
  189. package/internal/utils/log.d.mts +0 -37
  190. package/internal/utils/log.d.mts.map +0 -1
  191. package/internal/utils/log.d.ts +0 -37
  192. package/internal/utils/log.d.ts.map +0 -1
  193. package/internal/utils/log.js +0 -85
  194. package/internal/utils/log.js.map +0 -1
  195. package/internal/utils/log.mjs +0 -79
  196. package/internal/utils/log.mjs.map +0 -1
  197. package/internal/utils/path.d.mts +0 -15
  198. package/internal/utils/path.d.mts.map +0 -1
  199. package/internal/utils/path.d.ts +0 -15
  200. package/internal/utils/path.d.ts.map +0 -1
  201. package/internal/utils/path.js +0 -79
  202. package/internal/utils/path.js.map +0 -1
  203. package/internal/utils/path.mjs +0 -74
  204. package/internal/utils/path.mjs.map +0 -1
  205. package/internal/utils/sleep.d.mts +0 -2
  206. package/internal/utils/sleep.d.mts.map +0 -1
  207. package/internal/utils/sleep.d.ts +0 -2
  208. package/internal/utils/sleep.d.ts.map +0 -1
  209. package/internal/utils/sleep.js +0 -7
  210. package/internal/utils/sleep.js.map +0 -1
  211. package/internal/utils/sleep.mjs +0 -3
  212. package/internal/utils/sleep.mjs.map +0 -1
  213. package/internal/utils/uuid.d.mts +0 -5
  214. package/internal/utils/uuid.d.mts.map +0 -1
  215. package/internal/utils/uuid.d.ts +0 -5
  216. package/internal/utils/uuid.d.ts.map +0 -1
  217. package/internal/utils/uuid.js +0 -19
  218. package/internal/utils/uuid.js.map +0 -1
  219. package/internal/utils/uuid.mjs +0 -15
  220. package/internal/utils/uuid.mjs.map +0 -1
  221. package/internal/utils/values.d.mts +0 -18
  222. package/internal/utils/values.d.mts.map +0 -1
  223. package/internal/utils/values.d.ts +0 -18
  224. package/internal/utils/values.d.ts.map +0 -1
  225. package/internal/utils/values.js +0 -112
  226. package/internal/utils/values.js.map +0 -1
  227. package/internal/utils/values.mjs +0 -94
  228. package/internal/utils/values.mjs.map +0 -1
  229. package/internal/utils.d.mts +0 -7
  230. package/internal/utils.d.mts.map +0 -1
  231. package/internal/utils.d.ts +0 -7
  232. package/internal/utils.d.ts.map +0 -1
  233. package/internal/utils.js +0 -11
  234. package/internal/utils.js.map +0 -1
  235. package/internal/utils.mjs +0 -8
  236. package/internal/utils.mjs.map +0 -1
  237. package/resource.d.mts +0 -2
  238. package/resource.d.mts.map +0 -1
  239. package/resource.d.ts +0 -2
  240. package/resource.d.ts.map +0 -1
  241. package/resource.js +0 -6
  242. package/resource.js.map +0 -1
  243. package/resource.mjs +0 -2
  244. package/resource.mjs.map +0 -1
  245. package/resources/events.d.mts +0 -48
  246. package/resources/events.d.mts.map +0 -1
  247. package/resources/events.d.ts +0 -48
  248. package/resources/events.d.ts.map +0 -1
  249. package/resources/events.js +0 -16
  250. package/resources/events.js.map +0 -1
  251. package/resources/events.mjs +0 -12
  252. package/resources/events.mjs.map +0 -1
  253. package/resources/index.d.mts +0 -3
  254. package/resources/index.d.mts.map +0 -1
  255. package/resources/index.d.ts +0 -3
  256. package/resources/index.d.ts.map +0 -1
  257. package/resources/index.js +0 -9
  258. package/resources/index.js.map +0 -1
  259. package/resources/index.mjs +0 -4
  260. package/resources/index.mjs.map +0 -1
  261. package/resources/users.d.mts +0 -44
  262. package/resources/users.d.mts.map +0 -1
  263. package/resources/users.d.ts +0 -44
  264. package/resources/users.d.ts.map +0 -1
  265. package/resources/users.js +0 -16
  266. package/resources/users.js.map +0 -1
  267. package/resources/users.mjs +0 -12
  268. package/resources/users.mjs.map +0 -1
  269. package/resources.d.mts +0 -2
  270. package/resources.d.mts.map +0 -1
  271. package/resources.d.ts +0 -2
  272. package/resources.d.ts.map +0 -1
  273. package/resources.js +0 -5
  274. package/resources.js.map +0 -1
  275. package/resources.mjs +0 -2
  276. package/resources.mjs.map +0 -1
  277. package/src/api-promise.ts +0 -2
  278. package/src/client.ts +0 -739
  279. package/src/core/README.md +0 -3
  280. package/src/core/api-promise.ts +0 -92
  281. package/src/core/error.ts +0 -130
  282. package/src/core/resource.ts +0 -11
  283. package/src/core/uploads.ts +0 -2
  284. package/src/error.ts +0 -2
  285. package/src/index.ts +0 -22
  286. package/src/internal/README.md +0 -3
  287. package/src/internal/builtin-types.ts +0 -93
  288. package/src/internal/detect-platform.ts +0 -196
  289. package/src/internal/errors.ts +0 -33
  290. package/src/internal/headers.ts +0 -97
  291. package/src/internal/parse.ts +0 -50
  292. package/src/internal/request-options.ts +0 -91
  293. package/src/internal/shim-types.ts +0 -26
  294. package/src/internal/shims.ts +0 -107
  295. package/src/internal/to-file.ts +0 -154
  296. package/src/internal/types.ts +0 -95
  297. package/src/internal/uploads.ts +0 -187
  298. package/src/internal/utils/base64.ts +0 -40
  299. package/src/internal/utils/bytes.ts +0 -32
  300. package/src/internal/utils/env.ts +0 -18
  301. package/src/internal/utils/log.ts +0 -126
  302. package/src/internal/utils/path.ts +0 -88
  303. package/src/internal/utils/sleep.ts +0 -3
  304. package/src/internal/utils/uuid.ts +0 -17
  305. package/src/internal/utils/values.ts +0 -105
  306. package/src/internal/utils.ts +0 -8
  307. package/src/lib/.keep +0 -4
  308. package/src/resource.ts +0 -2
  309. package/src/resources/events.ts +0 -58
  310. package/src/resources/index.ts +0 -4
  311. package/src/resources/users.ts +0 -53
  312. package/src/resources.ts +0 -1
  313. package/src/tsconfig.json +0 -11
  314. package/src/uploads.ts +0 -2
  315. package/src/version.ts +0 -1
  316. package/uploads.d.mts +0 -2
  317. package/uploads.d.mts.map +0 -1
  318. package/uploads.d.ts +0 -2
  319. package/uploads.d.ts.map +0 -1
  320. package/uploads.js +0 -6
  321. package/uploads.js.map +0 -1
  322. package/uploads.mjs +0 -2
  323. package/uploads.mjs.map +0 -1
  324. package/version.d.mts +0 -2
  325. package/version.d.mts.map +0 -1
  326. package/version.d.ts +0 -2
  327. package/version.d.ts.map +0 -1
  328. package/version.js +0 -5
  329. package/version.js.map +0 -1
  330. package/version.mjs +0 -2
  331. package/version.mjs.map +0 -1
package/client.d.mts DELETED
@@ -1,183 +0,0 @@
1
- import type { RequestInit, RequestInfo } from "./internal/builtin-types.mjs";
2
- import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.mjs";
3
- export type { Logger, LogLevel } from "./internal/utils/log.mjs";
4
- import * as Opts from "./internal/request-options.mjs";
5
- import * as Errors from "./core/error.mjs";
6
- import * as Uploads from "./core/uploads.mjs";
7
- import * as API from "./resources/index.mjs";
8
- import { APIPromise } from "./core/api-promise.mjs";
9
- import { EventTrackParams, EventTrackResponse, Events } from "./resources/events.mjs";
10
- import { UserIdentifyParams, UserIdentifyResponse, Users } from "./resources/users.mjs";
11
- import { type Fetch } from "./internal/builtin-types.mjs";
12
- import { HeadersLike, NullableHeaders } from "./internal/headers.mjs";
13
- import { FinalRequestOptions, RequestOptions } from "./internal/request-options.mjs";
14
- import { type LogLevel, type Logger } from "./internal/utils/log.mjs";
15
- export interface ClientOptions {
16
- /**
17
- * Enter your API key from your project settings
18
- */
19
- apiKey?: string | undefined;
20
- /**
21
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
22
- *
23
- * Defaults to process.env['USERPLEX_BASE_URL'].
24
- */
25
- baseURL?: string | null | undefined;
26
- /**
27
- * The maximum amount of time (in milliseconds) that the client should wait for a response
28
- * from the server before timing out a single request.
29
- *
30
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
31
- * much longer than this timeout before the promise succeeds or fails.
32
- *
33
- * @unit milliseconds
34
- */
35
- timeout?: number | undefined;
36
- /**
37
- * Additional `RequestInit` options to be passed to `fetch` calls.
38
- * Properties will be overridden by per-request `fetchOptions`.
39
- */
40
- fetchOptions?: MergedRequestInit | undefined;
41
- /**
42
- * Specify a custom `fetch` function implementation.
43
- *
44
- * If not provided, we expect that `fetch` is defined globally.
45
- */
46
- fetch?: Fetch | undefined;
47
- /**
48
- * The maximum number of times that the client will retry a request in case of a
49
- * temporary failure, like a network error or a 5XX error from the server.
50
- *
51
- * @default 2
52
- */
53
- maxRetries?: number | undefined;
54
- /**
55
- * Default headers to include with every request to the API.
56
- *
57
- * These can be removed in individual requests by explicitly setting the
58
- * header to `null` in request options.
59
- */
60
- defaultHeaders?: HeadersLike | undefined;
61
- /**
62
- * Default query parameters to include with every request to the API.
63
- *
64
- * These can be removed in individual requests by explicitly setting the
65
- * param to `undefined` in request options.
66
- */
67
- defaultQuery?: Record<string, string | undefined> | undefined;
68
- /**
69
- * Set the log level.
70
- *
71
- * Defaults to process.env['USERPLEX_LOG'] or 'warn' if it isn't set.
72
- */
73
- logLevel?: LogLevel | undefined;
74
- /**
75
- * Set the logger.
76
- *
77
- * Defaults to globalThis.console.
78
- */
79
- logger?: Logger | undefined;
80
- }
81
- /**
82
- * API Client for interfacing with the Userplex API.
83
- */
84
- export declare class Userplex {
85
- #private;
86
- apiKey: string;
87
- baseURL: string;
88
- maxRetries: number;
89
- timeout: number;
90
- logger: Logger | undefined;
91
- logLevel: LogLevel | undefined;
92
- fetchOptions: MergedRequestInit | undefined;
93
- private fetch;
94
- protected idempotencyHeader?: string;
95
- private _options;
96
- /**
97
- * API Client for interfacing with the Userplex API.
98
- *
99
- * @param {string | undefined} [opts.apiKey=process.env['USERPLEX_API_KEY'] ?? undefined]
100
- * @param {string} [opts.baseURL=process.env['USERPLEX_BASE_URL'] ?? http://localhost:3000] - Override the default base URL for the API.
101
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
102
- * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
103
- * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
104
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
105
- * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
106
- * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
107
- */
108
- constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
109
- /**
110
- * Create a new client instance re-using the same options given to the current client with optional overriding.
111
- */
112
- withOptions(options: Partial<ClientOptions>): this;
113
- protected defaultQuery(): Record<string, string | undefined> | undefined;
114
- protected validateHeaders({ values, nulls }: NullableHeaders): void;
115
- protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
116
- /**
117
- * Basic re-implementation of `qs.stringify` for primitive types.
118
- */
119
- protected stringifyQuery(query: Record<string, unknown>): string;
120
- private getUserAgent;
121
- protected defaultIdempotencyKey(): string;
122
- protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
123
- buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
124
- /**
125
- * Used as a callback for mutating the given `FinalRequestOptions` object.
126
- */
127
- protected prepareOptions(options: FinalRequestOptions): Promise<void>;
128
- /**
129
- * Used as a callback for mutating the given `RequestInit` object.
130
- *
131
- * This is useful for cases where you want to add certain headers based off of
132
- * the request properties, e.g. `method` or `url`.
133
- */
134
- protected prepareRequest(request: RequestInit, { url, options }: {
135
- url: string;
136
- options: FinalRequestOptions;
137
- }): Promise<void>;
138
- get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
139
- post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
140
- patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
141
- put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
142
- delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
143
- private methodRequest;
144
- request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
145
- private makeRequest;
146
- fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
147
- private shouldRetry;
148
- private retryRequest;
149
- private calculateDefaultRetryTimeoutMillis;
150
- buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
151
- retryCount?: number;
152
- }): Promise<{
153
- req: FinalizedRequestInit;
154
- url: string;
155
- timeout: number;
156
- }>;
157
- private buildHeaders;
158
- private buildBody;
159
- static Userplex: typeof Userplex;
160
- static DEFAULT_TIMEOUT: number;
161
- static UserplexError: typeof Errors.UserplexError;
162
- static APIError: typeof Errors.APIError;
163
- static APIConnectionError: typeof Errors.APIConnectionError;
164
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
165
- static APIUserAbortError: typeof Errors.APIUserAbortError;
166
- static NotFoundError: typeof Errors.NotFoundError;
167
- static ConflictError: typeof Errors.ConflictError;
168
- static RateLimitError: typeof Errors.RateLimitError;
169
- static BadRequestError: typeof Errors.BadRequestError;
170
- static AuthenticationError: typeof Errors.AuthenticationError;
171
- static InternalServerError: typeof Errors.InternalServerError;
172
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
173
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
174
- static toFile: typeof Uploads.toFile;
175
- users: API.Users;
176
- events: API.Events;
177
- }
178
- export declare namespace Userplex {
179
- export type RequestOptions = Opts.RequestOptions;
180
- export { Users as Users, type UserIdentifyResponse as UserIdentifyResponse, type UserIdentifyParams as UserIdentifyParams, };
181
- export { Events as Events, type EventTrackResponse as EventTrackResponse, type EventTrackParams as EventTrackParams, };
182
- }
183
- //# sourceMappingURL=client.d.mts.map
package/client.d.mts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.mts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,EAAE;OAChD,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,KAAK,EAAE;OACnD,EAAE,KAAK,KAAK,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAgB;OAC9C,EAAE,mBAAmB,EAA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IAqCjB,MAAM,CAAC,QAAQ,kBAAQ;IACvB,MAAM,CAAC,eAAe,SAAS;IAE/B,MAAM,CAAC,aAAa,8BAAwB;IAC5C,MAAM,CAAC,QAAQ,yBAAmB;IAClC,MAAM,CAAC,kBAAkB,mCAA6B;IACtD,MAAM,CAAC,yBAAyB,0CAAoC;IACpE,MAAM,CAAC,iBAAiB,kCAA4B;IACpD,MAAM,CAAC,aAAa,8BAAwB;IAC5C,MAAM,CAAC,aAAa,8BAAwB;IAC5C,MAAM,CAAC,cAAc,+BAAyB;IAC9C,MAAM,CAAC,eAAe,gCAA0B;IAChD,MAAM,CAAC,mBAAmB,oCAA8B;IACxD,MAAM,CAAC,mBAAmB,oCAA8B;IACxD,MAAM,CAAC,qBAAqB,sCAAgC;IAC5D,MAAM,CAAC,wBAAwB,yCAAmC;IAElE,MAAM,CAAC,MAAM,wBAAkB;IAE/B,KAAK,EAAE,GAAG,CAAC,KAAK,CAAuB;IACvC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAwB;CAC3C;AAKD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;IAEjD,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
package/client.d.ts DELETED
@@ -1,183 +0,0 @@
1
- import type { RequestInit, RequestInfo } from "./internal/builtin-types.js";
2
- import type { PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from "./internal/types.js";
3
- export type { Logger, LogLevel } from "./internal/utils/log.js";
4
- import * as Opts from "./internal/request-options.js";
5
- import * as Errors from "./core/error.js";
6
- import * as Uploads from "./core/uploads.js";
7
- import * as API from "./resources/index.js";
8
- import { APIPromise } from "./core/api-promise.js";
9
- import { EventTrackParams, EventTrackResponse, Events } from "./resources/events.js";
10
- import { UserIdentifyParams, UserIdentifyResponse, Users } from "./resources/users.js";
11
- import { type Fetch } from "./internal/builtin-types.js";
12
- import { HeadersLike, NullableHeaders } from "./internal/headers.js";
13
- import { FinalRequestOptions, RequestOptions } from "./internal/request-options.js";
14
- import { type LogLevel, type Logger } from "./internal/utils/log.js";
15
- export interface ClientOptions {
16
- /**
17
- * Enter your API key from your project settings
18
- */
19
- apiKey?: string | undefined;
20
- /**
21
- * Override the default base URL for the API, e.g., "https://api.example.com/v2/"
22
- *
23
- * Defaults to process.env['USERPLEX_BASE_URL'].
24
- */
25
- baseURL?: string | null | undefined;
26
- /**
27
- * The maximum amount of time (in milliseconds) that the client should wait for a response
28
- * from the server before timing out a single request.
29
- *
30
- * Note that request timeouts are retried by default, so in a worst-case scenario you may wait
31
- * much longer than this timeout before the promise succeeds or fails.
32
- *
33
- * @unit milliseconds
34
- */
35
- timeout?: number | undefined;
36
- /**
37
- * Additional `RequestInit` options to be passed to `fetch` calls.
38
- * Properties will be overridden by per-request `fetchOptions`.
39
- */
40
- fetchOptions?: MergedRequestInit | undefined;
41
- /**
42
- * Specify a custom `fetch` function implementation.
43
- *
44
- * If not provided, we expect that `fetch` is defined globally.
45
- */
46
- fetch?: Fetch | undefined;
47
- /**
48
- * The maximum number of times that the client will retry a request in case of a
49
- * temporary failure, like a network error or a 5XX error from the server.
50
- *
51
- * @default 2
52
- */
53
- maxRetries?: number | undefined;
54
- /**
55
- * Default headers to include with every request to the API.
56
- *
57
- * These can be removed in individual requests by explicitly setting the
58
- * header to `null` in request options.
59
- */
60
- defaultHeaders?: HeadersLike | undefined;
61
- /**
62
- * Default query parameters to include with every request to the API.
63
- *
64
- * These can be removed in individual requests by explicitly setting the
65
- * param to `undefined` in request options.
66
- */
67
- defaultQuery?: Record<string, string | undefined> | undefined;
68
- /**
69
- * Set the log level.
70
- *
71
- * Defaults to process.env['USERPLEX_LOG'] or 'warn' if it isn't set.
72
- */
73
- logLevel?: LogLevel | undefined;
74
- /**
75
- * Set the logger.
76
- *
77
- * Defaults to globalThis.console.
78
- */
79
- logger?: Logger | undefined;
80
- }
81
- /**
82
- * API Client for interfacing with the Userplex API.
83
- */
84
- export declare class Userplex {
85
- #private;
86
- apiKey: string;
87
- baseURL: string;
88
- maxRetries: number;
89
- timeout: number;
90
- logger: Logger | undefined;
91
- logLevel: LogLevel | undefined;
92
- fetchOptions: MergedRequestInit | undefined;
93
- private fetch;
94
- protected idempotencyHeader?: string;
95
- private _options;
96
- /**
97
- * API Client for interfacing with the Userplex API.
98
- *
99
- * @param {string | undefined} [opts.apiKey=process.env['USERPLEX_API_KEY'] ?? undefined]
100
- * @param {string} [opts.baseURL=process.env['USERPLEX_BASE_URL'] ?? http://localhost:3000] - Override the default base URL for the API.
101
- * @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
102
- * @param {MergedRequestInit} [opts.fetchOptions] - Additional `RequestInit` options to be passed to `fetch` calls.
103
- * @param {Fetch} [opts.fetch] - Specify a custom `fetch` function implementation.
104
- * @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
105
- * @param {HeadersLike} opts.defaultHeaders - Default headers to include with every request to the API.
106
- * @param {Record<string, string | undefined>} opts.defaultQuery - Default query parameters to include with every request to the API.
107
- */
108
- constructor({ baseURL, apiKey, ...opts }?: ClientOptions);
109
- /**
110
- * Create a new client instance re-using the same options given to the current client with optional overriding.
111
- */
112
- withOptions(options: Partial<ClientOptions>): this;
113
- protected defaultQuery(): Record<string, string | undefined> | undefined;
114
- protected validateHeaders({ values, nulls }: NullableHeaders): void;
115
- protected authHeaders(opts: FinalRequestOptions): Promise<NullableHeaders | undefined>;
116
- /**
117
- * Basic re-implementation of `qs.stringify` for primitive types.
118
- */
119
- protected stringifyQuery(query: Record<string, unknown>): string;
120
- private getUserAgent;
121
- protected defaultIdempotencyKey(): string;
122
- protected makeStatusError(status: number, error: Object, message: string | undefined, headers: Headers): Errors.APIError;
123
- buildURL(path: string, query: Record<string, unknown> | null | undefined, defaultBaseURL?: string | undefined): string;
124
- /**
125
- * Used as a callback for mutating the given `FinalRequestOptions` object.
126
- */
127
- protected prepareOptions(options: FinalRequestOptions): Promise<void>;
128
- /**
129
- * Used as a callback for mutating the given `RequestInit` object.
130
- *
131
- * This is useful for cases where you want to add certain headers based off of
132
- * the request properties, e.g. `method` or `url`.
133
- */
134
- protected prepareRequest(request: RequestInit, { url, options }: {
135
- url: string;
136
- options: FinalRequestOptions;
137
- }): Promise<void>;
138
- get<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
139
- post<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
140
- patch<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
141
- put<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
142
- delete<Rsp>(path: string, opts?: PromiseOrValue<RequestOptions>): APIPromise<Rsp>;
143
- private methodRequest;
144
- request<Rsp>(options: PromiseOrValue<FinalRequestOptions>, remainingRetries?: number | null): APIPromise<Rsp>;
145
- private makeRequest;
146
- fetchWithTimeout(url: RequestInfo, init: RequestInit | undefined, ms: number, controller: AbortController): Promise<Response>;
147
- private shouldRetry;
148
- private retryRequest;
149
- private calculateDefaultRetryTimeoutMillis;
150
- buildRequest(inputOptions: FinalRequestOptions, { retryCount }?: {
151
- retryCount?: number;
152
- }): Promise<{
153
- req: FinalizedRequestInit;
154
- url: string;
155
- timeout: number;
156
- }>;
157
- private buildHeaders;
158
- private buildBody;
159
- static Userplex: typeof Userplex;
160
- static DEFAULT_TIMEOUT: number;
161
- static UserplexError: typeof Errors.UserplexError;
162
- static APIError: typeof Errors.APIError;
163
- static APIConnectionError: typeof Errors.APIConnectionError;
164
- static APIConnectionTimeoutError: typeof Errors.APIConnectionTimeoutError;
165
- static APIUserAbortError: typeof Errors.APIUserAbortError;
166
- static NotFoundError: typeof Errors.NotFoundError;
167
- static ConflictError: typeof Errors.ConflictError;
168
- static RateLimitError: typeof Errors.RateLimitError;
169
- static BadRequestError: typeof Errors.BadRequestError;
170
- static AuthenticationError: typeof Errors.AuthenticationError;
171
- static InternalServerError: typeof Errors.InternalServerError;
172
- static PermissionDeniedError: typeof Errors.PermissionDeniedError;
173
- static UnprocessableEntityError: typeof Errors.UnprocessableEntityError;
174
- static toFile: typeof Uploads.toFile;
175
- users: API.Users;
176
- events: API.Events;
177
- }
178
- export declare namespace Userplex {
179
- export type RequestOptions = Opts.RequestOptions;
180
- export { Users as Users, type UserIdentifyResponse as UserIdentifyResponse, type UserIdentifyParams as UserIdentifyParams, };
181
- export { Events as Events, type EventTrackResponse as EventTrackResponse, type EventTrackParams as EventTrackParams, };
182
- }
183
- //# sourceMappingURL=client.d.ts.map
package/client.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["src/client.ts"],"names":[],"mappings":"OAEO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAY;OAC3C,KAAK,EAAc,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE;YAIvE,EAAE,MAAM,EAAE,QAAQ,EAAE;OAKzB,KAAK,IAAI;OAET,KAAK,MAAM;OACX,KAAK,OAAO;OACZ,KAAK,GAAG;OACR,EAAE,UAAU,EAAE;OACd,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,EAAE;OAChD,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,KAAK,EAAE;OACnD,EAAE,KAAK,KAAK,EAAE;OACd,EAAE,WAAW,EAAE,eAAe,EAAgB;OAC9C,EAAE,mBAAmB,EAAE,cAAc,EAAE;OAEvC,EACL,KAAK,QAAQ,EACb,KAAK,MAAM,EAIZ;AAGD,MAAM,WAAW,aAAa;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE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