UNPKG

@dodi-smart/nuki-graphql-api

Version:
70 lines 2.97 kB
import type { AdvancedConfirmationResponse } from '../models/AdvancedConfirmationResponse'; import type { DecentralWebhook } from '../models/DecentralWebhook'; import type { SmartlockAction } from '../models/SmartlockAction'; import type { SmartlocksAuthAdvancedCreate } from '../models/SmartlocksAuthAdvancedCreate'; import type { WebhookLog } from '../models/WebhookLog'; import type { CancelablePromise } from '../core/CancelablePromise'; import type { BaseHttpRequest } from '../core/BaseHttpRequest'; export declare class AdvancedApiService { readonly httpRequest: BaseHttpRequest; constructor(httpRequest: BaseHttpRequest); /** * Get all registered decentral webhooks * @returns DecentralWebhook successful operation * @throws ApiError */ getDecentralWebhooks(): CancelablePromise<Array<DecentralWebhook>>; /** * Create decentral webhook * @param requestBody Decentral webhook representation * @returns DecentralWebhook successful operation * @throws ApiError */ createDecentralWebhook(requestBody: DecentralWebhook): CancelablePromise<DecentralWebhook>; /** * Unregister a decentral webhook * @param id The ID of the decentral webhook * @returns void * @throws ApiError */ deleteDecentralWebhook(id: number): CancelablePromise<void>; /** * Get a list of webhook logs (descending) * @param apiKeyId The api key id * @param id Optionally filter for older logs * @param limit Amount of logs (max: 100) * @returns WebhookLog successful operation * @throws ApiError */ getWebhookLogs(apiKeyId: number, id?: string, limit?: number): CancelablePromise<Array<WebhookLog>>; /** * Creates asynchronous smartlock authorizations * @param requestBody Smartlock authorization create representation * @returns AdvancedConfirmationResponse Ok * @throws ApiError */ createSmartlockAuthsAdvanced(requestBody: SmartlocksAuthAdvancedCreate): CancelablePromise<AdvancedConfirmationResponse>; /** * Smartlock Action with Callback * @param smartlockId The smartlock id * @param requestBody Smartlock action representation * @returns AdvancedConfirmationResponse Ok * @throws ApiError */ operateSmartlockAdvanced(smartlockId: string, requestBody: SmartlockAction): CancelablePromise<AdvancedConfirmationResponse>; /** * Lock a smartlock * @param smartlockId The smartlock id * @returns AdvancedConfirmationResponse Ok * @throws ApiError */ lockSmartlockAdvanced(smartlockId: string): CancelablePromise<AdvancedConfirmationResponse>; /** * Unlock a smartlock * @param smartlockId The smartlock id * @returns AdvancedConfirmationResponse Ok * @throws ApiError */ unlockSmartlockAdvanced(smartlockId: string): CancelablePromise<AdvancedConfirmationResponse>; } //# sourceMappingURL=AdvancedApiService.d.ts.map