11# Automate
22
3+ ### AutomateEntry
4+
5+ > ** AutomateEntry** = ` object `
6+
7+ A automate entry.
8+
9+ #### Properties
10+
11+ ##### createdAt
12+
13+ > ** createdAt** : ` Date `
14+
15+ The date the entry was created.
16+
17+ ##### id
18+
19+ > ** id** : [ ` ID ` ] ( utils.md#id )
20+
21+ The ID of the entry.
22+
23+ ##### name
24+
25+ > ** name** : ` string `
26+
27+ The name of the entry.
28+
29+ ***
30+
31+ ### AutomatePageContext
32+
33+ > ** AutomatePageContext** = ` object `
34+
35+ Automate page context.
36+
37+ #### Properties
38+
39+ ##### kind
40+
41+ > ** kind** : ` "Automate" `
42+
43+ ##### requestSelection
44+
45+ > ** requestSelection** : [ ` Selection ` ] ( utils.md#selection ) \< [ ` ID ` ] ( utils.md#id ) \>
46+
47+ ##### selection
48+
49+ > ** selection** : [ ` Selection ` ] ( utils.md#selection ) \<\{ ` id ` : [ ` ID ` ] ( utils.md#id ) ; ` kind ` : ` "AutomateSession" ` ; \} \| \{ ` id ` : [ ` ID ` ] ( utils.md#id ) ; ` kind ` : ` "AutomateEntry" ` ; \}\>
50+
51+ ***
52+
353### AutomateSDK
454
555> ** AutomateSDK** = ` object `
@@ -8,6 +58,38 @@ Utilities to interact with the Automate page.
858
959#### Properties
1060
61+ ##### addEntryIndicator()
62+
63+ > ** addEntryIndicator** : (` entryId ` : ` ID ` , ` indicator ` : ` AddIndicatorOptions ` ) => ` Indicator `
64+
65+ Add an indicator to an automate entry.
66+ Indicators are displayed next to the entry name in the collections tree.
67+
68+ ###### Parameters
69+
70+ | Parameter | Type | Description |
71+ | ------ | ------ | ------ |
72+ | ` entryId ` | ` ID ` | The ID of the entry to add the indicator to. |
73+ | ` indicator ` | ` AddIndicatorOptions ` | The indicator configuration. |
74+
75+ ###### Returns
76+
77+ ` Indicator `
78+
79+ A handle object with a ` remove ` method to remove the indicator.
80+
81+ ###### Example
82+
83+ ``` ts
84+ const indicator = sdk .automate .addEntryIndicator (entryId , {
85+ icon: " fas fa-exclamation-triangle" ,
86+ description: " Security warning" ,
87+ });
88+
89+ // Later, remove the indicator
90+ indicator .remove ();
91+ ```
92+
1193##### addRequestEditorExtension()
1294
1395> ** addRequestEditorExtension** : (` extension ` : ` Extension ` ) => ` void `
@@ -39,3 +121,83 @@ Add a custom request view mode.
39121###### Returns
40122
41123` void `
124+
125+ ##### addResponseViewMode()
126+
127+ > ** addResponseViewMode** : (` options ` : [ ` ResponseViewModeOptions ` ] ( response.md#responseviewmodeoptions ) ) => ` void `
128+
129+ Add a custom response view mode.
130+
131+ ###### Parameters
132+
133+ | Parameter | Type | Description |
134+ | ------ | ------ | ------ |
135+ | ` options ` | [ ` ResponseViewModeOptions ` ] ( response.md#responseviewmodeoptions ) | The view mode options. |
136+
137+ ###### Returns
138+
139+ ` void `
140+
141+ ##### getEntries()
142+
143+ > ** getEntries** : (` sessionId ` : ` ID ` ) => ` AutomateEntry ` [ ]
144+
145+ Get the list of all automate entries.
146+
147+ ###### Parameters
148+
149+ | Parameter | Type | Description |
150+ | ------ | ------ | ------ |
151+ | ` sessionId ` | ` ID ` | The ID of the session to get the entries of. |
152+
153+ ###### Returns
154+
155+ ` AutomateEntry ` [ ]
156+
157+ The list of all automate entries.
158+
159+ ##### getSessions()
160+
161+ > ** getSessions** : () => ` AutomateSession ` [ ]
162+
163+ Get the list of all automate sessions.
164+
165+ ###### Returns
166+
167+ ` AutomateSession ` [ ]
168+
169+ The list of all automate sessions.
170+
171+ ***
172+
173+ ### AutomateSession
174+
175+ > ** AutomateSession** = ` object `
176+
177+ A automate session.
178+
179+ #### Properties
180+
181+ ##### createdAt
182+
183+ > ** createdAt** : ` Date `
184+
185+ The date the session was created.
186+
187+ ##### entryIds
188+
189+ > ** entryIds** : [ ` ID ` ] ( utils.md#id ) [ ]
190+
191+ The IDs of all entries in this session.
192+
193+ ##### id
194+
195+ > ** id** : [ ` ID ` ] ( utils.md#id )
196+
197+ The ID of the session.
198+
199+ ##### name
200+
201+ > ** name** : ` string `
202+
203+ The name of the session.
0 commit comments