@goauthentik/api 2024.2.2-1709583949 → 2024.2.2-1710442005

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/dist/apis/RbacApi.d.ts +2 -0
  3. package/dist/apis/RbacApi.js +2 -0
  4. package/dist/apis/StagesApi.d.ts +87 -1
  5. package/dist/apis/StagesApi.js +246 -0
  6. package/dist/esm/apis/RbacApi.d.ts +2 -0
  7. package/dist/esm/apis/RbacApi.js +2 -0
  8. package/dist/esm/apis/StagesApi.d.ts +87 -1
  9. package/dist/esm/apis/StagesApi.js +247 -1
  10. package/dist/esm/models/AppEnum.d.ts +2 -0
  11. package/dist/esm/models/AppEnum.js +2 -0
  12. package/dist/esm/models/DummyChallenge.d.ts +6 -0
  13. package/dist/esm/models/DummyChallenge.js +3 -0
  14. package/dist/esm/models/ModelEnum.d.ts +2 -0
  15. package/dist/esm/models/ModelEnum.js +2 -0
  16. package/dist/esm/models/PaginatedSourceStageList.d.ts +39 -0
  17. package/dist/esm/models/PaginatedSourceStageList.js +48 -0
  18. package/dist/esm/models/PatchedSourceStageRequest.d.ts +50 -0
  19. package/dist/esm/models/PatchedSourceStageRequest.js +50 -0
  20. package/dist/esm/models/SourceStage.d.ts +80 -0
  21. package/dist/esm/models/SourceStage.js +62 -0
  22. package/dist/esm/models/SourceStageRequest.d.ts +50 -0
  23. package/dist/esm/models/SourceStageRequest.js +52 -0
  24. package/dist/esm/models/index.d.ts +4 -0
  25. package/dist/esm/models/index.js +4 -0
  26. package/dist/models/AppEnum.d.ts +2 -0
  27. package/dist/models/AppEnum.js +2 -0
  28. package/dist/models/DummyChallenge.d.ts +6 -0
  29. package/dist/models/DummyChallenge.js +3 -0
  30. package/dist/models/ModelEnum.d.ts +2 -0
  31. package/dist/models/ModelEnum.js +2 -0
  32. package/dist/models/PaginatedSourceStageList.d.ts +39 -0
  33. package/dist/models/PaginatedSourceStageList.js +55 -0
  34. package/dist/models/PatchedSourceStageRequest.d.ts +50 -0
  35. package/dist/models/PatchedSourceStageRequest.js +57 -0
  36. package/dist/models/SourceStage.d.ts +80 -0
  37. package/dist/models/SourceStage.js +69 -0
  38. package/dist/models/SourceStageRequest.d.ts +50 -0
  39. package/dist/models/SourceStageRequest.js +59 -0
  40. package/dist/models/index.d.ts +4 -0
  41. package/dist/models/index.js +4 -0
  42. package/package.json +1 -1
  43. package/src/apis/RbacApi.ts +2 -0
  44. package/src/apis/StagesApi.ts +327 -0
  45. package/src/models/AppEnum.ts +2 -0
  46. package/src/models/DummyChallenge.ts +9 -0
  47. package/src/models/ModelEnum.ts +2 -0
  48. package/src/models/PaginatedSourceStageList.ts +88 -0
  49. package/src/models/PatchedSourceStageRequest.ts +96 -0
  50. package/src/models/SourceStage.ts +138 -0
  51. package/src/models/SourceStageRequest.ts +98 -0
  52. package/src/models/index.ts +4 -0
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
24
+ import { AuthenticateWebAuthnStageFromJSON, AuthenticateWebAuthnStageRequestToJSON, AuthenticatorDuoStageFromJSON, AuthenticatorDuoStageDeviceImportResponseFromJSON, AuthenticatorDuoStageManualDeviceImportRequestToJSON, AuthenticatorDuoStageRequestToJSON, AuthenticatorSMSStageFromJSON, AuthenticatorSMSStageRequestToJSON, AuthenticatorStaticStageFromJSON, AuthenticatorStaticStageRequestToJSON, AuthenticatorTOTPStageFromJSON, AuthenticatorTOTPStageRequestToJSON, AuthenticatorValidateStageFromJSON, AuthenticatorValidateStageRequestToJSON, CaptchaStageFromJSON, CaptchaStageRequestToJSON, ConsentStageFromJSON, ConsentStageRequestToJSON, DenyStageFromJSON, DenyStageRequestToJSON, DummyStageFromJSON, DummyStageRequestToJSON, DuoDeviceEnrollmentStatusFromJSON, EmailStageFromJSON, EmailStageRequestToJSON, IdentificationStageFromJSON, IdentificationStageRequestToJSON, InvitationFromJSON, InvitationRequestToJSON, InvitationStageFromJSON, InvitationStageRequestToJSON, PaginatedAuthenticateWebAuthnStageListFromJSON, PaginatedAuthenticatorDuoStageListFromJSON, PaginatedAuthenticatorSMSStageListFromJSON, PaginatedAuthenticatorStaticStageListFromJSON, PaginatedAuthenticatorTOTPStageListFromJSON, PaginatedAuthenticatorValidateStageListFromJSON, PaginatedCaptchaStageListFromJSON, PaginatedConsentStageListFromJSON, PaginatedDenyStageListFromJSON, PaginatedDummyStageListFromJSON, PaginatedEmailStageListFromJSON, PaginatedIdentificationStageListFromJSON, PaginatedInvitationListFromJSON, PaginatedInvitationStageListFromJSON, PaginatedPasswordStageListFromJSON, PaginatedPromptListFromJSON, PaginatedPromptStageListFromJSON, PaginatedSourceStageListFromJSON, PaginatedStageListFromJSON, PaginatedUserDeleteStageListFromJSON, PaginatedUserLoginStageListFromJSON, PaginatedUserLogoutStageListFromJSON, PaginatedUserWriteStageListFromJSON, PasswordStageFromJSON, PasswordStageRequestToJSON, PatchedAuthenticateWebAuthnStageRequestToJSON, PatchedAuthenticatorDuoStageRequestToJSON, PatchedAuthenticatorSMSStageRequestToJSON, PatchedAuthenticatorStaticStageRequestToJSON, PatchedAuthenticatorTOTPStageRequestToJSON, PatchedAuthenticatorValidateStageRequestToJSON, PatchedCaptchaStageRequestToJSON, PatchedConsentStageRequestToJSON, PatchedDenyStageRequestToJSON, PatchedDummyStageRequestToJSON, PatchedEmailStageRequestToJSON, PatchedIdentificationStageRequestToJSON, PatchedInvitationRequestToJSON, PatchedInvitationStageRequestToJSON, PatchedPasswordStageRequestToJSON, PatchedPromptRequestToJSON, PatchedPromptStageRequestToJSON, PatchedSourceStageRequestToJSON, PatchedUserDeleteStageRequestToJSON, PatchedUserLoginStageRequestToJSON, PatchedUserLogoutStageRequestToJSON, PatchedUserWriteStageRequestToJSON, PromptFromJSON, PromptChallengeFromJSON, PromptRequestToJSON, PromptStageFromJSON, PromptStageRequestToJSON, SourceStageFromJSON, SourceStageRequestToJSON, StageFromJSON, TypeCreateFromJSON, UsedByFromJSON, UserDeleteStageFromJSON, UserDeleteStageRequestToJSON, UserLoginStageFromJSON, UserLoginStageRequestToJSON, UserLogoutStageFromJSON, UserLogoutStageRequestToJSON, UserSettingFromJSON, UserWriteStageFromJSON, UserWriteStageRequestToJSON, } from '../models';
25
25
  /**
26
26
  *
27
27
  */
@@ -4623,6 +4623,252 @@ export class StagesApi extends runtime.BaseAPI {
4623
4623
  return yield response.value();
4624
4624
  });
4625
4625
  }
4626
+ /**
4627
+ * SourceStage Viewset
4628
+ */
4629
+ stagesSourceCreateRaw(requestParameters, initOverrides) {
4630
+ return __awaiter(this, void 0, void 0, function* () {
4631
+ if (requestParameters.sourceStageRequest === null || requestParameters.sourceStageRequest === undefined) {
4632
+ throw new runtime.RequiredError('sourceStageRequest', 'Required parameter requestParameters.sourceStageRequest was null or undefined when calling stagesSourceCreate.');
4633
+ }
4634
+ const queryParameters = {};
4635
+ const headerParameters = {};
4636
+ headerParameters['Content-Type'] = 'application/json';
4637
+ if (this.configuration && this.configuration.apiKey) {
4638
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4639
+ }
4640
+ const response = yield this.request({
4641
+ path: `/stages/source/`,
4642
+ method: 'POST',
4643
+ headers: headerParameters,
4644
+ query: queryParameters,
4645
+ body: SourceStageRequestToJSON(requestParameters.sourceStageRequest),
4646
+ }, initOverrides);
4647
+ return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
4648
+ });
4649
+ }
4650
+ /**
4651
+ * SourceStage Viewset
4652
+ */
4653
+ stagesSourceCreate(requestParameters, initOverrides) {
4654
+ return __awaiter(this, void 0, void 0, function* () {
4655
+ const response = yield this.stagesSourceCreateRaw(requestParameters, initOverrides);
4656
+ return yield response.value();
4657
+ });
4658
+ }
4659
+ /**
4660
+ * SourceStage Viewset
4661
+ */
4662
+ stagesSourceDestroyRaw(requestParameters, initOverrides) {
4663
+ return __awaiter(this, void 0, void 0, function* () {
4664
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
4665
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceDestroy.');
4666
+ }
4667
+ const queryParameters = {};
4668
+ const headerParameters = {};
4669
+ if (this.configuration && this.configuration.apiKey) {
4670
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4671
+ }
4672
+ const response = yield this.request({
4673
+ path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
4674
+ method: 'DELETE',
4675
+ headers: headerParameters,
4676
+ query: queryParameters,
4677
+ }, initOverrides);
4678
+ return new runtime.VoidApiResponse(response);
4679
+ });
4680
+ }
4681
+ /**
4682
+ * SourceStage Viewset
4683
+ */
4684
+ stagesSourceDestroy(requestParameters, initOverrides) {
4685
+ return __awaiter(this, void 0, void 0, function* () {
4686
+ yield this.stagesSourceDestroyRaw(requestParameters, initOverrides);
4687
+ });
4688
+ }
4689
+ /**
4690
+ * SourceStage Viewset
4691
+ */
4692
+ stagesSourceListRaw(requestParameters, initOverrides) {
4693
+ return __awaiter(this, void 0, void 0, function* () {
4694
+ const queryParameters = {};
4695
+ if (requestParameters.name !== undefined) {
4696
+ queryParameters['name'] = requestParameters.name;
4697
+ }
4698
+ if (requestParameters.ordering !== undefined) {
4699
+ queryParameters['ordering'] = requestParameters.ordering;
4700
+ }
4701
+ if (requestParameters.page !== undefined) {
4702
+ queryParameters['page'] = requestParameters.page;
4703
+ }
4704
+ if (requestParameters.pageSize !== undefined) {
4705
+ queryParameters['page_size'] = requestParameters.pageSize;
4706
+ }
4707
+ if (requestParameters.resumeTimeout !== undefined) {
4708
+ queryParameters['resume_timeout'] = requestParameters.resumeTimeout;
4709
+ }
4710
+ if (requestParameters.search !== undefined) {
4711
+ queryParameters['search'] = requestParameters.search;
4712
+ }
4713
+ if (requestParameters.source !== undefined) {
4714
+ queryParameters['source'] = requestParameters.source;
4715
+ }
4716
+ if (requestParameters.stageUuid !== undefined) {
4717
+ queryParameters['stage_uuid'] = requestParameters.stageUuid;
4718
+ }
4719
+ const headerParameters = {};
4720
+ if (this.configuration && this.configuration.apiKey) {
4721
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4722
+ }
4723
+ const response = yield this.request({
4724
+ path: `/stages/source/`,
4725
+ method: 'GET',
4726
+ headers: headerParameters,
4727
+ query: queryParameters,
4728
+ }, initOverrides);
4729
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSourceStageListFromJSON(jsonValue));
4730
+ });
4731
+ }
4732
+ /**
4733
+ * SourceStage Viewset
4734
+ */
4735
+ stagesSourceList(requestParameters = {}, initOverrides) {
4736
+ return __awaiter(this, void 0, void 0, function* () {
4737
+ const response = yield this.stagesSourceListRaw(requestParameters, initOverrides);
4738
+ return yield response.value();
4739
+ });
4740
+ }
4741
+ /**
4742
+ * SourceStage Viewset
4743
+ */
4744
+ stagesSourcePartialUpdateRaw(requestParameters, initOverrides) {
4745
+ return __awaiter(this, void 0, void 0, function* () {
4746
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
4747
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourcePartialUpdate.');
4748
+ }
4749
+ const queryParameters = {};
4750
+ const headerParameters = {};
4751
+ headerParameters['Content-Type'] = 'application/json';
4752
+ if (this.configuration && this.configuration.apiKey) {
4753
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4754
+ }
4755
+ const response = yield this.request({
4756
+ path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
4757
+ method: 'PATCH',
4758
+ headers: headerParameters,
4759
+ query: queryParameters,
4760
+ body: PatchedSourceStageRequestToJSON(requestParameters.patchedSourceStageRequest),
4761
+ }, initOverrides);
4762
+ return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
4763
+ });
4764
+ }
4765
+ /**
4766
+ * SourceStage Viewset
4767
+ */
4768
+ stagesSourcePartialUpdate(requestParameters, initOverrides) {
4769
+ return __awaiter(this, void 0, void 0, function* () {
4770
+ const response = yield this.stagesSourcePartialUpdateRaw(requestParameters, initOverrides);
4771
+ return yield response.value();
4772
+ });
4773
+ }
4774
+ /**
4775
+ * SourceStage Viewset
4776
+ */
4777
+ stagesSourceRetrieveRaw(requestParameters, initOverrides) {
4778
+ return __awaiter(this, void 0, void 0, function* () {
4779
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
4780
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceRetrieve.');
4781
+ }
4782
+ const queryParameters = {};
4783
+ const headerParameters = {};
4784
+ if (this.configuration && this.configuration.apiKey) {
4785
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4786
+ }
4787
+ const response = yield this.request({
4788
+ path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
4789
+ method: 'GET',
4790
+ headers: headerParameters,
4791
+ query: queryParameters,
4792
+ }, initOverrides);
4793
+ return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
4794
+ });
4795
+ }
4796
+ /**
4797
+ * SourceStage Viewset
4798
+ */
4799
+ stagesSourceRetrieve(requestParameters, initOverrides) {
4800
+ return __awaiter(this, void 0, void 0, function* () {
4801
+ const response = yield this.stagesSourceRetrieveRaw(requestParameters, initOverrides);
4802
+ return yield response.value();
4803
+ });
4804
+ }
4805
+ /**
4806
+ * SourceStage Viewset
4807
+ */
4808
+ stagesSourceUpdateRaw(requestParameters, initOverrides) {
4809
+ return __awaiter(this, void 0, void 0, function* () {
4810
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
4811
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceUpdate.');
4812
+ }
4813
+ if (requestParameters.sourceStageRequest === null || requestParameters.sourceStageRequest === undefined) {
4814
+ throw new runtime.RequiredError('sourceStageRequest', 'Required parameter requestParameters.sourceStageRequest was null or undefined when calling stagesSourceUpdate.');
4815
+ }
4816
+ const queryParameters = {};
4817
+ const headerParameters = {};
4818
+ headerParameters['Content-Type'] = 'application/json';
4819
+ if (this.configuration && this.configuration.apiKey) {
4820
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4821
+ }
4822
+ const response = yield this.request({
4823
+ path: `/stages/source/{stage_uuid}/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
4824
+ method: 'PUT',
4825
+ headers: headerParameters,
4826
+ query: queryParameters,
4827
+ body: SourceStageRequestToJSON(requestParameters.sourceStageRequest),
4828
+ }, initOverrides);
4829
+ return new runtime.JSONApiResponse(response, (jsonValue) => SourceStageFromJSON(jsonValue));
4830
+ });
4831
+ }
4832
+ /**
4833
+ * SourceStage Viewset
4834
+ */
4835
+ stagesSourceUpdate(requestParameters, initOverrides) {
4836
+ return __awaiter(this, void 0, void 0, function* () {
4837
+ const response = yield this.stagesSourceUpdateRaw(requestParameters, initOverrides);
4838
+ return yield response.value();
4839
+ });
4840
+ }
4841
+ /**
4842
+ * Get a list of all objects that use this object
4843
+ */
4844
+ stagesSourceUsedByListRaw(requestParameters, initOverrides) {
4845
+ return __awaiter(this, void 0, void 0, function* () {
4846
+ if (requestParameters.stageUuid === null || requestParameters.stageUuid === undefined) {
4847
+ throw new runtime.RequiredError('stageUuid', 'Required parameter requestParameters.stageUuid was null or undefined when calling stagesSourceUsedByList.');
4848
+ }
4849
+ const queryParameters = {};
4850
+ const headerParameters = {};
4851
+ if (this.configuration && this.configuration.apiKey) {
4852
+ headerParameters["Authorization"] = this.configuration.apiKey("Authorization"); // authentik authentication
4853
+ }
4854
+ const response = yield this.request({
4855
+ path: `/stages/source/{stage_uuid}/used_by/`.replace(`{${"stage_uuid"}}`, encodeURIComponent(String(requestParameters.stageUuid))),
4856
+ method: 'GET',
4857
+ headers: headerParameters,
4858
+ query: queryParameters,
4859
+ }, initOverrides);
4860
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
4861
+ });
4862
+ }
4863
+ /**
4864
+ * Get a list of all objects that use this object
4865
+ */
4866
+ stagesSourceUsedByList(requestParameters, initOverrides) {
4867
+ return __awaiter(this, void 0, void 0, function* () {
4868
+ const response = yield this.stagesSourceUsedByListRaw(requestParameters, initOverrides);
4869
+ return yield response.value();
4870
+ });
4871
+ }
4626
4872
  /**
4627
4873
  * UserDeleteStage Viewset
4628
4874
  */
@@ -61,6 +61,7 @@
61
61
  * * `authentik.enterprise` - authentik Enterprise
62
62
  * * `authentik.enterprise.audit` - authentik Enterprise.Audit
63
63
  * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
64
+ * * `authentik.enterprise.stages.source` - authentik Enterprise.Stages.Source
64
65
  * * `authentik.events` - authentik Events
65
66
  * @export
66
67
  */
@@ -116,6 +117,7 @@ export declare const AppEnum: {
116
117
  readonly Enterprise: "authentik.enterprise";
117
118
  readonly EnterpriseAudit: "authentik.enterprise.audit";
118
119
  readonly EnterpriseProvidersRac: "authentik.enterprise.providers.rac";
120
+ readonly EnterpriseStagesSource: "authentik.enterprise.stages.source";
119
121
  readonly Events: "authentik.events";
120
122
  readonly UnknownDefaultOpenApi: "11184809";
121
123
  };
@@ -63,6 +63,7 @@
63
63
  * * `authentik.enterprise` - authentik Enterprise
64
64
  * * `authentik.enterprise.audit` - authentik Enterprise.Audit
65
65
  * * `authentik.enterprise.providers.rac` - authentik Enterprise.Providers.RAC
66
+ * * `authentik.enterprise.stages.source` - authentik Enterprise.Stages.Source
66
67
  * * `authentik.events` - authentik Events
67
68
  * @export
68
69
  */
@@ -118,6 +119,7 @@ export const AppEnum = {
118
119
  Enterprise: 'authentik.enterprise',
119
120
  EnterpriseAudit: 'authentik.enterprise.audit',
120
121
  EnterpriseProvidersRac: 'authentik.enterprise.providers.rac',
122
+ EnterpriseStagesSource: 'authentik.enterprise.stages.source',
121
123
  Events: 'authentik.events',
122
124
  UnknownDefaultOpenApi: '11184809'
123
125
  };
@@ -44,6 +44,12 @@ export interface DummyChallenge {
44
44
  responseErrors?: {
45
45
  [key: string]: Array<ErrorDetail>;
46
46
  };
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof DummyChallenge
51
+ */
52
+ name: string;
47
53
  }
48
54
  /**
49
55
  * Check if a given object implements the DummyChallenge interface.
@@ -20,6 +20,7 @@ import { ContextualFlowInfoFromJSON, ContextualFlowInfoToJSON, } from './Context
20
20
  export function instanceOfDummyChallenge(value) {
21
21
  let isInstance = true;
22
22
  isInstance = isInstance && "type" in value;
23
+ isInstance = isInstance && "name" in value;
23
24
  return isInstance;
24
25
  }
25
26
  export function DummyChallengeFromJSON(json) {
@@ -34,6 +35,7 @@ export function DummyChallengeFromJSONTyped(json, ignoreDiscriminator) {
34
35
  'flowInfo': !exists(json, 'flow_info') ? undefined : ContextualFlowInfoFromJSON(json['flow_info']),
35
36
  'component': !exists(json, 'component') ? undefined : json['component'],
36
37
  'responseErrors': !exists(json, 'response_errors') ? undefined : json['response_errors'],
38
+ 'name': json['name'],
37
39
  };
38
40
  }
39
41
  export function DummyChallengeToJSON(value) {
@@ -48,5 +50,6 @@ export function DummyChallengeToJSON(value) {
48
50
  'flow_info': ContextualFlowInfoToJSON(value.flowInfo),
49
51
  'component': value.component,
50
52
  'response_errors': value.responseErrors,
53
+ 'name': value.name,
51
54
  };
52
55
  }
@@ -79,6 +79,7 @@
79
79
  * * `authentik_providers_rac.racprovider` - RAC Provider
80
80
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
81
81
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
82
+ * * `authentik_stages_source.sourcestage` - Source Stage
82
83
  * * `authentik_events.event` - Event
83
84
  * * `authentik_events.notificationtransport` - Notification Transport
84
85
  * * `authentik_events.notification` - Notification
@@ -156,6 +157,7 @@ export declare const ModelEnum: {
156
157
  readonly ProvidersRacRacprovider: "authentik_providers_rac.racprovider";
157
158
  readonly ProvidersRacEndpoint: "authentik_providers_rac.endpoint";
158
159
  readonly ProvidersRacRacpropertymapping: "authentik_providers_rac.racpropertymapping";
160
+ readonly StagesSourceSourcestage: "authentik_stages_source.sourcestage";
159
161
  readonly EventsEvent: "authentik_events.event";
160
162
  readonly EventsNotificationtransport: "authentik_events.notificationtransport";
161
163
  readonly EventsNotification: "authentik_events.notification";
@@ -81,6 +81,7 @@
81
81
  * * `authentik_providers_rac.racprovider` - RAC Provider
82
82
  * * `authentik_providers_rac.endpoint` - RAC Endpoint
83
83
  * * `authentik_providers_rac.racpropertymapping` - RAC Property Mapping
84
+ * * `authentik_stages_source.sourcestage` - Source Stage
84
85
  * * `authentik_events.event` - Event
85
86
  * * `authentik_events.notificationtransport` - Notification Transport
86
87
  * * `authentik_events.notification` - Notification
@@ -158,6 +159,7 @@ export const ModelEnum = {
158
159
  ProvidersRacRacprovider: 'authentik_providers_rac.racprovider',
159
160
  ProvidersRacEndpoint: 'authentik_providers_rac.endpoint',
160
161
  ProvidersRacRacpropertymapping: 'authentik_providers_rac.racpropertymapping',
162
+ StagesSourceSourcestage: 'authentik_stages_source.sourcestage',
161
163
  EventsEvent: 'authentik_events.event',
162
164
  EventsNotificationtransport: 'authentik_events.notificationtransport',
163
165
  EventsNotification: 'authentik_events.notification',
@@ -0,0 +1,39 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.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
+ import type { Pagination } from './Pagination';
13
+ import type { SourceStage } from './SourceStage';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface PaginatedSourceStageList
18
+ */
19
+ export interface PaginatedSourceStageList {
20
+ /**
21
+ *
22
+ * @type {Pagination}
23
+ * @memberof PaginatedSourceStageList
24
+ */
25
+ pagination: Pagination;
26
+ /**
27
+ *
28
+ * @type {Array<SourceStage>}
29
+ * @memberof PaginatedSourceStageList
30
+ */
31
+ results: Array<SourceStage>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the PaginatedSourceStageList interface.
35
+ */
36
+ export declare function instanceOfPaginatedSourceStageList(value: object): boolean;
37
+ export declare function PaginatedSourceStageListFromJSON(json: any): PaginatedSourceStageList;
38
+ export declare function PaginatedSourceStageListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSourceStageList;
39
+ export declare function PaginatedSourceStageListToJSON(value?: PaginatedSourceStageList | null): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.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
+ import { PaginationFromJSON, PaginationToJSON, } from './Pagination';
15
+ import { SourceStageFromJSON, SourceStageToJSON, } from './SourceStage';
16
+ /**
17
+ * Check if a given object implements the PaginatedSourceStageList interface.
18
+ */
19
+ export function instanceOfPaginatedSourceStageList(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "pagination" in value;
22
+ isInstance = isInstance && "results" in value;
23
+ return isInstance;
24
+ }
25
+ export function PaginatedSourceStageListFromJSON(json) {
26
+ return PaginatedSourceStageListFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedSourceStageListFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'pagination': PaginationFromJSON(json['pagination']),
34
+ 'results': (json['results'].map(SourceStageFromJSON)),
35
+ };
36
+ }
37
+ export function PaginatedSourceStageListToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'pagination': PaginationToJSON(value.pagination),
46
+ 'results': (value.results.map(SourceStageToJSON)),
47
+ };
48
+ }
@@ -0,0 +1,50 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.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
+ import type { FlowSetRequest } from './FlowSetRequest';
13
+ /**
14
+ * SourceStage Serializer
15
+ * @export
16
+ * @interface PatchedSourceStageRequest
17
+ */
18
+ export interface PatchedSourceStageRequest {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof PatchedSourceStageRequest
23
+ */
24
+ name?: string;
25
+ /**
26
+ *
27
+ * @type {Array<FlowSetRequest>}
28
+ * @memberof PatchedSourceStageRequest
29
+ */
30
+ flowSet?: Array<FlowSetRequest>;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof PatchedSourceStageRequest
35
+ */
36
+ source?: string;
37
+ /**
38
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
39
+ * @type {string}
40
+ * @memberof PatchedSourceStageRequest
41
+ */
42
+ resumeTimeout?: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the PatchedSourceStageRequest interface.
46
+ */
47
+ export declare function instanceOfPatchedSourceStageRequest(value: object): boolean;
48
+ export declare function PatchedSourceStageRequestFromJSON(json: any): PatchedSourceStageRequest;
49
+ export declare function PatchedSourceStageRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedSourceStageRequest;
50
+ export declare function PatchedSourceStageRequestToJSON(value?: PatchedSourceStageRequest | null): any;
@@ -0,0 +1,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * authentik
5
+ * Making authentication simple.
6
+ *
7
+ * The version of the OpenAPI document: 2024.2.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
+ import { exists } from '../runtime';
15
+ import { FlowSetRequestFromJSON, FlowSetRequestToJSON, } from './FlowSetRequest';
16
+ /**
17
+ * Check if a given object implements the PatchedSourceStageRequest interface.
18
+ */
19
+ export function instanceOfPatchedSourceStageRequest(value) {
20
+ let isInstance = true;
21
+ return isInstance;
22
+ }
23
+ export function PatchedSourceStageRequestFromJSON(json) {
24
+ return PatchedSourceStageRequestFromJSONTyped(json, false);
25
+ }
26
+ export function PatchedSourceStageRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'name': !exists(json, 'name') ? undefined : json['name'],
32
+ 'flowSet': !exists(json, 'flow_set') ? undefined : (json['flow_set'].map(FlowSetRequestFromJSON)),
33
+ 'source': !exists(json, 'source') ? undefined : json['source'],
34
+ 'resumeTimeout': !exists(json, 'resume_timeout') ? undefined : json['resume_timeout'],
35
+ };
36
+ }
37
+ export function PatchedSourceStageRequestToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'name': value.name,
46
+ 'flow_set': value.flowSet === undefined ? undefined : (value.flowSet.map(FlowSetRequestToJSON)),
47
+ 'source': value.source,
48
+ 'resume_timeout': value.resumeTimeout,
49
+ };
50
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * authentik
3
+ * Making authentication simple.
4
+ *
5
+ * The version of the OpenAPI document: 2024.2.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
+ import type { FlowSet } from './FlowSet';
13
+ /**
14
+ * SourceStage Serializer
15
+ * @export
16
+ * @interface SourceStage
17
+ */
18
+ export interface SourceStage {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof SourceStage
23
+ */
24
+ readonly pk: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof SourceStage
29
+ */
30
+ name: string;
31
+ /**
32
+ * Get object type so that we know how to edit the object
33
+ * @type {string}
34
+ * @memberof SourceStage
35
+ */
36
+ readonly component: string;
37
+ /**
38
+ * Return object's verbose_name
39
+ * @type {string}
40
+ * @memberof SourceStage
41
+ */
42
+ readonly verboseName: string;
43
+ /**
44
+ * Return object's plural verbose_name
45
+ * @type {string}
46
+ * @memberof SourceStage
47
+ */
48
+ readonly verboseNamePlural: string;
49
+ /**
50
+ * Return internal model name
51
+ * @type {string}
52
+ * @memberof SourceStage
53
+ */
54
+ readonly metaModelName: string;
55
+ /**
56
+ *
57
+ * @type {Array<FlowSet>}
58
+ * @memberof SourceStage
59
+ */
60
+ flowSet?: Array<FlowSet>;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof SourceStage
65
+ */
66
+ source: string;
67
+ /**
68
+ * Amount of time a user can take to return from the source to continue the flow (Format: hours=-1;minutes=-2;seconds=-3)
69
+ * @type {string}
70
+ * @memberof SourceStage
71
+ */
72
+ resumeTimeout?: string;
73
+ }
74
+ /**
75
+ * Check if a given object implements the SourceStage interface.
76
+ */
77
+ export declare function instanceOfSourceStage(value: object): boolean;
78
+ export declare function SourceStageFromJSON(json: any): SourceStage;
79
+ export declare function SourceStageFromJSONTyped(json: any, ignoreDiscriminator: boolean): SourceStage;
80
+ export declare function SourceStageToJSON(value?: SourceStage | null): any;