@alicloud/cms20240330 3.5.0 → 3.6.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 (145) hide show
  1. package/dist/client.d.ts +215 -0
  2. package/dist/client.js +625 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/AlertRuleNotification.d.ts +1 -0
  5. package/dist/models/AlertRuleNotification.js +5 -0
  6. package/dist/models/AlertRuleNotification.js.map +1 -1
  7. package/dist/models/CreateChatRequest.d.ts +80 -0
  8. package/dist/models/CreateChatRequest.js +124 -0
  9. package/dist/models/CreateChatRequest.js.map +1 -0
  10. package/dist/models/CreateChatResponse.d.ts +19 -0
  11. package/dist/models/CreateChatResponse.js +69 -0
  12. package/dist/models/CreateChatResponse.js.map +1 -0
  13. package/dist/models/CreateChatResponseBody.d.ts +80 -0
  14. package/dist/models/CreateChatResponseBody.js +111 -0
  15. package/dist/models/CreateChatResponseBody.js.map +1 -0
  16. package/dist/models/CreateDigitalEmployeeRequest.d.ts +90 -0
  17. package/dist/models/CreateDigitalEmployeeRequest.js +118 -0
  18. package/dist/models/CreateDigitalEmployeeRequest.js.map +1 -0
  19. package/dist/models/CreateDigitalEmployeeResponse.d.ts +19 -0
  20. package/dist/models/CreateDigitalEmployeeResponse.js +69 -0
  21. package/dist/models/CreateDigitalEmployeeResponse.js.map +1 -0
  22. package/dist/models/CreateDigitalEmployeeResponseBody.d.ts +23 -0
  23. package/dist/models/CreateDigitalEmployeeResponseBody.js +60 -0
  24. package/dist/models/CreateDigitalEmployeeResponseBody.js.map +1 -0
  25. package/dist/models/CreateThreadRequest.d.ts +41 -0
  26. package/dist/models/CreateThreadRequest.js +84 -0
  27. package/dist/models/CreateThreadRequest.js.map +1 -0
  28. package/dist/models/CreateThreadResponse.d.ts +19 -0
  29. package/dist/models/CreateThreadResponse.js +69 -0
  30. package/dist/models/CreateThreadResponse.js.map +1 -0
  31. package/dist/models/CreateThreadResponseBody.d.ts +26 -0
  32. package/dist/models/CreateThreadResponseBody.js +60 -0
  33. package/dist/models/CreateThreadResponseBody.js.map +1 -0
  34. package/dist/models/DeleteDigitalEmployeeResponse.d.ts +19 -0
  35. package/dist/models/DeleteDigitalEmployeeResponse.js +69 -0
  36. package/dist/models/DeleteDigitalEmployeeResponse.js.map +1 -0
  37. package/dist/models/DeleteDigitalEmployeeResponseBody.d.ts +18 -0
  38. package/dist/models/DeleteDigitalEmployeeResponseBody.js +58 -0
  39. package/dist/models/DeleteDigitalEmployeeResponseBody.js.map +1 -0
  40. package/dist/models/DeleteThreadResponse.d.ts +19 -0
  41. package/dist/models/DeleteThreadResponse.js +69 -0
  42. package/dist/models/DeleteThreadResponse.js.map +1 -0
  43. package/dist/models/DeleteThreadResponseBody.d.ts +22 -0
  44. package/dist/models/DeleteThreadResponseBody.js +60 -0
  45. package/dist/models/DeleteThreadResponseBody.js.map +1 -0
  46. package/dist/models/GetDigitalEmployeeResponse.d.ts +19 -0
  47. package/dist/models/GetDigitalEmployeeResponse.js +69 -0
  48. package/dist/models/GetDigitalEmployeeResponse.js.map +1 -0
  49. package/dist/models/GetDigitalEmployeeResponseBody.d.ts +110 -0
  50. package/dist/models/GetDigitalEmployeeResponseBody.js +126 -0
  51. package/dist/models/GetDigitalEmployeeResponseBody.js.map +1 -0
  52. package/dist/models/GetThreadDataRequest.d.ts +23 -0
  53. package/dist/models/GetThreadDataRequest.js +60 -0
  54. package/dist/models/GetThreadDataRequest.js.map +1 -0
  55. package/dist/models/GetThreadDataResponse.d.ts +19 -0
  56. package/dist/models/GetThreadDataResponse.js +69 -0
  57. package/dist/models/GetThreadDataResponse.js.map +1 -0
  58. package/dist/models/GetThreadDataResponseBody.d.ts +115 -0
  59. package/dist/models/GetThreadDataResponseBody.js +120 -0
  60. package/dist/models/GetThreadDataResponseBody.js.map +1 -0
  61. package/dist/models/GetThreadResponse.d.ts +19 -0
  62. package/dist/models/GetThreadResponse.js +69 -0
  63. package/dist/models/GetThreadResponse.js.map +1 -0
  64. package/dist/models/GetThreadResponseBody.d.ts +79 -0
  65. package/dist/models/GetThreadResponseBody.js +98 -0
  66. package/dist/models/GetThreadResponseBody.js.map +1 -0
  67. package/dist/models/ListDigitalEmployeesRequest.d.ts +28 -0
  68. package/dist/models/ListDigitalEmployeesRequest.js +62 -0
  69. package/dist/models/ListDigitalEmployeesRequest.js.map +1 -0
  70. package/dist/models/ListDigitalEmployeesResponse.d.ts +19 -0
  71. package/dist/models/ListDigitalEmployeesResponse.js +69 -0
  72. package/dist/models/ListDigitalEmployeesResponse.js.map +1 -0
  73. package/dist/models/ListDigitalEmployeesResponseBody.d.ts +133 -0
  74. package/dist/models/ListDigitalEmployeesResponseBody.js +152 -0
  75. package/dist/models/ListDigitalEmployeesResponseBody.js.map +1 -0
  76. package/dist/models/ListThreadsRequest.d.ts +62 -0
  77. package/dist/models/ListThreadsRequest.js +90 -0
  78. package/dist/models/ListThreadsRequest.js.map +1 -0
  79. package/dist/models/ListThreadsResponse.d.ts +19 -0
  80. package/dist/models/ListThreadsResponse.js +69 -0
  81. package/dist/models/ListThreadsResponse.js.map +1 -0
  82. package/dist/models/ListThreadsResponseBody.d.ts +115 -0
  83. package/dist/models/ListThreadsResponseBody.js +128 -0
  84. package/dist/models/ListThreadsResponseBody.js.map +1 -0
  85. package/dist/models/ListThreadsShrinkRequest.d.ts +34 -0
  86. package/dist/models/ListThreadsShrinkRequest.js +66 -0
  87. package/dist/models/ListThreadsShrinkRequest.js.map +1 -0
  88. package/dist/models/UpdateDigitalEmployeeRequest.d.ts +79 -0
  89. package/dist/models/UpdateDigitalEmployeeRequest.js +116 -0
  90. package/dist/models/UpdateDigitalEmployeeRequest.js.map +1 -0
  91. package/dist/models/UpdateDigitalEmployeeResponse.d.ts +19 -0
  92. package/dist/models/UpdateDigitalEmployeeResponse.js +69 -0
  93. package/dist/models/UpdateDigitalEmployeeResponse.js.map +1 -0
  94. package/dist/models/UpdateDigitalEmployeeResponseBody.d.ts +18 -0
  95. package/dist/models/UpdateDigitalEmployeeResponseBody.js +58 -0
  96. package/dist/models/UpdateDigitalEmployeeResponseBody.js.map +1 -0
  97. package/dist/models/UpdateThreadRequest.d.ts +23 -0
  98. package/dist/models/UpdateThreadRequest.js +60 -0
  99. package/dist/models/UpdateThreadRequest.js.map +1 -0
  100. package/dist/models/UpdateThreadResponse.d.ts +19 -0
  101. package/dist/models/UpdateThreadResponse.js +69 -0
  102. package/dist/models/UpdateThreadResponse.js.map +1 -0
  103. package/dist/models/UpdateThreadResponseBody.d.ts +31 -0
  104. package/dist/models/UpdateThreadResponseBody.js +62 -0
  105. package/dist/models/UpdateThreadResponseBody.js.map +1 -0
  106. package/dist/models/model.d.ts +51 -0
  107. package/dist/models/model.js +112 -9
  108. package/dist/models/model.js.map +1 -1
  109. package/package.json +1 -1
  110. package/src/client.ts +656 -0
  111. package/src/models/AlertRuleNotification.ts +6 -0
  112. package/src/models/CreateChatRequest.ts +137 -0
  113. package/src/models/CreateChatResponse.ts +40 -0
  114. package/src/models/CreateChatResponseBody.ts +131 -0
  115. package/src/models/CreateDigitalEmployeeRequest.ts +145 -0
  116. package/src/models/CreateDigitalEmployeeResponse.ts +40 -0
  117. package/src/models/CreateDigitalEmployeeResponseBody.ts +38 -0
  118. package/src/models/CreateThreadRequest.ts +71 -0
  119. package/src/models/CreateThreadResponse.ts +40 -0
  120. package/src/models/CreateThreadResponseBody.ts +41 -0
  121. package/src/models/DeleteDigitalEmployeeResponse.ts +40 -0
  122. package/src/models/DeleteDigitalEmployeeResponseBody.ts +31 -0
  123. package/src/models/DeleteThreadResponse.ts +40 -0
  124. package/src/models/DeleteThreadResponseBody.ts +37 -0
  125. package/src/models/GetDigitalEmployeeResponse.ts +40 -0
  126. package/src/models/GetDigitalEmployeeResponseBody.ts +173 -0
  127. package/src/models/GetThreadDataRequest.ts +38 -0
  128. package/src/models/GetThreadDataResponse.ts +40 -0
  129. package/src/models/GetThreadDataResponseBody.ts +177 -0
  130. package/src/models/GetThreadResponse.ts +40 -0
  131. package/src/models/GetThreadResponseBody.ts +123 -0
  132. package/src/models/ListDigitalEmployeesRequest.ts +45 -0
  133. package/src/models/ListDigitalEmployeesResponse.ts +40 -0
  134. package/src/models/ListDigitalEmployeesResponseBody.ts +213 -0
  135. package/src/models/ListThreadsRequest.ts +98 -0
  136. package/src/models/ListThreadsResponse.ts +40 -0
  137. package/src/models/ListThreadsResponseBody.ts +180 -0
  138. package/src/models/ListThreadsShrinkRequest.ts +55 -0
  139. package/src/models/UpdateDigitalEmployeeRequest.ts +132 -0
  140. package/src/models/UpdateDigitalEmployeeResponse.ts +40 -0
  141. package/src/models/UpdateDigitalEmployeeResponseBody.ts +31 -0
  142. package/src/models/UpdateThreadRequest.ts +38 -0
  143. package/src/models/UpdateThreadResponse.ts +40 -0
  144. package/src/models/UpdateThreadResponseBody.ts +48 -0
  145. package/src/models/model.ts +51 -0
@@ -6,6 +6,7 @@ import { AlertRuleTimeSpan } from "./AlertRuleTimeSpan";
6
6
  export class AlertRuleNotification extends $dara.Model {
7
7
  contacts?: string[];
8
8
  customWebhooks?: string[];
9
+ dingCoolAppWebhooks?: string[];
9
10
  dingWebhooks?: string[];
10
11
  fsWebhooks?: string[];
11
12
  groups?: string[];
@@ -17,6 +18,7 @@ export class AlertRuleNotification extends $dara.Model {
17
18
  return {
18
19
  contacts: 'contacts',
19
20
  customWebhooks: 'customWebhooks',
21
+ dingCoolAppWebhooks: 'dingCoolAppWebhooks',
20
22
  dingWebhooks: 'dingWebhooks',
21
23
  fsWebhooks: 'fsWebhooks',
22
24
  groups: 'groups',
@@ -31,6 +33,7 @@ export class AlertRuleNotification extends $dara.Model {
31
33
  return {
32
34
  contacts: { 'type': 'array', 'itemType': 'string' },
33
35
  customWebhooks: { 'type': 'array', 'itemType': 'string' },
36
+ dingCoolAppWebhooks: { 'type': 'array', 'itemType': 'string' },
34
37
  dingWebhooks: { 'type': 'array', 'itemType': 'string' },
35
38
  fsWebhooks: { 'type': 'array', 'itemType': 'string' },
36
39
  groups: { 'type': 'array', 'itemType': 'string' },
@@ -48,6 +51,9 @@ export class AlertRuleNotification extends $dara.Model {
48
51
  if(Array.isArray(this.customWebhooks)) {
49
52
  $dara.Model.validateArray(this.customWebhooks);
50
53
  }
54
+ if(Array.isArray(this.dingCoolAppWebhooks)) {
55
+ $dara.Model.validateArray(this.dingCoolAppWebhooks);
56
+ }
51
57
  if(Array.isArray(this.dingWebhooks)) {
52
58
  $dara.Model.validateArray(this.dingWebhooks);
53
59
  }
@@ -0,0 +1,137 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateChatRequestMessagesContents extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * text
9
+ */
10
+ type?: string;
11
+ /**
12
+ * @example
13
+ * test
14
+ */
15
+ value?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ type: 'type',
19
+ value: 'value',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ type: 'string',
26
+ value: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class CreateChatRequestMessages extends $dara.Model {
40
+ contents?: CreateChatRequestMessagesContents[];
41
+ /**
42
+ * @example
43
+ * message_id02
44
+ */
45
+ messageId?: string;
46
+ /**
47
+ * @example
48
+ * system
49
+ */
50
+ role?: string;
51
+ tools?: { [key: string]: any }[];
52
+ static names(): { [key: string]: string } {
53
+ return {
54
+ contents: 'contents',
55
+ messageId: 'messageId',
56
+ role: 'role',
57
+ tools: 'tools',
58
+ };
59
+ }
60
+
61
+ static types(): { [key: string]: any } {
62
+ return {
63
+ contents: { 'type': 'array', 'itemType': CreateChatRequestMessagesContents },
64
+ messageId: 'string',
65
+ role: 'string',
66
+ tools: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
67
+ };
68
+ }
69
+
70
+ validate() {
71
+ if(Array.isArray(this.contents)) {
72
+ $dara.Model.validateArray(this.contents);
73
+ }
74
+ if(Array.isArray(this.tools)) {
75
+ $dara.Model.validateArray(this.tools);
76
+ }
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class CreateChatRequest extends $dara.Model {
86
+ /**
87
+ * @example
88
+ * create
89
+ */
90
+ action?: string;
91
+ /**
92
+ * @example
93
+ * test
94
+ */
95
+ digitalEmployeeName?: string;
96
+ messages?: CreateChatRequestMessages[];
97
+ /**
98
+ * @example
99
+ * thread_id01
100
+ */
101
+ threadId?: string;
102
+ variables?: { [key: string]: any };
103
+ static names(): { [key: string]: string } {
104
+ return {
105
+ action: 'action',
106
+ digitalEmployeeName: 'digitalEmployeeName',
107
+ messages: 'messages',
108
+ threadId: 'threadId',
109
+ variables: 'variables',
110
+ };
111
+ }
112
+
113
+ static types(): { [key: string]: any } {
114
+ return {
115
+ action: 'string',
116
+ digitalEmployeeName: 'string',
117
+ messages: { 'type': 'array', 'itemType': CreateChatRequestMessages },
118
+ threadId: 'string',
119
+ variables: { 'type': 'map', 'keyType': 'string', 'valueType': 'any' },
120
+ };
121
+ }
122
+
123
+ validate() {
124
+ if(Array.isArray(this.messages)) {
125
+ $dara.Model.validateArray(this.messages);
126
+ }
127
+ if(this.variables) {
128
+ $dara.Model.validateMap(this.variables);
129
+ }
130
+ super.validate();
131
+ }
132
+
133
+ constructor(map?: { [key: string]: any }) {
134
+ super(map);
135
+ }
136
+ }
137
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateChatResponseBody } from "./CreateChatResponseBody";
4
+
5
+
6
+ export class CreateChatResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateChatResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CreateChatResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,131 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateChatResponseBodyMessages extends $dara.Model {
6
+ agents?: { [key: string]: any }[];
7
+ /**
8
+ * @example
9
+ * call_search_001
10
+ */
11
+ callId?: string;
12
+ contents?: { [key: string]: any }[];
13
+ /**
14
+ * @example
15
+ * test
16
+ */
17
+ detail?: string;
18
+ /**
19
+ * @example
20
+ * sess_abc123
21
+ */
22
+ parentCallId?: string;
23
+ /**
24
+ * @example
25
+ * tool
26
+ */
27
+ role?: string;
28
+ /**
29
+ * @example
30
+ * 1
31
+ */
32
+ seq?: number;
33
+ /**
34
+ * @example
35
+ * 1765000005
36
+ */
37
+ timestamp?: number;
38
+ tools?: { [key: string]: any }[];
39
+ /**
40
+ * @example
41
+ * done
42
+ */
43
+ type?: string;
44
+ static names(): { [key: string]: string } {
45
+ return {
46
+ agents: 'agents',
47
+ callId: 'callId',
48
+ contents: 'contents',
49
+ detail: 'detail',
50
+ parentCallId: 'parentCallId',
51
+ role: 'role',
52
+ seq: 'seq',
53
+ timestamp: 'timestamp',
54
+ tools: 'tools',
55
+ type: 'type',
56
+ };
57
+ }
58
+
59
+ static types(): { [key: string]: any } {
60
+ return {
61
+ agents: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
62
+ callId: 'string',
63
+ contents: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
64
+ detail: 'string',
65
+ parentCallId: 'string',
66
+ role: 'string',
67
+ seq: 'number',
68
+ timestamp: 'number',
69
+ tools: { 'type': 'array', 'itemType': { 'type': 'map', 'keyType': 'string', 'valueType': 'any' } },
70
+ type: 'string',
71
+ };
72
+ }
73
+
74
+ validate() {
75
+ if(Array.isArray(this.agents)) {
76
+ $dara.Model.validateArray(this.agents);
77
+ }
78
+ if(Array.isArray(this.contents)) {
79
+ $dara.Model.validateArray(this.contents);
80
+ }
81
+ if(Array.isArray(this.tools)) {
82
+ $dara.Model.validateArray(this.tools);
83
+ }
84
+ super.validate();
85
+ }
86
+
87
+ constructor(map?: { [key: string]: any }) {
88
+ super(map);
89
+ }
90
+ }
91
+
92
+ export class CreateChatResponseBody extends $dara.Model {
93
+ messages?: CreateChatResponseBodyMessages[];
94
+ /**
95
+ * @example
96
+ * 0CEC5375-XXXX-XXXX-XXXX-9A629907C1F0
97
+ */
98
+ requestId?: string;
99
+ /**
100
+ * @example
101
+ * 21504600000008405622576e3b48
102
+ */
103
+ traceId?: string;
104
+ static names(): { [key: string]: string } {
105
+ return {
106
+ messages: 'messages',
107
+ requestId: 'requestId',
108
+ traceId: 'traceId',
109
+ };
110
+ }
111
+
112
+ static types(): { [key: string]: any } {
113
+ return {
114
+ messages: { 'type': 'array', 'itemType': CreateChatResponseBodyMessages },
115
+ requestId: 'string',
116
+ traceId: 'string',
117
+ };
118
+ }
119
+
120
+ validate() {
121
+ if(Array.isArray(this.messages)) {
122
+ $dara.Model.validateArray(this.messages);
123
+ }
124
+ super.validate();
125
+ }
126
+
127
+ constructor(map?: { [key: string]: any }) {
128
+ super(map);
129
+ }
130
+ }
131
+
@@ -0,0 +1,145 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateDigitalEmployeeRequestKnowledgesBailian extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * test
9
+ */
10
+ attributes?: string;
11
+ /**
12
+ * @example
13
+ * index-xxxx
14
+ */
15
+ indexId?: string;
16
+ /**
17
+ * @example
18
+ * cn-beijing
19
+ */
20
+ region?: string;
21
+ /**
22
+ * @example
23
+ * llm-xxxxx
24
+ */
25
+ workspaceId?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ attributes: 'attributes',
29
+ indexId: 'indexId',
30
+ region: 'region',
31
+ workspaceId: 'workspaceId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ attributes: 'string',
38
+ indexId: 'string',
39
+ region: 'string',
40
+ workspaceId: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
53
+ export class CreateDigitalEmployeeRequestKnowledges extends $dara.Model {
54
+ bailian?: CreateDigitalEmployeeRequestKnowledgesBailian[];
55
+ static names(): { [key: string]: string } {
56
+ return {
57
+ bailian: 'bailian',
58
+ };
59
+ }
60
+
61
+ static types(): { [key: string]: any } {
62
+ return {
63
+ bailian: { 'type': 'array', 'itemType': CreateDigitalEmployeeRequestKnowledgesBailian },
64
+ };
65
+ }
66
+
67
+ validate() {
68
+ if(Array.isArray(this.bailian)) {
69
+ $dara.Model.validateArray(this.bailian);
70
+ }
71
+ super.validate();
72
+ }
73
+
74
+ constructor(map?: { [key: string]: any }) {
75
+ super(map);
76
+ }
77
+ }
78
+
79
+ export class CreateDigitalEmployeeRequest extends $dara.Model {
80
+ /**
81
+ * @example
82
+ * test
83
+ */
84
+ defaultRule?: string;
85
+ /**
86
+ * @example
87
+ * aaa
88
+ */
89
+ description?: string;
90
+ /**
91
+ * @example
92
+ * digial-employee-test
93
+ */
94
+ displayName?: string;
95
+ knowledges?: CreateDigitalEmployeeRequestKnowledges;
96
+ /**
97
+ * @remarks
98
+ * This parameter is required.
99
+ *
100
+ * @example
101
+ * test
102
+ */
103
+ name?: string;
104
+ /**
105
+ * @remarks
106
+ * This parameter is required.
107
+ *
108
+ * @example
109
+ * acs:ram::12345678912:role/testrole
110
+ */
111
+ roleArn?: string;
112
+ static names(): { [key: string]: string } {
113
+ return {
114
+ defaultRule: 'defaultRule',
115
+ description: 'description',
116
+ displayName: 'displayName',
117
+ knowledges: 'knowledges',
118
+ name: 'name',
119
+ roleArn: 'roleArn',
120
+ };
121
+ }
122
+
123
+ static types(): { [key: string]: any } {
124
+ return {
125
+ defaultRule: 'string',
126
+ description: 'string',
127
+ displayName: 'string',
128
+ knowledges: CreateDigitalEmployeeRequestKnowledges,
129
+ name: 'string',
130
+ roleArn: 'string',
131
+ };
132
+ }
133
+
134
+ validate() {
135
+ if(this.knowledges && typeof (this.knowledges as any).validate === 'function') {
136
+ (this.knowledges as any).validate();
137
+ }
138
+ super.validate();
139
+ }
140
+
141
+ constructor(map?: { [key: string]: any }) {
142
+ super(map);
143
+ }
144
+ }
145
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateDigitalEmployeeResponseBody } from "./CreateDigitalEmployeeResponseBody";
4
+
5
+
6
+ export class CreateDigitalEmployeeResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateDigitalEmployeeResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CreateDigitalEmployeeResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+
@@ -0,0 +1,38 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateDigitalEmployeeResponseBody extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * test
9
+ */
10
+ name?: string;
11
+ /**
12
+ * @example
13
+ * 3B311FD9-A60B-55E0-A896-A0C73*********
14
+ */
15
+ requestId?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ name: 'name',
19
+ requestId: 'requestId',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ name: 'string',
26
+ requestId: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
@@ -0,0 +1,71 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateThreadRequestVariables extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * az_alipay
9
+ */
10
+ project?: string;
11
+ /**
12
+ * @example
13
+ * rum-monitor-test-aysls-pub-cn-heyuan-monitor
14
+ */
15
+ workspace?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ project: 'project',
19
+ workspace: 'workspace',
20
+ };
21
+ }
22
+
23
+ static types(): { [key: string]: any } {
24
+ return {
25
+ project: 'string',
26
+ workspace: 'string',
27
+ };
28
+ }
29
+
30
+ validate() {
31
+ super.validate();
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
39
+ export class CreateThreadRequest extends $dara.Model {
40
+ /**
41
+ * @example
42
+ * test
43
+ */
44
+ title?: string;
45
+ variables?: CreateThreadRequestVariables;
46
+ static names(): { [key: string]: string } {
47
+ return {
48
+ title: 'title',
49
+ variables: 'variables',
50
+ };
51
+ }
52
+
53
+ static types(): { [key: string]: any } {
54
+ return {
55
+ title: 'string',
56
+ variables: CreateThreadRequestVariables,
57
+ };
58
+ }
59
+
60
+ validate() {
61
+ if(this.variables && typeof (this.variables as any).validate === 'function') {
62
+ (this.variables as any).validate();
63
+ }
64
+ super.validate();
65
+ }
66
+
67
+ constructor(map?: { [key: string]: any }) {
68
+ super(map);
69
+ }
70
+ }
71
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { CreateThreadResponseBody } from "./CreateThreadResponseBody";
4
+
5
+
6
+ export class CreateThreadResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: CreateThreadResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: CreateThreadResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+