@blue-repository/types 0.29.0 → 1.0.0-rc.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.
- package/README.md +1 -1
- package/dist/meta.d.ts +2 -2
- package/dist/meta.d.ts.map +1 -1
- package/dist/meta.js +2 -0
- package/dist/meta.js.map +1 -1
- package/dist/packages/conversation/blue-ids.d.ts +9 -9
- package/dist/packages/conversation/blue-ids.js +9 -9
- package/dist/packages/conversation/contents/index.d.ts +473 -473
- package/dist/packages/conversation/contents/index.d.ts.map +1 -1
- package/dist/packages/conversation/contents/index.js +27 -27
- package/dist/packages/conversation/contents/index.js.map +1 -1
- package/dist/packages/conversation/index.d.ts +517 -501
- package/dist/packages/conversation/index.d.ts.map +1 -1
- package/dist/packages/conversation/meta.d.ts +44 -28
- package/dist/packages/conversation/meta.d.ts.map +1 -1
- package/dist/packages/conversation/meta.js +39 -19
- package/dist/packages/conversation/meta.js.map +1 -1
- package/dist/packages/conversation/schemas/index.d.ts +9 -9
- package/dist/packages/conversation/schemas/index.js +9 -9
- package/dist/packages/conversation/schemas/index.js.map +1 -1
- package/dist/packages/myos/blue-ids.d.ts +29 -29
- package/dist/packages/myos/blue-ids.d.ts.map +1 -1
- package/dist/packages/myos/blue-ids.js +29 -29
- package/dist/packages/myos/blue-ids.js.map +1 -1
- package/dist/packages/myos/contents/DocumentSessionBootstrap.d.ts +2 -2
- package/dist/packages/myos/contents/DocumentSessionBootstrap.js +2 -2
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantRequested.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantRequested.js +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToAccount.d.ts +2 -2
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToAccount.js +2 -2
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToDocument.d.ts +2 -2
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantToDocument.js +2 -2
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGranted.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGranted.js +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantingInProgress.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionGrantingInProgress.js +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionRejected.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionRejected.js +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionRevoked.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionRevoked.js +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionRevokingInProgress.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionRevokingInProgress.js +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionSet.d.ts +1 -1
- package/dist/packages/myos/contents/LinkedDocumentsPermissionSet.js +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantRequested.d.ts +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantRequested.js +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantResponded.d.ts +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantResponded.js +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.d.ts +2 -2
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantToAccount.js +2 -2
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.d.ts +2 -2
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantToDocument.js +2 -2
- package/dist/packages/myos/contents/SingleDocumentPermissionGranted.d.ts +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGranted.js +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantingInProgress.d.ts +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionGrantingInProgress.js +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionRejected.d.ts +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionRejected.js +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionRevokingInProgress.d.ts +1 -1
- package/dist/packages/myos/contents/SingleDocumentPermissionRevokingInProgress.js +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermission.d.ts +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermission.js +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.d.ts +2 -2
- package/dist/packages/myos/contents/WorkerAgencyPermissionGrant.js +2 -2
- package/dist/packages/myos/contents/WorkerAgencyPermissionGrantRequested.d.ts +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionGrantRequested.js +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionGranted.d.ts +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionGranted.js +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionGrantingInProgress.d.ts +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionGrantingInProgress.js +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionRejected.d.ts +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionRejected.js +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionRevokingInProgress.d.ts +1 -1
- package/dist/packages/myos/contents/WorkerAgencyPermissionRevokingInProgress.js +1 -1
- package/dist/packages/myos/contents/index.d.ts +1477 -1477
- package/dist/packages/myos/contents/index.d.ts.map +1 -1
- package/dist/packages/myos/contents/index.js +75 -75
- package/dist/packages/myos/contents/index.js.map +1 -1
- package/dist/packages/myos/index.d.ts +1759 -1703
- package/dist/packages/myos/index.d.ts.map +1 -1
- package/dist/packages/myos/meta.d.ts +144 -88
- package/dist/packages/myos/meta.d.ts.map +1 -1
- package/dist/packages/myos/meta.js +129 -59
- package/dist/packages/myos/meta.js.map +1 -1
- package/dist/packages/myos/schemas/LinkedDocumentsPermissionGrantToAccount.d.ts +24 -24
- package/dist/packages/myos/schemas/SingleDocumentPermissionGrantToAccount.d.ts +24 -24
- package/dist/packages/myos/schemas/index.d.ts +77 -77
- package/dist/packages/myos/schemas/index.d.ts.map +1 -1
- package/dist/packages/myos/schemas/index.js +29 -29
- package/dist/packages/myos/schemas/index.js.map +1 -1
- package/dist/packages/paynote/blue-ids.d.ts +5 -5
- package/dist/packages/paynote/blue-ids.js +5 -5
- package/dist/packages/paynote/blue-ids.js.map +1 -1
- package/dist/packages/paynote/contents/CardTransactionPayNote.d.ts +1 -1
- package/dist/packages/paynote/contents/CardTransactionPayNote.js +1 -1
- package/dist/packages/paynote/contents/CardTransactionPayNote.js.map +1 -1
- package/dist/packages/paynote/contents/MerchantToCustomerPayNote.d.ts +1 -1
- package/dist/packages/paynote/contents/MerchantToCustomerPayNote.js +1 -1
- package/dist/packages/paynote/contents/MerchantToCustomerPayNote.js.map +1 -1
- package/dist/packages/paynote/contents/PayNote.d.ts +19 -0
- package/dist/packages/paynote/contents/PayNote.d.ts.map +1 -1
- package/dist/packages/paynote/contents/PayNote.js +19 -0
- package/dist/packages/paynote/contents/PayNote.js.map +1 -1
- package/dist/packages/paynote/contents/PayNoteDelivery.d.ts +4 -4
- package/dist/packages/paynote/contents/PayNoteDelivery.js +4 -4
- package/dist/packages/paynote/contents/PayNoteDelivery.js.map +1 -1
- package/dist/packages/paynote/contents/index.d.ts +1844 -1825
- package/dist/packages/paynote/contents/index.d.ts.map +1 -1
- package/dist/packages/paynote/contents/index.js +15 -15
- package/dist/packages/paynote/contents/index.js.map +1 -1
- package/dist/packages/paynote/index.d.ts +2687 -2371
- package/dist/packages/paynote/index.d.ts.map +1 -1
- package/dist/packages/paynote/meta.d.ts +20 -20
- package/dist/packages/paynote/meta.js +15 -15
- package/dist/packages/paynote/meta.js.map +1 -1
- package/dist/packages/paynote/schemas/CardTransactionPayNote.d.ts +127 -28
- package/dist/packages/paynote/schemas/CardTransactionPayNote.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/MerchantToCustomerPayNote.d.ts +127 -28
- package/dist/packages/paynote/schemas/MerchantToCustomerPayNote.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/PayNote.d.ts +127 -28
- package/dist/packages/paynote/schemas/PayNote.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/PayNote.js +3 -0
- package/dist/packages/paynote/schemas/PayNote.js.map +1 -1
- package/dist/packages/paynote/schemas/PayNoteDelivery.d.ts +36 -36
- package/dist/packages/paynote/schemas/index.d.ts +422 -125
- package/dist/packages/paynote/schemas/index.d.ts.map +1 -1
- package/dist/packages/paynote/schemas/index.js +5 -5
- package/dist/packages/paynote/schemas/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -4,17 +4,16 @@ export { TriggerEvent } from './TriggerEvent.js';
|
|
|
4
4
|
export { Response } from './Response.js';
|
|
5
5
|
export { Timeline } from './Timeline.js';
|
|
6
6
|
export { DocumentBootstrapRequested } from './DocumentBootstrapRequested.js';
|
|
7
|
-
export { ChangeWorkflow } from './ChangeWorkflow.js';
|
|
8
7
|
export { RejectChangeOperation } from './RejectChangeOperation.js';
|
|
9
|
-
export { StatusInProgress } from './StatusInProgress.js';
|
|
10
8
|
export { DocumentStatus } from './DocumentStatus.js';
|
|
11
|
-
export {
|
|
9
|
+
export { ChangeWorkflow } from './ChangeWorkflow.js';
|
|
10
|
+
export { StatusFailed } from './StatusFailed.js';
|
|
12
11
|
export { Event } from './Event.js';
|
|
13
12
|
export { LifecycleEvent } from './LifecycleEvent.js';
|
|
14
13
|
export { Source } from './Source.js';
|
|
14
|
+
export { StatusCompleted } from './StatusCompleted.js';
|
|
15
15
|
export { ContractsChangePolicy } from './ContractsChangePolicy.js';
|
|
16
16
|
export { CustomerActionRequested } from './CustomerActionRequested.js';
|
|
17
|
-
export { ProposeChangeWorkflow } from './ProposeChangeWorkflow.js';
|
|
18
17
|
export { DocumentRequest } from './DocumentRequest.js';
|
|
19
18
|
export { SequentialWorkflow } from './SequentialWorkflow.js';
|
|
20
19
|
export { InformUserAboutPendingAction } from './InformUserAboutPendingAction.js';
|
|
@@ -25,31 +24,32 @@ export { DocumentSectionChangeEntry } from './DocumentSectionChangeEntry.js';
|
|
|
25
24
|
export { ChatMessage } from './ChatMessage.js';
|
|
26
25
|
export { AcceptChangeOperation } from './AcceptChangeOperation.js';
|
|
27
26
|
export { DocumentBootstrapFailed } from './DocumentBootstrapFailed.js';
|
|
27
|
+
export { AcceptChangeWorkflow } from './AcceptChangeWorkflow.js';
|
|
28
28
|
export { ProposeChangeOperation } from './ProposeChangeOperation.js';
|
|
29
29
|
export { Operation } from './Operation.js';
|
|
30
30
|
export { StatusChange } from './StatusChange.js';
|
|
31
31
|
export { SequentialWorkflowOperation } from './SequentialWorkflowOperation.js';
|
|
32
32
|
export { Actor } from './Actor.js';
|
|
33
|
+
export { CustomerConsent } from './CustomerConsent.js';
|
|
33
34
|
export { DocumentSectionChanges } from './DocumentSectionChanges.js';
|
|
34
|
-
export { RejectChangeWorkflow } from './RejectChangeWorkflow.js';
|
|
35
35
|
export { ProposedChangeInvalid } from './ProposedChangeInvalid.js';
|
|
36
36
|
export { ActorPolicy } from './ActorPolicy.js';
|
|
37
|
-
export {
|
|
38
|
-
export { StatusCompleted } from './StatusCompleted.js';
|
|
39
|
-
export { StatusPending } from './StatusPending.js';
|
|
37
|
+
export { ProposeChangeWorkflow } from './ProposeChangeWorkflow.js';
|
|
40
38
|
export { TimelineChannel } from './TimelineChannel.js';
|
|
41
39
|
export { JavaScriptCode } from './JavaScriptCode.js';
|
|
40
|
+
export { RejectChangeWorkflow } from './RejectChangeWorkflow.js';
|
|
41
|
+
export { StatusInProgress } from './StatusInProgress.js';
|
|
42
42
|
export { AgentActor } from './AgentActor.js';
|
|
43
43
|
export { PrincipalActor } from './PrincipalActor.js';
|
|
44
44
|
export { UpdateDocument } from './UpdateDocument.js';
|
|
45
45
|
export { ChangeRequest } from './ChangeRequest.js';
|
|
46
46
|
export { CustomerActionResponded } from './CustomerActionResponded.js';
|
|
47
|
-
export { StatusFailed } from './StatusFailed.js';
|
|
48
47
|
export { APICall } from './APICall.js';
|
|
49
48
|
export { ChangeOperation } from './ChangeOperation.js';
|
|
50
49
|
export { DocumentBootstrapCompleted } from './DocumentBootstrapCompleted.js';
|
|
51
50
|
export { OperationRequest } from './OperationRequest.js';
|
|
52
51
|
export { CompositeTimelineChannel } from './CompositeTimelineChannel.js';
|
|
52
|
+
export { StatusPending } from './StatusPending.js';
|
|
53
53
|
export { SequentialWorkflowStep } from './SequentialWorkflowStep.js';
|
|
54
54
|
export { DocumentSection } from './DocumentSection.js';
|
|
55
55
|
export declare const contents: {
|
|
@@ -200,7 +200,24 @@ export declare const contents: {
|
|
|
200
200
|
readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
readonly '
|
|
203
|
+
readonly '4T5AmhKAXSJAAHDEjtVJ2FQgCyz2qyd9qG5uoh627Ux6': {
|
|
204
|
+
readonly description: "Operation to reject a previously proposed change.";
|
|
205
|
+
readonly name: "Reject Change Operation";
|
|
206
|
+
readonly type: {
|
|
207
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly '58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc': {
|
|
211
|
+
readonly description: "The base type for all document status indicators.";
|
|
212
|
+
readonly mode: {
|
|
213
|
+
readonly description: "Defines the high-level phase of the document's lifecycle. Must be one of:\n pending: The document is waiting for a pre-condition before its core logic begins.\n active: The document is in its main operational phase, actively processing events.\n terminated: The document has reached a final, conclusive state.\n";
|
|
214
|
+
readonly type: {
|
|
215
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
readonly name: "Document Status";
|
|
219
|
+
};
|
|
220
|
+
readonly '5cwVBvBpQWLmYmpAMfXVt7mGrrZDZinBkdgJ61oT2FGR': {
|
|
204
221
|
readonly description: "Applies a requested changeset immediately to the document.";
|
|
205
222
|
readonly name: "Change Workflow";
|
|
206
223
|
readonly request: {
|
|
@@ -238,328 +255,93 @@ export declare const contents: {
|
|
|
238
255
|
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
239
256
|
};
|
|
240
257
|
};
|
|
241
|
-
readonly '
|
|
242
|
-
readonly description: "
|
|
243
|
-
readonly name: "Reject Change Operation";
|
|
244
|
-
readonly type: {
|
|
245
|
-
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
246
|
-
};
|
|
247
|
-
};
|
|
248
|
-
readonly '56Lhu3Z2oF3kuYG41eZAK8TvgVtRNevkbRi4D31kKWZm': {
|
|
249
|
-
readonly description: "Represents active processing of the document, often used for processes that involve\nmultiple steps over time.\n";
|
|
258
|
+
readonly '5w8XTussoHoaLUy6gwou9Rz5Zxuh9yums9YDNjGdLCKV': {
|
|
259
|
+
readonly description: "A final state indicating that the document encountered an unrecoverable\nerror and could not complete its process.\n";
|
|
250
260
|
readonly mode: {
|
|
251
261
|
readonly type: {
|
|
252
262
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
253
263
|
};
|
|
254
|
-
readonly value: "
|
|
264
|
+
readonly value: "terminated";
|
|
255
265
|
};
|
|
256
|
-
readonly name: "Status
|
|
266
|
+
readonly name: "Status Failed";
|
|
257
267
|
readonly type: {
|
|
258
268
|
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
259
269
|
};
|
|
260
270
|
};
|
|
261
|
-
readonly '
|
|
262
|
-
readonly description: "
|
|
263
|
-
readonly
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
271
|
+
readonly '5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we': {
|
|
272
|
+
readonly description: "Conversation package type. Abstract base for domain events (payload nodes delivered via channels). Not a contract; carries no runtime behavior by itself.\n";
|
|
273
|
+
readonly name: "Event";
|
|
274
|
+
};
|
|
275
|
+
readonly '5YZEAtUaHhNfnVnwtSsyBnBakpcSwdL75UcgtrtnqeYn': {
|
|
276
|
+
readonly description: "A type of event that signals a significant change in a document's lifecycle.";
|
|
277
|
+
readonly name: "Lifecycle Event";
|
|
278
|
+
readonly type: {
|
|
279
|
+
readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
|
|
268
280
|
};
|
|
269
|
-
readonly name: "Document Status";
|
|
270
281
|
};
|
|
271
|
-
readonly '
|
|
272
|
-
readonly
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
282
|
+
readonly '6ADCPYXkusrp4dL1FC126L2ccuzYfqGdBf1w6EXh2hnC': {
|
|
283
|
+
readonly description: "Base type describing how a request reached the timeline provider.";
|
|
284
|
+
readonly name: "Source";
|
|
285
|
+
};
|
|
286
|
+
readonly '6CtkPkPVtmiQJJienGdzvZf2qGTRQntLXfh8PYeMfxBX': {
|
|
287
|
+
readonly description: "A successful final state. The document has achieved its goal and its\nprocess has finished as expected.\n";
|
|
288
|
+
readonly mode: {
|
|
277
289
|
readonly type: {
|
|
278
|
-
readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
|
|
279
|
-
};
|
|
280
|
-
readonly valueType: {
|
|
281
290
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
282
291
|
};
|
|
292
|
+
readonly value: "terminated";
|
|
283
293
|
};
|
|
284
|
-
readonly
|
|
285
|
-
|
|
286
|
-
readonly
|
|
287
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
288
|
-
};
|
|
294
|
+
readonly name: "Status Completed";
|
|
295
|
+
readonly type: {
|
|
296
|
+
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
289
297
|
};
|
|
290
|
-
|
|
291
|
-
|
|
298
|
+
};
|
|
299
|
+
readonly '6FDVZRQwuhXdXtnXq8kRg3f3DM8SUdbN3TT8rSGJcS2U': {
|
|
300
|
+
readonly description: "Policy marker that restricts /contracts mutations to explicit sectionChanges and rejects JSON Patch entries targeting /contracts.\n";
|
|
301
|
+
readonly name: "Contracts Change Policy";
|
|
302
|
+
readonly requireSectionChanges: {
|
|
303
|
+
readonly description: "Policy flag; when present and not false, /contracts changes must use sectionChanges. Set false to allow direct changeset edits.";
|
|
292
304
|
readonly type: {
|
|
293
|
-
readonly blueId: "
|
|
305
|
+
readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
|
|
294
306
|
};
|
|
295
307
|
};
|
|
296
|
-
readonly
|
|
297
|
-
readonly
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
readonly
|
|
304
|
-
readonly
|
|
305
|
-
|
|
306
|
-
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
readonly guarantorChannel: {
|
|
310
|
-
readonly description: "Bank/admin channel.";
|
|
311
|
-
readonly type: {
|
|
312
|
-
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
313
|
-
};
|
|
314
|
-
};
|
|
315
|
-
readonly initialize: {
|
|
316
|
-
readonly channel: {
|
|
308
|
+
readonly type: {
|
|
309
|
+
readonly blueId: "7QACj919YMRvFCTELCf6jfQTp41RVhtHdE6bPazLUZQ6";
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
readonly '6ZLHE59mb1ytEjW78jmYCU3DXxj4Fzfjea7tz3VEkwyX': {
|
|
313
|
+
readonly actions: {
|
|
314
|
+
readonly description: "List of available user actions for this pending action request.";
|
|
315
|
+
readonly itemType: {
|
|
316
|
+
readonly inputPlaceholder: {
|
|
317
|
+
readonly description: "Optional placeholder/help text shown in the action input control.";
|
|
317
318
|
readonly type: {
|
|
318
319
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
319
320
|
};
|
|
320
|
-
readonly value: "initLifecycleChannel";
|
|
321
|
-
};
|
|
322
|
-
readonly steps: {
|
|
323
|
-
readonly items: readonly [{
|
|
324
|
-
readonly changeset: {
|
|
325
|
-
readonly items: readonly [{
|
|
326
|
-
readonly op: {
|
|
327
|
-
readonly type: {
|
|
328
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
329
|
-
};
|
|
330
|
-
readonly value: "replace";
|
|
331
|
-
};
|
|
332
|
-
readonly path: {
|
|
333
|
-
readonly type: {
|
|
334
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
335
|
-
};
|
|
336
|
-
readonly value: "/consentStatus";
|
|
337
|
-
};
|
|
338
|
-
readonly val: {
|
|
339
|
-
readonly type: {
|
|
340
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
341
|
-
};
|
|
342
|
-
readonly value: "granted";
|
|
343
|
-
};
|
|
344
|
-
}];
|
|
345
|
-
};
|
|
346
|
-
readonly name: "Initialize";
|
|
347
|
-
readonly type: {
|
|
348
|
-
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
349
|
-
};
|
|
350
|
-
}];
|
|
351
321
|
};
|
|
352
|
-
readonly
|
|
353
|
-
readonly
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
|
-
readonly initLifecycleChannel: {
|
|
357
|
-
readonly event: {
|
|
322
|
+
readonly inputRequired: {
|
|
323
|
+
readonly description: "Optional flag indicating whether input is required for this action.";
|
|
358
324
|
readonly type: {
|
|
359
|
-
readonly blueId: "
|
|
325
|
+
readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
|
|
360
326
|
};
|
|
361
327
|
};
|
|
362
|
-
readonly
|
|
363
|
-
readonly
|
|
328
|
+
readonly inputSchema: {
|
|
329
|
+
readonly description: "Optional input schema. If present, the selected action may collect user input.";
|
|
364
330
|
};
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
readonly channel: {
|
|
331
|
+
readonly inputTitle: {
|
|
332
|
+
readonly description: "Optional title displayed above the action input control.";
|
|
368
333
|
readonly type: {
|
|
369
334
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
370
335
|
};
|
|
371
|
-
readonly value: "granterChannel";
|
|
372
336
|
};
|
|
373
|
-
readonly
|
|
374
|
-
|
|
375
|
-
readonly
|
|
376
|
-
readonly
|
|
377
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
378
|
-
};
|
|
379
|
-
};
|
|
380
|
-
readonly revokedAt: {
|
|
381
|
-
readonly type: {
|
|
382
|
-
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
383
|
-
};
|
|
337
|
+
readonly label: {
|
|
338
|
+
readonly description: "User-facing action label shown in the pending action card.";
|
|
339
|
+
readonly type: {
|
|
340
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
384
341
|
};
|
|
385
342
|
};
|
|
386
|
-
readonly
|
|
387
|
-
readonly
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
readonly revokeConsentImpl: {
|
|
391
|
-
readonly operation: {
|
|
392
|
-
readonly type: {
|
|
393
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
394
|
-
};
|
|
395
|
-
readonly value: "revokeConsent";
|
|
396
|
-
};
|
|
397
|
-
readonly steps: {
|
|
398
|
-
readonly items: readonly [{
|
|
399
|
-
readonly code: {
|
|
400
|
-
readonly type: {
|
|
401
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
402
|
-
};
|
|
403
|
-
readonly value: "const request = event?.message?.request || {};\nconst reason = request.reason || \"\";\nconst revokedAt = request.revokedAt || \"\";\nconst canRevoke = document('/consentStatus') === \"granted\";\n\nreturn {\n reason,\n revokedAt,\n canRevoke,\n events: canRevoke\n ? [{ type: \"Conversation/Customer Consent Revoked\", reason, revokedAt }]\n : []\n};\n";
|
|
404
|
-
};
|
|
405
|
-
readonly name: "Capture";
|
|
406
|
-
readonly type: {
|
|
407
|
-
readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
|
|
408
|
-
};
|
|
409
|
-
}, {
|
|
410
|
-
readonly changeset: {
|
|
411
|
-
readonly items: readonly [{
|
|
412
|
-
readonly op: {
|
|
413
|
-
readonly type: {
|
|
414
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
415
|
-
};
|
|
416
|
-
readonly value: "replace";
|
|
417
|
-
};
|
|
418
|
-
readonly path: {
|
|
419
|
-
readonly type: {
|
|
420
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
421
|
-
};
|
|
422
|
-
readonly value: "/consentStatus";
|
|
423
|
-
};
|
|
424
|
-
readonly val: {
|
|
425
|
-
readonly type: {
|
|
426
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
427
|
-
};
|
|
428
|
-
readonly value: "revoked";
|
|
429
|
-
};
|
|
430
|
-
}, {
|
|
431
|
-
readonly op: {
|
|
432
|
-
readonly type: {
|
|
433
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
434
|
-
};
|
|
435
|
-
readonly value: "replace";
|
|
436
|
-
};
|
|
437
|
-
readonly path: {
|
|
438
|
-
readonly type: {
|
|
439
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
440
|
-
};
|
|
441
|
-
readonly value: "/revocationReason";
|
|
442
|
-
};
|
|
443
|
-
readonly val: {
|
|
444
|
-
readonly type: {
|
|
445
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
446
|
-
};
|
|
447
|
-
readonly value: "${steps['Capture'].reason}";
|
|
448
|
-
};
|
|
449
|
-
}, {
|
|
450
|
-
readonly op: {
|
|
451
|
-
readonly type: {
|
|
452
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
453
|
-
};
|
|
454
|
-
readonly value: "replace";
|
|
455
|
-
};
|
|
456
|
-
readonly path: {
|
|
457
|
-
readonly type: {
|
|
458
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
459
|
-
};
|
|
460
|
-
readonly value: "/revokedAt";
|
|
461
|
-
};
|
|
462
|
-
readonly val: {
|
|
463
|
-
readonly type: {
|
|
464
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
465
|
-
};
|
|
466
|
-
readonly value: "${steps['Capture'].revokedAt}";
|
|
467
|
-
};
|
|
468
|
-
}];
|
|
469
|
-
};
|
|
470
|
-
readonly name: "Apply";
|
|
471
|
-
readonly type: {
|
|
472
|
-
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
473
|
-
};
|
|
474
|
-
}];
|
|
475
|
-
};
|
|
476
|
-
readonly type: {
|
|
477
|
-
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
readonly description: "Generic customer consent granted to a grantee (e.g., merchant).";
|
|
482
|
-
readonly grantedAt: {
|
|
483
|
-
readonly description: "Timestamp when consent was granted.";
|
|
484
|
-
readonly type: {
|
|
485
|
-
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
readonly name: "Customer Consent";
|
|
489
|
-
readonly revocationReason: {
|
|
490
|
-
readonly description: "Reason for revocation.";
|
|
491
|
-
readonly type: {
|
|
492
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
readonly revokedAt: {
|
|
496
|
-
readonly description: "Timestamp when consent was revoked.";
|
|
497
|
-
readonly type: {
|
|
498
|
-
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
readonly '5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we': {
|
|
503
|
-
readonly description: "Conversation package type. Abstract base for domain events (payload nodes delivered via channels). Not a contract; carries no runtime behavior by itself.\n";
|
|
504
|
-
readonly name: "Event";
|
|
505
|
-
};
|
|
506
|
-
readonly '5YZEAtUaHhNfnVnwtSsyBnBakpcSwdL75UcgtrtnqeYn': {
|
|
507
|
-
readonly description: "A type of event that signals a significant change in a document's lifecycle.";
|
|
508
|
-
readonly name: "Lifecycle Event";
|
|
509
|
-
readonly type: {
|
|
510
|
-
readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
|
|
511
|
-
};
|
|
512
|
-
};
|
|
513
|
-
readonly '6ADCPYXkusrp4dL1FC126L2ccuzYfqGdBf1w6EXh2hnC': {
|
|
514
|
-
readonly description: "Base type describing how a request reached the timeline provider.";
|
|
515
|
-
readonly name: "Source";
|
|
516
|
-
};
|
|
517
|
-
readonly '6FDVZRQwuhXdXtnXq8kRg3f3DM8SUdbN3TT8rSGJcS2U': {
|
|
518
|
-
readonly description: "Policy marker that restricts /contracts mutations to explicit sectionChanges and rejects JSON Patch entries targeting /contracts.\n";
|
|
519
|
-
readonly name: "Contracts Change Policy";
|
|
520
|
-
readonly requireSectionChanges: {
|
|
521
|
-
readonly description: "Policy flag; when present and not false, /contracts changes must use sectionChanges. Set false to allow direct changeset edits.";
|
|
522
|
-
readonly type: {
|
|
523
|
-
readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
|
|
524
|
-
};
|
|
525
|
-
};
|
|
526
|
-
readonly type: {
|
|
527
|
-
readonly blueId: "7QACj919YMRvFCTELCf6jfQTp41RVhtHdE6bPazLUZQ6";
|
|
528
|
-
};
|
|
529
|
-
};
|
|
530
|
-
readonly '6ZLHE59mb1ytEjW78jmYCU3DXxj4Fzfjea7tz3VEkwyX': {
|
|
531
|
-
readonly actions: {
|
|
532
|
-
readonly description: "List of available user actions for this pending action request.";
|
|
533
|
-
readonly itemType: {
|
|
534
|
-
readonly inputPlaceholder: {
|
|
535
|
-
readonly description: "Optional placeholder/help text shown in the action input control.";
|
|
536
|
-
readonly type: {
|
|
537
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
538
|
-
};
|
|
539
|
-
};
|
|
540
|
-
readonly inputRequired: {
|
|
541
|
-
readonly description: "Optional flag indicating whether input is required for this action.";
|
|
542
|
-
readonly type: {
|
|
543
|
-
readonly blueId: "4EzhSubEimSQD3zrYHRtobfPPWntUuhEz8YcdxHsi12u";
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
readonly inputSchema: {
|
|
547
|
-
readonly description: "Optional input schema. If present, the selected action may collect user input.";
|
|
548
|
-
};
|
|
549
|
-
readonly inputTitle: {
|
|
550
|
-
readonly description: "Optional title displayed above the action input control.";
|
|
551
|
-
readonly type: {
|
|
552
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
readonly label: {
|
|
556
|
-
readonly description: "User-facing action label shown in the pending action card.";
|
|
557
|
-
readonly type: {
|
|
558
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
559
|
-
};
|
|
560
|
-
};
|
|
561
|
-
readonly variant: {
|
|
562
|
-
readonly description: "Optional button style variant. Supported values: primary | secondary | reject.";
|
|
343
|
+
readonly variant: {
|
|
344
|
+
readonly description: "Optional button style variant. Supported values: primary | secondary | reject.";
|
|
563
345
|
readonly type: {
|
|
564
346
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
565
347
|
};
|
|
@@ -587,50 +369,6 @@ export declare const contents: {
|
|
|
587
369
|
readonly blueId: "8f9UhHMbRe62sFgzQVheToaJPYi7t7HPNVvpQTbqfL5n";
|
|
588
370
|
};
|
|
589
371
|
};
|
|
590
|
-
readonly '7icTT1chbH3UA2ybXgpfSSyNEAR4Wmm3EkbdGFaZSydo': {
|
|
591
|
-
readonly description: "Stores a proposed change under /proposedChange{postfix}.";
|
|
592
|
-
readonly name: "Propose Change Workflow";
|
|
593
|
-
readonly postfix: {
|
|
594
|
-
readonly description: "Optional postfix used while building proposed change state key.";
|
|
595
|
-
readonly type: {
|
|
596
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
597
|
-
};
|
|
598
|
-
};
|
|
599
|
-
readonly request: {
|
|
600
|
-
readonly description: "Expected request payload for this workflow.";
|
|
601
|
-
readonly type: {
|
|
602
|
-
readonly blueId: "FW7iYkzig4fepCdwfCdgNJw4DQ1fKwnAUf3YpjgfTPmG";
|
|
603
|
-
};
|
|
604
|
-
};
|
|
605
|
-
readonly steps: {
|
|
606
|
-
readonly items: readonly [{
|
|
607
|
-
readonly code: {
|
|
608
|
-
readonly type: {
|
|
609
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
610
|
-
};
|
|
611
|
-
readonly value: "const invalid = (reason) => ({\n changeset: [],\n events: [{ type: 'Conversation/Proposed Change Invalid', reason }]\n});\n\nconst request = event.message.request;\n\nconst summary = request?.summary;\nif (!summary || typeof summary !== 'string') {\n return invalid('summary is missing');\n}\n\nconst postfixNode = canon.at(currentContractCanonical, '/postfix');\nconst postfixValue =\n typeof postfixNode?.value === 'string' ? postfixNode.value : '';\nconst path = '/proposedChange' + postfixValue;\n\nif (document(path)) {\n return invalid('proposed change already exists at ' + path);\n}\n\nreturn {\n changeset: [{ op: 'add', path, val: request }]\n};\n";
|
|
612
|
-
};
|
|
613
|
-
readonly name: "Prepare";
|
|
614
|
-
readonly type: {
|
|
615
|
-
readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
|
|
616
|
-
};
|
|
617
|
-
}, {
|
|
618
|
-
readonly changeset: {
|
|
619
|
-
readonly type: {
|
|
620
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
621
|
-
};
|
|
622
|
-
readonly value: "${steps.Prepare.changeset}";
|
|
623
|
-
};
|
|
624
|
-
readonly name: "Apply";
|
|
625
|
-
readonly type: {
|
|
626
|
-
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
627
|
-
};
|
|
628
|
-
}];
|
|
629
|
-
};
|
|
630
|
-
readonly type: {
|
|
631
|
-
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
632
|
-
};
|
|
633
|
-
};
|
|
634
372
|
readonly '7jZFAkmthHTeg6zAu5kBCDHswd2J5HNVnYPo9y435sin': {
|
|
635
373
|
readonly description: "Source describing a request triggered by document workflow execution.";
|
|
636
374
|
readonly documentId: {
|
|
@@ -799,67 +537,336 @@ export declare const contents: {
|
|
|
799
537
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
800
538
|
};
|
|
801
539
|
};
|
|
802
|
-
readonly type: {
|
|
803
|
-
readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
|
|
804
|
-
};
|
|
805
|
-
};
|
|
806
|
-
readonly
|
|
807
|
-
readonly description: "
|
|
808
|
-
readonly name: "
|
|
809
|
-
readonly
|
|
540
|
+
readonly type: {
|
|
541
|
+
readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
readonly BAYbnfs8WkdH33UwCvmsuoAq6MyU6ha4KSTZPaeMp9kN: {
|
|
545
|
+
readonly description: "Applies a previously proposed change and removes its proposal state.";
|
|
546
|
+
readonly name: "Accept Change Workflow";
|
|
547
|
+
readonly postfix: {
|
|
548
|
+
readonly description: "Optional postfix used while building proposed change state key.";
|
|
549
|
+
readonly type: {
|
|
550
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
readonly steps: {
|
|
554
|
+
readonly items: readonly [{
|
|
555
|
+
readonly code: {
|
|
556
|
+
readonly type: {
|
|
557
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
558
|
+
};
|
|
559
|
+
readonly value: "const invalid = (reason) => ({\n changeset: [],\n events: [{ type: 'Conversation/Proposed Change Invalid', reason }]\n});\n\nconst isArray = Array.isArray;\n\nconst postfixNode = canon.at(currentContractCanonical, '/postfix');\nconst postfixValue =\n typeof postfixNode?.value === 'string' ? postfixNode.value : '';\nconst proposedPath = '/proposedChange' + postfixValue;\n\nconst change = document(proposedPath);\nif (!change) {\n return invalid('no proposed change at ' + proposedPath);\n}\n\nconst requestChangeset = isArray(change?.changeset) ? change.changeset : [];\nconst sectionChanges = change.sectionChanges;\n\nconst entryPath = (entry) => `${entry?.path || ''}`;\nconst isContractsPath = (p) => p === '/contracts' || p.startsWith('/contracts/');\nconst isProposedChangePath = (p) => p.startsWith('/proposedChange');\n\nconst contracts = document('/contracts') || {};\nconst policy = Object.values(contracts).find((c) => c?.requireSectionChanges !== undefined);\nconst policyEnabled = !!policy && policy.requireSectionChanges !== false;\n\nif (\n policyEnabled &&\n requestChangeset.some((e) => isContractsPath(entryPath(e)))\n) {\n return invalid('changeset cannot modify /contracts when Contracts Change Policy is enabled');\n}\n\nif (requestChangeset.some((e) => isProposedChangePath(entryPath(e)))) {\n return invalid('changeset cannot modify /proposedChange');\n}\n\nconst escapePointer = (value) =>\n `${value}`.split('~').join('~0').split('/').join('~1');\n\nconst contractPtr = (key) => '/contracts/' + escapePointer(key);\n\nconst isMetaKey = (key) =>\n key === 'type' || key === 'keyType' || key === 'valueType' || key === 'description';\n\nconst contractKeysFromMap = (contractsMap) =>\n Object.keys(contractsMap || {}).filter((k) => !isMetaKey(k));\n\nconst normalizeSection = (section, contractKeys) => ({\n ...(section || {}),\n type: 'Conversation/Document Section',\n relatedContracts: (section?.relatedContracts?.length ? section.relatedContracts : contractKeys)\n});\n\nconst hasMatchingRelatedContracts = (section, contractKeys) => {\n const related = isArray(section?.relatedContracts)\n ? section.relatedContracts.map((value) => `${value}`)\n : [];\n if (!related.length) {\n return true;\n }\n if (related.length !== contractKeys.length) {\n return false;\n }\n const relatedMap = {};\n for (const value of related) {\n const key = `${value}`;\n relatedMap[key] = (relatedMap[key] || 0) + 1;\n }\n if (Object.keys(relatedMap).length !== contractKeys.length) {\n return false;\n }\n for (const key of contractKeys) {\n if (!relatedMap[key]) {\n return false;\n }\n }\n return true;\n};\n\nconst sectionChangeset = [];\nconst seenSectionKeys = {};\nconst seenContractKeys = {};\nconst existingContractKeys = {};\nfor (const key of Object.keys(contracts || {}).filter((k) => !isMetaKey(k))) {\n existingContractKeys[key] = true;\n}\n\nconst trackSectionKey = (sectionKey) => {\n if (seenSectionKeys[sectionKey]) {\n return invalid(`section key duplicated in sectionChanges: ${sectionKey}`);\n }\n seenSectionKeys[sectionKey] = true;\n return null;\n};\n\nconst trackContractKey = (sectionKey, contractKey) => {\n const existingSection = seenContractKeys[contractKey];\n if (existingSection && existingSection !== sectionKey) {\n return invalid(`contract key used by multiple sections in request: ${contractKey}`);\n }\n seenContractKeys[contractKey] = sectionKey;\n return null;\n};\n\nconst addList = isArray(sectionChanges?.add) ? sectionChanges.add : [];\nfor (const entry of addList) {\n const sectionKey = `${entry?.sectionKey || ''}`;\n if (!sectionKey) return invalid('sectionChanges.add is missing sectionKey');\n\n const sectionKeyDup = trackSectionKey(sectionKey);\n if (sectionKeyDup) return sectionKeyDup;\n\n if (existingContractKeys[sectionKey]) {\n return invalid(`contract key already exists at ${contractPtr(sectionKey)}`);\n }\n\n const contractsMap = entry?.contracts || {};\n const contractKeys = contractKeysFromMap(contractsMap).map((key) => `${key}`);\n\n if (!hasMatchingRelatedContracts(entry?.section, contractKeys)) {\n return invalid('relatedContracts must match contracts');\n }\n\n for (const key of contractKeys) {\n if (existingContractKeys[key]) {\n return invalid(`contract key already exists at ${contractPtr(key)}`);\n }\n const dup = trackContractKey(sectionKey, key);\n if (dup) return dup;\n }\n\n for (const key of contractKeys) {\n sectionChangeset.push({ op: 'add', path: contractPtr(key), val: contractsMap[key] });\n }\n\n sectionChangeset.push({\n op: 'add',\n path: contractPtr(sectionKey),\n val: normalizeSection(entry?.section, contractKeys)\n });\n}\n\nconst modifyList = isArray(sectionChanges?.modify) ? sectionChanges.modify : [];\nfor (const entry of modifyList) {\n const sectionKey = `${entry?.sectionKey || ''}`;\n if (!sectionKey) return invalid('sectionChanges.modify is missing sectionKey');\n\n const sectionKeyDup = trackSectionKey(sectionKey);\n if (sectionKeyDup) return sectionKeyDup;\n\n const existingRelated = isArray(contracts?.[sectionKey]?.relatedContracts)\n ? contracts[sectionKey].relatedContracts.map((value) => `${value}`)\n : [];\n const existingRelatedMap = {};\n for (const value of existingRelated) {\n existingRelatedMap[`${value}`] = true;\n }\n\n const contractsMap = entry?.contracts || {};\n const contractKeys = contractKeysFromMap(contractsMap).map((key) => `${key}`);\n\n if (!hasMatchingRelatedContracts(entry?.section, contractKeys)) {\n return invalid('relatedContracts must match contracts');\n }\n\n for (const key of contractKeys) {\n const dup = trackContractKey(sectionKey, key);\n if (dup) return dup;\n if (existingContractKeys[key] && !existingRelatedMap[key]) {\n return invalid(`contract key already exists at ${contractPtr(key)}`);\n }\n }\n\n for (const key of contractKeys) {\n sectionChangeset.push({ op: 'add', path: contractPtr(key), val: contractsMap[key] });\n }\n\n for (const oldKey of existingRelated) {\n if (contractKeys.indexOf(oldKey) === -1) {\n sectionChangeset.push({ op: 'remove', path: contractPtr(oldKey) });\n }\n }\n\n sectionChangeset.push({\n op: 'add',\n path: contractPtr(sectionKey),\n val: normalizeSection(entry?.section, contractKeys)\n });\n}\n\nconst removeList = isArray(sectionChanges?.remove) ? sectionChanges.remove : [];\nfor (const entry of removeList) {\n const sectionKey = `${entry?.sectionKey || entry || ''}`;\n if (!sectionKey) return invalid('sectionChanges.remove is missing sectionKey');\n\n const related = isArray(contracts?.[sectionKey]?.relatedContracts)\n ? contracts[sectionKey].relatedContracts\n : [];\n\n for (const key of related) {\n sectionChangeset.push({ op: 'remove', path: contractPtr(key) });\n }\n sectionChangeset.push({ op: 'remove', path: contractPtr(sectionKey) });\n}\n\nconst combined = sectionChangeset.concat(requestChangeset);\n\nif (combined.length === 0) {\n return invalid('no changes provided');\n}\n\nreturn {\n changeset: combined.concat({ op: 'remove', path: proposedPath })\n};\n";
|
|
560
|
+
};
|
|
561
|
+
readonly name: "Prepare";
|
|
562
|
+
readonly type: {
|
|
563
|
+
readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
|
|
564
|
+
};
|
|
565
|
+
}, {
|
|
566
|
+
readonly changeset: {
|
|
567
|
+
readonly type: {
|
|
568
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
569
|
+
};
|
|
570
|
+
readonly value: "${steps.Prepare.changeset}";
|
|
571
|
+
};
|
|
572
|
+
readonly name: "Apply";
|
|
573
|
+
readonly type: {
|
|
574
|
+
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
575
|
+
};
|
|
576
|
+
}];
|
|
577
|
+
};
|
|
578
|
+
readonly type: {
|
|
579
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
readonly BeiedmmcKDhStxDnnQqUaXDJLofWSnqX6CazKTvVpfbW: {
|
|
583
|
+
readonly description: "Operation to propose a document change for later acceptance or rejection.";
|
|
584
|
+
readonly name: "Propose Change Operation";
|
|
585
|
+
readonly request: {
|
|
586
|
+
readonly type: {
|
|
587
|
+
readonly blueId: "FW7iYkzig4fepCdwfCdgNJw4DQ1fKwnAUf3YpjgfTPmG";
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
readonly type: {
|
|
591
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
readonly BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC: {
|
|
595
|
+
readonly channel: {
|
|
596
|
+
readonly description: "Contracts-map key of the Channel in this scope on which Operation Request events are sent to invoke this operation.\n";
|
|
597
|
+
readonly type: {
|
|
598
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
readonly description: "Conversation contract a document exposes. Defines the action’s request schema and the channel over which callers invoke it.\n";
|
|
602
|
+
readonly name: "Operation";
|
|
603
|
+
readonly request: {
|
|
604
|
+
readonly description: "The request schema for this operation (any Blue node). Invocation payloads MUST conform to this shape.\n";
|
|
605
|
+
};
|
|
606
|
+
readonly type: {
|
|
607
|
+
readonly blueId: "7QACj919YMRvFCTELCf6jfQTp41RVhtHdE6bPazLUZQ6";
|
|
608
|
+
};
|
|
609
|
+
};
|
|
610
|
+
readonly C48nKSkbxraMSv4gCiGYVHKFjmtK12k63Yasn95zknWE: {
|
|
611
|
+
readonly description: "An event indicating that the document's status has transitioned.";
|
|
612
|
+
readonly name: "Status Change";
|
|
613
|
+
readonly status: {
|
|
614
|
+
readonly description: "The new status node.";
|
|
615
|
+
readonly type: {
|
|
616
|
+
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
617
|
+
};
|
|
618
|
+
};
|
|
619
|
+
readonly type: {
|
|
620
|
+
readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
readonly CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv: {
|
|
624
|
+
readonly description: "Conversation handler pattern for implementing an Operation as a sequential workflow. Binds to the operation’s invocation channel and runs the configured steps when the operation is called.\n";
|
|
625
|
+
readonly name: "Sequential Workflow Operation";
|
|
626
|
+
readonly operation: {
|
|
627
|
+
readonly description: "The name of the Operation this handler implements. Must reference an Operation defined in the same scope.\n";
|
|
628
|
+
readonly type: {
|
|
629
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
readonly type: {
|
|
633
|
+
readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
readonly CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ: {
|
|
637
|
+
readonly description: "Conversation type for attributing timeline entries to a person, service, or system. Intended solely for display/attribution; carries no runtime behavior.\n";
|
|
638
|
+
readonly name: "Actor";
|
|
639
|
+
};
|
|
640
|
+
readonly CZBP6a8kS4bKpA2f29oAfBpKVmw6PDLYXDyg8Ttx2ceE: {
|
|
641
|
+
readonly consentDetails: {
|
|
642
|
+
readonly description: "Generic scope details (merchant id, event categories, requesting contract refs, etc.).";
|
|
643
|
+
readonly keyType: {
|
|
644
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
645
|
+
};
|
|
646
|
+
readonly type: {
|
|
647
|
+
readonly blueId: "G7fBT9PSod1RfHLHkpafAGBDVAJMrMhAMY51ERcyXNrj";
|
|
648
|
+
};
|
|
649
|
+
readonly valueType: {
|
|
650
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
651
|
+
};
|
|
652
|
+
};
|
|
653
|
+
readonly consentKind: {
|
|
654
|
+
readonly description: "Classification of the consent (e.g., cardTransactionMonitoring).";
|
|
655
|
+
readonly type: {
|
|
656
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
readonly consentStatus: {
|
|
660
|
+
readonly description: "Consent state (granted, revoked).";
|
|
661
|
+
readonly type: {
|
|
662
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
663
|
+
};
|
|
664
|
+
};
|
|
665
|
+
readonly contracts: {
|
|
666
|
+
readonly granteeChannel: {
|
|
667
|
+
readonly description: "Grantee (e.g., merchant MyOS timeline).";
|
|
668
|
+
readonly type: {
|
|
669
|
+
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
readonly granterChannel: {
|
|
673
|
+
readonly description: "Granter (customer represented by the bank; customer has no MyOS account).";
|
|
674
|
+
readonly type: {
|
|
675
|
+
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
readonly guarantorChannel: {
|
|
679
|
+
readonly description: "Bank/admin channel.";
|
|
680
|
+
readonly type: {
|
|
681
|
+
readonly blueId: "HCF8mXnX3dFjQ8osjxb4Wzm2Nm1DoXnTYuA5sPnV7NTs";
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
readonly initialize: {
|
|
685
|
+
readonly channel: {
|
|
686
|
+
readonly type: {
|
|
687
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
688
|
+
};
|
|
689
|
+
readonly value: "initLifecycleChannel";
|
|
690
|
+
};
|
|
691
|
+
readonly steps: {
|
|
692
|
+
readonly items: readonly [{
|
|
693
|
+
readonly changeset: {
|
|
694
|
+
readonly items: readonly [{
|
|
695
|
+
readonly op: {
|
|
696
|
+
readonly type: {
|
|
697
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
698
|
+
};
|
|
699
|
+
readonly value: "replace";
|
|
700
|
+
};
|
|
701
|
+
readonly path: {
|
|
702
|
+
readonly type: {
|
|
703
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
704
|
+
};
|
|
705
|
+
readonly value: "/consentStatus";
|
|
706
|
+
};
|
|
707
|
+
readonly val: {
|
|
708
|
+
readonly type: {
|
|
709
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
710
|
+
};
|
|
711
|
+
readonly value: "granted";
|
|
712
|
+
};
|
|
713
|
+
}];
|
|
714
|
+
};
|
|
715
|
+
readonly name: "Initialize";
|
|
716
|
+
readonly type: {
|
|
717
|
+
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
718
|
+
};
|
|
719
|
+
}];
|
|
720
|
+
};
|
|
721
|
+
readonly type: {
|
|
722
|
+
readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
|
|
723
|
+
};
|
|
724
|
+
};
|
|
725
|
+
readonly initLifecycleChannel: {
|
|
726
|
+
readonly event: {
|
|
727
|
+
readonly type: {
|
|
728
|
+
readonly blueId: "BrpmpNt5JkapeUvPqYcxgXZrHNZX3R757dRwuXXdfNM2";
|
|
729
|
+
};
|
|
730
|
+
};
|
|
731
|
+
readonly type: {
|
|
732
|
+
readonly blueId: "H2aCCTUcLMTJozWkn7HPUjyFBFxamraw1q8DyWk87zxr";
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
readonly revokeConsent: {
|
|
736
|
+
readonly channel: {
|
|
737
|
+
readonly type: {
|
|
738
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
739
|
+
};
|
|
740
|
+
readonly value: "granterChannel";
|
|
741
|
+
};
|
|
742
|
+
readonly description: "Customer revokes the consent.";
|
|
743
|
+
readonly request: {
|
|
744
|
+
readonly reason: {
|
|
745
|
+
readonly type: {
|
|
746
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
747
|
+
};
|
|
748
|
+
};
|
|
749
|
+
readonly revokedAt: {
|
|
750
|
+
readonly type: {
|
|
751
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
};
|
|
755
|
+
readonly type: {
|
|
756
|
+
readonly blueId: "BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC";
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
readonly revokeConsentImpl: {
|
|
760
|
+
readonly operation: {
|
|
761
|
+
readonly type: {
|
|
762
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
763
|
+
};
|
|
764
|
+
readonly value: "revokeConsent";
|
|
765
|
+
};
|
|
766
|
+
readonly steps: {
|
|
767
|
+
readonly items: readonly [{
|
|
768
|
+
readonly code: {
|
|
769
|
+
readonly type: {
|
|
770
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
771
|
+
};
|
|
772
|
+
readonly value: "const request = event?.message?.request || {};\nconst reason = request.reason || \"\";\nconst revokedAt = request.revokedAt || \"\";\nconst canRevoke = document('/consentStatus') === \"granted\";\n\nreturn {\n reason,\n revokedAt,\n canRevoke,\n events: canRevoke\n ? [{ type: \"Conversation/Customer Consent Revoked\", reason, revokedAt }]\n : []\n};\n";
|
|
773
|
+
};
|
|
774
|
+
readonly name: "Capture";
|
|
775
|
+
readonly type: {
|
|
776
|
+
readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
|
|
777
|
+
};
|
|
778
|
+
}, {
|
|
779
|
+
readonly changeset: {
|
|
780
|
+
readonly items: readonly [{
|
|
781
|
+
readonly op: {
|
|
782
|
+
readonly type: {
|
|
783
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
784
|
+
};
|
|
785
|
+
readonly value: "replace";
|
|
786
|
+
};
|
|
787
|
+
readonly path: {
|
|
788
|
+
readonly type: {
|
|
789
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
790
|
+
};
|
|
791
|
+
readonly value: "/consentStatus";
|
|
792
|
+
};
|
|
793
|
+
readonly val: {
|
|
794
|
+
readonly type: {
|
|
795
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
796
|
+
};
|
|
797
|
+
readonly value: "revoked";
|
|
798
|
+
};
|
|
799
|
+
}, {
|
|
800
|
+
readonly op: {
|
|
801
|
+
readonly type: {
|
|
802
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
803
|
+
};
|
|
804
|
+
readonly value: "replace";
|
|
805
|
+
};
|
|
806
|
+
readonly path: {
|
|
807
|
+
readonly type: {
|
|
808
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
809
|
+
};
|
|
810
|
+
readonly value: "/revocationReason";
|
|
811
|
+
};
|
|
812
|
+
readonly val: {
|
|
813
|
+
readonly type: {
|
|
814
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
815
|
+
};
|
|
816
|
+
readonly value: "${steps['Capture'].reason}";
|
|
817
|
+
};
|
|
818
|
+
}, {
|
|
819
|
+
readonly op: {
|
|
820
|
+
readonly type: {
|
|
821
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
822
|
+
};
|
|
823
|
+
readonly value: "replace";
|
|
824
|
+
};
|
|
825
|
+
readonly path: {
|
|
826
|
+
readonly type: {
|
|
827
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
828
|
+
};
|
|
829
|
+
readonly value: "/revokedAt";
|
|
830
|
+
};
|
|
831
|
+
readonly val: {
|
|
832
|
+
readonly type: {
|
|
833
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
834
|
+
};
|
|
835
|
+
readonly value: "${steps['Capture'].revokedAt}";
|
|
836
|
+
};
|
|
837
|
+
}];
|
|
838
|
+
};
|
|
839
|
+
readonly name: "Apply";
|
|
840
|
+
readonly type: {
|
|
841
|
+
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
842
|
+
};
|
|
843
|
+
}];
|
|
844
|
+
};
|
|
845
|
+
readonly type: {
|
|
846
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
847
|
+
};
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
readonly description: "Generic customer consent granted to a grantee (e.g., merchant).";
|
|
851
|
+
readonly grantedAt: {
|
|
852
|
+
readonly description: "Timestamp when consent was granted.";
|
|
810
853
|
readonly type: {
|
|
811
|
-
readonly blueId: "
|
|
854
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
812
855
|
};
|
|
813
856
|
};
|
|
814
|
-
readonly
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
};
|
|
818
|
-
readonly BoAiqVUZv9Fum3wFqaX2JnQMBHJLxJSo2V9U2UBmCfsC: {
|
|
819
|
-
readonly channel: {
|
|
820
|
-
readonly description: "Contracts-map key of the Channel in this scope on which Operation Request events are sent to invoke this operation.\n";
|
|
857
|
+
readonly name: "Customer Consent";
|
|
858
|
+
readonly revocationReason: {
|
|
859
|
+
readonly description: "Reason for revocation.";
|
|
821
860
|
readonly type: {
|
|
822
861
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
823
862
|
};
|
|
824
863
|
};
|
|
825
|
-
readonly
|
|
826
|
-
|
|
827
|
-
readonly request: {
|
|
828
|
-
readonly description: "The request schema for this operation (any Blue node). Invocation payloads MUST conform to this shape.\n";
|
|
829
|
-
};
|
|
830
|
-
readonly type: {
|
|
831
|
-
readonly blueId: "7QACj919YMRvFCTELCf6jfQTp41RVhtHdE6bPazLUZQ6";
|
|
832
|
-
};
|
|
833
|
-
};
|
|
834
|
-
readonly C48nKSkbxraMSv4gCiGYVHKFjmtK12k63Yasn95zknWE: {
|
|
835
|
-
readonly description: "An event indicating that the document's status has transitioned.";
|
|
836
|
-
readonly name: "Status Change";
|
|
837
|
-
readonly status: {
|
|
838
|
-
readonly description: "The new status node.";
|
|
839
|
-
readonly type: {
|
|
840
|
-
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
841
|
-
};
|
|
842
|
-
};
|
|
843
|
-
readonly type: {
|
|
844
|
-
readonly blueId: "5Wz4G9qcnBJnntYRkz4dgLK5bSuoMpYJZj4j5M59z4we";
|
|
845
|
-
};
|
|
846
|
-
};
|
|
847
|
-
readonly CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv: {
|
|
848
|
-
readonly description: "Conversation handler pattern for implementing an Operation as a sequential workflow. Binds to the operation’s invocation channel and runs the configured steps when the operation is called.\n";
|
|
849
|
-
readonly name: "Sequential Workflow Operation";
|
|
850
|
-
readonly operation: {
|
|
851
|
-
readonly description: "The name of the Operation this handler implements. Must reference an Operation defined in the same scope.\n";
|
|
864
|
+
readonly revokedAt: {
|
|
865
|
+
readonly description: "Timestamp when consent was revoked.";
|
|
852
866
|
readonly type: {
|
|
853
|
-
readonly blueId: "
|
|
867
|
+
readonly blueId: "GQaGqFxHDz64L1c9QkCbz52ths6bMVtpHnw4QDngzQYs";
|
|
854
868
|
};
|
|
855
869
|
};
|
|
856
|
-
readonly type: {
|
|
857
|
-
readonly blueId: "7X3LkN54Yp88JgZbppPhP6hM3Jqiqv8Z2i4kS7phXtQe";
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
readonly CN5efWVizJbRsMCw8YWRfT2q9vM9XfeGDN9wFvYcvMnQ: {
|
|
861
|
-
readonly description: "Conversation type for attributing timeline entries to a person, service, or system. Intended solely for display/attribution; carries no runtime behavior.\n";
|
|
862
|
-
readonly name: "Actor";
|
|
863
870
|
};
|
|
864
871
|
readonly DEmFwGa1sWm2BKhrN98LREKiB8j8B8kFAo7KBkkaojnN: {
|
|
865
872
|
readonly add: {
|
|
@@ -892,44 +899,6 @@ export declare const contents: {
|
|
|
892
899
|
};
|
|
893
900
|
};
|
|
894
901
|
};
|
|
895
|
-
readonly DUjCaEniHH5oDXU3Ss5jWWft3pT9TUcNhv7HoCDU1NTB: {
|
|
896
|
-
readonly description: "Discards a previously proposed change by removing its proposal state.";
|
|
897
|
-
readonly name: "Reject Change Workflow";
|
|
898
|
-
readonly postfix: {
|
|
899
|
-
readonly description: "Optional postfix used while building proposed change state key.";
|
|
900
|
-
readonly type: {
|
|
901
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
902
|
-
};
|
|
903
|
-
};
|
|
904
|
-
readonly steps: {
|
|
905
|
-
readonly items: readonly [{
|
|
906
|
-
readonly code: {
|
|
907
|
-
readonly type: {
|
|
908
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
909
|
-
};
|
|
910
|
-
readonly value: "const invalid = (reason) => ({\n changeset: [],\n events: [{ type: 'Conversation/Proposed Change Invalid', reason }]\n});\n\nconst postfixNode = canon.at(currentContractCanonical, '/postfix');\nconst postfixValue =\n typeof postfixNode?.value === 'string' ? postfixNode.value : '';\nconst path = '/proposedChange' + postfixValue;\n\nif (!document(path)) {\n return invalid('no proposed change at ' + path);\n}\n\nreturn {\n changeset: [{ op: 'remove', path }]\n};\n";
|
|
911
|
-
};
|
|
912
|
-
readonly name: "Prepare";
|
|
913
|
-
readonly type: {
|
|
914
|
-
readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
|
|
915
|
-
};
|
|
916
|
-
}, {
|
|
917
|
-
readonly changeset: {
|
|
918
|
-
readonly type: {
|
|
919
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
920
|
-
};
|
|
921
|
-
readonly value: "${steps.Prepare.changeset}";
|
|
922
|
-
};
|
|
923
|
-
readonly name: "Apply";
|
|
924
|
-
readonly type: {
|
|
925
|
-
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
926
|
-
};
|
|
927
|
-
}];
|
|
928
|
-
};
|
|
929
|
-
readonly type: {
|
|
930
|
-
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
931
|
-
};
|
|
932
|
-
};
|
|
933
902
|
readonly EbGQYtYR9UNAxcn7auCCujXmnz6DWxMpqVcgYSsKE85M: {
|
|
934
903
|
readonly description: "Emitted when a proposed change operation cannot be applied.";
|
|
935
904
|
readonly name: "Proposed Change Invalid";
|
|
@@ -979,22 +948,28 @@ export declare const contents: {
|
|
|
979
948
|
readonly blueId: "7QACj919YMRvFCTELCf6jfQTp41RVhtHdE6bPazLUZQ6";
|
|
980
949
|
};
|
|
981
950
|
};
|
|
982
|
-
readonly
|
|
983
|
-
readonly description: "
|
|
984
|
-
readonly name: "
|
|
951
|
+
readonly ELAgjQ99vBZLGfY6tJMuPRnm3avxpByyZsXc65aKQmi4: {
|
|
952
|
+
readonly description: "Stores a proposed change under /proposedChange{postfix}.";
|
|
953
|
+
readonly name: "Propose Change Workflow";
|
|
985
954
|
readonly postfix: {
|
|
986
955
|
readonly description: "Optional postfix used while building proposed change state key.";
|
|
987
956
|
readonly type: {
|
|
988
957
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
989
958
|
};
|
|
990
959
|
};
|
|
960
|
+
readonly request: {
|
|
961
|
+
readonly description: "Expected request payload for this workflow.";
|
|
962
|
+
readonly type: {
|
|
963
|
+
readonly blueId: "FW7iYkzig4fepCdwfCdgNJw4DQ1fKwnAUf3YpjgfTPmG";
|
|
964
|
+
};
|
|
965
|
+
};
|
|
991
966
|
readonly steps: {
|
|
992
967
|
readonly items: readonly [{
|
|
993
968
|
readonly code: {
|
|
994
969
|
readonly type: {
|
|
995
970
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
996
971
|
};
|
|
997
|
-
readonly value: "const invalid = (reason) => ({\n changeset: [],\n events: [{ type: 'Conversation/Proposed Change Invalid', reason }]\n});\n\nconst
|
|
972
|
+
readonly value: "const invalid = (reason) => ({\n changeset: [],\n events: [{ type: 'Conversation/Proposed Change Invalid', reason }]\n});\n\nconst request = event.message.request;\n\nconst summary = request?.summary;\nif (!summary || typeof summary !== 'string') {\n return invalid('summary is missing');\n}\n\nconst postfixNode = canon.at(currentContractCanonical, '/postfix');\nconst postfixValue =\n typeof postfixNode?.value === 'string' ? postfixNode.value : '';\nconst path = '/proposedChange' + postfixValue;\n\nif (document(path)) {\n return invalid('proposed change already exists at ' + path);\n}\n\nreturn {\n changeset: [{ op: 'add', path, val: request }]\n};\n";
|
|
998
973
|
};
|
|
999
974
|
readonly name: "Prepare";
|
|
1000
975
|
readonly type: {
|
|
@@ -1017,56 +992,81 @@ export declare const contents: {
|
|
|
1017
992
|
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
1018
993
|
};
|
|
1019
994
|
};
|
|
1020
|
-
readonly
|
|
1021
|
-
readonly description: "
|
|
1022
|
-
readonly
|
|
995
|
+
readonly EvuCWsG1E6WJQg8QXmk6rwMANYTZjoLWVZ1vYQWUwdTH: {
|
|
996
|
+
readonly description: "Conversation channel.\nDelivers events that belong to a specific Timeline\n";
|
|
997
|
+
readonly name: "Timeline Channel";
|
|
998
|
+
readonly timelineId: {
|
|
999
|
+
readonly description: "The `timelineId` whose entries this channel delivers.";
|
|
1023
1000
|
readonly type: {
|
|
1024
1001
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1025
1002
|
};
|
|
1026
|
-
readonly value: "terminated";
|
|
1027
1003
|
};
|
|
1028
|
-
readonly name: "Status Completed";
|
|
1029
1004
|
readonly type: {
|
|
1030
|
-
readonly blueId: "
|
|
1005
|
+
readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
|
|
1031
1006
|
};
|
|
1032
1007
|
};
|
|
1033
|
-
readonly
|
|
1034
|
-
readonly
|
|
1035
|
-
|
|
1008
|
+
readonly ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS: {
|
|
1009
|
+
readonly code: {
|
|
1010
|
+
readonly description: "JavaScript source to execute for this step.";
|
|
1036
1011
|
readonly type: {
|
|
1037
1012
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1038
1013
|
};
|
|
1039
|
-
readonly value: "pending";
|
|
1040
1014
|
};
|
|
1041
|
-
readonly
|
|
1015
|
+
readonly description: "Conversation workflow step that executes provided JavaScript source as part of a sequential workflow.\n- Deterministic JavaScript runtime (QuickJS in Wasm):\n - Only deterministic APIs are available. Date, Math.random, eval/Function,\n Promise/async, RegExp, Proxy, ArrayBuffer/typed arrays, WebAssembly,\n console, JSON.parse/stringify, and Array.prototype.sort are disabled.\n - Values passed into and returned from the VM must be DV-compatible\n (null, boolean, number, string, array, object with string keys).\n- Gas accounting (when and what is charged):\n - JavaScript execution is metered by the QuickJS VM. The VM reports wasm\n fuel used; the processor converts it to host gas with:\n hostGas = ceil(wasmFuel / 1700)\n (calibration factor currently 1700 fuel per host gas unit).\n - Document snapshot reads (via document(<pointer>) inside the code):\n 8 + depth(pointer) + ceil(snapshotBytes/100) per call, where:\n - depth(\"/\") = 0, depth(\"/a/b\") = 2 (number of path segments),\n - snapshotBytes is the canonical JSON size of the retrieved snapshot.\n - Event emissions (if the returned result contains events: [...]):\n 20 + ceil(eventBytes/100) per emitted event, where eventBytes is the\n canonical JSON size of that event. (Delivery/handling of those events may incur\n additional charges elsewhere, outside this step.)\n- JavaScript bindings available to the code:\n - `event`: triggering event rendered via the `'simple'` JSON strategy (plain\n values/arrays, no metadata).\n - `eventCanonical`: triggering event rendered via the `'official'` strategy.\n - `currentContract`: the current handler contract rendered via the `'simple'`\n JSON strategy.\n - `currentContractCanonical`: current handler contract rendered via the\n `'official'` strategy.\n - `document(pointer?)`: document snapshot (absolute path or scope-relative) rendered\n with the `'simple'` strategy; defaults to `/` when omitted.\n - `document.canonical(pointer?)`: snapshot rendered using the `'official'`\n strategy for canonical metadata.\n - `steps`: results of previously executed steps.\n - `canon.unwrap(canonical, deep=true)`: converts canonical JSON back to plain values.\n - `canon.at(canonical, pointer)`: JSON Pointer navigation helper for canonical\n JSON objects.\n";
|
|
1016
|
+
readonly name: "JavaScript Code";
|
|
1042
1017
|
readonly type: {
|
|
1043
|
-
readonly blueId: "
|
|
1018
|
+
readonly blueId: "HYsLiqsqk7t98d5fK6YxKEQGeqBaHNVjM4rRNdxK4yUW";
|
|
1044
1019
|
};
|
|
1045
1020
|
};
|
|
1046
|
-
readonly
|
|
1047
|
-
readonly description: "
|
|
1048
|
-
readonly name: "
|
|
1049
|
-
readonly
|
|
1050
|
-
readonly description: "
|
|
1021
|
+
readonly FbCbhWAeTsbLsBNn4Fvy3hyqPXFo5166rVwQVYCrtDE5: {
|
|
1022
|
+
readonly description: "Discards a previously proposed change by removing its proposal state.";
|
|
1023
|
+
readonly name: "Reject Change Workflow";
|
|
1024
|
+
readonly postfix: {
|
|
1025
|
+
readonly description: "Optional postfix used while building proposed change state key.";
|
|
1051
1026
|
readonly type: {
|
|
1052
1027
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1053
1028
|
};
|
|
1054
1029
|
};
|
|
1030
|
+
readonly steps: {
|
|
1031
|
+
readonly items: readonly [{
|
|
1032
|
+
readonly code: {
|
|
1033
|
+
readonly type: {
|
|
1034
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1035
|
+
};
|
|
1036
|
+
readonly value: "const invalid = (reason) => ({\n changeset: [],\n events: [{ type: 'Conversation/Proposed Change Invalid', reason }]\n});\n\nconst postfixNode = canon.at(currentContractCanonical, '/postfix');\nconst postfixValue =\n typeof postfixNode?.value === 'string' ? postfixNode.value : '';\nconst path = '/proposedChange' + postfixValue;\n\nif (!document(path)) {\n return invalid('no proposed change at ' + path);\n}\n\nreturn {\n changeset: [{ op: 'remove', path }]\n};\n";
|
|
1037
|
+
};
|
|
1038
|
+
readonly name: "Prepare";
|
|
1039
|
+
readonly type: {
|
|
1040
|
+
readonly blueId: "ExZxT61PSpWHpEAtP2WKMXXqxEYN7Z13j7Zv36Dp99kS";
|
|
1041
|
+
};
|
|
1042
|
+
}, {
|
|
1043
|
+
readonly changeset: {
|
|
1044
|
+
readonly type: {
|
|
1045
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1046
|
+
};
|
|
1047
|
+
readonly value: "${steps.Prepare.changeset}";
|
|
1048
|
+
};
|
|
1049
|
+
readonly name: "Apply";
|
|
1050
|
+
readonly type: {
|
|
1051
|
+
readonly blueId: "FtHZJzH4hqAoGxFBjsmy1svfT4BwEBB4aHpFSZycZLLa";
|
|
1052
|
+
};
|
|
1053
|
+
}];
|
|
1054
|
+
};
|
|
1055
1055
|
readonly type: {
|
|
1056
|
-
readonly blueId: "
|
|
1056
|
+
readonly blueId: "CGdxkNjPcsdescqLPz6SNLsMyak6demQQr7RoKNHbCyv";
|
|
1057
1057
|
};
|
|
1058
1058
|
};
|
|
1059
|
-
readonly
|
|
1060
|
-
readonly
|
|
1061
|
-
|
|
1059
|
+
readonly FDEV1Q9rBZwaponjfRmZ4HsUHRwPC4gvmeHiRqvkLAkY: {
|
|
1060
|
+
readonly description: "Represents active processing of the document, often used for processes that involve\nmultiple steps over time.\n";
|
|
1061
|
+
readonly mode: {
|
|
1062
1062
|
readonly type: {
|
|
1063
1063
|
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1064
1064
|
};
|
|
1065
|
+
readonly value: "active";
|
|
1065
1066
|
};
|
|
1066
|
-
readonly
|
|
1067
|
-
readonly name: "JavaScript Code";
|
|
1067
|
+
readonly name: "Status In Progress";
|
|
1068
1068
|
readonly type: {
|
|
1069
|
-
readonly blueId: "
|
|
1069
|
+
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
1070
1070
|
};
|
|
1071
1071
|
};
|
|
1072
1072
|
readonly FM1K89eMHRDN6vHtHfGwFNojmgvSnACuYdtc3qQ6qPYB: {
|
|
@@ -1151,19 +1151,6 @@ export declare const contents: {
|
|
|
1151
1151
|
readonly blueId: "36epvrpVHZLjapbeZsNodz2NDnm7XZeNZcnkWHgkP1pp";
|
|
1152
1152
|
};
|
|
1153
1153
|
};
|
|
1154
|
-
readonly Guus3kHbivXvy5G93yhiKs3Pc8sxCc4XVvSo7CqLsQEc: {
|
|
1155
|
-
readonly description: "A final state indicating that the document encountered an unrecoverable\nerror and could not complete its process.\n";
|
|
1156
|
-
readonly mode: {
|
|
1157
|
-
readonly type: {
|
|
1158
|
-
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1159
|
-
};
|
|
1160
|
-
readonly value: "terminated";
|
|
1161
|
-
};
|
|
1162
|
-
readonly name: "Status Failed";
|
|
1163
|
-
readonly type: {
|
|
1164
|
-
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
1154
|
readonly HCTXeqkKBbVbsa3WfN2bPFSX7mthbtZ6ZhzByf9VDJJs: {
|
|
1168
1155
|
readonly apiKeyId: {
|
|
1169
1156
|
readonly description: "Identifier of the API credential used for the request.";
|
|
@@ -1240,6 +1227,19 @@ export declare const contents: {
|
|
|
1240
1227
|
readonly blueId: "DcoJyCh7XXxy1nR5xjy7qfkUgQ1GiZnKKSxh8DJusBSr";
|
|
1241
1228
|
};
|
|
1242
1229
|
};
|
|
1230
|
+
readonly HTTYTqakRbb53umfjRvryunCRm5QQm3mMArTrgUF5DxL: {
|
|
1231
|
+
readonly description: "A generic initial state. The document is waiting for an initial action\nor condition to be met before it becomes active.\n";
|
|
1232
|
+
readonly mode: {
|
|
1233
|
+
readonly type: {
|
|
1234
|
+
readonly blueId: "DLRQwz7MQeCrzjy9bohPNwtCxKEBbKaMK65KBrwjfG6K";
|
|
1235
|
+
};
|
|
1236
|
+
readonly value: "pending";
|
|
1237
|
+
};
|
|
1238
|
+
readonly name: "Status Pending";
|
|
1239
|
+
readonly type: {
|
|
1240
|
+
readonly blueId: "58B8orsFkxxy7bWqjLXJmtBs2b5rwnNQNbeoAbGhPkJc";
|
|
1241
|
+
};
|
|
1242
|
+
};
|
|
1243
1243
|
readonly HYsLiqsqk7t98d5fK6YxKEQGeqBaHNVjM4rRNdxK4yUW: {
|
|
1244
1244
|
readonly description: "Conversation package type. Abstract base for a single step in a Sequential Workflow. Concrete step types (e.g., JavaScript Code, Trigger Event, Update Document) refine behavior.\n";
|
|
1245
1245
|
readonly name: "Sequential Workflow Step";
|