@grepr/cli 1.6.12-2283e39 → 1.6.14-44993a9

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.
@@ -198,6 +198,34 @@ export interface paths {
198
198
  patch?: never;
199
199
  trace?: never;
200
200
  };
201
+ "/v1/datasets/{id}/{tableKey}/config": {
202
+ parameters: {
203
+ query?: never;
204
+ header?: never;
205
+ path?: never;
206
+ cookie?: never;
207
+ };
208
+ /**
209
+ * Get a dataset table config
210
+ * @description Returns the configuration for one of the dataset's tables (e.g. logs_raw), including the system-controlled effective partition spec. Body's user fields are empty when no override has been configured.
211
+ */
212
+ get: operations["getTableConfig"];
213
+ /**
214
+ * Replace a dataset table config
215
+ * @description Replaces the configuration override for one of the dataset's tables. Applies the resulting schema and partition-spec changes to the live Iceberg table. 409 if any pipeline currently references the dataset.
216
+ */
217
+ put: operations["putTableConfig"];
218
+ post?: never;
219
+ /**
220
+ * Remove a dataset table config
221
+ * @description Removes the user override and reverts the table to defaults. Idempotent.
222
+ */
223
+ delete: operations["deleteTableConfig"];
224
+ options?: never;
225
+ head?: never;
226
+ patch?: never;
227
+ trace?: never;
228
+ };
201
229
  "/v1/files/upload/presigned-url": {
202
230
  parameters: {
203
231
  query?: never;
@@ -3013,6 +3041,19 @@ export interface components {
3013
3041
  message?: string;
3014
3042
  retryable?: boolean;
3015
3043
  };
3044
+ BucketPartitionTransform: Omit<components["schemas"]["PartitionTransform"], "type"> & {
3045
+ /**
3046
+ * Format: int32
3047
+ * @description Number of hash buckets.
3048
+ */
3049
+ numBuckets: number;
3050
+ } & {
3051
+ /**
3052
+ * @description discriminator enum property added by openapi-typescript
3053
+ * @enum {string}
3054
+ */
3055
+ type: BucketPartitionTransformType;
3056
+ };
3016
3057
  ChunkedOutputEventRecordReadableData: {
3017
3058
  closed?: boolean;
3018
3059
  type?: {
@@ -3606,11 +3647,19 @@ export interface components {
3606
3647
  integrationId: string;
3607
3648
  name: string;
3608
3649
  organizationId: string;
3650
+ /** @description Per-table configuration overrides, keyed by table key (e.g. logs_raw). Absent entries use system defaults. */
3651
+ tables?: {
3652
+ [key: string]: components["schemas"]["TableConfig"];
3653
+ };
3609
3654
  /** @description The team IDs that this dataset is associated with. */
3610
3655
  teamIds?: string[];
3611
3656
  };
3612
3657
  DatasetUpdate: {
3613
3658
  name: string;
3659
+ /** @description Per-table configuration overrides. Read-only here; use /datasets/{id}/{tableKey}/config to mutate. */
3660
+ tables?: {
3661
+ [key: string]: components["schemas"]["TableConfig"];
3662
+ };
3614
3663
  /** @description The team IDs that this dataset is associated with. */
3615
3664
  teamIds?: string[];
3616
3665
  };
@@ -3650,6 +3699,14 @@ export interface components {
3650
3699
  EarliestReadingStrategy: {
3651
3700
  type: "EarliestReadingStrategy";
3652
3701
  } & Omit<components["schemas"]["FileReadingStrategy"], "type">;
3702
+ /** @description Full effective partition spec, including system-controlled rows. */
3703
+ EffectivePartitionField: {
3704
+ /** @description Logical column the row partitions by (built-in name or bare tag key). */
3705
+ column: string;
3706
+ /** @description Whether this row is system-controlled and cannot be edited. */
3707
+ systemControlled: boolean;
3708
+ transform?: components["schemas"]["PartitionTransform"];
3709
+ };
3653
3710
  /** @description Configuration for an embedding model. The 'type' field determines the provider. */
3654
3711
  EmbeddingConfig: {
3655
3712
  /** Format: int32 */
@@ -6356,6 +6413,25 @@ export interface components {
6356
6413
  ParsedQueryTree: {
6357
6414
  root?: components["schemas"]["ParsedQueryNode"];
6358
6415
  };
6416
+ /** @description User-chosen partition layout. */
6417
+ PartitionConfig: {
6418
+ /** @description User-chosen partition fields applied in order. */
6419
+ fields: components["schemas"]["PartitionFieldConfig"][];
6420
+ };
6421
+ /** @description User-chosen partition fields applied in order. */
6422
+ PartitionFieldConfig: {
6423
+ /**
6424
+ * Format: int32
6425
+ * @description Number of buckets to hash this column into.
6426
+ */
6427
+ buckets: number;
6428
+ /** @description Built-in column (service/host) or a promoted tag key to partition by. */
6429
+ column: string;
6430
+ };
6431
+ /** @description An Iceberg partition transform applied to a column: a time transform (hour/day/month/year) or a hash bucket transform with a fixed bucket count. Discriminated by the 'type' property (time/bucket). */
6432
+ PartitionTransform: {
6433
+ type: string;
6434
+ };
6359
6435
  PatternLookupIcebergTableSink: {
6360
6436
  /** @description The id of the dataset to write to */
6361
6437
  datasetId: string;
@@ -8236,6 +8312,18 @@ export interface components {
8236
8312
  */
8237
8313
  type: SumoLogSourceType;
8238
8314
  };
8315
+ /** @description Per-table configuration overrides. Read-only here; use /datasets/{id}/{tableKey}/config to mutate. */
8316
+ TableConfig: {
8317
+ partitionConfig?: components["schemas"]["PartitionConfig"];
8318
+ /** @description Bare tag keys to promote to top-level columns. */
8319
+ promotedTagKeys?: string[];
8320
+ };
8321
+ TableConfigRead: {
8322
+ /** @description Full effective partition spec, including system-controlled rows. */
8323
+ effectiveSpec: components["schemas"]["EffectivePartitionField"][];
8324
+ /** @description Bare tag keys promoted to top-level columns. */
8325
+ promotedTagKeys?: string[];
8326
+ };
8239
8327
  TagAction: {
8240
8328
  /**
8241
8329
  * @description Modification actions on tag values.
@@ -8832,6 +8920,19 @@ export interface components {
8832
8920
  */
8833
8921
  duration: string;
8834
8922
  };
8923
+ TimePartitionTransform: Omit<components["schemas"]["PartitionTransform"], "type"> & {
8924
+ /**
8925
+ * @description Time granularity of the transform.
8926
+ * @enum {string}
8927
+ */
8928
+ partitionBy: TimePartitionTransformPartitionBy;
8929
+ } & {
8930
+ /**
8931
+ * @description discriminator enum property added by openapi-typescript
8932
+ * @enum {string}
8933
+ */
8934
+ type: TimePartitionTransformType;
8935
+ };
8835
8936
  /** @description Time-series rule that detects spikes by comparing short-term to long-term EWMA. */
8836
8937
  TimeSeriesRuleConfig: Omit<components["schemas"]["PatternRuleConfig"], "type"> & {
8837
8938
  ewmaPeriods: string[];
@@ -9663,6 +9764,7 @@ export type SchemaBillingPeriodsResponse = components["schemas"]["BillingPeriods
9663
9764
  export type SchemaBillingSummary = components["schemas"]["BillingSummary"];
9664
9765
  export type SchemaBillingSummaryResponse = components["schemas"]["BillingSummaryResponse"];
9665
9766
  export type SchemaBucketAccessResult = components["schemas"]["BucketAccessResult"];
9767
+ export type SchemaBucketPartitionTransform = components["schemas"]["BucketPartitionTransform"];
9666
9768
  export type SchemaChunkedOutputEventRecordReadableData = components["schemas"]["ChunkedOutputEventRecordReadableData"];
9667
9769
  export type SchemaClearSecret = components["schemas"]["ClearSecret"];
9668
9770
  export type SchemaCloudFormationSetupInfo = components["schemas"]["CloudFormationSetupInfo"];
@@ -9702,6 +9804,7 @@ export type SchemaDatasetUpdate = components["schemas"]["DatasetUpdate"];
9702
9804
  export type SchemaDoubleDatapoint = components["schemas"]["DoubleDatapoint"];
9703
9805
  export type SchemaDropRule = components["schemas"]["DropRule"];
9704
9806
  export type SchemaEarliestReadingStrategy = components["schemas"]["EarliestReadingStrategy"];
9807
+ export type SchemaEffectivePartitionField = components["schemas"]["EffectivePartitionField"];
9705
9808
  export type SchemaEmbeddingConfig = components["schemas"]["EmbeddingConfig"];
9706
9809
  export type SchemaEntityContextAggregation = components["schemas"]["EntityContextAggregation"];
9707
9810
  export type SchemaEntityRef = components["schemas"]["EntityRef"];
@@ -9844,6 +9947,9 @@ export type SchemaParseQueryResponse = components["schemas"]["ParseQueryResponse
9844
9947
  export type SchemaParseResult = components["schemas"]["ParseResult"];
9845
9948
  export type SchemaParsedQueryNode = components["schemas"]["ParsedQueryNode"];
9846
9949
  export type SchemaParsedQueryTree = components["schemas"]["ParsedQueryTree"];
9950
+ export type SchemaPartitionConfig = components["schemas"]["PartitionConfig"];
9951
+ export type SchemaPartitionFieldConfig = components["schemas"]["PartitionFieldConfig"];
9952
+ export type SchemaPartitionTransform = components["schemas"]["PartitionTransform"];
9847
9953
  export type SchemaPatternLookupIcebergTableSink = components["schemas"]["PatternLookupIcebergTableSink"];
9848
9954
  export type SchemaPatternMatcher = components["schemas"]["PatternMatcher"];
9849
9955
  export type SchemaPatternRuleConfig = components["schemas"]["PatternRuleConfig"];
@@ -9936,6 +10042,8 @@ export type SchemaSumAttributesMergeStrategy = components["schemas"]["SumAttribu
9936
10042
  export type SchemaSumo = components["schemas"]["Sumo"];
9937
10043
  export type SchemaSumoLogSink = components["schemas"]["SumoLogSink"];
9938
10044
  export type SchemaSumoLogSource = components["schemas"]["SumoLogSource"];
10045
+ export type SchemaTableConfig = components["schemas"]["TableConfig"];
10046
+ export type SchemaTableConfigRead = components["schemas"]["TableConfigRead"];
9939
10047
  export type SchemaTagAction = components["schemas"]["TagAction"];
9940
10048
  export type SchemaTagKeyNode = components["schemas"]["TagKeyNode"];
9941
10049
  export type SchemaTagKeyPrefixNode = components["schemas"]["TagKeyPrefixNode"];
@@ -9961,6 +10069,7 @@ export type SchemaTemplateQueryException = components["schemas"]["TemplateQueryE
9961
10069
  export type SchemaTemplateSqlOperation = components["schemas"]["TemplateSqlOperation"];
9962
10070
  export type SchemaTemplateTraceSamplerException = components["schemas"]["TemplateTraceSamplerException"];
9963
10071
  export type SchemaTimeGranularity = components["schemas"]["TimeGranularity"];
10072
+ export type SchemaTimePartitionTransform = components["schemas"]["TimePartitionTransform"];
9964
10073
  export type SchemaTimeSeriesRuleConfig = components["schemas"]["TimeSeriesRuleConfig"];
9965
10074
  export type SchemaTimestampReadingStrategy = components["schemas"]["TimestampReadingStrategy"];
9966
10075
  export type SchemaTraceAction = components["schemas"]["TraceAction"];
@@ -10564,6 +10673,133 @@ export interface operations {
10564
10673
  };
10565
10674
  };
10566
10675
  };
10676
+ getTableConfig: {
10677
+ parameters: {
10678
+ query?: never;
10679
+ header?: never;
10680
+ path: {
10681
+ id: string;
10682
+ tableKey: string;
10683
+ };
10684
+ cookie?: never;
10685
+ };
10686
+ requestBody?: never;
10687
+ responses: {
10688
+ /** @description The table config, with effectiveSpec always populated. */
10689
+ 200: {
10690
+ headers: {
10691
+ [name: string]: unknown;
10692
+ };
10693
+ content: {
10694
+ "application/json": components["schemas"]["TableConfigRead"];
10695
+ };
10696
+ };
10697
+ /** @description Unsupported table key. */
10698
+ 400: {
10699
+ headers: {
10700
+ [name: string]: unknown;
10701
+ };
10702
+ content?: never;
10703
+ };
10704
+ /** @description Dataset not found. */
10705
+ 404: {
10706
+ headers: {
10707
+ [name: string]: unknown;
10708
+ };
10709
+ content?: never;
10710
+ };
10711
+ };
10712
+ };
10713
+ putTableConfig: {
10714
+ parameters: {
10715
+ query?: never;
10716
+ header?: never;
10717
+ path: {
10718
+ id: string;
10719
+ tableKey: string;
10720
+ };
10721
+ cookie?: never;
10722
+ };
10723
+ requestBody?: {
10724
+ content: {
10725
+ "application/json": components["schemas"]["TableConfig"];
10726
+ };
10727
+ };
10728
+ responses: {
10729
+ /** @description The persisted table config. */
10730
+ 200: {
10731
+ headers: {
10732
+ [name: string]: unknown;
10733
+ };
10734
+ content: {
10735
+ "application/json": components["schemas"]["TableConfigRead"];
10736
+ };
10737
+ };
10738
+ /** @description Invalid config or unsupported key. */
10739
+ 400: {
10740
+ headers: {
10741
+ [name: string]: unknown;
10742
+ };
10743
+ content?: never;
10744
+ };
10745
+ /** @description Dataset not found. */
10746
+ 404: {
10747
+ headers: {
10748
+ [name: string]: unknown;
10749
+ };
10750
+ content?: never;
10751
+ };
10752
+ /** @description Dataset has linked jobs; stop them before changing config. */
10753
+ 409: {
10754
+ headers: {
10755
+ [name: string]: unknown;
10756
+ };
10757
+ content?: never;
10758
+ };
10759
+ };
10760
+ };
10761
+ deleteTableConfig: {
10762
+ parameters: {
10763
+ query?: never;
10764
+ header?: never;
10765
+ path: {
10766
+ id: string;
10767
+ tableKey: string;
10768
+ };
10769
+ cookie?: never;
10770
+ };
10771
+ requestBody?: never;
10772
+ responses: {
10773
+ /** @description Override removed (or never set). */
10774
+ 204: {
10775
+ headers: {
10776
+ [name: string]: unknown;
10777
+ };
10778
+ content?: never;
10779
+ };
10780
+ /** @description Unsupported table key. */
10781
+ 400: {
10782
+ headers: {
10783
+ [name: string]: unknown;
10784
+ };
10785
+ content?: never;
10786
+ };
10787
+ /** @description Dataset not found. */
10788
+ 404: {
10789
+ headers: {
10790
+ [name: string]: unknown;
10791
+ };
10792
+ content?: never;
10793
+ };
10794
+ /** @description Dataset has linked jobs; stop them before changing config. */
10795
+ 409: {
10796
+ headers: {
10797
+ [name: string]: unknown;
10798
+ };
10799
+ content?: never;
10800
+ };
10801
+ };
10802
+ };
10567
10803
  generatePresignedUrl: {
10568
10804
  parameters: {
10569
10805
  query: {
@@ -16856,6 +17092,9 @@ export declare enum AverageAttributesMergeStrategyType {
16856
17092
  export declare enum BackfillJobActionType {
16857
17093
  backfill_job_action = "backfill-job-action"
16858
17094
  }
17095
+ export declare enum BucketPartitionTransformType {
17096
+ bucket = "bucket"
17097
+ }
16859
17098
  export declare enum CloudTrailLogsFileSourceRegions {
16860
17099
  US_EAST_1 = "US_EAST_1",
16861
17100
  US_EAST_2 = "US_EAST_2",
@@ -17206,11 +17445,11 @@ export declare enum ReadFeatureFlags {
17206
17445
  METRICS_SOURCE = "METRICS_SOURCE",
17207
17446
  S3_LOGS_FILE_SOURCE = "S3_LOGS_FILE_SOURCE",
17208
17447
  PIPELINE_TEMPLATES = "PIPELINE_TEMPLATES",
17209
- TRACE_PIPELINE_CREATION = "TRACE_PIPELINE_CREATION",
17210
17448
  AI_WORKFLOWS = "AI_WORKFLOWS",
17211
17449
  ICEBERG_LOG_SOURCE = "ICEBERG_LOG_SOURCE",
17212
17450
  QUERY_JOBS = "QUERY_JOBS",
17213
17451
  AUTH0_SSO_CONNECTION = "AUTH0_SSO_CONNECTION",
17452
+ DATASET_TABLE_CONFIG = "DATASET_TABLE_CONFIG",
17214
17453
  UNKNOWN = "UNKNOWN"
17215
17454
  }
17216
17455
  export declare enum ReadAnthropicType {
@@ -17403,6 +17642,15 @@ export declare enum TemplateSqlOperationSqlMode {
17403
17642
  export declare enum TemplateTraceSamplerExceptionType {
17404
17643
  trace_sampler_exception = "trace-sampler-exception"
17405
17644
  }
17645
+ export declare enum TimePartitionTransformPartitionBy {
17646
+ HOUR = "HOUR",
17647
+ DAY = "DAY",
17648
+ MONTH = "MONTH",
17649
+ YEAR = "YEAR"
17650
+ }
17651
+ export declare enum TimePartitionTransformType {
17652
+ time = "time"
17653
+ }
17406
17654
  export declare enum TimeSeriesRuleConfigType {
17407
17655
  time_series = "time-series"
17408
17656
  }