@squidcloud/local-backend 1.0.342 → 1.0.344
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.
- package/dist/internal-common/src/public-types/ai-agent.public-types.js +5 -1
- package/dist/internal-common/src/public-types/ai-agent.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/code-executor.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/communication.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integration.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integrations/api.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/metric.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/query.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/socket.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types-backend/mutation.public-context.js.map +1 -1
- package/dist/internal-common/src/types/ai-agent.types.js +6 -2
- package/dist/internal-common/src/types/ai-agent.types.js.map +1 -1
- package/dist/internal-common/src/types/file.types.js +3 -0
- package/dist/internal-common/src/types/file.types.js.map +1 -0
- package/dist/internal-common/src/utils/backend-transforms.js +25 -1
- package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
- package/dist/internal-common/src/utils/tsoa-utils.js +1 -1
- package/dist/internal-common/src/utils/tsoa-utils.js.map +1 -1
- package/dist/local-backend/src/index.js +0 -1
- package/dist/local-backend/src/index.js.map +1 -1
- package/dist/local-backend/src/local-backend.module.js +0 -2
- package/dist/local-backend/src/local-backend.module.js.map +1 -1
- package/dist/local-backend/src/local-backend.service.js +3 -10
- package/dist/local-backend/src/local-backend.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -3
- package/dist/internal-common/src/code-executor.types.d.ts +0 -24
- package/dist/internal-common/src/local-dev.types.d.ts +0 -57
- package/dist/internal-common/src/metric-name.d.ts +0 -3
- package/dist/internal-common/src/public-types/ai-agent.public-types.d.ts +0 -267
- package/dist/internal-common/src/public-types/api-client.public-types.d.ts +0 -5
- package/dist/internal-common/src/public-types/backend.public-types.d.ts +0 -8
- package/dist/internal-common/src/public-types/code-executor.public-types.d.ts +0 -15
- package/dist/internal-common/src/public-types/communication.public-types.d.ts +0 -11
- package/dist/internal-common/src/public-types/context.public-types.d.ts +0 -25
- package/dist/internal-common/src/public-types/document.public-types.d.ts +0 -22
- package/dist/internal-common/src/public-types/integration.public-types.d.ts +0 -20
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +0 -53
- package/dist/internal-common/src/public-types/metric.public-types.d.ts +0 -48
- package/dist/internal-common/src/public-types/openapi.public-types.d.ts +0 -6
- package/dist/internal-common/src/public-types/query.public-types.d.ts +0 -40
- package/dist/internal-common/src/public-types/scheduler.public-types.d.ts +0 -18
- package/dist/internal-common/src/public-types/schema.public-types.d.ts +0 -23
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +0 -17
- package/dist/internal-common/src/public-types/socket.public-types.d.ts +0 -2
- package/dist/internal-common/src/public-types/typescript.public-types.d.ts +0 -12
- package/dist/internal-common/src/public-types-backend/ai-agent.public-context.d.ts +0 -11
- package/dist/internal-common/src/public-types-backend/api-call.public-context.d.ts +0 -20
- package/dist/internal-common/src/public-types-backend/application.public-types.d.ts +0 -89
- package/dist/internal-common/src/public-types-backend/bundle-api.public-types.d.ts +0 -81
- package/dist/internal-common/src/public-types-backend/bundle-data.public-types.d.ts +0 -15
- package/dist/internal-common/src/public-types-backend/distributed-lock.public-context.d.ts +0 -4
- package/dist/internal-common/src/public-types-backend/graphql.public-context.d.ts +0 -7
- package/dist/internal-common/src/public-types-backend/metric.public-context.d.ts +0 -5
- package/dist/internal-common/src/public-types-backend/mutation.public-context.d.ts +0 -62
- package/dist/internal-common/src/public-types-backend/native-query.public-context.d.ts +0 -18
- package/dist/internal-common/src/public-types-backend/query.public-context.d.ts +0 -46
- package/dist/internal-common/src/public-types-backend/storage.types.d.ts +0 -9
- package/dist/internal-common/src/public-types-backend/topic.public-context.d.ts +0 -10
- package/dist/internal-common/src/types/ai-agent.types.d.ts +0 -121
- package/dist/internal-common/src/types/api.types.d.ts +0 -34
- package/dist/internal-common/src/types/application.types.d.ts +0 -83
- package/dist/internal-common/src/types/backend-run.types.d.ts +0 -68
- package/dist/internal-common/src/types/bundle-data.types.d.ts +0 -92
- package/dist/internal-common/src/types/communication.types.d.ts +0 -13
- package/dist/internal-common/src/types/connector.types.d.ts +0 -11
- package/dist/internal-common/src/types/document.types.d.ts +0 -7
- package/dist/internal-common/src/types/integrations/api.types.d.ts +0 -106
- package/dist/internal-common/src/types/integrations/auth.types.d.ts +0 -44
- package/dist/internal-common/src/types/integrations/database.types.d.ts +0 -172
- package/dist/internal-common/src/types/integrations/observability.types.d.ts +0 -21
- package/dist/internal-common/src/types/integrations/queue-types.d.ts +0 -25
- package/dist/internal-common/src/types/integrations/schemas.d.ts +0 -108
- package/dist/internal-common/src/types/integrations/storage-types.d.ts +0 -42
- package/dist/internal-common/src/types/logger.types.d.ts +0 -21
- package/dist/internal-common/src/types/observability.types.d.ts +0 -64
- package/dist/internal-common/src/types/openapi.types.d.ts +0 -26
- package/dist/internal-common/src/types/query.types.d.ts +0 -41
- package/dist/internal-common/src/types/secret.types.d.ts +0 -60
- package/dist/internal-common/src/types/security.types.d.ts +0 -8
- package/dist/internal-common/src/types/service.types.d.ts +0 -18
- package/dist/internal-common/src/utils/backend-transforms.d.ts +0 -7
- package/dist/internal-common/src/utils/global.utils.d.ts +0 -8
- package/dist/internal-common/src/utils/http.d.ts +0 -1
- package/dist/internal-common/src/utils/metrics.types.d.ts +0 -2
- package/dist/internal-common/src/utils/node-utils.d.ts +0 -1
- package/dist/internal-common/src/utils/object.d.ts +0 -20
- package/dist/internal-common/src/utils/resolve.d.ts +0 -2
- package/dist/internal-common/src/utils/serialization.d.ts +0 -5
- package/dist/internal-common/src/utils/shell-runner.d.ts +0 -12
- package/dist/internal-common/src/utils/squid-code-bundle.utils.d.ts +0 -10
- package/dist/internal-common/src/utils/squid-service.utils.d.ts +0 -34
- package/dist/internal-common/src/utils/squid.constants.d.ts +0 -1
- package/dist/internal-common/src/utils/tsoa-utils.d.ts +0 -10
- package/dist/internal-common/src/utils.d.ts +0 -2
- package/dist/internal-common/src/websocket.impl.d.ts +0 -22
- package/dist/local-backend/src/index.d.ts +0 -7
- package/dist/local-backend/src/local-backend-connectors.service.d.ts +0 -6
- package/dist/local-backend/src/local-backend-socket.service.d.ts +0 -21
- package/dist/local-backend/src/local-backend.app.d.ts +0 -2
- package/dist/local-backend/src/local-backend.controller.d.ts +0 -9
- package/dist/local-backend/src/local-backend.controller.js +0 -50
- package/dist/local-backend/src/local-backend.controller.js.map +0 -1
- package/dist/local-backend/src/local-backend.module.d.ts +0 -9
- package/dist/local-backend/src/local-backend.service.d.ts +0 -21
- package/dist/local-backend/src/local-backend.types.d.ts +0 -1
- package/dist/local-backend/src/main.d.ts +0 -1
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ServiceFunctionName } from './backend.public-types';
|
|
2
|
-
export interface SchedulerConfig {
|
|
3
|
-
functionName: ServiceFunctionName;
|
|
4
|
-
cronExpression: string;
|
|
5
|
-
exclusive: boolean;
|
|
6
|
-
}
|
|
7
|
-
export interface SchedulerInfo {
|
|
8
|
-
schedulerId: string;
|
|
9
|
-
config: SchedulerConfig;
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface UpdateSchedulerOptions {
|
|
13
|
-
schedulerId: string;
|
|
14
|
-
enabled?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface UpdateSchedulersRequest {
|
|
17
|
-
schedulers: UpdateSchedulerOptions[];
|
|
18
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { JSONSchema } from 'json-schema-typed';
|
|
2
|
-
type ConvertDeep<T extends JSONSchema> = Exclude<T, boolean> & {
|
|
3
|
-
properties?: Record<string, ConvertDeep<JSONSchema>>;
|
|
4
|
-
patternProperties?: Record<string, ConvertDeep<JSONSchema>>;
|
|
5
|
-
nullable?: boolean;
|
|
6
|
-
applyDefaultValueOn?: 'always' | 'empty' | 'updateOrEmpty';
|
|
7
|
-
isDate?: boolean;
|
|
8
|
-
isJSON?: boolean;
|
|
9
|
-
insertable?: boolean;
|
|
10
|
-
deletable?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type PropertySchema = ConvertDeep<JSONSchema>;
|
|
13
|
-
export type TopLevelPropertySchema = PropertySchema & {
|
|
14
|
-
primaryKey?: boolean;
|
|
15
|
-
isComputed?: boolean;
|
|
16
|
-
isDefaultComputed?: boolean;
|
|
17
|
-
dataType?: string;
|
|
18
|
-
hidden?: boolean;
|
|
19
|
-
};
|
|
20
|
-
export type CollectionSchema = Omit<ConvertDeep<JSONSchema>, 'properties'> & {
|
|
21
|
-
properties?: Record<string, TopLevelPropertySchema>;
|
|
22
|
-
};
|
|
23
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type ApiKey = string;
|
|
2
|
-
export type SecretKey = string;
|
|
3
|
-
export type SecretValue = string | number | boolean;
|
|
4
|
-
export interface SecretMetadata {
|
|
5
|
-
key: SecretKey;
|
|
6
|
-
lastUpdated: number;
|
|
7
|
-
}
|
|
8
|
-
export interface SecretEntry<T extends SecretValue = SecretValue> extends SecretMetadata {
|
|
9
|
-
value: T;
|
|
10
|
-
}
|
|
11
|
-
export interface ApiKeyEntry extends SecretMetadata {
|
|
12
|
-
value: string;
|
|
13
|
-
}
|
|
14
|
-
export interface SetSecretRequestEntry {
|
|
15
|
-
key: SecretKey;
|
|
16
|
-
value: SecretValue;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
2
|
-
type PropertiesWithPrefix<Prefix extends string> = {
|
|
3
|
-
[key in `${Prefix}${string}`]: any;
|
|
4
|
-
};
|
|
5
|
-
type Pred = [0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
6
|
-
export type DeepRecord<T, RemainingDepth extends number & keyof Pred = 5, Prefix extends string = ''> = RemainingDepth extends 0 ? PropertiesWithPrefix<Prefix> : {
|
|
7
|
-
[k in keyof T]-?: k extends string | number ? Record<`${Prefix}${k}`, T[k]> | (Required<T>[k] extends any[] ? never : Required<T>[k] extends object ? DeepRecord<Required<T>[k], Pred[RemainingDepth], `${Prefix}${k}.`> : never) : never;
|
|
8
|
-
}[keyof T];
|
|
9
|
-
export type UnionKeys<T> = T extends any ? keyof T : never;
|
|
10
|
-
export type FieldOf<T, K extends UnionKeys<T>> = Extract<T, Record<K, any>>[K];
|
|
11
|
-
export type Paths<T> = UnionKeys<DeepRecord<T>>;
|
|
12
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AiAgentId } from '../public-types/communication.public-types';
|
|
2
|
-
export interface AiFunctionContext<AgentContextType = unknown, FunctionContextType = unknown> {
|
|
3
|
-
agentId?: AiAgentId;
|
|
4
|
-
agentContext: AgentContextType;
|
|
5
|
-
functionContext: FunctionContextType;
|
|
6
|
-
}
|
|
7
|
-
export declare class SecureAiAgentContext {
|
|
8
|
-
readonly prompt?: string;
|
|
9
|
-
readonly agentId: AiAgentId;
|
|
10
|
-
constructor(prototype: SecureAiAgentContext);
|
|
11
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ApiEndpointId, HttpMethod } from '../public-types/integrations/api.public-types';
|
|
2
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
3
|
-
import { ApiOptions } from '../public-types/api-client.public-types';
|
|
4
|
-
export type ApiHeaders = Record<string, string | number | boolean>;
|
|
5
|
-
export declare class ApiCallContext {
|
|
6
|
-
readonly integrationId: IntegrationId;
|
|
7
|
-
readonly endpointId: ApiEndpointId;
|
|
8
|
-
readonly url: string;
|
|
9
|
-
readonly method: HttpMethod;
|
|
10
|
-
readonly body: unknown;
|
|
11
|
-
readonly options: ApiOptions;
|
|
12
|
-
constructor(prototype: ApiCallContext);
|
|
13
|
-
}
|
|
14
|
-
export interface CallApiRequest<BodyType = any> {
|
|
15
|
-
integrationId: IntegrationId;
|
|
16
|
-
endpointId: ApiEndpointId;
|
|
17
|
-
body?: BodyType;
|
|
18
|
-
overrideMethod?: HttpMethod;
|
|
19
|
-
options: ApiOptions;
|
|
20
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
export type WebhookId = string;
|
|
2
|
-
export type TriggerId = string;
|
|
3
|
-
export type SchedulerId = string;
|
|
4
|
-
export type CronExpressionString = `${string} ${string} ${string} ${string} ${string}` | `${string} ${string} ${string} ${string}`;
|
|
5
|
-
export declare enum CronExpression {
|
|
6
|
-
EVERY_SECOND = "* * * * * *",
|
|
7
|
-
EVERY_5_SECONDS = "*/5 * * * * *",
|
|
8
|
-
EVERY_10_SECONDS = "*/10 * * * * *",
|
|
9
|
-
EVERY_30_SECONDS = "*/30 * * * * *",
|
|
10
|
-
EVERY_MINUTE = "*/1 * * * *",
|
|
11
|
-
EVERY_5_MINUTES = "0 */5 * * * *",
|
|
12
|
-
EVERY_10_MINUTES = "0 */10 * * * *",
|
|
13
|
-
EVERY_30_MINUTES = "0 */30 * * * *",
|
|
14
|
-
EVERY_HOUR = "0 0-23/1 * * *",
|
|
15
|
-
EVERY_2_HOURS = "0 0-23/2 * * *",
|
|
16
|
-
EVERY_3_HOURS = "0 0-23/3 * * *",
|
|
17
|
-
EVERY_4_HOURS = "0 0-23/4 * * *",
|
|
18
|
-
EVERY_5_HOURS = "0 0-23/5 * * *",
|
|
19
|
-
EVERY_6_HOURS = "0 0-23/6 * * *",
|
|
20
|
-
EVERY_7_HOURS = "0 0-23/7 * * *",
|
|
21
|
-
EVERY_8_HOURS = "0 0-23/8 * * *",
|
|
22
|
-
EVERY_9_HOURS = "0 0-23/9 * * *",
|
|
23
|
-
EVERY_10_HOURS = "0 0-23/10 * * *",
|
|
24
|
-
EVERY_11_HOURS = "0 0-23/11 * * *",
|
|
25
|
-
EVERY_12_HOURS = "0 0-23/12 * * *",
|
|
26
|
-
EVERY_DAY_AT_1AM = "0 01 * * *",
|
|
27
|
-
EVERY_DAY_AT_2AM = "0 02 * * *",
|
|
28
|
-
EVERY_DAY_AT_3AM = "0 03 * * *",
|
|
29
|
-
EVERY_DAY_AT_4AM = "0 04 * * *",
|
|
30
|
-
EVERY_DAY_AT_5AM = "0 05 * * *",
|
|
31
|
-
EVERY_DAY_AT_6AM = "0 06 * * *",
|
|
32
|
-
EVERY_DAY_AT_7AM = "0 07 * * *",
|
|
33
|
-
EVERY_DAY_AT_8AM = "0 08 * * *",
|
|
34
|
-
EVERY_DAY_AT_9AM = "0 09 * * *",
|
|
35
|
-
EVERY_DAY_AT_10AM = "0 10 * * *",
|
|
36
|
-
EVERY_DAY_AT_11AM = "0 11 * * *",
|
|
37
|
-
EVERY_DAY_AT_NOON = "0 12 * * *",
|
|
38
|
-
EVERY_DAY_AT_1PM = "0 13 * * *",
|
|
39
|
-
EVERY_DAY_AT_2PM = "0 14 * * *",
|
|
40
|
-
EVERY_DAY_AT_3PM = "0 15 * * *",
|
|
41
|
-
EVERY_DAY_AT_4PM = "0 16 * * *",
|
|
42
|
-
EVERY_DAY_AT_5PM = "0 17 * * *",
|
|
43
|
-
EVERY_DAY_AT_6PM = "0 18 * * *",
|
|
44
|
-
EVERY_DAY_AT_7PM = "0 19 * * *",
|
|
45
|
-
EVERY_DAY_AT_8PM = "0 20 * * *",
|
|
46
|
-
EVERY_DAY_AT_9PM = "0 21 * * *",
|
|
47
|
-
EVERY_DAY_AT_10PM = "0 22 * * *",
|
|
48
|
-
EVERY_DAY_AT_11PM = "0 23 * * *",
|
|
49
|
-
EVERY_DAY_AT_MIDNIGHT = "0 0 * * *",
|
|
50
|
-
EVERY_WEEK = "0 0 * * 7",
|
|
51
|
-
EVERY_WEEKDAY = "0 0 * * 1-5",
|
|
52
|
-
EVERY_WEEKEND = "0 0 * * 6,7",
|
|
53
|
-
EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
|
|
54
|
-
EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
|
|
55
|
-
EVERY_2ND_HOUR = "0 */2 * * *",
|
|
56
|
-
EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
|
|
57
|
-
EVERY_2ND_MONTH = "0 0 1 */2 *",
|
|
58
|
-
EVERY_QUARTER = "0 0 1 */3 *",
|
|
59
|
-
EVERY_6_MONTHS = "0 0 1 */6 *",
|
|
60
|
-
EVERY_YEAR = "0 0 1 1 *",
|
|
61
|
-
EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM = "0 */30 9-17 * * *",
|
|
62
|
-
EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM = "0 */30 9-18 * * *",
|
|
63
|
-
EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM = "0 */30 10-19 * * *",
|
|
64
|
-
MONDAY_TO_FRIDAY_AT_1AM = "0 0 01 * * 1-5",
|
|
65
|
-
MONDAY_TO_FRIDAY_AT_2AM = "0 0 02 * * 1-5",
|
|
66
|
-
MONDAY_TO_FRIDAY_AT_3AM = "0 0 03 * * 1-5",
|
|
67
|
-
MONDAY_TO_FRIDAY_AT_4AM = "0 0 04 * * 1-5",
|
|
68
|
-
MONDAY_TO_FRIDAY_AT_5AM = "0 0 05 * * 1-5",
|
|
69
|
-
MONDAY_TO_FRIDAY_AT_6AM = "0 0 06 * * 1-5",
|
|
70
|
-
MONDAY_TO_FRIDAY_AT_7AM = "0 0 07 * * 1-5",
|
|
71
|
-
MONDAY_TO_FRIDAY_AT_8AM = "0 0 08 * * 1-5",
|
|
72
|
-
MONDAY_TO_FRIDAY_AT_9AM = "0 0 09 * * 1-5",
|
|
73
|
-
MONDAY_TO_FRIDAY_AT_09_30AM = "0 30 09 * * 1-5",
|
|
74
|
-
MONDAY_TO_FRIDAY_AT_10AM = "0 0 10 * * 1-5",
|
|
75
|
-
MONDAY_TO_FRIDAY_AT_11AM = "0 0 11 * * 1-5",
|
|
76
|
-
MONDAY_TO_FRIDAY_AT_11_30AM = "0 30 11 * * 1-5",
|
|
77
|
-
MONDAY_TO_FRIDAY_AT_12PM = "0 0 12 * * 1-5",
|
|
78
|
-
MONDAY_TO_FRIDAY_AT_1PM = "0 0 13 * * 1-5",
|
|
79
|
-
MONDAY_TO_FRIDAY_AT_2PM = "0 0 14 * * 1-5",
|
|
80
|
-
MONDAY_TO_FRIDAY_AT_3PM = "0 0 15 * * 1-5",
|
|
81
|
-
MONDAY_TO_FRIDAY_AT_4PM = "0 0 16 * * 1-5",
|
|
82
|
-
MONDAY_TO_FRIDAY_AT_5PM = "0 0 17 * * 1-5",
|
|
83
|
-
MONDAY_TO_FRIDAY_AT_6PM = "0 0 18 * * 1-5",
|
|
84
|
-
MONDAY_TO_FRIDAY_AT_7PM = "0 0 19 * * 1-5",
|
|
85
|
-
MONDAY_TO_FRIDAY_AT_8PM = "0 0 20 * * 1-5",
|
|
86
|
-
MONDAY_TO_FRIDAY_AT_9PM = "0 0 21 * * 1-5",
|
|
87
|
-
MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
|
|
88
|
-
MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
|
|
89
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { MutationContext, MutationType } from './mutation.public-context';
|
|
2
|
-
import { ApiCallContext } from './api-call.public-context';
|
|
3
|
-
import { QueryContext } from './query.public-context';
|
|
4
|
-
import { ClientConnectionState } from '../public-types/socket.public-types';
|
|
5
|
-
import { CollectionName, DocIdOrDocIdObj, DocumentData } from '../public-types/document.public-types';
|
|
6
|
-
import { ClientId, IntegrationId, SquidDocId } from '../public-types/communication.public-types';
|
|
7
|
-
import { TopicReadContext, TopicWriteContext } from './topic.public-context';
|
|
8
|
-
import { DistributedLockContext } from './distributed-lock.public-context';
|
|
9
|
-
import { GraphqlContext } from './graphql.public-context';
|
|
10
|
-
import { NativeQueryContext } from './native-query.public-context';
|
|
11
|
-
import { SecureMetricContext } from './metric.public-context';
|
|
12
|
-
import { DatabaseActionType, MetricActionType, StorageActionType, TopicActionType } from './bundle-data.public-types';
|
|
13
|
-
import { StorageContext } from './storage.types';
|
|
14
|
-
import { AiFunctionContext, SecureAiAgentContext } from './ai-agent.public-context';
|
|
15
|
-
export type SecureDatabaseAction<T extends DatabaseActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: QueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: MutationContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
16
|
-
export type SecureStorageAction<T extends StorageActionType> = T extends 'all' ? () => boolean | Promise<boolean> : (context: StorageContext) => boolean | Promise<boolean>;
|
|
17
|
-
export type SecureTopicAction<T extends TopicActionType> = T extends 'all' ? () => boolean | Promise<boolean> : T extends 'read' ? ((context: TopicReadContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : ((context: TopicWriteContext<T>) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
18
|
-
export type SecureMetricAction<T extends MetricActionType> = T extends 'all' ? ((context: SecureMetricContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : T extends 'write' ? ((context: SecureMetricContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>) : never;
|
|
19
|
-
export type SecureApiAction = ((context: ApiCallContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
20
|
-
export type SecureNativeQueryAction = ((context: NativeQueryContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
21
|
-
export type SecureDistributedLockAction = ((context: DistributedLockContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
22
|
-
export type SecureGraphQLAction = ((context: GraphqlContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
23
|
-
export type SecureAiAgentAction = ((context: SecureAiAgentContext) => boolean | Promise<boolean>) | (() => boolean | Promise<boolean>);
|
|
24
|
-
export type ClientConnectionStateChangeAction = (clientId: ClientId, clientConnectionState: ClientConnectionState) => Promise<void> | void;
|
|
25
|
-
export type ExecutableAction = (...args: any[]) => any;
|
|
26
|
-
export type AiFunctionAction<T extends Record<string, any> = any> = (params: T, context: AiFunctionContext<any, any>) => any;
|
|
27
|
-
export type TriggerAction = ((request: TriggerRequest) => void | Promise<void>) | (() => void | Promise<void>);
|
|
28
|
-
export interface TriggerRequest<T extends DocumentData = any> {
|
|
29
|
-
squidDocId: SquidDocId;
|
|
30
|
-
integrationId: IntegrationId;
|
|
31
|
-
collectionName: CollectionName;
|
|
32
|
-
docId: DocIdOrDocIdObj;
|
|
33
|
-
mutationType: MutationType;
|
|
34
|
-
docBefore?: T;
|
|
35
|
-
docAfter?: T;
|
|
36
|
-
}
|
|
37
|
-
export type SchedulerAction = () => void | Promise<void>;
|
|
38
|
-
export type LimitsAction = (...args: any[]) => any | Promise<any>;
|
|
39
|
-
export type LimiterScope = 'ip' | 'user' | 'global';
|
|
40
|
-
export type QuotaRenewPeriod = 'hourly' | 'daily' | 'weekly' | 'monthly' | 'quarterly' | 'annually';
|
|
41
|
-
export interface RateLimitOptions {
|
|
42
|
-
value: number;
|
|
43
|
-
scope?: LimiterScope;
|
|
44
|
-
}
|
|
45
|
-
export interface QuotaLimitOptions {
|
|
46
|
-
value: number;
|
|
47
|
-
scope?: LimiterScope;
|
|
48
|
-
renewPeriod?: QuotaRenewPeriod;
|
|
49
|
-
}
|
|
50
|
-
export interface LimiterOptions {
|
|
51
|
-
rateLimit?: RateLimitOptions[];
|
|
52
|
-
quotaLimit?: QuotaLimitOptions[];
|
|
53
|
-
}
|
|
54
|
-
export type LimiterConfig = {
|
|
55
|
-
rateLimit?: number | RateLimitOptions | Array<RateLimitOptions>;
|
|
56
|
-
quotaLimit?: number | QuotaLimitOptions | Array<QuotaLimitOptions>;
|
|
57
|
-
};
|
|
58
|
-
export type WebhookAction = ((request: WebhookRequest) => any) | (() => any);
|
|
59
|
-
export interface WebhookRequest<T = any> {
|
|
60
|
-
body: T;
|
|
61
|
-
rawBody?: string;
|
|
62
|
-
queryParams: Record<string, string>;
|
|
63
|
-
headers: Record<string, string>;
|
|
64
|
-
httpMethod: 'post' | 'get' | 'put' | 'delete';
|
|
65
|
-
files?: Array<SquidFile>;
|
|
66
|
-
}
|
|
67
|
-
export interface WebhookResponse {
|
|
68
|
-
headers: Record<string, any>;
|
|
69
|
-
body: any;
|
|
70
|
-
statusCode: number;
|
|
71
|
-
__isWebhookResponse__: true;
|
|
72
|
-
}
|
|
73
|
-
export interface SquidFile {
|
|
74
|
-
data: Uint8Array;
|
|
75
|
-
fieldName: string;
|
|
76
|
-
mimetype: string;
|
|
77
|
-
originalName: string;
|
|
78
|
-
size: number;
|
|
79
|
-
encoding?: string;
|
|
80
|
-
}
|
|
81
|
-
export type ActionMethodDecorator<U> = <T extends U>(target: Object, propertyName: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { IntegrationType } from '../public-types/integration.public-types';
|
|
2
|
-
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
3
|
-
export type StorageActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
4
|
-
export type TopicActionType = 'read' | 'write' | 'all';
|
|
5
|
-
export type MetricActionType = 'write' | 'all';
|
|
6
|
-
export type AiFunctionParamType = 'string' | 'number' | 'boolean' | 'date';
|
|
7
|
-
export interface AiFunctionParam {
|
|
8
|
-
name: string;
|
|
9
|
-
description: string;
|
|
10
|
-
type: AiFunctionParamType;
|
|
11
|
-
required: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface AiFunctionAttributes {
|
|
14
|
-
integrationType?: Array<IntegrationType>;
|
|
15
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Paths } from '../public-types/typescript.public-types';
|
|
2
|
-
import { SquidDocIdObj, SquidDocument } from '../public-types/document.public-types';
|
|
3
|
-
export declare const MUTATION_TYPES: readonly ["insert", "update", "delete"];
|
|
4
|
-
export type MutationType = (typeof MUTATION_TYPES)[number];
|
|
5
|
-
interface BaseMutation {
|
|
6
|
-
type: MutationType;
|
|
7
|
-
squidDocIdObj: SquidDocIdObj;
|
|
8
|
-
}
|
|
9
|
-
export type Mutation<T = any> = UpdateMutation<T> | InsertMutation<T> | DeleteMutation;
|
|
10
|
-
export interface DeleteMutation extends BaseMutation {
|
|
11
|
-
type: 'delete';
|
|
12
|
-
}
|
|
13
|
-
export interface UpdateMutation<T = any> extends BaseMutation {
|
|
14
|
-
type: 'update';
|
|
15
|
-
properties: {
|
|
16
|
-
[key in keyof T & string]?: Array<PropertyMutation<T[key]>>;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface InsertMutation<T = any> extends BaseMutation {
|
|
20
|
-
type: 'insert';
|
|
21
|
-
properties: T;
|
|
22
|
-
}
|
|
23
|
-
export type PropertyMutation<Value = any> = ApplyNumericFnPropertyMutation | ApplyStringFnPropertyMutation | ValueUpdatePropertyMutation<Value> | RemovePropertyMutation;
|
|
24
|
-
export interface ValueUpdatePropertyMutation<Value = any> {
|
|
25
|
-
type: 'update';
|
|
26
|
-
value: Value;
|
|
27
|
-
}
|
|
28
|
-
export interface ApplyNumericFnPropertyMutation {
|
|
29
|
-
type: 'applyNumericFn';
|
|
30
|
-
fn: 'increment';
|
|
31
|
-
value: number;
|
|
32
|
-
}
|
|
33
|
-
export interface RemovePropertyMutation {
|
|
34
|
-
type: 'removeProperty';
|
|
35
|
-
}
|
|
36
|
-
interface ApplyExtendString {
|
|
37
|
-
type: 'applyStringFn';
|
|
38
|
-
fn: 'extendString';
|
|
39
|
-
value: string;
|
|
40
|
-
}
|
|
41
|
-
interface ApplyTrimString {
|
|
42
|
-
type: 'applyStringFn';
|
|
43
|
-
fn: 'trim';
|
|
44
|
-
}
|
|
45
|
-
export type ApplyStringFnPropertyMutation = ApplyExtendString | ApplyTrimString;
|
|
46
|
-
export interface BeforeAndAfterDocs<T = SquidDocument> {
|
|
47
|
-
before: T | undefined;
|
|
48
|
-
after: T | undefined;
|
|
49
|
-
}
|
|
50
|
-
export declare class MutationContext<T = any> {
|
|
51
|
-
readonly mutation: Mutation<T>;
|
|
52
|
-
readonly beforeAndAfterDocs: BeforeAndAfterDocs<T>;
|
|
53
|
-
readonly serverTimeStamp: Date;
|
|
54
|
-
constructor(mutation: Mutation<T>, beforeAndAfterDocs: BeforeAndAfterDocs<T>, serverTimeStamp: Date);
|
|
55
|
-
getMutationType(): MutationType;
|
|
56
|
-
get before(): T | undefined;
|
|
57
|
-
get after(): T | undefined;
|
|
58
|
-
affectsPath(path: Paths<T>): boolean;
|
|
59
|
-
affectedPaths(startingRoot?: Paths<T> | string): Array<Paths<T>>;
|
|
60
|
-
private checkPath;
|
|
61
|
-
}
|
|
62
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
2
|
-
export type NativeQueryRequestType = 'relational' | 'mongo';
|
|
3
|
-
interface BaseNativeQueryContext {
|
|
4
|
-
type: NativeQueryRequestType;
|
|
5
|
-
integrationId: IntegrationId;
|
|
6
|
-
}
|
|
7
|
-
export interface RelationalNativeQueryContext extends BaseNativeQueryContext {
|
|
8
|
-
type: 'relational';
|
|
9
|
-
query: string;
|
|
10
|
-
params: Record<string, any>;
|
|
11
|
-
}
|
|
12
|
-
export interface MongoNativeQueryContext extends BaseNativeQueryContext {
|
|
13
|
-
type: 'mongo';
|
|
14
|
-
collectionName: string;
|
|
15
|
-
aggregationPipeline: Array<any | undefined>;
|
|
16
|
-
}
|
|
17
|
-
export type NativeQueryContext = RelationalNativeQueryContext | MongoNativeQueryContext;
|
|
18
|
-
export {};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { FieldSort, Operator, Query, SimpleCondition } from '../public-types/query.public-types';
|
|
2
|
-
import { DeepRecord, FieldOf, PartialBy, Paths } from '../public-types/typescript.public-types';
|
|
3
|
-
import { CollectionName, DocumentData } from '../public-types/document.public-types';
|
|
4
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
5
|
-
export declare class QueryContext<T extends DocumentData = any> {
|
|
6
|
-
readonly query: Query<T>;
|
|
7
|
-
private readonly parsedConditions;
|
|
8
|
-
constructor(query: Query<T>);
|
|
9
|
-
get integrationId(): IntegrationId;
|
|
10
|
-
get collectionName(): CollectionName;
|
|
11
|
-
get limit(): number;
|
|
12
|
-
sortedBy(sorts: Array<PartialBy<FieldSort<T>, 'asc'>>): boolean;
|
|
13
|
-
sortedByExact(sorts: Array<PartialBy<FieldSort<T>, 'asc'>>): boolean;
|
|
14
|
-
isSubqueryOf<F extends Paths<T>, O extends AllOperators>(fieldName: F, operator: O, value: GenericValue<T, F, O> | null): boolean;
|
|
15
|
-
isSubqueryOfCondition(condition: GeneralCondition<T>): boolean;
|
|
16
|
-
isSubqueryOfConditions(conditions: GeneralConditions<T>): boolean;
|
|
17
|
-
isSubqueryOfQuery(query: Query<T>): boolean;
|
|
18
|
-
getConditionsFor<K extends Paths<T>>(...fieldNames: Array<K>): ContextConditions<T, K>;
|
|
19
|
-
getConditionsForField<K extends Paths<T>>(fieldName: K): ContextConditions<T>;
|
|
20
|
-
documentMatchesQuery(doc: DocumentData): boolean;
|
|
21
|
-
private evaluateSubset;
|
|
22
|
-
private parseConditions;
|
|
23
|
-
}
|
|
24
|
-
export type ContextConditions<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> = Array<ContextCondition<Doc, F>>;
|
|
25
|
-
export type ContextCondition<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> = InContextCondition<Doc, F> | NotInContextCondition<Doc, F> | OtherContextCondition<Doc, F>;
|
|
26
|
-
export interface InContextCondition<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> extends SimpleCondition<Doc, F, 'in'> {
|
|
27
|
-
operator: 'in';
|
|
28
|
-
value: Array<FieldOf<DeepRecord<Doc>, Paths<Doc>> | any>;
|
|
29
|
-
}
|
|
30
|
-
export interface NotInContextCondition<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> extends SimpleCondition<Doc, F, 'not in'> {
|
|
31
|
-
operator: 'not in';
|
|
32
|
-
value: Array<FieldOf<DeepRecord<Doc>, Paths<Doc>> | any>;
|
|
33
|
-
}
|
|
34
|
-
export interface OtherContextCondition<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> extends SimpleCondition<Doc, F, Exclude<ContextOperator, 'in' | 'not in'>> {
|
|
35
|
-
operator: Exclude<ContextOperator, 'in' | 'not in'>;
|
|
36
|
-
value: FieldOf<DeepRecord<Doc>, Paths<Doc>> | any;
|
|
37
|
-
}
|
|
38
|
-
export interface GeneralCondition<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> extends SimpleCondition<Doc, F, AllOperators> {
|
|
39
|
-
operator: AllOperators;
|
|
40
|
-
value: any;
|
|
41
|
-
}
|
|
42
|
-
export type GeneralConditions<Doc extends DocumentData = any, F extends Paths<Doc> = Paths<Doc>> = Array<GeneralCondition<Doc, F>>;
|
|
43
|
-
export type ContextOperator = Exclude<Operator, '==' | '!='> | 'in' | 'not in';
|
|
44
|
-
type AllOperators = Operator | 'in' | 'not in';
|
|
45
|
-
export type GenericValue<Doc = any, F extends Paths<Doc> = Paths<Doc>, O extends AllOperators = any> = O extends 'in' ? Array<DeepRecord<Doc>[F]> | null : O extends 'not in' ? Array<DeepRecord<Doc>[F]> | null : DeepRecord<Doc>[F] | null;
|
|
46
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { StorageActionType } from './bundle-data.public-types';
|
|
2
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
3
|
-
export type StorageFunctionality = 'fileUpload' | 'getFileMetadata' | 'getDownloadUrl' | 'deleteFiles' | 'listDirectoryContents';
|
|
4
|
-
export interface StorageContext {
|
|
5
|
-
integrationId: IntegrationId;
|
|
6
|
-
pathsInBucket: Array<string>;
|
|
7
|
-
action: StorageActionType;
|
|
8
|
-
functionality: StorageFunctionality;
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
2
|
-
export interface TopicReadContext {
|
|
3
|
-
integrationId: IntegrationId;
|
|
4
|
-
topicName: string;
|
|
5
|
-
}
|
|
6
|
-
export interface TopicWriteContext<T> {
|
|
7
|
-
integrationId: IntegrationId;
|
|
8
|
-
topicName: string;
|
|
9
|
-
messages: Array<T>;
|
|
10
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { AgentContextRequest, AiAgent, AiAgentChatOptions, AiAgentContext, AiAudioCreateSpeechOptions, AiChatModelName, AiContextMetadata, AiContextMetadataFilter, AiGenerateImageOptions, AiSearchOptions, AiSearchResultChunk, AllAiAgentChatOptions, ApiKeySource } from '../public-types/ai-agent.public-types';
|
|
2
|
-
import { AiAgentId, AppId, ClientRequestId } from '../public-types/communication.public-types';
|
|
3
|
-
import { O11Y_TAG_AI_MODEL, O11Y_TAG_AI_PROFILE, O11Y_TAG_API_KEY_SOURCE } from './observability.types';
|
|
4
|
-
type ModelDataType = {
|
|
5
|
-
maxTokens: number;
|
|
6
|
-
defaultTokens: number;
|
|
7
|
-
};
|
|
8
|
-
export declare const AiModelData: Record<AiChatModelName, ModelDataType>;
|
|
9
|
-
export interface AiChatRequest {
|
|
10
|
-
agentId: AiAgentId;
|
|
11
|
-
clientRequestId: ClientRequestId;
|
|
12
|
-
prompt?: string;
|
|
13
|
-
options?: AllAiAgentChatOptions;
|
|
14
|
-
}
|
|
15
|
-
export interface AiAskRequest {
|
|
16
|
-
agentId: AiAgentId;
|
|
17
|
-
prompt?: string;
|
|
18
|
-
options?: AllAiAgentChatOptions;
|
|
19
|
-
}
|
|
20
|
-
export interface AiGenerateImageRequest {
|
|
21
|
-
prompt: string;
|
|
22
|
-
options: AiGenerateImageOptions;
|
|
23
|
-
}
|
|
24
|
-
export interface AiAskQuestionInternalRequest {
|
|
25
|
-
appId: AppId;
|
|
26
|
-
prompt: string;
|
|
27
|
-
options: AiAgentChatOptions;
|
|
28
|
-
}
|
|
29
|
-
export interface AiAskQuestionInternalResponse {
|
|
30
|
-
answer: string;
|
|
31
|
-
}
|
|
32
|
-
export interface AiContextSizeRequest {
|
|
33
|
-
appId: AppId;
|
|
34
|
-
agentId: AiAgentId;
|
|
35
|
-
}
|
|
36
|
-
export interface AiContextSizeResponse {
|
|
37
|
-
sizeBytes: number;
|
|
38
|
-
}
|
|
39
|
-
export interface AiMetricTag extends Record<string, string> {
|
|
40
|
-
[O11Y_TAG_AI_PROFILE]: string;
|
|
41
|
-
[O11Y_TAG_AI_MODEL]: AiChatModelName;
|
|
42
|
-
[O11Y_TAG_API_KEY_SOURCE]: ApiKeySource;
|
|
43
|
-
}
|
|
44
|
-
export interface AiAskResponse {
|
|
45
|
-
responseString: string;
|
|
46
|
-
}
|
|
47
|
-
export interface AiAskWithVoiceResponse {
|
|
48
|
-
responseString: string;
|
|
49
|
-
voiceResponse: AiAudioCreateSpeechResponse;
|
|
50
|
-
}
|
|
51
|
-
export interface AiTranscribeAndAskWithVoiceResponse {
|
|
52
|
-
transcribedPrompt: string;
|
|
53
|
-
responseString: string;
|
|
54
|
-
voiceResponse: AiAudioCreateSpeechResponse;
|
|
55
|
-
}
|
|
56
|
-
export interface AiTranscribeAndChatResponse {
|
|
57
|
-
transcribedPrompt: string;
|
|
58
|
-
}
|
|
59
|
-
export interface AiSearchRequest {
|
|
60
|
-
options: AiSearchOptions;
|
|
61
|
-
agentId: AiAgentId;
|
|
62
|
-
}
|
|
63
|
-
export interface AiSearchResponse {
|
|
64
|
-
chunks: Array<AiSearchResultChunk>;
|
|
65
|
-
}
|
|
66
|
-
export interface AiAudioCreateSpeechResponse {
|
|
67
|
-
mimeType: string;
|
|
68
|
-
extension: string;
|
|
69
|
-
base64File: string;
|
|
70
|
-
}
|
|
71
|
-
export interface AiAudioCreateSpeechRequest {
|
|
72
|
-
input: string;
|
|
73
|
-
options: AiAudioCreateSpeechOptions;
|
|
74
|
-
}
|
|
75
|
-
export interface GetAgentRequest {
|
|
76
|
-
agentId: AiAgentId;
|
|
77
|
-
}
|
|
78
|
-
export interface GetAgentResponse {
|
|
79
|
-
agent: AiAgent | undefined;
|
|
80
|
-
}
|
|
81
|
-
export interface GetAgentContextRequest {
|
|
82
|
-
agentId: AiAgentId;
|
|
83
|
-
contextId: string;
|
|
84
|
-
}
|
|
85
|
-
export interface DeleteAgentRequest {
|
|
86
|
-
agentId: AiAgentId;
|
|
87
|
-
}
|
|
88
|
-
export interface ListAgentContextsRequest {
|
|
89
|
-
agentId: AiAgentId;
|
|
90
|
-
}
|
|
91
|
-
export interface ListAgentContextsResponse {
|
|
92
|
-
contexts: Array<AiAgentContext>;
|
|
93
|
-
}
|
|
94
|
-
export interface DeleteAgentContextsRequest {
|
|
95
|
-
agentId: AiAgentId;
|
|
96
|
-
contextIds: Array<string>;
|
|
97
|
-
}
|
|
98
|
-
export interface UpsertAgentContextsRequest {
|
|
99
|
-
agentId: AiAgentId;
|
|
100
|
-
contextRequests: Array<AgentContextRequest>;
|
|
101
|
-
}
|
|
102
|
-
export interface UpsertAgentCustomGuardrailsRequest {
|
|
103
|
-
agentId: AiAgentId;
|
|
104
|
-
customGuardrail: string;
|
|
105
|
-
}
|
|
106
|
-
export interface DeleteAgentCustomGuardrailsRequest {
|
|
107
|
-
agentId: AiAgentId;
|
|
108
|
-
}
|
|
109
|
-
export interface ProvideAgentFeedbackRequest {
|
|
110
|
-
agentId: AiAgentId;
|
|
111
|
-
feedback: string;
|
|
112
|
-
}
|
|
113
|
-
export interface ResetAgentFeedbackRequest {
|
|
114
|
-
agentId: AiAgentId;
|
|
115
|
-
}
|
|
116
|
-
export interface ListAgentsResponse {
|
|
117
|
-
agents: Array<AiAgent>;
|
|
118
|
-
}
|
|
119
|
-
export declare function validateAiContextMetadata(metadata: AiContextMetadata): void;
|
|
120
|
-
export declare function validateAiContextMetadataFilter(filter: AiContextMetadataFilter): void;
|
|
121
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ApiEndpointId, CallApiOptions, HttpMethod, OpenApiDiscoveryOptions } from '../public-types/integrations/api.public-types';
|
|
2
|
-
import { IntegrationId } from '../public-types/communication.public-types';
|
|
3
|
-
import { ApiOptions } from '../public-types/api-client.public-types';
|
|
4
|
-
import { IntegrationType } from '../public-types/integration.public-types';
|
|
5
|
-
export type ApiQueryParams = Record<string, string>;
|
|
6
|
-
export interface CallApiRequest {
|
|
7
|
-
integrationId: IntegrationId;
|
|
8
|
-
endpointId: ApiEndpointId;
|
|
9
|
-
request: Record<string, any>;
|
|
10
|
-
options: CallApiOptions;
|
|
11
|
-
}
|
|
12
|
-
export interface ExtractedApiParams {
|
|
13
|
-
headers: Record<string, string>;
|
|
14
|
-
queryParams: ApiQueryParams;
|
|
15
|
-
body: Record<string, any>;
|
|
16
|
-
pathParams: Record<string, string>;
|
|
17
|
-
}
|
|
18
|
-
export interface SecureApiRequest {
|
|
19
|
-
integrationId: IntegrationId;
|
|
20
|
-
endpointId: ApiEndpointId;
|
|
21
|
-
url: string;
|
|
22
|
-
body: unknown;
|
|
23
|
-
method: HttpMethod;
|
|
24
|
-
options: ApiOptions;
|
|
25
|
-
}
|
|
26
|
-
export interface DiscoverOpenApiSchemaRequest {
|
|
27
|
-
integrationId: IntegrationId;
|
|
28
|
-
integrationType: Extract<IntegrationType, 'api'>;
|
|
29
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
30
|
-
}
|
|
31
|
-
export interface DiscoverOpenApiSchemaFromFileRequest {
|
|
32
|
-
integrationId: IntegrationId;
|
|
33
|
-
integrationType: Extract<IntegrationType, 'api'>;
|
|
34
|
-
}
|