@alicloud/agentloop20260520 2.3.8 → 2.3.9

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 (51) hide show
  1. package/dist/client.d.ts +2 -2
  2. package/dist/client.js +19 -2
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContextStoreRequest.d.ts +364 -2
  5. package/dist/models/CreateContextStoreRequest.js +365 -1
  6. package/dist/models/CreateContextStoreRequest.js.map +1 -1
  7. package/dist/models/CreateContextStoreResponseBody.d.ts +5 -0
  8. package/dist/models/CreateContextStoreResponseBody.js +2 -0
  9. package/dist/models/CreateContextStoreResponseBody.js.map +1 -1
  10. package/dist/models/DeleteContextStoreRequest.d.ts +8 -0
  11. package/dist/models/DeleteContextStoreRequest.js +6 -2
  12. package/dist/models/DeleteContextStoreRequest.js.map +1 -1
  13. package/dist/models/DeleteContextStoreResponseBody.d.ts +1 -1
  14. package/dist/models/GetContextStoreResponseBody.d.ts +489 -0
  15. package/dist/models/GetContextStoreResponseBody.js +486 -1
  16. package/dist/models/GetContextStoreResponseBody.js.map +1 -1
  17. package/dist/models/ListContextStoresRequest.d.ts +5 -0
  18. package/dist/models/ListContextStoresRequest.js +2 -0
  19. package/dist/models/ListContextStoresRequest.js.map +1 -1
  20. package/dist/models/ListContextStoresResponseBody.d.ts +10 -0
  21. package/dist/models/ListContextStoresResponseBody.js +4 -0
  22. package/dist/models/ListContextStoresResponseBody.js.map +1 -1
  23. package/dist/models/SearchContextRequest.d.ts +38 -0
  24. package/dist/models/SearchContextRequest.js +33 -1
  25. package/dist/models/SearchContextRequest.js.map +1 -1
  26. package/dist/models/SearchContextResponseBody.d.ts +10 -0
  27. package/dist/models/SearchContextResponseBody.js +4 -0
  28. package/dist/models/SearchContextResponseBody.js.map +1 -1
  29. package/dist/models/UpdateContextStoreRequest.d.ts +479 -9
  30. package/dist/models/UpdateContextStoreRequest.js +331 -1
  31. package/dist/models/UpdateContextStoreRequest.js.map +1 -1
  32. package/dist/models/UpdateContextStoreResponseBody.d.ts +8 -0
  33. package/dist/models/UpdateContextStoreResponseBody.js +2 -0
  34. package/dist/models/UpdateContextStoreResponseBody.js.map +1 -1
  35. package/dist/models/model.d.ts +40 -0
  36. package/dist/models/model.js +102 -21
  37. package/dist/models/model.js.map +1 -1
  38. package/package.json +1 -1
  39. package/src/client.ts +24 -2
  40. package/src/models/CreateContextStoreRequest.ts +620 -2
  41. package/src/models/CreateContextStoreResponseBody.ts +7 -0
  42. package/src/models/DeleteContextStoreRequest.ts +10 -0
  43. package/src/models/DeleteContextStoreResponseBody.ts +1 -1
  44. package/src/models/GetContextStoreResponseBody.ts +828 -0
  45. package/src/models/ListContextStoresRequest.ts +7 -0
  46. package/src/models/ListContextStoresResponseBody.ts +14 -0
  47. package/src/models/SearchContextRequest.ts +61 -0
  48. package/src/models/SearchContextResponseBody.ts +14 -0
  49. package/src/models/UpdateContextStoreRequest.ts +710 -9
  50. package/src/models/UpdateContextStoreResponseBody.ts +10 -0
  51. package/src/models/model.ts +40 -0
@@ -2,15 +2,555 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class UpdateContextStoreRequestConfigAudit extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies whether to write item events for dropped recall candidates. Default value: false.
9
+ *
10
+ * @example
11
+ * false
12
+ */
13
+ droppedCandidates?: boolean;
14
+ /**
15
+ * @remarks
16
+ * The recording mode for recall queries. Valid values: raw (plaintext) and hash (HMAC only). Default value: raw.
17
+ *
18
+ * @example
19
+ * raw
20
+ */
21
+ queryMode?: string;
22
+ /**
23
+ * @remarks
24
+ * The number of days to retain audit logs. Valid values: 1 to 180. Default value: 30.
25
+ *
26
+ * @example
27
+ * 30
28
+ */
29
+ retentionDays?: number;
30
+ static names(): { [key: string]: string } {
31
+ return {
32
+ droppedCandidates: 'droppedCandidates',
33
+ queryMode: 'queryMode',
34
+ retentionDays: 'retentionDays',
35
+ };
36
+ }
37
+
38
+ static types(): { [key: string]: any } {
39
+ return {
40
+ droppedCandidates: 'boolean',
41
+ queryMode: 'string',
42
+ retentionDays: 'number',
43
+ };
44
+ }
45
+
46
+ validate() {
47
+ super.validate();
48
+ }
49
+
50
+ constructor(map?: { [key: string]: any }) {
51
+ super(map);
52
+ }
53
+ }
54
+
55
+ export class UpdateContextStoreRequestConfigExtractionPolicyModel extends $dara.Model {
56
+ /**
57
+ * @remarks
58
+ * The name of the extraction model. Currently, only qwen3.8-flash is supported, which uses internal platform credentials.
59
+ *
60
+ * @example
61
+ * qwen3.8-flash
62
+ */
63
+ name?: string;
64
+ static names(): { [key: string]: string } {
65
+ return {
66
+ name: 'name',
67
+ };
68
+ }
69
+
70
+ static types(): { [key: string]: any } {
71
+ return {
72
+ name: 'string',
73
+ };
74
+ }
75
+
76
+ validate() {
77
+ super.validate();
78
+ }
79
+
80
+ constructor(map?: { [key: string]: any }) {
81
+ super(map);
82
+ }
83
+ }
84
+
85
+ export class UpdateContextStoreRequestConfigExtractionPolicy extends $dara.Model {
86
+ /**
87
+ * @remarks
88
+ * The list of memory categories.
89
+ *
90
+ * @example
91
+ * ["preference","profile"]
92
+ */
93
+ categories?: string[];
94
+ /**
95
+ * @remarks
96
+ * The custom extraction instructions. This parameter is required when preset is set to custom. Length: 1 to 8000 characters.
97
+ *
98
+ * @example
99
+ * Extract only user product preferences
100
+ */
101
+ customInstructions?: string;
102
+ /**
103
+ * @remarks
104
+ * The list of exclusion rules. Content that matches these rules is not extracted.
105
+ *
106
+ * @example
107
+ * ["Password","ID number"]
108
+ */
109
+ excludeRules?: string[];
110
+ /**
111
+ * @remarks
112
+ * The extraction model configuration.
113
+ */
114
+ model?: UpdateContextStoreRequestConfigExtractionPolicyModel;
115
+ /**
116
+ * @remarks
117
+ * The preset policy. Valid values: fact, toc-profile, tob-digital-twin, and custom. Default value: fact.
118
+ *
119
+ * @example
120
+ * fact
121
+ */
122
+ preset?: string;
123
+ static names(): { [key: string]: string } {
124
+ return {
125
+ categories: 'categories',
126
+ customInstructions: 'customInstructions',
127
+ excludeRules: 'excludeRules',
128
+ model: 'model',
129
+ preset: 'preset',
130
+ };
131
+ }
132
+
133
+ static types(): { [key: string]: any } {
134
+ return {
135
+ categories: { 'type': 'array', 'itemType': 'string' },
136
+ customInstructions: 'string',
137
+ excludeRules: { 'type': 'array', 'itemType': 'string' },
138
+ model: UpdateContextStoreRequestConfigExtractionPolicyModel,
139
+ preset: 'string',
140
+ };
141
+ }
142
+
143
+ validate() {
144
+ if(Array.isArray(this.categories)) {
145
+ $dara.Model.validateArray(this.categories);
146
+ }
147
+ if(Array.isArray(this.excludeRules)) {
148
+ $dara.Model.validateArray(this.excludeRules);
149
+ }
150
+ if(this.model && typeof (this.model as any).validate === 'function') {
151
+ (this.model as any).validate();
152
+ }
153
+ super.validate();
154
+ }
155
+
156
+ constructor(map?: { [key: string]: any }) {
157
+ super(map);
158
+ }
159
+ }
160
+
161
+ export class UpdateContextStoreRequestConfigScopePolicy extends $dara.Model {
162
+ /**
163
+ * @remarks
164
+ * The list of scope fields where at least one must be non-empty. Valid element values: userId, agentId, appId, and runId.
165
+ *
166
+ * @example
167
+ * ["userId"]
168
+ */
169
+ requiredAnyOf?: string[];
170
+ static names(): { [key: string]: string } {
171
+ return {
172
+ requiredAnyOf: 'requiredAnyOf',
173
+ };
174
+ }
175
+
176
+ static types(): { [key: string]: any } {
177
+ return {
178
+ requiredAnyOf: { 'type': 'array', 'itemType': 'string' },
179
+ };
180
+ }
181
+
182
+ validate() {
183
+ if(Array.isArray(this.requiredAnyOf)) {
184
+ $dara.Model.validateArray(this.requiredAnyOf);
185
+ }
186
+ super.validate();
187
+ }
188
+
189
+ constructor(map?: { [key: string]: any }) {
190
+ super(map);
191
+ }
192
+ }
193
+
194
+ export class UpdateContextStoreRequestConfigSourceDatasetCustomFields extends $dara.Model {
195
+ /**
196
+ * @remarks
197
+ * The description of the field. This parameter is required when usage is set to extraction-input.
198
+ *
199
+ * @example
200
+ * Customer tier
201
+ */
202
+ description?: string;
203
+ /**
204
+ * @remarks
205
+ * Specifies whether the field is a sensitive field.
206
+ *
207
+ * @example
208
+ * false
209
+ */
210
+ sensitive?: boolean;
211
+ /**
212
+ * @remarks
213
+ * The name of the source field.
214
+ *
215
+ * @example
216
+ * customerTier
217
+ */
218
+ sourceField?: string;
219
+ /**
220
+ * @remarks
221
+ * The target write path, such as metadata.customerTier.
222
+ *
223
+ * @example
224
+ * metadata.customerTier
225
+ */
226
+ target?: string;
227
+ /**
228
+ * @remarks
229
+ * The usage of the field. Valid values: extraction-input (participates in extraction) and ignore (ignored).
230
+ *
231
+ * @example
232
+ * extraction-input
233
+ */
234
+ usage?: string;
235
+ static names(): { [key: string]: string } {
236
+ return {
237
+ description: 'description',
238
+ sensitive: 'sensitive',
239
+ sourceField: 'sourceField',
240
+ target: 'target',
241
+ usage: 'usage',
242
+ };
243
+ }
244
+
245
+ static types(): { [key: string]: any } {
246
+ return {
247
+ description: 'string',
248
+ sensitive: 'boolean',
249
+ sourceField: 'string',
250
+ target: 'string',
251
+ usage: 'string',
252
+ };
253
+ }
254
+
255
+ validate() {
256
+ super.validate();
257
+ }
258
+
259
+ constructor(map?: { [key: string]: any }) {
260
+ super(map);
261
+ }
262
+ }
263
+
264
+ export class UpdateContextStoreRequestConfigSourceDatasetFilter extends $dara.Model {
265
+ /**
266
+ * @remarks
267
+ * The subset of the Pipeline where clause, which is pushed down to SQL.
268
+ *
269
+ * @example
270
+ * appId = \\"crm-service\\"
271
+ */
272
+ where?: string;
273
+ static names(): { [key: string]: string } {
274
+ return {
275
+ where: 'where',
276
+ };
277
+ }
278
+
279
+ static types(): { [key: string]: any } {
280
+ return {
281
+ where: 'string',
282
+ };
283
+ }
284
+
285
+ validate() {
286
+ super.validate();
287
+ }
288
+
289
+ constructor(map?: { [key: string]: any }) {
290
+ super(map);
291
+ }
292
+ }
293
+
294
+ export class UpdateContextStoreRequestConfigSourceDataset extends $dara.Model {
295
+ /**
296
+ * @remarks
297
+ * The list of custom field declarations. If provided, it fully overwrites the existing declarations.
298
+ */
299
+ customFields?: UpdateContextStoreRequestConfigSourceDatasetCustomFields[];
300
+ /**
301
+ * @remarks
302
+ * The row filter conditions.
303
+ */
304
+ filter?: UpdateContextStoreRequestConfigSourceDatasetFilter;
305
+ /**
306
+ * @remarks
307
+ * The polling interval in seconds. Valid values: 60 to 3600.
308
+ *
309
+ * @example
310
+ * 300
311
+ */
312
+ pollIntervalSeconds?: number;
313
+ static names(): { [key: string]: string } {
314
+ return {
315
+ customFields: 'customFields',
316
+ filter: 'filter',
317
+ pollIntervalSeconds: 'pollIntervalSeconds',
318
+ };
319
+ }
320
+
321
+ static types(): { [key: string]: any } {
322
+ return {
323
+ customFields: { 'type': 'array', 'itemType': UpdateContextStoreRequestConfigSourceDatasetCustomFields },
324
+ filter: UpdateContextStoreRequestConfigSourceDatasetFilter,
325
+ pollIntervalSeconds: 'number',
326
+ };
327
+ }
328
+
329
+ validate() {
330
+ if(Array.isArray(this.customFields)) {
331
+ $dara.Model.validateArray(this.customFields);
332
+ }
333
+ if(this.filter && typeof (this.filter as any).validate === 'function') {
334
+ (this.filter as any).validate();
335
+ }
336
+ super.validate();
337
+ }
338
+
339
+ constructor(map?: { [key: string]: any }) {
340
+ super(map);
341
+ }
342
+ }
343
+
344
+ export class UpdateContextStoreRequestConfigSourceTrajectoryFilter extends $dara.Model {
345
+ /**
346
+ * @remarks
347
+ * The list of agent names. An explicitly empty list returns a 400 error.
348
+ *
349
+ * @example
350
+ * ["sales-copilot"]
351
+ */
352
+ agentNames?: string[];
353
+ /**
354
+ * @remarks
355
+ * Specifies whether to exclude degraded trajectories. Default value: false (degraded trajectories are included).
356
+ *
357
+ * @example
358
+ * false
359
+ */
360
+ excludeDegraded?: boolean;
361
+ /**
362
+ * @remarks
363
+ * The minimum number of steps, which must be greater than or equal to 0.
364
+ *
365
+ * @example
366
+ * 2
367
+ */
368
+ minStepCount?: number;
369
+ /**
370
+ * @remarks
371
+ * The native SLS query statement. This statement is combined with the preceding conditions by using the AND operator.
372
+ *
373
+ * @example
374
+ * tool_names:"search_order"
375
+ */
376
+ query?: string;
377
+ /**
378
+ * @remarks
379
+ * The list of service names. A single trailing asterisk (*) is supported. Specifying an explicitly empty list returns a 400 error.
380
+ *
381
+ * @example
382
+ * ["crm-service","app-*"]
383
+ */
384
+ serviceNames?: string[];
385
+ static names(): { [key: string]: string } {
386
+ return {
387
+ agentNames: 'agentNames',
388
+ excludeDegraded: 'excludeDegraded',
389
+ minStepCount: 'minStepCount',
390
+ query: 'query',
391
+ serviceNames: 'serviceNames',
392
+ };
393
+ }
394
+
395
+ static types(): { [key: string]: any } {
396
+ return {
397
+ agentNames: { 'type': 'array', 'itemType': 'string' },
398
+ excludeDegraded: 'boolean',
399
+ minStepCount: 'number',
400
+ query: 'string',
401
+ serviceNames: { 'type': 'array', 'itemType': 'string' },
402
+ };
403
+ }
404
+
405
+ validate() {
406
+ if(Array.isArray(this.agentNames)) {
407
+ $dara.Model.validateArray(this.agentNames);
408
+ }
409
+ if(Array.isArray(this.serviceNames)) {
410
+ $dara.Model.validateArray(this.serviceNames);
411
+ }
412
+ super.validate();
413
+ }
414
+
415
+ constructor(map?: { [key: string]: any }) {
416
+ super(map);
417
+ }
418
+ }
419
+
420
+ export class UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping extends $dara.Model {
421
+ /**
422
+ * @remarks
423
+ * The JSONPath expression for the agentId field. Default value: $.agent_name.
424
+ *
425
+ * @example
426
+ * $.agent_name
427
+ */
428
+ agentId?: string;
429
+ /**
430
+ * @remarks
431
+ * The JSONPath expression for the appId field. Default value: $.service_names[0].
432
+ *
433
+ * @example
434
+ * $.service_names[0]
435
+ */
436
+ appId?: string;
437
+ /**
438
+ * @remarks
439
+ * The JSONPath expression for the runId field. Default value: $.trajectory_id.
440
+ *
441
+ * @example
442
+ * $.trajectory_id
443
+ */
444
+ runId?: string;
445
+ /**
446
+ * @remarks
447
+ * The JSONPath expression for the userId field. By default, this field is not mapped.
448
+ *
449
+ * @example
450
+ * $.trajectory_extensions.user_id
451
+ */
452
+ userId?: string;
453
+ static names(): { [key: string]: string } {
454
+ return {
455
+ agentId: 'agentId',
456
+ appId: 'appId',
457
+ runId: 'runId',
458
+ userId: 'userId',
459
+ };
460
+ }
461
+
462
+ static types(): { [key: string]: any } {
463
+ return {
464
+ agentId: 'string',
465
+ appId: 'string',
466
+ runId: 'string',
467
+ userId: 'string',
468
+ };
469
+ }
470
+
471
+ validate() {
472
+ super.validate();
473
+ }
474
+
475
+ constructor(map?: { [key: string]: any }) {
476
+ super(map);
477
+ }
478
+ }
479
+
480
+ export class UpdateContextStoreRequestConfigSourceTrajectory extends $dara.Model {
481
+ /**
482
+ * @remarks
483
+ * The trajectory filter conditions. Conditions are combined with AND, while items within a list are combined with OR.
484
+ */
485
+ filter?: UpdateContextStoreRequestConfigSourceTrajectoryFilter;
486
+ /**
487
+ * @remarks
488
+ * The name of the trajectory Logstore. Default value: agent-trajectory. This parameter cannot be modified after creation.
489
+ *
490
+ * @example
491
+ * agent-trajectory
492
+ */
493
+ logstore?: string;
494
+ /**
495
+ * @remarks
496
+ * The polling interval in seconds. Valid values: 60 to 3600.
497
+ *
498
+ * @example
499
+ * 300
500
+ */
501
+ pollIntervalSeconds?: number;
502
+ /**
503
+ * @remarks
504
+ * The scope field mapping. The value must be a JSONPath expression. Only the $.a.b and $.a[0] formats are supported.
505
+ */
506
+ scopeMapping?: UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping;
507
+ static names(): { [key: string]: string } {
508
+ return {
509
+ filter: 'filter',
510
+ logstore: 'logstore',
511
+ pollIntervalSeconds: 'pollIntervalSeconds',
512
+ scopeMapping: 'scopeMapping',
513
+ };
514
+ }
515
+
516
+ static types(): { [key: string]: any } {
517
+ return {
518
+ filter: UpdateContextStoreRequestConfigSourceTrajectoryFilter,
519
+ logstore: 'string',
520
+ pollIntervalSeconds: 'number',
521
+ scopeMapping: UpdateContextStoreRequestConfigSourceTrajectoryScopeMapping,
522
+ };
523
+ }
524
+
525
+ validate() {
526
+ if(this.filter && typeof (this.filter as any).validate === 'function') {
527
+ (this.filter as any).validate();
528
+ }
529
+ if(this.scopeMapping && typeof (this.scopeMapping as any).validate === 'function') {
530
+ (this.scopeMapping as any).validate();
531
+ }
532
+ super.validate();
533
+ }
534
+
535
+ constructor(map?: { [key: string]: any }) {
536
+ super(map);
537
+ }
538
+ }
539
+
5
540
  export class UpdateContextStoreRequestConfigSource extends $dara.Model {
6
541
  /**
7
542
  * @remarks
8
- * The AgentSpace where the trace data source resides. Cross-AgentSpace access is not supported. If specified, the value must be the same as the path AgentSpace. Otherwise, a 400 parameter error is returned. The AgentSpace cannot be changed after creation.
543
+ * The AgentSpace where the trace data source is located. Cross-AgentSpace is not supported in the current phase. If provided, it must be equal to the path AgentSpace. Otherwise, a 400 parameter error is returned. The AgentSpace cannot be changed after creation.
9
544
  *
10
545
  * @example
11
546
  * my-agent-space
12
547
  */
13
548
  agentSpace?: string;
549
+ /**
550
+ * @remarks
551
+ * The updatable items for the Dataset data source. The datasetName cannot be changed after creation.
552
+ */
553
+ dataset?: UpdateContextStoreRequestConfigSourceDataset;
14
554
  /**
15
555
  * @remarks
16
556
  * The start time for data backfill, in ISO 8601 UTC format.
@@ -19,21 +559,129 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
19
559
  * 2026-01-01T00:00:00Z
20
560
  */
21
561
  startTime?: string;
562
+ /**
563
+ * @remarks
564
+ * The updatable items for the trajectory data source. The source.type cannot be changed after creation.
565
+ */
566
+ trajectory?: UpdateContextStoreRequestConfigSourceTrajectory;
22
567
  static names(): { [key: string]: string } {
23
568
  return {
24
569
  agentSpace: 'agentSpace',
570
+ dataset: 'dataset',
25
571
  startTime: 'startTime',
572
+ trajectory: 'trajectory',
26
573
  };
27
574
  }
28
575
 
29
576
  static types(): { [key: string]: any } {
30
577
  return {
31
578
  agentSpace: 'string',
579
+ dataset: UpdateContextStoreRequestConfigSourceDataset,
32
580
  startTime: 'string',
581
+ trajectory: UpdateContextStoreRequestConfigSourceTrajectory,
33
582
  };
34
583
  }
35
584
 
36
585
  validate() {
586
+ if(this.dataset && typeof (this.dataset as any).validate === 'function') {
587
+ (this.dataset as any).validate();
588
+ }
589
+ if(this.trajectory && typeof (this.trajectory as any).validate === 'function') {
590
+ (this.trajectory as any).validate();
591
+ }
592
+ super.validate();
593
+ }
594
+
595
+ constructor(map?: { [key: string]: any }) {
596
+ super(map);
597
+ }
598
+ }
599
+
600
+ export class UpdateContextStoreRequestConfigStoragePolicy extends $dara.Model {
601
+ /**
602
+ * @remarks
603
+ * The allowed storage actions. By default, all actions are allowed: ADD, UPDATE, MERGE, and DELETE.
604
+ *
605
+ * @example
606
+ * ["ADD","UPDATE","MERGE","DELETE"]
607
+ */
608
+ allowedActions?: string[];
609
+ /**
610
+ * @remarks
611
+ * Specifies whether to deduplicate events in event mode. Default value: true.
612
+ *
613
+ * @example
614
+ * true
615
+ */
616
+ dedupe?: boolean;
617
+ /**
618
+ * @remarks
619
+ * Specifies whether to enable human edit protection. Default value: true. When this feature is enabled, automatic extraction does not overwrite manually modified memories.
620
+ *
621
+ * @example
622
+ * true
623
+ */
624
+ humanEditProtection?: boolean;
625
+ /**
626
+ * @remarks
627
+ * The merge key for upsert operations. Valid values: factKey, semantic, and both. Default value: semantic.
628
+ *
629
+ * @example
630
+ * semantic
631
+ */
632
+ mergeKey?: string;
633
+ /**
634
+ * @remarks
635
+ * The storage mode. Valid values: event (append events) and upsert (merge and update). Default value: upsert.
636
+ *
637
+ * @example
638
+ * upsert
639
+ */
640
+ mode?: string;
641
+ /**
642
+ * @remarks
643
+ * The similarity threshold for semantic merging. Valid values: 0 to 1. Default value: 0.4.
644
+ *
645
+ * @example
646
+ * 0.4
647
+ */
648
+ similarityThreshold?: number;
649
+ /**
650
+ * @remarks
651
+ * The number of days before the memory expires. A value of 0 indicates that the memory never expires.
652
+ *
653
+ * @example
654
+ * 0
655
+ */
656
+ ttlDays?: number;
657
+ static names(): { [key: string]: string } {
658
+ return {
659
+ allowedActions: 'allowedActions',
660
+ dedupe: 'dedupe',
661
+ humanEditProtection: 'humanEditProtection',
662
+ mergeKey: 'mergeKey',
663
+ mode: 'mode',
664
+ similarityThreshold: 'similarityThreshold',
665
+ ttlDays: 'ttlDays',
666
+ };
667
+ }
668
+
669
+ static types(): { [key: string]: any } {
670
+ return {
671
+ allowedActions: { 'type': 'array', 'itemType': 'string' },
672
+ dedupe: 'boolean',
673
+ humanEditProtection: 'boolean',
674
+ mergeKey: 'string',
675
+ mode: 'string',
676
+ similarityThreshold: 'number',
677
+ ttlDays: 'number',
678
+ };
679
+ }
680
+
681
+ validate() {
682
+ if(Array.isArray(this.allowedActions)) {
683
+ $dara.Model.validateArray(this.allowedActions);
684
+ }
37
685
  super.validate();
38
686
  }
39
687
 
@@ -45,7 +693,17 @@ export class UpdateContextStoreRequestConfigSource extends $dara.Model {
45
693
  export class UpdateContextStoreRequestConfig extends $dara.Model {
46
694
  /**
47
695
  * @remarks
48
- * The metadata field mapping. The key is the business field and the value is the storage field.
696
+ * The audit configuration.
697
+ */
698
+ audit?: UpdateContextStoreRequestConfigAudit;
699
+ /**
700
+ * @remarks
701
+ * The extraction policy for the memory type.
702
+ */
703
+ extractionPolicy?: UpdateContextStoreRequestConfigExtractionPolicy;
704
+ /**
705
+ * @remarks
706
+ * The metadata field mapping. The key is the business field, and the value is the storage field.
49
707
  *
50
708
  * @example
51
709
  * {"userId":"user_id","sessionId":"session_id"}
@@ -53,30 +711,60 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
53
711
  metadataField?: { [key: string]: string };
54
712
  /**
55
713
  * @remarks
56
- * The datasource config, which serves only as the root identifier of the data source.
714
+ * The scope constraint policy.
715
+ */
716
+ scopePolicy?: UpdateContextStoreRequestConfigScopePolicy;
717
+ /**
718
+ * @remarks
719
+ * The datasource config, which serves only as the root identity for the data source.
57
720
  */
58
721
  source?: UpdateContextStoreRequestConfigSource;
722
+ /**
723
+ * @remarks
724
+ * The storage policy for the memory type.
725
+ */
726
+ storagePolicy?: UpdateContextStoreRequestConfigStoragePolicy;
59
727
  static names(): { [key: string]: string } {
60
728
  return {
729
+ audit: 'audit',
730
+ extractionPolicy: 'extractionPolicy',
61
731
  metadataField: 'metadataField',
732
+ scopePolicy: 'scopePolicy',
62
733
  source: 'source',
734
+ storagePolicy: 'storagePolicy',
63
735
  };
64
736
  }
65
737
 
66
738
  static types(): { [key: string]: any } {
67
739
  return {
740
+ audit: UpdateContextStoreRequestConfigAudit,
741
+ extractionPolicy: UpdateContextStoreRequestConfigExtractionPolicy,
68
742
  metadataField: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
743
+ scopePolicy: UpdateContextStoreRequestConfigScopePolicy,
69
744
  source: UpdateContextStoreRequestConfigSource,
745
+ storagePolicy: UpdateContextStoreRequestConfigStoragePolicy,
70
746
  };
71
747
  }
72
748
 
73
749
  validate() {
750
+ if(this.audit && typeof (this.audit as any).validate === 'function') {
751
+ (this.audit as any).validate();
752
+ }
753
+ if(this.extractionPolicy && typeof (this.extractionPolicy as any).validate === 'function') {
754
+ (this.extractionPolicy as any).validate();
755
+ }
74
756
  if(this.metadataField) {
75
757
  $dara.Model.validateMap(this.metadataField);
76
758
  }
759
+ if(this.scopePolicy && typeof (this.scopePolicy as any).validate === 'function') {
760
+ (this.scopePolicy as any).validate();
761
+ }
77
762
  if(this.source && typeof (this.source as any).validate === 'function') {
78
763
  (this.source as any).validate();
79
764
  }
765
+ if(this.storagePolicy && typeof (this.storagePolicy as any).validate === 'function') {
766
+ (this.storagePolicy as any).validate();
767
+ }
80
768
  super.validate();
81
769
  }
82
770
 
@@ -88,12 +776,20 @@ export class UpdateContextStoreRequestConfig extends $dara.Model {
88
776
  export class UpdateContextStoreRequest extends $dara.Model {
89
777
  /**
90
778
  * @remarks
91
- * The context store configuration. If specified, the entire configuration is overwritten. If not specified, the existing configuration is retained.
779
+ * The description of the policy change. A new policy version is created when policy fields in the configuration are modified.
780
+ *
781
+ * @example
782
+ * Relax similarity threshold
783
+ */
784
+ changeNote?: string;
785
+ /**
786
+ * @remarks
787
+ * The context library configuration. If provided, it fully overwrites the existing configuration. If omitted, the original configuration is retained.
92
788
  */
93
789
  config?: UpdateContextStoreRequestConfig;
94
790
  /**
95
791
  * @remarks
96
- * The type of the context store. This value typically cannot be changed after creation. This field is provided only for exception correction.
792
+ * The context library type. This field is typically immutable after creation and is provided only for exception correction.
97
793
  *
98
794
  * @example
99
795
  * experience
@@ -101,20 +797,23 @@ export class UpdateContextStoreRequest extends $dara.Model {
101
797
  contextType?: string;
102
798
  /**
103
799
  * @remarks
104
- * The description of the context store, which helps business users understand its purpose.
800
+ * The description of the context library, which helps business users understand its purpose.
105
801
  *
106
802
  * @example
107
- * 我的上下文库
803
+ * My context library
108
804
  */
109
805
  description?: string;
110
806
  /**
807
+ * @remarks
808
+ * The running status. For the memory type, valid values are Active (running) and Paused (data source consumption and extraction paused). For the experience type, it indicates the mining status of the experience library. The specific valid values and combination constraints are defined by the server.
809
+ *
111
810
  * @example
112
- * Paused
811
+ * Active
113
812
  */
114
813
  status?: string;
115
814
  /**
116
815
  * @remarks
117
- * The idempotency token. A unique string generated by the client to ensure that the update operation is idempotent.
816
+ * The idempotency token. It is a unique string generated by the client to ensure the idempotence of the update operation.
118
817
  *
119
818
  * @example
120
819
  * a1b2c3d4-1234-5678-90ab-cdef12345678
@@ -122,6 +821,7 @@ export class UpdateContextStoreRequest extends $dara.Model {
122
821
  clientToken?: string;
123
822
  static names(): { [key: string]: string } {
124
823
  return {
824
+ changeNote: 'changeNote',
125
825
  config: 'config',
126
826
  contextType: 'contextType',
127
827
  description: 'description',
@@ -132,6 +832,7 @@ export class UpdateContextStoreRequest extends $dara.Model {
132
832
 
133
833
  static types(): { [key: string]: any } {
134
834
  return {
835
+ changeNote: 'string',
135
836
  config: UpdateContextStoreRequestConfig,
136
837
  contextType: 'string',
137
838
  description: 'string',