@514labs/moose-proto 0.6.510 → 0.6.511

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.
@@ -157,6 +157,71 @@ declare enum SchemaRegistry_Encoding {
157
157
  */
158
158
  PROTOBUF = 2
159
159
  }
160
+ /**
161
+ * @generated from protobuf enum moose.proto.DictionaryLayout.Type
162
+ */
163
+ declare enum DictionaryLayout_Type {
164
+ /**
165
+ * @generated from protobuf enum value: FLAT = 0;
166
+ */
167
+ FLAT = 0,
168
+ /**
169
+ * @generated from protobuf enum value: HASHED = 1;
170
+ */
171
+ HASHED = 1,
172
+ /**
173
+ * @generated from protobuf enum value: SPARSE_HASHED = 2;
174
+ */
175
+ SPARSE_HASHED = 2,
176
+ /**
177
+ * @generated from protobuf enum value: HASHED_ARRAY = 3;
178
+ */
179
+ HASHED_ARRAY = 3,
180
+ /**
181
+ * @generated from protobuf enum value: RANGE_HASHED = 4;
182
+ */
183
+ RANGE_HASHED = 4,
184
+ /**
185
+ * @generated from protobuf enum value: CACHE = 5;
186
+ */
187
+ CACHE = 5,
188
+ /**
189
+ * @generated from protobuf enum value: SSD_CACHE = 6;
190
+ */
191
+ SSD_CACHE = 6,
192
+ /**
193
+ * @generated from protobuf enum value: DIRECT = 7;
194
+ */
195
+ DIRECT = 7,
196
+ /**
197
+ * @generated from protobuf enum value: IP_TRIE = 8;
198
+ */
199
+ IP_TRIE = 8,
200
+ /**
201
+ * @generated from protobuf enum value: COMPLEX_KEY_HASHED = 9;
202
+ */
203
+ COMPLEX_KEY_HASHED = 9,
204
+ /**
205
+ * @generated from protobuf enum value: COMPLEX_KEY_SPARSE_HASHED = 10;
206
+ */
207
+ COMPLEX_KEY_SPARSE_HASHED = 10,
208
+ /**
209
+ * @generated from protobuf enum value: COMPLEX_KEY_HASHED_ARRAY = 11;
210
+ */
211
+ COMPLEX_KEY_HASHED_ARRAY = 11,
212
+ /**
213
+ * @generated from protobuf enum value: COMPLEX_KEY_CACHE = 12;
214
+ */
215
+ COMPLEX_KEY_CACHE = 12,
216
+ /**
217
+ * @generated from protobuf enum value: COMPLEX_KEY_SSD_CACHE = 13;
218
+ */
219
+ COMPLEX_KEY_SSD_CACHE = 13,
220
+ /**
221
+ * @generated from protobuf enum value: COMPLEX_KEY_DIRECT = 14;
222
+ */
223
+ COMPLEX_KEY_DIRECT = 14
224
+ }
160
225
  /**
161
226
  * @deprecated
162
227
  * @generated from protobuf enum moose.proto.EndpointIngestionFormat
@@ -414,6 +479,7 @@ declare class InfrastructureMap$Type extends MessageType<InfrastructureMap> {
414
479
  private binaryReadMap17;
415
480
  private binaryReadMap18;
416
481
  private binaryReadMap20;
482
+ private binaryReadMap21;
417
483
  internalBinaryWrite(message: InfrastructureMap, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
418
484
  }
419
485
  /**
@@ -533,6 +599,14 @@ interface InfrastructureMap {
533
599
  selectRowPolicies: {
534
600
  [key: string]: SelectRowPolicy;
535
601
  };
602
+ /**
603
+ * ClickHouse Dictionaries
604
+ *
605
+ * @generated from protobuf field: map<string, moose.proto.OlapDictionary> olap_dictionaries = 21
606
+ */
607
+ olapDictionaries: {
608
+ [key: string]: OlapDictionary;
609
+ };
536
610
  }
537
611
  /**
538
612
  * @generated MessageType for protobuf message moose.proto.InfrastructureMap
@@ -2174,6 +2248,12 @@ interface InfrastructureSignature {
2174
2248
  * @generated from protobuf field: string select_row_policy_id = 9
2175
2249
  */
2176
2250
  selectRowPolicyId: string;
2251
+ } | {
2252
+ oneofKind: "olapDictionaryId";
2253
+ /**
2254
+ * @generated from protobuf field: string olap_dictionary_id = 10
2255
+ */
2256
+ olapDictionaryId: string;
2177
2257
  } | {
2178
2258
  oneofKind: undefined;
2179
2259
  };
@@ -2338,5 +2418,923 @@ interface SelectRowPolicy {
2338
2418
  * @generated MessageType for protobuf message moose.proto.SelectRowPolicy
2339
2419
  */
2340
2420
  declare const SelectRowPolicy: SelectRowPolicy$Type;
2421
+ declare class DictionaryColumn$Type extends MessageType<DictionaryColumn> {
2422
+ constructor();
2423
+ create(value?: PartialMessage<DictionaryColumn>): DictionaryColumn;
2424
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryColumn): DictionaryColumn;
2425
+ internalBinaryWrite(message: DictionaryColumn, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2426
+ }
2427
+ /**
2428
+ * DictionaryColumn represents an attribute/column in a ClickHouse dictionary
2429
+ *
2430
+ * @generated from protobuf message moose.proto.DictionaryColumn
2431
+ */
2432
+ interface DictionaryColumn {
2433
+ /**
2434
+ * Column name
2435
+ *
2436
+ * @generated from protobuf field: string name = 1
2437
+ */
2438
+ name: string;
2439
+ /**
2440
+ * ClickHouse type string (e.g., "UInt64", "String", "Nullable(String)")
2441
+ *
2442
+ * @generated from protobuf field: string type_string = 2
2443
+ */
2444
+ typeString: string;
2445
+ /**
2446
+ * Default value expression (DEFAULT)
2447
+ *
2448
+ * @generated from protobuf field: optional string default_value = 3
2449
+ */
2450
+ defaultValue?: string;
2451
+ /**
2452
+ * Computed expression (EXPRESSION)
2453
+ *
2454
+ * @generated from protobuf field: optional string expression = 4
2455
+ */
2456
+ expression?: string;
2457
+ /**
2458
+ * IS_INJECTIVE attribute for optimized GROUP BY
2459
+ *
2460
+ * @generated from protobuf field: optional bool is_injective = 5
2461
+ */
2462
+ isInjective?: boolean;
2463
+ /**
2464
+ * IS_HIERARCHICAL attribute for parent-child lookups
2465
+ *
2466
+ * @generated from protobuf field: optional bool is_hierarchical = 6
2467
+ */
2468
+ isHierarchical?: boolean;
2469
+ /**
2470
+ * IS_OBJECT_ID attribute (MongoDB only)
2471
+ *
2472
+ * @generated from protobuf field: optional bool is_object_id = 7
2473
+ */
2474
+ isObjectId?: boolean;
2475
+ /**
2476
+ * Column comment
2477
+ *
2478
+ * @generated from protobuf field: optional string comment = 8
2479
+ */
2480
+ comment?: string;
2481
+ }
2482
+ /**
2483
+ * @generated MessageType for protobuf message moose.proto.DictionaryColumn
2484
+ */
2485
+ declare const DictionaryColumn: DictionaryColumn$Type;
2486
+ declare class DictionaryTableSource$Type extends MessageType<DictionaryTableSource> {
2487
+ constructor();
2488
+ create(value?: PartialMessage<DictionaryTableSource>): DictionaryTableSource;
2489
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryTableSource): DictionaryTableSource;
2490
+ internalBinaryWrite(message: DictionaryTableSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2491
+ }
2492
+ /**
2493
+ * DictionaryTableSource — dictionary reads from a ClickHouse table
2494
+ *
2495
+ * @generated from protobuf message moose.proto.DictionaryTableSource
2496
+ */
2497
+ interface DictionaryTableSource {
2498
+ /**
2499
+ * Source table name
2500
+ *
2501
+ * @generated from protobuf field: string table = 1
2502
+ */
2503
+ table: string;
2504
+ /**
2505
+ * Source database (empty = default database)
2506
+ *
2507
+ * @generated from protobuf field: optional string database = 2
2508
+ */
2509
+ database?: string;
2510
+ /**
2511
+ * Optional WHERE clause for row filtering
2512
+ *
2513
+ * @generated from protobuf field: optional string where_clause = 3
2514
+ */
2515
+ whereClause?: string;
2516
+ /**
2517
+ * Optional query for checking if data has changed (triggers reload)
2518
+ *
2519
+ * @generated from protobuf field: optional string invalidate_query = 4
2520
+ */
2521
+ invalidateQuery?: string;
2522
+ }
2523
+ /**
2524
+ * @generated MessageType for protobuf message moose.proto.DictionaryTableSource
2525
+ */
2526
+ declare const DictionaryTableSource: DictionaryTableSource$Type;
2527
+ declare class DictionaryQuerySource$Type extends MessageType<DictionaryQuerySource> {
2528
+ constructor();
2529
+ create(value?: PartialMessage<DictionaryQuerySource>): DictionaryQuerySource;
2530
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryQuerySource): DictionaryQuerySource;
2531
+ internalBinaryWrite(message: DictionaryQuerySource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2532
+ }
2533
+ /**
2534
+ * DictionaryQuerySource — dictionary reads from an arbitrary SQL query
2535
+ *
2536
+ * @generated from protobuf message moose.proto.DictionaryQuerySource
2537
+ */
2538
+ interface DictionaryQuerySource {
2539
+ /**
2540
+ * The SELECT query
2541
+ *
2542
+ * @generated from protobuf field: string query = 1
2543
+ */
2544
+ query: string;
2545
+ /**
2546
+ * Optional query for checking if data has changed (triggers reload)
2547
+ *
2548
+ * @generated from protobuf field: optional string invalidate_query = 2
2549
+ */
2550
+ invalidateQuery?: string;
2551
+ }
2552
+ /**
2553
+ * @generated MessageType for protobuf message moose.proto.DictionaryQuerySource
2554
+ */
2555
+ declare const DictionaryQuerySource: DictionaryQuerySource$Type;
2556
+ declare class DictionaryLayout$Type extends MessageType<DictionaryLayout> {
2557
+ constructor();
2558
+ create(value?: PartialMessage<DictionaryLayout>): DictionaryLayout;
2559
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryLayout): DictionaryLayout;
2560
+ internalBinaryWrite(message: DictionaryLayout, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2561
+ }
2562
+ /**
2563
+ * DictionaryLayout — memory layout and storage model for the dictionary
2564
+ *
2565
+ * @generated from protobuf message moose.proto.DictionaryLayout
2566
+ */
2567
+ interface DictionaryLayout {
2568
+ /**
2569
+ * @generated from protobuf field: moose.proto.DictionaryLayout.Type type = 1
2570
+ */
2571
+ type: DictionaryLayout_Type;
2572
+ /**
2573
+ * Hashed / SparseHashed / ComplexKeyHashed / ComplexKeySparseHashed
2574
+ *
2575
+ * @generated from protobuf field: optional uint64 initial_array_size = 2
2576
+ */
2577
+ initialArraySize?: bigint;
2578
+ /**
2579
+ * @generated from protobuf field: optional double max_load_factor = 3
2580
+ */
2581
+ maxLoadFactor?: number;
2582
+ /**
2583
+ * HashedArray / ComplexKeyHashedArray
2584
+ *
2585
+ * @generated from protobuf field: optional uint32 shards = 4
2586
+ */
2587
+ shards?: number;
2588
+ /**
2589
+ * Cache / SsdCache / ComplexKeyCache / ComplexKeySsdCache
2590
+ *
2591
+ * @generated from protobuf field: optional uint64 size_in_cells = 5
2592
+ */
2593
+ sizeInCells?: bigint;
2594
+ /**
2595
+ * @generated from protobuf field: optional uint32 max_threads_for_updates = 6
2596
+ */
2597
+ maxThreadsForUpdates?: number;
2598
+ /**
2599
+ * SsdCache / ComplexKeySsdCache
2600
+ *
2601
+ * @generated from protobuf field: optional string ssd_path = 7
2602
+ */
2603
+ ssdPath?: string;
2604
+ /**
2605
+ * @generated from protobuf field: optional uint64 block_size = 8
2606
+ */
2607
+ blockSize?: bigint;
2608
+ /**
2609
+ * @generated from protobuf field: optional uint64 file_size = 9
2610
+ */
2611
+ fileSize?: bigint;
2612
+ /**
2613
+ * @generated from protobuf field: optional uint64 read_buffer_size = 10
2614
+ */
2615
+ readBufferSize?: bigint;
2616
+ /**
2617
+ * @generated from protobuf field: optional uint64 write_buffer_size = 11
2618
+ */
2619
+ writeBufferSize?: bigint;
2620
+ /**
2621
+ * @generated from protobuf field: optional uint64 max_stored_keys = 12
2622
+ */
2623
+ maxStoredKeys?: bigint;
2624
+ /**
2625
+ * IpTrie
2626
+ *
2627
+ * @generated from protobuf field: optional bool access_to_key_from_attributes = 13
2628
+ */
2629
+ accessToKeyFromAttributes?: boolean;
2630
+ /**
2631
+ * RangeHashed
2632
+ *
2633
+ * @generated from protobuf field: optional string range_lookup_strategy = 14
2634
+ */
2635
+ rangeLookupStrategy?: string;
2636
+ }
2637
+ /**
2638
+ * @generated MessageType for protobuf message moose.proto.DictionaryLayout
2639
+ */
2640
+ declare const DictionaryLayout: DictionaryLayout$Type;
2641
+ declare class DictionaryRangeLifetime$Type extends MessageType<DictionaryRangeLifetime> {
2642
+ constructor();
2643
+ create(value?: PartialMessage<DictionaryRangeLifetime>): DictionaryRangeLifetime;
2644
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryRangeLifetime): DictionaryRangeLifetime;
2645
+ internalBinaryWrite(message: DictionaryRangeLifetime, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2646
+ }
2647
+ /**
2648
+ * DictionaryRangeLifetime — min/max seconds for range-based refresh
2649
+ *
2650
+ * @generated from protobuf message moose.proto.DictionaryRangeLifetime
2651
+ */
2652
+ interface DictionaryRangeLifetime {
2653
+ /**
2654
+ * @generated from protobuf field: uint64 min = 1
2655
+ */
2656
+ min: bigint;
2657
+ /**
2658
+ * @generated from protobuf field: uint64 max = 2
2659
+ */
2660
+ max: bigint;
2661
+ }
2662
+ /**
2663
+ * @generated MessageType for protobuf message moose.proto.DictionaryRangeLifetime
2664
+ */
2665
+ declare const DictionaryRangeLifetime: DictionaryRangeLifetime$Type;
2666
+ declare class DictionaryLifetime$Type extends MessageType<DictionaryLifetime> {
2667
+ constructor();
2668
+ create(value?: PartialMessage<DictionaryLifetime>): DictionaryLifetime;
2669
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryLifetime): DictionaryLifetime;
2670
+ internalBinaryWrite(message: DictionaryLifetime, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2671
+ }
2672
+ /**
2673
+ * DictionaryLifetime — how often dictionary data is refreshed
2674
+ *
2675
+ * @generated from protobuf message moose.proto.DictionaryLifetime
2676
+ */
2677
+ interface DictionaryLifetime {
2678
+ /**
2679
+ * @generated from protobuf oneof: t
2680
+ */
2681
+ t: {
2682
+ oneofKind: "staticLifetime";
2683
+ /**
2684
+ * Static: LIFETIME(0) — never automatically refresh
2685
+ *
2686
+ * @generated from protobuf field: bool static_lifetime = 1
2687
+ */
2688
+ staticLifetime: boolean;
2689
+ } | {
2690
+ oneofKind: "single";
2691
+ /**
2692
+ * Single: LIFETIME(N) — refresh every N seconds
2693
+ *
2694
+ * @generated from protobuf field: uint64 single = 2
2695
+ */
2696
+ single: bigint;
2697
+ } | {
2698
+ oneofKind: "range";
2699
+ /**
2700
+ * Range: LIFETIME(MIN N MAX M) — refresh between min and max seconds
2701
+ *
2702
+ * @generated from protobuf field: moose.proto.DictionaryRangeLifetime range = 3
2703
+ */
2704
+ range: DictionaryRangeLifetime;
2705
+ } | {
2706
+ oneofKind: undefined;
2707
+ };
2708
+ }
2709
+ /**
2710
+ * @generated MessageType for protobuf message moose.proto.DictionaryLifetime
2711
+ */
2712
+ declare const DictionaryLifetime: DictionaryLifetime$Type;
2713
+ declare class DictionaryHttpSource$Type extends MessageType<DictionaryHttpSource> {
2714
+ constructor();
2715
+ create(value?: PartialMessage<DictionaryHttpSource>): DictionaryHttpSource;
2716
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryHttpSource): DictionaryHttpSource;
2717
+ internalBinaryWrite(message: DictionaryHttpSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2718
+ }
2719
+ /**
2720
+ * DictionaryHttpSource — external HTTP source
2721
+ *
2722
+ * @generated from protobuf message moose.proto.DictionaryHttpSource
2723
+ */
2724
+ interface DictionaryHttpSource {
2725
+ /**
2726
+ * Full URL of the HTTP endpoint serving dictionary data
2727
+ *
2728
+ * @generated from protobuf field: string url = 1
2729
+ */
2730
+ url: string;
2731
+ /**
2732
+ * ClickHouse input format (e.g. CSV, JSONEachRow, TSV)
2733
+ *
2734
+ * @generated from protobuf field: string format = 2
2735
+ */
2736
+ format: string;
2737
+ /**
2738
+ * HTTP method override; defaults to GET when absent
2739
+ *
2740
+ * @generated from protobuf field: optional string method = 3
2741
+ */
2742
+ method?: string;
2743
+ /**
2744
+ * Optional SQL WHERE clause appended to the source query
2745
+ *
2746
+ * @generated from protobuf field: optional string where_clause = 4
2747
+ */
2748
+ whereClause?: string;
2749
+ }
2750
+ /**
2751
+ * @generated MessageType for protobuf message moose.proto.DictionaryHttpSource
2752
+ */
2753
+ declare const DictionaryHttpSource: DictionaryHttpSource$Type;
2754
+ declare class DictionaryClickHouseSource$Type extends MessageType<DictionaryClickHouseSource> {
2755
+ constructor();
2756
+ create(value?: PartialMessage<DictionaryClickHouseSource>): DictionaryClickHouseSource;
2757
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryClickHouseSource): DictionaryClickHouseSource;
2758
+ internalBinaryWrite(message: DictionaryClickHouseSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2759
+ }
2760
+ /**
2761
+ * DictionaryClickHouseSource — remote ClickHouse server as source
2762
+ *
2763
+ * @generated from protobuf message moose.proto.DictionaryClickHouseSource
2764
+ */
2765
+ interface DictionaryClickHouseSource {
2766
+ /**
2767
+ * Hostname or IP of the remote ClickHouse server
2768
+ *
2769
+ * @generated from protobuf field: string host = 1
2770
+ */
2771
+ host: string;
2772
+ /**
2773
+ * TCP port of the remote ClickHouse server
2774
+ *
2775
+ * @generated from protobuf field: uint32 port = 2
2776
+ */
2777
+ port: number;
2778
+ /**
2779
+ * Username for authentication
2780
+ *
2781
+ * @generated from protobuf field: string user = 3
2782
+ */
2783
+ user: string;
2784
+ /**
2785
+ * Password for authentication (masked via strip_dict_metadata() before proto/Redis serialization; not stored in plaintext)
2786
+ *
2787
+ * @generated from protobuf field: string password = 4
2788
+ */
2789
+ password: string;
2790
+ /**
2791
+ * Database name on the remote server
2792
+ *
2793
+ * @generated from protobuf field: string db = 5
2794
+ */
2795
+ db: string;
2796
+ /**
2797
+ * Table name on the remote server
2798
+ *
2799
+ * @generated from protobuf field: string table = 6
2800
+ */
2801
+ table: string;
2802
+ /**
2803
+ * Custom SQL query; overrides table when present
2804
+ *
2805
+ * @generated from protobuf field: optional string query = 7
2806
+ */
2807
+ query?: string;
2808
+ /**
2809
+ * SQL WHERE clause appended to the generated SELECT
2810
+ *
2811
+ * @generated from protobuf field: optional string where_clause = 8
2812
+ */
2813
+ whereClause?: string;
2814
+ /**
2815
+ * Query whose result change triggers dictionary reload
2816
+ *
2817
+ * @generated from protobuf field: optional string invalidate_query = 9
2818
+ */
2819
+ invalidateQuery?: string;
2820
+ }
2821
+ /**
2822
+ * @generated MessageType for protobuf message moose.proto.DictionaryClickHouseSource
2823
+ */
2824
+ declare const DictionaryClickHouseSource: DictionaryClickHouseSource$Type;
2825
+ declare class DictionaryMysqlSource$Type extends MessageType<DictionaryMysqlSource> {
2826
+ constructor();
2827
+ create(value?: PartialMessage<DictionaryMysqlSource>): DictionaryMysqlSource;
2828
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryMysqlSource): DictionaryMysqlSource;
2829
+ internalBinaryWrite(message: DictionaryMysqlSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2830
+ }
2831
+ /**
2832
+ * DictionaryMysqlSource — MySQL database as source
2833
+ *
2834
+ * @generated from protobuf message moose.proto.DictionaryMysqlSource
2835
+ */
2836
+ interface DictionaryMysqlSource {
2837
+ /**
2838
+ * Hostname or IP of the MySQL server
2839
+ *
2840
+ * @generated from protobuf field: string host = 1
2841
+ */
2842
+ host: string;
2843
+ /**
2844
+ * TCP port of the MySQL server
2845
+ *
2846
+ * @generated from protobuf field: uint32 port = 2
2847
+ */
2848
+ port: number;
2849
+ /**
2850
+ * Username for authentication
2851
+ *
2852
+ * @generated from protobuf field: string user = 3
2853
+ */
2854
+ user: string;
2855
+ /**
2856
+ * Password for authentication (masked via strip_dict_metadata() before proto/Redis serialization; not stored in plaintext)
2857
+ *
2858
+ * @generated from protobuf field: string password = 4
2859
+ */
2860
+ password: string;
2861
+ /**
2862
+ * Database name
2863
+ *
2864
+ * @generated from protobuf field: string db = 5
2865
+ */
2866
+ db: string;
2867
+ /**
2868
+ * Table name
2869
+ *
2870
+ * @generated from protobuf field: string table = 6
2871
+ */
2872
+ table: string;
2873
+ /**
2874
+ * Custom SQL query; overrides table when present
2875
+ *
2876
+ * @generated from protobuf field: optional string query = 7
2877
+ */
2878
+ query?: string;
2879
+ /**
2880
+ * SQL WHERE clause appended to the generated SELECT
2881
+ *
2882
+ * @generated from protobuf field: optional string where_clause = 8
2883
+ */
2884
+ whereClause?: string;
2885
+ /**
2886
+ * Query whose result change triggers dictionary reload
2887
+ *
2888
+ * @generated from protobuf field: optional string invalidate_query = 9
2889
+ */
2890
+ invalidateQuery?: string;
2891
+ }
2892
+ /**
2893
+ * @generated MessageType for protobuf message moose.proto.DictionaryMysqlSource
2894
+ */
2895
+ declare const DictionaryMysqlSource: DictionaryMysqlSource$Type;
2896
+ declare class DictionaryPostgresqlSource$Type extends MessageType<DictionaryPostgresqlSource> {
2897
+ constructor();
2898
+ create(value?: PartialMessage<DictionaryPostgresqlSource>): DictionaryPostgresqlSource;
2899
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryPostgresqlSource): DictionaryPostgresqlSource;
2900
+ internalBinaryWrite(message: DictionaryPostgresqlSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2901
+ }
2902
+ /**
2903
+ * DictionaryPostgresqlSource — PostgreSQL database as source
2904
+ *
2905
+ * @generated from protobuf message moose.proto.DictionaryPostgresqlSource
2906
+ */
2907
+ interface DictionaryPostgresqlSource {
2908
+ /**
2909
+ * Hostname or IP of the PostgreSQL server
2910
+ *
2911
+ * @generated from protobuf field: string host = 1
2912
+ */
2913
+ host: string;
2914
+ /**
2915
+ * TCP port of the PostgreSQL server
2916
+ *
2917
+ * @generated from protobuf field: uint32 port = 2
2918
+ */
2919
+ port: number;
2920
+ /**
2921
+ * Username for authentication
2922
+ *
2923
+ * @generated from protobuf field: string user = 3
2924
+ */
2925
+ user: string;
2926
+ /**
2927
+ * Password for authentication (masked via strip_dict_metadata() before proto/Redis serialization; not stored in plaintext)
2928
+ *
2929
+ * @generated from protobuf field: string password = 4
2930
+ */
2931
+ password: string;
2932
+ /**
2933
+ * Database name
2934
+ *
2935
+ * @generated from protobuf field: string db = 5
2936
+ */
2937
+ db: string;
2938
+ /**
2939
+ * Table name
2940
+ *
2941
+ * @generated from protobuf field: string table = 6
2942
+ */
2943
+ table: string;
2944
+ /**
2945
+ * Custom SQL query; overrides table when present
2946
+ *
2947
+ * @generated from protobuf field: optional string query = 7
2948
+ */
2949
+ query?: string;
2950
+ /**
2951
+ * SQL WHERE clause appended to the generated SELECT
2952
+ *
2953
+ * @generated from protobuf field: optional string where_clause = 8
2954
+ */
2955
+ whereClause?: string;
2956
+ /**
2957
+ * Query whose result change triggers dictionary reload
2958
+ *
2959
+ * @generated from protobuf field: optional string invalidate_query = 9
2960
+ */
2961
+ invalidateQuery?: string;
2962
+ }
2963
+ /**
2964
+ * @generated MessageType for protobuf message moose.proto.DictionaryPostgresqlSource
2965
+ */
2966
+ declare const DictionaryPostgresqlSource: DictionaryPostgresqlSource$Type;
2967
+ declare class DictionaryRedisSource$Type extends MessageType<DictionaryRedisSource> {
2968
+ constructor();
2969
+ create(value?: PartialMessage<DictionaryRedisSource>): DictionaryRedisSource;
2970
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryRedisSource): DictionaryRedisSource;
2971
+ internalBinaryWrite(message: DictionaryRedisSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
2972
+ }
2973
+ /**
2974
+ * DictionaryRedisSource — Redis as source
2975
+ *
2976
+ * @generated from protobuf message moose.proto.DictionaryRedisSource
2977
+ */
2978
+ interface DictionaryRedisSource {
2979
+ /**
2980
+ * Hostname or IP of the Redis server
2981
+ *
2982
+ * @generated from protobuf field: string host = 1
2983
+ */
2984
+ host: string;
2985
+ /**
2986
+ * TCP port of the Redis server
2987
+ *
2988
+ * @generated from protobuf field: uint32 port = 2
2989
+ */
2990
+ port: number;
2991
+ /**
2992
+ * Optional password for Redis AUTH command
2993
+ *
2994
+ * @generated from protobuf field: optional string password = 3
2995
+ */
2996
+ password?: string;
2997
+ /**
2998
+ * Redis database index (0-based); defaults to 0 when absent
2999
+ *
3000
+ * @generated from protobuf field: optional uint32 db_index = 4
3001
+ */
3002
+ dbIndex?: number;
3003
+ /**
3004
+ * Storage type: simple, hash, range_hashed, etc.
3005
+ *
3006
+ * @generated from protobuf field: string storage_type = 5
3007
+ */
3008
+ storageType: string;
3009
+ }
3010
+ /**
3011
+ * @generated MessageType for protobuf message moose.proto.DictionaryRedisSource
3012
+ */
3013
+ declare const DictionaryRedisSource: DictionaryRedisSource$Type;
3014
+ declare class DictionaryMongoDbSource$Type extends MessageType<DictionaryMongoDbSource> {
3015
+ constructor();
3016
+ create(value?: PartialMessage<DictionaryMongoDbSource>): DictionaryMongoDbSource;
3017
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryMongoDbSource): DictionaryMongoDbSource;
3018
+ internalBinaryWrite(message: DictionaryMongoDbSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
3019
+ }
3020
+ /**
3021
+ * DictionaryMongoDbSource — MongoDB as source
3022
+ *
3023
+ * @generated from protobuf message moose.proto.DictionaryMongoDbSource
3024
+ */
3025
+ interface DictionaryMongoDbSource {
3026
+ /**
3027
+ * Hostname or IP of the MongoDB server
3028
+ *
3029
+ * @generated from protobuf field: string host = 1
3030
+ */
3031
+ host: string;
3032
+ /**
3033
+ * TCP port of the MongoDB server
3034
+ *
3035
+ * @generated from protobuf field: uint32 port = 2
3036
+ */
3037
+ port: number;
3038
+ /**
3039
+ * Username for authentication
3040
+ *
3041
+ * @generated from protobuf field: string user = 3
3042
+ */
3043
+ user: string;
3044
+ /**
3045
+ * Password for authentication (masked via strip_dict_metadata() before proto/Redis serialization; not stored in plaintext)
3046
+ *
3047
+ * @generated from protobuf field: string password = 4
3048
+ */
3049
+ password: string;
3050
+ /**
3051
+ * Database name
3052
+ *
3053
+ * @generated from protobuf field: string db = 5
3054
+ */
3055
+ db: string;
3056
+ /**
3057
+ * Collection name
3058
+ *
3059
+ * @generated from protobuf field: string collection = 6
3060
+ */
3061
+ collection: string;
3062
+ }
3063
+ /**
3064
+ * @generated MessageType for protobuf message moose.proto.DictionaryMongoDbSource
3065
+ */
3066
+ declare const DictionaryMongoDbSource: DictionaryMongoDbSource$Type;
3067
+ declare class DictionaryExecutableSource$Type extends MessageType<DictionaryExecutableSource> {
3068
+ constructor();
3069
+ create(value?: PartialMessage<DictionaryExecutableSource>): DictionaryExecutableSource;
3070
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryExecutableSource): DictionaryExecutableSource;
3071
+ internalBinaryWrite(message: DictionaryExecutableSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
3072
+ }
3073
+ /**
3074
+ * DictionaryExecutableSource — external executable as source
3075
+ *
3076
+ * @generated from protobuf message moose.proto.DictionaryExecutableSource
3077
+ */
3078
+ interface DictionaryExecutableSource {
3079
+ /**
3080
+ * Shell command to execute; must emit records on stdout
3081
+ *
3082
+ * @generated from protobuf field: string command = 1
3083
+ */
3084
+ command: string;
3085
+ /**
3086
+ * ClickHouse input format of the executable output (e.g. TabSeparated)
3087
+ *
3088
+ * @generated from protobuf field: string format = 2
3089
+ */
3090
+ format: string;
3091
+ /**
3092
+ * When true, the first column is used implicitly as the dictionary key
3093
+ *
3094
+ * @generated from protobuf field: optional bool implicit_key = 3
3095
+ */
3096
+ implicitKey?: boolean;
3097
+ }
3098
+ /**
3099
+ * @generated MessageType for protobuf message moose.proto.DictionaryExecutableSource
3100
+ */
3101
+ declare const DictionaryExecutableSource: DictionaryExecutableSource$Type;
3102
+ declare class DictionaryS3Source$Type extends MessageType<DictionaryS3Source> {
3103
+ constructor();
3104
+ create(value?: PartialMessage<DictionaryS3Source>): DictionaryS3Source;
3105
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryS3Source): DictionaryS3Source;
3106
+ internalBinaryWrite(message: DictionaryS3Source, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
3107
+ }
3108
+ /**
3109
+ * DictionaryS3Source — S3 object storage as source
3110
+ *
3111
+ * @generated from protobuf message moose.proto.DictionaryS3Source
3112
+ */
3113
+ interface DictionaryS3Source {
3114
+ /**
3115
+ * S3 URL (s3://bucket/path or https://endpoint/bucket/path)
3116
+ *
3117
+ * @generated from protobuf field: string url = 1
3118
+ */
3119
+ url: string;
3120
+ /**
3121
+ * ClickHouse input format of the S3 object (e.g. Parquet, CSV)
3122
+ *
3123
+ * @generated from protobuf field: string format = 2
3124
+ */
3125
+ format: string;
3126
+ /**
3127
+ * AWS access key ID; omit to use instance profile / environment credentials
3128
+ *
3129
+ * @generated from protobuf field: optional string access_key_id = 3
3130
+ */
3131
+ accessKeyId?: string;
3132
+ /**
3133
+ * AWS secret access key (masked via strip_dict_metadata() before proto/Redis serialization; not stored in plaintext)
3134
+ *
3135
+ * @generated from protobuf field: optional string secret_access_key = 4
3136
+ */
3137
+ secretAccessKey?: string;
3138
+ }
3139
+ /**
3140
+ * @generated MessageType for protobuf message moose.proto.DictionaryS3Source
3141
+ */
3142
+ declare const DictionaryS3Source: DictionaryS3Source$Type;
3143
+ declare class DictionaryExternalSource$Type extends MessageType<DictionaryExternalSource> {
3144
+ constructor();
3145
+ create(value?: PartialMessage<DictionaryExternalSource>): DictionaryExternalSource;
3146
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DictionaryExternalSource): DictionaryExternalSource;
3147
+ internalBinaryWrite(message: DictionaryExternalSource, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
3148
+ }
3149
+ /**
3150
+ * DictionaryExternalSource — union of all supported external sources
3151
+ *
3152
+ * @generated from protobuf message moose.proto.DictionaryExternalSource
3153
+ */
3154
+ interface DictionaryExternalSource {
3155
+ /**
3156
+ * @generated from protobuf oneof: t
3157
+ */
3158
+ t: {
3159
+ oneofKind: "http";
3160
+ /**
3161
+ * @generated from protobuf field: moose.proto.DictionaryHttpSource http = 1
3162
+ */
3163
+ http: DictionaryHttpSource;
3164
+ } | {
3165
+ oneofKind: "clickhouse";
3166
+ /**
3167
+ * @generated from protobuf field: moose.proto.DictionaryClickHouseSource clickhouse = 2
3168
+ */
3169
+ clickhouse: DictionaryClickHouseSource;
3170
+ } | {
3171
+ oneofKind: "mysql";
3172
+ /**
3173
+ * @generated from protobuf field: moose.proto.DictionaryMysqlSource mysql = 3
3174
+ */
3175
+ mysql: DictionaryMysqlSource;
3176
+ } | {
3177
+ oneofKind: "postgresql";
3178
+ /**
3179
+ * @generated from protobuf field: moose.proto.DictionaryPostgresqlSource postgresql = 4
3180
+ */
3181
+ postgresql: DictionaryPostgresqlSource;
3182
+ } | {
3183
+ oneofKind: "redis";
3184
+ /**
3185
+ * @generated from protobuf field: moose.proto.DictionaryRedisSource redis = 5
3186
+ */
3187
+ redis: DictionaryRedisSource;
3188
+ } | {
3189
+ oneofKind: "mongodb";
3190
+ /**
3191
+ * @generated from protobuf field: moose.proto.DictionaryMongoDbSource mongodb = 6
3192
+ */
3193
+ mongodb: DictionaryMongoDbSource;
3194
+ } | {
3195
+ oneofKind: "executable";
3196
+ /**
3197
+ * @generated from protobuf field: moose.proto.DictionaryExecutableSource executable = 7
3198
+ */
3199
+ executable: DictionaryExecutableSource;
3200
+ } | {
3201
+ oneofKind: "s3";
3202
+ /**
3203
+ * @generated from protobuf field: moose.proto.DictionaryS3Source s3 = 8
3204
+ */
3205
+ s3: DictionaryS3Source;
3206
+ } | {
3207
+ oneofKind: undefined;
3208
+ };
3209
+ }
3210
+ /**
3211
+ * @generated MessageType for protobuf message moose.proto.DictionaryExternalSource
3212
+ */
3213
+ declare const DictionaryExternalSource: DictionaryExternalSource$Type;
3214
+ declare class OlapDictionary$Type extends MessageType<OlapDictionary> {
3215
+ constructor();
3216
+ create(value?: PartialMessage<OlapDictionary>): OlapDictionary;
3217
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OlapDictionary): OlapDictionary;
3218
+ private binaryReadMap12;
3219
+ internalBinaryWrite(message: OlapDictionary, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
3220
+ }
3221
+ /**
3222
+ * OlapDictionary — a ClickHouse Dictionary definition
3223
+ *
3224
+ * @generated from protobuf message moose.proto.OlapDictionary
3225
+ */
3226
+ interface OlapDictionary {
3227
+ /**
3228
+ * Dictionary name
3229
+ *
3230
+ * @generated from protobuf field: string name = 1
3231
+ */
3232
+ name: string;
3233
+ /**
3234
+ * Database where the dictionary is created (empty = default database)
3235
+ *
3236
+ * @generated from protobuf field: optional string database = 2
3237
+ */
3238
+ database?: string;
3239
+ /**
3240
+ * Optional ON CLUSTER name for distributed deployments
3241
+ *
3242
+ * @generated from protobuf field: optional string cluster_name = 3
3243
+ */
3244
+ clusterName?: string;
3245
+ /**
3246
+ * Source: exactly one must be set
3247
+ *
3248
+ * @generated from protobuf oneof: source
3249
+ */
3250
+ source: {
3251
+ oneofKind: "tableSource";
3252
+ /**
3253
+ * @generated from protobuf field: moose.proto.DictionaryTableSource table_source = 4
3254
+ */
3255
+ tableSource: DictionaryTableSource;
3256
+ } | {
3257
+ oneofKind: "querySource";
3258
+ /**
3259
+ * @generated from protobuf field: moose.proto.DictionaryQuerySource query_source = 5
3260
+ */
3261
+ querySource: DictionaryQuerySource;
3262
+ } | {
3263
+ oneofKind: "externalSource";
3264
+ /**
3265
+ * @generated from protobuf field: moose.proto.DictionaryExternalSource external_source = 6
3266
+ */
3267
+ externalSource: DictionaryExternalSource;
3268
+ } | {
3269
+ oneofKind: undefined;
3270
+ };
3271
+ /**
3272
+ * Primary key column names (single-column = simple key, multi-column = complex key)
3273
+ *
3274
+ * @generated from protobuf field: repeated string primary_key = 7
3275
+ */
3276
+ primaryKey: string[];
3277
+ /**
3278
+ * Dictionary attribute columns
3279
+ *
3280
+ * @generated from protobuf field: repeated moose.proto.DictionaryColumn columns = 8
3281
+ */
3282
+ columns: DictionaryColumn[];
3283
+ /**
3284
+ * Layout type and configuration
3285
+ *
3286
+ * @generated from protobuf field: moose.proto.DictionaryLayout layout = 9
3287
+ */
3288
+ layout?: DictionaryLayout;
3289
+ /**
3290
+ * Lifetime / refresh policy
3291
+ *
3292
+ * @generated from protobuf field: moose.proto.DictionaryLifetime lifetime = 10
3293
+ */
3294
+ lifetime?: DictionaryLifetime;
3295
+ /**
3296
+ * Optional invalidation query (checked before reload; if unchanged, skip)
3297
+ *
3298
+ * @generated from protobuf field: optional string invalidate_query = 11
3299
+ */
3300
+ invalidateQuery?: string;
3301
+ /**
3302
+ * Dictionary-level settings map
3303
+ *
3304
+ * @generated from protobuf field: map<string, string> settings = 12
3305
+ */
3306
+ settings: {
3307
+ [key: string]: string;
3308
+ };
3309
+ /**
3310
+ * Optional COMMENT clause
3311
+ *
3312
+ * @generated from protobuf field: optional string comment = 13
3313
+ */
3314
+ comment?: string;
3315
+ /**
3316
+ * Lifecycle management policy
3317
+ *
3318
+ * @generated from protobuf field: moose.proto.LifeCycle life_cycle = 14
3319
+ */
3320
+ lifeCycle: LifeCycle;
3321
+ /**
3322
+ * Optional metadata (description, source file)
3323
+ *
3324
+ * @generated from protobuf field: optional moose.proto.Metadata metadata = 15
3325
+ */
3326
+ metadata?: Metadata;
3327
+ /**
3328
+ * Optional version string (e.g. "0.1"). When set, the version suffix is baked
3329
+ * into `name` (e.g. "my_dict_0_1") so versioned dictionaries are distinct objects.
3330
+ *
3331
+ * @generated from protobuf field: optional string version = 16
3332
+ */
3333
+ version?: string;
3334
+ }
3335
+ /**
3336
+ * @generated MessageType for protobuf message moose.proto.OlapDictionary
3337
+ */
3338
+ declare const OlapDictionary: OlapDictionary$Type;
2341
3339
 
2342
- 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, TableConstraint, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };
3340
+ export { ApiEndpoint, Column, ColumnType, ConsumptionQueryParam, DataEnum, DateType, Decimal, DictionaryClickHouseSource, DictionaryColumn, DictionaryExecutableSource, DictionaryExternalSource, DictionaryHttpSource, DictionaryLayout, DictionaryLayout_Type, DictionaryLifetime, DictionaryMongoDbSource, DictionaryMysqlSource, DictionaryPostgresqlSource, DictionaryQuerySource, DictionaryRangeLifetime, DictionaryRedisSource, DictionaryS3Source, DictionaryTableSource, Dmv1View, EgressDetails, EndpointIngestionFormat, EnumMember, EnumValue, FloatType, FunctionProcess, InfrastructureMap, InfrastructureSignature, IngressDetails, InitialDataLoad, IntType, Json, JsonTypedPath, LifeCycle, Map, MaterializedView, Metadata, Method, Nested, OlapDictionary, OrchestrationWorker, OrderBy, OrderByFields, PrimitiveSignature, PrimitiveTypes, SchemaRegistry, SchemaRegistry_Encoding, SeedFilter, SelectQuery, SelectRowPolicy, SimpleColumnType, SourceLocation, SqlResource, SubjectVersion, Table, TableAlias, TableConstraint, TableIndex, TableProjection, TableReference, Topic, TopicToTableSyncProcess, TopicToTopicSyncProcess, Tuple, View, WebApp, WebAppMetadata, Workflow };