@breign/client 1.0.205 → 1.0.207
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/AiGatewayApi.d.ts +36 -1
- package/dist/apis/AiGatewayApi.js +85 -0
- package/dist/apis/TicketsApi.d.ts +53 -1
- package/dist/apis/TicketsApi.js +126 -0
- package/dist/models/AiGatewayRequestLogCursorUio.d.ts +38 -0
- package/dist/models/AiGatewayRequestLogCursorUio.js +54 -0
- package/dist/models/AiGatewayRequestLogStatusUio.d.ts +25 -0
- package/dist/models/AiGatewayRequestLogStatusUio.js +51 -0
- package/dist/models/AiGatewayRequestLogSummaryUio.d.ts +141 -0
- package/dist/models/AiGatewayRequestLogSummaryUio.js +123 -0
- package/dist/models/AiGatewayRequestLogUio.d.ts +157 -0
- package/dist/models/AiGatewayRequestLogUio.js +131 -0
- package/dist/models/AiGatewayRequestLogsResponseUio.d.ts +46 -0
- package/dist/models/AiGatewayRequestLogsResponseUio.js +60 -0
- package/dist/models/ArtifactLibraryItemAllOfProjectUio.d.ts +56 -0
- package/dist/models/ArtifactLibraryItemAllOfProjectUio.js +66 -0
- package/dist/models/ArtifactLibraryItemAllOfTicketUio.d.ts +51 -0
- package/dist/models/ArtifactLibraryItemAllOfTicketUio.js +63 -0
- package/dist/models/ArtifactLibraryItemUio.d.ts +103 -0
- package/dist/models/ArtifactLibraryItemUio.js +99 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +8 -0
- package/dist/openapi.json +762 -44
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewaySystemOneRequestUio, AiGatewaySystemOneResponseUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
13
|
+
import type { AiGatewayChatCompletionRequestUio, AiGatewayChatCompletionResponseUio, AiGatewayEmbeddingRequestUio, AiGatewayEmbeddingResponseUio, AiGatewayModelListUio, AiGatewayModelUio, AiGatewayRequestLogStatusUio, AiGatewayRequestLogUio, AiGatewayRequestLogsResponseUio, AiGatewaySettingsUio, AiGatewaySettingsUpdateRequestUio, AiGatewaySystemOneRequestUio, AiGatewaySystemOneResponseUio, AiGatewayUsageUio, AiGatewayV1CreditsUio, AiGatewayV1GenerationUio, AiGatewayV1ModelEndpointsUio, AiGatewayV1ModelListUio, AiGatewayV1ReportUio, OpenAiChatCompletionRequestUio, OpenAiChatCompletionResponseUio } from '../models/index';
|
|
14
14
|
export interface CreateAiGatewayChatCompletionRequest {
|
|
15
15
|
organizationId: string;
|
|
16
16
|
aiGatewayChatCompletionRequestUio: AiGatewayChatCompletionRequestUio;
|
|
@@ -44,6 +44,10 @@ export interface GetAiGatewayModelRequest {
|
|
|
44
44
|
organizationId: string;
|
|
45
45
|
model: string;
|
|
46
46
|
}
|
|
47
|
+
export interface GetAiGatewayRequestLogRequest {
|
|
48
|
+
organizationId: string;
|
|
49
|
+
logId: string;
|
|
50
|
+
}
|
|
47
51
|
export interface GetAiGatewaySettingsRequest {
|
|
48
52
|
organizationId: string;
|
|
49
53
|
}
|
|
@@ -74,6 +78,17 @@ export interface GetAiGatewayV1ReportRequest {
|
|
|
74
78
|
export interface ListAiGatewayModelsRequest {
|
|
75
79
|
organizationId: string;
|
|
76
80
|
}
|
|
81
|
+
export interface ListAiGatewayRequestLogsRequest {
|
|
82
|
+
organizationId: string;
|
|
83
|
+
userId?: string;
|
|
84
|
+
model?: string;
|
|
85
|
+
status?: AiGatewayRequestLogStatusUio;
|
|
86
|
+
startDate?: Date;
|
|
87
|
+
endDate?: Date;
|
|
88
|
+
limit?: number;
|
|
89
|
+
beforeCreatedAt?: string;
|
|
90
|
+
beforeId?: string;
|
|
91
|
+
}
|
|
77
92
|
export interface ListAiGatewayV1ModelsRequest {
|
|
78
93
|
organizationId: string;
|
|
79
94
|
}
|
|
@@ -169,6 +184,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
169
184
|
* Get a model available through the AI gateway
|
|
170
185
|
*/
|
|
171
186
|
getAiGatewayModel(organizationId: string, model: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayModelUio>;
|
|
187
|
+
/**
|
|
188
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
189
|
+
* Read one request sent to a provider, with its content
|
|
190
|
+
*/
|
|
191
|
+
getAiGatewayRequestLogRaw(requestParameters: GetAiGatewayRequestLogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewayRequestLogUio>>;
|
|
192
|
+
/**
|
|
193
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
194
|
+
* Read one request sent to a provider, with its content
|
|
195
|
+
*/
|
|
196
|
+
getAiGatewayRequestLog(organizationId: string, logId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayRequestLogUio>;
|
|
172
197
|
/**
|
|
173
198
|
* Limites des modèles dont l\'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.
|
|
174
199
|
* Get AI Gateway limits settings
|
|
@@ -229,6 +254,16 @@ export declare class AiGatewayApi extends runtime.BaseAPI {
|
|
|
229
254
|
* List models available through the AI gateway
|
|
230
255
|
*/
|
|
231
256
|
listAiGatewayModels(organizationId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayModelListUio>;
|
|
257
|
+
/**
|
|
258
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
259
|
+
* List the requests sent to providers by the AI gateway
|
|
260
|
+
*/
|
|
261
|
+
listAiGatewayRequestLogsRaw(requestParameters: ListAiGatewayRequestLogsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AiGatewayRequestLogsResponseUio>>;
|
|
262
|
+
/**
|
|
263
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
264
|
+
* List the requests sent to providers by the AI gateway
|
|
265
|
+
*/
|
|
266
|
+
listAiGatewayRequestLogs(organizationId: string, userId?: string, model?: string, status?: AiGatewayRequestLogStatusUio, startDate?: Date, endDate?: Date, limit?: number, beforeCreatedAt?: string, beforeId?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AiGatewayRequestLogsResponseUio>;
|
|
232
267
|
/**
|
|
233
268
|
* Équivalent de `GET /v1/models` de l\'AI Gateway Vercel, monté sous le préfixe organisation. Liste les modèles des providers configurés pour l\'organisation.
|
|
234
269
|
* List models (AI Gateway REST API)
|
|
@@ -319,6 +319,38 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
319
319
|
const response = await this.getAiGatewayModelRaw({ organizationId: organizationId, model: model }, initOverrides);
|
|
320
320
|
return await response.value();
|
|
321
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
324
|
+
* Read one request sent to a provider, with its content
|
|
325
|
+
*/
|
|
326
|
+
async getAiGatewayRequestLogRaw(requestParameters, initOverrides) {
|
|
327
|
+
if (requestParameters['organizationId'] == null) {
|
|
328
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getAiGatewayRequestLog().');
|
|
329
|
+
}
|
|
330
|
+
if (requestParameters['logId'] == null) {
|
|
331
|
+
throw new runtime.RequiredError('logId', 'Required parameter "logId" was null or undefined when calling getAiGatewayRequestLog().');
|
|
332
|
+
}
|
|
333
|
+
const queryParameters = {};
|
|
334
|
+
const headerParameters = {};
|
|
335
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
336
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
337
|
+
}
|
|
338
|
+
const response = await this.request({
|
|
339
|
+
path: `/organizations/{organizationId}/ai-gateway/request-logs/{logId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"logId"}}`, encodeURIComponent(String(requestParameters['logId']))),
|
|
340
|
+
method: 'GET',
|
|
341
|
+
headers: headerParameters,
|
|
342
|
+
query: queryParameters,
|
|
343
|
+
}, initOverrides);
|
|
344
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewayRequestLogUioFromJSON)(jsonValue));
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Paramètres, contenu et réponse d\'une requête. Réservé aux administrateurs de l\'organisation.
|
|
348
|
+
* Read one request sent to a provider, with its content
|
|
349
|
+
*/
|
|
350
|
+
async getAiGatewayRequestLog(organizationId, logId, initOverrides) {
|
|
351
|
+
const response = await this.getAiGatewayRequestLogRaw({ organizationId: organizationId, logId: logId }, initOverrides);
|
|
352
|
+
return await response.value();
|
|
353
|
+
}
|
|
322
354
|
/**
|
|
323
355
|
* Limites des modèles dont l\'organisation détient la clé API (providerSource EXTERNAL). Les modèles Breign se configurent via internal-settings.
|
|
324
356
|
* Get AI Gateway limits settings
|
|
@@ -538,6 +570,59 @@ class AiGatewayApi extends runtime.BaseAPI {
|
|
|
538
570
|
const response = await this.listAiGatewayModelsRaw({ organizationId: organizationId }, initOverrides);
|
|
539
571
|
return await response.value();
|
|
540
572
|
}
|
|
573
|
+
/**
|
|
574
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
575
|
+
* List the requests sent to providers by the AI gateway
|
|
576
|
+
*/
|
|
577
|
+
async listAiGatewayRequestLogsRaw(requestParameters, initOverrides) {
|
|
578
|
+
if (requestParameters['organizationId'] == null) {
|
|
579
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listAiGatewayRequestLogs().');
|
|
580
|
+
}
|
|
581
|
+
const queryParameters = {};
|
|
582
|
+
if (requestParameters['userId'] != null) {
|
|
583
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['model'] != null) {
|
|
586
|
+
queryParameters['model'] = requestParameters['model'];
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['status'] != null) {
|
|
589
|
+
queryParameters['status'] = requestParameters['status'];
|
|
590
|
+
}
|
|
591
|
+
if (requestParameters['startDate'] != null) {
|
|
592
|
+
queryParameters['startDate'] = requestParameters['startDate'].toISOString();
|
|
593
|
+
}
|
|
594
|
+
if (requestParameters['endDate'] != null) {
|
|
595
|
+
queryParameters['endDate'] = requestParameters['endDate'].toISOString();
|
|
596
|
+
}
|
|
597
|
+
if (requestParameters['limit'] != null) {
|
|
598
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
599
|
+
}
|
|
600
|
+
if (requestParameters['beforeCreatedAt'] != null) {
|
|
601
|
+
queryParameters['beforeCreatedAt'] = requestParameters['beforeCreatedAt'];
|
|
602
|
+
}
|
|
603
|
+
if (requestParameters['beforeId'] != null) {
|
|
604
|
+
queryParameters['beforeId'] = requestParameters['beforeId'];
|
|
605
|
+
}
|
|
606
|
+
const headerParameters = {};
|
|
607
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
608
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
609
|
+
}
|
|
610
|
+
const response = await this.request({
|
|
611
|
+
path: `/organizations/{organizationId}/ai-gateway/request-logs`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
612
|
+
method: 'GET',
|
|
613
|
+
headers: headerParameters,
|
|
614
|
+
query: queryParameters,
|
|
615
|
+
}, initOverrides);
|
|
616
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AiGatewayRequestLogsResponseUioFromJSON)(jsonValue));
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Requêtes parties vers un provider, de la plus récente à la plus ancienne et sans leur contenu. Réservé aux administrateurs de l\'organisation.
|
|
620
|
+
* List the requests sent to providers by the AI gateway
|
|
621
|
+
*/
|
|
622
|
+
async listAiGatewayRequestLogs(organizationId, userId, model, status, startDate, endDate, limit, beforeCreatedAt, beforeId, initOverrides) {
|
|
623
|
+
const response = await this.listAiGatewayRequestLogsRaw({ organizationId: organizationId, userId: userId, model: model, status: status, startDate: startDate, endDate: endDate, limit: limit, beforeCreatedAt: beforeCreatedAt, beforeId: beforeId }, initOverrides);
|
|
624
|
+
return await response.value();
|
|
625
|
+
}
|
|
541
626
|
/**
|
|
542
627
|
* Équivalent de `GET /v1/models` de l\'AI Gateway Vercel, monté sous le préfixe organisation. Liste les modèles des providers configurés pour l\'organisation.
|
|
543
628
|
* List models (AI Gateway REST API)
|
|
@@ -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, MoveTicketsRequestUio, MoveTicketsResultUio, SaveTicketArtifactVersionRequestUio, SetTicketAssigneesRequestUio, TicketAgentExecutionUio, TicketApprovalRequestUio, TicketArtifactDownloadUrlUio, TicketArtifactUio, TicketBoardUio, TicketEventUio, TicketReviewRequestUio, TicketSessionMessageRequestUio, TicketStatusUio, TicketThreadsUio, TicketUio, TicketUsageUio, UpdateTicketRequestUio } from '../models/index';
|
|
13
|
+
import type { AcceptTicketProposalRequestUio, AgentAtWorkUio, ArtifactLibraryItemUio, 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;
|
|
@@ -73,6 +73,28 @@ export interface GiveTicketGoAheadRequest {
|
|
|
73
73
|
assigneeType: MemberTypeUio;
|
|
74
74
|
assigneeId: string;
|
|
75
75
|
}
|
|
76
|
+
export interface ListAgentArtifactsRequest {
|
|
77
|
+
organizationId: string;
|
|
78
|
+
agentId: string;
|
|
79
|
+
search?: string;
|
|
80
|
+
mimeType?: string;
|
|
81
|
+
page?: number;
|
|
82
|
+
limit?: number;
|
|
83
|
+
}
|
|
84
|
+
export interface ListOrganizationArtifactsRequest {
|
|
85
|
+
organizationId: string;
|
|
86
|
+
search?: string;
|
|
87
|
+
mimeType?: string;
|
|
88
|
+
page?: number;
|
|
89
|
+
limit?: number;
|
|
90
|
+
}
|
|
91
|
+
export interface ListProjectArtifactsRequest {
|
|
92
|
+
projectId: string;
|
|
93
|
+
search?: string;
|
|
94
|
+
mimeType?: string;
|
|
95
|
+
page?: number;
|
|
96
|
+
limit?: number;
|
|
97
|
+
}
|
|
76
98
|
export interface ListProjectTicketsRequest {
|
|
77
99
|
projectId: string;
|
|
78
100
|
status?: Array<TicketStatusUio>;
|
|
@@ -294,6 +316,36 @@ export declare class TicketsApi extends runtime.BaseAPI {
|
|
|
294
316
|
* Give the go-ahead to an assignee
|
|
295
317
|
*/
|
|
296
318
|
giveTicketGoAhead(ticketId: string, assigneeType: MemberTypeUio, assigneeId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TicketUio>;
|
|
319
|
+
/**
|
|
320
|
+
* Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
|
|
321
|
+
* List the artifacts added by an agent
|
|
322
|
+
*/
|
|
323
|
+
listAgentArtifactsRaw(requestParameters: ListAgentArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
|
|
324
|
+
/**
|
|
325
|
+
* Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
|
|
326
|
+
* List the artifacts added by an agent
|
|
327
|
+
*/
|
|
328
|
+
listAgentArtifacts(organizationId: string, agentId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
|
|
329
|
+
/**
|
|
330
|
+
* Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
|
|
331
|
+
* List the artifacts of an organization
|
|
332
|
+
*/
|
|
333
|
+
listOrganizationArtifactsRaw(requestParameters: ListOrganizationArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
|
|
334
|
+
/**
|
|
335
|
+
* Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
|
|
336
|
+
* List the artifacts of an organization
|
|
337
|
+
*/
|
|
338
|
+
listOrganizationArtifacts(organizationId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
|
|
339
|
+
/**
|
|
340
|
+
* Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
|
|
341
|
+
* List the artifacts of a workspace
|
|
342
|
+
*/
|
|
343
|
+
listProjectArtifactsRaw(requestParameters: ListProjectArtifactsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ArtifactLibraryItemUio>>>;
|
|
344
|
+
/**
|
|
345
|
+
* Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
|
|
346
|
+
* List the artifacts of a workspace
|
|
347
|
+
*/
|
|
348
|
+
listProjectArtifacts(projectId: string, search?: string, mimeType?: string, page?: number, limit?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ArtifactLibraryItemUio>>;
|
|
297
349
|
/**
|
|
298
350
|
* Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
|
|
299
351
|
* List the tickets of a project
|
package/dist/apis/TicketsApi.js
CHANGED
|
@@ -568,6 +568,132 @@ class TicketsApi extends runtime.BaseAPI {
|
|
|
568
568
|
const response = await this.giveTicketGoAheadRaw({ ticketId: ticketId, assigneeType: assigneeType, assigneeId: assigneeId }, initOverrides);
|
|
569
569
|
return await response.value();
|
|
570
570
|
}
|
|
571
|
+
/**
|
|
572
|
+
* Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
|
|
573
|
+
* List the artifacts added by an agent
|
|
574
|
+
*/
|
|
575
|
+
async listAgentArtifactsRaw(requestParameters, initOverrides) {
|
|
576
|
+
if (requestParameters['organizationId'] == null) {
|
|
577
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listAgentArtifacts().');
|
|
578
|
+
}
|
|
579
|
+
if (requestParameters['agentId'] == null) {
|
|
580
|
+
throw new runtime.RequiredError('agentId', 'Required parameter "agentId" was null or undefined when calling listAgentArtifacts().');
|
|
581
|
+
}
|
|
582
|
+
const queryParameters = {};
|
|
583
|
+
if (requestParameters['search'] != null) {
|
|
584
|
+
queryParameters['search'] = requestParameters['search'];
|
|
585
|
+
}
|
|
586
|
+
if (requestParameters['mimeType'] != null) {
|
|
587
|
+
queryParameters['mimeType'] = requestParameters['mimeType'];
|
|
588
|
+
}
|
|
589
|
+
if (requestParameters['page'] != null) {
|
|
590
|
+
queryParameters['page'] = requestParameters['page'];
|
|
591
|
+
}
|
|
592
|
+
if (requestParameters['limit'] != null) {
|
|
593
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
594
|
+
}
|
|
595
|
+
const headerParameters = {};
|
|
596
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
597
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
598
|
+
}
|
|
599
|
+
const response = await this.request({
|
|
600
|
+
path: `/organizations/{organizationId}/agents/{agentId}/artifacts`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"agentId"}}`, encodeURIComponent(String(requestParameters['agentId']))),
|
|
601
|
+
method: 'GET',
|
|
602
|
+
headers: headerParameters,
|
|
603
|
+
query: queryParameters,
|
|
604
|
+
}, initOverrides);
|
|
605
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Bibliothèque d\'artefacts d\'un agent : ceux qu\'il a joints, dans les espaces que l\'appelant peut lire (ceux dont il est membre, tous les espaces partagés pour un admin, et son espace personnel).
|
|
609
|
+
* List the artifacts added by an agent
|
|
610
|
+
*/
|
|
611
|
+
async listAgentArtifacts(organizationId, agentId, search, mimeType, page, limit, initOverrides) {
|
|
612
|
+
const response = await this.listAgentArtifactsRaw({ organizationId: organizationId, agentId: agentId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
|
|
613
|
+
return await response.value();
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
|
|
617
|
+
* List the artifacts of an organization
|
|
618
|
+
*/
|
|
619
|
+
async listOrganizationArtifactsRaw(requestParameters, initOverrides) {
|
|
620
|
+
if (requestParameters['organizationId'] == null) {
|
|
621
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationArtifacts().');
|
|
622
|
+
}
|
|
623
|
+
const queryParameters = {};
|
|
624
|
+
if (requestParameters['search'] != null) {
|
|
625
|
+
queryParameters['search'] = requestParameters['search'];
|
|
626
|
+
}
|
|
627
|
+
if (requestParameters['mimeType'] != null) {
|
|
628
|
+
queryParameters['mimeType'] = requestParameters['mimeType'];
|
|
629
|
+
}
|
|
630
|
+
if (requestParameters['page'] != null) {
|
|
631
|
+
queryParameters['page'] = requestParameters['page'];
|
|
632
|
+
}
|
|
633
|
+
if (requestParameters['limit'] != null) {
|
|
634
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
635
|
+
}
|
|
636
|
+
const headerParameters = {};
|
|
637
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
638
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
639
|
+
}
|
|
640
|
+
const response = await this.request({
|
|
641
|
+
path: `/organizations/{organizationId}/artifacts`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
642
|
+
method: 'GET',
|
|
643
|
+
headers: headerParameters,
|
|
644
|
+
query: queryParameters,
|
|
645
|
+
}, initOverrides);
|
|
646
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Bibliothèque d\'artefacts de l\'organisation, vue d\'admin : les artefacts de tous les espaces partagés, et de l\'espace personnel de l\'appelant ; jamais de l\'espace personnel d\'un autre.
|
|
650
|
+
* List the artifacts of an organization
|
|
651
|
+
*/
|
|
652
|
+
async listOrganizationArtifacts(organizationId, search, mimeType, page, limit, initOverrides) {
|
|
653
|
+
const response = await this.listOrganizationArtifactsRaw({ organizationId: organizationId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
|
|
654
|
+
return await response.value();
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
|
|
658
|
+
* List the artifacts of a workspace
|
|
659
|
+
*/
|
|
660
|
+
async listProjectArtifactsRaw(requestParameters, initOverrides) {
|
|
661
|
+
if (requestParameters['projectId'] == null) {
|
|
662
|
+
throw new runtime.RequiredError('projectId', 'Required parameter "projectId" was null or undefined when calling listProjectArtifacts().');
|
|
663
|
+
}
|
|
664
|
+
const queryParameters = {};
|
|
665
|
+
if (requestParameters['search'] != null) {
|
|
666
|
+
queryParameters['search'] = requestParameters['search'];
|
|
667
|
+
}
|
|
668
|
+
if (requestParameters['mimeType'] != null) {
|
|
669
|
+
queryParameters['mimeType'] = requestParameters['mimeType'];
|
|
670
|
+
}
|
|
671
|
+
if (requestParameters['page'] != null) {
|
|
672
|
+
queryParameters['page'] = requestParameters['page'];
|
|
673
|
+
}
|
|
674
|
+
if (requestParameters['limit'] != null) {
|
|
675
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
676
|
+
}
|
|
677
|
+
const headerParameters = {};
|
|
678
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
679
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
680
|
+
}
|
|
681
|
+
const response = await this.request({
|
|
682
|
+
path: `/projects/{projectId}/artifacts`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters['projectId']))),
|
|
683
|
+
method: 'GET',
|
|
684
|
+
headers: headerParameters,
|
|
685
|
+
query: queryParameters,
|
|
686
|
+
}, initOverrides);
|
|
687
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.ArtifactLibraryItemUioFromJSON));
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* Bibliothèque d\'artefacts de l\'espace de travail : les artefacts prêts de tous ses tickets.
|
|
691
|
+
* List the artifacts of a workspace
|
|
692
|
+
*/
|
|
693
|
+
async listProjectArtifacts(projectId, search, mimeType, page, limit, initOverrides) {
|
|
694
|
+
const response = await this.listProjectArtifactsRaw({ projectId: projectId, search: search, mimeType: mimeType, page: page, limit: limit }, initOverrides);
|
|
695
|
+
return await response.value();
|
|
696
|
+
}
|
|
571
697
|
/**
|
|
572
698
|
* Liste paginée. Filtrée sur done, elle est triée du plus récemment terminé au plus ancien ; sinon de la plus récente activité à la plus ancienne.
|
|
573
699
|
* List the tickets of a project
|
|
@@ -0,0 +1,38 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AiGatewayRequestLogCursorUio
|
|
16
|
+
*/
|
|
17
|
+
export interface AiGatewayRequestLogCursorUio {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AiGatewayRequestLogCursorUio
|
|
22
|
+
*/
|
|
23
|
+
createdAt: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof AiGatewayRequestLogCursorUio
|
|
28
|
+
*/
|
|
29
|
+
id: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AiGatewayRequestLogCursorUio interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAiGatewayRequestLogCursorUio(value: object): value is AiGatewayRequestLogCursorUio;
|
|
35
|
+
export declare function AiGatewayRequestLogCursorUioFromJSON(json: any): AiGatewayRequestLogCursorUio;
|
|
36
|
+
export declare function AiGatewayRequestLogCursorUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogCursorUio;
|
|
37
|
+
export declare function AiGatewayRequestLogCursorUioToJSON(json: any): AiGatewayRequestLogCursorUio;
|
|
38
|
+
export declare function AiGatewayRequestLogCursorUioToJSONTyped(value?: AiGatewayRequestLogCursorUio | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAiGatewayRequestLogCursorUio = instanceOfAiGatewayRequestLogCursorUio;
|
|
17
|
+
exports.AiGatewayRequestLogCursorUioFromJSON = AiGatewayRequestLogCursorUioFromJSON;
|
|
18
|
+
exports.AiGatewayRequestLogCursorUioFromJSONTyped = AiGatewayRequestLogCursorUioFromJSONTyped;
|
|
19
|
+
exports.AiGatewayRequestLogCursorUioToJSON = AiGatewayRequestLogCursorUioToJSON;
|
|
20
|
+
exports.AiGatewayRequestLogCursorUioToJSONTyped = AiGatewayRequestLogCursorUioToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AiGatewayRequestLogCursorUio interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAiGatewayRequestLogCursorUio(value) {
|
|
25
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AiGatewayRequestLogCursorUioFromJSON(json) {
|
|
32
|
+
return AiGatewayRequestLogCursorUioFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AiGatewayRequestLogCursorUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'createdAt': json['createdAt'],
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayRequestLogCursorUioToJSON(json) {
|
|
44
|
+
return AiGatewayRequestLogCursorUioToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AiGatewayRequestLogCursorUioToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'createdAt': value['createdAt'],
|
|
52
|
+
'id': value['id'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
*/
|
|
16
|
+
export declare const AiGatewayRequestLogStatusUio: {
|
|
17
|
+
readonly Ok: "ok";
|
|
18
|
+
readonly Error: "error";
|
|
19
|
+
};
|
|
20
|
+
export type AiGatewayRequestLogStatusUio = typeof AiGatewayRequestLogStatusUio[keyof typeof AiGatewayRequestLogStatusUio];
|
|
21
|
+
export declare function instanceOfAiGatewayRequestLogStatusUio(value: any): boolean;
|
|
22
|
+
export declare function AiGatewayRequestLogStatusUioFromJSON(json: any): AiGatewayRequestLogStatusUio;
|
|
23
|
+
export declare function AiGatewayRequestLogStatusUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayRequestLogStatusUio;
|
|
24
|
+
export declare function AiGatewayRequestLogStatusUioToJSON(value?: AiGatewayRequestLogStatusUio | null): any;
|
|
25
|
+
export declare function AiGatewayRequestLogStatusUioToJSONTyped(value: any, ignoreDiscriminator: boolean): AiGatewayRequestLogStatusUio;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.AiGatewayRequestLogStatusUio = void 0;
|
|
17
|
+
exports.instanceOfAiGatewayRequestLogStatusUio = instanceOfAiGatewayRequestLogStatusUio;
|
|
18
|
+
exports.AiGatewayRequestLogStatusUioFromJSON = AiGatewayRequestLogStatusUioFromJSON;
|
|
19
|
+
exports.AiGatewayRequestLogStatusUioFromJSONTyped = AiGatewayRequestLogStatusUioFromJSONTyped;
|
|
20
|
+
exports.AiGatewayRequestLogStatusUioToJSON = AiGatewayRequestLogStatusUioToJSON;
|
|
21
|
+
exports.AiGatewayRequestLogStatusUioToJSONTyped = AiGatewayRequestLogStatusUioToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
*/
|
|
26
|
+
exports.AiGatewayRequestLogStatusUio = {
|
|
27
|
+
Ok: 'ok',
|
|
28
|
+
Error: 'error'
|
|
29
|
+
};
|
|
30
|
+
function instanceOfAiGatewayRequestLogStatusUio(value) {
|
|
31
|
+
for (const key in exports.AiGatewayRequestLogStatusUio) {
|
|
32
|
+
if (Object.prototype.hasOwnProperty.call(exports.AiGatewayRequestLogStatusUio, key)) {
|
|
33
|
+
if (exports.AiGatewayRequestLogStatusUio[key] === value) {
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
function AiGatewayRequestLogStatusUioFromJSON(json) {
|
|
41
|
+
return AiGatewayRequestLogStatusUioFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function AiGatewayRequestLogStatusUioFromJSONTyped(json, ignoreDiscriminator) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
function AiGatewayRequestLogStatusUioToJSON(value) {
|
|
47
|
+
return value;
|
|
48
|
+
}
|
|
49
|
+
function AiGatewayRequestLogStatusUioToJSONTyped(value, ignoreDiscriminator) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|