diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a38c0e71..68246673 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,24 +1,24 @@ lockVersion: 2.0.0 id: fd90517c-269f-472b-924b-9e891a9dd646 management: - docChecksum: ad87fb6c641056f81814bb04bc3f9a91 + docChecksum: 0117f2d212433e8964c5d2251a5c5c68 docVersion: "2026-05-12" - speakeasyVersion: 1.777.0 - generationVersion: 2.903.0 - releaseVersion: 7.0.0 - configChecksum: 2182853f0ae9484002abbb8ced210b8a + speakeasyVersion: 1.788.1 + generationVersion: 2.915.1 + releaseVersion: 7.0.1 + configChecksum: e6e0ac613661dba5a7681bd93611a7c2 repoURL: https://github.com/clerk/clerk-sdk-ruby.git installationURL: https://github.com/clerk/clerk-sdk-ruby published: true persistentEdits: - generation_id: 325c2d84-214f-497b-8197-16049732e144 - pristine_commit_hash: daa111df86bfa646f4352e99202c6914bcdb90e2 - pristine_tree_hash: 1bf0a12746454264883cd7e420693bdcb9bf8eaa + generation_id: 9557c117-4d11-43d7-8f29-597aa5517b05 + pristine_commit_hash: 9cb5b58794c2ad54c3f1cbe91d4f78c6b8721880 + pristine_tree_hash: 1b6d31fe6c2d78206ffc42ab8e3fd61a1af59e78 features: ruby: additionalProperties: 0.1.0 constsAndDefaults: 0.1.4 - core: 3.11.29 + core: 3.11.33 deprecations: 2.81.2 examples: 2.81.8 flattening: 2.81.1 @@ -30,7 +30,7 @@ features: nullables: 0.1.0 openEnums: 0.1.1 responseFormat: 0.1.0 - retries: 0.1.1 + retries: 0.1.2 unions: 0.1.4 trackedFiles: .gitattributes: @@ -51,8 +51,8 @@ trackedFiles: pristine_git_object: b0ea40558f3ca80dcf7d30b159d34a1e5ab33440 Gemfile.lock: id: 21fb5836b499 - last_write_checksum: sha1:6e5eb0b4b3f0a297eaebad36c81867ae12168006 - pristine_git_object: b26b059a69584aa2451d090396be77f98c15f9e1 + last_write_checksum: sha1:78a414bfe9661490f036ffe987e940f87f34a9a9 + pristine_git_object: 2d0dbe6ce57a1ecf7e516a07499c49816b5d30de Rakefile: id: 44b7fa1ba503 last_write_checksum: sha1:a586fbe304fe2796dd3ae6d82eab76a6d0ed19ae @@ -63,8 +63,8 @@ trackedFiles: pristine_git_object: 02061974cdb8ca553123eda01f761a8b145e2f5c clerk-sdk-ruby.gemspec: id: 1d24faa8ee4c - last_write_checksum: sha1:7015e500370a2ef587ce9c29d3b84c9c199f90be - pristine_git_object: 07df6705f9a4fd85401725150bb06c1c478d6d47 + last_write_checksum: sha1:8baac0740634bdda2b7bcbe3a3b528f57639389c + pristine_git_object: 8e56f3aa92a9cbee6c325c2797c76ca371bebcb4 docs/models/components/action.md: id: 4c3e678208a3 last_write_checksum: sha1:b2c812855b499311371bbfcfc1146bb169fcde20 @@ -151,8 +151,8 @@ trackedFiles: pristine_git_object: 9e7e546e3ebcd048ba8a75006978a54ec70d874f docs/models/components/billingpaymentattempttotals.md: id: cb1238b4de15 - last_write_checksum: sha1:7e59552b39774b0467bff7416046c0d108d094b8 - pristine_git_object: e34915078f12b082810948aa6a014f2248102376 + last_write_checksum: sha1:0e0748742cac8c516bb1a3eb9605427819150b26 + pristine_git_object: fea521b33bcf5a319474ecee4523824cf7c60244 docs/models/components/billingpriceresponse.md: id: e6eee43fc4e5 last_write_checksum: sha1:8a38832ed777538c3c4cc6200f9ef92fdf20c662 @@ -207,16 +207,8 @@ trackedFiles: pristine_git_object: 5c4b4bd245e9da656bf0f566da530b0f0c047392 docs/models/components/clerkerror.md: id: e87529888849 - last_write_checksum: sha1:c1f5563efe6658032672e3db7b7ddf23287d6dcf - pristine_git_object: e4d54ce7cfe80026b4c8902efd68a43f2e93d0d8 - docs/models/components/clerkerrormeta.md: - id: 7ff2baa09cb5 - last_write_checksum: sha1:ac076881f71bd9cb8f003451e74d02d3ef038a6f - pristine_git_object: 7e76f4893179720c20492335f4ce5d544882e1bd - docs/models/components/clerkerrorsmeta.md: - id: 61bb2984ae55 - last_write_checksum: sha1:de0c09ae9132e602e7ec24b30d9a94f5128511a0 - pristine_git_object: c82450fb5b28ea15c6ace00ab34b418cda115d42 + last_write_checksum: sha1:646acba81d699ff8993a45cedbd58bba903f5e3a + pristine_git_object: 83163daec38450d4a5870746cbd54d5a2f033d5e docs/models/components/client.md: id: b8f8d0df008a last_write_checksum: sha1:a420a1ee0daec50c6283aec187f9e3fce4cb09d3 @@ -235,8 +227,8 @@ trackedFiles: pristine_git_object: 8c2f0871196d1fe5128133e0fed3e0678f2c103f docs/models/components/commercecreditledgerresponse.md: id: 153744f5df15 - last_write_checksum: sha1:7f2cc1a0d44aebb53c745b3726790dd61ba790d6 - pristine_git_object: bc95251a07ecc829a50a05e6a3f6e510592b0335 + last_write_checksum: sha1:e79a83e28f7189c16f8883965ecdc43cfa1429e5 + pristine_git_object: 73455200c782c9fadd1cc317446c99d619e31061 docs/models/components/commercemoneyresponse.md: id: baa54a469e6c last_write_checksum: sha1:88966b5c1b3284055f44da6b98df420fcb1db783 @@ -265,14 +257,42 @@ trackedFiles: id: b6e02b0cf944 last_write_checksum: sha1:9402e994bf0ae34a0f5262aa3247327703242819 pristine_git_object: 6332730d688f8a778bb850cf8d0a64ccd1ecd626 + docs/models/components/commerceperunittotal2.md: + id: a4ee01174355 + last_write_checksum: sha1:2770a685c3ea17b9e7ae1e31759653aa66467360 + pristine_git_object: 2f74a5431f78d1b39dd373dc90d7acb9bd8f5679 docs/models/components/commerceperunittotaltier.md: id: 1df8ca4bf71f last_write_checksum: sha1:3251323321e2192450b99dd4fe234aa7f1155c7f pristine_git_object: c0e4df7501b4ca3d328da100581705ed0121895b + docs/models/components/commerceperunittotaltier2.md: + id: b3fb0ea0ed34 + last_write_checksum: sha1:1d6a22fe021e02910bb3fd08db403b997bd57801 + pristine_git_object: 8d311a8b0139eaefce441ef60a1ad19631a758ce docs/models/components/commerceplan.md: id: 4b14c5d70ab6 last_write_checksum: sha1:b6cbfd444de5e832c790aa770516f4ddcbe6598c pristine_git_object: 656c65966939a358f45503bd59aefdedd57b8b75 + docs/models/components/commerceplan2.md: + id: 1ca738d50978 + last_write_checksum: sha1:e97e326b3310433e74c9b95a0eddb5485d6af908 + pristine_git_object: a7e05c1002837e716bbdd8fe57ede069dbd79588 + docs/models/components/commerceplan2annualfee.md: + id: ab8f291bd5df + last_write_checksum: sha1:6075272bf68a5db078de7d42a442e5c9b85501b0 + pristine_git_object: bc8cf11110409a6c9201d4a614a1db06f41fe752 + docs/models/components/commerceplan2annualmonthlyfee.md: + id: 6afd1566f922 + last_write_checksum: sha1:3a14301319bf896359a39d4a98b659aaeefc984b + pristine_git_object: e56da86daf7c20caed556038f0e2ce13ed858cc7 + docs/models/components/commerceplan2fee.md: + id: 70deb4514db2 + last_write_checksum: sha1:ec5f8403ebd1e2429df7e190a3c788f24ee15249 + pristine_git_object: d1cf9abe2e2828039a07d6669e55ed49757b94e8 + docs/models/components/commerceplan2object.md: + id: 069e8647252b + last_write_checksum: sha1:c049afb47e830cb306d57a2af71ca9c79b504850 + pristine_git_object: f8e7f1137d861a66d8d4c12ead75de5651e3ca3c docs/models/components/commerceplanannualfee.md: id: d2e259463646 last_write_checksum: sha1:130166623b7b103b388a2640d31eab4179d4408a @@ -299,12 +319,12 @@ trackedFiles: pristine_git_object: c242f8fb518204921124f36009056017fdf7fe11 docs/models/components/commercepricetransitiondetails.md: id: 42be6e38824e - last_write_checksum: sha1:2283796fcf6273d91d9675e5f5440dd81d1ac70a - pristine_git_object: f79c37657df5b932480c8359b8b54c9371d56afe + last_write_checksum: sha1:aede2f086b7dcb58914e4cc8968177fd0d76a43c + pristine_git_object: 233db7ec18464431d0011ea3854b832aa437b275 docs/models/components/commercepricetransitionresponse.md: id: ff1ca1b0ec2c - last_write_checksum: sha1:63410b41981f3d641c524eae6fad87ec8c06b507 - pristine_git_object: 6e4e17463cda4dfc04bc61c87875b0f0a295b01c + last_write_checksum: sha1:9c0b1be00e71a4158c2963205c96c423d6cfb186 + pristine_git_object: 33b89d019d844372ec6fc88355bd773fed57615a docs/models/components/commercepricetransitionresponseobject.md: id: ef90453e5e5e last_write_checksum: sha1:77770249fc59c367493060b4924f9552368bb664 @@ -325,6 +345,82 @@ trackedFiles: id: 002547a3e9e3 last_write_checksum: sha1:f2081c936404f97585013836ee1dd1b344e5bc3b pristine_git_object: 5375b9c0f5d89c22adf0ca3c36fc5f25fb42a50f + docs/models/components/commercesubscriptionitem2.md: + id: ade8042674a4 + last_write_checksum: sha1:351dd132ea077c21bec41333fc3f9bf7d7f6612b + pristine_git_object: 17c0715b36411ef3695d5f3ea5daf8aee3ac9a7c + docs/models/components/commercesubscriptionitem2amount.md: + id: 2d6700c794cc + last_write_checksum: sha1:6349ff442999b65ed3dfa54d01e93b92e19dcfa2 + pristine_git_object: 9ffb33ed8bcc9bfc893d83f415d261a42c9977cb + docs/models/components/commercesubscriptionitem2annualfee.md: + id: 65effb5c689a + last_write_checksum: sha1:5939a6e6276c28305a350688f61286ffce960358 + pristine_git_object: 3bc20473bd647dfa265a6264e0262e31e8d226eb + docs/models/components/commercesubscriptionitem2annualmonthlyfee.md: + id: a4c01868355a + last_write_checksum: sha1:e4f46f47270cd1f25cafdddb87f130046c5bb6b8 + pristine_git_object: e8d179823c559c3716b54dbacba80650fcbdec73 + docs/models/components/commercesubscriptionitem2fee.md: + id: 26d6cfc78d2b + last_write_checksum: sha1:ebbce9729dd28f7b374ac2c7a6217b09386e15f3 + pristine_git_object: 7664dd02605980861bd41dc499191e662ef7a52e + docs/models/components/commercesubscriptionitem2nextpayment.md: + id: c5d1cd49cd61 + last_write_checksum: sha1:1b82ec7b87d41bd30604168e29496ca48f9cf958 + pristine_git_object: d3228f5fc5f924f45cc1c6c4507dc65d02aea148 + docs/models/components/commercesubscriptionitem2nextpaymentamount.md: + id: d034738369e1 + last_write_checksum: sha1:9953fb628fed0c21ff7b0c0b0b6069638b2d868b + pristine_git_object: 6dbd49339e8092d75ec7d11e95d983f0cbee87e8 + docs/models/components/commercesubscriptionitem2nextpaymentcredits.md: + id: 69c96a513862 + last_write_checksum: sha1:40958a6df18ebf158cf3ed216aae2461b76194b5 + pristine_git_object: d2fe2f9e396d68c0708746e223394d7fe5c79dcb + docs/models/components/commercesubscriptionitem2nextpaymentcreditsproration.md: + id: e708efa70f16 + last_write_checksum: sha1:142123bdd538d780cd4af3ab2d9c0eead6a3293c + pristine_git_object: ec1912d0a1f35ba92cb6ff939d9b4b401a152560 + docs/models/components/commercesubscriptionitem2nextpaymentdiscounts.md: + id: 320dd944e72a + last_write_checksum: sha1:42e3003fb545204c56b786323c62bde3dd07707a + pristine_git_object: f3e5779f39219fa254649f1d14c9d05ed957a4b7 + docs/models/components/commercesubscriptionitem2nextpaymentdiscountsproration.md: + id: 1abcd401c290 + last_write_checksum: sha1:b28e425dc5f5f864b7a5968a726b4b6e07cb5ab8 + pristine_git_object: b1e6e016863bb308159903cda7910a553d1b6041 + docs/models/components/commercesubscriptionitem2nextpaymentpayer.md: + id: 0d01abe59d9c + last_write_checksum: sha1:c489e483c3da351e389812e0628b10cc57130d0f + pristine_git_object: b446f01e7efd7a9317f92ff002e5f33586d30776 + docs/models/components/commercesubscriptionitem2nextpaymenttotals.md: + id: 4218b11eecf6 + last_write_checksum: sha1:91ef18e1f12fb5751f6d68ff1e06ce8581e76312 + pristine_git_object: b9de507bdec21e8a5e55e7ab7030ed7ce527e714 + docs/models/components/commercesubscriptionitem2objectcommercepayer.md: + id: 007b726c7799 + last_write_checksum: sha1:6b9065af6daff68bf8e76e51e021180ddfda2fa5 + pristine_git_object: d29bb09a383c26ac3898c2788f20e8e00520702e + docs/models/components/commercesubscriptionitem2objectcommerceplan.md: + id: 82bb7bdec18c + last_write_checksum: sha1:965fbda222ad3f7d9b8737eace73ff81143fb10f + pristine_git_object: 86833623dd53842779c924d24e761a56a20f8b6a + docs/models/components/commercesubscriptionitem2objectcommercesubscriptionitem.md: + id: 1ef6d7a5e611 + last_write_checksum: sha1:09520bcf63db0f850f10a5388a04c50c5ffc61eb + pristine_git_object: f933d15831ae4d58175c2f26c3d4b08c5f3bc6dd + docs/models/components/commercesubscriptionitem2plan.md: + id: 7a387843f22d + last_write_checksum: sha1:8bc5d0b9d34507bf42ef6b9063c337d56b510699 + pristine_git_object: 360ee0607e45789f4883c20c392332b695191f11 + docs/models/components/commercesubscriptionitem2planperiod.md: + id: 19817b51df57 + last_write_checksum: sha1:dc545a77c198c4d09904f4246acbd5ca1c7ff34e + pristine_git_object: aa5aa3a0e3d4249e3f51117a22a2fce6ac0c75cf + docs/models/components/commercesubscriptionitem2status.md: + id: ea3866c3184d + last_write_checksum: sha1:2bf42376985ce5aec06155d4d02dd8af94af311b + pristine_git_object: ad44f79f5bfeaec3be1a5f5012f50b1ea44e2683 docs/models/components/commercesubscriptionitemamount.md: id: c5ce2cc7cf60 last_write_checksum: sha1:231e8139e19b50b02249bf03e08234a499d9339a @@ -411,8 +507,8 @@ trackedFiles: pristine_git_object: 9743007bf997790bd7668f1c03c027442e4b2c6e docs/models/components/commercesubscriptionitemtotals.md: id: cb0044683703 - last_write_checksum: sha1:7636decbc3372ecccf03db9edf7d0295b1c10c8e - pristine_git_object: 3f2c7ed771de9058a45ca809996e179799f93ded + last_write_checksum: sha1:db9cfac2d683a973e4f756ad4b1ea6bc25f5be7e + pristine_git_object: 0b69b28be3df1ff8a23425443f1cee3aaf62cdc0 docs/models/components/commercesubscriptionitemtotalscredits.md: id: faa47862366c last_write_checksum: sha1:ec0ce2022bac236db056f0d28ec9f6cb126ae1a0 @@ -427,8 +523,8 @@ trackedFiles: pristine_git_object: 6e6513c1216c727dd5ed27df235c0cce7947f64e docs/models/components/commercesubscriptionnextpayment.md: id: e456a85295c3 - last_write_checksum: sha1:a1ac80b6b3d06ce2aa8ba0b6315b125a148cebf5 - pristine_git_object: 04a7fd7e15cc06c3ed26b7251ed4ef9f0fc4d543 + last_write_checksum: sha1:0324a5d5385cbedd6f7f746ea08295911d529ff8 + pristine_git_object: 4b7828ac50883dde87ac7fb8c9ac7fc93bb07c24 docs/models/components/commercesubscriptionnextpaymentcredits.md: id: c472931c2187 last_write_checksum: sha1:5b715d8efdb84e73e8f9fc903bf2ea54e328cde8 @@ -451,8 +547,8 @@ trackedFiles: pristine_git_object: be24fcd5672cbe62f7db373980c9115fe9c71a4d docs/models/components/commercesubscriptionnextpaymenttotals.md: id: 89e39c052a9f - last_write_checksum: sha1:a494a0b5d22c8fc5c3025716e91a54be35b75aaa - pristine_git_object: 2bcf804e8aab8a98e2c590dc2f7fe0553276a83e + last_write_checksum: sha1:a5f8e54526e06d24468a24c2d05576541d9814d4 + pristine_git_object: f55c4cabab20672a7a34d3499e6ffa6301b64631 docs/models/components/commercesubscriptionobject.md: id: 2af007d5f30f last_write_checksum: sha1:9f578cb7fbf09ad50588207772b5e8c99eb5016b @@ -579,16 +675,12 @@ trackedFiles: pristine_git_object: bca5eb0a305810020cc3fd52fffb174de7694321 docs/models/components/emailaddressverificationsamlclerkerror.md: id: c95df6b2244b - last_write_checksum: sha1:9705fafe6dd147c555f0e6b17c875a906491663a - pristine_git_object: 930ec53cdaa308d0629dd72fa159e6251907ec51 + last_write_checksum: sha1:3df8ae9bd0db0dfee93e581d62e9d4f954d57538 + pristine_git_object: ae788a85e3476a79d597d6fb818355049271f6dc docs/models/components/emailaddressverificationsamlerror.md: id: "097213801443" last_write_checksum: sha1:dfbf15a753f8630221daac4f25158eb674873d01 pristine_git_object: cf7fe387d2a123d0d214dd91e091dd88ea7ab1bb - docs/models/components/emailaddressverificationsamlmeta.md: - id: a9638130e182 - last_write_checksum: sha1:086778a46c23d37b91866ff9073c9f245373235d - pristine_git_object: da0ce91b85fc17d53c41c82f08122e71be2fc5c4 docs/models/components/emailaddressverificationsamlobject.md: id: 131a75cc1c50 last_write_checksum: sha1:817a61a1c2c01d6a51cb69a4ad2a19668062787d @@ -619,8 +711,8 @@ trackedFiles: pristine_git_object: 88e3f02ed735402f14524ca3cafc48c1d5596ced docs/models/components/enrollmentmode.md: id: 9fa0b14b3ce7 - last_write_checksum: sha1:64938e60bbb94a21b7fadaa5988900176a2fc952 - pristine_git_object: d878ebb2c7172143d1560fde0fe3ead9323c0614 + last_write_checksum: sha1:c94ebc80f564cc6fcbb5b8f80cff12c2e45e82ee + pristine_git_object: 0f21c24f7985beaafe78f57e5650cfd493ecd2a1 docs/models/components/enterpriseaccount.md: id: 956f9d9cfd1b last_write_checksum: sha1:d7aa773902977126a5927f0cd7e267ad6d2be60a @@ -659,16 +751,12 @@ trackedFiles: pristine_git_object: cf8e917986b5d219451a9d8ec895642ba7d7f366 docs/models/components/enterpriseaccountverificationoauthclerkerror.md: id: 66b2caca4a7b - last_write_checksum: sha1:17605b12332e909750977e70c551a7d6428bac08 - pristine_git_object: ecdfc0e7fef8161afc81534280dadeaa365563bf + last_write_checksum: sha1:d50618ce33c507b2c16854ec623003b9fe219ad2 + pristine_git_object: 91ffbaa4899c699966e3ce8f495ab3cc0d699e3c docs/models/components/enterpriseaccountverificationoautherror.md: id: e9d8d90bea02 last_write_checksum: sha1:e32a89489d833d51efa4988a8e7801234456e703 pristine_git_object: b485c3322fce1d6047026a1a5a6b59e4673b1940 - docs/models/components/enterpriseaccountverificationoauthmeta.md: - id: 510f98d938b2 - last_write_checksum: sha1:6e707846e128c1562cf0df05f48d5267492f1753 - pristine_git_object: 7f3b51d8e33428131db1bbd281279a1254a47bd6 docs/models/components/enterpriseaccountverificationoauthobject.md: id: 29b03447d32e last_write_checksum: sha1:952838d32a63c26dab48d421ae1d41362b539907 @@ -679,16 +767,12 @@ trackedFiles: pristine_git_object: c648676c0dae2d45953ea978a08ab0860d9bfd5a docs/models/components/enterpriseaccountverificationsamlclerkerror.md: id: 0f1f7ae77e9e - last_write_checksum: sha1:9f902fd99cdf887f7e1d9286dbe096a9ab73281e - pristine_git_object: ed86149e4b317367ea584ac00946da5e54ff68ed + last_write_checksum: sha1:3b095d339887b42fa8afe05a6230f27df40e2981 + pristine_git_object: 7e650fa07ab9ae93c0891f0cb6768d2825b9ef19 docs/models/components/enterpriseaccountverificationsamlerror.md: id: 5ac81113a7c6 last_write_checksum: sha1:dc141a7bea5b7d02853e63855c47b8af406dc6c6 pristine_git_object: 5cc4153dda2adcb5c1927895dc4b219d78df9deb - docs/models/components/enterpriseaccountverificationsamlmeta.md: - id: 193d751bc587 - last_write_checksum: sha1:693a3a2c4c03187e57de1da7c3cbba1a9f90dd13 - pristine_git_object: 58678891db80dc7c75e2f05c302c474b93d13df0 docs/models/components/enterpriseaccountverificationsamlobject.md: id: d22f2f66869c last_write_checksum: sha1:66a9f32b16394327b0ebb0d380fac9ab2ec042a2 @@ -775,16 +859,12 @@ trackedFiles: pristine_git_object: c2b773ee80d932ec282f5bad552e2ba7eb5fdf34 docs/models/components/externalaccountwithverificationverificationoauthclerkerror.md: id: f23c9bc44610 - last_write_checksum: sha1:937f6d1b454dd02756fb308931bbbab1576719c4 - pristine_git_object: 611598e318a1bd101fea843b9d5f514d1daab360 + last_write_checksum: sha1:35963b69afa8b9b96ebe7fc3057f10d5890c29b8 + pristine_git_object: 0ca0180f6daf85135937139369ae535f5815d0ce docs/models/components/externalaccountwithverificationverificationoautherror.md: id: c2217af78a56 last_write_checksum: sha1:dac645557b5791cc957e6d52db56064370300d99 pristine_git_object: 3380adc5aae1d02b0818cfe4cdd749437e0cb5ae - docs/models/components/externalaccountwithverificationverificationoauthmeta.md: - id: df50f3a41895 - last_write_checksum: sha1:63beee504d2c3f70469cb7e2e598f249efbc102b - pristine_git_object: c73606e254180a02237b11a1e630531243ba96f1 docs/models/components/externalaccountwithverificationverificationoauthobject.md: id: 592de4ed49c9 last_write_checksum: sha1:6f7bc23db422c7f5c73866a46e128ad4e3f6405c @@ -797,6 +877,14 @@ trackedFiles: id: dfd59a0e7bd6 last_write_checksum: sha1:2f48d8592c1d4ce8d42eee523c847ea9d7b74337 pristine_git_object: dd129455088427a3094b2f1d1f7f4c7227c3e444 + docs/models/components/featureresponse2.md: + id: 04541d139c36 + last_write_checksum: sha1:53fed921a9fcb4c599ccb5b52e3e7377575769a4 + pristine_git_object: a77452107279ef50aef5c9280bfd4539b33a3a19 + docs/models/components/featureresponse2object.md: + id: 2ba7eaa8ec41 + last_write_checksum: sha1:8081c926ec5cb81bd18f1fc54a83e23a9c46a523 + pristine_git_object: 147258746df6966427e29874d0d95e18d4fd818c docs/models/components/featureresponseobject.md: id: 68d3486a2d86 last_write_checksum: sha1:26906a4d0a260e3e5fc4c71d7bcd933169c86d13 @@ -1207,8 +1295,8 @@ trackedFiles: pristine_git_object: 9da56253026478253013412c5acbb8ac0892538c docs/models/components/payercommercepayer.md: id: 431eb4837453 - last_write_checksum: sha1:41697b3b120e1b9cded15dc07cf9844b92caf4ab - pristine_git_object: cd2feb002bd4da2b166d0e94f9e6698027b93ecf + last_write_checksum: sha1:33deedd3bac767076051746fd2754f1c6b53b132 + pristine_git_object: 5980c07c4aaa4a6c4311b6afd3a94ab1bde2d9eb docs/models/components/paymentmethod.md: id: 722f86eed889 last_write_checksum: sha1:346c4bf613eb283b7b805d5e8be37a019a49a7df @@ -1355,8 +1443,8 @@ trackedFiles: pristine_git_object: 613a41b62a3eb9b2c812b6552ba36e0b196afe91 docs/models/components/samlaccountclerkerror.md: id: d7789105f6f9 - last_write_checksum: sha1:4671b9ec03a273ecc12f6eb1795696d75d61360e - pristine_git_object: 84b180e7992d01870988cc1bdf85680c72a91fdb + last_write_checksum: sha1:8e7e329b86a2f633957ba44f86d821ffd2fc8a3f + pristine_git_object: c03ede761351eeaf3e4c517faf7618151fb2f7fb docs/models/components/samlaccountconnection1.md: id: fcc5473a3d69 last_write_checksum: sha1:f21be878b82331fc6c43c4a0b35f7c519326ffe4 @@ -1373,10 +1461,6 @@ trackedFiles: id: ebb3c7f80c7a last_write_checksum: sha1:ea6a91e1445299bd7284eed4350ebe4d08579c4f pristine_git_object: 37bcb6e7813b951ee3d12e1f78066d9002a41b02 - docs/models/components/samlaccountmeta.md: - id: effccacab246 - last_write_checksum: sha1:7d895afca2538b2f86f5f64f49ec18f7a1a70710 - pristine_git_object: 1e0c82bb6b961d98d8dfb1aaf23237d689357279 docs/models/components/samlaccountobject.md: id: 32dbb88bd88b last_write_checksum: sha1:7bfc07eecef044b865b01aa87ee1d100c065ab3d @@ -1423,12 +1507,12 @@ trackedFiles: pristine_git_object: 487d86fcc5e22009aca1bc65a56d7c3ab78d318e docs/models/components/samlconnection1.md: id: 2ffaa6d62c3a - last_write_checksum: sha1:b11fad71f0a46ee86468ebad6e9927be5c52e8d9 - pristine_git_object: 1a3f7297d88949cfa9737b353432771013d53263 + last_write_checksum: sha1:997c63171e691bf9e10c84fdac12040d336956d5 + pristine_git_object: 8cccf42943a1fe7d7d972b86cdd73f4b67f22bf3 docs/models/components/samlconnection2.md: id: f26299dcd2bf - last_write_checksum: sha1:14b5af9e8fd1c55dbc77a2c23607aa5bb3729e6e - pristine_git_object: 9e326e0bc0b6b135514a4c5b0f36ce94dffd4fac + last_write_checksum: sha1:ad7827b54d8de0c502bd00dacce6ca2e20d26759 + pristine_git_object: cfc0ecadc795a5a9750b3f01e4a9f41bb03caa25 docs/models/components/samlconnectionattributemapping.md: id: bd500eaa575f last_write_checksum: sha1:98cd414c4b563f00d09a7bb665d99e5708795a5b @@ -1449,122 +1533,10 @@ trackedFiles: id: 3fb9ae17b284 last_write_checksum: sha1:4df93c22ddd2d420a7e883a68275ff8a227fd137 pristine_git_object: 7e07ac50399715d1bcb5db236cbba6937745ff64 - docs/models/components/schemascommerceperunittotal.md: - id: 9b8979807dd2 - last_write_checksum: sha1:b2567a87d68fb7b7f0f95ce875ac811df2d731ed - pristine_git_object: 29705852955fed420db3ce22aa512ed0f8c7ac24 - docs/models/components/schemascommerceperunittotaltier.md: - id: 9c1b8fd2b30e - last_write_checksum: sha1:1f930ce07ffee0748bcf8ec60034710d10063323 - pristine_git_object: a922e7447ae8d51eb4059b83d99410fe4e5db3bb - docs/models/components/schemascommerceplan.md: - id: 7eefec4e93f2 - last_write_checksum: sha1:7eeb880a162e65e7862ff1f79a8512c057c34e9f - pristine_git_object: a767d8d87fd7a9594e61034aa77861ac5a70151e - docs/models/components/schemascommerceplanannualfee.md: - id: ed96c6d3a04b - last_write_checksum: sha1:0815a4bcbd57bcb8c4973f0da9aaaad8d1d57794 - pristine_git_object: 665fe486292362e48c1ede940256715041ef85f9 - docs/models/components/schemascommerceplanannualmonthlyfee.md: - id: 11e7fc83d834 - last_write_checksum: sha1:70bb409d4e098bc0e4181135969a95dc938bb3bd - pristine_git_object: 3a4dc6bcf5c3c5d3ba290334ecefbe922056401f - docs/models/components/schemascommerceplanfee.md: - id: e43c695cdbd0 - last_write_checksum: sha1:5ea061f57d87e863fe7261404d5063616da3e39d - pristine_git_object: 3720c8833819f43d4d41b44d7fc79bf79eef3611 - docs/models/components/schemascommerceplanobject.md: - id: 10818a1a4204 - last_write_checksum: sha1:044d4aa8a483d6e12c0785bed3d0f9a36df9a566 - pristine_git_object: 791d9a6b28d435bdc0179afe0818a6651eea0cc2 - docs/models/components/schemascommercesubscriptionitem.md: - id: 392dfc9b75db - last_write_checksum: sha1:69abf4cb575244427ece320b894bf8c92309fa34 - pristine_git_object: 9ad0eb09513844d65a50fffa21c7f98eb6df72bb - docs/models/components/schemascommercesubscriptionitemamount.md: - id: fce1ade07ade - last_write_checksum: sha1:401d9e013b4ef674fe6ed10d5b12029beab2b0bc - pristine_git_object: 46a6a1470e1be478013627a87b5c8332fe24d5c0 - docs/models/components/schemascommercesubscriptionitemannualfee.md: - id: e9f901572e90 - last_write_checksum: sha1:4cbe5b11ec9a0611d5bb898c7819058f3956034b - pristine_git_object: b6fe9320a77b60f700bf5cd2214061a2945457ef - docs/models/components/schemascommercesubscriptionitemannualmonthlyfee.md: - id: 00f8e172fdc0 - last_write_checksum: sha1:d1df589bd3d3411d7835fbc69db204d13991e78a - pristine_git_object: 7a2525a7ec46973ee90e9e34a07b1ecf67fc2f0d - docs/models/components/schemascommercesubscriptionitemfee.md: - id: 28a7839d653e - last_write_checksum: sha1:63c7cb54510ece166b0b711f81303a2907f7beca - pristine_git_object: bb5d48c0512505f9cfe5ea594293aaf797e071c6 - docs/models/components/schemascommercesubscriptionitemnextpayment.md: - id: de048389c47f - last_write_checksum: sha1:e5c3af7ad03e0413cc61bc68281e3a4ca321233f - pristine_git_object: 99a6b0347bd3af2a9272b51f988b94b25c68d3f5 - docs/models/components/schemascommercesubscriptionitemnextpaymentamount.md: - id: 8936055ba095 - last_write_checksum: sha1:fee6b7aaaaa2c19fda072526c0cc13263663afb6 - pristine_git_object: 0c689dc96b53ee74567d9797a14e795e827b342d - docs/models/components/schemascommercesubscriptionitemnextpaymentcredits.md: - id: 1a8746a0ab56 - last_write_checksum: sha1:26488af7bda71df92bd5dbcc579754c4089ad552 - pristine_git_object: 871e62c6c95a19e56457f6ed6c3f09cbc02e78dd - docs/models/components/schemascommercesubscriptionitemnextpaymentcreditsproration.md: - id: b0960824a03e - last_write_checksum: sha1:7ca49d27dd1115718ddace18d868e5d702c755ef - pristine_git_object: 6099b66eadde34e5858f0af4c33704f05ce9d86a - docs/models/components/schemascommercesubscriptionitemnextpaymentdiscounts.md: - id: 786319a3b416 - last_write_checksum: sha1:f2e746705c695e419e2408862a7ffcd4c3aa7673 - pristine_git_object: 58815475b4456205b7b1d25d7611153533047acd - docs/models/components/schemascommercesubscriptionitemnextpaymentdiscountsproration.md: - id: 0ddff8e37487 - last_write_checksum: sha1:b238cf5e7039b5d91e2111a8eda705a1a7444b31 - pristine_git_object: d7019568af81644541c936c487a642c611fbef40 - docs/models/components/schemascommercesubscriptionitemnextpaymentpayer.md: - id: ec6717974fca - last_write_checksum: sha1:8b7b4dd27eceabb2447d847e52b44c83d1fe6db4 - pristine_git_object: 35f2f53e23ae7e78d0268339246ac5f11ff94630 - docs/models/components/schemascommercesubscriptionitemnextpaymenttotals.md: - id: 167200817b6d - last_write_checksum: sha1:b6b8a8cd0e0725478c57c676578c3670fabf8ac1 - pristine_git_object: 75a51b1632cb9254321ee7a232a2fa5cb25d8f41 - docs/models/components/schemascommercesubscriptionitemobjectcommercepayer.md: - id: 44d08a9a1e26 - last_write_checksum: sha1:0def1ed74de7acfadd0fe1d02322b022f24b12dd - pristine_git_object: cf53b918d3c184beb7043aaf45a298d3b0ca0a26 - docs/models/components/schemascommercesubscriptionitemobjectcommerceplan.md: - id: 57b3263380c0 - last_write_checksum: sha1:baa52d5919732fc15197386cb9769b7bb3b9cdd2 - pristine_git_object: d4c39dc43fb07447d6a65de529fa65c2396557dd - docs/models/components/schemascommercesubscriptionitemobjectcommercesubscriptionitem.md: - id: 1929f2c08063 - last_write_checksum: sha1:cfa16a7a8b7c6c43b62d65f25bc3e502abe1f2bc - pristine_git_object: c9565a195873b5329d255235581994c4af27ac94 - docs/models/components/schemascommercesubscriptionitemplan.md: - id: 035ba5de2138 - last_write_checksum: sha1:6be815607a8c7db02a9fa37d8898c2adc6821fbb - pristine_git_object: d14c0a915f1335df9509caa5eb821152d03b0efc - docs/models/components/schemascommercesubscriptionitemplanperiod.md: - id: 733c88b056da - last_write_checksum: sha1:95cdf19f597c2662403244d9f0af1e10a79acff5 - pristine_git_object: 7f9f78147d6227f6af4a80c6ec6f06e4c08f5c5b - docs/models/components/schemascommercesubscriptionitemstatus.md: - id: 68cda8fdd144 - last_write_checksum: sha1:971f436931cd3988b58f9b8e109b2f71c7dca508 - pristine_git_object: 262d12799c41805d0071897fe7bb3f46a5ba0f4d - docs/models/components/schemasfeatureresponse.md: - id: b96951b3b1b8 - last_write_checksum: sha1:6273208fc5999864f2e48107e51fefab8466f8ad - pristine_git_object: 7630f969d9272a276d1cb76730475a8ed25cae31 - docs/models/components/schemasfeatureresponseobject.md: - id: 6e6f9be83c20 - last_write_checksum: sha1:0fa75bef9ecdedb08995a98e09b6642996c5700b - pristine_git_object: 4bd8941922be33c2d7254aceff0e11dbfbefae48 docs/models/components/seats.md: id: 1c050eb1d033 - last_write_checksum: sha1:42df1ffaae9b4f5fba86fbd1d37faeaf5ef62a04 - pristine_git_object: 46dafbd80a7e18a7b958374722d1221e3bdc642b + last_write_checksum: sha1:b9946b976b295abef480eaf2715a6d8a6542b018 + pristine_git_object: b473dc67ce0699bf096804d0f52b1097ae43cdcb docs/models/components/security.md: id: 54906b49ea28 last_write_checksum: sha1:a0bd56d83ced14be832d16d5dd345eb9f689a948 @@ -1715,16 +1687,12 @@ trackedFiles: pristine_git_object: 204b724539678ae6b195f00e46ad7561aaf49470 docs/models/components/verificationfromoauthclerkerror.md: id: 838fb3a07d40 - last_write_checksum: sha1:2e25040e8dee915b9557350a80a25b5c5c430185 - pristine_git_object: 58754115689592d5c086a5f40235f3e3c3a7e52f + last_write_checksum: sha1:f3e949656d580c2a6bc7a584491709a43e393888 + pristine_git_object: bb0d295ab84bee8d23060c851ed37600e501dd9f docs/models/components/verificationfromoautherror.md: id: 090149741a37 last_write_checksum: sha1:34f937cc36e41f402ab32b18cde07985ab72cb0f pristine_git_object: eb8f9bea4da12fade27676f8be5b87a01723c48b - docs/models/components/verificationfromoauthmeta.md: - id: 87d298f40aec - last_write_checksum: sha1:39e74c4c68fcddaf964f725a14e117af7b52547b - pristine_git_object: 2eaf07e35a27a2831fc9b5653fa6f262d6fa04f4 docs/models/components/verificationfromoauthobject.md: id: efb3c525d385 last_write_checksum: sha1:82ae12fe1f84fc27b20b3e4ba42f51068a68d742 @@ -1735,16 +1703,12 @@ trackedFiles: pristine_git_object: 499f5a1e2b261b5f23693b575ee4a765ca0c58d7 docs/models/components/verificationgoogleonetapclerkerror.md: id: ac5c1b0dd167 - last_write_checksum: sha1:0020efed2f63f4be3258febeb97d7e54bf4d201b - pristine_git_object: 179007228bdda5cde20d9448107420a0419a87fd + last_write_checksum: sha1:7923e27ec00ae874b0b73a373d908573fe557f07 + pristine_git_object: 950691b2af8c9c05c6451b4c40b373a1658f0cac docs/models/components/verificationgoogleonetaperror.md: id: 88207c75cf18 last_write_checksum: sha1:2673095a46ea5b8c41517416f2374f7d1d2d8216 pristine_git_object: 56ce8ff4dd654d847c63fd94dfb1e30eeadc6c68 - docs/models/components/verificationgoogleonetapmeta.md: - id: 2f0904ed06eb - last_write_checksum: sha1:f9f81e5e4838febd5bda5c9ab65a92ebd9e75369 - pristine_git_object: 06ece0157c5a2fc358ad11324b25c4538e78f0ac docs/models/components/verificationgoogleonetapobject.md: id: 03001a785d63 last_write_checksum: sha1:4e150d6e2998b11939b006927222b9a3c42c8cfa @@ -1867,8 +1831,8 @@ trackedFiles: pristine_git_object: 26ab5595266b7a50182d0c3b907cb7a6525cd5dc docs/models/errors/clerkerrors.md: id: eb11ea33ae2c - last_write_checksum: sha1:0597cea29543cd136f20b07a44cddfda29af70d2 - pristine_git_object: 824656147bdfa83f1c98a696e36b37cc4c21aea4 + last_write_checksum: sha1:a5c0fcec395e448bb811c9ba3629e989790c8fff + pristine_git_object: e0648d59a9563f6879247195239e0c9d77a3f5d4 docs/models/errors/createadminportallinktokenbadrequesterror.md: id: 4f914977cd57 last_write_checksum: sha1:9a236f27c2d35807b226c4c869aeff655c986d32 @@ -2359,8 +2323,8 @@ trackedFiles: pristine_git_object: de128617896b147aa4dd5e23db1e8cd439d095d9 docs/models/operations/createorganizationdomainrequestbody.md: id: d6e3aa65cd63 - last_write_checksum: sha1:931fbf25235bde4b48c8ce591c76bf1c2f34c5a6 - pristine_git_object: a713a538801ff7ccbaceca7d51416ca67c86b2f2 + last_write_checksum: sha1:310778b744191244572b016face2976f70d0050d + pristine_git_object: 884921bb6a0a51043e9d6b43303b9dc7aa486ad7 docs/models/operations/createorganizationdomainresponse.md: id: beb97dd75559 last_write_checksum: sha1:ef8607095fc0d8aeb20eb4b2575872c2d0af61f9 @@ -2815,16 +2779,16 @@ trackedFiles: pristine_git_object: 030795ae28f018cec827f8c8d6edbe50fa1fb15f docs/models/operations/enrollmentmode.md: id: c19cc017bcaf - last_write_checksum: sha1:c81b5a82460b75ad99700d9698780a090abf9b72 - pristine_git_object: 2ccedbd5cb25209c8c490e6bac0c873d365951e4 + last_write_checksum: sha1:04d992efa0b1c322b78fa01075eeecf887efd259 + pristine_git_object: 56dba26eaeca2204a4afa209dde5ef2caf1554ad docs/models/operations/extendbillingsubscriptionitemfreetrialrequest.md: id: eaaf24eca725 last_write_checksum: sha1:50a439d32e952603964c65a4acc0f63805fcfd8c pristine_git_object: 819e5de41589a695baea2ed9e0da7cf356daac6c docs/models/operations/extendbillingsubscriptionitemfreetrialresponse.md: id: 126c5d4a1a3f - last_write_checksum: sha1:b21c22ead330e29a6065ed9ff68a4aee62db8714 - pristine_git_object: 7064aff8fa2b40b56d5298b8f5c23dabb6756e4d + last_write_checksum: sha1:2f434b62295ea5cfd60137778fdf02d7651480c8 + pristine_git_object: 195d1a961cdb97387d5d2232bb5884ca78a35b7d docs/models/operations/format.md: id: 4c6808d8bb23 last_write_checksum: sha1:e56085a6eab4ff5f93271c3908d48d5eb9dfba50 @@ -3291,8 +3255,8 @@ trackedFiles: pristine_git_object: 23f2a668301f3ee0cba244c4b250f6e4c8574e63 docs/models/operations/listallorganizationdomainsrequest.md: id: 0885565ceca9 - last_write_checksum: sha1:3fda537eaf3e9c2746feccd33550c69de9ac3ac4 - pristine_git_object: d81988e42804bbea3fd75b8d7b40d6a504f32ea8 + last_write_checksum: sha1:1e374d12d4ae93bb9a181a54acff910681973b96 + pristine_git_object: 109a3218d545696755466232e657b317272dbead docs/models/operations/listallorganizationdomainsresponse.md: id: 78add0347365 last_write_checksum: sha1:e2f7503d55f64317e812ea8bec580f88a73aeacf @@ -3383,8 +3347,8 @@ trackedFiles: pristine_git_object: aa0c06a4640edc81218e595cbd094da99588768b docs/models/operations/listorganizationdomainsrequest.md: id: fe667db0ce15 - last_write_checksum: sha1:bafbf136d0ade9450e071375055e6e264d3b4f69 - pristine_git_object: 6cedf9efd3972d5371b388bebe48dc80dd6f25f2 + last_write_checksum: sha1:c6e6a83f195cfe8b4eca46aae5d8cc54691cf84b + pristine_git_object: 15ccff1905b612ab7aa473525e591e205c8a6eaa docs/models/operations/listorganizationdomainsresponse.md: id: eba8d798ae4e last_write_checksum: sha1:29e0d543744252b71f224eddc151d81a61686ffc @@ -3789,6 +3753,18 @@ trackedFiles: id: 9b2289443e50 last_write_checksum: sha1:9746094e6c7d8c974c7d0d68b0d1edcdc5bc8250 pristine_git_object: f85fb69e7606fb972e3f4e89ecf9d211490f23bf + docs/models/operations/revokeoauthapplicationtokenrequest.md: + id: 80731dd75b61 + last_write_checksum: sha1:b5a38bb2a0e82fff1dddbefa569f2f0e009f9336 + pristine_git_object: 71caa7022c748203fb24534efb38a3c2d9244751 + docs/models/operations/revokeoauthapplicationtokenrequestbody.md: + id: 7425a7551f92 + last_write_checksum: sha1:73880b0a15679c5c3e3028500e94c881382bd891 + pristine_git_object: 4f0b67bb551ab5680cae72e4bac22d0790b61404 + docs/models/operations/revokeoauthapplicationtokenresponse.md: + id: 1fbd193ff2c3 + last_write_checksum: sha1:34895a6dc93d2c1856b1dfc5f806c067b4326d35 + pristine_git_object: ea2b23e9640ef9f3984ded3fce1df24d5bb9401c docs/models/operations/revokeorganizationinvitationrequest.md: id: 871c13af0331 last_write_checksum: sha1:93b33792870f3b513d4768dd5d36d8d482aaf1e5 @@ -4091,8 +4067,8 @@ trackedFiles: pristine_git_object: 154ac3c8f2bf0d00507e16341c3b5fb1383a2b58 docs/models/operations/updateorganizationdomainrequestbody.md: id: 81b4f5b226f0 - last_write_checksum: sha1:20594cfce6c0763368aed0c83c637a294cbe5e1b - pristine_git_object: 0a5e0b7d8331a7f4760a490d161848b7d4b535cb + last_write_checksum: sha1:b531e12814a75ad42da7049e2e396ccc77e72634 + pristine_git_object: 6cdc2f7b53fdad53aabd06dff543319b83887c1d docs/models/operations/updateorganizationdomainresponse.md: id: 0b05454c46bb last_write_checksum: sha1:45304bbf4c3df8f036a01f9792a606c33260c275 @@ -4503,8 +4479,8 @@ trackedFiles: pristine_git_object: a852e2ea5b8dc09020de063f7828472c4454c384 docs/sdks/billing/README.md: id: dc915331dd9d - last_write_checksum: sha1:47f857676aa1899b7887336a1bce3dfe07742dff - pristine_git_object: 93bbbc1db01e16c35ddfebdc09704e515024c5e3 + last_write_checksum: sha1:a7c1be5475eb5c4e306a8f104f320facf7b8eef8 + pristine_git_object: 0df1ce25bb5ea99c1340be42aef81ac7f34ef54f docs/sdks/blocklistidentifiers/README.md: id: c7e007a1e760 last_write_checksum: sha1:341920541fa03f18ea97104bc43f95ee4af946c9 @@ -4567,12 +4543,12 @@ trackedFiles: pristine_git_object: 3ad82a20af9edf24c8e11886d2d7ee9f3d1a4022 docs/sdks/oauthapplications/README.md: id: 8962667a62b1 - last_write_checksum: sha1:a8dc301f0f09f2f1f7b62be5e994e0c835ca80f4 - pristine_git_object: a8f48c6cce90835530f24fb62bc2e7b8537d90f5 + last_write_checksum: sha1:d6ac8cfe0a66dc8a42d82ba334a68c89064cb1f1 + pristine_git_object: e3b7a6bb4c5a4d85c38a9b93454339f1f385af58 docs/sdks/organizationdomains/README.md: id: a256821053b6 - last_write_checksum: sha1:0db17db131892928cf2f54052a0a25808b0ce9be - pristine_git_object: a4580641d21ea48fbafc3582a63430f01cd0b4ba + last_write_checksum: sha1:e86c1359420dd914fc59b2982be15c4266da70be + pristine_git_object: e7d98fe2c219e6974d25b8827f00a0d8d3d7e323 docs/sdks/organizationinvitations/README.md: id: 289d4104fbb9 last_write_checksum: sha1:473486dbe21ac269b43e918dedfae6f9f348c3e3 @@ -4635,8 +4611,8 @@ trackedFiles: pristine_git_object: 768c469042be96da8df3e74839b71de124b628f9 docs/sdks/users/README.md: id: 5d80027045fe - last_write_checksum: sha1:396d5607d1fee06759b76e0d82165f4763309c8c - pristine_git_object: d8bec26277938c818abfbc38bb6ee00d8f298e4e + last_write_checksum: sha1:c36edbdc87d9ec2637f786698732183a0252cad4 + pristine_git_object: 7918bb8d9a912d1aa9a6f467cac5adf22880cbd6 docs/sdks/waitlistentries/README.md: id: a4b511c18a9a last_write_checksum: sha1:f87525856d6e1845a0ad024c1789570f99603fb9 @@ -4647,96 +4623,96 @@ trackedFiles: pristine_git_object: c23c24cac7773c6a910b91067815d8b15ba1c967 lib/clerk/actortokens.rb: id: 91dc131e829b - last_write_checksum: sha1:64efc621ebbd9b3f4d21464c59a192d1aa713018 - pristine_git_object: 065a83b6f67877c98d465b6ae154a620dea35feb + last_write_checksum: sha1:a861d5ae1161925f9273e35b48659278a5c15f03 + pristine_git_object: 480517981bbe07d811f4d198db46ecd1efb55238 lib/clerk/admin_portal_link_tokens.rb: id: f2ba639a8356 - last_write_checksum: sha1:a8a7224dc3adc6f5f81536cf2ec826bd08a28b60 - pristine_git_object: 560bc1558088f6dbb006210078fdcbf35373c4d7 + last_write_checksum: sha1:62deab366d54d2ee0d9e28531a0fb842d584be44 + pristine_git_object: 523301fa9fe1197924082713eb8ac906f3f0bc07 lib/clerk/agenttasks.rb: id: a38b4798f6e4 - last_write_checksum: sha1:ddd05ba080992f5c80596049afc6991e7667910e - pristine_git_object: bcd6109cf28000846d0443e13778a7f84f7ce1d6 + last_write_checksum: sha1:2f4fd96c773ee75cb25a0cefe58e5b6718e4ab53 + pristine_git_object: 1d332a3ed7c84dc2ab4d3d81c2b3bb4d81de4041 lib/clerk/allowlistidentifiers.rb: id: fee85f4463c7 - last_write_checksum: sha1:283488f9ed2260347566a0e531432b27e13495b5 - pristine_git_object: 6c3cd9f5814268e18784e1a0407d9f5fa5875d92 + last_write_checksum: sha1:5c313b7f1d683054ec1f8380914980c1167f6bb4 + pristine_git_object: c44f25a0f505363ed55e3b046cb4c105cc074ab3 lib/clerk/api_keys.rb: id: 1332e008641a - last_write_checksum: sha1:3cdf84f6bc3e7335e9144d699b2ed82e05b65a9d - pristine_git_object: 9e234afeb099317bc8f12154e32927a38284b00b + last_write_checksum: sha1:48d513aeb8a9ec24f6ee273d53d6665e446d4a86 + pristine_git_object: 251d130782e8f44bfe72f3e3d36bd76192141f20 lib/clerk/betafeatures.rb: id: ee1458ba5218 - last_write_checksum: sha1:e754926e1d4fd45747dafbeff912d0156571a310 - pristine_git_object: 4d499573c6fb4365f59d8bd4fcde23ea59fbb048 + last_write_checksum: sha1:8ab8bf933002352a496087c1253f5e8989f75de5 + pristine_git_object: 590df998efed37340d36c3dcc5459e52b9a6e375 lib/clerk/billing.rb: id: 4cb000a354b0 - last_write_checksum: sha1:7aded3c15436a0a4bc2c0440753f8df71cb44842 - pristine_git_object: 84ebb7a7046a271d520c08bf5ea74d097e4b59b1 + last_write_checksum: sha1:a67edecfbf0515c20f12feb55180ab36c676a81f + pristine_git_object: 7f7a98304969fb8c2dc7050dba1a6b449ea6902f lib/clerk/blocklistidentifiers.rb: id: fdf446b10218 - last_write_checksum: sha1:ac0b5bb13bcd6ea47c433ed31ae28e995c6f4a9d - pristine_git_object: 00256e464b8f85936c077aef50fb6621a589e1a9 + last_write_checksum: sha1:2b3aba9954e88b9130079eb1ca1a10b2398d76fc + pristine_git_object: 6f2c0ce679554bccb8885edc2271fdc25cc89583 lib/clerk/clients.rb: id: 05db6fc64962 - last_write_checksum: sha1:64c73f5a47152d89c52b1b458127fb4abc687969 - pristine_git_object: 1ec9d57c89525f0a3e5b38b2328995df8b162140 + last_write_checksum: sha1:fb95a3c61601ef67cb032f4afbc05e5babac0937 + pristine_git_object: 4f7dc36e853e36d9e6c832cdfee4854573f71023 lib/clerk/domains.rb: id: 9cfb7ab23cf6 - last_write_checksum: sha1:e29bb652f5bc12e07604179b1517ef914fee8196 - pristine_git_object: c6a441304334ff23de3d4ddfdcc2a867d9482898 + last_write_checksum: sha1:bd098d0a35db6211b263a5c35e31a26d3d51ae04 + pristine_git_object: 9eb5868f08ed1a18eee98ec75d48a34a6c16185e lib/clerk/emailaddresses.rb: id: e95ebced6f95 - last_write_checksum: sha1:86fbbbce91b1381292ecbb9601363b0e14f71ba4 - pristine_git_object: 75417a4e52d94a18ab11033b2184454000a2a2e7 + last_write_checksum: sha1:7bcd2cbda63fc029e7849df70b738990b51fbe4b + pristine_git_object: 00b748b45092606547474a70f7da43407927c60a lib/clerk/emailandsmstemplates.rb: id: 48132f32c68e - last_write_checksum: sha1:74e3452369c4e51c4beca8a824b2e3c0e4617368 - pristine_git_object: 5eb9d068c943e52fce3bdd294acc7dab066d9f8d + last_write_checksum: sha1:c5d84c0e76a73876e94a994fd411c020b80e4a2a + pristine_git_object: 6ed2e1d46d1923706bfa2d52fd21512a74ccd010 lib/clerk/emailsmstemplates.rb: id: 5f0259b84723 - last_write_checksum: sha1:b40fae3680509291d0ada56e021f9c214d8ba99e - pristine_git_object: f1926338866c24ccb0721987f07a195c18aa153e + last_write_checksum: sha1:e517d7c332b39cbbf1d3538bf182ee1ea5d89cf8 + pristine_git_object: 5120c452a05cea1b93810d59b0b91f73acd0c121 lib/clerk/enterpriseconnections.rb: id: 3423dda57c2c - last_write_checksum: sha1:bf5e0c9f250a0fd6a79a27c58cdf1490b9709e7e - pristine_git_object: f11d05ef453fb177519b23e37b651708d9bda10d + last_write_checksum: sha1:a90508c559ba550567dafa21bca0f8564e37c91f + pristine_git_object: 77b3381078dd31f7fd230ced9b9d78bd63feecb5 lib/clerk/instancesettings.rb: id: cfa55020c7c1 - last_write_checksum: sha1:7ff8777994111696d82cdfab1475157c6ae74215 - pristine_git_object: 95a620cb4fff5b38986dd56a748bf63667cdb0df + last_write_checksum: sha1:efed7190bc3a9bb72da6643cdee8e2debfa29122 + pristine_git_object: 5a9d0e80cb9c7061c7fbe44cdc2847d724cb2f45 lib/clerk/invitations.rb: id: cb77a9fcacdc - last_write_checksum: sha1:2d51d6216fb594301bda02d1f88f3f794862a264 - pristine_git_object: 8fa588c3bfe643deb3cdbf4717d061a5dc0fa96b + last_write_checksum: sha1:9a54a7e7961e94b525c815e99cb46c2bd891e3ed + pristine_git_object: 5efffe40d7f0667d5c7f150aab7e1af6cddab282 lib/clerk/jwks.rb: id: 8f9e82fe0892 - last_write_checksum: sha1:9b0b99852363c0561cfbc191f3a630afaf7c6b3b - pristine_git_object: d211291afde036091fa48c8b072c04cb0f97e339 + last_write_checksum: sha1:9ba8e80198ac523183cbc4c123d1a0806f81d017 + pristine_git_object: 3ae7f6e008a60eef6279c555b83ff7cb65c709bb lib/clerk/jwttemplates.rb: id: 0067ba48c72b - last_write_checksum: sha1:e82d8866c4bf3492bb9892a07feada454c378ffa - pristine_git_object: dd8e8efe8384bfa7bd5a25fd4d2b7e98a3ff7ae5 + last_write_checksum: sha1:4df2abfafd9baf391a58f8a8ae04a3722a07acdc + pristine_git_object: 3ea6c8ac444a5e19af0fc1954e4bef2de7e50f75 lib/clerk/m2m.rb: id: c71b660529fa - last_write_checksum: sha1:6a33837e547d2acf14d8c53af4ebfcd01cf6ea94 - pristine_git_object: 4ce6131fa5960a3512f1bdeb0a0af39c76590afa + last_write_checksum: sha1:11b961fa285ed5232553cddd5eda698f31126108 + pristine_git_object: c1f49da8d49a69f656fad9bc881511400b0d0496 lib/clerk/machines.rb: id: 381d4c76dc6f - last_write_checksum: sha1:a99ab544908160dc95882ac9a60092f585386776 - pristine_git_object: 36fe724e79688ded5123d872e2f0e2e717afb7c3 + last_write_checksum: sha1:13230e5ad14e449d3286f27ce9ff6148cc2298fa + pristine_git_object: 33beeba4da67eabd00a2253301f725eae2c6219c lib/clerk/miscellaneous.rb: id: b72c6c99302e - last_write_checksum: sha1:50e97ec90df8bcc9dc9a4d34c8067874e684bf4c - pristine_git_object: ab295323e56c99c36fb49f52b4a42bbe8a48b346 + last_write_checksum: sha1:7bb106a558bbaf39304729ea60b6a70b610bc5ef + pristine_git_object: 0daf7ffb4d3ee2fd2fb8229fb152068ef34fdfbd lib/clerk/models/callbacks.rb: id: 10bc738a0577 last_write_checksum: sha1:f6df41771124a1f5348ac5bfa82563fbd58a7397 pristine_git_object: 8ac00e0acca0de8ea3f22d5c627b8bd3cf9f6ab6 lib/clerk/models/components.rb: id: 2a4e77799abd - last_write_checksum: sha1:af1eb79d5ee3b04e13e861a5f54ee2ea5d23e7e7 - pristine_git_object: 6a09ea978c18c5d7e904067fd56256deb3743797 + last_write_checksum: sha1:31f8115f2087cd5f9135b254a7c64298eaf14feb + pristine_git_object: 271f50d539e39eba3676c036ffd65dce9b7d600c lib/clerk/models/components/_verificationresponse.rb: id: 5fd6425b78d0 last_write_checksum: sha1:8bc14d306852551519c2254ac2fe39373ee2a90a @@ -4915,8 +4891,8 @@ trackedFiles: pristine_git_object: cdb71c95c69be8f95a9bc9b1151840c09b0dacc9 lib/clerk/models/components/billingpaymentattempt_totals.rb: id: 904d93501d8c - last_write_checksum: sha1:9d7251eb72aabcd91fda411d9e338542e2814c8d - pristine_git_object: c2c127b8911c03a1f358e2ef7dd2804f74992489 + last_write_checksum: sha1:18aa5b3f7738665d40e3e8dcc6debb835b66bb3f + pristine_git_object: aff8f4361f30524b9f2a82f76133d40f73e71ef7 lib/clerk/models/components/billingpaymentattempt_totals.rbi: id: 30d77ca37682 last_write_checksum: sha1:29921e5ec9d2d93716c7d234c48ddd22b7ac6da9 @@ -5027,28 +5003,12 @@ trackedFiles: pristine_git_object: 070292ccd23aa84fc2a87f10575c34a5c0885306 lib/clerk/models/components/clerkerror.rb: id: 494f8669d01c - last_write_checksum: sha1:504551ff7ec8cc8de35950adea4ae310cb324899 - pristine_git_object: ba0975796032047fd377d7cf99ee5420c9eab877 + last_write_checksum: sha1:ea098845671391bc6fbe65c827202ced434d02e8 + pristine_git_object: 1bb8cf85fa700b4c4ac45e15c8a8b876f577ed53 lib/clerk/models/components/clerkerror.rbi: id: 9851fdf666ef last_write_checksum: sha1:6860ec45582f12299dcdb0056f8404671f136f19 pristine_git_object: 8e2a075e3ae2057b55f5619fc6320a77e727aa68 - lib/clerk/models/components/clerkerror_meta.rb: - id: 58bcece2e041 - last_write_checksum: sha1:83e62c9e25f967c6355de344be0553d5c0bb0067 - pristine_git_object: e755379b41f847991dbd87c2a19ada95fa3772b9 - lib/clerk/models/components/clerkerror_meta.rbi: - id: 79762638b2dd - last_write_checksum: sha1:d3cd11f74b193521f49baee1d49ac14eb5e917b0 - pristine_git_object: 69e5c3451315eaa45440ce00df500041fdeb4de1 - lib/clerk/models/components/clerkerrors_meta.rb: - id: bc2ee9f19107 - last_write_checksum: sha1:0c5f191d3e5e91226e5cf752797b4baffce9ff6e - pristine_git_object: d2cd3882b9eb70cf567c0d14913245db2d618f41 - lib/clerk/models/components/clerkerrors_meta.rbi: - id: 39f411f3ec39 - last_write_checksum: sha1:e4b7f9efcb4e3049405bc72f15527e48f1194b18 - pristine_git_object: 65b049674002b6f0846fe0c40b2de08906eea7c4 lib/clerk/models/components/client.rb: id: 42f9e78f556a last_write_checksum: sha1:8394841e0c24af92060c55d1748a7cf2339f3b4b @@ -5083,12 +5043,12 @@ trackedFiles: pristine_git_object: fa1904cc1ec7009175115a306da54943ec06ae49 lib/clerk/models/components/commercecreditledgerresponse.rb: id: 995c27b57bd3 - last_write_checksum: sha1:e6c1b9c04e0861b14ed2fdceed20953d95a1fd6b - pristine_git_object: 1ec5eb7b47a3b8c7c73e753b088cd03ee4c12c75 + last_write_checksum: sha1:ac5ea76d1c1c53b3cd76b7b647284d8b6a05ba52 + pristine_git_object: 1c998856caf794b3f74b9575008699d2c460c5b0 lib/clerk/models/components/commercecreditledgerresponse.rbi: id: 8f84ad3f9c30 - last_write_checksum: sha1:11e7dd086bce9ee92c0d74bbf5d8a4453a6a7a0d - pristine_git_object: c885db0e067950d57db2a19eec27763bf7703f7d + last_write_checksum: sha1:dda8c4b4681fb719e0702fe375374ec752047c7d + pristine_git_object: 1532ab907993959708edd40f92106b43f6f406df lib/clerk/models/components/commercemoneyresponse.rb: id: 11067153f0af last_write_checksum: sha1:1a52bfddfbcccef496047bdd44b276cb1f9cb5ad @@ -5145,6 +5105,14 @@ trackedFiles: id: daf1260c118c last_write_checksum: sha1:7f39e5fd065561604f160b21b9972a2f2d13b6e5 pristine_git_object: 6bb7e112cc1f4610dc05f4eae8d95e0c76ec04a2 + lib/clerk/models/components/commerceperunittotal_2.rb: + id: 72b8f779bf6b + last_write_checksum: sha1:6203c0d6031e986ddf3d7ac432904cf76cc4bff9 + pristine_git_object: 8866e64ba8f5af0c689832531528b7de3ff0ec86 + lib/clerk/models/components/commerceperunittotal_2.rbi: + id: cdd8852f5206 + last_write_checksum: sha1:fa77d4f2aa4a8f6cdb7722350f5d550c6a8e85a0 + pristine_git_object: 936688dee2e37e0b0640293ec94db940830d3d45 lib/clerk/models/components/commerceperunittotaltier.rb: id: 3f7953d92793 last_write_checksum: sha1:b12a8ebd8294ad8329e2331337baa03ab559a9ce @@ -5153,6 +5121,14 @@ trackedFiles: id: 616342f2741b last_write_checksum: sha1:703136914d8c664f73d4e409cd7dc74b73da4d01 pristine_git_object: 1dde762e39fac4cee5576f686636b28138a910ac + lib/clerk/models/components/commerceperunittotaltier_2.rb: + id: 24d536f388c7 + last_write_checksum: sha1:074a7ee102f4c60eacecc5d70a6a8c73e6a887a3 + pristine_git_object: 6c3767f4ef31aacf9e327a7dc37a291de7e1ccc1 + lib/clerk/models/components/commerceperunittotaltier_2.rbi: + id: d63f48cf111f + last_write_checksum: sha1:efec507af9fd9bdab2291d276fdc72520e96b893 + pristine_git_object: e4f77937bd25a36044691dcd35fa44ed800631b6 lib/clerk/models/components/commerceplan.rb: id: 70ecfa1757e7 last_write_checksum: sha1:5410d18603396f129af3c6f21778f6077722e6e4 @@ -5161,6 +5137,46 @@ trackedFiles: id: 8e73fb157c54 last_write_checksum: sha1:80f980eca712d0cdacb25d828d2eaeefed3aa1c7 pristine_git_object: 16a3c60a4d1268d0af81880ed43617f6da010957 + lib/clerk/models/components/commerceplan_2.rb: + id: 7926f16d80e7 + last_write_checksum: sha1:58ee230004a35c6b3c6c8aa7503921183018ea13 + pristine_git_object: f1bc4d7250f602792b64467c862feaade4d021f7 + lib/clerk/models/components/commerceplan_2.rbi: + id: 0b4ceae0b8c2 + last_write_checksum: sha1:7385518cd51d4424c434bf770f21d66daec14e47 + pristine_git_object: 6bb02ff86156782e5dabfe823649fe46fc7c25a6 + lib/clerk/models/components/commerceplan_2_annual_fee.rb: + id: 6a3353a5f207 + last_write_checksum: sha1:55ee3db3dfcbb941a79ed1a42d778c1f10c5a3e1 + pristine_git_object: e8e429ec5a8f13472943b606bf3dd5ba0fba2c70 + lib/clerk/models/components/commerceplan_2_annual_fee.rbi: + id: 40904155300a + last_write_checksum: sha1:d3bfdc1dbd7668cf86aaa7857b26893d6fa50b8f + pristine_git_object: 4e9ede83c059920e2eb093813e02d8da1f2d334e + lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rb: + id: 028edce52418 + last_write_checksum: sha1:f322d112061eb03960a01d9aab6f2d992fb583a4 + pristine_git_object: de483d9da2f590d8bf079521d50fbc0810b14887 + lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rbi: + id: 0b20a6b977ca + last_write_checksum: sha1:fd5e10bd5ef2c6bb825b7e5c4db6fba3c3ea6491 + pristine_git_object: 1d428e7d9a3e9bf9a4d904dafaa70191d501a5a1 + lib/clerk/models/components/commerceplan_2_fee.rb: + id: 2ccdbeea6835 + last_write_checksum: sha1:5859e98658018e072fbb39cbd12d05ea060f2452 + pristine_git_object: 42af322fb3b4a0e7ef9267849b4b6b98c51100c6 + lib/clerk/models/components/commerceplan_2_fee.rbi: + id: dbaf1f0a2f19 + last_write_checksum: sha1:fc907226627e2f403e9c04ab254939715ee2312b + pristine_git_object: db293e2f245eb2712168ebec52d279a3a768640e + lib/clerk/models/components/commerceplan_2_object.rb: + id: 5f50065f4c67 + last_write_checksum: sha1:4bc6983e972e709aac2abbe4937871bae5a2ba80 + pristine_git_object: 7ab610fd1f6c8f104ab1c9b9204c28325d419515 + lib/clerk/models/components/commerceplan_2_object.rbi: + id: df6a29610e21 + last_write_checksum: sha1:aeed7422b07d8b6d6d64ed5748d0c3681c9758f9 + pristine_git_object: e48cbe85ce9bf47298b4be81c30d1f271f309e5c lib/clerk/models/components/commerceplan_annual_fee.rb: id: 6a8d26374315 last_write_checksum: sha1:36500346c43a1c631d105c0dc75bcf7502374d18 @@ -5211,16 +5227,16 @@ trackedFiles: pristine_git_object: 86b24efa6b0ab9e6a3c72218ca3cbdf34239265f lib/clerk/models/components/commercepricetransitiondetails.rb: id: 471287e344ba - last_write_checksum: sha1:5e12f239dc211b6f1b3ae33752fea33eca1ae71f - pristine_git_object: e9c6e196d10c1d6bf0c899dc1752c5d87c1ea407 + last_write_checksum: sha1:13ef13b1232e1f8a0689c46f39ccac519a60d363 + pristine_git_object: 01fa6b7e648b79b4f244347282b82038bf3210cc lib/clerk/models/components/commercepricetransitiondetails.rbi: id: 6531e174d126 last_write_checksum: sha1:54bc048eff79700411a96f893e6dea7b8c6a60be pristine_git_object: 50b2eb04ddb531f3f5cb741d64a202d84dcb15c0 lib/clerk/models/components/commercepricetransitionresponse.rb: id: 60608592aedf - last_write_checksum: sha1:530508417c2a1f575d0aedcb86f830093df2c378 - pristine_git_object: fc38e3894ed312505f08d67c091d1320e475051b + last_write_checksum: sha1:d0eb16191049e6099d67f092b268f81e9fa26c42 + pristine_git_object: a45223c4ae54b694bc19ed87ef9cdab37df608c5 lib/clerk/models/components/commercepricetransitionresponse.rbi: id: d20ea5c962a9 last_write_checksum: sha1:539b7491fefd090378842d98bedcfd64e63ac5b5 @@ -5281,6 +5297,158 @@ trackedFiles: id: 3077c8db0684 last_write_checksum: sha1:4fad60dda5be11525a4e4023eb84c6b45ee55511 pristine_git_object: a7737b0716e0ae20cab56cb1f2a7f5d9596c849f + lib/clerk/models/components/commercesubscriptionitem_2.rb: + id: 0db90a3e7bfd + last_write_checksum: sha1:83c4b02d02a88dbb7a2357fc3d95ec895290a69b + pristine_git_object: 6420c5dfc1c6375caa91ac6a142f7ae5b2ef785c + lib/clerk/models/components/commercesubscriptionitem_2.rbi: + id: 78f60f2aa866 + last_write_checksum: sha1:7ff03dc408d381cc6f7efed878d7197add2522b3 + pristine_git_object: b494c09655a49bf62d5ec3141b9d971936c29bb4 + lib/clerk/models/components/commercesubscriptionitem_2_amount.rb: + id: 8b0f90318dee + last_write_checksum: sha1:7e2e67547e12ca3baf7486c73e5245d8e346f252 + pristine_git_object: 87e9c8a4c6fb1bcb81fc5ca18740515c8be4e8e4 + lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi: + id: 92f33f3c79c5 + last_write_checksum: sha1:3a4e905b9922b69ec7e5a51d4905c5e9d45a54b3 + pristine_git_object: 4eef7b4bb27e8f654a075a4fbc1bdaf45d608e17 + lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rb: + id: 485576a9455e + last_write_checksum: sha1:fd061a1e474cf5a39b220e40e6d79539cad18444 + pristine_git_object: 1aef93effa2cbfc9a92e3bd365e9e54bd65484b5 + lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rbi: + id: 5501f3d61f9d + last_write_checksum: sha1:ccdd77a2a4196efe9902593bf7f8644392c23ee5 + pristine_git_object: 626d963bd6a318dd5bb51cf87d1af1a20628f6d0 + lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rb: + id: 275d4fd0b366 + last_write_checksum: sha1:389a5bdd0e58a48531abbbbf4109beb564a6aa56 + pristine_git_object: c2d13bb0bac21bc5cd098835dbbb5801ca25b700 + lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rbi: + id: 412a4d16db92 + last_write_checksum: sha1:235f10b852788b5d420b57911bb4e0919ec8eaf8 + pristine_git_object: 55d660193587cda6103e1449497135872922b84d + lib/clerk/models/components/commercesubscriptionitem_2_fee.rb: + id: 3496588a5176 + last_write_checksum: sha1:8d48c4e1ebf8ab27c6da107becf7396824e85260 + pristine_git_object: e0af78cb529717b7f52b0a03ac0b1dfddb8e3789 + lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi: + id: 83626adc4bfd + last_write_checksum: sha1:8ef4c73eaad7ce6e27449c7c57e61d44e42ffcf4 + pristine_git_object: b96bc7760e6929d87442950d75f5183881ae32b1 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rb: + id: 2d253d3fcc65 + last_write_checksum: sha1:17ebd57720ae7211569599e0350df51e656ca562 + pristine_git_object: 3c0cc1e251f3c73c721623d61c49b584166f0b7f + lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rbi: + id: 2d3b5372c648 + last_write_checksum: sha1:4bdde4ec3e8287b840c570f27414ee98f7212f1d + pristine_git_object: 457922c6a31d7c551f8813b5324c93a7d6a1c7a5 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rb: + id: c81983256a4f + last_write_checksum: sha1:20ade93edd594e1cf75efda664952976c6256e93 + pristine_git_object: 5b2d70d9941db6601ac0bcb1f6b15b150e7063aa + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi: + id: 0e18aeb358ce + last_write_checksum: sha1:b6c254df272ec52b47831810b7aca317fc90acb8 + pristine_git_object: 0c36500c52292b3e44e969d82c4cc7bc14f761a3 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rb: + id: a27eb490db8a + last_write_checksum: sha1:af852f7123495858a4a79133c4ee65141f6c3af8 + pristine_git_object: 1e813bfb938002d30f679d2cdca2a387e9e663c1 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rbi: + id: 378af4e0a157 + last_write_checksum: sha1:4fe4dc2cb78c746aeba82ba36cad12de6bab5a55 + pristine_git_object: 1e48ad691709d638d24081a63651f230bb1229fe + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rb: + id: f677730d760c + last_write_checksum: sha1:6d6eed2413af040637a61f6ab553429a55430013 + pristine_git_object: f07d1225b190b816966ad5f1dd94acdd325a2f20 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rbi: + id: 5bdb5df0877a + last_write_checksum: sha1:68e0491fe3dac6bf3c5d13da3d0f758e411fe709 + pristine_git_object: 6960ce4901b366ccfd90b2b55eb8634901de72c2 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rb: + id: ab382e000505 + last_write_checksum: sha1:b0e039e0db150d6dd8c49336287749561cd29ccf + pristine_git_object: a736e25d838f4cfe4c80ec40354b59ac99098edc + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rbi: + id: a0a262760a62 + last_write_checksum: sha1:f4b29aae93070fd604e06d46999c651a5e2d1f0a + pristine_git_object: 6ea0ca8fd5b998c19d9654d8e04355d322c9f0a1 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rb: + id: 1f3689d80c89 + last_write_checksum: sha1:fad033c853da535a811b19aa696355f0dd3ff977 + pristine_git_object: 2bb075f46ec971bef7a5df0a82a58573231e2d6a + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rbi: + id: f029f9024fa1 + last_write_checksum: sha1:7d489817390f0a44c71edca6d62af8e0863e8e75 + pristine_git_object: 497e522a6fedb38cfbf78bc78b91e337cf008cd5 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rb: + id: 370e8ac38a50 + last_write_checksum: sha1:7bb386e2aea99fe810727995634cd39336a4b260 + pristine_git_object: fe16b515efecca5e16ae67e40047dab7ccdadea6 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rbi: + id: bfe759b0bdbe + last_write_checksum: sha1:e0c7afdc8399f5b6f1e2fdef360ee211318b2230 + pristine_git_object: e8ec22e952ec3def4b276abdd61924b6ad782aab + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rb: + id: 05c158d84841 + last_write_checksum: sha1:91dc65c3d11f7ed5ecb04108121b31f82a1626ea + pristine_git_object: 8e2d8223446044358d6c28620d61b15f60814bc8 + lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rbi: + id: 7f00e18f7d07 + last_write_checksum: sha1:d1eb6781c8c96a4bd3962106943882cf794606c2 + pristine_git_object: 57b70adb738710b1111b3365dd5cc7636813c6d2 + lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rb: + id: 20e771a5b10c + last_write_checksum: sha1:f3409653117d7d4309709a1a302e7f82142a0b64 + pristine_git_object: c52aae4a32e489c9cae059f37b90ca6a9a0074df + lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi: + id: 2efe1e69047b + last_write_checksum: sha1:3910f1fa1c4679aafeb6e7892d8306a40da7dcad + pristine_git_object: d4f547f544a974b28b800ce471e3b32e973bf901 + lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rb: + id: 16ee8e62d56b + last_write_checksum: sha1:007f34d5818a1c90044b99ca8dbc0961e644b5dc + pristine_git_object: bec11987724734969a43930bc96e8fff81f19f5d + lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi: + id: 0175bb0fb729 + last_write_checksum: sha1:21027cd5b1a074faa031365053ee6c59f78d22d4 + pristine_git_object: 063d85a62fed584b4a284eb9827b5b80a7694d2c + lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rb: + id: 7d9844797db7 + last_write_checksum: sha1:40e46b917bba0453dcad16df782707b449d8bdb0 + pristine_git_object: ca1fbb093d6e93ab6dd8d371776223f96913a9b4 + lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi: + id: a44fe9b53565 + last_write_checksum: sha1:7b943f5d9d818e98812f4ca09da4b2e6ef707c09 + pristine_git_object: 1ff1c357a802e3273e3d1e39cb622d6f038327a6 + lib/clerk/models/components/commercesubscriptionitem_2_plan.rb: + id: 923c48fff2fe + last_write_checksum: sha1:b4343ca821c2c59b8e4683dc0ebbe1e4ee28f34f + pristine_git_object: f5ba12f1a3e7c91c0180ce089176ab42291f2ffc + lib/clerk/models/components/commercesubscriptionitem_2_plan.rbi: + id: d766fc646c4b + last_write_checksum: sha1:1c29aba6b591fe8035ca8832380eed17fca04200 + pristine_git_object: ca53f172ddeca0557bf2a49b1e124cc91f58f851 + lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rb: + id: 0ec25fec97ff + last_write_checksum: sha1:12a99f24f98f41db9c1d037acfb579d38f93f793 + pristine_git_object: 078e0a78dde476ab56285c2b3b5a2d2d21756c36 + lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi: + id: 3e5a41f39ebd + last_write_checksum: sha1:a1c092df4b65b0db892fa13c0654f59f58dc5afb + pristine_git_object: 29892ee8ec45f754b707d047a274f72975b99fd4 + lib/clerk/models/components/commercesubscriptionitem_2_status.rb: + id: e23777ac2a5b + last_write_checksum: sha1:e847b86a8a9bbce5960e3446f79838851a107449 + pristine_git_object: 3919a51f25683b26f6695321db35be0d6cc296f9 + lib/clerk/models/components/commercesubscriptionitem_2_status.rbi: + id: 37b116c2554a + last_write_checksum: sha1:a9a5a138b662a62a496af452b05ff9f6b7307cc1 + pristine_git_object: 406ffd06aadbafc83adf3fc906b49d571b451c1f lib/clerk/models/components/commercesubscriptionitem_amount.rb: id: 070e36c63aaa last_write_checksum: sha1:3d9ba5390feea4540544059549837a195e28cb07 @@ -5451,8 +5619,8 @@ trackedFiles: pristine_git_object: 2591f6913d4cbeb3a99072da40028005a815e3a4 lib/clerk/models/components/commercesubscriptionitem_totals.rb: id: 20cfdbe63780 - last_write_checksum: sha1:a7dcf17d2439e1481a46ac9037e4f8d0837f693b - pristine_git_object: 9b3bf1f760a10a644309a31ac6bb437713504d24 + last_write_checksum: sha1:3f026e9d26ce16e726b83e4215c88cffe930ac25 + pristine_git_object: 3f63155f5fd6027795ac5c3b47d0604c2d2f036f lib/clerk/models/components/commercesubscriptionitem_totals.rbi: id: 4c75af79cbf5 last_write_checksum: sha1:df7755632cdd94138e45932dc534cd75045bf50b @@ -5483,8 +5651,8 @@ trackedFiles: pristine_git_object: 374ba150b0944719924b5eb1a2ba270fe3aae26e lib/clerk/models/components/commercesubscriptionnextpayment.rb: id: b6c8fca93843 - last_write_checksum: sha1:c74e135b96edd0bfe36958fe506f9e88e8a1ddb4 - pristine_git_object: 0ec21c87491b8c9836a6361434f70a859fd60c37 + last_write_checksum: sha1:2ca56bcdce3446797e1fca14db8abee4108bad3e + pristine_git_object: 78b3be7a425f351a2e9ae8d73b27514493c7e561 lib/clerk/models/components/commercesubscriptionnextpayment.rbi: id: 85a1eda2c276 last_write_checksum: sha1:9aa829ca32ea3928a2270be543dd8cc95f9db8a4 @@ -5531,8 +5699,8 @@ trackedFiles: pristine_git_object: 36465b7254c4dcb49ef3618d58cb2064ce263318 lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb: id: 4e74add19b53 - last_write_checksum: sha1:30261ab164120807d7cc6050b413f97f42778ffa - pristine_git_object: 628d6cf8fd7d39c9baa59e5a0d61fbdf44602e1f + last_write_checksum: sha1:83f24bf97aac7078a8fb37424098d6e8a6e28004 + pristine_git_object: bfdb3df594c0add4a5a8f07e61f58cb416f34e8f lib/clerk/models/components/commercesubscriptionnextpayment_totals.rbi: id: a01f1ef3caae last_write_checksum: sha1:3f50eaabc7d4b1a883502eae31f46f427d3d2edd @@ -5771,8 +5939,8 @@ trackedFiles: pristine_git_object: f28a81ba76148b740fdc0ee2b1ca583d26e9ba4d lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb: id: 1ae5d1f3d864 - last_write_checksum: sha1:ddf4983a099c64ccc3e3ced94b697c79323c35b9 - pristine_git_object: 20c3e80935d22fd2fc68f5f385d7815e2e3006bd + last_write_checksum: sha1:29990816538599c77e75378d6be65dd79fb1043c + pristine_git_object: 432e709d737008435136dddb845d3a48bbde160a lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rbi: id: f50487a08826 last_write_checksum: sha1:86b9bb6a6eb6265641f1f3ee1127cb7f7b200a11 @@ -5785,14 +5953,6 @@ trackedFiles: id: b7f1730fcb55 last_write_checksum: sha1:4a6c5c4f63390a0702922ec3a81e27f3eae7f600 pristine_git_object: 87206b00ccd4bc081819499d99404882167586be - lib/clerk/models/components/emailaddress_verification_saml_meta.rb: - id: cf5c70eb9e46 - last_write_checksum: sha1:7d3f013200a9fafd15435a5bdac1b037fe8d66b9 - pristine_git_object: 3598e897e7ad0e22fab7a1a3efedd22d003358eb - lib/clerk/models/components/emailaddress_verification_saml_meta.rbi: - id: 1b7ae1ef9e7b - last_write_checksum: sha1:e5719fed20abe4c71ccba090b04a64dcd7f8069a - pristine_git_object: cb5bc856a5e25e1a2649dd2889ce2b123b34171c lib/clerk/models/components/emailaddress_verification_saml_object.rb: id: 80d56b7547a7 last_write_checksum: sha1:e6a3b4dd0675f24b65589c671d452e07b4bea9a8 @@ -5851,8 +6011,8 @@ trackedFiles: pristine_git_object: 5e629b4975db231dd5a4b17346b6d7d6b9246e43 lib/clerk/models/components/enrollment_mode.rb: id: 403ce5db39b3 - last_write_checksum: sha1:f07b4f8b025b4ca11ae0dffbb2075525921cb8d0 - pristine_git_object: e0da55a5ab476ac15a51031758ad03e81ccffd8f + last_write_checksum: sha1:990e0a552d2945037f52f3052c93ca437a674f58 + pristine_git_object: 03d53c9fefe230c59e93a7ea76abf55ca91a04db lib/clerk/models/components/enrollment_mode.rbi: id: 8e0890b0ffca last_write_checksum: sha1:1788869e589ad18ffd16a6009b799a18f5c59d64 @@ -5915,8 +6075,8 @@ trackedFiles: pristine_git_object: 63aef8b04e72661c5547e07b450a4196cc847f77 lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb: id: 4b3e4cc9a905 - last_write_checksum: sha1:796c985fba8b1416b0feb4f2742d56d5ec64d659 - pristine_git_object: fea5b49e8714101d07c8dd3ca40032dd6d0998f3 + last_write_checksum: sha1:7273e245d335a3d7747548eb7da74ff1d2d107a8 + pristine_git_object: 51830aa1e5730a8a9a3aa9005115ce70b06a0574 lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rbi: id: 10c9333fc5ec last_write_checksum: sha1:250d5e1968faf197c7e38a8cbc49a5d3ba0c3360 @@ -5929,14 +6089,6 @@ trackedFiles: id: 0333f81c2b9e last_write_checksum: sha1:de9b96d73c28352843c1b0df41f4da9e3da4784c pristine_git_object: 38393d205053dc039279a7d943ce9d3b3f44d6e5 - lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb: - id: 6ff56957e155 - last_write_checksum: sha1:4b1b1dab53e4b9ea94442e42d8d009537ac55e74 - pristine_git_object: 37fa6f09a12fce5c33012045946c5c39dfcff0bb - lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi: - id: c53f3986cc18 - last_write_checksum: sha1:dcb2f3680f17c3a88131e7cb1b705ae9665952fa - pristine_git_object: 12b0e40eed57a96e8c9b52fa08568bbeeb54c888 lib/clerk/models/components/enterpriseaccount_verification_oauth_object.rb: id: 3528f1bc3961 last_write_checksum: sha1:d4c8b8c2690774ed0f210b54c2e8272b37c10140 @@ -5955,8 +6107,8 @@ trackedFiles: pristine_git_object: fda41a5eefe909fb5ee6656f52a0ab2a04e57e74 lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb: id: 03ef5df21852 - last_write_checksum: sha1:2b749f5c4762e9fd2bf69ca3049513dea20b688d - pristine_git_object: f9b0fa9288de65957a1f1b724c79d05180c5260f + last_write_checksum: sha1:b18cb8b2d307cd040d53f7c2f9c2a0af017b561a + pristine_git_object: c5961f57966956028e36dcda50d02bfd0b74451a lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rbi: id: dd4d02ade992 last_write_checksum: sha1:a5c8558b9228a24c2e5e2c87efcbbec9e0a5954a @@ -5969,14 +6121,6 @@ trackedFiles: id: 6ef3a94cfeef last_write_checksum: sha1:deca788412e9a2987fed40d861c10e0299b6c0f5 pristine_git_object: 7affd37438afc5a95cabd0d97100dadda07eba91 - lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb: - id: 140c6d670c3b - last_write_checksum: sha1:84c80299724600e494f366c7641688efe9f9b13e - pristine_git_object: 3e34fa68c698256fb8f11270b2b2e7aa721371a3 - lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi: - id: "294845293746" - last_write_checksum: sha1:11ba33c6733141b8c85cf05d1b0a209f3228e9db - pristine_git_object: e01d884d675fa6d12d19385bcef416b5905fda4b lib/clerk/models/components/enterpriseaccount_verification_saml_object.rb: id: 1871051a4e60 last_write_checksum: sha1:588ae90faf1bedb1cc640991b0b3480f3a1fa1ec @@ -6163,8 +6307,8 @@ trackedFiles: pristine_git_object: 320af1f187a61ddfda0a2c4d8b51a45d84368a4c lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb: id: eaf0c39d6e54 - last_write_checksum: sha1:0920b2e73019f5e75783d5b05de35c6554a5112c - pristine_git_object: 4bfb7dc77e6e3d513eeef39764547ca7f26915d3 + last_write_checksum: sha1:fbd7ea3e631c04048b60bb4da9b04c138d4311a3 + pristine_git_object: 1f071840959b53cf556b4f8509e509900717f59a lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rbi: id: 78269410bf99 last_write_checksum: sha1:52fa71e0070ed29bd415a478df6e51781a5e3408 @@ -6177,14 +6321,6 @@ trackedFiles: id: a5b94af655bc last_write_checksum: sha1:4ca130eca6e491569c0d193aa9fb211c3e273650 pristine_git_object: 50838c24a5e611fbf08a1bf9a89b875a818b4c99 - lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb: - id: 5c3e9080b544 - last_write_checksum: sha1:022017a7f45db93488001c761f888aa474e03b33 - pristine_git_object: 9ffd17980bd6f005cdc6c7da46ebdc29470a1444 - lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi: - id: 25c5534e5373 - last_write_checksum: sha1:2fab728c479f6e0661e7db18f27f2196635cce55 - pristine_git_object: 29e305cec5ca3e5be909f2b8e3495647a7bae5e7 lib/clerk/models/components/externalaccountwithverification_verification_oauth_object.rb: id: b72c29eaaf23 last_write_checksum: sha1:8fa7f2f9c8dee55e900a4b5f1fef715703fbdee8 @@ -6209,6 +6345,22 @@ trackedFiles: id: 0efbbd50bfed last_write_checksum: sha1:7e06cccbe041e6eb572c0392479918cc09ddabc8 pristine_git_object: 8b0721d936a9a9f23c5a5f3b5f0ad9256ef0eb03 + lib/clerk/models/components/featureresponse_2.rb: + id: 2edca622e1d9 + last_write_checksum: sha1:78d0b12d691167d4633211387ed62b578b54e37b + pristine_git_object: 559f59bf6727fbb44f7ceeaafb92cfa73a2e8489 + lib/clerk/models/components/featureresponse_2.rbi: + id: 328becff9a81 + last_write_checksum: sha1:e42c3744fe67d3e0c94f1c4bae6dd09e41913c65 + pristine_git_object: 6eff11254543c1e16ef456b1702427ba8d711cb5 + lib/clerk/models/components/featureresponse_2_object.rb: + id: a8a94ed972a1 + last_write_checksum: sha1:1d8261fdfea609ce54139406a8e58706bb1c0199 + pristine_git_object: 62f43fc626ce97146e9a76f7fbc4ed1b6bc4fa14 + lib/clerk/models/components/featureresponse_2_object.rbi: + id: f4ad421e4a71 + last_write_checksum: sha1:2bc5584afc3ce68bd607c2bca38133c501f03f1b + pristine_git_object: 7998634fc971379610dcb12b2352d85811c3b7e4 lib/clerk/models/components/featureresponse_object.rb: id: 6b1bdecc3ef4 last_write_checksum: sha1:5ad77b1b17d7c6935700a5f4f968e4c523d59e48 @@ -7027,8 +7179,8 @@ trackedFiles: pristine_git_object: d02957792be349c862523bda053eddaa8d77a9b2 lib/clerk/models/components/payer_commercepayer.rb: id: 59a8a8921e65 - last_write_checksum: sha1:d6b43daff23f57b4a60a1822a26f629693ba9075 - pristine_git_object: fd8291821394e08131d02f624c4e43d936435eec + last_write_checksum: sha1:7e920a92837ef1822ece06067666f574090bf2a1 + pristine_git_object: 3e0d243c1bb93831cb43500466c5066a44c48efc lib/clerk/models/components/payer_commercepayer.rbi: id: cc3e52c87f87 last_write_checksum: sha1:c4c14bf3e7a1629d483011bdfcc29ab1fb3d2d58 @@ -7323,8 +7475,8 @@ trackedFiles: pristine_git_object: b3e77f4d74782105bb0539f87b8e43b4ad559c66 lib/clerk/models/components/samlaccount_clerkerror.rb: id: 690544eac3db - last_write_checksum: sha1:1db643528e126273add280cf24596e86ed186cd4 - pristine_git_object: 8df93db93ed36f6f908675114796e48ea1a79295 + last_write_checksum: sha1:c254282843afd4d8a74f3cc9f31154648c5982df + pristine_git_object: 57f9f847805f1830f5e86265b535a4cc585f5487 lib/clerk/models/components/samlaccount_clerkerror.rbi: id: 69324b5e7f70 last_write_checksum: sha1:3519b88a8ff219afffab1fced454e97e5e44e59c @@ -7337,14 +7489,6 @@ trackedFiles: id: 1927bd3b7ca8 last_write_checksum: sha1:13e3e5d7793cc2d79241143a032307b8c331b3a3 pristine_git_object: b8677d34daacef5eb00826881e88e0a4779b2573 - lib/clerk/models/components/samlaccount_meta.rb: - id: ac797fca9203 - last_write_checksum: sha1:db91bab9d50ad831fe7f6ca3f0a3c653f4b42da5 - pristine_git_object: 6aa8c25050a206fa56ee90f025b8a0dd2e76f751 - lib/clerk/models/components/samlaccount_meta.rbi: - id: 1e50f90fe605 - last_write_checksum: sha1:6f7a48ebc1e9acb38819d29d1132fe7844d6b704 - pristine_git_object: 66486b2ef779968170dd7142c010c37b882eb131 lib/clerk/models/components/samlaccount_object.rb: id: 19fc8bf8ca1b last_write_checksum: sha1:fd40837ff5fa386f6fd1b6974cd70c16aecd12b9 @@ -7459,20 +7603,20 @@ trackedFiles: pristine_git_object: c32397951451e10d599d7ce2dca1b8f52e8dbc56 lib/clerk/models/components/samlconnection_1.rb: id: 7a6e7ad2e800 - last_write_checksum: sha1:5ba2cb37632ecdcef24c8cb6c4a03a14ea7853ce - pristine_git_object: c02dc423b15d2d0d550be9064c38d64b04cd838a + last_write_checksum: sha1:a44ccdcae651475759fd9b51acac0e1040bf29da + pristine_git_object: 3a3312aa8c966dec56169e3efa46fc898bb379f5 lib/clerk/models/components/samlconnection_1.rbi: id: f64a4999604b - last_write_checksum: sha1:80c55ddd170b876783b7e103bb8e1db770fd2f14 - pristine_git_object: df107328a0f89cc90157d4be641faf95b9a28c28 + last_write_checksum: sha1:4d2fa9cd76f9207bb8af93b97ef6ee67df21a097 + pristine_git_object: 043df41952506cb51c1432deedef6122d6009ab3 lib/clerk/models/components/samlconnection_2.rb: id: 0c20a740a475 - last_write_checksum: sha1:aabceae697291ab884e7ae7c4e86536ad0885ef3 - pristine_git_object: b057b2eb7a30b26c11f210221ca3646f6d905864 + last_write_checksum: sha1:b5ff1ead805e2def2314f643ba7d646336a78be1 + pristine_git_object: 984c9f835d0ebc02f3b506a7377b35a22afecbaa lib/clerk/models/components/samlconnection_2.rbi: id: c9ba2e96bc5d - last_write_checksum: sha1:5e7cb82a8745561dc3d54b7bcd6270678092ae2a - pristine_git_object: b9e1c1302e6732c1b344accde53afdbbae831da9 + last_write_checksum: sha1:50edc84eec37b0d7546a50c965b884c7c01958fa + pristine_git_object: 9d9b2301c287d57c4668bae5783bd1a8c0b6ff74 lib/clerk/models/components/samlconnection_object_1.rb: id: ce125e054e8b last_write_checksum: sha1:346f518b442c6204b6543ba03bc442ebd983bad2 @@ -7513,234 +7657,10 @@ trackedFiles: id: f56677df3810 last_write_checksum: sha1:b701623e3ee6c9c261b3e4f82341bc9cc0d5731c pristine_git_object: 9ba8e7502330bdffeae59033b6223029667f999b - lib/clerk/models/components/schemas_commerceperunittotal.rb: - id: 589c6b370cb9 - last_write_checksum: sha1:be1a0525dc4527c2ce1f6d23ef54f8e40918a88d - pristine_git_object: 554feeb67b91c5780115214a8069c5487109fbdd - lib/clerk/models/components/schemas_commerceperunittotal.rbi: - id: 193dee1a9aee - last_write_checksum: sha1:800f89b8ac8a47a9f4f060c566a6fba37261032f - pristine_git_object: 62000acfb4613728d44483f56a423175026a188c - lib/clerk/models/components/schemas_commerceperunittotaltier.rb: - id: bac44c96e012 - last_write_checksum: sha1:242b52c1ce3c01277d4a0de7fe4d4f1f5905cca9 - pristine_git_object: 37b2beb06f68370e35e18ea3b48d50bc6705286b - lib/clerk/models/components/schemas_commerceperunittotaltier.rbi: - id: 62bce225e3da - last_write_checksum: sha1:55b27044e9082499900b429ff7eae6226ac94241 - pristine_git_object: 375708bc6f66d6dc6d572f9bcc1ba53381cd03ea - lib/clerk/models/components/schemas_commerceplan.rb: - id: 7f2d0ce56ac7 - last_write_checksum: sha1:89082942355609077706bf3255255a6dce87606f - pristine_git_object: cd91d675acb618876c964dafdf08e920b83a511d - lib/clerk/models/components/schemas_commerceplan.rbi: - id: 1e371c5a8a25 - last_write_checksum: sha1:db10faf5320efbaa664cd2580e8714a7b12786d9 - pristine_git_object: 66c2bf84964217333e2ac138ebe7940250be4eb3 - lib/clerk/models/components/schemas_commerceplan_annual_fee.rb: - id: f5922503019f - last_write_checksum: sha1:e328c5ccb9f4f41f69f93310c90e619effad4d9d - pristine_git_object: a05d0d29c7968e040ba563343e156ddd46d8e836 - lib/clerk/models/components/schemas_commerceplan_annual_fee.rbi: - id: f35af6fac91b - last_write_checksum: sha1:534aa8cf2f9df9b4120a4c0714c2ae82f6e0c296 - pristine_git_object: d4e0c61d95924278743f4a77251d3ba197b82ff1 - lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rb: - id: a000cc6a3c01 - last_write_checksum: sha1:322c56d1eff73082cdbde64a510fc7f3c36de31a - pristine_git_object: 4b096f7dbfb2c315ee72226552c64e86cff9e83b - lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rbi: - id: 19209aef293d - last_write_checksum: sha1:637bf3eba2f838e2d13e3fc25659d9ea8deecf28 - pristine_git_object: 417db98115962e4109e25710f5d6bec95823aace - lib/clerk/models/components/schemas_commerceplan_fee.rb: - id: da778111161a - last_write_checksum: sha1:60a6a554a0e0e4b067509597e01b6b3a148c5ec1 - pristine_git_object: ade6d6eb5ce2e337f6d599120b1c5a001c72cc8d - lib/clerk/models/components/schemas_commerceplan_fee.rbi: - id: d7df2e1ece8c - last_write_checksum: sha1:ffc3530c669cf05c56bf19aaf294ff708aeefa3f - pristine_git_object: a8b3dcc792c944ec787c04bc93e3d9de0994d257 - lib/clerk/models/components/schemas_commerceplan_object.rb: - id: 463cb6ff5599 - last_write_checksum: sha1:96e9224b3f4b64d63fb080d0d6ab85ebd308439d - pristine_git_object: 4b6f4dc3248ef6cf52b14540925a0e3677a96639 - lib/clerk/models/components/schemas_commerceplan_object.rbi: - id: 82c8420367a5 - last_write_checksum: sha1:765439ec055f0a6336d09e0453edad94fd55f744 - pristine_git_object: 956cf449e195d6682589e4509dd666d89b77094c - lib/clerk/models/components/schemas_commercesubscriptionitem.rb: - id: 0b5d97ba26d3 - last_write_checksum: sha1:46a236851878effb28502e04de47bfa552544060 - pristine_git_object: 568e32d2cf6d6f6fa7a92f1d3bf8ef273440011c - lib/clerk/models/components/schemas_commercesubscriptionitem.rbi: - id: 500d2e09dae8 - last_write_checksum: sha1:d9878874fcf2e2876495485ec927a7c775e43b4f - pristine_git_object: 58eaa79bc6ebf02cd761ca9e7f26073dd5f936bc - lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rb: - id: f6eb273c207c - last_write_checksum: sha1:26e5be01e73d46c6940fe4dfb714b75f7226f9f4 - pristine_git_object: da519ef96accb7cbefe8c7b0529864be42df992d - lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rbi: - id: de388920ee5b - last_write_checksum: sha1:326fefc0cc2d522a3072116ce51be63bf6a26460 - pristine_git_object: 46fd253e25e8219a4937928841dc2c7d0d1b880a - lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rb: - id: 4662cb3cc8cb - last_write_checksum: sha1:a239c6a5791a381572c7db38e5b8f760ddb3af98 - pristine_git_object: dd099a559353a4256e549857f59c3f2dbdb3da76 - lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi: - id: c39c8409c99b - last_write_checksum: sha1:04e9fe7926391fc462e5c6fba9062a3270afb4c2 - pristine_git_object: 0e68edfba44177488fabcb2b8fad7456494c6764 - lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb: - id: f0d9b0c463e5 - last_write_checksum: sha1:5f30df686e9bc040dbda1cd632d8c353638dce14 - pristine_git_object: 5a35f04ba88dea4277e8eb69654e4b88bf195eda - lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi: - id: e2512f21f7df - last_write_checksum: sha1:02ab29947cfff1501668897d27a50753ece8f31e - pristine_git_object: 9147fe26a90763a12483791237a39b80ff9fb2a0 - lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rb: - id: 44cd0b5fa20e - last_write_checksum: sha1:36f3d0cf020f7dd0b812920b530e91e27448cac0 - pristine_git_object: 68d63b27f177881bee7aeb4cef7ae7a3bab107b7 - lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rbi: - id: 0698458327c4 - last_write_checksum: sha1:8630391c297d0e7ecbdba37bc6e7735221db3d7c - pristine_git_object: 1a414291e16ccf95296018c53b3613a7b4ac8d57 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rb: - id: 148ff0a2f78c - last_write_checksum: sha1:c01d9a974350bdf897a6f58b3ccb04487c35f7f5 - pristine_git_object: 039390466dc5f72b49af2e70464dff26f53f460e - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rbi: - id: 10d78e5aff79 - last_write_checksum: sha1:ca6972f6471cb3a447fb5f42187d4402f0a80602 - pristine_git_object: bea6f0fe2324633450e33de408e21d62b77d7fea - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rb: - id: 4df349abe4be - last_write_checksum: sha1:52b900205ad186f38c51466632a7cd0f431c6826 - pristine_git_object: c81bc33bc4967de9f219c98c1e78cdf09832722b - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi: - id: cb82760fc9aa - last_write_checksum: sha1:f8ee09e5b34c427eaf994bb46cbd73f30af2cfd9 - pristine_git_object: 06d53c1345b3744431f8bfe698eed1b5eef23003 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rb: - id: 4ab2b91f1e3b - last_write_checksum: sha1:90e528130e0ad7a8bb158e07e69c6c0e6ae4d59d - pristine_git_object: b1a82a3f36748172c4c6121cdd2d616d3a23a58c - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rbi: - id: 2fdbfa5cfda0 - last_write_checksum: sha1:9719c93351fea0e147bbdababfde5714c7c3e404 - pristine_git_object: 399583e48ba2a884250d8a38ce5cbd1de3de2ccc - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rb: - id: 0ead94052cc2 - last_write_checksum: sha1:fee3accd1b25b0cfa8fe200d4025d39f17124d72 - pristine_git_object: e2ca91de728579787679d31c6410f06268a99607 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rbi: - id: f47f6a27d758 - last_write_checksum: sha1:0129640bc73d87a3b4487359716d29447eedea17 - pristine_git_object: 003cb0eee182a0e93f7acf218925a991d594285d - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rb: - id: ad70815a70e3 - last_write_checksum: sha1:81a714bacad81556ee65e8c9cf641029fbcae47c - pristine_git_object: 942fb5817bdec6d8a09c339e64c2d28a80a7f726 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rbi: - id: 602e3dedf3ce - last_write_checksum: sha1:288f07e0a1cce877d46989a022adcad3e5683ef8 - pristine_git_object: 1c9a2baff3ed55fa9cc95c78167b4e508362dd33 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rb: - id: 7cebfd3cde43 - last_write_checksum: sha1:ee990dfb6df3e4b6c79e4e0a2450a066fa38d201 - pristine_git_object: c9372123ba04921984e448658bae2ddb81338085 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi: - id: b861612ade1d - last_write_checksum: sha1:84be8e6d51fed5da6b32d7de4c652e693be2513e - pristine_git_object: 9214f71d7b1cd6b7c27bb6a2c1129ab37a0e4e29 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rb: - id: 930f48257948 - last_write_checksum: sha1:004448df9c87db06fb2c209bcfaadb708a81bac8 - pristine_git_object: 11ba4e846a0f9975dc27be47353b3b75b4342887 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rbi: - id: beda3d82cdec - last_write_checksum: sha1:149893ae509d167c25f15193dd88ffb9aa61c223 - pristine_git_object: 5865bd6abb93f88f5d4d8ada3c799de911670f48 - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rb: - id: 3fbc3dd7e02c - last_write_checksum: sha1:65b803013cf4ae4b4a94eba5ee301ac1faeacf2d - pristine_git_object: 50fdf15e840e3e4c7fd7cdd0b743f8c6e98be4be - lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rbi: - id: 5d12cea80a16 - last_write_checksum: sha1:84b5e0ffec59b2670b7d59a588c56a3823d694d1 - pristine_git_object: c833607869a75584fe948acb7085219e00ba575b - lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rb: - id: c0117874984a - last_write_checksum: sha1:20fdcca30f2f55308063368366e213c6d69c94ea - pristine_git_object: e58ea8d46176bd63e9ce59259eff2625b50d7704 - lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi: - id: 72b73de1d675 - last_write_checksum: sha1:b19473794227388e4b1127b7c5fd5954ea9edd54 - pristine_git_object: 4d8d79c5bbc048340b8ea760353a344631996f0c - lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rb: - id: 87af490e57ea - last_write_checksum: sha1:28f1716118f0fa173ff3f20c15afc57f36aaebbe - pristine_git_object: 463053ab114811868add2a7b6132f74876204f0a - lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi: - id: 92159f16973c - last_write_checksum: sha1:a8ced1d7d301b8e80739e443bf82a0b01d08e4d4 - pristine_git_object: add4a2d0786ad535702bf4275e3d1593bea943c5 - lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb: - id: 9e6b65e0d8f7 - last_write_checksum: sha1:feb1e922d378516db563998de49e36dd18db2cc0 - pristine_git_object: b77049e2c34a32810eebd65a6b2629a32a9ac604 - lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi: - id: 6ab17501e955 - last_write_checksum: sha1:a41843c282925415c03d4b433befd57541fd80c6 - pristine_git_object: 83bdbc190d948f836c2c32cfc9aa7372706b947f - lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rb: - id: 97badf99174e - last_write_checksum: sha1:de2e70997b76253dd5b37a1e4d8599e6da8686d0 - pristine_git_object: b4cebb52f374e8f02dce2affc8d6af7806657a38 - lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rbi: - id: d4ba18d46c09 - last_write_checksum: sha1:d05bf9df5939b995bb18464ba9d01c1b669ca082 - pristine_git_object: 8327e900ec0f660ac657ecac1a84eee85615b1ba - lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rb: - id: e31c5247e7dd - last_write_checksum: sha1:06fec1a0a28462565a218ccd4f82fa5883285d89 - pristine_git_object: ae141f401ab1ca43af431189263845c7b2a6849c - lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi: - id: ec09f0c6c9ef - last_write_checksum: sha1:450e7a5eababb150b7a027b90638e226d1852f85 - pristine_git_object: 17028ada34a74efc03b65a2674f68fcf7ddc3789 - lib/clerk/models/components/schemas_commercesubscriptionitem_status.rb: - id: 44da83f87b64 - last_write_checksum: sha1:88f0cc2f0d4cb7e62e1b69cbdc20fb03845ff5a3 - pristine_git_object: 02d653383335b8060844862d32888819b58e31c8 - lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi: - id: db477f592380 - last_write_checksum: sha1:bf2b9571c0d18c6d8faefc210346ed9838e1883b - pristine_git_object: 2b1db9008c93dec55d0ce5f845d5350be136c53a - lib/clerk/models/components/schemas_featureresponse.rb: - id: bcf5d10644ed - last_write_checksum: sha1:4329eccb3887846ac4072b4e905c0a3396f81906 - pristine_git_object: e5ec5b251a7b79e5650ac0b63d44fe5b0bd01819 - lib/clerk/models/components/schemas_featureresponse.rbi: - id: a45e59337329 - last_write_checksum: sha1:e800d615acc3a7ed95b7508d7a7ad68ef48e53b0 - pristine_git_object: d7634594442551676b9fb3d84c4e6bb8cdefda9e - lib/clerk/models/components/schemas_featureresponse_object.rb: - id: cbe9a9ebdae2 - last_write_checksum: sha1:7d780a651977260b14414ca035f107f87e96749b - pristine_git_object: 5a582b5e666191ef3af09b54a0af31d52bcb2b71 - lib/clerk/models/components/schemas_featureresponse_object.rbi: - id: 363d6be575f6 - last_write_checksum: sha1:0821b4bf17033635cb614d7a6023de7f1591501f - pristine_git_object: d7c359d9a5c4fafecc5a12e7868025999fa26f43 lib/clerk/models/components/seats.rb: id: 3a2ad80ef581 - last_write_checksum: sha1:56e62123e6d4f8a326c3ab0312a72914e7349ea6 - pristine_git_object: 4bb63537118c5ccdd0c3627d058f59a05808d6be + last_write_checksum: sha1:147863cc88f384c71caeb686c1d023b9879b01d6 + pristine_git_object: 31c64bec88bb8db1b7e341a3e8ecfcc08e49ef45 lib/clerk/models/components/seats.rbi: id: 53b2482a197b last_write_checksum: sha1:c3b96aef96341e70ebed8ec4cb3833e678d70523 @@ -8043,8 +7963,8 @@ trackedFiles: pristine_git_object: b9f258ff0d53123f483a49275975f0c94582d125 lib/clerk/models/components/verification_from_oauth_clerkerror.rb: id: 682e7651c5dc - last_write_checksum: sha1:11cd3c0fec83663867c11553a8f65c712db2cd44 - pristine_git_object: 15dfb7d81a1848289303bd2c7295daba0971753d + last_write_checksum: sha1:7c6d15a56d8b018933420095cba9a1bb61bb6a88 + pristine_git_object: e0ef18ca1f222c1e335b0abe6baf8cc00cc27a81 lib/clerk/models/components/verification_from_oauth_clerkerror.rbi: id: a8088a654b3e last_write_checksum: sha1:201b01caa4f2ea4cd41efb406938c93587fc47ce @@ -8057,14 +7977,6 @@ trackedFiles: id: bd388034d219 last_write_checksum: sha1:e4461c82359a7e81e8a9afa60c7b60dd7e616224 pristine_git_object: 2bb5e8fa7a9e44bd33befd6d361bd8e3ce66f40a - lib/clerk/models/components/verification_from_oauth_meta.rb: - id: f8ea470a625e - last_write_checksum: sha1:0fb1b0a2e7cbd8d0c715f7f1573d33ce2667a70c - pristine_git_object: 30ea2e18fbffc0c4ab843fd54009800043ebc2a4 - lib/clerk/models/components/verification_from_oauth_meta.rbi: - id: dd3767b75b85 - last_write_checksum: sha1:0fbc1886a45e4b5aa5136183a0ef865db1454204 - pristine_git_object: 86be171b23b55e42ef28efbbf40519b6564729b6 lib/clerk/models/components/verification_from_oauth_object.rb: id: 2a19859a3032 last_write_checksum: sha1:3f778a1a002d1715d7ab6c2f80aaf43e5160936d @@ -8083,8 +7995,8 @@ trackedFiles: pristine_git_object: ff51134fff2ae50dcefabc375af7d128c8ef9ba1 lib/clerk/models/components/verification_google_one_tap_clerkerror.rb: id: 9545f4f3d286 - last_write_checksum: sha1:439495b9c2f46415b473475251caeef9bd89ddb9 - pristine_git_object: 4cdc6555c7ed6692244be87d550b257a6c3fc737 + last_write_checksum: sha1:d52e8951dde1ff17bdcc8a378fc992e842b6c98b + pristine_git_object: 86afdbbd0537959fbbb65a6acf29887abab581b6 lib/clerk/models/components/verification_google_one_tap_clerkerror.rbi: id: 3d1845023200 last_write_checksum: sha1:997e35a38765114af0c2c8d2508446f57cafe82f @@ -8097,14 +8009,6 @@ trackedFiles: id: 585f1ce31830 last_write_checksum: sha1:4fd9d76f29dae1b4b5a37875281bf2b6453e11e0 pristine_git_object: 376f4866169fd3ed2d4f6895834f140cd3eb452b - lib/clerk/models/components/verification_google_one_tap_meta.rb: - id: f9cc2e7840c4 - last_write_checksum: sha1:2ca17a006648479dc2c89d3791ada014cdc5d24a - pristine_git_object: f5a3006deb07038708a97de45c15e9e3b139c689 - lib/clerk/models/components/verification_google_one_tap_meta.rbi: - id: 94353a5d3894 - last_write_checksum: sha1:c1493aa8300ce33bb805805b90536043bd8bbd2d - pristine_git_object: 8c570a950db98a21a94226f357e4e9d3c7e133bd lib/clerk/models/components/verification_google_one_tap_object.rb: id: 64c511975414 last_write_checksum: sha1:82b7dd7d0e30130d4d813e268466697e2284894e @@ -8351,8 +8255,8 @@ trackedFiles: pristine_git_object: 68a54afdf4dc49502cf3803ae9803ec4ec8eb858 lib/clerk/models/errors/clerkerrors.rb: id: febd7c63ab5a - last_write_checksum: sha1:96c46acb5006c8156b77b477d7c2d84f37f42936 - pristine_git_object: 8fe43487ac0b3c8b4a37b9707393aa1f2a7a63c5 + last_write_checksum: sha1:b9ac151ecaecd7e620e2fa3d44a439dc2f0cacc0 + pristine_git_object: 0c2c680e6a2ac9d2f7542cb5e335e7b75832315b lib/clerk/models/errors/clerkerrors.rbi: id: b9d9112e6bb5 last_write_checksum: sha1:719cb74eafb50e8e368020fb1068feefe4f9e55e @@ -8639,8 +8543,8 @@ trackedFiles: pristine_git_object: 9118a911b276d086d402721093f0eeadd677fad8 lib/clerk/models/operations.rb: id: 452a59c0091d - last_write_checksum: sha1:56671667a26305f4348ef958bc327798e1edbc59 - pristine_git_object: 06412030ba0d3869f33f1171e68f655693bb19e8 + last_write_checksum: sha1:db7ba0175b0ca9029c3cbc5051426c9b4ca0eb15 + pristine_git_object: 7fcbdb296ab00962fe7c5fff4b96d0ffb0bc183b lib/clerk/models/operations/actor.rb: id: 30f11e0c4cab last_write_checksum: sha1:798b8a893b58d1c8b1ec656e962c3d358849c9df @@ -9355,8 +9259,8 @@ trackedFiles: pristine_git_object: aa3bd8856fd9f5b4d733b57b842f7b85d4a33c6e lib/clerk/models/operations/createorganizationdomain_requestbody.rb: id: 6d82ea176696 - last_write_checksum: sha1:38031267fea4358d6798055c61176f6dad5cf6be - pristine_git_object: f729d7d2c4edf5aac8adfcfd7042b84a03250500 + last_write_checksum: sha1:38f34158b3eb1d782b1f04b0986438abfc27c527 + pristine_git_object: b8acf1833bd5935c265ae67586ebe462e2039ee3 lib/clerk/models/operations/createorganizationdomain_requestbody.rbi: id: 95effd5abac9 last_write_checksum: sha1:948ec6491dde7b79ea4cd7efd14af99d0abf0f40 @@ -10251,8 +10155,8 @@ trackedFiles: pristine_git_object: 93495813f9ac4fa1f41a9cd08ec0b3152959978d lib/clerk/models/operations/enrollment_mode.rb: id: 66891c10b709 - last_write_checksum: sha1:b0d130ccf3550c732d6cabf02b624d3d34c57fcb - pristine_git_object: b7c669a2ee8a0a7b00aaa52a68c06396e2bd5a1f + last_write_checksum: sha1:a2adf116ba4cd5a3e8fdb7718d6f41256669bb82 + pristine_git_object: 38b5314389abad9821581baeaaaf9000e6acb1ea lib/clerk/models/operations/enrollment_mode.rbi: id: 64a8015f6398 last_write_checksum: sha1:3942050d5fe543e31bd5e11f75a297a1583231b3 @@ -10267,12 +10171,12 @@ trackedFiles: pristine_git_object: 1686570de288405f648dee836d90062cb9c1df98 lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb: id: a3dae55bc382 - last_write_checksum: sha1:fb7ed0c18844eda843be93f3ac22327c513d8ac8 - pristine_git_object: 270089473d8e445372eba11c11b51f9d4606b2e3 + last_write_checksum: sha1:9bba1962c93c5e3c2d289e44aa5d30b587cf5533 + pristine_git_object: 5720302d386e893a69c69ed3da14c37d7e822c72 lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi: id: 1c3d3eadf4ba - last_write_checksum: sha1:0675f1bf3f0d91eca73226d805b6688d5dd17cbc - pristine_git_object: ea4e3a1837b718ef8f4632585ca1957f22958040 + last_write_checksum: sha1:eb8b5569b9b3ad95e820e3bc3e777586b5f0dbb1 + pristine_git_object: 472ad7e3a1860dd67ecee0cbf5c4f362f42c85b0 lib/clerk/models/operations/format.rb: id: 390e6e069746 last_write_checksum: sha1:8f78030d865d0c69ed3250e731d78210bd341e2c @@ -11203,8 +11107,8 @@ trackedFiles: pristine_git_object: a6800481051a47714eaa695b8d2a44cbc8c1b0bb lib/clerk/models/operations/listallorganizationdomains_request.rb: id: 397164df0446 - last_write_checksum: sha1:5c3546bf49271f3f8ee3f34c9d317c471bc5fce2 - pristine_git_object: 95750d03f7cd7a7bf014c024e1eb8759a097f04a + last_write_checksum: sha1:d127df0763cec10f3911d5387880a94eb370dcde + pristine_git_object: bf31f52a28f6ac718466d111a063c7be7746d211 lib/clerk/models/operations/listallorganizationdomains_request.rbi: id: f24c988f903c last_write_checksum: sha1:f45395d50cc3284ffac2e69bf640ad4b16197280 @@ -11387,8 +11291,8 @@ trackedFiles: pristine_git_object: f17e29403e4ac6066314716ef5b427dcaadc99f1 lib/clerk/models/operations/listorganizationdomains_request.rb: id: cfd1a6551966 - last_write_checksum: sha1:44a92bba411b028e035c575fd8f0fa32973debb5 - pristine_git_object: e54ea0ee7eeea2a4ce1304b078ae4aad6c2e5974 + last_write_checksum: sha1:88d3c8f914aad25a552afa69269b02f85121f21b + pristine_git_object: 8a8312e877ba85e47ecd1f3262a3fe0d0b23adfe lib/clerk/models/operations/listorganizationdomains_request.rbi: id: f7e4354ffcdc last_write_checksum: sha1:7868e78707a2ae89ecc81b893b72667a64f26160 @@ -12201,6 +12105,30 @@ trackedFiles: id: f1977e03303b last_write_checksum: sha1:2a12ac219b1f860d812e931b8b25067c7088d405 pristine_git_object: 755b87cc0e7099718d353480a9c6229ea5b7469d + lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb: + id: 38393bf8c6fa + last_write_checksum: sha1:44c053976ef81d9f607dfae08d7ac95ee655a54d + pristine_git_object: 6fc200618b21a1d8bf80cdbcb6d6746a5d6125a2 + lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi: + id: 2766c9693f65 + last_write_checksum: sha1:3dfcda8da02d7e4a82e1d1a689240416dc3dba1d + pristine_git_object: ca637a0dcc77c3d3646eb66adcf18bd5f9608639 + lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb: + id: 2ff338c0714e + last_write_checksum: sha1:3a4d24de97992c6475cc3ad6c51d6e0e023d8f30 + pristine_git_object: fa1ae52099c2a6b60efa50919b7bac9418115b42 + lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi: + id: bafc44254be0 + last_write_checksum: sha1:11fa356cb761efb4ae08567ca79062329ff298f9 + pristine_git_object: 2f824256459efc33273c4774e13f91db4b86d421 + lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb: + id: ae5337eefdff + last_write_checksum: sha1:30de5c982b09283be06fa7de6d985911be74a0ca + pristine_git_object: e64c3d492985fcd1e53a6e104008bd383a50630a + lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi: + id: 399f5cf0c6ce + last_write_checksum: sha1:76dbe6e2b1b289dda91e136648b98b0fcf41d0ad + pristine_git_object: 880919600a1418814db3ae921a296e578b68d7f0 lib/clerk/models/operations/revokeorganizationinvitation_request.rb: id: 9c7a965a7bdc last_write_checksum: sha1:fd33a57543944d08bb4c58bc6de6c6930ee64959 @@ -12827,8 +12755,8 @@ trackedFiles: pristine_git_object: 799c052ef905911eedeeb522d6658211ddfa4ec4 lib/clerk/models/operations/updateorganizationdomain_requestbody.rb: id: 278aa8026d3b - last_write_checksum: sha1:2e21665f94546caab7556030533a64496a368c0d - pristine_git_object: b13ad07fbb256c0e3d6bebc8fd1c455d057852c0 + last_write_checksum: sha1:dfe85d4c9e28354af035df94e877a1c272eb5355 + pristine_git_object: 4e5c2e66d938d996a9225e55f660ba57015157f0 lib/clerk/models/operations/updateorganizationdomain_requestbody.rbi: id: af1c4dc37c58 last_write_checksum: sha1:5c94dde97a4e4a22061562b858b1914eb6c185d6 @@ -13579,60 +13507,60 @@ trackedFiles: pristine_git_object: 27dd280b2c1598adb907130d49789ef9e68efb92 lib/clerk/oauthaccesstokens.rb: id: 6edaee050fc3 - last_write_checksum: sha1:be1e584f52091afb9334074309dd8dd6c6b3b784 - pristine_git_object: e8eb8f4bdd6fc894b4c77966c0d6abf064229841 + last_write_checksum: sha1:ed62dde979d337a129ab5aa1ded037394b7d83d2 + pristine_git_object: ddb4fdf7a2c09af555287874d4f8a0dcb49c0c3a lib/clerk/oauthapplications.rb: id: cab55ebee696 - last_write_checksum: sha1:4b70b5c91cfdbeac9b9db8d8a4192a36d27088c8 - pristine_git_object: 946bf1609ddab45fd0b8a5d6c734ae253e44d12c + last_write_checksum: sha1:f824f7a3ea675f5504e8484c965f43ffaa0a924d + pristine_git_object: 1eaff2c34a0c2b4797fd3a53d0d8f34610ff28b0 lib/clerk/openapiclient.rb: id: 04c99fb1b523 last_write_checksum: sha1:d81e7ac1b0ac1cf98e09e76d848bc593a137e445 pristine_git_object: 3ef50f1cbf501bf4b74183c9dc315f4b9cad1322 lib/clerk/organizationdomains.rb: id: 7616ff8cc435 - last_write_checksum: sha1:38f49d491bae56bed34b3db29bed64aeb45331d5 - pristine_git_object: 0dd49e71c057aa4954885036e6d458b642985fff + last_write_checksum: sha1:d8df7eddfebdb0cdba3ef894981a76c2348b4ed7 + pristine_git_object: 4093f182ce4f0aa8229fb8c76c422362b76e2bf5 lib/clerk/organizationinvitations.rb: id: aebde058ef97 - last_write_checksum: sha1:1ad206b2fcbc6f1f0617e6b13a0b3b569dfb4241 - pristine_git_object: aec2b7e3a6b750f4c194258ca8497ae770be8cf8 + last_write_checksum: sha1:9f663f66ac5a89551ec4a06a6975838a900cb823 + pristine_git_object: 3b3816a0c934b011bba95a0fa270aaf46ae5f388 lib/clerk/organizationmemberships.rb: id: 833c8797a7a1 - last_write_checksum: sha1:695737d268a52b04dca40aa9e883a3f26e271b35 - pristine_git_object: 29ac4865878c016a72ea61181ab47147047613ec + last_write_checksum: sha1:3e09d688e7be9ca834644ef92c2fe85049448b77 + pristine_git_object: 8ac8c9366fdb468c2faaeb90799ce1550b9e5369 lib/clerk/organizationpermissions.rb: id: 1ae9556b258b - last_write_checksum: sha1:40c7493b5fca9d0bfcddad259a5a2a839d219735 - pristine_git_object: 4f1f38aeacf84fa49cc042f0908e7132ecc737c0 + last_write_checksum: sha1:b314188d5fede3d30892e54eaff38bcc21911439 + pristine_git_object: be5e0454bf0793266d7b51f7705fb8758286671e lib/clerk/organizationroles.rb: id: 5a4cd2fabc1c - last_write_checksum: sha1:6f8b6cb6571bd9ca4215735ee4f785c9fd9db1f8 - pristine_git_object: f3722a2188787018fdc9923b126cb5fa676c624e + last_write_checksum: sha1:c78c8cc376971dfc7ebd91bba8cf1cd6f546f034 + pristine_git_object: 02c2fbc2ca015f429d99f30db5dd3d320362962b lib/clerk/organizations.rb: id: 8f2501a72805 - last_write_checksum: sha1:4f55c7ed258637ea8dc8b745fd3cfb4c63b1fc30 - pristine_git_object: 0ae82926304ddbc32cf6711d5945ae0babbb809b + last_write_checksum: sha1:414d4241502f23170d86cd07901b792f48fd7120 + pristine_git_object: 56403eb91a4acb9c79bbec958e3642d98c22d16f lib/clerk/phonenumbers.rb: id: ec9ad287898b - last_write_checksum: sha1:3ae74bdb8b28c81754ea4a42b89672dcf19472ed - pristine_git_object: fab7bc7a73f6d24dbb851f42244b480940c334d2 + last_write_checksum: sha1:6ffdfa1ee1453e96738c7f508dfe589e29f837ba + pristine_git_object: da44869c1cb4b0ad6dc96edac05b97bcf4b6def5 lib/clerk/proxychecks.rb: id: 8661ac6f0ed6 - last_write_checksum: sha1:ba4119428cdf81abf3fbe40ed14f9394d6a63f03 - pristine_git_object: 27ccd44083cfcac530099d65d1ad8104aeec930b + last_write_checksum: sha1:749cab4b6db951da5fa3bd628088e7c0e52a77c5 + pristine_git_object: 389457fc62a91fd138eb8931205b73869f345702 lib/clerk/redirecturls.rb: id: ada323e9a13d - last_write_checksum: sha1:fb8fdb32409deeb25f7b2082d4ce64ea757d1b3f - pristine_git_object: 7003078ccc4d61abd21967585cab9e8a7c7e7078 + last_write_checksum: sha1:1acf2070f81df1c99374ac9133ebfe03d5ba0da8 + pristine_git_object: 8e183083c5a8191d81668be8f32b1995f3b0489c lib/clerk/rolesets.rb: id: f147e618338a - last_write_checksum: sha1:bb7161f097885530ede5bf33be62960149acb33d - pristine_git_object: 1650e89e14e327703da161f9ea452e0495dc4a63 + last_write_checksum: sha1:b93f595d7754f010b69bcb2559b25cd93df5daaa + pristine_git_object: 817cac76d7c503f31441e40d856454278c009da4 lib/clerk/samlconnections.rb: id: 4d434ba66b6a - last_write_checksum: sha1:275409dc240d7f8c92cd37766e27dd7a1cead0f4 - pristine_git_object: a6108c612706c06dc64c97e51616b816ca2e9f96 + last_write_checksum: sha1:4567665ef51e94d02efd125026259cc9fabe25b5 + pristine_git_object: 3b4c89036a030582fec16928bd345773ac6ff0a8 lib/clerk/sdk_hooks/hooks.rb: id: 27d5a8a7b690 last_write_checksum: sha1:7539934327af007d9a350f46b01ef8842c370740 @@ -13643,36 +13571,36 @@ trackedFiles: pristine_git_object: a9439db9cbc91b3abef17baf0d438a99a9190cf0 lib/clerk/sdkconfiguration.rb: id: 005b930c709e - last_write_checksum: sha1:728296b5e39e69910c35d4a53fe96aa43192125f - pristine_git_object: 23f02e6bc7f79af3130139c83706622cc49ec38d + last_write_checksum: sha1:1f4a7f61b85e6149ac28d290ca1312be1337fdef + pristine_git_object: e39576ff75f431627bcc372a80cb447b1f4abd88 lib/clerk/sdkconfiguration.rbi: id: c7163e8cf2ca last_write_checksum: sha1:fea1767a154b4575f107e7dda123f1cc89a1c581 pristine_git_object: c99b35fcfd57dd3f76fa251bd1ed9ed542663a1c lib/clerk/sessions.rb: id: 6dfcf2b5ea6a - last_write_checksum: sha1:c13075f891032df10c88d32120be5c0446275cf5 - pristine_git_object: 3f17a6bda79315e82bdc35668100bfa2a4e5294b + last_write_checksum: sha1:3d7bb216c9595fff5e927ae123d6cf54a01d450c + pristine_git_object: b7eb92d244a2db88fb89ffed9da61b555de2765c lib/clerk/signintokens.rb: id: 38b47b22373d - last_write_checksum: sha1:8074da1f3038e8d0eeb831e746fbd8cc50b4c964 - pristine_git_object: 59981233b9d5bf9abf4f0e42cc0066ed2afc1b67 + last_write_checksum: sha1:58ec953b0d11e562bdf116e5a06de02c6caccaac + pristine_git_object: cf3549fa2b9c86efca662171f57121f2c10f21b9 lib/clerk/signups.rb: id: 5ac76acb5a44 - last_write_checksum: sha1:fb416c1bff88a2c1279e8b22d82358f9bc5ba999 - pristine_git_object: 69cec5640ad20441369d7c9fce246d7a8364d66c + last_write_checksum: sha1:11da1f7ac909a22037ffd45c363ae26e30b4a937 + pristine_git_object: 5a862230bc36f1cdc9d74042ef9f2e7fa127d7c4 lib/clerk/templates.rb: id: 8944024de4a6 - last_write_checksum: sha1:d89d34101fba7786addf5246d6723b734a3ec5d4 - pristine_git_object: a6627c2ad3f3db1f1354f24dd512ce233e850d05 + last_write_checksum: sha1:20d7f38b4602db8f0b9db4f84bfb58c55ad4a67d + pristine_git_object: dd8ec24dbd95294bbd2bcba3c67e49618cf67624 lib/clerk/testingtokens.rb: id: cb4457b73c25 - last_write_checksum: sha1:b9f823079cd0160d0e39d4cf7eeb5d2f24a98753 - pristine_git_object: aaa9e90fe7c66e0d71962ac1b9a2a50d22f6f919 + last_write_checksum: sha1:07977fe1ebbcb29dd88d9ae11272e7113748f0ed + pristine_git_object: e8030e2969ab095ea53e166a87d5a55937e6ef8f lib/clerk/users.rb: id: ef009282c9f4 - last_write_checksum: sha1:f2dd403ad14a4faf7d606f7369f7e1ce828a86fd - pristine_git_object: ed1e2b5776bc7c05e41526054f57bba37e48a65d + last_write_checksum: sha1:334b42416164c52f30f09684857385381606875f + pristine_git_object: f9b0dfd82fb7d076917345c6f108193bc5642969 lib/clerk/utils/forms.rb: id: "962612754462" last_write_checksum: sha1:eb2ca975477e2f48919a7628172c1a0275758573 @@ -13691,8 +13619,8 @@ trackedFiles: pristine_git_object: 0aa75fd71f01e98bd73f8df32ef8a61a6dd192ca lib/clerk/utils/retries.rb: id: a0d4a67ed8b6 - last_write_checksum: sha1:821c44ee1bd3f5ea00174d779b26ac4fcfa7648e - pristine_git_object: 9d0f21e253c89b69702f9b26fb9135f6998336ae + last_write_checksum: sha1:211f8265fdc76b555f0bb2cf79fcfc3be123b3a3 + pristine_git_object: 663b3220656953287574c6b35d7184e2f7234417 lib/clerk/utils/security.rb: id: 527e745aee56 last_write_checksum: sha1:b7df8c6dddf4e4c2cfdc841bfc7d18d6d8aff6ca @@ -13703,12 +13631,12 @@ trackedFiles: pristine_git_object: 86e76ddde5860e10f566358d7424aa8a86583336 lib/clerk/waitlistentries.rb: id: d5aebe709825 - last_write_checksum: sha1:9fc2ead5102876c9d222bbc63b5bfbc70662431f - pristine_git_object: 738d42e088208f7c47e7ad6baa1c9d645a705d6b + last_write_checksum: sha1:98826dd4cfcb74a55348803b5e4a4b8f2a005dfd + pristine_git_object: f3dd7f18f0f2ecf4085bcc73027e8397f158f968 lib/clerk/webhooks.rb: id: 66c48dc6abf0 - last_write_checksum: sha1:b99e2ea3adb130d22604981a13e511f1d073a0d1 - pristine_git_object: 828d753c8b5920256252ab7612b01c4bfb9255fd + last_write_checksum: sha1:f152cae8b1cc46937e97490d0c8b63065ac7fa99 + pristine_git_object: e4ff28437664925c114abbe0f005330734b270a1 lib/clerk_sdk_ruby.rb: id: a3fd5fe94e59 last_write_checksum: sha1:ec5034e5aa31167b039345cee80e911387479358 @@ -15292,7 +15220,7 @@ examples: application/json: {"name": "My SAML Connection", "domains": ["", ""], "provider": "saml_custom", "idp_entity_id": "http://idp.example.org/", "idp_sso_url": "http://idp.example.org/sso", "idp_certificate": "MIIDdzCCAl+gAwIBAgIJAKcyBaiiz+DT...", "idp_metadata_url": "http://idp.example.org/metadata.xml", "idp_metadata": "", "name": "", "domains": [], "idp_entity_id": "", "idp_sso_url": "https://burly-sport.info", "idp_certificate": "", "acs_url": "https://smart-requirement.com/", "sp_entity_id": "", "sp_metadata_url": "https://putrid-shore.info/", "active": false, "provider": "", "user_count": 660655, "sync_user_attributes": false, "allow_subdomains": false, "allow_idp_initiated": true, "disable_additional_identifications": false, "allow_organization_account_linking": false, "force_authn": true, "created_at": 590395, "updated_at": 80874} + application/json: {"object": "saml_connection", "id": "", "name": "", "domains": [], "idp_entity_id": "", "idp_sso_url": "https://burly-sport.info", "idp_certificate": "", "idp_certificate_issued_at": 316399, "idp_certificate_expires_at": 117921, "acs_url": "https://smart-requirement.com/", "sp_entity_id": "", "sp_metadata_url": "https://putrid-shore.info/", "active": false, "provider": "", "user_count": 660655, "sync_user_attributes": false, "allow_subdomains": false, "allow_idp_initiated": true, "disable_additional_identifications": false, "allow_organization_account_linking": false, "force_authn": true, "created_at": 590395, "updated_at": 80874} "402": application/json: {"errors": [{"message": "Invalid input", "long_message": "The input provided does not meet the requirements.", "code": "400_bad_request"}]} GetSAMLConnection: @@ -15302,7 +15230,7 @@ examples: saml_connection_id: "saml_conn_123" responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "inexperienced-daughter.info", "idp_entity_id": "", "idp_sso_url": "https://plain-dependency.org/", "idp_certificate": "", "acs_url": "https://indelible-meatloaf.biz/", "sp_entity_id": "", "sp_metadata_url": "https://red-priesthood.net", "active": false, "provider": "", "user_count": 516016, "sync_user_attributes": true, "allow_subdomains": false, "allow_idp_initiated": true, "disable_additional_identifications": false, "allow_organization_account_linking": true, "force_authn": true, "created_at": 130642, "updated_at": 939116} + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "inexperienced-daughter.info", "idp_entity_id": "", "idp_sso_url": "https://plain-dependency.org/", "idp_certificate": "", "idp_certificate_issued_at": 220400, "idp_certificate_expires_at": 301496, "acs_url": "https://indelible-meatloaf.biz/", "sp_entity_id": "", "sp_metadata_url": "https://red-priesthood.net", "active": false, "provider": "", "user_count": 516016, "sync_user_attributes": true, "allow_subdomains": false, "allow_idp_initiated": true, "disable_additional_identifications": false, "allow_organization_account_linking": true, "force_authn": true, "created_at": 130642, "updated_at": 939116} "402": application/json: {"errors": [{"message": "Invalid input", "long_message": "The input provided does not meet the requirements.", "code": "400_bad_request"}]} UpdateSAMLConnection: @@ -15314,7 +15242,7 @@ examples: application/json: {} responses: "200": - application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "warped-rim.name", "idp_entity_id": "", "idp_sso_url": "https://breakable-tuxedo.com/", "idp_certificate": "", "acs_url": "https://informal-hydrolyze.biz/", "sp_entity_id": "", "sp_metadata_url": "https://peaceful-electronics.com/", "active": true, "provider": "", "user_count": 981924, "sync_user_attributes": true, "allow_subdomains": true, "allow_idp_initiated": false, "disable_additional_identifications": true, "allow_organization_account_linking": true, "force_authn": false, "created_at": 993355, "updated_at": 200159} + application/json: {"object": "saml_connection", "id": "", "name": "", "domain": "warped-rim.name", "idp_entity_id": "", "idp_sso_url": "https://breakable-tuxedo.com/", "idp_certificate": "", "idp_certificate_issued_at": 760462, "idp_certificate_expires_at": 468954, "acs_url": "https://informal-hydrolyze.biz/", "sp_entity_id": "", "sp_metadata_url": "https://peaceful-electronics.com/", "active": true, "provider": "", "user_count": 981924, "sync_user_attributes": true, "allow_subdomains": true, "allow_idp_initiated": false, "disable_additional_identifications": true, "allow_organization_account_linking": true, "force_authn": false, "created_at": 993355, "updated_at": 200159} "402": application/json: {"errors": [{"message": "Invalid input", "long_message": "The input provided does not meet the requirements.", "code": "400_bad_request"}]} DeleteSAMLConnection: @@ -15870,7 +15798,7 @@ examples: application/json: {"amount": 562473, "action": "decrease", "idempotency_key": ""} responses: "200": - application/json: {"object": "", "id": "", "payer_id": "", "amount": 372899, "currency": "Djibouti Franc", "source_type": "", "source_id": "", "created_at": "2024-03-26T21:01:22.622Z"} + application/json: {"object": "", "id": "", "payer_id": "", "amount": {"amount": 562473, "amount_formatted": "", "currency": "Lilangeni", "currency_symbol": "₪"}, "source_type": "", "source_id": "", "created_at": "2024-03-26T21:01:22.622Z"} "400": application/json: {"errors": []} "500": @@ -15908,7 +15836,7 @@ examples: application/json: {"amount": 245081, "action": "increase", "idempotency_key": ""} responses: "200": - application/json: {"object": "", "id": "", "payer_id": "", "amount": 741420, "currency": "Hong Kong Dollar", "source_type": "", "source_id": "", "created_at": "2024-06-02T01:47:07.493Z"} + application/json: {"object": "", "id": "", "payer_id": "", "amount": {"amount": 245081, "amount_formatted": "", "currency": "Pound Sterling", "currency_symbol": "₨"}, "source_type": "", "source_id": "", "created_at": "2024-06-02T01:47:07.493Z"} "400": application/json: {"errors": [{"message": "", "long_message": "", "code": ""}]} "500": @@ -16174,12 +16102,18 @@ examples: application/json: {"object": "organization", "id": "", "name": "", "slug": "", "has_image": true, "max_allowed_memberships": 115890, "admin_delete_enabled": false, "public_metadata": {"key": "", "key1": ""}, "created_at": 542021, "updated_at": 320160} "400": application/json: {"errors": []} + RevokeOAuthApplicationToken: + speakeasy-default-revoke-O-auth-application-token: + parameters: + path: + oauth_application_id: "" + requestBody: + application/json: {"token": ""} + responses: + "400": + application/json: {"errors": []} examplesVersion: 1.0.2 -releaseNotes: | - ## Ruby SDK Changes: - * `open_api_client.users.update()`: `request.body` **Changed** (Breaking ⚠️) - * `open_api_client.organizations.update()`: `request.body` **Changed** (Breaking ⚠️) - * `open_api_client.organizations.replace_metadata()`: **Added** +releaseNotes: "## Ruby SDK Changes:\n* `open_api_client.clients.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.clients.verify()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.clients.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.create()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.get()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.update()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.prepare_verification()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.attempt_verification()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_addresses.replace_for_user()`: \n * `response.verification` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.prepare_verification()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.attempt_verification()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.phone_numbers.replace_for_user()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.refresh()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.create_token()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sessions.create_token_from_template()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_sms_templates.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_sms_templates.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_sms_templates.revert()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_sms_templates.toggle_template_delivery()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.email_and_sms_templates.upsert()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.templates.preview()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.list()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.create()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.count()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.update()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.ban()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.unban()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.bulk_ban()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.bulk_unban()`: \n * `response.[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.lock()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.unlock()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.set_profile_image()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete_profile_image()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.update_metadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.replace_metadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get_billing_subscription()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get_billing_credit_balance()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.adjust_billing_credit_balance()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get_o_auth_access_token()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get_organization_memberships()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get_organization_invitations()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.verify_password()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.verify_totp()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.disable_mfa()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete_backup_codes()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete_passkey()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete_web3wallet()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete_totp()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.delete_external_account()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.set_password_compromised()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.unset_password_compromised()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.users.get_instance_organization_memberships()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.invitations.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.invitations.bulk_create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.invitations.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.get_all()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.bulk_create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.list_pending()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_invitations.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.allowlist_identifiers.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.allowlist_identifiers.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.allowlist_identifiers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.blocklist_identifiers.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.blocklist_identifiers.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.blocklist_identifiers.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.beta_features.update_instance_settings()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.beta_features.update_production_instance_domain()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.actor_tokens.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.actor_tokens.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.domains.add()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.domains.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.domains.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.update_restrictions()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.update_communication()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.update_o_auth_application_settings()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.change_domain()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.get_organization_settings()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.update_organization_settings()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.instance_settings.update_instance_protect()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.webhooks.create_svix_app()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.webhooks.delete_svix_app()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.webhooks.generate_svix_auth_url()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.jwt_templates.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.jwt_templates.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.jwt_templates.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.jwt_templates.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.get_secret_key()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.rotate_secret_key()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.create_scope()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.machines.delete_scope()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.merge_metadata()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.replace_metadata()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.upload_logo()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.delete_logo()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.get_billing_subscription()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.get_billing_credit_balance()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organizations.adjust_billing_credit_balance()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.assign_permission()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_roles.remove_permission()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_memberships.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_memberships.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_memberships.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_memberships.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_memberships.update_metadata()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_domains.create()`: \n * `response.enrollment_mode.enum(enterprise_sso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_domains.list()`: \n * `response.data[].enrollment_mode.enum(enterprise_sso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_domains.update()`: \n * `response.enrollment_mode.enum(enterprise_sso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_domains.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_domains.verify_ownership()`: \n * `response.enrollment_mode.enum(enterprise_sso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_domains.list_all()`: \n * `request.enrollment_mode` **Changed**\n * `response.data[].enrollment_mode.enum(enterprise_sso)` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.proxy_checks.verify()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.redirect_urls.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.redirect_urls.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.redirect_urls.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sign_in_tokens.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sign_in_tokens.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sign_ups.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.sign_ups.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.upload_logo()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.rotate_secret()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.saml_connections.list()`: \n * `response.data[]` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.saml_connections.create()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.saml_connections.get()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.saml_connections.update()`: \n * `response` **Changed**\n * `error` **Changed** (Breaking ⚠️)\n* `open_api_client.saml_connections.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.list_test_runs()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.enterprise_connections.create_test_run()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.agent_tasks.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.agent_tasks.revoke()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.waitlist_entries.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.waitlist_entries.bulk_create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.waitlist_entries.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.waitlist_entries.invite()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.waitlist_entries.reject()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.list_plans()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.list_prices()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.create_price()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.list_subscription_items()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.cancel_subscription_item()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.extend_subscription_item_free_trial()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.create_price_transition()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.list_statements()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.get_statement()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.billing.get_statement_payment_attempts()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_permissions.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_permissions.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_permissions.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_permissions.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.organization_permissions.delete()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.list()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.create()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.get()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.update()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.replace()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.add_roles()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.role_sets.replace_role()`: `error` **Changed** (Breaking ⚠️)\n* `open_api_client.oauth_applications.revoke_token()`: **Added**\n" generatedFiles: - .gitattributes - .rubocop.yml diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index b87a4a95..aa919e72 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -31,7 +31,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: false ruby: - version: 7.0.0 + version: 7.0.1 additionalDependencies: development: activesupport: ~> 8.0.0 diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 7a7fb76b..e66f5735 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -3319,7 +3319,10 @@ paths: x-speakeasy-group: users x-speakeasy-name-override: unsetPasswordCompromised summary: Unset a user's password as compromised - description: Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in. + description: |- + Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in. + + If the user is in reserved-email password quarantine, the quarantine is preserved and the returned user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can only be cleared by completing a password reset or changing/removing the password. tags: - Users parameters: @@ -6578,7 +6581,7 @@ paths: nullable: false enrollment_mode: type: string - description: The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` + description: The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` nullable: false verified: type: boolean @@ -6619,7 +6622,9 @@ paths: - in: query required: false name: enrollment_mode - description: Filter domains by their enrollment mode + description: |- + Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso`. + Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. schema: type: string - $ref: '#/components/parameters/LimitParameter' @@ -6662,7 +6667,7 @@ paths: properties: enrollment_mode: type: string - description: The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` + description: The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` nullable: true verified: type: boolean @@ -6673,6 +6678,8 @@ paths: $ref: '#/components/responses/OrganizationDomain' '400': $ref: '#/components/responses/ClerkErrors' + '403': + $ref: '#/components/responses/ClerkErrors' '404': $ref: '#/components/responses/ResourceNotFound' '422': @@ -6705,6 +6712,8 @@ paths: $ref: '#/components/responses/ClerkErrors' '401': $ref: '#/components/responses/AuthenticationInvalid' + '403': + $ref: '#/components/responses/ClerkErrors' '404': $ref: '#/components/responses/ResourceNotFound' /organizations/{organization_id}/domains/{domain_id}/verify_ownership: @@ -6779,7 +6788,9 @@ paths: - 'false' - in: query name: enrollment_mode - description: Filter by enrollment mode + description: |- + Filter by enrollment mode. Prefix a value with `-` to exclude it instead + (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. required: false style: form explode: false @@ -6791,6 +6802,11 @@ paths: - manual_invitation - automatic_invitation - automatic_suggestion + - enterprise_sso + - '-manual_invitation' + - '-automatic_invitation' + - '-automatic_suggestion' + - '-enterprise_sso' - in: query name: query description: | @@ -7371,6 +7387,49 @@ paths: $ref: '#/components/responses/AuthorizationInvalid' '404': $ref: '#/components/responses/ResourceNotFound' + /oauth_applications/{oauth_application_id}/revoke_token: + post: + operationId: RevokeOAuthApplicationToken + x-speakeasy-group: oauthApplications + x-speakeasy-name-override: revokeToken + summary: Revoke an OAuth application token + description: |- + Revoke both OAuth access token and refresh token for the associated grant for the given OAuth application. + The request may specify either token. + JWT access tokens cannot be revoked. + tags: + - OAuth Applications + parameters: + - name: oauth_application_id + in: path + description: The ID of the OAuth application for which to revoke the token + required: true + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + properties: + token: + type: string + description: The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth grant are also revoked. + required: + - token + responses: + '204': + description: Token revoked + '400': + $ref: '#/components/responses/ClerkErrors' + '403': + $ref: '#/components/responses/AuthorizationInvalid' + '404': + $ref: '#/components/responses/ResourceNotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /saml_connections: get: deprecated: true @@ -8828,7 +8887,7 @@ paths: $ref: '#/components/schemas/ExtendFreeTrialRequest' responses: '200': - $ref: '#/components/responses/responses-CommerceSubscriptionItem' + $ref: '#/components/responses/CommerceSubscriptionItem-2' '400': $ref: '#/components/responses/ClerkErrors' '401': @@ -9516,6 +9575,9 @@ paths: /audit_logs/{event_time_and_id}: {} /scim_directories: {} /scim_directories/{scim_directory_id}: {} + /scim_directories/{scim_directory_id}/groups: {} + /scim_directories/{scim_directory_id}/group_role_mappings: {} + /scim_directories/{scim_directory_id}/group_role_mappings/{mapping_id}: {} /admin_portal_link_tokens: post: operationId: createAdminPortalLinkToken @@ -12282,6 +12344,7 @@ components: type: string meta: type: object + additionalProperties: true required: - message - long_message @@ -12295,6 +12358,7 @@ components: $ref: '#/components/schemas/ClerkError' meta: type: object + additionalProperties: true required: - errors verification_otp: @@ -14303,7 +14367,7 @@ components: type: integer format: int64 description: Unix timestamp (in milliseconds) when the payer was last updated. - schemas-CommercePerUnitTotalTier: + CommercePerUnitTotalTier-2: type: object additionalProperties: false properties: @@ -14333,11 +14397,11 @@ components: tiers: type: array items: - $ref: '#/components/schemas/schemas-CommercePerUnitTotalTier' + $ref: '#/components/schemas/CommercePerUnitTotalTier-2' description: Per-unit cost breakdown by pricing tier required: - quantity - schemas-CommercePerUnitTotal: + CommercePerUnitTotal-2: type: object additionalProperties: false properties: @@ -14351,7 +14415,7 @@ components: tiers: type: array items: - $ref: '#/components/schemas/schemas-CommercePerUnitTotalTier' + $ref: '#/components/schemas/CommercePerUnitTotalTier-2' description: Computed totals for each pricing tier required: - name @@ -14397,7 +14461,7 @@ components: required: - proration - total - schemas-CommerceTotalsResponse: + CommerceTotalsResponse-2: type: object additionalProperties: false properties: @@ -14412,7 +14476,7 @@ components: per_unit_totals: type: array items: - $ref: '#/components/schemas/schemas-CommercePerUnitTotal' + $ref: '#/components/schemas/CommercePerUnitTotal-2' credits: allOf: - $ref: '#/components/schemas/CommerceCreditsResponse' @@ -14558,7 +14622,7 @@ components: description: Seat quantity for seat-based billing. totals: allOf: - - $ref: '#/components/schemas/schemas-CommerceTotalsResponse' + - $ref: '#/components/schemas/CommerceTotalsResponse-2' nullable: true description: Totals for this subscription item. CommerceSubscriptionNextPayment: @@ -14578,11 +14642,11 @@ components: per_unit_totals: type: array items: - $ref: '#/components/schemas/schemas-CommercePerUnitTotal' + $ref: '#/components/schemas/CommercePerUnitTotal-2' description: Per-unit total breakdown (for example, seats) for the next payment. totals: allOf: - - $ref: '#/components/schemas/schemas-CommerceTotalsResponse' + - $ref: '#/components/schemas/CommerceTotalsResponse-2' nullable: true description: Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. CommerceSubscription: @@ -14703,7 +14767,6 @@ components: - id - payer_id - amount - - currency - source_type - source_id - created_at @@ -14718,12 +14781,8 @@ components: type: string description: The ID of the payer whose balance was adjusted. amount: - type: integer - format: int64 - description: The signed credit amount. Positive for increases, negative for decreases. - currency: - type: string - description: The currency code of the credit adjustment. + $ref: '#/components/schemas/CommerceMoneyResponse' + description: The credit amount with formatting. Positive for increases, negative for decreases. source_type: type: string description: The type of source that originated the adjustment (e.g. "grant"). @@ -15732,6 +15791,7 @@ components: - manual_invitation - automatic_invitation - automatic_suggestion + - enterprise_sso affiliation_email_address: type: string nullable: true @@ -16217,6 +16277,18 @@ components: idp_certificate: type: string nullable: true + idp_certificate_issued_at: + type: integer + format: int64 + nullable: true + description: | + Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured. + idp_certificate_expires_at: + type: integer + format: int64 + nullable: true + description: | + Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured. idp_metadata_url: type: string nullable: true @@ -16273,6 +16345,8 @@ components: - idp_entity_id - idp_sso_url - idp_certificate + - idp_certificate_issued_at + - idp_certificate_expires_at - acs_url - sp_entity_id - sp_metadata_url @@ -16871,7 +16945,7 @@ components: RFC3339 timestamp to extend the free trial to. Must be in the future and not more than 365 days from now. example: '2026-01-08T00:00:00Z' - schemas-FeatureResponse: + FeatureResponse-2: type: object additionalProperties: false required: @@ -16902,7 +16976,7 @@ components: avatar_url: type: string description: The URL of the feature's avatar image. - schemas-CommercePlan: + CommercePlan-2: type: object additionalProperties: false required: @@ -17024,7 +17098,7 @@ components: features: type: array items: - $ref: '#/components/schemas/schemas-FeatureResponse' + $ref: '#/components/schemas/FeatureResponse-2' description: The features included in this plan. free_trial_enabled: type: boolean @@ -17116,7 +17190,7 @@ components: type: boolean nullable: true description: Whether this payment source can be removed. - schemas-CommercePayerResponse: + CommercePayerResponse-2: type: object additionalProperties: false required: @@ -17173,7 +17247,7 @@ components: type: integer format: int64 description: Unix timestamp (in milliseconds) when the payer was last updated. - schemas-CommerceSubscriptionItem: + CommerceSubscriptionItem-2: type: object additionalProperties: false required: @@ -17225,7 +17299,7 @@ components: description: Unique identifier for the associated price plan: allOf: - - $ref: '#/components/schemas/schemas-CommercePlan' + - $ref: '#/components/schemas/CommercePlan-2' nullable: true description: The associated commerce plan. plan_period: @@ -17267,7 +17341,7 @@ components: description: Unique identifier for the payer. payer: allOf: - - $ref: '#/components/schemas/schemas-CommercePayerResponse' + - $ref: '#/components/schemas/CommercePayerResponse-2' nullable: true description: The payer associated with this subscription. is_free_trial: @@ -17335,7 +17409,7 @@ components: - previous_subscription_item_id properties: previous_plan: - $ref: '#/components/schemas/schemas-CommercePlan' + $ref: '#/components/schemas/CommercePlan-2' previous_price: $ref: '#/components/schemas/BillingPriceResponse' effective_at: @@ -17385,7 +17459,7 @@ components: enum: - commerce_price_transition subscription_item: - $ref: '#/components/schemas/schemas-CommerceSubscriptionItem' + $ref: '#/components/schemas/CommerceSubscriptionItem-2' transition: $ref: '#/components/schemas/CommercePriceTransitionDetails' BillingPaymentAttempt: @@ -17453,7 +17527,7 @@ components: description: The amount for this payment attempt. totals: allOf: - - $ref: '#/components/schemas/schemas-CommerceTotalsResponse' + - $ref: '#/components/schemas/CommerceTotalsResponse-2' nullable: true description: Totals breakdown for this payment attempt. payment_method_id: @@ -18532,12 +18606,12 @@ components: application/json: schema: $ref: '#/components/schemas/CommerceSubscriptionItem' - responses-CommerceSubscriptionItem: + CommerceSubscriptionItem-2: description: A commerce subscription item. content: application/json: schema: - $ref: '#/components/schemas/schemas-CommerceSubscriptionItem' + $ref: '#/components/schemas/CommerceSubscriptionItem-2' CommercePriceTransition: description: A commerce price transition. content: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0e5fd750..abd0214a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.777.0 +speakeasyVersion: 1.788.1 sources: Clerk-OAS: sourceNamespace: clerk-openapi - sourceRevisionDigest: sha256:c6a229bb69ebf2262186ed60fddc74f9f2a7f85293bfa31ea112ffc588655142 - sourceBlobDigest: sha256:def8f24c263fff53bafbbeb76e3077c209e443ab5c923131292124ae1b50bb40 + sourceRevisionDigest: sha256:3589945bc3dcc52ade1a0a54aeec25b49ee16e36092f1f6ca58b55f5f2753bdd + sourceBlobDigest: sha256:1c5d927cbd8db0bcd39a6478e8f759aec2dbcffc8081b7429d9fba9a277d7111 tags: - latest - "2026-05-12" @@ -11,10 +11,10 @@ targets: clerk: source: Clerk-OAS sourceNamespace: clerk-openapi - sourceRevisionDigest: sha256:c6a229bb69ebf2262186ed60fddc74f9f2a7f85293bfa31ea112ffc588655142 - sourceBlobDigest: sha256:def8f24c263fff53bafbbeb76e3077c209e443ab5c923131292124ae1b50bb40 + sourceRevisionDigest: sha256:3589945bc3dcc52ade1a0a54aeec25b49ee16e36092f1f6ca58b55f5f2753bdd + sourceBlobDigest: sha256:1c5d927cbd8db0bcd39a6478e8f759aec2dbcffc8081b7429d9fba9a277d7111 codeSamplesNamespace: clerk-oas-ruby-code-samples - codeSamplesRevisionDigest: sha256:9769d5a761903f343360463392d8b7667aae8ded8b2b55ce371da5d708f3bece + codeSamplesRevisionDigest: sha256:ed4e5034251f3db3c2996572dc6e126a104bfaeb513085e63a4d66f55d44ed0e workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/Gemfile.lock b/Gemfile.lock index b26b059a..2d0dbe6c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,10 +1,10 @@ PATH remote: . specs: - clerk-sdk-ruby (7.0.0) + clerk-sdk-ruby (7.0.1) base64 (>= 0.2.0, < 1.0) concurrent-ruby (~> 1.3.5) - faraday (>= 2.14.1) + faraday (>= 2.14.3) faraday-multipart (~> 1.2.0) faraday-retry (~> 2.4.0) jwt (~> 3.0) @@ -31,11 +31,11 @@ GEM benchmark (0.5.0) bigdecimal (4.1.2) builder (3.3.0) - concurrent-ruby (1.3.6) + concurrent-ruby (1.3.7) connection_pool (3.0.2) dotenv (3.2.0) drb (2.2.3) - faraday (2.14.1) + faraday (2.14.3) faraday-net_http (>= 2.0, < 3.5) json logger @@ -45,7 +45,7 @@ GEM net-http (>= 0.5.0) faraday-retry (2.4.0) faraday (~> 2.0) - i18n (1.14.8) + i18n (1.15.2) concurrent-ruby (~> 1.0) json (2.8.2) jwt (3.2.0) diff --git a/README.md b/README.md index ae0d5e41..4dbdbc7c 100644 --- a/README.md +++ b/README.md @@ -521,6 +521,7 @@ end * [delete](docs/sdks/oauthapplications/README.md#delete) - Delete an OAuth application * [upload_logo](docs/sdks/oauthapplications/README.md#upload_logo) - Upload a logo for the OAuth application * [rotate_secret](docs/sdks/oauthapplications/README.md#rotate_secret) - Rotate the client secret of the given OAuth application +* [revoke_token](docs/sdks/oauthapplications/README.md#revoke_token) - Revoke an OAuth application token ### [OrganizationDomains](docs/sdks/organizationdomains/README.md) diff --git a/RELEASES.md b/RELEASES.md index d259f06a..e86ef465 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -108,4 +108,14 @@ Based on: ### Generated - [ruby v7.0.0] . ### Releases -- [Ruby Gems v7.0.0] https://rubygems.org/gems/clerk-sdk-ruby/versions/7.0.0 - . \ No newline at end of file +- [Ruby Gems v7.0.0] https://rubygems.org/gems/clerk-sdk-ruby/versions/7.0.0 - . + +## 2026-07-06 01:00:44 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.788.1 (2.915.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [ruby v7.0.1] . +### Releases +- [Ruby Gems v7.0.1] https://rubygems.org/gems/clerk-sdk-ruby/versions/7.0.1 - . \ No newline at end of file diff --git a/clerk-sdk-ruby.gemspec b/clerk-sdk-ruby.gemspec index 07df6705..8e56f3aa 100644 --- a/clerk-sdk-ruby.gemspec +++ b/clerk-sdk-ruby.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'clerk-sdk-ruby' - s.version = '7.0.0' + s.version = '7.0.1' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' @@ -23,7 +23,7 @@ Gem::Specification.new do |s| s.add_dependency('base64', '>= 0.2.0', '< 1.0') s.add_dependency('concurrent-ruby', '~> 1.3.5') - s.add_dependency('faraday', '>= 2.14.1') + s.add_dependency('faraday', '>= 2.14.3') s.add_dependency('faraday-multipart', '~> 1.2.0') s.add_dependency('faraday-retry', '~> 2.4.0') s.add_dependency('jwt', '~> 3.0') diff --git a/docs/models/components/billingpaymentattempttotals.md b/docs/models/components/billingpaymentattempttotals.md index e3491507..fea521b3 100644 --- a/docs/models/components/billingpaymentattempttotals.md +++ b/docs/models/components/billingpaymentattempttotals.md @@ -11,6 +11,6 @@ Totals breakdown for this payment attempt. | `base_fee` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | | `tax_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | | `grand_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `per_unit_totals` | Crystalline::Array<[Models::Components::SchemasCommercePerUnitTotal](../../models/shared/schemascommerceperunittotal.md)> | :heavy_minus_sign: | N/A | +| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal2](../../models/shared/commerceperunittotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [Crystalline::Nilable.new(Models::Components::BillingPaymentAttemptCredits)](../../models/shared/billingpaymentattemptcredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [Crystalline::Nilable.new(Models::Components::BillingPaymentAttemptDiscounts)](../../models/shared/billingpaymentattemptdiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/clerkerror.md b/docs/models/components/clerkerror.md index e4d54ce7..83163dae 100644 --- a/docs/models/components/clerkerror.md +++ b/docs/models/components/clerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::ClerkErrorMeta)](../../models/shared/clerkerrormeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/clerkerrormeta.md b/docs/models/components/clerkerrormeta.md deleted file mode 100644 index 7e76f489..00000000 --- a/docs/models/components/clerkerrormeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/clerkerrorsmeta.md b/docs/models/components/clerkerrorsmeta.md deleted file mode 100644 index c82450fb..00000000 --- a/docs/models/components/clerkerrorsmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ClerkErrorsMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/commercecreditledgerresponse.md b/docs/models/components/commercecreditledgerresponse.md index bc95251a..73455200 100644 --- a/docs/models/components/commercecreditledgerresponse.md +++ b/docs/models/components/commercecreditledgerresponse.md @@ -5,14 +5,13 @@ A credit ledger entry. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `object` | *::String* | :heavy_check_mark: | String representing the object's type. Always "commerce_credit_ledger". | -| `id` | *::String* | :heavy_check_mark: | Unique identifier for the ledger entry. | -| `payer_id` | *::String* | :heavy_check_mark: | The ID of the payer whose balance was adjusted. | -| `amount` | *::Integer* | :heavy_check_mark: | The signed credit amount. Positive for increases, negative for decreases. | -| `currency` | *::String* | :heavy_check_mark: | The currency code of the credit adjustment. | -| `source_type` | *::String* | :heavy_check_mark: | The type of source that originated the adjustment (e.g. "grant"). | -| `source_id` | *::String* | :heavy_check_mark: | The ID of the source that originated the adjustment. | -| `note` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | An optional note attached to the ledger entry. | -| `created_at` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | Timestamp when the ledger entry was created. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `object` | *::String* | :heavy_check_mark: | String representing the object's type. Always "commerce_credit_ledger". | +| `id` | *::String* | :heavy_check_mark: | Unique identifier for the ledger entry. | +| `payer_id` | *::String* | :heavy_check_mark: | The ID of the payer whose balance was adjusted. | +| `amount` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | +| `source_type` | *::String* | :heavy_check_mark: | The type of source that originated the adjustment (e.g. "grant"). | +| `source_id` | *::String* | :heavy_check_mark: | The ID of the source that originated the adjustment. | +| `note` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | An optional note attached to the ledger entry. | +| `created_at` | [Date](https://ruby-doc.org/stdlib-2.6.1/libdoc/date/rdoc/Date.html) | :heavy_check_mark: | Timestamp when the ledger entry was created. | \ No newline at end of file diff --git a/docs/models/components/commerceperunittotal2.md b/docs/models/components/commerceperunittotal2.md new file mode 100644 index 00000000..2f74a543 --- /dev/null +++ b/docs/models/components/commerceperunittotal2.md @@ -0,0 +1,10 @@ +# CommercePerUnitTotal2 + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `name` | *::String* | :heavy_check_mark: | Name of the billable unit (for example, seats) | +| `block_size` | *::Integer* | :heavy_check_mark: | Number of units included in each pricing block | +| `tiers` | Crystalline::Array<[Models::Components::CommercePerUnitTotalTier2](../../models/shared/commerceperunittotaltier2.md)> | :heavy_check_mark: | Computed totals for each pricing tier | \ No newline at end of file diff --git a/docs/models/components/schemascommerceperunittotaltier.md b/docs/models/components/commerceperunittotaltier2.md similarity index 98% rename from docs/models/components/schemascommerceperunittotaltier.md rename to docs/models/components/commerceperunittotaltier2.md index a922e744..8d311a8b 100644 --- a/docs/models/components/schemascommerceperunittotaltier.md +++ b/docs/models/components/commerceperunittotaltier2.md @@ -1,4 +1,4 @@ -# SchemasCommercePerUnitTotalTier +# CommercePerUnitTotalTier2 ## Fields diff --git a/docs/models/components/schemascommerceplan.md b/docs/models/components/commerceplan2.md similarity index 51% rename from docs/models/components/schemascommerceplan.md rename to docs/models/components/commerceplan2.md index a767d8d8..a7e05c10 100644 --- a/docs/models/components/schemascommerceplan.md +++ b/docs/models/components/commerceplan2.md @@ -1,36 +1,36 @@ -# SchemasCommercePlan +# CommercePlan2 ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SchemasCommercePlanObject](../../models/shared/schemascommerceplanobject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *::String* | :heavy_check_mark: | Unique identifier for the commerce plan. | -| `name` | *::String* | :heavy_check_mark: | The name of the commerce plan. | -| `fee` | [Crystalline::Nilable.new(Models::Components::SchemasCommercePlanFee)](../../models/shared/schemascommerceplanfee.md) | :heavy_check_mark: | N/A | -| `annual_monthly_fee` | [Crystalline::Nilable.new(Models::Components::SchemasCommercePlanAnnualMonthlyFee)](../../models/shared/schemascommerceplanannualmonthlyfee.md) | :heavy_check_mark: | N/A | -| `annual_fee` | [Crystalline::Nilable.new(Models::Components::SchemasCommercePlanAnnualFee)](../../models/shared/schemascommerceplanannualfee.md) | :heavy_check_mark: | N/A | -| `amount` | *::Integer* | :heavy_check_mark: | The amount in cents for the plan. | -| `amount_formatted` | *::String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `annual_monthly_amount` | *::Integer* | :heavy_check_mark: | The monthly amount in cents when billed annually. | -| `annual_monthly_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | -| `annual_amount` | *::Integer* | :heavy_check_mark: | The total annual amount in cents. | -| `annual_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual amount as a string. | -| `currency_symbol` | *::String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | -| `currency` | *::String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `description` | *::String* | :heavy_check_mark: | The description of the commerce plan. | -| `product_id` | *::String* | :heavy_check_mark: | The ID of the product this plan belongs to. | -| `is_default` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is the default plan. | -| `is_recurring` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is a recurring plan. | -| `publicly_visible` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan is publicly visible. | -| `has_base_fee` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan has a base fee. | -| `payer_type` | Crystalline::Array<*::String*> | :heavy_check_mark: | The types of payers that can use this plan. | -| `for_payer_type` | *::String* | :heavy_check_mark: | The payer type this plan is designed for. | -| `slug` | *::String* | :heavy_check_mark: | The URL-friendly slug for the plan. | -| `avatar_url` | *::String* | :heavy_check_mark: | The URL of the plan's avatar image. | -| `period` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The billing period for the plan. | -| `interval` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | The billing interval. | -| `features` | Crystalline::Array<[Models::Components::SchemasFeatureResponse](../../models/shared/schemasfeatureresponse.md)> | :heavy_check_mark: | The features included in this plan. | -| `free_trial_enabled` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | -| `free_trial_days` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::CommercePlan2Object](../../models/shared/commerceplan2object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *::String* | :heavy_check_mark: | Unique identifier for the commerce plan. | +| `name` | *::String* | :heavy_check_mark: | The name of the commerce plan. | +| `fee` | [Crystalline::Nilable.new(Models::Components::CommercePlan2Fee)](../../models/shared/commerceplan2fee.md) | :heavy_check_mark: | N/A | +| `annual_monthly_fee` | [Crystalline::Nilable.new(Models::Components::CommercePlan2AnnualMonthlyFee)](../../models/shared/commerceplan2annualmonthlyfee.md) | :heavy_check_mark: | N/A | +| `annual_fee` | [Crystalline::Nilable.new(Models::Components::CommercePlan2AnnualFee)](../../models/shared/commerceplan2annualfee.md) | :heavy_check_mark: | N/A | +| `amount` | *::Integer* | :heavy_check_mark: | The amount in cents for the plan. | +| `amount_formatted` | *::String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `annual_monthly_amount` | *::Integer* | :heavy_check_mark: | The monthly amount in cents when billed annually. | +| `annual_monthly_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | +| `annual_amount` | *::Integer* | :heavy_check_mark: | The total annual amount in cents. | +| `annual_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual amount as a string. | +| `currency_symbol` | *::String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | +| `currency` | *::String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `description` | *::String* | :heavy_check_mark: | The description of the commerce plan. | +| `product_id` | *::String* | :heavy_check_mark: | The ID of the product this plan belongs to. | +| `is_default` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is the default plan. | +| `is_recurring` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is a recurring plan. | +| `publicly_visible` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan is publicly visible. | +| `has_base_fee` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan has a base fee. | +| `payer_type` | Crystalline::Array<*::String*> | :heavy_check_mark: | The types of payers that can use this plan. | +| `for_payer_type` | *::String* | :heavy_check_mark: | The payer type this plan is designed for. | +| `slug` | *::String* | :heavy_check_mark: | The URL-friendly slug for the plan. | +| `avatar_url` | *::String* | :heavy_check_mark: | The URL of the plan's avatar image. | +| `period` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The billing period for the plan. | +| `interval` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | The billing interval. | +| `features` | Crystalline::Array<[Models::Components::FeatureResponse2](../../models/shared/featureresponse2.md)> | :heavy_check_mark: | The features included in this plan. | +| `free_trial_enabled` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | +| `free_trial_days` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/schemascommerceplanfee.md b/docs/models/components/commerceplan2annualfee.md similarity index 98% rename from docs/models/components/schemascommerceplanfee.md rename to docs/models/components/commerceplan2annualfee.md index 3720c883..bc8cf111 100644 --- a/docs/models/components/schemascommerceplanfee.md +++ b/docs/models/components/commerceplan2annualfee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanFee +# CommercePlan2AnnualFee ## Fields diff --git a/docs/models/components/schemascommercesubscriptionitemfee.md b/docs/models/components/commerceplan2annualmonthlyfee.md similarity index 97% rename from docs/models/components/schemascommercesubscriptionitemfee.md rename to docs/models/components/commerceplan2annualmonthlyfee.md index bb5d48c0..e56da86d 100644 --- a/docs/models/components/schemascommercesubscriptionitemfee.md +++ b/docs/models/components/commerceplan2annualmonthlyfee.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemFee +# CommercePlan2AnnualMonthlyFee ## Fields diff --git a/docs/models/components/schemascommerceplanannualfee.md b/docs/models/components/commerceplan2fee.md similarity index 97% rename from docs/models/components/schemascommerceplanannualfee.md rename to docs/models/components/commerceplan2fee.md index 665fe486..d1cf9abe 100644 --- a/docs/models/components/schemascommerceplanannualfee.md +++ b/docs/models/components/commerceplan2fee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanAnnualFee +# CommercePlan2Fee ## Fields diff --git a/docs/models/components/schemascommerceplanobject.md b/docs/models/components/commerceplan2object.md similarity index 77% rename from docs/models/components/schemascommerceplanobject.md rename to docs/models/components/commerceplan2object.md index 791d9a6b..f8e7f113 100644 --- a/docs/models/components/schemascommerceplanobject.md +++ b/docs/models/components/commerceplan2object.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanObject +# CommercePlan2Object String representing the object's type. Objects of the same type share the same value. @@ -7,7 +7,7 @@ String representing the object's type. Objects of the same type share the same v ```ruby require "clerk-sdk-ruby" -value = SchemasCommercePlanObject::COMMERCE_PLAN +value = CommercePlan2Object::COMMERCE_PLAN ``` diff --git a/docs/models/components/commercepricetransitiondetails.md b/docs/models/components/commercepricetransitiondetails.md index f79c3765..233db7ec 100644 --- a/docs/models/components/commercepricetransitiondetails.md +++ b/docs/models/components/commercepricetransitiondetails.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | -| `previous_plan` | [Models::Components::SchemasCommercePlan](../../models/shared/schemascommerceplan.md) | :heavy_check_mark: | N/A | +| `previous_plan` | [Models::Components::CommercePlan2](../../models/shared/commerceplan2.md) | :heavy_check_mark: | N/A | | `previous_price` | [Models::Components::BillingPriceResponse](../../models/shared/billingpriceresponse.md) | :heavy_check_mark: | N/A | | `effective_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (milliseconds) when the new price takes effect. | | `effective_mode` | [Models::Components::EffectiveMode](../../models/shared/effectivemode.md) | :heavy_check_mark: | When the new price takes effect. | diff --git a/docs/models/components/commercepricetransitionresponse.md b/docs/models/components/commercepricetransitionresponse.md index 6e4e1746..33b89d01 100644 --- a/docs/models/components/commercepricetransitionresponse.md +++ b/docs/models/components/commercepricetransitionresponse.md @@ -8,5 +8,5 @@ A commerce price transition. | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `object` | [Models::Components::CommercePriceTransitionResponseObject](../../models/shared/commercepricetransitionresponseobject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `subscription_item` | [Models::Components::SchemasCommerceSubscriptionItem](../../models/shared/schemascommercesubscriptionitem.md) | :heavy_check_mark: | N/A | +| `subscription_item` | [Models::Components::CommerceSubscriptionItem2](../../models/shared/commercesubscriptionitem2.md) | :heavy_check_mark: | N/A | | `transition` | [Models::Components::CommercePriceTransitionDetails](../../models/shared/commercepricetransitiondetails.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/commercesubscriptionitem2.md b/docs/models/components/commercesubscriptionitem2.md new file mode 100644 index 00000000..17c0715b --- /dev/null +++ b/docs/models/components/commercesubscriptionitem2.md @@ -0,0 +1,35 @@ +# CommerceSubscriptionItem2 + +A commerce subscription item. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::CommerceSubscriptionItem2ObjectCommerceSubscriptionItem](../../models/shared/commercesubscriptionitem2objectcommercesubscriptionitem.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *::String* | :heavy_check_mark: | Unique identifier for the subscription item. | +| `instance_id` | *::String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | +| `status` | [Models::Components::CommerceSubscriptionItem2Status](../../models/shared/commercesubscriptionitem2status.md) | :heavy_check_mark: | Current status of the subscription item. | +| `credit` | [Crystalline::Nilable.new(Models::Components::Credit)](../../models/shared/credit.md) | :heavy_minus_sign: | Credit information (only available in PaymentAttempt events). | +| `plan_id` | *::String* | :heavy_check_mark: | Unique identifier for the associated plan. | +| `price_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Unique identifier for the associated price | +| `plan` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2Plan)](../../models/shared/commercesubscriptionitem2plan.md) | :heavy_check_mark: | The associated commerce plan. | +| `plan_period` | [Models::Components::CommerceSubscriptionItem2PlanPeriod](../../models/shared/commercesubscriptionitem2planperiod.md) | :heavy_check_mark: | The billing period for this subscription. | +| `payment_source_id` | *::String* | :heavy_check_mark: | Unique identifier for the payment source. | +| `payment_source` | [Crystalline::Nilable.new(Models::Components::PaymentSource)](../../models/shared/paymentsource.md) | :heavy_minus_sign: | The payment source associated with this subscription. | +| `lifetime_paid` | [Crystalline::Nilable.new(Models::Components::LifetimePaid)](../../models/shared/lifetimepaid.md) | :heavy_minus_sign: | Total amount paid over the lifetime of this subscription. | +| `amount` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2Amount)](../../models/shared/commercesubscriptionitem2amount.md) | :heavy_minus_sign: | Current amount for this subscription. | +| `next_invoice` | [Crystalline::Nilable.new(Models::Components::NextInvoice)](../../models/shared/nextinvoice.md) | :heavy_minus_sign: | Information about the next invoice. | +| `next_payment` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPayment)](../../models/shared/commercesubscriptionitem2nextpayment.md) | :heavy_minus_sign: | Information about the next payment. | +| `payer_id` | *::String* | :heavy_check_mark: | Unique identifier for the payer. | +| `payer` | [Crystalline::Nilable.new(Models::Components::PayerCommercePayer)](../../models/shared/payercommercepayer.md) | :heavy_minus_sign: | The payer associated with this subscription. | +| `is_free_trial` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this subscription is currently on a free trial. | +| `period_start` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period started. | +| `period_end` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period ends. | +| `proration_date` | *::String* | :heavy_check_mark: | Date used for proration calculations. | +| `canceled_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription was canceled. | +| `past_due_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription became past due. | +| `ended_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription ended. | +| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was created. | +| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was last updated. | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemamount.md b/docs/models/components/commercesubscriptionitem2amount.md similarity index 97% rename from docs/models/components/schemascommercesubscriptionitemamount.md rename to docs/models/components/commercesubscriptionitem2amount.md index 46a6a147..9ffb33ed 100644 --- a/docs/models/components/schemascommercesubscriptionitemamount.md +++ b/docs/models/components/commercesubscriptionitem2amount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemAmount +# CommerceSubscriptionItem2Amount Current amount for this subscription. diff --git a/docs/models/components/schemascommerceplanannualmonthlyfee.md b/docs/models/components/commercesubscriptionitem2annualfee.md similarity index 97% rename from docs/models/components/schemascommerceplanannualmonthlyfee.md rename to docs/models/components/commercesubscriptionitem2annualfee.md index 3a4dc6bc..3bc20473 100644 --- a/docs/models/components/schemascommerceplanannualmonthlyfee.md +++ b/docs/models/components/commercesubscriptionitem2annualfee.md @@ -1,4 +1,4 @@ -# SchemasCommercePlanAnnualMonthlyFee +# CommerceSubscriptionItem2AnnualFee ## Fields diff --git a/docs/models/components/schemascommercesubscriptionitemannualfee.md b/docs/models/components/commercesubscriptionitem2annualmonthlyfee.md similarity index 96% rename from docs/models/components/schemascommercesubscriptionitemannualfee.md rename to docs/models/components/commercesubscriptionitem2annualmonthlyfee.md index b6fe9320..e8d17982 100644 --- a/docs/models/components/schemascommercesubscriptionitemannualfee.md +++ b/docs/models/components/commercesubscriptionitem2annualmonthlyfee.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemAnnualFee +# CommerceSubscriptionItem2AnnualMonthlyFee ## Fields diff --git a/docs/models/components/commercesubscriptionitem2fee.md b/docs/models/components/commercesubscriptionitem2fee.md new file mode 100644 index 00000000..7664dd02 --- /dev/null +++ b/docs/models/components/commercesubscriptionitem2fee.md @@ -0,0 +1,11 @@ +# CommerceSubscriptionItem2Fee + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `amount` | *::Integer* | :heavy_check_mark: | The amount in cents. | +| `amount_formatted` | *::String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `currency` | *::String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `currency_symbol` | *::String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | \ No newline at end of file diff --git a/docs/models/components/commercesubscriptionitem2nextpayment.md b/docs/models/components/commercesubscriptionitem2nextpayment.md new file mode 100644 index 00000000..d3228f5f --- /dev/null +++ b/docs/models/components/commercesubscriptionitem2nextpayment.md @@ -0,0 +1,13 @@ +# CommerceSubscriptionItem2NextPayment + +Information about the next payment. + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `amount` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentAmount)](../../models/shared/commercesubscriptionitem2nextpaymentamount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | +| `date` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | +| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal](../../models/shared/commerceperunittotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `totals` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentTotals)](../../models/shared/commercesubscriptionitem2nextpaymenttotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymentamount.md b/docs/models/components/commercesubscriptionitem2nextpaymentamount.md similarity index 96% rename from docs/models/components/schemascommercesubscriptionitemnextpaymentamount.md rename to docs/models/components/commercesubscriptionitem2nextpaymentamount.md index 0c689dc9..6dbd4933 100644 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymentamount.md +++ b/docs/models/components/commercesubscriptionitem2nextpaymentamount.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentAmount +# CommerceSubscriptionItem2NextPaymentAmount Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymentdiscounts.md b/docs/models/components/commercesubscriptionitem2nextpaymentcredits.md similarity index 59% rename from docs/models/components/schemascommercesubscriptionitemnextpaymentdiscounts.md rename to docs/models/components/commercesubscriptionitem2nextpaymentcredits.md index 58815475..d2fe2f9e 100644 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymentdiscounts.md +++ b/docs/models/components/commercesubscriptionitem2nextpaymentcredits.md @@ -1,9 +1,10 @@ -# SchemasCommerceSubscriptionItemNextPaymentDiscounts +# CommerceSubscriptionItem2NextPaymentCredits ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `proration` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscountsProration)](../../models/shared/schemascommercesubscriptionitemnextpaymentdiscountsproration.md) | :heavy_check_mark: | N/A | -| `total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `proration` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentCreditsProration)](../../models/shared/commercesubscriptionitem2nextpaymentcreditsproration.md) | :heavy_check_mark: | N/A | +| `payer` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentPayer)](../../models/shared/commercesubscriptionitem2nextpaymentpayer.md) | :heavy_check_mark: | N/A | +| `total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymentcreditsproration.md b/docs/models/components/commercesubscriptionitem2nextpaymentcreditsproration.md similarity index 97% rename from docs/models/components/schemascommercesubscriptionitemnextpaymentcreditsproration.md rename to docs/models/components/commercesubscriptionitem2nextpaymentcreditsproration.md index 6099b66e..ec1912d0 100644 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymentcreditsproration.md +++ b/docs/models/components/commercesubscriptionitem2nextpaymentcreditsproration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentCreditsProration +# CommerceSubscriptionItem2NextPaymentCreditsProration ## Fields diff --git a/docs/models/components/commercesubscriptionitem2nextpaymentdiscounts.md b/docs/models/components/commercesubscriptionitem2nextpaymentdiscounts.md new file mode 100644 index 00000000..f3e5779f --- /dev/null +++ b/docs/models/components/commercesubscriptionitem2nextpaymentdiscounts.md @@ -0,0 +1,9 @@ +# CommerceSubscriptionItem2NextPaymentDiscounts + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `proration` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentDiscountsProration)](../../models/shared/commercesubscriptionitem2nextpaymentdiscountsproration.md) | :heavy_check_mark: | N/A | +| `total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymentdiscountsproration.md b/docs/models/components/commercesubscriptionitem2nextpaymentdiscountsproration.md similarity index 97% rename from docs/models/components/schemascommercesubscriptionitemnextpaymentdiscountsproration.md rename to docs/models/components/commercesubscriptionitem2nextpaymentdiscountsproration.md index d7019568..b1e6e016 100644 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymentdiscountsproration.md +++ b/docs/models/components/commercesubscriptionitem2nextpaymentdiscountsproration.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentDiscountsProration +# CommerceSubscriptionItem2NextPaymentDiscountsProration ## Fields diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymentpayer.md b/docs/models/components/commercesubscriptionitem2nextpaymentpayer.md similarity index 96% rename from docs/models/components/schemascommercesubscriptionitemnextpaymentpayer.md rename to docs/models/components/commercesubscriptionitem2nextpaymentpayer.md index 35f2f53e..b446f01e 100644 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymentpayer.md +++ b/docs/models/components/commercesubscriptionitem2nextpaymentpayer.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemNextPaymentPayer +# CommerceSubscriptionItem2NextPaymentPayer ## Fields diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymenttotals.md b/docs/models/components/commercesubscriptionitem2nextpaymenttotals.md similarity index 50% rename from docs/models/components/schemascommercesubscriptionitemnextpaymenttotals.md rename to docs/models/components/commercesubscriptionitem2nextpaymenttotals.md index 75a51b16..b9de507b 100644 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymenttotals.md +++ b/docs/models/components/commercesubscriptionitem2nextpaymenttotals.md @@ -1,16 +1,16 @@ -# SchemasCommerceSubscriptionItemNextPaymentTotals +# CommerceSubscriptionItem2NextPaymentTotals Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `subtotal` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `base_fee` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `tax_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `grand_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal](../../models/shared/commerceperunittotal.md)> | :heavy_minus_sign: | N/A | -| `credits` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentCredits)](../../models/shared/schemascommercesubscriptionitemnextpaymentcredits.md) | :heavy_minus_sign: | N/A | -| `discounts` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscounts)](../../models/shared/schemascommercesubscriptionitemnextpaymentdiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `subtotal` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | +| `base_fee` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | +| `tax_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | +| `grand_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | +| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal](../../models/shared/commerceperunittotal.md)> | :heavy_minus_sign: | N/A | +| `credits` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentCredits)](../../models/shared/commercesubscriptionitem2nextpaymentcredits.md) | :heavy_minus_sign: | N/A | +| `discounts` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentDiscounts)](../../models/shared/commercesubscriptionitem2nextpaymentdiscounts.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemobjectcommercepayer.md b/docs/models/components/commercesubscriptionitem2objectcommercepayer.md similarity index 68% rename from docs/models/components/schemascommercesubscriptionitemobjectcommercepayer.md rename to docs/models/components/commercesubscriptionitem2objectcommercepayer.md index cf53b918..d29bb09a 100644 --- a/docs/models/components/schemascommercesubscriptionitemobjectcommercepayer.md +++ b/docs/models/components/commercesubscriptionitem2objectcommercepayer.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemObjectCommercePayer +# CommerceSubscriptionItem2ObjectCommercePayer String representing the object's type. Objects of the same type share the same value. @@ -7,7 +7,7 @@ String representing the object's type. Objects of the same type share the same v ```ruby require "clerk-sdk-ruby" -value = SchemasCommerceSubscriptionItemObjectCommercePayer::COMMERCE_PAYER +value = CommerceSubscriptionItem2ObjectCommercePayer::COMMERCE_PAYER ``` diff --git a/docs/models/components/schemascommercesubscriptionitemobjectcommerceplan.md b/docs/models/components/commercesubscriptionitem2objectcommerceplan.md similarity index 68% rename from docs/models/components/schemascommercesubscriptionitemobjectcommerceplan.md rename to docs/models/components/commercesubscriptionitem2objectcommerceplan.md index d4c39dc4..86833623 100644 --- a/docs/models/components/schemascommercesubscriptionitemobjectcommerceplan.md +++ b/docs/models/components/commercesubscriptionitem2objectcommerceplan.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemObjectCommercePlan +# CommerceSubscriptionItem2ObjectCommercePlan String representing the object's type. Objects of the same type share the same value. @@ -7,7 +7,7 @@ String representing the object's type. Objects of the same type share the same v ```ruby require "clerk-sdk-ruby" -value = SchemasCommerceSubscriptionItemObjectCommercePlan::COMMERCE_PLAN +value = CommerceSubscriptionItem2ObjectCommercePlan::COMMERCE_PLAN ``` diff --git a/docs/models/components/schemascommercesubscriptionitemobjectcommercesubscriptionitem.md b/docs/models/components/commercesubscriptionitem2objectcommercesubscriptionitem.md similarity index 68% rename from docs/models/components/schemascommercesubscriptionitemobjectcommercesubscriptionitem.md rename to docs/models/components/commercesubscriptionitem2objectcommercesubscriptionitem.md index c9565a19..f933d158 100644 --- a/docs/models/components/schemascommercesubscriptionitemobjectcommercesubscriptionitem.md +++ b/docs/models/components/commercesubscriptionitem2objectcommercesubscriptionitem.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem +# CommerceSubscriptionItem2ObjectCommerceSubscriptionItem String representing the object's type. Objects of the same type share the same value. @@ -7,7 +7,7 @@ String representing the object's type. Objects of the same type share the same v ```ruby require "clerk-sdk-ruby" -value = SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem::COMMERCE_SUBSCRIPTION_ITEM +value = CommerceSubscriptionItem2ObjectCommerceSubscriptionItem::COMMERCE_SUBSCRIPTION_ITEM ``` diff --git a/docs/models/components/commercesubscriptionitem2plan.md b/docs/models/components/commercesubscriptionitem2plan.md new file mode 100644 index 00000000..360ee060 --- /dev/null +++ b/docs/models/components/commercesubscriptionitem2plan.md @@ -0,0 +1,38 @@ +# CommerceSubscriptionItem2Plan + +The associated commerce plan. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::CommerceSubscriptionItem2ObjectCommercePlan](../../models/shared/commercesubscriptionitem2objectcommerceplan.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *::String* | :heavy_check_mark: | Unique identifier for the commerce plan. | +| `name` | *::String* | :heavy_check_mark: | The name of the commerce plan. | +| `fee` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2Fee)](../../models/shared/commercesubscriptionitem2fee.md) | :heavy_check_mark: | N/A | +| `annual_monthly_fee` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2AnnualMonthlyFee)](../../models/shared/commercesubscriptionitem2annualmonthlyfee.md) | :heavy_check_mark: | N/A | +| `annual_fee` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2AnnualFee)](../../models/shared/commercesubscriptionitem2annualfee.md) | :heavy_check_mark: | N/A | +| `amount` | *::Integer* | :heavy_check_mark: | The amount in cents for the plan. | +| `amount_formatted` | *::String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | +| `annual_monthly_amount` | *::Integer* | :heavy_check_mark: | The monthly amount in cents when billed annually. | +| `annual_monthly_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | +| `annual_amount` | *::Integer* | :heavy_check_mark: | The total annual amount in cents. | +| `annual_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual amount as a string. | +| `currency_symbol` | *::String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | +| `currency` | *::String* | :heavy_check_mark: | The currency code (e.g., "USD"). | +| `description` | *::String* | :heavy_check_mark: | The description of the commerce plan. | +| `product_id` | *::String* | :heavy_check_mark: | The ID of the product this plan belongs to. | +| `is_default` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is the default plan. | +| `is_recurring` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is a recurring plan. | +| `publicly_visible` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan is publicly visible. | +| `has_base_fee` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan has a base fee. | +| `payer_type` | Crystalline::Array<*::String*> | :heavy_check_mark: | The types of payers that can use this plan. | +| `for_payer_type` | *::String* | :heavy_check_mark: | The payer type this plan is designed for. | +| `slug` | *::String* | :heavy_check_mark: | The URL-friendly slug for the plan. | +| `avatar_url` | *::String* | :heavy_check_mark: | The URL of the plan's avatar image. | +| `period` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The billing period for the plan. | +| `interval` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | The billing interval. | +| `features` | Crystalline::Array<[Models::Components::FeatureResponse2](../../models/shared/featureresponse2.md)> | :heavy_check_mark: | The features included in this plan. | +| `free_trial_enabled` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | +| `free_trial_days` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemplanperiod.md b/docs/models/components/commercesubscriptionitem2planperiod.md similarity index 67% rename from docs/models/components/schemascommercesubscriptionitemplanperiod.md rename to docs/models/components/commercesubscriptionitem2planperiod.md index 7f9f7814..aa5aa3a0 100644 --- a/docs/models/components/schemascommercesubscriptionitemplanperiod.md +++ b/docs/models/components/commercesubscriptionitem2planperiod.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemPlanPeriod +# CommerceSubscriptionItem2PlanPeriod The billing period for this subscription. @@ -7,7 +7,7 @@ The billing period for this subscription. ```ruby require "clerk-sdk-ruby" -value = SchemasCommerceSubscriptionItemPlanPeriod::MONTH +value = CommerceSubscriptionItem2PlanPeriod::MONTH ``` diff --git a/docs/models/components/schemascommercesubscriptionitemstatus.md b/docs/models/components/commercesubscriptionitem2status.md similarity index 79% rename from docs/models/components/schemascommercesubscriptionitemstatus.md rename to docs/models/components/commercesubscriptionitem2status.md index 262d1279..ad44f79f 100644 --- a/docs/models/components/schemascommercesubscriptionitemstatus.md +++ b/docs/models/components/commercesubscriptionitem2status.md @@ -1,4 +1,4 @@ -# SchemasCommerceSubscriptionItemStatus +# CommerceSubscriptionItem2Status Current status of the subscription item. @@ -7,7 +7,7 @@ Current status of the subscription item. ```ruby require "clerk-sdk-ruby" -value = SchemasCommerceSubscriptionItemStatus::ACTIVE +value = CommerceSubscriptionItem2Status::ACTIVE ``` diff --git a/docs/models/components/commercesubscriptionitemtotals.md b/docs/models/components/commercesubscriptionitemtotals.md index 3f2c7ed7..0b69b28b 100644 --- a/docs/models/components/commercesubscriptionitemtotals.md +++ b/docs/models/components/commercesubscriptionitemtotals.md @@ -11,6 +11,6 @@ Totals for this subscription item. | `base_fee` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | | `tax_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | | `grand_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `per_unit_totals` | Crystalline::Array<[Models::Components::SchemasCommercePerUnitTotal](../../models/shared/schemascommerceperunittotal.md)> | :heavy_minus_sign: | N/A | +| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal2](../../models/shared/commerceperunittotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItemTotalsCredits)](../../models/shared/commercesubscriptionitemtotalscredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItemDiscounts)](../../models/shared/commercesubscriptionitemdiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/commercesubscriptionnextpayment.md b/docs/models/components/commercesubscriptionnextpayment.md index 04a7fd7e..4b7828ac 100644 --- a/docs/models/components/commercesubscriptionnextpayment.md +++ b/docs/models/components/commercesubscriptionnextpayment.md @@ -7,5 +7,5 @@ | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | `date` | *::Integer* | :heavy_check_mark: | Unix timestamp (milliseconds) of the next payment date. | | `amount` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `per_unit_totals` | Crystalline::Array<[Models::Components::SchemasCommercePerUnitTotal](../../models/shared/schemascommerceperunittotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | +| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal2](../../models/shared/commerceperunittotal2.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | | `totals` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionNextPaymentTotals)](../../models/shared/commercesubscriptionnextpaymenttotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/commercesubscriptionnextpaymenttotals.md b/docs/models/components/commercesubscriptionnextpaymenttotals.md index 2bcf804e..f55c4cab 100644 --- a/docs/models/components/commercesubscriptionnextpaymenttotals.md +++ b/docs/models/components/commercesubscriptionnextpaymenttotals.md @@ -11,6 +11,6 @@ Breakdown of the recurring amount that will be billed at renewal (base fee + per | `base_fee` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | | `tax_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | | `grand_total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | -| `per_unit_totals` | Crystalline::Array<[Models::Components::SchemasCommercePerUnitTotal](../../models/shared/schemascommerceperunittotal.md)> | :heavy_minus_sign: | N/A | +| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal2](../../models/shared/commerceperunittotal2.md)> | :heavy_minus_sign: | N/A | | `credits` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionNextPaymentCredits)](../../models/shared/commercesubscriptionnextpaymentcredits.md) | :heavy_minus_sign: | N/A | | `discounts` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionNextPaymentDiscounts)](../../models/shared/commercesubscriptionnextpaymentdiscounts.md) | :heavy_minus_sign: | Information about the discounts applied to the payment | \ No newline at end of file diff --git a/docs/models/components/emailaddressverificationsamlclerkerror.md b/docs/models/components/emailaddressverificationsamlclerkerror.md index 930ec53c..ae788a85 100644 --- a/docs/models/components/emailaddressverificationsamlclerkerror.md +++ b/docs/models/components/emailaddressverificationsamlclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::EmailAddressVerificationSamlMeta)](../../models/shared/emailaddressverificationsamlmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/emailaddressverificationsamlmeta.md b/docs/models/components/emailaddressverificationsamlmeta.md deleted file mode 100644 index da0ce91b..00000000 --- a/docs/models/components/emailaddressverificationsamlmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# EmailAddressVerificationSamlMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/enrollmentmode.md b/docs/models/components/enrollmentmode.md index d878ebb2..0f21c24f 100644 --- a/docs/models/components/enrollmentmode.md +++ b/docs/models/components/enrollmentmode.md @@ -17,4 +17,5 @@ value = EnrollmentMode::MANUAL_INVITATION | ---------------------- | ---------------------- | | `MANUAL_INVITATION` | manual_invitation | | `AUTOMATIC_INVITATION` | automatic_invitation | -| `AUTOMATIC_SUGGESTION` | automatic_suggestion | \ No newline at end of file +| `AUTOMATIC_SUGGESTION` | automatic_suggestion | +| `ENTERPRISE_SSO` | enterprise_sso | \ No newline at end of file diff --git a/docs/models/components/enterpriseaccountverificationoauthclerkerror.md b/docs/models/components/enterpriseaccountverificationoauthclerkerror.md index ecdfc0e7..91ffbaa4 100644 --- a/docs/models/components/enterpriseaccountverificationoauthclerkerror.md +++ b/docs/models/components/enterpriseaccountverificationoauthclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::EnterpriseAccountVerificationOauthMeta)](../../models/shared/enterpriseaccountverificationoauthmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/enterpriseaccountverificationoauthmeta.md b/docs/models/components/enterpriseaccountverificationoauthmeta.md deleted file mode 100644 index 7f3b51d8..00000000 --- a/docs/models/components/enterpriseaccountverificationoauthmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# EnterpriseAccountVerificationOauthMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/enterpriseaccountverificationsamlclerkerror.md b/docs/models/components/enterpriseaccountverificationsamlclerkerror.md index ed86149e..7e650fa0 100644 --- a/docs/models/components/enterpriseaccountverificationsamlclerkerror.md +++ b/docs/models/components/enterpriseaccountverificationsamlclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::EnterpriseAccountVerificationSamlMeta)](../../models/shared/enterpriseaccountverificationsamlmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/enterpriseaccountverificationsamlmeta.md b/docs/models/components/enterpriseaccountverificationsamlmeta.md deleted file mode 100644 index 58678891..00000000 --- a/docs/models/components/enterpriseaccountverificationsamlmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# EnterpriseAccountVerificationSamlMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/externalaccountwithverificationverificationoauthclerkerror.md b/docs/models/components/externalaccountwithverificationverificationoauthclerkerror.md index 611598e3..0ca0180f 100644 --- a/docs/models/components/externalaccountwithverificationverificationoauthclerkerror.md +++ b/docs/models/components/externalaccountwithverificationverificationoauthclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::ExternalAccountWithVerificationVerificationOauthMeta)](../../models/shared/externalaccountwithverificationverificationoauthmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/externalaccountwithverificationverificationoauthmeta.md b/docs/models/components/externalaccountwithverificationverificationoauthmeta.md deleted file mode 100644 index c73606e2..00000000 --- a/docs/models/components/externalaccountwithverificationverificationoauthmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# ExternalAccountWithVerificationVerificationOauthMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/featureresponse2.md b/docs/models/components/featureresponse2.md new file mode 100644 index 00000000..a7745210 --- /dev/null +++ b/docs/models/components/featureresponse2.md @@ -0,0 +1,13 @@ +# FeatureResponse2 + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::FeatureResponse2Object](../../models/shared/featureresponse2object.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *::String* | :heavy_check_mark: | Unique identifier for the feature. | +| `name` | *::String* | :heavy_check_mark: | The name of the feature. | +| `description` | *::String* | :heavy_check_mark: | The description of the feature. | +| `slug` | *::String* | :heavy_check_mark: | The URL-friendly slug for the feature. | +| `avatar_url` | *::String* | :heavy_check_mark: | The URL of the feature's avatar image. | \ No newline at end of file diff --git a/docs/models/components/schemasfeatureresponseobject.md b/docs/models/components/featureresponse2object.md similarity index 75% rename from docs/models/components/schemasfeatureresponseobject.md rename to docs/models/components/featureresponse2object.md index 4bd89419..14725874 100644 --- a/docs/models/components/schemasfeatureresponseobject.md +++ b/docs/models/components/featureresponse2object.md @@ -1,4 +1,4 @@ -# SchemasFeatureResponseObject +# FeatureResponse2Object String representing the object's type. Objects of the same type share the same value. @@ -7,7 +7,7 @@ String representing the object's type. Objects of the same type share the same v ```ruby require "clerk-sdk-ruby" -value = SchemasFeatureResponseObject::FEATURE +value = FeatureResponse2Object::FEATURE ``` diff --git a/docs/models/components/payercommercepayer.md b/docs/models/components/payercommercepayer.md index cd2feb00..5980c07c 100644 --- a/docs/models/components/payercommercepayer.md +++ b/docs/models/components/payercommercepayer.md @@ -5,18 +5,18 @@ The payer associated with this subscription. ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer](../../models/shared/schemascommercesubscriptionitemobjectcommercepayer.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *::String* | :heavy_check_mark: | Unique identifier for the payer. | -| `instance_id` | *::String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | -| `user_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | User ID for user-type payers. | -| `first_name` | *::String* | :heavy_check_mark: | First name of the payer. | -| `last_name` | *::String* | :heavy_check_mark: | Last name of the payer. | -| `email` | *::String* | :heavy_check_mark: | Email address of the payer. | -| `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Organization ID for org-type payers. | -| `organization_name` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Organization name for org-type payers. | -| `image_url` | *::String* | :heavy_check_mark: | URL of the payer's image/avatar. | -| `credits_balance` | [Crystalline::Nilable.new(Models::Components::CommerceMoneyResponse)](../../models/shared/commercemoneyresponse.md) | :heavy_minus_sign: | N/A | -| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was created. | -| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was last updated. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::CommerceSubscriptionItem2ObjectCommercePayer](../../models/shared/commercesubscriptionitem2objectcommercepayer.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | +| `id` | *::String* | :heavy_check_mark: | Unique identifier for the payer. | +| `instance_id` | *::String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | +| `user_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | User ID for user-type payers. | +| `first_name` | *::String* | :heavy_check_mark: | First name of the payer. | +| `last_name` | *::String* | :heavy_check_mark: | Last name of the payer. | +| `email` | *::String* | :heavy_check_mark: | Email address of the payer. | +| `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Organization ID for org-type payers. | +| `organization_name` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Organization name for org-type payers. | +| `image_url` | *::String* | :heavy_check_mark: | URL of the payer's image/avatar. | +| `credits_balance` | [Crystalline::Nilable.new(Models::Components::CommerceMoneyResponse)](../../models/shared/commercemoneyresponse.md) | :heavy_minus_sign: | N/A | +| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was created. | +| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the payer was last updated. | \ No newline at end of file diff --git a/docs/models/components/samlaccountclerkerror.md b/docs/models/components/samlaccountclerkerror.md index 84b180e7..c03ede76 100644 --- a/docs/models/components/samlaccountclerkerror.md +++ b/docs/models/components/samlaccountclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::SAMLAccountMeta)](../../models/shared/samlaccountmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/samlaccountmeta.md b/docs/models/components/samlaccountmeta.md deleted file mode 100644 index 1e0c82bb..00000000 --- a/docs/models/components/samlaccountmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# SAMLAccountMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/samlconnection1.md b/docs/models/components/samlconnection1.md index 1a3f7297..8cccf429 100644 --- a/docs/models/components/samlconnection1.md +++ b/docs/models/components/samlconnection1.md @@ -3,32 +3,34 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SAMLConnectionObject1](../../models/shared/samlconnectionobject1.md) | :heavy_check_mark: | N/A | -| `id` | *::String* | :heavy_check_mark: | N/A | -| `name` | *::String* | :heavy_check_mark: | N/A | -| ~~`domain`~~ | *::String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `domains` | Crystalline::Array<*::String*> | :heavy_minus_sign: | N/A | -| `idp_entity_id` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | -| `idp_sso_url` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | -| `idp_certificate` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | -| `idp_metadata_url` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `idp_metadata` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `acs_url` | *::String* | :heavy_check_mark: | N/A | -| `sp_entity_id` | *::String* | :heavy_check_mark: | N/A | -| `sp_metadata_url` | *::String* | :heavy_check_mark: | N/A | -| `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `attribute_mapping` | [Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping)](../../models/shared/samlconnectionattributemapping.md) | :heavy_minus_sign: | N/A | -| `active` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `provider` | *::String* | :heavy_check_mark: | N/A | -| `user_count` | *::Integer* | :heavy_check_mark: | N/A | -| `sync_user_attributes` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `allow_subdomains` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `allow_idp_initiated` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `disable_additional_identifications` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `allow_organization_account_linking` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `force_authn` | *Crystalline::Boolean.new* | :heavy_check_mark: | Enable or deactivate ForceAuthn | -| `enterprise_connection_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of creation.
| -| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::SAMLConnectionObject1](../../models/shared/samlconnectionobject1.md) | :heavy_check_mark: | N/A | +| `id` | *::String* | :heavy_check_mark: | N/A | +| `name` | *::String* | :heavy_check_mark: | N/A | +| ~~`domain`~~ | *::String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `domains` | Crystalline::Array<*::String*> | :heavy_minus_sign: | N/A | +| `idp_entity_id` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | +| `idp_sso_url` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | +| `idp_certificate` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | +| `idp_certificate_issued_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_check_mark: | Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
| +| `idp_certificate_expires_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_check_mark: | Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
| +| `idp_metadata_url` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `idp_metadata` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `acs_url` | *::String* | :heavy_check_mark: | N/A | +| `sp_entity_id` | *::String* | :heavy_check_mark: | N/A | +| `sp_metadata_url` | *::String* | :heavy_check_mark: | N/A | +| `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `attribute_mapping` | [Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping)](../../models/shared/samlconnectionattributemapping.md) | :heavy_minus_sign: | N/A | +| `active` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `provider` | *::String* | :heavy_check_mark: | N/A | +| `user_count` | *::Integer* | :heavy_check_mark: | N/A | +| `sync_user_attributes` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `allow_subdomains` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `allow_idp_initiated` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `disable_additional_identifications` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `allow_organization_account_linking` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `force_authn` | *Crystalline::Boolean.new* | :heavy_check_mark: | Enable or deactivate ForceAuthn | +| `enterprise_connection_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of creation.
| +| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file diff --git a/docs/models/components/samlconnection2.md b/docs/models/components/samlconnection2.md index 9e326e0b..cfc0ecad 100644 --- a/docs/models/components/samlconnection2.md +++ b/docs/models/components/samlconnection2.md @@ -3,32 +3,34 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SAMLConnectionObject2](../../models/shared/samlconnectionobject2.md) | :heavy_check_mark: | N/A | -| `id` | *::String* | :heavy_check_mark: | N/A | -| `name` | *::String* | :heavy_check_mark: | N/A | -| ~~`domain`~~ | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `domains` | Crystalline::Array<*::String*> | :heavy_check_mark: | N/A | -| `idp_entity_id` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | -| `idp_sso_url` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | -| `idp_certificate` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | -| `idp_metadata_url` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `idp_metadata` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `acs_url` | *::String* | :heavy_check_mark: | N/A | -| `sp_entity_id` | *::String* | :heavy_check_mark: | N/A | -| `sp_metadata_url` | *::String* | :heavy_check_mark: | N/A | -| `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `attribute_mapping` | [Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping)](../../models/shared/samlconnectionattributemapping.md) | :heavy_minus_sign: | N/A | -| `active` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `provider` | *::String* | :heavy_check_mark: | N/A | -| `user_count` | *::Integer* | :heavy_check_mark: | N/A | -| `sync_user_attributes` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `allow_subdomains` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `allow_idp_initiated` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `disable_additional_identifications` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `allow_organization_account_linking` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | -| `force_authn` | *Crystalline::Boolean.new* | :heavy_check_mark: | Enable or deactivate ForceAuthn | -| `enterprise_connection_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | -| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of creation.
| -| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | +| `object` | [Models::Components::SAMLConnectionObject2](../../models/shared/samlconnectionobject2.md) | :heavy_check_mark: | N/A | +| `id` | *::String* | :heavy_check_mark: | N/A | +| `name` | *::String* | :heavy_check_mark: | N/A | +| ~~`domain`~~ | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `domains` | Crystalline::Array<*::String*> | :heavy_check_mark: | N/A | +| `idp_entity_id` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | +| `idp_sso_url` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | +| `idp_certificate` | *Crystalline::Nilable.new(::String)* | :heavy_check_mark: | N/A | +| `idp_certificate_issued_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_check_mark: | Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured.
| +| `idp_certificate_expires_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_check_mark: | Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured.
| +| `idp_metadata_url` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `idp_metadata` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `acs_url` | *::String* | :heavy_check_mark: | N/A | +| `sp_entity_id` | *::String* | :heavy_check_mark: | N/A | +| `sp_metadata_url` | *::String* | :heavy_check_mark: | N/A | +| `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `attribute_mapping` | [Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping)](../../models/shared/samlconnectionattributemapping.md) | :heavy_minus_sign: | N/A | +| `active` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `provider` | *::String* | :heavy_check_mark: | N/A | +| `user_count` | *::Integer* | :heavy_check_mark: | N/A | +| `sync_user_attributes` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `allow_subdomains` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `allow_idp_initiated` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `disable_additional_identifications` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `allow_organization_account_linking` | *Crystalline::Boolean.new* | :heavy_check_mark: | N/A | +| `force_authn` | *Crystalline::Boolean.new* | :heavy_check_mark: | Enable or deactivate ForceAuthn | +| `enterprise_connection_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | N/A | +| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of creation.
| +| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp of last update.
| \ No newline at end of file diff --git a/docs/models/components/schemascommerceperunittotal.md b/docs/models/components/schemascommerceperunittotal.md deleted file mode 100644 index 29705852..00000000 --- a/docs/models/components/schemascommerceperunittotal.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommercePerUnitTotal - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `name` | *::String* | :heavy_check_mark: | Name of the billable unit (for example, seats) | -| `block_size` | *::Integer* | :heavy_check_mark: | Number of units included in each pricing block | -| `tiers` | Crystalline::Array<[Models::Components::SchemasCommercePerUnitTotalTier](../../models/shared/schemascommerceperunittotaltier.md)> | :heavy_check_mark: | Computed totals for each pricing tier | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitem.md b/docs/models/components/schemascommercesubscriptionitem.md deleted file mode 100644 index 9ad0eb09..00000000 --- a/docs/models/components/schemascommercesubscriptionitem.md +++ /dev/null @@ -1,35 +0,0 @@ -# SchemasCommerceSubscriptionItem - -A commerce subscription item. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem](../../models/shared/schemascommercesubscriptionitemobjectcommercesubscriptionitem.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *::String* | :heavy_check_mark: | Unique identifier for the subscription item. | -| `instance_id` | *::String* | :heavy_check_mark: | Unique identifier for the Clerk instance. | -| `status` | [Models::Components::SchemasCommerceSubscriptionItemStatus](../../models/shared/schemascommercesubscriptionitemstatus.md) | :heavy_check_mark: | Current status of the subscription item. | -| `credit` | [Crystalline::Nilable.new(Models::Components::Credit)](../../models/shared/credit.md) | :heavy_minus_sign: | Credit information (only available in PaymentAttempt events). | -| `plan_id` | *::String* | :heavy_check_mark: | Unique identifier for the associated plan. | -| `price_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Unique identifier for the associated price | -| `plan` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemPlan)](../../models/shared/schemascommercesubscriptionitemplan.md) | :heavy_check_mark: | The associated commerce plan. | -| `plan_period` | [Models::Components::SchemasCommerceSubscriptionItemPlanPeriod](../../models/shared/schemascommercesubscriptionitemplanperiod.md) | :heavy_check_mark: | The billing period for this subscription. | -| `payment_source_id` | *::String* | :heavy_check_mark: | Unique identifier for the payment source. | -| `payment_source` | [Crystalline::Nilable.new(Models::Components::PaymentSource)](../../models/shared/paymentsource.md) | :heavy_minus_sign: | The payment source associated with this subscription. | -| `lifetime_paid` | [Crystalline::Nilable.new(Models::Components::LifetimePaid)](../../models/shared/lifetimepaid.md) | :heavy_minus_sign: | Total amount paid over the lifetime of this subscription. | -| `amount` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemAmount)](../../models/shared/schemascommercesubscriptionitemamount.md) | :heavy_minus_sign: | Current amount for this subscription. | -| `next_invoice` | [Crystalline::Nilable.new(Models::Components::NextInvoice)](../../models/shared/nextinvoice.md) | :heavy_minus_sign: | Information about the next invoice. | -| `next_payment` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPayment)](../../models/shared/schemascommercesubscriptionitemnextpayment.md) | :heavy_minus_sign: | Information about the next payment. | -| `payer_id` | *::String* | :heavy_check_mark: | Unique identifier for the payer. | -| `payer` | [Crystalline::Nilable.new(Models::Components::PayerCommercePayer)](../../models/shared/payercommercepayer.md) | :heavy_minus_sign: | The payer associated with this subscription. | -| `is_free_trial` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this subscription is currently on a free trial. | -| `period_start` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period started. | -| `period_end` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the current period ends. | -| `proration_date` | *::String* | :heavy_check_mark: | Date used for proration calculations. | -| `canceled_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription was canceled. | -| `past_due_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription became past due. | -| `ended_at` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) when the subscription ended. | -| `created_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was created. | -| `updated_at` | *::Integer* | :heavy_check_mark: | Unix timestamp (in milliseconds) when the subscription was last updated. | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemannualmonthlyfee.md b/docs/models/components/schemascommercesubscriptionitemannualmonthlyfee.md deleted file mode 100644 index 7a2525a7..00000000 --- a/docs/models/components/schemascommercesubscriptionitemannualmonthlyfee.md +++ /dev/null @@ -1,11 +0,0 @@ -# SchemasCommerceSubscriptionItemAnnualMonthlyFee - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `amount` | *::Integer* | :heavy_check_mark: | The amount in cents. | -| `amount_formatted` | *::String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `currency` | *::String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `currency_symbol` | *::String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemnextpayment.md b/docs/models/components/schemascommercesubscriptionitemnextpayment.md deleted file mode 100644 index 99a6b034..00000000 --- a/docs/models/components/schemascommercesubscriptionitemnextpayment.md +++ /dev/null @@ -1,13 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPayment - -Information about the next payment. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `amount` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentAmount)](../../models/shared/schemascommercesubscriptionitemnextpaymentamount.md) | :heavy_minus_sign: | Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. | -| `date` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Unix timestamp (in milliseconds) for the next payment date. | -| `per_unit_totals` | Crystalline::Array<[Models::Components::CommercePerUnitTotal](../../models/shared/commerceperunittotal.md)> | :heavy_minus_sign: | Per-unit total breakdown (for example, seats) for the next payment. | -| `totals` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentTotals)](../../models/shared/schemascommercesubscriptionitemnextpaymenttotals.md) | :heavy_minus_sign: | Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemnextpaymentcredits.md b/docs/models/components/schemascommercesubscriptionitemnextpaymentcredits.md deleted file mode 100644 index 871e62c6..00000000 --- a/docs/models/components/schemascommercesubscriptionitemnextpaymentcredits.md +++ /dev/null @@ -1,10 +0,0 @@ -# SchemasCommerceSubscriptionItemNextPaymentCredits - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `proration` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentCreditsProration)](../../models/shared/schemascommercesubscriptionitemnextpaymentcreditsproration.md) | :heavy_check_mark: | N/A | -| `payer` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentPayer)](../../models/shared/schemascommercesubscriptionitemnextpaymentpayer.md) | :heavy_check_mark: | N/A | -| `total` | [Models::Components::CommerceMoneyResponse](../../models/shared/commercemoneyresponse.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/components/schemascommercesubscriptionitemplan.md b/docs/models/components/schemascommercesubscriptionitemplan.md deleted file mode 100644 index d14c0a91..00000000 --- a/docs/models/components/schemascommercesubscriptionitemplan.md +++ /dev/null @@ -1,38 +0,0 @@ -# SchemasCommerceSubscriptionItemPlan - -The associated commerce plan. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SchemasCommerceSubscriptionItemObjectCommercePlan](../../models/shared/schemascommercesubscriptionitemobjectcommerceplan.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *::String* | :heavy_check_mark: | Unique identifier for the commerce plan. | -| `name` | *::String* | :heavy_check_mark: | The name of the commerce plan. | -| `fee` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemFee)](../../models/shared/schemascommercesubscriptionitemfee.md) | :heavy_check_mark: | N/A | -| `annual_monthly_fee` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemAnnualMonthlyFee)](../../models/shared/schemascommercesubscriptionitemannualmonthlyfee.md) | :heavy_check_mark: | N/A | -| `annual_fee` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemAnnualFee)](../../models/shared/schemascommercesubscriptionitemannualfee.md) | :heavy_check_mark: | N/A | -| `amount` | *::Integer* | :heavy_check_mark: | The amount in cents for the plan. | -| `amount_formatted` | *::String* | :heavy_check_mark: | The formatted amount as a string (e.g., "$49.99"). | -| `annual_monthly_amount` | *::Integer* | :heavy_check_mark: | The monthly amount in cents when billed annually. | -| `annual_monthly_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual monthly amount as a string. | -| `annual_amount` | *::Integer* | :heavy_check_mark: | The total annual amount in cents. | -| `annual_amount_formatted` | *::String* | :heavy_check_mark: | The formatted annual amount as a string. | -| `currency_symbol` | *::String* | :heavy_check_mark: | The currency symbol (e.g., "$"). | -| `currency` | *::String* | :heavy_check_mark: | The currency code (e.g., "USD"). | -| `description` | *::String* | :heavy_check_mark: | The description of the commerce plan. | -| `product_id` | *::String* | :heavy_check_mark: | The ID of the product this plan belongs to. | -| `is_default` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is the default plan. | -| `is_recurring` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this is a recurring plan. | -| `publicly_visible` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan is publicly visible. | -| `has_base_fee` | *Crystalline::Boolean.new* | :heavy_check_mark: | Whether this plan has a base fee. | -| `payer_type` | Crystalline::Array<*::String*> | :heavy_check_mark: | The types of payers that can use this plan. | -| `for_payer_type` | *::String* | :heavy_check_mark: | The payer type this plan is designed for. | -| `slug` | *::String* | :heavy_check_mark: | The URL-friendly slug for the plan. | -| `avatar_url` | *::String* | :heavy_check_mark: | The URL of the plan's avatar image. | -| `period` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The billing period for the plan. | -| `interval` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | The billing interval. | -| `features` | Crystalline::Array<[Models::Components::SchemasFeatureResponse](../../models/shared/schemasfeatureresponse.md)> | :heavy_check_mark: | The features included in this plan. | -| `free_trial_enabled` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | Whether free trial is enabled for this plan. | -| `free_trial_days` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Number of free trial days for this plan. | \ No newline at end of file diff --git a/docs/models/components/schemasfeatureresponse.md b/docs/models/components/schemasfeatureresponse.md deleted file mode 100644 index 7630f969..00000000 --- a/docs/models/components/schemasfeatureresponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SchemasFeatureResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `object` | [Models::Components::SchemasFeatureResponseObject](../../models/shared/schemasfeatureresponseobject.md) | :heavy_check_mark: | String representing the object's type. Objects of the same type share the same value. | -| `id` | *::String* | :heavy_check_mark: | Unique identifier for the feature. | -| `name` | *::String* | :heavy_check_mark: | The name of the feature. | -| `description` | *::String* | :heavy_check_mark: | The description of the feature. | -| `slug` | *::String* | :heavy_check_mark: | The URL-friendly slug for the feature. | -| `avatar_url` | *::String* | :heavy_check_mark: | The URL of the feature's avatar image. | \ No newline at end of file diff --git a/docs/models/components/seats.md b/docs/models/components/seats.md index 46dafbd8..b473dc67 100644 --- a/docs/models/components/seats.md +++ b/docs/models/components/seats.md @@ -5,7 +5,7 @@ Seat quantity for seat-based billing. ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `quantity` | *Crystalline::Nilable.new(::Integer)* | :heavy_check_mark: | Seat quantity being billed; null means unlimited | -| `tiers` | Crystalline::Array<[Models::Components::SchemasCommercePerUnitTotalTier](../../models/shared/schemascommerceperunittotaltier.md)> | :heavy_minus_sign: | Per-unit cost breakdown by pricing tier | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `quantity` | *Crystalline::Nilable.new(::Integer)* | :heavy_check_mark: | Seat quantity being billed; null means unlimited | +| `tiers` | Crystalline::Array<[Models::Components::CommercePerUnitTotalTier2](../../models/shared/commerceperunittotaltier2.md)> | :heavy_minus_sign: | Per-unit cost breakdown by pricing tier | \ No newline at end of file diff --git a/docs/models/components/verificationfromoauthclerkerror.md b/docs/models/components/verificationfromoauthclerkerror.md index 58754115..bb0d295a 100644 --- a/docs/models/components/verificationfromoauthclerkerror.md +++ b/docs/models/components/verificationfromoauthclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::VerificationFromOauthMeta)](../../models/shared/verificationfromoauthmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/verificationfromoauthmeta.md b/docs/models/components/verificationfromoauthmeta.md deleted file mode 100644 index 2eaf07e3..00000000 --- a/docs/models/components/verificationfromoauthmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# VerificationFromOauthMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/verificationgoogleonetapclerkerror.md b/docs/models/components/verificationgoogleonetapclerkerror.md index 17900722..950691b2 100644 --- a/docs/models/components/verificationgoogleonetapclerkerror.md +++ b/docs/models/components/verificationgoogleonetapclerkerror.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `message` | *::String* | :heavy_check_mark: | N/A | -| `long_message` | *::String* | :heavy_check_mark: | N/A | -| `code` | *::String* | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::VerificationGoogleOneTapMeta)](../../models/shared/verificationgoogleonetapmeta.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `message` | *::String* | :heavy_check_mark: | N/A | +| `long_message` | *::String* | :heavy_check_mark: | N/A | +| `code` | *::String* | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/verificationgoogleonetapmeta.md b/docs/models/components/verificationgoogleonetapmeta.md deleted file mode 100644 index 06ece015..00000000 --- a/docs/models/components/verificationgoogleonetapmeta.md +++ /dev/null @@ -1,7 +0,0 @@ -# VerificationGoogleOneTapMeta - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/errors/clerkerrors.md b/docs/models/errors/clerkerrors.md index 82465614..e0648d59 100644 --- a/docs/models/errors/clerkerrors.md +++ b/docs/models/errors/clerkerrors.md @@ -5,8 +5,8 @@ Request was not successful ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `errors` | Crystalline::Array<[Models::Components::ClerkError](../../models/shared/clerkerror.md)> | :heavy_check_mark: | N/A | -| `meta` | [Crystalline::Nilable.new(Models::Components::ClerkErrorsMeta)](../../models/shared/clerkerrorsmeta.md) | :heavy_minus_sign: | N/A | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `errors` | Crystalline::Array<[Models::Components::ClerkError](../../models/shared/clerkerror.md)> | :heavy_check_mark: | N/A | +| `meta` | Crystalline::Hash[Symbol, *::Object*] | :heavy_minus_sign: | N/A | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/createorganizationdomainrequestbody.md b/docs/models/operations/createorganizationdomainrequestbody.md index a713a538..884921bb 100644 --- a/docs/models/operations/createorganizationdomainrequestbody.md +++ b/docs/models/operations/createorganizationdomainrequestbody.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `name` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The name of the new domain | -| `enrollment_mode` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` | -| `verified` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | The status of domain's verification. Defaults to true | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The name of the new domain | +| `enrollment_mode` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` | +| `verified` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | The status of domain's verification. Defaults to true | \ No newline at end of file diff --git a/docs/models/operations/enrollmentmode.md b/docs/models/operations/enrollmentmode.md index 2ccedbd5..56dba26e 100644 --- a/docs/models/operations/enrollmentmode.md +++ b/docs/models/operations/enrollmentmode.md @@ -11,8 +11,13 @@ value = EnrollmentMode::MANUAL_INVITATION ## Values -| Name | Value | -| ---------------------- | ---------------------- | -| `MANUAL_INVITATION` | manual_invitation | -| `AUTOMATIC_INVITATION` | automatic_invitation | -| `AUTOMATIC_SUGGESTION` | automatic_suggestion | \ No newline at end of file +| Name | Value | +| ---------------------------- | ---------------------------- | +| `MANUAL_INVITATION` | manual_invitation | +| `AUTOMATIC_INVITATION` | automatic_invitation | +| `AUTOMATIC_SUGGESTION` | automatic_suggestion | +| `ENTERPRISE_SSO` | enterprise_sso | +| `MINUS_MANUAL_INVITATION` | -manual_invitation | +| `MINUS_AUTOMATIC_INVITATION` | -automatic_invitation | +| `MINUS_AUTOMATIC_SUGGESTION` | -automatic_suggestion | +| `MINUS_ENTERPRISE_SSO` | -enterprise_sso | \ No newline at end of file diff --git a/docs/models/operations/extendbillingsubscriptionitemfreetrialresponse.md b/docs/models/operations/extendbillingsubscriptionitemfreetrialresponse.md index 7064aff8..195d1a96 100644 --- a/docs/models/operations/extendbillingsubscriptionitemfreetrialresponse.md +++ b/docs/models/operations/extendbillingsubscriptionitemfreetrialresponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | -| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `schemas_commerce_subscription_item` | [Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItem)](../../models/shared/schemascommercesubscriptionitem.md) | :heavy_minus_sign: | A commerce subscription item. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `commerce_subscription_item_2` | [Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2)](../../models/shared/commercesubscriptionitem2.md) | :heavy_minus_sign: | A commerce subscription item. | \ No newline at end of file diff --git a/docs/models/operations/listallorganizationdomainsrequest.md b/docs/models/operations/listallorganizationdomainsrequest.md index d81988e4..109a3218 100644 --- a/docs/models/operations/listallorganizationdomainsrequest.md +++ b/docs/models/operations/listallorganizationdomainsrequest.md @@ -7,7 +7,7 @@ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `organization_id` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The ID of the organization to filter domains by | | `verified` | [Crystalline::Nilable.new(Models::Operations::Verified)](../../models/operations/verified.md) | :heavy_minus_sign: | Filter by verification status | -| `enrollment_mode` | Crystalline::Array<[Models::Operations::EnrollmentMode](../../models/operations/enrollmentmode.md)> | :heavy_minus_sign: | Filter by enrollment mode | +| `enrollment_mode` | Crystalline::Array<[Models::Operations::EnrollmentMode](../../models/operations/enrollmentmode.md)> | :heavy_minus_sign: | Filter by enrollment mode. Prefix a value with `-` to exclude it instead
(e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. | | `query` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Search domains by name or organization ID.
If the query starts with "org_", it will search by exact organization ID match.
Otherwise, it performs a case-insensitive partial match on the domain name.

Note: An empty string or whitespace-only value is not allowed and will result in a validation error.
| | `domains` | Crystalline::Array<*::String*> | :heavy_minus_sign: | Filter by exact domain names. Accepts multiple values (e.g. domains=example.com&domains=test.org). | | `order_by` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Allows to return organization domains in a particular order.
At the moment, you can order the returned domains by their `name` or `created_at`.
In order to specify the direction, you can use the `+/-` symbols prepended to the property to order by.
For example, if you want domains to be returned in descending order according to their `created_at` property, you can use `-created_at`.
If you don't use `+` or `-`, then `+` is implied.
Defaults to `-created_at`.
| diff --git a/docs/models/operations/listorganizationdomainsrequest.md b/docs/models/operations/listorganizationdomainsrequest.md index 6cedf9ef..15ccff19 100644 --- a/docs/models/operations/listorganizationdomainsrequest.md +++ b/docs/models/operations/listorganizationdomainsrequest.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| `organization_id` | *::String* | :heavy_check_mark: | The organization ID. | -| `verified` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Filter domains by their verification status. `true` or `false` | -| `enrollment_mode` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Filter domains by their enrollment mode | -| `limit` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | -| `offset` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `organization_id` | *::String* | :heavy_check_mark: | The organization ID. | +| `verified` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Filter domains by their verification status. `true` or `false` | +| `enrollment_mode` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso`.
Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. | +| `limit` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Applies a limit to the number of results returned.
Can be used for paginating the results together with `offset`. | +| `offset` | *Crystalline::Nilable.new(::Integer)* | :heavy_minus_sign: | Skip the first `offset` results when paginating.
Needs to be an integer greater or equal to zero.
To be used in conjunction with `limit`. | \ No newline at end of file diff --git a/docs/models/operations/revokeoauthapplicationtokenrequest.md b/docs/models/operations/revokeoauthapplicationtokenrequest.md new file mode 100644 index 00000000..71caa702 --- /dev/null +++ b/docs/models/operations/revokeoauthapplicationtokenrequest.md @@ -0,0 +1,9 @@ +# RevokeOAuthApplicationTokenRequest + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `oauth_application_id` | *::String* | :heavy_check_mark: | The ID of the OAuth application for which to revoke the token | +| `body` | [Models::Operations::RevokeOAuthApplicationTokenRequestBody](../../models/operations/revokeoauthapplicationtokenrequestbody.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/revokeoauthapplicationtokenrequestbody.md b/docs/models/operations/revokeoauthapplicationtokenrequestbody.md new file mode 100644 index 00000000..4f0b67bb --- /dev/null +++ b/docs/models/operations/revokeoauthapplicationtokenrequestbody.md @@ -0,0 +1,8 @@ +# RevokeOAuthApplicationTokenRequestBody + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `token` | *::String* | :heavy_check_mark: | The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth grant are also revoked. | \ No newline at end of file diff --git a/docs/models/operations/revokeoauthapplicationtokenresponse.md b/docs/models/operations/revokeoauthapplicationtokenresponse.md new file mode 100644 index 00000000..ea2b23e9 --- /dev/null +++ b/docs/models/operations/revokeoauthapplicationtokenresponse.md @@ -0,0 +1,10 @@ +# RevokeOAuthApplicationTokenResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `content_type` | *::String* | :heavy_check_mark: | HTTP response content type for this operation | +| `status_code` | *::Integer* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [Faraday::Response](https://www.rubydoc.info/gems/faraday/Faraday/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/updateorganizationdomainrequestbody.md b/docs/models/operations/updateorganizationdomainrequestbody.md index 0a5e0b7d..6cdc2f7b 100644 --- a/docs/models/operations/updateorganizationdomainrequestbody.md +++ b/docs/models/operations/updateorganizationdomainrequestbody.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `enrollment_mode` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` | -| `verified` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | The status of the domain's verification | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------- | +| `enrollment_mode` | *Crystalline::Nilable.new(::String)* | :heavy_minus_sign: | The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` | +| `verified` | *Crystalline::Nilable.new(Crystalline::Boolean.new)* | :heavy_minus_sign: | The status of the domain's verification | \ No newline at end of file diff --git a/docs/sdks/billing/README.md b/docs/sdks/billing/README.md index 93bbbc1d..0df1ce25 100644 --- a/docs/sdks/billing/README.md +++ b/docs/sdks/billing/README.md @@ -254,7 +254,7 @@ res = s.billing.extend_subscription_item_free_trial(subscription_item_id: '' extend_to: DateTime.iso8601('2026-01-08T00:00:00Z') )) -unless res.schemas_commerce_subscription_item.nil? +unless res.commerce_subscription_item_2.nil? # handle response end diff --git a/docs/sdks/oauthapplications/README.md b/docs/sdks/oauthapplications/README.md index a8f48c6c..e3b7a6bb 100644 --- a/docs/sdks/oauthapplications/README.md +++ b/docs/sdks/oauthapplications/README.md @@ -11,6 +11,7 @@ * [delete](#delete) - Delete an OAuth application * [upload_logo](#upload_logo) - Upload a logo for the OAuth application * [rotate_secret](#rotate_secret) - Rotate the client secret of the given OAuth application +* [revoke_token](#revoke_token) - Revoke an OAuth application token ## list @@ -305,4 +306,48 @@ end | Error Type | Status Code | Content Type | | --------------------------- | --------------------------- | --------------------------- | | Models::Errors::ClerkErrors | 403, 404 | application/json | +| Errors::APIError | 4XX, 5XX | \*/\* | + +## revoke_token + +Revoke both OAuth access token and refresh token for the associated grant for the given OAuth application. +The request may specify either token. +JWT access tokens cannot be revoked. + +### Example Usage + + +```ruby +require 'clerk_sdk_ruby' + +Models = ::Clerk::Models +s = ::Clerk::OpenAPIClient.new( + bearer_auth: '' +) +res = s.oauth_applications.revoke_token(oauth_application_id: '', body: Models::Operations::RevokeOAuthApplicationTokenRequestBody.new( + token: '' +)) + +if res.status_code == 200 + # handle response +end + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `oauth_application_id` | *::String* | :heavy_check_mark: | The ID of the OAuth application for which to revoke the token | +| `body` | [Models::Operations::RevokeOAuthApplicationTokenRequestBody](../../models/operations/revokeoauthapplicationtokenrequestbody.md) | :heavy_check_mark: | N/A | + +### Response + +**[Crystalline::Nilable.new(Models::Operations::RevokeOAuthApplicationTokenResponse)](../../models/operations/revokeoauthapplicationtokenresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| Models::Errors::ClerkErrors | 400, 403, 404, 422 | application/json | | Errors::APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/organizationdomains/README.md b/docs/sdks/organizationdomains/README.md index a4580641..e7d98fe2 100644 --- a/docs/sdks/organizationdomains/README.md +++ b/docs/sdks/organizationdomains/README.md @@ -132,7 +132,7 @@ end | Error Type | Status Code | Content Type | | --------------------------- | --------------------------- | --------------------------- | -| Models::Errors::ClerkErrors | 400, 404, 422 | application/json | +| Models::Errors::ClerkErrors | 400, 403, 404, 422 | application/json | | Errors::APIError | 4XX, 5XX | \*/\* | ## delete @@ -172,7 +172,7 @@ end | Error Type | Status Code | Content Type | | --------------------------- | --------------------------- | --------------------------- | -| Models::Errors::ClerkErrors | 400, 401, 404 | application/json | +| Models::Errors::ClerkErrors | 400, 401, 403, 404 | application/json | | Errors::APIError | 4XX, 5XX | \*/\* | ## verify_ownership diff --git a/docs/sdks/users/README.md b/docs/sdks/users/README.md index d8bec262..7918bb8d 100644 --- a/docs/sdks/users/README.md +++ b/docs/sdks/users/README.md @@ -1411,6 +1411,8 @@ end Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in. +If the user is in reserved-email password quarantine, the quarantine is preserved and the returned user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can only be cleared by completing a password reset or changing/removing the password. + ### Example Usage diff --git a/lib/clerk/actortokens.rb b/lib/clerk/actortokens.rb index 065a83b6..48051798 100644 --- a/lib/clerk/actortokens.rb +++ b/lib/clerk/actortokens.rb @@ -80,7 +80,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -96,7 +96,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -133,13 +133,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -225,7 +225,7 @@ def revoke(actor_token_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -241,7 +241,7 @@ def revoke(actor_token_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -277,13 +277,13 @@ def revoke(actor_token_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/admin_portal_link_tokens.rb b/lib/clerk/admin_portal_link_tokens.rb index 560bc155..523301fa 100644 --- a/lib/clerk/admin_portal_link_tokens.rb +++ b/lib/clerk/admin_portal_link_tokens.rb @@ -79,7 +79,7 @@ def create_admin_portal_link_token(request:, retries: nil, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def create_admin_portal_link_token(request:, retries: nil, timeout_ms: nil, http error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def create_admin_portal_link_token(request:, retries: nil, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['201']) if Utils.match_content_type(content_type, 'application/json') @@ -280,7 +280,7 @@ def revoke_admin_portal_link_token(body:, admin_portal_link_token_id:, retries: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -296,7 +296,7 @@ def revoke_admin_portal_link_token(body:, admin_portal_link_token_id:, retries: error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -333,13 +333,13 @@ def revoke_admin_portal_link_token(body:, admin_portal_link_token_id:, retries: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/agenttasks.rb b/lib/clerk/agenttasks.rb index bcd6109c..1d332a3e 100644 --- a/lib/clerk/agenttasks.rb +++ b/lib/clerk/agenttasks.rb @@ -81,7 +81,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -97,7 +97,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -134,13 +134,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -226,7 +226,7 @@ def revoke(agent_task_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -242,7 +242,7 @@ def revoke(agent_task_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -278,13 +278,13 @@ def revoke(agent_task_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/allowlistidentifiers.rb b/lib/clerk/allowlistidentifiers.rb index 6c3cd9f5..c44f25a0 100644 --- a/lib/clerk/allowlistidentifiers.rb +++ b/lib/clerk/allowlistidentifiers.rb @@ -75,7 +75,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -91,7 +91,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -128,13 +128,13 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -222,7 +222,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -238,7 +238,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -275,13 +275,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -367,7 +367,7 @@ def delete(identifier_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -383,7 +383,7 @@ def delete(identifier_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -419,13 +419,13 @@ def delete(identifier_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/api_keys.rb b/lib/clerk/api_keys.rb index 9e234afe..251d1307 100644 --- a/lib/clerk/api_keys.rb +++ b/lib/clerk/api_keys.rb @@ -79,7 +79,7 @@ def create_api_key(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def create_api_key(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def create_api_key(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -231,7 +231,7 @@ def get_api_keys(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -247,7 +247,7 @@ def get_api_keys(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -284,13 +284,13 @@ def get_api_keys(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -390,7 +390,7 @@ def get_api_key(api_key_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -406,7 +406,7 @@ def get_api_key(api_key_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -442,13 +442,13 @@ def get_api_key(api_key_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -560,7 +560,7 @@ def update_api_key(body:, api_key_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -576,7 +576,7 @@ def update_api_key(body:, api_key_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -613,13 +613,13 @@ def update_api_key(body:, api_key_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -719,7 +719,7 @@ def delete_api_key(api_key_id:, retries: nil, timeout_ms: nil, http_headers: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -735,7 +735,7 @@ def delete_api_key(api_key_id:, retries: nil, timeout_ms: nil, http_headers: nil error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -771,13 +771,13 @@ def delete_api_key(api_key_id:, retries: nil, timeout_ms: nil, http_headers: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -877,7 +877,7 @@ def get_api_key_secret(api_key_id:, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -893,7 +893,7 @@ def get_api_key_secret(api_key_id:, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -929,13 +929,13 @@ def get_api_key_secret(api_key_id:, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1047,7 +1047,7 @@ def revoke_api_key(body:, api_key_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1063,7 +1063,7 @@ def revoke_api_key(body:, api_key_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1100,13 +1100,13 @@ def revoke_api_key(body:, api_key_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1209,7 +1209,7 @@ def verify_api_key(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1225,7 +1225,7 @@ def verify_api_key(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1262,13 +1262,13 @@ def verify_api_key(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/betafeatures.rb b/lib/clerk/betafeatures.rb index 4d499573..590df998 100644 --- a/lib/clerk/betafeatures.rb +++ b/lib/clerk/betafeatures.rb @@ -79,7 +79,7 @@ def update_instance_settings(request: nil, retries: nil, timeout_ms: nil, http_h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def update_instance_settings(request: nil, retries: nil, timeout_ms: nil, http_h error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -132,13 +132,13 @@ def update_instance_settings(request: nil, retries: nil, timeout_ms: nil, http_h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -232,7 +232,7 @@ def update_production_instance_domain(request: nil, retries: nil, timeout_ms: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -248,7 +248,7 @@ def update_production_instance_domain(request: nil, retries: nil, timeout_ms: ni error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -285,13 +285,13 @@ def update_production_instance_domain(request: nil, retries: nil, timeout_ms: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['202']) http_response = @sdk_configuration.hooks.after_success( diff --git a/lib/clerk/billing.rb b/lib/clerk/billing.rb index 84ebb7a7..7f7a9830 100644 --- a/lib/clerk/billing.rb +++ b/lib/clerk/billing.rb @@ -77,7 +77,7 @@ def list_plans(paginated: nil, limit: nil, offset: nil, payer_type: nil, retries timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -93,7 +93,7 @@ def list_plans(paginated: nil, limit: nil, offset: nil, payer_type: nil, retries error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -130,13 +130,13 @@ def list_plans(paginated: nil, limit: nil, offset: nil, payer_type: nil, retries response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -237,7 +237,7 @@ def list_prices(paginated: nil, limit: nil, offset: nil, plan_id: nil, retries: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -253,7 +253,7 @@ def list_prices(paginated: nil, limit: nil, offset: nil, plan_id: nil, retries: error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -290,13 +290,13 @@ def list_prices(paginated: nil, limit: nil, offset: nil, plan_id: nil, retries: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -401,7 +401,7 @@ def create_price(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -417,7 +417,7 @@ def create_price(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -454,13 +454,13 @@ def create_price(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -555,7 +555,7 @@ def list_subscription_items(request:, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -571,7 +571,7 @@ def list_subscription_items(request:, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -608,13 +608,13 @@ def list_subscription_items(request:, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -717,7 +717,7 @@ def cancel_subscription_item(subscription_item_id:, end_now: nil, retries: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -733,7 +733,7 @@ def cancel_subscription_item(subscription_item_id:, end_now: nil, retries: nil, error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -770,13 +770,13 @@ def cancel_subscription_item(subscription_item_id:, end_now: nil, retries: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -892,7 +892,7 @@ def extend_subscription_item_free_trial(body:, subscription_item_id:, retries: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -908,7 +908,7 @@ def extend_subscription_item_free_trial(body:, subscription_item_id:, retries: n error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -945,13 +945,13 @@ def extend_subscription_item_free_trial(body:, subscription_item_id:, retries: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -962,12 +962,12 @@ def extend_subscription_item_free_trial(body:, subscription_item_id:, retries: n response: http_response ) response_data = http_response.env.response_body - obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::SchemasCommerceSubscriptionItem) + obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Components::CommerceSubscriptionItem2) response = Models::Operations::ExtendBillingSubscriptionItemFreeTrialResponse.new( status_code: http_response.status, content_type: content_type, raw_response: http_response, - schemas_commerce_subscription_item: obj + commerce_subscription_item_2: obj ) return response @@ -1065,7 +1065,7 @@ def create_price_transition(body:, subscription_item_id:, retries: nil, timeout_ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1081,7 +1081,7 @@ def create_price_transition(body:, subscription_item_id:, retries: nil, timeout_ error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1118,13 +1118,13 @@ def create_price_transition(body:, subscription_item_id:, retries: nil, timeout_ response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1224,7 +1224,7 @@ def list_statements(paginated: nil, limit: nil, offset: nil, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1240,7 +1240,7 @@ def list_statements(paginated: nil, limit: nil, offset: nil, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1277,13 +1277,13 @@ def list_statements(paginated: nil, limit: nil, offset: nil, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1384,7 +1384,7 @@ def get_statement(statement_id:, retries: nil, timeout_ms: nil, http_headers: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1400,7 +1400,7 @@ def get_statement(statement_id:, retries: nil, timeout_ms: nil, http_headers: ni error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1436,13 +1436,13 @@ def get_statement(statement_id:, retries: nil, timeout_ms: nil, http_headers: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1548,7 +1548,7 @@ def get_statement_payment_attempts(statement_id:, paginated: nil, limit: nil, of timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1564,7 +1564,7 @@ def get_statement_payment_attempts(statement_id:, paginated: nil, limit: nil, of error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1601,13 +1601,13 @@ def get_statement_payment_attempts(statement_id:, paginated: nil, limit: nil, of response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/blocklistidentifiers.rb b/lib/clerk/blocklistidentifiers.rb index 00256e46..6f2c0ce6 100644 --- a/lib/clerk/blocklistidentifiers.rb +++ b/lib/clerk/blocklistidentifiers.rb @@ -69,7 +69,7 @@ def list(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -85,7 +85,7 @@ def list(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -121,13 +121,13 @@ def list(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -215,7 +215,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -231,7 +231,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -268,13 +268,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -360,7 +360,7 @@ def delete(identifier_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -376,7 +376,7 @@ def delete(identifier_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -412,13 +412,13 @@ def delete(identifier_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/clients.rb b/lib/clerk/clients.rb index 1ec9d57c..4f7dc36e 100644 --- a/lib/clerk/clients.rb +++ b/lib/clerk/clients.rb @@ -79,7 +79,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -132,13 +132,13 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -226,7 +226,7 @@ def verify(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -242,7 +242,7 @@ def verify(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -279,13 +279,13 @@ def verify(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -371,7 +371,7 @@ def get(client_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -387,7 +387,7 @@ def get(client_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -423,13 +423,13 @@ def get(client_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/domains.rb b/lib/clerk/domains.rb index c6a44130..9eb5868f 100644 --- a/lib/clerk/domains.rb +++ b/lib/clerk/domains.rb @@ -70,7 +70,7 @@ def list(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -86,7 +86,7 @@ def list(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -122,13 +122,13 @@ def list(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -205,7 +205,7 @@ def add(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -221,7 +221,7 @@ def add(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -258,13 +258,13 @@ def add(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -351,7 +351,7 @@ def delete(domain_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -367,7 +367,7 @@ def delete(domain_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -403,13 +403,13 @@ def delete(domain_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -514,7 +514,7 @@ def update(body:, domain_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -530,7 +530,7 @@ def update(body:, domain_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -567,13 +567,13 @@ def update(body:, domain_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/emailaddresses.rb b/lib/clerk/emailaddresses.rb index 75417a4e..00b748b4 100644 --- a/lib/clerk/emailaddresses.rb +++ b/lib/clerk/emailaddresses.rb @@ -79,7 +79,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -224,7 +224,7 @@ def get(email_address_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -240,7 +240,7 @@ def get(email_address_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -276,13 +276,13 @@ def get(email_address_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -368,7 +368,7 @@ def delete(email_address_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -384,7 +384,7 @@ def delete(email_address_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -420,13 +420,13 @@ def delete(email_address_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -523,7 +523,7 @@ def update(email_address_id:, body: nil, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -539,7 +539,7 @@ def update(email_address_id:, body: nil, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -576,13 +576,13 @@ def update(email_address_id:, body: nil, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -671,7 +671,7 @@ def prepare_verification(email_address_id:, retries: nil, timeout_ms: nil, http_ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -687,7 +687,7 @@ def prepare_verification(email_address_id:, retries: nil, timeout_ms: nil, http_ error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -723,13 +723,13 @@ def prepare_verification(email_address_id:, retries: nil, timeout_ms: nil, http_ response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -852,7 +852,7 @@ def attempt_verification(body:, email_address_id:, retries: nil, timeout_ms: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -868,7 +868,7 @@ def attempt_verification(body:, email_address_id:, retries: nil, timeout_ms: nil error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -905,13 +905,13 @@ def attempt_verification(body:, email_address_id:, retries: nil, timeout_ms: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1029,7 +1029,7 @@ def replace_for_user(body:, user_id:, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1045,7 +1045,7 @@ def replace_for_user(body:, user_id:, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -1082,13 +1082,13 @@ def replace_for_user(body:, user_id:, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/emailandsmstemplates.rb b/lib/clerk/emailandsmstemplates.rb index 5eb9d068..6ed2e1d4 100644 --- a/lib/clerk/emailandsmstemplates.rb +++ b/lib/clerk/emailandsmstemplates.rb @@ -91,7 +91,7 @@ def upsert(template_type:, slug:, body: nil, retries: nil, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -107,7 +107,7 @@ def upsert(template_type:, slug:, body: nil, retries: nil, timeout_ms: nil, http error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -144,13 +144,13 @@ def upsert(template_type:, slug:, body: nil, retries: nil, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/emailsmstemplates.rb b/lib/clerk/emailsmstemplates.rb index f1926338..5120c452 100644 --- a/lib/clerk/emailsmstemplates.rb +++ b/lib/clerk/emailsmstemplates.rb @@ -84,7 +84,7 @@ def list(template_type:, paginated: nil, limit: nil, offset: nil, retries: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -100,7 +100,7 @@ def list(template_type:, paginated: nil, limit: nil, offset: nil, retries: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -137,13 +137,13 @@ def list(template_type:, paginated: nil, limit: nil, offset: nil, retries: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -232,7 +232,7 @@ def get(template_type:, slug:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -248,7 +248,7 @@ def get(template_type:, slug:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -284,13 +284,13 @@ def get(template_type:, slug:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -379,7 +379,7 @@ def revert(template_type:, slug:, retries: nil, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -395,7 +395,7 @@ def revert(template_type:, slug:, retries: nil, timeout_ms: nil, http_headers: n error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -431,13 +431,13 @@ def revert(template_type:, slug:, retries: nil, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -539,7 +539,7 @@ def toggle_template_delivery(template_type:, slug:, body: nil, retries: nil, tim timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -555,7 +555,7 @@ def toggle_template_delivery(template_type:, slug:, body: nil, retries: nil, tim error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -592,13 +592,13 @@ def toggle_template_delivery(template_type:, slug:, body: nil, retries: nil, tim response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/enterpriseconnections.rb b/lib/clerk/enterpriseconnections.rb index f11d05ef..77b33810 100644 --- a/lib/clerk/enterpriseconnections.rb +++ b/lib/clerk/enterpriseconnections.rb @@ -77,7 +77,7 @@ def list(limit: nil, offset: nil, organization_id: nil, active: nil, retries: ni timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -93,7 +93,7 @@ def list(limit: nil, offset: nil, organization_id: nil, active: nil, retries: ni error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -130,13 +130,13 @@ def list(limit: nil, offset: nil, organization_id: nil, active: nil, retries: ni response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -224,7 +224,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -240,7 +240,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -277,13 +277,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['201']) if Utils.match_content_type(content_type, 'application/json') @@ -369,7 +369,7 @@ def get(enterprise_connection_id:, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -385,7 +385,7 @@ def get(enterprise_connection_id:, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -421,13 +421,13 @@ def get(enterprise_connection_id:, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -526,7 +526,7 @@ def update(body:, enterprise_connection_id:, retries: nil, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -542,7 +542,7 @@ def update(body:, enterprise_connection_id:, retries: nil, timeout_ms: nil, http error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -579,13 +579,13 @@ def update(body:, enterprise_connection_id:, retries: nil, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -671,7 +671,7 @@ def delete(enterprise_connection_id:, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -687,7 +687,7 @@ def delete(enterprise_connection_id:, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -723,13 +723,13 @@ def delete(enterprise_connection_id:, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -819,7 +819,7 @@ def list_test_runs(enterprise_connection_id:, status: nil, limit: nil, offset: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -835,7 +835,7 @@ def list_test_runs(enterprise_connection_id:, status: nil, limit: nil, offset: n error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -872,13 +872,13 @@ def list_test_runs(enterprise_connection_id:, status: nil, limit: nil, offset: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -964,7 +964,7 @@ def create_test_run(enterprise_connection_id:, retries: nil, timeout_ms: nil, ht timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -980,7 +980,7 @@ def create_test_run(enterprise_connection_id:, retries: nil, timeout_ms: nil, ht error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -1016,13 +1016,13 @@ def create_test_run(enterprise_connection_id:, retries: nil, timeout_ms: nil, ht response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/instancesettings.rb b/lib/clerk/instancesettings.rb index 95a620cb..5a9d0e80 100644 --- a/lib/clerk/instancesettings.rb +++ b/lib/clerk/instancesettings.rb @@ -69,7 +69,7 @@ def get(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -85,7 +85,7 @@ def get(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -121,13 +121,13 @@ def get(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -200,7 +200,7 @@ def update(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -216,7 +216,7 @@ def update(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -253,13 +253,13 @@ def update(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) http_response = @sdk_configuration.hooks.after_success( @@ -338,7 +338,7 @@ def update_restrictions(request: nil, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -354,7 +354,7 @@ def update_restrictions(request: nil, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -391,13 +391,13 @@ def update_restrictions(request: nil, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -475,7 +475,7 @@ def get_communication(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -491,7 +491,7 @@ def get_communication(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -527,13 +527,13 @@ def get_communication(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -610,7 +610,7 @@ def update_communication(request: nil, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -626,7 +626,7 @@ def update_communication(request: nil, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -663,13 +663,13 @@ def update_communication(request: nil, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -747,7 +747,7 @@ def get_o_auth_application_settings(retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -763,7 +763,7 @@ def get_o_auth_application_settings(retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -799,13 +799,13 @@ def get_o_auth_application_settings(retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -878,7 +878,7 @@ def update_o_auth_application_settings(request: nil, retries: nil, timeout_ms: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -894,7 +894,7 @@ def update_o_auth_application_settings(request: nil, retries: nil, timeout_ms: n error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -931,13 +931,13 @@ def update_o_auth_application_settings(request: nil, retries: nil, timeout_ms: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1029,7 +1029,7 @@ def change_domain(request: nil, retries: nil, timeout_ms: nil, http_headers: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1045,7 +1045,7 @@ def change_domain(request: nil, retries: nil, timeout_ms: nil, http_headers: nil error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1082,13 +1082,13 @@ def change_domain(request: nil, retries: nil, timeout_ms: nil, http_headers: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['202']) http_response = @sdk_configuration.hooks.after_success( @@ -1157,7 +1157,7 @@ def get_organization_settings(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1173,7 +1173,7 @@ def get_organization_settings(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1209,13 +1209,13 @@ def get_organization_settings(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1303,7 +1303,7 @@ def update_organization_settings(request: nil, retries: nil, timeout_ms: nil, ht timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1319,7 +1319,7 @@ def update_organization_settings(request: nil, retries: nil, timeout_ms: nil, ht error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -1356,13 +1356,13 @@ def update_organization_settings(request: nil, retries: nil, timeout_ms: nil, ht response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1439,7 +1439,7 @@ def get_instance_protect(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1455,7 +1455,7 @@ def get_instance_protect(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1491,13 +1491,13 @@ def get_instance_protect(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1569,7 +1569,7 @@ def update_instance_protect(request: nil, retries: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1585,7 +1585,7 @@ def update_instance_protect(request: nil, retries: nil, timeout_ms: nil, http_he error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -1622,13 +1622,13 @@ def update_instance_protect(request: nil, retries: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/invitations.rb b/lib/clerk/invitations.rb index 8fa588c3..5efffe40 100644 --- a/lib/clerk/invitations.rb +++ b/lib/clerk/invitations.rb @@ -81,7 +81,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -97,7 +97,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -134,13 +134,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -219,7 +219,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -235,7 +235,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -272,13 +272,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -356,7 +356,7 @@ def bulk_create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -372,7 +372,7 @@ def bulk_create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -409,13 +409,13 @@ def bulk_create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -504,7 +504,7 @@ def revoke(invitation_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -520,7 +520,7 @@ def revoke(invitation_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -556,13 +556,13 @@ def revoke(invitation_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/jwks.rb b/lib/clerk/jwks.rb index d211291a..3ae7f6e0 100644 --- a/lib/clerk/jwks.rb +++ b/lib/clerk/jwks.rb @@ -69,7 +69,7 @@ def get_jwks(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -85,7 +85,7 @@ def get_jwks(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -121,13 +121,13 @@ def get_jwks(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/jwttemplates.rb b/lib/clerk/jwttemplates.rb index dd8e8efe..3ea6c8ac 100644 --- a/lib/clerk/jwttemplates.rb +++ b/lib/clerk/jwttemplates.rb @@ -74,7 +74,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -90,7 +90,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -127,13 +127,13 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -206,7 +206,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -222,7 +222,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -259,13 +259,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -351,7 +351,7 @@ def get(template_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -367,7 +367,7 @@ def get(template_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -403,13 +403,13 @@ def get(template_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -506,7 +506,7 @@ def update(template_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -522,7 +522,7 @@ def update(template_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -559,13 +559,13 @@ def update(template_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -650,7 +650,7 @@ def delete(template_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -666,7 +666,7 @@ def delete(template_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -702,13 +702,13 @@ def delete(template_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/m2m.rb b/lib/clerk/m2m.rb index 4ce6131f..c1f49da8 100644 --- a/lib/clerk/m2m.rb +++ b/lib/clerk/m2m.rb @@ -80,7 +80,7 @@ def create_token(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -96,7 +96,7 @@ def create_token(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -133,13 +133,13 @@ def create_token(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['201']) if Utils.match_content_type(content_type, 'application/json') @@ -240,7 +240,7 @@ def list_tokens(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -256,7 +256,7 @@ def list_tokens(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -293,13 +293,13 @@ def list_tokens(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -434,7 +434,7 @@ def revoke_token(body:, m2m_token_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -450,7 +450,7 @@ def revoke_token(body:, m2m_token_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -487,13 +487,13 @@ def revoke_token(body:, m2m_token_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -602,7 +602,7 @@ def verify_token(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -618,7 +618,7 @@ def verify_token(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -655,13 +655,13 @@ def verify_token(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/machines.rb b/lib/clerk/machines.rb index 36fe724e..33beeba4 100644 --- a/lib/clerk/machines.rb +++ b/lib/clerk/machines.rb @@ -78,7 +78,7 @@ def list(limit: nil, offset: nil, query: nil, order_by: nil, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -94,7 +94,7 @@ def list(limit: nil, offset: nil, query: nil, order_by: nil, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -131,13 +131,13 @@ def list(limit: nil, offset: nil, query: nil, order_by: nil, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -225,7 +225,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -241,7 +241,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -278,13 +278,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -370,7 +370,7 @@ def get(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -386,7 +386,7 @@ def get(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -422,13 +422,13 @@ def get(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -526,7 +526,7 @@ def update(machine_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -542,7 +542,7 @@ def update(machine_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -579,13 +579,13 @@ def update(machine_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -671,7 +671,7 @@ def delete(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -687,7 +687,7 @@ def delete(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -723,13 +723,13 @@ def delete(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -815,7 +815,7 @@ def get_secret_key(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -831,7 +831,7 @@ def get_secret_key(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -867,13 +867,13 @@ def get_secret_key(machine_id:, retries: nil, timeout_ms: nil, http_headers: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -973,7 +973,7 @@ def rotate_secret_key(body:, machine_id:, retries: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -989,7 +989,7 @@ def rotate_secret_key(body:, machine_id:, retries: nil, timeout_ms: nil, http_he error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1026,13 +1026,13 @@ def rotate_secret_key(body:, machine_id:, retries: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1130,7 +1130,7 @@ def create_scope(machine_id:, body: nil, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1146,7 +1146,7 @@ def create_scope(machine_id:, body: nil, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1183,13 +1183,13 @@ def create_scope(machine_id:, body: nil, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1276,7 +1276,7 @@ def delete_scope(machine_id:, other_machine_id:, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1292,7 +1292,7 @@ def delete_scope(machine_id:, other_machine_id:, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -1328,13 +1328,13 @@ def delete_scope(machine_id:, other_machine_id:, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/miscellaneous.rb b/lib/clerk/miscellaneous.rb index ab295323..0daf7ffb 100644 --- a/lib/clerk/miscellaneous.rb +++ b/lib/clerk/miscellaneous.rb @@ -69,7 +69,7 @@ def get_public_interstitial(request:, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -85,7 +85,7 @@ def get_public_interstitial(request:, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -121,13 +121,13 @@ def get_public_interstitial(request:, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) http_response = @sdk_configuration.hooks.after_success( diff --git a/lib/clerk/models/components.rb b/lib/clerk/models/components.rb index 6a09ea97..271f50d5 100644 --- a/lib/clerk/models/components.rb +++ b/lib/clerk/models/components.rb @@ -39,8 +39,6 @@ module Components autoload :BlocklistIdentifiers, 'clerk/models/components/blocklistidentifiers.rb' autoload :CNameTarget, 'clerk/models/components/cnametarget.rb' autoload :ClerkError, 'clerk/models/components/clerkerror.rb' - autoload :ClerkErrorMeta, 'clerk/models/components/clerkerror_meta.rb' - autoload :ClerkErrorsMeta, 'clerk/models/components/clerkerrors_meta.rb' autoload :Client, 'clerk/models/components/client.rb' autoload :ClientObject, 'clerk/models/components/client_object.rb' autoload :CommerceCreditBalanceResponse, 'clerk/models/components/commercecreditbalanceresponse.rb' @@ -52,8 +50,15 @@ module Components autoload :CommercePaymentMethodResponseObject, 'clerk/models/components/commercepaymentmethodresponse_object.rb' autoload :CommercePaymentMethodResponseStatus, 'clerk/models/components/commercepaymentmethodresponse_status.rb' autoload :CommercePerUnitTotal, 'clerk/models/components/commerceperunittotal.rb' + autoload :CommercePerUnitTotal2, 'clerk/models/components/commerceperunittotal_2.rb' autoload :CommercePerUnitTotalTier, 'clerk/models/components/commerceperunittotaltier.rb' + autoload :CommercePerUnitTotalTier2, 'clerk/models/components/commerceperunittotaltier_2.rb' autoload :CommercePlan, 'clerk/models/components/commerceplan.rb' + autoload :CommercePlan2, 'clerk/models/components/commerceplan_2.rb' + autoload :CommercePlan2AnnualFee, 'clerk/models/components/commerceplan_2_annual_fee.rb' + autoload :CommercePlan2AnnualMonthlyFee, 'clerk/models/components/commerceplan_2_annual_monthly_fee.rb' + autoload :CommercePlan2Fee, 'clerk/models/components/commerceplan_2_fee.rb' + autoload :CommercePlan2Object, 'clerk/models/components/commerceplan_2_object.rb' autoload :CommercePlanUnitPrice, 'clerk/models/components/commerceplanunitprice.rb' autoload :CommercePlanUnitPriceTier, 'clerk/models/components/commerceplanunitpricetier.rb' autoload :CommercePlanAnnualFee, 'clerk/models/components/commerceplan_annual_fee.rb' @@ -67,6 +72,25 @@ module Components autoload :CommerceSubscriptionCreditResponse, 'clerk/models/components/commercesubscriptioncreditresponse.rb' autoload :CommerceSubscriptionCreditResponseAmount, 'clerk/models/components/commercesubscriptioncreditresponse_amount.rb' autoload :CommerceSubscriptionItem, 'clerk/models/components/commercesubscriptionitem.rb' + autoload :CommerceSubscriptionItem2, 'clerk/models/components/commercesubscriptionitem_2.rb' + autoload :CommerceSubscriptionItem2Amount, 'clerk/models/components/commercesubscriptionitem_2_amount.rb' + autoload :CommerceSubscriptionItem2AnnualFee, 'clerk/models/components/commercesubscriptionitem_2_annual_fee.rb' + autoload :CommerceSubscriptionItem2AnnualMonthlyFee, 'clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rb' + autoload :CommerceSubscriptionItem2Fee, 'clerk/models/components/commercesubscriptionitem_2_fee.rb' + autoload :CommerceSubscriptionItem2NextPayment, 'clerk/models/components/commercesubscriptionitem_2_next_payment.rb' + autoload :CommerceSubscriptionItem2NextPaymentAmount, 'clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rb' + autoload :CommerceSubscriptionItem2NextPaymentCredits, 'clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rb' + autoload :CommerceSubscriptionItem2NextPaymentCreditsProration, 'clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rb' + autoload :CommerceSubscriptionItem2NextPaymentDiscounts, 'clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rb' + autoload :CommerceSubscriptionItem2NextPaymentDiscountsProration, 'clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rb' + autoload :CommerceSubscriptionItem2NextPaymentPayer, 'clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rb' + autoload :CommerceSubscriptionItem2NextPaymentTotals, 'clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rb' + autoload :CommerceSubscriptionItem2ObjectCommercePayer, 'clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rb' + autoload :CommerceSubscriptionItem2ObjectCommercePlan, 'clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rb' + autoload :CommerceSubscriptionItem2ObjectCommerceSubscriptionItem, 'clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rb' + autoload :CommerceSubscriptionItem2Plan, 'clerk/models/components/commercesubscriptionitem_2_plan.rb' + autoload :CommerceSubscriptionItem2PlanPeriod, 'clerk/models/components/commercesubscriptionitem_2_plan_period.rb' + autoload :CommerceSubscriptionItem2Status, 'clerk/models/components/commercesubscriptionitem_2_status.rb' autoload :CommerceSubscriptionItemAmount, 'clerk/models/components/commercesubscriptionitem_amount.rb' autoload :CommerceSubscriptionItemAnnualFee, 'clerk/models/components/commercesubscriptionitem_annual_fee.rb' autoload :CommerceSubscriptionItemAnnualMonthlyFee, 'clerk/models/components/commercesubscriptionitem_annual_monthly_fee.rb' @@ -124,7 +148,6 @@ module Components autoload :EmailAddressVerificationOtpStrategy, 'clerk/models/components/emailaddress_verification_otp_strategy.rb' autoload :EmailAddressVerificationSamlClerkError, 'clerk/models/components/emailaddress_verification_saml_clerkerror.rb' autoload :EmailAddressVerificationSamlError, 'clerk/models/components/emailaddress_verification_saml_error.rb' - autoload :EmailAddressVerificationSamlMeta, 'clerk/models/components/emailaddress_verification_saml_meta.rb' autoload :EmailAddressVerificationSamlObject, 'clerk/models/components/emailaddress_verification_saml_object.rb' autoload :EmailAddressVerificationSamlStatus, 'clerk/models/components/emailaddress_verification_saml_status.rb' autoload :EmailAddressVerificationSamlStrategy, 'clerk/models/components/emailaddress_verification_saml_strategy.rb' @@ -143,12 +166,10 @@ module Components autoload :EnterpriseAccountVerification, 'clerk/models/components/enterpriseaccount_verification.rb' autoload :EnterpriseAccountVerificationOauthClerkError, 'clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb' autoload :EnterpriseAccountVerificationOauthError, 'clerk/models/components/enterpriseaccount_verification_oauth_error.rb' - autoload :EnterpriseAccountVerificationOauthMeta, 'clerk/models/components/enterpriseaccount_verification_oauth_meta.rb' autoload :EnterpriseAccountVerificationOauthObject, 'clerk/models/components/enterpriseaccount_verification_oauth_object.rb' autoload :EnterpriseAccountVerificationOauthStatus, 'clerk/models/components/enterpriseaccount_verification_oauth_status.rb' autoload :EnterpriseAccountVerificationSamlClerkError, 'clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb' autoload :EnterpriseAccountVerificationSamlError, 'clerk/models/components/enterpriseaccount_verification_saml_error.rb' - autoload :EnterpriseAccountVerificationSamlMeta, 'clerk/models/components/enterpriseaccount_verification_saml_meta.rb' autoload :EnterpriseAccountVerificationSamlObject, 'clerk/models/components/enterpriseaccount_verification_saml_object.rb' autoload :EnterpriseAccountVerificationSamlStatus, 'clerk/models/components/enterpriseaccount_verification_saml_status.rb' autoload :EnterpriseAccountVerificationSamlStrategy, 'clerk/models/components/enterpriseaccount_verification_saml_strategy.rb' @@ -171,10 +192,11 @@ module Components autoload :ExternalAccountWithVerificationVerification, 'clerk/models/components/externalaccountwithverification_verification.rb' autoload :ExternalAccountWithVerificationVerificationOauthClerkError, 'clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb' autoload :ExternalAccountWithVerificationVerificationOauthError, 'clerk/models/components/externalaccountwithverification_verification_oauth_error.rb' - autoload :ExternalAccountWithVerificationVerificationOauthMeta, 'clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb' autoload :ExternalAccountWithVerificationVerificationOauthObject, 'clerk/models/components/externalaccountwithverification_verification_oauth_object.rb' autoload :ExternalAccountWithVerificationVerificationOauthStatus, 'clerk/models/components/externalaccountwithverification_verification_oauth_status.rb' autoload :FeatureResponse, 'clerk/models/components/featureresponse.rb' + autoload :FeatureResponse2, 'clerk/models/components/featureresponse_2.rb' + autoload :FeatureResponse2Object, 'clerk/models/components/featureresponse_2_object.rb' autoload :FeatureResponseObject, 'clerk/models/components/featureresponse_object.rb' autoload :FromOAuth, 'clerk/models/components/fromoauth.rb' autoload :GoogleOneTap, 'clerk/models/components/googleonetap.rb' @@ -290,7 +312,6 @@ module Components autoload :SAMLAccountSAML, 'clerk/models/components/samlaccount_saml.rb' autoload :SAMLAccountTicket, 'clerk/models/components/samlaccount_ticket.rb' autoload :SAMLAccountError, 'clerk/models/components/samlaccount_error.rb' - autoload :SAMLAccountMeta, 'clerk/models/components/samlaccount_meta.rb' autoload :SAMLAccountObject, 'clerk/models/components/samlaccount_object.rb' autoload :SAMLAccountSAMLConnection, 'clerk/models/components/samlaccount_saml_connection.rb' autoload :SAMLAccountVerification, 'clerk/models/components/samlaccount_verification.rb' @@ -398,34 +419,6 @@ module Components autoload :Protocol, 'clerk/models/components/protocol.rb' autoload :PublicOrganizationData, 'clerk/models/components/public_organization_data.rb' autoload :RoleSetMigration, 'clerk/models/components/role_set_migration.rb' - autoload :SchemasCommercePerUnitTotal, 'clerk/models/components/schemas_commerceperunittotal.rb' - autoload :SchemasCommercePerUnitTotalTier, 'clerk/models/components/schemas_commerceperunittotaltier.rb' - autoload :SchemasCommercePlan, 'clerk/models/components/schemas_commerceplan.rb' - autoload :SchemasCommercePlanAnnualFee, 'clerk/models/components/schemas_commerceplan_annual_fee.rb' - autoload :SchemasCommercePlanAnnualMonthlyFee, 'clerk/models/components/schemas_commerceplan_annual_monthly_fee.rb' - autoload :SchemasCommercePlanFee, 'clerk/models/components/schemas_commerceplan_fee.rb' - autoload :SchemasCommercePlanObject, 'clerk/models/components/schemas_commerceplan_object.rb' - autoload :SchemasCommerceSubscriptionItem, 'clerk/models/components/schemas_commercesubscriptionitem.rb' - autoload :SchemasCommerceSubscriptionItemAmount, 'clerk/models/components/schemas_commercesubscriptionitem_amount.rb' - autoload :SchemasCommerceSubscriptionItemAnnualFee, 'clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rb' - autoload :SchemasCommerceSubscriptionItemAnnualMonthlyFee, 'clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb' - autoload :SchemasCommerceSubscriptionItemFee, 'clerk/models/components/schemas_commercesubscriptionitem_fee.rb' - autoload :SchemasCommerceSubscriptionItemNextPayment, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentAmount, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentCredits, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentCreditsProration, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentDiscounts, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentDiscountsProration, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentPayer, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rb' - autoload :SchemasCommerceSubscriptionItemNextPaymentTotals, 'clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rb' - autoload :SchemasCommerceSubscriptionItemObjectCommercePayer, 'clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rb' - autoload :SchemasCommerceSubscriptionItemObjectCommercePlan, 'clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rb' - autoload :SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem, 'clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb' - autoload :SchemasCommerceSubscriptionItemPlan, 'clerk/models/components/schemas_commercesubscriptionitem_plan.rb' - autoload :SchemasCommerceSubscriptionItemPlanPeriod, 'clerk/models/components/schemas_commercesubscriptionitem_plan_period.rb' - autoload :SchemasCommerceSubscriptionItemStatus, 'clerk/models/components/schemas_commercesubscriptionitem_status.rb' - autoload :SchemasFeatureResponse, 'clerk/models/components/schemas_featureresponse.rb' - autoload :SchemasFeatureResponseObject, 'clerk/models/components/schemas_featureresponse_object.rb' autoload :Seats, 'clerk/models/components/seats.rb' autoload :StatusCommerceSource, 'clerk/models/components/status_commercesource.rb' autoload :StatusResponse, 'clerk/models/components/status_response.rb' @@ -436,12 +429,10 @@ module Components autoload :VerificationEmailLinkStrategy, 'clerk/models/components/verification_email_link_strategy.rb' autoload :VerificationFromOauthClerkError, 'clerk/models/components/verification_from_oauth_clerkerror.rb' autoload :VerificationFromOauthError, 'clerk/models/components/verification_from_oauth_error.rb' - autoload :VerificationFromOauthMeta, 'clerk/models/components/verification_from_oauth_meta.rb' autoload :VerificationFromOauthObject, 'clerk/models/components/verification_from_oauth_object.rb' autoload :VerificationFromOauthStatus, 'clerk/models/components/verification_from_oauth_status.rb' autoload :VerificationGoogleOneTapClerkError, 'clerk/models/components/verification_google_one_tap_clerkerror.rb' autoload :VerificationGoogleOneTapError, 'clerk/models/components/verification_google_one_tap_error.rb' - autoload :VerificationGoogleOneTapMeta, 'clerk/models/components/verification_google_one_tap_meta.rb' autoload :VerificationGoogleOneTapObject, 'clerk/models/components/verification_google_one_tap_object.rb' autoload :VerificationGoogleOneTapStatus, 'clerk/models/components/verification_google_one_tap_status.rb' autoload :VerificationGoogleOneTapStrategy, 'clerk/models/components/verification_google_one_tap_strategy.rb' diff --git a/lib/clerk/models/components/billingpaymentattempt_totals.rb b/lib/clerk/models/components/billingpaymentattempt_totals.rb index c2c127b8..aff8f436 100644 --- a/lib/clerk/models/components/billingpaymentattempt_totals.rb +++ b/lib/clerk/models/components/billingpaymentattempt_totals.rb @@ -21,7 +21,7 @@ class BillingPaymentAttemptTotals field :grand_total, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('grand_total'), required: true } } - field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::SchemasCommercePerUnitTotal)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } + field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotal2)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } field :credits, Crystalline::Nilable.new(Models::Components::BillingPaymentAttemptCredits), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('credits') } } # Information about the discounts applied to the payment diff --git a/lib/clerk/models/components/clerkerror.rb b/lib/clerk/models/components/clerkerror.rb index ba097579..1bb8cf85 100644 --- a/lib/clerk/models/components/clerkerror.rb +++ b/lib/clerk/models/components/clerkerror.rb @@ -19,7 +19,7 @@ class ClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::ClerkErrorMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/clerkerror_meta.rb b/lib/clerk/models/components/clerkerror_meta.rb deleted file mode 100644 index e755379b..00000000 --- a/lib/clerk/models/components/clerkerror_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class ClerkErrorMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/clerkerror_meta.rbi b/lib/clerk/models/components/clerkerror_meta.rbi deleted file mode 100644 index 69e5c345..00000000 --- a/lib/clerk/models/components/clerkerror_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::ClerkErrorMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::ClerkErrorMeta -end diff --git a/lib/clerk/models/components/clerkerrors_meta.rb b/lib/clerk/models/components/clerkerrors_meta.rb deleted file mode 100644 index d2cd3882..00000000 --- a/lib/clerk/models/components/clerkerrors_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class ClerkErrorsMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/clerkerrors_meta.rbi b/lib/clerk/models/components/clerkerrors_meta.rbi deleted file mode 100644 index 65b04967..00000000 --- a/lib/clerk/models/components/clerkerrors_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::ClerkErrorsMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::ClerkErrorsMeta -end diff --git a/lib/clerk/models/components/commercecreditledgerresponse.rb b/lib/clerk/models/components/commercecreditledgerresponse.rb index 1ec5eb7b..1c998856 100644 --- a/lib/clerk/models/components/commercecreditledgerresponse.rb +++ b/lib/clerk/models/components/commercecreditledgerresponse.rb @@ -18,10 +18,8 @@ class CommerceCreditLedgerResponse field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } } # The ID of the payer whose balance was adjusted. field :payer_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('payer_id'), required: true } } - # The signed credit amount. Positive for increases, negative for decreases. - field :amount, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount'), required: true } } - # The currency code of the credit adjustment. - field :currency, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency'), required: true } } + + field :amount, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount'), required: true } } # The type of source that originated the adjustment (e.g. "grant"). field :source_type, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('source_type'), required: true } } # The ID of the source that originated the adjustment. @@ -32,12 +30,11 @@ class CommerceCreditLedgerResponse field :note, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('note') } } - def initialize(object:, id:, payer_id:, amount:, currency:, source_type:, source_id:, created_at:, note: nil) + def initialize(object:, id:, payer_id:, amount:, source_type:, source_id:, created_at:, note: nil) @object = object @id = id @payer_id = payer_id @amount = amount - @currency = currency @source_type = source_type @source_id = source_id @created_at = created_at @@ -51,7 +48,6 @@ def ==(other) return false unless @id == other.id return false unless @payer_id == other.payer_id return false unless @amount == other.amount - return false unless @currency == other.currency return false unless @source_type == other.source_type return false unless @source_id == other.source_id return false unless @created_at == other.created_at diff --git a/lib/clerk/models/components/commercecreditledgerresponse.rbi b/lib/clerk/models/components/commercecreditledgerresponse.rbi index c885db0e..1532ab90 100644 --- a/lib/clerk/models/components/commercecreditledgerresponse.rbi +++ b/lib/clerk/models/components/commercecreditledgerresponse.rbi @@ -16,8 +16,6 @@ class Clerk::Models::Components::CommerceCreditLedgerResponse def payer_id=(str_); end def amount(); end def amount=(str_); end - def currency(); end - def currency=(str_); end def source_type(); end def source_type=(str_); end def source_id(); end diff --git a/lib/clerk/models/components/schemas_commerceperunittotal.rb b/lib/clerk/models/components/commerceperunittotal_2.rb similarity index 87% rename from lib/clerk/models/components/schemas_commerceperunittotal.rb rename to lib/clerk/models/components/commerceperunittotal_2.rb index 554feeb6..8866e64b 100644 --- a/lib/clerk/models/components/schemas_commerceperunittotal.rb +++ b/lib/clerk/models/components/commerceperunittotal_2.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommercePerUnitTotal + class CommercePerUnitTotal2 include Crystalline::MetadataFields @@ -17,7 +17,7 @@ class SchemasCommercePerUnitTotal # Number of units included in each pricing block field :block_size, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('block_size'), required: true } } # Computed totals for each pricing tier - field :tiers, Crystalline::Array.new(Models::Components::SchemasCommercePerUnitTotalTier), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('tiers'), required: true } } + field :tiers, Crystalline::Array.new(Models::Components::CommercePerUnitTotalTier2), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('tiers'), required: true } } def initialize(name:, block_size:, tiers:) diff --git a/lib/clerk/models/components/schemas_commerceperunittotal.rbi b/lib/clerk/models/components/commerceperunittotal_2.rbi similarity index 66% rename from lib/clerk/models/components/schemas_commerceperunittotal.rbi rename to lib/clerk/models/components/commerceperunittotal_2.rbi index 62000acf..936688de 100644 --- a/lib/clerk/models/components/schemas_commerceperunittotal.rbi +++ b/lib/clerk/models/components/commerceperunittotal_2.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommercePerUnitTotal +class Clerk::Models::Components::CommercePerUnitTotal2 extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommercePerUnitTotal +class Clerk::Models::Components::CommercePerUnitTotal2 def name(); end def name=(str_); end def block_size(); end diff --git a/lib/clerk/models/components/schemas_commerceperunittotaltier.rb b/lib/clerk/models/components/commerceperunittotaltier_2.rb similarity index 96% rename from lib/clerk/models/components/schemas_commerceperunittotaltier.rb rename to lib/clerk/models/components/commerceperunittotaltier_2.rb index 37b2beb0..6c3767f4 100644 --- a/lib/clerk/models/components/schemas_commerceperunittotaltier.rb +++ b/lib/clerk/models/components/commerceperunittotaltier_2.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommercePerUnitTotalTier + class CommercePerUnitTotalTier2 include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commerceperunittotaltier.rbi b/lib/clerk/models/components/commerceperunittotaltier_2.rbi similarity index 66% rename from lib/clerk/models/components/schemas_commerceperunittotaltier.rbi rename to lib/clerk/models/components/commerceperunittotaltier_2.rbi index 375708bc..e4f77937 100644 --- a/lib/clerk/models/components/schemas_commerceperunittotaltier.rbi +++ b/lib/clerk/models/components/commerceperunittotaltier_2.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommercePerUnitTotalTier +class Clerk::Models::Components::CommercePerUnitTotalTier2 extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommercePerUnitTotalTier +class Clerk::Models::Components::CommercePerUnitTotalTier2 def fee_per_block(); end def fee_per_block=(str_); end def total(); end diff --git a/lib/clerk/models/components/schemas_commerceplan.rb b/lib/clerk/models/components/commerceplan_2.rb similarity index 91% rename from lib/clerk/models/components/schemas_commerceplan.rb rename to lib/clerk/models/components/commerceplan_2.rb index cd91d675..f1bc4d72 100644 --- a/lib/clerk/models/components/schemas_commerceplan.rb +++ b/lib/clerk/models/components/commerceplan_2.rb @@ -8,12 +8,12 @@ module Clerk module Models module Components - class SchemasCommercePlan + class CommercePlan2 include Crystalline::MetadataFields # String representing the object's type. Objects of the same type share the same value. - field :object, Models::Components::SchemasCommercePlanObject, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommercePlanObject, false) } } + field :object, Models::Components::CommercePlan2Object, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommercePlan2Object, false) } } # Unique identifier for the commerce plan. field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } } # The name of the commerce plan. @@ -55,13 +55,13 @@ class SchemasCommercePlan # The URL of the plan's avatar image. field :avatar_url, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('avatar_url'), required: true } } # The features included in this plan. - field :features, Crystalline::Array.new(Models::Components::SchemasFeatureResponse), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('features'), required: true } } + field :features, Crystalline::Array.new(Models::Components::FeatureResponse2), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('features'), required: true } } - field :fee, Crystalline::Nilable.new(Models::Components::SchemasCommercePlanFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('fee'), required: true } } + field :fee, Crystalline::Nilable.new(Models::Components::CommercePlan2Fee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('fee'), required: true } } - field :annual_monthly_fee, Crystalline::Nilable.new(Models::Components::SchemasCommercePlanAnnualMonthlyFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_monthly_fee'), required: true } } + field :annual_monthly_fee, Crystalline::Nilable.new(Models::Components::CommercePlan2AnnualMonthlyFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_monthly_fee'), required: true } } - field :annual_fee, Crystalline::Nilable.new(Models::Components::SchemasCommercePlanAnnualFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_fee'), required: true } } + field :annual_fee, Crystalline::Nilable.new(Models::Components::CommercePlan2AnnualFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_fee'), required: true } } # The billing period for the plan. field :period, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('period') } } # The billing interval. diff --git a/lib/clerk/models/components/schemas_commerceplan.rbi b/lib/clerk/models/components/commerceplan_2.rbi similarity index 94% rename from lib/clerk/models/components/schemas_commerceplan.rbi rename to lib/clerk/models/components/commerceplan_2.rbi index 66c2bf84..6bb02ff8 100644 --- a/lib/clerk/models/components/schemas_commerceplan.rbi +++ b/lib/clerk/models/components/commerceplan_2.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommercePlan +class Clerk::Models::Components::CommercePlan2 extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommercePlan +class Clerk::Models::Components::CommercePlan2 def object(); end def object=(str_); end def id(); end diff --git a/lib/clerk/models/components/schemas_commerceplan_fee.rb b/lib/clerk/models/components/commerceplan_2_annual_fee.rb similarity index 97% rename from lib/clerk/models/components/schemas_commerceplan_fee.rb rename to lib/clerk/models/components/commerceplan_2_annual_fee.rb index ade6d6eb..e8e429ec 100644 --- a/lib/clerk/models/components/schemas_commerceplan_fee.rb +++ b/lib/clerk/models/components/commerceplan_2_annual_fee.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommercePlanFee + class CommercePlan2AnnualFee include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commerceplan_fee.rbi b/lib/clerk/models/components/commerceplan_2_annual_fee.rbi similarity index 74% rename from lib/clerk/models/components/schemas_commerceplan_fee.rbi rename to lib/clerk/models/components/commerceplan_2_annual_fee.rbi index a8b3dcc7..4e9ede83 100644 --- a/lib/clerk/models/components/schemas_commerceplan_fee.rbi +++ b/lib/clerk/models/components/commerceplan_2_annual_fee.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommercePlanFee +class Clerk::Models::Components::CommercePlan2AnnualFee extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommercePlanFee +class Clerk::Models::Components::CommercePlan2AnnualFee def amount(); end def amount=(str_); end def amount_formatted(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rb b/lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rb similarity index 97% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rb rename to lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rb index 68d63b27..de483d9d 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rb +++ b/lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemFee + class CommercePlan2AnnualMonthlyFee include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rbi b/lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rbi similarity index 70% rename from lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rbi rename to lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rbi index 417db981..1d428e7d 100644 --- a/lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rbi +++ b/lib/clerk/models/components/commerceplan_2_annual_monthly_fee.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommercePlanAnnualMonthlyFee +class Clerk::Models::Components::CommercePlan2AnnualMonthlyFee extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommercePlanAnnualMonthlyFee +class Clerk::Models::Components::CommercePlan2AnnualMonthlyFee def amount(); end def amount=(str_); end def amount_formatted(); end diff --git a/lib/clerk/models/components/schemas_commerceplan_annual_fee.rb b/lib/clerk/models/components/commerceplan_2_fee.rb similarity index 97% rename from lib/clerk/models/components/schemas_commerceplan_annual_fee.rb rename to lib/clerk/models/components/commerceplan_2_fee.rb index a05d0d29..42af322f 100644 --- a/lib/clerk/models/components/schemas_commerceplan_annual_fee.rb +++ b/lib/clerk/models/components/commerceplan_2_fee.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommercePlanAnnualFee + class CommercePlan2Fee include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commerceplan_annual_fee.rbi b/lib/clerk/models/components/commerceplan_2_fee.rbi similarity index 72% rename from lib/clerk/models/components/schemas_commerceplan_annual_fee.rbi rename to lib/clerk/models/components/commerceplan_2_fee.rbi index d4e0c61d..db293e2f 100644 --- a/lib/clerk/models/components/schemas_commerceplan_annual_fee.rbi +++ b/lib/clerk/models/components/commerceplan_2_fee.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommercePlanAnnualFee +class Clerk::Models::Components::CommercePlan2Fee extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommercePlanAnnualFee +class Clerk::Models::Components::CommercePlan2Fee def amount(); end def amount=(str_); end def amount_formatted(); end diff --git a/lib/clerk/models/components/schemas_commerceplan_object.rb b/lib/clerk/models/components/commerceplan_2_object.rb similarity index 65% rename from lib/clerk/models/components/schemas_commerceplan_object.rb rename to lib/clerk/models/components/commerceplan_2_object.rb index 4b6f4dc3..7ab610fd 100644 --- a/lib/clerk/models/components/schemas_commerceplan_object.rb +++ b/lib/clerk/models/components/commerceplan_2_object.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasCommercePlanObject - String representing the object's type. Objects of the same type share the same value. - class SchemasCommercePlanObject + # CommercePlan2Object - String representing the object's type. Objects of the same type share the same value. + class CommercePlan2Object include ::Crystalline::Enum enums do COMMERCE_PLAN = new('commerce_plan') diff --git a/lib/clerk/models/components/samlaccount_meta.rbi b/lib/clerk/models/components/commerceplan_2_object.rbi similarity index 50% rename from lib/clerk/models/components/samlaccount_meta.rbi rename to lib/clerk/models/components/commerceplan_2_object.rbi index 66486b2e..e48cbe85 100644 --- a/lib/clerk/models/components/samlaccount_meta.rbi +++ b/lib/clerk/models/components/commerceplan_2_object.rbi @@ -2,10 +2,10 @@ # frozen_string_literal: true -class Clerk::Models::Components::SAMLAccountMeta +class Clerk::Models::Components::CommercePlan2Object extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SAMLAccountMeta +class Clerk::Models::Components::CommercePlan2Object end diff --git a/lib/clerk/models/components/commercepricetransitiondetails.rb b/lib/clerk/models/components/commercepricetransitiondetails.rb index e9c6e196..01fa6b7e 100644 --- a/lib/clerk/models/components/commercepricetransitiondetails.rb +++ b/lib/clerk/models/components/commercepricetransitiondetails.rb @@ -13,7 +13,7 @@ class CommercePriceTransitionDetails include Crystalline::MetadataFields - field :previous_plan, Models::Components::SchemasCommercePlan, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('previous_plan'), required: true } } + field :previous_plan, Models::Components::CommercePlan2, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('previous_plan'), required: true } } field :previous_price, Models::Components::BillingPriceResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('previous_price'), required: true } } # Unix timestamp (milliseconds) when the new price takes effect. diff --git a/lib/clerk/models/components/commercepricetransitionresponse.rb b/lib/clerk/models/components/commercepricetransitionresponse.rb index fc38e389..a45223c4 100644 --- a/lib/clerk/models/components/commercepricetransitionresponse.rb +++ b/lib/clerk/models/components/commercepricetransitionresponse.rb @@ -15,7 +15,7 @@ class CommercePriceTransitionResponse # String representing the object's type. Objects of the same type share the same value. field :object, Models::Components::CommercePriceTransitionResponseObject, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommercePriceTransitionResponseObject, false) } } - field :subscription_item, Models::Components::SchemasCommerceSubscriptionItem, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('subscription_item'), required: true } } + field :subscription_item, Models::Components::CommerceSubscriptionItem2, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('subscription_item'), required: true } } field :transition, Models::Components::CommercePriceTransitionDetails, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('transition'), required: true } } diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem.rb b/lib/clerk/models/components/commercesubscriptionitem_2.rb similarity index 85% rename from lib/clerk/models/components/schemas_commercesubscriptionitem.rb rename to lib/clerk/models/components/commercesubscriptionitem_2.rb index 568e32d2..6420c5df 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2.rb @@ -8,22 +8,22 @@ module Clerk module Models module Components # A commerce subscription item. - class SchemasCommerceSubscriptionItem + class CommerceSubscriptionItem2 include Crystalline::MetadataFields # String representing the object's type. Objects of the same type share the same value. - field :object, Models::Components::SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem, false) } } + field :object, Models::Components::CommerceSubscriptionItem2ObjectCommerceSubscriptionItem, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceSubscriptionItem2ObjectCommerceSubscriptionItem, false) } } # Unique identifier for the subscription item. field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } } # Unique identifier for the Clerk instance. field :instance_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('instance_id'), required: true } } # Current status of the subscription item. - field :status, Models::Components::SchemasCommerceSubscriptionItemStatus, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('status'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommerceSubscriptionItemStatus, false) } } + field :status, Models::Components::CommerceSubscriptionItem2Status, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('status'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceSubscriptionItem2Status, false) } } # Unique identifier for the associated plan. field :plan_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('plan_id'), required: true } } # The billing period for this subscription. - field :plan_period, Models::Components::SchemasCommerceSubscriptionItemPlanPeriod, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('plan_period'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommerceSubscriptionItemPlanPeriod, false) } } + field :plan_period, Models::Components::CommerceSubscriptionItem2PlanPeriod, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('plan_period'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceSubscriptionItem2PlanPeriod, false) } } # Unique identifier for the payment source. field :payment_source_id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('payment_source_id'), required: true } } # Unique identifier for the payer. @@ -39,7 +39,7 @@ class SchemasCommerceSubscriptionItem # Unique identifier for the associated price field :price_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('price_id') } } # The associated commerce plan. - field :plan, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemPlan), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('plan'), required: true } } + field :plan, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2Plan), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('plan'), required: true } } # Credit information (only available in PaymentAttempt events). field :credit, Crystalline::Nilable.new(Models::Components::Credit), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('credit') } } # The payment source associated with this subscription. @@ -47,11 +47,11 @@ class SchemasCommerceSubscriptionItem # Total amount paid over the lifetime of this subscription. field :lifetime_paid, Crystalline::Nilable.new(Models::Components::LifetimePaid), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('lifetime_paid') } } # Current amount for this subscription. - field :amount, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemAmount), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount') } } + field :amount, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2Amount), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount') } } # Information about the next invoice. field :next_invoice, Crystalline::Nilable.new(Models::Components::NextInvoice), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('next_invoice') } } # Information about the next payment. - field :next_payment, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPayment), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('next_payment') } } + field :next_payment, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPayment), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('next_payment') } } # The payer associated with this subscription. field :payer, Crystalline::Nilable.new(Models::Components::PayerCommercePayer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('payer') } } # Unix timestamp (in milliseconds) when the current period started. diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem.rbi b/lib/clerk/models/components/commercesubscriptionitem_2.rbi similarity index 91% rename from lib/clerk/models/components/schemas_commercesubscriptionitem.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2.rbi index 58eaa79b..b494c096 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItem +class Clerk::Models::Components::CommerceSubscriptionItem2 extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItem +class Clerk::Models::Components::CommerceSubscriptionItem2 def object(); end def object=(str_); end def id(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rb b/lib/clerk/models/components/commercesubscriptionitem_2_amount.rb similarity index 97% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_amount.rb index da519ef9..87e9c8a4 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_amount.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components # Current amount for this subscription. - class SchemasCommerceSubscriptionItemAmount + class CommerceSubscriptionItem2Amount include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi new file mode 100644 index 00000000..4eef7b4b --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_amount.rbi @@ -0,0 +1,19 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2Amount + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2Amount + def amount(); end + def amount=(str_); end + def amount_formatted(); end + def amount_formatted=(str_); end + def currency(); end + def currency=(str_); end + def currency_symbol(); end + def currency_symbol=(str_); end +end diff --git a/lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rb b/lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rb similarity index 97% rename from lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rb index 4b096f7d..1aef93ef 100644 --- a/lib/clerk/models/components/schemas_commerceplan_annual_monthly_fee.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommercePlanAnnualMonthlyFee + class CommerceSubscriptionItem2AnnualFee include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rbi similarity index 72% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rbi index 1a414291..626d963b 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_fee.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_annual_fee.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemFee +class Clerk::Models::Components::CommerceSubscriptionItem2AnnualFee extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemFee +class Clerk::Models::Components::CommerceSubscriptionItem2AnnualFee def amount(); end def amount=(str_); end def amount_formatted(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rb b/lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rb similarity index 96% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rb index dd099a55..c2d13bb0 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemAnnualFee + class CommerceSubscriptionItem2AnnualMonthlyFee include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rbi similarity index 68% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rbi index 46fd253e..55d66019 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_amount.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_annual_monthly_fee.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemAmount +class Clerk::Models::Components::CommerceSubscriptionItem2AnnualMonthlyFee extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemAmount +class Clerk::Models::Components::CommerceSubscriptionItem2AnnualMonthlyFee def amount(); end def amount=(str_); end def amount_formatted(); end diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_fee.rb b/lib/clerk/models/components/commercesubscriptionitem_2_fee.rb new file mode 100644 index 00000000..e0af78cb --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_fee.rb @@ -0,0 +1,44 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: false +# frozen_string_literal: true + + +module Clerk + module Models + module Components + + class CommerceSubscriptionItem2Fee + + include Crystalline::MetadataFields + + # The amount in cents. + field :amount, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount'), required: true } } + # The formatted amount as a string (e.g., "$49.99"). + field :amount_formatted, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount_formatted'), required: true } } + # The currency code (e.g., "USD"). + field :currency, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency'), required: true } } + # The currency symbol (e.g., "$"). + field :currency_symbol, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency_symbol'), required: true } } + + + def initialize(amount:, amount_formatted:, currency:, currency_symbol:) + @amount = amount + @amount_formatted = amount_formatted + @currency = currency + @currency_symbol = currency_symbol + end + + + def ==(other) + return false unless other.is_a? self.class + return false unless @amount == other.amount + return false unless @amount_formatted == other.amount_formatted + return false unless @currency == other.currency + return false unless @currency_symbol == other.currency_symbol + true + end + end + end + end +end diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi new file mode 100644 index 00000000..b96bc776 --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_fee.rbi @@ -0,0 +1,19 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2Fee + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2Fee + def amount(); end + def amount=(str_); end + def amount_formatted(); end + def amount_formatted=(str_); end + def currency(); end + def currency=(str_); end + def currency_symbol(); end + def currency_symbol=(str_); end +end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rb similarity index 84% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rb index 03939046..3c0cc1e2 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rb @@ -8,18 +8,18 @@ module Clerk module Models module Components # Information about the next payment. - class SchemasCommerceSubscriptionItemNextPayment + class CommerceSubscriptionItem2NextPayment include Crystalline::MetadataFields # Per-unit total breakdown (for example, seats) for the next payment. field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotal)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } # Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. - field :amount, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentAmount), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount') } } + field :amount, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentAmount), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount') } } # Unix timestamp (in milliseconds) for the next payment date. field :date, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('date') } } # Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. - field :totals, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentTotals), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('totals') } } + field :totals, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentTotals), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('totals') } } def initialize(per_unit_totals: nil, amount: nil, date: nil, totals: nil) diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rbi similarity index 66% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rbi index bea6f0fe..457922c6 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPayment +class Clerk::Models::Components::CommerceSubscriptionItem2NextPayment extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPayment +class Clerk::Models::Components::CommerceSubscriptionItem2NextPayment def per_unit_totals(); end def per_unit_totals=(str_); end def amount(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rb similarity index 96% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rb index c81bc33b..5b2d70d9 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components # Base plan fee for the next payment. Does not include per-unit (e.g. seat) charges; see `totals.grand_total` for the full amount. - class SchemasCommerceSubscriptionItemNextPaymentAmount + class CommerceSubscriptionItem2NextPaymentAmount include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi new file mode 100644 index 00000000..0c36500c --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_amount.rbi @@ -0,0 +1,19 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentAmount + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentAmount + def amount(); end + def amount=(str_); end + def amount_formatted(); end + def amount_formatted=(str_); end + def currency(); end + def currency=(str_); end + def currency_symbol(); end + def currency_symbol=(str_); end +end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rb similarity index 72% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rb index b1a82a3f..1e813bfb 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rb @@ -8,16 +8,16 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemNextPaymentCredits + class CommerceSubscriptionItem2NextPaymentCredits include Crystalline::MetadataFields field :total, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('total'), required: true } } - field :proration, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentCreditsProration), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('proration'), required: true } } + field :proration, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentCreditsProration), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('proration'), required: true } } - field :payer, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentPayer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('payer'), required: true } } + field :payer, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentPayer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('payer'), required: true } } def initialize(total:, proration: nil, payer: nil) diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rbi similarity index 59% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rbi index 399583e4..1e48ad69 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentCredits +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentCredits extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentCredits +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentCredits def total(); end def total=(str_); end def proration(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rb similarity index 95% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rb index e2ca91de..f07d1225 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemNextPaymentCreditsProration + class CommerceSubscriptionItem2NextPaymentCreditsProration include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rbi similarity index 66% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rbi index 003cb0ee..6960ce49 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_credits_proration.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_credits_proration.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentCreditsProration +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentCreditsProration extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentCreditsProration +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentCreditsProration def amount(); end def amount=(str_); end def cycle_days_remaining(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rb similarity index 78% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rb index 942fb581..a736e25d 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rb @@ -8,14 +8,14 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemNextPaymentDiscounts + class CommerceSubscriptionItem2NextPaymentDiscounts include Crystalline::MetadataFields field :total, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('total'), required: true } } - field :proration, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscountsProration), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('proration'), required: true } } + field :proration, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentDiscountsProration), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('proration'), required: true } } def initialize(total:, proration: nil) diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rbi similarity index 54% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rbi index 1c9a2baf..6ea0ca8f 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscounts +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentDiscounts extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscounts +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentDiscounts def total(); end def total=(str_); end def proration(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rb similarity index 95% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rb index c9372123..2bb075f4 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemNextPaymentDiscountsProration + class CommerceSubscriptionItem2NextPaymentDiscountsProration include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rbi similarity index 65% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rbi index 9214f71d..497e522a 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_discounts_proration.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_discounts_proration.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscountsProration +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentDiscountsProration extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscountsProration +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentDiscountsProration def amount(); end def amount=(str_); end def cycle_days_passed(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rb similarity index 94% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rb index 11ba4e84..fe16b515 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components - class SchemasCommerceSubscriptionItemNextPaymentPayer + class CommerceSubscriptionItem2NextPaymentPayer include Crystalline::MetadataFields diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rbi similarity index 59% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rbi index 5865bd6a..e8ec22e9 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_payer.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_payer.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentPayer +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentPayer extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentPayer +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentPayer def remaining_balance(); end def remaining_balance=(str_); end def applied_amount(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rb b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rb similarity index 87% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rb index 50fdf15e..8e2d8223 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rb @@ -8,7 +8,7 @@ module Clerk module Models module Components # Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. - class SchemasCommerceSubscriptionItemNextPaymentTotals + class CommerceSubscriptionItem2NextPaymentTotals include Crystalline::MetadataFields @@ -23,9 +23,9 @@ class SchemasCommerceSubscriptionItemNextPaymentTotals field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotal)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } - field :credits, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentCredits), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('credits') } } + field :credits, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentCredits), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('credits') } } - field :discounts, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemNextPaymentDiscounts), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('discounts') } } + field :discounts, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2NextPaymentDiscounts), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('discounts') } } def initialize(subtotal:, base_fee:, tax_total:, grand_total:, per_unit_totals: nil, credits: nil, discounts: nil) diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rbi similarity index 74% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rbi index c8336078..57b70adb 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_totals.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_next_payment_totals.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentTotals +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentTotals extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentTotals +class Clerk::Models::Components::CommerceSubscriptionItem2NextPaymentTotals def subtotal(); end def subtotal=(str_); end def base_fee(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rb b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rb similarity index 59% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rb index e58ea8d4..c52aae4a 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasCommerceSubscriptionItemObjectCommercePayer - String representing the object's type. Objects of the same type share the same value. - class SchemasCommerceSubscriptionItemObjectCommercePayer + # CommerceSubscriptionItem2ObjectCommercePayer - String representing the object's type. Objects of the same type share the same value. + class CommerceSubscriptionItem2ObjectCommercePayer include ::Crystalline::Enum enums do COMMERCE_PAYER = new('commerce_payer') diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi new file mode 100644 index 00000000..d4f547f5 --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercepayer.rbi @@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2ObjectCommercePayer + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2ObjectCommercePayer +end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rb b/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rb similarity index 59% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rb index 463053ab..bec11987 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasCommerceSubscriptionItemObjectCommercePlan - String representing the object's type. Objects of the same type share the same value. - class SchemasCommerceSubscriptionItemObjectCommercePlan + # CommerceSubscriptionItem2ObjectCommercePlan - String representing the object's type. Objects of the same type share the same value. + class CommerceSubscriptionItem2ObjectCommercePlan include ::Crystalline::Enum enums do COMMERCE_PLAN = new('commerce_plan') diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi new file mode 100644 index 00000000..063d85a6 --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_object_commerceplan.rbi @@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2ObjectCommercePlan + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2ObjectCommercePlan +end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rb similarity index 58% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rb index b77049e2..ca1fbb09 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem - String representing the object's type. Objects of the same type share the same value. - class SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem + # CommerceSubscriptionItem2ObjectCommerceSubscriptionItem - String representing the object's type. Objects of the same type share the same value. + class CommerceSubscriptionItem2ObjectCommerceSubscriptionItem include ::Crystalline::Enum enums do COMMERCE_SUBSCRIPTION_ITEM = new('commerce_subscription_item') diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi new file mode 100644 index 00000000..1ff1c357 --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_object_commercesubscriptionitem.rbi @@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2ObjectCommerceSubscriptionItem + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2ObjectCommerceSubscriptionItem +end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rb b/lib/clerk/models/components/commercesubscriptionitem_2_plan.rb similarity index 90% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_plan.rb index b4cebb52..f5ba12f1 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_plan.rb @@ -8,12 +8,12 @@ module Clerk module Models module Components # The associated commerce plan. - class SchemasCommerceSubscriptionItemPlan + class CommerceSubscriptionItem2Plan include Crystalline::MetadataFields # String representing the object's type. Objects of the same type share the same value. - field :object, Models::Components::SchemasCommerceSubscriptionItemObjectCommercePlan, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommerceSubscriptionItemObjectCommercePlan, false) } } + field :object, Models::Components::CommerceSubscriptionItem2ObjectCommercePlan, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceSubscriptionItem2ObjectCommercePlan, false) } } # Unique identifier for the commerce plan. field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } } # The name of the commerce plan. @@ -55,13 +55,13 @@ class SchemasCommerceSubscriptionItemPlan # The URL of the plan's avatar image. field :avatar_url, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('avatar_url'), required: true } } # The features included in this plan. - field :features, Crystalline::Array.new(Models::Components::SchemasFeatureResponse), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('features'), required: true } } + field :features, Crystalline::Array.new(Models::Components::FeatureResponse2), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('features'), required: true } } - field :fee, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('fee'), required: true } } + field :fee, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2Fee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('fee'), required: true } } - field :annual_monthly_fee, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemAnnualMonthlyFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_monthly_fee'), required: true } } + field :annual_monthly_fee, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2AnnualMonthlyFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_monthly_fee'), required: true } } - field :annual_fee, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItemAnnualFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_fee'), required: true } } + field :annual_fee, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2AnnualFee), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('annual_fee'), required: true } } # The billing period for the plan. field :period, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('period') } } # The billing interval. diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_plan.rbi similarity index 92% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rbi rename to lib/clerk/models/components/commercesubscriptionitem_2_plan.rbi index 8327e900..ca53f172 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan.rbi +++ b/lib/clerk/models/components/commercesubscriptionitem_2_plan.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasCommerceSubscriptionItemPlan +class Clerk::Models::Components::CommerceSubscriptionItem2Plan extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasCommerceSubscriptionItemPlan +class Clerk::Models::Components::CommerceSubscriptionItem2Plan def object(); end def object=(str_); end def id(); end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rb b/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rb similarity index 68% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rb index ae141f40..078e0a78 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasCommerceSubscriptionItemPlanPeriod - The billing period for this subscription. - class SchemasCommerceSubscriptionItemPlanPeriod + # CommerceSubscriptionItem2PlanPeriod - The billing period for this subscription. + class CommerceSubscriptionItem2PlanPeriod include ::Crystalline::Enum enums do MONTH = new('month') diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi new file mode 100644 index 00000000..29892ee8 --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_plan_period.rbi @@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2PlanPeriod + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2PlanPeriod +end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rb b/lib/clerk/models/components/commercesubscriptionitem_2_status.rb similarity index 77% rename from lib/clerk/models/components/schemas_commercesubscriptionitem_status.rb rename to lib/clerk/models/components/commercesubscriptionitem_2_status.rb index 02d65338..3919a51f 100644 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_2_status.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasCommerceSubscriptionItemStatus - Current status of the subscription item. - class SchemasCommerceSubscriptionItemStatus + # CommerceSubscriptionItem2Status - Current status of the subscription item. + class CommerceSubscriptionItem2Status include ::Crystalline::Enum enums do ACTIVE = new('active') diff --git a/lib/clerk/models/components/commercesubscriptionitem_2_status.rbi b/lib/clerk/models/components/commercesubscriptionitem_2_status.rbi new file mode 100644 index 00000000..406ffd06 --- /dev/null +++ b/lib/clerk/models/components/commercesubscriptionitem_2_status.rbi @@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::CommerceSubscriptionItem2Status + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::CommerceSubscriptionItem2Status +end diff --git a/lib/clerk/models/components/commercesubscriptionitem_totals.rb b/lib/clerk/models/components/commercesubscriptionitem_totals.rb index 9b3bf1f7..3f63155f 100644 --- a/lib/clerk/models/components/commercesubscriptionitem_totals.rb +++ b/lib/clerk/models/components/commercesubscriptionitem_totals.rb @@ -21,7 +21,7 @@ class CommerceSubscriptionItemTotals field :grand_total, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('grand_total'), required: true } } - field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::SchemasCommercePerUnitTotal)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } + field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotal2)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } field :credits, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItemTotalsCredits), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('credits') } } # Information about the discounts applied to the payment diff --git a/lib/clerk/models/components/commercesubscriptionnextpayment.rb b/lib/clerk/models/components/commercesubscriptionnextpayment.rb index 0ec21c87..78b3be7a 100644 --- a/lib/clerk/models/components/commercesubscriptionnextpayment.rb +++ b/lib/clerk/models/components/commercesubscriptionnextpayment.rb @@ -17,7 +17,7 @@ class CommerceSubscriptionNextPayment field :amount, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount'), required: true } } # Per-unit total breakdown (for example, seats) for the next payment. - field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::SchemasCommercePerUnitTotal)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } + field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotal2)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } # Breakdown of the recurring amount that will be billed at renewal (base fee + per-unit charges). Tax and credits are not previewed. field :totals, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionNextPaymentTotals), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('totals') } } diff --git a/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb b/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb index 628d6cf8..bfdb3df5 100644 --- a/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb +++ b/lib/clerk/models/components/commercesubscriptionnextpayment_totals.rb @@ -21,7 +21,7 @@ class CommerceSubscriptionNextPaymentTotals field :grand_total, Models::Components::CommerceMoneyResponse, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('grand_total'), required: true } } - field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::SchemasCommercePerUnitTotal)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } + field :per_unit_totals, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotal2)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('per_unit_totals') } } field :credits, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionNextPaymentCredits), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('credits') } } # Information about the discounts applied to the payment diff --git a/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb b/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb index 20c3e809..432e709d 100644 --- a/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb +++ b/lib/clerk/models/components/emailaddress_verification_saml_clerkerror.rb @@ -19,7 +19,7 @@ class EmailAddressVerificationSamlClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::EmailAddressVerificationSamlMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/emailaddress_verification_saml_meta.rb b/lib/clerk/models/components/emailaddress_verification_saml_meta.rb deleted file mode 100644 index 3598e897..00000000 --- a/lib/clerk/models/components/emailaddress_verification_saml_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class EmailAddressVerificationSamlMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi b/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi deleted file mode 100644 index cb5bc856..00000000 --- a/lib/clerk/models/components/emailaddress_verification_saml_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::EmailAddressVerificationSamlMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::EmailAddressVerificationSamlMeta -end diff --git a/lib/clerk/models/components/enrollment_mode.rb b/lib/clerk/models/components/enrollment_mode.rb index e0da55a5..03d53c9f 100644 --- a/lib/clerk/models/components/enrollment_mode.rb +++ b/lib/clerk/models/components/enrollment_mode.rb @@ -14,6 +14,7 @@ class EnrollmentMode MANUAL_INVITATION = new('manual_invitation') AUTOMATIC_INVITATION = new('automatic_invitation') AUTOMATIC_SUGGESTION = new('automatic_suggestion') + ENTERPRISE_SSO = new('enterprise_sso') end end end diff --git a/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb b/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb index fea5b49e..51830aa1 100644 --- a/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb +++ b/lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb @@ -19,7 +19,7 @@ class EnterpriseAccountVerificationOauthClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::EnterpriseAccountVerificationOauthMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb b/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb deleted file mode 100644 index 37fa6f09..00000000 --- a/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class EnterpriseAccountVerificationOauthMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi b/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi deleted file mode 100644 index 12b0e40e..00000000 --- a/lib/clerk/models/components/enterpriseaccount_verification_oauth_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::EnterpriseAccountVerificationOauthMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::EnterpriseAccountVerificationOauthMeta -end diff --git a/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb b/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb index f9b0fa92..c5961f57 100644 --- a/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb +++ b/lib/clerk/models/components/enterpriseaccount_verification_saml_clerkerror.rb @@ -19,7 +19,7 @@ class EnterpriseAccountVerificationSamlClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::EnterpriseAccountVerificationSamlMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb b/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb deleted file mode 100644 index 3e34fa68..00000000 --- a/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class EnterpriseAccountVerificationSamlMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi b/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi deleted file mode 100644 index e01d884d..00000000 --- a/lib/clerk/models/components/enterpriseaccount_verification_saml_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::EnterpriseAccountVerificationSamlMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::EnterpriseAccountVerificationSamlMeta -end diff --git a/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb b/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb index 4bfb7dc7..1f071840 100644 --- a/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb +++ b/lib/clerk/models/components/externalaccountwithverification_verification_oauth_clerkerror.rb @@ -19,7 +19,7 @@ class ExternalAccountWithVerificationVerificationOauthClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::ExternalAccountWithVerificationVerificationOauthMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb b/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb deleted file mode 100644 index 9ffd1798..00000000 --- a/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class ExternalAccountWithVerificationVerificationOauthMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi b/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi deleted file mode 100644 index 29e305ce..00000000 --- a/lib/clerk/models/components/externalaccountwithverification_verification_oauth_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::ExternalAccountWithVerificationVerificationOauthMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::ExternalAccountWithVerificationVerificationOauthMeta -end diff --git a/lib/clerk/models/components/schemas_featureresponse.rb b/lib/clerk/models/components/featureresponse_2.rb similarity index 86% rename from lib/clerk/models/components/schemas_featureresponse.rb rename to lib/clerk/models/components/featureresponse_2.rb index e5ec5b25..559f59bf 100644 --- a/lib/clerk/models/components/schemas_featureresponse.rb +++ b/lib/clerk/models/components/featureresponse_2.rb @@ -8,12 +8,12 @@ module Clerk module Models module Components - class SchemasFeatureResponse + class FeatureResponse2 include Crystalline::MetadataFields # String representing the object's type. Objects of the same type share the same value. - field :object, Models::Components::SchemasFeatureResponseObject, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasFeatureResponseObject, false) } } + field :object, Models::Components::FeatureResponse2Object, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::FeatureResponse2Object, false) } } # Unique identifier for the feature. field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } } # The name of the feature. diff --git a/lib/clerk/models/components/schemas_featureresponse.rbi b/lib/clerk/models/components/featureresponse_2.rbi similarity index 77% rename from lib/clerk/models/components/schemas_featureresponse.rbi rename to lib/clerk/models/components/featureresponse_2.rbi index d7634594..6eff1125 100644 --- a/lib/clerk/models/components/schemas_featureresponse.rbi +++ b/lib/clerk/models/components/featureresponse_2.rbi @@ -2,12 +2,12 @@ # frozen_string_literal: true -class Clerk::Models::Components::SchemasFeatureResponse +class Clerk::Models::Components::FeatureResponse2 extend ::Crystalline::MetadataFields::ClassMethods end -class Clerk::Models::Components::SchemasFeatureResponse +class Clerk::Models::Components::FeatureResponse2 def object(); end def object=(str_); end def id(); end diff --git a/lib/clerk/models/components/schemas_featureresponse_object.rb b/lib/clerk/models/components/featureresponse_2_object.rb similarity index 63% rename from lib/clerk/models/components/schemas_featureresponse_object.rb rename to lib/clerk/models/components/featureresponse_2_object.rb index 5a582b5e..62f43fc6 100644 --- a/lib/clerk/models/components/schemas_featureresponse_object.rb +++ b/lib/clerk/models/components/featureresponse_2_object.rb @@ -7,8 +7,8 @@ module Clerk module Models module Components - # SchemasFeatureResponseObject - String representing the object's type. Objects of the same type share the same value. - class SchemasFeatureResponseObject + # FeatureResponse2Object - String representing the object's type. Objects of the same type share the same value. + class FeatureResponse2Object include ::Crystalline::Enum enums do FEATURE = new('feature') diff --git a/lib/clerk/models/components/featureresponse_2_object.rbi b/lib/clerk/models/components/featureresponse_2_object.rbi new file mode 100644 index 00000000..7998634f --- /dev/null +++ b/lib/clerk/models/components/featureresponse_2_object.rbi @@ -0,0 +1,11 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Components::FeatureResponse2Object + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Components::FeatureResponse2Object +end diff --git a/lib/clerk/models/components/payer_commercepayer.rb b/lib/clerk/models/components/payer_commercepayer.rb index fd829182..3e0d243c 100644 --- a/lib/clerk/models/components/payer_commercepayer.rb +++ b/lib/clerk/models/components/payer_commercepayer.rb @@ -13,7 +13,7 @@ class PayerCommercePayer include Crystalline::MetadataFields # String representing the object's type. Objects of the same type share the same value. - field :object, Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer, false) } } + field :object, Models::Components::CommerceSubscriptionItem2ObjectCommercePayer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('object'), required: true, 'decoder': ::Clerk::Utils.enum_from_string(Models::Components::CommerceSubscriptionItem2ObjectCommercePayer, false) } } # Unique identifier for the payer. field :id, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('id'), required: true } } # Unique identifier for the Clerk instance. diff --git a/lib/clerk/models/components/samlaccount_clerkerror.rb b/lib/clerk/models/components/samlaccount_clerkerror.rb index 8df93db9..57f9f847 100644 --- a/lib/clerk/models/components/samlaccount_clerkerror.rb +++ b/lib/clerk/models/components/samlaccount_clerkerror.rb @@ -19,7 +19,7 @@ class SAMLAccountClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::SAMLAccountMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/samlaccount_meta.rb b/lib/clerk/models/components/samlaccount_meta.rb deleted file mode 100644 index 6aa8c250..00000000 --- a/lib/clerk/models/components/samlaccount_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class SAMLAccountMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/samlconnection_1.rb b/lib/clerk/models/components/samlconnection_1.rb index c02dc423..3a3312aa 100644 --- a/lib/clerk/models/components/samlconnection_1.rb +++ b/lib/clerk/models/components/samlconnection_1.rb @@ -58,6 +58,12 @@ class SAMLConnection1 field :idp_sso_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_sso_url'), required: true } } field :idp_certificate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate'), required: true } } + # Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured. + # + field :idp_certificate_issued_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_issued_at'), required: true } } + # Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured. + # + field :idp_certificate_expires_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_expires_at'), required: true } } field :attribute_mapping, Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('attribute_mapping') } } @@ -70,7 +76,7 @@ class SAMLConnection1 field :enterprise_connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enterprise_connection_id') } } - def initialize(object:, id:, name:, domain:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, created_at:, updated_at:, domains: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil) + def initialize(object:, id:, name:, domain:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, created_at:, updated_at:, domains: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_certificate_issued_at: nil, idp_certificate_expires_at: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil) @object = object @id = id @name = name @@ -93,6 +99,8 @@ def initialize(object:, id:, name:, domain:, acs_url:, sp_entity_id:, sp_metadat @idp_entity_id = idp_entity_id @idp_sso_url = idp_sso_url @idp_certificate = idp_certificate + @idp_certificate_issued_at = idp_certificate_issued_at + @idp_certificate_expires_at = idp_certificate_expires_at @attribute_mapping = attribute_mapping @idp_metadata_url = idp_metadata_url @idp_metadata = idp_metadata @@ -125,6 +133,8 @@ def ==(other) return false unless @idp_entity_id == other.idp_entity_id return false unless @idp_sso_url == other.idp_sso_url return false unless @idp_certificate == other.idp_certificate + return false unless @idp_certificate_issued_at == other.idp_certificate_issued_at + return false unless @idp_certificate_expires_at == other.idp_certificate_expires_at return false unless @attribute_mapping == other.attribute_mapping return false unless @idp_metadata_url == other.idp_metadata_url return false unless @idp_metadata == other.idp_metadata diff --git a/lib/clerk/models/components/samlconnection_1.rbi b/lib/clerk/models/components/samlconnection_1.rbi index df107328..043df419 100644 --- a/lib/clerk/models/components/samlconnection_1.rbi +++ b/lib/clerk/models/components/samlconnection_1.rbi @@ -52,6 +52,10 @@ class Clerk::Models::Components::SAMLConnection1 def idp_sso_url=(str_); end def idp_certificate(); end def idp_certificate=(str_); end + def idp_certificate_issued_at(); end + def idp_certificate_issued_at=(str_); end + def idp_certificate_expires_at(); end + def idp_certificate_expires_at=(str_); end def attribute_mapping(); end def attribute_mapping=(str_); end def idp_metadata_url(); end diff --git a/lib/clerk/models/components/samlconnection_2.rb b/lib/clerk/models/components/samlconnection_2.rb index b057b2eb..984c9f83 100644 --- a/lib/clerk/models/components/samlconnection_2.rb +++ b/lib/clerk/models/components/samlconnection_2.rb @@ -58,6 +58,12 @@ class SAMLConnection2 field :idp_sso_url, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_sso_url'), required: true } } field :idp_certificate, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate'), required: true } } + # Unix timestamp (milliseconds) of the start of the IdP certificate validity window (X.509 NotBefore). Null when no certificate is configured. + # + field :idp_certificate_issued_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_issued_at'), required: true } } + # Unix timestamp (milliseconds) of the end of the IdP certificate validity window (X.509 NotAfter). Null when no certificate is configured. + # + field :idp_certificate_expires_at, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('idp_certificate_expires_at'), required: true } } field :attribute_mapping, Crystalline::Nilable.new(Models::Components::SAMLConnectionAttributeMapping), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('attribute_mapping') } } @@ -70,7 +76,7 @@ class SAMLConnection2 field :enterprise_connection_id, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enterprise_connection_id') } } - def initialize(object:, id:, name:, domains:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, created_at:, updated_at:, domain: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil) + def initialize(object:, id:, name:, domains:, acs_url:, sp_entity_id:, sp_metadata_url:, active:, provider:, user_count:, sync_user_attributes:, allow_subdomains:, allow_idp_initiated:, disable_additional_identifications:, allow_organization_account_linking:, force_authn:, created_at:, updated_at:, domain: nil, idp_entity_id: nil, idp_sso_url: nil, idp_certificate: nil, idp_certificate_issued_at: nil, idp_certificate_expires_at: nil, attribute_mapping: nil, idp_metadata_url: nil, idp_metadata: nil, organization_id: nil, enterprise_connection_id: nil) @object = object @id = id @name = name @@ -93,6 +99,8 @@ def initialize(object:, id:, name:, domains:, acs_url:, sp_entity_id:, sp_metada @idp_entity_id = idp_entity_id @idp_sso_url = idp_sso_url @idp_certificate = idp_certificate + @idp_certificate_issued_at = idp_certificate_issued_at + @idp_certificate_expires_at = idp_certificate_expires_at @attribute_mapping = attribute_mapping @idp_metadata_url = idp_metadata_url @idp_metadata = idp_metadata @@ -125,6 +133,8 @@ def ==(other) return false unless @idp_entity_id == other.idp_entity_id return false unless @idp_sso_url == other.idp_sso_url return false unless @idp_certificate == other.idp_certificate + return false unless @idp_certificate_issued_at == other.idp_certificate_issued_at + return false unless @idp_certificate_expires_at == other.idp_certificate_expires_at return false unless @attribute_mapping == other.attribute_mapping return false unless @idp_metadata_url == other.idp_metadata_url return false unless @idp_metadata == other.idp_metadata diff --git a/lib/clerk/models/components/samlconnection_2.rbi b/lib/clerk/models/components/samlconnection_2.rbi index b9e1c130..9d9b2301 100644 --- a/lib/clerk/models/components/samlconnection_2.rbi +++ b/lib/clerk/models/components/samlconnection_2.rbi @@ -52,6 +52,10 @@ class Clerk::Models::Components::SAMLConnection2 def idp_sso_url=(str_); end def idp_certificate(); end def idp_certificate=(str_); end + def idp_certificate_issued_at(); end + def idp_certificate_issued_at=(str_); end + def idp_certificate_expires_at(); end + def idp_certificate_expires_at=(str_); end def attribute_mapping(); end def attribute_mapping=(str_); end def idp_metadata_url(); end diff --git a/lib/clerk/models/components/schemas_commerceplan_object.rbi b/lib/clerk/models/components/schemas_commerceplan_object.rbi deleted file mode 100644 index 956cf449..00000000 --- a/lib/clerk/models/components/schemas_commerceplan_object.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommercePlanObject - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommercePlanObject -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi deleted file mode 100644 index 0e68edfb..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_fee.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemAnnualFee - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemAnnualFee - def amount(); end - def amount=(str_); end - def amount_formatted(); end - def amount_formatted=(str_); end - def currency(); end - def currency=(str_); end - def currency_symbol(); end - def currency_symbol=(str_); end -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb b/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb deleted file mode 100644 index 5a35f04b..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rb +++ /dev/null @@ -1,44 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class SchemasCommerceSubscriptionItemAnnualMonthlyFee - - include Crystalline::MetadataFields - - # The amount in cents. - field :amount, ::Integer, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount'), required: true } } - # The formatted amount as a string (e.g., "$49.99"). - field :amount_formatted, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('amount_formatted'), required: true } } - # The currency code (e.g., "USD"). - field :currency, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency'), required: true } } - # The currency symbol (e.g., "$"). - field :currency_symbol, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('currency_symbol'), required: true } } - - - def initialize(amount:, amount_formatted:, currency:, currency_symbol:) - @amount = amount - @amount_formatted = amount_formatted - @currency = currency - @currency_symbol = currency_symbol - end - - - def ==(other) - return false unless other.is_a? self.class - return false unless @amount == other.amount - return false unless @amount_formatted == other.amount_formatted - return false unless @currency == other.currency - return false unless @currency_symbol == other.currency_symbol - true - end - end - end - end -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi deleted file mode 100644 index 9147fe26..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_annual_monthly_fee.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemAnnualMonthlyFee - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemAnnualMonthlyFee - def amount(); end - def amount=(str_); end - def amount_formatted(); end - def amount_formatted=(str_); end - def currency(); end - def currency=(str_); end - def currency_symbol(); end - def currency_symbol=(str_); end -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi deleted file mode 100644 index 06d53c13..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_next_payment_amount.rbi +++ /dev/null @@ -1,19 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentAmount - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemNextPaymentAmount - def amount(); end - def amount=(str_); end - def amount_formatted(); end - def amount_formatted=(str_); end - def currency(); end - def currency=(str_); end - def currency_symbol(); end - def currency_symbol=(str_); end -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi deleted file mode 100644 index 4d8d79c5..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercepayer.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemObjectCommercePayer -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi deleted file mode 100644 index add4a2d0..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commerceplan.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemObjectCommercePlan - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemObjectCommercePlan -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi deleted file mode 100644 index 83bdbc19..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_object_commercesubscriptionitem.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemObjectCommerceSubscriptionItem -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi deleted file mode 100644 index 17028ada..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_plan_period.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemPlanPeriod - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemPlanPeriod -end diff --git a/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi b/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi deleted file mode 100644 index 2b1db900..00000000 --- a/lib/clerk/models/components/schemas_commercesubscriptionitem_status.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemStatus - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasCommerceSubscriptionItemStatus -end diff --git a/lib/clerk/models/components/schemas_featureresponse_object.rbi b/lib/clerk/models/components/schemas_featureresponse_object.rbi deleted file mode 100644 index d7c359d9..00000000 --- a/lib/clerk/models/components/schemas_featureresponse_object.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::SchemasFeatureResponseObject - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::SchemasFeatureResponseObject -end diff --git a/lib/clerk/models/components/seats.rb b/lib/clerk/models/components/seats.rb index 4bb63537..31c64bec 100644 --- a/lib/clerk/models/components/seats.rb +++ b/lib/clerk/models/components/seats.rb @@ -15,7 +15,7 @@ class Seats # Seat quantity being billed; null means unlimited field :quantity, Crystalline::Nilable.new(::Integer), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('quantity'), required: true } } # Per-unit cost breakdown by pricing tier - field :tiers, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::SchemasCommercePerUnitTotalTier)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('tiers') } } + field :tiers, Crystalline::Nilable.new(Crystalline::Array.new(Models::Components::CommercePerUnitTotalTier2)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('tiers') } } def initialize(quantity: nil, tiers: nil) diff --git a/lib/clerk/models/components/verification_from_oauth_clerkerror.rb b/lib/clerk/models/components/verification_from_oauth_clerkerror.rb index 15dfb7d8..e0ef18ca 100644 --- a/lib/clerk/models/components/verification_from_oauth_clerkerror.rb +++ b/lib/clerk/models/components/verification_from_oauth_clerkerror.rb @@ -19,7 +19,7 @@ class VerificationFromOauthClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::VerificationFromOauthMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/verification_from_oauth_meta.rb b/lib/clerk/models/components/verification_from_oauth_meta.rb deleted file mode 100644 index 30ea2e18..00000000 --- a/lib/clerk/models/components/verification_from_oauth_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class VerificationFromOauthMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/verification_from_oauth_meta.rbi b/lib/clerk/models/components/verification_from_oauth_meta.rbi deleted file mode 100644 index 86be171b..00000000 --- a/lib/clerk/models/components/verification_from_oauth_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::VerificationFromOauthMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::VerificationFromOauthMeta -end diff --git a/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb b/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb index 4cdc6555..86afdbbd 100644 --- a/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb +++ b/lib/clerk/models/components/verification_google_one_tap_clerkerror.rb @@ -19,7 +19,7 @@ class VerificationGoogleOneTapClerkError field :code, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('code'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::VerificationGoogleOneTapMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } def initialize(message:, long_message:, code:, meta: nil) diff --git a/lib/clerk/models/components/verification_google_one_tap_meta.rb b/lib/clerk/models/components/verification_google_one_tap_meta.rb deleted file mode 100644 index f5a3006d..00000000 --- a/lib/clerk/models/components/verification_google_one_tap_meta.rb +++ /dev/null @@ -1,27 +0,0 @@ -# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -# typed: false -# frozen_string_literal: true - - -module Clerk - module Models - module Components - - class VerificationGoogleOneTapMeta - - include Crystalline::MetadataFields - - - - def initialize; end - - - def ==(other) - return false unless other.is_a? self.class - true - end - end - end - end -end diff --git a/lib/clerk/models/components/verification_google_one_tap_meta.rbi b/lib/clerk/models/components/verification_google_one_tap_meta.rbi deleted file mode 100644 index 8c570a95..00000000 --- a/lib/clerk/models/components/verification_google_one_tap_meta.rbi +++ /dev/null @@ -1,11 +0,0 @@ -# typed: false -# frozen_string_literal: true - - -class Clerk::Models::Components::VerificationGoogleOneTapMeta - extend ::Crystalline::MetadataFields::ClassMethods -end - - -class Clerk::Models::Components::VerificationGoogleOneTapMeta -end diff --git a/lib/clerk/models/errors/clerkerrors.rb b/lib/clerk/models/errors/clerkerrors.rb index 8fe43487..0c2c680e 100644 --- a/lib/clerk/models/errors/clerkerrors.rb +++ b/lib/clerk/models/errors/clerkerrors.rb @@ -15,7 +15,7 @@ class ClerkErrors < StandardError field :errors, Crystalline::Array.new(Models::Components::ClerkError), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('errors'), required: true } } - field :meta, Crystalline::Nilable.new(Models::Components::ClerkErrorsMeta), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } + field :meta, Crystalline::Nilable.new(Crystalline::Hash.new(Symbol, ::Object)), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('meta') } } # Raw HTTP response; suitable for custom response parsing field :raw_response, Crystalline::Nilable.new(::Faraday::Response), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('-') } } diff --git a/lib/clerk/models/operations.rb b/lib/clerk/models/operations.rb index 06412030..7fcbdb29 100644 --- a/lib/clerk/models/operations.rb +++ b/lib/clerk/models/operations.rb @@ -364,6 +364,9 @@ module Operations autoload :RevokeAgentTaskResponse, 'clerk/models/operations/revokeagenttask_response.rb' autoload :RevokeInvitationRequest, 'clerk/models/operations/revokeinvitation_request.rb' autoload :RevokeInvitationResponse, 'clerk/models/operations/revokeinvitation_response.rb' + autoload :RevokeOAuthApplicationTokenRequestBody, 'clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb' + autoload :RevokeOAuthApplicationTokenRequest, 'clerk/models/operations/revokeoauthapplicationtoken_request.rb' + autoload :RevokeOAuthApplicationTokenResponse, 'clerk/models/operations/revokeoauthapplicationtoken_response.rb' autoload :RevokeOrganizationInvitationRequestBody, 'clerk/models/operations/revokeorganizationinvitation_requestbody.rb' autoload :RevokeOrganizationInvitationRequest, 'clerk/models/operations/revokeorganizationinvitation_request.rb' autoload :RevokeOrganizationInvitationResponse, 'clerk/models/operations/revokeorganizationinvitation_response.rb' diff --git a/lib/clerk/models/operations/createorganizationdomain_requestbody.rb b/lib/clerk/models/operations/createorganizationdomain_requestbody.rb index f729d7d2..b8acf183 100644 --- a/lib/clerk/models/operations/createorganizationdomain_requestbody.rb +++ b/lib/clerk/models/operations/createorganizationdomain_requestbody.rb @@ -14,7 +14,7 @@ class CreateOrganizationDomainRequestBody # The name of the new domain field :name, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('name') } } - # The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` + # The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` field :enrollment_mode, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enrollment_mode') } } # The status of domain's verification. Defaults to true field :verified, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('verified') } } diff --git a/lib/clerk/models/operations/enrollment_mode.rb b/lib/clerk/models/operations/enrollment_mode.rb index b7c669a2..38b53143 100644 --- a/lib/clerk/models/operations/enrollment_mode.rb +++ b/lib/clerk/models/operations/enrollment_mode.rb @@ -14,6 +14,11 @@ class EnrollmentMode MANUAL_INVITATION = new('manual_invitation') AUTOMATIC_INVITATION = new('automatic_invitation') AUTOMATIC_SUGGESTION = new('automatic_suggestion') + ENTERPRISE_SSO = new('enterprise_sso') + MINUS_MANUAL_INVITATION = new('-manual_invitation') + MINUS_AUTOMATIC_INVITATION = new('-automatic_invitation') + MINUS_AUTOMATIC_SUGGESTION = new('-automatic_suggestion') + MINUS_ENTERPRISE_SSO = new('-enterprise_sso') end end end diff --git a/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb b/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb index 27008947..5720302d 100644 --- a/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb +++ b/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rb @@ -19,14 +19,14 @@ class ExtendBillingSubscriptionItemFreeTrialResponse # Raw HTTP response; suitable for custom response parsing field :raw_response, ::Faraday::Response # A commerce subscription item. - field :schemas_commerce_subscription_item, Crystalline::Nilable.new(Models::Components::SchemasCommerceSubscriptionItem) + field :commerce_subscription_item_2, Crystalline::Nilable.new(Models::Components::CommerceSubscriptionItem2) - def initialize(content_type:, status_code:, raw_response:, schemas_commerce_subscription_item: nil) + def initialize(content_type:, status_code:, raw_response:, commerce_subscription_item_2: nil) @content_type = content_type @status_code = status_code @raw_response = raw_response - @schemas_commerce_subscription_item = schemas_commerce_subscription_item + @commerce_subscription_item_2 = commerce_subscription_item_2 end @@ -35,7 +35,7 @@ def ==(other) return false unless @content_type == other.content_type return false unless @status_code == other.status_code return false unless @raw_response == other.raw_response - return false unless @schemas_commerce_subscription_item == other.schemas_commerce_subscription_item + return false unless @commerce_subscription_item_2 == other.commerce_subscription_item_2 true end end diff --git a/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi b/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi index ea4e3a18..472ad7e3 100644 --- a/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi +++ b/lib/clerk/models/operations/extendbillingsubscriptionitemfreetrial_response.rbi @@ -14,6 +14,6 @@ class Clerk::Models::Operations::ExtendBillingSubscriptionItemFreeTrialResponse def status_code=(str_); end def raw_response(); end def raw_response=(str_); end - def schemas_commerce_subscription_item(); end - def schemas_commerce_subscription_item=(str_); end + def commerce_subscription_item_2(); end + def commerce_subscription_item_2=(str_); end end diff --git a/lib/clerk/models/operations/listallorganizationdomains_request.rb b/lib/clerk/models/operations/listallorganizationdomains_request.rb index 95750d03..bf31f52a 100644 --- a/lib/clerk/models/operations/listallorganizationdomains_request.rb +++ b/lib/clerk/models/operations/listallorganizationdomains_request.rb @@ -16,7 +16,8 @@ class ListAllOrganizationDomainsRequest field :organization_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'organization_id', 'style': 'form', 'explode': true } } # Filter by verification status field :verified, Crystalline::Nilable.new(Models::Operations::Verified), { 'query_param': { 'field_name': 'verified', 'style': 'form', 'explode': true } } - # Filter by enrollment mode + # Filter by enrollment mode. Prefix a value with `-` to exclude it instead + # (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. field :enrollment_mode, Crystalline::Nilable.new(Crystalline::Array.new(Models::Operations::EnrollmentMode)), { 'query_param': { 'field_name': 'enrollment_mode', 'style': 'form', 'explode': false } } # Search domains by name or organization ID. # If the query starts with "org_", it will search by exact organization ID match. diff --git a/lib/clerk/models/operations/listorganizationdomains_request.rb b/lib/clerk/models/operations/listorganizationdomains_request.rb index e54ea0ee..8a8312e8 100644 --- a/lib/clerk/models/operations/listorganizationdomains_request.rb +++ b/lib/clerk/models/operations/listorganizationdomains_request.rb @@ -16,7 +16,8 @@ class ListOrganizationDomainsRequest field :organization_id, ::String, { 'path_param': { 'field_name': 'organization_id', 'style': 'simple', 'explode': false } } # Filter domains by their verification status. `true` or `false` field :verified, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'verified', 'style': 'form', 'explode': true } } - # Filter domains by their enrollment mode + # Filter domains by their enrollment mode. Accepts `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso`. + # Prefix a value with `-` to exclude it instead (e.g. `-enterprise_sso`). Include and exclude filters can be combined and compose as AND. field :enrollment_mode, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'enrollment_mode', 'style': 'form', 'explode': true } } # Applies a limit to the number of results returned. # Can be used for paginating the results together with `offset`. diff --git a/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb b/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb new file mode 100644 index 00000000..6fc20061 --- /dev/null +++ b/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rb @@ -0,0 +1,36 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: false +# frozen_string_literal: true + + +module Clerk + module Models + module Operations + + class RevokeOAuthApplicationTokenRequest + + include Crystalline::MetadataFields + + # The ID of the OAuth application for which to revoke the token + field :oauth_application_id, ::String, { 'path_param': { 'field_name': 'oauth_application_id', 'style': 'simple', 'explode': false } } + + field :body, Models::Operations::RevokeOAuthApplicationTokenRequestBody, { 'request': { 'media_type': 'application/json' } } + + + def initialize(oauth_application_id:, body:) + @oauth_application_id = oauth_application_id + @body = body + end + + + def ==(other) + return false unless other.is_a? self.class + return false unless @oauth_application_id == other.oauth_application_id + return false unless @body == other.body + true + end + end + end + end +end diff --git a/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi b/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi new file mode 100644 index 00000000..ca637a0d --- /dev/null +++ b/lib/clerk/models/operations/revokeoauthapplicationtoken_request.rbi @@ -0,0 +1,15 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Operations::RevokeOAuthApplicationTokenRequest + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Operations::RevokeOAuthApplicationTokenRequest + def oauth_application_id(); end + def oauth_application_id=(str_); end + def body(); end + def body=(str_); end +end diff --git a/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb b/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb new file mode 100644 index 00000000..fa1ae520 --- /dev/null +++ b/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rb @@ -0,0 +1,32 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: false +# frozen_string_literal: true + + +module Clerk + module Models + module Operations + + class RevokeOAuthApplicationTokenRequestBody + + include Crystalline::MetadataFields + + # The opaque OAuth access token or refresh token to revoke. All tokens associated with the same OAuth grant are also revoked. + field :token, ::String, { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('token'), required: true } } + + + def initialize(token:) + @token = token + end + + + def ==(other) + return false unless other.is_a? self.class + return false unless @token == other.token + true + end + end + end + end +end diff --git a/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi b/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi new file mode 100644 index 00000000..2f824256 --- /dev/null +++ b/lib/clerk/models/operations/revokeoauthapplicationtoken_requestbody.rbi @@ -0,0 +1,13 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Operations::RevokeOAuthApplicationTokenRequestBody + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Operations::RevokeOAuthApplicationTokenRequestBody + def token(); end + def token=(str_); end +end diff --git a/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb b/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb new file mode 100644 index 00000000..e64c3d49 --- /dev/null +++ b/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rb @@ -0,0 +1,40 @@ +# Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + +# typed: false +# frozen_string_literal: true + + +module Clerk + module Models + module Operations + + class RevokeOAuthApplicationTokenResponse + + include Crystalline::MetadataFields + + # HTTP response content type for this operation + field :content_type, ::String + # HTTP response status code for this operation + field :status_code, ::Integer + # Raw HTTP response; suitable for custom response parsing + field :raw_response, ::Faraday::Response + + + def initialize(content_type:, status_code:, raw_response:) + @content_type = content_type + @status_code = status_code + @raw_response = raw_response + end + + + def ==(other) + return false unless other.is_a? self.class + return false unless @content_type == other.content_type + return false unless @status_code == other.status_code + return false unless @raw_response == other.raw_response + true + end + end + end + end +end diff --git a/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi b/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi new file mode 100644 index 00000000..88091960 --- /dev/null +++ b/lib/clerk/models/operations/revokeoauthapplicationtoken_response.rbi @@ -0,0 +1,17 @@ +# typed: false +# frozen_string_literal: true + + +class Clerk::Models::Operations::RevokeOAuthApplicationTokenResponse + extend ::Crystalline::MetadataFields::ClassMethods +end + + +class Clerk::Models::Operations::RevokeOAuthApplicationTokenResponse + def content_type(); end + def content_type=(str_); end + def status_code(); end + def status_code=(str_); end + def raw_response(); end + def raw_response=(str_); end +end diff --git a/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb b/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb index b13ad07f..4e5c2e66 100644 --- a/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb +++ b/lib/clerk/models/operations/updateorganizationdomain_requestbody.rb @@ -12,7 +12,7 @@ class UpdateOrganizationDomainRequestBody include Crystalline::MetadataFields - # The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion` or `manual_invitation` + # The enrollment_mode for the new domain. This can be `automatic_invitation`, `automatic_suggestion`, `manual_invitation` or `enterprise_sso` field :enrollment_mode, Crystalline::Nilable.new(::String), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('enrollment_mode') } } # The status of the domain's verification field :verified, Crystalline::Nilable.new(Crystalline::Boolean.new), { 'format_json': { 'letter_case': ::Clerk::Utils.field_name('verified') } } diff --git a/lib/clerk/oauthaccesstokens.rb b/lib/clerk/oauthaccesstokens.rb index e8eb8f4b..ddb4fdf7 100644 --- a/lib/clerk/oauthaccesstokens.rb +++ b/lib/clerk/oauthaccesstokens.rb @@ -79,7 +79,7 @@ def verify(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def verify(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def verify(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/oauthapplications.rb b/lib/clerk/oauthapplications.rb index 946bf160..1eaff2c3 100644 --- a/lib/clerk/oauthapplications.rb +++ b/lib/clerk/oauthapplications.rb @@ -79,7 +79,7 @@ def list(limit: nil, offset: nil, order_by: nil, name_query: nil, retries: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def list(limit: nil, offset: nil, order_by: nil, name_query: nil, retries: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -132,13 +132,13 @@ def list(limit: nil, offset: nil, order_by: nil, name_query: nil, retries: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -228,7 +228,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -244,7 +244,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -281,13 +281,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -373,7 +373,7 @@ def get(oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -389,7 +389,7 @@ def get(oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -425,13 +425,13 @@ def get(oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -529,7 +529,7 @@ def update(body:, oauth_application_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -545,7 +545,7 @@ def update(body:, oauth_application_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -582,13 +582,13 @@ def update(body:, oauth_application_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -675,7 +675,7 @@ def delete(oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -691,7 +691,7 @@ def delete(oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: n error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -727,13 +727,13 @@ def delete(oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -833,7 +833,7 @@ def upload_logo(oauth_application_id:, body: nil, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -849,7 +849,7 @@ def upload_logo(oauth_application_id:, body: nil, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -886,13 +886,13 @@ def upload_logo(oauth_application_id:, body: nil, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -979,7 +979,7 @@ def rotate_secret(oauth_application_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -995,7 +995,7 @@ def rotate_secret(oauth_application_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -1031,13 +1031,13 @@ def rotate_secret(oauth_application_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1084,5 +1084,155 @@ def rotate_secret(oauth_application_id:, retries: nil, timeout_ms: nil, http_hea end end + + + + def revoke_token(body:, oauth_application_id:, retries: nil, timeout_ms: nil, http_headers: nil) + # revoke_token - Revoke an OAuth application token + # Revoke both OAuth access token and refresh token for the associated grant for the given OAuth application. + # The request may specify either token. + # JWT access tokens cannot be revoked. + request = Models::Operations::RevokeOAuthApplicationTokenRequest.new( + oauth_application_id: oauth_application_id, + body: body + ) + url, params = @sdk_configuration.get_server_details + base_url = Utils.template_url(url, params) + url = Utils.generate_url( + Models::Operations::RevokeOAuthApplicationTokenRequest, + base_url, + '/oauth_applications/{oauth_application_id}/revoke_token', + request + ) + headers = {} + + req_content_type, data, form = Utils.serialize_request_body(request, false, false, :body, :json) + headers['content-type'] = req_content_type + raise StandardError, 'request body is required' if data.nil? && form.nil? + + if form && !form.empty? + body = Utils.encode_form(form) + elsif Utils.match_content_type(req_content_type, 'application/x-www-form-urlencoded') + body = URI.encode_www_form(data) + else + body = data + end + headers['Accept'] = 'application/json' + headers['user-agent'] = @sdk_configuration.user_agent + retries ||= @sdk_configuration.retry_config + retries ||= Utils::RetryConfig.new( + backoff: Utils::BackoffStrategy.new( + exponent: 1.5, + initial_interval: 500, + max_elapsed_time: 3_600_000, + max_interval: 60_000 + ), + retry_connection_errors: true, + strategy: 'backoff' + ) + retry_options = retries.to_faraday_retry_options(initial_time: Time.now) + retry_options[:retry_statuses] = [500, 501, 502, 503, 504, 505] + + security = @sdk_configuration.security_source&.call + + timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? + timeout ||= @sdk_configuration.timeout + + + connection = @sdk_configuration.client.dup + connection.request :retry, retry_options + + hook_ctx = SDKHooks::HookContext.new( + config: @sdk_configuration, + base_url: base_url, + oauth2_scopes: nil, + operation_id: 'RevokeOAuthApplicationToken', + security_source: @sdk_configuration.security_source + ) + + error = nil + http_response = nil + + + begin + http_response = connection.post(url) do |req| + req.body = body + req.headers.merge!(headers) + req.options.timeout = timeout unless timeout.nil? + Utils.configure_request_security(req, security) + http_headers&.each do |key, value| + req.headers[key.to_s] = value + end + + @sdk_configuration.hooks.before_request( + hook_ctx: SDKHooks::BeforeRequestHookContext.new( + hook_ctx: hook_ctx + ), + request: req + ) + end + rescue StandardError => e + error = e + ensure + if http_response.nil? || Utils.error_status?(http_response.status) + http_response = @sdk_configuration.hooks.after_error( + error: error, + hook_ctx: SDKHooks::AfterErrorHookContext.new( + hook_ctx: hook_ctx + ), + response: http_response + ) + else + http_response = @sdk_configuration.hooks.after_success( + hook_ctx: SDKHooks::AfterSuccessHookContext.new( + hook_ctx: hook_ctx + ), + response: http_response + ) + end + + if http_response.nil? + raise error if !error.nil? + raise 'no response' + end + end + + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') + if Utils.match_status_code(http_response.status, ['204']) + http_response = @sdk_configuration.hooks.after_success( + hook_ctx: SDKHooks::AfterSuccessHookContext.new( + hook_ctx: hook_ctx + ), + response: http_response + ) + return Models::Operations::RevokeOAuthApplicationTokenResponse.new( + status_code: http_response.status, + content_type: content_type, + raw_response: http_response + ) + elsif Utils.match_status_code(http_response.status, ['400', '403', '404', '422']) + if Utils.match_content_type(content_type, 'application/json') + http_response = @sdk_configuration.hooks.after_success( + hook_ctx: SDKHooks::AfterSuccessHookContext.new( + hook_ctx: hook_ctx + ), + response: http_response + ) + response_data = http_response.env.response_body + obj = Crystalline.unmarshal_json(JSON.parse(response_data), Models::Errors::ClerkErrors) + obj.raw_response = http_response + raise obj + else + raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' + end + elsif Utils.match_status_code(http_response.status, ['4XX']) + raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred' + elsif Utils.match_status_code(http_response.status, ['5XX']) + raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'API error occurred' + else + raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown status code received' + + end + end end end diff --git a/lib/clerk/organizationdomains.rb b/lib/clerk/organizationdomains.rb index 0dd49e71..4093f182 100644 --- a/lib/clerk/organizationdomains.rb +++ b/lib/clerk/organizationdomains.rb @@ -89,7 +89,7 @@ def create(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -105,7 +105,7 @@ def create(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -142,13 +142,13 @@ def create(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -232,7 +232,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -248,7 +248,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -285,13 +285,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -390,7 +390,7 @@ def update(body:, organization_id:, domain_id:, retries: nil, timeout_ms: nil, h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -406,7 +406,7 @@ def update(body:, organization_id:, domain_id:, retries: nil, timeout_ms: nil, h error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -443,13 +443,13 @@ def update(body:, organization_id:, domain_id:, retries: nil, timeout_ms: nil, h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -472,7 +472,7 @@ def update(body:, organization_id:, domain_id:, retries: nil, timeout_ms: nil, h else raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' end - elsif Utils.match_status_code(http_response.status, ['400', '404', '422']) + elsif Utils.match_status_code(http_response.status, ['400', '403', '404', '422']) if Utils.match_content_type(content_type, 'application/json') http_response = @sdk_configuration.hooks.after_success( hook_ctx: SDKHooks::AfterSuccessHookContext.new( @@ -536,7 +536,7 @@ def delete(organization_id:, domain_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -552,7 +552,7 @@ def delete(organization_id:, domain_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -588,13 +588,13 @@ def delete(organization_id:, domain_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -617,7 +617,7 @@ def delete(organization_id:, domain_id:, retries: nil, timeout_ms: nil, http_hea else raise ::Clerk::Models::Errors::APIError.new(status_code: http_response.status, body: http_response.env.response_body, raw_response: http_response), 'Unknown content type received' end - elsif Utils.match_status_code(http_response.status, ['400', '401', '404']) + elsif Utils.match_status_code(http_response.status, ['400', '401', '403', '404']) if Utils.match_content_type(content_type, 'application/json') http_response = @sdk_configuration.hooks.after_success( hook_ctx: SDKHooks::AfterSuccessHookContext.new( @@ -688,7 +688,7 @@ def verify_ownership(organization_id:, domain_id:, retries: nil, timeout_ms: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -704,7 +704,7 @@ def verify_ownership(organization_id:, domain_id:, retries: nil, timeout_ms: nil error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -740,13 +740,13 @@ def verify_ownership(organization_id:, domain_id:, retries: nil, timeout_ms: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -831,7 +831,7 @@ def list_all(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -847,7 +847,7 @@ def list_all(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -884,13 +884,13 @@ def list_all(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/organizationinvitations.rb b/lib/clerk/organizationinvitations.rb index aec2b7e3..3b3816a0 100644 --- a/lib/clerk/organizationinvitations.rb +++ b/lib/clerk/organizationinvitations.rb @@ -75,7 +75,7 @@ def get_all(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -91,7 +91,7 @@ def get_all(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -128,13 +128,13 @@ def get_all(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -261,7 +261,7 @@ def create(organization_id:, body: nil, retries: nil, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -277,7 +277,7 @@ def create(organization_id:, body: nil, retries: nil, timeout_ms: nil, http_head error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -314,13 +314,13 @@ def create(organization_id:, body: nil, retries: nil, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -409,7 +409,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -425,7 +425,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -462,13 +462,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -581,7 +581,7 @@ def bulk_create(body:, organization_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -597,7 +597,7 @@ def bulk_create(body:, organization_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -634,13 +634,13 @@ def bulk_create(body:, organization_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -736,7 +736,7 @@ def list_pending(organization_id:, limit: nil, offset: nil, retries: nil, timeou timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -752,7 +752,7 @@ def list_pending(organization_id:, limit: nil, offset: nil, retries: nil, timeou error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -789,13 +789,13 @@ def list_pending(organization_id:, limit: nil, offset: nil, retries: nil, timeou response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -882,7 +882,7 @@ def get(organization_id:, invitation_id:, retries: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -898,7 +898,7 @@ def get(organization_id:, invitation_id:, retries: nil, timeout_ms: nil, http_he error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -934,13 +934,13 @@ def get(organization_id:, invitation_id:, retries: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1042,7 +1042,7 @@ def revoke(organization_id:, invitation_id:, body: nil, retries: nil, timeout_ms timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1058,7 +1058,7 @@ def revoke(organization_id:, invitation_id:, body: nil, retries: nil, timeout_ms error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1095,13 +1095,13 @@ def revoke(organization_id:, invitation_id:, body: nil, retries: nil, timeout_ms response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/organizationmemberships.rb b/lib/clerk/organizationmemberships.rb index 29ac4865..8ac8c936 100644 --- a/lib/clerk/organizationmemberships.rb +++ b/lib/clerk/organizationmemberships.rb @@ -94,7 +94,7 @@ def create(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -110,7 +110,7 @@ def create(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -147,13 +147,13 @@ def create(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -237,7 +237,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -253,7 +253,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -290,13 +290,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -395,7 +395,7 @@ def update(body:, organization_id:, user_id:, retries: nil, timeout_ms: nil, htt timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -411,7 +411,7 @@ def update(body:, organization_id:, user_id:, retries: nil, timeout_ms: nil, htt error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -448,13 +448,13 @@ def update(body:, organization_id:, user_id:, retries: nil, timeout_ms: nil, htt response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -541,7 +541,7 @@ def delete(organization_id:, user_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -557,7 +557,7 @@ def delete(organization_id:, user_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -593,13 +593,13 @@ def delete(organization_id:, user_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -699,7 +699,7 @@ def update_metadata(organization_id:, user_id:, body: nil, retries: nil, timeout timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -715,7 +715,7 @@ def update_metadata(organization_id:, user_id:, body: nil, retries: nil, timeout error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -752,13 +752,13 @@ def update_metadata(organization_id:, user_id:, body: nil, retries: nil, timeout response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/organizationpermissions.rb b/lib/clerk/organizationpermissions.rb index 4f1f38ae..be5e0454 100644 --- a/lib/clerk/organizationpermissions.rb +++ b/lib/clerk/organizationpermissions.rb @@ -76,7 +76,7 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -92,7 +92,7 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -129,13 +129,13 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -224,7 +224,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -240,7 +240,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -277,13 +277,13 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -369,7 +369,7 @@ def get(permission_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -385,7 +385,7 @@ def get(permission_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -421,13 +421,13 @@ def get(permission_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -526,7 +526,7 @@ def update(body:, permission_id:, retries: nil, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -542,7 +542,7 @@ def update(body:, permission_id:, retries: nil, timeout_ms: nil, http_headers: n error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -579,13 +579,13 @@ def update(body:, permission_id:, retries: nil, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -672,7 +672,7 @@ def delete(permission_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -688,7 +688,7 @@ def delete(permission_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -724,13 +724,13 @@ def delete(permission_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/organizationroles.rb b/lib/clerk/organizationroles.rb index f3722a21..02c2fbc2 100644 --- a/lib/clerk/organizationroles.rb +++ b/lib/clerk/organizationroles.rb @@ -79,7 +79,7 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -132,13 +132,13 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -230,7 +230,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -246,7 +246,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -283,13 +283,13 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -375,7 +375,7 @@ def get(organization_role_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -391,7 +391,7 @@ def get(organization_role_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -427,13 +427,13 @@ def get(organization_role_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -534,7 +534,7 @@ def update(body:, organization_role_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -550,7 +550,7 @@ def update(body:, organization_role_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -587,13 +587,13 @@ def update(body:, organization_role_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -680,7 +680,7 @@ def delete(organization_role_id:, retries: nil, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -696,7 +696,7 @@ def delete(organization_role_id:, retries: nil, timeout_ms: nil, http_headers: n error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -732,13 +732,13 @@ def delete(organization_role_id:, retries: nil, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -825,7 +825,7 @@ def assign_permission(organization_role_id:, permission_id:, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -841,7 +841,7 @@ def assign_permission(organization_role_id:, permission_id:, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -877,13 +877,13 @@ def assign_permission(organization_role_id:, permission_id:, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -970,7 +970,7 @@ def remove_permission(organization_role_id:, permission_id:, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -986,7 +986,7 @@ def remove_permission(organization_role_id:, permission_id:, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -1022,13 +1022,13 @@ def remove_permission(organization_role_id:, permission_id:, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/organizations.rb b/lib/clerk/organizations.rb index 0ae82926..56403eb9 100644 --- a/lib/clerk/organizations.rb +++ b/lib/clerk/organizations.rb @@ -73,7 +73,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -89,7 +89,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -126,13 +126,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -229,7 +229,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -245,7 +245,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -282,13 +282,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -377,7 +377,7 @@ def get(organization_id:, include_members_count: nil, include_missing_member_wit timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -393,7 +393,7 @@ def get(organization_id:, include_members_count: nil, include_missing_member_wit error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -430,13 +430,13 @@ def get(organization_id:, include_members_count: nil, include_missing_member_wit response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -537,7 +537,7 @@ def update(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -553,7 +553,7 @@ def update(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -590,13 +590,13 @@ def update(body:, organization_id:, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -687,7 +687,7 @@ def delete(organization_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -703,7 +703,7 @@ def delete(organization_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -739,13 +739,13 @@ def delete(organization_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -846,7 +846,7 @@ def merge_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, http_ timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -862,7 +862,7 @@ def merge_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, http_ error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -899,13 +899,13 @@ def merge_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, http_ response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1008,7 +1008,7 @@ def replace_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, htt timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1024,7 +1024,7 @@ def replace_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, htt error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -1061,13 +1061,13 @@ def replace_metadata(body:, organization_id:, retries: nil, timeout_ms: nil, htt response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1167,7 +1167,7 @@ def upload_logo(organization_id:, body: nil, retries: nil, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1183,7 +1183,7 @@ def upload_logo(organization_id:, body: nil, retries: nil, timeout_ms: nil, http error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -1220,13 +1220,13 @@ def upload_logo(organization_id:, body: nil, retries: nil, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1312,7 +1312,7 @@ def delete_logo(organization_id:, retries: nil, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1328,7 +1328,7 @@ def delete_logo(organization_id:, retries: nil, timeout_ms: nil, http_headers: n error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -1364,13 +1364,13 @@ def delete_logo(organization_id:, retries: nil, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1458,7 +1458,7 @@ def get_billing_subscription(organization_id:, retries: nil, timeout_ms: nil, ht timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1474,7 +1474,7 @@ def get_billing_subscription(organization_id:, retries: nil, timeout_ms: nil, ht error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1510,13 +1510,13 @@ def get_billing_subscription(organization_id:, retries: nil, timeout_ms: nil, ht response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1618,7 +1618,7 @@ def get_billing_credit_balance(organization_id:, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1634,7 +1634,7 @@ def get_billing_credit_balance(organization_id:, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -1670,13 +1670,13 @@ def get_billing_credit_balance(organization_id:, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1791,7 +1791,7 @@ def adjust_billing_credit_balance(body:, organization_id:, retries: nil, timeout timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1807,7 +1807,7 @@ def adjust_billing_credit_balance(body:, organization_id:, retries: nil, timeout error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1844,13 +1844,13 @@ def adjust_billing_credit_balance(body:, organization_id:, retries: nil, timeout response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/phonenumbers.rb b/lib/clerk/phonenumbers.rb index fab7bc7a..da44869c 100644 --- a/lib/clerk/phonenumbers.rb +++ b/lib/clerk/phonenumbers.rb @@ -79,7 +79,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -95,7 +95,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -132,13 +132,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -224,7 +224,7 @@ def get(phone_number_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -240,7 +240,7 @@ def get(phone_number_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -276,13 +276,13 @@ def get(phone_number_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -368,7 +368,7 @@ def delete(phone_number_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -384,7 +384,7 @@ def delete(phone_number_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -420,13 +420,13 @@ def delete(phone_number_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -523,7 +523,7 @@ def update(phone_number_id:, body: nil, retries: nil, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -539,7 +539,7 @@ def update(phone_number_id:, body: nil, retries: nil, timeout_ms: nil, http_head error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -576,13 +576,13 @@ def update(phone_number_id:, body: nil, retries: nil, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -671,7 +671,7 @@ def prepare_verification(phone_number_id:, retries: nil, timeout_ms: nil, http_h timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -687,7 +687,7 @@ def prepare_verification(phone_number_id:, retries: nil, timeout_ms: nil, http_h error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -723,13 +723,13 @@ def prepare_verification(phone_number_id:, retries: nil, timeout_ms: nil, http_h response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -852,7 +852,7 @@ def attempt_verification(body:, phone_number_id:, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -868,7 +868,7 @@ def attempt_verification(body:, phone_number_id:, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -905,13 +905,13 @@ def attempt_verification(body:, phone_number_id:, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1029,7 +1029,7 @@ def replace_for_user(body:, user_id:, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1045,7 +1045,7 @@ def replace_for_user(body:, user_id:, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -1082,13 +1082,13 @@ def replace_for_user(body:, user_id:, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/proxychecks.rb b/lib/clerk/proxychecks.rb index 27ccd440..389457fc 100644 --- a/lib/clerk/proxychecks.rb +++ b/lib/clerk/proxychecks.rb @@ -86,7 +86,7 @@ def verify(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -102,7 +102,7 @@ def verify(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -139,13 +139,13 @@ def verify(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/redirecturls.rb b/lib/clerk/redirecturls.rb index 7003078c..8e183083 100644 --- a/lib/clerk/redirecturls.rb +++ b/lib/clerk/redirecturls.rb @@ -75,7 +75,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -91,7 +91,7 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -128,13 +128,13 @@ def list(paginated: nil, limit: nil, offset: nil, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -207,7 +207,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -223,7 +223,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -260,13 +260,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -352,7 +352,7 @@ def get(id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -368,7 +368,7 @@ def get(id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -404,13 +404,13 @@ def get(id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -496,7 +496,7 @@ def delete(id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -512,7 +512,7 @@ def delete(id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -548,13 +548,13 @@ def delete(id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/rolesets.rb b/lib/clerk/rolesets.rb index 1650e89e..817cac76 100644 --- a/lib/clerk/rolesets.rb +++ b/lib/clerk/rolesets.rb @@ -78,7 +78,7 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -94,7 +94,7 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -131,13 +131,13 @@ def list(query: nil, order_by: nil, limit: nil, offset: nil, retries: nil, timeo response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -228,7 +228,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -244,7 +244,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -281,13 +281,13 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -373,7 +373,7 @@ def get(role_set_key_or_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -389,7 +389,7 @@ def get(role_set_key_or_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -425,13 +425,13 @@ def get(role_set_key_or_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -531,7 +531,7 @@ def update(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -547,7 +547,7 @@ def update(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -584,13 +584,13 @@ def update(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -690,7 +690,7 @@ def replace(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_head timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -706,7 +706,7 @@ def replace(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_head error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -743,13 +743,13 @@ def replace(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_head response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -848,7 +848,7 @@ def add_roles(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -864,7 +864,7 @@ def add_roles(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_he error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -901,13 +901,13 @@ def add_roles(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1006,7 +1006,7 @@ def replace_role(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1022,7 +1022,7 @@ def replace_role(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1059,13 +1059,13 @@ def replace_role(body:, role_set_key_or_id:, retries: nil, timeout_ms: nil, http response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/samlconnections.rb b/lib/clerk/samlconnections.rb index a6108c61..3b4c8903 100644 --- a/lib/clerk/samlconnections.rb +++ b/lib/clerk/samlconnections.rb @@ -75,7 +75,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -91,7 +91,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -128,13 +128,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -225,7 +225,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -241,7 +241,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -278,13 +278,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -373,7 +373,7 @@ def get(saml_connection_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -389,7 +389,7 @@ def get(saml_connection_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -425,13 +425,13 @@ def get(saml_connection_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -532,7 +532,7 @@ def update(body:, saml_connection_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -548,7 +548,7 @@ def update(body:, saml_connection_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -585,13 +585,13 @@ def update(body:, saml_connection_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -680,7 +680,7 @@ def delete(saml_connection_id:, retries: nil, timeout_ms: nil, http_headers: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -696,7 +696,7 @@ def delete(saml_connection_id:, retries: nil, timeout_ms: nil, http_headers: nil error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -732,13 +732,13 @@ def delete(saml_connection_id:, retries: nil, timeout_ms: nil, http_headers: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/sdkconfiguration.rb b/lib/clerk/sdkconfiguration.rb index 23f02e6b..e39576ff 100644 --- a/lib/clerk/sdkconfiguration.rb +++ b/lib/clerk/sdkconfiguration.rb @@ -76,9 +76,9 @@ def initialize(client, hooks, retry_config, timeout_ms, bearer_auth, security_so end @language = 'ruby' @openapi_doc_version = '2026-05-12' - @sdk_version = '7.0.0' - @gen_version = '2.903.0' - @user_agent = 'speakeasy-sdk/ruby 7.0.0 2.903.0 2026-05-12 clerk-sdk-ruby' + @sdk_version = '7.0.1' + @gen_version = '2.915.1' + @user_agent = 'speakeasy-sdk/ruby 7.0.1 2.915.1 2026-05-12 clerk-sdk-ruby' end diff --git a/lib/clerk/sessions.rb b/lib/clerk/sessions.rb index 3f17a6bd..b7eb92d2 100644 --- a/lib/clerk/sessions.rb +++ b/lib/clerk/sessions.rb @@ -76,7 +76,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -92,7 +92,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -129,13 +129,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -226,7 +226,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -242,7 +242,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -279,13 +279,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -371,7 +371,7 @@ def get(session_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -387,7 +387,7 @@ def get(session_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -423,13 +423,13 @@ def get(session_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -527,7 +527,7 @@ def refresh(session_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -543,7 +543,7 @@ def refresh(session_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -580,13 +580,13 @@ def refresh(session_id:, body: nil, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -673,7 +673,7 @@ def revoke(session_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -689,7 +689,7 @@ def revoke(session_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -725,13 +725,13 @@ def revoke(session_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -828,7 +828,7 @@ def create_token(session_id:, body: nil, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -844,7 +844,7 @@ def create_token(session_id:, body: nil, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -881,13 +881,13 @@ def create_token(session_id:, body: nil, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -985,7 +985,7 @@ def create_token_from_template(session_id:, template_name:, body: nil, retries: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1001,7 +1001,7 @@ def create_token_from_template(session_id:, template_name:, body: nil, retries: error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1038,13 +1038,13 @@ def create_token_from_template(session_id:, template_name:, body: nil, retries: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/signintokens.rb b/lib/clerk/signintokens.rb index 59981233..cf3549fa 100644 --- a/lib/clerk/signintokens.rb +++ b/lib/clerk/signintokens.rb @@ -81,7 +81,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -97,7 +97,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -134,13 +134,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -226,7 +226,7 @@ def revoke(sign_in_token_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -242,7 +242,7 @@ def revoke(sign_in_token_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -278,13 +278,13 @@ def revoke(sign_in_token_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/signups.rb b/lib/clerk/signups.rb index 69cec564..5a862230 100644 --- a/lib/clerk/signups.rb +++ b/lib/clerk/signups.rb @@ -77,7 +77,7 @@ def get(id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -93,7 +93,7 @@ def get(id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -129,13 +129,13 @@ def get(id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -232,7 +232,7 @@ def update(id:, body: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -248,7 +248,7 @@ def update(id:, body: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -285,13 +285,13 @@ def update(id:, body: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/templates.rb b/lib/clerk/templates.rb index a6627c2a..dd8ec24d 100644 --- a/lib/clerk/templates.rb +++ b/lib/clerk/templates.rb @@ -91,7 +91,7 @@ def preview(template_type:, slug:, body: nil, retries: nil, timeout_ms: nil, htt timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -107,7 +107,7 @@ def preview(template_type:, slug:, body: nil, retries: nil, timeout_ms: nil, htt error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -144,13 +144,13 @@ def preview(template_type:, slug:, body: nil, retries: nil, timeout_ms: nil, htt response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/testingtokens.rb b/lib/clerk/testingtokens.rb index aaa9e90f..e8030e29 100644 --- a/lib/clerk/testingtokens.rb +++ b/lib/clerk/testingtokens.rb @@ -69,7 +69,7 @@ def create(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -85,7 +85,7 @@ def create(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -121,13 +121,13 @@ def create(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/users.rb b/lib/clerk/users.rb index ed1e2b57..f9b0dfd8 100644 --- a/lib/clerk/users.rb +++ b/lib/clerk/users.rb @@ -71,7 +71,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -87,7 +87,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -124,13 +124,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -225,7 +225,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -241,7 +241,7 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -278,13 +278,13 @@ def create(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -363,7 +363,7 @@ def count(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -379,7 +379,7 @@ def count(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -416,13 +416,13 @@ def count(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -508,7 +508,7 @@ def get(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -524,7 +524,7 @@ def get(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -560,13 +560,13 @@ def get(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -672,7 +672,7 @@ def update(body:, user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -688,7 +688,7 @@ def update(body:, user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -725,13 +725,13 @@ def update(body:, user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -817,7 +817,7 @@ def delete(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -833,7 +833,7 @@ def delete(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -869,13 +869,13 @@ def delete(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -961,7 +961,7 @@ def ban(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -977,7 +977,7 @@ def ban(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -1013,13 +1013,13 @@ def ban(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1105,7 +1105,7 @@ def unban(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1121,7 +1121,7 @@ def unban(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -1157,13 +1157,13 @@ def unban(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1252,7 +1252,7 @@ def bulk_ban(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1268,7 +1268,7 @@ def bulk_ban(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1305,13 +1305,13 @@ def bulk_ban(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1400,7 +1400,7 @@ def bulk_unban(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1416,7 +1416,7 @@ def bulk_unban(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1453,13 +1453,13 @@ def bulk_unban(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1546,7 +1546,7 @@ def lock(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1562,7 +1562,7 @@ def lock(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -1598,13 +1598,13 @@ def lock(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1690,7 +1690,7 @@ def unlock(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1706,7 +1706,7 @@ def unlock(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -1742,13 +1742,13 @@ def unlock(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1846,7 +1846,7 @@ def set_profile_image(body:, user_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -1862,7 +1862,7 @@ def set_profile_image(body:, user_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -1899,13 +1899,13 @@ def set_profile_image(body:, user_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -1991,7 +1991,7 @@ def delete_profile_image(user_id:, retries: nil, timeout_ms: nil, http_headers: timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2007,7 +2007,7 @@ def delete_profile_image(user_id:, retries: nil, timeout_ms: nil, http_headers: error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -2043,13 +2043,13 @@ def delete_profile_image(user_id:, retries: nil, timeout_ms: nil, http_headers: response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2153,7 +2153,7 @@ def update_metadata(user_id:, body: nil, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2169,7 +2169,7 @@ def update_metadata(user_id:, body: nil, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.patch(url) do |req| req.body = body @@ -2206,13 +2206,13 @@ def update_metadata(user_id:, body: nil, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2317,7 +2317,7 @@ def replace_metadata(user_id:, body: nil, retries: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2333,7 +2333,7 @@ def replace_metadata(user_id:, body: nil, retries: nil, timeout_ms: nil, http_he error = nil http_response = nil - + begin http_response = connection.put(url) do |req| req.body = body @@ -2370,13 +2370,13 @@ def replace_metadata(user_id:, body: nil, retries: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2464,7 +2464,7 @@ def get_billing_subscription(user_id:, retries: nil, timeout_ms: nil, http_heade timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2480,7 +2480,7 @@ def get_billing_subscription(user_id:, retries: nil, timeout_ms: nil, http_heade error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -2516,13 +2516,13 @@ def get_billing_subscription(user_id:, retries: nil, timeout_ms: nil, http_heade response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2624,7 +2624,7 @@ def get_billing_credit_balance(user_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2640,7 +2640,7 @@ def get_billing_credit_balance(user_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -2676,13 +2676,13 @@ def get_billing_credit_balance(user_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2797,7 +2797,7 @@ def adjust_billing_credit_balance(body:, user_id:, retries: nil, timeout_ms: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2813,7 +2813,7 @@ def adjust_billing_credit_balance(body:, user_id:, retries: nil, timeout_ms: nil error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -2850,13 +2850,13 @@ def adjust_billing_credit_balance(body:, user_id:, retries: nil, timeout_ms: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -2956,7 +2956,7 @@ def get_o_auth_access_token(request:, retries: nil, timeout_ms: nil, http_header timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -2972,7 +2972,7 @@ def get_o_auth_access_token(request:, retries: nil, timeout_ms: nil, http_header error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -3009,13 +3009,13 @@ def get_o_auth_access_token(request:, retries: nil, timeout_ms: nil, http_header response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -3104,7 +3104,7 @@ def get_organization_memberships(user_id:, limit: nil, offset: nil, retries: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -3120,7 +3120,7 @@ def get_organization_memberships(user_id:, limit: nil, offset: nil, retries: nil error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -3157,13 +3157,13 @@ def get_organization_memberships(user_id:, limit: nil, offset: nil, retries: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -3253,7 +3253,7 @@ def get_organization_invitations(user_id:, limit: nil, offset: nil, status: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -3269,7 +3269,7 @@ def get_organization_invitations(user_id:, limit: nil, offset: nil, status: nil, error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -3306,13 +3306,13 @@ def get_organization_invitations(user_id:, limit: nil, offset: nil, status: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -3410,7 +3410,7 @@ def verify_password(user_id:, body: nil, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -3426,7 +3426,7 @@ def verify_password(user_id:, body: nil, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -3463,13 +3463,13 @@ def verify_password(user_id:, body: nil, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -3569,7 +3569,7 @@ def verify_totp(user_id:, body: nil, retries: nil, timeout_ms: nil, http_headers timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -3585,7 +3585,7 @@ def verify_totp(user_id:, body: nil, retries: nil, timeout_ms: nil, http_headers error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -3622,13 +3622,13 @@ def verify_totp(user_id:, body: nil, retries: nil, timeout_ms: nil, http_headers response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -3714,7 +3714,7 @@ def disable_mfa(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -3730,7 +3730,7 @@ def disable_mfa(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -3766,13 +3766,13 @@ def disable_mfa(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -3873,7 +3873,7 @@ def delete_backup_codes(user_id:, retries: nil, timeout_ms: nil, http_headers: n timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -3889,7 +3889,7 @@ def delete_backup_codes(user_id:, retries: nil, timeout_ms: nil, http_headers: n error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -3925,13 +3925,13 @@ def delete_backup_codes(user_id:, retries: nil, timeout_ms: nil, http_headers: n response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4033,7 +4033,7 @@ def delete_passkey(user_id:, passkey_identification_id:, retries: nil, timeout_m timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4049,7 +4049,7 @@ def delete_passkey(user_id:, passkey_identification_id:, retries: nil, timeout_m error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -4085,13 +4085,13 @@ def delete_passkey(user_id:, passkey_identification_id:, retries: nil, timeout_m response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4193,7 +4193,7 @@ def delete_web3_wallet(user_id:, web3_wallet_identification_id:, retries: nil, t timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4209,7 +4209,7 @@ def delete_web3_wallet(user_id:, web3_wallet_identification_id:, retries: nil, t error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -4245,13 +4245,13 @@ def delete_web3_wallet(user_id:, web3_wallet_identification_id:, retries: nil, t response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4352,7 +4352,7 @@ def delete_totp(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4368,7 +4368,7 @@ def delete_totp(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -4404,13 +4404,13 @@ def delete_totp(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4512,7 +4512,7 @@ def delete_external_account(user_id:, external_account_id:, retries: nil, timeou timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4528,7 +4528,7 @@ def delete_external_account(user_id:, external_account_id:, retries: nil, timeou error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -4564,13 +4564,13 @@ def delete_external_account(user_id:, external_account_id:, retries: nil, timeou response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4682,7 +4682,7 @@ def set_password_compromised(user_id:, body: nil, retries: nil, timeout_ms: nil, timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4698,7 +4698,7 @@ def set_password_compromised(user_id:, body: nil, retries: nil, timeout_ms: nil, error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -4735,13 +4735,13 @@ def set_password_compromised(user_id:, body: nil, retries: nil, timeout_ms: nil, response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4794,6 +4794,8 @@ def set_password_compromised(user_id:, body: nil, retries: nil, timeout_ms: nil, def unset_password_compromised(user_id:, retries: nil, timeout_ms: nil, http_headers: nil) # unset_password_compromised - Unset a user's password as compromised # Sets the given user's password as no longer compromised. The user will no longer be prompted to reset their password on their next sign-in. + # + # If the user is in reserved-email password quarantine, the quarantine is preserved and the returned user will still have `requires_password_reset` set to `true`. Reserved-email password quarantine can only be cleared by completing a password reset or changing/removing the password. request = Models::Operations::UnsetUserPasswordCompromisedRequest.new( user_id: user_id ) @@ -4827,7 +4829,7 @@ def unset_password_compromised(user_id:, retries: nil, timeout_ms: nil, http_hea timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4843,7 +4845,7 @@ def unset_password_compromised(user_id:, retries: nil, timeout_ms: nil, http_hea error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -4879,13 +4881,13 @@ def unset_password_compromised(user_id:, retries: nil, timeout_ms: nil, http_hea response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -4969,7 +4971,7 @@ def get_instance_organization_memberships(order_by: nil, limit: nil, offset: nil timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -4985,7 +4987,7 @@ def get_instance_organization_memberships(order_by: nil, limit: nil, offset: nil error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -5022,13 +5024,13 @@ def get_instance_organization_memberships(order_by: nil, limit: nil, offset: nil response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/utils/retries.rb b/lib/clerk/utils/retries.rb index 9d0f21e2..663b3220 100644 --- a/lib/clerk/utils/retries.rb +++ b/lib/clerk/utils/retries.rb @@ -67,12 +67,15 @@ def to_faraday_retry_options(initial_time:) if @strategy == 'backoff' && @backoff retry_options[:backoff_factor] = @backoff.exponent unless @backoff.exponent.nil? retry_options[:interval] = (@backoff.initial_interval.to_f / 1000) unless @backoff.initial_interval.nil? - retry_options[:max_interval] = @backoff.max_interval unless @backoff.max_interval.nil? + retry_options[:max_interval] = (@backoff.max_interval.to_f / 1000) unless @backoff.max_interval.nil? unless @backoff.max_elapsed_time.nil? stop_time = initial_time + (@backoff.max_elapsed_time.to_f / 1000) retry_options[:retry_if] = ->(_env, _exc) { Time.now < stop_time } end + + retry_options[:rate_limit_retry_header] = 'retry-after-ms' + retry_options[:header_parser_block] = ->(value) { value.to_f / 1000 } end retry_options diff --git a/lib/clerk/waitlistentries.rb b/lib/clerk/waitlistentries.rb index 738d42e0..f3dd7f18 100644 --- a/lib/clerk/waitlistentries.rb +++ b/lib/clerk/waitlistentries.rb @@ -72,7 +72,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -88,7 +88,7 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.get(url) do |req| req.headers.merge!(headers) @@ -125,13 +125,13 @@ def list(request:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -205,7 +205,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -221,7 +221,7 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -258,13 +258,13 @@ def create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -359,7 +359,7 @@ def bulk_create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -375,7 +375,7 @@ def bulk_create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -412,13 +412,13 @@ def bulk_create(request: nil, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -504,7 +504,7 @@ def delete(waitlist_entry_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -520,7 +520,7 @@ def delete(waitlist_entry_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -556,13 +556,13 @@ def delete(waitlist_entry_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -659,7 +659,7 @@ def invite(waitlist_entry_id:, body: nil, retries: nil, timeout_ms: nil, http_he timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -675,7 +675,7 @@ def invite(waitlist_entry_id:, body: nil, retries: nil, timeout_ms: nil, http_he error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.body = body @@ -712,13 +712,13 @@ def invite(waitlist_entry_id:, body: nil, retries: nil, timeout_ms: nil, http_he response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -804,7 +804,7 @@ def reject(waitlist_entry_id:, retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -820,7 +820,7 @@ def reject(waitlist_entry_id:, retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -856,13 +856,13 @@ def reject(waitlist_entry_id:, retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') diff --git a/lib/clerk/webhooks.rb b/lib/clerk/webhooks.rb index 828d753c..e4ff2843 100644 --- a/lib/clerk/webhooks.rb +++ b/lib/clerk/webhooks.rb @@ -69,7 +69,7 @@ def create_svix_app(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -85,7 +85,7 @@ def create_svix_app(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -121,13 +121,13 @@ def create_svix_app(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json') @@ -205,7 +205,7 @@ def delete_svix_app(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -221,7 +221,7 @@ def delete_svix_app(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.delete(url) do |req| req.headers.merge!(headers) @@ -257,13 +257,13 @@ def delete_svix_app(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['204']) http_response = @sdk_configuration.hooks.after_success( @@ -332,7 +332,7 @@ def generate_svix_auth_url(retries: nil, timeout_ms: nil, http_headers: nil) timeout = (timeout_ms.to_f / 1000) unless timeout_ms.nil? timeout ||= @sdk_configuration.timeout - + connection = @sdk_configuration.client.dup connection.request :retry, retry_options @@ -348,7 +348,7 @@ def generate_svix_auth_url(retries: nil, timeout_ms: nil, http_headers: nil) error = nil http_response = nil - + begin http_response = connection.post(url) do |req| req.headers.merge!(headers) @@ -384,13 +384,13 @@ def generate_svix_auth_url(retries: nil, timeout_ms: nil, http_headers: nil) response: http_response ) end - + if http_response.nil? raise error if !error.nil? raise 'no response' end end - + content_type = http_response.headers.fetch('Content-Type', 'application/octet-stream') if Utils.match_status_code(http_response.status, ['200']) if Utils.match_content_type(content_type, 'application/json')