@skillcdn/console 0.1.24 → 0.3.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.
Files changed (156) hide show
  1. package/README.md +8 -7
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +2 -2
  5. package/dist/api.js.map +1 -1
  6. package/dist/cli/cli.d.ts +1 -1
  7. package/dist/cli/cli.d.ts.map +1 -1
  8. package/dist/cli/cli.js +248 -92
  9. package/dist/cli/cli.js.map +1 -1
  10. package/dist/cli/credentials.d.ts +5 -0
  11. package/dist/cli/credentials.d.ts.map +1 -1
  12. package/dist/cli/credentials.js +2 -0
  13. package/dist/cli/credentials.js.map +1 -1
  14. package/dist/cli/directory.d.ts +7 -0
  15. package/dist/cli/directory.d.ts.map +1 -1
  16. package/dist/cli/directory.js +7 -0
  17. package/dist/cli/directory.js.map +1 -1
  18. package/dist/cli/format.d.ts +13 -28
  19. package/dist/cli/format.d.ts.map +1 -1
  20. package/dist/cli/format.js +74 -274
  21. package/dist/cli/format.js.map +1 -1
  22. package/dist/cli/help.d.ts.map +1 -1
  23. package/dist/cli/help.js +36 -19
  24. package/dist/cli/help.js.map +1 -1
  25. package/dist/cli/pack.d.ts +46 -0
  26. package/dist/cli/pack.d.ts.map +1 -0
  27. package/dist/cli/pack.js +250 -0
  28. package/dist/cli/pack.js.map +1 -0
  29. package/dist/client.d.ts +26 -1
  30. package/dist/client.d.ts.map +1 -1
  31. package/dist/client.js +14 -1
  32. package/dist/client.js.map +1 -1
  33. package/dist/compat.d.ts +1 -1
  34. package/dist/compat.js +1 -1
  35. package/dist/components/calendar.d.ts +5 -1
  36. package/dist/components/calendar.d.ts.map +1 -1
  37. package/dist/components/calendar.js +3 -3
  38. package/dist/components/calendar.js.map +1 -1
  39. package/dist/components/decision-list.d.ts +13 -1
  40. package/dist/components/decision-list.d.ts.map +1 -1
  41. package/dist/components/decision-list.js +74 -29
  42. package/dist/components/decision-list.js.map +1 -1
  43. package/dist/components/event-feed.d.ts.map +1 -1
  44. package/dist/components/event-feed.js +2 -0
  45. package/dist/components/event-feed.js.map +1 -1
  46. package/dist/components/pack-connect.d.ts +23 -0
  47. package/dist/components/pack-connect.d.ts.map +1 -0
  48. package/dist/components/pack-connect.js +86 -0
  49. package/dist/components/pack-connect.js.map +1 -0
  50. package/dist/components/pack-token.d.ts +27 -0
  51. package/dist/components/pack-token.d.ts.map +1 -0
  52. package/dist/components/pack-token.js +11 -0
  53. package/dist/components/pack-token.js.map +1 -0
  54. package/dist/components/paged.d.ts +24 -0
  55. package/dist/components/paged.d.ts.map +1 -1
  56. package/dist/components/paged.js +40 -4
  57. package/dist/components/paged.js.map +1 -1
  58. package/dist/components/projects.d.ts +13 -0
  59. package/dist/components/projects.d.ts.map +1 -1
  60. package/dist/components/projects.js +37 -5
  61. package/dist/components/projects.js.map +1 -1
  62. package/dist/components/skills.d.ts.map +1 -1
  63. package/dist/components/skills.js +8 -4
  64. package/dist/components/skills.js.map +1 -1
  65. package/dist/components/ui.d.ts +2 -0
  66. package/dist/components/ui.d.ts.map +1 -1
  67. package/dist/components/ui.js +7 -2
  68. package/dist/components/ui.js.map +1 -1
  69. package/dist/components/work.d.ts +3 -1
  70. package/dist/components/work.d.ts.map +1 -1
  71. package/dist/components/work.js +1 -1
  72. package/dist/components/work.js.map +1 -1
  73. package/dist/components/workspace.d.ts +46 -0
  74. package/dist/components/workspace.d.ts.map +1 -0
  75. package/dist/components/workspace.js +124 -0
  76. package/dist/components/workspace.js.map +1 -0
  77. package/dist/console.css +268 -5
  78. package/dist/console.d.ts.map +1 -1
  79. package/dist/console.js +62 -23
  80. package/dist/console.js.map +1 -1
  81. package/dist/data.d.ts +16 -1
  82. package/dist/data.d.ts.map +1 -1
  83. package/dist/data.js +64 -2
  84. package/dist/data.js.map +1 -1
  85. package/dist/dates.d.ts +12 -2
  86. package/dist/dates.d.ts.map +1 -1
  87. package/dist/dates.js +20 -2
  88. package/dist/dates.js.map +1 -1
  89. package/dist/i18n/en.d.ts +66 -0
  90. package/dist/i18n/en.d.ts.map +1 -1
  91. package/dist/i18n/en.js +80 -8
  92. package/dist/i18n/en.js.map +1 -1
  93. package/dist/i18n/ko.d.ts.map +1 -1
  94. package/dist/i18n/ko.js +75 -7
  95. package/dist/i18n/ko.js.map +1 -1
  96. package/dist/index.d.ts +5 -2
  97. package/dist/index.d.ts.map +1 -1
  98. package/dist/index.js +5 -2
  99. package/dist/index.js.map +1 -1
  100. package/dist/router.d.ts +10 -5
  101. package/dist/router.d.ts.map +1 -1
  102. package/dist/router.js +24 -9
  103. package/dist/router.js.map +1 -1
  104. package/dist/routes.d.ts +4 -0
  105. package/dist/routes.d.ts.map +1 -1
  106. package/dist/routes.js +4 -0
  107. package/dist/routes.js.map +1 -1
  108. package/dist/schemas.d.ts +500 -158
  109. package/dist/schemas.d.ts.map +1 -1
  110. package/dist/schemas.js +169 -165
  111. package/dist/schemas.js.map +1 -1
  112. package/dist/vocabulary.d.ts +19 -1
  113. package/dist/vocabulary.d.ts.map +1 -1
  114. package/dist/vocabulary.js +16 -0
  115. package/dist/vocabulary.js.map +1 -1
  116. package/docs/specs/cli.md +19 -14
  117. package/docs/specs/rest.md +34 -19
  118. package/package.json +2 -1
  119. package/skills/building-a-console/SKILL.md +5 -5
  120. package/skills/building-a-console/references/the-look-from-a-website.md +39 -0
  121. package/skills/deploying-a-console/SKILL.md +9 -8
  122. package/skills/working-the-board/SKILL.md +5 -5
  123. package/skills/working-the-board/references/setting-up.md +1 -1
  124. package/skills/working-the-board/references/terms.md +2 -0
  125. package/skills/working-the-board/references/the-sentence.md +1 -1
  126. package/src/api.ts +18 -7
  127. package/src/cli/cli.ts +345 -109
  128. package/src/cli/credentials.ts +7 -0
  129. package/src/cli/directory.ts +9 -0
  130. package/src/cli/format.ts +82 -341
  131. package/src/cli/help.ts +43 -19
  132. package/src/cli/pack.ts +356 -0
  133. package/src/client.ts +84 -0
  134. package/src/compat.ts +1 -1
  135. package/src/components/calendar.tsx +8 -2
  136. package/src/components/decision-list.tsx +227 -94
  137. package/src/components/event-feed.tsx +2 -0
  138. package/src/components/pack-connect.tsx +179 -0
  139. package/src/components/pack-token.tsx +74 -0
  140. package/src/components/paged.tsx +72 -3
  141. package/src/components/projects.tsx +108 -9
  142. package/src/components/skills.tsx +51 -33
  143. package/src/components/ui.tsx +16 -3
  144. package/src/components/work.tsx +4 -1
  145. package/src/components/workspace.tsx +298 -0
  146. package/src/console.tsx +176 -29
  147. package/src/data.ts +89 -2
  148. package/src/dates.ts +23 -2
  149. package/src/i18n/en.ts +94 -8
  150. package/src/i18n/ko.ts +84 -7
  151. package/src/index.ts +25 -1
  152. package/src/router.ts +37 -14
  153. package/src/routes.ts +4 -0
  154. package/src/schemas.ts +202 -189
  155. package/src/styles/console.css +268 -5
  156. package/src/vocabulary.ts +25 -0
package/dist/schemas.d.ts CHANGED
@@ -68,11 +68,57 @@ export declare const restProviderSchema: z.ZodMiniObject<{
68
68
  label: z.ZodMiniString<string>;
69
69
  }, z.core.$strip>;
70
70
  export type RestProvider = z.infer<typeof restProviderSchema>;
71
+ /**
72
+ * A time zone's name as the IANA database spells one (`Asia/Seoul`, `UTC`): its shape here; the
73
+ * server knows which names are zones.
74
+ */
75
+ export declare const timeZoneName: z.ZodMiniString<string>;
71
76
  /** What `PATCH /api/v1/me` is sent: the language the person chose, or `null` to choose none. */
72
77
  export declare const restMePatchSchema: z.ZodMiniObject<{
73
78
  language: z.ZodMiniNullable<z.ZodMiniString<string>>;
74
79
  }, z.core.$strip>;
75
80
  export type RestMePatch = z.infer<typeof restMePatchSchema>;
81
+ /**
82
+ * The workspace as `GET /api/v1/me` describes it, and as `PATCH /api/v1/workspace` answers: what
83
+ * the board is called, what the deployment's configuration says of it, and the settings an
84
+ * administrator keeps on the Settings page (ADR-0035).
85
+ */
86
+ export declare const restWorkspaceSchema: z.ZodMiniObject<{
87
+ name: z.ZodMiniString<string>;
88
+ tokenDaysAtMost: z.ZodMiniNullable<z.ZodMiniInt>;
89
+ skills: z.ZodMiniObject<{
90
+ source: z.ZodMiniString<string>;
91
+ address: z.ZodMiniNullable<z.ZodMiniString<string>>;
92
+ packToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
93
+ setAt: z.ZodMiniISODateTime;
94
+ }, z.core.$strip>>>;
95
+ }, z.core.$strip>;
96
+ peopleVisibility: z.ZodMiniOptional<z.ZodMiniEnum<{
97
+ everyone: "everyone";
98
+ shared_projects: "shared_projects";
99
+ }>>;
100
+ weekStart: z.ZodMiniOptional<z.ZodMiniEnum<{
101
+ auto: "auto";
102
+ monday: "monday";
103
+ sunday: "sunday";
104
+ }>>;
105
+ timeZone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
106
+ }, z.core.$strip>;
107
+ export type RestWorkspace = z.infer<typeof restWorkspaceSchema>;
108
+ /** What `PATCH /api/v1/workspace` is sent, by an administrator: the settings to change, at least one. */
109
+ export declare const restWorkspacePatchSchema: z.ZodMiniObject<{
110
+ peopleVisibility: z.ZodMiniOptional<z.ZodMiniEnum<{
111
+ everyone: "everyone";
112
+ shared_projects: "shared_projects";
113
+ }>>;
114
+ weekStart: z.ZodMiniOptional<z.ZodMiniEnum<{
115
+ auto: "auto";
116
+ monday: "monday";
117
+ sunday: "sunday";
118
+ }>>;
119
+ timeZone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
120
+ }, z.core.$strip>;
121
+ export type RestWorkspacePatch = z.infer<typeof restWorkspacePatchSchema>;
76
122
  /**
77
123
  * `GET /api/v1/me`: the workspace, who the session cookie says is signed in (or `null`), the
78
124
  * language they chose (or `null`), and the identity providers people sign in through, none
@@ -85,7 +131,20 @@ export declare const restMeSchema: z.ZodMiniObject<{
85
131
  skills: z.ZodMiniObject<{
86
132
  source: z.ZodMiniString<string>;
87
133
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
134
+ packToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
135
+ setAt: z.ZodMiniISODateTime;
136
+ }, z.core.$strip>>>;
88
137
  }, z.core.$strip>;
138
+ peopleVisibility: z.ZodMiniOptional<z.ZodMiniEnum<{
139
+ everyone: "everyone";
140
+ shared_projects: "shared_projects";
141
+ }>>;
142
+ weekStart: z.ZodMiniOptional<z.ZodMiniEnum<{
143
+ auto: "auto";
144
+ monday: "monday";
145
+ sunday: "sunday";
146
+ }>>;
147
+ timeZone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
89
148
  }, z.core.$strip>;
90
149
  person: z.ZodMiniNullable<z.ZodMiniObject<{
91
150
  id: z.ZodMiniUUID;
@@ -329,7 +388,10 @@ export declare const restProjectPatchSchema: z.ZodMiniObject<{
329
388
  symbol: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
330
389
  }, z.core.$strip>;
331
390
  export type RestProjectPatch = z.infer<typeof restProjectPatchSchema>;
332
- /** A person listed in a project, with what they are in it. */
391
+ /**
392
+ * A member of a project, with what they are in it: a person listed in it, or, in a project open
393
+ * to the workspace, anyone of the workspace, who is a member of it without a listing (ADR-0035).
394
+ */
333
395
  export declare const restMemberSchema: z.ZodMiniObject<{
334
396
  person: z.ZodMiniObject<{
335
397
  id: z.ZodMiniUUID;
@@ -356,9 +418,10 @@ export declare const restMemberSchema: z.ZodMiniObject<{
356
418
  owner: "owner";
357
419
  }>;
358
420
  addedAt: z.ZodMiniISODateTime;
421
+ listed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
359
422
  }, z.core.$strip>;
360
423
  export type RestMember = z.infer<typeof restMemberSchema>;
361
- /** `GET /api/v1/projects/<key>/members`: those listed, by login. */
424
+ /** `GET /api/v1/projects/<key>/members`: the members, by login; everyone of the workspace in a project open to it. */
362
425
  export declare const restMembersSchema: z.ZodMiniObject<{
363
426
  items: z.ZodMiniArray<z.ZodMiniObject<{
364
427
  person: z.ZodMiniObject<{
@@ -386,6 +449,7 @@ export declare const restMembersSchema: z.ZodMiniObject<{
386
449
  owner: "owner";
387
450
  }>;
388
451
  addedAt: z.ZodMiniISODateTime;
452
+ listed: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
389
453
  }, z.core.$strip>>;
390
454
  }, z.core.$strip>;
391
455
  export type RestMembers = z.infer<typeof restMembersSchema>;
@@ -900,6 +964,7 @@ export type RestGoalPatch = z.infer<typeof restGoalPatchSchema>;
900
964
  export declare const restDecisionOptionSchema: z.ZodMiniObject<{
901
965
  id: z.ZodMiniString<string>;
902
966
  label: z.ZodMiniString<string>;
967
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
903
968
  }, z.core.$strip>;
904
969
  export type RestDecisionOption = z.infer<typeof restDecisionOptionSchema>;
905
970
  export declare const restDecisionSchema: z.ZodMiniObject<{
@@ -909,6 +974,7 @@ export declare const restDecisionSchema: z.ZodMiniObject<{
909
974
  options: z.ZodMiniArray<z.ZodMiniObject<{
910
975
  id: z.ZodMiniString<string>;
911
976
  label: z.ZodMiniString<string>;
977
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
912
978
  }, z.core.$strip>>;
913
979
  taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
914
980
  taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
@@ -975,6 +1041,7 @@ export declare const restDecisionsSchema: z.ZodMiniObject<{
975
1041
  options: z.ZodMiniArray<z.ZodMiniObject<{
976
1042
  id: z.ZodMiniString<string>;
977
1043
  label: z.ZodMiniString<string>;
1044
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
978
1045
  }, z.core.$strip>>;
979
1046
  taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
980
1047
  taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
@@ -1303,6 +1370,7 @@ export declare const restWorkSchema: z.ZodMiniObject<{
1303
1370
  options: z.ZodMiniArray<z.ZodMiniObject<{
1304
1371
  id: z.ZodMiniString<string>;
1305
1372
  label: z.ZodMiniString<string>;
1373
+ own: z.ZodMiniOptional<z.ZodMiniLiteral<true>>;
1306
1374
  }, z.core.$strip>>;
1307
1375
  taskId: z.ZodMiniNullable<z.ZodMiniUUID>;
1308
1376
  taskNumber: z.ZodMiniNullable<z.ZodMiniInt>;
@@ -1617,9 +1685,13 @@ export declare const restDecisionPatchSchema: z.ZodMiniObject<{
1617
1685
  outcome: z.ZodMiniOptional<z.ZodMiniString<string>>;
1618
1686
  }, z.core.$strip>;
1619
1687
  export type RestDecisionPatch = z.infer<typeof restDecisionPatchSchema>;
1620
- /** What `POST .../decisions/<id>/answer` is sent: an option, and a word about it. */
1688
+ /**
1689
+ * What `POST .../decisions/<id>/answer` is sent: one of the options by its id, or the person's
1690
+ * own answer in a line, one of the two; and a word about either.
1691
+ */
1621
1692
  export declare const restAnswerInputSchema: z.ZodMiniObject<{
1622
- option: z.ZodMiniString<string>;
1693
+ option: z.ZodMiniOptional<z.ZodMiniString<string>>;
1694
+ own: z.ZodMiniOptional<z.ZodMiniString<string>>;
1623
1695
  note: z.ZodMiniOptional<z.ZodMiniString<string>>;
1624
1696
  }, z.core.$strip>;
1625
1697
  export type RestAnswerInput = z.infer<typeof restAnswerInputSchema>;
@@ -1705,6 +1777,7 @@ export declare const restEventSchema: z.ZodMiniObject<{
1705
1777
  "task.moved": "task.moved";
1706
1778
  "task.restored": "task.restored";
1707
1779
  "task.updated": "task.updated";
1780
+ "workspace.updated": "workspace.updated";
1708
1781
  }>;
1709
1782
  actor: z.ZodMiniNullable<z.ZodMiniObject<{
1710
1783
  id: z.ZodMiniUUID;
@@ -2065,6 +2138,7 @@ export declare const restEventsSchema: z.ZodMiniObject<{
2065
2138
  "task.moved": "task.moved";
2066
2139
  "task.restored": "task.restored";
2067
2140
  "task.updated": "task.updated";
2141
+ "workspace.updated": "workspace.updated";
2068
2142
  }>;
2069
2143
  actor: z.ZodMiniNullable<z.ZodMiniObject<{
2070
2144
  id: z.ZodMiniUUID;
@@ -2230,13 +2304,21 @@ export declare const restClaimSchema: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
2230
2304
  secret: z.ZodMiniString<string>;
2231
2305
  }, z.core.$strip>]>;
2232
2306
  export type RestClaim = z.infer<typeof restClaimSchema>;
2233
- /** One of the project's skills, as the SkillCDN deployment lists it at the project's address. */
2307
+ /** Why a pack did not answer a read: the code and the words the deployment, or the console reading a directory, gave, as the main repository's API spells them. */
2308
+ export declare const restPackRefusalSchema: z.ZodMiniObject<{
2309
+ code: z.ZodMiniString<string>;
2310
+ message: z.ZodMiniString<string>;
2311
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2312
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2313
+ }, z.core.$strip>;
2314
+ export type RestPackRefusal = z.infer<typeof restPackRefusalSchema>;
2315
+ /** One of the project's skills, as the pack lists it: what the repository says of it, where a person reads it, what an agent loads it by. */
2234
2316
  export declare const restSkillSchema: z.ZodMiniObject<{
2235
2317
  name: z.ZodMiniString<string>;
2236
2318
  description: z.ZodMiniString<string>;
2237
2319
  directory: z.ZodMiniString<string>;
2238
2320
  path: z.ZodMiniString<string>;
2239
- page: z.ZodMiniString<string>;
2321
+ page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2240
2322
  uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2241
2323
  translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2242
2324
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -2244,10 +2326,10 @@ export declare const restSkillSchema: z.ZodMiniObject<{
2244
2326
  }, z.core.$strip>>;
2245
2327
  }, z.core.$strip>;
2246
2328
  export type RestSkill = z.infer<typeof restSkillSchema>;
2247
- /** `GET /api/v1/projects/<key>/skills`: the project's skills, read by address through SkillCDN. */
2329
+ /** `GET /api/v1/projects/<key>/skills`: the project's pack, read by address (ADR-0028, ADR-0031). */
2248
2330
  export declare const restSkillsSchema: z.ZodMiniObject<{
2249
2331
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2250
- source: z.ZodMiniString<string>;
2332
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2251
2333
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2252
2334
  status: z.ZodMiniEnum<{
2253
2335
  failed: "failed";
@@ -2258,6 +2340,12 @@ export declare const restSkillsSchema: z.ZodMiniObject<{
2258
2340
  token_invalid: "token_invalid";
2259
2341
  unavailable: "unavailable";
2260
2342
  }>;
2343
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2344
+ code: z.ZodMiniString<string>;
2345
+ message: z.ZodMiniString<string>;
2346
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2347
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2348
+ }, z.core.$strip>>;
2261
2349
  pack: z.ZodMiniOptional<z.ZodMiniObject<{
2262
2350
  name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2263
2351
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -2272,13 +2360,120 @@ export declare const restSkillsSchema: z.ZodMiniObject<{
2272
2360
  description: z.ZodMiniString<string>;
2273
2361
  directory: z.ZodMiniString<string>;
2274
2362
  path: z.ZodMiniString<string>;
2275
- page: z.ZodMiniString<string>;
2363
+ page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2276
2364
  uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2277
2365
  translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2278
2366
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2279
2367
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2280
2368
  }, z.core.$strip>>;
2281
2369
  }, z.core.$strip>>;
2370
+ mount: z.ZodMiniNullable<z.ZodMiniObject<{
2371
+ address: z.ZodMiniString<string>;
2372
+ repository: z.ZodMiniObject<{
2373
+ host: z.ZodMiniEnum<{
2374
+ gh: "gh";
2375
+ local: "local";
2376
+ }>;
2377
+ owner: z.ZodMiniString<string>;
2378
+ name: z.ZodMiniString<string>;
2379
+ defaultBranch: z.ZodMiniString<string>;
2380
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2381
+ avatar: z.ZodMiniString<string>;
2382
+ visibility: z.ZodMiniOptional<z.ZodMiniEnum<{
2383
+ private: "private";
2384
+ public: "public";
2385
+ }>>;
2386
+ }, z.core.$strip>;
2387
+ ref: z.ZodMiniNullable<z.ZodMiniString<string>>;
2388
+ pinned: z.ZodMiniBoolean<boolean>;
2389
+ commit: z.ZodMiniString<string>;
2390
+ path: z.ZodMiniString<string>;
2391
+ verified: z.ZodMiniBoolean<boolean>;
2392
+ image: z.ZodMiniNullable<z.ZodMiniString<string>>;
2393
+ index: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2394
+ status: z.ZodMiniLiteral<"ready">;
2395
+ truncated: z.ZodMiniBoolean<boolean>;
2396
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2397
+ kind: z.ZodMiniEnum<{
2398
+ none: "none";
2399
+ permissive: "permissive";
2400
+ restrictive: "restrictive";
2401
+ }>;
2402
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2403
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2404
+ }, z.core.$strip>>;
2405
+ manifest: z.ZodMiniNullable<z.ZodMiniObject<{
2406
+ path: z.ZodMiniNullable<z.ZodMiniString<string>>;
2407
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2408
+ description: z.ZodMiniString<string>;
2409
+ language: z.ZodMiniNullable<z.ZodMiniString<string>>;
2410
+ translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2411
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2412
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2413
+ }, z.core.$strip>>;
2414
+ }, z.core.$strip>>;
2415
+ overview: z.ZodMiniOptional<z.ZodMiniObject<{
2416
+ path: z.ZodMiniString<string>;
2417
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2418
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2419
+ }, z.core.$strip>>;
2420
+ skillCount: z.ZodMiniInt;
2421
+ documentCount: z.ZodMiniInt;
2422
+ skills: z.ZodMiniArray<z.ZodMiniObject<{
2423
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2424
+ name: z.ZodMiniString<string>;
2425
+ directory: z.ZodMiniString<string>;
2426
+ description: z.ZodMiniString<string>;
2427
+ warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2428
+ translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2429
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2430
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2431
+ }, z.core.$strip>>;
2432
+ }, z.core.$strip>>;
2433
+ documents: z.ZodMiniArray<z.ZodMiniObject<{
2434
+ path: z.ZodMiniString<string>;
2435
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2436
+ summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2437
+ }, z.core.$strip>>;
2438
+ diagnostics: z.ZodMiniArray<z.ZodMiniObject<{
2439
+ path: z.ZodMiniString<string>;
2440
+ code: z.ZodMiniString<string>;
2441
+ message: z.ZodMiniString<string>;
2442
+ }, z.core.$strip>>;
2443
+ groups: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2444
+ browsePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2445
+ overviewPath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2446
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2447
+ kind: z.ZodMiniEnum<{
2448
+ none: "none";
2449
+ permissive: "permissive";
2450
+ restrictive: "restrictive";
2451
+ }>;
2452
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2453
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2454
+ }, z.core.$strip>>;
2455
+ describedOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2456
+ kind: z.ZodMiniEnum<{
2457
+ directory: "directory";
2458
+ file: "file";
2459
+ skill: "skill";
2460
+ }>;
2461
+ path: z.ZodMiniString<string>;
2462
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2463
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2464
+ skillCount: z.ZodMiniInt;
2465
+ documentCount: z.ZodMiniInt;
2466
+ size: z.ZodMiniNullable<z.ZodMiniInt>;
2467
+ manifestPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2468
+ language: z.ZodMiniNullable<z.ZodMiniString<string>>;
2469
+ }, z.core.$strip>>>;
2470
+ }, z.core.$strip>, z.ZodMiniObject<{
2471
+ status: z.ZodMiniLiteral<"indexing">;
2472
+ }, z.core.$strip>, z.ZodMiniObject<{
2473
+ status: z.ZodMiniLiteral<"failed">;
2474
+ errorCode: z.ZodMiniString<string>;
2475
+ }, z.core.$strip>], "status">;
2476
+ }, z.core.$strip>>;
2282
2477
  }, z.core.$strip>;
2283
2478
  export type RestSkills = z.infer<typeof restSkillsSchema>;
2284
2479
  /** `PUT .../pack-token`: the token a person made at the deployment for the project's pack (ADR-0028); from a field or standard input, never an argument. */
@@ -2286,53 +2481,124 @@ export declare const restPackTokenInputSchema: z.ZodMiniObject<{
2286
2481
  token: z.ZodMiniString<string>;
2287
2482
  }, z.core.$strip>;
2288
2483
  export type RestPackTokenInput = z.infer<typeof restPackTokenInputSchema>;
2289
- /** A rule, the body or an included file of a skill: its path from the repository's root and its text, cut where a page ends. */
2290
- export declare const restSkillTextSchema: z.ZodMiniObject<{
2291
- path: z.ZodMiniString<string>;
2292
- body: z.ZodMiniString<string>;
2293
- truncated: z.ZodMiniBoolean<boolean>;
2484
+ /**
2485
+ * `POST .../pack-token/connect` (ADR-0036): what the person is shown, as the deployment said it,
2486
+ * the code and the page to approve it on, until when, and how often the console asks again. The
2487
+ * secret the console claims the token with stays with the console.
2488
+ */
2489
+ export declare const restPackConnectStartedSchema: z.ZodMiniObject<{
2490
+ code: z.ZodMiniString<string>;
2491
+ url: z.ZodMiniString<string>;
2492
+ expiresAt: z.ZodMiniISODateTime;
2493
+ intervalSeconds: z.ZodMiniInt;
2294
2494
  }, z.core.$strip>;
2295
- /** A skill as the deployment serves it, on one page of its context: what `load_skill` gives a model, in the console's shape. */
2296
- export declare const restSkillPageSchema: z.ZodMiniObject<{
2297
- path: z.ZodMiniString<string>;
2298
- directory: z.ZodMiniString<string>;
2299
- name: z.ZodMiniString<string>;
2300
- description: z.ZodMiniString<string>;
2301
- rules: z.ZodMiniArray<z.ZodMiniObject<{
2302
- path: z.ZodMiniString<string>;
2303
- body: z.ZodMiniString<string>;
2304
- truncated: z.ZodMiniBoolean<boolean>;
2305
- }, z.core.$strip>>;
2306
- body: z.ZodMiniString<string>;
2307
- included: z.ZodMiniArray<z.ZodMiniObject<{
2308
- path: z.ZodMiniString<string>;
2309
- body: z.ZodMiniString<string>;
2310
- truncated: z.ZodMiniBoolean<boolean>;
2311
- }, z.core.$strip>>;
2312
- files: z.ZodMiniArray<z.ZodMiniString<string>>;
2313
- references: z.ZodMiniArray<z.ZodMiniObject<{
2314
- path: z.ZodMiniString<string>;
2315
- status: z.ZodMiniEnum<{
2316
- available: "available";
2317
- blocked: "blocked";
2318
- missing: "missing";
2319
- outside_mount: "outside_mount";
2495
+ export type RestPackConnectStarted = z.infer<typeof restPackConnectStartedSchema>;
2496
+ export declare const restPackConnectSchema: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
2497
+ status: z.ZodMiniLiteral<"none">;
2498
+ }, z.core.$strip>, z.ZodMiniObject<{
2499
+ status: z.ZodMiniLiteral<"pending">;
2500
+ code: z.ZodMiniString<string>;
2501
+ url: z.ZodMiniString<string>;
2502
+ expiresAt: z.ZodMiniISODateTime;
2503
+ intervalSeconds: z.ZodMiniInt;
2504
+ }, z.core.$strip>, z.ZodMiniObject<{
2505
+ status: z.ZodMiniLiteral<"connected">;
2506
+ project: z.ZodMiniObject<{
2507
+ id: z.ZodMiniUUID;
2508
+ key: z.ZodMiniString<string>;
2509
+ name: z.ZodMiniString<string>;
2510
+ description: z.ZodMiniString<string>;
2511
+ visibility: z.ZodMiniEnum<{
2512
+ private: "private";
2513
+ workspace: "workspace";
2320
2514
  }>;
2321
- }, z.core.$strip>>;
2322
- complete: z.ZodMiniBoolean<boolean>;
2323
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2324
- serving: z.ZodMiniObject<{
2325
- full: z.ZodMiniBoolean<boolean>;
2326
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2327
- sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2515
+ skillsAddress: z.ZodMiniNullable<z.ZodMiniString<string>>;
2516
+ color: z.ZodMiniNullable<z.ZodMiniEnum<{
2517
+ blue: "blue";
2518
+ gray: "gray";
2519
+ green: "green";
2520
+ orange: "orange";
2521
+ pink: "pink";
2522
+ purple: "purple";
2523
+ teal: "teal";
2524
+ yellow: "yellow";
2525
+ }>>;
2526
+ symbol: z.ZodMiniNullable<z.ZodMiniString<string>>;
2527
+ icon: z.ZodMiniNullable<z.ZodMiniObject<{
2528
+ sha256: z.ZodMiniString<string>;
2529
+ contentType: z.ZodMiniEnum<{
2530
+ "image/gif": "image/gif";
2531
+ "image/jpeg": "image/jpeg";
2532
+ "image/png": "image/png";
2533
+ "image/webp": "image/webp";
2534
+ }>;
2535
+ }, z.core.$strip>>;
2536
+ packToken: z.ZodMiniNullable<z.ZodMiniObject<{
2537
+ setAt: z.ZodMiniISODateTime;
2538
+ }, z.core.$strip>>;
2539
+ role: z.ZodMiniEnum<{
2540
+ member: "member";
2541
+ owner: "owner";
2542
+ }>;
2543
+ openDecisions: z.ZodMiniInt;
2544
+ openRuns: z.ZodMiniInt;
2545
+ createdAt: z.ZodMiniISODateTime;
2546
+ updatedAt: z.ZodMiniISODateTime;
2328
2547
  }, z.core.$strip>;
2329
- warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2330
- }, z.core.$strip>;
2331
- export type RestSkillPage = z.infer<typeof restSkillPageSchema>;
2332
- /** `GET .../skills/one?path=&cursor=`: one skill of the pack, a page of it; `skill` is `null` unless `ready`. */
2548
+ }, z.core.$strip>, z.ZodMiniObject<{
2549
+ status: z.ZodMiniLiteral<"ended">;
2550
+ reason: z.ZodMiniEnum<{
2551
+ declined: "declined";
2552
+ expired: "expired";
2553
+ refused: "refused";
2554
+ }>;
2555
+ }, z.core.$strip>]>;
2556
+ export type RestPackConnect = z.infer<typeof restPackConnectSchema>;
2557
+ /** `GET /api/v1/workspace/pack-token/connect`: the same, for the workspace's token, with the workspace as it stands once connected. */
2558
+ export declare const restWorkspacePackConnectSchema: z.ZodMiniUnion<readonly [z.ZodMiniObject<{
2559
+ status: z.ZodMiniLiteral<"none">;
2560
+ }, z.core.$strip>, z.ZodMiniObject<{
2561
+ status: z.ZodMiniLiteral<"pending">;
2562
+ code: z.ZodMiniString<string>;
2563
+ url: z.ZodMiniString<string>;
2564
+ expiresAt: z.ZodMiniISODateTime;
2565
+ intervalSeconds: z.ZodMiniInt;
2566
+ }, z.core.$strip>, z.ZodMiniObject<{
2567
+ status: z.ZodMiniLiteral<"connected">;
2568
+ workspace: z.ZodMiniObject<{
2569
+ name: z.ZodMiniString<string>;
2570
+ tokenDaysAtMost: z.ZodMiniNullable<z.ZodMiniInt>;
2571
+ skills: z.ZodMiniObject<{
2572
+ source: z.ZodMiniString<string>;
2573
+ address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2574
+ packToken: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniObject<{
2575
+ setAt: z.ZodMiniISODateTime;
2576
+ }, z.core.$strip>>>;
2577
+ }, z.core.$strip>;
2578
+ peopleVisibility: z.ZodMiniOptional<z.ZodMiniEnum<{
2579
+ everyone: "everyone";
2580
+ shared_projects: "shared_projects";
2581
+ }>>;
2582
+ weekStart: z.ZodMiniOptional<z.ZodMiniEnum<{
2583
+ auto: "auto";
2584
+ monday: "monday";
2585
+ sunday: "sunday";
2586
+ }>>;
2587
+ timeZone: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
2588
+ }, z.core.$strip>;
2589
+ }, z.core.$strip>, z.ZodMiniObject<{
2590
+ status: z.ZodMiniLiteral<"ended">;
2591
+ reason: z.ZodMiniEnum<{
2592
+ declined: "declined";
2593
+ expired: "expired";
2594
+ refused: "refused";
2595
+ }>;
2596
+ }, z.core.$strip>]>;
2597
+ export type RestWorkspacePackConnect = z.infer<typeof restWorkspacePackConnectSchema>;
2598
+ /** `GET .../skills/one?path=&cursor=`: a page of a skill's context, as the pack answers `load_skill` (`RestSkill` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2333
2599
  export declare const restSkillLoadSchema: z.ZodMiniObject<{
2334
2600
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2335
- source: z.ZodMiniString<string>;
2601
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2336
2602
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2337
2603
  status: z.ZodMiniEnum<{
2338
2604
  failed: "failed";
@@ -2343,47 +2609,93 @@ export declare const restSkillLoadSchema: z.ZodMiniObject<{
2343
2609
  token_invalid: "token_invalid";
2344
2610
  unavailable: "unavailable";
2345
2611
  }>;
2346
- skill: z.ZodMiniNullable<z.ZodMiniObject<{
2347
- path: z.ZodMiniString<string>;
2348
- directory: z.ZodMiniString<string>;
2349
- name: z.ZodMiniString<string>;
2350
- description: z.ZodMiniString<string>;
2351
- rules: z.ZodMiniArray<z.ZodMiniObject<{
2352
- path: z.ZodMiniString<string>;
2353
- body: z.ZodMiniString<string>;
2354
- truncated: z.ZodMiniBoolean<boolean>;
2355
- }, z.core.$strip>>;
2356
- body: z.ZodMiniString<string>;
2357
- included: z.ZodMiniArray<z.ZodMiniObject<{
2358
- path: z.ZodMiniString<string>;
2359
- body: z.ZodMiniString<string>;
2360
- truncated: z.ZodMiniBoolean<boolean>;
2361
- }, z.core.$strip>>;
2362
- files: z.ZodMiniArray<z.ZodMiniString<string>>;
2363
- references: z.ZodMiniArray<z.ZodMiniObject<{
2364
- path: z.ZodMiniString<string>;
2365
- status: z.ZodMiniEnum<{
2366
- available: "available";
2367
- blocked: "blocked";
2368
- missing: "missing";
2369
- outside_mount: "outside_mount";
2370
- }>;
2371
- }, z.core.$strip>>;
2372
- complete: z.ZodMiniBoolean<boolean>;
2373
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2374
- serving: z.ZodMiniObject<{
2375
- full: z.ZodMiniBoolean<boolean>;
2612
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2613
+ code: z.ZodMiniString<string>;
2614
+ message: z.ZodMiniString<string>;
2615
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2616
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2617
+ }, z.core.$strip>>;
2618
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2619
+ status: z.ZodMiniLiteral<"ready">;
2620
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2621
+ skill: z.ZodMiniObject<{
2622
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2623
+ ruleChain: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2624
+ path: z.ZodMiniString<string>;
2625
+ body: z.ZodMiniString<string>;
2626
+ truncated: z.ZodMiniBoolean<boolean>;
2627
+ }, z.core.$strip>>>;
2628
+ references: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2629
+ source: z.ZodMiniOptional<z.ZodMiniString<string>>;
2630
+ href: z.ZodMiniString<string>;
2631
+ path: z.ZodMiniString<string>;
2632
+ status: z.ZodMiniEnum<{
2633
+ available: "available";
2634
+ blocked: "blocked";
2635
+ missing: "missing";
2636
+ outside_mount: "outside_mount";
2637
+ }>;
2638
+ }, z.core.$strip>>>;
2639
+ complete: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2640
+ nextCursor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
2641
+ includedContents: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2642
+ path: z.ZodMiniString<string>;
2643
+ content: z.ZodMiniNullable<z.ZodMiniString<string>>;
2644
+ truncated: z.ZodMiniBoolean<boolean>;
2645
+ }, z.core.$strip>>>;
2646
+ name: z.ZodMiniString<string>;
2647
+ directory: z.ZodMiniString<string>;
2648
+ description: z.ZodMiniString<string>;
2376
2649
  license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2377
- sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2650
+ compatibility: z.ZodMiniNullable<z.ZodMiniString<string>>;
2651
+ allowedTools: z.ZodMiniNullable<z.ZodMiniString<string>>;
2652
+ metadata: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>;
2653
+ body: z.ZodMiniString<string>;
2654
+ files: z.ZodMiniArray<z.ZodMiniString<string>>;
2655
+ filesTruncated: z.ZodMiniBoolean<boolean>;
2656
+ oversized: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2657
+ path: z.ZodMiniString<string>;
2658
+ size: z.ZodMiniInt;
2659
+ sourceUrl: z.ZodMiniString<string>;
2660
+ }, z.core.$strip>>>;
2661
+ included: z.ZodMiniArray<z.ZodMiniString<string>>;
2662
+ warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2663
+ translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2664
+ title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2665
+ description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2666
+ }, z.core.$strip>>;
2667
+ serving: z.ZodMiniOptional<z.ZodMiniObject<{
2668
+ license: z.ZodMiniObject<{
2669
+ kind: z.ZodMiniEnum<{
2670
+ none: "none";
2671
+ permissive: "permissive";
2672
+ restrictive: "restrictive";
2673
+ }>;
2674
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2675
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2676
+ }, z.core.$strip>;
2677
+ full: z.ZodMiniBoolean<boolean>;
2678
+ sourceUrl: z.ZodMiniString<string>;
2679
+ }, z.core.$strip>>;
2680
+ rules: z.ZodMiniNullable<z.ZodMiniObject<{
2681
+ path: z.ZodMiniNullable<z.ZodMiniString<string>>;
2682
+ body: z.ZodMiniString<string>;
2683
+ truncated: z.ZodMiniBoolean<boolean>;
2684
+ }, z.core.$strip>>;
2378
2685
  }, z.core.$strip>;
2379
- warnings: z.ZodMiniArray<z.ZodMiniString<string>>;
2380
- }, z.core.$strip>>;
2686
+ }, z.core.$strip>, z.ZodMiniObject<{
2687
+ status: z.ZodMiniLiteral<"indexing">;
2688
+ }, z.core.$strip>, z.ZodMiniObject<{
2689
+ status: z.ZodMiniLiteral<"failed">;
2690
+ errorCode: z.ZodMiniString<string>;
2691
+ }, z.core.$strip>], "status">>;
2381
2692
  }, z.core.$strip>;
2382
2693
  export type RestSkillLoad = z.infer<typeof restSkillLoadSchema>;
2383
- /** `GET .../skills/file?path=&offset=&limit=`: a page of a file of the pack, or what a folder holds; both `null` unless `ready`. */
2694
+ /** `GET .../skills/file?path=&offset=&limit=`: a page of a file, or what a folder holds, as the pack answers `read_repo_file` (`RestFile` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2384
2695
  export declare const restSkillFileSchema: z.ZodMiniObject<{
2385
2696
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2386
- source: z.ZodMiniString<string>;
2697
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2698
+ page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2387
2699
  status: z.ZodMiniEnum<{
2388
2700
  failed: "failed";
2389
2701
  indexing: "indexing";
@@ -2393,14 +2705,34 @@ export declare const restSkillFileSchema: z.ZodMiniObject<{
2393
2705
  token_invalid: "token_invalid";
2394
2706
  unavailable: "unavailable";
2395
2707
  }>;
2396
- file: z.ZodMiniNullable<z.ZodMiniObject<{
2708
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2709
+ code: z.ZodMiniString<string>;
2710
+ message: z.ZodMiniString<string>;
2711
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2712
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2713
+ }, z.core.$strip>>;
2714
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2715
+ kind: z.ZodMiniLiteral<"file">;
2716
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2717
+ references: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2718
+ source: z.ZodMiniOptional<z.ZodMiniString<string>>;
2719
+ href: z.ZodMiniString<string>;
2720
+ path: z.ZodMiniString<string>;
2721
+ status: z.ZodMiniEnum<{
2722
+ available: "available";
2723
+ blocked: "blocked";
2724
+ missing: "missing";
2725
+ outside_mount: "outside_mount";
2726
+ }>;
2727
+ }, z.core.$strip>>>;
2397
2728
  path: z.ZodMiniString<string>;
2398
2729
  content: z.ZodMiniString<string>;
2399
2730
  offset: z.ZodMiniInt;
2400
2731
  nextOffset: z.ZodMiniNullable<z.ZodMiniInt>;
2401
2732
  totalLength: z.ZodMiniInt;
2402
- }, z.core.$strip>>;
2403
- folder: z.ZodMiniNullable<z.ZodMiniObject<{
2733
+ }, z.core.$strip>, z.ZodMiniObject<{
2734
+ kind: z.ZodMiniLiteral<"directory">;
2735
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2404
2736
  path: z.ZodMiniString<string>;
2405
2737
  entries: z.ZodMiniArray<z.ZodMiniObject<{
2406
2738
  path: z.ZodMiniString<string>;
@@ -2411,31 +2743,13 @@ export declare const restSkillFileSchema: z.ZodMiniObject<{
2411
2743
  size: z.ZodMiniNullable<z.ZodMiniInt>;
2412
2744
  }, z.core.$strip>>;
2413
2745
  truncated: z.ZodMiniBoolean<boolean>;
2414
- }, z.core.$strip>>;
2746
+ }, z.core.$strip>], "kind">>;
2415
2747
  }, z.core.$strip>;
2416
2748
  export type RestSkillFile = z.infer<typeof restSkillFileSchema>;
2417
- /** An entry of a folder of the pack, as the deployment browses it: a skill, a folder with what it holds, or a file. */
2418
- export declare const restSkillBrowseEntrySchema: z.ZodMiniObject<{
2419
- kind: z.ZodMiniEnum<{
2420
- directory: "directory";
2421
- file: "file";
2422
- skill: "skill";
2423
- }>;
2424
- path: z.ZodMiniString<string>;
2425
- name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2426
- description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2427
- skillCount: z.ZodMiniInt;
2428
- documentCount: z.ZodMiniInt;
2429
- size: z.ZodMiniNullable<z.ZodMiniInt>;
2430
- overviewPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2431
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2432
- describedOnly: z.ZodMiniBoolean<boolean>;
2433
- }, z.core.$strip>;
2434
- export type RestSkillBrowseEntry = z.infer<typeof restSkillBrowseEntrySchema>;
2435
- /** `GET .../skills/browse?path=&cursor=&limit=`: what a folder of the pack holds, a page of it (`browse_repo`); `folder` is `null` unless `ready`. */
2749
+ /** `GET .../skills/browse?path=&cursor=&limit=`: what a folder holds, a page of it, as the pack answers `browse_repo` (`RestBrowse` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2436
2750
  export declare const restSkillBrowseSchema: z.ZodMiniObject<{
2437
2751
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2438
- source: z.ZodMiniString<string>;
2752
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2439
2753
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2440
2754
  status: z.ZodMiniEnum<{
2441
2755
  failed: "failed";
@@ -2446,14 +2760,34 @@ export declare const restSkillBrowseSchema: z.ZodMiniObject<{
2446
2760
  token_invalid: "token_invalid";
2447
2761
  unavailable: "unavailable";
2448
2762
  }>;
2449
- folder: z.ZodMiniNullable<z.ZodMiniObject<{
2763
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2764
+ code: z.ZodMiniString<string>;
2765
+ message: z.ZodMiniString<string>;
2766
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2767
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2768
+ }, z.core.$strip>>;
2769
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2770
+ status: z.ZodMiniLiteral<"ready">;
2771
+ commit: z.ZodMiniString<string>;
2450
2772
  path: z.ZodMiniString<string>;
2451
- overview: z.ZodMiniNullable<z.ZodMiniObject<{
2773
+ overview: z.ZodMiniOptional<z.ZodMiniObject<{
2452
2774
  path: z.ZodMiniString<string>;
2453
2775
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2454
2776
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2455
2777
  }, z.core.$strip>>;
2456
2778
  entries: z.ZodMiniArray<z.ZodMiniObject<{
2779
+ browsePath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2780
+ overviewPath: z.ZodMiniOptional<z.ZodMiniString<string>>;
2781
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2782
+ kind: z.ZodMiniEnum<{
2783
+ none: "none";
2784
+ permissive: "permissive";
2785
+ restrictive: "restrictive";
2786
+ }>;
2787
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2788
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2789
+ }, z.core.$strip>>;
2790
+ describedOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2457
2791
  kind: z.ZodMiniEnum<{
2458
2792
  directory: "directory";
2459
2793
  file: "file";
@@ -2465,47 +2799,27 @@ export declare const restSkillBrowseSchema: z.ZodMiniObject<{
2465
2799
  skillCount: z.ZodMiniInt;
2466
2800
  documentCount: z.ZodMiniInt;
2467
2801
  size: z.ZodMiniNullable<z.ZodMiniInt>;
2468
- overviewPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2469
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2470
- describedOnly: z.ZodMiniBoolean<boolean>;
2802
+ manifestPath: z.ZodMiniNullable<z.ZodMiniString<string>>;
2803
+ language: z.ZodMiniNullable<z.ZodMiniString<string>>;
2471
2804
  }, z.core.$strip>>;
2805
+ diagnostics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2806
+ path: z.ZodMiniString<string>;
2807
+ code: z.ZodMiniString<string>;
2808
+ message: z.ZodMiniString<string>;
2809
+ }, z.core.$strip>>>;
2472
2810
  nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2473
- }, z.core.$strip>>;
2811
+ }, z.core.$strip>, z.ZodMiniObject<{
2812
+ status: z.ZodMiniLiteral<"indexing">;
2813
+ }, z.core.$strip>, z.ZodMiniObject<{
2814
+ status: z.ZodMiniLiteral<"failed">;
2815
+ errorCode: z.ZodMiniString<string>;
2816
+ }, z.core.$strip>], "status">>;
2474
2817
  }, z.core.$strip>;
2475
2818
  export type RestSkillBrowse = z.infer<typeof restSkillBrowseSchema>;
2476
- /** What a search of the pack found: a skill, as the listing has it, with the files of it that matched; or a document on its own. */
2477
- export declare const restSkillFindItemSchema: z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2478
- kind: z.ZodMiniLiteral<"skill">;
2479
- name: z.ZodMiniString<string>;
2480
- description: z.ZodMiniString<string>;
2481
- directory: z.ZodMiniString<string>;
2482
- path: z.ZodMiniString<string>;
2483
- page: z.ZodMiniString<string>;
2484
- uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2485
- translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2486
- title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2487
- description: z.ZodMiniNullable<z.ZodMiniString<string>>;
2488
- }, z.core.$strip>>;
2489
- files: z.ZodMiniArray<z.ZodMiniObject<{
2490
- path: z.ZodMiniString<string>;
2491
- title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2492
- summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2493
- }, z.core.$strip>>;
2494
- moreFiles: z.ZodMiniInt;
2495
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2496
- describedOnly: z.ZodMiniBoolean<boolean>;
2497
- }, z.core.$strip>, z.ZodMiniObject<{
2498
- kind: z.ZodMiniLiteral<"document">;
2499
- path: z.ZodMiniString<string>;
2500
- title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2501
- summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2502
- skillDirectory: z.ZodMiniNullable<z.ZodMiniString<string>>;
2503
- }, z.core.$strip>], "kind">;
2504
- export type RestSkillFindItem = z.infer<typeof restSkillFindItemSchema>;
2505
- /** `GET .../skills/find?query=&path=&cursor=&limit=`: what words find in the pack, a page of it in relevance order (`search_repo`); `found` is `null` unless `ready`. */
2819
+ /** `GET .../skills/find?query=&path=&cursor=&limit=`: what words find, a page of it in relevance order, as the pack answers `search_repo` (`RestFind` of `@skillcdn/core`); `read` is `null` unless `ready`. */
2506
2820
  export declare const restSkillFindSchema: z.ZodMiniObject<{
2507
2821
  address: z.ZodMiniNullable<z.ZodMiniString<string>>;
2508
- source: z.ZodMiniString<string>;
2822
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2509
2823
  page: z.ZodMiniNullable<z.ZodMiniString<string>>;
2510
2824
  status: z.ZodMiniEnum<{
2511
2825
  failed: "failed";
@@ -2516,17 +2830,24 @@ export declare const restSkillFindSchema: z.ZodMiniObject<{
2516
2830
  token_invalid: "token_invalid";
2517
2831
  unavailable: "unavailable";
2518
2832
  }>;
2519
- found: z.ZodMiniNullable<z.ZodMiniObject<{
2520
- query: z.ZodMiniString<string>;
2521
- path: z.ZodMiniNullable<z.ZodMiniString<string>>;
2833
+ refusal: z.ZodMiniNullable<z.ZodMiniObject<{
2834
+ code: z.ZodMiniString<string>;
2835
+ message: z.ZodMiniString<string>;
2836
+ sourceUrl: z.ZodMiniNullable<z.ZodMiniString<string>>;
2837
+ directories: z.ZodMiniArray<z.ZodMiniString<string>>;
2838
+ }, z.core.$strip>>;
2839
+ read: z.ZodMiniNullable<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2840
+ status: z.ZodMiniLiteral<"ready">;
2841
+ query: z.ZodMiniNullable<z.ZodMiniString<string>>;
2842
+ commit: z.ZodMiniOptional<z.ZodMiniString<string>>;
2843
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2844
+ nextCursor: z.ZodMiniOptional<z.ZodMiniNullable<z.ZodMiniString<string>>>;
2522
2845
  items: z.ZodMiniArray<z.ZodMiniDiscriminatedUnion<[z.ZodMiniObject<{
2523
2846
  kind: z.ZodMiniLiteral<"skill">;
2847
+ path: z.ZodMiniOptional<z.ZodMiniString<string>>;
2524
2848
  name: z.ZodMiniString<string>;
2525
- description: z.ZodMiniString<string>;
2526
2849
  directory: z.ZodMiniString<string>;
2527
- path: z.ZodMiniString<string>;
2528
- page: z.ZodMiniString<string>;
2529
- uri: z.ZodMiniNullable<z.ZodMiniString<string>>;
2850
+ description: z.ZodMiniString<string>;
2530
2851
  translations: z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
2531
2852
  title: z.ZodMiniNullable<z.ZodMiniString<string>>;
2532
2853
  description: z.ZodMiniNullable<z.ZodMiniString<string>>;
@@ -2537,8 +2858,16 @@ export declare const restSkillFindSchema: z.ZodMiniObject<{
2537
2858
  summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2538
2859
  }, z.core.$strip>>;
2539
2860
  moreFiles: z.ZodMiniInt;
2540
- license: z.ZodMiniNullable<z.ZodMiniString<string>>;
2541
- describedOnly: z.ZodMiniBoolean<boolean>;
2861
+ license: z.ZodMiniOptional<z.ZodMiniObject<{
2862
+ kind: z.ZodMiniEnum<{
2863
+ none: "none";
2864
+ permissive: "permissive";
2865
+ restrictive: "restrictive";
2866
+ }>;
2867
+ name: z.ZodMiniNullable<z.ZodMiniString<string>>;
2868
+ source: z.ZodMiniNullable<z.ZodMiniString<string>>;
2869
+ }, z.core.$strip>>;
2870
+ describedOnly: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
2542
2871
  }, z.core.$strip>, z.ZodMiniObject<{
2543
2872
  kind: z.ZodMiniLiteral<"document">;
2544
2873
  path: z.ZodMiniString<string>;
@@ -2546,8 +2875,21 @@ export declare const restSkillFindSchema: z.ZodMiniObject<{
2546
2875
  summary: z.ZodMiniNullable<z.ZodMiniString<string>>;
2547
2876
  skillDirectory: z.ZodMiniNullable<z.ZodMiniString<string>>;
2548
2877
  }, z.core.$strip>], "kind">>;
2549
- nextCursor: z.ZodMiniNullable<z.ZodMiniString<string>>;
2550
- }, z.core.$strip>>;
2878
+ diagnostics: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
2879
+ path: z.ZodMiniString<string>;
2880
+ code: z.ZodMiniString<string>;
2881
+ message: z.ZodMiniString<string>;
2882
+ }, z.core.$strip>>>;
2883
+ totals: z.ZodMiniNullable<z.ZodMiniObject<{
2884
+ skills: z.ZodMiniInt;
2885
+ documents: z.ZodMiniInt;
2886
+ }, z.core.$strip>>;
2887
+ }, z.core.$strip>, z.ZodMiniObject<{
2888
+ status: z.ZodMiniLiteral<"indexing">;
2889
+ }, z.core.$strip>, z.ZodMiniObject<{
2890
+ status: z.ZodMiniLiteral<"failed">;
2891
+ errorCode: z.ZodMiniString<string>;
2892
+ }, z.core.$strip>], "status">>;
2551
2893
  }, z.core.$strip>;
2552
2894
  export type RestSkillFind = z.infer<typeof restSkillFindSchema>;
2553
2895
  /** A document as a folder or a search lists it: everything but the body. */