wuying-agentbay-sdk 0.1.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.
Files changed (170) hide show
  1. package/README.md +122 -0
  2. package/dist/src/adb/adb.d.ts +20 -0
  3. package/dist/src/adb/adb.js +57 -0
  4. package/dist/src/adb/index.d.ts +1 -0
  5. package/dist/src/adb/index.js +17 -0
  6. package/dist/src/agent-bay.d.ts +68 -0
  7. package/dist/src/agent-bay.js +213 -0
  8. package/dist/src/api/client.d.ts +191 -0
  9. package/dist/src/api/client.js +629 -0
  10. package/dist/src/api/index.d.ts +4 -0
  11. package/dist/src/api/index.js +26 -0
  12. package/dist/src/api/models/CallMcpToolRequest.d.ts +21 -0
  13. package/dist/src/api/models/CallMcpToolRequest.js +71 -0
  14. package/dist/src/api/models/CallMcpToolResponse.d.ts +19 -0
  15. package/dist/src/api/models/CallMcpToolResponse.js +68 -0
  16. package/dist/src/api/models/CallMcpToolResponseBody.d.ts +19 -0
  17. package/dist/src/api/models/CallMcpToolResponseBody.js +67 -0
  18. package/dist/src/api/models/CreateMcpSessionRequest.d.ts +19 -0
  19. package/dist/src/api/models/CreateMcpSessionRequest.js +67 -0
  20. package/dist/src/api/models/CreateMcpSessionResponse.d.ts +19 -0
  21. package/dist/src/api/models/CreateMcpSessionResponse.js +68 -0
  22. package/dist/src/api/models/CreateMcpSessionResponseBody.d.ts +20 -0
  23. package/dist/src/api/models/CreateMcpSessionResponseBody.js +71 -0
  24. package/dist/src/api/models/CreateMcpSessionResponseBodyData.d.ts +19 -0
  25. package/dist/src/api/models/CreateMcpSessionResponseBodyData.js +67 -0
  26. package/dist/src/api/models/DeleteContextRequest.d.ts +15 -0
  27. package/dist/src/api/models/DeleteContextRequest.js +59 -0
  28. package/dist/src/api/models/DeleteContextResponse.d.ts +19 -0
  29. package/dist/src/api/models/DeleteContextResponse.js +68 -0
  30. package/dist/src/api/models/DeleteContextResponseBody.d.ts +18 -0
  31. package/dist/src/api/models/DeleteContextResponseBody.js +65 -0
  32. package/dist/src/api/models/GetContextRequest.d.ts +16 -0
  33. package/dist/src/api/models/GetContextRequest.js +61 -0
  34. package/dist/src/api/models/GetContextResponse.d.ts +19 -0
  35. package/dist/src/api/models/GetContextResponse.js +68 -0
  36. package/dist/src/api/models/GetContextResponseBody.d.ts +20 -0
  37. package/dist/src/api/models/GetContextResponseBody.js +71 -0
  38. package/dist/src/api/models/GetContextResponseBodyData.d.ts +19 -0
  39. package/dist/src/api/models/GetContextResponseBodyData.js +67 -0
  40. package/dist/src/api/models/GetLabelRequest.d.ts +17 -0
  41. package/dist/src/api/models/GetLabelRequest.js +63 -0
  42. package/dist/src/api/models/GetLabelResponse.d.ts +19 -0
  43. package/dist/src/api/models/GetLabelResponse.js +68 -0
  44. package/dist/src/api/models/GetLabelResponseBody.d.ts +23 -0
  45. package/dist/src/api/models/GetLabelResponseBody.js +77 -0
  46. package/dist/src/api/models/GetLabelResponseBodyData.d.ts +14 -0
  47. package/dist/src/api/models/GetLabelResponseBodyData.js +57 -0
  48. package/dist/src/api/models/GetLinkRequest.d.ts +15 -0
  49. package/dist/src/api/models/GetLinkRequest.js +59 -0
  50. package/dist/src/api/models/GetLinkResponse.d.ts +19 -0
  51. package/dist/src/api/models/GetLinkResponse.js +68 -0
  52. package/dist/src/api/models/GetLinkResponseBody.d.ts +19 -0
  53. package/dist/src/api/models/GetLinkResponseBody.js +67 -0
  54. package/dist/src/api/models/GetMcpResourceRequest.d.ts +15 -0
  55. package/dist/src/api/models/GetMcpResourceRequest.js +59 -0
  56. package/dist/src/api/models/GetMcpResourceResponse.d.ts +19 -0
  57. package/dist/src/api/models/GetMcpResourceResponse.js +68 -0
  58. package/dist/src/api/models/GetMcpResourceResponseBody.d.ts +20 -0
  59. package/dist/src/api/models/GetMcpResourceResponseBody.js +71 -0
  60. package/dist/src/api/models/GetMcpResourceResponseBodyData.d.ts +17 -0
  61. package/dist/src/api/models/GetMcpResourceResponseBodyData.js +65 -0
  62. package/dist/src/api/models/GetMcpResourceResponseBodyDataDesktopInfo.d.ts +18 -0
  63. package/dist/src/api/models/GetMcpResourceResponseBodyDataDesktopInfo.js +65 -0
  64. package/dist/src/api/models/ListContextsRequest.d.ts +16 -0
  65. package/dist/src/api/models/ListContextsRequest.js +61 -0
  66. package/dist/src/api/models/ListContextsResponse.d.ts +19 -0
  67. package/dist/src/api/models/ListContextsResponse.js +68 -0
  68. package/dist/src/api/models/ListContextsResponseBody.d.ts +23 -0
  69. package/dist/src/api/models/ListContextsResponseBody.js +77 -0
  70. package/dist/src/api/models/ListContextsResponseBodyData.d.ts +19 -0
  71. package/dist/src/api/models/ListContextsResponseBodyData.js +67 -0
  72. package/dist/src/api/models/ListSessionRequest.d.ts +17 -0
  73. package/dist/src/api/models/ListSessionRequest.js +63 -0
  74. package/dist/src/api/models/ListSessionResponse.d.ts +19 -0
  75. package/dist/src/api/models/ListSessionResponse.js +68 -0
  76. package/dist/src/api/models/ListSessionResponseBody.d.ts +23 -0
  77. package/dist/src/api/models/ListSessionResponseBody.js +77 -0
  78. package/dist/src/api/models/ListSessionResponseBodyData.d.ts +14 -0
  79. package/dist/src/api/models/ListSessionResponseBodyData.js +57 -0
  80. package/dist/src/api/models/ModifyContextRequest.d.ts +16 -0
  81. package/dist/src/api/models/ModifyContextRequest.js +61 -0
  82. package/dist/src/api/models/ModifyContextResponse.d.ts +19 -0
  83. package/dist/src/api/models/ModifyContextResponse.js +68 -0
  84. package/dist/src/api/models/ModifyContextResponseBody.d.ts +18 -0
  85. package/dist/src/api/models/ModifyContextResponseBody.js +65 -0
  86. package/dist/src/api/models/ReleaseMcpSessionRequest.d.ts +15 -0
  87. package/dist/src/api/models/ReleaseMcpSessionRequest.js +59 -0
  88. package/dist/src/api/models/ReleaseMcpSessionResponse.d.ts +19 -0
  89. package/dist/src/api/models/ReleaseMcpSessionResponse.js +68 -0
  90. package/dist/src/api/models/ReleaseMcpSessionResponseBody.d.ts +18 -0
  91. package/dist/src/api/models/ReleaseMcpSessionResponseBody.js +65 -0
  92. package/dist/src/api/models/SetLabelRequest.d.ts +16 -0
  93. package/dist/src/api/models/SetLabelRequest.js +61 -0
  94. package/dist/src/api/models/SetLabelResponse.d.ts +19 -0
  95. package/dist/src/api/models/SetLabelResponse.js +68 -0
  96. package/dist/src/api/models/SetLabelResponseBody.d.ts +18 -0
  97. package/dist/src/api/models/SetLabelResponseBody.js +65 -0
  98. package/dist/src/api/models/model.d.ts +43 -0
  99. package/dist/src/api/models/model.js +89 -0
  100. package/dist/src/application/application.d.ts +88 -0
  101. package/dist/src/application/application.js +172 -0
  102. package/dist/src/application/index.d.ts +1 -0
  103. package/dist/src/application/index.js +17 -0
  104. package/dist/src/command/command.d.ts +43 -0
  105. package/dist/src/command/command.js +120 -0
  106. package/dist/src/command/index.d.ts +1 -0
  107. package/dist/src/command/index.js +17 -0
  108. package/dist/src/config.d.ts +15 -0
  109. package/dist/src/config.js +114 -0
  110. package/dist/src/context.d.ts +87 -0
  111. package/dist/src/context.js +208 -0
  112. package/dist/src/exceptions.d.ts +30 -0
  113. package/dist/src/exceptions.js +58 -0
  114. package/dist/src/filesystem/filesystem.d.ts +109 -0
  115. package/dist/src/filesystem/filesystem.js +245 -0
  116. package/dist/src/filesystem/index.d.ts +1 -0
  117. package/dist/src/filesystem/index.js +17 -0
  118. package/dist/src/index.d.ts +10 -0
  119. package/dist/src/index.js +32 -0
  120. package/dist/src/oss/index.d.ts +1 -0
  121. package/dist/src/oss/index.js +5 -0
  122. package/dist/src/oss/oss.d.ts +80 -0
  123. package/dist/src/oss/oss.js +233 -0
  124. package/dist/src/session.d.ts +99 -0
  125. package/dist/src/session.js +226 -0
  126. package/dist/src/ui/index.d.ts +1 -0
  127. package/dist/src/ui/index.js +17 -0
  128. package/dist/src/ui/ui.d.ts +95 -0
  129. package/dist/src/ui/ui.js +206 -0
  130. package/dist/src/utils/logger.d.ts +15 -0
  131. package/dist/src/utils/logger.js +48 -0
  132. package/dist/src/window/index.d.ts +1 -0
  133. package/dist/src/window/index.js +17 -0
  134. package/dist/src/window/window.d.ts +109 -0
  135. package/dist/src/window/window.js +220 -0
  136. package/dist/tests/agent-bay.test.d.ts +1 -0
  137. package/dist/tests/agent-bay.test.js +366 -0
  138. package/dist/tests/integration/context-persistence.test.d.ts +1 -0
  139. package/dist/tests/integration/context-persistence.test.js +226 -0
  140. package/dist/tests/integration/context-session.test.d.ts +1 -0
  141. package/dist/tests/integration/context-session.test.js +223 -0
  142. package/dist/tests/integration/window-operations.test.d.ts +1 -0
  143. package/dist/tests/integration/window-operations.test.js +228 -0
  144. package/dist/tests/unit/adb.test.d.ts +1 -0
  145. package/dist/tests/unit/adb.test.js +60 -0
  146. package/dist/tests/unit/agent-bay.test.d.ts +1 -0
  147. package/dist/tests/unit/agent-bay.test.js +182 -0
  148. package/dist/tests/unit/application.test.d.ts +1 -0
  149. package/dist/tests/unit/application.test.js +260 -0
  150. package/dist/tests/unit/command.test.d.ts +1 -0
  151. package/dist/tests/unit/command.test.js +252 -0
  152. package/dist/tests/unit/context.test.d.ts +1 -0
  153. package/dist/tests/unit/context.test.js +199 -0
  154. package/dist/tests/unit/filesystem.test.d.ts +1 -0
  155. package/dist/tests/unit/filesystem.test.js +493 -0
  156. package/dist/tests/unit/oss.test.d.ts +1 -0
  157. package/dist/tests/unit/oss.test.js +243 -0
  158. package/dist/tests/unit/session-labels.test.d.ts +1 -0
  159. package/dist/tests/unit/session-labels.test.js +138 -0
  160. package/dist/tests/unit/session-params.test.d.ts +1 -0
  161. package/dist/tests/unit/session-params.test.js +78 -0
  162. package/dist/tests/unit/session.test.d.ts +1 -0
  163. package/dist/tests/unit/session.test.js +204 -0
  164. package/dist/tests/unit/ui.test.d.ts +1 -0
  165. package/dist/tests/unit/ui.test.js +158 -0
  166. package/dist/tests/unit/window.test.d.ts +1 -0
  167. package/dist/tests/unit/window.test.js +331 -0
  168. package/dist/tests/utils/test-helpers.d.ts +35 -0
  169. package/dist/tests/utils/test-helpers.js +79 -0
  170. package/package.json +50 -0
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ListSessionResponseBody } from "./ListSessionResponseBody";
3
+ export declare class ListSessionResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ListSessionResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListSessionResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ListSessionResponseBody_1 = require("./ListSessionResponseBody");
40
+ class ListSessionResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: ListSessionResponseBody_1.ListSessionResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.ListSessionResponse = ListSessionResponse;
@@ -0,0 +1,23 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ListSessionResponseBodyData } from "./ListSessionResponseBodyData";
3
+ export declare class ListSessionResponseBody extends $dara.Model {
4
+ code?: string;
5
+ data?: ListSessionResponseBodyData[];
6
+ httpStatusCode?: number;
7
+ maxResults?: number;
8
+ message?: string;
9
+ nextToken?: string;
10
+ requestId?: string;
11
+ success?: boolean;
12
+ totalCount?: number;
13
+ static names(): {
14
+ [key: string]: string;
15
+ };
16
+ static types(): {
17
+ [key: string]: any;
18
+ };
19
+ validate(): void;
20
+ constructor(map?: {
21
+ [key: string]: any;
22
+ });
23
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListSessionResponseBody = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ListSessionResponseBodyData_1 = require("./ListSessionResponseBodyData");
40
+ class ListSessionResponseBody extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ code: 'Code',
44
+ data: 'Data',
45
+ httpStatusCode: 'HttpStatusCode',
46
+ maxResults: 'MaxResults',
47
+ message: 'Message',
48
+ nextToken: 'NextToken',
49
+ requestId: 'RequestId',
50
+ success: 'Success',
51
+ totalCount: 'TotalCount',
52
+ };
53
+ }
54
+ static types() {
55
+ return {
56
+ code: 'string',
57
+ data: { 'type': 'array', 'itemType': ListSessionResponseBodyData_1.ListSessionResponseBodyData },
58
+ httpStatusCode: 'number',
59
+ maxResults: 'number',
60
+ message: 'string',
61
+ nextToken: 'string',
62
+ requestId: 'string',
63
+ success: 'boolean',
64
+ totalCount: 'number',
65
+ };
66
+ }
67
+ validate() {
68
+ if (Array.isArray(this.data)) {
69
+ $dara.Model.validateArray(this.data);
70
+ }
71
+ super.validate();
72
+ }
73
+ constructor(map) {
74
+ super(map);
75
+ }
76
+ }
77
+ exports.ListSessionResponseBody = ListSessionResponseBody;
@@ -0,0 +1,14 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ListSessionResponseBodyData extends $dara.Model {
3
+ sessionId?: string;
4
+ static names(): {
5
+ [key: string]: string;
6
+ };
7
+ static types(): {
8
+ [key: string]: any;
9
+ };
10
+ validate(): void;
11
+ constructor(map?: {
12
+ [key: string]: any;
13
+ });
14
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ListSessionResponseBodyData = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ListSessionResponseBodyData extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ sessionId: 'SessionId',
43
+ };
44
+ }
45
+ static types() {
46
+ return {
47
+ sessionId: 'string',
48
+ };
49
+ }
50
+ validate() {
51
+ super.validate();
52
+ }
53
+ constructor(map) {
54
+ super(map);
55
+ }
56
+ }
57
+ exports.ListSessionResponseBodyData = ListSessionResponseBodyData;
@@ -0,0 +1,16 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ModifyContextRequest extends $dara.Model {
3
+ authorization?: string;
4
+ id?: string;
5
+ name?: string;
6
+ static names(): {
7
+ [key: string]: string;
8
+ };
9
+ static types(): {
10
+ [key: string]: any;
11
+ };
12
+ validate(): void;
13
+ constructor(map?: {
14
+ [key: string]: any;
15
+ });
16
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ModifyContextRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ModifyContextRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ authorization: 'Authorization',
43
+ id: 'Id',
44
+ name: 'Name',
45
+ };
46
+ }
47
+ static types() {
48
+ return {
49
+ authorization: 'string',
50
+ id: 'string',
51
+ name: 'string',
52
+ };
53
+ }
54
+ validate() {
55
+ super.validate();
56
+ }
57
+ constructor(map) {
58
+ super(map);
59
+ }
60
+ }
61
+ exports.ModifyContextRequest = ModifyContextRequest;
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ModifyContextResponseBody } from "./ModifyContextResponseBody";
3
+ export declare class ModifyContextResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ModifyContextResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ModifyContextResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ModifyContextResponseBody_1 = require("./ModifyContextResponseBody");
40
+ class ModifyContextResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: ModifyContextResponseBody_1.ModifyContextResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.ModifyContextResponse = ModifyContextResponse;
@@ -0,0 +1,18 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ModifyContextResponseBody extends $dara.Model {
3
+ code?: string;
4
+ httpStatusCode?: number;
5
+ message?: string;
6
+ requestId?: string;
7
+ success?: boolean;
8
+ static names(): {
9
+ [key: string]: string;
10
+ };
11
+ static types(): {
12
+ [key: string]: any;
13
+ };
14
+ validate(): void;
15
+ constructor(map?: {
16
+ [key: string]: any;
17
+ });
18
+ }
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ModifyContextResponseBody = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ModifyContextResponseBody extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ code: 'Code',
43
+ httpStatusCode: 'HttpStatusCode',
44
+ message: 'Message',
45
+ requestId: 'RequestId',
46
+ success: 'Success',
47
+ };
48
+ }
49
+ static types() {
50
+ return {
51
+ code: 'string',
52
+ httpStatusCode: 'number',
53
+ message: 'string',
54
+ requestId: 'string',
55
+ success: 'boolean',
56
+ };
57
+ }
58
+ validate() {
59
+ super.validate();
60
+ }
61
+ constructor(map) {
62
+ super(map);
63
+ }
64
+ }
65
+ exports.ModifyContextResponseBody = ModifyContextResponseBody;
@@ -0,0 +1,15 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ export declare class ReleaseMcpSessionRequest extends $dara.Model {
3
+ authorization?: string;
4
+ sessionId?: string;
5
+ static names(): {
6
+ [key: string]: string;
7
+ };
8
+ static types(): {
9
+ [key: string]: any;
10
+ };
11
+ validate(): void;
12
+ constructor(map?: {
13
+ [key: string]: any;
14
+ });
15
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ReleaseMcpSessionRequest = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ class ReleaseMcpSessionRequest extends $dara.Model {
40
+ static names() {
41
+ return {
42
+ authorization: 'Authorization',
43
+ sessionId: 'SessionId',
44
+ };
45
+ }
46
+ static types() {
47
+ return {
48
+ authorization: 'string',
49
+ sessionId: 'string',
50
+ };
51
+ }
52
+ validate() {
53
+ super.validate();
54
+ }
55
+ constructor(map) {
56
+ super(map);
57
+ }
58
+ }
59
+ exports.ReleaseMcpSessionRequest = ReleaseMcpSessionRequest;
@@ -0,0 +1,19 @@
1
+ import * as $dara from '@darabonba/typescript';
2
+ import { ReleaseMcpSessionResponseBody } from "./ReleaseMcpSessionResponseBody";
3
+ export declare class ReleaseMcpSessionResponse extends $dara.Model {
4
+ headers?: {
5
+ [key: string]: string;
6
+ };
7
+ statusCode?: number;
8
+ body?: ReleaseMcpSessionResponseBody;
9
+ static names(): {
10
+ [key: string]: string;
11
+ };
12
+ static types(): {
13
+ [key: string]: any;
14
+ };
15
+ validate(): void;
16
+ constructor(map?: {
17
+ [key: string]: any;
18
+ });
19
+ }
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.ReleaseMcpSessionResponse = void 0;
37
+ // This file is auto-generated, don't edit it
38
+ const $dara = __importStar(require("@darabonba/typescript"));
39
+ const ReleaseMcpSessionResponseBody_1 = require("./ReleaseMcpSessionResponseBody");
40
+ class ReleaseMcpSessionResponse extends $dara.Model {
41
+ static names() {
42
+ return {
43
+ headers: 'headers',
44
+ statusCode: 'statusCode',
45
+ body: 'body',
46
+ };
47
+ }
48
+ static types() {
49
+ return {
50
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
51
+ statusCode: 'number',
52
+ body: ReleaseMcpSessionResponseBody_1.ReleaseMcpSessionResponseBody,
53
+ };
54
+ }
55
+ validate() {
56
+ if (this.headers) {
57
+ $dara.Model.validateMap(this.headers);
58
+ }
59
+ if (this.body && typeof this.body.validate === 'function') {
60
+ this.body.validate();
61
+ }
62
+ super.validate();
63
+ }
64
+ constructor(map) {
65
+ super(map);
66
+ }
67
+ }
68
+ exports.ReleaseMcpSessionResponse = ReleaseMcpSessionResponse;