@squidcloud/backend 1.0.439 → 1.0.441

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,5 +1,5 @@
1
- import { AiFileUrl } from '@squidcloud/client';
2
- import { IntegrationType } from '@squidcloud/client';
1
+ /** Re-exported AI function types from public-types for backwards compatibility. */
2
+ export { AiFunctionAttributes, AiFunctionMetadata, AiFunctionParam, AiFunctionParamType, AiFunctionResponseWithFiles, } from '@squidcloud/client';
3
3
  /** The different types of actions that can be performed on a database. */
4
4
  export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
5
5
  /** The different types of actions that can be performed for storage. */
@@ -8,38 +8,6 @@ export type StorageActionType = 'read' | 'write' | 'update' | 'insert' | 'delete
8
8
  export type TopicActionType = 'read' | 'write' | 'all';
9
9
  /** The different type of actions for metrics. */
10
10
  export type MetricActionType = 'write' | 'all';
11
- /** Represents the possible data types for an AI function parameter. */
12
- export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date' | 'files';
13
- /** Defines the structure of a parameter for an AI function. */
14
- export interface AiFunctionParam {
15
- /** Name of the parameter. */
16
- name: string;
17
- /** Description of the parameter's purpose. */
18
- description: string;
19
- /** Data type of the parameter. */
20
- type: AiFunctionParamType;
21
- /** Indicates if the parameter is mandatory. */
22
- required: boolean;
23
- /** List of possible values for the parameter, if applicable. */
24
- enum?: Array<Omit<AiFunctionParamType, 'date'>>;
25
- }
26
- /** Represents an AI function response that also includes files. */
27
- export interface AiFunctionResponseWithFiles<ResponseType = unknown> {
28
- /** Indicates that this is an AI function response with files. */
29
- __isAiFunctionResponseWithFiles: true;
30
- /** The response from the AI function. */
31
- response: ResponseType;
32
- /** Optional list of files associated with the response. */
33
- files: Array<AiFileUrl>;
34
- }
35
- /** Additional optional readonly metadata for AI function. */
36
- export interface AiFunctionAttributes {
37
- /**
38
- * Type of integration this function is used for.
39
- * Functions with defined 'integrationType' require 'integrationId' to be passed as part of the function context.
40
- */
41
- integrationType?: Array<IntegrationType>;
42
- }
43
11
  /** ID of the tenant module: either user code (see USER_CODE_MODULE_ID) or a connector ID. */
44
12
  export type TenantModuleId = string;
45
13
  /** Type for the user code module loaded by worker/local-backend code. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squidcloud/backend",
3
- "version": "1.0.439",
3
+ "version": "1.0.441",
4
4
  "description": "Squid Cloud's backend SDK",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -34,7 +34,7 @@
34
34
  "typedoc-plugin-markdown": "^4.8.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@squidcloud/client": "^1.0.439"
37
+ "@squidcloud/client": "^1.0.441"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=20.0.0"