@roarkanalytics/sdk 6.2.0 → 7.0.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 (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/lib/config.d.mts +12 -0
  11. package/lib/config.d.mts.map +1 -1
  12. package/lib/config.d.ts +12 -0
  13. package/lib/config.d.ts.map +1 -1
  14. package/lib/config.js +11 -1
  15. package/lib/config.js.map +1 -1
  16. package/lib/config.mjs +9 -0
  17. package/lib/config.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/calendar-connection.d.mts +897 -0
  20. package/resources/calendar-connection.d.mts.map +1 -0
  21. package/resources/calendar-connection.d.ts +897 -0
  22. package/resources/calendar-connection.d.ts.map +1 -0
  23. package/resources/calendar-connection.js +143 -0
  24. package/resources/calendar-connection.js.map +1 -0
  25. package/resources/calendar-connection.mjs +139 -0
  26. package/resources/calendar-connection.mjs.map +1 -0
  27. package/resources/call.d.mts +2 -0
  28. package/resources/call.d.mts.map +1 -1
  29. package/resources/call.d.ts +2 -0
  30. package/resources/call.d.ts.map +1 -1
  31. package/resources/config.d.mts +506 -26
  32. package/resources/config.d.mts.map +1 -1
  33. package/resources/config.d.ts +506 -26
  34. package/resources/config.d.ts.map +1 -1
  35. package/resources/http-request-definition.d.mts +4 -4
  36. package/resources/http-request-definition.d.mts.map +1 -1
  37. package/resources/http-request-definition.d.ts +4 -4
  38. package/resources/http-request-definition.d.ts.map +1 -1
  39. package/resources/index.d.mts +2 -0
  40. package/resources/index.d.mts.map +1 -1
  41. package/resources/index.d.ts +2 -0
  42. package/resources/index.d.ts.map +1 -1
  43. package/resources/index.js +5 -1
  44. package/resources/index.js.map +1 -1
  45. package/resources/index.mjs +2 -0
  46. package/resources/index.mjs.map +1 -1
  47. package/resources/metric-variant.d.mts +5 -0
  48. package/resources/metric-variant.d.mts.map +1 -1
  49. package/resources/metric-variant.d.ts +5 -0
  50. package/resources/metric-variant.d.ts.map +1 -1
  51. package/resources/metric.d.mts +90 -0
  52. package/resources/metric.d.mts.map +1 -1
  53. package/resources/metric.d.ts +90 -0
  54. package/resources/metric.d.ts.map +1 -1
  55. package/resources/tool.d.mts +671 -0
  56. package/resources/tool.d.mts.map +1 -0
  57. package/resources/tool.d.ts +671 -0
  58. package/resources/tool.d.ts.map +1 -0
  59. package/resources/tool.js +83 -0
  60. package/resources/tool.js.map +1 -0
  61. package/resources/tool.mjs +79 -0
  62. package/resources/tool.mjs.map +1 -0
  63. package/src/client.ts +58 -0
  64. package/src/lib/config.ts +22 -0
  65. package/src/resources/calendar-connection.ts +1103 -0
  66. package/src/resources/call.ts +4 -0
  67. package/src/resources/config.ts +937 -23
  68. package/src/resources/http-request-definition.ts +4 -4
  69. package/src/resources/index.ts +26 -0
  70. package/src/resources/metric-variant.ts +6 -0
  71. package/src/resources/metric.ts +108 -0
  72. package/src/resources/tool.ts +884 -0
  73. package/src/version.ts +1 -1
  74. package/version.d.mts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
@@ -123,7 +123,7 @@ export namespace HTTPRequestDefinitionCreateResponse {
123
123
  /**
124
124
  * HTTP method: POST, PUT, PATCH, or GET
125
125
  */
126
- method: 'POST' | 'PUT' | 'PATCH' | 'GET';
126
+ method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
127
127
 
128
128
  /**
129
129
  * Parsed body as a JSON object if valid JSON, otherwise the raw string
@@ -199,7 +199,7 @@ export namespace HTTPRequestDefinitionUpdateResponse {
199
199
  /**
200
200
  * HTTP method: POST, PUT, PATCH, or GET
201
201
  */
202
- method: 'POST' | 'PUT' | 'PATCH' | 'GET';
202
+ method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
203
203
 
204
204
  /**
205
205
  * Parsed body as a JSON object if valid JSON, otherwise the raw string
@@ -269,7 +269,7 @@ export namespace HTTPRequestDefinitionListResponse {
269
269
  /**
270
270
  * HTTP method: POST, PUT, PATCH, or GET
271
271
  */
272
- method: 'POST' | 'PUT' | 'PATCH' | 'GET';
272
+ method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
273
273
 
274
274
  /**
275
275
  * Parsed body as a JSON object if valid JSON, otherwise the raw string
@@ -357,7 +357,7 @@ export namespace HTTPRequestDefinitionGetByIDResponse {
357
357
  /**
358
358
  * HTTP method: POST, PUT, PATCH, or GET
359
359
  */
360
- method: 'POST' | 'PUT' | 'PATCH' | 'GET';
360
+ method: 'POST' | 'PUT' | 'PATCH' | 'GET' | 'DELETE';
361
361
 
362
362
  /**
363
363
  * Parsed body as a JSON object if valid JSON, otherwise the raw string
@@ -97,6 +97,21 @@ export {
97
97
  type BenchmarkListTargetHistoryParams,
98
98
  type BenchmarkListTargetScoreSamplesParams,
99
99
  } from './benchmark';
100
+ export {
101
+ CalendarConnection,
102
+ type CalendarConnectionCreateResponse,
103
+ type CalendarConnectionUpdateResponse,
104
+ type CalendarConnectionListResponse,
105
+ type CalendarConnectionDeleteResponse,
106
+ type CalendarConnectionCheckResponse,
107
+ type CalendarConnectionGetByIDResponse,
108
+ type CalendarConnectionGetTargetResponse,
109
+ type CalendarConnectionListTargetsResponse,
110
+ type CalendarConnectionCreateParams,
111
+ type CalendarConnectionUpdateParams,
112
+ type CalendarConnectionListParams,
113
+ type CalendarConnectionGetTargetParams,
114
+ } from './calendar-connection';
100
115
  export {
101
116
  Call,
102
117
  type CallCreateResponse,
@@ -361,6 +376,17 @@ export {
361
376
  type SimulationToolFixtureUpdateParams,
362
377
  type SimulationToolFixtureListParams,
363
378
  } from './simulation-tool-fixture';
379
+ export {
380
+ Tool,
381
+ type ToolCreateResponse,
382
+ type ToolUpdateResponse,
383
+ type ToolListResponse,
384
+ type ToolDeleteResponse,
385
+ type ToolGetByIDResponse,
386
+ type ToolCreateParams,
387
+ type ToolUpdateParams,
388
+ type ToolListParams,
389
+ } from './tool';
364
390
  export { Usage, type UsageGetResponse, type UsageGetParams } from './usage';
365
391
  export {
366
392
  Webhook,
@@ -402,6 +402,12 @@ export interface MetricVariantUpdateParams {
402
402
  */
403
403
  changeReason?: string;
404
404
 
405
+ /**
406
+ * Body param: Score this metric on a simulated call with fewer than 4 transcript
407
+ * lines. Such calls skip every other metric. Default false.
408
+ */
409
+ gradesShortCalls?: boolean;
410
+
405
411
  /**
406
412
  * Body param: The rubric this variant applies. LLM judge metrics only.
407
413
  */
@@ -122,6 +122,12 @@ export namespace MetricCreateDefinitionResponse {
122
122
  */
123
123
  evidenceSource: LlmJudgeMetricResponse.EvidenceSource | null;
124
124
 
125
+ /**
126
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
127
+ * lines. Such calls skip every metric without it.
128
+ */
129
+ gradesShortCalls: boolean;
130
+
125
131
  /**
126
132
  * The rubric this judge applies, as stored. Read it back to confirm which criteria
127
133
  * are live after a create or update.
@@ -273,6 +279,12 @@ export namespace MetricCreateDefinitionResponse {
273
279
  */
274
280
  formula: FormulaMetricResponse.Formula;
275
281
 
282
+ /**
283
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
284
+ * lines. Such calls skip every metric without it.
285
+ */
286
+ gradesShortCalls: boolean;
287
+
276
288
  /**
277
289
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
278
290
  */
@@ -430,6 +442,12 @@ export namespace MetricCreateDefinitionResponse {
430
442
  */
431
443
  evidenceSource: PatternMetricResponse.EvidenceSource | null;
432
444
 
445
+ /**
446
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
447
+ * lines. Such calls skip every metric without it.
448
+ */
449
+ gradesShortCalls: boolean;
450
+
433
451
  /**
434
452
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
435
453
  */
@@ -643,6 +661,12 @@ export namespace MetricCreateDefinitionResponse {
643
661
  */
644
662
  evidenceSource: HTTPRequestMetricResponse.EvidenceSource | null;
645
663
 
664
+ /**
665
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
666
+ * lines. Such calls skip every metric without it.
667
+ */
668
+ gradesShortCalls: boolean;
669
+
646
670
  /**
647
671
  * The request this metric sends.
648
672
  */
@@ -840,6 +864,12 @@ export namespace MetricListDefinitionsResponse {
840
864
  */
841
865
  evidenceSource: LlmJudgeMetricResponse.EvidenceSource | null;
842
866
 
867
+ /**
868
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
869
+ * lines. Such calls skip every metric without it.
870
+ */
871
+ gradesShortCalls: boolean;
872
+
843
873
  /**
844
874
  * The rubric this judge applies, as stored. Read it back to confirm which criteria
845
875
  * are live after a create or update.
@@ -986,6 +1016,12 @@ export namespace MetricListDefinitionsResponse {
986
1016
  */
987
1017
  evidenceSource: ProviderMetricResponse.EvidenceSource | null;
988
1018
 
1019
+ /**
1020
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
1021
+ * lines. Such calls skip every metric without it.
1022
+ */
1023
+ gradesShortCalls: boolean;
1024
+
989
1025
  /**
990
1026
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
991
1027
  */
@@ -1126,6 +1162,12 @@ export namespace MetricListDefinitionsResponse {
1126
1162
  */
1127
1163
  evidenceSource: ThresholdMetricResponse.EvidenceSource | null;
1128
1164
 
1165
+ /**
1166
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
1167
+ * lines. Such calls skip every metric without it.
1168
+ */
1169
+ gradesShortCalls: boolean;
1170
+
1129
1171
  /**
1130
1172
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
1131
1173
  */
@@ -1301,6 +1343,12 @@ export namespace MetricListDefinitionsResponse {
1301
1343
  */
1302
1344
  formula: FormulaMetricResponse.Formula;
1303
1345
 
1346
+ /**
1347
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
1348
+ * lines. Such calls skip every metric without it.
1349
+ */
1350
+ gradesShortCalls: boolean;
1351
+
1304
1352
  /**
1305
1353
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
1306
1354
  */
@@ -1458,6 +1506,12 @@ export namespace MetricListDefinitionsResponse {
1458
1506
  */
1459
1507
  evidenceSource: PatternMetricResponse.EvidenceSource | null;
1460
1508
 
1509
+ /**
1510
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
1511
+ * lines. Such calls skip every metric without it.
1512
+ */
1513
+ gradesShortCalls: boolean;
1514
+
1461
1515
  /**
1462
1516
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
1463
1517
  */
@@ -1671,6 +1725,12 @@ export namespace MetricListDefinitionsResponse {
1671
1725
  */
1672
1726
  evidenceSource: HTTPRequestMetricResponse.EvidenceSource | null;
1673
1727
 
1728
+ /**
1729
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
1730
+ * lines. Such calls skip every metric without it.
1731
+ */
1732
+ gradesShortCalls: boolean;
1733
+
1674
1734
  /**
1675
1735
  * The request this metric sends.
1676
1736
  */
@@ -1872,6 +1932,12 @@ export namespace MetricUpdateDefinitionResponse {
1872
1932
  */
1873
1933
  evidenceSource: LlmJudgeMetricResponse.EvidenceSource | null;
1874
1934
 
1935
+ /**
1936
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
1937
+ * lines. Such calls skip every metric without it.
1938
+ */
1939
+ gradesShortCalls: boolean;
1940
+
1875
1941
  /**
1876
1942
  * The rubric this judge applies, as stored. Read it back to confirm which criteria
1877
1943
  * are live after a create or update.
@@ -2023,6 +2089,12 @@ export namespace MetricUpdateDefinitionResponse {
2023
2089
  */
2024
2090
  formula: FormulaMetricResponse.Formula;
2025
2091
 
2092
+ /**
2093
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
2094
+ * lines. Such calls skip every metric without it.
2095
+ */
2096
+ gradesShortCalls: boolean;
2097
+
2026
2098
  /**
2027
2099
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
2028
2100
  */
@@ -2180,6 +2252,12 @@ export namespace MetricUpdateDefinitionResponse {
2180
2252
  */
2181
2253
  evidenceSource: PatternMetricResponse.EvidenceSource | null;
2182
2254
 
2255
+ /**
2256
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
2257
+ * lines. Such calls skip every metric without it.
2258
+ */
2259
+ gradesShortCalls: boolean;
2260
+
2183
2261
  /**
2184
2262
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
2185
2263
  */
@@ -2382,6 +2460,12 @@ export namespace MetricUpdateDefinitionResponse {
2382
2460
  */
2383
2461
  evidenceSource: ThresholdMetricResponse.EvidenceSource | null;
2384
2462
 
2463
+ /**
2464
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
2465
+ * lines. Such calls skip every metric without it.
2466
+ */
2467
+ gradesShortCalls: boolean;
2468
+
2385
2469
  /**
2386
2470
  * Alias of `slug` retained for backwards compatibility. Same value as `slug`.
2387
2471
  */
@@ -2563,6 +2647,12 @@ export namespace MetricUpdateDefinitionResponse {
2563
2647
  */
2564
2648
  evidenceSource: HTTPRequestMetricResponse.EvidenceSource | null;
2565
2649
 
2650
+ /**
2651
+ * Whether a simulation scores this metric on a call with fewer than 4 transcript
2652
+ * lines. Such calls skip every metric without it.
2653
+ */
2654
+ gradesShortCalls: boolean;
2655
+
2566
2656
  /**
2567
2657
  * The request this metric sends.
2568
2658
  */
@@ -2751,6 +2841,12 @@ export declare namespace MetricCreateDefinitionParams {
2751
2841
  */
2752
2842
  classificationOptions?: Array<PromptMetricInput.ClassificationOption>;
2753
2843
 
2844
+ /**
2845
+ * Score this metric on a simulated call with fewer than 4 transcript lines. Such
2846
+ * calls skip every other metric. Default false.
2847
+ */
2848
+ gradesShortCalls?: boolean;
2849
+
2754
2850
  /**
2755
2851
  * LLM prompt/criteria for evaluating this metric. Required for BOOLEAN, NUMERIC,
2756
2852
  * TEXT, and SCALE types.
@@ -3070,6 +3166,12 @@ export declare namespace MetricCreateDefinitionParams {
3070
3166
  */
3071
3167
  booleanTrueLabel?: string;
3072
3168
 
3169
+ /**
3170
+ * Score this metric on a simulated call with fewer than 4 transcript lines. Such
3171
+ * calls skip every other metric. Default false.
3172
+ */
3173
+ gradesShortCalls?: boolean;
3174
+
3073
3175
  /**
3074
3176
  * Alias of `slug` accepted for backwards compatibility. Use `slug` for new
3075
3177
  * integrations.
@@ -3152,6 +3254,12 @@ export interface MetricUpdateDefinitionParams {
3152
3254
  */
3153
3255
  formula?: string;
3154
3256
 
3257
+ /**
3258
+ * Score this metric on a simulated call with fewer than 4 transcript lines. Such
3259
+ * calls skip every other metric. Default false.
3260
+ */
3261
+ gradesShortCalls?: boolean;
3262
+
3155
3263
  /**
3156
3264
  * Replacement request (HTTP_REQUEST only). Send the whole request; omitted headers
3157
3265
  * are removed.