diff --git a/lib/seam/routes/clients/instant_keys.rb b/lib/seam/routes/clients/instant_keys.rb index 9460e57..849f27e 100644 --- a/lib/seam/routes/clients/instant_keys.rb +++ b/lib/seam/routes/clients/instant_keys.rb @@ -8,6 +8,12 @@ def initialize(client:, defaults:) @defaults = defaults end + def get(instant_key_id:) + res = @client.post("/instant_keys/get", {instant_key_id: instant_key_id}.compact) + + Seam::Resources::InstantKey.load_from_response(res.body["instant_key"]) + end + def list(user_identity_id: nil) res = @client.post("/instant_keys/list", {user_identity_id: user_identity_id}.compact) diff --git a/package-lock.json b/package-lock.json index bc2d5ff..c322a6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.19.0", - "@seamapi/types": "1.461.0", + "@seamapi/types": "1.462.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.461.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.461.0.tgz", - "integrity": "sha512-e077CCv/Uhp2XBxYNFHHwYVSpjPxKywl5a/0P3jQqGeSMj4Vix28JTFig3DaDxD0+HjcNuT1wS2HMu6yuluhgw==", + "version": "1.462.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.462.0.tgz", + "integrity": "sha512-kKutohfn1Ju6qgV0zT0IVYf38o5V+qPA01YhQIEyfLT3rdGVdpQZgfOyYJHsNPRDRx4ioeNg9CjyKyFIIVKSAA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 21dcff0..43d883d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.2", "@seamapi/nextlove-sdk-generator": "^1.19.0", - "@seamapi/types": "1.461.0", + "@seamapi/types": "1.462.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"