cloudflare-api-js 0.16.0 → 0.17.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/dist/index.mjs CHANGED
@@ -2018,6 +2018,18 @@ const accountsTurnstileWidgetRotateSecret = (variables, signal) => fetch$1({
2018
2018
  ...variables,
2019
2019
  signal
2020
2020
  });
2021
+ const postBinDBPost = (variables, signal) => fetch$1({
2022
+ url: "/accounts/{accountId}/cloudforce-one/binary",
2023
+ method: "post",
2024
+ ...variables,
2025
+ signal
2026
+ });
2027
+ const getBinDBGetBinary = (variables, signal) => fetch$1({
2028
+ url: "/accounts/{accountId}/cloudforce-one/binary/{hash}",
2029
+ method: "get",
2030
+ ...variables,
2031
+ signal
2032
+ });
2021
2033
  const getEventListGet = (variables, signal) => fetch$1({
2022
2034
  url: "/accounts/{accountId}/cloudforce-one/events",
2023
2035
  method: "get",
@@ -2168,6 +2180,42 @@ const getIndicatorTypesList = (variables, signal) => fetch$1({
2168
2180
  ...variables,
2169
2181
  signal
2170
2182
  });
2183
+ const getIndicatorList = (variables, signal) => fetch$1({
2184
+ url: "/accounts/{accountId}/cloudforce-one/events/indicators",
2185
+ method: "get",
2186
+ ...variables,
2187
+ signal
2188
+ });
2189
+ const postIndicatorCreateBulk = (variables, signal) => fetch$1({
2190
+ url: "/accounts/{accountId}/cloudforce-one/events/indicators/bulk",
2191
+ method: "post",
2192
+ ...variables,
2193
+ signal
2194
+ });
2195
+ const postIndicatorCreate = (variables, signal) => fetch$1({
2196
+ url: "/accounts/{accountId}/cloudforce-one/events/indicators/create",
2197
+ method: "post",
2198
+ ...variables,
2199
+ signal
2200
+ });
2201
+ const deleteIndicatorDelete = (variables, signal) => fetch$1({
2202
+ url: "/accounts/{accountId}/cloudforce-one/events/indicators/{indicatorId}",
2203
+ method: "delete",
2204
+ ...variables,
2205
+ signal
2206
+ });
2207
+ const getIndicatorRead = (variables, signal) => fetch$1({
2208
+ url: "/accounts/{accountId}/cloudforce-one/events/indicators/{indicatorId}",
2209
+ method: "get",
2210
+ ...variables,
2211
+ signal
2212
+ });
2213
+ const patchIndicatorUpdate = (variables, signal) => fetch$1({
2214
+ url: "/accounts/{accountId}/cloudforce-one/events/indicators/{indicatorId}",
2215
+ method: "patch",
2216
+ ...variables,
2217
+ signal
2218
+ });
2171
2219
  const getEventRawReadDS = (variables, signal) => fetch$1({
2172
2220
  url: "/accounts/{accountId}/cloudforce-one/events/raw/{datasetId}/{eventId}",
2173
2221
  method: "get",
@@ -2186,6 +2234,12 @@ const postEventReferenceCreate = (variables, signal) => fetch$1({
2186
2234
  ...variables,
2187
2235
  signal
2188
2236
  });
2237
+ const postCreateEventRelationship = (variables, signal) => fetch$1({
2238
+ url: "/accounts/{accountId}/cloudforce-one/events/relationships/create",
2239
+ method: "post",
2240
+ ...variables,
2241
+ signal
2242
+ });
2189
2243
  const postTagCreate = (variables, signal) => fetch$1({
2190
2244
  url: "/accounts/{accountId}/cloudforce-one/events/tags/create",
2191
2245
  method: "post",
@@ -2246,6 +2300,12 @@ const postEventRawUpdate = (variables, signal) => fetch$1({
2246
2300
  ...variables,
2247
2301
  signal
2248
2302
  });
2303
+ const getEventRelationships = (variables, signal) => fetch$1({
2304
+ url: "/accounts/{accountId}/cloudforce-one/events/{eventId}/relationships",
2305
+ method: "get",
2306
+ ...variables,
2307
+ signal
2308
+ });
2249
2309
  const cloudforceOneRequestList = (variables, signal) => fetch$1({
2250
2310
  url: "/accounts/{accountId}/cloudforce-one/requests",
2251
2311
  method: "post",
@@ -3566,6 +3626,12 @@ const emailSecurityCreateAllowPolicy = (variables, signal) => fetch$1({
3566
3626
  ...variables,
3567
3627
  signal
3568
3628
  });
3629
+ const emailSecurityBatchAllowPolicies = (variables, signal) => fetch$1({
3630
+ url: "/accounts/{accountId}/email-security/settings/allow_policies/batch",
3631
+ method: "post",
3632
+ ...variables,
3633
+ signal
3634
+ });
3569
3635
  const emailSecurityDeleteAllowPolicy = (variables, signal) => fetch$1({
3570
3636
  url: "/accounts/{accountId}/email-security/settings/allow_policies/{policyId}",
3571
3637
  method: "delete",
@@ -3596,6 +3662,12 @@ const emailSecurityCreateBlockedSender = (variables, signal) => fetch$1({
3596
3662
  ...variables,
3597
3663
  signal
3598
3664
  });
3665
+ const emailSecurityBatchBlockedSenders = (variables, signal) => fetch$1({
3666
+ url: "/accounts/{accountId}/email-security/settings/block_senders/batch",
3667
+ method: "post",
3668
+ ...variables,
3669
+ signal
3670
+ });
3599
3671
  const emailSecurityDeleteBlockedSender = (variables, signal) => fetch$1({
3600
3672
  url: "/accounts/{accountId}/email-security/settings/block_senders/{patternId}",
3601
3673
  method: "delete",
@@ -3674,6 +3746,12 @@ const emailSecurityUpdateDisplayName = (variables, signal) => fetch$1({
3674
3746
  ...variables,
3675
3747
  signal
3676
3748
  });
3749
+ const emailSecurityBatchSendingDomainRestrictions = (variables, signal) => fetch$1({
3750
+ url: "/accounts/{accountId}/email-security/settings/sending_domain_restrictions/batch",
3751
+ method: "post",
3752
+ ...variables,
3753
+ signal
3754
+ });
3677
3755
  const emailSecurityListTrustedDomains = (variables, signal) => fetch$1({
3678
3756
  url: "/accounts/{accountId}/email-security/settings/trusted_domains",
3679
3757
  method: "get",
@@ -3686,6 +3764,12 @@ const emailSecurityCreateTrustedDomain = (variables, signal) => fetch$1({
3686
3764
  ...variables,
3687
3765
  signal
3688
3766
  });
3767
+ const emailSecurityBatchTrustedDomains = (variables, signal) => fetch$1({
3768
+ url: "/accounts/{accountId}/email-security/settings/trusted_domains/batch",
3769
+ method: "post",
3770
+ ...variables,
3771
+ signal
3772
+ });
3689
3773
  const emailSecurityDeleteTrustedDomain = (variables, signal) => fetch$1({
3690
3774
  url: "/accounts/{accountId}/email-security/settings/trusted_domains/{trustedDomainId}",
3691
3775
  method: "delete",
@@ -3758,6 +3842,30 @@ const r2PutEventNotificationConfig = (variables, signal) => fetch$1({
3758
3842
  ...variables,
3759
3843
  signal
3760
3844
  });
3845
+ const subscriptionsList = (variables, signal) => fetch$1({
3846
+ url: "/accounts/{accountId}/event_subscriptions/subscriptions",
3847
+ method: "get",
3848
+ ...variables,
3849
+ signal
3850
+ });
3851
+ const subscriptionsCreate = (variables, signal) => fetch$1({
3852
+ url: "/accounts/{accountId}/event_subscriptions/subscriptions",
3853
+ method: "post",
3854
+ ...variables,
3855
+ signal
3856
+ });
3857
+ const subscriptionsDelete = (variables, signal) => fetch$1({
3858
+ url: "/accounts/{accountId}/event_subscriptions/subscriptions/{subscriptionId}",
3859
+ method: "delete",
3860
+ ...variables,
3861
+ signal
3862
+ });
3863
+ const subscriptionsPatch = (variables, signal) => fetch$1({
3864
+ url: "/accounts/{accountId}/event_subscriptions/subscriptions/{subscriptionId}",
3865
+ method: "patch",
3866
+ ...variables,
3867
+ signal
3868
+ });
3761
3869
  const ipAccessRulesForAnAccountListIpAccessRules = (variables, signal) => fetch$1({
3762
3870
  url: "/accounts/{accountId}/firewall/access_rules/rules",
3763
3871
  method: "get",
@@ -11523,44 +11631,44 @@ const zoneSettingsEditSingleSetting = (variables, signal) => fetch$1({
11523
11631
  ...variables,
11524
11632
  signal
11525
11633
  });
11526
- const zoneSnippets = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/snippets", method: "get", ...variables, signal });
11527
- const zoneSnippetsSnippetRulesDelete = (variables, signal) => fetch$1({
11634
+ const listZoneSnippets = (variables, signal) => fetch$1({ url: "/zones/{zoneId}/snippets", method: "get", ...variables, signal });
11635
+ const deleteZoneSnippetRules = (variables, signal) => fetch$1({
11528
11636
  url: "/zones/{zoneId}/snippets/snippet_rules",
11529
11637
  method: "delete",
11530
11638
  ...variables,
11531
11639
  signal
11532
11640
  });
11533
- const zoneSnippetsSnippetRules = (variables, signal) => fetch$1({
11641
+ const listZoneSnippetRules = (variables, signal) => fetch$1({
11534
11642
  url: "/zones/{zoneId}/snippets/snippet_rules",
11535
11643
  method: "get",
11536
11644
  ...variables,
11537
11645
  signal
11538
11646
  });
11539
- const zoneSnippetsSnippetRulesPut = (variables, signal) => fetch$1({
11647
+ const updateZoneSnippetRules = (variables, signal) => fetch$1({
11540
11648
  url: "/zones/{zoneId}/snippets/snippet_rules",
11541
11649
  method: "put",
11542
11650
  ...variables,
11543
11651
  signal
11544
11652
  });
11545
- const zoneSnippetsSnippetDelete = (variables, signal) => fetch$1({
11653
+ const deleteZoneSnippet = (variables, signal) => fetch$1({
11546
11654
  url: "/zones/{zoneId}/snippets/{snippetName}",
11547
11655
  method: "delete",
11548
11656
  ...variables,
11549
11657
  signal
11550
11658
  });
11551
- const zoneSnippetsSnippet = (variables, signal) => fetch$1({
11659
+ const getZoneSnippet = (variables, signal) => fetch$1({
11552
11660
  url: "/zones/{zoneId}/snippets/{snippetName}",
11553
11661
  method: "get",
11554
11662
  ...variables,
11555
11663
  signal
11556
11664
  });
11557
- const zoneSnippetsSnippetPut = (variables, signal) => fetch$1({
11665
+ const updateZoneSnippet = (variables, signal) => fetch$1({
11558
11666
  url: "/zones/{zoneId}/snippets/{snippetName}",
11559
11667
  method: "put",
11560
11668
  ...variables,
11561
11669
  signal
11562
11670
  });
11563
- const zoneSnippetsSnippetContent = (variables, signal) => fetch$1({
11671
+ const getZoneSnippetContent = (variables, signal) => fetch$1({
11564
11672
  url: "/zones/{zoneId}/snippets/{snippetName}/content",
11565
11673
  method: "get",
11566
11674
  ...variables,
@@ -12480,6 +12588,7 @@ const operationsByTag = {
12480
12588
  accountsTurnstileWidgetUpdate,
12481
12589
  accountsTurnstileWidgetRotateSecret
12482
12590
  },
12591
+ binDB: { postBinDBPost, getBinDBGetBinary },
12483
12592
  event: {
12484
12593
  getEventListGet,
12485
12594
  postEventList,
@@ -12491,6 +12600,7 @@ const operationsByTag = {
12491
12600
  getEventRawReadDS,
12492
12601
  deleteEventReferenceDelete,
12493
12602
  postEventReferenceCreate,
12603
+ postCreateEventRelationship,
12494
12604
  deleteEventDeleteDO,
12495
12605
  deleteEventDelete,
12496
12606
  getEventRead,
@@ -12498,7 +12608,8 @@ const operationsByTag = {
12498
12608
  postEventUpdate,
12499
12609
  getEventRawRead,
12500
12610
  patchEventRawUpdate,
12501
- postEventRawUpdate
12611
+ postEventRawUpdate,
12612
+ getEventRelationships
12502
12613
  },
12503
12614
  attacker: { getAttackerList },
12504
12615
  category: {
@@ -12520,6 +12631,14 @@ const operationsByTag = {
12520
12631
  },
12521
12632
  healthCheck: { getDOHealthCheck },
12522
12633
  indicatorTypes: { getIndicatorTypesList },
12634
+ indicator: {
12635
+ getIndicatorList,
12636
+ postIndicatorCreateBulk,
12637
+ postIndicatorCreate,
12638
+ deleteIndicatorDelete,
12639
+ getIndicatorRead,
12640
+ patchIndicatorUpdate
12641
+ },
12523
12642
  tag: { postTagCreate },
12524
12643
  targetIndustry: { getTargetIndustryList },
12525
12644
  requestForInformationRFI: {
@@ -12810,11 +12929,13 @@ const operationsByTag = {
12810
12929
  emailSecuritySettings: {
12811
12930
  emailSecurityListAllowPolicies,
12812
12931
  emailSecurityCreateAllowPolicy,
12932
+ emailSecurityBatchAllowPolicies,
12813
12933
  emailSecurityDeleteAllowPolicy,
12814
12934
  emailSecurityGetAllowPolicy,
12815
12935
  emailSecurityUpdateAllowPolicy,
12816
12936
  emailSecurityListBlockedSenders,
12817
12937
  emailSecurityCreateBlockedSender,
12938
+ emailSecurityBatchBlockedSenders,
12818
12939
  emailSecurityDeleteBlockedSender,
12819
12940
  emailSecurityGetBlockedSender,
12820
12941
  emailSecurityUpdateBlockedSender,
@@ -12828,8 +12949,10 @@ const operationsByTag = {
12828
12949
  emailSecurityDeleteDisplayName,
12829
12950
  emailSecurityGetDisplayName,
12830
12951
  emailSecurityUpdateDisplayName,
12952
+ emailSecurityBatchSendingDomainRestrictions,
12831
12953
  emailSecurityListTrustedDomains,
12832
12954
  emailSecurityCreateTrustedDomain,
12955
+ emailSecurityBatchTrustedDomains,
12833
12956
  emailSecurityDeleteTrustedDomain,
12834
12957
  emailSecurityGetTrustedDomain,
12835
12958
  emailSecurityUpdateTrustedDomain
@@ -12869,6 +12992,29 @@ const operationsByTag = {
12869
12992
  r2PutBucketSippyConfig,
12870
12993
  r2CreateTempAccessCredentials
12871
12994
  },
12995
+ queue: {
12996
+ subscriptionsList,
12997
+ subscriptionsCreate,
12998
+ subscriptionsDelete,
12999
+ subscriptionsPatch,
13000
+ queuesList,
13001
+ queuesCreate,
13002
+ queuesDelete,
13003
+ queuesGet,
13004
+ queuesUpdatePartial,
13005
+ queuesUpdate,
13006
+ queuesListConsumers,
13007
+ queuesCreateConsumer,
13008
+ queuesDeleteConsumer,
13009
+ queuesGetConsumer,
13010
+ queuesUpdateConsumer,
13011
+ queuesPushMessage,
13012
+ queuesAckMessages,
13013
+ queuesPushMessages,
13014
+ queuesPullMessages,
13015
+ queuesPurgeGet,
13016
+ queuesPurge
13017
+ },
12872
13018
  iPAccessRulesForAnAccount: {
12873
13019
  ipAccessRulesForAnAccountListIpAccessRules,
12874
13020
  ipAccessRulesForAnAccountCreateAnIpAccessRule,
@@ -13288,25 +13434,6 @@ const operationsByTag = {
13288
13434
  getV4AccountsByAccountIdPipelinesByPipelineName,
13289
13435
  putV4AccountsByAccountIdPipelinesByPipelineName
13290
13436
  },
13291
- queue: {
13292
- queuesList,
13293
- queuesCreate,
13294
- queuesDelete,
13295
- queuesGet,
13296
- queuesUpdatePartial,
13297
- queuesUpdate,
13298
- queuesListConsumers,
13299
- queuesCreateConsumer,
13300
- queuesDeleteConsumer,
13301
- queuesGetConsumer,
13302
- queuesUpdateConsumer,
13303
- queuesPushMessage,
13304
- queuesAckMessages,
13305
- queuesPushMessages,
13306
- queuesPullMessages,
13307
- queuesPurgeGet,
13308
- queuesPurge
13309
- },
13310
13437
  r2Account: { r2GetAccountLevelMetrics },
13311
13438
  registrarDomains: {
13312
13439
  registrarDomainsListDomains,
@@ -14596,14 +14723,14 @@ const operationsByTag = {
14596
14723
  putZonesZoneIdentifierZarazWorkflow
14597
14724
  },
14598
14725
  zoneSnippets: {
14599
- zoneSnippets,
14600
- zoneSnippetsSnippetRulesDelete,
14601
- zoneSnippetsSnippetRules,
14602
- zoneSnippetsSnippetRulesPut,
14603
- zoneSnippetsSnippetDelete,
14604
- zoneSnippetsSnippet,
14605
- zoneSnippetsSnippetPut,
14606
- zoneSnippetsSnippetContent
14726
+ listZoneSnippets,
14727
+ deleteZoneSnippetRules,
14728
+ listZoneSnippetRules,
14729
+ updateZoneSnippetRules,
14730
+ deleteZoneSnippet,
14731
+ getZoneSnippet,
14732
+ updateZoneSnippet,
14733
+ getZoneSnippetContent
14607
14734
  },
14608
14735
  spectrumAnalytics: {
14609
14736
  spectrumAggregateAnalyticsGetCurrentAggregatedAnalytics,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudflare-api-js",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Cloudflare auto-generated type-safe API client",
5
5
  "author": "SferaDev",
6
6
  "license": "ISC",
@@ -14,6 +14,7 @@
14
14
  "exports": {
15
15
  "./package.json": "./package.json",
16
16
  ".": {
17
+ "development": "./src/index.ts",
17
18
  "import": {
18
19
  "types": "./dist/index.d.mts",
19
20
  "default": "./dist/index.mjs"
@@ -29,7 +30,7 @@
29
30
  "url": "git+https://github.com/SferaDev/openapi-clients.git"
30
31
  },
31
32
  "scripts": {
32
- "tsc": "tsc --noEmit",
33
+ "tsc": "tsgo --noEmit",
33
34
  "build": "unbuild",
34
35
  "generate": "openapi-codegen cloudflare"
35
36
  }