@squidcloud/local-backend 1.0.172 → 1.0.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/internal-common/src/public-types/ai-chatbot.public-context.d.ts +2 -0
- package/dist/internal-common/src/public-types/ai-chatbot.public-context.js.map +1 -1
- package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +1 -16
- package/dist/internal-common/src/public-types/api-call.public-context.d.ts +1 -1
- package/dist/internal-common/src/public-types/application.public-types.d.ts +0 -37
- package/dist/internal-common/src/public-types/application.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +31 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +41 -0
- package/dist/internal-common/src/public-types/integrations/api.public-types.js +3 -0
- package/dist/internal-common/src/public-types/integrations/api.public-types.js.map +1 -0
- package/dist/internal-common/src/public-types/query.public-types.d.ts +1 -0
- package/dist/internal-common/src/public-types/query.public-types.js +13 -1
- package/dist/internal-common/src/public-types/query.public-types.js.map +1 -1
- package/dist/internal-common/src/public-types/secret.public-types.d.ts +8 -0
- package/dist/internal-common/src/types/ai-chatbot.types.d.ts +3 -2
- package/dist/internal-common/src/types/api.types.d.ts +1 -1
- package/dist/internal-common/src/types/application.types.d.ts +36 -2
- package/dist/internal-common/src/types/bundle-data.types.d.ts +1 -1
- package/dist/internal-common/src/types/integrations/ai_chatbot.types.d.ts +17 -0
- package/dist/internal-common/src/types/integrations/ai_chatbot.types.js.map +1 -0
- package/dist/internal-common/src/types/integrations/api.types.d.ts +36 -0
- package/dist/internal-common/src/types/integrations/api.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/integrations/auth.types.d.ts +1 -1
- package/dist/internal-common/src/types/integrations/auth.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/integrations/database.types.d.ts +3 -3
- package/dist/internal-common/src/types/integrations/database.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/integrations/observability.types.d.ts +1 -1
- package/dist/internal-common/src/types/integrations/observability.types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/integrations/queue-types.d.ts +4 -13
- package/dist/internal-common/src/types/integrations/queue-types.js.map +1 -0
- package/dist/internal-common/src/{public-types → types}/integrations/schemas.d.ts +4 -4
- package/dist/internal-common/src/{public-types → types}/integrations/schemas.js +1 -1
- package/dist/internal-common/src/types/integrations/schemas.js.map +1 -0
- package/dist/internal-common/src/types/secret.types.d.ts +1 -9
- package/dist/internal-common/src/types/secret.types.js.map +1 -1
- package/dist/local-backend/src/index.js +0 -6
- package/dist/local-backend/src/index.js.map +1 -1
- package/dist/local-backend/src/local-backend.app.js +6 -0
- package/dist/local-backend/src/local-backend.app.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +0 -32
- package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/api.types.d.ts +0 -81
- package/dist/internal-common/src/public-types/integrations/api.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/auth.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/database.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/observability.types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/queue-types.js.map +0 -1
- package/dist/internal-common/src/public-types/integrations/schemas.js.map +0 -1
- package/dist/local-backend/package.json +0 -55
- /package/dist/internal-common/src/{public-types → types}/integrations/ai_chatbot.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/integrations/api.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/integrations/auth.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/integrations/database.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/integrations/observability.types.js +0 -0
- /package/dist/internal-common/src/{public-types → types}/integrations/queue-types.js +0 -0
package/package.json
CHANGED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig } from './schemas';
|
|
2
|
-
import { AiModelName } from '../ai-chatbot.public-types';
|
|
3
|
-
import { IntegrationType } from '../integration.public-types';
|
|
4
|
-
import { IntegrationId } from '../communication.public-types';
|
|
5
|
-
export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
|
|
6
|
-
type: IntegrationType.ai_chatbot;
|
|
7
|
-
configuration: AiChatbotConfiguration;
|
|
8
|
-
}
|
|
9
|
-
export type AiChatbotConfiguration = {
|
|
10
|
-
apiKey?: string;
|
|
11
|
-
};
|
|
12
|
-
export type AiChatbotProfileMetadata = {
|
|
13
|
-
modelName: AiModelName;
|
|
14
|
-
isPublic: boolean;
|
|
15
|
-
strictContext: boolean;
|
|
16
|
-
instructions: Record<string, string>;
|
|
17
|
-
};
|
|
18
|
-
export type AiChatbotContextMetadata = {
|
|
19
|
-
title: string;
|
|
20
|
-
text: string;
|
|
21
|
-
preview: boolean;
|
|
22
|
-
sizeBytes?: number;
|
|
23
|
-
};
|
|
24
|
-
export interface AiChatbotProfile extends AiChatbotProfileMetadata {
|
|
25
|
-
contexts: Record<string, AiChatbotContextMetadata>;
|
|
26
|
-
}
|
|
27
|
-
export interface AiChatbotProfiles {
|
|
28
|
-
profiles: Record<string, AiChatbotProfile>;
|
|
29
|
-
}
|
|
30
|
-
export interface GetAiChatbotProfilesRequest {
|
|
31
|
-
integrationId: IntegrationId;
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ai_chatbot.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/ai_chatbot.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { BaseIntegrationConfig, BaseIntegrationSchema } from './schemas';
|
|
2
|
-
import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
|
|
3
|
-
import { IntrospectionQuery } from '../graphql.public-types';
|
|
4
|
-
import { FieldName } from '../document.public-types';
|
|
5
|
-
export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
|
|
6
|
-
export type ApiEndpointId = string;
|
|
7
|
-
export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
|
|
8
|
-
export type ApiResponseParameterLocation = 'header' | 'body';
|
|
9
|
-
export type ApiInjectionParameterLocation = 'header' | 'query';
|
|
10
|
-
export type FieldPath = string;
|
|
11
|
-
export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
|
|
12
|
-
export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
|
|
13
|
-
type: IntegrationSchemaType.graphql;
|
|
14
|
-
introspection: IntrospectionQuery;
|
|
15
|
-
}
|
|
16
|
-
export interface IntegrationApiSchema extends BaseIntegrationSchema {
|
|
17
|
-
type: IntegrationSchemaType.api;
|
|
18
|
-
baseUrl: string;
|
|
19
|
-
endpoints: IntegrationApiEndpoints;
|
|
20
|
-
injectionSchema?: ApiInjectionSchema;
|
|
21
|
-
}
|
|
22
|
-
export interface ApiRequestField {
|
|
23
|
-
location: ApiParameterLocation;
|
|
24
|
-
}
|
|
25
|
-
export interface ApiResponseField {
|
|
26
|
-
location: ApiResponseParameterLocation;
|
|
27
|
-
path?: FieldPath;
|
|
28
|
-
}
|
|
29
|
-
export type ApiInjectionFieldType = 'secret' | 'regular';
|
|
30
|
-
export interface ApiInjectionField {
|
|
31
|
-
value: string;
|
|
32
|
-
type: ApiInjectionFieldType;
|
|
33
|
-
location: ApiInjectionParameterLocation;
|
|
34
|
-
}
|
|
35
|
-
export interface GraphQLConnectionOptions {
|
|
36
|
-
baseUrl: string;
|
|
37
|
-
injectionSchema?: ApiInjectionSchema;
|
|
38
|
-
}
|
|
39
|
-
export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
|
|
40
|
-
export interface OpenApiDiscoveryOptions {
|
|
41
|
-
openApiSpecUrl: string;
|
|
42
|
-
}
|
|
43
|
-
export interface ApiEndpoint {
|
|
44
|
-
relativePath: string;
|
|
45
|
-
method: HttpMethod;
|
|
46
|
-
requestSchema?: Record<FieldName, ApiRequestField>;
|
|
47
|
-
responseSchema?: Record<FieldPath, ApiResponseField>;
|
|
48
|
-
injectionSchema?: ApiInjectionSchema;
|
|
49
|
-
}
|
|
50
|
-
export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
|
|
51
|
-
type: IntegrationType.api;
|
|
52
|
-
configuration?: {
|
|
53
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
|
|
57
|
-
type: IntegrationType.graphql;
|
|
58
|
-
configuration: {
|
|
59
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
export interface DiscoverGraphQLConnectionSchemaRequest {
|
|
63
|
-
integrationType: IntegrationType.graphql;
|
|
64
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
65
|
-
}
|
|
66
|
-
export interface DiscoverOpenApiSchemaRequest {
|
|
67
|
-
integrationType: IntegrationType.api;
|
|
68
|
-
discoveryOptions: OpenApiDiscoveryOptions;
|
|
69
|
-
}
|
|
70
|
-
export interface TestGraphQLDataConnectionRequest {
|
|
71
|
-
type: IntegrationType.graphql;
|
|
72
|
-
configuration: {
|
|
73
|
-
connectionOptions: GraphQLConnectionOptions;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
export interface DiscoverGraphQLConnectionSchemaResponse {
|
|
77
|
-
schema: IntegrationGraphQLSchema;
|
|
78
|
-
}
|
|
79
|
-
export interface DiscoverOpenApiSchemaResponse {
|
|
80
|
-
schema: IntegrationApiSchema;
|
|
81
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/api.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/auth.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"database.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/database.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/observability.types.ts"],"names":[],"mappings":";;;AAqBa,QAAA,gBAAgB,GAAkC;IAC7D,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,YAAY;IACjB,GAAG,EAAE,eAAe;IACpB,GAAG,EAAE,cAAc;IACnB,GAAG,EAAE,YAAY;IACjB,SAAS,EAAE,mBAAmB;CAC/B,CAAC;AAEW,QAAA,iBAAiB,GAAkC;IAC9D,GAAG,EAAE,wCAAwC;IAC7C,GAAG,EAAE,4CAA4C;IACjD,GAAG,EAAE,4CAA4C;IACjD,GAAG,EAAE,uCAAuC;IAC5C,GAAG,EAAE,4CAA4C;IACjD,SAAS,EAAE,uCAAuC;CACnD,CAAC;AASW,QAAA,iBAAiB,GAAmC;IAC/D,SAAS,EAAE,WAAW;IACtB,EAAE,EAAE,QAAQ;CACb,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"queue-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/queue-types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/schemas.ts"],"names":[],"mappings":";;;AA8BA,0EAAqF;AAoDxE,QAAA,wBAAwB,GAAG;IACtC,0CAAe,CAAC,WAAW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
|
|
6
|
-
"types": "dist/local-backend/src/index.d.ts",
|
|
7
|
-
"files": [
|
|
8
|
-
"dist/**/*"
|
|
9
|
-
],
|
|
10
|
-
"publishConfig": {
|
|
11
|
-
"access": "public"
|
|
12
|
-
},
|
|
13
|
-
"author": "Squid Cloud",
|
|
14
|
-
"private": false,
|
|
15
|
-
"license": "UNLICENSED",
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "nest build && cp openapi-template.hbs dist/local-backend",
|
|
18
|
-
"check-public-types": "tsc -p tsconfig.types.json",
|
|
19
|
-
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
|
|
20
|
-
"start": "nest start",
|
|
21
|
-
"start:dev": "nest start --watch",
|
|
22
|
-
"start:debug": "nest start --debug --watch",
|
|
23
|
-
"start:prod": "node dist/main",
|
|
24
|
-
"lint": "eslint . --ext .ts",
|
|
25
|
-
"publish:public": "npm run build && npm publish --access public"
|
|
26
|
-
},
|
|
27
|
-
"engines": {
|
|
28
|
-
"node": ">=18.0.0"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@nestjs/common": "^9.0.0",
|
|
32
|
-
"@nestjs/config": "^2.2.0",
|
|
33
|
-
"@nestjs/core": "^9.0.0",
|
|
34
|
-
"@nestjs/platform-express": "^9.0.0",
|
|
35
|
-
"@supercharge/promise-pool": "^2.4.0",
|
|
36
|
-
"ajv": "^8.11.2",
|
|
37
|
-
"ajv-formats": "^2.1.1",
|
|
38
|
-
"cli-box": "^6.0.10",
|
|
39
|
-
"graphql": "^16.6.0",
|
|
40
|
-
"json-schema-typed": "^8.0.1",
|
|
41
|
-
"lodash": "^4.17.21",
|
|
42
|
-
"reflect-metadata": "^0.1.13",
|
|
43
|
-
"rxjs": ">=7.5.7 <8.0.0",
|
|
44
|
-
"semver": "^7.5.4",
|
|
45
|
-
"tsoa": "^5.1.1",
|
|
46
|
-
"ws": "^8.13.0"
|
|
47
|
-
},
|
|
48
|
-
"devDependencies": {
|
|
49
|
-
"@types/cli-box": "^6.0.1",
|
|
50
|
-
"@types/express": "^4.17.13",
|
|
51
|
-
"@types/supertest": "^2.0.11",
|
|
52
|
-
"source-map-support": "^0.5.20",
|
|
53
|
-
"supertest": "^6.1.3"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/internal-common/src/{public-types → types}/integrations/observability.types.js
RENAMED
|
File without changes
|
|
File without changes
|