@distilled.cloud/cloudflare 0.18.2 → 0.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (261) hide show
  1. package/lib/schemas.d.ts +7 -8
  2. package/lib/schemas.d.ts.map +1 -1
  3. package/lib/schemas.js +9 -12
  4. package/lib/schemas.js.map +1 -1
  5. package/lib/services/abuse-reports.d.ts +4 -4
  6. package/lib/services/abuse-reports.d.ts.map +1 -1
  7. package/lib/services/abuse-reports.js +28 -22
  8. package/lib/services/abuse-reports.js.map +1 -1
  9. package/lib/services/accounts.d.ts +10 -10
  10. package/lib/services/accounts.d.ts.map +1 -1
  11. package/lib/services/accounts.js +67 -52
  12. package/lib/services/accounts.js.map +1 -1
  13. package/lib/services/ai-gateway.d.ts +10 -10
  14. package/lib/services/ai-gateway.d.ts.map +1 -1
  15. package/lib/services/ai-gateway.js +70 -55
  16. package/lib/services/ai-gateway.js.map +1 -1
  17. package/lib/services/ai.d.ts +2 -2
  18. package/lib/services/ai.d.ts.map +1 -1
  19. package/lib/services/ai.js +14 -11
  20. package/lib/services/ai.js.map +1 -1
  21. package/lib/services/alerting.d.ts +2 -2
  22. package/lib/services/alerting.d.ts.map +1 -1
  23. package/lib/services/alerting.js +14 -11
  24. package/lib/services/alerting.js.map +1 -1
  25. package/lib/services/api-gateway.d.ts +10 -10
  26. package/lib/services/api-gateway.d.ts.map +1 -1
  27. package/lib/services/api-gateway.js +70 -55
  28. package/lib/services/api-gateway.js.map +1 -1
  29. package/lib/services/audit-logs.d.ts +2 -2
  30. package/lib/services/audit-logs.d.ts.map +1 -1
  31. package/lib/services/audit-logs.js +14 -11
  32. package/lib/services/audit-logs.js.map +1 -1
  33. package/lib/services/client-certificates.d.ts +2 -2
  34. package/lib/services/client-certificates.d.ts.map +1 -1
  35. package/lib/services/client-certificates.js +14 -11
  36. package/lib/services/client-certificates.js.map +1 -1
  37. package/lib/services/custom-certificates.d.ts +2 -2
  38. package/lib/services/custom-certificates.d.ts.map +1 -1
  39. package/lib/services/custom-certificates.js +14 -11
  40. package/lib/services/custom-certificates.js.map +1 -1
  41. package/lib/services/custom-hostnames.d.ts +2 -2
  42. package/lib/services/custom-hostnames.d.ts.map +1 -1
  43. package/lib/services/custom-hostnames.js +14 -11
  44. package/lib/services/custom-hostnames.js.map +1 -1
  45. package/lib/services/custom-pages.d.ts +40 -13
  46. package/lib/services/custom-pages.d.ts.map +1 -1
  47. package/lib/services/custom-pages.js +68 -15
  48. package/lib/services/custom-pages.js.map +1 -1
  49. package/lib/services/d1.d.ts +2 -2
  50. package/lib/services/d1.d.ts.map +1 -1
  51. package/lib/services/d1.js +14 -11
  52. package/lib/services/d1.js.map +1 -1
  53. package/lib/services/dns-firewall.d.ts +2 -2
  54. package/lib/services/dns-firewall.d.ts.map +1 -1
  55. package/lib/services/dns-firewall.js +14 -11
  56. package/lib/services/dns-firewall.js.map +1 -1
  57. package/lib/services/dns.d.ts +4 -4
  58. package/lib/services/dns.d.ts.map +1 -1
  59. package/lib/services/dns.js +28 -22
  60. package/lib/services/dns.js.map +1 -1
  61. package/lib/services/durable-objects.d.ts +4 -4
  62. package/lib/services/durable-objects.d.ts.map +1 -1
  63. package/lib/services/durable-objects.js +25 -19
  64. package/lib/services/durable-objects.js.map +1 -1
  65. package/lib/services/email-routing.d.ts +4 -4
  66. package/lib/services/email-routing.d.ts.map +1 -1
  67. package/lib/services/email-routing.js +28 -22
  68. package/lib/services/email-routing.js.map +1 -1
  69. package/lib/services/email-security.d.ts +14 -14
  70. package/lib/services/email-security.d.ts.map +1 -1
  71. package/lib/services/email-security.js +98 -77
  72. package/lib/services/email-security.js.map +1 -1
  73. package/lib/services/filters.d.ts +2 -2
  74. package/lib/services/filters.d.ts.map +1 -1
  75. package/lib/services/filters.js +14 -11
  76. package/lib/services/filters.js.map +1 -1
  77. package/lib/services/firewall.d.ts +82 -39
  78. package/lib/services/firewall.d.ts.map +1 -1
  79. package/lib/services/firewall.js +232 -114
  80. package/lib/services/firewall.js.map +1 -1
  81. package/lib/services/healthchecks.d.ts +2 -2
  82. package/lib/services/healthchecks.d.ts.map +1 -1
  83. package/lib/services/healthchecks.js +14 -11
  84. package/lib/services/healthchecks.js.map +1 -1
  85. package/lib/services/images.d.ts +2 -2
  86. package/lib/services/images.d.ts.map +1 -1
  87. package/lib/services/images.js +14 -11
  88. package/lib/services/images.js.map +1 -1
  89. package/lib/services/intel.d.ts +6 -4
  90. package/lib/services/intel.d.ts.map +1 -1
  91. package/lib/services/intel.js +30 -22
  92. package/lib/services/intel.js.map +1 -1
  93. package/lib/services/kv.d.ts +4 -4
  94. package/lib/services/kv.d.ts.map +1 -1
  95. package/lib/services/kv.js +25 -19
  96. package/lib/services/kv.js.map +1 -1
  97. package/lib/services/load-balancers.d.ts +2 -2
  98. package/lib/services/load-balancers.d.ts.map +1 -1
  99. package/lib/services/load-balancers.js +14 -11
  100. package/lib/services/load-balancers.js.map +1 -1
  101. package/lib/services/logpush.d.ts +157 -64
  102. package/lib/services/logpush.d.ts.map +1 -1
  103. package/lib/services/logpush.js +292 -63
  104. package/lib/services/logpush.js.map +1 -1
  105. package/lib/services/magic-cloud-networking.d.ts +2 -2
  106. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  107. package/lib/services/magic-cloud-networking.js +14 -11
  108. package/lib/services/magic-cloud-networking.js.map +1 -1
  109. package/lib/services/memberships.d.ts +2 -2
  110. package/lib/services/memberships.d.ts.map +1 -1
  111. package/lib/services/memberships.js +14 -11
  112. package/lib/services/memberships.js.map +1 -1
  113. package/lib/services/origin-ca-certificates.d.ts +2 -2
  114. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  115. package/lib/services/origin-ca-certificates.js +14 -11
  116. package/lib/services/origin-ca-certificates.js.map +1 -1
  117. package/lib/services/pages.d.ts +4 -4
  118. package/lib/services/pages.d.ts.map +1 -1
  119. package/lib/services/pages.js +28 -22
  120. package/lib/services/pages.js.map +1 -1
  121. package/lib/services/queues.d.ts +2 -2
  122. package/lib/services/queues.d.ts.map +1 -1
  123. package/lib/services/queues.js +14 -11
  124. package/lib/services/queues.js.map +1 -1
  125. package/lib/services/r2.d.ts +97 -2
  126. package/lib/services/r2.d.ts.map +1 -1
  127. package/lib/services/r2.js +125 -6
  128. package/lib/services/r2.js.map +1 -1
  129. package/lib/services/radar.d.ts +4 -4
  130. package/lib/services/radar.d.ts.map +1 -1
  131. package/lib/services/radar.js +28 -22
  132. package/lib/services/radar.js.map +1 -1
  133. package/lib/services/rate-limits.d.ts +2 -2
  134. package/lib/services/rate-limits.d.ts.map +1 -1
  135. package/lib/services/rate-limits.js +14 -11
  136. package/lib/services/rate-limits.js.map +1 -1
  137. package/lib/services/resource-sharing.d.ts +6 -6
  138. package/lib/services/resource-sharing.d.ts.map +1 -1
  139. package/lib/services/resource-sharing.js +42 -33
  140. package/lib/services/resource-sharing.js.map +1 -1
  141. package/lib/services/rules.d.ts +2 -2
  142. package/lib/services/rules.d.ts.map +1 -1
  143. package/lib/services/rules.js +11 -8
  144. package/lib/services/rules.js.map +1 -1
  145. package/lib/services/rulesets.d.ts +202 -67
  146. package/lib/services/rulesets.d.ts.map +1 -1
  147. package/lib/services/rulesets.js +383 -84
  148. package/lib/services/rulesets.js.map +1 -1
  149. package/lib/services/rum.d.ts +2 -2
  150. package/lib/services/rum.d.ts.map +1 -1
  151. package/lib/services/rum.js +14 -11
  152. package/lib/services/rum.js.map +1 -1
  153. package/lib/services/schema-validation.d.ts +4 -4
  154. package/lib/services/schema-validation.d.ts.map +1 -1
  155. package/lib/services/schema-validation.js +28 -22
  156. package/lib/services/schema-validation.js.map +1 -1
  157. package/lib/services/secrets-store.d.ts +4 -4
  158. package/lib/services/secrets-store.d.ts.map +1 -1
  159. package/lib/services/secrets-store.js +28 -22
  160. package/lib/services/secrets-store.js.map +1 -1
  161. package/lib/services/security-center.d.ts +68 -21
  162. package/lib/services/security-center.d.ts.map +1 -1
  163. package/lib/services/security-center.js +142 -33
  164. package/lib/services/security-center.js.map +1 -1
  165. package/lib/services/snippets.d.ts +2 -2
  166. package/lib/services/snippets.d.ts.map +1 -1
  167. package/lib/services/snippets.js +14 -11
  168. package/lib/services/snippets.js.map +1 -1
  169. package/lib/services/spectrum.d.ts +2 -2
  170. package/lib/services/spectrum.d.ts.map +1 -1
  171. package/lib/services/spectrum.js +14 -11
  172. package/lib/services/spectrum.js.map +1 -1
  173. package/lib/services/speed.d.ts +2 -2
  174. package/lib/services/speed.d.ts.map +1 -1
  175. package/lib/services/speed.js +14 -11
  176. package/lib/services/speed.js.map +1 -1
  177. package/lib/services/token-validation.d.ts +4 -4
  178. package/lib/services/token-validation.d.ts.map +1 -1
  179. package/lib/services/token-validation.js +28 -22
  180. package/lib/services/token-validation.js.map +1 -1
  181. package/lib/services/turnstile.d.ts +2 -2
  182. package/lib/services/turnstile.d.ts.map +1 -1
  183. package/lib/services/turnstile.js +14 -11
  184. package/lib/services/turnstile.js.map +1 -1
  185. package/lib/services/user.d.ts +8 -8
  186. package/lib/services/user.d.ts.map +1 -1
  187. package/lib/services/user.js +56 -44
  188. package/lib/services/user.js.map +1 -1
  189. package/lib/services/waiting-rooms.d.ts +18 -7
  190. package/lib/services/waiting-rooms.d.ts.map +1 -1
  191. package/lib/services/waiting-rooms.js +53 -29
  192. package/lib/services/waiting-rooms.js.map +1 -1
  193. package/lib/services/workers.d.ts +17 -17
  194. package/lib/services/workers.d.ts.map +1 -1
  195. package/lib/services/workers.js +53 -44
  196. package/lib/services/workers.js.map +1 -1
  197. package/lib/services/workflows.d.ts +6 -6
  198. package/lib/services/workflows.d.ts.map +1 -1
  199. package/lib/services/workflows.js +42 -33
  200. package/lib/services/workflows.js.map +1 -1
  201. package/lib/services/zero-trust.d.ts +639 -264
  202. package/lib/services/zero-trust.d.ts.map +1 -1
  203. package/lib/services/zero-trust.js +1575 -594
  204. package/lib/services/zero-trust.js.map +1 -1
  205. package/lib/services/zones.d.ts +2 -2
  206. package/lib/services/zones.d.ts.map +1 -1
  207. package/lib/services/zones.js +14 -11
  208. package/lib/services/zones.js.map +1 -1
  209. package/package.json +2 -2
  210. package/src/schemas.ts +19 -17
  211. package/src/services/abuse-reports.ts +42 -28
  212. package/src/services/accounts.ts +94 -67
  213. package/src/services/ai-gateway.ts +101 -70
  214. package/src/services/ai.ts +19 -14
  215. package/src/services/alerting.ts +19 -14
  216. package/src/services/api-gateway.ts +105 -70
  217. package/src/services/audit-logs.ts +19 -14
  218. package/src/services/client-certificates.ts +21 -14
  219. package/src/services/custom-certificates.ts +21 -14
  220. package/src/services/custom-hostnames.ts +21 -14
  221. package/src/services/custom-pages.ts +170 -66
  222. package/src/services/d1.ts +19 -14
  223. package/src/services/dns-firewall.ts +21 -14
  224. package/src/services/dns.ts +40 -28
  225. package/src/services/durable-objects.ts +39 -25
  226. package/src/services/email-routing.ts +38 -28
  227. package/src/services/email-security.ts +147 -98
  228. package/src/services/filters.ts +19 -14
  229. package/src/services/firewall.ts +462 -233
  230. package/src/services/healthchecks.ts +21 -14
  231. package/src/services/images.ts +19 -14
  232. package/src/services/intel.ts +44 -28
  233. package/src/services/kv.ts +39 -25
  234. package/src/services/load-balancers.ts +19 -14
  235. package/src/services/logpush.ts +798 -372
  236. package/src/services/magic-cloud-networking.ts +19 -14
  237. package/src/services/memberships.ts +21 -14
  238. package/src/services/origin-ca-certificates.ts +21 -14
  239. package/src/services/pages.ts +40 -28
  240. package/src/services/queues.ts +21 -14
  241. package/src/services/r2.ts +307 -9
  242. package/src/services/radar.ts +42 -28
  243. package/src/services/rate-limits.ts +21 -14
  244. package/src/services/resource-sharing.ts +61 -42
  245. package/src/services/rules.ts +18 -11
  246. package/src/services/rulesets.ts +3990 -3420
  247. package/src/services/rum.ts +19 -14
  248. package/src/services/schema-validation.ts +40 -28
  249. package/src/services/secrets-store.ts +40 -28
  250. package/src/services/security-center.ts +266 -77
  251. package/src/services/snippets.ts +19 -14
  252. package/src/services/spectrum.ts +19 -14
  253. package/src/services/speed.ts +19 -14
  254. package/src/services/token-validation.ts +40 -28
  255. package/src/services/turnstile.ts +19 -14
  256. package/src/services/user.ts +80 -56
  257. package/src/services/waiting-rooms.ts +89 -39
  258. package/src/services/workers.ts +85 -64
  259. package/src/services/workflows.ts +57 -42
  260. package/src/services/zero-trust.ts +4536 -2654
  261. package/src/services/zones.ts +19 -14
@@ -55,17 +55,20 @@ export const ListAccessAiControlMcpPortalsResponse =
55
55
  modifiedAt: "modified_at",
56
56
  modifiedBy: "modified_by",
57
57
  }))),
58
- resultInfo: Schema.Struct({
59
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
60
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
61
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
62
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
63
- }).pipe(Schema.encodeKeys({
64
- count: "count",
65
- page: "page",
66
- perPage: "per_page",
67
- totalCount: "total_count",
68
- })),
58
+ resultInfo: Schema.optional(Schema.Union([
59
+ Schema.Struct({
60
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
61
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
62
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
63
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
64
+ }).pipe(Schema.encodeKeys({
65
+ count: "count",
66
+ page: "page",
67
+ perPage: "per_page",
68
+ totalCount: "total_count",
69
+ })),
70
+ Schema.Null,
71
+ ])),
69
72
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
70
73
  export const listAccessAiControlMcpPortals = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
71
74
  input: ListAccessAiControlMcpPortalsRequest,
@@ -350,17 +353,20 @@ export const ListAccessAiControlMcpServersResponse =
350
353
  modifiedBy: "modified_by",
351
354
  status: "status",
352
355
  }))),
353
- resultInfo: Schema.Struct({
354
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
355
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
356
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
357
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
358
- }).pipe(Schema.encodeKeys({
359
- count: "count",
360
- page: "page",
361
- perPage: "per_page",
362
- totalCount: "total_count",
363
- })),
356
+ resultInfo: Schema.optional(Schema.Union([
357
+ Schema.Struct({
358
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
359
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
360
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
361
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
362
+ }).pipe(Schema.encodeKeys({
363
+ count: "count",
364
+ page: "page",
365
+ perPage: "per_page",
366
+ totalCount: "total_count",
367
+ })),
368
+ Schema.Null,
369
+ ])),
364
370
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
365
371
  export const listAccessAiControlMcpServers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
366
372
  input: ListAccessAiControlMcpServersRequest,
@@ -596,11 +602,25 @@ export const syncAccessAiControlMcpServer = /*@__PURE__*/ /*#__PURE__*/ API.make
596
602
  output: SyncAccessAiControlMcpServerResponse,
597
603
  errors: [],
598
604
  }));
599
- export const GetAccessApplicationRequest =
600
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
605
+ // =============================================================================
606
+ // AccessApplication
607
+ // =============================================================================
608
+ const GetAccessApplicationBaseFields = {
609
+ appId: Schema.String.pipe(T.HttpPath("appId")),
610
+ };
611
+ export const GetAccessApplicationForAccountRequest =
612
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
613
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
614
+ ...GetAccessApplicationBaseFields,
615
+ }).pipe(T.Http({
601
616
  method: "GET",
602
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}",
617
+ path: "/accounts/{account_id}/access/apps/{appId}",
603
618
  }));
619
+ export const GetAccessApplicationForZoneRequest =
620
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
621
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
622
+ ...GetAccessApplicationBaseFields,
623
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/apps/{appId}" }));
604
624
  export const GetAccessApplicationResponse =
605
625
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
606
626
  Schema.Struct({
@@ -4984,16 +5004,27 @@ export const GetAccessApplicationResponse =
4984
5004
  type: "type",
4985
5005
  })),
4986
5006
  ]).pipe(T.ResponsePath("result"));
4987
- export const getAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4988
- input: GetAccessApplicationRequest,
5007
+ export const getAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5008
+ input: GetAccessApplicationForAccountRequest,
4989
5009
  output: GetAccessApplicationResponse,
4990
5010
  errors: [],
4991
5011
  }));
4992
- export const ListAccessApplicationsRequest =
4993
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
4994
- method: "GET",
4995
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps",
5012
+ export const getAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5013
+ input: GetAccessApplicationForZoneRequest,
5014
+ output: GetAccessApplicationResponse,
5015
+ errors: [],
4996
5016
  }));
5017
+ const ListAccessApplicationsBaseFields = {};
5018
+ export const ListAccessApplicationsForAccountRequest =
5019
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5020
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
5021
+ ...ListAccessApplicationsBaseFields,
5022
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/access/apps" }));
5023
+ export const ListAccessApplicationsForZoneRequest =
5024
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5025
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
5026
+ ...ListAccessApplicationsBaseFields,
5027
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/apps" }));
4997
5028
  export const ListAccessApplicationsResponse =
4998
5029
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4999
5030
  result: Schema.Array(Schema.Union([
@@ -9545,20 +9576,23 @@ export const ListAccessApplicationsResponse =
9545
9576
  type: "type",
9546
9577
  })),
9547
9578
  ])),
9548
- resultInfo: Schema.Struct({
9549
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9550
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9551
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9552
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9553
- }).pipe(Schema.encodeKeys({
9554
- count: "count",
9555
- page: "page",
9556
- perPage: "per_page",
9557
- totalCount: "total_count",
9558
- })),
9579
+ resultInfo: Schema.optional(Schema.Union([
9580
+ Schema.Struct({
9581
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9582
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9583
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9584
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
9585
+ }).pipe(Schema.encodeKeys({
9586
+ count: "count",
9587
+ page: "page",
9588
+ perPage: "per_page",
9589
+ totalCount: "total_count",
9590
+ })),
9591
+ Schema.Null,
9592
+ ])),
9559
9593
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
9560
- export const listAccessApplications = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9561
- input: ListAccessApplicationsRequest,
9594
+ export const listAccessApplicationsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9595
+ input: ListAccessApplicationsForAccountRequest,
9562
9596
  output: ListAccessApplicationsResponse,
9563
9597
  errors: [],
9564
9598
  pagination: {
@@ -9569,10 +9603,19 @@ export const listAccessApplications = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
9569
9603
  pageSize: "perPage",
9570
9604
  },
9571
9605
  }));
9572
- export const CreateAccessApplicationRequest =
9573
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9574
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9575
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
9606
+ export const listAccessApplicationsForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9607
+ input: ListAccessApplicationsForZoneRequest,
9608
+ output: ListAccessApplicationsResponse,
9609
+ errors: [],
9610
+ pagination: {
9611
+ mode: "page",
9612
+ inputToken: "page",
9613
+ outputToken: "resultInfo.page",
9614
+ items: "result",
9615
+ pageSize: "perPage",
9616
+ },
9617
+ }));
9618
+ const CreateAccessApplicationBaseFields = {
9576
9619
  domain: Schema.String,
9577
9620
  type: Schema.Literals([
9578
9621
  "self_hosted",
@@ -9802,6 +9845,11 @@ export const CreateAccessApplicationRequest =
9802
9845
  sessionDuration: Schema.optional(Schema.String),
9803
9846
  skipInterstitial: Schema.optional(Schema.Boolean),
9804
9847
  tags: Schema.optional(Schema.Array(Schema.String)),
9848
+ };
9849
+ export const CreateAccessApplicationForAccountRequest =
9850
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9851
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9852
+ ...CreateAccessApplicationBaseFields,
9805
9853
  }).pipe(Schema.encodeKeys({
9806
9854
  domain: "domain",
9807
9855
  type: "type",
@@ -9831,10 +9879,41 @@ export const CreateAccessApplicationRequest =
9831
9879
  sessionDuration: "session_duration",
9832
9880
  skipInterstitial: "skip_interstitial",
9833
9881
  tags: "tags",
9834
- }), T.Http({
9835
- method: "POST",
9836
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps",
9837
- }));
9882
+ }), T.Http({ method: "POST", path: "/accounts/{account_id}/access/apps" }));
9883
+ export const CreateAccessApplicationForZoneRequest =
9884
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9885
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
9886
+ ...CreateAccessApplicationBaseFields,
9887
+ }).pipe(Schema.encodeKeys({
9888
+ domain: "domain",
9889
+ type: "type",
9890
+ allowAuthenticateViaWarp: "allow_authenticate_via_warp",
9891
+ allowIframe: "allow_iframe",
9892
+ allowedIdps: "allowed_idps",
9893
+ appLauncherVisible: "app_launcher_visible",
9894
+ autoRedirectToIdentity: "auto_redirect_to_identity",
9895
+ corsHeaders: "cors_headers",
9896
+ customDenyMessage: "custom_deny_message",
9897
+ customDenyUrl: "custom_deny_url",
9898
+ customNonIdentityDenyUrl: "custom_non_identity_deny_url",
9899
+ customPages: "custom_pages",
9900
+ destinations: "destinations",
9901
+ enableBindingCookie: "enable_binding_cookie",
9902
+ httpOnlyCookieAttribute: "http_only_cookie_attribute",
9903
+ logoUrl: "logo_url",
9904
+ name: "name",
9905
+ optionsPreflightBypass: "options_preflight_bypass",
9906
+ pathCookieAttribute: "path_cookie_attribute",
9907
+ policies: "policies",
9908
+ readServiceTokensFromHeader: "read_service_tokens_from_header",
9909
+ sameSiteCookieAttribute: "same_site_cookie_attribute",
9910
+ scimConfig: "scim_config",
9911
+ selfHostedDomains: "self_hosted_domains",
9912
+ serviceAuth_401Redirect: "service_auth_401_redirect",
9913
+ sessionDuration: "session_duration",
9914
+ skipInterstitial: "skip_interstitial",
9915
+ tags: "tags",
9916
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/access/apps" }));
9838
9917
  export const CreateAccessApplicationResponse =
9839
9918
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
9840
9919
  Schema.Struct({
@@ -14218,15 +14297,18 @@ export const CreateAccessApplicationResponse =
14218
14297
  type: "type",
14219
14298
  })),
14220
14299
  ]).pipe(T.ResponsePath("result"));
14221
- export const createAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
14222
- input: CreateAccessApplicationRequest,
14300
+ export const createAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
14301
+ input: CreateAccessApplicationForAccountRequest,
14223
14302
  output: CreateAccessApplicationResponse,
14224
14303
  errors: [],
14225
14304
  }));
14226
- export const UpdateAccessApplicationRequest =
14227
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
14228
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
14229
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
14305
+ export const createAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
14306
+ input: CreateAccessApplicationForZoneRequest,
14307
+ output: CreateAccessApplicationResponse,
14308
+ errors: [],
14309
+ }));
14310
+ const UpdateAccessApplicationBaseFields = {
14311
+ appId: Schema.String.pipe(T.HttpPath("appId")),
14230
14312
  domain: Schema.String,
14231
14313
  type: Schema.Literals([
14232
14314
  "self_hosted",
@@ -14456,6 +14538,11 @@ export const UpdateAccessApplicationRequest =
14456
14538
  sessionDuration: Schema.optional(Schema.String),
14457
14539
  skipInterstitial: Schema.optional(Schema.Boolean),
14458
14540
  tags: Schema.optional(Schema.Array(Schema.String)),
14541
+ };
14542
+ export const UpdateAccessApplicationForAccountRequest =
14543
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
14544
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
14545
+ ...UpdateAccessApplicationBaseFields,
14459
14546
  }).pipe(Schema.encodeKeys({
14460
14547
  domain: "domain",
14461
14548
  type: "type",
@@ -14487,8 +14574,42 @@ export const UpdateAccessApplicationRequest =
14487
14574
  tags: "tags",
14488
14575
  }), T.Http({
14489
14576
  method: "PUT",
14490
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}",
14577
+ path: "/accounts/{account_id}/access/apps/{appId}",
14491
14578
  }));
14579
+ export const UpdateAccessApplicationForZoneRequest =
14580
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
14581
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
14582
+ ...UpdateAccessApplicationBaseFields,
14583
+ }).pipe(Schema.encodeKeys({
14584
+ domain: "domain",
14585
+ type: "type",
14586
+ allowAuthenticateViaWarp: "allow_authenticate_via_warp",
14587
+ allowIframe: "allow_iframe",
14588
+ allowedIdps: "allowed_idps",
14589
+ appLauncherVisible: "app_launcher_visible",
14590
+ autoRedirectToIdentity: "auto_redirect_to_identity",
14591
+ corsHeaders: "cors_headers",
14592
+ customDenyMessage: "custom_deny_message",
14593
+ customDenyUrl: "custom_deny_url",
14594
+ customNonIdentityDenyUrl: "custom_non_identity_deny_url",
14595
+ customPages: "custom_pages",
14596
+ destinations: "destinations",
14597
+ enableBindingCookie: "enable_binding_cookie",
14598
+ httpOnlyCookieAttribute: "http_only_cookie_attribute",
14599
+ logoUrl: "logo_url",
14600
+ name: "name",
14601
+ optionsPreflightBypass: "options_preflight_bypass",
14602
+ pathCookieAttribute: "path_cookie_attribute",
14603
+ policies: "policies",
14604
+ readServiceTokensFromHeader: "read_service_tokens_from_header",
14605
+ sameSiteCookieAttribute: "same_site_cookie_attribute",
14606
+ scimConfig: "scim_config",
14607
+ selfHostedDomains: "self_hosted_domains",
14608
+ serviceAuth_401Redirect: "service_auth_401_redirect",
14609
+ sessionDuration: "session_duration",
14610
+ skipInterstitial: "skip_interstitial",
14611
+ tags: "tags",
14612
+ }), T.Http({ method: "PUT", path: "/zones/{zone_id}/access/apps/{appId}" }));
14492
14613
  export const UpdateAccessApplicationResponse =
14493
14614
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
14494
14615
  Schema.Struct({
@@ -18872,32 +18993,65 @@ export const UpdateAccessApplicationResponse =
18872
18993
  type: "type",
18873
18994
  })),
18874
18995
  ]).pipe(T.ResponsePath("result"));
18875
- export const updateAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18876
- input: UpdateAccessApplicationRequest,
18996
+ export const updateAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18997
+ input: UpdateAccessApplicationForAccountRequest,
18998
+ output: UpdateAccessApplicationResponse,
18999
+ errors: [],
19000
+ }));
19001
+ export const updateAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19002
+ input: UpdateAccessApplicationForZoneRequest,
18877
19003
  output: UpdateAccessApplicationResponse,
18878
19004
  errors: [],
18879
19005
  }));
18880
- export const DeleteAccessApplicationRequest =
18881
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
19006
+ const DeleteAccessApplicationBaseFields = {
19007
+ appId: Schema.String.pipe(T.HttpPath("appId")),
19008
+ };
19009
+ export const DeleteAccessApplicationForAccountRequest =
19010
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19011
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19012
+ ...DeleteAccessApplicationBaseFields,
19013
+ }).pipe(T.Http({
18882
19014
  method: "DELETE",
18883
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}",
19015
+ path: "/accounts/{account_id}/access/apps/{appId}",
18884
19016
  }));
19017
+ export const DeleteAccessApplicationForZoneRequest =
19018
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19019
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19020
+ ...DeleteAccessApplicationBaseFields,
19021
+ }).pipe(T.Http({ method: "DELETE", path: "/zones/{zone_id}/access/apps/{appId}" }));
18885
19022
  export const DeleteAccessApplicationResponse =
18886
19023
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18887
19024
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18888
19025
  }).pipe(T.ResponsePath("result"));
18889
- export const deleteAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18890
- input: DeleteAccessApplicationRequest,
19026
+ export const deleteAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19027
+ input: DeleteAccessApplicationForAccountRequest,
18891
19028
  output: DeleteAccessApplicationResponse,
18892
19029
  errors: [],
18893
19030
  }));
18894
- export const GetAccessApplicationCaRequest =
18895
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19031
+ export const deleteAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19032
+ input: DeleteAccessApplicationForZoneRequest,
19033
+ output: DeleteAccessApplicationResponse,
19034
+ errors: [],
19035
+ }));
19036
+ // =============================================================================
19037
+ // AccessApplicationCa
19038
+ // =============================================================================
19039
+ const GetAccessApplicationCaBaseFields = {
18896
19040
  appId: Schema.String.pipe(T.HttpPath("appId")),
19041
+ };
19042
+ export const GetAccessApplicationCaForAccountRequest =
19043
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19044
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19045
+ ...GetAccessApplicationCaBaseFields,
18897
19046
  }).pipe(T.Http({
18898
19047
  method: "GET",
18899
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/ca",
19048
+ path: "/accounts/{account_id}/access/apps/{appId}/ca",
18900
19049
  }));
19050
+ export const GetAccessApplicationCaForZoneRequest =
19051
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19052
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19053
+ ...GetAccessApplicationCaBaseFields,
19054
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/apps/{appId}/ca" }));
18901
19055
  export const GetAccessApplicationCaResponse =
18902
19056
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18903
19057
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -18906,16 +19060,27 @@ export const GetAccessApplicationCaResponse =
18906
19060
  })
18907
19061
  .pipe(Schema.encodeKeys({ id: "id", aud: "aud", publicKey: "public_key" }))
18908
19062
  .pipe(T.ResponsePath("result"));
18909
- export const getAccessApplicationCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18910
- input: GetAccessApplicationCaRequest,
19063
+ export const getAccessApplicationCaForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19064
+ input: GetAccessApplicationCaForAccountRequest,
18911
19065
  output: GetAccessApplicationCaResponse,
18912
19066
  errors: [],
18913
19067
  }));
18914
- export const ListAccessApplicationCasRequest =
18915
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
18916
- method: "GET",
18917
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/ca",
19068
+ export const getAccessApplicationCaForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19069
+ input: GetAccessApplicationCaForZoneRequest,
19070
+ output: GetAccessApplicationCaResponse,
19071
+ errors: [],
18918
19072
  }));
19073
+ const ListAccessApplicationCasBaseFields = {};
19074
+ export const ListAccessApplicationCasForAccountRequest =
19075
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19076
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19077
+ ...ListAccessApplicationCasBaseFields,
19078
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/access/apps/ca" }));
19079
+ export const ListAccessApplicationCasForZoneRequest =
19080
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19081
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19082
+ ...ListAccessApplicationCasBaseFields,
19083
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/apps/ca" }));
18919
19084
  export const ListAccessApplicationCasResponse =
18920
19085
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18921
19086
  result: Schema.Array(Schema.Struct({
@@ -18923,20 +19088,23 @@ export const ListAccessApplicationCasResponse =
18923
19088
  aud: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18924
19089
  publicKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18925
19090
  }).pipe(Schema.encodeKeys({ id: "id", aud: "aud", publicKey: "public_key" }))),
18926
- resultInfo: Schema.Struct({
18927
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18928
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18929
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18930
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18931
- }).pipe(Schema.encodeKeys({
18932
- count: "count",
18933
- page: "page",
18934
- perPage: "per_page",
18935
- totalCount: "total_count",
18936
- })),
19091
+ resultInfo: Schema.optional(Schema.Union([
19092
+ Schema.Struct({
19093
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
19094
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
19095
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
19096
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
19097
+ }).pipe(Schema.encodeKeys({
19098
+ count: "count",
19099
+ page: "page",
19100
+ perPage: "per_page",
19101
+ totalCount: "total_count",
19102
+ })),
19103
+ Schema.Null,
19104
+ ])),
18937
19105
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
18938
- export const listAccessApplicationCas = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
18939
- input: ListAccessApplicationCasRequest,
19106
+ export const listAccessApplicationCasForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
19107
+ input: ListAccessApplicationCasForAccountRequest,
18940
19108
  output: ListAccessApplicationCasResponse,
18941
19109
  errors: [],
18942
19110
  pagination: {
@@ -18947,13 +19115,34 @@ export const listAccessApplicationCas = /*@__PURE__*/ /*#__PURE__*/ API.makePagi
18947
19115
  pageSize: "perPage",
18948
19116
  },
18949
19117
  }));
18950
- export const CreateAccessApplicationCaRequest =
18951
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19118
+ export const listAccessApplicationCasForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
19119
+ input: ListAccessApplicationCasForZoneRequest,
19120
+ output: ListAccessApplicationCasResponse,
19121
+ errors: [],
19122
+ pagination: {
19123
+ mode: "page",
19124
+ inputToken: "page",
19125
+ outputToken: "resultInfo.page",
19126
+ items: "result",
19127
+ pageSize: "perPage",
19128
+ },
19129
+ }));
19130
+ const CreateAccessApplicationCaBaseFields = {
18952
19131
  appId: Schema.String.pipe(T.HttpPath("appId")),
19132
+ };
19133
+ export const CreateAccessApplicationCaForAccountRequest =
19134
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19135
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19136
+ ...CreateAccessApplicationCaBaseFields,
18953
19137
  }).pipe(T.Http({
18954
19138
  method: "POST",
18955
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/ca",
19139
+ path: "/accounts/{account_id}/access/apps/{appId}/ca",
18956
19140
  }));
19141
+ export const CreateAccessApplicationCaForZoneRequest =
19142
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19143
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19144
+ ...CreateAccessApplicationCaBaseFields,
19145
+ }).pipe(T.Http({ method: "POST", path: "/zones/{zone_id}/access/apps/{appId}/ca" }));
18957
19146
  export const CreateAccessApplicationCaResponse =
18958
19147
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18959
19148
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -18962,34 +19151,71 @@ export const CreateAccessApplicationCaResponse =
18962
19151
  })
18963
19152
  .pipe(Schema.encodeKeys({ id: "id", aud: "aud", publicKey: "public_key" }))
18964
19153
  .pipe(T.ResponsePath("result"));
18965
- export const createAccessApplicationCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18966
- input: CreateAccessApplicationCaRequest,
19154
+ export const createAccessApplicationCaForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19155
+ input: CreateAccessApplicationCaForAccountRequest,
18967
19156
  output: CreateAccessApplicationCaResponse,
18968
19157
  errors: [],
18969
19158
  }));
18970
- export const DeleteAccessApplicationCaRequest =
18971
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19159
+ export const createAccessApplicationCaForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19160
+ input: CreateAccessApplicationCaForZoneRequest,
19161
+ output: CreateAccessApplicationCaResponse,
19162
+ errors: [],
19163
+ }));
19164
+ const DeleteAccessApplicationCaBaseFields = {
18972
19165
  appId: Schema.String.pipe(T.HttpPath("appId")),
19166
+ };
19167
+ export const DeleteAccessApplicationCaForAccountRequest =
19168
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19169
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19170
+ ...DeleteAccessApplicationCaBaseFields,
19171
+ }).pipe(T.Http({
19172
+ method: "DELETE",
19173
+ path: "/accounts/{account_id}/access/apps/{appId}/ca",
19174
+ }));
19175
+ export const DeleteAccessApplicationCaForZoneRequest =
19176
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19177
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19178
+ ...DeleteAccessApplicationCaBaseFields,
18973
19179
  }).pipe(T.Http({
18974
19180
  method: "DELETE",
18975
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/ca",
19181
+ path: "/zones/{zone_id}/access/apps/{appId}/ca",
18976
19182
  }));
18977
19183
  export const DeleteAccessApplicationCaResponse =
18978
19184
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18979
19185
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18980
19186
  }).pipe(T.ResponsePath("result"));
18981
- export const deleteAccessApplicationCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18982
- input: DeleteAccessApplicationCaRequest,
19187
+ export const deleteAccessApplicationCaForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19188
+ input: DeleteAccessApplicationCaForAccountRequest,
18983
19189
  output: DeleteAccessApplicationCaResponse,
18984
19190
  errors: [],
18985
19191
  }));
18986
- export const GetAccessApplicationPolicyRequest =
18987
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19192
+ export const deleteAccessApplicationCaForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19193
+ input: DeleteAccessApplicationCaForZoneRequest,
19194
+ output: DeleteAccessApplicationCaResponse,
19195
+ errors: [],
19196
+ }));
19197
+ // =============================================================================
19198
+ // AccessApplicationPolicy
19199
+ // =============================================================================
19200
+ const GetAccessApplicationPolicyBaseFields = {
18988
19201
  appId: Schema.String.pipe(T.HttpPath("appId")),
18989
19202
  policyId: Schema.String.pipe(T.HttpPath("policyId")),
19203
+ };
19204
+ export const GetAccessApplicationPolicyForAccountRequest =
19205
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19206
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19207
+ ...GetAccessApplicationPolicyBaseFields,
19208
+ }).pipe(T.Http({
19209
+ method: "GET",
19210
+ path: "/accounts/{account_id}/access/apps/{appId}/policies/{policyId}",
19211
+ }));
19212
+ export const GetAccessApplicationPolicyForZoneRequest =
19213
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19214
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19215
+ ...GetAccessApplicationPolicyBaseFields,
18990
19216
  }).pipe(T.Http({
18991
19217
  method: "GET",
18992
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies/{policyId}",
19218
+ path: "/zones/{zone_id}/access/apps/{appId}/policies/{policyId}",
18993
19219
  }));
18994
19220
  export const GetAccessApplicationPolicyResponse =
18995
19221
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -19521,17 +19747,34 @@ export const GetAccessApplicationPolicyResponse =
19521
19747
  updatedAt: "updated_at",
19522
19748
  }))
19523
19749
  .pipe(T.ResponsePath("result"));
19524
- export const getAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19525
- input: GetAccessApplicationPolicyRequest,
19750
+ export const getAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19751
+ input: GetAccessApplicationPolicyForAccountRequest,
19526
19752
  output: GetAccessApplicationPolicyResponse,
19527
19753
  errors: [],
19528
19754
  }));
19529
- export const ListAccessApplicationPoliciesRequest =
19530
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19755
+ export const getAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19756
+ input: GetAccessApplicationPolicyForZoneRequest,
19757
+ output: GetAccessApplicationPolicyResponse,
19758
+ errors: [],
19759
+ }));
19760
+ const ListAccessApplicationPoliciesBaseFields = {
19531
19761
  appId: Schema.String.pipe(T.HttpPath("appId")),
19762
+ };
19763
+ export const ListAccessApplicationPoliciesForAccountRequest =
19764
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19765
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19766
+ ...ListAccessApplicationPoliciesBaseFields,
19532
19767
  }).pipe(T.Http({
19533
19768
  method: "GET",
19534
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies",
19769
+ path: "/accounts/{account_id}/access/apps/{appId}/policies",
19770
+ }));
19771
+ export const ListAccessApplicationPoliciesForZoneRequest =
19772
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19773
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19774
+ ...ListAccessApplicationPoliciesBaseFields,
19775
+ }).pipe(T.Http({
19776
+ method: "GET",
19777
+ path: "/zones/{zone_id}/access/apps/{appId}/policies",
19535
19778
  }));
19536
19779
  export const ListAccessApplicationPoliciesResponse =
19537
19780
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -20074,20 +20317,23 @@ export const ListAccessApplicationPoliciesResponse =
20074
20317
  sessionDuration: "session_duration",
20075
20318
  updatedAt: "updated_at",
20076
20319
  }))),
20077
- resultInfo: Schema.Struct({
20078
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20079
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20080
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20081
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20082
- }).pipe(Schema.encodeKeys({
20083
- count: "count",
20084
- page: "page",
20085
- perPage: "per_page",
20086
- totalCount: "total_count",
20087
- })),
20320
+ resultInfo: Schema.optional(Schema.Union([
20321
+ Schema.Struct({
20322
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20323
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20324
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20325
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
20326
+ }).pipe(Schema.encodeKeys({
20327
+ count: "count",
20328
+ page: "page",
20329
+ perPage: "per_page",
20330
+ totalCount: "total_count",
20331
+ })),
20332
+ Schema.Null,
20333
+ ])),
20088
20334
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
20089
- export const listAccessApplicationPolicies = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
20090
- input: ListAccessApplicationPoliciesRequest,
20335
+ export const listAccessApplicationPoliciesForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
20336
+ input: ListAccessApplicationPoliciesForAccountRequest,
20091
20337
  output: ListAccessApplicationPoliciesResponse,
20092
20338
  errors: [],
20093
20339
  pagination: {
@@ -20098,11 +20344,20 @@ export const listAccessApplicationPolicies = /*@__PURE__*/ /*#__PURE__*/ API.mak
20098
20344
  pageSize: "perPage",
20099
20345
  },
20100
20346
  }));
20101
- export const CreateAccessApplicationPolicyRequest =
20102
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20347
+ export const listAccessApplicationPoliciesForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
20348
+ input: ListAccessApplicationPoliciesForZoneRequest,
20349
+ output: ListAccessApplicationPoliciesResponse,
20350
+ errors: [],
20351
+ pagination: {
20352
+ mode: "page",
20353
+ inputToken: "page",
20354
+ outputToken: "resultInfo.page",
20355
+ items: "result",
20356
+ pageSize: "perPage",
20357
+ },
20358
+ }));
20359
+ const CreateAccessApplicationPolicyBaseFields = {
20103
20360
  appId: Schema.String.pipe(T.HttpPath("appId")),
20104
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
20105
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
20106
20361
  approvalGroups: Schema.optional(Schema.Array(Schema.Struct({
20107
20362
  approvalsNeeded: Schema.Number,
20108
20363
  emailAddresses: Schema.optional(Schema.Array(Schema.String)),
@@ -20118,6 +20373,11 @@ export const CreateAccessApplicationPolicyRequest =
20118
20373
  purposeJustificationPrompt: Schema.optional(Schema.String),
20119
20374
  purposeJustificationRequired: Schema.optional(Schema.Boolean),
20120
20375
  sessionDuration: Schema.optional(Schema.String),
20376
+ };
20377
+ export const CreateAccessApplicationPolicyForAccountRequest =
20378
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20379
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
20380
+ ...CreateAccessApplicationPolicyBaseFields,
20121
20381
  }).pipe(Schema.encodeKeys({
20122
20382
  approvalGroups: "approval_groups",
20123
20383
  approvalRequired: "approval_required",
@@ -20128,7 +20388,23 @@ export const CreateAccessApplicationPolicyRequest =
20128
20388
  sessionDuration: "session_duration",
20129
20389
  }), T.Http({
20130
20390
  method: "POST",
20131
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies",
20391
+ path: "/accounts/{account_id}/access/apps/{appId}/policies",
20392
+ }));
20393
+ export const CreateAccessApplicationPolicyForZoneRequest =
20394
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20395
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
20396
+ ...CreateAccessApplicationPolicyBaseFields,
20397
+ }).pipe(Schema.encodeKeys({
20398
+ approvalGroups: "approval_groups",
20399
+ approvalRequired: "approval_required",
20400
+ isolationRequired: "isolation_required",
20401
+ precedence: "precedence",
20402
+ purposeJustificationPrompt: "purpose_justification_prompt",
20403
+ purposeJustificationRequired: "purpose_justification_required",
20404
+ sessionDuration: "session_duration",
20405
+ }), T.Http({
20406
+ method: "POST",
20407
+ path: "/zones/{zone_id}/access/apps/{appId}/policies",
20132
20408
  }));
20133
20409
  export const CreateAccessApplicationPolicyResponse =
20134
20410
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -20660,17 +20936,19 @@ export const CreateAccessApplicationPolicyResponse =
20660
20936
  updatedAt: "updated_at",
20661
20937
  }))
20662
20938
  .pipe(T.ResponsePath("result"));
20663
- export const createAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
20664
- input: CreateAccessApplicationPolicyRequest,
20939
+ export const createAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
20940
+ input: CreateAccessApplicationPolicyForAccountRequest,
20665
20941
  output: CreateAccessApplicationPolicyResponse,
20666
20942
  errors: [],
20667
20943
  }));
20668
- export const UpdateAccessApplicationPolicyRequest =
20669
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20944
+ export const createAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
20945
+ input: CreateAccessApplicationPolicyForZoneRequest,
20946
+ output: CreateAccessApplicationPolicyResponse,
20947
+ errors: [],
20948
+ }));
20949
+ const UpdateAccessApplicationPolicyBaseFields = {
20670
20950
  appId: Schema.String.pipe(T.HttpPath("appId")),
20671
20951
  policyId: Schema.String.pipe(T.HttpPath("policyId")),
20672
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
20673
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
20674
20952
  approvalGroups: Schema.optional(Schema.Array(Schema.Struct({
20675
20953
  approvalsNeeded: Schema.Number,
20676
20954
  emailAddresses: Schema.optional(Schema.Array(Schema.String)),
@@ -20686,6 +20964,27 @@ export const UpdateAccessApplicationPolicyRequest =
20686
20964
  purposeJustificationPrompt: Schema.optional(Schema.String),
20687
20965
  purposeJustificationRequired: Schema.optional(Schema.Boolean),
20688
20966
  sessionDuration: Schema.optional(Schema.String),
20967
+ };
20968
+ export const UpdateAccessApplicationPolicyForAccountRequest =
20969
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20970
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
20971
+ ...UpdateAccessApplicationPolicyBaseFields,
20972
+ }).pipe(Schema.encodeKeys({
20973
+ approvalGroups: "approval_groups",
20974
+ approvalRequired: "approval_required",
20975
+ isolationRequired: "isolation_required",
20976
+ precedence: "precedence",
20977
+ purposeJustificationPrompt: "purpose_justification_prompt",
20978
+ purposeJustificationRequired: "purpose_justification_required",
20979
+ sessionDuration: "session_duration",
20980
+ }), T.Http({
20981
+ method: "PUT",
20982
+ path: "/accounts/{account_id}/access/apps/{appId}/policies/{policyId}",
20983
+ }));
20984
+ export const UpdateAccessApplicationPolicyForZoneRequest =
20985
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20986
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
20987
+ ...UpdateAccessApplicationPolicyBaseFields,
20689
20988
  }).pipe(Schema.encodeKeys({
20690
20989
  approvalGroups: "approval_groups",
20691
20990
  approvalRequired: "approval_required",
@@ -20696,7 +20995,7 @@ export const UpdateAccessApplicationPolicyRequest =
20696
20995
  sessionDuration: "session_duration",
20697
20996
  }), T.Http({
20698
20997
  method: "PUT",
20699
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies/{policyId}",
20998
+ path: "/zones/{zone_id}/access/apps/{appId}/policies/{policyId}",
20700
20999
  }));
20701
21000
  export const UpdateAccessApplicationPolicyResponse =
20702
21001
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21228,25 +21527,47 @@ export const UpdateAccessApplicationPolicyResponse =
21228
21527
  updatedAt: "updated_at",
21229
21528
  }))
21230
21529
  .pipe(T.ResponsePath("result"));
21231
- export const updateAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21232
- input: UpdateAccessApplicationPolicyRequest,
21530
+ export const updateAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21531
+ input: UpdateAccessApplicationPolicyForAccountRequest,
21233
21532
  output: UpdateAccessApplicationPolicyResponse,
21234
21533
  errors: [],
21235
21534
  }));
21236
- export const DeleteAccessApplicationPolicyRequest =
21237
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21535
+ export const updateAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21536
+ input: UpdateAccessApplicationPolicyForZoneRequest,
21537
+ output: UpdateAccessApplicationPolicyResponse,
21538
+ errors: [],
21539
+ }));
21540
+ const DeleteAccessApplicationPolicyBaseFields = {
21238
21541
  appId: Schema.String.pipe(T.HttpPath("appId")),
21239
21542
  policyId: Schema.String.pipe(T.HttpPath("policyId")),
21543
+ };
21544
+ export const DeleteAccessApplicationPolicyForAccountRequest =
21545
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21546
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
21547
+ ...DeleteAccessApplicationPolicyBaseFields,
21548
+ }).pipe(T.Http({
21549
+ method: "DELETE",
21550
+ path: "/accounts/{account_id}/access/apps/{appId}/policies/{policyId}",
21551
+ }));
21552
+ export const DeleteAccessApplicationPolicyForZoneRequest =
21553
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21554
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
21555
+ ...DeleteAccessApplicationPolicyBaseFields,
21240
21556
  }).pipe(T.Http({
21241
21557
  method: "DELETE",
21242
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies/{policyId}",
21558
+ path: "/zones/{zone_id}/access/apps/{appId}/policies/{policyId}",
21243
21559
  }));
21244
21560
  export const DeleteAccessApplicationPolicyResponse =
21245
21561
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21246
21562
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
21247
21563
  }).pipe(T.ResponsePath("result"));
21248
- export const deleteAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21249
- input: DeleteAccessApplicationPolicyRequest,
21564
+ export const deleteAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21565
+ input: DeleteAccessApplicationPolicyForAccountRequest,
21566
+ output: DeleteAccessApplicationPolicyResponse,
21567
+ errors: [],
21568
+ }));
21569
+ export const deleteAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21570
+ input: DeleteAccessApplicationPolicyForZoneRequest,
21250
21571
  output: DeleteAccessApplicationPolicyResponse,
21251
21572
  errors: [],
21252
21573
  }));
@@ -21855,17 +22176,20 @@ export const ListAccessApplicationPolicyTestUsersResponse =
21855
22176
  Schema.Null,
21856
22177
  ])),
21857
22178
  })),
21858
- resultInfo: Schema.Struct({
21859
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
21860
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
21861
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
21862
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
21863
- }).pipe(Schema.encodeKeys({
21864
- count: "count",
21865
- page: "page",
21866
- perPage: "per_page",
21867
- totalCount: "total_count",
21868
- })),
22179
+ resultInfo: Schema.optional(Schema.Union([
22180
+ Schema.Struct({
22181
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22182
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22183
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22184
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22185
+ }).pipe(Schema.encodeKeys({
22186
+ count: "count",
22187
+ page: "page",
22188
+ perPage: "per_page",
22189
+ totalCount: "total_count",
22190
+ })),
22191
+ Schema.Null,
22192
+ ])),
21869
22193
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
21870
22194
  export const listAccessApplicationPolicyTestUsers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
21871
22195
  input: ListAccessApplicationPolicyTestUsersRequest,
@@ -21879,18 +22203,35 @@ export const listAccessApplicationPolicyTestUsers = /*@__PURE__*/ /*#__PURE__*/
21879
22203
  pageSize: "perPage",
21880
22204
  },
21881
22205
  }));
21882
- export const PutAccessApplicationSettingRequest =
22206
+ // =============================================================================
22207
+ // AccessApplicationSetting
22208
+ // =============================================================================
22209
+ const PutAccessApplicationSettingBaseFields = {
22210
+ appId: Schema.String.pipe(T.HttpPath("appId")),
22211
+ allowIframe: Schema.optional(Schema.Boolean),
22212
+ skipInterstitial: Schema.optional(Schema.Boolean),
22213
+ };
22214
+ export const PutAccessApplicationSettingForAccountRequest =
21883
22215
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21884
22216
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
22217
+ ...PutAccessApplicationSettingBaseFields,
22218
+ }).pipe(Schema.encodeKeys({
22219
+ allowIframe: "allow_iframe",
22220
+ skipInterstitial: "skip_interstitial",
22221
+ }), T.Http({
22222
+ method: "PUT",
22223
+ path: "/accounts/{account_id}/access/apps/{appId}/settings",
22224
+ }));
22225
+ export const PutAccessApplicationSettingForZoneRequest =
22226
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21885
22227
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
21886
- allowIframe: Schema.optional(Schema.Boolean),
21887
- skipInterstitial: Schema.optional(Schema.Boolean),
22228
+ ...PutAccessApplicationSettingBaseFields,
21888
22229
  }).pipe(Schema.encodeKeys({
21889
22230
  allowIframe: "allow_iframe",
21890
22231
  skipInterstitial: "skip_interstitial",
21891
22232
  }), T.Http({
21892
22233
  method: "PUT",
21893
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/settings",
22234
+ path: "/zones/{zone_id}/access/apps/{appId}/settings",
21894
22235
  }));
21895
22236
  export const PutAccessApplicationSettingResponse =
21896
22237
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21902,23 +22243,42 @@ export const PutAccessApplicationSettingResponse =
21902
22243
  skipInterstitial: "skip_interstitial",
21903
22244
  }))
21904
22245
  .pipe(T.ResponsePath("result"));
21905
- export const putAccessApplicationSetting = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21906
- input: PutAccessApplicationSettingRequest,
22246
+ export const putAccessApplicationSettingForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22247
+ input: PutAccessApplicationSettingForAccountRequest,
21907
22248
  output: PutAccessApplicationSettingResponse,
21908
22249
  errors: [],
21909
22250
  }));
21910
- export const PatchAccessApplicationSettingRequest =
22251
+ export const putAccessApplicationSettingForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22252
+ input: PutAccessApplicationSettingForZoneRequest,
22253
+ output: PutAccessApplicationSettingResponse,
22254
+ errors: [],
22255
+ }));
22256
+ const PatchAccessApplicationSettingBaseFields = {
22257
+ appId: Schema.String.pipe(T.HttpPath("appId")),
22258
+ allowIframe: Schema.optional(Schema.Boolean),
22259
+ skipInterstitial: Schema.optional(Schema.Boolean),
22260
+ };
22261
+ export const PatchAccessApplicationSettingForAccountRequest =
21911
22262
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21912
22263
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
22264
+ ...PatchAccessApplicationSettingBaseFields,
22265
+ }).pipe(Schema.encodeKeys({
22266
+ allowIframe: "allow_iframe",
22267
+ skipInterstitial: "skip_interstitial",
22268
+ }), T.Http({
22269
+ method: "PATCH",
22270
+ path: "/accounts/{account_id}/access/apps/{appId}/settings",
22271
+ }));
22272
+ export const PatchAccessApplicationSettingForZoneRequest =
22273
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21913
22274
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
21914
- allowIframe: Schema.optional(Schema.Boolean),
21915
- skipInterstitial: Schema.optional(Schema.Boolean),
22275
+ ...PatchAccessApplicationSettingBaseFields,
21916
22276
  }).pipe(Schema.encodeKeys({
21917
22277
  allowIframe: "allow_iframe",
21918
22278
  skipInterstitial: "skip_interstitial",
21919
22279
  }), T.Http({
21920
22280
  method: "PATCH",
21921
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/settings",
22281
+ path: "/zones/{zone_id}/access/apps/{appId}/settings",
21922
22282
  }));
21923
22283
  export const PatchAccessApplicationSettingResponse =
21924
22284
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21930,15 +22290,37 @@ export const PatchAccessApplicationSettingResponse =
21930
22290
  skipInterstitial: "skip_interstitial",
21931
22291
  }))
21932
22292
  .pipe(T.ResponsePath("result"));
21933
- export const patchAccessApplicationSetting = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21934
- input: PatchAccessApplicationSettingRequest,
22293
+ export const patchAccessApplicationSettingForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22294
+ input: PatchAccessApplicationSettingForAccountRequest,
22295
+ output: PatchAccessApplicationSettingResponse,
22296
+ errors: [],
22297
+ }));
22298
+ export const patchAccessApplicationSettingForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22299
+ input: PatchAccessApplicationSettingForZoneRequest,
21935
22300
  output: PatchAccessApplicationSettingResponse,
21936
22301
  errors: [],
21937
22302
  }));
21938
- export const ListAccessApplicationUserPolicyChecksRequest =
21939
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
22303
+ // =============================================================================
22304
+ // AccessApplicationUserPolicyCheck
22305
+ // =============================================================================
22306
+ const ListAccessApplicationUserPolicyChecksBaseFields = {
22307
+ appId: Schema.String.pipe(T.HttpPath("appId")),
22308
+ };
22309
+ export const ListAccessApplicationUserPolicyChecksForAccountRequest =
22310
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22311
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22312
+ ...ListAccessApplicationUserPolicyChecksBaseFields,
22313
+ }).pipe(T.Http({
22314
+ method: "GET",
22315
+ path: "/accounts/{account_id}/access/apps/{appId}/user_policy_checks",
22316
+ }));
22317
+ export const ListAccessApplicationUserPolicyChecksForZoneRequest =
22318
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22319
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22320
+ ...ListAccessApplicationUserPolicyChecksBaseFields,
22321
+ }).pipe(T.Http({
21940
22322
  method: "GET",
21941
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/user_policy_checks",
22323
+ path: "/zones/{zone_id}/access/apps/{appId}/user_policy_checks",
21942
22324
  }));
21943
22325
  export const ListAccessApplicationUserPolicyChecksResponse =
21944
22326
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21999,8 +22381,13 @@ export const ListAccessApplicationUserPolicyChecksResponse =
21999
22381
  userIdentity: "user_identity",
22000
22382
  }))
22001
22383
  .pipe(T.ResponsePath("result"));
22002
- export const listAccessApplicationUserPolicyChecks = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22003
- input: ListAccessApplicationUserPolicyChecksRequest,
22384
+ export const listAccessApplicationUserPolicyChecksForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22385
+ input: ListAccessApplicationUserPolicyChecksForAccountRequest,
22386
+ output: ListAccessApplicationUserPolicyChecksResponse,
22387
+ errors: [],
22388
+ }));
22389
+ export const listAccessApplicationUserPolicyChecksForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22390
+ input: ListAccessApplicationUserPolicyChecksForZoneRequest,
22004
22391
  output: ListAccessApplicationUserPolicyChecksResponse,
22005
22392
  errors: [],
22006
22393
  }));
@@ -22139,12 +22526,27 @@ export const deleteAccessBookmark = /*@__PURE__*/ /*#__PURE__*/ API.make(() => (
22139
22526
  output: DeleteAccessBookmarkResponse,
22140
22527
  errors: [],
22141
22528
  }));
22142
- export const GetAccessCertificateRequest =
22143
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22529
+ // =============================================================================
22530
+ // AccessCertificate
22531
+ // =============================================================================
22532
+ const GetAccessCertificateBaseFields = {
22144
22533
  certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
22534
+ };
22535
+ export const GetAccessCertificateForAccountRequest =
22536
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22537
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22538
+ ...GetAccessCertificateBaseFields,
22145
22539
  }).pipe(T.Http({
22146
22540
  method: "GET",
22147
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/{certificateId}",
22541
+ path: "/accounts/{account_id}/access/certificates/{certificateId}",
22542
+ }));
22543
+ export const GetAccessCertificateForZoneRequest =
22544
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22545
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22546
+ ...GetAccessCertificateBaseFields,
22547
+ }).pipe(T.Http({
22548
+ method: "GET",
22549
+ path: "/zones/{zone_id}/access/certificates/{certificateId}",
22148
22550
  }));
22149
22551
  export const GetAccessCertificateResponse =
22150
22552
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22162,16 +22564,30 @@ export const GetAccessCertificateResponse =
22162
22564
  name: "name",
22163
22565
  }))
22164
22566
  .pipe(T.ResponsePath("result"));
22165
- export const getAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22166
- input: GetAccessCertificateRequest,
22567
+ export const getAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22568
+ input: GetAccessCertificateForAccountRequest,
22569
+ output: GetAccessCertificateResponse,
22570
+ errors: [],
22571
+ }));
22572
+ export const getAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22573
+ input: GetAccessCertificateForZoneRequest,
22167
22574
  output: GetAccessCertificateResponse,
22168
22575
  errors: [],
22169
22576
  }));
22170
- export const ListAccessCertificatesRequest =
22171
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
22577
+ const ListAccessCertificatesBaseFields = {};
22578
+ export const ListAccessCertificatesForAccountRequest =
22579
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22580
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22581
+ ...ListAccessCertificatesBaseFields,
22582
+ }).pipe(T.Http({
22172
22583
  method: "GET",
22173
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates",
22584
+ path: "/accounts/{account_id}/access/certificates",
22174
22585
  }));
22586
+ export const ListAccessCertificatesForZoneRequest =
22587
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22588
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22589
+ ...ListAccessCertificatesBaseFields,
22590
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/certificates" }));
22175
22591
  export const ListAccessCertificatesResponse =
22176
22592
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22177
22593
  result: Schema.Array(Schema.Struct({
@@ -22187,20 +22603,23 @@ export const ListAccessCertificatesResponse =
22187
22603
  fingerprint: "fingerprint",
22188
22604
  name: "name",
22189
22605
  }))),
22190
- resultInfo: Schema.Struct({
22191
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22192
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22193
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22194
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22195
- }).pipe(Schema.encodeKeys({
22196
- count: "count",
22197
- page: "page",
22198
- perPage: "per_page",
22199
- totalCount: "total_count",
22200
- })),
22606
+ resultInfo: Schema.optional(Schema.Union([
22607
+ Schema.Struct({
22608
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22609
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22610
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22611
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22612
+ }).pipe(Schema.encodeKeys({
22613
+ count: "count",
22614
+ page: "page",
22615
+ perPage: "per_page",
22616
+ totalCount: "total_count",
22617
+ })),
22618
+ Schema.Null,
22619
+ ])),
22201
22620
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
22202
- export const listAccessCertificates = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22203
- input: ListAccessCertificatesRequest,
22621
+ export const listAccessCertificatesForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22622
+ input: ListAccessCertificatesForAccountRequest,
22204
22623
  output: ListAccessCertificatesResponse,
22205
22624
  errors: [],
22206
22625
  pagination: {
@@ -22211,21 +22630,44 @@ export const listAccessCertificates = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
22211
22630
  pageSize: "perPage",
22212
22631
  },
22213
22632
  }));
22214
- export const CreateAccessCertificateRequest =
22215
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22216
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
22217
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22633
+ export const listAccessCertificatesForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22634
+ input: ListAccessCertificatesForZoneRequest,
22635
+ output: ListAccessCertificatesResponse,
22636
+ errors: [],
22637
+ pagination: {
22638
+ mode: "page",
22639
+ inputToken: "page",
22640
+ outputToken: "resultInfo.page",
22641
+ items: "result",
22642
+ pageSize: "perPage",
22643
+ },
22644
+ }));
22645
+ const CreateAccessCertificateBaseFields = {
22218
22646
  certificate: Schema.String,
22219
22647
  name: Schema.String,
22220
22648
  associatedHostnames: Schema.optional(Schema.Array(Schema.String)),
22649
+ };
22650
+ export const CreateAccessCertificateForAccountRequest =
22651
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22652
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22653
+ ...CreateAccessCertificateBaseFields,
22221
22654
  }).pipe(Schema.encodeKeys({
22222
22655
  certificate: "certificate",
22223
22656
  name: "name",
22224
22657
  associatedHostnames: "associated_hostnames",
22225
22658
  }), T.Http({
22226
22659
  method: "POST",
22227
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates",
22660
+ path: "/accounts/{account_id}/access/certificates",
22228
22661
  }));
22662
+ export const CreateAccessCertificateForZoneRequest =
22663
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22664
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22665
+ ...CreateAccessCertificateBaseFields,
22666
+ }).pipe(Schema.encodeKeys({
22667
+ certificate: "certificate",
22668
+ name: "name",
22669
+ associatedHostnames: "associated_hostnames",
22670
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/access/certificates" }));
22229
22671
  export const CreateAccessCertificateResponse =
22230
22672
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22231
22673
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -22242,24 +22684,42 @@ export const CreateAccessCertificateResponse =
22242
22684
  name: "name",
22243
22685
  }))
22244
22686
  .pipe(T.ResponsePath("result"));
22245
- export const createAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22246
- input: CreateAccessCertificateRequest,
22687
+ export const createAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22688
+ input: CreateAccessCertificateForAccountRequest,
22247
22689
  output: CreateAccessCertificateResponse,
22248
22690
  errors: [],
22249
22691
  }));
22250
- export const UpdateAccessCertificateRequest =
22251
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22692
+ export const createAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22693
+ input: CreateAccessCertificateForZoneRequest,
22694
+ output: CreateAccessCertificateResponse,
22695
+ errors: [],
22696
+ }));
22697
+ const UpdateAccessCertificateBaseFields = {
22252
22698
  certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
22253
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
22254
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22255
22699
  associatedHostnames: Schema.Array(Schema.String),
22256
22700
  name: Schema.optional(Schema.String),
22701
+ };
22702
+ export const UpdateAccessCertificateForAccountRequest =
22703
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22704
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22705
+ ...UpdateAccessCertificateBaseFields,
22706
+ }).pipe(Schema.encodeKeys({
22707
+ associatedHostnames: "associated_hostnames",
22708
+ name: "name",
22709
+ }), T.Http({
22710
+ method: "PUT",
22711
+ path: "/accounts/{account_id}/access/certificates/{certificateId}",
22712
+ }));
22713
+ export const UpdateAccessCertificateForZoneRequest =
22714
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22715
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22716
+ ...UpdateAccessCertificateBaseFields,
22257
22717
  }).pipe(Schema.encodeKeys({
22258
22718
  associatedHostnames: "associated_hostnames",
22259
22719
  name: "name",
22260
22720
  }), T.Http({
22261
22721
  method: "PUT",
22262
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/{certificateId}",
22722
+ path: "/zones/{zone_id}/access/certificates/{certificateId}",
22263
22723
  }));
22264
22724
  export const UpdateAccessCertificateResponse =
22265
22725
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22277,31 +22737,68 @@ export const UpdateAccessCertificateResponse =
22277
22737
  name: "name",
22278
22738
  }))
22279
22739
  .pipe(T.ResponsePath("result"));
22280
- export const updateAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22281
- input: UpdateAccessCertificateRequest,
22740
+ export const updateAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22741
+ input: UpdateAccessCertificateForAccountRequest,
22282
22742
  output: UpdateAccessCertificateResponse,
22283
22743
  errors: [],
22284
22744
  }));
22285
- export const DeleteAccessCertificateRequest =
22286
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22745
+ export const updateAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22746
+ input: UpdateAccessCertificateForZoneRequest,
22747
+ output: UpdateAccessCertificateResponse,
22748
+ errors: [],
22749
+ }));
22750
+ const DeleteAccessCertificateBaseFields = {
22287
22751
  certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
22752
+ };
22753
+ export const DeleteAccessCertificateForAccountRequest =
22754
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22755
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22756
+ ...DeleteAccessCertificateBaseFields,
22757
+ }).pipe(T.Http({
22758
+ method: "DELETE",
22759
+ path: "/accounts/{account_id}/access/certificates/{certificateId}",
22760
+ }));
22761
+ export const DeleteAccessCertificateForZoneRequest =
22762
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22763
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22764
+ ...DeleteAccessCertificateBaseFields,
22288
22765
  }).pipe(T.Http({
22289
22766
  method: "DELETE",
22290
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/{certificateId}",
22767
+ path: "/zones/{zone_id}/access/certificates/{certificateId}",
22291
22768
  }));
22292
22769
  export const DeleteAccessCertificateResponse =
22293
22770
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22294
22771
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22295
22772
  }).pipe(T.ResponsePath("result"));
22296
- export const deleteAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22297
- input: DeleteAccessCertificateRequest,
22773
+ export const deleteAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22774
+ input: DeleteAccessCertificateForAccountRequest,
22298
22775
  output: DeleteAccessCertificateResponse,
22299
22776
  errors: [],
22300
22777
  }));
22301
- export const GetAccessCertificateSettingRequest =
22302
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
22778
+ export const deleteAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22779
+ input: DeleteAccessCertificateForZoneRequest,
22780
+ output: DeleteAccessCertificateResponse,
22781
+ errors: [],
22782
+ }));
22783
+ // =============================================================================
22784
+ // AccessCertificateSetting
22785
+ // =============================================================================
22786
+ const GetAccessCertificateSettingBaseFields = {};
22787
+ export const GetAccessCertificateSettingForAccountRequest =
22788
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22789
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22790
+ ...GetAccessCertificateSettingBaseFields,
22791
+ }).pipe(T.Http({
22303
22792
  method: "GET",
22304
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/settings",
22793
+ path: "/accounts/{account_id}/access/certificates/settings",
22794
+ }));
22795
+ export const GetAccessCertificateSettingForZoneRequest =
22796
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22797
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22798
+ ...GetAccessCertificateSettingBaseFields,
22799
+ }).pipe(T.Http({
22800
+ method: "GET",
22801
+ path: "/zones/{zone_id}/access/certificates/settings",
22305
22802
  }));
22306
22803
  export const GetAccessCertificateSettingResponse =
22307
22804
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22315,8 +22812,8 @@ export const GetAccessCertificateSettingResponse =
22315
22812
  hostname: "hostname",
22316
22813
  }))),
22317
22814
  });
22318
- export const getAccessCertificateSetting = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22319
- input: GetAccessCertificateSettingRequest,
22815
+ export const getAccessCertificateSettingForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22816
+ input: GetAccessCertificateSettingForAccountRequest,
22320
22817
  output: GetAccessCertificateSettingResponse,
22321
22818
  errors: [],
22322
22819
  pagination: {
@@ -22324,10 +22821,16 @@ export const getAccessCertificateSetting = /*@__PURE__*/ /*#__PURE__*/ API.makeP
22324
22821
  items: "result",
22325
22822
  },
22326
22823
  }));
22327
- export const PutAccessCertificateSettingRequest =
22328
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22329
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
22330
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22824
+ export const getAccessCertificateSettingForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22825
+ input: GetAccessCertificateSettingForZoneRequest,
22826
+ output: GetAccessCertificateSettingResponse,
22827
+ errors: [],
22828
+ pagination: {
22829
+ mode: "single",
22830
+ items: "result",
22831
+ },
22832
+ }));
22833
+ const PutAccessCertificateSettingBaseFields = {
22331
22834
  settings: Schema.Array(Schema.Struct({
22332
22835
  chinaNetwork: Schema.Boolean,
22333
22836
  clientCertificateForwarding: Schema.Boolean,
@@ -22337,9 +22840,22 @@ export const PutAccessCertificateSettingRequest =
22337
22840
  clientCertificateForwarding: "client_certificate_forwarding",
22338
22841
  hostname: "hostname",
22339
22842
  }))),
22843
+ };
22844
+ export const PutAccessCertificateSettingForAccountRequest =
22845
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22846
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22847
+ ...PutAccessCertificateSettingBaseFields,
22848
+ }).pipe(T.Http({
22849
+ method: "PUT",
22850
+ path: "/accounts/{account_id}/access/certificates/settings",
22851
+ }));
22852
+ export const PutAccessCertificateSettingForZoneRequest =
22853
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22854
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22855
+ ...PutAccessCertificateSettingBaseFields,
22340
22856
  }).pipe(T.Http({
22341
22857
  method: "PUT",
22342
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/settings",
22858
+ path: "/zones/{zone_id}/access/certificates/settings",
22343
22859
  }));
22344
22860
  export const PutAccessCertificateSettingResponse =
22345
22861
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22353,8 +22869,17 @@ export const PutAccessCertificateSettingResponse =
22353
22869
  hostname: "hostname",
22354
22870
  }))),
22355
22871
  });
22356
- export const putAccessCertificateSetting = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22357
- input: PutAccessCertificateSettingRequest,
22872
+ export const putAccessCertificateSettingForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22873
+ input: PutAccessCertificateSettingForAccountRequest,
22874
+ output: PutAccessCertificateSettingResponse,
22875
+ errors: [],
22876
+ pagination: {
22877
+ mode: "single",
22878
+ items: "result",
22879
+ },
22880
+ }));
22881
+ export const putAccessCertificateSettingForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22882
+ input: PutAccessCertificateSettingForZoneRequest,
22358
22883
  output: PutAccessCertificateSettingResponse,
22359
22884
  errors: [],
22360
22885
  pagination: {
@@ -22405,17 +22930,20 @@ export const ListAccessCustomPagesResponse =
22405
22930
  type: Schema.Literals(["identity_denied", "forbidden"]),
22406
22931
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22407
22932
  })),
22408
- resultInfo: Schema.Struct({
22409
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22410
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22411
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22412
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22413
- }).pipe(Schema.encodeKeys({
22414
- count: "count",
22415
- page: "page",
22416
- perPage: "per_page",
22417
- totalCount: "total_count",
22418
- })),
22933
+ resultInfo: Schema.optional(Schema.Union([
22934
+ Schema.Struct({
22935
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22936
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22937
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22938
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
22939
+ }).pipe(Schema.encodeKeys({
22940
+ count: "count",
22941
+ page: "page",
22942
+ perPage: "per_page",
22943
+ totalCount: "total_count",
22944
+ })),
22945
+ Schema.Null,
22946
+ ])),
22419
22947
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
22420
22948
  export const listAccessCustomPages = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22421
22949
  input: ListAccessCustomPagesRequest,
@@ -22553,12 +23081,25 @@ export const deleteAccessGatewayCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() =>
22553
23081
  output: DeleteAccessGatewayCaResponse,
22554
23082
  errors: [],
22555
23083
  }));
22556
- export const GetAccessGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23084
+ // =============================================================================
23085
+ // AccessGroup
23086
+ // =============================================================================
23087
+ const GetAccessGroupBaseFields = {
22557
23088
  groupId: Schema.String.pipe(T.HttpPath("groupId")),
23089
+ };
23090
+ export const GetAccessGroupForAccountRequest =
23091
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23092
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
23093
+ ...GetAccessGroupBaseFields,
22558
23094
  }).pipe(T.Http({
22559
23095
  method: "GET",
22560
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups/{groupId}",
23096
+ path: "/accounts/{account_id}/access/groups/{groupId}",
22561
23097
  }));
23098
+ export const GetAccessGroupForZoneRequest =
23099
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23100
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
23101
+ ...GetAccessGroupBaseFields,
23102
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/groups/{groupId}" }));
22562
23103
  export const GetAccessGroupResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22563
23104
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22564
23105
  exclude: Schema.optional(Schema.Union([
@@ -23216,16 +23757,27 @@ export const GetAccessGroupResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
23216
23757
  require: "require",
23217
23758
  }))
23218
23759
  .pipe(T.ResponsePath("result"));
23219
- export const getAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23220
- input: GetAccessGroupRequest,
23760
+ export const getAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23761
+ input: GetAccessGroupForAccountRequest,
23221
23762
  output: GetAccessGroupResponse,
23222
23763
  errors: [],
23223
23764
  }));
23224
- export const ListAccessGroupsRequest =
23225
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
23226
- method: "GET",
23227
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups",
23765
+ export const getAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23766
+ input: GetAccessGroupForZoneRequest,
23767
+ output: GetAccessGroupResponse,
23768
+ errors: [],
23228
23769
  }));
23770
+ const ListAccessGroupsBaseFields = {};
23771
+ export const ListAccessGroupsForAccountRequest =
23772
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23773
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
23774
+ ...ListAccessGroupsBaseFields,
23775
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/access/groups" }));
23776
+ export const ListAccessGroupsForZoneRequest =
23777
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23778
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
23779
+ ...ListAccessGroupsBaseFields,
23780
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/groups" }));
23229
23781
  export const ListAccessGroupsResponse =
23230
23782
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23231
23783
  result: Schema.Array(Schema.Struct({
@@ -23899,20 +24451,23 @@ export const ListAccessGroupsResponse =
23899
24451
  name: "name",
23900
24452
  require: "require",
23901
24453
  }))),
23902
- resultInfo: Schema.Struct({
23903
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
23904
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
23905
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
23906
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
23907
- }).pipe(Schema.encodeKeys({
23908
- count: "count",
23909
- page: "page",
23910
- perPage: "per_page",
23911
- totalCount: "total_count",
23912
- })),
24454
+ resultInfo: Schema.optional(Schema.Union([
24455
+ Schema.Struct({
24456
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
24457
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
24458
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
24459
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
24460
+ }).pipe(Schema.encodeKeys({
24461
+ count: "count",
24462
+ page: "page",
24463
+ perPage: "per_page",
24464
+ totalCount: "total_count",
24465
+ })),
24466
+ Schema.Null,
24467
+ ])),
23913
24468
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
23914
- export const listAccessGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
23915
- input: ListAccessGroupsRequest,
24469
+ export const listAccessGroupsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
24470
+ input: ListAccessGroupsForAccountRequest,
23916
24471
  output: ListAccessGroupsResponse,
23917
24472
  errors: [],
23918
24473
  pagination: {
@@ -23923,10 +24478,19 @@ export const listAccessGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
23923
24478
  pageSize: "perPage",
23924
24479
  },
23925
24480
  }));
23926
- export const CreateAccessGroupRequest =
23927
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23928
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
23929
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
24481
+ export const listAccessGroupsForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
24482
+ input: ListAccessGroupsForZoneRequest,
24483
+ output: ListAccessGroupsResponse,
24484
+ errors: [],
24485
+ pagination: {
24486
+ mode: "page",
24487
+ inputToken: "page",
24488
+ outputToken: "resultInfo.page",
24489
+ items: "result",
24490
+ pageSize: "perPage",
24491
+ },
24492
+ }));
24493
+ const CreateAccessGroupBaseFields = {
23930
24494
  include: Schema.Array(Schema.Union([
23931
24495
  Schema.Struct({
23932
24496
  group: Schema.Struct({
@@ -23935,9 +24499,7 @@ export const CreateAccessGroupRequest =
23935
24499
  }),
23936
24500
  Schema.Struct({
23937
24501
  anyValidServiceToken: Schema.Unknown,
23938
- }).pipe(Schema.encodeKeys({
23939
- anyValidServiceToken: "any_valid_service_token",
23940
- })),
24502
+ }).pipe(Schema.encodeKeys({ anyValidServiceToken: "any_valid_service_token" })),
23941
24503
  Schema.Struct({
23942
24504
  authContext: Schema.Struct({
23943
24505
  id: Schema.String,
@@ -24403,16 +24965,29 @@ export const CreateAccessGroupRequest =
24403
24965
  }).pipe(Schema.encodeKeys({ appUid: "app_uid" })),
24404
24966
  }).pipe(Schema.encodeKeys({ linkedAppToken: "linked_app_token" })),
24405
24967
  ]))),
24968
+ };
24969
+ export const CreateAccessGroupForAccountRequest =
24970
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24971
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
24972
+ ...CreateAccessGroupBaseFields,
24406
24973
  }).pipe(Schema.encodeKeys({
24407
24974
  include: "include",
24408
24975
  name: "name",
24409
24976
  exclude: "exclude",
24410
24977
  isDefault: "is_default",
24411
24978
  require: "require",
24412
- }), T.Http({
24413
- method: "POST",
24414
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups",
24415
- }));
24979
+ }), T.Http({ method: "POST", path: "/accounts/{account_id}/access/groups" }));
24980
+ export const CreateAccessGroupForZoneRequest =
24981
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24982
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
24983
+ ...CreateAccessGroupBaseFields,
24984
+ }).pipe(Schema.encodeKeys({
24985
+ include: "include",
24986
+ name: "name",
24987
+ exclude: "exclude",
24988
+ isDefault: "is_default",
24989
+ require: "require",
24990
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/access/groups" }));
24416
24991
  export const CreateAccessGroupResponse =
24417
24992
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24418
24993
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -25071,16 +25646,18 @@ export const CreateAccessGroupResponse =
25071
25646
  require: "require",
25072
25647
  }))
25073
25648
  .pipe(T.ResponsePath("result"));
25074
- export const createAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25075
- input: CreateAccessGroupRequest,
25649
+ export const createAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25650
+ input: CreateAccessGroupForAccountRequest,
25076
25651
  output: CreateAccessGroupResponse,
25077
25652
  errors: [],
25078
25653
  }));
25079
- export const UpdateAccessGroupRequest =
25080
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
25654
+ export const createAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25655
+ input: CreateAccessGroupForZoneRequest,
25656
+ output: CreateAccessGroupResponse,
25657
+ errors: [],
25658
+ }));
25659
+ const UpdateAccessGroupBaseFields = {
25081
25660
  groupId: Schema.String.pipe(T.HttpPath("groupId")),
25082
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
25083
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
25084
25661
  include: Schema.Array(Schema.Union([
25085
25662
  Schema.Struct({
25086
25663
  group: Schema.Struct({
@@ -25089,9 +25666,7 @@ export const UpdateAccessGroupRequest =
25089
25666
  }),
25090
25667
  Schema.Struct({
25091
25668
  anyValidServiceToken: Schema.Unknown,
25092
- }).pipe(Schema.encodeKeys({
25093
- anyValidServiceToken: "any_valid_service_token",
25094
- })),
25669
+ }).pipe(Schema.encodeKeys({ anyValidServiceToken: "any_valid_service_token" })),
25095
25670
  Schema.Struct({
25096
25671
  authContext: Schema.Struct({
25097
25672
  id: Schema.String,
@@ -25557,6 +26132,11 @@ export const UpdateAccessGroupRequest =
25557
26132
  }).pipe(Schema.encodeKeys({ appUid: "app_uid" })),
25558
26133
  }).pipe(Schema.encodeKeys({ linkedAppToken: "linked_app_token" })),
25559
26134
  ]))),
26135
+ };
26136
+ export const UpdateAccessGroupForAccountRequest =
26137
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26138
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
26139
+ ...UpdateAccessGroupBaseFields,
25560
26140
  }).pipe(Schema.encodeKeys({
25561
26141
  include: "include",
25562
26142
  name: "name",
@@ -25565,8 +26145,19 @@ export const UpdateAccessGroupRequest =
25565
26145
  require: "require",
25566
26146
  }), T.Http({
25567
26147
  method: "PUT",
25568
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups/{groupId}",
26148
+ path: "/accounts/{account_id}/access/groups/{groupId}",
25569
26149
  }));
26150
+ export const UpdateAccessGroupForZoneRequest =
26151
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26152
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
26153
+ ...UpdateAccessGroupBaseFields,
26154
+ }).pipe(Schema.encodeKeys({
26155
+ include: "include",
26156
+ name: "name",
26157
+ exclude: "exclude",
26158
+ isDefault: "is_default",
26159
+ require: "require",
26160
+ }), T.Http({ method: "PUT", path: "/zones/{zone_id}/access/groups/{groupId}" }));
25570
26161
  export const UpdateAccessGroupResponse =
25571
26162
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
25572
26163
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -26225,24 +26816,46 @@ export const UpdateAccessGroupResponse =
26225
26816
  require: "require",
26226
26817
  }))
26227
26818
  .pipe(T.ResponsePath("result"));
26228
- export const updateAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26229
- input: UpdateAccessGroupRequest,
26819
+ export const updateAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26820
+ input: UpdateAccessGroupForAccountRequest,
26230
26821
  output: UpdateAccessGroupResponse,
26231
26822
  errors: [],
26232
26823
  }));
26233
- export const DeleteAccessGroupRequest =
26234
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26824
+ export const updateAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26825
+ input: UpdateAccessGroupForZoneRequest,
26826
+ output: UpdateAccessGroupResponse,
26827
+ errors: [],
26828
+ }));
26829
+ const DeleteAccessGroupBaseFields = {
26235
26830
  groupId: Schema.String.pipe(T.HttpPath("groupId")),
26831
+ };
26832
+ export const DeleteAccessGroupForAccountRequest =
26833
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26834
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
26835
+ ...DeleteAccessGroupBaseFields,
26236
26836
  }).pipe(T.Http({
26237
26837
  method: "DELETE",
26238
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups/{groupId}",
26838
+ path: "/accounts/{account_id}/access/groups/{groupId}",
26839
+ }));
26840
+ export const DeleteAccessGroupForZoneRequest =
26841
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26842
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
26843
+ ...DeleteAccessGroupBaseFields,
26844
+ }).pipe(T.Http({
26845
+ method: "DELETE",
26846
+ path: "/zones/{zone_id}/access/groups/{groupId}",
26239
26847
  }));
26240
26848
  export const DeleteAccessGroupResponse =
26241
26849
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26242
26850
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
26243
26851
  }).pipe(T.ResponsePath("result"));
26244
- export const deleteAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26245
- input: DeleteAccessGroupRequest,
26852
+ export const deleteAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26853
+ input: DeleteAccessGroupForAccountRequest,
26854
+ output: DeleteAccessGroupResponse,
26855
+ errors: [],
26856
+ }));
26857
+ export const deleteAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26858
+ input: DeleteAccessGroupForZoneRequest,
26246
26859
  output: DeleteAccessGroupResponse,
26247
26860
  errors: [],
26248
26861
  }));
@@ -26359,17 +26972,20 @@ export const ListAccessInfrastructureTargetsResponse =
26359
26972
  ip: "ip",
26360
26973
  modifiedAt: "modified_at",
26361
26974
  }))),
26362
- resultInfo: Schema.Struct({
26363
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26364
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26365
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26366
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26367
- }).pipe(Schema.encodeKeys({
26368
- count: "count",
26369
- page: "page",
26370
- perPage: "per_page",
26371
- totalCount: "total_count",
26372
- })),
26975
+ resultInfo: Schema.optional(Schema.Union([
26976
+ Schema.Struct({
26977
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26978
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26979
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26980
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26981
+ }).pipe(Schema.encodeKeys({
26982
+ count: "count",
26983
+ page: "page",
26984
+ perPage: "per_page",
26985
+ totalCount: "total_count",
26986
+ })),
26987
+ Schema.Null,
26988
+ ])),
26373
26989
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
26374
26990
  export const listAccessInfrastructureTargets = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
26375
26991
  input: ListAccessInfrastructureTargetsRequest,
@@ -26695,17 +27311,20 @@ export const ListAccessLogScimUpdatesResponse =
26695
27311
  resourceUserEmail: "resource_user_email",
26696
27312
  status: "status",
26697
27313
  }))),
26698
- resultInfo: Schema.Struct({
26699
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26700
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26701
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26702
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
26703
- }).pipe(Schema.encodeKeys({
26704
- count: "count",
26705
- page: "page",
26706
- perPage: "per_page",
26707
- totalCount: "total_count",
26708
- })),
27314
+ resultInfo: Schema.optional(Schema.Union([
27315
+ Schema.Struct({
27316
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27317
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27318
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27319
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27320
+ }).pipe(Schema.encodeKeys({
27321
+ count: "count",
27322
+ page: "page",
27323
+ perPage: "per_page",
27324
+ totalCount: "total_count",
27325
+ })),
27326
+ Schema.Null,
27327
+ ])),
26709
27328
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
26710
27329
  export const listAccessLogScimUpdates = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
26711
27330
  input: ListAccessLogScimUpdatesRequest,
@@ -27812,17 +28431,20 @@ export const ListAccessPoliciesResponse =
27812
28431
  sessionDuration: "session_duration",
27813
28432
  updatedAt: "updated_at",
27814
28433
  }))),
27815
- resultInfo: Schema.Struct({
27816
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27817
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27818
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27819
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
27820
- }).pipe(Schema.encodeKeys({
27821
- count: "count",
27822
- page: "page",
27823
- perPage: "per_page",
27824
- totalCount: "total_count",
27825
- })),
28434
+ resultInfo: Schema.optional(Schema.Union([
28435
+ Schema.Struct({
28436
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
28437
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
28438
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
28439
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
28440
+ }).pipe(Schema.encodeKeys({
28441
+ count: "count",
28442
+ page: "page",
28443
+ perPage: "per_page",
28444
+ totalCount: "total_count",
28445
+ })),
28446
+ Schema.Null,
28447
+ ])),
27826
28448
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
27827
28449
  export const listAccessPolicies = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
27828
28450
  input: ListAccessPoliciesRequest,
@@ -29943,12 +30565,27 @@ export const deleteAccessPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
29943
30565
  output: DeleteAccessPolicyResponse,
29944
30566
  errors: [],
29945
30567
  }));
29946
- export const GetAccessServiceTokenRequest =
29947
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30568
+ // =============================================================================
30569
+ // AccessServiceToken
30570
+ // =============================================================================
30571
+ const GetAccessServiceTokenBaseFields = {
29948
30572
  serviceTokenId: Schema.String.pipe(T.HttpPath("serviceTokenId")),
30573
+ };
30574
+ export const GetAccessServiceTokenForAccountRequest =
30575
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30576
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
30577
+ ...GetAccessServiceTokenBaseFields,
30578
+ }).pipe(T.Http({
30579
+ method: "GET",
30580
+ path: "/accounts/{account_id}/access/service_tokens/{serviceTokenId}",
30581
+ }));
30582
+ export const GetAccessServiceTokenForZoneRequest =
30583
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30584
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30585
+ ...GetAccessServiceTokenBaseFields,
29949
30586
  }).pipe(T.Http({
29950
30587
  method: "GET",
29951
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens/{serviceTokenId}",
30588
+ path: "/zones/{zone_id}/access/service_tokens/{serviceTokenId}",
29952
30589
  }));
29953
30590
  export const GetAccessServiceTokenResponse =
29954
30591
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -29966,16 +30603,30 @@ export const GetAccessServiceTokenResponse =
29966
30603
  name: "name",
29967
30604
  }))
29968
30605
  .pipe(T.ResponsePath("result"));
29969
- export const getAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
29970
- input: GetAccessServiceTokenRequest,
30606
+ export const getAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30607
+ input: GetAccessServiceTokenForAccountRequest,
30608
+ output: GetAccessServiceTokenResponse,
30609
+ errors: [],
30610
+ }));
30611
+ export const getAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30612
+ input: GetAccessServiceTokenForZoneRequest,
29971
30613
  output: GetAccessServiceTokenResponse,
29972
30614
  errors: [],
29973
30615
  }));
29974
- export const ListAccessServiceTokensRequest =
29975
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
30616
+ const ListAccessServiceTokensBaseFields = {};
30617
+ export const ListAccessServiceTokensForAccountRequest =
30618
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30619
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
30620
+ ...ListAccessServiceTokensBaseFields,
30621
+ }).pipe(T.Http({
29976
30622
  method: "GET",
29977
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens",
30623
+ path: "/accounts/{account_id}/access/service_tokens",
29978
30624
  }));
30625
+ export const ListAccessServiceTokensForZoneRequest =
30626
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30627
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30628
+ ...ListAccessServiceTokensBaseFields,
30629
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/service_tokens" }));
29979
30630
  export const ListAccessServiceTokensResponse =
29980
30631
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
29981
30632
  result: Schema.Array(Schema.Struct({
@@ -29991,20 +30642,23 @@ export const ListAccessServiceTokensResponse =
29991
30642
  expiresAt: "expires_at",
29992
30643
  name: "name",
29993
30644
  }))),
29994
- resultInfo: Schema.Struct({
29995
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
29996
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
29997
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
29998
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
29999
- }).pipe(Schema.encodeKeys({
30000
- count: "count",
30001
- page: "page",
30002
- perPage: "per_page",
30003
- totalCount: "total_count",
30004
- })),
30645
+ resultInfo: Schema.optional(Schema.Union([
30646
+ Schema.Struct({
30647
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30648
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30649
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30650
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30651
+ }).pipe(Schema.encodeKeys({
30652
+ count: "count",
30653
+ page: "page",
30654
+ perPage: "per_page",
30655
+ totalCount: "total_count",
30656
+ })),
30657
+ Schema.Null,
30658
+ ])),
30005
30659
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
30006
- export const listAccessServiceTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30007
- input: ListAccessServiceTokensRequest,
30660
+ export const listAccessServiceTokensForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30661
+ input: ListAccessServiceTokensForAccountRequest,
30008
30662
  output: ListAccessServiceTokensResponse,
30009
30663
  errors: [],
30010
30664
  pagination: {
@@ -30015,14 +30669,28 @@ export const listAccessServiceTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePagin
30015
30669
  pageSize: "perPage",
30016
30670
  },
30017
30671
  }));
30018
- export const CreateAccessServiceTokenRequest =
30019
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30020
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
30021
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30672
+ export const listAccessServiceTokensForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30673
+ input: ListAccessServiceTokensForZoneRequest,
30674
+ output: ListAccessServiceTokensResponse,
30675
+ errors: [],
30676
+ pagination: {
30677
+ mode: "page",
30678
+ inputToken: "page",
30679
+ outputToken: "resultInfo.page",
30680
+ items: "result",
30681
+ pageSize: "perPage",
30682
+ },
30683
+ }));
30684
+ const CreateAccessServiceTokenBaseFields = {
30022
30685
  name: Schema.String,
30023
30686
  clientSecretVersion: Schema.optional(Schema.Number),
30024
30687
  duration: Schema.optional(Schema.String),
30025
30688
  previousClientSecretExpiresAt: Schema.optional(Schema.String),
30689
+ };
30690
+ export const CreateAccessServiceTokenForAccountRequest =
30691
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30692
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
30693
+ ...CreateAccessServiceTokenBaseFields,
30026
30694
  }).pipe(Schema.encodeKeys({
30027
30695
  name: "name",
30028
30696
  clientSecretVersion: "client_secret_version",
@@ -30030,8 +30698,18 @@ export const CreateAccessServiceTokenRequest =
30030
30698
  previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30031
30699
  }), T.Http({
30032
30700
  method: "POST",
30033
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens",
30701
+ path: "/accounts/{account_id}/access/service_tokens",
30034
30702
  }));
30703
+ export const CreateAccessServiceTokenForZoneRequest =
30704
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30705
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30706
+ ...CreateAccessServiceTokenBaseFields,
30707
+ }).pipe(Schema.encodeKeys({
30708
+ name: "name",
30709
+ clientSecretVersion: "client_secret_version",
30710
+ duration: "duration",
30711
+ previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30712
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/access/service_tokens" }));
30035
30713
  export const CreateAccessServiceTokenResponse =
30036
30714
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30037
30715
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -30048,20 +30726,40 @@ export const CreateAccessServiceTokenResponse =
30048
30726
  name: "name",
30049
30727
  }))
30050
30728
  .pipe(T.ResponsePath("result"));
30051
- export const createAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30052
- input: CreateAccessServiceTokenRequest,
30729
+ export const createAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30730
+ input: CreateAccessServiceTokenForAccountRequest,
30053
30731
  output: CreateAccessServiceTokenResponse,
30054
30732
  errors: [],
30055
30733
  }));
30056
- export const UpdateAccessServiceTokenRequest =
30057
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30734
+ export const createAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30735
+ input: CreateAccessServiceTokenForZoneRequest,
30736
+ output: CreateAccessServiceTokenResponse,
30737
+ errors: [],
30738
+ }));
30739
+ const UpdateAccessServiceTokenBaseFields = {
30058
30740
  serviceTokenId: Schema.String.pipe(T.HttpPath("serviceTokenId")),
30059
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
30060
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30061
30741
  clientSecretVersion: Schema.optional(Schema.Number),
30062
30742
  duration: Schema.optional(Schema.String),
30063
30743
  name: Schema.optional(Schema.String),
30064
30744
  previousClientSecretExpiresAt: Schema.optional(Schema.String),
30745
+ };
30746
+ export const UpdateAccessServiceTokenForAccountRequest =
30747
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30748
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
30749
+ ...UpdateAccessServiceTokenBaseFields,
30750
+ }).pipe(Schema.encodeKeys({
30751
+ clientSecretVersion: "client_secret_version",
30752
+ duration: "duration",
30753
+ name: "name",
30754
+ previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30755
+ }), T.Http({
30756
+ method: "PUT",
30757
+ path: "/accounts/{account_id}/access/service_tokens/{serviceTokenId}",
30758
+ }));
30759
+ export const UpdateAccessServiceTokenForZoneRequest =
30760
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30761
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30762
+ ...UpdateAccessServiceTokenBaseFields,
30065
30763
  }).pipe(Schema.encodeKeys({
30066
30764
  clientSecretVersion: "client_secret_version",
30067
30765
  duration: "duration",
@@ -30069,7 +30767,7 @@ export const UpdateAccessServiceTokenRequest =
30069
30767
  previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30070
30768
  }), T.Http({
30071
30769
  method: "PUT",
30072
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens/{serviceTokenId}",
30770
+ path: "/zones/{zone_id}/access/service_tokens/{serviceTokenId}",
30073
30771
  }));
30074
30772
  export const UpdateAccessServiceTokenResponse =
30075
30773
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -30087,17 +30785,34 @@ export const UpdateAccessServiceTokenResponse =
30087
30785
  name: "name",
30088
30786
  }))
30089
30787
  .pipe(T.ResponsePath("result"));
30090
- export const updateAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30091
- input: UpdateAccessServiceTokenRequest,
30788
+ export const updateAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30789
+ input: UpdateAccessServiceTokenForAccountRequest,
30092
30790
  output: UpdateAccessServiceTokenResponse,
30093
30791
  errors: [],
30094
30792
  }));
30095
- export const DeleteAccessServiceTokenRequest =
30096
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30793
+ export const updateAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30794
+ input: UpdateAccessServiceTokenForZoneRequest,
30795
+ output: UpdateAccessServiceTokenResponse,
30796
+ errors: [],
30797
+ }));
30798
+ const DeleteAccessServiceTokenBaseFields = {
30097
30799
  serviceTokenId: Schema.String.pipe(T.HttpPath("serviceTokenId")),
30800
+ };
30801
+ export const DeleteAccessServiceTokenForAccountRequest =
30802
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30803
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
30804
+ ...DeleteAccessServiceTokenBaseFields,
30098
30805
  }).pipe(T.Http({
30099
30806
  method: "DELETE",
30100
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens/{serviceTokenId}",
30807
+ path: "/accounts/{account_id}/access/service_tokens/{serviceTokenId}",
30808
+ }));
30809
+ export const DeleteAccessServiceTokenForZoneRequest =
30810
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30811
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30812
+ ...DeleteAccessServiceTokenBaseFields,
30813
+ }).pipe(T.Http({
30814
+ method: "DELETE",
30815
+ path: "/zones/{zone_id}/access/service_tokens/{serviceTokenId}",
30101
30816
  }));
30102
30817
  export const DeleteAccessServiceTokenResponse =
30103
30818
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -30115,8 +30830,13 @@ export const DeleteAccessServiceTokenResponse =
30115
30830
  name: "name",
30116
30831
  }))
30117
30832
  .pipe(T.ResponsePath("result"));
30118
- export const deleteAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30119
- input: DeleteAccessServiceTokenRequest,
30833
+ export const deleteAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30834
+ input: DeleteAccessServiceTokenForAccountRequest,
30835
+ output: DeleteAccessServiceTokenResponse,
30836
+ errors: [],
30837
+ }));
30838
+ export const deleteAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30839
+ input: DeleteAccessServiceTokenForZoneRequest,
30120
30840
  output: DeleteAccessServiceTokenResponse,
30121
30841
  errors: [],
30122
30842
  }));
@@ -30205,17 +30925,20 @@ export const ListAccessTagsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
30205
30925
  result: Schema.Array(Schema.Struct({
30206
30926
  name: Schema.String,
30207
30927
  })),
30208
- resultInfo: Schema.Struct({
30209
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30210
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30211
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30212
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30213
- }).pipe(Schema.encodeKeys({
30214
- count: "count",
30215
- page: "page",
30216
- perPage: "per_page",
30217
- totalCount: "total_count",
30218
- })),
30928
+ resultInfo: Schema.optional(Schema.Union([
30929
+ Schema.Struct({
30930
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30931
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30932
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30933
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30934
+ }).pipe(Schema.encodeKeys({
30935
+ count: "count",
30936
+ page: "page",
30937
+ perPage: "per_page",
30938
+ totalCount: "total_count",
30939
+ })),
30940
+ Schema.Null,
30941
+ ])),
30219
30942
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
30220
30943
  export const listAccessTags = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30221
30944
  input: ListAccessTagsRequest,
@@ -30310,17 +31033,20 @@ export const ListAccessUsersResponse =
30310
31033
  uid: "uid",
30311
31034
  updatedAt: "updated_at",
30312
31035
  }))),
30313
- resultInfo: Schema.Struct({
30314
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30315
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30316
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30317
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30318
- }).pipe(Schema.encodeKeys({
30319
- count: "count",
30320
- page: "page",
30321
- perPage: "per_page",
30322
- totalCount: "total_count",
30323
- })),
31036
+ resultInfo: Schema.optional(Schema.Union([
31037
+ Schema.Struct({
31038
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
31039
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
31040
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
31041
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
31042
+ }).pipe(Schema.encodeKeys({
31043
+ count: "count",
31044
+ page: "page",
31045
+ perPage: "per_page",
31046
+ totalCount: "total_count",
31047
+ })),
31048
+ Schema.Null,
31049
+ ])),
30324
31050
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
30325
31051
  export const listAccessUsers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30326
31052
  input: ListAccessUsersRequest,
@@ -30936,15 +31662,18 @@ export const ListDeviceDevicesResponse =
30936
31662
  publicIp: "public_ip",
30937
31663
  serialNumber: "serial_number",
30938
31664
  }))),
30939
- resultInfo: Schema.Struct({
30940
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30941
- cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
30942
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
30943
- }).pipe(Schema.encodeKeys({
30944
- count: "count",
30945
- cursor: "cursor",
30946
- perPage: "per_page",
30947
- })),
31665
+ resultInfo: Schema.optional(Schema.Union([
31666
+ Schema.Struct({
31667
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
31668
+ cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
31669
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
31670
+ }).pipe(Schema.encodeKeys({
31671
+ count: "count",
31672
+ cursor: "cursor",
31673
+ perPage: "per_page",
31674
+ })),
31675
+ Schema.Null,
31676
+ ])),
30948
31677
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
30949
31678
  export const listDeviceDevices = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30950
31679
  input: ListDeviceDevicesRequest,
@@ -35422,15 +36151,18 @@ export const ListDeviceRegistrationsResponse =
35422
36151
  tunnelType: "tunnel_type",
35423
36152
  user: "user",
35424
36153
  }))),
35425
- resultInfo: Schema.Struct({
35426
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35427
- cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
35428
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35429
- }).pipe(Schema.encodeKeys({
35430
- count: "count",
35431
- cursor: "cursor",
35432
- perPage: "per_page",
35433
- })),
36154
+ resultInfo: Schema.optional(Schema.Union([
36155
+ Schema.Struct({
36156
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36157
+ cursor: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
36158
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36159
+ }).pipe(Schema.encodeKeys({
36160
+ count: "count",
36161
+ cursor: "cursor",
36162
+ perPage: "per_page",
36163
+ })),
36164
+ Schema.Null,
36165
+ ])),
35434
36166
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
35435
36167
  export const listDeviceRegistrations = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
35436
36168
  input: ListDeviceRegistrationsRequest,
@@ -35800,17 +36532,20 @@ export const ListDexCommandsResponse =
35800
36532
  Schema.Null,
35801
36533
  ])),
35802
36534
  }),
35803
- resultInfo: Schema.Struct({
35804
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35805
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35806
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35807
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35808
- }).pipe(Schema.encodeKeys({
35809
- count: "count",
35810
- page: "page",
35811
- perPage: "per_page",
35812
- totalCount: "total_count",
35813
- })),
36535
+ resultInfo: Schema.optional(Schema.Union([
36536
+ Schema.Struct({
36537
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36538
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36539
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36540
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36541
+ }).pipe(Schema.encodeKeys({
36542
+ count: "count",
36543
+ page: "page",
36544
+ perPage: "per_page",
36545
+ totalCount: "total_count",
36546
+ })),
36547
+ Schema.Null,
36548
+ ])),
35814
36549
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
35815
36550
  export const listDexCommands = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
35816
36551
  input: ListDexCommandsRequest,
@@ -35919,17 +36654,20 @@ export const ListDexCommandDevicesResponse =
35919
36654
  Schema.Null,
35920
36655
  ])),
35921
36656
  }),
35922
- resultInfo: Schema.Struct({
35923
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35924
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35925
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35926
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
35927
- }).pipe(Schema.encodeKeys({
35928
- count: "count",
35929
- page: "page",
35930
- perPage: "per_page",
35931
- totalCount: "total_count",
35932
- })),
36657
+ resultInfo: Schema.optional(Schema.Union([
36658
+ Schema.Struct({
36659
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36660
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36661
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36662
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36663
+ }).pipe(Schema.encodeKeys({
36664
+ count: "count",
36665
+ page: "page",
36666
+ perPage: "per_page",
36667
+ totalCount: "total_count",
36668
+ })),
36669
+ Schema.Null,
36670
+ ])),
35933
36671
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
35934
36672
  export const listDexCommandDevices = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
35935
36673
  input: ListDexCommandDevicesRequest,
@@ -36262,17 +37000,20 @@ export const ListDexFleetStatusDevicesResponse =
36262
37000
  switchLocked: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
36263
37001
  wifiStrengthDbm: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36264
37002
  })),
36265
- resultInfo: Schema.Struct({
36266
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36267
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36268
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36269
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36270
- }).pipe(Schema.encodeKeys({
36271
- count: "count",
36272
- page: "page",
36273
- perPage: "per_page",
36274
- totalCount: "total_count",
36275
- })),
37003
+ resultInfo: Schema.optional(Schema.Union([
37004
+ Schema.Struct({
37005
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37006
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37007
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37008
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37009
+ }).pipe(Schema.encodeKeys({
37010
+ count: "count",
37011
+ page: "page",
37012
+ perPage: "per_page",
37013
+ totalCount: "total_count",
37014
+ })),
37015
+ Schema.Null,
37016
+ ])),
36276
37017
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
36277
37018
  export const listDexFleetStatusDevices = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
36278
37019
  input: ListDexFleetStatusDevicesRequest,
@@ -36642,17 +37383,20 @@ export const ListDexTestsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
36642
37383
  Schema.Null,
36643
37384
  ])),
36644
37385
  }),
36645
- resultInfo: Schema.Struct({
36646
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36647
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36648
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36649
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
36650
- }).pipe(Schema.encodeKeys({
36651
- count: "count",
36652
- page: "page",
36653
- perPage: "per_page",
36654
- totalCount: "total_count",
36655
- })),
37386
+ resultInfo: Schema.optional(Schema.Union([
37387
+ Schema.Struct({
37388
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37389
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37390
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37391
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
37392
+ }).pipe(Schema.encodeKeys({
37393
+ count: "count",
37394
+ page: "page",
37395
+ perPage: "per_page",
37396
+ totalCount: "total_count",
37397
+ })),
37398
+ Schema.Null,
37399
+ ])),
36656
37400
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
36657
37401
  export const listDexTests = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
36658
37402
  input: ListDexTestsRequest,
@@ -48350,12 +49094,27 @@ export const deleteGatewayRule = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
48350
49094
  output: DeleteGatewayRuleResponse,
48351
49095
  errors: [],
48352
49096
  }));
48353
- export const GetIdentityProviderRequest =
48354
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49097
+ // =============================================================================
49098
+ // IdentityProvider
49099
+ // =============================================================================
49100
+ const GetIdentityProviderBaseFields = {
48355
49101
  identityProviderId: Schema.String.pipe(T.HttpPath("identityProviderId")),
49102
+ };
49103
+ export const GetIdentityProviderForAccountRequest =
49104
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49105
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
49106
+ ...GetIdentityProviderBaseFields,
49107
+ }).pipe(T.Http({
49108
+ method: "GET",
49109
+ path: "/accounts/{account_id}/access/identity_providers/{identityProviderId}",
49110
+ }));
49111
+ export const GetIdentityProviderForZoneRequest =
49112
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49113
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
49114
+ ...GetIdentityProviderBaseFields,
48356
49115
  }).pipe(T.Http({
48357
49116
  method: "GET",
48358
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers/{identityProviderId}",
49117
+ path: "/zones/{zone_id}/access/identity_providers/{identityProviderId}",
48359
49118
  }));
48360
49119
  export const GetIdentityProviderResponse =
48361
49120
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
@@ -49036,15 +49795,32 @@ export const GetIdentityProviderResponse =
49036
49795
  scimConfig: "scim_config",
49037
49796
  })),
49038
49797
  ]).pipe(T.ResponsePath("result"));
49039
- export const getIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49040
- input: GetIdentityProviderRequest,
49798
+ export const getIdentityProviderForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49799
+ input: GetIdentityProviderForAccountRequest,
49800
+ output: GetIdentityProviderResponse,
49801
+ errors: [],
49802
+ }));
49803
+ export const getIdentityProviderForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49804
+ input: GetIdentityProviderForZoneRequest,
49041
49805
  output: GetIdentityProviderResponse,
49042
49806
  errors: [],
49043
49807
  }));
49044
- export const ListIdentityProvidersRequest =
49045
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
49808
+ const ListIdentityProvidersBaseFields = {};
49809
+ export const ListIdentityProvidersForAccountRequest =
49810
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49811
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
49812
+ ...ListIdentityProvidersBaseFields,
49813
+ }).pipe(T.Http({
49814
+ method: "GET",
49815
+ path: "/accounts/{account_id}/access/identity_providers",
49816
+ }));
49817
+ export const ListIdentityProvidersForZoneRequest =
49818
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49819
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
49820
+ ...ListIdentityProvidersBaseFields,
49821
+ }).pipe(T.Http({
49046
49822
  method: "GET",
49047
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers",
49823
+ path: "/zones/{zone_id}/access/identity_providers",
49048
49824
  }));
49049
49825
  export const ListIdentityProvidersResponse =
49050
49826
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -49676,20 +50452,23 @@ export const ListIdentityProvidersResponse =
49676
50452
  scimConfig: "scim_config",
49677
50453
  })),
49678
50454
  ])),
49679
- resultInfo: Schema.Struct({
49680
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
49681
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
49682
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
49683
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
49684
- }).pipe(Schema.encodeKeys({
49685
- count: "count",
49686
- page: "page",
49687
- perPage: "per_page",
49688
- totalCount: "total_count",
49689
- })),
50455
+ resultInfo: Schema.optional(Schema.Union([
50456
+ Schema.Struct({
50457
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
50458
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
50459
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
50460
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
50461
+ }).pipe(Schema.encodeKeys({
50462
+ count: "count",
50463
+ page: "page",
50464
+ perPage: "per_page",
50465
+ totalCount: "total_count",
50466
+ })),
50467
+ Schema.Null,
50468
+ ])),
49690
50469
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
49691
- export const listIdentityProviders = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
49692
- input: ListIdentityProvidersRequest,
50470
+ export const listIdentityProvidersForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
50471
+ input: ListIdentityProvidersForAccountRequest,
49693
50472
  output: ListIdentityProvidersResponse,
49694
50473
  errors: [],
49695
50474
  pagination: {
@@ -49700,10 +50479,19 @@ export const listIdentityProviders = /*@__PURE__*/ /*#__PURE__*/ API.makePaginat
49700
50479
  pageSize: "perPage",
49701
50480
  },
49702
50481
  }));
49703
- export const CreateIdentityProviderRequest =
49704
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49705
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
49706
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
50482
+ export const listIdentityProvidersForZone = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
50483
+ input: ListIdentityProvidersForZoneRequest,
50484
+ output: ListIdentityProvidersResponse,
50485
+ errors: [],
50486
+ pagination: {
50487
+ mode: "page",
50488
+ inputToken: "page",
50489
+ outputToken: "resultInfo.page",
50490
+ items: "result",
50491
+ pageSize: "perPage",
50492
+ },
50493
+ }));
50494
+ const CreateIdentityProviderBaseFields = {
49707
50495
  config: Schema.Struct({
49708
50496
  claims: Schema.optional(Schema.Array(Schema.String)),
49709
50497
  clientId: Schema.optional(Schema.String),
@@ -49751,6 +50539,24 @@ export const CreateIdentityProviderRequest =
49751
50539
  seatDeprovision: "seat_deprovision",
49752
50540
  userDeprovision: "user_deprovision",
49753
50541
  }))),
50542
+ };
50543
+ export const CreateIdentityProviderForAccountRequest =
50544
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
50545
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
50546
+ ...CreateIdentityProviderBaseFields,
50547
+ }).pipe(Schema.encodeKeys({
50548
+ config: "config",
50549
+ name: "name",
50550
+ type: "type",
50551
+ scimConfig: "scim_config",
50552
+ }), T.Http({
50553
+ method: "POST",
50554
+ path: "/accounts/{account_id}/access/identity_providers",
50555
+ }));
50556
+ export const CreateIdentityProviderForZoneRequest =
50557
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
50558
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
50559
+ ...CreateIdentityProviderBaseFields,
49754
50560
  }).pipe(Schema.encodeKeys({
49755
50561
  config: "config",
49756
50562
  name: "name",
@@ -49758,7 +50564,7 @@ export const CreateIdentityProviderRequest =
49758
50564
  scimConfig: "scim_config",
49759
50565
  }), T.Http({
49760
50566
  method: "POST",
49761
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers",
50567
+ path: "/zones/{zone_id}/access/identity_providers",
49762
50568
  }));
49763
50569
  export const CreateIdentityProviderResponse =
49764
50570
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
@@ -50439,16 +51245,18 @@ export const CreateIdentityProviderResponse =
50439
51245
  scimConfig: "scim_config",
50440
51246
  })),
50441
51247
  ]).pipe(T.ResponsePath("result"));
50442
- export const createIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
50443
- input: CreateIdentityProviderRequest,
51248
+ export const createIdentityProviderForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51249
+ input: CreateIdentityProviderForAccountRequest,
50444
51250
  output: CreateIdentityProviderResponse,
50445
51251
  errors: [],
50446
51252
  }));
50447
- export const UpdateIdentityProviderRequest =
50448
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51253
+ export const createIdentityProviderForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51254
+ input: CreateIdentityProviderForZoneRequest,
51255
+ output: CreateIdentityProviderResponse,
51256
+ errors: [],
51257
+ }));
51258
+ const UpdateIdentityProviderBaseFields = {
50449
51259
  identityProviderId: Schema.String.pipe(T.HttpPath("identityProviderId")),
50450
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
50451
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
50452
51260
  config: Schema.Struct({
50453
51261
  claims: Schema.optional(Schema.Array(Schema.String)),
50454
51262
  clientId: Schema.optional(Schema.String),
@@ -50496,6 +51304,11 @@ export const UpdateIdentityProviderRequest =
50496
51304
  seatDeprovision: "seat_deprovision",
50497
51305
  userDeprovision: "user_deprovision",
50498
51306
  }))),
51307
+ };
51308
+ export const UpdateIdentityProviderForAccountRequest =
51309
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51310
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
51311
+ ...UpdateIdentityProviderBaseFields,
50499
51312
  }).pipe(Schema.encodeKeys({
50500
51313
  config: "config",
50501
51314
  name: "name",
@@ -50503,7 +51316,20 @@ export const UpdateIdentityProviderRequest =
50503
51316
  scimConfig: "scim_config",
50504
51317
  }), T.Http({
50505
51318
  method: "PUT",
50506
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers/{identityProviderId}",
51319
+ path: "/accounts/{account_id}/access/identity_providers/{identityProviderId}",
51320
+ }));
51321
+ export const UpdateIdentityProviderForZoneRequest =
51322
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51323
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
51324
+ ...UpdateIdentityProviderBaseFields,
51325
+ }).pipe(Schema.encodeKeys({
51326
+ config: "config",
51327
+ name: "name",
51328
+ type: "type",
51329
+ scimConfig: "scim_config",
51330
+ }), T.Http({
51331
+ method: "PUT",
51332
+ path: "/zones/{zone_id}/access/identity_providers/{identityProviderId}",
50507
51333
  }));
50508
51334
  export const UpdateIdentityProviderResponse =
50509
51335
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
@@ -51184,24 +52010,46 @@ export const UpdateIdentityProviderResponse =
51184
52010
  scimConfig: "scim_config",
51185
52011
  })),
51186
52012
  ]).pipe(T.ResponsePath("result"));
51187
- export const updateIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51188
- input: UpdateIdentityProviderRequest,
52013
+ export const updateIdentityProviderForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52014
+ input: UpdateIdentityProviderForAccountRequest,
51189
52015
  output: UpdateIdentityProviderResponse,
51190
52016
  errors: [],
51191
52017
  }));
51192
- export const DeleteIdentityProviderRequest =
51193
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52018
+ export const updateIdentityProviderForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52019
+ input: UpdateIdentityProviderForZoneRequest,
52020
+ output: UpdateIdentityProviderResponse,
52021
+ errors: [],
52022
+ }));
52023
+ const DeleteIdentityProviderBaseFields = {
51194
52024
  identityProviderId: Schema.String.pipe(T.HttpPath("identityProviderId")),
52025
+ };
52026
+ export const DeleteIdentityProviderForAccountRequest =
52027
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52028
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
52029
+ ...DeleteIdentityProviderBaseFields,
52030
+ }).pipe(T.Http({
52031
+ method: "DELETE",
52032
+ path: "/accounts/{account_id}/access/identity_providers/{identityProviderId}",
52033
+ }));
52034
+ export const DeleteIdentityProviderForZoneRequest =
52035
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52036
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
52037
+ ...DeleteIdentityProviderBaseFields,
51195
52038
  }).pipe(T.Http({
51196
52039
  method: "DELETE",
51197
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers/{identityProviderId}",
52040
+ path: "/zones/{zone_id}/access/identity_providers/{identityProviderId}",
51198
52041
  }));
51199
52042
  export const DeleteIdentityProviderResponse =
51200
52043
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51201
52044
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
51202
52045
  }).pipe(T.ResponsePath("result"));
51203
- export const deleteIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51204
- input: DeleteIdentityProviderRequest,
52046
+ export const deleteIdentityProviderForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52047
+ input: DeleteIdentityProviderForAccountRequest,
52048
+ output: DeleteIdentityProviderResponse,
52049
+ errors: [],
52050
+ }));
52051
+ export const deleteIdentityProviderForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52052
+ input: DeleteIdentityProviderForZoneRequest,
51205
52053
  output: DeleteIdentityProviderResponse,
51206
52054
  errors: [],
51207
52055
  }));
@@ -51233,17 +52081,20 @@ export const ListIdentityProviderScimGroupsResponse =
51233
52081
  ])),
51234
52082
  schemas: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
51235
52083
  })),
51236
- resultInfo: Schema.Struct({
51237
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51238
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51239
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51240
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51241
- }).pipe(Schema.encodeKeys({
51242
- count: "count",
51243
- page: "page",
51244
- perPage: "per_page",
51245
- totalCount: "total_count",
51246
- })),
52084
+ resultInfo: Schema.optional(Schema.Union([
52085
+ Schema.Struct({
52086
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52087
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52088
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52089
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52090
+ }).pipe(Schema.encodeKeys({
52091
+ count: "count",
52092
+ page: "page",
52093
+ perPage: "per_page",
52094
+ totalCount: "total_count",
52095
+ })),
52096
+ Schema.Null,
52097
+ ])),
51247
52098
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
51248
52099
  export const listIdentityProviderScimGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
51249
52100
  input: ListIdentityProviderScimGroupsRequest,
@@ -51296,17 +52147,20 @@ export const ListIdentityProviderScimUsersResponse =
51296
52147
  ])),
51297
52148
  schemas: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
51298
52149
  })),
51299
- resultInfo: Schema.Struct({
51300
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51301
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51302
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51303
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51304
- }).pipe(Schema.encodeKeys({
51305
- count: "count",
51306
- page: "page",
51307
- perPage: "per_page",
51308
- totalCount: "total_count",
51309
- })),
52150
+ resultInfo: Schema.optional(Schema.Union([
52151
+ Schema.Struct({
52152
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52153
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52154
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52155
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52156
+ }).pipe(Schema.encodeKeys({
52157
+ count: "count",
52158
+ page: "page",
52159
+ perPage: "per_page",
52160
+ totalCount: "total_count",
52161
+ })),
52162
+ Schema.Null,
52163
+ ])),
51310
52164
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
51311
52165
  export const listIdentityProviderScimUsers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
51312
52166
  input: ListIdentityProviderScimUsersRequest,
@@ -51387,17 +52241,20 @@ export const ListNetworkHostnameRoutesResponse =
51387
52241
  tunnelId: "tunnel_id",
51388
52242
  tunnelName: "tunnel_name",
51389
52243
  }))),
51390
- resultInfo: Schema.Struct({
51391
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51392
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51393
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51394
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51395
- }).pipe(Schema.encodeKeys({
51396
- count: "count",
51397
- page: "page",
51398
- perPage: "per_page",
51399
- totalCount: "total_count",
51400
- })),
52244
+ resultInfo: Schema.optional(Schema.Union([
52245
+ Schema.Struct({
52246
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52247
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52248
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52249
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52250
+ }).pipe(Schema.encodeKeys({
52251
+ count: "count",
52252
+ page: "page",
52253
+ perPage: "per_page",
52254
+ totalCount: "total_count",
52255
+ })),
52256
+ Schema.Null,
52257
+ ])),
51401
52258
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
51402
52259
  export const listNetworkHostnameRoutes = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
51403
52260
  input: ListNetworkHostnameRoutesRequest,
@@ -51614,17 +52471,20 @@ export const ListNetworkRoutesResponse =
51614
52471
  virtualNetworkId: "virtual_network_id",
51615
52472
  virtualNetworkName: "virtual_network_name",
51616
52473
  }))),
51617
- resultInfo: Schema.Struct({
51618
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51619
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51620
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51621
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51622
- }).pipe(Schema.encodeKeys({
51623
- count: "count",
51624
- page: "page",
51625
- perPage: "per_page",
51626
- totalCount: "total_count",
51627
- })),
52474
+ resultInfo: Schema.optional(Schema.Union([
52475
+ Schema.Struct({
52476
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52477
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52478
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52479
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52480
+ }).pipe(Schema.encodeKeys({
52481
+ count: "count",
52482
+ page: "page",
52483
+ perPage: "per_page",
52484
+ totalCount: "total_count",
52485
+ })),
52486
+ Schema.Null,
52487
+ ])),
51628
52488
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
51629
52489
  export const listNetworkRoutes = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
51630
52490
  input: ListNetworkRoutesRequest,
@@ -51956,17 +52816,20 @@ export const ListNetworkSubnetsResponse =
51956
52816
  network: "network",
51957
52817
  subnetType: "subnet_type",
51958
52818
  }))),
51959
- resultInfo: Schema.Struct({
51960
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51961
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51962
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51963
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
51964
- }).pipe(Schema.encodeKeys({
51965
- count: "count",
51966
- page: "page",
51967
- perPage: "per_page",
51968
- totalCount: "total_count",
51969
- })),
52819
+ resultInfo: Schema.optional(Schema.Union([
52820
+ Schema.Struct({
52821
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52822
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52823
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52824
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
52825
+ }).pipe(Schema.encodeKeys({
52826
+ count: "count",
52827
+ page: "page",
52828
+ perPage: "per_page",
52829
+ totalCount: "total_count",
52830
+ })),
52831
+ Schema.Null,
52832
+ ])),
51970
52833
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
51971
52834
  export const listNetworkSubnets = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
51972
52835
  input: ListNetworkSubnetsRequest,
@@ -52196,11 +53059,23 @@ export const deleteNetworkVirtualNetwork = /*@__PURE__*/ /*#__PURE__*/ API.make(
52196
53059
  output: DeleteNetworkVirtualNetworkResponse,
52197
53060
  errors: [],
52198
53061
  }));
52199
- export const ListOrganizationsRequest =
52200
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
53062
+ // =============================================================================
53063
+ // Organization
53064
+ // =============================================================================
53065
+ const ListOrganizationsBaseFields = {};
53066
+ export const ListOrganizationsForAccountRequest =
53067
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53068
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
53069
+ ...ListOrganizationsBaseFields,
53070
+ }).pipe(T.Http({
52201
53071
  method: "GET",
52202
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations",
53072
+ path: "/accounts/{account_id}/access/organizations",
52203
53073
  }));
53074
+ export const ListOrganizationsForZoneRequest =
53075
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53076
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
53077
+ ...ListOrganizationsBaseFields,
53078
+ }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/access/organizations" }));
52204
53079
  export const ListOrganizationsResponse =
52205
53080
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52206
53081
  allowAuthenticateViaWarp: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -52253,15 +53128,17 @@ export const ListOrganizationsResponse =
52253
53128
  warpAuthSessionDuration: "warp_auth_session_duration",
52254
53129
  }))
52255
53130
  .pipe(T.ResponsePath("result"));
52256
- export const listOrganizations = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52257
- input: ListOrganizationsRequest,
53131
+ export const listOrganizationsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53132
+ input: ListOrganizationsForAccountRequest,
52258
53133
  output: ListOrganizationsResponse,
52259
53134
  errors: [],
52260
53135
  }));
52261
- export const CreateOrganizationRequest =
52262
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52263
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
52264
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
53136
+ export const listOrganizationsForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53137
+ input: ListOrganizationsForZoneRequest,
53138
+ output: ListOrganizationsResponse,
53139
+ errors: [],
53140
+ }));
53141
+ const CreateOrganizationBaseFields = {
52265
53142
  authDomain: Schema.String,
52266
53143
  name: Schema.String,
52267
53144
  allowAuthenticateViaWarp: Schema.optional(Schema.Boolean),
@@ -52284,6 +53161,11 @@ export const CreateOrganizationRequest =
52284
53161
  uiReadOnlyToggleReason: Schema.optional(Schema.String),
52285
53162
  userSeatExpirationInactiveTime: Schema.optional(Schema.String),
52286
53163
  warpAuthSessionDuration: Schema.optional(Schema.String),
53164
+ };
53165
+ export const CreateOrganizationForAccountRequest =
53166
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53167
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
53168
+ ...CreateOrganizationBaseFields,
52287
53169
  }).pipe(Schema.encodeKeys({
52288
53170
  authDomain: "auth_domain",
52289
53171
  name: "name",
@@ -52297,8 +53179,24 @@ export const CreateOrganizationRequest =
52297
53179
  warpAuthSessionDuration: "warp_auth_session_duration",
52298
53180
  }), T.Http({
52299
53181
  method: "POST",
52300
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations",
53182
+ path: "/accounts/{account_id}/access/organizations",
52301
53183
  }));
53184
+ export const CreateOrganizationForZoneRequest =
53185
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53186
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
53187
+ ...CreateOrganizationBaseFields,
53188
+ }).pipe(Schema.encodeKeys({
53189
+ authDomain: "auth_domain",
53190
+ name: "name",
53191
+ allowAuthenticateViaWarp: "allow_authenticate_via_warp",
53192
+ autoRedirectToIdentity: "auto_redirect_to_identity",
53193
+ isUiReadOnly: "is_ui_read_only",
53194
+ loginDesign: "login_design",
53195
+ sessionDuration: "session_duration",
53196
+ uiReadOnlyToggleReason: "ui_read_only_toggle_reason",
53197
+ userSeatExpirationInactiveTime: "user_seat_expiration_inactive_time",
53198
+ warpAuthSessionDuration: "warp_auth_session_duration",
53199
+ }), T.Http({ method: "POST", path: "/zones/{zone_id}/access/organizations" }));
52302
53200
  export const CreateOrganizationResponse =
52303
53201
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52304
53202
  allowAuthenticateViaWarp: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -52351,15 +53249,17 @@ export const CreateOrganizationResponse =
52351
53249
  warpAuthSessionDuration: "warp_auth_session_duration",
52352
53250
  }))
52353
53251
  .pipe(T.ResponsePath("result"));
52354
- export const createOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52355
- input: CreateOrganizationRequest,
53252
+ export const createOrganizationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53253
+ input: CreateOrganizationForAccountRequest,
52356
53254
  output: CreateOrganizationResponse,
52357
53255
  errors: [],
52358
53256
  }));
52359
- export const UpdateOrganizationRequest =
52360
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52361
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
52362
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
53257
+ export const createOrganizationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53258
+ input: CreateOrganizationForZoneRequest,
53259
+ output: CreateOrganizationResponse,
53260
+ errors: [],
53261
+ }));
53262
+ const UpdateOrganizationBaseFields = {
52363
53263
  allowAuthenticateViaWarp: Schema.optional(Schema.Boolean),
52364
53264
  authDomain: Schema.optional(Schema.String),
52365
53265
  autoRedirectToIdentity: Schema.optional(Schema.Boolean),
@@ -52389,6 +53289,11 @@ export const UpdateOrganizationRequest =
52389
53289
  uiReadOnlyToggleReason: Schema.optional(Schema.String),
52390
53290
  userSeatExpirationInactiveTime: Schema.optional(Schema.String),
52391
53291
  warpAuthSessionDuration: Schema.optional(Schema.String),
53292
+ };
53293
+ export const UpdateOrganizationForAccountRequest =
53294
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53295
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
53296
+ ...UpdateOrganizationBaseFields,
52392
53297
  }).pipe(Schema.encodeKeys({
52393
53298
  allowAuthenticateViaWarp: "allow_authenticate_via_warp",
52394
53299
  authDomain: "auth_domain",
@@ -52403,8 +53308,25 @@ export const UpdateOrganizationRequest =
52403
53308
  warpAuthSessionDuration: "warp_auth_session_duration",
52404
53309
  }), T.Http({
52405
53310
  method: "PUT",
52406
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations",
53311
+ path: "/accounts/{account_id}/access/organizations",
52407
53312
  }));
53313
+ export const UpdateOrganizationForZoneRequest =
53314
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53315
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
53316
+ ...UpdateOrganizationBaseFields,
53317
+ }).pipe(Schema.encodeKeys({
53318
+ allowAuthenticateViaWarp: "allow_authenticate_via_warp",
53319
+ authDomain: "auth_domain",
53320
+ autoRedirectToIdentity: "auto_redirect_to_identity",
53321
+ customPages: "custom_pages",
53322
+ isUiReadOnly: "is_ui_read_only",
53323
+ loginDesign: "login_design",
53324
+ name: "name",
53325
+ sessionDuration: "session_duration",
53326
+ uiReadOnlyToggleReason: "ui_read_only_toggle_reason",
53327
+ userSeatExpirationInactiveTime: "user_seat_expiration_inactive_time",
53328
+ warpAuthSessionDuration: "warp_auth_session_duration",
53329
+ }), T.Http({ method: "PUT", path: "/zones/{zone_id}/access/organizations" }));
52408
53330
  export const UpdateOrganizationResponse =
52409
53331
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52410
53332
  allowAuthenticateViaWarp: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -52457,8 +53379,13 @@ export const UpdateOrganizationResponse =
52457
53379
  warpAuthSessionDuration: "warp_auth_session_duration",
52458
53380
  }))
52459
53381
  .pipe(T.ResponsePath("result"));
52460
- export const updateOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52461
- input: UpdateOrganizationRequest,
53382
+ export const updateOrganizationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53383
+ input: UpdateOrganizationForAccountRequest,
53384
+ output: UpdateOrganizationResponse,
53385
+ errors: [],
53386
+ }));
53387
+ export const updateOrganizationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53388
+ input: UpdateOrganizationForZoneRequest,
52462
53389
  output: UpdateOrganizationResponse,
52463
53390
  errors: [],
52464
53391
  }));
@@ -53406,15 +54333,37 @@ export const overTimeDexFleetStatus = /*@__PURE__*/ /*#__PURE__*/ API.make(() =>
53406
54333
  output: OverTimeDexFleetStatusResponse,
53407
54334
  errors: [],
53408
54335
  }));
53409
- export const RevokeTokensAccessApplicationRequest =
53410
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
54336
+ // =============================================================================
54337
+ // TokensAccessApplication
54338
+ // =============================================================================
54339
+ const RevokeTokensAccessApplicationBaseFields = {
54340
+ appId: Schema.String.pipe(T.HttpPath("appId")),
54341
+ };
54342
+ export const RevokeTokensAccessApplicationForAccountRequest =
54343
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
54344
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
54345
+ ...RevokeTokensAccessApplicationBaseFields,
54346
+ }).pipe(T.Http({
54347
+ method: "POST",
54348
+ path: "/accounts/{account_id}/access/apps/{appId}/revoke_tokens",
54349
+ }));
54350
+ export const RevokeTokensAccessApplicationForZoneRequest =
54351
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
54352
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
54353
+ ...RevokeTokensAccessApplicationBaseFields,
54354
+ }).pipe(T.Http({
53411
54355
  method: "POST",
53412
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/revoke_tokens",
54356
+ path: "/zones/{zone_id}/access/apps/{appId}/revoke_tokens",
53413
54357
  }));
53414
54358
  export const RevokeTokensAccessApplicationResponse =
53415
54359
  /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
53416
- export const revokeTokensAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53417
- input: RevokeTokensAccessApplicationRequest,
54360
+ export const revokeTokensAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
54361
+ input: RevokeTokensAccessApplicationForAccountRequest,
54362
+ output: RevokeTokensAccessApplicationResponse,
54363
+ errors: [],
54364
+ }));
54365
+ export const revokeTokensAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
54366
+ input: RevokeTokensAccessApplicationForZoneRequest,
53418
54367
  output: RevokeTokensAccessApplicationResponse,
53419
54368
  errors: [],
53420
54369
  }));
@@ -53568,17 +54517,20 @@ export const ListTunnelsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
53568
54517
  tunType: "tun_type",
53569
54518
  })),
53570
54519
  ])),
53571
- resultInfo: Schema.Struct({
53572
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53573
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53574
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53575
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53576
- }).pipe(Schema.encodeKeys({
53577
- count: "count",
53578
- page: "page",
53579
- perPage: "per_page",
53580
- totalCount: "total_count",
53581
- })),
54520
+ resultInfo: Schema.optional(Schema.Union([
54521
+ Schema.Struct({
54522
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54523
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54524
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54525
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54526
+ }).pipe(Schema.encodeKeys({
54527
+ count: "count",
54528
+ page: "page",
54529
+ perPage: "per_page",
54530
+ totalCount: "total_count",
54531
+ })),
54532
+ Schema.Null,
54533
+ ])),
53582
54534
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
53583
54535
  export const listTunnels = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
53584
54536
  input: ListTunnelsRequest,
@@ -53753,17 +54705,20 @@ export const ListTunnelCloudflaredsResponse =
53753
54705
  status: "status",
53754
54706
  tunType: "tun_type",
53755
54707
  }))),
53756
- resultInfo: Schema.Struct({
53757
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53758
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53759
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53760
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
53761
- }).pipe(Schema.encodeKeys({
53762
- count: "count",
53763
- page: "page",
53764
- perPage: "per_page",
53765
- totalCount: "total_count",
53766
- })),
54708
+ resultInfo: Schema.optional(Schema.Union([
54709
+ Schema.Struct({
54710
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54711
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54712
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54713
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54714
+ }).pipe(Schema.encodeKeys({
54715
+ count: "count",
54716
+ page: "page",
54717
+ perPage: "per_page",
54718
+ totalCount: "total_count",
54719
+ })),
54720
+ Schema.Null,
54721
+ ])),
53767
54722
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
53768
54723
  export const listTunnelCloudflareds = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
53769
54724
  input: ListTunnelCloudflaredsRequest,
@@ -54578,17 +55533,20 @@ export const ListTunnelWarpConnectorsResponse =
54578
55533
  status: "status",
54579
55534
  tunType: "tun_type",
54580
55535
  }))),
54581
- resultInfo: Schema.Struct({
54582
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54583
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54584
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54585
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
54586
- }).pipe(Schema.encodeKeys({
54587
- count: "count",
54588
- page: "page",
54589
- perPage: "per_page",
54590
- totalCount: "total_count",
54591
- })),
55536
+ resultInfo: Schema.optional(Schema.Union([
55537
+ Schema.Struct({
55538
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
55539
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
55540
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
55541
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
55542
+ }).pipe(Schema.encodeKeys({
55543
+ count: "count",
55544
+ page: "page",
55545
+ perPage: "per_page",
55546
+ totalCount: "total_count",
55547
+ })),
55548
+ Schema.Null,
55549
+ ])),
54592
55550
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
54593
55551
  export const listTunnelWarpConnectors = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
54594
55552
  input: ListTunnelWarpConnectorsRequest,
@@ -54844,15 +55802,33 @@ export const getTunnelWarpConnectorToken = /*@__PURE__*/ /*#__PURE__*/ API.make(
54844
55802
  output: GetTunnelWarpConnectorTokenResponse,
54845
55803
  errors: [],
54846
55804
  }));
54847
- export const RevokeUsersOrganizationRequest =
54848
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
54849
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
54850
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
55805
+ // =============================================================================
55806
+ // UsersOrganization
55807
+ // =============================================================================
55808
+ const RevokeUsersOrganizationBaseFields = {
54851
55809
  queryDevices: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("query_devices")),
54852
55810
  email: Schema.String,
54853
55811
  bodyDevices: Schema.optional(Schema.Boolean),
54854
55812
  userUid: Schema.optional(Schema.String),
54855
55813
  warpSessionReauth: Schema.optional(Schema.Boolean),
55814
+ };
55815
+ export const RevokeUsersOrganizationForAccountRequest =
55816
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
55817
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
55818
+ ...RevokeUsersOrganizationBaseFields,
55819
+ }).pipe(Schema.encodeKeys({
55820
+ email: "email",
55821
+ bodyDevices: "body_devices",
55822
+ userUid: "user_uid",
55823
+ warpSessionReauth: "warp_session_reauth",
55824
+ }), T.Http({
55825
+ method: "POST",
55826
+ path: "/accounts/{account_id}/access/organizations/revoke_user",
55827
+ }));
55828
+ export const RevokeUsersOrganizationForZoneRequest =
55829
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
55830
+ zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
55831
+ ...RevokeUsersOrganizationBaseFields,
54856
55832
  }).pipe(Schema.encodeKeys({
54857
55833
  email: "email",
54858
55834
  bodyDevices: "body_devices",
@@ -54860,12 +55836,17 @@ export const RevokeUsersOrganizationRequest =
54860
55836
  warpSessionReauth: "warp_session_reauth",
54861
55837
  }), T.Http({
54862
55838
  method: "POST",
54863
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations/revoke_user",
55839
+ path: "/zones/{zone_id}/access/organizations/revoke_user",
54864
55840
  }));
54865
55841
  export const RevokeUsersOrganizationResponse =
54866
55842
  /*@__PURE__*/ /*#__PURE__*/ Schema.Literals([true, false]).pipe(T.ResponsePath("result"));
54867
- export const revokeUsersOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
54868
- input: RevokeUsersOrganizationRequest,
55843
+ export const revokeUsersOrganizationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
55844
+ input: RevokeUsersOrganizationForAccountRequest,
55845
+ output: RevokeUsersOrganizationResponse,
55846
+ errors: [],
55847
+ }));
55848
+ export const revokeUsersOrganizationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
55849
+ input: RevokeUsersOrganizationForZoneRequest,
54869
55850
  output: RevokeUsersOrganizationResponse,
54870
55851
  errors: [],
54871
55852
  }));