@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.
@@ -1,6 +1,6 @@
1
1
  import { AiFunctionId, ApiEndpointId, CollectionName, IntegrationId, IntegrationType, TopicName } from '@squidcloud/client';
2
2
  import { JSONSchema } from 'json-schema-typed';
3
- import { ActionMethodDecorator, AiFunctionAction, ClientConnectionStateChangeAction, ExecutableAction, LimiterConfig, LimitsAction, LlmAskAction, McpAuthorizerAction, McpToolAction, SchedulerAction, SecureAiAgentAction, SecureAiQueryAction, SecureApiAction, SecureDatabaseAction, SecureDistributedLockAction, SecureGraphQLAction, SecureMetricAction, SecureNativeQueryAction, SecureStorageAction, SecureTopicAction, TriggerAction, WebhookAction } from '../../internal-common/src/public-types-backend/bundle-api.public-types';
3
+ import { ActionMethodDecorator, AiFunctionAction, ClientConnectionStateChangeAction, ExecutableAction, LimiterConfig, LimitsAction, LlmAskAction, McpAuthorizerAction, McpToolAction, QueueMessageAction, SchedulerAction, SecureAiAgentAction, SecureAiQueryAction, SecureApiAction, SecureDatabaseAction, SecureDistributedLockAction, SecureGraphQLAction, SecureMetricAction, SecureNativeQueryAction, SecureStorageAction, SecureTopicAction, TriggerAction, WebhookAction } from '../../internal-common/src/public-types-backend/bundle-api.public-types';
4
4
  import { AiFunctionAttributes, AiFunctionParam, DatabaseActionType, MetricActionType, StorageActionType, TopicActionType } from '../../internal-common/src/public-types-backend/bundle-data.public-types';
5
5
  import { AiFunctionsConfiguratorRequest, AiFunctionsConfiguratorResponse, CronExpression, CronExpressionString, LlmServiceOptions, McpServerOptions, MutationType, SchedulerId, TriggerId, WebhookId } from './public-types';
6
6
  /**
@@ -128,6 +128,16 @@ export declare function secureApi(integrationId: IntegrationId, endpointId?: Api
128
128
  * @category Decorator
129
129
  */
130
130
  export declare function secureGraphQL(integrationId: IntegrationId): ActionMethodDecorator<SecureGraphQLAction>;
131
+ /**
132
+ * Decorator that marks a function as a handler for messages on a queue topic.
133
+ * The function will be called once for each message that passes through the topic.
134
+ *
135
+ * @param topicName The name of the topic to listen to.
136
+ * @param integrationId The ID of the integration. If not provided, the `built_in_queue` integration is used.
137
+ * @category Queue
138
+ * @category Decorator
139
+ */
140
+ export declare function onQueueMessage<T = unknown>(topicName: TopicName, integrationId?: IntegrationId): ActionMethodDecorator<QueueMessageAction<T>>;
131
141
  /**
132
142
  * Decorator marking a function as executable, making it accessible via the Squid SDK.
133
143
  *