@opusdns/api 1.225.0 → 1.227.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/keys.ts +13 -0
- package/src/helpers/permissions.ts +3 -3
- package/src/helpers/schemas.d.ts +1 -0
- package/src/openapi.yaml +39 -5
- package/src/schema.d.ts +24 -1
package/package.json
CHANGED
package/src/helpers/keys.ts
CHANGED
|
@@ -325,6 +325,7 @@ import type {
|
|
|
325
325
|
NorIdDeclaration,
|
|
326
326
|
NorIdResellerDeclarationRequest,
|
|
327
327
|
ObjectLog,
|
|
328
|
+
ObjectLogChange,
|
|
328
329
|
ObjectTagChanges,
|
|
329
330
|
ObjectTagChanges2,
|
|
330
331
|
Organization,
|
|
@@ -4533,6 +4534,7 @@ export const KEYS_NOR_ID_RESELLER_DECLARATION_REQUEST = [
|
|
|
4533
4534
|
] as const satisfies (keyof NorIdResellerDeclarationRequest)[];
|
|
4534
4535
|
|
|
4535
4536
|
export const KEY_OBJECT_LOG_ACTION = 'action' satisfies keyof ObjectLog;
|
|
4537
|
+
export const KEY_OBJECT_LOG_CHANGES = 'changes' satisfies keyof ObjectLog;
|
|
4536
4538
|
export const KEY_OBJECT_LOG_CREATED_ON = 'created_on' satisfies keyof ObjectLog;
|
|
4537
4539
|
export const KEY_OBJECT_LOG_DETAILS = 'details' satisfies keyof ObjectLog;
|
|
4538
4540
|
export const KEY_OBJECT_LOG_OBJECT_ID = 'object_id' satisfies keyof ObjectLog;
|
|
@@ -4544,6 +4546,7 @@ export const KEY_OBJECT_LOG_SERVER_REQUEST_ID = 'server_request_id' satisfies ke
|
|
|
4544
4546
|
|
|
4545
4547
|
export const KEYS_OBJECT_LOG = [
|
|
4546
4548
|
KEY_OBJECT_LOG_ACTION,
|
|
4549
|
+
KEY_OBJECT_LOG_CHANGES,
|
|
4547
4550
|
KEY_OBJECT_LOG_CREATED_ON,
|
|
4548
4551
|
KEY_OBJECT_LOG_DETAILS,
|
|
4549
4552
|
KEY_OBJECT_LOG_OBJECT_ID,
|
|
@@ -4554,6 +4557,16 @@ export const KEYS_OBJECT_LOG = [
|
|
|
4554
4557
|
KEY_OBJECT_LOG_SERVER_REQUEST_ID,
|
|
4555
4558
|
] as const satisfies (keyof ObjectLog)[];
|
|
4556
4559
|
|
|
4560
|
+
export const KEY_OBJECT_LOG_CHANGE_FIELD = 'field' satisfies keyof ObjectLogChange;
|
|
4561
|
+
export const KEY_OBJECT_LOG_CHANGE_NEW_VALUE = 'new_value' satisfies keyof ObjectLogChange;
|
|
4562
|
+
export const KEY_OBJECT_LOG_CHANGE_OLD_VALUE = 'old_value' satisfies keyof ObjectLogChange;
|
|
4563
|
+
|
|
4564
|
+
export const KEYS_OBJECT_LOG_CHANGE = [
|
|
4565
|
+
KEY_OBJECT_LOG_CHANGE_FIELD,
|
|
4566
|
+
KEY_OBJECT_LOG_CHANGE_NEW_VALUE,
|
|
4567
|
+
KEY_OBJECT_LOG_CHANGE_OLD_VALUE,
|
|
4568
|
+
] as const satisfies (keyof ObjectLogChange)[];
|
|
4569
|
+
|
|
4557
4570
|
export const KEY_OBJECT_TAG_CHANGES_ADD = 'add' satisfies keyof ObjectTagChanges;
|
|
4558
4571
|
export const KEY_OBJECT_TAG_CHANGES_REMOVE = 'remove' satisfies keyof ObjectTagChanges;
|
|
4559
4572
|
|
|
@@ -305,21 +305,21 @@ export const REQUIRED_PERMISSIONS = {
|
|
|
305
305
|
delete: [],
|
|
306
306
|
},
|
|
307
307
|
[ARCHIVE_OBJECT_LOGS_BY_OBJECT_ID_ENDPOINT]: {
|
|
308
|
-
get: [PUBLIC_PERMISSION.
|
|
308
|
+
get: [PUBLIC_PERMISSION.AUDIT_LOGS_READ],
|
|
309
309
|
post: [],
|
|
310
310
|
put: [],
|
|
311
311
|
patch: [],
|
|
312
312
|
delete: [],
|
|
313
313
|
},
|
|
314
314
|
[ARCHIVE_OBJECT_LOGS_ENDPOINT]: {
|
|
315
|
-
get: [PUBLIC_PERMISSION.
|
|
315
|
+
get: [PUBLIC_PERMISSION.AUDIT_LOGS_READ],
|
|
316
316
|
post: [],
|
|
317
317
|
put: [],
|
|
318
318
|
patch: [],
|
|
319
319
|
delete: [],
|
|
320
320
|
},
|
|
321
321
|
[ARCHIVE_REQUEST_HISTORY_ENDPOINT]: {
|
|
322
|
-
get: [PUBLIC_PERMISSION.
|
|
322
|
+
get: [PUBLIC_PERMISSION.AUDIT_LOGS_READ],
|
|
323
323
|
post: [],
|
|
324
324
|
put: [],
|
|
325
325
|
patch: [],
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -414,6 +414,7 @@ export type NorIdDeclarationStatus = components['schemas']['NorIdDeclarationStat
|
|
|
414
414
|
export type NorIdResellerDeclarationRequest = components['schemas']['NorIdResellerDeclarationRequest'];
|
|
415
415
|
export type ObjectEventType = components['schemas']['ObjectEventType'];
|
|
416
416
|
export type ObjectLog = components['schemas']['ObjectLog'];
|
|
417
|
+
export type ObjectLogChange = components['schemas']['ObjectLogChange'];
|
|
417
418
|
export type ObjectLogSortField = components['schemas']['ObjectLogSortField'];
|
|
418
419
|
export type ObjectTagChanges = components['schemas']['ObjectTagChanges'];
|
|
419
420
|
export type ObjectTagChanges2 = components['schemas']['ObjectTagChangesResponse'];
|
package/src/openapi.yaml
CHANGED
|
@@ -18380,6 +18380,19 @@ components:
|
|
|
18380
18380
|
action:
|
|
18381
18381
|
$ref: '#/components/schemas/ObjectEventType'
|
|
18382
18382
|
description: Action performed
|
|
18383
|
+
changes:
|
|
18384
|
+
anyOf:
|
|
18385
|
+
- items:
|
|
18386
|
+
$ref: '#/components/schemas/ObjectLogChange'
|
|
18387
|
+
type: array
|
|
18388
|
+
- type: 'null'
|
|
18389
|
+
description: 'Fields that differ from the object''s previous log in the
|
|
18390
|
+
same organization. Empty when nothing changed; `null` when there was no
|
|
18391
|
+
previous log to compare with: the object''s first log in the organization,
|
|
18392
|
+
or a log written before changes were recorded. `updated_on` is not compared,
|
|
18393
|
+
arrays are compared regardless of order and reported whole, and sensitive
|
|
18394
|
+
values such as `auth_code` read `***REDACTED***`.'
|
|
18395
|
+
title: Changes
|
|
18383
18396
|
created_on:
|
|
18384
18397
|
description: Timestamp when the log was created
|
|
18385
18398
|
format: date-time
|
|
@@ -18390,7 +18403,8 @@ components:
|
|
|
18390
18403
|
- additionalProperties: true
|
|
18391
18404
|
type: object
|
|
18392
18405
|
- type: 'null'
|
|
18393
|
-
description:
|
|
18406
|
+
description: Snapshot of the whole object after the action; its shape depends
|
|
18407
|
+
on `object_type`
|
|
18394
18408
|
title: Details
|
|
18395
18409
|
object_id:
|
|
18396
18410
|
description: ID of the object
|
|
@@ -18429,6 +18443,26 @@ components:
|
|
|
18429
18443
|
- created_on
|
|
18430
18444
|
title: ObjectLog
|
|
18431
18445
|
type: object
|
|
18446
|
+
ObjectLogChange:
|
|
18447
|
+
properties:
|
|
18448
|
+
field:
|
|
18449
|
+
description: Dot-separated path of the field in the object, for example
|
|
18450
|
+
`renewal_mode` or `contacts.registrant`
|
|
18451
|
+
title: Field
|
|
18452
|
+
type: string
|
|
18453
|
+
new_value:
|
|
18454
|
+
description: Value of the field in this log; `null` when the field was absent
|
|
18455
|
+
title: New Value
|
|
18456
|
+
old_value:
|
|
18457
|
+
description: Value of the field in the object's previous log; `null` when
|
|
18458
|
+
the field was absent
|
|
18459
|
+
title: Old Value
|
|
18460
|
+
required:
|
|
18461
|
+
- field
|
|
18462
|
+
- old_value
|
|
18463
|
+
- new_value
|
|
18464
|
+
title: ObjectLogChange
|
|
18465
|
+
type: object
|
|
18432
18466
|
ObjectLogSortField:
|
|
18433
18467
|
enum:
|
|
18434
18468
|
- object_log_id
|
|
@@ -25072,7 +25106,7 @@ info:
|
|
|
25072
25106
|
\n\n"
|
|
25073
25107
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
25074
25108
|
title: OpusDNS API
|
|
25075
|
-
version: 2026-10-
|
|
25109
|
+
version: 2026-10-15-094627
|
|
25076
25110
|
x-logo:
|
|
25077
25111
|
altText: OpusDNS API Reference
|
|
25078
25112
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -26752,7 +26786,7 @@ paths:
|
|
|
26752
26786
|
tags:
|
|
26753
26787
|
- archive
|
|
26754
26788
|
x-required-permissions:
|
|
26755
|
-
-
|
|
26789
|
+
- audit_logs:read
|
|
26756
26790
|
/v1/archive/object-logs/{object_id}:
|
|
26757
26791
|
get:
|
|
26758
26792
|
description: Retrieve paginated audit logs for a specific object with optional
|
|
@@ -26907,7 +26941,7 @@ paths:
|
|
|
26907
26941
|
tags:
|
|
26908
26942
|
- archive
|
|
26909
26943
|
x-required-permissions:
|
|
26910
|
-
-
|
|
26944
|
+
- audit_logs:read
|
|
26911
26945
|
/v1/archive/request-history:
|
|
26912
26946
|
get:
|
|
26913
26947
|
description: Retrieves a paginated list of request history logs
|
|
@@ -27104,7 +27138,7 @@ paths:
|
|
|
27104
27138
|
tags:
|
|
27105
27139
|
- archive
|
|
27106
27140
|
x-required-permissions:
|
|
27107
|
-
-
|
|
27141
|
+
- audit_logs:read
|
|
27108
27142
|
/v1/auth/client_credentials/introspect:
|
|
27109
27143
|
get:
|
|
27110
27144
|
description: Returns the stored record for the API key (or organization token)
|
package/src/schema.d.ts
CHANGED
|
@@ -16304,6 +16304,11 @@ export interface components {
|
|
|
16304
16304
|
ObjectLog: {
|
|
16305
16305
|
/** @description Action performed */
|
|
16306
16306
|
action: components["schemas"]["ObjectEventType"];
|
|
16307
|
+
/**
|
|
16308
|
+
* Changes
|
|
16309
|
+
* @description Fields that differ from the object's previous log in the same organization. Empty when nothing changed; `null` when there was no previous log to compare with: the object's first log in the organization, or a log written before changes were recorded. `updated_on` is not compared, arrays are compared regardless of order and reported whole, and sensitive values such as `auth_code` read `***REDACTED***`.
|
|
16310
|
+
*/
|
|
16311
|
+
changes?: components["schemas"]["ObjectLogChange"][] | null;
|
|
16307
16312
|
/**
|
|
16308
16313
|
* Created On
|
|
16309
16314
|
* Format: date-time
|
|
@@ -16312,7 +16317,7 @@ export interface components {
|
|
|
16312
16317
|
created_on: Date;
|
|
16313
16318
|
/**
|
|
16314
16319
|
* Details
|
|
16315
|
-
* @description
|
|
16320
|
+
* @description Snapshot of the whole object after the action; its shape depends on `object_type`
|
|
16316
16321
|
*/
|
|
16317
16322
|
details?: {
|
|
16318
16323
|
[key: string]: unknown;
|
|
@@ -16345,6 +16350,24 @@ export interface components {
|
|
|
16345
16350
|
*/
|
|
16346
16351
|
server_request_id?: string | null;
|
|
16347
16352
|
};
|
|
16353
|
+
/** ObjectLogChange */
|
|
16354
|
+
ObjectLogChange: {
|
|
16355
|
+
/**
|
|
16356
|
+
* Field
|
|
16357
|
+
* @description Dot-separated path of the field in the object, for example `renewal_mode` or `contacts.registrant`
|
|
16358
|
+
*/
|
|
16359
|
+
field: string;
|
|
16360
|
+
/**
|
|
16361
|
+
* New Value
|
|
16362
|
+
* @description Value of the field in this log; `null` when the field was absent
|
|
16363
|
+
*/
|
|
16364
|
+
new_value: unknown;
|
|
16365
|
+
/**
|
|
16366
|
+
* Old Value
|
|
16367
|
+
* @description Value of the field in the object's previous log; `null` when the field was absent
|
|
16368
|
+
*/
|
|
16369
|
+
old_value: unknown;
|
|
16370
|
+
};
|
|
16348
16371
|
/**
|
|
16349
16372
|
* ObjectLogSortField
|
|
16350
16373
|
* @enum {string}
|