@grepr/cli 1.6.5-3542068 → 1.6.6-5be2662

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/periods": {
62
+ parameters: {
63
+ query?: never;
64
+ header?: never;
65
+ path?: never;
66
+ cookie?: never;
67
+ };
68
+ /**
69
+ * Get reporting periods + customer display name
70
+ * @description Returns the customer display name plus reporting periods available for the authenticated user's organization. Returns 404 when no billing record exists for the customer or no eligible subscription has any closed orders.
71
+ */
72
+ get: operations["getPeriods"];
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/datasets": {
62
82
  parameters: {
63
83
  query?: never;
@@ -2877,6 +2897,13 @@ export interface components {
2877
2897
  */
2878
2898
  type: BackfillJobActionType;
2879
2899
  };
2900
+ /** @description Static customer header data for the billing page: display name + selectable reporting periods. */
2901
+ BillingPeriodsResponse: {
2902
+ /** @description Customer display name (e.g. "ACME, Inc."). */
2903
+ customerName: string;
2904
+ /** @description Reporting periods available for this customer, newest first. */
2905
+ periods: components["schemas"]["PeriodEntry"][];
2906
+ };
2880
2907
  BucketAccessResult: {
2881
2908
  accessible?: boolean;
2882
2909
  message?: string;
@@ -6249,6 +6276,23 @@ export interface components {
6249
6276
  /** Format: int32 */
6250
6277
  order?: number;
6251
6278
  };
6279
+ /** @description One reporting period — dropdown entry plus bounds for display. */
6280
+ PeriodEntry: {
6281
+ /** @description True if this entry's period contains today. */
6282
+ current?: boolean;
6283
+ /**
6284
+ * Format: date
6285
+ * @description Inclusive period end date — the last day in the period.
6286
+ */
6287
+ endDate: string;
6288
+ /** @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. */
6289
+ id: string;
6290
+ /**
6291
+ * Format: date
6292
+ * @description Inclusive period start date.
6293
+ */
6294
+ startDate: string;
6295
+ };
6252
6296
  PhraseNode: {
6253
6297
  /**
6254
6298
  * @description The terms in a phrase to match
@@ -9437,6 +9481,7 @@ export type SchemaAuthConfig = components["schemas"]["AuthConfig"];
9437
9481
  export type SchemaAvailablePermission = components["schemas"]["AvailablePermission"];
9438
9482
  export type SchemaAverageAttributesMergeStrategy = components["schemas"]["AverageAttributesMergeStrategy"];
9439
9483
  export type SchemaBackfillJobAction = components["schemas"]["BackfillJobAction"];
9484
+ export type SchemaBillingPeriodsResponse = components["schemas"]["BillingPeriodsResponse"];
9440
9485
  export type SchemaBucketAccessResult = components["schemas"]["BucketAccessResult"];
9441
9486
  export type SchemaChunkedOutputEventRecordReadableData = components["schemas"]["ChunkedOutputEventRecordReadableData"];
9442
9487
  export type SchemaCloudFormationSetupInfo = components["schemas"]["CloudFormationSetupInfo"];
@@ -9616,6 +9661,7 @@ export type SchemaParsedQueryTree = components["schemas"]["ParsedQueryTree"];
9616
9661
  export type SchemaPatternLookupIcebergTableSink = components["schemas"]["PatternLookupIcebergTableSink"];
9617
9662
  export type SchemaPatternMatcher = components["schemas"]["PatternMatcher"];
9618
9663
  export type SchemaPatternRuleConfig = components["schemas"]["PatternRuleConfig"];
9664
+ export type SchemaPeriodEntry = components["schemas"]["PeriodEntry"];
9619
9665
  export type SchemaPhraseNode = components["schemas"]["PhraseNode"];
9620
9666
  export type SchemaPipelineRef = components["schemas"]["PipelineRef"];
9621
9667
  export type SchemaPipelineStatus = components["schemas"]["PipelineStatus"];
@@ -9932,6 +9978,54 @@ export interface operations {
9932
9978
  };
9933
9979
  };
9934
9980
  };
9981
+ getPeriods: {
9982
+ parameters: {
9983
+ query?: never;
9984
+ header?: never;
9985
+ path?: never;
9986
+ cookie?: never;
9987
+ };
9988
+ requestBody?: never;
9989
+ responses: {
9990
+ /** @description Customer name + period list. */
9991
+ 200: {
9992
+ headers: {
9993
+ [name: string]: unknown;
9994
+ };
9995
+ content: {
9996
+ "application/json": components["schemas"]["BillingPeriodsResponse"];
9997
+ };
9998
+ };
9999
+ /** @description Unauthorized */
10000
+ 401: {
10001
+ headers: {
10002
+ [name: string]: unknown;
10003
+ };
10004
+ content?: never;
10005
+ };
10006
+ /** @description Forbidden */
10007
+ 403: {
10008
+ headers: {
10009
+ [name: string]: unknown;
10010
+ };
10011
+ content?: never;
10012
+ };
10013
+ /** @description Not Found */
10014
+ 404: {
10015
+ headers: {
10016
+ [name: string]: unknown;
10017
+ };
10018
+ content?: never;
10019
+ };
10020
+ /** @description Internal Server Error */
10021
+ 500: {
10022
+ headers: {
10023
+ [name: string]: unknown;
10024
+ };
10025
+ content?: never;
10026
+ };
10027
+ };
10028
+ };
9935
10029
  getAllDatasets: {
9936
10030
  parameters: {
9937
10031
  query?: never;
@@ -16834,7 +16928,8 @@ export declare enum ResourceFilterResourceType {
16834
16928
  USER = "USER",
16835
16929
  ORGANIZATION_SETTINGS = "ORGANIZATION_SETTINGS",
16836
16930
  SERVICE_ACCOUNT = "SERVICE_ACCOUNT",
16837
- ORGANIZATION = "ORGANIZATION"
16931
+ ORGANIZATION = "ORGANIZATION",
16932
+ BILLING = "BILLING"
16838
16933
  }
16839
16934
  export declare enum S3LogsFileSourceType {
16840
16935
  s3_file_source = "s3-file-source"