@squidcloud/client 1.0.64 → 1.0.66
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/common/src/ai-assistant.context.d.ts +12 -11
- package/dist/common/src/ai-assistant.schemas.d.ts +1 -210
- package/dist/common/src/ai-assistant.types.d.ts +2 -81
- package/dist/common/src/api-call.context.d.ts +13 -12
- package/dist/common/src/api.types.d.ts +4 -24
- package/dist/common/src/application.schemas.d.ts +1 -1060
- package/dist/common/src/application.types.d.ts +184 -224
- package/dist/common/src/auth.types.d.ts +1 -4
- package/dist/common/src/backend-function.schemas.d.ts +1 -3
- package/dist/common/src/backend-function.types.d.ts +1 -7
- package/dist/common/src/backend-run.types.d.ts +2 -53
- package/dist/common/src/bundle-api.types.d.ts +36 -68
- package/dist/common/src/bundle-data.types.d.ts +4 -59
- package/dist/common/src/communication.types.d.ts +22 -4
- package/dist/common/src/context.types.d.ts +32 -32
- package/dist/common/src/distributed-lock.context.d.ts +5 -5
- package/dist/common/src/document.types.d.ts +22 -37
- package/dist/common/src/graphql.context.d.ts +7 -6
- package/dist/common/src/graphql.types.d.ts +9 -11
- package/dist/common/src/http-status.enum.d.ts +50 -50
- package/dist/common/src/index.d.ts +54 -54
- package/dist/common/src/integrations/ai_assistant.types.d.ts +30 -30
- package/dist/common/src/integrations/api.types.d.ts +80 -80
- package/dist/common/src/integrations/auth.types.d.ts +22 -22
- package/dist/common/src/integrations/database.types.d.ts +236 -236
- package/dist/common/src/integrations/index.d.ts +97 -97
- package/dist/common/src/integrations/observability.types.d.ts +22 -22
- package/dist/common/src/logger.types.d.ts +21 -21
- package/dist/common/src/metrics.types.d.ts +1 -58
- package/dist/common/src/mutation.context.d.ts +12 -10
- package/dist/common/src/mutation.schemas.d.ts +1 -5
- package/dist/common/src/mutation.types.d.ts +53 -72
- package/dist/common/src/named-query.context.d.ts +4 -4
- package/dist/common/src/named-query.schemas.d.ts +1 -3
- package/dist/common/src/named-query.types.d.ts +1 -9
- package/dist/common/src/query/index.d.ts +2 -2
- package/dist/common/src/query/query-context.d.ts +37 -37
- package/dist/common/src/query/simple-query-builder.d.ts +137 -137
- package/dist/common/src/query.schemas.d.ts +1 -5
- package/dist/common/src/query.types.d.ts +51 -118
- package/dist/common/src/regions.d.ts +1 -22
- package/dist/common/src/schema/schema.types.d.ts +54 -54
- package/dist/common/src/secret.schemas.d.ts +1 -6
- package/dist/common/src/secret.types.d.ts +8 -49
- package/dist/common/src/security.types.d.ts +1 -3
- package/dist/common/src/socket.schemas.d.ts +1 -3
- package/dist/common/src/socket.types.d.ts +1 -108
- package/dist/common/src/time-units.d.ts +1 -5
- package/dist/common/src/trigger.types.d.ts +1 -15
- package/dist/common/src/types.d.ts +8 -15
- package/dist/common/src/utils/array.d.ts +1 -8
- package/dist/common/src/utils/assert.d.ts +1 -8
- package/dist/common/src/utils/error.d.ts +4 -4
- 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/nullish.d.ts +1 -1
- package/dist/common/src/utils/object.d.ts +6 -6
- package/dist/common/src/utils/serialization.d.ts +6 -6
- 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 +30 -30
- package/dist/common/src/webhook-response.d.ts +1 -7
- package/dist/index.js +2 -2
- package/dist/node_modules/json-schema-typed/draft-2020-12.d.ts +1239 -1239
- package/dist/typescript-client/src/ai-assistant-client.d.ts +66 -66
- package/dist/typescript-client/src/ai-client.factory.d.ts +13 -13
- package/dist/typescript-client/src/api.manager.d.ts +15 -15
- package/dist/typescript-client/src/auth.manager.d.ts +23 -23
- package/dist/typescript-client/src/backend-function.manager.d.ts +13 -13
- package/dist/typescript-client/src/client-id.service.d.ts +24 -24
- package/dist/typescript-client/src/collection-reference.d.ts +81 -81
- package/dist/typescript-client/src/collection-reference.factory.d.ts +16 -16
- package/dist/typescript-client/src/data.manager.d.ts +172 -172
- package/dist/typescript-client/src/destruct.manager.d.ts +12 -12
- package/dist/typescript-client/src/distributed-lock.manager.d.ts +19 -19
- package/dist/typescript-client/src/document-identity.service.d.ts +12 -12
- package/dist/typescript-client/src/document-reference.d.ts +134 -134
- package/dist/typescript-client/src/document-reference.factory.d.ts +9 -9
- package/dist/typescript-client/src/document-store.d.ts +11 -11
- package/dist/typescript-client/src/graphql-client.d.ts +12 -12
- package/dist/typescript-client/src/graphql-client.factory.d.ts +9 -9
- package/dist/typescript-client/src/index.d.ts +8 -8
- package/dist/typescript-client/src/mutation/mutation-sender.d.ts +12 -12
- package/dist/typescript-client/src/named-query.manager.d.ts +14 -14
- package/dist/typescript-client/src/query/join-query-builder.factory.d.ts +72 -72
- package/dist/typescript-client/src/query/query-builder.factory.d.ts +83 -83
- package/dist/typescript-client/src/query/query-subscription.manager.d.ts +64 -64
- package/dist/typescript-client/src/query/query.types.d.ts +14 -14
- package/dist/typescript-client/src/rpc.manager.d.ts +28 -28
- package/dist/typescript-client/src/socket.manager.d.ts +32 -32
- package/dist/typescript-client/src/squid.d.ts +196 -188
- package/dist/typescript-client/src/state/action.applier.d.ts +7 -7
- package/dist/typescript-client/src/state/actions.d.ts +29 -29
- package/dist/typescript-client/src/state/path_trie.d.ts +27 -27
- package/dist/typescript-client/src/state/state.service.d.ts +22 -22
- 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 +1 -1
|
@@ -1,59 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
6
|
-
export type AiAssistantActionType = 'chat' | 'mutate' | 'all';
|
|
7
|
-
export type ServiceName = string;
|
|
8
|
-
export type FunctionName = string;
|
|
9
|
-
export type ServiceFunctionName = `${ServiceName}:${FunctionName}`;
|
|
10
|
-
export interface ApplicationBundleData {
|
|
11
|
-
databases: Record<IntegrationId, DatabaseMetadata>;
|
|
12
|
-
apis: Record<IntegrationId, {
|
|
13
|
-
endpoints: Record<ApiEndpointId, ApiMetadata>;
|
|
14
|
-
} & ApiMetadata>;
|
|
15
|
-
graphql: Record<IntegrationId, GraphQLMetadata>;
|
|
16
|
-
executables: Record<FunctionName, ExecutableMetadata>;
|
|
17
|
-
triggers: Record<TriggerId, TriggerConfig>;
|
|
18
|
-
schedulers: Record<SchedulerId, SchedulerConfig>;
|
|
19
|
-
webhooks: Record<WebhookId, WebhookConfig>;
|
|
20
|
-
namedQueries: Record<IntegrationId, Record<QueryName, NamedQueryMetadata>>;
|
|
21
|
-
distributedLocks: {
|
|
22
|
-
security?: Array<ServiceFunctionName>;
|
|
23
|
-
mutexes?: Record<string, {
|
|
24
|
-
security?: Array<ServiceFunctionName>;
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
aiAssistants: Record<IntegrationId, {
|
|
28
|
-
profiles: Record<string, AiAssistantMetadata>;
|
|
29
|
-
} & AiAssistantMetadata>;
|
|
30
|
-
}
|
|
31
|
-
export interface DatabaseMetadata {
|
|
32
|
-
collections: Record<CollectionName, CollectionMetadata>;
|
|
33
|
-
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
34
|
-
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
35
|
-
}
|
|
36
|
-
export interface CollectionMetadata {
|
|
37
|
-
security?: Record<DatabaseActionType, Array<ServiceFunctionName>>;
|
|
38
|
-
transform?: Record<DatabaseActionType, DatabaseTransformMetadata>;
|
|
39
|
-
}
|
|
40
|
-
export interface DatabaseTransformMetadata {
|
|
41
|
-
serviceFunction: ServiceFunctionName;
|
|
42
|
-
}
|
|
43
|
-
export interface ExecutableMetadata {
|
|
44
|
-
serviceFunction: ServiceFunctionName;
|
|
45
|
-
}
|
|
46
|
-
export interface NamedQueryMetadata {
|
|
47
|
-
security?: Array<ServiceFunctionName>;
|
|
48
|
-
queryString: string;
|
|
49
|
-
}
|
|
50
|
-
export interface ApiMetadata {
|
|
51
|
-
security: Array<ServiceFunctionName>;
|
|
52
|
-
}
|
|
53
|
-
interface GraphQLMetadata {
|
|
54
|
-
security: Array<ServiceFunctionName>;
|
|
55
|
-
}
|
|
56
|
-
export interface AiAssistantMetadata {
|
|
57
|
-
security: Record<AiAssistantActionType, Array<ServiceFunctionName>>;
|
|
58
|
-
}
|
|
59
|
-
export {};
|
|
1
|
+
/** The different types of actions that can be performed on a database. */
|
|
2
|
+
export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
|
|
3
|
+
/** The different types of actions that can be performed on an AI assistant. */
|
|
4
|
+
export type AiAssistantActionType = 'chat' | 'mutate' | 'all';
|
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The appId is the unique identifier of an application.
|
|
3
|
+
* It is the combination of the application id (as shown in the console), environment id (dev, prod) and the
|
|
4
|
+
* developer id (if exists). For example - "fdgfd90ds_dev_1234567890abcdef"
|
|
5
|
+
*/
|
|
6
|
+
/** A type alias for an application id. */
|
|
7
|
+
export type AppId = string;
|
|
8
|
+
export type EnvironmentId = 'prod' | 'dev';
|
|
9
|
+
export declare const allEnvironmentIds: Array<EnvironmentId>;
|
|
10
|
+
/** A type alias for an integration id. */
|
|
11
|
+
export type IntegrationId = string;
|
|
12
|
+
export type SquidDeveloperId = string;
|
|
13
|
+
export interface ParsedAppId {
|
|
14
|
+
appId: AppId;
|
|
15
|
+
environmentId: EnvironmentId;
|
|
16
|
+
squidDeveloperId?: SquidDeveloperId;
|
|
17
|
+
}
|
|
18
|
+
export declare function parseAppId(appId: AppId): ParsedAppId;
|
|
19
|
+
export declare function appIdWithEnvironmentId(appId: AppId, environmentId: EnvironmentId | undefined): AppId;
|
|
20
|
+
export declare function validateEnvironment(appId: AppId): ParsedAppId;
|
|
21
|
+
export declare function verifyWithSquidDevId(appId: AppId): void;
|
|
22
|
+
export declare function omitSquidDevId(appId: AppId): AppId;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
export type AuthType = 'Bearer' | 'ApiKey';
|
|
2
|
-
/**
|
|
3
|
-
* The payload of a JWT token in case an auth token was used.
|
|
4
|
-
*/
|
|
5
|
-
export interface AuthWithBearer {
|
|
6
|
-
type: 'Bearer';
|
|
7
|
-
userId: string;
|
|
8
|
-
expiration: number;
|
|
9
|
-
attributes: Record<string, any>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* The authentication object for the current request in case an API key is used.
|
|
13
|
-
*/
|
|
14
|
-
export interface AuthWithApiKey {
|
|
15
|
-
type: 'ApiKey';
|
|
16
|
-
apiKey: string;
|
|
17
|
-
}
|
|
18
|
-
/** The authentication object for the current request. */
|
|
19
|
-
export type Auth = AuthWithBearer | AuthWithApiKey;
|
|
20
|
-
export interface AuthToken {
|
|
21
|
-
type: AuthType;
|
|
22
|
-
token: string;
|
|
23
|
-
integrationId?: string;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* The context of a request to a service.
|
|
27
|
-
*/
|
|
28
|
-
export interface RunContext {
|
|
29
|
-
appId: string;
|
|
30
|
-
sourceIp?: string;
|
|
31
|
-
headers?: Record<string, any>;
|
|
32
|
-
}
|
|
1
|
+
export type AuthType = 'Bearer' | 'ApiKey';
|
|
2
|
+
/**
|
|
3
|
+
* The payload of a JWT token in case an auth token was used.
|
|
4
|
+
*/
|
|
5
|
+
export interface AuthWithBearer {
|
|
6
|
+
type: 'Bearer';
|
|
7
|
+
userId: string;
|
|
8
|
+
expiration: number;
|
|
9
|
+
attributes: Record<string, any>;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* The authentication object for the current request in case an API key is used.
|
|
13
|
+
*/
|
|
14
|
+
export interface AuthWithApiKey {
|
|
15
|
+
type: 'ApiKey';
|
|
16
|
+
apiKey: string;
|
|
17
|
+
}
|
|
18
|
+
/** The authentication object for the current request. */
|
|
19
|
+
export type Auth = AuthWithBearer | AuthWithApiKey;
|
|
20
|
+
export interface AuthToken {
|
|
21
|
+
type: AuthType;
|
|
22
|
+
token: string;
|
|
23
|
+
integrationId?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The context of a request to a service.
|
|
27
|
+
*/
|
|
28
|
+
export interface RunContext {
|
|
29
|
+
appId: string;
|
|
30
|
+
sourceIp?: string;
|
|
31
|
+
headers?: Record<string, any>;
|
|
32
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
}
|
|
1
|
+
/** The context provided to a secure distributed lock function. */
|
|
2
|
+
export declare class DistributedLockContext {
|
|
3
|
+
readonly mutex: string;
|
|
4
|
+
readonly exclusive: boolean;
|
|
5
|
+
}
|
|
@@ -1,37 +1,22 @@
|
|
|
1
|
-
import { IntegrationId } from './communication.types';
|
|
2
|
-
|
|
3
|
-
export type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export type
|
|
8
|
-
|
|
9
|
-
export type CollectionName = string;
|
|
10
|
-
/** The
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export type
|
|
23
|
-
export interface SquidDocument {
|
|
24
|
-
__docId__: DocId;
|
|
25
|
-
__ts__: DocTimestamp;
|
|
26
|
-
[fieldName: string]: FieldType | undefined;
|
|
27
|
-
}
|
|
28
|
-
export type DocumentData = Record<FieldName, any | undefined>;
|
|
29
|
-
export declare function parseSquidDocId(squidDocId: SquidDocId): SquidDocIdObj;
|
|
30
|
-
export declare function getSquidDocId(squidDocIdObj: SquidDocIdObj): SquidDocId;
|
|
31
|
-
export declare function getSquidDocId(docId: DocId, collectionName: CollectionName, integrationId: IntegrationId): SquidDocId;
|
|
32
|
-
/**
|
|
33
|
-
* Determines whether a beforeDoc and an afterDoc have the same properties.
|
|
34
|
-
* Our internal properties such as __docId__ and __ts__ are excluded from the
|
|
35
|
-
* comparison, as well as any primary keys changes.
|
|
36
|
-
*/
|
|
37
|
-
export declare function hasDocumentDiff(beforeDoc: SquidDocument | undefined, afterDoc: SquidDocument | undefined): boolean;
|
|
1
|
+
import { IntegrationId } from './communication.types';
|
|
2
|
+
/** A type alias for a field name. */
|
|
3
|
+
export type FieldName<T = any> = string & keyof T;
|
|
4
|
+
/** A type alias for a document id as string. */
|
|
5
|
+
export type DocId = string;
|
|
6
|
+
/** A type alias for a document id object when the ID is a composite of primary keys. */
|
|
7
|
+
export type DocIdObj = Record<FieldName, any>;
|
|
8
|
+
/** A type alias for a collection name. */
|
|
9
|
+
export type CollectionName = string;
|
|
10
|
+
/** The full document id, including the collection name and the integration id. */
|
|
11
|
+
export interface SquidDocIdObj {
|
|
12
|
+
collectionName: CollectionName;
|
|
13
|
+
docId: DocId;
|
|
14
|
+
integrationId: IntegrationId;
|
|
15
|
+
}
|
|
16
|
+
/** The before and after documents of a document change. */
|
|
17
|
+
export interface BeforeAndAfterDocs<T = SquidDocument> {
|
|
18
|
+
before: T | undefined;
|
|
19
|
+
after: T | undefined;
|
|
20
|
+
}
|
|
21
|
+
/** A generic document data type. */
|
|
22
|
+
export type DocumentData = Record<FieldName, any | undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
readonly
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
6
|
-
|
|
1
|
+
/** The context provided to a secure GraphQL function. */
|
|
2
|
+
export declare class GraphqlContext {
|
|
3
|
+
readonly isGraphiQL: boolean;
|
|
4
|
+
readonly query: string | undefined;
|
|
5
|
+
readonly variables: string | Record<string, any> | undefined;
|
|
6
|
+
readonly operationName: string | undefined;
|
|
7
|
+
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
export declare const EmptyIntrospection: IntrospectionQuery;
|
|
1
|
+
export { ExecutionResult, IntrospectionQuery } from 'graphql';
|
|
2
|
+
export interface GraphQLRequest {
|
|
3
|
+
operationName?: string;
|
|
4
|
+
query?: string;
|
|
5
|
+
variables?: string | Record<string, any>;
|
|
6
|
+
}
|
|
7
|
+
export interface SecureGraphQLRequest extends GraphQLRequest {
|
|
8
|
+
isGraphiQL: boolean;
|
|
9
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
export declare enum HttpStatus {
|
|
2
|
-
CONTINUE = 100,
|
|
3
|
-
SWITCHING_PROTOCOLS = 101,
|
|
4
|
-
PROCESSING = 102,
|
|
5
|
-
EARLYHINTS = 103,
|
|
6
|
-
OK = 200,
|
|
7
|
-
CREATED = 201,
|
|
8
|
-
ACCEPTED = 202,
|
|
9
|
-
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
10
|
-
NO_CONTENT = 204,
|
|
11
|
-
RESET_CONTENT = 205,
|
|
12
|
-
PARTIAL_CONTENT = 206,
|
|
13
|
-
AMBIGUOUS = 300,
|
|
14
|
-
MOVED_PERMANENTLY = 301,
|
|
15
|
-
FOUND = 302,
|
|
16
|
-
SEE_OTHER = 303,
|
|
17
|
-
NOT_MODIFIED = 304,
|
|
18
|
-
TEMPORARY_REDIRECT = 307,
|
|
19
|
-
PERMANENT_REDIRECT = 308,
|
|
20
|
-
BAD_REQUEST = 400,
|
|
21
|
-
UNAUTHORIZED = 401,
|
|
22
|
-
PAYMENT_REQUIRED = 402,
|
|
23
|
-
FORBIDDEN = 403,
|
|
24
|
-
NOT_FOUND = 404,
|
|
25
|
-
METHOD_NOT_ALLOWED = 405,
|
|
26
|
-
NOT_ACCEPTABLE = 406,
|
|
27
|
-
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
28
|
-
REQUEST_TIMEOUT = 408,
|
|
29
|
-
CONFLICT = 409,
|
|
30
|
-
GONE = 410,
|
|
31
|
-
LENGTH_REQUIRED = 411,
|
|
32
|
-
PRECONDITION_FAILED = 412,
|
|
33
|
-
PAYLOAD_TOO_LARGE = 413,
|
|
34
|
-
URI_TOO_LONG = 414,
|
|
35
|
-
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
36
|
-
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
37
|
-
EXPECTATION_FAILED = 417,
|
|
38
|
-
I_AM_A_TEAPOT = 418,
|
|
39
|
-
MISDIRECTED = 421,
|
|
40
|
-
UNPROCESSABLE_ENTITY = 422,
|
|
41
|
-
FAILED_DEPENDENCY = 424,
|
|
42
|
-
PRECONDITION_REQUIRED = 428,
|
|
43
|
-
TOO_MANY_REQUESTS = 429,
|
|
44
|
-
INTERNAL_SERVER_ERROR = 500,
|
|
45
|
-
NOT_IMPLEMENTED = 501,
|
|
46
|
-
BAD_GATEWAY = 502,
|
|
47
|
-
SERVICE_UNAVAILABLE = 503,
|
|
48
|
-
GATEWAY_TIMEOUT = 504,
|
|
49
|
-
HTTP_VERSION_NOT_SUPPORTED = 505
|
|
50
|
-
}
|
|
1
|
+
export declare enum HttpStatus {
|
|
2
|
+
CONTINUE = 100,
|
|
3
|
+
SWITCHING_PROTOCOLS = 101,
|
|
4
|
+
PROCESSING = 102,
|
|
5
|
+
EARLYHINTS = 103,
|
|
6
|
+
OK = 200,
|
|
7
|
+
CREATED = 201,
|
|
8
|
+
ACCEPTED = 202,
|
|
9
|
+
NON_AUTHORITATIVE_INFORMATION = 203,
|
|
10
|
+
NO_CONTENT = 204,
|
|
11
|
+
RESET_CONTENT = 205,
|
|
12
|
+
PARTIAL_CONTENT = 206,
|
|
13
|
+
AMBIGUOUS = 300,
|
|
14
|
+
MOVED_PERMANENTLY = 301,
|
|
15
|
+
FOUND = 302,
|
|
16
|
+
SEE_OTHER = 303,
|
|
17
|
+
NOT_MODIFIED = 304,
|
|
18
|
+
TEMPORARY_REDIRECT = 307,
|
|
19
|
+
PERMANENT_REDIRECT = 308,
|
|
20
|
+
BAD_REQUEST = 400,
|
|
21
|
+
UNAUTHORIZED = 401,
|
|
22
|
+
PAYMENT_REQUIRED = 402,
|
|
23
|
+
FORBIDDEN = 403,
|
|
24
|
+
NOT_FOUND = 404,
|
|
25
|
+
METHOD_NOT_ALLOWED = 405,
|
|
26
|
+
NOT_ACCEPTABLE = 406,
|
|
27
|
+
PROXY_AUTHENTICATION_REQUIRED = 407,
|
|
28
|
+
REQUEST_TIMEOUT = 408,
|
|
29
|
+
CONFLICT = 409,
|
|
30
|
+
GONE = 410,
|
|
31
|
+
LENGTH_REQUIRED = 411,
|
|
32
|
+
PRECONDITION_FAILED = 412,
|
|
33
|
+
PAYLOAD_TOO_LARGE = 413,
|
|
34
|
+
URI_TOO_LONG = 414,
|
|
35
|
+
UNSUPPORTED_MEDIA_TYPE = 415,
|
|
36
|
+
REQUESTED_RANGE_NOT_SATISFIABLE = 416,
|
|
37
|
+
EXPECTATION_FAILED = 417,
|
|
38
|
+
I_AM_A_TEAPOT = 418,
|
|
39
|
+
MISDIRECTED = 421,
|
|
40
|
+
UNPROCESSABLE_ENTITY = 422,
|
|
41
|
+
FAILED_DEPENDENCY = 424,
|
|
42
|
+
PRECONDITION_REQUIRED = 428,
|
|
43
|
+
TOO_MANY_REQUESTS = 429,
|
|
44
|
+
INTERNAL_SERVER_ERROR = 500,
|
|
45
|
+
NOT_IMPLEMENTED = 501,
|
|
46
|
+
BAD_GATEWAY = 502,
|
|
47
|
+
SERVICE_UNAVAILABLE = 503,
|
|
48
|
+
GATEWAY_TIMEOUT = 504,
|
|
49
|
+
HTTP_VERSION_NOT_SUPPORTED = 505
|
|
50
|
+
}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
export * from './ai-assistant.schemas';
|
|
2
|
-
export * from './ai-assistant.types';
|
|
3
|
-
export * from './api-call.context';
|
|
4
|
-
export * from './api.types';
|
|
5
|
-
export * from './application.schemas';
|
|
6
|
-
export * from './application.types';
|
|
7
|
-
export * from './auth.types';
|
|
8
|
-
export * from './backend-function.schemas';
|
|
9
|
-
export * from './backend-function.types';
|
|
10
|
-
export * from './backend-run.types';
|
|
11
|
-
export * from './bundle-api.types';
|
|
12
|
-
export * from './bundle-data.types';
|
|
13
|
-
export * from './communication.types';
|
|
14
|
-
export * from './context.types';
|
|
15
|
-
export * from './distributed-lock.context';
|
|
16
|
-
export * from './document.types';
|
|
17
|
-
export * from './graphql.context';
|
|
18
|
-
export * from './graphql.types';
|
|
19
|
-
export * from './http-status.enum';
|
|
20
|
-
export * from './integrations';
|
|
21
|
-
export * from './logger.types';
|
|
22
|
-
export * from './metrics.types';
|
|
23
|
-
export * from './mutation.context';
|
|
24
|
-
export * from './mutation.schemas';
|
|
25
|
-
export * from './mutation.types';
|
|
26
|
-
export * from './named-query.context';
|
|
27
|
-
export * from './named-query.schemas';
|
|
28
|
-
export * from './named-query.types';
|
|
29
|
-
export * from './query';
|
|
30
|
-
export * from './query.schemas';
|
|
31
|
-
export * from './query.types';
|
|
32
|
-
export * from './regions';
|
|
33
|
-
export * from './schema/schema.types';
|
|
34
|
-
export * from './secret.schemas';
|
|
35
|
-
export * from './secret.types';
|
|
36
|
-
export * from './security.types';
|
|
37
|
-
export * from './socket.schemas';
|
|
38
|
-
export * from './socket.types';
|
|
39
|
-
export * from './time-units';
|
|
40
|
-
export * from './trigger.types';
|
|
41
|
-
export * from './types';
|
|
42
|
-
export * from './utils/array';
|
|
43
|
-
export * from './utils/assert';
|
|
44
|
-
export * from './utils/error';
|
|
45
|
-
export * from './utils/http';
|
|
46
|
-
export * from './utils/id';
|
|
47
|
-
export * from './utils/lock.manager';
|
|
48
|
-
export * from './utils/nullish';
|
|
49
|
-
export * from './utils/object';
|
|
50
|
-
export * from './utils/serialization';
|
|
51
|
-
export * from './utils/transforms';
|
|
52
|
-
export * from './utils/url';
|
|
53
|
-
export * from './utils/validation';
|
|
54
|
-
export * from './webhook-response';
|
|
1
|
+
export * from './ai-assistant.schemas';
|
|
2
|
+
export * from './ai-assistant.types';
|
|
3
|
+
export * from './api-call.context';
|
|
4
|
+
export * from './api.types';
|
|
5
|
+
export * from './application.schemas';
|
|
6
|
+
export * from './application.types';
|
|
7
|
+
export * from './auth.types';
|
|
8
|
+
export * from './backend-function.schemas';
|
|
9
|
+
export * from './backend-function.types';
|
|
10
|
+
export * from './backend-run.types';
|
|
11
|
+
export * from './bundle-api.types';
|
|
12
|
+
export * from './bundle-data.types';
|
|
13
|
+
export * from './communication.types';
|
|
14
|
+
export * from './context.types';
|
|
15
|
+
export * from './distributed-lock.context';
|
|
16
|
+
export * from './document.types';
|
|
17
|
+
export * from './graphql.context';
|
|
18
|
+
export * from './graphql.types';
|
|
19
|
+
export * from './http-status.enum';
|
|
20
|
+
export * from './integrations';
|
|
21
|
+
export * from './logger.types';
|
|
22
|
+
export * from './metrics.types';
|
|
23
|
+
export * from './mutation.context';
|
|
24
|
+
export * from './mutation.schemas';
|
|
25
|
+
export * from './mutation.types';
|
|
26
|
+
export * from './named-query.context';
|
|
27
|
+
export * from './named-query.schemas';
|
|
28
|
+
export * from './named-query.types';
|
|
29
|
+
export * from './query';
|
|
30
|
+
export * from './query.schemas';
|
|
31
|
+
export * from './query.types';
|
|
32
|
+
export * from './regions';
|
|
33
|
+
export * from './schema/schema.types';
|
|
34
|
+
export * from './secret.schemas';
|
|
35
|
+
export * from './secret.types';
|
|
36
|
+
export * from './security.types';
|
|
37
|
+
export * from './socket.schemas';
|
|
38
|
+
export * from './socket.types';
|
|
39
|
+
export * from './time-units';
|
|
40
|
+
export * from './trigger.types';
|
|
41
|
+
export * from './types';
|
|
42
|
+
export * from './utils/array';
|
|
43
|
+
export * from './utils/assert';
|
|
44
|
+
export * from './utils/error';
|
|
45
|
+
export * from './utils/http';
|
|
46
|
+
export * from './utils/id';
|
|
47
|
+
export * from './utils/lock.manager';
|
|
48
|
+
export * from './utils/nullish';
|
|
49
|
+
export * from './utils/object';
|
|
50
|
+
export * from './utils/serialization';
|
|
51
|
+
export * from './utils/transforms';
|
|
52
|
+
export * from './utils/url';
|
|
53
|
+
export * from './utils/validation';
|
|
54
|
+
export * from './webhook-response';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
-
import { IntegrationId } from '../communication.types';
|
|
3
|
-
export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
|
|
4
|
-
type: IntegrationType.ai_assistant;
|
|
5
|
-
configuration: AiAssistantConfiguration;
|
|
6
|
-
schema: IntegrationAiAssistantSchema;
|
|
7
|
-
}
|
|
8
|
-
export type AiAssistantConfiguration = {
|
|
9
|
-
apiKey?: string;
|
|
10
|
-
};
|
|
11
|
-
export type AiAssistantProfile = {
|
|
12
|
-
modelName: string;
|
|
13
|
-
strictContext: boolean;
|
|
14
|
-
instructions: Record<string, string>;
|
|
15
|
-
contexts: Record<string, AiAssistantContext>;
|
|
16
|
-
};
|
|
17
|
-
export type AiAssistantContext = {
|
|
18
|
-
title: string;
|
|
19
|
-
text: string;
|
|
20
|
-
preview: boolean;
|
|
21
|
-
};
|
|
22
|
-
export interface IntegrationAiAssistantSchema {
|
|
23
|
-
profiles: Record<string, AiAssistantProfile>;
|
|
24
|
-
}
|
|
25
|
-
export interface DiscoverAiAssistantSchemaRequest {
|
|
26
|
-
integrationId: IntegrationId;
|
|
27
|
-
}
|
|
28
|
-
export interface DiscoverAiAssistantSchemaResponse {
|
|
29
|
-
schema: IntegrationAiAssistantSchema;
|
|
30
|
-
}
|
|
1
|
+
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
+
import { IntegrationId } from '../communication.types';
|
|
3
|
+
export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
|
|
4
|
+
type: IntegrationType.ai_assistant;
|
|
5
|
+
configuration: AiAssistantConfiguration;
|
|
6
|
+
schema: IntegrationAiAssistantSchema;
|
|
7
|
+
}
|
|
8
|
+
export type AiAssistantConfiguration = {
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
};
|
|
11
|
+
export type AiAssistantProfile = {
|
|
12
|
+
modelName: string;
|
|
13
|
+
strictContext: boolean;
|
|
14
|
+
instructions: Record<string, string>;
|
|
15
|
+
contexts: Record<string, AiAssistantContext>;
|
|
16
|
+
};
|
|
17
|
+
export type AiAssistantContext = {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
preview: boolean;
|
|
21
|
+
};
|
|
22
|
+
export interface IntegrationAiAssistantSchema {
|
|
23
|
+
profiles: Record<string, AiAssistantProfile>;
|
|
24
|
+
}
|
|
25
|
+
export interface DiscoverAiAssistantSchemaRequest {
|
|
26
|
+
integrationId: IntegrationId;
|
|
27
|
+
}
|
|
28
|
+
export interface DiscoverAiAssistantSchemaResponse {
|
|
29
|
+
schema: IntegrationAiAssistantSchema;
|
|
30
|
+
}
|