@knowledge-stack/ksapi 1.0.3 → 1.1.0
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 +29 -0
- package/README.md +2 -2
- package/dist/apis/AuthApi.d.ts +299 -0
- package/dist/apis/AuthApi.js +380 -0
- package/dist/apis/DefaultApi.d.ts +17 -17
- package/dist/apis/DefaultApi.js +11 -16
- package/dist/apis/InvitesApi.d.ts +119 -0
- package/dist/apis/InvitesApi.js +143 -0
- package/dist/apis/TenantsApi.d.ts +208 -0
- package/dist/apis/TenantsApi.js +238 -0
- package/dist/apis/UsersApi.d.ts +82 -0
- package/dist/apis/UsersApi.js +94 -0
- package/dist/apis/index.d.ts +4 -0
- package/dist/apis/index.js +4 -0
- package/dist/esm/apis/AuthApi.d.ts +299 -0
- package/dist/esm/apis/AuthApi.js +376 -0
- package/dist/esm/apis/DefaultApi.d.ts +17 -17
- package/dist/esm/apis/DefaultApi.js +12 -17
- package/dist/esm/apis/InvitesApi.d.ts +119 -0
- package/dist/esm/apis/InvitesApi.js +139 -0
- package/dist/esm/apis/TenantsApi.d.ts +208 -0
- package/dist/esm/apis/TenantsApi.js +234 -0
- package/dist/esm/apis/UsersApi.d.ts +82 -0
- package/dist/esm/apis/UsersApi.js +90 -0
- package/dist/esm/apis/index.d.ts +4 -0
- package/dist/esm/apis/index.js +4 -0
- package/dist/esm/models/CreatePasswordUserRequest.d.ts +53 -0
- package/dist/esm/models/CreatePasswordUserRequest.js +52 -0
- package/dist/esm/models/CreateTenantRequest.d.ts +54 -0
- package/dist/esm/models/CreateTenantRequest.js +47 -0
- package/dist/esm/models/EmailSentResponse.d.ts +47 -0
- package/dist/esm/models/EmailSentResponse.js +44 -0
- package/dist/esm/models/EmailVerificationRequest.d.ts +47 -0
- package/dist/esm/models/EmailVerificationRequest.js +44 -0
- package/dist/esm/models/HTTPValidationError.d.ts +48 -0
- package/dist/esm/models/HTTPValidationError.js +43 -0
- package/dist/esm/models/HealthCheckResponse.d.ts +0 -5
- package/dist/esm/models/HealthCheckResponse.js +8 -3
- package/dist/esm/models/IdpType.d.ts +26 -0
- package/dist/esm/models/IdpType.js +44 -0
- package/dist/esm/models/InviteResponse.d.ts +95 -0
- package/dist/esm/models/InviteResponse.js +72 -0
- package/dist/esm/models/InviteStatus.d.ts +26 -0
- package/dist/esm/models/InviteStatus.js +44 -0
- package/dist/esm/models/InviteUserRequest.d.ts +60 -0
- package/dist/esm/models/InviteUserRequest.js +51 -0
- package/dist/esm/models/OAuth2Config.d.ts +65 -0
- package/dist/esm/models/OAuth2Config.js +56 -0
- package/dist/esm/models/PaginatedResponseInviteResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseInviteResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseTenantResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseTenantResponse.js +70 -0
- package/dist/esm/models/PaginatedResponseTenantUserInTenantResponse.d.ts +66 -0
- package/dist/esm/models/PaginatedResponseTenantUserInTenantResponse.js +70 -0
- package/dist/esm/models/PasswordResetRequest.d.ts +53 -0
- package/dist/esm/models/PasswordResetRequest.js +52 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +59 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.js +56 -0
- package/dist/esm/models/RootResponse.d.ts +53 -0
- package/dist/esm/models/RootResponse.js +44 -0
- package/dist/esm/models/SignInRequest.d.ts +59 -0
- package/dist/esm/models/SignInRequest.js +50 -0
- package/dist/esm/models/TenantResponse.d.ts +61 -0
- package/dist/esm/models/TenantResponse.js +50 -0
- package/dist/esm/models/TenantUserInTenantResponse.d.ts +66 -0
- package/dist/esm/models/TenantUserInTenantResponse.js +55 -0
- package/dist/esm/models/TenantUserRole.d.ts +26 -0
- package/dist/esm/models/TenantUserRole.js +44 -0
- package/dist/esm/models/UpdateTenantRequest.d.ts +54 -0
- package/dist/esm/models/UpdateTenantRequest.js +45 -0
- package/dist/esm/models/UpdateUserRequest.d.ts +47 -0
- package/dist/esm/models/UpdateUserRequest.js +44 -0
- package/dist/esm/models/UserResponse.d.ts +79 -0
- package/dist/esm/models/UserResponse.js +66 -0
- package/dist/esm/models/ValidationError.d.ts +60 -0
- package/dist/esm/models/ValidationError.js +53 -0
- package/dist/esm/models/ValidationErrorLocInner.d.ts +41 -0
- package/dist/esm/models/ValidationErrorLocInner.js +32 -0
- package/dist/esm/models/index.d.ts +25 -0
- package/dist/esm/models/index.js +25 -0
- package/dist/models/CreatePasswordUserRequest.d.ts +53 -0
- package/dist/models/CreatePasswordUserRequest.js +60 -0
- package/dist/models/CreateTenantRequest.d.ts +54 -0
- package/dist/models/CreateTenantRequest.js +55 -0
- package/dist/models/EmailSentResponse.d.ts +47 -0
- package/dist/models/EmailSentResponse.js +52 -0
- package/dist/models/EmailVerificationRequest.d.ts +47 -0
- package/dist/models/EmailVerificationRequest.js +52 -0
- package/dist/models/HTTPValidationError.d.ts +48 -0
- package/dist/models/HTTPValidationError.js +51 -0
- package/dist/models/HealthCheckResponse.d.ts +0 -5
- package/dist/models/HealthCheckResponse.js +9 -4
- package/dist/models/IdpType.d.ts +26 -0
- package/dist/models/IdpType.js +52 -0
- package/dist/models/InviteResponse.d.ts +95 -0
- package/dist/models/InviteResponse.js +80 -0
- package/dist/models/InviteStatus.d.ts +26 -0
- package/dist/models/InviteStatus.js +52 -0
- package/dist/models/InviteUserRequest.d.ts +60 -0
- package/dist/models/InviteUserRequest.js +59 -0
- package/dist/models/OAuth2Config.d.ts +65 -0
- package/dist/models/OAuth2Config.js +64 -0
- package/dist/models/PaginatedResponseInviteResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseInviteResponse.js +78 -0
- package/dist/models/PaginatedResponseTenantResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTenantResponse.js +78 -0
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.d.ts +66 -0
- package/dist/models/PaginatedResponseTenantUserInTenantResponse.js +78 -0
- package/dist/models/PasswordResetRequest.d.ts +53 -0
- package/dist/models/PasswordResetRequest.js +60 -0
- package/dist/models/PasswordResetWithTokenRequest.d.ts +59 -0
- package/dist/models/PasswordResetWithTokenRequest.js +64 -0
- package/dist/models/RootResponse.d.ts +53 -0
- package/dist/models/RootResponse.js +52 -0
- package/dist/models/SignInRequest.d.ts +59 -0
- package/dist/models/SignInRequest.js +58 -0
- package/dist/models/TenantResponse.d.ts +61 -0
- package/dist/models/TenantResponse.js +58 -0
- package/dist/models/TenantUserInTenantResponse.d.ts +66 -0
- package/dist/models/TenantUserInTenantResponse.js +63 -0
- package/dist/models/TenantUserRole.d.ts +26 -0
- package/dist/models/TenantUserRole.js +52 -0
- package/dist/models/UpdateTenantRequest.d.ts +54 -0
- package/dist/models/UpdateTenantRequest.js +53 -0
- package/dist/models/UpdateUserRequest.d.ts +47 -0
- package/dist/models/UpdateUserRequest.js +52 -0
- package/dist/models/UserResponse.d.ts +79 -0
- package/dist/models/UserResponse.js +74 -0
- package/dist/models/ValidationError.d.ts +60 -0
- package/dist/models/ValidationError.js +61 -0
- package/dist/models/ValidationErrorLocInner.d.ts +41 -0
- package/dist/models/ValidationErrorLocInner.js +40 -0
- package/dist/models/index.d.ts +25 -0
- package/dist/models/index.js +25 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +693 -0
- package/src/apis/DefaultApi.ts +22 -23
- package/src/apis/InvitesApi.ts +254 -0
- package/src/apis/TenantsApi.ts +447 -0
- package/src/apis/UsersApi.ts +159 -0
- package/src/apis/index.ts +4 -0
- package/src/models/CreatePasswordUserRequest.ts +95 -0
- package/src/models/CreateTenantRequest.ts +99 -0
- package/src/models/EmailSentResponse.ts +83 -0
- package/src/models/EmailVerificationRequest.ts +83 -0
- package/src/models/HTTPValidationError.ts +90 -0
- package/src/models/HealthCheckResponse.ts +0 -6
- package/src/models/IdpType.ts +54 -0
- package/src/models/InviteResponse.ts +153 -0
- package/src/models/InviteStatus.ts +54 -0
- package/src/models/InviteUserRequest.ts +110 -0
- package/src/models/OAuth2Config.ts +110 -0
- package/src/models/PaginatedResponseInviteResponse.ts +130 -0
- package/src/models/PaginatedResponseTenantResponse.ts +130 -0
- package/src/models/PaginatedResponseTenantUserInTenantResponse.ts +130 -0
- package/src/models/PasswordResetRequest.ts +95 -0
- package/src/models/PasswordResetWithTokenRequest.ts +104 -0
- package/src/models/RootResponse.ts +90 -0
- package/src/models/SignInRequest.ts +100 -0
- package/src/models/TenantResponse.ts +100 -0
- package/src/models/TenantUserInTenantResponse.ts +119 -0
- package/src/models/TenantUserRole.ts +54 -0
- package/src/models/UpdateTenantRequest.ts +98 -0
- package/src/models/UpdateUserRequest.ts +83 -0
- package/src/models/UserResponse.ts +145 -0
- package/src/models/ValidationError.ts +109 -0
- package/src/models/ValidationErrorLocInner.ts +63 -0
- package/src/models/index.ts +25 -0
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OAuth2Config } from './OAuth2Config';
|
|
17
|
+
import {
|
|
18
|
+
OAuth2ConfigFromJSON,
|
|
19
|
+
OAuth2ConfigFromJSONTyped,
|
|
20
|
+
OAuth2ConfigToJSON,
|
|
21
|
+
OAuth2ConfigToJSONTyped,
|
|
22
|
+
} from './OAuth2Config';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Update tenant request model.
|
|
26
|
+
* @export
|
|
27
|
+
* @interface UpdateTenantRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface UpdateTenantRequest {
|
|
30
|
+
/**
|
|
31
|
+
* Optional tenant name to update
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof UpdateTenantRequest
|
|
34
|
+
*/
|
|
35
|
+
name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional external IdP configuration to update
|
|
38
|
+
* @type {OAuth2Config}
|
|
39
|
+
* @memberof UpdateTenantRequest
|
|
40
|
+
*/
|
|
41
|
+
idpConfig?: OAuth2Config;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the UpdateTenantRequest interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfUpdateTenantRequest(value: object): value is UpdateTenantRequest {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function UpdateTenantRequestFromJSON(json: any): UpdateTenantRequest {
|
|
52
|
+
return UpdateTenantRequestFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function UpdateTenantRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateTenantRequest {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
62
|
+
'idpConfig': json['idp_config'] == null ? undefined : OAuth2ConfigFromJSON(json['idp_config']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function UpdateTenantRequestToJSON(json: any): UpdateTenantRequest {
|
|
67
|
+
return UpdateTenantRequestToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function UpdateTenantRequestToJSONTyped(value?: UpdateTenantRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'name': value['name'],
|
|
78
|
+
'idp_config': OAuth2ConfigToJSON(value['idpConfig']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export const UpdateTenantRequestPropertyValidationAttributesMap: {
|
|
83
|
+
[property: string]: {
|
|
84
|
+
maxLength?: number,
|
|
85
|
+
minLength?: number,
|
|
86
|
+
pattern?: string,
|
|
87
|
+
maximum?: number,
|
|
88
|
+
exclusiveMaximum?: boolean,
|
|
89
|
+
minimum?: number,
|
|
90
|
+
exclusiveMinimum?: boolean,
|
|
91
|
+
multipleOf?: number,
|
|
92
|
+
maxItems?: number,
|
|
93
|
+
minItems?: number,
|
|
94
|
+
uniqueItems?: boolean
|
|
95
|
+
}
|
|
96
|
+
} = {
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface UpdateUserRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface UpdateUserRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Default tenant ID the user shall be logged into
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof UpdateUserRequest
|
|
26
|
+
*/
|
|
27
|
+
defaultTenantId: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the UpdateUserRequest interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfUpdateUserRequest(value: object): value is UpdateUserRequest {
|
|
34
|
+
if (!('defaultTenantId' in value) || value['defaultTenantId'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function UpdateUserRequestFromJSON(json: any): UpdateUserRequest {
|
|
39
|
+
return UpdateUserRequestFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function UpdateUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateUserRequest {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'defaultTenantId': json['default_tenant_id'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function UpdateUserRequestToJSON(json: any): UpdateUserRequest {
|
|
53
|
+
return UpdateUserRequestToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function UpdateUserRequestToJSONTyped(value?: UpdateUserRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'default_tenant_id': value['defaultTenantId'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export const UpdateUserRequestPropertyValidationAttributesMap: {
|
|
68
|
+
[property: string]: {
|
|
69
|
+
maxLength?: number,
|
|
70
|
+
minLength?: number,
|
|
71
|
+
pattern?: string,
|
|
72
|
+
maximum?: number,
|
|
73
|
+
exclusiveMaximum?: boolean,
|
|
74
|
+
minimum?: number,
|
|
75
|
+
exclusiveMinimum?: boolean,
|
|
76
|
+
multipleOf?: number,
|
|
77
|
+
maxItems?: number,
|
|
78
|
+
minItems?: number,
|
|
79
|
+
uniqueItems?: boolean
|
|
80
|
+
}
|
|
81
|
+
} = {
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { IdpType } from './IdpType';
|
|
17
|
+
import {
|
|
18
|
+
IdpTypeFromJSON,
|
|
19
|
+
IdpTypeFromJSONTyped,
|
|
20
|
+
IdpTypeToJSON,
|
|
21
|
+
IdpTypeToJSONTyped,
|
|
22
|
+
} from './IdpType';
|
|
23
|
+
import type { TenantUserRole } from './TenantUserRole';
|
|
24
|
+
import {
|
|
25
|
+
TenantUserRoleFromJSON,
|
|
26
|
+
TenantUserRoleFromJSONTyped,
|
|
27
|
+
TenantUserRoleToJSON,
|
|
28
|
+
TenantUserRoleToJSONTyped,
|
|
29
|
+
} from './TenantUserRole';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface UserResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface UserResponse {
|
|
37
|
+
/**
|
|
38
|
+
* User ID
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UserResponse
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* Email address of the user
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UserResponse
|
|
47
|
+
*/
|
|
48
|
+
email: string;
|
|
49
|
+
/**
|
|
50
|
+
* Identity provider type of the user
|
|
51
|
+
* @type {IdpType}
|
|
52
|
+
* @memberof UserResponse
|
|
53
|
+
*/
|
|
54
|
+
idpType: IdpType;
|
|
55
|
+
/**
|
|
56
|
+
* Current tenant ID the user is logged into
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof UserResponse
|
|
59
|
+
*/
|
|
60
|
+
currentTenantId: string;
|
|
61
|
+
/**
|
|
62
|
+
* Current tenant role of the user
|
|
63
|
+
* @type {TenantUserRole}
|
|
64
|
+
* @memberof UserResponse
|
|
65
|
+
*/
|
|
66
|
+
currentTenantRole: TenantUserRole;
|
|
67
|
+
/**
|
|
68
|
+
* Default tenant ID the user shall be logged into
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof UserResponse
|
|
71
|
+
*/
|
|
72
|
+
defaultTenantId: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Check if a given object implements the UserResponse interface.
|
|
79
|
+
*/
|
|
80
|
+
export function instanceOfUserResponse(value: object): value is UserResponse {
|
|
81
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
82
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
83
|
+
if (!('idpType' in value) || value['idpType'] === undefined) return false;
|
|
84
|
+
if (!('currentTenantId' in value) || value['currentTenantId'] === undefined) return false;
|
|
85
|
+
if (!('currentTenantRole' in value) || value['currentTenantRole'] === undefined) return false;
|
|
86
|
+
if (!('defaultTenantId' in value) || value['defaultTenantId'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function UserResponseFromJSON(json: any): UserResponse {
|
|
91
|
+
return UserResponseFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function UserResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserResponse {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'id': json['id'],
|
|
101
|
+
'email': json['email'],
|
|
102
|
+
'idpType': IdpTypeFromJSON(json['idp_type']),
|
|
103
|
+
'currentTenantId': json['current_tenant_id'],
|
|
104
|
+
'currentTenantRole': TenantUserRoleFromJSON(json['current_tenant_role']),
|
|
105
|
+
'defaultTenantId': json['default_tenant_id'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function UserResponseToJSON(json: any): UserResponse {
|
|
110
|
+
return UserResponseToJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function UserResponseToJSONTyped(value?: UserResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'id': value['id'],
|
|
121
|
+
'email': value['email'],
|
|
122
|
+
'idp_type': IdpTypeToJSON(value['idpType']),
|
|
123
|
+
'current_tenant_id': value['currentTenantId'],
|
|
124
|
+
'current_tenant_role': TenantUserRoleToJSON(value['currentTenantRole']),
|
|
125
|
+
'default_tenant_id': value['defaultTenantId'],
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export const UserResponsePropertyValidationAttributesMap: {
|
|
130
|
+
[property: string]: {
|
|
131
|
+
maxLength?: number,
|
|
132
|
+
minLength?: number,
|
|
133
|
+
pattern?: string,
|
|
134
|
+
maximum?: number,
|
|
135
|
+
exclusiveMaximum?: boolean,
|
|
136
|
+
minimum?: number,
|
|
137
|
+
exclusiveMinimum?: boolean,
|
|
138
|
+
multipleOf?: number,
|
|
139
|
+
maxItems?: number,
|
|
140
|
+
minItems?: number,
|
|
141
|
+
uniqueItems?: boolean
|
|
142
|
+
}
|
|
143
|
+
} = {
|
|
144
|
+
}
|
|
145
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ValidationErrorLocInner } from './ValidationErrorLocInner';
|
|
17
|
+
import {
|
|
18
|
+
ValidationErrorLocInnerFromJSON,
|
|
19
|
+
ValidationErrorLocInnerFromJSONTyped,
|
|
20
|
+
ValidationErrorLocInnerToJSON,
|
|
21
|
+
ValidationErrorLocInnerToJSONTyped,
|
|
22
|
+
} from './ValidationErrorLocInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ValidationError
|
|
28
|
+
*/
|
|
29
|
+
export interface ValidationError {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<ValidationErrorLocInner>}
|
|
33
|
+
* @memberof ValidationError
|
|
34
|
+
*/
|
|
35
|
+
loc: Array<ValidationErrorLocInner>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ValidationError
|
|
40
|
+
*/
|
|
41
|
+
msg: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ValidationError
|
|
46
|
+
*/
|
|
47
|
+
type: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ValidationError interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfValidationError(value: object): value is ValidationError {
|
|
54
|
+
if (!('loc' in value) || value['loc'] === undefined) return false;
|
|
55
|
+
if (!('msg' in value) || value['msg'] === undefined) return false;
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ValidationErrorFromJSON(json: any): ValidationError {
|
|
61
|
+
return ValidationErrorFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function ValidationErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationError {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'loc': ((json['loc'] as Array<any>).map(ValidationErrorLocInnerFromJSON)),
|
|
71
|
+
'msg': json['msg'],
|
|
72
|
+
'type': json['type'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function ValidationErrorToJSON(json: any): ValidationError {
|
|
77
|
+
return ValidationErrorToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function ValidationErrorToJSONTyped(value?: ValidationError | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'loc': ((value['loc'] as Array<any>).map(ValidationErrorLocInnerToJSON)),
|
|
88
|
+
'msg': value['msg'],
|
|
89
|
+
'type': value['type'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const ValidationErrorPropertyValidationAttributesMap: {
|
|
94
|
+
[property: string]: {
|
|
95
|
+
maxLength?: number,
|
|
96
|
+
minLength?: number,
|
|
97
|
+
pattern?: string,
|
|
98
|
+
maximum?: number,
|
|
99
|
+
exclusiveMaximum?: boolean,
|
|
100
|
+
minimum?: number,
|
|
101
|
+
exclusiveMinimum?: boolean,
|
|
102
|
+
multipleOf?: number,
|
|
103
|
+
maxItems?: number,
|
|
104
|
+
minItems?: number,
|
|
105
|
+
uniqueItems?: boolean
|
|
106
|
+
}
|
|
107
|
+
} = {
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Knowledge Stack API
|
|
5
|
+
* Knowledge Stack backend API for authentication and knowledge management
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ValidationErrorLocInner
|
|
20
|
+
*/
|
|
21
|
+
export interface ValidationErrorLocInner {
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the ValidationErrorLocInner interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfValidationErrorLocInner(value: object): value is ValidationErrorLocInner {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export function ValidationErrorLocInnerFromJSON(json: any): ValidationErrorLocInner {
|
|
32
|
+
return ValidationErrorLocInnerFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function ValidationErrorLocInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ValidationErrorLocInner {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ValidationErrorLocInnerToJSON(json: any): ValidationErrorLocInner {
|
|
40
|
+
return ValidationErrorLocInnerToJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function ValidationErrorLocInnerToJSONTyped(value?: ValidationErrorLocInner | null, ignoreDiscriminator: boolean = false): any {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export const ValidationErrorLocInnerPropertyValidationAttributesMap: {
|
|
48
|
+
[property: string]: {
|
|
49
|
+
maxLength?: number,
|
|
50
|
+
minLength?: number,
|
|
51
|
+
pattern?: string,
|
|
52
|
+
maximum?: number,
|
|
53
|
+
exclusiveMaximum?: boolean,
|
|
54
|
+
minimum?: number,
|
|
55
|
+
exclusiveMinimum?: boolean,
|
|
56
|
+
multipleOf?: number,
|
|
57
|
+
maxItems?: number,
|
|
58
|
+
minItems?: number,
|
|
59
|
+
uniqueItems?: boolean
|
|
60
|
+
}
|
|
61
|
+
} = {
|
|
62
|
+
}
|
|
63
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './CreatePasswordUserRequest';
|
|
4
|
+
export * from './CreateTenantRequest';
|
|
5
|
+
export * from './EmailSentResponse';
|
|
6
|
+
export * from './EmailVerificationRequest';
|
|
7
|
+
export * from './HTTPValidationError';
|
|
3
8
|
export * from './HealthCheckResponse';
|
|
9
|
+
export * from './IdpType';
|
|
10
|
+
export * from './InviteResponse';
|
|
11
|
+
export * from './InviteStatus';
|
|
12
|
+
export * from './InviteUserRequest';
|
|
13
|
+
export * from './OAuth2Config';
|
|
14
|
+
export * from './PaginatedResponseInviteResponse';
|
|
15
|
+
export * from './PaginatedResponseTenantResponse';
|
|
16
|
+
export * from './PaginatedResponseTenantUserInTenantResponse';
|
|
17
|
+
export * from './PasswordResetRequest';
|
|
18
|
+
export * from './PasswordResetWithTokenRequest';
|
|
19
|
+
export * from './RootResponse';
|
|
20
|
+
export * from './SignInRequest';
|
|
21
|
+
export * from './TenantResponse';
|
|
22
|
+
export * from './TenantUserInTenantResponse';
|
|
23
|
+
export * from './TenantUserRole';
|
|
24
|
+
export * from './UpdateTenantRequest';
|
|
25
|
+
export * from './UpdateUserRequest';
|
|
26
|
+
export * from './UserResponse';
|
|
27
|
+
export * from './ValidationError';
|
|
28
|
+
export * from './ValidationErrorLocInner';
|