passageidentity 0.7.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openapi_client/api/magic_links_api.rb +1 -1
  3. data/lib/openapi_client/api/tokens_api.rb +1 -1
  4. data/lib/openapi_client/api/user_devices_api.rb +1 -1
  5. data/lib/openapi_client/api/users_api.rb +19 -19
  6. data/lib/openapi_client/api_client.rb +1 -1
  7. data/lib/openapi_client/api_error.rb +1 -1
  8. data/lib/openapi_client/configuration.rb +1 -1
  9. data/lib/openapi_client/models/apple_user_social_connection.rb +1 -1
  10. data/lib/openapi_client/models/create_magic_link_request.rb +22 -3
  11. data/lib/openapi_client/models/{create_user_request.rb → create_user_args.rb} +4 -4
  12. data/lib/openapi_client/models/github_user_social_connection.rb +1 -1
  13. data/lib/openapi_client/models/google_user_social_connection.rb +1 -1
  14. data/lib/openapi_client/models/link.rb +1 -1
  15. data/lib/openapi_client/models/list_devices_response.rb +1 -1
  16. data/lib/openapi_client/models/list_paginated_users_item.rb +1 -1
  17. data/lib/openapi_client/models/list_paginated_users_response.rb +1 -1
  18. data/lib/openapi_client/models/magic_link.rb +2 -1
  19. data/lib/openapi_client/models/magic_link_channel.rb +1 -1
  20. data/lib/openapi_client/models/{theme_type.rb → magic_link_language.rb} +12 -8
  21. data/lib/openapi_client/models/magic_link_response.rb +1 -1
  22. data/lib/openapi_client/models/magic_link_type.rb +1 -1
  23. data/lib/openapi_client/models/model400_error.rb +1 -1
  24. data/lib/openapi_client/models/model401_error.rb +1 -1
  25. data/lib/openapi_client/models/model403_error.rb +1 -1
  26. data/lib/openapi_client/models/model404_error.rb +1 -1
  27. data/lib/openapi_client/models/model500_error.rb +1 -1
  28. data/lib/openapi_client/models/nonce.rb +1 -1
  29. data/lib/openapi_client/models/paginated_links.rb +1 -1
  30. data/lib/openapi_client/models/{user_info.rb → passage_user.rb} +4 -4
  31. data/lib/openapi_client/models/social_connection_type.rb +1 -1
  32. data/lib/openapi_client/models/{update_user_request.rb → update_user_args.rb} +4 -4
  33. data/lib/openapi_client/models/user_event_action.rb +1 -1
  34. data/lib/openapi_client/models/user_event_status.rb +1 -1
  35. data/lib/openapi_client/models/user_recent_event.rb +1 -1
  36. data/lib/openapi_client/models/user_response.rb +2 -2
  37. data/lib/openapi_client/models/user_social_connections.rb +1 -1
  38. data/lib/openapi_client/models/user_status.rb +1 -1
  39. data/lib/openapi_client/models/web_authn_devices.rb +1 -1
  40. data/lib/openapi_client/models/web_authn_icons.rb +1 -1
  41. data/lib/openapi_client/models/web_authn_type.rb +1 -1
  42. data/lib/openapi_client/version.rb +1 -1
  43. data/lib/openapi_client.rb +5 -20
  44. data/lib/passageidentity/auth.rb +43 -156
  45. data/lib/passageidentity/client.rb +16 -96
  46. data/lib/passageidentity/user.rb +246 -0
  47. data/lib/passageidentity/version.rb +1 -1
  48. metadata +42 -40
  49. data/lib/models/update_magic_link_auth_method.rb +0 -276
  50. data/lib/models/update_otp_auth_method.rb +0 -276
  51. data/lib/models/update_passkeys_auth_method.rb +0 -216
  52. data/lib/openapi_client/api/apps_api.rb +0 -85
  53. data/lib/openapi_client/models/app_info.rb +0 -886
  54. data/lib/openapi_client/models/app_response.rb +0 -221
  55. data/lib/openapi_client/models/auth_methods.rb +0 -254
  56. data/lib/openapi_client/models/element_customization.rb +0 -457
  57. data/lib/openapi_client/models/font_family.rb +0 -58
  58. data/lib/openapi_client/models/layout_config.rb +0 -285
  59. data/lib/openapi_client/models/layouts.rb +0 -241
  60. data/lib/openapi_client/models/magic_link_auth_method.rb +0 -295
  61. data/lib/openapi_client/models/otp_auth_method.rb +0 -295
  62. data/lib/openapi_client/models/passkeys_auth_method.rb +0 -221
  63. data/lib/openapi_client/models/technologies.rb +0 -46
  64. data/lib/openapi_client/models/ttl_display_unit.rb +0 -42
  65. data/lib/openapi_client/models/user_metadata_field.rb +0 -323
  66. data/lib/openapi_client/models/user_metadata_field_type.rb +0 -44
  67. data/lib/passageidentity/user_api.rb +0 -218
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48edd9284cb043177840d772dd58a7c1d7ae8cb77f3a52aee0722b2546835048
4
- data.tar.gz: f68bacf557d743155928c4265e47fdc734dbed8183e7b20cbe8ab1eb44ac7b1d
3
+ metadata.gz: 6f317c8a22bbc2c05eefe69617ef8c8951b5465898355ccb4aecc574c059e12a
4
+ data.tar.gz: b67f4e8823813fcc7fefda9bf06d096bf3d57fb2364633203156be981dea6319
5
5
  SHA512:
6
- metadata.gz: f91d166d539836b0434c6120944137dbf15dda319608b62966ec7d2263258467c61856e325303796d2f37bb702c6716a79ddcf2fe88a2ebe4156c7c76b6ce37f
7
- data.tar.gz: c632f9b44f9a9ef7ee50a85547095b64ad8c2cb028e5a2b06ca50f6e6101a117ea75310b0f55cd86ceeb0ff753041713da8fc95f68e8e0c083e5ec8d377da115
6
+ metadata.gz: 5c9a46e390ad82e84bb1c46d0488a89c657e553f994a27bfa26f33b50401ae6622fb5ac2e1d97fb16f619fc7b36d2615f70bd94e5bbc2251f9ac0c1d3fdf050e
7
+ data.tar.gz: abecf658557958a01f002238085a5e5e757b9b0f923f47ac5688b2033a21aa54f7e816bc253ef1e3793f93ef58cef6a6fba38d80bbed9c2089e362ef1f2d75f2
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -91,21 +91,21 @@ module OpenapiClient
91
91
  # Create User
92
92
  # Create user for an application. Must provide an email of phone number identifier.
93
93
  # @param app_id [String] App ID
94
- # @param create_user_request [CreateUserRequest] email, phone, user_metadata
94
+ # @param create_user_args [CreateUserArgs] email, phone, user_metadata
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [UserResponse]
97
- def create_user(app_id, create_user_request, opts = {})
98
- data, _status_code, _headers = create_user_with_http_info(app_id, create_user_request, opts)
97
+ def create_user(app_id, create_user_args, opts = {})
98
+ data, _status_code, _headers = create_user_with_http_info(app_id, create_user_args, opts)
99
99
  data
100
100
  end
101
101
 
102
102
  # Create User
103
103
  # Create user for an application. Must provide an email of phone number identifier.
104
104
  # @param app_id [String] App ID
105
- # @param create_user_request [CreateUserRequest] email, phone, user_metadata
105
+ # @param create_user_args [CreateUserArgs] email, phone, user_metadata
106
106
  # @param [Hash] opts the optional parameters
107
107
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
108
- def create_user_with_http_info(app_id, create_user_request, opts = {})
108
+ def create_user_with_http_info(app_id, create_user_args, opts = {})
109
109
  if @api_client.config.debugging
110
110
  @api_client.config.logger.debug 'Calling API: UsersApi.create_user ...'
111
111
  end
@@ -113,9 +113,9 @@ module OpenapiClient
113
113
  if @api_client.config.client_side_validation && app_id.nil?
114
114
  fail ArgumentError, "Missing the required parameter 'app_id' when calling UsersApi.create_user"
115
115
  end
116
- # verify the required parameter 'create_user_request' is set
117
- if @api_client.config.client_side_validation && create_user_request.nil?
118
- fail ArgumentError, "Missing the required parameter 'create_user_request' when calling UsersApi.create_user"
116
+ # verify the required parameter 'create_user_args' is set
117
+ if @api_client.config.client_side_validation && create_user_args.nil?
118
+ fail ArgumentError, "Missing the required parameter 'create_user_args' when calling UsersApi.create_user"
119
119
  end
120
120
  # resource path
121
121
  local_var_path = '/apps/{app_id}/users'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
@@ -137,7 +137,7 @@ module OpenapiClient
137
137
  form_params = opts[:form_params] || {}
138
138
 
139
139
  # http body (model)
140
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_request)
140
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user_args)
141
141
 
142
142
  # return_type
143
143
  return_type = opts[:debug_return_type] || 'UserResponse'
@@ -469,11 +469,11 @@ module OpenapiClient
469
469
  # Update a user's information.
470
470
  # @param app_id [String] App ID
471
471
  # @param user_id [String] User ID
472
- # @param update_user_request [UpdateUserRequest] user settings
472
+ # @param update_user_args [UpdateUserArgs] user settings
473
473
  # @param [Hash] opts the optional parameters
474
474
  # @return [UserResponse]
475
- def update_user(app_id, user_id, update_user_request, opts = {})
476
- data, _status_code, _headers = update_user_with_http_info(app_id, user_id, update_user_request, opts)
475
+ def update_user(app_id, user_id, update_user_args, opts = {})
476
+ data, _status_code, _headers = update_user_with_http_info(app_id, user_id, update_user_args, opts)
477
477
  data
478
478
  end
479
479
 
@@ -481,10 +481,10 @@ module OpenapiClient
481
481
  # Update a user&#39;s information.
482
482
  # @param app_id [String] App ID
483
483
  # @param user_id [String] User ID
484
- # @param update_user_request [UpdateUserRequest] user settings
484
+ # @param update_user_args [UpdateUserArgs] user settings
485
485
  # @param [Hash] opts the optional parameters
486
486
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
487
- def update_user_with_http_info(app_id, user_id, update_user_request, opts = {})
487
+ def update_user_with_http_info(app_id, user_id, update_user_args, opts = {})
488
488
  if @api_client.config.debugging
489
489
  @api_client.config.logger.debug 'Calling API: UsersApi.update_user ...'
490
490
  end
@@ -496,9 +496,9 @@ module OpenapiClient
496
496
  if @api_client.config.client_side_validation && user_id.nil?
497
497
  fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.update_user"
498
498
  end
499
- # verify the required parameter 'update_user_request' is set
500
- if @api_client.config.client_side_validation && update_user_request.nil?
501
- fail ArgumentError, "Missing the required parameter 'update_user_request' when calling UsersApi.update_user"
499
+ # verify the required parameter 'update_user_args' is set
500
+ if @api_client.config.client_side_validation && update_user_args.nil?
501
+ fail ArgumentError, "Missing the required parameter 'update_user_args' when calling UsersApi.update_user"
502
502
  end
503
503
  # resource path
504
504
  local_var_path = '/apps/{app_id}/users/{user_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
@@ -520,7 +520,7 @@ module OpenapiClient
520
520
  form_params = opts[:form_params] || {}
521
521
 
522
522
  # http body (model)
523
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_request)
523
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_user_args)
524
524
 
525
525
  # return_type
526
526
  return_type = opts[:debug_return_type] || 'UserResponse'
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -19,7 +19,6 @@ module OpenapiClient
19
19
 
20
20
  attr_accessor :email
21
21
 
22
- # language of the email to send (optional)
23
22
  attr_accessor :language
24
23
 
25
24
  # must be a relative url
@@ -31,6 +30,7 @@ module OpenapiClient
31
30
 
32
31
  attr_accessor :_send
33
32
 
33
+ # time to live in minutes
34
34
  attr_accessor :ttl
35
35
 
36
36
  attr_accessor :type
@@ -85,7 +85,7 @@ module OpenapiClient
85
85
  {
86
86
  :'channel' => :'MagicLinkChannel',
87
87
  :'email' => :'String',
88
- :'language' => :'String',
88
+ :'language' => :'MagicLinkLanguage',
89
89
  :'magic_link_path' => :'String',
90
90
  :'phone' => :'String',
91
91
  :'redirect_url' => :'String',
@@ -163,6 +163,10 @@ module OpenapiClient
163
163
  def list_invalid_properties
164
164
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
165
165
  invalid_properties = Array.new
166
+ if !@ttl.nil? && @ttl < 1
167
+ invalid_properties.push('invalid value for "ttl", must be greater than or equal to 1.')
168
+ end
169
+
166
170
  invalid_properties
167
171
  end
168
172
 
@@ -170,9 +174,24 @@ module OpenapiClient
170
174
  # @return true if the model is valid
171
175
  def valid?
172
176
  warn '[DEPRECATED] the `valid?` method is obsolete'
177
+ return false if !@ttl.nil? && @ttl < 1
173
178
  true
174
179
  end
175
180
 
181
+ # Custom attribute writer method with validation
182
+ # @param [Object] ttl Value to be assigned
183
+ def ttl=(ttl)
184
+ if ttl.nil?
185
+ fail ArgumentError, 'ttl cannot be nil'
186
+ end
187
+
188
+ if ttl < 1
189
+ fail ArgumentError, 'invalid value for "ttl", must be greater than or equal to 1.'
190
+ end
191
+
192
+ @ttl = ttl
193
+ end
194
+
176
195
  # Checks equality by comparing each attribute.
177
196
  # @param [Object] Object to be compared
178
197
  def ==(o)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OpenapiClient
17
- class CreateUserRequest
17
+ class CreateUserArgs
18
18
  # Email of the new user. Either this or `phone` is required; both may be provided.
19
19
  attr_accessor :email
20
20
 
@@ -56,13 +56,13 @@ module OpenapiClient
56
56
  # @param [Hash] attributes Model attributes in the form of hash
57
57
  def initialize(attributes = {})
58
58
  if (!attributes.is_a?(Hash))
59
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CreateUserRequest` initialize method"
59
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::CreateUserArgs` initialize method"
60
60
  end
61
61
 
62
62
  # check to see if the attribute exists and convert string to symbol for hash key
63
63
  attributes = attributes.each_with_object({}) { |(k, v), h|
64
64
  if (!self.class.attribute_map.key?(k.to_sym))
65
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CreateUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::CreateUserArgs`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
66
66
  end
67
67
  h[k.to_sym] = v
68
68
  }
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -27,6 +27,7 @@ module OpenapiClient
27
27
 
28
28
  attr_accessor :secret
29
29
 
30
+ # time to live in minutes
30
31
  attr_accessor :ttl
31
32
 
32
33
  attr_accessor :type
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -14,13 +14,17 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OpenapiClient
17
- class ThemeType
18
- AUTO = "auto".freeze
19
- LIGHT = "light".freeze
20
- DARK = "dark".freeze
17
+ class MagicLinkLanguage
18
+ DE = "de".freeze
19
+ EN = "en".freeze
20
+ ES = "es".freeze
21
+ IT = "it".freeze
22
+ PL = "pl".freeze
23
+ PT = "pt".freeze
24
+ ZH = "zh".freeze
21
25
 
22
26
  def self.all_vars
23
- @all_vars ||= [AUTO, LIGHT, DARK].freeze
27
+ @all_vars ||= [DE, EN, ES, IT, PL, PT, ZH].freeze
24
28
  end
25
29
 
26
30
  # Builds the enum from string
@@ -34,8 +38,8 @@ module OpenapiClient
34
38
  # @param [String] The enum value in the form of the string
35
39
  # @return [String] The enum value
36
40
  def build_from_hash(value)
37
- return value if ThemeType.all_vars.include?(value)
38
- raise "Invalid ENUM value #{value} for class #ThemeType"
41
+ return value if MagicLinkLanguage.all_vars.include?(value)
42
+ raise "Invalid ENUM value #{value} for class #MagicLinkLanguage"
39
43
  end
40
44
  end
41
45
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OpenapiClient
17
- class UserInfo
17
+ class PassageUser
18
18
  attr_accessor :created_at
19
19
 
20
20
  attr_accessor :email
@@ -135,13 +135,13 @@ module OpenapiClient
135
135
  # @param [Hash] attributes Model attributes in the form of hash
136
136
  def initialize(attributes = {})
137
137
  if (!attributes.is_a?(Hash))
138
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UserInfo` initialize method"
138
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::PassageUser` initialize method"
139
139
  end
140
140
 
141
141
  # check to see if the attribute exists and convert string to symbol for hash key
142
142
  attributes = attributes.each_with_object({}) { |(k, v), h|
143
143
  if (!self.class.attribute_map.key?(k.to_sym))
144
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UserInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
144
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::PassageUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
145
145
  end
146
146
  h[k.to_sym] = v
147
147
  }
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module OpenapiClient
17
- class UpdateUserRequest
17
+ class UpdateUserArgs
18
18
  attr_accessor :email
19
19
 
20
20
  attr_accessor :phone
@@ -54,13 +54,13 @@ module OpenapiClient
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UpdateUserRequest` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `OpenapiClient::UpdateUserArgs` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UpdateUserRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `OpenapiClient::UpdateUserArgs`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12
 
@@ -32,7 +32,7 @@ module OpenapiClient
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'user' => :'UserInfo'
35
+ :'user' => :'PassageUser'
36
36
  }
37
37
  end
38
38
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1
7
7
  Contact: support@passage.id
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.11.0-SNAPSHOT
9
+ Generator version: 7.11.0
10
10
 
11
11
  =end
12
12