@slates/client 1.0.0-rc.2 → 1.0.0-rc.20
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/dist/index.cjs +5 -2
- package/dist/index.d.cts +64 -565
- package/dist/index.d.ts +64 -565
- package/dist/index.module.js +5 -2
- package/package.json +6 -6
- package/src/client.test.ts +593 -8
- package/src/client.ts +71 -32
- package/src/error.ts +11 -9
- package/src/index.ts +1 -1
- package/src/transport.ts +6 -6
- package/src/types.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -237,7 +237,9 @@ var SlatesProtocolClient = class {
|
|
|
237
237
|
}
|
|
238
238
|
async listTools() {
|
|
239
239
|
let result = await this.listActions();
|
|
240
|
-
return result.actions.filter(
|
|
240
|
+
return result.actions.filter(
|
|
241
|
+
(action) => action.type === "action.tool"
|
|
242
|
+
);
|
|
241
243
|
}
|
|
242
244
|
async listTriggers() {
|
|
243
245
|
let result = await this.listActions();
|
|
@@ -343,7 +345,8 @@ var SlatesProtocolClient = class {
|
|
|
343
345
|
encoding: "base64",
|
|
344
346
|
content: encodedBody
|
|
345
347
|
} : null,
|
|
346
|
-
state: d.state ?? null
|
|
348
|
+
state: d.state ?? null,
|
|
349
|
+
registrationDetails: d.registrationDetails ?? null
|
|
347
350
|
});
|
|
348
351
|
}
|
|
349
352
|
async unregisterTriggerWebhook(d) {
|