@squidcloud/client 1.0.148 → 1.0.150
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/cjs/index.js +8793 -8818
- package/dist/common/src/ai-assistant.types.d.ts +25 -25
- package/dist/common/src/ai-chatbot.context.d.ts +12 -12
- package/dist/common/src/ai-chatbot.schemas.d.ts +1 -1
- package/dist/common/src/ai-chatbot.types.d.ts +27 -27
- package/dist/common/src/api-call.context.d.ts +13 -13
- package/dist/common/src/api.types.d.ts +4 -4
- package/dist/common/src/application.schemas.d.ts +66 -66
- package/dist/common/src/application.types.d.ts +141 -143
- package/dist/common/src/backend-function.schemas.d.ts +1 -1
- package/dist/common/src/backend-function.types.d.ts +1 -1
- package/dist/common/src/backend-run.types.d.ts +2 -2
- package/dist/common/src/bundle-api.types.d.ts +41 -43
- package/dist/common/src/bundle-data.types.d.ts +5 -5
- package/dist/common/src/communication.types.d.ts +10 -8
- package/dist/common/src/context.types.d.ts +40 -40
- package/dist/common/src/distributed-lock.context.d.ts +4 -4
- package/dist/common/src/document.types.d.ts +22 -22
- package/dist/common/src/graphql.context.d.ts +7 -7
- package/dist/common/src/graphql.types.d.ts +9 -9
- package/dist/common/src/heartbeat.types.d.ts +1 -1
- package/dist/common/src/http-status.enum.d.ts +50 -50
- package/dist/common/src/index.d.ts +54 -57
- package/dist/common/src/integrations/ai_chatbot.types.d.ts +31 -31
- package/dist/common/src/integrations/api.types.d.ts +80 -80
- package/dist/common/src/integrations/auth.types.d.ts +47 -47
- package/dist/common/src/integrations/database.types.d.ts +274 -274
- package/dist/common/src/integrations/index.d.ts +134 -134
- package/dist/common/src/integrations/observability.types.d.ts +23 -23
- package/dist/common/src/logger.types.d.ts +21 -21
- package/dist/common/src/metrics.types.d.ts +1 -1
- package/dist/common/src/mutation.context.d.ts +14 -14
- package/dist/common/src/mutation.schemas.d.ts +1 -1
- package/dist/common/src/mutation.types.d.ts +53 -53
- package/dist/common/src/native-query.context.d.ts +7 -7
- package/dist/common/src/native-query.types.d.ts +16 -16
- package/dist/common/src/query/base-query-builder.d.ts +147 -147
- package/dist/common/src/query/index.d.ts +4 -4
- package/dist/common/src/query/pagination.d.ts +62 -62
- package/dist/common/src/query/query-context.d.ts +137 -137
- package/dist/common/src/query/serialized-query.types.d.ts +24 -24
- package/dist/common/src/query.types.d.ts +64 -64
- package/dist/common/src/regions.d.ts +1 -1
- package/dist/common/src/schema/schema.types.d.ts +54 -54
- package/dist/common/src/secret.schemas.d.ts +1 -1
- package/dist/common/src/secret.types.d.ts +22 -22
- package/dist/common/src/security.types.d.ts +1 -1
- package/dist/common/src/socket.schemas.d.ts +1 -1
- package/dist/common/src/socket.types.d.ts +5 -5
- package/dist/common/src/time-units.d.ts +1 -1
- package/dist/common/src/trigger.types.d.ts +1 -1
- package/dist/common/src/types.d.ts +14 -14
- package/dist/common/src/utils/array.d.ts +1 -1
- package/dist/common/src/utils/assert.d.ts +1 -1
- package/dist/common/src/utils/error.d.ts +4 -4
- package/dist/common/src/utils/global.utils.d.ts +1 -1
- package/dist/common/src/utils/http.d.ts +2 -2
- package/dist/common/src/utils/id.d.ts +2 -2
- package/dist/common/src/utils/lock.manager.d.ts +14 -14
- package/dist/common/src/utils/object.d.ts +5 -5
- package/dist/common/src/utils/serialization.d.ts +5 -5
- package/dist/common/src/utils/transforms.d.ts +18 -18
- package/dist/common/src/utils/url.d.ts +1 -1
- package/dist/common/src/utils/validation.d.ts +25 -25
- package/dist/common/src/webhook-response.d.ts +1 -1
- package/dist/common/src/websocket.impl.d.ts +21 -21
- package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -1239
- package/dist/typescript-client/src/ai-assistant-client.d.ts +73 -73
- package/dist/typescript-client/src/ai-chatbot-client.d.ts +174 -174
- package/dist/typescript-client/src/ai-chatbot-client.factory.d.ts +8 -8
- package/dist/typescript-client/src/ai.types.d.ts +61 -61
- package/dist/typescript-client/src/api.manager.d.ts +11 -11
- package/dist/typescript-client/src/auth.manager.d.ts +26 -26
- package/dist/typescript-client/src/backend-function.manager.d.ts +9 -9
- package/dist/typescript-client/src/client-id.service.d.ts +27 -27
- package/dist/typescript-client/src/collection-reference.d.ts +80 -80
- package/dist/typescript-client/src/collection-reference.factory.d.ts +13 -13
- package/dist/typescript-client/src/connection-details.d.ts +23 -23
- package/dist/typescript-client/src/data.manager.d.ts +174 -174
- package/dist/typescript-client/src/destruct.manager.d.ts +12 -12
- package/dist/typescript-client/src/distributed-lock.manager.d.ts +16 -16
- package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
- package/dist/typescript-client/src/document-reference.d.ts +140 -140
- package/dist/typescript-client/src/document-reference.factory.d.ts +13 -13
- package/dist/typescript-client/src/document-store.d.ts +14 -14
- package/dist/typescript-client/src/graphql-client.d.ts +14 -14
- package/dist/typescript-client/src/graphql-client.factory.d.ts +11 -11
- package/dist/typescript-client/src/index.d.ts +9 -9
- package/dist/typescript-client/src/mutation/mutation-sender.d.ts +10 -10
- package/dist/typescript-client/src/native-query-manager.d.ts +7 -7
- package/dist/typescript-client/src/query/deserializer.d.ts +3 -3
- package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +161 -161
- package/dist/typescript-client/src/query/local-query-manager.d.ts +9 -9
- package/dist/typescript-client/src/query/query-builder.factory.d.ts +77 -77
- package/dist/typescript-client/src/query/query-sender.d.ts +33 -33
- package/dist/typescript-client/src/query/query-subscription.manager.d.ts +131 -131
- package/dist/typescript-client/src/query/query.types.d.ts +49 -49
- package/dist/typescript-client/src/rate-limiter.d.ts +32 -32
- package/dist/typescript-client/src/rpc.manager.d.ts +30 -30
- package/dist/typescript-client/src/secret.client.d.ts +22 -22
- package/dist/typescript-client/src/socket.manager.d.ts +43 -43
- package/dist/typescript-client/src/squid.d.ts +238 -269
- package/dist/typescript-client/src/state/state.service.spec.d.ts +1 -1
- package/dist/typescript-client/src/testing/setup-tests.d.ts +1 -1
- package/dist/typescript-client/src/types.d.ts +2 -2
- package/package.json +2 -2
- package/dist/common/src/named-query.context.d.ts +0 -4
- package/dist/common/src/named-query.schemas.d.ts +0 -1
- package/dist/common/src/named-query.types.d.ts +0 -1
- package/dist/typescript-client/src/named-query.manager.d.ts +0 -11
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { FunctionName } from './bundle-data.types';
|
|
2
|
-
export type AssistantToolType = 'code_interpreter' | 'retrieval';
|
|
3
|
-
export interface CreateAssistantRequest {
|
|
4
|
-
name: string;
|
|
5
|
-
instructions: string;
|
|
6
|
-
functions: Array<FunctionName>;
|
|
7
|
-
toolTypes?: Array<AssistantToolType>;
|
|
8
|
-
}
|
|
9
|
-
export interface DeleteAssistantRequest {
|
|
10
|
-
assistantId: string;
|
|
11
|
-
}
|
|
12
|
-
export interface CreateAssistantThreadRequest {
|
|
13
|
-
assistantId: string;
|
|
14
|
-
}
|
|
15
|
-
export interface DeleteThreadRequest {
|
|
16
|
-
threadId: string;
|
|
17
|
-
}
|
|
18
|
-
export interface CreateAssistantThreadRequest {
|
|
19
|
-
}
|
|
20
|
-
export interface CreateAssistantResponse {
|
|
21
|
-
assistantId: string;
|
|
22
|
-
}
|
|
23
|
-
export interface CreateAssistantThreadResponse {
|
|
24
|
-
threadId: string;
|
|
25
|
-
}
|
|
1
|
+
import { FunctionName } from './bundle-data.types';
|
|
2
|
+
export type AssistantToolType = 'code_interpreter' | 'retrieval';
|
|
3
|
+
export interface CreateAssistantRequest {
|
|
4
|
+
name: string;
|
|
5
|
+
instructions: string;
|
|
6
|
+
functions: Array<FunctionName>;
|
|
7
|
+
toolTypes?: Array<AssistantToolType>;
|
|
8
|
+
}
|
|
9
|
+
export interface DeleteAssistantRequest {
|
|
10
|
+
assistantId: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CreateAssistantThreadRequest {
|
|
13
|
+
assistantId: string;
|
|
14
|
+
}
|
|
15
|
+
export interface DeleteThreadRequest {
|
|
16
|
+
threadId: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateAssistantThreadRequest {
|
|
19
|
+
}
|
|
20
|
+
export interface CreateAssistantResponse {
|
|
21
|
+
assistantId: string;
|
|
22
|
+
}
|
|
23
|
+
export interface CreateAssistantThreadResponse {
|
|
24
|
+
threadId: string;
|
|
25
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { AiChatbotMutationType, AiChatbotResourceType } from './ai-chatbot.types';
|
|
2
|
-
export declare class AiChatbotChatContext {
|
|
3
|
-
readonly prompt: string;
|
|
4
|
-
readonly profileId: string;
|
|
5
|
-
}
|
|
6
|
-
/** A context provided to the security rules of an AI Chatbot mutation. */
|
|
7
|
-
export declare class AiChatbotMutationContext {
|
|
8
|
-
readonly type: AiChatbotMutationType;
|
|
9
|
-
readonly resource: AiChatbotResourceType;
|
|
10
|
-
readonly profileId: string;
|
|
11
|
-
readonly payload: any;
|
|
12
|
-
}
|
|
1
|
+
import { AiChatbotMutationType, AiChatbotResourceType } from './ai-chatbot.types';
|
|
2
|
+
export declare class AiChatbotChatContext {
|
|
3
|
+
readonly prompt: string;
|
|
4
|
+
readonly profileId: string;
|
|
5
|
+
}
|
|
6
|
+
/** A context provided to the security rules of an AI Chatbot mutation. */
|
|
7
|
+
export declare class AiChatbotMutationContext {
|
|
8
|
+
readonly type: AiChatbotMutationType;
|
|
9
|
+
readonly resource: AiChatbotResourceType;
|
|
10
|
+
readonly profileId: string;
|
|
11
|
+
readonly payload: any;
|
|
12
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
/** The supported AI model names. */
|
|
2
|
-
export declare const AI_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-4", "claude-2", "gpt-4-1106-preview"];
|
|
3
|
-
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
4
|
-
/** The possible sources for the LLM provider API key. */
|
|
5
|
-
export type ApiKeySource = 'user' | 'system';
|
|
6
|
-
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
7
|
-
interface AiChatbotContextBase {
|
|
8
|
-
type: AiChatbotContextType;
|
|
9
|
-
data: string;
|
|
10
|
-
}
|
|
11
|
-
export interface AiChatbotTextContext extends AiChatbotContextBase {
|
|
12
|
-
type: 'text';
|
|
13
|
-
}
|
|
14
|
-
export interface AiChatbotUrlContext extends AiChatbotContextBase {
|
|
15
|
-
type: 'url';
|
|
16
|
-
}
|
|
17
|
-
export interface AiChatbotFileContext extends AiChatbotContextBase {
|
|
18
|
-
type: 'file';
|
|
19
|
-
}
|
|
20
|
-
export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
|
|
21
|
-
export interface AiChatbotChatOptions {
|
|
22
|
-
maxTokens?: number;
|
|
23
|
-
chatId?: string;
|
|
24
|
-
disableHistory?: boolean;
|
|
25
|
-
includeReference?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export {};
|
|
1
|
+
/** The supported AI model names. */
|
|
2
|
+
export declare const AI_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-4", "claude-2", "gpt-4-1106-preview"];
|
|
3
|
+
export type AiModelName = (typeof AI_MODEL_NAMES)[number];
|
|
4
|
+
/** The possible sources for the LLM provider API key. */
|
|
5
|
+
export type ApiKeySource = 'user' | 'system';
|
|
6
|
+
export type AiChatbotContextType = 'text' | 'url' | 'file';
|
|
7
|
+
interface AiChatbotContextBase {
|
|
8
|
+
type: AiChatbotContextType;
|
|
9
|
+
data: string;
|
|
10
|
+
}
|
|
11
|
+
export interface AiChatbotTextContext extends AiChatbotContextBase {
|
|
12
|
+
type: 'text';
|
|
13
|
+
}
|
|
14
|
+
export interface AiChatbotUrlContext extends AiChatbotContextBase {
|
|
15
|
+
type: 'url';
|
|
16
|
+
}
|
|
17
|
+
export interface AiChatbotFileContext extends AiChatbotContextBase {
|
|
18
|
+
type: 'file';
|
|
19
|
+
}
|
|
20
|
+
export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
|
|
21
|
+
export interface AiChatbotChatOptions {
|
|
22
|
+
maxTokens?: number;
|
|
23
|
+
chatId?: string;
|
|
24
|
+
disableHistory?: boolean;
|
|
25
|
+
includeReference?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ApiHeaders } from './api.types';
|
|
2
|
-
import { ApiEndpointId, HttpMethod } from './integrations';
|
|
3
|
-
/** The context of an API call. */
|
|
4
|
-
export declare class ApiCallContext {
|
|
5
|
-
readonly endpointId: ApiEndpointId;
|
|
6
|
-
readonly url: string;
|
|
7
|
-
readonly method: HttpMethod;
|
|
8
|
-
readonly headers: ApiHeaders;
|
|
9
|
-
readonly body: Record<string, any>;
|
|
10
|
-
readonly queryParams: Record<string, string | number | boolean>;
|
|
11
|
-
readonly pathParams: Record<string, string>;
|
|
12
|
-
readonly serverUrlOverride: string | undefined;
|
|
13
|
-
}
|
|
1
|
+
import { ApiHeaders } from './api.types';
|
|
2
|
+
import { ApiEndpointId, HttpMethod } from './integrations';
|
|
3
|
+
/** The context of an API call. */
|
|
4
|
+
export declare class ApiCallContext {
|
|
5
|
+
readonly endpointId: ApiEndpointId;
|
|
6
|
+
readonly url: string;
|
|
7
|
+
readonly method: HttpMethod;
|
|
8
|
+
readonly headers: ApiHeaders;
|
|
9
|
+
readonly body: Record<string, any>;
|
|
10
|
+
readonly queryParams: Record<string, string | number | boolean>;
|
|
11
|
+
readonly pathParams: Record<string, string>;
|
|
12
|
+
readonly serverUrlOverride: string | undefined;
|
|
13
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** The headers of an API call. */
|
|
2
|
-
export type ApiHeaders = Record<string, string | number | boolean>;
|
|
3
|
-
/** The query parameters of an API call. */
|
|
4
|
-
export type ApiQueryParams = Record<string, string | number | boolean>;
|
|
1
|
+
/** The headers of an API call. */
|
|
2
|
+
export type ApiHeaders = Record<string, string | number | boolean>;
|
|
3
|
+
/** The query parameters of an API call. */
|
|
4
|
+
export type ApiQueryParams = Record<string, string | number | boolean>;
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import { IntegrationSchemaType } from './integrations';
|
|
2
|
-
export declare const UpsertIntegrationSchemaRequestSchema: {
|
|
3
|
-
type: string;
|
|
4
|
-
required: string[];
|
|
5
|
-
properties: {
|
|
6
|
-
id: {
|
|
7
|
-
type: string;
|
|
8
|
-
nullable: boolean;
|
|
9
|
-
};
|
|
10
|
-
type: {
|
|
11
|
-
type: string;
|
|
12
|
-
nullable: boolean;
|
|
13
|
-
};
|
|
14
|
-
schema: {
|
|
15
|
-
oneOf: ({
|
|
16
|
-
type: string;
|
|
17
|
-
required: string[];
|
|
18
|
-
properties: {
|
|
19
|
-
type: {
|
|
20
|
-
const: IntegrationSchemaType;
|
|
21
|
-
};
|
|
22
|
-
collections: {
|
|
23
|
-
type: string;
|
|
24
|
-
nullable: boolean;
|
|
25
|
-
};
|
|
26
|
-
baseUrl?: undefined;
|
|
27
|
-
endpoints?: undefined;
|
|
28
|
-
introspection?: undefined;
|
|
29
|
-
};
|
|
30
|
-
} | {
|
|
31
|
-
type: string;
|
|
32
|
-
required: string[];
|
|
33
|
-
properties: {
|
|
34
|
-
type: {
|
|
35
|
-
const: IntegrationSchemaType;
|
|
36
|
-
};
|
|
37
|
-
baseUrl: {
|
|
38
|
-
type: string;
|
|
39
|
-
nullable: boolean;
|
|
40
|
-
};
|
|
41
|
-
endpoints: {
|
|
42
|
-
type: string;
|
|
43
|
-
nullable: boolean;
|
|
44
|
-
};
|
|
45
|
-
collections?: undefined;
|
|
46
|
-
introspection?: undefined;
|
|
47
|
-
};
|
|
48
|
-
} | {
|
|
49
|
-
type: string;
|
|
50
|
-
required: string[];
|
|
51
|
-
properties: {
|
|
52
|
-
type: {
|
|
53
|
-
const: IntegrationSchemaType;
|
|
54
|
-
};
|
|
55
|
-
introspection: {
|
|
56
|
-
type: string;
|
|
57
|
-
nullable: boolean;
|
|
58
|
-
};
|
|
59
|
-
collections?: undefined;
|
|
60
|
-
baseUrl?: undefined;
|
|
61
|
-
endpoints?: undefined;
|
|
62
|
-
};
|
|
63
|
-
})[];
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
1
|
+
import { IntegrationSchemaType } from './integrations';
|
|
2
|
+
export declare const UpsertIntegrationSchemaRequestSchema: {
|
|
3
|
+
type: string;
|
|
4
|
+
required: string[];
|
|
5
|
+
properties: {
|
|
6
|
+
id: {
|
|
7
|
+
type: string;
|
|
8
|
+
nullable: boolean;
|
|
9
|
+
};
|
|
10
|
+
type: {
|
|
11
|
+
type: string;
|
|
12
|
+
nullable: boolean;
|
|
13
|
+
};
|
|
14
|
+
schema: {
|
|
15
|
+
oneOf: ({
|
|
16
|
+
type: string;
|
|
17
|
+
required: string[];
|
|
18
|
+
properties: {
|
|
19
|
+
type: {
|
|
20
|
+
const: IntegrationSchemaType;
|
|
21
|
+
};
|
|
22
|
+
collections: {
|
|
23
|
+
type: string;
|
|
24
|
+
nullable: boolean;
|
|
25
|
+
};
|
|
26
|
+
baseUrl?: undefined;
|
|
27
|
+
endpoints?: undefined;
|
|
28
|
+
introspection?: undefined;
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
31
|
+
type: string;
|
|
32
|
+
required: string[];
|
|
33
|
+
properties: {
|
|
34
|
+
type: {
|
|
35
|
+
const: IntegrationSchemaType;
|
|
36
|
+
};
|
|
37
|
+
baseUrl: {
|
|
38
|
+
type: string;
|
|
39
|
+
nullable: boolean;
|
|
40
|
+
};
|
|
41
|
+
endpoints: {
|
|
42
|
+
type: string;
|
|
43
|
+
nullable: boolean;
|
|
44
|
+
};
|
|
45
|
+
collections?: undefined;
|
|
46
|
+
introspection?: undefined;
|
|
47
|
+
};
|
|
48
|
+
} | {
|
|
49
|
+
type: string;
|
|
50
|
+
required: string[];
|
|
51
|
+
properties: {
|
|
52
|
+
type: {
|
|
53
|
+
const: IntegrationSchemaType;
|
|
54
|
+
};
|
|
55
|
+
introspection: {
|
|
56
|
+
type: string;
|
|
57
|
+
nullable: boolean;
|
|
58
|
+
};
|
|
59
|
+
collections?: undefined;
|
|
60
|
+
baseUrl?: undefined;
|
|
61
|
+
endpoints?: undefined;
|
|
62
|
+
};
|
|
63
|
+
})[];
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
@@ -1,143 +1,141 @@
|
|
|
1
|
-
import { AppId, EnvironmentId, IntegrationId } from './communication.types';
|
|
2
|
-
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationType, IntegrationTypeWithConfig } from './integrations';
|
|
3
|
-
/** A type alias for a string that represents a webhook. */
|
|
4
|
-
export type WebhookId = string;
|
|
5
|
-
/** A type alias for a string that represents a
|
|
6
|
-
export type
|
|
7
|
-
/** A type alias for a string that represents a
|
|
8
|
-
export type
|
|
9
|
-
/**
|
|
10
|
-
export type
|
|
11
|
-
/**
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
export type
|
|
121
|
-
export type
|
|
122
|
-
export type
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
export type
|
|
137
|
-
export type
|
|
138
|
-
export
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
}
|
|
143
|
-
export {};
|
|
1
|
+
import { AppId, EnvironmentId, IntegrationId } from './communication.types';
|
|
2
|
+
import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationType, IntegrationTypeWithConfig } from './integrations';
|
|
3
|
+
/** A type alias for a string that represents a webhook. */
|
|
4
|
+
export type WebhookId = string;
|
|
5
|
+
/** A type alias for a string that represents a trigger id. */
|
|
6
|
+
export type TriggerId = string;
|
|
7
|
+
/** A type alias for a string that represents a scheduler id. */
|
|
8
|
+
export type SchedulerId = string;
|
|
9
|
+
/** The supported cron expression string. */
|
|
10
|
+
export type CronExpressionString = `${string} ${string} ${string} ${string} ${string}` | `${string} ${string} ${string} ${string}`;
|
|
11
|
+
/** A set of predefined cron expressions. */
|
|
12
|
+
export declare enum CronExpression {
|
|
13
|
+
EVERY_SECOND = "* * * * * *",
|
|
14
|
+
EVERY_5_SECONDS = "*/5 * * * * *",
|
|
15
|
+
EVERY_10_SECONDS = "*/10 * * * * *",
|
|
16
|
+
EVERY_30_SECONDS = "*/30 * * * * *",
|
|
17
|
+
EVERY_MINUTE = "*/1 * * * *",
|
|
18
|
+
EVERY_5_MINUTES = "0 */5 * * * *",
|
|
19
|
+
EVERY_10_MINUTES = "0 */10 * * * *",
|
|
20
|
+
EVERY_30_MINUTES = "0 */30 * * * *",
|
|
21
|
+
EVERY_HOUR = "0 0-23/1 * * *",
|
|
22
|
+
EVERY_2_HOURS = "0 0-23/2 * * *",
|
|
23
|
+
EVERY_3_HOURS = "0 0-23/3 * * *",
|
|
24
|
+
EVERY_4_HOURS = "0 0-23/4 * * *",
|
|
25
|
+
EVERY_5_HOURS = "0 0-23/5 * * *",
|
|
26
|
+
EVERY_6_HOURS = "0 0-23/6 * * *",
|
|
27
|
+
EVERY_7_HOURS = "0 0-23/7 * * *",
|
|
28
|
+
EVERY_8_HOURS = "0 0-23/8 * * *",
|
|
29
|
+
EVERY_9_HOURS = "0 0-23/9 * * *",
|
|
30
|
+
EVERY_10_HOURS = "0 0-23/10 * * *",
|
|
31
|
+
EVERY_11_HOURS = "0 0-23/11 * * *",
|
|
32
|
+
EVERY_12_HOURS = "0 0-23/12 * * *",
|
|
33
|
+
EVERY_DAY_AT_1AM = "0 01 * * *",
|
|
34
|
+
EVERY_DAY_AT_2AM = "0 02 * * *",
|
|
35
|
+
EVERY_DAY_AT_3AM = "0 03 * * *",
|
|
36
|
+
EVERY_DAY_AT_4AM = "0 04 * * *",
|
|
37
|
+
EVERY_DAY_AT_5AM = "0 05 * * *",
|
|
38
|
+
EVERY_DAY_AT_6AM = "0 06 * * *",
|
|
39
|
+
EVERY_DAY_AT_7AM = "0 07 * * *",
|
|
40
|
+
EVERY_DAY_AT_8AM = "0 08 * * *",
|
|
41
|
+
EVERY_DAY_AT_9AM = "0 09 * * *",
|
|
42
|
+
EVERY_DAY_AT_10AM = "0 10 * * *",
|
|
43
|
+
EVERY_DAY_AT_11AM = "0 11 * * *",
|
|
44
|
+
EVERY_DAY_AT_NOON = "0 12 * * *",
|
|
45
|
+
EVERY_DAY_AT_1PM = "0 13 * * *",
|
|
46
|
+
EVERY_DAY_AT_2PM = "0 14 * * *",
|
|
47
|
+
EVERY_DAY_AT_3PM = "0 15 * * *",
|
|
48
|
+
EVERY_DAY_AT_4PM = "0 16 * * *",
|
|
49
|
+
EVERY_DAY_AT_5PM = "0 17 * * *",
|
|
50
|
+
EVERY_DAY_AT_6PM = "0 18 * * *",
|
|
51
|
+
EVERY_DAY_AT_7PM = "0 19 * * *",
|
|
52
|
+
EVERY_DAY_AT_8PM = "0 20 * * *",
|
|
53
|
+
EVERY_DAY_AT_9PM = "0 21 * * *",
|
|
54
|
+
EVERY_DAY_AT_10PM = "0 22 * * *",
|
|
55
|
+
EVERY_DAY_AT_11PM = "0 23 * * *",
|
|
56
|
+
EVERY_DAY_AT_MIDNIGHT = "0 0 * * *",
|
|
57
|
+
EVERY_WEEK = "0 0 * * 7",
|
|
58
|
+
EVERY_WEEKDAY = "0 0 * * 1-5",
|
|
59
|
+
EVERY_WEEKEND = "0 0 * * 6,7",
|
|
60
|
+
EVERY_1ST_DAY_OF_MONTH_AT_MIDNIGHT = "0 0 1 * *",
|
|
61
|
+
EVERY_1ST_DAY_OF_MONTH_AT_NOON = "0 12 1 * *",
|
|
62
|
+
EVERY_2ND_HOUR = "0 */2 * * *",
|
|
63
|
+
EVERY_2ND_HOUR_FROM_1AM_THROUGH_11PM = "0 1-23/2 * * *",
|
|
64
|
+
EVERY_2ND_MONTH = "0 0 1 */2 *",
|
|
65
|
+
EVERY_QUARTER = "0 0 1 */3 *",
|
|
66
|
+
EVERY_6_MONTHS = "0 0 1 */6 *",
|
|
67
|
+
EVERY_YEAR = "0 0 1 1 *",
|
|
68
|
+
EVERY_30_MINUTES_BETWEEN_9AM_AND_5PM = "0 */30 9-17 * * *",
|
|
69
|
+
EVERY_30_MINUTES_BETWEEN_9AM_AND_6PM = "0 */30 9-18 * * *",
|
|
70
|
+
EVERY_30_MINUTES_BETWEEN_10AM_AND_7PM = "0 */30 10-19 * * *",
|
|
71
|
+
MONDAY_TO_FRIDAY_AT_1AM = "0 0 01 * * 1-5",
|
|
72
|
+
MONDAY_TO_FRIDAY_AT_2AM = "0 0 02 * * 1-5",
|
|
73
|
+
MONDAY_TO_FRIDAY_AT_3AM = "0 0 03 * * 1-5",
|
|
74
|
+
MONDAY_TO_FRIDAY_AT_4AM = "0 0 04 * * 1-5",
|
|
75
|
+
MONDAY_TO_FRIDAY_AT_5AM = "0 0 05 * * 1-5",
|
|
76
|
+
MONDAY_TO_FRIDAY_AT_6AM = "0 0 06 * * 1-5",
|
|
77
|
+
MONDAY_TO_FRIDAY_AT_7AM = "0 0 07 * * 1-5",
|
|
78
|
+
MONDAY_TO_FRIDAY_AT_8AM = "0 0 08 * * 1-5",
|
|
79
|
+
MONDAY_TO_FRIDAY_AT_9AM = "0 0 09 * * 1-5",
|
|
80
|
+
MONDAY_TO_FRIDAY_AT_09_30AM = "0 30 09 * * 1-5",
|
|
81
|
+
MONDAY_TO_FRIDAY_AT_10AM = "0 0 10 * * 1-5",
|
|
82
|
+
MONDAY_TO_FRIDAY_AT_11AM = "0 0 11 * * 1-5",
|
|
83
|
+
MONDAY_TO_FRIDAY_AT_11_30AM = "0 30 11 * * 1-5",
|
|
84
|
+
MONDAY_TO_FRIDAY_AT_12PM = "0 0 12 * * 1-5",
|
|
85
|
+
MONDAY_TO_FRIDAY_AT_1PM = "0 0 13 * * 1-5",
|
|
86
|
+
MONDAY_TO_FRIDAY_AT_2PM = "0 0 14 * * 1-5",
|
|
87
|
+
MONDAY_TO_FRIDAY_AT_3PM = "0 0 15 * * 1-5",
|
|
88
|
+
MONDAY_TO_FRIDAY_AT_4PM = "0 0 16 * * 1-5",
|
|
89
|
+
MONDAY_TO_FRIDAY_AT_5PM = "0 0 17 * * 1-5",
|
|
90
|
+
MONDAY_TO_FRIDAY_AT_6PM = "0 0 18 * * 1-5",
|
|
91
|
+
MONDAY_TO_FRIDAY_AT_7PM = "0 0 19 * * 1-5",
|
|
92
|
+
MONDAY_TO_FRIDAY_AT_8PM = "0 0 20 * * 1-5",
|
|
93
|
+
MONDAY_TO_FRIDAY_AT_9PM = "0 0 21 * * 1-5",
|
|
94
|
+
MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
|
|
95
|
+
MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
|
|
96
|
+
}
|
|
97
|
+
export interface DeleteIntegrationRequest {
|
|
98
|
+
integrationId: IntegrationId;
|
|
99
|
+
}
|
|
100
|
+
export interface UpdateAllowedHostsRequest {
|
|
101
|
+
allowedHosts: string[];
|
|
102
|
+
}
|
|
103
|
+
export interface CreateEnvironmentRequest {
|
|
104
|
+
sourceAppId: AppId;
|
|
105
|
+
environmentId: EnvironmentId;
|
|
106
|
+
}
|
|
107
|
+
interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
|
|
108
|
+
id: IntegrationId;
|
|
109
|
+
type: T;
|
|
110
|
+
config: Partial<C>;
|
|
111
|
+
}
|
|
112
|
+
type ConfigurationTypes = {
|
|
113
|
+
[K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
|
|
114
|
+
};
|
|
115
|
+
type UpsertIntegrationRequests = {
|
|
116
|
+
[K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
|
|
117
|
+
};
|
|
118
|
+
export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
|
|
119
|
+
export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
|
|
120
|
+
export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
|
|
121
|
+
export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_chatbot];
|
|
122
|
+
export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
|
|
123
|
+
interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
|
|
124
|
+
id: IntegrationId;
|
|
125
|
+
type: T;
|
|
126
|
+
schema: S;
|
|
127
|
+
}
|
|
128
|
+
type SchemaTypes = {
|
|
129
|
+
[K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
|
|
130
|
+
};
|
|
131
|
+
type UpsertIntegrationSchemaRequests = {
|
|
132
|
+
[K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
|
|
133
|
+
};
|
|
134
|
+
export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
|
|
135
|
+
export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
|
|
136
|
+
export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
|
|
137
|
+
export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
|
|
138
|
+
export interface GetSchemaRequest {
|
|
139
|
+
integrationId: IntegrationId;
|
|
140
|
+
}
|
|
141
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ApplicationSecrets } from './secret.types';
|
|
2
|
-
export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
|
|
1
|
+
import { ApplicationSecrets } from './secret.types';
|
|
2
|
+
export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
|