@squidcloud/backend 1.0.290 → 1.0.291

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.
@@ -25,7 +25,7 @@ export type SecureGraphQLAction = ((context: GraphqlContext) => boolean | Promis
25
25
  export type SecureAiChatbotAction<T extends AiChatbotActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'chat' ? ((context: AiChatbotChatContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: AiChatbotMutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
26
26
  export type ClientConnectionStateChangeAction = (clientId: ClientId, clientConnectionState: ClientConnectionState) => Promise<void> | void;
27
27
  export type ExecutableAction = (...args: any[]) => any;
28
- export type AiFunctionAction<T extends Record<string, any> = any> = (params: T, context: AiFunctionContext) => any;
28
+ export type AiFunctionAction<T extends Record<string, any> = any> = (params: T, context: AiFunctionContext<any, any>) => any;
29
29
  export type TriggerAction = ((request: TriggerRequest) => void | Promise<void>) | (() => void | Promise<void>);
30
30
  /** The context provided to a trigger function. */
31
31
  export interface TriggerRequest<T extends DocumentData = any> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/backend",
3
- "version": "1.0.290",
3
+ "version": "1.0.291",
4
4
  "description": "Squid Cloud's backend SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/backend/src/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  "graphql": "^16.9.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@squidcloud/client": "^1.0.290"
29
+ "@squidcloud/client": "^1.0.291"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=20.0.0"