@skillcdn/console 0.1.14 → 0.1.16

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 (165) hide show
  1. package/README.md +5 -4
  2. package/SKILLCDN.md +2 -0
  3. package/dist/agent-name.d.ts +3 -0
  4. package/dist/agent-name.d.ts.map +1 -0
  5. package/dist/agent-name.js +9 -0
  6. package/dist/agent-name.js.map +1 -0
  7. package/dist/api.d.ts +6 -4
  8. package/dist/api.d.ts.map +1 -1
  9. package/dist/api.js +6 -4
  10. package/dist/api.js.map +1 -1
  11. package/dist/cli/cli.d.ts +2 -0
  12. package/dist/cli/cli.d.ts.map +1 -1
  13. package/dist/cli/cli.js +225 -24
  14. package/dist/cli/cli.js.map +1 -1
  15. package/dist/cli/format.d.ts +14 -4
  16. package/dist/cli/format.d.ts.map +1 -1
  17. package/dist/cli/format.js +59 -10
  18. package/dist/cli/format.js.map +1 -1
  19. package/dist/cli/help.d.ts.map +1 -1
  20. package/dist/cli/help.js +28 -12
  21. package/dist/cli/help.js.map +1 -1
  22. package/dist/cli/main.js +5 -0
  23. package/dist/cli/main.js.map +1 -1
  24. package/dist/client.d.ts +20 -2
  25. package/dist/client.d.ts.map +1 -1
  26. package/dist/client.js +11 -2
  27. package/dist/client.js.map +1 -1
  28. package/dist/components/calendar.d.ts +35 -2
  29. package/dist/components/calendar.d.ts.map +1 -1
  30. package/dist/components/calendar.js +80 -31
  31. package/dist/components/calendar.js.map +1 -1
  32. package/dist/components/connect.d.ts +4 -1
  33. package/dist/components/connect.d.ts.map +1 -1
  34. package/dist/components/connect.js +7 -3
  35. package/dist/components/connect.js.map +1 -1
  36. package/dist/components/decision-list.d.ts.map +1 -1
  37. package/dist/components/decision-list.js +2 -2
  38. package/dist/components/decision-list.js.map +1 -1
  39. package/dist/components/documents.d.ts +5 -0
  40. package/dist/components/documents.d.ts.map +1 -1
  41. package/dist/components/documents.js +3 -2
  42. package/dist/components/documents.js.map +1 -1
  43. package/dist/components/event-feed.d.ts +1 -1
  44. package/dist/components/event-feed.d.ts.map +1 -1
  45. package/dist/components/event-feed.js +10 -1
  46. package/dist/components/event-feed.js.map +1 -1
  47. package/dist/components/people.d.ts +24 -1
  48. package/dist/components/people.d.ts.map +1 -1
  49. package/dist/components/people.js +35 -3
  50. package/dist/components/people.js.map +1 -1
  51. package/dist/components/projects.d.ts +10 -1
  52. package/dist/components/projects.d.ts.map +1 -1
  53. package/dist/components/projects.js +8 -5
  54. package/dist/components/projects.js.map +1 -1
  55. package/dist/components/rules.d.ts +40 -0
  56. package/dist/components/rules.d.ts.map +1 -0
  57. package/dist/components/rules.js +46 -0
  58. package/dist/components/rules.js.map +1 -0
  59. package/dist/components/runs.d.ts +1 -1
  60. package/dist/components/runs.d.ts.map +1 -1
  61. package/dist/components/runs.js +2 -1
  62. package/dist/components/runs.js.map +1 -1
  63. package/dist/components/skills.d.ts.map +1 -1
  64. package/dist/components/skills.js +5 -1
  65. package/dist/components/skills.js.map +1 -1
  66. package/dist/components/task-form.d.ts.map +1 -1
  67. package/dist/components/task-form.js +1 -1
  68. package/dist/components/task-form.js.map +1 -1
  69. package/dist/components/tokens.d.ts.map +1 -1
  70. package/dist/components/tokens.js +2 -9
  71. package/dist/components/tokens.js.map +1 -1
  72. package/dist/components/ui.d.ts +7 -2
  73. package/dist/components/ui.d.ts.map +1 -1
  74. package/dist/components/ui.js +13 -0
  75. package/dist/components/ui.js.map +1 -1
  76. package/dist/components/work.d.ts +5 -1
  77. package/dist/components/work.d.ts.map +1 -1
  78. package/dist/components/work.js +1 -1
  79. package/dist/components/work.js.map +1 -1
  80. package/dist/console.css +263 -17
  81. package/dist/console.d.ts.map +1 -1
  82. package/dist/console.js +197 -43
  83. package/dist/console.js.map +1 -1
  84. package/dist/data.d.ts +19 -2
  85. package/dist/data.d.ts.map +1 -1
  86. package/dist/data.js +27 -1
  87. package/dist/data.js.map +1 -1
  88. package/dist/i18n/en.d.ts +84 -9
  89. package/dist/i18n/en.d.ts.map +1 -1
  90. package/dist/i18n/en.js +84 -13
  91. package/dist/i18n/en.js.map +1 -1
  92. package/dist/i18n/ko.d.ts.map +1 -1
  93. package/dist/i18n/ko.js +84 -13
  94. package/dist/i18n/ko.js.map +1 -1
  95. package/dist/index.d.ts +4 -3
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +4 -3
  98. package/dist/index.js.map +1 -1
  99. package/dist/limits.d.ts +4 -0
  100. package/dist/limits.d.ts.map +1 -1
  101. package/dist/limits.js +4 -0
  102. package/dist/limits.js.map +1 -1
  103. package/dist/router.d.ts +30 -2
  104. package/dist/router.d.ts.map +1 -1
  105. package/dist/router.js +50 -10
  106. package/dist/router.js.map +1 -1
  107. package/dist/routes.d.ts +14 -4
  108. package/dist/routes.d.ts.map +1 -1
  109. package/dist/routes.js +17 -2
  110. package/dist/routes.js.map +1 -1
  111. package/dist/rules.d.ts +28 -0
  112. package/dist/rules.d.ts.map +1 -0
  113. package/dist/rules.js +102 -0
  114. package/dist/rules.js.map +1 -0
  115. package/dist/schemas.d.ts +652 -4
  116. package/dist/schemas.d.ts.map +1 -1
  117. package/dist/schemas.js +96 -6
  118. package/dist/schemas.js.map +1 -1
  119. package/dist/vocabulary.d.ts +21 -1
  120. package/dist/vocabulary.d.ts.map +1 -1
  121. package/dist/vocabulary.js +21 -0
  122. package/dist/vocabulary.js.map +1 -1
  123. package/docs/specs/cli.md +13 -9
  124. package/docs/specs/rest.md +33 -9
  125. package/package.json +1 -1
  126. package/skills/building-a-console/SKILL.md +1 -1
  127. package/skills/deploying-a-console/SKILL.md +5 -5
  128. package/skills/deploying-a-console/assets/secrets.example.json +2 -1
  129. package/skills/deploying-a-console/references/access.md +10 -6
  130. package/skills/deploying-a-console/references/resources.md +10 -7
  131. package/skills/working-the-board/SKILL.md +10 -9
  132. package/skills/working-the-board/references/project-rules.md +36 -0
  133. package/src/agent-name.ts +9 -0
  134. package/src/api.ts +37 -0
  135. package/src/cli/cli.ts +264 -26
  136. package/src/cli/format.ts +74 -10
  137. package/src/cli/help.ts +31 -11
  138. package/src/cli/main.ts +5 -0
  139. package/src/client.ts +47 -1
  140. package/src/components/calendar.tsx +252 -51
  141. package/src/components/connect.tsx +12 -6
  142. package/src/components/decision-list.tsx +2 -1
  143. package/src/components/documents.tsx +7 -3
  144. package/src/components/event-feed.tsx +16 -3
  145. package/src/components/people.tsx +244 -35
  146. package/src/components/projects.tsx +37 -14
  147. package/src/components/rules.tsx +167 -0
  148. package/src/components/runs.tsx +4 -2
  149. package/src/components/skills.tsx +22 -10
  150. package/src/components/task-form.tsx +1 -0
  151. package/src/components/tokens.tsx +2 -14
  152. package/src/components/ui.tsx +25 -2
  153. package/src/components/work.tsx +34 -28
  154. package/src/console.tsx +524 -45
  155. package/src/data.ts +52 -2
  156. package/src/i18n/en.ts +94 -14
  157. package/src/i18n/ko.ts +90 -14
  158. package/src/index.ts +16 -1
  159. package/src/limits.ts +4 -0
  160. package/src/router.ts +67 -12
  161. package/src/routes.ts +23 -3
  162. package/src/rules.ts +109 -0
  163. package/src/schemas.ts +121 -4
  164. package/src/styles/console.css +263 -17
  165. package/src/vocabulary.ts +30 -0
package/dist/schemas.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as z from "zod/mini";
2
+ import { type ProviderKey } from "./vocabulary.js";
2
3
  /** A person of the workspace, as the pages show them. Nothing here is a secret. */
3
4
  export declare const restPersonSchema: z.ZodMiniObject<{
4
5
  id: z.ZodMiniUUID;
@@ -9,8 +10,55 @@ export declare const restPersonSchema: z.ZodMiniObject<{
9
10
  admin: "admin";
10
11
  member: "member";
11
12
  }>;
13
+ status: z.ZodMiniEnum<{
14
+ active: "active";
15
+ deactivated: "deactivated";
16
+ }>;
17
+ source: z.ZodMiniEnum<{
18
+ domain: "domain";
19
+ listed: "listed";
20
+ organization: "organization";
21
+ }>;
22
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
12
23
  }, z.core.$strip>;
13
24
  export type RestPerson = z.infer<typeof restPersonSchema>;
25
+ /** The provider a login belongs to, by its shape: an address is Google's, anything else the git host's. */
26
+ export declare function hostOfLogin(login: string): ProviderKey;
27
+ /** Whether `login` is spelled as the host spells one: a login at the git host, an address at Google. */
28
+ export declare function isLoginAt(host: ProviderKey, login: string): boolean;
29
+ /**
30
+ * A login an administrator let in, which has not signed in yet (ADR-0022): whoever signs in
31
+ * with that account at that host becomes the person.
32
+ */
33
+ export declare const restListingSchema: z.ZodMiniObject<{
34
+ id: z.ZodMiniUUID;
35
+ host: z.ZodMiniEnum<{
36
+ gh: "gh";
37
+ google: "google";
38
+ }>;
39
+ login: z.ZodMiniString<string>;
40
+ createdAt: z.ZodMiniISODateTime;
41
+ }, z.core.$strip>;
42
+ export type RestListing = z.infer<typeof restListingSchema>;
43
+ /** The organization at the git host whose members are in (ADR-0022), and when it was last read whole. */
44
+ export declare const restOrganizationSchema: z.ZodMiniObject<{
45
+ host: z.ZodMiniEnum<{
46
+ gh: "gh";
47
+ google: "google";
48
+ }>;
49
+ name: z.ZodMiniString<string>;
50
+ syncedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
51
+ }, z.core.$strip>;
52
+ export type RestOrganization = z.infer<typeof restOrganizationSchema>;
53
+ /** What `POST /api/v1/listings` is sent: a login at one of the providers the deployment has. */
54
+ export declare const restListingInputSchema: z.ZodMiniObject<{
55
+ host: z.ZodMiniEnum<{
56
+ gh: "gh";
57
+ google: "google";
58
+ }>;
59
+ login: z.ZodMiniString<string>;
60
+ }, z.core.$strip>;
61
+ export type RestListingInput = z.infer<typeof restListingInputSchema>;
14
62
  /** An identity provider people may sign in through, as the pages offer it. */
15
63
  export declare const restProviderSchema: z.ZodMiniObject<{
16
64
  key: z.ZodMiniEnum<{
@@ -34,6 +82,10 @@ export declare const restMeSchema: z.ZodMiniObject<{
34
82
  workspace: z.ZodMiniObject<{
35
83
  name: z.ZodMiniString<string>;
36
84
  tokenDaysAtMost: z.ZodMiniNullable<z.ZodMiniInt>;
85
+ skills: z.ZodMiniObject<{
86
+ source: z.ZodMiniString<string>;
87
+ address: z.ZodMiniNullable<z.ZodMiniString<string>>;
88
+ }, z.core.$strip>;
37
89
  }, z.core.$strip>;
38
90
  person: z.ZodMiniNullable<z.ZodMiniObject<{
39
91
  id: z.ZodMiniUUID;
@@ -44,6 +96,16 @@ export declare const restMeSchema: z.ZodMiniObject<{
44
96
  admin: "admin";
45
97
  member: "member";
46
98
  }>;
99
+ status: z.ZodMiniEnum<{
100
+ active: "active";
101
+ deactivated: "deactivated";
102
+ }>;
103
+ source: z.ZodMiniEnum<{
104
+ domain: "domain";
105
+ listed: "listed";
106
+ organization: "organization";
107
+ }>;
108
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
47
109
  }, z.core.$strip>>;
48
110
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
49
111
  language: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -56,7 +118,10 @@ export declare const restMeSchema: z.ZodMiniObject<{
56
118
  }, z.core.$strip>>;
57
119
  }, z.core.$strip>;
58
120
  export type RestMe = z.infer<typeof restMeSchema>;
59
- /** `GET /api/v1/people`: everyone who has signed in, by login. */
121
+ /**
122
+ * `GET /api/v1/people`: everyone who has signed in, by login, the logins let in that have not,
123
+ * and the organization that says who is in, where the deployment names one.
124
+ */
60
125
  export declare const restPeopleSchema: z.ZodMiniObject<{
61
126
  items: z.ZodMiniArray<z.ZodMiniObject<{
62
127
  id: z.ZodMiniUUID;
@@ -67,15 +132,49 @@ export declare const restPeopleSchema: z.ZodMiniObject<{
67
132
  admin: "admin";
68
133
  member: "member";
69
134
  }>;
135
+ status: z.ZodMiniEnum<{
136
+ active: "active";
137
+ deactivated: "deactivated";
138
+ }>;
139
+ source: z.ZodMiniEnum<{
140
+ domain: "domain";
141
+ listed: "listed";
142
+ organization: "organization";
143
+ }>;
144
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
145
+ }, z.core.$strip>>;
146
+ listed: z.ZodMiniArray<z.ZodMiniObject<{
147
+ id: z.ZodMiniUUID;
148
+ host: z.ZodMiniEnum<{
149
+ gh: "gh";
150
+ google: "google";
151
+ }>;
152
+ login: z.ZodMiniString<string>;
153
+ createdAt: z.ZodMiniISODateTime;
154
+ }, z.core.$strip>>;
155
+ organization: z.ZodMiniNullable<z.ZodMiniObject<{
156
+ host: z.ZodMiniEnum<{
157
+ gh: "gh";
158
+ google: "google";
159
+ }>;
160
+ name: z.ZodMiniString<string>;
161
+ syncedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
70
162
  }, z.core.$strip>>;
71
163
  }, z.core.$strip>;
72
164
  export type RestPeople = z.infer<typeof restPeopleSchema>;
73
- /** What `PATCH /api/v1/people/<id>` is sent, by an administrator: what the person is to be. */
165
+ /**
166
+ * What `PATCH /api/v1/people/<id>` is sent, by an administrator: what the person is to be, and
167
+ * whether they are in; either, or both.
168
+ */
74
169
  export declare const restPersonPatchSchema: z.ZodMiniObject<{
75
- role: z.ZodMiniEnum<{
170
+ role: z.ZodMiniOptional<z.ZodMiniEnum<{
76
171
  admin: "admin";
77
172
  member: "member";
78
- }>;
173
+ }>>;
174
+ status: z.ZodMiniOptional<z.ZodMiniEnum<{
175
+ active: "active";
176
+ deactivated: "deactivated";
177
+ }>>;
79
178
  }, z.core.$strip>;
80
179
  export type RestPersonPatch = z.infer<typeof restPersonPatchSchema>;
81
180
  /** The words under `/projects/` that are the pages' own, which no project may be called. */
@@ -231,6 +330,16 @@ export declare const restMemberSchema: z.ZodMiniObject<{
231
330
  admin: "admin";
232
331
  member: "member";
233
332
  }>;
333
+ status: z.ZodMiniEnum<{
334
+ active: "active";
335
+ deactivated: "deactivated";
336
+ }>;
337
+ source: z.ZodMiniEnum<{
338
+ domain: "domain";
339
+ listed: "listed";
340
+ organization: "organization";
341
+ }>;
342
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
234
343
  }, z.core.$strip>;
235
344
  role: z.ZodMiniEnum<{
236
345
  member: "member";
@@ -251,6 +360,16 @@ export declare const restMembersSchema: z.ZodMiniObject<{
251
360
  admin: "admin";
252
361
  member: "member";
253
362
  }>;
363
+ status: z.ZodMiniEnum<{
364
+ active: "active";
365
+ deactivated: "deactivated";
366
+ }>;
367
+ source: z.ZodMiniEnum<{
368
+ domain: "domain";
369
+ listed: "listed";
370
+ organization: "organization";
371
+ }>;
372
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
254
373
  }, z.core.$strip>;
255
374
  role: z.ZodMiniEnum<{
256
375
  member: "member";
@@ -379,6 +498,16 @@ export declare const restTaskSchema: z.ZodMiniObject<{
379
498
  admin: "admin";
380
499
  member: "member";
381
500
  }>;
501
+ status: z.ZodMiniEnum<{
502
+ active: "active";
503
+ deactivated: "deactivated";
504
+ }>;
505
+ source: z.ZodMiniEnum<{
506
+ domain: "domain";
507
+ listed: "listed";
508
+ organization: "organization";
509
+ }>;
510
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
382
511
  }, z.core.$strip>;
383
512
  assignee: z.ZodMiniNullable<z.ZodMiniObject<{
384
513
  id: z.ZodMiniUUID;
@@ -389,6 +518,16 @@ export declare const restTaskSchema: z.ZodMiniObject<{
389
518
  admin: "admin";
390
519
  member: "member";
391
520
  }>;
521
+ status: z.ZodMiniEnum<{
522
+ active: "active";
523
+ deactivated: "deactivated";
524
+ }>;
525
+ source: z.ZodMiniEnum<{
526
+ domain: "domain";
527
+ listed: "listed";
528
+ organization: "organization";
529
+ }>;
530
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
392
531
  }, z.core.$strip>>;
393
532
  parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
394
533
  category: z.ZodMiniNullable<z.ZodMiniObject<{
@@ -450,6 +589,16 @@ export declare const restTasksSchema: z.ZodMiniObject<{
450
589
  admin: "admin";
451
590
  member: "member";
452
591
  }>;
592
+ status: z.ZodMiniEnum<{
593
+ active: "active";
594
+ deactivated: "deactivated";
595
+ }>;
596
+ source: z.ZodMiniEnum<{
597
+ domain: "domain";
598
+ listed: "listed";
599
+ organization: "organization";
600
+ }>;
601
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
453
602
  }, z.core.$strip>;
454
603
  assignee: z.ZodMiniNullable<z.ZodMiniObject<{
455
604
  id: z.ZodMiniUUID;
@@ -460,6 +609,16 @@ export declare const restTasksSchema: z.ZodMiniObject<{
460
609
  admin: "admin";
461
610
  member: "member";
462
611
  }>;
612
+ status: z.ZodMiniEnum<{
613
+ active: "active";
614
+ deactivated: "deactivated";
615
+ }>;
616
+ source: z.ZodMiniEnum<{
617
+ domain: "domain";
618
+ listed: "listed";
619
+ organization: "organization";
620
+ }>;
621
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
463
622
  }, z.core.$strip>>;
464
623
  parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
465
624
  category: z.ZodMiniNullable<z.ZodMiniObject<{
@@ -587,6 +746,16 @@ export declare const restGoalSchema: z.ZodMiniObject<{
587
746
  admin: "admin";
588
747
  member: "member";
589
748
  }>;
749
+ status: z.ZodMiniEnum<{
750
+ active: "active";
751
+ deactivated: "deactivated";
752
+ }>;
753
+ source: z.ZodMiniEnum<{
754
+ domain: "domain";
755
+ listed: "listed";
756
+ organization: "organization";
757
+ }>;
758
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
590
759
  }, z.core.$strip>;
591
760
  taskCounts: z.ZodMiniObject<{
592
761
  idea: z.ZodMiniInt;
@@ -622,6 +791,16 @@ export declare const restGoalsSchema: z.ZodMiniObject<{
622
791
  admin: "admin";
623
792
  member: "member";
624
793
  }>;
794
+ status: z.ZodMiniEnum<{
795
+ active: "active";
796
+ deactivated: "deactivated";
797
+ }>;
798
+ source: z.ZodMiniEnum<{
799
+ domain: "domain";
800
+ listed: "listed";
801
+ organization: "organization";
802
+ }>;
803
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
625
804
  }, z.core.$strip>;
626
805
  taskCounts: z.ZodMiniObject<{
627
806
  idea: z.ZodMiniInt;
@@ -686,6 +865,16 @@ export declare const restDecisionSchema: z.ZodMiniObject<{
686
865
  admin: "admin";
687
866
  member: "member";
688
867
  }>;
868
+ status: z.ZodMiniEnum<{
869
+ active: "active";
870
+ deactivated: "deactivated";
871
+ }>;
872
+ source: z.ZodMiniEnum<{
873
+ domain: "domain";
874
+ listed: "listed";
875
+ organization: "organization";
876
+ }>;
877
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
689
878
  }, z.core.$strip>;
690
879
  run: z.ZodMiniNullable<z.ZodMiniObject<{
691
880
  id: z.ZodMiniUUID;
@@ -703,6 +892,16 @@ export declare const restDecisionSchema: z.ZodMiniObject<{
703
892
  admin: "admin";
704
893
  member: "member";
705
894
  }>;
895
+ status: z.ZodMiniEnum<{
896
+ active: "active";
897
+ deactivated: "deactivated";
898
+ }>;
899
+ source: z.ZodMiniEnum<{
900
+ domain: "domain";
901
+ listed: "listed";
902
+ organization: "organization";
903
+ }>;
904
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
706
905
  }, z.core.$strip>;
707
906
  at: z.ZodMiniISODateTime;
708
907
  }, z.core.$strip>>;
@@ -732,6 +931,16 @@ export declare const restDecisionsSchema: z.ZodMiniObject<{
732
931
  admin: "admin";
733
932
  member: "member";
734
933
  }>;
934
+ status: z.ZodMiniEnum<{
935
+ active: "active";
936
+ deactivated: "deactivated";
937
+ }>;
938
+ source: z.ZodMiniEnum<{
939
+ domain: "domain";
940
+ listed: "listed";
941
+ organization: "organization";
942
+ }>;
943
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
735
944
  }, z.core.$strip>;
736
945
  run: z.ZodMiniNullable<z.ZodMiniObject<{
737
946
  id: z.ZodMiniUUID;
@@ -749,6 +958,16 @@ export declare const restDecisionsSchema: z.ZodMiniObject<{
749
958
  admin: "admin";
750
959
  member: "member";
751
960
  }>;
961
+ status: z.ZodMiniEnum<{
962
+ active: "active";
963
+ deactivated: "deactivated";
964
+ }>;
965
+ source: z.ZodMiniEnum<{
966
+ domain: "domain";
967
+ listed: "listed";
968
+ organization: "organization";
969
+ }>;
970
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
752
971
  }, z.core.$strip>;
753
972
  at: z.ZodMiniISODateTime;
754
973
  }, z.core.$strip>>;
@@ -817,6 +1036,16 @@ export declare const restWorkSchema: z.ZodMiniObject<{
817
1036
  admin: "admin";
818
1037
  member: "member";
819
1038
  }>;
1039
+ status: z.ZodMiniEnum<{
1040
+ active: "active";
1041
+ deactivated: "deactivated";
1042
+ }>;
1043
+ source: z.ZodMiniEnum<{
1044
+ domain: "domain";
1045
+ listed: "listed";
1046
+ organization: "organization";
1047
+ }>;
1048
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
820
1049
  }, z.core.$strip>;
821
1050
  assignee: z.ZodMiniNullable<z.ZodMiniObject<{
822
1051
  id: z.ZodMiniUUID;
@@ -827,6 +1056,16 @@ export declare const restWorkSchema: z.ZodMiniObject<{
827
1056
  admin: "admin";
828
1057
  member: "member";
829
1058
  }>;
1059
+ status: z.ZodMiniEnum<{
1060
+ active: "active";
1061
+ deactivated: "deactivated";
1062
+ }>;
1063
+ source: z.ZodMiniEnum<{
1064
+ domain: "domain";
1065
+ listed: "listed";
1066
+ organization: "organization";
1067
+ }>;
1068
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
830
1069
  }, z.core.$strip>>;
831
1070
  parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
832
1071
  category: z.ZodMiniNullable<z.ZodMiniObject<{
@@ -902,6 +1141,16 @@ export declare const restWorkSchema: z.ZodMiniObject<{
902
1141
  admin: "admin";
903
1142
  member: "member";
904
1143
  }>;
1144
+ status: z.ZodMiniEnum<{
1145
+ active: "active";
1146
+ deactivated: "deactivated";
1147
+ }>;
1148
+ source: z.ZodMiniEnum<{
1149
+ domain: "domain";
1150
+ listed: "listed";
1151
+ organization: "organization";
1152
+ }>;
1153
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
905
1154
  }, z.core.$strip>;
906
1155
  run: z.ZodMiniNullable<z.ZodMiniObject<{
907
1156
  id: z.ZodMiniUUID;
@@ -919,6 +1168,16 @@ export declare const restWorkSchema: z.ZodMiniObject<{
919
1168
  admin: "admin";
920
1169
  member: "member";
921
1170
  }>;
1171
+ status: z.ZodMiniEnum<{
1172
+ active: "active";
1173
+ deactivated: "deactivated";
1174
+ }>;
1175
+ source: z.ZodMiniEnum<{
1176
+ domain: "domain";
1177
+ listed: "listed";
1178
+ organization: "organization";
1179
+ }>;
1180
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
922
1181
  }, z.core.$strip>;
923
1182
  at: z.ZodMiniISODateTime;
924
1183
  }, z.core.$strip>>;
@@ -929,6 +1188,127 @@ export declare const restWorkSchema: z.ZodMiniObject<{
929
1188
  }, z.core.$strip>>;
930
1189
  }, z.core.$strip>;
931
1190
  export type RestWork = z.infer<typeof restWorkSchema>;
1191
+ /**
1192
+ * What `GET /api/v1/people/<id>/work` answers: another person's open tasks, within the projects
1193
+ * the asker may see, for whoever oversees them. No decisions, which wait for anyone.
1194
+ */
1195
+ export declare const restPersonWorkSchema: z.ZodMiniObject<{
1196
+ tasks: z.ZodMiniArray<z.ZodMiniObject<{
1197
+ project: z.ZodMiniObject<{
1198
+ key: z.ZodMiniString<string>;
1199
+ name: z.ZodMiniString<string>;
1200
+ color: z.ZodMiniNullable<z.ZodMiniEnum<{
1201
+ blue: "blue";
1202
+ gray: "gray";
1203
+ green: "green";
1204
+ orange: "orange";
1205
+ pink: "pink";
1206
+ purple: "purple";
1207
+ teal: "teal";
1208
+ yellow: "yellow";
1209
+ }>>;
1210
+ symbol: z.ZodMiniNullable<z.ZodMiniString<string>>;
1211
+ icon: z.ZodMiniNullable<z.ZodMiniObject<{
1212
+ sha256: z.ZodMiniString<string>;
1213
+ contentType: z.ZodMiniEnum<{
1214
+ "image/gif": "image/gif";
1215
+ "image/jpeg": "image/jpeg";
1216
+ "image/png": "image/png";
1217
+ "image/webp": "image/webp";
1218
+ }>;
1219
+ }, z.core.$strip>>;
1220
+ }, z.core.$strip>;
1221
+ task: z.ZodMiniObject<{
1222
+ id: z.ZodMiniUUID;
1223
+ number: z.ZodMiniInt;
1224
+ title: z.ZodMiniString<string>;
1225
+ body: z.ZodMiniString<string>;
1226
+ state: z.ZodMiniEnum<{
1227
+ done: "done";
1228
+ dropped: "dropped";
1229
+ idea: "idea";
1230
+ in_progress: "in_progress";
1231
+ in_review: "in_review";
1232
+ ready: "ready";
1233
+ }>;
1234
+ priority: z.ZodMiniEnum<{
1235
+ high: "high";
1236
+ low: "low";
1237
+ normal: "normal";
1238
+ urgent: "urgent";
1239
+ }>;
1240
+ owner: z.ZodMiniObject<{
1241
+ id: z.ZodMiniUUID;
1242
+ login: z.ZodMiniString<string>;
1243
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
1244
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
1245
+ role: z.ZodMiniEnum<{
1246
+ admin: "admin";
1247
+ member: "member";
1248
+ }>;
1249
+ status: z.ZodMiniEnum<{
1250
+ active: "active";
1251
+ deactivated: "deactivated";
1252
+ }>;
1253
+ source: z.ZodMiniEnum<{
1254
+ domain: "domain";
1255
+ listed: "listed";
1256
+ organization: "organization";
1257
+ }>;
1258
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1259
+ }, z.core.$strip>;
1260
+ assignee: z.ZodMiniNullable<z.ZodMiniObject<{
1261
+ id: z.ZodMiniUUID;
1262
+ login: z.ZodMiniString<string>;
1263
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
1264
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
1265
+ role: z.ZodMiniEnum<{
1266
+ admin: "admin";
1267
+ member: "member";
1268
+ }>;
1269
+ status: z.ZodMiniEnum<{
1270
+ active: "active";
1271
+ deactivated: "deactivated";
1272
+ }>;
1273
+ source: z.ZodMiniEnum<{
1274
+ domain: "domain";
1275
+ listed: "listed";
1276
+ organization: "organization";
1277
+ }>;
1278
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1279
+ }, z.core.$strip>>;
1280
+ parentId: z.ZodMiniNullable<z.ZodMiniUUID>;
1281
+ category: z.ZodMiniNullable<z.ZodMiniObject<{
1282
+ key: z.ZodMiniString<string>;
1283
+ name: z.ZodMiniString<string>;
1284
+ color: z.ZodMiniEnum<{
1285
+ blue: "blue";
1286
+ gray: "gray";
1287
+ green: "green";
1288
+ orange: "orange";
1289
+ pink: "pink";
1290
+ purple: "purple";
1291
+ teal: "teal";
1292
+ yellow: "yellow";
1293
+ }>;
1294
+ }, z.core.$strip>>;
1295
+ goalId: z.ZodMiniNullable<z.ZodMiniUUID>;
1296
+ startsOn: z.ZodMiniNullable<z.ZodMiniISODate>;
1297
+ dueOn: z.ZodMiniNullable<z.ZodMiniISODate>;
1298
+ startedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1299
+ doneAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1300
+ links: z.ZodMiniArray<z.ZodMiniObject<{
1301
+ url: z.ZodMiniString<string>;
1302
+ label: z.ZodMiniNullable<z.ZodMiniString<string>>;
1303
+ }, z.core.$strip>>;
1304
+ openDecisions: z.ZodMiniInt;
1305
+ openRuns: z.ZodMiniInt;
1306
+ createdAt: z.ZodMiniISODateTime;
1307
+ updatedAt: z.ZodMiniISODateTime;
1308
+ }, z.core.$strip>;
1309
+ }, z.core.$strip>>;
1310
+ }, z.core.$strip>;
1311
+ export type RestPersonWork = z.infer<typeof restPersonWorkSchema>;
932
1312
  /** What `POST /api/v1/projects/<key>/decisions` is sent: the question, its context, and the options. */
933
1313
  export declare const restDecisionInputSchema: z.ZodMiniObject<{
934
1314
  question: z.ZodMiniString<string>;
@@ -1011,8 +1391,12 @@ export declare const restEventSchema: z.ZodMiniObject<{
1011
1391
  "document.written": "document.written";
1012
1392
  "goal.created": "goal.created";
1013
1393
  "goal.updated": "goal.updated";
1394
+ "person.deactivated": "person.deactivated";
1014
1395
  "person.joined": "person.joined";
1396
+ "person.listed": "person.listed";
1397
+ "person.reactivated": "person.reactivated";
1015
1398
  "person.role_changed": "person.role_changed";
1399
+ "person.unlisted": "person.unlisted";
1016
1400
  "project.created": "project.created";
1017
1401
  "project.member_added": "project.member_added";
1018
1402
  "project.member_changed": "project.member_changed";
@@ -1036,6 +1420,16 @@ export declare const restEventSchema: z.ZodMiniObject<{
1036
1420
  admin: "admin";
1037
1421
  member: "member";
1038
1422
  }>;
1423
+ status: z.ZodMiniEnum<{
1424
+ active: "active";
1425
+ deactivated: "deactivated";
1426
+ }>;
1427
+ source: z.ZodMiniEnum<{
1428
+ domain: "domain";
1429
+ listed: "listed";
1430
+ organization: "organization";
1431
+ }>;
1432
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1039
1433
  }, z.core.$strip>>;
1040
1434
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1041
1435
  projectId: z.ZodMiniNullable<z.ZodMiniUUID>;
@@ -1133,6 +1527,16 @@ export declare const restRunSchema: z.ZodMiniObject<{
1133
1527
  admin: "admin";
1134
1528
  member: "member";
1135
1529
  }>;
1530
+ status: z.ZodMiniEnum<{
1531
+ active: "active";
1532
+ deactivated: "deactivated";
1533
+ }>;
1534
+ source: z.ZodMiniEnum<{
1535
+ domain: "domain";
1536
+ listed: "listed";
1537
+ organization: "organization";
1538
+ }>;
1539
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1136
1540
  }, z.core.$strip>;
1137
1541
  agent: z.ZodMiniString<string>;
1138
1542
  status: z.ZodMiniEnum<{
@@ -1185,6 +1589,16 @@ export declare const restRunsSchema: z.ZodMiniObject<{
1185
1589
  admin: "admin";
1186
1590
  member: "member";
1187
1591
  }>;
1592
+ status: z.ZodMiniEnum<{
1593
+ active: "active";
1594
+ deactivated: "deactivated";
1595
+ }>;
1596
+ source: z.ZodMiniEnum<{
1597
+ domain: "domain";
1598
+ listed: "listed";
1599
+ organization: "organization";
1600
+ }>;
1601
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1188
1602
  }, z.core.$strip>;
1189
1603
  agent: z.ZodMiniString<string>;
1190
1604
  status: z.ZodMiniEnum<{
@@ -1241,8 +1655,12 @@ export declare const restEventsSchema: z.ZodMiniObject<{
1241
1655
  "document.written": "document.written";
1242
1656
  "goal.created": "goal.created";
1243
1657
  "goal.updated": "goal.updated";
1658
+ "person.deactivated": "person.deactivated";
1244
1659
  "person.joined": "person.joined";
1660
+ "person.listed": "person.listed";
1661
+ "person.reactivated": "person.reactivated";
1245
1662
  "person.role_changed": "person.role_changed";
1663
+ "person.unlisted": "person.unlisted";
1246
1664
  "project.created": "project.created";
1247
1665
  "project.member_added": "project.member_added";
1248
1666
  "project.member_changed": "project.member_changed";
@@ -1266,6 +1684,16 @@ export declare const restEventsSchema: z.ZodMiniObject<{
1266
1684
  admin: "admin";
1267
1685
  member: "member";
1268
1686
  }>;
1687
+ status: z.ZodMiniEnum<{
1688
+ active: "active";
1689
+ deactivated: "deactivated";
1690
+ }>;
1691
+ source: z.ZodMiniEnum<{
1692
+ domain: "domain";
1693
+ listed: "listed";
1694
+ organization: "organization";
1695
+ }>;
1696
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1269
1697
  }, z.core.$strip>>;
1270
1698
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1271
1699
  projectId: z.ZodMiniNullable<z.ZodMiniUUID>;
@@ -1462,6 +1890,16 @@ export declare const restDocumentSummarySchema: z.ZodMiniObject<{
1462
1890
  admin: "admin";
1463
1891
  member: "member";
1464
1892
  }>;
1893
+ status: z.ZodMiniEnum<{
1894
+ active: "active";
1895
+ deactivated: "deactivated";
1896
+ }>;
1897
+ source: z.ZodMiniEnum<{
1898
+ domain: "domain";
1899
+ listed: "listed";
1900
+ organization: "organization";
1901
+ }>;
1902
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1465
1903
  }, z.core.$strip>;
1466
1904
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1467
1905
  archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
@@ -1487,6 +1925,16 @@ export declare const restDocumentsSchema: z.ZodMiniObject<{
1487
1925
  admin: "admin";
1488
1926
  member: "member";
1489
1927
  }>;
1928
+ status: z.ZodMiniEnum<{
1929
+ active: "active";
1930
+ deactivated: "deactivated";
1931
+ }>;
1932
+ source: z.ZodMiniEnum<{
1933
+ domain: "domain";
1934
+ listed: "listed";
1935
+ organization: "organization";
1936
+ }>;
1937
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1490
1938
  }, z.core.$strip>;
1491
1939
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1492
1940
  archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
@@ -1533,6 +1981,16 @@ export declare const restDocumentFileSchema: z.ZodMiniObject<{
1533
1981
  admin: "admin";
1534
1982
  member: "member";
1535
1983
  }>;
1984
+ status: z.ZodMiniEnum<{
1985
+ active: "active";
1986
+ deactivated: "deactivated";
1987
+ }>;
1988
+ source: z.ZodMiniEnum<{
1989
+ domain: "domain";
1990
+ listed: "listed";
1991
+ organization: "organization";
1992
+ }>;
1993
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1536
1994
  }, z.core.$strip>;
1537
1995
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1538
1996
  createdAt: z.ZodMiniISODateTime;
@@ -1553,6 +2011,16 @@ export declare const restDocumentSchema: z.ZodMiniObject<{
1553
2011
  admin: "admin";
1554
2012
  member: "member";
1555
2013
  }>;
2014
+ status: z.ZodMiniEnum<{
2015
+ active: "active";
2016
+ deactivated: "deactivated";
2017
+ }>;
2018
+ source: z.ZodMiniEnum<{
2019
+ domain: "domain";
2020
+ listed: "listed";
2021
+ organization: "organization";
2022
+ }>;
2023
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1556
2024
  }, z.core.$strip>;
1557
2025
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1558
2026
  archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
@@ -1568,6 +2036,16 @@ export declare const restDocumentSchema: z.ZodMiniObject<{
1568
2036
  admin: "admin";
1569
2037
  member: "member";
1570
2038
  }>;
2039
+ status: z.ZodMiniEnum<{
2040
+ active: "active";
2041
+ deactivated: "deactivated";
2042
+ }>;
2043
+ source: z.ZodMiniEnum<{
2044
+ domain: "domain";
2045
+ listed: "listed";
2046
+ organization: "organization";
2047
+ }>;
2048
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1571
2049
  }, z.core.$strip>;
1572
2050
  links: z.ZodMiniArray<z.ZodMiniObject<{
1573
2051
  path: z.ZodMiniString<string>;
@@ -1602,6 +2080,16 @@ export declare const restDocumentSchema: z.ZodMiniObject<{
1602
2080
  admin: "admin";
1603
2081
  member: "member";
1604
2082
  }>;
2083
+ status: z.ZodMiniEnum<{
2084
+ active: "active";
2085
+ deactivated: "deactivated";
2086
+ }>;
2087
+ source: z.ZodMiniEnum<{
2088
+ domain: "domain";
2089
+ listed: "listed";
2090
+ organization: "organization";
2091
+ }>;
2092
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1605
2093
  }, z.core.$strip>;
1606
2094
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1607
2095
  createdAt: z.ZodMiniISODateTime;
@@ -1615,6 +2103,136 @@ export declare const restDocumentInputSchema: z.ZodMiniObject<{
1615
2103
  baseVersion: z.ZodMiniOptional<z.ZodMiniInt>;
1616
2104
  }, z.core.$strip>;
1617
2105
  export type RestDocumentInput = z.infer<typeof restDocumentInputSchema>;
2106
+ /**
2107
+ * `GET /api/v1/rules`, and each half of a project's (ADR-0023): the rules that hold, and where
2108
+ * they come from. `reference`: the console's own, since the organization wrote none;
2109
+ * `written`: the page written, with its facts; `none`: a project that adds none.
2110
+ */
2111
+ export declare const restRulesSchema: z.ZodMiniObject<{
2112
+ source: z.ZodMiniEnum<{
2113
+ none: "none";
2114
+ reference: "reference";
2115
+ written: "written";
2116
+ }>;
2117
+ body: z.ZodMiniNullable<z.ZodMiniString<string>>;
2118
+ page: z.ZodMiniNullable<z.ZodMiniObject<{
2119
+ id: z.ZodMiniUUID;
2120
+ path: z.ZodMiniString<string>;
2121
+ title: z.ZodMiniString<string>;
2122
+ version: z.ZodMiniInt;
2123
+ updatedBy: z.ZodMiniObject<{
2124
+ id: z.ZodMiniUUID;
2125
+ login: z.ZodMiniString<string>;
2126
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2127
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
2128
+ role: z.ZodMiniEnum<{
2129
+ admin: "admin";
2130
+ member: "member";
2131
+ }>;
2132
+ status: z.ZodMiniEnum<{
2133
+ active: "active";
2134
+ deactivated: "deactivated";
2135
+ }>;
2136
+ source: z.ZodMiniEnum<{
2137
+ domain: "domain";
2138
+ listed: "listed";
2139
+ organization: "organization";
2140
+ }>;
2141
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
2142
+ }, z.core.$strip>;
2143
+ agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
2144
+ archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
2145
+ createdAt: z.ZodMiniISODateTime;
2146
+ updatedAt: z.ZodMiniISODateTime;
2147
+ }, z.core.$strip>>;
2148
+ }, z.core.$strip>;
2149
+ export type RestRules = z.infer<typeof restRulesSchema>;
2150
+ /** `GET /api/v1/projects/<key>/rules`: the workspace's rules, and what the project adds to them. */
2151
+ export declare const restProjectRulesSchema: z.ZodMiniObject<{
2152
+ workspace: z.ZodMiniObject<{
2153
+ source: z.ZodMiniEnum<{
2154
+ none: "none";
2155
+ reference: "reference";
2156
+ written: "written";
2157
+ }>;
2158
+ body: z.ZodMiniNullable<z.ZodMiniString<string>>;
2159
+ page: z.ZodMiniNullable<z.ZodMiniObject<{
2160
+ id: z.ZodMiniUUID;
2161
+ path: z.ZodMiniString<string>;
2162
+ title: z.ZodMiniString<string>;
2163
+ version: z.ZodMiniInt;
2164
+ updatedBy: z.ZodMiniObject<{
2165
+ id: z.ZodMiniUUID;
2166
+ login: z.ZodMiniString<string>;
2167
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2168
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
2169
+ role: z.ZodMiniEnum<{
2170
+ admin: "admin";
2171
+ member: "member";
2172
+ }>;
2173
+ status: z.ZodMiniEnum<{
2174
+ active: "active";
2175
+ deactivated: "deactivated";
2176
+ }>;
2177
+ source: z.ZodMiniEnum<{
2178
+ domain: "domain";
2179
+ listed: "listed";
2180
+ organization: "organization";
2181
+ }>;
2182
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
2183
+ }, z.core.$strip>;
2184
+ agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
2185
+ archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
2186
+ createdAt: z.ZodMiniISODateTime;
2187
+ updatedAt: z.ZodMiniISODateTime;
2188
+ }, z.core.$strip>>;
2189
+ }, z.core.$strip>;
2190
+ project: z.ZodMiniObject<{
2191
+ source: z.ZodMiniEnum<{
2192
+ none: "none";
2193
+ reference: "reference";
2194
+ written: "written";
2195
+ }>;
2196
+ body: z.ZodMiniNullable<z.ZodMiniString<string>>;
2197
+ page: z.ZodMiniNullable<z.ZodMiniObject<{
2198
+ id: z.ZodMiniUUID;
2199
+ path: z.ZodMiniString<string>;
2200
+ title: z.ZodMiniString<string>;
2201
+ version: z.ZodMiniInt;
2202
+ updatedBy: z.ZodMiniObject<{
2203
+ id: z.ZodMiniUUID;
2204
+ login: z.ZodMiniString<string>;
2205
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2206
+ avatar: z.ZodMiniNullable<z.ZodMiniString<string>>;
2207
+ role: z.ZodMiniEnum<{
2208
+ admin: "admin";
2209
+ member: "member";
2210
+ }>;
2211
+ status: z.ZodMiniEnum<{
2212
+ active: "active";
2213
+ deactivated: "deactivated";
2214
+ }>;
2215
+ source: z.ZodMiniEnum<{
2216
+ domain: "domain";
2217
+ listed: "listed";
2218
+ organization: "organization";
2219
+ }>;
2220
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
2221
+ }, z.core.$strip>;
2222
+ agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
2223
+ archivedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
2224
+ createdAt: z.ZodMiniISODateTime;
2225
+ updatedAt: z.ZodMiniISODateTime;
2226
+ }, z.core.$strip>>;
2227
+ }, z.core.$strip>;
2228
+ }, z.core.$strip>;
2229
+ export type RestProjectRules = z.infer<typeof restProjectRulesSchema>;
2230
+ /** What `PUT /api/v1/rules` is sent: the rules as they are to be. */
2231
+ export declare const restRulesInputSchema: z.ZodMiniObject<{
2232
+ body: z.ZodMiniString<string>;
2233
+ baseVersion: z.ZodMiniOptional<z.ZodMiniInt>;
2234
+ }, z.core.$strip>;
2235
+ export type RestRulesInput = z.infer<typeof restRulesInputSchema>;
1618
2236
  /** One version of a document, as the list of them says it: who wrote it, through which agent, when. */
1619
2237
  export declare const restVersionSummarySchema: z.ZodMiniObject<{
1620
2238
  number: z.ZodMiniInt;
@@ -1628,6 +2246,16 @@ export declare const restVersionSummarySchema: z.ZodMiniObject<{
1628
2246
  admin: "admin";
1629
2247
  member: "member";
1630
2248
  }>;
2249
+ status: z.ZodMiniEnum<{
2250
+ active: "active";
2251
+ deactivated: "deactivated";
2252
+ }>;
2253
+ source: z.ZodMiniEnum<{
2254
+ domain: "domain";
2255
+ listed: "listed";
2256
+ organization: "organization";
2257
+ }>;
2258
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1631
2259
  }, z.core.$strip>;
1632
2260
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1633
2261
  createdAt: z.ZodMiniISODateTime;
@@ -1647,6 +2275,16 @@ export declare const restVersionsSchema: z.ZodMiniObject<{
1647
2275
  admin: "admin";
1648
2276
  member: "member";
1649
2277
  }>;
2278
+ status: z.ZodMiniEnum<{
2279
+ active: "active";
2280
+ deactivated: "deactivated";
2281
+ }>;
2282
+ source: z.ZodMiniEnum<{
2283
+ domain: "domain";
2284
+ listed: "listed";
2285
+ organization: "organization";
2286
+ }>;
2287
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1650
2288
  }, z.core.$strip>;
1651
2289
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1652
2290
  createdAt: z.ZodMiniISODateTime;
@@ -1666,6 +2304,16 @@ export declare const restVersionSchema: z.ZodMiniObject<{
1666
2304
  admin: "admin";
1667
2305
  member: "member";
1668
2306
  }>;
2307
+ status: z.ZodMiniEnum<{
2308
+ active: "active";
2309
+ deactivated: "deactivated";
2310
+ }>;
2311
+ source: z.ZodMiniEnum<{
2312
+ domain: "domain";
2313
+ listed: "listed";
2314
+ organization: "organization";
2315
+ }>;
2316
+ deactivatedAt: z.ZodMiniNullable<z.ZodMiniISODateTime>;
1669
2317
  }, z.core.$strip>;
1670
2318
  agent: z.ZodMiniNullable<z.ZodMiniString<string>>;
1671
2319
  createdAt: z.ZodMiniISODateTime;