@artemis-apps/contracts 0.0.0-stage → 0.1.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.
Files changed (44) hide show
  1. package/dist/activity.d.ts +150 -0
  2. package/dist/activity.js +159 -0
  3. package/dist/api-error.d.ts +8 -0
  4. package/dist/api-error.js +7 -0
  5. package/dist/app-protocol.d.ts +290 -0
  6. package/dist/app-protocol.js +357 -0
  7. package/dist/app-session-state.d.ts +98 -0
  8. package/dist/app-session-state.js +38 -0
  9. package/dist/core-api.d.ts +799 -0
  10. package/dist/core-api.js +345 -0
  11. package/dist/entities/account.entity.d.ts +34 -0
  12. package/dist/entities/account.entity.js +15 -0
  13. package/dist/entities/avatar.entity.d.ts +31 -0
  14. package/dist/entities/avatar.entity.js +30 -0
  15. package/dist/entities/entity-name.d.ts +3 -0
  16. package/dist/entities/entity-name.js +2 -0
  17. package/dist/entities.d.ts +350 -0
  18. package/dist/entities.js +200 -0
  19. package/dist/entity-shares.d.ts +86 -0
  20. package/dist/entity-shares.js +29 -0
  21. package/dist/entity-types.d.ts +153 -0
  22. package/dist/entity-types.js +248 -0
  23. package/dist/images.d.ts +6 -0
  24. package/dist/images.js +10 -0
  25. package/dist/index.d.ts +20 -0
  26. package/dist/index.js +24 -0
  27. package/dist/marketplace.d.ts +183 -0
  28. package/dist/marketplace.js +162 -0
  29. package/dist/oidc.d.ts +25 -0
  30. package/dist/oidc.js +36 -0
  31. package/dist/permissions.d.ts +70 -0
  32. package/dist/permissions.js +101 -0
  33. package/dist/preferences.d.ts +30 -0
  34. package/dist/preferences.js +18 -0
  35. package/dist/return-path.d.ts +7 -0
  36. package/dist/return-path.js +21 -0
  37. package/dist/route-path.d.ts +5 -0
  38. package/dist/route-path.js +10 -0
  39. package/dist/storage.d.ts +43 -0
  40. package/dist/storage.js +39 -0
  41. package/dist/web-url.d.ts +7 -0
  42. package/dist/web-url.js +7 -0
  43. package/package.json +45 -3
  44. package/README.md +0 -3
@@ -0,0 +1,799 @@
1
+ import { z } from 'zod';
2
+ /** Core web page the API redirects to when a browser must sign in (with `RETURN_TO_PARAM`). */
3
+ export declare const CORE_SIGN_IN_PAGE_PATH = "/sign-in";
4
+ /** Home of the core's Account interface (the signed-in account managing itself). */
5
+ export declare const CORE_ACCOUNT_PAGE_PATH = "/account";
6
+ /** Home of the core's Admin interface (platform administration). */
7
+ export declare const CORE_ADMIN_PAGE_PATH = "/admin";
8
+ /** Admin › Applications: where an administrator enrolls an app by pasting its manifest. */
9
+ export declare const CORE_ADMIN_APPS_PAGE_PATH = "/admin/apps";
10
+ /**
11
+ * Query parameter of `CORE_ADMIN_APPS_PAGE_PATH` naming an app URL to enroll: the page reads the
12
+ * app's manifest from there and opens its review. An unenrolled app links to it.
13
+ */
14
+ export declare const ENROLL_PARAM = "enroll";
15
+ /** The core's marketplace page (administrators): app repositories and installed apps. */
16
+ export declare const CORE_ADMIN_MARKETPLACE_PAGE_PATH = "/admin/marketplace";
17
+ /** Icons of the core's own interfaces (SVG, cacheable, embeddable cross-origin by apps). */
18
+ export declare const CORE_BRAND_ICON_PATHS: {
19
+ readonly account: '/brand/account.svg';
20
+ readonly admin: '/brand/admin.svg';
21
+ };
22
+ /**
23
+ * The core API paths an app's relay forwards for its web client (`APP_PROTOCOL_PATHS.coreRelay`):
24
+ * entities, entity types, the directory, the launcher. Nothing else reaches the core that way.
25
+ */
26
+ export declare const CORE_RELAYED_PATHS: readonly ['/api/entities', '/api/entity-types', '/api/directory', '/api/launcher'];
27
+ /** Route patterns of the core API. Fill `:params` with `fillPath`. */
28
+ export declare const CORE_API_PATHS: {
29
+ /** POST `RegistrationInput` → `CurrentAccountResponse` (and signs in). */
30
+ readonly registrations: '/api/registrations';
31
+ /** POST `SignInInput` → `CurrentAccountResponse`. */
32
+ readonly sessions: '/api/sessions';
33
+ /** GET → `CurrentAccountResponse`; DELETE signs out. */
34
+ readonly currentSession: '/api/sessions/current';
35
+ /** The signed-in account managing itself. PATCH `AccountUpdate` → `AccountWithPermissions`; DELETE `AccountDeletion` → 204. */
36
+ readonly currentAccount: '/api/account';
37
+ /** PUT `PasswordChange` → 204 (other browser sessions are signed out). */
38
+ readonly currentAccountPassword: '/api/account/password';
39
+ /** PATCH `AccountPreferencesUpdate` → `AccountPreferences` (the language, in every app). */
40
+ readonly currentAccountPreferences: '/api/account/preferences';
41
+ /** PUT multipart (`file`: an accepted image) → `AccountWithPermissions`: the photo becomes the avatar. */
42
+ readonly currentAccountAvatarPhoto: '/api/account/avatar/photo';
43
+ /** POST `AvatarRegeneration` → `AccountWithPermissions`: the generated face of that seed (any photo is deleted). */
44
+ readonly currentAccountAvatarRegeneration: '/api/account/avatar/regeneration';
45
+ /**
46
+ * GET → `Launcher`: what the account can open (Account, Admin, enrolled apps).
47
+ * Authenticated either by the core browser session cookie (core web client), or by
48
+ * `Authorization: Bearer <access token>` issued by the core to an enrolled app: apps' servers
49
+ * call it for their web clients. No CORS: browsers never call it cross-origin.
50
+ */
51
+ readonly launcher: '/api/launcher';
52
+ /** GET → `AccountList` (`admin:accounts:read`). */
53
+ readonly accounts: '/api/accounts';
54
+ /**
55
+ * GET `DirectoryQuery` → `DirectoryAccountList`: other accounts, to share with them
56
+ * (`directory:read`). Authenticated like `launcher`; apps' servers call it for their web
57
+ * clients and to show who a resource is shared with.
58
+ */
59
+ readonly directory: '/api/directory/accounts';
60
+ /** PUT `PermissionsUpdate` → `AccountWithPermissions` (`admin:accounts:write`). */
61
+ readonly accountPermissions: '/api/accounts/:accountId/permissions';
62
+ /**
63
+ * GET → `EnrolledAppList` (`admin:apps:read`); POST `EnrollmentRequest` → `EnrolledApp`:
64
+ * enrolls the app of a pasted manifest (`admin:apps:write`).
65
+ */
66
+ readonly apps: '/api/apps';
67
+ /** DELETE `?deleteFiles=` (`AppRevocationQuery`) → 204: revokes an app (`admin:apps:write`). */
68
+ readonly app: '/api/apps/:appId';
69
+ /**
70
+ * POST → `EnrolledApp`: applies the app's pending update; DELETE → 204: declines it, the app
71
+ * keeps what it had (`admin:apps:write`).
72
+ */
73
+ readonly appPendingUpdate: '/api/apps/:appId/pending-update';
74
+ /**
75
+ * PUT `AppOrder` → 204 (`admin:apps:write`): the order of the apps, everywhere they are listed
76
+ * (the app switcher included).
77
+ */
78
+ readonly appOrder: '/api/apps/order';
79
+ /** POST `EnrollmentRequest` → `EnrollmentReview`: what enrolling it would do (`admin:apps:write`). */
80
+ readonly enrollmentReviews: '/api/enrollment-reviews';
81
+ /**
82
+ * PUT `AppManifest` → 204: an enrolled app sends its manifest at each start, with its
83
+ * `client_credentials` token (see "Updates" in docs/architecture/enrollment.md).
84
+ */
85
+ readonly appManifest: '/api/app-manifest';
86
+ /** GET → `EntityTypeList`: every entity type the enrolled apps declare, merged by version. */
87
+ readonly entityTypes: '/api/entity-types';
88
+ /** GET → `EntityHandlerList`: the apps handling actions on entities of the type, and how. */
89
+ readonly entityHandlers: '/api/entity-types/:type/handlers';
90
+ /** GET → `EntityKindList`: the kinds the enrolled apps support for the type, and their icons. */
91
+ readonly entityKinds: '/api/entity-types/:type/kinds';
92
+ /**
93
+ * GET → the blank template of a kind an app supports (its bytes and type, as the app serves
94
+ * them): what a new entity of that kind starts from.
95
+ */
96
+ readonly entityKindTemplate: '/api/entity-types/:type/kinds/:appId/:kind/template';
97
+ /**
98
+ * POST `?kind=` (and `?app=` to pick the handling app) → the answer of a `server` action
99
+ * (`preview`), run by a handling app on the entity. Called by a consumer for the account, or
100
+ * by the entity's provider as itself (its own token), for the owner.
101
+ */
102
+ readonly entityAction: '/api/entities/:type/:providerId/:ownerId/:entityId/actions/:action';
103
+ /**
104
+ * GET → `EntityList`: every entity of the type the account reaches, from every provider; the
105
+ * filter (`only`, `except`) chooses providers, other parameters go on to them.
106
+ */
107
+ readonly entities: '/api/entities/:type';
108
+ /**
109
+ * POST (the provider's body, passed through) → `EntityResult`: creates at that provider, in
110
+ * `?parent=<ownerId>:<id>` if any. Needs the type's `create` permission.
111
+ */
112
+ readonly providerEntities: '/api/entities/:type/:providerId';
113
+ /**
114
+ * GET → `EntityResult`; PATCH (body passed through; `?parent=<id>` moves it) → `EntityResult`;
115
+ * DELETE → 204. Each takes `?via=<type>:<id>` when acting through a share.
116
+ */
117
+ readonly entity: '/api/entities/:type/:providerId/:ownerId/:entityId';
118
+ /** Any method: one of the type's own operations; the provider's answer passes through. */
119
+ readonly entityOperation: '/api/entities/:type/:providerId/:ownerId/:entityId/operations/:operation';
120
+ /** GET → `EntitySharing` (needs `read`). */
121
+ readonly entityShares: '/api/entities/:type/:providerId/:ownerId/:entityId/shares';
122
+ /** PUT `ShareInput` → `EntitySharing`; DELETE → 204 (needs `share`, or one's own share). */
123
+ readonly entityShare: '/api/entities/:type/:providerId/:ownerId/:entityId/shares/:accountId';
124
+ };
125
+ /** Where `oidc-provider` sends a browser to sign in or consent; the server decides which. */
126
+ export declare const CORE_INTERACTION_PATHS: {
127
+ /** GET: resolves the interaction, or redirects to the sign-in or the consent page. */
128
+ readonly interaction: '/interaction/:uid';
129
+ /** GET → `ConsentRequest`. */
130
+ readonly consentRequest: '/interaction/:uid/consent';
131
+ /** POST → `ConsentDecisionResult`: allows every permission asked. */
132
+ readonly consent: '/interaction/:uid/consent/allow';
133
+ /** POST → `ConsentDecisionResult`: denies the app (`access_denied`). */
134
+ readonly denial: '/interaction/:uid/consent/deny';
135
+ };
136
+ /** Core web page where an account allows an app (`:uid`: the interaction). */
137
+ export declare const CORE_CONSENT_PAGE_PATH = "/consent/:uid";
138
+ export declare const PASSWORD_MIN_LENGTH = 10;
139
+ export declare const RegistrationInputSchema: z.ZodObject<{
140
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
141
+ name: z.ZodString;
142
+ password: z.ZodString;
143
+ }, z.core.$strip>;
144
+ export type RegistrationInput = z.input<typeof RegistrationInputSchema>;
145
+ export declare const SignInInputSchema: z.ZodObject<{
146
+ email: z.ZodPipe<z.ZodString, z.ZodEmail>;
147
+ password: z.ZodString;
148
+ }, z.core.$strip>;
149
+ export type SignInInput = z.input<typeof SignInInputSchema>;
150
+ /** Self-service profile changes. At least one field. */
151
+ export declare const AccountUpdateSchema: z.ZodObject<{
152
+ name: z.ZodOptional<z.ZodString>;
153
+ email: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
154
+ }, z.core.$strip>;
155
+ export type AccountUpdate = z.input<typeof AccountUpdateSchema>;
156
+ export declare const PasswordChangeSchema: z.ZodObject<{
157
+ currentPassword: z.ZodString;
158
+ newPassword: z.ZodString;
159
+ }, z.core.$strip>;
160
+ export type PasswordChange = z.input<typeof PasswordChangeSchema>;
161
+ /** Deleting one's own account requires the password again. */
162
+ export declare const AccountDeletionSchema: z.ZodObject<{
163
+ password: z.ZodString;
164
+ }, z.core.$strip>;
165
+ export type AccountDeletion = z.input<typeof AccountDeletionSchema>;
166
+ /** Where an entry of the app switcher leads. `account` and `admin` are the core's own interfaces. */
167
+ export declare const LAUNCHER_ENTRY_KINDS: readonly ['account', 'admin', 'app'];
168
+ export declare const LauncherEntrySchema: z.ZodObject<{
169
+ id: z.ZodString;
170
+ kind: z.ZodEnum<{
171
+ account: "account";
172
+ admin: "admin";
173
+ app: "app";
174
+ }>;
175
+ name: z.ZodString;
176
+ url: z.ZodURL;
177
+ iconUrl: z.ZodURL;
178
+ }, z.core.$strip>;
179
+ export type LauncherEntry = z.infer<typeof LauncherEntrySchema>;
180
+ export declare const LauncherSchema: z.ZodObject<{
181
+ entries: z.ZodArray<z.ZodObject<{
182
+ id: z.ZodString;
183
+ kind: z.ZodEnum<{
184
+ account: "account";
185
+ admin: "admin";
186
+ app: "app";
187
+ }>;
188
+ name: z.ZodString;
189
+ url: z.ZodURL;
190
+ iconUrl: z.ZodURL;
191
+ }, z.core.$strip>>;
192
+ }, z.core.$strip>;
193
+ export type Launcher = z.infer<typeof LauncherSchema>;
194
+ /** The signed-in account of the core web client and its preferences, `null` when signed out. */
195
+ export declare const CurrentAccountResponseSchema: z.ZodObject<{
196
+ current: z.ZodNullable<z.ZodObject<{
197
+ account: z.ZodObject<{
198
+ id: z.ZodUUID;
199
+ email: z.ZodEmail;
200
+ name: z.ZodString;
201
+ avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
202
+ kind: z.ZodLiteral<"generated">;
203
+ seed: z.ZodUUID;
204
+ }, z.core.$strip>, z.ZodObject<{
205
+ kind: z.ZodLiteral<"file">;
206
+ fileId: z.ZodUUID;
207
+ url: z.ZodURL;
208
+ }, z.core.$strip>], "kind">;
209
+ }, z.core.$strip>;
210
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").Permission, string, z.core.$ZodTypeInternals<import("./permissions.ts").Permission, string>>>;
211
+ }, z.core.$strip>>;
212
+ preferences: z.ZodNullable<z.ZodObject<{
213
+ locale: z.ZodEnum<{
214
+ en: "en";
215
+ fr: "fr";
216
+ }>;
217
+ }, z.core.$strip>>;
218
+ }, z.core.$strip>;
219
+ export type CurrentAccountResponse = z.infer<typeof CurrentAccountResponseSchema>;
220
+ export declare const AccountListSchema: z.ZodObject<{
221
+ accounts: z.ZodArray<z.ZodObject<{
222
+ account: z.ZodObject<{
223
+ id: z.ZodUUID;
224
+ email: z.ZodEmail;
225
+ name: z.ZodString;
226
+ avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
227
+ kind: z.ZodLiteral<"generated">;
228
+ seed: z.ZodUUID;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ kind: z.ZodLiteral<"file">;
231
+ fileId: z.ZodUUID;
232
+ url: z.ZodURL;
233
+ }, z.core.$strip>], "kind">;
234
+ }, z.core.$strip>;
235
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").Permission, string, z.core.$ZodTypeInternals<import("./permissions.ts").Permission, string>>>;
236
+ }, z.core.$strip>>;
237
+ }, z.core.$strip>;
238
+ export type AccountList = z.infer<typeof AccountListSchema>;
239
+ /** The administration permissions an account holds after the update (all others are always held). */
240
+ export declare const PermissionsUpdateSchema: z.ZodObject<{
241
+ permissions: z.ZodArray<z.ZodEnum<{
242
+ "admin:accounts:read": "admin:accounts:read";
243
+ "admin:accounts:write": "admin:accounts:write";
244
+ "admin:apps:read": "admin:apps:read";
245
+ "admin:apps:write": "admin:apps:write";
246
+ "admin:logs:read": "admin:logs:read";
247
+ }>>;
248
+ }, z.core.$strip>;
249
+ export type PermissionsUpdate = z.infer<typeof PermissionsUpdateSchema>;
250
+ /** What an app's manifest says it may do, as the core keeps it. */
251
+ export declare const AppCapabilitiesSchema: z.ZodObject<{
252
+ name: z.ZodString;
253
+ description: z.ZodNullable<z.ZodString>;
254
+ url: z.ZodURL;
255
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
256
+ types: z.ZodArray<z.ZodObject<{
257
+ id: z.ZodString;
258
+ version: z.ZodInt;
259
+ parent: z.ZodNullable<z.ZodString>;
260
+ titleFields: z.ZodArray<z.ZodString>;
261
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
262
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
263
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
264
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
265
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
266
+ permission: z.ZodString;
267
+ target: z.ZodEnum<{
268
+ page: "page";
269
+ server: "server";
270
+ }>;
271
+ }, z.core.$strict>>>;
272
+ messages: z.ZodRecord<z.ZodEnum<{
273
+ en: "en";
274
+ fr: "fr";
275
+ }> & z.core.$partial, z.ZodObject<{
276
+ name: z.ZodString;
277
+ plural: z.ZodString;
278
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
279
+ label: z.ZodString;
280
+ description: z.ZodString;
281
+ }, z.core.$strip>>;
282
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
283
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
284
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
285
+ }, z.core.$strip>>;
286
+ }, z.core.$strict>>;
287
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
288
+ operations: z.ZodArray<z.ZodString>;
289
+ }, z.core.$strict>>;
290
+ kinds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
291
+ kind: z.ZodString;
292
+ icon: z.ZodString;
293
+ template: z.ZodOptional<z.ZodString>;
294
+ }, z.core.$strict>>>;
295
+ handles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
296
+ listed: z.ZodBoolean;
297
+ }, z.core.$strip>;
298
+ export type AppCapabilities = z.infer<typeof AppCapabilitiesSchema>;
299
+ export declare const EnrolledAppSchema: z.ZodObject<{
300
+ name: z.ZodString;
301
+ description: z.ZodNullable<z.ZodString>;
302
+ url: z.ZodURL;
303
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
304
+ types: z.ZodArray<z.ZodObject<{
305
+ id: z.ZodString;
306
+ version: z.ZodInt;
307
+ parent: z.ZodNullable<z.ZodString>;
308
+ titleFields: z.ZodArray<z.ZodString>;
309
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
310
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
311
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
312
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
313
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
314
+ permission: z.ZodString;
315
+ target: z.ZodEnum<{
316
+ page: "page";
317
+ server: "server";
318
+ }>;
319
+ }, z.core.$strict>>>;
320
+ messages: z.ZodRecord<z.ZodEnum<{
321
+ en: "en";
322
+ fr: "fr";
323
+ }> & z.core.$partial, z.ZodObject<{
324
+ name: z.ZodString;
325
+ plural: z.ZodString;
326
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
327
+ label: z.ZodString;
328
+ description: z.ZodString;
329
+ }, z.core.$strip>>;
330
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
331
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
332
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
333
+ }, z.core.$strip>>;
334
+ }, z.core.$strict>>;
335
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
336
+ operations: z.ZodArray<z.ZodString>;
337
+ }, z.core.$strict>>;
338
+ kinds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
339
+ kind: z.ZodString;
340
+ icon: z.ZodString;
341
+ template: z.ZodOptional<z.ZodString>;
342
+ }, z.core.$strict>>>;
343
+ handles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
344
+ listed: z.ZodBoolean;
345
+ id: z.ZodString;
346
+ iconUrl: z.ZodURL;
347
+ enrolledAt: z.ZodISODateTime;
348
+ pendingUpdate: z.ZodNullable<z.ZodObject<{
349
+ name: z.ZodString;
350
+ description: z.ZodNullable<z.ZodString>;
351
+ url: z.ZodURL;
352
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
353
+ types: z.ZodArray<z.ZodObject<{
354
+ id: z.ZodString;
355
+ version: z.ZodInt;
356
+ parent: z.ZodNullable<z.ZodString>;
357
+ titleFields: z.ZodArray<z.ZodString>;
358
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
359
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
360
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
361
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
362
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
363
+ permission: z.ZodString;
364
+ target: z.ZodEnum<{
365
+ page: "page";
366
+ server: "server";
367
+ }>;
368
+ }, z.core.$strict>>>;
369
+ messages: z.ZodRecord<z.ZodEnum<{
370
+ en: "en";
371
+ fr: "fr";
372
+ }> & z.core.$partial, z.ZodObject<{
373
+ name: z.ZodString;
374
+ plural: z.ZodString;
375
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
376
+ label: z.ZodString;
377
+ description: z.ZodString;
378
+ }, z.core.$strip>>;
379
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
380
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
381
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
382
+ }, z.core.$strip>>;
383
+ }, z.core.$strict>>;
384
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
385
+ operations: z.ZodArray<z.ZodString>;
386
+ }, z.core.$strict>>;
387
+ kinds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
388
+ kind: z.ZodString;
389
+ icon: z.ZodString;
390
+ template: z.ZodOptional<z.ZodString>;
391
+ }, z.core.$strict>>>;
392
+ handles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
393
+ listed: z.ZodBoolean;
394
+ receivedAt: z.ZodISODateTime;
395
+ }, z.core.$strip>>;
396
+ }, z.core.$strip>;
397
+ export type EnrolledApp = z.infer<typeof EnrolledAppSchema>;
398
+ export declare const EnrolledAppListSchema: z.ZodObject<{
399
+ apps: z.ZodArray<z.ZodObject<{
400
+ name: z.ZodString;
401
+ description: z.ZodNullable<z.ZodString>;
402
+ url: z.ZodURL;
403
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
404
+ types: z.ZodArray<z.ZodObject<{
405
+ id: z.ZodString;
406
+ version: z.ZodInt;
407
+ parent: z.ZodNullable<z.ZodString>;
408
+ titleFields: z.ZodArray<z.ZodString>;
409
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
410
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
411
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
412
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
413
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
414
+ permission: z.ZodString;
415
+ target: z.ZodEnum<{
416
+ page: "page";
417
+ server: "server";
418
+ }>;
419
+ }, z.core.$strict>>>;
420
+ messages: z.ZodRecord<z.ZodEnum<{
421
+ en: "en";
422
+ fr: "fr";
423
+ }> & z.core.$partial, z.ZodObject<{
424
+ name: z.ZodString;
425
+ plural: z.ZodString;
426
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
427
+ label: z.ZodString;
428
+ description: z.ZodString;
429
+ }, z.core.$strip>>;
430
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
431
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
432
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
433
+ }, z.core.$strip>>;
434
+ }, z.core.$strict>>;
435
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
436
+ operations: z.ZodArray<z.ZodString>;
437
+ }, z.core.$strict>>;
438
+ kinds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
439
+ kind: z.ZodString;
440
+ icon: z.ZodString;
441
+ template: z.ZodOptional<z.ZodString>;
442
+ }, z.core.$strict>>>;
443
+ handles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
444
+ listed: z.ZodBoolean;
445
+ id: z.ZodString;
446
+ iconUrl: z.ZodURL;
447
+ enrolledAt: z.ZodISODateTime;
448
+ pendingUpdate: z.ZodNullable<z.ZodObject<{
449
+ name: z.ZodString;
450
+ description: z.ZodNullable<z.ZodString>;
451
+ url: z.ZodURL;
452
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
453
+ types: z.ZodArray<z.ZodObject<{
454
+ id: z.ZodString;
455
+ version: z.ZodInt;
456
+ parent: z.ZodNullable<z.ZodString>;
457
+ titleFields: z.ZodArray<z.ZodString>;
458
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
459
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
460
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
461
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
462
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
463
+ permission: z.ZodString;
464
+ target: z.ZodEnum<{
465
+ page: "page";
466
+ server: "server";
467
+ }>;
468
+ }, z.core.$strict>>>;
469
+ messages: z.ZodRecord<z.ZodEnum<{
470
+ en: "en";
471
+ fr: "fr";
472
+ }> & z.core.$partial, z.ZodObject<{
473
+ name: z.ZodString;
474
+ plural: z.ZodString;
475
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
476
+ label: z.ZodString;
477
+ description: z.ZodString;
478
+ }, z.core.$strip>>;
479
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
480
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
481
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
482
+ }, z.core.$strip>>;
483
+ }, z.core.$strict>>;
484
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
485
+ operations: z.ZodArray<z.ZodString>;
486
+ }, z.core.$strict>>;
487
+ kinds: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
488
+ kind: z.ZodString;
489
+ icon: z.ZodString;
490
+ template: z.ZodOptional<z.ZodString>;
491
+ }, z.core.$strict>>>;
492
+ handles: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
493
+ listed: z.ZodBoolean;
494
+ receivedAt: z.ZodISODateTime;
495
+ }, z.core.$strip>>;
496
+ }, z.core.$strip>>;
497
+ }, z.core.$strip>;
498
+ export type EnrolledAppList = z.infer<typeof EnrolledAppListSchema>;
499
+ /** Every enrolled app, by id, in its new order. */
500
+ export declare const AppOrderSchema: z.ZodObject<{
501
+ appIds: z.ZodArray<z.ZodString>;
502
+ }, z.core.$strip>;
503
+ export type AppOrder = z.infer<typeof AppOrderSchema>;
504
+ /** `DELETE CORE_API_PATHS.app` query: whether the app's files on the core storage go with it. */
505
+ export declare const AppRevocationQuerySchema: z.ZodObject<{
506
+ deleteFiles: z.ZodPipe<z.ZodDefault<z.ZodEnum<{
507
+ false: "false";
508
+ true: "true";
509
+ }>>, z.ZodTransform<boolean, "false" | "true">>;
510
+ }, z.core.$strip>;
511
+ export type AppRevocationQuery = z.input<typeof AppRevocationQuerySchema>;
512
+ export declare const ENROLLMENT_WARNING_CODES: readonly ['insecure_transport', 'replaces_enrolled_app', 'sensitive_permissions', 'shares_core_origin'];
513
+ export declare const EnrollmentWarningCodeSchema: z.ZodEnum<{
514
+ insecure_transport: "insecure_transport";
515
+ replaces_enrolled_app: "replaces_enrolled_app";
516
+ sensitive_permissions: "sensitive_permissions";
517
+ shares_core_origin: "shares_core_origin";
518
+ }>;
519
+ export type EnrollmentWarningCode = z.infer<typeof EnrollmentWarningCodeSchema>;
520
+ /**
521
+ * What an administrator enrolls: a pasted manifest, or the URL of an app whose manifest the core
522
+ * reads itself (the app's unenrolled page links to the core with it, `ENROLL_PARAM`; the
523
+ * marketplace does the same once an app it installed runs).
524
+ */
525
+ export declare const EnrollmentRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
526
+ manifest: z.ZodObject<{
527
+ id: z.ZodString;
528
+ name: z.ZodString;
529
+ description: z.ZodOptional<z.ZodString>;
530
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
531
+ types: z.ZodArray<z.ZodObject<{
532
+ id: z.ZodString;
533
+ version: z.ZodInt;
534
+ parent: z.ZodNullable<z.ZodString>;
535
+ titleFields: z.ZodArray<z.ZodString>;
536
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
537
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
538
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
539
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
540
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
541
+ permission: z.ZodString;
542
+ target: z.ZodEnum<{
543
+ page: "page";
544
+ server: "server";
545
+ }>;
546
+ }, z.core.$strict>>>;
547
+ messages: z.ZodRecord<z.ZodEnum<{
548
+ en: "en";
549
+ fr: "fr";
550
+ }> & z.core.$partial, z.ZodObject<{
551
+ name: z.ZodString;
552
+ plural: z.ZodString;
553
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
554
+ label: z.ZodString;
555
+ description: z.ZodString;
556
+ }, z.core.$strip>>;
557
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
558
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
559
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
560
+ }, z.core.$strip>>;
561
+ }, z.core.$strict>>;
562
+ listed: z.ZodOptional<z.ZodBoolean>;
563
+ kinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
564
+ kind: z.ZodString;
565
+ icon: z.ZodString;
566
+ template: z.ZodOptional<z.ZodString>;
567
+ }, z.core.$strict>>>>;
568
+ handles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
569
+ url: z.ZodURL;
570
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
571
+ operations: z.ZodArray<z.ZodString>;
572
+ }, z.core.$strict>>;
573
+ jwks: z.ZodObject<{
574
+ keys: z.ZodArray<z.ZodObject<{
575
+ kty: z.ZodLiteral<"EC">;
576
+ crv: z.ZodLiteral<"P-256">;
577
+ x: z.ZodString;
578
+ y: z.ZodString;
579
+ kid: z.ZodString;
580
+ alg: z.ZodLiteral<"ES256">;
581
+ use: z.ZodLiteral<"sig">;
582
+ }, z.core.$strict>>;
583
+ }, z.core.$strict>;
584
+ }, z.core.$strict>;
585
+ }, z.core.$strip>, z.ZodObject<{
586
+ url: z.ZodURL;
587
+ }, z.core.$strip>]>;
588
+ export type EnrollmentRequest = z.infer<typeof EnrollmentRequestSchema>;
589
+ /** The pasted manifest, checked against the app's live one, and what enrolling it would do. */
590
+ export declare const EnrollmentReviewSchema: z.ZodObject<{
591
+ manifest: z.ZodObject<{
592
+ id: z.ZodString;
593
+ name: z.ZodString;
594
+ description: z.ZodOptional<z.ZodString>;
595
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
596
+ types: z.ZodArray<z.ZodObject<{
597
+ id: z.ZodString;
598
+ version: z.ZodInt;
599
+ parent: z.ZodNullable<z.ZodString>;
600
+ titleFields: z.ZodArray<z.ZodString>;
601
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
602
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
603
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
604
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
605
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
606
+ permission: z.ZodString;
607
+ target: z.ZodEnum<{
608
+ page: "page";
609
+ server: "server";
610
+ }>;
611
+ }, z.core.$strict>>>;
612
+ messages: z.ZodRecord<z.ZodEnum<{
613
+ en: "en";
614
+ fr: "fr";
615
+ }> & z.core.$partial, z.ZodObject<{
616
+ name: z.ZodString;
617
+ plural: z.ZodString;
618
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
619
+ label: z.ZodString;
620
+ description: z.ZodString;
621
+ }, z.core.$strip>>;
622
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
623
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
624
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
625
+ }, z.core.$strip>>;
626
+ }, z.core.$strict>>;
627
+ listed: z.ZodOptional<z.ZodBoolean>;
628
+ kinds: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
629
+ kind: z.ZodString;
630
+ icon: z.ZodString;
631
+ template: z.ZodOptional<z.ZodString>;
632
+ }, z.core.$strict>>>>;
633
+ handles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>>;
634
+ url: z.ZodURL;
635
+ provides: z.ZodRecord<z.ZodString, z.ZodObject<{
636
+ operations: z.ZodArray<z.ZodString>;
637
+ }, z.core.$strict>>;
638
+ jwks: z.ZodObject<{
639
+ keys: z.ZodArray<z.ZodObject<{
640
+ kty: z.ZodLiteral<"EC">;
641
+ crv: z.ZodLiteral<"P-256">;
642
+ x: z.ZodString;
643
+ y: z.ZodString;
644
+ kid: z.ZodString;
645
+ alg: z.ZodLiteral<"ES256">;
646
+ use: z.ZodLiteral<"sig">;
647
+ }, z.core.$strict>>;
648
+ }, z.core.$strict>;
649
+ }, z.core.$strict>;
650
+ warnings: z.ZodArray<z.ZodEnum<{
651
+ insecure_transport: "insecure_transport";
652
+ replaces_enrolled_app: "replaces_enrolled_app";
653
+ sensitive_permissions: "sensitive_permissions";
654
+ shares_core_origin: "shares_core_origin";
655
+ }>>;
656
+ }, z.core.$strip>;
657
+ export type EnrollmentReview = z.infer<typeof EnrollmentReviewSchema>;
658
+ /** What the consent screen shows: an app asking an account for permissions. */
659
+ export declare const ConsentRequestSchema: z.ZodObject<{
660
+ app: z.ZodObject<{
661
+ id: z.ZodString;
662
+ name: z.ZodString;
663
+ description: z.ZodNullable<z.ZodString>;
664
+ url: z.ZodURL;
665
+ iconUrl: z.ZodURL;
666
+ }, z.core.$strip>;
667
+ account: z.ZodObject<{
668
+ id: z.ZodUUID;
669
+ email: z.ZodEmail;
670
+ name: z.ZodString;
671
+ avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
672
+ kind: z.ZodLiteral<"generated">;
673
+ seed: z.ZodUUID;
674
+ }, z.core.$strip>, z.ZodObject<{
675
+ kind: z.ZodLiteral<"file">;
676
+ fileId: z.ZodUUID;
677
+ url: z.ZodURL;
678
+ }, z.core.$strip>], "kind">;
679
+ }, z.core.$strip>;
680
+ permissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
681
+ newPermissions: z.ZodArray<z.ZodType<import("./permissions.ts").DelegablePermission, string, z.core.$ZodTypeInternals<import("./permissions.ts").DelegablePermission, string>>>;
682
+ types: z.ZodArray<z.ZodObject<{
683
+ id: z.ZodString;
684
+ version: z.ZodInt;
685
+ parent: z.ZodNullable<z.ZodString>;
686
+ titleFields: z.ZodArray<z.ZodString>;
687
+ schema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
688
+ permissions: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>;
689
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
690
+ kinds: z.ZodDefault<z.ZodArray<z.ZodString>>;
691
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
692
+ permission: z.ZodString;
693
+ target: z.ZodEnum<{
694
+ page: "page";
695
+ server: "server";
696
+ }>;
697
+ }, z.core.$strict>>>;
698
+ messages: z.ZodRecord<z.ZodEnum<{
699
+ en: "en";
700
+ fr: "fr";
701
+ }> & z.core.$partial, z.ZodObject<{
702
+ name: z.ZodString;
703
+ plural: z.ZodString;
704
+ permissions: z.ZodRecord<z.ZodString, z.ZodObject<{
705
+ label: z.ZodString;
706
+ description: z.ZodString;
707
+ }, z.core.$strip>>;
708
+ operations: z.ZodRecord<z.ZodString, z.ZodString>;
709
+ kinds: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
710
+ actions: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
711
+ }, z.core.$strip>>;
712
+ }, z.core.$strict>>;
713
+ provides: z.ZodArray<z.ZodString>;
714
+ }, z.core.$strip>;
715
+ export type ConsentRequest = z.infer<typeof ConsentRequestSchema>;
716
+ /** Where the browser goes on, once the account allowed or denied. */
717
+ export declare const ConsentDecisionResultSchema: z.ZodObject<{
718
+ redirectTo: z.ZodURL;
719
+ }, z.core.$strip>;
720
+ export type ConsentDecisionResult = z.infer<typeof ConsentDecisionResultSchema>;
721
+ /** Most accounts one directory search returns: a search narrows, it never lists everyone. */
722
+ export declare const DIRECTORY_SEARCH_LIMIT = 10;
723
+ /** Most accounts one directory lookup by ids resolves. */
724
+ export declare const DIRECTORY_MAX_IDS = 100;
725
+ /** `?search=`: accounts whose name or email contains the text, case-insensitively. */
726
+ export declare const DirectorySearchSchema: z.ZodObject<{
727
+ search: z.ZodString;
728
+ }, z.core.$strip>;
729
+ export type DirectorySearch = z.infer<typeof DirectorySearchSchema>;
730
+ /** `?ids=<id>,<id>`: the accounts that still exist among these ids. */
731
+ export declare const DirectoryLookupSchema: z.ZodObject<{
732
+ ids: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodUUID>>;
733
+ }, z.core.$strip>;
734
+ /** Either a search or a lookup. */
735
+ export declare const DirectoryQuerySchema: z.ZodUnion<readonly [z.ZodObject<{
736
+ search: z.ZodString;
737
+ }, z.core.$strip>, z.ZodObject<{
738
+ ids: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>, z.ZodArray<z.ZodUUID>>;
739
+ }, z.core.$strip>]>;
740
+ export type DirectoryQuery = z.output<typeof DirectoryQuerySchema>;
741
+ /** The query string of a directory lookup, as `DirectoryQuerySchema` parses it. */
742
+ export declare function formatDirectoryQuery(query: DirectoryQuery): string;
743
+ /** Accounts of the directory: identity only, never permissions. */
744
+ export declare const DirectoryAccountListSchema: z.ZodObject<{
745
+ accounts: z.ZodArray<z.ZodObject<{
746
+ id: z.ZodUUID;
747
+ email: z.ZodEmail;
748
+ name: z.ZodString;
749
+ avatar: z.ZodDiscriminatedUnion<[z.ZodObject<{
750
+ kind: z.ZodLiteral<"generated">;
751
+ seed: z.ZodUUID;
752
+ }, z.core.$strip>, z.ZodObject<{
753
+ kind: z.ZodLiteral<"file">;
754
+ fileId: z.ZodUUID;
755
+ url: z.ZodURL;
756
+ }, z.core.$strip>], "kind">;
757
+ }, z.core.$strip>>;
758
+ }, z.core.$strip>;
759
+ export type DirectoryAccountList = z.infer<typeof DirectoryAccountListSchema>;
760
+ /** An app handling an action on one kind of entity of a type, as other apps offer it. */
761
+ export declare const EntityHandlerSchema: z.ZodObject<{
762
+ appId: z.ZodString;
763
+ appName: z.ZodString;
764
+ action: z.ZodString;
765
+ kind: z.ZodString;
766
+ iconUrl: z.ZodURL;
767
+ url: z.ZodURL;
768
+ }, z.core.$strip>;
769
+ export type EntityHandler = z.infer<typeof EntityHandlerSchema>;
770
+ export declare const EntityHandlerListSchema: z.ZodObject<{
771
+ handlers: z.ZodArray<z.ZodObject<{
772
+ appId: z.ZodString;
773
+ appName: z.ZodString;
774
+ action: z.ZodString;
775
+ kind: z.ZodString;
776
+ iconUrl: z.ZodURL;
777
+ url: z.ZodURL;
778
+ }, z.core.$strip>>;
779
+ }, z.core.$strip>;
780
+ export type EntityHandlerList = z.infer<typeof EntityHandlerListSchema>;
781
+ /** A kind of entity an app supports, as other apps show it (an icon) and create it (a template). */
782
+ export declare const EntityKindSchema: z.ZodObject<{
783
+ appId: z.ZodString;
784
+ appName: z.ZodString;
785
+ kind: z.ZodString;
786
+ iconUrl: z.ZodURL;
787
+ hasTemplate: z.ZodBoolean;
788
+ }, z.core.$strip>;
789
+ export type EntityKind = z.infer<typeof EntityKindSchema>;
790
+ export declare const EntityKindListSchema: z.ZodObject<{
791
+ kinds: z.ZodArray<z.ZodObject<{
792
+ appId: z.ZodString;
793
+ appName: z.ZodString;
794
+ kind: z.ZodString;
795
+ iconUrl: z.ZodURL;
796
+ hasTemplate: z.ZodBoolean;
797
+ }, z.core.$strip>>;
798
+ }, z.core.$strip>;
799
+ export type EntityKindList = z.infer<typeof EntityKindListSchema>;