diff --git a/package-lock.json b/package-lock.json index 56b0e3ff..0aa787b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "^1.44.2", - "@seamapi/types": "^1.94.0", + "@seamapi/types": "^1.106.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.94.0", + "@seamapi/types": "^1.106.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { @@ -1075,9 +1075,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.94.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.94.0.tgz", - "integrity": "sha512-nJLoy3DW6SdzCsP4niQmX7DA+ZMleKULvFRSYBnpWFaPF7V8GpYCVuVKD479Hzrda9RTzyINXToSfRUYphQlfA==", + "version": "1.106.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.106.0.tgz", + "integrity": "sha512-xnwMMt+gHL6uz4cLD1LvXmtM2z0P+PwYA4FE3yngwps2VkaNNpR+U94eIl432zlwt+Fl/UR57aQbmg7OOP8ceA==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 00bd3a6e..3ec419c6 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.94.0", + "@seamapi/types": "^1.106.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { @@ -103,7 +103,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "^1.44.2", - "@seamapi/types": "^1.94.0", + "@seamapi/types": "^1.106.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", diff --git a/src/lib/seam/connect/routes/acs-users.ts b/src/lib/seam/connect/routes/acs-users.ts index dee25d0f..51ffd54d 100644 --- a/src/lib/seam/connect/routes/acs-users.ts +++ b/src/lib/seam/connect/routes/acs-users.ts @@ -228,6 +228,16 @@ export class SeamHttpAcsUsers { }) } + async revokeAccessToAllEntrances( + body?: AcsUsersRevokeAccessToAllEntrancesBody, + ): Promise { + await this.client.request({ + url: '/acs/users/revoke_access_to_all_entrances', + method: 'post', + data: body, + }) + } + async suspend(body?: AcsUsersSuspendBody): Promise { await this.client.request({ url: '/acs/users/suspend', @@ -312,6 +322,15 @@ export type AcsUsersRemoveFromAccessGroupResponse = SetNonNullable< export type AcsUsersRemoveFromAccessGroupOptions = never +export type AcsUsersRevokeAccessToAllEntrancesBody = + RouteRequestBody<'/acs/users/revoke_access_to_all_entrances'> + +export type AcsUsersRevokeAccessToAllEntrancesResponse = SetNonNullable< + Required> +> + +export type AcsUsersRevokeAccessToAllEntrancesOptions = never + export type AcsUsersSuspendBody = RouteRequestBody<'/acs/users/suspend'> export type AcsUsersSuspendResponse = SetNonNullable< diff --git a/src/lib/seam/connect/routes/webhooks.ts b/src/lib/seam/connect/routes/webhooks.ts index f38ac911..59d14565 100644 --- a/src/lib/seam/connect/routes/webhooks.ts +++ b/src/lib/seam/connect/routes/webhooks.ts @@ -194,6 +194,14 @@ export class SeamHttpWebhooks { return data.webhooks } + + async update(body?: WebhooksUpdateBody): Promise { + await this.client.request({ + url: '/webhooks/update', + method: 'post', + data: body, + }) + } } export type WebhooksCreateBody = RouteRequestBody<'/webhooks/create'> @@ -227,3 +235,11 @@ export type WebhooksListResponse = SetNonNullable< > export type WebhooksListOptions = never + +export type WebhooksUpdateBody = RouteRequestBody<'/webhooks/update'> + +export type WebhooksUpdateResponse = SetNonNullable< + Required> +> + +export type WebhooksUpdateOptions = never