@seamapi/http
Advanced tools
Comparing version 0.15.0 to 0.16.0
@@ -18,2 +18,3 @@ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'; | ||
list(body?: AcsEntrancesListParams): Promise<AcsEntrancesListResponse['acs_entrances']>; | ||
listCredentialsWithAccess(body?: AcsEntrancesListCredentialsWithAccessParams): Promise<AcsEntrancesListCredentialsWithAccessResponse['acs_credentials']>; | ||
} | ||
@@ -29,1 +30,4 @@ export type AcsEntrancesGetParams = RouteRequestBody<'/acs/entrances/get'>; | ||
export type AcsEntrancesListOptions = never; | ||
export type AcsEntrancesListCredentialsWithAccessParams = RouteRequestBody<'/acs/entrances/list_credentials_with_access'>; | ||
export type AcsEntrancesListCredentialsWithAccessResponse = SetNonNullable<Required<RouteResponse<'/acs/entrances/list_credentials_with_access'>>>; | ||
export type AcsEntrancesListCredentialsWithAccessOptions = never; |
@@ -87,3 +87,11 @@ /* | ||
} | ||
async listCredentialsWithAccess(body) { | ||
const { data } = await this.client.request({ | ||
url: '/acs/entrances/list_credentials_with_access', | ||
method: 'post', | ||
data: body, | ||
}); | ||
return data.acs_credentials; | ||
} | ||
} | ||
//# sourceMappingURL=acs-entrances.js.map |
@@ -19,2 +19,3 @@ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'; | ||
create(body?: UserIdentitiesCreateBody): Promise<UserIdentitiesCreateResponse['user_identity']>; | ||
delete(body?: UserIdentitiesDeleteBody): Promise<void>; | ||
get(body?: UserIdentitiesGetParams): Promise<UserIdentitiesGetResponse['user_identity']>; | ||
@@ -35,2 +36,5 @@ grantAccessToDevice(body?: UserIdentitiesGrantAccessToDeviceBody): Promise<void>; | ||
export type UserIdentitiesCreateOptions = never; | ||
export type UserIdentitiesDeleteBody = RouteRequestBody<'/user_identities/delete'>; | ||
export type UserIdentitiesDeleteResponse = SetNonNullable<Required<RouteResponse<'/user_identities/delete'>>>; | ||
export type UserIdentitiesDeleteOptions = never; | ||
export type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'>; | ||
@@ -37,0 +41,0 @@ export type UserIdentitiesGetResponse = SetNonNullable<Required<RouteResponse<'/user_identities/get'>>>; |
@@ -83,2 +83,9 @@ /* | ||
} | ||
async delete(body) { | ||
await this.client.request({ | ||
url: '/user_identities/delete', | ||
method: 'post', | ||
data: body, | ||
}); | ||
} | ||
async get(body) { | ||
@@ -85,0 +92,0 @@ const { data } = await this.client.request({ |
@@ -1,2 +0,2 @@ | ||
declare const seamapiJavascriptHttpVersion = "0.15.0"; | ||
declare const seamapiJavascriptHttpVersion = "0.16.0"; | ||
export default seamapiJavascriptHttpVersion; |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.15.0'; | ||
const seamapiJavascriptHttpVersion = '0.16.0'; | ||
export default seamapiJavascriptHttpVersion; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@seamapi/http", | ||
"version": "0.15.0", | ||
"version": "0.16.0", | ||
"description": "JavaScript HTTP client for the Seam API written in TypeScript.", | ||
@@ -106,3 +106,3 @@ "type": "module", | ||
"@seamapi/fake-seam-connect": "^1.44.2", | ||
"@seamapi/types": "^1.88.0", | ||
"@seamapi/types": "^1.94.0", | ||
"@types/eslint": "^8.44.2", | ||
@@ -109,0 +109,0 @@ "@types/node": "^20.8.10", |
@@ -165,2 +165,15 @@ /* | ||
} | ||
async listCredentialsWithAccess( | ||
body?: AcsEntrancesListCredentialsWithAccessParams, | ||
): Promise<AcsEntrancesListCredentialsWithAccessResponse['acs_credentials']> { | ||
const { data } = | ||
await this.client.request<AcsEntrancesListCredentialsWithAccessResponse>({ | ||
url: '/acs/entrances/list_credentials_with_access', | ||
method: 'post', | ||
data: body, | ||
}) | ||
return data.acs_credentials | ||
} | ||
} | ||
@@ -192,1 +205,10 @@ | ||
export type AcsEntrancesListOptions = never | ||
export type AcsEntrancesListCredentialsWithAccessParams = | ||
RouteRequestBody<'/acs/entrances/list_credentials_with_access'> | ||
export type AcsEntrancesListCredentialsWithAccessResponse = SetNonNullable< | ||
Required<RouteResponse<'/acs/entrances/list_credentials_with_access'>> | ||
> | ||
export type AcsEntrancesListCredentialsWithAccessOptions = never |
@@ -162,2 +162,10 @@ /* | ||
async delete(body?: UserIdentitiesDeleteBody): Promise<void> { | ||
await this.client.request<UserIdentitiesDeleteResponse>({ | ||
url: '/user_identities/delete', | ||
method: 'post', | ||
data: body, | ||
}) | ||
} | ||
async get( | ||
@@ -275,2 +283,11 @@ body?: UserIdentitiesGetParams, | ||
export type UserIdentitiesDeleteBody = | ||
RouteRequestBody<'/user_identities/delete'> | ||
export type UserIdentitiesDeleteResponse = SetNonNullable< | ||
Required<RouteResponse<'/user_identities/delete'>> | ||
> | ||
export type UserIdentitiesDeleteOptions = never | ||
export type UserIdentitiesGetParams = RouteRequestBody<'/user_identities/get'> | ||
@@ -277,0 +294,0 @@ |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '0.15.0' | ||
const seamapiJavascriptHttpVersion = '0.16.0' | ||
export default seamapiJavascriptHttpVersion |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1254136
14882