@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.
Files changed (59) hide show
  1. package/dist/internal-common/src/public-types/ai-chatbot.public-context.d.ts +2 -0
  2. package/dist/internal-common/src/public-types/ai-chatbot.public-context.js.map +1 -1
  3. package/dist/internal-common/src/public-types/ai-chatbot.public-types.d.ts +1 -16
  4. package/dist/internal-common/src/public-types/api-call.public-context.d.ts +1 -1
  5. package/dist/internal-common/src/public-types/application.public-types.d.ts +0 -37
  6. package/dist/internal-common/src/public-types/application.public-types.js.map +1 -1
  7. package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +31 -0
  8. package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js +3 -0
  9. package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js.map +1 -0
  10. package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +41 -0
  11. package/dist/internal-common/src/public-types/integrations/api.public-types.js +3 -0
  12. package/dist/internal-common/src/public-types/integrations/api.public-types.js.map +1 -0
  13. package/dist/internal-common/src/public-types/query.public-types.d.ts +1 -0
  14. package/dist/internal-common/src/public-types/query.public-types.js +13 -1
  15. package/dist/internal-common/src/public-types/query.public-types.js.map +1 -1
  16. package/dist/internal-common/src/public-types/secret.public-types.d.ts +8 -0
  17. package/dist/internal-common/src/types/ai-chatbot.types.d.ts +3 -2
  18. package/dist/internal-common/src/types/api.types.d.ts +1 -1
  19. package/dist/internal-common/src/types/application.types.d.ts +36 -2
  20. package/dist/internal-common/src/types/bundle-data.types.d.ts +1 -1
  21. package/dist/internal-common/src/types/integrations/ai_chatbot.types.d.ts +17 -0
  22. package/dist/internal-common/src/types/integrations/ai_chatbot.types.js.map +1 -0
  23. package/dist/internal-common/src/types/integrations/api.types.d.ts +36 -0
  24. package/dist/internal-common/src/types/integrations/api.types.js.map +1 -0
  25. package/dist/internal-common/src/{public-types → types}/integrations/auth.types.d.ts +1 -1
  26. package/dist/internal-common/src/types/integrations/auth.types.js.map +1 -0
  27. package/dist/internal-common/src/{public-types → types}/integrations/database.types.d.ts +3 -3
  28. package/dist/internal-common/src/types/integrations/database.types.js.map +1 -0
  29. package/dist/internal-common/src/{public-types → types}/integrations/observability.types.d.ts +1 -1
  30. package/dist/internal-common/src/types/integrations/observability.types.js.map +1 -0
  31. package/dist/internal-common/src/{public-types → types}/integrations/queue-types.d.ts +4 -13
  32. package/dist/internal-common/src/types/integrations/queue-types.js.map +1 -0
  33. package/dist/internal-common/src/{public-types → types}/integrations/schemas.d.ts +4 -4
  34. package/dist/internal-common/src/{public-types → types}/integrations/schemas.js +1 -1
  35. package/dist/internal-common/src/types/integrations/schemas.js.map +1 -0
  36. package/dist/internal-common/src/types/secret.types.d.ts +1 -9
  37. package/dist/internal-common/src/types/secret.types.js.map +1 -1
  38. package/dist/local-backend/src/index.js +0 -6
  39. package/dist/local-backend/src/index.js.map +1 -1
  40. package/dist/local-backend/src/local-backend.app.js +6 -0
  41. package/dist/local-backend/src/local-backend.app.js.map +1 -1
  42. package/dist/tsconfig.build.tsbuildinfo +1 -1
  43. package/package.json +1 -1
  44. package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.d.ts +0 -32
  45. package/dist/internal-common/src/public-types/integrations/ai_chatbot.types.js.map +0 -1
  46. package/dist/internal-common/src/public-types/integrations/api.types.d.ts +0 -81
  47. package/dist/internal-common/src/public-types/integrations/api.types.js.map +0 -1
  48. package/dist/internal-common/src/public-types/integrations/auth.types.js.map +0 -1
  49. package/dist/internal-common/src/public-types/integrations/database.types.js.map +0 -1
  50. package/dist/internal-common/src/public-types/integrations/observability.types.js.map +0 -1
  51. package/dist/internal-common/src/public-types/integrations/queue-types.js.map +0 -1
  52. package/dist/internal-common/src/public-types/integrations/schemas.js.map +0 -1
  53. package/dist/local-backend/package.json +0 -55
  54. /package/dist/internal-common/src/{public-types → types}/integrations/ai_chatbot.types.js +0 -0
  55. /package/dist/internal-common/src/{public-types → types}/integrations/api.types.js +0 -0
  56. /package/dist/internal-common/src/{public-types → types}/integrations/auth.types.js +0 -0
  57. /package/dist/internal-common/src/{public-types → types}/integrations/database.types.js +0 -0
  58. /package/dist/internal-common/src/{public-types → types}/integrations/observability.types.js +0 -0
  59. /package/dist/internal-common/src/{public-types → types}/integrations/queue-types.js +0 -0
@@ -1,4 +1,5 @@
1
1
  import { AiChatbotMutationType, AiChatbotResourceType } from './ai-chatbot.public-types';
2
+ import { AiChatbotFileContext, AiChatbotTextContext, AiChatbotUrlContext } from './integrations/ai_chatbot.public-types';
2
3
  export declare class AiChatbotChatContext {
3
4
  readonly prompt: string;
4
5
  readonly profileId: string;
@@ -11,3 +12,4 @@ export declare class AiChatbotMutationContext {
11
12
  readonly payload: any;
12
13
  constructor(prototype: AiChatbotMutationContext);
13
14
  }
15
+ export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
@@ -1 +1 @@
1
- {"version":3,"file":"ai-chatbot.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-context.ts"],"names":[],"mappings":";;;AAEA,MAAa,oBAAoB;IAO/B,YAAY,SAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IACjC,CAAC;CACF;AAXD,oDAWC;AAGD,MAAa,wBAAwB;IASnC,YAAY,SAAmC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;IACnC,CAAC;CACF;AAfD,4DAeC"}
1
+ {"version":3,"file":"ai-chatbot.public-context.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-context.ts"],"names":[],"mappings":";;;AAOA,MAAa,oBAAoB;IAO/B,YAAY,SAA+B;QACzC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC;IACjC,CAAC;CACF;AAXD,oDAWC;AAGD,MAAa,wBAAwB;IASnC,YAAY,SAAmC;QAC7C,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;QACrC,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACnC,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;IACnC,CAAC;CACF;AAfD,4DAeC"}
@@ -1,21 +1,6 @@
1
1
  export declare const AI_MODEL_NAMES: readonly ["gpt-3.5-turbo", "gpt-3.5-turbo-1106", "gpt-4", "claude-2", "gpt-4-1106-preview"];
2
2
  export type AiModelName = (typeof AI_MODEL_NAMES)[number];
3
3
  export type ApiKeySource = 'user' | 'system';
4
- export type AiChatbotContextType = 'text' | 'url' | 'file';
5
- interface AiChatbotContextBase {
6
- type: AiChatbotContextType;
7
- data: string;
8
- }
9
- export interface AiChatbotTextContext extends AiChatbotContextBase {
10
- type: 'text';
11
- }
12
- export interface AiChatbotUrlContext extends AiChatbotContextBase {
13
- type: 'url';
14
- }
15
- export interface AiChatbotFileContext extends AiChatbotContextBase {
16
- type: 'file';
17
- }
18
- export type AiChatbotContext = AiChatbotTextContext | AiChatbotUrlContext | AiChatbotFileContext;
19
4
  export type OpenAiResponseFormat = 'text' | 'json_object';
20
5
  export interface AiChatbotChatOptions {
21
6
  maxTokens?: number;
@@ -23,7 +8,7 @@ export interface AiChatbotChatOptions {
23
8
  disableHistory?: boolean;
24
9
  includeReference?: boolean;
25
10
  responseFormat?: OpenAiResponseFormat;
11
+ smoothTyping?: boolean;
26
12
  }
27
13
  export type AiChatbotMutationType = 'insert' | 'update' | 'delete';
28
14
  export type AiChatbotResourceType = 'instruction' | 'context' | 'profile';
29
- export {};
@@ -1,4 +1,4 @@
1
- import { ApiEndpointId, HttpMethod } from './integrations/api.types';
1
+ import { ApiEndpointId, HttpMethod } from './integrations/api.public-types';
2
2
  export type ApiHeaders = Record<string, string | number | boolean>;
3
3
  export declare class ApiCallContext {
4
4
  readonly endpointId: ApiEndpointId;
@@ -1,6 +1,3 @@
1
- import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
2
- import { IntegrationType } from './integration.public-types';
3
- import { IntegrationId } from './communication.public-types';
4
1
  export type WebhookId = string;
5
2
  export type TriggerId = string;
6
3
  export type SchedulerId = string;
@@ -90,37 +87,3 @@ export declare enum CronExpression {
90
87
  MONDAY_TO_FRIDAY_AT_10PM = "0 0 22 * * 1-5",
91
88
  MONDAY_TO_FRIDAY_AT_11PM = "0 0 23 * * 1-5"
92
89
  }
93
- interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
94
- id: IntegrationId;
95
- type: T;
96
- config: Partial<C>;
97
- }
98
- type ConfigurationTypes = {
99
- [K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
100
- };
101
- type UpsertIntegrationRequests = {
102
- [K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
103
- };
104
- export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
105
- export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
106
- export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
107
- export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_chatbot];
108
- export type UpsertKafkaIntegrationRequest = UpsertIntegrationRequests[IntegrationType.kafka];
109
- export type UpsertConfluentIntegrationRequest = UpsertIntegrationRequests[IntegrationType.confluent];
110
- export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
111
- interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
112
- id: IntegrationId;
113
- type: T;
114
- schema: S;
115
- }
116
- type SchemaTypes = {
117
- [K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
118
- };
119
- type UpsertIntegrationSchemaRequests = {
120
- [K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
121
- };
122
- export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
123
- export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
124
- export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
125
- export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
126
- export {};
@@ -1 +1 @@
1
- {"version":3,"file":"application.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/application.public-types.ts"],"names":[],"mappings":";;;AA6BA,IAAY,cAoFX;AApFD,WAAY,cAAc;IACxB,8CAA4B,CAAA;IAC5B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,8CAA4B,CAAA;IAC5B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,oDAAkC,CAAA;IAClC,oDAAkC,CAAA;IAClC,oDAAkC,CAAA;IAClC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,qDAAmC,CAAA;IACnC,0CAAwB,CAAA;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,kEAAgD,CAAA;IAChD,+DAA6C,CAAA;IAC7C,gDAA8B,CAAA;IAC9B,yEAAuD,CAAA;IACvD,iDAA+B,CAAA;IAC/B,+CAA6B,CAAA;IAC7B,gDAA8B,CAAA;IAC9B,0CAAwB,CAAA;IACxB,4EAA0D,CAAA;IAC1D,4EAA0D,CAAA;IAC1D,8EAA4D,CAAA;IAC5D,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,iEAA+C,CAAA;IAC/C,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;IAC3C,iEAA+C,CAAA;IAC/C,6DAA2C,CAAA;IAC3C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;AAC7C,CAAC,EApFW,cAAc,8BAAd,cAAc,QAoFzB"}
1
+ {"version":3,"file":"application.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/application.public-types.ts"],"names":[],"mappings":";;;AAgBA,IAAY,cAoFX;AApFD,WAAY,cAAc;IACxB,8CAA4B,CAAA;IAC5B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,8CAA4B,CAAA;IAC5B,mDAAiC,CAAA;IACjC,qDAAmC,CAAA;IACnC,qDAAmC,CAAA;IACnC,+CAA6B,CAAA;IAC7B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,oDAAkC,CAAA;IAClC,oDAAkC,CAAA;IAClC,oDAAkC,CAAA;IAClC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,iDAA+B,CAAA;IAC/B,kDAAgC,CAAA;IAChC,kDAAgC,CAAA;IAChC,qDAAmC,CAAA;IACnC,0CAAwB,CAAA;IACxB,+CAA6B,CAAA;IAC7B,+CAA6B,CAAA;IAC7B,kEAAgD,CAAA;IAChD,+DAA6C,CAAA;IAC7C,gDAA8B,CAAA;IAC9B,yEAAuD,CAAA;IACvD,iDAA+B,CAAA;IAC/B,+CAA6B,CAAA;IAC7B,gDAA8B,CAAA;IAC9B,0CAAwB,CAAA;IACxB,4EAA0D,CAAA;IAC1D,4EAA0D,CAAA;IAC1D,8EAA4D,CAAA;IAC5D,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,iEAA+C,CAAA;IAC/C,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;IAC3C,iEAA+C,CAAA;IAC/C,6DAA2C,CAAA;IAC3C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,4DAA0C,CAAA;IAC1C,6DAA2C,CAAA;IAC3C,6DAA2C,CAAA;AAC7C,CAAC,EApFW,cAAc,8BAAd,cAAc,QAoFzB"}
@@ -0,0 +1,31 @@
1
+ import { AiModelName } from '../ai-chatbot.public-types';
2
+ export type AiChatbotConfiguration = {
3
+ apiKey?: string;
4
+ };
5
+ export type AiChatbotProfileMetadata = {
6
+ modelName: AiModelName;
7
+ isPublic: boolean;
8
+ strictContext: boolean;
9
+ instructions: Record<string, string>;
10
+ };
11
+ export type AiChatbotContextMetadata = {
12
+ title: string;
13
+ text: string;
14
+ preview: boolean;
15
+ sizeBytes?: number;
16
+ };
17
+ export type AiChatbotContextType = 'text' | 'url' | 'file';
18
+ interface AiChatbotContextBase {
19
+ type: AiChatbotContextType;
20
+ data: string;
21
+ }
22
+ export interface AiChatbotTextContext extends AiChatbotContextBase {
23
+ type: 'text';
24
+ }
25
+ export interface AiChatbotUrlContext extends AiChatbotContextBase {
26
+ type: 'url';
27
+ }
28
+ export interface AiChatbotFileContext extends AiChatbotContextBase {
29
+ type: 'file';
30
+ }
31
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ai_chatbot.public-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai_chatbot.public-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/ai_chatbot.public-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,41 @@
1
+ import { IntegrationType } from '../integration.public-types';
2
+ import { FieldName } from '../document.public-types';
3
+ export type HttpMethod = 'post' | 'get' | 'delete' | 'patch' | 'put';
4
+ export type ApiEndpointId = string;
5
+ export type ApiParameterLocation = 'query' | 'body' | 'header' | 'path';
6
+ export type ApiResponseParameterLocation = 'header' | 'body';
7
+ export type ApiInjectionParameterLocation = 'header' | 'query';
8
+ export type FieldPath = string;
9
+ export type IntegrationApiEndpoints = Record<ApiEndpointId, ApiEndpoint>;
10
+ export interface ApiRequestField {
11
+ location: ApiParameterLocation;
12
+ }
13
+ export interface ApiResponseField {
14
+ location: ApiResponseParameterLocation;
15
+ path?: FieldPath;
16
+ }
17
+ export type ApiInjectionFieldType = 'secret' | 'regular';
18
+ export interface ApiInjectionField {
19
+ value: string;
20
+ type: ApiInjectionFieldType;
21
+ location: ApiInjectionParameterLocation;
22
+ }
23
+ export interface GraphQLConnectionOptions {
24
+ baseUrl: string;
25
+ injectionSchema?: ApiInjectionSchema;
26
+ }
27
+ export type ApiInjectionSchema = Record<FieldName, ApiInjectionField>;
28
+ export interface OpenApiDiscoveryOptions {
29
+ openApiSpecUrl: string;
30
+ }
31
+ export interface ApiEndpoint {
32
+ relativePath: string;
33
+ method: HttpMethod;
34
+ requestSchema?: Record<FieldName, ApiRequestField>;
35
+ responseSchema?: Record<FieldPath, ApiResponseField>;
36
+ injectionSchema?: ApiInjectionSchema;
37
+ }
38
+ export interface DiscoverOpenApiSchemaRequest {
39
+ integrationType: IntegrationType.api;
40
+ discoveryOptions: OpenApiDiscoveryOptions;
41
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=api.public-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.public-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/api.public-types.ts"],"names":[],"mappings":""}
@@ -21,6 +21,7 @@ export interface CompositeCondition<Doc extends DocumentData = any> {
21
21
  export declare function isSimpleCondition(condition: Condition): condition is SimpleCondition;
22
22
  type CompositeConditionOperator = '>=' | '<=' | '>' | '<';
23
23
  export type Operator = '==' | '!=' | CompositeConditionOperator | 'like' | 'not like' | 'like_cs' | 'not like_cs';
24
+ export declare const ALL_OPERATORS: Array<Operator>;
24
25
  export interface FieldSort<Doc> {
25
26
  fieldName: FieldName<Doc>;
26
27
  asc: boolean;
@@ -1,8 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isSimpleCondition = void 0;
3
+ exports.ALL_OPERATORS = exports.isSimpleCondition = void 0;
4
4
  function isSimpleCondition(condition) {
5
5
  return 'fieldName' in condition;
6
6
  }
7
7
  exports.isSimpleCondition = isSimpleCondition;
8
+ exports.ALL_OPERATORS = [
9
+ '==',
10
+ '!=',
11
+ '>=',
12
+ '<=',
13
+ '>',
14
+ '<',
15
+ 'like',
16
+ 'not like',
17
+ 'like_cs',
18
+ 'not like_cs',
19
+ ];
8
20
  //# sourceMappingURL=query.public-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/query.public-types.ts"],"names":[],"mappings":";;;AA8CA,SAAgB,iBAAiB,CAAC,SAAoB;IACpD,OAAO,WAAW,IAAI,SAAS,CAAC;AAClC,CAAC;AAFD,8CAEC"}
1
+ {"version":3,"file":"query.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/query.public-types.ts"],"names":[],"mappings":";;;AA8CA,SAAgB,iBAAiB,CAAC,SAAoB;IACpD,OAAO,WAAW,IAAI,SAAS,CAAC;AAClC,CAAC;AAFD,8CAEC;AAMY,QAAA,aAAa,GAAoB;IAC5C,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,MAAM;IACN,UAAU;IACV,SAAS;IACT,aAAa;CACd,CAAC"}
@@ -11,3 +11,11 @@ export interface SecretEntry<T extends SecretValue = SecretValue> extends Secret
11
11
  export interface ApiKeyEntry extends SecretMetadata {
12
12
  value: string;
13
13
  }
14
+ export type SetSecretEntry = {
15
+ key: SecretKey;
16
+ value?: SecretValue;
17
+ };
18
+ export interface SetSecretRequestEntry {
19
+ key: SecretKey;
20
+ value: SecretValue;
21
+ }
@@ -1,6 +1,7 @@
1
- import { AiChatbotChatOptions, AiChatbotContext, AiChatbotMutationType, AiChatbotResourceType, AiModelName, ApiKeySource, OpenAiResponseFormat } from '../public-types/ai-chatbot.public-types';
2
- import { AiChatbotProfileMetadata } from '../public-types/integrations/ai_chatbot.types';
1
+ import { AiChatbotChatOptions, AiChatbotMutationType, AiChatbotResourceType, AiModelName, ApiKeySource, OpenAiResponseFormat } from '../public-types/ai-chatbot.public-types';
3
2
  import { ClientRequestId, IntegrationId } from '../public-types/communication.public-types';
3
+ import { AiChatbotProfileMetadata } from '../public-types/integrations/ai_chatbot.public-types';
4
+ import { AiChatbotContext } from '../public-types/ai-chatbot.public-context';
4
5
  type ModelDataType = {
5
6
  tokens: number;
6
7
  };
@@ -1,4 +1,4 @@
1
- import { ApiEndpointId, HttpMethod } from '../public-types/integrations/api.types';
1
+ import { ApiEndpointId, HttpMethod } from '../public-types/integrations/api.public-types';
2
2
  import { IntegrationId } from '../public-types/communication.public-types';
3
3
  import { ApiHeaders } from '../public-types/api-call.public-context';
4
4
  export type ApiQueryParams = Record<string, string | number | boolean>;
@@ -1,9 +1,9 @@
1
- import { UpsertAiChatbotIntegrationRequest, UpsertApiIntegrationRequest, UpsertAuthIntegrationRequest, UpsertConfluentIntegrationRequest, UpsertDataIntegrationRequest, UpsertGraphQLIntegrationRequest, UpsertKafkaIntegrationRequest } from '../public-types/application.public-types';
2
1
  import { AppId, IntegrationId } from '../public-types/communication.public-types';
3
2
  import { CollectionName } from '../public-types/document.public-types';
4
- import { IntegrationConfig, IntegrationSchema } from '../public-types/integrations/schemas';
3
+ import { AuthIntegrationType, DatabaseIntegrationType, IntegrationConfig, IntegrationConfigTypes, IntegrationSchema, IntegrationSchemaKeys, IntegrationSchemaTypes, IntegrationTypeWithConfig } from './integrations/schemas';
5
4
  import { RunPermissions } from './backend-run.types';
6
5
  import { ApplicationBundleData, ServiceFunctionName } from './bundle-data.types';
6
+ import { IntegrationType } from '../public-types/integration.public-types';
7
7
  export type OpenIdProviderType = 'auth0';
8
8
  export type CodeUrl = string;
9
9
  export interface TriggerConfig {
@@ -57,4 +57,38 @@ export interface CreateApplicationRequest {
57
57
  export interface CreateApplicationResponse {
58
58
  appId: AppId;
59
59
  }
60
+ interface BaseUpsertIntegrationRequest<T extends IntegrationTypeWithConfig, C extends IntegrationConfig> {
61
+ id: IntegrationId;
62
+ type: T;
63
+ config: Partial<C>;
64
+ }
65
+ type UpsertIntegrationRequests = {
66
+ [K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<K, ConfigurationTypes[K]>;
67
+ };
68
+ export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
69
+ export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
70
+ export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
71
+ export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_chatbot];
72
+ export type UpsertKafkaIntegrationRequest = UpsertIntegrationRequests[IntegrationType.kafka];
73
+ export type UpsertConfluentIntegrationRequest = UpsertIntegrationRequests[IntegrationType.confluent];
74
+ export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
75
+ interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
76
+ id: IntegrationId;
77
+ type: T;
78
+ schema: S;
79
+ }
80
+ type SchemaTypes = {
81
+ [K in IntegrationSchemaKeys]: IntegrationSchemaTypes[K];
82
+ };
83
+ type UpsertIntegrationSchemaRequests = {
84
+ [K in IntegrationSchemaKeys]: BaseUpsertIntegrationSchemaRequest<K, SchemaTypes[K]>;
85
+ };
86
+ export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
87
+ export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
88
+ export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
89
+ export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
60
90
  export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiChatbotIntegrationRequest | UpsertConfluentIntegrationRequest | UpsertKafkaIntegrationRequest | UpsertAuthIntegrationRequest;
91
+ type ConfigurationTypes = {
92
+ [K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
93
+ };
94
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { SchedulerId, TriggerId, WebhookId } from '../public-types/application.public-types';
2
- import { ApiEndpointId } from '../public-types/integrations/api.types';
2
+ import { ApiEndpointId } from '../public-types/integrations/api.public-types';
3
3
  import { OpenApiController } from './openapi.types';
4
4
  import { AiChatbotActionType, AiFunctionParamType, DatabaseActionType, FunctionName, TopicActionType } from '../public-types/bundle-data.public-types';
5
5
  import { IntegrationId } from '../public-types/communication.public-types';
@@ -0,0 +1,17 @@
1
+ import { BaseIntegrationConfig } from './schemas';
2
+ import { IntegrationType } from '../../public-types/integration.public-types';
3
+ import { AiChatbotConfiguration, AiChatbotContextMetadata, AiChatbotProfileMetadata } from '../../public-types/integrations/ai_chatbot.public-types';
4
+ import { IntegrationId } from '../../public-types/communication.public-types';
5
+ export interface AiChatbotIntegrationConfig extends BaseIntegrationConfig {
6
+ type: IntegrationType.ai_chatbot;
7
+ configuration: AiChatbotConfiguration;
8
+ }
9
+ export interface AiChatbotProfile extends AiChatbotProfileMetadata {
10
+ contexts: Record<string, AiChatbotContextMetadata>;
11
+ }
12
+ export interface AiChatbotProfiles {
13
+ profiles: Record<string, AiChatbotProfile>;
14
+ }
15
+ export interface GetAiChatbotProfilesRequest {
16
+ integrationId: IntegrationId;
17
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai_chatbot.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/ai_chatbot.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import { BaseIntegrationConfig, BaseIntegrationSchema } from './schemas';
2
+ import { IntegrationSchemaType, IntegrationType } from '../../public-types/integration.public-types';
3
+ import { IntrospectionQuery } from '../../public-types/graphql.public-types';
4
+ import { ApiInjectionSchema, GraphQLConnectionOptions, IntegrationApiEndpoints, OpenApiDiscoveryOptions } from '../../public-types/integrations/api.public-types';
5
+ export interface IntegrationGraphQLSchema extends BaseIntegrationSchema {
6
+ type: IntegrationSchemaType.graphql;
7
+ introspection: IntrospectionQuery;
8
+ }
9
+ export interface IntegrationApiSchema extends BaseIntegrationSchema {
10
+ type: IntegrationSchemaType.api;
11
+ baseUrl: string;
12
+ endpoints: IntegrationApiEndpoints;
13
+ injectionSchema?: ApiInjectionSchema;
14
+ }
15
+ export interface HttpApiIntegrationConfig extends BaseIntegrationConfig {
16
+ type: IntegrationType.api;
17
+ configuration?: {
18
+ discoveryOptions: OpenApiDiscoveryOptions;
19
+ };
20
+ }
21
+ export interface GraphQLIntegrationConfig extends BaseIntegrationConfig {
22
+ type: IntegrationType.graphql;
23
+ configuration: {
24
+ connectionOptions: GraphQLConnectionOptions;
25
+ };
26
+ }
27
+ export interface DiscoverGraphQLConnectionSchemaRequest {
28
+ integrationType: IntegrationType.graphql;
29
+ connectionOptions: GraphQLConnectionOptions;
30
+ }
31
+ export interface DiscoverGraphQLConnectionSchemaResponse {
32
+ schema: IntegrationGraphQLSchema;
33
+ }
34
+ export interface DiscoverOpenApiSchemaResponse {
35
+ schema: IntegrationApiSchema;
36
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/api.types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { BaseIntegrationConfig } from './schemas';
2
- import { IntegrationType } from '../integration.public-types';
2
+ import { IntegrationType } from '../../public-types/integration.public-types';
3
3
  export interface Auth0IntegrationConfig extends BaseIntegrationConfig {
4
4
  type: IntegrationType.auth0;
5
5
  configuration: {
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/auth.types.ts"],"names":[],"mappings":""}
@@ -1,7 +1,7 @@
1
1
  import { BaseIntegrationConfig, BaseIntegrationSchema, DatabaseIntegrationType } from './schemas';
2
- import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
3
- import { CollectionName } from '../document.public-types';
4
- import { CollectionSchema } from '../schema.public-types';
2
+ import { IntegrationSchemaType, IntegrationType } from '../../public-types/integration.public-types';
3
+ import { CollectionName } from '../../public-types/document.public-types';
4
+ import { CollectionSchema } from '../../public-types/schema.public-types';
5
5
  export interface MongoConnectionSecretOptions {
6
6
  password?: string;
7
7
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/database.types.ts"],"names":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  import { BaseIntegrationConfig } from './schemas';
2
- import { IntegrationType } from '../integration.public-types';
2
+ import { IntegrationType } from '../../public-types/integration.public-types';
3
3
  export interface DatadogIntegrationConfig extends BaseIntegrationConfig {
4
4
  type: IntegrationType.datadog;
5
5
  configuration: DatadogIntegrationConfiguration;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"observability.types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/observability.types.ts"],"names":[],"mappings":";;;AA0Ba,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;AAGW,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;AAYW,QAAA,iBAAiB,GAAmC;IAC/D,SAAS,EAAE,WAAW;IACtB,EAAE,EAAE,QAAQ;CACb,CAAC"}
@@ -1,4 +1,4 @@
1
- import { IntegrationType } from '../integration.public-types';
1
+ import { IntegrationType } from '../../public-types/integration.public-types';
2
2
  import { BaseIntegrationConfig, QueueIntegrationTypes } from './schemas';
3
3
  export type QueueIntegrationType = (typeof QueueIntegrationTypes)[number];
4
4
  export interface BaseQueueIntegrationConfig extends BaseIntegrationConfig {
@@ -6,11 +6,14 @@ export interface BaseQueueIntegrationConfig extends BaseIntegrationConfig {
6
6
  }
7
7
  export interface KafkaConnectionSecretOptions {
8
8
  password?: string;
9
+ schemaRegistryPassword?: string;
9
10
  }
10
11
  export interface KafkaConnectionOptions {
11
12
  secrets?: KafkaConnectionSecretOptions;
12
13
  username?: string;
13
14
  bootstrapServers: string;
15
+ schemaRegistryUrl?: string;
16
+ schemaRegistryUsername?: string;
14
17
  }
15
18
  export interface KafkaIntegrationConfiguration {
16
19
  connectionOptions: KafkaConnectionOptions;
@@ -26,15 +29,3 @@ export interface ConfluentIntegrationConfig extends BaseQueueIntegrationConfig {
26
29
  export interface BuiltInQueueIntegrationConfig extends BaseQueueIntegrationConfig {
27
30
  type: IntegrationType.built_in_queue;
28
31
  }
29
- export interface TestKafkaConnectionRequest {
30
- type: IntegrationType.kafka;
31
- configuration: {
32
- connectionOptions: KafkaConnectionOptions;
33
- };
34
- }
35
- export interface TestConfluentConnectionRequest {
36
- type: IntegrationType.confluent;
37
- configuration: {
38
- connectionOptions: KafkaConnectionOptions;
39
- };
40
- }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queue-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/queue-types.ts"],"names":[],"mappings":""}
@@ -1,11 +1,11 @@
1
- import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
2
- import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema } from './api.types';
3
1
  import { Auth0IntegrationConfig, CognitoIntegrationConfig, DescopeIntegrationConfig, JwtHmacIntegrationConfig, JwtRsaIntegrationConfig, OktaIntegrationConfig } from './auth.types';
4
2
  import { BaseDatabaseIntegrationConfig, BigQueryIntegrationConfig, ClickHouseIntegrationConfig, CockroachIntegrationConfig, IntegrationDataSchema, InternalIntegrationConfig, MongoIntegrationConfig, MssqlIntegrationConfig, MySqlIntegrationConfig, OracleIntegrationConfig, PostgresIntegrationConfig, SnowflakeIntegrationConfig } from './database.types';
5
3
  import { DatadogIntegrationConfig, NewRelicIntegrationConfig } from './observability.types';
6
- import { IntegrationSchemaType, IntegrationType } from '../integration.public-types';
4
+ import { IntegrationSchemaType, IntegrationType } from '../../public-types/integration.public-types';
7
5
  import { BuiltInQueueIntegrationConfig, ConfluentIntegrationConfig, KafkaIntegrationConfig } from './queue-types';
8
- import { IntegrationId } from '../communication.public-types';
6
+ import { IntegrationId } from '../../public-types/communication.public-types';
7
+ import { AiChatbotIntegrationConfig } from './ai_chatbot.types';
8
+ import { GraphQLIntegrationConfig, HttpApiIntegrationConfig, IntegrationApiSchema, IntegrationGraphQLSchema } from './api.types';
9
9
  export interface IntegrationConfigTypes {
10
10
  [IntegrationType.built_in_db]: InternalIntegrationConfig;
11
11
  [IntegrationType.mongo]: MongoIntegrationConfig;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.isAuthIntegration = exports.isAuthIntegrationType = exports.isDataIntegration = exports.isDataIntegrationType = exports.QueueIntegrationTypes = exports.AuthIntegrationTypes = exports.DatabaseIntegrationTypes = void 0;
4
- const integration_public_types_1 = require("../integration.public-types");
4
+ const integration_public_types_1 = require("../../public-types/integration.public-types");
5
5
  exports.DatabaseIntegrationTypes = [
6
6
  integration_public_types_1.IntegrationType.built_in_db,
7
7
  integration_public_types_1.IntegrationType.mongo,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","sourceRoot":"","sources":["../../../../../../internal-common/src/types/integrations/schemas.ts"],"names":[],"mappings":";;;AAuBA,0FAAqG;AAkExF,QAAA,wBAAwB,GAAG;IACtC,0CAAe,CAAC,WAAW;IAC3B,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,UAAU;IAC1B,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,SAAS;IACzB,0CAAe,CAAC,SAAS;IACzB,0CAAe,CAAC,QAAQ;CAChB,CAAC;AAQE,QAAA,oBAAoB,GAAG;IAClC,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,QAAQ;IACxB,0CAAe,CAAC,OAAO;IACvB,0CAAe,CAAC,IAAI;IACpB,0CAAe,CAAC,OAAO;CACf,CAAC;AAGE,QAAA,qBAAqB,GAAG;IACnC,0CAAe,CAAC,cAAc;IAC9B,0CAAe,CAAC,KAAK;IACrB,0CAAe,CAAC,SAAS;CACjB,CAAC;AAQX,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAO,gCAAwB,CAAC,QAAQ,CAAC,IAA+B,CAAC,CAAC;AAC5E,CAAC;AAFD,sDAEC;AAGD,SAAgB,iBAAiB,CAAC,WAAoB;IACpD,OAAO,qBAAqB,CAAE,WAA6C,aAA7C,WAAW,uBAAX,WAAW,CAAoC,IAAI,CAAC,CAAC;AACrF,CAAC;AAFD,8CAEC;AAGD,SAAgB,qBAAqB,CAAC,IAAa;IACjD,OAAQ,4BAAmD,CAAC,QAAQ,CAAC,IAAuB,CAAC,CAAC;AAChG,CAAC;AAFD,sDAEC;AAGD,SAAgB,iBAAiB,CAAC,WAAoB;IACpD,OAAO,qBAAqB,CAAE,WAAqC,aAArC,WAAW,uBAAX,WAAW,CAA4B,IAAI,CAAC,CAAC;AAC7E,CAAC;AAFD,8CAEC"}
@@ -1,9 +1,5 @@
1
- import { ApiKeyEntry, SecretEntry, SecretKey, SecretMetadata, SecretValue } from '../public-types/secret.public-types';
1
+ import { ApiKeyEntry, SecretEntry, SecretKey, SecretMetadata, SetSecretRequestEntry } from '../public-types/secret.public-types';
2
2
  export type ApiKeyName = string;
3
- export type SetSecretEntry = {
4
- key: SecretKey;
5
- value?: SecretValue;
6
- };
7
3
  export declare const BACKEND_API_KEY = "_BACKEND_API_KEY";
8
4
  export declare const APP_API_KEY = "APP_API_KEY";
9
5
  export interface ApplicationSecrets {
@@ -31,10 +27,6 @@ export interface SystemSecrets {
31
27
  export interface SetSecretRequest {
32
28
  entries: Array<SetSecretRequestEntry>;
33
29
  }
34
- export interface SetSecretRequestEntry {
35
- key: SecretKey;
36
- value: SecretValue;
37
- }
38
30
  export interface DeleteSecretRequest {
39
31
  keys: Array<SecretKey>;
40
32
  }
@@ -1 +1 @@
1
- {"version":3,"file":"secret.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/secret.types.ts"],"names":[],"mappings":";;;AAUa,QAAA,eAAe,GAAG,kBAAkB,CAAC;AACrC,QAAA,WAAW,GAAG,aAAa,CAAC"}
1
+ {"version":3,"file":"secret.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/secret.types.ts"],"names":[],"mappings":";;;AAWa,QAAA,eAAe,GAAG,kBAAkB,CAAC;AACrC,QAAA,WAAW,GAAG,aAAa,CAAC"}
@@ -14,12 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- const semver_1 = require("semver");
18
- const packageJson = require("../package.json");
19
- if (!(0, semver_1.satisfies)(process.version, packageJson.engines.node)) {
20
- console.error(`Error: Your Node.js version (${process.version}) is too old. Please upgrade to Node.js 18 or higher.`);
21
- process.exit(1);
22
- }
23
17
  __exportStar(require("./local-backend.module"), exports);
24
18
  __exportStar(require("./local-backend.app"), exports);
25
19
  __exportStar(require("./local-backend.controller"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mCAAmC;AACnC,+CAA+C;AAE/C,IAAI,CAAC,IAAA,kBAAS,EAAC,OAAO,CAAC,OAAO,EAAE,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;IAC1D,OAAO,CAAC,KAAK,CAAC,gCAAgC,OAAO,CAAC,OAAO,uDAAuD,CAAC,CAAC;IACtH,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,yDAAuC;AACvC,sDAAoC;AACpC,6DAA2C;AAC3C,0DAAwC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,sDAAoC;AACpC,6DAA2C;AAC3C,0DAAwC"}
@@ -14,6 +14,12 @@ To generate a '.env' file, click "Create .env file" button in https://console.sq
14
14
  Once the '.env' file is created, run the Squid backend again.`);
15
15
  process.exit(1);
16
16
  }
17
+ const minVersion = 18;
18
+ const nodeVersion = parseInt(process.version.split('.')[0].slice(1));
19
+ if (nodeVersion < minVersion) {
20
+ console.error(`Error: Squid requires Node.js version ${minVersion} or higher. You are using version ${process.version}.`);
21
+ process.exit(1);
22
+ }
17
23
  async function bootstrapLocalBackend(module) {
18
24
  const app = await core_1.NestFactory.create(module, {
19
25
  rawBody: true,
@@ -1 +1 @@
1
- {"version":3,"file":"local-backend.app.js","sourceRoot":"","sources":["../../../src/local-backend.app.ts"],"names":[],"mappings":";;;AAAA,iEAA6E;AAE7E,uCAA2C;AAC3C,uCAAkC;AAElC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,CAAC;IACvC,OAAO,CAAC,KAAK,CAAC;;;;;;8DAM8C,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,MAA0B;IACpE,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAyB,MAAM,EAAE;QACnE,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,GAAG,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,GAAG,CAAC,qBAAqB,CAAC,IAAA,iBAAM,EAAC,GAAG,CAAC,GAAG,CAAC,sCAAe,CAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AARD,sDAQC"}
1
+ {"version":3,"file":"local-backend.app.js","sourceRoot":"","sources":["../../../src/local-backend.app.ts"],"names":[],"mappings":";;;AAAA,iEAA6E;AAE7E,uCAA2C;AAC3C,uCAAkC;AAElC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,EAAE,CAAC;IACvC,OAAO,CAAC,KAAK,CAAC;;;;;;8DAM8C,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,GAAG,EAAE,CAAC;AACtB,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAErE,IAAI,WAAW,GAAG,UAAU,EAAE,CAAC;IAC7B,OAAO,CAAC,KAAK,CACX,yCAAyC,UAAU,qCAAqC,OAAO,CAAC,OAAO,GAAG,CAC3G,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAEM,KAAK,UAAU,qBAAqB,CAAC,MAA0B;IACpE,MAAM,GAAG,GAAG,MAAM,kBAAW,CAAC,MAAM,CAAyB,MAAM,EAAE;QACnE,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,GAAG,CAAC,aAAa,CAAC,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC;IAC7C,GAAG,CAAC,qBAAqB,CAAC,IAAA,iBAAM,EAAC,GAAG,CAAC,GAAG,CAAC,sCAAe,CAAC,CAAC,CAAC,CAAC;IAC5D,MAAM,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACzB,CAAC;AARD,sDAQC"}