wuying-agentbay-sdk 0.1.0 → 0.4.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 (176) hide show
  1. package/README.md +124 -61
  2. package/dist/index.cjs +6621 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.d.mts +2633 -0
  5. package/dist/index.d.ts +2633 -0
  6. package/dist/index.mjs +6637 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +84 -48
  9. package/dist/src/adb/adb.d.ts +0 -20
  10. package/dist/src/adb/adb.js +0 -57
  11. package/dist/src/adb/index.d.ts +0 -1
  12. package/dist/src/adb/index.js +0 -17
  13. package/dist/src/agent-bay.d.ts +0 -68
  14. package/dist/src/agent-bay.js +0 -213
  15. package/dist/src/api/client.d.ts +0 -191
  16. package/dist/src/api/client.js +0 -629
  17. package/dist/src/api/index.d.ts +0 -4
  18. package/dist/src/api/index.js +0 -26
  19. package/dist/src/api/models/CallMcpToolRequest.d.ts +0 -21
  20. package/dist/src/api/models/CallMcpToolRequest.js +0 -71
  21. package/dist/src/api/models/CallMcpToolResponse.d.ts +0 -19
  22. package/dist/src/api/models/CallMcpToolResponse.js +0 -68
  23. package/dist/src/api/models/CallMcpToolResponseBody.d.ts +0 -19
  24. package/dist/src/api/models/CallMcpToolResponseBody.js +0 -67
  25. package/dist/src/api/models/CreateMcpSessionRequest.d.ts +0 -19
  26. package/dist/src/api/models/CreateMcpSessionRequest.js +0 -67
  27. package/dist/src/api/models/CreateMcpSessionResponse.d.ts +0 -19
  28. package/dist/src/api/models/CreateMcpSessionResponse.js +0 -68
  29. package/dist/src/api/models/CreateMcpSessionResponseBody.d.ts +0 -20
  30. package/dist/src/api/models/CreateMcpSessionResponseBody.js +0 -71
  31. package/dist/src/api/models/CreateMcpSessionResponseBodyData.d.ts +0 -19
  32. package/dist/src/api/models/CreateMcpSessionResponseBodyData.js +0 -67
  33. package/dist/src/api/models/DeleteContextRequest.d.ts +0 -15
  34. package/dist/src/api/models/DeleteContextRequest.js +0 -59
  35. package/dist/src/api/models/DeleteContextResponse.d.ts +0 -19
  36. package/dist/src/api/models/DeleteContextResponse.js +0 -68
  37. package/dist/src/api/models/DeleteContextResponseBody.d.ts +0 -18
  38. package/dist/src/api/models/DeleteContextResponseBody.js +0 -65
  39. package/dist/src/api/models/GetContextRequest.d.ts +0 -16
  40. package/dist/src/api/models/GetContextRequest.js +0 -61
  41. package/dist/src/api/models/GetContextResponse.d.ts +0 -19
  42. package/dist/src/api/models/GetContextResponse.js +0 -68
  43. package/dist/src/api/models/GetContextResponseBody.d.ts +0 -20
  44. package/dist/src/api/models/GetContextResponseBody.js +0 -71
  45. package/dist/src/api/models/GetContextResponseBodyData.d.ts +0 -19
  46. package/dist/src/api/models/GetContextResponseBodyData.js +0 -67
  47. package/dist/src/api/models/GetLabelRequest.d.ts +0 -17
  48. package/dist/src/api/models/GetLabelRequest.js +0 -63
  49. package/dist/src/api/models/GetLabelResponse.d.ts +0 -19
  50. package/dist/src/api/models/GetLabelResponse.js +0 -68
  51. package/dist/src/api/models/GetLabelResponseBody.d.ts +0 -23
  52. package/dist/src/api/models/GetLabelResponseBody.js +0 -77
  53. package/dist/src/api/models/GetLabelResponseBodyData.d.ts +0 -14
  54. package/dist/src/api/models/GetLabelResponseBodyData.js +0 -57
  55. package/dist/src/api/models/GetLinkRequest.d.ts +0 -15
  56. package/dist/src/api/models/GetLinkRequest.js +0 -59
  57. package/dist/src/api/models/GetLinkResponse.d.ts +0 -19
  58. package/dist/src/api/models/GetLinkResponse.js +0 -68
  59. package/dist/src/api/models/GetLinkResponseBody.d.ts +0 -19
  60. package/dist/src/api/models/GetLinkResponseBody.js +0 -67
  61. package/dist/src/api/models/GetMcpResourceRequest.d.ts +0 -15
  62. package/dist/src/api/models/GetMcpResourceRequest.js +0 -59
  63. package/dist/src/api/models/GetMcpResourceResponse.d.ts +0 -19
  64. package/dist/src/api/models/GetMcpResourceResponse.js +0 -68
  65. package/dist/src/api/models/GetMcpResourceResponseBody.d.ts +0 -20
  66. package/dist/src/api/models/GetMcpResourceResponseBody.js +0 -71
  67. package/dist/src/api/models/GetMcpResourceResponseBodyData.d.ts +0 -17
  68. package/dist/src/api/models/GetMcpResourceResponseBodyData.js +0 -65
  69. package/dist/src/api/models/GetMcpResourceResponseBodyDataDesktopInfo.d.ts +0 -18
  70. package/dist/src/api/models/GetMcpResourceResponseBodyDataDesktopInfo.js +0 -65
  71. package/dist/src/api/models/ListContextsRequest.d.ts +0 -16
  72. package/dist/src/api/models/ListContextsRequest.js +0 -61
  73. package/dist/src/api/models/ListContextsResponse.d.ts +0 -19
  74. package/dist/src/api/models/ListContextsResponse.js +0 -68
  75. package/dist/src/api/models/ListContextsResponseBody.d.ts +0 -23
  76. package/dist/src/api/models/ListContextsResponseBody.js +0 -77
  77. package/dist/src/api/models/ListContextsResponseBodyData.d.ts +0 -19
  78. package/dist/src/api/models/ListContextsResponseBodyData.js +0 -67
  79. package/dist/src/api/models/ListSessionRequest.d.ts +0 -17
  80. package/dist/src/api/models/ListSessionRequest.js +0 -63
  81. package/dist/src/api/models/ListSessionResponse.d.ts +0 -19
  82. package/dist/src/api/models/ListSessionResponse.js +0 -68
  83. package/dist/src/api/models/ListSessionResponseBody.d.ts +0 -23
  84. package/dist/src/api/models/ListSessionResponseBody.js +0 -77
  85. package/dist/src/api/models/ListSessionResponseBodyData.d.ts +0 -14
  86. package/dist/src/api/models/ListSessionResponseBodyData.js +0 -57
  87. package/dist/src/api/models/ModifyContextRequest.d.ts +0 -16
  88. package/dist/src/api/models/ModifyContextRequest.js +0 -61
  89. package/dist/src/api/models/ModifyContextResponse.d.ts +0 -19
  90. package/dist/src/api/models/ModifyContextResponse.js +0 -68
  91. package/dist/src/api/models/ModifyContextResponseBody.d.ts +0 -18
  92. package/dist/src/api/models/ModifyContextResponseBody.js +0 -65
  93. package/dist/src/api/models/ReleaseMcpSessionRequest.d.ts +0 -15
  94. package/dist/src/api/models/ReleaseMcpSessionRequest.js +0 -59
  95. package/dist/src/api/models/ReleaseMcpSessionResponse.d.ts +0 -19
  96. package/dist/src/api/models/ReleaseMcpSessionResponse.js +0 -68
  97. package/dist/src/api/models/ReleaseMcpSessionResponseBody.d.ts +0 -18
  98. package/dist/src/api/models/ReleaseMcpSessionResponseBody.js +0 -65
  99. package/dist/src/api/models/SetLabelRequest.d.ts +0 -16
  100. package/dist/src/api/models/SetLabelRequest.js +0 -61
  101. package/dist/src/api/models/SetLabelResponse.d.ts +0 -19
  102. package/dist/src/api/models/SetLabelResponse.js +0 -68
  103. package/dist/src/api/models/SetLabelResponseBody.d.ts +0 -18
  104. package/dist/src/api/models/SetLabelResponseBody.js +0 -65
  105. package/dist/src/api/models/model.d.ts +0 -43
  106. package/dist/src/api/models/model.js +0 -89
  107. package/dist/src/application/application.d.ts +0 -88
  108. package/dist/src/application/application.js +0 -172
  109. package/dist/src/application/index.d.ts +0 -1
  110. package/dist/src/application/index.js +0 -17
  111. package/dist/src/command/command.d.ts +0 -43
  112. package/dist/src/command/command.js +0 -120
  113. package/dist/src/command/index.d.ts +0 -1
  114. package/dist/src/command/index.js +0 -17
  115. package/dist/src/config.d.ts +0 -15
  116. package/dist/src/config.js +0 -114
  117. package/dist/src/context.d.ts +0 -87
  118. package/dist/src/context.js +0 -208
  119. package/dist/src/exceptions.d.ts +0 -30
  120. package/dist/src/exceptions.js +0 -58
  121. package/dist/src/filesystem/filesystem.d.ts +0 -109
  122. package/dist/src/filesystem/filesystem.js +0 -245
  123. package/dist/src/filesystem/index.d.ts +0 -1
  124. package/dist/src/filesystem/index.js +0 -17
  125. package/dist/src/index.d.ts +0 -10
  126. package/dist/src/index.js +0 -32
  127. package/dist/src/oss/index.d.ts +0 -1
  128. package/dist/src/oss/index.js +0 -5
  129. package/dist/src/oss/oss.d.ts +0 -80
  130. package/dist/src/oss/oss.js +0 -233
  131. package/dist/src/session.d.ts +0 -99
  132. package/dist/src/session.js +0 -226
  133. package/dist/src/ui/index.d.ts +0 -1
  134. package/dist/src/ui/index.js +0 -17
  135. package/dist/src/ui/ui.d.ts +0 -95
  136. package/dist/src/ui/ui.js +0 -206
  137. package/dist/src/utils/logger.d.ts +0 -15
  138. package/dist/src/utils/logger.js +0 -48
  139. package/dist/src/window/index.d.ts +0 -1
  140. package/dist/src/window/index.js +0 -17
  141. package/dist/src/window/window.d.ts +0 -109
  142. package/dist/src/window/window.js +0 -220
  143. package/dist/tests/agent-bay.test.d.ts +0 -1
  144. package/dist/tests/agent-bay.test.js +0 -366
  145. package/dist/tests/integration/context-persistence.test.d.ts +0 -1
  146. package/dist/tests/integration/context-persistence.test.js +0 -226
  147. package/dist/tests/integration/context-session.test.d.ts +0 -1
  148. package/dist/tests/integration/context-session.test.js +0 -223
  149. package/dist/tests/integration/window-operations.test.d.ts +0 -1
  150. package/dist/tests/integration/window-operations.test.js +0 -228
  151. package/dist/tests/unit/adb.test.d.ts +0 -1
  152. package/dist/tests/unit/adb.test.js +0 -60
  153. package/dist/tests/unit/agent-bay.test.d.ts +0 -1
  154. package/dist/tests/unit/agent-bay.test.js +0 -182
  155. package/dist/tests/unit/application.test.d.ts +0 -1
  156. package/dist/tests/unit/application.test.js +0 -260
  157. package/dist/tests/unit/command.test.d.ts +0 -1
  158. package/dist/tests/unit/command.test.js +0 -252
  159. package/dist/tests/unit/context.test.d.ts +0 -1
  160. package/dist/tests/unit/context.test.js +0 -199
  161. package/dist/tests/unit/filesystem.test.d.ts +0 -1
  162. package/dist/tests/unit/filesystem.test.js +0 -493
  163. package/dist/tests/unit/oss.test.d.ts +0 -1
  164. package/dist/tests/unit/oss.test.js +0 -243
  165. package/dist/tests/unit/session-labels.test.d.ts +0 -1
  166. package/dist/tests/unit/session-labels.test.js +0 -138
  167. package/dist/tests/unit/session-params.test.d.ts +0 -1
  168. package/dist/tests/unit/session-params.test.js +0 -78
  169. package/dist/tests/unit/session.test.d.ts +0 -1
  170. package/dist/tests/unit/session.test.js +0 -204
  171. package/dist/tests/unit/ui.test.d.ts +0 -1
  172. package/dist/tests/unit/ui.test.js +0 -158
  173. package/dist/tests/unit/window.test.d.ts +0 -1
  174. package/dist/tests/unit/window.test.js +0 -331
  175. package/dist/tests/utils/test-helpers.d.ts +0 -35
  176. package/dist/tests/utils/test-helpers.js +0 -79
@@ -1,19 +0,0 @@
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
- }
@@ -1,68 +0,0 @@
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;
@@ -1,23 +0,0 @@
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
- }
@@ -1,77 +0,0 @@
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;
@@ -1,14 +0,0 @@
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
- }
@@ -1,57 +0,0 @@
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;
@@ -1,16 +0,0 @@
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
- }
@@ -1,61 +0,0 @@
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;
@@ -1,19 +0,0 @@
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
- }
@@ -1,68 +0,0 @@
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;
@@ -1,18 +0,0 @@
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
- }
@@ -1,65 +0,0 @@
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;
@@ -1,15 +0,0 @@
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
- }
@@ -1,59 +0,0 @@
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;
@@ -1,19 +0,0 @@
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
- }
@@ -1,68 +0,0 @@
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;