@zapier/zapier-sdk-cli 0.26.0 → 0.26.2

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,23 @@
1
1
  # @zapier/zapier-sdk-cli
2
2
 
3
+ ## 0.26.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 642713b: Update README with more detail and more attention on fetch.
8
+ - Updated dependencies [642713b]
9
+ - @zapier/zapier-sdk@0.25.2
10
+ - @zapier/zapier-sdk-mcp@0.8.3
11
+
12
+ ## 0.26.1
13
+
14
+ ### Patch Changes
15
+
16
+ - aacaf22: Improved `fetch` to automatically set the correct `Content-Type` header based on the request body type. `FormData`, `Blob`, and other binary bodies are now handled correctly instead of being misidentified as JSON.
17
+ - Updated dependencies [aacaf22]
18
+ - @zapier/zapier-sdk@0.25.1
19
+ - @zapier/zapier-sdk-mcp@0.8.2
20
+
3
21
  ## 0.26.0
4
22
 
5
23
  ### Minor Changes
package/README.md CHANGED
@@ -51,14 +51,31 @@ npm install -D @zapier/zapier-sdk-cli
51
51
  # See all available commands
52
52
  npx zapier-sdk --help
53
53
 
54
- # Login to Zapier
54
+ # Login to Zapier.
55
55
  npx zapier-sdk login
56
56
 
57
- # List all available apps
58
- npx zapier-sdk list-apps
59
-
60
- # Generate TypeScript types for an app
61
- npx zapier-sdk add slack --types-output ./types/slack.ts
57
+ # Search from thousands of supported apps.
58
+ npx zapier-sdk list-apps --search "gmail"
59
+ # The output will show you the valid keys next to the app title like this:
60
+ # 1. Gmail (GoogleMailV2CLIAPI, gmail)
61
+
62
+ # Run any action for the app, using one of the app keys.
63
+ npx zapier-sdk run-action gmail
64
+ # This will ask you for the type of action you want to run.
65
+ # `search` or `write` are typically great for testing.
66
+ # Note that you usually need an authentication (connection) to the app to run
67
+ # the action. If you don't already have one, you can create a new one at:
68
+ # https://zapier.com/app/assets/connections
69
+
70
+ # List authentications for an app.
71
+ npx zapier-sdk list-authentications gmail
72
+ # Or only list the ones you own.
73
+ npx zapier-sdk list-authentications gmail --owner me
74
+ # Or just grab the first one.
75
+ npx zapier-sdk find-first-authentication gmail --owner me
76
+
77
+ # Make any API request to an app using your authentication (connection).
78
+ npx zapier-sdk fetch "https://gmail.googleapis.com/gmail/v1/users/me/labels" --authentication-id 123
62
79
  ```
63
80
 
64
81
  ## Global Options
@@ -430,15 +447,15 @@ Make authenticated HTTP requests to any API through Zapier's Relay service. Pass
430
447
 
431
448
  **Options:**
432
449
 
433
- | Option | Type | Required | Default | Possible Values | Description |
434
- | --------------------------- | ------------------------ | -------- | ------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------- |
435
- | `<url>` | `string, custom` | ✅ | — | — | The full URL of the API endpoint to call (proxied through Zapier's Relay service) |
436
- | `--method` | `string` | ❌ | — | `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS` | HTTP method for the request (defaults to GET) |
437
- | `--headers` | `object` | ❌ | — | — | HTTP headers to include in the request |
438
- | `--body` | `string, custom, custom` | ❌ | — | — | Request body — JSON strings are auto-detected and Content-Type is set accordingly |
439
- | `--authentication-id` | `string, number` | ❌ | — | — | Authentication ID to use for this action |
440
- | `--callback-url` | `string` | ❌ | — | — | URL to send async response to (makes request async) |
441
- | `--authentication-template` | `string` | ❌ | — | — | Optional JSON string authentication template to bypass Notary lookup |
450
+ | Option | Type | Required | Default | Possible Values | Description |
451
+ | --------------------------- | -------------------------------- | -------- | ------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
452
+ | `<url>` | `string, custom` | ✅ | — | — | The full URL of the API endpoint to call (proxied through Zapier's Relay service) |
453
+ | `--method` | `string` | ❌ | — | `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS` | HTTP method for the request (defaults to GET) |
454
+ | `--headers` | `object` | ❌ | — | — | HTTP headers to include in the request |
455
+ | `--body` | `string, custom, custom, record` | ❌ | — | — | Request body — plain objects and JSON strings are auto-detected and Content-Type is set accordingly |
456
+ | `--authentication-id` | `string, number` | ❌ | — | — | Authentication ID to use for this action |
457
+ | `--callback-url` | `string` | ❌ | — | — | URL to send async response to (makes request async) |
458
+ | `--authentication-template` | `string` | ❌ | — | — | Optional JSON string authentication template to bypass Notary lookup |
442
459
 
443
460
  **Usage:**
444
461
 
package/dist/cli.cjs CHANGED
@@ -1774,7 +1774,7 @@ var LoginSchema = zod.z.object({
1774
1774
 
1775
1775
  // package.json
1776
1776
  var package_default = {
1777
- version: "0.26.0"};
1777
+ version: "0.26.2"};
1778
1778
 
1779
1779
  // src/telemetry/builders.ts
1780
1780
  function createCliBaseEvent(context = {}) {
@@ -3055,7 +3055,7 @@ function createZapierCliSdk(options = {}) {
3055
3055
  // package.json with { type: 'json' }
3056
3056
  var package_default2 = {
3057
3057
  name: "@zapier/zapier-sdk-cli",
3058
- version: "0.26.0"};
3058
+ version: "0.26.2"};
3059
3059
  function detectPackageManager(cwd = process.cwd()) {
3060
3060
  const ua = process.env.npm_config_user_agent;
3061
3061
  if (ua) {
package/dist/cli.mjs CHANGED
@@ -1738,7 +1738,7 @@ var LoginSchema = z.object({
1738
1738
 
1739
1739
  // package.json
1740
1740
  var package_default = {
1741
- version: "0.26.0"};
1741
+ version: "0.26.2"};
1742
1742
 
1743
1743
  // src/telemetry/builders.ts
1744
1744
  function createCliBaseEvent(context = {}) {
@@ -3019,7 +3019,7 @@ function createZapierCliSdk(options = {}) {
3019
3019
  // package.json with { type: 'json' }
3020
3020
  var package_default2 = {
3021
3021
  name: "@zapier/zapier-sdk-cli",
3022
- version: "0.26.0"};
3022
+ version: "0.26.2"};
3023
3023
  function detectPackageManager(cwd = process.cwd()) {
3024
3024
  const ua = process.env.npm_config_user_agent;
3025
3025
  if (ua) {
package/dist/index.cjs CHANGED
@@ -302,7 +302,7 @@ var LoginSchema = zod.z.object({
302
302
 
303
303
  // package.json
304
304
  var package_default = {
305
- version: "0.26.0"};
305
+ version: "0.26.2"};
306
306
 
307
307
  // src/telemetry/builders.ts
308
308
  function createCliBaseEvent(context = {}) {
package/dist/index.mjs CHANGED
@@ -271,7 +271,7 @@ var LoginSchema = z.object({
271
271
 
272
272
  // package.json
273
273
  var package_default = {
274
- version: "0.26.0"};
274
+ version: "0.26.2"};
275
275
 
276
276
  // src/telemetry/builders.ts
277
277
  function createCliBaseEvent(context = {}) {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zapier/zapier-sdk-cli",
3
- "version": "0.26.0",
3
+ "version": "0.26.2",
4
4
  "description": "Command line interface for Zapier SDK",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",