@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
package/dist/apps.d.ts
CHANGED
|
@@ -3,11 +3,14 @@ import { z } from 'zod';
|
|
|
3
3
|
/**
|
|
4
4
|
* Apps, roles and rights.
|
|
5
5
|
*
|
|
6
|
-
* The rule that shapes all of this: **
|
|
7
|
-
* assigned to an app
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* The rule that shapes all of this: **a role is the only thing that grants**.
|
|
7
|
+
* A robot assigned to an app is reachable through it, and what a user may use
|
|
8
|
+
* on that robot is decided by the user's role against what the robot's
|
|
9
|
+
* `fleetless.yaml` and the organization's defaults require; what the role does
|
|
10
|
+
* not grant does not exist for that user. An app can only take rights away: its
|
|
11
|
+
* locks win over every role and never grant anything. So there are two places
|
|
12
|
+
* to look when someone cannot see something, the requirement and the lock, and
|
|
13
|
+
* no third.
|
|
11
14
|
*/
|
|
12
15
|
/**
|
|
13
16
|
* The app identifier a client sends at login. Same rule as a service slug:
|
|
@@ -25,7 +28,7 @@ export declare const app: z.ZodObject<{
|
|
|
25
28
|
name: z.ZodString;
|
|
26
29
|
identifier: z.ZodString;
|
|
27
30
|
robot_ids: z.ZodArray<z.ZodUUID>;
|
|
28
|
-
|
|
31
|
+
default_role: z.ZodNullable<z.ZodString>;
|
|
29
32
|
created_at: z.ZodISODateTime;
|
|
30
33
|
}, z.core.$strip>;
|
|
31
34
|
export type App = z.infer<typeof app>;
|
|
@@ -37,7 +40,7 @@ export declare const appListResponse: z.ZodObject<{
|
|
|
37
40
|
name: z.ZodString;
|
|
38
41
|
identifier: z.ZodString;
|
|
39
42
|
robot_ids: z.ZodArray<z.ZodUUID>;
|
|
40
|
-
|
|
43
|
+
default_role: z.ZodNullable<z.ZodString>;
|
|
41
44
|
created_at: z.ZodISODateTime;
|
|
42
45
|
}, z.core.$strip>>;
|
|
43
46
|
}, z.core.$strip>;
|
|
@@ -46,18 +49,20 @@ export type AppListResponse = z.infer<typeof appListResponse>;
|
|
|
46
49
|
* What deleting an app would destroy — read before the irreversible click,
|
|
47
50
|
* and carried again by the `app.deleted` audit event.
|
|
48
51
|
*
|
|
49
|
-
* **
|
|
52
|
+
* **Five numbers, never a sum**, for the reason `robotDeletionSummary` states
|
|
50
53
|
* at length: the console reads this aloud as one sentence, and a total would
|
|
51
|
-
* describe
|
|
54
|
+
* describe five unrelated magnitudes with one figure on the one screen whose
|
|
52
55
|
* entire justification is naming what cannot be undone.
|
|
53
56
|
*
|
|
57
|
+
* Roles are not here: they belong to the organization, so deleting an app
|
|
58
|
+
* deletes none of them. What the app locks goes with its settings.
|
|
59
|
+
*
|
|
54
60
|
* Robots are not here because they do not go: they belong to the
|
|
55
61
|
* organization, not to the app. The audit trail is not here either — a record
|
|
56
62
|
* of what happened outlives the thing it happened to.
|
|
57
63
|
*/
|
|
58
64
|
export declare const appDeletionSummary: z.ZodObject<{
|
|
59
65
|
user_count: z.ZodNumber;
|
|
60
|
-
role_count: z.ZodNumber;
|
|
61
66
|
server_key_count: z.ZodNumber;
|
|
62
67
|
invitation_count: z.ZodNumber;
|
|
63
68
|
oidc_provider_count: z.ZodNumber;
|
|
@@ -103,6 +108,11 @@ export type CreateAppRequest = z.infer<typeof createAppRequest>;
|
|
|
103
108
|
* remains only for MCP. `group_id` named a group that owned the app; who may
|
|
104
109
|
* log into an app is the app's own user list.
|
|
105
110
|
*
|
|
111
|
+
* The id-based default role is absent too, and it does have a successor: the
|
|
112
|
+
* default role is part of the app's access, replaced together with its locks by
|
|
113
|
+
* `PUT /api/apps/:id/access` and read as `app.default_role`. A patch that still
|
|
114
|
+
* names the old field is refused rather than dropped.
|
|
115
|
+
*
|
|
106
116
|
* The route keeps its own check as belt-and-braces; a schema and a handler
|
|
107
117
|
* agreeing is not two policies, it is one policy stated where each half can
|
|
108
118
|
* enforce it.
|
|
@@ -110,7 +120,6 @@ export type CreateAppRequest = z.infer<typeof createAppRequest>;
|
|
|
110
120
|
export declare const updateAppRequest: z.ZodObject<{
|
|
111
121
|
name: z.ZodOptional<z.ZodString>;
|
|
112
122
|
robot_ids: z.ZodOptional<z.ZodArray<z.ZodUUID>>;
|
|
113
|
-
default_role_id: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
114
123
|
}, z.core.$strict>;
|
|
115
124
|
export type UpdateAppRequest = z.infer<typeof updateAppRequest>;
|
|
116
125
|
/**
|
|
@@ -150,79 +159,241 @@ export declare const createServerKeyResponse: z.ZodObject<{
|
|
|
150
159
|
}, z.core.$strip>;
|
|
151
160
|
export type CreateServerKeyResponse = z.infer<typeof createServerKeyResponse>;
|
|
152
161
|
/**
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
* from.
|
|
157
|
-
*/
|
|
158
|
-
export declare const role: z.ZodObject<{
|
|
159
|
-
id: z.ZodUUID;
|
|
160
|
-
app_id: z.ZodUUID;
|
|
161
|
-
name: z.ZodString;
|
|
162
|
-
builtin: z.ZodBoolean;
|
|
163
|
-
}, z.core.$strip>;
|
|
164
|
-
export type Role = z.infer<typeof role>;
|
|
165
|
-
/** What `GET /api/apps/:id/roles` answers: the app's roles, builtin and custom alike. */
|
|
166
|
-
export declare const roleListResponse: z.ZodObject<{
|
|
167
|
-
roles: z.ZodArray<z.ZodObject<{
|
|
168
|
-
id: z.ZodUUID;
|
|
169
|
-
app_id: z.ZodUUID;
|
|
170
|
-
name: z.ZodString;
|
|
171
|
-
builtin: z.ZodBoolean;
|
|
172
|
-
}, z.core.$strip>>;
|
|
173
|
-
}, z.core.$strip>;
|
|
174
|
-
export type RoleListResponse = z.infer<typeof roleListResponse>;
|
|
175
|
-
/**
|
|
176
|
-
* The body of `PATCH /api/apps/:id/roles/:roleId`: the role's new name.
|
|
177
|
-
*
|
|
178
|
-
* The same bounds as `role.name`, trimmed. Names are unique per app, compared
|
|
179
|
-
* exactly as stored after trimming; a clash answers `409 role_name_taken`.
|
|
162
|
+
* The most exposures one robot's datasheet lists, so the most slugs a lock on
|
|
163
|
+
* one robot can name. Exported for whoever grows a lock (a slug rename adds
|
|
164
|
+
* the new name beside the old one) and must know when there is no room left.
|
|
180
165
|
*/
|
|
181
|
-
export declare const
|
|
182
|
-
name: z.ZodString;
|
|
183
|
-
}, z.core.$strict>;
|
|
184
|
-
export type RoleRenameRequest = z.infer<typeof roleRenameRequest>;
|
|
166
|
+
export declare const MAX_LOCK_SLUGS = 2000;
|
|
185
167
|
/**
|
|
186
|
-
*
|
|
168
|
+
* **What an app locks, and what it falls back on.** Roles decide who may use
|
|
169
|
+
* what; an app can only take rights away from them, never add any. A lock wins
|
|
170
|
+
* over every role and over the organization's defaults, and applies to the
|
|
171
|
+
* app's users and to its server keys alike.
|
|
187
172
|
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
* held role answers `409 role_in_use` with `roleInUseDetails`, so a client
|
|
192
|
-
* can ask where they should go instead of guessing.
|
|
173
|
+
* Two ways to lock: a whole kind of access on every robot the app reaches
|
|
174
|
+
* (`locked_kinds`), or single capabilities of single robots (`locked`). The
|
|
175
|
+
* robot-wide `assets` and `job_history` can only be locked as a kind.
|
|
193
176
|
*/
|
|
194
|
-
export declare const
|
|
195
|
-
|
|
177
|
+
export declare const appLock: z.ZodObject<{
|
|
178
|
+
robot_id: z.ZodUUID;
|
|
179
|
+
slugs: z.ZodArray<z.ZodString>;
|
|
196
180
|
}, z.core.$strict>;
|
|
197
|
-
export type
|
|
181
|
+
export type AppLock = z.infer<typeof appLock>;
|
|
198
182
|
/**
|
|
199
|
-
* `
|
|
183
|
+
* `PUT /api/apps/:id/access`: the whole access of one app, **replaced**. Every
|
|
184
|
+
* field is named on every write, so the body is exactly what the app has
|
|
185
|
+
* afterwards; strict, so a field this route does not take is refused rather
|
|
186
|
+
* than dropped.
|
|
200
187
|
*
|
|
201
|
-
*
|
|
202
|
-
* from
|
|
188
|
+
* `revision` is the one field that is not part of the access: it says which
|
|
189
|
+
* state this body was composed from. A caller that read before it wrote sends
|
|
190
|
+
* it back, and a write composed from a stale read is refused instead of
|
|
191
|
+
* lifting a lock that landed in between.
|
|
203
192
|
*/
|
|
204
|
-
export declare const
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
193
|
+
export declare const appAccess: z.ZodObject<{
|
|
194
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
195
|
+
default_role: z.ZodNullable<z.ZodString>;
|
|
196
|
+
locked_kinds: z.ZodArray<z.ZodEnum<{
|
|
197
|
+
read: "read";
|
|
198
|
+
invoke: "invoke";
|
|
199
|
+
publish: "publish";
|
|
200
|
+
assets: "assets";
|
|
201
|
+
job_history: "job_history";
|
|
202
|
+
}>>;
|
|
203
|
+
locked: z.ZodArray<z.ZodObject<{
|
|
204
|
+
robot_id: z.ZodUUID;
|
|
205
|
+
slugs: z.ZodArray<z.ZodString>;
|
|
206
|
+
}, z.core.$strict>>;
|
|
208
207
|
}, z.core.$strict>;
|
|
209
|
-
export type
|
|
208
|
+
export type AppAccess = z.infer<typeof appAccess>;
|
|
210
209
|
/**
|
|
211
|
-
*
|
|
212
|
-
* the
|
|
213
|
-
* below says which of them are enforced today and which is still a switch
|
|
214
|
-
* that changes nothing.
|
|
210
|
+
* Something in an app's access that grants or locks nothing as written. Never
|
|
211
|
+
* a refusal: the access is stored as sent, and these say what is out of step.
|
|
215
212
|
*/
|
|
216
|
-
export declare const
|
|
217
|
-
|
|
218
|
-
|
|
213
|
+
export declare const accessWarning: z.ZodObject<{
|
|
214
|
+
code: z.ZodEnum<{
|
|
215
|
+
unknown_default_role: "unknown_default_role";
|
|
216
|
+
unknown_lock_slug: "unknown_lock_slug";
|
|
217
|
+
lock_robot_not_attached: "lock_robot_not_attached";
|
|
218
|
+
}>;
|
|
219
|
+
message: z.ZodString;
|
|
220
|
+
robot_id: z.ZodNullable<z.ZodUUID>;
|
|
221
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
222
|
+
}, z.core.$strip>;
|
|
223
|
+
export type AccessWarning = z.infer<typeof accessWarning>;
|
|
224
|
+
/** What `GET` and `PUT /api/apps/:id/access` answer: the access as it stands, its revision, and what is out of step in it. */
|
|
225
|
+
export declare const appAccessResponse: z.ZodObject<{
|
|
226
|
+
revision: z.ZodString;
|
|
227
|
+
warnings: z.ZodArray<z.ZodObject<{
|
|
228
|
+
code: z.ZodEnum<{
|
|
229
|
+
unknown_default_role: "unknown_default_role";
|
|
230
|
+
unknown_lock_slug: "unknown_lock_slug";
|
|
231
|
+
lock_robot_not_attached: "lock_robot_not_attached";
|
|
232
|
+
}>;
|
|
233
|
+
message: z.ZodString;
|
|
234
|
+
robot_id: z.ZodNullable<z.ZodUUID>;
|
|
235
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
236
|
+
}, z.core.$strip>>;
|
|
237
|
+
default_role: z.ZodNullable<z.ZodString>;
|
|
238
|
+
locked_kinds: z.ZodArray<z.ZodEnum<{
|
|
239
|
+
read: "read";
|
|
240
|
+
invoke: "invoke";
|
|
241
|
+
publish: "publish";
|
|
242
|
+
assets: "assets";
|
|
243
|
+
job_history: "job_history";
|
|
244
|
+
}>>;
|
|
245
|
+
locked: z.ZodArray<z.ZodObject<{
|
|
219
246
|
robot_id: z.ZodUUID;
|
|
220
247
|
slugs: z.ZodArray<z.ZodString>;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
}, z.core.$strip>;
|
|
250
|
+
export type AppAccessResponse = z.infer<typeof appAccessResponse>;
|
|
251
|
+
/**
|
|
252
|
+
* `GET /api/apps/:id/effective-rights`: look at the app as one role sees it,
|
|
253
|
+
* or as one app user does. Exactly one of the two.
|
|
254
|
+
*
|
|
255
|
+
* The cross-field rule is a `.refine()`, which JSON Schema cannot express, so
|
|
256
|
+
* `effective-rights-query.schema.json` describes two independent optional
|
|
257
|
+
* parameters; the cloud is the only place both-or-neither is refused.
|
|
258
|
+
*/
|
|
259
|
+
export declare const effectiveRightsQuery: z.ZodObject<{
|
|
260
|
+
role: z.ZodOptional<z.ZodString>;
|
|
261
|
+
user: z.ZodOptional<z.ZodUUID>;
|
|
262
|
+
}, z.core.$strict>;
|
|
263
|
+
export type EffectiveRightsQuery = z.infer<typeof effectiveRightsQuery>;
|
|
264
|
+
/** One capability of one robot as a role sees it: granted or not, and why. */
|
|
265
|
+
export declare const effectiveCapability: z.ZodObject<{
|
|
266
|
+
name: z.ZodString;
|
|
267
|
+
kind: z.ZodEnum<{
|
|
268
|
+
read: "read";
|
|
269
|
+
invoke: "invoke";
|
|
270
|
+
publish: "publish";
|
|
271
|
+
assets: "assets";
|
|
272
|
+
job_history: "job_history";
|
|
273
|
+
}>;
|
|
274
|
+
granted: z.ZodBoolean;
|
|
275
|
+
requirement: z.ZodArray<z.ZodString>;
|
|
276
|
+
source: z.ZodEnum<{
|
|
277
|
+
entry: "entry";
|
|
278
|
+
rule: "rule";
|
|
279
|
+
robot: "robot";
|
|
280
|
+
org_default: "org_default";
|
|
281
|
+
}>;
|
|
282
|
+
rule_index: z.ZodNullable<z.ZodNumber>;
|
|
283
|
+
rule_match: z.ZodNullable<z.ZodString>;
|
|
284
|
+
satisfied_by: z.ZodNullable<z.ZodString>;
|
|
285
|
+
locked: z.ZodBoolean;
|
|
286
|
+
unknown_roles: z.ZodArray<z.ZodString>;
|
|
287
|
+
}, z.core.$strip>;
|
|
288
|
+
export type EffectiveCapability = z.infer<typeof effectiveCapability>;
|
|
289
|
+
/** One attached robot as a role sees it. */
|
|
290
|
+
export declare const effectiveRobotRights: z.ZodObject<{
|
|
291
|
+
robot_id: z.ZodUUID;
|
|
292
|
+
robot_name: z.ZodString;
|
|
293
|
+
published_version: z.ZodNullable<z.ZodNumber>;
|
|
294
|
+
reachable: z.ZodBoolean;
|
|
295
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
kind: z.ZodEnum<{
|
|
298
|
+
read: "read";
|
|
299
|
+
invoke: "invoke";
|
|
300
|
+
publish: "publish";
|
|
301
|
+
assets: "assets";
|
|
302
|
+
job_history: "job_history";
|
|
303
|
+
}>;
|
|
304
|
+
granted: z.ZodBoolean;
|
|
305
|
+
requirement: z.ZodArray<z.ZodString>;
|
|
306
|
+
source: z.ZodEnum<{
|
|
307
|
+
entry: "entry";
|
|
308
|
+
rule: "rule";
|
|
309
|
+
robot: "robot";
|
|
310
|
+
org_default: "org_default";
|
|
311
|
+
}>;
|
|
312
|
+
rule_index: z.ZodNullable<z.ZodNumber>;
|
|
313
|
+
rule_match: z.ZodNullable<z.ZodString>;
|
|
314
|
+
satisfied_by: z.ZodNullable<z.ZodString>;
|
|
315
|
+
locked: z.ZodBoolean;
|
|
316
|
+
unknown_roles: z.ZodArray<z.ZodString>;
|
|
221
317
|
}, z.core.$strip>>;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
318
|
+
datasheet: z.ZodObject<{
|
|
319
|
+
robot_id: z.ZodUUID;
|
|
320
|
+
robot_name: z.ZodString;
|
|
321
|
+
capabilities: z.ZodObject<{
|
|
322
|
+
job_history: z.ZodBoolean;
|
|
323
|
+
assets: z.ZodBoolean;
|
|
324
|
+
}, z.core.$strip>;
|
|
325
|
+
exposures: z.ZodArray<z.ZodObject<{
|
|
326
|
+
slug: z.ZodString;
|
|
327
|
+
kind: z.ZodEnum<{
|
|
328
|
+
datapoint: "datapoint";
|
|
329
|
+
action: "action";
|
|
330
|
+
service: "service";
|
|
331
|
+
publisher: "publisher";
|
|
332
|
+
camera: "camera";
|
|
333
|
+
}>;
|
|
334
|
+
description: z.ZodNullable<z.ZodString>;
|
|
335
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
336
|
+
decimals: z.ZodNullable<z.ZodNumber>;
|
|
337
|
+
input_schema: z.ZodNullable<z.ZodUnknown>;
|
|
338
|
+
}, z.core.$strip>>;
|
|
226
339
|
}, z.core.$strip>;
|
|
227
340
|
}, z.core.$strip>;
|
|
228
|
-
export type
|
|
341
|
+
export type EffectiveRobotRights = z.infer<typeof effectiveRobotRights>;
|
|
342
|
+
/** What `GET /api/apps/:id/effective-rights` answers. */
|
|
343
|
+
export declare const effectiveRightsResponse: z.ZodObject<{
|
|
344
|
+
role: z.ZodNullable<z.ZodString>;
|
|
345
|
+
role_known: z.ZodBoolean;
|
|
346
|
+
user_id: z.ZodNullable<z.ZodUUID>;
|
|
347
|
+
robots: z.ZodArray<z.ZodObject<{
|
|
348
|
+
robot_id: z.ZodUUID;
|
|
349
|
+
robot_name: z.ZodString;
|
|
350
|
+
published_version: z.ZodNullable<z.ZodNumber>;
|
|
351
|
+
reachable: z.ZodBoolean;
|
|
352
|
+
capabilities: z.ZodArray<z.ZodObject<{
|
|
353
|
+
name: z.ZodString;
|
|
354
|
+
kind: z.ZodEnum<{
|
|
355
|
+
read: "read";
|
|
356
|
+
invoke: "invoke";
|
|
357
|
+
publish: "publish";
|
|
358
|
+
assets: "assets";
|
|
359
|
+
job_history: "job_history";
|
|
360
|
+
}>;
|
|
361
|
+
granted: z.ZodBoolean;
|
|
362
|
+
requirement: z.ZodArray<z.ZodString>;
|
|
363
|
+
source: z.ZodEnum<{
|
|
364
|
+
entry: "entry";
|
|
365
|
+
rule: "rule";
|
|
366
|
+
robot: "robot";
|
|
367
|
+
org_default: "org_default";
|
|
368
|
+
}>;
|
|
369
|
+
rule_index: z.ZodNullable<z.ZodNumber>;
|
|
370
|
+
rule_match: z.ZodNullable<z.ZodString>;
|
|
371
|
+
satisfied_by: z.ZodNullable<z.ZodString>;
|
|
372
|
+
locked: z.ZodBoolean;
|
|
373
|
+
unknown_roles: z.ZodArray<z.ZodString>;
|
|
374
|
+
}, z.core.$strip>>;
|
|
375
|
+
datasheet: z.ZodObject<{
|
|
376
|
+
robot_id: z.ZodUUID;
|
|
377
|
+
robot_name: z.ZodString;
|
|
378
|
+
capabilities: z.ZodObject<{
|
|
379
|
+
job_history: z.ZodBoolean;
|
|
380
|
+
assets: z.ZodBoolean;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
exposures: z.ZodArray<z.ZodObject<{
|
|
383
|
+
slug: z.ZodString;
|
|
384
|
+
kind: z.ZodEnum<{
|
|
385
|
+
datapoint: "datapoint";
|
|
386
|
+
action: "action";
|
|
387
|
+
service: "service";
|
|
388
|
+
publisher: "publisher";
|
|
389
|
+
camera: "camera";
|
|
390
|
+
}>;
|
|
391
|
+
description: z.ZodNullable<z.ZodString>;
|
|
392
|
+
unit: z.ZodNullable<z.ZodString>;
|
|
393
|
+
decimals: z.ZodNullable<z.ZodNumber>;
|
|
394
|
+
input_schema: z.ZodNullable<z.ZodUnknown>;
|
|
395
|
+
}, z.core.$strip>>;
|
|
396
|
+
}, z.core.$strip>;
|
|
397
|
+
}, z.core.$strip>>;
|
|
398
|
+
}, z.core.$strip>;
|
|
399
|
+
export type EffectiveRightsResponse = z.infer<typeof effectiveRightsResponse>;
|