workos 10.2.1 → 10.3.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 (216) hide show
  1. checksums.yaml +4 -4
  2. data/.last-synced-sha +1 -1
  3. data/.oagen-manifest.json +311 -0
  4. data/.release-please-manifest.json +1 -1
  5. data/CHANGELOG.md +154 -0
  6. data/Gemfile.lock +2 -2
  7. data/lib/workos/agents/agent_blueprint.rb +43 -0
  8. data/lib/workos/agents/agent_blueprint_invocable_by.rb +7 -0
  9. data/lib/workos/agents/agent_blueprint_session_setting.rb +25 -0
  10. data/lib/workos/agents/agent_blueprints_create_request.rb +31 -0
  11. data/lib/workos/agents/agent_blueprints_create_request_invocable_by.rb +22 -0
  12. data/lib/workos/agents/agent_blueprints_create_request_session_setting.rb +7 -0
  13. data/lib/workos/agents/agent_blueprints_token_mint_token_request.rb +34 -0
  14. data/lib/workos/agents/agent_blueprints_token_validate_token_request.rb +18 -0
  15. data/lib/workos/agents/agent_blueprints_update_request.rb +31 -0
  16. data/lib/workos/agents/agent_blueprints_update_request_invocable_by.rb +7 -0
  17. data/lib/workos/agents/agent_blueprints_update_request_session_setting.rb +25 -0
  18. data/lib/workos/agents/agent_instance.rb +40 -0
  19. data/lib/workos/agents/agent_instance_session.rb +40 -0
  20. data/lib/workos/agents/agent_token.rb +40 -0
  21. data/lib/workos/agents/agent_token_validation.rb +40 -0
  22. data/lib/workos/agents.rb +395 -0
  23. data/lib/workos/api_keys/validate_api_key.rb +1 -12
  24. data/lib/workos/audit_logs.rb +23 -5
  25. data/lib/workos/authorization.rb +3 -3
  26. data/lib/workos/client.rb +4 -0
  27. data/lib/workos/inflections.rb +15 -0
  28. data/lib/workos/organizations/create_it_contact.rb +18 -0
  29. data/lib/workos/organizations/invite_it_contact.rb +18 -0
  30. data/lib/workos/organizations/it_contact.rb +31 -0
  31. data/lib/workos/organizations/it_contact_list.rb +25 -0
  32. data/lib/workos/organizations/organization_input.rb +10 -1
  33. data/lib/workos/organizations/update_audit_logs_retention.rb +13 -1
  34. data/lib/workos/organizations.rb +110 -1
  35. data/lib/workos/platform_teams/create_team.rb +22 -0
  36. data/lib/workos/platform_teams/team.rb +37 -0
  37. data/lib/workos/platform_teams.rb +58 -0
  38. data/lib/workos/shared/agent_blueprint_created.rb +34 -0
  39. data/lib/workos/shared/agent_blueprint_created_data.rb +43 -0
  40. data/lib/workos/shared/agent_blueprint_created_data_invocable_by.rb +22 -0
  41. data/lib/workos/shared/agent_blueprint_created_data_session_setting.rb +25 -0
  42. data/lib/workos/shared/agent_blueprint_deleted.rb +34 -0
  43. data/lib/workos/shared/agent_blueprint_deleted_data.rb +31 -0
  44. data/lib/workos/shared/agent_blueprint_updated.rb +34 -0
  45. data/lib/workos/shared/agent_blueprint_updated_data.rb +7 -0
  46. data/lib/workos/shared/agent_blueprint_updated_data_invocable_by.rb +7 -0
  47. data/lib/workos/shared/agent_blueprint_updated_data_session_setting.rb +7 -0
  48. data/lib/workos/shared/agent_instance_created.rb +34 -0
  49. data/lib/workos/shared/agent_instance_created_data.rb +40 -0
  50. data/lib/workos/shared/agent_instance_deleted.rb +34 -0
  51. data/lib/workos/shared/agent_instance_deleted_data.rb +40 -0
  52. data/lib/workos/shared/agent_instance_session_created.rb +34 -0
  53. data/lib/workos/shared/agent_instance_session_created_data.rb +43 -0
  54. data/lib/workos/shared/agent_instance_session_revoked.rb +34 -0
  55. data/lib/workos/shared/agent_instance_session_revoked_data.rb +40 -0
  56. data/lib/workos/shared/resource_export_completed.rb +34 -0
  57. data/lib/workos/shared/resource_export_completed_data.rb +22 -0
  58. data/lib/workos/shared/resource_export_created.rb +34 -0
  59. data/lib/workos/shared/resource_export_created_data.rb +22 -0
  60. data/lib/workos/shared/resource_export_downloaded.rb +34 -0
  61. data/lib/workos/shared/resource_export_downloaded_data.rb +22 -0
  62. data/lib/workos/shared/resource_export_failed.rb +34 -0
  63. data/lib/workos/shared/resource_export_failed_data.rb +22 -0
  64. data/lib/workos/shared/waitlist_user.rb +8 -5
  65. data/lib/workos/sso/create_connection.rb +37 -0
  66. data/lib/workos/sso/create_connection_attribute_maps.rb +22 -0
  67. data/lib/workos/sso/create_connection_key_pair.rb +22 -0
  68. data/lib/workos/sso/create_connection_oidc_options.rb +43 -0
  69. data/lib/workos/sso/create_connection_saml_options.rb +40 -0
  70. data/lib/workos/sso/create_connection_standard_attributes.rb +34 -0
  71. data/lib/workos/sso/create_saml_idp_signing_certificate.rb +18 -0
  72. data/lib/workos/sso/patch_connection.rb +34 -0
  73. data/lib/workos/sso/patch_connection_attribute_maps.rb +22 -0
  74. data/lib/workos/sso/patch_connection_oidc_options.rb +40 -0
  75. data/lib/workos/sso/patch_connection_saml_options.rb +31 -0
  76. data/lib/workos/sso/patch_connection_standard_attributes.rb +7 -0
  77. data/lib/workos/sso/saml_idp_signing_certificate.rb +34 -0
  78. data/lib/workos/sso/saml_idp_signing_certificate_list.rb +22 -0
  79. data/lib/workos/sso/saml_sp_encryption_certificate.rb +34 -0
  80. data/lib/workos/sso/saml_sp_encryption_certificate_list.rb +22 -0
  81. data/lib/workos/sso/saml_sp_signing_certificate.rb +34 -0
  82. data/lib/workos/sso/token_query.rb +11 -2
  83. data/lib/workos/sso.rb +305 -4
  84. data/lib/workos/types/agent_blueprints_token_mint_token_request_type.rb +15 -0
  85. data/lib/workos/types/agent_instance_created_data_type.rb +13 -0
  86. data/lib/workos/types/agent_instance_deleted_data_type.rb +9 -0
  87. data/lib/workos/types/agent_instance_session_status.rb +14 -0
  88. data/lib/workos/types/agent_instance_type.rb +9 -0
  89. data/lib/workos/types/authenticate_response_authentication_method.rb +1 -4
  90. data/lib/workos/types/connection_activated_data_connection_type.rb +1 -4
  91. data/lib/workos/types/connection_type.rb +1 -4
  92. data/lib/workos/types/connections_connection_type.rb +1 -4
  93. data/lib/workos/types/create_connection_oidc_options_id_token_signature_algorithm.rb +24 -0
  94. data/lib/workos/types/create_connection_oidc_options_token_authentication_method.rb +14 -0
  95. data/lib/workos/types/create_webhook_endpoint_events.rb +8 -1
  96. data/lib/workos/types/invite_it_contact_intents.rb +16 -0
  97. data/lib/workos/types/patch_connection_oidc_options_id_token_signature_algorithm.rb +9 -0
  98. data/lib/workos/types/patch_connection_oidc_options_token_authentication_method.rb +9 -0
  99. data/lib/workos/types/resource_export_completed_data_resource_type.rb +16 -0
  100. data/lib/workos/types/resource_export_created_data_resource_type.rb +9 -0
  101. data/lib/workos/types/resource_export_downloaded_data_resource_type.rb +9 -0
  102. data/lib/workos/types/resource_export_failed_data_resource_type.rb +9 -0
  103. data/lib/workos/types/session_created_data_status.rb +1 -6
  104. data/lib/workos/types/session_revoked_data_status.rb +1 -1
  105. data/lib/workos/types/sso_grant_type.rb +13 -0
  106. data/lib/workos/types/team_production_state.rb +15 -0
  107. data/lib/workos/types/token_query_grant_type.rb +9 -0
  108. data/lib/workos/types/update_audit_logs_retention_retention_period.rb +32 -0
  109. data/lib/workos/types/user_identities_get_item_provider.rb +1 -4
  110. data/lib/workos/types/user_management_waitlists_state.rb +14 -0
  111. data/lib/workos/types/user_sessions_status.rb +1 -1
  112. data/lib/workos/types/waitlist_entry_state.rb +9 -0
  113. data/lib/workos/types/waitlist_user_state.rb +1 -6
  114. data/lib/workos/user_management/authentication_oauth_failed_data.rb +5 -2
  115. data/lib/workos/user_management/authentication_oauth_succeeded_data.rb +5 -2
  116. data/lib/workos/user_management/create_password_reset_token.rb +1 -12
  117. data/lib/workos/user_management/create_waitlist_entry.rb +25 -0
  118. data/lib/workos/user_management/email_completion_session_authenticate_request.rb +43 -0
  119. data/lib/workos/user_management/waitlist.rb +28 -0
  120. data/lib/workos/user_management/waitlist_entry.rb +43 -0
  121. data/lib/workos/user_management.rb +176 -0
  122. data/lib/workos/version.rb +1 -1
  123. data/lib/workos.rb +1 -0
  124. data/rbi/workos/agent_blueprint.rbi +72 -0
  125. data/rbi/workos/agent_blueprint_created.rbi +54 -0
  126. data/rbi/workos/agent_blueprint_created_data.rbi +72 -0
  127. data/rbi/workos/agent_blueprint_created_data_invocable_by.rbi +30 -0
  128. data/rbi/workos/agent_blueprint_created_data_session_setting.rbi +36 -0
  129. data/rbi/workos/agent_blueprint_deleted.rbi +54 -0
  130. data/rbi/workos/agent_blueprint_deleted_data.rbi +48 -0
  131. data/rbi/workos/agent_blueprint_invocable_by.rbi +30 -0
  132. data/rbi/workos/agent_blueprint_session_setting.rbi +36 -0
  133. data/rbi/workos/agent_blueprint_updated.rbi +54 -0
  134. data/rbi/workos/agent_blueprint_updated_data.rbi +72 -0
  135. data/rbi/workos/agent_blueprint_updated_data_invocable_by.rbi +30 -0
  136. data/rbi/workos/agent_blueprint_updated_data_session_setting.rbi +36 -0
  137. data/rbi/workos/agent_blueprints_create_request.rbi +48 -0
  138. data/rbi/workos/agent_blueprints_create_request_invocable_by.rbi +30 -0
  139. data/rbi/workos/agent_blueprints_create_request_session_setting.rbi +36 -0
  140. data/rbi/workos/agent_blueprints_token_mint_token_request.rbi +54 -0
  141. data/rbi/workos/agent_blueprints_token_validate_token_request.rbi +24 -0
  142. data/rbi/workos/agent_blueprints_update_request.rbi +48 -0
  143. data/rbi/workos/agent_blueprints_update_request_invocable_by.rbi +30 -0
  144. data/rbi/workos/agent_blueprints_update_request_session_setting.rbi +36 -0
  145. data/rbi/workos/agent_instance.rbi +66 -0
  146. data/rbi/workos/agent_instance_created.rbi +54 -0
  147. data/rbi/workos/agent_instance_created_data.rbi +66 -0
  148. data/rbi/workos/agent_instance_deleted.rbi +54 -0
  149. data/rbi/workos/agent_instance_deleted_data.rbi +66 -0
  150. data/rbi/workos/agent_instance_session.rbi +66 -0
  151. data/rbi/workos/agent_instance_session_created.rbi +54 -0
  152. data/rbi/workos/agent_instance_session_created_data.rbi +72 -0
  153. data/rbi/workos/agent_instance_session_revoked.rbi +54 -0
  154. data/rbi/workos/agent_instance_session_revoked_data.rbi +66 -0
  155. data/rbi/workos/agent_token.rbi +66 -0
  156. data/rbi/workos/agent_token_validation.rbi +66 -0
  157. data/rbi/workos/agents.rbi +133 -0
  158. data/rbi/workos/audit_logs.rbi +26 -2
  159. data/rbi/workos/authentication_oauth_failed_data.rbi +6 -0
  160. data/rbi/workos/authentication_oauth_succeeded_data.rbi +6 -0
  161. data/rbi/workos/client.rbi +3 -0
  162. data/rbi/workos/create_connection.rbi +60 -0
  163. data/rbi/workos/create_connection_attribute_maps.rbi +30 -0
  164. data/rbi/workos/create_connection_key_pair.rbi +30 -0
  165. data/rbi/workos/create_connection_oidc_options.rbi +72 -0
  166. data/rbi/workos/create_connection_saml_options.rbi +66 -0
  167. data/rbi/workos/create_connection_standard_attributes.rbi +54 -0
  168. data/rbi/workos/create_it_contact.rbi +24 -0
  169. data/rbi/workos/create_saml_idp_signing_certificate.rbi +24 -0
  170. data/rbi/workos/create_team.rbi +30 -0
  171. data/rbi/workos/create_waitlist_entry.rbi +36 -0
  172. data/rbi/workos/email_completion_session_authenticate_request.rbi +72 -0
  173. data/rbi/workos/invite_it_contact.rbi +24 -0
  174. data/rbi/workos/it_contact.rbi +48 -0
  175. data/rbi/workos/organizations.rbi +45 -0
  176. data/rbi/workos/patch_connection.rbi +54 -0
  177. data/rbi/workos/patch_connection_attribute_maps.rbi +30 -0
  178. data/rbi/workos/patch_connection_oidc_options.rbi +66 -0
  179. data/rbi/workos/patch_connection_saml_options.rbi +48 -0
  180. data/rbi/workos/patch_connection_standard_attributes.rbi +54 -0
  181. data/rbi/workos/platform_teams.rbi +30 -0
  182. data/rbi/workos/resource_export_completed.rbi +54 -0
  183. data/rbi/workos/resource_export_completed_data.rbi +30 -0
  184. data/rbi/workos/resource_export_created.rbi +54 -0
  185. data/rbi/workos/resource_export_created_data.rbi +30 -0
  186. data/rbi/workos/resource_export_downloaded.rbi +54 -0
  187. data/rbi/workos/resource_export_downloaded_data.rbi +30 -0
  188. data/rbi/workos/resource_export_failed.rbi +54 -0
  189. data/rbi/workos/resource_export_failed_data.rbi +30 -0
  190. data/rbi/workos/saml_idp_signing_certificate.rbi +54 -0
  191. data/rbi/workos/saml_idp_signing_certificate_list.rbi +30 -0
  192. data/rbi/workos/saml_sp_encryption_certificate.rbi +54 -0
  193. data/rbi/workos/saml_sp_encryption_certificate_list.rbi +30 -0
  194. data/rbi/workos/saml_sp_signing_certificate.rbi +54 -0
  195. data/rbi/workos/sso.rbi +155 -2
  196. data/rbi/workos/team.rbi +60 -0
  197. data/rbi/workos/token_query.rbi +20 -2
  198. data/rbi/workos/update_audit_logs_retention.rbi +8 -2
  199. data/rbi/workos/user_management.rbi +64 -0
  200. data/rbi/workos/waitlist.rbi +42 -0
  201. data/rbi/workos/waitlist_entry.rbi +72 -0
  202. data/rbi/workos/waitlist_user.rbi +12 -6
  203. data/test/workos/test_agents.rb +105 -1
  204. data/test/workos/test_agents_model_round_trip.rb +245 -0
  205. data/test/workos/test_audit_logs.rb +11 -2
  206. data/test/workos/test_authorization.rb +6 -6
  207. data/test/workos/test_organizations.rb +41 -1
  208. data/test/workos/test_organizations_model_round_trip.rb +40 -1
  209. data/test/workos/test_platform_teams.rb +41 -0
  210. data/test/workos/test_platform_teams_model_round_trip.rb +41 -0
  211. data/test/workos/test_shared_model_round_trip.rb +449 -2
  212. data/test/workos/test_sso.rb +108 -2
  213. data/test/workos/test_sso_model_round_trip.rb +262 -2
  214. data/test/workos/test_user_management.rb +56 -0
  215. data/test/workos/test_user_management_model_round_trip.rb +78 -2
  216. metadata +160 -1
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentInstanceSessionCreated < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::AgentInstanceSessionCreatedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentInstanceSessionCreatedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ agent_instance_id: :agent_instance_id,
11
+ organization_id: :organization_id,
12
+ expires_at: :expires_at,
13
+ revoked_at: :revoked_at,
14
+ created_at: :created_at,
15
+ updated_at: :updated_at,
16
+ permission_slugs: :permission_slugs
17
+ }.freeze
18
+
19
+ attr_accessor \
20
+ :object,
21
+ :id,
22
+ :agent_instance_id,
23
+ :organization_id,
24
+ :expires_at,
25
+ :revoked_at,
26
+ :created_at,
27
+ :updated_at,
28
+ :permission_slugs
29
+
30
+ def initialize(json)
31
+ hash = self.class.normalize(json)
32
+ @object = hash[:object]
33
+ @id = hash[:id]
34
+ @agent_instance_id = hash[:agent_instance_id]
35
+ @organization_id = hash[:organization_id]
36
+ @expires_at = hash[:expires_at]
37
+ @revoked_at = hash[:revoked_at]
38
+ @created_at = hash[:created_at]
39
+ @updated_at = hash[:updated_at]
40
+ @permission_slugs = hash[:permission_slugs] || []
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentInstanceSessionRevoked < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::AgentInstanceSessionRevokedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class AgentInstanceSessionRevokedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ agent_instance_id: :agent_instance_id,
11
+ organization_id: :organization_id,
12
+ expires_at: :expires_at,
13
+ revoked_at: :revoked_at,
14
+ created_at: :created_at,
15
+ updated_at: :updated_at
16
+ }.freeze
17
+
18
+ attr_accessor \
19
+ :object,
20
+ :id,
21
+ :agent_instance_id,
22
+ :organization_id,
23
+ :expires_at,
24
+ :revoked_at,
25
+ :created_at,
26
+ :updated_at
27
+
28
+ def initialize(json)
29
+ hash = self.class.normalize(json)
30
+ @object = hash[:object]
31
+ @id = hash[:id]
32
+ @agent_instance_id = hash[:agent_instance_id]
33
+ @organization_id = hash[:organization_id]
34
+ @expires_at = hash[:expires_at]
35
+ @revoked_at = hash[:revoked_at]
36
+ @created_at = hash[:created_at]
37
+ @updated_at = hash[:updated_at]
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportCompleted < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::ResourceExportCompletedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportCompletedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ id: :id,
9
+ resource_type: :resource_type
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :id,
14
+ :resource_type
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @id = hash[:id]
19
+ @resource_type = hash[:resource_type]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportCreated < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::ResourceExportCreatedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportCreatedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ id: :id,
9
+ resource_type: :resource_type
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :id,
14
+ :resource_type
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @id = hash[:id]
19
+ @resource_type = hash[:resource_type]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportDownloaded < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::ResourceExportDownloadedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportDownloadedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ id: :id,
9
+ resource_type: :resource_type
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :id,
14
+ :resource_type
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @id = hash[:id]
19
+ @resource_type = hash[:resource_type]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportFailed < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ object: :object,
9
+ id: :id,
10
+ event: :event,
11
+ data: :data,
12
+ created_at: :created_at,
13
+ context: :context
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :object,
18
+ :id,
19
+ :event,
20
+ :data,
21
+ :created_at,
22
+ :context
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @object = hash[:object]
27
+ @id = hash[:id]
28
+ @event = hash[:event]
29
+ @data = hash[:data] ? WorkOS::ResourceExportFailedData.new(hash[:data]) : nil
30
+ @created_at = hash[:created_at]
31
+ @context = hash[:context] ? WorkOS::EventContext.new(hash[:context]) : nil
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class ResourceExportFailedData < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ id: :id,
9
+ resource_type: :resource_type
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :id,
14
+ :resource_type
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @id = hash[:id]
19
+ @resource_type = hash[:resource_type]
20
+ end
21
+ end
22
+ end
@@ -5,36 +5,39 @@
5
5
  module WorkOS
6
6
  class WaitlistUser < WorkOS::Types::BaseModel
7
7
  HASH_ATTRS = {
8
- object: :object,
9
8
  id: :id,
10
9
  email: :email,
11
10
  state: :state,
12
11
  approved_at: :approved_at,
12
+ additional_fields: :additional_fields,
13
13
  waitlist_id: :waitlist_id,
14
14
  created_at: :created_at,
15
- updated_at: :updated_at
15
+ updated_at: :updated_at,
16
+ object: :object
16
17
  }.freeze
17
18
 
18
19
  attr_accessor \
19
- :object,
20
20
  :id,
21
21
  :email,
22
22
  :state,
23
23
  :approved_at,
24
+ :additional_fields,
24
25
  :waitlist_id,
25
26
  :created_at,
26
- :updated_at
27
+ :updated_at,
28
+ :object
27
29
 
28
30
  def initialize(json)
29
31
  hash = self.class.normalize(json)
30
- @object = hash[:object]
31
32
  @id = hash[:id]
32
33
  @email = hash[:email]
33
34
  @state = hash[:state]
34
35
  @approved_at = hash[:approved_at]
36
+ @additional_fields = hash[:additional_fields] || {}
35
37
  @waitlist_id = hash[:waitlist_id]
36
38
  @created_at = hash[:created_at]
37
39
  @updated_at = hash[:updated_at]
40
+ @object = hash[:object]
38
41
  end
39
42
  end
40
43
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateConnection < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ organization_id: :organization_id,
9
+ name: :name,
10
+ external_id: :external_id,
11
+ connection_type: :connection_type,
12
+ attribute_maps: :attribute_maps,
13
+ saml_options: :saml_options,
14
+ oidc_options: :oidc_options
15
+ }.freeze
16
+
17
+ attr_accessor \
18
+ :organization_id,
19
+ :name,
20
+ :external_id,
21
+ :connection_type,
22
+ :attribute_maps,
23
+ :saml_options,
24
+ :oidc_options
25
+
26
+ def initialize(json)
27
+ hash = self.class.normalize(json)
28
+ @organization_id = hash[:organization_id]
29
+ @name = hash[:name]
30
+ @external_id = hash[:external_id]
31
+ @connection_type = hash[:connection_type]
32
+ @attribute_maps = hash[:attribute_maps] ? WorkOS::CreateConnectionAttributeMaps.new(hash[:attribute_maps]) : nil
33
+ @saml_options = hash[:saml_options] ? WorkOS::CreateConnectionSAMLOptions.new(hash[:saml_options]) : nil
34
+ @oidc_options = hash[:oidc_options] ? WorkOS::CreateConnectionOIDCOptions.new(hash[:oidc_options]) : nil
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateConnectionAttributeMaps < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ standard_attributes: :standard_attributes,
9
+ custom_attributes: :custom_attributes
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :standard_attributes,
14
+ :custom_attributes
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @standard_attributes = hash[:standard_attributes] ? WorkOS::CreateConnectionStandardAttributes.new(hash[:standard_attributes]) : nil
19
+ @custom_attributes = hash[:custom_attributes] || {}
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateConnectionKeyPair < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ key: :key,
9
+ cert: :cert
10
+ }.freeze
11
+
12
+ attr_accessor \
13
+ :key,
14
+ :cert
15
+
16
+ def initialize(json)
17
+ hash = self.class.normalize(json)
18
+ @key = hash[:key]
19
+ @cert = hash[:cert]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateConnectionOIDCOptions < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ discovery_endpoint: :discovery_endpoint,
9
+ client_id: :client_id,
10
+ client_secret: :client_secret,
11
+ redirect_uri: :redirect_uri,
12
+ pkce: :pkce,
13
+ token_authentication_method: :token_authentication_method,
14
+ jwt_signing_key_pair: :jwt_signing_key_pair,
15
+ id_token_signature_algorithm: :id_token_signature_algorithm,
16
+ fetch_user_info: :fetch_user_info
17
+ }.freeze
18
+
19
+ attr_accessor \
20
+ :discovery_endpoint,
21
+ :client_id,
22
+ :client_secret,
23
+ :redirect_uri,
24
+ :pkce,
25
+ :token_authentication_method,
26
+ :jwt_signing_key_pair,
27
+ :id_token_signature_algorithm,
28
+ :fetch_user_info
29
+
30
+ def initialize(json)
31
+ hash = self.class.normalize(json)
32
+ @discovery_endpoint = hash[:discovery_endpoint]
33
+ @client_id = hash[:client_id]
34
+ @client_secret = hash[:client_secret]
35
+ @redirect_uri = hash[:redirect_uri]
36
+ @pkce = hash[:pkce]
37
+ @token_authentication_method = hash[:token_authentication_method]
38
+ @jwt_signing_key_pair = hash[:jwt_signing_key_pair] ? WorkOS::CreateConnectionKeyPair.new(hash[:jwt_signing_key_pair]) : nil
39
+ @id_token_signature_algorithm = hash[:id_token_signature_algorithm]
40
+ @fetch_user_info = hash[:fetch_user_info]
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateConnectionSAMLOptions < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ idp_metadata_url: :idp_metadata_url,
9
+ acs_url: :acs_url,
10
+ sp_entity_id: :sp_entity_id,
11
+ idp_entity_id: :idp_entity_id,
12
+ idp_sso_url: :idp_sso_url,
13
+ idp_signing_certs: :idp_signing_certs,
14
+ sp_signing_key_pair: :sp_signing_key_pair,
15
+ sp_encryption_key_pairs: :sp_encryption_key_pairs
16
+ }.freeze
17
+
18
+ attr_accessor \
19
+ :idp_metadata_url,
20
+ :acs_url,
21
+ :sp_entity_id,
22
+ :idp_entity_id,
23
+ :idp_sso_url,
24
+ :idp_signing_certs,
25
+ :sp_signing_key_pair,
26
+ :sp_encryption_key_pairs
27
+
28
+ def initialize(json)
29
+ hash = self.class.normalize(json)
30
+ @idp_metadata_url = hash[:idp_metadata_url]
31
+ @acs_url = hash[:acs_url]
32
+ @sp_entity_id = hash[:sp_entity_id]
33
+ @idp_entity_id = hash[:idp_entity_id]
34
+ @idp_sso_url = hash[:idp_sso_url]
35
+ @idp_signing_certs = hash[:idp_signing_certs] || []
36
+ @sp_signing_key_pair = hash[:sp_signing_key_pair] ? WorkOS::CreateConnectionKeyPair.new(hash[:sp_signing_key_pair]) : nil
37
+ @sp_encryption_key_pairs = (hash[:sp_encryption_key_pairs] || []).map { |item| item ? WorkOS::CreateConnectionKeyPair.new(item) : nil }
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateConnectionStandardAttributes < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ idp_id: :idp_id,
9
+ email: :email,
10
+ first_name: :first_name,
11
+ last_name: :last_name,
12
+ groups: :groups,
13
+ name: :name
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :idp_id,
18
+ :email,
19
+ :first_name,
20
+ :last_name,
21
+ :groups,
22
+ :name
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @idp_id = hash[:idp_id]
27
+ @email = hash[:email]
28
+ @first_name = hash[:first_name]
29
+ @last_name = hash[:last_name]
30
+ @groups = hash[:groups]
31
+ @name = hash[:name]
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class CreateSAMLIdpSigningCertificate < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ value: :value
9
+ }.freeze
10
+
11
+ attr_accessor :value
12
+
13
+ def initialize(json)
14
+ hash = self.class.normalize(json)
15
+ @value = hash[:value]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file is auto-generated by oagen. Do not edit.
4
+
5
+ module WorkOS
6
+ class PatchConnection < WorkOS::Types::BaseModel
7
+ HASH_ATTRS = {
8
+ name: :name,
9
+ external_id: :external_id,
10
+ connection_type: :connection_type,
11
+ attribute_maps: :attribute_maps,
12
+ saml_options: :saml_options,
13
+ oidc_options: :oidc_options
14
+ }.freeze
15
+
16
+ attr_accessor \
17
+ :name,
18
+ :external_id,
19
+ :connection_type,
20
+ :attribute_maps,
21
+ :saml_options,
22
+ :oidc_options
23
+
24
+ def initialize(json)
25
+ hash = self.class.normalize(json)
26
+ @name = hash[:name]
27
+ @external_id = hash[:external_id]
28
+ @connection_type = hash[:connection_type]
29
+ @attribute_maps = hash[:attribute_maps] ? WorkOS::PatchConnectionAttributeMaps.new(hash[:attribute_maps]) : nil
30
+ @saml_options = hash[:saml_options] ? WorkOS::PatchConnectionSAMLOptions.new(hash[:saml_options]) : nil
31
+ @oidc_options = hash[:oidc_options] ? WorkOS::PatchConnectionOIDCOptions.new(hash[:oidc_options]) : nil
32
+ end
33
+ end
34
+ end