@opusdns/api 1.17.0 → 1.18.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 +13 -0
- package/src/helpers/keys.ts +25 -0
- package/src/helpers/requests.d.ts +3 -0
- package/src/helpers/responses.d.ts +7 -0
- package/src/helpers/schemas.d.ts +2 -0
- package/src/openapi.yaml +119 -1
- package/src/schema.d.ts +122 -0
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -67,6 +67,7 @@ import type {
|
|
|
67
67
|
MetricsGrouping,
|
|
68
68
|
ObjectEventType,
|
|
69
69
|
ObjectLogSortField,
|
|
70
|
+
OrganizationCredentialStatus,
|
|
70
71
|
OrganizationSortField,
|
|
71
72
|
OrganizationStatus,
|
|
72
73
|
ParkingSortField,
|
|
@@ -1224,6 +1225,18 @@ export const OBJECT_LOG_SORT_FIELD_VALUES = [
|
|
|
1224
1225
|
'performed_by_id',
|
|
1225
1226
|
] as const satisfies ReadonlyArray<ObjectLogSortField>;
|
|
1226
1227
|
|
|
1228
|
+
export const ORGANIZATION_CREDENTIAL_STATUS = {
|
|
1229
|
+
ACTIVE: "active",
|
|
1230
|
+
EXPIRED: "expired",
|
|
1231
|
+
REVOKED: "revoked",
|
|
1232
|
+
} as const satisfies Record<string, OrganizationCredentialStatus>;
|
|
1233
|
+
|
|
1234
|
+
export const ORGANIZATION_CREDENTIAL_STATUS_VALUES = [
|
|
1235
|
+
'active',
|
|
1236
|
+
'expired',
|
|
1237
|
+
'revoked',
|
|
1238
|
+
] as const satisfies ReadonlyArray<OrganizationCredentialStatus>;
|
|
1239
|
+
|
|
1227
1240
|
export const ORGANIZATION_SORT_FIELD = {
|
|
1228
1241
|
CREATED_ON: "created_on",
|
|
1229
1242
|
NAME: "name",
|
package/src/helpers/keys.ts
CHANGED
|
@@ -241,6 +241,7 @@ import type {
|
|
|
241
241
|
OrganizationAttribute2,
|
|
242
242
|
OrganizationAttributeUpdate,
|
|
243
243
|
OrganizationCreate,
|
|
244
|
+
OrganizationCredential,
|
|
244
245
|
OrganizationToken,
|
|
245
246
|
OrganizationUpdate,
|
|
246
247
|
OrganizationWithBillingData,
|
|
@@ -3463,6 +3464,30 @@ export const KEYS_ORGANIZATION_CREATE = [
|
|
|
3463
3464
|
KEY_ORGANIZATION_CREATE_USERS,
|
|
3464
3465
|
] as const satisfies (keyof OrganizationCreate)[];
|
|
3465
3466
|
|
|
3467
|
+
export const KEY_ORGANIZATION_CREDENTIAL_API_KEY_DESCRIPTION = 'api_key_description' satisfies keyof OrganizationCredential;
|
|
3468
|
+
export const KEY_ORGANIZATION_CREDENTIAL_API_KEY_ID = 'api_key_id' satisfies keyof OrganizationCredential;
|
|
3469
|
+
export const KEY_ORGANIZATION_CREDENTIAL_API_KEY_NAME = 'api_key_name' satisfies keyof OrganizationCredential;
|
|
3470
|
+
export const KEY_ORGANIZATION_CREDENTIAL_CREATED_ON = 'created_on' satisfies keyof OrganizationCredential;
|
|
3471
|
+
export const KEY_ORGANIZATION_CREDENTIAL_DELETED_ON = 'deleted_on' satisfies keyof OrganizationCredential;
|
|
3472
|
+
export const KEY_ORGANIZATION_CREDENTIAL_EXPIRES_AT = 'expires_at' satisfies keyof OrganizationCredential;
|
|
3473
|
+
export const KEY_ORGANIZATION_CREDENTIAL_LAST_USED_ON = 'last_used_on' satisfies keyof OrganizationCredential;
|
|
3474
|
+
export const KEY_ORGANIZATION_CREDENTIAL_ORGANIZATION_ID = 'organization_id' satisfies keyof OrganizationCredential;
|
|
3475
|
+
export const KEY_ORGANIZATION_CREDENTIAL_ROLE = 'role' satisfies keyof OrganizationCredential;
|
|
3476
|
+
export const KEY_ORGANIZATION_CREDENTIAL_STATUS = 'status' satisfies keyof OrganizationCredential;
|
|
3477
|
+
|
|
3478
|
+
export const KEYS_ORGANIZATION_CREDENTIAL = [
|
|
3479
|
+
KEY_ORGANIZATION_CREDENTIAL_API_KEY_DESCRIPTION,
|
|
3480
|
+
KEY_ORGANIZATION_CREDENTIAL_API_KEY_ID,
|
|
3481
|
+
KEY_ORGANIZATION_CREDENTIAL_API_KEY_NAME,
|
|
3482
|
+
KEY_ORGANIZATION_CREDENTIAL_CREATED_ON,
|
|
3483
|
+
KEY_ORGANIZATION_CREDENTIAL_DELETED_ON,
|
|
3484
|
+
KEY_ORGANIZATION_CREDENTIAL_EXPIRES_AT,
|
|
3485
|
+
KEY_ORGANIZATION_CREDENTIAL_LAST_USED_ON,
|
|
3486
|
+
KEY_ORGANIZATION_CREDENTIAL_ORGANIZATION_ID,
|
|
3487
|
+
KEY_ORGANIZATION_CREDENTIAL_ROLE,
|
|
3488
|
+
KEY_ORGANIZATION_CREDENTIAL_STATUS,
|
|
3489
|
+
] as const satisfies (keyof OrganizationCredential)[];
|
|
3490
|
+
|
|
3466
3491
|
export const KEY_ORGANIZATION_TOKEN_ACCESS_TOKEN = 'access_token' satisfies keyof OrganizationToken;
|
|
3467
3492
|
export const KEY_ORGANIZATION_TOKEN_EXPIRES_IN = 'expires_in' satisfies keyof OrganizationToken;
|
|
3468
3493
|
export const KEY_ORGANIZATION_TOKEN_TOKEN_TYPE = 'token_type' satisfies keyof OrganizationToken;
|
|
@@ -166,6 +166,9 @@ export type GET_ArchiveRequestHistory_Request = {
|
|
|
166
166
|
};
|
|
167
167
|
export type GET_ArchiveRequestHistory_Request_Query = GET_ArchiveRequestHistory_Request['parameters']['query'];
|
|
168
168
|
|
|
169
|
+
export type GET_AuthClientCredentialsIntrospect_Request = {
|
|
170
|
+
};
|
|
171
|
+
|
|
169
172
|
export type POST_AuthToken_Request = {
|
|
170
173
|
requestBody: PublicAuthRequestForm;
|
|
171
174
|
};
|
|
@@ -56,6 +56,7 @@ import type {
|
|
|
56
56
|
ObjectTagChanges2,
|
|
57
57
|
Organization,
|
|
58
58
|
OrganizationAttribute2,
|
|
59
|
+
OrganizationCredential,
|
|
59
60
|
OrganizationWithBillingData,
|
|
60
61
|
Pagination_BillingTransaction,
|
|
61
62
|
Pagination_Contact,
|
|
@@ -306,6 +307,12 @@ export type GET_ArchiveRequestHistory_Response = GET_ArchiveRequestHistory_Respo
|
|
|
306
307
|
export type GET_ArchiveRequestHistory_Response_200 = Pagination_RequestHistory;
|
|
307
308
|
export type GET_ArchiveRequestHistory_Response_422 = HTTPValidationError;
|
|
308
309
|
|
|
310
|
+
export type GET_AuthClientCredentialsIntrospect_Response = GET_AuthClientCredentialsIntrospect_Response_200 | GET_AuthClientCredentialsIntrospect_Response_401 | GET_AuthClientCredentialsIntrospect_Response_422;
|
|
311
|
+
|
|
312
|
+
export type GET_AuthClientCredentialsIntrospect_Response_200 = OrganizationCredential;
|
|
313
|
+
export type GET_AuthClientCredentialsIntrospect_Response_401 = Problem;
|
|
314
|
+
export type GET_AuthClientCredentialsIntrospect_Response_422 = HTTPValidationError;
|
|
315
|
+
|
|
309
316
|
export type GET_Availability_Response = GET_Availability_Response_200 | GET_Availability_Response_401 | GET_Availability_Response_422;
|
|
310
317
|
|
|
311
318
|
export type GET_Availability_Response_200 = DomainAvailabilityList;
|
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -314,6 +314,8 @@ export type OrganizationAttributeCreate = components['schemas']['OrganizationAtt
|
|
|
314
314
|
export type OrganizationAttribute2 = components['schemas']['OrganizationAttributeResponse'];
|
|
315
315
|
export type OrganizationAttributeUpdate = components['schemas']['OrganizationAttributeUpdate'];
|
|
316
316
|
export type OrganizationCreate = components['schemas']['OrganizationCreate'];
|
|
317
|
+
export type OrganizationCredential = components['schemas']['OrganizationCredential'];
|
|
318
|
+
export type OrganizationCredentialStatus = components['schemas']['OrganizationCredentialStatus'];
|
|
317
319
|
export type OrganizationSortField = components['schemas']['OrganizationSortField'];
|
|
318
320
|
export type OrganizationStatus = components['schemas']['OrganizationStatus'];
|
|
319
321
|
export type OrganizationToken = components['schemas']['OrganizationTokenResponse'];
|
package/src/openapi.yaml
CHANGED
|
@@ -8445,6 +8445,87 @@ components:
|
|
|
8445
8445
|
- name
|
|
8446
8446
|
title: OrganizationCreate
|
|
8447
8447
|
type: object
|
|
8448
|
+
OrganizationCredential:
|
|
8449
|
+
properties:
|
|
8450
|
+
api_key_description:
|
|
8451
|
+
anyOf:
|
|
8452
|
+
- type: string
|
|
8453
|
+
- type: 'null'
|
|
8454
|
+
description: Description of the organization credential.
|
|
8455
|
+
title: Api Key Description
|
|
8456
|
+
api_key_id:
|
|
8457
|
+
description: Unique identifier of the organization credential.
|
|
8458
|
+
examples:
|
|
8459
|
+
- api_key_01h45ytscbebyvny4gc8cr8ma2
|
|
8460
|
+
format: typeid
|
|
8461
|
+
pattern: ^api_key_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8462
|
+
title: Api Key Id
|
|
8463
|
+
type: string
|
|
8464
|
+
x-typeid-prefix: api_key
|
|
8465
|
+
api_key_name:
|
|
8466
|
+
anyOf:
|
|
8467
|
+
- type: string
|
|
8468
|
+
- type: 'null'
|
|
8469
|
+
description: Name of the organization credential. Only a-z, A-Z, 0-9, underscore,
|
|
8470
|
+
and hyphen are allowed.
|
|
8471
|
+
title: Api Key Name
|
|
8472
|
+
created_on:
|
|
8473
|
+
description: The date/time the entry was created on
|
|
8474
|
+
format: date-time
|
|
8475
|
+
title: Created On
|
|
8476
|
+
type: string
|
|
8477
|
+
deleted_on:
|
|
8478
|
+
anyOf:
|
|
8479
|
+
- format: date-time
|
|
8480
|
+
type: string
|
|
8481
|
+
- type: 'null'
|
|
8482
|
+
description: The date/time the entry was deleted on
|
|
8483
|
+
title: Deleted On
|
|
8484
|
+
expires_at:
|
|
8485
|
+
anyOf:
|
|
8486
|
+
- format: date-time
|
|
8487
|
+
type: string
|
|
8488
|
+
- type: 'null'
|
|
8489
|
+
description: The date and time the credential expiration.
|
|
8490
|
+
title: Expires At
|
|
8491
|
+
last_used_on:
|
|
8492
|
+
anyOf:
|
|
8493
|
+
- format: date-time
|
|
8494
|
+
type: string
|
|
8495
|
+
- type: 'null'
|
|
8496
|
+
description: The date/time the entry was deleted on
|
|
8497
|
+
title: Last Used On
|
|
8498
|
+
organization_id:
|
|
8499
|
+
default: None
|
|
8500
|
+
examples:
|
|
8501
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8502
|
+
format: typeid
|
|
8503
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8504
|
+
title: Organization Id
|
|
8505
|
+
type: string
|
|
8506
|
+
x-typeid-prefix: organization
|
|
8507
|
+
role:
|
|
8508
|
+
anyOf:
|
|
8509
|
+
- $ref: '#/components/schemas/PublicRole'
|
|
8510
|
+
- $ref: '#/components/schemas/CustomRoleLabel'
|
|
8511
|
+
- type: 'null'
|
|
8512
|
+
title: Role
|
|
8513
|
+
status:
|
|
8514
|
+
$ref: '#/components/schemas/OrganizationCredentialStatus'
|
|
8515
|
+
description: The status of the organization credential.
|
|
8516
|
+
readOnly: true
|
|
8517
|
+
required:
|
|
8518
|
+
- api_key_id
|
|
8519
|
+
- status
|
|
8520
|
+
title: OrganizationCredential
|
|
8521
|
+
type: object
|
|
8522
|
+
OrganizationCredentialStatus:
|
|
8523
|
+
enum:
|
|
8524
|
+
- active
|
|
8525
|
+
- expired
|
|
8526
|
+
- revoked
|
|
8527
|
+
title: OrganizationCredentialStatus
|
|
8528
|
+
type: string
|
|
8448
8529
|
OrganizationSortField:
|
|
8449
8530
|
enum:
|
|
8450
8531
|
- created_on
|
|
@@ -12261,7 +12342,7 @@ info:
|
|
|
12261
12342
|
\n\n"
|
|
12262
12343
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
12263
12344
|
title: OpusDNS API
|
|
12264
|
-
version: 2026-06-
|
|
12345
|
+
version: 2026-06-17-145023
|
|
12265
12346
|
x-logo:
|
|
12266
12347
|
altText: OpusDNS API Reference
|
|
12267
12348
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -14049,6 +14130,43 @@ paths:
|
|
|
14049
14130
|
summary: Retrieve request history logs
|
|
14050
14131
|
tags:
|
|
14051
14132
|
- archive
|
|
14133
|
+
/v1/auth/client_credentials/introspect:
|
|
14134
|
+
get:
|
|
14135
|
+
description: Returns the stored record for the API key (or organization token)
|
|
14136
|
+
used to authenticate the request, including its organization. Requires API-key
|
|
14137
|
+
or organization-token authentication; user tokens are rejected.
|
|
14138
|
+
operationId: introspect_client_credential_v1_auth_client_credentials_introspect_get
|
|
14139
|
+
responses:
|
|
14140
|
+
'200':
|
|
14141
|
+
content:
|
|
14142
|
+
application/json:
|
|
14143
|
+
schema:
|
|
14144
|
+
$ref: '#/components/schemas/OrganizationCredential'
|
|
14145
|
+
description: Successful Response
|
|
14146
|
+
'401':
|
|
14147
|
+
content:
|
|
14148
|
+
application/problem+json:
|
|
14149
|
+
example:
|
|
14150
|
+
code: ERROR_AUTHENTICATION
|
|
14151
|
+
detail: Additional error context.
|
|
14152
|
+
status: 401
|
|
14153
|
+
title: Authentication Error
|
|
14154
|
+
type: authentication
|
|
14155
|
+
schema:
|
|
14156
|
+
$ref: '#/components/schemas/Problem'
|
|
14157
|
+
description: Unauthorized
|
|
14158
|
+
'422':
|
|
14159
|
+
content:
|
|
14160
|
+
application/problem+json:
|
|
14161
|
+
schema:
|
|
14162
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
14163
|
+
description: Validation Error
|
|
14164
|
+
security:
|
|
14165
|
+
- OAuth2PasswordBearer: []
|
|
14166
|
+
- APIKeyHeader: []
|
|
14167
|
+
summary: Introspect the current API key
|
|
14168
|
+
tags:
|
|
14169
|
+
- authentication
|
|
14052
14170
|
/v1/auth/token:
|
|
14053
14171
|
post:
|
|
14054
14172
|
operationId: issue_organization_token_v1_auth_token_post
|
package/src/schema.d.ts
CHANGED
|
@@ -255,6 +255,26 @@ export interface paths {
|
|
|
255
255
|
patch?: never;
|
|
256
256
|
trace?: never;
|
|
257
257
|
};
|
|
258
|
+
"/v1/auth/client_credentials/introspect": {
|
|
259
|
+
parameters: {
|
|
260
|
+
query?: never;
|
|
261
|
+
header?: never;
|
|
262
|
+
path?: never;
|
|
263
|
+
cookie?: never;
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* Introspect the current API key
|
|
267
|
+
* @description Returns the stored record for the API key (or organization token) used to authenticate the request, including its organization. Requires API-key or organization-token authentication; user tokens are rejected.
|
|
268
|
+
*/
|
|
269
|
+
get: operations["introspect_client_credential_v1_auth_client_credentials_introspect_get"];
|
|
270
|
+
put?: never;
|
|
271
|
+
post?: never;
|
|
272
|
+
delete?: never;
|
|
273
|
+
options?: never;
|
|
274
|
+
head?: never;
|
|
275
|
+
patch?: never;
|
|
276
|
+
trace?: never;
|
|
277
|
+
};
|
|
258
278
|
"/v1/auth/token": {
|
|
259
279
|
parameters: {
|
|
260
280
|
query?: never;
|
|
@@ -8202,6 +8222,63 @@ export interface components {
|
|
|
8202
8222
|
*/
|
|
8203
8223
|
users?: components["schemas"]["UserCreate"][];
|
|
8204
8224
|
};
|
|
8225
|
+
/** OrganizationCredential */
|
|
8226
|
+
OrganizationCredential: {
|
|
8227
|
+
/**
|
|
8228
|
+
* Api Key Description
|
|
8229
|
+
* @description Description of the organization credential.
|
|
8230
|
+
*/
|
|
8231
|
+
api_key_description?: string | null;
|
|
8232
|
+
/**
|
|
8233
|
+
* Api Key Id
|
|
8234
|
+
* Format: typeid
|
|
8235
|
+
* @description Unique identifier of the organization credential.
|
|
8236
|
+
* @example api_key_01h45ytscbebyvny4gc8cr8ma2
|
|
8237
|
+
*/
|
|
8238
|
+
api_key_id: TypeId<"api_key">;
|
|
8239
|
+
/**
|
|
8240
|
+
* Api Key Name
|
|
8241
|
+
* @description Name of the organization credential. Only a-z, A-Z, 0-9, underscore, and hyphen are allowed.
|
|
8242
|
+
*/
|
|
8243
|
+
api_key_name?: string | null;
|
|
8244
|
+
/**
|
|
8245
|
+
* Created On
|
|
8246
|
+
* Format: date-time
|
|
8247
|
+
* @description The date/time the entry was created on
|
|
8248
|
+
*/
|
|
8249
|
+
created_on?: Date;
|
|
8250
|
+
/**
|
|
8251
|
+
* Deleted On
|
|
8252
|
+
* @description The date/time the entry was deleted on
|
|
8253
|
+
*/
|
|
8254
|
+
deleted_on?: Date | null;
|
|
8255
|
+
/**
|
|
8256
|
+
* Expires At
|
|
8257
|
+
* @description The date and time the credential expiration.
|
|
8258
|
+
*/
|
|
8259
|
+
expires_at?: Date | null;
|
|
8260
|
+
/**
|
|
8261
|
+
* Last Used On
|
|
8262
|
+
* @description The date/time the entry was deleted on
|
|
8263
|
+
*/
|
|
8264
|
+
last_used_on?: Date | null;
|
|
8265
|
+
/**
|
|
8266
|
+
* Organization Id
|
|
8267
|
+
* Format: typeid
|
|
8268
|
+
* @default None
|
|
8269
|
+
* @example organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8270
|
+
*/
|
|
8271
|
+
organization_id: TypeId<"organization">;
|
|
8272
|
+
/** Role */
|
|
8273
|
+
role?: components["schemas"]["PublicRole"] | components["schemas"]["CustomRoleLabel"] | null;
|
|
8274
|
+
/** @description The status of the organization credential. */
|
|
8275
|
+
readonly status: components["schemas"]["OrganizationCredentialStatus"];
|
|
8276
|
+
};
|
|
8277
|
+
/**
|
|
8278
|
+
* OrganizationCredentialStatus
|
|
8279
|
+
* @enum {string}
|
|
8280
|
+
*/
|
|
8281
|
+
OrganizationCredentialStatus: "active" | "expired" | "revoked";
|
|
8205
8282
|
/**
|
|
8206
8283
|
* OrganizationSortField
|
|
8207
8284
|
* @enum {string}
|
|
@@ -12151,6 +12228,51 @@ export interface operations {
|
|
|
12151
12228
|
};
|
|
12152
12229
|
};
|
|
12153
12230
|
};
|
|
12231
|
+
introspect_client_credential_v1_auth_client_credentials_introspect_get: {
|
|
12232
|
+
parameters: {
|
|
12233
|
+
query?: never;
|
|
12234
|
+
header?: never;
|
|
12235
|
+
path?: never;
|
|
12236
|
+
cookie?: never;
|
|
12237
|
+
};
|
|
12238
|
+
requestBody?: never;
|
|
12239
|
+
responses: {
|
|
12240
|
+
/** @description Successful Response */
|
|
12241
|
+
200: {
|
|
12242
|
+
headers: {
|
|
12243
|
+
[name: string]: unknown;
|
|
12244
|
+
};
|
|
12245
|
+
content: {
|
|
12246
|
+
"application/json": components["schemas"]["OrganizationCredential"];
|
|
12247
|
+
};
|
|
12248
|
+
};
|
|
12249
|
+
/** @description Unauthorized */
|
|
12250
|
+
401: {
|
|
12251
|
+
headers: {
|
|
12252
|
+
[name: string]: unknown;
|
|
12253
|
+
};
|
|
12254
|
+
content: {
|
|
12255
|
+
/** @example {
|
|
12256
|
+
* "code": "ERROR_AUTHENTICATION",
|
|
12257
|
+
* "detail": "Additional error context.",
|
|
12258
|
+
* "status": 401,
|
|
12259
|
+
* "title": "Authentication Error",
|
|
12260
|
+
* "type": "authentication"
|
|
12261
|
+
* } */
|
|
12262
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12263
|
+
};
|
|
12264
|
+
};
|
|
12265
|
+
/** @description Validation Error */
|
|
12266
|
+
422: {
|
|
12267
|
+
headers: {
|
|
12268
|
+
[name: string]: unknown;
|
|
12269
|
+
};
|
|
12270
|
+
content: {
|
|
12271
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
12272
|
+
};
|
|
12273
|
+
};
|
|
12274
|
+
};
|
|
12275
|
+
};
|
|
12154
12276
|
issue_organization_token_v1_auth_token_post: {
|
|
12155
12277
|
parameters: {
|
|
12156
12278
|
query?: never;
|