diff --git a/package-lock.json b/package-lock.json index 9b65a42f..83145c6b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "1.71.0", - "@seamapi/types": "1.299.0", + "@seamapi/types": "1.302.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", @@ -47,7 +47,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.299.0" + "@seamapi/types": "^1.302.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1064,9 +1064,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.299.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.299.0.tgz", - "integrity": "sha512-WrC4RI99eHjUA7NYi8K8AULtpXIaWVYUKsEnuobJTrMjD7rSKU+4e5n/mTB/qk6+LuZV4xdR61gehJZSD/FV/A==", + "version": "1.302.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.302.0.tgz", + "integrity": "sha512-nIcb26cEhy4sNEtgwWLhzPaprFdUWfpiOEx3OaUP8B/wgb2pXsyNDOFmFX4rhjX5CGgC/3zd1c4RrfE9AER0FA==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index f2469d0f..ca63b157 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.299.0" + "@seamapi/types": "^1.302.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -99,7 +99,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "1.71.0", - "@seamapi/types": "1.299.0", + "@seamapi/types": "1.302.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", diff --git a/src/lib/seam/connect/routes/acs-credentials.ts b/src/lib/seam/connect/routes/acs-credentials.ts index 0648a3c0..4309a151 100644 --- a/src/lib/seam/connect/routes/acs-credentials.ts +++ b/src/lib/seam/connect/routes/acs-credentials.ts @@ -182,6 +182,20 @@ export class SeamHttpAcsCredentials { }) } + createOfflineCode( + body?: AcsCredentialsCreateOfflineCodeBody, + ): SeamHttpRequest< + AcsCredentialsCreateOfflineCodeResponse, + 'acs_credential' + > { + return new SeamHttpRequest(this, { + path: '/acs/credentials/create_offline_code', + method: 'post', + body, + responseKey: 'acs_credential', + }) + } + delete(body?: AcsCredentialsDeleteParams): SeamHttpRequest { return new SeamHttpRequest(this, { path: '/acs/credentials/delete', @@ -266,6 +280,15 @@ export type AcsCredentialsCreateResponse = SetNonNullable< export type AcsCredentialsCreateOptions = never +export type AcsCredentialsCreateOfflineCodeBody = + RouteRequestBody<'/acs/credentials/create_offline_code'> + +export type AcsCredentialsCreateOfflineCodeResponse = SetNonNullable< + Required> +> + +export type AcsCredentialsCreateOfflineCodeOptions = never + export type AcsCredentialsDeleteParams = RouteRequestBody<'/acs/credentials/delete'>