@grepr/cli 1.6.8-12568de → 1.6.10-ff419a1

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.
@@ -58,6 +58,26 @@ export interface paths {
58
58
  patch?: never;
59
59
  trace?: never;
60
60
  };
61
+ "/v1/billing/daily-table": {
62
+ parameters: {
63
+ query?: never;
64
+ header?: never;
65
+ path?: never;
66
+ cookie?: never;
67
+ };
68
+ /**
69
+ * Get daily-usage table (JSON or CSV)
70
+ * @description Returns the daily-usage table for the requested reporting period.
71
+ */
72
+ get: operations["getDailyTable"];
73
+ put?: never;
74
+ post?: never;
75
+ delete?: never;
76
+ options?: never;
77
+ head?: never;
78
+ patch?: never;
79
+ trace?: never;
80
+ };
61
81
  "/v1/billing/periods": {
62
82
  parameters: {
63
83
  query?: never;
@@ -78,6 +98,26 @@ export interface paths {
78
98
  patch?: never;
79
99
  trace?: never;
80
100
  };
101
+ "/v1/billing/summary": {
102
+ parameters: {
103
+ query?: never;
104
+ header?: never;
105
+ path?: never;
106
+ cookie?: never;
107
+ };
108
+ /**
109
+ * Get billing summary for one reporting period
110
+ * @description Returns the per-period payload — contract bounds, reporting-period descriptor, and plan-specific commitment summary — for the authenticated user's organization. When no period is supplied, defaults to the period containing today.
111
+ */
112
+ get: operations["getSummary"];
113
+ put?: never;
114
+ post?: never;
115
+ delete?: never;
116
+ options?: never;
117
+ head?: never;
118
+ patch?: never;
119
+ trace?: never;
120
+ };
81
121
  "/v1/datasets": {
82
122
  parameters: {
83
123
  query?: never;
@@ -2617,6 +2657,40 @@ export interface components {
2617
2657
  */
2618
2658
  type: AndQueryNodeType;
2619
2659
  };
2660
+ /** @description Commitment summary for Annual - Credit Pool plans. */
2661
+ AnnualCreditPoolSummary: {
2662
+ /** @description Yearly committed dollar amount. */
2663
+ annualCommitment: number;
2664
+ /** @description Cumulative dollar value of consumption since contract start. */
2665
+ usedCumulative: number;
2666
+ /** @description Dollar value of consumption during this reporting period. */
2667
+ usedThisPeriod: number;
2668
+ /**
2669
+ * @description discriminator enum property added by openapi-typescript
2670
+ * @enum {string}
2671
+ */
2672
+ type: AnnualCreditPoolSummaryType;
2673
+ };
2674
+ /** @description Commitment summary for Annual - Data Processing plans. */
2675
+ AnnualDataProcessingSummary: {
2676
+ /** @description One row per metric the customer is pre-committed on (e.g. Data Processing GB, Compute Units). */
2677
+ rows: components["schemas"]["MeteredDimensionCommitment"][];
2678
+ /**
2679
+ * @description discriminator enum property added by openapi-typescript
2680
+ * @enum {string}
2681
+ */
2682
+ type: AnnualDataProcessingSummaryType;
2683
+ };
2684
+ /** @description Pre-commitment summary for Annual + SaaS plans. */
2685
+ AnnualSaasPreCommitmentSummary: {
2686
+ /** @description One row per metric the customer is pre-committed on, ordered by the configured displayed brick id list. */
2687
+ rows: components["schemas"]["MeteredDimensionCommitment"][];
2688
+ /**
2689
+ * @description discriminator enum property added by openapi-typescript
2690
+ * @enum {string}
2691
+ */
2692
+ type: AnnualSaasPreCommitmentSummaryType;
2693
+ };
2620
2694
  /** @description One anomaly rule. */
2621
2695
  AnomalyConfig: {
2622
2696
  /**
@@ -2924,6 +2998,16 @@ export interface components {
2924
2998
  /** @description Reporting periods available for this customer, newest first. */
2925
2999
  periods: components["schemas"]["PeriodEntry"][];
2926
3000
  };
3001
+ /** @description Plan-specific usage summary. */
3002
+ BillingSummary: {
3003
+ type: string;
3004
+ } & (components["schemas"]["PaygSummary"] | components["schemas"]["MonthlyCreditPoolSummary"] | components["schemas"]["AnnualCreditPoolSummary"] | components["schemas"]["AnnualDataProcessingSummary"] | components["schemas"]["AnnualSaasPreCommitmentSummary"]);
3005
+ /** @description Per-period billing summary: contract bounds, period, summary. */
3006
+ BillingSummaryResponse: {
3007
+ contract: components["schemas"]["Contract"];
3008
+ period: components["schemas"]["PeriodEntry"];
3009
+ summary: components["schemas"]["BillingSummary"];
3010
+ };
2927
3011
  BucketAccessResult: {
2928
3012
  accessible?: boolean;
2929
3013
  message?: string;
@@ -3100,6 +3184,19 @@ export interface components {
3100
3184
  */
3101
3185
  type: ConstantSamplingType;
3102
3186
  };
3187
+ /** @description Metadata about the contract. */
3188
+ Contract: {
3189
+ /**
3190
+ * Format: date
3191
+ * @description Inclusive contract end date — the last day this contract covers. For renewed or recast contracts, this is the day before the next contract's start.
3192
+ */
3193
+ endDate: string;
3194
+ /**
3195
+ * Format: date
3196
+ * @description Inclusive contract start date.
3197
+ */
3198
+ startDate: string;
3199
+ };
3103
3200
  /** @description Attributes of the Grepr Job to create */
3104
3201
  CreateJob: {
3105
3202
  /**
@@ -3180,6 +3277,13 @@ export interface components {
3180
3277
  */
3181
3278
  roleIds: string[];
3182
3279
  };
3280
+ /** @description Daily-usage table. */
3281
+ DailyTable: {
3282
+ /** @description The reporting period's days in ascending order. */
3283
+ days: string[];
3284
+ /** @description One usage series per metered dimension, in display order. Bricks absent from the configured displayed-brick list are skipped. */
3285
+ metrics: components["schemas"]["MeteredDimensionUsage"][];
3286
+ };
3183
3287
  Data: {
3184
3288
  resultType: string;
3185
3289
  };
@@ -5550,6 +5654,30 @@ export interface components {
5550
5654
  */
5551
5655
  wildcard: string;
5552
5656
  };
5657
+ /** @description One metric row in a per-metric pre-commitment summary table. */
5658
+ MeteredDimensionCommitment: {
5659
+ /** @description Annually committed quantity for this metric. */
5660
+ annualCommitment: number;
5661
+ /** @description Metric name (e.g. "Data Processing GB", "Compute Units"). */
5662
+ metric: string;
5663
+ /** @description Quantity consumed cumulatively since the contract started. */
5664
+ usedCumulative: number;
5665
+ /** @description Quantity consumed during the reporting period. */
5666
+ usedThisPeriod: number;
5667
+ };
5668
+ /** @description One metered dimension's daily usage and period totals. */
5669
+ MeteredDimensionUsage: {
5670
+ /** @description Per-day usage counts. */
5671
+ dailyValues: number[];
5672
+ /** @description Display label for the metered dimension. */
5673
+ label: string;
5674
+ /** @description This column's total for the prior calendar month; null when no prior-month comparison applies (a partial billing cycle, or no prior month before the contract start). Consumers derive the delta and percent change from this value and {@link #getTotal()}. */
5675
+ previousMonthTotal?: number;
5676
+ /** @description Sum of the daily values over the reporting period. */
5677
+ total: number;
5678
+ /** @description Billed dollar amount for the period; null when this column has no unit price. */
5679
+ totalDollars?: number;
5680
+ };
5553
5681
  /** @description The metrics aggregation to apply to the source data. */
5554
5682
  MetricAggSpec: {
5555
5683
  /**
@@ -5848,6 +5976,18 @@ export interface components {
5848
5976
  */
5849
5977
  type: MinAttributesMergeStrategyType;
5850
5978
  };
5979
+ /** @description Commitment summary for Monthly + Credit Pool plans. */
5980
+ MonthlyCreditPoolSummary: {
5981
+ /** @description Monthly recurring committed dollar amount. */
5982
+ credits: number;
5983
+ /** @description Gross consumption in dollars for this reporting period. */
5984
+ total: number;
5985
+ /**
5986
+ * @description discriminator enum property added by openapi-typescript
5987
+ * @enum {string}
5988
+ */
5989
+ type: MonthlyCreditPoolSummaryType;
5990
+ };
5851
5991
  /** @description The payload containing integration data. */
5852
5992
  NewRelic: {
5853
5993
  /**
@@ -6299,6 +6439,16 @@ export interface components {
6299
6439
  /** Format: int32 */
6300
6440
  order?: number;
6301
6441
  };
6442
+ /** @description Commitment summary for Monthly + PAYG plans. */
6443
+ PaygSummary: {
6444
+ /** @description Invoice total for this reporting period. */
6445
+ chargedThisPeriod?: number;
6446
+ /**
6447
+ * @description discriminator enum property added by openapi-typescript
6448
+ * @enum {string}
6449
+ */
6450
+ type: PaygSummaryType;
6451
+ };
6302
6452
  /** @description One reporting period — dropdown entry plus bounds for display. */
6303
6453
  PeriodEntry: {
6304
6454
  /** @description True if this entry's period contains today. */
@@ -9486,6 +9636,9 @@ export type SchemaAiPipelineTemplateInput = components["schemas"]["AiPipelineTem
9486
9636
  export type SchemaAllQueryNode = components["schemas"]["AllQueryNode"];
9487
9637
  export type SchemaAndEventPredicate = components["schemas"]["AndEventPredicate"];
9488
9638
  export type SchemaAndQueryNode = components["schemas"]["AndQueryNode"];
9639
+ export type SchemaAnnualCreditPoolSummary = components["schemas"]["AnnualCreditPoolSummary"];
9640
+ export type SchemaAnnualDataProcessingSummary = components["schemas"]["AnnualDataProcessingSummary"];
9641
+ export type SchemaAnnualSaasPreCommitmentSummary = components["schemas"]["AnnualSaasPreCommitmentSummary"];
9489
9642
  export type SchemaAnomalyConfig = components["schemas"]["AnomalyConfig"];
9490
9643
  export type SchemaAnthropic = components["schemas"]["Anthropic"];
9491
9644
  export type SchemaAny = components["schemas"]["Any"];
@@ -9505,6 +9658,8 @@ export type SchemaAvailablePermission = components["schemas"]["AvailablePermissi
9505
9658
  export type SchemaAverageAttributesMergeStrategy = components["schemas"]["AverageAttributesMergeStrategy"];
9506
9659
  export type SchemaBackfillJobAction = components["schemas"]["BackfillJobAction"];
9507
9660
  export type SchemaBillingPeriodsResponse = components["schemas"]["BillingPeriodsResponse"];
9661
+ export type SchemaBillingSummary = components["schemas"]["BillingSummary"];
9662
+ export type SchemaBillingSummaryResponse = components["schemas"]["BillingSummaryResponse"];
9508
9663
  export type SchemaBucketAccessResult = components["schemas"]["BucketAccessResult"];
9509
9664
  export type SchemaChunkedOutputEventRecordReadableData = components["schemas"]["ChunkedOutputEventRecordReadableData"];
9510
9665
  export type SchemaClearSecret = components["schemas"]["ClearSecret"];
@@ -9518,10 +9673,12 @@ export type SchemaCondition = components["schemas"]["Condition"];
9518
9673
  export type SchemaConditionalDataLakeConfig = components["schemas"]["ConditionalDataLakeConfig"];
9519
9674
  export type SchemaConsoleSetupInfo = components["schemas"]["ConsoleSetupInfo"];
9520
9675
  export type SchemaConstantSampling = components["schemas"]["ConstantSampling"];
9676
+ export type SchemaContract = components["schemas"]["Contract"];
9521
9677
  export type SchemaCreateJob = components["schemas"]["CreateJob"];
9522
9678
  export type SchemaCreateRole = components["schemas"]["CreateRole"];
9523
9679
  export type SchemaCreateServiceAccount = components["schemas"]["CreateServiceAccount"];
9524
9680
  export type SchemaCreateUser = components["schemas"]["CreateUser"];
9681
+ export type SchemaDailyTable = components["schemas"]["DailyTable"];
9525
9682
  export type SchemaData = components["schemas"]["Data"];
9526
9683
  export type SchemaDataWarehouse = components["schemas"]["DataWarehouse"];
9527
9684
  export type SchemaDatabaseUserInfo = components["schemas"]["DatabaseUserInfo"];
@@ -9650,6 +9807,8 @@ export type SchemaMessageNode = components["schemas"]["MessageNode"];
9650
9807
  export type SchemaMessagePrefixNode = components["schemas"]["MessagePrefixNode"];
9651
9808
  export type SchemaMessageRe2Node = components["schemas"]["MessageRe2Node"];
9652
9809
  export type SchemaMessageWildcardNode = components["schemas"]["MessageWildcardNode"];
9810
+ export type SchemaMeteredDimensionCommitment = components["schemas"]["MeteredDimensionCommitment"];
9811
+ export type SchemaMeteredDimensionUsage = components["schemas"]["MeteredDimensionUsage"];
9653
9812
  export type SchemaMetricAggSpec = components["schemas"]["MetricAggSpec"];
9654
9813
  export type SchemaMetricAggregation = components["schemas"]["MetricAggregation"];
9655
9814
  export type SchemaMetricData = components["schemas"]["MetricData"];
@@ -9661,6 +9820,7 @@ export type SchemaMetricsIcebergTableSink = components["schemas"]["MetricsIceber
9661
9820
  export type SchemaMetricsIcebergTableSource = components["schemas"]["MetricsIcebergTableSource"];
9662
9821
  export type SchemaMetricsSynchronousSink = components["schemas"]["MetricsSynchronousSink"];
9663
9822
  export type SchemaMinAttributesMergeStrategy = components["schemas"]["MinAttributesMergeStrategy"];
9823
+ export type SchemaMonthlyCreditPoolSummary = components["schemas"]["MonthlyCreditPoolSummary"];
9664
9824
  export type SchemaNewRelic = components["schemas"]["NewRelic"];
9665
9825
  export type SchemaNewRelicLogAgentSource = components["schemas"]["NewRelicLogAgentSource"];
9666
9826
  export type SchemaNewRelicLogSink = components["schemas"]["NewRelicLogSink"];
@@ -9685,6 +9845,7 @@ export type SchemaParsedQueryTree = components["schemas"]["ParsedQueryTree"];
9685
9845
  export type SchemaPatternLookupIcebergTableSink = components["schemas"]["PatternLookupIcebergTableSink"];
9686
9846
  export type SchemaPatternMatcher = components["schemas"]["PatternMatcher"];
9687
9847
  export type SchemaPatternRuleConfig = components["schemas"]["PatternRuleConfig"];
9848
+ export type SchemaPaygSummary = components["schemas"]["PaygSummary"];
9688
9849
  export type SchemaPeriodEntry = components["schemas"]["PeriodEntry"];
9689
9850
  export type SchemaPhraseNode = components["schemas"]["PhraseNode"];
9690
9851
  export type SchemaPipelineRef = components["schemas"]["PipelineRef"];
@@ -10002,6 +10163,58 @@ export interface operations {
10002
10163
  };
10003
10164
  };
10004
10165
  };
10166
+ getDailyTable: {
10167
+ parameters: {
10168
+ 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. */
10170
+ period?: string;
10171
+ };
10172
+ header?: never;
10173
+ path?: never;
10174
+ cookie?: never;
10175
+ };
10176
+ requestBody?: never;
10177
+ responses: {
10178
+ /** @description Daily-usage table. */
10179
+ 200: {
10180
+ headers: {
10181
+ [name: string]: unknown;
10182
+ };
10183
+ content: {
10184
+ "application/json": components["schemas"]["DailyTable"];
10185
+ "text/csv": components["schemas"]["DailyTable"];
10186
+ };
10187
+ };
10188
+ /** @description Unauthorized */
10189
+ 401: {
10190
+ headers: {
10191
+ [name: string]: unknown;
10192
+ };
10193
+ content?: never;
10194
+ };
10195
+ /** @description Forbidden */
10196
+ 403: {
10197
+ headers: {
10198
+ [name: string]: unknown;
10199
+ };
10200
+ content?: never;
10201
+ };
10202
+ /** @description Not Found */
10203
+ 404: {
10204
+ headers: {
10205
+ [name: string]: unknown;
10206
+ };
10207
+ content?: never;
10208
+ };
10209
+ /** @description Internal Server Error */
10210
+ 500: {
10211
+ headers: {
10212
+ [name: string]: unknown;
10213
+ };
10214
+ content?: never;
10215
+ };
10216
+ };
10217
+ };
10005
10218
  getPeriods: {
10006
10219
  parameters: {
10007
10220
  query?: never;
@@ -10050,6 +10263,57 @@ export interface operations {
10050
10263
  };
10051
10264
  };
10052
10265
  };
10266
+ getSummary: {
10267
+ parameters: {
10268
+ 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. */
10270
+ period?: string;
10271
+ };
10272
+ header?: never;
10273
+ path?: never;
10274
+ cookie?: never;
10275
+ };
10276
+ requestBody?: never;
10277
+ responses: {
10278
+ /** @description Contract + reporting period + plan summary. */
10279
+ 200: {
10280
+ headers: {
10281
+ [name: string]: unknown;
10282
+ };
10283
+ content: {
10284
+ "application/json": components["schemas"]["BillingSummaryResponse"];
10285
+ };
10286
+ };
10287
+ /** @description Unauthorized */
10288
+ 401: {
10289
+ headers: {
10290
+ [name: string]: unknown;
10291
+ };
10292
+ content?: never;
10293
+ };
10294
+ /** @description Forbidden */
10295
+ 403: {
10296
+ headers: {
10297
+ [name: string]: unknown;
10298
+ };
10299
+ content?: never;
10300
+ };
10301
+ /** @description No billing record exists, no eligible subscription owns the requested period, or the subscription's plan template is unrecognized. */
10302
+ 404: {
10303
+ headers: {
10304
+ [name: string]: unknown;
10305
+ };
10306
+ content?: never;
10307
+ };
10308
+ /** @description Internal Server Error */
10309
+ 500: {
10310
+ headers: {
10311
+ [name: string]: unknown;
10312
+ };
10313
+ content?: never;
10314
+ };
10315
+ };
10316
+ };
10053
10317
  getAllDatasets: {
10054
10318
  parameters: {
10055
10319
  query?: never;
@@ -16551,6 +16815,15 @@ export declare enum AndEventPredicateType {
16551
16815
  export declare enum AndQueryNodeType {
16552
16816
  and_query_node = "and-query-node"
16553
16817
  }
16818
+ export declare enum AnnualCreditPoolSummaryType {
16819
+ annual_credit_pool = "annual-credit-pool"
16820
+ }
16821
+ export declare enum AnnualDataProcessingSummaryType {
16822
+ annual_data_processing = "annual-data-processing"
16823
+ }
16824
+ export declare enum AnnualSaasPreCommitmentSummaryType {
16825
+ annual_saas_pre_commitment = "annual-saas-pre-commitment"
16826
+ }
16554
16827
  export declare enum AttributeKeyTermNodeType {
16555
16828
  attribute_key_term_node = "attribute-key-term-node"
16556
16829
  }
@@ -16857,6 +17130,9 @@ export declare enum MetricsSynchronousSinkType {
16857
17130
  export declare enum MinAttributesMergeStrategyType {
16858
17131
  min = "min"
16859
17132
  }
17133
+ export declare enum MonthlyCreditPoolSummaryType {
17134
+ monthly_credit_pool = "monthly-credit-pool"
17135
+ }
16860
17136
  export declare enum NewRelicLogAgentSourceType {
16861
17137
  newrelic_log_agent_source = "newrelic-log-agent-source"
16862
17138
  }
@@ -16893,6 +17169,9 @@ export declare enum PatternLookupIcebergTableSinkType {
16893
17169
  export declare enum PatternMatcherType {
16894
17170
  pattern_matcher = "pattern-matcher"
16895
17171
  }
17172
+ export declare enum PaygSummaryType {
17173
+ monthly_payg = "monthly-payg"
17174
+ }
16896
17175
  export declare enum PhraseNodeType {
16897
17176
  phrase_node = "phrase-node"
16898
17177
  }