zitadel-client 4.1.0.beta.6 → 4.1.0.beta.7

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 847f705c1388dd6aaf847ace5c187ea8653384e33cad7428b99602044b853ae2
4
- data.tar.gz: e17f820990f4c2dda111c023c6ac37f627c065e443c8082de6abc9f6904e71f4
3
+ metadata.gz: 5a0655e627b162ab0968547cfee9311147dc542b8930317e8fcc8826642f98c3
4
+ data.tar.gz: b6d153589322f18fd8673758bcbe680a0be22c6e2da1f6d282535448b7c39008
5
5
  SHA512:
6
- metadata.gz: e46d6b1db9bd641585f0d42a3d6108f3fda578c55a5cf7384bca41820c53e853dfc412882440f3f5254419f6069d272dc15b956f7a9568ed8ae52aeedc2ad43f
7
- data.tar.gz: b6f267d2da24666562363ad5d83f7f9ff41836566d7a6211b1cdd1eea5be0873b85a3865e9aa261f7a2cd13bdc87484c2c3b431677ebf932211fda63bfd9ff34
6
+ metadata.gz: 8dfca7a76e6c53b626d17f257470656cdfafb70220685281f2f31bdec70b37034b2a9dd5c7ab823043e1ad76477066bae81edc6f5ca7ade367886f3e2ffcef2d
7
+ data.tar.gz: 8899ed805c99ad8d1e4613c674a02cf945ef873b890b37e39b8b2e80aeb345f0e82371384c03b01fab29062fc5b734239704001610db5511d64368391de3fac1
@@ -194,7 +194,7 @@ module Zitadel::Client::Api
194
194
  end
195
195
 
196
196
  # GetInstance
197
- # Get Instance Returns the instance in the current context. The instace_id in the input message will be used in the future. Required permissions: - `iam.read`
197
+ # Get Instance Returns the instance in the current context. The instance_id in the input message will be used in the future. Required permissions: - `iam.read`
198
198
  # @param beta_instance_service_get_instance_request [BetaInstanceServiceGetInstanceRequest]
199
199
  # @param [Hash] opts the optional parameters
200
200
  # @return [BetaInstanceServiceGetInstanceResponse]
@@ -20,7 +20,7 @@ module Zitadel::Client::Api
20
20
  @api_client = api_client
21
21
  end
22
22
  # AddHumanUser
23
- # Create a new human user Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned.
23
+ # Create a new human user Deprecated: Use [CreateUser](apis/resources/user_service_v2/user-service-create-user.api.mdx) to create a new user of type human instead. Create/import a new user with the type human. The newly created user will get a verification email if either the email address is not marked as verified and you did not request the verification to be returned.
24
24
  # @param user_service_add_human_user_request [UserServiceAddHumanUserRequest]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [UserServiceAddHumanUserResponse]
@@ -426,7 +426,7 @@ module Zitadel::Client::Api
426
426
  end
427
427
 
428
428
  # CreateInviteCode
429
- # Create an invite code for a user Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid.
429
+ # Create an invite code for a user Create an invite code for a user to initialize their first authentication method (password, passkeys, IdP) depending on the organization's available methods. If an invite code has been created previously, it's url template and application name will be used as defaults for the new code. The new code will overwrite the previous one and make it invalid. Note: It is possible to reissue a new code only when the previous code has expired, or when the user provides a wrong code three or more times during verification.
430
430
  # @param user_service_create_invite_code_request [UserServiceCreateInviteCodeRequest]
431
431
  # @param [Hash] opts the optional parameters
432
432
  # @return [UserServiceCreateInviteCodeResponse]
@@ -2049,7 +2049,7 @@ module Zitadel::Client::Api
2049
2049
  end
2050
2050
 
2051
2051
  # RemovePhone
2052
- # Delete the user phone Delete the phone number of a user.
2052
+ # Delete the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx) to remove the phone number. Delete the phone number of a user.
2053
2053
  # @param user_service_remove_phone_request [UserServiceRemovePhoneRequest]
2054
2054
  # @param [Hash] opts the optional parameters
2055
2055
  # @return [UserServiceRemovePhoneResponse]
@@ -2397,7 +2397,7 @@ module Zitadel::Client::Api
2397
2397
  end
2398
2398
 
2399
2399
  # ResendPhoneCode
2400
- # Resend code to verify user phone
2400
+ # Resend code to verify user phone number Resend code to verify user phone number.
2401
2401
  # @param user_service_resend_phone_code_request [UserServiceResendPhoneCodeRequest]
2402
2402
  # @param [Hash] opts the optional parameters
2403
2403
  # @return [UserServiceResendPhoneCodeResponse]
@@ -2571,7 +2571,7 @@ module Zitadel::Client::Api
2571
2571
  end
2572
2572
 
2573
2573
  # SetEmail
2574
- # Change the user email Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email..
2574
+ # Change the user email Deprecated: [Update the users email field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Change the email address of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by email..
2575
2575
  # @param user_service_set_email_request [UserServiceSetEmailRequest]
2576
2576
  # @param [Hash] opts the optional parameters
2577
2577
  # @return [UserServiceSetEmailResponse]
@@ -2629,7 +2629,7 @@ module Zitadel::Client::Api
2629
2629
  end
2630
2630
 
2631
2631
  # SetPassword
2632
- # Change password Change the password of a user with either a verification code or the current password..
2632
+ # Change password Deprecated: [Update the users password](apis/resources/user_service_v2/user-service-update-user.api.mdx) instead. Change the password of a user with either a verification code or the current password..
2633
2633
  # @param user_service_set_password_request [UserServiceSetPasswordRequest]
2634
2634
  # @param [Hash] opts the optional parameters
2635
2635
  # @return [UserServiceSetPasswordResponse]
@@ -2687,7 +2687,7 @@ module Zitadel::Client::Api
2687
2687
  end
2688
2688
 
2689
2689
  # SetPhone
2690
- # Set the user phone Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms..
2690
+ # Set the user phone Deprecated: [Update the users phone field](apis/resources/user_service_v2/user-service-update-user.api.mdx). Set the phone number of a user. If the state is set to not verified, a verification code will be generated, which can be either returned or sent to the user by sms..
2691
2691
  # @param user_service_set_phone_request [UserServiceSetPhoneRequest]
2692
2692
  # @param [Hash] opts the optional parameters
2693
2693
  # @return [UserServiceSetPhoneResponse]
@@ -2919,7 +2919,7 @@ module Zitadel::Client::Api
2919
2919
  end
2920
2920
 
2921
2921
  # UpdateHumanUser
2922
- # Update Human User Update all information from a user..
2922
+ # Update Human User Deprecated: Use [UpdateUser](apis/resources/user_service_v2/user-service-update-user.api.mdx) to update a user of type human instead. Update all information from a user.
2923
2923
  # @param user_service_update_human_user_request [UserServiceUpdateHumanUserRequest]
2924
2924
  # @param [Hash] opts the optional parameters
2925
2925
  # @return [UserServiceUpdateHumanUserResponse]
@@ -3209,7 +3209,7 @@ module Zitadel::Client::Api
3209
3209
  end
3210
3210
 
3211
3211
  # VerifyPhone
3212
- # Verify the phone Verify the phone with the generated code..
3212
+ # Verify the phone number Verify the phone number with the generated code.
3213
3213
  # @param user_service_verify_phone_request [UserServiceVerifyPhoneRequest]
3214
3214
  # @param [Hash] opts the optional parameters
3215
3215
  # @return [UserServiceVerifyPhoneResponse]
@@ -16,14 +16,13 @@ require 'time'
16
16
  module Zitadel::Client::Models
17
17
  class BetaFeatureServiceImprovedPerformance
18
18
  IMPROVED_PERFORMANCE_UNSPECIFIED = "IMPROVED_PERFORMANCE_UNSPECIFIED".freeze
19
- IMPROVED_PERFORMANCE_ORG_BY_ID = "IMPROVED_PERFORMANCE_ORG_BY_ID".freeze
20
19
  IMPROVED_PERFORMANCE_PROJECT_GRANT = "IMPROVED_PERFORMANCE_PROJECT_GRANT".freeze
21
20
  IMPROVED_PERFORMANCE_PROJECT = "IMPROVED_PERFORMANCE_PROJECT".freeze
22
21
  IMPROVED_PERFORMANCE_USER_GRANT = "IMPROVED_PERFORMANCE_USER_GRANT".freeze
23
22
  IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED = "IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED".freeze
24
23
 
25
24
  def self.all_vars
26
- @all_vars ||= [IMPROVED_PERFORMANCE_UNSPECIFIED, IMPROVED_PERFORMANCE_ORG_BY_ID, IMPROVED_PERFORMANCE_PROJECT_GRANT, IMPROVED_PERFORMANCE_PROJECT, IMPROVED_PERFORMANCE_USER_GRANT, IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED].freeze
25
+ @all_vars ||= [IMPROVED_PERFORMANCE_UNSPECIFIED, IMPROVED_PERFORMANCE_PROJECT_GRANT, IMPROVED_PERFORMANCE_PROJECT, IMPROVED_PERFORMANCE_USER_GRANT, IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED].freeze
27
26
  end
28
27
 
29
28
  # Builds the enum from string
@@ -29,8 +29,6 @@ module Zitadel::Client::Models
29
29
 
30
30
  attr_accessor :oidc_single_v1_session_termination
31
31
 
32
- attr_accessor :disable_user_token_event
33
-
34
32
  attr_accessor :enable_back_channel_logout
35
33
 
36
34
  attr_accessor :login_v2
@@ -49,7 +47,6 @@ module Zitadel::Client::Models
49
47
  :'improved_performance' => :'improvedPerformance',
50
48
  :'debug_oidc_parent_error' => :'debugOidcParentError',
51
49
  :'oidc_single_v1_session_termination' => :'oidcSingleV1SessionTermination',
52
- :'disable_user_token_event' => :'disableUserTokenEvent',
53
50
  :'enable_back_channel_logout' => :'enableBackChannelLogout',
54
51
  :'login_v2' => :'loginV2',
55
52
  :'permission_check_v2' => :'permissionCheckV2',
@@ -77,7 +74,6 @@ module Zitadel::Client::Models
77
74
  :'improved_performance' => :'FeatureServiceImprovedPerformanceFeatureFlag',
78
75
  :'debug_oidc_parent_error' => :'FeatureServiceFeatureFlag',
79
76
  :'oidc_single_v1_session_termination' => :'FeatureServiceFeatureFlag',
80
- :'disable_user_token_event' => :'FeatureServiceFeatureFlag',
81
77
  :'enable_back_channel_logout' => :'FeatureServiceFeatureFlag',
82
78
  :'login_v2' => :'FeatureServiceLoginV2FeatureFlag',
83
79
  :'permission_check_v2' => :'FeatureServiceFeatureFlag',
@@ -137,10 +133,6 @@ module Zitadel::Client::Models
137
133
  self.oidc_single_v1_session_termination = attributes[:'oidc_single_v1_session_termination']
138
134
  end
139
135
 
140
- if attributes.key?(:'disable_user_token_event')
141
- self.disable_user_token_event = attributes[:'disable_user_token_event']
142
- end
143
-
144
136
  if attributes.key?(:'enable_back_channel_logout')
145
137
  self.enable_back_channel_logout = attributes[:'enable_back_channel_logout']
146
138
  end
@@ -170,7 +162,6 @@ module Zitadel::Client::Models
170
162
  improved_performance == o.improved_performance &&
171
163
  debug_oidc_parent_error == o.debug_oidc_parent_error &&
172
164
  oidc_single_v1_session_termination == o.oidc_single_v1_session_termination &&
173
- disable_user_token_event == o.disable_user_token_event &&
174
165
  enable_back_channel_logout == o.enable_back_channel_logout &&
175
166
  login_v2 == o.login_v2 &&
176
167
  permission_check_v2 == o.permission_check_v2 &&
@@ -186,7 +177,7 @@ module Zitadel::Client::Models
186
177
  # Calculates hash code according to all attributes.
187
178
  # @return [Integer] Hash code
188
179
  def hash
189
- [details, login_default_org, user_schema, oidc_token_exchange, improved_performance, debug_oidc_parent_error, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash
180
+ [details, login_default_org, user_schema, oidc_token_exchange, improved_performance, debug_oidc_parent_error, oidc_single_v1_session_termination, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash
190
181
  end
191
182
 
192
183
  # Builds the object from hash
@@ -27,8 +27,6 @@ module Zitadel::Client::Models
27
27
 
28
28
  attr_accessor :oidc_single_v1_session_termination
29
29
 
30
- attr_accessor :disable_user_token_event
31
-
32
30
  attr_accessor :enable_back_channel_logout
33
31
 
34
32
  attr_accessor :login_v2
@@ -44,7 +42,6 @@ module Zitadel::Client::Models
44
42
  :'oidc_token_exchange' => :'oidcTokenExchange',
45
43
  :'improved_performance' => :'improvedPerformance',
46
44
  :'oidc_single_v1_session_termination' => :'oidcSingleV1SessionTermination',
47
- :'disable_user_token_event' => :'disableUserTokenEvent',
48
45
  :'enable_back_channel_logout' => :'enableBackChannelLogout',
49
46
  :'login_v2' => :'loginV2',
50
47
  :'permission_check_v2' => :'permissionCheckV2'
@@ -70,7 +67,6 @@ module Zitadel::Client::Models
70
67
  :'oidc_token_exchange' => :'FeatureServiceFeatureFlag',
71
68
  :'improved_performance' => :'FeatureServiceImprovedPerformanceFeatureFlag',
72
69
  :'oidc_single_v1_session_termination' => :'FeatureServiceFeatureFlag',
73
- :'disable_user_token_event' => :'FeatureServiceFeatureFlag',
74
70
  :'enable_back_channel_logout' => :'FeatureServiceFeatureFlag',
75
71
  :'login_v2' => :'FeatureServiceLoginV2FeatureFlag',
76
72
  :'permission_check_v2' => :'FeatureServiceFeatureFlag'
@@ -125,10 +121,6 @@ module Zitadel::Client::Models
125
121
  self.oidc_single_v1_session_termination = attributes[:'oidc_single_v1_session_termination']
126
122
  end
127
123
 
128
- if attributes.key?(:'disable_user_token_event')
129
- self.disable_user_token_event = attributes[:'disable_user_token_event']
130
- end
131
-
132
124
  if attributes.key?(:'enable_back_channel_logout')
133
125
  self.enable_back_channel_logout = attributes[:'enable_back_channel_logout']
134
126
  end
@@ -153,7 +145,6 @@ module Zitadel::Client::Models
153
145
  oidc_token_exchange == o.oidc_token_exchange &&
154
146
  improved_performance == o.improved_performance &&
155
147
  oidc_single_v1_session_termination == o.oidc_single_v1_session_termination &&
156
- disable_user_token_event == o.disable_user_token_event &&
157
148
  enable_back_channel_logout == o.enable_back_channel_logout &&
158
149
  login_v2 == o.login_v2 &&
159
150
  permission_check_v2 == o.permission_check_v2
@@ -168,7 +159,7 @@ module Zitadel::Client::Models
168
159
  # Calculates hash code according to all attributes.
169
160
  # @return [Integer] Hash code
170
161
  def hash
171
- [details, login_default_org, user_schema, oidc_token_exchange, improved_performance, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2].hash
162
+ [details, login_default_org, user_schema, oidc_token_exchange, improved_performance, oidc_single_v1_session_termination, enable_back_channel_logout, login_v2, permission_check_v2].hash
172
163
  end
173
164
 
174
165
  # Builds the object from hash
@@ -16,14 +16,13 @@ require 'time'
16
16
  module Zitadel::Client::Models
17
17
  class FeatureServiceImprovedPerformance
18
18
  IMPROVED_PERFORMANCE_UNSPECIFIED = "IMPROVED_PERFORMANCE_UNSPECIFIED".freeze
19
- IMPROVED_PERFORMANCE_ORG_BY_ID = "IMPROVED_PERFORMANCE_ORG_BY_ID".freeze
20
19
  IMPROVED_PERFORMANCE_PROJECT_GRANT = "IMPROVED_PERFORMANCE_PROJECT_GRANT".freeze
21
20
  IMPROVED_PERFORMANCE_PROJECT = "IMPROVED_PERFORMANCE_PROJECT".freeze
22
21
  IMPROVED_PERFORMANCE_USER_GRANT = "IMPROVED_PERFORMANCE_USER_GRANT".freeze
23
22
  IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED = "IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED".freeze
24
23
 
25
24
  def self.all_vars
26
- @all_vars ||= [IMPROVED_PERFORMANCE_UNSPECIFIED, IMPROVED_PERFORMANCE_ORG_BY_ID, IMPROVED_PERFORMANCE_PROJECT_GRANT, IMPROVED_PERFORMANCE_PROJECT, IMPROVED_PERFORMANCE_USER_GRANT, IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED].freeze
25
+ @all_vars ||= [IMPROVED_PERFORMANCE_UNSPECIFIED, IMPROVED_PERFORMANCE_PROJECT_GRANT, IMPROVED_PERFORMANCE_PROJECT, IMPROVED_PERFORMANCE_USER_GRANT, IMPROVED_PERFORMANCE_ORG_DOMAIN_VERIFIED].freeze
27
26
  end
28
27
 
29
28
  # Builds the enum from string
@@ -27,8 +27,6 @@ module Zitadel::Client::Models
27
27
 
28
28
  attr_accessor :oidc_single_v1_session_termination
29
29
 
30
- attr_accessor :disable_user_token_event
31
-
32
30
  attr_accessor :enable_back_channel_logout
33
31
 
34
32
  attr_accessor :login_v2
@@ -46,7 +44,6 @@ module Zitadel::Client::Models
46
44
  :'improved_performance' => :'improvedPerformance',
47
45
  :'debug_oidc_parent_error' => :'debugOidcParentError',
48
46
  :'oidc_single_v1_session_termination' => :'oidcSingleV1SessionTermination',
49
- :'disable_user_token_event' => :'disableUserTokenEvent',
50
47
  :'enable_back_channel_logout' => :'enableBackChannelLogout',
51
48
  :'login_v2' => :'loginV2',
52
49
  :'permission_check_v2' => :'permissionCheckV2',
@@ -73,7 +70,6 @@ module Zitadel::Client::Models
73
70
  :'improved_performance' => :'Array<FeatureServiceImprovedPerformance>',
74
71
  :'debug_oidc_parent_error' => :'Boolean',
75
72
  :'oidc_single_v1_session_termination' => :'Boolean',
76
- :'disable_user_token_event' => :'Boolean',
77
73
  :'enable_back_channel_logout' => :'Boolean',
78
74
  :'login_v2' => :'FeatureServiceLoginV2',
79
75
  :'permission_check_v2' => :'Boolean',
@@ -89,7 +85,6 @@ module Zitadel::Client::Models
89
85
  :'oidc_token_exchange',
90
86
  :'debug_oidc_parent_error',
91
87
  :'oidc_single_v1_session_termination',
92
- :'disable_user_token_event',
93
88
  :'enable_back_channel_logout',
94
89
  :'permission_check_v2',
95
90
  :'console_use_v2_user_api'
@@ -140,10 +135,6 @@ module Zitadel::Client::Models
140
135
  self.oidc_single_v1_session_termination = attributes[:'oidc_single_v1_session_termination']
141
136
  end
142
137
 
143
- if attributes.key?(:'disable_user_token_event')
144
- self.disable_user_token_event = attributes[:'disable_user_token_event']
145
- end
146
-
147
138
  if attributes.key?(:'enable_back_channel_logout')
148
139
  self.enable_back_channel_logout = attributes[:'enable_back_channel_logout']
149
140
  end
@@ -172,7 +163,6 @@ module Zitadel::Client::Models
172
163
  improved_performance == o.improved_performance &&
173
164
  debug_oidc_parent_error == o.debug_oidc_parent_error &&
174
165
  oidc_single_v1_session_termination == o.oidc_single_v1_session_termination &&
175
- disable_user_token_event == o.disable_user_token_event &&
176
166
  enable_back_channel_logout == o.enable_back_channel_logout &&
177
167
  login_v2 == o.login_v2 &&
178
168
  permission_check_v2 == o.permission_check_v2 &&
@@ -188,7 +178,7 @@ module Zitadel::Client::Models
188
178
  # Calculates hash code according to all attributes.
189
179
  # @return [Integer] Hash code
190
180
  def hash
191
- [login_default_org, user_schema, oidc_token_exchange, improved_performance, debug_oidc_parent_error, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash
181
+ [login_default_org, user_schema, oidc_token_exchange, improved_performance, debug_oidc_parent_error, oidc_single_v1_session_termination, enable_back_channel_logout, login_v2, permission_check_v2, console_use_v2_user_api].hash
192
182
  end
193
183
 
194
184
  # Builds the object from hash
@@ -25,8 +25,6 @@ module Zitadel::Client::Models
25
25
 
26
26
  attr_accessor :oidc_single_v1_session_termination
27
27
 
28
- attr_accessor :disable_user_token_event
29
-
30
28
  attr_accessor :enable_back_channel_logout
31
29
 
32
30
  attr_accessor :login_v2
@@ -41,7 +39,6 @@ module Zitadel::Client::Models
41
39
  :'oidc_token_exchange' => :'oidcTokenExchange',
42
40
  :'improved_performance' => :'improvedPerformance',
43
41
  :'oidc_single_v1_session_termination' => :'oidcSingleV1SessionTermination',
44
- :'disable_user_token_event' => :'disableUserTokenEvent',
45
42
  :'enable_back_channel_logout' => :'enableBackChannelLogout',
46
43
  :'login_v2' => :'loginV2',
47
44
  :'permission_check_v2' => :'permissionCheckV2'
@@ -66,7 +63,6 @@ module Zitadel::Client::Models
66
63
  :'oidc_token_exchange' => :'Boolean',
67
64
  :'improved_performance' => :'Array<FeatureServiceImprovedPerformance>',
68
65
  :'oidc_single_v1_session_termination' => :'Boolean',
69
- :'disable_user_token_event' => :'Boolean',
70
66
  :'enable_back_channel_logout' => :'Boolean',
71
67
  :'login_v2' => :'FeatureServiceLoginV2',
72
68
  :'permission_check_v2' => :'Boolean'
@@ -80,7 +76,6 @@ module Zitadel::Client::Models
80
76
  :'user_schema',
81
77
  :'oidc_token_exchange',
82
78
  :'oidc_single_v1_session_termination',
83
- :'disable_user_token_event',
84
79
  :'enable_back_channel_logout',
85
80
  :'permission_check_v2'
86
81
  ])
@@ -126,10 +121,6 @@ module Zitadel::Client::Models
126
121
  self.oidc_single_v1_session_termination = attributes[:'oidc_single_v1_session_termination']
127
122
  end
128
123
 
129
- if attributes.key?(:'disable_user_token_event')
130
- self.disable_user_token_event = attributes[:'disable_user_token_event']
131
- end
132
-
133
124
  if attributes.key?(:'enable_back_channel_logout')
134
125
  self.enable_back_channel_logout = attributes[:'enable_back_channel_logout']
135
126
  end
@@ -153,7 +144,6 @@ module Zitadel::Client::Models
153
144
  oidc_token_exchange == o.oidc_token_exchange &&
154
145
  improved_performance == o.improved_performance &&
155
146
  oidc_single_v1_session_termination == o.oidc_single_v1_session_termination &&
156
- disable_user_token_event == o.disable_user_token_event &&
157
147
  enable_back_channel_logout == o.enable_back_channel_logout &&
158
148
  login_v2 == o.login_v2 &&
159
149
  permission_check_v2 == o.permission_check_v2
@@ -168,7 +158,7 @@ module Zitadel::Client::Models
168
158
  # Calculates hash code according to all attributes.
169
159
  # @return [Integer] Hash code
170
160
  def hash
171
- [login_default_org, user_schema, oidc_token_exchange, improved_performance, oidc_single_v1_session_termination, disable_user_token_event, enable_back_channel_logout, login_v2, permission_check_v2].hash
161
+ [login_default_org, user_schema, oidc_token_exchange, improved_performance, oidc_single_v1_session_termination, enable_back_channel_logout, login_v2, permission_check_v2].hash
172
162
  end
173
163
 
174
164
  # Builds the object from hash
@@ -31,6 +31,8 @@ module Zitadel::Client::Models
31
31
  # Boolean weather federated logout is enabled. If enabled, ZITADEL will send a logout request to the identity provider, if the user terminates the session in ZITADEL. Be sure to provide a SLO endpoint as part of the metadata.
32
32
  attr_accessor :federated_logout_enabled
33
33
 
34
+ attr_accessor :signature_algorithm
35
+
34
36
  class EnumAttributeValidator
35
37
  attr_reader :datatype
36
38
  attr_reader :allowable_values
@@ -61,7 +63,8 @@ module Zitadel::Client::Models
61
63
  :'with_signed_request' => :'withSignedRequest',
62
64
  :'name_id_format' => :'nameIdFormat',
63
65
  :'transient_mapping_attribute_name' => :'transientMappingAttributeName',
64
- :'federated_logout_enabled' => :'federatedLogoutEnabled'
66
+ :'federated_logout_enabled' => :'federatedLogoutEnabled',
67
+ :'signature_algorithm' => :'signatureAlgorithm'
65
68
  }
66
69
  end
67
70
 
@@ -83,7 +86,8 @@ module Zitadel::Client::Models
83
86
  :'with_signed_request' => :'Boolean',
84
87
  :'name_id_format' => :'IdentityProviderServiceSAMLNameIDFormat',
85
88
  :'transient_mapping_attribute_name' => :'String',
86
- :'federated_logout_enabled' => :'Boolean'
89
+ :'federated_logout_enabled' => :'Boolean',
90
+ :'signature_algorithm' => :'IdentityProviderServiceSAMLSignatureAlgorithm'
87
91
  }
88
92
  end
89
93
 
@@ -91,7 +95,7 @@ module Zitadel::Client::Models
91
95
  def self.openapi_nullable
92
96
  Set.new([
93
97
  :'transient_mapping_attribute_name',
94
- :'federated_logout_enabled'
98
+ :'federated_logout_enabled',
95
99
  ])
96
100
  end
97
101
 
@@ -136,6 +140,10 @@ module Zitadel::Client::Models
136
140
  if attributes.key?(:'federated_logout_enabled')
137
141
  self.federated_logout_enabled = attributes[:'federated_logout_enabled']
138
142
  end
143
+
144
+ if attributes.key?(:'signature_algorithm')
145
+ self.signature_algorithm = attributes[:'signature_algorithm']
146
+ end
139
147
  end
140
148
 
141
149
  # Checks equality by comparing each attribute.
@@ -148,7 +156,8 @@ module Zitadel::Client::Models
148
156
  with_signed_request == o.with_signed_request &&
149
157
  name_id_format == o.name_id_format &&
150
158
  transient_mapping_attribute_name == o.transient_mapping_attribute_name &&
151
- federated_logout_enabled == o.federated_logout_enabled
159
+ federated_logout_enabled == o.federated_logout_enabled &&
160
+ signature_algorithm == o.signature_algorithm
152
161
  end
153
162
 
154
163
  # @see the `==` method
@@ -160,7 +169,7 @@ module Zitadel::Client::Models
160
169
  # Calculates hash code according to all attributes.
161
170
  # @return [Integer] Hash code
162
171
  def hash
163
- [metadata_xml, binding, with_signed_request, name_id_format, transient_mapping_attribute_name, federated_logout_enabled].hash
172
+ [metadata_xml, binding, with_signed_request, name_id_format, transient_mapping_attribute_name, federated_logout_enabled, signature_algorithm].hash
164
173
  end
165
174
 
166
175
  # Builds the object from hash
@@ -0,0 +1,43 @@
1
+ =begin
2
+ #Zitadel SDK
3
+
4
+ #The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zitadel::Client::Models
17
+ class IdentityProviderServiceSAMLSignatureAlgorithm
18
+ SAML_SIGNATURE_UNSPECIFIED = "SAML_SIGNATURE_UNSPECIFIED".freeze
19
+ SAML_SIGNATURE_RSA_SHA1 = "SAML_SIGNATURE_RSA_SHA1".freeze
20
+ SAML_SIGNATURE_RSA_SHA256 = "SAML_SIGNATURE_RSA_SHA256".freeze
21
+ SAML_SIGNATURE_RSA_SHA512 = "SAML_SIGNATURE_RSA_SHA512".freeze
22
+
23
+ def self.all_vars
24
+ @all_vars ||= [SAML_SIGNATURE_UNSPECIFIED, SAML_SIGNATURE_RSA_SHA1, SAML_SIGNATURE_RSA_SHA256, SAML_SIGNATURE_RSA_SHA512].freeze
25
+ end
26
+
27
+ # Builds the enum from string
28
+ # @param [String] The enum value in the form of the string
29
+ # @return [String] The enum value
30
+ def self.build_from_hash(value)
31
+ new.build_from_hash(value)
32
+ end
33
+
34
+ # Builds the enum from string
35
+ # @param [String] The enum value in the form of the string
36
+ # @return [String] The enum value
37
+ def build_from_hash(value)
38
+ return value if IdentityProviderServiceSAMLSignatureAlgorithm.all_vars.include?(value)
39
+ raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::IdentityProviderServiceSAMLSignatureAlgorithm"
40
+ end
41
+ end
42
+
43
+ end
@@ -0,0 +1,247 @@
1
+ =begin
2
+ #Zitadel SDK
3
+
4
+ #The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zitadel::Client::Models
17
+ class SessionServiceExpirationDateQuery
18
+ # A Timestamp represents a point in time independent of any time zone or local calendar, encoded as a count of seconds and fractions of seconds at nanosecond resolution. The count is relative to an epoch at UTC midnight on January 1, 1970, in the proleptic Gregorian calendar which extends the Gregorian calendar backwards to year one. All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap second table is needed for interpretation, using a [24-hour linear smear](https://developers.google.com/time/smear). The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By restricting to that range, we ensure that we can convert to and from [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings. # Examples Example 1: Compute Timestamp from POSIX `time()`. Timestamp timestamp; timestamp.set_seconds(time(NULL)); timestamp.set_nanos(0); Example 2: Compute Timestamp from POSIX `gettimeofday()`. struct timeval tv; gettimeofday(&tv, NULL); Timestamp timestamp; timestamp.set_seconds(tv.tv_sec); timestamp.set_nanos(tv.tv_usec * 1000); Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`. FILETIME ft; GetSystemTimeAsFileTime(&ft); UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime; // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z. Timestamp timestamp; timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL)); timestamp.set_nanos((INT32) ((ticks % 10000000) * 100)); Example 4: Compute Timestamp from Java `System.currentTimeMillis()`. long millis = System.currentTimeMillis(); Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000) .setNanos((int) ((millis % 1000) * 1000000)).build(); Example 5: Compute Timestamp from Java `Instant.now()`. Instant now = Instant.now(); Timestamp timestamp = Timestamp.newBuilder().setSeconds(now.getEpochSecond()) .setNanos(now.getNano()).build(); Example 6: Compute Timestamp from current time in Python. timestamp = Timestamp() timestamp.GetCurrentTime() # JSON Mapping In JSON format, the Timestamp type is encoded as a string in the [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\" where {year} is always expressed using four digits while {month}, {day}, {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution), are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone is required. A proto3 JSON serializer should always use UTC (as indicated by \"Z\") when printing the Timestamp type and a proto3 JSON parser should be able to accept both UTC and other timezones (as indicated by an offset). For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past 01:30 UTC on January 15, 2017. In JavaScript, one can convert a Date object to this format using the standard [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) method. In Python, a standard `datetime.datetime` object can be converted to this format using [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use the Joda Time's [`ISODateTimeFormat.dateTime()`]( http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime() ) to obtain a formatter capable of generating timestamps in this format.
19
+ attr_accessor :expiration_date
20
+
21
+ attr_accessor :method
22
+
23
+ class EnumAttributeValidator
24
+ attr_reader :datatype
25
+ attr_reader :allowable_values
26
+
27
+ def initialize(datatype, allowable_values)
28
+ @allowable_values = allowable_values.map do |value|
29
+ case datatype.to_s
30
+ when /Integer/i
31
+ value.to_i
32
+ when /Float/i
33
+ value.to_f
34
+ else
35
+ value
36
+ end
37
+ end
38
+ end
39
+
40
+ def valid?(value)
41
+ !value || allowable_values.include?(value)
42
+ end
43
+ end
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'expiration_date' => :'expirationDate',
49
+ :'method' => :'method'
50
+ }
51
+ end
52
+
53
+ # Returns attribute mapping this model knows about
54
+ def self.acceptable_attribute_map
55
+ attribute_map
56
+ end
57
+
58
+ # Returns all the JSON keys this model knows about
59
+ def self.acceptable_attributes
60
+ acceptable_attribute_map.values
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.openapi_types
65
+ {
66
+ :'expiration_date' => :'Time',
67
+ :'method' => :'SessionServiceTimestampQueryMethod'
68
+ }
69
+ end
70
+
71
+ # List of attributes with nullable: true
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ ])
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Models attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ # MODIFIED: Updated class name in error message
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::SessionServiceExpirationDateQuery` initialize method"
83
+ end
84
+
85
+ # check to see if the attribute exists and convert string to symbol for hash key
86
+ acceptable_attribute_map = self.class.acceptable_attribute_map
87
+ attributes = attributes.each_with_object({}) { |(k, v), h|
88
+ if (!acceptable_attribute_map.key?(k.to_sym))
89
+ # MODIFIED: Updated class name in error message
90
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::SessionServiceExpirationDateQuery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
91
+ end
92
+ h[k.to_sym] = v
93
+ }
94
+
95
+ if attributes.key?(:'expiration_date')
96
+ self.expiration_date = attributes[:'expiration_date']
97
+ end
98
+
99
+ if attributes.key?(:'method')
100
+ self.method = attributes[:'method']
101
+ end
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ expiration_date == o.expiration_date &&
110
+ method == o.method
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(o)
116
+ self == o
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [expiration_date, method].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Models attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ transformed_hash = {}
132
+ openapi_types.each_pair do |key, type|
133
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = nil
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[attribute_map[key]].is_a?(Array)
139
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
+ end
141
+ elsif !attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
+ end
144
+ end
145
+ new(transformed_hash) # `new` will call the initialize method of the specific model class.
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def self._deserialize(type, value)
153
+ case type.to_sym
154
+ when :Time
155
+ Time.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ # models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name
186
+ # MODIFIED: Ensure model is looked up in the Models namespace
187
+ # 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails")
188
+ klass = Zitadel::Client::Models.const_get(type)
189
+ # The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache)
190
+ # The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself)
191
+ if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf)
192
+ klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method
193
+ else
194
+ klass.build_from_hash(value) # For regular models
195
+ end
196
+ end
197
+ end
198
+
199
+ # Returns the string representation of the object
200
+ # @return [String] String presentation of the object
201
+ def to_s
202
+ to_hash.to_s
203
+ end
204
+
205
+ # to_body is an alias to to_hash (backward compatibility)
206
+ # @return [Hash] Returns the object in the form of hash
207
+ def to_body
208
+ to_hash
209
+ end
210
+
211
+ # Returns the object in the form of hash
212
+ # @return [Hash] Returns the object in the form of hash
213
+ def to_hash
214
+ hash = {} # Calls super.to_hash if parent exists
215
+ self.class.attribute_map.each_pair do |attr, param|
216
+ value = self.send(attr)
217
+ if value.nil?
218
+ is_nullable = self.class.openapi_nullable.include?(attr)
219
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
220
+ end
221
+
222
+ hash[param] = _to_hash(value)
223
+ end
224
+ hash
225
+ end
226
+
227
+ # Outputs non-array value in the form of hash
228
+ # For object, use to_hash. Otherwise, just return the value
229
+ # @param [Object] value Any valid value
230
+ # @return [Hash] Returns the value in the form of hash
231
+ def _to_hash(value)
232
+ if value.is_a?(Array)
233
+ value.compact.map { |v| _to_hash(v) }
234
+ elsif value.is_a?(Hash)
235
+ {}.tap do |hash|
236
+ value.each { |k, v| hash[k] = _to_hash(v) }
237
+ end
238
+ elsif value.respond_to? :to_hash
239
+ value.to_hash
240
+ else
241
+ value
242
+ end
243
+ end
244
+
245
+ end
246
+
247
+ end
@@ -19,6 +19,8 @@ module Zitadel::Client::Models
19
19
 
20
20
  attr_accessor :creator_query
21
21
 
22
+ attr_accessor :expiration_date_query
23
+
22
24
  attr_accessor :ids_query
23
25
 
24
26
  attr_accessor :user_agent_query
@@ -30,6 +32,7 @@ module Zitadel::Client::Models
30
32
  {
31
33
  :'creation_date_query' => :'creationDateQuery',
32
34
  :'creator_query' => :'creatorQuery',
35
+ :'expiration_date_query' => :'expirationDateQuery',
33
36
  :'ids_query' => :'idsQuery',
34
37
  :'user_agent_query' => :'userAgentQuery',
35
38
  :'user_id_query' => :'userIdQuery'
@@ -51,6 +54,7 @@ module Zitadel::Client::Models
51
54
  {
52
55
  :'creation_date_query' => :'SessionServiceCreationDateQuery',
53
56
  :'creator_query' => :'SessionServiceCreatorQuery',
57
+ :'expiration_date_query' => :'SessionServiceExpirationDateQuery',
54
58
  :'ids_query' => :'SessionServiceIDsQuery',
55
59
  :'user_agent_query' => :'SessionServiceUserAgentQuery',
56
60
  :'user_id_query' => :'SessionServiceUserIDQuery'
@@ -89,6 +93,10 @@ module Zitadel::Client::Models
89
93
  self.creator_query = attributes[:'creator_query']
90
94
  end
91
95
 
96
+ if attributes.key?(:'expiration_date_query')
97
+ self.expiration_date_query = attributes[:'expiration_date_query']
98
+ end
99
+
92
100
  if attributes.key?(:'ids_query')
93
101
  self.ids_query = attributes[:'ids_query']
94
102
  end
@@ -109,6 +117,7 @@ module Zitadel::Client::Models
109
117
  self.class == o.class &&
110
118
  creation_date_query == o.creation_date_query &&
111
119
  creator_query == o.creator_query &&
120
+ expiration_date_query == o.expiration_date_query &&
112
121
  ids_query == o.ids_query &&
113
122
  user_agent_query == o.user_agent_query &&
114
123
  user_id_query == o.user_id_query
@@ -123,7 +132,7 @@ module Zitadel::Client::Models
123
132
  # Calculates hash code according to all attributes.
124
133
  # @return [Integer] Hash code
125
134
  def hash
126
- [creation_date_query, creator_query, ids_query, user_agent_query, user_id_query].hash
135
+ [creation_date_query, creator_query, expiration_date_query, ids_query, user_agent_query, user_id_query].hash
127
136
  end
128
137
 
129
138
  # Builds the object from hash
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Zitadel SDK
3
+
4
+ #The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zitadel::Client::Models
17
+ class UserServiceByteFilterMethod
18
+ BYTE_FILTER_METHOD_EQUALS = "BYTE_FILTER_METHOD_EQUALS".freeze
19
+ BYTE_FILTER_METHOD_NOT_EQUALS = "BYTE_FILTER_METHOD_NOT_EQUALS".freeze
20
+
21
+ def self.all_vars
22
+ @all_vars ||= [BYTE_FILTER_METHOD_EQUALS, BYTE_FILTER_METHOD_NOT_EQUALS].freeze
23
+ end
24
+
25
+ # Builds the enum from string
26
+ # @param [String] The enum value in the form of the string
27
+ # @return [String] The enum value
28
+ def self.build_from_hash(value)
29
+ new.build_from_hash(value)
30
+ end
31
+
32
+ # Builds the enum from string
33
+ # @param [String] The enum value in the form of the string
34
+ # @return [String] The enum value
35
+ def build_from_hash(value)
36
+ return value if UserServiceByteFilterMethod.all_vars.include?(value)
37
+ raise "Invalid ENUM value #{value} for class #Zitadel::Client::Models::UserServiceByteFilterMethod"
38
+ end
39
+ end
40
+
41
+ end
@@ -0,0 +1,246 @@
1
+ =begin
2
+ #Zitadel SDK
3
+
4
+ #The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform.
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.14.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module Zitadel::Client::Models
17
+ class UserServiceMetadataValueFilter
18
+ attr_accessor :value
19
+
20
+ attr_accessor :method
21
+
22
+ class EnumAttributeValidator
23
+ attr_reader :datatype
24
+ attr_reader :allowable_values
25
+
26
+ def initialize(datatype, allowable_values)
27
+ @allowable_values = allowable_values.map do |value|
28
+ case datatype.to_s
29
+ when /Integer/i
30
+ value.to_i
31
+ when /Float/i
32
+ value.to_f
33
+ else
34
+ value
35
+ end
36
+ end
37
+ end
38
+
39
+ def valid?(value)
40
+ !value || allowable_values.include?(value)
41
+ end
42
+ end
43
+
44
+ # Attribute mapping from ruby-style variable name to JSON key.
45
+ def self.attribute_map
46
+ {
47
+ :'value' => :'value',
48
+ :'method' => :'method'
49
+ }
50
+ end
51
+
52
+ # Returns attribute mapping this model knows about
53
+ def self.acceptable_attribute_map
54
+ attribute_map
55
+ end
56
+
57
+ # Returns all the JSON keys this model knows about
58
+ def self.acceptable_attributes
59
+ acceptable_attribute_map.values
60
+ end
61
+
62
+ # Attribute type mapping.
63
+ def self.openapi_types
64
+ {
65
+ :'value' => :'String',
66
+ :'method' => :'UserServiceByteFilterMethod'
67
+ }
68
+ end
69
+
70
+ # List of attributes with nullable: true
71
+ def self.openapi_nullable
72
+ Set.new([
73
+ ])
74
+ end
75
+
76
+ # Initializes the object
77
+ # @param [Hash] attributes Models attributes in the form of hash
78
+ def initialize(attributes = {})
79
+ if (!attributes.is_a?(Hash))
80
+ # MODIFIED: Updated class name in error message
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Zitadel::Client::Models::UserServiceMetadataValueFilter` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ acceptable_attribute_map = self.class.acceptable_attribute_map
86
+ attributes = attributes.each_with_object({}) { |(k, v), h|
87
+ if (!acceptable_attribute_map.key?(k.to_sym))
88
+ # MODIFIED: Updated class name in error message
89
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Zitadel::Client::Models::UserServiceMetadataValueFilter`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
+ end
91
+ h[k.to_sym] = v
92
+ }
93
+
94
+ if attributes.key?(:'value')
95
+ self.value = attributes[:'value']
96
+ end
97
+
98
+ if attributes.key?(:'method')
99
+ self.method = attributes[:'method']
100
+ end
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ value == o.value &&
109
+ method == o.method
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [value, method].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Models attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
+ end
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
+ end
143
+ end
144
+ new(transformed_hash) # `new` will call the initialize method of the specific model class.
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def self._deserialize(type, value)
152
+ case type.to_sym
153
+ when :Time
154
+ Time.parse(value)
155
+ when :Date
156
+ Date.parse(value)
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :Boolean
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else # model
184
+ # models (e.g. Pet) or oneOf/anyOf constructs that resolve to a model name
185
+ # MODIFIED: Ensure model is looked up in the Models namespace
186
+ # 'type' here is expected to be the simple class name (e.g., "User", "OrderDetails")
187
+ klass = Zitadel::Client::Models.const_get(type)
188
+ # The `klass.build` method is for oneOf/anyOf types (defined in partial_oneof_module.mustache / partial_anyof_module.mustache)
189
+ # The `klass.build_from_hash` is for regular model types (defined in this base_object.mustache itself)
190
+ if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_allOf)
191
+ klass.build(value) # For oneOf/anyOf/allOf, delegate to their specific build method
192
+ else
193
+ klass.build_from_hash(value) # For regular models
194
+ end
195
+ end
196
+ end
197
+
198
+ # Returns the string representation of the object
199
+ # @return [String] String presentation of the object
200
+ def to_s
201
+ to_hash.to_s
202
+ end
203
+
204
+ # to_body is an alias to to_hash (backward compatibility)
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_body
207
+ to_hash
208
+ end
209
+
210
+ # Returns the object in the form of hash
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_hash
213
+ hash = {} # Calls super.to_hash if parent exists
214
+ self.class.attribute_map.each_pair do |attr, param|
215
+ value = self.send(attr)
216
+ if value.nil?
217
+ is_nullable = self.class.openapi_nullable.include?(attr)
218
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
219
+ end
220
+
221
+ hash[param] = _to_hash(value)
222
+ end
223
+ hash
224
+ end
225
+
226
+ # Outputs non-array value in the form of hash
227
+ # For object, use to_hash. Otherwise, just return the value
228
+ # @param [Object] value Any valid value
229
+ # @return [Hash] Returns the value in the form of hash
230
+ def _to_hash(value)
231
+ if value.is_a?(Array)
232
+ value.compact.map { |v| _to_hash(v) }
233
+ elsif value.is_a?(Hash)
234
+ {}.tap do |hash|
235
+ value.each { |k, v| hash[k] = _to_hash(v) }
236
+ end
237
+ elsif value.respond_to? :to_hash
238
+ value.to_hash
239
+ else
240
+ value
241
+ end
242
+ end
243
+
244
+ end
245
+
246
+ end
@@ -31,6 +31,10 @@ module Zitadel::Client::Models
31
31
 
32
32
  attr_accessor :login_name_query
33
33
 
34
+ attr_accessor :metadata_key_filter
35
+
36
+ attr_accessor :metadata_value_filter
37
+
34
38
  attr_accessor :nick_name_query
35
39
 
36
40
  attr_accessor :not_query
@@ -58,6 +62,8 @@ module Zitadel::Client::Models
58
62
  :'in_user_ids_query' => :'inUserIdsQuery',
59
63
  :'last_name_query' => :'lastNameQuery',
60
64
  :'login_name_query' => :'loginNameQuery',
65
+ :'metadata_key_filter' => :'metadataKeyFilter',
66
+ :'metadata_value_filter' => :'metadataValueFilter',
61
67
  :'nick_name_query' => :'nickNameQuery',
62
68
  :'not_query' => :'notQuery',
63
69
  :'or_query' => :'orQuery',
@@ -90,6 +96,8 @@ module Zitadel::Client::Models
90
96
  :'in_user_ids_query' => :'UserServiceInUserIDQuery',
91
97
  :'last_name_query' => :'UserServiceLastNameQuery',
92
98
  :'login_name_query' => :'UserServiceLoginNameQuery',
99
+ :'metadata_key_filter' => :'UserServiceMetadataKeyFilter',
100
+ :'metadata_value_filter' => :'UserServiceMetadataValueFilter',
93
101
  :'nick_name_query' => :'UserServiceNickNameQuery',
94
102
  :'not_query' => :'UserServiceNotQuery',
95
103
  :'or_query' => :'UserServiceOrQuery',
@@ -157,6 +165,14 @@ module Zitadel::Client::Models
157
165
  self.login_name_query = attributes[:'login_name_query']
158
166
  end
159
167
 
168
+ if attributes.key?(:'metadata_key_filter')
169
+ self.metadata_key_filter = attributes[:'metadata_key_filter']
170
+ end
171
+
172
+ if attributes.key?(:'metadata_value_filter')
173
+ self.metadata_value_filter = attributes[:'metadata_value_filter']
174
+ end
175
+
160
176
  if attributes.key?(:'nick_name_query')
161
177
  self.nick_name_query = attributes[:'nick_name_query']
162
178
  end
@@ -203,6 +219,8 @@ module Zitadel::Client::Models
203
219
  in_user_ids_query == o.in_user_ids_query &&
204
220
  last_name_query == o.last_name_query &&
205
221
  login_name_query == o.login_name_query &&
222
+ metadata_key_filter == o.metadata_key_filter &&
223
+ metadata_value_filter == o.metadata_value_filter &&
206
224
  nick_name_query == o.nick_name_query &&
207
225
  not_query == o.not_query &&
208
226
  or_query == o.or_query &&
@@ -222,7 +240,7 @@ module Zitadel::Client::Models
222
240
  # Calculates hash code according to all attributes.
223
241
  # @return [Integer] Hash code
224
242
  def hash
225
- [and_query, display_name_query, email_query, first_name_query, in_user_emails_query, in_user_ids_query, last_name_query, login_name_query, nick_name_query, not_query, or_query, organization_id_query, phone_query, state_query, type_query, user_name_query].hash
243
+ [and_query, display_name_query, email_query, first_name_query, in_user_emails_query, in_user_ids_query, last_name_query, login_name_query, metadata_key_filter, metadata_value_filter, nick_name_query, not_query, or_query, organization_id_query, phone_query, state_query, type_query, user_name_query].hash
226
244
  end
227
245
 
228
246
  # Builds the object from hash
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Zitadel
4
4
  module Client
5
- VERSION = '4.1.0.beta.6'
5
+ VERSION = '4.1.0.beta.7'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zitadel-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0.beta.6
4
+ version: 4.1.0.beta.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zitadel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-11 00:00:00.000000000 Z
11
+ date: 2025-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
@@ -813,6 +813,7 @@ files:
813
813
  - lib/zitadel/client/models/identity_provider_service_s_a_m_l_binding.rb
814
814
  - lib/zitadel/client/models/identity_provider_service_s_a_m_l_config.rb
815
815
  - lib/zitadel/client/models/identity_provider_service_s_a_m_l_name_i_d_format.rb
816
+ - lib/zitadel/client/models/identity_provider_service_s_a_m_l_signature_algorithm.rb
816
817
  - lib/zitadel/client/models/o_i_d_c_service_any.rb
817
818
  - lib/zitadel/client/models/o_i_d_c_service_auth_request.rb
818
819
  - lib/zitadel/client/models/o_i_d_c_service_authorization_error.rb
@@ -888,6 +889,7 @@ files:
888
889
  - lib/zitadel/client/models/session_service_delete_session_request.rb
889
890
  - lib/zitadel/client/models/session_service_delete_session_response.rb
890
891
  - lib/zitadel/client/models/session_service_details.rb
892
+ - lib/zitadel/client/models/session_service_expiration_date_query.rb
891
893
  - lib/zitadel/client/models/session_service_factors.rb
892
894
  - lib/zitadel/client/models/session_service_get_session_request.rb
893
895
  - lib/zitadel/client/models/session_service_get_session_response.rb
@@ -988,6 +990,7 @@ files:
988
990
  - lib/zitadel/client/models/user_service_auth_factor_u2_f.rb
989
991
  - lib/zitadel/client/models/user_service_auth_factors.rb
990
992
  - lib/zitadel/client/models/user_service_authentication_method_type.rb
993
+ - lib/zitadel/client/models/user_service_byte_filter_method.rb
991
994
  - lib/zitadel/client/models/user_service_connect_error.rb
992
995
  - lib/zitadel/client/models/user_service_create_invite_code_request.rb
993
996
  - lib/zitadel/client/models/user_service_create_invite_code_response.rb
@@ -1058,6 +1061,7 @@ files:
1058
1061
  - lib/zitadel/client/models/user_service_metadata.rb
1059
1062
  - lib/zitadel/client/models/user_service_metadata_key_filter.rb
1060
1063
  - lib/zitadel/client/models/user_service_metadata_search_filter.rb
1064
+ - lib/zitadel/client/models/user_service_metadata_value_filter.rb
1061
1065
  - lib/zitadel/client/models/user_service_nick_name_query.rb
1062
1066
  - lib/zitadel/client/models/user_service_not_query.rb
1063
1067
  - lib/zitadel/client/models/user_service_notification_type.rb