@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/package.json +1 -1
- package/src/helpers/constants.ts +22 -13
- package/src/helpers/keys.ts +53 -49
- package/src/helpers/requests.d.ts +12 -10
- package/src/helpers/responses.d.ts +16 -16
- package/src/helpers/schemas.d.ts +6 -5
- package/src/openapi.yaml +255 -213
- package/src/schema.d.ts +235 -209
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
AiUsageGranularity,
|
|
3
2
|
AllocationMethodType,
|
|
4
3
|
AssignablePublicRole,
|
|
5
4
|
AttributeType,
|
|
@@ -103,6 +102,8 @@ import type {
|
|
|
103
102
|
TagType,
|
|
104
103
|
TimeRange,
|
|
105
104
|
TransferAckType,
|
|
105
|
+
UsageGranularity,
|
|
106
|
+
UsageProduct,
|
|
106
107
|
UserSortField,
|
|
107
108
|
VanityNameserverSetStatusDTO,
|
|
108
109
|
VanityNsCheckConfidence,
|
|
@@ -118,18 +119,6 @@ import type {
|
|
|
118
119
|
ZoneSortField,
|
|
119
120
|
} from './schemas';
|
|
120
121
|
|
|
121
|
-
export const AI_USAGE_GRANULARITY = {
|
|
122
|
-
DAY: "day",
|
|
123
|
-
WEEK: "week",
|
|
124
|
-
MONTH: "month",
|
|
125
|
-
} as const satisfies Record<string, AiUsageGranularity>;
|
|
126
|
-
|
|
127
|
-
export const AI_USAGE_GRANULARITY_VALUES = [
|
|
128
|
-
'day',
|
|
129
|
-
'week',
|
|
130
|
-
'month',
|
|
131
|
-
] as const satisfies ReadonlyArray<AiUsageGranularity>;
|
|
132
|
-
|
|
133
122
|
export const ALLOCATION_METHOD_TYPE = {
|
|
134
123
|
FCFS: "fcfs",
|
|
135
124
|
AUCTION: "auction",
|
|
@@ -1859,6 +1848,26 @@ export const TRANSFER_ACK_TYPE_VALUES = [
|
|
|
1859
1848
|
'both',
|
|
1860
1849
|
] as const satisfies ReadonlyArray<TransferAckType>;
|
|
1861
1850
|
|
|
1851
|
+
export const USAGE_GRANULARITY = {
|
|
1852
|
+
DAY: "day",
|
|
1853
|
+
WEEK: "week",
|
|
1854
|
+
MONTH: "month",
|
|
1855
|
+
} as const satisfies Record<string, UsageGranularity>;
|
|
1856
|
+
|
|
1857
|
+
export const USAGE_GRANULARITY_VALUES = [
|
|
1858
|
+
'day',
|
|
1859
|
+
'week',
|
|
1860
|
+
'month',
|
|
1861
|
+
] as const satisfies ReadonlyArray<UsageGranularity>;
|
|
1862
|
+
|
|
1863
|
+
export const USAGE_PRODUCT = {
|
|
1864
|
+
AI_INFERENCE: "ai_inference",
|
|
1865
|
+
} as const satisfies Record<string, UsageProduct>;
|
|
1866
|
+
|
|
1867
|
+
export const USAGE_PRODUCT_VALUES = [
|
|
1868
|
+
'ai_inference',
|
|
1869
|
+
] as const satisfies ReadonlyArray<UsageProduct>;
|
|
1870
|
+
|
|
1862
1871
|
export const USER_SORT_FIELD = {
|
|
1863
1872
|
CREATED_ON: "created_on",
|
|
1864
1873
|
USERNAME: "username",
|
package/src/helpers/keys.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
AiInferenceUsageBucket,
|
|
3
|
+
AiInferenceUsageGroup,
|
|
4
|
+
AiInferenceUsageSeries,
|
|
5
|
+
AiInferenceUsageSummary,
|
|
6
6
|
AllowedNumberOfNameserverBase,
|
|
7
7
|
AttributeCondition,
|
|
8
8
|
Auth,
|
|
@@ -437,51 +437,55 @@ import type {
|
|
|
437
437
|
DomainAvailabilityCheck,
|
|
438
438
|
} from './schemas';
|
|
439
439
|
|
|
440
|
-
export const
|
|
441
|
-
export const
|
|
442
|
-
|
|
443
|
-
export const
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
export const
|
|
469
|
-
|
|
470
|
-
export const
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
] as const satisfies (keyof
|
|
477
|
-
|
|
478
|
-
export const
|
|
479
|
-
export const
|
|
480
|
-
|
|
481
|
-
export const
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
440
|
+
export const KEY_AI_INFERENCE_USAGE_BUCKET_GROUPS = 'groups' satisfies keyof AiInferenceUsageBucket;
|
|
441
|
+
export const KEY_AI_INFERENCE_USAGE_BUCKET_PERIOD_START = 'period_start' satisfies keyof AiInferenceUsageBucket;
|
|
442
|
+
|
|
443
|
+
export const KEYS_AI_INFERENCE_USAGE_BUCKET = [
|
|
444
|
+
KEY_AI_INFERENCE_USAGE_BUCKET_GROUPS,
|
|
445
|
+
KEY_AI_INFERENCE_USAGE_BUCKET_PERIOD_START,
|
|
446
|
+
] as const satisfies (keyof AiInferenceUsageBucket)[];
|
|
447
|
+
|
|
448
|
+
export const KEY_AI_INFERENCE_USAGE_GROUP_CACHE_READ_TOKENS = 'cache_read_tokens' satisfies keyof AiInferenceUsageGroup;
|
|
449
|
+
export const KEY_AI_INFERENCE_USAGE_GROUP_CACHE_WRITE_TOKENS = 'cache_write_tokens' satisfies keyof AiInferenceUsageGroup;
|
|
450
|
+
export const KEY_AI_INFERENCE_USAGE_GROUP_INPUT_TOKENS = 'input_tokens' satisfies keyof AiInferenceUsageGroup;
|
|
451
|
+
export const KEY_AI_INFERENCE_USAGE_GROUP_MODEL = 'model' satisfies keyof AiInferenceUsageGroup;
|
|
452
|
+
export const KEY_AI_INFERENCE_USAGE_GROUP_OUTPUT_TOKENS = 'output_tokens' satisfies keyof AiInferenceUsageGroup;
|
|
453
|
+
export const KEY_AI_INFERENCE_USAGE_GROUP_REQUEST_COUNT = 'request_count' satisfies keyof AiInferenceUsageGroup;
|
|
454
|
+
|
|
455
|
+
export const KEYS_AI_INFERENCE_USAGE_GROUP = [
|
|
456
|
+
KEY_AI_INFERENCE_USAGE_GROUP_CACHE_READ_TOKENS,
|
|
457
|
+
KEY_AI_INFERENCE_USAGE_GROUP_CACHE_WRITE_TOKENS,
|
|
458
|
+
KEY_AI_INFERENCE_USAGE_GROUP_INPUT_TOKENS,
|
|
459
|
+
KEY_AI_INFERENCE_USAGE_GROUP_MODEL,
|
|
460
|
+
KEY_AI_INFERENCE_USAGE_GROUP_OUTPUT_TOKENS,
|
|
461
|
+
KEY_AI_INFERENCE_USAGE_GROUP_REQUEST_COUNT,
|
|
462
|
+
] as const satisfies (keyof AiInferenceUsageGroup)[];
|
|
463
|
+
|
|
464
|
+
export const KEY_AI_INFERENCE_USAGE_SERIES_BUCKETS = 'buckets' satisfies keyof AiInferenceUsageSeries;
|
|
465
|
+
export const KEY_AI_INFERENCE_USAGE_SERIES_END_DATE = 'end_date' satisfies keyof AiInferenceUsageSeries;
|
|
466
|
+
export const KEY_AI_INFERENCE_USAGE_SERIES_GRANULARITY = 'granularity' satisfies keyof AiInferenceUsageSeries;
|
|
467
|
+
export const KEY_AI_INFERENCE_USAGE_SERIES_PRODUCT = 'product' satisfies keyof AiInferenceUsageSeries;
|
|
468
|
+
export const KEY_AI_INFERENCE_USAGE_SERIES_START_DATE = 'start_date' satisfies keyof AiInferenceUsageSeries;
|
|
469
|
+
|
|
470
|
+
export const KEYS_AI_INFERENCE_USAGE_SERIES = [
|
|
471
|
+
KEY_AI_INFERENCE_USAGE_SERIES_BUCKETS,
|
|
472
|
+
KEY_AI_INFERENCE_USAGE_SERIES_END_DATE,
|
|
473
|
+
KEY_AI_INFERENCE_USAGE_SERIES_GRANULARITY,
|
|
474
|
+
KEY_AI_INFERENCE_USAGE_SERIES_PRODUCT,
|
|
475
|
+
KEY_AI_INFERENCE_USAGE_SERIES_START_DATE,
|
|
476
|
+
] as const satisfies (keyof AiInferenceUsageSeries)[];
|
|
477
|
+
|
|
478
|
+
export const KEY_AI_INFERENCE_USAGE_SUMMARY_END_DATE = 'end_date' satisfies keyof AiInferenceUsageSummary;
|
|
479
|
+
export const KEY_AI_INFERENCE_USAGE_SUMMARY_GROUPS = 'groups' satisfies keyof AiInferenceUsageSummary;
|
|
480
|
+
export const KEY_AI_INFERENCE_USAGE_SUMMARY_PRODUCT = 'product' satisfies keyof AiInferenceUsageSummary;
|
|
481
|
+
export const KEY_AI_INFERENCE_USAGE_SUMMARY_START_DATE = 'start_date' satisfies keyof AiInferenceUsageSummary;
|
|
482
|
+
|
|
483
|
+
export const KEYS_AI_INFERENCE_USAGE_SUMMARY = [
|
|
484
|
+
KEY_AI_INFERENCE_USAGE_SUMMARY_END_DATE,
|
|
485
|
+
KEY_AI_INFERENCE_USAGE_SUMMARY_GROUPS,
|
|
486
|
+
KEY_AI_INFERENCE_USAGE_SUMMARY_PRODUCT,
|
|
487
|
+
KEY_AI_INFERENCE_USAGE_SUMMARY_START_DATE,
|
|
488
|
+
] as const satisfies (keyof AiInferenceUsageSummary)[];
|
|
485
489
|
|
|
486
490
|
export const KEY_ALLOWED_NUMBER_OF_NAMESERVER_BASE_MAX = 'max' satisfies keyof AllowedNumberOfNameserverBase;
|
|
487
491
|
export const KEY_ALLOWED_NUMBER_OF_NAMESERVER_BASE_MIN = 'min' satisfies keyof AllowedNumberOfNameserverBase;
|
|
@@ -799,16 +799,6 @@ export type POST_Organizations_Request = {
|
|
|
799
799
|
};
|
|
800
800
|
export type POST_Organizations_Request_Body = POST_Organizations_Request['requestBody'];
|
|
801
801
|
|
|
802
|
-
export type GET_OrganizationsAiUsage_Request = {
|
|
803
|
-
parameters: operations['get_ai_usage_series_v1_organizations_ai_usage_get']['parameters'];
|
|
804
|
-
};
|
|
805
|
-
export type GET_OrganizationsAiUsage_Request_Query = GET_OrganizationsAiUsage_Request['parameters']['query'];
|
|
806
|
-
|
|
807
|
-
export type GET_OrganizationsAiUsageSummary_Request = {
|
|
808
|
-
parameters: operations['get_ai_usage_summary_v1_organizations_ai_usage_summary_get']['parameters'];
|
|
809
|
-
};
|
|
810
|
-
export type GET_OrganizationsAiUsageSummary_Request_Query = GET_OrganizationsAiUsageSummary_Request['parameters']['query'];
|
|
811
|
-
|
|
812
802
|
export type GET_OrganizationsAttributes_Request = {
|
|
813
803
|
parameters: operations['get_current_organization_attributes_v1_organizations_attributes_get']['parameters'];
|
|
814
804
|
};
|
|
@@ -872,6 +862,18 @@ export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Request
|
|
|
872
862
|
};
|
|
873
863
|
export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Request_Path = GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Request['parameters']['path'];
|
|
874
864
|
|
|
865
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Request = {
|
|
866
|
+
parameters: operations['get_usage_series_v1_organizations__organization_id__usage__product__get']['parameters'];
|
|
867
|
+
};
|
|
868
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Request_Query = GET_OrganizationsByOrganizationIdUsageByProduct_Request['parameters']['query'];
|
|
869
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Request_Path = GET_OrganizationsByOrganizationIdUsageByProduct_Request['parameters']['path'];
|
|
870
|
+
|
|
871
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Request = {
|
|
872
|
+
parameters: operations['get_usage_summary_v1_organizations__organization_id__usage__product__summary_get']['parameters'];
|
|
873
|
+
};
|
|
874
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Request_Query = GET_OrganizationsByOrganizationIdUsageByProductSummary_Request['parameters']['query'];
|
|
875
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Request_Path = GET_OrganizationsByOrganizationIdUsageByProductSummary_Request['parameters']['path'];
|
|
876
|
+
|
|
875
877
|
export type GET_OrganizationsIpRestrictions_Request = {
|
|
876
878
|
};
|
|
877
879
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
AiInferenceUsageSeries,
|
|
3
|
+
AiInferenceUsageSummary,
|
|
4
4
|
BillingTransaction,
|
|
5
5
|
ClaimsNotices,
|
|
6
6
|
ClearVanityNameserverSetDefaultRes,
|
|
@@ -647,20 +647,6 @@ export type GET_Organizations_Response_401 = Problem;
|
|
|
647
647
|
export type GET_Organizations_Response_403 = Problem;
|
|
648
648
|
export type GET_Organizations_Response_422 = HTTPValidationError;
|
|
649
649
|
|
|
650
|
-
export type GET_OrganizationsAiUsage_Response = GET_OrganizationsAiUsage_Response_200 | GET_OrganizationsAiUsage_Response_401 | GET_OrganizationsAiUsage_Response_403 | GET_OrganizationsAiUsage_Response_422;
|
|
651
|
-
|
|
652
|
-
export type GET_OrganizationsAiUsage_Response_200 = AiUsageSeries;
|
|
653
|
-
export type GET_OrganizationsAiUsage_Response_401 = Problem;
|
|
654
|
-
export type GET_OrganizationsAiUsage_Response_403 = Problem;
|
|
655
|
-
export type GET_OrganizationsAiUsage_Response_422 = HTTPValidationError;
|
|
656
|
-
|
|
657
|
-
export type GET_OrganizationsAiUsageSummary_Response = GET_OrganizationsAiUsageSummary_Response_200 | GET_OrganizationsAiUsageSummary_Response_401 | GET_OrganizationsAiUsageSummary_Response_403 | GET_OrganizationsAiUsageSummary_Response_422;
|
|
658
|
-
|
|
659
|
-
export type GET_OrganizationsAiUsageSummary_Response_200 = AiUsageSummary;
|
|
660
|
-
export type GET_OrganizationsAiUsageSummary_Response_401 = Problem;
|
|
661
|
-
export type GET_OrganizationsAiUsageSummary_Response_403 = Problem;
|
|
662
|
-
export type GET_OrganizationsAiUsageSummary_Response_422 = HTTPValidationError;
|
|
663
|
-
|
|
664
650
|
export type GET_OrganizationsAttributes_Response = GET_OrganizationsAttributes_Response_200 | GET_OrganizationsAttributes_Response_401 | GET_OrganizationsAttributes_Response_403 | GET_OrganizationsAttributes_Response_422;
|
|
665
651
|
|
|
666
652
|
export type GET_OrganizationsAttributes_Response_200 = OrganizationAttribute2[];
|
|
@@ -708,6 +694,20 @@ export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Respons
|
|
|
708
694
|
export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_403 = Problem;
|
|
709
695
|
export type GET_OrganizationsByOrganizationIdTransactionsByTransactionId_Response_422 = HTTPValidationError;
|
|
710
696
|
|
|
697
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Response = GET_OrganizationsByOrganizationIdUsageByProduct_Response_200 | GET_OrganizationsByOrganizationIdUsageByProduct_Response_401 | GET_OrganizationsByOrganizationIdUsageByProduct_Response_403 | GET_OrganizationsByOrganizationIdUsageByProduct_Response_422;
|
|
698
|
+
|
|
699
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Response_200 = AiInferenceUsageSeries;
|
|
700
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Response_401 = Problem;
|
|
701
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Response_403 = Problem;
|
|
702
|
+
export type GET_OrganizationsByOrganizationIdUsageByProduct_Response_422 = HTTPValidationError;
|
|
703
|
+
|
|
704
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Response = GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_200 | GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_401 | GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_403 | GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_422;
|
|
705
|
+
|
|
706
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_200 = AiInferenceUsageSummary;
|
|
707
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_401 = Problem;
|
|
708
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_403 = Problem;
|
|
709
|
+
export type GET_OrganizationsByOrganizationIdUsageByProductSummary_Response_422 = HTTPValidationError;
|
|
710
|
+
|
|
711
711
|
export type GET_OrganizationsIpRestrictions_Response = GET_OrganizationsIpRestrictions_Response_200 | GET_OrganizationsIpRestrictions_Response_401 | GET_OrganizationsIpRestrictions_Response_403 | GET_OrganizationsIpRestrictions_Response_422;
|
|
712
712
|
|
|
713
713
|
export type GET_OrganizationsIpRestrictions_Response_200 = IpRestriction[];
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { components } from '../schema';
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type AiUsageTimeBucket = components['schemas']['AiUsageTimeBucket'];
|
|
3
|
+
export type AiInferenceUsageBucket = components['schemas']['AiInferenceUsageBucket'];
|
|
4
|
+
export type AiInferenceUsageGroup = components['schemas']['AiInferenceUsageGroup'];
|
|
5
|
+
export type AiInferenceUsageSeries = components['schemas']['AiInferenceUsageSeriesResponse'];
|
|
6
|
+
export type AiInferenceUsageSummary = components['schemas']['AiInferenceUsageSummaryResponse'];
|
|
8
7
|
export type AllocationMethodType = components['schemas']['AllocationMethodType'];
|
|
9
8
|
export type AllowedNumberOfNameserverBase = components['schemas']['AllowedNumberOfNameserverBase'];
|
|
10
9
|
export type AssignablePublicRole = components['schemas']['AssignablePublicRole'];
|
|
@@ -527,6 +526,8 @@ export type TrademarkClaimsBase = components['schemas']['TrademarkClaimsBase'];
|
|
|
527
526
|
export type TransferAckType = components['schemas']['TransferAckType'];
|
|
528
527
|
export type TransferLockPolicyBase = components['schemas']['TransferLockPolicyBase'];
|
|
529
528
|
export type TransferPoliciesBase = components['schemas']['TransferPoliciesBase'];
|
|
529
|
+
export type UsageGranularity = components['schemas']['UsageGranularity'];
|
|
530
|
+
export type UsageProduct = components['schemas']['UsageProduct'];
|
|
530
531
|
export type User = components['schemas']['User'];
|
|
531
532
|
export type UserAgentStatsBucket = components['schemas']['UserAgentStatsBucket'];
|
|
532
533
|
export type UserAttributeBase = components['schemas']['UserAttributeBase'];
|