cloudflare 3.0.0-beta.3 → 3.0.0-beta.5
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/CHANGELOG.md +180 -0
- package/package.json +1 -1
- package/resources/dns/records.d.ts +18 -6
- package/resources/dns/records.d.ts.map +1 -1
- package/resources/dns/records.js.map +1 -1
- package/resources/dns/records.mjs.map +1 -1
- package/resources/r2/sippy.d.ts +1 -1
- package/resources/r2/sippy.d.ts.map +1 -1
- package/resources/radar/bgp/routes.d.ts +7 -2
- package/resources/radar/bgp/routes.d.ts.map +1 -1
- package/resources/radar/bgp/routes.js.map +1 -1
- package/resources/radar/bgp/routes.mjs.map +1 -1
- package/resources/url-scanner/url-scanner.d.ts +4 -0
- package/resources/url-scanner/url-scanner.d.ts.map +1 -1
- package/resources/url-scanner/url-scanner.js.map +1 -1
- package/resources/url-scanner/url-scanner.mjs.map +1 -1
- package/resources/workers/ai.d.ts +114 -2
- package/resources/workers/ai.d.ts.map +1 -1
- package/resources/workers/ai.js.map +1 -1
- package/resources/workers/ai.mjs.map +1 -1
- package/resources/zero-trust/access/applications/applications.d.ts +2 -2
- package/resources/zero-trust/access/applications/applications.d.ts.map +1 -1
- package/src/resources/dns/records.ts +81 -6
- package/src/resources/r2/sippy.ts +1 -1
- package/src/resources/radar/bgp/routes.ts +8 -2
- package/src/resources/url-scanner/url-scanner.ts +5 -0
- package/src/resources/workers/ai.ts +195 -2
- package/src/resources/zero-trust/access/applications/applications.ts +2 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -99,6 +99,11 @@ export interface URLScannerScanParams {
|
|
|
99
99
|
*/
|
|
100
100
|
date_start?: string;
|
|
101
101
|
|
|
102
|
+
/**
|
|
103
|
+
* Filter scans by hash of any html/js/css request made by the webpage.
|
|
104
|
+
*/
|
|
105
|
+
hash?: string;
|
|
106
|
+
|
|
102
107
|
/**
|
|
103
108
|
* Filter scans by hostname of _any_ request made by the webpage.
|
|
104
109
|
*/
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import * as Core from "../../core";
|
|
4
4
|
import { APIResource } from "../../resource";
|
|
5
5
|
import * as AIAPI from "./ai";
|
|
6
|
+
import { type Uploadable } from "../../core";
|
|
6
7
|
|
|
7
8
|
export class AI extends APIResource {
|
|
8
9
|
/**
|
|
@@ -27,7 +28,93 @@ export class AI extends APIResource {
|
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
export type AIRunResponse =
|
|
31
|
+
export type AIRunResponse =
|
|
32
|
+
| Array<AIRunResponse.TextClassification>
|
|
33
|
+
| Uploadable
|
|
34
|
+
| Array<number>
|
|
35
|
+
| AIRunResponse.TextEmbeddings
|
|
36
|
+
| AIRunResponse.SpeechRecognition
|
|
37
|
+
| Array<AIRunResponse.ImageClassification>
|
|
38
|
+
| Array<AIRunResponse.ObjectDetection>
|
|
39
|
+
| AIRunResponse.Response
|
|
40
|
+
| Uploadable
|
|
41
|
+
| AIRunResponse.Translation
|
|
42
|
+
| AIRunResponse.Summarization
|
|
43
|
+
| AIRunResponse.ImageToText;
|
|
44
|
+
|
|
45
|
+
export namespace AIRunResponse {
|
|
46
|
+
export interface TextClassification {
|
|
47
|
+
label?: string;
|
|
48
|
+
|
|
49
|
+
score?: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface TextEmbeddings {
|
|
53
|
+
data?: Array<Array<number>>;
|
|
54
|
+
|
|
55
|
+
shape?: Array<number>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface SpeechRecognition {
|
|
59
|
+
text: string;
|
|
60
|
+
|
|
61
|
+
word_count?: number;
|
|
62
|
+
|
|
63
|
+
words?: Array<SpeechRecognition.Word>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export namespace SpeechRecognition {
|
|
67
|
+
export interface Word {
|
|
68
|
+
end?: number;
|
|
69
|
+
|
|
70
|
+
start?: number;
|
|
71
|
+
|
|
72
|
+
word?: string;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface ImageClassification {
|
|
77
|
+
label?: string;
|
|
78
|
+
|
|
79
|
+
score?: number;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ObjectDetection {
|
|
83
|
+
box?: ObjectDetection.Box;
|
|
84
|
+
|
|
85
|
+
label?: string;
|
|
86
|
+
|
|
87
|
+
score?: number;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export namespace ObjectDetection {
|
|
91
|
+
export interface Box {
|
|
92
|
+
xmax?: number;
|
|
93
|
+
|
|
94
|
+
xmin?: number;
|
|
95
|
+
|
|
96
|
+
ymax?: number;
|
|
97
|
+
|
|
98
|
+
ymin?: number;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface Response {
|
|
103
|
+
response?: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export interface Translation {
|
|
107
|
+
translated_text?: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface Summarization {
|
|
111
|
+
summary?: string;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface ImageToText {
|
|
115
|
+
description?: string;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
31
118
|
|
|
32
119
|
export interface AIRunParams {
|
|
33
120
|
/**
|
|
@@ -38,7 +125,113 @@ export interface AIRunParams {
|
|
|
38
125
|
/**
|
|
39
126
|
* Body param:
|
|
40
127
|
*/
|
|
41
|
-
body:
|
|
128
|
+
body:
|
|
129
|
+
| AIRunParams.TextClassification
|
|
130
|
+
| AIRunParams.TextToImage
|
|
131
|
+
| AIRunParams.SentenceSimilarity
|
|
132
|
+
| AIRunParams.TextEmbeddings
|
|
133
|
+
| Uploadable
|
|
134
|
+
| AIRunParams.Audio
|
|
135
|
+
| Uploadable
|
|
136
|
+
| AIRunParams.Image
|
|
137
|
+
| Uploadable
|
|
138
|
+
| AIRunParams.Image
|
|
139
|
+
| AIRunParams.UnionMember10
|
|
140
|
+
| AIRunParams.UnionMember11
|
|
141
|
+
| AIRunParams.Translation
|
|
142
|
+
| AIRunParams.Summarization
|
|
143
|
+
| Uploadable
|
|
144
|
+
| AIRunParams.UnionMember15;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export namespace AIRunParams {
|
|
148
|
+
export interface TextClassification {
|
|
149
|
+
text: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface TextToImage {
|
|
153
|
+
prompt: string;
|
|
154
|
+
|
|
155
|
+
guidance?: number;
|
|
156
|
+
|
|
157
|
+
image?: Array<number>;
|
|
158
|
+
|
|
159
|
+
mask?: Array<number>;
|
|
160
|
+
|
|
161
|
+
num_steps?: number;
|
|
162
|
+
|
|
163
|
+
strength?: number;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface SentenceSimilarity {
|
|
167
|
+
sentences: Array<string>;
|
|
168
|
+
|
|
169
|
+
source: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface TextEmbeddings {
|
|
173
|
+
text: string | Array<string>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export interface Audio {
|
|
177
|
+
audio?: Array<number>;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface Image {
|
|
181
|
+
image?: Array<number>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface Image {
|
|
185
|
+
image?: Array<number>;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export interface UnionMember10 {
|
|
189
|
+
prompt: string;
|
|
190
|
+
|
|
191
|
+
max_tokens?: number;
|
|
192
|
+
|
|
193
|
+
raw?: boolean;
|
|
194
|
+
|
|
195
|
+
stream?: boolean;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
export interface UnionMember11 {
|
|
199
|
+
messages: Array<UnionMember11.Message>;
|
|
200
|
+
|
|
201
|
+
max_tokens?: number;
|
|
202
|
+
|
|
203
|
+
stream?: boolean;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export namespace UnionMember11 {
|
|
207
|
+
export interface Message {
|
|
208
|
+
content: string;
|
|
209
|
+
|
|
210
|
+
role: string;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface Translation {
|
|
215
|
+
target_lang: string;
|
|
216
|
+
|
|
217
|
+
text: string;
|
|
218
|
+
|
|
219
|
+
source_lang?: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface Summarization {
|
|
223
|
+
input_text: string;
|
|
224
|
+
|
|
225
|
+
max_length?: number;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface UnionMember15 {
|
|
229
|
+
image?: Array<number>;
|
|
230
|
+
|
|
231
|
+
max_tokens?: number;
|
|
232
|
+
|
|
233
|
+
prompt?: string;
|
|
234
|
+
}
|
|
42
235
|
}
|
|
43
236
|
|
|
44
237
|
export namespace AI {
|
|
@@ -1371,7 +1371,7 @@ export interface ApplicationCreateParams {
|
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Body param: The application type.
|
|
1373
1373
|
*/
|
|
1374
|
-
type?:
|
|
1374
|
+
type?: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
|
|
1375
1375
|
}
|
|
1376
1376
|
|
|
1377
1377
|
export namespace ApplicationCreateParams {
|
|
@@ -1696,7 +1696,7 @@ export interface ApplicationUpdateParams {
|
|
|
1696
1696
|
/**
|
|
1697
1697
|
* Body param: The application type.
|
|
1698
1698
|
*/
|
|
1699
|
-
type?:
|
|
1699
|
+
type?: 'self_hosted' | 'saas' | 'ssh' | 'vnc' | 'app_launcher' | 'warp' | 'biso' | 'bookmark' | 'dash_sso';
|
|
1700
1700
|
}
|
|
1701
1701
|
|
|
1702
1702
|
export namespace ApplicationUpdateParams {
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '3.0.0-beta.
|
|
1
|
+
export const VERSION = '3.0.0-beta.5'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.0-beta.
|
|
1
|
+
export declare const VERSION = "3.0.0-beta.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
|
-
exports.VERSION = '3.0.0-beta.
|
|
4
|
+
exports.VERSION = '3.0.0-beta.5'; // x-release-please-version
|
|
5
5
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '3.0.0-beta.
|
|
1
|
+
export const VERSION = '3.0.0-beta.5'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|