@opusdns/api 0.29.0 → 0.30.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 +113 -1
- package/src/helpers/keys.ts +467 -0
- package/src/helpers/requests.d.ts +90 -0
- package/src/helpers/responses.d.ts +111 -1
- package/src/helpers/schemas-arrays.d.ts +29 -1
- package/src/helpers/schemas.d.ts +96 -0
- package/src/openapi.yaml +200 -1
- package/src/schema.d.ts +174 -0
package/src/schema.d.ts
CHANGED
|
@@ -957,6 +957,40 @@ export interface paths {
|
|
|
957
957
|
patch: operations["change_plan_v1_organizations__organization_id__plan_patch"];
|
|
958
958
|
trace?: never;
|
|
959
959
|
};
|
|
960
|
+
"/v1/organizations/{organization_id}/plans": {
|
|
961
|
+
parameters: {
|
|
962
|
+
query?: never;
|
|
963
|
+
header?: never;
|
|
964
|
+
path?: never;
|
|
965
|
+
cookie?: never;
|
|
966
|
+
};
|
|
967
|
+
/** Get Current Available Plans */
|
|
968
|
+
get: operations["get_current_available_plans_v1_organizations__organization_id__plans_get"];
|
|
969
|
+
put?: never;
|
|
970
|
+
post?: never;
|
|
971
|
+
delete?: never;
|
|
972
|
+
options?: never;
|
|
973
|
+
head?: never;
|
|
974
|
+
patch?: never;
|
|
975
|
+
trace?: never;
|
|
976
|
+
};
|
|
977
|
+
"/v1/organizations/{organization_id}/pricing/product-type/{product_type}": {
|
|
978
|
+
parameters: {
|
|
979
|
+
query?: never;
|
|
980
|
+
header?: never;
|
|
981
|
+
path?: never;
|
|
982
|
+
cookie?: never;
|
|
983
|
+
};
|
|
984
|
+
/** Get Pricing Plans */
|
|
985
|
+
get: operations["get_pricing_plans_v1_organizations__organization_id__pricing_product_type__product_type__get"];
|
|
986
|
+
put?: never;
|
|
987
|
+
post?: never;
|
|
988
|
+
delete?: never;
|
|
989
|
+
options?: never;
|
|
990
|
+
head?: never;
|
|
991
|
+
patch?: never;
|
|
992
|
+
trace?: never;
|
|
993
|
+
};
|
|
960
994
|
"/v1/tlds/portfolio": {
|
|
961
995
|
parameters: {
|
|
962
996
|
query?: never;
|
|
@@ -1101,6 +1135,16 @@ export interface components {
|
|
|
1101
1135
|
*/
|
|
1102
1136
|
min: number;
|
|
1103
1137
|
};
|
|
1138
|
+
/**
|
|
1139
|
+
* BillingTransactionAction
|
|
1140
|
+
* @enum {string}
|
|
1141
|
+
*/
|
|
1142
|
+
BillingTransactionAction: "create" | "transfer" | "renew" | "restore" | "trade" | "application";
|
|
1143
|
+
/**
|
|
1144
|
+
* BillingTransactionProductType
|
|
1145
|
+
* @enum {string}
|
|
1146
|
+
*/
|
|
1147
|
+
BillingTransactionProductType: "domain" | "zone" | "email_forward" | "domain_forward";
|
|
1104
1148
|
/** Body_issue_organization_token_v1_auth_token_post */
|
|
1105
1149
|
Body_issue_organization_token_v1_auth_token_post: {
|
|
1106
1150
|
/**
|
|
@@ -2438,6 +2482,24 @@ export interface components {
|
|
|
2438
2482
|
*/
|
|
2439
2483
|
start_date: Date;
|
|
2440
2484
|
};
|
|
2485
|
+
/** GetCurrentAvailablePlansResponse */
|
|
2486
|
+
GetCurrentAvailablePlansResponse: {
|
|
2487
|
+
/** @description Current active plan for the customer */
|
|
2488
|
+
current_plan?: components["schemas"]["PlanInfo"] | null;
|
|
2489
|
+
/**
|
|
2490
|
+
* Plans
|
|
2491
|
+
* @description List of available plans
|
|
2492
|
+
*/
|
|
2493
|
+
plans: components["schemas"]["PlanInfo"][];
|
|
2494
|
+
};
|
|
2495
|
+
/** GetPricesResponse */
|
|
2496
|
+
GetPricesResponse: {
|
|
2497
|
+
/**
|
|
2498
|
+
* Prices
|
|
2499
|
+
* @description List of prices
|
|
2500
|
+
*/
|
|
2501
|
+
prices: components["schemas"]["PriceInfo"][];
|
|
2502
|
+
};
|
|
2441
2503
|
/**
|
|
2442
2504
|
* GrantType
|
|
2443
2505
|
* @enum {string}
|
|
@@ -3453,6 +3515,39 @@ export interface components {
|
|
|
3453
3515
|
/** Permissions */
|
|
3454
3516
|
permissions?: components["schemas"]["Permission"][];
|
|
3455
3517
|
};
|
|
3518
|
+
/** PlanInfo */
|
|
3519
|
+
PlanInfo: {
|
|
3520
|
+
/**
|
|
3521
|
+
* Amount
|
|
3522
|
+
* @description Base price
|
|
3523
|
+
*/
|
|
3524
|
+
amount: number;
|
|
3525
|
+
/**
|
|
3526
|
+
* Currency
|
|
3527
|
+
* @description Currency code
|
|
3528
|
+
*/
|
|
3529
|
+
currency: string;
|
|
3530
|
+
/**
|
|
3531
|
+
* Name
|
|
3532
|
+
* @description Plan display name
|
|
3533
|
+
*/
|
|
3534
|
+
name?: string | null;
|
|
3535
|
+
/**
|
|
3536
|
+
* Plan Id
|
|
3537
|
+
* @description Unique plan identifier
|
|
3538
|
+
*/
|
|
3539
|
+
plan_id: string;
|
|
3540
|
+
/**
|
|
3541
|
+
* Plan Level
|
|
3542
|
+
* @description Plan level such as 'premium' or 'starter'
|
|
3543
|
+
*/
|
|
3544
|
+
plan_level?: string | null;
|
|
3545
|
+
/**
|
|
3546
|
+
* Plan Type
|
|
3547
|
+
* @description Plan type or billing interval
|
|
3548
|
+
*/
|
|
3549
|
+
plan_type?: string | null;
|
|
3550
|
+
};
|
|
3456
3551
|
/**
|
|
3457
3552
|
* PlanRelation
|
|
3458
3553
|
* @enum {string}
|
|
@@ -3498,6 +3593,19 @@ export interface components {
|
|
|
3498
3593
|
* @enum {string}
|
|
3499
3594
|
*/
|
|
3500
3595
|
PremiumSourceType: "EPP" | "API" | "CSV" | "manual";
|
|
3596
|
+
/** PriceInfo */
|
|
3597
|
+
PriceInfo: {
|
|
3598
|
+
/** Currency */
|
|
3599
|
+
currency: string;
|
|
3600
|
+
/** Price */
|
|
3601
|
+
price: string;
|
|
3602
|
+
/** Product Action */
|
|
3603
|
+
product_action?: string | null;
|
|
3604
|
+
/** Product Class */
|
|
3605
|
+
product_class?: string | null;
|
|
3606
|
+
/** Product Type */
|
|
3607
|
+
product_type: string;
|
|
3608
|
+
};
|
|
3501
3609
|
/** Problem */
|
|
3502
3610
|
Problem: {
|
|
3503
3611
|
/** Problem detail */
|
|
@@ -7675,6 +7783,72 @@ export interface operations {
|
|
|
7675
7783
|
};
|
|
7676
7784
|
};
|
|
7677
7785
|
};
|
|
7786
|
+
get_current_available_plans_v1_organizations__organization_id__plans_get: {
|
|
7787
|
+
parameters: {
|
|
7788
|
+
query?: never;
|
|
7789
|
+
header?: never;
|
|
7790
|
+
path: {
|
|
7791
|
+
organization_id: TypeID<"organization">;
|
|
7792
|
+
};
|
|
7793
|
+
cookie?: never;
|
|
7794
|
+
};
|
|
7795
|
+
requestBody?: never;
|
|
7796
|
+
responses: {
|
|
7797
|
+
/** @description Successful Response */
|
|
7798
|
+
200: {
|
|
7799
|
+
headers: {
|
|
7800
|
+
[name: string]: unknown;
|
|
7801
|
+
};
|
|
7802
|
+
content: {
|
|
7803
|
+
"application/json": components["schemas"]["GetCurrentAvailablePlansResponse"];
|
|
7804
|
+
};
|
|
7805
|
+
};
|
|
7806
|
+
/** @description Validation Error */
|
|
7807
|
+
422: {
|
|
7808
|
+
headers: {
|
|
7809
|
+
[name: string]: unknown;
|
|
7810
|
+
};
|
|
7811
|
+
content: {
|
|
7812
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
7813
|
+
};
|
|
7814
|
+
};
|
|
7815
|
+
};
|
|
7816
|
+
};
|
|
7817
|
+
get_pricing_plans_v1_organizations__organization_id__pricing_product_type__product_type__get: {
|
|
7818
|
+
parameters: {
|
|
7819
|
+
query?: {
|
|
7820
|
+
product_action?: components["schemas"]["BillingTransactionAction"] | null;
|
|
7821
|
+
product_class?: string | null;
|
|
7822
|
+
};
|
|
7823
|
+
header?: never;
|
|
7824
|
+
path: {
|
|
7825
|
+
organization_id: TypeID<"organization">;
|
|
7826
|
+
product_type: components["schemas"]["BillingTransactionProductType"];
|
|
7827
|
+
};
|
|
7828
|
+
cookie?: never;
|
|
7829
|
+
};
|
|
7830
|
+
requestBody?: never;
|
|
7831
|
+
responses: {
|
|
7832
|
+
/** @description Successful Response */
|
|
7833
|
+
200: {
|
|
7834
|
+
headers: {
|
|
7835
|
+
[name: string]: unknown;
|
|
7836
|
+
};
|
|
7837
|
+
content: {
|
|
7838
|
+
"application/json": components["schemas"]["GetPricesResponse"];
|
|
7839
|
+
};
|
|
7840
|
+
};
|
|
7841
|
+
/** @description Validation Error */
|
|
7842
|
+
422: {
|
|
7843
|
+
headers: {
|
|
7844
|
+
[name: string]: unknown;
|
|
7845
|
+
};
|
|
7846
|
+
content: {
|
|
7847
|
+
"application/problem+json": components["schemas"]["HTTPValidationError"];
|
|
7848
|
+
};
|
|
7849
|
+
};
|
|
7850
|
+
};
|
|
7851
|
+
};
|
|
7678
7852
|
get_tld_portfolio_v1_tlds_portfolio_get: {
|
|
7679
7853
|
parameters: {
|
|
7680
7854
|
query?: never;
|