@zavudev/sdk 0.0.9 → 0.0.14
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 +80 -104
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/examples/node_modules/.package-lock.json +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
package/README.md
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @zavudev/sdk
|
|
2
2
|
|
|
3
|
-
Developer-friendly & type-safe
|
|
3
|
+
Developer-friendly & type-safe Typescript SDK specifically catered to leverage *@zavudev/sdk* API.
|
|
4
4
|
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
<!-- Start Summary [summary] -->
|
|
8
7
|
|
|
8
|
+
<br /><br />
|
|
9
|
+
> [!IMPORTANT]
|
|
10
|
+
> This SDK is not yet ready for production use. To complete setup please follow the steps outlined in your [workspace](https://app.speakeasy.com/org/crubing/zavu). Delete this section before > publishing to a package manager.
|
|
11
|
+
|
|
12
|
+
<!-- Start Summary [summary] -->
|
|
9
13
|
## Summary
|
|
10
14
|
|
|
11
15
|
Zavu Messaging API: Unified multi-channel messaging API for Zavu.
|
|
12
16
|
|
|
13
17
|
Supported channels:
|
|
14
|
-
|
|
15
18
|
- **SMS**: Simple text messages
|
|
16
19
|
- **WhatsApp**: Rich messaging with media, buttons, lists, and templates
|
|
17
20
|
|
|
18
21
|
Design goals:
|
|
19
|
-
|
|
20
22
|
- Simple `send()` entrypoint for developers
|
|
21
23
|
- Project-level authentication via Bearer token
|
|
22
24
|
- Support for all WhatsApp message types (text, image, video, audio, document, sticker, location, contact, buttons, list, reaction, template)
|
|
@@ -25,77 +27,70 @@ Design goals:
|
|
|
25
27
|
<!-- End Summary [summary] -->
|
|
26
28
|
|
|
27
29
|
<!-- Start Table of Contents [toc] -->
|
|
28
|
-
|
|
29
30
|
## Table of Contents
|
|
30
|
-
|
|
31
31
|
<!-- $toc-max-depth=2 -->
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- [Contributions](#contributions)
|
|
32
|
+
* [@zavudev/sdk](#zavudevsdk)
|
|
33
|
+
* [SDK Installation](#sdk-installation)
|
|
34
|
+
* [Requirements](#requirements)
|
|
35
|
+
* [SDK Example Usage](#sdk-example-usage)
|
|
36
|
+
* [Authentication](#authentication)
|
|
37
|
+
* [Available Resources and Operations](#available-resources-and-operations)
|
|
38
|
+
* [Standalone functions](#standalone-functions)
|
|
39
|
+
* [Retries](#retries)
|
|
40
|
+
* [Error Handling](#error-handling)
|
|
41
|
+
* [Server Selection](#server-selection)
|
|
42
|
+
* [Custom HTTP Client](#custom-http-client)
|
|
43
|
+
* [Debugging](#debugging)
|
|
44
|
+
* [Development](#development)
|
|
45
|
+
* [Maturity](#maturity)
|
|
46
|
+
* [Contributions](#contributions)
|
|
48
47
|
|
|
49
48
|
<!-- End Table of Contents [toc] -->
|
|
50
49
|
|
|
51
50
|
<!-- Start SDK Installation [installation] -->
|
|
52
|
-
|
|
53
51
|
## SDK Installation
|
|
54
52
|
|
|
55
53
|
> [!TIP]
|
|
56
54
|
> To finish publishing your SDK to npm and others you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
|
|
57
55
|
|
|
56
|
+
|
|
58
57
|
The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.
|
|
59
58
|
|
|
60
59
|
### NPM
|
|
61
60
|
|
|
62
61
|
```bash
|
|
63
|
-
npm add
|
|
62
|
+
npm add @zavudev/sdk
|
|
64
63
|
```
|
|
65
64
|
|
|
66
65
|
### PNPM
|
|
67
66
|
|
|
68
67
|
```bash
|
|
69
|
-
pnpm add
|
|
68
|
+
pnpm add @zavudev/sdk
|
|
70
69
|
```
|
|
71
70
|
|
|
72
71
|
### Bun
|
|
73
72
|
|
|
74
73
|
```bash
|
|
75
|
-
bun add
|
|
74
|
+
bun add @zavudev/sdk
|
|
76
75
|
```
|
|
77
76
|
|
|
78
77
|
### Yarn
|
|
79
78
|
|
|
80
79
|
```bash
|
|
81
|
-
yarn add
|
|
80
|
+
yarn add @zavudev/sdk
|
|
82
81
|
```
|
|
83
82
|
|
|
84
83
|
> [!NOTE]
|
|
85
84
|
> This package is published with CommonJS and ES Modules (ESM) support.
|
|
86
|
-
|
|
87
85
|
<!-- End SDK Installation [installation] -->
|
|
88
86
|
|
|
89
87
|
<!-- Start Requirements [requirements] -->
|
|
90
|
-
|
|
91
88
|
## Requirements
|
|
92
89
|
|
|
93
90
|
For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
|
|
94
|
-
|
|
95
91
|
<!-- End Requirements [requirements] -->
|
|
96
92
|
|
|
97
93
|
<!-- Start SDK Example Usage [usage] -->
|
|
98
|
-
|
|
99
94
|
## SDK Example Usage
|
|
100
95
|
|
|
101
96
|
### Example
|
|
@@ -120,12 +115,11 @@ async function run() {
|
|
|
120
115
|
}
|
|
121
116
|
|
|
122
117
|
run();
|
|
123
|
-
```
|
|
124
118
|
|
|
119
|
+
```
|
|
125
120
|
<!-- End SDK Example Usage [usage] -->
|
|
126
121
|
|
|
127
122
|
<!-- Start Authentication [security] -->
|
|
128
|
-
|
|
129
123
|
## Authentication
|
|
130
124
|
|
|
131
125
|
### Per-Client Security Schemes
|
|
@@ -137,7 +131,6 @@ This SDK supports the following security scheme globally:
|
|
|
137
131
|
| `bearerAuth` | http | HTTP Bearer |
|
|
138
132
|
|
|
139
133
|
To authenticate with the API the `bearerAuth` parameter must be set when initializing the SDK client instance. For example:
|
|
140
|
-
|
|
141
134
|
```typescript
|
|
142
135
|
import { Zavu } from "@zavudev/sdk";
|
|
143
136
|
|
|
@@ -158,12 +151,11 @@ async function run() {
|
|
|
158
151
|
}
|
|
159
152
|
|
|
160
153
|
run();
|
|
161
|
-
```
|
|
162
154
|
|
|
155
|
+
```
|
|
163
156
|
<!-- End Authentication [security] -->
|
|
164
157
|
|
|
165
158
|
<!-- Start Available Resources and Operations [operations] -->
|
|
166
|
-
|
|
167
159
|
## Available Resources and Operations
|
|
168
160
|
|
|
169
161
|
<details open>
|
|
@@ -171,30 +163,29 @@ run();
|
|
|
171
163
|
|
|
172
164
|
### [Zavu SDK](docs/sdks/zavu/README.md)
|
|
173
165
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
166
|
+
* [sendMessage](docs/sdks/zavu/README.md#sendmessage) - Send a message
|
|
167
|
+
* [listMessages](docs/sdks/zavu/README.md#listmessages) - List messages
|
|
168
|
+
* [getMessage](docs/sdks/zavu/README.md#getmessage) - Get message by ID
|
|
169
|
+
* [sendReaction](docs/sdks/zavu/README.md#sendreaction) - Send reaction to message
|
|
170
|
+
* [listTemplates](docs/sdks/zavu/README.md#listtemplates) - List templates
|
|
171
|
+
* [createTemplate](docs/sdks/zavu/README.md#createtemplate) - Create template
|
|
172
|
+
* [getTemplate](docs/sdks/zavu/README.md#gettemplate) - Get template
|
|
173
|
+
* [deleteTemplate](docs/sdks/zavu/README.md#deletetemplate) - Delete template
|
|
174
|
+
* [listSenders](docs/sdks/zavu/README.md#listsenders) - List senders
|
|
175
|
+
* [createSender](docs/sdks/zavu/README.md#createsender) - Create sender
|
|
176
|
+
* [getSender](docs/sdks/zavu/README.md#getsender) - Get sender
|
|
177
|
+
* [updateSender](docs/sdks/zavu/README.md#updatesender) - Update sender
|
|
178
|
+
* [deleteSender](docs/sdks/zavu/README.md#deletesender) - Delete sender
|
|
179
|
+
* [listContacts](docs/sdks/zavu/README.md#listcontacts) - List contacts
|
|
180
|
+
* [getContact](docs/sdks/zavu/README.md#getcontact) - Get contact
|
|
181
|
+
* [updateContact](docs/sdks/zavu/README.md#updatecontact) - Update contact
|
|
182
|
+
* [getContactByPhone](docs/sdks/zavu/README.md#getcontactbyphone) - Get contact by phone number
|
|
183
|
+
* [introspectPhone](docs/sdks/zavu/README.md#introspectphone) - Introspect phone number
|
|
192
184
|
|
|
193
185
|
</details>
|
|
194
186
|
<!-- End Available Resources and Operations [operations] -->
|
|
195
187
|
|
|
196
188
|
<!-- Start Standalone functions [standalone-funcs] -->
|
|
197
|
-
|
|
198
189
|
## Standalone functions
|
|
199
190
|
|
|
200
191
|
All the methods listed above are available as standalone functions. These
|
|
@@ -232,13 +223,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
232
223
|
<!-- End Standalone functions [standalone-funcs] -->
|
|
233
224
|
|
|
234
225
|
<!-- Start Retries [retries] -->
|
|
235
|
-
|
|
236
226
|
## Retries
|
|
237
227
|
|
|
238
|
-
Some of the endpoints in this SDK support retries.
|
|
228
|
+
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.
|
|
239
229
|
|
|
240
230
|
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
|
|
241
|
-
|
|
242
231
|
```typescript
|
|
243
232
|
import { Zavu } from "@zavudev/sdk";
|
|
244
233
|
|
|
@@ -247,36 +236,33 @@ const zavu = new Zavu({
|
|
|
247
236
|
});
|
|
248
237
|
|
|
249
238
|
async function run() {
|
|
250
|
-
const result = await zavu.sendMessage(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
text: "Your verification code is 123456",
|
|
256
|
-
},
|
|
239
|
+
const result = await zavu.sendMessage({
|
|
240
|
+
zavuSender: "sender_12345",
|
|
241
|
+
body: {
|
|
242
|
+
to: "+56912345678",
|
|
243
|
+
text: "Your verification code is 123456",
|
|
257
244
|
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
retryConnectionErrors: false,
|
|
245
|
+
}, {
|
|
246
|
+
retries: {
|
|
247
|
+
strategy: "backoff",
|
|
248
|
+
backoff: {
|
|
249
|
+
initialInterval: 1,
|
|
250
|
+
maxInterval: 50,
|
|
251
|
+
exponent: 1.1,
|
|
252
|
+
maxElapsedTime: 100,
|
|
268
253
|
},
|
|
254
|
+
retryConnectionErrors: false,
|
|
269
255
|
},
|
|
270
|
-
);
|
|
256
|
+
});
|
|
271
257
|
|
|
272
258
|
console.log(result);
|
|
273
259
|
}
|
|
274
260
|
|
|
275
261
|
run();
|
|
262
|
+
|
|
276
263
|
```
|
|
277
264
|
|
|
278
265
|
If you'd like to override the default retry strategy for all operations that support retries, you can provide a retryConfig at SDK initialization:
|
|
279
|
-
|
|
280
266
|
```typescript
|
|
281
267
|
import { Zavu } from "@zavudev/sdk";
|
|
282
268
|
|
|
@@ -307,12 +293,11 @@ async function run() {
|
|
|
307
293
|
}
|
|
308
294
|
|
|
309
295
|
run();
|
|
310
|
-
```
|
|
311
296
|
|
|
297
|
+
```
|
|
312
298
|
<!-- End Retries [retries] -->
|
|
313
299
|
|
|
314
300
|
<!-- Start Error Handling [errors] -->
|
|
315
|
-
|
|
316
301
|
## Error Handling
|
|
317
302
|
|
|
318
303
|
[`SDKError`](./src/models/errors/sdkerror.ts) is the base class for all HTTP error responses. It has the following properties:
|
|
@@ -327,7 +312,6 @@ run();
|
|
|
327
312
|
| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
|
|
328
313
|
|
|
329
314
|
### Example
|
|
330
|
-
|
|
331
315
|
```typescript
|
|
332
316
|
import { Zavu } from "@zavudev/sdk";
|
|
333
317
|
import * as errors from "@zavudev/sdk/models/errors";
|
|
@@ -366,42 +350,38 @@ async function run() {
|
|
|
366
350
|
}
|
|
367
351
|
|
|
368
352
|
run();
|
|
353
|
+
|
|
369
354
|
```
|
|
370
355
|
|
|
371
356
|
### Error Classes
|
|
372
|
-
|
|
373
357
|
**Primary errors:**
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
- [`ErrorT`](./src/models/errors/errort.ts): Generic error.
|
|
358
|
+
* [`SDKError`](./src/models/errors/sdkerror.ts): The base class for HTTP error responses.
|
|
359
|
+
* [`ErrorT`](./src/models/errors/errort.ts): Generic error.
|
|
377
360
|
|
|
378
361
|
<details><summary>Less common errors (6)</summary>
|
|
379
362
|
|
|
380
363
|
<br />
|
|
381
364
|
|
|
382
365
|
**Network errors:**
|
|
366
|
+
* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
|
|
367
|
+
* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
|
|
368
|
+
* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
|
|
369
|
+
* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
|
|
370
|
+
* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
|
|
383
371
|
|
|
384
|
-
- [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
|
|
385
|
-
- [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
|
|
386
|
-
- [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
|
|
387
|
-
- [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
|
|
388
|
-
- [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
|
|
389
372
|
|
|
390
373
|
**Inherit from [`SDKError`](./src/models/errors/sdkerror.ts)**:
|
|
391
|
-
|
|
392
|
-
- [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
374
|
+
* [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string.
|
|
393
375
|
|
|
394
376
|
</details>
|
|
395
377
|
<!-- End Error Handling [errors] -->
|
|
396
378
|
|
|
397
379
|
<!-- Start Server Selection [server] -->
|
|
398
|
-
|
|
399
380
|
## Server Selection
|
|
400
381
|
|
|
401
382
|
### Override Server URL Per-Client
|
|
402
383
|
|
|
403
384
|
The default server can be overridden globally by passing a URL to the `serverURL: string` optional parameter when initializing the SDK client instance. For example:
|
|
404
|
-
|
|
405
385
|
```typescript
|
|
406
386
|
import { Zavu } from "@zavudev/sdk";
|
|
407
387
|
|
|
@@ -423,12 +403,11 @@ async function run() {
|
|
|
423
403
|
}
|
|
424
404
|
|
|
425
405
|
run();
|
|
426
|
-
```
|
|
427
406
|
|
|
407
|
+
```
|
|
428
408
|
<!-- End Server Selection [server] -->
|
|
429
409
|
|
|
430
410
|
<!-- Start Custom HTTP Client [http-client] -->
|
|
431
|
-
|
|
432
411
|
## Custom HTTP Client
|
|
433
412
|
|
|
434
413
|
The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native
|
|
@@ -453,12 +432,12 @@ const httpClient = new HTTPClient({
|
|
|
453
432
|
// fetcher takes a function that has the same signature as native `fetch`.
|
|
454
433
|
fetcher: (request) => {
|
|
455
434
|
return fetch(request);
|
|
456
|
-
}
|
|
435
|
+
}
|
|
457
436
|
});
|
|
458
437
|
|
|
459
438
|
httpClient.addHook("beforeRequest", (request) => {
|
|
460
439
|
const nextRequest = new Request(request, {
|
|
461
|
-
signal: request.signal || AbortSignal.timeout(5000)
|
|
440
|
+
signal: request.signal || AbortSignal.timeout(5000)
|
|
462
441
|
});
|
|
463
442
|
|
|
464
443
|
nextRequest.headers.set("x-custom-header", "custom value");
|
|
@@ -475,11 +454,9 @@ httpClient.addHook("requestError", (error, request) => {
|
|
|
475
454
|
|
|
476
455
|
const sdk = new Zavu({ httpClient: httpClient });
|
|
477
456
|
```
|
|
478
|
-
|
|
479
457
|
<!-- End Custom HTTP Client [http-client] -->
|
|
480
458
|
|
|
481
459
|
<!-- Start Debugging [debug] -->
|
|
482
|
-
|
|
483
460
|
## Debugging
|
|
484
461
|
|
|
485
462
|
You can setup your SDK to emit debug logs for SDK requests and responses.
|
|
@@ -494,7 +471,6 @@ import { Zavu } from "@zavudev/sdk";
|
|
|
494
471
|
|
|
495
472
|
const sdk = new Zavu({ debugLogger: console });
|
|
496
473
|
```
|
|
497
|
-
|
|
498
474
|
<!-- End Debugging [debug] -->
|
|
499
475
|
|
|
500
476
|
<!-- Placeholder for Future Speakeasy SDK Sections -->
|
|
@@ -509,7 +485,7 @@ looking for the latest version.
|
|
|
509
485
|
|
|
510
486
|
## Contributions
|
|
511
487
|
|
|
512
|
-
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
|
|
513
|
-
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
|
|
488
|
+
While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation.
|
|
489
|
+
We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release.
|
|
514
490
|
|
|
515
|
-
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source
|
|
491
|
+
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source=@zavudev/sdk&utm_campaign=typescript)
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.2.0";
|
|
34
|
-
readonly sdkVersion: "0.0.
|
|
34
|
+
readonly sdkVersion: "0.0.14";
|
|
35
35
|
readonly genVersion: "2.768.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.14 2.768.1 0.2.0 @zavudev/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
|
|
|
28
28
|
exports.SDK_METADATA = {
|
|
29
29
|
language: "typescript",
|
|
30
30
|
openapiDocVersion: "0.2.0",
|
|
31
|
-
sdkVersion: "0.0.
|
|
31
|
+
sdkVersion: "0.0.14",
|
|
32
32
|
genVersion: "2.768.1",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.0.14 2.768.1 0.2.0 @zavudev/sdk",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAsCH,oDAeC;AAhDD,qCAA8C;AAE9C;;GAEG;AACU,QAAA,UAAU,GAAG;IACxB,sBAAsB;CACd,CAAC;AA0BX,SAAgB,oBAAoB,CAAC,OAAmB;IACtD,IAAI,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IAElC,MAAM,M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IAAA,mBAAU,EAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAEY,QAAA,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,4DAA4D;CAC/D,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.2.0";
|
|
34
|
-
readonly sdkVersion: "0.0.
|
|
34
|
+
readonly sdkVersion: "0.0.14";
|
|
35
35
|
readonly genVersion: "2.768.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.14 2.768.1 0.2.0 @zavudev/sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -24,8 +24,8 @@ export function serverURLFromOptions(options) {
|
|
|
24
24
|
export const SDK_METADATA = {
|
|
25
25
|
language: "typescript",
|
|
26
26
|
openapiDocVersion: "0.2.0",
|
|
27
|
-
sdkVersion: "0.0.
|
|
27
|
+
sdkVersion: "0.0.14",
|
|
28
28
|
genVersion: "2.768.1",
|
|
29
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
29
|
+
userAgent: "speakeasy-sdk/typescript 0.0.14 2.768.1 0.2.0 @zavudev/sdk",
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/lib/config.ts"],"names":[],"mappings":"AAA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IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,UAAU,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,KAAK,CAAC,wBAAwB,SAAS,EAAE,CAAC,CAAC;QACvD,CAAC;QACD,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,MAAM,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE,YAAY;IACtB,iBAAiB,EAAE,OAAO;IAC1B,UAAU,EAAE,QAAQ;IACpB,UAAU,EAAE,SAAS;IACrB,SAAS,EAAE,4DAA4D;CAC/D,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "0.2.0",
|
|
61
|
-
sdkVersion: "0.0.
|
|
61
|
+
sdkVersion: "0.0.14",
|
|
62
62
|
genVersion: "2.768.1",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 0.0.14 2.768.1 0.2.0 @zavudev/sdk",
|
|
64
64
|
} as const;
|