Skip to content

Commit

Permalink
Merge remote-tracking branch 'gammelalf/generated-api'
Browse files Browse the repository at this point in the history
  • Loading branch information
myOmikron committed Sep 3, 2024
2 parents 1ffe24c + 6cce157 commit 043cc64
Show file tree
Hide file tree
Showing 332 changed files with 748 additions and 748 deletions.
2 changes: 1 addition & 1 deletion kraken_frontend/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"license": {
"name": "AGPL-3.0"
},
"version": "0.3.5"
"version": "0.4.2"
},
"paths": {
"/api/v1/admin/applications": {
Expand Down
8 changes: 4 additions & 4 deletions kraken_frontend/scripts/gen-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export function DomainOrNetworkToJSON(value?: DomainOrNetwork | null): any {
EOF

echo "Patch WsMessage.ts"
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'WsMessageOneOf[0-9]*')
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'WsMessageOneOf[0-9]*' | sort)

IMPORTS=""
TYPE_DECL=""
Expand Down Expand Up @@ -143,7 +143,7 @@ EOF


echo "Patch WsClientMessage.ts"
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'WsClientMessageOneOf[0-9]*')
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'WsClientMessageOneOf[0-9]*' | sort)

IMPORTS=""
TYPE_DECL=""
Expand Down Expand Up @@ -221,7 +221,7 @@ export function WsClientMessageToJSON(value?: WsClientMessage | null): any {
EOF

echo "Patch SourceAttackResult.ts"
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'SourceAttackResultOneOf[0-9]*')
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'SourceAttackResultOneOf[0-9]*' | sort)

IMPORTS=""
TYPE_DECL=""
Expand Down Expand Up @@ -301,7 +301,7 @@ echo "Patch SourceAttack.ts"+
sed -i 's/export interface SourceAttack extends SourceAttackResult/export type SourceAttack = SourceAttackResult \&/' "${GENERATED}/models/SourceAttack.ts"

echo "Patch ManualInsert.ts"
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'ManualInsertOneOf[0-9]*')
mapfile -t VARIANTS < <(find "${GENERATED}/models/" | grep -o 'ManualInsertOneOf[0-9]*' | sort)

IMPORTS=""
TYPE_DECL=""
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/AdminFilesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/ApiKeysApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/AttacksApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/BearerTokenApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/DomainsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/FilesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/FindingsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/GlobalTagsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/HostsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/HttpServicesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/KnowledgeBaseApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/OAuthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/PortsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/ServicesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/WebsocketApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/WordlistApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/WorkspaceTagsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/apis/WorkspacesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/models/ApiStatusCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/models/AttackType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/models/Change.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion kraken_frontend/src/api/generated/models/Color.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* kraken
* The core component of kraken-project
*
* The version of the OpenAPI document: 0.3.5
* The version of the OpenAPI document: 0.4.2
* Contact: git@omikron.dev
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Loading

0 comments on commit 043cc64

Please sign in to comment.