Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
quarto-dev
GitHub Repository: quarto-dev/quarto-cli
Path: blob/main/src/publish/netlify/api/services/AuditLogService.ts
6467 views
1
/* istanbul ignore file */
2
/* tslint:disable */
3
/* eslint-disable */
4
import type { CancelablePromise } from "../core/CancelablePromise.ts";
5
import type { BaseHttpRequest } from "../core/BaseHttpRequest.ts";
6
7
export class AuditLogService {
8
constructor(public readonly httpRequest: BaseHttpRequest) {}
9
10
/**
11
* @returns any OK
12
* @throws ApiError
13
*/
14
public listAccountAuditEvents({
15
accountId,
16
query,
17
logType,
18
page,
19
perPage,
20
}: {
21
accountId: string;
22
query?: string;
23
logType?: string;
24
page?: number;
25
perPage?: number;
26
}): CancelablePromise<
27
Array<{
28
id?: string;
29
account_id?: string;
30
payload?: Record<string, any>;
31
}>
32
> {
33
return this.httpRequest.request({
34
method: "GET",
35
url: "/accounts/{account_id}/audit",
36
path: {
37
"account_id": accountId,
38
},
39
query: {
40
"query": query,
41
"log_type": logType,
42
"page": page,
43
"per_page": perPage,
44
},
45
});
46
}
47
}
48
49