@zapier/zapier-sdk 0.101.1 → 0.102.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 +22 -0
- package/README.md +9 -9
- package/dist/{chunk-N77DT65A.mjs → chunk-SAKWJ4RS.mjs} +57 -5045
- package/dist/{chunk-2FA5PBZ2.cjs → chunk-V4FAEYKU.cjs} +444 -5290
- package/dist/experimental.cjs +392 -393
- package/dist/experimental.d.mts +431 -429
- package/dist/experimental.d.ts +431 -429
- package/dist/experimental.mjs +3 -4
- package/dist/{index-BL4Djdpe.d.mts → index-DmQUHMSz.d.mts} +583 -4443
- package/dist/{index-BL4Djdpe.d.ts → index-DmQUHMSz.d.ts} +583 -4443
- package/dist/index.cjs +277 -277
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.102.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 52b672a: `@zapier/zapier-sdk` now installs `@zapier/kitcore` as a regular dependency instead of bundling a copy of it into its own build. Package managers pull it in automatically, so installs and imports keep working unchanged.
|
|
8
|
+
|
|
9
|
+
Three things this affects:
|
|
10
|
+
- Plugin, resolver, and formatter authors can import `definePlugin`, `defineMethod`, `createSdk`, and the rest from `@zapier/kitcore` directly, and those names stay re-exported from `@zapier/zapier-sdk`. To import it directly, add `@zapier/kitcore` to your own dependencies at the version `@zapier/zapier-sdk` depends on, because pnpm and Yarn PnP won't resolve an undeclared package, and a different version resolves to a second copy. Given a single resolved copy, the two import paths are the same module; across a duplicate install or a CJS/ESM split they aren't, so keep using the brand-based guards, `isCoreError` and `isCoreSignal`, for checks that have to survive that.
|
|
11
|
+
- If you **publish** a package that exports a plugin, its declarations decide whether you need `@zapier/kitcore` in your own dependencies. Left to inference, a `define*` result's type resolves to where kitcore declares it, so your published types name `@zapier/kitcore` and it has to be installable for anyone consuming them. Annotating the export with `MethodPlugin` and `LeafSummary` from `@zapier/zapier-sdk` keeps the reference on the SDK instead, and no kitcore dependency is required. Calling SDK methods, using its schemas, or building plugins you don't publish types for needs nothing either way.
|
|
12
|
+
- Browser bundlers pick up the `node:async_hooks` stub from `@zapier/kitcore`'s own `browser` field rather than `@zapier/zapier-sdk`'s. A bundler config that hand-aliased that import through `@zapier/zapier-sdk` may need updating.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [52b672a]
|
|
17
|
+
- @zapier/kitcore@0.17.1
|
|
18
|
+
|
|
19
|
+
## 0.101.2
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 6bfea6d: Clarified that `pageSize` on `listConnections`, `listAuthentications`, and `listApps` may be capped by the upstream API — values above its limit are rejected rather than forwarded unbounded.
|
|
24
|
+
|
|
3
25
|
## 0.101.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1021,14 +1021,14 @@ List all available apps with optional filtering
|
|
|
1021
1021
|
|
|
1022
1022
|
**Parameters:**
|
|
1023
1023
|
|
|
1024
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
1025
|
-
| -------------- | -------- | -------- | ------- | --------------- |
|
|
1026
|
-
| `options` | `object` | ✅ | — | — |
|
|
1027
|
-
| ↳ `search` | `string` | ❌ | — | — | Search term to filter apps by name
|
|
1028
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of apps per page
|
|
1029
|
-
| ↳ `apps` | `array` | ❌ | — | — | Filter apps by app keys (e.g., 'SlackCLIAPI' or slug like 'github')
|
|
1030
|
-
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
1031
|
-
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from
|
|
1024
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
1025
|
+
| -------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------------------- |
|
|
1026
|
+
| `options` | `object` | ✅ | — | — | |
|
|
1027
|
+
| ↳ `search` | `string` | ❌ | — | — | Search term to filter apps by name |
|
|
1028
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of apps per page. The upstream API may cap this and reject values above its limit. |
|
|
1029
|
+
| ↳ `apps` | `array` | ❌ | — | — | Filter apps by app keys (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
1030
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
1031
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
1032
1032
|
|
|
1033
1033
|
**Returns:** `Promise<PaginatedResult<AppItem>>`
|
|
1034
1034
|
|
|
@@ -2592,7 +2592,7 @@ List available connections with optional filtering
|
|
|
2592
2592
|
| ↳ `account` | `string` | ❌ | — | — | Account to filter by |
|
|
2593
2593
|
| ↳ `includeShared` | `boolean` | ❌ | — | — | Include connections shared with you. By default, only your own connections are returned (owner=me). Set to true to also include shared connections. |
|
|
2594
2594
|
| ↳ `status` | `string` | ❌ | — | `active`, `expired`, `all` | Filter connections by expiry: 'active' (default) returns only non-expired connections, 'expired' only expired ones, and 'all' returns both. |
|
|
2595
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of connections per page
|
|
2595
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of connections per page. The upstream API may cap this and reject values above its limit. |
|
|
2596
2596
|
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
2597
2597
|
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
2598
2598
|
|