@postxl/schema 1.9.0 → 1.10.1

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.
@@ -0,0 +1,856 @@
1
+ {
2
+ "name": "Skaile Platform",
3
+ "slug": "skaile-platform",
4
+ "description": "Skill & AI eXecution Engine — enterprise app building platform",
5
+ "projectType": "standalone",
6
+ "version": "0.1.0",
7
+ "schemas": [
8
+ {
9
+ "name": "PXL",
10
+ "auth": {
11
+ "read": {
12
+ "anyRole": ["User", "Viewer", "ItAdmin", "PlatformAdmin"]
13
+ },
14
+ "write": {
15
+ "anyRole": ["ItAdmin", "PlatformAdmin"]
16
+ },
17
+ "adminUi": {
18
+ "visibleFor": ["ItAdmin", "PlatformAdmin"]
19
+ }
20
+ }
21
+ },
22
+ {
23
+ "name": "Config",
24
+ "auth": {
25
+ "read": {
26
+ "anyRole": ["User", "Viewer", "ItAdmin", "PlatformAdmin"]
27
+ },
28
+ "write": {
29
+ "anyRole": ["ItAdmin", "PlatformAdmin"]
30
+ },
31
+ "adminUi": {
32
+ "visibleFor": ["ItAdmin", "PlatformAdmin"]
33
+ }
34
+ }
35
+ },
36
+ {
37
+ "name": "Workspace",
38
+ "auth": {
39
+ "read": {
40
+ "anyRole": ["User", "Viewer", "ItAdmin", "PlatformAdmin"]
41
+ },
42
+ "write": {
43
+ "anyRole": ["User", "ItAdmin", "PlatformAdmin"]
44
+ },
45
+ "adminUi": {
46
+ "visibleFor": ["ItAdmin", "PlatformAdmin"]
47
+ }
48
+ }
49
+ },
50
+ {
51
+ "name": "Runtime",
52
+ "auth": {
53
+ "read": {
54
+ "anyRole": ["User", "Viewer", "ItAdmin", "PlatformAdmin"]
55
+ },
56
+ "write": {
57
+ "anyRole": ["ItAdmin", "PlatformAdmin"]
58
+ },
59
+ "adminUi": {
60
+ "visibleFor": ["ItAdmin", "PlatformAdmin"]
61
+ }
62
+ }
63
+ }
64
+ ],
65
+ "defaultSchema": "Workspace",
66
+ "systemUser": {
67
+ "name": "System",
68
+ "email": "system@skaile.ai",
69
+ "sub": null
70
+ },
71
+ "standardModels": ["User", "Action", "ActionOperation", "File", "Comment", "TableView", "Config"],
72
+ "models": {
73
+ "Organization": {
74
+ "schema": "Config",
75
+ "standardFields": ["id", "createdAt", "updatedAt"],
76
+ "labelField": "name",
77
+ "fields": {
78
+ "name": { "type": "String", "label": "Name" },
79
+ "slug": { "type": "String", "label": "Slug", "isUnique": true },
80
+ "status": {
81
+ "type": { "Active": "Active", "Inactive": "Inactive" },
82
+ "label": "Status"
83
+ },
84
+ "defaultDeploymentTargetId": {
85
+ "type": "DeploymentTarget?",
86
+ "label": "Default Deployment Target",
87
+ "onDelete": "setNull"
88
+ },
89
+ "defaultSkillTemplateId": {
90
+ "type": "SkillTemplate?",
91
+ "label": "Default Skill Template",
92
+ "onDelete": "setNull"
93
+ }
94
+ }
95
+ },
96
+ "OrgMembership": {
97
+ "schema": "Config",
98
+ "standardFields": ["id", "createdAt", "updatedAt"],
99
+ "labelField": "displayName",
100
+ "fields": {
101
+ "displayName": { "type": "String", "label": "Display Name" },
102
+ "userId": { "type": "User", "label": "User" },
103
+ "organizationId": { "type": "Organization", "label": "Organization" },
104
+ "role": {
105
+ "type": {
106
+ "User": "User",
107
+ "Viewer": "Viewer",
108
+ "ItAdmin": "IT Admin",
109
+ "PlatformAdmin": "Platform Admin"
110
+ },
111
+ "label": "Role"
112
+ },
113
+ "status": {
114
+ "type": {
115
+ "Active": "Active",
116
+ "Invited": "Invited",
117
+ "Expired": "Expired",
118
+ "Revoked": "Revoked"
119
+ },
120
+ "label": "Status"
121
+ },
122
+ "invitedEmail": { "type": "String?", "label": "Invited Email" },
123
+ "invitedById": { "type": "User?", "label": "Invited By", "onDelete": "setNull" },
124
+ "inviteTokenHash": { "type": "String?", "label": "Invite Token Hash" },
125
+ "inviteExpiresAt": { "type": "DateTime?", "label": "Invite Expires" },
126
+ "inviteAcceptedAt": { "type": "DateTime?", "label": "Invite Accepted" },
127
+ "lastActiveAt": { "type": "DateTime?", "label": "Last Active" }
128
+ }
129
+ },
130
+ "SkillTemplate": {
131
+ "schema": "Config",
132
+ "standardFields": ["id", "createdAt", "updatedAt"],
133
+ "labelField": "name",
134
+ "fields": {
135
+ "name": { "type": "String", "label": "Name" },
136
+ "description": { "type": "String?", "label": "Description" },
137
+ "scope": {
138
+ "type": { "Global": "Global", "Organization": "Organization" },
139
+ "label": "Scope"
140
+ },
141
+ "organizationId": { "type": "Organization?", "label": "Organization" },
142
+ "phases": { "type": "JSON", "label": "Phase Definitions" },
143
+ "config": { "type": "JSON?", "label": "Configuration" },
144
+ "isDefault": { "type": "Boolean", "label": "Is Default" }
145
+ }
146
+ },
147
+ "DeploymentTarget": {
148
+ "schema": "Config",
149
+ "standardFields": ["id", "createdAt", "updatedAt"],
150
+ "labelField": "name",
151
+ "fields": {
152
+ "organizationId": { "type": "Organization", "label": "Organization" },
153
+ "name": { "type": "String", "label": "Name" },
154
+ "targetType": {
155
+ "type": {
156
+ "Docker": "Docker",
157
+ "AWS": "AWS",
158
+ "Azure": "Azure",
159
+ "GCP": "GCP",
160
+ "Kubernetes": "Kubernetes"
161
+ },
162
+ "label": "Target Type"
163
+ },
164
+ "config": { "type": "JSON", "label": "Configuration" },
165
+ "status": {
166
+ "type": {
167
+ "Active": "Active",
168
+ "Inactive": "Inactive",
169
+ "Error": "Error"
170
+ },
171
+ "label": "Status"
172
+ },
173
+ "isDefault": { "type": "Boolean", "label": "Is Default" },
174
+ "lastTestedAt": { "type": "DateTime?", "label": "Last Tested" }
175
+ }
176
+ },
177
+ "ProviderLink": {
178
+ "schema": "Config",
179
+ "standardFields": ["id", "createdAt", "updatedAt"],
180
+ "labelField": "name",
181
+ "fields": {
182
+ "organizationId": { "type": "Organization", "label": "Organization" },
183
+ "name": { "type": "String", "label": "Name" },
184
+ "category": {
185
+ "type": { "Git": "Git", "Files": "Files", "Transport": "Transport" },
186
+ "label": "Category"
187
+ },
188
+ "providerType": {
189
+ "type": {
190
+ "GitHub": "GitHub",
191
+ "GitLab": "GitLab",
192
+ "Bitbucket": "Bitbucket",
193
+ "SharePoint": "SharePoint",
194
+ "GoogleDrive": "Google Drive",
195
+ "S3": "AWS S3",
196
+ "Dropbox": "Dropbox",
197
+ "SSH": "SSH/SFTP",
198
+ "WebDAV": "WebDAV"
199
+ },
200
+ "label": "Provider Type"
201
+ },
202
+ "authMode": {
203
+ "type": {
204
+ "UserDelegation": "User Delegation",
205
+ "ServiceAccount": "Service Account"
206
+ },
207
+ "label": "Auth Mode"
208
+ },
209
+ "baseUrl": { "type": "String?", "label": "Base URL" },
210
+ "config": { "type": "JSON?", "label": "Provider Config" },
211
+ "oauthClientId": { "type": "String?", "label": "OAuth Client ID" },
212
+ "encryptedOauthClientSecret": { "type": "String?", "label": "Encrypted OAuth Client Secret" },
213
+ "status": {
214
+ "type": {
215
+ "Active": "Active",
216
+ "Error": "Error",
217
+ "Disconnected": "Disconnected"
218
+ },
219
+ "label": "Status"
220
+ },
221
+ "lastValidatedAt": { "type": "DateTime?", "label": "Last Validated" }
222
+ }
223
+ },
224
+ "UserProviderCredential": {
225
+ "schema": "Config",
226
+ "standardFields": ["id", "createdAt", "updatedAt"],
227
+ "labelField": "id",
228
+ "fields": {
229
+ "userId": { "type": "User", "label": "User" },
230
+ "providerLinkId": { "type": "ProviderLink", "label": "Provider Link" },
231
+ "externalUsername": { "type": "String?", "label": "External Username" },
232
+ "credentialType": {
233
+ "type": {
234
+ "OAuthToken": "OAuth Token",
235
+ "PAT": "PAT",
236
+ "KeyPair": "Key Pair",
237
+ "KeyFile": "Key File",
238
+ "BasicAuth": "Basic Auth"
239
+ },
240
+ "label": "Credential Type"
241
+ },
242
+ "encryptedCredentials": { "type": "String", "label": "Encrypted Credentials" },
243
+ "tokenExpiresAt": { "type": "DateTime?", "label": "Token Expiry" },
244
+ "tokenScopes": { "type": "String?", "label": "Token Scopes" },
245
+ "status": {
246
+ "type": {
247
+ "Active": "Active",
248
+ "Expired": "Expired",
249
+ "Revoked": "Revoked"
250
+ },
251
+ "label": "Status"
252
+ }
253
+ }
254
+ },
255
+ "ServiceAccountCredential": {
256
+ "schema": "Config",
257
+ "standardFields": ["id", "createdAt", "updatedAt"],
258
+ "labelField": "name",
259
+ "fields": {
260
+ "providerLinkId": { "type": "ProviderLink", "label": "Provider Link" },
261
+ "name": { "type": "String", "label": "Name" },
262
+ "credentialType": {
263
+ "type": {
264
+ "OAuthToken": "OAuth Token",
265
+ "PAT": "PAT",
266
+ "KeyPair": "Key Pair",
267
+ "KeyFile": "Key File",
268
+ "BasicAuth": "Basic Auth",
269
+ "VaultRef": "Vault Reference"
270
+ },
271
+ "label": "Credential Type"
272
+ },
273
+ "encryptedCredentials": { "type": "String?", "label": "Encrypted Credentials" },
274
+ "vaultRef": { "type": "String?", "label": "Vault Reference" },
275
+ "tokenExpiresAt": { "type": "DateTime?", "label": "Token Expiry" },
276
+ "lastValidatedAt": { "type": "DateTime?", "label": "Last Validated" }
277
+ }
278
+ },
279
+ "AIProviderConfig": {
280
+ "schema": "Config",
281
+ "standardFields": ["id", "createdAt", "updatedAt"],
282
+ "labelField": "name",
283
+ "fields": {
284
+ "organizationId": { "type": "Organization?", "label": "Organization" },
285
+ "name": { "type": "String", "label": "Name" },
286
+ "providerType": {
287
+ "type": {
288
+ "Anthropic": "Anthropic",
289
+ "OpenAI": "OpenAI",
290
+ "AzureOpenAI": "Azure OpenAI",
291
+ "Pi": "Pi",
292
+ "OhMyPi": "OhMyPi",
293
+ "CustomHTTP": "Custom HTTP"
294
+ },
295
+ "label": "Provider Type"
296
+ },
297
+ "endpoint": { "type": "String", "label": "API Endpoint" },
298
+ "model": { "type": "String", "label": "Model" },
299
+ "encryptedCredentials": { "type": "String", "label": "Encrypted Credentials" },
300
+ "credentialFingerprint": { "type": "String?", "label": "Credential Fingerprint" },
301
+ "fallbackOrder": { "type": "Int", "label": "Fallback Order" },
302
+ "isActive": { "type": "Boolean", "label": "Is Active" },
303
+ "isGlobal": { "type": "Boolean", "label": "Is Global" },
304
+ "lastTestedAt": { "type": "DateTime?", "label": "Last Tested" }
305
+ }
306
+ },
307
+ "UserAIProviderCredential": {
308
+ "schema": "Config",
309
+ "standardFields": ["id", "createdAt", "updatedAt"],
310
+ "labelField": "label",
311
+ "fields": {
312
+ "userId": { "type": "User", "label": "User" },
313
+ "label": { "type": "String", "label": "Label" },
314
+ "providerType": {
315
+ "type": { "AnthropicClaudeCode": "Anthropic (Claude Code Subscription)" },
316
+ "label": "Provider Type"
317
+ },
318
+ "encryptedCredentials": { "type": "String", "label": "Encrypted Credentials" },
319
+ "credentialFingerprint": { "type": "String?", "label": "Credential Fingerprint" },
320
+ "uploadedAt": { "type": "DateTime", "label": "Uploaded At" },
321
+ "expiresAt": { "type": "DateTime?", "label": "Expires At" },
322
+ "isActive": { "type": "Boolean", "label": "Is Active" }
323
+ }
324
+ },
325
+ "Project": {
326
+ "schema": "Workspace",
327
+ "standardFields": ["id", "createdAt", "updatedAt"],
328
+ "labelField": "name",
329
+ "fields": {
330
+ "name": { "type": "String", "label": "Name" },
331
+ "slug": { "type": "String?", "label": "Slug" },
332
+ "description": { "type": "String?", "label": "Description" },
333
+ "status": {
334
+ "type": {
335
+ "Active": "Active",
336
+ "Archived": "Archived"
337
+ },
338
+ "label": "Status"
339
+ },
340
+ "visibility": {
341
+ "type": {
342
+ "Private": "Private",
343
+ "Team": "Team",
344
+ "Org": "Organization"
345
+ },
346
+ "label": "Visibility"
347
+ },
348
+ "organizationId": { "type": "Organization", "label": "Organization" },
349
+ "ownerId": { "type": "User", "label": "Owner", "onDelete": "restrict" },
350
+ "mainBranchName": { "type": "String", "label": "Main Branch Name" },
351
+ "mainSessionId": { "type": "Session?", "label": "Main Session", "onDelete": "setNull" },
352
+ "sourceType": {
353
+ "type": {
354
+ "Git": "Git",
355
+ "SharePoint": "SharePoint",
356
+ "LocalFolder": "Local Folder",
357
+ "Empty": "Empty"
358
+ },
359
+ "label": "Source Type"
360
+ },
361
+ "sourceConfig": { "type": "Json?", "label": "Source Config" }
362
+ }
363
+ },
364
+ "Session": {
365
+ "schema": "Workspace",
366
+ "standardFields": ["id", "createdAt", "updatedAt"],
367
+ "labelField": "name",
368
+ "fields": {
369
+ "projectId": { "type": "Project", "label": "Project" },
370
+ "name": { "type": "String", "label": "Name" },
371
+ "description": { "type": "String?", "label": "Description" },
372
+ "slug": { "type": "String?", "label": "Slug" },
373
+ "status": {
374
+ "type": {
375
+ "Provisioning": "Provisioning",
376
+ "Running": "Running",
377
+ "Hibernating": "Hibernating",
378
+ "Hibernated": "Hibernated",
379
+ "Waking": "Waking",
380
+ "Closing": "Closing",
381
+ "Closed": "Closed",
382
+ "Error": "Error"
383
+ },
384
+ "label": "Status"
385
+ },
386
+ "branchedOfCommit": { "type": "String?", "label": "Branched Of Commit" },
387
+ "mergeCommit": { "type": "String?", "label": "Merge Commit" },
388
+ "commitSha": { "type": "String?", "label": "Commit SHA" },
389
+ "ownerId": { "type": "User", "label": "Owner", "onDelete": "restrict" },
390
+ "aiConfig": { "type": "JSON", "label": "AI Config" },
391
+ "runtimeConfig": { "type": "JSON?", "label": "Runtime Config" },
392
+ "pipelineState": { "type": "JSON?", "label": "Pipeline State" },
393
+ "skillTemplateId": { "type": "SkillTemplate?", "label": "Skill Template", "onDelete": "setNull" },
394
+ "entryMethod": {
395
+ "type": {
396
+ "DescribeIdea": "Describe Idea",
397
+ "ExcelUpload": "Excel Upload"
398
+ },
399
+ "label": "Entry Method"
400
+ },
401
+ "complexityTier": {
402
+ "type": {
403
+ "Small": "Small",
404
+ "Standard": "Standard",
405
+ "Complex": "Complex"
406
+ },
407
+ "label": "Complexity Tier"
408
+ },
409
+ "mainConversationId": { "type": "Conversation?", "label": "Main Conversation", "onDelete": "setNull" },
410
+ "lastActivityAt": { "type": "DateTime?", "label": "Last Activity" },
411
+ "hibernatedAt": { "type": "DateTime?", "label": "Hibernated At" },
412
+ "contextRestoreLimit": { "type": "Int?", "label": "Context Restore Limit" },
413
+ "pushToMain": { "type": "Boolean?", "label": "Push to Main" },
414
+ "followMain": { "type": "Boolean?", "label": "Follow Main" },
415
+ "connectorAccessMode": {
416
+ "type": "String?",
417
+ "label": "Connector Access Mode",
418
+ "description": "Controls whose credentials are used for external provider access. Values: OwnerDelegation (default), ServiceAccount, SharedDelegation. Null defaults to OwnerDelegation."
419
+ },
420
+ "scopeRootPath": {
421
+ "type": "String?",
422
+ "label": "Scope Root Path",
423
+ "description": "Relative path to the subfolder this session is scoped to. Null means full project (unscoped). Paths are relative to the volume root, forward-slash separated, no leading/trailing slash."
424
+ },
425
+ "accessMode": {
426
+ "type": { "Team": "Team", "Private": "Private" },
427
+ "label": "Access Mode",
428
+ "defaultValue": "Private"
429
+ }
430
+ }
431
+ },
432
+ "FlowExecution": {
433
+ "schema": "Workspace",
434
+ "standardFields": ["id", "createdAt", "updatedAt"],
435
+ "labelField": "runId",
436
+ "fields": {
437
+ "sessionId": {
438
+ "type": "Session",
439
+ "label": "Session",
440
+ "hasIndex": true,
441
+ "description": "The session this flow run belongs to. Flows are scoped per session — session closure makes the run history orthogonal."
442
+ },
443
+ "runId": {
444
+ "type": "String",
445
+ "label": "Run ID",
446
+ "isUnique": true,
447
+ "description": "Runner-side execution ID. Stable across hibernation/wake; unique across all sessions."
448
+ },
449
+ "flowId": {
450
+ "type": "String",
451
+ "label": "Flow ID",
452
+ "description": "Catalog ID of the flow definition that was started (e.g. `skaileup-conceptualization/cli-concept`)."
453
+ },
454
+ "flowVersion": {
455
+ "type": "String",
456
+ "label": "Flow Version",
457
+ "description": "Flow definition version pinned at startFlow time. The runner stores its own copy of the definition — later edits to the catalog do not affect a running instance."
458
+ },
459
+ "status": {
460
+ "type": {
461
+ "Running": "Running",
462
+ "Paused": "Paused",
463
+ "Complete": "Complete",
464
+ "Failed": "Failed",
465
+ "Cancelled": "Cancelled"
466
+ },
467
+ "label": "Status"
468
+ },
469
+ "state": {
470
+ "type": "JSON",
471
+ "label": "State",
472
+ "description": "Full FlowExecution snapshot from @skaile/agent-types. Latest-wins upsert on every state_changed event with store prefix `flow:`. Not event-sourced — history lives in the chat breadcrumb stream."
473
+ },
474
+ "startedByUserId": {
475
+ "type": "User",
476
+ "label": "Started By",
477
+ "description": "User that issued the startFlow mutation. Informational — framework enforces no approval policy.",
478
+ "onDelete": "restrict"
479
+ },
480
+ "startedAt": {
481
+ "type": "DateTime",
482
+ "label": "Started At"
483
+ },
484
+ "finishedAt": {
485
+ "type": "DateTime?",
486
+ "label": "Finished At",
487
+ "description": "Set when status transitions to Complete, Failed, or Cancelled."
488
+ },
489
+ "autonomousMode": {
490
+ "type": "Boolean",
491
+ "label": "Autonomous Mode",
492
+ "defaultValue": false,
493
+ "description": "When true, the agent skips approval gates by transitioning directly from running to complete. Editable mid-flow."
494
+ }
495
+ }
496
+ },
497
+ "Team": {
498
+ "schema": "Config",
499
+ "standardFields": ["id", "createdAt", "updatedAt"],
500
+ "labelField": "name",
501
+ "fields": {
502
+ "name": { "type": "String", "label": "Name" },
503
+ "slug": { "type": "String", "label": "Slug" },
504
+ "isDefault": { "type": "Boolean", "label": "Is Default" },
505
+ "organizationId": { "type": "Organization", "label": "Organization" }
506
+ },
507
+ "compositeUnique": [["organizationId", "slug"]]
508
+ },
509
+ "TeamMember": {
510
+ "schema": "Config",
511
+ "standardFields": ["id", "createdAt", "updatedAt"],
512
+ "labelField": "id",
513
+ "fields": {
514
+ "teamId": { "type": "Team", "label": "Team" },
515
+ "userId": { "type": "User", "label": "User" },
516
+ "role": {
517
+ "type": { "Owner": "Owner", "Member": "Member" },
518
+ "label": "Role"
519
+ }
520
+ },
521
+ "compositeUnique": [["teamId", "userId"]]
522
+ },
523
+ "ProjectTeamAccess": {
524
+ "schema": "Workspace",
525
+ "standardFields": ["id", "createdAt", "updatedAt"],
526
+ "labelField": "id",
527
+ "fields": {
528
+ "teamId": { "type": "Team", "label": "Team" },
529
+ "projectId": { "type": "Project", "label": "Project" },
530
+ "role": {
531
+ "type": {
532
+ "Owner": "Owner",
533
+ "User": "User",
534
+ "Viewer": "Viewer"
535
+ },
536
+ "label": "Role"
537
+ },
538
+ "grantedById": { "type": "User?", "label": "Granted By", "onDelete": "setNull" }
539
+ },
540
+ "compositeUnique": [["teamId", "projectId"]]
541
+ },
542
+ "ProjectMember": {
543
+ "schema": "Workspace",
544
+ "standardFields": ["id", "createdAt", "updatedAt"],
545
+ "labelField": "id",
546
+ "fields": {
547
+ "projectId": { "type": "Project", "label": "Project" },
548
+ "userId": { "type": "User", "label": "User" },
549
+ "role": {
550
+ "type": {
551
+ "Owner": "Owner",
552
+ "User": "User",
553
+ "Viewer": "Viewer"
554
+ },
555
+ "label": "Role"
556
+ },
557
+ "invitedById": { "type": "User?", "label": "Invited By", "onDelete": "setNull" },
558
+ "status": {
559
+ "type": {
560
+ "Active": "Active",
561
+ "Invited": "Invited",
562
+ "Revoked": "Revoked"
563
+ },
564
+ "label": "Status"
565
+ }
566
+ }
567
+ },
568
+ "SessionMember": {
569
+ "schema": "Workspace",
570
+ "standardFields": ["id", "createdAt", "updatedAt"],
571
+ "labelField": "id",
572
+ "fields": {
573
+ "sessionId": { "type": "Session", "label": "Session" },
574
+ "userId": { "type": "User", "label": "User" },
575
+ "role": {
576
+ "type": {
577
+ "Owner": "Owner",
578
+ "User": "User",
579
+ "Viewer": "Viewer"
580
+ },
581
+ "label": "Role"
582
+ },
583
+ "invitedById": { "type": "User?", "label": "Invited By", "onDelete": "setNull" },
584
+ "status": {
585
+ "type": {
586
+ "Active": "Active",
587
+ "Invited": "Invited",
588
+ "Revoked": "Revoked"
589
+ },
590
+ "label": "Status"
591
+ }
592
+ }
593
+ },
594
+ "Conversation": {
595
+ "schema": "Workspace",
596
+ "standardFields": ["id", "createdAt", "updatedAt"],
597
+ "labelField": "title",
598
+ "fields": {
599
+ "title": { "type": "String", "label": "Title" },
600
+ "sessionId": { "type": "Session", "label": "Session" }
601
+ }
602
+ },
603
+ "Message": {
604
+ "schema": "Workspace",
605
+ "standardFields": ["id", "createdAt", "updatedAt"],
606
+ "labelField": "id",
607
+ "fields": {
608
+ "conversationId": {
609
+ "type": "Conversation",
610
+ "label": "Conversation",
611
+ "description": "The conversation this message belongs to."
612
+ },
613
+ "seq": {
614
+ "type": "Int",
615
+ "label": "Sequence",
616
+ "description": "Monotonic sequence number within the session. Used for ordering and pagination."
617
+ },
618
+ "senderId": {
619
+ "type": "User?",
620
+ "label": "Sender",
621
+ "description": "The user that sent this message (present for user commands, absent for agent events).",
622
+ "onDelete": "setNull"
623
+ },
624
+ "payload": {
625
+ "type": "JSON",
626
+ "label": "Payload",
627
+ "description": "The message payload — an AgentCommand or AgentEvent from @skaile/agent-types. Check payload.type for the variant."
628
+ }
629
+ }
630
+ },
631
+ "ConceptPhase": {
632
+ "schema": "Workspace",
633
+ "standardFields": ["id", "createdAt", "updatedAt"],
634
+ "labelField": "phaseName",
635
+ "fields": {
636
+ "sessionId": { "type": "Session", "label": "Session" },
637
+ "phaseType": { "type": "String", "label": "Phase Type" },
638
+ "phaseName": { "type": "String", "label": "Phase Name" },
639
+ "phaseOrder": { "type": "Int", "label": "Phase Order" },
640
+ "status": {
641
+ "type": {
642
+ "NotStarted": "Not Started",
643
+ "InProgress": "In Progress",
644
+ "Completed": "Completed",
645
+ "Skipped": "Skipped"
646
+ },
647
+ "label": "Status"
648
+ },
649
+ "startedAt": { "type": "DateTime?", "label": "Started At" },
650
+ "completedAt": { "type": "DateTime?", "label": "Completed At" }
651
+ }
652
+ },
653
+ "Checkpoint": {
654
+ "schema": "Workspace",
655
+ "standardFields": ["id", "createdAt", "updatedAt"],
656
+ "labelField": "label",
657
+ "fields": {
658
+ "label": { "type": "String", "label": "Label" },
659
+ "conceptPhaseId": { "type": "ConceptPhase", "label": "Concept Phase" },
660
+ "approvedById": { "type": "User", "label": "Approved By", "onDelete": "restrict" },
661
+ "approvedAt": { "type": "DateTime", "label": "Approved At" },
662
+ "feedback": { "type": "String?", "label": "Feedback" }
663
+ }
664
+ },
665
+ "FeatureTask": {
666
+ "schema": "Workspace",
667
+ "standardFields": ["id", "createdAt", "updatedAt"],
668
+ "labelField": "featureName",
669
+ "fields": {
670
+ "sessionId": { "type": "Session", "label": "Session" },
671
+ "featureName": { "type": "String", "label": "Feature Name" },
672
+ "featureGroup": { "type": "String", "label": "Feature Group" },
673
+ "status": {
674
+ "type": {
675
+ "Pending": "Pending",
676
+ "InProgress": "In Progress",
677
+ "Testing": "Testing",
678
+ "Complete": "Complete",
679
+ "Failed": "Failed"
680
+ },
681
+ "label": "Status"
682
+ },
683
+ "startedAt": { "type": "DateTime?", "label": "Started At" },
684
+ "completedAt": { "type": "DateTime?", "label": "Completed At" },
685
+ "testResults": { "type": "JSON?", "label": "Test Results" }
686
+ }
687
+ },
688
+ "ExcelExtraction": {
689
+ "schema": "Workspace",
690
+ "standardFields": ["id", "createdAt", "updatedAt"],
691
+ "labelField": "fileName",
692
+ "fields": {
693
+ "sessionId": { "type": "Session", "label": "Session" },
694
+ "fileId": { "type": "File?", "label": "Uploaded File", "onDelete": "setNull" },
695
+ "fileName": { "type": "String", "label": "File Name" },
696
+ "status": {
697
+ "type": {
698
+ "Uploading": "Uploading",
699
+ "Extracting": "Extracting",
700
+ "Reviewing": "Reviewing",
701
+ "Accepted": "Accepted",
702
+ "Failed": "Failed"
703
+ },
704
+ "label": "Status"
705
+ },
706
+ "extractedSchema": { "type": "JSON?", "label": "Extracted Schema" },
707
+ "acceptedElements": { "type": "JSON?", "label": "Accepted Elements" }
708
+ }
709
+ },
710
+ "Deployment": {
711
+ "schema": "Runtime",
712
+ "standardFields": ["id", "createdAt", "updatedAt"],
713
+ "labelField": "label",
714
+ "fields": {
715
+ "label": { "type": "String", "label": "Label" },
716
+ "sessionId": { "type": "Session", "label": "Session" },
717
+ "deploymentTargetId": {
718
+ "type": "DeploymentTarget",
719
+ "label": "Deployment Target",
720
+ "onDelete": "restrict"
721
+ },
722
+ "triggeredById": { "type": "User", "label": "Triggered By", "onDelete": "restrict" },
723
+ "status": {
724
+ "type": {
725
+ "Pending": "Pending",
726
+ "Building": "Building",
727
+ "Testing": "Testing",
728
+ "Deploying": "Deploying",
729
+ "Running": "Running",
730
+ "Failed": "Failed",
731
+ "Stopped": "Stopped"
732
+ },
733
+ "label": "Status"
734
+ },
735
+ "startedAt": { "type": "DateTime?", "label": "Started At" },
736
+ "completedAt": { "type": "DateTime?", "label": "Completed At" },
737
+ "liveUrl": { "type": "String?", "label": "Live URL" },
738
+ "buildLogs": { "type": "JSON?", "label": "Build Logs" },
739
+ "errorDetails": { "type": "String?", "label": "Error Details" }
740
+ }
741
+ },
742
+ "Iteration": {
743
+ "schema": "Workspace",
744
+ "standardFields": ["id", "createdAt", "updatedAt"],
745
+ "labelField": "description",
746
+ "fields": {
747
+ "sessionId": { "type": "Session", "label": "Session" },
748
+ "requestedById": { "type": "User", "label": "Requested By", "onDelete": "restrict" },
749
+ "description": { "type": "String", "label": "Description" },
750
+ "status": {
751
+ "type": {
752
+ "Requested": "Requested",
753
+ "InProgress": "In Progress",
754
+ "Complete": "Complete"
755
+ },
756
+ "label": "Status"
757
+ }
758
+ }
759
+ },
760
+ "SessionContainer": {
761
+ "schema": "Runtime",
762
+ "standardFields": ["id", "createdAt", "updatedAt"],
763
+ "labelField": "containerId",
764
+ "fields": {
765
+ "sessionId": { "type": "Session", "label": "Session" },
766
+ "containerId": { "type": "String", "label": "Docker Container ID" },
767
+ "status": {
768
+ "type": {
769
+ "Starting": "Starting",
770
+ "Running": "Running",
771
+ "Stopping": "Stopping",
772
+ "Stopped": "Stopped",
773
+ "Error": "Error"
774
+ },
775
+ "label": "Status"
776
+ },
777
+ "startedAt": { "type": "DateTime?", "label": "Started At" },
778
+ "stoppedAt": { "type": "DateTime?", "label": "Stopped At" },
779
+ "lastHeartbeatAt": { "type": "DateTime?", "label": "Last Heartbeat" }
780
+ }
781
+ },
782
+ "CatalogSource": {
783
+ "schema": "Config",
784
+ "standardFields": ["id", "createdAt", "updatedAt"],
785
+ "labelField": "name",
786
+ "fields": {
787
+ "organizationId": { "type": "Organization", "label": "Organization" },
788
+ "name": { "type": "String", "label": "Name" },
789
+ "sourceType": {
790
+ "type": {
791
+ "Bundled": "Bundled",
792
+ "Git": "Git",
793
+ "Local": "Local",
794
+ "Remote": "Remote"
795
+ },
796
+ "label": "Source Type"
797
+ },
798
+ "url": { "type": "String?", "label": "URL" },
799
+ "packages": { "type": "JSON", "label": "Package Names" },
800
+ "priority": { "type": "Int", "label": "Priority" },
801
+ "lastSyncedAt": { "type": "DateTime?", "label": "Last Synced" },
802
+ "syncStatus": {
803
+ "type": {
804
+ "Pending": "Pending",
805
+ "Syncing": "Syncing",
806
+ "Synced": "Synced",
807
+ "Error": "Error"
808
+ },
809
+ "label": "Sync Status"
810
+ },
811
+ "cachedCatalog": { "type": "JSON?", "label": "Cached Catalog Data" }
812
+ }
813
+ },
814
+ "AssetTaxonomyNode": {
815
+ "schema": "Config",
816
+ "standardFields": ["id", "createdAt", "updatedAt"],
817
+ "labelField": "label",
818
+ "fields": {
819
+ "organizationId": { "type": "Organization", "label": "Organization" },
820
+ "parentId": { "type": "AssetTaxonomyNode?", "label": "Parent Node" },
821
+ "label": { "type": "String", "label": "Label" },
822
+ "sortOrder": { "type": "Int", "label": "Sort Order" },
823
+ "assetRefs": { "type": "JSON", "label": "Asset References" }
824
+ }
825
+ },
826
+ "AssetTag": {
827
+ "schema": "Config",
828
+ "standardFields": ["id", "createdAt", "updatedAt"],
829
+ "labelField": "name",
830
+ "fields": {
831
+ "organizationId": { "type": "Organization", "label": "Organization" },
832
+ "name": { "type": "String", "label": "Tag Name" },
833
+ "assetRefs": { "type": "JSON", "label": "Asset References" }
834
+ }
835
+ },
836
+ "AssetPermission": {
837
+ "schema": "Config",
838
+ "standardFields": ["id", "createdAt", "updatedAt"],
839
+ "labelField": "assetRef",
840
+ "fields": {
841
+ "organizationId": { "type": "Organization", "label": "Organization" },
842
+ "assetRef": { "type": "String", "label": "Asset Reference" },
843
+ "roleOrUserId": { "type": "String", "label": "Role or User ID" },
844
+ "permission": {
845
+ "type": { "View": "View", "Use": "Use" },
846
+ "label": "Permission"
847
+ }
848
+ }
849
+ }
850
+ },
851
+ "auth": {
852
+ "provider": "keycloak",
853
+ "roles": ["User", "Viewer", "ItAdmin", "PlatformAdmin"],
854
+ "defaultRole": "User"
855
+ }
856
+ }