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
@@ -0,0 +1,305 @@
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 CreateBulkInvitationsRequestInner
18
+ # The email address the invitation will be sent to
19
+ attr_accessor :email_address
20
+
21
+ # Metadata that will be attached to the newly created invitation. The value of this property should be a well-formed JSON object. Once the user accepts the invitation and signs up, these metadata will end up in the user's public metadata.
22
+ attr_accessor :public_metadata
23
+
24
+ # The URL where the user is redirected upon visiting the invitation link, where they can accept the invitation. Required if you have implemented a [custom flow for handling application invitations](/docs/custom-flows/invitations).
25
+ attr_accessor :redirect_url
26
+
27
+ # Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to true.
28
+ attr_accessor :notify
29
+
30
+ # Whether an invitation should be created if there is already an existing invitation for this email address, or it's claimed by another user.
31
+ attr_accessor :ignore_existing
32
+
33
+ # The number of days the invitation will be valid for. By default, the invitation expires after 30 days.
34
+ attr_accessor :expires_in_days
35
+
36
+ # Attribute mapping from ruby-style variable name to JSON key.
37
+ def self.attribute_map
38
+ {
39
+ :'email_address' => :'email_address',
40
+ :'public_metadata' => :'public_metadata',
41
+ :'redirect_url' => :'redirect_url',
42
+ :'notify' => :'notify',
43
+ :'ignore_existing' => :'ignore_existing',
44
+ :'expires_in_days' => :'expires_in_days'
45
+ }
46
+ end
47
+
48
+ # Returns all the JSON keys this model knows about
49
+ def self.acceptable_attributes
50
+ attribute_map.values
51
+ end
52
+
53
+ # Attribute type mapping.
54
+ def self.openapi_types
55
+ {
56
+ :'email_address' => :'String',
57
+ :'public_metadata' => :'Hash<String, Object>',
58
+ :'redirect_url' => :'String',
59
+ :'notify' => :'Boolean',
60
+ :'ignore_existing' => :'Boolean',
61
+ :'expires_in_days' => :'Integer'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ :'notify',
69
+ :'ignore_existing',
70
+ :'expires_in_days'
71
+ ])
72
+ end
73
+
74
+ # Initializes the object
75
+ # @param [Hash] attributes Model attributes in the form of hash
76
+ def initialize(attributes = {})
77
+ if (!attributes.is_a?(Hash))
78
+ fail ArgumentError, "The input argument (attributes) must be a hash in `ClerkHttpClient::CreateBulkInvitationsRequestInner` initialize method"
79
+ end
80
+
81
+ # check to see if the attribute exists and convert string to symbol for hash key
82
+ attributes = attributes.each_with_object({}) { |(k, v), h|
83
+ if (!self.class.attribute_map.key?(k.to_sym))
84
+ fail ArgumentError, "`#{k}` is not a valid attribute in `ClerkHttpClient::CreateBulkInvitationsRequestInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
85
+ end
86
+ h[k.to_sym] = v
87
+ }
88
+
89
+ if attributes.key?(:'email_address')
90
+ self.email_address = attributes[:'email_address']
91
+ else
92
+ self.email_address = nil
93
+ end
94
+
95
+ if attributes.key?(:'public_metadata')
96
+ if (value = attributes[:'public_metadata']).is_a?(Hash)
97
+ self.public_metadata = value
98
+ end
99
+ end
100
+
101
+ if attributes.key?(:'redirect_url')
102
+ self.redirect_url = attributes[:'redirect_url']
103
+ end
104
+
105
+ if attributes.key?(:'notify')
106
+ self.notify = attributes[:'notify']
107
+ else
108
+ self.notify = true
109
+ end
110
+
111
+ if attributes.key?(:'ignore_existing')
112
+ self.ignore_existing = attributes[:'ignore_existing']
113
+ else
114
+ self.ignore_existing = false
115
+ end
116
+
117
+ if attributes.key?(:'expires_in_days')
118
+ self.expires_in_days = attributes[:'expires_in_days']
119
+ end
120
+ end
121
+
122
+ # Show invalid properties with the reasons. Usually used together with valid?
123
+ # @return Array for valid properties with the reasons
124
+ def list_invalid_properties
125
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
126
+ invalid_properties = Array.new
127
+ if @email_address.nil?
128
+ invalid_properties.push('invalid value for "email_address", email_address cannot be nil.')
129
+ end
130
+
131
+ if !@expires_in_days.nil? && @expires_in_days > 365
132
+ invalid_properties.push('invalid value for "expires_in_days", must be smaller than or equal to 365.')
133
+ end
134
+
135
+ if !@expires_in_days.nil? && @expires_in_days < 1
136
+ invalid_properties.push('invalid value for "expires_in_days", must be greater than or equal to 1.')
137
+ end
138
+
139
+ invalid_properties
140
+ end
141
+
142
+ # Check to see if the all the properties in the model are valid
143
+ # @return true if the model is valid
144
+ def valid?
145
+ warn '[DEPRECATED] the `valid?` method is obsolete'
146
+ return false if @email_address.nil?
147
+ return false if !@expires_in_days.nil? && @expires_in_days > 365
148
+ return false if !@expires_in_days.nil? && @expires_in_days < 1
149
+ true
150
+ end
151
+
152
+ # Custom attribute writer method with validation
153
+ # @param [Object] expires_in_days Value to be assigned
154
+ def expires_in_days=(expires_in_days)
155
+ if !expires_in_days.nil? && expires_in_days > 365
156
+ fail ArgumentError, 'invalid value for "expires_in_days", must be smaller than or equal to 365.'
157
+ end
158
+
159
+ if !expires_in_days.nil? && expires_in_days < 1
160
+ fail ArgumentError, 'invalid value for "expires_in_days", must be greater than or equal to 1.'
161
+ end
162
+
163
+ @expires_in_days = expires_in_days
164
+ end
165
+
166
+ # Checks equality by comparing each attribute.
167
+ # @param [Object] Object to be compared
168
+ def ==(o)
169
+ return true if self.equal?(o)
170
+ self.class == o.class &&
171
+ email_address == o.email_address &&
172
+ public_metadata == o.public_metadata &&
173
+ redirect_url == o.redirect_url &&
174
+ notify == o.notify &&
175
+ ignore_existing == o.ignore_existing &&
176
+ expires_in_days == o.expires_in_days
177
+ end
178
+
179
+ # @see the `==` method
180
+ # @param [Object] Object to be compared
181
+ def eql?(o)
182
+ self == o
183
+ end
184
+
185
+ # Calculates hash code according to all attributes.
186
+ # @return [Integer] Hash code
187
+ def hash
188
+ [email_address, public_metadata, redirect_url, notify, ignore_existing, expires_in_days].hash
189
+ end
190
+
191
+ # Builds the object from hash
192
+ # @param [Hash] attributes Model attributes in the form of hash
193
+ # @return [Object] Returns the model itself
194
+ def self.build_from_hash(attributes)
195
+ return nil unless attributes.is_a?(Hash)
196
+ attributes = attributes.transform_keys(&:to_sym)
197
+ transformed_hash = {}
198
+ openapi_types.each_pair do |key, type|
199
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
200
+ transformed_hash["#{key}"] = nil
201
+ elsif type =~ /\AArray<(.*)>/i
202
+ # check to ensure the input is an array given that the attribute
203
+ # is documented as an array but the input is not
204
+ if attributes[attribute_map[key]].is_a?(Array)
205
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
206
+ end
207
+ elsif !attributes[attribute_map[key]].nil?
208
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
209
+ end
210
+ end
211
+ new(transformed_hash)
212
+ end
213
+
214
+ # Deserializes the data based on type
215
+ # @param string type Data type
216
+ # @param string value Value to be deserialized
217
+ # @return [Object] Deserialized data
218
+ def self._deserialize(type, value)
219
+ case type.to_sym
220
+ when :Time
221
+ Time.parse(value)
222
+ when :Date
223
+ Date.parse(value)
224
+ when :String
225
+ value.to_s
226
+ when :Integer
227
+ value.to_i
228
+ when :Float
229
+ value.to_f
230
+ when :Boolean
231
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
232
+ true
233
+ else
234
+ false
235
+ end
236
+ when :Object
237
+ # generic object (usually a Hash), return directly
238
+ value
239
+ when /\AArray<(?<inner_type>.+)>\z/
240
+ inner_type = Regexp.last_match[:inner_type]
241
+ value.map { |v| _deserialize(inner_type, v) }
242
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
243
+ k_type = Regexp.last_match[:k_type]
244
+ v_type = Regexp.last_match[:v_type]
245
+ {}.tap do |hash|
246
+ value.each do |k, v|
247
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
248
+ end
249
+ end
250
+ else # model
251
+ # models (e.g. Pet) or oneOf
252
+ klass = ClerkHttpClient.const_get(type)
253
+ klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
254
+ end
255
+ end
256
+
257
+ # Returns the string representation of the object
258
+ # @return [String] String presentation of the object
259
+ def to_s
260
+ to_hash.to_s
261
+ end
262
+
263
+ # to_body is an alias to to_hash (backward compatibility)
264
+ # @return [Hash] Returns the object in the form of hash
265
+ def to_body
266
+ to_hash
267
+ end
268
+
269
+ # Returns the object in the form of hash
270
+ # @return [Hash] Returns the object in the form of hash
271
+ def to_hash
272
+ hash = {}
273
+ self.class.attribute_map.each_pair do |attr, param|
274
+ value = self.send(attr)
275
+ if value.nil?
276
+ is_nullable = self.class.openapi_nullable.include?(attr)
277
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
278
+ end
279
+
280
+ hash[param] = _to_hash(value)
281
+ end
282
+ hash
283
+ end
284
+
285
+ # Outputs non-array value in the form of hash
286
+ # For object, use to_hash. Otherwise, just return the value
287
+ # @param [Object] value Any valid value
288
+ # @return [Hash] Returns the value in the form of hash
289
+ def _to_hash(value)
290
+ if value.is_a?(Array)
291
+ value.compact.map { |v| _to_hash(v) }
292
+ elsif value.is_a?(Hash)
293
+ {}.tap do |hash|
294
+ value.each { |k, v| hash[k] = _to_hash(v) }
295
+ end
296
+ elsif value.respond_to? :to_hash
297
+ value.to_hash
298
+ else
299
+ value
300
+ end
301
+ end
302
+
303
+ end
304
+
305
+ 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
 
@@ -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
 
@@ -24,15 +24,40 @@ module ClerkHttpClient
24
24
  # Optional URL which specifies where to redirect the user once they click the invitation link. This is only required if you have implemented a [custom flow](https://clerk.com/docs/authentication/invitations#custom-flow) and you're not using Clerk Hosted Pages or Clerk Components.
25
25
  attr_accessor :redirect_url
26
26
 
27
- # Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to true.
27
+ # Optional flag which denotes whether an email invitation should be sent to the given email address. Defaults to `true`.
28
28
  attr_accessor :notify
29
29
 
30
30
  # Whether an invitation should be created if there is already an existing invitation for this email address, or it's claimed by another user.
31
31
  attr_accessor :ignore_existing
32
32
 
33
- # The number of days the invitation will be valid for. By default, the invitation does not expire.
33
+ # The number of days the invitation will be valid for. By default, the invitation expires after 30 days.
34
34
  attr_accessor :expires_in_days
35
35
 
36
+ # The slug of the email template to use for the invitation email. If not provided, the \"invitation\" template will be used.
37
+ attr_accessor :template_slug
38
+
39
+ class EnumAttributeValidator
40
+ attr_reader :datatype
41
+ attr_reader :allowable_values
42
+
43
+ def initialize(datatype, allowable_values)
44
+ @allowable_values = allowable_values.map do |value|
45
+ case datatype.to_s
46
+ when /Integer/i
47
+ value.to_i
48
+ when /Float/i
49
+ value.to_f
50
+ else
51
+ value
52
+ end
53
+ end
54
+ end
55
+
56
+ def valid?(value)
57
+ !value || allowable_values.include?(value)
58
+ end
59
+ end
60
+
36
61
  # Attribute mapping from ruby-style variable name to JSON key.
37
62
  def self.attribute_map
38
63
  {
@@ -41,7 +66,8 @@ module ClerkHttpClient
41
66
  :'redirect_url' => :'redirect_url',
42
67
  :'notify' => :'notify',
43
68
  :'ignore_existing' => :'ignore_existing',
44
- :'expires_in_days' => :'expires_in_days'
69
+ :'expires_in_days' => :'expires_in_days',
70
+ :'template_slug' => :'template_slug'
45
71
  }
46
72
  end
47
73
 
@@ -54,11 +80,12 @@ module ClerkHttpClient
54
80
  def self.openapi_types
55
81
  {
56
82
  :'email_address' => :'String',
57
- :'public_metadata' => :'Object',
83
+ :'public_metadata' => :'Hash<String, Object>',
58
84
  :'redirect_url' => :'String',
59
85
  :'notify' => :'Boolean',
60
86
  :'ignore_existing' => :'Boolean',
61
- :'expires_in_days' => :'Integer'
87
+ :'expires_in_days' => :'Integer',
88
+ :'template_slug' => :'String'
62
89
  }
63
90
  end
64
91
 
@@ -67,7 +94,8 @@ module ClerkHttpClient
67
94
  Set.new([
68
95
  :'notify',
69
96
  :'ignore_existing',
70
- :'expires_in_days'
97
+ :'expires_in_days',
98
+ :'template_slug'
71
99
  ])
72
100
  end
73
101
 
@@ -93,7 +121,9 @@ module ClerkHttpClient
93
121
  end
94
122
 
95
123
  if attributes.key?(:'public_metadata')
96
- self.public_metadata = attributes[:'public_metadata']
124
+ if (value = attributes[:'public_metadata']).is_a?(Hash)
125
+ self.public_metadata = value
126
+ end
97
127
  end
98
128
 
99
129
  if attributes.key?(:'redirect_url')
@@ -115,6 +145,10 @@ module ClerkHttpClient
115
145
  if attributes.key?(:'expires_in_days')
116
146
  self.expires_in_days = attributes[:'expires_in_days']
117
147
  end
148
+
149
+ if attributes.key?(:'template_slug')
150
+ self.template_slug = attributes[:'template_slug']
151
+ end
118
152
  end
119
153
 
120
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -144,6 +178,8 @@ module ClerkHttpClient
144
178
  return false if @email_address.nil?
145
179
  return false if !@expires_in_days.nil? && @expires_in_days > 365
146
180
  return false if !@expires_in_days.nil? && @expires_in_days < 1
181
+ template_slug_validator = EnumAttributeValidator.new('String', ["invitation", "waitlist_invitation"])
182
+ return false unless template_slug_validator.valid?(@template_slug)
147
183
  true
148
184
  end
149
185
 
@@ -161,6 +197,16 @@ module ClerkHttpClient
161
197
  @expires_in_days = expires_in_days
162
198
  end
163
199
 
200
+ # Custom attribute writer method checking allowed values (enum).
201
+ # @param [Object] template_slug Object to be assigned
202
+ def template_slug=(template_slug)
203
+ validator = EnumAttributeValidator.new('String', ["invitation", "waitlist_invitation"])
204
+ unless validator.valid?(template_slug)
205
+ fail ArgumentError, "invalid value for \"template_slug\", must be one of #{validator.allowable_values}."
206
+ end
207
+ @template_slug = template_slug
208
+ end
209
+
164
210
  # Checks equality by comparing each attribute.
165
211
  # @param [Object] Object to be compared
166
212
  def ==(o)
@@ -171,7 +217,8 @@ module ClerkHttpClient
171
217
  redirect_url == o.redirect_url &&
172
218
  notify == o.notify &&
173
219
  ignore_existing == o.ignore_existing &&
174
- expires_in_days == o.expires_in_days
220
+ expires_in_days == o.expires_in_days &&
221
+ template_slug == o.template_slug
175
222
  end
176
223
 
177
224
  # @see the `==` method
@@ -183,7 +230,7 @@ module ClerkHttpClient
183
230
  # Calculates hash code according to all attributes.
184
231
  # @return [Integer] Hash code
185
232
  def hash
186
- [email_address, public_metadata, redirect_url, notify, ignore_existing, expires_in_days].hash
233
+ [email_address, public_metadata, redirect_url, notify, ignore_existing, expires_in_days, template_slug].hash
187
234
  end
188
235
 
189
236
  # 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
 
@@ -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
 
@@ -81,8 +81,6 @@ module ClerkHttpClient
81
81
 
82
82
  if attributes.key?(:'callback_url')
83
83
  self.callback_url = attributes[:'callback_url']
84
- else
85
- self.callback_url = nil
86
84
  end
87
85
 
88
86
  if attributes.key?(:'scopes')
@@ -105,10 +103,6 @@ module ClerkHttpClient
105
103
  invalid_properties.push('invalid value for "name", name cannot be nil.')
106
104
  end
107
105
 
108
- if @callback_url.nil?
109
- invalid_properties.push('invalid value for "callback_url", callback_url cannot be nil.')
110
- end
111
-
112
106
  invalid_properties
113
107
  end
114
108
 
@@ -117,7 +111,6 @@ module ClerkHttpClient
117
111
  def valid?
118
112
  warn '[DEPRECATED] the `valid?` method is obsolete'
119
113
  return false if @name.nil?
120
- return false if @callback_url.nil?
121
114
  true
122
115
  end
123
116
 
@@ -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
 
@@ -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
 
@@ -24,10 +24,10 @@ module ClerkHttpClient
24
24
  # The role of the new member in the organization.
25
25
  attr_accessor :role
26
26
 
27
- # Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API.
27
+ # Metadata saved on the organization invitation, read-only from the Frontend API and fully accessible (read/write) from the Backend API. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.
28
28
  attr_accessor :public_metadata
29
29
 
30
- # Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API.
30
+ # Metadata saved on the organization invitation, fully accessible (read/write) from the Backend API but not visible from the Frontend API. When the organization invitation is accepted, the metadata will be transferred to the newly created organization membership.
31
31
  attr_accessor :private_metadata
32
32
 
33
33
  # Optional URL that the invitee will be redirected to once they accept the invitation by clicking the join link in the invitation email.
@@ -56,8 +56,8 @@ module ClerkHttpClient
56
56
  :'email_address' => :'String',
57
57
  :'inviter_user_id' => :'String',
58
58
  :'role' => :'String',
59
- :'public_metadata' => :'Object',
60
- :'private_metadata' => :'Object',
59
+ :'public_metadata' => :'Hash<String, Object>',
60
+ :'private_metadata' => :'Hash<String, Object>',
61
61
  :'redirect_url' => :'String'
62
62
  }
63
63
  end
@@ -101,11 +101,15 @@ module ClerkHttpClient
101
101
  end
102
102
 
103
103
  if attributes.key?(:'public_metadata')
104
- self.public_metadata = attributes[:'public_metadata']
104
+ if (value = attributes[:'public_metadata']).is_a?(Hash)
105
+ self.public_metadata = value
106
+ end
105
107
  end
106
108
 
107
109
  if attributes.key?(:'private_metadata')
108
- self.private_metadata = attributes[:'private_metadata']
110
+ if (value = attributes[:'private_metadata']).is_a?(Hash)
111
+ self.private_metadata = value
112
+ end
109
113
  end
110
114
 
111
115
  if attributes.key?(:'redirect_url')