@grepr/cli 1.4.4 → 1.4.5-a0440af

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.
package/README.md CHANGED
@@ -13,6 +13,10 @@ The Grepr command-line tool (`@grepr/cli`) and a Claude Code plugin that lets Cl
13
13
 
14
14
  ## CLI
15
15
 
16
+ ### Requirements
17
+
18
+ - Node.js 20.0.0 or higher
19
+
16
20
  ### Install
17
21
 
18
22
  ```bash
@@ -29,10 +33,6 @@ npx @grepr/cli --help
29
33
  yarn global add @grepr/cli
30
34
  ```
31
35
 
32
- ### Requirements
33
-
34
- - Node.js 18.0.0 or higher
35
-
36
36
  ### Quick start
37
37
 
38
38
  ```bash
@@ -110,6 +110,34 @@ export interface paths {
110
110
  patch?: never;
111
111
  trace?: never;
112
112
  };
113
+ "/v1/datasets/{id}/estimation-config": {
114
+ parameters: {
115
+ query?: never;
116
+ header?: never;
117
+ path?: never;
118
+ cookie?: never;
119
+ };
120
+ /**
121
+ * Get dataset impact estimation configuration
122
+ * @description Returns the impact-estimation configuration for the dataset. The presence of a configuration is the per-dataset opt-in for impact estimation.
123
+ */
124
+ get: operations["getDatasetEstimationConfig"];
125
+ /**
126
+ * Create or update dataset impact estimation configuration
127
+ * @description Creates or replaces the impact-estimation configuration for the dataset. Replacing the configuration takes effect on the next estimation cycle.
128
+ */
129
+ put: operations["upsertDatasetEstimationConfig"];
130
+ post?: never;
131
+ /**
132
+ * Delete dataset impact estimation configuration
133
+ * @description Deletes the impact-estimation configuration for the dataset. Existing estimation rows for the dataset remain dormant until a new configuration is created.
134
+ */
135
+ delete: operations["deleteDatasetEstimationConfig"];
136
+ options?: never;
137
+ head?: never;
138
+ patch?: never;
139
+ trace?: never;
140
+ };
113
141
  "/v1/files/upload/presigned-url": {
114
142
  parameters: {
115
143
  query?: never;
@@ -1384,17 +1412,20 @@ export interface paths {
1384
1412
  };
1385
1413
  /**
1386
1414
  * Get exception impact estimation configuration
1415
+ * @deprecated
1387
1416
  * @description Get the exception impact estimation configuration for the specified integration. This configuration controls how exception impact percentages are calculated.
1388
1417
  */
1389
1418
  get: operations["getExceptionImpactEstimationConfig"];
1390
1419
  /**
1391
1420
  * Create or update exception impact estimation configuration
1421
+ * @deprecated
1392
1422
  * @description Create or update the exception impact estimation configuration for the specified integration. If a configuration already exists, it will be updated with the provided values.
1393
1423
  */
1394
1424
  put: operations["upsertExceptionImpactEstimationConfig"];
1395
1425
  post?: never;
1396
1426
  /**
1397
1427
  * Delete exception impact estimation configuration
1428
+ * @deprecated
1398
1429
  * @description Delete the exception impact estimation configuration for the specified integration.
1399
1430
  */
1400
1431
  delete: operations["deleteExceptionImpactEstimationConfig"];
@@ -1403,26 +1434,6 @@ export interface paths {
1403
1434
  patch?: never;
1404
1435
  trace?: never;
1405
1436
  };
1406
- "/v1/integrations/{integrationId}/exceptions/impact-estimation-refresh": {
1407
- parameters: {
1408
- query?: never;
1409
- header?: never;
1410
- path?: never;
1411
- cookie?: never;
1412
- };
1413
- get?: never;
1414
- put?: never;
1415
- /**
1416
- * Trigger immediate impact estimation refresh
1417
- * @description Triggers an immediate refresh of exception impact percentages for all exceptions in the specified integration. This bypasses the normal refresh period schedule and recalculates impact percentages based on the current data. Useful when pipeline configuration changes or when you need up-to-date impact metrics.
1418
- */
1419
- post: operations["triggerExceptionImpactEstimationRefresh"];
1420
- delete?: never;
1421
- options?: never;
1422
- head?: never;
1423
- patch?: never;
1424
- trace?: never;
1425
- };
1426
1437
  "/v1/invitations": {
1427
1438
  parameters: {
1428
1439
  query?: never;
@@ -3107,7 +3118,6 @@ export interface components {
3107
3118
  * @example ************EN
3108
3119
  */
3109
3120
  readonly clientToken?: string;
3110
- estimationConfig?: components["schemas"]["EstimationConfig"];
3111
3121
  /** @description The imported exceptions from Datadog. This is a map from the vendor resource Id to the exception. */
3112
3122
  readonly exceptions?: {
3113
3123
  [key: string]: components["schemas"]["VendorImportedException"];
@@ -3353,6 +3363,36 @@ export interface components {
3353
3363
  /** @description The team IDs that this dataset is associated with. */
3354
3364
  teamIds?: string[];
3355
3365
  };
3366
+ DatasetEstimationConfig: {
3367
+ /** Format: date-time */
3368
+ readonly createdAt?: string;
3369
+ readonly datasetId?: string;
3370
+ /**
3371
+ * Format: int32
3372
+ * @description Maximum number of log messages to scan per estimation run.
3373
+ * @default 10000000
3374
+ * @example 10000000
3375
+ */
3376
+ logLimit: number;
3377
+ /**
3378
+ * Format: ISO-8601
3379
+ * @description Time window of data to scan per estimation run. ISO-8601 duration format.
3380
+ * @default PT1H
3381
+ * @example PT20.345S
3382
+ */
3383
+ lookbackDuration: string;
3384
+ readonly organizationId?: string;
3385
+ query?: components["schemas"]["EventPredicate"];
3386
+ /**
3387
+ * Format: ISO-8601
3388
+ * @description How often to recalculate impact percentages. ISO-8601 duration format.
3389
+ * @default P7D
3390
+ * @example PT20.345S
3391
+ */
3392
+ refreshPeriod: string;
3393
+ /** Format: date-time */
3394
+ readonly updatedAt?: string;
3395
+ };
3356
3396
  DatasetRead: {
3357
3397
  id: string;
3358
3398
  integrationId: string;
@@ -3489,37 +3529,6 @@ export interface components {
3489
3529
  exception?: string;
3490
3530
  message?: string;
3491
3531
  };
3492
- /** @description Configuration for automatic impact estimation on datasets sourced from this integration. */
3493
- EstimationConfig: {
3494
- /**
3495
- * @description When true, impact estimations run automatically against the datasets of any running pipelines that source from this integration.
3496
- * @default false
3497
- * @example false
3498
- */
3499
- enabled?: boolean;
3500
- /**
3501
- * Format: int32
3502
- * @description Maximum number of log messages to scan per estimation run.
3503
- * @default 10000000
3504
- * @example 10000000
3505
- */
3506
- logLimit?: number;
3507
- /**
3508
- * Format: ISO-8601
3509
- * @description Time window of data to scan per estimation run. ISO-8601 duration format.
3510
- * @default PT1H
3511
- * @example PT20.345S
3512
- */
3513
- lookbackDuration?: string;
3514
- query?: components["schemas"]["EventPredicate"];
3515
- /**
3516
- * Format: ISO-8601
3517
- * @description How often to recalculate impact percentages. ISO-8601 duration format.
3518
- * @default P7D
3519
- * @example PT20.345S
3520
- */
3521
- refreshPeriod?: string;
3522
- };
3523
3532
  /** @description Base class of all Event Actions */
3524
3533
  EventAction: {
3525
3534
  /** Format: int32 */
@@ -4189,6 +4198,12 @@ export interface components {
4189
4198
  * @example 25
4190
4199
  */
4191
4200
  autosyncPassthroughRateThreshold?: number;
4201
+ /**
4202
+ * Dataset ID for auto-sync threshold
4203
+ * @description Dataset against which the auto-sync impact threshold is evaluated. Required for threshold filtering to apply; when null, no exceptions bypass via auto-sync.
4204
+ * @example 0n1fhg95fhgp2
4205
+ */
4206
+ datasetId?: string;
4192
4207
  ids?: string[];
4193
4208
  /**
4194
4209
  * Integration ID
@@ -5766,7 +5781,6 @@ export interface components {
5766
5781
  * @example PT20.345S
5767
5782
  */
5768
5783
  dashboardFreshnessWindow?: string;
5769
- estimationConfig?: components["schemas"]["EstimationConfig"];
5770
5784
  /** @description The imported exceptions from NewRelic. This is a map from the vendor resource ID to the exception. */
5771
5785
  readonly exceptions?: {
5772
5786
  [key: string]: components["schemas"]["VendorImportedException"];
@@ -7619,7 +7633,6 @@ export interface components {
7619
7633
  * @example **************ey
7620
7634
  */
7621
7635
  readonly authToken?: string;
7622
- estimationConfig?: components["schemas"]["EstimationConfig"];
7623
7636
  /** @description The imported exceptions from Splunk. This is a map from the vendor resource Id to the exception. */
7624
7637
  readonly exceptions?: {
7625
7638
  [key: string]: components["schemas"]["VendorImportedException"];
@@ -8988,17 +9001,6 @@ export interface components {
8988
9001
  readonly eventPredicateHash?: string;
8989
9002
  /** @enum {string} */
8990
9003
  exceptionType?: VendorImportedExceptionExceptionType;
8991
- /**
8992
- * Format: date-time
8993
- * @description Timestamp when the impact percentage was last updated
8994
- */
8995
- impactLastUpdated?: string;
8996
- /**
8997
- * Format: double
8998
- * @description The percent of events impacted by this exception
8999
- * @example 12.5
9000
- */
9001
- impactPercentage?: number;
9002
9004
  integrationId?: string;
9003
9005
  parseResult?: components["schemas"]["ParseResult"];
9004
9006
  sourceUri?: string;
@@ -9398,6 +9400,7 @@ export type SchemaDatadogStatsSink = components["schemas"]["DatadogStatsSink"];
9398
9400
  export type SchemaDatadogTraceAgentSource = components["schemas"]["DatadogTraceAgentSource"];
9399
9401
  export type SchemaDatadogTraceSink = components["schemas"]["DatadogTraceSink"];
9400
9402
  export type SchemaDatasetCreate = components["schemas"]["DatasetCreate"];
9403
+ export type SchemaDatasetEstimationConfig = components["schemas"]["DatasetEstimationConfig"];
9401
9404
  export type SchemaDatasetRead = components["schemas"]["DatasetRead"];
9402
9405
  export type SchemaDatasetUpdate = components["schemas"]["DatasetUpdate"];
9403
9406
  export type SchemaDoubleDatapoint = components["schemas"]["DoubleDatapoint"];
@@ -9407,7 +9410,6 @@ export type SchemaEmbeddingConfig = components["schemas"]["EmbeddingConfig"];
9407
9410
  export type SchemaEntityContextAggregation = components["schemas"]["EntityContextAggregation"];
9408
9411
  export type SchemaEntityRef = components["schemas"]["EntityRef"];
9409
9412
  export type SchemaErrorDetails = components["schemas"]["ErrorDetails"];
9410
- export type SchemaEstimationConfig = components["schemas"]["EstimationConfig"];
9411
9413
  export type SchemaEventAction = components["schemas"]["EventAction"];
9412
9414
  export type SchemaEventActionRule = components["schemas"]["EventActionRule"];
9413
9415
  export type SchemaEventDedupIcebergTableSink = components["schemas"]["EventDedupIcebergTableSink"];
@@ -10002,6 +10004,114 @@ export interface operations {
10002
10004
  };
10003
10005
  };
10004
10006
  };
10007
+ getDatasetEstimationConfig: {
10008
+ parameters: {
10009
+ query?: never;
10010
+ header?: never;
10011
+ path: {
10012
+ /**
10013
+ * @description Dataset ID to get configuration for
10014
+ * @example logs-prod
10015
+ */
10016
+ id: string;
10017
+ };
10018
+ cookie?: never;
10019
+ };
10020
+ requestBody?: never;
10021
+ responses: {
10022
+ /** @description Configuration retrieved successfully */
10023
+ 200: {
10024
+ headers: {
10025
+ [name: string]: unknown;
10026
+ };
10027
+ content: {
10028
+ "application/json": components["schemas"]["DatasetEstimationConfig"];
10029
+ };
10030
+ };
10031
+ /** @description No configuration found for this dataset. */
10032
+ 404: {
10033
+ headers: {
10034
+ [name: string]: unknown;
10035
+ };
10036
+ content?: never;
10037
+ };
10038
+ };
10039
+ };
10040
+ upsertDatasetEstimationConfig: {
10041
+ parameters: {
10042
+ query?: never;
10043
+ header?: never;
10044
+ path: {
10045
+ /**
10046
+ * @description Dataset ID to create/update configuration for
10047
+ * @example logs-prod
10048
+ */
10049
+ id: string;
10050
+ };
10051
+ cookie?: never;
10052
+ };
10053
+ requestBody?: {
10054
+ content: {
10055
+ "application/json": components["schemas"]["DatasetEstimationConfig"];
10056
+ };
10057
+ };
10058
+ responses: {
10059
+ /** @description Configuration created or updated successfully */
10060
+ 200: {
10061
+ headers: {
10062
+ [name: string]: unknown;
10063
+ };
10064
+ content: {
10065
+ "application/json": components["schemas"]["DatasetEstimationConfig"];
10066
+ };
10067
+ };
10068
+ /** @description Invalid configuration data. */
10069
+ 400: {
10070
+ headers: {
10071
+ [name: string]: unknown;
10072
+ };
10073
+ content?: never;
10074
+ };
10075
+ /** @description Dataset not found. */
10076
+ 404: {
10077
+ headers: {
10078
+ [name: string]: unknown;
10079
+ };
10080
+ content?: never;
10081
+ };
10082
+ };
10083
+ };
10084
+ deleteDatasetEstimationConfig: {
10085
+ parameters: {
10086
+ query?: never;
10087
+ header?: never;
10088
+ path: {
10089
+ /**
10090
+ * @description Dataset ID to delete configuration for
10091
+ * @example logs-prod
10092
+ */
10093
+ id: string;
10094
+ };
10095
+ cookie?: never;
10096
+ };
10097
+ requestBody?: never;
10098
+ responses: {
10099
+ /** @description Configuration deleted successfully */
10100
+ 200: {
10101
+ headers: {
10102
+ [name: string]: unknown;
10103
+ };
10104
+ content?: never;
10105
+ };
10106
+ /** @description No configuration found for this dataset. */
10107
+ 404: {
10108
+ headers: {
10109
+ [name: string]: unknown;
10110
+ };
10111
+ content?: never;
10112
+ };
10113
+ };
10114
+ };
10005
10115
  generatePresignedUrl: {
10006
10116
  parameters: {
10007
10117
  query: {
@@ -13644,44 +13754,6 @@ export interface operations {
13644
13754
  };
13645
13755
  };
13646
13756
  };
13647
- triggerExceptionImpactEstimationRefresh: {
13648
- parameters: {
13649
- query?: never;
13650
- header?: never;
13651
- path: {
13652
- /**
13653
- * @description Integration ID to trigger refresh for
13654
- * @example datadog-prod-123
13655
- */
13656
- integrationId: string;
13657
- };
13658
- cookie?: never;
13659
- };
13660
- requestBody?: never;
13661
- responses: {
13662
- /** @description Refresh triggered successfully */
13663
- 200: {
13664
- headers: {
13665
- [name: string]: unknown;
13666
- };
13667
- content?: never;
13668
- };
13669
- /** @description Unauthorized */
13670
- 401: {
13671
- headers: {
13672
- [name: string]: unknown;
13673
- };
13674
- content?: never;
13675
- };
13676
- /** @description Not Found - No configuration found for this integration. */
13677
- 404: {
13678
- headers: {
13679
- [name: string]: unknown;
13680
- };
13681
- content?: never;
13682
- };
13683
- };
13684
- };
13685
13757
  listInvitations: {
13686
13758
  parameters: {
13687
13759
  query?: {