@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
@@ -664,12 +664,12 @@ export interface ListSiteInfosResponse {
664
664
  siteToken?: string | null;
665
665
  snippet?: string | null;
666
666
  }[];
667
- resultInfo: {
667
+ resultInfo?: {
668
668
  count?: number | null;
669
669
  page?: number | null;
670
670
  perPage?: number | null;
671
671
  totalCount?: number | null;
672
- };
672
+ } | null;
673
673
  }
674
674
 
675
675
  export const ListSiteInfosResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -752,18 +752,23 @@ export const ListSiteInfosResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
752
752
  }),
753
753
  ),
754
754
  ),
755
- resultInfo: Schema.Struct({
756
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
757
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
758
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
759
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
760
- }).pipe(
761
- Schema.encodeKeys({
762
- count: "count",
763
- page: "page",
764
- perPage: "per_page",
765
- totalCount: "total_count",
766
- }),
755
+ resultInfo: Schema.optional(
756
+ Schema.Union([
757
+ Schema.Struct({
758
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
759
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
760
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
761
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
762
+ }).pipe(
763
+ Schema.encodeKeys({
764
+ count: "count",
765
+ page: "page",
766
+ perPage: "per_page",
767
+ totalCount: "total_count",
768
+ }),
769
+ ),
770
+ Schema.Null,
771
+ ]),
767
772
  ),
768
773
  }).pipe(
769
774
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -118,12 +118,12 @@ export interface ListSchemasResponse {
118
118
  source: string;
119
119
  validationEnabled?: boolean | null;
120
120
  }[];
121
- resultInfo: {
121
+ resultInfo?: {
122
122
  count?: number | null;
123
123
  page?: number | null;
124
124
  perPage?: number | null;
125
125
  totalCount?: number | null;
126
- };
126
+ } | null;
127
127
  }
128
128
 
129
129
  export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -148,18 +148,23 @@ export const ListSchemasResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
148
148
  }),
149
149
  ),
150
150
  ),
151
- resultInfo: Schema.Struct({
152
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
153
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
154
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
155
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
156
- }).pipe(
157
- Schema.encodeKeys({
158
- count: "count",
159
- page: "page",
160
- perPage: "per_page",
161
- totalCount: "total_count",
162
- }),
151
+ resultInfo: Schema.optional(
152
+ Schema.Union([
153
+ Schema.Struct({
154
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
155
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
156
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
157
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
158
+ }).pipe(
159
+ Schema.encodeKeys({
160
+ count: "count",
161
+ page: "page",
162
+ perPage: "per_page",
163
+ totalCount: "total_count",
164
+ }),
165
+ ),
166
+ Schema.Null,
167
+ ]),
163
168
  ),
164
169
  }).pipe(
165
170
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -639,12 +644,12 @@ export const ListSettingOperationsRequest =
639
644
 
640
645
  export interface ListSettingOperationsResponse {
641
646
  result: { mitigationAction: "log" | "block" | "none"; operationId: string }[];
642
- resultInfo: {
647
+ resultInfo?: {
643
648
  count?: number | null;
644
649
  page?: number | null;
645
650
  perPage?: number | null;
646
651
  totalCount?: number | null;
647
- };
652
+ } | null;
648
653
  }
649
654
 
650
655
  export const ListSettingOperationsResponse =
@@ -660,18 +665,25 @@ export const ListSettingOperationsResponse =
660
665
  }),
661
666
  ),
662
667
  ),
663
- resultInfo: Schema.Struct({
664
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
665
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
666
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
667
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
668
- }).pipe(
669
- Schema.encodeKeys({
670
- count: "count",
671
- page: "page",
672
- perPage: "per_page",
673
- totalCount: "total_count",
674
- }),
668
+ resultInfo: Schema.optional(
669
+ Schema.Union([
670
+ Schema.Struct({
671
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
672
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
673
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
674
+ totalCount: Schema.optional(
675
+ Schema.Union([Schema.Number, Schema.Null]),
676
+ ),
677
+ }).pipe(
678
+ Schema.encodeKeys({
679
+ count: "count",
680
+ page: "page",
681
+ perPage: "per_page",
682
+ totalCount: "total_count",
683
+ }),
684
+ ),
685
+ Schema.Null,
686
+ ]),
675
687
  ),
676
688
  }).pipe(
677
689
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -165,12 +165,12 @@ export const ListStoresRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
165
165
 
166
166
  export interface ListStoresResponse {
167
167
  result: { id: string; created: string; modified: string; name: string }[];
168
- resultInfo: {
168
+ resultInfo?: {
169
169
  count?: number | null;
170
170
  page?: number | null;
171
171
  perPage?: number | null;
172
172
  totalCount?: number | null;
173
- };
173
+ } | null;
174
174
  }
175
175
 
176
176
  export const ListStoresResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -182,18 +182,23 @@ export const ListStoresResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
182
182
  name: Schema.String,
183
183
  }),
184
184
  ),
185
- resultInfo: Schema.Struct({
186
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
187
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
188
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
189
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
190
- }).pipe(
191
- Schema.encodeKeys({
192
- count: "count",
193
- page: "page",
194
- perPage: "per_page",
195
- totalCount: "total_count",
196
- }),
185
+ resultInfo: Schema.optional(
186
+ Schema.Union([
187
+ Schema.Struct({
188
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
189
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
190
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
191
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
192
+ }).pipe(
193
+ Schema.encodeKeys({
194
+ count: "count",
195
+ page: "page",
196
+ perPage: "per_page",
197
+ totalCount: "total_count",
198
+ }),
199
+ ),
200
+ Schema.Null,
201
+ ]),
197
202
  ),
198
203
  }).pipe(
199
204
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -456,12 +461,12 @@ export interface ListStoreSecretsResponse {
456
461
  storeId: string;
457
462
  comment?: string | null;
458
463
  }[];
459
- resultInfo: {
464
+ resultInfo?: {
460
465
  count?: number | null;
461
466
  page?: number | null;
462
467
  perPage?: number | null;
463
468
  totalCount?: number | null;
464
- };
469
+ } | null;
465
470
  }
466
471
 
467
472
  export const ListStoreSecretsResponse =
@@ -487,18 +492,25 @@ export const ListStoreSecretsResponse =
487
492
  }),
488
493
  ),
489
494
  ),
490
- resultInfo: Schema.Struct({
491
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
492
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
493
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
494
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
495
- }).pipe(
496
- Schema.encodeKeys({
497
- count: "count",
498
- page: "page",
499
- perPage: "per_page",
500
- totalCount: "total_count",
501
- }),
495
+ resultInfo: Schema.optional(
496
+ Schema.Union([
497
+ Schema.Struct({
498
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
499
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
500
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
501
+ totalCount: Schema.optional(
502
+ Schema.Union([Schema.Number, Schema.Null]),
503
+ ),
504
+ }).pipe(
505
+ Schema.encodeKeys({
506
+ count: "count",
507
+ page: "page",
508
+ perPage: "per_page",
509
+ totalCount: "total_count",
510
+ }),
511
+ ),
512
+ Schema.Null,
513
+ ]),
502
514
  ),
503
515
  }).pipe(
504
516
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -62,12 +62,12 @@ export interface ListInsightsResponse {
62
62
  }[]
63
63
  | null;
64
64
  };
65
- resultInfo: {
65
+ resultInfo?: {
66
66
  count?: number | null;
67
67
  page?: number | null;
68
68
  perPage?: number | null;
69
69
  totalCount?: number | null;
70
- };
70
+ } | null;
71
71
  }
72
72
 
73
73
  export const ListInsightsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -178,18 +178,23 @@ export const ListInsightsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
178
178
  ]),
179
179
  ),
180
180
  }),
181
- resultInfo: Schema.Struct({
182
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
183
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
184
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
185
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
186
- }).pipe(
187
- Schema.encodeKeys({
188
- count: "count",
189
- page: "page",
190
- perPage: "per_page",
191
- totalCount: "total_count",
192
- }),
181
+ resultInfo: Schema.optional(
182
+ Schema.Union([
183
+ Schema.Struct({
184
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
185
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
186
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
187
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
188
+ }).pipe(
189
+ Schema.encodeKeys({
190
+ count: "count",
191
+ page: "page",
192
+ perPage: "per_page",
193
+ totalCount: "total_count",
194
+ }),
195
+ ),
196
+ Schema.Null,
197
+ ]),
193
198
  ),
194
199
  }).pipe(
195
200
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -335,12 +335,12 @@ export interface ListSnippetsResponse {
335
335
  snippetName: string;
336
336
  modifiedOn?: string | null;
337
337
  }[];
338
- resultInfo: {
338
+ resultInfo?: {
339
339
  count?: number | null;
340
340
  page?: number | null;
341
341
  perPage?: number | null;
342
342
  totalCount?: number | null;
343
- };
343
+ } | null;
344
344
  }
345
345
 
346
346
  export const ListSnippetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -357,18 +357,23 @@ export const ListSnippetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
357
357
  }),
358
358
  ),
359
359
  ),
360
- resultInfo: Schema.Struct({
361
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
362
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
363
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
364
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
365
- }).pipe(
366
- Schema.encodeKeys({
367
- count: "count",
368
- page: "page",
369
- perPage: "per_page",
370
- totalCount: "total_count",
371
- }),
360
+ resultInfo: Schema.optional(
361
+ Schema.Union([
362
+ Schema.Struct({
363
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
364
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
365
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
366
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
367
+ }).pipe(
368
+ Schema.encodeKeys({
369
+ count: "count",
370
+ page: "page",
371
+ perPage: "per_page",
372
+ totalCount: "total_count",
373
+ }),
374
+ ),
375
+ Schema.Null,
376
+ ]),
372
377
  ),
373
378
  }).pipe(
374
379
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -721,12 +721,12 @@ export interface ListAppsResponse {
721
721
  originDirect?: string[] | null;
722
722
  }
723
723
  )[];
724
- resultInfo: {
724
+ resultInfo?: {
725
725
  count?: number | null;
726
726
  page?: number | null;
727
727
  perPage?: number | null;
728
728
  totalCount?: number | null;
729
- };
729
+ } | null;
730
730
  }
731
731
 
732
732
  export const ListAppsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -856,18 +856,23 @@ export const ListAppsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
856
856
  ),
857
857
  ]),
858
858
  ),
859
- resultInfo: Schema.Struct({
860
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
861
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
862
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
863
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
864
- }).pipe(
865
- Schema.encodeKeys({
866
- count: "count",
867
- page: "page",
868
- perPage: "per_page",
869
- totalCount: "total_count",
870
- }),
859
+ resultInfo: Schema.optional(
860
+ Schema.Union([
861
+ Schema.Struct({
862
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
863
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
864
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
865
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
866
+ }).pipe(
867
+ Schema.encodeKeys({
868
+ count: "count",
869
+ page: "page",
870
+ perPage: "per_page",
871
+ totalCount: "total_count",
872
+ }),
873
+ ),
874
+ Schema.Null,
875
+ ]),
871
876
  ),
872
877
  }).pipe(
873
878
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -1470,12 +1470,12 @@ export interface ListPageTestsResponse {
1470
1470
  scheduleFrequency?: "DAILY" | "WEEKLY" | null;
1471
1471
  url?: string | null;
1472
1472
  }[];
1473
- resultInfo: {
1473
+ resultInfo?: {
1474
1474
  count?: number | null;
1475
1475
  page?: number | null;
1476
1476
  perPage?: number | null;
1477
1477
  totalCount?: number | null;
1478
- };
1478
+ } | null;
1479
1479
  }
1480
1480
 
1481
1481
  export const ListPageTestsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1639,18 +1639,23 @@ export const ListPageTestsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1639
1639
  url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1640
1640
  }),
1641
1641
  ),
1642
- resultInfo: Schema.Struct({
1643
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1644
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1645
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1646
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1647
- }).pipe(
1648
- Schema.encodeKeys({
1649
- count: "count",
1650
- page: "page",
1651
- perPage: "per_page",
1652
- totalCount: "total_count",
1653
- }),
1642
+ resultInfo: Schema.optional(
1643
+ Schema.Union([
1644
+ Schema.Struct({
1645
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1646
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1647
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1648
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1649
+ }).pipe(
1650
+ Schema.encodeKeys({
1651
+ count: "count",
1652
+ page: "page",
1653
+ perPage: "per_page",
1654
+ totalCount: "total_count",
1655
+ }),
1656
+ ),
1657
+ Schema.Null,
1658
+ ]),
1654
1659
  ),
1655
1660
  }).pipe(
1656
1661
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -199,12 +199,12 @@ export interface ListConfigurationsResponse {
199
199
  tokenSources: string[];
200
200
  tokenType: "JWT";
201
201
  }[];
202
- resultInfo: {
202
+ resultInfo?: {
203
203
  count?: number | null;
204
204
  page?: number | null;
205
205
  perPage?: number | null;
206
206
  totalCount?: number | null;
207
- };
207
+ } | null;
208
208
  }
209
209
 
210
210
  export const ListConfigurationsResponse =
@@ -267,18 +267,25 @@ export const ListConfigurationsResponse =
267
267
  }),
268
268
  ),
269
269
  ),
270
- resultInfo: Schema.Struct({
271
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
272
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
273
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
274
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
275
- }).pipe(
276
- Schema.encodeKeys({
277
- count: "count",
278
- page: "page",
279
- perPage: "per_page",
280
- totalCount: "total_count",
281
- }),
270
+ resultInfo: Schema.optional(
271
+ Schema.Union([
272
+ Schema.Struct({
273
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
274
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
275
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
276
+ totalCount: Schema.optional(
277
+ Schema.Union([Schema.Number, Schema.Null]),
278
+ ),
279
+ }).pipe(
280
+ Schema.encodeKeys({
281
+ count: "count",
282
+ page: "page",
283
+ perPage: "per_page",
284
+ totalCount: "total_count",
285
+ }),
286
+ ),
287
+ Schema.Null,
288
+ ]),
282
289
  ),
283
290
  }).pipe(
284
291
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -1014,12 +1021,12 @@ export interface ListRulesResponse {
1014
1021
  createdAt?: string | null;
1015
1022
  lastUpdated?: string | null;
1016
1023
  }[];
1017
- resultInfo: {
1024
+ resultInfo?: {
1018
1025
  count?: number | null;
1019
1026
  page?: number | null;
1020
1027
  perPage?: number | null;
1021
1028
  totalCount?: number | null;
1022
- };
1029
+ } | null;
1023
1030
  }
1024
1031
 
1025
1032
  export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -1073,18 +1080,23 @@ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1073
1080
  }),
1074
1081
  ),
1075
1082
  ),
1076
- resultInfo: Schema.Struct({
1077
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1078
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1079
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1080
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1081
- }).pipe(
1082
- Schema.encodeKeys({
1083
- count: "count",
1084
- page: "page",
1085
- perPage: "per_page",
1086
- totalCount: "total_count",
1087
- }),
1083
+ resultInfo: Schema.optional(
1084
+ Schema.Union([
1085
+ Schema.Struct({
1086
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1087
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1088
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1089
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1090
+ }).pipe(
1091
+ Schema.encodeKeys({
1092
+ count: "count",
1093
+ page: "page",
1094
+ perPage: "per_page",
1095
+ totalCount: "total_count",
1096
+ }),
1097
+ ),
1098
+ Schema.Null,
1099
+ ]),
1088
1100
  ),
1089
1101
  }).pipe(
1090
1102
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
@@ -253,12 +253,12 @@ export interface ListWidgetsResponse {
253
253
  region: "world" | "china";
254
254
  sitekey: string;
255
255
  }[];
256
- resultInfo: {
256
+ resultInfo?: {
257
257
  count?: number | null;
258
258
  page?: number | null;
259
259
  perPage?: number | null;
260
260
  totalCount?: number | null;
261
- };
261
+ } | null;
262
262
  }
263
263
 
264
264
  export const ListWidgetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -296,18 +296,23 @@ export const ListWidgetsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
296
296
  }),
297
297
  ),
298
298
  ),
299
- resultInfo: Schema.Struct({
300
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
301
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
302
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
303
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
304
- }).pipe(
305
- Schema.encodeKeys({
306
- count: "count",
307
- page: "page",
308
- perPage: "per_page",
309
- totalCount: "total_count",
310
- }),
299
+ resultInfo: Schema.optional(
300
+ Schema.Union([
301
+ Schema.Struct({
302
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
303
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
304
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
305
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
306
+ }).pipe(
307
+ Schema.encodeKeys({
308
+ count: "count",
309
+ page: "page",
310
+ perPage: "per_page",
311
+ totalCount: "total_count",
312
+ }),
313
+ ),
314
+ Schema.Null,
315
+ ]),
311
316
  ),
312
317
  }).pipe(
313
318
  Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),