@miradorlabs/web-grpc 3.17.0 → 3.19.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/google/api/field_behavior.ts +1 -1
- package/google/protobuf/descriptor.ts +1 -1
- package/google/protobuf/duration.ts +1 -1
- package/google/protobuf/timestamp.ts +1 -1
- package/package.json +1 -1
- package/proto/gateway/common/v1/attribute_value.ts +1 -1
- package/proto/gateway/common/v1/status.ts +1 -1
- package/proto/gateway/common/v1/types.ts +1 -1
- package/proto/gateway/web/v1/account_gateway.ts +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +1 -1
- package/proto/gateway/web/v1/ai_gateway.ts +1 -1
- package/proto/gateway/web/v1/attribute_value.ts +1 -1
- package/proto/gateway/web/v1/beta_gateway.ts +1 -1
- package/proto/gateway/web/v1/chain_gateway.ts +1 -1
- package/proto/gateway/web/v1/common.ts +1 -1
- package/proto/gateway/web/v1/derived_metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/github_connector.ts +1 -1
- package/proto/gateway/web/v1/integration_gateway.ts +1 -1
- package/proto/gateway/web/v1/log_gateway.ts +1 -1
- package/proto/gateway/web/v1/market_gateway.ts +1 -1
- package/proto/gateway/web/v1/metric_gateway.ts +1 -1
- package/proto/gateway/web/v1/oauth_gateway.ts +1 -1
- package/proto/gateway/web/v1/plan_gateway.ts +1 -1
- package/proto/gateway/web/v1/policy_gateway.ts +51 -20
- package/proto/gateway/web/v1/policy_gateway_pb.js +40 -10
- package/proto/gateway/web/v1/reference_gateway.ts +1 -1
- package/proto/gateway/web/v1/rule_gateway.ts +1 -1
- package/proto/gateway/web/v1/slo_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_gateway.ts +1 -1
- package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
2
|
// versions:
|
|
3
|
-
// protoc-gen-ts_proto v2.
|
|
3
|
+
// protoc-gen-ts_proto v2.13.0
|
|
4
4
|
// protoc v3.21.12
|
|
5
5
|
// source: proto/gateway/web/v1/policy_gateway.proto
|
|
6
6
|
|
|
@@ -23,26 +23,35 @@ export interface TermaPolicy {
|
|
|
23
23
|
global?:
|
|
24
24
|
| TermaGlobalCoverage
|
|
25
25
|
| undefined;
|
|
26
|
-
/** members emit only from the
|
|
26
|
+
/** members emit only from the repositories it lists */
|
|
27
27
|
perRepository?: TermaPerRepositoryCoverage | undefined;
|
|
28
|
-
capture:
|
|
28
|
+
capture:
|
|
29
|
+
| TermaCapture
|
|
30
|
+
| undefined;
|
|
31
|
+
/** terma installs its commit hooks in the repositories this policy collects */
|
|
32
|
+
gitHooks: boolean;
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
export interface TermaGlobalCoverage {
|
|
32
36
|
}
|
|
33
37
|
|
|
34
|
-
/** TermaPerRepositoryCoverage admits only sessions in the
|
|
38
|
+
/** TermaPerRepositoryCoverage admits only sessions in the repositories it lists. */
|
|
35
39
|
export interface TermaPerRepositoryCoverage {
|
|
36
40
|
/**
|
|
37
|
-
* Each entry is a
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* and
|
|
42
|
-
*
|
|
43
|
-
*
|
|
41
|
+
* Each entry is a repository as `host/owner/name`, e.g.
|
|
42
|
+
* `github.com/miradorlabs/mirador-platform`. The CLI admits a session only inside a git working
|
|
43
|
+
* copy whose `origin` remote, normalised, equals an entry ignoring case: host lowercased without
|
|
44
|
+
* port or credentials, path with `.git` and any trailing slash stripped, from scp
|
|
45
|
+
* (`git@host:path`), `https://`, `ssh://` and `git://` forms. A linked worktree reads `origin`
|
|
46
|
+
* from its main repository. A folder outside git, a repository with no `origin`, or an `origin`
|
|
47
|
+
* that is a local path or `file://` URL is never admitted. An entry has a host and at least two
|
|
48
|
+
* path segments, none empty; a longer path matches a longer `origin` path exactly (GitLab
|
|
49
|
+
* subgroups). An empty list admits nothing.
|
|
50
|
+
* Entries are trimmed and unique ignoring case: at most 500 of 200 characters, no whitespace or
|
|
51
|
+
* control characters, no scheme, no trailing `.git`, and a host that contains a `.` or is
|
|
52
|
+
* `localhost`, with no port or credentials.
|
|
44
53
|
*/
|
|
45
|
-
|
|
54
|
+
repositories: string[];
|
|
46
55
|
}
|
|
47
56
|
|
|
48
57
|
/**
|
|
@@ -169,7 +178,7 @@ export const ProjectPolicy: MessageFns<ProjectPolicy> = {
|
|
|
169
178
|
};
|
|
170
179
|
|
|
171
180
|
function createBaseTermaPolicy(): TermaPolicy {
|
|
172
|
-
return { global: undefined, perRepository: undefined, capture: undefined };
|
|
181
|
+
return { global: undefined, perRepository: undefined, capture: undefined, gitHooks: false };
|
|
173
182
|
}
|
|
174
183
|
|
|
175
184
|
export const TermaPolicy: MessageFns<TermaPolicy> = {
|
|
@@ -183,6 +192,9 @@ export const TermaPolicy: MessageFns<TermaPolicy> = {
|
|
|
183
192
|
if (message.capture !== undefined) {
|
|
184
193
|
TermaCapture.encode(message.capture, writer.uint32(26).fork()).join();
|
|
185
194
|
}
|
|
195
|
+
if (message.gitHooks !== false) {
|
|
196
|
+
writer.uint32(32).bool(message.gitHooks);
|
|
197
|
+
}
|
|
186
198
|
return writer;
|
|
187
199
|
},
|
|
188
200
|
|
|
@@ -223,6 +235,14 @@ export const TermaPolicy: MessageFns<TermaPolicy> = {
|
|
|
223
235
|
message.capture = TermaCapture.decode(reader, reader.uint32());
|
|
224
236
|
continue;
|
|
225
237
|
}
|
|
238
|
+
case 4: {
|
|
239
|
+
if (tag !== 32) {
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
message.gitHooks = reader.bool();
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
226
246
|
}
|
|
227
247
|
if ((tag & 7) === 4 || tag === 0) {
|
|
228
248
|
break;
|
|
@@ -244,6 +264,11 @@ export const TermaPolicy: MessageFns<TermaPolicy> = {
|
|
|
244
264
|
? TermaPerRepositoryCoverage.fromJSON(object.per_repository)
|
|
245
265
|
: undefined,
|
|
246
266
|
capture: isSet(object.capture) ? TermaCapture.fromJSON(object.capture) : undefined,
|
|
267
|
+
gitHooks: isSet(object.gitHooks)
|
|
268
|
+
? globalThis.Boolean(object.gitHooks)
|
|
269
|
+
: isSet(object.git_hooks)
|
|
270
|
+
? globalThis.Boolean(object.git_hooks)
|
|
271
|
+
: false,
|
|
247
272
|
};
|
|
248
273
|
},
|
|
249
274
|
|
|
@@ -258,6 +283,9 @@ export const TermaPolicy: MessageFns<TermaPolicy> = {
|
|
|
258
283
|
if (message.capture !== undefined) {
|
|
259
284
|
obj.capture = TermaCapture.toJSON(message.capture);
|
|
260
285
|
}
|
|
286
|
+
if (message.gitHooks !== false) {
|
|
287
|
+
obj.gitHooks = message.gitHooks;
|
|
288
|
+
}
|
|
261
289
|
return obj;
|
|
262
290
|
},
|
|
263
291
|
|
|
@@ -275,6 +303,7 @@ export const TermaPolicy: MessageFns<TermaPolicy> = {
|
|
|
275
303
|
message.capture = (object.capture !== undefined && object.capture !== null)
|
|
276
304
|
? TermaCapture.fromPartial(object.capture)
|
|
277
305
|
: undefined;
|
|
306
|
+
message.gitHooks = object.gitHooks ?? false;
|
|
278
307
|
return message;
|
|
279
308
|
},
|
|
280
309
|
};
|
|
@@ -332,12 +361,12 @@ export const TermaGlobalCoverage: MessageFns<TermaGlobalCoverage> = {
|
|
|
332
361
|
};
|
|
333
362
|
|
|
334
363
|
function createBaseTermaPerRepositoryCoverage(): TermaPerRepositoryCoverage {
|
|
335
|
-
return {
|
|
364
|
+
return { repositories: [] };
|
|
336
365
|
}
|
|
337
366
|
|
|
338
367
|
export const TermaPerRepositoryCoverage: MessageFns<TermaPerRepositoryCoverage> = {
|
|
339
368
|
encode(message: TermaPerRepositoryCoverage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
340
|
-
for (const v of message.
|
|
369
|
+
for (const v of message.repositories) {
|
|
341
370
|
writer.uint32(10).string(v!);
|
|
342
371
|
}
|
|
343
372
|
return writer;
|
|
@@ -361,7 +390,7 @@ export const TermaPerRepositoryCoverage: MessageFns<TermaPerRepositoryCoverage>
|
|
|
361
390
|
break;
|
|
362
391
|
}
|
|
363
392
|
|
|
364
|
-
message.
|
|
393
|
+
message.repositories.push(reader.string());
|
|
365
394
|
continue;
|
|
366
395
|
}
|
|
367
396
|
}
|
|
@@ -378,14 +407,16 @@ export const TermaPerRepositoryCoverage: MessageFns<TermaPerRepositoryCoverage>
|
|
|
378
407
|
|
|
379
408
|
fromJSON(object: any): TermaPerRepositoryCoverage {
|
|
380
409
|
return {
|
|
381
|
-
|
|
410
|
+
repositories: globalThis.Array.isArray(object?.repositories)
|
|
411
|
+
? object.repositories.map((e: any) => globalThis.String(e))
|
|
412
|
+
: [],
|
|
382
413
|
};
|
|
383
414
|
},
|
|
384
415
|
|
|
385
416
|
toJSON(message: TermaPerRepositoryCoverage): unknown {
|
|
386
417
|
const obj: any = {};
|
|
387
|
-
if (message.
|
|
388
|
-
obj.
|
|
418
|
+
if (message.repositories?.length) {
|
|
419
|
+
obj.repositories = message.repositories;
|
|
389
420
|
}
|
|
390
421
|
return obj;
|
|
391
422
|
},
|
|
@@ -395,7 +426,7 @@ export const TermaPerRepositoryCoverage: MessageFns<TermaPerRepositoryCoverage>
|
|
|
395
426
|
},
|
|
396
427
|
fromPartial<I extends Exact<DeepPartial<TermaPerRepositoryCoverage>, I>>(object: I): TermaPerRepositoryCoverage {
|
|
397
428
|
const message = createBaseTermaPerRepositoryCoverage();
|
|
398
|
-
message.
|
|
429
|
+
message.repositories = object.repositories?.map((e) => e) || [];
|
|
399
430
|
return message;
|
|
400
431
|
},
|
|
401
432
|
};
|
|
@@ -457,7 +457,8 @@ proto.gateway.web.v1.TermaPolicy.toObject = function(includeInstance, msg) {
|
|
|
457
457
|
var f, obj = {
|
|
458
458
|
global: (f = msg.getGlobal()) && proto.gateway.web.v1.TermaGlobalCoverage.toObject(includeInstance, f),
|
|
459
459
|
perRepository: (f = msg.getPerRepository()) && proto.gateway.web.v1.TermaPerRepositoryCoverage.toObject(includeInstance, f),
|
|
460
|
-
capture: (f = msg.getCapture()) && proto.gateway.web.v1.TermaCapture.toObject(includeInstance, f)
|
|
460
|
+
capture: (f = msg.getCapture()) && proto.gateway.web.v1.TermaCapture.toObject(includeInstance, f),
|
|
461
|
+
gitHooks: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
|
|
461
462
|
};
|
|
462
463
|
|
|
463
464
|
if (includeInstance) {
|
|
@@ -509,6 +510,10 @@ proto.gateway.web.v1.TermaPolicy.deserializeBinaryFromReader = function(msg, rea
|
|
|
509
510
|
reader.readMessage(value,proto.gateway.web.v1.TermaCapture.deserializeBinaryFromReader);
|
|
510
511
|
msg.setCapture(value);
|
|
511
512
|
break;
|
|
513
|
+
case 4:
|
|
514
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
515
|
+
msg.setGitHooks(value);
|
|
516
|
+
break;
|
|
512
517
|
default:
|
|
513
518
|
reader.skipField();
|
|
514
519
|
break;
|
|
@@ -562,6 +567,13 @@ proto.gateway.web.v1.TermaPolicy.serializeBinaryToWriter = function(message, wri
|
|
|
562
567
|
proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter
|
|
563
568
|
);
|
|
564
569
|
}
|
|
570
|
+
f = message.getGitHooks();
|
|
571
|
+
if (f) {
|
|
572
|
+
writer.writeBool(
|
|
573
|
+
4,
|
|
574
|
+
f
|
|
575
|
+
);
|
|
576
|
+
}
|
|
565
577
|
};
|
|
566
578
|
|
|
567
579
|
|
|
@@ -676,6 +688,24 @@ proto.gateway.web.v1.TermaPolicy.prototype.hasCapture = function() {
|
|
|
676
688
|
};
|
|
677
689
|
|
|
678
690
|
|
|
691
|
+
/**
|
|
692
|
+
* optional bool git_hooks = 4;
|
|
693
|
+
* @return {boolean}
|
|
694
|
+
*/
|
|
695
|
+
proto.gateway.web.v1.TermaPolicy.prototype.getGitHooks = function() {
|
|
696
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* @param {boolean} value
|
|
702
|
+
* @return {!proto.gateway.web.v1.TermaPolicy} returns this
|
|
703
|
+
*/
|
|
704
|
+
proto.gateway.web.v1.TermaPolicy.prototype.setGitHooks = function(value) {
|
|
705
|
+
return jspb.Message.setProto3BooleanField(this, 4, value);
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
|
|
679
709
|
|
|
680
710
|
|
|
681
711
|
|
|
@@ -816,7 +846,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.toObject = function(op
|
|
|
816
846
|
*/
|
|
817
847
|
proto.gateway.web.v1.TermaPerRepositoryCoverage.toObject = function(includeInstance, msg) {
|
|
818
848
|
var f, obj = {
|
|
819
|
-
|
|
849
|
+
repositoriesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
820
850
|
};
|
|
821
851
|
|
|
822
852
|
if (includeInstance) {
|
|
@@ -855,7 +885,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.deserializeBinaryFromReader = fu
|
|
|
855
885
|
switch (field) {
|
|
856
886
|
case 1:
|
|
857
887
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
858
|
-
msg.
|
|
888
|
+
msg.addRepositories(value);
|
|
859
889
|
break;
|
|
860
890
|
default:
|
|
861
891
|
reader.skipField();
|
|
@@ -886,7 +916,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.serializeBinary = func
|
|
|
886
916
|
*/
|
|
887
917
|
proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter = function(message, writer) {
|
|
888
918
|
var f = undefined;
|
|
889
|
-
f = message.
|
|
919
|
+
f = message.getRepositoriesList();
|
|
890
920
|
if (f.length > 0) {
|
|
891
921
|
writer.writeRepeatedString(
|
|
892
922
|
1,
|
|
@@ -897,10 +927,10 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter = functi
|
|
|
897
927
|
|
|
898
928
|
|
|
899
929
|
/**
|
|
900
|
-
* repeated string
|
|
930
|
+
* repeated string repositories = 1;
|
|
901
931
|
* @return {!Array<string>}
|
|
902
932
|
*/
|
|
903
|
-
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.
|
|
933
|
+
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.getRepositoriesList = function() {
|
|
904
934
|
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
905
935
|
};
|
|
906
936
|
|
|
@@ -909,7 +939,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.getFoldersList = funct
|
|
|
909
939
|
* @param {!Array<string>} value
|
|
910
940
|
* @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage} returns this
|
|
911
941
|
*/
|
|
912
|
-
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.
|
|
942
|
+
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.setRepositoriesList = function(value) {
|
|
913
943
|
return jspb.Message.setField(this, 1, value || []);
|
|
914
944
|
};
|
|
915
945
|
|
|
@@ -919,7 +949,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.setFoldersList = funct
|
|
|
919
949
|
* @param {number=} opt_index
|
|
920
950
|
* @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage} returns this
|
|
921
951
|
*/
|
|
922
|
-
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.
|
|
952
|
+
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.addRepositories = function(value, opt_index) {
|
|
923
953
|
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
924
954
|
};
|
|
925
955
|
|
|
@@ -928,8 +958,8 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.addFolders = function(
|
|
|
928
958
|
* Clears the list making it empty but non-null.
|
|
929
959
|
* @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage} returns this
|
|
930
960
|
*/
|
|
931
|
-
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.
|
|
932
|
-
return this.
|
|
961
|
+
proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.clearRepositoriesList = function() {
|
|
962
|
+
return this.setRepositoriesList([]);
|
|
933
963
|
};
|
|
934
964
|
|
|
935
965
|
|