1 | export interface Choice {
|
2 | value: string;
|
3 | description?: string;
|
4 | }
|
5 |
|
6 |
|
7 |
|
8 | export interface Chooser {
|
9 | |
10 |
|
11 |
|
12 |
|
13 | pickOne: boolean;
|
14 | choices: Choice[];
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare const FreeChoices = "freeChoices";
|
22 | export declare type ParameterType = "string" | "number" | "boolean" | Chooser | "freeChoices";
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | export interface Parameter {
|
29 | name: string;
|
30 | description?: string;
|
31 | pattern?: string;
|
32 | required: boolean;
|
33 | displayable?: boolean;
|
34 | valid_input?: string;
|
35 | max_length?: number;
|
36 | min_length?: number;
|
37 | display_name?: string;
|
38 | default_value?: string;
|
39 | |
40 |
|
41 |
|
42 | type?: ParameterType;
|
43 | group?: Group;
|
44 | tags?: string[];
|
45 | order?: number;
|
46 | control?: "input" | "textarea";
|
47 | }
|
48 |
|
49 |
|
50 |
|
51 | export interface Group {
|
52 | readonly name: string;
|
53 | readonly description?: string;
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 | export interface Tag {
|
59 | name: string;
|
60 | description: string;
|
61 | }
|
62 |
|
63 |
|
64 |
|
65 | export interface AutomationMetadata {
|
66 | name: string;
|
67 | description: string;
|
68 | tags?: Tag[];
|
69 | values?: ValueDeclaration[];
|
70 | }
|
71 | export interface ValueDeclaration {
|
72 | name: string;
|
73 | path: string;
|
74 | required: boolean;
|
75 | type?: string;
|
76 | }
|
77 | export interface MappedParameterDeclaration {
|
78 | name: string;
|
79 | uri: string;
|
80 | required: boolean;
|
81 | }
|
82 | export interface SecretDeclaration {
|
83 | name: string;
|
84 | uri: string;
|
85 | }
|
86 | export interface SecretsMetadata {
|
87 | secrets?: SecretDeclaration[];
|
88 | }
|
89 | export interface EventHandlerMetadata extends AutomationMetadata, SecretsMetadata {
|
90 | subscriptionName: string;
|
91 | subscription: string;
|
92 | }
|
93 | export interface ParameterMetadata extends SecretsMetadata {
|
94 | parameters?: Parameter[];
|
95 | mapped_parameters?: MappedParameterDeclaration[];
|
96 | }
|
97 |
|
98 |
|
99 |
|
100 |
|
101 |
|
102 | export interface CommandHandlerMetadata extends AutomationMetadata, ParameterMetadata {
|
103 | intent?: string[];
|
104 | auto_submit?: boolean;
|
105 | }
|
106 |
|
\ | No newline at end of file |