@alicloud/websitebuild20250429 2.21.0 → 2.22.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 (57) hide show
  1. package/dist/client.d.ts +60 -0
  2. package/dist/client.js +192 -0
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateAistaffChatRequest.d.ts +67 -0
  5. package/dist/models/CreateAistaffChatRequest.js +102 -0
  6. package/dist/models/CreateAistaffChatRequest.js.map +1 -0
  7. package/dist/models/CreateAistaffChatResponse.d.ts +19 -0
  8. package/dist/models/CreateAistaffChatResponse.js +69 -0
  9. package/dist/models/CreateAistaffChatResponse.js.map +1 -0
  10. package/dist/models/CreateAistaffChatResponseBody.d.ts +63 -0
  11. package/dist/models/CreateAistaffChatResponseBody.js +81 -0
  12. package/dist/models/CreateAistaffChatResponseBody.js.map +1 -0
  13. package/dist/models/CreateAistaffConversationRequest.d.ts +14 -0
  14. package/dist/models/CreateAistaffConversationRequest.js +58 -0
  15. package/dist/models/CreateAistaffConversationRequest.js.map +1 -0
  16. package/dist/models/CreateAistaffConversationResponse.d.ts +19 -0
  17. package/dist/models/CreateAistaffConversationResponse.js +69 -0
  18. package/dist/models/CreateAistaffConversationResponse.js.map +1 -0
  19. package/dist/models/CreateAistaffConversationResponseBody.d.ts +101 -0
  20. package/dist/models/CreateAistaffConversationResponseBody.js +113 -0
  21. package/dist/models/CreateAistaffConversationResponseBody.js.map +1 -0
  22. package/dist/models/ListAistaffChatEventsRequest.d.ts +33 -0
  23. package/dist/models/ListAistaffChatEventsRequest.js +64 -0
  24. package/dist/models/ListAistaffChatEventsRequest.js.map +1 -0
  25. package/dist/models/ListAistaffChatEventsResponse.d.ts +19 -0
  26. package/dist/models/ListAistaffChatEventsResponse.js +69 -0
  27. package/dist/models/ListAistaffChatEventsResponse.js.map +1 -0
  28. package/dist/models/ListAistaffChatEventsResponseBody.d.ts +110 -0
  29. package/dist/models/ListAistaffChatEventsResponseBody.js +135 -0
  30. package/dist/models/ListAistaffChatEventsResponseBody.js.map +1 -0
  31. package/dist/models/ListAistaffChatMessagesRequest.d.ts +33 -0
  32. package/dist/models/ListAistaffChatMessagesRequest.js +64 -0
  33. package/dist/models/ListAistaffChatMessagesRequest.js.map +1 -0
  34. package/dist/models/ListAistaffChatMessagesResponse.d.ts +19 -0
  35. package/dist/models/ListAistaffChatMessagesResponse.js +69 -0
  36. package/dist/models/ListAistaffChatMessagesResponse.js.map +1 -0
  37. package/dist/models/ListAistaffChatMessagesResponseBody.d.ts +152 -0
  38. package/dist/models/ListAistaffChatMessagesResponseBody.js +154 -0
  39. package/dist/models/ListAistaffChatMessagesResponseBody.js.map +1 -0
  40. package/dist/models/model.d.ts +18 -0
  41. package/dist/models/model.js +44 -8
  42. package/dist/models/model.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/client.ts +217 -0
  45. package/src/models/CreateAistaffChatRequest.ts +111 -0
  46. package/src/models/CreateAistaffChatResponse.ts +40 -0
  47. package/src/models/CreateAistaffChatResponseBody.ts +99 -0
  48. package/src/models/CreateAistaffConversationRequest.ts +27 -0
  49. package/src/models/CreateAistaffConversationResponse.ts +40 -0
  50. package/src/models/CreateAistaffConversationResponseBody.ts +160 -0
  51. package/src/models/ListAistaffChatEventsRequest.ts +52 -0
  52. package/src/models/ListAistaffChatEventsResponse.ts +40 -0
  53. package/src/models/ListAistaffChatEventsResponseBody.ts +182 -0
  54. package/src/models/ListAistaffChatMessagesRequest.ts +52 -0
  55. package/src/models/ListAistaffChatMessagesResponse.ts +40 -0
  56. package/src/models/ListAistaffChatMessagesResponseBody.ts +241 -0
  57. package/src/models/model.ts +18 -0
@@ -0,0 +1,160 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class CreateAIStaffConversationResponseBodyModule extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * Zero2
9
+ */
10
+ botId?: string;
11
+ /**
12
+ * @example
13
+ * 53467af9-8c4e-4498-9032-1f26978007f8
14
+ */
15
+ chatId?: string;
16
+ /**
17
+ * @example
18
+ * 8642d886-0322-43a9-b12f-6629b067978c
19
+ */
20
+ conversationId?: string;
21
+ /**
22
+ * @example
23
+ * 11
24
+ */
25
+ sectionId?: string;
26
+ /**
27
+ * @example
28
+ * 865181640657408
29
+ */
30
+ siteId?: string;
31
+ /**
32
+ * @example
33
+ * Feel Like Makin\\" Love
34
+ */
35
+ title?: string;
36
+ static names(): { [key: string]: string } {
37
+ return {
38
+ botId: 'BotId',
39
+ chatId: 'ChatId',
40
+ conversationId: 'ConversationId',
41
+ sectionId: 'SectionId',
42
+ siteId: 'SiteId',
43
+ title: 'Title',
44
+ };
45
+ }
46
+
47
+ static types(): { [key: string]: any } {
48
+ return {
49
+ botId: 'string',
50
+ chatId: 'string',
51
+ conversationId: 'string',
52
+ sectionId: 'string',
53
+ siteId: 'string',
54
+ title: 'string',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
67
+ export class CreateAIStaffConversationResponseBody extends $dara.Model {
68
+ /**
69
+ * @example
70
+ * {}
71
+ */
72
+ accessDeniedDetail?: string;
73
+ /**
74
+ * @example
75
+ * False
76
+ */
77
+ allowRetry?: boolean;
78
+ /**
79
+ * @example
80
+ * spring-cloud-b
81
+ */
82
+ appName?: string;
83
+ /**
84
+ * @example
85
+ * ERROR-oo1
86
+ */
87
+ dynamicCode?: string;
88
+ /**
89
+ * @example
90
+ * SYSTEM_ERROR
91
+ */
92
+ dynamicMessage?: string;
93
+ errorArgs?: any[];
94
+ module?: CreateAIStaffConversationResponseBodyModule;
95
+ /**
96
+ * @remarks
97
+ * Id of the request
98
+ *
99
+ * @example
100
+ * 6C6B99AC-39EC-5350-874C-204128C905E6
101
+ */
102
+ requestId?: string;
103
+ /**
104
+ * @example
105
+ * SYSTEM.ERROR
106
+ */
107
+ rootErrorCode?: string;
108
+ rootErrorMsg?: string;
109
+ /**
110
+ * @example
111
+ * True
112
+ */
113
+ synchro?: boolean;
114
+ static names(): { [key: string]: string } {
115
+ return {
116
+ accessDeniedDetail: 'AccessDeniedDetail',
117
+ allowRetry: 'AllowRetry',
118
+ appName: 'AppName',
119
+ dynamicCode: 'DynamicCode',
120
+ dynamicMessage: 'DynamicMessage',
121
+ errorArgs: 'ErrorArgs',
122
+ module: 'Module',
123
+ requestId: 'RequestId',
124
+ rootErrorCode: 'RootErrorCode',
125
+ rootErrorMsg: 'RootErrorMsg',
126
+ synchro: 'Synchro',
127
+ };
128
+ }
129
+
130
+ static types(): { [key: string]: any } {
131
+ return {
132
+ accessDeniedDetail: 'string',
133
+ allowRetry: 'boolean',
134
+ appName: 'string',
135
+ dynamicCode: 'string',
136
+ dynamicMessage: 'string',
137
+ errorArgs: { 'type': 'array', 'itemType': 'any' },
138
+ module: CreateAIStaffConversationResponseBodyModule,
139
+ requestId: 'string',
140
+ rootErrorCode: 'string',
141
+ rootErrorMsg: 'string',
142
+ synchro: 'boolean',
143
+ };
144
+ }
145
+
146
+ validate() {
147
+ if(Array.isArray(this.errorArgs)) {
148
+ $dara.Model.validateArray(this.errorArgs);
149
+ }
150
+ if(this.module && typeof (this.module as any).validate === 'function') {
151
+ (this.module as any).validate();
152
+ }
153
+ super.validate();
154
+ }
155
+
156
+ constructor(map?: { [key: string]: any }) {
157
+ super(map);
158
+ }
159
+ }
160
+
@@ -0,0 +1,52 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListAIStaffChatEventsRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * WS20250731233102000001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @example
13
+ * 20833ba4-d189-4c50-9a44-a6bcbda2c93b
14
+ */
15
+ chatId?: string;
16
+ /**
17
+ * @example
18
+ * 593fe1a2-d0b4-4fde-a2b0-78ad6a438d41
19
+ */
20
+ conversationId?: string;
21
+ /**
22
+ * @example
23
+ * event-71ece53b7d474e01b755a9b5fa5305e6
24
+ */
25
+ lastEventId?: number;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ bizId: 'BizId',
29
+ chatId: 'ChatId',
30
+ conversationId: 'ConversationId',
31
+ lastEventId: 'LastEventId',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ bizId: 'string',
38
+ chatId: 'string',
39
+ conversationId: 'string',
40
+ lastEventId: 'number',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListAIStaffChatEventsResponseBody } from "./ListAistaffChatEventsResponseBody";
4
+
5
+
6
+ export class ListAIStaffChatEventsResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListAIStaffChatEventsResponseBody;
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: ListAIStaffChatEventsResponseBody,
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,182 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListAIStaffChatEventsResponseBodyModuleEvents extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * {\\"Recorded\\": False}
9
+ */
10
+ data?: string;
11
+ /**
12
+ * @example
13
+ * 10426
14
+ */
15
+ id?: number;
16
+ name?: string;
17
+ static names(): { [key: string]: string } {
18
+ return {
19
+ data: 'Data',
20
+ id: 'Id',
21
+ name: 'Name',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ data: 'string',
28
+ id: 'number',
29
+ name: 'string',
30
+ };
31
+ }
32
+
33
+ validate() {
34
+ super.validate();
35
+ }
36
+
37
+ constructor(map?: { [key: string]: any }) {
38
+ super(map);
39
+ }
40
+ }
41
+
42
+ export class ListAIStaffChatEventsResponseBodyModule extends $dara.Model {
43
+ /**
44
+ * @example
45
+ * chat-xrz3etcl2bsygwlx8g
46
+ */
47
+ chatId?: string;
48
+ /**
49
+ * @example
50
+ * 872be9bc-3097-433d-b462-596202455102
51
+ */
52
+ conversationId?: string;
53
+ events?: ListAIStaffChatEventsResponseBodyModuleEvents[];
54
+ /**
55
+ * @example
56
+ * event-21dd6124760a4a259ae33bbd878f6e20
57
+ */
58
+ lastEventId?: number;
59
+ static names(): { [key: string]: string } {
60
+ return {
61
+ chatId: 'ChatId',
62
+ conversationId: 'ConversationId',
63
+ events: 'Events',
64
+ lastEventId: 'LastEventId',
65
+ };
66
+ }
67
+
68
+ static types(): { [key: string]: any } {
69
+ return {
70
+ chatId: 'string',
71
+ conversationId: 'string',
72
+ events: { 'type': 'array', 'itemType': ListAIStaffChatEventsResponseBodyModuleEvents },
73
+ lastEventId: 'number',
74
+ };
75
+ }
76
+
77
+ validate() {
78
+ if(Array.isArray(this.events)) {
79
+ $dara.Model.validateArray(this.events);
80
+ }
81
+ super.validate();
82
+ }
83
+
84
+ constructor(map?: { [key: string]: any }) {
85
+ super(map);
86
+ }
87
+ }
88
+
89
+ export class ListAIStaffChatEventsResponseBody extends $dara.Model {
90
+ /**
91
+ * @example
92
+ * {}
93
+ */
94
+ accessDeniedDetail?: string;
95
+ /**
96
+ * @example
97
+ * False
98
+ */
99
+ allowRetry?: boolean;
100
+ /**
101
+ * @example
102
+ * spring-cloud-b
103
+ */
104
+ appName?: string;
105
+ /**
106
+ * @example
107
+ * ERROR-oo1
108
+ */
109
+ dynamicCode?: string;
110
+ /**
111
+ * @example
112
+ * SYSTEM_ERROR
113
+ */
114
+ dynamicMessage?: string;
115
+ errorArgs?: any[];
116
+ module?: ListAIStaffChatEventsResponseBodyModule;
117
+ /**
118
+ * @remarks
119
+ * Id of the request
120
+ *
121
+ * @example
122
+ * 6C6B99AC-39EC-5350-874C-204128C905E6
123
+ */
124
+ requestId?: string;
125
+ /**
126
+ * @example
127
+ * SYSTEM.ERROR
128
+ */
129
+ rootErrorCode?: string;
130
+ rootErrorMsg?: string;
131
+ /**
132
+ * @example
133
+ * True
134
+ */
135
+ synchro?: boolean;
136
+ static names(): { [key: string]: string } {
137
+ return {
138
+ accessDeniedDetail: 'AccessDeniedDetail',
139
+ allowRetry: 'AllowRetry',
140
+ appName: 'AppName',
141
+ dynamicCode: 'DynamicCode',
142
+ dynamicMessage: 'DynamicMessage',
143
+ errorArgs: 'ErrorArgs',
144
+ module: 'Module',
145
+ requestId: 'RequestId',
146
+ rootErrorCode: 'RootErrorCode',
147
+ rootErrorMsg: 'RootErrorMsg',
148
+ synchro: 'Synchro',
149
+ };
150
+ }
151
+
152
+ static types(): { [key: string]: any } {
153
+ return {
154
+ accessDeniedDetail: 'string',
155
+ allowRetry: 'boolean',
156
+ appName: 'string',
157
+ dynamicCode: 'string',
158
+ dynamicMessage: 'string',
159
+ errorArgs: { 'type': 'array', 'itemType': 'any' },
160
+ module: ListAIStaffChatEventsResponseBodyModule,
161
+ requestId: 'string',
162
+ rootErrorCode: 'string',
163
+ rootErrorMsg: 'string',
164
+ synchro: 'boolean',
165
+ };
166
+ }
167
+
168
+ validate() {
169
+ if(Array.isArray(this.errorArgs)) {
170
+ $dara.Model.validateArray(this.errorArgs);
171
+ }
172
+ if(this.module && typeof (this.module as any).validate === 'function') {
173
+ (this.module as any).validate();
174
+ }
175
+ super.validate();
176
+ }
177
+
178
+ constructor(map?: { [key: string]: any }) {
179
+ super(map);
180
+ }
181
+ }
182
+
@@ -0,0 +1,52 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class ListAIStaffChatMessagesRequest extends $dara.Model {
6
+ /**
7
+ * @example
8
+ * WD20250703155602000001
9
+ */
10
+ bizId?: string;
11
+ /**
12
+ * @example
13
+ * 81bc5a34-1d8d-4ef7-a208-7401c51b054b
14
+ */
15
+ conversationId?: string;
16
+ /**
17
+ * @example
18
+ * 10
19
+ */
20
+ pageSize?: number;
21
+ /**
22
+ * @example
23
+ * null
24
+ */
25
+ startCreateTime?: string;
26
+ static names(): { [key: string]: string } {
27
+ return {
28
+ bizId: 'BizId',
29
+ conversationId: 'ConversationId',
30
+ pageSize: 'PageSize',
31
+ startCreateTime: 'StartCreateTime',
32
+ };
33
+ }
34
+
35
+ static types(): { [key: string]: any } {
36
+ return {
37
+ bizId: 'string',
38
+ conversationId: 'string',
39
+ pageSize: 'number',
40
+ startCreateTime: 'string',
41
+ };
42
+ }
43
+
44
+ validate() {
45
+ super.validate();
46
+ }
47
+
48
+ constructor(map?: { [key: string]: any }) {
49
+ super(map);
50
+ }
51
+ }
52
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { ListAIStaffChatMessagesResponseBody } from "./ListAistaffChatMessagesResponseBody";
4
+
5
+
6
+ export class ListAIStaffChatMessagesResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: ListAIStaffChatMessagesResponseBody;
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: ListAIStaffChatMessagesResponseBody,
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
+