@opusdns/api 1.159.0 → 1.161.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/endpoints.ts +6 -0
- package/src/helpers/keys.ts +29 -0
- package/src/helpers/permissions.ts +24 -0
- package/src/helpers/requests.d.ts +25 -0
- package/src/helpers/responses.d.ts +32 -0
- package/src/helpers/schemas.d.ts +3 -0
- package/src/openapi.yaml +521 -209
- package/src/schema.d.ts +449 -76
package/package.json
CHANGED
package/src/helpers/endpoints.ts
CHANGED
|
@@ -147,6 +147,9 @@ export const VANITY_NAMESERVER_SETS_BY_SET_ID_RESTORE_ENDPOINT = '/v1/vanity-nam
|
|
|
147
147
|
export const VANITY_NAMESERVER_SETS_BY_SET_ID_RETRY_ENDPOINT = '/v1/vanity-nameserver-sets/{set_id}/retry';
|
|
148
148
|
export const VANITY_NAMESERVER_SETS_BY_SET_ID_ZONES_ENDPOINT = '/v1/vanity-nameserver-sets/{set_id}/zones';
|
|
149
149
|
export const WHITELABEL_BRANDING_ENDPOINT = '/v1/whitelabel-branding';
|
|
150
|
+
export const WHITELABEL_BRANDING_ASSETS_ENDPOINT = '/v1/whitelabel-branding/assets';
|
|
151
|
+
export const WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT = '/v1/whitelabel-branding/assets/{asset_id}';
|
|
152
|
+
export const WHITELABEL_BRANDING_DOCUMENT_ENDPOINT = '/v1/whitelabel-branding/document';
|
|
150
153
|
export const WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT = '/v1/whitelabel-branding/email/preview';
|
|
151
154
|
export const WHITELABEL_BRANDING_EMAIL_TEMPLATES_ENDPOINT = '/v1/whitelabel-branding/email/templates';
|
|
152
155
|
export const WHITELABEL_BRANDING_RECHECK_ENDPOINT = '/v1/whitelabel-branding/recheck';
|
|
@@ -303,6 +306,9 @@ export type Endpoint =
|
|
|
303
306
|
| typeof VANITY_NAMESERVER_SETS_BY_SET_ID_RETRY_ENDPOINT
|
|
304
307
|
| typeof VANITY_NAMESERVER_SETS_BY_SET_ID_ZONES_ENDPOINT
|
|
305
308
|
| typeof WHITELABEL_BRANDING_ENDPOINT
|
|
309
|
+
| typeof WHITELABEL_BRANDING_ASSETS_ENDPOINT
|
|
310
|
+
| typeof WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT
|
|
311
|
+
| typeof WHITELABEL_BRANDING_DOCUMENT_ENDPOINT
|
|
306
312
|
| typeof WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT
|
|
307
313
|
| typeof WHITELABEL_BRANDING_EMAIL_TEMPLATES_ENDPOINT
|
|
308
314
|
| typeof WHITELABEL_BRANDING_RECHECK_ENDPOINT
|
package/src/helpers/keys.ts
CHANGED
|
@@ -13,7 +13,9 @@ import type {
|
|
|
13
13
|
Auth,
|
|
14
14
|
BillingMetadata,
|
|
15
15
|
BillingTransaction,
|
|
16
|
+
Body_upload_whitelabel_asset_v1_whitelabel_branding_assets_post,
|
|
16
17
|
Brand,
|
|
18
|
+
BrandingAsset,
|
|
17
19
|
BrandingDocument,
|
|
18
20
|
BrowserStatsBucket,
|
|
19
21
|
BulkObjectTagChanges,
|
|
@@ -281,6 +283,7 @@ import type {
|
|
|
281
283
|
LaunchPhasesBase,
|
|
282
284
|
Legal,
|
|
283
285
|
LegalRequirementBase,
|
|
286
|
+
ListBrandingAssets,
|
|
284
287
|
ListVanityNameserverSetsRes,
|
|
285
288
|
ListZonesReferencingSetRes,
|
|
286
289
|
LocalPresenceBase,
|
|
@@ -645,6 +648,12 @@ export const KEYS_BILLING_TRANSACTION = [
|
|
|
645
648
|
KEY_BILLING_TRANSACTION_VOLUME,
|
|
646
649
|
] as const satisfies (keyof BillingTransaction)[];
|
|
647
650
|
|
|
651
|
+
export const KEY_BODY_UPLOAD_WHITELABEL_ASSET_V1_WHITELABEL_BRANDING_ASSETS_POST_FILE = 'file' satisfies keyof Body_upload_whitelabel_asset_v1_whitelabel_branding_assets_post;
|
|
652
|
+
|
|
653
|
+
export const KEYS_BODY_UPLOAD_WHITELABEL_ASSET_V1_WHITELABEL_BRANDING_ASSETS_POST = [
|
|
654
|
+
KEY_BODY_UPLOAD_WHITELABEL_ASSET_V1_WHITELABEL_BRANDING_ASSETS_POST_FILE,
|
|
655
|
+
] as const satisfies (keyof Body_upload_whitelabel_asset_v1_whitelabel_branding_assets_post)[];
|
|
656
|
+
|
|
648
657
|
export const KEY_BRAND_LOGO = 'logo' satisfies keyof Brand;
|
|
649
658
|
export const KEY_BRAND_NAME = 'name' satisfies keyof Brand;
|
|
650
659
|
|
|
@@ -653,6 +662,20 @@ export const KEYS_BRAND = [
|
|
|
653
662
|
KEY_BRAND_NAME,
|
|
654
663
|
] as const satisfies (keyof Brand)[];
|
|
655
664
|
|
|
665
|
+
export const KEY_BRANDING_ASSET_ASSET_ID = 'asset_id' satisfies keyof BrandingAsset;
|
|
666
|
+
export const KEY_BRANDING_ASSET_ASSET_URL = 'asset_url' satisfies keyof BrandingAsset;
|
|
667
|
+
export const KEY_BRANDING_ASSET_CONTENT_TYPE = 'content_type' satisfies keyof BrandingAsset;
|
|
668
|
+
export const KEY_BRANDING_ASSET_SIZE_BYTES = 'size_bytes' satisfies keyof BrandingAsset;
|
|
669
|
+
export const KEY_BRANDING_ASSET_UPDATED_ON = 'updated_on' satisfies keyof BrandingAsset;
|
|
670
|
+
|
|
671
|
+
export const KEYS_BRANDING_ASSET = [
|
|
672
|
+
KEY_BRANDING_ASSET_ASSET_ID,
|
|
673
|
+
KEY_BRANDING_ASSET_ASSET_URL,
|
|
674
|
+
KEY_BRANDING_ASSET_CONTENT_TYPE,
|
|
675
|
+
KEY_BRANDING_ASSET_SIZE_BYTES,
|
|
676
|
+
KEY_BRANDING_ASSET_UPDATED_ON,
|
|
677
|
+
] as const satisfies (keyof BrandingAsset)[];
|
|
678
|
+
|
|
656
679
|
export const KEY_BRANDING_DOCUMENT_AUTH = 'auth' satisfies keyof BrandingDocument;
|
|
657
680
|
export const KEY_BRANDING_DOCUMENT_BRAND = 'brand' satisfies keyof BrandingDocument;
|
|
658
681
|
export const KEY_BRANDING_DOCUMENT_CONTENT = 'content' satisfies keyof BrandingDocument;
|
|
@@ -3911,6 +3934,12 @@ export const KEYS_LEGAL_REQUIREMENT_BASE = [
|
|
|
3911
3934
|
KEY_LEGAL_REQUIREMENT_BASE_URL,
|
|
3912
3935
|
] as const satisfies (keyof LegalRequirementBase)[];
|
|
3913
3936
|
|
|
3937
|
+
export const KEY_LIST_BRANDING_ASSETS_ASSETS = 'assets' satisfies keyof ListBrandingAssets;
|
|
3938
|
+
|
|
3939
|
+
export const KEYS_LIST_BRANDING_ASSETS = [
|
|
3940
|
+
KEY_LIST_BRANDING_ASSETS_ASSETS,
|
|
3941
|
+
] as const satisfies (keyof ListBrandingAssets)[];
|
|
3942
|
+
|
|
3914
3943
|
export const KEY_LIST_VANITY_NAMESERVER_SETS_RES_PAGINATION = 'pagination' satisfies keyof ListVanityNameserverSetsRes;
|
|
3915
3944
|
export const KEY_LIST_VANITY_NAMESERVER_SETS_RES_RESULTS = 'results' satisfies keyof ListVanityNameserverSetsRes;
|
|
3916
3945
|
|
|
@@ -150,6 +150,9 @@ import {
|
|
|
150
150
|
VANITY_NAMESERVER_SETS_CHECK_ENDPOINT,
|
|
151
151
|
VANITY_NAMESERVER_SETS_DEFAULT_ENDPOINT,
|
|
152
152
|
VANITY_NAMESERVER_SETS_ENDPOINT,
|
|
153
|
+
WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT,
|
|
154
|
+
WHITELABEL_BRANDING_ASSETS_ENDPOINT,
|
|
155
|
+
WHITELABEL_BRANDING_DOCUMENT_ENDPOINT,
|
|
153
156
|
WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT,
|
|
154
157
|
WHITELABEL_BRANDING_EMAIL_TEMPLATES_ENDPOINT,
|
|
155
158
|
WHITELABEL_BRANDING_ENDPOINT,
|
|
@@ -1260,6 +1263,27 @@ export const REQUIRED_PERMISSIONS = {
|
|
|
1260
1263
|
patch: [],
|
|
1261
1264
|
delete: [],
|
|
1262
1265
|
},
|
|
1266
|
+
[WHITELABEL_BRANDING_ASSETS_BY_ASSET_ID_ENDPOINT]: {
|
|
1267
|
+
get: [],
|
|
1268
|
+
post: [],
|
|
1269
|
+
put: [],
|
|
1270
|
+
patch: [],
|
|
1271
|
+
delete: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_MANAGE],
|
|
1272
|
+
},
|
|
1273
|
+
[WHITELABEL_BRANDING_ASSETS_ENDPOINT]: {
|
|
1274
|
+
get: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_READ],
|
|
1275
|
+
post: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_MANAGE],
|
|
1276
|
+
put: [],
|
|
1277
|
+
patch: [],
|
|
1278
|
+
delete: [],
|
|
1279
|
+
},
|
|
1280
|
+
[WHITELABEL_BRANDING_DOCUMENT_ENDPOINT]: {
|
|
1281
|
+
get: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_READ],
|
|
1282
|
+
post: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_MANAGE],
|
|
1283
|
+
put: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_MANAGE],
|
|
1284
|
+
patch: [],
|
|
1285
|
+
delete: [],
|
|
1286
|
+
},
|
|
1263
1287
|
[WHITELABEL_BRANDING_EMAIL_PREVIEW_ENDPOINT]: {
|
|
1264
1288
|
get: [],
|
|
1265
1289
|
post: [PUBLIC_PERMISSION.WHITELABEL_BRANDING_MANAGE],
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { operations } from '../schema';
|
|
2
2
|
import type {
|
|
3
|
+
BrandingDocument,
|
|
3
4
|
BulkObjectTagChanges,
|
|
4
5
|
ClaimsNoticesRequest,
|
|
5
6
|
ContactAttestReq,
|
|
@@ -1191,6 +1192,30 @@ export type PATCH_WhitelabelBranding_Request_Body = PATCH_WhitelabelBranding_Req
|
|
|
1191
1192
|
export type POST_WhitelabelBranding_Request = {
|
|
1192
1193
|
};
|
|
1193
1194
|
|
|
1195
|
+
export type GET_WhitelabelBrandingAssets_Request = {
|
|
1196
|
+
};
|
|
1197
|
+
|
|
1198
|
+
export type POST_WhitelabelBrandingAssets_Request = {
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
export type DELETE_WhitelabelBrandingAssetsByAssetId_Request = {
|
|
1202
|
+
parameters: operations['delete_whitelabel_asset_v1_whitelabel_branding_assets__asset_id__delete']['parameters'];
|
|
1203
|
+
};
|
|
1204
|
+
export type DELETE_WhitelabelBrandingAssetsByAssetId_Request_Path = DELETE_WhitelabelBrandingAssetsByAssetId_Request['parameters']['path'];
|
|
1205
|
+
|
|
1206
|
+
export type GET_WhitelabelBrandingDocument_Request = {
|
|
1207
|
+
};
|
|
1208
|
+
|
|
1209
|
+
export type POST_WhitelabelBrandingDocument_Request = {
|
|
1210
|
+
requestBody: BrandingDocument;
|
|
1211
|
+
};
|
|
1212
|
+
export type POST_WhitelabelBrandingDocument_Request_Body = POST_WhitelabelBrandingDocument_Request['requestBody'];
|
|
1213
|
+
|
|
1214
|
+
export type PUT_WhitelabelBrandingDocument_Request = {
|
|
1215
|
+
requestBody: BrandingDocument;
|
|
1216
|
+
};
|
|
1217
|
+
export type PUT_WhitelabelBrandingDocument_Request_Body = PUT_WhitelabelBrandingDocument_Request['requestBody'];
|
|
1218
|
+
|
|
1194
1219
|
export type POST_WhitelabelBrandingEmailPreview_Request = {
|
|
1195
1220
|
requestBody: PreviewMailReq;
|
|
1196
1221
|
};
|
|
@@ -2,6 +2,8 @@ import type {
|
|
|
2
2
|
AiInferenceUsageSeries,
|
|
3
3
|
AiInferenceUsageSummary,
|
|
4
4
|
BillingTransaction,
|
|
5
|
+
BrandingAsset,
|
|
6
|
+
BrandingDocument,
|
|
5
7
|
ClaimsNotices,
|
|
6
8
|
ClearVanityNameserverSetDefaultRes,
|
|
7
9
|
Contact,
|
|
@@ -51,6 +53,7 @@ import type {
|
|
|
51
53
|
Job,
|
|
52
54
|
JobBatchRetry,
|
|
53
55
|
JobBatchStatus,
|
|
56
|
+
ListBrandingAssets,
|
|
54
57
|
ListVanityNameserverSetsRes,
|
|
55
58
|
ListZonesReferencingSetRes,
|
|
56
59
|
MailTemplateCatalogRes,
|
|
@@ -256,6 +259,10 @@ export type DELETE_VanityNameserverSetsDefault_Response = DELETE_VanityNameserve
|
|
|
256
259
|
export type DELETE_VanityNameserverSetsDefault_Response_200 = ClearVanityNameserverSetDefaultRes;
|
|
257
260
|
export type DELETE_VanityNameserverSetsDefault_Response_422 = HTTPValidationError;
|
|
258
261
|
|
|
262
|
+
export type DELETE_WhitelabelBrandingAssetsByAssetId_Response = DELETE_WhitelabelBrandingAssetsByAssetId_Response_422;
|
|
263
|
+
|
|
264
|
+
export type DELETE_WhitelabelBrandingAssetsByAssetId_Response_422 = HTTPValidationError;
|
|
265
|
+
|
|
259
266
|
export type GET_AiConciergeContextsByContextId_Response = GET_AiConciergeContextsByContextId_Response_401 | GET_AiConciergeContextsByContextId_Response_404 | GET_AiConciergeContextsByContextId_Response_422 | GET_AiConciergeContextsByContextId_Response_502;
|
|
260
267
|
|
|
261
268
|
export type GET_AiConciergeContextsByContextId_Response_401 = Problem;
|
|
@@ -875,6 +882,16 @@ export type GET_WhitelabelBranding_Response = GET_WhitelabelBranding_Response_20
|
|
|
875
882
|
export type GET_WhitelabelBranding_Response_200 = WhitelabelBranding;
|
|
876
883
|
export type GET_WhitelabelBranding_Response_422 = HTTPValidationError;
|
|
877
884
|
|
|
885
|
+
export type GET_WhitelabelBrandingAssets_Response = GET_WhitelabelBrandingAssets_Response_200 | GET_WhitelabelBrandingAssets_Response_422;
|
|
886
|
+
|
|
887
|
+
export type GET_WhitelabelBrandingAssets_Response_200 = ListBrandingAssets;
|
|
888
|
+
export type GET_WhitelabelBrandingAssets_Response_422 = HTTPValidationError;
|
|
889
|
+
|
|
890
|
+
export type GET_WhitelabelBrandingDocument_Response = GET_WhitelabelBrandingDocument_Response_200 | GET_WhitelabelBrandingDocument_Response_422;
|
|
891
|
+
|
|
892
|
+
export type GET_WhitelabelBrandingDocument_Response_200 = BrandingDocument;
|
|
893
|
+
export type GET_WhitelabelBrandingDocument_Response_422 = HTTPValidationError;
|
|
894
|
+
|
|
878
895
|
export type GET_WhitelabelBrandingEmailTemplates_Response = GET_WhitelabelBrandingEmailTemplates_Response_200 | GET_WhitelabelBrandingEmailTemplates_Response_422;
|
|
879
896
|
|
|
880
897
|
export type GET_WhitelabelBrandingEmailTemplates_Response_200 = MailTemplateCatalogRes;
|
|
@@ -1446,6 +1463,16 @@ export type POST_WhitelabelBranding_Response = POST_WhitelabelBranding_Response_
|
|
|
1446
1463
|
export type POST_WhitelabelBranding_Response_202 = ProductCreateRes;
|
|
1447
1464
|
export type POST_WhitelabelBranding_Response_422 = HTTPValidationError;
|
|
1448
1465
|
|
|
1466
|
+
export type POST_WhitelabelBrandingAssets_Response = POST_WhitelabelBrandingAssets_Response_200 | POST_WhitelabelBrandingAssets_Response_422;
|
|
1467
|
+
|
|
1468
|
+
export type POST_WhitelabelBrandingAssets_Response_200 = BrandingAsset;
|
|
1469
|
+
export type POST_WhitelabelBrandingAssets_Response_422 = HTTPValidationError;
|
|
1470
|
+
|
|
1471
|
+
export type POST_WhitelabelBrandingDocument_Response = POST_WhitelabelBrandingDocument_Response_200 | POST_WhitelabelBrandingDocument_Response_422;
|
|
1472
|
+
|
|
1473
|
+
export type POST_WhitelabelBrandingDocument_Response_200 = BrandingDocument;
|
|
1474
|
+
export type POST_WhitelabelBrandingDocument_Response_422 = HTTPValidationError;
|
|
1475
|
+
|
|
1449
1476
|
export type POST_WhitelabelBrandingEmailPreview_Response = POST_WhitelabelBrandingEmailPreview_Response_200 | POST_WhitelabelBrandingEmailPreview_Response_422;
|
|
1450
1477
|
|
|
1451
1478
|
export type POST_WhitelabelBrandingEmailPreview_Response_200 = PreviewMailRes;
|
|
@@ -1529,3 +1556,8 @@ export type PUT_UsersByUserIdRole_Response_200 = PublicRoleAssignment;
|
|
|
1529
1556
|
export type PUT_UsersByUserIdRole_Response_403 = Problem;
|
|
1530
1557
|
export type PUT_UsersByUserIdRole_Response_404 = Problem;
|
|
1531
1558
|
export type PUT_UsersByUserIdRole_Response_422 = HTTPValidationError;
|
|
1559
|
+
|
|
1560
|
+
export type PUT_WhitelabelBrandingDocument_Response = PUT_WhitelabelBrandingDocument_Response_200 | PUT_WhitelabelBrandingDocument_Response_422;
|
|
1561
|
+
|
|
1562
|
+
export type PUT_WhitelabelBrandingDocument_Response_200 = BrandingDocument;
|
|
1563
|
+
export type PUT_WhitelabelBrandingDocument_Response_422 = HTTPValidationError;
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -25,7 +25,9 @@ export type BillingTransactionProductType = components['schemas']['BillingTransa
|
|
|
25
25
|
export type BillingTransaction = components['schemas']['BillingTransactionResponse'];
|
|
26
26
|
export type BillingTransactionSortField = components['schemas']['BillingTransactionSortField'];
|
|
27
27
|
export type BillingTransactionStatus = components['schemas']['BillingTransactionStatus'];
|
|
28
|
+
export type Body_upload_whitelabel_asset_v1_whitelabel_branding_assets_post = components['schemas']['Body_upload_whitelabel_asset_v1_whitelabel_branding_assets_post'];
|
|
28
29
|
export type Brand = components['schemas']['Brand'];
|
|
30
|
+
export type BrandingAsset = components['schemas']['BrandingAsset'];
|
|
29
31
|
export type BrandingDocument = components['schemas']['BrandingDocument'];
|
|
30
32
|
export type BrowserStatsBucket = components['schemas']['BrowserStatsBucket'];
|
|
31
33
|
export type BulkObjectTagChanges = components['schemas']['BulkObjectTagChanges'];
|
|
@@ -352,6 +354,7 @@ export type Legal = components['schemas']['Legal'];
|
|
|
352
354
|
export type LegalRequirementBase = components['schemas']['LegalRequirementBase'];
|
|
353
355
|
export type LegalRequirementOperationType = components['schemas']['LegalRequirementOperationType'];
|
|
354
356
|
export type LegalRequirementType = components['schemas']['LegalRequirementType'];
|
|
357
|
+
export type ListBrandingAssets = components['schemas']['ListBrandingAssetsResponse'];
|
|
355
358
|
export type ListVanityNameserverSetsRes = components['schemas']['ListVanityNameserverSetsRes'];
|
|
356
359
|
export type ListZonesReferencingSetRes = components['schemas']['ListZonesReferencingSetRes'];
|
|
357
360
|
export type LocalPresenceBase = components['schemas']['LocalPresenceBase'];
|