Skip to content

Commit e080728

Browse files
committed
fix(cloudflare): advertise lifecycle rules as a JSON array string
1 parent 68125a7 commit e080728

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/docs/content/docs/integrations/cloudflare.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7744,7 +7744,7 @@ Replaces the object lifecycle rules for an R2 bucket. Rules match object-key pre
77447744
| `accountId` | string | Yes | Account id |
77457745
| `bucketName` | string | Yes | Bucket name |
77467746
| `apiKey` | string | Yes | Cloudflare API token |
7747-
| `rules` | json | Yes | Complete JSON array of lifecycle rules. Read the current rules first and include every rule to retain. Use \[\] only to remove all lifecycle rules. Fields: abortMultipartUploadsTransition, conditions, deleteObjectsTransition, enabled, id, storageClassTransitions. |
7747+
| `rules` | string | Yes | Complete JSON array of lifecycle rules. Read the current rules first and include every rule to retain. Use \[\] only to remove all lifecycle rules. Fields: abortMultipartUploadsTransition, conditions, deleteObjectsTransition, enabled, id, storageClassTransitions. |
77487748
| `jurisdiction` | string | No | Jurisdiction where objects in this bucket are guaranteed to be stored. |
77497749

77507750
#### Output

‎apps/sim/blocks/blocks/cloudflare.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5299,7 +5299,7 @@ export const CloudflareBlock: BlockConfig = {
52995299
description: 'JSON array. rules Fields: allowed, exposeHeaders, id, maxAgeSeconds.',
53005300
},
53015301
r2BucketLifecycleRules: {
5302-
type: 'json',
5302+
type: 'string',
53035303
description:
53045304
'Complete JSON array of lifecycle rules. Read the current rules first and include every rule to retain. Use [] only to remove all lifecycle rules. Fields: abortMultipartUploadsTransition, conditions, deleteObjectsTransition, enabled, id, storageClassTransitions.',
53055305
},

‎apps/sim/tools/cloudflare/update_r2_bucket_lifecycle.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const updateR2BucketLifecycleTool: ToolConfig<
4040
description: 'Cloudflare API token',
4141
},
4242
rules: {
43-
type: 'json',
43+
type: 'string',
4444
required: true,
4545
visibility: 'user-or-llm',
4646
description:

‎apps/sim/tools/generated/tool-metadata.ts‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)