@sphereon/ssi-sdk.xstate-machine-persistence 0.33.1-feature.vcdm2.tsup.32 → 0.33.1-feature.vcdm2.tsup.33
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/dist/index.cjs +19 -101
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -101
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/plugin.schema.json +20 -102
package/dist/index.js
CHANGED
|
@@ -23,9 +23,7 @@ var require_plugin_schema = __commonJS({
|
|
|
23
23
|
type: "string"
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
|
-
required: [
|
|
27
|
-
"instanceId"
|
|
28
|
-
]
|
|
26
|
+
required: ["instanceId"]
|
|
29
27
|
},
|
|
30
28
|
MachineStateGetArgs: {
|
|
31
29
|
type: "object",
|
|
@@ -38,9 +36,7 @@ var require_plugin_schema = __commonJS({
|
|
|
38
36
|
type: "string"
|
|
39
37
|
}
|
|
40
38
|
},
|
|
41
|
-
required: [
|
|
42
|
-
"instanceId"
|
|
43
|
-
]
|
|
39
|
+
required: ["instanceId"]
|
|
44
40
|
},
|
|
45
41
|
MachineStateInfo: {
|
|
46
42
|
type: "object",
|
|
@@ -92,15 +88,7 @@ var require_plugin_schema = __commonJS({
|
|
|
92
88
|
type: "string"
|
|
93
89
|
}
|
|
94
90
|
},
|
|
95
|
-
required: [
|
|
96
|
-
"createdAt",
|
|
97
|
-
"instanceId",
|
|
98
|
-
"latestEventType",
|
|
99
|
-
"machineName",
|
|
100
|
-
"state",
|
|
101
|
-
"updatedAt",
|
|
102
|
-
"updatedCount"
|
|
103
|
-
]
|
|
91
|
+
required: ["createdAt", "instanceId", "latestEventType", "machineName", "state", "updatedAt", "updatedCount"]
|
|
104
92
|
},
|
|
105
93
|
SerializableState: {
|
|
106
94
|
$ref: "#/components/schemas/XStateConfig<any,AnyEventObject>"
|
|
@@ -116,10 +104,7 @@ var require_plugin_schema = __commonJS({
|
|
|
116
104
|
$ref: "#/components/schemas/SCXML.Event<AnyEventObject>"
|
|
117
105
|
},
|
|
118
106
|
_sessionid: {
|
|
119
|
-
type: [
|
|
120
|
-
"string",
|
|
121
|
-
"null"
|
|
122
|
-
]
|
|
107
|
+
type: ["string", "null"]
|
|
123
108
|
},
|
|
124
109
|
historyValue: {
|
|
125
110
|
$ref: "#/components/schemas/HistoryValue"
|
|
@@ -158,21 +143,11 @@ var require_plugin_schema = __commonJS({
|
|
|
158
143
|
type: "number"
|
|
159
144
|
}
|
|
160
145
|
},
|
|
161
|
-
required: [
|
|
162
|
-
"size"
|
|
163
|
-
]
|
|
146
|
+
required: ["size"]
|
|
164
147
|
},
|
|
165
148
|
machine: {}
|
|
166
149
|
},
|
|
167
|
-
required: [
|
|
168
|
-
"value",
|
|
169
|
-
"context",
|
|
170
|
-
"_event",
|
|
171
|
-
"_sessionid",
|
|
172
|
-
"configuration",
|
|
173
|
-
"transitions",
|
|
174
|
-
"children"
|
|
175
|
-
],
|
|
150
|
+
required: ["value", "context", "_event", "_sessionid", "configuration", "transitions", "children"],
|
|
176
151
|
description: "The configuration for the XState machine state. Simplified StateConfig object from XState so we have a minimal typed structure"
|
|
177
152
|
},
|
|
178
153
|
StateValue: {
|
|
@@ -201,11 +176,7 @@ var require_plugin_schema = __commonJS({
|
|
|
201
176
|
},
|
|
202
177
|
type: {
|
|
203
178
|
type: "string",
|
|
204
|
-
enum: [
|
|
205
|
-
"platform",
|
|
206
|
-
"internal",
|
|
207
|
-
"external"
|
|
208
|
-
],
|
|
179
|
+
enum: ["platform", "internal", "external"],
|
|
209
180
|
description: `This field describes the event type. The SCXML Processor must set it to: "platform" (for events raised by the platform itself, such as error events), "internal" (for events raised by <raise> and <send> with target '_internal') or "external" (for all other events).`
|
|
210
181
|
},
|
|
211
182
|
sendid: {
|
|
@@ -233,12 +204,7 @@ var require_plugin_schema = __commonJS({
|
|
|
233
204
|
const: "scxml"
|
|
234
205
|
}
|
|
235
206
|
},
|
|
236
|
-
required: [
|
|
237
|
-
"name",
|
|
238
|
-
"type",
|
|
239
|
-
"data",
|
|
240
|
-
"$$type"
|
|
241
|
-
]
|
|
207
|
+
required: ["name", "type", "data", "$$type"]
|
|
242
208
|
},
|
|
243
209
|
AnyEventObject: {
|
|
244
210
|
type: "object",
|
|
@@ -248,9 +214,7 @@ var require_plugin_schema = __commonJS({
|
|
|
248
214
|
description: "The type of event that is sent."
|
|
249
215
|
}
|
|
250
216
|
},
|
|
251
|
-
required: [
|
|
252
|
-
"type"
|
|
253
|
-
]
|
|
217
|
+
required: ["type"]
|
|
254
218
|
},
|
|
255
219
|
HistoryValue: {
|
|
256
220
|
type: "object",
|
|
@@ -272,9 +236,7 @@ var require_plugin_schema = __commonJS({
|
|
|
272
236
|
$ref: "#/components/schemas/StateValue"
|
|
273
237
|
}
|
|
274
238
|
},
|
|
275
|
-
required: [
|
|
276
|
-
"states"
|
|
277
|
-
]
|
|
239
|
+
required: ["states"]
|
|
278
240
|
},
|
|
279
241
|
InitMachineStateArgs: {
|
|
280
242
|
type: "object",
|
|
@@ -367,20 +329,10 @@ var require_plugin_schema = __commonJS({
|
|
|
367
329
|
type: "string"
|
|
368
330
|
}
|
|
369
331
|
},
|
|
370
|
-
required: [
|
|
371
|
-
"createdAt",
|
|
372
|
-
"instanceId",
|
|
373
|
-
"latestEventType",
|
|
374
|
-
"machineName",
|
|
375
|
-
"state",
|
|
376
|
-
"updatedAt",
|
|
377
|
-
"updatedCount"
|
|
378
|
-
]
|
|
332
|
+
required: ["createdAt", "instanceId", "latestEventType", "machineName", "state", "updatedAt", "updatedCount"]
|
|
379
333
|
}
|
|
380
334
|
},
|
|
381
|
-
required: [
|
|
382
|
-
"machineName"
|
|
383
|
-
]
|
|
335
|
+
required: ["machineName"]
|
|
384
336
|
},
|
|
385
337
|
MachineStateInit: {
|
|
386
338
|
type: "object",
|
|
@@ -414,19 +366,11 @@ var require_plugin_schema = __commonJS({
|
|
|
414
366
|
description: "Represents the expiration date"
|
|
415
367
|
}
|
|
416
368
|
},
|
|
417
|
-
required: [
|
|
418
|
-
"createdAt",
|
|
419
|
-
"instanceId",
|
|
420
|
-
"machineName",
|
|
421
|
-
"stateType"
|
|
422
|
-
]
|
|
369
|
+
required: ["createdAt", "instanceId", "machineName", "stateType"]
|
|
423
370
|
},
|
|
424
371
|
MachineStateInitType: {
|
|
425
372
|
type: "string",
|
|
426
|
-
enum: [
|
|
427
|
-
"new",
|
|
428
|
-
"existing"
|
|
429
|
-
]
|
|
373
|
+
enum: ["new", "existing"]
|
|
430
374
|
},
|
|
431
375
|
MachineStatePersistArgs: {
|
|
432
376
|
type: "object",
|
|
@@ -450,10 +394,7 @@ var require_plugin_schema = __commonJS({
|
|
|
450
394
|
$ref: "#/components/schemas/SCXML.Event<AnyEventObject>"
|
|
451
395
|
},
|
|
452
396
|
_sessionid: {
|
|
453
|
-
type: [
|
|
454
|
-
"string",
|
|
455
|
-
"null"
|
|
456
|
-
]
|
|
397
|
+
type: ["string", "null"]
|
|
457
398
|
},
|
|
458
399
|
historyValue: {
|
|
459
400
|
$ref: "#/components/schemas/HistoryValue"
|
|
@@ -492,21 +433,11 @@ var require_plugin_schema = __commonJS({
|
|
|
492
433
|
type: "number"
|
|
493
434
|
}
|
|
494
435
|
},
|
|
495
|
-
required: [
|
|
496
|
-
"size"
|
|
497
|
-
]
|
|
436
|
+
required: ["size"]
|
|
498
437
|
},
|
|
499
438
|
machine: {}
|
|
500
439
|
},
|
|
501
|
-
required: [
|
|
502
|
-
"_event",
|
|
503
|
-
"_sessionid",
|
|
504
|
-
"children",
|
|
505
|
-
"configuration",
|
|
506
|
-
"context",
|
|
507
|
-
"transitions",
|
|
508
|
-
"value"
|
|
509
|
-
]
|
|
440
|
+
required: ["_event", "_sessionid", "children", "configuration", "context", "transitions", "value"]
|
|
510
441
|
},
|
|
511
442
|
instanceId: {
|
|
512
443
|
type: "object",
|
|
@@ -587,23 +518,10 @@ var require_plugin_schema = __commonJS({
|
|
|
587
518
|
type: "string"
|
|
588
519
|
}
|
|
589
520
|
},
|
|
590
|
-
required: [
|
|
591
|
-
"createdAt",
|
|
592
|
-
"instanceId",
|
|
593
|
-
"latestEventType",
|
|
594
|
-
"machineName",
|
|
595
|
-
"state",
|
|
596
|
-
"updatedAt",
|
|
597
|
-
"updatedCount"
|
|
598
|
-
]
|
|
521
|
+
required: ["createdAt", "instanceId", "latestEventType", "machineName", "state", "updatedAt", "updatedCount"]
|
|
599
522
|
}
|
|
600
523
|
},
|
|
601
|
-
required: [
|
|
602
|
-
"instanceId",
|
|
603
|
-
"machineName",
|
|
604
|
-
"state",
|
|
605
|
-
"stateType"
|
|
606
|
-
],
|
|
524
|
+
required: ["instanceId", "machineName", "state", "stateType"],
|
|
607
525
|
description: "Represents the arguments required to persist the machine state."
|
|
608
526
|
},
|
|
609
527
|
DeleteExpiredStatesArgs: {
|