Skip to content

Commit 4864aee

Browse files
feat(api): api update
1 parent 450aef4 commit 4864aee

File tree

3 files changed

+203
-2
lines changed

3 files changed

+203
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1711
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-63d313f223ebb360e53c58caf935ce58781a1ac011cb446eaafda704a7fc5def.yml
3-
openapi_spec_hash: 08ea0a86790d6aba1f32af150f2efb49
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8979d87a68730809f5e1055132623c20c6fc905c607fd920dfd9f5e7451f361b.yml
3+
openapi_spec_hash: 54841167d512fb12eb706094b9cb86f8
44
config_hash: 67f412c990647f3cb598378fa22a9db5

src/resources/url-scanner/scans.ts

Lines changed: 200 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,206 @@ export interface ScanCreateParams {
12461246
*/
12471247
url: string;
12481248

1249+
/**
1250+
* Body param:
1251+
*/
1252+
country?:
1253+
| 'AF'
1254+
| 'AL'
1255+
| 'DZ'
1256+
| 'AD'
1257+
| 'AO'
1258+
| 'AG'
1259+
| 'AR'
1260+
| 'AM'
1261+
| 'AU'
1262+
| 'AT'
1263+
| 'AZ'
1264+
| 'BH'
1265+
| 'BD'
1266+
| 'BB'
1267+
| 'BY'
1268+
| 'BE'
1269+
| 'BZ'
1270+
| 'BJ'
1271+
| 'BM'
1272+
| 'BT'
1273+
| 'BO'
1274+
| 'BA'
1275+
| 'BW'
1276+
| 'BR'
1277+
| 'BN'
1278+
| 'BG'
1279+
| 'BF'
1280+
| 'BI'
1281+
| 'KH'
1282+
| 'CM'
1283+
| 'CA'
1284+
| 'CV'
1285+
| 'KY'
1286+
| 'CF'
1287+
| 'TD'
1288+
| 'CL'
1289+
| 'CN'
1290+
| 'CO'
1291+
| 'KM'
1292+
| 'CG'
1293+
| 'CR'
1294+
| 'CI'
1295+
| 'HR'
1296+
| 'CU'
1297+
| 'CY'
1298+
| 'CZ'
1299+
| 'CD'
1300+
| 'DK'
1301+
| 'DJ'
1302+
| 'DM'
1303+
| 'DO'
1304+
| 'EC'
1305+
| 'EG'
1306+
| 'SV'
1307+
| 'GQ'
1308+
| 'ER'
1309+
| 'EE'
1310+
| 'SZ'
1311+
| 'ET'
1312+
| 'FJ'
1313+
| 'FI'
1314+
| 'FR'
1315+
| 'GA'
1316+
| 'GE'
1317+
| 'DE'
1318+
| 'GH'
1319+
| 'GR'
1320+
| 'GL'
1321+
| 'GD'
1322+
| 'GT'
1323+
| 'GN'
1324+
| 'GW'
1325+
| 'GY'
1326+
| 'HT'
1327+
| 'HN'
1328+
| 'HU'
1329+
| 'IS'
1330+
| 'IN'
1331+
| 'ID'
1332+
| 'IR'
1333+
| 'IQ'
1334+
| 'IE'
1335+
| 'IL'
1336+
| 'IT'
1337+
| 'JM'
1338+
| 'JP'
1339+
| 'JO'
1340+
| 'KZ'
1341+
| 'KE'
1342+
| 'KI'
1343+
| 'KW'
1344+
| 'KG'
1345+
| 'LA'
1346+
| 'LV'
1347+
| 'LB'
1348+
| 'LS'
1349+
| 'LR'
1350+
| 'LY'
1351+
| 'LI'
1352+
| 'LT'
1353+
| 'LU'
1354+
| 'MO'
1355+
| 'MG'
1356+
| 'MW'
1357+
| 'MY'
1358+
| 'MV'
1359+
| 'ML'
1360+
| 'MR'
1361+
| 'MU'
1362+
| 'MX'
1363+
| 'FM'
1364+
| 'MD'
1365+
| 'MC'
1366+
| 'MN'
1367+
| 'MS'
1368+
| 'MA'
1369+
| 'MZ'
1370+
| 'MM'
1371+
| 'NA'
1372+
| 'NR'
1373+
| 'NP'
1374+
| 'NL'
1375+
| 'NZ'
1376+
| 'NI'
1377+
| 'NE'
1378+
| 'NG'
1379+
| 'KP'
1380+
| 'MK'
1381+
| 'NO'
1382+
| 'OM'
1383+
| 'PK'
1384+
| 'PS'
1385+
| 'PA'
1386+
| 'PG'
1387+
| 'PY'
1388+
| 'PE'
1389+
| 'PH'
1390+
| 'PL'
1391+
| 'PT'
1392+
| 'QA'
1393+
| 'RO'
1394+
| 'RU'
1395+
| 'RW'
1396+
| 'SH'
1397+
| 'KN'
1398+
| 'LC'
1399+
| 'VC'
1400+
| 'WS'
1401+
| 'SM'
1402+
| 'ST'
1403+
| 'SA'
1404+
| 'SN'
1405+
| 'RS'
1406+
| 'SC'
1407+
| 'SL'
1408+
| 'SK'
1409+
| 'SI'
1410+
| 'SB'
1411+
| 'SO'
1412+
| 'ZA'
1413+
| 'KR'
1414+
| 'SS'
1415+
| 'ES'
1416+
| 'LK'
1417+
| 'SD'
1418+
| 'SR'
1419+
| 'SE'
1420+
| 'CH'
1421+
| 'SY'
1422+
| 'TW'
1423+
| 'TJ'
1424+
| 'TZ'
1425+
| 'TH'
1426+
| 'BS'
1427+
| 'GM'
1428+
| 'TL'
1429+
| 'TG'
1430+
| 'TO'
1431+
| 'TT'
1432+
| 'TN'
1433+
| 'TR'
1434+
| 'TM'
1435+
| 'UG'
1436+
| 'UA'
1437+
| 'AE'
1438+
| 'GB'
1439+
| 'US'
1440+
| 'UY'
1441+
| 'UZ'
1442+
| 'VU'
1443+
| 'VE'
1444+
| 'VN'
1445+
| 'YE'
1446+
| 'ZM'
1447+
| 'ZW';
1448+
12491449
/**
12501450
* Body param:
12511451
*/

tests/api-resources/url-scanner/scans.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ describe('resource scans', () => {
2828
const response = await client.urlScanner.scans.create({
2929
account_id: 'account_id',
3030
url: 'https://www.example.com',
31+
country: 'AF',
3132
customagent: 'customagent',
3233
customHeaders: { foo: 'string' },
3334
referer: 'referer',

0 commit comments

Comments
 (0)