@goauthentik/api 2022.12.2-1672921186 → 2022.12.2-1673384458

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.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/StagesApi.d.ts +11 -1
  3. package/dist/apis/StagesApi.js +13 -4
  4. package/dist/esm/apis/StagesApi.d.ts +11 -1
  5. package/dist/esm/apis/StagesApi.js +12 -3
  6. package/dist/esm/models/BlueprintInstance.d.ts +7 -1
  7. package/dist/esm/models/BlueprintInstance.js +3 -1
  8. package/dist/esm/models/BlueprintInstanceRequest.d.ts +7 -1
  9. package/dist/esm/models/BlueprintInstanceRequest.js +3 -1
  10. package/dist/esm/models/PatchedBlueprintInstanceRequest.d.ts +6 -0
  11. package/dist/esm/models/PatchedBlueprintInstanceRequest.js +2 -0
  12. package/dist/esm/models/PatchedUserWriteStageRequest.d.ts +7 -6
  13. package/dist/esm/models/PatchedUserWriteStageRequest.js +3 -2
  14. package/dist/esm/models/UserCreationModeEnum.d.ts +25 -0
  15. package/dist/esm/models/UserCreationModeEnum.js +32 -0
  16. package/dist/esm/models/UserWriteStage.d.ts +7 -6
  17. package/dist/esm/models/UserWriteStage.js +3 -2
  18. package/dist/esm/models/UserWriteStageRequest.d.ts +7 -6
  19. package/dist/esm/models/UserWriteStageRequest.js +3 -2
  20. package/dist/esm/models/index.d.ts +1 -0
  21. package/dist/esm/models/index.js +1 -0
  22. package/dist/models/BlueprintInstance.d.ts +7 -1
  23. package/dist/models/BlueprintInstance.js +3 -1
  24. package/dist/models/BlueprintInstanceRequest.d.ts +7 -1
  25. package/dist/models/BlueprintInstanceRequest.js +3 -1
  26. package/dist/models/PatchedBlueprintInstanceRequest.d.ts +6 -0
  27. package/dist/models/PatchedBlueprintInstanceRequest.js +2 -0
  28. package/dist/models/PatchedUserWriteStageRequest.d.ts +7 -6
  29. package/dist/models/PatchedUserWriteStageRequest.js +3 -2
  30. package/dist/models/UserCreationModeEnum.d.ts +25 -0
  31. package/dist/models/UserCreationModeEnum.js +38 -0
  32. package/dist/models/UserWriteStage.d.ts +7 -6
  33. package/dist/models/UserWriteStage.js +3 -2
  34. package/dist/models/UserWriteStageRequest.d.ts +7 -6
  35. package/dist/models/UserWriteStageRequest.js +3 -2
  36. package/dist/models/index.d.ts +1 -0
  37. package/dist/models/index.js +1 -0
  38. package/package.json +1 -1
  39. package/src/apis/StagesApi.ts +15 -5
  40. package/src/models/BlueprintInstance.ts +10 -2
  41. package/src/models/BlueprintInstanceRequest.ts +10 -2
  42. package/src/models/PatchedBlueprintInstanceRequest.ts +8 -0
  43. package/src/models/PatchedUserWriteStageRequest.ts +14 -8
  44. package/src/models/UserCreationModeEnum.ts +40 -0
  45. package/src/models/UserWriteStage.ts +14 -8
  46. package/src/models/UserWriteStageRequest.ts +14 -8
  47. package/src/models/index.ts +1 -0
@@ -455,6 +455,7 @@ src/models/UsedByActionEnum.ts
455
455
  src/models/User.ts
456
456
  src/models/UserAccountRequest.ts
457
457
  src/models/UserConsent.ts
458
+ src/models/UserCreationModeEnum.ts
458
459
  src/models/UserDeleteStage.ts
459
460
  src/models/UserDeleteStageRequest.ts
460
461
  src/models/UserFieldsEnum.ts
@@ -654,7 +654,6 @@ export interface StagesUserWriteDestroyRequest {
654
654
  stageUuid: string;
655
655
  }
656
656
  export interface StagesUserWriteListRequest {
657
- canCreateUsers?: boolean;
658
657
  createUsersAsInactive?: boolean;
659
658
  createUsersGroup?: string;
660
659
  name?: string;
@@ -663,6 +662,7 @@ export interface StagesUserWriteListRequest {
663
662
  pageSize?: number;
664
663
  search?: string;
665
664
  stageUuid?: string;
665
+ userCreationMode?: StagesUserWriteListUserCreationModeEnum;
666
666
  userPathTemplate?: string;
667
667
  }
668
668
  export interface StagesUserWritePartialUpdateRequest {
@@ -2037,3 +2037,13 @@ export declare const StagesPromptPromptsListTypeEnum: {
2037
2037
  readonly UnknownDefaultOpenApi: "11184809";
2038
2038
  };
2039
2039
  export type StagesPromptPromptsListTypeEnum = typeof StagesPromptPromptsListTypeEnum[keyof typeof StagesPromptPromptsListTypeEnum];
2040
+ /**
2041
+ * @export
2042
+ */
2043
+ export declare const StagesUserWriteListUserCreationModeEnum: {
2044
+ readonly AlwaysCreate: "always_create";
2045
+ readonly CreateWhenRequired: "create_when_required";
2046
+ readonly NeverCreate: "never_create";
2047
+ readonly UnknownDefaultOpenApi: "11184809";
2048
+ };
2049
+ export type StagesUserWriteListUserCreationModeEnum = typeof StagesUserWriteListUserCreationModeEnum[keyof typeof StagesUserWriteListUserCreationModeEnum];
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.StagesPromptPromptsListTypeEnum = exports.StagesConsentListModeEnum = exports.StagesAuthenticatorWebauthnListUserVerificationEnum = exports.StagesAuthenticatorWebauthnListResidentKeyRequirementEnum = exports.StagesAuthenticatorWebauthnListAuthenticatorAttachmentEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorTotpListDigitsEnum = exports.StagesAuthenticatorSmsListProviderEnum = exports.StagesAuthenticatorSmsListAuthTypeEnum = exports.StagesApi = void 0;
25
+ exports.StagesUserWriteListUserCreationModeEnum = exports.StagesPromptPromptsListTypeEnum = exports.StagesConsentListModeEnum = exports.StagesAuthenticatorWebauthnListUserVerificationEnum = exports.StagesAuthenticatorWebauthnListResidentKeyRequirementEnum = exports.StagesAuthenticatorWebauthnListAuthenticatorAttachmentEnum = exports.StagesAuthenticatorValidateListNotConfiguredActionEnum = exports.StagesAuthenticatorTotpListDigitsEnum = exports.StagesAuthenticatorSmsListProviderEnum = exports.StagesAuthenticatorSmsListAuthTypeEnum = exports.StagesApi = void 0;
26
26
  const runtime = require("../runtime");
27
27
  const models_1 = require("../models");
28
28
  /**
@@ -5364,9 +5364,6 @@ class StagesApi extends runtime.BaseAPI {
5364
5364
  stagesUserWriteListRaw(requestParameters, initOverrides) {
5365
5365
  return __awaiter(this, void 0, void 0, function* () {
5366
5366
  const queryParameters = {};
5367
- if (requestParameters.canCreateUsers !== undefined) {
5368
- queryParameters['can_create_users'] = requestParameters.canCreateUsers;
5369
- }
5370
5367
  if (requestParameters.createUsersAsInactive !== undefined) {
5371
5368
  queryParameters['create_users_as_inactive'] = requestParameters.createUsersAsInactive;
5372
5369
  }
@@ -5391,6 +5388,9 @@ class StagesApi extends runtime.BaseAPI {
5391
5388
  if (requestParameters.stageUuid !== undefined) {
5392
5389
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5393
5390
  }
5391
+ if (requestParameters.userCreationMode !== undefined) {
5392
+ queryParameters['user_creation_mode'] = requestParameters.userCreationMode;
5393
+ }
5394
5394
  if (requestParameters.userPathTemplate !== undefined) {
5395
5395
  queryParameters['user_path_template'] = requestParameters.userPathTemplate;
5396
5396
  }
@@ -5637,3 +5637,12 @@ exports.StagesPromptPromptsListTypeEnum = {
5637
5637
  Username: 'username',
5638
5638
  UnknownDefaultOpenApi: '11184809'
5639
5639
  };
5640
+ /**
5641
+ * @export
5642
+ */
5643
+ exports.StagesUserWriteListUserCreationModeEnum = {
5644
+ AlwaysCreate: 'always_create',
5645
+ CreateWhenRequired: 'create_when_required',
5646
+ NeverCreate: 'never_create',
5647
+ UnknownDefaultOpenApi: '11184809'
5648
+ };
@@ -654,7 +654,6 @@ export interface StagesUserWriteDestroyRequest {
654
654
  stageUuid: string;
655
655
  }
656
656
  export interface StagesUserWriteListRequest {
657
- canCreateUsers?: boolean;
658
657
  createUsersAsInactive?: boolean;
659
658
  createUsersGroup?: string;
660
659
  name?: string;
@@ -663,6 +662,7 @@ export interface StagesUserWriteListRequest {
663
662
  pageSize?: number;
664
663
  search?: string;
665
664
  stageUuid?: string;
665
+ userCreationMode?: StagesUserWriteListUserCreationModeEnum;
666
666
  userPathTemplate?: string;
667
667
  }
668
668
  export interface StagesUserWritePartialUpdateRequest {
@@ -2037,3 +2037,13 @@ export declare const StagesPromptPromptsListTypeEnum: {
2037
2037
  readonly UnknownDefaultOpenApi: "11184809";
2038
2038
  };
2039
2039
  export type StagesPromptPromptsListTypeEnum = typeof StagesPromptPromptsListTypeEnum[keyof typeof StagesPromptPromptsListTypeEnum];
2040
+ /**
2041
+ * @export
2042
+ */
2043
+ export declare const StagesUserWriteListUserCreationModeEnum: {
2044
+ readonly AlwaysCreate: "always_create";
2045
+ readonly CreateWhenRequired: "create_when_required";
2046
+ readonly NeverCreate: "never_create";
2047
+ readonly UnknownDefaultOpenApi: "11184809";
2048
+ };
2049
+ export type StagesUserWriteListUserCreationModeEnum = typeof StagesUserWriteListUserCreationModeEnum[keyof typeof StagesUserWriteListUserCreationModeEnum];
@@ -5361,9 +5361,6 @@ export class StagesApi extends runtime.BaseAPI {
5361
5361
  stagesUserWriteListRaw(requestParameters, initOverrides) {
5362
5362
  return __awaiter(this, void 0, void 0, function* () {
5363
5363
  const queryParameters = {};
5364
- if (requestParameters.canCreateUsers !== undefined) {
5365
- queryParameters['can_create_users'] = requestParameters.canCreateUsers;
5366
- }
5367
5364
  if (requestParameters.createUsersAsInactive !== undefined) {
5368
5365
  queryParameters['create_users_as_inactive'] = requestParameters.createUsersAsInactive;
5369
5366
  }
@@ -5388,6 +5385,9 @@ export class StagesApi extends runtime.BaseAPI {
5388
5385
  if (requestParameters.stageUuid !== undefined) {
5389
5386
  queryParameters['stage_uuid'] = requestParameters.stageUuid;
5390
5387
  }
5388
+ if (requestParameters.userCreationMode !== undefined) {
5389
+ queryParameters['user_creation_mode'] = requestParameters.userCreationMode;
5390
+ }
5391
5391
  if (requestParameters.userPathTemplate !== undefined) {
5392
5392
  queryParameters['user_path_template'] = requestParameters.userPathTemplate;
5393
5393
  }
@@ -5633,3 +5633,12 @@ export const StagesPromptPromptsListTypeEnum = {
5633
5633
  Username: 'username',
5634
5634
  UnknownDefaultOpenApi: '11184809'
5635
5635
  };
5636
+ /**
5637
+ * @export
5638
+ */
5639
+ export const StagesUserWriteListUserCreationModeEnum = {
5640
+ AlwaysCreate: 'always_create',
5641
+ CreateWhenRequired: 'create_when_required',
5642
+ NeverCreate: 'never_create',
5643
+ UnknownDefaultOpenApi: '11184809'
5644
+ };
@@ -33,7 +33,7 @@ export interface BlueprintInstance {
33
33
  * @type {string}
34
34
  * @memberof BlueprintInstance
35
35
  */
36
- path: string;
36
+ path?: string;
37
37
  /**
38
38
  *
39
39
  * @type {{ [key: string]: any; }}
@@ -80,6 +80,12 @@ export interface BlueprintInstance {
80
80
  readonly metadata: {
81
81
  [key: string]: any;
82
82
  };
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof BlueprintInstance
87
+ */
88
+ content?: string;
83
89
  }
84
90
  export declare function BlueprintInstanceFromJSON(json: any): BlueprintInstance;
85
91
  export declare function BlueprintInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstance;
@@ -23,7 +23,7 @@ export function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
23
23
  return {
24
24
  'pk': json['pk'],
25
25
  'name': json['name'],
26
- 'path': json['path'],
26
+ 'path': !exists(json, 'path') ? undefined : json['path'],
27
27
  'context': !exists(json, 'context') ? undefined : json['context'],
28
28
  'lastApplied': (new Date(json['last_applied'])),
29
29
  'lastAppliedHash': json['last_applied_hash'],
@@ -31,6 +31,7 @@ export function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
31
31
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
32
32
  'managedModels': json['managed_models'],
33
33
  'metadata': json['metadata'],
34
+ 'content': !exists(json, 'content') ? undefined : json['content'],
34
35
  };
35
36
  }
36
37
  export function BlueprintInstanceToJSON(value) {
@@ -45,5 +46,6 @@ export function BlueprintInstanceToJSON(value) {
45
46
  'path': value.path,
46
47
  'context': value.context,
47
48
  'enabled': value.enabled,
49
+ 'content': value.content,
48
50
  };
49
51
  }
@@ -26,7 +26,7 @@ export interface BlueprintInstanceRequest {
26
26
  * @type {string}
27
27
  * @memberof BlueprintInstanceRequest
28
28
  */
29
- path: string;
29
+ path?: string;
30
30
  /**
31
31
  *
32
32
  * @type {{ [key: string]: any; }}
@@ -41,6 +41,12 @@ export interface BlueprintInstanceRequest {
41
41
  * @memberof BlueprintInstanceRequest
42
42
  */
43
43
  enabled?: boolean;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof BlueprintInstanceRequest
48
+ */
49
+ content?: string;
44
50
  }
45
51
  export declare function BlueprintInstanceRequestFromJSON(json: any): BlueprintInstanceRequest;
46
52
  export declare function BlueprintInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstanceRequest;
@@ -21,9 +21,10 @@ export function BlueprintInstanceRequestFromJSONTyped(json, ignoreDiscriminator)
21
21
  }
22
22
  return {
23
23
  'name': json['name'],
24
- 'path': json['path'],
24
+ 'path': !exists(json, 'path') ? undefined : json['path'],
25
25
  'context': !exists(json, 'context') ? undefined : json['context'],
26
26
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
27
+ 'content': !exists(json, 'content') ? undefined : json['content'],
27
28
  };
28
29
  }
29
30
  export function BlueprintInstanceRequestToJSON(value) {
@@ -38,5 +39,6 @@ export function BlueprintInstanceRequestToJSON(value) {
38
39
  'path': value.path,
39
40
  'context': value.context,
40
41
  'enabled': value.enabled,
42
+ 'content': value.content,
41
43
  };
42
44
  }
@@ -41,6 +41,12 @@ export interface PatchedBlueprintInstanceRequest {
41
41
  * @memberof PatchedBlueprintInstanceRequest
42
42
  */
43
43
  enabled?: boolean;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PatchedBlueprintInstanceRequest
48
+ */
49
+ content?: string;
44
50
  }
45
51
  export declare function PatchedBlueprintInstanceRequestFromJSON(json: any): PatchedBlueprintInstanceRequest;
46
52
  export declare function PatchedBlueprintInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedBlueprintInstanceRequest;
@@ -24,6 +24,7 @@ export function PatchedBlueprintInstanceRequestFromJSONTyped(json, ignoreDiscrim
24
24
  'path': !exists(json, 'path') ? undefined : json['path'],
25
25
  'context': !exists(json, 'context') ? undefined : json['context'],
26
26
  'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
27
+ 'content': !exists(json, 'content') ? undefined : json['content'],
27
28
  };
28
29
  }
29
30
  export function PatchedBlueprintInstanceRequestToJSON(value) {
@@ -38,5 +39,6 @@ export function PatchedBlueprintInstanceRequestToJSON(value) {
38
39
  'path': value.path,
39
40
  'context': value.context,
40
41
  'enabled': value.enabled,
42
+ 'content': value.content,
41
43
  };
42
44
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowSetRequest } from './FlowSetRequest';
13
+ import { UserCreationModeEnum } from './UserCreationModeEnum';
13
14
  /**
14
15
  * UserWriteStage Serializer
15
16
  * @export
@@ -28,6 +29,12 @@ export interface PatchedUserWriteStageRequest {
28
29
  * @memberof PatchedUserWriteStageRequest
29
30
  */
30
31
  flowSet?: Array<FlowSetRequest>;
32
+ /**
33
+ *
34
+ * @type {UserCreationModeEnum}
35
+ * @memberof PatchedUserWriteStageRequest
36
+ */
37
+ userCreationMode?: UserCreationModeEnum;
31
38
  /**
32
39
  * When set, newly created users are inactive and cannot login.
33
40
  * @type {boolean}
@@ -40,12 +47,6 @@ export interface PatchedUserWriteStageRequest {
40
47
  * @memberof PatchedUserWriteStageRequest
41
48
  */
42
49
  createUsersGroup?: string | null;
43
- /**
44
- * When set, this stage can create users. If not enabled and no user is available, stage will fail.
45
- * @type {boolean}
46
- * @memberof PatchedUserWriteStageRequest
47
- */
48
- canCreateUsers?: boolean;
49
50
  /**
50
51
  *
51
52
  * @type {string}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
16
+ import { UserCreationModeEnumFromJSON, UserCreationModeEnumToJSON, } from './UserCreationModeEnum';
16
17
  export function PatchedUserWriteStageRequestFromJSON(json) {
17
18
  return PatchedUserWriteStageRequestFromJSONTyped(json, false);
18
19
  }
@@ -23,9 +24,9 @@ export function PatchedUserWriteStageRequestFromJSONTyped(json, ignoreDiscrimina
23
24
  return {
24
25
  'name': !exists(json, 'name') ? undefined : json['name'],
25
26
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
27
+ 'userCreationMode': !exists(json, 'user_creation_mode') ? undefined : UserCreationModeEnumFromJSON(json['user_creation_mode']),
26
28
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
29
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
- 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
29
30
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
30
31
  };
31
32
  }
@@ -39,9 +40,9 @@ export function PatchedUserWriteStageRequestToJSON(value) {
39
40
  return {
40
41
  'name': value.name,
41
42
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
43
+ 'user_creation_mode': UserCreationModeEnumToJSON(value.userCreationMode),
42
44
  'create_users_as_inactive': value.createUsersAsInactive,
43
45
  'create_users_group': value.createUsersGroup,
44
- 'can_create_users': value.canCreateUsers,
45
46
  'user_path_template': value.userPathTemplate,
46
47
  };
47
48
  }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2022.12.2
6
+ * Contact: hello@goauthentik.io
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const UserCreationModeEnum: {
17
+ readonly NeverCreate: "never_create";
18
+ readonly CreateWhenRequired: "create_when_required";
19
+ readonly AlwaysCreate: "always_create";
20
+ readonly UnknownDefaultOpenApi: "11184809";
21
+ };
22
+ export type UserCreationModeEnum = typeof UserCreationModeEnum[keyof typeof UserCreationModeEnum];
23
+ export declare function UserCreationModeEnumFromJSON(json: any): UserCreationModeEnum;
24
+ export declare function UserCreationModeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserCreationModeEnum;
25
+ export declare function UserCreationModeEnumToJSON(value?: UserCreationModeEnum | null): any;
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2022.12.2
8
+ * Contact: hello@goauthentik.io
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ */
18
+ export const UserCreationModeEnum = {
19
+ NeverCreate: 'never_create',
20
+ CreateWhenRequired: 'create_when_required',
21
+ AlwaysCreate: 'always_create',
22
+ UnknownDefaultOpenApi: '11184809'
23
+ };
24
+ export function UserCreationModeEnumFromJSON(json) {
25
+ return UserCreationModeEnumFromJSONTyped(json, false);
26
+ }
27
+ export function UserCreationModeEnumFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function UserCreationModeEnumToJSON(value) {
31
+ return value;
32
+ }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowSet } from './FlowSet';
13
+ import { UserCreationModeEnum } from './UserCreationModeEnum';
13
14
  /**
14
15
  * UserWriteStage Serializer
15
16
  * @export
@@ -58,6 +59,12 @@ export interface UserWriteStage {
58
59
  * @memberof UserWriteStage
59
60
  */
60
61
  flowSet?: Array<FlowSet>;
62
+ /**
63
+ *
64
+ * @type {UserCreationModeEnum}
65
+ * @memberof UserWriteStage
66
+ */
67
+ userCreationMode?: UserCreationModeEnum;
61
68
  /**
62
69
  * When set, newly created users are inactive and cannot login.
63
70
  * @type {boolean}
@@ -70,12 +77,6 @@ export interface UserWriteStage {
70
77
  * @memberof UserWriteStage
71
78
  */
72
79
  createUsersGroup?: string | null;
73
- /**
74
- * When set, this stage can create users. If not enabled and no user is available, stage will fail.
75
- * @type {boolean}
76
- * @memberof UserWriteStage
77
- */
78
- canCreateUsers?: boolean;
79
80
  /**
80
81
  *
81
82
  * @type {string}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowSetFromJSON, FlowSetToJSON, } from './FlowSet';
16
+ import { UserCreationModeEnumFromJSON, UserCreationModeEnumToJSON, } from './UserCreationModeEnum';
16
17
  export function UserWriteStageFromJSON(json) {
17
18
  return UserWriteStageFromJSONTyped(json, false);
18
19
  }
@@ -28,9 +29,9 @@ export function UserWriteStageFromJSONTyped(json, ignoreDiscriminator) {
28
29
  'verboseNamePlural': json['verbose_name_plural'],
29
30
  'metaModelName': json['meta_model_name'],
30
31
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetFromJSON)),
32
+ 'userCreationMode': !exists(json, 'user_creation_mode') ? undefined : UserCreationModeEnumFromJSON(json['user_creation_mode']),
31
33
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
32
34
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
33
- 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
34
35
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
35
36
  };
36
37
  }
@@ -44,9 +45,9 @@ export function UserWriteStageToJSON(value) {
44
45
  return {
45
46
  'name': value.name,
46
47
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetToJSON)),
48
+ 'user_creation_mode': UserCreationModeEnumToJSON(value.userCreationMode),
47
49
  'create_users_as_inactive': value.createUsersAsInactive,
48
50
  'create_users_group': value.createUsersGroup,
49
- 'can_create_users': value.canCreateUsers,
50
51
  'user_path_template': value.userPathTemplate,
51
52
  };
52
53
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { FlowSetRequest } from './FlowSetRequest';
13
+ import { UserCreationModeEnum } from './UserCreationModeEnum';
13
14
  /**
14
15
  * UserWriteStage Serializer
15
16
  * @export
@@ -28,6 +29,12 @@ export interface UserWriteStageRequest {
28
29
  * @memberof UserWriteStageRequest
29
30
  */
30
31
  flowSet?: Array<FlowSetRequest>;
32
+ /**
33
+ *
34
+ * @type {UserCreationModeEnum}
35
+ * @memberof UserWriteStageRequest
36
+ */
37
+ userCreationMode?: UserCreationModeEnum;
31
38
  /**
32
39
  * When set, newly created users are inactive and cannot login.
33
40
  * @type {boolean}
@@ -40,12 +47,6 @@ export interface UserWriteStageRequest {
40
47
  * @memberof UserWriteStageRequest
41
48
  */
42
49
  createUsersGroup?: string | null;
43
- /**
44
- * When set, this stage can create users. If not enabled and no user is available, stage will fail.
45
- * @type {boolean}
46
- * @memberof UserWriteStageRequest
47
- */
48
- canCreateUsers?: boolean;
49
50
  /**
50
51
  *
51
52
  * @type {string}
@@ -13,6 +13,7 @@
13
13
  */
14
14
  import { exists } from '../runtime';
15
15
  import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
16
+ import { UserCreationModeEnumFromJSON, UserCreationModeEnumToJSON, } from './UserCreationModeEnum';
16
17
  export function UserWriteStageRequestFromJSON(json) {
17
18
  return UserWriteStageRequestFromJSONTyped(json, false);
18
19
  }
@@ -23,9 +24,9 @@ export function UserWriteStageRequestFromJSONTyped(json, ignoreDiscriminator) {
23
24
  return {
24
25
  'name': json['name'],
25
26
  'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
27
+ 'userCreationMode': !exists(json, 'user_creation_mode') ? undefined : UserCreationModeEnumFromJSON(json['user_creation_mode']),
26
28
  'createUsersAsInactive': !exists(json, 'create_users_as_inactive') ? undefined : json['create_users_as_inactive'],
27
29
  'createUsersGroup': !exists(json, 'create_users_group') ? undefined : json['create_users_group'],
28
- 'canCreateUsers': !exists(json, 'can_create_users') ? undefined : json['can_create_users'],
29
30
  'userPathTemplate': !exists(json, 'user_path_template') ? undefined : json['user_path_template'],
30
31
  };
31
32
  }
@@ -39,9 +40,9 @@ export function UserWriteStageRequestToJSON(value) {
39
40
  return {
40
41
  'name': value.name,
41
42
  'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
43
+ 'user_creation_mode': UserCreationModeEnumToJSON(value.userCreationMode),
42
44
  'create_users_as_inactive': value.createUsersAsInactive,
43
45
  'create_users_group': value.createUsersGroup,
44
- 'can_create_users': value.canCreateUsers,
45
46
  'user_path_template': value.userPathTemplate,
46
47
  };
47
48
  }
@@ -432,6 +432,7 @@ export * from './UsedByActionEnum';
432
432
  export * from './User';
433
433
  export * from './UserAccountRequest';
434
434
  export * from './UserConsent';
435
+ export * from './UserCreationModeEnum';
435
436
  export * from './UserDeleteStage';
436
437
  export * from './UserDeleteStageRequest';
437
438
  export * from './UserFieldsEnum';
@@ -434,6 +434,7 @@ export * from './UsedByActionEnum';
434
434
  export * from './User';
435
435
  export * from './UserAccountRequest';
436
436
  export * from './UserConsent';
437
+ export * from './UserCreationModeEnum';
437
438
  export * from './UserDeleteStage';
438
439
  export * from './UserDeleteStageRequest';
439
440
  export * from './UserFieldsEnum';
@@ -33,7 +33,7 @@ export interface BlueprintInstance {
33
33
  * @type {string}
34
34
  * @memberof BlueprintInstance
35
35
  */
36
- path: string;
36
+ path?: string;
37
37
  /**
38
38
  *
39
39
  * @type {{ [key: string]: any; }}
@@ -80,6 +80,12 @@ export interface BlueprintInstance {
80
80
  readonly metadata: {
81
81
  [key: string]: any;
82
82
  };
83
+ /**
84
+ *
85
+ * @type {string}
86
+ * @memberof BlueprintInstance
87
+ */
88
+ content?: string;
83
89
  }
84
90
  export declare function BlueprintInstanceFromJSON(json: any): BlueprintInstance;
85
91
  export declare function BlueprintInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstance;
@@ -27,7 +27,7 @@ function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
27
27
  return {
28
28
  'pk': json['pk'],
29
29
  'name': json['name'],
30
- 'path': json['path'],
30
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
31
31
  'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
32
32
  'lastApplied': (new Date(json['last_applied'])),
33
33
  'lastAppliedHash': json['last_applied_hash'],
@@ -35,6 +35,7 @@ function BlueprintInstanceFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
36
36
  'managedModels': json['managed_models'],
37
37
  'metadata': json['metadata'],
38
+ 'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'],
38
39
  };
39
40
  }
40
41
  exports.BlueprintInstanceFromJSONTyped = BlueprintInstanceFromJSONTyped;
@@ -50,6 +51,7 @@ function BlueprintInstanceToJSON(value) {
50
51
  'path': value.path,
51
52
  'context': value.context,
52
53
  'enabled': value.enabled,
54
+ 'content': value.content,
53
55
  };
54
56
  }
55
57
  exports.BlueprintInstanceToJSON = BlueprintInstanceToJSON;
@@ -26,7 +26,7 @@ export interface BlueprintInstanceRequest {
26
26
  * @type {string}
27
27
  * @memberof BlueprintInstanceRequest
28
28
  */
29
- path: string;
29
+ path?: string;
30
30
  /**
31
31
  *
32
32
  * @type {{ [key: string]: any; }}
@@ -41,6 +41,12 @@ export interface BlueprintInstanceRequest {
41
41
  * @memberof BlueprintInstanceRequest
42
42
  */
43
43
  enabled?: boolean;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof BlueprintInstanceRequest
48
+ */
49
+ content?: string;
44
50
  }
45
51
  export declare function BlueprintInstanceRequestFromJSON(json: any): BlueprintInstanceRequest;
46
52
  export declare function BlueprintInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BlueprintInstanceRequest;
@@ -25,9 +25,10 @@ function BlueprintInstanceRequestFromJSONTyped(json, ignoreDiscriminator) {
25
25
  }
26
26
  return {
27
27
  'name': json['name'],
28
- 'path': json['path'],
28
+ 'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
29
29
  'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
30
30
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
31
+ 'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'],
31
32
  };
32
33
  }
33
34
  exports.BlueprintInstanceRequestFromJSONTyped = BlueprintInstanceRequestFromJSONTyped;
@@ -43,6 +44,7 @@ function BlueprintInstanceRequestToJSON(value) {
43
44
  'path': value.path,
44
45
  'context': value.context,
45
46
  'enabled': value.enabled,
47
+ 'content': value.content,
46
48
  };
47
49
  }
48
50
  exports.BlueprintInstanceRequestToJSON = BlueprintInstanceRequestToJSON;
@@ -41,6 +41,12 @@ export interface PatchedBlueprintInstanceRequest {
41
41
  * @memberof PatchedBlueprintInstanceRequest
42
42
  */
43
43
  enabled?: boolean;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof PatchedBlueprintInstanceRequest
48
+ */
49
+ content?: string;
44
50
  }
45
51
  export declare function PatchedBlueprintInstanceRequestFromJSON(json: any): PatchedBlueprintInstanceRequest;
46
52
  export declare function PatchedBlueprintInstanceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedBlueprintInstanceRequest;
@@ -28,6 +28,7 @@ function PatchedBlueprintInstanceRequestFromJSONTyped(json, ignoreDiscriminator)
28
28
  'path': !(0, runtime_1.exists)(json, 'path') ? undefined : json['path'],
29
29
  'context': !(0, runtime_1.exists)(json, 'context') ? undefined : json['context'],
30
30
  'enabled': !(0, runtime_1.exists)(json, 'enabled') ? undefined : json['enabled'],
31
+ 'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'],
31
32
  };
32
33
  }
33
34
  exports.PatchedBlueprintInstanceRequestFromJSONTyped = PatchedBlueprintInstanceRequestFromJSONTyped;
@@ -43,6 +44,7 @@ function PatchedBlueprintInstanceRequestToJSON(value) {
43
44
  'path': value.path,
44
45
  'context': value.context,
45
46
  'enabled': value.enabled,
47
+ 'content': value.content,
46
48
  };
47
49
  }
48
50
  exports.PatchedBlueprintInstanceRequestToJSON = PatchedBlueprintInstanceRequestToJSON;