@studyfetch/sdk 1.4.0 → 1.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +0 -373
  3. package/package.json +1 -1
  4. package/resources/v1/auth/auth.d.mts +0 -15
  5. package/resources/v1/auth/auth.d.mts.map +1 -1
  6. package/resources/v1/auth/auth.d.ts +0 -15
  7. package/resources/v1/auth/auth.d.ts.map +1 -1
  8. package/resources/v1/auth/auth.js +0 -12
  9. package/resources/v1/auth/auth.js.map +1 -1
  10. package/resources/v1/auth/auth.mjs +0 -12
  11. package/resources/v1/auth/auth.mjs.map +1 -1
  12. package/resources/v1/auth/login.d.mts +0 -6
  13. package/resources/v1/auth/login.d.mts.map +1 -1
  14. package/resources/v1/auth/login.d.ts +0 -6
  15. package/resources/v1/auth/login.d.ts.map +1 -1
  16. package/resources/v1/auth/login.js +0 -6
  17. package/resources/v1/auth/login.js.map +1 -1
  18. package/resources/v1/auth/login.mjs +0 -6
  19. package/resources/v1/auth/login.mjs.map +1 -1
  20. package/resources/v1/auth/number-2fa.d.mts +0 -8
  21. package/resources/v1/auth/number-2fa.d.mts.map +1 -1
  22. package/resources/v1/auth/number-2fa.d.ts +0 -8
  23. package/resources/v1/auth/number-2fa.d.ts.map +1 -1
  24. package/resources/v1/auth/number-2fa.js +0 -8
  25. package/resources/v1/auth/number-2fa.js.map +1 -1
  26. package/resources/v1/auth/number-2fa.mjs +0 -8
  27. package/resources/v1/auth/number-2fa.mjs.map +1 -1
  28. package/resources/v1/organizations/api-keys.d.mts +2 -15
  29. package/resources/v1/organizations/api-keys.d.mts.map +1 -1
  30. package/resources/v1/organizations/api-keys.d.ts +2 -15
  31. package/resources/v1/organizations/api-keys.d.ts.map +1 -1
  32. package/resources/v1/organizations/api-keys.js +2 -7
  33. package/resources/v1/organizations/api-keys.js.map +1 -1
  34. package/resources/v1/organizations/api-keys.mjs +2 -7
  35. package/resources/v1/organizations/api-keys.mjs.map +1 -1
  36. package/resources/v1/organizations/index.d.mts +1 -1
  37. package/resources/v1/organizations/index.d.mts.map +1 -1
  38. package/resources/v1/organizations/index.d.ts +1 -1
  39. package/resources/v1/organizations/index.d.ts.map +1 -1
  40. package/resources/v1/organizations/index.js.map +1 -1
  41. package/resources/v1/organizations/index.mjs.map +1 -1
  42. package/resources/v1/organizations/organizations.d.mts +2 -2
  43. package/resources/v1/organizations/organizations.d.mts.map +1 -1
  44. package/resources/v1/organizations/organizations.d.ts +2 -2
  45. package/resources/v1/organizations/organizations.d.ts.map +1 -1
  46. package/resources/v1/organizations/organizations.js.map +1 -1
  47. package/resources/v1/organizations/organizations.mjs.map +1 -1
  48. package/resources/v1/organizations/profile/profile.d.mts +0 -2
  49. package/resources/v1/organizations/profile/profile.d.mts.map +1 -1
  50. package/resources/v1/organizations/profile/profile.d.ts +0 -2
  51. package/resources/v1/organizations/profile/profile.d.ts.map +1 -1
  52. package/resources/v1/organizations/profile/profile.js +0 -2
  53. package/resources/v1/organizations/profile/profile.js.map +1 -1
  54. package/resources/v1/organizations/profile/profile.mjs +0 -2
  55. package/resources/v1/organizations/profile/profile.mjs.map +1 -1
  56. package/resources/v1/organizations/usage.d.mts +0 -2
  57. package/resources/v1/organizations/usage.d.mts.map +1 -1
  58. package/resources/v1/organizations/usage.d.ts +0 -2
  59. package/resources/v1/organizations/usage.d.ts.map +1 -1
  60. package/resources/v1/organizations/usage.js +0 -2
  61. package/resources/v1/organizations/usage.js.map +1 -1
  62. package/resources/v1/organizations/usage.mjs +0 -2
  63. package/resources/v1/organizations/usage.mjs.map +1 -1
  64. package/src/resources/v1/auth/auth.ts +0 -15
  65. package/src/resources/v1/auth/login.ts +0 -6
  66. package/src/resources/v1/auth/number-2fa.ts +0 -8
  67. package/src/resources/v1/organizations/api-keys.ts +2 -18
  68. package/src/resources/v1/organizations/index.ts +1 -1
  69. package/src/resources/v1/organizations/organizations.ts +2 -2
  70. package/src/resources/v1/organizations/profile/profile.ts +0 -2
  71. package/src/resources/v1/organizations/usage.ts +0 -2
  72. package/src/version.ts +1 -1
  73. package/version.d.mts +1 -1
  74. package/version.d.ts +1 -1
  75. package/version.js +1 -1
  76. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.5.0 (2025-07-18)
4
+
5
+ Full Changelog: [v1.4.1...v1.5.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.4.1...v1.5.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([b256a73](https://github.com/GoStudyFetchGo/studyfetch-sdk/commit/b256a73c50fa6bb1064e6a2b76994a0e508f8414))
10
+
11
+ ## 1.4.1 (2025-07-18)
12
+
13
+ Full Changelog: [v1.4.0...v1.4.1](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.4.0...v1.4.1)
14
+
3
15
  ## 1.4.0 (2025-07-18)
4
16
 
5
17
  Full Changelog: [v1.3.0...v1.4.0](https://github.com/GoStudyFetchGo/studyfetch-sdk/compare/v1.3.0...v1.4.0)
package/README.md CHANGED
@@ -6,8 +6,6 @@ This library provides convenient access to the Studyfetch SDK REST API from serv
6
6
 
7
7
  The REST API documentation can be found on [studyfetch.com](https://studyfetch.com/docs). The full API of this library can be found in [api.md](api.md).
8
8
 
9
- It is generated with [Stainless](https://www.stainless.com/).
10
-
11
9
  ## Installation
12
10
 
13
11
  ```sh
@@ -28,374 +26,3 @@ const client = new StudyfetchSDK({
28
26
 
29
27
  await client.v1.auth.login.authenticate({ email: 'user@example.com', password: 'password123' });
30
28
  ```
31
-
32
- ### Request & Response types
33
-
34
- This library includes TypeScript definitions for all request params and response fields. You may import and use them like so:
35
-
36
- <!-- prettier-ignore -->
37
- ```ts
38
- import StudyfetchSDK from '@studyfetch/sdk';
39
-
40
- const client = new StudyfetchSDK({
41
- apiKey: process.env['STUDYFETCH_SDK_API_KEY'], // This is the default and can be omitted
42
- });
43
-
44
- const params: StudyfetchSDK.V1.Auth.LoginAuthenticateParams = {
45
- email: 'user@example.com',
46
- password: 'password123',
47
- };
48
- await client.v1.auth.login.authenticate(params);
49
- ```
50
-
51
- Documentation for each method, request param, and response field are available in docstrings and will appear on hover in most modern editors.
52
-
53
- ## File uploads
54
-
55
- Request parameters that correspond to file uploads can be passed in many different forms:
56
-
57
- - `File` (or an object with the same structure)
58
- - a `fetch` `Response` (or an object with the same structure)
59
- - an `fs.ReadStream`
60
- - the return value of our `toFile` helper
61
-
62
- ```ts
63
- import fs from 'fs';
64
- import StudyfetchSDK, { toFile } from '@studyfetch/sdk';
65
-
66
- const client = new StudyfetchSDK();
67
-
68
- // If you have access to Node `fs` we recommend using `fs.createReadStream()`:
69
- await client.v1.materials.upload.uploadFile({ file: fs.createReadStream('/path/to/file'), name: 'name' });
70
-
71
- // Or if you have the web `File` API you can pass a `File` instance:
72
- await client.v1.materials.upload.uploadFile({ file: new File(['my bytes'], 'file'), name: 'name' });
73
-
74
- // You can also pass a `fetch` `Response`:
75
- await client.v1.materials.upload.uploadFile({ file: await fetch('https://somesite/file'), name: 'name' });
76
-
77
- // Finally, if none of the above are convenient, you can use our `toFile` helper:
78
- await client.v1.materials.upload.uploadFile({
79
- file: await toFile(Buffer.from('my bytes'), 'file'),
80
- name: 'name',
81
- });
82
- await client.v1.materials.upload.uploadFile({
83
- file: await toFile(new Uint8Array([0, 1, 2]), 'file'),
84
- name: 'name',
85
- });
86
- ```
87
-
88
- ## Handling errors
89
-
90
- When the library is unable to connect to the API,
91
- or if the API returns a non-success status code (i.e., 4xx or 5xx response),
92
- a subclass of `APIError` will be thrown:
93
-
94
- <!-- prettier-ignore -->
95
- ```ts
96
- const response = await client.v1.auth.login
97
- .authenticate({ email: 'user@example.com', password: 'password123' })
98
- .catch(async (err) => {
99
- if (err instanceof StudyfetchSDK.APIError) {
100
- console.log(err.status); // 400
101
- console.log(err.name); // BadRequestError
102
- console.log(err.headers); // {server: 'nginx', ...}
103
- } else {
104
- throw err;
105
- }
106
- });
107
- ```
108
-
109
- Error codes are as follows:
110
-
111
- | Status Code | Error Type |
112
- | ----------- | -------------------------- |
113
- | 400 | `BadRequestError` |
114
- | 401 | `AuthenticationError` |
115
- | 403 | `PermissionDeniedError` |
116
- | 404 | `NotFoundError` |
117
- | 422 | `UnprocessableEntityError` |
118
- | 429 | `RateLimitError` |
119
- | >=500 | `InternalServerError` |
120
- | N/A | `APIConnectionError` |
121
-
122
- ### Retries
123
-
124
- Certain errors will be automatically retried 2 times by default, with a short exponential backoff.
125
- Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
126
- 429 Rate Limit, and >=500 Internal errors will all be retried by default.
127
-
128
- You can use the `maxRetries` option to configure or disable this:
129
-
130
- <!-- prettier-ignore -->
131
- ```js
132
- // Configure the default for all requests:
133
- const client = new StudyfetchSDK({
134
- maxRetries: 0, // default is 2
135
- });
136
-
137
- // Or, configure per-request:
138
- await client.v1.auth.login.authenticate({ email: 'user@example.com', password: 'password123' }, {
139
- maxRetries: 5,
140
- });
141
- ```
142
-
143
- ### Timeouts
144
-
145
- Requests time out after 1 minute by default. You can configure this with a `timeout` option:
146
-
147
- <!-- prettier-ignore -->
148
- ```ts
149
- // Configure the default for all requests:
150
- const client = new StudyfetchSDK({
151
- timeout: 20 * 1000, // 20 seconds (default is 1 minute)
152
- });
153
-
154
- // Override per-request:
155
- await client.v1.auth.login.authenticate({ email: 'user@example.com', password: 'password123' }, {
156
- timeout: 5 * 1000,
157
- });
158
- ```
159
-
160
- On timeout, an `APIConnectionTimeoutError` is thrown.
161
-
162
- Note that requests which time out will be [retried twice by default](#retries).
163
-
164
- ## Advanced Usage
165
-
166
- ### Accessing raw Response data (e.g., headers)
167
-
168
- The "raw" `Response` returned by `fetch()` can be accessed through the `.asResponse()` method on the `APIPromise` type that all methods return.
169
- This method returns as soon as the headers for a successful response are received and does not consume the response body, so you are free to write custom parsing or streaming logic.
170
-
171
- You can also use the `.withResponse()` method to get the raw `Response` along with the parsed data.
172
- Unlike `.asResponse()` this method consumes the body, returning once it is parsed.
173
-
174
- <!-- prettier-ignore -->
175
- ```ts
176
- const client = new StudyfetchSDK();
177
-
178
- const response = await client.v1.auth.login
179
- .authenticate({ email: 'user@example.com', password: 'password123' })
180
- .asResponse();
181
- console.log(response.headers.get('X-My-Header'));
182
- console.log(response.statusText); // access the underlying Response object
183
-
184
- const { data: result, response: raw } = await client.v1.auth.login
185
- .authenticate({ email: 'user@example.com', password: 'password123' })
186
- .withResponse();
187
- console.log(raw.headers.get('X-My-Header'));
188
- console.log(result);
189
- ```
190
-
191
- ### Logging
192
-
193
- > [!IMPORTANT]
194
- > All log messages are intended for debugging only. The format and content of log messages
195
- > may change between releases.
196
-
197
- #### Log levels
198
-
199
- The log level can be configured in two ways:
200
-
201
- 1. Via the `STUDYFETCH_SDK_LOG` environment variable
202
- 2. Using the `logLevel` client option (overrides the environment variable if set)
203
-
204
- ```ts
205
- import StudyfetchSDK from '@studyfetch/sdk';
206
-
207
- const client = new StudyfetchSDK({
208
- logLevel: 'debug', // Show all log messages
209
- });
210
- ```
211
-
212
- Available log levels, from most to least verbose:
213
-
214
- - `'debug'` - Show debug messages, info, warnings, and errors
215
- - `'info'` - Show info messages, warnings, and errors
216
- - `'warn'` - Show warnings and errors (default)
217
- - `'error'` - Show only errors
218
- - `'off'` - Disable all logging
219
-
220
- At the `'debug'` level, all HTTP requests and responses are logged, including headers and bodies.
221
- Some authentication-related headers are redacted, but sensitive data in request and response bodies
222
- may still be visible.
223
-
224
- #### Custom logger
225
-
226
- By default, this library logs to `globalThis.console`. You can also provide a custom logger.
227
- Most logging libraries are supported, including [pino](https://www.npmjs.com/package/pino), [winston](https://www.npmjs.com/package/winston), [bunyan](https://www.npmjs.com/package/bunyan), [consola](https://www.npmjs.com/package/consola), [signale](https://www.npmjs.com/package/signale), and [@std/log](https://jsr.io/@std/log). If your logger doesn't work, please open an issue.
228
-
229
- When providing a custom logger, the `logLevel` option still controls which messages are emitted, messages
230
- below the configured level will not be sent to your logger.
231
-
232
- ```ts
233
- import StudyfetchSDK from '@studyfetch/sdk';
234
- import pino from 'pino';
235
-
236
- const logger = pino();
237
-
238
- const client = new StudyfetchSDK({
239
- logger: logger.child({ name: 'StudyfetchSDK' }),
240
- logLevel: 'debug', // Send all messages to pino, allowing it to filter
241
- });
242
- ```
243
-
244
- ### Making custom/undocumented requests
245
-
246
- This library is typed for convenient access to the documented API. If you need to access undocumented
247
- endpoints, params, or response properties, the library can still be used.
248
-
249
- #### Undocumented endpoints
250
-
251
- To make requests to undocumented endpoints, you can use `client.get`, `client.post`, and other HTTP verbs.
252
- Options on the client, such as retries, will be respected when making these requests.
253
-
254
- ```ts
255
- await client.post('/some/path', {
256
- body: { some_prop: 'foo' },
257
- query: { some_query_arg: 'bar' },
258
- });
259
- ```
260
-
261
- #### Undocumented request params
262
-
263
- To make requests using undocumented parameters, you may use `// @ts-expect-error` on the undocumented
264
- parameter. This library doesn't validate at runtime that the request matches the type, so any extra values you
265
- send will be sent as-is.
266
-
267
- ```ts
268
- client.v1.auth.login.authenticate({
269
- // ...
270
- // @ts-expect-error baz is not yet public
271
- baz: 'undocumented option',
272
- });
273
- ```
274
-
275
- For requests with the `GET` verb, any extra params will be in the query, all other requests will send the
276
- extra param in the body.
277
-
278
- If you want to explicitly send an extra argument, you can do so with the `query`, `body`, and `headers` request
279
- options.
280
-
281
- #### Undocumented response properties
282
-
283
- To access undocumented response properties, you may access the response object with `// @ts-expect-error` on
284
- the response object, or cast the response object to the requisite type. Like the request params, we do not
285
- validate or strip extra properties from the response from the API.
286
-
287
- ### Customizing the fetch client
288
-
289
- By default, this library expects a global `fetch` function is defined.
290
-
291
- If you want to use a different `fetch` function, you can either polyfill the global:
292
-
293
- ```ts
294
- import fetch from 'my-fetch';
295
-
296
- globalThis.fetch = fetch;
297
- ```
298
-
299
- Or pass it to the client:
300
-
301
- ```ts
302
- import StudyfetchSDK from '@studyfetch/sdk';
303
- import fetch from 'my-fetch';
304
-
305
- const client = new StudyfetchSDK({ fetch });
306
- ```
307
-
308
- ### Fetch options
309
-
310
- If you want to set custom `fetch` options without overriding the `fetch` function, you can provide a `fetchOptions` object when instantiating the client or making a request. (Request-specific options override client options.)
311
-
312
- ```ts
313
- import StudyfetchSDK from '@studyfetch/sdk';
314
-
315
- const client = new StudyfetchSDK({
316
- fetchOptions: {
317
- // `RequestInit` options
318
- },
319
- });
320
- ```
321
-
322
- #### Configuring proxies
323
-
324
- To modify proxy behavior, you can provide custom `fetchOptions` that add runtime-specific proxy
325
- options to requests:
326
-
327
- <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/node.svg" align="top" width="18" height="21"> **Node** <sup>[[docs](https://github.com/nodejs/undici/blob/main/docs/docs/api/ProxyAgent.md#example---proxyagent-with-fetch)]</sup>
328
-
329
- ```ts
330
- import StudyfetchSDK from '@studyfetch/sdk';
331
- import * as undici from 'undici';
332
-
333
- const proxyAgent = new undici.ProxyAgent('http://localhost:8888');
334
- const client = new StudyfetchSDK({
335
- fetchOptions: {
336
- dispatcher: proxyAgent,
337
- },
338
- });
339
- ```
340
-
341
- <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/bun.svg" align="top" width="18" height="21"> **Bun** <sup>[[docs](https://bun.sh/guides/http/proxy)]</sup>
342
-
343
- ```ts
344
- import StudyfetchSDK from '@studyfetch/sdk';
345
-
346
- const client = new StudyfetchSDK({
347
- fetchOptions: {
348
- proxy: 'http://localhost:8888',
349
- },
350
- });
351
- ```
352
-
353
- <img src="https://raw.githubusercontent.com/stainless-api/sdk-assets/refs/heads/main/deno.svg" align="top" width="18" height="21"> **Deno** <sup>[[docs](https://docs.deno.com/api/deno/~/Deno.createHttpClient)]</sup>
354
-
355
- ```ts
356
- import StudyfetchSDK from 'npm:@studyfetch/sdk';
357
-
358
- const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } });
359
- const client = new StudyfetchSDK({
360
- fetchOptions: {
361
- client: httpClient,
362
- },
363
- });
364
- ```
365
-
366
- ## Frequently Asked Questions
367
-
368
- ## Semantic versioning
369
-
370
- This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:
371
-
372
- 1. Changes that only affect static types, without breaking runtime behavior.
373
- 2. Changes to library internals which are technically public but not intended or documented for external use. _(Please open a GitHub issue to let us know if you are relying on such internals.)_
374
- 3. Changes that we do not expect to impact the vast majority of users in practice.
375
-
376
- We take backwards-compatibility seriously and work hard to ensure you can rely on a smooth upgrade experience.
377
-
378
- We are keen for your feedback; please open an [issue](https://www.github.com/GoStudyFetchGo/studyfetch-sdk/issues) with questions, bugs, or suggestions.
379
-
380
- ## Requirements
381
-
382
- TypeScript >= 4.9 is supported.
383
-
384
- The following runtimes are supported:
385
-
386
- - Web browsers (Up-to-date Chrome, Firefox, Safari, Edge, and more)
387
- - Node.js 20 LTS or later ([non-EOL](https://endoflife.date/nodejs)) versions.
388
- - Deno v1.28.0 or higher.
389
- - Bun 1.0 or later.
390
- - Cloudflare Workers.
391
- - Vercel Edge Runtime.
392
- - Jest 28 or greater with the `"node"` environment (`"jsdom"` is not supported at this time).
393
- - Nitro v2.6 or greater.
394
-
395
- Note that React Native is not supported at this time.
396
-
397
- If you are interested in other runtime environments, please open or upvote an issue on GitHub.
398
-
399
- ## Contributing
400
-
401
- See [the contributing documentation](./CONTRIBUTING.md).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@studyfetch/sdk",
3
- "version": "1.4.0",
3
+ "version": "1.5.0",
4
4
  "description": "The official TypeScript library for the Studyfetch SDK API",
5
5
  "author": "Studyfetch SDK <>",
6
6
  "types": "./index.d.ts",
@@ -12,8 +12,6 @@ export declare class Auth extends APIResource {
12
12
  number2fa: Number2faAPI.Number2fa;
13
13
  organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
14
14
  /**
15
- * Get current user profile
16
- *
17
15
  * @example
18
16
  * ```ts
19
17
  * await client.v1.auth.getProfile();
@@ -21,8 +19,6 @@ export declare class Auth extends APIResource {
21
19
  */
22
20
  getProfile(options?: RequestOptions): APIPromise<void>;
23
21
  /**
24
- * Register new user
25
- *
26
22
  * @example
27
23
  * ```ts
28
24
  * await client.v1.auth.registerNewUser({
@@ -42,8 +38,6 @@ export declare class Auth extends APIResource {
42
38
  */
43
39
  registerOrganization(options?: RequestOptions): APIPromise<void>;
44
40
  /**
45
- * Register new user with organization invite
46
- *
47
41
  * @example
48
42
  * ```ts
49
43
  * await client.v1.auth.registerWithInvite();
@@ -51,8 +45,6 @@ export declare class Auth extends APIResource {
51
45
  */
52
46
  registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void>;
53
47
  /**
54
- * Request password reset
55
- *
56
48
  * @example
57
49
  * ```ts
58
50
  * await client.v1.auth.requestPasswordReset({
@@ -62,8 +54,6 @@ export declare class Auth extends APIResource {
62
54
  */
63
55
  requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void>;
64
56
  /**
65
- * Reset password with token
66
- *
67
57
  * @example
68
58
  * ```ts
69
59
  * await client.v1.auth.resetPassword({
@@ -74,8 +64,6 @@ export declare class Auth extends APIResource {
74
64
  */
75
65
  resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void>;
76
66
  /**
77
- * Verify password reset token
78
- *
79
67
  * @example
80
68
  * ```ts
81
69
  * await client.v1.auth.verifyResetToken({ token: 'token' });
@@ -120,9 +108,6 @@ export interface AuthResetPasswordParams {
120
108
  newPassword: string;
121
109
  }
122
110
  export interface AuthVerifyResetTokenParams {
123
- /**
124
- * Password reset token
125
- */
126
111
  token: string;
127
112
  }
128
113
  export declare namespace Auth {
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,QAAQ;OACb,EAA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G;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,gBAAgB,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,4BAA4B;CAAG;AAEhD,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;CACf;AAMD,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;IAEF,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;IAEF,OAAO,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,CAAC;CACvD"}
@@ -12,8 +12,6 @@ export declare class Auth extends APIResource {
12
12
  number2fa: Number2faAPI.Number2fa;
13
13
  organizationInvites: OrganizationInvitesAPI.OrganizationInvites;
14
14
  /**
15
- * Get current user profile
16
- *
17
15
  * @example
18
16
  * ```ts
19
17
  * await client.v1.auth.getProfile();
@@ -21,8 +19,6 @@ export declare class Auth extends APIResource {
21
19
  */
22
20
  getProfile(options?: RequestOptions): APIPromise<void>;
23
21
  /**
24
- * Register new user
25
- *
26
22
  * @example
27
23
  * ```ts
28
24
  * await client.v1.auth.registerNewUser({
@@ -42,8 +38,6 @@ export declare class Auth extends APIResource {
42
38
  */
43
39
  registerOrganization(options?: RequestOptions): APIPromise<void>;
44
40
  /**
45
- * Register new user with organization invite
46
- *
47
41
  * @example
48
42
  * ```ts
49
43
  * await client.v1.auth.registerWithInvite();
@@ -51,8 +45,6 @@ export declare class Auth extends APIResource {
51
45
  */
52
46
  registerWithInvite(body: AuthRegisterWithInviteParams, options?: RequestOptions): APIPromise<void>;
53
47
  /**
54
- * Request password reset
55
- *
56
48
  * @example
57
49
  * ```ts
58
50
  * await client.v1.auth.requestPasswordReset({
@@ -62,8 +54,6 @@ export declare class Auth extends APIResource {
62
54
  */
63
55
  requestPasswordReset(body: AuthRequestPasswordResetParams, options?: RequestOptions): APIPromise<void>;
64
56
  /**
65
- * Reset password with token
66
- *
67
57
  * @example
68
58
  * ```ts
69
59
  * await client.v1.auth.resetPassword({
@@ -74,8 +64,6 @@ export declare class Auth extends APIResource {
74
64
  */
75
65
  resetPassword(body: AuthResetPasswordParams, options?: RequestOptions): APIPromise<void>;
76
66
  /**
77
- * Verify password reset token
78
- *
79
67
  * @example
80
68
  * ```ts
81
69
  * await client.v1.auth.verifyResetToken({ token: 'token' });
@@ -120,9 +108,6 @@ export interface AuthResetPasswordParams {
120
108
  newPassword: string;
121
109
  }
122
110
  export interface AuthVerifyResetTokenParams {
123
- /**
124
- * Password reset token
125
- */
126
111
  token: string;
127
112
  }
128
113
  export declare namespace Auth {
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":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izationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
20
20
  }
21
21
  /**
22
- * Get current user profile
23
- *
24
22
  * @example
25
23
  * ```ts
26
24
  * await client.v1.auth.getProfile();
@@ -33,8 +31,6 @@ class Auth extends resource_1.APIResource {
33
31
  });
34
32
  }
35
33
  /**
36
- * Register new user
37
- *
38
34
  * @example
39
35
  * ```ts
40
36
  * await client.v1.auth.registerNewUser({
@@ -65,8 +61,6 @@ class Auth extends resource_1.APIResource {
65
61
  });
66
62
  }
67
63
  /**
68
- * Register new user with organization invite
69
- *
70
64
  * @example
71
65
  * ```ts
72
66
  * await client.v1.auth.registerWithInvite();
@@ -80,8 +74,6 @@ class Auth extends resource_1.APIResource {
80
74
  });
81
75
  }
82
76
  /**
83
- * Request password reset
84
- *
85
77
  * @example
86
78
  * ```ts
87
79
  * await client.v1.auth.requestPasswordReset({
@@ -97,8 +89,6 @@ class Auth extends resource_1.APIResource {
97
89
  });
98
90
  }
99
91
  /**
100
- * Reset password with token
101
- *
102
92
  * @example
103
93
  * ```ts
104
94
  * await client.v1.auth.resetPassword({
@@ -115,8 +105,6 @@ class Auth extends resource_1.APIResource {
115
105
  });
116
106
  }
117
107
  /**
118
- * Verify password reset token
119
- *
120
108
  * @example
121
109
  * ```ts
122
110
  * await client.v1.auth.verifyResetToken({ token: 'token' });
@@ -1 +1 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/resources/v1/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,6DAAoC;AACpC,sCAA4G;AAC5G,sEAA6C;AAC7C,gDAMsB;AACtB,0FAAiE;AACjE,oEAA6D;AAE7D,0DAAyD;AAGzD,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,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extends APIResource {
15
15
  this.organizationInvites = new OrganizationInvitesAPI.OrganizationInvites(this._client);
16
16
  }
17
17
  /**
18
- * Get current user profile
19
- *
20
18
  * @example
21
19
  * ```ts
22
20
  * await client.v1.auth.getProfile();
@@ -29,8 +27,6 @@ export class Auth extends APIResource {
29
27
  });
30
28
  }
31
29
  /**
32
- * Register new user
33
- *
34
30
  * @example
35
31
  * ```ts
36
32
  * await client.v1.auth.registerNewUser({
@@ -61,8 +57,6 @@ export class Auth extends APIResource {
61
57
  });
62
58
  }
63
59
  /**
64
- * Register new user with organization invite
65
- *
66
60
  * @example
67
61
  * ```ts
68
62
  * await client.v1.auth.registerWithInvite();
@@ -76,8 +70,6 @@ export class Auth extends APIResource {
76
70
  });
77
71
  }
78
72
  /**
79
- * Request password reset
80
- *
81
73
  * @example
82
74
  * ```ts
83
75
  * await client.v1.auth.requestPasswordReset({
@@ -93,8 +85,6 @@ export class Auth extends APIResource {
93
85
  });
94
86
  }
95
87
  /**
96
- * Reset password with token
97
- *
98
88
  * @example
99
89
  * ```ts
100
90
  * await client.v1.auth.resetPassword({
@@ -111,8 +101,6 @@ export class Auth extends APIResource {
111
101
  });
112
102
  }
113
103
  /**
114
- * Verify password reset token
115
- *
116
104
  * @example
117
105
  * ```ts
118
106
  * await client.v1.auth.verifyResetToken({ token: 'token' });