@rlvt/statistics-openapi-client 1.0.47 → 1.0.48

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/build/api.d.ts CHANGED
@@ -1,9 +1,17 @@
1
1
  import { AxiosInstance, AxiosRequestConfig } from "axios";
2
- import type { TagAssignmentMode, TagCardinality } from "./definitions";
2
+ import type { AnalysisReportGuidedAnalysis, TagAssignmentMode, TagCardinality } from "./definitions";
3
3
  export * from "./definitions";
4
4
  export default class {
5
5
  axios: AxiosInstance;
6
6
  constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
7
+ private listAnalysisReports;
8
+ private createAnalysisReport;
9
+ private getAnalysisReport;
10
+ private archiveAnalysisReport;
11
+ private createAnalysisReportFollowUp;
12
+ private restoreAnalysisReport;
13
+ private executeAnalysisReportQuery;
14
+ private completeAnalysisReportGeneration;
7
15
  private meta;
8
16
  private listSavedQueries;
9
17
  private query;
@@ -24,26 +32,1972 @@ export default class {
24
32
  private getReportingSettings;
25
33
  private setReportingSettings;
26
34
  get Default(): {
35
+ listAnalysisReports: (params: {
36
+ includeArchived?: boolean | undefined;
37
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
38
+ status: "success";
39
+ } & {
40
+ data: {
41
+ id: string;
42
+ createdBy: string;
43
+ activeGeneration?: {
44
+ status: import("./definitions").AnalysisReportGenerationStatus;
45
+ id: string;
46
+ kind: import("./definitions").AnalysisReportGenerationKind;
47
+ startedAt: string;
48
+ } | undefined;
49
+ title?: string | undefined;
50
+ origin: {
51
+ type: import("./definitions").AnalysisReportOriginType;
52
+ dashboardPath?: string | undefined;
53
+ dashboardTitle?: string | undefined;
54
+ };
55
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
56
+ lastGenerationFailure?: {
57
+ code: string;
58
+ message: string;
59
+ generationId: string;
60
+ kind: import("./definitions").AnalysisReportGenerationKind;
61
+ question: string;
62
+ retryable: boolean;
63
+ failedAt: string;
64
+ } | undefined;
65
+ archivedAt?: string | undefined;
66
+ createdAt: string;
67
+ updatedAt: string;
68
+ sectionCount: number;
69
+ }[];
70
+ program: string;
71
+ version: string;
72
+ datetime: string;
73
+ status: string;
74
+ code?: number | undefined;
75
+ message: string;
76
+ }, any, {}>>;
77
+ createAnalysisReport: (params: Record<string, never>, data: {
78
+ prompt: string;
79
+ title?: string | undefined;
80
+ origin?: {
81
+ type: import("./definitions").AnalysisReportOriginType;
82
+ dashboardPath?: string | undefined;
83
+ dashboardTitle?: string | undefined;
84
+ } | undefined;
85
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
86
+ context?: {
87
+ dimensions: string[];
88
+ filters: {
89
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
90
+ values: string[];
91
+ dimension?: string | undefined;
92
+ member?: string | undefined;
93
+ }[];
94
+ timeDimensions: ({
95
+ dimension: string;
96
+ granularity?: string | undefined;
97
+ compareDateRange: (string | string[])[];
98
+ } | {
99
+ dimension: string;
100
+ granularity?: string | undefined;
101
+ dateRange?: string | string[] | undefined;
102
+ })[];
103
+ } | undefined;
104
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
105
+ status: "success";
106
+ } & {
107
+ data: {
108
+ readonly id: string & {
109
+ readonly?: "__readonly" | undefined;
110
+ };
111
+ readonly companyId: string & {
112
+ readonly?: "__readonly" | undefined;
113
+ };
114
+ readonly createdBy: string & {
115
+ readonly?: "__readonly" | undefined;
116
+ };
117
+ activeGeneration?: {
118
+ status: import("./definitions").AnalysisReportGenerationStatus;
119
+ id: string;
120
+ evidence: {
121
+ id: string;
122
+ rowCount: number;
123
+ payloadBytes: number;
124
+ durationMs: number;
125
+ query: {
126
+ dimensions: string[];
127
+ filters: {
128
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
129
+ values: string[];
130
+ dimension?: string | undefined;
131
+ member?: string | undefined;
132
+ }[];
133
+ timeDimensions: ({
134
+ dimension: string;
135
+ granularity?: string | undefined;
136
+ compareDateRange: (string | string[])[];
137
+ } | {
138
+ dimension: string;
139
+ granularity?: string | undefined;
140
+ dateRange?: string | string[] | undefined;
141
+ })[];
142
+ measures: string[];
143
+ limit?: number | undefined;
144
+ order?: {
145
+ [x: string]: "asc" | "desc";
146
+ } | string[][] | undefined;
147
+ };
148
+ rows: {
149
+ [x: string]: {
150
+ value: string | number | boolean;
151
+ metadata?: {
152
+ link?: string | undefined;
153
+ } | undefined;
154
+ };
155
+ }[];
156
+ sources: {
157
+ service: "statistics";
158
+ queryLayer: "cube";
159
+ members: string[];
160
+ }[];
161
+ freshness: {
162
+ capturedAt: string;
163
+ };
164
+ state: import("./definitions").AnalysisReportEvidenceState;
165
+ warning?: string | undefined;
166
+ failureCode?: string | undefined;
167
+ failureMessage?: string | undefined;
168
+ executedAt: string;
169
+ embeddedRowCount: number;
170
+ resultHash: string;
171
+ }[];
172
+ kind: import("./definitions").AnalysisReportGenerationKind;
173
+ startedAt: string;
174
+ question: string;
175
+ sectionId: string;
176
+ idempotencyKey: string;
177
+ intelligenceCaseId?: string | undefined;
178
+ usage: {
179
+ queryCount: number;
180
+ rowCount: number;
181
+ payloadBytes: number;
182
+ agentTurns: number;
183
+ durationMs: number;
184
+ };
185
+ delegatedCompanyId: string;
186
+ delegatedUserId: string;
187
+ } | undefined;
188
+ archivedBy?: string | undefined;
189
+ title?: string | undefined;
190
+ origin: {
191
+ type: import("./definitions").AnalysisReportOriginType;
192
+ dashboardPath?: string | undefined;
193
+ dashboardTitle?: string | undefined;
194
+ };
195
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
196
+ context: {
197
+ dimensions: string[];
198
+ filters: {
199
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
200
+ values: string[];
201
+ dimension?: string | undefined;
202
+ member?: string | undefined;
203
+ }[];
204
+ timeDimensions: ({
205
+ dimension: string;
206
+ granularity?: string | undefined;
207
+ compareDateRange: (string | string[])[];
208
+ } | {
209
+ dimension: string;
210
+ granularity?: string | undefined;
211
+ dateRange?: string | string[] | undefined;
212
+ })[];
213
+ };
214
+ generationPolicy: {
215
+ maxQueries: number;
216
+ maxRowsPerQuery: number;
217
+ maxBytesPerQuery: number;
218
+ maxReportBytes: number;
219
+ maxBlocksPerSection: number;
220
+ maxAgentTurns: number;
221
+ maxDurationMs: number;
222
+ };
223
+ lastGenerationFailure?: {
224
+ code: string;
225
+ message: string;
226
+ generationId: string;
227
+ kind: import("./definitions").AnalysisReportGenerationKind;
228
+ question: string;
229
+ retryable: boolean;
230
+ failedAt: string;
231
+ } | undefined;
232
+ archivedAt?: string | undefined;
233
+ sections: {
234
+ scope: {
235
+ dimensions: string[];
236
+ filters: {
237
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
238
+ values: string[];
239
+ dimension?: string | undefined;
240
+ member?: string | undefined;
241
+ }[];
242
+ timeDimensions: ({
243
+ dimension: string;
244
+ granularity?: string | undefined;
245
+ compareDateRange: (string | string[])[];
246
+ } | {
247
+ dimension: string;
248
+ granularity?: string | undefined;
249
+ dateRange?: string | string[] | undefined;
250
+ })[];
251
+ measures: string[];
252
+ };
253
+ id: string;
254
+ generationPolicy: {
255
+ maxQueries: number;
256
+ maxRowsPerQuery: number;
257
+ maxBytesPerQuery: number;
258
+ maxReportBytes: number;
259
+ maxBlocksPerSection: number;
260
+ maxAgentTurns: number;
261
+ maxDurationMs: number;
262
+ };
263
+ createdAt: string;
264
+ evidence: {
265
+ id: string;
266
+ rowCount: number;
267
+ payloadBytes: number;
268
+ durationMs: number;
269
+ query: {
270
+ dimensions: string[];
271
+ filters: {
272
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
273
+ values: string[];
274
+ dimension?: string | undefined;
275
+ member?: string | undefined;
276
+ }[];
277
+ timeDimensions: ({
278
+ dimension: string;
279
+ granularity?: string | undefined;
280
+ compareDateRange: (string | string[])[];
281
+ } | {
282
+ dimension: string;
283
+ granularity?: string | undefined;
284
+ dateRange?: string | string[] | undefined;
285
+ })[];
286
+ measures: string[];
287
+ limit?: number | undefined;
288
+ order?: {
289
+ [x: string]: "asc" | "desc";
290
+ } | string[][] | undefined;
291
+ };
292
+ rows: {
293
+ [x: string]: {
294
+ value: string | number | boolean;
295
+ metadata?: {
296
+ link?: string | undefined;
297
+ } | undefined;
298
+ };
299
+ }[];
300
+ sources: {
301
+ service: "statistics";
302
+ queryLayer: "cube";
303
+ members: string[];
304
+ }[];
305
+ freshness: {
306
+ capturedAt: string;
307
+ };
308
+ state: import("./definitions").AnalysisReportEvidenceState;
309
+ warning?: string | undefined;
310
+ failureCode?: string | undefined;
311
+ failureMessage?: string | undefined;
312
+ executedAt: string;
313
+ embeddedRowCount: number;
314
+ resultHash: string;
315
+ }[];
316
+ generationId: string;
317
+ name: string;
318
+ kind: import("./definitions").AnalysisReportGenerationKind;
319
+ question: string;
320
+ usage: {
321
+ queryCount: number;
322
+ rowCount: number;
323
+ payloadBytes: number;
324
+ agentTurns: number;
325
+ durationMs: number;
326
+ };
327
+ sources: string[];
328
+ freshness: {
329
+ generatedAt: string;
330
+ dataAsOf?: string | undefined;
331
+ };
332
+ sequence: number;
333
+ blocks: ({
334
+ type: "text";
335
+ markdown: string;
336
+ evidenceRefs: {
337
+ sectionId?: string | undefined;
338
+ evidenceId: string;
339
+ }[];
340
+ } | {
341
+ type: "metric";
342
+ evidenceRefs: {
343
+ sectionId?: string | undefined;
344
+ evidenceId: string;
345
+ }[];
346
+ label: string;
347
+ value: string | number;
348
+ unit?: string | undefined;
349
+ format?: "number" | "currency" | "percent" | undefined;
350
+ } | {
351
+ type: "table";
352
+ title: string;
353
+ evidenceRefs: {
354
+ sectionId?: string | undefined;
355
+ evidenceId: string;
356
+ }[];
357
+ columns: string[];
358
+ } | {
359
+ type: "chart";
360
+ title: string;
361
+ evidenceRefs: {
362
+ sectionId?: string | undefined;
363
+ evidenceId: string;
364
+ }[];
365
+ chartType: import("./definitions").AnalysisReportChartType;
366
+ x: string;
367
+ y: string[];
368
+ })[];
369
+ methodology: string;
370
+ limitations: string[];
371
+ intelligence: {
372
+ caseId?: string | undefined;
373
+ runId?: string | undefined;
374
+ };
375
+ }[];
376
+ createdAt?: string | undefined;
377
+ updatedAt?: string | undefined;
378
+ };
379
+ program: string;
380
+ version: string;
381
+ datetime: string;
382
+ status: string;
383
+ code?: number | undefined;
384
+ message: string;
385
+ }, any, {}>>;
386
+ getAnalysisReport: (params: {
387
+ reportId: string;
388
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
389
+ status: "success";
390
+ } & {
391
+ data: {
392
+ readonly id: string & {
393
+ readonly?: "__readonly" | undefined;
394
+ };
395
+ readonly companyId: string & {
396
+ readonly?: "__readonly" | undefined;
397
+ };
398
+ readonly createdBy: string & {
399
+ readonly?: "__readonly" | undefined;
400
+ };
401
+ activeGeneration?: {
402
+ status: import("./definitions").AnalysisReportGenerationStatus;
403
+ id: string;
404
+ evidence: {
405
+ id: string;
406
+ rowCount: number;
407
+ payloadBytes: number;
408
+ durationMs: number;
409
+ query: {
410
+ dimensions: string[];
411
+ filters: {
412
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
413
+ values: string[];
414
+ dimension?: string | undefined;
415
+ member?: string | undefined;
416
+ }[];
417
+ timeDimensions: ({
418
+ dimension: string;
419
+ granularity?: string | undefined;
420
+ compareDateRange: (string | string[])[];
421
+ } | {
422
+ dimension: string;
423
+ granularity?: string | undefined;
424
+ dateRange?: string | string[] | undefined;
425
+ })[];
426
+ measures: string[];
427
+ limit?: number | undefined;
428
+ order?: {
429
+ [x: string]: "asc" | "desc";
430
+ } | string[][] | undefined;
431
+ };
432
+ rows: {
433
+ [x: string]: {
434
+ value: string | number | boolean;
435
+ metadata?: {
436
+ link?: string | undefined;
437
+ } | undefined;
438
+ };
439
+ }[];
440
+ sources: {
441
+ service: "statistics";
442
+ queryLayer: "cube";
443
+ members: string[];
444
+ }[];
445
+ freshness: {
446
+ capturedAt: string;
447
+ };
448
+ state: import("./definitions").AnalysisReportEvidenceState;
449
+ warning?: string | undefined;
450
+ failureCode?: string | undefined;
451
+ failureMessage?: string | undefined;
452
+ executedAt: string;
453
+ embeddedRowCount: number;
454
+ resultHash: string;
455
+ }[];
456
+ kind: import("./definitions").AnalysisReportGenerationKind;
457
+ startedAt: string;
458
+ question: string;
459
+ sectionId: string;
460
+ idempotencyKey: string;
461
+ intelligenceCaseId?: string | undefined;
462
+ usage: {
463
+ queryCount: number;
464
+ rowCount: number;
465
+ payloadBytes: number;
466
+ agentTurns: number;
467
+ durationMs: number;
468
+ };
469
+ delegatedCompanyId: string;
470
+ delegatedUserId: string;
471
+ } | undefined;
472
+ archivedBy?: string | undefined;
473
+ title?: string | undefined;
474
+ origin: {
475
+ type: import("./definitions").AnalysisReportOriginType;
476
+ dashboardPath?: string | undefined;
477
+ dashboardTitle?: string | undefined;
478
+ };
479
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
480
+ context: {
481
+ dimensions: string[];
482
+ filters: {
483
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
484
+ values: string[];
485
+ dimension?: string | undefined;
486
+ member?: string | undefined;
487
+ }[];
488
+ timeDimensions: ({
489
+ dimension: string;
490
+ granularity?: string | undefined;
491
+ compareDateRange: (string | string[])[];
492
+ } | {
493
+ dimension: string;
494
+ granularity?: string | undefined;
495
+ dateRange?: string | string[] | undefined;
496
+ })[];
497
+ };
498
+ generationPolicy: {
499
+ maxQueries: number;
500
+ maxRowsPerQuery: number;
501
+ maxBytesPerQuery: number;
502
+ maxReportBytes: number;
503
+ maxBlocksPerSection: number;
504
+ maxAgentTurns: number;
505
+ maxDurationMs: number;
506
+ };
507
+ lastGenerationFailure?: {
508
+ code: string;
509
+ message: string;
510
+ generationId: string;
511
+ kind: import("./definitions").AnalysisReportGenerationKind;
512
+ question: string;
513
+ retryable: boolean;
514
+ failedAt: string;
515
+ } | undefined;
516
+ archivedAt?: string | undefined;
517
+ sections: {
518
+ scope: {
519
+ dimensions: string[];
520
+ filters: {
521
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
522
+ values: string[];
523
+ dimension?: string | undefined;
524
+ member?: string | undefined;
525
+ }[];
526
+ timeDimensions: ({
527
+ dimension: string;
528
+ granularity?: string | undefined;
529
+ compareDateRange: (string | string[])[];
530
+ } | {
531
+ dimension: string;
532
+ granularity?: string | undefined;
533
+ dateRange?: string | string[] | undefined;
534
+ })[];
535
+ measures: string[];
536
+ };
537
+ id: string;
538
+ generationPolicy: {
539
+ maxQueries: number;
540
+ maxRowsPerQuery: number;
541
+ maxBytesPerQuery: number;
542
+ maxReportBytes: number;
543
+ maxBlocksPerSection: number;
544
+ maxAgentTurns: number;
545
+ maxDurationMs: number;
546
+ };
547
+ createdAt: string;
548
+ evidence: {
549
+ id: string;
550
+ rowCount: number;
551
+ payloadBytes: number;
552
+ durationMs: number;
553
+ query: {
554
+ dimensions: string[];
555
+ filters: {
556
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
557
+ values: string[];
558
+ dimension?: string | undefined;
559
+ member?: string | undefined;
560
+ }[];
561
+ timeDimensions: ({
562
+ dimension: string;
563
+ granularity?: string | undefined;
564
+ compareDateRange: (string | string[])[];
565
+ } | {
566
+ dimension: string;
567
+ granularity?: string | undefined;
568
+ dateRange?: string | string[] | undefined;
569
+ })[];
570
+ measures: string[];
571
+ limit?: number | undefined;
572
+ order?: {
573
+ [x: string]: "asc" | "desc";
574
+ } | string[][] | undefined;
575
+ };
576
+ rows: {
577
+ [x: string]: {
578
+ value: string | number | boolean;
579
+ metadata?: {
580
+ link?: string | undefined;
581
+ } | undefined;
582
+ };
583
+ }[];
584
+ sources: {
585
+ service: "statistics";
586
+ queryLayer: "cube";
587
+ members: string[];
588
+ }[];
589
+ freshness: {
590
+ capturedAt: string;
591
+ };
592
+ state: import("./definitions").AnalysisReportEvidenceState;
593
+ warning?: string | undefined;
594
+ failureCode?: string | undefined;
595
+ failureMessage?: string | undefined;
596
+ executedAt: string;
597
+ embeddedRowCount: number;
598
+ resultHash: string;
599
+ }[];
600
+ generationId: string;
601
+ name: string;
602
+ kind: import("./definitions").AnalysisReportGenerationKind;
603
+ question: string;
604
+ usage: {
605
+ queryCount: number;
606
+ rowCount: number;
607
+ payloadBytes: number;
608
+ agentTurns: number;
609
+ durationMs: number;
610
+ };
611
+ sources: string[];
612
+ freshness: {
613
+ generatedAt: string;
614
+ dataAsOf?: string | undefined;
615
+ };
616
+ sequence: number;
617
+ blocks: ({
618
+ type: "text";
619
+ markdown: string;
620
+ evidenceRefs: {
621
+ sectionId?: string | undefined;
622
+ evidenceId: string;
623
+ }[];
624
+ } | {
625
+ type: "metric";
626
+ evidenceRefs: {
627
+ sectionId?: string | undefined;
628
+ evidenceId: string;
629
+ }[];
630
+ label: string;
631
+ value: string | number;
632
+ unit?: string | undefined;
633
+ format?: "number" | "currency" | "percent" | undefined;
634
+ } | {
635
+ type: "table";
636
+ title: string;
637
+ evidenceRefs: {
638
+ sectionId?: string | undefined;
639
+ evidenceId: string;
640
+ }[];
641
+ columns: string[];
642
+ } | {
643
+ type: "chart";
644
+ title: string;
645
+ evidenceRefs: {
646
+ sectionId?: string | undefined;
647
+ evidenceId: string;
648
+ }[];
649
+ chartType: import("./definitions").AnalysisReportChartType;
650
+ x: string;
651
+ y: string[];
652
+ })[];
653
+ methodology: string;
654
+ limitations: string[];
655
+ intelligence: {
656
+ caseId?: string | undefined;
657
+ runId?: string | undefined;
658
+ };
659
+ }[];
660
+ createdAt?: string | undefined;
661
+ updatedAt?: string | undefined;
662
+ };
663
+ program: string;
664
+ version: string;
665
+ datetime: string;
666
+ status: string;
667
+ code?: number | undefined;
668
+ message: string;
669
+ }, any, {}>>;
670
+ archiveAnalysisReport: (params: {
671
+ reportId: string;
672
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
673
+ status: "success";
674
+ } & {
675
+ data: {
676
+ readonly id: string & {
677
+ readonly?: "__readonly" | undefined;
678
+ };
679
+ readonly companyId: string & {
680
+ readonly?: "__readonly" | undefined;
681
+ };
682
+ readonly createdBy: string & {
683
+ readonly?: "__readonly" | undefined;
684
+ };
685
+ activeGeneration?: {
686
+ status: import("./definitions").AnalysisReportGenerationStatus;
687
+ id: string;
688
+ evidence: {
689
+ id: string;
690
+ rowCount: number;
691
+ payloadBytes: number;
692
+ durationMs: number;
693
+ query: {
694
+ dimensions: string[];
695
+ filters: {
696
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
697
+ values: string[];
698
+ dimension?: string | undefined;
699
+ member?: string | undefined;
700
+ }[];
701
+ timeDimensions: ({
702
+ dimension: string;
703
+ granularity?: string | undefined;
704
+ compareDateRange: (string | string[])[];
705
+ } | {
706
+ dimension: string;
707
+ granularity?: string | undefined;
708
+ dateRange?: string | string[] | undefined;
709
+ })[];
710
+ measures: string[];
711
+ limit?: number | undefined;
712
+ order?: {
713
+ [x: string]: "asc" | "desc";
714
+ } | string[][] | undefined;
715
+ };
716
+ rows: {
717
+ [x: string]: {
718
+ value: string | number | boolean;
719
+ metadata?: {
720
+ link?: string | undefined;
721
+ } | undefined;
722
+ };
723
+ }[];
724
+ sources: {
725
+ service: "statistics";
726
+ queryLayer: "cube";
727
+ members: string[];
728
+ }[];
729
+ freshness: {
730
+ capturedAt: string;
731
+ };
732
+ state: import("./definitions").AnalysisReportEvidenceState;
733
+ warning?: string | undefined;
734
+ failureCode?: string | undefined;
735
+ failureMessage?: string | undefined;
736
+ executedAt: string;
737
+ embeddedRowCount: number;
738
+ resultHash: string;
739
+ }[];
740
+ kind: import("./definitions").AnalysisReportGenerationKind;
741
+ startedAt: string;
742
+ question: string;
743
+ sectionId: string;
744
+ idempotencyKey: string;
745
+ intelligenceCaseId?: string | undefined;
746
+ usage: {
747
+ queryCount: number;
748
+ rowCount: number;
749
+ payloadBytes: number;
750
+ agentTurns: number;
751
+ durationMs: number;
752
+ };
753
+ delegatedCompanyId: string;
754
+ delegatedUserId: string;
755
+ } | undefined;
756
+ archivedBy?: string | undefined;
757
+ title?: string | undefined;
758
+ origin: {
759
+ type: import("./definitions").AnalysisReportOriginType;
760
+ dashboardPath?: string | undefined;
761
+ dashboardTitle?: string | undefined;
762
+ };
763
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
764
+ context: {
765
+ dimensions: string[];
766
+ filters: {
767
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
768
+ values: string[];
769
+ dimension?: string | undefined;
770
+ member?: string | undefined;
771
+ }[];
772
+ timeDimensions: ({
773
+ dimension: string;
774
+ granularity?: string | undefined;
775
+ compareDateRange: (string | string[])[];
776
+ } | {
777
+ dimension: string;
778
+ granularity?: string | undefined;
779
+ dateRange?: string | string[] | undefined;
780
+ })[];
781
+ };
782
+ generationPolicy: {
783
+ maxQueries: number;
784
+ maxRowsPerQuery: number;
785
+ maxBytesPerQuery: number;
786
+ maxReportBytes: number;
787
+ maxBlocksPerSection: number;
788
+ maxAgentTurns: number;
789
+ maxDurationMs: number;
790
+ };
791
+ lastGenerationFailure?: {
792
+ code: string;
793
+ message: string;
794
+ generationId: string;
795
+ kind: import("./definitions").AnalysisReportGenerationKind;
796
+ question: string;
797
+ retryable: boolean;
798
+ failedAt: string;
799
+ } | undefined;
800
+ archivedAt?: string | undefined;
801
+ sections: {
802
+ scope: {
803
+ dimensions: string[];
804
+ filters: {
805
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
806
+ values: string[];
807
+ dimension?: string | undefined;
808
+ member?: string | undefined;
809
+ }[];
810
+ timeDimensions: ({
811
+ dimension: string;
812
+ granularity?: string | undefined;
813
+ compareDateRange: (string | string[])[];
814
+ } | {
815
+ dimension: string;
816
+ granularity?: string | undefined;
817
+ dateRange?: string | string[] | undefined;
818
+ })[];
819
+ measures: string[];
820
+ };
821
+ id: string;
822
+ generationPolicy: {
823
+ maxQueries: number;
824
+ maxRowsPerQuery: number;
825
+ maxBytesPerQuery: number;
826
+ maxReportBytes: number;
827
+ maxBlocksPerSection: number;
828
+ maxAgentTurns: number;
829
+ maxDurationMs: number;
830
+ };
831
+ createdAt: string;
832
+ evidence: {
833
+ id: string;
834
+ rowCount: number;
835
+ payloadBytes: number;
836
+ durationMs: number;
837
+ query: {
838
+ dimensions: string[];
839
+ filters: {
840
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
841
+ values: string[];
842
+ dimension?: string | undefined;
843
+ member?: string | undefined;
844
+ }[];
845
+ timeDimensions: ({
846
+ dimension: string;
847
+ granularity?: string | undefined;
848
+ compareDateRange: (string | string[])[];
849
+ } | {
850
+ dimension: string;
851
+ granularity?: string | undefined;
852
+ dateRange?: string | string[] | undefined;
853
+ })[];
854
+ measures: string[];
855
+ limit?: number | undefined;
856
+ order?: {
857
+ [x: string]: "asc" | "desc";
858
+ } | string[][] | undefined;
859
+ };
860
+ rows: {
861
+ [x: string]: {
862
+ value: string | number | boolean;
863
+ metadata?: {
864
+ link?: string | undefined;
865
+ } | undefined;
866
+ };
867
+ }[];
868
+ sources: {
869
+ service: "statistics";
870
+ queryLayer: "cube";
871
+ members: string[];
872
+ }[];
873
+ freshness: {
874
+ capturedAt: string;
875
+ };
876
+ state: import("./definitions").AnalysisReportEvidenceState;
877
+ warning?: string | undefined;
878
+ failureCode?: string | undefined;
879
+ failureMessage?: string | undefined;
880
+ executedAt: string;
881
+ embeddedRowCount: number;
882
+ resultHash: string;
883
+ }[];
884
+ generationId: string;
885
+ name: string;
886
+ kind: import("./definitions").AnalysisReportGenerationKind;
887
+ question: string;
888
+ usage: {
889
+ queryCount: number;
890
+ rowCount: number;
891
+ payloadBytes: number;
892
+ agentTurns: number;
893
+ durationMs: number;
894
+ };
895
+ sources: string[];
896
+ freshness: {
897
+ generatedAt: string;
898
+ dataAsOf?: string | undefined;
899
+ };
900
+ sequence: number;
901
+ blocks: ({
902
+ type: "text";
903
+ markdown: string;
904
+ evidenceRefs: {
905
+ sectionId?: string | undefined;
906
+ evidenceId: string;
907
+ }[];
908
+ } | {
909
+ type: "metric";
910
+ evidenceRefs: {
911
+ sectionId?: string | undefined;
912
+ evidenceId: string;
913
+ }[];
914
+ label: string;
915
+ value: string | number;
916
+ unit?: string | undefined;
917
+ format?: "number" | "currency" | "percent" | undefined;
918
+ } | {
919
+ type: "table";
920
+ title: string;
921
+ evidenceRefs: {
922
+ sectionId?: string | undefined;
923
+ evidenceId: string;
924
+ }[];
925
+ columns: string[];
926
+ } | {
927
+ type: "chart";
928
+ title: string;
929
+ evidenceRefs: {
930
+ sectionId?: string | undefined;
931
+ evidenceId: string;
932
+ }[];
933
+ chartType: import("./definitions").AnalysisReportChartType;
934
+ x: string;
935
+ y: string[];
936
+ })[];
937
+ methodology: string;
938
+ limitations: string[];
939
+ intelligence: {
940
+ caseId?: string | undefined;
941
+ runId?: string | undefined;
942
+ };
943
+ }[];
944
+ createdAt?: string | undefined;
945
+ updatedAt?: string | undefined;
946
+ };
947
+ program: string;
948
+ version: string;
949
+ datetime: string;
950
+ status: string;
951
+ code?: number | undefined;
952
+ message: string;
953
+ }, any, {}>>;
954
+ createAnalysisReportFollowUp: (params: {
955
+ reportId: string;
956
+ }, data: {
957
+ question: string;
958
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
959
+ status: "success";
960
+ } & {
961
+ data: {
962
+ readonly id: string & {
963
+ readonly?: "__readonly" | undefined;
964
+ };
965
+ readonly companyId: string & {
966
+ readonly?: "__readonly" | undefined;
967
+ };
968
+ readonly createdBy: string & {
969
+ readonly?: "__readonly" | undefined;
970
+ };
971
+ activeGeneration?: {
972
+ status: import("./definitions").AnalysisReportGenerationStatus;
973
+ id: string;
974
+ evidence: {
975
+ id: string;
976
+ rowCount: number;
977
+ payloadBytes: number;
978
+ durationMs: number;
979
+ query: {
980
+ dimensions: string[];
981
+ filters: {
982
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
983
+ values: string[];
984
+ dimension?: string | undefined;
985
+ member?: string | undefined;
986
+ }[];
987
+ timeDimensions: ({
988
+ dimension: string;
989
+ granularity?: string | undefined;
990
+ compareDateRange: (string | string[])[];
991
+ } | {
992
+ dimension: string;
993
+ granularity?: string | undefined;
994
+ dateRange?: string | string[] | undefined;
995
+ })[];
996
+ measures: string[];
997
+ limit?: number | undefined;
998
+ order?: {
999
+ [x: string]: "asc" | "desc";
1000
+ } | string[][] | undefined;
1001
+ };
1002
+ rows: {
1003
+ [x: string]: {
1004
+ value: string | number | boolean;
1005
+ metadata?: {
1006
+ link?: string | undefined;
1007
+ } | undefined;
1008
+ };
1009
+ }[];
1010
+ sources: {
1011
+ service: "statistics";
1012
+ queryLayer: "cube";
1013
+ members: string[];
1014
+ }[];
1015
+ freshness: {
1016
+ capturedAt: string;
1017
+ };
1018
+ state: import("./definitions").AnalysisReportEvidenceState;
1019
+ warning?: string | undefined;
1020
+ failureCode?: string | undefined;
1021
+ failureMessage?: string | undefined;
1022
+ executedAt: string;
1023
+ embeddedRowCount: number;
1024
+ resultHash: string;
1025
+ }[];
1026
+ kind: import("./definitions").AnalysisReportGenerationKind;
1027
+ startedAt: string;
1028
+ question: string;
1029
+ sectionId: string;
1030
+ idempotencyKey: string;
1031
+ intelligenceCaseId?: string | undefined;
1032
+ usage: {
1033
+ queryCount: number;
1034
+ rowCount: number;
1035
+ payloadBytes: number;
1036
+ agentTurns: number;
1037
+ durationMs: number;
1038
+ };
1039
+ delegatedCompanyId: string;
1040
+ delegatedUserId: string;
1041
+ } | undefined;
1042
+ archivedBy?: string | undefined;
1043
+ title?: string | undefined;
1044
+ origin: {
1045
+ type: import("./definitions").AnalysisReportOriginType;
1046
+ dashboardPath?: string | undefined;
1047
+ dashboardTitle?: string | undefined;
1048
+ };
1049
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
1050
+ context: {
1051
+ dimensions: string[];
1052
+ filters: {
1053
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1054
+ values: string[];
1055
+ dimension?: string | undefined;
1056
+ member?: string | undefined;
1057
+ }[];
1058
+ timeDimensions: ({
1059
+ dimension: string;
1060
+ granularity?: string | undefined;
1061
+ compareDateRange: (string | string[])[];
1062
+ } | {
1063
+ dimension: string;
1064
+ granularity?: string | undefined;
1065
+ dateRange?: string | string[] | undefined;
1066
+ })[];
1067
+ };
1068
+ generationPolicy: {
1069
+ maxQueries: number;
1070
+ maxRowsPerQuery: number;
1071
+ maxBytesPerQuery: number;
1072
+ maxReportBytes: number;
1073
+ maxBlocksPerSection: number;
1074
+ maxAgentTurns: number;
1075
+ maxDurationMs: number;
1076
+ };
1077
+ lastGenerationFailure?: {
1078
+ code: string;
1079
+ message: string;
1080
+ generationId: string;
1081
+ kind: import("./definitions").AnalysisReportGenerationKind;
1082
+ question: string;
1083
+ retryable: boolean;
1084
+ failedAt: string;
1085
+ } | undefined;
1086
+ archivedAt?: string | undefined;
1087
+ sections: {
1088
+ scope: {
1089
+ dimensions: string[];
1090
+ filters: {
1091
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1092
+ values: string[];
1093
+ dimension?: string | undefined;
1094
+ member?: string | undefined;
1095
+ }[];
1096
+ timeDimensions: ({
1097
+ dimension: string;
1098
+ granularity?: string | undefined;
1099
+ compareDateRange: (string | string[])[];
1100
+ } | {
1101
+ dimension: string;
1102
+ granularity?: string | undefined;
1103
+ dateRange?: string | string[] | undefined;
1104
+ })[];
1105
+ measures: string[];
1106
+ };
1107
+ id: string;
1108
+ generationPolicy: {
1109
+ maxQueries: number;
1110
+ maxRowsPerQuery: number;
1111
+ maxBytesPerQuery: number;
1112
+ maxReportBytes: number;
1113
+ maxBlocksPerSection: number;
1114
+ maxAgentTurns: number;
1115
+ maxDurationMs: number;
1116
+ };
1117
+ createdAt: string;
1118
+ evidence: {
1119
+ id: string;
1120
+ rowCount: number;
1121
+ payloadBytes: number;
1122
+ durationMs: number;
1123
+ query: {
1124
+ dimensions: string[];
1125
+ filters: {
1126
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1127
+ values: string[];
1128
+ dimension?: string | undefined;
1129
+ member?: string | undefined;
1130
+ }[];
1131
+ timeDimensions: ({
1132
+ dimension: string;
1133
+ granularity?: string | undefined;
1134
+ compareDateRange: (string | string[])[];
1135
+ } | {
1136
+ dimension: string;
1137
+ granularity?: string | undefined;
1138
+ dateRange?: string | string[] | undefined;
1139
+ })[];
1140
+ measures: string[];
1141
+ limit?: number | undefined;
1142
+ order?: {
1143
+ [x: string]: "asc" | "desc";
1144
+ } | string[][] | undefined;
1145
+ };
1146
+ rows: {
1147
+ [x: string]: {
1148
+ value: string | number | boolean;
1149
+ metadata?: {
1150
+ link?: string | undefined;
1151
+ } | undefined;
1152
+ };
1153
+ }[];
1154
+ sources: {
1155
+ service: "statistics";
1156
+ queryLayer: "cube";
1157
+ members: string[];
1158
+ }[];
1159
+ freshness: {
1160
+ capturedAt: string;
1161
+ };
1162
+ state: import("./definitions").AnalysisReportEvidenceState;
1163
+ warning?: string | undefined;
1164
+ failureCode?: string | undefined;
1165
+ failureMessage?: string | undefined;
1166
+ executedAt: string;
1167
+ embeddedRowCount: number;
1168
+ resultHash: string;
1169
+ }[];
1170
+ generationId: string;
1171
+ name: string;
1172
+ kind: import("./definitions").AnalysisReportGenerationKind;
1173
+ question: string;
1174
+ usage: {
1175
+ queryCount: number;
1176
+ rowCount: number;
1177
+ payloadBytes: number;
1178
+ agentTurns: number;
1179
+ durationMs: number;
1180
+ };
1181
+ sources: string[];
1182
+ freshness: {
1183
+ generatedAt: string;
1184
+ dataAsOf?: string | undefined;
1185
+ };
1186
+ sequence: number;
1187
+ blocks: ({
1188
+ type: "text";
1189
+ markdown: string;
1190
+ evidenceRefs: {
1191
+ sectionId?: string | undefined;
1192
+ evidenceId: string;
1193
+ }[];
1194
+ } | {
1195
+ type: "metric";
1196
+ evidenceRefs: {
1197
+ sectionId?: string | undefined;
1198
+ evidenceId: string;
1199
+ }[];
1200
+ label: string;
1201
+ value: string | number;
1202
+ unit?: string | undefined;
1203
+ format?: "number" | "currency" | "percent" | undefined;
1204
+ } | {
1205
+ type: "table";
1206
+ title: string;
1207
+ evidenceRefs: {
1208
+ sectionId?: string | undefined;
1209
+ evidenceId: string;
1210
+ }[];
1211
+ columns: string[];
1212
+ } | {
1213
+ type: "chart";
1214
+ title: string;
1215
+ evidenceRefs: {
1216
+ sectionId?: string | undefined;
1217
+ evidenceId: string;
1218
+ }[];
1219
+ chartType: import("./definitions").AnalysisReportChartType;
1220
+ x: string;
1221
+ y: string[];
1222
+ })[];
1223
+ methodology: string;
1224
+ limitations: string[];
1225
+ intelligence: {
1226
+ caseId?: string | undefined;
1227
+ runId?: string | undefined;
1228
+ };
1229
+ }[];
1230
+ createdAt?: string | undefined;
1231
+ updatedAt?: string | undefined;
1232
+ };
1233
+ program: string;
1234
+ version: string;
1235
+ datetime: string;
1236
+ status: string;
1237
+ code?: number | undefined;
1238
+ message: string;
1239
+ }, any, {}>>;
1240
+ restoreAnalysisReport: (params: {
1241
+ reportId: string;
1242
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
1243
+ status: "success";
1244
+ } & {
1245
+ data: {
1246
+ readonly id: string & {
1247
+ readonly?: "__readonly" | undefined;
1248
+ };
1249
+ readonly companyId: string & {
1250
+ readonly?: "__readonly" | undefined;
1251
+ };
1252
+ readonly createdBy: string & {
1253
+ readonly?: "__readonly" | undefined;
1254
+ };
1255
+ activeGeneration?: {
1256
+ status: import("./definitions").AnalysisReportGenerationStatus;
1257
+ id: string;
1258
+ evidence: {
1259
+ id: string;
1260
+ rowCount: number;
1261
+ payloadBytes: number;
1262
+ durationMs: number;
1263
+ query: {
1264
+ dimensions: string[];
1265
+ filters: {
1266
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1267
+ values: string[];
1268
+ dimension?: string | undefined;
1269
+ member?: string | undefined;
1270
+ }[];
1271
+ timeDimensions: ({
1272
+ dimension: string;
1273
+ granularity?: string | undefined;
1274
+ compareDateRange: (string | string[])[];
1275
+ } | {
1276
+ dimension: string;
1277
+ granularity?: string | undefined;
1278
+ dateRange?: string | string[] | undefined;
1279
+ })[];
1280
+ measures: string[];
1281
+ limit?: number | undefined;
1282
+ order?: {
1283
+ [x: string]: "asc" | "desc";
1284
+ } | string[][] | undefined;
1285
+ };
1286
+ rows: {
1287
+ [x: string]: {
1288
+ value: string | number | boolean;
1289
+ metadata?: {
1290
+ link?: string | undefined;
1291
+ } | undefined;
1292
+ };
1293
+ }[];
1294
+ sources: {
1295
+ service: "statistics";
1296
+ queryLayer: "cube";
1297
+ members: string[];
1298
+ }[];
1299
+ freshness: {
1300
+ capturedAt: string;
1301
+ };
1302
+ state: import("./definitions").AnalysisReportEvidenceState;
1303
+ warning?: string | undefined;
1304
+ failureCode?: string | undefined;
1305
+ failureMessage?: string | undefined;
1306
+ executedAt: string;
1307
+ embeddedRowCount: number;
1308
+ resultHash: string;
1309
+ }[];
1310
+ kind: import("./definitions").AnalysisReportGenerationKind;
1311
+ startedAt: string;
1312
+ question: string;
1313
+ sectionId: string;
1314
+ idempotencyKey: string;
1315
+ intelligenceCaseId?: string | undefined;
1316
+ usage: {
1317
+ queryCount: number;
1318
+ rowCount: number;
1319
+ payloadBytes: number;
1320
+ agentTurns: number;
1321
+ durationMs: number;
1322
+ };
1323
+ delegatedCompanyId: string;
1324
+ delegatedUserId: string;
1325
+ } | undefined;
1326
+ archivedBy?: string | undefined;
1327
+ title?: string | undefined;
1328
+ origin: {
1329
+ type: import("./definitions").AnalysisReportOriginType;
1330
+ dashboardPath?: string | undefined;
1331
+ dashboardTitle?: string | undefined;
1332
+ };
1333
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
1334
+ context: {
1335
+ dimensions: string[];
1336
+ filters: {
1337
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1338
+ values: string[];
1339
+ dimension?: string | undefined;
1340
+ member?: string | undefined;
1341
+ }[];
1342
+ timeDimensions: ({
1343
+ dimension: string;
1344
+ granularity?: string | undefined;
1345
+ compareDateRange: (string | string[])[];
1346
+ } | {
1347
+ dimension: string;
1348
+ granularity?: string | undefined;
1349
+ dateRange?: string | string[] | undefined;
1350
+ })[];
1351
+ };
1352
+ generationPolicy: {
1353
+ maxQueries: number;
1354
+ maxRowsPerQuery: number;
1355
+ maxBytesPerQuery: number;
1356
+ maxReportBytes: number;
1357
+ maxBlocksPerSection: number;
1358
+ maxAgentTurns: number;
1359
+ maxDurationMs: number;
1360
+ };
1361
+ lastGenerationFailure?: {
1362
+ code: string;
1363
+ message: string;
1364
+ generationId: string;
1365
+ kind: import("./definitions").AnalysisReportGenerationKind;
1366
+ question: string;
1367
+ retryable: boolean;
1368
+ failedAt: string;
1369
+ } | undefined;
1370
+ archivedAt?: string | undefined;
1371
+ sections: {
1372
+ scope: {
1373
+ dimensions: string[];
1374
+ filters: {
1375
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1376
+ values: string[];
1377
+ dimension?: string | undefined;
1378
+ member?: string | undefined;
1379
+ }[];
1380
+ timeDimensions: ({
1381
+ dimension: string;
1382
+ granularity?: string | undefined;
1383
+ compareDateRange: (string | string[])[];
1384
+ } | {
1385
+ dimension: string;
1386
+ granularity?: string | undefined;
1387
+ dateRange?: string | string[] | undefined;
1388
+ })[];
1389
+ measures: string[];
1390
+ };
1391
+ id: string;
1392
+ generationPolicy: {
1393
+ maxQueries: number;
1394
+ maxRowsPerQuery: number;
1395
+ maxBytesPerQuery: number;
1396
+ maxReportBytes: number;
1397
+ maxBlocksPerSection: number;
1398
+ maxAgentTurns: number;
1399
+ maxDurationMs: number;
1400
+ };
1401
+ createdAt: string;
1402
+ evidence: {
1403
+ id: string;
1404
+ rowCount: number;
1405
+ payloadBytes: number;
1406
+ durationMs: number;
1407
+ query: {
1408
+ dimensions: string[];
1409
+ filters: {
1410
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1411
+ values: string[];
1412
+ dimension?: string | undefined;
1413
+ member?: string | undefined;
1414
+ }[];
1415
+ timeDimensions: ({
1416
+ dimension: string;
1417
+ granularity?: string | undefined;
1418
+ compareDateRange: (string | string[])[];
1419
+ } | {
1420
+ dimension: string;
1421
+ granularity?: string | undefined;
1422
+ dateRange?: string | string[] | undefined;
1423
+ })[];
1424
+ measures: string[];
1425
+ limit?: number | undefined;
1426
+ order?: {
1427
+ [x: string]: "asc" | "desc";
1428
+ } | string[][] | undefined;
1429
+ };
1430
+ rows: {
1431
+ [x: string]: {
1432
+ value: string | number | boolean;
1433
+ metadata?: {
1434
+ link?: string | undefined;
1435
+ } | undefined;
1436
+ };
1437
+ }[];
1438
+ sources: {
1439
+ service: "statistics";
1440
+ queryLayer: "cube";
1441
+ members: string[];
1442
+ }[];
1443
+ freshness: {
1444
+ capturedAt: string;
1445
+ };
1446
+ state: import("./definitions").AnalysisReportEvidenceState;
1447
+ warning?: string | undefined;
1448
+ failureCode?: string | undefined;
1449
+ failureMessage?: string | undefined;
1450
+ executedAt: string;
1451
+ embeddedRowCount: number;
1452
+ resultHash: string;
1453
+ }[];
1454
+ generationId: string;
1455
+ name: string;
1456
+ kind: import("./definitions").AnalysisReportGenerationKind;
1457
+ question: string;
1458
+ usage: {
1459
+ queryCount: number;
1460
+ rowCount: number;
1461
+ payloadBytes: number;
1462
+ agentTurns: number;
1463
+ durationMs: number;
1464
+ };
1465
+ sources: string[];
1466
+ freshness: {
1467
+ generatedAt: string;
1468
+ dataAsOf?: string | undefined;
1469
+ };
1470
+ sequence: number;
1471
+ blocks: ({
1472
+ type: "text";
1473
+ markdown: string;
1474
+ evidenceRefs: {
1475
+ sectionId?: string | undefined;
1476
+ evidenceId: string;
1477
+ }[];
1478
+ } | {
1479
+ type: "metric";
1480
+ evidenceRefs: {
1481
+ sectionId?: string | undefined;
1482
+ evidenceId: string;
1483
+ }[];
1484
+ label: string;
1485
+ value: string | number;
1486
+ unit?: string | undefined;
1487
+ format?: "number" | "currency" | "percent" | undefined;
1488
+ } | {
1489
+ type: "table";
1490
+ title: string;
1491
+ evidenceRefs: {
1492
+ sectionId?: string | undefined;
1493
+ evidenceId: string;
1494
+ }[];
1495
+ columns: string[];
1496
+ } | {
1497
+ type: "chart";
1498
+ title: string;
1499
+ evidenceRefs: {
1500
+ sectionId?: string | undefined;
1501
+ evidenceId: string;
1502
+ }[];
1503
+ chartType: import("./definitions").AnalysisReportChartType;
1504
+ x: string;
1505
+ y: string[];
1506
+ })[];
1507
+ methodology: string;
1508
+ limitations: string[];
1509
+ intelligence: {
1510
+ caseId?: string | undefined;
1511
+ runId?: string | undefined;
1512
+ };
1513
+ }[];
1514
+ createdAt?: string | undefined;
1515
+ updatedAt?: string | undefined;
1516
+ };
1517
+ program: string;
1518
+ version: string;
1519
+ datetime: string;
1520
+ status: string;
1521
+ code?: number | undefined;
1522
+ message: string;
1523
+ }, any, {}>>;
1524
+ executeAnalysisReportQuery: (params: {
1525
+ reportId: string;
1526
+ generationId: string;
1527
+ }, data: {
1528
+ measures: string[];
1529
+ dimensions: string[];
1530
+ filters: {
1531
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1532
+ values: string[];
1533
+ dimension?: string | undefined;
1534
+ member?: string | undefined;
1535
+ }[];
1536
+ timeDimensions: (({
1537
+ dimension: string;
1538
+ granularity?: string | undefined;
1539
+ } & {
1540
+ compareDateRange: (string | string[])[];
1541
+ }) | ({
1542
+ dimension: string;
1543
+ granularity?: string | undefined;
1544
+ } & {
1545
+ dateRange?: string | string[] | undefined;
1546
+ }))[];
1547
+ limit?: number | undefined;
1548
+ order?: string[][] | {
1549
+ [x: string]: "asc" | "desc";
1550
+ } | undefined;
1551
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
1552
+ status: "success";
1553
+ } & {
1554
+ data: {
1555
+ evidence: {
1556
+ id: string;
1557
+ rowCount: number;
1558
+ payloadBytes: number;
1559
+ durationMs: number;
1560
+ query: {
1561
+ dimensions: string[];
1562
+ filters: {
1563
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1564
+ values: string[];
1565
+ dimension?: string | undefined;
1566
+ member?: string | undefined;
1567
+ }[];
1568
+ timeDimensions: ({
1569
+ dimension: string;
1570
+ granularity?: string | undefined;
1571
+ compareDateRange: (string | string[])[];
1572
+ } | {
1573
+ dimension: string;
1574
+ granularity?: string | undefined;
1575
+ dateRange?: string | string[] | undefined;
1576
+ })[];
1577
+ measures: string[];
1578
+ limit?: number | undefined;
1579
+ order?: {
1580
+ [x: string]: "asc" | "desc";
1581
+ } | string[][] | undefined;
1582
+ };
1583
+ rows: {
1584
+ [x: string]: {
1585
+ value: string | number | boolean;
1586
+ metadata?: {
1587
+ link?: string | undefined;
1588
+ } | undefined;
1589
+ };
1590
+ }[];
1591
+ sources: {
1592
+ service: "statistics";
1593
+ queryLayer: "cube";
1594
+ members: string[];
1595
+ }[];
1596
+ freshness: {
1597
+ capturedAt: string;
1598
+ };
1599
+ state: import("./definitions").AnalysisReportEvidenceState;
1600
+ warning?: string | undefined;
1601
+ failureCode?: string | undefined;
1602
+ failureMessage?: string | undefined;
1603
+ executedAt: string;
1604
+ embeddedRowCount: number;
1605
+ resultHash: string;
1606
+ };
1607
+ };
1608
+ program: string;
1609
+ version: string;
1610
+ datetime: string;
1611
+ status: string;
1612
+ code?: number | undefined;
1613
+ message: string;
1614
+ }, any, {}>>;
1615
+ completeAnalysisReportGeneration: (params: {
1616
+ reportId: string;
1617
+ generationId: string;
1618
+ }, data: {
1619
+ status: "completed" | "failed";
1620
+ title?: string | undefined;
1621
+ section?: {
1622
+ name: string;
1623
+ blocks: ({
1624
+ type: "text";
1625
+ markdown: string;
1626
+ evidenceRefs: {
1627
+ sectionId?: string | undefined;
1628
+ evidenceId: string;
1629
+ }[];
1630
+ } | {
1631
+ type: "metric";
1632
+ evidenceRefs: {
1633
+ sectionId?: string | undefined;
1634
+ evidenceId: string;
1635
+ }[];
1636
+ label: string;
1637
+ value: string | number;
1638
+ unit?: string | undefined;
1639
+ format?: "number" | "currency" | "percent" | undefined;
1640
+ } | {
1641
+ type: "table";
1642
+ title: string;
1643
+ evidenceRefs: {
1644
+ sectionId?: string | undefined;
1645
+ evidenceId: string;
1646
+ }[];
1647
+ columns: string[];
1648
+ } | {
1649
+ type: "chart";
1650
+ title: string;
1651
+ evidenceRefs: {
1652
+ sectionId?: string | undefined;
1653
+ evidenceId: string;
1654
+ }[];
1655
+ chartType: import("./definitions").AnalysisReportChartType;
1656
+ x: string;
1657
+ y: string[];
1658
+ })[];
1659
+ sources: string[];
1660
+ scope: {
1661
+ dimensions: string[];
1662
+ filters: {
1663
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1664
+ values: string[];
1665
+ dimension?: string | undefined;
1666
+ member?: string | undefined;
1667
+ }[];
1668
+ timeDimensions: ({
1669
+ dimension: string;
1670
+ granularity?: string | undefined;
1671
+ compareDateRange: (string | string[])[];
1672
+ } | {
1673
+ dimension: string;
1674
+ granularity?: string | undefined;
1675
+ dateRange?: string | string[] | undefined;
1676
+ })[];
1677
+ measures: string[];
1678
+ };
1679
+ methodology: string;
1680
+ freshness: {
1681
+ generatedAt: string;
1682
+ dataAsOf?: string | undefined;
1683
+ };
1684
+ limitations: string[];
1685
+ } | undefined;
1686
+ intelligence?: {
1687
+ caseId?: string | undefined;
1688
+ runId?: string | undefined;
1689
+ } | undefined;
1690
+ usage?: {
1691
+ agentTurns?: number | undefined;
1692
+ durationMs?: number | undefined;
1693
+ } | undefined;
1694
+ failure?: {
1695
+ code: string;
1696
+ message: string;
1697
+ retryable: boolean;
1698
+ } | undefined;
1699
+ }, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
1700
+ status: "success";
1701
+ } & {
1702
+ data: {
1703
+ readonly id: string & {
1704
+ readonly?: "__readonly" | undefined;
1705
+ };
1706
+ readonly companyId: string & {
1707
+ readonly?: "__readonly" | undefined;
1708
+ };
1709
+ readonly createdBy: string & {
1710
+ readonly?: "__readonly" | undefined;
1711
+ };
1712
+ activeGeneration?: {
1713
+ status: import("./definitions").AnalysisReportGenerationStatus;
1714
+ id: string;
1715
+ evidence: {
1716
+ id: string;
1717
+ rowCount: number;
1718
+ payloadBytes: number;
1719
+ durationMs: number;
1720
+ query: {
1721
+ dimensions: string[];
1722
+ filters: {
1723
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1724
+ values: string[];
1725
+ dimension?: string | undefined;
1726
+ member?: string | undefined;
1727
+ }[];
1728
+ timeDimensions: ({
1729
+ dimension: string;
1730
+ granularity?: string | undefined;
1731
+ compareDateRange: (string | string[])[];
1732
+ } | {
1733
+ dimension: string;
1734
+ granularity?: string | undefined;
1735
+ dateRange?: string | string[] | undefined;
1736
+ })[];
1737
+ measures: string[];
1738
+ limit?: number | undefined;
1739
+ order?: {
1740
+ [x: string]: "asc" | "desc";
1741
+ } | string[][] | undefined;
1742
+ };
1743
+ rows: {
1744
+ [x: string]: {
1745
+ value: string | number | boolean;
1746
+ metadata?: {
1747
+ link?: string | undefined;
1748
+ } | undefined;
1749
+ };
1750
+ }[];
1751
+ sources: {
1752
+ service: "statistics";
1753
+ queryLayer: "cube";
1754
+ members: string[];
1755
+ }[];
1756
+ freshness: {
1757
+ capturedAt: string;
1758
+ };
1759
+ state: import("./definitions").AnalysisReportEvidenceState;
1760
+ warning?: string | undefined;
1761
+ failureCode?: string | undefined;
1762
+ failureMessage?: string | undefined;
1763
+ executedAt: string;
1764
+ embeddedRowCount: number;
1765
+ resultHash: string;
1766
+ }[];
1767
+ kind: import("./definitions").AnalysisReportGenerationKind;
1768
+ startedAt: string;
1769
+ question: string;
1770
+ sectionId: string;
1771
+ idempotencyKey: string;
1772
+ intelligenceCaseId?: string | undefined;
1773
+ usage: {
1774
+ queryCount: number;
1775
+ rowCount: number;
1776
+ payloadBytes: number;
1777
+ agentTurns: number;
1778
+ durationMs: number;
1779
+ };
1780
+ delegatedCompanyId: string;
1781
+ delegatedUserId: string;
1782
+ } | undefined;
1783
+ archivedBy?: string | undefined;
1784
+ title?: string | undefined;
1785
+ origin: {
1786
+ type: import("./definitions").AnalysisReportOriginType;
1787
+ dashboardPath?: string | undefined;
1788
+ dashboardTitle?: string | undefined;
1789
+ };
1790
+ guidedAnalysis?: AnalysisReportGuidedAnalysis | undefined;
1791
+ context: {
1792
+ dimensions: string[];
1793
+ filters: {
1794
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1795
+ values: string[];
1796
+ dimension?: string | undefined;
1797
+ member?: string | undefined;
1798
+ }[];
1799
+ timeDimensions: ({
1800
+ dimension: string;
1801
+ granularity?: string | undefined;
1802
+ compareDateRange: (string | string[])[];
1803
+ } | {
1804
+ dimension: string;
1805
+ granularity?: string | undefined;
1806
+ dateRange?: string | string[] | undefined;
1807
+ })[];
1808
+ };
1809
+ generationPolicy: {
1810
+ maxQueries: number;
1811
+ maxRowsPerQuery: number;
1812
+ maxBytesPerQuery: number;
1813
+ maxReportBytes: number;
1814
+ maxBlocksPerSection: number;
1815
+ maxAgentTurns: number;
1816
+ maxDurationMs: number;
1817
+ };
1818
+ lastGenerationFailure?: {
1819
+ code: string;
1820
+ message: string;
1821
+ generationId: string;
1822
+ kind: import("./definitions").AnalysisReportGenerationKind;
1823
+ question: string;
1824
+ retryable: boolean;
1825
+ failedAt: string;
1826
+ } | undefined;
1827
+ archivedAt?: string | undefined;
1828
+ sections: {
1829
+ scope: {
1830
+ dimensions: string[];
1831
+ filters: {
1832
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1833
+ values: string[];
1834
+ dimension?: string | undefined;
1835
+ member?: string | undefined;
1836
+ }[];
1837
+ timeDimensions: ({
1838
+ dimension: string;
1839
+ granularity?: string | undefined;
1840
+ compareDateRange: (string | string[])[];
1841
+ } | {
1842
+ dimension: string;
1843
+ granularity?: string | undefined;
1844
+ dateRange?: string | string[] | undefined;
1845
+ })[];
1846
+ measures: string[];
1847
+ };
1848
+ id: string;
1849
+ generationPolicy: {
1850
+ maxQueries: number;
1851
+ maxRowsPerQuery: number;
1852
+ maxBytesPerQuery: number;
1853
+ maxReportBytes: number;
1854
+ maxBlocksPerSection: number;
1855
+ maxAgentTurns: number;
1856
+ maxDurationMs: number;
1857
+ };
1858
+ createdAt: string;
1859
+ evidence: {
1860
+ id: string;
1861
+ rowCount: number;
1862
+ payloadBytes: number;
1863
+ durationMs: number;
1864
+ query: {
1865
+ dimensions: string[];
1866
+ filters: {
1867
+ operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
1868
+ values: string[];
1869
+ dimension?: string | undefined;
1870
+ member?: string | undefined;
1871
+ }[];
1872
+ timeDimensions: ({
1873
+ dimension: string;
1874
+ granularity?: string | undefined;
1875
+ compareDateRange: (string | string[])[];
1876
+ } | {
1877
+ dimension: string;
1878
+ granularity?: string | undefined;
1879
+ dateRange?: string | string[] | undefined;
1880
+ })[];
1881
+ measures: string[];
1882
+ limit?: number | undefined;
1883
+ order?: {
1884
+ [x: string]: "asc" | "desc";
1885
+ } | string[][] | undefined;
1886
+ };
1887
+ rows: {
1888
+ [x: string]: {
1889
+ value: string | number | boolean;
1890
+ metadata?: {
1891
+ link?: string | undefined;
1892
+ } | undefined;
1893
+ };
1894
+ }[];
1895
+ sources: {
1896
+ service: "statistics";
1897
+ queryLayer: "cube";
1898
+ members: string[];
1899
+ }[];
1900
+ freshness: {
1901
+ capturedAt: string;
1902
+ };
1903
+ state: import("./definitions").AnalysisReportEvidenceState;
1904
+ warning?: string | undefined;
1905
+ failureCode?: string | undefined;
1906
+ failureMessage?: string | undefined;
1907
+ executedAt: string;
1908
+ embeddedRowCount: number;
1909
+ resultHash: string;
1910
+ }[];
1911
+ generationId: string;
1912
+ name: string;
1913
+ kind: import("./definitions").AnalysisReportGenerationKind;
1914
+ question: string;
1915
+ usage: {
1916
+ queryCount: number;
1917
+ rowCount: number;
1918
+ payloadBytes: number;
1919
+ agentTurns: number;
1920
+ durationMs: number;
1921
+ };
1922
+ sources: string[];
1923
+ freshness: {
1924
+ generatedAt: string;
1925
+ dataAsOf?: string | undefined;
1926
+ };
1927
+ sequence: number;
1928
+ blocks: ({
1929
+ type: "text";
1930
+ markdown: string;
1931
+ evidenceRefs: {
1932
+ sectionId?: string | undefined;
1933
+ evidenceId: string;
1934
+ }[];
1935
+ } | {
1936
+ type: "metric";
1937
+ evidenceRefs: {
1938
+ sectionId?: string | undefined;
1939
+ evidenceId: string;
1940
+ }[];
1941
+ label: string;
1942
+ value: string | number;
1943
+ unit?: string | undefined;
1944
+ format?: "number" | "currency" | "percent" | undefined;
1945
+ } | {
1946
+ type: "table";
1947
+ title: string;
1948
+ evidenceRefs: {
1949
+ sectionId?: string | undefined;
1950
+ evidenceId: string;
1951
+ }[];
1952
+ columns: string[];
1953
+ } | {
1954
+ type: "chart";
1955
+ title: string;
1956
+ evidenceRefs: {
1957
+ sectionId?: string | undefined;
1958
+ evidenceId: string;
1959
+ }[];
1960
+ chartType: import("./definitions").AnalysisReportChartType;
1961
+ x: string;
1962
+ y: string[];
1963
+ })[];
1964
+ methodology: string;
1965
+ limitations: string[];
1966
+ intelligence: {
1967
+ caseId?: string | undefined;
1968
+ runId?: string | undefined;
1969
+ };
1970
+ }[];
1971
+ createdAt?: string | undefined;
1972
+ updatedAt?: string | undefined;
1973
+ };
1974
+ program: string;
1975
+ version: string;
1976
+ datetime: string;
1977
+ status: string;
1978
+ code?: number | undefined;
1979
+ message: string;
1980
+ }, any, {}>>;
27
1981
  meta: (params: Record<string, never>, options?: AxiosRequestConfig<any> | undefined) => Promise<import("axios").AxiosResponse<{
28
1982
  status: "success";
29
1983
  } & {
30
1984
  data: {
31
- measures: {
1985
+ dimensions: {
32
1986
  [x: string]: {
33
- name: string;
34
- format?: "number" | "currency" | "percent" | undefined;
1987
+ type: "string" | "number" | "boolean" | "time";
35
1988
  id: string;
36
1989
  unit?: string | undefined;
1990
+ format?: "number" | "currency" | "percent" | undefined;
1991
+ name: string;
37
1992
  isVisible: boolean;
38
1993
  };
39
1994
  };
40
- dimensions: {
1995
+ measures: {
41
1996
  [x: string]: {
42
- name: string;
43
- format?: "number" | "currency" | "percent" | undefined;
44
- type: "string" | "number" | "boolean" | "time";
45
1997
  id: string;
46
1998
  unit?: string | undefined;
1999
+ format?: "number" | "currency" | "percent" | undefined;
2000
+ name: string;
47
2001
  isVisible: boolean;
48
2002
  };
49
2003
  };
@@ -67,9 +2021,12 @@ export default class {
67
2021
  status: "success";
68
2022
  } & {
69
2023
  data: {
2024
+ id: string;
2025
+ companyId: string;
2026
+ createdAt: string;
2027
+ updatedAt: string;
70
2028
  name: string;
71
2029
  queries: {
72
- measures: string[];
73
2030
  dimensions: string[];
74
2031
  filters: {
75
2032
  operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
@@ -86,16 +2043,13 @@ export default class {
86
2043
  granularity?: string | undefined;
87
2044
  dateRange?: string | string[] | undefined;
88
2045
  })[];
2046
+ measures: string[];
89
2047
  limit?: number | undefined;
90
2048
  order?: {
91
2049
  [x: string]: "asc" | "desc";
92
2050
  } | string[][] | undefined;
93
2051
  }[];
94
2052
  schedule: unknown;
95
- companyId: string;
96
- id: string;
97
- createdAt: string;
98
- updatedAt: string;
99
2053
  }[];
100
2054
  program: string;
101
2055
  version: string;
@@ -105,9 +2059,8 @@ export default class {
105
2059
  message: string;
106
2060
  }, any, {}>>;
107
2061
  query: (params: {
108
- format?: "csv" | "raw" | "table" | undefined;
2062
+ format?: "table" | "csv" | "raw" | undefined;
109
2063
  }, data: {
110
- measures: string[];
111
2064
  dimensions: string[];
112
2065
  filters: {
113
2066
  operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
@@ -124,6 +2077,7 @@ export default class {
124
2077
  granularity?: string | undefined;
125
2078
  dateRange?: string | string[] | undefined;
126
2079
  })[];
2080
+ measures: string[];
127
2081
  limit?: number | undefined;
128
2082
  order?: {
129
2083
  [x: string]: "asc" | "desc";
@@ -157,15 +2111,24 @@ export default class {
157
2111
  } & {
158
2112
  data: string | {
159
2113
  series: {
2114
+ dimensions: {
2115
+ [x: string]: {
2116
+ id: string;
2117
+ value: string | number | boolean;
2118
+ metadata: {
2119
+ link?: string | undefined;
2120
+ formattedValue?: string | undefined;
2121
+ };
2122
+ };
2123
+ };
160
2124
  measures: {
161
2125
  values: {
162
- date: string;
163
2126
  value: number;
164
2127
  metadata: {
165
2128
  calculation?: ({
166
2129
  type: "number";
167
- unit?: "currency" | "percent" | undefined;
168
2130
  value: number;
2131
+ unit?: "currency" | "percent" | undefined;
169
2132
  } | {
170
2133
  type: "scope";
171
2134
  value: "(" | ")";
@@ -174,19 +2137,10 @@ export default class {
174
2137
  value: "/" | "×" | "-" | "+";
175
2138
  })[] | undefined;
176
2139
  };
2140
+ date: string;
177
2141
  }[];
178
2142
  id: string;
179
2143
  }[];
180
- dimensions: {
181
- [x: string]: {
182
- id: string;
183
- value: string | number | boolean;
184
- metadata: {
185
- link?: string | undefined;
186
- formattedValue?: string | undefined;
187
- };
188
- };
189
- };
190
2144
  }[];
191
2145
  } | {
192
2146
  [x: string]: {
@@ -197,8 +2151,8 @@ export default class {
197
2151
  } | {
198
2152
  calculation?: ({
199
2153
  type: "number";
200
- unit?: "currency" | "percent" | undefined;
201
2154
  value: number;
2155
+ unit?: "currency" | "percent" | undefined;
202
2156
  } | {
203
2157
  type: "scope";
204
2158
  value: "(" | ")";
@@ -219,7 +2173,6 @@ export default class {
219
2173
  saveQuery: (params: Record<string, never>, data: {
220
2174
  name: string;
221
2175
  queries: {
222
- measures: string[];
223
2176
  dimensions: string[];
224
2177
  filters: {
225
2178
  operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
@@ -236,6 +2189,7 @@ export default class {
236
2189
  granularity?: string | undefined;
237
2190
  dateRange?: string | string[] | undefined;
238
2191
  })[];
2192
+ measures: string[];
239
2193
  limit?: number | undefined;
240
2194
  order?: {
241
2195
  [x: string]: "asc" | "desc";
@@ -256,9 +2210,12 @@ export default class {
256
2210
  status: "success";
257
2211
  } & {
258
2212
  data: {
2213
+ id: string;
2214
+ companyId: string;
2215
+ createdAt: string;
2216
+ updatedAt: string;
259
2217
  name: string;
260
2218
  queries: {
261
- measures: string[];
262
2219
  dimensions: string[];
263
2220
  filters: {
264
2221
  operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
@@ -275,16 +2232,13 @@ export default class {
275
2232
  granularity?: string | undefined;
276
2233
  dateRange?: string | string[] | undefined;
277
2234
  })[];
2235
+ measures: string[];
278
2236
  limit?: number | undefined;
279
2237
  order?: {
280
2238
  [x: string]: "asc" | "desc";
281
2239
  } | string[][] | undefined;
282
2240
  }[];
283
2241
  schedule: unknown;
284
- companyId: string;
285
- id: string;
286
- createdAt: string;
287
- updatedAt: string;
288
2242
  };
289
2243
  program: string;
290
2244
  version: string;
@@ -300,15 +2254,24 @@ export default class {
300
2254
  } & {
301
2255
  data: {
302
2256
  series: {
2257
+ dimensions: {
2258
+ [x: string]: {
2259
+ id: string;
2260
+ value: string | number | boolean;
2261
+ metadata: {
2262
+ link?: string | undefined;
2263
+ formattedValue?: string | undefined;
2264
+ };
2265
+ };
2266
+ };
303
2267
  measures: {
304
2268
  values: {
305
- date: string;
306
2269
  value: number;
307
2270
  metadata: {
308
2271
  calculation?: ({
309
2272
  type: "number";
310
- unit?: "currency" | "percent" | undefined;
311
2273
  value: number;
2274
+ unit?: "currency" | "percent" | undefined;
312
2275
  } | {
313
2276
  type: "scope";
314
2277
  value: "(" | ")";
@@ -317,19 +2280,10 @@ export default class {
317
2280
  value: "/" | "×" | "-" | "+";
318
2281
  })[] | undefined;
319
2282
  };
2283
+ date: string;
320
2284
  }[];
321
2285
  id: string;
322
2286
  }[];
323
- dimensions: {
324
- [x: string]: {
325
- id: string;
326
- value: string | number | boolean;
327
- metadata: {
328
- link?: string | undefined;
329
- formattedValue?: string | undefined;
330
- };
331
- };
332
- };
333
2287
  }[];
334
2288
  }[];
335
2289
  program: string;
@@ -344,7 +2298,6 @@ export default class {
344
2298
  }, data: {
345
2299
  name?: string | undefined;
346
2300
  queries?: {
347
- measures: string[];
348
2301
  dimensions: string[];
349
2302
  filters: {
350
2303
  operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
@@ -361,6 +2314,7 @@ export default class {
361
2314
  granularity?: string | undefined;
362
2315
  dateRange?: string | string[] | undefined;
363
2316
  })[];
2317
+ measures: string[];
364
2318
  limit?: number | undefined;
365
2319
  order?: {
366
2320
  [x: string]: "asc" | "desc";
@@ -380,9 +2334,12 @@ export default class {
380
2334
  status: "success";
381
2335
  } & {
382
2336
  data: {
2337
+ id: string;
2338
+ companyId: string;
2339
+ createdAt: string;
2340
+ updatedAt: string;
383
2341
  name: string;
384
2342
  queries: {
385
- measures: string[];
386
2343
  dimensions: string[];
387
2344
  filters: {
388
2345
  operator: "equals" | "notEquals" | "contains" | "notContains" | "startsWith" | "notStartsWith" | "endsWith" | "notEndsWith" | "gt" | "gte" | "lt" | "lte" | "inDateRange" | "notInDateRange" | "beforeDate" | "beforeOrOnDate" | "afterDate" | "afterOrOnDate";
@@ -399,16 +2356,13 @@ export default class {
399
2356
  granularity?: string | undefined;
400
2357
  dateRange?: string | string[] | undefined;
401
2358
  })[];
2359
+ measures: string[];
402
2360
  limit?: number | undefined;
403
2361
  order?: {
404
2362
  [x: string]: "asc" | "desc";
405
2363
  } | string[][] | undefined;
406
2364
  }[];
407
2365
  schedule: unknown;
408
- companyId: string;
409
- id: string;
410
- createdAt: string;
411
- updatedAt: string;
412
2366
  };
413
2367
  program: string;
414
2368
  version: string;
@@ -439,10 +2393,10 @@ export default class {
439
2393
  } & {
440
2394
  data: {
441
2395
  type: import("./definitions").AnalyticsSettingsType;
442
- readonly companyId: string & {
2396
+ id: string & {
443
2397
  readonly?: "__readonly" | undefined;
444
2398
  };
445
- id: string & {
2399
+ readonly companyId: string & {
446
2400
  readonly?: "__readonly" | undefined;
447
2401
  };
448
2402
  createdAt: string & {
@@ -480,10 +2434,10 @@ export default class {
480
2434
  } & {
481
2435
  data: {
482
2436
  type: import("./definitions").AnalyticsSettingsType;
483
- readonly companyId: string & {
2437
+ id: string & {
484
2438
  readonly?: "__readonly" | undefined;
485
2439
  };
486
- id: string & {
2440
+ readonly companyId: string & {
487
2441
  readonly?: "__readonly" | undefined;
488
2442
  };
489
2443
  createdAt: string & {
@@ -519,10 +2473,10 @@ export default class {
519
2473
  } & {
520
2474
  data: {
521
2475
  type: import("./definitions").AnalyticsSettingsType;
522
- readonly companyId: string & {
2476
+ id: string & {
523
2477
  readonly?: "__readonly" | undefined;
524
2478
  };
525
- id: string & {
2479
+ readonly companyId: string & {
526
2480
  readonly?: "__readonly" | undefined;
527
2481
  };
528
2482
  createdAt: string & {
@@ -562,10 +2516,10 @@ export default class {
562
2516
  } & {
563
2517
  data: {
564
2518
  type: import("./definitions").AnalyticsSettingsType;
565
- readonly companyId: string & {
2519
+ id: string & {
566
2520
  readonly?: "__readonly" | undefined;
567
2521
  };
568
- id: string & {
2522
+ readonly companyId: string & {
569
2523
  readonly?: "__readonly" | undefined;
570
2524
  };
571
2525
  createdAt: string & {
@@ -617,10 +2571,10 @@ export default class {
617
2571
  } & {
618
2572
  data: {
619
2573
  type: import("./definitions").AnalyticsSettingsType;
620
- readonly companyId: string & {
2574
+ id: string & {
621
2575
  readonly?: "__readonly" | undefined;
622
2576
  };
623
- id: string & {
2577
+ readonly companyId: string & {
624
2578
  readonly?: "__readonly" | undefined;
625
2579
  };
626
2580
  createdAt: string & {
@@ -660,10 +2614,10 @@ export default class {
660
2614
  } & {
661
2615
  data: {
662
2616
  type: import("./definitions").AnalyticsSettingsType;
663
- readonly companyId: string & {
2617
+ id: string & {
664
2618
  readonly?: "__readonly" | undefined;
665
2619
  };
666
- id: string & {
2620
+ readonly companyId: string & {
667
2621
  readonly?: "__readonly" | undefined;
668
2622
  };
669
2623
  createdAt: string & {
@@ -700,10 +2654,10 @@ export default class {
700
2654
  } & {
701
2655
  data: {
702
2656
  type: import("./definitions").AnalyticsSettingsType;
703
- readonly companyId: string & {
2657
+ id: string & {
704
2658
  readonly?: "__readonly" | undefined;
705
2659
  };
706
- id: string & {
2660
+ readonly companyId: string & {
707
2661
  readonly?: "__readonly" | undefined;
708
2662
  };
709
2663
  createdAt: string & {
@@ -737,10 +2691,10 @@ export default class {
737
2691
  } & {
738
2692
  data: {
739
2693
  type: import("./definitions").AnalyticsSettingsType;
740
- readonly companyId: string & {
2694
+ id: string & {
741
2695
  readonly?: "__readonly" | undefined;
742
2696
  };
743
- id: string & {
2697
+ readonly companyId: string & {
744
2698
  readonly?: "__readonly" | undefined;
745
2699
  };
746
2700
  createdAt: string & {
@@ -808,10 +2762,10 @@ export default class {
808
2762
  } & {
809
2763
  data: {
810
2764
  type: import("./definitions").AnalyticsSettingsType;
811
- readonly companyId: string & {
2765
+ id: string & {
812
2766
  readonly?: "__readonly" | undefined;
813
2767
  };
814
- id: string & {
2768
+ readonly companyId: string & {
815
2769
  readonly?: "__readonly" | undefined;
816
2770
  };
817
2771
  createdAt: string & {
@@ -857,10 +2811,10 @@ export default class {
857
2811
  } & {
858
2812
  data: {
859
2813
  type: import("./definitions").AnalyticsSettingsType;
860
- readonly companyId: string & {
2814
+ id: string & {
861
2815
  readonly?: "__readonly" | undefined;
862
2816
  };
863
- id: string & {
2817
+ readonly companyId: string & {
864
2818
  readonly?: "__readonly" | undefined;
865
2819
  };
866
2820
  createdAt: string & {
@@ -910,10 +2864,10 @@ export default class {
910
2864
  } & {
911
2865
  data: {
912
2866
  type: import("./definitions").AnalyticsSettingsType;
913
- readonly companyId: string & {
2867
+ id: string & {
914
2868
  readonly?: "__readonly" | undefined;
915
2869
  };
916
- id: string & {
2870
+ readonly companyId: string & {
917
2871
  readonly?: "__readonly" | undefined;
918
2872
  };
919
2873
  createdAt: string & {