@sphereon/ssi-sdk.xstate-machine-persistence 0.33.1-feature.vcdm2.tsup.31 → 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 +7 -6
- package/plugin.schema.json +20 -102
package/dist/index.cjs
CHANGED
|
@@ -49,9 +49,7 @@ var require_plugin_schema = __commonJS({
|
|
|
49
49
|
type: "string"
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
required: [
|
|
53
|
-
"instanceId"
|
|
54
|
-
]
|
|
52
|
+
required: ["instanceId"]
|
|
55
53
|
},
|
|
56
54
|
MachineStateGetArgs: {
|
|
57
55
|
type: "object",
|
|
@@ -64,9 +62,7 @@ var require_plugin_schema = __commonJS({
|
|
|
64
62
|
type: "string"
|
|
65
63
|
}
|
|
66
64
|
},
|
|
67
|
-
required: [
|
|
68
|
-
"instanceId"
|
|
69
|
-
]
|
|
65
|
+
required: ["instanceId"]
|
|
70
66
|
},
|
|
71
67
|
MachineStateInfo: {
|
|
72
68
|
type: "object",
|
|
@@ -118,15 +114,7 @@ var require_plugin_schema = __commonJS({
|
|
|
118
114
|
type: "string"
|
|
119
115
|
}
|
|
120
116
|
},
|
|
121
|
-
required: [
|
|
122
|
-
"createdAt",
|
|
123
|
-
"instanceId",
|
|
124
|
-
"latestEventType",
|
|
125
|
-
"machineName",
|
|
126
|
-
"state",
|
|
127
|
-
"updatedAt",
|
|
128
|
-
"updatedCount"
|
|
129
|
-
]
|
|
117
|
+
required: ["createdAt", "instanceId", "latestEventType", "machineName", "state", "updatedAt", "updatedCount"]
|
|
130
118
|
},
|
|
131
119
|
SerializableState: {
|
|
132
120
|
$ref: "#/components/schemas/XStateConfig<any,AnyEventObject>"
|
|
@@ -142,10 +130,7 @@ var require_plugin_schema = __commonJS({
|
|
|
142
130
|
$ref: "#/components/schemas/SCXML.Event<AnyEventObject>"
|
|
143
131
|
},
|
|
144
132
|
_sessionid: {
|
|
145
|
-
type: [
|
|
146
|
-
"string",
|
|
147
|
-
"null"
|
|
148
|
-
]
|
|
133
|
+
type: ["string", "null"]
|
|
149
134
|
},
|
|
150
135
|
historyValue: {
|
|
151
136
|
$ref: "#/components/schemas/HistoryValue"
|
|
@@ -184,21 +169,11 @@ var require_plugin_schema = __commonJS({
|
|
|
184
169
|
type: "number"
|
|
185
170
|
}
|
|
186
171
|
},
|
|
187
|
-
required: [
|
|
188
|
-
"size"
|
|
189
|
-
]
|
|
172
|
+
required: ["size"]
|
|
190
173
|
},
|
|
191
174
|
machine: {}
|
|
192
175
|
},
|
|
193
|
-
required: [
|
|
194
|
-
"value",
|
|
195
|
-
"context",
|
|
196
|
-
"_event",
|
|
197
|
-
"_sessionid",
|
|
198
|
-
"configuration",
|
|
199
|
-
"transitions",
|
|
200
|
-
"children"
|
|
201
|
-
],
|
|
176
|
+
required: ["value", "context", "_event", "_sessionid", "configuration", "transitions", "children"],
|
|
202
177
|
description: "The configuration for the XState machine state. Simplified StateConfig object from XState so we have a minimal typed structure"
|
|
203
178
|
},
|
|
204
179
|
StateValue: {
|
|
@@ -227,11 +202,7 @@ var require_plugin_schema = __commonJS({
|
|
|
227
202
|
},
|
|
228
203
|
type: {
|
|
229
204
|
type: "string",
|
|
230
|
-
enum: [
|
|
231
|
-
"platform",
|
|
232
|
-
"internal",
|
|
233
|
-
"external"
|
|
234
|
-
],
|
|
205
|
+
enum: ["platform", "internal", "external"],
|
|
235
206
|
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).`
|
|
236
207
|
},
|
|
237
208
|
sendid: {
|
|
@@ -259,12 +230,7 @@ var require_plugin_schema = __commonJS({
|
|
|
259
230
|
const: "scxml"
|
|
260
231
|
}
|
|
261
232
|
},
|
|
262
|
-
required: [
|
|
263
|
-
"name",
|
|
264
|
-
"type",
|
|
265
|
-
"data",
|
|
266
|
-
"$$type"
|
|
267
|
-
]
|
|
233
|
+
required: ["name", "type", "data", "$$type"]
|
|
268
234
|
},
|
|
269
235
|
AnyEventObject: {
|
|
270
236
|
type: "object",
|
|
@@ -274,9 +240,7 @@ var require_plugin_schema = __commonJS({
|
|
|
274
240
|
description: "The type of event that is sent."
|
|
275
241
|
}
|
|
276
242
|
},
|
|
277
|
-
required: [
|
|
278
|
-
"type"
|
|
279
|
-
]
|
|
243
|
+
required: ["type"]
|
|
280
244
|
},
|
|
281
245
|
HistoryValue: {
|
|
282
246
|
type: "object",
|
|
@@ -298,9 +262,7 @@ var require_plugin_schema = __commonJS({
|
|
|
298
262
|
$ref: "#/components/schemas/StateValue"
|
|
299
263
|
}
|
|
300
264
|
},
|
|
301
|
-
required: [
|
|
302
|
-
"states"
|
|
303
|
-
]
|
|
265
|
+
required: ["states"]
|
|
304
266
|
},
|
|
305
267
|
InitMachineStateArgs: {
|
|
306
268
|
type: "object",
|
|
@@ -393,20 +355,10 @@ var require_plugin_schema = __commonJS({
|
|
|
393
355
|
type: "string"
|
|
394
356
|
}
|
|
395
357
|
},
|
|
396
|
-
required: [
|
|
397
|
-
"createdAt",
|
|
398
|
-
"instanceId",
|
|
399
|
-
"latestEventType",
|
|
400
|
-
"machineName",
|
|
401
|
-
"state",
|
|
402
|
-
"updatedAt",
|
|
403
|
-
"updatedCount"
|
|
404
|
-
]
|
|
358
|
+
required: ["createdAt", "instanceId", "latestEventType", "machineName", "state", "updatedAt", "updatedCount"]
|
|
405
359
|
}
|
|
406
360
|
},
|
|
407
|
-
required: [
|
|
408
|
-
"machineName"
|
|
409
|
-
]
|
|
361
|
+
required: ["machineName"]
|
|
410
362
|
},
|
|
411
363
|
MachineStateInit: {
|
|
412
364
|
type: "object",
|
|
@@ -440,19 +392,11 @@ var require_plugin_schema = __commonJS({
|
|
|
440
392
|
description: "Represents the expiration date"
|
|
441
393
|
}
|
|
442
394
|
},
|
|
443
|
-
required: [
|
|
444
|
-
"createdAt",
|
|
445
|
-
"instanceId",
|
|
446
|
-
"machineName",
|
|
447
|
-
"stateType"
|
|
448
|
-
]
|
|
395
|
+
required: ["createdAt", "instanceId", "machineName", "stateType"]
|
|
449
396
|
},
|
|
450
397
|
MachineStateInitType: {
|
|
451
398
|
type: "string",
|
|
452
|
-
enum: [
|
|
453
|
-
"new",
|
|
454
|
-
"existing"
|
|
455
|
-
]
|
|
399
|
+
enum: ["new", "existing"]
|
|
456
400
|
},
|
|
457
401
|
MachineStatePersistArgs: {
|
|
458
402
|
type: "object",
|
|
@@ -476,10 +420,7 @@ var require_plugin_schema = __commonJS({
|
|
|
476
420
|
$ref: "#/components/schemas/SCXML.Event<AnyEventObject>"
|
|
477
421
|
},
|
|
478
422
|
_sessionid: {
|
|
479
|
-
type: [
|
|
480
|
-
"string",
|
|
481
|
-
"null"
|
|
482
|
-
]
|
|
423
|
+
type: ["string", "null"]
|
|
483
424
|
},
|
|
484
425
|
historyValue: {
|
|
485
426
|
$ref: "#/components/schemas/HistoryValue"
|
|
@@ -518,21 +459,11 @@ var require_plugin_schema = __commonJS({
|
|
|
518
459
|
type: "number"
|
|
519
460
|
}
|
|
520
461
|
},
|
|
521
|
-
required: [
|
|
522
|
-
"size"
|
|
523
|
-
]
|
|
462
|
+
required: ["size"]
|
|
524
463
|
},
|
|
525
464
|
machine: {}
|
|
526
465
|
},
|
|
527
|
-
required: [
|
|
528
|
-
"_event",
|
|
529
|
-
"_sessionid",
|
|
530
|
-
"children",
|
|
531
|
-
"configuration",
|
|
532
|
-
"context",
|
|
533
|
-
"transitions",
|
|
534
|
-
"value"
|
|
535
|
-
]
|
|
466
|
+
required: ["_event", "_sessionid", "children", "configuration", "context", "transitions", "value"]
|
|
536
467
|
},
|
|
537
468
|
instanceId: {
|
|
538
469
|
type: "object",
|
|
@@ -613,23 +544,10 @@ var require_plugin_schema = __commonJS({
|
|
|
613
544
|
type: "string"
|
|
614
545
|
}
|
|
615
546
|
},
|
|
616
|
-
required: [
|
|
617
|
-
"createdAt",
|
|
618
|
-
"instanceId",
|
|
619
|
-
"latestEventType",
|
|
620
|
-
"machineName",
|
|
621
|
-
"state",
|
|
622
|
-
"updatedAt",
|
|
623
|
-
"updatedCount"
|
|
624
|
-
]
|
|
547
|
+
required: ["createdAt", "instanceId", "latestEventType", "machineName", "state", "updatedAt", "updatedCount"]
|
|
625
548
|
}
|
|
626
549
|
},
|
|
627
|
-
required: [
|
|
628
|
-
"instanceId",
|
|
629
|
-
"machineName",
|
|
630
|
-
"state",
|
|
631
|
-
"stateType"
|
|
632
|
-
],
|
|
550
|
+
required: ["instanceId", "machineName", "state", "stateType"],
|
|
633
551
|
description: "Represents the arguments required to persist the machine state."
|
|
634
552
|
},
|
|
635
553
|
DeleteExpiredStatesArgs: {
|