@wildix/wim-tools-client 0.0.14 → 0.0.17

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.
@@ -1,7 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolMcpTransport = exports.ToolAuthorizationType = exports.ToolEmailHandler = exports.ToolChatHandler = exports.ToolStringValue = exports.AlreadyExistException = exports.ValidationException = exports.NotFoundException = void 0;
3
+ exports.ToolExecutionException = exports.ToolVariableType = exports.ToolHandler = exports.ToolMcpTransport = exports.ToolAuthorizationType = exports.ToolEmailHandler = exports.ToolChatHandler = exports.ToolStringValue = exports.ValidationException = exports.NotFoundException = exports.AlreadyExistException = void 0;
4
4
  const ToolsServiceException_1 = require("./ToolsServiceException");
5
+ class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
6
+ name = "AlreadyExistException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AlreadyExistException",
11
+ $fault: "client",
12
+ ...opts
13
+ });
14
+ Object.setPrototypeOf(this, AlreadyExistException.prototype);
15
+ }
16
+ }
17
+ exports.AlreadyExistException = AlreadyExistException;
5
18
  class NotFoundException extends ToolsServiceException_1.ToolsServiceException {
6
19
  name = "NotFoundException";
7
20
  $fault = "client";
@@ -28,19 +41,6 @@ class ValidationException extends ToolsServiceException_1.ToolsServiceException
28
41
  }
29
42
  }
30
43
  exports.ValidationException = ValidationException;
31
- class AlreadyExistException extends ToolsServiceException_1.ToolsServiceException {
32
- name = "AlreadyExistException";
33
- $fault = "client";
34
- constructor(opts) {
35
- super({
36
- name: "AlreadyExistException",
37
- $fault: "client",
38
- ...opts
39
- });
40
- Object.setPrototypeOf(this, AlreadyExistException.prototype);
41
- }
42
- }
43
- exports.AlreadyExistException = AlreadyExistException;
44
44
  var ToolStringValue;
45
45
  (function (ToolStringValue) {
46
46
  ToolStringValue.visit = (value, visitor) => {
@@ -79,6 +79,8 @@ const se_ExecuteToolCommand = async (input, context) => {
79
79
  body = JSON.stringify((0, smithy_client_1.take)(input, {
80
80
  'id': [],
81
81
  'input': _ => se_Document(_, context),
82
+ 'service': [],
83
+ 'user': [],
82
84
  }));
83
85
  b.m("POST")
84
86
  .h(headers)
@@ -1,38 +1,38 @@
1
1
  import { ToolsServiceException as __BaseException } from "./ToolsServiceException";
2
- export class NotFoundException extends __BaseException {
3
- name = "NotFoundException";
2
+ export class AlreadyExistException extends __BaseException {
3
+ name = "AlreadyExistException";
4
4
  $fault = "client";
5
5
  constructor(opts) {
6
6
  super({
7
- name: "NotFoundException",
7
+ name: "AlreadyExistException",
8
8
  $fault: "client",
9
9
  ...opts
10
10
  });
11
- Object.setPrototypeOf(this, NotFoundException.prototype);
11
+ Object.setPrototypeOf(this, AlreadyExistException.prototype);
12
12
  }
13
13
  }
14
- export class ValidationException extends __BaseException {
15
- name = "ValidationException";
14
+ export class NotFoundException extends __BaseException {
15
+ name = "NotFoundException";
16
16
  $fault = "client";
17
17
  constructor(opts) {
18
18
  super({
19
- name: "ValidationException",
19
+ name: "NotFoundException",
20
20
  $fault: "client",
21
21
  ...opts
22
22
  });
23
- Object.setPrototypeOf(this, ValidationException.prototype);
23
+ Object.setPrototypeOf(this, NotFoundException.prototype);
24
24
  }
25
25
  }
26
- export class AlreadyExistException extends __BaseException {
27
- name = "AlreadyExistException";
26
+ export class ValidationException extends __BaseException {
27
+ name = "ValidationException";
28
28
  $fault = "client";
29
29
  constructor(opts) {
30
30
  super({
31
- name: "AlreadyExistException",
31
+ name: "ValidationException",
32
32
  $fault: "client",
33
33
  ...opts
34
34
  });
35
- Object.setPrototypeOf(this, AlreadyExistException.prototype);
35
+ Object.setPrototypeOf(this, ValidationException.prototype);
36
36
  }
37
37
  }
38
38
  export var ToolStringValue;
@@ -73,6 +73,8 @@ export const se_ExecuteToolCommand = async (input, context) => {
73
73
  body = JSON.stringify(take(input, {
74
74
  'id': [],
75
75
  'input': _ => se_Document(_, context),
76
+ 'service': [],
77
+ 'user': [],
76
78
  }));
77
79
  b.m("POST")
78
80
  .h(headers)
@@ -38,7 +38,7 @@ declare const CreateToolCommand_base: {
38
38
  * const input = { // CreateToolInput
39
39
  * company: "STRING_VALUE",
40
40
  * name: "STRING_VALUE", // required
41
- * category: "STRING_VALUE",
41
+ * category: "STRING_VALUE", // required
42
42
  * description: "STRING_VALUE",
43
43
  * input: { // ToolInput
44
44
  * variables: [ // ToolVariableList // required
@@ -144,7 +144,7 @@ declare const CreateToolCommand_base: {
144
144
  * // id: "STRING_VALUE", // required
145
145
  * // company: "STRING_VALUE", // required
146
146
  * // name: "STRING_VALUE", // required
147
- * // category: "STRING_VALUE",
147
+ * // category: "STRING_VALUE", // required
148
148
  * // description: "STRING_VALUE",
149
149
  * // input: { // ToolInput
150
150
  * // variables: [ // ToolVariableList // required
@@ -39,6 +39,8 @@ declare const ExecuteToolCommand_base: {
39
39
  * company: "STRING_VALUE",
40
40
  * id: "STRING_VALUE", // required
41
41
  * input: "DOCUMENT_VALUE", // required
42
+ * service: "STRING_VALUE",
43
+ * user: "STRING_VALUE",
42
44
  * };
43
45
  * const command = new ExecuteToolCommand(input);
44
46
  * const response = await client.send(command);
@@ -46,7 +46,7 @@ declare const GetToolCommand_base: {
46
46
  * // id: "STRING_VALUE", // required
47
47
  * // company: "STRING_VALUE", // required
48
48
  * // name: "STRING_VALUE", // required
49
- * // category: "STRING_VALUE",
49
+ * // category: "STRING_VALUE", // required
50
50
  * // description: "STRING_VALUE",
51
51
  * // input: { // ToolInput
52
52
  * // variables: [ // ToolVariableList // required
@@ -46,7 +46,7 @@ declare const ListToolsCommand_base: {
46
46
  * // id: "STRING_VALUE", // required
47
47
  * // company: "STRING_VALUE", // required
48
48
  * // name: "STRING_VALUE", // required
49
- * // category: "STRING_VALUE",
49
+ * // category: "STRING_VALUE", // required
50
50
  * // description: "STRING_VALUE",
51
51
  * // input: { // ToolInput
52
52
  * // variables: [ // ToolVariableList // required
@@ -39,7 +39,7 @@ declare const UpdateToolCommand_base: {
39
39
  * company: "STRING_VALUE",
40
40
  * toolId: "STRING_VALUE", // required
41
41
  * name: "STRING_VALUE", // required
42
- * category: "STRING_VALUE",
42
+ * category: "STRING_VALUE", // required
43
43
  * description: "STRING_VALUE",
44
44
  * input: { // ToolInput
45
45
  * variables: [ // ToolVariableList // required
@@ -145,7 +145,7 @@ declare const UpdateToolCommand_base: {
145
145
  * // id: "STRING_VALUE", // required
146
146
  * // company: "STRING_VALUE", // required
147
147
  * // name: "STRING_VALUE", // required
148
- * // category: "STRING_VALUE",
148
+ * // category: "STRING_VALUE", // required
149
149
  * // description: "STRING_VALUE",
150
150
  * // input: { // ToolInput
151
151
  * // variables: [ // ToolVariableList // required
@@ -4,35 +4,35 @@ import { DocumentType as __DocumentType } from "@smithy/types";
4
4
  /**
5
5
  * @public
6
6
  */
7
- export declare class NotFoundException extends __BaseException {
8
- readonly name: "NotFoundException";
7
+ export declare class AlreadyExistException extends __BaseException {
8
+ readonly name: "AlreadyExistException";
9
9
  readonly $fault: "client";
10
10
  /**
11
11
  * @internal
12
12
  */
13
- constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
13
+ constructor(opts: __ExceptionOptionType<AlreadyExistException, __BaseException>);
14
14
  }
15
15
  /**
16
16
  * @public
17
17
  */
18
- export declare class ValidationException extends __BaseException {
19
- readonly name: "ValidationException";
18
+ export declare class NotFoundException extends __BaseException {
19
+ readonly name: "NotFoundException";
20
20
  readonly $fault: "client";
21
21
  /**
22
22
  * @internal
23
23
  */
24
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
24
+ constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
25
25
  }
26
26
  /**
27
27
  * @public
28
28
  */
29
- export declare class AlreadyExistException extends __BaseException {
30
- readonly name: "AlreadyExistException";
29
+ export declare class ValidationException extends __BaseException {
30
+ readonly name: "ValidationException";
31
31
  readonly $fault: "client";
32
32
  /**
33
33
  * @internal
34
34
  */
35
- constructor(opts: __ExceptionOptionType<AlreadyExistException, __BaseException>);
35
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
36
36
  }
37
37
  /**
38
38
  * @public
@@ -377,7 +377,7 @@ export interface ToolInput {
377
377
  export interface CreateToolInput {
378
378
  company?: string | undefined;
379
379
  name: string;
380
- category?: string | undefined;
380
+ category: string;
381
381
  description?: string | undefined;
382
382
  input: ToolInput;
383
383
  handler: ToolHandler;
@@ -389,7 +389,7 @@ export interface Tool {
389
389
  id: string;
390
390
  company: string;
391
391
  name: string;
392
- category?: string | undefined;
392
+ category: string;
393
393
  description?: string | undefined;
394
394
  input: ToolInput;
395
395
  handler: ToolHandler;
@@ -453,6 +453,8 @@ export interface ExecuteToolInput {
453
453
  company?: string | undefined;
454
454
  id: string;
455
455
  input: __DocumentType;
456
+ service?: string | undefined;
457
+ user?: string | undefined;
456
458
  }
457
459
  /**
458
460
  * @public
@@ -506,7 +508,7 @@ export interface UpdateToolInput {
506
508
  company?: string | undefined;
507
509
  toolId: string;
508
510
  name: string;
509
- category?: string | undefined;
511
+ category: string;
510
512
  description?: string | undefined;
511
513
  input: ToolInput;
512
514
  handler: ToolHandler;
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": "0.0.14",
4
+ "version": "0.0.17",
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",