@distilled.cloud/cloudflare 0.18.2 → 0.19.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 (246) hide show
  1. package/lib/services/abuse-reports.d.ts +4 -4
  2. package/lib/services/abuse-reports.d.ts.map +1 -1
  3. package/lib/services/abuse-reports.js +28 -22
  4. package/lib/services/abuse-reports.js.map +1 -1
  5. package/lib/services/accounts.d.ts +10 -10
  6. package/lib/services/accounts.d.ts.map +1 -1
  7. package/lib/services/accounts.js +67 -52
  8. package/lib/services/accounts.js.map +1 -1
  9. package/lib/services/ai-gateway.d.ts +10 -10
  10. package/lib/services/ai-gateway.d.ts.map +1 -1
  11. package/lib/services/ai-gateway.js +70 -55
  12. package/lib/services/ai-gateway.js.map +1 -1
  13. package/lib/services/ai.d.ts +2 -2
  14. package/lib/services/ai.d.ts.map +1 -1
  15. package/lib/services/ai.js +14 -11
  16. package/lib/services/ai.js.map +1 -1
  17. package/lib/services/alerting.d.ts +2 -2
  18. package/lib/services/alerting.d.ts.map +1 -1
  19. package/lib/services/alerting.js +14 -11
  20. package/lib/services/alerting.js.map +1 -1
  21. package/lib/services/api-gateway.d.ts +10 -10
  22. package/lib/services/api-gateway.d.ts.map +1 -1
  23. package/lib/services/api-gateway.js +70 -55
  24. package/lib/services/api-gateway.js.map +1 -1
  25. package/lib/services/audit-logs.d.ts +2 -2
  26. package/lib/services/audit-logs.d.ts.map +1 -1
  27. package/lib/services/audit-logs.js +14 -11
  28. package/lib/services/audit-logs.js.map +1 -1
  29. package/lib/services/client-certificates.d.ts +2 -2
  30. package/lib/services/client-certificates.d.ts.map +1 -1
  31. package/lib/services/client-certificates.js +14 -11
  32. package/lib/services/client-certificates.js.map +1 -1
  33. package/lib/services/custom-certificates.d.ts +2 -2
  34. package/lib/services/custom-certificates.d.ts.map +1 -1
  35. package/lib/services/custom-certificates.js +14 -11
  36. package/lib/services/custom-certificates.js.map +1 -1
  37. package/lib/services/custom-hostnames.d.ts +2 -2
  38. package/lib/services/custom-hostnames.d.ts.map +1 -1
  39. package/lib/services/custom-hostnames.js +14 -11
  40. package/lib/services/custom-hostnames.js.map +1 -1
  41. package/lib/services/d1.d.ts +2 -2
  42. package/lib/services/d1.d.ts.map +1 -1
  43. package/lib/services/d1.js +14 -11
  44. package/lib/services/d1.js.map +1 -1
  45. package/lib/services/dns-firewall.d.ts +2 -2
  46. package/lib/services/dns-firewall.d.ts.map +1 -1
  47. package/lib/services/dns-firewall.js +14 -11
  48. package/lib/services/dns-firewall.js.map +1 -1
  49. package/lib/services/dns.d.ts +4 -4
  50. package/lib/services/dns.d.ts.map +1 -1
  51. package/lib/services/dns.js +28 -22
  52. package/lib/services/dns.js.map +1 -1
  53. package/lib/services/durable-objects.d.ts +4 -4
  54. package/lib/services/durable-objects.d.ts.map +1 -1
  55. package/lib/services/durable-objects.js +25 -19
  56. package/lib/services/durable-objects.js.map +1 -1
  57. package/lib/services/email-routing.d.ts +4 -4
  58. package/lib/services/email-routing.d.ts.map +1 -1
  59. package/lib/services/email-routing.js +28 -22
  60. package/lib/services/email-routing.js.map +1 -1
  61. package/lib/services/email-security.d.ts +14 -14
  62. package/lib/services/email-security.d.ts.map +1 -1
  63. package/lib/services/email-security.js +98 -77
  64. package/lib/services/email-security.js.map +1 -1
  65. package/lib/services/filters.d.ts +2 -2
  66. package/lib/services/filters.d.ts.map +1 -1
  67. package/lib/services/filters.js +14 -11
  68. package/lib/services/filters.js.map +1 -1
  69. package/lib/services/firewall.d.ts +16 -16
  70. package/lib/services/firewall.d.ts.map +1 -1
  71. package/lib/services/firewall.js +112 -88
  72. package/lib/services/firewall.js.map +1 -1
  73. package/lib/services/healthchecks.d.ts +2 -2
  74. package/lib/services/healthchecks.d.ts.map +1 -1
  75. package/lib/services/healthchecks.js +14 -11
  76. package/lib/services/healthchecks.js.map +1 -1
  77. package/lib/services/images.d.ts +2 -2
  78. package/lib/services/images.d.ts.map +1 -1
  79. package/lib/services/images.js +14 -11
  80. package/lib/services/images.js.map +1 -1
  81. package/lib/services/intel.d.ts +4 -4
  82. package/lib/services/intel.d.ts.map +1 -1
  83. package/lib/services/intel.js +28 -22
  84. package/lib/services/intel.js.map +1 -1
  85. package/lib/services/kv.d.ts +4 -4
  86. package/lib/services/kv.d.ts.map +1 -1
  87. package/lib/services/kv.js +25 -19
  88. package/lib/services/kv.js.map +1 -1
  89. package/lib/services/load-balancers.d.ts +2 -2
  90. package/lib/services/load-balancers.d.ts.map +1 -1
  91. package/lib/services/load-balancers.js +14 -11
  92. package/lib/services/load-balancers.js.map +1 -1
  93. package/lib/services/magic-cloud-networking.d.ts +2 -2
  94. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  95. package/lib/services/magic-cloud-networking.js +14 -11
  96. package/lib/services/magic-cloud-networking.js.map +1 -1
  97. package/lib/services/memberships.d.ts +2 -2
  98. package/lib/services/memberships.d.ts.map +1 -1
  99. package/lib/services/memberships.js +14 -11
  100. package/lib/services/memberships.js.map +1 -1
  101. package/lib/services/origin-ca-certificates.d.ts +2 -2
  102. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  103. package/lib/services/origin-ca-certificates.js +14 -11
  104. package/lib/services/origin-ca-certificates.js.map +1 -1
  105. package/lib/services/pages.d.ts +4 -4
  106. package/lib/services/pages.d.ts.map +1 -1
  107. package/lib/services/pages.js +28 -22
  108. package/lib/services/pages.js.map +1 -1
  109. package/lib/services/queues.d.ts +2 -2
  110. package/lib/services/queues.d.ts.map +1 -1
  111. package/lib/services/queues.js +14 -11
  112. package/lib/services/queues.js.map +1 -1
  113. package/lib/services/r2.d.ts +68 -0
  114. package/lib/services/r2.d.ts.map +1 -1
  115. package/lib/services/r2.js +105 -0
  116. package/lib/services/r2.js.map +1 -1
  117. package/lib/services/radar.d.ts +4 -4
  118. package/lib/services/radar.d.ts.map +1 -1
  119. package/lib/services/radar.js +28 -22
  120. package/lib/services/radar.js.map +1 -1
  121. package/lib/services/rate-limits.d.ts +2 -2
  122. package/lib/services/rate-limits.d.ts.map +1 -1
  123. package/lib/services/rate-limits.js +14 -11
  124. package/lib/services/rate-limits.js.map +1 -1
  125. package/lib/services/resource-sharing.d.ts +6 -6
  126. package/lib/services/resource-sharing.d.ts.map +1 -1
  127. package/lib/services/resource-sharing.js +42 -33
  128. package/lib/services/resource-sharing.js.map +1 -1
  129. package/lib/services/rules.d.ts +2 -2
  130. package/lib/services/rules.d.ts.map +1 -1
  131. package/lib/services/rules.js +11 -8
  132. package/lib/services/rules.js.map +1 -1
  133. package/lib/services/rulesets.d.ts +2 -2
  134. package/lib/services/rulesets.d.ts.map +1 -1
  135. package/lib/services/rulesets.js +12 -9
  136. package/lib/services/rulesets.js.map +1 -1
  137. package/lib/services/rum.d.ts +2 -2
  138. package/lib/services/rum.d.ts.map +1 -1
  139. package/lib/services/rum.js +14 -11
  140. package/lib/services/rum.js.map +1 -1
  141. package/lib/services/schema-validation.d.ts +4 -4
  142. package/lib/services/schema-validation.d.ts.map +1 -1
  143. package/lib/services/schema-validation.js +28 -22
  144. package/lib/services/schema-validation.js.map +1 -1
  145. package/lib/services/secrets-store.d.ts +4 -4
  146. package/lib/services/secrets-store.d.ts.map +1 -1
  147. package/lib/services/secrets-store.js +28 -22
  148. package/lib/services/secrets-store.js.map +1 -1
  149. package/lib/services/security-center.d.ts +2 -2
  150. package/lib/services/security-center.d.ts.map +1 -1
  151. package/lib/services/security-center.js +14 -11
  152. package/lib/services/security-center.js.map +1 -1
  153. package/lib/services/snippets.d.ts +2 -2
  154. package/lib/services/snippets.d.ts.map +1 -1
  155. package/lib/services/snippets.js +14 -11
  156. package/lib/services/snippets.js.map +1 -1
  157. package/lib/services/spectrum.d.ts +2 -2
  158. package/lib/services/spectrum.d.ts.map +1 -1
  159. package/lib/services/spectrum.js +14 -11
  160. package/lib/services/spectrum.js.map +1 -1
  161. package/lib/services/speed.d.ts +2 -2
  162. package/lib/services/speed.d.ts.map +1 -1
  163. package/lib/services/speed.js +14 -11
  164. package/lib/services/speed.js.map +1 -1
  165. package/lib/services/token-validation.d.ts +4 -4
  166. package/lib/services/token-validation.d.ts.map +1 -1
  167. package/lib/services/token-validation.js +28 -22
  168. package/lib/services/token-validation.js.map +1 -1
  169. package/lib/services/turnstile.d.ts +2 -2
  170. package/lib/services/turnstile.d.ts.map +1 -1
  171. package/lib/services/turnstile.js +14 -11
  172. package/lib/services/turnstile.js.map +1 -1
  173. package/lib/services/user.d.ts +8 -8
  174. package/lib/services/user.d.ts.map +1 -1
  175. package/lib/services/user.js +56 -44
  176. package/lib/services/user.js.map +1 -1
  177. package/lib/services/waiting-rooms.d.ts +4 -4
  178. package/lib/services/waiting-rooms.d.ts.map +1 -1
  179. package/lib/services/waiting-rooms.js +28 -22
  180. package/lib/services/waiting-rooms.js.map +1 -1
  181. package/lib/services/workers.d.ts +17 -17
  182. package/lib/services/workers.d.ts.map +1 -1
  183. package/lib/services/workers.js +53 -44
  184. package/lib/services/workers.js.map +1 -1
  185. package/lib/services/workflows.d.ts +6 -6
  186. package/lib/services/workflows.d.ts.map +1 -1
  187. package/lib/services/workflows.js +42 -33
  188. package/lib/services/workflows.js.map +1 -1
  189. package/lib/services/zero-trust.d.ts +60 -60
  190. package/lib/services/zero-trust.d.ts.map +1 -1
  191. package/lib/services/zero-trust.js +416 -326
  192. package/lib/services/zero-trust.js.map +1 -1
  193. package/lib/services/zones.d.ts +2 -2
  194. package/lib/services/zones.d.ts.map +1 -1
  195. package/lib/services/zones.js +14 -11
  196. package/lib/services/zones.js.map +1 -1
  197. package/package.json +2 -2
  198. package/src/services/abuse-reports.ts +42 -28
  199. package/src/services/accounts.ts +94 -67
  200. package/src/services/ai-gateway.ts +101 -70
  201. package/src/services/ai.ts +19 -14
  202. package/src/services/alerting.ts +19 -14
  203. package/src/services/api-gateway.ts +105 -70
  204. package/src/services/audit-logs.ts +19 -14
  205. package/src/services/client-certificates.ts +21 -14
  206. package/src/services/custom-certificates.ts +21 -14
  207. package/src/services/custom-hostnames.ts +21 -14
  208. package/src/services/d1.ts +19 -14
  209. package/src/services/dns-firewall.ts +21 -14
  210. package/src/services/dns.ts +40 -28
  211. package/src/services/durable-objects.ts +39 -25
  212. package/src/services/email-routing.ts +38 -28
  213. package/src/services/email-security.ts +147 -98
  214. package/src/services/filters.ts +19 -14
  215. package/src/services/firewall.ts +162 -112
  216. package/src/services/healthchecks.ts +21 -14
  217. package/src/services/images.ts +19 -14
  218. package/src/services/intel.ts +40 -28
  219. package/src/services/kv.ts +39 -25
  220. package/src/services/load-balancers.ts +19 -14
  221. package/src/services/magic-cloud-networking.ts +19 -14
  222. package/src/services/memberships.ts +21 -14
  223. package/src/services/origin-ca-certificates.ts +21 -14
  224. package/src/services/pages.ts +40 -28
  225. package/src/services/queues.ts +21 -14
  226. package/src/services/r2.ts +241 -0
  227. package/src/services/radar.ts +42 -28
  228. package/src/services/rate-limits.ts +21 -14
  229. package/src/services/resource-sharing.ts +61 -42
  230. package/src/services/rules.ts +18 -11
  231. package/src/services/rulesets.ts +17 -12
  232. package/src/services/rum.ts +19 -14
  233. package/src/services/schema-validation.ts +40 -28
  234. package/src/services/secrets-store.ts +40 -28
  235. package/src/services/security-center.ts +19 -14
  236. package/src/services/snippets.ts +19 -14
  237. package/src/services/spectrum.ts +19 -14
  238. package/src/services/speed.ts +19 -14
  239. package/src/services/token-validation.ts +40 -28
  240. package/src/services/turnstile.ts +19 -14
  241. package/src/services/user.ts +80 -56
  242. package/src/services/waiting-rooms.ts +40 -28
  243. package/src/services/workers.ts +85 -64
  244. package/src/services/workflows.ts +57 -42
  245. package/src/services/zero-trust.ts +618 -416
  246. package/src/services/zones.ts +19 -14
@@ -5276,12 +5276,12 @@ export interface ListRecordsResponse {
5276
5276
  tagsModifiedOn?: string | null;
5277
5277
  }
5278
5278
  )[];
5279
- resultInfo: {
5279
+ resultInfo?: {
5280
5280
  count?: number | null;
5281
5281
  page?: number | null;
5282
5282
  perPage?: number | null;
5283
5283
  totalCount?: number | null;
5284
- };
5284
+ } | null;
5285
5285
  }
5286
5286
 
5287
5287
  export const ListRecordsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -6817,18 +6817,23 @@ export const ListRecordsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6817
6817
  ),
6818
6818
  ]),
6819
6819
  ),
6820
- resultInfo: Schema.Struct({
6821
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6822
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6823
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6824
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6825
- }).pipe(
6826
- Schema.encodeKeys({
6827
- count: "count",
6828
- page: "page",
6829
- perPage: "per_page",
6830
- totalCount: "total_count",
6831
- }),
6820
+ resultInfo: Schema.optional(
6821
+ Schema.Union([
6822
+ Schema.Struct({
6823
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6824
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6825
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6826
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6827
+ }).pipe(
6828
+ Schema.encodeKeys({
6829
+ count: "count",
6830
+ page: "page",
6831
+ perPage: "per_page",
6832
+ totalCount: "total_count",
6833
+ }),
6834
+ ),
6835
+ Schema.Null,
6836
+ ]),
6832
6837
  ),
6833
6838
  }).pipe(
6834
6839
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -27723,12 +27728,12 @@ export interface ListSettingAccountViewsResponse {
27723
27728
  name: string;
27724
27729
  zones: string[];
27725
27730
  }[];
27726
- resultInfo: {
27731
+ resultInfo?: {
27727
27732
  count?: number | null;
27728
27733
  page?: number | null;
27729
27734
  perPage?: number | null;
27730
27735
  totalCount?: number | null;
27731
- };
27736
+ } | null;
27732
27737
  }
27733
27738
 
27734
27739
  export const ListSettingAccountViewsResponse =
@@ -27750,18 +27755,25 @@ export const ListSettingAccountViewsResponse =
27750
27755
  }),
27751
27756
  ),
27752
27757
  ),
27753
- resultInfo: Schema.Struct({
27754
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27755
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27756
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27757
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27758
- }).pipe(
27759
- Schema.encodeKeys({
27760
- count: "count",
27761
- page: "page",
27762
- perPage: "per_page",
27763
- totalCount: "total_count",
27764
- }),
27758
+ resultInfo: Schema.optional(
27759
+ Schema.Union([
27760
+ Schema.Struct({
27761
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27762
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27763
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27764
+ totalCount: Schema.optional(
27765
+ Schema.Union([Schema.Number, Schema.Null]),
27766
+ ),
27767
+ }).pipe(
27768
+ Schema.encodeKeys({
27769
+ count: "count",
27770
+ page: "page",
27771
+ perPage: "per_page",
27772
+ totalCount: "total_count",
27773
+ }),
27774
+ ),
27775
+ Schema.Null,
27776
+ ]),
27765
27777
  ),
27766
27778
  }).pipe(
27767
27779
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -64,12 +64,12 @@ export interface ListNamespacesResponse {
64
64
  script?: string | null;
65
65
  useSqlite?: boolean | null;
66
66
  }[];
67
- resultInfo: {
67
+ resultInfo?: {
68
68
  count?: number | null;
69
69
  page?: number | null;
70
70
  perPage?: number | null;
71
71
  totalCount?: number | null;
72
- };
72
+ } | null;
73
73
  }
74
74
 
75
75
  export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
@@ -91,18 +91,25 @@ export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
91
91
  }),
92
92
  ),
93
93
  ),
94
- resultInfo: Schema.Struct({
95
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
96
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
97
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
98
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
99
- }).pipe(
100
- Schema.encodeKeys({
101
- count: "count",
102
- page: "page",
103
- perPage: "per_page",
104
- totalCount: "total_count",
105
- }),
94
+ resultInfo: Schema.optional(
95
+ Schema.Union([
96
+ Schema.Struct({
97
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
98
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
99
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
100
+ totalCount: Schema.optional(
101
+ Schema.Union([Schema.Number, Schema.Null]),
102
+ ),
103
+ }).pipe(
104
+ Schema.encodeKeys({
105
+ count: "count",
106
+ page: "page",
107
+ perPage: "per_page",
108
+ totalCount: "total_count",
109
+ }),
110
+ ),
111
+ Schema.Null,
112
+ ]),
106
113
  ),
107
114
  },
108
115
  ).pipe(
@@ -157,7 +164,7 @@ export const ListNamespaceObjectsRequest =
157
164
 
158
165
  export interface ListNamespaceObjectsResponse {
159
166
  result: { id?: string | null; hasStoredData?: boolean | null }[];
160
- resultInfo: { cursors?: { after?: string | null } | null };
167
+ resultInfo?: { cursors?: { after?: string | null } | null } | null;
161
168
  }
162
169
 
163
170
  export const ListNamespaceObjectsResponse =
@@ -170,16 +177,23 @@ export const ListNamespaceObjectsResponse =
170
177
  ),
171
178
  }),
172
179
  ),
173
- resultInfo: Schema.Struct({
174
- cursors: Schema.optional(
175
- Schema.Union([
176
- Schema.Struct({
177
- after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
178
- }),
179
- Schema.Null,
180
- ]),
181
- ),
182
- }),
180
+ resultInfo: Schema.optional(
181
+ Schema.Union([
182
+ Schema.Struct({
183
+ cursors: Schema.optional(
184
+ Schema.Union([
185
+ Schema.Struct({
186
+ after: Schema.optional(
187
+ Schema.Union([Schema.String, Schema.Null]),
188
+ ),
189
+ }),
190
+ Schema.Null,
191
+ ]),
192
+ ),
193
+ }),
194
+ Schema.Null,
195
+ ]),
196
+ ),
183
197
  }).pipe(
184
198
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
185
199
  ) as unknown as Schema.Schema<ListNamespaceObjectsResponse>;
@@ -110,12 +110,12 @@ export interface ListAddressesResponse {
110
110
  tag?: string | null;
111
111
  verified?: string | null;
112
112
  }[];
113
- resultInfo: {
113
+ resultInfo?: {
114
114
  count?: number | null;
115
115
  page?: number | null;
116
116
  perPage?: number | null;
117
117
  totalCount?: number | null;
118
- };
118
+ } | null;
119
119
  }
120
120
 
121
121
  export const ListAddressesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -129,18 +129,23 @@ export const ListAddressesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
129
129
  verified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
130
130
  }),
131
131
  ),
132
- resultInfo: Schema.Struct({
133
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
134
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
135
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
136
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
137
- }).pipe(
138
- Schema.encodeKeys({
139
- count: "count",
140
- page: "page",
141
- perPage: "per_page",
142
- totalCount: "total_count",
143
- }),
132
+ resultInfo: Schema.optional(
133
+ Schema.Union([
134
+ Schema.Struct({
135
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
136
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
137
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
138
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
139
+ }).pipe(
140
+ Schema.encodeKeys({
141
+ count: "count",
142
+ page: "page",
143
+ perPage: "per_page",
144
+ totalCount: "total_count",
145
+ }),
146
+ ),
147
+ Schema.Null,
148
+ ]),
144
149
  ),
145
150
  }).pipe(
146
151
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -1462,12 +1467,12 @@ export interface ListRulesResponse {
1462
1467
  priority?: number | null;
1463
1468
  tag?: string | null;
1464
1469
  }[];
1465
- resultInfo: {
1470
+ resultInfo?: {
1466
1471
  count?: number | null;
1467
1472
  page?: number | null;
1468
1473
  perPage?: number | null;
1469
1474
  totalCount?: number | null;
1470
- };
1475
+ } | null;
1471
1476
  }
1472
1477
 
1473
1478
  export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1511,18 +1516,23 @@ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1511
1516
  tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1512
1517
  }),
1513
1518
  ),
1514
- resultInfo: Schema.Struct({
1515
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1516
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1517
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1518
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1519
- }).pipe(
1520
- Schema.encodeKeys({
1521
- count: "count",
1522
- page: "page",
1523
- perPage: "per_page",
1524
- totalCount: "total_count",
1525
- }),
1519
+ resultInfo: Schema.optional(
1520
+ Schema.Union([
1521
+ Schema.Struct({
1522
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1523
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1524
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1525
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1526
+ }).pipe(
1527
+ Schema.encodeKeys({
1528
+ count: "count",
1529
+ page: "page",
1530
+ perPage: "per_page",
1531
+ totalCount: "total_count",
1532
+ }),
1533
+ ),
1534
+ Schema.Null,
1535
+ ]),
1526
1536
  ),
1527
1537
  }).pipe(
1528
1538
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -570,12 +570,12 @@ export interface ListInvestigatesResponse {
570
570
  spf?: "pass" | "neutral" | "fail" | "error" | "none" | null;
571
571
  } | null;
572
572
  }[];
573
- resultInfo: {
573
+ resultInfo?: {
574
574
  count?: number | null;
575
575
  page?: number | null;
576
576
  perPage?: number | null;
577
577
  totalCount?: number | null;
578
- };
578
+ } | null;
579
579
  }
580
580
 
581
581
  export const ListInvestigatesResponse =
@@ -820,18 +820,25 @@ export const ListInvestigatesResponse =
820
820
  }),
821
821
  ),
822
822
  ),
823
- resultInfo: Schema.Struct({
824
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
825
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
826
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
827
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
828
- }).pipe(
829
- Schema.encodeKeys({
830
- count: "count",
831
- page: "page",
832
- perPage: "per_page",
833
- totalCount: "total_count",
834
- }),
823
+ resultInfo: Schema.optional(
824
+ Schema.Union([
825
+ Schema.Struct({
826
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
827
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
828
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
829
+ totalCount: Schema.optional(
830
+ Schema.Union([Schema.Number, Schema.Null]),
831
+ ),
832
+ }).pipe(
833
+ Schema.encodeKeys({
834
+ count: "count",
835
+ page: "page",
836
+ perPage: "per_page",
837
+ totalCount: "total_count",
838
+ }),
839
+ ),
840
+ Schema.Null,
841
+ ]),
835
842
  ),
836
843
  }).pipe(
837
844
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -1815,12 +1822,12 @@ export interface ListSettingAllowPoliciesResponse {
1815
1822
  isSender?: boolean | null;
1816
1823
  isSpoof?: boolean | null;
1817
1824
  }[];
1818
- resultInfo: {
1825
+ resultInfo?: {
1819
1826
  count?: number | null;
1820
1827
  page?: number | null;
1821
1828
  perPage?: number | null;
1822
1829
  totalCount?: number | null;
1823
- };
1830
+ } | null;
1824
1831
  }
1825
1832
 
1826
1833
  export const ListSettingAllowPoliciesResponse =
@@ -1862,18 +1869,25 @@ export const ListSettingAllowPoliciesResponse =
1862
1869
  }),
1863
1870
  ),
1864
1871
  ),
1865
- resultInfo: Schema.Struct({
1866
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1867
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1868
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1869
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1870
- }).pipe(
1871
- Schema.encodeKeys({
1872
- count: "count",
1873
- page: "page",
1874
- perPage: "per_page",
1875
- totalCount: "total_count",
1876
- }),
1872
+ resultInfo: Schema.optional(
1873
+ Schema.Union([
1874
+ Schema.Struct({
1875
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1876
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1877
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1878
+ totalCount: Schema.optional(
1879
+ Schema.Union([Schema.Number, Schema.Null]),
1880
+ ),
1881
+ }).pipe(
1882
+ Schema.encodeKeys({
1883
+ count: "count",
1884
+ page: "page",
1885
+ perPage: "per_page",
1886
+ totalCount: "total_count",
1887
+ }),
1888
+ ),
1889
+ Schema.Null,
1890
+ ]),
1877
1891
  ),
1878
1892
  }).pipe(
1879
1893
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2341,12 +2355,12 @@ export interface ListSettingBlockSendersResponse {
2341
2355
  patternType: "EMAIL" | "DOMAIN" | "IP" | "UNKNOWN";
2342
2356
  comments?: string | null;
2343
2357
  }[];
2344
- resultInfo: {
2358
+ resultInfo?: {
2345
2359
  count?: number | null;
2346
2360
  page?: number | null;
2347
2361
  perPage?: number | null;
2348
2362
  totalCount?: number | null;
2349
- };
2363
+ } | null;
2350
2364
  }
2351
2365
 
2352
2366
  export const ListSettingBlockSendersResponse =
@@ -2372,18 +2386,25 @@ export const ListSettingBlockSendersResponse =
2372
2386
  }),
2373
2387
  ),
2374
2388
  ),
2375
- resultInfo: Schema.Struct({
2376
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2377
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2378
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2379
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2380
- }).pipe(
2381
- Schema.encodeKeys({
2382
- count: "count",
2383
- page: "page",
2384
- perPage: "per_page",
2385
- totalCount: "total_count",
2386
- }),
2389
+ resultInfo: Schema.optional(
2390
+ Schema.Union([
2391
+ Schema.Struct({
2392
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2393
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2394
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2395
+ totalCount: Schema.optional(
2396
+ Schema.Union([Schema.Number, Schema.Null]),
2397
+ ),
2398
+ }).pipe(
2399
+ Schema.encodeKeys({
2400
+ count: "count",
2401
+ page: "page",
2402
+ perPage: "per_page",
2403
+ totalCount: "total_count",
2404
+ }),
2405
+ ),
2406
+ Schema.Null,
2407
+ ]),
2387
2408
  ),
2388
2409
  }).pipe(
2389
2410
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -2932,12 +2953,12 @@ export interface ListSettingDomainsResponse {
2932
2953
  requireTlsOutbound?: boolean | null;
2933
2954
  spfStatus?: "none" | "good" | "neutral" | "open" | "invalid" | null;
2934
2955
  }[];
2935
- resultInfo: {
2956
+ resultInfo?: {
2936
2957
  count?: number | null;
2937
2958
  page?: number | null;
2938
2959
  perPage?: number | null;
2939
2960
  totalCount?: number | null;
2940
- };
2961
+ } | null;
2941
2962
  }
2942
2963
 
2943
2964
  export const ListSettingDomainsResponse =
@@ -3074,18 +3095,25 @@ export const ListSettingDomainsResponse =
3074
3095
  }),
3075
3096
  ),
3076
3097
  ),
3077
- resultInfo: Schema.Struct({
3078
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3079
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3080
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3081
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3082
- }).pipe(
3083
- Schema.encodeKeys({
3084
- count: "count",
3085
- page: "page",
3086
- perPage: "per_page",
3087
- totalCount: "total_count",
3088
- }),
3098
+ resultInfo: Schema.optional(
3099
+ Schema.Union([
3100
+ Schema.Struct({
3101
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3102
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3103
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3104
+ totalCount: Schema.optional(
3105
+ Schema.Union([Schema.Number, Schema.Null]),
3106
+ ),
3107
+ }).pipe(
3108
+ Schema.encodeKeys({
3109
+ count: "count",
3110
+ page: "page",
3111
+ perPage: "per_page",
3112
+ totalCount: "total_count",
3113
+ }),
3114
+ ),
3115
+ Schema.Null,
3116
+ ]),
3089
3117
  ),
3090
3118
  }).pipe(
3091
3119
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -3631,12 +3659,12 @@ export interface ListSettingImpersonationRegistriesResponse {
3631
3659
  externalDirectoryNodeId?: string | null;
3632
3660
  provenance?: string | null;
3633
3661
  }[];
3634
- resultInfo: {
3662
+ resultInfo?: {
3635
3663
  count?: number | null;
3636
3664
  page?: number | null;
3637
3665
  perPage?: number | null;
3638
3666
  totalCount?: number | null;
3639
- };
3667
+ } | null;
3640
3668
  }
3641
3669
 
3642
3670
  export const ListSettingImpersonationRegistriesResponse =
@@ -3676,18 +3704,25 @@ export const ListSettingImpersonationRegistriesResponse =
3676
3704
  }),
3677
3705
  ),
3678
3706
  ),
3679
- resultInfo: Schema.Struct({
3680
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3681
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3682
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3683
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3684
- }).pipe(
3685
- Schema.encodeKeys({
3686
- count: "count",
3687
- page: "page",
3688
- perPage: "per_page",
3689
- totalCount: "total_count",
3690
- }),
3707
+ resultInfo: Schema.optional(
3708
+ Schema.Union([
3709
+ Schema.Struct({
3710
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3711
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3712
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
3713
+ totalCount: Schema.optional(
3714
+ Schema.Union([Schema.Number, Schema.Null]),
3715
+ ),
3716
+ }).pipe(
3717
+ Schema.encodeKeys({
3718
+ count: "count",
3719
+ page: "page",
3720
+ perPage: "per_page",
3721
+ totalCount: "total_count",
3722
+ }),
3723
+ ),
3724
+ Schema.Null,
3725
+ ]),
3691
3726
  ),
3692
3727
  }).pipe(
3693
3728
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -4073,12 +4108,12 @@ export interface ListSettingTrustedDomainsResponse {
4073
4108
  pattern: string;
4074
4109
  comments?: string | null;
4075
4110
  }[];
4076
- resultInfo: {
4111
+ resultInfo?: {
4077
4112
  count?: number | null;
4078
4113
  page?: number | null;
4079
4114
  perPage?: number | null;
4080
4115
  totalCount?: number | null;
4081
- };
4116
+ } | null;
4082
4117
  }
4083
4118
 
4084
4119
  export const ListSettingTrustedDomainsResponse =
@@ -4106,18 +4141,25 @@ export const ListSettingTrustedDomainsResponse =
4106
4141
  }),
4107
4142
  ),
4108
4143
  ),
4109
- resultInfo: Schema.Struct({
4110
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4111
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4112
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4113
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4114
- }).pipe(
4115
- Schema.encodeKeys({
4116
- count: "count",
4117
- page: "page",
4118
- perPage: "per_page",
4119
- totalCount: "total_count",
4120
- }),
4144
+ resultInfo: Schema.optional(
4145
+ Schema.Union([
4146
+ Schema.Struct({
4147
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4148
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4149
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4150
+ totalCount: Schema.optional(
4151
+ Schema.Union([Schema.Number, Schema.Null]),
4152
+ ),
4153
+ }).pipe(
4154
+ Schema.encodeKeys({
4155
+ count: "count",
4156
+ page: "page",
4157
+ perPage: "per_page",
4158
+ totalCount: "total_count",
4159
+ }),
4160
+ ),
4161
+ Schema.Null,
4162
+ ]),
4121
4163
  ),
4122
4164
  }).pipe(
4123
4165
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -4549,12 +4591,12 @@ export interface ListSubmissionsResponse {
4549
4591
  subject?: string | null;
4550
4592
  type?: string | null;
4551
4593
  }[];
4552
- resultInfo: {
4594
+ resultInfo?: {
4553
4595
  count?: number | null;
4554
4596
  page?: number | null;
4555
4597
  perPage?: number | null;
4556
4598
  totalCount?: number | null;
4557
- };
4599
+ } | null;
4558
4600
  }
4559
4601
 
4560
4602
  export const ListSubmissionsResponse =
@@ -4634,18 +4676,25 @@ export const ListSubmissionsResponse =
4634
4676
  }),
4635
4677
  ),
4636
4678
  ),
4637
- resultInfo: Schema.Struct({
4638
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4639
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4640
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4641
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4642
- }).pipe(
4643
- Schema.encodeKeys({
4644
- count: "count",
4645
- page: "page",
4646
- perPage: "per_page",
4647
- totalCount: "total_count",
4648
- }),
4679
+ resultInfo: Schema.optional(
4680
+ Schema.Union([
4681
+ Schema.Struct({
4682
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4683
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4684
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4685
+ totalCount: Schema.optional(
4686
+ Schema.Union([Schema.Number, Schema.Null]),
4687
+ ),
4688
+ }).pipe(
4689
+ Schema.encodeKeys({
4690
+ count: "count",
4691
+ page: "page",
4692
+ perPage: "per_page",
4693
+ totalCount: "total_count",
4694
+ }),
4695
+ ),
4696
+ Schema.Null,
4697
+ ]),
4649
4698
  ),
4650
4699
  }).pipe(
4651
4700
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),