@openvtc/trust-tasks 0.12.1 → 0.12.3

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 (41) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +7 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/vta/_shared/0.1/app-state-record.d.ts +17 -0
  6. package/dist/vta/_shared/0.1/app-state-record.d.ts.map +1 -0
  7. package/dist/vta/_shared/0.1/app-state-record.js +6 -0
  8. package/dist/vta/_shared/0.1/app-state-record.js.map +1 -0
  9. package/dist/vta/app-state/delete/1.0/payload.d.ts +488 -0
  10. package/dist/vta/app-state/delete/1.0/payload.d.ts.map +1 -0
  11. package/dist/vta/app-state/delete/1.0/payload.js +248 -0
  12. package/dist/vta/app-state/delete/1.0/payload.js.map +1 -0
  13. package/dist/vta/app-state/get/1.0/payload.d.ts +611 -0
  14. package/dist/vta/app-state/get/1.0/payload.d.ts.map +1 -0
  15. package/dist/vta/app-state/get/1.0/payload.js +306 -0
  16. package/dist/vta/app-state/get/1.0/payload.js.map +1 -0
  17. package/dist/vta/app-state/get-many/1.0/payload.d.ts +716 -0
  18. package/dist/vta/app-state/get-many/1.0/payload.d.ts.map +1 -0
  19. package/dist/vta/app-state/get-many/1.0/payload.js +350 -0
  20. package/dist/vta/app-state/get-many/1.0/payload.js.map +1 -0
  21. package/dist/vta/app-state/list/1.0/payload.d.ts +778 -0
  22. package/dist/vta/app-state/list/1.0/payload.d.ts.map +1 -0
  23. package/dist/vta/app-state/list/1.0/payload.js +368 -0
  24. package/dist/vta/app-state/list/1.0/payload.js.map +1 -0
  25. package/dist/vta/app-state/put/1.0/payload.d.ts +560 -0
  26. package/dist/vta/app-state/put/1.0/payload.d.ts.map +1 -0
  27. package/dist/vta/app-state/put/1.0/payload.js +291 -0
  28. package/dist/vta/app-state/put/1.0/payload.js.map +1 -0
  29. package/dist/vta/app-state/put-many/1.0/payload.d.ts +856 -0
  30. package/dist/vta/app-state/put-many/1.0/payload.d.ts.map +1 -0
  31. package/dist/vta/app-state/put-many/1.0/payload.js +455 -0
  32. package/dist/vta/app-state/put-many/1.0/payload.js.map +1 -0
  33. package/package.json +1 -1
  34. package/src/index.ts +7 -0
  35. package/src/vta/_shared/0.1/app-state-record.ts +17 -0
  36. package/src/vta/app-state/delete/1.0/payload.ts +323 -0
  37. package/src/vta/app-state/get/1.0/payload.ts +404 -0
  38. package/src/vta/app-state/get-many/1.0/payload.ts +469 -0
  39. package/src/vta/app-state/list/1.0/payload.ts +509 -0
  40. package/src/vta/app-state/put/1.0/payload.ts +382 -0
  41. package/src/vta/app-state/put-many/1.0/payload.ts +584 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../../../src/vta/app-state/get-many/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAC/B;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,MAAM,CAAC;AACzB;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAChC;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,IAAI,EAAE,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC,CAAC;IACtB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,GAAG,CAAC,EAAE,GAAG,CAAC;CACX;AACD;;GAEG;AACH,MAAM,WAAW,GAAG;IAClB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CAClC;AACD;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD;;OAEG;IACH,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;;;;;;;;;;;;;;;;;;;;;;;;CA2KjB,CAAC;AAEX,mEAAmE;AACnE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqI1B,CAAC;AAEX;;;;;GAKG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMP,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMhB,CAAC"}
@@ -0,0 +1,350 @@
1
+ /**
2
+ * Generated by scripts/build-ts-bindings.mjs — DO NOT EDIT BY HAND.
3
+ * Source: specs/vta/app-state/get-many/1.0/payload.schema.json
4
+ */
5
+ /** Trust Task type URI. */
6
+ export const TYPE_URI = "https://trusttasks.org/spec/vta/app-state/get-many/1.0";
7
+ /** Trust Task response type URI (request type URI + "#response"). */
8
+ export const RESPONSE_TYPE_URI = "https://trusttasks.org/spec/vta/app-state/get-many/1.0#response";
9
+ /**
10
+ * This specification's payload schema, as a value.
11
+ *
12
+ * SPEC.md §7.2 item 2 is performed against this. It is shipped as data
13
+ * rather than only as a `.json` file because TypeScript types are erased
14
+ * at runtime: without a schema a consumer has nothing to validate, and
15
+ * every REQUIRED payload member is optional in practice. Cross-file
16
+ * `$ref`s are already inlined, so it needs no resolver.
17
+ */
18
+ export const PAYLOAD_SCHEMA = {
19
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
20
+ "$id": "https://trusttasks.org/spec/vta/app-state/get-many/1.0",
21
+ "title": "VTA Application State Get-Many — payload",
22
+ "description": "Read up to 256 application-state records from one namespace in a single round trip. A rebuild or a reconnect is N records, and round-tripping each one separately is the difference between a usable reconnect and an unusable one.",
23
+ "type": "object",
24
+ "additionalProperties": false,
25
+ "required": [
26
+ "contextId",
27
+ "namespace",
28
+ "keys"
29
+ ],
30
+ "properties": {
31
+ "contextId": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "description": "The VTA context the records are scoped to; the isolation boundary."
35
+ },
36
+ "namespace": {
37
+ "$ref": "#/$defs/Namespace",
38
+ "description": "Required, unlike in list: a batch read addresses records by key, and a key is only unique within a namespace."
39
+ },
40
+ "keys": {
41
+ "type": "array",
42
+ "minItems": 1,
43
+ "maxItems": 256,
44
+ "uniqueItems": true,
45
+ "items": {
46
+ "$ref": "#/$defs/Key"
47
+ },
48
+ "description": "The keys to read. Duplicates are refused rather than deduplicated, because a caller that sent one did not mean to and would otherwise never find out."
49
+ },
50
+ "includeDeleted": {
51
+ "type": "boolean",
52
+ "description": "Defaults to false. When true, an address holding a tombstone yields a record with `deleted: true` rather than appearing in `missing`."
53
+ },
54
+ "ext": {
55
+ "$ref": "#/$defs/Ext",
56
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
57
+ }
58
+ },
59
+ "$defs": {
60
+ "Response": {
61
+ "$anchor": "response",
62
+ "title": "VTA Application State Get-Many — response payload",
63
+ "description": "Success response to vta/app-state/get-many. Type https://trusttasks.org/spec/vta/app-state/get-many/1.0#response. Every requested key appears in exactly one of `records`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.",
64
+ "type": "object",
65
+ "additionalProperties": false,
66
+ "required": [
67
+ "records",
68
+ "missing"
69
+ ],
70
+ "properties": {
71
+ "records": {
72
+ "type": "array",
73
+ "items": {
74
+ "$ref": "#/$defs/AppStateRecord"
75
+ },
76
+ "description": "The records found, each with its `value`, in the order the keys were requested. May be empty."
77
+ },
78
+ "missing": {
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "#/$defs/Key"
82
+ },
83
+ "description": "Requested keys holding no record — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted, so a caller need not diff the request against the response to notice."
84
+ },
85
+ "deferred": {
86
+ "type": "array",
87
+ "items": {
88
+ "$ref": "#/$defs/Key"
89
+ },
90
+ "description": "Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. This exists because the per-record cap multiplied by the key ceiling exceeds any sane response limit, and the alternative — refusing the whole batch — would make a caller guess at a batch size instead of being told one."
91
+ },
92
+ "ext": {
93
+ "$ref": "#/$defs/Ext",
94
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
95
+ }
96
+ }
97
+ },
98
+ "Ext": {
99
+ "title": "Ext",
100
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
101
+ "type": "object",
102
+ "minProperties": 1,
103
+ "additionalProperties": true,
104
+ "propertyNames": {
105
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
106
+ }
107
+ },
108
+ "Key": {
109
+ "title": "Key",
110
+ "description": "Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.",
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 512,
114
+ "pattern": "^[^\\u0000]+$"
115
+ },
116
+ "AppStateRecord": {
117
+ "title": "AppStateRecord",
118
+ "description": "A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.",
119
+ "type": "object",
120
+ "additionalProperties": false,
121
+ "required": [
122
+ "contextId",
123
+ "namespace",
124
+ "key",
125
+ "version",
126
+ "deleted",
127
+ "updatedAt"
128
+ ],
129
+ "properties": {
130
+ "contextId": {
131
+ "type": "string",
132
+ "minLength": 1,
133
+ "description": "The VTA context the record is scoped to; the isolation boundary."
134
+ },
135
+ "namespace": {
136
+ "$ref": "#/$defs/Namespace"
137
+ },
138
+ "key": {
139
+ "$ref": "#/$defs/Key"
140
+ },
141
+ "version": {
142
+ "$ref": "#/$defs/Version",
143
+ "description": "The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between."
144
+ },
145
+ "value": {
146
+ "description": "The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value."
147
+ },
148
+ "valueBytes": {
149
+ "type": "integer",
150
+ "minimum": 0,
151
+ "description": "Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone."
152
+ },
153
+ "deleted": {
154
+ "type": "boolean",
155
+ "description": "True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`."
156
+ },
157
+ "createdAt": {
158
+ "type": "string",
159
+ "format": "date-time",
160
+ "description": "When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded."
161
+ },
162
+ "updatedAt": {
163
+ "type": "string",
164
+ "format": "date-time",
165
+ "description": "When the write that produced this `version` was applied. For a tombstone, when the delete was applied."
166
+ },
167
+ "deletedAt": {
168
+ "type": "string",
169
+ "format": "date-time",
170
+ "description": "When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten."
171
+ }
172
+ }
173
+ },
174
+ "Version": {
175
+ "title": "Version",
176
+ "description": "A value of the namespace's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.",
177
+ "type": "integer",
178
+ "minimum": 1
179
+ },
180
+ "Namespace": {
181
+ "title": "Namespace",
182
+ "description": "Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.",
183
+ "type": "string",
184
+ "minLength": 1,
185
+ "maxLength": 64,
186
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
187
+ }
188
+ }
189
+ };
190
+ /** As {@link PAYLOAD_SCHEMA}, for the success-response variant. */
191
+ export const RESPONSE_PAYLOAD_SCHEMA = {
192
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
193
+ "$ref": "#/$defs/Response",
194
+ "$defs": {
195
+ "Response": {
196
+ "$anchor": "response",
197
+ "title": "VTA Application State Get-Many — response payload",
198
+ "description": "Success response to vta/app-state/get-many. Type https://trusttasks.org/spec/vta/app-state/get-many/1.0#response. Every requested key appears in exactly one of `records`, `missing` or `deferred`, so a caller can account for all of them without comparing sets itself.",
199
+ "type": "object",
200
+ "additionalProperties": false,
201
+ "required": [
202
+ "records",
203
+ "missing"
204
+ ],
205
+ "properties": {
206
+ "records": {
207
+ "type": "array",
208
+ "items": {
209
+ "$ref": "#/$defs/AppStateRecord"
210
+ },
211
+ "description": "The records found, each with its `value`, in the order the keys were requested. May be empty."
212
+ },
213
+ "missing": {
214
+ "type": "array",
215
+ "items": {
216
+ "$ref": "#/$defs/Key"
217
+ },
218
+ "description": "Requested keys holding no record — and, unless `includeDeleted` was set, keys holding only a tombstone. Reported rather than silently omitted, so a caller need not diff the request against the response to notice."
219
+ },
220
+ "deferred": {
221
+ "type": "array",
222
+ "items": {
223
+ "$ref": "#/$defs/Key"
224
+ },
225
+ "description": "Requested keys the maintainer did not evaluate because the response had reached its size budget. The caller re-requests exactly these. This exists because the per-record cap multiplied by the key ceiling exceeds any sane response limit, and the alternative — refusing the whole batch — would make a caller guess at a batch size instead of being told one."
226
+ },
227
+ "ext": {
228
+ "$ref": "#/$defs/Ext",
229
+ "description": "Ecosystem-defined extension members per SPEC.md §4.5.1."
230
+ }
231
+ }
232
+ },
233
+ "Ext": {
234
+ "title": "Ext",
235
+ "description": "Vendor-namespaced extension object per SPEC.md §4.5.1. Each immediate key MUST be a reverse-DNS namespace; structure under each namespace is opaque to the framework.",
236
+ "type": "object",
237
+ "minProperties": 1,
238
+ "additionalProperties": true,
239
+ "propertyNames": {
240
+ "pattern": "^[a-z][a-z0-9-]*(\\.[a-z0-9-]+)+$"
241
+ }
242
+ },
243
+ "Key": {
244
+ "title": "Key",
245
+ "description": "Application-chosen identifier for a record within a namespace. Opaque to the maintainer: it MUST NOT be parsed, normalized, or case-folded, and prefix matching in `list` is a byte-prefix comparison over the UTF-8 encoding. Applications SHOULD use `/`-delimited hierarchical keys (`community/acme`, `contact/z6Mk…`) so that `prefix` can address a record family, but the delimiter is a convention between an application and itself — the maintainer attaches no meaning to it.",
246
+ "type": "string",
247
+ "minLength": 1,
248
+ "maxLength": 512,
249
+ "pattern": "^[^\\u0000]+$"
250
+ },
251
+ "AppStateRecord": {
252
+ "title": "AppStateRecord",
253
+ "description": "A record as the maintainer holds it. `value` is absent in three distinct situations and a consumer MUST NOT conflate them: the record is a tombstone (`deleted` is true); the caller asked for a metadata-only view (`list` without `includeValues`); or the value genuinely is the JSON literal `null`, in which case `value` is PRESENT and null. This is why `deleted` is required rather than defaulted — a consumer that has to infer deletion from an absent value gets the tombstone case wrong exactly when convergence depends on it.",
254
+ "type": "object",
255
+ "additionalProperties": false,
256
+ "required": [
257
+ "contextId",
258
+ "namespace",
259
+ "key",
260
+ "version",
261
+ "deleted",
262
+ "updatedAt"
263
+ ],
264
+ "properties": {
265
+ "contextId": {
266
+ "type": "string",
267
+ "minLength": 1,
268
+ "description": "The VTA context the record is scoped to; the isolation boundary."
269
+ },
270
+ "namespace": {
271
+ "$ref": "#/$defs/Namespace"
272
+ },
273
+ "key": {
274
+ "$ref": "#/$defs/Key"
275
+ },
276
+ "version": {
277
+ "$ref": "#/$defs/Version",
278
+ "description": "The namespace counter value this record's most recent write took. Supply it as `expectedVersion` on the next write to make that write conditional on nothing having changed in between."
279
+ },
280
+ "value": {
281
+ "description": "The stored JSON, in whatever shape the owning application chose. Any JSON value, including `null`. The maintainer neither validates nor interprets it. Absent when this is a tombstone or a metadata-only view — see this definition's description for why that is not the same as a null value."
282
+ },
283
+ "valueBytes": {
284
+ "type": "integer",
285
+ "minimum": 0,
286
+ "description": "Size of the stored value in bytes, measured as the maintainer measures it for the per-record cap (see `vta/app-state/put`). Present in metadata-only views so a consumer can decide what to fetch without fetching it; absent on a tombstone."
287
+ },
288
+ "deleted": {
289
+ "type": "boolean",
290
+ "description": "True when this is a tombstone: the record was deleted, and this entry exists so that a consumer syncing incrementally learns of the deletion. Tombstones are reaped after the maintainer's retention window; see `vta/app-state/list`."
291
+ },
292
+ "createdAt": {
293
+ "type": "string",
294
+ "format": "date-time",
295
+ "description": "When the record was first created at this address. MAY be absent on a tombstone whose body has been discarded."
296
+ },
297
+ "updatedAt": {
298
+ "type": "string",
299
+ "format": "date-time",
300
+ "description": "When the write that produced this `version` was applied. For a tombstone, when the delete was applied."
301
+ },
302
+ "deletedAt": {
303
+ "type": "string",
304
+ "format": "date-time",
305
+ "description": "When the record was deleted. Present only when `deleted` is true; equal to `updatedAt` for a tombstone the maintainer has not since rewritten."
306
+ }
307
+ }
308
+ },
309
+ "Version": {
310
+ "title": "Version",
311
+ "description": "A value of the namespace's monotonic write counter (see this schema's description). Server-assigned; a producer never chooses one.",
312
+ "type": "integer",
313
+ "minimum": 1
314
+ },
315
+ "Namespace": {
316
+ "title": "Namespace",
317
+ "description": "Scopes one application's records within a context, so several tools can share a context without colliding — `openvtc`, `cnm`, an agent runtime. The maintainer MUST NOT interpret the value; it is an opaque partition name. Namespaces are first-come and unreserved, so an application SHOULD pick a stable, specific one: a future per-namespace ACL would grant on this exact string, which makes renaming a namespace a migration rather than an edit.",
318
+ "type": "string",
319
+ "minLength": 1,
320
+ "maxLength": 64,
321
+ "pattern": "^[a-z][a-z0-9]*(-[a-z0-9]+)*$"
322
+ }
323
+ }
324
+ };
325
+ /**
326
+ * SPEC.md §7.2 policy for the request variant, from this specification's
327
+ * front matter. Pass to `consumeInbound` — items 5b, 7 and 8 are
328
+ * per-specification and cannot be derived from the document alone, and
329
+ * item 2 needs the schema this carries.
330
+ */
331
+ export const SPEC = {
332
+ typeUri: TYPE_URI,
333
+ isBearer: false,
334
+ isProofRequired: false,
335
+ isRecipientRequired: true,
336
+ payloadSchema: PAYLOAD_SCHEMA,
337
+ };
338
+ /**
339
+ * SPEC.md §7.2 policy for the success-response variant. `isRecipientRequired`
340
+ * tracks the *issuer* party's requirement because a response swaps the
341
+ * parties (§7.3 item 5).
342
+ */
343
+ export const RESPONSE_SPEC = {
344
+ typeUri: RESPONSE_TYPE_URI,
345
+ isBearer: false,
346
+ isProofRequired: false,
347
+ isRecipientRequired: true,
348
+ payloadSchema: RESPONSE_PAYLOAD_SCHEMA,
349
+ };
350
+ //# sourceMappingURL=payload.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payload.js","sourceRoot":"","sources":["../../../../../src/vta/app-state/get-many/1.0/payload.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA8GH,2BAA2B;AAC3B,MAAM,CAAC,MAAM,QAAQ,GAAG,wDAAiE,CAAC;AAK1F,qEAAqE;AACrE,MAAM,CAAC,MAAM,iBAAiB,GAAG,iEAA0E,CAAC;AAK5G;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,SAAS,EAAE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