@miradorlabs/web-grpc 3.11.0 → 3.13.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.
Files changed (52) hide show
  1. package/google/api/field_behavior.ts +145 -0
  2. package/google/api/field_behavior_grpc_pb.js +1 -0
  3. package/google/api/field_behavior_pb.js +62 -0
  4. package/google/protobuf/descriptor.ts +5211 -0
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value_pb.js +2 -0
  7. package/proto/gateway/web/v1/account_gateway.ts +4 -4
  8. package/proto/gateway/web/v1/account_gateway_grpc_pb.js +1 -0
  9. package/proto/gateway/web/v1/account_gateway_pb.js +2 -0
  10. package/proto/gateway/web/v1/admin_gateway.ts +5 -8
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +1 -0
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +2 -0
  13. package/proto/gateway/web/v1/beta_gateway_grpc_pb.js +1 -0
  14. package/proto/gateway/web/v1/beta_gateway_pb.js +2 -0
  15. package/proto/gateway/web/v1/chain_gateway_grpc_pb.js +1 -0
  16. package/proto/gateway/web/v1/chain_gateway_pb.js +2 -0
  17. package/proto/gateway/web/v1/derived_metric_gateway_grpc_pb.js +1 -0
  18. package/proto/gateway/web/v1/derived_metric_gateway_pb.js +2 -0
  19. package/proto/gateway/web/v1/github_connector.ts +2 -0
  20. package/proto/gateway/web/v1/github_connector_grpc_pb.js +1 -0
  21. package/proto/gateway/web/v1/github_connector_pb.js +2 -0
  22. package/proto/gateway/web/v1/integration_gateway.ts +89 -14
  23. package/proto/gateway/web/v1/integration_gateway_grpc_pb.js +1 -0
  24. package/proto/gateway/web/v1/integration_gateway_pb.js +188 -13
  25. package/proto/gateway/web/v1/log_gateway.ts +13 -9
  26. package/proto/gateway/web/v1/log_gateway_grpc_pb.js +1 -0
  27. package/proto/gateway/web/v1/log_gateway_pb.js +8 -6
  28. package/proto/gateway/web/v1/market_gateway_grpc_pb.js +1 -0
  29. package/proto/gateway/web/v1/market_gateway_pb.js +2 -0
  30. package/proto/gateway/web/v1/metric_gateway_grpc_pb.js +1 -0
  31. package/proto/gateway/web/v1/metric_gateway_pb.js +2 -0
  32. package/proto/gateway/web/v1/oauth_gateway_grpc_pb.js +1 -0
  33. package/proto/gateway/web/v1/oauth_gateway_pb.js +2 -0
  34. package/proto/gateway/web/v1/plan_gateway_grpc_pb.js +1 -0
  35. package/proto/gateway/web/v1/plan_gateway_pb.js +2 -0
  36. package/proto/gateway/web/v1/policy_gateway.ts +23 -147
  37. package/proto/gateway/web/v1/policy_gateway_grpc_pb.js +1 -0
  38. package/proto/gateway/web/v1/policy_gateway_pb.js +23 -138
  39. package/proto/gateway/web/v1/reference_gateway.ts +120 -41
  40. package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +1 -0
  41. package/proto/gateway/web/v1/reference_gateway_pb.js +229 -54
  42. package/proto/gateway/web/v1/rule_gateway.ts +28 -68
  43. package/proto/gateway/web/v1/rule_gateway_grpc_pb.js +1 -0
  44. package/proto/gateway/web/v1/rule_gateway_pb.js +20 -204
  45. package/proto/gateway/web/v1/slo_gateway_grpc_pb.js +1 -0
  46. package/proto/gateway/web/v1/slo_gateway_pb.js +2 -0
  47. package/proto/gateway/web/v1/trace_gateway.ts +158 -307
  48. package/proto/gateway/web/v1/trace_gateway_grpc_pb.js +1 -0
  49. package/proto/gateway/web/v1/trace_gateway_pb.js +168 -511
  50. package/proto/gateway/web/v1/trace_measure_gateway.ts +1 -3
  51. package/proto/gateway/web/v1/trace_measure_gateway_grpc_pb.js +1 -0
  52. package/proto/gateway/web/v1/trace_measure_gateway_pb.js +2 -0
@@ -15,6 +15,8 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = globalThis;
17
17
 
18
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
19
+ goog.object.extend(proto, google_api_field_behavior_pb);
18
20
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
19
21
  goog.object.extend(proto, google_protobuf_timestamp_pb);
20
22
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
@@ -30,7 +32,6 @@ goog.exportSymbol('proto.gateway.web.v1.TermaGlobalCoverage', null, global);
30
32
  goog.exportSymbol('proto.gateway.web.v1.TermaPerRepositoryCoverage', null, global);
31
33
  goog.exportSymbol('proto.gateway.web.v1.TermaPolicy', null, global);
32
34
  goog.exportSymbol('proto.gateway.web.v1.TermaPolicy.CoverageCase', null, global);
33
- goog.exportSymbol('proto.gateway.web.v1.TermaSignal', null, global);
34
35
  /**
35
36
  * Generated by JsPbCodeGenerator.
36
37
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -707,7 +708,7 @@ proto.gateway.web.v1.TermaGlobalCoverage.prototype.toObject = function(opt_inclu
707
708
  */
708
709
  proto.gateway.web.v1.TermaGlobalCoverage.toObject = function(includeInstance, msg) {
709
710
  var f, obj = {
710
- membersCanPause: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
711
+
711
712
  };
712
713
 
713
714
  if (includeInstance) {
@@ -744,10 +745,6 @@ proto.gateway.web.v1.TermaGlobalCoverage.deserializeBinaryFromReader = function(
744
745
  }
745
746
  var field = reader.getFieldNumber();
746
747
  switch (field) {
747
- case 1:
748
- var value = /** @type {boolean} */ (reader.readBool());
749
- msg.setMembersCanPause(value);
750
- break;
751
748
  default:
752
749
  reader.skipField();
753
750
  break;
@@ -777,31 +774,6 @@ proto.gateway.web.v1.TermaGlobalCoverage.prototype.serializeBinary = function()
777
774
  */
778
775
  proto.gateway.web.v1.TermaGlobalCoverage.serializeBinaryToWriter = function(message, writer) {
779
776
  var f = undefined;
780
- f = message.getMembersCanPause();
781
- if (f) {
782
- writer.writeBool(
783
- 1,
784
- f
785
- );
786
- }
787
- };
788
-
789
-
790
- /**
791
- * optional bool members_can_pause = 1;
792
- * @return {boolean}
793
- */
794
- proto.gateway.web.v1.TermaGlobalCoverage.prototype.getMembersCanPause = function() {
795
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
796
- };
797
-
798
-
799
- /**
800
- * @param {boolean} value
801
- * @return {!proto.gateway.web.v1.TermaGlobalCoverage} returns this
802
- */
803
- proto.gateway.web.v1.TermaGlobalCoverage.prototype.setMembersCanPause = function(value) {
804
- return jspb.Message.setProto3BooleanField(this, 1, value);
805
777
  };
806
778
 
807
779
 
@@ -837,7 +809,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.toObject = function(op
837
809
  */
838
810
  proto.gateway.web.v1.TermaPerRepositoryCoverage.toObject = function(includeInstance, msg) {
839
811
  var f, obj = {
840
- membersCanAddRepositories: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
812
+
841
813
  };
842
814
 
843
815
  if (includeInstance) {
@@ -874,10 +846,6 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.deserializeBinaryFromReader = fu
874
846
  }
875
847
  var field = reader.getFieldNumber();
876
848
  switch (field) {
877
- case 1:
878
- var value = /** @type {boolean} */ (reader.readBool());
879
- msg.setMembersCanAddRepositories(value);
880
- break;
881
849
  default:
882
850
  reader.skipField();
883
851
  break;
@@ -907,31 +875,6 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.serializeBinary = func
907
875
  */
908
876
  proto.gateway.web.v1.TermaPerRepositoryCoverage.serializeBinaryToWriter = function(message, writer) {
909
877
  var f = undefined;
910
- f = message.getMembersCanAddRepositories();
911
- if (f) {
912
- writer.writeBool(
913
- 1,
914
- f
915
- );
916
- }
917
- };
918
-
919
-
920
- /**
921
- * optional bool members_can_add_repositories = 1;
922
- * @return {boolean}
923
- */
924
- proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.getMembersCanAddRepositories = function() {
925
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
926
- };
927
-
928
-
929
- /**
930
- * @param {boolean} value
931
- * @return {!proto.gateway.web.v1.TermaPerRepositoryCoverage} returns this
932
- */
933
- proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.setMembersCanAddRepositories = function(value) {
934
- return jspb.Message.setProto3BooleanField(this, 1, value);
935
878
  };
936
879
 
937
880
 
@@ -941,7 +884,7 @@ proto.gateway.web.v1.TermaPerRepositoryCoverage.prototype.setMembersCanAddReposi
941
884
  * @private {!Array<number>}
942
885
  * @const
943
886
  */
944
- proto.gateway.web.v1.TermaCapture.repeatedFields_ = [1,4];
887
+ proto.gateway.web.v1.TermaCapture.repeatedFields_ = [3];
945
888
 
946
889
 
947
890
 
@@ -974,10 +917,9 @@ proto.gateway.web.v1.TermaCapture.prototype.toObject = function(opt_includeInsta
974
917
  */
975
918
  proto.gateway.web.v1.TermaCapture.toObject = function(includeInstance, msg) {
976
919
  var f, obj = {
977
- signalsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
978
- excludePrompts: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
979
- excludeToolContent: jspb.Message.getBooleanFieldWithDefault(msg, 3, false),
980
- excludePathsList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f
920
+ excludePrompts: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
921
+ excludeToolContent: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
922
+ excludePathsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
981
923
  };
982
924
 
983
925
  if (includeInstance) {
@@ -1015,17 +957,14 @@ proto.gateway.web.v1.TermaCapture.deserializeBinaryFromReader = function(msg, re
1015
957
  var field = reader.getFieldNumber();
1016
958
  switch (field) {
1017
959
  case 1:
1018
- reader.readPackableEnumInto(msg.getSignalsList());
1019
- break;
1020
- case 2:
1021
960
  var value = /** @type {boolean} */ (reader.readBool());
1022
961
  msg.setExcludePrompts(value);
1023
962
  break;
1024
- case 3:
963
+ case 2:
1025
964
  var value = /** @type {boolean} */ (reader.readBool());
1026
965
  msg.setExcludeToolContent(value);
1027
966
  break;
1028
- case 4:
967
+ case 3:
1029
968
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
1030
969
  msg.addExcludePaths(value);
1031
970
  break;
@@ -1058,31 +997,24 @@ proto.gateway.web.v1.TermaCapture.prototype.serializeBinary = function() {
1058
997
  */
1059
998
  proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter = function(message, writer) {
1060
999
  var f = undefined;
1061
- f = message.getSignalsList();
1062
- if (f.length > 0) {
1063
- writer.writePackedEnum(
1064
- 1,
1065
- f
1066
- );
1067
- }
1068
1000
  f = message.getExcludePrompts();
1069
1001
  if (f) {
1070
1002
  writer.writeBool(
1071
- 2,
1003
+ 1,
1072
1004
  f
1073
1005
  );
1074
1006
  }
1075
1007
  f = message.getExcludeToolContent();
1076
1008
  if (f) {
1077
1009
  writer.writeBool(
1078
- 3,
1010
+ 2,
1079
1011
  f
1080
1012
  );
1081
1013
  }
1082
1014
  f = message.getExcludePathsList();
1083
1015
  if (f.length > 0) {
1084
1016
  writer.writeRepeatedString(
1085
- 4,
1017
+ 3,
1086
1018
  f
1087
1019
  );
1088
1020
  }
@@ -1090,48 +1022,11 @@ proto.gateway.web.v1.TermaCapture.serializeBinaryToWriter = function(message, wr
1090
1022
 
1091
1023
 
1092
1024
  /**
1093
- * repeated TermaSignal signals = 1;
1094
- * @return {!Array<!proto.gateway.web.v1.TermaSignal>}
1095
- */
1096
- proto.gateway.web.v1.TermaCapture.prototype.getSignalsList = function() {
1097
- return /** @type {!Array<!proto.gateway.web.v1.TermaSignal>} */ (jspb.Message.getRepeatedField(this, 1));
1098
- };
1099
-
1100
-
1101
- /**
1102
- * @param {!Array<!proto.gateway.web.v1.TermaSignal>} value
1103
- * @return {!proto.gateway.web.v1.TermaCapture} returns this
1104
- */
1105
- proto.gateway.web.v1.TermaCapture.prototype.setSignalsList = function(value) {
1106
- return jspb.Message.setField(this, 1, value || []);
1107
- };
1108
-
1109
-
1110
- /**
1111
- * @param {!proto.gateway.web.v1.TermaSignal} value
1112
- * @param {number=} opt_index
1113
- * @return {!proto.gateway.web.v1.TermaCapture} returns this
1114
- */
1115
- proto.gateway.web.v1.TermaCapture.prototype.addSignals = function(value, opt_index) {
1116
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
1117
- };
1118
-
1119
-
1120
- /**
1121
- * Clears the list making it empty but non-null.
1122
- * @return {!proto.gateway.web.v1.TermaCapture} returns this
1123
- */
1124
- proto.gateway.web.v1.TermaCapture.prototype.clearSignalsList = function() {
1125
- return this.setSignalsList([]);
1126
- };
1127
-
1128
-
1129
- /**
1130
- * optional bool exclude_prompts = 2;
1025
+ * optional bool exclude_prompts = 1;
1131
1026
  * @return {boolean}
1132
1027
  */
1133
1028
  proto.gateway.web.v1.TermaCapture.prototype.getExcludePrompts = function() {
1134
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1029
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
1135
1030
  };
1136
1031
 
1137
1032
 
@@ -1140,16 +1035,16 @@ proto.gateway.web.v1.TermaCapture.prototype.getExcludePrompts = function() {
1140
1035
  * @return {!proto.gateway.web.v1.TermaCapture} returns this
1141
1036
  */
1142
1037
  proto.gateway.web.v1.TermaCapture.prototype.setExcludePrompts = function(value) {
1143
- return jspb.Message.setProto3BooleanField(this, 2, value);
1038
+ return jspb.Message.setProto3BooleanField(this, 1, value);
1144
1039
  };
1145
1040
 
1146
1041
 
1147
1042
  /**
1148
- * optional bool exclude_tool_content = 3;
1043
+ * optional bool exclude_tool_content = 2;
1149
1044
  * @return {boolean}
1150
1045
  */
1151
1046
  proto.gateway.web.v1.TermaCapture.prototype.getExcludeToolContent = function() {
1152
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
1047
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
1153
1048
  };
1154
1049
 
1155
1050
 
@@ -1158,16 +1053,16 @@ proto.gateway.web.v1.TermaCapture.prototype.getExcludeToolContent = function() {
1158
1053
  * @return {!proto.gateway.web.v1.TermaCapture} returns this
1159
1054
  */
1160
1055
  proto.gateway.web.v1.TermaCapture.prototype.setExcludeToolContent = function(value) {
1161
- return jspb.Message.setProto3BooleanField(this, 3, value);
1056
+ return jspb.Message.setProto3BooleanField(this, 2, value);
1162
1057
  };
1163
1058
 
1164
1059
 
1165
1060
  /**
1166
- * repeated string exclude_paths = 4;
1061
+ * repeated string exclude_paths = 3;
1167
1062
  * @return {!Array<string>}
1168
1063
  */
1169
1064
  proto.gateway.web.v1.TermaCapture.prototype.getExcludePathsList = function() {
1170
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
1065
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1171
1066
  };
1172
1067
 
1173
1068
 
@@ -1176,7 +1071,7 @@ proto.gateway.web.v1.TermaCapture.prototype.getExcludePathsList = function() {
1176
1071
  * @return {!proto.gateway.web.v1.TermaCapture} returns this
1177
1072
  */
1178
1073
  proto.gateway.web.v1.TermaCapture.prototype.setExcludePathsList = function(value) {
1179
- return jspb.Message.setField(this, 4, value || []);
1074
+ return jspb.Message.setField(this, 3, value || []);
1180
1075
  };
1181
1076
 
1182
1077
 
@@ -1186,7 +1081,7 @@ proto.gateway.web.v1.TermaCapture.prototype.setExcludePathsList = function(value
1186
1081
  * @return {!proto.gateway.web.v1.TermaCapture} returns this
1187
1082
  */
1188
1083
  proto.gateway.web.v1.TermaCapture.prototype.addExcludePaths = function(value, opt_index) {
1189
- return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
1084
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1190
1085
  };
1191
1086
 
1192
1087
 
@@ -2196,14 +2091,4 @@ proto.gateway.web.v1.SetProjectPolicyResponse.prototype.hasUpdatedAt = function(
2196
2091
  };
2197
2092
 
2198
2093
 
2199
- /**
2200
- * @enum {number}
2201
- */
2202
- proto.gateway.web.v1.TermaSignal = {
2203
- TERMA_SIGNAL_UNSPECIFIED: 0,
2204
- TERMA_SIGNAL_TRACES: 1,
2205
- TERMA_SIGNAL_LOGS: 2,
2206
- TERMA_SIGNAL_METRICS: 3
2207
- };
2208
-
2209
2094
  goog.object.extend(exports, proto.gateway.web.v1);
@@ -146,13 +146,21 @@ export function aIPrincipalKindToJSON(object: AIPrincipalKind): string {
146
146
  export interface ListPrincipalsRequest {
147
147
  organizationId: string;
148
148
  projectId: string;
149
- /** Structured filter (both optional, ANDed): kind and source_system, exact match. */
150
- kind?: AIPrincipalKind | undefined;
151
- sourceSystem: string;
149
+ filter: AIPrincipalFilter | undefined;
152
150
  pageSize: number;
153
151
  pageToken: string;
154
152
  }
155
153
 
154
+ /** AIPrincipalFilter narrows ListPrincipals; set fields AND, unset fields do not filter. */
155
+ export interface AIPrincipalFilter {
156
+ /** Unset = every kind; UNSPECIFIED is rejected. */
157
+ kind?:
158
+ | AIPrincipalKind
159
+ | undefined;
160
+ /** Exact source system. */
161
+ sourceSystem: string;
162
+ }
163
+
156
164
  export interface ListPrincipalsResponse {
157
165
  status: ResponseStatus | undefined;
158
166
  principals: AIPrincipal[];
@@ -195,7 +203,7 @@ export interface UpdatePrincipalResponse {
195
203
 
196
204
  export interface ListAIProvidersRequest {
197
205
  organizationId: string;
198
- /** Required, except with scope ALL. */
206
+ /** Needed unless scope is ALL. */
199
207
  projectId: string;
200
208
  scope: AIReferenceNameScope;
201
209
  }
@@ -207,7 +215,7 @@ export interface ListAIProvidersResponse {
207
215
 
208
216
  export interface ListAIModelsRequest {
209
217
  organizationId: string;
210
- /** Required, except with scope ALL. */
218
+ /** Needed unless scope is ALL. */
211
219
  projectId: string;
212
220
  scope: AIReferenceNameScope;
213
221
  }
@@ -219,7 +227,7 @@ export interface ListAIModelsResponse {
219
227
 
220
228
  export interface ListAIEffortsRequest {
221
229
  organizationId: string;
222
- /** Required, except with scope ALL. */
230
+ /** Needed unless scope is ALL. */
223
231
  projectId: string;
224
232
  scope: AIReferenceNameScope;
225
233
  }
@@ -231,7 +239,7 @@ export interface ListAIEffortsResponse {
231
239
 
232
240
  export interface ListAIBillersRequest {
233
241
  organizationId: string;
234
- /** Required, except with scope ALL. */
242
+ /** Needed unless scope is ALL. */
235
243
  projectId: string;
236
244
  scope: AIReferenceNameScope;
237
245
  }
@@ -257,7 +265,7 @@ export interface AIReferenceName {
257
265
  }
258
266
 
259
267
  function createBaseListPrincipalsRequest(): ListPrincipalsRequest {
260
- return { organizationId: "", projectId: "", kind: undefined, sourceSystem: "", pageSize: 0, pageToken: "" };
268
+ return { organizationId: "", projectId: "", filter: undefined, pageSize: 0, pageToken: "" };
261
269
  }
262
270
 
263
271
  export const ListPrincipalsRequest: MessageFns<ListPrincipalsRequest> = {
@@ -268,17 +276,14 @@ export const ListPrincipalsRequest: MessageFns<ListPrincipalsRequest> = {
268
276
  if (message.projectId !== "") {
269
277
  writer.uint32(18).string(message.projectId);
270
278
  }
271
- if (message.kind !== undefined) {
272
- writer.uint32(24).int32(message.kind);
273
- }
274
- if (message.sourceSystem !== "") {
275
- writer.uint32(34).string(message.sourceSystem);
279
+ if (message.filter !== undefined) {
280
+ AIPrincipalFilter.encode(message.filter, writer.uint32(26).fork()).join();
276
281
  }
277
282
  if (message.pageSize !== 0) {
278
- writer.uint32(40).int32(message.pageSize);
283
+ writer.uint32(32).int32(message.pageSize);
279
284
  }
280
285
  if (message.pageToken !== "") {
281
- writer.uint32(50).string(message.pageToken);
286
+ writer.uint32(42).string(message.pageToken);
282
287
  }
283
288
  return writer;
284
289
  },
@@ -313,31 +318,23 @@ export const ListPrincipalsRequest: MessageFns<ListPrincipalsRequest> = {
313
318
  continue;
314
319
  }
315
320
  case 3: {
316
- if (tag !== 24) {
321
+ if (tag !== 26) {
317
322
  break;
318
323
  }
319
324
 
320
- message.kind = reader.int32() as any;
325
+ message.filter = AIPrincipalFilter.decode(reader, reader.uint32());
321
326
  continue;
322
327
  }
323
328
  case 4: {
324
- if (tag !== 34) {
325
- break;
326
- }
327
-
328
- message.sourceSystem = reader.string();
329
- continue;
330
- }
331
- case 5: {
332
- if (tag !== 40) {
329
+ if (tag !== 32) {
333
330
  break;
334
331
  }
335
332
 
336
333
  message.pageSize = reader.int32();
337
334
  continue;
338
335
  }
339
- case 6: {
340
- if (tag !== 50) {
336
+ case 5: {
337
+ if (tag !== 42) {
341
338
  break;
342
339
  }
343
340
 
@@ -368,12 +365,7 @@ export const ListPrincipalsRequest: MessageFns<ListPrincipalsRequest> = {
368
365
  : isSet(object.project_id)
369
366
  ? globalThis.String(object.project_id)
370
367
  : "",
371
- kind: isSet(object.kind) ? aIPrincipalKindFromJSON(object.kind) : undefined,
372
- sourceSystem: isSet(object.sourceSystem)
373
- ? globalThis.String(object.sourceSystem)
374
- : isSet(object.source_system)
375
- ? globalThis.String(object.source_system)
376
- : "",
368
+ filter: isSet(object.filter) ? AIPrincipalFilter.fromJSON(object.filter) : undefined,
377
369
  pageSize: isSet(object.pageSize)
378
370
  ? globalThis.Number(object.pageSize)
379
371
  : isSet(object.page_size)
@@ -395,11 +387,8 @@ export const ListPrincipalsRequest: MessageFns<ListPrincipalsRequest> = {
395
387
  if (message.projectId !== "") {
396
388
  obj.projectId = message.projectId;
397
389
  }
398
- if (message.kind !== undefined) {
399
- obj.kind = aIPrincipalKindToJSON(message.kind);
400
- }
401
- if (message.sourceSystem !== "") {
402
- obj.sourceSystem = message.sourceSystem;
390
+ if (message.filter !== undefined) {
391
+ obj.filter = AIPrincipalFilter.toJSON(message.filter);
403
392
  }
404
393
  if (message.pageSize !== 0) {
405
394
  obj.pageSize = Math.round(message.pageSize);
@@ -417,14 +406,104 @@ export const ListPrincipalsRequest: MessageFns<ListPrincipalsRequest> = {
417
406
  const message = createBaseListPrincipalsRequest();
418
407
  message.organizationId = object.organizationId ?? "";
419
408
  message.projectId = object.projectId ?? "";
420
- message.kind = object.kind ?? undefined;
421
- message.sourceSystem = object.sourceSystem ?? "";
409
+ message.filter = (object.filter !== undefined && object.filter !== null)
410
+ ? AIPrincipalFilter.fromPartial(object.filter)
411
+ : undefined;
422
412
  message.pageSize = object.pageSize ?? 0;
423
413
  message.pageToken = object.pageToken ?? "";
424
414
  return message;
425
415
  },
426
416
  };
427
417
 
418
+ function createBaseAIPrincipalFilter(): AIPrincipalFilter {
419
+ return { kind: undefined, sourceSystem: "" };
420
+ }
421
+
422
+ export const AIPrincipalFilter: MessageFns<AIPrincipalFilter> = {
423
+ encode(message: AIPrincipalFilter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
424
+ if (message.kind !== undefined) {
425
+ writer.uint32(8).int32(message.kind);
426
+ }
427
+ if (message.sourceSystem !== "") {
428
+ writer.uint32(18).string(message.sourceSystem);
429
+ }
430
+ return writer;
431
+ },
432
+
433
+ decode(input: BinaryReader | Uint8Array, length?: number): AIPrincipalFilter {
434
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
435
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
436
+ if (previousRecursionDepth >= 100) {
437
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
438
+ }
439
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
440
+ try {
441
+ const end = length === undefined ? reader.len : reader.pos + length;
442
+ const message = createBaseAIPrincipalFilter();
443
+ while (reader.pos < end) {
444
+ const tag = reader.uint32();
445
+ switch (tag >>> 3) {
446
+ case 1: {
447
+ if (tag !== 8) {
448
+ break;
449
+ }
450
+
451
+ message.kind = reader.int32() as any;
452
+ continue;
453
+ }
454
+ case 2: {
455
+ if (tag !== 18) {
456
+ break;
457
+ }
458
+
459
+ message.sourceSystem = reader.string();
460
+ continue;
461
+ }
462
+ }
463
+ if ((tag & 7) === 4 || tag === 0) {
464
+ break;
465
+ }
466
+ reader.skip(tag & 7);
467
+ }
468
+ return message;
469
+ } finally {
470
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
471
+ }
472
+ },
473
+
474
+ fromJSON(object: any): AIPrincipalFilter {
475
+ return {
476
+ kind: isSet(object.kind) ? aIPrincipalKindFromJSON(object.kind) : undefined,
477
+ sourceSystem: isSet(object.sourceSystem)
478
+ ? globalThis.String(object.sourceSystem)
479
+ : isSet(object.source_system)
480
+ ? globalThis.String(object.source_system)
481
+ : "",
482
+ };
483
+ },
484
+
485
+ toJSON(message: AIPrincipalFilter): unknown {
486
+ const obj: any = {};
487
+ if (message.kind !== undefined) {
488
+ obj.kind = aIPrincipalKindToJSON(message.kind);
489
+ }
490
+ if (message.sourceSystem !== "") {
491
+ obj.sourceSystem = message.sourceSystem;
492
+ }
493
+ return obj;
494
+ },
495
+
496
+ create<I extends Exact<DeepPartial<AIPrincipalFilter>, I>>(base?: I): AIPrincipalFilter {
497
+ return AIPrincipalFilter.fromPartial(base ?? ({} as any));
498
+ },
499
+ fromPartial<I extends Exact<DeepPartial<AIPrincipalFilter>, I>>(object: I): AIPrincipalFilter {
500
+ const message = createBaseAIPrincipalFilter();
501
+ message.kind = object.kind ?? undefined;
502
+ message.sourceSystem = object.sourceSystem ?? "";
503
+ return message;
504
+ },
505
+ };
506
+
428
507
  function createBaseListPrincipalsResponse(): ListPrincipalsResponse {
429
508
  return { status: undefined, principals: [], nextPageToken: "", totalCount: undefined };
430
509
  }
@@ -3,6 +3,7 @@
3
3
  'use strict';
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
6
+ var google_api_field_behavior_pb = require('../../../../google/api/field_behavior_pb.js');
6
7
  var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
7
8
  var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
8
9