@allisall/sdk 0.1.0 → 0.2.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 (60) hide show
  1. package/README.md +142 -4
  2. package/dist/client.d.ts +81 -37
  3. package/dist/client.js +136 -73
  4. package/dist/generated/openapi.d.ts +7724 -0
  5. package/dist/generated/openapi.js +4 -0
  6. package/dist/generated/operations.d.ts +37 -0
  7. package/dist/generated/operations.js +976 -0
  8. package/dist/index.d.ts +7 -2
  9. package/dist/index.js +1 -0
  10. package/dist/ingest.d.ts +1 -1
  11. package/dist/ingest.js +2 -2
  12. package/dist/money.d.ts +57 -0
  13. package/dist/money.js +284 -0
  14. package/dist/multipart.d.ts +27 -0
  15. package/dist/multipart.js +48 -0
  16. package/dist/options.d.ts +50 -0
  17. package/dist/options.js +73 -0
  18. package/dist/pagination.d.ts +55 -0
  19. package/dist/pagination.js +85 -0
  20. package/dist/request.d.ts +117 -0
  21. package/dist/request.js +363 -0
  22. package/dist/resources/agents.d.ts +51 -0
  23. package/dist/resources/agents.js +65 -0
  24. package/dist/resources/analytics.d.ts +42 -0
  25. package/dist/resources/analytics.js +68 -0
  26. package/dist/resources/api-keys.d.ts +54 -0
  27. package/dist/resources/api-keys.js +63 -0
  28. package/dist/resources/calculations.d.ts +78 -0
  29. package/dist/resources/calculations.js +111 -0
  30. package/dist/resources/clients.d.ts +65 -0
  31. package/dist/resources/clients.js +85 -0
  32. package/dist/resources/cost.d.ts +69 -0
  33. package/dist/resources/cost.js +89 -0
  34. package/dist/resources/dashboard.d.ts +24 -0
  35. package/dist/resources/dashboard.js +28 -0
  36. package/dist/resources/events.d.ts +47 -0
  37. package/dist/resources/events.js +69 -0
  38. package/dist/resources/health.d.ts +14 -0
  39. package/dist/resources/health.js +17 -0
  40. package/dist/resources/imports.d.ts +33 -0
  41. package/dist/resources/imports.js +37 -0
  42. package/dist/resources/outcome-types.d.ts +25 -0
  43. package/dist/resources/outcome-types.js +33 -0
  44. package/dist/resources/reports.d.ts +77 -0
  45. package/dist/resources/reports.js +103 -0
  46. package/dist/resources/value-models.d.ts +92 -0
  47. package/dist/resources/value-models.js +126 -0
  48. package/dist/runtime.d.ts +2 -0
  49. package/dist/runtime.js +2 -1
  50. package/dist/share.d.ts +52 -0
  51. package/dist/share.js +60 -0
  52. package/dist/transport.d.ts +54 -5
  53. package/dist/transport.js +81 -32
  54. package/dist/types.d.ts +135 -2
  55. package/dist/types.js +12 -3
  56. package/dist/unicode.d.ts +2 -0
  57. package/dist/unicode.js +11 -0
  58. package/dist/version.d.ts +1 -1
  59. package/dist/version.js +1 -1
  60. package/package.json +4 -3
@@ -0,0 +1,976 @@
1
+ // Generated from the API's OpenAPI document by scripts/generate.mjs.
2
+ // Never edit this file by hand: change the document or the script, and
3
+ // regenerate.
4
+ /** The path segment that stands for every item of an array. */
5
+ export const ITEMS = "*";
6
+ /** The operation table, one entry per operation the SDK can call. */
7
+ export const OPERATIONS = {
8
+ commitImport: {
9
+ method: "POST",
10
+ path: "/v1/imports",
11
+ access: "KeyOrSession",
12
+ scope: "ingest",
13
+ idempotent: true,
14
+ list: null,
15
+ body: "multipart",
16
+ status: 200,
17
+ requestMoney: [],
18
+ responseMoney: [],
19
+ },
20
+ createAgent: {
21
+ method: "POST",
22
+ path: "/v1/agents",
23
+ access: "KeyOrSession",
24
+ scope: "write",
25
+ idempotent: true,
26
+ list: null,
27
+ body: "json",
28
+ status: 201,
29
+ requestMoney: [],
30
+ responseMoney: [],
31
+ },
32
+ createApiKey: {
33
+ method: "POST",
34
+ path: "/v1/api-keys",
35
+ access: "SessionOnly",
36
+ scope: null,
37
+ idempotent: false,
38
+ list: null,
39
+ body: "json",
40
+ status: 201,
41
+ requestMoney: [],
42
+ responseMoney: [],
43
+ },
44
+ createCalculation: {
45
+ method: "POST",
46
+ path: "/v1/clients/{id}/calculations",
47
+ access: "KeyOrSession",
48
+ scope: "write",
49
+ idempotent: true,
50
+ list: null,
51
+ body: "json",
52
+ status: 201,
53
+ requestMoney: [],
54
+ responseMoney: [
55
+ ["cost_total"],
56
+ ["snapshot", "cost", "agent_lines", "*", "manual"],
57
+ ["snapshot", "cost", "agent_lines", "*", "pass_through"],
58
+ ["snapshot", "cost", "agent_lines", "*", "token_valued"],
59
+ ["snapshot", "cost", "agent_lines", "*", "total"],
60
+ [
61
+ "snapshot",
62
+ "cost",
63
+ "coverage",
64
+ "partially_covered_line_items",
65
+ "*",
66
+ "monthly_amount",
67
+ ],
68
+ [
69
+ "snapshot",
70
+ "cost",
71
+ "coverage",
72
+ "partially_covered_line_items",
73
+ "*",
74
+ "total",
75
+ ],
76
+ ["snapshot", "cost", "manual"],
77
+ ["snapshot", "cost", "manual_lines", "*", "monthly_amount"],
78
+ ["snapshot", "cost", "manual_lines", "*", "total"],
79
+ ["snapshot", "cost", "pass_through"],
80
+ ["snapshot", "cost", "token_lines", "*", "in_rate"],
81
+ ["snapshot", "cost", "token_lines", "*", "out_rate"],
82
+ ["snapshot", "cost", "token_lines", "*", "total"],
83
+ ["snapshot", "cost", "token_valued"],
84
+ ["snapshot", "cost", "total"],
85
+ ["snapshot", "value", "lines", "*", "total"],
86
+ ["snapshot", "value", "lines", "*", "unit_value"],
87
+ ["snapshot", "value", "total"],
88
+ ["value_total"],
89
+ ],
90
+ },
91
+ createClient: {
92
+ method: "POST",
93
+ path: "/v1/clients",
94
+ access: "KeyOrSession",
95
+ scope: "write",
96
+ idempotent: true,
97
+ list: null,
98
+ body: "json",
99
+ status: 201,
100
+ requestMoney: [],
101
+ responseMoney: [],
102
+ },
103
+ createCostLineItem: {
104
+ method: "POST",
105
+ path: "/v1/cost-line-items",
106
+ access: "KeyOrSession",
107
+ scope: "write",
108
+ idempotent: true,
109
+ list: null,
110
+ body: "json",
111
+ status: 201,
112
+ requestMoney: [["monthly_amount"]],
113
+ responseMoney: [["monthly_amount"]],
114
+ },
115
+ createReport: {
116
+ method: "POST",
117
+ path: "/v1/calculations/{id}/reports",
118
+ access: "KeyOrSession",
119
+ scope: "write",
120
+ idempotent: true,
121
+ list: null,
122
+ body: "none",
123
+ status: 201,
124
+ requestMoney: [],
125
+ responseMoney: [],
126
+ },
127
+ createValueModel: {
128
+ method: "POST",
129
+ path: "/v1/clients/{id}/value-model",
130
+ access: "KeyOrSession",
131
+ scope: "write",
132
+ idempotent: true,
133
+ list: null,
134
+ body: "json",
135
+ status: 201,
136
+ requestMoney: [],
137
+ responseMoney: [["line_items", "*", "unit_value"]],
138
+ },
139
+ deleteAgent: {
140
+ method: "DELETE",
141
+ path: "/v1/agents/{id}",
142
+ access: "KeyOrSession",
143
+ scope: "write",
144
+ idempotent: false,
145
+ list: null,
146
+ body: "none",
147
+ status: 204,
148
+ requestMoney: [],
149
+ responseMoney: [],
150
+ },
151
+ deleteCalculation: {
152
+ method: "DELETE",
153
+ path: "/v1/calculations/{id}",
154
+ access: "KeyOrSession",
155
+ scope: "write",
156
+ idempotent: false,
157
+ list: null,
158
+ body: "none",
159
+ status: 204,
160
+ requestMoney: [],
161
+ responseMoney: [],
162
+ },
163
+ deleteClient: {
164
+ method: "DELETE",
165
+ path: "/v1/clients/{id}",
166
+ access: "KeyOrSession",
167
+ scope: "write",
168
+ idempotent: false,
169
+ list: null,
170
+ body: "none",
171
+ status: 204,
172
+ requestMoney: [],
173
+ responseMoney: [],
174
+ },
175
+ deleteCostLineItem: {
176
+ method: "DELETE",
177
+ path: "/v1/cost-line-items/{id}",
178
+ access: "KeyOrSession",
179
+ scope: "write",
180
+ idempotent: false,
181
+ list: null,
182
+ body: "none",
183
+ status: 204,
184
+ requestMoney: [],
185
+ responseMoney: [],
186
+ },
187
+ deleteReport: {
188
+ method: "DELETE",
189
+ path: "/v1/reports/{id}",
190
+ access: "KeyOrSession",
191
+ scope: "write",
192
+ idempotent: false,
193
+ list: null,
194
+ body: "none",
195
+ status: 204,
196
+ requestMoney: [],
197
+ responseMoney: [],
198
+ },
199
+ deleteValueModel: {
200
+ method: "DELETE",
201
+ path: "/v1/clients/{id}/value-model",
202
+ access: "KeyOrSession",
203
+ scope: "write",
204
+ idempotent: false,
205
+ list: null,
206
+ body: "none",
207
+ status: 204,
208
+ requestMoney: [],
209
+ responseMoney: [],
210
+ },
211
+ getAgent: {
212
+ method: "GET",
213
+ path: "/v1/agents/{id}",
214
+ access: "KeyOrSession",
215
+ scope: "read",
216
+ idempotent: false,
217
+ list: null,
218
+ body: "none",
219
+ status: 200,
220
+ requestMoney: [],
221
+ responseMoney: [["stats", "cost_total"]],
222
+ },
223
+ getApiKey: {
224
+ method: "GET",
225
+ path: "/v1/api-keys/{id}",
226
+ access: "SessionOnly",
227
+ scope: null,
228
+ idempotent: false,
229
+ list: null,
230
+ body: "none",
231
+ status: 200,
232
+ requestMoney: [],
233
+ responseMoney: [],
234
+ },
235
+ getCalculation: {
236
+ method: "GET",
237
+ path: "/v1/calculations/{id}",
238
+ access: "KeyOrSession",
239
+ scope: "read",
240
+ idempotent: false,
241
+ list: null,
242
+ body: "none",
243
+ status: 200,
244
+ requestMoney: [],
245
+ responseMoney: [
246
+ ["cost_total"],
247
+ ["snapshot", "cost", "agent_lines", "*", "manual"],
248
+ ["snapshot", "cost", "agent_lines", "*", "pass_through"],
249
+ ["snapshot", "cost", "agent_lines", "*", "token_valued"],
250
+ ["snapshot", "cost", "agent_lines", "*", "total"],
251
+ [
252
+ "snapshot",
253
+ "cost",
254
+ "coverage",
255
+ "partially_covered_line_items",
256
+ "*",
257
+ "monthly_amount",
258
+ ],
259
+ [
260
+ "snapshot",
261
+ "cost",
262
+ "coverage",
263
+ "partially_covered_line_items",
264
+ "*",
265
+ "total",
266
+ ],
267
+ ["snapshot", "cost", "manual"],
268
+ ["snapshot", "cost", "manual_lines", "*", "monthly_amount"],
269
+ ["snapshot", "cost", "manual_lines", "*", "total"],
270
+ ["snapshot", "cost", "pass_through"],
271
+ ["snapshot", "cost", "token_lines", "*", "in_rate"],
272
+ ["snapshot", "cost", "token_lines", "*", "out_rate"],
273
+ ["snapshot", "cost", "token_lines", "*", "total"],
274
+ ["snapshot", "cost", "token_valued"],
275
+ ["snapshot", "cost", "total"],
276
+ ["snapshot", "value", "lines", "*", "total"],
277
+ ["snapshot", "value", "lines", "*", "unit_value"],
278
+ ["snapshot", "value", "total"],
279
+ ["value_total"],
280
+ ],
281
+ },
282
+ getClient: {
283
+ method: "GET",
284
+ path: "/v1/clients/{id}",
285
+ access: "KeyOrSession",
286
+ scope: "read",
287
+ idempotent: false,
288
+ list: null,
289
+ body: "none",
290
+ status: 200,
291
+ requestMoney: [],
292
+ responseMoney: [],
293
+ },
294
+ getClientAnomalies: {
295
+ method: "GET",
296
+ path: "/v1/clients/{id}/anomalies",
297
+ access: "KeyOrSession",
298
+ scope: "read",
299
+ idempotent: false,
300
+ list: null,
301
+ body: "none",
302
+ status: 200,
303
+ requestMoney: [],
304
+ responseMoney: [
305
+ ["cost_spikes", "*", "baseline"],
306
+ ["cost_spikes", "*", "cost"],
307
+ ],
308
+ },
309
+ getClientCost: {
310
+ method: "GET",
311
+ path: "/v1/clients/{id}/cost",
312
+ access: "KeyOrSession",
313
+ scope: "read",
314
+ idempotent: false,
315
+ list: null,
316
+ body: "none",
317
+ status: 200,
318
+ requestMoney: [],
319
+ responseMoney: [
320
+ ["agent_lines", "*", "manual"],
321
+ ["agent_lines", "*", "pass_through"],
322
+ ["agent_lines", "*", "token_valued"],
323
+ ["agent_lines", "*", "total"],
324
+ ["coverage", "partially_covered_line_items", "*", "monthly_amount"],
325
+ ["coverage", "partially_covered_line_items", "*", "total"],
326
+ ["manual"],
327
+ ["manual_lines", "*", "monthly_amount"],
328
+ ["manual_lines", "*", "total"],
329
+ ["pass_through"],
330
+ ["token_lines", "*", "in_rate"],
331
+ ["token_lines", "*", "out_rate"],
332
+ ["token_lines", "*", "total"],
333
+ ["token_valued"],
334
+ ["total"],
335
+ ],
336
+ },
337
+ getClientRoi: {
338
+ method: "GET",
339
+ path: "/v1/clients/{id}/roi",
340
+ access: "KeyOrSession",
341
+ scope: "read",
342
+ idempotent: false,
343
+ list: null,
344
+ body: "none",
345
+ status: 200,
346
+ requestMoney: [],
347
+ responseMoney: [
348
+ ["cost", "agent_lines", "*", "manual"],
349
+ ["cost", "agent_lines", "*", "pass_through"],
350
+ ["cost", "agent_lines", "*", "token_valued"],
351
+ ["cost", "agent_lines", "*", "total"],
352
+ [
353
+ "cost",
354
+ "coverage",
355
+ "partially_covered_line_items",
356
+ "*",
357
+ "monthly_amount",
358
+ ],
359
+ ["cost", "coverage", "partially_covered_line_items", "*", "total"],
360
+ ["cost", "manual"],
361
+ ["cost", "manual_lines", "*", "monthly_amount"],
362
+ ["cost", "manual_lines", "*", "total"],
363
+ ["cost", "pass_through"],
364
+ ["cost", "token_lines", "*", "in_rate"],
365
+ ["cost", "token_lines", "*", "out_rate"],
366
+ ["cost", "token_lines", "*", "total"],
367
+ ["cost", "token_valued"],
368
+ ["cost", "total"],
369
+ ["value", "lines", "*", "total"],
370
+ ["value", "lines", "*", "unit_value"],
371
+ ["value", "total"],
372
+ ],
373
+ },
374
+ getClientValue: {
375
+ method: "GET",
376
+ path: "/v1/clients/{id}/value",
377
+ access: "KeyOrSession",
378
+ scope: "read",
379
+ idempotent: false,
380
+ list: null,
381
+ body: "none",
382
+ status: 200,
383
+ requestMoney: [],
384
+ responseMoney: [
385
+ ["lines", "*", "total"],
386
+ ["lines", "*", "unit_value"],
387
+ ["total"],
388
+ ],
389
+ },
390
+ getClientValueModel: {
391
+ method: "GET",
392
+ path: "/v1/clients/{id}/value-model",
393
+ access: "KeyOrSession",
394
+ scope: "read",
395
+ idempotent: false,
396
+ list: null,
397
+ body: "none",
398
+ status: 200,
399
+ requestMoney: [],
400
+ responseMoney: [["line_items", "*", "unit_value"]],
401
+ },
402
+ getCostLineItem: {
403
+ method: "GET",
404
+ path: "/v1/cost-line-items/{id}",
405
+ access: "KeyOrSession",
406
+ scope: "read",
407
+ idempotent: false,
408
+ list: null,
409
+ body: "none",
410
+ status: 200,
411
+ requestMoney: [],
412
+ responseMoney: [["monthly_amount"]],
413
+ },
414
+ getDashboard: {
415
+ method: "GET",
416
+ path: "/v1/dashboard",
417
+ access: "KeyOrSession",
418
+ scope: "read",
419
+ idempotent: false,
420
+ list: null,
421
+ body: "none",
422
+ status: 200,
423
+ requestMoney: [],
424
+ responseMoney: [
425
+ ["agent_costs", "*", "manual"],
426
+ ["agent_costs", "*", "pass_through"],
427
+ ["agent_costs", "*", "token_valued"],
428
+ ["agent_costs", "*", "total"],
429
+ ["clients", "*", "cost_total"],
430
+ ["clients", "*", "value_total"],
431
+ ["cost_components", "manual"],
432
+ ["cost_components", "pass_through"],
433
+ ["cost_components", "token_valued"],
434
+ ["cost_total"],
435
+ ["top_clients", "*", "cost_total"],
436
+ ["top_clients", "*", "value_total"],
437
+ ["unallocated_charges", "*", "total"],
438
+ ["value_by_outcome", "*", "total"],
439
+ ["value_by_outcome_omitted_total"],
440
+ ["value_total"],
441
+ ],
442
+ },
443
+ getHealth: {
444
+ method: "GET",
445
+ path: "/healthz",
446
+ access: "Public",
447
+ scope: null,
448
+ idempotent: false,
449
+ list: null,
450
+ body: "none",
451
+ status: 200,
452
+ requestMoney: [],
453
+ responseMoney: [],
454
+ },
455
+ getPriceTable: {
456
+ method: "GET",
457
+ path: "/v1/price-table",
458
+ access: "KeyOrSession",
459
+ scope: "read",
460
+ idempotent: false,
461
+ list: null,
462
+ body: "none",
463
+ status: 200,
464
+ requestMoney: [],
465
+ responseMoney: [
466
+ ["models", "*", "input_per_1k"],
467
+ ["models", "*", "output_per_1k"],
468
+ ],
469
+ },
470
+ getReport: {
471
+ method: "GET",
472
+ path: "/v1/reports/{id}",
473
+ access: "KeyOrSession",
474
+ scope: "read",
475
+ idempotent: false,
476
+ list: null,
477
+ body: "none",
478
+ status: 200,
479
+ requestMoney: [],
480
+ responseMoney: [
481
+ ["preview", "compared_to", "cost_total"],
482
+ ["preview", "compared_to", "value_total"],
483
+ ["preview", "snapshot", "cost", "manual"],
484
+ ["preview", "snapshot", "cost", "pass_through"],
485
+ ["preview", "snapshot", "cost", "token_valued"],
486
+ ["preview", "snapshot", "cost", "total"],
487
+ ["preview", "snapshot", "value", "lines", "*", "total"],
488
+ ["preview", "snapshot", "value", "lines", "*", "unit_value"],
489
+ ["preview", "snapshot", "value", "total"],
490
+ ],
491
+ },
492
+ getSharedReport: {
493
+ method: "GET",
494
+ path: "/report",
495
+ access: "ShareToken",
496
+ scope: null,
497
+ idempotent: false,
498
+ list: null,
499
+ body: "none",
500
+ status: 200,
501
+ requestMoney: [],
502
+ responseMoney: [
503
+ ["compared_to", "cost_total"],
504
+ ["compared_to", "value_total"],
505
+ ["snapshot", "cost", "manual"],
506
+ ["snapshot", "cost", "pass_through"],
507
+ ["snapshot", "cost", "token_valued"],
508
+ ["snapshot", "cost", "total"],
509
+ ["snapshot", "value", "lines", "*", "total"],
510
+ ["snapshot", "value", "lines", "*", "unit_value"],
511
+ ["snapshot", "value", "total"],
512
+ ],
513
+ },
514
+ getValueModel: {
515
+ method: "GET",
516
+ path: "/v1/value-models/{id}",
517
+ access: "KeyOrSession",
518
+ scope: "read",
519
+ idempotent: false,
520
+ list: null,
521
+ body: "none",
522
+ status: 200,
523
+ requestMoney: [],
524
+ responseMoney: [["line_items", "*", "unit_value"]],
525
+ },
526
+ ingestEvents: {
527
+ method: "POST",
528
+ path: "/v1/events",
529
+ access: "KeyOnly",
530
+ scope: "ingest",
531
+ idempotent: false,
532
+ list: null,
533
+ body: "json",
534
+ status: 200,
535
+ requestMoney: [["events", "*", "cost"]],
536
+ responseMoney: [],
537
+ },
538
+ listAgents: {
539
+ method: "GET",
540
+ path: "/v1/agents",
541
+ access: "KeyOrSession",
542
+ scope: "read",
543
+ idempotent: false,
544
+ list: "keyset",
545
+ body: "none",
546
+ status: 200,
547
+ requestMoney: [],
548
+ responseMoney: [],
549
+ },
550
+ listApiKeys: {
551
+ method: "GET",
552
+ path: "/v1/api-keys",
553
+ access: "SessionOnly",
554
+ scope: null,
555
+ idempotent: false,
556
+ list: "keyset",
557
+ body: "none",
558
+ status: 200,
559
+ requestMoney: [],
560
+ responseMoney: [],
561
+ },
562
+ listCalculationReports: {
563
+ method: "GET",
564
+ path: "/v1/calculations/{id}/reports",
565
+ access: "KeyOrSession",
566
+ scope: "read",
567
+ idempotent: false,
568
+ list: "keyset",
569
+ body: "none",
570
+ status: 200,
571
+ requestMoney: [],
572
+ responseMoney: [],
573
+ },
574
+ listClientCalculations: {
575
+ method: "GET",
576
+ path: "/v1/clients/{id}/calculations",
577
+ access: "KeyOrSession",
578
+ scope: "read",
579
+ idempotent: false,
580
+ list: "keyset",
581
+ body: "none",
582
+ status: 200,
583
+ requestMoney: [],
584
+ responseMoney: [
585
+ ["data", "*", "cost_total"],
586
+ ["data", "*", "value_total"],
587
+ ],
588
+ },
589
+ listClientEvents: {
590
+ method: "GET",
591
+ path: "/v1/clients/{id}/events",
592
+ access: "KeyOrSession",
593
+ scope: "read",
594
+ idempotent: false,
595
+ list: "offset",
596
+ body: "none",
597
+ status: 200,
598
+ requestMoney: [],
599
+ responseMoney: [["data", "*", "cost"]],
600
+ },
601
+ listClientOutcomeTypes: {
602
+ method: "GET",
603
+ path: "/v1/clients/{id}/outcome-types",
604
+ access: "KeyOrSession",
605
+ scope: "read",
606
+ idempotent: false,
607
+ list: "offset",
608
+ body: "none",
609
+ status: 200,
610
+ requestMoney: [],
611
+ responseMoney: [],
612
+ },
613
+ listClients: {
614
+ method: "GET",
615
+ path: "/v1/clients",
616
+ access: "KeyOrSession",
617
+ scope: "read",
618
+ idempotent: false,
619
+ list: "keyset",
620
+ body: "none",
621
+ status: 200,
622
+ requestMoney: [],
623
+ responseMoney: [],
624
+ },
625
+ listCostLineItems: {
626
+ method: "GET",
627
+ path: "/v1/cost-line-items",
628
+ access: "KeyOrSession",
629
+ scope: "read",
630
+ idempotent: false,
631
+ list: "keyset",
632
+ body: "none",
633
+ status: 200,
634
+ requestMoney: [],
635
+ responseMoney: [["data", "*", "monthly_amount"]],
636
+ },
637
+ listOutcomeTypes: {
638
+ method: "GET",
639
+ path: "/v1/outcome-types",
640
+ access: "KeyOrSession",
641
+ scope: "read",
642
+ idempotent: false,
643
+ list: "offset",
644
+ body: "none",
645
+ status: 200,
646
+ requestMoney: [],
647
+ responseMoney: [],
648
+ },
649
+ listRenewals: {
650
+ method: "GET",
651
+ path: "/v1/dashboard/renewals",
652
+ access: "KeyOrSession",
653
+ scope: "read",
654
+ idempotent: false,
655
+ list: "offset",
656
+ body: "none",
657
+ status: 200,
658
+ requestMoney: [],
659
+ responseMoney: [],
660
+ },
661
+ listValueModels: {
662
+ method: "GET",
663
+ path: "/v1/value-models",
664
+ access: "KeyOrSession",
665
+ scope: "read",
666
+ idempotent: false,
667
+ list: "keyset",
668
+ body: "none",
669
+ status: 200,
670
+ requestMoney: [],
671
+ responseMoney: [],
672
+ },
673
+ listValueTemplates: {
674
+ method: "GET",
675
+ path: "/v1/value-templates",
676
+ access: "KeyOrSession",
677
+ scope: "read",
678
+ idempotent: false,
679
+ list: "offset",
680
+ body: "none",
681
+ status: 200,
682
+ requestMoney: [],
683
+ responseMoney: [["data", "*", "line_items", "*", "unit_value"]],
684
+ },
685
+ previewImport: {
686
+ method: "POST",
687
+ path: "/v1/imports/preview",
688
+ access: "KeyOrSession",
689
+ scope: "ingest",
690
+ idempotent: false,
691
+ list: null,
692
+ body: "multipart",
693
+ status: 200,
694
+ requestMoney: [],
695
+ responseMoney: [["preview", "*", "event", "cost"]],
696
+ },
697
+ publishCalculation: {
698
+ method: "POST",
699
+ path: "/v1/calculations/{id}/publish",
700
+ access: "SessionOnly",
701
+ scope: null,
702
+ idempotent: false,
703
+ list: null,
704
+ body: "none",
705
+ status: 200,
706
+ requestMoney: [],
707
+ responseMoney: [
708
+ ["cost_total"],
709
+ ["snapshot", "cost", "agent_lines", "*", "manual"],
710
+ ["snapshot", "cost", "agent_lines", "*", "pass_through"],
711
+ ["snapshot", "cost", "agent_lines", "*", "token_valued"],
712
+ ["snapshot", "cost", "agent_lines", "*", "total"],
713
+ [
714
+ "snapshot",
715
+ "cost",
716
+ "coverage",
717
+ "partially_covered_line_items",
718
+ "*",
719
+ "monthly_amount",
720
+ ],
721
+ [
722
+ "snapshot",
723
+ "cost",
724
+ "coverage",
725
+ "partially_covered_line_items",
726
+ "*",
727
+ "total",
728
+ ],
729
+ ["snapshot", "cost", "manual"],
730
+ ["snapshot", "cost", "manual_lines", "*", "monthly_amount"],
731
+ ["snapshot", "cost", "manual_lines", "*", "total"],
732
+ ["snapshot", "cost", "pass_through"],
733
+ ["snapshot", "cost", "token_lines", "*", "in_rate"],
734
+ ["snapshot", "cost", "token_lines", "*", "out_rate"],
735
+ ["snapshot", "cost", "token_lines", "*", "total"],
736
+ ["snapshot", "cost", "token_valued"],
737
+ ["snapshot", "cost", "total"],
738
+ ["snapshot", "value", "lines", "*", "total"],
739
+ ["snapshot", "value", "lines", "*", "unit_value"],
740
+ ["snapshot", "value", "total"],
741
+ ["value_total"],
742
+ ],
743
+ },
744
+ reopenCalculation: {
745
+ method: "POST",
746
+ path: "/v1/calculations/{id}/reopen",
747
+ access: "SessionOnly",
748
+ scope: null,
749
+ idempotent: false,
750
+ list: null,
751
+ body: "none",
752
+ status: 200,
753
+ requestMoney: [],
754
+ responseMoney: [
755
+ ["cost_total"],
756
+ ["snapshot", "cost", "agent_lines", "*", "manual"],
757
+ ["snapshot", "cost", "agent_lines", "*", "pass_through"],
758
+ ["snapshot", "cost", "agent_lines", "*", "token_valued"],
759
+ ["snapshot", "cost", "agent_lines", "*", "total"],
760
+ [
761
+ "snapshot",
762
+ "cost",
763
+ "coverage",
764
+ "partially_covered_line_items",
765
+ "*",
766
+ "monthly_amount",
767
+ ],
768
+ [
769
+ "snapshot",
770
+ "cost",
771
+ "coverage",
772
+ "partially_covered_line_items",
773
+ "*",
774
+ "total",
775
+ ],
776
+ ["snapshot", "cost", "manual"],
777
+ ["snapshot", "cost", "manual_lines", "*", "monthly_amount"],
778
+ ["snapshot", "cost", "manual_lines", "*", "total"],
779
+ ["snapshot", "cost", "pass_through"],
780
+ ["snapshot", "cost", "token_lines", "*", "in_rate"],
781
+ ["snapshot", "cost", "token_lines", "*", "out_rate"],
782
+ ["snapshot", "cost", "token_lines", "*", "total"],
783
+ ["snapshot", "cost", "token_valued"],
784
+ ["snapshot", "cost", "total"],
785
+ ["snapshot", "value", "lines", "*", "total"],
786
+ ["snapshot", "value", "lines", "*", "unit_value"],
787
+ ["snapshot", "value", "total"],
788
+ ["value_total"],
789
+ ],
790
+ },
791
+ revokeApiKey: {
792
+ method: "POST",
793
+ path: "/v1/api-keys/{id}/revoke",
794
+ access: "SessionOnly",
795
+ scope: null,
796
+ idempotent: false,
797
+ list: null,
798
+ body: "none",
799
+ status: 200,
800
+ requestMoney: [],
801
+ responseMoney: [],
802
+ },
803
+ revokeReport: {
804
+ method: "POST",
805
+ path: "/v1/reports/{id}/revoke",
806
+ access: "SessionOnly",
807
+ scope: null,
808
+ idempotent: false,
809
+ list: null,
810
+ body: "none",
811
+ status: 200,
812
+ requestMoney: [],
813
+ responseMoney: [],
814
+ },
815
+ setClientAgents: {
816
+ method: "PUT",
817
+ path: "/v1/clients/{id}/agents",
818
+ access: "KeyOrSession",
819
+ scope: "write",
820
+ idempotent: false,
821
+ list: null,
822
+ body: "json",
823
+ status: 200,
824
+ requestMoney: [],
825
+ responseMoney: [],
826
+ },
827
+ setPriceTable: {
828
+ method: "PUT",
829
+ path: "/v1/price-table",
830
+ access: "KeyOrSession",
831
+ scope: "write",
832
+ idempotent: false,
833
+ list: null,
834
+ body: "json",
835
+ status: 200,
836
+ requestMoney: [
837
+ ["models", "*", "input_per_1k"],
838
+ ["models", "*", "output_per_1k"],
839
+ ],
840
+ responseMoney: [
841
+ ["models", "*", "input_per_1k"],
842
+ ["models", "*", "output_per_1k"],
843
+ ],
844
+ },
845
+ setValueModelLineItems: {
846
+ method: "PUT",
847
+ path: "/v1/clients/{id}/value-model/line-items",
848
+ access: "KeyOrSession",
849
+ scope: "write",
850
+ idempotent: false,
851
+ list: null,
852
+ body: "json",
853
+ status: 200,
854
+ requestMoney: [["line_items", "*", "unit_value"]],
855
+ responseMoney: [["line_items", "*", "unit_value"]],
856
+ },
857
+ shareReport: {
858
+ method: "POST",
859
+ path: "/v1/reports/{id}/share",
860
+ access: "SessionOnly",
861
+ scope: null,
862
+ idempotent: false,
863
+ list: null,
864
+ body: "none",
865
+ status: 200,
866
+ requestMoney: [],
867
+ responseMoney: [],
868
+ },
869
+ updateAgent: {
870
+ method: "PATCH",
871
+ path: "/v1/agents/{id}",
872
+ access: "KeyOrSession",
873
+ scope: "write",
874
+ idempotent: false,
875
+ list: null,
876
+ body: "merge-patch",
877
+ status: 200,
878
+ requestMoney: [],
879
+ responseMoney: [],
880
+ },
881
+ updateClient: {
882
+ method: "PATCH",
883
+ path: "/v1/clients/{id}",
884
+ access: "KeyOrSession",
885
+ scope: "write",
886
+ idempotent: false,
887
+ list: null,
888
+ body: "merge-patch",
889
+ status: 200,
890
+ requestMoney: [],
891
+ responseMoney: [],
892
+ },
893
+ updateCostLineItem: {
894
+ method: "PATCH",
895
+ path: "/v1/cost-line-items/{id}",
896
+ access: "KeyOrSession",
897
+ scope: "write",
898
+ idempotent: false,
899
+ list: null,
900
+ body: "merge-patch",
901
+ status: 200,
902
+ requestMoney: [["monthly_amount"]],
903
+ responseMoney: [["monthly_amount"]],
904
+ },
905
+ updateReport: {
906
+ method: "PATCH",
907
+ path: "/v1/reports/{id}",
908
+ access: "KeyOrSession",
909
+ scope: "write",
910
+ idempotent: false,
911
+ list: null,
912
+ body: "merge-patch",
913
+ status: 200,
914
+ requestMoney: [],
915
+ responseMoney: [],
916
+ },
917
+ updateValueModel: {
918
+ method: "PATCH",
919
+ path: "/v1/clients/{id}/value-model",
920
+ access: "KeyOrSession",
921
+ scope: "write",
922
+ idempotent: false,
923
+ list: null,
924
+ body: "merge-patch",
925
+ status: 200,
926
+ requestMoney: [],
927
+ responseMoney: [["line_items", "*", "unit_value"]],
928
+ },
929
+ validateCalculation: {
930
+ method: "POST",
931
+ path: "/v1/calculations/{id}/validate",
932
+ access: "SessionOnly",
933
+ scope: null,
934
+ idempotent: false,
935
+ list: null,
936
+ body: "json",
937
+ status: 200,
938
+ requestMoney: [],
939
+ responseMoney: [
940
+ ["cost_total"],
941
+ ["snapshot", "cost", "agent_lines", "*", "manual"],
942
+ ["snapshot", "cost", "agent_lines", "*", "pass_through"],
943
+ ["snapshot", "cost", "agent_lines", "*", "token_valued"],
944
+ ["snapshot", "cost", "agent_lines", "*", "total"],
945
+ [
946
+ "snapshot",
947
+ "cost",
948
+ "coverage",
949
+ "partially_covered_line_items",
950
+ "*",
951
+ "monthly_amount",
952
+ ],
953
+ [
954
+ "snapshot",
955
+ "cost",
956
+ "coverage",
957
+ "partially_covered_line_items",
958
+ "*",
959
+ "total",
960
+ ],
961
+ ["snapshot", "cost", "manual"],
962
+ ["snapshot", "cost", "manual_lines", "*", "monthly_amount"],
963
+ ["snapshot", "cost", "manual_lines", "*", "total"],
964
+ ["snapshot", "cost", "pass_through"],
965
+ ["snapshot", "cost", "token_lines", "*", "in_rate"],
966
+ ["snapshot", "cost", "token_lines", "*", "out_rate"],
967
+ ["snapshot", "cost", "token_lines", "*", "total"],
968
+ ["snapshot", "cost", "token_valued"],
969
+ ["snapshot", "cost", "total"],
970
+ ["snapshot", "value", "lines", "*", "total"],
971
+ ["snapshot", "value", "lines", "*", "unit_value"],
972
+ ["snapshot", "value", "total"],
973
+ ["value_total"],
974
+ ],
975
+ },
976
+ };