@distilled.cloud/cloudflare 0.19.0 → 0.19.2

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 (51) 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/custom-pages.d.ts +40 -13
  6. package/lib/services/custom-pages.d.ts.map +1 -1
  7. package/lib/services/custom-pages.js +68 -15
  8. package/lib/services/custom-pages.js.map +1 -1
  9. package/lib/services/firewall.d.ts +66 -23
  10. package/lib/services/firewall.d.ts.map +1 -1
  11. package/lib/services/firewall.js +120 -26
  12. package/lib/services/firewall.js.map +1 -1
  13. package/lib/services/intel.d.ts +2 -0
  14. package/lib/services/intel.d.ts.map +1 -1
  15. package/lib/services/intel.js +2 -0
  16. package/lib/services/intel.js.map +1 -1
  17. package/lib/services/logpush.d.ts +157 -64
  18. package/lib/services/logpush.d.ts.map +1 -1
  19. package/lib/services/logpush.js +292 -63
  20. package/lib/services/logpush.js.map +1 -1
  21. package/lib/services/r2.d.ts +29 -2
  22. package/lib/services/r2.d.ts.map +1 -1
  23. package/lib/services/r2.js +20 -6
  24. package/lib/services/r2.js.map +1 -1
  25. package/lib/services/rulesets.d.ts +204 -69
  26. package/lib/services/rulesets.d.ts.map +1 -1
  27. package/lib/services/rulesets.js +5077 -4705
  28. package/lib/services/rulesets.js.map +1 -1
  29. package/lib/services/security-center.d.ts +66 -19
  30. package/lib/services/security-center.d.ts.map +1 -1
  31. package/lib/services/security-center.js +128 -22
  32. package/lib/services/security-center.js.map +1 -1
  33. package/lib/services/waiting-rooms.d.ts +14 -3
  34. package/lib/services/waiting-rooms.d.ts.map +1 -1
  35. package/lib/services/waiting-rooms.js +25 -7
  36. package/lib/services/waiting-rooms.js.map +1 -1
  37. package/lib/services/zero-trust.d.ts +579 -204
  38. package/lib/services/zero-trust.d.ts.map +1 -1
  39. package/lib/services/zero-trust.js +1159 -268
  40. package/lib/services/zero-trust.js.map +1 -1
  41. package/package.json +2 -2
  42. package/src/schemas.ts +19 -17
  43. package/src/services/custom-pages.ts +170 -66
  44. package/src/services/firewall.ts +300 -121
  45. package/src/services/intel.ts +4 -0
  46. package/src/services/logpush.ts +798 -372
  47. package/src/services/r2.ts +66 -9
  48. package/src/services/rulesets.ts +9882 -9033
  49. package/src/services/security-center.ts +247 -63
  50. package/src/services/waiting-rooms.ts +49 -11
  51. package/src/services/zero-trust.ts +4097 -2417
@@ -602,11 +602,25 @@ export const syncAccessAiControlMcpServer = /*@__PURE__*/ /*#__PURE__*/ API.make
602
602
  output: SyncAccessAiControlMcpServerResponse,
603
603
  errors: [],
604
604
  }));
605
- export const GetAccessApplicationRequest =
606
- /*@__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({
607
616
  method: "GET",
608
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}",
617
+ path: "/accounts/{account_id}/access/apps/{appId}",
609
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}" }));
610
624
  export const GetAccessApplicationResponse =
611
625
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
612
626
  Schema.Struct({
@@ -4990,16 +5004,27 @@ export const GetAccessApplicationResponse =
4990
5004
  type: "type",
4991
5005
  })),
4992
5006
  ]).pipe(T.ResponsePath("result"));
4993
- export const getAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4994
- input: GetAccessApplicationRequest,
5007
+ export const getAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5008
+ input: GetAccessApplicationForAccountRequest,
4995
5009
  output: GetAccessApplicationResponse,
4996
5010
  errors: [],
4997
5011
  }));
4998
- export const ListAccessApplicationsRequest =
4999
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
5000
- method: "GET",
5001
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps",
5012
+ export const getAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5013
+ input: GetAccessApplicationForZoneRequest,
5014
+ output: GetAccessApplicationResponse,
5015
+ errors: [],
5002
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" }));
5003
5028
  export const ListAccessApplicationsResponse =
5004
5029
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5005
5030
  result: Schema.Array(Schema.Union([
@@ -9566,8 +9591,8 @@ export const ListAccessApplicationsResponse =
9566
9591
  Schema.Null,
9567
9592
  ])),
9568
9593
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
9569
- export const listAccessApplications = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9570
- input: ListAccessApplicationsRequest,
9594
+ export const listAccessApplicationsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9595
+ input: ListAccessApplicationsForAccountRequest,
9571
9596
  output: ListAccessApplicationsResponse,
9572
9597
  errors: [],
9573
9598
  pagination: {
@@ -9578,10 +9603,19 @@ export const listAccessApplications = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
9578
9603
  pageSize: "perPage",
9579
9604
  },
9580
9605
  }));
9581
- export const CreateAccessApplicationRequest =
9582
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9583
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9584
- 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 = {
9585
9619
  domain: Schema.String,
9586
9620
  type: Schema.Literals([
9587
9621
  "self_hosted",
@@ -9811,6 +9845,11 @@ export const CreateAccessApplicationRequest =
9811
9845
  sessionDuration: Schema.optional(Schema.String),
9812
9846
  skipInterstitial: Schema.optional(Schema.Boolean),
9813
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,
9814
9853
  }).pipe(Schema.encodeKeys({
9815
9854
  domain: "domain",
9816
9855
  type: "type",
@@ -9840,10 +9879,41 @@ export const CreateAccessApplicationRequest =
9840
9879
  sessionDuration: "session_duration",
9841
9880
  skipInterstitial: "skip_interstitial",
9842
9881
  tags: "tags",
9843
- }), T.Http({
9844
- method: "POST",
9845
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps",
9846
- }));
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" }));
9847
9917
  export const CreateAccessApplicationResponse =
9848
9918
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
9849
9919
  Schema.Struct({
@@ -14227,15 +14297,18 @@ export const CreateAccessApplicationResponse =
14227
14297
  type: "type",
14228
14298
  })),
14229
14299
  ]).pipe(T.ResponsePath("result"));
14230
- export const createAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
14231
- input: CreateAccessApplicationRequest,
14300
+ export const createAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
14301
+ input: CreateAccessApplicationForAccountRequest,
14232
14302
  output: CreateAccessApplicationResponse,
14233
14303
  errors: [],
14234
14304
  }));
14235
- export const UpdateAccessApplicationRequest =
14236
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
14237
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
14238
- 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")),
14239
14312
  domain: Schema.String,
14240
14313
  type: Schema.Literals([
14241
14314
  "self_hosted",
@@ -14465,6 +14538,11 @@ export const UpdateAccessApplicationRequest =
14465
14538
  sessionDuration: Schema.optional(Schema.String),
14466
14539
  skipInterstitial: Schema.optional(Schema.Boolean),
14467
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,
14468
14546
  }).pipe(Schema.encodeKeys({
14469
14547
  domain: "domain",
14470
14548
  type: "type",
@@ -14496,8 +14574,42 @@ export const UpdateAccessApplicationRequest =
14496
14574
  tags: "tags",
14497
14575
  }), T.Http({
14498
14576
  method: "PUT",
14499
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}",
14577
+ path: "/accounts/{account_id}/access/apps/{appId}",
14500
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}" }));
14501
14613
  export const UpdateAccessApplicationResponse =
14502
14614
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
14503
14615
  Schema.Struct({
@@ -18881,32 +18993,65 @@ export const UpdateAccessApplicationResponse =
18881
18993
  type: "type",
18882
18994
  })),
18883
18995
  ]).pipe(T.ResponsePath("result"));
18884
- export const updateAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18885
- input: UpdateAccessApplicationRequest,
18996
+ export const updateAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18997
+ input: UpdateAccessApplicationForAccountRequest,
18886
18998
  output: UpdateAccessApplicationResponse,
18887
18999
  errors: [],
18888
19000
  }));
18889
- export const DeleteAccessApplicationRequest =
18890
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
19001
+ export const updateAccessApplicationForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19002
+ input: UpdateAccessApplicationForZoneRequest,
19003
+ output: UpdateAccessApplicationResponse,
19004
+ errors: [],
19005
+ }));
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({
18891
19014
  method: "DELETE",
18892
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}",
19015
+ path: "/accounts/{account_id}/access/apps/{appId}",
18893
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}" }));
18894
19022
  export const DeleteAccessApplicationResponse =
18895
19023
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18896
19024
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18897
19025
  }).pipe(T.ResponsePath("result"));
18898
- export const deleteAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18899
- input: DeleteAccessApplicationRequest,
19026
+ export const deleteAccessApplicationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19027
+ input: DeleteAccessApplicationForAccountRequest,
18900
19028
  output: DeleteAccessApplicationResponse,
18901
19029
  errors: [],
18902
19030
  }));
18903
- export const GetAccessApplicationCaRequest =
18904
- /*@__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 = {
18905
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,
18906
19046
  }).pipe(T.Http({
18907
19047
  method: "GET",
18908
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/ca",
19048
+ path: "/accounts/{account_id}/access/apps/{appId}/ca",
18909
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" }));
18910
19055
  export const GetAccessApplicationCaResponse =
18911
19056
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18912
19057
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -18915,16 +19060,27 @@ export const GetAccessApplicationCaResponse =
18915
19060
  })
18916
19061
  .pipe(Schema.encodeKeys({ id: "id", aud: "aud", publicKey: "public_key" }))
18917
19062
  .pipe(T.ResponsePath("result"));
18918
- export const getAccessApplicationCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18919
- input: GetAccessApplicationCaRequest,
19063
+ export const getAccessApplicationCaForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19064
+ input: GetAccessApplicationCaForAccountRequest,
18920
19065
  output: GetAccessApplicationCaResponse,
18921
19066
  errors: [],
18922
19067
  }));
18923
- export const ListAccessApplicationCasRequest =
18924
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
18925
- method: "GET",
18926
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/ca",
19068
+ export const getAccessApplicationCaForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19069
+ input: GetAccessApplicationCaForZoneRequest,
19070
+ output: GetAccessApplicationCaResponse,
19071
+ errors: [],
18927
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" }));
18928
19084
  export const ListAccessApplicationCasResponse =
18929
19085
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18930
19086
  result: Schema.Array(Schema.Struct({
@@ -18947,8 +19103,8 @@ export const ListAccessApplicationCasResponse =
18947
19103
  Schema.Null,
18948
19104
  ])),
18949
19105
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
18950
- export const listAccessApplicationCas = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
18951
- input: ListAccessApplicationCasRequest,
19106
+ export const listAccessApplicationCasForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
19107
+ input: ListAccessApplicationCasForAccountRequest,
18952
19108
  output: ListAccessApplicationCasResponse,
18953
19109
  errors: [],
18954
19110
  pagination: {
@@ -18959,13 +19115,34 @@ export const listAccessApplicationCas = /*@__PURE__*/ /*#__PURE__*/ API.makePagi
18959
19115
  pageSize: "perPage",
18960
19116
  },
18961
19117
  }));
18962
- export const CreateAccessApplicationCaRequest =
18963
- /*@__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 = {
18964
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,
18965
19137
  }).pipe(T.Http({
18966
19138
  method: "POST",
18967
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/ca",
19139
+ path: "/accounts/{account_id}/access/apps/{appId}/ca",
18968
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" }));
18969
19146
  export const CreateAccessApplicationCaResponse =
18970
19147
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18971
19148
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -18974,34 +19151,71 @@ export const CreateAccessApplicationCaResponse =
18974
19151
  })
18975
19152
  .pipe(Schema.encodeKeys({ id: "id", aud: "aud", publicKey: "public_key" }))
18976
19153
  .pipe(T.ResponsePath("result"));
18977
- export const createAccessApplicationCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18978
- input: CreateAccessApplicationCaRequest,
19154
+ export const createAccessApplicationCaForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19155
+ input: CreateAccessApplicationCaForAccountRequest,
18979
19156
  output: CreateAccessApplicationCaResponse,
18980
19157
  errors: [],
18981
19158
  }));
18982
- export const DeleteAccessApplicationCaRequest =
18983
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19159
+ export const createAccessApplicationCaForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19160
+ input: CreateAccessApplicationCaForZoneRequest,
19161
+ output: CreateAccessApplicationCaResponse,
19162
+ errors: [],
19163
+ }));
19164
+ const DeleteAccessApplicationCaBaseFields = {
18984
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,
18985
19179
  }).pipe(T.Http({
18986
19180
  method: "DELETE",
18987
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/ca",
19181
+ path: "/zones/{zone_id}/access/apps/{appId}/ca",
18988
19182
  }));
18989
19183
  export const DeleteAccessApplicationCaResponse =
18990
19184
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
18991
19185
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18992
19186
  }).pipe(T.ResponsePath("result"));
18993
- export const deleteAccessApplicationCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
18994
- input: DeleteAccessApplicationCaRequest,
19187
+ export const deleteAccessApplicationCaForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19188
+ input: DeleteAccessApplicationCaForAccountRequest,
18995
19189
  output: DeleteAccessApplicationCaResponse,
18996
19190
  errors: [],
18997
19191
  }));
18998
- export const GetAccessApplicationPolicyRequest =
18999
- /*@__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 = {
19000
19201
  appId: Schema.String.pipe(T.HttpPath("appId")),
19001
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,
19002
19208
  }).pipe(T.Http({
19003
19209
  method: "GET",
19004
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies/{policyId}",
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,
19216
+ }).pipe(T.Http({
19217
+ method: "GET",
19218
+ path: "/zones/{zone_id}/access/apps/{appId}/policies/{policyId}",
19005
19219
  }));
19006
19220
  export const GetAccessApplicationPolicyResponse =
19007
19221
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -19533,17 +19747,34 @@ export const GetAccessApplicationPolicyResponse =
19533
19747
  updatedAt: "updated_at",
19534
19748
  }))
19535
19749
  .pipe(T.ResponsePath("result"));
19536
- export const getAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19537
- input: GetAccessApplicationPolicyRequest,
19750
+ export const getAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19751
+ input: GetAccessApplicationPolicyForAccountRequest,
19538
19752
  output: GetAccessApplicationPolicyResponse,
19539
19753
  errors: [],
19540
19754
  }));
19541
- export const ListAccessApplicationPoliciesRequest =
19542
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
19755
+ export const getAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
19756
+ input: GetAccessApplicationPolicyForZoneRequest,
19757
+ output: GetAccessApplicationPolicyResponse,
19758
+ errors: [],
19759
+ }));
19760
+ const ListAccessApplicationPoliciesBaseFields = {
19543
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,
19544
19767
  }).pipe(T.Http({
19545
19768
  method: "GET",
19546
- 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",
19547
19778
  }));
19548
19779
  export const ListAccessApplicationPoliciesResponse =
19549
19780
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -20101,8 +20332,8 @@ export const ListAccessApplicationPoliciesResponse =
20101
20332
  Schema.Null,
20102
20333
  ])),
20103
20334
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
20104
- export const listAccessApplicationPolicies = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
20105
- input: ListAccessApplicationPoliciesRequest,
20335
+ export const listAccessApplicationPoliciesForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
20336
+ input: ListAccessApplicationPoliciesForAccountRequest,
20106
20337
  output: ListAccessApplicationPoliciesResponse,
20107
20338
  errors: [],
20108
20339
  pagination: {
@@ -20113,11 +20344,20 @@ export const listAccessApplicationPolicies = /*@__PURE__*/ /*#__PURE__*/ API.mak
20113
20344
  pageSize: "perPage",
20114
20345
  },
20115
20346
  }));
20116
- export const CreateAccessApplicationPolicyRequest =
20117
- /*@__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 = {
20118
20360
  appId: Schema.String.pipe(T.HttpPath("appId")),
20119
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
20120
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
20121
20361
  approvalGroups: Schema.optional(Schema.Array(Schema.Struct({
20122
20362
  approvalsNeeded: Schema.Number,
20123
20363
  emailAddresses: Schema.optional(Schema.Array(Schema.String)),
@@ -20133,6 +20373,11 @@ export const CreateAccessApplicationPolicyRequest =
20133
20373
  purposeJustificationPrompt: Schema.optional(Schema.String),
20134
20374
  purposeJustificationRequired: Schema.optional(Schema.Boolean),
20135
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,
20136
20381
  }).pipe(Schema.encodeKeys({
20137
20382
  approvalGroups: "approval_groups",
20138
20383
  approvalRequired: "approval_required",
@@ -20143,7 +20388,23 @@ export const CreateAccessApplicationPolicyRequest =
20143
20388
  sessionDuration: "session_duration",
20144
20389
  }), T.Http({
20145
20390
  method: "POST",
20146
- 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",
20147
20408
  }));
20148
20409
  export const CreateAccessApplicationPolicyResponse =
20149
20410
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -20675,17 +20936,19 @@ export const CreateAccessApplicationPolicyResponse =
20675
20936
  updatedAt: "updated_at",
20676
20937
  }))
20677
20938
  .pipe(T.ResponsePath("result"));
20678
- export const createAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
20679
- input: CreateAccessApplicationPolicyRequest,
20939
+ export const createAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
20940
+ input: CreateAccessApplicationPolicyForAccountRequest,
20680
20941
  output: CreateAccessApplicationPolicyResponse,
20681
20942
  errors: [],
20682
20943
  }));
20683
- export const UpdateAccessApplicationPolicyRequest =
20684
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
20944
+ export const createAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
20945
+ input: CreateAccessApplicationPolicyForZoneRequest,
20946
+ output: CreateAccessApplicationPolicyResponse,
20947
+ errors: [],
20948
+ }));
20949
+ const UpdateAccessApplicationPolicyBaseFields = {
20685
20950
  appId: Schema.String.pipe(T.HttpPath("appId")),
20686
20951
  policyId: Schema.String.pipe(T.HttpPath("policyId")),
20687
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
20688
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
20689
20952
  approvalGroups: Schema.optional(Schema.Array(Schema.Struct({
20690
20953
  approvalsNeeded: Schema.Number,
20691
20954
  emailAddresses: Schema.optional(Schema.Array(Schema.String)),
@@ -20701,6 +20964,11 @@ export const UpdateAccessApplicationPolicyRequest =
20701
20964
  purposeJustificationPrompt: Schema.optional(Schema.String),
20702
20965
  purposeJustificationRequired: Schema.optional(Schema.Boolean),
20703
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,
20704
20972
  }).pipe(Schema.encodeKeys({
20705
20973
  approvalGroups: "approval_groups",
20706
20974
  approvalRequired: "approval_required",
@@ -20711,7 +20979,23 @@ export const UpdateAccessApplicationPolicyRequest =
20711
20979
  sessionDuration: "session_duration",
20712
20980
  }), T.Http({
20713
20981
  method: "PUT",
20714
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies/{policyId}",
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,
20988
+ }).pipe(Schema.encodeKeys({
20989
+ approvalGroups: "approval_groups",
20990
+ approvalRequired: "approval_required",
20991
+ isolationRequired: "isolation_required",
20992
+ precedence: "precedence",
20993
+ purposeJustificationPrompt: "purpose_justification_prompt",
20994
+ purposeJustificationRequired: "purpose_justification_required",
20995
+ sessionDuration: "session_duration",
20996
+ }), T.Http({
20997
+ method: "PUT",
20998
+ path: "/zones/{zone_id}/access/apps/{appId}/policies/{policyId}",
20715
20999
  }));
20716
21000
  export const UpdateAccessApplicationPolicyResponse =
20717
21001
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21243,25 +21527,47 @@ export const UpdateAccessApplicationPolicyResponse =
21243
21527
  updatedAt: "updated_at",
21244
21528
  }))
21245
21529
  .pipe(T.ResponsePath("result"));
21246
- export const updateAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21247
- input: UpdateAccessApplicationPolicyRequest,
21530
+ export const updateAccessApplicationPolicyForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21531
+ input: UpdateAccessApplicationPolicyForAccountRequest,
21248
21532
  output: UpdateAccessApplicationPolicyResponse,
21249
21533
  errors: [],
21250
21534
  }));
21251
- export const DeleteAccessApplicationPolicyRequest =
21252
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21535
+ export const updateAccessApplicationPolicyForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21536
+ input: UpdateAccessApplicationPolicyForZoneRequest,
21537
+ output: UpdateAccessApplicationPolicyResponse,
21538
+ errors: [],
21539
+ }));
21540
+ const DeleteAccessApplicationPolicyBaseFields = {
21253
21541
  appId: Schema.String.pipe(T.HttpPath("appId")),
21254
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,
21255
21556
  }).pipe(T.Http({
21256
21557
  method: "DELETE",
21257
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/policies/{policyId}",
21558
+ path: "/zones/{zone_id}/access/apps/{appId}/policies/{policyId}",
21258
21559
  }));
21259
21560
  export const DeleteAccessApplicationPolicyResponse =
21260
21561
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21261
21562
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
21262
21563
  }).pipe(T.ResponsePath("result"));
21263
- export const deleteAccessApplicationPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21264
- 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,
21265
21571
  output: DeleteAccessApplicationPolicyResponse,
21266
21572
  errors: [],
21267
21573
  }));
@@ -21897,18 +22203,35 @@ export const listAccessApplicationPolicyTestUsers = /*@__PURE__*/ /*#__PURE__*/
21897
22203
  pageSize: "perPage",
21898
22204
  },
21899
22205
  }));
21900
- 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 =
21901
22215
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21902
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({
21903
22227
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
21904
- allowIframe: Schema.optional(Schema.Boolean),
21905
- skipInterstitial: Schema.optional(Schema.Boolean),
22228
+ ...PutAccessApplicationSettingBaseFields,
21906
22229
  }).pipe(Schema.encodeKeys({
21907
22230
  allowIframe: "allow_iframe",
21908
22231
  skipInterstitial: "skip_interstitial",
21909
22232
  }), T.Http({
21910
22233
  method: "PUT",
21911
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/settings",
22234
+ path: "/zones/{zone_id}/access/apps/{appId}/settings",
21912
22235
  }));
21913
22236
  export const PutAccessApplicationSettingResponse =
21914
22237
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21920,23 +22243,42 @@ export const PutAccessApplicationSettingResponse =
21920
22243
  skipInterstitial: "skip_interstitial",
21921
22244
  }))
21922
22245
  .pipe(T.ResponsePath("result"));
21923
- export const putAccessApplicationSetting = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21924
- input: PutAccessApplicationSettingRequest,
22246
+ export const putAccessApplicationSettingForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22247
+ input: PutAccessApplicationSettingForAccountRequest,
21925
22248
  output: PutAccessApplicationSettingResponse,
21926
22249
  errors: [],
21927
22250
  }));
21928
- 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 =
21929
22262
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
21930
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({
21931
22274
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
21932
- allowIframe: Schema.optional(Schema.Boolean),
21933
- skipInterstitial: Schema.optional(Schema.Boolean),
22275
+ ...PatchAccessApplicationSettingBaseFields,
21934
22276
  }).pipe(Schema.encodeKeys({
21935
22277
  allowIframe: "allow_iframe",
21936
22278
  skipInterstitial: "skip_interstitial",
21937
22279
  }), T.Http({
21938
22280
  method: "PATCH",
21939
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/settings",
22281
+ path: "/zones/{zone_id}/access/apps/{appId}/settings",
21940
22282
  }));
21941
22283
  export const PatchAccessApplicationSettingResponse =
21942
22284
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -21948,15 +22290,37 @@ export const PatchAccessApplicationSettingResponse =
21948
22290
  skipInterstitial: "skip_interstitial",
21949
22291
  }))
21950
22292
  .pipe(T.ResponsePath("result"));
21951
- export const patchAccessApplicationSetting = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
21952
- 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,
21953
22300
  output: PatchAccessApplicationSettingResponse,
21954
22301
  errors: [],
21955
22302
  }));
21956
- export const ListAccessApplicationUserPolicyChecksRequest =
21957
- /*@__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({
21958
22322
  method: "GET",
21959
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/user_policy_checks",
22323
+ path: "/zones/{zone_id}/access/apps/{appId}/user_policy_checks",
21960
22324
  }));
21961
22325
  export const ListAccessApplicationUserPolicyChecksResponse =
21962
22326
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22017,8 +22381,13 @@ export const ListAccessApplicationUserPolicyChecksResponse =
22017
22381
  userIdentity: "user_identity",
22018
22382
  }))
22019
22383
  .pipe(T.ResponsePath("result"));
22020
- export const listAccessApplicationUserPolicyChecks = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22021
- 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,
22022
22391
  output: ListAccessApplicationUserPolicyChecksResponse,
22023
22392
  errors: [],
22024
22393
  }));
@@ -22157,12 +22526,27 @@ export const deleteAccessBookmark = /*@__PURE__*/ /*#__PURE__*/ API.make(() => (
22157
22526
  output: DeleteAccessBookmarkResponse,
22158
22527
  errors: [],
22159
22528
  }));
22160
- export const GetAccessCertificateRequest =
22161
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22529
+ // =============================================================================
22530
+ // AccessCertificate
22531
+ // =============================================================================
22532
+ const GetAccessCertificateBaseFields = {
22162
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,
22539
+ }).pipe(T.Http({
22540
+ method: "GET",
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,
22163
22547
  }).pipe(T.Http({
22164
22548
  method: "GET",
22165
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/{certificateId}",
22549
+ path: "/zones/{zone_id}/access/certificates/{certificateId}",
22166
22550
  }));
22167
22551
  export const GetAccessCertificateResponse =
22168
22552
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22180,16 +22564,30 @@ export const GetAccessCertificateResponse =
22180
22564
  name: "name",
22181
22565
  }))
22182
22566
  .pipe(T.ResponsePath("result"));
22183
- export const getAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22184
- input: GetAccessCertificateRequest,
22567
+ export const getAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22568
+ input: GetAccessCertificateForAccountRequest,
22185
22569
  output: GetAccessCertificateResponse,
22186
22570
  errors: [],
22187
22571
  }));
22188
- export const ListAccessCertificatesRequest =
22189
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
22572
+ export const getAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22573
+ input: GetAccessCertificateForZoneRequest,
22574
+ output: GetAccessCertificateResponse,
22575
+ errors: [],
22576
+ }));
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({
22190
22583
  method: "GET",
22191
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates",
22584
+ path: "/accounts/{account_id}/access/certificates",
22192
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" }));
22193
22591
  export const ListAccessCertificatesResponse =
22194
22592
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22195
22593
  result: Schema.Array(Schema.Struct({
@@ -22220,8 +22618,8 @@ export const ListAccessCertificatesResponse =
22220
22618
  Schema.Null,
22221
22619
  ])),
22222
22620
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
22223
- export const listAccessCertificates = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22224
- input: ListAccessCertificatesRequest,
22621
+ export const listAccessCertificatesForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22622
+ input: ListAccessCertificatesForAccountRequest,
22225
22623
  output: ListAccessCertificatesResponse,
22226
22624
  errors: [],
22227
22625
  pagination: {
@@ -22232,21 +22630,44 @@ export const listAccessCertificates = /*@__PURE__*/ /*#__PURE__*/ API.makePagina
22232
22630
  pageSize: "perPage",
22233
22631
  },
22234
22632
  }));
22235
- export const CreateAccessCertificateRequest =
22236
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22237
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
22238
- 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 = {
22239
22646
  certificate: Schema.String,
22240
22647
  name: Schema.String,
22241
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,
22242
22654
  }).pipe(Schema.encodeKeys({
22243
22655
  certificate: "certificate",
22244
22656
  name: "name",
22245
22657
  associatedHostnames: "associated_hostnames",
22246
22658
  }), T.Http({
22247
22659
  method: "POST",
22248
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates",
22660
+ path: "/accounts/{account_id}/access/certificates",
22249
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" }));
22250
22671
  export const CreateAccessCertificateResponse =
22251
22672
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22252
22673
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -22263,24 +22684,42 @@ export const CreateAccessCertificateResponse =
22263
22684
  name: "name",
22264
22685
  }))
22265
22686
  .pipe(T.ResponsePath("result"));
22266
- export const createAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22267
- input: CreateAccessCertificateRequest,
22687
+ export const createAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22688
+ input: CreateAccessCertificateForAccountRequest,
22268
22689
  output: CreateAccessCertificateResponse,
22269
22690
  errors: [],
22270
22691
  }));
22271
- export const UpdateAccessCertificateRequest =
22272
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22692
+ export const createAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22693
+ input: CreateAccessCertificateForZoneRequest,
22694
+ output: CreateAccessCertificateResponse,
22695
+ errors: [],
22696
+ }));
22697
+ const UpdateAccessCertificateBaseFields = {
22273
22698
  certificateId: Schema.String.pipe(T.HttpPath("certificateId")),
22274
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
22275
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
22276
22699
  associatedHostnames: Schema.Array(Schema.String),
22277
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,
22278
22717
  }).pipe(Schema.encodeKeys({
22279
22718
  associatedHostnames: "associated_hostnames",
22280
22719
  name: "name",
22281
22720
  }), T.Http({
22282
22721
  method: "PUT",
22283
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/{certificateId}",
22722
+ path: "/zones/{zone_id}/access/certificates/{certificateId}",
22284
22723
  }));
22285
22724
  export const UpdateAccessCertificateResponse =
22286
22725
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22298,31 +22737,68 @@ export const UpdateAccessCertificateResponse =
22298
22737
  name: "name",
22299
22738
  }))
22300
22739
  .pipe(T.ResponsePath("result"));
22301
- export const updateAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22302
- input: UpdateAccessCertificateRequest,
22740
+ export const updateAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22741
+ input: UpdateAccessCertificateForAccountRequest,
22303
22742
  output: UpdateAccessCertificateResponse,
22304
22743
  errors: [],
22305
22744
  }));
22306
- export const DeleteAccessCertificateRequest =
22307
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22745
+ export const updateAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22746
+ input: UpdateAccessCertificateForZoneRequest,
22747
+ output: UpdateAccessCertificateResponse,
22748
+ errors: [],
22749
+ }));
22750
+ const DeleteAccessCertificateBaseFields = {
22308
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,
22309
22765
  }).pipe(T.Http({
22310
22766
  method: "DELETE",
22311
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/{certificateId}",
22767
+ path: "/zones/{zone_id}/access/certificates/{certificateId}",
22312
22768
  }));
22313
22769
  export const DeleteAccessCertificateResponse =
22314
22770
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22315
22771
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22316
22772
  }).pipe(T.ResponsePath("result"));
22317
- export const deleteAccessCertificate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22318
- input: DeleteAccessCertificateRequest,
22773
+ export const deleteAccessCertificateForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22774
+ input: DeleteAccessCertificateForAccountRequest,
22775
+ output: DeleteAccessCertificateResponse,
22776
+ errors: [],
22777
+ }));
22778
+ export const deleteAccessCertificateForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
22779
+ input: DeleteAccessCertificateForZoneRequest,
22319
22780
  output: DeleteAccessCertificateResponse,
22320
22781
  errors: [],
22321
22782
  }));
22322
- export const GetAccessCertificateSettingRequest =
22323
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
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({
22792
+ method: "GET",
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({
22324
22800
  method: "GET",
22325
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/settings",
22801
+ path: "/zones/{zone_id}/access/certificates/settings",
22326
22802
  }));
22327
22803
  export const GetAccessCertificateSettingResponse =
22328
22804
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22336,8 +22812,8 @@ export const GetAccessCertificateSettingResponse =
22336
22812
  hostname: "hostname",
22337
22813
  }))),
22338
22814
  });
22339
- export const getAccessCertificateSetting = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22340
- input: GetAccessCertificateSettingRequest,
22815
+ export const getAccessCertificateSettingForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22816
+ input: GetAccessCertificateSettingForAccountRequest,
22341
22817
  output: GetAccessCertificateSettingResponse,
22342
22818
  errors: [],
22343
22819
  pagination: {
@@ -22345,10 +22821,16 @@ export const getAccessCertificateSetting = /*@__PURE__*/ /*#__PURE__*/ API.makeP
22345
22821
  items: "result",
22346
22822
  },
22347
22823
  }));
22348
- export const PutAccessCertificateSettingRequest =
22349
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22350
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
22351
- 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 = {
22352
22834
  settings: Schema.Array(Schema.Struct({
22353
22835
  chinaNetwork: Schema.Boolean,
22354
22836
  clientCertificateForwarding: Schema.Boolean,
@@ -22358,9 +22840,22 @@ export const PutAccessCertificateSettingRequest =
22358
22840
  clientCertificateForwarding: "client_certificate_forwarding",
22359
22841
  hostname: "hostname",
22360
22842
  }))),
22843
+ };
22844
+ export const PutAccessCertificateSettingForAccountRequest =
22845
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22846
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
22847
+ ...PutAccessCertificateSettingBaseFields,
22361
22848
  }).pipe(T.Http({
22362
22849
  method: "PUT",
22363
- path: "/{accountOrZone}/{accountOrZoneId}/access/certificates/settings",
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,
22856
+ }).pipe(T.Http({
22857
+ method: "PUT",
22858
+ path: "/zones/{zone_id}/access/certificates/settings",
22364
22859
  }));
22365
22860
  export const PutAccessCertificateSettingResponse =
22366
22861
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -22374,8 +22869,17 @@ export const PutAccessCertificateSettingResponse =
22374
22869
  hostname: "hostname",
22375
22870
  }))),
22376
22871
  });
22377
- export const putAccessCertificateSetting = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
22378
- 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,
22379
22883
  output: PutAccessCertificateSettingResponse,
22380
22884
  errors: [],
22381
22885
  pagination: {
@@ -22577,12 +23081,25 @@ export const deleteAccessGatewayCa = /*@__PURE__*/ /*#__PURE__*/ API.make(() =>
22577
23081
  output: DeleteAccessGatewayCaResponse,
22578
23082
  errors: [],
22579
23083
  }));
22580
- export const GetAccessGroupRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23084
+ // =============================================================================
23085
+ // AccessGroup
23086
+ // =============================================================================
23087
+ const GetAccessGroupBaseFields = {
22581
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,
22582
23094
  }).pipe(T.Http({
22583
23095
  method: "GET",
22584
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups/{groupId}",
23096
+ path: "/accounts/{account_id}/access/groups/{groupId}",
22585
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}" }));
22586
23103
  export const GetAccessGroupResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
22587
23104
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
22588
23105
  exclude: Schema.optional(Schema.Union([
@@ -23240,16 +23757,27 @@ export const GetAccessGroupResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
23240
23757
  require: "require",
23241
23758
  }))
23242
23759
  .pipe(T.ResponsePath("result"));
23243
- export const getAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23244
- input: GetAccessGroupRequest,
23760
+ export const getAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23761
+ input: GetAccessGroupForAccountRequest,
23245
23762
  output: GetAccessGroupResponse,
23246
23763
  errors: [],
23247
23764
  }));
23248
- export const ListAccessGroupsRequest =
23249
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
23250
- method: "GET",
23251
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups",
23765
+ export const getAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
23766
+ input: GetAccessGroupForZoneRequest,
23767
+ output: GetAccessGroupResponse,
23768
+ errors: [],
23252
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" }));
23253
23781
  export const ListAccessGroupsResponse =
23254
23782
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23255
23783
  result: Schema.Array(Schema.Struct({
@@ -23938,8 +24466,8 @@ export const ListAccessGroupsResponse =
23938
24466
  Schema.Null,
23939
24467
  ])),
23940
24468
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
23941
- export const listAccessGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
23942
- input: ListAccessGroupsRequest,
24469
+ export const listAccessGroupsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
24470
+ input: ListAccessGroupsForAccountRequest,
23943
24471
  output: ListAccessGroupsResponse,
23944
24472
  errors: [],
23945
24473
  pagination: {
@@ -23950,10 +24478,19 @@ export const listAccessGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
23950
24478
  pageSize: "perPage",
23951
24479
  },
23952
24480
  }));
23953
- export const CreateAccessGroupRequest =
23954
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
23955
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
23956
- 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 = {
23957
24494
  include: Schema.Array(Schema.Union([
23958
24495
  Schema.Struct({
23959
24496
  group: Schema.Struct({
@@ -23962,9 +24499,7 @@ export const CreateAccessGroupRequest =
23962
24499
  }),
23963
24500
  Schema.Struct({
23964
24501
  anyValidServiceToken: Schema.Unknown,
23965
- }).pipe(Schema.encodeKeys({
23966
- anyValidServiceToken: "any_valid_service_token",
23967
- })),
24502
+ }).pipe(Schema.encodeKeys({ anyValidServiceToken: "any_valid_service_token" })),
23968
24503
  Schema.Struct({
23969
24504
  authContext: Schema.Struct({
23970
24505
  id: Schema.String,
@@ -24430,16 +24965,29 @@ export const CreateAccessGroupRequest =
24430
24965
  }).pipe(Schema.encodeKeys({ appUid: "app_uid" })),
24431
24966
  }).pipe(Schema.encodeKeys({ linkedAppToken: "linked_app_token" })),
24432
24967
  ]))),
24968
+ };
24969
+ export const CreateAccessGroupForAccountRequest =
24970
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24971
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
24972
+ ...CreateAccessGroupBaseFields,
24433
24973
  }).pipe(Schema.encodeKeys({
24434
24974
  include: "include",
24435
24975
  name: "name",
24436
24976
  exclude: "exclude",
24437
24977
  isDefault: "is_default",
24438
24978
  require: "require",
24439
- }), T.Http({
24440
- method: "POST",
24441
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups",
24442
- }));
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" }));
24443
24991
  export const CreateAccessGroupResponse =
24444
24992
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
24445
24993
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -25098,16 +25646,18 @@ export const CreateAccessGroupResponse =
25098
25646
  require: "require",
25099
25647
  }))
25100
25648
  .pipe(T.ResponsePath("result"));
25101
- export const createAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25102
- input: CreateAccessGroupRequest,
25649
+ export const createAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25650
+ input: CreateAccessGroupForAccountRequest,
25103
25651
  output: CreateAccessGroupResponse,
25104
25652
  errors: [],
25105
25653
  }));
25106
- export const UpdateAccessGroupRequest =
25107
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
25654
+ export const createAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
25655
+ input: CreateAccessGroupForZoneRequest,
25656
+ output: CreateAccessGroupResponse,
25657
+ errors: [],
25658
+ }));
25659
+ const UpdateAccessGroupBaseFields = {
25108
25660
  groupId: Schema.String.pipe(T.HttpPath("groupId")),
25109
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
25110
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
25111
25661
  include: Schema.Array(Schema.Union([
25112
25662
  Schema.Struct({
25113
25663
  group: Schema.Struct({
@@ -25116,9 +25666,7 @@ export const UpdateAccessGroupRequest =
25116
25666
  }),
25117
25667
  Schema.Struct({
25118
25668
  anyValidServiceToken: Schema.Unknown,
25119
- }).pipe(Schema.encodeKeys({
25120
- anyValidServiceToken: "any_valid_service_token",
25121
- })),
25669
+ }).pipe(Schema.encodeKeys({ anyValidServiceToken: "any_valid_service_token" })),
25122
25670
  Schema.Struct({
25123
25671
  authContext: Schema.Struct({
25124
25672
  id: Schema.String,
@@ -25584,6 +26132,11 @@ export const UpdateAccessGroupRequest =
25584
26132
  }).pipe(Schema.encodeKeys({ appUid: "app_uid" })),
25585
26133
  }).pipe(Schema.encodeKeys({ linkedAppToken: "linked_app_token" })),
25586
26134
  ]))),
26135
+ };
26136
+ export const UpdateAccessGroupForAccountRequest =
26137
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26138
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
26139
+ ...UpdateAccessGroupBaseFields,
25587
26140
  }).pipe(Schema.encodeKeys({
25588
26141
  include: "include",
25589
26142
  name: "name",
@@ -25592,8 +26145,19 @@ export const UpdateAccessGroupRequest =
25592
26145
  require: "require",
25593
26146
  }), T.Http({
25594
26147
  method: "PUT",
25595
- path: "/{accountOrZone}/{accountOrZoneId}/access/groups/{groupId}",
26148
+ path: "/accounts/{account_id}/access/groups/{groupId}",
25596
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}" }));
25597
26161
  export const UpdateAccessGroupResponse =
25598
26162
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
25599
26163
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -26252,24 +26816,46 @@ export const UpdateAccessGroupResponse =
26252
26816
  require: "require",
26253
26817
  }))
26254
26818
  .pipe(T.ResponsePath("result"));
26255
- export const updateAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26256
- input: UpdateAccessGroupRequest,
26819
+ export const updateAccessGroupForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26820
+ input: UpdateAccessGroupForAccountRequest,
26257
26821
  output: UpdateAccessGroupResponse,
26258
26822
  errors: [],
26259
26823
  }));
26260
- export const DeleteAccessGroupRequest =
26261
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26824
+ export const updateAccessGroupForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26825
+ input: UpdateAccessGroupForZoneRequest,
26826
+ output: UpdateAccessGroupResponse,
26827
+ errors: [],
26828
+ }));
26829
+ const DeleteAccessGroupBaseFields = {
26262
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,
26263
26836
  }).pipe(T.Http({
26264
26837
  method: "DELETE",
26265
- 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}",
26266
26847
  }));
26267
26848
  export const DeleteAccessGroupResponse =
26268
26849
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
26269
26850
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
26270
26851
  }).pipe(T.ResponsePath("result"));
26271
- export const deleteAccessGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
26272
- 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,
26273
26859
  output: DeleteAccessGroupResponse,
26274
26860
  errors: [],
26275
26861
  }));
@@ -29979,12 +30565,27 @@ export const deleteAccessPolicy = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
29979
30565
  output: DeleteAccessPolicyResponse,
29980
30566
  errors: [],
29981
30567
  }));
29982
- export const GetAccessServiceTokenRequest =
29983
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30568
+ // =============================================================================
30569
+ // AccessServiceToken
30570
+ // =============================================================================
30571
+ const GetAccessServiceTokenBaseFields = {
29984
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,
29985
30586
  }).pipe(T.Http({
29986
30587
  method: "GET",
29987
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens/{serviceTokenId}",
30588
+ path: "/zones/{zone_id}/access/service_tokens/{serviceTokenId}",
29988
30589
  }));
29989
30590
  export const GetAccessServiceTokenResponse =
29990
30591
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -30002,16 +30603,30 @@ export const GetAccessServiceTokenResponse =
30002
30603
  name: "name",
30003
30604
  }))
30004
30605
  .pipe(T.ResponsePath("result"));
30005
- export const getAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30006
- input: GetAccessServiceTokenRequest,
30606
+ export const getAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30607
+ input: GetAccessServiceTokenForAccountRequest,
30007
30608
  output: GetAccessServiceTokenResponse,
30008
30609
  errors: [],
30009
30610
  }));
30010
- export const ListAccessServiceTokensRequest =
30011
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({}).pipe(T.Http({
30611
+ export const getAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30612
+ input: GetAccessServiceTokenForZoneRequest,
30613
+ output: GetAccessServiceTokenResponse,
30614
+ errors: [],
30615
+ }));
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({
30012
30622
  method: "GET",
30013
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens",
30623
+ path: "/accounts/{account_id}/access/service_tokens",
30014
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" }));
30015
30630
  export const ListAccessServiceTokensResponse =
30016
30631
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30017
30632
  result: Schema.Array(Schema.Struct({
@@ -30042,8 +30657,8 @@ export const ListAccessServiceTokensResponse =
30042
30657
  Schema.Null,
30043
30658
  ])),
30044
30659
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
30045
- export const listAccessServiceTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30046
- input: ListAccessServiceTokensRequest,
30660
+ export const listAccessServiceTokensForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
30661
+ input: ListAccessServiceTokensForAccountRequest,
30047
30662
  output: ListAccessServiceTokensResponse,
30048
30663
  errors: [],
30049
30664
  pagination: {
@@ -30054,14 +30669,28 @@ export const listAccessServiceTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePagin
30054
30669
  pageSize: "perPage",
30055
30670
  },
30056
30671
  }));
30057
- export const CreateAccessServiceTokenRequest =
30058
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30059
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
30060
- 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 = {
30061
30685
  name: Schema.String,
30062
30686
  clientSecretVersion: Schema.optional(Schema.Number),
30063
30687
  duration: Schema.optional(Schema.String),
30064
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,
30065
30694
  }).pipe(Schema.encodeKeys({
30066
30695
  name: "name",
30067
30696
  clientSecretVersion: "client_secret_version",
@@ -30069,8 +30698,18 @@ export const CreateAccessServiceTokenRequest =
30069
30698
  previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30070
30699
  }), T.Http({
30071
30700
  method: "POST",
30072
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens",
30701
+ path: "/accounts/{account_id}/access/service_tokens",
30073
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" }));
30074
30713
  export const CreateAccessServiceTokenResponse =
30075
30714
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30076
30715
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -30087,20 +30726,27 @@ export const CreateAccessServiceTokenResponse =
30087
30726
  name: "name",
30088
30727
  }))
30089
30728
  .pipe(T.ResponsePath("result"));
30090
- export const createAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30091
- input: CreateAccessServiceTokenRequest,
30729
+ export const createAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30730
+ input: CreateAccessServiceTokenForAccountRequest,
30092
30731
  output: CreateAccessServiceTokenResponse,
30093
30732
  errors: [],
30094
30733
  }));
30095
- export const UpdateAccessServiceTokenRequest =
30096
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30734
+ export const createAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30735
+ input: CreateAccessServiceTokenForZoneRequest,
30736
+ output: CreateAccessServiceTokenResponse,
30737
+ errors: [],
30738
+ }));
30739
+ const UpdateAccessServiceTokenBaseFields = {
30097
30740
  serviceTokenId: Schema.String.pipe(T.HttpPath("serviceTokenId")),
30098
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
30099
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
30100
30741
  clientSecretVersion: Schema.optional(Schema.Number),
30101
30742
  duration: Schema.optional(Schema.String),
30102
30743
  name: Schema.optional(Schema.String),
30103
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,
30104
30750
  }).pipe(Schema.encodeKeys({
30105
30751
  clientSecretVersion: "client_secret_version",
30106
30752
  duration: "duration",
@@ -30108,7 +30754,20 @@ export const UpdateAccessServiceTokenRequest =
30108
30754
  previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30109
30755
  }), T.Http({
30110
30756
  method: "PUT",
30111
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens/{serviceTokenId}",
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,
30763
+ }).pipe(Schema.encodeKeys({
30764
+ clientSecretVersion: "client_secret_version",
30765
+ duration: "duration",
30766
+ name: "name",
30767
+ previousClientSecretExpiresAt: "previous_client_secret_expires_at",
30768
+ }), T.Http({
30769
+ method: "PUT",
30770
+ path: "/zones/{zone_id}/access/service_tokens/{serviceTokenId}",
30112
30771
  }));
30113
30772
  export const UpdateAccessServiceTokenResponse =
30114
30773
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -30126,17 +30785,34 @@ export const UpdateAccessServiceTokenResponse =
30126
30785
  name: "name",
30127
30786
  }))
30128
30787
  .pipe(T.ResponsePath("result"));
30129
- export const updateAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30130
- input: UpdateAccessServiceTokenRequest,
30788
+ export const updateAccessServiceTokenForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30789
+ input: UpdateAccessServiceTokenForAccountRequest,
30131
30790
  output: UpdateAccessServiceTokenResponse,
30132
30791
  errors: [],
30133
30792
  }));
30134
- export const DeleteAccessServiceTokenRequest =
30135
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
30793
+ export const updateAccessServiceTokenForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30794
+ input: UpdateAccessServiceTokenForZoneRequest,
30795
+ output: UpdateAccessServiceTokenResponse,
30796
+ errors: [],
30797
+ }));
30798
+ const DeleteAccessServiceTokenBaseFields = {
30136
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,
30805
+ }).pipe(T.Http({
30806
+ method: "DELETE",
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,
30137
30813
  }).pipe(T.Http({
30138
30814
  method: "DELETE",
30139
- path: "/{accountOrZone}/{accountOrZoneId}/access/service_tokens/{serviceTokenId}",
30815
+ path: "/zones/{zone_id}/access/service_tokens/{serviceTokenId}",
30140
30816
  }));
30141
30817
  export const DeleteAccessServiceTokenResponse =
30142
30818
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -30154,8 +30830,13 @@ export const DeleteAccessServiceTokenResponse =
30154
30830
  name: "name",
30155
30831
  }))
30156
30832
  .pipe(T.ResponsePath("result"));
30157
- export const deleteAccessServiceToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
30158
- 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,
30159
30840
  output: DeleteAccessServiceTokenResponse,
30160
30841
  errors: [],
30161
30842
  }));
@@ -48413,12 +49094,27 @@ export const deleteGatewayRule = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
48413
49094
  output: DeleteGatewayRuleResponse,
48414
49095
  errors: [],
48415
49096
  }));
48416
- export const GetIdentityProviderRequest =
48417
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49097
+ // =============================================================================
49098
+ // IdentityProvider
49099
+ // =============================================================================
49100
+ const GetIdentityProviderBaseFields = {
48418
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,
48419
49115
  }).pipe(T.Http({
48420
49116
  method: "GET",
48421
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers/{identityProviderId}",
49117
+ path: "/zones/{zone_id}/access/identity_providers/{identityProviderId}",
48422
49118
  }));
48423
49119
  export const GetIdentityProviderResponse =
48424
49120
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
@@ -49099,15 +49795,32 @@ export const GetIdentityProviderResponse =
49099
49795
  scimConfig: "scim_config",
49100
49796
  })),
49101
49797
  ]).pipe(T.ResponsePath("result"));
49102
- export const getIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
49103
- 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,
49104
49805
  output: GetIdentityProviderResponse,
49105
49806
  errors: [],
49106
49807
  }));
49107
- export const ListIdentityProvidersRequest =
49108
- /*@__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({
49109
49822
  method: "GET",
49110
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers",
49823
+ path: "/zones/{zone_id}/access/identity_providers",
49111
49824
  }));
49112
49825
  export const ListIdentityProvidersResponse =
49113
49826
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
@@ -49754,8 +50467,8 @@ export const ListIdentityProvidersResponse =
49754
50467
  Schema.Null,
49755
50468
  ])),
49756
50469
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
49757
- export const listIdentityProviders = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
49758
- input: ListIdentityProvidersRequest,
50470
+ export const listIdentityProvidersForAccount = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
50471
+ input: ListIdentityProvidersForAccountRequest,
49759
50472
  output: ListIdentityProvidersResponse,
49760
50473
  errors: [],
49761
50474
  pagination: {
@@ -49766,10 +50479,19 @@ export const listIdentityProviders = /*@__PURE__*/ /*#__PURE__*/ API.makePaginat
49766
50479
  pageSize: "perPage",
49767
50480
  },
49768
50481
  }));
49769
- export const CreateIdentityProviderRequest =
49770
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
49771
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
49772
- 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 = {
49773
50495
  config: Schema.Struct({
49774
50496
  claims: Schema.optional(Schema.Array(Schema.String)),
49775
50497
  clientId: Schema.optional(Schema.String),
@@ -49817,6 +50539,11 @@ export const CreateIdentityProviderRequest =
49817
50539
  seatDeprovision: "seat_deprovision",
49818
50540
  userDeprovision: "user_deprovision",
49819
50541
  }))),
50542
+ };
50543
+ export const CreateIdentityProviderForAccountRequest =
50544
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
50545
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
50546
+ ...CreateIdentityProviderBaseFields,
49820
50547
  }).pipe(Schema.encodeKeys({
49821
50548
  config: "config",
49822
50549
  name: "name",
@@ -49824,7 +50551,20 @@ export const CreateIdentityProviderRequest =
49824
50551
  scimConfig: "scim_config",
49825
50552
  }), T.Http({
49826
50553
  method: "POST",
49827
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers",
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,
50560
+ }).pipe(Schema.encodeKeys({
50561
+ config: "config",
50562
+ name: "name",
50563
+ type: "type",
50564
+ scimConfig: "scim_config",
50565
+ }), T.Http({
50566
+ method: "POST",
50567
+ path: "/zones/{zone_id}/access/identity_providers",
49828
50568
  }));
49829
50569
  export const CreateIdentityProviderResponse =
49830
50570
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
@@ -50505,16 +51245,18 @@ export const CreateIdentityProviderResponse =
50505
51245
  scimConfig: "scim_config",
50506
51246
  })),
50507
51247
  ]).pipe(T.ResponsePath("result"));
50508
- export const createIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
50509
- input: CreateIdentityProviderRequest,
51248
+ export const createIdentityProviderForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51249
+ input: CreateIdentityProviderForAccountRequest,
50510
51250
  output: CreateIdentityProviderResponse,
50511
51251
  errors: [],
50512
51252
  }));
50513
- export const UpdateIdentityProviderRequest =
50514
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51253
+ export const createIdentityProviderForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51254
+ input: CreateIdentityProviderForZoneRequest,
51255
+ output: CreateIdentityProviderResponse,
51256
+ errors: [],
51257
+ }));
51258
+ const UpdateIdentityProviderBaseFields = {
50515
51259
  identityProviderId: Schema.String.pipe(T.HttpPath("identityProviderId")),
50516
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
50517
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
50518
51260
  config: Schema.Struct({
50519
51261
  claims: Schema.optional(Schema.Array(Schema.String)),
50520
51262
  clientId: Schema.optional(Schema.String),
@@ -50562,6 +51304,24 @@ export const UpdateIdentityProviderRequest =
50562
51304
  seatDeprovision: "seat_deprovision",
50563
51305
  userDeprovision: "user_deprovision",
50564
51306
  }))),
51307
+ };
51308
+ export const UpdateIdentityProviderForAccountRequest =
51309
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51310
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
51311
+ ...UpdateIdentityProviderBaseFields,
51312
+ }).pipe(Schema.encodeKeys({
51313
+ config: "config",
51314
+ name: "name",
51315
+ type: "type",
51316
+ scimConfig: "scim_config",
51317
+ }), T.Http({
51318
+ method: "PUT",
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,
50565
51325
  }).pipe(Schema.encodeKeys({
50566
51326
  config: "config",
50567
51327
  name: "name",
@@ -50569,7 +51329,7 @@ export const UpdateIdentityProviderRequest =
50569
51329
  scimConfig: "scim_config",
50570
51330
  }), T.Http({
50571
51331
  method: "PUT",
50572
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers/{identityProviderId}",
51332
+ path: "/zones/{zone_id}/access/identity_providers/{identityProviderId}",
50573
51333
  }));
50574
51334
  export const UpdateIdentityProviderResponse =
50575
51335
  /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
@@ -51250,24 +52010,46 @@ export const UpdateIdentityProviderResponse =
51250
52010
  scimConfig: "scim_config",
51251
52011
  })),
51252
52012
  ]).pipe(T.ResponsePath("result"));
51253
- export const updateIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51254
- input: UpdateIdentityProviderRequest,
52013
+ export const updateIdentityProviderForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52014
+ input: UpdateIdentityProviderForAccountRequest,
51255
52015
  output: UpdateIdentityProviderResponse,
51256
52016
  errors: [],
51257
52017
  }));
51258
- export const DeleteIdentityProviderRequest =
51259
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52018
+ export const updateIdentityProviderForZone = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52019
+ input: UpdateIdentityProviderForZoneRequest,
52020
+ output: UpdateIdentityProviderResponse,
52021
+ errors: [],
52022
+ }));
52023
+ const DeleteIdentityProviderBaseFields = {
51260
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,
51261
52038
  }).pipe(T.Http({
51262
52039
  method: "DELETE",
51263
- path: "/{accountOrZone}/{accountOrZoneId}/access/identity_providers/{identityProviderId}",
52040
+ path: "/zones/{zone_id}/access/identity_providers/{identityProviderId}",
51264
52041
  }));
51265
52042
  export const DeleteIdentityProviderResponse =
51266
52043
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
51267
52044
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
51268
52045
  }).pipe(T.ResponsePath("result"));
51269
- export const deleteIdentityProvider = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
51270
- 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,
51271
52053
  output: DeleteIdentityProviderResponse,
51272
52054
  errors: [],
51273
52055
  }));
@@ -52277,11 +53059,23 @@ export const deleteNetworkVirtualNetwork = /*@__PURE__*/ /*#__PURE__*/ API.make(
52277
53059
  output: DeleteNetworkVirtualNetworkResponse,
52278
53060
  errors: [],
52279
53061
  }));
52280
- export const ListOrganizationsRequest =
52281
- /*@__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({
52282
53071
  method: "GET",
52283
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations",
53072
+ path: "/accounts/{account_id}/access/organizations",
52284
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" }));
52285
53079
  export const ListOrganizationsResponse =
52286
53080
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52287
53081
  allowAuthenticateViaWarp: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -52334,15 +53128,17 @@ export const ListOrganizationsResponse =
52334
53128
  warpAuthSessionDuration: "warp_auth_session_duration",
52335
53129
  }))
52336
53130
  .pipe(T.ResponsePath("result"));
52337
- export const listOrganizations = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52338
- input: ListOrganizationsRequest,
53131
+ export const listOrganizationsForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53132
+ input: ListOrganizationsForAccountRequest,
52339
53133
  output: ListOrganizationsResponse,
52340
53134
  errors: [],
52341
53135
  }));
52342
- export const CreateOrganizationRequest =
52343
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52344
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
52345
- 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 = {
52346
53142
  authDomain: Schema.String,
52347
53143
  name: Schema.String,
52348
53144
  allowAuthenticateViaWarp: Schema.optional(Schema.Boolean),
@@ -52365,6 +53161,11 @@ export const CreateOrganizationRequest =
52365
53161
  uiReadOnlyToggleReason: Schema.optional(Schema.String),
52366
53162
  userSeatExpirationInactiveTime: Schema.optional(Schema.String),
52367
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,
52368
53169
  }).pipe(Schema.encodeKeys({
52369
53170
  authDomain: "auth_domain",
52370
53171
  name: "name",
@@ -52378,8 +53179,24 @@ export const CreateOrganizationRequest =
52378
53179
  warpAuthSessionDuration: "warp_auth_session_duration",
52379
53180
  }), T.Http({
52380
53181
  method: "POST",
52381
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations",
53182
+ path: "/accounts/{account_id}/access/organizations",
52382
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" }));
52383
53200
  export const CreateOrganizationResponse =
52384
53201
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52385
53202
  allowAuthenticateViaWarp: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -52432,15 +53249,17 @@ export const CreateOrganizationResponse =
52432
53249
  warpAuthSessionDuration: "warp_auth_session_duration",
52433
53250
  }))
52434
53251
  .pipe(T.ResponsePath("result"));
52435
- export const createOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52436
- input: CreateOrganizationRequest,
53252
+ export const createOrganizationForAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53253
+ input: CreateOrganizationForAccountRequest,
52437
53254
  output: CreateOrganizationResponse,
52438
53255
  errors: [],
52439
53256
  }));
52440
- export const UpdateOrganizationRequest =
52441
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52442
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
52443
- 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 = {
52444
53263
  allowAuthenticateViaWarp: Schema.optional(Schema.Boolean),
52445
53264
  authDomain: Schema.optional(Schema.String),
52446
53265
  autoRedirectToIdentity: Schema.optional(Schema.Boolean),
@@ -52470,6 +53289,11 @@ export const UpdateOrganizationRequest =
52470
53289
  uiReadOnlyToggleReason: Schema.optional(Schema.String),
52471
53290
  userSeatExpirationInactiveTime: Schema.optional(Schema.String),
52472
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,
52473
53297
  }).pipe(Schema.encodeKeys({
52474
53298
  allowAuthenticateViaWarp: "allow_authenticate_via_warp",
52475
53299
  authDomain: "auth_domain",
@@ -52484,8 +53308,25 @@ export const UpdateOrganizationRequest =
52484
53308
  warpAuthSessionDuration: "warp_auth_session_duration",
52485
53309
  }), T.Http({
52486
53310
  method: "PUT",
52487
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations",
53311
+ path: "/accounts/{account_id}/access/organizations",
52488
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" }));
52489
53330
  export const UpdateOrganizationResponse =
52490
53331
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
52491
53332
  allowAuthenticateViaWarp: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
@@ -52538,8 +53379,13 @@ export const UpdateOrganizationResponse =
52538
53379
  warpAuthSessionDuration: "warp_auth_session_duration",
52539
53380
  }))
52540
53381
  .pipe(T.ResponsePath("result"));
52541
- export const updateOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
52542
- 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,
52543
53389
  output: UpdateOrganizationResponse,
52544
53390
  errors: [],
52545
53391
  }));
@@ -53487,15 +54333,37 @@ export const overTimeDexFleetStatus = /*@__PURE__*/ /*#__PURE__*/ API.make(() =>
53487
54333
  output: OverTimeDexFleetStatusResponse,
53488
54334
  errors: [],
53489
54335
  }));
53490
- export const RevokeTokensAccessApplicationRequest =
53491
- /*@__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({
53492
54355
  method: "POST",
53493
- path: "/{accountOrZone}/{accountOrZoneId}/access/apps/{appId}/revoke_tokens",
54356
+ path: "/zones/{zone_id}/access/apps/{appId}/revoke_tokens",
53494
54357
  }));
53495
54358
  export const RevokeTokensAccessApplicationResponse =
53496
54359
  /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
53497
- export const revokeTokensAccessApplication = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
53498
- 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,
53499
54367
  output: RevokeTokensAccessApplicationResponse,
53500
54368
  errors: [],
53501
54369
  }));
@@ -54934,15 +55802,33 @@ export const getTunnelWarpConnectorToken = /*@__PURE__*/ /*#__PURE__*/ API.make(
54934
55802
  output: GetTunnelWarpConnectorTokenResponse,
54935
55803
  errors: [],
54936
55804
  }));
54937
- export const RevokeUsersOrganizationRequest =
54938
- /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
54939
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
54940
- zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
55805
+ // =============================================================================
55806
+ // UsersOrganization
55807
+ // =============================================================================
55808
+ const RevokeUsersOrganizationBaseFields = {
54941
55809
  queryDevices: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("query_devices")),
54942
55810
  email: Schema.String,
54943
55811
  bodyDevices: Schema.optional(Schema.Boolean),
54944
55812
  userUid: Schema.optional(Schema.String),
54945
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,
54946
55832
  }).pipe(Schema.encodeKeys({
54947
55833
  email: "email",
54948
55834
  bodyDevices: "body_devices",
@@ -54950,12 +55836,17 @@ export const RevokeUsersOrganizationRequest =
54950
55836
  warpSessionReauth: "warp_session_reauth",
54951
55837
  }), T.Http({
54952
55838
  method: "POST",
54953
- path: "/{accountOrZone}/{accountOrZoneId}/access/organizations/revoke_user",
55839
+ path: "/zones/{zone_id}/access/organizations/revoke_user",
54954
55840
  }));
54955
55841
  export const RevokeUsersOrganizationResponse =
54956
55842
  /*@__PURE__*/ /*#__PURE__*/ Schema.Literals([true, false]).pipe(T.ResponsePath("result"));
54957
- export const revokeUsersOrganization = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
54958
- 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,
54959
55850
  output: RevokeUsersOrganizationResponse,
54960
55851
  errors: [],
54961
55852
  }));