@goauthentik/api 2023.4.1-1681807546 → 2023.4.1-1681914191

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.
@@ -57,6 +57,7 @@
57
57
  * * `authentik.tenants` - authentik Tenants
58
58
  * * `authentik.blueprints` - authentik Blueprints
59
59
  * * `authentik.core` - authentik Core
60
+ * * `authentik.enterprise` - authentik Enterprise
60
61
  * @export
61
62
  */
62
63
  export declare const AppEnum: {
@@ -107,6 +108,7 @@ export declare const AppEnum: {
107
108
  readonly Tenants: "authentik.tenants";
108
109
  readonly Blueprints: "authentik.blueprints";
109
110
  readonly Core: "authentik.core";
111
+ readonly Enterprise: "authentik.enterprise";
110
112
  readonly UnknownDefaultOpenApi: "11184809";
111
113
  };
112
114
  export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
@@ -59,6 +59,7 @@
59
59
  * * `authentik.tenants` - authentik Tenants
60
60
  * * `authentik.blueprints` - authentik Blueprints
61
61
  * * `authentik.core` - authentik Core
62
+ * * `authentik.enterprise` - authentik Enterprise
62
63
  * @export
63
64
  */
64
65
  export const AppEnum = {
@@ -109,6 +110,7 @@ export const AppEnum = {
109
110
  Tenants: 'authentik.tenants',
110
111
  Blueprints: 'authentik.blueprints',
111
112
  Core: 'authentik.core',
113
+ Enterprise: 'authentik.enterprise',
112
114
  UnknownDefaultOpenApi: '11184809'
113
115
  };
114
116
  export function AppEnumFromJSON(json) {
@@ -14,13 +14,15 @@
14
14
  * * `can_geo_ip` - Can Geo Ip
15
15
  * * `can_impersonate` - Can Impersonate
16
16
  * * `can_debug` - Can Debug
17
+ * * `is_enterprise` - Is Enterprise
17
18
  * @export
18
19
  */
19
20
  export declare const CapabilitiesEnum: {
20
- readonly SaveMedia: "can_save_media";
21
- readonly GeoIp: "can_geo_ip";
22
- readonly Impersonate: "can_impersonate";
23
- readonly Debug: "can_debug";
21
+ readonly CanSaveMedia: "can_save_media";
22
+ readonly CanGeoIp: "can_geo_ip";
23
+ readonly CanImpersonate: "can_impersonate";
24
+ readonly CanDebug: "can_debug";
25
+ readonly IsEnterprise: "is_enterprise";
24
26
  readonly UnknownDefaultOpenApi: "11184809";
25
27
  };
26
28
  export type CapabilitiesEnum = typeof CapabilitiesEnum[keyof typeof CapabilitiesEnum];
@@ -16,13 +16,15 @@
16
16
  * * `can_geo_ip` - Can Geo Ip
17
17
  * * `can_impersonate` - Can Impersonate
18
18
  * * `can_debug` - Can Debug
19
+ * * `is_enterprise` - Is Enterprise
19
20
  * @export
20
21
  */
21
22
  export const CapabilitiesEnum = {
22
- SaveMedia: 'can_save_media',
23
- GeoIp: 'can_geo_ip',
24
- Impersonate: 'can_impersonate',
25
- Debug: 'can_debug',
23
+ CanSaveMedia: 'can_save_media',
24
+ CanGeoIp: 'can_geo_ip',
25
+ CanImpersonate: 'can_impersonate',
26
+ CanDebug: 'can_debug',
27
+ IsEnterprise: 'is_enterprise',
26
28
  UnknownDefaultOpenApi: '11184809'
27
29
  };
28
30
  export function CapabilitiesEnumFromJSON(json) {
@@ -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,
@@ -57,6 +57,7 @@
57
57
  * * `authentik.tenants` - authentik Tenants
58
58
  * * `authentik.blueprints` - authentik Blueprints
59
59
  * * `authentik.core` - authentik Core
60
+ * * `authentik.enterprise` - authentik Enterprise
60
61
  * @export
61
62
  */
62
63
  export declare const AppEnum: {
@@ -107,6 +108,7 @@ export declare const AppEnum: {
107
108
  readonly Tenants: "authentik.tenants";
108
109
  readonly Blueprints: "authentik.blueprints";
109
110
  readonly Core: "authentik.core";
111
+ readonly Enterprise: "authentik.enterprise";
110
112
  readonly UnknownDefaultOpenApi: "11184809";
111
113
  };
112
114
  export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
@@ -62,6 +62,7 @@ exports.AppEnumToJSON = exports.AppEnumFromJSONTyped = exports.AppEnumFromJSON =
62
62
  * * `authentik.tenants` - authentik Tenants
63
63
  * * `authentik.blueprints` - authentik Blueprints
64
64
  * * `authentik.core` - authentik Core
65
+ * * `authentik.enterprise` - authentik Enterprise
65
66
  * @export
66
67
  */
67
68
  exports.AppEnum = {
@@ -112,6 +113,7 @@ exports.AppEnum = {
112
113
  Tenants: 'authentik.tenants',
113
114
  Blueprints: 'authentik.blueprints',
114
115
  Core: 'authentik.core',
116
+ Enterprise: 'authentik.enterprise',
115
117
  UnknownDefaultOpenApi: '11184809'
116
118
  };
117
119
  function AppEnumFromJSON(json) {
@@ -14,13 +14,15 @@
14
14
  * * `can_geo_ip` - Can Geo Ip
15
15
  * * `can_impersonate` - Can Impersonate
16
16
  * * `can_debug` - Can Debug
17
+ * * `is_enterprise` - Is Enterprise
17
18
  * @export
18
19
  */
19
20
  export declare const CapabilitiesEnum: {
20
- readonly SaveMedia: "can_save_media";
21
- readonly GeoIp: "can_geo_ip";
22
- readonly Impersonate: "can_impersonate";
23
- readonly Debug: "can_debug";
21
+ readonly CanSaveMedia: "can_save_media";
22
+ readonly CanGeoIp: "can_geo_ip";
23
+ readonly CanImpersonate: "can_impersonate";
24
+ readonly CanDebug: "can_debug";
25
+ readonly IsEnterprise: "is_enterprise";
24
26
  readonly UnknownDefaultOpenApi: "11184809";
25
27
  };
26
28
  export type CapabilitiesEnum = typeof CapabilitiesEnum[keyof typeof CapabilitiesEnum];
@@ -19,13 +19,15 @@ exports.CapabilitiesEnumToJSON = exports.CapabilitiesEnumFromJSONTyped = exports
19
19
  * * `can_geo_ip` - Can Geo Ip
20
20
  * * `can_impersonate` - Can Impersonate
21
21
  * * `can_debug` - Can Debug
22
+ * * `is_enterprise` - Is Enterprise
22
23
  * @export
23
24
  */
24
25
  exports.CapabilitiesEnum = {
25
- SaveMedia: 'can_save_media',
26
- GeoIp: 'can_geo_ip',
27
- Impersonate: 'can_impersonate',
28
- Debug: 'can_debug',
26
+ CanSaveMedia: 'can_save_media',
27
+ CanGeoIp: 'can_geo_ip',
28
+ CanImpersonate: 'can_impersonate',
29
+ CanDebug: 'can_debug',
30
+ IsEnterprise: 'is_enterprise',
29
31
  UnknownDefaultOpenApi: '11184809'
30
32
  };
31
33
  function CapabilitiesEnumFromJSON(json) {
@@ -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-1681914191",
4
4
  "description": "OpenAPI client for @goauthentik/api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -61,6 +61,7 @@
61
61
  * * `authentik.tenants` - authentik Tenants
62
62
  * * `authentik.blueprints` - authentik Blueprints
63
63
  * * `authentik.core` - authentik Core
64
+ * * `authentik.enterprise` - authentik Enterprise
64
65
  * @export
65
66
  */
66
67
  export const AppEnum = {
@@ -111,6 +112,7 @@ export const AppEnum = {
111
112
  Tenants: 'authentik.tenants',
112
113
  Blueprints: 'authentik.blueprints',
113
114
  Core: 'authentik.core',
115
+ Enterprise: 'authentik.enterprise',
114
116
  UnknownDefaultOpenApi: '11184809'
115
117
  } as const;
116
118
  export type AppEnum = typeof AppEnum[keyof typeof AppEnum];
@@ -18,13 +18,15 @@
18
18
  * * `can_geo_ip` - Can Geo Ip
19
19
  * * `can_impersonate` - Can Impersonate
20
20
  * * `can_debug` - Can Debug
21
+ * * `is_enterprise` - Is Enterprise
21
22
  * @export
22
23
  */
23
24
  export const CapabilitiesEnum = {
24
- SaveMedia: 'can_save_media',
25
- GeoIp: 'can_geo_ip',
26
- Impersonate: 'can_impersonate',
27
- Debug: 'can_debug',
25
+ CanSaveMedia: 'can_save_media',
26
+ CanGeoIp: 'can_geo_ip',
27
+ CanImpersonate: 'can_impersonate',
28
+ CanDebug: 'can_debug',
29
+ IsEnterprise: 'is_enterprise',
28
30
  UnknownDefaultOpenApi: '11184809'
29
31
  } as const;
30
32
  export type CapabilitiesEnum = typeof CapabilitiesEnum[keyof typeof CapabilitiesEnum];
@@ -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,