@distilled.cloud/cloudflare 0.16.7 → 0.16.9

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.
@@ -3306,6 +3306,20 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3306
3306
  storeId: "store_id",
3307
3307
  type: "type",
3308
3308
  })),
3309
+ Schema.Struct({
3310
+ name: Schema.String,
3311
+ type: Schema.Literal("ratelimit"),
3312
+ namespaceId: Schema.String,
3313
+ simple: Schema.Struct({
3314
+ limit: Schema.Number,
3315
+ period: Schema.Number,
3316
+ }),
3317
+ }).pipe(Schema.encodeKeys({
3318
+ name: "name",
3319
+ type: "type",
3320
+ namespaceId: "namespace_id",
3321
+ simple: "simple",
3322
+ })),
3309
3323
  Schema.Struct({
3310
3324
  dataset: Schema.String,
3311
3325
  name: Schema.String,
@@ -3594,10 +3608,22 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3594
3608
  })),
3595
3609
  Schema.Null,
3596
3610
  ])),
3611
+ traces: Schema.optional(Schema.Struct({
3612
+ enabled: Schema.Boolean,
3613
+ headSamplingRate: Schema.optional(Schema.Number),
3614
+ destinations: Schema.optional(Schema.Array(Schema.String)),
3615
+ persist: Schema.optional(Schema.Boolean),
3616
+ }).pipe(Schema.encodeKeys({
3617
+ enabled: "enabled",
3618
+ headSamplingRate: "head_sampling_rate",
3619
+ destinations: "destinations",
3620
+ persist: "persist",
3621
+ }))),
3597
3622
  }).pipe(Schema.encodeKeys({
3598
3623
  enabled: "enabled",
3599
3624
  headSamplingRate: "head_sampling_rate",
3600
3625
  logs: "logs",
3626
+ traces: "traces",
3601
3627
  }))),
3602
3628
  placement: Schema.optional(Schema.Union([
3603
3629
  Schema.Struct({
@@ -3693,10 +3719,25 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3693
3719
  })),
3694
3720
  Schema.Null,
3695
3721
  ])),
3722
+ traces: Schema.optional(Schema.Union([
3723
+ Schema.Struct({
3724
+ enabled: Schema.Boolean,
3725
+ headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3726
+ destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
3727
+ persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
3728
+ }).pipe(Schema.encodeKeys({
3729
+ enabled: "enabled",
3730
+ headSamplingRate: "head_sampling_rate",
3731
+ destinations: "destinations",
3732
+ persist: "persist",
3733
+ })),
3734
+ Schema.Null,
3735
+ ])),
3696
3736
  }).pipe(Schema.encodeKeys({
3697
3737
  enabled: "enabled",
3698
3738
  headSamplingRate: "head_sampling_rate",
3699
3739
  logs: "logs",
3740
+ traces: "traces",
3700
3741
  })),
3701
3742
  Schema.Null,
3702
3743
  ])),
@@ -5081,10 +5122,25 @@ export const GetScriptScriptAndVersionSettingResponse =
5081
5122
  })),
5082
5123
  Schema.Null,
5083
5124
  ])),
5125
+ traces: Schema.optional(Schema.Union([
5126
+ Schema.Struct({
5127
+ enabled: Schema.Boolean,
5128
+ headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
5129
+ destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
5130
+ persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5131
+ }).pipe(Schema.encodeKeys({
5132
+ enabled: "enabled",
5133
+ headSamplingRate: "head_sampling_rate",
5134
+ destinations: "destinations",
5135
+ persist: "persist",
5136
+ })),
5137
+ Schema.Null,
5138
+ ])),
5084
5139
  }).pipe(Schema.encodeKeys({
5085
5140
  enabled: "enabled",
5086
5141
  headSamplingRate: "head_sampling_rate",
5087
5142
  logs: "logs",
5143
+ traces: "traces",
5088
5144
  })),
5089
5145
  Schema.Null,
5090
5146
  ])),
@@ -5962,10 +6018,25 @@ export const GetScriptSettingResponse =
5962
6018
  })),
5963
6019
  Schema.Null,
5964
6020
  ])),
6021
+ traces: Schema.optional(Schema.Union([
6022
+ Schema.Struct({
6023
+ enabled: Schema.Boolean,
6024
+ headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6025
+ destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
6026
+ persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
6027
+ }).pipe(Schema.encodeKeys({
6028
+ enabled: "enabled",
6029
+ headSamplingRate: "head_sampling_rate",
6030
+ destinations: "destinations",
6031
+ persist: "persist",
6032
+ })),
6033
+ Schema.Null,
6034
+ ])),
5965
6035
  }).pipe(Schema.encodeKeys({
5966
6036
  enabled: "enabled",
5967
6037
  headSamplingRate: "head_sampling_rate",
5968
6038
  logs: "logs",
6039
+ traces: "traces",
5969
6040
  })),
5970
6041
  Schema.Null,
5971
6042
  ])),
@@ -6016,10 +6087,22 @@ export const PatchScriptSettingRequest =
6016
6087
  })),
6017
6088
  Schema.Null,
6018
6089
  ])),
6090
+ traces: Schema.optional(Schema.Struct({
6091
+ enabled: Schema.Boolean,
6092
+ headSamplingRate: Schema.optional(Schema.Number),
6093
+ destinations: Schema.optional(Schema.Array(Schema.String)),
6094
+ persist: Schema.optional(Schema.Boolean),
6095
+ }).pipe(Schema.encodeKeys({
6096
+ enabled: "enabled",
6097
+ headSamplingRate: "head_sampling_rate",
6098
+ destinations: "destinations",
6099
+ persist: "persist",
6100
+ }))),
6019
6101
  }).pipe(Schema.encodeKeys({
6020
6102
  enabled: "enabled",
6021
6103
  headSamplingRate: "head_sampling_rate",
6022
6104
  logs: "logs",
6105
+ traces: "traces",
6023
6106
  })),
6024
6107
  Schema.Null,
6025
6108
  ])),
@@ -6064,10 +6147,25 @@ export const PatchScriptSettingResponse =
6064
6147
  })),
6065
6148
  Schema.Null,
6066
6149
  ])),
6150
+ traces: Schema.optional(Schema.Union([
6151
+ Schema.Struct({
6152
+ enabled: Schema.Boolean,
6153
+ headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6154
+ destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
6155
+ persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
6156
+ }).pipe(Schema.encodeKeys({
6157
+ enabled: "enabled",
6158
+ headSamplingRate: "head_sampling_rate",
6159
+ destinations: "destinations",
6160
+ persist: "persist",
6161
+ })),
6162
+ Schema.Null,
6163
+ ])),
6067
6164
  }).pipe(Schema.encodeKeys({
6068
6165
  enabled: "enabled",
6069
6166
  headSamplingRate: "head_sampling_rate",
6070
6167
  logs: "logs",
6168
+ traces: "traces",
6071
6169
  })),
6072
6170
  Schema.Null,
6073
6171
  ])),