@zavudev/sdk 0.0.9 → 0.0.15
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 +77 -106
- 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,21 @@
|
|
|
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
|
+
|
|
9
|
+
<!-- Start Summary [summary] -->
|
|
9
10
|
## Summary
|
|
10
11
|
|
|
11
12
|
Zavu Messaging API: Unified multi-channel messaging API for Zavu.
|
|
12
13
|
|
|
13
14
|
Supported channels:
|
|
14
|
-
|
|
15
15
|
- **SMS**: Simple text messages
|
|
16
16
|
- **WhatsApp**: Rich messaging with media, buttons, lists, and templates
|
|
17
17
|
|
|
18
18
|
Design goals:
|
|
19
|
-
|
|
20
19
|
- Simple `send()` entrypoint for developers
|
|
21
20
|
- Project-level authentication via Bearer token
|
|
22
21
|
- Support for all WhatsApp message types (text, image, video, audio, document, sticker, location, contact, buttons, list, reaction, template)
|
|
@@ -25,77 +24,68 @@ Design goals:
|
|
|
25
24
|
<!-- End Summary [summary] -->
|
|
26
25
|
|
|
27
26
|
<!-- Start Table of Contents [toc] -->
|
|
28
|
-
|
|
29
27
|
## Table of Contents
|
|
30
|
-
|
|
31
28
|
<!-- $toc-max-depth=2 -->
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- [Contributions](#contributions)
|
|
29
|
+
* [@zavudev/sdk](#zavudevsdk)
|
|
30
|
+
* [SDK Installation](#sdk-installation)
|
|
31
|
+
* [Requirements](#requirements)
|
|
32
|
+
* [SDK Example Usage](#sdk-example-usage)
|
|
33
|
+
* [Authentication](#authentication)
|
|
34
|
+
* [Available Resources and Operations](#available-resources-and-operations)
|
|
35
|
+
* [Standalone functions](#standalone-functions)
|
|
36
|
+
* [Retries](#retries)
|
|
37
|
+
* [Error Handling](#error-handling)
|
|
38
|
+
* [Server Selection](#server-selection)
|
|
39
|
+
* [Custom HTTP Client](#custom-http-client)
|
|
40
|
+
* [Debugging](#debugging)
|
|
41
|
+
* [Development](#development)
|
|
42
|
+
* [Maturity](#maturity)
|
|
43
|
+
* [Contributions](#contributions)
|
|
48
44
|
|
|
49
45
|
<!-- End Table of Contents [toc] -->
|
|
50
46
|
|
|
51
47
|
<!-- Start SDK Installation [installation] -->
|
|
52
|
-
|
|
53
48
|
## SDK Installation
|
|
54
49
|
|
|
55
|
-
|
|
56
|
-
> 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).
|
|
50
|
+
|
|
57
51
|
|
|
58
52
|
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
53
|
|
|
60
54
|
### NPM
|
|
61
55
|
|
|
62
56
|
```bash
|
|
63
|
-
npm add
|
|
57
|
+
npm add @zavudev/sdk
|
|
64
58
|
```
|
|
65
59
|
|
|
66
60
|
### PNPM
|
|
67
61
|
|
|
68
62
|
```bash
|
|
69
|
-
pnpm add
|
|
63
|
+
pnpm add @zavudev/sdk
|
|
70
64
|
```
|
|
71
65
|
|
|
72
66
|
### Bun
|
|
73
67
|
|
|
74
68
|
```bash
|
|
75
|
-
bun add
|
|
69
|
+
bun add @zavudev/sdk
|
|
76
70
|
```
|
|
77
71
|
|
|
78
72
|
### Yarn
|
|
79
73
|
|
|
80
74
|
```bash
|
|
81
|
-
yarn add
|
|
75
|
+
yarn add @zavudev/sdk
|
|
82
76
|
```
|
|
83
77
|
|
|
84
78
|
> [!NOTE]
|
|
85
79
|
> This package is published with CommonJS and ES Modules (ESM) support.
|
|
86
|
-
|
|
87
80
|
<!-- End SDK Installation [installation] -->
|
|
88
81
|
|
|
89
82
|
<!-- Start Requirements [requirements] -->
|
|
90
|
-
|
|
91
83
|
## Requirements
|
|
92
84
|
|
|
93
85
|
For supported JavaScript runtimes, please consult [RUNTIMES.md](RUNTIMES.md).
|
|
94
|
-
|
|
95
86
|
<!-- End Requirements [requirements] -->
|
|
96
87
|
|
|
97
88
|
<!-- Start SDK Example Usage [usage] -->
|
|
98
|
-
|
|
99
89
|
## SDK Example Usage
|
|
100
90
|
|
|
101
91
|
### Example
|
|
@@ -120,12 +110,11 @@ async function run() {
|
|
|
120
110
|
}
|
|
121
111
|
|
|
122
112
|
run();
|
|
123
|
-
```
|
|
124
113
|
|
|
114
|
+
```
|
|
125
115
|
<!-- End SDK Example Usage [usage] -->
|
|
126
116
|
|
|
127
117
|
<!-- Start Authentication [security] -->
|
|
128
|
-
|
|
129
118
|
## Authentication
|
|
130
119
|
|
|
131
120
|
### Per-Client Security Schemes
|
|
@@ -137,7 +126,6 @@ This SDK supports the following security scheme globally:
|
|
|
137
126
|
| `bearerAuth` | http | HTTP Bearer |
|
|
138
127
|
|
|
139
128
|
To authenticate with the API the `bearerAuth` parameter must be set when initializing the SDK client instance. For example:
|
|
140
|
-
|
|
141
129
|
```typescript
|
|
142
130
|
import { Zavu } from "@zavudev/sdk";
|
|
143
131
|
|
|
@@ -158,12 +146,11 @@ async function run() {
|
|
|
158
146
|
}
|
|
159
147
|
|
|
160
148
|
run();
|
|
161
|
-
```
|
|
162
149
|
|
|
150
|
+
```
|
|
163
151
|
<!-- End Authentication [security] -->
|
|
164
152
|
|
|
165
153
|
<!-- Start Available Resources and Operations [operations] -->
|
|
166
|
-
|
|
167
154
|
## Available Resources and Operations
|
|
168
155
|
|
|
169
156
|
<details open>
|
|
@@ -171,30 +158,29 @@ run();
|
|
|
171
158
|
|
|
172
159
|
### [Zavu SDK](docs/sdks/zavu/README.md)
|
|
173
160
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
161
|
+
* [sendMessage](docs/sdks/zavu/README.md#sendmessage) - Send a message
|
|
162
|
+
* [listMessages](docs/sdks/zavu/README.md#listmessages) - List messages
|
|
163
|
+
* [getMessage](docs/sdks/zavu/README.md#getmessage) - Get message by ID
|
|
164
|
+
* [sendReaction](docs/sdks/zavu/README.md#sendreaction) - Send reaction to message
|
|
165
|
+
* [listTemplates](docs/sdks/zavu/README.md#listtemplates) - List templates
|
|
166
|
+
* [createTemplate](docs/sdks/zavu/README.md#createtemplate) - Create template
|
|
167
|
+
* [getTemplate](docs/sdks/zavu/README.md#gettemplate) - Get template
|
|
168
|
+
* [deleteTemplate](docs/sdks/zavu/README.md#deletetemplate) - Delete template
|
|
169
|
+
* [listSenders](docs/sdks/zavu/README.md#listsenders) - List senders
|
|
170
|
+
* [createSender](docs/sdks/zavu/README.md#createsender) - Create sender
|
|
171
|
+
* [getSender](docs/sdks/zavu/README.md#getsender) - Get sender
|
|
172
|
+
* [updateSender](docs/sdks/zavu/README.md#updatesender) - Update sender
|
|
173
|
+
* [deleteSender](docs/sdks/zavu/README.md#deletesender) - Delete sender
|
|
174
|
+
* [listContacts](docs/sdks/zavu/README.md#listcontacts) - List contacts
|
|
175
|
+
* [getContact](docs/sdks/zavu/README.md#getcontact) - Get contact
|
|
176
|
+
* [updateContact](docs/sdks/zavu/README.md#updatecontact) - Update contact
|
|
177
|
+
* [getContactByPhone](docs/sdks/zavu/README.md#getcontactbyphone) - Get contact by phone number
|
|
178
|
+
* [introspectPhone](docs/sdks/zavu/README.md#introspectphone) - Introspect phone number
|
|
192
179
|
|
|
193
180
|
</details>
|
|
194
181
|
<!-- End Available Resources and Operations [operations] -->
|
|
195
182
|
|
|
196
183
|
<!-- Start Standalone functions [standalone-funcs] -->
|
|
197
|
-
|
|
198
184
|
## Standalone functions
|
|
199
185
|
|
|
200
186
|
All the methods listed above are available as standalone functions. These
|
|
@@ -232,13 +218,11 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
232
218
|
<!-- End Standalone functions [standalone-funcs] -->
|
|
233
219
|
|
|
234
220
|
<!-- Start Retries [retries] -->
|
|
235
|
-
|
|
236
221
|
## Retries
|
|
237
222
|
|
|
238
|
-
Some of the endpoints in this SDK support retries.
|
|
223
|
+
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
224
|
|
|
240
225
|
To change the default retry strategy for a single API call, simply provide a retryConfig object to the call:
|
|
241
|
-
|
|
242
226
|
```typescript
|
|
243
227
|
import { Zavu } from "@zavudev/sdk";
|
|
244
228
|
|
|
@@ -247,36 +231,33 @@ const zavu = new Zavu({
|
|
|
247
231
|
});
|
|
248
232
|
|
|
249
233
|
async function run() {
|
|
250
|
-
const result = await zavu.sendMessage(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
text: "Your verification code is 123456",
|
|
256
|
-
},
|
|
234
|
+
const result = await zavu.sendMessage({
|
|
235
|
+
zavuSender: "sender_12345",
|
|
236
|
+
body: {
|
|
237
|
+
to: "+56912345678",
|
|
238
|
+
text: "Your verification code is 123456",
|
|
257
239
|
},
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
retryConnectionErrors: false,
|
|
240
|
+
}, {
|
|
241
|
+
retries: {
|
|
242
|
+
strategy: "backoff",
|
|
243
|
+
backoff: {
|
|
244
|
+
initialInterval: 1,
|
|
245
|
+
maxInterval: 50,
|
|
246
|
+
exponent: 1.1,
|
|
247
|
+
maxElapsedTime: 100,
|
|
268
248
|
},
|
|
249
|
+
retryConnectionErrors: false,
|
|
269
250
|
},
|
|
270
|
-
);
|
|
251
|
+
});
|
|
271
252
|
|
|
272
253
|
console.log(result);
|
|
273
254
|
}
|
|
274
255
|
|
|
275
256
|
run();
|
|
257
|
+
|
|
276
258
|
```
|
|
277
259
|
|
|
278
260
|
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
261
|
```typescript
|
|
281
262
|
import { Zavu } from "@zavudev/sdk";
|
|
282
263
|
|
|
@@ -307,12 +288,11 @@ async function run() {
|
|
|
307
288
|
}
|
|
308
289
|
|
|
309
290
|
run();
|
|
310
|
-
```
|
|
311
291
|
|
|
292
|
+
```
|
|
312
293
|
<!-- End Retries [retries] -->
|
|
313
294
|
|
|
314
295
|
<!-- Start Error Handling [errors] -->
|
|
315
|
-
|
|
316
296
|
## Error Handling
|
|
317
297
|
|
|
318
298
|
[`SDKError`](./src/models/errors/sdkerror.ts) is the base class for all HTTP error responses. It has the following properties:
|
|
@@ -327,7 +307,6 @@ run();
|
|
|
327
307
|
| `error.data$` | | Optional. Some errors may contain structured data. [See Error Classes](#error-classes). |
|
|
328
308
|
|
|
329
309
|
### Example
|
|
330
|
-
|
|
331
310
|
```typescript
|
|
332
311
|
import { Zavu } from "@zavudev/sdk";
|
|
333
312
|
import * as errors from "@zavudev/sdk/models/errors";
|
|
@@ -366,42 +345,38 @@ async function run() {
|
|
|
366
345
|
}
|
|
367
346
|
|
|
368
347
|
run();
|
|
348
|
+
|
|
369
349
|
```
|
|
370
350
|
|
|
371
351
|
### Error Classes
|
|
372
|
-
|
|
373
352
|
**Primary errors:**
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
- [`ErrorT`](./src/models/errors/errort.ts): Generic error.
|
|
353
|
+
* [`SDKError`](./src/models/errors/sdkerror.ts): The base class for HTTP error responses.
|
|
354
|
+
* [`ErrorT`](./src/models/errors/errort.ts): Generic error.
|
|
377
355
|
|
|
378
356
|
<details><summary>Less common errors (6)</summary>
|
|
379
357
|
|
|
380
358
|
<br />
|
|
381
359
|
|
|
382
360
|
**Network errors:**
|
|
361
|
+
* [`ConnectionError`](./src/models/errors/httpclienterrors.ts): HTTP client was unable to make a request to a server.
|
|
362
|
+
* [`RequestTimeoutError`](./src/models/errors/httpclienterrors.ts): HTTP request timed out due to an AbortSignal signal.
|
|
363
|
+
* [`RequestAbortedError`](./src/models/errors/httpclienterrors.ts): HTTP request was aborted by the client.
|
|
364
|
+
* [`InvalidRequestError`](./src/models/errors/httpclienterrors.ts): Any input used to create a request is invalid.
|
|
365
|
+
* [`UnexpectedClientError`](./src/models/errors/httpclienterrors.ts): Unrecognised or unexpected error.
|
|
383
366
|
|
|
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
367
|
|
|
390
368
|
**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.
|
|
369
|
+
* [`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
370
|
|
|
394
371
|
</details>
|
|
395
372
|
<!-- End Error Handling [errors] -->
|
|
396
373
|
|
|
397
374
|
<!-- Start Server Selection [server] -->
|
|
398
|
-
|
|
399
375
|
## Server Selection
|
|
400
376
|
|
|
401
377
|
### Override Server URL Per-Client
|
|
402
378
|
|
|
403
379
|
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
380
|
```typescript
|
|
406
381
|
import { Zavu } from "@zavudev/sdk";
|
|
407
382
|
|
|
@@ -423,12 +398,11 @@ async function run() {
|
|
|
423
398
|
}
|
|
424
399
|
|
|
425
400
|
run();
|
|
426
|
-
```
|
|
427
401
|
|
|
402
|
+
```
|
|
428
403
|
<!-- End Server Selection [server] -->
|
|
429
404
|
|
|
430
405
|
<!-- Start Custom HTTP Client [http-client] -->
|
|
431
|
-
|
|
432
406
|
## Custom HTTP Client
|
|
433
407
|
|
|
434
408
|
The TypeScript SDK makes API calls using an `HTTPClient` that wraps the native
|
|
@@ -453,12 +427,12 @@ const httpClient = new HTTPClient({
|
|
|
453
427
|
// fetcher takes a function that has the same signature as native `fetch`.
|
|
454
428
|
fetcher: (request) => {
|
|
455
429
|
return fetch(request);
|
|
456
|
-
}
|
|
430
|
+
}
|
|
457
431
|
});
|
|
458
432
|
|
|
459
433
|
httpClient.addHook("beforeRequest", (request) => {
|
|
460
434
|
const nextRequest = new Request(request, {
|
|
461
|
-
signal: request.signal || AbortSignal.timeout(5000)
|
|
435
|
+
signal: request.signal || AbortSignal.timeout(5000)
|
|
462
436
|
});
|
|
463
437
|
|
|
464
438
|
nextRequest.headers.set("x-custom-header", "custom value");
|
|
@@ -475,11 +449,9 @@ httpClient.addHook("requestError", (error, request) => {
|
|
|
475
449
|
|
|
476
450
|
const sdk = new Zavu({ httpClient: httpClient });
|
|
477
451
|
```
|
|
478
|
-
|
|
479
452
|
<!-- End Custom HTTP Client [http-client] -->
|
|
480
453
|
|
|
481
454
|
<!-- Start Debugging [debug] -->
|
|
482
|
-
|
|
483
455
|
## Debugging
|
|
484
456
|
|
|
485
457
|
You can setup your SDK to emit debug logs for SDK requests and responses.
|
|
@@ -494,7 +466,6 @@ import { Zavu } from "@zavudev/sdk";
|
|
|
494
466
|
|
|
495
467
|
const sdk = new Zavu({ debugLogger: console });
|
|
496
468
|
```
|
|
497
|
-
|
|
498
469
|
<!-- End Debugging [debug] -->
|
|
499
470
|
|
|
500
471
|
<!-- Placeholder for Future Speakeasy SDK Sections -->
|
|
@@ -509,7 +480,7 @@ looking for the latest version.
|
|
|
509
480
|
|
|
510
481
|
## Contributions
|
|
511
482
|
|
|
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.
|
|
483
|
+
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.
|
|
484
|
+
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
485
|
|
|
515
|
-
### SDK Created by [Speakeasy](https://www.speakeasy.com/?utm_source
|
|
486
|
+
### 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.15";
|
|
35
35
|
readonly genVersion: "2.768.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.15 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.15",
|
|
32
32
|
genVersion: "2.768.1",
|
|
33
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
33
|
+
userAgent: "speakeasy-sdk/typescript 0.0.15 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,MAAM,GAAW,EAAE,CAAC;IAE1B,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,CAAC,CAAC;QACzC,IAAI,SAAS,GAAG,CAAC,IAAI,SAA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,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.15";
|
|
35
35
|
readonly genVersion: "2.768.1";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.0.15 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.15",
|
|
28
28
|
genVersion: "2.768.1",
|
|
29
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
29
|
+
userAgent: "speakeasy-sdk/typescript 0.0.15 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":"AAAA;;GAEG;AAKH,OAAO,EAAU,UAAU,EAAE,MAAM,UAAU,CAAC;AAE9C;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,sBAAsB;CACd,CAAC;AA0BX,MAAM,UAAU,oBAAoB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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.15",
|
|
62
62
|
genVersion: "2.768.1",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 0.0.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 0.0.15 2.768.1 0.2.0 @zavudev/sdk",
|
|
64
64
|
} as const;
|