@dxos/protocols 0.8.4-main.7ace549 → 0.8.4-main.937b3ca

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 (158) hide show
  1. package/dist/src/FunctionProtocol.d.ts +6 -0
  2. package/dist/src/FunctionProtocol.d.ts.map +1 -1
  3. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts +189 -0
  4. package/dist/src/buf/proto/gen/dxos/client/queue_pb.d.ts.map +1 -0
  5. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js +39 -0
  6. package/dist/src/buf/proto/gen/dxos/client/queue_pb.js.map +1 -0
  7. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts +4 -0
  8. package/dist/src/buf/proto/gen/dxos/config_pb.d.ts.map +1 -1
  9. package/dist/src/buf/proto/gen/dxos/config_pb.js +1 -1
  10. package/dist/src/buf/proto/gen/dxos/config_pb.js.map +1 -1
  11. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts +12 -2
  12. package/dist/src/buf/proto/gen/dxos/echo/query_pb.d.ts.map +1 -1
  13. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js +1 -1
  14. package/dist/src/buf/proto/gen/dxos/echo/query_pb.js.map +1 -1
  15. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts +55 -9
  16. package/dist/src/buf/proto/gen/dxos/echo/service_pb.d.ts.map +1 -1
  17. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js +15 -5
  18. package/dist/src/buf/proto/gen/dxos/echo/service_pb.js.map +1 -1
  19. package/dist/src/buf/proto/gen/dxos/google_pb.js +1 -1
  20. package/dist/src/buf/proto/gen/dxos/google_pb.js.map +1 -1
  21. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts +1 -0
  22. package/dist/src/buf/proto/gen/dxos/iframe_pb.d.ts.map +1 -1
  23. package/dist/src/buf/proto/gen/dxos/iframe_pb.js.map +1 -1
  24. package/dist/src/buf/proto/gen/dxos/tracing_pb.js +1 -1
  25. package/dist/src/buf/proto/gen/dxos/tracing_pb.js.map +1 -1
  26. package/dist/src/edge/EdgeFunctionEnv.d.ts +35 -10
  27. package/dist/src/edge/EdgeFunctionEnv.d.ts.map +1 -1
  28. package/dist/src/edge/edge.d.ts +17 -13
  29. package/dist/src/edge/edge.d.ts.map +1 -1
  30. package/dist/src/edge/edge.js +15 -10
  31. package/dist/src/edge/edge.js.map +1 -1
  32. package/dist/src/errors/base-errors.d.ts +18 -24
  33. package/dist/src/errors/base-errors.d.ts.map +1 -1
  34. package/dist/src/errors/base-errors.js +3 -3
  35. package/dist/src/errors/base-errors.js.map +1 -1
  36. package/dist/src/errors/errors.d.ts +132 -176
  37. package/dist/src/errors/errors.d.ts.map +1 -1
  38. package/dist/src/errors/errors.js +44 -44
  39. package/dist/src/errors/errors.js.map +1 -1
  40. package/dist/src/index.d.ts +0 -1
  41. package/dist/src/index.d.ts.map +1 -1
  42. package/dist/src/index.js +0 -1
  43. package/dist/src/index.js.map +1 -1
  44. package/dist/src/proto/gen/dxos/client/services.d.ts +239 -136
  45. package/dist/src/proto/gen/dxos/client/services.d.ts.map +1 -1
  46. package/dist/src/proto/gen/dxos/client/services.js +27 -27
  47. package/dist/src/proto/gen/dxos/client/services.js.map +1 -1
  48. package/dist/src/proto/gen/dxos/config.d.ts +5 -0
  49. package/dist/src/proto/gen/dxos/config.d.ts.map +1 -1
  50. package/dist/src/proto/gen/dxos/config.js.map +1 -1
  51. package/dist/src/proto/gen/dxos/echo/query.d.ts +17 -1
  52. package/dist/src/proto/gen/dxos/echo/query.d.ts.map +1 -1
  53. package/dist/src/proto/gen/dxos/echo/query.js.map +1 -1
  54. package/dist/src/proto/gen/dxos/echo/service.d.ts +34 -8
  55. package/dist/src/proto/gen/dxos/echo/service.d.ts.map +1 -1
  56. package/dist/src/proto/gen/index.d.ts +8 -0
  57. package/dist/src/proto/gen/index.d.ts.map +1 -1
  58. package/dist/src/proto/gen/index.js +1 -1
  59. package/dist/src/proto/gen/index.js.map +1 -1
  60. package/dist/src/queue.d.ts +1 -35
  61. package/dist/src/queue.d.ts.map +1 -1
  62. package/dist/src/queue.js +1 -4
  63. package/dist/src/queue.js.map +1 -1
  64. package/dist/tsconfig.tsbuildinfo +1 -1
  65. package/package.json +19 -15
  66. package/src/FunctionProtocol.ts +6 -2
  67. package/src/buf/proto/gen/dxos/agent/dashboard_pb.ts +1 -1
  68. package/src/buf/proto/gen/dxos/agent/echo-proxy_pb.ts +1 -1
  69. package/src/buf/proto/gen/dxos/agent/epoch_pb.ts +1 -1
  70. package/src/buf/proto/gen/dxos/agent/functions_pb.ts +1 -1
  71. package/src/buf/proto/gen/dxos/bot_pb.ts +1 -1
  72. package/src/buf/proto/gen/dxos/client/invitation_pb.ts +1 -1
  73. package/src/buf/proto/gen/dxos/client/logging_pb.ts +1 -1
  74. package/src/buf/proto/gen/dxos/client/queue_pb.ts +231 -0
  75. package/src/buf/proto/gen/dxos/client/services_pb.ts +1 -1
  76. package/src/buf/proto/gen/dxos/config_pb.ts +7 -2
  77. package/src/buf/proto/gen/dxos/devtools/diagnostics_pb.ts +1 -1
  78. package/src/buf/proto/gen/dxos/devtools/host_pb.ts +1 -1
  79. package/src/buf/proto/gen/dxos/devtools/swarm_pb.ts +1 -1
  80. package/src/buf/proto/gen/dxos/echo/blob_pb.ts +1 -1
  81. package/src/buf/proto/gen/dxos/echo/feed_pb.ts +1 -1
  82. package/src/buf/proto/gen/dxos/echo/filter_pb.ts +1 -1
  83. package/src/buf/proto/gen/dxos/echo/indexing_pb.ts +1 -1
  84. package/src/buf/proto/gen/dxos/echo/metadata_pb.ts +1 -1
  85. package/src/buf/proto/gen/dxos/echo/model/document_pb.ts +1 -1
  86. package/src/buf/proto/gen/dxos/echo/model/messenger_pb.ts +1 -1
  87. package/src/buf/proto/gen/dxos/echo/model/text_pb.ts +1 -1
  88. package/src/buf/proto/gen/dxos/echo/object_pb.ts +1 -1
  89. package/src/buf/proto/gen/dxos/echo/query_pb.ts +16 -4
  90. package/src/buf/proto/gen/dxos/echo/service_pb.ts +68 -16
  91. package/src/buf/proto/gen/dxos/echo/snapshot_pb.ts +1 -1
  92. package/src/buf/proto/gen/dxos/echo/timeframe_pb.ts +1 -1
  93. package/src/buf/proto/gen/dxos/edge/calls_pb.ts +1 -1
  94. package/src/buf/proto/gen/dxos/edge/messenger_pb.ts +1 -1
  95. package/src/buf/proto/gen/dxos/edge/signal_pb.ts +1 -1
  96. package/src/buf/proto/gen/dxos/error_pb.ts +1 -1
  97. package/src/buf/proto/gen/dxos/field_options_pb.ts +1 -1
  98. package/src/buf/proto/gen/dxos/google_pb.ts +1 -1
  99. package/src/buf/proto/gen/dxos/gravity_pb.ts +1 -1
  100. package/src/buf/proto/gen/dxos/halo/credentials/auth_pb.ts +1 -1
  101. package/src/buf/proto/gen/dxos/halo/credentials/greet_pb.ts +1 -1
  102. package/src/buf/proto/gen/dxos/halo/credentials/identity_pb.ts +1 -1
  103. package/src/buf/proto/gen/dxos/halo/credentials_pb.ts +1 -1
  104. package/src/buf/proto/gen/dxos/halo/invitations_pb.ts +1 -1
  105. package/src/buf/proto/gen/dxos/halo/keyring_pb.ts +1 -1
  106. package/src/buf/proto/gen/dxos/halo/keys_pb.ts +1 -1
  107. package/src/buf/proto/gen/dxos/halo/signed_pb.ts +1 -1
  108. package/src/buf/proto/gen/dxos/iframe_pb.ts +2 -1
  109. package/src/buf/proto/gen/dxos/keys_pb.ts +1 -1
  110. package/src/buf/proto/gen/dxos/mesh/bridge_pb.ts +1 -1
  111. package/src/buf/proto/gen/dxos/mesh/broadcast_pb.ts +1 -1
  112. package/src/buf/proto/gen/dxos/mesh/messaging_pb.ts +1 -1
  113. package/src/buf/proto/gen/dxos/mesh/muxer_pb.ts +1 -1
  114. package/src/buf/proto/gen/dxos/mesh/presence_pb.ts +1 -1
  115. package/src/buf/proto/gen/dxos/mesh/protocol_pb.ts +1 -1
  116. package/src/buf/proto/gen/dxos/mesh/replicator_pb.ts +1 -1
  117. package/src/buf/proto/gen/dxos/mesh/signal_pb.ts +1 -1
  118. package/src/buf/proto/gen/dxos/mesh/swarm_pb.ts +1 -1
  119. package/src/buf/proto/gen/dxos/mesh/teleport/admission-discovery_pb.ts +1 -1
  120. package/src/buf/proto/gen/dxos/mesh/teleport/auth_pb.ts +1 -1
  121. package/src/buf/proto/gen/dxos/mesh/teleport/automerge_pb.ts +1 -1
  122. package/src/buf/proto/gen/dxos/mesh/teleport/blobsync_pb.ts +1 -1
  123. package/src/buf/proto/gen/dxos/mesh/teleport/control_pb.ts +1 -1
  124. package/src/buf/proto/gen/dxos/mesh/teleport/gossip_pb.ts +1 -1
  125. package/src/buf/proto/gen/dxos/mesh/teleport/notarization_pb.ts +1 -1
  126. package/src/buf/proto/gen/dxos/mesh/teleport/replicator_pb.ts +1 -1
  127. package/src/buf/proto/gen/dxos/registry_pb.ts +1 -1
  128. package/src/buf/proto/gen/dxos/rpc_pb.ts +1 -1
  129. package/src/buf/proto/gen/dxos/service/agentmanager_pb.ts +1 -1
  130. package/src/buf/proto/gen/dxos/service/publisher_pb.ts +1 -1
  131. package/src/buf/proto/gen/dxos/service/supervisor_pb.ts +1 -1
  132. package/src/buf/proto/gen/dxos/service/tunnel_pb.ts +1 -1
  133. package/src/buf/proto/gen/dxos/tracing_pb.ts +1 -1
  134. package/src/buf/proto/gen/dxos/type_pb.ts +1 -1
  135. package/src/buf/proto/gen/dxos/value_pb.ts +1 -1
  136. package/src/buf/proto/gen/example/testing/data_pb.ts +1 -1
  137. package/src/buf/proto/gen/example/testing/rpc_pb.ts +1 -1
  138. package/src/edge/EdgeFunctionEnv.ts +38 -10
  139. package/src/edge/edge.ts +18 -22
  140. package/src/errors/base-errors.ts +3 -3
  141. package/src/errors/errors.ts +44 -44
  142. package/src/index.ts +0 -1
  143. package/src/proto/dxos/client/queue.proto +67 -0
  144. package/src/proto/dxos/config.proto +2 -0
  145. package/src/proto/dxos/echo/query.proto +4 -1
  146. package/src/proto/dxos/echo/service.proto +27 -6
  147. package/src/proto/dxos/iframe.proto +1 -0
  148. package/src/proto/gen/dxos/client/services.ts +239 -136
  149. package/src/proto/gen/dxos/config.ts +5 -0
  150. package/src/proto/gen/dxos/echo/query.ts +17 -1
  151. package/src/proto/gen/dxos/echo/service.ts +33 -8
  152. package/src/proto/gen/index.ts +9 -1
  153. package/src/queue.ts +9 -46
  154. package/dist/src/query.d.ts +0 -5
  155. package/dist/src/query.d.ts.map +0 -1
  156. package/dist/src/query.js +0 -8
  157. package/dist/src/query.js.map +0 -1
  158. package/src/query.ts +0 -8
@@ -65,6 +65,184 @@ 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:
70
+ * {@link file://./../../../dxos/client/logging.proto}
71
+ */
72
+ export interface Metrics {
73
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
74
+ values?: Metrics.KeyPair[];
75
+ }
76
+ export namespace Metrics {
77
+ /**
78
+ * Defined in:
79
+ * {@link file://./../../../dxos/client/logging.proto}
80
+ */
81
+ export interface KeyPair {
82
+ /**
83
+ * Options:
84
+ * - proto3_optional = true
85
+ */
86
+ key?: string;
87
+ /**
88
+ * Options:
89
+ * - proto3_optional = true
90
+ */
91
+ value?: dxos_value.Value;
92
+ /**
93
+ * Options:
94
+ * - proto3_optional = true
95
+ */
96
+ stats?: dxos_value.Stats;
97
+ }
98
+ }
99
+ /**
100
+ * Defined in:
101
+ * {@link file://./../../../dxos/client/logging.proto}
102
+ */
103
+ export interface ControlMetricsRequest {
104
+ /**
105
+ * Options:
106
+ * - proto3_optional = true
107
+ */
108
+ reset?: boolean;
109
+ /**
110
+ * Options:
111
+ * - proto3_optional = true
112
+ */
113
+ record?: boolean;
114
+ }
115
+ /**
116
+ * Defined in:
117
+ * {@link file://./../../../dxos/client/logging.proto}
118
+ */
119
+ export interface ControlMetricsResponse {
120
+ /**
121
+ * Options:
122
+ * - proto3_optional = true
123
+ */
124
+ recording?: boolean;
125
+ }
126
+ /**
127
+ * Defined in:
128
+ * {@link file://./../../../dxos/client/logging.proto}
129
+ */
130
+ export interface QueryMetricsRequest {
131
+ /**
132
+ * Options:
133
+ * - proto3_optional = true
134
+ */
135
+ interval?: number;
136
+ }
137
+ /**
138
+ * Defined in:
139
+ * {@link file://./../../../dxos/client/logging.proto}
140
+ */
141
+ export interface QueryMetricsResponse {
142
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
143
+ metrics: Metrics;
144
+ }
145
+ /**
146
+ * Defined in:
147
+ * {@link file://./../../../dxos/client/logging.proto}
148
+ */
149
+ export enum LogLevel {
150
+ NONE = 0,
151
+ TRACE = 5,
152
+ DEBUG = 10,
153
+ VERBOSE = 11,
154
+ INFO = 12,
155
+ WARN = 13,
156
+ ERROR = 14
157
+ }
158
+ /**
159
+ * Defined in:
160
+ * {@link file://./../../../dxos/client/logging.proto}
161
+ */
162
+ export interface QueryLogsRequest {
163
+ filters?: QueryLogsRequest.Filter[];
164
+ /**
165
+ * Options:
166
+ * - proto3_optional = true
167
+ */
168
+ options?: QueryLogsRequest.MatchingOptions;
169
+ }
170
+ export namespace QueryLogsRequest {
171
+ /**
172
+ * Defined in:
173
+ * {@link file://./../../../dxos/client/logging.proto}
174
+ */
175
+ export enum MatchingOptions {
176
+ NONE = 0,
177
+ INCLUSIVE = 1,
178
+ EXPLICIT = 2
179
+ }
180
+ /**
181
+ * Defined in:
182
+ * {@link file://./../../../dxos/client/logging.proto}
183
+ */
184
+ export interface Filter {
185
+ level: LogLevel;
186
+ /**
187
+ * Options:
188
+ * - proto3_optional = true
189
+ */
190
+ pattern?: string;
191
+ }
192
+ }
193
+ /**
194
+ * Defined in:
195
+ * {@link file://./../../../dxos/client/logging.proto}
196
+ */
197
+ export interface LogEntry {
198
+ level: LogLevel;
199
+ message: string;
200
+ /**
201
+ * Options:
202
+ * - proto3_optional = true
203
+ */
204
+ context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
205
+ /**
206
+ * Options:
207
+ * - proto3_optional = true
208
+ */
209
+ meta?: LogEntry.Meta;
210
+ /**
211
+ * Options:
212
+ * - proto3_optional = true
213
+ */
214
+ error?: dxos_error.Error;
215
+ timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
216
+ }
217
+ export namespace LogEntry {
218
+ /**
219
+ * Defined in:
220
+ * {@link file://./../../../dxos/client/logging.proto}
221
+ */
222
+ export interface Meta {
223
+ file: string;
224
+ line: number;
225
+ /**
226
+ * Options:
227
+ * - proto3_optional = true
228
+ */
229
+ scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
230
+ /**
231
+ * Options:
232
+ * - proto3_optional = true
233
+ */
234
+ resourceId?: number;
235
+ }
236
+ }
237
+ /**
238
+ * Defined in:
239
+ * {@link file://./../../../dxos/client/logging.proto}
240
+ */
241
+ export interface LoggingService {
242
+ controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
243
+ queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
244
+ queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
245
+ }
68
246
  /**
69
247
  * Defined in:
70
248
  * {@link file://./../../../dxos/client/invitation.proto}
@@ -259,181 +437,106 @@ export namespace Invitation {
259
437
  }
260
438
  /**
261
439
  * Defined in:
262
- * {@link file://./../../../dxos/client/logging.proto}
440
+ * {@link file://./../../../dxos/client/queue.proto}
263
441
  */
264
- export interface Metrics {
265
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
266
- values?: Metrics.KeyPair[];
267
- }
268
- export namespace Metrics {
442
+ export interface QueueQuery {
443
+ spaceId: string;
269
444
  /**
270
- * Defined in:
271
- * {@link file://./../../../dxos/client/logging.proto}
445
+ * Options:
446
+ * - proto3_optional = true
272
447
  */
273
- export interface KeyPair {
274
- /**
275
- * Options:
276
- * - proto3_optional = true
277
- */
278
- key?: string;
279
- /**
280
- * Options:
281
- * - proto3_optional = true
282
- */
283
- value?: dxos_value.Value;
284
- /**
285
- * Options:
286
- * - proto3_optional = true
287
- */
288
- stats?: dxos_value.Stats;
289
- }
290
- }
291
- /**
292
- * Defined in:
293
- * {@link file://./../../../dxos/client/logging.proto}
294
- */
295
- export interface ControlMetricsRequest {
448
+ queuesNamespace?: string;
449
+ /**
450
+ * Queries the whole space if missing.
451
+ */
452
+ queueIds?: string[];
296
453
  /**
454
+ * Filter items after this cursor. Exclusive.
455
+ *
297
456
  * Options:
298
457
  * - proto3_optional = true
299
458
  */
300
- reset?: boolean;
459
+ after?: string;
301
460
  /**
461
+ * Filter items before this cursor. Exclusive.
462
+ *
302
463
  * Options:
303
464
  * - proto3_optional = true
304
465
  */
305
- record?: boolean;
306
- }
307
- /**
308
- * Defined in:
309
- * {@link file://./../../../dxos/client/logging.proto}
310
- */
311
- export interface ControlMetricsResponse {
466
+ before?: string;
312
467
  /**
468
+ * Filter items after this position. Inclusive.
469
+ *
313
470
  * Options:
314
471
  * - proto3_optional = true
315
472
  */
316
- recording?: boolean;
317
- }
318
- /**
319
- * Defined in:
320
- * {@link file://./../../../dxos/client/logging.proto}
321
- */
322
- export interface QueryMetricsRequest {
473
+ beginPosition?: string;
323
474
  /**
475
+ * Filter items before this position. Exclusive.
476
+ *
324
477
  * Options:
325
478
  * - proto3_optional = true
326
479
  */
327
- interval?: number;
480
+ endPosition?: string;
481
+ /**
482
+ * Options:
483
+ * - proto3_optional = true
484
+ */
485
+ limit?: number;
486
+ /**
487
+ * Options:
488
+ * - proto3_optional = true
489
+ */
490
+ reverse?: boolean;
491
+ objectIds?: string[];
328
492
  }
329
493
  /**
330
494
  * Defined in:
331
- * {@link file://./../../../dxos/client/logging.proto}
495
+ * {@link file://./../../../dxos/client/queue.proto}
332
496
  */
333
- export interface QueryMetricsResponse {
334
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
335
- metrics: Metrics;
497
+ export interface QueueQueryResult {
498
+ objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
499
+ /**
500
+ * Cursor to query the next items. Can be passed to `after` in query to keep querying.
501
+ */
502
+ nextCursor: string;
503
+ prevCursor: string;
336
504
  }
337
505
  /**
338
506
  * Defined in:
339
- * {@link file://./../../../dxos/client/logging.proto}
507
+ * {@link file://./../../../dxos/client/queue.proto}
340
508
  */
341
- export enum LogLevel {
342
- NONE = 0,
343
- TRACE = 5,
344
- DEBUG = 10,
345
- VERBOSE = 11,
346
- INFO = 12,
347
- WARN = 13,
348
- ERROR = 14
509
+ export interface QueryQueueRequest {
510
+ query: QueueQuery;
349
511
  }
350
512
  /**
351
513
  * Defined in:
352
- * {@link file://./../../../dxos/client/logging.proto}
514
+ * {@link file://./../../../dxos/client/queue.proto}
353
515
  */
354
- export interface QueryLogsRequest {
355
- filters?: QueryLogsRequest.Filter[];
356
- /**
357
- * Options:
358
- * - proto3_optional = true
359
- */
360
- options?: QueryLogsRequest.MatchingOptions;
361
- }
362
- export namespace QueryLogsRequest {
363
- /**
364
- * Defined in:
365
- * {@link file://./../../../dxos/client/logging.proto}
366
- */
367
- export enum MatchingOptions {
368
- NONE = 0,
369
- INCLUSIVE = 1,
370
- EXPLICIT = 2
371
- }
372
- /**
373
- * Defined in:
374
- * {@link file://./../../../dxos/client/logging.proto}
375
- */
376
- export interface Filter {
377
- level: LogLevel;
378
- /**
379
- * Options:
380
- * - proto3_optional = true
381
- */
382
- pattern?: string;
383
- }
516
+ export interface InsertIntoQueueRequest {
517
+ subspaceTag: string;
518
+ spaceId: string;
519
+ queueId: string;
520
+ objects?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>[];
384
521
  }
385
522
  /**
386
523
  * Defined in:
387
- * {@link file://./../../../dxos/client/logging.proto}
524
+ * {@link file://./../../../dxos/client/queue.proto}
388
525
  */
389
- export interface LogEntry {
390
- level: LogLevel;
391
- message: string;
392
- /**
393
- * Options:
394
- * - proto3_optional = true
395
- */
396
- context?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
397
- /**
398
- * Options:
399
- * - proto3_optional = true
400
- */
401
- meta?: LogEntry.Meta;
402
- /**
403
- * Options:
404
- * - proto3_optional = true
405
- */
406
- error?: dxos_error.Error;
407
- timestamp: ReturnType<(typeof substitutions)["google.protobuf.Timestamp"]["decode"]>;
408
- }
409
- export namespace LogEntry {
410
- /**
411
- * Defined in:
412
- * {@link file://./../../../dxos/client/logging.proto}
413
- */
414
- export interface Meta {
415
- file: string;
416
- line: number;
417
- /**
418
- * Options:
419
- * - proto3_optional = true
420
- */
421
- scope?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
422
- /**
423
- * Options:
424
- * - proto3_optional = true
425
- */
426
- resourceId?: number;
427
- }
526
+ export interface DeleteFromQueueRequest {
527
+ subspaceTag: string;
528
+ spaceId: string;
529
+ queueId: string;
530
+ objectIds?: string[];
428
531
  }
429
532
  /**
430
533
  * Defined in:
431
- * {@link file://./../../../dxos/client/logging.proto}
534
+ * {@link file://./../../../dxos/client/queue.proto}
432
535
  */
433
- export interface LoggingService {
434
- controlMetrics: (request: ControlMetricsRequest, options?: RequestOptions) => Promise<ControlMetricsResponse>;
435
- queryMetrics: (request: QueryMetricsRequest, options?: RequestOptions) => Stream<QueryMetricsResponse>;
436
- queryLogs: (request: QueryLogsRequest, options?: RequestOptions) => Stream<LogEntry>;
536
+ export interface QueueService {
537
+ queryQueue: (request: QueryQueueRequest, options?: RequestOptions) => Promise<QueueQueryResult>;
538
+ insertIntoQueue: (request: InsertIntoQueueRequest, options?: RequestOptions) => Promise<void>;
539
+ deleteFromQueue: (request: DeleteFromQueueRequest, options?: RequestOptions) => Promise<void>;
437
540
  }
438
541
  /**
439
542
  * Defined in:
@@ -332,6 +332,11 @@ export namespace Runtime {
332
332
  * - proto3_optional = true
333
333
  */
334
334
  edgeFeatures?: Runtime.Client.EdgeFeatures;
335
+ /**
336
+ * Options:
337
+ * - proto3_optional = true
338
+ */
339
+ enableLocalQueues?: boolean;
335
340
  }
336
341
  export namespace Client {
337
342
  /**
@@ -106,9 +106,25 @@ export interface Heads {
106
106
  export interface QueryResult {
107
107
  id: string;
108
108
  spaceId: string;
109
- documentId: string;
109
+ /**
110
+ * Options:
111
+ * - proto3_optional = true
112
+ */
113
+ documentId?: string;
114
+ /**
115
+ * Options:
116
+ * - proto3_optional = true
117
+ */
118
+ queueId?: string;
119
+ /**
120
+ * Options:
121
+ * - proto3_optional = true
122
+ */
123
+ queueNamespace?: string;
110
124
  rank: number;
111
125
  /**
126
+ * In the ECHO Json object format.
127
+ *
112
128
  * Options:
113
129
  * - proto3_optional = true
114
130
  */
@@ -133,14 +133,6 @@ export interface DocumentUpdate {
133
133
  * Value returned by `Automerge.saveSince()`.
134
134
  */
135
135
  mutation: Uint8Array;
136
- /**
137
- * Set to true for init mutation of document.
138
- * default: undefined.
139
- *
140
- * Options:
141
- * - proto3_optional = true
142
- */
143
- isNew?: boolean;
144
136
  }
145
137
  /**
146
138
  * Defined in:
@@ -187,6 +179,34 @@ export interface WaitUntilHeadsReplicatedRequest {
187
179
  export interface ReIndexHeadsRequest {
188
180
  documentIds?: string[];
189
181
  }
182
+ /**
183
+ * Defined in:
184
+ * {@link file://./../../../dxos/echo/service.proto}
185
+ */
186
+ export interface CreateDocumentRequest {
187
+ /**
188
+ * Space id where the document will be created.
189
+ */
190
+ spaceId: string;
191
+ /**
192
+ * Automerge encoded initial document value.
193
+ * Optional - if not provided, an empty document will be created.
194
+ *
195
+ * Options:
196
+ * - proto3_optional = true
197
+ */
198
+ initialValue?: ReturnType<(typeof substitutions)["google.protobuf.Struct"]["decode"]>;
199
+ }
200
+ /**
201
+ * Defined in:
202
+ * {@link file://./../../../dxos/echo/service.proto}
203
+ */
204
+ export interface CreateDocumentResponse {
205
+ /**
206
+ * The generated document id.
207
+ */
208
+ documentId: string;
209
+ }
190
210
  /**
191
211
  * Defined in:
192
212
  * {@link file://./../../../dxos/echo/service.proto}
@@ -254,6 +274,11 @@ export interface DataService {
254
274
  * Change which documents are subscribed to for specific subscription.
255
275
  */
256
276
  updateSubscription: (request: UpdateSubscriptionRequest, options?: RequestOptions) => Promise<void>;
277
+ /**
278
+ * Create a new automerge document.
279
+ * Returns the generated document id which is controlled by the host.
280
+ */
281
+ createDocument: (request: CreateDocumentRequest, options?: RequestOptions) => Promise<CreateDocumentResponse>;
257
282
  /**
258
283
  * Write incremental updates to multiple automerge documents.
259
284
  * Used to propagate changes from client to services.