@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.
Files changed (35) hide show
  1. package/dist/src/Config2.d.ts +91 -0
  2. package/dist/src/Config2.d.ts.map +1 -0
  3. package/dist/src/Config2.js +56 -0
  4. package/dist/src/Config2.js.map +1 -0
  5. package/dist/src/edge/edge.d.ts +82 -0
  6. package/dist/src/edge/edge.d.ts.map +1 -1
  7. package/dist/src/edge/edge.js +50 -0
  8. package/dist/src/edge/edge.js.map +1 -1
  9. package/dist/src/edge/registry.d.ts +231 -144
  10. package/dist/src/edge/registry.d.ts.map +1 -1
  11. package/dist/src/edge/registry.js +126 -87
  12. package/dist/src/edge/registry.js.map +1 -1
  13. package/dist/src/index.d.ts +1 -0
  14. package/dist/src/index.d.ts.map +1 -1
  15. package/dist/src/index.js +1 -0
  16. package/dist/src/index.js.map +1 -1
  17. package/dist/src/proto/gen/dxos/client/services.d.ts +162 -162
  18. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  19. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  20. package/dist/src/proto/gen/google/protobuf.d.ts +27 -27
  21. package/dist/src/proto/gen/google/protobuf.d.ts.map +1 -1
  22. package/dist/src/proto/gen/google/protobuf.js.map +1 -1
  23. package/dist/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +10 -9
  25. package/src/Config2.ts +68 -0
  26. package/src/edge/edge.ts +62 -0
  27. package/src/edge/registry.ts +142 -101
  28. package/src/index.ts +1 -0
  29. package/src/lexicons/org.dxos.experimental/README.md +29 -0
  30. package/src/lexicons/org.dxos.experimental/package.profile.json +87 -0
  31. package/src/lexicons/org.dxos.experimental/package.release.json +45 -0
  32. package/src/lexicons/org.dxos.experimental/publisher.profile.json +37 -0
  33. package/src/lexicons/org.dxos.experimental/publisher.verification.json +36 -0
  34. package/src/proto/gen/dxos/client/services.ts +162 -162
  35. package/src/proto/gen/google/protobuf.ts +27 -27
@@ -0,0 +1,45 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "org.dxos.experimental.package.release",
4
+ "defs": {
5
+ "main": {
6
+ "type": "record",
7
+ "key": "any",
8
+ "description": "Release record for a versioned artifact of an org.dxos.experimental.package.profile. Conventionally keyed as '<key>:<version>'. One record per version; conceptually single-write (a new version is a new record), though the author retains write access — integrity is anchored by manifestHash rather than enforced immutability.",
9
+ "record": {
10
+ "type": "object",
11
+ "required": ["package", "version", "moduleUrl", "createdAt"],
12
+ "properties": {
13
+ "package": {
14
+ "type": "string",
15
+ "description": "Key of the parent package.profile record authored by the same DID.",
16
+ "maxLength": 63
17
+ },
18
+ "version": {
19
+ "type": "string",
20
+ "description": "Semver subset without build metadata. Pre-release suffixes allowed (e.g. 1.2.3-rc.1).",
21
+ "maxLength": 32
22
+ },
23
+ "moduleUrl": {
24
+ "type": "string",
25
+ "format": "uri",
26
+ "description": "HTTPS URL of the module entrypoint (or manifest.json). v0 trusts the publisher; content addressing is a follow-on."
27
+ },
28
+ "manifestHash": {
29
+ "type": "string",
30
+ "description": "Multibase-encoded multihash of the module manifest. SHA2-256 with base58btc multibase prefix is preferred (e.g. 'zQm...' — 47 chars). The registry indexer MAY fetch the manifest and verify the hash at index time.",
31
+ "maxLength": 128
32
+ },
33
+ "dependencies": {
34
+ "type": "unknown",
35
+ "description": "Optional snapshot of the plugin's declared dependencies resolved to concrete installed versions at build time ({ name: version }). The app-view / Composer derive SDK compatibility from the shared (externalized @dxos/*) subset. Typed 'unknown' because Lexicon has no string-keyed map primitive; the canonical shape is a Record<string,string> enforced by the registry validator."
36
+ },
37
+ "createdAt": {
38
+ "type": "string",
39
+ "format": "datetime"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ }
45
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "org.dxos.experimental.publisher.profile",
4
+ "defs": {
5
+ "main": {
6
+ "type": "record",
7
+ "key": "literal:self",
8
+ "description": "Identity-level metadata about a registry publisher. One record per DID, rkey = 'self'.",
9
+ "record": {
10
+ "type": "object",
11
+ "required": ["displayName"],
12
+ "properties": {
13
+ "displayName": {
14
+ "type": "string",
15
+ "description": "Human-readable name shown alongside the publisher's packages.",
16
+ "maxLength": 128
17
+ },
18
+ "bio": {
19
+ "type": "string",
20
+ "description": "Optional short description.",
21
+ "maxLength": 512
22
+ },
23
+ "homepageUrl": {
24
+ "type": "string",
25
+ "format": "uri",
26
+ "description": "Optional canonical homepage."
27
+ },
28
+ "contact": {
29
+ "type": "string",
30
+ "description": "Optional contact channel (email, handle, etc.).",
31
+ "maxLength": 256
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "lexicon": 1,
3
+ "id": "org.dxos.experimental.publisher.verification",
4
+ "defs": {
5
+ "main": {
6
+ "type": "record",
7
+ "key": "any",
8
+ "description": "Trust attestation issued by a curator DID about a verified publisher. The rkey MUST equal the verified publisher DID (enforced by the registry indexer — records where rkey ≠ subject are rejected). Records authored by anyone other than the configured curator DID are also ignored.",
9
+ "record": {
10
+ "type": "object",
11
+ "required": ["subject", "handle", "displayName", "createdAt"],
12
+ "properties": {
13
+ "subject": {
14
+ "type": "string",
15
+ "format": "did",
16
+ "description": "DID of the verified publisher. Must match the rkey for tamper resistance."
17
+ },
18
+ "handle": {
19
+ "type": "string",
20
+ "format": "handle",
21
+ "description": "Publisher's atproto handle at the time of verification. Re-issued on handle change."
22
+ },
23
+ "displayName": {
24
+ "type": "string",
25
+ "description": "Display name bound by this verification.",
26
+ "maxLength": 128
27
+ },
28
+ "createdAt": {
29
+ "type": "string",
30
+ "format": "datetime"
31
+ }
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
@@ -65,168 +65,6 @@ import * as dxos_value from "../value.js";
65
65
  import * as example_testing_data from "../../example/testing/data.js";
66
66
  import * as example_testing_rpc from "../../example/testing/rpc.js";
67
67
  import * as google_protobuf from "../../google/protobuf.js";
68
- /**
69
- * Defined in: `../../../dxos/client/queue.proto`
70
- */
71
- export interface QueueQuery {
72
- spaceId: string;
73
- /**
74
- * Options:
75
- * - proto3_optional = true
76
- */
77
- queuesNamespace?: string;
78
- /**
79
- * Queries the whole space if missing.
80
- */
81
- queueIds?: string[];
82
- /**
83
- * Filter items after this cursor. Exclusive.
84
- *
85
- * Options:
86
- * - proto3_optional = true
87
- */
88
- after?: string;
89
- /**
90
- * Filter items before this cursor. Exclusive.
91
- *
92
- * Options:
93
- * - proto3_optional = true
94
- */
95
- before?: string;
96
- /**
97
- * Filter items after this position. Inclusive.
98
- *
99
- * Options:
100
- * - proto3_optional = true
101
- */
102
- beginPosition?: string;
103
- /**
104
- * Filter items before this position. Exclusive.
105
- *
106
- * Options:
107
- * - proto3_optional = true
108
- */
109
- endPosition?: string;
110
- /**
111
- * Options:
112
- * - proto3_optional = true
113
- */
114
- limit?: number;
115
- /**
116
- * Options:
117
- * - proto3_optional = true
118
- */
119
- reverse?: boolean;
120
- objectIds?: string[];
121
- }
122
- /**
123
- * Defined in: `../../../dxos/client/queue.proto`
124
- */
125
- export interface QueueQueryResult {
126
- /**
127
- * coerces `undefined` to `null`, corrupting optional fields.
128
- */
129
- objects?: string[];
130
- /**
131
- * Cursor to query the next items. Can be passed to `after` in query to keep querying.
132
- */
133
- nextCursor: string;
134
- prevCursor: string;
135
- }
136
- /**
137
- * Defined in: `../../../dxos/client/queue.proto`
138
- */
139
- export interface QueryQueueRequest {
140
- query: QueueQuery;
141
- }
142
- /**
143
- * Defined in: `../../../dxos/client/queue.proto`
144
- */
145
- export interface InsertIntoQueueRequest {
146
- subspaceTag: string;
147
- spaceId: string;
148
- queueId: string;
149
- /**
150
- * JSON-encoded object payloads. Each entry is a serialized ObjectJSON.
151
- */
152
- objects?: string[];
153
- }
154
- /**
155
- * Defined in: `../../../dxos/client/queue.proto`
156
- */
157
- export interface DeleteFromQueueRequest {
158
- subspaceTag: string;
159
- spaceId: string;
160
- queueId: string;
161
- objectIds?: string[];
162
- }
163
- /**
164
- * Defined in: `../../../dxos/client/queue.proto`
165
- */
166
- export interface SyncQueueRequest {
167
- subspaceTag: string;
168
- spaceId: string;
169
- queueId: string;
170
- /**
171
- * Whether to push local changes to the server. Defaults to true.
172
- *
173
- * Options:
174
- * - proto3_optional = true
175
- */
176
- shouldPush?: boolean;
177
- /**
178
- * Whether to pull remote changes from the server. Defaults to true.
179
- *
180
- * Options:
181
- * - proto3_optional = true
182
- */
183
- shouldPull?: boolean;
184
- }
185
- /**
186
- * Defined in: `../../../dxos/client/queue.proto`
187
- */
188
- export interface GetSyncStateRequest {
189
- spaceId: string;
190
- /**
191
- * If empty, returns state for all namespaces synced by the client.
192
- */
193
- namespaces?: string[];
194
- }
195
- /**
196
- * Defined in: `../../../dxos/client/queue.proto`
197
- */
198
- export interface QueueNamespaceSyncState {
199
- namespace: string;
200
- /**
201
- * Blocks still to pull from remote. 0 when caught up.
202
- */
203
- blocksToPull: string;
204
- /**
205
- * Unpositioned blocks still to push to remote. 0 when caught up.
206
- */
207
- blocksToPush: string;
208
- /**
209
- * Total blocks stored locally for this namespace in the space.
210
- */
211
- totalBlocks: string;
212
- }
213
- /**
214
- * Defined in: `../../../dxos/client/queue.proto`
215
- */
216
- export interface GetSyncStateResponse {
217
- namespaces?: QueueNamespaceSyncState[];
218
- }
219
- /**
220
- * Defined in:
221
- * {@link file://./../../../dxos/client/queue.proto}
222
- */
223
- export interface QueueService {
224
- queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
225
- insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
226
- deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
227
- syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
228
- getSyncState: (request: GetSyncStateRequest, options?: RequestOptions) => Promise<GetSyncStateResponse>;
229
- }
230
68
  /**
231
69
  * Defined in:
232
70
  * {@link file://./../../../dxos/client/services.proto}
@@ -1231,6 +1069,168 @@ export namespace QueryAgentStatusResponse {
1231
1069
  NOT_FOUND = 3
1232
1070
  }
1233
1071
  }
1072
+ /**
1073
+ * Defined in: `../../../dxos/client/queue.proto`
1074
+ */
1075
+ export interface QueueQuery {
1076
+ spaceId: string;
1077
+ /**
1078
+ * Options:
1079
+ * - proto3_optional = true
1080
+ */
1081
+ queuesNamespace?: string;
1082
+ /**
1083
+ * Queries the whole space if missing.
1084
+ */
1085
+ queueIds?: string[];
1086
+ /**
1087
+ * Filter items after this cursor. Exclusive.
1088
+ *
1089
+ * Options:
1090
+ * - proto3_optional = true
1091
+ */
1092
+ after?: string;
1093
+ /**
1094
+ * Filter items before this cursor. Exclusive.
1095
+ *
1096
+ * Options:
1097
+ * - proto3_optional = true
1098
+ */
1099
+ before?: string;
1100
+ /**
1101
+ * Filter items after this position. Inclusive.
1102
+ *
1103
+ * Options:
1104
+ * - proto3_optional = true
1105
+ */
1106
+ beginPosition?: string;
1107
+ /**
1108
+ * Filter items before this position. Exclusive.
1109
+ *
1110
+ * Options:
1111
+ * - proto3_optional = true
1112
+ */
1113
+ endPosition?: string;
1114
+ /**
1115
+ * Options:
1116
+ * - proto3_optional = true
1117
+ */
1118
+ limit?: number;
1119
+ /**
1120
+ * Options:
1121
+ * - proto3_optional = true
1122
+ */
1123
+ reverse?: boolean;
1124
+ objectIds?: string[];
1125
+ }
1126
+ /**
1127
+ * Defined in: `../../../dxos/client/queue.proto`
1128
+ */
1129
+ export interface QueueQueryResult {
1130
+ /**
1131
+ * coerces `undefined` to `null`, corrupting optional fields.
1132
+ */
1133
+ objects?: string[];
1134
+ /**
1135
+ * Cursor to query the next items. Can be passed to `after` in query to keep querying.
1136
+ */
1137
+ nextCursor: string;
1138
+ prevCursor: string;
1139
+ }
1140
+ /**
1141
+ * Defined in: `../../../dxos/client/queue.proto`
1142
+ */
1143
+ export interface QueryQueueRequest {
1144
+ query: QueueQuery;
1145
+ }
1146
+ /**
1147
+ * Defined in: `../../../dxos/client/queue.proto`
1148
+ */
1149
+ export interface InsertIntoQueueRequest {
1150
+ subspaceTag: string;
1151
+ spaceId: string;
1152
+ queueId: string;
1153
+ /**
1154
+ * JSON-encoded object payloads. Each entry is a serialized ObjectJSON.
1155
+ */
1156
+ objects?: string[];
1157
+ }
1158
+ /**
1159
+ * Defined in: `../../../dxos/client/queue.proto`
1160
+ */
1161
+ export interface DeleteFromQueueRequest {
1162
+ subspaceTag: string;
1163
+ spaceId: string;
1164
+ queueId: string;
1165
+ objectIds?: string[];
1166
+ }
1167
+ /**
1168
+ * Defined in: `../../../dxos/client/queue.proto`
1169
+ */
1170
+ export interface SyncQueueRequest {
1171
+ subspaceTag: string;
1172
+ spaceId: string;
1173
+ queueId: string;
1174
+ /**
1175
+ * Whether to push local changes to the server. Defaults to true.
1176
+ *
1177
+ * Options:
1178
+ * - proto3_optional = true
1179
+ */
1180
+ shouldPush?: boolean;
1181
+ /**
1182
+ * Whether to pull remote changes from the server. Defaults to true.
1183
+ *
1184
+ * Options:
1185
+ * - proto3_optional = true
1186
+ */
1187
+ shouldPull?: boolean;
1188
+ }
1189
+ /**
1190
+ * Defined in: `../../../dxos/client/queue.proto`
1191
+ */
1192
+ export interface GetSyncStateRequest {
1193
+ spaceId: string;
1194
+ /**
1195
+ * If empty, returns state for all namespaces synced by the client.
1196
+ */
1197
+ namespaces?: string[];
1198
+ }
1199
+ /**
1200
+ * Defined in: `../../../dxos/client/queue.proto`
1201
+ */
1202
+ export interface QueueNamespaceSyncState {
1203
+ namespace: string;
1204
+ /**
1205
+ * Blocks still to pull from remote. 0 when caught up.
1206
+ */
1207
+ blocksToPull: string;
1208
+ /**
1209
+ * Unpositioned blocks still to push to remote. 0 when caught up.
1210
+ */
1211
+ blocksToPush: string;
1212
+ /**
1213
+ * Total blocks stored locally for this namespace in the space.
1214
+ */
1215
+ totalBlocks: string;
1216
+ }
1217
+ /**
1218
+ * Defined in: `../../../dxos/client/queue.proto`
1219
+ */
1220
+ export interface GetSyncStateResponse {
1221
+ namespaces?: QueueNamespaceSyncState[];
1222
+ }
1223
+ /**
1224
+ * Defined in:
1225
+ * {@link file://./../../../dxos/client/queue.proto}
1226
+ */
1227
+ export interface QueueService {
1228
+ queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
1229
+ insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
1230
+ deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
1231
+ syncQueue: (request: SyncQueueRequest, options?: RequestOptions) => Promise<void>;
1232
+ getSyncState: (request: GetSyncStateRequest, options?: RequestOptions) => Promise<GetSyncStateResponse>;
1233
+ }
1234
1234
  /**
1235
1235
  * Defined in: `../../../dxos/client/logging.proto`
1236
1236
  */
@@ -92,33 +92,6 @@ export interface Timestamp {
92
92
  seconds: string;
93
93
  nanos: number;
94
94
  }
95
- export interface DoubleValue {
96
- value: number;
97
- }
98
- export interface FloatValue {
99
- value: number;
100
- }
101
- export interface Int64Value {
102
- value: string;
103
- }
104
- export interface UInt64Value {
105
- value: string;
106
- }
107
- export interface Int32Value {
108
- value: number;
109
- }
110
- export interface UInt32Value {
111
- value: number;
112
- }
113
- export interface BoolValue {
114
- value: boolean;
115
- }
116
- export interface StringValue {
117
- value: string;
118
- }
119
- export interface BytesValue {
120
- value: Uint8Array;
121
- }
122
95
  export interface FileDescriptorSet {
123
96
  file?: FileDescriptorProto[];
124
97
  }
@@ -654,3 +627,30 @@ export enum SymbolVisibility {
654
627
  VISIBILITY_LOCAL = 1,
655
628
  VISIBILITY_EXPORT = 2
656
629
  }
630
+ export interface DoubleValue {
631
+ value: number;
632
+ }
633
+ export interface FloatValue {
634
+ value: number;
635
+ }
636
+ export interface Int64Value {
637
+ value: string;
638
+ }
639
+ export interface UInt64Value {
640
+ value: string;
641
+ }
642
+ export interface Int32Value {
643
+ value: number;
644
+ }
645
+ export interface UInt32Value {
646
+ value: number;
647
+ }
648
+ export interface BoolValue {
649
+ value: boolean;
650
+ }
651
+ export interface StringValue {
652
+ value: string;
653
+ }
654
+ export interface BytesValue {
655
+ value: Uint8Array;
656
+ }