File tree Expand file tree Collapse file tree 15 files changed +62
-54
lines changed Expand file tree Collapse file tree 15 files changed +62
-54
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- <code ><a href =" ./src/resources/shared.ts " >ASN</a ></code >
6
6
- <code ><a href =" ./src/resources/shared.ts " >AuditLog</a ></code >
7
+ - <code ><a href =" ./src/resources/shared.ts " >CertificatePackRequestType</a ></code >
7
8
- <code ><a href =" ./src/resources/shared.ts " >CloudflareTunnel</a ></code >
8
9
- <code ><a href =" ./src/resources/shared.ts " >ErrorData</a ></code >
9
10
- <code ><a href =" ./src/resources/shared.ts " >Identifier</a ></code >
@@ -1096,7 +1097,6 @@ Types:
1096
1097
1097
1098
- <code ><a href =" ./src/resources/ssl/certificate-packs/certificate-packs.ts " >CertificateAuthority</a ></code >
1098
1099
- <code ><a href =" ./src/resources/ssl/certificate-packs/certificate-packs.ts " >Host</a ></code >
1099
- - <code ><a href =" ./src/resources/ssl/certificate-packs/certificate-packs.ts " >RequestType</a ></code >
1100
1100
- <code ><a href =" ./src/resources/ssl/certificate-packs/certificate-packs.ts " >RequestValidity</a ></code >
1101
1101
- <code ><a href =" ./src/resources/ssl/certificate-packs/certificate-packs.ts " >Status</a ></code >
1102
1102
- <code ><a href =" ./src/resources/ssl/certificate-packs/certificate-packs.ts " >ValidationMethod</a ></code >
@@ -1455,6 +1455,10 @@ Methods:
1455
1455
1456
1456
### Analytics
1457
1457
1458
+ Types:
1459
+
1460
+ - <code ><a href =" ./src/resources/dns/firewall/analytics/analytics.ts " >Delta</a ></code >
1461
+
1458
1462
#### Reports
1459
1463
1460
1464
Methods:
Original file line number Diff line number Diff line change @@ -556,6 +556,7 @@ export namespace Cloudflare {
556
556
557
557
export import ASN = API . ASN ;
558
558
export import AuditLog = API . AuditLog ;
559
+ export import CertificatePackRequestType = API . CertificatePackRequestType ;
559
560
export import CloudflareTunnel = API . CloudflareTunnel ;
560
561
export import ErrorData = API . ErrorData ;
561
562
export import Identifier = API . Identifier ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as Core from 'cloudflare/core';
4
4
import { APIResource } from 'cloudflare/resource' ;
5
5
import * as BytimesAPI from 'cloudflare/resources/dns/analytics/reports/bytimes' ;
6
6
import * as DNSAPI from 'cloudflare/resources/dns/dns' ;
7
+ import * as AnalyticsAPI from 'cloudflare/resources/dns/firewall/analytics/analytics' ;
7
8
8
9
export class Bytimes extends APIResource {
9
10
/**
@@ -124,17 +125,7 @@ export interface BytimeGetParams {
124
125
/**
125
126
* Query param: Unit of time to group data by.
126
127
*/
127
- time_delta ?:
128
- | 'all'
129
- | 'auto'
130
- | 'year'
131
- | 'quarter'
132
- | 'month'
133
- | 'week'
134
- | 'day'
135
- | 'hour'
136
- | 'dekaminute'
137
- | 'minute' ;
128
+ time_delta ?: AnalyticsAPI . DeltaParam ;
138
129
139
130
/**
140
131
* Query param: End date and time of requesting data period in ISO 8601 format.
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { APIResource } from 'cloudflare/resource';
4
4
import * as RecordsAPI from 'cloudflare/resources/dns/records' ;
5
5
import * as AnalyticsAPI from 'cloudflare/resources/dns/analytics/analytics' ;
6
6
import * as FirewallAPI from 'cloudflare/resources/dns/firewall/firewall' ;
7
+ import * as AnalyticsAnalyticsAPI from 'cloudflare/resources/dns/firewall/analytics/analytics' ;
7
8
8
9
export class DNS extends APIResource {
9
10
records : RecordsAPI . Records = new RecordsAPI . Records ( this . _client ) ;
@@ -40,17 +41,7 @@ export interface DNSAnalyticsQuery {
40
41
/**
41
42
* Unit of time to group data by.
42
43
*/
43
- time_delta :
44
- | 'all'
45
- | 'auto'
46
- | 'year'
47
- | 'quarter'
48
- | 'month'
49
- | 'week'
50
- | 'day'
51
- | 'hour'
52
- | 'dekaminute'
53
- | 'minute' ;
44
+ time_delta : AnalyticsAnalyticsAPI . Delta ;
54
45
55
46
/**
56
47
* End date and time of requesting data period in ISO 8601 format.
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
3
import { APIResource } from 'cloudflare/resource' ;
4
+ import * as AnalyticsAPI from 'cloudflare/resources/dns/firewall/analytics/analytics' ;
4
5
import * as ReportsAPI from 'cloudflare/resources/dns/firewall/analytics/reports/reports' ;
5
6
6
7
export class Analytics extends APIResource {
7
8
reports : ReportsAPI . Reports = new ReportsAPI . Reports ( this . _client ) ;
8
9
}
9
10
11
+ /**
12
+ * Unit of time to group data by.
13
+ */
14
+ export type Delta =
15
+ | 'all'
16
+ | 'auto'
17
+ | 'year'
18
+ | 'quarter'
19
+ | 'month'
20
+ | 'week'
21
+ | 'day'
22
+ | 'hour'
23
+ | 'dekaminute'
24
+ | 'minute' ;
25
+
26
+ /**
27
+ * Unit of time to group data by.
28
+ */
29
+ export type DeltaParam =
30
+ | 'all'
31
+ | 'auto'
32
+ | 'year'
33
+ | 'quarter'
34
+ | 'month'
35
+ | 'week'
36
+ | 'day'
37
+ | 'hour'
38
+ | 'dekaminute'
39
+ | 'minute' ;
40
+
10
41
export namespace Analytics {
42
+ export import Delta = AnalyticsAPI . Delta ;
11
43
export import Reports = ReportsAPI . Reports ;
12
44
export import ReportGetParams = ReportsAPI . ReportGetParams ;
13
45
}
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
- export { Analytics } from './analytics' ;
3
+ export { Delta , Analytics } from './analytics' ;
4
4
export { ReportGetParams , Reports } from './reports/index' ;
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import * as Core from 'cloudflare/core';
4
4
import { APIResource } from 'cloudflare/resource' ;
5
5
import * as ReportsBytimesAPI from 'cloudflare/resources/dns/firewall/analytics/reports/bytimes' ;
6
6
import * as BytimesAPI from 'cloudflare/resources/dns/analytics/reports/bytimes' ;
7
+ import * as AnalyticsAPI from 'cloudflare/resources/dns/firewall/analytics/analytics' ;
7
8
8
9
export class Bytimes extends APIResource {
9
10
/**
@@ -68,17 +69,7 @@ export interface BytimeGetParams {
68
69
/**
69
70
* Query param: Unit of time to group data by.
70
71
*/
71
- time_delta ?:
72
- | 'all'
73
- | 'auto'
74
- | 'year'
75
- | 'quarter'
76
- | 'month'
77
- | 'week'
78
- | 'day'
79
- | 'hour'
80
- | 'dekaminute'
81
- | 'minute' ;
72
+ time_delta ?: AnalyticsAPI . DeltaParam ;
82
73
83
74
/**
84
75
* Query param: End date and time of requesting data period in ISO 8601 format.
Original file line number Diff line number Diff line change @@ -369,4 +369,5 @@ export namespace FirewallResource {
369
369
export import FirewallEditParams = FirewallAPI . FirewallEditParams ;
370
370
export import FirewallGetParams = FirewallAPI . FirewallGetParams ;
371
371
export import Analytics = AnalyticsAPI . Analytics ;
372
+ export import Delta = AnalyticsAPI . Delta ;
372
373
}
Original file line number Diff line number Diff line change 1
1
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
3
- export { Analytics } from './analytics/index' ;
4
3
export {
5
4
AttackMitigation ,
6
5
Firewall ,
@@ -15,3 +14,4 @@ export {
15
14
FirewallsV4PagePaginationArray ,
16
15
FirewallResource ,
17
16
} from './firewall' ;
17
+ export { Delta , Analytics } from './analytics/index' ;
Original file line number Diff line number Diff line change 3
3
import * as Core from 'cloudflare/core' ;
4
4
import { APIResource } from 'cloudflare/resource' ;
5
5
import { isRequestOptions } from 'cloudflare/core' ;
6
+ import * as Shared from 'cloudflare/resources/shared' ;
6
7
import * as CertificatePacksAPI from 'cloudflare/resources/ssl/certificate-packs/certificate-packs' ;
7
8
import { SinglePage } from 'cloudflare/pagination' ;
8
9
@@ -90,7 +91,7 @@ export interface OriginCACertificate {
90
91
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
91
92
* or "keyless-certificate" (for Keyless SSL servers).
92
93
*/
93
- request_type : CertificatePacksAPI . RequestType ;
94
+ request_type : Shared . CertificatePackRequestType ;
94
95
95
96
/**
96
97
* The number of days for which the certificate should be valid.
@@ -140,7 +141,7 @@ export interface OriginCACertificateCreateParams {
140
141
* Signature type desired on certificate ("origin-rsa" (rsa), "origin-ecc" (ecdsa),
141
142
* or "keyless-certificate" (for Keyless SSL servers).
142
143
*/
143
- request_type ?: CertificatePacksAPI . RequestTypeParam ;
144
+ request_type ?: Shared . CertificatePackRequestTypeParam ;
144
145
145
146
/**
146
147
* The number of days for which the certificate should be valid.
You can’t perform that action at this time.
0 commit comments