@opusdns/api 1.14.0 → 1.16.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 +2 -0
- package/src/helpers/keys.ts +41 -0
- package/src/helpers/requests.d.ts +30 -0
- package/src/helpers/responses.d.ts +49 -2
- package/src/helpers/schemas.d.ts +3 -0
- package/src/openapi.yaml +515 -19
- package/src/schema.d.ts +695 -82
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -1345,6 +1345,7 @@ export const PROTOCOL_VALUES = [
|
|
|
1345
1345
|
] as const satisfies ReadonlyArray<Protocol>;
|
|
1346
1346
|
|
|
1347
1347
|
export const PUBLIC_RESOURCE = {
|
|
1348
|
+
ORGANIZATION: "organization",
|
|
1348
1349
|
DOMAINS: "domains",
|
|
1349
1350
|
CONTACTS: "contacts",
|
|
1350
1351
|
DNS: "dns",
|
|
@@ -1364,6 +1365,7 @@ export const PUBLIC_RESOURCE = {
|
|
|
1364
1365
|
} as const satisfies Record<string, PublicResource>;
|
|
1365
1366
|
|
|
1366
1367
|
export const PUBLIC_RESOURCE_VALUES = [
|
|
1368
|
+
'organization',
|
|
1367
1369
|
'domains',
|
|
1368
1370
|
'contacts',
|
|
1369
1371
|
'dns',
|
package/src/helpers/keys.ts
CHANGED
|
@@ -46,6 +46,8 @@ import type {
|
|
|
46
46
|
ConversationPatchRequest,
|
|
47
47
|
CreateJobBatch,
|
|
48
48
|
CreateReportReq,
|
|
49
|
+
CustomRoleCreate,
|
|
50
|
+
CustomRoleUpdate,
|
|
49
51
|
DnsChange,
|
|
50
52
|
DnsChanges,
|
|
51
53
|
DnsConfigurationBase,
|
|
@@ -287,6 +289,7 @@ import type {
|
|
|
287
289
|
PublicReportRes,
|
|
288
290
|
PublicRoleAssignment,
|
|
289
291
|
PublicRoleAssignmentRequest,
|
|
292
|
+
PublicRoleDefinition,
|
|
290
293
|
RdapBase,
|
|
291
294
|
ReferrerStatsBucket,
|
|
292
295
|
RegistryLockBase,
|
|
@@ -1060,6 +1063,26 @@ export const KEYS_CREATE_REPORT_REQ = [
|
|
|
1060
1063
|
KEY_CREATE_REPORT_REQ_REPORT_TYPE,
|
|
1061
1064
|
] as const satisfies (keyof CreateReportReq)[];
|
|
1062
1065
|
|
|
1066
|
+
export const KEY_CUSTOM_ROLE_CREATE_DESCRIPTION = 'description' satisfies keyof CustomRoleCreate;
|
|
1067
|
+
export const KEY_CUSTOM_ROLE_CREATE_NAME = 'name' satisfies keyof CustomRoleCreate;
|
|
1068
|
+
export const KEY_CUSTOM_ROLE_CREATE_PERMISSIONS = 'permissions' satisfies keyof CustomRoleCreate;
|
|
1069
|
+
|
|
1070
|
+
export const KEYS_CUSTOM_ROLE_CREATE = [
|
|
1071
|
+
KEY_CUSTOM_ROLE_CREATE_DESCRIPTION,
|
|
1072
|
+
KEY_CUSTOM_ROLE_CREATE_NAME,
|
|
1073
|
+
KEY_CUSTOM_ROLE_CREATE_PERMISSIONS,
|
|
1074
|
+
] as const satisfies (keyof CustomRoleCreate)[];
|
|
1075
|
+
|
|
1076
|
+
export const KEY_CUSTOM_ROLE_UPDATE_DESCRIPTION = 'description' satisfies keyof CustomRoleUpdate;
|
|
1077
|
+
export const KEY_CUSTOM_ROLE_UPDATE_NAME = 'name' satisfies keyof CustomRoleUpdate;
|
|
1078
|
+
export const KEY_CUSTOM_ROLE_UPDATE_PERMISSIONS = 'permissions' satisfies keyof CustomRoleUpdate;
|
|
1079
|
+
|
|
1080
|
+
export const KEYS_CUSTOM_ROLE_UPDATE = [
|
|
1081
|
+
KEY_CUSTOM_ROLE_UPDATE_DESCRIPTION,
|
|
1082
|
+
KEY_CUSTOM_ROLE_UPDATE_NAME,
|
|
1083
|
+
KEY_CUSTOM_ROLE_UPDATE_PERMISSIONS,
|
|
1084
|
+
] as const satisfies (keyof CustomRoleUpdate)[];
|
|
1085
|
+
|
|
1063
1086
|
export const KEY_DNS_CHANGE_ACTION = 'action' satisfies keyof DnsChange;
|
|
1064
1087
|
export const KEY_DNS_CHANGE_RECORD_DATA = 'record_data' satisfies keyof DnsChange;
|
|
1065
1088
|
export const KEY_DNS_CHANGE_RRSET_NAME = 'rrset_name' satisfies keyof DnsChange;
|
|
@@ -3960,6 +3983,24 @@ export const KEYS_PUBLIC_ROLE_ASSIGNMENT_REQUEST = [
|
|
|
3960
3983
|
KEY_PUBLIC_ROLE_ASSIGNMENT_REQUEST_ROLE,
|
|
3961
3984
|
] as const satisfies (keyof PublicRoleAssignmentRequest)[];
|
|
3962
3985
|
|
|
3986
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_BUILT_IN = 'built_in' satisfies keyof PublicRoleDefinition;
|
|
3987
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_CREATED_ON = 'created_on' satisfies keyof PublicRoleDefinition;
|
|
3988
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_DESCRIPTION = 'description' satisfies keyof PublicRoleDefinition;
|
|
3989
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_LABEL = 'label' satisfies keyof PublicRoleDefinition;
|
|
3990
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_NAME = 'name' satisfies keyof PublicRoleDefinition;
|
|
3991
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_PERMISSIONS = 'permissions' satisfies keyof PublicRoleDefinition;
|
|
3992
|
+
export const KEY_PUBLIC_ROLE_DEFINITION_UPDATED_ON = 'updated_on' satisfies keyof PublicRoleDefinition;
|
|
3993
|
+
|
|
3994
|
+
export const KEYS_PUBLIC_ROLE_DEFINITION = [
|
|
3995
|
+
KEY_PUBLIC_ROLE_DEFINITION_BUILT_IN,
|
|
3996
|
+
KEY_PUBLIC_ROLE_DEFINITION_CREATED_ON,
|
|
3997
|
+
KEY_PUBLIC_ROLE_DEFINITION_DESCRIPTION,
|
|
3998
|
+
KEY_PUBLIC_ROLE_DEFINITION_LABEL,
|
|
3999
|
+
KEY_PUBLIC_ROLE_DEFINITION_NAME,
|
|
4000
|
+
KEY_PUBLIC_ROLE_DEFINITION_PERMISSIONS,
|
|
4001
|
+
KEY_PUBLIC_ROLE_DEFINITION_UPDATED_ON,
|
|
4002
|
+
] as const satisfies (keyof PublicRoleDefinition)[];
|
|
4003
|
+
|
|
3963
4004
|
export const KEY_RDAP_BASE_RDAP_SERVER = 'rdap_server' satisfies keyof RdapBase;
|
|
3964
4005
|
|
|
3965
4006
|
export const KEYS_RDAP_BASE = [
|
|
@@ -9,6 +9,8 @@ import type {
|
|
|
9
9
|
ContextCreateRequest,
|
|
10
10
|
ConversationCreateRequest,
|
|
11
11
|
ConversationPatchRequest,
|
|
12
|
+
CustomRoleCreate,
|
|
13
|
+
CustomRoleUpdate,
|
|
12
14
|
DnsZoneCreate,
|
|
13
15
|
DnsZoneRecordsPatchOps,
|
|
14
16
|
DnsZoneRrsetsCreate,
|
|
@@ -843,6 +845,34 @@ export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Request = {
|
|
|
843
845
|
export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Request_Path = PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Request['parameters']['path'];
|
|
844
846
|
export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Request_Body = PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Request['requestBody'];
|
|
845
847
|
|
|
848
|
+
export type GET_OrganizationsRolePermissions_Request = {
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
export type GET_OrganizationsRoles_Request = {
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
export type POST_OrganizationsRoles_Request = {
|
|
855
|
+
requestBody: CustomRoleCreate;
|
|
856
|
+
};
|
|
857
|
+
export type POST_OrganizationsRoles_Request_Body = POST_OrganizationsRoles_Request['requestBody'];
|
|
858
|
+
|
|
859
|
+
export type DELETE_OrganizationsRolesByLabel_Request = {
|
|
860
|
+
parameters: operations['delete_role_v1_organizations_roles__label__delete']['parameters'];
|
|
861
|
+
};
|
|
862
|
+
export type DELETE_OrganizationsRolesByLabel_Request_Path = DELETE_OrganizationsRolesByLabel_Request['parameters']['path'];
|
|
863
|
+
|
|
864
|
+
export type GET_OrganizationsRolesByLabel_Request = {
|
|
865
|
+
parameters: operations['get_role_v1_organizations_roles__label__get']['parameters'];
|
|
866
|
+
};
|
|
867
|
+
export type GET_OrganizationsRolesByLabel_Request_Path = GET_OrganizationsRolesByLabel_Request['parameters']['path'];
|
|
868
|
+
|
|
869
|
+
export type PATCH_OrganizationsRolesByLabel_Request = {
|
|
870
|
+
parameters: operations['update_role_v1_organizations_roles__label__patch']['parameters'];
|
|
871
|
+
requestBody: CustomRoleUpdate;
|
|
872
|
+
};
|
|
873
|
+
export type PATCH_OrganizationsRolesByLabel_Request_Path = PATCH_OrganizationsRolesByLabel_Request['parameters']['path'];
|
|
874
|
+
export type PATCH_OrganizationsRolesByLabel_Request_Body = PATCH_OrganizationsRolesByLabel_Request['requestBody'];
|
|
875
|
+
|
|
846
876
|
export type GET_OrganizationsUsers_Request = {
|
|
847
877
|
parameters: operations['list_users_v1_organizations_users_get']['parameters'];
|
|
848
878
|
};
|
|
@@ -86,6 +86,7 @@ import type {
|
|
|
86
86
|
PublicReportListRes,
|
|
87
87
|
PublicReportRes,
|
|
88
88
|
PublicRoleAssignment,
|
|
89
|
+
PublicRoleDefinition,
|
|
89
90
|
RequestAuthcode,
|
|
90
91
|
RequestAuthcode2,
|
|
91
92
|
Tag,
|
|
@@ -205,16 +206,23 @@ export type DELETE_OrganizationsIpRestrictionsByIpRestrictionId_Response_401 = P
|
|
|
205
206
|
export type DELETE_OrganizationsIpRestrictionsByIpRestrictionId_Response_403 = Problem;
|
|
206
207
|
export type DELETE_OrganizationsIpRestrictionsByIpRestrictionId_Response_422 = HTTPValidationError;
|
|
207
208
|
|
|
209
|
+
export type DELETE_OrganizationsRolesByLabel_Response = DELETE_OrganizationsRolesByLabel_Response_401 | DELETE_OrganizationsRolesByLabel_Response_403 | DELETE_OrganizationsRolesByLabel_Response_404 | DELETE_OrganizationsRolesByLabel_Response_409 | DELETE_OrganizationsRolesByLabel_Response_422;
|
|
210
|
+
|
|
211
|
+
export type DELETE_OrganizationsRolesByLabel_Response_401 = Problem;
|
|
212
|
+
export type DELETE_OrganizationsRolesByLabel_Response_403 = Problem;
|
|
213
|
+
export type DELETE_OrganizationsRolesByLabel_Response_404 = Problem;
|
|
214
|
+
export type DELETE_OrganizationsRolesByLabel_Response_409 = Problem;
|
|
215
|
+
export type DELETE_OrganizationsRolesByLabel_Response_422 = HTTPValidationError;
|
|
216
|
+
|
|
208
217
|
export type DELETE_TagsByTagId_Response = DELETE_TagsByTagId_Response_401 | DELETE_TagsByTagId_Response_404 | DELETE_TagsByTagId_Response_422;
|
|
209
218
|
|
|
210
219
|
export type DELETE_TagsByTagId_Response_401 = Problem;
|
|
211
220
|
export type DELETE_TagsByTagId_Response_404 = Problem;
|
|
212
221
|
export type DELETE_TagsByTagId_Response_422 = HTTPValidationError;
|
|
213
222
|
|
|
214
|
-
export type DELETE_UsersByUserId_Response = DELETE_UsersByUserId_Response_403 |
|
|
223
|
+
export type DELETE_UsersByUserId_Response = DELETE_UsersByUserId_Response_403 | DELETE_UsersByUserId_Response_422;
|
|
215
224
|
|
|
216
225
|
export type DELETE_UsersByUserId_Response_403 = Problem;
|
|
217
|
-
export type DELETE_UsersByUserId_Response_409 = Problem;
|
|
218
226
|
export type DELETE_UsersByUserId_Response_422 = HTTPValidationError;
|
|
219
227
|
|
|
220
228
|
export type GET_AiConciergeContextsByContextId_Response = GET_AiConciergeContextsByContextId_Response_200 | GET_AiConciergeContextsByContextId_Response_401 | GET_AiConciergeContextsByContextId_Response_404 | GET_AiConciergeContextsByContextId_Response_422 | GET_AiConciergeContextsByContextId_Response_502;
|
|
@@ -657,6 +665,28 @@ export type GET_OrganizationsIpRestrictionsByIpRestrictionId_Response_401 = Prob
|
|
|
657
665
|
export type GET_OrganizationsIpRestrictionsByIpRestrictionId_Response_403 = Problem;
|
|
658
666
|
export type GET_OrganizationsIpRestrictionsByIpRestrictionId_Response_422 = HTTPValidationError;
|
|
659
667
|
|
|
668
|
+
export type GET_OrganizationsRolePermissions_Response = GET_OrganizationsRolePermissions_Response_200 | GET_OrganizationsRolePermissions_Response_401 | GET_OrganizationsRolePermissions_Response_403 | GET_OrganizationsRolePermissions_Response_422;
|
|
669
|
+
|
|
670
|
+
export type GET_OrganizationsRolePermissions_Response_200 = PublicPermissionSet;
|
|
671
|
+
export type GET_OrganizationsRolePermissions_Response_401 = Problem;
|
|
672
|
+
export type GET_OrganizationsRolePermissions_Response_403 = Problem;
|
|
673
|
+
export type GET_OrganizationsRolePermissions_Response_422 = HTTPValidationError;
|
|
674
|
+
|
|
675
|
+
export type GET_OrganizationsRoles_Response = GET_OrganizationsRoles_Response_200 | GET_OrganizationsRoles_Response_401 | GET_OrganizationsRoles_Response_403 | GET_OrganizationsRoles_Response_422;
|
|
676
|
+
|
|
677
|
+
export type GET_OrganizationsRoles_Response_200 = PublicRoleDefinition[];
|
|
678
|
+
export type GET_OrganizationsRoles_Response_401 = Problem;
|
|
679
|
+
export type GET_OrganizationsRoles_Response_403 = Problem;
|
|
680
|
+
export type GET_OrganizationsRoles_Response_422 = HTTPValidationError;
|
|
681
|
+
|
|
682
|
+
export type GET_OrganizationsRolesByLabel_Response = GET_OrganizationsRolesByLabel_Response_200 | GET_OrganizationsRolesByLabel_Response_401 | GET_OrganizationsRolesByLabel_Response_403 | GET_OrganizationsRolesByLabel_Response_404 | GET_OrganizationsRolesByLabel_Response_422;
|
|
683
|
+
|
|
684
|
+
export type GET_OrganizationsRolesByLabel_Response_200 = PublicRoleDefinition;
|
|
685
|
+
export type GET_OrganizationsRolesByLabel_Response_401 = Problem;
|
|
686
|
+
export type GET_OrganizationsRolesByLabel_Response_403 = Problem;
|
|
687
|
+
export type GET_OrganizationsRolesByLabel_Response_404 = Problem;
|
|
688
|
+
export type GET_OrganizationsRolesByLabel_Response_422 = HTTPValidationError;
|
|
689
|
+
|
|
660
690
|
export type GET_OrganizationsUsers_Response = GET_OrganizationsUsers_Response_200 | GET_OrganizationsUsers_Response_401 | GET_OrganizationsUsers_Response_403 | GET_OrganizationsUsers_Response_422;
|
|
661
691
|
|
|
662
692
|
export type GET_OrganizationsUsers_Response_200 = Pagination_UserPublicWithRole;
|
|
@@ -868,6 +898,15 @@ export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Response_401 = Pr
|
|
|
868
898
|
export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Response_403 = Problem;
|
|
869
899
|
export type PATCH_OrganizationsIpRestrictionsByIpRestrictionId_Response_422 = HTTPValidationError;
|
|
870
900
|
|
|
901
|
+
export type PATCH_OrganizationsRolesByLabel_Response = PATCH_OrganizationsRolesByLabel_Response_200 | PATCH_OrganizationsRolesByLabel_Response_401 | PATCH_OrganizationsRolesByLabel_Response_403 | PATCH_OrganizationsRolesByLabel_Response_404 | PATCH_OrganizationsRolesByLabel_Response_409 | PATCH_OrganizationsRolesByLabel_Response_422;
|
|
902
|
+
|
|
903
|
+
export type PATCH_OrganizationsRolesByLabel_Response_200 = PublicRoleDefinition;
|
|
904
|
+
export type PATCH_OrganizationsRolesByLabel_Response_401 = Problem;
|
|
905
|
+
export type PATCH_OrganizationsRolesByLabel_Response_403 = Problem;
|
|
906
|
+
export type PATCH_OrganizationsRolesByLabel_Response_404 = Problem;
|
|
907
|
+
export type PATCH_OrganizationsRolesByLabel_Response_409 = Problem;
|
|
908
|
+
export type PATCH_OrganizationsRolesByLabel_Response_422 = HTTPValidationError;
|
|
909
|
+
|
|
871
910
|
export type PATCH_TagsByTagId_Response = PATCH_TagsByTagId_Response_200 | PATCH_TagsByTagId_Response_401 | PATCH_TagsByTagId_Response_404 | PATCH_TagsByTagId_Response_409 | PATCH_TagsByTagId_Response_422;
|
|
872
911
|
|
|
873
912
|
export type PATCH_TagsByTagId_Response_200 = Tag;
|
|
@@ -1143,6 +1182,14 @@ export type POST_OrganizationsIpRestrictions_Response_401 = Problem;
|
|
|
1143
1182
|
export type POST_OrganizationsIpRestrictions_Response_403 = Problem;
|
|
1144
1183
|
export type POST_OrganizationsIpRestrictions_Response_422 = HTTPValidationError;
|
|
1145
1184
|
|
|
1185
|
+
export type POST_OrganizationsRoles_Response = POST_OrganizationsRoles_Response_201 | POST_OrganizationsRoles_Response_401 | POST_OrganizationsRoles_Response_403 | POST_OrganizationsRoles_Response_409 | POST_OrganizationsRoles_Response_422;
|
|
1186
|
+
|
|
1187
|
+
export type POST_OrganizationsRoles_Response_201 = PublicRoleDefinition;
|
|
1188
|
+
export type POST_OrganizationsRoles_Response_401 = Problem;
|
|
1189
|
+
export type POST_OrganizationsRoles_Response_403 = Problem;
|
|
1190
|
+
export type POST_OrganizationsRoles_Response_409 = Problem;
|
|
1191
|
+
export type POST_OrganizationsRoles_Response_422 = HTTPValidationError;
|
|
1192
|
+
|
|
1146
1193
|
export type POST_ParkingSignup_Response = POST_ParkingSignup_Response_200 | POST_ParkingSignup_Response_401 | POST_ParkingSignup_Response_403 | POST_ParkingSignup_Response_422;
|
|
1147
1194
|
|
|
1148
1195
|
export type POST_ParkingSignup_Response_200 = ParkingSignup;
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -68,6 +68,8 @@ export type ConversationPatchRequest = components['schemas']['ConversationPatchR
|
|
|
68
68
|
export type CreateJobBatch = components['schemas']['CreateJobBatchResponse'];
|
|
69
69
|
export type CreateReportReq = components['schemas']['CreateReportReq'];
|
|
70
70
|
export type Currency = components['schemas']['Currency'];
|
|
71
|
+
export type CustomRoleCreate = components['schemas']['CustomRoleCreate'];
|
|
72
|
+
export type CustomRoleUpdate = components['schemas']['CustomRoleUpdate'];
|
|
71
73
|
export type DeletePolicyType = components['schemas']['DeletePolicyType'];
|
|
72
74
|
export type DnsChangeAction = components['schemas']['DnsChangeAction'];
|
|
73
75
|
export type DnsChange = components['schemas']['DnsChangeResponse'];
|
|
@@ -394,6 +396,7 @@ export type PublicResource = components['schemas']['PublicResource'];
|
|
|
394
396
|
export type PublicRole = components['schemas']['PublicRole'];
|
|
395
397
|
export type PublicRoleAssignment = components['schemas']['PublicRoleAssignment'];
|
|
396
398
|
export type PublicRoleAssignmentRequest = components['schemas']['PublicRoleAssignmentRequest'];
|
|
399
|
+
export type PublicRoleDefinition = components['schemas']['PublicRoleDefinition'];
|
|
397
400
|
export type PublicScope = components['schemas']['PublicScope'];
|
|
398
401
|
export type RdapBase = components['schemas']['RdapBase'];
|
|
399
402
|
export type RedirectCode = components['schemas']['RedirectCode'];
|