@squidcloud/client 1.0.147 → 1.0.149
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 -8803
- 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 -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 +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 -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/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 -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 +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 +3 -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,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
|
+
}
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
-
export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
-
type: IntegrationType.auth0;
|
|
4
|
-
configuration: {
|
|
5
|
-
/** Auth0 domain. Used to build JWKS URL (https://$domain/.well-known/jwks.json) to check the JWT token signature.*/
|
|
6
|
-
domain: string;
|
|
7
|
-
/**
|
|
8
|
-
* The Auth0 audience is a parameter that ensures the JWT token is intended for the specific backend being accessed.
|
|
9
|
-
*
|
|
10
|
-
* Note: the audience for the web-app auth token is equal to the Auth0 web client id: it means that the web app
|
|
11
|
-
* client is a target audience for the JWT token. Such JWT tokens (ID tokens) should not be sent to the backend:
|
|
12
|
-
* backend calls should use another kind of JWT tokens (access tokens) issued by Auth0 for the backends.
|
|
13
|
-
*/
|
|
14
|
-
clientId: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface CognitoIntegrationConfig extends BaseIntegrationConfig {
|
|
18
|
-
type: IntegrationType.cognito;
|
|
19
|
-
configuration: {
|
|
20
|
-
region: string;
|
|
21
|
-
userPoolId: string;
|
|
22
|
-
appClientId: string;
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export interface OktaIntegrationConfig extends BaseIntegrationConfig {
|
|
26
|
-
type: IntegrationType.okta;
|
|
27
|
-
configuration: {
|
|
28
|
-
domain: string;
|
|
29
|
-
clientId: string;
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export interface JwtRsaIntegrationConfig extends BaseIntegrationConfig {
|
|
33
|
-
type: IntegrationType.jwt_rsa;
|
|
34
|
-
configuration: {
|
|
35
|
-
jwksUri: string;
|
|
36
|
-
validations?: {
|
|
37
|
-
aud?: string;
|
|
38
|
-
iss?: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export interface JwtHmacIntegrationConfig extends BaseIntegrationConfig {
|
|
43
|
-
type: IntegrationType.jwt_hmac;
|
|
44
|
-
configuration: {
|
|
45
|
-
verifyUri?: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
1
|
+
import { BaseIntegrationConfig, IntegrationType } from './index';
|
|
2
|
+
export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
|
|
3
|
+
type: IntegrationType.auth0;
|
|
4
|
+
configuration: {
|
|
5
|
+
/** Auth0 domain. Used to build JWKS URL (https://$domain/.well-known/jwks.json) to check the JWT token signature.*/
|
|
6
|
+
domain: string;
|
|
7
|
+
/**
|
|
8
|
+
* The Auth0 audience is a parameter that ensures the JWT token is intended for the specific backend being accessed.
|
|
9
|
+
*
|
|
10
|
+
* Note: the audience for the web-app auth token is equal to the Auth0 web client id: it means that the web app
|
|
11
|
+
* client is a target audience for the JWT token. Such JWT tokens (ID tokens) should not be sent to the backend:
|
|
12
|
+
* backend calls should use another kind of JWT tokens (access tokens) issued by Auth0 for the backends.
|
|
13
|
+
*/
|
|
14
|
+
clientId: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export interface CognitoIntegrationConfig extends BaseIntegrationConfig {
|
|
18
|
+
type: IntegrationType.cognito;
|
|
19
|
+
configuration: {
|
|
20
|
+
region: string;
|
|
21
|
+
userPoolId: string;
|
|
22
|
+
appClientId: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export interface OktaIntegrationConfig extends BaseIntegrationConfig {
|
|
26
|
+
type: IntegrationType.okta;
|
|
27
|
+
configuration: {
|
|
28
|
+
domain: string;
|
|
29
|
+
clientId: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export interface JwtRsaIntegrationConfig extends BaseIntegrationConfig {
|
|
33
|
+
type: IntegrationType.jwt_rsa;
|
|
34
|
+
configuration: {
|
|
35
|
+
jwksUri: string;
|
|
36
|
+
validations?: {
|
|
37
|
+
aud?: string;
|
|
38
|
+
iss?: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface JwtHmacIntegrationConfig extends BaseIntegrationConfig {
|
|
43
|
+
type: IntegrationType.jwt_hmac;
|
|
44
|
+
configuration: {
|
|
45
|
+
verifyUri?: string;
|
|
46
|
+
};
|
|
47
|
+
}
|