diff --git a/package-lock.json b/package-lock.json index aa4e0b4e..1492acda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,7 +17,7 @@ "@seamapi/blueprint": "^0.52.2", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.761.0", + "@seamapi/types": "1.764.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", @@ -49,7 +49,7 @@ "npm": ">=10.9.4" }, "peerDependencies": { - "@seamapi/types": "^1.761.0" + "@seamapi/types": "^1.764.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -1405,9 +1405,9 @@ "license": "MIT" }, "node_modules/@seamapi/types": { - "version": "1.761.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.761.0.tgz", - "integrity": "sha512-M25GTKyWbPYXRh0lTFZzpbtlEHMX5dbKj8amhgYe9H0tugVMYm1OMj9+w3t0V+eNXm7Qy2jw3c8IPFoLQxSmUA==", + "version": "1.764.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.764.0.tgz", + "integrity": "sha512-8DYH3xqnGanW0xUSKut60Vne0BCG0cZ+rI6B1DaTv/2fQ2lLQ50eLGfmvbe5WL8JVQAtuC3JK4IHclvH/vJAOw==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index a8140181..93ba0520 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "npm": ">=10.9.4" }, "peerDependencies": { - "@seamapi/types": "^1.761.0" + "@seamapi/types": "^1.764.0" }, "peerDependenciesMeta": { "@seamapi/types": { @@ -102,7 +102,7 @@ "@seamapi/blueprint": "^0.52.2", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^0.5.2", - "@seamapi/types": "1.761.0", + "@seamapi/types": "1.764.0", "@swc/core": "^1.11.29", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", diff --git a/src/lib/seam/connect/routes/seam-http-endpoints.ts b/src/lib/seam/connect/routes/seam-http-endpoints.ts index 5195f006..66e865ba 100644 --- a/src/lib/seam/connect/routes/seam-http-endpoints.ts +++ b/src/lib/seam/connect/routes/seam-http-endpoints.ts @@ -711,6 +711,9 @@ import { type SeamCustomerV1ReservationsGetOptions, type SeamCustomerV1ReservationsGetParameters, type SeamCustomerV1ReservationsGetRequest, + type SeamCustomerV1ReservationsListAccessGrantsOptions, + type SeamCustomerV1ReservationsListAccessGrantsParameters, + type SeamCustomerV1ReservationsListAccessGrantsRequest, type SeamCustomerV1ReservationsListOptions, type SeamCustomerV1ReservationsListParameters, type SeamCustomerV1ReservationsListRequest, @@ -3682,6 +3685,29 @@ export class SeamHttpEndpoints { } } + get '/seam/customer/v1/reservations/list_access_grants'(): ( + parameters?: SeamCustomerV1ReservationsListAccessGrantsParameters, + options?: SeamCustomerV1ReservationsListAccessGrantsOptions, + ) => SeamCustomerV1ReservationsListAccessGrantsRequest { + const { client, defaults } = this + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return function seamCustomerV1ReservationsListAccessGrants( + ...args: Parameters< + SeamHttpSeamCustomerV1Reservations['listAccessGrants'] + > + ): ReturnType { + const seam = SeamHttpSeamCustomerV1Reservations.fromClient( + client, + defaults, + ) + return seam.listAccessGrants(...args) + } + } + get '/seam/customer/v1/settings/get'(): ( parameters?: SeamCustomerV1SettingsGetParameters, options?: SeamCustomerV1SettingsGetOptions, @@ -5059,6 +5085,7 @@ export type SeamHttpEndpointQueryPaths = | '/seam/customer/v1/portals/get' | '/seam/customer/v1/reservations/get' | '/seam/customer/v1/reservations/list' + | '/seam/customer/v1/reservations/list_access_grants' | '/seam/customer/v1/settings/get' | '/seam/customer/v1/settings/vertical_resource_aliases/get' | '/seam/customer/v1/spaces/list' diff --git a/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts b/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts index b14646dc..90d81c0f 100644 --- a/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts +++ b/src/lib/seam/connect/routes/seam/customer/v1/reservations/reservations.ts @@ -206,6 +206,24 @@ export class SeamHttpSeamCustomerV1Reservations { options, }) } + + listAccessGrants( + parameters?: SeamCustomerV1ReservationsListAccessGrantsParameters, + options: SeamCustomerV1ReservationsListAccessGrantsOptions = {}, + ): SeamCustomerV1ReservationsListAccessGrantsRequest { + if (!this.defaults.isUndocumentedApiEnabled) { + throw new Error( + 'Cannot use undocumented API without isUndocumentedApiEnabled', + ) + } + return new SeamHttpRequest(this, { + pathname: '/seam/customer/v1/reservations/list_access_grants', + method: 'POST', + body: parameters, + responseKey: 'access_grants', + options, + }) + } } export type SeamCustomerV1ReservationsGetParameters = @@ -253,3 +271,26 @@ export type SeamCustomerV1ReservationsListRequest = SeamHttpRequest< > export interface SeamCustomerV1ReservationsListOptions {} + +export type SeamCustomerV1ReservationsListAccessGrantsParameters = + RouteRequestBody<'/seam/customer/v1/reservations/list_access_grants'> + +/** + * @deprecated Use SeamCustomerV1ReservationsListAccessGrantsParameters instead. + */ +export type SeamCustomerV1ReservationsListAccessGrantsParams = + SeamCustomerV1ReservationsListAccessGrantsParameters + +/** + * @deprecated Use SeamCustomerV1ReservationsListAccessGrantsRequest instead. + */ +export type SeamCustomerV1ReservationsListAccessGrantsResponse = SetNonNullable< + Required> +> + +export type SeamCustomerV1ReservationsListAccessGrantsRequest = SeamHttpRequest< + SeamCustomerV1ReservationsListAccessGrantsResponse, + 'access_grants' +> + +export interface SeamCustomerV1ReservationsListAccessGrantsOptions {}