@zitadel/api 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/dist/{api-factory-BPmRCU7u.mjs → api-factory-B2kd991F.mjs} +14 -2
  2. package/dist/api-factory-B2kd991F.mjs.map +1 -0
  3. package/dist/{api-factory-DCzYxpdV.d.mts → api-factory-DW48-EMM.d.mts} +8 -3
  4. package/dist/api-factory-DW48-EMM.d.mts.map +1 -0
  5. package/dist/generated/endpoints/zitadelNextGen.d.mts +2 -2
  6. package/dist/generated/endpoints/zitadelNextGen.mjs +1 -1
  7. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts +225 -109
  8. package/dist/generated/endpoints/zitadelNextGen.msw.d.mts.map +1 -1
  9. package/dist/generated/endpoints/zitadelNextGen.msw.mjs +737 -41
  10. package/dist/generated/endpoints/zitadelNextGen.msw.mjs.map +1 -1
  11. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts +594 -182
  12. package/dist/generated/endpoints/zitadelNextGen.zod.d.mts.map +1 -1
  13. package/dist/generated/endpoints/zitadelNextGen.zod.mjs +788 -347
  14. package/dist/generated/endpoints/zitadelNextGen.zod.mjs.map +1 -1
  15. package/dist/generated/model/index.d.mts +2 -2
  16. package/dist/generated/model/index.mjs +17 -3
  17. package/dist/generated/model/index.mjs.map +1 -1
  18. package/dist/generated/operations.d.mts.map +1 -1
  19. package/dist/generated/operations.mjs +46 -4
  20. package/dist/generated/operations.mjs.map +1 -1
  21. package/dist/{index-BwYxe7Dw.d.mts → index-REGtKmAu.d.mts} +1466 -327
  22. package/dist/index-REGtKmAu.d.mts.map +1 -0
  23. package/dist/runtime/api-factory.d.mts +1 -1
  24. package/dist/runtime/api-factory.mjs +1 -1
  25. package/dist/runtime/config.d.mts +1 -1
  26. package/dist/runtime/config.mjs +1 -1
  27. package/dist/{zitadelNextGen-SGK-fW1x.d.mts → zitadelNextGen-C2Qcm9jl.d.mts} +65 -20
  28. package/dist/zitadelNextGen-C2Qcm9jl.d.mts.map +1 -0
  29. package/dist/{zitadelNextGen-DsPFGqLs.mjs → zitadelNextGen-CDqt2m_4.mjs} +141 -558
  30. package/dist/zitadelNextGen-CDqt2m_4.mjs.map +1 -0
  31. package/package.json +2 -2
  32. package/src/generated/endpoints/zitadelNextGen.faker.ts +14 -10
  33. package/src/generated/endpoints/zitadelNextGen.msw.ts +278 -216
  34. package/src/generated/endpoints/zitadelNextGen.ts +209 -736
  35. package/src/generated/endpoints/zitadelNextGen.zod.ts +674 -312
  36. package/src/generated/model/acceptInvitation200.ts +84 -12
  37. package/src/generated/model/acceptInvitationDefault.ts +18 -0
  38. package/src/generated/model/buildReleaseBodyBundle.ts +1 -2
  39. package/src/generated/model/buildReleaseBodyBundleOauth.ts +1 -2
  40. package/src/generated/model/buildReleaseParams.ts +7 -7
  41. package/src/generated/model/cancelInvitationParams.ts +7 -7
  42. package/src/generated/model/createAuthAttempt201ChallengesItemPayload.ts +1 -1
  43. package/src/generated/model/createAuthAttemptChallenge201Payload.ts +1 -1
  44. package/src/generated/model/createDeploymentParams.ts +7 -7
  45. package/src/generated/model/createGrantParams.ts +7 -7
  46. package/src/generated/model/createInvitation201.ts +84 -12
  47. package/src/generated/model/createInvitationBody.ts +4 -4
  48. package/src/generated/model/createInvitationParams.ts +7 -7
  49. package/src/generated/model/createReleaseParams.ts +7 -7
  50. package/src/generated/model/createTeamParams.ts +7 -7
  51. package/src/generated/model/createUserParams.ts +23 -23
  52. package/src/generated/model/deleteGrantParams.ts +7 -7
  53. package/src/generated/model/deleteVariableParams.ts +12 -12
  54. package/src/generated/model/evaluatePolicyParams.ts +7 -7
  55. package/src/generated/model/exchangeHandoffParams.ts +7 -7
  56. package/src/generated/model/getApplicationParams.ts +7 -7
  57. package/src/generated/model/getAuthAttempt200ChallengesItemPayload.ts +1 -1
  58. package/src/generated/model/getDeploymentParams.ts +7 -7
  59. package/src/generated/model/getEvent200.ts +192 -10
  60. package/src/generated/model/getEventParams.ts +7 -7
  61. package/src/generated/model/getGrantParams.ts +13 -13
  62. package/src/generated/model/getIdpParams.ts +7 -7
  63. package/src/generated/model/getIdpRevisionParams.ts +7 -7
  64. package/src/generated/model/getInvitation200.ts +84 -12
  65. package/src/generated/model/getInvitationParams.ts +7 -7
  66. package/src/generated/model/getMyPasswordStateParams.ts +16 -16
  67. package/src/generated/model/getMySessionCsrfTokenParams.ts +16 -16
  68. package/src/generated/model/getMySessionParams.ts +16 -16
  69. package/src/generated/model/getMyUserParams.ts +16 -16
  70. package/src/generated/model/getMyUserSchemaParams.ts +16 -16
  71. package/src/generated/model/getOAuthSettings200.ts +1 -2
  72. package/src/generated/model/getOAuthSettings200Oauth.ts +1 -2
  73. package/src/generated/model/getOAuthSettingsDefault.ts +18 -0
  74. package/src/generated/model/getPolicyParams.ts +7 -7
  75. package/src/generated/model/getPolicyRevisionParams.ts +7 -7
  76. package/src/generated/model/getProjectClaimStatusParams.ts +5 -5
  77. package/src/generated/model/getProjectClaimWindowParams.ts +5 -5
  78. package/src/generated/model/getReleaseParams.ts +7 -7
  79. package/src/generated/model/getSchemaParams.ts +11 -11
  80. package/src/generated/model/getUserParams.ts +21 -21
  81. package/src/generated/model/getVariableParams.ts +12 -12
  82. package/src/generated/model/index.ts +18 -7
  83. package/src/generated/model/listBrandingParams.ts +20 -20
  84. package/src/generated/model/listDeploymentVariablesParams.ts +7 -7
  85. package/src/generated/model/listDeploymentsParams.ts +42 -44
  86. package/src/generated/model/listEvents200EventsItem.ts +192 -10
  87. package/src/generated/model/listEventsParams.ts +83 -105
  88. package/src/generated/model/listFlowDefinitionsParams.ts +44 -48
  89. package/src/generated/model/listIdpRevisionsParams.ts +20 -20
  90. package/src/generated/model/listInvitations200InvitationsItem.ts +84 -12
  91. package/src/generated/model/listInvitationsExpandItem.ts +25 -0
  92. package/src/generated/model/listInvitationsParams.ts +31 -31
  93. package/src/generated/model/listInvitationsStatusItem.ts +22 -0
  94. package/src/generated/model/listMyIdentityLinksParams.ts +29 -29
  95. package/src/generated/model/listMyPasskeysParams.ts +29 -29
  96. package/src/generated/model/listMyProjectsParams.ts +52 -52
  97. package/src/generated/model/listMyTeamsParams.ts +29 -29
  98. package/src/generated/model/listPoliciesParams.ts +22 -24
  99. package/src/generated/model/listPolicyRevisionsParams.ts +20 -20
  100. package/src/generated/model/listProjectAdminsParams.ts +13 -13
  101. package/src/generated/model/listProjectMembers200.ts +20 -0
  102. package/src/generated/model/listProjectMembers200MembersItem.ts +38 -0
  103. package/src/generated/model/listProjectMembers200MembersItemRelation.ts +20 -0
  104. package/src/generated/model/listProjectMembers200MembersItemSourcesItem.ts +55 -0
  105. package/src/generated/model/listProjectMembers200MembersItemUser.ts +40 -0
  106. package/src/generated/model/{acceptInvitation429.ts → listProjectMembers400.ts} +3 -3
  107. package/src/generated/model/{lookupInvitation429Details.ts → listProjectMembers400Details.ts} +1 -1
  108. package/src/generated/model/{lookupInvitation429.ts → listProjectMembers401.ts} +3 -3
  109. package/src/generated/model/{acceptInvitation429Details.ts → listProjectMembers401Details.ts} +1 -1
  110. package/src/generated/model/{rejectInvitation429.ts → listProjectMembers403.ts} +3 -3
  111. package/src/generated/model/{rejectInvitation429Details.ts → listProjectMembers403Details.ts} +1 -1
  112. package/src/generated/model/listProjectMembers404.ts +20 -0
  113. package/src/generated/model/listProjectMembers404Details.ts +12 -0
  114. package/src/generated/model/listProjectMembersDefault.ts +81 -0
  115. package/src/generated/model/listProjectMembersParams.ts +29 -0
  116. package/src/generated/model/listProjectMembersRelation.ts +16 -0
  117. package/src/generated/model/listProjectPreviewsParams.ts +13 -13
  118. package/src/generated/model/listReleasesParams.ts +60 -60
  119. package/src/generated/model/listSchemasParams.ts +54 -56
  120. package/src/generated/model/listUserIdentityLinksParams.ts +13 -13
  121. package/src/generated/model/listUserPasskeysParams.ts +13 -13
  122. package/src/generated/model/listUserTeamsParams.ts +13 -13
  123. package/src/generated/model/listVariablesParams.ts +12 -12
  124. package/src/generated/model/lookupInvitation200.ts +58 -0
  125. package/src/generated/model/publishApplicationParams.ts +7 -7
  126. package/src/generated/model/publishBrandingParams.ts +7 -7
  127. package/src/generated/model/publishIdpParams.ts +7 -7
  128. package/src/generated/model/publishPolicyParams.ts +7 -7
  129. package/src/generated/model/publishSchemaParams.ts +12 -12
  130. package/src/generated/model/queryGrantsParams.ts +7 -7
  131. package/src/generated/model/queryIdpsParams.ts +7 -7
  132. package/src/generated/model/querySessionsParams.ts +7 -7
  133. package/src/generated/model/queryTeamsParams.ts +6 -6
  134. package/src/generated/model/queryUsersParams.ts +6 -6
  135. package/src/generated/model/rejectInvitation200.ts +84 -12
  136. package/src/generated/model/rejectInvitationDefault.ts +18 -0
  137. package/src/generated/model/revokeMySessionParams.ts +16 -16
  138. package/src/generated/model/revokeReleaseParams.ts +7 -7
  139. package/src/generated/model/rollbackDeploymentParams.ts +7 -7
  140. package/src/generated/model/searchParams.ts +7 -7
  141. package/src/generated/model/setVariablesParams.ts +12 -12
  142. package/src/generated/model/updateMyUserParams.ts +16 -16
  143. package/src/generated/model/verifyAuthAttemptChallenge200ChallengesItemPayload.ts +1 -1
  144. package/src/generated/operations.ts +46 -4
  145. package/src/generated/paging.ts +5 -0
  146. package/dist/api-factory-BPmRCU7u.mjs.map +0 -1
  147. package/dist/api-factory-DCzYxpdV.d.mts.map +0 -1
  148. package/dist/index-BwYxe7Dw.d.mts.map +0 -1
  149. package/dist/zitadelNextGen-DsPFGqLs.mjs.map +0 -1
  150. package/dist/zitadelNextGen-SGK-fW1x.d.mts.map +0 -1
  151. package/src/generated/model/listInvitationsStatus.ts +0 -17
@@ -2083,6 +2083,70 @@ const getListProjectAdminsResponseMock = (overrideResponse = {}) => ({
2083
2083
  } }), null]),
2084
2084
  ...overrideResponse
2085
2085
  });
2086
+ const getListProjectMembersResponseMock = (overrideResponse = {}) => ({
2087
+ members: Array.from({ length: faker.number.int({
2088
+ min: 1,
2089
+ max: 10
2090
+ }) }, (_, i) => i + 1).map(() => ({
2091
+ user: {
2092
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
2093
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
2094
+ min: 10,
2095
+ max: 20
2096
+ } }), void 0]),
2097
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
2098
+ min: 10,
2099
+ max: 20
2100
+ } }), void 0]),
2101
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
2102
+ min: 10,
2103
+ max: 20
2104
+ } }), void 0])
2105
+ },
2106
+ relation: faker.helpers.arrayElement([
2107
+ "viewer",
2108
+ "editor",
2109
+ "admin"
2110
+ ]),
2111
+ sources: Array.from({ length: faker.number.int({
2112
+ min: 1,
2113
+ max: 10
2114
+ }) }, (_, i) => i + 1).map(() => faker.helpers.arrayElement([{
2115
+ type: faker.helpers.arrayElement(["owning_team"]),
2116
+ team: {
2117
+ team_id: faker.string.alpha({ length: {
2118
+ min: 10,
2119
+ max: 20
2120
+ } }),
2121
+ name: faker.helpers.arrayElement([faker.string.alpha({ length: {
2122
+ min: 10,
2123
+ max: 20
2124
+ } }), void 0])
2125
+ }
2126
+ }, {
2127
+ type: faker.helpers.arrayElement(["grant"]),
2128
+ grant_id: faker.string.alpha({ length: {
2129
+ min: 10,
2130
+ max: 20
2131
+ } }),
2132
+ team: faker.helpers.arrayElement([{
2133
+ team_id: faker.string.alpha({ length: {
2134
+ min: 10,
2135
+ max: 20
2136
+ } }),
2137
+ name: faker.helpers.arrayElement([faker.string.alpha({ length: {
2138
+ min: 10,
2139
+ max: 20
2140
+ } }), void 0])
2141
+ }, void 0])
2142
+ }]))
2143
+ })),
2144
+ next_page_token: faker.helpers.arrayElement([faker.string.alpha({ length: {
2145
+ min: 10,
2146
+ max: 20
2147
+ } }), null]),
2148
+ ...overrideResponse
2149
+ });
2086
2150
  const getCreateProjectClaimResponseMock = (overrideResponse = {}) => ({
2087
2151
  claim_url: faker.internet.url(),
2088
2152
  challenge_id: faker.helpers.fromRegExp("^ch_[a-zA-Z0-9_-]+$"),
@@ -4862,11 +4926,26 @@ const getCreateInvitationResponseMock = () => faker.helpers.arrayElement([{
4862
4926
  min: 1,
4863
4927
  max: 20
4864
4928
  } }),
4865
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
4929
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
4866
4930
  min: 10,
4867
4931
  max: 20
4868
4932
  } }), null]),
4869
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
4933
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
4934
+ inviter: faker.helpers.arrayElement([{
4935
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
4936
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
4937
+ min: 10,
4938
+ max: 20
4939
+ } }), void 0]),
4940
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
4941
+ min: 10,
4942
+ max: 20
4943
+ } }), void 0]),
4944
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
4945
+ min: 10,
4946
+ max: 20
4947
+ } }), void 0])
4948
+ }, null]),
4870
4949
  type: faker.helpers.arrayElement(["project_member"]),
4871
4950
  project_member: { relation: faker.helpers.arrayElement([
4872
4951
  "viewer",
@@ -4906,11 +4985,26 @@ const getCreateInvitationResponseMock = () => faker.helpers.arrayElement([{
4906
4985
  min: 1,
4907
4986
  max: 20
4908
4987
  } }),
4909
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
4988
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
4910
4989
  min: 10,
4911
4990
  max: 20
4912
4991
  } }), null]),
4913
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
4992
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
4993
+ inviter: faker.helpers.arrayElement([{
4994
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
4995
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
4996
+ min: 10,
4997
+ max: 20
4998
+ } }), void 0]),
4999
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5000
+ min: 10,
5001
+ max: 20
5002
+ } }), void 0]),
5003
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5004
+ min: 10,
5005
+ max: 20
5006
+ } }), void 0])
5007
+ }, null]),
4914
5008
  type: faker.helpers.arrayElement(["team_member"]),
4915
5009
  team_member: {
4916
5010
  team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
@@ -4954,11 +5048,26 @@ const getListInvitationsResponseMock = (overrideResponse = {}) => ({
4954
5048
  min: 1,
4955
5049
  max: 20
4956
5050
  } }),
4957
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5051
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
4958
5052
  min: 10,
4959
5053
  max: 20
4960
5054
  } }), null]),
4961
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5055
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5056
+ inviter: faker.helpers.arrayElement([{
5057
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5058
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5059
+ min: 10,
5060
+ max: 20
5061
+ } }), void 0]),
5062
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5063
+ min: 10,
5064
+ max: 20
5065
+ } }), void 0]),
5066
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5067
+ min: 10,
5068
+ max: 20
5069
+ } }), void 0])
5070
+ }, null]),
4962
5071
  type: faker.helpers.arrayElement(["project_member"]),
4963
5072
  project_member: { relation: faker.helpers.arrayElement([
4964
5073
  "viewer",
@@ -4994,11 +5103,26 @@ const getListInvitationsResponseMock = (overrideResponse = {}) => ({
4994
5103
  min: 1,
4995
5104
  max: 20
4996
5105
  } }),
4997
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5106
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
4998
5107
  min: 10,
4999
5108
  max: 20
5000
5109
  } }), null]),
5001
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5110
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5111
+ inviter: faker.helpers.arrayElement([{
5112
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5113
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5114
+ min: 10,
5115
+ max: 20
5116
+ } }), void 0]),
5117
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5118
+ min: 10,
5119
+ max: 20
5120
+ } }), void 0]),
5121
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5122
+ min: 10,
5123
+ max: 20
5124
+ } }), void 0])
5125
+ }, null]),
5002
5126
  type: faker.helpers.arrayElement(["team_member"]),
5003
5127
  team_member: {
5004
5128
  team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
@@ -5027,6 +5151,21 @@ const getLookupInvitationResponseMock = () => faker.helpers.arrayElement([{
5027
5151
  "system",
5028
5152
  "agent"
5029
5153
  ]), null]),
5154
+ inviter: faker.helpers.arrayElement([{
5155
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5156
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5157
+ min: 10,
5158
+ max: 20
5159
+ } }), void 0]),
5160
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5161
+ min: 10,
5162
+ max: 20
5163
+ } }), void 0]),
5164
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5165
+ min: 10,
5166
+ max: 20
5167
+ } }), void 0])
5168
+ }, null]),
5030
5169
  expires_at: faker.date.past().toISOString().slice(0, 19) + "Z",
5031
5170
  status: faker.helpers.arrayElement([
5032
5171
  "pending",
@@ -5056,6 +5195,21 @@ const getLookupInvitationResponseMock = () => faker.helpers.arrayElement([{
5056
5195
  "system",
5057
5196
  "agent"
5058
5197
  ]), null]),
5198
+ inviter: faker.helpers.arrayElement([{
5199
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5200
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5201
+ min: 10,
5202
+ max: 20
5203
+ } }), void 0]),
5204
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5205
+ min: 10,
5206
+ max: 20
5207
+ } }), void 0]),
5208
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5209
+ min: 10,
5210
+ max: 20
5211
+ } }), void 0])
5212
+ }, null]),
5059
5213
  expires_at: faker.date.past().toISOString().slice(0, 19) + "Z",
5060
5214
  status: faker.helpers.arrayElement([
5061
5215
  "pending",
@@ -5098,11 +5252,26 @@ const getAcceptInvitationResponseMock = () => faker.helpers.arrayElement([{
5098
5252
  min: 1,
5099
5253
  max: 20
5100
5254
  } }),
5101
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5255
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5102
5256
  min: 10,
5103
5257
  max: 20
5104
5258
  } }), null]),
5105
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5259
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5260
+ inviter: faker.helpers.arrayElement([{
5261
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5262
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5263
+ min: 10,
5264
+ max: 20
5265
+ } }), void 0]),
5266
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5267
+ min: 10,
5268
+ max: 20
5269
+ } }), void 0]),
5270
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5271
+ min: 10,
5272
+ max: 20
5273
+ } }), void 0])
5274
+ }, null]),
5106
5275
  type: faker.helpers.arrayElement(["project_member"]),
5107
5276
  project_member: { relation: faker.helpers.arrayElement([
5108
5277
  "viewer",
@@ -5138,11 +5307,26 @@ const getAcceptInvitationResponseMock = () => faker.helpers.arrayElement([{
5138
5307
  min: 1,
5139
5308
  max: 20
5140
5309
  } }),
5141
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5310
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5142
5311
  min: 10,
5143
5312
  max: 20
5144
5313
  } }), null]),
5145
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5314
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5315
+ inviter: faker.helpers.arrayElement([{
5316
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5317
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5318
+ min: 10,
5319
+ max: 20
5320
+ } }), void 0]),
5321
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5322
+ min: 10,
5323
+ max: 20
5324
+ } }), void 0]),
5325
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5326
+ min: 10,
5327
+ max: 20
5328
+ } }), void 0])
5329
+ }, null]),
5146
5330
  type: faker.helpers.arrayElement(["team_member"]),
5147
5331
  team_member: {
5148
5332
  team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
@@ -5178,11 +5362,26 @@ const getRejectInvitationResponseMock = () => faker.helpers.arrayElement([{
5178
5362
  min: 1,
5179
5363
  max: 20
5180
5364
  } }),
5181
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5365
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5182
5366
  min: 10,
5183
5367
  max: 20
5184
5368
  } }), null]),
5185
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5369
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5370
+ inviter: faker.helpers.arrayElement([{
5371
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5372
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5373
+ min: 10,
5374
+ max: 20
5375
+ } }), void 0]),
5376
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5377
+ min: 10,
5378
+ max: 20
5379
+ } }), void 0]),
5380
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5381
+ min: 10,
5382
+ max: 20
5383
+ } }), void 0])
5384
+ }, null]),
5186
5385
  type: faker.helpers.arrayElement(["project_member"]),
5187
5386
  project_member: { relation: faker.helpers.arrayElement([
5188
5387
  "viewer",
@@ -5218,11 +5417,26 @@ const getRejectInvitationResponseMock = () => faker.helpers.arrayElement([{
5218
5417
  min: 1,
5219
5418
  max: 20
5220
5419
  } }),
5221
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5420
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5222
5421
  min: 10,
5223
5422
  max: 20
5224
5423
  } }), null]),
5225
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5424
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5425
+ inviter: faker.helpers.arrayElement([{
5426
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5427
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5428
+ min: 10,
5429
+ max: 20
5430
+ } }), void 0]),
5431
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5432
+ min: 10,
5433
+ max: 20
5434
+ } }), void 0]),
5435
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5436
+ min: 10,
5437
+ max: 20
5438
+ } }), void 0])
5439
+ }, null]),
5226
5440
  type: faker.helpers.arrayElement(["team_member"]),
5227
5441
  team_member: {
5228
5442
  team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
@@ -5258,11 +5472,26 @@ const getGetInvitationResponseMock = () => faker.helpers.arrayElement([{
5258
5472
  min: 1,
5259
5473
  max: 20
5260
5474
  } }),
5261
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5475
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5262
5476
  min: 10,
5263
5477
  max: 20
5264
5478
  } }), null]),
5265
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5479
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5480
+ inviter: faker.helpers.arrayElement([{
5481
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5482
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5483
+ min: 10,
5484
+ max: 20
5485
+ } }), void 0]),
5486
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5487
+ min: 10,
5488
+ max: 20
5489
+ } }), void 0]),
5490
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5491
+ min: 10,
5492
+ max: 20
5493
+ } }), void 0])
5494
+ }, null]),
5266
5495
  type: faker.helpers.arrayElement(["project_member"]),
5267
5496
  project_member: { relation: faker.helpers.arrayElement([
5268
5497
  "viewer",
@@ -5298,11 +5527,26 @@ const getGetInvitationResponseMock = () => faker.helpers.arrayElement([{
5298
5527
  min: 1,
5299
5528
  max: 20
5300
5529
  } }),
5301
- accepted_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5530
+ responded_by: faker.helpers.arrayElement([faker.string.alpha({ length: {
5302
5531
  min: 10,
5303
5532
  max: 20
5304
5533
  } }), null]),
5305
- accepted_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5534
+ responded_at: faker.helpers.arrayElement([faker.date.past().toISOString().slice(0, 19) + "Z", null]),
5535
+ inviter: faker.helpers.arrayElement([{
5536
+ user_id: faker.helpers.fromRegExp("^user_[a-zA-Z0-9_-]+$"),
5537
+ identifier: faker.helpers.arrayElement([faker.string.alpha({ length: {
5538
+ min: 10,
5539
+ max: 20
5540
+ } }), void 0]),
5541
+ identifier_property: faker.helpers.arrayElement([faker.string.alpha({ length: {
5542
+ min: 10,
5543
+ max: 20
5544
+ } }), void 0]),
5545
+ display: faker.helpers.arrayElement([faker.string.alpha({ length: {
5546
+ min: 10,
5547
+ max: 20
5548
+ } }), void 0])
5549
+ }, null]),
5306
5550
  type: faker.helpers.arrayElement(["team_member"]),
5307
5551
  team_member: {
5308
5552
  team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
@@ -6385,6 +6629,119 @@ const getListEventsResponseMock = (overrideResponse = {}) => ({
6385
6629
  } }), void 0])
6386
6630
  }, void 0])
6387
6631
  }, void 0]),
6632
+ event_type: "auth.request.created",
6633
+ payload: { client_id: faker.string.alpha({ length: {
6634
+ min: 10,
6635
+ max: 20
6636
+ } }) }
6637
+ },
6638
+ {
6639
+ id: faker.string.alpha({ length: {
6640
+ min: 10,
6641
+ max: 20
6642
+ } }),
6643
+ project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
6644
+ team_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6645
+ min: 10,
6646
+ max: 20
6647
+ } }), null]),
6648
+ event_type: faker.string.alpha({ length: {
6649
+ min: 10,
6650
+ max: 20
6651
+ } }),
6652
+ category: faker.helpers.arrayElement([
6653
+ "request",
6654
+ "auth",
6655
+ "session",
6656
+ "admin",
6657
+ "entity",
6658
+ "signal"
6659
+ ]),
6660
+ occurred_at: faker.date.past().toISOString().slice(0, 19) + "Z",
6661
+ created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
6662
+ actor_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6663
+ min: 10,
6664
+ max: 20
6665
+ } }), null]),
6666
+ actor_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
6667
+ "human",
6668
+ "service",
6669
+ "system",
6670
+ "agent"
6671
+ ]), null]),
6672
+ entity_type: faker.helpers.arrayElement([faker.string.alpha({ length: {
6673
+ min: 10,
6674
+ max: 20
6675
+ } }), null]),
6676
+ entity_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6677
+ min: 10,
6678
+ max: 20
6679
+ } }), null]),
6680
+ user_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6681
+ min: 10,
6682
+ max: 20
6683
+ } }), null]),
6684
+ client_id: faker.string.alpha({ length: {
6685
+ min: 10,
6686
+ max: 20
6687
+ } }),
6688
+ token_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6689
+ min: 10,
6690
+ max: 20
6691
+ } }), void 0]),
6692
+ delegation_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
6693
+ "direct",
6694
+ "delegated",
6695
+ "pat_shared",
6696
+ "exchanged"
6697
+ ]), void 0]),
6698
+ delegation_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6699
+ min: 10,
6700
+ max: 20
6701
+ } }), void 0]),
6702
+ grantor: faker.helpers.arrayElement([faker.string.alpha({ length: {
6703
+ min: 10,
6704
+ max: 20
6705
+ } }), void 0]),
6706
+ fingerprint: faker.helpers.arrayElement([faker.string.alpha({ length: {
6707
+ min: 10,
6708
+ max: 20
6709
+ } }), void 0]),
6710
+ request_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6711
+ min: 10,
6712
+ max: 20
6713
+ } }), null]),
6714
+ session_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6715
+ min: 10,
6716
+ max: 20
6717
+ } }), null]),
6718
+ flow_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6719
+ min: 10,
6720
+ max: 20
6721
+ } }), null]),
6722
+ metadata: faker.helpers.arrayElement([{
6723
+ authorization: faker.helpers.arrayElement([{
6724
+ path: faker.helpers.arrayElement(["platform_operator"]),
6725
+ actor_home_project_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
6726
+ min: 10,
6727
+ max: 20
6728
+ } }), void 0])
6729
+ }, void 0]),
6730
+ client: faker.helpers.arrayElement([{
6731
+ ip: faker.helpers.arrayElement([faker.string.alpha({ length: {
6732
+ min: 10,
6733
+ max: 20
6734
+ } }), void 0]),
6735
+ user_agent: faker.helpers.arrayElement([faker.string.alpha({ length: {
6736
+ min: 10,
6737
+ max: 20
6738
+ } }), void 0]),
6739
+ origin: faker.helpers.arrayElement([faker.string.alpha({ length: {
6740
+ min: 10,
6741
+ max: 20
6742
+ } }), void 0])
6743
+ }, void 0])
6744
+ }, void 0]),
6388
6745
  event_type: "auth.sso.authorization.failed",
6389
6746
  payload: {
6390
6747
  check_id: faker.string.alpha({ length: {
@@ -8763,17 +9120,136 @@ const getListEventsResponseMock = (overrideResponse = {}) => ({
8763
9120
  min: 10,
8764
9121
  max: 20
8765
9122
  } }),
8766
- replaces_invitation_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9123
+ replaces_invitation_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9124
+ min: 10,
9125
+ max: 20
9126
+ } }), void 0]),
9127
+ expires_at: faker.date.past().toISOString().slice(0, 19) + "Z",
9128
+ type: faker.helpers.arrayElement(["team_member"]),
9129
+ team_member: {
9130
+ team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
9131
+ role: faker.helpers.arrayElement(["member"])
9132
+ }
9133
+ }])
9134
+ },
9135
+ {
9136
+ id: faker.string.alpha({ length: {
9137
+ min: 10,
9138
+ max: 20
9139
+ } }),
9140
+ project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
9141
+ team_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9142
+ min: 10,
9143
+ max: 20
9144
+ } }), null]),
9145
+ event_type: faker.string.alpha({ length: {
9146
+ min: 10,
9147
+ max: 20
9148
+ } }),
9149
+ category: faker.helpers.arrayElement([
9150
+ "request",
9151
+ "auth",
9152
+ "session",
9153
+ "admin",
9154
+ "entity",
9155
+ "signal"
9156
+ ]),
9157
+ occurred_at: faker.date.past().toISOString().slice(0, 19) + "Z",
9158
+ created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
9159
+ actor_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9160
+ min: 10,
9161
+ max: 20
9162
+ } }), null]),
9163
+ actor_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
9164
+ "human",
9165
+ "service",
9166
+ "system",
9167
+ "agent"
9168
+ ]), null]),
9169
+ entity_type: faker.helpers.arrayElement([faker.string.alpha({ length: {
9170
+ min: 10,
9171
+ max: 20
9172
+ } }), null]),
9173
+ entity_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9174
+ min: 10,
9175
+ max: 20
9176
+ } }), null]),
9177
+ user_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9178
+ min: 10,
9179
+ max: 20
9180
+ } }), null]),
9181
+ client_id: faker.string.alpha({ length: {
9182
+ min: 10,
9183
+ max: 20
9184
+ } }),
9185
+ token_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9186
+ min: 10,
9187
+ max: 20
9188
+ } }), void 0]),
9189
+ delegation_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
9190
+ "direct",
9191
+ "delegated",
9192
+ "pat_shared",
9193
+ "exchanged"
9194
+ ]), void 0]),
9195
+ delegation_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9196
+ min: 10,
9197
+ max: 20
9198
+ } }), void 0]),
9199
+ grantor: faker.helpers.arrayElement([faker.string.alpha({ length: {
9200
+ min: 10,
9201
+ max: 20
9202
+ } }), void 0]),
9203
+ fingerprint: faker.helpers.arrayElement([faker.string.alpha({ length: {
9204
+ min: 10,
9205
+ max: 20
9206
+ } }), void 0]),
9207
+ request_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9208
+ min: 10,
9209
+ max: 20
9210
+ } }), null]),
9211
+ session_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9212
+ min: 10,
9213
+ max: 20
9214
+ } }), null]),
9215
+ flow_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9216
+ min: 10,
9217
+ max: 20
9218
+ } }), null]),
9219
+ metadata: faker.helpers.arrayElement([{
9220
+ authorization: faker.helpers.arrayElement([{
9221
+ path: faker.helpers.arrayElement(["platform_operator"]),
9222
+ actor_home_project_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
9223
+ min: 10,
9224
+ max: 20
9225
+ } }), void 0])
9226
+ }, void 0]),
9227
+ client: faker.helpers.arrayElement([{
9228
+ ip: faker.helpers.arrayElement([faker.string.alpha({ length: {
9229
+ min: 10,
9230
+ max: 20
9231
+ } }), void 0]),
9232
+ user_agent: faker.helpers.arrayElement([faker.string.alpha({ length: {
9233
+ min: 10,
9234
+ max: 20
9235
+ } }), void 0]),
9236
+ origin: faker.helpers.arrayElement([faker.string.alpha({ length: {
9237
+ min: 10,
9238
+ max: 20
9239
+ } }), void 0])
9240
+ }, void 0])
9241
+ }, void 0]),
9242
+ event_type: "invitation.rejected",
9243
+ payload: {
9244
+ journey_id: faker.string.alpha({ length: {
9245
+ min: 10,
9246
+ max: 20
9247
+ } }),
9248
+ user_id: faker.string.alpha({ length: {
8767
9249
  min: 10,
8768
9250
  max: 20
8769
- } }), void 0]),
8770
- expires_at: faker.date.past().toISOString().slice(0, 19) + "Z",
8771
- type: faker.helpers.arrayElement(["team_member"]),
8772
- team_member: {
8773
- team_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
8774
- role: faker.helpers.arrayElement(["member"])
8775
- }
8776
- }])
9251
+ } })
9252
+ }
8777
9253
  },
8778
9254
  {
8779
9255
  id: faker.string.alpha({ length: {
@@ -8882,17 +9358,8 @@ const getListEventsResponseMock = (overrideResponse = {}) => ({
8882
9358
  } }), void 0])
8883
9359
  }, void 0])
8884
9360
  }, void 0]),
8885
- event_type: "invitation.rejected",
8886
- payload: {
8887
- journey_id: faker.string.alpha({ length: {
8888
- min: 10,
8889
- max: 20
8890
- } }),
8891
- user_id: faker.string.alpha({ length: {
8892
- min: 10,
8893
- max: 20
8894
- } })
8895
- }
9361
+ event_type: "oauth_settings.created",
9362
+ payload: { enabled: faker.datatype.boolean() }
8896
9363
  },
8897
9364
  {
8898
9365
  id: faker.string.alpha({ length: {
@@ -12676,6 +13143,119 @@ const getGetEventResponseMock = () => faker.helpers.arrayElement([
12676
13143
  } }), void 0])
12677
13144
  }, void 0])
12678
13145
  }, void 0]),
13146
+ event_type: "auth.request.created",
13147
+ payload: { client_id: faker.string.alpha({ length: {
13148
+ min: 10,
13149
+ max: 20
13150
+ } }) }
13151
+ },
13152
+ {
13153
+ id: faker.string.alpha({ length: {
13154
+ min: 10,
13155
+ max: 20
13156
+ } }),
13157
+ project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
13158
+ team_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13159
+ min: 10,
13160
+ max: 20
13161
+ } }), null]),
13162
+ event_type: faker.string.alpha({ length: {
13163
+ min: 10,
13164
+ max: 20
13165
+ } }),
13166
+ category: faker.helpers.arrayElement([
13167
+ "request",
13168
+ "auth",
13169
+ "session",
13170
+ "admin",
13171
+ "entity",
13172
+ "signal"
13173
+ ]),
13174
+ occurred_at: faker.date.past().toISOString().slice(0, 19) + "Z",
13175
+ created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
13176
+ actor_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13177
+ min: 10,
13178
+ max: 20
13179
+ } }), null]),
13180
+ actor_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
13181
+ "human",
13182
+ "service",
13183
+ "system",
13184
+ "agent"
13185
+ ]), null]),
13186
+ entity_type: faker.helpers.arrayElement([faker.string.alpha({ length: {
13187
+ min: 10,
13188
+ max: 20
13189
+ } }), null]),
13190
+ entity_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13191
+ min: 10,
13192
+ max: 20
13193
+ } }), null]),
13194
+ user_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13195
+ min: 10,
13196
+ max: 20
13197
+ } }), null]),
13198
+ client_id: faker.string.alpha({ length: {
13199
+ min: 10,
13200
+ max: 20
13201
+ } }),
13202
+ token_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13203
+ min: 10,
13204
+ max: 20
13205
+ } }), void 0]),
13206
+ delegation_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
13207
+ "direct",
13208
+ "delegated",
13209
+ "pat_shared",
13210
+ "exchanged"
13211
+ ]), void 0]),
13212
+ delegation_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13213
+ min: 10,
13214
+ max: 20
13215
+ } }), void 0]),
13216
+ grantor: faker.helpers.arrayElement([faker.string.alpha({ length: {
13217
+ min: 10,
13218
+ max: 20
13219
+ } }), void 0]),
13220
+ fingerprint: faker.helpers.arrayElement([faker.string.alpha({ length: {
13221
+ min: 10,
13222
+ max: 20
13223
+ } }), void 0]),
13224
+ request_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13225
+ min: 10,
13226
+ max: 20
13227
+ } }), null]),
13228
+ session_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13229
+ min: 10,
13230
+ max: 20
13231
+ } }), null]),
13232
+ flow_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13233
+ min: 10,
13234
+ max: 20
13235
+ } }), null]),
13236
+ metadata: faker.helpers.arrayElement([{
13237
+ authorization: faker.helpers.arrayElement([{
13238
+ path: faker.helpers.arrayElement(["platform_operator"]),
13239
+ actor_home_project_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
13240
+ min: 10,
13241
+ max: 20
13242
+ } }), void 0])
13243
+ }, void 0]),
13244
+ client: faker.helpers.arrayElement([{
13245
+ ip: faker.helpers.arrayElement([faker.string.alpha({ length: {
13246
+ min: 10,
13247
+ max: 20
13248
+ } }), void 0]),
13249
+ user_agent: faker.helpers.arrayElement([faker.string.alpha({ length: {
13250
+ min: 10,
13251
+ max: 20
13252
+ } }), void 0]),
13253
+ origin: faker.helpers.arrayElement([faker.string.alpha({ length: {
13254
+ min: 10,
13255
+ max: 20
13256
+ } }), void 0])
13257
+ }, void 0])
13258
+ }, void 0]),
12679
13259
  event_type: "auth.sso.authorization.failed",
12680
13260
  payload: {
12681
13261
  check_id: faker.string.alpha({ length: {
@@ -15292,6 +15872,116 @@ const getGetEventResponseMock = () => faker.helpers.arrayElement([
15292
15872
  } }), void 0])
15293
15873
  }, void 0])
15294
15874
  }, void 0]),
15875
+ event_type: "oauth_settings.created",
15876
+ payload: { enabled: faker.datatype.boolean() }
15877
+ },
15878
+ {
15879
+ id: faker.string.alpha({ length: {
15880
+ min: 10,
15881
+ max: 20
15882
+ } }),
15883
+ project_id: faker.helpers.fromRegExp("^[a-zA-Z0-9_-]+$"),
15884
+ team_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15885
+ min: 10,
15886
+ max: 20
15887
+ } }), null]),
15888
+ event_type: faker.string.alpha({ length: {
15889
+ min: 10,
15890
+ max: 20
15891
+ } }),
15892
+ category: faker.helpers.arrayElement([
15893
+ "request",
15894
+ "auth",
15895
+ "session",
15896
+ "admin",
15897
+ "entity",
15898
+ "signal"
15899
+ ]),
15900
+ occurred_at: faker.date.past().toISOString().slice(0, 19) + "Z",
15901
+ created_at: faker.date.past().toISOString().slice(0, 19) + "Z",
15902
+ actor_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15903
+ min: 10,
15904
+ max: 20
15905
+ } }), null]),
15906
+ actor_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
15907
+ "human",
15908
+ "service",
15909
+ "system",
15910
+ "agent"
15911
+ ]), null]),
15912
+ entity_type: faker.helpers.arrayElement([faker.string.alpha({ length: {
15913
+ min: 10,
15914
+ max: 20
15915
+ } }), null]),
15916
+ entity_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15917
+ min: 10,
15918
+ max: 20
15919
+ } }), null]),
15920
+ user_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15921
+ min: 10,
15922
+ max: 20
15923
+ } }), null]),
15924
+ client_id: faker.string.alpha({ length: {
15925
+ min: 10,
15926
+ max: 20
15927
+ } }),
15928
+ token_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15929
+ min: 10,
15930
+ max: 20
15931
+ } }), void 0]),
15932
+ delegation_type: faker.helpers.arrayElement([faker.helpers.arrayElement([
15933
+ "direct",
15934
+ "delegated",
15935
+ "pat_shared",
15936
+ "exchanged"
15937
+ ]), void 0]),
15938
+ delegation_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15939
+ min: 10,
15940
+ max: 20
15941
+ } }), void 0]),
15942
+ grantor: faker.helpers.arrayElement([faker.string.alpha({ length: {
15943
+ min: 10,
15944
+ max: 20
15945
+ } }), void 0]),
15946
+ fingerprint: faker.helpers.arrayElement([faker.string.alpha({ length: {
15947
+ min: 10,
15948
+ max: 20
15949
+ } }), void 0]),
15950
+ request_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15951
+ min: 10,
15952
+ max: 20
15953
+ } }), null]),
15954
+ session_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15955
+ min: 10,
15956
+ max: 20
15957
+ } }), null]),
15958
+ flow_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15959
+ min: 10,
15960
+ max: 20
15961
+ } }), null]),
15962
+ metadata: faker.helpers.arrayElement([{
15963
+ authorization: faker.helpers.arrayElement([{
15964
+ path: faker.helpers.arrayElement(["platform_operator"]),
15965
+ actor_home_project_id: faker.helpers.arrayElement([faker.string.alpha({ length: {
15966
+ min: 10,
15967
+ max: 20
15968
+ } }), void 0])
15969
+ }, void 0]),
15970
+ client: faker.helpers.arrayElement([{
15971
+ ip: faker.helpers.arrayElement([faker.string.alpha({ length: {
15972
+ min: 10,
15973
+ max: 20
15974
+ } }), void 0]),
15975
+ user_agent: faker.helpers.arrayElement([faker.string.alpha({ length: {
15976
+ min: 10,
15977
+ max: 20
15978
+ } }), void 0]),
15979
+ origin: faker.helpers.arrayElement([faker.string.alpha({ length: {
15980
+ min: 10,
15981
+ max: 20
15982
+ } }), void 0])
15983
+ }, void 0])
15984
+ }, void 0]),
15295
15985
  event_type: "origin.added",
15296
15986
  payload: {
15297
15987
  pattern: faker.string.alpha({ length: {
@@ -18626,6 +19316,11 @@ const getListProjectAdminsMockHandler = (overrideResponse, options) => {
18626
19316
  return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getListProjectAdminsResponseMock(), { status: 200 });
18627
19317
  }, options);
18628
19318
  };
19319
+ const getListProjectMembersMockHandler = (overrideResponse, options) => {
19320
+ return http.get("*/projects/:projectId/members", async (info) => {
19321
+ return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getListProjectMembersResponseMock(), { status: 200 });
19322
+ }, options);
19323
+ };
18629
19324
  const getCreateProjectClaimMockHandler = (overrideResponse, options) => {
18630
19325
  return http.post("*/projects/:projectId/claim/init", async (info) => {
18631
19326
  return HttpResponse.json(overrideResponse !== void 0 ? typeof overrideResponse === "function" ? await overrideResponse(info) : overrideResponse : getCreateProjectClaimResponseMock(), { status: 201 });
@@ -19031,6 +19726,7 @@ const getZitadelNextGenMock = () => [
19031
19726
  getGetProjectMockHandler(),
19032
19727
  getUpdateProjectMockHandler(),
19033
19728
  getListProjectAdminsMockHandler(),
19729
+ getListProjectMembersMockHandler(),
19034
19730
  getCreateProjectClaimMockHandler(),
19035
19731
  getGetProjectClaimStatusMockHandler(),
19036
19732
  getCompleteProjectClaimMockHandler(),
@@ -19104,6 +19800,6 @@ const getZitadelNextGenMock = () => [
19104
19800
  getRollbackDeploymentMockHandler(),
19105
19801
  getListDeploymentVariablesMockHandler()
19106
19802
  ];
19107
- export { getAcceptInvitationMockHandler, getAcceptInvitationResponseMock, getAddProjectOriginMockHandler, getAddProjectOriginResponseMock, getBuildReleaseMockHandler, getBuildReleaseResponseMock, getCancelInvitationMockHandler, getCompleteProjectClaimMockHandler, getCompleteProjectClaimResponseMock, getCompleteUserPasskeyRegistrationMockHandler, getCompleteUserPasskeyRegistrationResponseMock, getCreateAuthAttemptChallengeMockHandler, getCreateAuthAttemptChallengeResponseMock, getCreateAuthAttemptHandoffMockHandler, getCreateAuthAttemptHandoffResponseMock, getCreateAuthAttemptMockHandler, getCreateAuthAttemptResponseMock, getCreateDeploymentMockHandler, getCreateDeploymentResponseMock, getCreateFlowMockHandler, getCreateFlowResponseMock, getCreateGrantMockHandler, getCreateGrantResponseMock, getCreateInvitationMockHandler, getCreateInvitationResponseMock, getCreateProjectClaimMockHandler, getCreateProjectClaimResponseMock, getCreateProjectMockHandler, getCreateProjectResponseMock, getCreateReleaseMockHandler, getCreateReleaseResponseMock, getCreateSessionMockHandler, getCreateSessionResponseMock, getCreateTeamMockHandler, getCreateTeamResponseMock, getCreateUserMockHandler, getCreateUserPasskeyRegistrationMockHandler, getCreateUserPasskeyRegistrationResponseMock, getCreateUserResponseMock, getDeactivateTeamMockHandler, getDeleteGrantMockHandler, getDeleteUserMockHandler, getDeleteVariableMockHandler, getEvaluatePolicyMockHandler, getEvaluatePolicyResponseMock, getExchangeHandoffMockHandler, getExchangeHandoffResponseMock, getGetApplicationMockHandler, getGetApplicationResponseMock, getGetAuthAttemptMockHandler, getGetAuthAttemptResponseMock, getGetBrandingMockHandler, getGetBrandingResponseMock, getGetDeploymentMockHandler, getGetDeploymentResponseMock, getGetEventMockHandler, getGetEventResponseMock, getGetFlowDefinitionMockHandler, getGetFlowDefinitionResponseMock, getGetFlowStepMockHandler, getGetFlowStepResponseMock, getGetGrantMockHandler, getGetGrantResponseMock, getGetIdpMockHandler, getGetIdpResponseMock, getGetIdpRevisionMockHandler, getGetIdpRevisionResponseMock, getGetInvitationMockHandler, getGetInvitationResponseMock, getGetLiveMockHandler, getGetMyPasswordStateMockHandler, getGetMyPasswordStateResponseMock, getGetMySessionCsrfTokenMockHandler, getGetMySessionCsrfTokenResponseMock, getGetMySessionMockHandler, getGetMySessionResponseMock, getGetMyUserMockHandler, getGetMyUserResponseMock, getGetMyUserSchemaMockHandler, getGetMyUserSchemaResponseMock, getGetOAuthSettingsMockHandler, getGetOAuthSettingsResponseMock, getGetPolicyMockHandler, getGetPolicyResponseMock, getGetPolicyRevisionMockHandler, getGetPolicyRevisionResponseMock, getGetProjectClaimStatusMockHandler, getGetProjectClaimStatusResponseMock, getGetProjectClaimWindowMockHandler, getGetProjectClaimWindowResponseMock, getGetProjectMockHandler, getGetProjectResponseMock, getGetReadyMockHandler, getGetReleaseMockHandler, getGetReleaseResponseMock, getGetSchemaMockHandler, getGetSchemaResponseMock, getGetSessionMockHandler, getGetSessionResponseMock, getGetTeamMockHandler, getGetTeamResponseMock, getGetUserMockHandler, getGetUserPasswordStateMockHandler, getGetUserPasswordStateResponseMock, getGetUserResponseMock, getGetVariableMockHandler, getGetVariableResponseMock, getListBrandingMockHandler, getListBrandingResponseMock, getListDeploymentVariablesMockHandler, getListDeploymentVariablesResponseMock, getListDeploymentsMockHandler, getListDeploymentsResponseMock, getListEventsMockHandler, getListEventsResponseMock, getListFlowDefinitionsMockHandler, getListFlowDefinitionsResponseMock, getListIdpRevisionsMockHandler, getListIdpRevisionsResponseMock, getListInvitationsMockHandler, getListInvitationsResponseMock, getListMyIdentityLinksMockHandler, getListMyIdentityLinksResponseMock, getListMyPasskeysMockHandler, getListMyPasskeysResponseMock, getListMyProjectsMockHandler, getListMyProjectsResponseMock, getListMyTeamsMockHandler, getListMyTeamsResponseMock, getListPoliciesMockHandler, getListPoliciesResponseMock, getListPolicyRevisionsMockHandler, getListPolicyRevisionsResponseMock, getListProjectAdminsMockHandler, getListProjectAdminsResponseMock, getListProjectPreviewsMockHandler, getListProjectPreviewsResponseMock, getListReleasesMockHandler, getListReleasesResponseMock, getListSchemasMockHandler, getListSchemasResponseMock, getListUserIdentityLinksMockHandler, getListUserIdentityLinksResponseMock, getListUserPasskeysMockHandler, getListUserPasskeysResponseMock, getListUserTeamsMockHandler, getListUserTeamsResponseMock, getListVariablesMockHandler, getListVariablesResponseMock, getLookupInvitationMockHandler, getLookupInvitationResponseMock, getPublishApplicationMockHandler, getPublishApplicationResponseMock, getPublishBrandingMockHandler, getPublishBrandingResponseMock, getPublishFlowDefinitionMockHandler, getPublishFlowDefinitionResponseMock, getPublishIdpMockHandler, getPublishIdpResponseMock, getPublishPolicyMockHandler, getPublishPolicyResponseMock, getPublishSchemaMockHandler, getPublishSchemaResponseMock, getQueryGrantsMockHandler, getQueryGrantsResponseMock, getQueryIdpsMockHandler, getQueryIdpsResponseMock, getQueryProjectsMockHandler, getQueryProjectsResponseMock, getQuerySessionsMockHandler, getQuerySessionsResponseMock, getQueryTeamsMockHandler, getQueryTeamsResponseMock, getQueryUsersMockHandler, getQueryUsersResponseMock, getRejectInvitationMockHandler, getRejectInvitationResponseMock, getRemoveProjectOriginMockHandler, getRemoveProjectPreviewMockHandler, getRevokeMySessionMockHandler, getRevokeReleaseMockHandler, getRevokeReleaseResponseMock, getRevokeSessionMockHandler, getRollbackDeploymentMockHandler, getRollbackDeploymentResponseMock, getSearchMockHandler, getSearchResponseMock, getSetUserPasswordMockHandler, getSetVariablesMockHandler, getSetVariablesResponseMock, getSubmitFlowStepMockHandler, getSubmitFlowStepResponseMock, getUpdateMyUserMockHandler, getUpdateMyUserResponseMock, getUpdateProjectMockHandler, getUpdateProjectResponseMock, getUpdateTeamMockHandler, getUpdateTeamResponseMock, getUpdateUserMockHandler, getUpdateUserResponseMock, getVerifyAuthAttemptChallengeMockHandler, getVerifyAuthAttemptChallengeResponseMock, getZitadelNextGenMock };
19803
+ export { getAcceptInvitationMockHandler, getAcceptInvitationResponseMock, getAddProjectOriginMockHandler, getAddProjectOriginResponseMock, getBuildReleaseMockHandler, getBuildReleaseResponseMock, getCancelInvitationMockHandler, getCompleteProjectClaimMockHandler, getCompleteProjectClaimResponseMock, getCompleteUserPasskeyRegistrationMockHandler, getCompleteUserPasskeyRegistrationResponseMock, getCreateAuthAttemptChallengeMockHandler, getCreateAuthAttemptChallengeResponseMock, getCreateAuthAttemptHandoffMockHandler, getCreateAuthAttemptHandoffResponseMock, getCreateAuthAttemptMockHandler, getCreateAuthAttemptResponseMock, getCreateDeploymentMockHandler, getCreateDeploymentResponseMock, getCreateFlowMockHandler, getCreateFlowResponseMock, getCreateGrantMockHandler, getCreateGrantResponseMock, getCreateInvitationMockHandler, getCreateInvitationResponseMock, getCreateProjectClaimMockHandler, getCreateProjectClaimResponseMock, getCreateProjectMockHandler, getCreateProjectResponseMock, getCreateReleaseMockHandler, getCreateReleaseResponseMock, getCreateSessionMockHandler, getCreateSessionResponseMock, getCreateTeamMockHandler, getCreateTeamResponseMock, getCreateUserMockHandler, getCreateUserPasskeyRegistrationMockHandler, getCreateUserPasskeyRegistrationResponseMock, getCreateUserResponseMock, getDeactivateTeamMockHandler, getDeleteGrantMockHandler, getDeleteUserMockHandler, getDeleteVariableMockHandler, getEvaluatePolicyMockHandler, getEvaluatePolicyResponseMock, getExchangeHandoffMockHandler, getExchangeHandoffResponseMock, getGetApplicationMockHandler, getGetApplicationResponseMock, getGetAuthAttemptMockHandler, getGetAuthAttemptResponseMock, getGetBrandingMockHandler, getGetBrandingResponseMock, getGetDeploymentMockHandler, getGetDeploymentResponseMock, getGetEventMockHandler, getGetEventResponseMock, getGetFlowDefinitionMockHandler, getGetFlowDefinitionResponseMock, getGetFlowStepMockHandler, getGetFlowStepResponseMock, getGetGrantMockHandler, getGetGrantResponseMock, getGetIdpMockHandler, getGetIdpResponseMock, getGetIdpRevisionMockHandler, getGetIdpRevisionResponseMock, getGetInvitationMockHandler, getGetInvitationResponseMock, getGetLiveMockHandler, getGetMyPasswordStateMockHandler, getGetMyPasswordStateResponseMock, getGetMySessionCsrfTokenMockHandler, getGetMySessionCsrfTokenResponseMock, getGetMySessionMockHandler, getGetMySessionResponseMock, getGetMyUserMockHandler, getGetMyUserResponseMock, getGetMyUserSchemaMockHandler, getGetMyUserSchemaResponseMock, getGetOAuthSettingsMockHandler, getGetOAuthSettingsResponseMock, getGetPolicyMockHandler, getGetPolicyResponseMock, getGetPolicyRevisionMockHandler, getGetPolicyRevisionResponseMock, getGetProjectClaimStatusMockHandler, getGetProjectClaimStatusResponseMock, getGetProjectClaimWindowMockHandler, getGetProjectClaimWindowResponseMock, getGetProjectMockHandler, getGetProjectResponseMock, getGetReadyMockHandler, getGetReleaseMockHandler, getGetReleaseResponseMock, getGetSchemaMockHandler, getGetSchemaResponseMock, getGetSessionMockHandler, getGetSessionResponseMock, getGetTeamMockHandler, getGetTeamResponseMock, getGetUserMockHandler, getGetUserPasswordStateMockHandler, getGetUserPasswordStateResponseMock, getGetUserResponseMock, getGetVariableMockHandler, getGetVariableResponseMock, getListBrandingMockHandler, getListBrandingResponseMock, getListDeploymentVariablesMockHandler, getListDeploymentVariablesResponseMock, getListDeploymentsMockHandler, getListDeploymentsResponseMock, getListEventsMockHandler, getListEventsResponseMock, getListFlowDefinitionsMockHandler, getListFlowDefinitionsResponseMock, getListIdpRevisionsMockHandler, getListIdpRevisionsResponseMock, getListInvitationsMockHandler, getListInvitationsResponseMock, getListMyIdentityLinksMockHandler, getListMyIdentityLinksResponseMock, getListMyPasskeysMockHandler, getListMyPasskeysResponseMock, getListMyProjectsMockHandler, getListMyProjectsResponseMock, getListMyTeamsMockHandler, getListMyTeamsResponseMock, getListPoliciesMockHandler, getListPoliciesResponseMock, getListPolicyRevisionsMockHandler, getListPolicyRevisionsResponseMock, getListProjectAdminsMockHandler, getListProjectAdminsResponseMock, getListProjectMembersMockHandler, getListProjectMembersResponseMock, getListProjectPreviewsMockHandler, getListProjectPreviewsResponseMock, getListReleasesMockHandler, getListReleasesResponseMock, getListSchemasMockHandler, getListSchemasResponseMock, getListUserIdentityLinksMockHandler, getListUserIdentityLinksResponseMock, getListUserPasskeysMockHandler, getListUserPasskeysResponseMock, getListUserTeamsMockHandler, getListUserTeamsResponseMock, getListVariablesMockHandler, getListVariablesResponseMock, getLookupInvitationMockHandler, getLookupInvitationResponseMock, getPublishApplicationMockHandler, getPublishApplicationResponseMock, getPublishBrandingMockHandler, getPublishBrandingResponseMock, getPublishFlowDefinitionMockHandler, getPublishFlowDefinitionResponseMock, getPublishIdpMockHandler, getPublishIdpResponseMock, getPublishPolicyMockHandler, getPublishPolicyResponseMock, getPublishSchemaMockHandler, getPublishSchemaResponseMock, getQueryGrantsMockHandler, getQueryGrantsResponseMock, getQueryIdpsMockHandler, getQueryIdpsResponseMock, getQueryProjectsMockHandler, getQueryProjectsResponseMock, getQuerySessionsMockHandler, getQuerySessionsResponseMock, getQueryTeamsMockHandler, getQueryTeamsResponseMock, getQueryUsersMockHandler, getQueryUsersResponseMock, getRejectInvitationMockHandler, getRejectInvitationResponseMock, getRemoveProjectOriginMockHandler, getRemoveProjectPreviewMockHandler, getRevokeMySessionMockHandler, getRevokeReleaseMockHandler, getRevokeReleaseResponseMock, getRevokeSessionMockHandler, getRollbackDeploymentMockHandler, getRollbackDeploymentResponseMock, getSearchMockHandler, getSearchResponseMock, getSetUserPasswordMockHandler, getSetVariablesMockHandler, getSetVariablesResponseMock, getSubmitFlowStepMockHandler, getSubmitFlowStepResponseMock, getUpdateMyUserMockHandler, getUpdateMyUserResponseMock, getUpdateProjectMockHandler, getUpdateProjectResponseMock, getUpdateTeamMockHandler, getUpdateTeamResponseMock, getUpdateUserMockHandler, getUpdateUserResponseMock, getVerifyAuthAttemptChallengeMockHandler, getVerifyAuthAttemptChallengeResponseMock, getZitadelNextGenMock };
19108
19804
 
19109
19805
  //# sourceMappingURL=zitadelNextGen.msw.mjs.map