@zephytiju/juntai-typescript-sdk 1.1.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 (75) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +38 -0
  3. package/dist/clients/juntai.usage-cost/index.d.ts +5 -0
  4. package/dist/clients/juntai.usage-cost/index.js +4 -0
  5. package/dist/clients/platform.application-metadata/index.d.ts +5 -0
  6. package/dist/clients/platform.application-metadata/index.js +4 -0
  7. package/dist/generated/juntai.usage-cost/client/client.gen.d.ts +2 -0
  8. package/dist/generated/juntai.usage-cost/client/client.gen.js +216 -0
  9. package/dist/generated/juntai.usage-cost/client/index.d.ts +10 -0
  10. package/dist/generated/juntai.usage-cost/client/index.js +6 -0
  11. package/dist/generated/juntai.usage-cost/client/types.gen.d.ts +120 -0
  12. package/dist/generated/juntai.usage-cost/client/types.gen.js +2 -0
  13. package/dist/generated/juntai.usage-cost/client/utils.gen.d.ts +37 -0
  14. package/dist/generated/juntai.usage-cost/client/utils.gen.js +228 -0
  15. package/dist/generated/juntai.usage-cost/client.gen.d.ts +12 -0
  16. package/dist/generated/juntai.usage-cost/client.gen.js +3 -0
  17. package/dist/generated/juntai.usage-cost/core/auth.gen.d.ts +25 -0
  18. package/dist/generated/juntai.usage-cost/core/auth.gen.js +14 -0
  19. package/dist/generated/juntai.usage-cost/core/bodySerializer.gen.d.ts +25 -0
  20. package/dist/generated/juntai.usage-cost/core/bodySerializer.gen.js +57 -0
  21. package/dist/generated/juntai.usage-cost/core/params.gen.d.ts +43 -0
  22. package/dist/generated/juntai.usage-cost/core/params.gen.js +109 -0
  23. package/dist/generated/juntai.usage-cost/core/pathSerializer.gen.d.ts +33 -0
  24. package/dist/generated/juntai.usage-cost/core/pathSerializer.gen.js +106 -0
  25. package/dist/generated/juntai.usage-cost/core/queryKeySerializer.gen.d.ts +18 -0
  26. package/dist/generated/juntai.usage-cost/core/queryKeySerializer.gen.js +92 -0
  27. package/dist/generated/juntai.usage-cost/core/serverSentEvents.gen.d.ts +71 -0
  28. package/dist/generated/juntai.usage-cost/core/serverSentEvents.gen.js +132 -0
  29. package/dist/generated/juntai.usage-cost/core/types.gen.d.ts +83 -0
  30. package/dist/generated/juntai.usage-cost/core/types.gen.js +2 -0
  31. package/dist/generated/juntai.usage-cost/core/utils.gen.d.ts +19 -0
  32. package/dist/generated/juntai.usage-cost/core/utils.gen.js +87 -0
  33. package/dist/generated/juntai.usage-cost/index.d.ts +2 -0
  34. package/dist/generated/juntai.usage-cost/index.js +2 -0
  35. package/dist/generated/juntai.usage-cost/sdk.gen.d.ts +79 -0
  36. package/dist/generated/juntai.usage-cost/sdk.gen.js +162 -0
  37. package/dist/generated/juntai.usage-cost/types.gen.d.ts +1092 -0
  38. package/dist/generated/juntai.usage-cost/types.gen.js +2 -0
  39. package/dist/generated/platform.application-metadata/client/client.gen.d.ts +2 -0
  40. package/dist/generated/platform.application-metadata/client/client.gen.js +216 -0
  41. package/dist/generated/platform.application-metadata/client/index.d.ts +10 -0
  42. package/dist/generated/platform.application-metadata/client/index.js +6 -0
  43. package/dist/generated/platform.application-metadata/client/types.gen.d.ts +120 -0
  44. package/dist/generated/platform.application-metadata/client/types.gen.js +2 -0
  45. package/dist/generated/platform.application-metadata/client/utils.gen.d.ts +37 -0
  46. package/dist/generated/platform.application-metadata/client/utils.gen.js +228 -0
  47. package/dist/generated/platform.application-metadata/client.gen.d.ts +12 -0
  48. package/dist/generated/platform.application-metadata/client.gen.js +3 -0
  49. package/dist/generated/platform.application-metadata/core/auth.gen.d.ts +25 -0
  50. package/dist/generated/platform.application-metadata/core/auth.gen.js +14 -0
  51. package/dist/generated/platform.application-metadata/core/bodySerializer.gen.d.ts +25 -0
  52. package/dist/generated/platform.application-metadata/core/bodySerializer.gen.js +57 -0
  53. package/dist/generated/platform.application-metadata/core/params.gen.d.ts +43 -0
  54. package/dist/generated/platform.application-metadata/core/params.gen.js +109 -0
  55. package/dist/generated/platform.application-metadata/core/pathSerializer.gen.d.ts +33 -0
  56. package/dist/generated/platform.application-metadata/core/pathSerializer.gen.js +106 -0
  57. package/dist/generated/platform.application-metadata/core/queryKeySerializer.gen.d.ts +18 -0
  58. package/dist/generated/platform.application-metadata/core/queryKeySerializer.gen.js +92 -0
  59. package/dist/generated/platform.application-metadata/core/serverSentEvents.gen.d.ts +71 -0
  60. package/dist/generated/platform.application-metadata/core/serverSentEvents.gen.js +132 -0
  61. package/dist/generated/platform.application-metadata/core/types.gen.d.ts +83 -0
  62. package/dist/generated/platform.application-metadata/core/types.gen.js +2 -0
  63. package/dist/generated/platform.application-metadata/core/utils.gen.d.ts +19 -0
  64. package/dist/generated/platform.application-metadata/core/utils.gen.js +87 -0
  65. package/dist/generated/platform.application-metadata/index.d.ts +2 -0
  66. package/dist/generated/platform.application-metadata/index.js +2 -0
  67. package/dist/generated/platform.application-metadata/sdk.gen.d.ts +63 -0
  68. package/dist/generated/platform.application-metadata/sdk.gen.js +114 -0
  69. package/dist/generated/platform.application-metadata/types.gen.d.ts +1235 -0
  70. package/dist/generated/platform.application-metadata/types.gen.js +2 -0
  71. package/dist/index.d.ts +8 -0
  72. package/dist/index.js +8 -0
  73. package/dist/release-manifest.json +46 -0
  74. package/package.json +69 -0
  75. package/sources/openapi.lock.json +48 -0
@@ -0,0 +1,1092 @@
1
+ export type ClientOptions = {
2
+ baseUrl: `${string}://${string}/api/usage-cost/v1` | (string & {});
3
+ };
4
+ /**
5
+ * Envelope
6
+ */
7
+ export type Envelope = {
8
+ /**
9
+ * Correlationid
10
+ */
11
+ correlationId: string;
12
+ /**
13
+ * Data
14
+ */
15
+ data: unknown;
16
+ /**
17
+ * Meta
18
+ */
19
+ meta?: {
20
+ [key: string]: unknown;
21
+ } | null;
22
+ };
23
+ /**
24
+ * HTTPValidationError
25
+ */
26
+ export type HttpValidationError = {
27
+ /**
28
+ * Detail
29
+ */
30
+ detail?: Array<ValidationError>;
31
+ };
32
+ /**
33
+ * MeterCreate
34
+ */
35
+ export type MeterCreate = {
36
+ /**
37
+ * Meter
38
+ */
39
+ meter: string;
40
+ /**
41
+ * Requireddimensions
42
+ */
43
+ requiredDimensions?: Array<string>;
44
+ /**
45
+ * Units
46
+ */
47
+ units: Array<string>;
48
+ };
49
+ /**
50
+ * MeterPublish
51
+ */
52
+ export type MeterPublish = {
53
+ /**
54
+ * Revision
55
+ */
56
+ revision: number;
57
+ };
58
+ /**
59
+ * RateCardApprove
60
+ */
61
+ export type RateCardApprove = {
62
+ /**
63
+ * Expecteddigest
64
+ */
65
+ expectedDigest: string;
66
+ };
67
+ /**
68
+ * RateCardCreate
69
+ */
70
+ export type RateCardCreate = {
71
+ /**
72
+ * Content
73
+ */
74
+ content: {
75
+ [key: string]: unknown;
76
+ };
77
+ /**
78
+ * Name
79
+ */
80
+ name: string;
81
+ /**
82
+ * Ratecardid
83
+ */
84
+ rateCardId: string;
85
+ };
86
+ /**
87
+ * RateCardDraftReplace
88
+ */
89
+ export type RateCardDraftReplace = {
90
+ /**
91
+ * Content
92
+ */
93
+ content: {
94
+ [key: string]: unknown;
95
+ };
96
+ /**
97
+ * Expectedrevision
98
+ */
99
+ expectedRevision: number;
100
+ };
101
+ /**
102
+ * RateCardRevision
103
+ */
104
+ export type RateCardRevision = {
105
+ /**
106
+ * Revision
107
+ */
108
+ revision: number;
109
+ };
110
+ /**
111
+ * ReconciliationResolve
112
+ */
113
+ export type ReconciliationResolve = {
114
+ /**
115
+ * Resolution
116
+ */
117
+ resolution: {
118
+ [key: string]: unknown;
119
+ };
120
+ };
121
+ /**
122
+ * ValidationError
123
+ */
124
+ export type ValidationError = {
125
+ /**
126
+ * Location
127
+ */
128
+ loc: Array<string | number>;
129
+ /**
130
+ * Message
131
+ */
132
+ msg: string;
133
+ /**
134
+ * Error Type
135
+ */
136
+ type: string;
137
+ };
138
+ /**
139
+ * _HTTPErrorDetails
140
+ */
141
+ export type HttpErrorDetails = {
142
+ /**
143
+ * Issues
144
+ */
145
+ issues?: Array<HttpValidationIssue>;
146
+ /**
147
+ * Request Id
148
+ */
149
+ request_id: string;
150
+ /**
151
+ * Truncated
152
+ */
153
+ truncated?: boolean;
154
+ };
155
+ /**
156
+ * _HTTPErrorEnvelope
157
+ */
158
+ export type HttpErrorEnvelope = {
159
+ /**
160
+ * Code
161
+ */
162
+ code: string;
163
+ details: HttpErrorDetails;
164
+ /**
165
+ * Message
166
+ */
167
+ message: string;
168
+ };
169
+ /**
170
+ * _HTTPValidationIssue
171
+ *
172
+ * A bounded validation issue safe to return across the HTTP boundary.
173
+ */
174
+ export type HttpValidationIssue = {
175
+ /**
176
+ * Location
177
+ */
178
+ location: Array<string | number>;
179
+ /**
180
+ * Type
181
+ */
182
+ type: string;
183
+ };
184
+ export type ListCostsApiUsageCostV1CostsGetData = {
185
+ body?: never;
186
+ headers?: {
187
+ /**
188
+ * X-Correlation-Id
189
+ */
190
+ 'X-Correlation-ID'?: string | null;
191
+ };
192
+ path?: never;
193
+ query?: {
194
+ /**
195
+ * Calculated From
196
+ */
197
+ calculated_from?: string | null;
198
+ /**
199
+ * Calculated To
200
+ */
201
+ calculated_to?: string | null;
202
+ /**
203
+ * Application Id
204
+ */
205
+ application_id?: string | null;
206
+ /**
207
+ * Execution Id
208
+ */
209
+ execution_id?: string | null;
210
+ /**
211
+ * Currency
212
+ */
213
+ currency?: string | null;
214
+ /**
215
+ * Status
216
+ */
217
+ status?: string | null;
218
+ /**
219
+ * Page Size
220
+ */
221
+ page_size?: number;
222
+ /**
223
+ * Cursor
224
+ */
225
+ cursor?: string | null;
226
+ };
227
+ url: '/api/usage-cost/v1/costs';
228
+ };
229
+ export type ListCostsApiUsageCostV1CostsGetErrors = {
230
+ /**
231
+ * Request does not match the endpoint contract
232
+ */
233
+ 400: HttpErrorEnvelope;
234
+ /**
235
+ * Request is not authorized for the destination
236
+ */
237
+ 403: HttpErrorEnvelope;
238
+ /**
239
+ * Destination or entity was not found
240
+ */
241
+ 404: HttpErrorEnvelope;
242
+ /**
243
+ * Request authority has already been consumed
244
+ */
245
+ 409: HttpErrorEnvelope;
246
+ /**
247
+ * Request failed inside the framework boundary
248
+ */
249
+ 500: HttpErrorEnvelope;
250
+ /**
251
+ * HTTP adapter is not accepting requests
252
+ */
253
+ 503: HttpErrorEnvelope;
254
+ };
255
+ export type ListCostsApiUsageCostV1CostsGetError = ListCostsApiUsageCostV1CostsGetErrors[keyof ListCostsApiUsageCostV1CostsGetErrors];
256
+ export type ListCostsApiUsageCostV1CostsGetResponses = {
257
+ /**
258
+ * Successful Response
259
+ */
260
+ 200: Envelope;
261
+ };
262
+ export type ListCostsApiUsageCostV1CostsGetResponse = ListCostsApiUsageCostV1CostsGetResponses[keyof ListCostsApiUsageCostV1CostsGetResponses];
263
+ export type GetCostApiUsageCostV1CostsCalculationIdGetData = {
264
+ body?: never;
265
+ headers?: {
266
+ /**
267
+ * X-Correlation-Id
268
+ */
269
+ 'X-Correlation-ID'?: string | null;
270
+ };
271
+ path: {
272
+ /**
273
+ * Calculation Id
274
+ */
275
+ calculation_id: string;
276
+ };
277
+ query?: never;
278
+ url: '/api/usage-cost/v1/costs/{calculation_id}';
279
+ };
280
+ export type GetCostApiUsageCostV1CostsCalculationIdGetErrors = {
281
+ /**
282
+ * Request does not match the endpoint contract
283
+ */
284
+ 400: HttpErrorEnvelope;
285
+ /**
286
+ * Request is not authorized for the destination
287
+ */
288
+ 403: HttpErrorEnvelope;
289
+ /**
290
+ * Destination or entity was not found
291
+ */
292
+ 404: HttpErrorEnvelope;
293
+ /**
294
+ * Request authority has already been consumed
295
+ */
296
+ 409: HttpErrorEnvelope;
297
+ /**
298
+ * Request failed inside the framework boundary
299
+ */
300
+ 500: HttpErrorEnvelope;
301
+ /**
302
+ * HTTP adapter is not accepting requests
303
+ */
304
+ 503: HttpErrorEnvelope;
305
+ };
306
+ export type GetCostApiUsageCostV1CostsCalculationIdGetError = GetCostApiUsageCostV1CostsCalculationIdGetErrors[keyof GetCostApiUsageCostV1CostsCalculationIdGetErrors];
307
+ export type GetCostApiUsageCostV1CostsCalculationIdGetResponses = {
308
+ /**
309
+ * Successful Response
310
+ */
311
+ 200: Envelope;
312
+ };
313
+ export type GetCostApiUsageCostV1CostsCalculationIdGetResponse = GetCostApiUsageCostV1CostsCalculationIdGetResponses[keyof GetCostApiUsageCostV1CostsCalculationIdGetResponses];
314
+ export type ListMetersApiUsageCostV1MetersGetData = {
315
+ body?: never;
316
+ headers?: {
317
+ /**
318
+ * X-Correlation-Id
319
+ */
320
+ 'X-Correlation-ID'?: string | null;
321
+ };
322
+ path?: never;
323
+ query?: never;
324
+ url: '/api/usage-cost/v1/meters';
325
+ };
326
+ export type ListMetersApiUsageCostV1MetersGetErrors = {
327
+ /**
328
+ * Request does not match the endpoint contract
329
+ */
330
+ 400: HttpErrorEnvelope;
331
+ /**
332
+ * Request is not authorized for the destination
333
+ */
334
+ 403: HttpErrorEnvelope;
335
+ /**
336
+ * Destination or entity was not found
337
+ */
338
+ 404: HttpErrorEnvelope;
339
+ /**
340
+ * Request authority has already been consumed
341
+ */
342
+ 409: HttpErrorEnvelope;
343
+ /**
344
+ * Request failed inside the framework boundary
345
+ */
346
+ 500: HttpErrorEnvelope;
347
+ /**
348
+ * HTTP adapter is not accepting requests
349
+ */
350
+ 503: HttpErrorEnvelope;
351
+ };
352
+ export type ListMetersApiUsageCostV1MetersGetError = ListMetersApiUsageCostV1MetersGetErrors[keyof ListMetersApiUsageCostV1MetersGetErrors];
353
+ export type ListMetersApiUsageCostV1MetersGetResponses = {
354
+ /**
355
+ * Successful Response
356
+ */
357
+ 200: Envelope;
358
+ };
359
+ export type ListMetersApiUsageCostV1MetersGetResponse = ListMetersApiUsageCostV1MetersGetResponses[keyof ListMetersApiUsageCostV1MetersGetResponses];
360
+ export type CreateMeterApiUsageCostV1MetersPostData = {
361
+ body: MeterCreate;
362
+ headers: {
363
+ /**
364
+ * Idempotency-Key
365
+ */
366
+ 'Idempotency-Key': string;
367
+ /**
368
+ * X-Correlation-Id
369
+ */
370
+ 'X-Correlation-ID'?: string | null;
371
+ };
372
+ path?: never;
373
+ query?: never;
374
+ url: '/api/usage-cost/v1/meters';
375
+ };
376
+ export type CreateMeterApiUsageCostV1MetersPostErrors = {
377
+ /**
378
+ * Request does not match the endpoint contract
379
+ */
380
+ 400: HttpErrorEnvelope;
381
+ /**
382
+ * Request is not authorized for the destination
383
+ */
384
+ 403: HttpErrorEnvelope;
385
+ /**
386
+ * Destination or entity was not found
387
+ */
388
+ 404: HttpErrorEnvelope;
389
+ /**
390
+ * Request authority has already been consumed
391
+ */
392
+ 409: HttpErrorEnvelope;
393
+ /**
394
+ * Request failed inside the framework boundary
395
+ */
396
+ 500: HttpErrorEnvelope;
397
+ /**
398
+ * HTTP adapter is not accepting requests
399
+ */
400
+ 503: HttpErrorEnvelope;
401
+ };
402
+ export type CreateMeterApiUsageCostV1MetersPostError = CreateMeterApiUsageCostV1MetersPostErrors[keyof CreateMeterApiUsageCostV1MetersPostErrors];
403
+ export type CreateMeterApiUsageCostV1MetersPostResponses = {
404
+ /**
405
+ * Successful Response
406
+ */
407
+ 200: Envelope;
408
+ };
409
+ export type CreateMeterApiUsageCostV1MetersPostResponse = CreateMeterApiUsageCostV1MetersPostResponses[keyof CreateMeterApiUsageCostV1MetersPostResponses];
410
+ export type PublishMeterApiUsageCostV1MetersMeterPublishPostData = {
411
+ body: MeterPublish;
412
+ headers: {
413
+ /**
414
+ * Idempotency-Key
415
+ */
416
+ 'Idempotency-Key': string;
417
+ /**
418
+ * X-Correlation-Id
419
+ */
420
+ 'X-Correlation-ID'?: string | null;
421
+ };
422
+ path: {
423
+ /**
424
+ * Meter
425
+ */
426
+ meter: string;
427
+ };
428
+ query?: never;
429
+ url: '/api/usage-cost/v1/meters/{meter}/publish';
430
+ };
431
+ export type PublishMeterApiUsageCostV1MetersMeterPublishPostErrors = {
432
+ /**
433
+ * Request does not match the endpoint contract
434
+ */
435
+ 400: HttpErrorEnvelope;
436
+ /**
437
+ * Request is not authorized for the destination
438
+ */
439
+ 403: HttpErrorEnvelope;
440
+ /**
441
+ * Destination or entity was not found
442
+ */
443
+ 404: HttpErrorEnvelope;
444
+ /**
445
+ * Request authority has already been consumed
446
+ */
447
+ 409: HttpErrorEnvelope;
448
+ /**
449
+ * Request failed inside the framework boundary
450
+ */
451
+ 500: HttpErrorEnvelope;
452
+ /**
453
+ * HTTP adapter is not accepting requests
454
+ */
455
+ 503: HttpErrorEnvelope;
456
+ };
457
+ export type PublishMeterApiUsageCostV1MetersMeterPublishPostError = PublishMeterApiUsageCostV1MetersMeterPublishPostErrors[keyof PublishMeterApiUsageCostV1MetersMeterPublishPostErrors];
458
+ export type PublishMeterApiUsageCostV1MetersMeterPublishPostResponses = {
459
+ /**
460
+ * Successful Response
461
+ */
462
+ 200: Envelope;
463
+ };
464
+ export type PublishMeterApiUsageCostV1MetersMeterPublishPostResponse = PublishMeterApiUsageCostV1MetersMeterPublishPostResponses[keyof PublishMeterApiUsageCostV1MetersMeterPublishPostResponses];
465
+ export type CreateRateCardApiUsageCostV1RateCardsPostData = {
466
+ body: RateCardCreate;
467
+ headers: {
468
+ /**
469
+ * Idempotency-Key
470
+ */
471
+ 'Idempotency-Key': string;
472
+ /**
473
+ * X-Correlation-Id
474
+ */
475
+ 'X-Correlation-ID'?: string | null;
476
+ };
477
+ path?: never;
478
+ query?: never;
479
+ url: '/api/usage-cost/v1/rate-cards';
480
+ };
481
+ export type CreateRateCardApiUsageCostV1RateCardsPostErrors = {
482
+ /**
483
+ * Request does not match the endpoint contract
484
+ */
485
+ 400: HttpErrorEnvelope;
486
+ /**
487
+ * Request is not authorized for the destination
488
+ */
489
+ 403: HttpErrorEnvelope;
490
+ /**
491
+ * Destination or entity was not found
492
+ */
493
+ 404: HttpErrorEnvelope;
494
+ /**
495
+ * Request authority has already been consumed
496
+ */
497
+ 409: HttpErrorEnvelope;
498
+ /**
499
+ * Request failed inside the framework boundary
500
+ */
501
+ 500: HttpErrorEnvelope;
502
+ /**
503
+ * HTTP adapter is not accepting requests
504
+ */
505
+ 503: HttpErrorEnvelope;
506
+ };
507
+ export type CreateRateCardApiUsageCostV1RateCardsPostError = CreateRateCardApiUsageCostV1RateCardsPostErrors[keyof CreateRateCardApiUsageCostV1RateCardsPostErrors];
508
+ export type CreateRateCardApiUsageCostV1RateCardsPostResponses = {
509
+ /**
510
+ * Successful Response
511
+ */
512
+ 200: Envelope;
513
+ };
514
+ export type CreateRateCardApiUsageCostV1RateCardsPostResponse = CreateRateCardApiUsageCostV1RateCardsPostResponses[keyof CreateRateCardApiUsageCostV1RateCardsPostResponses];
515
+ export type ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostData = {
516
+ body: RateCardApprove;
517
+ headers: {
518
+ /**
519
+ * Idempotency-Key
520
+ */
521
+ 'Idempotency-Key': string;
522
+ /**
523
+ * X-Correlation-Id
524
+ */
525
+ 'X-Correlation-ID'?: string | null;
526
+ };
527
+ path: {
528
+ /**
529
+ * Rate Card Id
530
+ */
531
+ rate_card_id: string;
532
+ };
533
+ query?: never;
534
+ url: '/api/usage-cost/v1/rate-cards/{rate_card_id}/approve';
535
+ };
536
+ export type ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostErrors = {
537
+ /**
538
+ * Request does not match the endpoint contract
539
+ */
540
+ 400: HttpErrorEnvelope;
541
+ /**
542
+ * Request is not authorized for the destination
543
+ */
544
+ 403: HttpErrorEnvelope;
545
+ /**
546
+ * Destination or entity was not found
547
+ */
548
+ 404: HttpErrorEnvelope;
549
+ /**
550
+ * Request authority has already been consumed
551
+ */
552
+ 409: HttpErrorEnvelope;
553
+ /**
554
+ * Request failed inside the framework boundary
555
+ */
556
+ 500: HttpErrorEnvelope;
557
+ /**
558
+ * HTTP adapter is not accepting requests
559
+ */
560
+ 503: HttpErrorEnvelope;
561
+ };
562
+ export type ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostError = ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostErrors[keyof ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostErrors];
563
+ export type ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostResponses = {
564
+ /**
565
+ * Successful Response
566
+ */
567
+ 200: Envelope;
568
+ };
569
+ export type ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostResponse = ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostResponses[keyof ApproveRateCardApiUsageCostV1RateCardsRateCardIdApprovePostResponses];
570
+ export type ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutData = {
571
+ body: RateCardDraftReplace;
572
+ headers: {
573
+ /**
574
+ * Idempotency-Key
575
+ */
576
+ 'Idempotency-Key': string;
577
+ /**
578
+ * X-Correlation-Id
579
+ */
580
+ 'X-Correlation-ID'?: string | null;
581
+ };
582
+ path: {
583
+ /**
584
+ * Rate Card Id
585
+ */
586
+ rate_card_id: string;
587
+ };
588
+ query?: never;
589
+ url: '/api/usage-cost/v1/rate-cards/{rate_card_id}/draft';
590
+ };
591
+ export type ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutErrors = {
592
+ /**
593
+ * Request does not match the endpoint contract
594
+ */
595
+ 400: HttpErrorEnvelope;
596
+ /**
597
+ * Request is not authorized for the destination
598
+ */
599
+ 403: HttpErrorEnvelope;
600
+ /**
601
+ * Destination or entity was not found
602
+ */
603
+ 404: HttpErrorEnvelope;
604
+ /**
605
+ * Request authority has already been consumed
606
+ */
607
+ 409: HttpErrorEnvelope;
608
+ /**
609
+ * Request failed inside the framework boundary
610
+ */
611
+ 500: HttpErrorEnvelope;
612
+ /**
613
+ * HTTP adapter is not accepting requests
614
+ */
615
+ 503: HttpErrorEnvelope;
616
+ };
617
+ export type ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutError = ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutErrors[keyof ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutErrors];
618
+ export type ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutResponses = {
619
+ /**
620
+ * Successful Response
621
+ */
622
+ 200: Envelope;
623
+ };
624
+ export type ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutResponse = ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutResponses[keyof ReplaceRateCardDraftApiUsageCostV1RateCardsRateCardIdDraftPutResponses];
625
+ export type RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostData = {
626
+ body: RateCardRevision;
627
+ headers: {
628
+ /**
629
+ * Idempotency-Key
630
+ */
631
+ 'Idempotency-Key': string;
632
+ /**
633
+ * X-Correlation-Id
634
+ */
635
+ 'X-Correlation-ID'?: string | null;
636
+ };
637
+ path: {
638
+ /**
639
+ * Rate Card Id
640
+ */
641
+ rate_card_id: string;
642
+ };
643
+ query?: never;
644
+ url: '/api/usage-cost/v1/rate-cards/{rate_card_id}/retire';
645
+ };
646
+ export type RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostErrors = {
647
+ /**
648
+ * Request does not match the endpoint contract
649
+ */
650
+ 400: HttpErrorEnvelope;
651
+ /**
652
+ * Request is not authorized for the destination
653
+ */
654
+ 403: HttpErrorEnvelope;
655
+ /**
656
+ * Destination or entity was not found
657
+ */
658
+ 404: HttpErrorEnvelope;
659
+ /**
660
+ * Request authority has already been consumed
661
+ */
662
+ 409: HttpErrorEnvelope;
663
+ /**
664
+ * Request failed inside the framework boundary
665
+ */
666
+ 500: HttpErrorEnvelope;
667
+ /**
668
+ * HTTP adapter is not accepting requests
669
+ */
670
+ 503: HttpErrorEnvelope;
671
+ };
672
+ export type RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostError = RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostErrors[keyof RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostErrors];
673
+ export type RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostResponses = {
674
+ /**
675
+ * Successful Response
676
+ */
677
+ 200: Envelope;
678
+ };
679
+ export type RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostResponse = RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostResponses[keyof RetireRateCardApiUsageCostV1RateCardsRateCardIdRetirePostResponses];
680
+ export type ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostData = {
681
+ body: RateCardRevision;
682
+ headers: {
683
+ /**
684
+ * Idempotency-Key
685
+ */
686
+ 'Idempotency-Key': string;
687
+ /**
688
+ * X-Correlation-Id
689
+ */
690
+ 'X-Correlation-ID'?: string | null;
691
+ };
692
+ path: {
693
+ /**
694
+ * Rate Card Id
695
+ */
696
+ rate_card_id: string;
697
+ };
698
+ query?: never;
699
+ url: '/api/usage-cost/v1/rate-cards/{rate_card_id}/schedule';
700
+ };
701
+ export type ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostErrors = {
702
+ /**
703
+ * Request does not match the endpoint contract
704
+ */
705
+ 400: HttpErrorEnvelope;
706
+ /**
707
+ * Request is not authorized for the destination
708
+ */
709
+ 403: HttpErrorEnvelope;
710
+ /**
711
+ * Destination or entity was not found
712
+ */
713
+ 404: HttpErrorEnvelope;
714
+ /**
715
+ * Request authority has already been consumed
716
+ */
717
+ 409: HttpErrorEnvelope;
718
+ /**
719
+ * Request failed inside the framework boundary
720
+ */
721
+ 500: HttpErrorEnvelope;
722
+ /**
723
+ * HTTP adapter is not accepting requests
724
+ */
725
+ 503: HttpErrorEnvelope;
726
+ };
727
+ export type ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostError = ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostErrors[keyof ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostErrors];
728
+ export type ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostResponses = {
729
+ /**
730
+ * Successful Response
731
+ */
732
+ 200: Envelope;
733
+ };
734
+ export type ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostResponse = ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostResponses[keyof ScheduleRateCardApiUsageCostV1RateCardsRateCardIdSchedulePostResponses];
735
+ export type ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostData = {
736
+ body?: never;
737
+ headers: {
738
+ /**
739
+ * Idempotency-Key
740
+ */
741
+ 'Idempotency-Key': string;
742
+ /**
743
+ * X-Correlation-Id
744
+ */
745
+ 'X-Correlation-ID'?: string | null;
746
+ };
747
+ path: {
748
+ /**
749
+ * Rate Card Id
750
+ */
751
+ rate_card_id: string;
752
+ };
753
+ query?: never;
754
+ url: '/api/usage-cost/v1/rate-cards/{rate_card_id}/validate';
755
+ };
756
+ export type ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostErrors = {
757
+ /**
758
+ * Request does not match the endpoint contract
759
+ */
760
+ 400: HttpErrorEnvelope;
761
+ /**
762
+ * Request is not authorized for the destination
763
+ */
764
+ 403: HttpErrorEnvelope;
765
+ /**
766
+ * Destination or entity was not found
767
+ */
768
+ 404: HttpErrorEnvelope;
769
+ /**
770
+ * Request authority has already been consumed
771
+ */
772
+ 409: HttpErrorEnvelope;
773
+ /**
774
+ * Request failed inside the framework boundary
775
+ */
776
+ 500: HttpErrorEnvelope;
777
+ /**
778
+ * HTTP adapter is not accepting requests
779
+ */
780
+ 503: HttpErrorEnvelope;
781
+ };
782
+ export type ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostError = ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostErrors[keyof ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostErrors];
783
+ export type ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostResponses = {
784
+ /**
785
+ * Successful Response
786
+ */
787
+ 200: Envelope;
788
+ };
789
+ export type ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostResponse = ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostResponses[keyof ValidateRateCardApiUsageCostV1RateCardsRateCardIdValidatePostResponses];
790
+ export type ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetData = {
791
+ body?: never;
792
+ headers?: {
793
+ /**
794
+ * X-Correlation-Id
795
+ */
796
+ 'X-Correlation-ID'?: string | null;
797
+ };
798
+ path?: never;
799
+ query?: {
800
+ /**
801
+ * Status
802
+ */
803
+ status?: string;
804
+ /**
805
+ * Page Size
806
+ */
807
+ page_size?: number;
808
+ /**
809
+ * Cursor
810
+ */
811
+ cursor?: string | null;
812
+ };
813
+ url: '/api/usage-cost/v1/reconciliation/cases';
814
+ };
815
+ export type ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetErrors = {
816
+ /**
817
+ * Request does not match the endpoint contract
818
+ */
819
+ 400: HttpErrorEnvelope;
820
+ /**
821
+ * Request is not authorized for the destination
822
+ */
823
+ 403: HttpErrorEnvelope;
824
+ /**
825
+ * Destination or entity was not found
826
+ */
827
+ 404: HttpErrorEnvelope;
828
+ /**
829
+ * Request authority has already been consumed
830
+ */
831
+ 409: HttpErrorEnvelope;
832
+ /**
833
+ * Request failed inside the framework boundary
834
+ */
835
+ 500: HttpErrorEnvelope;
836
+ /**
837
+ * HTTP adapter is not accepting requests
838
+ */
839
+ 503: HttpErrorEnvelope;
840
+ };
841
+ export type ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetError = ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetErrors[keyof ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetErrors];
842
+ export type ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetResponses = {
843
+ /**
844
+ * Successful Response
845
+ */
846
+ 200: Envelope;
847
+ };
848
+ export type ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetResponse = ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetResponses[keyof ListReconciliationCasesApiUsageCostV1ReconciliationCasesGetResponses];
849
+ export type ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostData = {
850
+ body: ReconciliationResolve;
851
+ headers: {
852
+ /**
853
+ * Idempotency-Key
854
+ */
855
+ 'Idempotency-Key': string;
856
+ /**
857
+ * X-Correlation-Id
858
+ */
859
+ 'X-Correlation-ID'?: string | null;
860
+ };
861
+ path: {
862
+ /**
863
+ * Case Id
864
+ */
865
+ case_id: string;
866
+ };
867
+ query?: never;
868
+ url: '/api/usage-cost/v1/reconciliation/cases/{case_id}/resolve';
869
+ };
870
+ export type ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostErrors = {
871
+ /**
872
+ * Request does not match the endpoint contract
873
+ */
874
+ 400: HttpErrorEnvelope;
875
+ /**
876
+ * Request is not authorized for the destination
877
+ */
878
+ 403: HttpErrorEnvelope;
879
+ /**
880
+ * Destination or entity was not found
881
+ */
882
+ 404: HttpErrorEnvelope;
883
+ /**
884
+ * Request authority has already been consumed
885
+ */
886
+ 409: HttpErrorEnvelope;
887
+ /**
888
+ * Request failed inside the framework boundary
889
+ */
890
+ 500: HttpErrorEnvelope;
891
+ /**
892
+ * HTTP adapter is not accepting requests
893
+ */
894
+ 503: HttpErrorEnvelope;
895
+ };
896
+ export type ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostError = ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostErrors[keyof ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostErrors];
897
+ export type ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostResponses = {
898
+ /**
899
+ * Successful Response
900
+ */
901
+ 200: Envelope;
902
+ };
903
+ export type ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostResponse = ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostResponses[keyof ResolveReconciliationCaseApiUsageCostV1ReconciliationCasesCaseIdResolvePostResponses];
904
+ export type ListUsageEventsApiUsageCostV1UsageEventsGetData = {
905
+ body?: never;
906
+ headers?: {
907
+ /**
908
+ * X-Correlation-Id
909
+ */
910
+ 'X-Correlation-ID'?: string | null;
911
+ };
912
+ path?: never;
913
+ query?: {
914
+ /**
915
+ * Occurred From
916
+ */
917
+ occurred_from?: string | null;
918
+ /**
919
+ * Occurred To
920
+ */
921
+ occurred_to?: string | null;
922
+ /**
923
+ * Meter
924
+ */
925
+ meter?: string | null;
926
+ /**
927
+ * Application Id
928
+ */
929
+ application_id?: string | null;
930
+ /**
931
+ * Workflow Id
932
+ */
933
+ workflow_id?: string | null;
934
+ /**
935
+ * Execution Id
936
+ */
937
+ execution_id?: string | null;
938
+ /**
939
+ * Page Size
940
+ */
941
+ page_size?: number;
942
+ /**
943
+ * Cursor
944
+ */
945
+ cursor?: string | null;
946
+ };
947
+ url: '/api/usage-cost/v1/usage/events';
948
+ };
949
+ export type ListUsageEventsApiUsageCostV1UsageEventsGetErrors = {
950
+ /**
951
+ * Request does not match the endpoint contract
952
+ */
953
+ 400: HttpErrorEnvelope;
954
+ /**
955
+ * Request is not authorized for the destination
956
+ */
957
+ 403: HttpErrorEnvelope;
958
+ /**
959
+ * Destination or entity was not found
960
+ */
961
+ 404: HttpErrorEnvelope;
962
+ /**
963
+ * Request authority has already been consumed
964
+ */
965
+ 409: HttpErrorEnvelope;
966
+ /**
967
+ * Request failed inside the framework boundary
968
+ */
969
+ 500: HttpErrorEnvelope;
970
+ /**
971
+ * HTTP adapter is not accepting requests
972
+ */
973
+ 503: HttpErrorEnvelope;
974
+ };
975
+ export type ListUsageEventsApiUsageCostV1UsageEventsGetError = ListUsageEventsApiUsageCostV1UsageEventsGetErrors[keyof ListUsageEventsApiUsageCostV1UsageEventsGetErrors];
976
+ export type ListUsageEventsApiUsageCostV1UsageEventsGetResponses = {
977
+ /**
978
+ * Successful Response
979
+ */
980
+ 200: Envelope;
981
+ };
982
+ export type ListUsageEventsApiUsageCostV1UsageEventsGetResponse = ListUsageEventsApiUsageCostV1UsageEventsGetResponses[keyof ListUsageEventsApiUsageCostV1UsageEventsGetResponses];
983
+ export type GetUsageEventApiUsageCostV1UsageEventsEventIdGetData = {
984
+ body?: never;
985
+ headers?: {
986
+ /**
987
+ * X-Correlation-Id
988
+ */
989
+ 'X-Correlation-ID'?: string | null;
990
+ };
991
+ path: {
992
+ /**
993
+ * Event Id
994
+ */
995
+ event_id: string;
996
+ };
997
+ query?: never;
998
+ url: '/api/usage-cost/v1/usage/events/{event_id}';
999
+ };
1000
+ export type GetUsageEventApiUsageCostV1UsageEventsEventIdGetErrors = {
1001
+ /**
1002
+ * Request does not match the endpoint contract
1003
+ */
1004
+ 400: HttpErrorEnvelope;
1005
+ /**
1006
+ * Request is not authorized for the destination
1007
+ */
1008
+ 403: HttpErrorEnvelope;
1009
+ /**
1010
+ * Destination or entity was not found
1011
+ */
1012
+ 404: HttpErrorEnvelope;
1013
+ /**
1014
+ * Request authority has already been consumed
1015
+ */
1016
+ 409: HttpErrorEnvelope;
1017
+ /**
1018
+ * Request failed inside the framework boundary
1019
+ */
1020
+ 500: HttpErrorEnvelope;
1021
+ /**
1022
+ * HTTP adapter is not accepting requests
1023
+ */
1024
+ 503: HttpErrorEnvelope;
1025
+ };
1026
+ export type GetUsageEventApiUsageCostV1UsageEventsEventIdGetError = GetUsageEventApiUsageCostV1UsageEventsEventIdGetErrors[keyof GetUsageEventApiUsageCostV1UsageEventsEventIdGetErrors];
1027
+ export type GetUsageEventApiUsageCostV1UsageEventsEventIdGetResponses = {
1028
+ /**
1029
+ * Successful Response
1030
+ */
1031
+ 200: Envelope;
1032
+ };
1033
+ export type GetUsageEventApiUsageCostV1UsageEventsEventIdGetResponse = GetUsageEventApiUsageCostV1UsageEventsEventIdGetResponses[keyof GetUsageEventApiUsageCostV1UsageEventsEventIdGetResponses];
1034
+ export type GetUsageSummaryApiUsageCostV1UsageSummaryGetData = {
1035
+ body?: never;
1036
+ headers?: {
1037
+ /**
1038
+ * X-Correlation-Id
1039
+ */
1040
+ 'X-Correlation-ID'?: string | null;
1041
+ };
1042
+ path?: never;
1043
+ query: {
1044
+ /**
1045
+ * Occurred From
1046
+ */
1047
+ occurred_from: string;
1048
+ /**
1049
+ * Occurred To
1050
+ */
1051
+ occurred_to: string;
1052
+ /**
1053
+ * Group By
1054
+ */
1055
+ group_by?: Array<string> | null;
1056
+ };
1057
+ url: '/api/usage-cost/v1/usage/summary';
1058
+ };
1059
+ export type GetUsageSummaryApiUsageCostV1UsageSummaryGetErrors = {
1060
+ /**
1061
+ * Request does not match the endpoint contract
1062
+ */
1063
+ 400: HttpErrorEnvelope;
1064
+ /**
1065
+ * Request is not authorized for the destination
1066
+ */
1067
+ 403: HttpErrorEnvelope;
1068
+ /**
1069
+ * Destination or entity was not found
1070
+ */
1071
+ 404: HttpErrorEnvelope;
1072
+ /**
1073
+ * Request authority has already been consumed
1074
+ */
1075
+ 409: HttpErrorEnvelope;
1076
+ /**
1077
+ * Request failed inside the framework boundary
1078
+ */
1079
+ 500: HttpErrorEnvelope;
1080
+ /**
1081
+ * HTTP adapter is not accepting requests
1082
+ */
1083
+ 503: HttpErrorEnvelope;
1084
+ };
1085
+ export type GetUsageSummaryApiUsageCostV1UsageSummaryGetError = GetUsageSummaryApiUsageCostV1UsageSummaryGetErrors[keyof GetUsageSummaryApiUsageCostV1UsageSummaryGetErrors];
1086
+ export type GetUsageSummaryApiUsageCostV1UsageSummaryGetResponses = {
1087
+ /**
1088
+ * Successful Response
1089
+ */
1090
+ 200: Envelope;
1091
+ };
1092
+ export type GetUsageSummaryApiUsageCostV1UsageSummaryGetResponse = GetUsageSummaryApiUsageCostV1UsageSummaryGetResponses[keyof GetUsageSummaryApiUsageCostV1UsageSummaryGetResponses];