keplar-api 0.0.14 → 0.0.16
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 +5 -3
- package/README.md +2 -2
- package/dist/apis/DefaultApi.d.ts +74 -9
- package/dist/apis/DefaultApi.js +319 -6
- package/dist/models/FeatureConfig.d.ts +32 -0
- package/dist/models/FeatureConfig.js +49 -0
- package/dist/models/SearchSharedResponseMessages200ResponseInner.d.ts +74 -0
- package/dist/models/{SearchResponseMessages200ResponseInner.js → SearchSharedResponseMessages200ResponseInner.js} +13 -13
- package/dist/models/SearchSharedResponseMessagesRequest.d.ts +33 -0
- package/dist/models/SearchSharedResponseMessagesRequest.js +52 -0
- package/dist/models/SearchSharedResponseMessagesRequestInviteResponseMessagesInner.d.ts +38 -0
- package/dist/models/SearchSharedResponseMessagesRequestInviteResponseMessagesInner.js +55 -0
- package/dist/models/UserWithConfig.d.ts +228 -0
- package/dist/models/UserWithConfig.js +146 -0
- package/dist/models/index.d.ts +5 -3
- package/dist/models/index.js +5 -3
- package/package.json +1 -1
- package/src/apis/DefaultApi.ts +329 -21
- package/src/models/FeatureConfig.ts +65 -0
- package/src/models/{SearchResponseMessages200ResponseInner.ts → SearchSharedResponseMessages200ResponseInner.ts} +18 -18
- package/src/models/SearchSharedResponseMessagesRequest.ts +74 -0
- package/src/models/SearchSharedResponseMessagesRequestInviteResponseMessagesInner.ts +75 -0
- package/src/models/UserWithConfig.ts +430 -0
- package/src/models/index.ts +5 -3
- package/dist/models/SearchResponseMessages200ResponseInner.d.ts +0 -74
- package/dist/models/SearchResponseMessagesRequest.d.ts +0 -33
- package/dist/models/SearchResponseMessagesRequest.js +0 -52
- package/dist/models/SearchResponseMessagesRequestInviteResponseMessagesInner.d.ts +0 -38
- package/dist/models/SearchResponseMessagesRequestInviteResponseMessagesInner.js +0 -55
- package/src/models/SearchResponseMessagesRequest.ts +0 -74
- package/src/models/SearchResponseMessagesRequestInviteResponseMessagesInner.ts +0 -75
|
@@ -16,63 +16,63 @@ import { mapValues } from '../runtime';
|
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
* @export
|
|
19
|
-
* @interface
|
|
19
|
+
* @interface SearchSharedResponseMessages200ResponseInner
|
|
20
20
|
*/
|
|
21
|
-
export interface
|
|
21
|
+
export interface SearchSharedResponseMessages200ResponseInner {
|
|
22
22
|
/**
|
|
23
23
|
*
|
|
24
24
|
* @type {string}
|
|
25
|
-
* @memberof
|
|
25
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
26
26
|
*/
|
|
27
27
|
callId: string;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
30
|
* @type {number}
|
|
31
|
-
* @memberof
|
|
31
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
32
32
|
*/
|
|
33
33
|
index: number;
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @type {Date}
|
|
37
|
-
* @memberof
|
|
37
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
38
38
|
*/
|
|
39
39
|
time: Date;
|
|
40
40
|
/**
|
|
41
41
|
*
|
|
42
42
|
* @type {number}
|
|
43
|
-
* @memberof
|
|
43
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
44
44
|
*/
|
|
45
45
|
duration: number;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @type {number}
|
|
49
|
-
* @memberof
|
|
49
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
50
50
|
*/
|
|
51
51
|
secondsFromStart: number;
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
54
|
* @type {string}
|
|
55
|
-
* @memberof
|
|
55
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
56
56
|
*/
|
|
57
57
|
message: string;
|
|
58
58
|
/**
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @memberof
|
|
61
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
62
62
|
*/
|
|
63
63
|
role: string;
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @type {string}
|
|
67
|
-
* @memberof
|
|
67
|
+
* @memberof SearchSharedResponseMessages200ResponseInner
|
|
68
68
|
*/
|
|
69
69
|
recordingUrl?: string;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Check if a given object implements the
|
|
73
|
+
* Check if a given object implements the SearchSharedResponseMessages200ResponseInner interface.
|
|
74
74
|
*/
|
|
75
|
-
export function
|
|
75
|
+
export function instanceOfSearchSharedResponseMessages200ResponseInner(value: object): value is SearchSharedResponseMessages200ResponseInner {
|
|
76
76
|
if (!('callId' in value) || value['callId'] === undefined) return false;
|
|
77
77
|
if (!('index' in value) || value['index'] === undefined) return false;
|
|
78
78
|
if (!('time' in value) || value['time'] === undefined) return false;
|
|
@@ -83,11 +83,11 @@ export function instanceOfSearchResponseMessages200ResponseInner(value: object):
|
|
|
83
83
|
return true;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export function
|
|
87
|
-
return
|
|
86
|
+
export function SearchSharedResponseMessages200ResponseInnerFromJSON(json: any): SearchSharedResponseMessages200ResponseInner {
|
|
87
|
+
return SearchSharedResponseMessages200ResponseInnerFromJSONTyped(json, false);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export function
|
|
90
|
+
export function SearchSharedResponseMessages200ResponseInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSharedResponseMessages200ResponseInner {
|
|
91
91
|
if (json == null) {
|
|
92
92
|
return json;
|
|
93
93
|
}
|
|
@@ -104,11 +104,11 @@ export function SearchResponseMessages200ResponseInnerFromJSONTyped(json: any, i
|
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
export function
|
|
108
|
-
return
|
|
107
|
+
export function SearchSharedResponseMessages200ResponseInnerToJSON(json: any): SearchSharedResponseMessages200ResponseInner {
|
|
108
|
+
return SearchSharedResponseMessages200ResponseInnerToJSONTyped(json, false);
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export function
|
|
111
|
+
export function SearchSharedResponseMessages200ResponseInnerToJSONTyped(value?: SearchSharedResponseMessages200ResponseInner | null, ignoreDiscriminator: boolean = false): any {
|
|
112
112
|
if (value == null) {
|
|
113
113
|
return value;
|
|
114
114
|
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { SearchSharedResponseMessagesRequestInviteResponseMessagesInner } from './SearchSharedResponseMessagesRequestInviteResponseMessagesInner';
|
|
17
|
+
import {
|
|
18
|
+
SearchSharedResponseMessagesRequestInviteResponseMessagesInnerFromJSON,
|
|
19
|
+
SearchSharedResponseMessagesRequestInviteResponseMessagesInnerFromJSONTyped,
|
|
20
|
+
SearchSharedResponseMessagesRequestInviteResponseMessagesInnerToJSON,
|
|
21
|
+
SearchSharedResponseMessagesRequestInviteResponseMessagesInnerToJSONTyped,
|
|
22
|
+
} from './SearchSharedResponseMessagesRequestInviteResponseMessagesInner';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SearchSharedResponseMessagesRequest
|
|
28
|
+
*/
|
|
29
|
+
export interface SearchSharedResponseMessagesRequest {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<SearchSharedResponseMessagesRequestInviteResponseMessagesInner>}
|
|
33
|
+
* @memberof SearchSharedResponseMessagesRequest
|
|
34
|
+
*/
|
|
35
|
+
inviteResponseMessages: Array<SearchSharedResponseMessagesRequestInviteResponseMessagesInner>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SearchSharedResponseMessagesRequest interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSearchSharedResponseMessagesRequest(value: object): value is SearchSharedResponseMessagesRequest {
|
|
42
|
+
if (!('inviteResponseMessages' in value) || value['inviteResponseMessages'] === undefined) return false;
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function SearchSharedResponseMessagesRequestFromJSON(json: any): SearchSharedResponseMessagesRequest {
|
|
47
|
+
return SearchSharedResponseMessagesRequestFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function SearchSharedResponseMessagesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSharedResponseMessagesRequest {
|
|
51
|
+
if (json == null) {
|
|
52
|
+
return json;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
|
|
56
|
+
'inviteResponseMessages': ((json['inviteResponseMessages'] as Array<any>).map(SearchSharedResponseMessagesRequestInviteResponseMessagesInnerFromJSON)),
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SearchSharedResponseMessagesRequestToJSON(json: any): SearchSharedResponseMessagesRequest {
|
|
61
|
+
return SearchSharedResponseMessagesRequestToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SearchSharedResponseMessagesRequestToJSONTyped(value?: SearchSharedResponseMessagesRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'inviteResponseMessages': ((value['inviteResponseMessages'] as Array<any>).map(SearchSharedResponseMessagesRequestInviteResponseMessagesInnerToJSON)),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 SearchSharedResponseMessagesRequestInviteResponseMessagesInner
|
|
20
|
+
*/
|
|
21
|
+
export interface SearchSharedResponseMessagesRequestInviteResponseMessagesInner {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof SearchSharedResponseMessagesRequestInviteResponseMessagesInner
|
|
26
|
+
*/
|
|
27
|
+
responseId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {number}
|
|
31
|
+
* @memberof SearchSharedResponseMessagesRequestInviteResponseMessagesInner
|
|
32
|
+
*/
|
|
33
|
+
messageIndex: number;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the SearchSharedResponseMessagesRequestInviteResponseMessagesInner interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfSearchSharedResponseMessagesRequestInviteResponseMessagesInner(value: object): value is SearchSharedResponseMessagesRequestInviteResponseMessagesInner {
|
|
40
|
+
if (!('responseId' in value) || value['responseId'] === undefined) return false;
|
|
41
|
+
if (!('messageIndex' in value) || value['messageIndex'] === undefined) return false;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SearchSharedResponseMessagesRequestInviteResponseMessagesInnerFromJSON(json: any): SearchSharedResponseMessagesRequestInviteResponseMessagesInner {
|
|
46
|
+
return SearchSharedResponseMessagesRequestInviteResponseMessagesInnerFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SearchSharedResponseMessagesRequestInviteResponseMessagesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSharedResponseMessagesRequestInviteResponseMessagesInner {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'responseId': json['responseId'],
|
|
56
|
+
'messageIndex': json['messageIndex'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function SearchSharedResponseMessagesRequestInviteResponseMessagesInnerToJSON(json: any): SearchSharedResponseMessagesRequestInviteResponseMessagesInner {
|
|
61
|
+
return SearchSharedResponseMessagesRequestInviteResponseMessagesInnerToJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function SearchSharedResponseMessagesRequestInviteResponseMessagesInnerToJSONTyped(value?: SearchSharedResponseMessagesRequestInviteResponseMessagesInner | null, ignoreDiscriminator: boolean = false): any {
|
|
65
|
+
if (value == null) {
|
|
66
|
+
return value;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'responseId': value['responseId'],
|
|
72
|
+
'messageIndex': value['messageIndex'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Fastify Template API
|
|
5
|
+
* API documentation using Swagger
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.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 { UserAccountStatus } from './UserAccountStatus';
|
|
17
|
+
import {
|
|
18
|
+
UserAccountStatusFromJSON,
|
|
19
|
+
UserAccountStatusFromJSONTyped,
|
|
20
|
+
UserAccountStatusToJSON,
|
|
21
|
+
UserAccountStatusToJSONTyped,
|
|
22
|
+
} from './UserAccountStatus';
|
|
23
|
+
import type { Org } from './Org';
|
|
24
|
+
import {
|
|
25
|
+
OrgFromJSON,
|
|
26
|
+
OrgFromJSONTyped,
|
|
27
|
+
OrgToJSON,
|
|
28
|
+
OrgToJSONTyped,
|
|
29
|
+
} from './Org';
|
|
30
|
+
import type { UserData } from './UserData';
|
|
31
|
+
import {
|
|
32
|
+
UserDataFromJSON,
|
|
33
|
+
UserDataFromJSONTyped,
|
|
34
|
+
UserDataToJSON,
|
|
35
|
+
UserDataToJSONTyped,
|
|
36
|
+
} from './UserData';
|
|
37
|
+
import type { FeatureConfig } from './FeatureConfig';
|
|
38
|
+
import {
|
|
39
|
+
FeatureConfigFromJSON,
|
|
40
|
+
FeatureConfigFromJSONTyped,
|
|
41
|
+
FeatureConfigToJSON,
|
|
42
|
+
FeatureConfigToJSONTyped,
|
|
43
|
+
} from './FeatureConfig';
|
|
44
|
+
import type { Artifact } from './Artifact';
|
|
45
|
+
import {
|
|
46
|
+
ArtifactFromJSON,
|
|
47
|
+
ArtifactFromJSONTyped,
|
|
48
|
+
ArtifactToJSON,
|
|
49
|
+
ArtifactToJSONTyped,
|
|
50
|
+
} from './Artifact';
|
|
51
|
+
import type { ChatSession } from './ChatSession';
|
|
52
|
+
import {
|
|
53
|
+
ChatSessionFromJSON,
|
|
54
|
+
ChatSessionFromJSONTyped,
|
|
55
|
+
ChatSessionToJSON,
|
|
56
|
+
ChatSessionToJSONTyped,
|
|
57
|
+
} from './ChatSession';
|
|
58
|
+
import type { Thread } from './Thread';
|
|
59
|
+
import {
|
|
60
|
+
ThreadFromJSON,
|
|
61
|
+
ThreadFromJSONTyped,
|
|
62
|
+
ThreadToJSON,
|
|
63
|
+
ThreadToJSONTyped,
|
|
64
|
+
} from './Thread';
|
|
65
|
+
import type { Moderator } from './Moderator';
|
|
66
|
+
import {
|
|
67
|
+
ModeratorFromJSON,
|
|
68
|
+
ModeratorFromJSONTyped,
|
|
69
|
+
ModeratorToJSON,
|
|
70
|
+
ModeratorToJSONTyped,
|
|
71
|
+
} from './Moderator';
|
|
72
|
+
import type { Project } from './Project';
|
|
73
|
+
import {
|
|
74
|
+
ProjectFromJSON,
|
|
75
|
+
ProjectFromJSONTyped,
|
|
76
|
+
ProjectToJSON,
|
|
77
|
+
ProjectToJSONTyped,
|
|
78
|
+
} from './Project';
|
|
79
|
+
import type { TokenKind } from './TokenKind';
|
|
80
|
+
import {
|
|
81
|
+
TokenKindFromJSON,
|
|
82
|
+
TokenKindFromJSONTyped,
|
|
83
|
+
TokenKindToJSON,
|
|
84
|
+
TokenKindToJSONTyped,
|
|
85
|
+
} from './TokenKind';
|
|
86
|
+
import type { UserProvider } from './UserProvider';
|
|
87
|
+
import {
|
|
88
|
+
UserProviderFromJSON,
|
|
89
|
+
UserProviderFromJSONTyped,
|
|
90
|
+
UserProviderToJSON,
|
|
91
|
+
UserProviderToJSONTyped,
|
|
92
|
+
} from './UserProvider';
|
|
93
|
+
import type { ModelFile } from './ModelFile';
|
|
94
|
+
import {
|
|
95
|
+
ModelFileFromJSON,
|
|
96
|
+
ModelFileFromJSONTyped,
|
|
97
|
+
ModelFileToJSON,
|
|
98
|
+
ModelFileToJSONTyped,
|
|
99
|
+
} from './ModelFile';
|
|
100
|
+
import type { AttributeKindGroup } from './AttributeKindGroup';
|
|
101
|
+
import {
|
|
102
|
+
AttributeKindGroupFromJSON,
|
|
103
|
+
AttributeKindGroupFromJSONTyped,
|
|
104
|
+
AttributeKindGroupToJSON,
|
|
105
|
+
AttributeKindGroupToJSONTyped,
|
|
106
|
+
} from './AttributeKindGroup';
|
|
107
|
+
import type { Invite } from './Invite';
|
|
108
|
+
import {
|
|
109
|
+
InviteFromJSON,
|
|
110
|
+
InviteFromJSONTyped,
|
|
111
|
+
InviteToJSON,
|
|
112
|
+
InviteToJSONTyped,
|
|
113
|
+
} from './Invite';
|
|
114
|
+
import type { WorkspaceMember } from './WorkspaceMember';
|
|
115
|
+
import {
|
|
116
|
+
WorkspaceMemberFromJSON,
|
|
117
|
+
WorkspaceMemberFromJSONTyped,
|
|
118
|
+
WorkspaceMemberToJSON,
|
|
119
|
+
WorkspaceMemberToJSONTyped,
|
|
120
|
+
} from './WorkspaceMember';
|
|
121
|
+
import type { Workspace } from './Workspace';
|
|
122
|
+
import {
|
|
123
|
+
WorkspaceFromJSON,
|
|
124
|
+
WorkspaceFromJSONTyped,
|
|
125
|
+
WorkspaceToJSON,
|
|
126
|
+
WorkspaceToJSONTyped,
|
|
127
|
+
} from './Workspace';
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @export
|
|
132
|
+
* @interface UserWithConfig
|
|
133
|
+
*/
|
|
134
|
+
export interface UserWithConfig {
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof UserWithConfig
|
|
139
|
+
*/
|
|
140
|
+
id: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof UserWithConfig
|
|
145
|
+
*/
|
|
146
|
+
seq: number;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {Date}
|
|
150
|
+
* @memberof UserWithConfig
|
|
151
|
+
*/
|
|
152
|
+
createdAt: Date;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {Date}
|
|
156
|
+
* @memberof UserWithConfig
|
|
157
|
+
*/
|
|
158
|
+
updatedAt: Date;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {UserProvider}
|
|
162
|
+
* @memberof UserWithConfig
|
|
163
|
+
*/
|
|
164
|
+
provider: UserProvider;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @memberof UserWithConfig
|
|
169
|
+
*/
|
|
170
|
+
userId: string;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {string}
|
|
174
|
+
* @memberof UserWithConfig
|
|
175
|
+
*/
|
|
176
|
+
email: string;
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @type {string}
|
|
180
|
+
* @memberof UserWithConfig
|
|
181
|
+
*/
|
|
182
|
+
name: string;
|
|
183
|
+
/**
|
|
184
|
+
*
|
|
185
|
+
* @type {UserAccountStatus}
|
|
186
|
+
* @memberof UserWithConfig
|
|
187
|
+
*/
|
|
188
|
+
accountStatus: UserAccountStatus;
|
|
189
|
+
/**
|
|
190
|
+
*
|
|
191
|
+
* @type {string}
|
|
192
|
+
* @memberof UserWithConfig
|
|
193
|
+
*/
|
|
194
|
+
location?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
*
|
|
197
|
+
* @type {string}
|
|
198
|
+
* @memberof UserWithConfig
|
|
199
|
+
*/
|
|
200
|
+
profileImageUrl?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
*
|
|
203
|
+
* @type {UserData}
|
|
204
|
+
* @memberof UserWithConfig
|
|
205
|
+
*/
|
|
206
|
+
data?: UserData | null;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof UserWithConfig
|
|
211
|
+
*/
|
|
212
|
+
passwordHash?: string | null;
|
|
213
|
+
/**
|
|
214
|
+
*
|
|
215
|
+
* @type {Date}
|
|
216
|
+
* @memberof UserWithConfig
|
|
217
|
+
*/
|
|
218
|
+
emailVerifiedAt?: Date | null;
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @type {string}
|
|
222
|
+
* @memberof UserWithConfig
|
|
223
|
+
*/
|
|
224
|
+
token?: string | null;
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @type {TokenKind}
|
|
228
|
+
* @memberof UserWithConfig
|
|
229
|
+
*/
|
|
230
|
+
tokenKind?: TokenKind | null;
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @type {Date}
|
|
234
|
+
* @memberof UserWithConfig
|
|
235
|
+
*/
|
|
236
|
+
tokenExpiry?: Date | null;
|
|
237
|
+
/**
|
|
238
|
+
*
|
|
239
|
+
* @type {string}
|
|
240
|
+
* @memberof UserWithConfig
|
|
241
|
+
*/
|
|
242
|
+
orgId?: string | null;
|
|
243
|
+
/**
|
|
244
|
+
*
|
|
245
|
+
* @type {string}
|
|
246
|
+
* @memberof UserWithConfig
|
|
247
|
+
*/
|
|
248
|
+
defaultWorkspaceId: string;
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {Org}
|
|
252
|
+
* @memberof UserWithConfig
|
|
253
|
+
*/
|
|
254
|
+
org?: Org | null;
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @type {Workspace}
|
|
258
|
+
* @memberof UserWithConfig
|
|
259
|
+
*/
|
|
260
|
+
defaultWorkspace?: Workspace;
|
|
261
|
+
/**
|
|
262
|
+
*
|
|
263
|
+
* @type {Array<WorkspaceMember>}
|
|
264
|
+
* @memberof UserWithConfig
|
|
265
|
+
*/
|
|
266
|
+
workspaceMembers?: Array<WorkspaceMember>;
|
|
267
|
+
/**
|
|
268
|
+
*
|
|
269
|
+
* @type {Array<Project>}
|
|
270
|
+
* @memberof UserWithConfig
|
|
271
|
+
*/
|
|
272
|
+
projects?: Array<Project>;
|
|
273
|
+
/**
|
|
274
|
+
*
|
|
275
|
+
* @type {Array<Invite>}
|
|
276
|
+
* @memberof UserWithConfig
|
|
277
|
+
*/
|
|
278
|
+
invites?: Array<Invite>;
|
|
279
|
+
/**
|
|
280
|
+
*
|
|
281
|
+
* @type {Array<ChatSession>}
|
|
282
|
+
* @memberof UserWithConfig
|
|
283
|
+
*/
|
|
284
|
+
chatSessions?: Array<ChatSession>;
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @type {Array<Moderator>}
|
|
288
|
+
* @memberof UserWithConfig
|
|
289
|
+
*/
|
|
290
|
+
moderators?: Array<Moderator>;
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {Array<ModelFile>}
|
|
294
|
+
* @memberof UserWithConfig
|
|
295
|
+
*/
|
|
296
|
+
uploadedFiles?: Array<ModelFile>;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {Array<Thread>}
|
|
300
|
+
* @memberof UserWithConfig
|
|
301
|
+
*/
|
|
302
|
+
threads?: Array<Thread>;
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {Array<AttributeKindGroup>}
|
|
306
|
+
* @memberof UserWithConfig
|
|
307
|
+
*/
|
|
308
|
+
AttributeKindGroup?: Array<AttributeKindGroup>;
|
|
309
|
+
/**
|
|
310
|
+
*
|
|
311
|
+
* @type {Array<Artifact>}
|
|
312
|
+
* @memberof UserWithConfig
|
|
313
|
+
*/
|
|
314
|
+
Artifact?: Array<Artifact>;
|
|
315
|
+
/**
|
|
316
|
+
*
|
|
317
|
+
* @type {FeatureConfig}
|
|
318
|
+
* @memberof UserWithConfig
|
|
319
|
+
*/
|
|
320
|
+
featureConfig?: FeatureConfig;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Check if a given object implements the UserWithConfig interface.
|
|
327
|
+
*/
|
|
328
|
+
export function instanceOfUserWithConfig(value: object): value is UserWithConfig {
|
|
329
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
330
|
+
if (!('seq' in value) || value['seq'] === undefined) return false;
|
|
331
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
332
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
|
|
333
|
+
if (!('provider' in value) || value['provider'] === undefined) return false;
|
|
334
|
+
if (!('userId' in value) || value['userId'] === undefined) return false;
|
|
335
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
336
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
337
|
+
if (!('accountStatus' in value) || value['accountStatus'] === undefined) return false;
|
|
338
|
+
if (!('defaultWorkspaceId' in value) || value['defaultWorkspaceId'] === undefined) return false;
|
|
339
|
+
return true;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export function UserWithConfigFromJSON(json: any): UserWithConfig {
|
|
343
|
+
return UserWithConfigFromJSONTyped(json, false);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export function UserWithConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserWithConfig {
|
|
347
|
+
if (json == null) {
|
|
348
|
+
return json;
|
|
349
|
+
}
|
|
350
|
+
return {
|
|
351
|
+
|
|
352
|
+
'id': json['id'],
|
|
353
|
+
'seq': json['seq'],
|
|
354
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
355
|
+
'updatedAt': (new Date(json['updatedAt'])),
|
|
356
|
+
'provider': UserProviderFromJSON(json['provider']),
|
|
357
|
+
'userId': json['userId'],
|
|
358
|
+
'email': json['email'],
|
|
359
|
+
'name': json['name'],
|
|
360
|
+
'accountStatus': UserAccountStatusFromJSON(json['accountStatus']),
|
|
361
|
+
'location': json['location'] == null ? undefined : json['location'],
|
|
362
|
+
'profileImageUrl': json['profileImageUrl'] == null ? undefined : json['profileImageUrl'],
|
|
363
|
+
'data': json['data'] == null ? undefined : UserDataFromJSON(json['data']),
|
|
364
|
+
'passwordHash': json['passwordHash'] == null ? undefined : json['passwordHash'],
|
|
365
|
+
'emailVerifiedAt': json['emailVerifiedAt'] == null ? undefined : (new Date(json['emailVerifiedAt'])),
|
|
366
|
+
'token': json['token'] == null ? undefined : json['token'],
|
|
367
|
+
'tokenKind': json['tokenKind'] == null ? undefined : TokenKindFromJSON(json['tokenKind']),
|
|
368
|
+
'tokenExpiry': json['tokenExpiry'] == null ? undefined : (new Date(json['tokenExpiry'])),
|
|
369
|
+
'orgId': json['orgId'] == null ? undefined : json['orgId'],
|
|
370
|
+
'defaultWorkspaceId': json['defaultWorkspaceId'],
|
|
371
|
+
'org': json['org'] == null ? undefined : OrgFromJSON(json['org']),
|
|
372
|
+
'defaultWorkspace': json['defaultWorkspace'] == null ? undefined : WorkspaceFromJSON(json['defaultWorkspace']),
|
|
373
|
+
'workspaceMembers': json['workspaceMembers'] == null ? undefined : ((json['workspaceMembers'] as Array<any>).map(WorkspaceMemberFromJSON)),
|
|
374
|
+
'projects': json['projects'] == null ? undefined : ((json['projects'] as Array<any>).map(ProjectFromJSON)),
|
|
375
|
+
'invites': json['invites'] == null ? undefined : ((json['invites'] as Array<any>).map(InviteFromJSON)),
|
|
376
|
+
'chatSessions': json['chatSessions'] == null ? undefined : ((json['chatSessions'] as Array<any>).map(ChatSessionFromJSON)),
|
|
377
|
+
'moderators': json['moderators'] == null ? undefined : ((json['moderators'] as Array<any>).map(ModeratorFromJSON)),
|
|
378
|
+
'uploadedFiles': json['uploadedFiles'] == null ? undefined : ((json['uploadedFiles'] as Array<any>).map(ModelFileFromJSON)),
|
|
379
|
+
'threads': json['threads'] == null ? undefined : ((json['threads'] as Array<any>).map(ThreadFromJSON)),
|
|
380
|
+
'AttributeKindGroup': json['AttributeKindGroup'] == null ? undefined : ((json['AttributeKindGroup'] as Array<any>).map(AttributeKindGroupFromJSON)),
|
|
381
|
+
'Artifact': json['Artifact'] == null ? undefined : ((json['Artifact'] as Array<any>).map(ArtifactFromJSON)),
|
|
382
|
+
'featureConfig': json['featureConfig'] == null ? undefined : FeatureConfigFromJSON(json['featureConfig']),
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
export function UserWithConfigToJSON(json: any): UserWithConfig {
|
|
387
|
+
return UserWithConfigToJSONTyped(json, false);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export function UserWithConfigToJSONTyped(value?: UserWithConfig | null, ignoreDiscriminator: boolean = false): any {
|
|
391
|
+
if (value == null) {
|
|
392
|
+
return value;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return {
|
|
396
|
+
|
|
397
|
+
'id': value['id'],
|
|
398
|
+
'seq': value['seq'],
|
|
399
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
400
|
+
'updatedAt': ((value['updatedAt']).toISOString()),
|
|
401
|
+
'provider': UserProviderToJSON(value['provider']),
|
|
402
|
+
'userId': value['userId'],
|
|
403
|
+
'email': value['email'],
|
|
404
|
+
'name': value['name'],
|
|
405
|
+
'accountStatus': UserAccountStatusToJSON(value['accountStatus']),
|
|
406
|
+
'location': value['location'],
|
|
407
|
+
'profileImageUrl': value['profileImageUrl'],
|
|
408
|
+
'data': UserDataToJSON(value['data']),
|
|
409
|
+
'passwordHash': value['passwordHash'],
|
|
410
|
+
'emailVerifiedAt': value['emailVerifiedAt'] === null ? null : ((value['emailVerifiedAt'] as any)?.toISOString()),
|
|
411
|
+
'token': value['token'],
|
|
412
|
+
'tokenKind': TokenKindToJSON(value['tokenKind']),
|
|
413
|
+
'tokenExpiry': value['tokenExpiry'] === null ? null : ((value['tokenExpiry'] as any)?.toISOString()),
|
|
414
|
+
'orgId': value['orgId'],
|
|
415
|
+
'defaultWorkspaceId': value['defaultWorkspaceId'],
|
|
416
|
+
'org': OrgToJSON(value['org']),
|
|
417
|
+
'defaultWorkspace': WorkspaceToJSON(value['defaultWorkspace']),
|
|
418
|
+
'workspaceMembers': value['workspaceMembers'] == null ? undefined : ((value['workspaceMembers'] as Array<any>).map(WorkspaceMemberToJSON)),
|
|
419
|
+
'projects': value['projects'] == null ? undefined : ((value['projects'] as Array<any>).map(ProjectToJSON)),
|
|
420
|
+
'invites': value['invites'] == null ? undefined : ((value['invites'] as Array<any>).map(InviteToJSON)),
|
|
421
|
+
'chatSessions': value['chatSessions'] == null ? undefined : ((value['chatSessions'] as Array<any>).map(ChatSessionToJSON)),
|
|
422
|
+
'moderators': value['moderators'] == null ? undefined : ((value['moderators'] as Array<any>).map(ModeratorToJSON)),
|
|
423
|
+
'uploadedFiles': value['uploadedFiles'] == null ? undefined : ((value['uploadedFiles'] as Array<any>).map(ModelFileToJSON)),
|
|
424
|
+
'threads': value['threads'] == null ? undefined : ((value['threads'] as Array<any>).map(ThreadToJSON)),
|
|
425
|
+
'AttributeKindGroup': value['AttributeKindGroup'] == null ? undefined : ((value['AttributeKindGroup'] as Array<any>).map(AttributeKindGroupToJSON)),
|
|
426
|
+
'Artifact': value['Artifact'] == null ? undefined : ((value['Artifact'] as Array<any>).map(ArtifactToJSON)),
|
|
427
|
+
'featureConfig': FeatureConfigToJSON(value['featureConfig']),
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|