-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmetamessages.ts
50 lines (43 loc) · 1.31 KB
/
metamessages.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../../resource';
import * as Core from '../../../core';
import * as SessionsMetamessagesAPI from './sessions/metamessages';
import { MetamessagesPage } from './sessions/metamessages';
import { type PageParams } from '../../../pagination';
export class Metamessages extends APIResource {
/**
* Paginate through the user metamessages for a user
*/
list(
appId: string,
userId: string,
params: MetamessageListParams,
options?: Core.RequestOptions,
): Core.PagePromise<MetamessagesPage, SessionsMetamessagesAPI.Metamessage> {
const { page, reverse, size, ...body } = params;
return this._client.getAPIList(`/v1/apps/${appId}/users/${userId}/metamessages/list`, MetamessagesPage, {
query: { page, reverse, size },
body,
method: 'post',
...options,
});
}
}
export interface MetamessageListParams extends PageParams {
/**
* Query param:
*/
reverse?: boolean | null;
/**
* Body param:
*/
filter?: Record<string, unknown> | null;
/**
* Body param:
*/
metamessage_type?: string | null;
}
export declare namespace Metamessages {
export { type MetamessageListParams as MetamessageListParams };
}
export { MetamessagesPage };