@valtown/sdk 0.13.0 → 0.14.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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.14.0 (2024-07-26)
4
+
5
+ Full Changelog: [v0.13.0...v0.14.0](https://github.com/val-town/sdk/compare/v0.13.0...v0.14.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** OpenAPI spec update via Stainless API ([#217](https://github.com/val-town/sdk/issues/217)) ([48d77e6](https://github.com/val-town/sdk/commit/48d77e6fbea8b39679fe05324bc0cc9e272e656a))
10
+ * **api:** OpenAPI spec update via Stainless API ([#219](https://github.com/val-town/sdk/issues/219)) ([d0a5d4b](https://github.com/val-town/sdk/commit/d0a5d4b0efb914aecc7a1b581db7da98081f8da2))
11
+ * **api:** OpenAPI spec update via Stainless API ([#220](https://github.com/val-town/sdk/issues/220)) ([3001fd0](https://github.com/val-town/sdk/commit/3001fd03d43c6f98ee3f570b338a7b2dc953a3d2))
12
+ * **api:** OpenAPI spec update via Stainless API ([#221](https://github.com/val-town/sdk/issues/221)) ([7c250e5](https://github.com/val-town/sdk/commit/7c250e576b32b3471bc2a4601f2ddf148ac0a5ed))
13
+ * **api:** OpenAPI spec update via Stainless API ([#222](https://github.com/val-town/sdk/issues/222)) ([cdf140b](https://github.com/val-town/sdk/commit/cdf140b86963eac0e25d6346e5e1857685402cbb))
14
+ * **api:** OpenAPI spec update via Stainless API ([#223](https://github.com/val-town/sdk/issues/223)) ([c44c83a](https://github.com/val-town/sdk/commit/c44c83a6dcc4a7d40b010ba3243d919981a5f68e))
15
+ * **api:** OpenAPI spec update via Stainless API ([#224](https://github.com/val-town/sdk/issues/224)) ([a5ad406](https://github.com/val-town/sdk/commit/a5ad406b2b5a9fba6d7e729f6efa9f79452edd4a))
16
+ * **api:** OpenAPI spec update via Stainless API ([#225](https://github.com/val-town/sdk/issues/225)) ([1b29a01](https://github.com/val-town/sdk/commit/1b29a01f07a32b1b30ab1106e5df2c88ae640ede))
17
+ * **api:** OpenAPI spec update via Stainless API ([#226](https://github.com/val-town/sdk/issues/226)) ([d193e09](https://github.com/val-town/sdk/commit/d193e093a2de7163cdcb5115ab90f4ad66b4acbb))
18
+ * **api:** OpenAPI spec update via Stainless API ([#227](https://github.com/val-town/sdk/issues/227)) ([6c71712](https://github.com/val-town/sdk/commit/6c71712c19fe7c1db4e1032943415771970729bc))
19
+ * **api:** OpenAPI spec update via Stainless API ([#229](https://github.com/val-town/sdk/issues/229)) ([869da63](https://github.com/val-town/sdk/commit/869da63713041a5b272883e49aa36f1dccff912c))
20
+ * **api:** OpenAPI spec update via Stainless API ([#232](https://github.com/val-town/sdk/issues/232)) ([04d217c](https://github.com/val-town/sdk/commit/04d217c74606a153fe68cad36c50ab09621b5acc))
21
+ * **api:** OpenAPI spec update via Stainless API ([#233](https://github.com/val-town/sdk/issues/233)) ([ecb2608](https://github.com/val-town/sdk/commit/ecb2608158720029e62af14435ecbcb162fa8b52))
22
+ * **api:** OpenAPI spec update via Stainless API ([#234](https://github.com/val-town/sdk/issues/234)) ([3d38356](https://github.com/val-town/sdk/commit/3d38356bc477095664aed0756d32a2a6228b6975))
23
+ * **api:** OpenAPI spec update via Stainless API ([#235](https://github.com/val-town/sdk/issues/235)) ([430ebd6](https://github.com/val-town/sdk/commit/430ebd65684068b6d1f3bac926d3d71337dcbfc3))
24
+
25
+
26
+ ### Chores
27
+
28
+ * **docs:** fix incorrect client var names ([#236](https://github.com/val-town/sdk/issues/236)) ([ae769b9](https://github.com/val-town/sdk/commit/ae769b9f0f3ba5771d5bd7422ca1ee41b84e259e))
29
+
3
30
  ## 0.13.0 (2024-07-25)
4
31
 
5
32
  Full Changelog: [v0.12.0...v0.13.0](https://github.com/val-town/sdk/compare/v0.12.0...v0.13.0)
package/README.md CHANGED
@@ -25,7 +25,7 @@ import ValTown from '@valtown/sdk';
25
25
  const client = new ValTown();
26
26
 
27
27
  async function main() {
28
- const emailSendResponse = await valTown.emails.send();
28
+ const emailSendResponse = await client.emails.send();
29
29
 
30
30
  console.log(emailSendResponse.message);
31
31
  }
@@ -44,7 +44,7 @@ import ValTown from '@valtown/sdk';
44
44
  const client = new ValTown();
45
45
 
46
46
  async function main() {
47
- const emailSendResponse: ValTown.EmailSendResponse = await valTown.emails.send();
47
+ const emailSendResponse: ValTown.EmailSendResponse = await client.emails.send();
48
48
  }
49
49
 
50
50
  main();
@@ -61,7 +61,7 @@ a subclass of `APIError` will be thrown:
61
61
  <!-- prettier-ignore -->
62
62
  ```ts
63
63
  async function main() {
64
- const emailSendResponse = await valTown.emails.send().catch(async (err) => {
64
+ const emailSendResponse = await client.emails.send().catch(async (err) => {
65
65
  if (err instanceof ValTown.APIError) {
66
66
  console.log(err.status); // 400
67
67
  console.log(err.name); // BadRequestError
@@ -104,7 +104,7 @@ const client = new ValTown({
104
104
  });
105
105
 
106
106
  // Or, configure per-request:
107
- await valTown.emails.send({
107
+ await client.emails.send({
108
108
  maxRetries: 5,
109
109
  });
110
110
  ```
@@ -121,7 +121,7 @@ const client = new ValTown({
121
121
  });
122
122
 
123
123
  // Override per-request:
124
- await valTown.emails.send({
124
+ await client.emails.send({
125
125
  timeout: 5 * 1000,
126
126
  });
127
127
  ```
@@ -142,11 +142,11 @@ You can also use the `.withResponse()` method to get the raw `Response` along wi
142
142
  ```ts
143
143
  const client = new ValTown();
144
144
 
145
- const response = await valTown.emails.send().asResponse();
145
+ const response = await client.emails.send().asResponse();
146
146
  console.log(response.headers.get('X-My-Header'));
147
147
  console.log(response.statusText); // access the underlying Response object
148
148
 
149
- const { data: emailSendResponse, response: raw } = await valTown.emails.send().withResponse();
149
+ const { data: emailSendResponse, response: raw } = await client.emails.send().withResponse();
150
150
  console.log(raw.headers.get('X-My-Header'));
151
151
  console.log(emailSendResponse.message);
152
152
  ```
@@ -252,7 +252,7 @@ const client = new ValTown({
252
252
  });
253
253
 
254
254
  // Override per-request:
255
- await valTown.emails.send({
255
+ await client.emails.send({
256
256
  httpAgent: new http.Agent({ keepAlive: false }),
257
257
  });
258
258
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valtown/sdk",
3
- "version": "0.13.0",
3
+ "version": "0.14.0",
4
4
  "description": "The official TypeScript library for the Val Town API",
5
5
  "author": "Val Town <support@val.town>",
6
6
  "types": "./index.d.ts",
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.13.0'; // x-release-please-version
1
+ export const VERSION = '0.14.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.13.0";
1
+ export declare const VERSION = "0.14.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.13.0'; // x-release-please-version
4
+ exports.VERSION = '0.14.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.13.0'; // x-release-please-version
1
+ export const VERSION = '0.14.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map