File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
1
export type AllContexts = {
2
- created_at : string ;
2
+ /**
3
+ * ID of the context
4
+ */
3
5
id : string ;
6
+ /**
7
+ * Timestamp of when the context was created
8
+ */
9
+ created_at : string ;
10
+ /**
11
+ * Name of the context
12
+ */
4
13
name : string ;
5
14
} [ ] ;
Original file line number Diff line number Diff line change @@ -4,6 +4,13 @@ import type { AllContexts } from './@types';
4
4
export class Contexts {
5
5
constructor ( private readonly hyper : Hyper ) { }
6
6
7
+ /**
8
+ * Get all of the available contexts. More information: https://docs.gethyper.ai/context#get-v1-contexts
9
+ * @returns All of the available contexts in the Hyper app (https://app.gethyper.ai)
10
+ * @example
11
+ * const { data, error } = await hyper.contexts.list();
12
+ * console.log(data);
13
+ */
7
14
async list ( ) {
8
15
const res = await this . hyper . get < AllContexts > ( {
9
16
endpoint : '/contexts' ,
You can’t perform that action at this time.
0 commit comments