@opusdns/api 1.79.0 → 1.80.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.
package/src/schema.d.ts CHANGED
@@ -1925,46 +1925,6 @@ export interface paths {
1925
1925
  patch?: never;
1926
1926
  trace?: never;
1927
1927
  };
1928
- "/v1/organizations/ai-usage": {
1929
- parameters: {
1930
- query?: never;
1931
- header?: never;
1932
- path?: never;
1933
- cookie?: never;
1934
- };
1935
- /**
1936
- * AI usage over time
1937
- * @description Retrieves the current organization's AI token usage as a time series, bucketed by the requested granularity and broken down per model. Reports token counts and request volumes only.
1938
- */
1939
- get: operations["get_ai_usage_series_v1_organizations_ai_usage_get"];
1940
- put?: never;
1941
- post?: never;
1942
- delete?: never;
1943
- options?: never;
1944
- head?: never;
1945
- patch?: never;
1946
- trace?: never;
1947
- };
1948
- "/v1/organizations/ai-usage/summary": {
1949
- parameters: {
1950
- query?: never;
1951
- header?: never;
1952
- path?: never;
1953
- cookie?: never;
1954
- };
1955
- /**
1956
- * AI usage summary
1957
- * @description Retrieves the current organization's total AI token usage over a date range, broken down per model. Reports token counts and request volumes only.
1958
- */
1959
- get: operations["get_ai_usage_summary_v1_organizations_ai_usage_summary_get"];
1960
- put?: never;
1961
- post?: never;
1962
- delete?: never;
1963
- options?: never;
1964
- head?: never;
1965
- patch?: never;
1966
- trace?: never;
1967
- };
1968
1928
  "/v1/organizations/attributes": {
1969
1929
  parameters: {
1970
1930
  query?: never;
@@ -2279,6 +2239,46 @@ export interface paths {
2279
2239
  patch?: never;
2280
2240
  trace?: never;
2281
2241
  };
2242
+ "/v1/organizations/{organization_id}/usage/{product}": {
2243
+ parameters: {
2244
+ query?: never;
2245
+ header?: never;
2246
+ path?: never;
2247
+ cookie?: never;
2248
+ };
2249
+ /**
2250
+ * Usage over time
2251
+ * @description Retrieves the organization's usage of a metered product as a time series, bucketed by the requested granularity and grouped per sub-metric. Reports usage quantities only.
2252
+ */
2253
+ get: operations["get_usage_series_v1_organizations__organization_id__usage__product__get"];
2254
+ put?: never;
2255
+ post?: never;
2256
+ delete?: never;
2257
+ options?: never;
2258
+ head?: never;
2259
+ patch?: never;
2260
+ trace?: never;
2261
+ };
2262
+ "/v1/organizations/{organization_id}/usage/{product}/summary": {
2263
+ parameters: {
2264
+ query?: never;
2265
+ header?: never;
2266
+ path?: never;
2267
+ cookie?: never;
2268
+ };
2269
+ /**
2270
+ * Usage summary
2271
+ * @description Retrieves the organization's total usage of a metered product over a date range, grouped per sub-metric. Reports usage quantities only.
2272
+ */
2273
+ get: operations["get_usage_summary_v1_organizations__organization_id__usage__product__summary_get"];
2274
+ put?: never;
2275
+ post?: never;
2276
+ delete?: never;
2277
+ options?: never;
2278
+ head?: never;
2279
+ patch?: never;
2280
+ trace?: never;
2281
+ };
2282
2282
  "/v1/parking": {
2283
2283
  parameters: {
2284
2284
  query?: never;
@@ -2906,17 +2906,22 @@ export interface paths {
2906
2906
  export type webhooks = Record<string, never>;
2907
2907
  export interface components {
2908
2908
  schemas: {
2909
+ /** AiInferenceUsageBucket */
2910
+ AiInferenceUsageBucket: {
2911
+ /** Groups */
2912
+ groups: components["schemas"]["AiInferenceUsageGroup"][];
2913
+ /**
2914
+ * Period Start
2915
+ * Format: date
2916
+ */
2917
+ period_start: string;
2918
+ };
2909
2919
  /**
2910
- * AiUsageGranularity
2911
- * @enum {string}
2912
- */
2913
- AiUsageGranularity: "day" | "week" | "month";
2914
- /**
2915
- * AiUsageModelBreakdown
2916
- * @description Public per-model AI token usage. Deliberately excludes billing-gateway's
2920
+ * AiInferenceUsageGroup
2921
+ * @description Public per-model AI inference usage. Deliberately excludes billing-gateway's
2917
2922
  * internal COGS fields (cost_amount, per-million rates, has_rate).
2918
2923
  */
2919
- AiUsageModelBreakdown: {
2924
+ AiInferenceUsageGroup: {
2920
2925
  /** Cache Read Tokens */
2921
2926
  cache_read_tokens: number;
2922
2927
  /** Cache Write Tokens */
@@ -2930,46 +2935,48 @@ export interface components {
2930
2935
  /** Request Count */
2931
2936
  request_count: number;
2932
2937
  };
2933
- /** AiUsageSeriesResponse */
2934
- AiUsageSeriesResponse: {
2938
+ /** AiInferenceUsageSeriesResponse */
2939
+ AiInferenceUsageSeriesResponse: {
2935
2940
  /** Buckets */
2936
- buckets: components["schemas"]["AiUsageTimeBucket"][];
2941
+ buckets: components["schemas"]["AiInferenceUsageBucket"][];
2937
2942
  /**
2938
2943
  * End Date
2939
2944
  * Format: date
2940
2945
  */
2941
2946
  end_date: string;
2942
- granularity: components["schemas"]["AiUsageGranularity"];
2947
+ granularity: components["schemas"]["UsageGranularity"];
2948
+ /**
2949
+ * Product
2950
+ * @default ai_inference
2951
+ * @constant
2952
+ */
2953
+ product: "ai_inference";
2943
2954
  /**
2944
2955
  * Start Date
2945
2956
  * Format: date
2946
2957
  */
2947
2958
  start_date: string;
2948
2959
  };
2949
- /** AiUsageSummaryResponse */
2950
- AiUsageSummaryResponse: {
2951
- /** By Model */
2952
- by_model: components["schemas"]["AiUsageModelBreakdown"][];
2960
+ /** AiInferenceUsageSummaryResponse */
2961
+ AiInferenceUsageSummaryResponse: {
2953
2962
  /**
2954
2963
  * End Date
2955
2964
  * Format: date
2956
2965
  */
2957
2966
  end_date: string;
2967
+ /** Groups */
2968
+ groups: components["schemas"]["AiInferenceUsageGroup"][];
2958
2969
  /**
2959
- * Start Date
2960
- * Format: date
2970
+ * Product
2971
+ * @default ai_inference
2972
+ * @constant
2961
2973
  */
2962
- start_date: string;
2963
- };
2964
- /** AiUsageTimeBucket */
2965
- AiUsageTimeBucket: {
2966
- /** By Model */
2967
- by_model: components["schemas"]["AiUsageModelBreakdown"][];
2974
+ product: "ai_inference";
2968
2975
  /**
2969
- * Period Start
2976
+ * Start Date
2970
2977
  * Format: date
2971
2978
  */
2972
- period_start: string;
2979
+ start_date: string;
2973
2980
  };
2974
2981
  /**
2975
2982
  * AllocationMethodType
@@ -11543,6 +11550,16 @@ export interface components {
11543
11550
  */
11544
11551
  transfer_time?: string | null;
11545
11552
  };
11553
+ /**
11554
+ * UsageGranularity
11555
+ * @enum {string}
11556
+ */
11557
+ UsageGranularity: "day" | "week" | "month";
11558
+ /**
11559
+ * UsageProduct
11560
+ * @enum {string}
11561
+ */
11562
+ UsageProduct: "ai_inference";
11546
11563
  /** User */
11547
11564
  User: {
11548
11565
  /**
@@ -22502,149 +22519,6 @@ export interface operations {
22502
22519
  };
22503
22520
  };
22504
22521
  };
22505
- get_ai_usage_series_v1_organizations_ai_usage_get: {
22506
- parameters: {
22507
- query: {
22508
- start_date: string;
22509
- end_date: string;
22510
- model?: string | null;
22511
- granularity?: components["schemas"]["AiUsageGranularity"];
22512
- };
22513
- header?: {
22514
- /**
22515
- * @description Opt in to RFC 3339 datetime serialization. When set to `rfc3339`, response datetimes are normalized to UTC and serialized with a `Z` suffix. This is opt-in until the announced default cutover date, after which RFC 3339 becomes the default and this header is accepted as a no-op. Any other value or omission uses the current default serialization.
22516
- * @example rfc3339
22517
- */
22518
- "X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
22519
- };
22520
- path?: never;
22521
- cookie?: never;
22522
- };
22523
- requestBody?: never;
22524
- responses: {
22525
- /** @description Successful Response */
22526
- 200: {
22527
- headers: {
22528
- [name: string]: unknown;
22529
- };
22530
- content: {
22531
- "application/json": components["schemas"]["AiUsageSeriesResponse"];
22532
- };
22533
- };
22534
- /** @description Unauthorized */
22535
- 401: {
22536
- headers: {
22537
- [name: string]: unknown;
22538
- };
22539
- content: {
22540
- /** @example {
22541
- * "code": "ERROR_AUTHENTICATION",
22542
- * "detail": "Additional error context.",
22543
- * "status": 401,
22544
- * "title": "Authentication Error",
22545
- * "type": "authentication"
22546
- * } */
22547
- "application/problem+json": components["schemas"]["Problem"];
22548
- };
22549
- };
22550
- /** @description Forbidden */
22551
- 403: {
22552
- headers: {
22553
- [name: string]: unknown;
22554
- };
22555
- content: {
22556
- /** @example {
22557
- * "code": "ERROR_PERMISSION_DENIED",
22558
- * "detail": "Insufficient permissions to perform this action",
22559
- * "status": 403,
22560
- * "title": "Permission Denied",
22561
- * "type": "permission-denied"
22562
- * } */
22563
- "application/problem+json": components["schemas"]["Problem"];
22564
- };
22565
- };
22566
- /** @description Validation Error */
22567
- 422: {
22568
- headers: {
22569
- [name: string]: unknown;
22570
- };
22571
- content: {
22572
- "application/problem+json": components["schemas"]["HTTPValidationError"];
22573
- };
22574
- };
22575
- };
22576
- };
22577
- get_ai_usage_summary_v1_organizations_ai_usage_summary_get: {
22578
- parameters: {
22579
- query: {
22580
- start_date: string;
22581
- end_date: string;
22582
- model?: string | null;
22583
- };
22584
- header?: {
22585
- /**
22586
- * @description Opt in to RFC 3339 datetime serialization. When set to `rfc3339`, response datetimes are normalized to UTC and serialized with a `Z` suffix. This is opt-in until the announced default cutover date, after which RFC 3339 becomes the default and this header is accepted as a no-op. Any other value or omission uses the current default serialization.
22587
- * @example rfc3339
22588
- */
22589
- "X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
22590
- };
22591
- path?: never;
22592
- cookie?: never;
22593
- };
22594
- requestBody?: never;
22595
- responses: {
22596
- /** @description Successful Response */
22597
- 200: {
22598
- headers: {
22599
- [name: string]: unknown;
22600
- };
22601
- content: {
22602
- "application/json": components["schemas"]["AiUsageSummaryResponse"];
22603
- };
22604
- };
22605
- /** @description Unauthorized */
22606
- 401: {
22607
- headers: {
22608
- [name: string]: unknown;
22609
- };
22610
- content: {
22611
- /** @example {
22612
- * "code": "ERROR_AUTHENTICATION",
22613
- * "detail": "Additional error context.",
22614
- * "status": 401,
22615
- * "title": "Authentication Error",
22616
- * "type": "authentication"
22617
- * } */
22618
- "application/problem+json": components["schemas"]["Problem"];
22619
- };
22620
- };
22621
- /** @description Forbidden */
22622
- 403: {
22623
- headers: {
22624
- [name: string]: unknown;
22625
- };
22626
- content: {
22627
- /** @example {
22628
- * "code": "ERROR_PERMISSION_DENIED",
22629
- * "detail": "Insufficient permissions to perform this action",
22630
- * "status": 403,
22631
- * "title": "Permission Denied",
22632
- * "type": "permission-denied"
22633
- * } */
22634
- "application/problem+json": components["schemas"]["Problem"];
22635
- };
22636
- };
22637
- /** @description Validation Error */
22638
- 422: {
22639
- headers: {
22640
- [name: string]: unknown;
22641
- };
22642
- content: {
22643
- "application/problem+json": components["schemas"]["HTTPValidationError"];
22644
- };
22645
- };
22646
- };
22647
- };
22648
22522
  get_current_organization_attributes_v1_organizations_attributes_get: {
22649
22523
  parameters: {
22650
22524
  query?: {
@@ -24341,6 +24215,158 @@ export interface operations {
24341
24215
  };
24342
24216
  };
24343
24217
  };
24218
+ get_usage_series_v1_organizations__organization_id__usage__product__get: {
24219
+ parameters: {
24220
+ query: {
24221
+ /** @description Inclusive start date (YYYY-MM-DD) */
24222
+ start_date: string;
24223
+ /** @description Inclusive end date (YYYY-MM-DD) */
24224
+ end_date: string;
24225
+ /** @description Time-bucket size */
24226
+ granularity?: components["schemas"]["UsageGranularity"];
24227
+ };
24228
+ header?: {
24229
+ /**
24230
+ * @description Opt in to RFC 3339 datetime serialization. When set to `rfc3339`, response datetimes are normalized to UTC and serialized with a `Z` suffix. This is opt-in until the announced default cutover date, after which RFC 3339 becomes the default and this header is accepted as a no-op. Any other value or omission uses the current default serialization.
24231
+ * @example rfc3339
24232
+ */
24233
+ "X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
24234
+ };
24235
+ path: {
24236
+ organization_id: TypeId<"organization">;
24237
+ product: components["schemas"]["UsageProduct"];
24238
+ };
24239
+ cookie?: never;
24240
+ };
24241
+ requestBody?: never;
24242
+ responses: {
24243
+ /** @description Successful Response */
24244
+ 200: {
24245
+ headers: {
24246
+ [name: string]: unknown;
24247
+ };
24248
+ content: {
24249
+ "application/json": components["schemas"]["AiInferenceUsageSeriesResponse"];
24250
+ };
24251
+ };
24252
+ /** @description Unauthorized */
24253
+ 401: {
24254
+ headers: {
24255
+ [name: string]: unknown;
24256
+ };
24257
+ content: {
24258
+ /** @example {
24259
+ * "code": "ERROR_AUTHENTICATION",
24260
+ * "detail": "Additional error context.",
24261
+ * "status": 401,
24262
+ * "title": "Authentication Error",
24263
+ * "type": "authentication"
24264
+ * } */
24265
+ "application/problem+json": components["schemas"]["Problem"];
24266
+ };
24267
+ };
24268
+ /** @description Forbidden */
24269
+ 403: {
24270
+ headers: {
24271
+ [name: string]: unknown;
24272
+ };
24273
+ content: {
24274
+ /** @example {
24275
+ * "code": "ERROR_PERMISSION_DENIED",
24276
+ * "detail": "Insufficient permissions to perform this action",
24277
+ * "status": 403,
24278
+ * "title": "Permission Denied",
24279
+ * "type": "permission-denied"
24280
+ * } */
24281
+ "application/problem+json": components["schemas"]["Problem"];
24282
+ };
24283
+ };
24284
+ /** @description Validation Error */
24285
+ 422: {
24286
+ headers: {
24287
+ [name: string]: unknown;
24288
+ };
24289
+ content: {
24290
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
24291
+ };
24292
+ };
24293
+ };
24294
+ };
24295
+ get_usage_summary_v1_organizations__organization_id__usage__product__summary_get: {
24296
+ parameters: {
24297
+ query: {
24298
+ /** @description Inclusive start date (YYYY-MM-DD) */
24299
+ start_date: string;
24300
+ /** @description Inclusive end date (YYYY-MM-DD) */
24301
+ end_date: string;
24302
+ };
24303
+ header?: {
24304
+ /**
24305
+ * @description Opt in to RFC 3339 datetime serialization. When set to `rfc3339`, response datetimes are normalized to UTC and serialized with a `Z` suffix. This is opt-in until the announced default cutover date, after which RFC 3339 becomes the default and this header is accepted as a no-op. Any other value or omission uses the current default serialization.
24306
+ * @example rfc3339
24307
+ */
24308
+ "X-Datetime-Format"?: components["parameters"]["DatetimeFormatHeader"];
24309
+ };
24310
+ path: {
24311
+ organization_id: TypeId<"organization">;
24312
+ product: components["schemas"]["UsageProduct"];
24313
+ };
24314
+ cookie?: never;
24315
+ };
24316
+ requestBody?: never;
24317
+ responses: {
24318
+ /** @description Successful Response */
24319
+ 200: {
24320
+ headers: {
24321
+ [name: string]: unknown;
24322
+ };
24323
+ content: {
24324
+ "application/json": components["schemas"]["AiInferenceUsageSummaryResponse"];
24325
+ };
24326
+ };
24327
+ /** @description Unauthorized */
24328
+ 401: {
24329
+ headers: {
24330
+ [name: string]: unknown;
24331
+ };
24332
+ content: {
24333
+ /** @example {
24334
+ * "code": "ERROR_AUTHENTICATION",
24335
+ * "detail": "Additional error context.",
24336
+ * "status": 401,
24337
+ * "title": "Authentication Error",
24338
+ * "type": "authentication"
24339
+ * } */
24340
+ "application/problem+json": components["schemas"]["Problem"];
24341
+ };
24342
+ };
24343
+ /** @description Forbidden */
24344
+ 403: {
24345
+ headers: {
24346
+ [name: string]: unknown;
24347
+ };
24348
+ content: {
24349
+ /** @example {
24350
+ * "code": "ERROR_PERMISSION_DENIED",
24351
+ * "detail": "Insufficient permissions to perform this action",
24352
+ * "status": 403,
24353
+ * "title": "Permission Denied",
24354
+ * "type": "permission-denied"
24355
+ * } */
24356
+ "application/problem+json": components["schemas"]["Problem"];
24357
+ };
24358
+ };
24359
+ /** @description Validation Error */
24360
+ 422: {
24361
+ headers: {
24362
+ [name: string]: unknown;
24363
+ };
24364
+ content: {
24365
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
24366
+ };
24367
+ };
24368
+ };
24369
+ };
24344
24370
  list_parking_v1_parking_get: {
24345
24371
  parameters: {
24346
24372
  query?: {