@dxos/protocols 0.8.4-staging.60fe92afc8 → 0.9.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/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/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/proto/gen/dxos/client/services.ts +162 -162
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@bufbuild/protobuf": "2.11.0",
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/errors": "0.
|
|
52
|
-
"@dxos/invariant": "0.
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
49
|
+
"@dxos/codec-protobuf": "0.9.0",
|
|
50
|
+
"@dxos/effect": "0.9.0",
|
|
51
|
+
"@dxos/errors": "0.9.0",
|
|
52
|
+
"@dxos/invariant": "0.9.0",
|
|
53
|
+
"@dxos/keys": "0.9.0",
|
|
54
|
+
"@dxos/timeframe": "0.9.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@bufbuild/buf": "1.65.0",
|
|
58
58
|
"@bufbuild/protoc-gen-es": "2.11.0",
|
|
59
59
|
"effect": "3.21.3",
|
|
60
|
-
"@dxos/protobuf-compiler": "0.
|
|
60
|
+
"@dxos/protobuf-compiler": "0.9.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"effect": "3.21.3"
|
|
@@ -65,6 +65,168 @@ 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
|
+
}
|
|
68
230
|
/**
|
|
69
231
|
* Defined in:
|
|
70
232
|
* {@link file://./../../../dxos/client/services.proto}
|
|
@@ -1069,168 +1231,6 @@ export namespace QueryAgentStatusResponse {
|
|
|
1069
1231
|
NOT_FOUND = 3
|
|
1070
1232
|
}
|
|
1071
1233
|
}
|
|
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
|
*/
|