@opusdns/api 1.158.0 → 1.159.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 +19 -0
- package/src/helpers/keys.ts +2 -0
- package/src/helpers/schemas.d.ts +1 -0
- package/src/openapi.yaml +21 -1
- package/src/schema.d.ts +13 -0
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -66,6 +66,7 @@ import type {
|
|
|
66
66
|
LegalRequirementOperationType,
|
|
67
67
|
LegalRequirementType,
|
|
68
68
|
LocalPresenceRequirementType,
|
|
69
|
+
MailTemplateCategory,
|
|
69
70
|
MemoryFactKind,
|
|
70
71
|
MessageRole,
|
|
71
72
|
MetricsGrouping,
|
|
@@ -1244,6 +1245,24 @@ export const LOCAL_PRESENCE_REQUIREMENT_TYPE_VALUES = [
|
|
|
1244
1245
|
'business_entity',
|
|
1245
1246
|
] as const satisfies ReadonlyArray<LocalPresenceRequirementType>;
|
|
1246
1247
|
|
|
1248
|
+
export const MAIL_TEMPLATE_CATEGORY = {
|
|
1249
|
+
ORGANIZATION: "organization",
|
|
1250
|
+
BILLING: "billing",
|
|
1251
|
+
USER_ACCOUNT: "user_account",
|
|
1252
|
+
ICANN_POLICY: "icann_policy",
|
|
1253
|
+
TLD_SPECIFIC: "tld_specific",
|
|
1254
|
+
UNKNOWN: "unknown",
|
|
1255
|
+
} as const satisfies Record<string, MailTemplateCategory>;
|
|
1256
|
+
|
|
1257
|
+
export const MAIL_TEMPLATE_CATEGORY_VALUES = [
|
|
1258
|
+
'organization',
|
|
1259
|
+
'billing',
|
|
1260
|
+
'user_account',
|
|
1261
|
+
'icann_policy',
|
|
1262
|
+
'tld_specific',
|
|
1263
|
+
'unknown',
|
|
1264
|
+
] as const satisfies ReadonlyArray<MailTemplateCategory>;
|
|
1265
|
+
|
|
1247
1266
|
export const MEMORY_FACT_KIND = {
|
|
1248
1267
|
PREFERENCE: "preference",
|
|
1249
1268
|
NOTE: "note",
|
package/src/helpers/keys.ts
CHANGED
|
@@ -3954,6 +3954,7 @@ export const KEYS_LOGO = [
|
|
|
3954
3954
|
] as const satisfies (keyof Logo)[];
|
|
3955
3955
|
|
|
3956
3956
|
export const KEY_MAIL_TEMPLATE_BLOCKS = 'blocks' satisfies keyof MailTemplate;
|
|
3957
|
+
export const KEY_MAIL_TEMPLATE_CATEGORY = 'category' satisfies keyof MailTemplate;
|
|
3957
3958
|
export const KEY_MAIL_TEMPLATE_LABEL = 'label' satisfies keyof MailTemplate;
|
|
3958
3959
|
export const KEY_MAIL_TEMPLATE_LOCALES = 'locales' satisfies keyof MailTemplate;
|
|
3959
3960
|
export const KEY_MAIL_TEMPLATE_SUBJECT = 'subject' satisfies keyof MailTemplate;
|
|
@@ -3962,6 +3963,7 @@ export const KEY_MAIL_TEMPLATE_VERSION = 'version' satisfies keyof MailTemplate;
|
|
|
3962
3963
|
|
|
3963
3964
|
export const KEYS_MAIL_TEMPLATE = [
|
|
3964
3965
|
KEY_MAIL_TEMPLATE_BLOCKS,
|
|
3966
|
+
KEY_MAIL_TEMPLATE_CATEGORY,
|
|
3965
3967
|
KEY_MAIL_TEMPLATE_LABEL,
|
|
3966
3968
|
KEY_MAIL_TEMPLATE_LOCALES,
|
|
3967
3969
|
KEY_MAIL_TEMPLATE_SUBJECT,
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -360,6 +360,7 @@ export type Logo = components['schemas']['Logo'];
|
|
|
360
360
|
export type MailTemplate = components['schemas']['MailTemplate'];
|
|
361
361
|
export type MailTemplateBlock = components['schemas']['MailTemplateBlock'];
|
|
362
362
|
export type MailTemplateCatalogRes = components['schemas']['MailTemplateCatalogRes'];
|
|
363
|
+
export type MailTemplateCategory = components['schemas']['MailTemplateCategory'];
|
|
363
364
|
export type MailTemplateVariable = components['schemas']['MailTemplateVariable'];
|
|
364
365
|
export type MemoryFact = components['schemas']['MemoryFact'];
|
|
365
366
|
export type MemoryFactCreateRequest = components['schemas']['MemoryFactCreateRequest'];
|
package/src/openapi.yaml
CHANGED
|
@@ -9538,6 +9538,10 @@ components:
|
|
|
9538
9538
|
description: Org-editable content blocks
|
|
9539
9539
|
title: Blocks
|
|
9540
9540
|
type: object
|
|
9541
|
+
category:
|
|
9542
|
+
$ref: '#/components/schemas/MailTemplateCategory'
|
|
9543
|
+
default: unknown
|
|
9544
|
+
description: Template category for grouping in the editor
|
|
9541
9545
|
label:
|
|
9542
9546
|
default: ''
|
|
9543
9547
|
description: Human-readable template name for display
|
|
@@ -9599,6 +9603,22 @@ components:
|
|
|
9599
9603
|
description: The editable-template catalog keyed by template name.
|
|
9600
9604
|
title: MailTemplateCatalogRes
|
|
9601
9605
|
type: object
|
|
9606
|
+
MailTemplateCategory:
|
|
9607
|
+
description: 'Category a template is grouped under in the editor. mail-service
|
|
9608
|
+
owns the set
|
|
9609
|
+
|
|
9610
|
+
and validates it; a value it adds before this enum is updated decodes to UNKNOWN
|
|
9611
|
+
|
|
9612
|
+
rather than failing the catalog (see MailTemplate._coerce_category).'
|
|
9613
|
+
enum:
|
|
9614
|
+
- organization
|
|
9615
|
+
- billing
|
|
9616
|
+
- user_account
|
|
9617
|
+
- icann_policy
|
|
9618
|
+
- tld_specific
|
|
9619
|
+
- unknown
|
|
9620
|
+
title: MailTemplateCategory
|
|
9621
|
+
type: string
|
|
9602
9622
|
MailTemplateVariable:
|
|
9603
9623
|
properties:
|
|
9604
9624
|
required:
|
|
@@ -16230,7 +16250,7 @@ info:
|
|
|
16230
16250
|
\n\n"
|
|
16231
16251
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
16232
16252
|
title: OpusDNS API
|
|
16233
|
-
version: 2026-09-
|
|
16253
|
+
version: 2026-09-08-081758
|
|
16234
16254
|
x-logo:
|
|
16235
16255
|
altText: OpusDNS API Reference
|
|
16236
16256
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -9474,6 +9474,11 @@ export interface components {
|
|
|
9474
9474
|
blocks?: {
|
|
9475
9475
|
[key: string]: components["schemas"]["MailTemplateBlock"];
|
|
9476
9476
|
};
|
|
9477
|
+
/**
|
|
9478
|
+
* @description Template category for grouping in the editor
|
|
9479
|
+
* @default unknown
|
|
9480
|
+
*/
|
|
9481
|
+
category: components["schemas"]["MailTemplateCategory"];
|
|
9477
9482
|
/**
|
|
9478
9483
|
* Label
|
|
9479
9484
|
* @description Human-readable template name for display
|
|
@@ -9541,6 +9546,14 @@ export interface components {
|
|
|
9541
9546
|
MailTemplateCatalogRes: {
|
|
9542
9547
|
[key: string]: components["schemas"]["MailTemplate"];
|
|
9543
9548
|
};
|
|
9549
|
+
/**
|
|
9550
|
+
* MailTemplateCategory
|
|
9551
|
+
* @description Category a template is grouped under in the editor. mail-service owns the set
|
|
9552
|
+
* and validates it; a value it adds before this enum is updated decodes to UNKNOWN
|
|
9553
|
+
* rather than failing the catalog (see MailTemplate._coerce_category).
|
|
9554
|
+
* @enum {string}
|
|
9555
|
+
*/
|
|
9556
|
+
MailTemplateCategory: "organization" | "billing" | "user_account" | "icann_policy" | "tld_specific" | "unknown";
|
|
9544
9557
|
/** MailTemplateVariable */
|
|
9545
9558
|
MailTemplateVariable: {
|
|
9546
9559
|
/**
|