dub 0.33.0 → 0.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +68 -0
- package/docs/sdks/analytics/README.md +1 -0
- package/docs/sdks/domains/README.md +4 -0
- package/docs/sdks/links/README.md +9 -0
- package/docs/sdks/metatags/README.md +1 -0
- package/docs/sdks/qrcodes/README.md +1 -0
- package/docs/sdks/tags/README.md +3 -0
- package/docs/sdks/track/README.md +3 -0
- package/docs/sdks/workspaces/README.md +2 -0
- package/lib/config.d.ts +4 -3
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/sdks.d.ts +23 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +29 -13
- package/lib/sdks.js.map +1 -1
- package/models/components/workspaceschema.d.ts +5 -0
- package/models/components/workspaceschema.d.ts.map +1 -1
- package/models/components/workspaceschema.js +2 -0
- package/models/components/workspaceschema.js.map +1 -1
- package/package.json +1 -2
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +3 -0
- package/sdk/analytics.js.map +1 -1
- package/sdk/domains.d.ts.map +1 -1
- package/sdk/domains.js +12 -0
- package/sdk/domains.js.map +1 -1
- package/sdk/links.d.ts.map +1 -1
- package/sdk/links.js +27 -0
- package/sdk/links.js.map +1 -1
- package/sdk/metatags.d.ts.map +1 -1
- package/sdk/metatags.js +7 -1
- package/sdk/metatags.js.map +1 -1
- package/sdk/qrcodes.d.ts.map +1 -1
- package/sdk/qrcodes.js +3 -0
- package/sdk/qrcodes.js.map +1 -1
- package/sdk/tags.d.ts.map +1 -1
- package/sdk/tags.js +9 -0
- package/sdk/tags.js.map +1 -1
- package/sdk/track.d.ts.map +1 -1
- package/sdk/track.js +9 -0
- package/sdk/track.js.map +1 -1
- package/sdk/workspaces.d.ts.map +1 -1
- package/sdk/workspaces.js +6 -0
- package/sdk/workspaces.js.map +1 -1
- package/src/lib/config.ts +4 -3
- package/src/lib/sdks.ts +59 -16
- package/src/models/components/workspaceschema.ts +7 -0
- package/src/sdk/analytics.ts +3 -0
- package/src/sdk/domains.ts +12 -0
- package/src/sdk/links.ts +27 -0
- package/src/sdk/metatags.ts +7 -1
- package/src/sdk/qrcodes.ts +3 -0
- package/src/sdk/tags.ts +9 -0
- package/src/sdk/track.ts +9 -0
- package/src/sdk/workspaces.ts +6 -0
package/README.md
CHANGED
|
@@ -376,6 +376,74 @@ run();
|
|
|
376
376
|
```
|
|
377
377
|
<!-- End Authentication [security] -->
|
|
378
378
|
|
|
379
|
+
<!-- Start Retries [retries] -->
|
|
380
|
+
## Retries
|
|
381
|
+
|
|
382
|
+
Some of the endpoints in this SDK support retries. If you use the SDK without any configuration, it will fall back to the default retry strategy provided by the API. However, the default retry strategy can be overridden on a per-operation basis, or across the entire SDK.
|
|
383
|
+
|
|
384
|
+
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
|
|
385
|
+
```typescript
|
|
386
|
+
import { Dub } from "dub";
|
|
387
|
+
|
|
388
|
+
const dub = new Dub({
|
|
389
|
+
token: "DUB_API_KEY",
|
|
390
|
+
});
|
|
391
|
+
|
|
392
|
+
async function run() {
|
|
393
|
+
const result = await dub.links.list(
|
|
394
|
+
{},
|
|
395
|
+
{
|
|
396
|
+
retries: {
|
|
397
|
+
strategy: "backoff",
|
|
398
|
+
backoff: {
|
|
399
|
+
initialInterval: 1,
|
|
400
|
+
maxInterval: 50,
|
|
401
|
+
exponent: 1.1,
|
|
402
|
+
maxElapsedTime: 100,
|
|
403
|
+
},
|
|
404
|
+
retryConnectionErrors: false,
|
|
405
|
+
},
|
|
406
|
+
}
|
|
407
|
+
);
|
|
408
|
+
|
|
409
|
+
// Handle the result
|
|
410
|
+
console.log(result);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
run();
|
|
414
|
+
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
|
|
418
|
+
```typescript
|
|
419
|
+
import { Dub } from "dub";
|
|
420
|
+
|
|
421
|
+
const dub = new Dub({
|
|
422
|
+
retryConfig: {
|
|
423
|
+
strategy: "backoff",
|
|
424
|
+
backoff: {
|
|
425
|
+
initialInterval: 1,
|
|
426
|
+
maxInterval: 50,
|
|
427
|
+
exponent: 1.1,
|
|
428
|
+
maxElapsedTime: 100,
|
|
429
|
+
},
|
|
430
|
+
retryConnectionErrors: false,
|
|
431
|
+
},
|
|
432
|
+
token: "DUB_API_KEY",
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
async function run() {
|
|
436
|
+
const result = await dub.links.list({});
|
|
437
|
+
|
|
438
|
+
// Handle the result
|
|
439
|
+
console.log(result);
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
run();
|
|
443
|
+
|
|
444
|
+
```
|
|
445
|
+
<!-- End Retries [retries] -->
|
|
446
|
+
|
|
379
447
|
<!-- Placeholder for Future Speakeasy SDK Sections -->
|
|
380
448
|
|
|
381
449
|
# Development
|
|
@@ -35,6 +35,7 @@ run();
|
|
|
35
35
|
| `request` | [operations.RetrieveAnalyticsRequest](../../models/operations/retrieveanalyticsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
36
36
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
37
37
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
38
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
38
39
|
|
|
39
40
|
|
|
40
41
|
### Response
|
|
@@ -37,6 +37,7 @@ run();
|
|
|
37
37
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
38
38
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
39
39
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
40
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
### Response
|
|
@@ -89,6 +90,7 @@ run();
|
|
|
89
90
|
| `request` | [operations.CreateDomainRequestBody](../../models/operations/createdomainrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
90
91
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
91
92
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
93
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
92
94
|
|
|
93
95
|
|
|
94
96
|
### Response
|
|
@@ -139,6 +141,7 @@ run();
|
|
|
139
141
|
| `slug` | *string* | :heavy_check_mark: | The domain name. | [object Object] |
|
|
140
142
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
|
|
141
143
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
|
|
144
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | |
|
|
142
145
|
|
|
143
146
|
|
|
144
147
|
### Response
|
|
@@ -190,6 +193,7 @@ run();
|
|
|
190
193
|
| `requestBody` | [operations.UpdateDomainRequestBody](../../models/operations/updatedomainrequestbody.md) | :heavy_minus_sign: | N/A | |
|
|
191
194
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | |
|
|
192
195
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | |
|
|
196
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | |
|
|
193
197
|
|
|
194
198
|
|
|
195
199
|
### Response
|
|
@@ -43,6 +43,7 @@ run();
|
|
|
43
43
|
| `request` | [operations.GetLinksRequest](../../models/operations/getlinksrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
44
44
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
45
45
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
46
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
### Response
|
|
@@ -95,6 +96,7 @@ run();
|
|
|
95
96
|
| `request` | [operations.CreateLinkRequestBody](../../models/operations/createlinkrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
96
97
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
97
98
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
99
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
98
100
|
|
|
99
101
|
|
|
100
102
|
### Response
|
|
@@ -145,6 +147,7 @@ run();
|
|
|
145
147
|
| `request` | [operations.GetLinksCountRequest](../../models/operations/getlinkscountrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
146
148
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
147
149
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
150
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
148
151
|
|
|
149
152
|
|
|
150
153
|
### Response
|
|
@@ -195,6 +198,7 @@ run();
|
|
|
195
198
|
| `request` | [operations.GetLinkInfoRequest](../../models/operations/getlinkinforequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
196
199
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
197
200
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
201
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
198
202
|
|
|
199
203
|
|
|
200
204
|
### Response
|
|
@@ -245,6 +249,7 @@ run();
|
|
|
245
249
|
| `linkId` | *string* | :heavy_check_mark: | The id of the link to delete. You may use either `linkId` (obtained via `/links/info` endpoint) or `externalId` prefixed with `ext_`. |
|
|
246
250
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
247
251
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
252
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
248
253
|
|
|
249
254
|
|
|
250
255
|
### Response
|
|
@@ -296,6 +301,7 @@ run();
|
|
|
296
301
|
| `requestBody` | [operations.UpdateLinkRequestBody](../../models/operations/updatelinkrequestbody.md) | :heavy_minus_sign: | N/A |
|
|
297
302
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
298
303
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
304
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
299
305
|
|
|
300
306
|
|
|
301
307
|
### Response
|
|
@@ -350,6 +356,7 @@ run();
|
|
|
350
356
|
| `request` | [operations.RequestBody[]](../../models/.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
351
357
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
352
358
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
359
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
353
360
|
|
|
354
361
|
|
|
355
362
|
### Response
|
|
@@ -405,6 +412,7 @@ run();
|
|
|
405
412
|
| `request` | [operations.BulkUpdateLinksRequestBody](../../models/operations/bulkupdatelinksrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
406
413
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
407
414
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
415
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
408
416
|
|
|
409
417
|
|
|
410
418
|
### Response
|
|
@@ -457,6 +465,7 @@ run();
|
|
|
457
465
|
| `request` | [operations.UpsertLinkRequestBody](../../models/operations/upsertlinkrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
458
466
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
459
467
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
468
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
460
469
|
|
|
461
470
|
|
|
462
471
|
### Response
|
|
@@ -37,6 +37,7 @@ run();
|
|
|
37
37
|
| `request` | [operations.GetMetatagsRequest](../../models/operations/getmetatagsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
38
38
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
39
39
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
40
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
### Response
|
|
@@ -37,6 +37,7 @@ run();
|
|
|
37
37
|
| `request` | [operations.GetQRCodeRequest](../../models/operations/getqrcoderequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
38
38
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
39
39
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
40
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
40
41
|
|
|
41
42
|
|
|
42
43
|
### Response
|
package/docs/sdks/tags/README.md
CHANGED
|
@@ -36,6 +36,7 @@ run();
|
|
|
36
36
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
37
37
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
38
38
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
39
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
39
40
|
|
|
40
41
|
|
|
41
42
|
### Response
|
|
@@ -86,6 +87,7 @@ run();
|
|
|
86
87
|
| `request` | [operations.CreateTagRequestBody](../../models/operations/createtagrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
87
88
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
88
89
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
90
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
89
91
|
|
|
90
92
|
|
|
91
93
|
### Response
|
|
@@ -137,6 +139,7 @@ run();
|
|
|
137
139
|
| `requestBody` | [operations.UpdateTagRequestBody](../../models/operations/updatetagrequestbody.md) | :heavy_minus_sign: | N/A |
|
|
138
140
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
139
141
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
142
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
140
143
|
|
|
141
144
|
|
|
142
145
|
### Response
|
|
@@ -41,6 +41,7 @@ run();
|
|
|
41
41
|
| `request` | [operations.TrackLeadRequestBody](../../models/operations/trackleadrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
42
42
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
43
43
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
44
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
### Response
|
|
@@ -95,6 +96,7 @@ run();
|
|
|
95
96
|
| `request` | [operations.TrackSaleRequestBody](../../models/operations/tracksalerequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
96
97
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
97
98
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
99
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
98
100
|
|
|
99
101
|
|
|
100
102
|
### Response
|
|
@@ -147,6 +149,7 @@ run();
|
|
|
147
149
|
| `request` | [operations.TrackCustomerRequestBody](../../models/operations/trackcustomerrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
148
150
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
149
151
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
152
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
150
153
|
|
|
151
154
|
|
|
152
155
|
### Response
|
|
@@ -38,6 +38,7 @@ run();
|
|
|
38
38
|
| `request` | [operations.GetWorkspaceRequest](../../models/operations/getworkspacerequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
39
39
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
40
40
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
41
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
41
42
|
|
|
42
43
|
|
|
43
44
|
### Response
|
|
@@ -89,6 +90,7 @@ run();
|
|
|
89
90
|
| `requestBody` | [operations.UpdateWorkspaceRequestBody](../../models/operations/updateworkspacerequestbody.md) | :heavy_minus_sign: | N/A |
|
|
90
91
|
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
91
92
|
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
93
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
92
94
|
|
|
93
95
|
|
|
94
96
|
### Response
|
package/lib/config.d.ts
CHANGED
|
@@ -19,13 +19,14 @@ export type SDKOptions = {
|
|
|
19
19
|
* Allows overriding the default retry config used by the SDK
|
|
20
20
|
*/
|
|
21
21
|
retryConfig?: RetryConfig;
|
|
22
|
+
timeoutMs?: number;
|
|
22
23
|
};
|
|
23
24
|
export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
24
25
|
export declare const SDK_METADATA: {
|
|
25
26
|
readonly language: "typescript";
|
|
26
27
|
readonly openapiDocVersion: "0.0.1";
|
|
27
|
-
readonly sdkVersion: "0.
|
|
28
|
-
readonly genVersion: "2.
|
|
29
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.
|
|
28
|
+
readonly sdkVersion: "0.34.0";
|
|
29
|
+
readonly genVersion: "2.370.2";
|
|
30
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.34.0 2.370.2 0.0.1 dub";
|
|
30
31
|
};
|
|
31
32
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,iCAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAEzC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,UAAU,iCAKb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAEzC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,UAAU,GAAG,GAAG,GAAG,IAAI,CAepE;AAED,eAAO,MAAM,YAAY;;;;;;CAMf,CAAC"}
|
package/lib/config.js
CHANGED
|
@@ -32,8 +32,8 @@ exports.serverURLFromOptions = serverURLFromOptions;
|
|
|
32
32
|
exports.SDK_METADATA = {
|
|
33
33
|
language: "typescript",
|
|
34
34
|
openapiDocVersion: "0.0.1",
|
|
35
|
-
sdkVersion: "0.
|
|
36
|
-
genVersion: "2.
|
|
37
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
35
|
+
sdkVersion: "0.34.0",
|
|
36
|
+
genVersion: "2.370.2",
|
|
37
|
+
userAgent: "speakeasy-sdk/typescript 0.34.0 2.370.2 0.0.1 dub",
|
|
38
38
|
};
|
|
39
39
|
//# sourceMappingURL=config.js.map
|
package/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACtB;;OAEG;IACH,oBAAoB;CACd,CAAC;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAIH,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACtB;;OAEG;IACH,oBAAoB;CACd,CAAC;AAqBX,SAAgB,oBAAoB,CAAC,OAAmB;;IACpD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACb,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,kBAAU,CAAC,MAAM,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACzD,CAAC;QACD,SAAS,GAAG,kBAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC5C,CAAC;IAED,MAAM,CAAC,GAAG,IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACtB,CAAC;AAfD,oDAeC;AAEY,QAAA,YAAY,GAAG;IACxB,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,mDAAmD;CACxD,CAAC"}
|
package/lib/sdks.d.ts
CHANGED
|
@@ -1,9 +1,28 @@
|
|
|
1
1
|
import { ResponseMatcher, HTTPClient } from "./http.js";
|
|
2
2
|
import { SecurityState, resolveSecurity, resolveGlobalSecurity } from "./security.js";
|
|
3
|
+
import { RetryConfig } from "./retries.js";
|
|
3
4
|
import { pathToFunc } from "./url.js";
|
|
4
5
|
import { SDKHooks } from "../hooks/hooks.js";
|
|
5
6
|
import { HookContext } from "../hooks/types.js";
|
|
6
7
|
export type RequestOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* Sets a timeout, in milliseconds, on HTTP requests made by an SDK method. If
|
|
10
|
+
* `fetchOptions.signal` is set then it will take precedence over this option.
|
|
11
|
+
*/
|
|
12
|
+
timeoutMs?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Set or override a retry policy on HTTP calls.
|
|
15
|
+
*/
|
|
16
|
+
retries?: RetryConfig;
|
|
17
|
+
/**
|
|
18
|
+
* Specifies the status codes which should be retried using the given retry policy.
|
|
19
|
+
*/
|
|
20
|
+
retryCodes?: string[];
|
|
21
|
+
/**
|
|
22
|
+
* Sets various request options on the `fetch` call made by an SDK method.
|
|
23
|
+
*
|
|
24
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options|Request}
|
|
25
|
+
*/
|
|
7
26
|
fetchOptions?: Omit<RequestInit, "method" | "body">;
|
|
8
27
|
};
|
|
9
28
|
type RequestConfig = {
|
|
@@ -15,6 +34,7 @@ type RequestConfig = {
|
|
|
15
34
|
headers?: HeadersInit;
|
|
16
35
|
security?: SecurityState | null;
|
|
17
36
|
uaHeader?: string;
|
|
37
|
+
timeoutMs?: number;
|
|
18
38
|
};
|
|
19
39
|
export declare class ClientSDK {
|
|
20
40
|
private readonly client;
|
|
@@ -26,9 +46,11 @@ export declare class ClientSDK {
|
|
|
26
46
|
hooks: SDKHooks;
|
|
27
47
|
});
|
|
28
48
|
protected createRequest$(context: HookContext, conf: RequestConfig, options?: RequestOptions): Request;
|
|
29
|
-
protected do$(
|
|
49
|
+
protected do$(request: Request, options: {
|
|
30
50
|
context: HookContext;
|
|
31
51
|
errorCodes: number | string | (number | string)[];
|
|
52
|
+
retryConfig?: RetryConfig | undefined;
|
|
53
|
+
retryCodes?: string[] | undefined;
|
|
32
54
|
}): Promise<Response>;
|
|
33
55
|
protected matcher<Result>(): ResponseMatcher<Result>;
|
|
34
56
|
protected templateURLComponent: typeof pathToFunc;
|
package/lib/sdks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdks.d.ts","sourceRoot":"","sources":["../src/lib/sdks.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAmB,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,eAAe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,OAAO,CAAC,QAAQ,CAAC;IA6BpB,SAAS,CAAC,OAAO,CAAC,MAAM,KAAK,eAAe,CAAC,MAAM,CAAC;IAIpD,SAAS,CAAC,oBAAoB,oBAAc;IAE5C,SAAS,CAAC,eAAe,yBAAmB;IAC5C,SAAS,CAAC,qBAAqB,+BAAyB;CAC3D"}
|
package/lib/sdks.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ClientSDK = void 0;
|
|
7
7
|
const http_js_1 = require("./http.js");
|
|
8
8
|
const security_js_1 = require("./security.js");
|
|
9
|
+
const retries_js_1 = require("./retries.js");
|
|
9
10
|
const url_js_1 = require("./url.js");
|
|
10
11
|
const encodings_js_1 = require("./encodings.js");
|
|
11
12
|
const base64_js_1 = require("./base64.js");
|
|
@@ -82,10 +83,20 @@ class ClientSDK {
|
|
|
82
83
|
if (!isBrowserLike) {
|
|
83
84
|
headers.set((_c = conf.uaHeader) !== null && _c !== void 0 ? _c : "user-agent", config_js_1.SDK_METADATA.userAgent);
|
|
84
85
|
}
|
|
86
|
+
let fetchOptions = options === null || options === void 0 ? void 0 : options.fetchOptions;
|
|
87
|
+
if (!(fetchOptions === null || fetchOptions === void 0 ? void 0 : fetchOptions.signal) && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
88
|
+
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
|
|
89
|
+
if (!fetchOptions) {
|
|
90
|
+
fetchOptions = { signal: timeoutSignal };
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
fetchOptions.signal = timeoutSignal;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
85
96
|
const input = this.hooks$.beforeCreateRequest(context, {
|
|
86
97
|
url: reqURL,
|
|
87
98
|
options: {
|
|
88
|
-
...
|
|
99
|
+
...fetchOptions,
|
|
89
100
|
body: (_d = conf.body) !== null && _d !== void 0 ? _d : null,
|
|
90
101
|
headers,
|
|
91
102
|
method,
|
|
@@ -93,20 +104,25 @@ class ClientSDK {
|
|
|
93
104
|
});
|
|
94
105
|
return new Request(input.url, input.options);
|
|
95
106
|
}
|
|
96
|
-
async do$(
|
|
107
|
+
async do$(request, options) {
|
|
97
108
|
const { context, errorCodes } = options;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
const retryConfig = options.retryConfig || { strategy: "none" };
|
|
110
|
+
const retryCodes = options.retryCodes || [];
|
|
111
|
+
return (0, retries_js_1.retry)(async () => {
|
|
112
|
+
const req = request.clone();
|
|
113
|
+
let response = await this.client.request(await this.hooks$.beforeRequest(context, req));
|
|
114
|
+
if ((0, http_js_1.matchStatusCode)(response, errorCodes)) {
|
|
115
|
+
const result = await this.hooks$.afterError(context, response, null);
|
|
116
|
+
if (result.error) {
|
|
117
|
+
throw result.error;
|
|
118
|
+
}
|
|
119
|
+
response = result.response || response;
|
|
103
120
|
}
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
return response;
|
|
121
|
+
else {
|
|
122
|
+
response = await this.hooks$.afterSuccess(context, response);
|
|
123
|
+
}
|
|
124
|
+
return response;
|
|
125
|
+
}, { config: retryConfig, statusCodes: retryCodes });
|
|
110
126
|
}
|
|
111
127
|
matcher() {
|
|
112
128
|
return new http_js_1.ResponseMatcher();
|
package/lib/sdks.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdks.js","sourceRoot":"","sources":["../src/lib/sdks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uCAAyE;AACzE,+CAAsF;AACtF,qCAAsC;AACtC,iDAA4C;AAC5C,2CAA6C;AAC7C,2CAA2C;
|
|
1
|
+
{"version":3,"file":"sdks.js","sourceRoot":"","sources":["../src/lib/sdks.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,uCAAyE;AACzE,+CAAsF;AACtF,6CAAkD;AAClD,qC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CAAC;IACN,CAAC;IAES,OAAO;QACb,OAAO,IAAI,yBAAe,EAAU,CAAC;IACzC,CAAC;CAMJ;AAtJD,8BAsJC"}
|
|
@@ -42,6 +42,10 @@ export type Domains = {
|
|
|
42
42
|
* Whether the domain is the primary domain for the workspace.
|
|
43
43
|
*/
|
|
44
44
|
primary?: boolean | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the domain is verified.
|
|
47
|
+
*/
|
|
48
|
+
verified?: boolean | undefined;
|
|
45
49
|
};
|
|
46
50
|
export type WorkspaceSchema = {
|
|
47
51
|
/**
|
|
@@ -201,6 +205,7 @@ export declare const Domains$inboundSchema: z.ZodType<Domains, z.ZodTypeDef, unk
|
|
|
201
205
|
export type Domains$Outbound = {
|
|
202
206
|
slug: string;
|
|
203
207
|
primary: boolean;
|
|
208
|
+
verified: boolean;
|
|
204
209
|
};
|
|
205
210
|
/** @internal */
|
|
206
211
|
export declare const Domains$outboundSchema: z.ZodType<Domains$Outbound, z.ZodTypeDef, Domains>;
|