@wildix/wim-tools-client 4.0.4 → 4.0.5
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/Tools.js +2 -0
- package/dist-cjs/commands/CreateConnectorSessionCommand.js +20 -0
- package/dist-cjs/commands/index.js +1 -0
- package/dist-cjs/schemas/schemas_0.js +22 -2
- package/dist-es/Tools.js +2 -0
- package/dist-es/commands/CreateConnectorSessionCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/schemas/schemas_0.js +19 -0
- package/dist-types/Tools.d.ts +7 -0
- package/dist-types/ToolsClient.d.ts +3 -2
- package/dist-types/commands/CreateConnectorSessionCommand.d.ts +95 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +45 -0
- package/dist-types/runtimeConfig.browser.d.ts +0 -1
- package/dist-types/runtimeConfig.d.ts +0 -1
- package/dist-types/runtimeConfig.native.d.ts +0 -1
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/package.json +1 -1
package/dist-cjs/Tools.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Tools = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
const CreateConnectorCommand_1 = require("./commands/CreateConnectorCommand");
|
|
6
|
+
const CreateConnectorSessionCommand_1 = require("./commands/CreateConnectorSessionCommand");
|
|
6
7
|
const CreateToolCommand_1 = require("./commands/CreateToolCommand");
|
|
7
8
|
const DeleteConnectorCommand_1 = require("./commands/DeleteConnectorCommand");
|
|
8
9
|
const DeleteToolCommand_1 = require("./commands/DeleteToolCommand");
|
|
@@ -24,6 +25,7 @@ const ListConnectorsPaginator_1 = require("./pagination/ListConnectorsPaginator"
|
|
|
24
25
|
const ToolsClient_1 = require("./ToolsClient");
|
|
25
26
|
const commands = {
|
|
26
27
|
CreateConnectorCommand: CreateConnectorCommand_1.CreateConnectorCommand,
|
|
28
|
+
CreateConnectorSessionCommand: CreateConnectorSessionCommand_1.CreateConnectorSessionCommand,
|
|
27
29
|
CreateToolCommand: CreateToolCommand_1.CreateToolCommand,
|
|
28
30
|
DeleteConnectorCommand: DeleteConnectorCommand_1.DeleteConnectorCommand,
|
|
29
31
|
DeleteToolCommand: DeleteToolCommand_1.DeleteToolCommand,
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateConnectorSessionCommand = exports.$Command = void 0;
|
|
4
|
+
const client_1 = require("@smithy/core/client");
|
|
5
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
|
+
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
|
+
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
+
class CreateConnectorSessionCommand extends client_1.Command
|
|
10
|
+
.classBuilder()
|
|
11
|
+
.ep(EndpointParameters_1.commonParams)
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
|
+
})
|
|
15
|
+
.s("Tools", "CreateConnectorSession", {})
|
|
16
|
+
.n("ToolsClient", "CreateConnectorSessionCommand")
|
|
17
|
+
.sc(schemas_0_1.CreateConnectorSession$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.CreateConnectorSessionCommand = CreateConnectorSessionCommand;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./CreateConnectorCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./CreateConnectorSessionCommand"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./CreateToolCommand"), exports);
|
|
6
7
|
tslib_1.__exportStar(require("./DeleteConnectorCommand"), exports);
|
|
7
8
|
tslib_1.__exportStar(require("./DeleteToolCommand"), exports);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.ListToolsInput$ = exports.ListConnectorsOutput$ = exports.ListConnectorsInput$ = exports.ListConnectorDefinitionsOutput$ = exports.ListConnectorDefinitionsInput$ = exports.GetToolOutput$ = exports.GetToolInput$ = exports.GetConnectorOutput$ = exports.GetConnectorInput$ = exports.GetConnectorDefinitionOutput$ = exports.GetConnectorDefinitionInput$ = exports.ExecuteToolOutput$ = exports.ExecuteToolInput$ = exports.ExecuteConnectorOutput$ = exports.ExecuteConnectorInput$ = exports.DiscoverToolsOutput$ = exports.DiscoverToolsInput$ = exports.DiscoveredTool$ = exports.DescribeToolsOutput$ = exports.DescribeToolsInput$ = exports.DeleteToolOutput$ = exports.DeleteToolInput$ = exports.DeleteConnectorOutput$ = exports.DeleteConnectorInput$ = exports.CreateToolOutput$ = exports.CreateToolInput$ = exports.CreateConnectorSessionOutput$ = exports.CreateConnectorSessionInput$ = exports.CreateConnectorOutput$ = exports.CreateConnectorInput$ = exports.ConnectorUserAuthorization$ = exports.ConnectorToolAnnotations$ = exports.ConnectorTool$ = exports.ConnectorSharedAuthorization$ = exports.ConnectorMetadata$ = exports.ConnectorExecutionResult$ = exports.ConnectorDefinitionRef$ = exports.ConnectorDefinition$ = exports.ConnectorConfigurationDefinition$ = exports.ConnectorAuthorizationDefinition$ = exports.Connector$ = exports.errorTypeRegistries = exports.ToolExecutionServerException$ = exports.ToolExecutionException$ = exports.ValidationException$ = exports.UnauthorizedException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.AlreadyExistException$ = exports.ToolsServiceException$ = void 0;
|
|
4
|
+
exports.ListTools$ = exports.ListConnectors$ = exports.ListConnectorDefinitions$ = exports.GetTool$ = exports.GetConnectorDefinition$ = exports.GetConnector$ = exports.ExecuteTool$ = exports.ExecuteConnector$ = exports.DiscoverTools$ = exports.DescribeTools$ = exports.DeleteTool$ = exports.DeleteConnector$ = exports.CreateTool$ = exports.CreateConnectorSession$ = exports.CreateConnector$ = exports.ToolWebhookAuth$ = exports.ToolMcpAuthorization$ = exports.ToolHandler$ = exports.ToolEmailHandler$ = exports.ToolChatRecipient$ = exports.ConnectorAuthorization$ = exports.UpdateToolOutput$ = exports.UpdateToolInput$ = exports.UpdateConnectorOutput$ = exports.UpdateConnectorInput$ = exports.ToolWnsEmailConfig$ = exports.ToolWebhookHeader$ = exports.ToolWebhookConfig$ = exports.ToolWebhookAuthOAuth$ = exports.ToolWebhookAuthBearer$ = exports.ToolWebhookAuthBasic$ = exports.ToolVariable$ = exports.ToolSmtpConfig$ = exports.ToolSmsHandler$ = exports.ToolSmsConfig$ = exports.ToolSearchConfig$ = exports.ToolMcpToolHandler$ = exports.ToolMcpHandler$ = exports.ToolInput$ = exports.ToolExecutionResult$ = exports.ToolDescription$ = exports.ToolCustomEmailConfig$ = exports.ToolConnectorHandler$ = exports.ToolChatHandler$ = exports.ToolChatConfig$ = exports.ToolCalendarConfig$ = exports.Tool$ = exports.ResolveConnectorConfigurationOutput$ = exports.ResolveConnectorConfigurationInput$ = exports.ListToolsOutput$ = void 0;
|
|
5
|
+
exports.UpdateTool$ = exports.UpdateConnector$ = exports.ResolveConnectorConfiguration$ = void 0;
|
|
5
6
|
const _AEE = "AlreadyExistException";
|
|
6
7
|
const _C = "Connector";
|
|
7
8
|
const _CA = "ConnectorAuthorization";
|
|
@@ -10,6 +11,9 @@ const _CC = "CreateConnector";
|
|
|
10
11
|
const _CCD = "ConnectorConfigurationDefinition";
|
|
11
12
|
const _CCI = "CreateConnectorInput";
|
|
12
13
|
const _CCO = "CreateConnectorOutput";
|
|
14
|
+
const _CCS = "CreateConnectorSession";
|
|
15
|
+
const _CCSI = "CreateConnectorSessionInput";
|
|
16
|
+
const _CCSO = "CreateConnectorSessionOutput";
|
|
13
17
|
const _CD = "ConnectorDefinition";
|
|
14
18
|
const _CDR = "ConnectorDefinitionRef";
|
|
15
19
|
const _CDo = "ConnectorDefinitions";
|
|
@@ -178,6 +182,7 @@ const _me = "metadata";
|
|
|
178
182
|
const _met = "method";
|
|
179
183
|
const _mo = "modes";
|
|
180
184
|
const _n = "name";
|
|
185
|
+
const _nH = "nangoHost";
|
|
181
186
|
const _nT = "nextToken";
|
|
182
187
|
const _o = "output";
|
|
183
188
|
const _oWH = "openWorldHint";
|
|
@@ -185,6 +190,7 @@ const _oa = "oauth";
|
|
|
185
190
|
const _op = "operation";
|
|
186
191
|
const _opt = "optional";
|
|
187
192
|
const _p = "provider";
|
|
193
|
+
const _pCK = "providerConfigKey";
|
|
188
194
|
const _pS = "pageSize";
|
|
189
195
|
const _pa = "password";
|
|
190
196
|
const _po = "port";
|
|
@@ -196,6 +202,7 @@ const _rT = "replyTo";
|
|
|
196
202
|
const _re = "result";
|
|
197
203
|
const _rec = "recipient";
|
|
198
204
|
const _s = "smithy.ts.sdk.synthetic.wildix.wim.tools";
|
|
205
|
+
const _sT = "sessionToken";
|
|
199
206
|
const _sU = "serverUrl";
|
|
200
207
|
const _sc = "scopes";
|
|
201
208
|
const _sch = "schema";
|
|
@@ -350,6 +357,16 @@ exports.CreateConnectorOutput$ = [3, n1, _CCO,
|
|
|
350
357
|
[_con],
|
|
351
358
|
[() => exports.Connector$], 1
|
|
352
359
|
];
|
|
360
|
+
exports.CreateConnectorSessionInput$ = [3, n1, _CCSI,
|
|
361
|
+
0,
|
|
362
|
+
[_k, _v, _cI, _u],
|
|
363
|
+
[[0, 1], [0, 1], [0, { [_hQ]: _com }], 0], 2
|
|
364
|
+
];
|
|
365
|
+
exports.CreateConnectorSessionOutput$ = [3, n1, _CCSO,
|
|
366
|
+
0,
|
|
367
|
+
[_sT, _pCK, _nH],
|
|
368
|
+
[0, 0, 0], 3
|
|
369
|
+
];
|
|
353
370
|
exports.CreateToolInput$ = [3, n1, _CTI,
|
|
354
371
|
0,
|
|
355
372
|
[_n, _ca, _des, _h, _cI, _in],
|
|
@@ -691,6 +708,9 @@ exports.ToolWebhookAuth$ = [4, n1, _TWA,
|
|
|
691
708
|
exports.CreateConnector$ = [9, n1, _CC,
|
|
692
709
|
{ [_htt]: ["POST", "/v1/connectors", 201] }, () => exports.CreateConnectorInput$, () => exports.CreateConnectorOutput$
|
|
693
710
|
];
|
|
711
|
+
exports.CreateConnectorSession$ = [9, n1, _CCS,
|
|
712
|
+
{ [_htt]: ["POST", "/v1/connector-definitions/{key}/versions/{version}/session", 200] }, () => exports.CreateConnectorSessionInput$, () => exports.CreateConnectorSessionOutput$
|
|
713
|
+
];
|
|
694
714
|
exports.CreateTool$ = [9, n1, _CTr,
|
|
695
715
|
{ [_htt]: ["POST", "/v1/tools", 201] }, () => exports.CreateToolInput$, () => exports.CreateToolOutput$
|
|
696
716
|
];
|
package/dist-es/Tools.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/core/client";
|
|
2
2
|
import { CreateConnectorCommand, } from "./commands/CreateConnectorCommand";
|
|
3
|
+
import { CreateConnectorSessionCommand, } from "./commands/CreateConnectorSessionCommand";
|
|
3
4
|
import { CreateToolCommand, } from "./commands/CreateToolCommand";
|
|
4
5
|
import { DeleteConnectorCommand, } from "./commands/DeleteConnectorCommand";
|
|
5
6
|
import { DeleteToolCommand, } from "./commands/DeleteToolCommand";
|
|
@@ -21,6 +22,7 @@ import { paginateListConnectors } from "./pagination/ListConnectorsPaginator";
|
|
|
21
22
|
import { ToolsClient } from "./ToolsClient";
|
|
22
23
|
const commands = {
|
|
23
24
|
CreateConnectorCommand,
|
|
25
|
+
CreateConnectorSessionCommand,
|
|
24
26
|
CreateToolCommand,
|
|
25
27
|
DeleteConnectorCommand,
|
|
26
28
|
DeleteToolCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import { getEndpointPlugin } from "@smithy/core/endpoints";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { CreateConnectorSession$ } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class CreateConnectorSessionCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("Tools", "CreateConnectorSession", {})
|
|
13
|
+
.n("ToolsClient", "CreateConnectorSessionCommand")
|
|
14
|
+
.sc(CreateConnectorSession$)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -6,6 +6,9 @@ const _CC = "CreateConnector";
|
|
|
6
6
|
const _CCD = "ConnectorConfigurationDefinition";
|
|
7
7
|
const _CCI = "CreateConnectorInput";
|
|
8
8
|
const _CCO = "CreateConnectorOutput";
|
|
9
|
+
const _CCS = "CreateConnectorSession";
|
|
10
|
+
const _CCSI = "CreateConnectorSessionInput";
|
|
11
|
+
const _CCSO = "CreateConnectorSessionOutput";
|
|
9
12
|
const _CD = "ConnectorDefinition";
|
|
10
13
|
const _CDR = "ConnectorDefinitionRef";
|
|
11
14
|
const _CDo = "ConnectorDefinitions";
|
|
@@ -174,6 +177,7 @@ const _me = "metadata";
|
|
|
174
177
|
const _met = "method";
|
|
175
178
|
const _mo = "modes";
|
|
176
179
|
const _n = "name";
|
|
180
|
+
const _nH = "nangoHost";
|
|
177
181
|
const _nT = "nextToken";
|
|
178
182
|
const _o = "output";
|
|
179
183
|
const _oWH = "openWorldHint";
|
|
@@ -181,6 +185,7 @@ const _oa = "oauth";
|
|
|
181
185
|
const _op = "operation";
|
|
182
186
|
const _opt = "optional";
|
|
183
187
|
const _p = "provider";
|
|
188
|
+
const _pCK = "providerConfigKey";
|
|
184
189
|
const _pS = "pageSize";
|
|
185
190
|
const _pa = "password";
|
|
186
191
|
const _po = "port";
|
|
@@ -192,6 +197,7 @@ const _rT = "replyTo";
|
|
|
192
197
|
const _re = "result";
|
|
193
198
|
const _rec = "recipient";
|
|
194
199
|
const _s = "smithy.ts.sdk.synthetic.wildix.wim.tools";
|
|
200
|
+
const _sT = "sessionToken";
|
|
195
201
|
const _sU = "serverUrl";
|
|
196
202
|
const _sc = "scopes";
|
|
197
203
|
const _sch = "schema";
|
|
@@ -346,6 +352,16 @@ export var CreateConnectorOutput$ = [3, n1, _CCO,
|
|
|
346
352
|
[_con],
|
|
347
353
|
[() => Connector$], 1
|
|
348
354
|
];
|
|
355
|
+
export var CreateConnectorSessionInput$ = [3, n1, _CCSI,
|
|
356
|
+
0,
|
|
357
|
+
[_k, _v, _cI, _u],
|
|
358
|
+
[[0, 1], [0, 1], [0, { [_hQ]: _com }], 0], 2
|
|
359
|
+
];
|
|
360
|
+
export var CreateConnectorSessionOutput$ = [3, n1, _CCSO,
|
|
361
|
+
0,
|
|
362
|
+
[_sT, _pCK, _nH],
|
|
363
|
+
[0, 0, 0], 3
|
|
364
|
+
];
|
|
349
365
|
export var CreateToolInput$ = [3, n1, _CTI,
|
|
350
366
|
0,
|
|
351
367
|
[_n, _ca, _des, _h, _cI, _in],
|
|
@@ -687,6 +703,9 @@ export var ToolWebhookAuth$ = [4, n1, _TWA,
|
|
|
687
703
|
export var CreateConnector$ = [9, n1, _CC,
|
|
688
704
|
{ [_htt]: ["POST", "/v1/connectors", 201] }, () => CreateConnectorInput$, () => CreateConnectorOutput$
|
|
689
705
|
];
|
|
706
|
+
export var CreateConnectorSession$ = [9, n1, _CCS,
|
|
707
|
+
{ [_htt]: ["POST", "/v1/connector-definitions/{key}/versions/{version}/session", 200] }, () => CreateConnectorSessionInput$, () => CreateConnectorSessionOutput$
|
|
708
|
+
];
|
|
690
709
|
export var CreateTool$ = [9, n1, _CTr,
|
|
691
710
|
{ [_htt]: ["POST", "/v1/tools", 201] }, () => CreateToolInput$, () => CreateToolOutput$
|
|
692
711
|
];
|
package/dist-types/Tools.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
|
|
2
2
|
import { type CreateConnectorCommandInput, type CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
|
|
3
|
+
import { type CreateConnectorSessionCommandInput, type CreateConnectorSessionCommandOutput } from "./commands/CreateConnectorSessionCommand";
|
|
3
4
|
import { type CreateToolCommandInput, type CreateToolCommandOutput } from "./commands/CreateToolCommand";
|
|
4
5
|
import { type DeleteConnectorCommandInput, type DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
|
|
5
6
|
import { type DeleteToolCommandInput, type DeleteToolCommandOutput } from "./commands/DeleteToolCommand";
|
|
@@ -24,6 +25,12 @@ export interface Tools {
|
|
|
24
25
|
createConnector(args: CreateConnectorCommandInput, options?: __HttpHandlerOptions): Promise<CreateConnectorCommandOutput>;
|
|
25
26
|
createConnector(args: CreateConnectorCommandInput, cb: (err: any, data?: CreateConnectorCommandOutput) => void): void;
|
|
26
27
|
createConnector(args: CreateConnectorCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConnectorCommandOutput) => void): void;
|
|
28
|
+
/**
|
|
29
|
+
* @see {@link CreateConnectorSessionCommand}
|
|
30
|
+
*/
|
|
31
|
+
createConnectorSession(args: CreateConnectorSessionCommandInput, options?: __HttpHandlerOptions): Promise<CreateConnectorSessionCommandOutput>;
|
|
32
|
+
createConnectorSession(args: CreateConnectorSessionCommandInput, cb: (err: any, data?: CreateConnectorSessionCommandOutput) => void): void;
|
|
33
|
+
createConnectorSession(args: CreateConnectorSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateConnectorSessionCommandOutput) => void): void;
|
|
27
34
|
/**
|
|
28
35
|
* @see {@link CreateToolCommand}
|
|
29
36
|
*/
|
|
@@ -6,6 +6,7 @@ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/core/re
|
|
|
6
6
|
import type { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
7
7
|
import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
8
8
|
import type { CreateConnectorCommandInput, CreateConnectorCommandOutput } from "./commands/CreateConnectorCommand";
|
|
9
|
+
import type { CreateConnectorSessionCommandInput, CreateConnectorSessionCommandOutput } from "./commands/CreateConnectorSessionCommand";
|
|
9
10
|
import type { CreateToolCommandInput, CreateToolCommandOutput } from "./commands/CreateToolCommand";
|
|
10
11
|
import type { DeleteConnectorCommandInput, DeleteConnectorCommandOutput } from "./commands/DeleteConnectorCommand";
|
|
11
12
|
import type { DeleteToolCommandInput, DeleteToolCommandOutput } from "./commands/DeleteToolCommand";
|
|
@@ -28,11 +29,11 @@ export { __Client };
|
|
|
28
29
|
/**
|
|
29
30
|
* @public
|
|
30
31
|
*/
|
|
31
|
-
export type ServiceInputTypes = CreateConnectorCommandInput | CreateToolCommandInput | DeleteConnectorCommandInput | DeleteToolCommandInput | DescribeToolsCommandInput | DiscoverToolsCommandInput | ExecuteConnectorCommandInput | ExecuteToolCommandInput | GetConnectorCommandInput | GetConnectorDefinitionCommandInput | GetToolCommandInput | ListConnectorDefinitionsCommandInput | ListConnectorsCommandInput | ListToolsCommandInput | ResolveConnectorConfigurationCommandInput | UpdateConnectorCommandInput | UpdateToolCommandInput;
|
|
32
|
+
export type ServiceInputTypes = CreateConnectorCommandInput | CreateConnectorSessionCommandInput | CreateToolCommandInput | DeleteConnectorCommandInput | DeleteToolCommandInput | DescribeToolsCommandInput | DiscoverToolsCommandInput | ExecuteConnectorCommandInput | ExecuteToolCommandInput | GetConnectorCommandInput | GetConnectorDefinitionCommandInput | GetToolCommandInput | ListConnectorDefinitionsCommandInput | ListConnectorsCommandInput | ListToolsCommandInput | ResolveConnectorConfigurationCommandInput | UpdateConnectorCommandInput | UpdateToolCommandInput;
|
|
32
33
|
/**
|
|
33
34
|
* @public
|
|
34
35
|
*/
|
|
35
|
-
export type ServiceOutputTypes = CreateConnectorCommandOutput | CreateToolCommandOutput | DeleteConnectorCommandOutput | DeleteToolCommandOutput | DescribeToolsCommandOutput | DiscoverToolsCommandOutput | ExecuteConnectorCommandOutput | ExecuteToolCommandOutput | GetConnectorCommandOutput | GetConnectorDefinitionCommandOutput | GetToolCommandOutput | ListConnectorDefinitionsCommandOutput | ListConnectorsCommandOutput | ListToolsCommandOutput | ResolveConnectorConfigurationCommandOutput | UpdateConnectorCommandOutput | UpdateToolCommandOutput;
|
|
36
|
+
export type ServiceOutputTypes = CreateConnectorCommandOutput | CreateConnectorSessionCommandOutput | CreateToolCommandOutput | DeleteConnectorCommandOutput | DeleteToolCommandOutput | DescribeToolsCommandOutput | DiscoverToolsCommandOutput | ExecuteConnectorCommandOutput | ExecuteToolCommandOutput | GetConnectorCommandOutput | GetConnectorDefinitionCommandOutput | GetToolCommandOutput | ListConnectorDefinitionsCommandOutput | ListConnectorsCommandOutput | ListToolsCommandOutput | ResolveConnectorConfigurationCommandOutput | UpdateConnectorCommandOutput | UpdateToolCommandOutput;
|
|
36
37
|
/**
|
|
37
38
|
* @public
|
|
38
39
|
*/
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { CreateConnectorSessionInput, CreateConnectorSessionOutput } from "../models/models_0";
|
|
4
|
+
import type { ServiceInputTypes, ServiceOutputTypes, ToolsClientResolvedConfig } from "../ToolsClient";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link CreateConnectorSessionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface CreateConnectorSessionCommandInput extends CreateConnectorSessionInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link CreateConnectorSessionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateConnectorSessionCommandOutput extends CreateConnectorSessionOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const CreateConnectorSessionCommand_base: {
|
|
25
|
+
new (input: CreateConnectorSessionCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorSessionCommandInput, CreateConnectorSessionCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: CreateConnectorSessionCommandInput): import("@smithy/core/client").CommandImpl<CreateConnectorSessionCommandInput, CreateConnectorSessionCommandOutput, ToolsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Creates a Nango connect session for a connector definition. Management clients use
|
|
31
|
+
* the returned session to run the OAuth popup and obtain a connection id for shared
|
|
32
|
+
* authorization; no Connector or Integration resource is created here.
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { ToolsClient, CreateConnectorSessionCommand } from "@wildix/wim-tools-client"; // ES Modules import
|
|
37
|
+
* // const { ToolsClient, CreateConnectorSessionCommand } = require("@wildix/wim-tools-client"); // CommonJS import
|
|
38
|
+
* // import type { ToolsClientConfig } from "@wildix/wim-tools-client";
|
|
39
|
+
* const config = {}; // type is ToolsClientConfig
|
|
40
|
+
* const client = new ToolsClient(config);
|
|
41
|
+
* const input = { // CreateConnectorSessionInput
|
|
42
|
+
* companyId: "STRING_VALUE",
|
|
43
|
+
* key: "STRING_VALUE", // required
|
|
44
|
+
* version: "STRING_VALUE", // required
|
|
45
|
+
* user: "STRING_VALUE",
|
|
46
|
+
* };
|
|
47
|
+
* const command = new CreateConnectorSessionCommand(input);
|
|
48
|
+
* const response = await client.send(command);
|
|
49
|
+
* // { // CreateConnectorSessionOutput
|
|
50
|
+
* // sessionToken: "STRING_VALUE", // required
|
|
51
|
+
* // providerConfigKey: "STRING_VALUE", // required
|
|
52
|
+
* // nangoHost: "STRING_VALUE", // required
|
|
53
|
+
* // };
|
|
54
|
+
*
|
|
55
|
+
* ```
|
|
56
|
+
*
|
|
57
|
+
* @param CreateConnectorSessionCommandInput - {@link CreateConnectorSessionCommandInput}
|
|
58
|
+
* @returns {@link CreateConnectorSessionCommandOutput}
|
|
59
|
+
* @see {@link CreateConnectorSessionCommandInput} for command's `input` shape.
|
|
60
|
+
* @see {@link CreateConnectorSessionCommandOutput} for command's `response` shape.
|
|
61
|
+
* @see {@link ToolsClientResolvedConfig | config} for ToolsClient's `config` shape.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link ValidationException} (client fault)
|
|
64
|
+
*
|
|
65
|
+
* @throws {@link NotFoundException} (client fault)
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ForbiddenException} (client fault)
|
|
68
|
+
*
|
|
69
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
70
|
+
*
|
|
71
|
+
* @throws {@link AlreadyExistException} (client fault)
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link ToolExecutionException} (client fault)
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link ToolExecutionServerException} (server fault)
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ToolsServiceException}
|
|
78
|
+
* <p>Base exception class for all service exceptions from Tools service.</p>
|
|
79
|
+
*
|
|
80
|
+
*
|
|
81
|
+
* @public
|
|
82
|
+
*/
|
|
83
|
+
export declare class CreateConnectorSessionCommand extends CreateConnectorSessionCommand_base {
|
|
84
|
+
/** @internal type navigation helper, not in runtime. */
|
|
85
|
+
protected static __types: {
|
|
86
|
+
api: {
|
|
87
|
+
input: CreateConnectorSessionInput;
|
|
88
|
+
output: CreateConnectorSessionOutput;
|
|
89
|
+
};
|
|
90
|
+
sdk: {
|
|
91
|
+
input: CreateConnectorSessionCommandInput;
|
|
92
|
+
output: CreateConnectorSessionCommandOutput;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -427,6 +427,51 @@ export interface CreateConnectorOutput {
|
|
|
427
427
|
*/
|
|
428
428
|
connector: Connector;
|
|
429
429
|
}
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
*/
|
|
433
|
+
export interface CreateConnectorSessionInput {
|
|
434
|
+
/**
|
|
435
|
+
* The unique identifier of the tenant when a service token is used.
|
|
436
|
+
* @public
|
|
437
|
+
*/
|
|
438
|
+
companyId?: string | undefined;
|
|
439
|
+
/**
|
|
440
|
+
* Stable connector definition key.
|
|
441
|
+
* @public
|
|
442
|
+
*/
|
|
443
|
+
key: string;
|
|
444
|
+
/**
|
|
445
|
+
* Exact immutable definition version.
|
|
446
|
+
* @public
|
|
447
|
+
*/
|
|
448
|
+
version: string;
|
|
449
|
+
/**
|
|
450
|
+
* Executing user used to scope the Nango connect session.
|
|
451
|
+
* @public
|
|
452
|
+
*/
|
|
453
|
+
user?: string | undefined;
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* @public
|
|
457
|
+
*/
|
|
458
|
+
export interface CreateConnectorSessionOutput {
|
|
459
|
+
/**
|
|
460
|
+
* Nango connect session token used by the management client OAuth popup.
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
sessionToken: string;
|
|
464
|
+
/**
|
|
465
|
+
* Nango provider config key the connection is created against.
|
|
466
|
+
* @public
|
|
467
|
+
*/
|
|
468
|
+
providerConfigKey: string;
|
|
469
|
+
/**
|
|
470
|
+
* Nango host the management client OAuth popup must target.
|
|
471
|
+
* @public
|
|
472
|
+
*/
|
|
473
|
+
nangoHost: string;
|
|
474
|
+
}
|
|
430
475
|
/**
|
|
431
476
|
* @public
|
|
432
477
|
*/
|
|
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
-
ignoreConfiguredEndpointUrls?: boolean;
|
|
43
42
|
serviceConfiguredEndpoint?: never;
|
|
44
43
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
44
|
httpAuthSchemes: {
|
|
@@ -39,7 +39,6 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
39
39
|
tls?: boolean;
|
|
40
40
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
41
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
42
|
-
ignoreConfiguredEndpointUrls?: boolean;
|
|
43
42
|
serviceConfiguredEndpoint?: never;
|
|
44
43
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
45
44
|
httpAuthSchemes: {
|
|
@@ -38,7 +38,6 @@ export declare const getRuntimeConfig: (config: ToolsClientConfig) => {
|
|
|
38
38
|
tls?: boolean;
|
|
39
39
|
useDualstackEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
40
40
|
useFipsEndpoint?: boolean | import("@smithy/types").Provider<boolean | undefined>;
|
|
41
|
-
ignoreConfiguredEndpointUrls?: boolean;
|
|
42
41
|
serviceConfiguredEndpoint?: never;
|
|
43
42
|
authSchemePreference?: string[] | import("@smithy/types").Provider<string[]>;
|
|
44
43
|
httpAuthSchemes: {
|
|
@@ -27,6 +27,8 @@ export declare var ConnectorToolAnnotations$: StaticStructureSchema;
|
|
|
27
27
|
export declare var ConnectorUserAuthorization$: StaticStructureSchema;
|
|
28
28
|
export declare var CreateConnectorInput$: StaticStructureSchema;
|
|
29
29
|
export declare var CreateConnectorOutput$: StaticStructureSchema;
|
|
30
|
+
export declare var CreateConnectorSessionInput$: StaticStructureSchema;
|
|
31
|
+
export declare var CreateConnectorSessionOutput$: StaticStructureSchema;
|
|
30
32
|
export declare var CreateToolInput$: StaticStructureSchema;
|
|
31
33
|
export declare var CreateToolOutput$: StaticStructureSchema;
|
|
32
34
|
export declare var DeleteConnectorInput$: StaticStructureSchema;
|
|
@@ -89,6 +91,7 @@ export declare var ToolHandler$: StaticUnionSchema;
|
|
|
89
91
|
export declare var ToolMcpAuthorization$: StaticUnionSchema;
|
|
90
92
|
export declare var ToolWebhookAuth$: StaticUnionSchema;
|
|
91
93
|
export declare var CreateConnector$: StaticOperationSchema;
|
|
94
|
+
export declare var CreateConnectorSession$: StaticOperationSchema;
|
|
92
95
|
export declare var CreateTool$: StaticOperationSchema;
|
|
93
96
|
export declare var DeleteConnector$: StaticOperationSchema;
|
|
94
97
|
export declare var DeleteTool$: StaticOperationSchema;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wildix/wim-tools-client",
|
|
3
3
|
"description": "@wildix/wim-tools-client client",
|
|
4
|
-
"version": "4.0.
|
|
4
|
+
"version": "4.0.5",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|