@fungi.computer/gills 0.0.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rows.d.ts +26 -0
- package/dist/rows.js +9 -0
- package/package.json +1 -1
package/dist/rows.d.ts
CHANGED
|
@@ -50,3 +50,29 @@ export declare const rowPageSchemaV1: Schema.$Array<Schema.Struct<{
|
|
|
50
50
|
}>>;
|
|
51
51
|
}>>;
|
|
52
52
|
}>>;
|
|
53
|
+
/** A finished App call as a person reads it: a shared row plus an optional thumbnail. */
|
|
54
|
+
export declare const resultRowSchemaV1: Schema.Struct<{
|
|
55
|
+
/** A Computer file the receiving host may preview; the host authorizes the read. */
|
|
56
|
+
readonly media: Schema.optional<Schema.Struct<{
|
|
57
|
+
readonly path: Schema.String;
|
|
58
|
+
readonly format: Schema.Literals<readonly ["fungi:image", "fungi:video"]>;
|
|
59
|
+
}>>;
|
|
60
|
+
readonly id: Schema.String;
|
|
61
|
+
readonly title: Schema.String;
|
|
62
|
+
readonly detail: Schema.optional<Schema.String>;
|
|
63
|
+
readonly tone: Schema.optional<Schema.Literals<readonly ["attention", "running", "error", "settled", "muted"]>>;
|
|
64
|
+
/** App-owned status text with the semantic colors used by Caps Status. */
|
|
65
|
+
readonly status: Schema.optional<Schema.Struct<{
|
|
66
|
+
readonly label: Schema.String;
|
|
67
|
+
readonly tone: Schema.Literals<readonly ["neutral", "primary", "secondary", "accent", "success", "info", "warning", "error"]>;
|
|
68
|
+
}>>;
|
|
69
|
+
/** The host supplies this Gill's App identity; rows only select its view. */
|
|
70
|
+
readonly open: Schema.optional<Schema.Struct<{
|
|
71
|
+
readonly params: Schema.$Array<Schema.Struct<{
|
|
72
|
+
readonly key: Schema.String;
|
|
73
|
+
readonly value: Schema.String;
|
|
74
|
+
}>>;
|
|
75
|
+
}>>;
|
|
76
|
+
}>;
|
|
77
|
+
/** One shared result row; navigation and previews stay host-authorized. */
|
|
78
|
+
export type ResultRow = Schema.Schema.Type<typeof resultRowSchemaV1>;
|
package/dist/rows.js
CHANGED
|
@@ -35,3 +35,12 @@ export const rowSchemaV1 = Schema.Struct({
|
|
|
35
35
|
});
|
|
36
36
|
/** A page containing at most 200 shared rows. */
|
|
37
37
|
export const rowPageSchemaV1 = Schema.Array(rowSchemaV1).pipe(Schema.check(Schema.isMaxLength(200)));
|
|
38
|
+
/** A finished App call as a person reads it: a shared row plus an optional thumbnail. */
|
|
39
|
+
export const resultRowSchemaV1 = Schema.Struct({
|
|
40
|
+
...rowSchemaV1.fields,
|
|
41
|
+
/** A Computer file the receiving host may preview; the host authorizes the read. */
|
|
42
|
+
media: Schema.optional(Schema.Struct({
|
|
43
|
+
path: rowLabelSchemaV1,
|
|
44
|
+
format: Schema.Literals(["fungi:image", "fungi:video"]),
|
|
45
|
+
})),
|
|
46
|
+
});
|