cloudflare-api-js 0.2.1 → 0.4.0
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/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +23 -0
- package/dist/index.cjs +27 -9
- package/dist/index.d.cts +617 -222
- package/dist/index.d.mts +617 -222
- package/dist/index.d.ts +617 -222
- package/dist/index.mjs +27 -9
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
|
-
> cloudflare-api-js@0.
|
|
2
|
+
> cloudflare-api-js@0.4.0 build /home/runner/work/openapi-clients/openapi-clients/packages/cloudflare-api
|
|
3
3
|
> unbuild
|
|
4
4
|
|
|
5
5
|
[info] Automatically detected entries: src/index [esm] [cjs] [dts]
|
|
6
6
|
[info] Building cloudflare-api-js
|
|
7
7
|
[info] Cleaning dist directory: `./dist`
|
|
8
8
|
[success] Build succeeded for cloudflare-api-js
|
|
9
|
-
[log] dist/index.cjs (total size:
|
|
9
|
+
[log] dist/index.cjs (total size: 385 kB, chunk size: 385 kB, exports: CloudflareApi)
|
|
10
10
|
|
|
11
|
-
[log] dist/index.mjs (total size:
|
|
11
|
+
[log] dist/index.mjs (total size: 385 kB, chunk size: 385 kB, exports: CloudflareApi)
|
|
12
12
|
|
|
13
|
-
Σ Total dist size (byte size): 22.
|
|
13
|
+
Σ Total dist size (byte size): 22.7 MB
|
|
14
14
|
[log]
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# cloudflare-api-js
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b2f3d1f: Refactor query_string structure to support both include and exclude options
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 71cc81b: [BREAKING] Add new configuration for resolving DNS internally
|
|
12
|
+
- 45e8197: [OpenAPI] Spec updates for cloudflare-api-js
|
|
13
|
+
- efbdc12: [BREAKING] Add new parameters 'prompts.prompt_id' and 'prompts.version_id' to AigConfigDeleteGatewayLogsQueryParams and AigConfigListGatewayLogsQueryParams
|
|
14
|
+
|
|
15
|
+
## 0.3.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- 3889330: [BREAKING] Add new endpoints getCommandsEligibleDevices and getCommandsEligibleUsers
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 81c233b: [OpenAPI] Spec updates for cloudflare-api-js
|
|
24
|
+
- 62e0e1d: Remove order_by and order_by_direction from AigConfigListGatewayQueryParams
|
|
25
|
+
|
|
3
26
|
## 0.2.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -197,6 +197,7 @@ const accountDeletion = (variables, signal) => fetch$1({
|
|
|
197
197
|
});
|
|
198
198
|
const accountsAccountDetails = (variables, signal) => fetch$1({ url: "/accounts/{accountId}", method: "get", ...variables, signal });
|
|
199
199
|
const accountsUpdateAccount = (variables, signal) => fetch$1({ url: "/accounts/{accountId}", method: "put", ...variables, signal });
|
|
200
|
+
const submitAbuseReport = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/abuse-reports/{reportType}", method: "post", ...variables, signal });
|
|
200
201
|
const accessApplicationsListAccessApplications = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps", method: "get", ...variables, signal });
|
|
201
202
|
const accessApplicationsAddAnApplication = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps", method: "post", ...variables, signal });
|
|
202
203
|
const accessShortLivedCertificateCAsListShortLivedCertificateCAs = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/ca", method: "get", ...variables, signal });
|
|
@@ -211,6 +212,12 @@ const accessPoliciesCreateAnAccessPolicy = (variables, signal) => fetch$1({ url:
|
|
|
211
212
|
const accessPoliciesDeleteAnAccessPolicy = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}", method: "delete", ...variables, signal });
|
|
212
213
|
const accessPoliciesGetAnAccessPolicy = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}", method: "get", ...variables, signal });
|
|
213
214
|
const accessPoliciesUpdateAnAccessPolicy = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}", method: "put", ...variables, signal });
|
|
215
|
+
const accessPoliciesConvertReusable = (variables, signal) => fetch$1({
|
|
216
|
+
url: "/accounts/{accountId}/access/apps/{appId}/policies/{policyId}/make_reusable",
|
|
217
|
+
method: "put",
|
|
218
|
+
...variables,
|
|
219
|
+
signal
|
|
220
|
+
});
|
|
214
221
|
const accessApplicationsRevokeServiceTokens = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/revoke_tokens", method: "post", ...variables, signal });
|
|
215
222
|
const accessApplicationsTestAccessPolicies = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/apps/{appId}/user_policy_checks", method: "get", ...variables, signal });
|
|
216
223
|
const accessBookmarkApplicationsDeprecatedListBookmarkApplications = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/access/bookmarks", method: "get", ...variables, signal });
|
|
@@ -836,12 +843,14 @@ const postCommands = (variables, signal) => fetch$1({
|
|
|
836
843
|
...variables,
|
|
837
844
|
signal
|
|
838
845
|
});
|
|
846
|
+
const getCommandsEligibleDevices = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/dex/commands/devices", method: "get", ...variables, signal });
|
|
839
847
|
const getCommandsQuota = (variables, signal) => fetch$1({
|
|
840
848
|
url: "/accounts/{accountId}/dex/commands/quota",
|
|
841
849
|
method: "get",
|
|
842
850
|
...variables,
|
|
843
851
|
signal
|
|
844
852
|
});
|
|
853
|
+
const getCommandsEligibleUsers = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/dex/commands/users", method: "get", ...variables, signal });
|
|
845
854
|
const getCommandsCommandIdDownloadsFilename = (variables, signal) => fetch$1({
|
|
846
855
|
url: "/accounts/{accountId}/dex/commands/{commandId}/downloads/{filename}",
|
|
847
856
|
method: "get",
|
|
@@ -1944,7 +1953,6 @@ const urlscannerGetScanV2 = (variables, signal) => fetch$1({
|
|
|
1944
1953
|
const urlscannerCreateScanV2 = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/urlscanner/v2/scan", method: "post", ...variables, signal });
|
|
1945
1954
|
const urlscannerGetScanScreenshotV2 = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/urlscanner/v2/screenshots/{scanId}.png", method: "get", ...variables, signal });
|
|
1946
1955
|
const urlscannerSearchScansV2 = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/urlscanner/v2/search", method: "get", ...variables, signal });
|
|
1947
|
-
const submitAbuseReport = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/v1/abuse-reports/{reportType}", method: "post", ...variables, signal });
|
|
1948
1956
|
const vectorizeDeprecatedListVectorizeIndexes = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/vectorize/indexes", method: "get", ...variables, signal });
|
|
1949
1957
|
const vectorizeDeprecatedCreateVectorizeIndex = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/vectorize/indexes", method: "post", ...variables, signal });
|
|
1950
1958
|
const vectorizeDeprecatedDeleteVectorizeIndex = (variables, signal) => fetch$1({ url: "/accounts/{accountId}/vectorize/indexes/{indexName}", method: "delete", ...variables, signal });
|
|
@@ -2669,6 +2677,7 @@ const apiShieldExpressionTemplatesFallthrough = (variables, signal) => fetch$1({
|
|
|
2669
2677
|
const apiShieldEndpointManagementDeleteMultipleOperations = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations", method: "delete", ...variables, signal });
|
|
2670
2678
|
const apiShieldEndpointManagementRetrieveInformationAboutAllOperationsOnAZone = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations", method: "get", ...variables, signal });
|
|
2671
2679
|
const apiShieldEndpointManagementAddOperationsToAZone = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations", method: "post", ...variables, signal });
|
|
2680
|
+
const apiShieldEndpointManagementAddOperationToAZone = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations/item", method: "post", ...variables, signal });
|
|
2672
2681
|
const apiShieldSchemaValidationUpdateMultipleOperationLevelSettings = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations/schema_validation", method: "patch", ...variables, signal });
|
|
2673
2682
|
const apiShieldEndpointManagementDeleteAnOperation = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations/{operationId}", method: "delete", ...variables, signal });
|
|
2674
2683
|
const apiShieldEndpointManagementRetrieveInformationAboutAnOperation = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/api_gateway/operations/{operationId}", method: "get", ...variables, signal });
|
|
@@ -2709,7 +2718,7 @@ const zoneCacheSettingsChangeCacheReserveSetting = (variables, signal) => fetch$
|
|
|
2709
2718
|
const zoneCacheSettingsGetCacheReserveClear = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/cache_reserve_clear", method: "get", ...variables, signal });
|
|
2710
2719
|
const zoneCacheSettingsStartCacheReserveClear = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/cache_reserve_clear", method: "post", ...variables, signal });
|
|
2711
2720
|
const zoneCacheSettingsGetOriginPostQuantumEncryptionSetting = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/origin_post_quantum_encryption", method: "get", ...variables, signal });
|
|
2712
|
-
const zoneCacheSettingsChangeOriginPostQuantumEncryptionSetting = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/origin_post_quantum_encryption", method: "
|
|
2721
|
+
const zoneCacheSettingsChangeOriginPostQuantumEncryptionSetting = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/origin_post_quantum_encryption", method: "put", ...variables, signal });
|
|
2713
2722
|
const zoneCacheSettingsGetRegionalTieredCacheSetting = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/regional_tiered_cache", method: "get", ...variables, signal });
|
|
2714
2723
|
const zoneCacheSettingsChangeRegionalTieredCacheSetting = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/regional_tiered_cache", method: "patch", ...variables, signal });
|
|
2715
2724
|
const smartTieredCacheDeleteSmartTieredCacheSetting = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/cache/tiered_cache_smart_topology_enable", method: "delete", ...variables, signal });
|
|
@@ -3286,6 +3295,7 @@ const operationsByTag = {
|
|
|
3286
3295
|
listsCreateListItems,
|
|
3287
3296
|
listsUpdateAllListItems
|
|
3288
3297
|
},
|
|
3298
|
+
tsengAbuseComplaintProcessorOther: { submitAbuseReport },
|
|
3289
3299
|
accessApplications: {
|
|
3290
3300
|
accessApplicationsListAccessApplications,
|
|
3291
3301
|
accessApplicationsAddAnApplication,
|
|
@@ -3306,7 +3316,8 @@ const operationsByTag = {
|
|
|
3306
3316
|
accessPoliciesCreateAnAccessPolicy,
|
|
3307
3317
|
accessPoliciesDeleteAnAccessPolicy,
|
|
3308
3318
|
accessPoliciesGetAnAccessPolicy,
|
|
3309
|
-
accessPoliciesUpdateAnAccessPolicy
|
|
3319
|
+
accessPoliciesUpdateAnAccessPolicy,
|
|
3320
|
+
accessPoliciesConvertReusable
|
|
3310
3321
|
},
|
|
3311
3322
|
accessBookmarkApplicationsDeprecated: {
|
|
3312
3323
|
accessBookmarkApplicationsDeprecatedListBookmarkApplications,
|
|
@@ -3741,7 +3752,14 @@ const operationsByTag = {
|
|
|
3741
3752
|
dexEndpointsTracerouteTestNetworkPath,
|
|
3742
3753
|
dexEndpointsTracerouteTestPercentiles
|
|
3743
3754
|
},
|
|
3744
|
-
dEXRemoteCommands: {
|
|
3755
|
+
dEXRemoteCommands: {
|
|
3756
|
+
getCommands,
|
|
3757
|
+
postCommands,
|
|
3758
|
+
getCommandsEligibleDevices,
|
|
3759
|
+
getCommandsQuota,
|
|
3760
|
+
getCommandsEligibleUsers,
|
|
3761
|
+
getCommandsCommandIdDownloadsFilename
|
|
3762
|
+
},
|
|
3745
3763
|
diagnostics: { diagnosticsTraceroute },
|
|
3746
3764
|
dLPDatasets: {
|
|
3747
3765
|
dlpDatasetsReadAll,
|
|
@@ -4388,7 +4406,6 @@ const operationsByTag = {
|
|
|
4388
4406
|
urlscannerGetScanScreenshotV2,
|
|
4389
4407
|
urlscannerSearchScansV2
|
|
4390
4408
|
},
|
|
4391
|
-
tsengAbuseComplaintProcessorOther: { submitAbuseReport },
|
|
4392
4409
|
vectorizeBetaDeprecated: {
|
|
4393
4410
|
vectorizeDeprecatedListVectorizeIndexes,
|
|
4394
4411
|
vectorizeDeprecatedCreateVectorizeIndex,
|
|
@@ -4849,6 +4866,7 @@ const operationsByTag = {
|
|
|
4849
4866
|
apiShieldEndpointManagementDeleteMultipleOperations,
|
|
4850
4867
|
apiShieldEndpointManagementRetrieveInformationAboutAllOperationsOnAZone,
|
|
4851
4868
|
apiShieldEndpointManagementAddOperationsToAZone,
|
|
4869
|
+
apiShieldEndpointManagementAddOperationToAZone,
|
|
4852
4870
|
apiShieldEndpointManagementDeleteAnOperation,
|
|
4853
4871
|
apiShieldEndpointManagementRetrieveInformationAboutAnOperation,
|
|
4854
4872
|
apiShieldEndpointManagementRetrieveOperationsAndFeaturesAsOpenApiSchemas
|
|
@@ -5305,15 +5323,15 @@ class CloudflareApi {
|
|
|
5305
5323
|
{},
|
|
5306
5324
|
{
|
|
5307
5325
|
get: (_target, namespace) => {
|
|
5308
|
-
if (operationsByTag[namespace] ===
|
|
5309
|
-
return
|
|
5326
|
+
if (operationsByTag[namespace] === undefined) {
|
|
5327
|
+
return undefined;
|
|
5310
5328
|
}
|
|
5311
5329
|
return new Proxy(
|
|
5312
5330
|
{},
|
|
5313
5331
|
{
|
|
5314
5332
|
get: (_target2, operation) => {
|
|
5315
|
-
if (operationsByTag[namespace][operation] ===
|
|
5316
|
-
return
|
|
5333
|
+
if (operationsByTag[namespace][operation] === undefined) {
|
|
5334
|
+
return undefined;
|
|
5317
5335
|
}
|
|
5318
5336
|
const method = operationsByTag[namespace][operation];
|
|
5319
5337
|
return async (params) => {
|