@grepr/cli 1.6.11-99d8fb8 → 1.6.13-a9d5b74

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?: {
@@ -3279,6 +3320,8 @@ export interface components {
3279
3320
  };
3280
3321
  /** @description Daily-usage table. */
3281
3322
  DailyTable: {
3323
+ /** @description True when the reporting period contains today. Same semantic as PeriodEntry.current — the last entry of days[] represents an incomplete day, so consumers should mark it as in-progress. */
3324
+ current?: boolean;
3282
3325
  /** @description The reporting period's days in ascending order. */
3283
3326
  days: string[];
3284
3327
  /** @description One usage series per metered dimension, in display order. Bricks absent from the configured displayed-brick list are skipped. */
@@ -3604,11 +3647,19 @@ export interface components {
3604
3647
  integrationId: string;
3605
3648
  name: string;
3606
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
+ };
3607
3654
  /** @description The team IDs that this dataset is associated with. */
3608
3655
  teamIds?: string[];
3609
3656
  };
3610
3657
  DatasetUpdate: {
3611
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
+ };
3612
3663
  /** @description The team IDs that this dataset is associated with. */
3613
3664
  teamIds?: string[];
3614
3665
  };
@@ -3648,6 +3699,14 @@ export interface components {
3648
3699
  EarliestReadingStrategy: {
3649
3700
  type: "EarliestReadingStrategy";
3650
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
+ };
3651
3710
  /** @description Configuration for an embedding model. The 'type' field determines the provider. */
3652
3711
  EmbeddingConfig: {
3653
3712
  /** Format: int32 */
@@ -6354,6 +6413,25 @@ export interface components {
6354
6413
  ParsedQueryTree: {
6355
6414
  root?: components["schemas"]["ParsedQueryNode"];
6356
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
+ };
6357
6435
  PatternLookupIcebergTableSink: {
6358
6436
  /** @description The id of the dataset to write to */
6359
6437
  datasetId: string;
@@ -6458,7 +6536,7 @@ export interface components {
6458
6536
  * @description Inclusive period end date — the last day in the period.
6459
6537
  */
6460
6538
  endDate: string;
6461
- /** @description Canonical period identifier used in the URL — "YYYY-MM" for annual periods, "YYYY-MM-DD" (the sub-period's start date) for monthly periods. */
6539
+ /** @description Canonical period identifier used in the URL — "YYYY-MM-DD" (the period's start date) for both monthly and annual plans. */
6462
6540
  id: string;
6463
6541
  /**
6464
6542
  * Format: date
@@ -8234,6 +8312,18 @@ export interface components {
8234
8312
  */
8235
8313
  type: SumoLogSourceType;
8236
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
+ };
8237
8327
  TagAction: {
8238
8328
  /**
8239
8329
  * @description Modification actions on tag values.
@@ -8830,6 +8920,19 @@ export interface components {
8830
8920
  */
8831
8921
  duration: string;
8832
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
+ };
8833
8936
  /** @description Time-series rule that detects spikes by comparing short-term to long-term EWMA. */
8834
8937
  TimeSeriesRuleConfig: Omit<components["schemas"]["PatternRuleConfig"], "type"> & {
8835
8938
  ewmaPeriods: string[];
@@ -9661,6 +9764,7 @@ export type SchemaBillingPeriodsResponse = components["schemas"]["BillingPeriods
9661
9764
  export type SchemaBillingSummary = components["schemas"]["BillingSummary"];
9662
9765
  export type SchemaBillingSummaryResponse = components["schemas"]["BillingSummaryResponse"];
9663
9766
  export type SchemaBucketAccessResult = components["schemas"]["BucketAccessResult"];
9767
+ export type SchemaBucketPartitionTransform = components["schemas"]["BucketPartitionTransform"];
9664
9768
  export type SchemaChunkedOutputEventRecordReadableData = components["schemas"]["ChunkedOutputEventRecordReadableData"];
9665
9769
  export type SchemaClearSecret = components["schemas"]["ClearSecret"];
9666
9770
  export type SchemaCloudFormationSetupInfo = components["schemas"]["CloudFormationSetupInfo"];
@@ -9700,6 +9804,7 @@ export type SchemaDatasetUpdate = components["schemas"]["DatasetUpdate"];
9700
9804
  export type SchemaDoubleDatapoint = components["schemas"]["DoubleDatapoint"];
9701
9805
  export type SchemaDropRule = components["schemas"]["DropRule"];
9702
9806
  export type SchemaEarliestReadingStrategy = components["schemas"]["EarliestReadingStrategy"];
9807
+ export type SchemaEffectivePartitionField = components["schemas"]["EffectivePartitionField"];
9703
9808
  export type SchemaEmbeddingConfig = components["schemas"]["EmbeddingConfig"];
9704
9809
  export type SchemaEntityContextAggregation = components["schemas"]["EntityContextAggregation"];
9705
9810
  export type SchemaEntityRef = components["schemas"]["EntityRef"];
@@ -9842,6 +9947,9 @@ export type SchemaParseQueryResponse = components["schemas"]["ParseQueryResponse
9842
9947
  export type SchemaParseResult = components["schemas"]["ParseResult"];
9843
9948
  export type SchemaParsedQueryNode = components["schemas"]["ParsedQueryNode"];
9844
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"];
9845
9953
  export type SchemaPatternLookupIcebergTableSink = components["schemas"]["PatternLookupIcebergTableSink"];
9846
9954
  export type SchemaPatternMatcher = components["schemas"]["PatternMatcher"];
9847
9955
  export type SchemaPatternRuleConfig = components["schemas"]["PatternRuleConfig"];
@@ -9934,6 +10042,8 @@ export type SchemaSumAttributesMergeStrategy = components["schemas"]["SumAttribu
9934
10042
  export type SchemaSumo = components["schemas"]["Sumo"];
9935
10043
  export type SchemaSumoLogSink = components["schemas"]["SumoLogSink"];
9936
10044
  export type SchemaSumoLogSource = components["schemas"]["SumoLogSource"];
10045
+ export type SchemaTableConfig = components["schemas"]["TableConfig"];
10046
+ export type SchemaTableConfigRead = components["schemas"]["TableConfigRead"];
9937
10047
  export type SchemaTagAction = components["schemas"]["TagAction"];
9938
10048
  export type SchemaTagKeyNode = components["schemas"]["TagKeyNode"];
9939
10049
  export type SchemaTagKeyPrefixNode = components["schemas"]["TagKeyPrefixNode"];
@@ -9959,6 +10069,7 @@ export type SchemaTemplateQueryException = components["schemas"]["TemplateQueryE
9959
10069
  export type SchemaTemplateSqlOperation = components["schemas"]["TemplateSqlOperation"];
9960
10070
  export type SchemaTemplateTraceSamplerException = components["schemas"]["TemplateTraceSamplerException"];
9961
10071
  export type SchemaTimeGranularity = components["schemas"]["TimeGranularity"];
10072
+ export type SchemaTimePartitionTransform = components["schemas"]["TimePartitionTransform"];
9962
10073
  export type SchemaTimeSeriesRuleConfig = components["schemas"]["TimeSeriesRuleConfig"];
9963
10074
  export type SchemaTimestampReadingStrategy = components["schemas"]["TimestampReadingStrategy"];
9964
10075
  export type SchemaTraceAction = components["schemas"]["TraceAction"];
@@ -10166,7 +10277,7 @@ export interface operations {
10166
10277
  getDailyTable: {
10167
10278
  parameters: {
10168
10279
  query?: {
10169
- /** @description Canonical period id: "YYYY-MM" for annual periods, "YYYY-MM-DD" (the sub-period start date) for monthly periods. Defaults to the period containing today when omitted. */
10280
+ /** @description Canonical period id ("YYYY-MM-DD", the period's start date) for both monthly and annual plans. Defaults to the period containing today when omitted. */
10170
10281
  period?: string;
10171
10282
  };
10172
10283
  header?: never;
@@ -10266,7 +10377,7 @@ export interface operations {
10266
10377
  getSummary: {
10267
10378
  parameters: {
10268
10379
  query?: {
10269
- /** @description Canonical period id: "YYYY-MM" for annual periods, "YYYY-MM-DD" (the sub-period start date) for monthly periods. Defaults to the period containing today when omitted. */
10380
+ /** @description Canonical period id ("YYYY-MM-DD", the period's start date) for both monthly and annual plans. Defaults to the period containing today when omitted. */
10270
10381
  period?: string;
10271
10382
  };
10272
10383
  header?: never;
@@ -10562,6 +10673,133 @@ export interface operations {
10562
10673
  };
10563
10674
  };
10564
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
+ };
10565
10803
  generatePresignedUrl: {
10566
10804
  parameters: {
10567
10805
  query: {
@@ -16854,6 +17092,9 @@ export declare enum AverageAttributesMergeStrategyType {
16854
17092
  export declare enum BackfillJobActionType {
16855
17093
  backfill_job_action = "backfill-job-action"
16856
17094
  }
17095
+ export declare enum BucketPartitionTransformType {
17096
+ bucket = "bucket"
17097
+ }
16857
17098
  export declare enum CloudTrailLogsFileSourceRegions {
16858
17099
  US_EAST_1 = "US_EAST_1",
16859
17100
  US_EAST_2 = "US_EAST_2",
@@ -17209,6 +17450,7 @@ export declare enum ReadFeatureFlags {
17209
17450
  ICEBERG_LOG_SOURCE = "ICEBERG_LOG_SOURCE",
17210
17451
  QUERY_JOBS = "QUERY_JOBS",
17211
17452
  AUTH0_SSO_CONNECTION = "AUTH0_SSO_CONNECTION",
17453
+ DATASET_TABLE_CONFIG = "DATASET_TABLE_CONFIG",
17212
17454
  UNKNOWN = "UNKNOWN"
17213
17455
  }
17214
17456
  export declare enum ReadAnthropicType {
@@ -17401,6 +17643,15 @@ export declare enum TemplateSqlOperationSqlMode {
17401
17643
  export declare enum TemplateTraceSamplerExceptionType {
17402
17644
  trace_sampler_exception = "trace-sampler-exception"
17403
17645
  }
17646
+ export declare enum TimePartitionTransformPartitionBy {
17647
+ HOUR = "HOUR",
17648
+ DAY = "DAY",
17649
+ MONTH = "MONTH",
17650
+ YEAR = "YEAR"
17651
+ }
17652
+ export declare enum TimePartitionTransformType {
17653
+ time = "time"
17654
+ }
17404
17655
  export declare enum TimeSeriesRuleConfigType {
17405
17656
  time_series = "time-series"
17406
17657
  }