From 21d45a24ccbf7741d5f4a879981730aa5c31c906 Mon Sep 17 00:00:00 2001 From: Itelo Filho Date: Thu, 8 Feb 2024 16:00:19 -0300 Subject: [PATCH 1/4] Update "@seamapi/types" dependency to version "^1.103.0" --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 56b0e3ff..b849bdda 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.103.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", @@ -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.103.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.103.0.tgz", + "integrity": "sha512-vDnY5SESEI51nsFYC7Ju2AmWcKZxt4pjn7o7QYFUTWiZ224TJwld9wIh1W9KUJSdQPIxNefp48seHCt9rZ9GkA==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 00bd3a6e..1a4b1745 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "^1.44.2", - "@seamapi/types": "^1.94.0", + "@seamapi/types": "^1.103.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", From acb08b0417fc9c52c5a052390829ce324b6ecf10 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 8 Feb 2024 19:01:41 +0000 Subject: [PATCH 2/4] ci: Generate code --- package-lock.json | 2 +- package.json | 2 +- src/lib/seam/connect/routes/acs-users.ts | 19 +++++++++++++++++++ src/lib/seam/connect/routes/webhooks.ts | 16 ++++++++++++++++ 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index b849bdda..c85ac902 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.94.0", + "@seamapi/types": "^1.103.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { diff --git a/package.json b/package.json index 1a4b1745..3f3f5fd5 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.94.0", + "@seamapi/types": "^1.103.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { 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 From 734fd07cc181681d76fc48c5035c38f05f6bba8e Mon Sep 17 00:00:00 2001 From: Itelo Filho Date: Thu, 8 Feb 2024 16:09:38 -0300 Subject: [PATCH 3/4] Update @seamapi/types to version 1.106.0 --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index c85ac902..13ca458a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "^1.44.2", - "@seamapi/types": "^1.103.0", + "@seamapi/types": "^1.106.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", @@ -1075,9 +1075,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.103.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.103.0.tgz", - "integrity": "sha512-vDnY5SESEI51nsFYC7Ju2AmWcKZxt4pjn7o7QYFUTWiZ224TJwld9wIh1W9KUJSdQPIxNefp48seHCt9rZ9GkA==", + "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 3f3f5fd5..665208db 100644 --- a/package.json +++ b/package.json @@ -103,7 +103,7 @@ }, "devDependencies": { "@seamapi/fake-seam-connect": "^1.44.2", - "@seamapi/types": "^1.103.0", + "@seamapi/types": "^1.106.0", "@types/eslint": "^8.44.2", "@types/node": "^20.8.10", "ava": "^5.0.1", From 830438ba35fb5f9ffa1bd981f91025dbb3100491 Mon Sep 17 00:00:00 2001 From: Seam Bot Date: Thu, 8 Feb 2024 19:10:52 +0000 Subject: [PATCH 4/4] ci: Generate code --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 13ca458a..0aa787b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -47,7 +47,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.103.0", + "@seamapi/types": "^1.106.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": { diff --git a/package.json b/package.json index 665208db..3ec419c6 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "npm": ">= 9.0.0" }, "peerDependencies": { - "@seamapi/types": "^1.103.0", + "@seamapi/types": "^1.106.0", "type-fest": "^4.0.0" }, "peerDependenciesMeta": {