Skip to content

Commit d498b37

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#480)
1 parent 546e3e0 commit d498b37

File tree

8 files changed

+72
-12
lines changed

8 files changed

+72
-12
lines changed

api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,11 @@ Methods:
10931093

10941094
Types:
10951095

1096+
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackCA</a></code>
1097+
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackRequestType</a></code>
1098+
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackRequestValidity</a></code>
10961099
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackStatus</a></code>
1100+
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackValidationMethod</a></code>
10971101
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">Host</a></code>
10981102
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackListResponse</a></code>
10991103
- <code><a href="./src/resources/ssl/certificate-packs/certificate-packs.ts">CertificatePackDeleteResponse</a></code>

src/resources/custom-hostnames/custom-hostnames.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import * as Core from 'cloudflare/core';
44
import { APIResource } from 'cloudflare/resource';
55
import * as CustomHostnamesAPI from 'cloudflare/resources/custom-hostnames/custom-hostnames';
66
import * as FallbackOriginAPI from 'cloudflare/resources/custom-hostnames/fallback-origin';
7+
import * as CertificatePacksAPI from 'cloudflare/resources/ssl/certificate-packs/certificate-packs';
78
import { V4PagePaginationArray, type V4PagePaginationArrayParams } from 'cloudflare/pagination';
89

910
export class CustomHostnames extends APIResource {
@@ -212,7 +213,7 @@ export namespace CustomHostname {
212213
/**
213214
* The Certificate Authority that will issue the certificate
214215
*/
215-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
216+
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
216217

217218
/**
218219
* If a custom uploaded certificate is used.
@@ -559,7 +560,7 @@ export namespace CustomHostnameCreateResponse {
559560
/**
560561
* The Certificate Authority that will issue the certificate
561562
*/
562-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
563+
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
563564

564565
/**
565566
* If a custom uploaded certificate is used.
@@ -884,7 +885,7 @@ export namespace CustomHostnameListResponse {
884885
/**
885886
* The Certificate Authority that will issue the certificate
886887
*/
887-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
888+
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
888889

889890
/**
890891
* If a custom uploaded certificate is used.
@@ -1216,7 +1217,7 @@ export namespace CustomHostnameEditResponse {
12161217
/**
12171218
* The Certificate Authority that will issue the certificate
12181219
*/
1219-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
1220+
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
12201221

12211222
/**
12221223
* If a custom uploaded certificate is used.
@@ -1541,7 +1542,7 @@ export namespace CustomHostnameGetResponse {
15411542
/**
15421543
* The Certificate Authority that will issue the certificate
15431544
*/
1544-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
1545+
certificate_authority?: CertificatePacksAPI.CertificatePackCA;
15451546

15461547
/**
15471548
* If a custom uploaded certificate is used.
@@ -1804,7 +1805,7 @@ export namespace CustomHostnameCreateParams {
18041805
/**
18051806
* The Certificate Authority that will issue the certificate
18061807
*/
1807-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
1808+
certificate_authority?: CertificatePacksAPI.CertificatePackCAParam;
18081809

18091810
/**
18101811
* If a custom uploaded certificate is used.
@@ -1982,7 +1983,7 @@ export namespace CustomHostnameEditParams {
19821983
/**
19831984
* The Certificate Authority that will issue the certificate
19841985
*/
1985-
certificate_authority?: 'digicert' | 'google' | 'lets_encrypt';
1986+
certificate_authority?: CertificatePacksAPI.CertificatePackCAParam;
19861987

19871988
/**
19881989
* If a custom uploaded certificate is used.

src/resources/origin-ca-certificates.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import * as Core from 'cloudflare/core';
44
import { APIResource } from 'cloudflare/resource';
55
import { isRequestOptions } from 'cloudflare/core';
6+
import * as CertificatePacksAPI from 'cloudflare/resources/ssl/certificate-packs/certificate-packs';
67
import { SinglePage } from 'cloudflare/pagination';
78

89
export class OriginCACertificates extends APIResource {
@@ -89,12 +90,12 @@ export interface OriginCACertificate {
8990
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
9091
* or "keyless-certificate" (for Keyless SSL servers).
9192
*/
92-
request_type: 'origin-rsa' | 'origin-ecc' | 'keyless-certificate';
93+
request_type: CertificatePacksAPI.CertificatePackRequestType;
9394

9495
/**
9596
* The number of days for which the certificate should be valid.
9697
*/
97-
requested_validity: 7 | 30 | 90 | 365 | 730 | 1095 | 5475;
98+
requested_validity: CertificatePacksAPI.CertificatePackRequestValidity;
9899

99100
/**
100101
* Identifier
@@ -139,12 +140,12 @@ export interface OriginCACertificateCreateParams {
139140
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
140141
* or "keyless-certificate" (for Keyless SSL servers).
141142
*/
142-
request_type?: 'origin-rsa' | 'origin-ecc' | 'keyless-certificate';
143+
request_type?: CertificatePacksAPI.CertificatePackRequestTypeParam;
143144

144145
/**
145146
* The number of days for which the certificate should be valid.
146147
*/
147-
requested_validity?: 7 | 30 | 90 | 365 | 730 | 1095 | 5475;
148+
requested_validity?: CertificatePacksAPI.CertificatePackRequestValidityParam;
148149
}
149150

150151
export interface OriginCACertificateListParams {

src/resources/ssl/certificate-packs/certificate-packs.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,38 @@ export class CertificatePacks extends APIResource {
8282

8383
export class CertificatePackListResponsesSinglePage extends SinglePage<CertificatePackListResponse> {}
8484

85+
/**
86+
* The Certificate Authority that will issue the certificate
87+
*/
88+
export type CertificatePackCA = 'digicert' | 'google' | 'lets_encrypt';
89+
90+
/**
91+
* The Certificate Authority that will issue the certificate
92+
*/
93+
export type CertificatePackCAParam = 'digicert' | 'google' | 'lets_encrypt';
94+
95+
/**
96+
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
97+
* or "keyless-certificate" (for Keyless SSL servers).
98+
*/
99+
export type CertificatePackRequestType = 'origin-rsa' | 'origin-ecc' | 'keyless-certificate';
100+
101+
/**
102+
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
103+
* or "keyless-certificate" (for Keyless SSL servers).
104+
*/
105+
export type CertificatePackRequestTypeParam = 'origin-rsa' | 'origin-ecc' | 'keyless-certificate';
106+
107+
/**
108+
* The number of days for which the certificate should be valid.
109+
*/
110+
export type CertificatePackRequestValidity = 7 | 30 | 90 | 365 | 730 | 1095 | 5475;
111+
112+
/**
113+
* The number of days for which the certificate should be valid.
114+
*/
115+
export type CertificatePackRequestValidityParam = 7 | 30 | 90 | 365 | 730 | 1095 | 5475;
116+
85117
/**
86118
* Status of certificate pack.
87119
*/
@@ -108,6 +140,11 @@ export type CertificatePackStatus =
108140
| 'backup_issued'
109141
| 'holding_deployment';
110142

143+
/**
144+
* Validation method in use for a certificate pack order.
145+
*/
146+
export type CertificatePackValidationMethod = 'http' | 'cname' | 'txt';
147+
111148
export type Host = string;
112149

113150
export type HostParam = string;
@@ -208,7 +245,11 @@ export interface CertificatePackGetParams {
208245
}
209246

210247
export namespace CertificatePacks {
248+
export import CertificatePackCA = CertificatePacksAPI.CertificatePackCA;
249+
export import CertificatePackRequestType = CertificatePacksAPI.CertificatePackRequestType;
250+
export import CertificatePackRequestValidity = CertificatePacksAPI.CertificatePackRequestValidity;
211251
export import CertificatePackStatus = CertificatePacksAPI.CertificatePackStatus;
252+
export import CertificatePackValidationMethod = CertificatePacksAPI.CertificatePackValidationMethod;
212253
export import Host = CertificatePacksAPI.Host;
213254
export import CertificatePackListResponse = CertificatePacksAPI.CertificatePackListResponse;
214255
export import CertificatePackDeleteResponse = CertificatePacksAPI.CertificatePackDeleteResponse;

src/resources/ssl/certificate-packs/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
export {
4+
CertificatePackCA,
5+
CertificatePackRequestType,
6+
CertificatePackRequestValidity,
47
CertificatePackStatus,
8+
CertificatePackValidationMethod,
59
Host,
610
CertificatePackListResponse,
711
CertificatePackDeleteResponse,

src/resources/ssl/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
export { AnalyzeCreateResponse, AnalyzeCreateParams, Analyze } from './analyze';
44
export {
5+
CertificatePackCA,
6+
CertificatePackRequestType,
7+
CertificatePackRequestValidity,
58
CertificatePackStatus,
9+
CertificatePackValidationMethod,
610
Host,
711
CertificatePackListResponse,
812
CertificatePackDeleteResponse,

src/resources/ssl/ssl.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ export namespace SSL {
2222
export import AnalyzeCreateResponse = AnalyzeAPI.AnalyzeCreateResponse;
2323
export import AnalyzeCreateParams = AnalyzeAPI.AnalyzeCreateParams;
2424
export import CertificatePacks = CertificatePacksAPI.CertificatePacks;
25+
export import CertificatePackCA = CertificatePacksAPI.CertificatePackCA;
26+
export import CertificatePackRequestType = CertificatePacksAPI.CertificatePackRequestType;
27+
export import CertificatePackRequestValidity = CertificatePacksAPI.CertificatePackRequestValidity;
2528
export import CertificatePackStatus = CertificatePacksAPI.CertificatePackStatus;
29+
export import CertificatePackValidationMethod = CertificatePacksAPI.CertificatePackValidationMethod;
2630
export import Host = CertificatePacksAPI.Host;
2731
export import CertificatePackListResponse = CertificatePacksAPI.CertificatePackListResponse;
2832
export import CertificatePackDeleteResponse = CertificatePacksAPI.CertificatePackDeleteResponse;

src/resources/ssl/verification.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import * as Core from 'cloudflare/core';
44
import { APIResource } from 'cloudflare/resource';
55
import * as VerificationAPI from 'cloudflare/resources/ssl/verification';
6+
import * as CertificatePacksAPI from 'cloudflare/resources/ssl/certificate-packs/certificate-packs';
67

78
export class VerificationResource extends APIResource {
89
/**
@@ -72,7 +73,7 @@ export interface Verification {
7273
/**
7374
* Validation method in use for a certificate pack order.
7475
*/
75-
validation_method?: 'http' | 'cname' | 'txt';
76+
validation_method?: CertificatePacksAPI.CertificatePackValidationMethod;
7677

7778
/**
7879
* Certificate's required verification information.

0 commit comments

Comments
 (0)