@distilled.cloud/cloudflare 0.22.3 → 0.23.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.
Files changed (101) hide show
  1. package/lib/services/abuse-reports.d.ts +39 -11
  2. package/lib/services/abuse-reports.d.ts.map +1 -1
  3. package/lib/services/abuse-reports.js +89 -11
  4. package/lib/services/abuse-reports.js.map +1 -1
  5. package/lib/services/accounts.d.ts +21 -1
  6. package/lib/services/accounts.d.ts.map +1 -1
  7. package/lib/services/accounts.js +33 -1
  8. package/lib/services/accounts.js.map +1 -1
  9. package/lib/services/ai.d.ts +97 -1
  10. package/lib/services/ai.d.ts.map +1 -1
  11. package/lib/services/ai.js +119 -2
  12. package/lib/services/ai.js.map +1 -1
  13. package/lib/services/bot-management.d.ts +16 -0
  14. package/lib/services/bot-management.d.ts.map +1 -1
  15. package/lib/services/bot-management.js +22 -0
  16. package/lib/services/bot-management.js.map +1 -1
  17. package/lib/services/browser-rendering.d.ts +25 -9
  18. package/lib/services/browser-rendering.d.ts.map +1 -1
  19. package/lib/services/browser-rendering.js +18 -9
  20. package/lib/services/browser-rendering.js.map +1 -1
  21. package/lib/services/cache.d.ts +11 -0
  22. package/lib/services/cache.d.ts.map +1 -1
  23. package/lib/services/cache.js +17 -1
  24. package/lib/services/cache.js.map +1 -1
  25. package/lib/services/connectivity.d.ts +18 -32
  26. package/lib/services/connectivity.d.ts.map +1 -1
  27. package/lib/services/connectivity.js +56 -66
  28. package/lib/services/connectivity.js.map +1 -1
  29. package/lib/services/d1.d.ts +18 -4
  30. package/lib/services/d1.d.ts.map +1 -1
  31. package/lib/services/d1.js +23 -5
  32. package/lib/services/d1.js.map +1 -1
  33. package/lib/services/dns.d.ts +129 -3
  34. package/lib/services/dns.d.ts.map +1 -1
  35. package/lib/services/dns.js +330 -6
  36. package/lib/services/dns.js.map +1 -1
  37. package/lib/services/magic-transit.d.ts +7 -1
  38. package/lib/services/magic-transit.d.ts.map +1 -1
  39. package/lib/services/magic-transit.js +7 -1
  40. package/lib/services/magic-transit.js.map +1 -1
  41. package/lib/services/network-interconnects.d.ts +5 -1
  42. package/lib/services/network-interconnects.d.ts.map +1 -1
  43. package/lib/services/network-interconnects.js +21 -1
  44. package/lib/services/network-interconnects.js.map +1 -1
  45. package/lib/services/queues.d.ts +6 -4
  46. package/lib/services/queues.d.ts.map +1 -1
  47. package/lib/services/queues.js +8 -4
  48. package/lib/services/queues.js.map +1 -1
  49. package/lib/services/r2.d.ts +11 -4
  50. package/lib/services/r2.d.ts.map +1 -1
  51. package/lib/services/r2.js +13 -4
  52. package/lib/services/r2.js.map +1 -1
  53. package/lib/services/resource-tagging.d.ts +4 -2
  54. package/lib/services/resource-tagging.d.ts.map +1 -1
  55. package/lib/services/resource-tagging.js +4 -1
  56. package/lib/services/resource-tagging.js.map +1 -1
  57. package/lib/services/rulesets.d.ts +510 -6
  58. package/lib/services/rulesets.d.ts.map +1 -1
  59. package/lib/services/rulesets.js +1298 -36
  60. package/lib/services/rulesets.js.map +1 -1
  61. package/lib/services/spectrum.d.ts +4 -8
  62. package/lib/services/spectrum.d.ts.map +1 -1
  63. package/lib/services/spectrum.js +12 -34
  64. package/lib/services/spectrum.js.map +1 -1
  65. package/lib/services/workers-for-platforms.d.ts +12 -2
  66. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  67. package/lib/services/workers-for-platforms.js +35 -3
  68. package/lib/services/workers-for-platforms.js.map +1 -1
  69. package/lib/services/workers.d.ts +12 -2
  70. package/lib/services/workers.d.ts.map +1 -1
  71. package/lib/services/workers.js +35 -3
  72. package/lib/services/workers.js.map +1 -1
  73. package/lib/services/zero-trust.d.ts +1463 -557
  74. package/lib/services/zero-trust.d.ts.map +1 -1
  75. package/lib/services/zero-trust.js +1654 -93
  76. package/lib/services/zero-trust.js.map +1 -1
  77. package/lib/services/zones.d.ts +2 -0
  78. package/lib/services/zones.d.ts.map +1 -1
  79. package/lib/services/zones.js +1 -0
  80. package/lib/services/zones.js.map +1 -1
  81. package/package.json +2 -2
  82. package/src/services/abuse-reports.ts +173 -22
  83. package/src/services/accounts.ts +66 -2
  84. package/src/services/ai.ts +235 -2
  85. package/src/services/bot-management.ts +48 -0
  86. package/src/services/browser-rendering.ts +43 -18
  87. package/src/services/cache.ts +31 -0
  88. package/src/services/connectivity.ts +78 -70
  89. package/src/services/d1.ts +43 -8
  90. package/src/services/dns.ts +549 -12
  91. package/src/services/magic-transit.ts +14 -2
  92. package/src/services/network-interconnects.ts +41 -2
  93. package/src/services/queues.ts +16 -8
  94. package/src/services/r2.ts +30 -7
  95. package/src/services/resource-tagging.ts +8 -2
  96. package/src/services/rulesets.ts +3283 -963
  97. package/src/services/spectrum.ts +36 -52
  98. package/src/services/workers-for-platforms.ts +63 -4
  99. package/src/services/workers.ts +63 -4
  100. package/src/services/zero-trust.ts +3071 -478
  101. package/src/services/zones.ts +3 -0
@@ -6940,7 +6940,29 @@ export interface CreateRecordRequest {
6940
6940
  /** Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. */
6941
6941
  ttl: number | "1";
6942
6942
  /** Body param: Record type. */
6943
- type: "A";
6943
+ type:
6944
+ | "A"
6945
+ | "AAAA"
6946
+ | "CNAME"
6947
+ | "MX"
6948
+ | "NS"
6949
+ | "OPENPGPKEY"
6950
+ | "PTR"
6951
+ | "TXT"
6952
+ | "CAA"
6953
+ | "CERT"
6954
+ | "DNSKEY"
6955
+ | "DS"
6956
+ | "HTTPS"
6957
+ | "LOC"
6958
+ | "NAPTR"
6959
+ | "SMIMEA"
6960
+ | "SRV"
6961
+ | "SSHFP"
6962
+ | "SVCB"
6963
+ | "TLSA"
6964
+ | "URI"
6965
+ | (string & {});
6944
6966
  /** Body param: Comments or notes about the DNS record. This field has no effect on DNS responses. */
6945
6967
  comment?: string;
6946
6968
  /** Body param: A valid IPv4 address. */
@@ -6950,16 +6972,82 @@ export interface CreateRecordRequest {
6950
6972
  /** Body param: Whether the record is receiving the performance and security benefits of Cloudflare. */
6951
6973
  proxied?: boolean;
6952
6974
  /** Body param: Settings for the DNS record. */
6953
- settings?: { ipv4Only?: boolean; ipv6Only?: boolean };
6975
+ settings?: { ipv4Only?: boolean; ipv6Only?: boolean; flattenCname?: boolean };
6954
6976
  /** Body param: Custom tags for the DNS record. This field has no effect on DNS responses. */
6955
6977
  tags?: string[];
6978
+ /** Body param: Required for MX and URI records; ignored for other record types (but may still be returned by the API). Records with lower priorities are preferred. This field is to be deprecated in favor */
6979
+ priority?: number;
6980
+ /** Body param: Components of a CAA record. */
6981
+ data?: {
6982
+ flags?: number | string;
6983
+ tag?: string;
6984
+ value?: string;
6985
+ algorithm?: number;
6986
+ certificate?: string;
6987
+ keyTag?: number;
6988
+ type?: number;
6989
+ protocol?: number;
6990
+ publicKey?: string;
6991
+ digest?: string;
6992
+ digestType?: number;
6993
+ priority?: number;
6994
+ target?: string;
6995
+ altitude?: number;
6996
+ latDegrees?: number;
6997
+ latDirection?: "N" | "S" | (string & {});
6998
+ latMinutes?: number;
6999
+ latSeconds?: number;
7000
+ longDegrees?: number;
7001
+ longDirection?: "E" | "W" | (string & {});
7002
+ longMinutes?: number;
7003
+ longSeconds?: number;
7004
+ precisionHorz?: number;
7005
+ precisionVert?: number;
7006
+ size?: number;
7007
+ order?: number;
7008
+ preference?: number;
7009
+ regex?: string;
7010
+ replacement?: string;
7011
+ service?: string;
7012
+ matchingType?: number;
7013
+ selector?: number;
7014
+ usage?: number;
7015
+ port?: number;
7016
+ weight?: number;
7017
+ fingerprint?: string;
7018
+ };
6956
7019
  }
6957
7020
 
6958
7021
  export const CreateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6959
7022
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
6960
7023
  name: Schema.String,
6961
7024
  ttl: Schema.Union([Schema.Number, Schema.Literal("1")]),
6962
- type: Schema.Literal("A"),
7025
+ type: Schema.Union([
7026
+ Schema.Literals([
7027
+ "A",
7028
+ "AAAA",
7029
+ "CNAME",
7030
+ "MX",
7031
+ "NS",
7032
+ "OPENPGPKEY",
7033
+ "PTR",
7034
+ "TXT",
7035
+ "CAA",
7036
+ "CERT",
7037
+ "DNSKEY",
7038
+ "DS",
7039
+ "HTTPS",
7040
+ "LOC",
7041
+ "NAPTR",
7042
+ "SMIMEA",
7043
+ "SRV",
7044
+ "SSHFP",
7045
+ "SVCB",
7046
+ "TLSA",
7047
+ "URI",
7048
+ ]),
7049
+ Schema.String,
7050
+ ]),
6963
7051
  comment: Schema.optional(Schema.String),
6964
7052
  content: Schema.optional(Schema.String),
6965
7053
  privateRouting: Schema.optional(Schema.Boolean),
@@ -6968,11 +7056,100 @@ export const CreateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6968
7056
  Schema.Struct({
6969
7057
  ipv4Only: Schema.optional(Schema.Boolean),
6970
7058
  ipv6Only: Schema.optional(Schema.Boolean),
7059
+ flattenCname: Schema.optional(Schema.Boolean),
6971
7060
  }).pipe(
6972
- Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" }),
7061
+ Schema.encodeKeys({
7062
+ ipv4Only: "ipv4_only",
7063
+ ipv6Only: "ipv6_only",
7064
+ flattenCname: "flatten_cname",
7065
+ }),
6973
7066
  ),
6974
7067
  ),
6975
7068
  tags: Schema.optional(Schema.Array(Schema.String)),
7069
+ priority: Schema.optional(Schema.Number),
7070
+ data: Schema.optional(
7071
+ Schema.Struct({
7072
+ flags: Schema.optional(Schema.Union([Schema.Number, Schema.String])),
7073
+ tag: Schema.optional(Schema.String),
7074
+ value: Schema.optional(Schema.String),
7075
+ algorithm: Schema.optional(Schema.Number),
7076
+ certificate: Schema.optional(Schema.String),
7077
+ keyTag: Schema.optional(Schema.Number),
7078
+ type: Schema.optional(Schema.Number),
7079
+ protocol: Schema.optional(Schema.Number),
7080
+ publicKey: Schema.optional(Schema.String),
7081
+ digest: Schema.optional(Schema.String),
7082
+ digestType: Schema.optional(Schema.Number),
7083
+ priority: Schema.optional(Schema.Number),
7084
+ target: Schema.optional(Schema.String),
7085
+ altitude: Schema.optional(Schema.Number),
7086
+ latDegrees: Schema.optional(Schema.Number),
7087
+ latDirection: Schema.optional(
7088
+ Schema.Union([Schema.Literals(["N", "S"]), Schema.String]),
7089
+ ),
7090
+ latMinutes: Schema.optional(Schema.Number),
7091
+ latSeconds: Schema.optional(Schema.Number),
7092
+ longDegrees: Schema.optional(Schema.Number),
7093
+ longDirection: Schema.optional(
7094
+ Schema.Union([Schema.Literals(["E", "W"]), Schema.String]),
7095
+ ),
7096
+ longMinutes: Schema.optional(Schema.Number),
7097
+ longSeconds: Schema.optional(Schema.Number),
7098
+ precisionHorz: Schema.optional(Schema.Number),
7099
+ precisionVert: Schema.optional(Schema.Number),
7100
+ size: Schema.optional(Schema.Number),
7101
+ order: Schema.optional(Schema.Number),
7102
+ preference: Schema.optional(Schema.Number),
7103
+ regex: Schema.optional(Schema.String),
7104
+ replacement: Schema.optional(Schema.String),
7105
+ service: Schema.optional(Schema.String),
7106
+ matchingType: Schema.optional(Schema.Number),
7107
+ selector: Schema.optional(Schema.Number),
7108
+ usage: Schema.optional(Schema.Number),
7109
+ port: Schema.optional(Schema.Number),
7110
+ weight: Schema.optional(Schema.Number),
7111
+ fingerprint: Schema.optional(Schema.String),
7112
+ }).pipe(
7113
+ Schema.encodeKeys({
7114
+ flags: "flags",
7115
+ tag: "tag",
7116
+ value: "value",
7117
+ algorithm: "algorithm",
7118
+ certificate: "certificate",
7119
+ keyTag: "key_tag",
7120
+ type: "type",
7121
+ protocol: "protocol",
7122
+ publicKey: "public_key",
7123
+ digest: "digest",
7124
+ digestType: "digest_type",
7125
+ priority: "priority",
7126
+ target: "target",
7127
+ altitude: "altitude",
7128
+ latDegrees: "lat_degrees",
7129
+ latDirection: "lat_direction",
7130
+ latMinutes: "lat_minutes",
7131
+ latSeconds: "lat_seconds",
7132
+ longDegrees: "long_degrees",
7133
+ longDirection: "long_direction",
7134
+ longMinutes: "long_minutes",
7135
+ longSeconds: "long_seconds",
7136
+ precisionHorz: "precision_horz",
7137
+ precisionVert: "precision_vert",
7138
+ size: "size",
7139
+ order: "order",
7140
+ preference: "preference",
7141
+ regex: "regex",
7142
+ replacement: "replacement",
7143
+ service: "service",
7144
+ matchingType: "matching_type",
7145
+ selector: "selector",
7146
+ usage: "usage",
7147
+ port: "port",
7148
+ weight: "weight",
7149
+ fingerprint: "fingerprint",
7150
+ }),
7151
+ ),
7152
+ ),
6976
7153
  }).pipe(
6977
7154
  Schema.encodeKeys({
6978
7155
  name: "name",
@@ -6984,6 +7161,8 @@ export const CreateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6984
7161
  proxied: "proxied",
6985
7162
  settings: "settings",
6986
7163
  tags: "tags",
7164
+ priority: "priority",
7165
+ data: "data",
6987
7166
  }),
6988
7167
  T.Http({ method: "POST", path: "/zones/{zone_id}/dns_records" }),
6989
7168
  ) as unknown as Schema.Schema<CreateRecordRequest>;
@@ -8903,7 +9082,29 @@ export interface UpdateRecordRequest {
8903
9082
  /** Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. */
8904
9083
  ttl: number | "1";
8905
9084
  /** Body param: Record type. */
8906
- type: "A";
9085
+ type:
9086
+ | "A"
9087
+ | "AAAA"
9088
+ | "CNAME"
9089
+ | "MX"
9090
+ | "NS"
9091
+ | "OPENPGPKEY"
9092
+ | "PTR"
9093
+ | "TXT"
9094
+ | "CAA"
9095
+ | "CERT"
9096
+ | "DNSKEY"
9097
+ | "DS"
9098
+ | "HTTPS"
9099
+ | "LOC"
9100
+ | "NAPTR"
9101
+ | "SMIMEA"
9102
+ | "SRV"
9103
+ | "SSHFP"
9104
+ | "SVCB"
9105
+ | "TLSA"
9106
+ | "URI"
9107
+ | (string & {});
8907
9108
  /** Body param: Comments or notes about the DNS record. This field has no effect on DNS responses. */
8908
9109
  comment?: string;
8909
9110
  /** Body param: A valid IPv4 address. */
@@ -8913,9 +9114,50 @@ export interface UpdateRecordRequest {
8913
9114
  /** Body param: Whether the record is receiving the performance and security benefits of Cloudflare. */
8914
9115
  proxied?: boolean;
8915
9116
  /** Body param: Settings for the DNS record. */
8916
- settings?: { ipv4Only?: boolean; ipv6Only?: boolean };
9117
+ settings?: { ipv4Only?: boolean; ipv6Only?: boolean; flattenCname?: boolean };
8917
9118
  /** Body param: Custom tags for the DNS record. This field has no effect on DNS responses. */
8918
9119
  tags?: string[];
9120
+ /** Body param: Required for MX and URI records; ignored for other record types (but may still be returned by the API). Records with lower priorities are preferred. This field is to be deprecated in favor */
9121
+ priority?: number;
9122
+ /** Body param: Components of a CAA record. */
9123
+ data?: {
9124
+ flags?: number | string;
9125
+ tag?: string;
9126
+ value?: string;
9127
+ algorithm?: number;
9128
+ certificate?: string;
9129
+ keyTag?: number;
9130
+ type?: number;
9131
+ protocol?: number;
9132
+ publicKey?: string;
9133
+ digest?: string;
9134
+ digestType?: number;
9135
+ priority?: number;
9136
+ target?: string;
9137
+ altitude?: number;
9138
+ latDegrees?: number;
9139
+ latDirection?: "N" | "S" | (string & {});
9140
+ latMinutes?: number;
9141
+ latSeconds?: number;
9142
+ longDegrees?: number;
9143
+ longDirection?: "E" | "W" | (string & {});
9144
+ longMinutes?: number;
9145
+ longSeconds?: number;
9146
+ precisionHorz?: number;
9147
+ precisionVert?: number;
9148
+ size?: number;
9149
+ order?: number;
9150
+ preference?: number;
9151
+ regex?: string;
9152
+ replacement?: string;
9153
+ service?: string;
9154
+ matchingType?: number;
9155
+ selector?: number;
9156
+ usage?: number;
9157
+ port?: number;
9158
+ weight?: number;
9159
+ fingerprint?: string;
9160
+ };
8919
9161
  }
8920
9162
 
8921
9163
  export const UpdateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -8923,7 +9165,32 @@ export const UpdateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8923
9165
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
8924
9166
  name: Schema.String,
8925
9167
  ttl: Schema.Union([Schema.Number, Schema.Literal("1")]),
8926
- type: Schema.Literal("A"),
9168
+ type: Schema.Union([
9169
+ Schema.Literals([
9170
+ "A",
9171
+ "AAAA",
9172
+ "CNAME",
9173
+ "MX",
9174
+ "NS",
9175
+ "OPENPGPKEY",
9176
+ "PTR",
9177
+ "TXT",
9178
+ "CAA",
9179
+ "CERT",
9180
+ "DNSKEY",
9181
+ "DS",
9182
+ "HTTPS",
9183
+ "LOC",
9184
+ "NAPTR",
9185
+ "SMIMEA",
9186
+ "SRV",
9187
+ "SSHFP",
9188
+ "SVCB",
9189
+ "TLSA",
9190
+ "URI",
9191
+ ]),
9192
+ Schema.String,
9193
+ ]),
8927
9194
  comment: Schema.optional(Schema.String),
8928
9195
  content: Schema.optional(Schema.String),
8929
9196
  privateRouting: Schema.optional(Schema.Boolean),
@@ -8932,11 +9199,100 @@ export const UpdateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8932
9199
  Schema.Struct({
8933
9200
  ipv4Only: Schema.optional(Schema.Boolean),
8934
9201
  ipv6Only: Schema.optional(Schema.Boolean),
9202
+ flattenCname: Schema.optional(Schema.Boolean),
8935
9203
  }).pipe(
8936
- Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" }),
9204
+ Schema.encodeKeys({
9205
+ ipv4Only: "ipv4_only",
9206
+ ipv6Only: "ipv6_only",
9207
+ flattenCname: "flatten_cname",
9208
+ }),
8937
9209
  ),
8938
9210
  ),
8939
9211
  tags: Schema.optional(Schema.Array(Schema.String)),
9212
+ priority: Schema.optional(Schema.Number),
9213
+ data: Schema.optional(
9214
+ Schema.Struct({
9215
+ flags: Schema.optional(Schema.Union([Schema.Number, Schema.String])),
9216
+ tag: Schema.optional(Schema.String),
9217
+ value: Schema.optional(Schema.String),
9218
+ algorithm: Schema.optional(Schema.Number),
9219
+ certificate: Schema.optional(Schema.String),
9220
+ keyTag: Schema.optional(Schema.Number),
9221
+ type: Schema.optional(Schema.Number),
9222
+ protocol: Schema.optional(Schema.Number),
9223
+ publicKey: Schema.optional(Schema.String),
9224
+ digest: Schema.optional(Schema.String),
9225
+ digestType: Schema.optional(Schema.Number),
9226
+ priority: Schema.optional(Schema.Number),
9227
+ target: Schema.optional(Schema.String),
9228
+ altitude: Schema.optional(Schema.Number),
9229
+ latDegrees: Schema.optional(Schema.Number),
9230
+ latDirection: Schema.optional(
9231
+ Schema.Union([Schema.Literals(["N", "S"]), Schema.String]),
9232
+ ),
9233
+ latMinutes: Schema.optional(Schema.Number),
9234
+ latSeconds: Schema.optional(Schema.Number),
9235
+ longDegrees: Schema.optional(Schema.Number),
9236
+ longDirection: Schema.optional(
9237
+ Schema.Union([Schema.Literals(["E", "W"]), Schema.String]),
9238
+ ),
9239
+ longMinutes: Schema.optional(Schema.Number),
9240
+ longSeconds: Schema.optional(Schema.Number),
9241
+ precisionHorz: Schema.optional(Schema.Number),
9242
+ precisionVert: Schema.optional(Schema.Number),
9243
+ size: Schema.optional(Schema.Number),
9244
+ order: Schema.optional(Schema.Number),
9245
+ preference: Schema.optional(Schema.Number),
9246
+ regex: Schema.optional(Schema.String),
9247
+ replacement: Schema.optional(Schema.String),
9248
+ service: Schema.optional(Schema.String),
9249
+ matchingType: Schema.optional(Schema.Number),
9250
+ selector: Schema.optional(Schema.Number),
9251
+ usage: Schema.optional(Schema.Number),
9252
+ port: Schema.optional(Schema.Number),
9253
+ weight: Schema.optional(Schema.Number),
9254
+ fingerprint: Schema.optional(Schema.String),
9255
+ }).pipe(
9256
+ Schema.encodeKeys({
9257
+ flags: "flags",
9258
+ tag: "tag",
9259
+ value: "value",
9260
+ algorithm: "algorithm",
9261
+ certificate: "certificate",
9262
+ keyTag: "key_tag",
9263
+ type: "type",
9264
+ protocol: "protocol",
9265
+ publicKey: "public_key",
9266
+ digest: "digest",
9267
+ digestType: "digest_type",
9268
+ priority: "priority",
9269
+ target: "target",
9270
+ altitude: "altitude",
9271
+ latDegrees: "lat_degrees",
9272
+ latDirection: "lat_direction",
9273
+ latMinutes: "lat_minutes",
9274
+ latSeconds: "lat_seconds",
9275
+ longDegrees: "long_degrees",
9276
+ longDirection: "long_direction",
9277
+ longMinutes: "long_minutes",
9278
+ longSeconds: "long_seconds",
9279
+ precisionHorz: "precision_horz",
9280
+ precisionVert: "precision_vert",
9281
+ size: "size",
9282
+ order: "order",
9283
+ preference: "preference",
9284
+ regex: "regex",
9285
+ replacement: "replacement",
9286
+ service: "service",
9287
+ matchingType: "matching_type",
9288
+ selector: "selector",
9289
+ usage: "usage",
9290
+ port: "port",
9291
+ weight: "weight",
9292
+ fingerprint: "fingerprint",
9293
+ }),
9294
+ ),
9295
+ ),
8940
9296
  }).pipe(
8941
9297
  Schema.encodeKeys({
8942
9298
  name: "name",
@@ -8948,6 +9304,8 @@ export const UpdateRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
8948
9304
  proxied: "proxied",
8949
9305
  settings: "settings",
8950
9306
  tags: "tags",
9307
+ priority: "priority",
9308
+ data: "data",
8951
9309
  }),
8952
9310
  T.Http({ method: "PUT", path: "/zones/{zone_id}/dns_records/{dnsRecordId}" }),
8953
9311
  ) as unknown as Schema.Schema<UpdateRecordRequest>;
@@ -10867,7 +11225,29 @@ export interface PatchRecordRequest {
10867
11225
  /** Body param: Time To Live (TTL) of the DNS record in seconds. Setting to 1 means 'automatic'. Value must be between 60 and 86400, with the minimum reduced to 30 for Enterprise zones. */
10868
11226
  ttl: number | "1";
10869
11227
  /** Body param: Record type. */
10870
- type: "A";
11228
+ type:
11229
+ | "A"
11230
+ | "AAAA"
11231
+ | "CNAME"
11232
+ | "MX"
11233
+ | "NS"
11234
+ | "OPENPGPKEY"
11235
+ | "PTR"
11236
+ | "TXT"
11237
+ | "CAA"
11238
+ | "CERT"
11239
+ | "DNSKEY"
11240
+ | "DS"
11241
+ | "HTTPS"
11242
+ | "LOC"
11243
+ | "NAPTR"
11244
+ | "SMIMEA"
11245
+ | "SRV"
11246
+ | "SSHFP"
11247
+ | "SVCB"
11248
+ | "TLSA"
11249
+ | "URI"
11250
+ | (string & {});
10871
11251
  /** Body param: Comments or notes about the DNS record. This field has no effect on DNS responses. */
10872
11252
  comment?: string;
10873
11253
  /** Body param: A valid IPv4 address. */
@@ -10877,9 +11257,50 @@ export interface PatchRecordRequest {
10877
11257
  /** Body param: Whether the record is receiving the performance and security benefits of Cloudflare. */
10878
11258
  proxied?: boolean;
10879
11259
  /** Body param: Settings for the DNS record. */
10880
- settings?: { ipv4Only?: boolean; ipv6Only?: boolean };
11260
+ settings?: { ipv4Only?: boolean; ipv6Only?: boolean; flattenCname?: boolean };
10881
11261
  /** Body param: Custom tags for the DNS record. This field has no effect on DNS responses. */
10882
11262
  tags?: string[];
11263
+ /** Body param: Required for MX and URI records; ignored for other record types (but may still be returned by the API). Records with lower priorities are preferred. This field is to be deprecated in favor */
11264
+ priority?: number;
11265
+ /** Body param: Components of a CAA record. */
11266
+ data?: {
11267
+ flags?: number | string;
11268
+ tag?: string;
11269
+ value?: string;
11270
+ algorithm?: number;
11271
+ certificate?: string;
11272
+ keyTag?: number;
11273
+ type?: number;
11274
+ protocol?: number;
11275
+ publicKey?: string;
11276
+ digest?: string;
11277
+ digestType?: number;
11278
+ priority?: number;
11279
+ target?: string;
11280
+ altitude?: number;
11281
+ latDegrees?: number;
11282
+ latDirection?: "N" | "S" | (string & {});
11283
+ latMinutes?: number;
11284
+ latSeconds?: number;
11285
+ longDegrees?: number;
11286
+ longDirection?: "E" | "W" | (string & {});
11287
+ longMinutes?: number;
11288
+ longSeconds?: number;
11289
+ precisionHorz?: number;
11290
+ precisionVert?: number;
11291
+ size?: number;
11292
+ order?: number;
11293
+ preference?: number;
11294
+ regex?: string;
11295
+ replacement?: string;
11296
+ service?: string;
11297
+ matchingType?: number;
11298
+ selector?: number;
11299
+ usage?: number;
11300
+ port?: number;
11301
+ weight?: number;
11302
+ fingerprint?: string;
11303
+ };
10883
11304
  }
10884
11305
 
10885
11306
  export const PatchRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -10887,7 +11308,32 @@ export const PatchRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10887
11308
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
10888
11309
  name: Schema.String,
10889
11310
  ttl: Schema.Union([Schema.Number, Schema.Literal("1")]),
10890
- type: Schema.Literal("A"),
11311
+ type: Schema.Union([
11312
+ Schema.Literals([
11313
+ "A",
11314
+ "AAAA",
11315
+ "CNAME",
11316
+ "MX",
11317
+ "NS",
11318
+ "OPENPGPKEY",
11319
+ "PTR",
11320
+ "TXT",
11321
+ "CAA",
11322
+ "CERT",
11323
+ "DNSKEY",
11324
+ "DS",
11325
+ "HTTPS",
11326
+ "LOC",
11327
+ "NAPTR",
11328
+ "SMIMEA",
11329
+ "SRV",
11330
+ "SSHFP",
11331
+ "SVCB",
11332
+ "TLSA",
11333
+ "URI",
11334
+ ]),
11335
+ Schema.String,
11336
+ ]),
10891
11337
  comment: Schema.optional(Schema.String),
10892
11338
  content: Schema.optional(Schema.String),
10893
11339
  privateRouting: Schema.optional(Schema.Boolean),
@@ -10896,11 +11342,100 @@ export const PatchRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10896
11342
  Schema.Struct({
10897
11343
  ipv4Only: Schema.optional(Schema.Boolean),
10898
11344
  ipv6Only: Schema.optional(Schema.Boolean),
11345
+ flattenCname: Schema.optional(Schema.Boolean),
10899
11346
  }).pipe(
10900
- Schema.encodeKeys({ ipv4Only: "ipv4_only", ipv6Only: "ipv6_only" }),
11347
+ Schema.encodeKeys({
11348
+ ipv4Only: "ipv4_only",
11349
+ ipv6Only: "ipv6_only",
11350
+ flattenCname: "flatten_cname",
11351
+ }),
10901
11352
  ),
10902
11353
  ),
10903
11354
  tags: Schema.optional(Schema.Array(Schema.String)),
11355
+ priority: Schema.optional(Schema.Number),
11356
+ data: Schema.optional(
11357
+ Schema.Struct({
11358
+ flags: Schema.optional(Schema.Union([Schema.Number, Schema.String])),
11359
+ tag: Schema.optional(Schema.String),
11360
+ value: Schema.optional(Schema.String),
11361
+ algorithm: Schema.optional(Schema.Number),
11362
+ certificate: Schema.optional(Schema.String),
11363
+ keyTag: Schema.optional(Schema.Number),
11364
+ type: Schema.optional(Schema.Number),
11365
+ protocol: Schema.optional(Schema.Number),
11366
+ publicKey: Schema.optional(Schema.String),
11367
+ digest: Schema.optional(Schema.String),
11368
+ digestType: Schema.optional(Schema.Number),
11369
+ priority: Schema.optional(Schema.Number),
11370
+ target: Schema.optional(Schema.String),
11371
+ altitude: Schema.optional(Schema.Number),
11372
+ latDegrees: Schema.optional(Schema.Number),
11373
+ latDirection: Schema.optional(
11374
+ Schema.Union([Schema.Literals(["N", "S"]), Schema.String]),
11375
+ ),
11376
+ latMinutes: Schema.optional(Schema.Number),
11377
+ latSeconds: Schema.optional(Schema.Number),
11378
+ longDegrees: Schema.optional(Schema.Number),
11379
+ longDirection: Schema.optional(
11380
+ Schema.Union([Schema.Literals(["E", "W"]), Schema.String]),
11381
+ ),
11382
+ longMinutes: Schema.optional(Schema.Number),
11383
+ longSeconds: Schema.optional(Schema.Number),
11384
+ precisionHorz: Schema.optional(Schema.Number),
11385
+ precisionVert: Schema.optional(Schema.Number),
11386
+ size: Schema.optional(Schema.Number),
11387
+ order: Schema.optional(Schema.Number),
11388
+ preference: Schema.optional(Schema.Number),
11389
+ regex: Schema.optional(Schema.String),
11390
+ replacement: Schema.optional(Schema.String),
11391
+ service: Schema.optional(Schema.String),
11392
+ matchingType: Schema.optional(Schema.Number),
11393
+ selector: Schema.optional(Schema.Number),
11394
+ usage: Schema.optional(Schema.Number),
11395
+ port: Schema.optional(Schema.Number),
11396
+ weight: Schema.optional(Schema.Number),
11397
+ fingerprint: Schema.optional(Schema.String),
11398
+ }).pipe(
11399
+ Schema.encodeKeys({
11400
+ flags: "flags",
11401
+ tag: "tag",
11402
+ value: "value",
11403
+ algorithm: "algorithm",
11404
+ certificate: "certificate",
11405
+ keyTag: "key_tag",
11406
+ type: "type",
11407
+ protocol: "protocol",
11408
+ publicKey: "public_key",
11409
+ digest: "digest",
11410
+ digestType: "digest_type",
11411
+ priority: "priority",
11412
+ target: "target",
11413
+ altitude: "altitude",
11414
+ latDegrees: "lat_degrees",
11415
+ latDirection: "lat_direction",
11416
+ latMinutes: "lat_minutes",
11417
+ latSeconds: "lat_seconds",
11418
+ longDegrees: "long_degrees",
11419
+ longDirection: "long_direction",
11420
+ longMinutes: "long_minutes",
11421
+ longSeconds: "long_seconds",
11422
+ precisionHorz: "precision_horz",
11423
+ precisionVert: "precision_vert",
11424
+ size: "size",
11425
+ order: "order",
11426
+ preference: "preference",
11427
+ regex: "regex",
11428
+ replacement: "replacement",
11429
+ service: "service",
11430
+ matchingType: "matching_type",
11431
+ selector: "selector",
11432
+ usage: "usage",
11433
+ port: "port",
11434
+ weight: "weight",
11435
+ fingerprint: "fingerprint",
11436
+ }),
11437
+ ),
11438
+ ),
10904
11439
  }).pipe(
10905
11440
  Schema.encodeKeys({
10906
11441
  name: "name",
@@ -10912,6 +11447,8 @@ export const PatchRecordRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
10912
11447
  proxied: "proxied",
10913
11448
  settings: "settings",
10914
11449
  tags: "tags",
11450
+ priority: "priority",
11451
+ data: "data",
10915
11452
  }),
10916
11453
  T.Http({
10917
11454
  method: "PATCH",