@roarkanalytics/sdk 5.7.0 → 5.9.0

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.
Files changed (62) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/client.d.mts +9 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/analytics.d.mts +354 -0
  12. package/resources/analytics.d.mts.map +1 -0
  13. package/resources/analytics.d.ts +354 -0
  14. package/resources/analytics.d.ts.map +1 -0
  15. package/resources/analytics.js +55 -0
  16. package/resources/analytics.js.map +1 -0
  17. package/resources/analytics.mjs +51 -0
  18. package/resources/analytics.mjs.map +1 -0
  19. package/resources/config.d.mts +626 -14
  20. package/resources/config.d.mts.map +1 -1
  21. package/resources/config.d.ts +626 -14
  22. package/resources/config.d.ts.map +1 -1
  23. package/resources/dashboard.d.mts +2280 -0
  24. package/resources/dashboard.d.mts.map +1 -0
  25. package/resources/dashboard.d.ts +2280 -0
  26. package/resources/dashboard.d.ts.map +1 -0
  27. package/resources/dashboard.js +170 -0
  28. package/resources/dashboard.js.map +1 -0
  29. package/resources/dashboard.mjs +166 -0
  30. package/resources/dashboard.mjs.map +1 -0
  31. package/resources/index.d.mts +3 -0
  32. package/resources/index.d.mts.map +1 -1
  33. package/resources/index.d.ts +3 -0
  34. package/resources/index.d.ts.map +1 -1
  35. package/resources/index.js +7 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +3 -0
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/metric-policy.d.mts +311 -2
  40. package/resources/metric-policy.d.mts.map +1 -1
  41. package/resources/metric-policy.d.ts +311 -2
  42. package/resources/metric-policy.d.ts.map +1 -1
  43. package/resources/usage.d.mts +114 -0
  44. package/resources/usage.d.mts.map +1 -0
  45. package/resources/usage.d.ts +114 -0
  46. package/resources/usage.d.ts.map +1 -0
  47. package/resources/usage.js +27 -0
  48. package/resources/usage.js.map +1 -0
  49. package/resources/usage.mjs +23 -0
  50. package/resources/usage.mjs.map +1 -0
  51. package/src/client.ts +63 -0
  52. package/src/resources/analytics.ts +573 -0
  53. package/src/resources/config.ts +1498 -26
  54. package/src/resources/dashboard.ts +3752 -0
  55. package/src/resources/index.ts +27 -0
  56. package/src/resources/metric-policy.ts +353 -2
  57. package/src/resources/usage.ts +147 -0
  58. package/src/version.ts +1 -1
  59. package/version.d.mts +1 -1
  60. package/version.d.ts +1 -1
  61. package/version.js +1 -1
  62. package/version.mjs +1 -1
@@ -132,6 +132,56 @@ export declare namespace MetricPolicyCreateResponse {
132
132
  }
133
133
  interface Metric {
134
134
  id: string;
135
+ /**
136
+ * The metric's per-collector setting. A metric takes at most one field, and which
137
+ * one depends on the metric: verifiedProperties for Property Verification,
138
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
139
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
140
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
141
+ * take is rejected with a 400.
142
+ */
143
+ settings: Metric.Settings | null;
144
+ }
145
+ namespace Metric {
146
+ /**
147
+ * The metric's per-collector setting. A metric takes at most one field, and which
148
+ * one depends on the metric: verifiedProperties for Property Verification,
149
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
150
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
151
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
152
+ * take is rejected with a 400.
153
+ */
154
+ interface Settings {
155
+ /**
156
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
157
+ * recorded prompt in a different voice.
158
+ */
159
+ excludedPhrases?: Array<string>;
160
+ /**
161
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
162
+ * priority order. Empty or omitted uses every knowledge base in the project.
163
+ */
164
+ knowledgeBaseDocumentIds?: Array<string>;
165
+ /**
166
+ * Call screening metrics: what the agent should say when a screener asks who is
167
+ * calling and why.
168
+ */
169
+ screeningBrief?: string;
170
+ /**
171
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
172
+ * every tool the agent has.
173
+ */
174
+ toolDefinitionIds?: Array<string>;
175
+ /**
176
+ * Property Verification metrics: the conversation properties to check against the
177
+ * transcript. Empty or omitted checks every custom property.
178
+ */
179
+ verifiedProperties?: Array<string>;
180
+ /**
181
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
182
+ */
183
+ voicemailScript?: string;
184
+ }
135
185
  }
136
186
  }
137
187
  }
@@ -207,6 +257,56 @@ export declare namespace MetricPolicyUpdateResponse {
207
257
  }
208
258
  interface Metric {
209
259
  id: string;
260
+ /**
261
+ * The metric's per-collector setting. A metric takes at most one field, and which
262
+ * one depends on the metric: verifiedProperties for Property Verification,
263
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
264
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
265
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
266
+ * take is rejected with a 400.
267
+ */
268
+ settings: Metric.Settings | null;
269
+ }
270
+ namespace Metric {
271
+ /**
272
+ * The metric's per-collector setting. A metric takes at most one field, and which
273
+ * one depends on the metric: verifiedProperties for Property Verification,
274
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
275
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
276
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
277
+ * take is rejected with a 400.
278
+ */
279
+ interface Settings {
280
+ /**
281
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
282
+ * recorded prompt in a different voice.
283
+ */
284
+ excludedPhrases?: Array<string>;
285
+ /**
286
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
287
+ * priority order. Empty or omitted uses every knowledge base in the project.
288
+ */
289
+ knowledgeBaseDocumentIds?: Array<string>;
290
+ /**
291
+ * Call screening metrics: what the agent should say when a screener asks who is
292
+ * calling and why.
293
+ */
294
+ screeningBrief?: string;
295
+ /**
296
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
297
+ * every tool the agent has.
298
+ */
299
+ toolDefinitionIds?: Array<string>;
300
+ /**
301
+ * Property Verification metrics: the conversation properties to check against the
302
+ * transcript. Empty or omitted checks every custom property.
303
+ */
304
+ verifiedProperties?: Array<string>;
305
+ /**
306
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
307
+ */
308
+ voicemailScript?: string;
309
+ }
210
310
  }
211
311
  }
212
312
  }
@@ -283,6 +383,56 @@ export declare namespace MetricPolicyListResponse {
283
383
  }
284
384
  interface Metric {
285
385
  id: string;
386
+ /**
387
+ * The metric's per-collector setting. A metric takes at most one field, and which
388
+ * one depends on the metric: verifiedProperties for Property Verification,
389
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
390
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
391
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
392
+ * take is rejected with a 400.
393
+ */
394
+ settings: Metric.Settings | null;
395
+ }
396
+ namespace Metric {
397
+ /**
398
+ * The metric's per-collector setting. A metric takes at most one field, and which
399
+ * one depends on the metric: verifiedProperties for Property Verification,
400
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
401
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
402
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
403
+ * take is rejected with a 400.
404
+ */
405
+ interface Settings {
406
+ /**
407
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
408
+ * recorded prompt in a different voice.
409
+ */
410
+ excludedPhrases?: Array<string>;
411
+ /**
412
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
413
+ * priority order. Empty or omitted uses every knowledge base in the project.
414
+ */
415
+ knowledgeBaseDocumentIds?: Array<string>;
416
+ /**
417
+ * Call screening metrics: what the agent should say when a screener asks who is
418
+ * calling and why.
419
+ */
420
+ screeningBrief?: string;
421
+ /**
422
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
423
+ * every tool the agent has.
424
+ */
425
+ toolDefinitionIds?: Array<string>;
426
+ /**
427
+ * Property Verification metrics: the conversation properties to check against the
428
+ * transcript. Empty or omitted checks every custom property.
429
+ */
430
+ verifiedProperties?: Array<string>;
431
+ /**
432
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
433
+ */
434
+ voicemailScript?: string;
435
+ }
286
436
  }
287
437
  }
288
438
  interface Pagination {
@@ -383,12 +533,63 @@ export declare namespace MetricPolicyGetByIDResponse {
383
533
  }
384
534
  interface Metric {
385
535
  id: string;
536
+ /**
537
+ * The metric's per-collector setting. A metric takes at most one field, and which
538
+ * one depends on the metric: verifiedProperties for Property Verification,
539
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
540
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
541
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
542
+ * take is rejected with a 400.
543
+ */
544
+ settings: Metric.Settings | null;
545
+ }
546
+ namespace Metric {
547
+ /**
548
+ * The metric's per-collector setting. A metric takes at most one field, and which
549
+ * one depends on the metric: verifiedProperties for Property Verification,
550
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
551
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
552
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
553
+ * take is rejected with a 400.
554
+ */
555
+ interface Settings {
556
+ /**
557
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
558
+ * recorded prompt in a different voice.
559
+ */
560
+ excludedPhrases?: Array<string>;
561
+ /**
562
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
563
+ * priority order. Empty or omitted uses every knowledge base in the project.
564
+ */
565
+ knowledgeBaseDocumentIds?: Array<string>;
566
+ /**
567
+ * Call screening metrics: what the agent should say when a screener asks who is
568
+ * calling and why.
569
+ */
570
+ screeningBrief?: string;
571
+ /**
572
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
573
+ * every tool the agent has.
574
+ */
575
+ toolDefinitionIds?: Array<string>;
576
+ /**
577
+ * Property Verification metrics: the conversation properties to check against the
578
+ * transcript. Empty or omitted checks every custom property.
579
+ */
580
+ verifiedProperties?: Array<string>;
581
+ /**
582
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
583
+ */
584
+ voicemailScript?: string;
585
+ }
386
586
  }
387
587
  }
388
588
  }
389
589
  export interface MetricPolicyCreateParams {
390
590
  /**
391
- * Metric definitions to collect when this policy matches
591
+ * Metric definitions to collect when this policy matches, each with an optional
592
+ * setting
392
593
  */
393
594
  metrics: Array<MetricPolicyCreateParams.Metric>;
394
595
  /**
@@ -411,7 +612,60 @@ export interface MetricPolicyCreateParams {
411
612
  }
412
613
  export declare namespace MetricPolicyCreateParams {
413
614
  interface Metric {
615
+ /**
616
+ * The metric definition to collect
617
+ */
414
618
  id: string;
619
+ /**
620
+ * The metric's per-collector setting. A metric takes at most one field, and which
621
+ * one depends on the metric: verifiedProperties for Property Verification,
622
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
623
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
624
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
625
+ * take is rejected with a 400.
626
+ */
627
+ settings?: Metric.Settings | null;
628
+ }
629
+ namespace Metric {
630
+ /**
631
+ * The metric's per-collector setting. A metric takes at most one field, and which
632
+ * one depends on the metric: verifiedProperties for Property Verification,
633
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
634
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
635
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
636
+ * take is rejected with a 400.
637
+ */
638
+ interface Settings {
639
+ /**
640
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
641
+ * recorded prompt in a different voice.
642
+ */
643
+ excludedPhrases?: Array<string>;
644
+ /**
645
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
646
+ * priority order. Empty or omitted uses every knowledge base in the project.
647
+ */
648
+ knowledgeBaseDocumentIds?: Array<string>;
649
+ /**
650
+ * Call screening metrics: what the agent should say when a screener asks who is
651
+ * calling and why.
652
+ */
653
+ screeningBrief?: string;
654
+ /**
655
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
656
+ * every tool the agent has.
657
+ */
658
+ toolDefinitionIds?: Array<string>;
659
+ /**
660
+ * Property Verification metrics: the conversation properties to check against the
661
+ * transcript. Empty or omitted checks every custom property.
662
+ */
663
+ verifiedProperties?: Array<string>;
664
+ /**
665
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
666
+ */
667
+ voicemailScript?: string;
668
+ }
415
669
  }
416
670
  interface Condition {
417
671
  conditions: Array<Condition.Condition>;
@@ -446,7 +700,9 @@ export interface MetricPolicyUpdateParams {
446
700
  */
447
701
  conditions?: Array<MetricPolicyUpdateParams.Condition>;
448
702
  /**
449
- * Metric definitions to collect when this policy matches
703
+ * Metric definitions to collect when this policy matches. Replaces the policy's
704
+ * whole metric list: a metric sent without settings goes back to its default, so
705
+ * resend a metric's settings to keep them. Omit to keep the current metrics.
450
706
  */
451
707
  metrics?: Array<MetricPolicyUpdateParams.Metric>;
452
708
  /**
@@ -485,7 +741,60 @@ export declare namespace MetricPolicyUpdateParams {
485
741
  }
486
742
  }
487
743
  interface Metric {
744
+ /**
745
+ * The metric definition to collect
746
+ */
488
747
  id: string;
748
+ /**
749
+ * The metric's per-collector setting. A metric takes at most one field, and which
750
+ * one depends on the metric: verifiedProperties for Property Verification,
751
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
752
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
753
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
754
+ * take is rejected with a 400.
755
+ */
756
+ settings?: Metric.Settings | null;
757
+ }
758
+ namespace Metric {
759
+ /**
760
+ * The metric's per-collector setting. A metric takes at most one field, and which
761
+ * one depends on the metric: verifiedProperties for Property Verification,
762
+ * excludedPhrases for voice consistency, voicemailScript for voicemail,
763
+ * screeningBrief for call screening, toolDefinitionIds for tool invocation,
764
+ * knowledgeBaseDocumentIds for knowledge grounding. A field the metric doesn't
765
+ * take is rejected with a 400.
766
+ */
767
+ interface Settings {
768
+ /**
769
+ * Voice consistency metrics: phrases whose agent lines are not judged, such as a
770
+ * recorded prompt in a different voice.
771
+ */
772
+ excludedPhrases?: Array<string>;
773
+ /**
774
+ * Knowledge grounding metrics: the knowledge base documents to ground against, in
775
+ * priority order. Empty or omitted uses every knowledge base in the project.
776
+ */
777
+ knowledgeBaseDocumentIds?: Array<string>;
778
+ /**
779
+ * Call screening metrics: what the agent should say when a screener asks who is
780
+ * calling and why.
781
+ */
782
+ screeningBrief?: string;
783
+ /**
784
+ * Tool invocation metrics: the tool definitions to score. Empty or omitted scores
785
+ * every tool the agent has.
786
+ */
787
+ toolDefinitionIds?: Array<string>;
788
+ /**
789
+ * Property Verification metrics: the conversation properties to check against the
790
+ * transcript. Empty or omitted checks every custom property.
791
+ */
792
+ verifiedProperties?: Array<string>;
793
+ /**
794
+ * Voicemail metrics: the message the agent is expected to leave on voicemail.
795
+ */
796
+ voicemailScript?: string;
797
+ }
489
798
  }
490
799
  }
491
800
  export interface MetricPolicyListParams {
@@ -1 +1 @@
1
- {"version":3,"file":"metric-policy.d.ts","sourceRoot":"","sources":["../src/resources/metric-policy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,IAAI,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,0BAA0B,CAAC;IAIxG;;;;;;;;;OASG;IACH,MAAM,CACJ,QAAQ,EAA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AM,CAAC,CAAC;YAEhC;;;eAGG;YACH,wBAAwB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAEzC;;;eAGG;YACH,cAAc,CAAC,EAAE,MAAM,CAAC;YAExB;;;eAGG;YACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAElC;;;eAGG;YACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YAEnC;;eAEG;YACH,eAAe,CAAC,EAAE,MAAM,CAAC;SAC1B;KACF;CACF;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;CAChC;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,114 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { RequestOptions } from "../internal/request-options.mjs";
4
+ export declare class Usage extends APIResource {
5
+ /**
6
+ * Report billable usage and cost for the organization over a time window, broken
7
+ * down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
8
+ * optionally pass `projectId` to scope the report to one project. Amounts are
9
+ * billable spend only (what we absorb is never included). Authenticated by an
10
+ * organization API key with the `usage:read` permission.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const usage = await client.usage.get({
15
+ * from: '2026-09-01T00:00:00Z',
16
+ * to: '2026-10-01T00:00:00Z',
17
+ * });
18
+ * ```
19
+ */
20
+ get(query: UsageGetParams, options?: RequestOptions): APIPromise<UsageGetResponse>;
21
+ }
22
+ export interface UsageGetResponse {
23
+ data: UsageGetResponse.Data;
24
+ }
25
+ export declare namespace UsageGetResponse {
26
+ interface Data {
27
+ currency: 'usd';
28
+ /**
29
+ * The resolved window start, echoed back as ISO 8601.
30
+ */
31
+ from: string;
32
+ /**
33
+ * Per-project billable spend, highest first. Only projects with spend in the
34
+ * window appear.
35
+ */
36
+ projects: Array<Data.Project>;
37
+ /**
38
+ * The resolved window end, echoed back as ISO 8601.
39
+ */
40
+ to: string;
41
+ /**
42
+ * The same total in US dollars.
43
+ */
44
+ totalUsd: number;
45
+ /**
46
+ * Total billable spend across the organization (or the single project) in
47
+ * micro-dollars.
48
+ */
49
+ totalUsdMicros: number;
50
+ }
51
+ namespace Data {
52
+ interface Project {
53
+ /**
54
+ * The same billable spend in US dollars. For display; use amountUsdMicros to
55
+ * reconcile.
56
+ */
57
+ amountUsd: number;
58
+ /**
59
+ * Billable spend in integer micro-dollars (1,000,000 = $1). The exact value.
60
+ */
61
+ amountUsdMicros: number;
62
+ /**
63
+ * This project's spend split by cost type, highest first. Sums to amountUsdMicros.
64
+ */
65
+ breakdown: Array<Project.Breakdown>;
66
+ projectId: string;
67
+ /**
68
+ * Null only if the project no longer exists in this organization.
69
+ */
70
+ projectName: string | null;
71
+ }
72
+ namespace Project {
73
+ interface Breakdown {
74
+ /**
75
+ * The same figure in US dollars.
76
+ */
77
+ amountUsd: number;
78
+ /**
79
+ * Billable spend for this type, in micro-dollars.
80
+ */
81
+ amountUsdMicros: number;
82
+ /**
83
+ * The cost source, e.g. SIM*PLATFORM_FEE, SIM_LLM, SIM_TTS, SIM_STT,
84
+ * SIM_TELEPHONY, METRIC, or TRANSCRIPTION. These are the granular sources behind
85
+ * the Billing screen categories (SIM*\* roll up into "Simulation").
86
+ */
87
+ source: 'SIM_PLATFORM_FEE' | 'SIM_TTS' | 'SIM_STT' | 'SIM_LLM' | 'SIM_TELEPHONY' | 'METRIC' | 'TRANSCRIPTION' | 'INTERNAL_LLM' | 'INTERNAL_STT';
88
+ /**
89
+ * Whether this cost came from a SIMULATION or a production call (POST_CALL).
90
+ */
91
+ surface: 'SIMULATION' | 'POST_CALL';
92
+ }
93
+ }
94
+ }
95
+ }
96
+ export interface UsageGetParams {
97
+ /**
98
+ * Start of the window (inclusive), ISO 8601.
99
+ */
100
+ from: string;
101
+ /**
102
+ * End of the window (exclusive), ISO 8601. Must be after `from`, and the window
103
+ * may not exceed 366 days.
104
+ */
105
+ to: string;
106
+ /**
107
+ * Limit the report to a single project. Omit for the whole organization.
108
+ */
109
+ projectId?: string;
110
+ }
111
+ export declare namespace Usage {
112
+ export { type UsageGetResponse as UsageGetResponse, type UsageGetParams as UsageGetParams };
113
+ }
114
+ //# sourceMappingURL=usage.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,gBAAgB,CAAC,IAAI,CAAC;CAC7B;AAED,yBAAiB,gBAAgB,CAAC;IAChC,UAAiB,IAAI;QACnB,QAAQ,EAAE,KAAK,CAAC;QAEhB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;;WAGG;QACH,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAE9B;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,cAAc,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,OAAO;YACtB;;;eAGG;YACH,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,eAAe,EAAE,MAAM,CAAC;YAExB;;eAEG;YACH,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAEpC,SAAS,EAAE,MAAM,CAAC;YAElB;;eAEG;YACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;SAC5B;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,SAAS;gBACxB;;mBAEG;gBACH,SAAS,EAAE,MAAM,CAAC;gBAElB;;mBAEG;gBACH,eAAe,EAAE,MAAM,CAAC;gBAExB;;;;mBAIG;gBACH,MAAM,EACF,kBAAkB,GAClB,SAAS,GACT,SAAS,GACT,SAAS,GACT,eAAe,GACf,QAAQ,GACR,eAAe,GACf,cAAc,GACd,cAAc,CAAC;gBAEnB;;mBAEG;gBACH,OAAO,EAAE,YAAY,GAAG,WAAW,CAAC;aACrC;SACF;KACF;CACF;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;OAGG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
@@ -0,0 +1,114 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Usage extends APIResource {
5
+ /**
6
+ * Report billable usage and cost for the organization over a time window, broken
7
+ * down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
8
+ * optionally pass `projectId` to scope the report to one project. Amounts are
9
+ * billable spend only (what we absorb is never included). Authenticated by an
10
+ * organization API key with the `usage:read` permission.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * const usage = await client.usage.get({
15
+ * from: '2026-09-01T00:00:00Z',
16
+ * to: '2026-10-01T00:00:00Z',
17
+ * });
18
+ * ```
19
+ */
20
+ get(query: UsageGetParams, options?: RequestOptions): APIPromise<UsageGetResponse>;
21
+ }
22
+ export interface UsageGetResponse {
23
+ data: UsageGetResponse.Data;
24
+ }
25
+ export declare namespace UsageGetResponse {
26
+ interface Data {
27
+ currency: 'usd';
28
+ /**
29
+ * The resolved window start, echoed back as ISO 8601.
30
+ */
31
+ from: string;
32
+ /**
33
+ * Per-project billable spend, highest first. Only projects with spend in the
34
+ * window appear.
35
+ */
36
+ projects: Array<Data.Project>;
37
+ /**
38
+ * The resolved window end, echoed back as ISO 8601.
39
+ */
40
+ to: string;
41
+ /**
42
+ * The same total in US dollars.
43
+ */
44
+ totalUsd: number;
45
+ /**
46
+ * Total billable spend across the organization (or the single project) in
47
+ * micro-dollars.
48
+ */
49
+ totalUsdMicros: number;
50
+ }
51
+ namespace Data {
52
+ interface Project {
53
+ /**
54
+ * The same billable spend in US dollars. For display; use amountUsdMicros to
55
+ * reconcile.
56
+ */
57
+ amountUsd: number;
58
+ /**
59
+ * Billable spend in integer micro-dollars (1,000,000 = $1). The exact value.
60
+ */
61
+ amountUsdMicros: number;
62
+ /**
63
+ * This project's spend split by cost type, highest first. Sums to amountUsdMicros.
64
+ */
65
+ breakdown: Array<Project.Breakdown>;
66
+ projectId: string;
67
+ /**
68
+ * Null only if the project no longer exists in this organization.
69
+ */
70
+ projectName: string | null;
71
+ }
72
+ namespace Project {
73
+ interface Breakdown {
74
+ /**
75
+ * The same figure in US dollars.
76
+ */
77
+ amountUsd: number;
78
+ /**
79
+ * Billable spend for this type, in micro-dollars.
80
+ */
81
+ amountUsdMicros: number;
82
+ /**
83
+ * The cost source, e.g. SIM*PLATFORM_FEE, SIM_LLM, SIM_TTS, SIM_STT,
84
+ * SIM_TELEPHONY, METRIC, or TRANSCRIPTION. These are the granular sources behind
85
+ * the Billing screen categories (SIM*\* roll up into "Simulation").
86
+ */
87
+ source: 'SIM_PLATFORM_FEE' | 'SIM_TTS' | 'SIM_STT' | 'SIM_LLM' | 'SIM_TELEPHONY' | 'METRIC' | 'TRANSCRIPTION' | 'INTERNAL_LLM' | 'INTERNAL_STT';
88
+ /**
89
+ * Whether this cost came from a SIMULATION or a production call (POST_CALL).
90
+ */
91
+ surface: 'SIMULATION' | 'POST_CALL';
92
+ }
93
+ }
94
+ }
95
+ }
96
+ export interface UsageGetParams {
97
+ /**
98
+ * Start of the window (inclusive), ISO 8601.
99
+ */
100
+ from: string;
101
+ /**
102
+ * End of the window (exclusive), ISO 8601. Must be after `from`, and the window
103
+ * may not exceed 366 days.
104
+ */
105
+ to: string;
106
+ /**
107
+ * Limit the report to a single project. Omit for the whole organization.
108
+ */
109
+ projectId?: string;
110
+ }
111
+ export declare namespace Usage {
112
+ export { type UsageGetResponse as UsageGetResponse, type UsageGetParams as UsageGetParams };
113
+ }
114
+ //# sourceMappingURL=usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../src/resources/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;;OAcG;IACH,GAAG,CAAC,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;CAGnF;AAED,M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OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,KAAK,cAAc,IAAI,cAAc,EAAE,CAAC;CAC7F"}
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Usage = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class Usage extends resource_1.APIResource {
7
+ /**
8
+ * Report billable usage and cost for the organization over a time window, broken
9
+ * down by project (highest spend first). Pass `from`/`to` as ISO 8601 timestamps;
10
+ * optionally pass `projectId` to scope the report to one project. Amounts are
11
+ * billable spend only (what we absorb is never included). Authenticated by an
12
+ * organization API key with the `usage:read` permission.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const usage = await client.usage.get({
17
+ * from: '2026-09-01T00:00:00Z',
18
+ * to: '2026-10-01T00:00:00Z',
19
+ * });
20
+ * ```
21
+ */
22
+ get(query, options) {
23
+ return this._client.get('/v1/usage', { query, ...options });
24
+ }
25
+ }
26
+ exports.Usage = Usage;
27
+ //# sourceMappingURL=usage.js.map