@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.
- package/README.md +8 -7
- package/dist/api.d.ts +2 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -2
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +248 -92
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/credentials.d.ts +5 -0
- package/dist/cli/credentials.d.ts.map +1 -1
- package/dist/cli/credentials.js +2 -0
- package/dist/cli/credentials.js.map +1 -1
- package/dist/cli/directory.d.ts +7 -0
- package/dist/cli/directory.d.ts.map +1 -1
- package/dist/cli/directory.js +7 -0
- package/dist/cli/directory.js.map +1 -1
- package/dist/cli/format.d.ts +13 -28
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +74 -274
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +36 -19
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/pack.d.ts +46 -0
- package/dist/cli/pack.d.ts.map +1 -0
- package/dist/cli/pack.js +250 -0
- package/dist/cli/pack.js.map +1 -0
- package/dist/client.d.ts +26 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +14 -1
- package/dist/client.js.map +1 -1
- package/dist/compat.d.ts +1 -1
- package/dist/compat.js +1 -1
- package/dist/components/calendar.d.ts +5 -1
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +3 -3
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/decision-list.d.ts +13 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +74 -29
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +2 -0
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/pack-connect.d.ts +23 -0
- package/dist/components/pack-connect.d.ts.map +1 -0
- package/dist/components/pack-connect.js +86 -0
- package/dist/components/pack-connect.js.map +1 -0
- package/dist/components/pack-token.d.ts +27 -0
- package/dist/components/pack-token.d.ts.map +1 -0
- package/dist/components/pack-token.js +11 -0
- package/dist/components/pack-token.js.map +1 -0
- package/dist/components/paged.d.ts +24 -0
- package/dist/components/paged.d.ts.map +1 -1
- package/dist/components/paged.js +40 -4
- package/dist/components/paged.js.map +1 -1
- package/dist/components/projects.d.ts +13 -0
- package/dist/components/projects.d.ts.map +1 -1
- package/dist/components/projects.js +37 -5
- package/dist/components/projects.js.map +1 -1
- package/dist/components/skills.d.ts.map +1 -1
- package/dist/components/skills.js +8 -4
- package/dist/components/skills.js.map +1 -1
- package/dist/components/ui.d.ts +2 -0
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +7 -2
- package/dist/components/ui.js.map +1 -1
- package/dist/components/work.d.ts +3 -1
- package/dist/components/work.d.ts.map +1 -1
- package/dist/components/work.js +1 -1
- package/dist/components/work.js.map +1 -1
- package/dist/components/workspace.d.ts +46 -0
- package/dist/components/workspace.d.ts.map +1 -0
- package/dist/components/workspace.js +124 -0
- package/dist/components/workspace.js.map +1 -0
- package/dist/console.css +268 -5
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +62 -23
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +16 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +64 -2
- package/dist/data.js.map +1 -1
- package/dist/dates.d.ts +12 -2
- package/dist/dates.d.ts.map +1 -1
- package/dist/dates.js +20 -2
- package/dist/dates.js.map +1 -1
- package/dist/i18n/en.d.ts +66 -0
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +80 -8
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +75 -7
- package/dist/i18n/ko.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/router.d.ts +10 -5
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +24 -9
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +4 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +4 -0
- package/dist/routes.js.map +1 -1
- package/dist/schemas.d.ts +500 -158
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +169 -165
- package/dist/schemas.js.map +1 -1
- package/dist/vocabulary.d.ts +19 -1
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +16 -0
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +19 -14
- package/docs/specs/rest.md +34 -19
- package/package.json +2 -1
- package/skills/building-a-console/SKILL.md +5 -5
- package/skills/building-a-console/references/the-look-from-a-website.md +39 -0
- package/skills/deploying-a-console/SKILL.md +9 -8
- package/skills/working-the-board/SKILL.md +5 -5
- package/skills/working-the-board/references/setting-up.md +1 -1
- package/skills/working-the-board/references/terms.md +2 -0
- package/skills/working-the-board/references/the-sentence.md +1 -1
- package/src/api.ts +18 -7
- package/src/cli/cli.ts +345 -109
- package/src/cli/credentials.ts +7 -0
- package/src/cli/directory.ts +9 -0
- package/src/cli/format.ts +82 -341
- package/src/cli/help.ts +43 -19
- package/src/cli/pack.ts +356 -0
- package/src/client.ts +84 -0
- package/src/compat.ts +1 -1
- package/src/components/calendar.tsx +8 -2
- package/src/components/decision-list.tsx +227 -94
- package/src/components/event-feed.tsx +2 -0
- package/src/components/pack-connect.tsx +179 -0
- package/src/components/pack-token.tsx +74 -0
- package/src/components/paged.tsx +72 -3
- package/src/components/projects.tsx +108 -9
- package/src/components/skills.tsx +51 -33
- package/src/components/ui.tsx +16 -3
- package/src/components/work.tsx +4 -1
- package/src/components/workspace.tsx +298 -0
- package/src/console.tsx +176 -29
- package/src/data.ts +89 -2
- package/src/dates.ts +23 -2
- package/src/i18n/en.ts +94 -8
- package/src/i18n/ko.ts +84 -7
- package/src/index.ts +25 -1
- package/src/router.ts +37 -14
- package/src/routes.ts +4 -0
- package/src/schemas.ts +202 -189
- package/src/styles/console.css +268 -5
- 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
|
-
/**
|
|
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`:
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
|
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
|
-
/**
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
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
|
-
|
|
2296
|
-
export declare const
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
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
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
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
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
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
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2380
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
/**
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
2469
|
-
|
|
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
|
-
/**
|
|
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
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
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
|
-
|
|
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.
|
|
2541
|
-
|
|
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
|
-
|
|
2550
|
-
|
|
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. */
|