@fraym/proto 0.6.8 → 0.6.9
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.
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "freym.auth.management";
|
|
3
3
|
export interface RegisterMigrationRequest {
|
|
4
|
+
namespace: string;
|
|
4
5
|
scopes: string[];
|
|
5
6
|
}
|
|
6
7
|
export interface RegisterMigrationResponse {
|
|
7
8
|
}
|
|
8
9
|
export interface FinishMigrationRequest {
|
|
10
|
+
namespace: string;
|
|
9
11
|
}
|
|
10
12
|
export interface FinishMigrationResponse {
|
|
11
13
|
}
|
|
12
14
|
export interface RollbackMigrationRequest {
|
|
15
|
+
namespace: string;
|
|
13
16
|
}
|
|
14
17
|
export interface RollbackMigrationResponse {
|
|
15
18
|
}
|
|
16
19
|
export interface GetMigrationStatusRequest {
|
|
20
|
+
namespace: string;
|
|
17
21
|
}
|
|
18
22
|
export interface GetMigrationStatusResponse {
|
|
19
23
|
done: boolean;
|
|
@@ -35,12 +39,12 @@ export declare const RegisterMigrationResponse: {
|
|
|
35
39
|
fromPartial(_: DeepPartial<RegisterMigrationResponse>): RegisterMigrationResponse;
|
|
36
40
|
};
|
|
37
41
|
export declare const FinishMigrationRequest: {
|
|
38
|
-
encode(
|
|
42
|
+
encode(message: FinishMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
39
43
|
decode(input: _m0.Reader | Uint8Array, length?: number): FinishMigrationRequest;
|
|
40
|
-
fromJSON(
|
|
41
|
-
toJSON(
|
|
44
|
+
fromJSON(object: any): FinishMigrationRequest;
|
|
45
|
+
toJSON(message: FinishMigrationRequest): unknown;
|
|
42
46
|
create(base?: DeepPartial<FinishMigrationRequest>): FinishMigrationRequest;
|
|
43
|
-
fromPartial(
|
|
47
|
+
fromPartial(object: DeepPartial<FinishMigrationRequest>): FinishMigrationRequest;
|
|
44
48
|
};
|
|
45
49
|
export declare const FinishMigrationResponse: {
|
|
46
50
|
encode(_: FinishMigrationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -51,12 +55,12 @@ export declare const FinishMigrationResponse: {
|
|
|
51
55
|
fromPartial(_: DeepPartial<FinishMigrationResponse>): FinishMigrationResponse;
|
|
52
56
|
};
|
|
53
57
|
export declare const RollbackMigrationRequest: {
|
|
54
|
-
encode(
|
|
58
|
+
encode(message: RollbackMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
55
59
|
decode(input: _m0.Reader | Uint8Array, length?: number): RollbackMigrationRequest;
|
|
56
|
-
fromJSON(
|
|
57
|
-
toJSON(
|
|
60
|
+
fromJSON(object: any): RollbackMigrationRequest;
|
|
61
|
+
toJSON(message: RollbackMigrationRequest): unknown;
|
|
58
62
|
create(base?: DeepPartial<RollbackMigrationRequest>): RollbackMigrationRequest;
|
|
59
|
-
fromPartial(
|
|
63
|
+
fromPartial(object: DeepPartial<RollbackMigrationRequest>): RollbackMigrationRequest;
|
|
60
64
|
};
|
|
61
65
|
export declare const RollbackMigrationResponse: {
|
|
62
66
|
encode(_: RollbackMigrationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -67,12 +71,12 @@ export declare const RollbackMigrationResponse: {
|
|
|
67
71
|
fromPartial(_: DeepPartial<RollbackMigrationResponse>): RollbackMigrationResponse;
|
|
68
72
|
};
|
|
69
73
|
export declare const GetMigrationStatusRequest: {
|
|
70
|
-
encode(
|
|
74
|
+
encode(message: GetMigrationStatusRequest, writer?: _m0.Writer): _m0.Writer;
|
|
71
75
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetMigrationStatusRequest;
|
|
72
|
-
fromJSON(
|
|
73
|
-
toJSON(
|
|
76
|
+
fromJSON(object: any): GetMigrationStatusRequest;
|
|
77
|
+
toJSON(message: GetMigrationStatusRequest): unknown;
|
|
74
78
|
create(base?: DeepPartial<GetMigrationStatusRequest>): GetMigrationStatusRequest;
|
|
75
|
-
fromPartial(
|
|
79
|
+
fromPartial(object: DeepPartial<GetMigrationStatusRequest>): GetMigrationStatusRequest;
|
|
76
80
|
};
|
|
77
81
|
export declare const GetMigrationStatusResponse: {
|
|
78
82
|
encode(message: GetMigrationStatusResponse, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -7,10 +7,13 @@ exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports
|
|
|
7
7
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
8
8
|
exports.protobufPackage = "freym.auth.management";
|
|
9
9
|
function createBaseRegisterMigrationRequest() {
|
|
10
|
-
return { scopes: [] };
|
|
10
|
+
return { namespace: "", scopes: [] };
|
|
11
11
|
}
|
|
12
12
|
exports.RegisterMigrationRequest = {
|
|
13
13
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
14
|
+
if (message.namespace !== "") {
|
|
15
|
+
writer.uint32(10).string(message.namespace);
|
|
16
|
+
}
|
|
14
17
|
for (const v of message.scopes) {
|
|
15
18
|
writer.uint32(18).string(v);
|
|
16
19
|
}
|
|
@@ -23,6 +26,12 @@ exports.RegisterMigrationRequest = {
|
|
|
23
26
|
while (reader.pos < end) {
|
|
24
27
|
const tag = reader.uint32();
|
|
25
28
|
switch (tag >>> 3) {
|
|
29
|
+
case 1:
|
|
30
|
+
if (tag !== 10) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
message.namespace = reader.string();
|
|
34
|
+
continue;
|
|
26
35
|
case 2:
|
|
27
36
|
if (tag !== 18) {
|
|
28
37
|
break;
|
|
@@ -39,12 +48,16 @@ exports.RegisterMigrationRequest = {
|
|
|
39
48
|
},
|
|
40
49
|
fromJSON(object) {
|
|
41
50
|
return {
|
|
51
|
+
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
42
52
|
scopes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.scopes) ? object.scopes.map((e) => globalThis.String(e)) : [],
|
|
43
53
|
};
|
|
44
54
|
},
|
|
45
55
|
toJSON(message) {
|
|
46
56
|
var _a;
|
|
47
57
|
const obj = {};
|
|
58
|
+
if (message.namespace !== "") {
|
|
59
|
+
obj.namespace = message.namespace;
|
|
60
|
+
}
|
|
48
61
|
if ((_a = message.scopes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
49
62
|
obj.scopes = message.scopes;
|
|
50
63
|
}
|
|
@@ -54,9 +67,10 @@ exports.RegisterMigrationRequest = {
|
|
|
54
67
|
return exports.RegisterMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
55
68
|
},
|
|
56
69
|
fromPartial(object) {
|
|
57
|
-
var _a;
|
|
70
|
+
var _a, _b;
|
|
58
71
|
const message = createBaseRegisterMigrationRequest();
|
|
59
|
-
message.
|
|
72
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
73
|
+
message.scopes = ((_b = object.scopes) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
60
74
|
return message;
|
|
61
75
|
},
|
|
62
76
|
};
|
|
@@ -98,10 +112,13 @@ exports.RegisterMigrationResponse = {
|
|
|
98
112
|
},
|
|
99
113
|
};
|
|
100
114
|
function createBaseFinishMigrationRequest() {
|
|
101
|
-
return {};
|
|
115
|
+
return { namespace: "" };
|
|
102
116
|
}
|
|
103
117
|
exports.FinishMigrationRequest = {
|
|
104
|
-
encode(
|
|
118
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
119
|
+
if (message.namespace !== "") {
|
|
120
|
+
writer.uint32(10).string(message.namespace);
|
|
121
|
+
}
|
|
105
122
|
return writer;
|
|
106
123
|
},
|
|
107
124
|
decode(input, length) {
|
|
@@ -111,6 +128,12 @@ exports.FinishMigrationRequest = {
|
|
|
111
128
|
while (reader.pos < end) {
|
|
112
129
|
const tag = reader.uint32();
|
|
113
130
|
switch (tag >>> 3) {
|
|
131
|
+
case 1:
|
|
132
|
+
if (tag !== 10) {
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
message.namespace = reader.string();
|
|
136
|
+
continue;
|
|
114
137
|
}
|
|
115
138
|
if ((tag & 7) === 4 || tag === 0) {
|
|
116
139
|
break;
|
|
@@ -119,18 +142,23 @@ exports.FinishMigrationRequest = {
|
|
|
119
142
|
}
|
|
120
143
|
return message;
|
|
121
144
|
},
|
|
122
|
-
fromJSON(
|
|
123
|
-
return {};
|
|
145
|
+
fromJSON(object) {
|
|
146
|
+
return { namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "" };
|
|
124
147
|
},
|
|
125
|
-
toJSON(
|
|
148
|
+
toJSON(message) {
|
|
126
149
|
const obj = {};
|
|
150
|
+
if (message.namespace !== "") {
|
|
151
|
+
obj.namespace = message.namespace;
|
|
152
|
+
}
|
|
127
153
|
return obj;
|
|
128
154
|
},
|
|
129
155
|
create(base) {
|
|
130
156
|
return exports.FinishMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
131
157
|
},
|
|
132
|
-
fromPartial(
|
|
158
|
+
fromPartial(object) {
|
|
159
|
+
var _a;
|
|
133
160
|
const message = createBaseFinishMigrationRequest();
|
|
161
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
134
162
|
return message;
|
|
135
163
|
},
|
|
136
164
|
};
|
|
@@ -172,10 +200,13 @@ exports.FinishMigrationResponse = {
|
|
|
172
200
|
},
|
|
173
201
|
};
|
|
174
202
|
function createBaseRollbackMigrationRequest() {
|
|
175
|
-
return {};
|
|
203
|
+
return { namespace: "" };
|
|
176
204
|
}
|
|
177
205
|
exports.RollbackMigrationRequest = {
|
|
178
|
-
encode(
|
|
206
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
207
|
+
if (message.namespace !== "") {
|
|
208
|
+
writer.uint32(10).string(message.namespace);
|
|
209
|
+
}
|
|
179
210
|
return writer;
|
|
180
211
|
},
|
|
181
212
|
decode(input, length) {
|
|
@@ -185,6 +216,12 @@ exports.RollbackMigrationRequest = {
|
|
|
185
216
|
while (reader.pos < end) {
|
|
186
217
|
const tag = reader.uint32();
|
|
187
218
|
switch (tag >>> 3) {
|
|
219
|
+
case 1:
|
|
220
|
+
if (tag !== 10) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.namespace = reader.string();
|
|
224
|
+
continue;
|
|
188
225
|
}
|
|
189
226
|
if ((tag & 7) === 4 || tag === 0) {
|
|
190
227
|
break;
|
|
@@ -193,18 +230,23 @@ exports.RollbackMigrationRequest = {
|
|
|
193
230
|
}
|
|
194
231
|
return message;
|
|
195
232
|
},
|
|
196
|
-
fromJSON(
|
|
197
|
-
return {};
|
|
233
|
+
fromJSON(object) {
|
|
234
|
+
return { namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "" };
|
|
198
235
|
},
|
|
199
|
-
toJSON(
|
|
236
|
+
toJSON(message) {
|
|
200
237
|
const obj = {};
|
|
238
|
+
if (message.namespace !== "") {
|
|
239
|
+
obj.namespace = message.namespace;
|
|
240
|
+
}
|
|
201
241
|
return obj;
|
|
202
242
|
},
|
|
203
243
|
create(base) {
|
|
204
244
|
return exports.RollbackMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
205
245
|
},
|
|
206
|
-
fromPartial(
|
|
246
|
+
fromPartial(object) {
|
|
247
|
+
var _a;
|
|
207
248
|
const message = createBaseRollbackMigrationRequest();
|
|
249
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
208
250
|
return message;
|
|
209
251
|
},
|
|
210
252
|
};
|
|
@@ -246,10 +288,13 @@ exports.RollbackMigrationResponse = {
|
|
|
246
288
|
},
|
|
247
289
|
};
|
|
248
290
|
function createBaseGetMigrationStatusRequest() {
|
|
249
|
-
return {};
|
|
291
|
+
return { namespace: "" };
|
|
250
292
|
}
|
|
251
293
|
exports.GetMigrationStatusRequest = {
|
|
252
|
-
encode(
|
|
294
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
295
|
+
if (message.namespace !== "") {
|
|
296
|
+
writer.uint32(10).string(message.namespace);
|
|
297
|
+
}
|
|
253
298
|
return writer;
|
|
254
299
|
},
|
|
255
300
|
decode(input, length) {
|
|
@@ -259,6 +304,12 @@ exports.GetMigrationStatusRequest = {
|
|
|
259
304
|
while (reader.pos < end) {
|
|
260
305
|
const tag = reader.uint32();
|
|
261
306
|
switch (tag >>> 3) {
|
|
307
|
+
case 1:
|
|
308
|
+
if (tag !== 10) {
|
|
309
|
+
break;
|
|
310
|
+
}
|
|
311
|
+
message.namespace = reader.string();
|
|
312
|
+
continue;
|
|
262
313
|
}
|
|
263
314
|
if ((tag & 7) === 4 || tag === 0) {
|
|
264
315
|
break;
|
|
@@ -267,18 +318,23 @@ exports.GetMigrationStatusRequest = {
|
|
|
267
318
|
}
|
|
268
319
|
return message;
|
|
269
320
|
},
|
|
270
|
-
fromJSON(
|
|
271
|
-
return {};
|
|
321
|
+
fromJSON(object) {
|
|
322
|
+
return { namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "" };
|
|
272
323
|
},
|
|
273
|
-
toJSON(
|
|
324
|
+
toJSON(message) {
|
|
274
325
|
const obj = {};
|
|
326
|
+
if (message.namespace !== "") {
|
|
327
|
+
obj.namespace = message.namespace;
|
|
328
|
+
}
|
|
275
329
|
return obj;
|
|
276
330
|
},
|
|
277
331
|
create(base) {
|
|
278
332
|
return exports.GetMigrationStatusRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
279
333
|
},
|
|
280
|
-
fromPartial(
|
|
334
|
+
fromPartial(object) {
|
|
335
|
+
var _a;
|
|
281
336
|
const message = createBaseGetMigrationStatusRequest();
|
|
337
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
282
338
|
return message;
|
|
283
339
|
},
|
|
284
340
|
};
|