@dxos/protocols 0.3.0 → 0.3.1-main.0fddbd4
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/cjs/src/errors/errors.d.ts +3 -0
- package/dist/cjs/src/errors/errors.d.ts.map +1 -1
- package/dist/cjs/src/errors/errors.js +8 -1
- package/dist/cjs/src/errors/errors.js.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts +24 -0
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/cjs/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/cjs/src/proto/gen/index.d.ts.map +1 -1
- package/dist/cjs/src/proto/gen/index.js +1 -1
- package/dist/cjs/src/proto/gen/index.js.map +1 -1
- package/dist/cjs/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/src/errors/errors.d.ts +3 -0
- package/dist/esm/src/errors/errors.d.ts.map +1 -1
- package/dist/esm/src/errors/errors.js +6 -0
- package/dist/esm/src/errors/errors.js.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts +24 -0
- package/dist/esm/src/proto/gen/dxos/echo/model/document.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/dxos/echo/model/document.js.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.d.ts +4 -4
- package/dist/esm/src/proto/gen/google/protobuf.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/google/protobuf.js.map +1 -1
- package/dist/esm/src/proto/gen/index.d.ts.map +1 -1
- package/dist/esm/src/proto/gen/index.js +1 -1
- package/dist/esm/src/proto/gen/index.js.map +1 -1
- package/package.json +5 -5
- package/src/errors/errors.ts +8 -0
- package/src/proto/dxos/echo/model/document.proto +12 -0
- package/src/proto/gen/dxos/echo/model/document.ts +24 -0
- package/src/proto/gen/google/protobuf.ts +4 -4
- package/src/proto/gen/index.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAgf7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/proto/gen/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAuDhE,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAgf7C,MAAM,CAAC,MAAM,UAAU,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,gp3FAAgp3F,CAAC,CAAC,CAAC;AACzs3F,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAkB,UAAU,EAAE,aAAa,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/protocols",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1-main.0fddbd4",
|
|
4
4
|
"description": "Protobuf definitions for DXOS protocols.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"src"
|
|
34
34
|
],
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@dxos/codec-protobuf": "0.3.
|
|
37
|
-
"@dxos/invariant": "0.3.
|
|
38
|
-
"@dxos/keys": "0.3.
|
|
39
|
-
"@dxos/timeframe": "0.3.
|
|
36
|
+
"@dxos/codec-protobuf": "0.3.1-main.0fddbd4",
|
|
37
|
+
"@dxos/invariant": "0.3.1-main.0fddbd4",
|
|
38
|
+
"@dxos/keys": "0.3.1-main.0fddbd4",
|
|
39
|
+
"@dxos/timeframe": "0.3.1-main.0fddbd4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"glob": "~7.1.6"
|
package/src/errors/errors.ts
CHANGED
|
@@ -134,6 +134,14 @@ export class ConnectivityError extends BaseError {
|
|
|
134
134
|
|
|
135
135
|
registerErrorMessageContext('CONNECTIVITY_ERROR', ConnectivityError);
|
|
136
136
|
|
|
137
|
+
export class RateLimitExceededError extends BaseError {
|
|
138
|
+
constructor(message?: string, context?: any) {
|
|
139
|
+
super('RATE_LIMIT_EXCEEDED', message, context);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
registerErrorMessageContext('RATE_LIMIT_EXCEEDED', RateLimitExceededError);
|
|
144
|
+
|
|
137
145
|
// TODO(nf): Rename? the protocol isn't what's unknown...
|
|
138
146
|
export class UnknownProtocolError extends BaseError {
|
|
139
147
|
constructor(message?: string, innerError?: Error) {
|
|
@@ -64,7 +64,14 @@ message KeyValueObject {
|
|
|
64
64
|
* Reference to an Item.
|
|
65
65
|
*/
|
|
66
66
|
message Reference {
|
|
67
|
+
// TODO(dmaretskyi): Rename `id`.
|
|
67
68
|
string itemId = 1;
|
|
69
|
+
|
|
70
|
+
/// "space", or "protobuf"
|
|
71
|
+
optional string protocol = 2;
|
|
72
|
+
|
|
73
|
+
/// space key, FQN of the schema
|
|
74
|
+
optional string host = 3;
|
|
68
75
|
}
|
|
69
76
|
|
|
70
77
|
/**
|
|
@@ -107,6 +114,8 @@ message Query {
|
|
|
107
114
|
*/
|
|
108
115
|
message ObjectSnapshot {
|
|
109
116
|
optional string type = 1;
|
|
117
|
+
optional Reference type_ref = 4;
|
|
118
|
+
|
|
110
119
|
Value root = 2;
|
|
111
120
|
optional Value meta = 3;
|
|
112
121
|
}
|
|
@@ -140,7 +149,10 @@ message YJS {
|
|
|
140
149
|
* Set of mutations.
|
|
141
150
|
*/
|
|
142
151
|
message ObjectMutationSet {
|
|
152
|
+
// depereacted
|
|
143
153
|
optional string type = 1;
|
|
154
|
+
optional Reference type_ref = 4;
|
|
155
|
+
|
|
144
156
|
repeated ObjectMutation mutations = 2;
|
|
145
157
|
|
|
146
158
|
// Mutations for the `meta` keyspace.
|
|
@@ -109,6 +109,20 @@ export interface KeyValueObject {
|
|
|
109
109
|
*/
|
|
110
110
|
export interface Reference {
|
|
111
111
|
itemId: string;
|
|
112
|
+
/**
|
|
113
|
+
* "space", or "protobuf"
|
|
114
|
+
*
|
|
115
|
+
* Options:
|
|
116
|
+
* - proto3_optional = true
|
|
117
|
+
*/
|
|
118
|
+
protocol?: string;
|
|
119
|
+
/**
|
|
120
|
+
* space key, FQN of the schema
|
|
121
|
+
*
|
|
122
|
+
* Options:
|
|
123
|
+
* - proto3_optional = true
|
|
124
|
+
*/
|
|
125
|
+
host?: string;
|
|
112
126
|
}
|
|
113
127
|
/**
|
|
114
128
|
* Query predicate.
|
|
@@ -170,6 +184,11 @@ export interface ObjectSnapshot {
|
|
|
170
184
|
* - proto3_optional = true
|
|
171
185
|
*/
|
|
172
186
|
type?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Options:
|
|
189
|
+
* - proto3_optional = true
|
|
190
|
+
*/
|
|
191
|
+
typeRef?: Reference;
|
|
173
192
|
root: Value;
|
|
174
193
|
/**
|
|
175
194
|
* Options:
|
|
@@ -231,6 +250,11 @@ export interface ObjectMutationSet {
|
|
|
231
250
|
* - proto3_optional = true
|
|
232
251
|
*/
|
|
233
252
|
type?: string;
|
|
253
|
+
/**
|
|
254
|
+
* Options:
|
|
255
|
+
* - proto3_optional = true
|
|
256
|
+
*/
|
|
257
|
+
typeRef?: Reference;
|
|
234
258
|
mutations?: ObjectMutation[];
|
|
235
259
|
metaMutations?: ObjectMutation[];
|
|
236
260
|
}
|
|
@@ -55,6 +55,10 @@ import * as example_testing_data from "../example/testing/data";
|
|
|
55
55
|
import * as example_testing_rpc from "../example/testing/rpc";
|
|
56
56
|
export interface Empty {
|
|
57
57
|
}
|
|
58
|
+
export interface Timestamp {
|
|
59
|
+
seconds: string;
|
|
60
|
+
nanos: number;
|
|
61
|
+
}
|
|
58
62
|
export interface Any {
|
|
59
63
|
type_url: string;
|
|
60
64
|
value: Uint8Array;
|
|
@@ -76,10 +80,6 @@ export enum NullValue {
|
|
|
76
80
|
export interface ListValue {
|
|
77
81
|
values?: Value[];
|
|
78
82
|
}
|
|
79
|
-
export interface Timestamp {
|
|
80
|
-
seconds: string;
|
|
81
|
-
nanos: number;
|
|
82
|
-
}
|
|
83
83
|
export interface FileDescriptorSet {
|
|
84
84
|
file?: FileDescriptorProto[];
|
|
85
85
|
}
|