@squidcloud/backend 1.0.324 → 1.0.325

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.
@@ -254,9 +254,10 @@ export declare function secureDistributedLock(mutex?: string): ActionMethodDecor
254
254
  * To read more about securing an AI chatbot, see the
255
255
  * {@link https://docs.getsquid.ai/docs/security-rules/secure-ai-chatbot documentation}.
256
256
  *
257
- @param integrationId The ID of the integration to secure.
258
- @param type The type of action to secure.
259
- @param agentId The ID of the profile to secure.
257
+ * @param integrationId The ID of the integration to secure.
258
+ * @param type The type of action to secure.
259
+ * @param agentId The ID of the profile to secure.
260
+ * @deprecated
260
261
  */
261
262
  export declare function secureAiChatbot<T extends AiActionType>(integrationId: IntegrationId, type: T, agentId?: AiAgentId): ActionMethodDecorator<SecureAiChatbotAction<T>>;
262
263
  /**
@@ -271,9 +272,9 @@ export declare function secureAiChatbot<T extends AiActionType>(integrationId: I
271
272
  * {@link https://docs.getsquid.ai/docs/security-rules/secure-ai-chatbot documentation}.
272
273
  *
273
274
  @param type The type of action to secure.
274
- @param agentId The ID of the agent to secure.
275
+ @param agentId The ID of the agent to secure - if not provided, this will apply to all agents.
275
276
  */
276
- export declare function secureAiAgent<T extends AiActionType>(type: T, agentId: string): ActionMethodDecorator<SecureAiChatbotAction<T>>;
277
+ export declare function secureAiAgent<T extends AiActionType>(type: T, agentId?: string): ActionMethodDecorator<SecureAiChatbotAction<T>>;
277
278
  /**
278
279
  * A decorator that can be used to rate/quota limit a function. In its simplest form, the decorator
279
280
  * can take the query rate that is allowed for the given function and/or how many total calls are
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/backend",
3
- "version": "1.0.324",
3
+ "version": "1.0.325",
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.324"
29
+ "@squidcloud/client": "^1.0.325"
30
30
  },
31
31
  "engines": {
32
32
  "node": ">=20.0.0"