Skip to content

Commit

Permalink
Merge pull request #268 from epilot-dev/feat/handle-caa
Browse files Browse the repository at this point in the history
Feat/handle caa
  • Loading branch information
Kanakala authored Jan 21, 2025
2 parents 21f2c19 + e2e5f57 commit 5a166f7
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 0 deletions.
13 changes: 13 additions & 0 deletions clients/customer-portal-client/src/openapi-runtime.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,19 @@
"responses": {}
}
},
"/v2/portal/validate/caa-records": {
"post": {
"operationId": "validateCaaRecords",
"parameters": [
{
"in": "query",
"name": "origin",
"required": true
}
],
"responses": {}
}
},
"/v2/portal/contact": {
"get": {
"operationId": "getContact",
Expand Down
48 changes: 48 additions & 0 deletions clients/customer-portal-client/src/openapi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6781,6 +6781,32 @@ declare namespace Paths {
export type $500 = Components.Responses.InternalServerError;
}
}
namespace ValidateCaaRecords {
namespace Parameters {
export type Origin = /* Origin of the portal */ Components.Schemas.Origin;
}
export interface QueryParameters {
origin: Parameters.Origin;
}
namespace Responses {
export interface $200 {
/**
* Whether to retry the validation to continue the domain setup
*/
retry?: boolean;
/**
* Message of the validation
*/
message?: string;
/**
* Whether the DNS is configured from the customer side
*/
isDNSConfigured?: boolean;
}
export type $401 = Components.Responses.Unauthorized;
export type $500 = Components.Responses.InternalServerError;
}
}
namespace ValidateCadenceEntityEditRules {
namespace Parameters {
export type Attribute = string;
Expand Down Expand Up @@ -7096,6 +7122,16 @@ export interface OperationMethods {
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.ExtraPermissionAttributes.Responses.$200>
/**
* validateCaaRecords - validateCaaRecords
*
* Validates the CAA records of a portal
*/
'validateCaaRecords'(
parameters?: Parameters<Paths.ValidateCaaRecords.QueryParameters> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.ValidateCaaRecords.Responses.$200>
/**
* getContact - getContact
*
Expand Down Expand Up @@ -7923,6 +7959,18 @@ export interface PathsDictionary {
config?: AxiosRequestConfig
): OperationResponse<Paths.ExtraPermissionAttributes.Responses.$200>
}
['/v2/portal/validate/caa-records']: {
/**
* validateCaaRecords - validateCaaRecords
*
* Validates the CAA records of a portal
*/
'post'(
parameters?: Parameters<Paths.ValidateCaaRecords.QueryParameters> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.ValidateCaaRecords.Responses.$200>
}
['/v2/portal/contact']: {
/**
* getContact - getContact
Expand Down
57 changes: 57 additions & 0 deletions clients/customer-portal-client/src/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1871,6 +1871,63 @@
}
}
},
"/v2/portal/validate/caa-records": {
"post": {
"operationId": "validateCaaRecords",
"summary": "validateCaaRecords",
"description": "Validates the CAA records of a portal",
"tags": [
"ECP Admin"
],
"security": [
{
"EpilotAuth": []
}
],
"parameters": [
{
"in": "query",
"name": "origin",
"required": true,
"schema": {
"$ref": "#/components/schemas/Origin"
}
}
],
"responses": {
"200": {
"description": "Validated CAA records successfully.",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"retry": {
"type": "boolean",
"description": "Whether to retry the validation to continue the domain setup"
},
"message": {
"type": "string",
"description": "Message of the validation"
},
"isDNSConfigured": {
"type": "boolean",
"description": "Whether the DNS is configured from the customer side"
}
}
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"500": {
"$ref": "#/components/responses/InternalServerError"
}
}
}
},
"/v2/portal/contact": {
"get": {
"operationId": "getContact",
Expand Down

0 comments on commit 5a166f7

Please sign in to comment.