@squidcloud/local-backend 1.0.302 → 1.0.304

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-types.d.ts +2 -1
  2. package/dist/internal-common/src/public-types/ai-chatbot.public-types.js +3 -3
  3. package/dist/internal-common/src/public-types/ai-chatbot.public-types.js.map +1 -1
  4. package/dist/internal-common/src/public-types/bundle-data.public-types.d.ts +4 -0
  5. package/dist/internal-common/src/public-types/integration.public-types.d.ts +7 -71
  6. package/dist/internal-common/src/public-types/integration.public-types.js +71 -74
  7. package/dist/internal-common/src/public-types/integration.public-types.js.map +1 -1
  8. package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.d.ts +4 -3
  9. package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js +2 -1
  10. package/dist/internal-common/src/public-types/integrations/ai_chatbot.public-types.js.map +1 -1
  11. package/dist/internal-common/src/public-types/integrations/api.public-types.d.ts +2 -2
  12. package/dist/internal-common/src/public-types/query.public-types.js +2 -2
  13. package/dist/internal-common/src/public-types/query.public-types.js.map +1 -1
  14. package/dist/internal-common/src/public-types-backend/service.public-types.d.ts +1 -1
  15. package/dist/internal-common/src/types/ai-chatbot.types.d.ts +7 -0
  16. package/dist/internal-common/src/types/ai-chatbot.types.js +16 -16
  17. package/dist/internal-common/src/types/ai-chatbot.types.js.map +1 -1
  18. package/dist/internal-common/src/types/application.types.d.ts +7 -7
  19. package/dist/internal-common/src/types/backend-run.types.d.ts +2 -0
  20. package/dist/internal-common/src/types/backend-run.types.js +6 -2
  21. package/dist/internal-common/src/types/backend-run.types.js.map +1 -1
  22. package/dist/internal-common/src/types/bundle-data.types.d.ts +3 -2
  23. package/dist/internal-common/src/types/communication.types.js +6 -7
  24. package/dist/internal-common/src/types/communication.types.js.map +1 -1
  25. package/dist/internal-common/src/types/integrations/api.types.d.ts +7 -0
  26. package/dist/internal-common/src/types/integrations/schemas.d.ts +59 -58
  27. package/dist/internal-common/src/types/integrations/schemas.js +39 -40
  28. package/dist/internal-common/src/types/integrations/schemas.js.map +1 -1
  29. package/dist/internal-common/src/types/observability.types.js +2 -2
  30. package/dist/internal-common/src/types/observability.types.js.map +1 -1
  31. package/dist/internal-common/src/types/query.types.js +6 -6
  32. package/dist/internal-common/src/types/query.types.js.map +1 -1
  33. package/dist/internal-common/src/utils/backend-transforms.js +4 -5
  34. package/dist/internal-common/src/utils/backend-transforms.js.map +1 -1
  35. package/dist/internal-common/src/utils/global.utils.js +7 -7
  36. package/dist/internal-common/src/utils/global.utils.js.map +1 -1
  37. package/dist/internal-common/src/utils/http.js +2 -3
  38. package/dist/internal-common/src/utils/http.js.map +1 -1
  39. package/dist/internal-common/src/utils/metrics.types.js +2 -2
  40. package/dist/internal-common/src/utils/metrics.types.js.map +1 -1
  41. package/dist/internal-common/src/utils/object.js +19 -20
  42. package/dist/internal-common/src/utils/object.js.map +1 -1
  43. package/dist/internal-common/src/utils/resolve.js +2 -2
  44. package/dist/internal-common/src/utils/resolve.js.map +1 -1
  45. package/dist/internal-common/src/utils/serialization.js +5 -6
  46. package/dist/internal-common/src/utils/serialization.js.map +1 -1
  47. package/dist/internal-common/src/utils/squid-service-utils.d.ts +0 -1
  48. package/dist/internal-common/src/utils/squid-service-utils.js +7 -6
  49. package/dist/internal-common/src/utils/squid-service-utils.js.map +1 -1
  50. package/dist/internal-common/src/websocket.impl.js +1 -2
  51. package/dist/internal-common/src/websocket.impl.js.map +1 -1
  52. package/dist/local-backend/src/local-backend.app.js +1 -2
  53. package/dist/local-backend/src/local-backend.app.js.map +1 -1
  54. package/dist/local-backend/src/local-backend.service.js +1 -0
  55. package/dist/local-backend/src/local-backend.service.js.map +1 -1
  56. package/dist/local-backend/src/utils/shell-runner.js +1 -2
  57. package/dist/local-backend/src/utils/shell-runner.js.map +1 -1
  58. package/dist/tsconfig.build.tsbuildinfo +1 -1
  59. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { FunctionName, FunctionNameWithContext } from './bundle-data.public-types';
2
2
  import { IntegrationId } from './communication.public-types';
3
- import { AiChatPromptQuotas, AiConnectedAgentMetadata } from '../types/ai-chatbot.types';
3
+ import { AiChatPromptQuotas, AiConnectedAgentMetadata, AiConnectedIntegrationMetadata } from '../types/ai-chatbot.types';
4
4
  export declare const OPENAI_CHAT_MODEL_NAMES: readonly ["gpt-4o", "gpt-4o-mini", "o1", "o1-mini"];
5
5
  export declare const GEMINI_CHAT_MODEL_NAMES: readonly ["gemini-1.5-pro", "gemini-1.5-flash"];
6
6
  export declare const ANTHROPIC_CHAT_MODEL_NAMES: readonly ["claude-3-5-haiku-latest", "claude-3-5-sonnet-latest"];
@@ -115,6 +115,7 @@ export interface AiChatbotChatOptions {
115
115
  contextMetadataFilter?: AiContextMetadataFilter;
116
116
  voiceOptions?: AiAudioCreateSpeechOptions;
117
117
  connectedAgents?: Array<AiConnectedAgentMetadata>;
118
+ connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
118
119
  quotas?: AiChatPromptQuotas;
119
120
  }
120
121
  export interface AiAskResponse {
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateAiContextMetadataFilter = exports.validateAiContextMetadata = exports.AiChatbotChatContext = exports.VECTOR_DB_TYPES = exports.OPEN_AI_CREATE_SPEECH_FORMATS = exports.AI_AUDIO_CREATE_SPEECH_MODEL_NAMES = exports.AI_AUDIO_TRANSCRIPTION_MODEL_NAMES = exports.AI_IMAGE_MODEL_NAMES = exports.FLUX_MODEL_NAMES = exports.STABLE_DIFFUSION_MODEL_NAMES = exports.OPENAI_AUDIO_MODEL_NAMES = exports.OPENAI_AUDIO_CREATE_SPEECH_MODEL_NAMES = exports.OPENAI_AUDIO_TRANSCRIPTION_MODEL_NAMES = exports.OPENAI_IMAGE_MODEL_NAMES = exports.AI_EMBEDDINGS_MODEL_NAMES = exports.OPENAI_EMBEDDINGS_MODEL_NAMES = exports.AI_CHAT_MODEL_NAMES = exports.ANTHROPIC_CHAT_MODEL_NAMES = exports.GEMINI_CHAT_MODEL_NAMES = exports.OPENAI_CHAT_MODEL_NAMES = void 0;
3
+ exports.AiChatbotChatContext = exports.VECTOR_DB_TYPES = exports.OPEN_AI_CREATE_SPEECH_FORMATS = exports.AI_AUDIO_CREATE_SPEECH_MODEL_NAMES = exports.AI_AUDIO_TRANSCRIPTION_MODEL_NAMES = exports.AI_IMAGE_MODEL_NAMES = exports.FLUX_MODEL_NAMES = exports.STABLE_DIFFUSION_MODEL_NAMES = exports.OPENAI_AUDIO_MODEL_NAMES = exports.OPENAI_AUDIO_CREATE_SPEECH_MODEL_NAMES = exports.OPENAI_AUDIO_TRANSCRIPTION_MODEL_NAMES = exports.OPENAI_IMAGE_MODEL_NAMES = exports.AI_EMBEDDINGS_MODEL_NAMES = exports.OPENAI_EMBEDDINGS_MODEL_NAMES = exports.AI_CHAT_MODEL_NAMES = exports.ANTHROPIC_CHAT_MODEL_NAMES = exports.GEMINI_CHAT_MODEL_NAMES = exports.OPENAI_CHAT_MODEL_NAMES = void 0;
4
+ exports.validateAiContextMetadata = validateAiContextMetadata;
5
+ exports.validateAiContextMetadataFilter = validateAiContextMetadataFilter;
4
6
  exports.OPENAI_CHAT_MODEL_NAMES = ['gpt-4o', 'gpt-4o-mini', 'o1', 'o1-mini'];
5
7
  exports.GEMINI_CHAT_MODEL_NAMES = ['gemini-1.5-pro', 'gemini-1.5-flash'];
6
8
  exports.ANTHROPIC_CHAT_MODEL_NAMES = ['claude-3-5-haiku-latest', 'claude-3-5-sonnet-latest'];
@@ -55,7 +57,6 @@ function validateAiContextMetadata(metadata) {
55
57
  }
56
58
  }
57
59
  }
58
- exports.validateAiContextMetadata = validateAiContextMetadata;
59
60
  function validateAiContextMetadataFilter(filter) {
60
61
  if (isAndFilter(filter)) {
61
62
  for (const subFilter of filter.$and) {
@@ -85,7 +86,6 @@ function validateAiContextMetadataFilter(filter) {
85
86
  }
86
87
  }
87
88
  }
88
- exports.validateAiContextMetadataFilter = validateAiContextMetadataFilter;
89
89
  function isAndFilter(filter) {
90
90
  return '$and' in filter;
91
91
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ai-chatbot.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-types.ts"],"names":[],"mappings":";;;AAKa,QAAA,uBAAuB,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,CAAU,CAAC;AAE9E,QAAA,uBAAuB,GAAG,CAAC,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAE1E,QAAA,0BAA0B,GAAG,CAAC,yBAAyB,EAAE,0BAA0B,CAAU,CAAC;AAG9F,QAAA,mBAAmB,GAAG;IACjC,GAAG,+BAAuB;IAC1B,GAAG,kCAA0B;IAC7B,GAAG,+BAAuB;CAClB,CAAC;AAEE,QAAA,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;CAChB,CAAC;AAEE,QAAA,yBAAyB,GAAG,CAAC,GAAG,qCAA6B,CAAU,CAAC;AAGxE,QAAA,wBAAwB,GAAG,CAAC,UAAU,CAAU,CAAC;AACjD,QAAA,sCAAsC,GAAG,CAAC,WAAW,CAAU,CAAC;AAChE,QAAA,sCAAsC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAC;AACxE,QAAA,wBAAwB,GAAG;IACtC,GAAG,8CAAsC;IACzC,GAAG,8CAAsC;CACjC,CAAC;AACE,QAAA,4BAA4B,GAAG,CAAC,uBAAuB,CAAU,CAAC;AAClE,QAAA,gBAAgB,GAAG,CAAC,cAAc,CAAU,CAAC;AAC7C,QAAA,oBAAoB,GAAG;IAClC,GAAG,gCAAwB;IAC3B,GAAG,oCAA4B;IAC/B,GAAG,wBAAgB;CACX,CAAC;AACE,QAAA,kCAAkC,GAAG,CAAC,GAAG,8CAAsC,CAAU,CAAC;AAC1F,QAAA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AED,SAAS,UAAU,CAAC,MAA+B;IACjD,OAAO,KAAK,IAAI,MAAM,CAAC;AACzB,CAAC"}
1
+ {"version":3,"file":"ai-chatbot.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/ai-chatbot.public-types.ts"],"names":[],"mappings":";;;AAqYA,8DAgBC;AAGD,0EAkCC;AAjbY,QAAA,uBAAuB,GAAG,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,CAAU,CAAC;AAE9E,QAAA,uBAAuB,GAAG,CAAC,gBAAgB,EAAE,kBAAkB,CAAU,CAAC;AAE1E,QAAA,0BAA0B,GAAG,CAAC,yBAAyB,EAAE,0BAA0B,CAAU,CAAC;AAG9F,QAAA,mBAAmB,GAAG;IACjC,GAAG,+BAAuB;IAC1B,GAAG,kCAA0B;IAC7B,GAAG,+BAAuB;CAClB,CAAC;AAEE,QAAA,6BAA6B,GAAG;IAC3C,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;CAChB,CAAC;AAEE,QAAA,yBAAyB,GAAG,CAAC,GAAG,qCAA6B,CAAU,CAAC;AAGxE,QAAA,wBAAwB,GAAG,CAAC,UAAU,CAAU,CAAC;AACjD,QAAA,sCAAsC,GAAG,CAAC,WAAW,CAAU,CAAC;AAChE,QAAA,sCAAsC,GAAG,CAAC,OAAO,EAAE,UAAU,CAAU,CAAC;AACxE,QAAA,wBAAwB,GAAG;IACtC,GAAG,8CAAsC;IACzC,GAAG,8CAAsC;CACjC,CAAC;AACE,QAAA,4BAA4B,GAAG,CAAC,uBAAuB,CAAU,CAAC;AAClE,QAAA,gBAAgB,GAAG,CAAC,cAAc,CAAU,CAAC;AAC7C,QAAA,oBAAoB,GAAG;IAClC,GAAG,gCAAwB;IAC3B,GAAG,oCAA4B;IAC/B,GAAG,wBAAgB;CACX,CAAC;AACE,QAAA,kCAAkC,GAAG,CAAC,GAAG,8CAAsC,CAAU,CAAC;AAC1F,QAAA,kCAAkC,GAAG,CAAC,GAAG,8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AAC;AACzB,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { IntegrationType } from './integration.public-types';
1
2
  export type DatabaseActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
2
3
  export type StorageActionType = 'read' | 'write' | 'update' | 'insert' | 'delete' | 'all';
3
4
  export type TopicActionType = 'read' | 'write' | 'all';
@@ -10,6 +11,9 @@ export interface AiFunctionParam {
10
11
  type: AiFunctionParamType;
11
12
  required: boolean;
12
13
  }
14
+ export interface AiFunctionAttributes {
15
+ integrationType?: IntegrationType;
16
+ }
13
17
  export type TopicName = string;
14
18
  export type FunctionName = string;
15
19
  export interface FunctionNameWithContext {
@@ -1,76 +1,12 @@
1
1
  import { IntegrationId } from './communication.public-types';
2
- export declare enum IntegrationType {
3
- 'built_in_db' = "built_in_db",
4
- 'mongo' = "mongo",
5
- 'mysql' = "mysql",
6
- 'clickhouse' = "clickhouse",
7
- 'mssql' = "mssql",
8
- 'postgres' = "postgres",
9
- 'cockroach' = "cockroach",
10
- 'api' = "api",
11
- 'graphql' = "graphql",
12
- 'snowflake' = "snowflake",
13
- 'datadog' = "datadog",
14
- 'newrelic' = "newrelic",
15
- 'auth0' = "auth0",
16
- 'jwt_rsa' = "jwt_rsa",
17
- 'jwt_hmac' = "jwt_hmac",
18
- 'ai_chatbot' = "ai_chatbot",
19
- 'cognito' = "cognito",
20
- 'okta' = "okta",
21
- 'descope' = "descope",
22
- 'firebase_auth' = "firebase_auth",
23
- 'kafka' = "kafka",
24
- 'confluent' = "confluent",
25
- 'built_in_queue' = "built_in_queue",
26
- 's3' = "s3",
27
- 'gcs' = "gcs",
28
- 'built_in_s3' = "built_in_s3",
29
- 'built_in_gcs' = "built_in_gcs",
30
- 'google_drive' = "google_drive",
31
- 'ai_agents' = "ai_agents",
32
- 'algolia' = "algolia",
33
- 'elastic_observability' = "elastic_observability",
34
- 'elastic_search' = "elastic_search",
35
- 'elastic_enterprise_search' = "elastic_enterprise_search",
36
- 'sentry' = "sentry",
37
- 'sap_hana' = "sap_hana",
38
- 'salesforce_crm' = "salesforce_crm",
39
- 'documentdb' = "documentdb",
40
- 'dynamodb' = "dynamodb",
41
- 'cassandra' = "cassandra",
42
- 'alloydb' = "alloydb",
43
- 'spanner' = "spanner",
44
- 'db2' = "db2",
45
- 'mariadb' = "mariadb",
46
- 'oracledb' = "oracledb",
47
- 'redis' = "redis",
48
- 'xata' = "xata",
49
- 'azure_sql' = "azure_sql",
50
- 'azure_postgresql' = "azure_postgresql",
51
- 'azure_cosmosdb' = "azure_cosmosdb",
52
- 'firestore' = "firestore",
53
- 'bigquery' = "bigquery",
54
- 'cloudsql' = "cloudsql",
55
- 'slack' = "slack",
56
- 'hubspot' = "hubspot",
57
- 'monday' = "monday",
58
- 'google_docs' = "google_docs",
59
- 'onedrive' = "onedrive",
60
- 'zendesk' = "zendesk",
61
- 'pinecone' = "pinecone",
62
- 'active_directory' = "active_directory",
63
- 'jira' = "jira",
64
- 'confluence' = "confluence",
65
- 'servicenow' = "servicenow",
66
- 'linear' = "linear"
67
- }
68
- export declare enum IntegrationSchemaType {
69
- 'data' = "data",
70
- 'api' = "api",
71
- 'graphql' = "graphql"
72
- }
2
+ export declare const INTEGRATION_TYPES: readonly ["active_directory", "ai_agents", "ai_chatbot", "algolia", "alloydb", "api", "auth0", "azure_cosmosdb", "azure_postgresql", "azure_sql", "bigquery", "built_in_db", "built_in_gcs", "built_in_queue", "built_in_s3", "cassandra", "clickhouse", "cloudsql", "cockroach", "cognito", "confluence", "confluent", "datadog", "db2", "descope", "documentdb", "dynamodb", "elastic_enterprise_search", "elastic_observability", "elastic_search", "firebase_auth", "firestore", "gcs", "google_docs", "google_drive", "graphql", "hubspot", "jira", "jwt_hmac", "jwt_rsa", "kafka", "linear", "mariadb", "monday", "mongo", "mssql", "mysql", "newrelic", "okta", "onedrive", "oracledb", "pinecone", "postgres", "redis", "s3", "salesforce_crm", "sap_hana", "sentry", "servicenow", "slack", "snowflake", "spanner", "xata", "zendesk"];
3
+ export type IntegrationType = (typeof INTEGRATION_TYPES)[number];
4
+ export declare const INTEGRATION_SCHEMA_TYPES: readonly ["data", "api", "graphql"];
5
+ export type IntegrationSchemaType = (typeof INTEGRATION_SCHEMA_TYPES)[number];
6
+ export declare const BUILT_IN_DB_INTEGRATION_ID: IntegrationId;
7
+ export declare const BUILT_IN_QUEUE_INTEGRATION_ID: IntegrationId;
73
8
  export declare const AI_AGENTS_INTEGRATION_ID: IntegrationId;
9
+ export declare const BUILT_IN_STORAGE_INTEGRATION_ID: IntegrationId;
74
10
  export interface IntegrationInfo<ConfigurationType = Record<string, any> | undefined> {
75
11
  id: IntegrationId;
76
12
  type: IntegrationType;
@@ -1,78 +1,75 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AI_AGENTS_INTEGRATION_ID = exports.IntegrationSchemaType = exports.IntegrationType = void 0;
4
- var IntegrationType;
5
- (function (IntegrationType) {
6
- IntegrationType["built_in_db"] = "built_in_db";
7
- IntegrationType["mongo"] = "mongo";
8
- IntegrationType["mysql"] = "mysql";
9
- IntegrationType["clickhouse"] = "clickhouse";
10
- IntegrationType["mssql"] = "mssql";
11
- IntegrationType["postgres"] = "postgres";
12
- IntegrationType["cockroach"] = "cockroach";
13
- IntegrationType["api"] = "api";
14
- IntegrationType["graphql"] = "graphql";
15
- IntegrationType["snowflake"] = "snowflake";
16
- IntegrationType["datadog"] = "datadog";
17
- IntegrationType["newrelic"] = "newrelic";
18
- IntegrationType["auth0"] = "auth0";
19
- IntegrationType["jwt_rsa"] = "jwt_rsa";
20
- IntegrationType["jwt_hmac"] = "jwt_hmac";
21
- IntegrationType["ai_chatbot"] = "ai_chatbot";
22
- IntegrationType["cognito"] = "cognito";
23
- IntegrationType["okta"] = "okta";
24
- IntegrationType["descope"] = "descope";
25
- IntegrationType["firebase_auth"] = "firebase_auth";
26
- IntegrationType["kafka"] = "kafka";
27
- IntegrationType["confluent"] = "confluent";
28
- IntegrationType["built_in_queue"] = "built_in_queue";
29
- IntegrationType["s3"] = "s3";
30
- IntegrationType["gcs"] = "gcs";
31
- IntegrationType["built_in_s3"] = "built_in_s3";
32
- IntegrationType["built_in_gcs"] = "built_in_gcs";
33
- IntegrationType["google_drive"] = "google_drive";
34
- IntegrationType["ai_agents"] = "ai_agents";
35
- IntegrationType["algolia"] = "algolia";
36
- IntegrationType["elastic_observability"] = "elastic_observability";
37
- IntegrationType["elastic_search"] = "elastic_search";
38
- IntegrationType["elastic_enterprise_search"] = "elastic_enterprise_search";
39
- IntegrationType["sentry"] = "sentry";
40
- IntegrationType["sap_hana"] = "sap_hana";
41
- IntegrationType["salesforce_crm"] = "salesforce_crm";
42
- IntegrationType["documentdb"] = "documentdb";
43
- IntegrationType["dynamodb"] = "dynamodb";
44
- IntegrationType["cassandra"] = "cassandra";
45
- IntegrationType["alloydb"] = "alloydb";
46
- IntegrationType["spanner"] = "spanner";
47
- IntegrationType["db2"] = "db2";
48
- IntegrationType["mariadb"] = "mariadb";
49
- IntegrationType["oracledb"] = "oracledb";
50
- IntegrationType["redis"] = "redis";
51
- IntegrationType["xata"] = "xata";
52
- IntegrationType["azure_sql"] = "azure_sql";
53
- IntegrationType["azure_postgresql"] = "azure_postgresql";
54
- IntegrationType["azure_cosmosdb"] = "azure_cosmosdb";
55
- IntegrationType["firestore"] = "firestore";
56
- IntegrationType["bigquery"] = "bigquery";
57
- IntegrationType["cloudsql"] = "cloudsql";
58
- IntegrationType["slack"] = "slack";
59
- IntegrationType["hubspot"] = "hubspot";
60
- IntegrationType["monday"] = "monday";
61
- IntegrationType["google_docs"] = "google_docs";
62
- IntegrationType["onedrive"] = "onedrive";
63
- IntegrationType["zendesk"] = "zendesk";
64
- IntegrationType["pinecone"] = "pinecone";
65
- IntegrationType["active_directory"] = "active_directory";
66
- IntegrationType["jira"] = "jira";
67
- IntegrationType["confluence"] = "confluence";
68
- IntegrationType["servicenow"] = "servicenow";
69
- IntegrationType["linear"] = "linear";
70
- })(IntegrationType || (exports.IntegrationType = IntegrationType = {}));
71
- var IntegrationSchemaType;
72
- (function (IntegrationSchemaType) {
73
- IntegrationSchemaType["data"] = "data";
74
- IntegrationSchemaType["api"] = "api";
75
- IntegrationSchemaType["graphql"] = "graphql";
76
- })(IntegrationSchemaType || (exports.IntegrationSchemaType = IntegrationSchemaType = {}));
3
+ exports.BUILT_IN_STORAGE_INTEGRATION_ID = exports.AI_AGENTS_INTEGRATION_ID = exports.BUILT_IN_QUEUE_INTEGRATION_ID = exports.BUILT_IN_DB_INTEGRATION_ID = exports.INTEGRATION_SCHEMA_TYPES = exports.INTEGRATION_TYPES = void 0;
4
+ exports.INTEGRATION_TYPES = [
5
+ 'active_directory',
6
+ 'ai_agents',
7
+ 'ai_chatbot',
8
+ 'algolia',
9
+ 'alloydb',
10
+ 'api',
11
+ 'auth0',
12
+ 'azure_cosmosdb',
13
+ 'azure_postgresql',
14
+ 'azure_sql',
15
+ 'bigquery',
16
+ 'built_in_db',
17
+ 'built_in_gcs',
18
+ 'built_in_queue',
19
+ 'built_in_s3',
20
+ 'cassandra',
21
+ 'clickhouse',
22
+ 'cloudsql',
23
+ 'cockroach',
24
+ 'cognito',
25
+ 'confluence',
26
+ 'confluent',
27
+ 'datadog',
28
+ 'db2',
29
+ 'descope',
30
+ 'documentdb',
31
+ 'dynamodb',
32
+ 'elastic_enterprise_search',
33
+ 'elastic_observability',
34
+ 'elastic_search',
35
+ 'firebase_auth',
36
+ 'firestore',
37
+ 'gcs',
38
+ 'google_docs',
39
+ 'google_drive',
40
+ 'graphql',
41
+ 'hubspot',
42
+ 'jira',
43
+ 'jwt_hmac',
44
+ 'jwt_rsa',
45
+ 'kafka',
46
+ 'linear',
47
+ 'mariadb',
48
+ 'monday',
49
+ 'mongo',
50
+ 'mssql',
51
+ 'mysql',
52
+ 'newrelic',
53
+ 'okta',
54
+ 'onedrive',
55
+ 'oracledb',
56
+ 'pinecone',
57
+ 'postgres',
58
+ 'redis',
59
+ 's3',
60
+ 'salesforce_crm',
61
+ 'sap_hana',
62
+ 'sentry',
63
+ 'servicenow',
64
+ 'slack',
65
+ 'snowflake',
66
+ 'spanner',
67
+ 'xata',
68
+ 'zendesk',
69
+ ];
70
+ exports.INTEGRATION_SCHEMA_TYPES = ['data', 'api', 'graphql'];
71
+ exports.BUILT_IN_DB_INTEGRATION_ID = 'built_in_db';
72
+ exports.BUILT_IN_QUEUE_INTEGRATION_ID = 'built_in_queue';
77
73
  exports.AI_AGENTS_INTEGRATION_ID = 'ai_agents';
74
+ exports.BUILT_IN_STORAGE_INTEGRATION_ID = 'built_in_storage';
78
75
  //# sourceMappingURL=integration.public-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"integration.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration.public-types.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAmEX;AAnED,WAAY,eAAe;IACzB,8CAA6B,CAAA;IAC7B,kCAAiB,CAAA;IACjB,kCAAiB,CAAA;IACjB,4CAA2B,CAAA;IAC3B,kCAAiB,CAAA;IACjB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,4CAA2B,CAAA;IAC3B,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,kDAAiC,CAAA;IACjC,kCAAiB,CAAA;IACjB,0CAAyB,CAAA;IACzB,oDAAmC,CAAA;IACnC,4BAAW,CAAA;IACX,8BAAa,CAAA;IACb,8CAA6B,CAAA;IAC7B,gDAA+B,CAAA;IAC/B,gDAA+B,CAAA;IAC/B,0CAAyB,CAAA;IAEzB,sCAAqB,CAAA;IACrB,kEAAiD,CAAA;IACjD,oDAAmC,CAAA;IACnC,0EAAyD,CAAA;IACzD,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;IACvB,oDAAmC,CAAA;IACnC,4CAA2B,CAAA;IAC3B,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;IACzB,sCAAqB,CAAA;IACrB,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,gCAAe,CAAA;IACf,0CAAyB,CAAA;IACzB,wDAAuC,CAAA;IACvC,oDAAmC,CAAA;IACnC,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,wCAAuB,CAAA;IACvB,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,8CAA6B,CAAA;IAC7B,wCAAuB,CAAA;IACvB,sCAAqB,CAAA;IACrB,wCAAuB,CAAA;IACvB,wDAAuC,CAAA;IACvC,gCAAe,CAAA;IACf,4CAA2B,CAAA;IAC3B,4CAA2B,CAAA;IAE3B,oCAAmB,CAAA;AACrB,CAAC,EAnEW,eAAe,+BAAf,eAAe,QAmE1B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sCAAe,CAAA;IACf,oCAAa,CAAA;IACb,4CAAqB,CAAA;AACvB,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAEY,QAAA,wBAAwB,GAAkB,WAAW,CAAC"}
1
+ {"version":3,"file":"integration.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/integration.public-types.ts"],"names":[],"mappings":";;;AAGa,QAAA,iBAAiB,GAAG;IAC/B,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,SAAS;IACT,SAAS;IACT,KAAK;IACL,OAAO;IACP,gBAAgB;IAChB,kBAAkB;IAClB,WAAW;IACX,UAAU;IACV,aAAa;IACb,cAAc;IACd,gBAAgB;IAChB,aAAa;IACb,WAAW;IACX,YAAY;IACZ,UAAU;IACV,WAAW;IACX,SAAS;IACT,YAAY;IACZ,WAAW;IACX,SAAS;IACT,KAAK;IACL,SAAS;IACT,YAAY;IACZ,UAAU;IACV,2BAA2B;IAC3B,uBAAuB;IACvB,gBAAgB;IAChB,eAAe;IACf,WAAW;IACX,KAAK;IACL,aAAa;IACb,cAAc;IACd,SAAS;IACT,SAAS;IACT,MAAM;IACN,UAAU;IACV,SAAS;IACT,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;IACR,OAAO;IACP,OAAO;IACP,OAAO;IACP,UAAU;IACV,MAAM;IACN,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,OAAO;IACP,IAAI;IACJ,gBAAgB;IAChB,UAAU;IACV,QAAQ;IACR,YAAY;IACZ,OAAO;IACP,WAAW;IACX,SAAS;IACT,MAAM;IACN,SAAS;CACD,CAAC;AAIE,QAAA,wBAAwB,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,CAAU,CAAC;AAI/D,QAAA,0BAA0B,GAAkB,aAAa,CAAC;AAC1D,QAAA,6BAA6B,GAAkB,gBAAgB,CAAC;AAChE,QAAA,wBAAwB,GAAkB,WAAW,CAAC;AAEtD,QAAA,+BAA+B,GAAkB,kBAAkB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { AiChatModelName, AiEmbeddingsModelName, VectorDbType } from '../ai-chatbot.public-types';
2
2
  import { FunctionName } from '../bundle-data.public-types';
3
- import { AiConnectedAgentMetadata } from '../../types/ai-chatbot.types';
3
+ import { AiConnectedAgentMetadata, AiConnectedIntegrationMetadata } from '../../types/ai-chatbot.types';
4
4
  export type AiChatbotConfiguration = {
5
5
  apiKey?: string;
6
6
  };
@@ -13,7 +13,8 @@ export type AiChatbotProfileMetadata = {
13
13
  embeddingModelName?: AiEmbeddingsModelName;
14
14
  vectorDbType?: VectorDbType;
15
15
  functions?: Array<FunctionName>;
16
- connectedProfiles?: Array<AiConnectedAgentMetadata>;
16
+ connectedAgents?: Array<AiConnectedAgentMetadata>;
17
+ connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
17
18
  auditLog?: boolean;
18
19
  };
19
20
  export type AiChatbotContextMetadata = {
@@ -22,5 +23,5 @@ export type AiChatbotContextMetadata = {
22
23
  preview: boolean;
23
24
  sizeBytes?: number;
24
25
  };
25
- export type MutableAiChatbotProfileMetadataFieldsType = keyof Pick<AiChatbotProfileMetadata, 'modelName' | 'isPublic' | 'functions' | 'connectedProfiles' | 'auditLog'>;
26
+ export type MutableAiChatbotProfileMetadataFieldsType = keyof Pick<AiChatbotProfileMetadata, 'modelName' | 'isPublic' | 'functions' | 'connectedAgents' | 'connectedIntegrations' | 'auditLog'>;
26
27
  export declare const MUTABLE_AI_CHATBOT_PROFILE_METADATA_FIELDS: Array<MutableAiChatbotProfileMetadataFieldsType>;
@@ -5,7 +5,8 @@ exports.MUTABLE_AI_CHATBOT_PROFILE_METADATA_FIELDS = [
5
5
  'modelName',
6
6
  'isPublic',
7
7
  'functions',
8
- 'connectedProfiles',
8
+ 'connectedAgents',
9
+ 'connectedIntegrations',
9
10
  'auditLog',
10
11
  ];
11
12
  //# sourceMappingURL=ai_chatbot.public-types.js.map
@@ -1 +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":";;;AAsCa,QAAA,0CAA0C,GAAqD;IAC1G,WAAW;IACX,UAAU;IACV,WAAW;IACX,mBAAmB;IACnB,UAAU;CACX,CAAC"}
1
+ {"version":3,"file":"ai_chatbot.public-types.js","sourceRoot":"","sources":["../../../../../../internal-common/src/public-types/integrations/ai_chatbot.public-types.ts"],"names":[],"mappings":";;;AAwCa,QAAA,0CAA0C,GAAqD;IAC1G,WAAW;IACX,UAAU;IACV,WAAW;IACX,iBAAiB;IACjB,uBAAuB;IACvB,UAAU;CACX,CAAC"}
@@ -53,10 +53,10 @@ export interface ApiEndpoint {
53
53
  }
54
54
  export interface DiscoverOpenApiSchemaRequest {
55
55
  integrationId: IntegrationId;
56
- integrationType: IntegrationType.api;
56
+ integrationType: Extract<IntegrationType, 'api'>;
57
57
  discoveryOptions: OpenApiDiscoveryOptions;
58
58
  }
59
59
  export interface DiscoverOpenApiSchemaFromFileRequest {
60
60
  integrationId: IntegrationId;
61
- integrationType: IntegrationType.api;
61
+ integrationType: Extract<IntegrationType, 'api'>;
62
62
  }
@@ -1,10 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALL_OPERATORS = exports.ARRAY_OPERATORS = exports.isSimpleCondition = void 0;
3
+ exports.ALL_OPERATORS = exports.ARRAY_OPERATORS = void 0;
4
+ exports.isSimpleCondition = isSimpleCondition;
4
5
  function isSimpleCondition(condition) {
5
6
  return 'fieldName' in condition;
6
7
  }
7
- exports.isSimpleCondition = isSimpleCondition;
8
8
  exports.ARRAY_OPERATORS = [
9
9
  'in',
10
10
  'not in',
@@ -1 +1 @@
1
- {"version":3,"file":"query.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/query.public-types.ts"],"names":[],"mappings":";;;AA6CA,SAAgB,iBAAiB,CAAC,SAAoB;IACpD,OAAO,WAAW,IAAI,SAAS,CAAC;AAClC,CAAC;AAFD,8CAEC;AAIY,QAAA,eAAe,GAAkB;IAC5C,IAAI;IACJ,QAAQ;IACR,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;CACrB,CAAC;AAEW,QAAA,aAAa,GAAkB;IAC1C,GAAG,uBAAe;IAClB,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,MAAM;IACN,UAAU;IACV,SAAS;IACT,aAAa;CACL,CAAC"}
1
+ {"version":3,"file":"query.public-types.js","sourceRoot":"","sources":["../../../../../internal-common/src/public-types/query.public-types.ts"],"names":[],"mappings":";;;AA6CA,8CAEC;AAFD,SAAgB,iBAAiB,CAAC,SAAoB;IACpD,OAAO,WAAW,IAAI,SAAS,CAAC;AAClC,CAAC;AAIY,QAAA,eAAe,GAAkB;IAC5C,IAAI;IACJ,QAAQ;IACR,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;CACrB,CAAC;AAEW,QAAA,aAAa,GAAkB;IAC1C,GAAG,uBAAe;IAClB,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,GAAG;IACH,GAAG;IACH,MAAM;IACN,UAAU;IACV,SAAS;IACT,aAAa;CACL,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { AsyncLocalStorage } from 'async_hooks';
3
2
  import { AppId, EnvironmentId, SquidDeveloperId } from '../public-types/communication.public-types';
4
3
  import { Auth, RunContext } from '../public-types/context.public-types';
@@ -10,6 +9,7 @@ export interface ServiceGlobalConfig {
10
9
  squidDeveloperId?: SquidDeveloperId;
11
10
  backendApiKey: string;
12
11
  secrets: Record<SecretKey, any>;
12
+ apiKeys: Record<SecretKey, string>;
13
13
  requestLocalStorage: AsyncLocalStorage<ServiceRequestConfig>;
14
14
  }
15
15
  export interface ServiceRequestConfig {
@@ -3,6 +3,7 @@ import { AiAgentId, AppId, ClientRequestId, IntegrationId } from '../public-type
3
3
  import { AiChatbotProfileMetadata } from '../public-types/integrations/ai_chatbot.public-types';
4
4
  import { FunctionName, FunctionNameWithContext } from '../public-types/bundle-data.public-types';
5
5
  import { O11Y_TAG_AI_MODEL, O11Y_TAG_AI_PROFILE, O11Y_TAG_API_KEY_SOURCE, O11Y_TAG_INTEGRATION_ID } from './observability.types';
6
+ import { IntegrationType } from '../public-types/integration.public-types';
6
7
  export type AiChatResponseFormat = 'text' | 'json_object';
7
8
  export interface AiChatOptions {
8
9
  maxTokens: number;
@@ -17,12 +18,18 @@ export interface AiChatOptions {
17
18
  agentContext?: Record<string, unknown>;
18
19
  functions?: Array<FunctionName | FunctionNameWithContext>;
19
20
  connectedAgents?: Array<AiConnectedAgentMetadata>;
21
+ connectedIntegrations?: Array<AiConnectedIntegrationMetadata>;
20
22
  quotas?: AiChatPromptQuotas;
21
23
  }
22
24
  export interface AiConnectedAgentMetadata {
23
25
  agentId: AiAgentId;
24
26
  description: string;
25
27
  }
28
+ export interface AiConnectedIntegrationMetadata {
29
+ integrationId: IntegrationId;
30
+ integrationType: IntegrationType;
31
+ description?: string;
32
+ }
26
33
  type ModelDataType = {
27
34
  maxTokens: number;
28
35
  defaultTokens: number;
@@ -4,36 +4,36 @@ exports.AiModelData = void 0;
4
4
  const observability_types_1 = require("./observability.types");
5
5
  exports.AiModelData = {
6
6
  'gemini-1.5-pro': {
7
- maxTokens: 2097152,
8
- defaultTokens: 16385,
7
+ maxTokens: 2_097_152,
8
+ defaultTokens: 16_385,
9
9
  },
10
10
  'gemini-1.5-flash': {
11
- maxTokens: 2097152,
12
- defaultTokens: 16385,
11
+ maxTokens: 2_097_152,
12
+ defaultTokens: 16_385,
13
13
  },
14
14
  'claude-3-5-sonnet-latest': {
15
- maxTokens: 128000,
16
- defaultTokens: 16385,
15
+ maxTokens: 128_000,
16
+ defaultTokens: 16_385,
17
17
  },
18
18
  'claude-3-5-haiku-latest': {
19
- maxTokens: 128000,
20
- defaultTokens: 16385,
19
+ maxTokens: 128_000,
20
+ defaultTokens: 16_385,
21
21
  },
22
22
  'gpt-4o': {
23
- maxTokens: 128000,
24
- defaultTokens: 16385,
23
+ maxTokens: 128_000,
24
+ defaultTokens: 16_385,
25
25
  },
26
26
  'gpt-4o-mini': {
27
- maxTokens: 128000,
28
- defaultTokens: 16385,
27
+ maxTokens: 128_000,
28
+ defaultTokens: 16_385,
29
29
  },
30
30
  o1: {
31
- maxTokens: 128000,
32
- defaultTokens: 16385,
31
+ maxTokens: 200_000,
32
+ defaultTokens: 16_385,
33
33
  },
34
34
  'o1-mini': {
35
- maxTokens: 128000,
36
- defaultTokens: 16385,
35
+ maxTokens: 128_000,
36
+ defaultTokens: 16_385,
37
37
  },
38
38
  };
39
39
  //# sourceMappingURL=ai-chatbot.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ai-chatbot.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/ai-chatbot.types.ts"],"names":[],"mappings":";;;AAaA,+DAK+B;AAyClB,QAAA,WAAW,GAA2C;IACjE,gBAAgB,EAAE;QAChB,SAAS,EAAE,OAAS;QACpB,aAAa,EAAE,KAAM;KACtB;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,OAAS;QACpB,aAAa,EAAE,KAAM;KACtB;IACD,0BAA0B,EAAE;QAC1B,SAAS,EAAE,MAAO;QAClB,aAAa,EAAE,KAAM;KACtB;IACD,yBAAyB,EAAE;QACzB,SAAS,EAAE,MAAO;QAClB,aAAa,EAAE,KAAM;KACtB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,MAAO;QAClB,aAAa,EAAE,KAAM;KACtB;IACD,aAAa,EAAE;QACb,SAAS,EAAE,MAAO;QAClB,aAAa,EAAE,KAAM;KACtB;IACD,EAAE,EAAE;QACF,SAAS,EAAE,MAAO;QAClB,aAAa,EAAE,KAAM;KACtB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,MAAO;QAClB,aAAa,EAAE,KAAM;KACtB;CACF,CAAC"}
1
+ {"version":3,"file":"ai-chatbot.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/ai-chatbot.types.ts"],"names":[],"mappings":";;;AAaA,+DAK+B;AA0DlB,QAAA,WAAW,GAA2C;IACjE,gBAAgB,EAAE;QAChB,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,MAAM;KACtB;IACD,kBAAkB,EAAE;QAClB,SAAS,EAAE,SAAS;QACpB,aAAa,EAAE,MAAM;KACtB;IACD,0BAA0B,EAAE;QAC1B,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,yBAAyB,EAAE;QACzB,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,QAAQ,EAAE;QACR,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,aAAa,EAAE;QACb,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,EAAE,EAAE;QACF,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;IACD,SAAS,EAAE;QACT,SAAS,EAAE,OAAO;QAClB,aAAa,EAAE,MAAM;KACtB;CACF,CAAC"}
@@ -56,11 +56,11 @@ type UpsertIntegrationRequests = {
56
56
  [K in IntegrationTypeWithConfig]: BaseUpsertIntegrationRequest<ConfigurationTypes[K]>;
57
57
  };
58
58
  export type UpsertDataIntegrationRequest = UpsertIntegrationRequests[DatabaseIntegrationType];
59
- export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests[IntegrationType.graphql];
60
- export type UpsertApiIntegrationRequest = UpsertIntegrationRequests[IntegrationType.api];
61
- export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests[IntegrationType.ai_chatbot];
62
- export type UpsertKafkaIntegrationRequest = UpsertIntegrationRequests[IntegrationType.kafka];
63
- export type UpsertConfluentIntegrationRequest = UpsertIntegrationRequests[IntegrationType.confluent];
59
+ export type UpsertGraphQLIntegrationRequest = UpsertIntegrationRequests['graphql'];
60
+ export type UpsertApiIntegrationRequest = UpsertIntegrationRequests['api'];
61
+ export type UpsertAiChatbotIntegrationRequest = UpsertIntegrationRequests['ai_chatbot'];
62
+ export type UpsertKafkaIntegrationRequest = UpsertIntegrationRequests['kafka'];
63
+ export type UpsertConfluentIntegrationRequest = UpsertIntegrationRequests['confluent'];
64
64
  export type UpsertAuthIntegrationRequest = UpsertIntegrationRequests[AuthIntegrationType];
65
65
  interface BaseUpsertIntegrationSchemaRequest<T extends IntegrationType, S extends IntegrationSchema> {
66
66
  id: IntegrationId;
@@ -75,8 +75,8 @@ type UpsertIntegrationSchemaRequests = {
75
75
  };
76
76
  export type UpsertIntegrationSchemaRequest = UpsertDataIntegrationSchemaRequest | UpsertGraphQLIntegrationSchemaRequest | UpsertApiIntegrationSchemaRequest;
77
77
  export type UpsertDataIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[DatabaseIntegrationType];
78
- export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.graphql];
79
- export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests[IntegrationType.api];
78
+ export type UpsertGraphQLIntegrationSchemaRequest = UpsertIntegrationSchemaRequests['graphql'];
79
+ export type UpsertApiIntegrationSchemaRequest = UpsertIntegrationSchemaRequests['api'];
80
80
  export type UpsertIntegrationRequest = UpsertDataIntegrationRequest | UpsertGraphQLIntegrationRequest | UpsertApiIntegrationRequest | UpsertAiChatbotIntegrationRequest | UpsertConfluentIntegrationRequest | UpsertKafkaIntegrationRequest | UpsertAuthIntegrationRequest;
81
81
  type ConfigurationTypes = {
82
82
  [K in IntegrationTypeWithConfig]: IntegrationConfigTypes[K];
@@ -31,6 +31,7 @@ export interface ExecuteFunctionPayload {
31
31
  context: RunContext;
32
32
  auth: Auth | undefined;
33
33
  secrets?: Record<SecretKey, SecretValue>;
34
+ apiKeys?: Record<SecretKey, string>;
34
35
  backendApiKey: string;
35
36
  codeDir: string;
36
37
  executeFunctionAnnotationType: ExecuteFunctionAnnotationType;
@@ -48,6 +49,7 @@ export interface ExecuteFunctionResponse extends GeneralResponse {
48
49
  }
49
50
  export interface RunSecrets {
50
51
  custom: Record<SecretKey, SecretValue>;
52
+ apiKeys: Record<SecretKey, string>;
51
53
  backendApiKey: string;
52
54
  }
53
55
  export declare function convertToRunSecrets(appSecrets: ApplicationSecrets): RunSecrets;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.convertToRunSecrets = exports.ExecuteFunctionSecureAnnotations = void 0;
3
+ exports.ExecuteFunctionSecureAnnotations = void 0;
4
+ exports.convertToRunSecrets = convertToRunSecrets;
4
5
  const secret_types_1 = require("./secret.types");
5
6
  const assertic_1 = require("assertic");
6
7
  exports.ExecuteFunctionSecureAnnotations = [
@@ -22,11 +23,14 @@ function convertToRunSecrets(appSecrets) {
22
23
  const result = {
23
24
  backendApiKey: (0, assertic_1.truthy)(appSecrets.apiKeys[secret_types_1.BACKEND_API_KEY].value, 'Cannot find backend API key'),
24
25
  custom: {},
26
+ apiKeys: {},
25
27
  };
26
28
  for (const [key, valueWrapper] of Object.entries(appSecrets.custom)) {
27
29
  result.custom[key] = valueWrapper.value;
28
30
  }
31
+ for (const [key, valueWrapper] of Object.entries(appSecrets.apiKeys)) {
32
+ result.apiKeys[key] = valueWrapper.value;
33
+ }
29
34
  return result;
30
35
  }
31
- exports.convertToRunSecrets = convertToRunSecrets;
32
36
  //# sourceMappingURL=backend-run.types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/backend-run.types.ts"],"names":[],"mappings":";;;AACA,iDAAqE;AACrE,uCAAkC;AAmCrB,QAAA,gCAAgC,GAAG;IAC9C,qBAAqB;IACrB,yBAAyB;IACzB,WAAW;IACX,uBAAuB;IACvB,eAAe;IACf,qBAAqB;IACrB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;CACP,CAAC;AA0DX,SAAgB,mBAAmB,CAAC,UAA8B;IAChE,MAAM,MAAM,GAAe;QACzB,aAAa,EAAE,IAAA,iBAAM,EAAC,UAAU,CAAC,OAAO,CAAC,8BAAe,CAAC,CAAC,KAAK,EAAE,6BAA6B,CAAW;QACzG,MAAM,EAAE,EAAE;KACX,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAVD,kDAUC"}
1
+ {"version":3,"file":"backend-run.types.js","sourceRoot":"","sources":["../../../../../internal-common/src/types/backend-run.types.ts"],"names":[],"mappings":";;;AA+GA,kDAcC;AA5HD,iDAAqE;AACrE,uCAAkC;AAmCrB,QAAA,gCAAgC,GAAG;IAC9C,qBAAqB;IACrB,yBAAyB;IACzB,WAAW;IACX,uBAAuB;IACvB,eAAe;IACf,qBAAqB;IACrB,gBAAgB;IAChB,kBAAkB;IAClB,mBAAmB;IACnB,aAAa;IACb,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;CACP,CAAC;AA4DX,SAAgB,mBAAmB,CAAC,UAA8B;IAChE,MAAM,MAAM,GAAe;QACzB,aAAa,EAAE,IAAA,iBAAM,EAAC,UAAU,CAAC,OAAO,CAAC,8BAAe,CAAC,CAAC,KAAK,EAAE,6BAA6B,CAAW;QACzG,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,KAAK,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,CAAC;QACpE,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;IAC1C,CAAC;IACD,KAAK,MAAM,CAAC,GAAG,EAAE,YAAY,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QACrE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,YAAY,CAAC,KAAK,CAAC;IAC3C,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -2,7 +2,7 @@ import { SchedulerId, TriggerId, WebhookId } from '../public-types/application.p
2
2
  import { ApiEndpointId } from '../public-types/integrations/api.public-types';
3
3
  import { SchedulerConfig } from '../public-types/scheduler.public-types';
4
4
  import { OpenApiController } from './openapi.types';
5
- import { AiChatbotActionType, AiFunctionParam, DatabaseActionType, FunctionName, MetricActionType, ServiceFunctionName, StorageActionType, TopicActionType, TopicName } from '../public-types/bundle-data.public-types';
5
+ import { AiChatbotActionType, AiFunctionAttributes, AiFunctionParam, DatabaseActionType, FunctionName, MetricActionType, ServiceFunctionName, StorageActionType, TopicActionType, TopicName } from '../public-types/bundle-data.public-types';
6
6
  import { IntegrationId } from '../public-types/communication.public-types';
7
7
  import { CollectionName } from '../public-types/document.public-types';
8
8
  import { TriggerConfig, WebhookConfig } from './application.types';
@@ -40,9 +40,10 @@ export interface LocalBackendData {
40
40
  openApiSpecStr?: string;
41
41
  }
42
42
  export interface AiFunctionMetadata {
43
+ serviceFunction: ServiceFunctionName;
43
44
  description: string;
44
45
  params: Array<AiFunctionParam>;
45
- serviceFunction: ServiceFunctionName;
46
+ attributes: AiFunctionAttributes;
46
47
  }
47
48
  export interface DatabaseMetadata {
48
49
  collections: Record<CollectionName, CollectionMetadata>;