@distilled.cloud/cloudflare 0.16.7 → 0.16.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/cloudflare",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"specs:update": "git -C specs/cloudflare-typescript fetch && git -C specs/cloudflare-typescript checkout main && git -C specs/cloudflare-typescript pull"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@distilled.cloud/core": "0.16.
|
|
66
|
+
"@distilled.cloud/core": "0.16.8",
|
|
67
67
|
"effect": ">=4.0.0-beta.60 || >=4.0.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
package/src/services/workers.ts
CHANGED
|
@@ -6659,6 +6659,12 @@ export interface PutScriptRequest {
|
|
|
6659
6659
|
headSamplingRate?: number | null;
|
|
6660
6660
|
persist?: boolean;
|
|
6661
6661
|
} | null;
|
|
6662
|
+
traces?: {
|
|
6663
|
+
enabled: boolean;
|
|
6664
|
+
headSamplingRate?: number;
|
|
6665
|
+
destinations?: string[];
|
|
6666
|
+
persist?: boolean;
|
|
6667
|
+
};
|
|
6662
6668
|
};
|
|
6663
6669
|
placement?:
|
|
6664
6670
|
| { mode: "smart" }
|
|
@@ -7120,11 +7126,27 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
7120
7126
|
Schema.Null,
|
|
7121
7127
|
]),
|
|
7122
7128
|
),
|
|
7129
|
+
traces: Schema.optional(
|
|
7130
|
+
Schema.Struct({
|
|
7131
|
+
enabled: Schema.Boolean,
|
|
7132
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
7133
|
+
destinations: Schema.optional(Schema.Array(Schema.String)),
|
|
7134
|
+
persist: Schema.optional(Schema.Boolean),
|
|
7135
|
+
}).pipe(
|
|
7136
|
+
Schema.encodeKeys({
|
|
7137
|
+
enabled: "enabled",
|
|
7138
|
+
headSamplingRate: "head_sampling_rate",
|
|
7139
|
+
destinations: "destinations",
|
|
7140
|
+
persist: "persist",
|
|
7141
|
+
}),
|
|
7142
|
+
),
|
|
7143
|
+
),
|
|
7123
7144
|
}).pipe(
|
|
7124
7145
|
Schema.encodeKeys({
|
|
7125
7146
|
enabled: "enabled",
|
|
7126
7147
|
headSamplingRate: "head_sampling_rate",
|
|
7127
7148
|
logs: "logs",
|
|
7149
|
+
traces: "traces",
|
|
7128
7150
|
}),
|
|
7129
7151
|
),
|
|
7130
7152
|
),
|
|
@@ -7240,6 +7262,12 @@ export interface PutScriptResponse {
|
|
|
7240
7262
|
headSamplingRate?: number | null;
|
|
7241
7263
|
persist?: boolean | null;
|
|
7242
7264
|
} | null;
|
|
7265
|
+
traces?: {
|
|
7266
|
+
enabled: boolean;
|
|
7267
|
+
headSamplingRate?: number | null;
|
|
7268
|
+
destinations?: string[] | null;
|
|
7269
|
+
persist?: boolean | null;
|
|
7270
|
+
} | null;
|
|
7243
7271
|
} | null;
|
|
7244
7272
|
/** Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted place */
|
|
7245
7273
|
placement?:
|
|
@@ -7371,11 +7399,36 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
7371
7399
|
Schema.Null,
|
|
7372
7400
|
]),
|
|
7373
7401
|
),
|
|
7402
|
+
traces: Schema.optional(
|
|
7403
|
+
Schema.Union([
|
|
7404
|
+
Schema.Struct({
|
|
7405
|
+
enabled: Schema.Boolean,
|
|
7406
|
+
headSamplingRate: Schema.optional(
|
|
7407
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
7408
|
+
),
|
|
7409
|
+
destinations: Schema.optional(
|
|
7410
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
7411
|
+
),
|
|
7412
|
+
persist: Schema.optional(
|
|
7413
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
7414
|
+
),
|
|
7415
|
+
}).pipe(
|
|
7416
|
+
Schema.encodeKeys({
|
|
7417
|
+
enabled: "enabled",
|
|
7418
|
+
headSamplingRate: "head_sampling_rate",
|
|
7419
|
+
destinations: "destinations",
|
|
7420
|
+
persist: "persist",
|
|
7421
|
+
}),
|
|
7422
|
+
),
|
|
7423
|
+
Schema.Null,
|
|
7424
|
+
]),
|
|
7425
|
+
),
|
|
7374
7426
|
}).pipe(
|
|
7375
7427
|
Schema.encodeKeys({
|
|
7376
7428
|
enabled: "enabled",
|
|
7377
7429
|
headSamplingRate: "head_sampling_rate",
|
|
7378
7430
|
logs: "logs",
|
|
7431
|
+
traces: "traces",
|
|
7379
7432
|
}),
|
|
7380
7433
|
),
|
|
7381
7434
|
Schema.Null,
|
|
@@ -9662,6 +9715,12 @@ export interface GetScriptScriptAndVersionSettingResponse {
|
|
|
9662
9715
|
headSamplingRate?: number | null;
|
|
9663
9716
|
persist?: boolean | null;
|
|
9664
9717
|
} | null;
|
|
9718
|
+
traces?: {
|
|
9719
|
+
enabled: boolean;
|
|
9720
|
+
headSamplingRate?: number | null;
|
|
9721
|
+
destinations?: string[] | null;
|
|
9722
|
+
persist?: boolean | null;
|
|
9723
|
+
} | null;
|
|
9665
9724
|
} | null;
|
|
9666
9725
|
/** Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted place */
|
|
9667
9726
|
placement?: unknown | null;
|
|
@@ -10024,11 +10083,36 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
10024
10083
|
Schema.Null,
|
|
10025
10084
|
]),
|
|
10026
10085
|
),
|
|
10086
|
+
traces: Schema.optional(
|
|
10087
|
+
Schema.Union([
|
|
10088
|
+
Schema.Struct({
|
|
10089
|
+
enabled: Schema.Boolean,
|
|
10090
|
+
headSamplingRate: Schema.optional(
|
|
10091
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
10092
|
+
),
|
|
10093
|
+
destinations: Schema.optional(
|
|
10094
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
10095
|
+
),
|
|
10096
|
+
persist: Schema.optional(
|
|
10097
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
10098
|
+
),
|
|
10099
|
+
}).pipe(
|
|
10100
|
+
Schema.encodeKeys({
|
|
10101
|
+
enabled: "enabled",
|
|
10102
|
+
headSamplingRate: "head_sampling_rate",
|
|
10103
|
+
destinations: "destinations",
|
|
10104
|
+
persist: "persist",
|
|
10105
|
+
}),
|
|
10106
|
+
),
|
|
10107
|
+
Schema.Null,
|
|
10108
|
+
]),
|
|
10109
|
+
),
|
|
10027
10110
|
}).pipe(
|
|
10028
10111
|
Schema.encodeKeys({
|
|
10029
10112
|
enabled: "enabled",
|
|
10030
10113
|
headSamplingRate: "head_sampling_rate",
|
|
10031
10114
|
logs: "logs",
|
|
10115
|
+
traces: "traces",
|
|
10032
10116
|
}),
|
|
10033
10117
|
),
|
|
10034
10118
|
Schema.Null,
|
|
@@ -11624,6 +11708,12 @@ export interface GetScriptSettingResponse {
|
|
|
11624
11708
|
headSamplingRate?: number | null;
|
|
11625
11709
|
persist?: boolean | null;
|
|
11626
11710
|
} | null;
|
|
11711
|
+
traces?: {
|
|
11712
|
+
enabled: boolean;
|
|
11713
|
+
headSamplingRate?: number | null;
|
|
11714
|
+
destinations?: string[] | null;
|
|
11715
|
+
persist?: boolean | null;
|
|
11716
|
+
} | null;
|
|
11627
11717
|
} | null;
|
|
11628
11718
|
/** Tags associated with the Worker. */
|
|
11629
11719
|
tags?: string[] | null;
|
|
@@ -11673,11 +11763,36 @@ export const GetScriptSettingResponse =
|
|
|
11673
11763
|
Schema.Null,
|
|
11674
11764
|
]),
|
|
11675
11765
|
),
|
|
11766
|
+
traces: Schema.optional(
|
|
11767
|
+
Schema.Union([
|
|
11768
|
+
Schema.Struct({
|
|
11769
|
+
enabled: Schema.Boolean,
|
|
11770
|
+
headSamplingRate: Schema.optional(
|
|
11771
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
11772
|
+
),
|
|
11773
|
+
destinations: Schema.optional(
|
|
11774
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
11775
|
+
),
|
|
11776
|
+
persist: Schema.optional(
|
|
11777
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
11778
|
+
),
|
|
11779
|
+
}).pipe(
|
|
11780
|
+
Schema.encodeKeys({
|
|
11781
|
+
enabled: "enabled",
|
|
11782
|
+
headSamplingRate: "head_sampling_rate",
|
|
11783
|
+
destinations: "destinations",
|
|
11784
|
+
persist: "persist",
|
|
11785
|
+
}),
|
|
11786
|
+
),
|
|
11787
|
+
Schema.Null,
|
|
11788
|
+
]),
|
|
11789
|
+
),
|
|
11676
11790
|
}).pipe(
|
|
11677
11791
|
Schema.encodeKeys({
|
|
11678
11792
|
enabled: "enabled",
|
|
11679
11793
|
headSamplingRate: "head_sampling_rate",
|
|
11680
11794
|
logs: "logs",
|
|
11795
|
+
traces: "traces",
|
|
11681
11796
|
}),
|
|
11682
11797
|
),
|
|
11683
11798
|
Schema.Null,
|
|
@@ -11745,6 +11860,12 @@ export interface PatchScriptSettingRequest {
|
|
|
11745
11860
|
headSamplingRate?: number | null;
|
|
11746
11861
|
persist?: boolean;
|
|
11747
11862
|
} | null;
|
|
11863
|
+
traces?: {
|
|
11864
|
+
enabled: boolean;
|
|
11865
|
+
headSamplingRate?: number;
|
|
11866
|
+
destinations?: string[];
|
|
11867
|
+
persist?: boolean;
|
|
11868
|
+
};
|
|
11748
11869
|
} | null;
|
|
11749
11870
|
/** Body param: Tags associated with the Worker. */
|
|
11750
11871
|
tags?: string[] | null;
|
|
@@ -11788,11 +11909,27 @@ export const PatchScriptSettingRequest =
|
|
|
11788
11909
|
Schema.Null,
|
|
11789
11910
|
]),
|
|
11790
11911
|
),
|
|
11912
|
+
traces: Schema.optional(
|
|
11913
|
+
Schema.Struct({
|
|
11914
|
+
enabled: Schema.Boolean,
|
|
11915
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
11916
|
+
destinations: Schema.optional(Schema.Array(Schema.String)),
|
|
11917
|
+
persist: Schema.optional(Schema.Boolean),
|
|
11918
|
+
}).pipe(
|
|
11919
|
+
Schema.encodeKeys({
|
|
11920
|
+
enabled: "enabled",
|
|
11921
|
+
headSamplingRate: "head_sampling_rate",
|
|
11922
|
+
destinations: "destinations",
|
|
11923
|
+
persist: "persist",
|
|
11924
|
+
}),
|
|
11925
|
+
),
|
|
11926
|
+
),
|
|
11791
11927
|
}).pipe(
|
|
11792
11928
|
Schema.encodeKeys({
|
|
11793
11929
|
enabled: "enabled",
|
|
11794
11930
|
headSamplingRate: "head_sampling_rate",
|
|
11795
11931
|
logs: "logs",
|
|
11932
|
+
traces: "traces",
|
|
11796
11933
|
}),
|
|
11797
11934
|
),
|
|
11798
11935
|
Schema.Null,
|
|
@@ -11840,6 +11977,12 @@ export interface PatchScriptSettingResponse {
|
|
|
11840
11977
|
headSamplingRate?: number | null;
|
|
11841
11978
|
persist?: boolean | null;
|
|
11842
11979
|
} | null;
|
|
11980
|
+
traces?: {
|
|
11981
|
+
enabled: boolean;
|
|
11982
|
+
headSamplingRate?: number | null;
|
|
11983
|
+
destinations?: string[] | null;
|
|
11984
|
+
persist?: boolean | null;
|
|
11985
|
+
} | null;
|
|
11843
11986
|
} | null;
|
|
11844
11987
|
/** Tags associated with the Worker. */
|
|
11845
11988
|
tags?: string[] | null;
|
|
@@ -11889,11 +12032,36 @@ export const PatchScriptSettingResponse =
|
|
|
11889
12032
|
Schema.Null,
|
|
11890
12033
|
]),
|
|
11891
12034
|
),
|
|
12035
|
+
traces: Schema.optional(
|
|
12036
|
+
Schema.Union([
|
|
12037
|
+
Schema.Struct({
|
|
12038
|
+
enabled: Schema.Boolean,
|
|
12039
|
+
headSamplingRate: Schema.optional(
|
|
12040
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
12041
|
+
),
|
|
12042
|
+
destinations: Schema.optional(
|
|
12043
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
12044
|
+
),
|
|
12045
|
+
persist: Schema.optional(
|
|
12046
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
12047
|
+
),
|
|
12048
|
+
}).pipe(
|
|
12049
|
+
Schema.encodeKeys({
|
|
12050
|
+
enabled: "enabled",
|
|
12051
|
+
headSamplingRate: "head_sampling_rate",
|
|
12052
|
+
destinations: "destinations",
|
|
12053
|
+
persist: "persist",
|
|
12054
|
+
}),
|
|
12055
|
+
),
|
|
12056
|
+
Schema.Null,
|
|
12057
|
+
]),
|
|
12058
|
+
),
|
|
11892
12059
|
}).pipe(
|
|
11893
12060
|
Schema.encodeKeys({
|
|
11894
12061
|
enabled: "enabled",
|
|
11895
12062
|
headSamplingRate: "head_sampling_rate",
|
|
11896
12063
|
logs: "logs",
|
|
12064
|
+
traces: "traces",
|
|
11897
12065
|
}),
|
|
11898
12066
|
),
|
|
11899
12067
|
Schema.Null,
|