diff --git a/lib/seam/routes/clients/connected_accounts.rb b/lib/seam/routes/clients/connected_accounts.rb index 2c05b64..b49ecae 100644 --- a/lib/seam/routes/clients/connected_accounts.rb +++ b/lib/seam/routes/clients/connected_accounts.rb @@ -26,6 +26,12 @@ def list(custom_metadata_has: nil, customer_ids: nil, limit: nil, page_cursor: n Seam::Resources::ConnectedAccount.load_from_response(res.body["connected_accounts"]) end + def sync(connected_account_id:) + @client.post("/connected_accounts/sync", {connected_account_id: connected_account_id}.compact) + + nil + end + def update(connected_account_id:, automatically_manage_new_devices: nil, custom_metadata: nil) @client.post("/connected_accounts/update", {connected_account_id: connected_account_id, automatically_manage_new_devices: automatically_manage_new_devices, custom_metadata: custom_metadata}.compact) diff --git a/package-lock.json b/package-lock.json index c8a8bd8..3f48df5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.0", "@seamapi/nextlove-sdk-generator": "^1.18.1", - "@seamapi/types": "1.405.0", + "@seamapi/types": "1.406.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5" @@ -476,9 +476,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.405.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.405.0.tgz", - "integrity": "sha512-kcNY2tltFbmjI+KVn8qlRjFxQEd1eQAq0sacZ/TZ8uNu/jNlXSng8DkkfEHNvcTWd3v8h9FnY8xagweQZ/nBTg==", + "version": "1.406.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.406.0.tgz", + "integrity": "sha512-I0ZFGCJXsCLOa8CT8798moJi7BVqmZ0vUDf1rLSX+a634aM61g87cZwhhz4BZNTy2zyIWXhHx8alQUcG0bkknw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 9a60c9d..73947a6 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.83.0", "@seamapi/nextlove-sdk-generator": "^1.18.1", - "@seamapi/types": "1.405.0", + "@seamapi/types": "1.406.0", "del": "^7.1.0", "markdown-toc": "^1.2.0", "prettier": "^3.2.5"