@knowledge-stack/ksapi 1.87.1 → 1.88.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 +18 -0
- package/README.md +16 -2
- package/dist/apis/AuthApi.d.ts +218 -13
- package/dist/apis/AuthApi.js +224 -6
- package/dist/esm/apis/AuthApi.d.ts +218 -13
- package/dist/esm/apis/AuthApi.js +225 -7
- package/dist/esm/models/ChangePhoneNumberRequest.d.ts +53 -0
- package/dist/esm/models/ChangePhoneNumberRequest.js +48 -0
- package/dist/esm/models/CreatePhonePasswordUserRequest.d.ts +71 -0
- package/dist/esm/models/CreatePhonePasswordUserRequest.js +60 -0
- package/dist/esm/models/FeaturesResponse.d.ts +6 -0
- package/dist/esm/models/FeaturesResponse.js +4 -0
- package/dist/esm/models/PasswordResetTokenResponse.d.ts +47 -0
- package/dist/esm/models/PasswordResetTokenResponse.js +44 -0
- package/dist/esm/models/PasswordResetWithTokenRequest.d.ts +2 -2
- package/dist/esm/models/PasswordResetWithTokenRequest.js +3 -3
- package/dist/esm/models/PhoneValidationResponse.d.ts +47 -0
- package/dist/esm/models/PhoneValidationResponse.js +44 -0
- package/dist/esm/models/PhoneVerificationRequest.d.ts +47 -0
- package/dist/esm/models/PhoneVerificationRequest.js +44 -0
- package/dist/esm/models/RequestPhoneChangeRequest.d.ts +47 -0
- package/dist/esm/models/RequestPhoneChangeRequest.js +44 -0
- package/dist/esm/models/ResponseSendPwResetEmail.d.ts +53 -0
- package/dist/esm/models/ResponseSendPwResetEmail.js +48 -0
- package/dist/esm/models/SendPasswordResetRequest.d.ts +67 -0
- package/dist/esm/models/SendPasswordResetRequest.js +53 -0
- package/dist/esm/models/SignInRequest.d.ts +3 -3
- package/dist/esm/models/SignInRequest.js +3 -3
- package/dist/esm/models/UserResponse.d.ts +6 -0
- package/dist/esm/models/UserResponse.js +2 -0
- package/dist/esm/models/ValidateResetCodeRequest.d.ts +53 -0
- package/dist/esm/models/ValidateResetCodeRequest.js +48 -0
- package/dist/esm/models/index.d.ts +9 -0
- package/dist/esm/models/index.js +9 -0
- package/dist/models/ChangePhoneNumberRequest.d.ts +53 -0
- package/dist/models/ChangePhoneNumberRequest.js +56 -0
- package/dist/models/CreatePhonePasswordUserRequest.d.ts +71 -0
- package/dist/models/CreatePhonePasswordUserRequest.js +68 -0
- package/dist/models/FeaturesResponse.d.ts +6 -0
- package/dist/models/FeaturesResponse.js +4 -0
- package/dist/models/PasswordResetTokenResponse.d.ts +47 -0
- package/dist/models/PasswordResetTokenResponse.js +52 -0
- package/dist/models/PasswordResetWithTokenRequest.d.ts +2 -2
- package/dist/models/PasswordResetWithTokenRequest.js +3 -3
- package/dist/models/PhoneValidationResponse.d.ts +47 -0
- package/dist/models/PhoneValidationResponse.js +52 -0
- package/dist/models/PhoneVerificationRequest.d.ts +47 -0
- package/dist/models/PhoneVerificationRequest.js +52 -0
- package/dist/models/RequestPhoneChangeRequest.d.ts +47 -0
- package/dist/models/RequestPhoneChangeRequest.js +52 -0
- package/dist/models/ResponseSendPwResetEmail.d.ts +53 -0
- package/dist/models/ResponseSendPwResetEmail.js +56 -0
- package/dist/models/SendPasswordResetRequest.d.ts +67 -0
- package/dist/models/SendPasswordResetRequest.js +61 -0
- package/dist/models/SignInRequest.d.ts +3 -3
- package/dist/models/SignInRequest.js +3 -3
- package/dist/models/UserResponse.d.ts +6 -0
- package/dist/models/UserResponse.js +2 -0
- package/dist/models/ValidateResetCodeRequest.d.ts +53 -0
- package/dist/models/ValidateResetCodeRequest.js +56 -0
- package/dist/models/index.d.ts +9 -0
- package/dist/models/index.js +9 -0
- package/docs/AuthApi.md +365 -6
- package/docs/ChangePhoneNumberRequest.md +37 -0
- package/docs/CreatePhonePasswordUserRequest.md +43 -0
- package/docs/FeaturesResponse.md +2 -0
- package/docs/PasswordResetTokenResponse.md +34 -0
- package/docs/PasswordResetWithTokenRequest.md +2 -2
- package/docs/PhoneValidationResponse.md +34 -0
- package/docs/PhoneVerificationRequest.md +34 -0
- package/docs/RequestPhoneChangeRequest.md +34 -0
- package/docs/ResponseSendPwResetEmail.md +36 -0
- package/docs/SendPasswordResetRequest.md +38 -0
- package/docs/SignInRequest.md +3 -2
- package/docs/UserResponse.md +2 -0
- package/docs/ValidateResetCodeRequest.md +36 -0
- package/package.json +1 -1
- package/src/apis/AuthApi.ts +452 -17
- package/src/models/ChangePhoneNumberRequest.ts +92 -0
- package/src/models/CreatePhonePasswordUserRequest.ts +120 -0
- package/src/models/FeaturesResponse.ts +9 -0
- package/src/models/PasswordResetTokenResponse.ts +83 -0
- package/src/models/PasswordResetWithTokenRequest.ts +5 -5
- package/src/models/PhoneValidationResponse.ts +83 -0
- package/src/models/PhoneVerificationRequest.ts +83 -0
- package/src/models/RequestPhoneChangeRequest.ts +83 -0
- package/src/models/ResponseSendPwResetEmail.ts +107 -0
- package/src/models/SendPasswordResetRequest.ts +109 -0
- package/src/models/SignInRequest.ts +6 -6
- package/src/models/UserResponse.ts +8 -0
- package/src/models/ValidateResetCodeRequest.ts +92 -0
- package/src/models/index.ts +9 -0
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
* Phone change — the new phone is retrieved from the validation record.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ChangePhoneNumberRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ChangePhoneNumberRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ChangePhoneNumberRequest
|
|
26
|
+
*/
|
|
27
|
+
phoneValidationId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ChangePhoneNumberRequest
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
}
|
|
35
|
+
export const ChangePhoneNumberRequestPropertyValidationAttributesMap: {
|
|
36
|
+
[property: string]: {
|
|
37
|
+
maxLength?: number,
|
|
38
|
+
minLength?: number,
|
|
39
|
+
pattern?: string,
|
|
40
|
+
maximum?: number,
|
|
41
|
+
exclusiveMaximum?: boolean,
|
|
42
|
+
minimum?: number,
|
|
43
|
+
exclusiveMinimum?: boolean,
|
|
44
|
+
multipleOf?: number,
|
|
45
|
+
maxItems?: number,
|
|
46
|
+
minItems?: number,
|
|
47
|
+
uniqueItems?: boolean
|
|
48
|
+
}
|
|
49
|
+
} = {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the ChangePhoneNumberRequest interface.
|
|
55
|
+
*/
|
|
56
|
+
export function instanceOfChangePhoneNumberRequest(value: object): value is ChangePhoneNumberRequest {
|
|
57
|
+
if (!('phoneValidationId' in value) || value['phoneValidationId'] === undefined) return false;
|
|
58
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function ChangePhoneNumberRequestFromJSON(json: any): ChangePhoneNumberRequest {
|
|
63
|
+
return ChangePhoneNumberRequestFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ChangePhoneNumberRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChangePhoneNumberRequest {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'phoneValidationId': json['phone_validation_id'],
|
|
73
|
+
'code': json['code'],
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ChangePhoneNumberRequestToJSON(json: any): ChangePhoneNumberRequest {
|
|
78
|
+
return ChangePhoneNumberRequestToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function ChangePhoneNumberRequestToJSONTyped(value?: ChangePhoneNumberRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
82
|
+
if (value == null) {
|
|
83
|
+
return value;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
|
|
88
|
+
'phone_validation_id': value['phoneValidationId'],
|
|
89
|
+
'code': value['code'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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
|
+
* Phone signup — the phone is retrieved from the validation record.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CreatePhonePasswordUserRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface CreatePhonePasswordUserRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Password
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof CreatePhonePasswordUserRequest
|
|
26
|
+
*/
|
|
27
|
+
password: string;
|
|
28
|
+
/**
|
|
29
|
+
* 6-digit verification code
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof CreatePhonePasswordUserRequest
|
|
32
|
+
*/
|
|
33
|
+
code: string;
|
|
34
|
+
/**
|
|
35
|
+
* ID returned by phone_verification
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof CreatePhonePasswordUserRequest
|
|
38
|
+
*/
|
|
39
|
+
phoneValidationId: string;
|
|
40
|
+
/**
|
|
41
|
+
* First name
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof CreatePhonePasswordUserRequest
|
|
44
|
+
*/
|
|
45
|
+
firstName?: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* Last name
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof CreatePhonePasswordUserRequest
|
|
50
|
+
*/
|
|
51
|
+
lastName?: string | null;
|
|
52
|
+
}
|
|
53
|
+
export const CreatePhonePasswordUserRequestPropertyValidationAttributesMap: {
|
|
54
|
+
[property: string]: {
|
|
55
|
+
maxLength?: number,
|
|
56
|
+
minLength?: number,
|
|
57
|
+
pattern?: string,
|
|
58
|
+
maximum?: number,
|
|
59
|
+
exclusiveMaximum?: boolean,
|
|
60
|
+
minimum?: number,
|
|
61
|
+
exclusiveMinimum?: boolean,
|
|
62
|
+
multipleOf?: number,
|
|
63
|
+
maxItems?: number,
|
|
64
|
+
minItems?: number,
|
|
65
|
+
uniqueItems?: boolean
|
|
66
|
+
}
|
|
67
|
+
} = {
|
|
68
|
+
password: {
|
|
69
|
+
minLength: 8,
|
|
70
|
+
},
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the CreatePhonePasswordUserRequest interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfCreatePhonePasswordUserRequest(value: object): value is CreatePhonePasswordUserRequest {
|
|
78
|
+
if (!('password' in value) || value['password'] === undefined) return false;
|
|
79
|
+
if (!('code' in value) || value['code'] === undefined) return false;
|
|
80
|
+
if (!('phoneValidationId' in value) || value['phoneValidationId'] === undefined) return false;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function CreatePhonePasswordUserRequestFromJSON(json: any): CreatePhonePasswordUserRequest {
|
|
85
|
+
return CreatePhonePasswordUserRequestFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function CreatePhonePasswordUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreatePhonePasswordUserRequest {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'password': json['password'],
|
|
95
|
+
'code': json['code'],
|
|
96
|
+
'phoneValidationId': json['phone_validation_id'],
|
|
97
|
+
'firstName': json['first_name'] == null ? undefined : json['first_name'],
|
|
98
|
+
'lastName': json['last_name'] == null ? undefined : json['last_name'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function CreatePhonePasswordUserRequestToJSON(json: any): CreatePhonePasswordUserRequest {
|
|
103
|
+
return CreatePhonePasswordUserRequestToJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function CreatePhonePasswordUserRequestToJSONTyped(value?: CreatePhonePasswordUserRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
107
|
+
if (value == null) {
|
|
108
|
+
return value;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
return {
|
|
112
|
+
|
|
113
|
+
'password': value['password'],
|
|
114
|
+
'code': value['code'],
|
|
115
|
+
'phone_validation_id': value['phoneValidationId'],
|
|
116
|
+
'first_name': value['firstName'],
|
|
117
|
+
'last_name': value['lastName'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -45,6 +45,12 @@ export interface FeaturesResponse {
|
|
|
45
45
|
* @memberof FeaturesResponse
|
|
46
46
|
*/
|
|
47
47
|
githubLoginEnabled: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof FeaturesResponse
|
|
52
|
+
*/
|
|
53
|
+
smsLoginEnabled: boolean;
|
|
48
54
|
/**
|
|
49
55
|
*
|
|
50
56
|
* @type {SupportedLanguage}
|
|
@@ -79,6 +85,7 @@ export function instanceOfFeaturesResponse(value: object): value is FeaturesResp
|
|
|
79
85
|
if (!('googleLoginEnabled' in value) || value['googleLoginEnabled'] === undefined) return false;
|
|
80
86
|
if (!('microsoftLoginEnabled' in value) || value['microsoftLoginEnabled'] === undefined) return false;
|
|
81
87
|
if (!('githubLoginEnabled' in value) || value['githubLoginEnabled'] === undefined) return false;
|
|
88
|
+
if (!('smsLoginEnabled' in value) || value['smsLoginEnabled'] === undefined) return false;
|
|
82
89
|
if (!('defaultFrontendLanguage' in value) || value['defaultFrontendLanguage'] === undefined) return false;
|
|
83
90
|
return true;
|
|
84
91
|
}
|
|
@@ -96,6 +103,7 @@ export function FeaturesResponseFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
96
103
|
'googleLoginEnabled': json['google_login_enabled'],
|
|
97
104
|
'microsoftLoginEnabled': json['microsoft_login_enabled'],
|
|
98
105
|
'githubLoginEnabled': json['github_login_enabled'],
|
|
106
|
+
'smsLoginEnabled': json['sms_login_enabled'],
|
|
99
107
|
'defaultFrontendLanguage': SupportedLanguageFromJSON(json['default_frontend_language']),
|
|
100
108
|
};
|
|
101
109
|
}
|
|
@@ -114,6 +122,7 @@ export function FeaturesResponseToJSONTyped(value?: FeaturesResponse | null, ign
|
|
|
114
122
|
'google_login_enabled': value['googleLoginEnabled'],
|
|
115
123
|
'microsoft_login_enabled': value['microsoftLoginEnabled'],
|
|
116
124
|
'github_login_enabled': value['githubLoginEnabled'],
|
|
125
|
+
'sms_login_enabled': value['smsLoginEnabled'],
|
|
117
126
|
'default_frontend_language': SupportedLanguageToJSON(value['defaultFrontendLanguage']),
|
|
118
127
|
};
|
|
119
128
|
}
|
|
@@ -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 PasswordResetTokenResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PasswordResetTokenResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PasswordResetTokenResponse
|
|
26
|
+
*/
|
|
27
|
+
passwordResetToken: string;
|
|
28
|
+
}
|
|
29
|
+
export const PasswordResetTokenResponsePropertyValidationAttributesMap: {
|
|
30
|
+
[property: string]: {
|
|
31
|
+
maxLength?: number,
|
|
32
|
+
minLength?: number,
|
|
33
|
+
pattern?: string,
|
|
34
|
+
maximum?: number,
|
|
35
|
+
exclusiveMaximum?: boolean,
|
|
36
|
+
minimum?: number,
|
|
37
|
+
exclusiveMinimum?: boolean,
|
|
38
|
+
multipleOf?: number,
|
|
39
|
+
maxItems?: number,
|
|
40
|
+
minItems?: number,
|
|
41
|
+
uniqueItems?: boolean
|
|
42
|
+
}
|
|
43
|
+
} = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the PasswordResetTokenResponse interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfPasswordResetTokenResponse(value: object): value is PasswordResetTokenResponse {
|
|
51
|
+
if (!('passwordResetToken' in value) || value['passwordResetToken'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PasswordResetTokenResponseFromJSON(json: any): PasswordResetTokenResponse {
|
|
56
|
+
return PasswordResetTokenResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PasswordResetTokenResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordResetTokenResponse {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'passwordResetToken': json['password_reset_token'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PasswordResetTokenResponseToJSON(json: any): PasswordResetTokenResponse {
|
|
70
|
+
return PasswordResetTokenResponseToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PasswordResetTokenResponseToJSONTyped(value?: PasswordResetTokenResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'password_reset_token': value['passwordResetToken'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -20,11 +20,11 @@ import { mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface PasswordResetWithTokenRequest {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Password reset JWT
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof PasswordResetWithTokenRequest
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
passwordResetToken: string;
|
|
28
28
|
/**
|
|
29
29
|
* New password
|
|
30
30
|
* @type {string}
|
|
@@ -57,7 +57,7 @@ export const PasswordResetWithTokenRequestPropertyValidationAttributesMap: {
|
|
|
57
57
|
* Check if a given object implements the PasswordResetWithTokenRequest interface.
|
|
58
58
|
*/
|
|
59
59
|
export function instanceOfPasswordResetWithTokenRequest(value: object): value is PasswordResetWithTokenRequest {
|
|
60
|
-
if (!('
|
|
60
|
+
if (!('passwordResetToken' in value) || value['passwordResetToken'] === undefined) return false;
|
|
61
61
|
if (!('newPassword' in value) || value['newPassword'] === undefined) return false;
|
|
62
62
|
return true;
|
|
63
63
|
}
|
|
@@ -72,7 +72,7 @@ export function PasswordResetWithTokenRequestFromJSONTyped(json: any, ignoreDisc
|
|
|
72
72
|
}
|
|
73
73
|
return {
|
|
74
74
|
|
|
75
|
-
'
|
|
75
|
+
'passwordResetToken': json['password_reset_token'],
|
|
76
76
|
'newPassword': json['new_password'],
|
|
77
77
|
};
|
|
78
78
|
}
|
|
@@ -88,7 +88,7 @@ export function PasswordResetWithTokenRequestToJSONTyped(value?: PasswordResetWi
|
|
|
88
88
|
|
|
89
89
|
return {
|
|
90
90
|
|
|
91
|
-
'
|
|
91
|
+
'password_reset_token': value['passwordResetToken'],
|
|
92
92
|
'new_password': value['newPassword'],
|
|
93
93
|
};
|
|
94
94
|
}
|
|
@@ -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 PhoneValidationResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface PhoneValidationResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PhoneValidationResponse
|
|
26
|
+
*/
|
|
27
|
+
phoneValidationId: string;
|
|
28
|
+
}
|
|
29
|
+
export const PhoneValidationResponsePropertyValidationAttributesMap: {
|
|
30
|
+
[property: string]: {
|
|
31
|
+
maxLength?: number,
|
|
32
|
+
minLength?: number,
|
|
33
|
+
pattern?: string,
|
|
34
|
+
maximum?: number,
|
|
35
|
+
exclusiveMaximum?: boolean,
|
|
36
|
+
minimum?: number,
|
|
37
|
+
exclusiveMinimum?: boolean,
|
|
38
|
+
multipleOf?: number,
|
|
39
|
+
maxItems?: number,
|
|
40
|
+
minItems?: number,
|
|
41
|
+
uniqueItems?: boolean
|
|
42
|
+
}
|
|
43
|
+
} = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the PhoneValidationResponse interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfPhoneValidationResponse(value: object): value is PhoneValidationResponse {
|
|
51
|
+
if (!('phoneValidationId' in value) || value['phoneValidationId'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PhoneValidationResponseFromJSON(json: any): PhoneValidationResponse {
|
|
56
|
+
return PhoneValidationResponseFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PhoneValidationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneValidationResponse {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'phoneValidationId': json['phone_validation_id'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PhoneValidationResponseToJSON(json: any): PhoneValidationResponse {
|
|
70
|
+
return PhoneValidationResponseToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PhoneValidationResponseToJSONTyped(value?: PhoneValidationResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'phone_validation_id': value['phoneValidationId'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 PhoneVerificationRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface PhoneVerificationRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Subscriber number as a string of digits, no country code (e.g. '13800138000'). The SMS provider determines routing.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PhoneVerificationRequest
|
|
26
|
+
*/
|
|
27
|
+
phoneNumber: string;
|
|
28
|
+
}
|
|
29
|
+
export const PhoneVerificationRequestPropertyValidationAttributesMap: {
|
|
30
|
+
[property: string]: {
|
|
31
|
+
maxLength?: number,
|
|
32
|
+
minLength?: number,
|
|
33
|
+
pattern?: string,
|
|
34
|
+
maximum?: number,
|
|
35
|
+
exclusiveMaximum?: boolean,
|
|
36
|
+
minimum?: number,
|
|
37
|
+
exclusiveMinimum?: boolean,
|
|
38
|
+
multipleOf?: number,
|
|
39
|
+
maxItems?: number,
|
|
40
|
+
minItems?: number,
|
|
41
|
+
uniqueItems?: boolean
|
|
42
|
+
}
|
|
43
|
+
} = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the PhoneVerificationRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfPhoneVerificationRequest(value: object): value is PhoneVerificationRequest {
|
|
51
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PhoneVerificationRequestFromJSON(json: any): PhoneVerificationRequest {
|
|
56
|
+
return PhoneVerificationRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PhoneVerificationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneVerificationRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'phoneNumber': json['phone_number'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PhoneVerificationRequestToJSON(json: any): PhoneVerificationRequest {
|
|
70
|
+
return PhoneVerificationRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function PhoneVerificationRequestToJSONTyped(value?: PhoneVerificationRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'phone_number': value['phoneNumber'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
@@ -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 RequestPhoneChangeRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface RequestPhoneChangeRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Subscriber number as a string of digits, no country code (e.g. '13800138000'). The SMS provider determines routing.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof RequestPhoneChangeRequest
|
|
26
|
+
*/
|
|
27
|
+
phoneNumber: string;
|
|
28
|
+
}
|
|
29
|
+
export const RequestPhoneChangeRequestPropertyValidationAttributesMap: {
|
|
30
|
+
[property: string]: {
|
|
31
|
+
maxLength?: number,
|
|
32
|
+
minLength?: number,
|
|
33
|
+
pattern?: string,
|
|
34
|
+
maximum?: number,
|
|
35
|
+
exclusiveMaximum?: boolean,
|
|
36
|
+
minimum?: number,
|
|
37
|
+
exclusiveMinimum?: boolean,
|
|
38
|
+
multipleOf?: number,
|
|
39
|
+
maxItems?: number,
|
|
40
|
+
minItems?: number,
|
|
41
|
+
uniqueItems?: boolean
|
|
42
|
+
}
|
|
43
|
+
} = {
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the RequestPhoneChangeRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export function instanceOfRequestPhoneChangeRequest(value: object): value is RequestPhoneChangeRequest {
|
|
51
|
+
if (!('phoneNumber' in value) || value['phoneNumber'] === undefined) return false;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function RequestPhoneChangeRequestFromJSON(json: any): RequestPhoneChangeRequest {
|
|
56
|
+
return RequestPhoneChangeRequestFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function RequestPhoneChangeRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestPhoneChangeRequest {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'phoneNumber': json['phone_number'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function RequestPhoneChangeRequestToJSON(json: any): RequestPhoneChangeRequest {
|
|
70
|
+
return RequestPhoneChangeRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function RequestPhoneChangeRequestToJSONTyped(value?: RequestPhoneChangeRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'phone_number': value['phoneNumber'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|