@fleetless/contracts 13.3.0 → 14.0.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/CHANGELOG.md +141 -0
- package/artifacts/openapi.json +1983 -784
- package/artifacts/routes.json +224 -208
- package/artifacts/schema/access-warning.schema.json +51 -0
- package/artifacts/schema/action-config.schema.json +35 -0
- package/artifacts/schema/app-access-response.schema.json +136 -0
- package/artifacts/schema/app-access.schema.json +80 -0
- package/artifacts/schema/app-deletion-summary.schema.json +0 -7
- package/artifacts/schema/app-invitation-list-response.schema.json +13 -6
- package/artifacts/schema/app-invitation.schema.json +5 -5
- package/artifacts/schema/app-list-response.schema.json +6 -6
- package/artifacts/schema/app-lock.schema.json +30 -0
- package/artifacts/schema/app-user-list-response.schema.json +13 -6
- package/artifacts/schema/app-user.schema.json +13 -6
- package/artifacts/schema/app.schema.json +6 -6
- package/artifacts/schema/auth-ok.schema.json +20 -6
- package/artifacts/schema/camera-list-response.schema.json +1 -1
- package/artifacts/schema/client-identity.schema.json +21 -6
- package/artifacts/schema/cloud-config.schema.json +359 -5
- package/artifacts/schema/config-draft-response.schema.json +359 -5
- package/artifacts/schema/config-version-response.schema.json +359 -5
- package/artifacts/schema/create-app-invitation-request.schema.json +4 -4
- package/artifacts/schema/create-app-user-request.schema.json +4 -4
- package/artifacts/schema/create-org-role-request.schema.json +33 -0
- package/artifacts/schema/dangling-reference.schema.json +129 -0
- package/artifacts/schema/datapoint-config.schema.json +35 -0
- package/artifacts/schema/datapoint-list-response.schema.json +1 -1
- package/artifacts/schema/effective-capability.schema.json +104 -0
- package/artifacts/schema/effective-rights-query.schema.json +19 -0
- package/artifacts/schema/effective-rights-response.schema.json +310 -0
- package/artifacts/schema/effective-robot-rights.schema.json +266 -0
- package/artifacts/schema/invoke-or-service-response.schema.json +1 -1
- package/artifacts/schema/invoke-response.schema.json +1 -1
- package/artifacts/schema/journal-intent-v2-body.schema.json +74 -0
- package/artifacts/schema/journal-intent-v2.schema.json +84 -0
- package/artifacts/schema/journal-replay-receipt-body.schema.json +1 -0
- package/artifacts/schema/journal-replay-receipt.schema.json +1 -0
- package/artifacts/schema/mcp-robot-datasheet.schema.json +2 -2
- package/artifacts/schema/org-role-list-response.schema.json +205 -0
- package/artifacts/schema/org-role.schema.json +59 -0
- package/artifacts/schema/patch-app-user-request.schema.json +4 -4
- package/artifacts/schema/patch-org-role-request.schema.json +38 -0
- package/artifacts/schema/publish-config-response.schema.json +48 -1
- package/artifacts/schema/publisher-config.schema.json +35 -0
- package/artifacts/schema/put-role-defaults-request.schema.json +127 -0
- package/artifacts/schema/reference-place.schema.json +111 -0
- package/artifacts/schema/rename-slug-response.schema.json +4 -3
- package/artifacts/schema/robot-config-doc.schema.json +359 -5
- package/artifacts/schema/role-cycle-details.schema.json +18 -0
- package/artifacts/schema/role-defaults-response.schema.json +59 -0
- package/artifacts/schema/role-rename-preview.schema.json +146 -0
- package/artifacts/schema/service-config.schema.json +35 -0
- package/artifacts/schema/slug-usage-response.schema.json +4 -3
- package/artifacts/schema/update-app-request.schema.json +0 -12
- package/dist/app-users.d.ts +11 -8
- package/dist/app-users.js +18 -10
- package/dist/apps.d.ts +242 -71
- package/dist/apps.js +205 -151
- package/dist/audit.d.ts +3 -3
- package/dist/billing.d.ts +10 -10
- package/dist/client-auth.d.ts +5 -2
- package/dist/client-auth.js +11 -3
- package/dist/client-robots.d.ts +1 -1
- package/dist/client-robots.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/config-issues.d.ts +1 -1
- package/dist/config-issues.js +1 -1
- package/dist/config.d.ts +77 -11
- package/dist/config.js +108 -14
- package/dist/errors.d.ts +14 -5
- package/dist/errors.js +37 -24
- package/dist/index.d.ts +18 -8
- package/dist/index.js +14 -4
- package/dist/journal-intents.d.ts +30 -0
- package/dist/journal-intents.js +3 -0
- package/dist/legal-acceptances.d.ts +2 -2
- package/dist/mcp.d.ts +5 -37
- package/dist/mcp.js +4 -14
- package/dist/org-roles.d.ts +182 -0
- package/dist/org-roles.js +198 -0
- package/dist/plans.d.ts +6 -6
- package/dist/protocol.d.ts +19 -1
- package/dist/realtime.d.ts +6 -3
- package/dist/realtime.js +1 -1
- package/dist/rest.d.ts +76 -25
- package/dist/rest.js +41 -29
- package/dist/rights.d.ts +197 -0
- package/dist/rights.js +396 -0
- package/dist/routes.js +185 -134
- package/package.json +1 -1
- package/artifacts/schema/mcp-role-preview-response.schema.json +0 -134
- package/artifacts/schema/role-delete-query.schema.json +0 -13
- package/artifacts/schema/role-in-use-details.schema.json +0 -28
- package/artifacts/schema/role-list-response.schema.json +0 -48
- package/artifacts/schema/role-permissions.schema.json +0 -61
- package/artifacts/schema/role-rename-request.schema.json +0 -16
- package/artifacts/schema/role.schema.json +0 -35
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"robot_id": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uuid",
|
|
8
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
9
|
+
"description": "The robot, one that is attached to the app."
|
|
10
|
+
},
|
|
11
|
+
"robot_name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 1,
|
|
14
|
+
"maxLength": 200,
|
|
15
|
+
"description": "The robot's name."
|
|
16
|
+
},
|
|
17
|
+
"published_version": {
|
|
18
|
+
"anyOf": [
|
|
19
|
+
{
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"exclusiveMinimum": 0,
|
|
22
|
+
"maximum": 9007199254740991
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"type": "null"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"description": "The version of the robot's published `fleetless.yaml` that the answer was computed from; `null` when nothing is published."
|
|
29
|
+
},
|
|
30
|
+
"reachable": {
|
|
31
|
+
"type": "boolean",
|
|
32
|
+
"description": "Whether a session of this role reaches the robot at all: at least one slug or one capability is granted once the locks are applied. When `false`, `robots.describe` answers `not_found` for the robot and `robots.list` leaves it out; `capabilities` says why, and `datasheet` is the empty one."
|
|
33
|
+
},
|
|
34
|
+
"capabilities": {
|
|
35
|
+
"type": "array",
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"name": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 2,
|
|
42
|
+
"maxLength": 63,
|
|
43
|
+
"pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$",
|
|
44
|
+
"description": "The exposure's slug, or `assets` or `job_history` for the capabilities that belong to the robot as a whole."
|
|
45
|
+
},
|
|
46
|
+
"kind": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"enum": [
|
|
49
|
+
"read",
|
|
50
|
+
"invoke",
|
|
51
|
+
"publish",
|
|
52
|
+
"assets",
|
|
53
|
+
"job_history"
|
|
54
|
+
],
|
|
55
|
+
"description": "The kind of access the capability needs."
|
|
56
|
+
},
|
|
57
|
+
"granted": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"description": "Whether the role may use it: its requirement is met and the app has not locked it."
|
|
60
|
+
},
|
|
61
|
+
"requirement": {
|
|
62
|
+
"type": "array",
|
|
63
|
+
"items": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"description": "The role keys that qualify, from the entry, the rule or the default that decided. Holding one of them, or inheriting from one, is enough. Empty when nobody qualifies."
|
|
67
|
+
},
|
|
68
|
+
"source": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"enum": [
|
|
71
|
+
"entry",
|
|
72
|
+
"rule",
|
|
73
|
+
"robot",
|
|
74
|
+
"org_default"
|
|
75
|
+
],
|
|
76
|
+
"description": "Where the requirement came from: `entry` is the entry's own `role`, `rule` the first matching rule of `access.rules`, `robot` the robot's `access.assets` or `access.job_history`, and `org_default` the organization's default for the kind."
|
|
77
|
+
},
|
|
78
|
+
"rule_index": {
|
|
79
|
+
"anyOf": [
|
|
80
|
+
{
|
|
81
|
+
"type": "integer",
|
|
82
|
+
"minimum": 0,
|
|
83
|
+
"maximum": 9007199254740991
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"type": "null"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"description": "For `rule`, the position of the deciding rule in `access.rules`, counted from zero; `null` otherwise."
|
|
90
|
+
},
|
|
91
|
+
"rule_match": {
|
|
92
|
+
"anyOf": [
|
|
93
|
+
{
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"type": "null"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"description": "For `rule`, that rule's `match` glob; `null` otherwise."
|
|
101
|
+
},
|
|
102
|
+
"satisfied_by": {
|
|
103
|
+
"anyOf": [
|
|
104
|
+
{
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "null"
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"description": "The key from `requirement` that the role holds through inheritance. `null` when the role is named in the requirement itself, and when it does not meet the requirement at all. Independent of locks."
|
|
112
|
+
},
|
|
113
|
+
"locked": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"description": "Whether the app locks this capability, as a kind or as a single lock. A lock wins over the requirement."
|
|
116
|
+
},
|
|
117
|
+
"unknown_roles": {
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"description": "Keys in the requirement that name no role of the organization. They grant nothing."
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
"required": [
|
|
126
|
+
"name",
|
|
127
|
+
"kind",
|
|
128
|
+
"granted",
|
|
129
|
+
"requirement",
|
|
130
|
+
"source",
|
|
131
|
+
"rule_index",
|
|
132
|
+
"rule_match",
|
|
133
|
+
"satisfied_by",
|
|
134
|
+
"locked",
|
|
135
|
+
"unknown_roles"
|
|
136
|
+
],
|
|
137
|
+
"additionalProperties": false
|
|
138
|
+
},
|
|
139
|
+
"description": "Every capability of the published configuration, and `assets` and `job_history`, each granted or not."
|
|
140
|
+
},
|
|
141
|
+
"datasheet": {
|
|
142
|
+
"type": "object",
|
|
143
|
+
"properties": {
|
|
144
|
+
"robot_id": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"format": "uuid",
|
|
147
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
148
|
+
},
|
|
149
|
+
"robot_name": {
|
|
150
|
+
"type": "string",
|
|
151
|
+
"minLength": 1,
|
|
152
|
+
"maxLength": 200
|
|
153
|
+
},
|
|
154
|
+
"capabilities": {
|
|
155
|
+
"type": "object",
|
|
156
|
+
"properties": {
|
|
157
|
+
"job_history": {
|
|
158
|
+
"type": "boolean"
|
|
159
|
+
},
|
|
160
|
+
"assets": {
|
|
161
|
+
"type": "boolean"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"required": [
|
|
165
|
+
"job_history",
|
|
166
|
+
"assets"
|
|
167
|
+
],
|
|
168
|
+
"additionalProperties": false
|
|
169
|
+
},
|
|
170
|
+
"exposures": {
|
|
171
|
+
"maxItems": 2000,
|
|
172
|
+
"type": "array",
|
|
173
|
+
"items": {
|
|
174
|
+
"type": "object",
|
|
175
|
+
"properties": {
|
|
176
|
+
"slug": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"minLength": 2,
|
|
179
|
+
"maxLength": 63,
|
|
180
|
+
"pattern": "^[a-z][a-z0-9]*(?:_[a-z0-9]+)*$"
|
|
181
|
+
},
|
|
182
|
+
"kind": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"enum": [
|
|
185
|
+
"datapoint",
|
|
186
|
+
"service",
|
|
187
|
+
"action",
|
|
188
|
+
"publisher",
|
|
189
|
+
"camera"
|
|
190
|
+
]
|
|
191
|
+
},
|
|
192
|
+
"description": {
|
|
193
|
+
"anyOf": [
|
|
194
|
+
{
|
|
195
|
+
"type": "string",
|
|
196
|
+
"maxLength": 2000
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"type": "null"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
"unit": {
|
|
204
|
+
"anyOf": [
|
|
205
|
+
{
|
|
206
|
+
"type": "string",
|
|
207
|
+
"maxLength": 32
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "null"
|
|
211
|
+
}
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
"decimals": {
|
|
215
|
+
"anyOf": [
|
|
216
|
+
{
|
|
217
|
+
"type": "integer",
|
|
218
|
+
"minimum": 0,
|
|
219
|
+
"maximum": 6
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"type": "null"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"input_schema": {
|
|
227
|
+
"anyOf": [
|
|
228
|
+
{},
|
|
229
|
+
{
|
|
230
|
+
"type": "null"
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"required": [
|
|
236
|
+
"slug",
|
|
237
|
+
"kind",
|
|
238
|
+
"description",
|
|
239
|
+
"unit",
|
|
240
|
+
"decimals",
|
|
241
|
+
"input_schema"
|
|
242
|
+
],
|
|
243
|
+
"additionalProperties": false
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"required": [
|
|
248
|
+
"robot_id",
|
|
249
|
+
"robot_name",
|
|
250
|
+
"capabilities",
|
|
251
|
+
"exposures"
|
|
252
|
+
],
|
|
253
|
+
"additionalProperties": false,
|
|
254
|
+
"description": "The datasheet an MCP session of this role would get for the robot."
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"required": [
|
|
258
|
+
"robot_id",
|
|
259
|
+
"robot_name",
|
|
260
|
+
"published_version",
|
|
261
|
+
"reachable",
|
|
262
|
+
"capabilities",
|
|
263
|
+
"datasheet"
|
|
264
|
+
],
|
|
265
|
+
"additionalProperties": false
|
|
266
|
+
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"action",
|
|
127
127
|
"service"
|
|
128
128
|
],
|
|
129
|
-
"description": "Always `action` in this shape. A caller sends the same request for both kinds and cannot tell from
|
|
129
|
+
"description": "Always `action` in this shape. A caller sends the same request for both kinds and cannot tell from the slug alone which it invoked, so the answer says which it was rather than leaving it to be inferred from the shape."
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
"required": [
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
"action",
|
|
125
125
|
"service"
|
|
126
126
|
],
|
|
127
|
-
"description": "Always `action` in this shape. A caller sends the same request for both kinds and cannot tell from
|
|
127
|
+
"description": "Always `action` in this shape. A caller sends the same request for both kinds and cannot tell from the slug alone which it invoked, so the answer says which it was rather than leaving it to be inferred from the shape."
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
"required": [
|
|
@@ -756,6 +756,80 @@
|
|
|
756
756
|
],
|
|
757
757
|
"additionalProperties": false
|
|
758
758
|
},
|
|
759
|
+
{
|
|
760
|
+
"type": "object",
|
|
761
|
+
"properties": {
|
|
762
|
+
"schema": {
|
|
763
|
+
"type": "string",
|
|
764
|
+
"const": "fleetless.deletion-intent.v2"
|
|
765
|
+
},
|
|
766
|
+
"environment": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"minLength": 1
|
|
769
|
+
},
|
|
770
|
+
"generation": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
773
|
+
},
|
|
774
|
+
"sequence": {
|
|
775
|
+
"type": "integer",
|
|
776
|
+
"minimum": 1,
|
|
777
|
+
"maximum": 9007199254740991
|
|
778
|
+
},
|
|
779
|
+
"operation_id": {
|
|
780
|
+
"type": "string",
|
|
781
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
782
|
+
},
|
|
783
|
+
"intent_at": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"format": "date-time",
|
|
786
|
+
"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{3}(?:Z))$"
|
|
787
|
+
},
|
|
788
|
+
"previous_hash": {
|
|
789
|
+
"type": "string",
|
|
790
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
791
|
+
},
|
|
792
|
+
"signing_key_id": {
|
|
793
|
+
"type": "string",
|
|
794
|
+
"minLength": 1
|
|
795
|
+
},
|
|
796
|
+
"kind": {
|
|
797
|
+
"type": "string",
|
|
798
|
+
"const": "org_role.delete"
|
|
799
|
+
},
|
|
800
|
+
"ids": {
|
|
801
|
+
"type": "object",
|
|
802
|
+
"properties": {
|
|
803
|
+
"org_id": {
|
|
804
|
+
"type": "string",
|
|
805
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
806
|
+
},
|
|
807
|
+
"role_id": {
|
|
808
|
+
"type": "string",
|
|
809
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"required": [
|
|
813
|
+
"org_id",
|
|
814
|
+
"role_id"
|
|
815
|
+
],
|
|
816
|
+
"additionalProperties": false
|
|
817
|
+
}
|
|
818
|
+
},
|
|
819
|
+
"required": [
|
|
820
|
+
"schema",
|
|
821
|
+
"environment",
|
|
822
|
+
"generation",
|
|
823
|
+
"sequence",
|
|
824
|
+
"operation_id",
|
|
825
|
+
"intent_at",
|
|
826
|
+
"previous_hash",
|
|
827
|
+
"signing_key_id",
|
|
828
|
+
"kind",
|
|
829
|
+
"ids"
|
|
830
|
+
],
|
|
831
|
+
"additionalProperties": false
|
|
832
|
+
},
|
|
759
833
|
{
|
|
760
834
|
"type": "object",
|
|
761
835
|
"properties": {
|
|
@@ -836,6 +836,90 @@
|
|
|
836
836
|
],
|
|
837
837
|
"additionalProperties": false
|
|
838
838
|
},
|
|
839
|
+
{
|
|
840
|
+
"type": "object",
|
|
841
|
+
"properties": {
|
|
842
|
+
"schema": {
|
|
843
|
+
"type": "string",
|
|
844
|
+
"const": "fleetless.deletion-intent.v2"
|
|
845
|
+
},
|
|
846
|
+
"environment": {
|
|
847
|
+
"type": "string",
|
|
848
|
+
"minLength": 1
|
|
849
|
+
},
|
|
850
|
+
"generation": {
|
|
851
|
+
"type": "string",
|
|
852
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
853
|
+
},
|
|
854
|
+
"sequence": {
|
|
855
|
+
"type": "integer",
|
|
856
|
+
"minimum": 1,
|
|
857
|
+
"maximum": 9007199254740991
|
|
858
|
+
},
|
|
859
|
+
"operation_id": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
862
|
+
},
|
|
863
|
+
"intent_at": {
|
|
864
|
+
"type": "string",
|
|
865
|
+
"format": "date-time",
|
|
866
|
+
"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{3}(?:Z))$"
|
|
867
|
+
},
|
|
868
|
+
"previous_hash": {
|
|
869
|
+
"type": "string",
|
|
870
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
871
|
+
},
|
|
872
|
+
"signing_key_id": {
|
|
873
|
+
"type": "string",
|
|
874
|
+
"minLength": 1
|
|
875
|
+
},
|
|
876
|
+
"kind": {
|
|
877
|
+
"type": "string",
|
|
878
|
+
"const": "org_role.delete"
|
|
879
|
+
},
|
|
880
|
+
"ids": {
|
|
881
|
+
"type": "object",
|
|
882
|
+
"properties": {
|
|
883
|
+
"org_id": {
|
|
884
|
+
"type": "string",
|
|
885
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
886
|
+
},
|
|
887
|
+
"role_id": {
|
|
888
|
+
"type": "string",
|
|
889
|
+
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"required": [
|
|
893
|
+
"org_id",
|
|
894
|
+
"role_id"
|
|
895
|
+
],
|
|
896
|
+
"additionalProperties": false
|
|
897
|
+
},
|
|
898
|
+
"record_hash": {
|
|
899
|
+
"type": "string",
|
|
900
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
901
|
+
},
|
|
902
|
+
"signature": {
|
|
903
|
+
"type": "string",
|
|
904
|
+
"pattern": "^[A-Za-z0-9_-]{85}[AQgw]$"
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
"required": [
|
|
908
|
+
"schema",
|
|
909
|
+
"environment",
|
|
910
|
+
"generation",
|
|
911
|
+
"sequence",
|
|
912
|
+
"operation_id",
|
|
913
|
+
"intent_at",
|
|
914
|
+
"previous_hash",
|
|
915
|
+
"signing_key_id",
|
|
916
|
+
"kind",
|
|
917
|
+
"ids",
|
|
918
|
+
"record_hash",
|
|
919
|
+
"signature"
|
|
920
|
+
],
|
|
921
|
+
"additionalProperties": false
|
|
922
|
+
},
|
|
839
923
|
{
|
|
840
924
|
"type": "object",
|
|
841
925
|
"properties": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"capabilities": {
|
|
16
16
|
"type": "object",
|
|
17
17
|
"properties": {
|
|
18
|
-
"
|
|
18
|
+
"job_history": {
|
|
19
19
|
"type": "boolean"
|
|
20
20
|
},
|
|
21
21
|
"assets": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"required": [
|
|
26
|
-
"
|
|
26
|
+
"job_history",
|
|
27
27
|
"assets"
|
|
28
28
|
],
|
|
29
29
|
"additionalProperties": false
|