@goauthentik/api 2025.12.0-rc1-1764545300 → 2025.12.0-rc1-1764697794
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.
- package/.openapi-generator/FILES +1 -1
- package/dist/apis/AdminApi.d.ts +64 -1
- package/dist/apis/AdminApi.d.ts.map +1 -1
- package/dist/apis/AdminApi.js +173 -1
- package/dist/apis/AdminApi.js.map +1 -1
- package/dist/apis/CoreApi.d.ts +1 -26
- package/dist/apis/CoreApi.d.ts.map +1 -1
- package/dist/apis/CoreApi.js +0 -91
- package/dist/apis/CoreApi.js.map +1 -1
- package/dist/apis/FlowsApi.d.ts +1 -26
- package/dist/apis/FlowsApi.d.ts.map +1 -1
- package/dist/apis/FlowsApi.js +0 -91
- package/dist/apis/FlowsApi.js.map +1 -1
- package/dist/apis/SourcesApi.d.ts +1 -26
- package/dist/apis/SourcesApi.d.ts.map +1 -1
- package/dist/apis/SourcesApi.js +0 -91
- package/dist/apis/SourcesApi.js.map +1 -1
- package/dist/esm/apis/AdminApi.d.ts +64 -1
- package/dist/esm/apis/AdminApi.d.ts.map +1 -1
- package/dist/esm/apis/AdminApi.js +173 -1
- package/dist/esm/apis/AdminApi.js.map +1 -1
- package/dist/esm/apis/CoreApi.d.ts +1 -26
- package/dist/esm/apis/CoreApi.d.ts.map +1 -1
- package/dist/esm/apis/CoreApi.js +0 -91
- package/dist/esm/apis/CoreApi.js.map +1 -1
- package/dist/esm/apis/FlowsApi.d.ts +1 -26
- package/dist/esm/apis/FlowsApi.d.ts.map +1 -1
- package/dist/esm/apis/FlowsApi.js +0 -91
- package/dist/esm/apis/FlowsApi.js.map +1 -1
- package/dist/esm/apis/SourcesApi.d.ts +1 -26
- package/dist/esm/apis/SourcesApi.d.ts.map +1 -1
- package/dist/esm/apis/SourcesApi.js +0 -91
- package/dist/esm/apis/SourcesApi.js.map +1 -1
- package/dist/esm/models/AppEnum.d.ts +1 -0
- package/dist/esm/models/AppEnum.d.ts.map +1 -1
- package/dist/esm/models/AppEnum.js +1 -0
- package/dist/esm/models/AppEnum.js.map +1 -1
- package/dist/esm/models/Application.d.ts +9 -4
- package/dist/esm/models/Application.d.ts.map +1 -1
- package/dist/esm/models/Application.js +4 -2
- package/dist/esm/models/Application.js.map +1 -1
- package/dist/esm/models/ApplicationRequest.d.ts +6 -0
- package/dist/esm/models/ApplicationRequest.d.ts.map +1 -1
- package/dist/esm/models/ApplicationRequest.js +2 -0
- package/dist/esm/models/ApplicationRequest.js.map +1 -1
- package/dist/esm/models/FileList.d.ts +45 -0
- package/dist/esm/models/FileList.d.ts.map +1 -0
- package/dist/esm/models/FileList.js +59 -0
- package/dist/esm/models/FileList.js.map +1 -0
- package/dist/esm/models/Flow.d.ts +9 -4
- package/dist/esm/models/Flow.d.ts.map +1 -1
- package/dist/esm/models/Flow.js +4 -2
- package/dist/esm/models/Flow.js.map +1 -1
- package/dist/esm/models/FlowRequest.d.ts +6 -0
- package/dist/esm/models/FlowRequest.d.ts.map +1 -1
- package/dist/esm/models/FlowRequest.js +2 -0
- package/dist/esm/models/FlowRequest.js.map +1 -1
- package/dist/esm/models/FlowSet.d.ts +3 -4
- package/dist/esm/models/FlowSet.d.ts.map +1 -1
- package/dist/esm/models/FlowSet.js +2 -2
- package/dist/esm/models/FlowSet.js.map +1 -1
- package/dist/esm/models/KerberosSource.d.ts +8 -2
- package/dist/esm/models/KerberosSource.d.ts.map +1 -1
- package/dist/esm/models/KerberosSource.js +4 -2
- package/dist/esm/models/KerberosSource.js.map +1 -1
- package/dist/esm/models/KerberosSourceRequest.d.ts +6 -0
- package/dist/esm/models/KerberosSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/KerberosSourceRequest.js +2 -0
- package/dist/esm/models/KerberosSourceRequest.js.map +1 -1
- package/dist/esm/models/LDAPSource.d.ts +8 -2
- package/dist/esm/models/LDAPSource.d.ts.map +1 -1
- package/dist/esm/models/LDAPSource.js +4 -2
- package/dist/esm/models/LDAPSource.js.map +1 -1
- package/dist/esm/models/LDAPSourceRequest.d.ts +6 -0
- package/dist/esm/models/LDAPSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/LDAPSourceRequest.js +2 -0
- package/dist/esm/models/LDAPSourceRequest.js.map +1 -1
- package/dist/esm/models/OAuthSource.d.ts +8 -2
- package/dist/esm/models/OAuthSource.d.ts.map +1 -1
- package/dist/esm/models/OAuthSource.js +4 -2
- package/dist/esm/models/OAuthSource.js.map +1 -1
- package/dist/esm/models/OAuthSourceRequest.d.ts +6 -0
- package/dist/esm/models/OAuthSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/OAuthSourceRequest.js +2 -0
- package/dist/esm/models/OAuthSourceRequest.js.map +1 -1
- package/dist/esm/models/PatchedApplicationRequest.d.ts +6 -0
- package/dist/esm/models/PatchedApplicationRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedApplicationRequest.js +2 -0
- package/dist/esm/models/PatchedApplicationRequest.js.map +1 -1
- package/dist/esm/models/PatchedFlowRequest.d.ts +6 -0
- package/dist/esm/models/PatchedFlowRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedFlowRequest.js +2 -0
- package/dist/esm/models/PatchedFlowRequest.js.map +1 -1
- package/dist/esm/models/PatchedKerberosSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedKerberosSourceRequest.js +2 -0
- package/dist/esm/models/PatchedKerberosSourceRequest.js.map +1 -1
- package/dist/esm/models/PatchedLDAPSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedLDAPSourceRequest.js +2 -0
- package/dist/esm/models/PatchedLDAPSourceRequest.js.map +1 -1
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedOAuthSourceRequest.js +2 -0
- package/dist/esm/models/PatchedOAuthSourceRequest.js.map +1 -1
- package/dist/esm/models/PatchedPlexSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedPlexSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedPlexSourceRequest.js +2 -0
- package/dist/esm/models/PatchedPlexSourceRequest.js.map +1 -1
- package/dist/esm/models/PatchedSAMLSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedSAMLSourceRequest.js +2 -0
- package/dist/esm/models/PatchedSAMLSourceRequest.js.map +1 -1
- package/dist/esm/models/PatchedTelegramSourceRequest.d.ts +6 -0
- package/dist/esm/models/PatchedTelegramSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PatchedTelegramSourceRequest.js +2 -0
- package/dist/esm/models/PatchedTelegramSourceRequest.js.map +1 -1
- package/dist/esm/models/PlexSource.d.ts +8 -2
- package/dist/esm/models/PlexSource.d.ts.map +1 -1
- package/dist/esm/models/PlexSource.js +4 -2
- package/dist/esm/models/PlexSource.js.map +1 -1
- package/dist/esm/models/PlexSourceRequest.d.ts +6 -0
- package/dist/esm/models/PlexSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/PlexSourceRequest.js +2 -0
- package/dist/esm/models/PlexSourceRequest.js.map +1 -1
- package/dist/esm/models/ProviderTypeEnum.d.ts +1 -0
- package/dist/esm/models/ProviderTypeEnum.d.ts.map +1 -1
- package/dist/esm/models/ProviderTypeEnum.js +1 -0
- package/dist/esm/models/ProviderTypeEnum.js.map +1 -1
- package/dist/esm/models/SAMLSource.d.ts +8 -2
- package/dist/esm/models/SAMLSource.d.ts.map +1 -1
- package/dist/esm/models/SAMLSource.js +4 -2
- package/dist/esm/models/SAMLSource.js.map +1 -1
- package/dist/esm/models/SAMLSourceRequest.d.ts +6 -0
- package/dist/esm/models/SAMLSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/SAMLSourceRequest.js +2 -0
- package/dist/esm/models/SAMLSourceRequest.js.map +1 -1
- package/dist/esm/models/Source.d.ts +9 -4
- package/dist/esm/models/Source.d.ts.map +1 -1
- package/dist/esm/models/Source.js +4 -2
- package/dist/esm/models/Source.js.map +1 -1
- package/dist/esm/models/TelegramSource.d.ts +8 -2
- package/dist/esm/models/TelegramSource.d.ts.map +1 -1
- package/dist/esm/models/TelegramSource.js +4 -2
- package/dist/esm/models/TelegramSource.js.map +1 -1
- package/dist/esm/models/TelegramSourceRequest.d.ts +6 -0
- package/dist/esm/models/TelegramSourceRequest.d.ts.map +1 -1
- package/dist/esm/models/TelegramSourceRequest.js +2 -0
- package/dist/esm/models/TelegramSourceRequest.js.map +1 -1
- package/dist/esm/models/UsedByActionEnum.d.ts +1 -0
- package/dist/esm/models/UsedByActionEnum.d.ts.map +1 -1
- package/dist/esm/models/UsedByActionEnum.js +1 -0
- package/dist/esm/models/UsedByActionEnum.js.map +1 -1
- package/dist/esm/models/index.d.ts +1 -1
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/models/AppEnum.d.ts +1 -0
- package/dist/models/AppEnum.d.ts.map +1 -1
- package/dist/models/AppEnum.js +1 -0
- package/dist/models/AppEnum.js.map +1 -1
- package/dist/models/Application.d.ts +9 -4
- package/dist/models/Application.d.ts.map +1 -1
- package/dist/models/Application.js +4 -2
- package/dist/models/Application.js.map +1 -1
- package/dist/models/ApplicationRequest.d.ts +6 -0
- package/dist/models/ApplicationRequest.d.ts.map +1 -1
- package/dist/models/ApplicationRequest.js +2 -0
- package/dist/models/ApplicationRequest.js.map +1 -1
- package/dist/models/FileList.d.ts +45 -0
- package/dist/models/FileList.d.ts.map +1 -0
- package/dist/models/FileList.js +59 -0
- package/dist/models/FileList.js.map +1 -0
- package/dist/models/Flow.d.ts +9 -4
- package/dist/models/Flow.d.ts.map +1 -1
- package/dist/models/Flow.js +4 -2
- package/dist/models/Flow.js.map +1 -1
- package/dist/models/FlowRequest.d.ts +6 -0
- package/dist/models/FlowRequest.d.ts.map +1 -1
- package/dist/models/FlowRequest.js +2 -0
- package/dist/models/FlowRequest.js.map +1 -1
- package/dist/models/FlowSet.d.ts +3 -4
- package/dist/models/FlowSet.d.ts.map +1 -1
- package/dist/models/FlowSet.js +2 -2
- package/dist/models/FlowSet.js.map +1 -1
- package/dist/models/KerberosSource.d.ts +8 -2
- package/dist/models/KerberosSource.d.ts.map +1 -1
- package/dist/models/KerberosSource.js +4 -2
- package/dist/models/KerberosSource.js.map +1 -1
- package/dist/models/KerberosSourceRequest.d.ts +6 -0
- package/dist/models/KerberosSourceRequest.d.ts.map +1 -1
- package/dist/models/KerberosSourceRequest.js +2 -0
- package/dist/models/KerberosSourceRequest.js.map +1 -1
- package/dist/models/LDAPSource.d.ts +8 -2
- package/dist/models/LDAPSource.d.ts.map +1 -1
- package/dist/models/LDAPSource.js +4 -2
- package/dist/models/LDAPSource.js.map +1 -1
- package/dist/models/LDAPSourceRequest.d.ts +6 -0
- package/dist/models/LDAPSourceRequest.d.ts.map +1 -1
- package/dist/models/LDAPSourceRequest.js +2 -0
- package/dist/models/LDAPSourceRequest.js.map +1 -1
- package/dist/models/OAuthSource.d.ts +8 -2
- package/dist/models/OAuthSource.d.ts.map +1 -1
- package/dist/models/OAuthSource.js +4 -2
- package/dist/models/OAuthSource.js.map +1 -1
- package/dist/models/OAuthSourceRequest.d.ts +6 -0
- package/dist/models/OAuthSourceRequest.d.ts.map +1 -1
- package/dist/models/OAuthSourceRequest.js +2 -0
- package/dist/models/OAuthSourceRequest.js.map +1 -1
- package/dist/models/PatchedApplicationRequest.d.ts +6 -0
- package/dist/models/PatchedApplicationRequest.d.ts.map +1 -1
- package/dist/models/PatchedApplicationRequest.js +2 -0
- package/dist/models/PatchedApplicationRequest.js.map +1 -1
- package/dist/models/PatchedFlowRequest.d.ts +6 -0
- package/dist/models/PatchedFlowRequest.d.ts.map +1 -1
- package/dist/models/PatchedFlowRequest.js +2 -0
- package/dist/models/PatchedFlowRequest.js.map +1 -1
- package/dist/models/PatchedKerberosSourceRequest.d.ts +6 -0
- package/dist/models/PatchedKerberosSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedKerberosSourceRequest.js +2 -0
- package/dist/models/PatchedKerberosSourceRequest.js.map +1 -1
- package/dist/models/PatchedLDAPSourceRequest.d.ts +6 -0
- package/dist/models/PatchedLDAPSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedLDAPSourceRequest.js +2 -0
- package/dist/models/PatchedLDAPSourceRequest.js.map +1 -1
- package/dist/models/PatchedOAuthSourceRequest.d.ts +6 -0
- package/dist/models/PatchedOAuthSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedOAuthSourceRequest.js +2 -0
- package/dist/models/PatchedOAuthSourceRequest.js.map +1 -1
- package/dist/models/PatchedPlexSourceRequest.d.ts +6 -0
- package/dist/models/PatchedPlexSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedPlexSourceRequest.js +2 -0
- package/dist/models/PatchedPlexSourceRequest.js.map +1 -1
- package/dist/models/PatchedSAMLSourceRequest.d.ts +6 -0
- package/dist/models/PatchedSAMLSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedSAMLSourceRequest.js +2 -0
- package/dist/models/PatchedSAMLSourceRequest.js.map +1 -1
- package/dist/models/PatchedTelegramSourceRequest.d.ts +6 -0
- package/dist/models/PatchedTelegramSourceRequest.d.ts.map +1 -1
- package/dist/models/PatchedTelegramSourceRequest.js +2 -0
- package/dist/models/PatchedTelegramSourceRequest.js.map +1 -1
- package/dist/models/PlexSource.d.ts +8 -2
- package/dist/models/PlexSource.d.ts.map +1 -1
- package/dist/models/PlexSource.js +4 -2
- package/dist/models/PlexSource.js.map +1 -1
- package/dist/models/PlexSourceRequest.d.ts +6 -0
- package/dist/models/PlexSourceRequest.d.ts.map +1 -1
- package/dist/models/PlexSourceRequest.js +2 -0
- package/dist/models/PlexSourceRequest.js.map +1 -1
- package/dist/models/ProviderTypeEnum.d.ts +1 -0
- package/dist/models/ProviderTypeEnum.d.ts.map +1 -1
- package/dist/models/ProviderTypeEnum.js +1 -0
- package/dist/models/ProviderTypeEnum.js.map +1 -1
- package/dist/models/SAMLSource.d.ts +8 -2
- package/dist/models/SAMLSource.d.ts.map +1 -1
- package/dist/models/SAMLSource.js +4 -2
- package/dist/models/SAMLSource.js.map +1 -1
- package/dist/models/SAMLSourceRequest.d.ts +6 -0
- package/dist/models/SAMLSourceRequest.d.ts.map +1 -1
- package/dist/models/SAMLSourceRequest.js +2 -0
- package/dist/models/SAMLSourceRequest.js.map +1 -1
- package/dist/models/Source.d.ts +9 -4
- package/dist/models/Source.d.ts.map +1 -1
- package/dist/models/Source.js +4 -2
- package/dist/models/Source.js.map +1 -1
- package/dist/models/TelegramSource.d.ts +8 -2
- package/dist/models/TelegramSource.d.ts.map +1 -1
- package/dist/models/TelegramSource.js +4 -2
- package/dist/models/TelegramSource.js.map +1 -1
- package/dist/models/TelegramSourceRequest.d.ts +6 -0
- package/dist/models/TelegramSourceRequest.d.ts.map +1 -1
- package/dist/models/TelegramSourceRequest.js +2 -0
- package/dist/models/TelegramSourceRequest.js.map +1 -1
- package/dist/models/UsedByActionEnum.d.ts +1 -0
- package/dist/models/UsedByActionEnum.d.ts.map +1 -1
- package/dist/models/UsedByActionEnum.js +1 -0
- package/dist/models/UsedByActionEnum.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/apis/AdminApi.ts +248 -0
- package/src/apis/CoreApi.ts +0 -137
- package/src/apis/FlowsApi.ts +0 -137
- package/src/apis/SourcesApi.ts +0 -137
- package/src/models/AppEnum.ts +1 -0
- package/src/models/Application.ts +13 -6
- package/src/models/ApplicationRequest.ts +8 -0
- package/src/models/FileList.ts +84 -0
- package/src/models/Flow.ts +13 -6
- package/src/models/FlowRequest.ts +8 -0
- package/src/models/FlowSet.ts +5 -6
- package/src/models/KerberosSource.ts +12 -4
- package/src/models/KerberosSourceRequest.ts +8 -0
- package/src/models/LDAPSource.ts +12 -4
- package/src/models/LDAPSourceRequest.ts +8 -0
- package/src/models/OAuthSource.ts +12 -4
- package/src/models/OAuthSourceRequest.ts +8 -0
- package/src/models/PatchedApplicationRequest.ts +8 -0
- package/src/models/PatchedFlowRequest.ts +8 -0
- package/src/models/PatchedKerberosSourceRequest.ts +8 -0
- package/src/models/PatchedLDAPSourceRequest.ts +8 -0
- package/src/models/PatchedOAuthSourceRequest.ts +8 -0
- package/src/models/PatchedPlexSourceRequest.ts +8 -0
- package/src/models/PatchedSAMLSourceRequest.ts +8 -0
- package/src/models/PatchedTelegramSourceRequest.ts +8 -0
- package/src/models/PlexSource.ts +12 -4
- package/src/models/PlexSourceRequest.ts +8 -0
- package/src/models/ProviderTypeEnum.ts +1 -0
- package/src/models/SAMLSource.ts +12 -4
- package/src/models/SAMLSourceRequest.ts +8 -0
- package/src/models/Source.ts +13 -6
- package/src/models/TelegramSource.ts +12 -4
- package/src/models/TelegramSourceRequest.ts +8 -0
- package/src/models/UsedByActionEnum.ts +1 -0
- package/src/models/index.ts +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/esm/models/FilePathRequest.d.ts +0 -33
- package/dist/esm/models/FilePathRequest.d.ts.map +0 -1
- package/dist/esm/models/FilePathRequest.js +0 -51
- package/dist/esm/models/FilePathRequest.js.map +0 -1
- package/dist/models/FilePathRequest.d.ts +0 -33
- package/dist/models/FilePathRequest.d.ts.map +0 -1
- package/dist/models/FilePathRequest.js +0 -51
- package/dist/models/FilePathRequest.js.map +0 -1
- package/src/models/FilePathRequest.ts +0 -66
package/package.json
CHANGED
package/src/apis/AdminApi.ts
CHANGED
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
App,
|
|
19
|
+
FileList,
|
|
19
20
|
GenericError,
|
|
20
21
|
PatchedSettingsRequest,
|
|
21
22
|
Settings,
|
|
22
23
|
SettingsRequest,
|
|
23
24
|
SystemInfo,
|
|
25
|
+
UsedBy,
|
|
24
26
|
ValidationError,
|
|
25
27
|
Version,
|
|
26
28
|
VersionHistory,
|
|
@@ -28,6 +30,8 @@ import type {
|
|
|
28
30
|
import {
|
|
29
31
|
AppFromJSON,
|
|
30
32
|
AppToJSON,
|
|
33
|
+
FileListFromJSON,
|
|
34
|
+
FileListToJSON,
|
|
31
35
|
GenericErrorFromJSON,
|
|
32
36
|
GenericErrorToJSON,
|
|
33
37
|
PatchedSettingsRequestFromJSON,
|
|
@@ -38,6 +42,8 @@ import {
|
|
|
38
42
|
SettingsRequestToJSON,
|
|
39
43
|
SystemInfoFromJSON,
|
|
40
44
|
SystemInfoToJSON,
|
|
45
|
+
UsedByFromJSON,
|
|
46
|
+
UsedByToJSON,
|
|
41
47
|
ValidationErrorFromJSON,
|
|
42
48
|
ValidationErrorToJSON,
|
|
43
49
|
VersionFromJSON,
|
|
@@ -46,6 +52,27 @@ import {
|
|
|
46
52
|
VersionHistoryToJSON,
|
|
47
53
|
} from '../models/index';
|
|
48
54
|
|
|
55
|
+
export interface AdminFileCreateRequest {
|
|
56
|
+
file: Blob;
|
|
57
|
+
name?: string;
|
|
58
|
+
usage?: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface AdminFileDestroyRequest {
|
|
62
|
+
name?: string;
|
|
63
|
+
usage?: AdminFileDestroyUsageEnum;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export interface AdminFileListRequest {
|
|
67
|
+
manageableOnly?: boolean;
|
|
68
|
+
search?: string;
|
|
69
|
+
usage?: AdminFileListUsageEnum;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface AdminFileUsedByListRequest {
|
|
73
|
+
name?: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
49
76
|
export interface AdminSettingsPartialUpdateRequest {
|
|
50
77
|
patchedSettingsRequest?: PatchedSettingsRequest;
|
|
51
78
|
}
|
|
@@ -107,6 +134,210 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
107
134
|
return await response.value();
|
|
108
135
|
}
|
|
109
136
|
|
|
137
|
+
/**
|
|
138
|
+
* Upload file to storage backend.
|
|
139
|
+
*/
|
|
140
|
+
async adminFileCreateRaw(requestParameters: AdminFileCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
141
|
+
if (requestParameters['file'] == null) {
|
|
142
|
+
throw new runtime.RequiredError(
|
|
143
|
+
'file',
|
|
144
|
+
'Required parameter "file" was null or undefined when calling adminFileCreate().'
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
const queryParameters: any = {};
|
|
149
|
+
|
|
150
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
151
|
+
|
|
152
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
153
|
+
const token = this.configuration.accessToken;
|
|
154
|
+
const tokenString = await token("authentik", []);
|
|
155
|
+
|
|
156
|
+
if (tokenString) {
|
|
157
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
const consumes: runtime.Consume[] = [
|
|
161
|
+
{ contentType: 'multipart/form-data' },
|
|
162
|
+
];
|
|
163
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
164
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
165
|
+
|
|
166
|
+
let formParams: { append(param: string, value: any): any };
|
|
167
|
+
let useForm = false;
|
|
168
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
169
|
+
useForm = canConsumeForm;
|
|
170
|
+
if (useForm) {
|
|
171
|
+
formParams = new FormData();
|
|
172
|
+
} else {
|
|
173
|
+
formParams = new URLSearchParams();
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (requestParameters['file'] != null) {
|
|
177
|
+
formParams.append('file', requestParameters['file'] as any);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
if (requestParameters['name'] != null) {
|
|
181
|
+
formParams.append('name', requestParameters['name'] as any);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
if (requestParameters['usage'] != null) {
|
|
185
|
+
formParams.append('usage', requestParameters['usage'] as any);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
let urlPath = `/admin/file/`;
|
|
190
|
+
|
|
191
|
+
const response = await this.request({
|
|
192
|
+
path: urlPath,
|
|
193
|
+
method: 'POST',
|
|
194
|
+
headers: headerParameters,
|
|
195
|
+
query: queryParameters,
|
|
196
|
+
body: formParams,
|
|
197
|
+
}, initOverrides);
|
|
198
|
+
|
|
199
|
+
return new runtime.VoidApiResponse(response);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Upload file to storage backend.
|
|
204
|
+
*/
|
|
205
|
+
async adminFileCreate(requestParameters: AdminFileCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
206
|
+
await this.adminFileCreateRaw(requestParameters, initOverrides);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Delete file from storage backend.
|
|
211
|
+
*/
|
|
212
|
+
async adminFileDestroyRaw(requestParameters: AdminFileDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
213
|
+
const queryParameters: any = {};
|
|
214
|
+
|
|
215
|
+
if (requestParameters['name'] != null) {
|
|
216
|
+
queryParameters['name'] = requestParameters['name'];
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (requestParameters['usage'] != null) {
|
|
220
|
+
queryParameters['usage'] = requestParameters['usage'];
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
224
|
+
|
|
225
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
226
|
+
const token = this.configuration.accessToken;
|
|
227
|
+
const tokenString = await token("authentik", []);
|
|
228
|
+
|
|
229
|
+
if (tokenString) {
|
|
230
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
let urlPath = `/admin/file/`;
|
|
235
|
+
|
|
236
|
+
const response = await this.request({
|
|
237
|
+
path: urlPath,
|
|
238
|
+
method: 'DELETE',
|
|
239
|
+
headers: headerParameters,
|
|
240
|
+
query: queryParameters,
|
|
241
|
+
}, initOverrides);
|
|
242
|
+
|
|
243
|
+
return new runtime.VoidApiResponse(response);
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Delete file from storage backend.
|
|
248
|
+
*/
|
|
249
|
+
async adminFileDestroy(requestParameters: AdminFileDestroyRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
250
|
+
await this.adminFileDestroyRaw(requestParameters, initOverrides);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* List files from storage backend.
|
|
255
|
+
*/
|
|
256
|
+
async adminFileListRaw(requestParameters: AdminFileListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<FileList>>> {
|
|
257
|
+
const queryParameters: any = {};
|
|
258
|
+
|
|
259
|
+
if (requestParameters['manageableOnly'] != null) {
|
|
260
|
+
queryParameters['manageable_only'] = requestParameters['manageableOnly'];
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (requestParameters['search'] != null) {
|
|
264
|
+
queryParameters['search'] = requestParameters['search'];
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
if (requestParameters['usage'] != null) {
|
|
268
|
+
queryParameters['usage'] = requestParameters['usage'];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
272
|
+
|
|
273
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
274
|
+
const token = this.configuration.accessToken;
|
|
275
|
+
const tokenString = await token("authentik", []);
|
|
276
|
+
|
|
277
|
+
if (tokenString) {
|
|
278
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
let urlPath = `/admin/file/`;
|
|
283
|
+
|
|
284
|
+
const response = await this.request({
|
|
285
|
+
path: urlPath,
|
|
286
|
+
method: 'GET',
|
|
287
|
+
headers: headerParameters,
|
|
288
|
+
query: queryParameters,
|
|
289
|
+
}, initOverrides);
|
|
290
|
+
|
|
291
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(FileListFromJSON));
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* List files from storage backend.
|
|
296
|
+
*/
|
|
297
|
+
async adminFileList(requestParameters: AdminFileListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<FileList>> {
|
|
298
|
+
const response = await this.adminFileListRaw(requestParameters, initOverrides);
|
|
299
|
+
return await response.value();
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
*/
|
|
304
|
+
async adminFileUsedByListRaw(requestParameters: AdminFileUsedByListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UsedBy>>> {
|
|
305
|
+
const queryParameters: any = {};
|
|
306
|
+
|
|
307
|
+
if (requestParameters['name'] != null) {
|
|
308
|
+
queryParameters['name'] = requestParameters['name'];
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
312
|
+
|
|
313
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
314
|
+
const token = this.configuration.accessToken;
|
|
315
|
+
const tokenString = await token("authentik", []);
|
|
316
|
+
|
|
317
|
+
if (tokenString) {
|
|
318
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
let urlPath = `/admin/file/used_by/`;
|
|
323
|
+
|
|
324
|
+
const response = await this.request({
|
|
325
|
+
path: urlPath,
|
|
326
|
+
method: 'GET',
|
|
327
|
+
headers: headerParameters,
|
|
328
|
+
query: queryParameters,
|
|
329
|
+
}, initOverrides);
|
|
330
|
+
|
|
331
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UsedByFromJSON));
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
*/
|
|
336
|
+
async adminFileUsedByList(requestParameters: AdminFileUsedByListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UsedBy>> {
|
|
337
|
+
const response = await this.adminFileUsedByListRaw(requestParameters, initOverrides);
|
|
338
|
+
return await response.value();
|
|
339
|
+
}
|
|
340
|
+
|
|
110
341
|
/**
|
|
111
342
|
* Read-only view list all installed models
|
|
112
343
|
*/
|
|
@@ -478,3 +709,20 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
478
709
|
}
|
|
479
710
|
|
|
480
711
|
}
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* @export
|
|
715
|
+
*/
|
|
716
|
+
export const AdminFileDestroyUsageEnum = {
|
|
717
|
+
Media: 'media',
|
|
718
|
+
UnknownDefaultOpenApi: '11184809'
|
|
719
|
+
} as const;
|
|
720
|
+
export type AdminFileDestroyUsageEnum = typeof AdminFileDestroyUsageEnum[keyof typeof AdminFileDestroyUsageEnum];
|
|
721
|
+
/**
|
|
722
|
+
* @export
|
|
723
|
+
*/
|
|
724
|
+
export const AdminFileListUsageEnum = {
|
|
725
|
+
Media: 'media',
|
|
726
|
+
UnknownDefaultOpenApi: '11184809'
|
|
727
|
+
} as const;
|
|
728
|
+
export type AdminFileListUsageEnum = typeof AdminFileListUsageEnum[keyof typeof AdminFileListUsageEnum];
|
package/src/apis/CoreApi.ts
CHANGED
|
@@ -23,7 +23,6 @@ import type {
|
|
|
23
23
|
Brand,
|
|
24
24
|
BrandRequest,
|
|
25
25
|
CurrentBrand,
|
|
26
|
-
FilePathRequest,
|
|
27
26
|
GenericError,
|
|
28
27
|
Group,
|
|
29
28
|
GroupRequest,
|
|
@@ -79,8 +78,6 @@ import {
|
|
|
79
78
|
BrandRequestToJSON,
|
|
80
79
|
CurrentBrandFromJSON,
|
|
81
80
|
CurrentBrandToJSON,
|
|
82
|
-
FilePathRequestFromJSON,
|
|
83
|
-
FilePathRequestToJSON,
|
|
84
81
|
GenericErrorFromJSON,
|
|
85
82
|
GenericErrorToJSON,
|
|
86
83
|
GroupFromJSON,
|
|
@@ -231,17 +228,6 @@ export interface CoreApplicationsRetrieveRequest {
|
|
|
231
228
|
slug: string;
|
|
232
229
|
}
|
|
233
230
|
|
|
234
|
-
export interface CoreApplicationsSetIconCreateRequest {
|
|
235
|
-
slug: string;
|
|
236
|
-
file?: Blob;
|
|
237
|
-
clear?: boolean;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface CoreApplicationsSetIconUrlCreateRequest {
|
|
241
|
-
slug: string;
|
|
242
|
-
filePathRequest: FilePathRequest;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
231
|
export interface CoreApplicationsUpdateRequest {
|
|
246
232
|
slug: string;
|
|
247
233
|
applicationRequest: ApplicationRequest;
|
|
@@ -1202,129 +1188,6 @@ export class CoreApi extends runtime.BaseAPI {
|
|
|
1202
1188
|
return await response.value();
|
|
1203
1189
|
}
|
|
1204
1190
|
|
|
1205
|
-
/**
|
|
1206
|
-
* Set application icon
|
|
1207
|
-
*/
|
|
1208
|
-
async coreApplicationsSetIconCreateRaw(requestParameters: CoreApplicationsSetIconCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1209
|
-
if (requestParameters['slug'] == null) {
|
|
1210
|
-
throw new runtime.RequiredError(
|
|
1211
|
-
'slug',
|
|
1212
|
-
'Required parameter "slug" was null or undefined when calling coreApplicationsSetIconCreate().'
|
|
1213
|
-
);
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
const queryParameters: any = {};
|
|
1217
|
-
|
|
1218
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1219
|
-
|
|
1220
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1221
|
-
const token = this.configuration.accessToken;
|
|
1222
|
-
const tokenString = await token("authentik", []);
|
|
1223
|
-
|
|
1224
|
-
if (tokenString) {
|
|
1225
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
const consumes: runtime.Consume[] = [
|
|
1229
|
-
{ contentType: 'multipart/form-data' },
|
|
1230
|
-
];
|
|
1231
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
1232
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1233
|
-
|
|
1234
|
-
let formParams: { append(param: string, value: any): any };
|
|
1235
|
-
let useForm = false;
|
|
1236
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1237
|
-
useForm = canConsumeForm;
|
|
1238
|
-
if (useForm) {
|
|
1239
|
-
formParams = new FormData();
|
|
1240
|
-
} else {
|
|
1241
|
-
formParams = new URLSearchParams();
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
if (requestParameters['file'] != null) {
|
|
1245
|
-
formParams.append('file', requestParameters['file'] as any);
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
if (requestParameters['clear'] != null) {
|
|
1249
|
-
formParams.append('clear', requestParameters['clear'] as any);
|
|
1250
|
-
}
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
let urlPath = `/core/applications/{slug}/set_icon/`;
|
|
1254
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
1255
|
-
|
|
1256
|
-
const response = await this.request({
|
|
1257
|
-
path: urlPath,
|
|
1258
|
-
method: 'POST',
|
|
1259
|
-
headers: headerParameters,
|
|
1260
|
-
query: queryParameters,
|
|
1261
|
-
body: formParams,
|
|
1262
|
-
}, initOverrides);
|
|
1263
|
-
|
|
1264
|
-
return new runtime.VoidApiResponse(response);
|
|
1265
|
-
}
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* Set application icon
|
|
1269
|
-
*/
|
|
1270
|
-
async coreApplicationsSetIconCreate(requestParameters: CoreApplicationsSetIconCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1271
|
-
await this.coreApplicationsSetIconCreateRaw(requestParameters, initOverrides);
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* Set application icon (as URL)
|
|
1276
|
-
*/
|
|
1277
|
-
async coreApplicationsSetIconUrlCreateRaw(requestParameters: CoreApplicationsSetIconUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1278
|
-
if (requestParameters['slug'] == null) {
|
|
1279
|
-
throw new runtime.RequiredError(
|
|
1280
|
-
'slug',
|
|
1281
|
-
'Required parameter "slug" was null or undefined when calling coreApplicationsSetIconUrlCreate().'
|
|
1282
|
-
);
|
|
1283
|
-
}
|
|
1284
|
-
|
|
1285
|
-
if (requestParameters['filePathRequest'] == null) {
|
|
1286
|
-
throw new runtime.RequiredError(
|
|
1287
|
-
'filePathRequest',
|
|
1288
|
-
'Required parameter "filePathRequest" was null or undefined when calling coreApplicationsSetIconUrlCreate().'
|
|
1289
|
-
);
|
|
1290
|
-
}
|
|
1291
|
-
|
|
1292
|
-
const queryParameters: any = {};
|
|
1293
|
-
|
|
1294
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1295
|
-
|
|
1296
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1297
|
-
|
|
1298
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1299
|
-
const token = this.configuration.accessToken;
|
|
1300
|
-
const tokenString = await token("authentik", []);
|
|
1301
|
-
|
|
1302
|
-
if (tokenString) {
|
|
1303
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1304
|
-
}
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
let urlPath = `/core/applications/{slug}/set_icon_url/`;
|
|
1308
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
1309
|
-
|
|
1310
|
-
const response = await this.request({
|
|
1311
|
-
path: urlPath,
|
|
1312
|
-
method: 'POST',
|
|
1313
|
-
headers: headerParameters,
|
|
1314
|
-
query: queryParameters,
|
|
1315
|
-
body: FilePathRequestToJSON(requestParameters['filePathRequest']),
|
|
1316
|
-
}, initOverrides);
|
|
1317
|
-
|
|
1318
|
-
return new runtime.VoidApiResponse(response);
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
/**
|
|
1322
|
-
* Set application icon (as URL)
|
|
1323
|
-
*/
|
|
1324
|
-
async coreApplicationsSetIconUrlCreate(requestParameters: CoreApplicationsSetIconUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1325
|
-
await this.coreApplicationsSetIconUrlCreateRaw(requestParameters, initOverrides);
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
1191
|
/**
|
|
1329
1192
|
* Application Viewset
|
|
1330
1193
|
*/
|
package/src/apis/FlowsApi.ts
CHANGED
|
@@ -17,7 +17,6 @@ import * as runtime from '../runtime';
|
|
|
17
17
|
import type {
|
|
18
18
|
Cache,
|
|
19
19
|
ChallengeTypes,
|
|
20
|
-
FilePathRequest,
|
|
21
20
|
Flow,
|
|
22
21
|
FlowChallengeResponseRequest,
|
|
23
22
|
FlowDiagram,
|
|
@@ -40,8 +39,6 @@ import {
|
|
|
40
39
|
CacheToJSON,
|
|
41
40
|
ChallengeTypesFromJSON,
|
|
42
41
|
ChallengeTypesToJSON,
|
|
43
|
-
FilePathRequestFromJSON,
|
|
44
|
-
FilePathRequestToJSON,
|
|
45
42
|
FlowFromJSON,
|
|
46
43
|
FlowToJSON,
|
|
47
44
|
FlowChallengeResponseRequestFromJSON,
|
|
@@ -180,17 +177,6 @@ export interface FlowsInstancesRetrieveRequest {
|
|
|
180
177
|
slug: string;
|
|
181
178
|
}
|
|
182
179
|
|
|
183
|
-
export interface FlowsInstancesSetBackgroundCreateRequest {
|
|
184
|
-
slug: string;
|
|
185
|
-
file?: Blob;
|
|
186
|
-
clear?: boolean;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
export interface FlowsInstancesSetBackgroundUrlCreateRequest {
|
|
190
|
-
slug: string;
|
|
191
|
-
filePathRequest: FilePathRequest;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
180
|
export interface FlowsInstancesUpdateRequest {
|
|
195
181
|
slug: string;
|
|
196
182
|
flowRequest: FlowRequest;
|
|
@@ -1269,129 +1255,6 @@ export class FlowsApi extends runtime.BaseAPI {
|
|
|
1269
1255
|
return await response.value();
|
|
1270
1256
|
}
|
|
1271
1257
|
|
|
1272
|
-
/**
|
|
1273
|
-
* Set Flow background
|
|
1274
|
-
*/
|
|
1275
|
-
async flowsInstancesSetBackgroundCreateRaw(requestParameters: FlowsInstancesSetBackgroundCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1276
|
-
if (requestParameters['slug'] == null) {
|
|
1277
|
-
throw new runtime.RequiredError(
|
|
1278
|
-
'slug',
|
|
1279
|
-
'Required parameter "slug" was null or undefined when calling flowsInstancesSetBackgroundCreate().'
|
|
1280
|
-
);
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
const queryParameters: any = {};
|
|
1284
|
-
|
|
1285
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1286
|
-
|
|
1287
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1288
|
-
const token = this.configuration.accessToken;
|
|
1289
|
-
const tokenString = await token("authentik", []);
|
|
1290
|
-
|
|
1291
|
-
if (tokenString) {
|
|
1292
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1295
|
-
const consumes: runtime.Consume[] = [
|
|
1296
|
-
{ contentType: 'multipart/form-data' },
|
|
1297
|
-
];
|
|
1298
|
-
// @ts-ignore: canConsumeForm may be unused
|
|
1299
|
-
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
1300
|
-
|
|
1301
|
-
let formParams: { append(param: string, value: any): any };
|
|
1302
|
-
let useForm = false;
|
|
1303
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
1304
|
-
useForm = canConsumeForm;
|
|
1305
|
-
if (useForm) {
|
|
1306
|
-
formParams = new FormData();
|
|
1307
|
-
} else {
|
|
1308
|
-
formParams = new URLSearchParams();
|
|
1309
|
-
}
|
|
1310
|
-
|
|
1311
|
-
if (requestParameters['file'] != null) {
|
|
1312
|
-
formParams.append('file', requestParameters['file'] as any);
|
|
1313
|
-
}
|
|
1314
|
-
|
|
1315
|
-
if (requestParameters['clear'] != null) {
|
|
1316
|
-
formParams.append('clear', requestParameters['clear'] as any);
|
|
1317
|
-
}
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
let urlPath = `/flows/instances/{slug}/set_background/`;
|
|
1321
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
1322
|
-
|
|
1323
|
-
const response = await this.request({
|
|
1324
|
-
path: urlPath,
|
|
1325
|
-
method: 'POST',
|
|
1326
|
-
headers: headerParameters,
|
|
1327
|
-
query: queryParameters,
|
|
1328
|
-
body: formParams,
|
|
1329
|
-
}, initOverrides);
|
|
1330
|
-
|
|
1331
|
-
return new runtime.VoidApiResponse(response);
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
/**
|
|
1335
|
-
* Set Flow background
|
|
1336
|
-
*/
|
|
1337
|
-
async flowsInstancesSetBackgroundCreate(requestParameters: FlowsInstancesSetBackgroundCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1338
|
-
await this.flowsInstancesSetBackgroundCreateRaw(requestParameters, initOverrides);
|
|
1339
|
-
}
|
|
1340
|
-
|
|
1341
|
-
/**
|
|
1342
|
-
* Set Flow background (as URL)
|
|
1343
|
-
*/
|
|
1344
|
-
async flowsInstancesSetBackgroundUrlCreateRaw(requestParameters: FlowsInstancesSetBackgroundUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
1345
|
-
if (requestParameters['slug'] == null) {
|
|
1346
|
-
throw new runtime.RequiredError(
|
|
1347
|
-
'slug',
|
|
1348
|
-
'Required parameter "slug" was null or undefined when calling flowsInstancesSetBackgroundUrlCreate().'
|
|
1349
|
-
);
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
if (requestParameters['filePathRequest'] == null) {
|
|
1353
|
-
throw new runtime.RequiredError(
|
|
1354
|
-
'filePathRequest',
|
|
1355
|
-
'Required parameter "filePathRequest" was null or undefined when calling flowsInstancesSetBackgroundUrlCreate().'
|
|
1356
|
-
);
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
|
-
const queryParameters: any = {};
|
|
1360
|
-
|
|
1361
|
-
const headerParameters: runtime.HTTPHeaders = {};
|
|
1362
|
-
|
|
1363
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
1364
|
-
|
|
1365
|
-
if (this.configuration && this.configuration.accessToken) {
|
|
1366
|
-
const token = this.configuration.accessToken;
|
|
1367
|
-
const tokenString = await token("authentik", []);
|
|
1368
|
-
|
|
1369
|
-
if (tokenString) {
|
|
1370
|
-
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1371
|
-
}
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
let urlPath = `/flows/instances/{slug}/set_background_url/`;
|
|
1375
|
-
urlPath = urlPath.replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug'])));
|
|
1376
|
-
|
|
1377
|
-
const response = await this.request({
|
|
1378
|
-
path: urlPath,
|
|
1379
|
-
method: 'POST',
|
|
1380
|
-
headers: headerParameters,
|
|
1381
|
-
query: queryParameters,
|
|
1382
|
-
body: FilePathRequestToJSON(requestParameters['filePathRequest']),
|
|
1383
|
-
}, initOverrides);
|
|
1384
|
-
|
|
1385
|
-
return new runtime.VoidApiResponse(response);
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* Set Flow background (as URL)
|
|
1390
|
-
*/
|
|
1391
|
-
async flowsInstancesSetBackgroundUrlCreate(requestParameters: FlowsInstancesSetBackgroundUrlCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
1392
|
-
await this.flowsInstancesSetBackgroundUrlCreateRaw(requestParameters, initOverrides);
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
1258
|
/**
|
|
1396
1259
|
* Flow Viewset
|
|
1397
1260
|
*/
|