-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathapi-key.interface.ts
More file actions
54 lines (51 loc) · 1.35 KB
/
Copy pathapi-key.interface.ts
File metadata and controls
54 lines (51 loc) · 1.35 KB
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
51
52
53
54
// This file is auto-generated by oagen. Do not edit.
import type { ApiKeyOwnerResponse } from './api-key-owner.interface';
/** The API Key object if the value is valid, or `null` if invalid. */
export interface ApiKey {
/** Distinguishes the API Key object. */
object: 'api_key';
/** Unique identifier of the API Key. */
id: string;
/** The entity that owns the API Key. */
owner: {
type: 'organization';
id: string;
};
/** A descriptive name for the API Key. */
name: string;
/** An obfuscated representation of the API Key value. */
obfuscatedValue: string;
/** Timestamp of when the API Key was last used. */
lastUsedAt: string | null;
/** The permission slugs assigned to the API Key. */
permissions: string[];
/** An ISO 8601 timestamp. */
createdAt: string;
/** An ISO 8601 timestamp. */
updatedAt: string;
}
export interface SerializedApiKey {
object: 'api_key';
id: string;
owner: {
type: 'organization';
id: string;
};
name: string;
obfuscated_value: string;
last_used_at: string | null;
permissions: string[];
created_at: string;
updated_at: string;
}
export interface ApiKeyResponse {
object: 'api_key';
id: string;
owner: ApiKeyOwnerResponse;
name: string;
obfuscated_value: string;
last_used_at: string | null;
permissions: string[];
created_at: string;
updated_at: string;
}