@dxos/protocols 0.9.0 → 0.9.1-main.c7dcc2e112
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/src/Config2.d.ts +91 -0
- package/dist/src/Config2.d.ts.map +1 -0
- package/dist/src/Config2.js +56 -0
- package/dist/src/Config2.js.map +1 -0
- package/dist/src/edge/edge.d.ts +82 -0
- package/dist/src/edge/edge.d.ts.map +1 -1
- package/dist/src/edge/edge.js +50 -0
- package/dist/src/edge/edge.js.map +1 -1
- package/dist/src/edge/registry.d.ts +231 -144
- package/dist/src/edge/registry.d.ts.map +1 -1
- package/dist/src/edge/registry.js +126 -87
- package/dist/src/edge/registry.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.d.ts +162 -162
- package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
- package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
- package/dist/src/proto/gen/google/protobuf.d.ts +27 -27
- package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -9
- package/src/Config2.ts +68 -0
- package/src/edge/edge.ts +62 -0
- package/src/edge/registry.ts +142 -101
- package/src/index.ts +1 -0
- package/src/lexicons/org.dxos.experimental/README.md +29 -0
- package/src/lexicons/org.dxos.experimental/package.profile.json +87 -0
- package/src/lexicons/org.dxos.experimental/package.release.json +45 -0
- package/src/lexicons/org.dxos.experimental/publisher.profile.json +37 -0
- package/src/lexicons/org.dxos.experimental/publisher.verification.json +36 -0
- package/src/proto/gen/dxos/client/services.ts +162 -162
- package/src/proto/gen/google/protobuf.ts +27 -27
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
import * as Schema from 'effect/Schema';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* package free of UI/runtime dependencies. Consumers can treat decoded values as
|
|
7
|
-
* `Plugin.Meta` directly.
|
|
3
|
+
* A snapshot of a plugin's declared dependencies resolved to concrete installed versions at build
|
|
4
|
+
* time (`{ "@dxos/app-framework": "0.8.3", "react": "19.2.0", … }`). The host derives SDK
|
|
5
|
+
* compatibility from the subset it shares with the plugin (the externalized `@dxos/*` packages).
|
|
8
6
|
*/
|
|
9
|
-
export declare const
|
|
10
|
-
|
|
11
|
-
name: Schema.filter<typeof Schema.String>;
|
|
12
|
-
description: Schema.optional<typeof Schema.String>;
|
|
13
|
-
author: Schema.optional<typeof Schema.String>;
|
|
14
|
-
homePage: Schema.optional<typeof Schema.String>;
|
|
15
|
-
source: Schema.optional<typeof Schema.String>;
|
|
16
|
-
screenshots: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
17
|
-
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
18
|
-
icon: Schema.optional<typeof Schema.String>;
|
|
19
|
-
iconHue: Schema.optional<typeof Schema.String>;
|
|
20
|
-
}>;
|
|
21
|
-
export type PluginMeta = Schema.Schema.Type<typeof PluginMetaSchema>;
|
|
22
|
-
/**
|
|
23
|
-
* Health signal the registry service attaches to a hydrated entry when a refresh fails.
|
|
24
|
-
* Clients surface the appropriate badge or filter entries based on this field.
|
|
25
|
-
*/
|
|
26
|
-
export declare const PluginHealthSchema: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
27
|
-
export type PluginHealth = Schema.Schema.Type<typeof PluginHealthSchema>;
|
|
7
|
+
export declare const DependencyMapSchema: Schema.Record$<typeof Schema.String, typeof Schema.String>;
|
|
8
|
+
export type DependencyMap = Schema.Schema.Type<typeof DependencyMapSchema>;
|
|
28
9
|
/**
|
|
29
10
|
* Filename of the entry module every plugin must publish at the root of its bundle.
|
|
30
11
|
* The host dynamic-imports `<manifest URL base>/index.mjs` directly — no per-plugin
|
|
@@ -42,16 +23,23 @@ export declare const PLUGIN_ENTRY_FILENAME = "index.mjs";
|
|
|
42
23
|
* Paths in `assets` are relative to the manifest's URL.
|
|
43
24
|
*/
|
|
44
25
|
export declare const PluginManifestSchema: Schema.Struct<{
|
|
45
|
-
|
|
26
|
+
key: Schema.filter<typeof Schema.String>;
|
|
46
27
|
name: Schema.filter<typeof Schema.String>;
|
|
47
28
|
description: Schema.optional<typeof Schema.String>;
|
|
48
29
|
author: Schema.optional<typeof Schema.String>;
|
|
49
30
|
homePage: Schema.optional<typeof Schema.String>;
|
|
50
31
|
source: Schema.optional<typeof Schema.String>;
|
|
51
|
-
screenshots: Schema.optional<Schema.Array$<
|
|
32
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
33
|
+
light: Schema.optional<typeof Schema.String>;
|
|
34
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
35
|
+
}>>>;
|
|
52
36
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
53
|
-
icon: Schema.optional<
|
|
54
|
-
|
|
37
|
+
icon: Schema.optional<Schema.Struct<{
|
|
38
|
+
key: Schema.filter<typeof Schema.String>;
|
|
39
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
40
|
+
}>>;
|
|
41
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
42
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
55
43
|
/** Plugin version (semver). Sourced from the publishing project's `package.json`. */
|
|
56
44
|
version: Schema.filter<typeof Schema.String>;
|
|
57
45
|
/**
|
|
@@ -59,154 +47,253 @@ export declare const PluginManifestSchema: Schema.Struct<{
|
|
|
59
47
|
* Must include {@link PLUGIN_ENTRY_FILENAME}; consumers verify on parse.
|
|
60
48
|
*/
|
|
61
49
|
assets: Schema.filter<Schema.Array$<typeof Schema.String>>;
|
|
50
|
+
/** Declared dependencies resolved to installed versions at build time (SDK-compat source). */
|
|
51
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
62
52
|
}>;
|
|
63
53
|
export type PluginManifest = Schema.Schema.Type<typeof PluginManifestSchema>;
|
|
64
54
|
/**
|
|
65
|
-
*
|
|
55
|
+
* A single installable release of a plugin, projected from a `package.release`
|
|
56
|
+
* ATProto record.
|
|
66
57
|
*/
|
|
67
|
-
export declare const
|
|
68
|
-
/**
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
|
|
72
|
-
|
|
58
|
+
export declare const PluginReleaseSchema: Schema.Struct<{
|
|
59
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
60
|
+
version: Schema.filter<typeof Schema.String>;
|
|
61
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
62
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
63
|
+
/**
|
|
64
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
65
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
66
|
+
*/
|
|
67
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
68
|
+
}>;
|
|
69
|
+
export type PluginRelease = Schema.Schema.Type<typeof PluginReleaseSchema>;
|
|
70
|
+
/**
|
|
71
|
+
* Verbatim content of a `package.profile` ATProto record. `key` is the record's rkey (a reverse-domain
|
|
72
|
+
* NSID), denormalized into the body. Version-independent identity + display metadata; provenance
|
|
73
|
+
* (`author`) is resolved separately from the publisher DID/handle.
|
|
74
|
+
*/
|
|
75
|
+
export declare const PluginProfileSchema: Schema.Struct<{
|
|
76
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
77
|
+
key: Schema.filter<typeof Schema.String>;
|
|
78
|
+
/** Plugin display name. */
|
|
79
|
+
name: Schema.filter<typeof Schema.String>;
|
|
80
|
+
/** Short description of plugin functionality. */
|
|
81
|
+
description: Schema.optional<typeof Schema.String>;
|
|
82
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
83
|
+
homePage: Schema.optional<typeof Schema.String>;
|
|
84
|
+
/** Source repository URL. */
|
|
85
|
+
source: Schema.optional<typeof Schema.String>;
|
|
86
|
+
/** Tags to help categorize the plugin. */
|
|
87
|
+
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
88
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
89
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
90
|
+
light: Schema.optional<typeof Schema.String>;
|
|
91
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
92
|
+
}>>>;
|
|
93
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
94
|
+
icon: Schema.optional<Schema.Struct<{
|
|
95
|
+
key: Schema.filter<typeof Schema.String>;
|
|
96
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
97
|
+
}>>;
|
|
98
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
99
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
100
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
101
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
102
|
+
}>;
|
|
103
|
+
export type PluginProfile = Schema.Schema.Type<typeof PluginProfileSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* A single hydrated plugin entry returned by `GET /registry/plugins`.
|
|
106
|
+
*
|
|
107
|
+
* This is an indexer-assembled *view* — analogous to emdash's `PackageView` — projected
|
|
108
|
+
* from four ATProto record types: `package.profile`, `package.release`,
|
|
109
|
+
* `publisher.profile`, and `publisher.verification`. It is NOT a direct serialization
|
|
110
|
+
* of any single ATProto record.
|
|
111
|
+
*
|
|
112
|
+
* Design notes:
|
|
113
|
+
* - `profile.key` is required to be a valid NSID (e.g. `org.dxos.plugin.excalidraw`), making it
|
|
114
|
+
* the single identifier for both PDS addressing and the composer runtime plugin id.
|
|
115
|
+
* `DXN.make(profile.key, latestVersion)` reconstructs the canonical plugin DXN.
|
|
116
|
+
* - `releases` inlines all known versions, eliminating a separate versions round-trip for
|
|
117
|
+
* the version picker. Ordered newest-first.
|
|
118
|
+
* - `latestVersion` is a convenience pointer into `releases` indicating the recommended
|
|
119
|
+
* install target.
|
|
120
|
+
*/
|
|
121
|
+
export declare const PluginViewSchema: Schema.Struct<{
|
|
122
|
+
/**
|
|
123
|
+
* `at://` URI of the source `package.profile` record.
|
|
124
|
+
* Globally unique and stable — never changes after the record is published.
|
|
125
|
+
*/
|
|
126
|
+
uri: Schema.filter<typeof Schema.String>;
|
|
127
|
+
/** Publisher DID, e.g. `did:plc:abc…`. Cryptographic identity; never changes. */
|
|
128
|
+
did: Schema.filter<typeof Schema.String>;
|
|
129
|
+
/**
|
|
130
|
+
* Publisher AT Protocol handle at index time, e.g. `alice.bsky.social`.
|
|
131
|
+
* Display-only — handles can be reassigned; never use as a stable key.
|
|
132
|
+
*/
|
|
133
|
+
handle: Schema.optional<typeof Schema.String>;
|
|
134
|
+
/** Unix ms when the indexer last assembled this entry. */
|
|
135
|
+
indexedAt: typeof Schema.Number;
|
|
136
|
+
/**
|
|
137
|
+
* Trust labels derived from curator `publisher.verification` records.
|
|
138
|
+
* An empty array means the entry has no verification signal.
|
|
139
|
+
*/
|
|
140
|
+
labels: Schema.Array$<typeof Schema.String>;
|
|
141
|
+
profile: Schema.Struct<{
|
|
142
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
143
|
+
key: Schema.filter<typeof Schema.String>;
|
|
144
|
+
/** Plugin display name. */
|
|
73
145
|
name: Schema.filter<typeof Schema.String>;
|
|
146
|
+
/** Short description of plugin functionality. */
|
|
74
147
|
description: Schema.optional<typeof Schema.String>;
|
|
75
|
-
|
|
148
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
76
149
|
homePage: Schema.optional<typeof Schema.String>;
|
|
150
|
+
/** Source repository URL. */
|
|
77
151
|
source: Schema.optional<typeof Schema.String>;
|
|
78
|
-
|
|
152
|
+
/** Tags to help categorize the plugin. */
|
|
79
153
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
80
|
-
|
|
81
|
-
|
|
154
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
155
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
156
|
+
light: Schema.optional<typeof Schema.String>;
|
|
157
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
158
|
+
}>>>;
|
|
159
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
160
|
+
icon: Schema.optional<Schema.Struct<{
|
|
161
|
+
key: Schema.filter<typeof Schema.String>;
|
|
162
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
163
|
+
}>>;
|
|
164
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
165
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
166
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
167
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
82
168
|
}>;
|
|
83
169
|
/**
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
|
|
170
|
+
* All known releases for this package, ordered newest-first.
|
|
171
|
+
* Powers the version picker directly — no separate endpoint needed.
|
|
172
|
+
*/
|
|
173
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
174
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
175
|
+
version: Schema.filter<typeof Schema.String>;
|
|
176
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
177
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
178
|
+
/**
|
|
179
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
180
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
181
|
+
*/
|
|
182
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
183
|
+
}>>;
|
|
184
|
+
/**
|
|
185
|
+
* The latest (recommended) release version. Always references an entry in `releases`.
|
|
186
|
+
* Used by the host to determine whether an update is available.
|
|
87
187
|
*/
|
|
88
|
-
|
|
89
|
-
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
90
|
-
releaseTag: typeof Schema.String;
|
|
91
|
-
/** Health signal set by the service when an entry fails to refresh. */
|
|
92
|
-
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
93
|
-
/** Unix ms when this entry was last successfully hydrated. */
|
|
94
|
-
hydratedAt: typeof Schema.Number;
|
|
188
|
+
latestVersion: Schema.filter<typeof Schema.String>;
|
|
95
189
|
}>;
|
|
96
|
-
export type
|
|
190
|
+
export type PluginView = Schema.Schema.Type<typeof PluginViewSchema>;
|
|
97
191
|
/**
|
|
98
192
|
* Response body of `GET /registry/plugins`.
|
|
99
193
|
*/
|
|
100
194
|
export declare const GetPluginsResponseBodySchema: Schema.Struct<{
|
|
101
|
-
/** Wire-format schema version, pinned to
|
|
102
|
-
version: Schema.Literal<[
|
|
103
|
-
/** Hydrated entries.
|
|
195
|
+
/** Wire-format schema version, pinned to 2. */
|
|
196
|
+
version: Schema.Literal<[2]>;
|
|
197
|
+
/** Hydrated entries. */
|
|
104
198
|
plugins: Schema.Array$<Schema.Struct<{
|
|
105
|
-
/**
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
199
|
+
/**
|
|
200
|
+
* `at://` URI of the source `package.profile` record.
|
|
201
|
+
* Globally unique and stable — never changes after the record is published.
|
|
202
|
+
*/
|
|
203
|
+
uri: Schema.filter<typeof Schema.String>;
|
|
204
|
+
/** Publisher DID, e.g. `did:plc:abc…`. Cryptographic identity; never changes. */
|
|
205
|
+
did: Schema.filter<typeof Schema.String>;
|
|
206
|
+
/**
|
|
207
|
+
* Publisher AT Protocol handle at index time, e.g. `alice.bsky.social`.
|
|
208
|
+
* Display-only — handles can be reassigned; never use as a stable key.
|
|
209
|
+
*/
|
|
210
|
+
handle: Schema.optional<typeof Schema.String>;
|
|
211
|
+
/** Unix ms when the indexer last assembled this entry. */
|
|
212
|
+
indexedAt: typeof Schema.Number;
|
|
213
|
+
/**
|
|
214
|
+
* Trust labels derived from curator `publisher.verification` records.
|
|
215
|
+
* An empty array means the entry has no verification signal.
|
|
216
|
+
*/
|
|
217
|
+
labels: Schema.Array$<typeof Schema.String>;
|
|
218
|
+
profile: Schema.Struct<{
|
|
219
|
+
/** Reverse-domain NSID — the plugin's globally-unique key and the `package.profile` rkey (e.g. `org.dxos.plugin.excalidraw`). */
|
|
220
|
+
key: Schema.filter<typeof Schema.String>;
|
|
221
|
+
/** Plugin display name. */
|
|
110
222
|
name: Schema.filter<typeof Schema.String>;
|
|
223
|
+
/** Short description of plugin functionality. */
|
|
111
224
|
description: Schema.optional<typeof Schema.String>;
|
|
112
|
-
|
|
225
|
+
/** Publisher's homepage or plugin documentation URL. */
|
|
113
226
|
homePage: Schema.optional<typeof Schema.String>;
|
|
227
|
+
/** Source repository URL. */
|
|
114
228
|
source: Schema.optional<typeof Schema.String>;
|
|
115
|
-
|
|
229
|
+
/** Tags to help categorize the plugin. */
|
|
116
230
|
tags: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
117
|
-
|
|
118
|
-
|
|
231
|
+
/** Preview images — theme-keyed screenshot URLs shown on the plugin's card. */
|
|
232
|
+
screenshots: Schema.optional<Schema.Array$<Schema.Struct<{
|
|
233
|
+
light: Schema.optional<typeof Schema.String>;
|
|
234
|
+
dark: Schema.optional<typeof Schema.String>;
|
|
235
|
+
}>>>;
|
|
236
|
+
/** Icon identifier resolvable by `@ch-ui/icons` (e.g. `ph--sparkle--regular`), with an optional palette hue. */
|
|
237
|
+
icon: Schema.optional<Schema.Struct<{
|
|
238
|
+
key: Schema.filter<typeof Schema.String>;
|
|
239
|
+
hue: Schema.optional<typeof Schema.String>;
|
|
240
|
+
}>>;
|
|
241
|
+
/** Composer plugin ids this plugin depends on at runtime (NSIDs). Author-declared, version-independent. */
|
|
242
|
+
dependsOn: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
243
|
+
/** Relative path inside the package to a bundled MDL spec (consumed by plugin-code). */
|
|
244
|
+
spec: Schema.optional<typeof Schema.String>;
|
|
119
245
|
}>;
|
|
120
246
|
/**
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
|
|
247
|
+
* All known releases for this package, ordered newest-first.
|
|
248
|
+
* Powers the version picker directly — no separate endpoint needed.
|
|
249
|
+
*/
|
|
250
|
+
releases: Schema.Array$<Schema.Struct<{
|
|
251
|
+
/** Semver version string, e.g. `0.8.3`. */
|
|
252
|
+
version: Schema.filter<typeof Schema.String>;
|
|
253
|
+
/** URL the host dynamic-imports to install this specific version. */
|
|
254
|
+
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
255
|
+
/**
|
|
256
|
+
* Dependencies this release was built against, resolved to installed versions. The host derives
|
|
257
|
+
* SDK compatibility from the `@dxos/*` subset to decide whether to offer this release.
|
|
258
|
+
*/
|
|
259
|
+
dependencies: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
260
|
+
}>>;
|
|
261
|
+
/**
|
|
262
|
+
* The latest (recommended) release version. Always references an entry in `releases`.
|
|
263
|
+
* Used by the host to determine whether an update is available.
|
|
124
264
|
*/
|
|
125
|
-
|
|
126
|
-
/** Release tag the entry was resolved from (e.g. `v0.1.0`). Empty string for `manifestUrl` entries. */
|
|
127
|
-
releaseTag: typeof Schema.String;
|
|
128
|
-
/** Health signal set by the service when an entry fails to refresh. */
|
|
129
|
-
health: Schema.Literal<["ok", "release-missing", "manifest-invalid", "repo-unavailable"]>;
|
|
130
|
-
/** Unix ms when this entry was last successfully hydrated. */
|
|
131
|
-
hydratedAt: typeof Schema.Number;
|
|
265
|
+
latestVersion: Schema.filter<typeof Schema.String>;
|
|
132
266
|
}>>;
|
|
133
|
-
/** Unix ms timestamp of the most recent successful
|
|
267
|
+
/** Unix ms timestamp of the most recent successful index cycle. */
|
|
134
268
|
refreshedAt: typeof Schema.Number;
|
|
135
269
|
}>;
|
|
136
270
|
export type GetPluginsResponseBody = Schema.Schema.Type<typeof GetPluginsResponseBodySchema>;
|
|
137
|
-
/**
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
*/
|
|
144
|
-
export declare const PluginVersionSchema: Schema.Struct<{
|
|
145
|
-
/** Release tag (e.g. `v0.1.21`). Stable identifier for this version. */
|
|
146
|
-
tag: Schema.filter<typeof Schema.String>;
|
|
147
|
-
/**
|
|
148
|
-
* URL of this version's `manifest.json`. Matches the shape of {@link PluginEntrySchema.fields.moduleUrl}
|
|
149
|
-
* but pinned to a specific release rather than the latest. Composer's URL loader fetches
|
|
150
|
-
* this when the user installs / rolls back to this version.
|
|
151
|
-
*/
|
|
152
|
-
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
153
|
-
/** Unix ms when the version was released. Optional — services that lack this signal can omit. */
|
|
154
|
-
releasedAt: Schema.optional<typeof Schema.Number>;
|
|
271
|
+
/** Content of a `publisher.profile` ATProto record. Display metadata for a publisher DID. */
|
|
272
|
+
export declare const PublisherProfileSchema: Schema.Struct<{
|
|
273
|
+
displayName: Schema.filter<typeof Schema.String>;
|
|
274
|
+
bio: Schema.optional<typeof Schema.String>;
|
|
275
|
+
homepageUrl: Schema.optional<typeof Schema.String>;
|
|
276
|
+
contact: Schema.optional<typeof Schema.String>;
|
|
155
277
|
}>;
|
|
156
|
-
export type
|
|
278
|
+
export type PublisherProfile = Schema.Schema.Type<typeof PublisherProfileSchema>;
|
|
157
279
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
160
|
-
* `:repo` is the GitHub `owner/name` form, URL-encoded (so `/` is escaped).
|
|
161
|
-
* Returns all hydratable releases for the repo, newest first; clients display them
|
|
162
|
-
* in the version picker for install / roll-back. Unauthenticated; same surface area
|
|
163
|
-
* as `GET /registry/plugins`.
|
|
280
|
+
* Content of a `publisher.verification` record written by the curator DID.
|
|
281
|
+
* Links a publisher DID to a trusted AT Protocol handle.
|
|
164
282
|
*/
|
|
165
|
-
export declare const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/** Release tag (e.g. `v0.1.21`). Stable identifier for this version. */
|
|
171
|
-
tag: Schema.filter<typeof Schema.String>;
|
|
172
|
-
/**
|
|
173
|
-
* URL of this version's `manifest.json`. Matches the shape of {@link PluginEntrySchema.fields.moduleUrl}
|
|
174
|
-
* but pinned to a specific release rather than the latest. Composer's URL loader fetches
|
|
175
|
-
* this when the user installs / rolls back to this version.
|
|
176
|
-
*/
|
|
177
|
-
moduleUrl: Schema.filter<typeof Schema.String>;
|
|
178
|
-
/** Unix ms when the version was released. Optional — services that lack this signal can omit. */
|
|
179
|
-
releasedAt: Schema.optional<typeof Schema.Number>;
|
|
180
|
-
}>>;
|
|
181
|
-
/** Unix ms timestamp of the most recent successful refresh cycle for this repo. */
|
|
182
|
-
refreshedAt: typeof Schema.Number;
|
|
283
|
+
export declare const PublisherVerificationSchema: Schema.Struct<{
|
|
284
|
+
subject: Schema.filter<typeof Schema.String>;
|
|
285
|
+
handle: Schema.filter<typeof Schema.String>;
|
|
286
|
+
displayName: Schema.filter<typeof Schema.String>;
|
|
287
|
+
createdAt: Schema.filter<typeof Schema.String>;
|
|
183
288
|
}>;
|
|
184
|
-
export type
|
|
185
|
-
/**
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
export declare const
|
|
194
|
-
repo: Schema.filter<typeof Schema.String>;
|
|
195
|
-
}>, Schema.Struct<{
|
|
196
|
-
manifestUrl: Schema.filter<typeof Schema.String>;
|
|
197
|
-
}>]>;
|
|
198
|
-
export type RegistryEntry = Schema.Schema.Type<typeof RegistryEntrySchema>;
|
|
199
|
-
/**
|
|
200
|
-
* Shape of the catalog manifest published in the upstream community-plugins repo.
|
|
201
|
-
* Extra keys (e.g. `$schema`) are permitted.
|
|
202
|
-
*/
|
|
203
|
-
export declare const RegistryManifestSchema: Schema.TypeLiteral<{
|
|
204
|
-
version: Schema.Literal<[1]>;
|
|
205
|
-
plugins: Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
206
|
-
repo: Schema.filter<typeof Schema.String>;
|
|
207
|
-
}>, Schema.Struct<{
|
|
208
|
-
manifestUrl: Schema.filter<typeof Schema.String>;
|
|
209
|
-
}>]>>;
|
|
210
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
|
|
211
|
-
export type RegistryManifest = Schema.Schema.Type<typeof RegistryManifestSchema>;
|
|
289
|
+
export type PublisherVerification = Schema.Schema.Type<typeof PublisherVerificationSchema>;
|
|
290
|
+
/** NSID constants for the four `org.dxos.experimental.*` record collections. */
|
|
291
|
+
export declare const NSID: {
|
|
292
|
+
readonly PackageProfile: 'org.dxos.experimental.package.profile';
|
|
293
|
+
readonly PackageRelease: 'org.dxos.experimental.package.release';
|
|
294
|
+
readonly PublisherProfile: 'org.dxos.experimental.publisher.profile';
|
|
295
|
+
readonly PublisherVerification: 'org.dxos.experimental.publisher.verification';
|
|
296
|
+
};
|
|
297
|
+
export type RegistryNsid = (typeof NSID)[keyof typeof NSID];
|
|
298
|
+
export declare const ALL_NSIDS: readonly RegistryNsid[];
|
|
212
299
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/edge/registry.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"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