@breign/client 1.0.199 → 1.0.201
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/dist/apis/AuthApi.d.ts +18 -5
- package/dist/apis/AuthApi.js +31 -4
- package/dist/apis/ProjectsApi.d.ts +17 -4
- package/dist/apis/ProjectsApi.js +33 -4
- package/dist/apis/TicketsApi.d.ts +15 -1
- package/dist/apis/TicketsApi.js +34 -0
- package/dist/models/ApplicationTokenFormatUio.d.ts +26 -0
- package/dist/models/ApplicationTokenFormatUio.js +52 -0
- package/dist/models/ApplicationTokenRequestUio.d.ts +18 -3
- package/dist/models/ApplicationTokenRequestUio.js +10 -10
- package/dist/models/ApplicationTokenResponseUio.d.ts +26 -5
- package/dist/models/ApplicationTokenResponseUio.js +10 -7
- package/dist/models/ApplicationTokenRevocationRequestUio.d.ts +44 -0
- package/dist/models/ApplicationTokenRevocationRequestUio.js +56 -0
- package/dist/models/CreateProjectRequestUio.d.ts +6 -0
- package/dist/models/CreateProjectRequestUio.js +2 -0
- package/dist/models/MoveTicketsRequestUio.d.ts +38 -0
- package/dist/models/MoveTicketsRequestUio.js +54 -0
- package/dist/models/MoveTicketsResultUio.d.ts +40 -0
- package/dist/models/MoveTicketsResultUio.js +56 -0
- package/dist/models/MovedTicketUio.d.ts +44 -0
- package/dist/models/MovedTicketUio.js +58 -0
- package/dist/models/ProjectSummaryUio.d.ts +7 -1
- package/dist/models/ProjectSummaryUio.js +4 -0
- package/dist/models/ProjectUio.d.ts +7 -1
- package/dist/models/ProjectUio.js +4 -0
- package/dist/models/RemovedTicketMemberUio.d.ts +39 -0
- package/dist/models/RemovedTicketMemberUio.js +55 -0
- package/dist/models/TicketEventUio.d.ts +1 -1
- package/dist/models/UpdateUserChatPreferencesRequestUio.d.ts +6 -0
- package/dist/models/UpdateUserChatPreferencesRequestUio.js +2 -0
- package/dist/models/UserChatPreferencesUio.d.ts +6 -0
- package/dist/models/UserChatPreferencesUio.js +4 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/dist/openapi.json +291 -28
- package/package.json +1 -1
package/dist/apis/AuthApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApplicationAuthorizationRequestUio, ApplicationAuthorizationResponseUio, ApplicationTokenRequestUio, ApplicationTokenResponseUio, AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio, GetJwks200ResponseUio } from '../models/index';
|
|
13
|
+
import type { ApplicationAuthorizationRequestUio, ApplicationAuthorizationResponseUio, ApplicationTokenRequestUio, ApplicationTokenResponseUio, ApplicationTokenRevocationRequestUio, AuthCodeConfirmRequestUio, AuthCodeConfirmResponseUio, AuthCodeRequestUio, AuthCodeResponseUio, GetJwks200ResponseUio } from '../models/index';
|
|
14
14
|
export interface AuthorizeApplicationRequest {
|
|
15
15
|
responseType: AuthorizeApplicationResponseTypeEnum;
|
|
16
16
|
clientId: string;
|
|
@@ -37,6 +37,9 @@ export interface OauthCallbackRequest {
|
|
|
37
37
|
code?: string;
|
|
38
38
|
state?: string;
|
|
39
39
|
}
|
|
40
|
+
export interface RevokeApplicationTokenRequest {
|
|
41
|
+
applicationTokenRevocationRequestUio: ApplicationTokenRevocationRequestUio;
|
|
42
|
+
}
|
|
40
43
|
export interface ToolOauthCallbackRequest {
|
|
41
44
|
toolId: string;
|
|
42
45
|
code?: string;
|
|
@@ -77,13 +80,13 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
77
80
|
*/
|
|
78
81
|
createApplicationAuthorization(applicationAuthorizationRequestUio: ApplicationAuthorizationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationAuthorizationResponseUio>;
|
|
79
82
|
/**
|
|
80
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
81
|
-
* Exchange an application authorization code
|
|
83
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
84
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
82
85
|
*/
|
|
83
86
|
exchangeApplicationAuthorizationCodeRaw(requestParameters: ExchangeApplicationAuthorizationCodeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApplicationTokenResponseUio>>;
|
|
84
87
|
/**
|
|
85
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
86
|
-
* Exchange an application authorization code
|
|
88
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
89
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
87
90
|
*/
|
|
88
91
|
exchangeApplicationAuthorizationCode(applicationTokenRequestUio: ApplicationTokenRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApplicationTokenResponseUio>;
|
|
89
92
|
/**
|
|
@@ -116,6 +119,16 @@ export declare class AuthApi extends runtime.BaseAPI {
|
|
|
116
119
|
* OAuth callback
|
|
117
120
|
*/
|
|
118
121
|
oauthCallback(code?: string, state?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
124
|
+
* Revoke an application refresh token
|
|
125
|
+
*/
|
|
126
|
+
revokeApplicationTokenRaw(requestParameters: RevokeApplicationTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
127
|
+
/**
|
|
128
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
129
|
+
* Revoke an application refresh token
|
|
130
|
+
*/
|
|
131
|
+
revokeApplicationToken(applicationTokenRevocationRequestUio: ApplicationTokenRevocationRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
119
132
|
/**
|
|
120
133
|
* Handles OAuth provider callback for a specific tool
|
|
121
134
|
* Tool OAuth callback
|
package/dist/apis/AuthApi.js
CHANGED
|
@@ -177,8 +177,8 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
177
177
|
return await response.value();
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
181
|
-
* Exchange an application authorization code
|
|
180
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
181
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
182
182
|
*/
|
|
183
183
|
async exchangeApplicationAuthorizationCodeRaw(requestParameters, initOverrides) {
|
|
184
184
|
if (requestParameters['applicationTokenRequestUio'] == null) {
|
|
@@ -197,8 +197,8 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
197
197
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApplicationTokenResponseUioFromJSON)(jsonValue));
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. Errors follow RFC 6749 section 5.2.
|
|
201
|
-
* Exchange an application authorization code
|
|
200
|
+
* Exchanges the code issued by `POST /auth/authorizations` for an API key of the user, after checking the PKCE verifier, the client and the redirect address. The code is single use. With `token_format=jwt`, returns an access token and a refresh token instead of an API key; `grant_type=refresh_token` then renews them. Errors follow RFC 6749 section 5.2.
|
|
201
|
+
* Exchange an application authorization code, or refresh its tokens
|
|
202
202
|
*/
|
|
203
203
|
async exchangeApplicationAuthorizationCode(applicationTokenRequestUio, initOverrides) {
|
|
204
204
|
const response = await this.exchangeApplicationAuthorizationCodeRaw({ applicationTokenRequestUio: applicationTokenRequestUio }, initOverrides);
|
|
@@ -286,6 +286,33 @@ class AuthApi extends runtime.BaseAPI {
|
|
|
286
286
|
async oauthCallback(code, state, initOverrides) {
|
|
287
287
|
await this.oauthCallbackRaw({ code: code, state: state }, initOverrides);
|
|
288
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
291
|
+
* Revoke an application refresh token
|
|
292
|
+
*/
|
|
293
|
+
async revokeApplicationTokenRaw(requestParameters, initOverrides) {
|
|
294
|
+
if (requestParameters['applicationTokenRevocationRequestUio'] == null) {
|
|
295
|
+
throw new runtime.RequiredError('applicationTokenRevocationRequestUio', 'Required parameter "applicationTokenRevocationRequestUio" was null or undefined when calling revokeApplicationToken().');
|
|
296
|
+
}
|
|
297
|
+
const queryParameters = {};
|
|
298
|
+
const headerParameters = {};
|
|
299
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
300
|
+
const response = await this.request({
|
|
301
|
+
path: `/auth/revoke`,
|
|
302
|
+
method: 'POST',
|
|
303
|
+
headers: headerParameters,
|
|
304
|
+
query: queryParameters,
|
|
305
|
+
body: (0, index_1.ApplicationTokenRevocationRequestUioToJSON)(requestParameters['applicationTokenRevocationRequestUio']),
|
|
306
|
+
}, initOverrides);
|
|
307
|
+
return new runtime.VoidApiResponse(response);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Closes the session of a refresh token returned with `token_format=jwt` (RFC 7009), on logout from the application. Answers 200 whether the token existed or not. Access tokens already issued stay valid until they expire (1 h at most).
|
|
311
|
+
* Revoke an application refresh token
|
|
312
|
+
*/
|
|
313
|
+
async revokeApplicationToken(applicationTokenRevocationRequestUio, initOverrides) {
|
|
314
|
+
await this.revokeApplicationTokenRaw({ applicationTokenRevocationRequestUio: applicationTokenRevocationRequestUio }, initOverrides);
|
|
315
|
+
}
|
|
289
316
|
/**
|
|
290
317
|
* Handles OAuth provider callback for a specific tool
|
|
291
318
|
* Tool OAuth callback
|
|
@@ -15,6 +15,9 @@ export interface CreateProjectRequest {
|
|
|
15
15
|
organizationId: string;
|
|
16
16
|
createProjectRequestUio: CreateProjectRequestUio;
|
|
17
17
|
}
|
|
18
|
+
export interface GetPersonalProjectRequest {
|
|
19
|
+
organizationId: string;
|
|
20
|
+
}
|
|
18
21
|
export interface GetProjectRequest {
|
|
19
22
|
projectId: string;
|
|
20
23
|
}
|
|
@@ -41,15 +44,25 @@ export interface UpdateProjectRequest {
|
|
|
41
44
|
*/
|
|
42
45
|
export declare class ProjectsApi extends runtime.BaseAPI {
|
|
43
46
|
/**
|
|
44
|
-
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
47
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation ; PERSO est réservée (400 PROJECT_KEY_RESERVED).
|
|
45
48
|
* Create a project
|
|
46
49
|
*/
|
|
47
50
|
createProjectRaw(requestParameters: CreateProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUio>>;
|
|
48
51
|
/**
|
|
49
|
-
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
52
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation ; PERSO est réservée (400 PROJECT_KEY_RESERVED).
|
|
50
53
|
* Create a project
|
|
51
54
|
*/
|
|
52
55
|
createProject(organizationId: string, createProjectRequestUio: CreateProjectRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUio>;
|
|
56
|
+
/**
|
|
57
|
+
* Espace de travail personnel de l\'utilisateur courant dans l\'organisation (clé PERSO), créé à la première demande.
|
|
58
|
+
* Get the caller\'s personal workspace
|
|
59
|
+
*/
|
|
60
|
+
getPersonalProjectRaw(requestParameters: GetPersonalProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectUio>>;
|
|
61
|
+
/**
|
|
62
|
+
* Espace de travail personnel de l\'utilisateur courant dans l\'organisation (clé PERSO), créé à la première demande.
|
|
63
|
+
* Get the caller\'s personal workspace
|
|
64
|
+
*/
|
|
65
|
+
getPersonalProject(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectUio>;
|
|
53
66
|
/**
|
|
54
67
|
* Projet et ses réglages.
|
|
55
68
|
* Get a project
|
|
@@ -81,12 +94,12 @@ export declare class ProjectsApi extends runtime.BaseAPI {
|
|
|
81
94
|
*/
|
|
82
95
|
listProjectMembers(projectId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectMemberUio>>;
|
|
83
96
|
/**
|
|
84
|
-
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
97
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent. Son espace personnel vient en tête, créé au besoin ; ceux des autres n\'apparaissent jamais, même pour un admin.
|
|
85
98
|
* List the projects of an organization
|
|
86
99
|
*/
|
|
87
100
|
listProjectsRaw(requestParameters: ListProjectsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectSummaryUio>>>;
|
|
88
101
|
/**
|
|
89
|
-
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
102
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent. Son espace personnel vient en tête, créé au besoin ; ceux des autres n\'apparaissent jamais, même pour un admin.
|
|
90
103
|
* List the projects of an organization
|
|
91
104
|
*/
|
|
92
105
|
listProjects(organizationId: string, includeArchived?: boolean, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectSummaryUio>>;
|
package/dist/apis/ProjectsApi.js
CHANGED
|
@@ -54,7 +54,7 @@ const index_1 = require("../models/index");
|
|
|
54
54
|
*/
|
|
55
55
|
class ProjectsApi extends runtime.BaseAPI {
|
|
56
56
|
/**
|
|
57
|
-
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
57
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation ; PERSO est réservée (400 PROJECT_KEY_RESERVED).
|
|
58
58
|
* Create a project
|
|
59
59
|
*/
|
|
60
60
|
async createProjectRaw(requestParameters, initOverrides) {
|
|
@@ -80,13 +80,42 @@ class ProjectsApi extends runtime.BaseAPI {
|
|
|
80
80
|
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectUioFromJSON)(jsonValue));
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation.
|
|
83
|
+
* Crée un projet ; le créateur en devient owner. La clé doit être unique dans l\'organisation ; PERSO est réservée (400 PROJECT_KEY_RESERVED).
|
|
84
84
|
* Create a project
|
|
85
85
|
*/
|
|
86
86
|
async createProject(organizationId, createProjectRequestUio, initOverrides) {
|
|
87
87
|
const response = await this.createProjectRaw({ organizationId: organizationId, createProjectRequestUio: createProjectRequestUio }, initOverrides);
|
|
88
88
|
return await response.value();
|
|
89
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* Espace de travail personnel de l\'utilisateur courant dans l\'organisation (clé PERSO), créé à la première demande.
|
|
92
|
+
* Get the caller\'s personal workspace
|
|
93
|
+
*/
|
|
94
|
+
async getPersonalProjectRaw(requestParameters, initOverrides) {
|
|
95
|
+
if (requestParameters['organizationId'] == null) {
|
|
96
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getPersonalProject().');
|
|
97
|
+
}
|
|
98
|
+
const queryParameters = {};
|
|
99
|
+
const headerParameters = {};
|
|
100
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
101
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
102
|
+
}
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/organizations/{organizationId}/projects/personal`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProjectUioFromJSON)(jsonValue));
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Espace de travail personnel de l\'utilisateur courant dans l\'organisation (clé PERSO), créé à la première demande.
|
|
113
|
+
* Get the caller\'s personal workspace
|
|
114
|
+
*/
|
|
115
|
+
async getPersonalProject(organizationId, initOverrides) {
|
|
116
|
+
const response = await this.getPersonalProjectRaw({ organizationId: organizationId }, initOverrides);
|
|
117
|
+
return await response.value();
|
|
118
|
+
}
|
|
90
119
|
/**
|
|
91
120
|
* Projet et ses réglages.
|
|
92
121
|
* Get a project
|
|
@@ -175,7 +204,7 @@ class ProjectsApi extends runtime.BaseAPI {
|
|
|
175
204
|
return await response.value();
|
|
176
205
|
}
|
|
177
206
|
/**
|
|
178
|
-
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
207
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent. Son espace personnel vient en tête, créé au besoin ; ceux des autres n\'apparaissent jamais, même pour un admin.
|
|
179
208
|
* List the projects of an organization
|
|
180
209
|
*/
|
|
181
210
|
async listProjectsRaw(requestParameters, initOverrides) {
|
|
@@ -199,7 +228,7 @@ class ProjectsApi extends runtime.BaseAPI {
|
|
|
199
228
|
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ProjectSummaryUioFromJSON));
|
|
200
229
|
}
|
|
201
230
|
/**
|
|
202
|
-
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent.
|
|
231
|
+
* Projets de l\'organisation visibles par l\'utilisateur courant (membre du projet, ou admin de l\'organisation), avec leurs compteurs, leurs membres et les actions qui l\'attendent. Son espace personnel vient en tête, créé au besoin ; ceux des autres n\'apparaissent jamais, même pour un admin.
|
|
203
232
|
* List the projects of an organization
|
|
204
233
|
*/
|
|
205
234
|
async listProjects(organizationId, includeArchived, initOverrides) {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
13
|
+
import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ConversationTicketProposalUio, CreateTicketArtifactRequestUio, CreateTicketArtifactResponseUio, CreateTicketEventRequestUio, CreateTicketRequestUio, MemberTypeUio, MoveTicketsRequestUio, MoveTicketsResultUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
14
14
|
export interface AcceptTicketProposalRequest {
|
|
15
15
|
proposalId: string;
|
|
16
16
|
acceptTicketProposalRequestUio: AcceptTicketProposalRequestUio;
|
|
@@ -96,6 +96,10 @@ export interface MarkTicketArtifactUploadedRequest {
|
|
|
96
96
|
ticketId: string;
|
|
97
97
|
artifactId: string;
|
|
98
98
|
}
|
|
99
|
+
export interface MoveTicketsRequest {
|
|
100
|
+
projectId: string;
|
|
101
|
+
moveTicketsRequestUio: MoveTicketsRequestUio;
|
|
102
|
+
}
|
|
99
103
|
export interface RejectTicketProposalRequest {
|
|
100
104
|
proposalId: string;
|
|
101
105
|
}
|
|
@@ -330,6 +334,16 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
330
334
|
* Mark an artifact as uploaded
|
|
331
335
|
*/
|
|
332
336
|
markTicketArtifactUploaded(ticketId: string, artifactId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketArtifactUio>;
|
|
337
|
+
/**
|
|
338
|
+
* Emporte des tickets de l\'espace personnel de l\'appelant dans cet espace partagé, dont il est membre. Chaque ticket prend une clé de l\'espace (PERSO-16 devient REF-1) et garde son historique ; l\'ancienne clé ne mène plus nulle part. Un parent ou un enfant resté en arrière perd le lien ; les assignés et relecteurs qui ne sont pas membres de l\'espace sont retirés.
|
|
339
|
+
* Move tickets into a project
|
|
340
|
+
*/
|
|
341
|
+
moveTicketsRaw(requestParameters: MoveTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<MoveTicketsResultUio>>;
|
|
342
|
+
/**
|
|
343
|
+
* Emporte des tickets de l\'espace personnel de l\'appelant dans cet espace partagé, dont il est membre. Chaque ticket prend une clé de l\'espace (PERSO-16 devient REF-1) et garde son historique ; l\'ancienne clé ne mène plus nulle part. Un parent ou un enfant resté en arrière perd le lien ; les assignés et relecteurs qui ne sont pas membres de l\'espace sont retirés.
|
|
344
|
+
* Move tickets into a project
|
|
345
|
+
*/
|
|
346
|
+
moveTickets(projectId: string, moveTicketsRequestUio: MoveTicketsRequestUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MoveTicketsResultUio>;
|
|
333
347
|
/**
|
|
334
348
|
* Écarte la proposition ; aucun ticket n\'est créé.
|
|
335
349
|
* Reject a ticket proposal
|
package/dist/apis/TicketsApi.js
CHANGED
|
@@ -717,6 +717,40 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
717
717
|
const response = await this.markTicketArtifactUploadedRaw({ ticketId: ticketId, artifactId: artifactId }, initOverrides);
|
|
718
718
|
return await response.value();
|
|
719
719
|
}
|
|
720
|
+
/**
|
|
721
|
+
* Emporte des tickets de l\'espace personnel de l\'appelant dans cet espace partagé, dont il est membre. Chaque ticket prend une clé de l\'espace (PERSO-16 devient REF-1) et garde son historique ; l\'ancienne clé ne mène plus nulle part. Un parent ou un enfant resté en arrière perd le lien ; les assignés et relecteurs qui ne sont pas membres de l\'espace sont retirés.
|
|
722
|
+
* Move tickets into a project
|
|
723
|
+
*/
|
|
724
|
+
async moveTicketsRaw(requestParameters, initOverrides) {
|
|
725
|
+
if (requestParameters['projectId'] == null) {
|
|
726
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling moveTickets().');
|
|
727
|
+
}
|
|
728
|
+
if (requestParameters['moveTicketsRequestUio'] == null) {
|
|
729
|
+
throw new runtime.RequiredError('moveTicketsRequestUio', 'Required parameter "moveTicketsRequestUio" was null or undefined when calling moveTickets().');
|
|
730
|
+
}
|
|
731
|
+
const queryParameters = {};
|
|
732
|
+
const headerParameters = {};
|
|
733
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
734
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
735
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
736
|
+
}
|
|
737
|
+
const response = await this.request({
|
|
738
|
+
path: `/projects/{projectId}/tickets/move`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
739
|
+
method: 'POST',
|
|
740
|
+
headers: headerParameters,
|
|
741
|
+
query: queryParameters,
|
|
742
|
+
body: (0, index_1.MoveTicketsRequestUioToJSON)(requestParameters['moveTicketsRequestUio']),
|
|
743
|
+
}, initOverrides);
|
|
744
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.MoveTicketsResultUioFromJSON)(jsonValue));
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* Emporte des tickets de l\'espace personnel de l\'appelant dans cet espace partagé, dont il est membre. Chaque ticket prend une clé de l\'espace (PERSO-16 devient REF-1) et garde son historique ; l\'ancienne clé ne mène plus nulle part. Un parent ou un enfant resté en arrière perd le lien ; les assignés et relecteurs qui ne sont pas membres de l\'espace sont retirés.
|
|
748
|
+
* Move tickets into a project
|
|
749
|
+
*/
|
|
750
|
+
async moveTickets(projectId, moveTicketsRequestUio, initOverrides) {
|
|
751
|
+
const response = await this.moveTicketsRaw({ projectId: projectId, moveTicketsRequestUio: moveTicketsRequestUio }, initOverrides);
|
|
752
|
+
return await response.value();
|
|
753
|
+
}
|
|
720
754
|
/**
|
|
721
755
|
* Écarte la proposition ; aucun ticket n\'est créé.
|
|
722
756
|
* Reject a ticket proposal
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brain-client
|
|
3
|
+
* Api ands models for brain-app and brain-app
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* `api_key` (default) creates an API key of the user. `jwt` returns a 1 h access token and a rotating 30-day refresh token instead, without creating an API key.
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export declare const ApplicationTokenFormatUio: {
|
|
18
|
+
readonly ApiKey: "api_key";
|
|
19
|
+
readonly Jwt: "jwt";
|
|
20
|
+
};
|
|
21
|
+
export type ApplicationTokenFormatUio = typeof ApplicationTokenFormatUio[keyof typeof ApplicationTokenFormatUio];
|
|
22
|
+
export declare function instanceOfApplicationTokenFormatUio(value: any): boolean;
|
|
23
|
+
export declare function ApplicationTokenFormatUioFromJSON(json: any): ApplicationTokenFormatUio;
|
|
24
|
+
export declare function ApplicationTokenFormatUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ApplicationTokenFormatUio;
|
|
25
|
+
export declare function ApplicationTokenFormatUioToJSON(value?: ApplicationTokenFormatUio | null): any;
|
|
26
|
+
export declare function ApplicationTokenFormatUioToJSONTyped(value: any, ignoreDiscriminator: boolean): ApplicationTokenFormatUio;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* brain-client
|
|
6
|
+
* Api ands models for brain-app and brain-app
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 0.0.0-SNAPSHOT
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ApplicationTokenFormatUio = void 0;
|
|
17
|
+
exports.instanceOfApplicationTokenFormatUio = instanceOfApplicationTokenFormatUio;
|
|
18
|
+
exports.ApplicationTokenFormatUioFromJSON = ApplicationTokenFormatUioFromJSON;
|
|
19
|
+
exports.ApplicationTokenFormatUioFromJSONTyped = ApplicationTokenFormatUioFromJSONTyped;
|
|
20
|
+
exports.ApplicationTokenFormatUioToJSON = ApplicationTokenFormatUioToJSON;
|
|
21
|
+
exports.ApplicationTokenFormatUioToJSONTyped = ApplicationTokenFormatUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* `api_key` (default) creates an API key of the user. `jwt` returns a 1 h access token and a rotating 30-day refresh token instead, without creating an API key.
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.ApplicationTokenFormatUio = {
|
|
28
|
+
ApiKey: 'api_key',
|
|
29
|
+
Jwt: 'jwt'
|
|
30
|
+
};
|
|
31
|
+
function instanceOfApplicationTokenFormatUio(value) {
|
|
32
|
+
for (const key in exports.ApplicationTokenFormatUio) {
|
|
33
|
+
if (Object.prototype.hasOwnProperty.call(exports.ApplicationTokenFormatUio, key)) {
|
|
34
|
+
if (exports.ApplicationTokenFormatUio[key] === value) {
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return false;
|
|
40
|
+
}
|
|
41
|
+
function ApplicationTokenFormatUioFromJSON(json) {
|
|
42
|
+
return ApplicationTokenFormatUioFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ApplicationTokenFormatUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
return json;
|
|
46
|
+
}
|
|
47
|
+
function ApplicationTokenFormatUioToJSON(value) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
function ApplicationTokenFormatUioToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
@@ -9,7 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ApplicationTokenFormatUio } from './ApplicationTokenFormatUio';
|
|
12
13
|
/**
|
|
14
|
+
* `authorization_code` exchanges the code (with `code`, `code_verifier` and `redirect_uri`); `refresh_token` renews the tokens of a session opened with `token_format=jwt`.
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
15
17
|
* @interface ApplicationTokenRequestUio
|
|
@@ -26,31 +28,44 @@ export interface ApplicationTokenRequestUio {
|
|
|
26
28
|
* @type {string}
|
|
27
29
|
* @memberof ApplicationTokenRequestUio
|
|
28
30
|
*/
|
|
29
|
-
code
|
|
31
|
+
code?: string;
|
|
30
32
|
/**
|
|
31
33
|
*
|
|
32
34
|
* @type {string}
|
|
33
35
|
* @memberof ApplicationTokenRequestUio
|
|
34
36
|
*/
|
|
35
|
-
codeVerifier
|
|
37
|
+
codeVerifier?: string;
|
|
36
38
|
/**
|
|
37
39
|
*
|
|
38
40
|
* @type {string}
|
|
39
41
|
* @memberof ApplicationTokenRequestUio
|
|
40
42
|
*/
|
|
41
|
-
redirectUri
|
|
43
|
+
redirectUri?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Required with `grant_type=refresh_token`.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ApplicationTokenRequestUio
|
|
48
|
+
*/
|
|
49
|
+
refreshToken?: string;
|
|
42
50
|
/**
|
|
43
51
|
*
|
|
44
52
|
* @type {string}
|
|
45
53
|
* @memberof ApplicationTokenRequestUio
|
|
46
54
|
*/
|
|
47
55
|
clientId: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ApplicationTokenFormatUio}
|
|
59
|
+
* @memberof ApplicationTokenRequestUio
|
|
60
|
+
*/
|
|
61
|
+
tokenFormat?: ApplicationTokenFormatUio;
|
|
48
62
|
}
|
|
49
63
|
/**
|
|
50
64
|
* @export
|
|
51
65
|
*/
|
|
52
66
|
export declare const ApplicationTokenRequestUioGrantTypeEnum: {
|
|
53
67
|
readonly AuthorizationCode: "authorization_code";
|
|
68
|
+
readonly RefreshToken: "refresh_token";
|
|
54
69
|
};
|
|
55
70
|
export type ApplicationTokenRequestUioGrantTypeEnum = typeof ApplicationTokenRequestUioGrantTypeEnum[keyof typeof ApplicationTokenRequestUioGrantTypeEnum];
|
|
56
71
|
/**
|
|
@@ -19,11 +19,13 @@ exports.ApplicationTokenRequestUioFromJSON = ApplicationTokenRequestUioFromJSON;
|
|
|
19
19
|
exports.ApplicationTokenRequestUioFromJSONTyped = ApplicationTokenRequestUioFromJSONTyped;
|
|
20
20
|
exports.ApplicationTokenRequestUioToJSON = ApplicationTokenRequestUioToJSON;
|
|
21
21
|
exports.ApplicationTokenRequestUioToJSONTyped = ApplicationTokenRequestUioToJSONTyped;
|
|
22
|
+
const ApplicationTokenFormatUio_1 = require("./ApplicationTokenFormatUio");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
25
26
|
exports.ApplicationTokenRequestUioGrantTypeEnum = {
|
|
26
|
-
AuthorizationCode: 'authorization_code'
|
|
27
|
+
AuthorizationCode: 'authorization_code',
|
|
28
|
+
RefreshToken: 'refresh_token'
|
|
27
29
|
};
|
|
28
30
|
/**
|
|
29
31
|
* Check if a given object implements the ApplicationTokenRequestUio interface.
|
|
@@ -31,12 +33,6 @@ exports.ApplicationTokenRequestUioGrantTypeEnum = {
|
|
|
31
33
|
function instanceOfApplicationTokenRequestUio(value) {
|
|
32
34
|
if (!('grantType' in value) || value['grantType'] === undefined)
|
|
33
35
|
return false;
|
|
34
|
-
if (!('code' in value) || value['code'] === undefined)
|
|
35
|
-
return false;
|
|
36
|
-
if (!('codeVerifier' in value) || value['codeVerifier'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('redirectUri' in value) || value['redirectUri'] === undefined)
|
|
39
|
-
return false;
|
|
40
36
|
if (!('clientId' in value) || value['clientId'] === undefined)
|
|
41
37
|
return false;
|
|
42
38
|
return true;
|
|
@@ -50,10 +46,12 @@ function ApplicationTokenRequestUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
46
|
}
|
|
51
47
|
return {
|
|
52
48
|
'grantType': json['grant_type'],
|
|
53
|
-
'code': json['code'],
|
|
54
|
-
'codeVerifier': json['code_verifier'],
|
|
55
|
-
'redirectUri': json['redirect_uri'],
|
|
49
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
50
|
+
'codeVerifier': json['code_verifier'] == null ? undefined : json['code_verifier'],
|
|
51
|
+
'redirectUri': json['redirect_uri'] == null ? undefined : json['redirect_uri'],
|
|
52
|
+
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
|
56
53
|
'clientId': json['client_id'],
|
|
54
|
+
'tokenFormat': json['token_format'] == null ? undefined : (0, ApplicationTokenFormatUio_1.ApplicationTokenFormatUioFromJSON)(json['token_format']),
|
|
57
55
|
};
|
|
58
56
|
}
|
|
59
57
|
function ApplicationTokenRequestUioToJSON(json) {
|
|
@@ -68,6 +66,8 @@ function ApplicationTokenRequestUioToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
68
66
|
'code': value['code'],
|
|
69
67
|
'code_verifier': value['codeVerifier'],
|
|
70
68
|
'redirect_uri': value['redirectUri'],
|
|
69
|
+
'refresh_token': value['refreshToken'],
|
|
71
70
|
'client_id': value['clientId'],
|
|
71
|
+
'token_format': (0, ApplicationTokenFormatUio_1.ApplicationTokenFormatUioToJSON)(value['tokenFormat']),
|
|
72
72
|
};
|
|
73
73
|
}
|
|
@@ -10,13 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
|
+
* An API key (`token_type: api_key`), or with `token_format=jwt` an access token and a refresh token (`token_type: Bearer`). Each refresh returns a new refresh token; the previous one stops working, and presenting it again closes the session.
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
15
16
|
* @interface ApplicationTokenResponseUio
|
|
16
17
|
*/
|
|
17
18
|
export interface ApplicationTokenResponseUio {
|
|
18
19
|
/**
|
|
19
|
-
* API key, to send in the `x-api-key` header
|
|
20
|
+
* API key, to send in the `x-api-key` header; or access token, to send as `Authorization: Bearer`.
|
|
21
|
+
*
|
|
20
22
|
* @type {string}
|
|
21
23
|
* @memberof ApplicationTokenResponseUio
|
|
22
24
|
*/
|
|
@@ -28,29 +30,48 @@ export interface ApplicationTokenResponseUio {
|
|
|
28
30
|
*/
|
|
29
31
|
tokenType: ApplicationTokenResponseUioTokenTypeEnum;
|
|
30
32
|
/**
|
|
31
|
-
*
|
|
33
|
+
* Only for an API key.
|
|
32
34
|
* @type {string}
|
|
33
35
|
* @memberof ApplicationTokenResponseUio
|
|
34
36
|
*/
|
|
35
|
-
keyId
|
|
37
|
+
keyId?: string;
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Only for an API key.
|
|
38
40
|
* @type {string}
|
|
39
41
|
* @memberof ApplicationTokenResponseUio
|
|
40
42
|
*/
|
|
41
|
-
keyName
|
|
43
|
+
keyName?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Lifetime of the access token in seconds. Only with `token_format=jwt`.
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof ApplicationTokenResponseUio
|
|
48
|
+
*/
|
|
49
|
+
expiresIn?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Only with `token_format=jwt`.
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ApplicationTokenResponseUio
|
|
54
|
+
*/
|
|
55
|
+
refreshToken?: string;
|
|
42
56
|
/**
|
|
43
57
|
*
|
|
44
58
|
* @type {string}
|
|
45
59
|
* @memberof ApplicationTokenResponseUio
|
|
46
60
|
*/
|
|
47
61
|
email?: string | null;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof ApplicationTokenResponseUio
|
|
66
|
+
*/
|
|
67
|
+
userId?: string;
|
|
48
68
|
}
|
|
49
69
|
/**
|
|
50
70
|
* @export
|
|
51
71
|
*/
|
|
52
72
|
export declare const ApplicationTokenResponseUioTokenTypeEnum: {
|
|
53
73
|
readonly ApiKey: "api_key";
|
|
74
|
+
readonly Bearer: "Bearer";
|
|
54
75
|
};
|
|
55
76
|
export type ApplicationTokenResponseUioTokenTypeEnum = typeof ApplicationTokenResponseUioTokenTypeEnum[keyof typeof ApplicationTokenResponseUioTokenTypeEnum];
|
|
56
77
|
/**
|
|
@@ -23,7 +23,8 @@ exports.ApplicationTokenResponseUioToJSONTyped = ApplicationTokenResponseUioToJS
|
|
|
23
23
|
* @export
|
|
24
24
|
*/
|
|
25
25
|
exports.ApplicationTokenResponseUioTokenTypeEnum = {
|
|
26
|
-
ApiKey: 'api_key'
|
|
26
|
+
ApiKey: 'api_key',
|
|
27
|
+
Bearer: 'Bearer'
|
|
27
28
|
};
|
|
28
29
|
/**
|
|
29
30
|
* Check if a given object implements the ApplicationTokenResponseUio interface.
|
|
@@ -33,10 +34,6 @@ function instanceOfApplicationTokenResponseUio(value) {
|
|
|
33
34
|
return false;
|
|
34
35
|
if (!('tokenType' in value) || value['tokenType'] === undefined)
|
|
35
36
|
return false;
|
|
36
|
-
if (!('keyId' in value) || value['keyId'] === undefined)
|
|
37
|
-
return false;
|
|
38
|
-
if (!('keyName' in value) || value['keyName'] === undefined)
|
|
39
|
-
return false;
|
|
40
37
|
return true;
|
|
41
38
|
}
|
|
42
39
|
function ApplicationTokenResponseUioFromJSON(json) {
|
|
@@ -49,9 +46,12 @@ function ApplicationTokenResponseUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
46
|
return {
|
|
50
47
|
'accessToken': json['access_token'],
|
|
51
48
|
'tokenType': json['token_type'],
|
|
52
|
-
'keyId': json['key_id'],
|
|
53
|
-
'keyName': json['key_name'],
|
|
49
|
+
'keyId': json['key_id'] == null ? undefined : json['key_id'],
|
|
50
|
+
'keyName': json['key_name'] == null ? undefined : json['key_name'],
|
|
51
|
+
'expiresIn': json['expires_in'] == null ? undefined : json['expires_in'],
|
|
52
|
+
'refreshToken': json['refresh_token'] == null ? undefined : json['refresh_token'],
|
|
54
53
|
'email': json['email'] == null ? undefined : json['email'],
|
|
54
|
+
'userId': json['user_id'] == null ? undefined : json['user_id'],
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function ApplicationTokenResponseUioToJSON(json) {
|
|
@@ -66,6 +66,9 @@ function ApplicationTokenResponseUioToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
66
66
|
'token_type': value['tokenType'],
|
|
67
67
|
'key_id': value['keyId'],
|
|
68
68
|
'key_name': value['keyName'],
|
|
69
|
+
'expires_in': value['expiresIn'],
|
|
70
|
+
'refresh_token': value['refreshToken'],
|
|
69
71
|
'email': value['email'],
|
|
72
|
+
'user_id': value['userId'],
|
|
70
73
|
};
|
|
71
74
|
}
|