@squidcloud/backend 1.0.463 → 1.0.464
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.
|
@@ -66,6 +66,17 @@ export type McpToolAction<T extends Record<string, any> = any> = (params: T) =>
|
|
|
66
66
|
* @category AI
|
|
67
67
|
*/
|
|
68
68
|
export type McpAuthorizerAction = ((request: McpAuthorizationRequest) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
69
|
+
/** A type defining a queue message handler function that responds to messages on a topic. */
|
|
70
|
+
export type QueueMessageAction<T = unknown> = (request: QueueMessageRequest<T>) => void | Promise<void>;
|
|
71
|
+
/** The context provided to a queue message handler function. */
|
|
72
|
+
export interface QueueMessageRequest<T = unknown> {
|
|
73
|
+
/** The ID of the integration the topic belongs to. */
|
|
74
|
+
integrationId: IntegrationId;
|
|
75
|
+
/** The name of the topic the message was received on. */
|
|
76
|
+
topicName: string;
|
|
77
|
+
/** The message payload. */
|
|
78
|
+
message: T;
|
|
79
|
+
}
|
|
69
80
|
/** A type defining a trigger function that responds to document changes. */
|
|
70
81
|
export type TriggerAction = ((request: TriggerRequest) => void | Promise<void>) | (() => void | Promise<void>);
|
|
71
82
|
/** The context provided to a trigger function. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@squidcloud/backend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.464",
|
|
4
4
|
"description": "Squid Cloud's backend SDK",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"typedoc-plugin-markdown": "^4.8.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@squidcloud/client": "^1.0.
|
|
38
|
+
"@squidcloud/client": "^1.0.464"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=20.0.0"
|