clerk-http-client 1.0.0 → 2.0.0.beta1

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 (343) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +155 -191
  4. data/clerk-http-client.gemspec +1 -1
  5. data/docs/ActorTokensApi.md +26 -26
  6. data/docs/AllowListBlockListApi.md +72 -74
  7. data/docs/BetaFeaturesApi.md +42 -41
  8. data/docs/ClientsApi.md +36 -37
  9. data/docs/CreateBulkInvitationsRequestInner.md +28 -0
  10. data/docs/CreateInvitationRequest.md +6 -4
  11. data/docs/{CreateOAuthApplicationRequest.md → CreateOauthApplicationRequest.md} +1 -1
  12. data/docs/CreateOrganizationInvitationBulkRequestInner.md +2 -2
  13. data/docs/CreateOrganizationInvitationRequest.md +5 -3
  14. data/docs/CreateOrganizationRequest.md +3 -3
  15. data/docs/CreateSAMLConnectionRequest.md +2 -0
  16. data/docs/CreateSessionRequest.md +18 -0
  17. data/docs/CreateSessionToken200Response.md +20 -0
  18. data/docs/CreateSessionTokenFromTemplateRequest.md +18 -0
  19. data/docs/CreateSessionTokenRequest.md +18 -0
  20. data/docs/CreateUserRequest.md +3 -3
  21. data/docs/CreateWaitlistEntryRequest.md +20 -0
  22. data/docs/DomainsApi.md +46 -48
  23. data/docs/EmailAddress.md +2 -0
  24. data/docs/EmailAddressVerification.md +3 -3
  25. data/docs/EmailAddressesApi.md +52 -52
  26. data/docs/EmailSMSTemplatesApi.md +60 -66
  27. data/docs/FromOauth.md +26 -0
  28. data/docs/FromOauthError.md +47 -0
  29. data/docs/{GetOAuthAccessToken200ResponseInner.md → GetOauthAccessToken200ResponseInner.md} +4 -2
  30. data/docs/Instance.md +24 -0
  31. data/docs/InstanceSettingsApi.md +114 -45
  32. data/docs/Invitation.md +1 -1
  33. data/docs/InvitationsApi.md +110 -38
  34. data/docs/JWKS.md +18 -0
  35. data/docs/JWKSApi.md +14 -15
  36. data/docs/JWKSKeysInner.md +32 -0
  37. data/docs/JWTTemplatesApi.md +62 -63
  38. data/docs/ListWaitlistEntries200Response.md +20 -0
  39. data/docs/MergeOrganizationMetadataRequest.md +2 -2
  40. data/docs/MiscellaneousApi.md +11 -7
  41. data/docs/{OAuthApplication.md → OauthApplication.md} +4 -0
  42. data/docs/{OAuthApplicationWithSecret.md → OauthApplicationWithSecret.md} +4 -0
  43. data/docs/{OAuthApplicationsApi.md → OauthApplicationsApi.md} +90 -94
  44. data/docs/Organization.md +2 -2
  45. data/docs/OrganizationDomainApi.md +15 -13
  46. data/docs/OrganizationDomainsApi.md +103 -33
  47. data/docs/OrganizationInvitation.md +6 -2
  48. data/docs/OrganizationInvitationWithPublicOrganizationData.md +4 -2
  49. data/docs/OrganizationInvitationsApi.md +76 -81
  50. data/docs/OrganizationMembership.md +2 -2
  51. data/docs/OrganizationMembershipsApi.md +66 -70
  52. data/docs/OrganizationWithLogo.md +2 -2
  53. data/docs/OrganizationsApi.md +87 -93
  54. data/docs/PhoneNumbersApi.md +52 -52
  55. data/docs/ProxyChecksApi.md +16 -15
  56. data/docs/{RedirectURLsApi.md → RedirectUrlsApi.md} +46 -48
  57. data/docs/RevokeInvitation200Response.md +1 -1
  58. data/docs/SAML.md +1 -1
  59. data/docs/SAMLAccount.md +1 -1
  60. data/docs/SAMLConnectionsApi.md +59 -60
  61. data/docs/SchemasSAMLConnection.md +2 -0
  62. data/docs/SessionsApi.md +203 -60
  63. data/docs/SignInTokensApi.md +26 -26
  64. data/docs/SignUp.md +4 -2
  65. data/docs/SignUpsApi.md +16 -15
  66. data/docs/TestingTokensApi.md +11 -12
  67. data/docs/UpdateOrganizationMembershipMetadataRequest.md +2 -2
  68. data/docs/UpdateOrganizationRequest.md +2 -2
  69. data/docs/UpdateSAMLConnectionRequest.md +2 -0
  70. data/docs/UpdateUserRequest.md +3 -3
  71. data/docs/User.md +3 -3
  72. data/docs/UsersApi.md +297 -294
  73. data/docs/WaitlistEntriesApi.md +157 -0
  74. data/docs/WaitlistEntry.md +32 -0
  75. data/docs/WaitlistEntryInvitation.md +36 -0
  76. data/docs/WebhooksApi.md +30 -33
  77. data/lib/clerk-http-client/api/actor_tokens_api.rb +10 -14
  78. data/lib/clerk-http-client/api/allow_list_block_list_api.rb +25 -33
  79. data/lib/clerk-http-client/api/beta_features_api.rb +13 -21
  80. data/lib/clerk-http-client/api/clients_api.rb +13 -17
  81. data/lib/clerk-http-client/api/domains_api.rb +16 -20
  82. data/lib/clerk-http-client/api/email_addresses_api.rb +19 -27
  83. data/lib/clerk-http-client/api/email_sms_templates_api.rb +19 -19
  84. data/lib/clerk-http-client/api/instance_settings_api.rb +78 -31
  85. data/lib/clerk-http-client/api/invitations_api.rb +82 -17
  86. data/lib/clerk-http-client/api/jwks_api.rb +7 -7
  87. data/lib/clerk-http-client/api/jwt_templates_api.rb +22 -30
  88. data/lib/clerk-http-client/api/miscellaneous_api.rb +4 -4
  89. data/lib/clerk-http-client/api/{o_auth_applications_api.rb → oauth_applications_api.rb} +53 -57
  90. data/lib/clerk-http-client/api/organization_domains_api.rb +92 -10
  91. data/lib/clerk-http-client/api/organization_invitations_api.rb +25 -29
  92. data/lib/clerk-http-client/api/organization_memberships_api.rb +22 -26
  93. data/lib/clerk-http-client/api/organizations_api.rb +30 -34
  94. data/lib/clerk-http-client/api/phone_numbers_api.rb +19 -27
  95. data/lib/clerk-http-client/api/proxy_checks_api.rb +7 -11
  96. data/lib/clerk-http-client/api/redirect_urls_api.rb +16 -20
  97. data/lib/clerk-http-client/api/saml_connections_api.rb +22 -23
  98. data/lib/clerk-http-client/api/sessions_api.rb +165 -20
  99. data/lib/clerk-http-client/api/sign_in_tokens_api.rb +10 -14
  100. data/lib/clerk-http-client/api/sign_ups_api.rb +7 -11
  101. data/lib/clerk-http-client/api/testing_tokens_api.rb +6 -6
  102. data/lib/clerk-http-client/api/users_api.rb +149 -92
  103. data/lib/clerk-http-client/api/waitlist_entries_api.rb +178 -0
  104. data/lib/clerk-http-client/api/webhooks_api.rb +10 -10
  105. data/lib/clerk-http-client/api_client.rb +1 -1
  106. data/lib/clerk-http-client/api_error.rb +1 -1
  107. data/lib/clerk-http-client/configuration.rb +1 -1
  108. data/lib/clerk-http-client/models/actor_token.rb +1 -1
  109. data/lib/clerk-http-client/models/add_domain_request.rb +1 -1
  110. data/lib/clerk-http-client/models/admin.rb +1 -1
  111. data/lib/clerk-http-client/models/allowlist_identifier.rb +1 -1
  112. data/lib/clerk-http-client/models/blocklist_identifier.rb +1 -1
  113. data/lib/clerk-http-client/models/blocklist_identifiers.rb +1 -1
  114. data/lib/clerk-http-client/models/change_production_instance_domain_request.rb +1 -1
  115. data/lib/clerk-http-client/models/clerk_error.rb +1 -1
  116. data/lib/clerk-http-client/models/clerk_errors.rb +1 -1
  117. data/lib/clerk-http-client/models/client.rb +1 -1
  118. data/lib/clerk-http-client/models/{c_name_target.rb → cname_target.rb} +1 -1
  119. data/lib/clerk-http-client/models/create_actor_token_request.rb +1 -1
  120. data/lib/clerk-http-client/models/create_allowlist_identifier_request.rb +1 -1
  121. data/lib/clerk-http-client/models/create_blocklist_identifier_request.rb +1 -1
  122. data/lib/clerk-http-client/models/create_bulk_invitations_request_inner.rb +305 -0
  123. data/lib/clerk-http-client/models/create_email_address_request.rb +1 -1
  124. data/lib/clerk-http-client/models/create_invitation_request.rb +57 -10
  125. data/lib/clerk-http-client/models/create_jwt_template_request.rb +1 -1
  126. data/lib/clerk-http-client/models/{create_o_auth_application_request.rb → create_oauth_application_request.rb} +1 -8
  127. data/lib/clerk-http-client/models/create_organization_domain_request.rb +1 -1
  128. data/lib/clerk-http-client/models/create_organization_invitation_bulk_request_inner.rb +11 -7
  129. data/lib/clerk-http-client/models/create_organization_invitation_request.rb +50 -11
  130. data/lib/clerk-http-client/models/create_organization_membership_request.rb +1 -1
  131. data/lib/clerk-http-client/models/create_organization_request.rb +9 -12
  132. data/lib/clerk-http-client/models/create_phone_number_request.rb +1 -1
  133. data/lib/clerk-http-client/models/create_redirect_url_request.rb +1 -1
  134. data/lib/clerk-http-client/models/create_saml_connection_request.rb +13 -2
  135. data/lib/clerk-http-client/models/create_saml_connection_request_attribute_mapping.rb +1 -1
  136. data/lib/clerk-http-client/models/create_session_request.rb +215 -0
  137. data/lib/clerk-http-client/models/create_session_token200_response.rb +257 -0
  138. data/lib/clerk-http-client/models/create_session_token_from_template_request.rb +240 -0
  139. data/lib/clerk-http-client/models/create_session_token_request.rb +240 -0
  140. data/lib/clerk-http-client/models/create_sign_in_token_request.rb +1 -1
  141. data/lib/clerk-http-client/models/create_user_request.rb +13 -7
  142. data/lib/clerk-http-client/models/create_waitlist_entry_request.rb +232 -0
  143. data/lib/clerk-http-client/models/deleted_object.rb +1 -1
  144. data/lib/clerk-http-client/models/disable_mfa200_response.rb +1 -1
  145. data/lib/clerk-http-client/models/domain.rb +1 -1
  146. data/lib/clerk-http-client/models/domains.rb +1 -1
  147. data/lib/clerk-http-client/models/email_address.rb +12 -2
  148. data/lib/clerk-http-client/models/email_address_verification.rb +3 -3
  149. data/lib/clerk-http-client/models/from_o_auth.rb +324 -0
  150. data/{resources/templates/partial_anyof_module.mustache → lib/clerk-http-client/models/from_o_auth_error.rb} +29 -19
  151. data/lib/clerk-http-client/models/from_oauth.rb +324 -0
  152. data/{resources/templates/partial_oneof_module.mustache → lib/clerk-http-client/models/from_oauth_error.rb} +21 -54
  153. data/lib/clerk-http-client/models/{get_o_auth_access_token200_response_inner.rb → get_oauth_access_token200_response_inner.rb} +20 -7
  154. data/lib/clerk-http-client/models/identification_link.rb +3 -3
  155. data/lib/clerk-http-client/models/instance.rb +279 -0
  156. data/lib/clerk-http-client/models/instance_restrictions.rb +1 -1
  157. data/lib/clerk-http-client/models/invitation.rb +5 -3
  158. data/lib/clerk-http-client/models/jwks.rb +216 -0
  159. data/lib/clerk-http-client/models/jwks_keys_inner.rb +277 -0
  160. data/lib/clerk-http-client/models/jwt_template.rb +1 -1
  161. data/lib/clerk-http-client/models/list_waitlist_entries200_response.rb +240 -0
  162. data/lib/clerk-http-client/models/merge_organization_metadata_request.rb +9 -5
  163. data/lib/clerk-http-client/models/o_auth_application.rb +34 -2
  164. data/lib/clerk-http-client/models/o_auth_application_with_secret.rb +34 -2
  165. data/lib/clerk-http-client/models/o_auth_applications.rb +1 -1
  166. data/lib/clerk-http-client/models/oauth.rb +2 -2
  167. data/lib/clerk-http-client/models/oauth_application.rb +481 -0
  168. data/lib/clerk-http-client/models/oauth_application_with_secret.rb +498 -0
  169. data/lib/clerk-http-client/models/oauth_applications.rb +240 -0
  170. data/lib/clerk-http-client/models/organization.rb +10 -5
  171. data/lib/clerk-http-client/models/organization_domain.rb +1 -1
  172. data/lib/clerk-http-client/models/organization_domain_verification.rb +1 -1
  173. data/lib/clerk-http-client/models/organization_domains.rb +1 -1
  174. data/lib/clerk-http-client/models/organization_invitation.rb +31 -6
  175. data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data.rb +20 -6
  176. data/lib/clerk-http-client/models/organization_invitation_with_public_organization_data_public_organization_data.rb +1 -1
  177. data/lib/clerk-http-client/models/organization_invitations.rb +1 -1
  178. data/lib/clerk-http-client/models/organization_invitations_with_public_organization_data.rb +1 -1
  179. data/lib/clerk-http-client/models/organization_membership.rb +9 -5
  180. data/lib/clerk-http-client/models/organization_membership_public_user_data.rb +1 -1
  181. data/lib/clerk-http-client/models/organization_memberships.rb +1 -1
  182. data/lib/clerk-http-client/models/organization_settings.rb +1 -1
  183. data/lib/clerk-http-client/models/organization_with_logo.rb +10 -5
  184. data/lib/clerk-http-client/models/organizations.rb +1 -1
  185. data/lib/clerk-http-client/models/otp.rb +1 -1
  186. data/lib/clerk-http-client/models/passkey.rb +1 -1
  187. data/lib/clerk-http-client/models/phone_number.rb +1 -1
  188. data/lib/clerk-http-client/models/phone_number_verification.rb +1 -1
  189. data/lib/clerk-http-client/models/preview_template_request.rb +1 -1
  190. data/lib/clerk-http-client/models/proxy_check.rb +1 -1
  191. data/lib/clerk-http-client/models/redirect_url.rb +1 -1
  192. data/lib/clerk-http-client/models/revoke_invitation200_response.rb +5 -3
  193. data/lib/clerk-http-client/models/revoke_organization_invitation_request.rb +1 -1
  194. data/lib/clerk-http-client/models/saml.rb +2 -2
  195. data/lib/clerk-http-client/models/saml_account.rb +5 -3
  196. data/lib/clerk-http-client/models/saml_account_saml_connection.rb +1 -1
  197. data/lib/clerk-http-client/models/saml_account_verification.rb +1 -1
  198. data/lib/clerk-http-client/models/saml_connection.rb +1 -1
  199. data/lib/clerk-http-client/models/saml_connections.rb +1 -1
  200. data/lib/clerk-http-client/models/schemas_passkey.rb +1 -1
  201. data/lib/clerk-http-client/models/schemas_passkey_verification.rb +1 -1
  202. data/lib/clerk-http-client/models/schemas_saml_connection.rb +12 -2
  203. data/lib/clerk-http-client/models/schemas_saml_connection_attribute_mapping.rb +1 -1
  204. data/lib/clerk-http-client/models/session.rb +1 -1
  205. data/lib/clerk-http-client/models/session_latest_activity.rb +1 -1
  206. data/lib/clerk-http-client/models/sign_in_token.rb +1 -1
  207. data/lib/clerk-http-client/models/sign_up.rb +21 -6
  208. data/lib/clerk-http-client/models/svix_url.rb +1 -1
  209. data/lib/clerk-http-client/models/template.rb +1 -1
  210. data/lib/clerk-http-client/models/testing_token.rb +1 -1
  211. data/lib/clerk-http-client/models/ticket.rb +1 -1
  212. data/lib/clerk-http-client/models/toggle_template_delivery_request.rb +1 -1
  213. data/lib/clerk-http-client/models/total_count.rb +1 -1
  214. data/lib/clerk-http-client/models/totp.rb +1 -1
  215. data/lib/clerk-http-client/models/update_domain_request.rb +1 -1
  216. data/lib/clerk-http-client/models/update_email_address_request.rb +1 -1
  217. data/lib/clerk-http-client/models/update_instance_auth_config200_response.rb +1 -1
  218. data/lib/clerk-http-client/models/update_instance_auth_config_request.rb +1 -1
  219. data/lib/clerk-http-client/models/update_instance_organization_settings_request.rb +1 -1
  220. data/lib/clerk-http-client/models/update_instance_request.rb +1 -1
  221. data/lib/clerk-http-client/models/update_instance_restrictions_request.rb +1 -1
  222. data/lib/clerk-http-client/models/{update_o_auth_application_request.rb → update_oauth_application_request.rb} +1 -1
  223. data/lib/clerk-http-client/models/update_organization_domain_request.rb +1 -1
  224. data/lib/clerk-http-client/models/update_organization_membership_metadata_request.rb +9 -5
  225. data/lib/clerk-http-client/models/update_organization_membership_request.rb +1 -1
  226. data/lib/clerk-http-client/models/update_organization_request.rb +9 -5
  227. data/lib/clerk-http-client/models/update_phone_number_request.rb +1 -1
  228. data/lib/clerk-http-client/models/update_production_instance_domain_request.rb +1 -1
  229. data/lib/clerk-http-client/models/update_saml_connection_request.rb +13 -2
  230. data/lib/clerk-http-client/models/update_saml_connection_request_attribute_mapping.rb +1 -1
  231. data/lib/clerk-http-client/models/update_sign_up_request.rb +1 -1
  232. data/lib/clerk-http-client/models/update_user_metadata_request.rb +1 -1
  233. data/lib/clerk-http-client/models/update_user_request.rb +13 -7
  234. data/lib/clerk-http-client/models/upsert_template_request.rb +1 -1
  235. data/lib/clerk-http-client/models/user.rb +13 -7
  236. data/lib/clerk-http-client/models/verify_client_request.rb +1 -1
  237. data/lib/clerk-http-client/models/verify_domain_proxy_request.rb +1 -1
  238. data/lib/clerk-http-client/models/verify_password200_response.rb +1 -1
  239. data/lib/clerk-http-client/models/verify_password_request.rb +1 -1
  240. data/lib/clerk-http-client/models/verify_session_request.rb +1 -1
  241. data/lib/clerk-http-client/models/verify_totp200_response.rb +1 -1
  242. data/lib/clerk-http-client/models/verify_totp_request.rb +1 -1
  243. data/lib/clerk-http-client/models/waitlist_entry.rb +369 -0
  244. data/lib/clerk-http-client/models/waitlist_entry_invitation.rb +397 -0
  245. data/lib/clerk-http-client/models/web3_signature.rb +3 -3
  246. data/lib/clerk-http-client/models/web3_wallet.rb +1 -1
  247. data/lib/clerk-http-client/models/web3_wallet_verification.rb +1 -1
  248. data/lib/clerk-http-client/version.rb +1 -1
  249. data/lib/clerk-http-client.rb +54 -59
  250. data/spec/api/actor_tokens_api_spec.rb +1 -1
  251. data/spec/api/allow_list_block_list_api_spec.rb +2 -2
  252. data/spec/api/beta_features_api_spec.rb +2 -2
  253. data/spec/api/clients_api_spec.rb +1 -1
  254. data/spec/api/domains_api_spec.rb +1 -1
  255. data/spec/api/email_addresses_api_spec.rb +2 -2
  256. data/spec/api/instance_settings_api_spec.rb +3 -3
  257. data/spec/api/invitations_api_spec.rb +1 -1
  258. data/spec/api/jwt_templates_api_spec.rb +2 -2
  259. data/spec/api/{o_auth_applications_api_spec.rb → oauth_applications_api_spec.rb} +15 -15
  260. data/spec/api/organizations_api_spec.rb +1 -1
  261. data/spec/api/phone_numbers_api_spec.rb +2 -2
  262. data/spec/api/proxy_checks_api_spec.rb +1 -1
  263. data/spec/api/redirect_urls_api_spec.rb +1 -1
  264. data/spec/api/saml_connections_api_spec.rb +1 -1
  265. data/spec/api/sign_in_tokens_api_spec.rb +1 -1
  266. data/spec/api/sign_ups_api_spec.rb +1 -1
  267. data/spec/api/users_api_spec.rb +3 -3
  268. data/spec/api/waitlist_entries_api_spec.rb +63 -0
  269. data/spec/models/cname_target_spec.rb +48 -0
  270. data/spec/models/create_bulk_invitations_request_inner_spec.rb +66 -0
  271. data/spec/models/create_oauth_application_request_spec.rb +54 -0
  272. data/spec/models/create_session_request_spec.rb +36 -0
  273. data/spec/models/create_session_token200_response_spec.rb +46 -0
  274. data/spec/models/create_session_token_from_template_request_spec.rb +36 -0
  275. data/spec/models/create_session_token_request_spec.rb +36 -0
  276. data/spec/models/create_waitlist_entry_request_spec.rb +42 -0
  277. data/spec/models/from_o_auth_error_spec.rb +32 -0
  278. data/spec/models/from_o_auth_spec.rb +64 -0
  279. data/spec/models/from_oauth_error_spec.rb +32 -0
  280. data/spec/models/from_oauth_spec.rb +64 -0
  281. data/spec/models/get_oauth_access_token200_response_inner_spec.rb +90 -0
  282. data/spec/models/identification_link_spec.rb +1 -1
  283. data/spec/models/instance_spec.rb +58 -0
  284. data/spec/models/jwks_keys_inner_spec.rb +78 -0
  285. data/spec/models/jwks_spec.rb +36 -0
  286. data/spec/models/list_waitlist_entries200_response_spec.rb +42 -0
  287. data/spec/models/oauth_application_spec.rb +124 -0
  288. data/spec/models/oauth_application_with_secret_spec.rb +130 -0
  289. data/spec/models/oauth_applications_spec.rb +42 -0
  290. data/spec/models/oauth_spec.rb +1 -1
  291. data/spec/models/update_oauth_application_request_spec.rb +48 -0
  292. data/spec/models/waitlist_entry_invitation_spec.rb +98 -0
  293. data/spec/models/waitlist_entry_spec.rb +86 -0
  294. data/spec/spec_helper.rb +1 -1
  295. metadata +104 -65
  296. data/bin/fmt +0 -5
  297. data/bin/generate +0 -8
  298. data/bin/setup +0 -7
  299. data/openapitools.json +0 -7
  300. data/pkg/clerk-http-client-1.0.0.gem +0 -0
  301. data/resources/.DS_Store +0 -0
  302. data/resources/oas/bapi-2024-10-01.yml +0 -7238
  303. data/resources/templates/Gemfile.mustache +0 -9
  304. data/resources/templates/README.mustache +0 -163
  305. data/resources/templates/Rakefile.mustache +0 -10
  306. data/resources/templates/api.mustache +0 -257
  307. data/resources/templates/api_client.mustache +0 -246
  308. data/resources/templates/api_client_faraday_partial.mustache +0 -200
  309. data/resources/templates/api_client_httpx_partial.mustache +0 -134
  310. data/resources/templates/api_client_typhoeus_partial.mustache +0 -161
  311. data/resources/templates/api_doc.mustache +0 -132
  312. data/resources/templates/api_error.mustache +0 -50
  313. data/resources/templates/api_info.mustache +0 -12
  314. data/resources/templates/api_test.mustache +0 -47
  315. data/resources/templates/base_object.mustache +0 -114
  316. data/resources/templates/configuration.mustache +0 -491
  317. data/resources/templates/configuration_faraday_partial.mustache +0 -40
  318. data/resources/templates/configuration_httpx_partial.mustache +0 -11
  319. data/resources/templates/configuration_typhoeus_partial.mustache +0 -41
  320. data/resources/templates/gem.mustache +0 -89
  321. data/resources/templates/gemspec.mustache +0 -41
  322. data/resources/templates/git_push.sh.mustache +0 -57
  323. data/resources/templates/gitignore.mustache +0 -39
  324. data/resources/templates/gitlab-ci.mustache +0 -26
  325. data/resources/templates/model.mustache +0 -33
  326. data/resources/templates/model_doc.mustache +0 -12
  327. data/resources/templates/model_test.mustache +0 -82
  328. data/resources/templates/partial_model_enum_class.mustache +0 -23
  329. data/resources/templates/partial_model_generic.mustache +0 -377
  330. data/resources/templates/partial_model_generic_doc.mustache +0 -28
  331. data/resources/templates/partial_oneof_module_doc.mustache +0 -93
  332. data/resources/templates/rspec.mustache +0 -2
  333. data/resources/templates/rubocop.mustache +0 -148
  334. data/resources/templates/spec_helper.mustache +0 -103
  335. data/resources/templates/travis.mustache +0 -11
  336. data/resources/templates/version.mustache +0 -7
  337. data/sdk-generator-config.json +0 -25
  338. /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
  339. /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
  340. /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
  341. /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
  342. /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
  343. /data/docs/{UpdateOAuthApplicationRequest.md → UpdateOauthApplicationRequest.md} +0 -0
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
  Contact: support@clerk.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: unset
10
10
 
11
11
  =end
12
12
 
@@ -37,6 +37,10 @@ module ClerkHttpClient
37
37
 
38
38
  attr_accessor :user_info_url
39
39
 
40
+ attr_accessor :discovery_url
41
+
42
+ attr_accessor :token_introspection_url
43
+
40
44
  # Unix timestamp of creation.
41
45
  attr_accessor :created_at
42
46
 
@@ -82,6 +86,8 @@ module ClerkHttpClient
82
86
  :'authorize_url' => :'authorize_url',
83
87
  :'token_fetch_url' => :'token_fetch_url',
84
88
  :'user_info_url' => :'user_info_url',
89
+ :'discovery_url' => :'discovery_url',
90
+ :'token_introspection_url' => :'token_introspection_url',
85
91
  :'created_at' => :'created_at',
86
92
  :'updated_at' => :'updated_at',
87
93
  :'client_secret' => :'client_secret'
@@ -107,6 +113,8 @@ module ClerkHttpClient
107
113
  :'authorize_url' => :'String',
108
114
  :'token_fetch_url' => :'String',
109
115
  :'user_info_url' => :'String',
116
+ :'discovery_url' => :'String',
117
+ :'token_introspection_url' => :'String',
110
118
  :'created_at' => :'Integer',
111
119
  :'updated_at' => :'Integer',
112
120
  :'client_secret' => :'String'
@@ -207,6 +215,18 @@ module ClerkHttpClient
207
215
  self.user_info_url = nil
208
216
  end
209
217
 
218
+ if attributes.key?(:'discovery_url')
219
+ self.discovery_url = attributes[:'discovery_url']
220
+ else
221
+ self.discovery_url = nil
222
+ end
223
+
224
+ if attributes.key?(:'token_introspection_url')
225
+ self.token_introspection_url = attributes[:'token_introspection_url']
226
+ else
227
+ self.token_introspection_url = nil
228
+ end
229
+
210
230
  if attributes.key?(:'created_at')
211
231
  self.created_at = attributes[:'created_at']
212
232
  else
@@ -273,6 +293,14 @@ module ClerkHttpClient
273
293
  invalid_properties.push('invalid value for "user_info_url", user_info_url cannot be nil.')
274
294
  end
275
295
 
296
+ if @discovery_url.nil?
297
+ invalid_properties.push('invalid value for "discovery_url", discovery_url cannot be nil.')
298
+ end
299
+
300
+ if @token_introspection_url.nil?
301
+ invalid_properties.push('invalid value for "token_introspection_url", token_introspection_url cannot be nil.')
302
+ end
303
+
276
304
  if @created_at.nil?
277
305
  invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
278
306
  end
@@ -301,6 +329,8 @@ module ClerkHttpClient
301
329
  return false if @authorize_url.nil?
302
330
  return false if @token_fetch_url.nil?
303
331
  return false if @user_info_url.nil?
332
+ return false if @discovery_url.nil?
333
+ return false if @token_introspection_url.nil?
304
334
  return false if @created_at.nil?
305
335
  return false if @updated_at.nil?
306
336
  true
@@ -332,6 +362,8 @@ module ClerkHttpClient
332
362
  authorize_url == o.authorize_url &&
333
363
  token_fetch_url == o.token_fetch_url &&
334
364
  user_info_url == o.user_info_url &&
365
+ discovery_url == o.discovery_url &&
366
+ token_introspection_url == o.token_introspection_url &&
335
367
  created_at == o.created_at &&
336
368
  updated_at == o.updated_at &&
337
369
  client_secret == o.client_secret
@@ -346,7 +378,7 @@ module ClerkHttpClient
346
378
  # Calculates hash code according to all attributes.
347
379
  # @return [Integer] Hash code
348
380
  def hash
349
- [object, id, instance_id, name, client_id, public, scopes, callback_url, authorize_url, token_fetch_url, user_info_url, created_at, updated_at, client_secret].hash
381
+ [object, id, instance_id, name, client_id, public, scopes, callback_url, authorize_url, token_fetch_url, user_info_url, discovery_url, token_introspection_url, created_at, updated_at, client_secret].hash
350
382
  end
351
383
 
352
384
  # Builds the object from hash
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v1
7
7
  Contact: support@clerk.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.9.0
9
+ Generator version: unset
10
10
 
11
11
  =end
12
12
 
@@ -160,7 +160,7 @@ module ClerkHttpClient
160
160
  status_validator = EnumAttributeValidator.new('String', ["unverified", "verified", "failed", "expired", "transferable"])
161
161
  return false unless status_validator.valid?(@status)
162
162
  return false if @strategy.nil?
163
- strategy_validator = EnumAttributeValidator.new('String', ["oauth_google", "oauth_mock", "oauth_custom_mock", "oauth_microsoft", "email_link"])
163
+ strategy_validator = EnumAttributeValidator.new('String', ["oauth_google", "oauth_mock", "oauth_custom_mock"])
164
164
  return false unless strategy_validator.valid?(@strategy)
165
165
  return false if @expire_at.nil?
166
166
  true
@@ -179,7 +179,7 @@ module ClerkHttpClient
179
179
  # Custom attribute writer method checking allowed values (enum).
180
180
  # @param [Object] strategy Object to be assigned
181
181
  def strategy=(strategy)
182
- validator = EnumAttributeValidator.new('String', ["oauth_google", "oauth_mock", "oauth_custom_mock", "oauth_microsoft", "email_link"])
182
+ validator = EnumAttributeValidator.new('String', ["oauth_google", "oauth_mock", "oauth_custom_mock"])
183
183
  unless validator.valid?(strategy)
184
184
  fail ArgumentError, "invalid value for \"strategy\", must be one of #{validator.allowable_values}."
185
185
  end
@@ -0,0 +1,481 @@
1
+ =begin
2
+ #Clerk Backend API
3
+
4
+ #The Clerk REST Backend API, meant to be accessed by backend servers. ### Versions When the API changes in a way that isn't compatible with older versions, a new version is released. Each version is identified by its release date, e.g. `2021-02-05`. For more information, please see [Clerk API Versions](https://clerk.com/docs/backend-requests/versioning/overview). Please see https://clerk.com/docs for more information.
5
+
6
+ The version of the OpenAPI document: v1
7
+ Contact: support@clerk.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: unset
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module ClerkHttpClient
17
+ class OAuthApplication
18
+ attr_accessor :object
19
+
20
+ attr_accessor :id
21
+
22
+ attr_accessor :instance_id
23
+
24
+ attr_accessor :name
25
+
26
+ attr_accessor :client_id
27
+
28
+ attr_accessor :public
29
+
30
+ attr_accessor :scopes
31
+
32
+ attr_accessor :callback_url
33
+
34
+ attr_accessor :authorize_url
35
+
36
+ attr_accessor :token_fetch_url
37
+
38
+ attr_accessor :user_info_url
39
+
40
+ attr_accessor :discovery_url
41
+
42
+ attr_accessor :token_introspection_url
43
+
44
+ # Unix timestamp of creation.
45
+ attr_accessor :created_at
46
+
47
+ # Unix timestamp of last update.
48
+ attr_accessor :updated_at
49
+
50
+ class EnumAttributeValidator
51
+ attr_reader :datatype
52
+ attr_reader :allowable_values
53
+
54
+ def initialize(datatype, allowable_values)
55
+ @allowable_values = allowable_values.map do |value|
56
+ case datatype.to_s
57
+ when /Integer/i
58
+ value.to_i
59
+ when /Float/i
60
+ value.to_f
61
+ else
62
+ value
63
+ end
64
+ end
65
+ end
66
+
67
+ def valid?(value)
68
+ !value || allowable_values.include?(value)
69
+ end
70
+ end
71
+
72
+ # Attribute mapping from ruby-style variable name to JSON key.
73
+ def self.attribute_map
74
+ {
75
+ :'object' => :'object',
76
+ :'id' => :'id',
77
+ :'instance_id' => :'instance_id',
78
+ :'name' => :'name',
79
+ :'client_id' => :'client_id',
80
+ :'public' => :'public',
81
+ :'scopes' => :'scopes',
82
+ :'callback_url' => :'callback_url',
83
+ :'authorize_url' => :'authorize_url',
84
+ :'token_fetch_url' => :'token_fetch_url',
85
+ :'user_info_url' => :'user_info_url',
86
+ :'discovery_url' => :'discovery_url',
87
+ :'token_introspection_url' => :'token_introspection_url',
88
+ :'created_at' => :'created_at',
89
+ :'updated_at' => :'updated_at'
90
+ }
91
+ end
92
+
93
+ # Returns all the JSON keys this model knows about
94
+ def self.acceptable_attributes
95
+ attribute_map.values
96
+ end
97
+
98
+ # Attribute type mapping.
99
+ def self.openapi_types
100
+ {
101
+ :'object' => :'String',
102
+ :'id' => :'String',
103
+ :'instance_id' => :'String',
104
+ :'name' => :'String',
105
+ :'client_id' => :'String',
106
+ :'public' => :'Boolean',
107
+ :'scopes' => :'String',
108
+ :'callback_url' => :'String',
109
+ :'authorize_url' => :'String',
110
+ :'token_fetch_url' => :'String',
111
+ :'user_info_url' => :'String',
112
+ :'discovery_url' => :'String',
113
+ :'token_introspection_url' => :'String',
114
+ :'created_at' => :'Integer',
115
+ :'updated_at' => :'Integer'
116
+ }
117
+ end
118
+
119
+ # List of attributes with nullable: true
120
+ def self.openapi_nullable
121
+ Set.new([
122
+ ])
123
+ end
124
+
125
+ # Initializes the object
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ def initialize(attributes = {})
128
+ if (!attributes.is_a?(Hash))
129
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ClerkHttpClient::OAuthApplication` initialize method"
130
+ end
131
+
132
+ # check to see if the attribute exists and convert string to symbol for hash key
133
+ attributes = attributes.each_with_object({}) { |(k, v), h|
134
+ if (!self.class.attribute_map.key?(k.to_sym))
135
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ClerkHttpClient::OAuthApplication`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
136
+ end
137
+ h[k.to_sym] = v
138
+ }
139
+
140
+ if attributes.key?(:'object')
141
+ self.object = attributes[:'object']
142
+ else
143
+ self.object = nil
144
+ end
145
+
146
+ if attributes.key?(:'id')
147
+ self.id = attributes[:'id']
148
+ else
149
+ self.id = nil
150
+ end
151
+
152
+ if attributes.key?(:'instance_id')
153
+ self.instance_id = attributes[:'instance_id']
154
+ else
155
+ self.instance_id = nil
156
+ end
157
+
158
+ if attributes.key?(:'name')
159
+ self.name = attributes[:'name']
160
+ else
161
+ self.name = nil
162
+ end
163
+
164
+ if attributes.key?(:'client_id')
165
+ self.client_id = attributes[:'client_id']
166
+ else
167
+ self.client_id = nil
168
+ end
169
+
170
+ if attributes.key?(:'public')
171
+ self.public = attributes[:'public']
172
+ else
173
+ self.public = nil
174
+ end
175
+
176
+ if attributes.key?(:'scopes')
177
+ self.scopes = attributes[:'scopes']
178
+ else
179
+ self.scopes = nil
180
+ end
181
+
182
+ if attributes.key?(:'callback_url')
183
+ self.callback_url = attributes[:'callback_url']
184
+ else
185
+ self.callback_url = nil
186
+ end
187
+
188
+ if attributes.key?(:'authorize_url')
189
+ self.authorize_url = attributes[:'authorize_url']
190
+ else
191
+ self.authorize_url = nil
192
+ end
193
+
194
+ if attributes.key?(:'token_fetch_url')
195
+ self.token_fetch_url = attributes[:'token_fetch_url']
196
+ else
197
+ self.token_fetch_url = nil
198
+ end
199
+
200
+ if attributes.key?(:'user_info_url')
201
+ self.user_info_url = attributes[:'user_info_url']
202
+ else
203
+ self.user_info_url = nil
204
+ end
205
+
206
+ if attributes.key?(:'discovery_url')
207
+ self.discovery_url = attributes[:'discovery_url']
208
+ else
209
+ self.discovery_url = nil
210
+ end
211
+
212
+ if attributes.key?(:'token_introspection_url')
213
+ self.token_introspection_url = attributes[:'token_introspection_url']
214
+ else
215
+ self.token_introspection_url = nil
216
+ end
217
+
218
+ if attributes.key?(:'created_at')
219
+ self.created_at = attributes[:'created_at']
220
+ else
221
+ self.created_at = nil
222
+ end
223
+
224
+ if attributes.key?(:'updated_at')
225
+ self.updated_at = attributes[:'updated_at']
226
+ else
227
+ self.updated_at = nil
228
+ end
229
+ end
230
+
231
+ # Show invalid properties with the reasons. Usually used together with valid?
232
+ # @return Array for valid properties with the reasons
233
+ def list_invalid_properties
234
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
235
+ invalid_properties = Array.new
236
+ if @object.nil?
237
+ invalid_properties.push('invalid value for "object", object cannot be nil.')
238
+ end
239
+
240
+ if @id.nil?
241
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
242
+ end
243
+
244
+ if @instance_id.nil?
245
+ invalid_properties.push('invalid value for "instance_id", instance_id cannot be nil.')
246
+ end
247
+
248
+ if @name.nil?
249
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
250
+ end
251
+
252
+ if @client_id.nil?
253
+ invalid_properties.push('invalid value for "client_id", client_id cannot be nil.')
254
+ end
255
+
256
+ if @public.nil?
257
+ invalid_properties.push('invalid value for "public", public cannot be nil.')
258
+ end
259
+
260
+ if @scopes.nil?
261
+ invalid_properties.push('invalid value for "scopes", scopes cannot be nil.')
262
+ end
263
+
264
+ if @callback_url.nil?
265
+ invalid_properties.push('invalid value for "callback_url", callback_url cannot be nil.')
266
+ end
267
+
268
+ if @authorize_url.nil?
269
+ invalid_properties.push('invalid value for "authorize_url", authorize_url cannot be nil.')
270
+ end
271
+
272
+ if @token_fetch_url.nil?
273
+ invalid_properties.push('invalid value for "token_fetch_url", token_fetch_url cannot be nil.')
274
+ end
275
+
276
+ if @user_info_url.nil?
277
+ invalid_properties.push('invalid value for "user_info_url", user_info_url cannot be nil.')
278
+ end
279
+
280
+ if @discovery_url.nil?
281
+ invalid_properties.push('invalid value for "discovery_url", discovery_url cannot be nil.')
282
+ end
283
+
284
+ if @token_introspection_url.nil?
285
+ invalid_properties.push('invalid value for "token_introspection_url", token_introspection_url cannot be nil.')
286
+ end
287
+
288
+ if @created_at.nil?
289
+ invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
290
+ end
291
+
292
+ if @updated_at.nil?
293
+ invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
294
+ end
295
+
296
+ invalid_properties
297
+ end
298
+
299
+ # Check to see if the all the properties in the model are valid
300
+ # @return true if the model is valid
301
+ def valid?
302
+ warn '[DEPRECATED] the `valid?` method is obsolete'
303
+ return false if @object.nil?
304
+ object_validator = EnumAttributeValidator.new('String', ["oauth_application"])
305
+ return false unless object_validator.valid?(@object)
306
+ return false if @id.nil?
307
+ return false if @instance_id.nil?
308
+ return false if @name.nil?
309
+ return false if @client_id.nil?
310
+ return false if @public.nil?
311
+ return false if @scopes.nil?
312
+ return false if @callback_url.nil?
313
+ return false if @authorize_url.nil?
314
+ return false if @token_fetch_url.nil?
315
+ return false if @user_info_url.nil?
316
+ return false if @discovery_url.nil?
317
+ return false if @token_introspection_url.nil?
318
+ return false if @created_at.nil?
319
+ return false if @updated_at.nil?
320
+ true
321
+ end
322
+
323
+ # Custom attribute writer method checking allowed values (enum).
324
+ # @param [Object] object Object to be assigned
325
+ def object=(object)
326
+ validator = EnumAttributeValidator.new('String', ["oauth_application"])
327
+ unless validator.valid?(object)
328
+ fail ArgumentError, "invalid value for \"object\", must be one of #{validator.allowable_values}."
329
+ end
330
+ @object = object
331
+ end
332
+
333
+ # Checks equality by comparing each attribute.
334
+ # @param [Object] Object to be compared
335
+ def ==(o)
336
+ return true if self.equal?(o)
337
+ self.class == o.class &&
338
+ object == o.object &&
339
+ id == o.id &&
340
+ instance_id == o.instance_id &&
341
+ name == o.name &&
342
+ client_id == o.client_id &&
343
+ public == o.public &&
344
+ scopes == o.scopes &&
345
+ callback_url == o.callback_url &&
346
+ authorize_url == o.authorize_url &&
347
+ token_fetch_url == o.token_fetch_url &&
348
+ user_info_url == o.user_info_url &&
349
+ discovery_url == o.discovery_url &&
350
+ token_introspection_url == o.token_introspection_url &&
351
+ created_at == o.created_at &&
352
+ updated_at == o.updated_at
353
+ end
354
+
355
+ # @see the `==` method
356
+ # @param [Object] Object to be compared
357
+ def eql?(o)
358
+ self == o
359
+ end
360
+
361
+ # Calculates hash code according to all attributes.
362
+ # @return [Integer] Hash code
363
+ def hash
364
+ [object, id, instance_id, name, client_id, public, scopes, callback_url, authorize_url, token_fetch_url, user_info_url, discovery_url, token_introspection_url, created_at, updated_at].hash
365
+ end
366
+
367
+ # Builds the object from hash
368
+ # @param [Hash] attributes Model attributes in the form of hash
369
+ # @return [Object] Returns the model itself
370
+ def self.build_from_hash(attributes)
371
+ return nil unless attributes.is_a?(Hash)
372
+ attributes = attributes.transform_keys(&:to_sym)
373
+ transformed_hash = {}
374
+ openapi_types.each_pair do |key, type|
375
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
376
+ transformed_hash["#{key}"] = nil
377
+ elsif type =~ /\AArray<(.*)>/i
378
+ # check to ensure the input is an array given that the attribute
379
+ # is documented as an array but the input is not
380
+ if attributes[attribute_map[key]].is_a?(Array)
381
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
382
+ end
383
+ elsif !attributes[attribute_map[key]].nil?
384
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
385
+ end
386
+ end
387
+ new(transformed_hash)
388
+ end
389
+
390
+ # Deserializes the data based on type
391
+ # @param string type Data type
392
+ # @param string value Value to be deserialized
393
+ # @return [Object] Deserialized data
394
+ def self._deserialize(type, value)
395
+ case type.to_sym
396
+ when :Time
397
+ Time.parse(value)
398
+ when :Date
399
+ Date.parse(value)
400
+ when :String
401
+ value.to_s
402
+ when :Integer
403
+ value.to_i
404
+ when :Float
405
+ value.to_f
406
+ when :Boolean
407
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
408
+ true
409
+ else
410
+ false
411
+ end
412
+ when :Object
413
+ # generic object (usually a Hash), return directly
414
+ value
415
+ when /\AArray<(?<inner_type>.+)>\z/
416
+ inner_type = Regexp.last_match[:inner_type]
417
+ value.map { |v| _deserialize(inner_type, v) }
418
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
419
+ k_type = Regexp.last_match[:k_type]
420
+ v_type = Regexp.last_match[:v_type]
421
+ {}.tap do |hash|
422
+ value.each do |k, v|
423
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
424
+ end
425
+ end
426
+ else # model
427
+ # models (e.g. Pet) or oneOf
428
+ klass = ClerkHttpClient.const_get(type)
429
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
430
+ end
431
+ end
432
+
433
+ # Returns the string representation of the object
434
+ # @return [String] String presentation of the object
435
+ def to_s
436
+ to_hash.to_s
437
+ end
438
+
439
+ # to_body is an alias to to_hash (backward compatibility)
440
+ # @return [Hash] Returns the object in the form of hash
441
+ def to_body
442
+ to_hash
443
+ end
444
+
445
+ # Returns the object in the form of hash
446
+ # @return [Hash] Returns the object in the form of hash
447
+ def to_hash
448
+ hash = {}
449
+ self.class.attribute_map.each_pair do |attr, param|
450
+ value = self.send(attr)
451
+ if value.nil?
452
+ is_nullable = self.class.openapi_nullable.include?(attr)
453
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
454
+ end
455
+
456
+ hash[param] = _to_hash(value)
457
+ end
458
+ hash
459
+ end
460
+
461
+ # Outputs non-array value in the form of hash
462
+ # For object, use to_hash. Otherwise, just return the value
463
+ # @param [Object] value Any valid value
464
+ # @return [Hash] Returns the value in the form of hash
465
+ def _to_hash(value)
466
+ if value.is_a?(Array)
467
+ value.compact.map { |v| _to_hash(v) }
468
+ elsif value.is_a?(Hash)
469
+ {}.tap do |hash|
470
+ value.each { |k, v| hash[k] = _to_hash(v) }
471
+ end
472
+ elsif value.respond_to? :to_hash
473
+ value.to_hash
474
+ else
475
+ value
476
+ end
477
+ end
478
+
479
+ end
480
+
481
+ end