clerk-http-client 0.0.1 → 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 (344) 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 +5 -5
  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 +108 -74
  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 -20
  338. data/test.rb +0 -2
  339. /data/docs/{CNameTarget.md → CnameTarget.md} +0 -0
  340. /data/docs/{CreateRedirectURLRequest.md → CreateRedirectUrlRequest.md} +0 -0
  341. /data/docs/{OAuthApplications.md → OauthApplications.md} +0 -0
  342. /data/docs/{RedirectURL.md → RedirectUrl.md} +0 -0
  343. /data/docs/{SvixURL.md → SvixUrl.md} +0 -0
  344. /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
 
@@ -19,15 +19,154 @@ module ClerkHttpClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Create a new active session
23
+ # Create a new active session for the provided user ID. This operation is only available for Clerk Development instances.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [CreateSessionRequest] :create_session_request
26
+ # @return [Session]
27
+
28
+ def create_session(opts = {})
29
+ data, _status_code, _headers = create_session_with_http_info(opts)
30
+ data
31
+ end
32
+
33
+ # Create a new active session
34
+ # Create a new active session for the provided user ID. This operation is only available for Clerk Development instances.
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [CreateSessionRequest] :create_session_request
37
+ # @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
38
+ # POST
39
+ def create_session_with_http_info(opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: SessionsApi.create_session ...'
42
+ end
43
+ # resource path
44
+ local_var_path = '/sessions'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+
49
+ # header parameters
50
+ header_params = opts[:header_params] || {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
53
+ # HTTP header 'Content-Type'
54
+ content_type = @api_client.select_header_content_type(['application/json'])
55
+ if !content_type.nil?
56
+ header_params['Content-Type'] = content_type
57
+ end
58
+
59
+ # form parameters
60
+ form_params = opts[:form_params] || {}
61
+
62
+ # http body (model)
63
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_request'])
64
+
65
+ # return_type
66
+ return_type = opts[:debug_return_type] || 'Session'
67
+
68
+ # auth_names
69
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
70
+
71
+ new_options = opts.merge(
72
+ :operation => :"SessionsApi.create_session",
73
+ :header_params => header_params,
74
+ :query_params => query_params,
75
+ :form_params => form_params,
76
+ :body => post_body,
77
+ :auth_names => auth_names,
78
+ :return_type => return_type
79
+ )
80
+
81
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug "API called: SessionsApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
84
+ end
85
+ return data, status_code, headers
86
+ end
87
+
88
+ # Create a session token
89
+ # Creates a session JSON Web Token (JWT) based on a session.
90
+ # @param session_id [String] The ID of the session
91
+ # @param [Hash] opts the optional parameters
92
+ # @option opts [CreateSessionTokenRequest] :create_session_token_request
93
+ # @return [CreateSessionToken200Response]
94
+
95
+ def create_session_token(session_id, opts = {})
96
+ data, _status_code, _headers = create_session_token_with_http_info(session_id, opts)
97
+ data
98
+ end
99
+
100
+ # Create a session token
101
+ # Creates a session JSON Web Token (JWT) based on a session.
102
+ # @param session_id [String] The ID of the session
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [CreateSessionTokenRequest] :create_session_token_request
105
+ # @return [Array<(CreateSessionToken200Response, Integer, Hash)>] CreateSessionToken200Response data, response status code and response headers
106
+ # POST
107
+ def create_session_token_with_http_info(session_id, opts = {})
108
+ if @api_client.config.debugging
109
+ @api_client.config.logger.debug 'Calling API: SessionsApi.create_session_token ...'
110
+ end
111
+ # verify the required parameter 'session_id' is set
112
+ if @api_client.config.client_side_validation && session_id.nil?
113
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling SessionsApi.create_session_token"
114
+ end
115
+ # resource path
116
+ local_var_path = '/sessions/{session_id}/tokens'.sub('{' + 'session_id' + '}', CGI.escape(session_id.to_s))
117
+
118
+ # query parameters
119
+ query_params = opts[:query_params] || {}
120
+
121
+ # header parameters
122
+ header_params = opts[:header_params] || {}
123
+ # HTTP header 'Accept' (if needed)
124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
125
+ # HTTP header 'Content-Type'
126
+ content_type = @api_client.select_header_content_type(['application/json'])
127
+ if !content_type.nil?
128
+ header_params['Content-Type'] = content_type
129
+ end
130
+
131
+ # form parameters
132
+ form_params = opts[:form_params] || {}
133
+
134
+ # http body (model)
135
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_token_request'])
136
+
137
+ # return_type
138
+ return_type = opts[:debug_return_type] || 'CreateSessionToken200Response'
139
+
140
+ # auth_names
141
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
142
+
143
+ new_options = opts.merge(
144
+ :operation => :"SessionsApi.create_session_token",
145
+ :header_params => header_params,
146
+ :query_params => query_params,
147
+ :form_params => form_params,
148
+ :body => post_body,
149
+ :auth_names => auth_names,
150
+ :return_type => return_type
151
+ )
152
+
153
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug "API called: SessionsApi#create_session_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
156
+ end
157
+ return data, status_code, headers
158
+ end
159
+
22
160
  # Create a session token from a jwt template
23
161
  # Creates a JSON Web Token(JWT) based on a session and a JWT Template name defined for your instance
24
162
  # @param session_id [String] The ID of the session
25
163
  # @param template_name [String] The name of the JWT Template defined in your instance (e.g. &#x60;custom_hasura&#x60;).
26
164
  # @param [Hash] opts the optional parameters
27
- # @return [CreateSessionTokenFromTemplate200Response]
165
+ # @option opts [CreateSessionTokenFromTemplateRequest] :create_session_token_from_template_request
166
+ # @return [CreateSessionToken200Response]
28
167
 
29
- def create_token_from_template(session_id, template_name, opts = {})
30
- data, _status_code, _headers = create_token_from_template_with_http_info(session_id, template_name, opts)
168
+ def create_session_token_from_template(session_id, template_name, opts = {})
169
+ data, _status_code, _headers = create_session_token_from_template_with_http_info(session_id, template_name, opts)
31
170
  data
32
171
  end
33
172
 
@@ -36,9 +175,10 @@ module ClerkHttpClient
36
175
  # @param session_id [String] The ID of the session
37
176
  # @param template_name [String] The name of the JWT Template defined in your instance (e.g. &#x60;custom_hasura&#x60;).
38
177
  # @param [Hash] opts the optional parameters
39
- # @return [Array<(CreateSessionTokenFromTemplate200Response, Integer, Hash)>] CreateSessionTokenFromTemplate200Response data, response status code and response headers
178
+ # @option opts [CreateSessionTokenFromTemplateRequest] :create_session_token_from_template_request
179
+ # @return [Array<(CreateSessionToken200Response, Integer, Hash)>] CreateSessionToken200Response data, response status code and response headers
40
180
  # POST
41
- def create_token_from_template_with_http_info(session_id, template_name, opts = {})
181
+ def create_session_token_from_template_with_http_info(session_id, template_name, opts = {})
42
182
  if @api_client.config.debugging
43
183
  @api_client.config.logger.debug 'Calling API: SessionsApi.create_session_token_from_template ...'
44
184
  end
@@ -60,15 +200,20 @@ module ClerkHttpClient
60
200
  header_params = opts[:header_params] || {}
61
201
  # HTTP header 'Accept' (if needed)
62
202
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
203
+ # HTTP header 'Content-Type'
204
+ content_type = @api_client.select_header_content_type(['application/json'])
205
+ if !content_type.nil?
206
+ header_params['Content-Type'] = content_type
207
+ end
63
208
 
64
209
  # form parameters
65
210
  form_params = opts[:form_params] || {}
66
211
 
67
212
  # http body (model)
68
- post_body = opts[:debug_body]
213
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_session_token_from_template_request'])
69
214
 
70
215
  # return_type
71
- return_type = opts[:debug_return_type] || 'CreateSessionTokenFromTemplate200Response'
216
+ return_type = opts[:debug_return_type] || 'CreateSessionToken200Response'
72
217
 
73
218
  # auth_names
74
219
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -96,8 +241,8 @@ module ClerkHttpClient
96
241
  # @param [Hash] opts the optional parameters
97
242
  # @return [Session]
98
243
 
99
- def find(session_id, opts = {})
100
- data, _status_code, _headers = find_with_http_info(session_id, opts)
244
+ def get_session(session_id, opts = {})
245
+ data, _status_code, _headers = get_session_with_http_info(session_id, opts)
101
246
  data
102
247
  end
103
248
 
@@ -107,7 +252,7 @@ module ClerkHttpClient
107
252
  # @param [Hash] opts the optional parameters
108
253
  # @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
109
254
  # GET
110
- def find_with_http_info(session_id, opts = {})
255
+ def get_session_with_http_info(session_id, opts = {})
111
256
  if @api_client.config.debugging
112
257
  @api_client.config.logger.debug 'Calling API: SessionsApi.get_session ...'
113
258
  end
@@ -165,8 +310,8 @@ module ClerkHttpClient
165
310
  # @option opts [Float] :offset Skip the first &#x60;offset&#x60; results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with &#x60;limit&#x60;. (default to 0)
166
311
  # @return [Array<Session>]
167
312
 
168
- def all(opts = {})
169
- data, _status_code, _headers = all_with_http_info(opts)
313
+ def get_session_list(opts = {})
314
+ data, _status_code, _headers = get_session_list_with_http_info(opts)
170
315
  data
171
316
  end
172
317
 
@@ -180,7 +325,7 @@ module ClerkHttpClient
180
325
  # @option opts [Float] :offset Skip the first &#x60;offset&#x60; results when paginating. Needs to be an integer greater or equal to zero. To be used in conjunction with &#x60;limit&#x60;. (default to 0)
181
326
  # @return [Array<(Array<Session>, Integer, Hash)>] Array<Session> data, response status code and response headers
182
327
  # GET array
183
- def all_with_http_info(opts = {})
328
+ def get_session_list_with_http_info(opts = {})
184
329
  if @api_client.config.debugging
185
330
  @api_client.config.logger.debug 'Calling API: SessionsApi.get_session_list ...'
186
331
  end
@@ -251,8 +396,8 @@ module ClerkHttpClient
251
396
  # @param [Hash] opts the optional parameters
252
397
  # @return [Session]
253
398
 
254
- def revoke(session_id, opts = {})
255
- data, _status_code, _headers = revoke_with_http_info(session_id, opts)
399
+ def revoke_session(session_id, opts = {})
400
+ data, _status_code, _headers = revoke_session_with_http_info(session_id, opts)
256
401
  data
257
402
  end
258
403
 
@@ -262,7 +407,7 @@ module ClerkHttpClient
262
407
  # @param [Hash] opts the optional parameters
263
408
  # @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
264
409
  # POST
265
- def revoke_with_http_info(session_id, opts = {})
410
+ def revoke_session_with_http_info(session_id, opts = {})
266
411
  if @api_client.config.debugging
267
412
  @api_client.config.logger.debug 'Calling API: SessionsApi.revoke_session ...'
268
413
  end
@@ -317,8 +462,8 @@ module ClerkHttpClient
317
462
  # @option opts [VerifySessionRequest] :verify_session_request Parameters.
318
463
  # @return [Session]
319
464
 
320
- def verify(session_id, opts = {})
321
- data, _status_code, _headers = verify_with_http_info(session_id, opts)
465
+ def verify_session(session_id, opts = {})
466
+ data, _status_code, _headers = verify_session_with_http_info(session_id, opts)
322
467
  data
323
468
  end
324
469
 
@@ -329,7 +474,7 @@ module ClerkHttpClient
329
474
  # @option opts [VerifySessionRequest] :verify_session_request Parameters.
330
475
  # @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
331
476
  # POST
332
- def verify_with_http_info(session_id, opts = {})
477
+ def verify_session_with_http_info(session_id, opts = {})
333
478
  if @api_client.config.debugging
334
479
  @api_client.config.logger.debug 'Calling API: SessionsApi.verify_session ...'
335
480
  end
@@ -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
 
@@ -21,29 +21,25 @@ module ClerkHttpClient
21
21
  end
22
22
  # Create sign-in token
23
23
  # Creates a new sign-in token and associates it with the given user. By default, sign-in tokens expire in 30 days. You can optionally supply a different duration in seconds using the `expires_in_seconds` property.
24
- # @param create_sign_in_token_request [CreateSignInTokenRequest]
25
24
  # @param [Hash] opts the optional parameters
25
+ # @option opts [CreateSignInTokenRequest] :create_sign_in_token_request
26
26
  # @return [SignInToken]
27
27
 
28
- def create(create_sign_in_token_request, opts = {})
29
- data, _status_code, _headers = create_with_http_info(create_sign_in_token_request, opts)
28
+ def create_sign_in_token(opts = {})
29
+ data, _status_code, _headers = create_sign_in_token_with_http_info(opts)
30
30
  data
31
31
  end
32
32
 
33
33
  # Create sign-in token
34
34
  # Creates a new sign-in token and associates it with the given user. By default, sign-in tokens expire in 30 days. You can optionally supply a different duration in seconds using the &#x60;expires_in_seconds&#x60; property.
35
- # @param create_sign_in_token_request [CreateSignInTokenRequest]
36
35
  # @param [Hash] opts the optional parameters
36
+ # @option opts [CreateSignInTokenRequest] :create_sign_in_token_request
37
37
  # @return [Array<(SignInToken, Integer, Hash)>] SignInToken data, response status code and response headers
38
38
  # POST
39
- def create_with_http_info(create_sign_in_token_request, opts = {})
39
+ def create_sign_in_token_with_http_info(opts = {})
40
40
  if @api_client.config.debugging
41
41
  @api_client.config.logger.debug 'Calling API: SignInTokensApi.create_sign_in_token ...'
42
42
  end
43
- # verify the required parameter 'create_sign_in_token_request' is set
44
- if @api_client.config.client_side_validation && create_sign_in_token_request.nil?
45
- fail ArgumentError, "Missing the required parameter 'create_sign_in_token_request' when calling SignInTokensApi.create_sign_in_token"
46
- end
47
43
  # resource path
48
44
  local_var_path = '/sign_in_tokens'
49
45
 
@@ -64,7 +60,7 @@ module ClerkHttpClient
64
60
  form_params = opts[:form_params] || {}
65
61
 
66
62
  # http body (model)
67
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_sign_in_token_request)
63
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_sign_in_token_request'])
68
64
 
69
65
  # return_type
70
66
  return_type = opts[:debug_return_type] || 'SignInToken'
@@ -95,8 +91,8 @@ module ClerkHttpClient
95
91
  # @param [Hash] opts the optional parameters
96
92
  # @return [SignInToken]
97
93
 
98
- def revoke(sign_in_token_id, opts = {})
99
- data, _status_code, _headers = revoke_with_http_info(sign_in_token_id, opts)
94
+ def revoke_sign_in_token(sign_in_token_id, opts = {})
95
+ data, _status_code, _headers = revoke_sign_in_token_with_http_info(sign_in_token_id, opts)
100
96
  data
101
97
  end
102
98
 
@@ -106,7 +102,7 @@ module ClerkHttpClient
106
102
  # @param [Hash] opts the optional parameters
107
103
  # @return [Array<(SignInToken, Integer, Hash)>] SignInToken data, response status code and response headers
108
104
  # POST
109
- def revoke_with_http_info(sign_in_token_id, opts = {})
105
+ def revoke_sign_in_token_with_http_info(sign_in_token_id, opts = {})
110
106
  if @api_client.config.debugging
111
107
  @api_client.config.logger.debug 'Calling API: SignInTokensApi.revoke_sign_in_token ...'
112
108
  end
@@ -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
 
@@ -22,23 +22,23 @@ module ClerkHttpClient
22
22
  # Update a sign-up
23
23
  # Update the sign-up with the given ID
24
24
  # @param id [String] The ID of the sign-up to update
25
- # @param update_sign_up_request [UpdateSignUpRequest]
26
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [UpdateSignUpRequest] :update_sign_up_request
27
27
  # @return [SignUp]
28
28
 
29
- def update(id, update_sign_up_request, opts = {})
30
- data, _status_code, _headers = update_with_http_info(id, update_sign_up_request, opts)
29
+ def update_sign_up(id, opts = {})
30
+ data, _status_code, _headers = update_sign_up_with_http_info(id, opts)
31
31
  data
32
32
  end
33
33
 
34
34
  # Update a sign-up
35
35
  # Update the sign-up with the given ID
36
36
  # @param id [String] The ID of the sign-up to update
37
- # @param update_sign_up_request [UpdateSignUpRequest]
38
37
  # @param [Hash] opts the optional parameters
38
+ # @option opts [UpdateSignUpRequest] :update_sign_up_request
39
39
  # @return [Array<(SignUp, Integer, Hash)>] SignUp data, response status code and response headers
40
40
  # PATCH
41
- def update_with_http_info(id, update_sign_up_request, opts = {})
41
+ def update_sign_up_with_http_info(id, opts = {})
42
42
  if @api_client.config.debugging
43
43
  @api_client.config.logger.debug 'Calling API: SignUpsApi.update_sign_up ...'
44
44
  end
@@ -46,10 +46,6 @@ module ClerkHttpClient
46
46
  if @api_client.config.client_side_validation && id.nil?
47
47
  fail ArgumentError, "Missing the required parameter 'id' when calling SignUpsApi.update_sign_up"
48
48
  end
49
- # verify the required parameter 'update_sign_up_request' is set
50
- if @api_client.config.client_side_validation && update_sign_up_request.nil?
51
- fail ArgumentError, "Missing the required parameter 'update_sign_up_request' when calling SignUpsApi.update_sign_up"
52
- end
53
49
  # resource path
54
50
  local_var_path = '/sign_ups/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
55
51
 
@@ -70,7 +66,7 @@ module ClerkHttpClient
70
66
  form_params = opts[:form_params] || {}
71
67
 
72
68
  # http body (model)
73
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_sign_up_request)
69
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_sign_up_request'])
74
70
 
75
71
  # return_type
76
72
  return_type = opts[:debug_return_type] || 'SignUp'
@@ -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
 
@@ -20,21 +20,21 @@ module ClerkHttpClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Retrieve a new testing token
23
- # Retrieve a new testing token. Only available for development instances.
23
+ # Retrieve a new testing token.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [TestingToken]
26
26
 
27
- def create(opts = {})
28
- data, _status_code, _headers = create_with_http_info(opts)
27
+ def create_testing_token(opts = {})
28
+ data, _status_code, _headers = create_testing_token_with_http_info(opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Retrieve a new testing token
33
- # Retrieve a new testing token. Only available for development instances.
33
+ # Retrieve a new testing token.
34
34
  # @param [Hash] opts the optional parameters
35
35
  # @return [Array<(TestingToken, Integer, Hash)>] TestingToken data, response status code and response headers
36
36
  # POST
37
- def create_with_http_info(opts = {})
37
+ def create_testing_token_with_http_info(opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: TestingTokensApi.create_testing_token ...'
40
40
  end