@@ -270,7 +270,7 @@ type DowntimeConfigurationV2Input struct {
270270}
271271
272272type DowntimeConfigurationsV2Response struct {
273- Page int `json:"nextPageLink"`
273+ Page string `json:"nextPageLink"`
274274 Pagelimt int `json:"perPage"`
275275 Totalcount int `json:"totalCount"`
276276 Downtimeconfigurations []DowntimeConfiguration `json:"downtimeConfigurations"`
@@ -303,8 +303,8 @@ type LocationV2Input struct {
303303}
304304
305305type ChecksV2Response struct {
306- Nextpagelink int `json:"nextPageLink"`
307- Perpage int `json:"perPage"`
306+ Nextpagelink string `json:"nextPageLink"`
307+ Perpage int `json:"perPage"`
308308 Tests `json:"tests"`
309309 Totalcount int `json:"totalCount"`
310310}
@@ -498,3 +498,44 @@ type End struct {
498498 Type string `json:"type"`
499499 Value string `json:"value"`
500500}
501+
502+ // MFA Certificate models
503+ type MfaCertificate struct {
504+ ID int `json:"id,omitempty"`
505+ Name string `json:"name"`
506+ Description string `json:"description,omitempty"`
507+ Domain string `json:"domain"`
508+ CreatedAt time.Time `json:"createdAt,omitempty"`
509+ UpdatedAt time.Time `json:"updatedAt,omitempty"`
510+ ExpiresAt time.Time `json:"expiresAt,omitempty"`
511+ OrganizationID int `json:"organizationId,omitempty"`
512+ PrivateKey CertificateKey `json:"privateKey,omitempty"`
513+ PublicKey CertificateKey `json:"publicKey,omitempty"`
514+ }
515+
516+ type CertificateKey struct {
517+ Content string `json:"content"`
518+ Filename string `json:"filename,omitempty"`
519+ FileExtension string `json:"fileExtension,omitempty"`
520+ Password string `json:"password,omitempty"`
521+ }
522+
523+ type MfaCertificateV2Response struct {
524+ Certificate MfaCertificate `json:"certificate"`
525+ }
526+
527+ type MfaCertificateV2Input struct {
528+ Certificate MfaCertificateInput `json:"certificate"`
529+ }
530+
531+ type MfaCertificateInput struct {
532+ Name string `json:"name"`
533+ Description string `json:"description,omitempty"`
534+ Domain string `json:"domain"`
535+ PrivateKey * CertificateKey `json:"privateKey,omitempty"`
536+ PublicKey * CertificateKey `json:"publicKey,omitempty"`
537+ }
538+
539+ type MfaCertificatesV2Response struct {
540+ Certificates []MfaCertificate `json:"certificates"`
541+ }
0 commit comments