@opusdns/api 0.160.0 → 0.162.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 +107 -1
- package/src/helpers/keys.ts +264 -0
- package/src/helpers/requests.d.ts +39 -0
- package/src/helpers/responses.d.ts +93 -1
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +64 -0
- package/src/openapi.yaml +305 -2
- package/src/schema.d.ts +154 -0
package/src/schema.d.ts
CHANGED
|
@@ -1548,6 +1548,26 @@ export interface paths {
|
|
|
1548
1548
|
patch?: never;
|
|
1549
1549
|
trace?: never;
|
|
1550
1550
|
};
|
|
1551
|
+
"/v1/parking": {
|
|
1552
|
+
parameters: {
|
|
1553
|
+
query?: never;
|
|
1554
|
+
header?: never;
|
|
1555
|
+
path?: never;
|
|
1556
|
+
cookie?: never;
|
|
1557
|
+
};
|
|
1558
|
+
/**
|
|
1559
|
+
* List parking entries
|
|
1560
|
+
* @description Retrieves a paginated list of parking entries for the organization
|
|
1561
|
+
*/
|
|
1562
|
+
get: operations["list_parking_v1_parking_get"];
|
|
1563
|
+
put?: never;
|
|
1564
|
+
post?: never;
|
|
1565
|
+
delete?: never;
|
|
1566
|
+
options?: never;
|
|
1567
|
+
head?: never;
|
|
1568
|
+
patch?: never;
|
|
1569
|
+
trace?: never;
|
|
1570
|
+
};
|
|
1551
1571
|
"/v1/tlds/": {
|
|
1552
1572
|
parameters: {
|
|
1553
1573
|
query?: never;
|
|
@@ -1903,6 +1923,11 @@ export interface components {
|
|
|
1903
1923
|
/** Unique */
|
|
1904
1924
|
unique: number;
|
|
1905
1925
|
};
|
|
1926
|
+
/**
|
|
1927
|
+
* ComplianceStatus
|
|
1928
|
+
* @enum {string}
|
|
1929
|
+
*/
|
|
1930
|
+
ComplianceStatus: "preparing" | "pending" | "approved" | "disapproved";
|
|
1906
1931
|
/**
|
|
1907
1932
|
* ContactAttributeDefinition
|
|
1908
1933
|
* @description Definition of a possible attribute for a TLD.
|
|
@@ -4970,6 +4995,12 @@ export interface components {
|
|
|
4970
4995
|
/** Results */
|
|
4971
4996
|
results: components["schemas"]["Organization"][];
|
|
4972
4997
|
};
|
|
4998
|
+
/** Pagination[ParkingResponse] */
|
|
4999
|
+
Pagination_ParkingResponse_: {
|
|
5000
|
+
pagination: components["schemas"]["PaginationMetadata"];
|
|
5001
|
+
/** Results */
|
|
5002
|
+
results: components["schemas"]["ParkingResponse"][];
|
|
5003
|
+
};
|
|
4973
5004
|
/** Pagination[RequestHistory] */
|
|
4974
5005
|
Pagination_RequestHistory_: {
|
|
4975
5006
|
pagination: components["schemas"]["PaginationMetadata"];
|
|
@@ -4982,6 +5013,60 @@ export interface components {
|
|
|
4982
5013
|
/** Results */
|
|
4983
5014
|
results: components["schemas"]["UserPublic"][];
|
|
4984
5015
|
};
|
|
5016
|
+
/** ParkingResponse */
|
|
5017
|
+
ParkingResponse: {
|
|
5018
|
+
/** @description The compliance status of the parking ad */
|
|
5019
|
+
compliance_status?: components["schemas"]["ComplianceStatus"] | null;
|
|
5020
|
+
/**
|
|
5021
|
+
* Content Language
|
|
5022
|
+
* @description The primary language code for the ad content
|
|
5023
|
+
*/
|
|
5024
|
+
content_language?: string | null;
|
|
5025
|
+
/**
|
|
5026
|
+
* Content Url
|
|
5027
|
+
* @description The content URL for approved parking ads
|
|
5028
|
+
*/
|
|
5029
|
+
content_url?: string | null;
|
|
5030
|
+
/**
|
|
5031
|
+
* Created On
|
|
5032
|
+
* Format: date-time
|
|
5033
|
+
* @description When the parking entry was created
|
|
5034
|
+
*/
|
|
5035
|
+
created_on: Date;
|
|
5036
|
+
/**
|
|
5037
|
+
* Domain
|
|
5038
|
+
* @description The domain name for the parking ad
|
|
5039
|
+
*/
|
|
5040
|
+
domain: string;
|
|
5041
|
+
/**
|
|
5042
|
+
* Enabled
|
|
5043
|
+
* @description Whether parking is enabled
|
|
5044
|
+
*/
|
|
5045
|
+
enabled: boolean;
|
|
5046
|
+
/**
|
|
5047
|
+
* Note
|
|
5048
|
+
* @description Additional notes about the parking ad
|
|
5049
|
+
*/
|
|
5050
|
+
note?: string | null;
|
|
5051
|
+
/**
|
|
5052
|
+
* Parking Id
|
|
5053
|
+
* Format: typeid
|
|
5054
|
+
* @description Unique identifier for the parking entry
|
|
5055
|
+
* @example parking_01h45ytscbebyvny4gc8cr8ma2
|
|
5056
|
+
*/
|
|
5057
|
+
parking_id: TypeId<"parking">;
|
|
5058
|
+
/**
|
|
5059
|
+
* Updated On
|
|
5060
|
+
* Format: date-time
|
|
5061
|
+
* @description When the parking entry was last updated
|
|
5062
|
+
*/
|
|
5063
|
+
updated_on: Date;
|
|
5064
|
+
};
|
|
5065
|
+
/**
|
|
5066
|
+
* ParkingSortField
|
|
5067
|
+
* @enum {string}
|
|
5068
|
+
*/
|
|
5069
|
+
ParkingSortField: "domain" | "created_on" | "updated_on";
|
|
4985
5070
|
/** PasswordUpdate */
|
|
4986
5071
|
PasswordUpdate: {
|
|
4987
5072
|
/**
|
|
@@ -12565,6 +12650,75 @@ export interface operations {
|
|
|
12565
12650
|
};
|
|
12566
12651
|
};
|
|
12567
12652
|
};
|
|
12653
|
+
list_parking_v1_parking_get: {
|
|
12654
|
+
parameters: {
|
|
12655
|
+
query?: {
|
|
12656
|
+
sort_by?: components["schemas"]["ParkingSortField"];
|
|
12657
|
+
sort_order?: components["schemas"]["SortOrder"];
|
|
12658
|
+
search?: string | null;
|
|
12659
|
+
enabled?: boolean | null;
|
|
12660
|
+
compliance_status?: components["schemas"]["ComplianceStatus"] | null;
|
|
12661
|
+
page?: number;
|
|
12662
|
+
page_size?: number;
|
|
12663
|
+
};
|
|
12664
|
+
header?: never;
|
|
12665
|
+
path?: never;
|
|
12666
|
+
cookie?: never;
|
|
12667
|
+
};
|
|
12668
|
+
requestBody?: never;
|
|
12669
|
+
responses: {
|
|
12670
|
+
/** @description Successful Response */
|
|
12671
|
+
200: {
|
|
12672
|
+
headers: {
|
|
12673
|
+
[name: string]: unknown;
|
|
12674
|
+
};
|
|
12675
|
+
content: {
|
|
12676
|
+
"application/json": components["schemas"]["Pagination_ParkingResponse_"];
|
|
12677
|
+
};
|
|
12678
|
+
};
|
|
12679
|
+
/** @description Unauthorized */
|
|
12680
|
+
401: {
|
|
12681
|
+
headers: {
|
|
12682
|
+
[name: string]: unknown;
|
|
12683
|
+
};
|
|
12684
|
+
content: {
|
|
12685
|
+
/** @example {
|
|
12686
|
+
* "code": "ERROR_AUTHENTICATION",
|
|
12687
|
+
* "detail": "Additional error context.",
|
|
12688
|
+
* "status": 401,
|
|
12689
|
+
* "title": "Authentication Error",
|
|
12690
|
+
* "type": "authentication"
|
|
12691
|
+
* } */
|
|
12692
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12693
|
+
};
|
|
12694
|
+
};
|
|
12695
|
+
/** @description Forbidden */
|
|
12696
|
+
403: {
|
|
12697
|
+
headers: {
|
|
12698
|
+
[name: string]: unknown;
|
|
12699
|
+
};
|
|
12700
|
+
content: {
|
|
12701
|
+
/** @example {
|
|
12702
|
+
* "code": "ERROR_PERMISSION_DENIED",
|
|
12703
|
+
* "detail": "Insufficient permissions to perform this action",
|
|
12704
|
+
* "status": 403,
|
|
12705
|
+
* "title": "Permission Denied",
|
|
12706
|
+
* "type": "permission-denied"
|
|
12707
|
+
* } */
|
|
12708
|
+
"application/problem+json": components["schemas"]["Problem"];
|
|
12709
|
+
};
|
|
12710
|
+
};
|
|
12711
|
+
/** @description Validation Error */
|
|
12712
|
+
422: {
|
|
12713
|
+
headers: {
|
|
12714
|
+
[name: string]: unknown;
|
|
12715
|
+
};
|
|
12716
|
+
content: {
|
|
12717
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
12718
|
+
};
|
|
12719
|
+
};
|
|
12720
|
+
};
|
|
12721
|
+
};
|
|
12568
12722
|
get_tld_specifications_v1_tlds__get: {
|
|
12569
12723
|
parameters: {
|
|
12570
12724
|
query?: {
|