@514labs/moose-proto 0.6.457 → 0.6.458

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.
@@ -413,6 +413,7 @@ declare class InfrastructureMap$Type extends MessageType<InfrastructureMap> {
413
413
  private binaryReadMap16;
414
414
  private binaryReadMap17;
415
415
  private binaryReadMap18;
416
+ private binaryReadMap20;
416
417
  internalBinaryWrite(message: InfrastructureMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
417
418
  }
418
419
  /**
@@ -524,6 +525,14 @@ interface InfrastructureMap {
524
525
  workflows: {
525
526
  [key: string]: Workflow;
526
527
  };
528
+ /**
529
+ * Row-level security policies
530
+ *
531
+ * @generated from protobuf field: map<string, moose.proto.SelectRowPolicy> select_row_policies = 20
532
+ */
533
+ selectRowPolicies: {
534
+ [key: string]: SelectRowPolicy;
535
+ };
527
536
  }
528
537
  /**
529
538
  * @generated MessageType for protobuf message moose.proto.InfrastructureMap
@@ -2115,6 +2124,12 @@ interface InfrastructureSignature {
2115
2124
  * @generated from protobuf field: string view_id = 8
2116
2125
  */
2117
2126
  viewId: string;
2127
+ } | {
2128
+ oneofKind: "selectRowPolicyId";
2129
+ /**
2130
+ * @generated from protobuf field: string select_row_policy_id = 9
2131
+ */
2132
+ selectRowPolicyId: string;
2118
2133
  } | {
2119
2134
  oneofKind: undefined;
2120
2135
  };
@@ -2238,5 +2253,46 @@ interface Workflow {
2238
2253
  * @generated MessageType for protobuf message moose.proto.Workflow
2239
2254
  */
2240
2255
  declare const Workflow: Workflow$Type;
2256
+ declare class SelectRowPolicy$Type extends MessageType<SelectRowPolicy> {
2257
+ constructor();
2258
+ create(value?: PartialMessage<SelectRowPolicy>): SelectRowPolicy;
2259
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SelectRowPolicy): SelectRowPolicy;
2260
+ internalBinaryWrite(message: SelectRowPolicy, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2261
+ }
2262
+ /**
2263
+ * Row-level security policy for ClickHouse
2264
+ *
2265
+ * @generated from protobuf message moose.proto.SelectRowPolicy
2266
+ */
2267
+ interface SelectRowPolicy {
2268
+ /**
2269
+ * Policy name
2270
+ *
2271
+ * @generated from protobuf field: string name = 1
2272
+ */
2273
+ name: string;
2274
+ /**
2275
+ * Tables the policy applies to (with optional per-table database)
2276
+ *
2277
+ * @generated from protobuf field: repeated moose.proto.TableReference tables = 2
2278
+ */
2279
+ tables: TableReference[];
2280
+ /**
2281
+ * Column to filter on
2282
+ *
2283
+ * @generated from protobuf field: string column = 3
2284
+ */
2285
+ column: string;
2286
+ /**
2287
+ * JWT claim name that provides the filter value
2288
+ *
2289
+ * @generated from protobuf field: string claim = 4
2290
+ */
2291
+ claim: string;
2292
+ }
2293
+ /**
2294
+ * @generated MessageType for protobuf message moose.proto.SelectRowPolicy
2295
+ */
2296
+ declare const SelectRowPolicy: SelectRowPolicy$Type;
2241
2297
 
2242
- export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
2298
+ export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
@@ -413,6 +413,7 @@ declare class InfrastructureMap$Type extends MessageType<InfrastructureMap> {
413
413
  private binaryReadMap16;
414
414
  private binaryReadMap17;
415
415
  private binaryReadMap18;
416
+ private binaryReadMap20;
416
417
  internalBinaryWrite(message: InfrastructureMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
417
418
  }
418
419
  /**
@@ -524,6 +525,14 @@ interface InfrastructureMap {
524
525
  workflows: {
525
526
  [key: string]: Workflow;
526
527
  };
528
+ /**
529
+ * Row-level security policies
530
+ *
531
+ * @generated from protobuf field: map<string, moose.proto.SelectRowPolicy> select_row_policies = 20
532
+ */
533
+ selectRowPolicies: {
534
+ [key: string]: SelectRowPolicy;
535
+ };
527
536
  }
528
537
  /**
529
538
  * @generated MessageType for protobuf message moose.proto.InfrastructureMap
@@ -2115,6 +2124,12 @@ interface InfrastructureSignature {
2115
2124
  * @generated from protobuf field: string view_id = 8
2116
2125
  */
2117
2126
  viewId: string;
2127
+ } | {
2128
+ oneofKind: "selectRowPolicyId";
2129
+ /**
2130
+ * @generated from protobuf field: string select_row_policy_id = 9
2131
+ */
2132
+ selectRowPolicyId: string;
2118
2133
  } | {
2119
2134
  oneofKind: undefined;
2120
2135
  };
@@ -2238,5 +2253,46 @@ interface Workflow {
2238
2253
  * @generated MessageType for protobuf message moose.proto.Workflow
2239
2254
  */
2240
2255
  declare const Workflow: Workflow$Type;
2256
+ declare class SelectRowPolicy$Type extends MessageType<SelectRowPolicy> {
2257
+ constructor();
2258
+ create(value?: PartialMessage<SelectRowPolicy>): SelectRowPolicy;
2259
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SelectRowPolicy): SelectRowPolicy;
2260
+ internalBinaryWrite(message: SelectRowPolicy, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2261
+ }
2262
+ /**
2263
+ * Row-level security policy for ClickHouse
2264
+ *
2265
+ * @generated from protobuf message moose.proto.SelectRowPolicy
2266
+ */
2267
+ interface SelectRowPolicy {
2268
+ /**
2269
+ * Policy name
2270
+ *
2271
+ * @generated from protobuf field: string name = 1
2272
+ */
2273
+ name: string;
2274
+ /**
2275
+ * Tables the policy applies to (with optional per-table database)
2276
+ *
2277
+ * @generated from protobuf field: repeated moose.proto.TableReference tables = 2
2278
+ */
2279
+ tables: TableReference[];
2280
+ /**
2281
+ * Column to filter on
2282
+ *
2283
+ * @generated from protobuf field: string column = 3
2284
+ */
2285
+ column: string;
2286
+ /**
2287
+ * JWT claim name that provides the filter value
2288
+ *
2289
+ * @generated from protobuf field: string claim = 4
2290
+ */
2291
+ claim: string;
2292
+ }
2293
+ /**
2294
+ * @generated MessageType for protobuf message moose.proto.SelectRowPolicy
2295
+ */
2296
+ declare const SelectRowPolicy: SelectRowPolicy$Type;
2241
2297
 
2242
- export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
2298
+ export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
@@ -56,6 +56,7 @@ __export(infrastructure_map_exports, {
56
56
  SchemaRegistry_Encoding: () => SchemaRegistry_Encoding,
57
57
  SeedFilter: () => SeedFilter,
58
58
  SelectQuery: () => SelectQuery,
59
+ SelectRowPolicy: () => SelectRowPolicy,
59
60
  SimpleColumnType: () => SimpleColumnType,
60
61
  SourceLocation: () => SourceLocation,
61
62
  SqlResource: () => SqlResource,
@@ -886,7 +887,8 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
886
887
  },
887
888
  { no: 16, name: "materialized_views", kind: "map", K: 9, V: { kind: "message", T: () => MaterializedView } },
888
889
  { no: 17, name: "views", kind: "map", K: 9, V: { kind: "message", T: () => View } },
889
- { no: 18, name: "workflows", kind: "map", K: 9, V: { kind: "message", T: () => Workflow } }
890
+ { no: 18, name: "workflows", kind: "map", K: 9, V: { kind: "message", T: () => Workflow } },
891
+ { no: 20, name: "select_row_policies", kind: "map", K: 9, V: { kind: "message", T: () => SelectRowPolicy } }
890
892
  ]);
891
893
  }
892
894
  create(value) {
@@ -907,6 +909,7 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
907
909
  message.materializedViews = {};
908
910
  message.views = {};
909
911
  message.workflows = {};
912
+ message.selectRowPolicies = {};
910
913
  if (value !== void 0)
911
914
  (0, import_runtime15.reflectionMergePartial)(this, message, value);
912
915
  return message;
@@ -980,6 +983,10 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
980
983
  18:
981
984
  this.binaryReadMap18(message.workflows, reader, options);
982
985
  break;
986
+ case /* map<string, moose.proto.SelectRowPolicy> select_row_policies */
987
+ 20:
988
+ this.binaryReadMap20(message.selectRowPolicies, reader, options);
989
+ break;
983
990
  default:
984
991
  let u = options.readUnknownField;
985
992
  if (u === "throw")
@@ -1229,6 +1236,23 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
1229
1236
  }
1230
1237
  map[key ?? ""] = val ?? Workflow.create();
1231
1238
  }
1239
+ binaryReadMap20(map, reader, options) {
1240
+ let len = reader.uint32(), end = reader.pos + len, key, val;
1241
+ while (reader.pos < end) {
1242
+ let [fieldNo, wireType] = reader.tag();
1243
+ switch (fieldNo) {
1244
+ case 1:
1245
+ key = reader.string();
1246
+ break;
1247
+ case 2:
1248
+ val = SelectRowPolicy.internalBinaryRead(reader, reader.uint32(), options);
1249
+ break;
1250
+ default:
1251
+ throw new globalThis.Error("unknown map entry field for moose.proto.InfrastructureMap.select_row_policies");
1252
+ }
1253
+ }
1254
+ map[key ?? ""] = val ?? SelectRowPolicy.create();
1255
+ }
1232
1256
  internalBinaryWrite(message, writer, options) {
1233
1257
  for (let k of globalThis.Object.keys(message.topics)) {
1234
1258
  writer.tag(1, import_runtime13.WireType.LengthDelimited).fork().tag(1, import_runtime13.WireType.LengthDelimited).string(k);
@@ -1318,6 +1342,12 @@ var InfrastructureMap$Type = class extends import_runtime16.MessageType {
1318
1342
  }
1319
1343
  if (message.mooseVersion !== "")
1320
1344
  writer.tag(19, import_runtime13.WireType.LengthDelimited).string(message.mooseVersion);
1345
+ for (let k of globalThis.Object.keys(message.selectRowPolicies)) {
1346
+ writer.tag(20, import_runtime13.WireType.LengthDelimited).fork().tag(1, import_runtime13.WireType.LengthDelimited).string(k);
1347
+ writer.tag(2, import_runtime13.WireType.LengthDelimited).fork();
1348
+ SelectRowPolicy.internalBinaryWrite(message.selectRowPolicies[k], writer, options);
1349
+ writer.join().join();
1350
+ }
1321
1351
  let u = options.writeUnknownFields;
1322
1352
  if (u !== false)
1323
1353
  (u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -4862,6 +4892,14 @@ var InfrastructureSignature$Type = class extends import_runtime16.MessageType {
4862
4892
  oneof: "signature",
4863
4893
  T: 9
4864
4894
  /*ScalarType.STRING*/
4895
+ },
4896
+ {
4897
+ no: 9,
4898
+ name: "select_row_policy_id",
4899
+ kind: "scalar",
4900
+ oneof: "signature",
4901
+ T: 9
4902
+ /*ScalarType.STRING*/
4865
4903
  }
4866
4904
  ]);
4867
4905
  }
@@ -4933,6 +4971,13 @@ var InfrastructureSignature$Type = class extends import_runtime16.MessageType {
4933
4971
  viewId: reader.string()
4934
4972
  };
4935
4973
  break;
4974
+ case /* string select_row_policy_id */
4975
+ 9:
4976
+ message.signature = {
4977
+ oneofKind: "selectRowPolicyId",
4978
+ selectRowPolicyId: reader.string()
4979
+ };
4980
+ break;
4936
4981
  default:
4937
4982
  let u = options.readUnknownField;
4938
4983
  if (u === "throw")
@@ -4961,6 +5006,8 @@ var InfrastructureSignature$Type = class extends import_runtime16.MessageType {
4961
5006
  writer.tag(7, import_runtime13.WireType.LengthDelimited).string(message.signature.materializedViewId);
4962
5007
  if (message.signature.oneofKind === "viewId")
4963
5008
  writer.tag(8, import_runtime13.WireType.LengthDelimited).string(message.signature.viewId);
5009
+ if (message.signature.oneofKind === "selectRowPolicyId")
5010
+ writer.tag(9, import_runtime13.WireType.LengthDelimited).string(message.signature.selectRowPolicyId);
4964
5011
  let u = options.writeUnknownFields;
4965
5012
  if (u !== false)
4966
5013
  (u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -5224,6 +5271,91 @@ var Workflow$Type = class extends import_runtime16.MessageType {
5224
5271
  }
5225
5272
  };
5226
5273
  var Workflow = new Workflow$Type();
5274
+ var SelectRowPolicy$Type = class extends import_runtime16.MessageType {
5275
+ constructor() {
5276
+ super("moose.proto.SelectRowPolicy", [
5277
+ {
5278
+ no: 1,
5279
+ name: "name",
5280
+ kind: "scalar",
5281
+ T: 9
5282
+ /*ScalarType.STRING*/
5283
+ },
5284
+ { no: 2, name: "tables", kind: "message", repeat: 2, T: () => TableReference },
5285
+ {
5286
+ no: 3,
5287
+ name: "column",
5288
+ kind: "scalar",
5289
+ T: 9
5290
+ /*ScalarType.STRING*/
5291
+ },
5292
+ {
5293
+ no: 4,
5294
+ name: "claim",
5295
+ kind: "scalar",
5296
+ T: 9
5297
+ /*ScalarType.STRING*/
5298
+ }
5299
+ ]);
5300
+ }
5301
+ create(value) {
5302
+ const message = globalThis.Object.create(this.messagePrototype);
5303
+ message.name = "";
5304
+ message.tables = [];
5305
+ message.column = "";
5306
+ message.claim = "";
5307
+ if (value !== void 0)
5308
+ (0, import_runtime15.reflectionMergePartial)(this, message, value);
5309
+ return message;
5310
+ }
5311
+ internalBinaryRead(reader, length, options, target) {
5312
+ let message = target ?? this.create(), end = reader.pos + length;
5313
+ while (reader.pos < end) {
5314
+ let [fieldNo, wireType] = reader.tag();
5315
+ switch (fieldNo) {
5316
+ case /* string name */
5317
+ 1:
5318
+ message.name = reader.string();
5319
+ break;
5320
+ case /* repeated moose.proto.TableReference tables */
5321
+ 2:
5322
+ message.tables.push(TableReference.internalBinaryRead(reader, reader.uint32(), options));
5323
+ break;
5324
+ case /* string column */
5325
+ 3:
5326
+ message.column = reader.string();
5327
+ break;
5328
+ case /* string claim */
5329
+ 4:
5330
+ message.claim = reader.string();
5331
+ break;
5332
+ default:
5333
+ let u = options.readUnknownField;
5334
+ if (u === "throw")
5335
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
5336
+ let d = reader.skip(wireType);
5337
+ if (u !== false)
5338
+ (u === true ? import_runtime14.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
5339
+ }
5340
+ }
5341
+ return message;
5342
+ }
5343
+ internalBinaryWrite(message, writer, options) {
5344
+ if (message.name !== "")
5345
+ writer.tag(1, import_runtime13.WireType.LengthDelimited).string(message.name);
5346
+ for (let i = 0; i < message.tables.length; i++)
5347
+ TableReference.internalBinaryWrite(message.tables[i], writer.tag(2, import_runtime13.WireType.LengthDelimited).fork(), options).join();
5348
+ if (message.column !== "")
5349
+ writer.tag(3, import_runtime13.WireType.LengthDelimited).string(message.column);
5350
+ if (message.claim !== "")
5351
+ writer.tag(4, import_runtime13.WireType.LengthDelimited).string(message.claim);
5352
+ let u = options.writeUnknownFields;
5353
+ if (u !== false)
5354
+ (u == true ? import_runtime14.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
5355
+ return writer;
5356
+ }
5357
+ };
5358
+ var SelectRowPolicy = new SelectRowPolicy$Type();
5227
5359
  // Annotate the CommonJS export names for ESM import in node:
5228
5360
  0 && (module.exports = {
5229
5361
  ApiEndpoint,
@@ -5262,6 +5394,7 @@ var Workflow = new Workflow$Type();
5262
5394
  SchemaRegistry_Encoding,
5263
5395
  SeedFilter,
5264
5396
  SelectQuery,
5397
+ SelectRowPolicy,
5265
5398
  SimpleColumnType,
5266
5399
  SourceLocation,
5267
5400
  SqlResource,