1 | import type { MetaSysProps, DefaultElements, MakeRequest } from '../common-types';
|
2 | export type PersonalAccessTokenProps = {
|
3 | sys: MetaSysProps & {
|
4 | expiresAt?: string;
|
5 | };
|
6 | name: string;
|
7 | scopes: 'content_management_manage'[];
|
8 | revokedAt: null | string;
|
9 | token?: string;
|
10 | };
|
11 |
|
12 |
|
13 |
|
14 | export type PersonalAccessTokenProp = PersonalAccessTokenProps;
|
15 | export type CreatePersonalAccessTokenProps = Pick<PersonalAccessToken, 'name' | 'scopes'> & {
|
16 | expiresIn?: number;
|
17 | };
|
18 | export interface PersonalAccessToken extends PersonalAccessTokenProps, DefaultElements<PersonalAccessTokenProps> {
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | revoke(): Promise<PersonalAccessToken>;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export declare function wrapPersonalAccessToken(makeRequest: MakeRequest, data: PersonalAccessTokenProps): PersonalAccessToken;
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
|
50 |
|
51 | export declare const wrapPersonalAccessTokenCollection: (makeRequest: MakeRequest, data: import("../common-types").CollectionProp<PersonalAccessTokenProps>) => import("../common-types").Collection<PersonalAccessToken, PersonalAccessTokenProps>;
|