@distilled.cloud/cloudflare 0.22.4 → 0.23.1

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.22.4",
3
+ "version": "0.23.1",
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.22.4"
66
+ "@distilled.cloud/core": "0.23.1"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@effect/platform-node": ">=4.0.0-beta.66 || >=4.0.0",
@@ -7596,12 +7596,12 @@ export interface QueryObservabilityTelemetryResponse {
7596
7596
  granularity: number;
7597
7597
  query: {
7598
7598
  id: string;
7599
- adhoc: boolean;
7600
- created: string;
7601
- createdBy: string;
7602
- description: string | null;
7603
- name: string;
7604
- parameters: {
7599
+ adhoc?: boolean | null;
7600
+ created?: string | null;
7601
+ createdBy?: string | null;
7602
+ description?: string | null;
7603
+ name?: string | null;
7604
+ parameters?: {
7605
7605
  calculations?:
7606
7606
  | {
7607
7607
  operator:
@@ -7733,9 +7733,9 @@ export interface QueryObservabilityTelemetryResponse {
7733
7733
  value: string;
7734
7734
  order?: "asc" | "desc" | (string & {}) | null;
7735
7735
  } | null;
7736
- };
7737
- updated: string;
7738
- updatedBy: string;
7736
+ } | null;
7737
+ updated?: string | null;
7738
+ updatedBy?: string | null;
7739
7739
  };
7740
7740
  status: "STARTED" | "COMPLETED" | (string & {});
7741
7741
  timeframe: { from: number; to: number };
@@ -8001,227 +8001,243 @@ export const QueryObservabilityTelemetryResponse =
8001
8001
  granularity: Schema.Number,
8002
8002
  query: Schema.Struct({
8003
8003
  id: Schema.String,
8004
- adhoc: Schema.Boolean,
8005
- created: Schema.String,
8006
- createdBy: Schema.String,
8007
- description: Schema.Union([Schema.String, Schema.Null]),
8008
- name: Schema.String,
8009
- parameters: Schema.Struct({
8010
- calculations: Schema.optional(
8011
- Schema.Union([
8012
- Schema.Array(
8013
- Schema.Struct({
8014
- operator: Schema.Union([
8015
- Schema.Literals([
8016
- "uniq",
8017
- "count",
8018
- "max",
8019
- "min",
8020
- "sum",
8021
- "avg",
8022
- "median",
8023
- "p001",
8024
- "p01",
8025
- "p05",
8026
- "p10",
8027
- "p25",
8028
- "p75",
8029
- "p90",
8030
- "p95",
8031
- "p99",
8032
- "p999",
8033
- "stddev",
8034
- "variance",
8035
- "COUNT_DISTINCT",
8036
- "COUNT",
8037
- "MAX",
8038
- "MIN",
8039
- "SUM",
8040
- "AVG",
8041
- "MEDIAN",
8042
- "P001",
8043
- "P01",
8044
- "P05",
8045
- "P10",
8046
- "P25",
8047
- "P75",
8048
- "P90",
8049
- "P95",
8050
- "P99",
8051
- "P999",
8052
- "STDDEV",
8053
- "VARIANCE",
8054
- ]),
8004
+ adhoc: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
8005
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8006
+ createdBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8007
+ description: Schema.optional(
8008
+ Schema.Union([Schema.String, Schema.Null]),
8009
+ ),
8010
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8011
+ parameters: Schema.optional(
8012
+ Schema.Union([
8013
+ Schema.Struct({
8014
+ calculations: Schema.optional(
8015
+ Schema.Union([
8016
+ Schema.Array(
8017
+ Schema.Struct({
8018
+ operator: Schema.Union([
8019
+ Schema.Literals([
8020
+ "uniq",
8021
+ "count",
8022
+ "max",
8023
+ "min",
8024
+ "sum",
8025
+ "avg",
8026
+ "median",
8027
+ "p001",
8028
+ "p01",
8029
+ "p05",
8030
+ "p10",
8031
+ "p25",
8032
+ "p75",
8033
+ "p90",
8034
+ "p95",
8035
+ "p99",
8036
+ "p999",
8037
+ "stddev",
8038
+ "variance",
8039
+ "COUNT_DISTINCT",
8040
+ "COUNT",
8041
+ "MAX",
8042
+ "MIN",
8043
+ "SUM",
8044
+ "AVG",
8045
+ "MEDIAN",
8046
+ "P001",
8047
+ "P01",
8048
+ "P05",
8049
+ "P10",
8050
+ "P25",
8051
+ "P75",
8052
+ "P90",
8053
+ "P95",
8054
+ "P99",
8055
+ "P999",
8056
+ "STDDEV",
8057
+ "VARIANCE",
8058
+ ]),
8059
+ Schema.String,
8060
+ ]),
8061
+ alias: Schema.optional(
8062
+ Schema.Union([Schema.String, Schema.Null]),
8063
+ ),
8064
+ key: Schema.optional(
8065
+ Schema.Union([Schema.String, Schema.Null]),
8066
+ ),
8067
+ keyType: Schema.optional(
8068
+ Schema.Union([
8069
+ Schema.Union([
8070
+ Schema.Literals(["string", "number", "boolean"]),
8071
+ Schema.String,
8072
+ ]),
8073
+ Schema.Null,
8074
+ ]),
8075
+ ),
8076
+ }),
8077
+ ),
8078
+ Schema.Null,
8079
+ ]),
8080
+ ),
8081
+ datasets: Schema.optional(
8082
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
8083
+ ),
8084
+ filterCombination: Schema.optional(
8085
+ Schema.Union([
8086
+ Schema.Union([
8087
+ Schema.Literals(["and", "or", "AND", "OR"]),
8055
8088
  Schema.String,
8056
8089
  ]),
8057
- alias: Schema.optional(
8058
- Schema.Union([Schema.String, Schema.Null]),
8059
- ),
8060
- key: Schema.optional(
8061
- Schema.Union([Schema.String, Schema.Null]),
8062
- ),
8063
- keyType: Schema.optional(
8090
+ Schema.Null,
8091
+ ]),
8092
+ ),
8093
+ filters: Schema.optional(
8094
+ Schema.Union([
8095
+ Schema.Array(
8064
8096
  Schema.Union([
8065
- Schema.Union([
8097
+ Schema.Struct({
8098
+ filterCombination: Schema.Union([
8099
+ Schema.Literals(["and", "or", "AND", "OR"]),
8100
+ Schema.String,
8101
+ ]),
8102
+ filters: Schema.Array(Schema.Unknown),
8103
+ kind: Schema.Literal("group"),
8104
+ }),
8105
+ Schema.Struct({
8106
+ key: Schema.String,
8107
+ operation: Schema.Union([
8108
+ Schema.Literals([
8109
+ "includes",
8110
+ "not_includes",
8111
+ "starts_with",
8112
+ "ends_with",
8113
+ "regex",
8114
+ "exists",
8115
+ "is_null",
8116
+ "in",
8117
+ "not_in",
8118
+ "eq",
8119
+ "neq",
8120
+ "gt",
8121
+ "gte",
8122
+ "lt",
8123
+ "lte",
8124
+ "=",
8125
+ "!=",
8126
+ ">",
8127
+ ">=",
8128
+ "<",
8129
+ "<=",
8130
+ "INCLUDES",
8131
+ "DOES_NOT_INCLUDE",
8132
+ "MATCH_REGEX",
8133
+ "EXISTS",
8134
+ "DOES_NOT_EXIST",
8135
+ "IN",
8136
+ "NOT_IN",
8137
+ "STARTS_WITH",
8138
+ "ENDS_WITH",
8139
+ ]),
8140
+ Schema.String,
8141
+ ]),
8142
+ type: Schema.Union([
8143
+ Schema.Literals(["string", "number", "boolean"]),
8144
+ Schema.String,
8145
+ ]),
8146
+ kind: Schema.optional(
8147
+ Schema.Union([Schema.Literal("filter"), Schema.Null]),
8148
+ ),
8149
+ value: Schema.optional(
8150
+ Schema.Union([
8151
+ Schema.Union([
8152
+ Schema.String,
8153
+ Schema.Number,
8154
+ Schema.Boolean,
8155
+ ]),
8156
+ Schema.Null,
8157
+ ]),
8158
+ ),
8159
+ }),
8160
+ ]),
8161
+ ),
8162
+ Schema.Null,
8163
+ ]),
8164
+ ),
8165
+ groupBys: Schema.optional(
8166
+ Schema.Union([
8167
+ Schema.Array(
8168
+ Schema.Struct({
8169
+ type: Schema.Union([
8066
8170
  Schema.Literals(["string", "number", "boolean"]),
8067
8171
  Schema.String,
8068
8172
  ]),
8069
- Schema.Null,
8070
- ]),
8173
+ value: Schema.String,
8174
+ }),
8071
8175
  ),
8072
- }),
8176
+ Schema.Null,
8177
+ ]),
8073
8178
  ),
8074
- Schema.Null,
8075
- ]),
8076
- ),
8077
- datasets: Schema.optional(
8078
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
8079
- ),
8080
- filterCombination: Schema.optional(
8081
- Schema.Union([
8082
- Schema.Union([
8083
- Schema.Literals(["and", "or", "AND", "OR"]),
8084
- Schema.String,
8085
- ]),
8086
- Schema.Null,
8087
- ]),
8088
- ),
8089
- filters: Schema.optional(
8090
- Schema.Union([
8091
- Schema.Array(
8179
+ havings: Schema.optional(
8180
+ Schema.Union([
8181
+ Schema.Array(
8182
+ Schema.Struct({
8183
+ key: Schema.String,
8184
+ operation: Schema.Union([
8185
+ Schema.Literals([
8186
+ "eq",
8187
+ "neq",
8188
+ "gt",
8189
+ "gte",
8190
+ "lt",
8191
+ "lte",
8192
+ ]),
8193
+ Schema.String,
8194
+ ]),
8195
+ value: Schema.Number,
8196
+ }),
8197
+ ),
8198
+ Schema.Null,
8199
+ ]),
8200
+ ),
8201
+ limit: Schema.optional(
8202
+ Schema.Union([Schema.Number, Schema.Null]),
8203
+ ),
8204
+ needle: Schema.optional(
8092
8205
  Schema.Union([
8093
8206
  Schema.Struct({
8094
- filterCombination: Schema.Union([
8095
- Schema.Literals(["and", "or", "AND", "OR"]),
8096
- Schema.String,
8097
- ]),
8098
- filters: Schema.Array(Schema.Unknown),
8099
- kind: Schema.Literal("group"),
8207
+ value: Schema.Unknown,
8208
+ isRegex: Schema.optional(
8209
+ Schema.Union([Schema.Boolean, Schema.Null]),
8210
+ ),
8211
+ matchCase: Schema.optional(
8212
+ Schema.Union([Schema.Boolean, Schema.Null]),
8213
+ ),
8100
8214
  }),
8215
+ Schema.Null,
8216
+ ]),
8217
+ ),
8218
+ orderBy: Schema.optional(
8219
+ Schema.Union([
8101
8220
  Schema.Struct({
8102
- key: Schema.String,
8103
- operation: Schema.Union([
8104
- Schema.Literals([
8105
- "includes",
8106
- "not_includes",
8107
- "starts_with",
8108
- "ends_with",
8109
- "regex",
8110
- "exists",
8111
- "is_null",
8112
- "in",
8113
- "not_in",
8114
- "eq",
8115
- "neq",
8116
- "gt",
8117
- "gte",
8118
- "lt",
8119
- "lte",
8120
- "=",
8121
- "!=",
8122
- ">",
8123
- ">=",
8124
- "<",
8125
- "<=",
8126
- "INCLUDES",
8127
- "DOES_NOT_INCLUDE",
8128
- "MATCH_REGEX",
8129
- "EXISTS",
8130
- "DOES_NOT_EXIST",
8131
- "IN",
8132
- "NOT_IN",
8133
- "STARTS_WITH",
8134
- "ENDS_WITH",
8135
- ]),
8136
- Schema.String,
8137
- ]),
8138
- type: Schema.Union([
8139
- Schema.Literals(["string", "number", "boolean"]),
8140
- Schema.String,
8141
- ]),
8142
- kind: Schema.optional(
8143
- Schema.Union([Schema.Literal("filter"), Schema.Null]),
8144
- ),
8145
- value: Schema.optional(
8221
+ value: Schema.String,
8222
+ order: Schema.optional(
8146
8223
  Schema.Union([
8147
8224
  Schema.Union([
8225
+ Schema.Literals(["asc", "desc"]),
8148
8226
  Schema.String,
8149
- Schema.Number,
8150
- Schema.Boolean,
8151
8227
  ]),
8152
8228
  Schema.Null,
8153
8229
  ]),
8154
8230
  ),
8155
8231
  }),
8232
+ Schema.Null,
8156
8233
  ]),
8157
8234
  ),
8158
- Schema.Null,
8159
- ]),
8160
- ),
8161
- groupBys: Schema.optional(
8162
- Schema.Union([
8163
- Schema.Array(
8164
- Schema.Struct({
8165
- type: Schema.Union([
8166
- Schema.Literals(["string", "number", "boolean"]),
8167
- Schema.String,
8168
- ]),
8169
- value: Schema.String,
8170
- }),
8171
- ),
8172
- Schema.Null,
8173
- ]),
8174
- ),
8175
- havings: Schema.optional(
8176
- Schema.Union([
8177
- Schema.Array(
8178
- Schema.Struct({
8179
- key: Schema.String,
8180
- operation: Schema.Union([
8181
- Schema.Literals(["eq", "neq", "gt", "gte", "lt", "lte"]),
8182
- Schema.String,
8183
- ]),
8184
- value: Schema.Number,
8185
- }),
8186
- ),
8187
- Schema.Null,
8188
- ]),
8189
- ),
8190
- limit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
8191
- needle: Schema.optional(
8192
- Schema.Union([
8193
- Schema.Struct({
8194
- value: Schema.Unknown,
8195
- isRegex: Schema.optional(
8196
- Schema.Union([Schema.Boolean, Schema.Null]),
8197
- ),
8198
- matchCase: Schema.optional(
8199
- Schema.Union([Schema.Boolean, Schema.Null]),
8200
- ),
8201
- }),
8202
- Schema.Null,
8203
- ]),
8204
- ),
8205
- orderBy: Schema.optional(
8206
- Schema.Union([
8207
- Schema.Struct({
8208
- value: Schema.String,
8209
- order: Schema.optional(
8210
- Schema.Union([
8211
- Schema.Union([
8212
- Schema.Literals(["asc", "desc"]),
8213
- Schema.String,
8214
- ]),
8215
- Schema.Null,
8216
- ]),
8217
- ),
8218
- }),
8219
- Schema.Null,
8220
- ]),
8221
- ),
8222
- }),
8223
- updated: Schema.String,
8224
- updatedBy: Schema.String,
8235
+ }),
8236
+ Schema.Null,
8237
+ ]),
8238
+ ),
8239
+ updated: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8240
+ updatedBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8225
8241
  }),
8226
8242
  status: Schema.Union([
8227
8243
  Schema.Literals(["STARTED", "COMPLETED"]),