@goauthentik/api 2023.4.1-1681807546 → 2023.4.1-1681900096

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,11 +48,17 @@ export interface PatchedPromptRequest {
48
48
  */
49
49
  required?: boolean;
50
50
  /**
51
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
51
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
52
52
  * @type {string}
53
53
  * @memberof PatchedPromptRequest
54
54
  */
55
55
  placeholder?: string;
56
+ /**
57
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
58
+ * @type {string}
59
+ * @memberof PatchedPromptRequest
60
+ */
61
+ initialValue?: string;
56
62
  /**
57
63
  *
58
64
  * @type {number}
@@ -77,6 +83,12 @@ export interface PatchedPromptRequest {
77
83
  * @memberof PatchedPromptRequest
78
84
  */
79
85
  placeholderExpression?: boolean;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof PatchedPromptRequest
90
+ */
91
+ initialValueExpression?: boolean;
80
92
  }
81
93
  /**
82
94
  * Check if a given object implements the PatchedPromptRequest interface.
@@ -35,10 +35,12 @@ export function PatchedPromptRequestFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'type': !exists(json, 'type') ? undefined : PromptTypeEnumFromJSON(json['type']),
36
36
  'required': !exists(json, 'required') ? undefined : json['required'],
37
37
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
38
+ 'initialValue': !exists(json, 'initial_value') ? undefined : json['initial_value'],
38
39
  'order': !exists(json, 'order') ? undefined : json['order'],
39
40
  'promptstageSet': !exists(json, 'promptstage_set') ? undefined : (json['promptstage_set'].map(StageRequestFromJSON)),
40
41
  'subText': !exists(json, 'sub_text') ? undefined : json['sub_text'],
41
42
  'placeholderExpression': !exists(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
43
+ 'initialValueExpression': !exists(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
42
44
  };
43
45
  }
44
46
  export function PatchedPromptRequestToJSON(value) {
@@ -55,9 +57,11 @@ export function PatchedPromptRequestToJSON(value) {
55
57
  'type': PromptTypeEnumToJSON(value.type),
56
58
  'required': value.required,
57
59
  'placeholder': value.placeholder,
60
+ 'initial_value': value.initialValue,
58
61
  'order': value.order,
59
62
  'promptstage_set': value.promptstageSet === undefined ? undefined : (value.promptstageSet.map(StageRequestToJSON)),
60
63
  'sub_text': value.subText,
61
64
  'placeholder_expression': value.placeholderExpression,
65
+ 'initial_value_expression': value.initialValueExpression,
62
66
  };
63
67
  }
@@ -54,11 +54,17 @@ export interface Prompt {
54
54
  */
55
55
  required?: boolean;
56
56
  /**
57
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
57
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
58
58
  * @type {string}
59
59
  * @memberof Prompt
60
60
  */
61
61
  placeholder?: string;
62
+ /**
63
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
64
+ * @type {string}
65
+ * @memberof Prompt
66
+ */
67
+ initialValue?: string;
62
68
  /**
63
69
  *
64
70
  * @type {number}
@@ -83,6 +89,12 @@ export interface Prompt {
83
89
  * @memberof Prompt
84
90
  */
85
91
  placeholderExpression?: boolean;
92
+ /**
93
+ *
94
+ * @type {boolean}
95
+ * @memberof Prompt
96
+ */
97
+ initialValueExpression?: boolean;
86
98
  }
87
99
  /**
88
100
  * Check if a given object implements the Prompt interface.
@@ -41,10 +41,12 @@ export function PromptFromJSONTyped(json, ignoreDiscriminator) {
41
41
  'type': PromptTypeEnumFromJSON(json['type']),
42
42
  'required': !exists(json, 'required') ? undefined : json['required'],
43
43
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
44
+ 'initialValue': !exists(json, 'initial_value') ? undefined : json['initial_value'],
44
45
  'order': !exists(json, 'order') ? undefined : json['order'],
45
46
  'promptstageSet': !exists(json, 'promptstage_set') ? undefined : (json['promptstage_set'].map(StageFromJSON)),
46
47
  'subText': !exists(json, 'sub_text') ? undefined : json['sub_text'],
47
48
  'placeholderExpression': !exists(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
49
+ 'initialValueExpression': !exists(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
48
50
  };
49
51
  }
50
52
  export function PromptToJSON(value) {
@@ -61,9 +63,11 @@ export function PromptToJSON(value) {
61
63
  'type': PromptTypeEnumToJSON(value.type),
62
64
  'required': value.required,
63
65
  'placeholder': value.placeholder,
66
+ 'initial_value': value.initialValue,
64
67
  'order': value.order,
65
68
  'promptstage_set': value.promptstageSet === undefined ? undefined : (value.promptstageSet.map(StageToJSON)),
66
69
  'sub_text': value.subText,
67
70
  'placeholder_expression': value.placeholderExpression,
71
+ 'initial_value_expression': value.initialValueExpression,
68
72
  };
69
73
  }
@@ -48,11 +48,17 @@ export interface PromptRequest {
48
48
  */
49
49
  required?: boolean;
50
50
  /**
51
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
51
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
52
52
  * @type {string}
53
53
  * @memberof PromptRequest
54
54
  */
55
55
  placeholder?: string;
56
+ /**
57
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
58
+ * @type {string}
59
+ * @memberof PromptRequest
60
+ */
61
+ initialValue?: string;
56
62
  /**
57
63
  *
58
64
  * @type {number}
@@ -77,6 +83,12 @@ export interface PromptRequest {
77
83
  * @memberof PromptRequest
78
84
  */
79
85
  placeholderExpression?: boolean;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof PromptRequest
90
+ */
91
+ initialValueExpression?: boolean;
80
92
  }
81
93
  /**
82
94
  * Check if a given object implements the PromptRequest interface.
@@ -39,10 +39,12 @@ export function PromptRequestFromJSONTyped(json, ignoreDiscriminator) {
39
39
  'type': PromptTypeEnumFromJSON(json['type']),
40
40
  'required': !exists(json, 'required') ? undefined : json['required'],
41
41
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
42
+ 'initialValue': !exists(json, 'initial_value') ? undefined : json['initial_value'],
42
43
  'order': !exists(json, 'order') ? undefined : json['order'],
43
44
  'promptstageSet': !exists(json, 'promptstage_set') ? undefined : (json['promptstage_set'].map(StageRequestFromJSON)),
44
45
  'subText': !exists(json, 'sub_text') ? undefined : json['sub_text'],
45
46
  'placeholderExpression': !exists(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
47
+ 'initialValueExpression': !exists(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
46
48
  };
47
49
  }
48
50
  export function PromptRequestToJSON(value) {
@@ -59,9 +61,11 @@ export function PromptRequestToJSON(value) {
59
61
  'type': PromptTypeEnumToJSON(value.type),
60
62
  'required': value.required,
61
63
  'placeholder': value.placeholder,
64
+ 'initial_value': value.initialValue,
62
65
  'order': value.order,
63
66
  'promptstage_set': value.promptstageSet === undefined ? undefined : (value.promptstageSet.map(StageRequestToJSON)),
64
67
  'sub_text': value.subText,
65
68
  'placeholder_expression': value.placeholderExpression,
69
+ 'initial_value_expression': value.initialValueExpression,
66
70
  };
67
71
  }
@@ -46,6 +46,12 @@ export interface StagePrompt {
46
46
  * @memberof StagePrompt
47
47
  */
48
48
  placeholder: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof StagePrompt
53
+ */
54
+ initialValue: string;
49
55
  /**
50
56
  *
51
57
  * @type {number}
@@ -22,6 +22,7 @@ export function instanceOfStagePrompt(value) {
22
22
  isInstance = isInstance && "type" in value;
23
23
  isInstance = isInstance && "required" in value;
24
24
  isInstance = isInstance && "placeholder" in value;
25
+ isInstance = isInstance && "initialValue" in value;
25
26
  isInstance = isInstance && "order" in value;
26
27
  isInstance = isInstance && "subText" in value;
27
28
  isInstance = isInstance && "choices" in value;
@@ -40,6 +41,7 @@ export function StagePromptFromJSONTyped(json, ignoreDiscriminator) {
40
41
  'type': PromptTypeEnumFromJSON(json['type']),
41
42
  'required': json['required'],
42
43
  'placeholder': json['placeholder'],
44
+ 'initialValue': json['initial_value'],
43
45
  'order': json['order'],
44
46
  'subText': json['sub_text'],
45
47
  'choices': json['choices'],
@@ -58,6 +60,7 @@ export function StagePromptToJSON(value) {
58
60
  'type': PromptTypeEnumToJSON(value.type),
59
61
  'required': value.required,
60
62
  'placeholder': value.placeholder,
63
+ 'initial_value': value.initialValue,
61
64
  'order': value.order,
62
65
  'sub_text': value.subText,
63
66
  'choices': value.choices,
@@ -48,11 +48,17 @@ export interface PatchedPromptRequest {
48
48
  */
49
49
  required?: boolean;
50
50
  /**
51
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
51
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
52
52
  * @type {string}
53
53
  * @memberof PatchedPromptRequest
54
54
  */
55
55
  placeholder?: string;
56
+ /**
57
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
58
+ * @type {string}
59
+ * @memberof PatchedPromptRequest
60
+ */
61
+ initialValue?: string;
56
62
  /**
57
63
  *
58
64
  * @type {number}
@@ -77,6 +83,12 @@ export interface PatchedPromptRequest {
77
83
  * @memberof PatchedPromptRequest
78
84
  */
79
85
  placeholderExpression?: boolean;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof PatchedPromptRequest
90
+ */
91
+ initialValueExpression?: boolean;
80
92
  }
81
93
  /**
82
94
  * Check if a given object implements the PatchedPromptRequest interface.
@@ -40,10 +40,12 @@ function PatchedPromptRequestFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'type': !(0, runtime_1.exists)(json, 'type') ? undefined : (0, PromptTypeEnum_1.PromptTypeEnumFromJSON)(json['type']),
41
41
  'required': !(0, runtime_1.exists)(json, 'required') ? undefined : json['required'],
42
42
  'placeholder': !(0, runtime_1.exists)(json, 'placeholder') ? undefined : json['placeholder'],
43
+ 'initialValue': !(0, runtime_1.exists)(json, 'initial_value') ? undefined : json['initial_value'],
43
44
  'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
44
45
  'promptstageSet': !(0, runtime_1.exists)(json, 'promptstage_set') ? undefined : (json['promptstage_set'].map(StageRequest_1.StageRequestFromJSON)),
45
46
  'subText': !(0, runtime_1.exists)(json, 'sub_text') ? undefined : json['sub_text'],
46
47
  'placeholderExpression': !(0, runtime_1.exists)(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
48
+ 'initialValueExpression': !(0, runtime_1.exists)(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
47
49
  };
48
50
  }
49
51
  exports.PatchedPromptRequestFromJSONTyped = PatchedPromptRequestFromJSONTyped;
@@ -61,10 +63,12 @@ function PatchedPromptRequestToJSON(value) {
61
63
  'type': (0, PromptTypeEnum_1.PromptTypeEnumToJSON)(value.type),
62
64
  'required': value.required,
63
65
  'placeholder': value.placeholder,
66
+ 'initial_value': value.initialValue,
64
67
  'order': value.order,
65
68
  'promptstage_set': value.promptstageSet === undefined ? undefined : (value.promptstageSet.map(StageRequest_1.StageRequestToJSON)),
66
69
  'sub_text': value.subText,
67
70
  'placeholder_expression': value.placeholderExpression,
71
+ 'initial_value_expression': value.initialValueExpression,
68
72
  };
69
73
  }
70
74
  exports.PatchedPromptRequestToJSON = PatchedPromptRequestToJSON;
@@ -54,11 +54,17 @@ export interface Prompt {
54
54
  */
55
55
  required?: boolean;
56
56
  /**
57
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
57
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
58
58
  * @type {string}
59
59
  * @memberof Prompt
60
60
  */
61
61
  placeholder?: string;
62
+ /**
63
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
64
+ * @type {string}
65
+ * @memberof Prompt
66
+ */
67
+ initialValue?: string;
62
68
  /**
63
69
  *
64
70
  * @type {number}
@@ -83,6 +89,12 @@ export interface Prompt {
83
89
  * @memberof Prompt
84
90
  */
85
91
  placeholderExpression?: boolean;
92
+ /**
93
+ *
94
+ * @type {boolean}
95
+ * @memberof Prompt
96
+ */
97
+ initialValueExpression?: boolean;
86
98
  }
87
99
  /**
88
100
  * Check if a given object implements the Prompt interface.
@@ -46,10 +46,12 @@ function PromptFromJSONTyped(json, ignoreDiscriminator) {
46
46
  'type': (0, PromptTypeEnum_1.PromptTypeEnumFromJSON)(json['type']),
47
47
  'required': !(0, runtime_1.exists)(json, 'required') ? undefined : json['required'],
48
48
  'placeholder': !(0, runtime_1.exists)(json, 'placeholder') ? undefined : json['placeholder'],
49
+ 'initialValue': !(0, runtime_1.exists)(json, 'initial_value') ? undefined : json['initial_value'],
49
50
  'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
50
51
  'promptstageSet': !(0, runtime_1.exists)(json, 'promptstage_set') ? undefined : (json['promptstage_set'].map(Stage_1.StageFromJSON)),
51
52
  'subText': !(0, runtime_1.exists)(json, 'sub_text') ? undefined : json['sub_text'],
52
53
  'placeholderExpression': !(0, runtime_1.exists)(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
54
+ 'initialValueExpression': !(0, runtime_1.exists)(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
53
55
  };
54
56
  }
55
57
  exports.PromptFromJSONTyped = PromptFromJSONTyped;
@@ -67,10 +69,12 @@ function PromptToJSON(value) {
67
69
  'type': (0, PromptTypeEnum_1.PromptTypeEnumToJSON)(value.type),
68
70
  'required': value.required,
69
71
  'placeholder': value.placeholder,
72
+ 'initial_value': value.initialValue,
70
73
  'order': value.order,
71
74
  'promptstage_set': value.promptstageSet === undefined ? undefined : (value.promptstageSet.map(Stage_1.StageToJSON)),
72
75
  'sub_text': value.subText,
73
76
  'placeholder_expression': value.placeholderExpression,
77
+ 'initial_value_expression': value.initialValueExpression,
74
78
  };
75
79
  }
76
80
  exports.PromptToJSON = PromptToJSON;
@@ -48,11 +48,17 @@ export interface PromptRequest {
48
48
  */
49
49
  required?: boolean;
50
50
  /**
51
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
51
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
52
52
  * @type {string}
53
53
  * @memberof PromptRequest
54
54
  */
55
55
  placeholder?: string;
56
+ /**
57
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
58
+ * @type {string}
59
+ * @memberof PromptRequest
60
+ */
61
+ initialValue?: string;
56
62
  /**
57
63
  *
58
64
  * @type {number}
@@ -77,6 +83,12 @@ export interface PromptRequest {
77
83
  * @memberof PromptRequest
78
84
  */
79
85
  placeholderExpression?: boolean;
86
+ /**
87
+ *
88
+ * @type {boolean}
89
+ * @memberof PromptRequest
90
+ */
91
+ initialValueExpression?: boolean;
80
92
  }
81
93
  /**
82
94
  * Check if a given object implements the PromptRequest interface.
@@ -44,10 +44,12 @@ function PromptRequestFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'type': (0, PromptTypeEnum_1.PromptTypeEnumFromJSON)(json['type']),
45
45
  'required': !(0, runtime_1.exists)(json, 'required') ? undefined : json['required'],
46
46
  'placeholder': !(0, runtime_1.exists)(json, 'placeholder') ? undefined : json['placeholder'],
47
+ 'initialValue': !(0, runtime_1.exists)(json, 'initial_value') ? undefined : json['initial_value'],
47
48
  'order': !(0, runtime_1.exists)(json, 'order') ? undefined : json['order'],
48
49
  'promptstageSet': !(0, runtime_1.exists)(json, 'promptstage_set') ? undefined : (json['promptstage_set'].map(StageRequest_1.StageRequestFromJSON)),
49
50
  'subText': !(0, runtime_1.exists)(json, 'sub_text') ? undefined : json['sub_text'],
50
51
  'placeholderExpression': !(0, runtime_1.exists)(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
52
+ 'initialValueExpression': !(0, runtime_1.exists)(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
51
53
  };
52
54
  }
53
55
  exports.PromptRequestFromJSONTyped = PromptRequestFromJSONTyped;
@@ -65,10 +67,12 @@ function PromptRequestToJSON(value) {
65
67
  'type': (0, PromptTypeEnum_1.PromptTypeEnumToJSON)(value.type),
66
68
  'required': value.required,
67
69
  'placeholder': value.placeholder,
70
+ 'initial_value': value.initialValue,
68
71
  'order': value.order,
69
72
  'promptstage_set': value.promptstageSet === undefined ? undefined : (value.promptstageSet.map(StageRequest_1.StageRequestToJSON)),
70
73
  'sub_text': value.subText,
71
74
  'placeholder_expression': value.placeholderExpression,
75
+ 'initial_value_expression': value.initialValueExpression,
72
76
  };
73
77
  }
74
78
  exports.PromptRequestToJSON = PromptRequestToJSON;
@@ -46,6 +46,12 @@ export interface StagePrompt {
46
46
  * @memberof StagePrompt
47
47
  */
48
48
  placeholder: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof StagePrompt
53
+ */
54
+ initialValue: string;
49
55
  /**
50
56
  *
51
57
  * @type {number}
@@ -25,6 +25,7 @@ function instanceOfStagePrompt(value) {
25
25
  isInstance = isInstance && "type" in value;
26
26
  isInstance = isInstance && "required" in value;
27
27
  isInstance = isInstance && "placeholder" in value;
28
+ isInstance = isInstance && "initialValue" in value;
28
29
  isInstance = isInstance && "order" in value;
29
30
  isInstance = isInstance && "subText" in value;
30
31
  isInstance = isInstance && "choices" in value;
@@ -45,6 +46,7 @@ function StagePromptFromJSONTyped(json, ignoreDiscriminator) {
45
46
  'type': (0, PromptTypeEnum_1.PromptTypeEnumFromJSON)(json['type']),
46
47
  'required': json['required'],
47
48
  'placeholder': json['placeholder'],
49
+ 'initialValue': json['initial_value'],
48
50
  'order': json['order'],
49
51
  'subText': json['sub_text'],
50
52
  'choices': json['choices'],
@@ -64,6 +66,7 @@ function StagePromptToJSON(value) {
64
66
  'type': (0, PromptTypeEnum_1.PromptTypeEnumToJSON)(value.type),
65
67
  'required': value.required,
66
68
  'placeholder': value.placeholder,
69
+ 'initial_value': value.initialValue,
67
70
  'order': value.order,
68
71
  'sub_text': value.subText,
69
72
  'choices': value.choices,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goauthentik/api",
3
- "version": "2023.4.1-1681807546",
3
+ "version": "2023.4.1-1681900096",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -63,11 +63,17 @@ export interface PatchedPromptRequest {
63
63
  */
64
64
  required?: boolean;
65
65
  /**
66
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
66
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
67
67
  * @type {string}
68
68
  * @memberof PatchedPromptRequest
69
69
  */
70
70
  placeholder?: string;
71
+ /**
72
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
73
+ * @type {string}
74
+ * @memberof PatchedPromptRequest
75
+ */
76
+ initialValue?: string;
71
77
  /**
72
78
  *
73
79
  * @type {number}
@@ -92,6 +98,12 @@ export interface PatchedPromptRequest {
92
98
  * @memberof PatchedPromptRequest
93
99
  */
94
100
  placeholderExpression?: boolean;
101
+ /**
102
+ *
103
+ * @type {boolean}
104
+ * @memberof PatchedPromptRequest
105
+ */
106
+ initialValueExpression?: boolean;
95
107
  }
96
108
 
97
109
  /**
@@ -119,10 +131,12 @@ export function PatchedPromptRequestFromJSONTyped(json: any, ignoreDiscriminator
119
131
  'type': !exists(json, 'type') ? undefined : PromptTypeEnumFromJSON(json['type']),
120
132
  'required': !exists(json, 'required') ? undefined : json['required'],
121
133
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
134
+ 'initialValue': !exists(json, 'initial_value') ? undefined : json['initial_value'],
122
135
  'order': !exists(json, 'order') ? undefined : json['order'],
123
136
  'promptstageSet': !exists(json, 'promptstage_set') ? undefined : ((json['promptstage_set'] as Array<any>).map(StageRequestFromJSON)),
124
137
  'subText': !exists(json, 'sub_text') ? undefined : json['sub_text'],
125
138
  'placeholderExpression': !exists(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
139
+ 'initialValueExpression': !exists(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
126
140
  };
127
141
  }
128
142
 
@@ -141,10 +155,12 @@ export function PatchedPromptRequestToJSON(value?: PatchedPromptRequest | null):
141
155
  'type': PromptTypeEnumToJSON(value.type),
142
156
  'required': value.required,
143
157
  'placeholder': value.placeholder,
158
+ 'initial_value': value.initialValue,
144
159
  'order': value.order,
145
160
  'promptstage_set': value.promptstageSet === undefined ? undefined : ((value.promptstageSet as Array<any>).map(StageRequestToJSON)),
146
161
  'sub_text': value.subText,
147
162
  'placeholder_expression': value.placeholderExpression,
163
+ 'initial_value_expression': value.initialValueExpression,
148
164
  };
149
165
  }
150
166
 
@@ -69,11 +69,17 @@ export interface Prompt {
69
69
  */
70
70
  required?: boolean;
71
71
  /**
72
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
72
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
73
73
  * @type {string}
74
74
  * @memberof Prompt
75
75
  */
76
76
  placeholder?: string;
77
+ /**
78
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
79
+ * @type {string}
80
+ * @memberof Prompt
81
+ */
82
+ initialValue?: string;
77
83
  /**
78
84
  *
79
85
  * @type {number}
@@ -98,6 +104,12 @@ export interface Prompt {
98
104
  * @memberof Prompt
99
105
  */
100
106
  placeholderExpression?: boolean;
107
+ /**
108
+ *
109
+ * @type {boolean}
110
+ * @memberof Prompt
111
+ */
112
+ initialValueExpression?: boolean;
101
113
  }
102
114
 
103
115
  /**
@@ -131,10 +143,12 @@ export function PromptFromJSONTyped(json: any, ignoreDiscriminator: boolean): Pr
131
143
  'type': PromptTypeEnumFromJSON(json['type']),
132
144
  'required': !exists(json, 'required') ? undefined : json['required'],
133
145
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
146
+ 'initialValue': !exists(json, 'initial_value') ? undefined : json['initial_value'],
134
147
  'order': !exists(json, 'order') ? undefined : json['order'],
135
148
  'promptstageSet': !exists(json, 'promptstage_set') ? undefined : ((json['promptstage_set'] as Array<any>).map(StageFromJSON)),
136
149
  'subText': !exists(json, 'sub_text') ? undefined : json['sub_text'],
137
150
  'placeholderExpression': !exists(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
151
+ 'initialValueExpression': !exists(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
138
152
  };
139
153
  }
140
154
 
@@ -153,10 +167,12 @@ export function PromptToJSON(value?: Prompt | null): any {
153
167
  'type': PromptTypeEnumToJSON(value.type),
154
168
  'required': value.required,
155
169
  'placeholder': value.placeholder,
170
+ 'initial_value': value.initialValue,
156
171
  'order': value.order,
157
172
  'promptstage_set': value.promptstageSet === undefined ? undefined : ((value.promptstageSet as Array<any>).map(StageToJSON)),
158
173
  'sub_text': value.subText,
159
174
  'placeholder_expression': value.placeholderExpression,
175
+ 'initial_value_expression': value.initialValueExpression,
160
176
  };
161
177
  }
162
178
 
@@ -63,11 +63,17 @@ export interface PromptRequest {
63
63
  */
64
64
  required?: boolean;
65
65
  /**
66
- * When creating a Radio Button Group or Dropdown, enable interpreting as expression and return a list to return multiple choices.
66
+ * Optionally provide a short hint that describes the expected input value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple choices.
67
67
  * @type {string}
68
68
  * @memberof PromptRequest
69
69
  */
70
70
  placeholder?: string;
71
+ /**
72
+ * Optionally pre-fill the input with an initial value. When creating a fixed choice field, enable interpreting as expression and return a list to return multiple default choices.
73
+ * @type {string}
74
+ * @memberof PromptRequest
75
+ */
76
+ initialValue?: string;
71
77
  /**
72
78
  *
73
79
  * @type {number}
@@ -92,6 +98,12 @@ export interface PromptRequest {
92
98
  * @memberof PromptRequest
93
99
  */
94
100
  placeholderExpression?: boolean;
101
+ /**
102
+ *
103
+ * @type {boolean}
104
+ * @memberof PromptRequest
105
+ */
106
+ initialValueExpression?: boolean;
95
107
  }
96
108
 
97
109
  /**
@@ -123,10 +135,12 @@ export function PromptRequestFromJSONTyped(json: any, ignoreDiscriminator: boole
123
135
  'type': PromptTypeEnumFromJSON(json['type']),
124
136
  'required': !exists(json, 'required') ? undefined : json['required'],
125
137
  'placeholder': !exists(json, 'placeholder') ? undefined : json['placeholder'],
138
+ 'initialValue': !exists(json, 'initial_value') ? undefined : json['initial_value'],
126
139
  'order': !exists(json, 'order') ? undefined : json['order'],
127
140
  'promptstageSet': !exists(json, 'promptstage_set') ? undefined : ((json['promptstage_set'] as Array<any>).map(StageRequestFromJSON)),
128
141
  'subText': !exists(json, 'sub_text') ? undefined : json['sub_text'],
129
142
  'placeholderExpression': !exists(json, 'placeholder_expression') ? undefined : json['placeholder_expression'],
143
+ 'initialValueExpression': !exists(json, 'initial_value_expression') ? undefined : json['initial_value_expression'],
130
144
  };
131
145
  }
132
146
 
@@ -145,10 +159,12 @@ export function PromptRequestToJSON(value?: PromptRequest | null): any {
145
159
  'type': PromptTypeEnumToJSON(value.type),
146
160
  'required': value.required,
147
161
  'placeholder': value.placeholder,
162
+ 'initial_value': value.initialValue,
148
163
  'order': value.order,
149
164
  'promptstage_set': value.promptstageSet === undefined ? undefined : ((value.promptstageSet as Array<any>).map(StageRequestToJSON)),
150
165
  'sub_text': value.subText,
151
166
  'placeholder_expression': value.placeholderExpression,
167
+ 'initial_value_expression': value.initialValueExpression,
152
168
  };
153
169
  }
154
170
 
@@ -56,6 +56,12 @@ export interface StagePrompt {
56
56
  * @memberof StagePrompt
57
57
  */
58
58
  placeholder: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof StagePrompt
63
+ */
64
+ initialValue: string;
59
65
  /**
60
66
  *
61
67
  * @type {number}
@@ -86,6 +92,7 @@ export function instanceOfStagePrompt(value: object): boolean {
86
92
  isInstance = isInstance && "type" in value;
87
93
  isInstance = isInstance && "required" in value;
88
94
  isInstance = isInstance && "placeholder" in value;
95
+ isInstance = isInstance && "initialValue" in value;
89
96
  isInstance = isInstance && "order" in value;
90
97
  isInstance = isInstance && "subText" in value;
91
98
  isInstance = isInstance && "choices" in value;
@@ -108,6 +115,7 @@ export function StagePromptFromJSONTyped(json: any, ignoreDiscriminator: boolean
108
115
  'type': PromptTypeEnumFromJSON(json['type']),
109
116
  'required': json['required'],
110
117
  'placeholder': json['placeholder'],
118
+ 'initialValue': json['initial_value'],
111
119
  'order': json['order'],
112
120
  'subText': json['sub_text'],
113
121
  'choices': json['choices'],
@@ -128,6 +136,7 @@ export function StagePromptToJSON(value?: StagePrompt | null): any {
128
136
  'type': PromptTypeEnumToJSON(value.type),
129
137
  'required': value.required,
130
138
  'placeholder': value.placeholder,
139
+ 'initial_value': value.initialValue,
131
140
  'order': value.order,
132
141
  'sub_text': value.subText,
133
142
  'choices': value.choices,