@inf-monkeys-tech/monkeys 1.0.18 → 1.0.20

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 (37) hide show
  1. package/lib/contracts/continuity.d.ts +2 -2
  2. package/lib/contracts/continuity.d.ts.map +1 -1
  3. package/lib/contracts/continuity.js +39 -2
  4. package/lib/contracts/continuity.js.map +1 -1
  5. package/lib/contracts/index.d.ts +1 -0
  6. package/lib/contracts/index.d.ts.map +1 -1
  7. package/lib/contracts/index.js +1 -0
  8. package/lib/contracts/index.js.map +1 -1
  9. package/lib/contracts/tenant.d.ts +8 -0
  10. package/lib/contracts/tenant.d.ts.map +1 -1
  11. package/lib/contracts/tenant.js +1 -0
  12. package/lib/contracts/tenant.js.map +1 -1
  13. package/lib/contracts/workflow-runtime.d.ts +287 -0
  14. package/lib/contracts/workflow-runtime.d.ts.map +1 -0
  15. package/lib/contracts/workflow-runtime.js +198 -0
  16. package/lib/contracts/workflow-runtime.js.map +1 -0
  17. package/lib/esm/contracts/index.mjs +219 -3
  18. package/lib/esm/contracts/index.mjs.map +1 -1
  19. package/lib/esm/index.mjs +224 -4
  20. package/lib/esm/index.mjs.map +1 -1
  21. package/lib/esm/runtime/index.mjs +2 -1
  22. package/lib/esm/runtime/index.mjs.map +1 -1
  23. package/lib/esm/schemas/index.mjs +224 -4
  24. package/lib/esm/schemas/index.mjs.map +1 -1
  25. package/lib/json-schema/application-run.schema.json +0 -1
  26. package/lib/json-schema/index.json +5 -1
  27. package/lib/json-schema/tenant-product-config.schema.json +6 -0
  28. package/lib/json-schema/tenant-runtime-config.schema.json +6 -0
  29. package/lib/json-schema/workflow-catalog-entry.schema.json +238 -0
  30. package/lib/json-schema/workflow-completion-commit.schema.json +1163 -0
  31. package/lib/json-schema/workflow-completion-receipt.schema.json +160 -0
  32. package/lib/json-schema/workflow-publication.schema.json +168 -0
  33. package/lib/schemas/index.d.ts +288 -2
  34. package/lib/schemas/index.d.ts.map +1 -1
  35. package/lib/schemas/index.js +11 -1
  36. package/lib/schemas/index.js.map +1 -1
  37. package/package.json +1 -1
@@ -0,0 +1,160 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "WorkflowCompletionReceipt"
8
+ },
9
+ "commitId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 256
13
+ },
14
+ "runRef": {
15
+ "type": "object",
16
+ "properties": {
17
+ "kind": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 256
21
+ },
22
+ "id": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 256
26
+ },
27
+ "version": {
28
+ "anyOf": [
29
+ {
30
+ "type": "integer",
31
+ "exclusiveMinimum": 0,
32
+ "maximum": 9007199254740991
33
+ },
34
+ {
35
+ "type": "string",
36
+ "minLength": 1
37
+ }
38
+ ]
39
+ },
40
+ "ownerRepo": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 256
44
+ }
45
+ },
46
+ "required": [
47
+ "kind",
48
+ "id"
49
+ ],
50
+ "additionalProperties": false
51
+ },
52
+ "outputRefs": {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "object",
56
+ "properties": {
57
+ "kind": {
58
+ "type": "string",
59
+ "minLength": 1,
60
+ "maxLength": 256
61
+ },
62
+ "id": {
63
+ "type": "string",
64
+ "minLength": 1,
65
+ "maxLength": 256
66
+ },
67
+ "version": {
68
+ "anyOf": [
69
+ {
70
+ "type": "integer",
71
+ "exclusiveMinimum": 0,
72
+ "maximum": 9007199254740991
73
+ },
74
+ {
75
+ "type": "string",
76
+ "minLength": 1
77
+ }
78
+ ]
79
+ },
80
+ "ownerRepo": {
81
+ "type": "string",
82
+ "minLength": 1,
83
+ "maxLength": 256
84
+ }
85
+ },
86
+ "required": [
87
+ "kind",
88
+ "id"
89
+ ],
90
+ "additionalProperties": false
91
+ }
92
+ },
93
+ "artifactRefs": {
94
+ "type": "array",
95
+ "items": {
96
+ "type": "object",
97
+ "properties": {
98
+ "kind": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "maxLength": 256
102
+ },
103
+ "id": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "maxLength": 256
107
+ },
108
+ "version": {
109
+ "anyOf": [
110
+ {
111
+ "type": "integer",
112
+ "exclusiveMinimum": 0,
113
+ "maximum": 9007199254740991
114
+ },
115
+ {
116
+ "type": "string",
117
+ "minLength": 1
118
+ }
119
+ ]
120
+ },
121
+ "ownerRepo": {
122
+ "type": "string",
123
+ "minLength": 1,
124
+ "maxLength": 256
125
+ }
126
+ },
127
+ "required": [
128
+ "kind",
129
+ "id"
130
+ ],
131
+ "additionalProperties": false
132
+ }
133
+ },
134
+ "contentHash": {
135
+ "type": "string",
136
+ "pattern": "^[a-f0-9]{64}$"
137
+ },
138
+ "committedAt": {
139
+ "type": "string",
140
+ "format": "date-time",
141
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
142
+ },
143
+ "idempotentReplay": {
144
+ "type": "boolean"
145
+ }
146
+ },
147
+ "required": [
148
+ "contract",
149
+ "commitId",
150
+ "runRef",
151
+ "outputRefs",
152
+ "artifactRefs",
153
+ "contentHash",
154
+ "committedAt",
155
+ "idempotentReplay"
156
+ ],
157
+ "additionalProperties": false,
158
+ "$id": "https://schemas.infmonkeys.com/contracts/workflow-completion-receipt.schema.json",
159
+ "title": "workflow-completion-receipt"
160
+ }
@@ -0,0 +1,168 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "contract": {
6
+ "type": "string",
7
+ "const": "WorkflowPublication"
8
+ },
9
+ "publicationId": {
10
+ "type": "string",
11
+ "minLength": 1,
12
+ "maxLength": 256
13
+ },
14
+ "definitionRef": {
15
+ "type": "object",
16
+ "properties": {
17
+ "kind": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "maxLength": 256
21
+ },
22
+ "id": {
23
+ "type": "string",
24
+ "minLength": 1,
25
+ "maxLength": 256
26
+ },
27
+ "version": {
28
+ "anyOf": [
29
+ {
30
+ "type": "integer",
31
+ "exclusiveMinimum": 0,
32
+ "maximum": 9007199254740991
33
+ },
34
+ {
35
+ "type": "string",
36
+ "minLength": 1
37
+ }
38
+ ]
39
+ },
40
+ "ownerRepo": {
41
+ "type": "string",
42
+ "minLength": 1,
43
+ "maxLength": 256
44
+ }
45
+ },
46
+ "required": [
47
+ "kind",
48
+ "id"
49
+ ],
50
+ "additionalProperties": false
51
+ },
52
+ "runtimeDefinitionRef": {
53
+ "type": "object",
54
+ "properties": {
55
+ "kind": {
56
+ "type": "string",
57
+ "minLength": 1,
58
+ "maxLength": 256
59
+ },
60
+ "id": {
61
+ "type": "string",
62
+ "minLength": 1,
63
+ "maxLength": 256
64
+ },
65
+ "version": {
66
+ "anyOf": [
67
+ {
68
+ "type": "integer",
69
+ "exclusiveMinimum": 0,
70
+ "maximum": 9007199254740991
71
+ },
72
+ {
73
+ "type": "string",
74
+ "minLength": 1
75
+ }
76
+ ]
77
+ },
78
+ "ownerRepo": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "maxLength": 256
82
+ }
83
+ },
84
+ "required": [
85
+ "kind",
86
+ "id"
87
+ ],
88
+ "additionalProperties": false
89
+ },
90
+ "sourceHash": {
91
+ "type": "string",
92
+ "pattern": "^[a-f0-9]{64}$"
93
+ },
94
+ "compiledHash": {
95
+ "type": "string",
96
+ "pattern": "^[a-f0-9]{64}$"
97
+ },
98
+ "status": {
99
+ "type": "string",
100
+ "enum": [
101
+ "PENDING",
102
+ "PUBLISHED",
103
+ "FAILED",
104
+ "RETIRED"
105
+ ]
106
+ },
107
+ "publisherRef": {
108
+ "type": "object",
109
+ "properties": {
110
+ "kind": {
111
+ "type": "string",
112
+ "minLength": 1,
113
+ "maxLength": 256
114
+ },
115
+ "id": {
116
+ "type": "string",
117
+ "minLength": 1,
118
+ "maxLength": 256
119
+ },
120
+ "version": {
121
+ "anyOf": [
122
+ {
123
+ "type": "integer",
124
+ "exclusiveMinimum": 0,
125
+ "maximum": 9007199254740991
126
+ },
127
+ {
128
+ "type": "string",
129
+ "minLength": 1
130
+ }
131
+ ]
132
+ },
133
+ "ownerRepo": {
134
+ "type": "string",
135
+ "minLength": 1,
136
+ "maxLength": 256
137
+ }
138
+ },
139
+ "required": [
140
+ "kind",
141
+ "id"
142
+ ],
143
+ "additionalProperties": false
144
+ },
145
+ "publishedAt": {
146
+ "type": "string",
147
+ "format": "date-time",
148
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
149
+ },
150
+ "failureReason": {
151
+ "type": "string",
152
+ "minLength": 1
153
+ }
154
+ },
155
+ "required": [
156
+ "contract",
157
+ "publicationId",
158
+ "definitionRef",
159
+ "runtimeDefinitionRef",
160
+ "sourceHash",
161
+ "compiledHash",
162
+ "status",
163
+ "publisherRef"
164
+ ],
165
+ "additionalProperties": false,
166
+ "$id": "https://schemas.infmonkeys.com/contracts/workflow-publication.schema.json",
167
+ "title": "workflow-publication"
168
+ }