@squidcloud/client 1.0.128 → 1.0.129
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 +11086 -11001
- package/dist/common/src/ai-assistant.context.d.ts +12 -12
- package/dist/common/src/ai-assistant.schemas.d.ts +1 -1
- package/dist/common/src/ai-assistant.types.d.ts +21 -21
- 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 +143 -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 +39 -39
- package/dist/common/src/bundle-data.types.d.ts +4 -4
- package/dist/common/src/communication.types.d.ts +8 -8
- package/dist/common/src/context.types.d.ts +40 -40
- package/dist/common/src/distributed-lock.context.d.ts +5 -5
- 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 -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 +39 -39
- package/dist/common/src/integrations/database.types.d.ts +274 -248
- package/dist/common/src/integrations/index.d.ts +134 -132
- 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/named-query.context.d.ts +4 -4
- package/dist/common/src/named-query.schemas.d.ts +1 -1
- package/dist/common/src/named-query.types.d.ts +1 -1
- 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 +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 +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 +174 -174
- package/dist/typescript-client/src/ai-client.factory.d.ts +11 -11
- package/dist/typescript-client/src/api.manager.d.ts +11 -11
- package/dist/typescript-client/src/auth.manager.d.ts +23 -23
- 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 +173 -173
- 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/named-query.manager.d.ts +12 -12
- 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 +130 -130
- 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 +29 -29
- package/dist/typescript-client/src/secret.client.d.ts +22 -22
- package/dist/typescript-client/src/socket.manager.d.ts +39 -35
- package/dist/typescript-client/src/squid.d.ts +222 -222
- 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,8 +1,8 @@
|
|
|
1
|
-
/** A type alias for an application id. */
|
|
2
|
-
export type AppId = string;
|
|
3
|
-
export type EnvironmentId = 'prod' | 'dev';
|
|
4
|
-
export declare const allEnvironmentIds: Array<EnvironmentId>;
|
|
5
|
-
/** A type alias for an integration id. */
|
|
6
|
-
export type IntegrationId = string;
|
|
7
|
-
export type ChatId = string;
|
|
8
|
-
export type SquidDeveloperId = string;
|
|
1
|
+
/** A type alias for an application id. */
|
|
2
|
+
export type AppId = string;
|
|
3
|
+
export type EnvironmentId = 'prod' | 'dev';
|
|
4
|
+
export declare const allEnvironmentIds: Array<EnvironmentId>;
|
|
5
|
+
/** A type alias for an integration id. */
|
|
6
|
+
export type IntegrationId = string;
|
|
7
|
+
export type ChatId = string;
|
|
8
|
+
export type SquidDeveloperId = string;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { AppId, ClientId } from './communication.types';
|
|
2
|
-
export type AuthType = 'Bearer' | 'ApiKey';
|
|
3
|
-
/**
|
|
4
|
-
* The payload of a JWT token in case an auth token was used.
|
|
5
|
-
*/
|
|
6
|
-
export interface AuthWithBearer {
|
|
7
|
-
type: 'Bearer';
|
|
8
|
-
userId: string;
|
|
9
|
-
expiration: number;
|
|
10
|
-
attributes: Record<string, any>;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* The authentication object for the current request in case an API key is used.
|
|
14
|
-
*/
|
|
15
|
-
export interface AuthWithApiKey {
|
|
16
|
-
type: 'ApiKey';
|
|
17
|
-
apiKey: string;
|
|
18
|
-
}
|
|
19
|
-
/** The authentication object for the current request. */
|
|
20
|
-
export type Auth = AuthWithBearer | AuthWithApiKey;
|
|
21
|
-
export interface AuthToken {
|
|
22
|
-
type: AuthType;
|
|
23
|
-
token: string;
|
|
24
|
-
integrationId?: string;
|
|
25
|
-
}
|
|
26
|
-
/** The context of a request to a service. */
|
|
27
|
-
export interface RunContext {
|
|
28
|
-
/** Your applicationId. */
|
|
29
|
-
appId: AppId;
|
|
30
|
-
/**
|
|
31
|
-
* The id of the client that initiated this request. This is only relevant in cases that the request was initiated by
|
|
32
|
-
* a client such as when securing an api call or a DB operation. This id will not be available for triggers,
|
|
33
|
-
* schedulers, webhooks and other functions that are not directly initiated by a user action.
|
|
34
|
-
*/
|
|
35
|
-
clientId?: ClientId;
|
|
36
|
-
/** The IP address of the client that initiated this request. */
|
|
37
|
-
sourceIp?: string;
|
|
38
|
-
/** The headers of the request. */
|
|
39
|
-
headers?: Record<string, any>;
|
|
40
|
-
}
|
|
1
|
+
import { AppId, ClientId } from './communication.types';
|
|
2
|
+
export type AuthType = 'Bearer' | 'ApiKey';
|
|
3
|
+
/**
|
|
4
|
+
* The payload of a JWT token in case an auth token was used.
|
|
5
|
+
*/
|
|
6
|
+
export interface AuthWithBearer {
|
|
7
|
+
type: 'Bearer';
|
|
8
|
+
userId: string;
|
|
9
|
+
expiration: number;
|
|
10
|
+
attributes: Record<string, any>;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The authentication object for the current request in case an API key is used.
|
|
14
|
+
*/
|
|
15
|
+
export interface AuthWithApiKey {
|
|
16
|
+
type: 'ApiKey';
|
|
17
|
+
apiKey: string;
|
|
18
|
+
}
|
|
19
|
+
/** The authentication object for the current request. */
|
|
20
|
+
export type Auth = AuthWithBearer | AuthWithApiKey;
|
|
21
|
+
export interface AuthToken {
|
|
22
|
+
type: AuthType;
|
|
23
|
+
token: string;
|
|
24
|
+
integrationId?: string;
|
|
25
|
+
}
|
|
26
|
+
/** The context of a request to a service. */
|
|
27
|
+
export interface RunContext {
|
|
28
|
+
/** Your applicationId. */
|
|
29
|
+
appId: AppId;
|
|
30
|
+
/**
|
|
31
|
+
* The id of the client that initiated this request. This is only relevant in cases that the request was initiated by
|
|
32
|
+
* a client such as when securing an api call or a DB operation. This id will not be available for triggers,
|
|
33
|
+
* schedulers, webhooks and other functions that are not directly initiated by a user action.
|
|
34
|
+
*/
|
|
35
|
+
clientId?: ClientId;
|
|
36
|
+
/** The IP address of the client that initiated this request. */
|
|
37
|
+
sourceIp?: string;
|
|
38
|
+
/** The headers of the request. */
|
|
39
|
+
headers?: Record<string, any>;
|
|
40
|
+
}
|
|
@@ -1,5 +1,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
|
+
/** The context provided to a secure distributed lock function. */
|
|
2
|
+
export declare class DistributedLockContext {
|
|
3
|
+
readonly mutex: string;
|
|
4
|
+
readonly exclusive: boolean;
|
|
5
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
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
|
+
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,7 +1,7 @@
|
|
|
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
|
+
/** 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,9 +1,9 @@
|
|
|
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
|
+
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 +1 @@
|
|
|
1
|
-
export declare function checkAllHeartbeatProviders(heartbeatProviders: Record<string, HeartbeatProvider>): Promise<void>;
|
|
1
|
+
export declare function checkAllHeartbeatProviders(heartbeatProviders: Record<string, HeartbeatProvider>): Promise<void>;
|
|
@@ -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 './backend-function.schemas';
|
|
8
|
-
export * from './backend-function.types';
|
|
9
|
-
export * from './backend-run.types';
|
|
10
|
-
export * from './bundle-api.types';
|
|
11
|
-
export * from './bundle-data.types';
|
|
12
|
-
export * from './communication.types';
|
|
13
|
-
export * from './context.types';
|
|
14
|
-
export * from './distributed-lock.context';
|
|
15
|
-
export * from './document.types';
|
|
16
|
-
export * from './graphql.context';
|
|
17
|
-
export * from './graphql.types';
|
|
18
|
-
export * from './http-status.enum';
|
|
19
|
-
export * from './integrations';
|
|
20
|
-
export * from './logger.types';
|
|
21
|
-
export * from './metrics.types';
|
|
22
|
-
export * from './mutation.context';
|
|
23
|
-
export * from './mutation.schemas';
|
|
24
|
-
export * from './mutation.types';
|
|
25
|
-
export * from './named-query.context';
|
|
26
|
-
export * from './named-query.schemas';
|
|
27
|
-
export * from './named-query.types';
|
|
28
|
-
export * from './query';
|
|
29
|
-
export * from './query.types';
|
|
30
|
-
export * from './regions';
|
|
31
|
-
export * from './schema/schema.types';
|
|
32
|
-
export * from './secret.schemas';
|
|
33
|
-
export * from './secret.types';
|
|
34
|
-
export * from './security.types';
|
|
35
|
-
export * from './socket.schemas';
|
|
36
|
-
export * from './socket.types';
|
|
37
|
-
export * from './time-units';
|
|
38
|
-
export * from './trigger.types';
|
|
39
|
-
export * from './types';
|
|
40
|
-
export * from './utils/array';
|
|
41
|
-
export * from './utils/assert';
|
|
42
|
-
export * from './utils/error';
|
|
43
|
-
export * from './utils/http';
|
|
44
|
-
export * from './utils/id';
|
|
45
|
-
export * from './utils/lock.manager';
|
|
46
|
-
export * from './utils/object';
|
|
47
|
-
export * from './utils/serialization';
|
|
48
|
-
export * from './utils/transforms';
|
|
49
|
-
export * from './utils/url';
|
|
50
|
-
export * from './utils/validation';
|
|
51
|
-
export * from './webhook-response';
|
|
52
|
-
export * from './heartbeat.types';
|
|
53
|
-
export * from './utils/global.utils';
|
|
54
|
-
export * from './websocket.impl';
|
|
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 './backend-function.schemas';
|
|
8
|
+
export * from './backend-function.types';
|
|
9
|
+
export * from './backend-run.types';
|
|
10
|
+
export * from './bundle-api.types';
|
|
11
|
+
export * from './bundle-data.types';
|
|
12
|
+
export * from './communication.types';
|
|
13
|
+
export * from './context.types';
|
|
14
|
+
export * from './distributed-lock.context';
|
|
15
|
+
export * from './document.types';
|
|
16
|
+
export * from './graphql.context';
|
|
17
|
+
export * from './graphql.types';
|
|
18
|
+
export * from './http-status.enum';
|
|
19
|
+
export * from './integrations';
|
|
20
|
+
export * from './logger.types';
|
|
21
|
+
export * from './metrics.types';
|
|
22
|
+
export * from './mutation.context';
|
|
23
|
+
export * from './mutation.schemas';
|
|
24
|
+
export * from './mutation.types';
|
|
25
|
+
export * from './named-query.context';
|
|
26
|
+
export * from './named-query.schemas';
|
|
27
|
+
export * from './named-query.types';
|
|
28
|
+
export * from './query';
|
|
29
|
+
export * from './query.types';
|
|
30
|
+
export * from './regions';
|
|
31
|
+
export * from './schema/schema.types';
|
|
32
|
+
export * from './secret.schemas';
|
|
33
|
+
export * from './secret.types';
|
|
34
|
+
export * from './security.types';
|
|
35
|
+
export * from './socket.schemas';
|
|
36
|
+
export * from './socket.types';
|
|
37
|
+
export * from './time-units';
|
|
38
|
+
export * from './trigger.types';
|
|
39
|
+
export * from './types';
|
|
40
|
+
export * from './utils/array';
|
|
41
|
+
export * from './utils/assert';
|
|
42
|
+
export * from './utils/error';
|
|
43
|
+
export * from './utils/http';
|
|
44
|
+
export * from './utils/id';
|
|
45
|
+
export * from './utils/lock.manager';
|
|
46
|
+
export * from './utils/object';
|
|
47
|
+
export * from './utils/serialization';
|
|
48
|
+
export * from './utils/transforms';
|
|
49
|
+
export * from './utils/url';
|
|
50
|
+
export * from './utils/validation';
|
|
51
|
+
export * from './webhook-response';
|
|
52
|
+
export * from './heartbeat.types';
|
|
53
|
+
export * from './utils/global.utils';
|
|
54
|
+
export * from './websocket.impl';
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { AiModelName } from '../ai-assistant.types';
|
|
2
|
-
import { IntegrationId } from '../communication.types';
|
|
3
|
-
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
4
|
-
export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
|
|
5
|
-
type: IntegrationType.ai_assistant;
|
|
6
|
-
configuration: AiAssistantConfiguration;
|
|
7
|
-
}
|
|
8
|
-
export type AiAssistantConfiguration = {
|
|
9
|
-
apiKey?: string;
|
|
10
|
-
};
|
|
11
|
-
export type AiAssistantProfileMetadata = {
|
|
12
|
-
modelName: AiModelName;
|
|
13
|
-
isPublic: boolean;
|
|
14
|
-
strictContext: boolean;
|
|
15
|
-
instructions: Record<string, string>;
|
|
16
|
-
};
|
|
17
|
-
export type AiAssistantContextMetadata = {
|
|
18
|
-
title: string;
|
|
19
|
-
text: string;
|
|
20
|
-
preview: boolean;
|
|
21
|
-
};
|
|
22
|
-
export interface AiAssistantProfile extends AiAssistantProfileMetadata {
|
|
23
|
-
contexts: Record<string, AiAssistantContextMetadata>;
|
|
24
|
-
}
|
|
25
|
-
export interface AiAssistantProfiles {
|
|
26
|
-
profiles: Record<string, AiAssistantProfile>;
|
|
27
|
-
}
|
|
28
|
-
export interface GetAiAssistantProfilesRequest {
|
|
29
|
-
integrationId: IntegrationId;
|
|
30
|
-
}
|
|
1
|
+
import { AiModelName } from '../ai-assistant.types';
|
|
2
|
+
import { IntegrationId } from '../communication.types';
|
|
3
|
+
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
4
|
+
export interface AiAssistantIntegrationConfig extends BaseIntegrationConfig {
|
|
5
|
+
type: IntegrationType.ai_assistant;
|
|
6
|
+
configuration: AiAssistantConfiguration;
|
|
7
|
+
}
|
|
8
|
+
export type AiAssistantConfiguration = {
|
|
9
|
+
apiKey?: string;
|
|
10
|
+
};
|
|
11
|
+
export type AiAssistantProfileMetadata = {
|
|
12
|
+
modelName: AiModelName;
|
|
13
|
+
isPublic: boolean;
|
|
14
|
+
strictContext: boolean;
|
|
15
|
+
instructions: Record<string, string>;
|
|
16
|
+
};
|
|
17
|
+
export type AiAssistantContextMetadata = {
|
|
18
|
+
title: string;
|
|
19
|
+
text: string;
|
|
20
|
+
preview: boolean;
|
|
21
|
+
};
|
|
22
|
+
export interface AiAssistantProfile extends AiAssistantProfileMetadata {
|
|
23
|
+
contexts: Record<string, AiAssistantContextMetadata>;
|
|
24
|
+
}
|
|
25
|
+
export interface AiAssistantProfiles {
|
|
26
|
+
profiles: Record<string, AiAssistantProfile>;
|
|
27
|
+
}
|
|
28
|
+
export interface GetAiAssistantProfilesRequest {
|
|
29
|
+
integrationId: IntegrationId;
|
|
30
|
+
}
|
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
import { FieldName } from '../document.types';
|
|
2
|
-
import { IntrospectionQuery } from '../graphql.types';
|
|
3
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema, IntegrationSchemaType, IntegrationType } from './index';
|
|
4
|
-
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
5
|
-
export type ApiEndpointId = string;
|
|
6
|
-
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
7
|
-
export type ApiResponseParameterLocation = 'header' | 'body';
|
|
8
|
-
export type ApiInjectionParameterLocation = 'header' | 'query';
|
|
9
|
-
export type FieldPath = string;
|
|
10
|
-
export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
11
|
-
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
12
|
-
type: IntegrationSchemaType.graphql;
|
|
13
|
-
introspection: IntrospectionQuery;
|
|
14
|
-
}
|
|
15
|
-
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
16
|
-
type: IntegrationSchemaType.api;
|
|
17
|
-
baseUrl: string;
|
|
18
|
-
endpoints: IntegrationApiEndpoints;
|
|
19
|
-
injectionSchema?: ApiInjectionSchema;
|
|
20
|
-
}
|
|
21
|
-
export interface ApiRequestField {
|
|
22
|
-
location: ApiParameterLocation;
|
|
23
|
-
}
|
|
24
|
-
export interface ApiResponseField {
|
|
25
|
-
location: ApiResponseParameterLocation;
|
|
26
|
-
path?: FieldPath;
|
|
27
|
-
}
|
|
28
|
-
export type ApiInjectionFieldType = 'secret' | 'regular';
|
|
29
|
-
export interface ApiInjectionField {
|
|
30
|
-
value: string;
|
|
31
|
-
type: ApiInjectionFieldType;
|
|
32
|
-
location: ApiInjectionParameterLocation;
|
|
33
|
-
}
|
|
34
|
-
export interface GraphQLConnectionOptions {
|
|
35
|
-
baseUrl: string;
|
|
36
|
-
injectionSchema?: ApiInjectionSchema;
|
|
37
|
-
}
|
|
38
|
-
export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
|
|
39
|
-
export interface OpenApiDiscoveryOptions {
|
|
40
|
-
openApiSpecUrl: string;
|
|
41
|
-
}
|
|
42
|
-
export interface ApiEndpoint {
|
|
43
|
-
relativePath: string;
|
|
44
|
-
method: HttpMethod;
|
|
45
|
-
requestSchema?: Record<FieldName, ApiRequestField>;
|
|
46
|
-
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
47
|
-
injectionSchema?: ApiInjectionSchema;
|
|
48
|
-
}
|
|
49
|
-
export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
|
|
50
|
-
type: IntegrationType.api;
|
|
51
|
-
configuration?: {
|
|
52
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
56
|
-
type: IntegrationType.graphql;
|
|
57
|
-
configuration: {
|
|
58
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
62
|
-
integrationType: IntegrationType.graphql;
|
|
63
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
64
|
-
}
|
|
65
|
-
export interface DiscoverOpenApiSchemaRequest {
|
|
66
|
-
integrationType: IntegrationType.api;
|
|
67
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
68
|
-
}
|
|
69
|
-
export interface TestGraphQLDataConnectionRequest {
|
|
70
|
-
type: IntegrationType.graphql;
|
|
71
|
-
configuration: {
|
|
72
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
76
|
-
schema: IntegrationGraphQLSchema;
|
|
77
|
-
}
|
|
78
|
-
export interface DiscoverOpenApiSchemaResponse {
|
|
79
|
-
schema: IntegrationApiSchema;
|
|
80
|
-
}
|
|
1
|
+
import { FieldName } from '../document.types';
|
|
2
|
+
import { IntrospectionQuery } from '../graphql.types';
|
|
3
|
+
import { BaseIntegrationConfig, BaseIntegrationSchema, IntegrationSchemaType, IntegrationType } from './index';
|
|
4
|
+
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
5
|
+
export type ApiEndpointId = string;
|
|
6
|
+
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
7
|
+
export type ApiResponseParameterLocation = 'header' | 'body';
|
|
8
|
+
export type ApiInjectionParameterLocation = 'header' | 'query';
|
|
9
|
+
export type FieldPath = string;
|
|
10
|
+
export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
11
|
+
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
12
|
+
type: IntegrationSchemaType.graphql;
|
|
13
|
+
introspection: IntrospectionQuery;
|
|
14
|
+
}
|
|
15
|
+
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
16
|
+
type: IntegrationSchemaType.api;
|
|
17
|
+
baseUrl: string;
|
|
18
|
+
endpoints: IntegrationApiEndpoints;
|
|
19
|
+
injectionSchema?: ApiInjectionSchema;
|
|
20
|
+
}
|
|
21
|
+
export interface ApiRequestField {
|
|
22
|
+
location: ApiParameterLocation;
|
|
23
|
+
}
|
|
24
|
+
export interface ApiResponseField {
|
|
25
|
+
location: ApiResponseParameterLocation;
|
|
26
|
+
path?: FieldPath;
|
|
27
|
+
}
|
|
28
|
+
export type ApiInjectionFieldType = 'secret' | 'regular';
|
|
29
|
+
export interface ApiInjectionField {
|
|
30
|
+
value: string;
|
|
31
|
+
type: ApiInjectionFieldType;
|
|
32
|
+
location: ApiInjectionParameterLocation;
|
|
33
|
+
}
|
|
34
|
+
export interface GraphQLConnectionOptions {
|
|
35
|
+
baseUrl: string;
|
|
36
|
+
injectionSchema?: ApiInjectionSchema;
|
|
37
|
+
}
|
|
38
|
+
export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
|
|
39
|
+
export interface OpenApiDiscoveryOptions {
|
|
40
|
+
openApiSpecUrl: string;
|
|
41
|
+
}
|
|
42
|
+
export interface ApiEndpoint {
|
|
43
|
+
relativePath: string;
|
|
44
|
+
method: HttpMethod;
|
|
45
|
+
requestSchema?: Record<FieldName, ApiRequestField>;
|
|
46
|
+
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
47
|
+
injectionSchema?: ApiInjectionSchema;
|
|
48
|
+
}
|
|
49
|
+
export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
|
|
50
|
+
type: IntegrationType.api;
|
|
51
|
+
configuration?: {
|
|
52
|
+
discoveryOptions: OpenApiDiscoveryOptions;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
56
|
+
type: IntegrationType.graphql;
|
|
57
|
+
configuration: {
|
|
58
|
+
connectionOptions: GraphQLConnectionOptions;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
62
|
+
integrationType: IntegrationType.graphql;
|
|
63
|
+
connectionOptions: GraphQLConnectionOptions;
|
|
64
|
+
}
|
|
65
|
+
export interface DiscoverOpenApiSchemaRequest {
|
|
66
|
+
integrationType: IntegrationType.api;
|
|
67
|
+
discoveryOptions: OpenApiDiscoveryOptions;
|
|
68
|
+
}
|
|
69
|
+
export interface TestGraphQLDataConnectionRequest {
|
|
70
|
+
type: IntegrationType.graphql;
|
|
71
|
+
configuration: {
|
|
72
|
+
connectionOptions: GraphQLConnectionOptions;
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
76
|
+
schema: IntegrationGraphQLSchema;
|
|
77
|
+
}
|
|
78
|
+
export interface DiscoverOpenApiSchemaResponse {
|
|
79
|
+
schema: IntegrationApiSchema;
|
|
80
|
+
}
|