@google/adk 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/a2a/a2a_remote_agent.js +4 -1
- package/dist/cjs/a2a/agent_card.js +102 -26
- package/dist/cjs/a2a/agent_to_a2a.js +1 -1
- package/dist/cjs/a2a/event_converter_utils.js +5 -1
- package/dist/cjs/a2a/metadata_converter_utils.js +2 -1
- package/dist/cjs/agents/functions.js +199 -25
- package/dist/cjs/agents/instructions.js +4 -1
- package/dist/cjs/agents/invocation_context.js +26 -4
- package/dist/cjs/agents/langgraph_agent.js +152 -0
- package/dist/cjs/agents/llm_agent.js +175 -101
- package/dist/cjs/agents/processors/code_execution_request_processor.js +10 -6
- package/dist/cjs/agents/remote_agent.js +187 -0
- package/dist/cjs/artifacts/in_memory_artifact_service.js +14 -0
- package/dist/cjs/auth/auth_handler.js +37 -5
- package/dist/cjs/auth/auth_schemes.js +9 -0
- package/dist/cjs/cli/cli_eval.js +532 -0
- package/dist/cjs/cli/utils/envs.js +116 -0
- package/dist/cjs/cli/utils/evals.js +137 -0
- package/dist/cjs/cli/utils/logs.js +150 -0
- package/dist/cjs/code_executors/agent_engine_sandbox_code_executor.js +7 -2
- package/dist/cjs/code_executors/code_execution_utils.js +48 -16
- package/dist/cjs/code_executors/code_executor_context.js +6 -2
- package/dist/cjs/common.js +90 -0
- package/dist/cjs/context/summarizers/llm_summarizer.js +12 -10
- package/dist/cjs/context/token_based_context_compactor.js +2 -1
- package/dist/cjs/events/abort_events.js +135 -0
- package/dist/cjs/events/event.js +4 -2
- package/dist/cjs/events/internal_metadata.js +131 -0
- package/dist/cjs/examples/example_util.js +23 -2
- package/dist/cjs/flows/llm_flows/audio_transcriber.js +170 -0
- package/dist/cjs/index.js +97 -1
- package/dist/cjs/integrations/agent_registry/helpers.js +1 -1
- package/dist/cjs/models/gemini_llm_connection.js +16 -8
- package/dist/cjs/models/google_llm.js +13 -16
- package/dist/cjs/models/llm_response.js +9 -1
- package/dist/cjs/models/registry.js +1 -1
- package/dist/cjs/models/routed_llm.js +9 -8
- package/dist/cjs/planners/plan_re_act_planner.js +1 -1
- package/dist/cjs/plugins/debug_logging_plugin.js +653 -0
- package/dist/cjs/plugins/plugin_manager.js +1 -1
- package/dist/cjs/plugins/tool_call_integrity_plugin.js +364 -0
- package/dist/cjs/runner/in_memory_runner.js +6 -11
- package/dist/cjs/runner/runner.js +121 -35
- package/dist/cjs/sessions/db/operations.js +1 -1
- package/dist/cjs/sessions/in_memory_session_service.js +3 -1
- package/dist/cjs/sessions/state.js +8 -4
- package/dist/cjs/sessions/vertex_ai_session_service.js +34 -15
- package/dist/cjs/telemetry/tracing.js +97 -66
- package/dist/cjs/tools/agent_tool.js +44 -0
- package/dist/cjs/tools/apihub_tool/apihub_toolset.js +142 -0
- package/dist/cjs/tools/apihub_tool/clients/apihub_client.js +272 -0
- package/dist/cjs/tools/apihub_tool/clients/secret_client.js +148 -0
- package/dist/cjs/tools/apihub_tool/clients/service_account.js +48 -0
- package/dist/cjs/tools/application_integration_tool/application_integration_toolset.js +185 -0
- package/dist/cjs/tools/application_integration_tool/clients/cloud_request.js +133 -0
- package/dist/cjs/tools/application_integration_tool/clients/connections_client.js +603 -0
- package/dist/cjs/tools/application_integration_tool/clients/integration_client.js +219 -0
- package/dist/cjs/tools/crewai_tool.js +132 -0
- package/dist/cjs/tools/example_tool.js +10 -0
- package/dist/cjs/tools/function_tool.js +319 -0
- package/dist/cjs/tools/google_api_tool/google_api_tool.js +97 -0
- package/dist/cjs/tools/google_api_tool/google_api_tool_set.js +226 -0
- package/dist/cjs/tools/google_api_tool/google_api_tool_sets.js +58 -0
- package/dist/cjs/tools/google_api_tool/googleapi_to_openapi_converter.js +440 -0
- package/dist/cjs/tools/google_api_tool/index.js +64 -0
- package/dist/cjs/tools/langchain_tool.js +172 -0
- package/dist/cjs/tools/mcp/index.js +12 -0
- package/dist/cjs/tools/mcp/mcp_session_manager.js +25 -0
- package/dist/cjs/tools/openapi_tool/auth/auth_helpers.js +1 -2
- package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.js +46 -2
- package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.js +2 -1
- package/dist/cjs/tools/openapi_tool/auth/credential_exchangers/service_account_exchanger.js +94 -10
- package/dist/cjs/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.js +14 -2
- package/dist/cjs/tools/retrieval/base_retrieval_tool.js +18 -3
- package/dist/cjs/tools/toolbox_tool.js +108 -0
- package/dist/cjs/utils/env_aware_utils.js +6 -8
- package/dist/cjs/utils/error_utils.js +11 -11
- package/dist/cjs/utils/file_extension_utils.js +11 -0
- package/dist/cjs/utils/file_utils.js +2 -24
- package/dist/cjs/utils/gemini_schema_util.js +4 -1
- package/dist/cjs/utils/json_utils.js +49 -0
- package/dist/cjs/utils/live_connection_utils.js +4 -5
- package/dist/cjs/utils/logger_node.js +7 -1
- package/dist/cjs/utils/object_notation_utils.js +6 -3
- package/dist/cjs/utils/streaming_utils.js +12 -12
- package/dist/cjs/version.js +1 -1
- package/dist/esm/a2a/a2a_remote_agent.js +4 -1
- package/dist/esm/a2a/agent_card.js +103 -27
- package/dist/esm/a2a/agent_to_a2a.js +5 -2
- package/dist/esm/a2a/event_converter_utils.js +5 -1
- package/dist/esm/a2a/metadata_converter_utils.js +2 -1
- package/dist/esm/agents/functions.js +198 -25
- package/dist/esm/agents/instructions.js +4 -1
- package/dist/esm/agents/invocation_context.js +24 -4
- package/dist/esm/agents/langgraph_agent.js +123 -0
- package/dist/esm/agents/llm_agent.js +185 -104
- package/dist/esm/agents/processors/code_execution_request_processor.js +13 -8
- package/dist/esm/agents/remote_agent.js +164 -0
- package/dist/esm/artifacts/in_memory_artifact_service.js +14 -0
- package/dist/esm/auth/auth_handler.js +37 -5
- package/dist/esm/auth/auth_schemes.js +8 -0
- package/dist/esm/cli/cli_eval.js +510 -0
- package/dist/esm/cli/utils/envs.js +78 -0
- package/dist/esm/cli/utils/evals.js +109 -0
- package/dist/esm/cli/utils/logs.js +111 -0
- package/dist/esm/code_executors/agent_engine_sandbox_code_executor.js +7 -2
- package/dist/esm/code_executors/code_execution_utils.js +46 -16
- package/dist/esm/code_executors/code_executor_context.js +5 -2
- package/dist/esm/common.js +87 -3
- package/dist/esm/context/summarizers/llm_summarizer.js +12 -10
- package/dist/esm/context/token_based_context_compactor.js +2 -1
- package/dist/esm/events/abort_events.js +110 -0
- package/dist/esm/events/event.js +4 -2
- package/dist/esm/events/internal_metadata.js +97 -0
- package/dist/esm/examples/example_util.js +21 -1
- package/dist/esm/flows/llm_flows/audio_transcriber.js +142 -0
- package/dist/esm/index.js +99 -1
- package/dist/esm/integrations/agent_registry/helpers.js +1 -1
- package/dist/esm/models/gemini_llm_connection.js +16 -8
- package/dist/esm/models/google_llm.js +14 -17
- package/dist/esm/models/llm_response.js +9 -1
- package/dist/esm/models/registry.js +1 -1
- package/dist/esm/models/routed_llm.js +9 -8
- package/dist/esm/planners/plan_re_act_planner.js +1 -1
- package/dist/esm/plugins/debug_logging_plugin.js +615 -0
- package/dist/esm/plugins/plugin_manager.js +1 -1
- package/dist/esm/plugins/tool_call_integrity_plugin.js +339 -0
- package/dist/esm/runner/in_memory_runner.js +6 -11
- package/dist/esm/runner/runner.js +124 -35
- package/dist/esm/sessions/db/operations.js +1 -1
- package/dist/esm/sessions/in_memory_session_service.js +3 -1
- package/dist/esm/sessions/state.js +8 -4
- package/dist/esm/sessions/vertex_ai_session_service.js +34 -15
- package/dist/esm/telemetry/tracing.js +97 -66
- package/dist/esm/tools/agent_tool.js +44 -0
- package/dist/esm/tools/apihub_tool/apihub_toolset.js +106 -0
- package/dist/esm/tools/apihub_tool/clients/apihub_client.js +244 -0
- package/dist/esm/tools/apihub_tool/clients/secret_client.js +132 -0
- package/dist/esm/tools/apihub_tool/clients/service_account.js +21 -0
- package/dist/esm/tools/application_integration_tool/application_integration_toolset.js +163 -0
- package/dist/esm/tools/application_integration_tool/clients/cloud_request.js +103 -0
- package/dist/esm/tools/application_integration_tool/clients/connections_client.js +561 -0
- package/dist/esm/tools/application_integration_tool/clients/integration_client.js +215 -0
- package/dist/esm/tools/crewai_tool.js +107 -0
- package/dist/esm/tools/example_tool.js +13 -1
- package/dist/esm/tools/function_tool.js +316 -0
- package/dist/esm/tools/google_api_tool/google_api_tool.js +70 -0
- package/dist/esm/tools/google_api_tool/google_api_tool_set.js +188 -0
- package/dist/esm/tools/google_api_tool/google_api_tool_sets.js +24 -0
- package/dist/esm/tools/google_api_tool/googleapi_to_openapi_converter.js +393 -0
- package/dist/esm/tools/google_api_tool/index.js +33 -0
- package/dist/esm/tools/langchain_tool.js +148 -0
- package/dist/esm/tools/mcp/index.js +6 -0
- package/dist/esm/tools/mcp/mcp_session_manager.js +25 -0
- package/dist/esm/tools/openapi_tool/auth/auth_helpers.js +1 -2
- package/dist/esm/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.js +50 -3
- package/dist/esm/tools/openapi_tool/auth/credential_exchangers/oauth2_exchanger.js +2 -1
- package/dist/esm/tools/openapi_tool/auth/credential_exchangers/service_account_exchanger.js +94 -10
- package/dist/esm/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.js +15 -2
- package/dist/esm/tools/retrieval/base_retrieval_tool.js +16 -2
- package/dist/esm/tools/toolbox_tool.js +80 -0
- package/dist/esm/utils/env_aware_utils.js +6 -8
- package/dist/esm/utils/error_utils.js +9 -10
- package/dist/esm/utils/file_extension_utils.js +11 -0
- package/dist/esm/utils/file_utils.js +2 -23
- package/dist/esm/utils/gemini_schema_util.js +4 -1
- package/dist/esm/utils/json_utils.js +21 -0
- package/dist/esm/utils/live_connection_utils.js +4 -5
- package/dist/esm/utils/logger_node.js +7 -1
- package/dist/esm/utils/object_notation_utils.js +4 -2
- package/dist/esm/utils/streaming_utils.js +11 -11
- package/dist/esm/version.js +1 -1
- package/dist/types/a2a/a2a_remote_agent.d.ts +9 -0
- package/dist/types/a2a/agent_card.d.ts +44 -1
- package/dist/types/a2a/agent_to_a2a.d.ts +9 -0
- package/dist/types/a2a/index.d.ts +1 -0
- package/dist/types/agents/functions.d.ts +33 -1
- package/dist/types/agents/invocation_context.d.ts +20 -1
- package/dist/types/agents/langgraph_agent.d.ts +153 -0
- package/dist/types/agents/remote_agent.d.ts +68 -0
- package/dist/types/auth/auth_handler.d.ts +28 -1
- package/dist/types/auth/auth_schemes.d.ts +13 -0
- package/dist/types/cli/cli_eval.d.ts +173 -0
- package/dist/types/cli/utils/envs.d.ts +23 -0
- package/dist/types/cli/utils/evals.d.ts +47 -0
- package/dist/types/cli/utils/logs.d.ts +38 -0
- package/dist/types/code_executors/code_execution_utils.d.ts +39 -0
- package/dist/types/code_executors/code_executor_context.d.ts +1 -0
- package/dist/types/common.d.ts +30 -4
- package/dist/types/events/abort_events.d.ts +43 -0
- package/dist/types/events/event.d.ts +4 -0
- package/dist/types/events/internal_metadata.d.ts +78 -0
- package/dist/types/examples/example_util.d.ts +17 -0
- package/dist/types/flows/llm_flows/audio_transcriber.d.ts +85 -0
- package/dist/types/index.d.ts +16 -1
- package/dist/types/models/gemini_llm_connection.d.ts +6 -7
- package/dist/types/models/routed_llm.d.ts +1 -1
- package/dist/types/plugins/debug_logging_plugin.d.ts +157 -0
- package/dist/types/plugins/tool_call_integrity_plugin.d.ts +116 -0
- package/dist/types/runner/in_memory_runner.d.ts +2 -1
- package/dist/types/runner/runner.d.ts +34 -0
- package/dist/types/sessions/state.d.ts +5 -1
- package/dist/types/sessions/vertex_ai_session_service.d.ts +8 -0
- package/dist/types/skills/skill.d.ts +1 -1
- package/dist/types/telemetry/tracing.d.ts +4 -2
- package/dist/types/tools/apihub_tool/apihub_toolset.d.ts +122 -0
- package/dist/types/tools/apihub_tool/clients/apihub_client.d.ts +142 -0
- package/dist/types/tools/apihub_tool/clients/secret_client.d.ts +55 -0
- package/dist/types/tools/apihub_tool/clients/service_account.d.ts +11 -0
- package/dist/types/tools/application_integration_tool/application_integration_toolset.d.ts +86 -0
- package/dist/types/tools/application_integration_tool/clients/cloud_request.d.ts +53 -0
- package/dist/types/tools/application_integration_tool/clients/connections_client.d.ts +215 -0
- package/dist/types/tools/application_integration_tool/clients/integration_client.d.ts +72 -0
- package/dist/types/tools/crewai_tool.d.ts +85 -0
- package/dist/types/tools/example_tool.d.ts +10 -0
- package/dist/types/tools/function_tool.d.ts +32 -0
- package/dist/types/tools/google_api_tool/google_api_tool.d.ts +30 -0
- package/dist/types/tools/google_api_tool/google_api_tool_set.d.ts +78 -0
- package/dist/types/tools/google_api_tool/google_api_tool_sets.d.ts +33 -0
- package/dist/types/tools/google_api_tool/googleapi_to_openapi_converter.d.ts +164 -0
- package/dist/types/tools/google_api_tool/index.d.ts +11 -0
- package/dist/types/tools/langchain_tool.d.ts +103 -0
- package/dist/types/tools/mcp/index.d.ts +3 -0
- package/dist/types/tools/mcp/mcp_session_manager.d.ts +34 -1
- package/dist/types/tools/mcp/mcp_toolset.d.ts +15 -0
- package/dist/types/tools/openapi_tool/auth/auth_helpers.d.ts +19 -0
- package/dist/types/tools/openapi_tool/auth/credential_exchangers/auto_auth_credential_exchanger.d.ts +18 -1
- package/dist/types/tools/openapi_tool/openapi_spec_parser/tool_auth_handler.d.ts +2 -1
- package/dist/types/tools/retrieval/base_retrieval_tool.d.ts +15 -0
- package/dist/types/tools/toolbox_tool.d.ts +73 -0
- package/dist/types/utils/env_aware_utils.d.ts +18 -2
- package/dist/types/utils/error_utils.d.ts +7 -0
- package/dist/types/utils/file_utils.d.ts +6 -1
- package/dist/types/utils/gemini_schema_util.d.ts +1 -2
- package/dist/types/utils/json_utils.d.ts +11 -0
- package/dist/types/utils/object_notation_utils.d.ts +7 -0
- package/dist/types/utils/streaming_utils.d.ts +11 -4
- package/dist/types/version.d.ts +1 -1
- package/dist/web/index_web.js +105 -106
- package/dist/web/index_web.js.map +4 -4
- package/package.json +8 -3
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2026 Google LLC
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
var __defProp = Object.defineProperty;
|
|
9
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
10
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
11
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
12
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
13
|
+
var __export = (target, all) => {
|
|
14
|
+
for (var name in all)
|
|
15
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
16
|
+
};
|
|
17
|
+
var __copyProps = (to, from, except, desc) => {
|
|
18
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
19
|
+
for (let key of __getOwnPropNames(from))
|
|
20
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
21
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
22
|
+
}
|
|
23
|
+
return to;
|
|
24
|
+
};
|
|
25
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
27
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
28
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
29
|
+
if (decorator = decorators[i])
|
|
30
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
31
|
+
if (kind && result) __defProp(target, key, result);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
var connections_client_exports = {};
|
|
35
|
+
__export(connections_client_exports, {
|
|
36
|
+
CONNECTOR_BASE_SPEC: () => CONNECTOR_BASE_SPEC,
|
|
37
|
+
ConnectionsClient: () => ConnectionsClient,
|
|
38
|
+
actionRequest: () => actionRequest,
|
|
39
|
+
actionResponse: () => actionResponse,
|
|
40
|
+
connectorPayload: () => connectorPayload,
|
|
41
|
+
createOperation: () => createOperation,
|
|
42
|
+
createOperationRequest: () => createOperationRequest,
|
|
43
|
+
deleteOperation: () => deleteOperation,
|
|
44
|
+
deleteOperationRequest: () => deleteOperationRequest,
|
|
45
|
+
executeCustomQueryRequest: () => executeCustomQueryRequest,
|
|
46
|
+
getActionOperation: () => getActionOperation,
|
|
47
|
+
getOperation: () => getOperation,
|
|
48
|
+
getOperationRequest: () => getOperationRequest,
|
|
49
|
+
listOperation: () => listOperation,
|
|
50
|
+
listOperationRequest: () => listOperationRequest,
|
|
51
|
+
updateOperation: () => updateOperation,
|
|
52
|
+
updateOperationRequest: () => updateOperationRequest
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(connections_client_exports);
|
|
55
|
+
var import_experimental = require("../../../utils/experimental.js");
|
|
56
|
+
var import_json_utils = require("../../../utils/json_utils.js");
|
|
57
|
+
var import_cloud_request = require("./cloud_request.js");
|
|
58
|
+
/**
|
|
59
|
+
* @license
|
|
60
|
+
* Copyright 2026 Google LLC
|
|
61
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
62
|
+
*/
|
|
63
|
+
const CONNECTOR_URL = "https://connectors.googleapis.com";
|
|
64
|
+
const OPERATION_POLL_INTERVAL_MS = 1e3;
|
|
65
|
+
function toStringValue(value) {
|
|
66
|
+
return typeof value === "string" ? value : "";
|
|
67
|
+
}
|
|
68
|
+
__name(toStringValue, "toStringValue");
|
|
69
|
+
function sleep(ms) {
|
|
70
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
71
|
+
}
|
|
72
|
+
__name(sleep, "sleep");
|
|
73
|
+
function schemaRef(name) {
|
|
74
|
+
return { $ref: `#/components/schemas/${name}` };
|
|
75
|
+
}
|
|
76
|
+
__name(schemaRef, "schemaRef");
|
|
77
|
+
const CONNECTOR_BASE_SPEC = {
|
|
78
|
+
openapi: "3.0.1",
|
|
79
|
+
info: {
|
|
80
|
+
title: "ExecuteConnection",
|
|
81
|
+
description: "This tool can execute a query on connection",
|
|
82
|
+
version: "4"
|
|
83
|
+
},
|
|
84
|
+
servers: [{ url: "https://integrations.googleapis.com" }],
|
|
85
|
+
security: [{ google_auth: ["https://www.googleapis.com/auth/cloud-platform"] }],
|
|
86
|
+
paths: {},
|
|
87
|
+
components: {
|
|
88
|
+
schemas: {
|
|
89
|
+
operation: {
|
|
90
|
+
type: "string",
|
|
91
|
+
default: "LIST_ENTITIES",
|
|
92
|
+
description: "Operation to execute. Possible values are LIST_ENTITIES, GET_ENTITY, CREATE_ENTITY, UPDATE_ENTITY, DELETE_ENTITY in case of entities. EXECUTE_ACTION in case of actions. and EXECUTE_QUERY in case of custom queries."
|
|
93
|
+
},
|
|
94
|
+
entityId: {
|
|
95
|
+
type: "string",
|
|
96
|
+
description: "Name of the entity"
|
|
97
|
+
},
|
|
98
|
+
connectorInputPayload: { type: "object" },
|
|
99
|
+
filterClause: {
|
|
100
|
+
type: "string",
|
|
101
|
+
default: "",
|
|
102
|
+
description: "WHERE clause in SQL query"
|
|
103
|
+
},
|
|
104
|
+
pageSize: {
|
|
105
|
+
type: "integer",
|
|
106
|
+
default: 50,
|
|
107
|
+
description: "Number of entities to return in the response"
|
|
108
|
+
},
|
|
109
|
+
pageToken: {
|
|
110
|
+
type: "string",
|
|
111
|
+
default: "",
|
|
112
|
+
description: "Page token to return the next page of entities"
|
|
113
|
+
},
|
|
114
|
+
connectionName: {
|
|
115
|
+
type: "string",
|
|
116
|
+
default: "",
|
|
117
|
+
description: "Connection resource name to run the query for"
|
|
118
|
+
},
|
|
119
|
+
serviceName: {
|
|
120
|
+
type: "string",
|
|
121
|
+
default: "",
|
|
122
|
+
description: "Service directory for the connection"
|
|
123
|
+
},
|
|
124
|
+
host: {
|
|
125
|
+
type: "string",
|
|
126
|
+
default: "",
|
|
127
|
+
description: "Host name in case of tls service directory"
|
|
128
|
+
},
|
|
129
|
+
entity: {
|
|
130
|
+
type: "string",
|
|
131
|
+
default: "Issues",
|
|
132
|
+
description: "Entity to run the query for"
|
|
133
|
+
},
|
|
134
|
+
action: {
|
|
135
|
+
type: "string",
|
|
136
|
+
default: "ExecuteCustomQuery",
|
|
137
|
+
description: "Action to run the query for"
|
|
138
|
+
},
|
|
139
|
+
query: {
|
|
140
|
+
type: "string",
|
|
141
|
+
default: "",
|
|
142
|
+
description: "Custom Query to execute on the connection"
|
|
143
|
+
},
|
|
144
|
+
dynamicAuthConfig: {
|
|
145
|
+
type: "object",
|
|
146
|
+
default: {},
|
|
147
|
+
description: "Dynamic auth config for the connection"
|
|
148
|
+
},
|
|
149
|
+
timeout: {
|
|
150
|
+
type: "integer",
|
|
151
|
+
default: 120,
|
|
152
|
+
description: "Timeout in seconds for execution of custom query"
|
|
153
|
+
},
|
|
154
|
+
connectorOutputPayload: { type: "object" },
|
|
155
|
+
nextPageToken: { type: "string" },
|
|
156
|
+
"execute-connector_Response": {
|
|
157
|
+
required: ["connectorOutputPayload"],
|
|
158
|
+
type: "object",
|
|
159
|
+
properties: {
|
|
160
|
+
connectorOutputPayload: schemaRef("connectorOutputPayload"),
|
|
161
|
+
nextPageToken: schemaRef("nextPageToken")
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
securitySchemes: {
|
|
166
|
+
google_auth: {
|
|
167
|
+
type: "oauth2",
|
|
168
|
+
flows: {
|
|
169
|
+
implicit: {
|
|
170
|
+
authorizationUrl: "https://accounts.google.com/o/oauth2/auth",
|
|
171
|
+
scopes: {
|
|
172
|
+
"https://www.googleapis.com/auth/cloud-platform": "Auth for google cloud services"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
function connectorPayload(jsonSchema) {
|
|
181
|
+
const openApiSchema = {};
|
|
182
|
+
if ("description" in jsonSchema) {
|
|
183
|
+
openApiSchema["description"] = jsonSchema["description"];
|
|
184
|
+
}
|
|
185
|
+
if ("type" in jsonSchema) {
|
|
186
|
+
const type = jsonSchema["type"];
|
|
187
|
+
if (Array.isArray(type)) {
|
|
188
|
+
if (type.includes("null")) {
|
|
189
|
+
openApiSchema["nullable"] = true;
|
|
190
|
+
const otherTypes = type.filter((t) => t !== "null");
|
|
191
|
+
if (otherTypes.length > 0) {
|
|
192
|
+
openApiSchema["type"] = otherTypes[0];
|
|
193
|
+
}
|
|
194
|
+
} else if (type.length > 0) {
|
|
195
|
+
openApiSchema["type"] = type[0];
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
openApiSchema["type"] = type;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
if (openApiSchema["type"] === "object" && "properties" in jsonSchema) {
|
|
202
|
+
const properties = {};
|
|
203
|
+
for (const [name, schema] of Object.entries(
|
|
204
|
+
(0, import_json_utils.toJsonObject)(jsonSchema["properties"])
|
|
205
|
+
)) {
|
|
206
|
+
properties[name] = connectorPayload((0, import_json_utils.toJsonObject)(schema));
|
|
207
|
+
}
|
|
208
|
+
openApiSchema["properties"] = properties;
|
|
209
|
+
} else if (openApiSchema["type"] === "array" && "items" in jsonSchema) {
|
|
210
|
+
const items = jsonSchema["items"];
|
|
211
|
+
openApiSchema["items"] = Array.isArray(items) ? items.map((item) => connectorPayload((0, import_json_utils.toJsonObject)(item))) : connectorPayload((0, import_json_utils.toJsonObject)(items));
|
|
212
|
+
}
|
|
213
|
+
return openApiSchema;
|
|
214
|
+
}
|
|
215
|
+
__name(connectorPayload, "connectorPayload");
|
|
216
|
+
function postOperation(options) {
|
|
217
|
+
const { summary, description, operationId, requestSchemaRef, responseSchema } = options;
|
|
218
|
+
return {
|
|
219
|
+
post: {
|
|
220
|
+
summary,
|
|
221
|
+
description,
|
|
222
|
+
operationId,
|
|
223
|
+
requestBody: {
|
|
224
|
+
content: {
|
|
225
|
+
"application/json": {
|
|
226
|
+
schema: { $ref: requestSchemaRef }
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
responses: {
|
|
231
|
+
"200": {
|
|
232
|
+
description: "Success response",
|
|
233
|
+
content: {
|
|
234
|
+
"application/json": {
|
|
235
|
+
schema: responseSchema
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
__name(postOperation, "postOperation");
|
|
244
|
+
function entityIdRequest() {
|
|
245
|
+
return {
|
|
246
|
+
type: "object",
|
|
247
|
+
required: [
|
|
248
|
+
"entityId",
|
|
249
|
+
"operation",
|
|
250
|
+
"connectionName",
|
|
251
|
+
"serviceName",
|
|
252
|
+
"host",
|
|
253
|
+
"entity"
|
|
254
|
+
],
|
|
255
|
+
properties: {
|
|
256
|
+
entityId: schemaRef("entityId"),
|
|
257
|
+
operation: schemaRef("operation"),
|
|
258
|
+
connectionName: schemaRef("connectionName"),
|
|
259
|
+
serviceName: schemaRef("serviceName"),
|
|
260
|
+
host: schemaRef("host"),
|
|
261
|
+
entity: schemaRef("entity")
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
__name(entityIdRequest, "entityIdRequest");
|
|
266
|
+
function getActionOperation(options) {
|
|
267
|
+
const {
|
|
268
|
+
action,
|
|
269
|
+
operation,
|
|
270
|
+
actionDisplayName,
|
|
271
|
+
toolName = "",
|
|
272
|
+
toolInstructions = ""
|
|
273
|
+
} = options;
|
|
274
|
+
let description = `Use this tool with action = "${action}" and operation = "${operation}" only. Don't ask these values from user.`;
|
|
275
|
+
if (operation === "EXECUTE_QUERY") {
|
|
276
|
+
description += " Use pageSize = 50 and timeout = 120 until user specifies a different value otherwise. If user provides a query in natural language, convert it to SQL query and then execute it using the tool.";
|
|
277
|
+
}
|
|
278
|
+
return postOperation({
|
|
279
|
+
summary: actionDisplayName,
|
|
280
|
+
description: `${description} ${toolInstructions}`,
|
|
281
|
+
operationId: `${toolName}_${actionDisplayName}`,
|
|
282
|
+
requestSchemaRef: `#/components/schemas/${actionDisplayName}_Request`,
|
|
283
|
+
responseSchema: schemaRef(`${actionDisplayName}_Response`)
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
__name(getActionOperation, "getActionOperation");
|
|
287
|
+
function listOperation(options) {
|
|
288
|
+
const {
|
|
289
|
+
entity,
|
|
290
|
+
schemaAsString = "",
|
|
291
|
+
toolName = "",
|
|
292
|
+
toolInstructions = ""
|
|
293
|
+
} = options;
|
|
294
|
+
return postOperation({
|
|
295
|
+
summary: `List ${entity}`,
|
|
296
|
+
description: `Returns all entities of type ${entity}. Use this tool with entity = "${entity}" and operation = "LIST_ENTITIES" only. Don't ask these values from user. Always use "" as filter clause and "" as page token and 50 as page size until user specifies a different value otherwise. Use single quotes for strings in filter clause. ${toolInstructions}`,
|
|
297
|
+
operationId: `${toolName}_list_${entity}`,
|
|
298
|
+
requestSchemaRef: `#/components/schemas/list_${entity}_Request`,
|
|
299
|
+
responseSchema: {
|
|
300
|
+
description: `Returns a list of ${entity} of json schema: ${schemaAsString}`,
|
|
301
|
+
$ref: "#/components/schemas/execute-connector_Response"
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
__name(listOperation, "listOperation");
|
|
306
|
+
function getOperation(options) {
|
|
307
|
+
const {
|
|
308
|
+
entity,
|
|
309
|
+
schemaAsString = "",
|
|
310
|
+
toolName = "",
|
|
311
|
+
toolInstructions = ""
|
|
312
|
+
} = options;
|
|
313
|
+
return postOperation({
|
|
314
|
+
summary: `Get ${entity}`,
|
|
315
|
+
description: `Returns the details of the ${entity}. Use this tool with entity = "${entity}" and operation = "GET_ENTITY" only. Don't ask these values from user. ${toolInstructions}`,
|
|
316
|
+
operationId: `${toolName}_get_${entity}`,
|
|
317
|
+
requestSchemaRef: `#/components/schemas/get_${entity}_Request`,
|
|
318
|
+
responseSchema: {
|
|
319
|
+
description: `Returns ${entity} of json schema: ${schemaAsString}`,
|
|
320
|
+
$ref: "#/components/schemas/execute-connector_Response"
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
__name(getOperation, "getOperation");
|
|
325
|
+
function createOperation(options) {
|
|
326
|
+
const { entity, toolName = "", toolInstructions = "" } = options;
|
|
327
|
+
return postOperation({
|
|
328
|
+
summary: `Create ${entity}`,
|
|
329
|
+
description: `Creates a new entity of type ${entity}. Use this tool with entity = "${entity}" and operation = "CREATE_ENTITY" only. Don't ask these values from user. Follow the schema of the entity provided in the instructions to create ${entity}. ${toolInstructions}`,
|
|
330
|
+
operationId: `${toolName}_create_${entity}`,
|
|
331
|
+
requestSchemaRef: `#/components/schemas/create_${entity}_Request`,
|
|
332
|
+
responseSchema: schemaRef("execute-connector_Response")
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
__name(createOperation, "createOperation");
|
|
336
|
+
function updateOperation(options) {
|
|
337
|
+
const { entity, toolName = "", toolInstructions = "" } = options;
|
|
338
|
+
return postOperation({
|
|
339
|
+
summary: `Update ${entity}`,
|
|
340
|
+
description: `Updates an entity of type ${entity}. Use this tool with entity = "${entity}" and operation = "UPDATE_ENTITY" only. Don't ask these values from user. Use entityId to uniquely identify the entity to update. Follow the schema of the entity provided in the instructions to update ${entity}. ${toolInstructions}`,
|
|
341
|
+
operationId: `${toolName}_update_${entity}`,
|
|
342
|
+
requestSchemaRef: `#/components/schemas/update_${entity}_Request`,
|
|
343
|
+
responseSchema: schemaRef("execute-connector_Response")
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
__name(updateOperation, "updateOperation");
|
|
347
|
+
function deleteOperation(options) {
|
|
348
|
+
const { entity, toolName = "", toolInstructions = "" } = options;
|
|
349
|
+
return postOperation({
|
|
350
|
+
summary: `Delete ${entity}`,
|
|
351
|
+
description: `Deletes an entity of type ${entity}. Use this tool with entity = "${entity}" and operation = "DELETE_ENTITY" only. Don't ask these values from user. ${toolInstructions}`,
|
|
352
|
+
operationId: `${toolName}_delete_${entity}`,
|
|
353
|
+
requestSchemaRef: `#/components/schemas/delete_${entity}_Request`,
|
|
354
|
+
responseSchema: schemaRef("execute-connector_Response")
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
__name(deleteOperation, "deleteOperation");
|
|
358
|
+
function createOperationRequest(entity) {
|
|
359
|
+
return {
|
|
360
|
+
type: "object",
|
|
361
|
+
required: [
|
|
362
|
+
"connectorInputPayload",
|
|
363
|
+
"operation",
|
|
364
|
+
"connectionName",
|
|
365
|
+
"serviceName",
|
|
366
|
+
"host",
|
|
367
|
+
"entity"
|
|
368
|
+
],
|
|
369
|
+
properties: {
|
|
370
|
+
connectorInputPayload: schemaRef(`connectorInputPayload_${entity}`),
|
|
371
|
+
operation: schemaRef("operation"),
|
|
372
|
+
connectionName: schemaRef("connectionName"),
|
|
373
|
+
serviceName: schemaRef("serviceName"),
|
|
374
|
+
host: schemaRef("host"),
|
|
375
|
+
entity: schemaRef("entity")
|
|
376
|
+
}
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
__name(createOperationRequest, "createOperationRequest");
|
|
380
|
+
function updateOperationRequest(entity) {
|
|
381
|
+
return {
|
|
382
|
+
type: "object",
|
|
383
|
+
required: [
|
|
384
|
+
"connectorInputPayload",
|
|
385
|
+
"entityId",
|
|
386
|
+
"operation",
|
|
387
|
+
"connectionName",
|
|
388
|
+
"serviceName",
|
|
389
|
+
"host",
|
|
390
|
+
"entity"
|
|
391
|
+
],
|
|
392
|
+
properties: {
|
|
393
|
+
connectorInputPayload: schemaRef(`connectorInputPayload_${entity}`),
|
|
394
|
+
entityId: schemaRef("entityId"),
|
|
395
|
+
operation: schemaRef("operation"),
|
|
396
|
+
connectionName: schemaRef("connectionName"),
|
|
397
|
+
serviceName: schemaRef("serviceName"),
|
|
398
|
+
host: schemaRef("host"),
|
|
399
|
+
entity: schemaRef("entity")
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
}
|
|
403
|
+
__name(updateOperationRequest, "updateOperationRequest");
|
|
404
|
+
function getOperationRequest() {
|
|
405
|
+
return entityIdRequest();
|
|
406
|
+
}
|
|
407
|
+
__name(getOperationRequest, "getOperationRequest");
|
|
408
|
+
function deleteOperationRequest() {
|
|
409
|
+
return entityIdRequest();
|
|
410
|
+
}
|
|
411
|
+
__name(deleteOperationRequest, "deleteOperationRequest");
|
|
412
|
+
function listOperationRequest() {
|
|
413
|
+
return {
|
|
414
|
+
type: "object",
|
|
415
|
+
required: ["operation", "connectionName", "serviceName", "host", "entity"],
|
|
416
|
+
properties: {
|
|
417
|
+
filterClause: schemaRef("filterClause"),
|
|
418
|
+
pageSize: schemaRef("pageSize"),
|
|
419
|
+
pageToken: schemaRef("pageToken"),
|
|
420
|
+
operation: schemaRef("operation"),
|
|
421
|
+
connectionName: schemaRef("connectionName"),
|
|
422
|
+
serviceName: schemaRef("serviceName"),
|
|
423
|
+
host: schemaRef("host"),
|
|
424
|
+
entity: schemaRef("entity")
|
|
425
|
+
}
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
__name(listOperationRequest, "listOperationRequest");
|
|
429
|
+
function actionRequest(action) {
|
|
430
|
+
return {
|
|
431
|
+
type: "object",
|
|
432
|
+
required: [
|
|
433
|
+
"operation",
|
|
434
|
+
"connectionName",
|
|
435
|
+
"serviceName",
|
|
436
|
+
"host",
|
|
437
|
+
"action",
|
|
438
|
+
"connectorInputPayload"
|
|
439
|
+
],
|
|
440
|
+
properties: {
|
|
441
|
+
operation: schemaRef("operation"),
|
|
442
|
+
connectionName: schemaRef("connectionName"),
|
|
443
|
+
serviceName: schemaRef("serviceName"),
|
|
444
|
+
host: schemaRef("host"),
|
|
445
|
+
action: schemaRef("action"),
|
|
446
|
+
connectorInputPayload: schemaRef(`connectorInputPayload_${action}`)
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
}
|
|
450
|
+
__name(actionRequest, "actionRequest");
|
|
451
|
+
function actionResponse(action) {
|
|
452
|
+
return {
|
|
453
|
+
type: "object",
|
|
454
|
+
properties: {
|
|
455
|
+
connectorOutputPayload: schemaRef(`connectorOutputPayload_${action}`)
|
|
456
|
+
}
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
__name(actionResponse, "actionResponse");
|
|
460
|
+
function executeCustomQueryRequest() {
|
|
461
|
+
return {
|
|
462
|
+
type: "object",
|
|
463
|
+
required: [
|
|
464
|
+
"operation",
|
|
465
|
+
"connectionName",
|
|
466
|
+
"serviceName",
|
|
467
|
+
"host",
|
|
468
|
+
"action",
|
|
469
|
+
"query",
|
|
470
|
+
"timeout",
|
|
471
|
+
"pageSize"
|
|
472
|
+
],
|
|
473
|
+
properties: {
|
|
474
|
+
operation: schemaRef("operation"),
|
|
475
|
+
connectionName: schemaRef("connectionName"),
|
|
476
|
+
serviceName: schemaRef("serviceName"),
|
|
477
|
+
host: schemaRef("host"),
|
|
478
|
+
action: schemaRef("action"),
|
|
479
|
+
query: schemaRef("query"),
|
|
480
|
+
timeout: schemaRef("timeout"),
|
|
481
|
+
pageSize: schemaRef("pageSize")
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
}
|
|
485
|
+
__name(executeCustomQueryRequest, "executeCustomQueryRequest");
|
|
486
|
+
let ConnectionsClient = class {
|
|
487
|
+
constructor(options) {
|
|
488
|
+
this.project = options.project;
|
|
489
|
+
this.location = options.location;
|
|
490
|
+
this.connection = options.connection;
|
|
491
|
+
this.tokenSource = new import_cloud_request.CloudPlatformTokenSource(options.serviceAccountJson);
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* Reads the service name and host of the connection, and whether it allows
|
|
495
|
+
* an authentication override.
|
|
496
|
+
*/
|
|
497
|
+
async getConnectionDetails() {
|
|
498
|
+
const url = `${CONNECTOR_URL}/v1/projects/${this.project}/locations/${this.location}/connections/${this.connection}?view=BASIC`;
|
|
499
|
+
const connectionData = (0, import_json_utils.toJsonObject)(await this.executeApiCall(url));
|
|
500
|
+
const host = toStringValue(connectionData["host"]);
|
|
501
|
+
const serviceName = host ? toStringValue(connectionData["tlsServiceDirectory"]) : toStringValue(connectionData["serviceDirectory"]);
|
|
502
|
+
const authOverrideEnabled = connectionData["authOverrideEnabled"] === true;
|
|
503
|
+
return { serviceName, host, authOverrideEnabled };
|
|
504
|
+
}
|
|
505
|
+
/**
|
|
506
|
+
* Reads the JSON schema of an entity and the operations it supports.
|
|
507
|
+
*
|
|
508
|
+
* @param entity The entity name.
|
|
509
|
+
* @throws Error When the API starts no operation for the entity.
|
|
510
|
+
*/
|
|
511
|
+
async getEntitySchemaAndOperations(entity) {
|
|
512
|
+
const url = `${CONNECTOR_URL}/v1/projects/${this.project}/locations/${this.location}/connections/${this.connection}/connectionSchemaMetadata:getEntityType?entityId=${entity}`;
|
|
513
|
+
const operationId = toStringValue(
|
|
514
|
+
(0, import_json_utils.toJsonObject)(await this.executeApiCall(url))["name"]
|
|
515
|
+
);
|
|
516
|
+
if (!operationId) {
|
|
517
|
+
throw new Error(
|
|
518
|
+
`Failed to get entity schema and operations for entity: ${entity}`
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
const response = (0, import_json_utils.toJsonObject)(
|
|
522
|
+
(await this.pollOperation(operationId))["response"]
|
|
523
|
+
);
|
|
524
|
+
const operations = response["operations"];
|
|
525
|
+
return {
|
|
526
|
+
schema: (0, import_json_utils.toJsonObject)(response["jsonSchema"]),
|
|
527
|
+
operations: Array.isArray(operations) ? operations.filter((op) => typeof op === "string") : []
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
/**
|
|
531
|
+
* Reads the input and output JSON schemas of an action.
|
|
532
|
+
*
|
|
533
|
+
* @param action The action name.
|
|
534
|
+
* @throws Error When the API starts no operation for the action.
|
|
535
|
+
*/
|
|
536
|
+
async getActionSchema(action) {
|
|
537
|
+
const url = `${CONNECTOR_URL}/v1/projects/${this.project}/locations/${this.location}/connections/${this.connection}/connectionSchemaMetadata:getAction?actionId=${action}`;
|
|
538
|
+
const operationId = toStringValue(
|
|
539
|
+
(0, import_json_utils.toJsonObject)(await this.executeApiCall(url))["name"]
|
|
540
|
+
);
|
|
541
|
+
if (!operationId) {
|
|
542
|
+
throw new Error(`Failed to get action schema for action: ${action}`);
|
|
543
|
+
}
|
|
544
|
+
const response = (0, import_json_utils.toJsonObject)(
|
|
545
|
+
(await this.pollOperation(operationId))["response"]
|
|
546
|
+
);
|
|
547
|
+
return {
|
|
548
|
+
inputSchema: (0, import_json_utils.toJsonObject)(response["inputJsonSchema"]),
|
|
549
|
+
outputSchema: (0, import_json_utils.toJsonObject)(response["outputJsonSchema"]),
|
|
550
|
+
description: toStringValue(response["description"]),
|
|
551
|
+
displayName: toStringValue(response["displayName"])
|
|
552
|
+
};
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Converts the JSON schema of an entity or an action payload into the
|
|
556
|
+
* OpenAPI schema the connector spec carries.
|
|
557
|
+
*/
|
|
558
|
+
connectorPayload(jsonSchema) {
|
|
559
|
+
return connectorPayload(jsonSchema);
|
|
560
|
+
}
|
|
561
|
+
executeApiCall(url) {
|
|
562
|
+
return (0, import_cloud_request.sendCloudRequest)({
|
|
563
|
+
url,
|
|
564
|
+
method: "GET",
|
|
565
|
+
tokenSource: this.tokenSource,
|
|
566
|
+
invalidRequestMessage: `Invalid request. Please check the provided values of project(${this.project}), location(${this.location}), connection(${this.connection}).`
|
|
567
|
+
});
|
|
568
|
+
}
|
|
569
|
+
/** Polls a long-running operation until it reports `done`. */
|
|
570
|
+
async pollOperation(operationId) {
|
|
571
|
+
const url = `${CONNECTOR_URL}/v1/${operationId}`;
|
|
572
|
+
let operation = (0, import_json_utils.toJsonObject)(await this.executeApiCall(url));
|
|
573
|
+
while (operation["done"] !== true) {
|
|
574
|
+
await sleep(OPERATION_POLL_INTERVAL_MS);
|
|
575
|
+
operation = (0, import_json_utils.toJsonObject)(await this.executeApiCall(url));
|
|
576
|
+
}
|
|
577
|
+
return operation;
|
|
578
|
+
}
|
|
579
|
+
};
|
|
580
|
+
__name(ConnectionsClient, "ConnectionsClient");
|
|
581
|
+
ConnectionsClient = __decorateClass([
|
|
582
|
+
import_experimental.experimental
|
|
583
|
+
], ConnectionsClient);
|
|
584
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
585
|
+
0 && (module.exports = {
|
|
586
|
+
CONNECTOR_BASE_SPEC,
|
|
587
|
+
ConnectionsClient,
|
|
588
|
+
actionRequest,
|
|
589
|
+
actionResponse,
|
|
590
|
+
connectorPayload,
|
|
591
|
+
createOperation,
|
|
592
|
+
createOperationRequest,
|
|
593
|
+
deleteOperation,
|
|
594
|
+
deleteOperationRequest,
|
|
595
|
+
executeCustomQueryRequest,
|
|
596
|
+
getActionOperation,
|
|
597
|
+
getOperation,
|
|
598
|
+
getOperationRequest,
|
|
599
|
+
listOperation,
|
|
600
|
+
listOperationRequest,
|
|
601
|
+
updateOperation,
|
|
602
|
+
updateOperationRequest
|
|
603
|
+
});
|