@zapier/zapier-sdk 0.12.1 → 0.13.1
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 +12 -0
- package/README.md +172 -84
- package/dist/api/schemas.d.ts +10 -865
- package/dist/api/schemas.d.ts.map +1 -1
- package/dist/api/schemas.js +0 -6
- package/dist/index.cjs +58 -41
- package/dist/index.d.mts +69 -427
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +58 -41
- package/dist/plugins/apps/schemas.d.ts +9 -1
- package/dist/plugins/apps/schemas.d.ts.map +1 -1
- package/dist/plugins/findFirstAuthentication/schemas.js +1 -1
- package/dist/plugins/findUniqueAuthentication/schemas.js +1 -1
- package/dist/plugins/getApp/index.test.js +58 -6
- package/dist/plugins/getApp/schemas.js +1 -1
- package/dist/plugins/getAuthentication/index.test.js +1 -1
- package/dist/plugins/listActions/index.d.ts +1 -0
- package/dist/plugins/listActions/index.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.d.ts +3 -0
- package/dist/plugins/listActions/schemas.d.ts.map +1 -1
- package/dist/plugins/listActions/schemas.js +2 -1
- package/dist/plugins/listApps/index.d.ts +1 -0
- package/dist/plugins/listApps/index.d.ts.map +1 -1
- package/dist/plugins/listApps/index.js +18 -10
- package/dist/plugins/listApps/schemas.d.ts +3 -0
- package/dist/plugins/listApps/schemas.d.ts.map +1 -1
- package/dist/plugins/listApps/schemas.js +1 -0
- package/dist/plugins/listAuthentications/index.d.ts +1 -0
- package/dist/plugins/listAuthentications/index.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.d.ts +3 -0
- package/dist/plugins/listAuthentications/schemas.d.ts.map +1 -1
- package/dist/plugins/listAuthentications/schemas.js +2 -1
- package/dist/plugins/listInputFieldChoices/index.d.ts +1 -0
- package/dist/plugins/listInputFieldChoices/index.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.d.ts +3 -0
- package/dist/plugins/listInputFieldChoices/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFieldChoices/schemas.js +1 -0
- package/dist/plugins/listInputFields/index.d.ts +1 -0
- package/dist/plugins/listInputFields/index.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.d.ts +3 -0
- package/dist/plugins/listInputFields/schemas.d.ts.map +1 -1
- package/dist/plugins/listInputFields/schemas.js +1 -0
- package/dist/plugins/runAction/index.d.ts +1 -0
- package/dist/plugins/runAction/index.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.d.ts +3 -0
- package/dist/plugins/runAction/schemas.d.ts.map +1 -1
- package/dist/plugins/runAction/schemas.js +1 -0
- package/dist/schemas/Action.d.ts +4 -206
- package/dist/schemas/Action.d.ts.map +1 -1
- package/dist/schemas/Action.js +3 -2
- package/dist/schemas/App.d.ts.map +1 -1
- package/dist/schemas/App.js +1 -0
- package/dist/schemas/Auth.d.ts +10 -10
- package/dist/schemas/Auth.js +1 -1
- package/dist/types/properties.d.ts.map +1 -1
- package/dist/types/properties.js +4 -1
- package/dist/utils/domain-utils.d.ts +2 -2
- package/dist/utils/domain-utils.d.ts.map +1 -1
- package/dist/utils/domain-utils.js +19 -8
- package/dist/utils/schema-utils.d.ts +1 -0
- package/dist/utils/schema-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/schemas.ts +0 -6
- package/src/index.ts +1 -0
- package/src/plugins/apps/schemas.ts +7 -1
- package/src/plugins/findFirstAuthentication/schemas.ts +1 -1
- package/src/plugins/findUniqueAuthentication/schemas.ts +1 -1
- package/src/plugins/getApp/index.test.ts +83 -31
- package/src/plugins/getApp/schemas.ts +1 -1
- package/src/plugins/getAuthentication/index.test.ts +1 -1
- package/src/plugins/listActions/index.ts +1 -0
- package/src/plugins/listActions/schemas.ts +2 -1
- package/src/plugins/listApps/index.ts +23 -11
- package/src/plugins/listApps/schemas.ts +1 -0
- package/src/plugins/listAuthentications/index.ts +1 -0
- package/src/plugins/listAuthentications/schemas.ts +2 -1
- package/src/plugins/listInputFieldChoices/index.ts +1 -0
- package/src/plugins/listInputFieldChoices/schemas.ts +1 -0
- package/src/plugins/listInputFields/index.ts +1 -0
- package/src/plugins/listInputFields/schemas.ts +1 -0
- package/src/plugins/runAction/index.ts +4 -1
- package/src/plugins/runAction/schemas.ts +1 -0
- package/src/schemas/Action.ts +3 -2
- package/src/schemas/App.ts +1 -0
- package/src/schemas/Auth.ts +1 -1
- package/src/types/properties.ts +4 -1
- package/src/utils/domain-utils.ts +22 -9
- package/src/utils/schema-utils.ts +1 -0
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @zapier/zapier-sdk
|
|
2
2
|
|
|
3
|
+
## 0.13.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a607e3a: Fixes a bug where listApps would return all apps if no appKeys were resolved to app locators. This in turn fixes the `add` command hanging when using only invalid app keys (since it would try to add all apps), and it fixes getApp which returned the first app of all apps for an invalid slug, since it just calls to listApps.
|
|
8
|
+
|
|
9
|
+
## 0.13.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- 53ad336: Tweak list-apps output. Hint at slug for appKey parameters. Fix type gen for new field format. Fix action normalization.
|
|
14
|
+
|
|
3
15
|
## 0.12.1
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -30,9 +30,14 @@
|
|
|
30
30
|
## Installation
|
|
31
31
|
|
|
32
32
|
```bash
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
# If starting a new project:
|
|
34
|
+
cd your-project-dir
|
|
35
|
+
npm init -y
|
|
35
36
|
npx tsc --init
|
|
37
|
+
# Also, set `"type": "module"` in your package.json for the code examples below.
|
|
38
|
+
|
|
39
|
+
npm install @zapier/zapier-sdk
|
|
40
|
+
npm install -D @zapier/zapier-sdk-cli @types/node typescript
|
|
36
41
|
```
|
|
37
42
|
|
|
38
43
|
## Quick Start
|
|
@@ -41,15 +46,15 @@ npx tsc --init
|
|
|
41
46
|
# Authenticates through your browser, automatically handling token management
|
|
42
47
|
npx zapier-sdk login
|
|
43
48
|
|
|
44
|
-
# Generate TypeScript types for
|
|
45
|
-
|
|
46
|
-
# To use these types, ensure they are added to your `tsconfig.json` file.
|
|
49
|
+
# Generate TypeScript types for actions and fields of any apps you want to use.
|
|
50
|
+
npx zapier-sdk add slack github trello
|
|
47
51
|
|
|
48
|
-
#
|
|
49
|
-
|
|
52
|
+
# By default, types will be generated inside your `src` or `lib` folder if you
|
|
53
|
+
# have one or otherwise the root folder. Make sure your `tsconfig.json` file
|
|
54
|
+
# includes the generated type files.
|
|
50
55
|
|
|
51
|
-
#
|
|
52
|
-
npx zapier-sdk add slack github trello
|
|
56
|
+
# Alternatively, you can specify a custom output directory.
|
|
57
|
+
npx zapier-sdk add slack github trello --types-output ./types
|
|
53
58
|
```
|
|
54
59
|
|
|
55
60
|
```typescript
|
|
@@ -65,22 +70,78 @@ const zapier = createZapierSdk();
|
|
|
65
70
|
// });
|
|
66
71
|
|
|
67
72
|
// ######## Access Apps ########
|
|
68
|
-
|
|
69
|
-
const
|
|
73
|
+
// List methods return a promise for a page with {data, nextCursor}.
|
|
74
|
+
const { data: firstPageApps, nextCursor } = await zapier.listApps();
|
|
75
|
+
// Use the cursor to get the next page:
|
|
76
|
+
const { data: secondPageApps } = await zapier.listApps({ cursor: nextCursor });
|
|
77
|
+
|
|
78
|
+
console.log({
|
|
79
|
+
firstPageApps,
|
|
80
|
+
secondPageApps,
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
// List methods also return an iterator for all pages.
|
|
84
|
+
// Be careful with lots of pages, note the `search` to filter.
|
|
85
|
+
for await (const page of zapier.listApps({ search: "slack" })) {
|
|
86
|
+
const { data: apps } = page;
|
|
87
|
+
console.log({
|
|
88
|
+
apps,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Use `.items()` to iterate over all items of all pages:
|
|
93
|
+
// Again, be careful with lots of items. Note the `maxItems` to limit the total items.
|
|
94
|
+
for await (const app of zapier.listApps({ maxItems: 100 }).items()) {
|
|
95
|
+
console.log({
|
|
96
|
+
app,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// You can collect all results, but this could take a while for long lists!
|
|
101
|
+
const allApps = await Array.fromAsync(
|
|
102
|
+
zapier.listApps({ maxItems: 100 }).items(),
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
console.log({
|
|
106
|
+
allApps,
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// The item methods return a promise for a single item, wrapped with {data}.
|
|
110
|
+
// This is just to give us room to add metadata in the future.
|
|
111
|
+
const { data: app } = await zapier.getApp({ appKey: "slack" });
|
|
112
|
+
|
|
113
|
+
console.log({
|
|
114
|
+
app,
|
|
115
|
+
});
|
|
70
116
|
|
|
71
117
|
// ######## Authentication Usage ########
|
|
72
|
-
const myAuths = await zapier.listAuthentications({
|
|
73
|
-
appKey: "
|
|
118
|
+
const { data: myAuths } = await zapier.listAuthentications({
|
|
119
|
+
appKey: "slack",
|
|
74
120
|
owner: "me",
|
|
75
121
|
});
|
|
76
122
|
|
|
123
|
+
console.log({
|
|
124
|
+
myAuths,
|
|
125
|
+
});
|
|
126
|
+
|
|
77
127
|
// ######## Find Actions ########
|
|
78
128
|
// Option 1: List actions
|
|
79
|
-
|
|
129
|
+
// Remember, this is just the first page which may not include them all!
|
|
130
|
+
// See `.items()` usage above, which can be used to make sure you get all actions.
|
|
131
|
+
const { data: actions } = await zapier.listActions({ appKey: "slack" });
|
|
132
|
+
|
|
133
|
+
console.log({
|
|
134
|
+
actions,
|
|
135
|
+
});
|
|
136
|
+
|
|
80
137
|
const singleAction = await zapier.getAction({
|
|
81
|
-
appKey: "
|
|
82
|
-
actionType: actions
|
|
83
|
-
actionKey: actions
|
|
138
|
+
appKey: "slack",
|
|
139
|
+
actionType: actions[0].action_type,
|
|
140
|
+
actionKey: actions[0].key,
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
console.log({
|
|
144
|
+
singleAction,
|
|
84
145
|
});
|
|
85
146
|
|
|
86
147
|
// Option 2: Access actions via the `apps` proxy
|
|
@@ -91,25 +152,46 @@ const singleAction = await zapier.getAction({
|
|
|
91
152
|
|
|
92
153
|
// ######## Run Actions ########
|
|
93
154
|
// Option 1:
|
|
94
|
-
const
|
|
95
|
-
appKey: "
|
|
155
|
+
const { data: channels } = await zapier.runAction({
|
|
156
|
+
appKey: "slack",
|
|
96
157
|
actionType: "read",
|
|
97
158
|
actionKey: "channels",
|
|
98
|
-
authenticationId: myAuths
|
|
159
|
+
authenticationId: myAuths[0].id,
|
|
160
|
+
});
|
|
161
|
+
|
|
162
|
+
console.log({
|
|
163
|
+
channels,
|
|
99
164
|
});
|
|
100
165
|
|
|
166
|
+
const { data: profile } = await zapier.getProfile();
|
|
167
|
+
|
|
101
168
|
// Option 2:
|
|
102
|
-
|
|
103
|
-
|
|
169
|
+
// Create an app binding to your authentication.
|
|
170
|
+
const mySlack = zapier.apps.slack({
|
|
171
|
+
authenticationId: myAuths[0].id,
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
// Use your app binding to run the action.
|
|
175
|
+
const { data: users } = await mySlack.search.user_by_email({
|
|
176
|
+
inputs: {
|
|
177
|
+
email: profile.email,
|
|
178
|
+
},
|
|
104
179
|
});
|
|
105
180
|
|
|
106
181
|
console.log({
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
182
|
+
users,
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
// You can also skip the app binding and pass the auth into the action.
|
|
186
|
+
const { data: sameUsers } = await zapier.apps.slack.search.user_by_email({
|
|
187
|
+
inputs: {
|
|
188
|
+
email: profile.email,
|
|
189
|
+
},
|
|
190
|
+
authenticationId: myAuths[0].id,
|
|
191
|
+
});
|
|
192
|
+
|
|
193
|
+
console.log({
|
|
194
|
+
sameUsers,
|
|
113
195
|
});
|
|
114
196
|
```
|
|
115
197
|
|
|
@@ -143,12 +225,12 @@ Get detailed information about a specific action
|
|
|
143
225
|
|
|
144
226
|
**Parameters:**
|
|
145
227
|
|
|
146
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
147
|
-
| -------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
148
|
-
| `options` | `object` | ✅ | — | — |
|
|
149
|
-
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI')
|
|
150
|
-
| ↳ `actionType` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type
|
|
151
|
-
| ↳ `actionKey` | `string` | ✅ | — | — | Action key to execute
|
|
228
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
229
|
+
| -------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------- |
|
|
230
|
+
| `options` | `object` | ✅ | — | — | |
|
|
231
|
+
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
232
|
+
| ↳ `actionType` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type |
|
|
233
|
+
| ↳ `actionKey` | `string` | ✅ | — | — | Action key to execute |
|
|
152
234
|
|
|
153
235
|
**Returns:** `Promise<ActionItem>`
|
|
154
236
|
|
|
@@ -168,13 +250,14 @@ List all actions for a specific app
|
|
|
168
250
|
|
|
169
251
|
**Parameters:**
|
|
170
252
|
|
|
171
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
172
|
-
| -------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
173
|
-
| `options` | `object` | ✅ | — | — |
|
|
174
|
-
| ↳ `appKey` | `string` | ✅ | — | — | App key of actions to list (e.g., 'SlackCLIAPI') |
|
|
175
|
-
| ↳ `actionType` | `string` | ❌ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Filter actions by type
|
|
176
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of actions per page
|
|
177
|
-
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
253
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
254
|
+
| -------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
|
255
|
+
| `options` | `object` | ✅ | — | — | |
|
|
256
|
+
| ↳ `appKey` | `string` | ✅ | — | — | App key of actions to list (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
257
|
+
| ↳ `actionType` | `string` | ❌ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Filter actions by type |
|
|
258
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of actions per page |
|
|
259
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
260
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
178
261
|
|
|
179
262
|
**Returns:** `Promise<PaginatedResult<ActionItem>>`
|
|
180
263
|
|
|
@@ -212,7 +295,7 @@ Get the available choices for a dynamic dropdown input field
|
|
|
212
295
|
| Name | Type | Required | Default | Possible Values | Description |
|
|
213
296
|
| -------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
|
|
214
297
|
| `options` | `object` | ✅ | — | — | |
|
|
215
|
-
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI')
|
|
298
|
+
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
216
299
|
| ↳ `actionType` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type |
|
|
217
300
|
| ↳ `actionKey` | `string` | ✅ | — | — | Action key to execute |
|
|
218
301
|
| ↳ `inputFieldKey` | `string` | ✅ | — | — | Input field key to get choices for. |
|
|
@@ -221,6 +304,7 @@ Get the available choices for a dynamic dropdown input field
|
|
|
221
304
|
| ↳ `page` | `number` | ❌ | — | — | Page number for paginated results |
|
|
222
305
|
| ↳ `pageSize` | `number` | ❌ | — | — | Number of choices per page |
|
|
223
306
|
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
307
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
224
308
|
|
|
225
309
|
**Returns:** `Promise<PaginatedResult<InputFieldChoiceItem>>`
|
|
226
310
|
|
|
@@ -269,13 +353,14 @@ Get the input fields required for a specific action
|
|
|
269
353
|
| Name | Type | Required | Default | Possible Values | Description |
|
|
270
354
|
| -------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
|
|
271
355
|
| `options` | `object` | ✅ | — | — | |
|
|
272
|
-
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI')
|
|
356
|
+
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
273
357
|
| ↳ `actionType` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type |
|
|
274
358
|
| ↳ `actionKey` | `string` | ✅ | — | — | Action key to execute |
|
|
275
359
|
| ↳ `authenticationId` | `string` | ❌ | — | — | Authentication ID to use for this action |
|
|
276
360
|
| ↳ `inputs` | `object` | ❌ | — | — | Current input values that may affect available fields |
|
|
277
361
|
| ↳ `pageSize` | `number` | ❌ | — | — | Number of input fields per page |
|
|
278
362
|
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
363
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
279
364
|
|
|
280
365
|
**Returns:** `Promise<PaginatedResult<RootFieldItemItem>>`
|
|
281
366
|
|
|
@@ -316,16 +401,17 @@ Execute an action with the given inputs
|
|
|
316
401
|
|
|
317
402
|
**Parameters:**
|
|
318
403
|
|
|
319
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
320
|
-
| -------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- |
|
|
321
|
-
| `options` | `object` | ✅ | — | — |
|
|
322
|
-
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI')
|
|
323
|
-
| ↳ `actionType` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type
|
|
324
|
-
| ↳ `actionKey` | `string` | ✅ | — | — | Action key to execute
|
|
325
|
-
| ↳ `authenticationId` | `string` | ❌ | — | — | Authentication ID to use for this action
|
|
326
|
-
| ↳ `inputs` | `object` | ❌ | — | — | Input parameters for the action
|
|
327
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of results per page
|
|
328
|
-
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
404
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
405
|
+
| -------------------- | -------- | -------- | ------- | ---------------------------------------------------------------------------------------------- | --------------------------------------------------- |
|
|
406
|
+
| `options` | `object` | ✅ | — | — | |
|
|
407
|
+
| ↳ `appKey` | `string` | ✅ | — | — | App key (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
408
|
+
| ↳ `actionType` | `string` | ✅ | — | `read`, `read_bulk`, `write`, `run`, `search`, `search_or_write`, `search_and_write`, `filter` | Action type that matches the action's defined type |
|
|
409
|
+
| ↳ `actionKey` | `string` | ✅ | — | — | Action key to execute |
|
|
410
|
+
| ↳ `authenticationId` | `string` | ❌ | — | — | Authentication ID to use for this action |
|
|
411
|
+
| ↳ `inputs` | `object` | ❌ | — | — | Input parameters for the action |
|
|
412
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of results per page |
|
|
413
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
414
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
329
415
|
|
|
330
416
|
**Returns:** `Promise<PaginatedResult<ActionResultItem>>`
|
|
331
417
|
|
|
@@ -423,10 +509,10 @@ Get detailed information about a specific app
|
|
|
423
509
|
|
|
424
510
|
**Parameters:**
|
|
425
511
|
|
|
426
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
427
|
-
| ---------- | -------- | -------- | ------- | --------------- |
|
|
428
|
-
| `options` | `object` | ✅ | — | — |
|
|
429
|
-
| ↳ `appKey` | `string` | ✅ | — | — | App key of app to fetch (e.g., 'SlackCLIAPI') |
|
|
512
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
513
|
+
| ---------- | -------- | -------- | ------- | --------------- | ------------------------------------------------------------------- |
|
|
514
|
+
| `options` | `object` | ✅ | — | — | |
|
|
515
|
+
| ↳ `appKey` | `string` | ✅ | — | — | App key of app to fetch (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
430
516
|
|
|
431
517
|
**Returns:** `Promise<AppItem>`
|
|
432
518
|
|
|
@@ -451,6 +537,7 @@ List all available apps with optional filtering
|
|
|
451
537
|
| ↳ `search` | `string` | ❌ | — | — | Search for apps by name |
|
|
452
538
|
| ↳ `pageSize` | `number` | ❌ | — | — | Number of apps per page |
|
|
453
539
|
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
540
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
454
541
|
|
|
455
542
|
**Returns:** `Promise<PaginatedResult<AppItem>>`
|
|
456
543
|
|
|
@@ -479,14 +566,14 @@ Find the first authentication matching the criteria
|
|
|
479
566
|
|
|
480
567
|
**Parameters:**
|
|
481
568
|
|
|
482
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
483
|
-
| ------------- | -------- | -------- | ------- | --------------- |
|
|
484
|
-
| `options` | `object` | ✅ | — | — |
|
|
485
|
-
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentication to find (e.g., 'SlackCLIAPI') |
|
|
486
|
-
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title
|
|
487
|
-
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match
|
|
488
|
-
| ↳ `accountId` | `string` | ❌ | — | — | Filter by account ID
|
|
489
|
-
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner
|
|
569
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
570
|
+
| ------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------- |
|
|
571
|
+
| `options` | `object` | ✅ | — | — | |
|
|
572
|
+
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
573
|
+
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title |
|
|
574
|
+
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match |
|
|
575
|
+
| ↳ `accountId` | `string` | ❌ | — | — | Filter by account ID |
|
|
576
|
+
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner |
|
|
490
577
|
|
|
491
578
|
**Returns:** `Promise<AuthenticationItem>`
|
|
492
579
|
|
|
@@ -502,14 +589,14 @@ Find a unique authentication matching the criteria
|
|
|
502
589
|
|
|
503
590
|
**Parameters:**
|
|
504
591
|
|
|
505
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
506
|
-
| ------------- | -------- | -------- | ------- | --------------- |
|
|
507
|
-
| `options` | `object` | ✅ | — | — |
|
|
508
|
-
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentication to find (e.g., 'SlackCLIAPI') |
|
|
509
|
-
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title
|
|
510
|
-
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match
|
|
511
|
-
| ↳ `accountId` | `string` | ❌ | — | — | Filter by account ID
|
|
512
|
-
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner
|
|
592
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
593
|
+
| ------------- | -------- | -------- | ------- | --------------- | ----------------------------------------------------------------------------- |
|
|
594
|
+
| `options` | `object` | ✅ | — | — | |
|
|
595
|
+
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentication to find (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
596
|
+
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title |
|
|
597
|
+
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match |
|
|
598
|
+
| ↳ `accountId` | `string` | ❌ | — | — | Filter by account ID |
|
|
599
|
+
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner |
|
|
513
600
|
|
|
514
601
|
**Returns:** `Promise<AuthenticationItem>`
|
|
515
602
|
|
|
@@ -546,17 +633,18 @@ List available authentications with optional filtering
|
|
|
546
633
|
|
|
547
634
|
**Parameters:**
|
|
548
635
|
|
|
549
|
-
| Name | Type | Required | Default | Possible Values | Description
|
|
550
|
-
| --------------------- | -------- | -------- | ------- | --------------- |
|
|
551
|
-
| `options` | `object` | ✅ | — | — |
|
|
552
|
-
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentications to list (e.g., 'SlackCLIAPI')
|
|
553
|
-
| ↳ `authenticationIds` | `array` | ❌ | — | — | List of authentication IDs to filter by
|
|
554
|
-
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title
|
|
555
|
-
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match
|
|
556
|
-
| ↳ `accountId` | `string` | ❌ | — | — | Filter by account ID
|
|
557
|
-
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner, 'me' for your own authentications or a specific user ID
|
|
558
|
-
| ↳ `pageSize` | `number` | ❌ | — | — | Number of authentications per page
|
|
559
|
-
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages
|
|
636
|
+
| Name | Type | Required | Default | Possible Values | Description |
|
|
637
|
+
| --------------------- | -------- | -------- | ------- | --------------- | ------------------------------------------------------------------------------ |
|
|
638
|
+
| `options` | `object` | ✅ | — | — | |
|
|
639
|
+
| ↳ `appKey` | `string` | ❌ | — | — | App key of authentications to list (e.g., 'SlackCLIAPI' or slug like 'github') |
|
|
640
|
+
| ↳ `authenticationIds` | `array` | ❌ | — | — | List of authentication IDs to filter by |
|
|
641
|
+
| ↳ `search` | `string` | ❌ | — | — | Search term to filter authentications by title |
|
|
642
|
+
| ↳ `title` | `string` | ❌ | — | — | Filter authentications by exact title match |
|
|
643
|
+
| ↳ `accountId` | `string` | ❌ | — | — | Filter by account ID |
|
|
644
|
+
| ↳ `owner` | `string` | ❌ | — | — | Filter by owner, 'me' for your own authentications or a specific user ID |
|
|
645
|
+
| ↳ `pageSize` | `number` | ❌ | — | — | Number of authentications per page |
|
|
646
|
+
| ↳ `maxItems` | `number` | ❌ | — | — | Maximum total items to return across all pages |
|
|
647
|
+
| ↳ `cursor` | `string` | ❌ | — | — | Cursor to start from |
|
|
560
648
|
|
|
561
649
|
**Returns:** `Promise<PaginatedResult<AuthenticationItem>>`
|
|
562
650
|
|