@breign/client 1.0.101 → 1.0.103
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/AgentApi.d.ts +14 -0
- package/dist/apis/AgentApi.js +32 -0
- package/dist/apis/ConfigurationApi.d.ts +7 -7
- package/dist/apis/ConfigurationApi.js +5 -5
- package/dist/apis/OrganizationsApi.d.ts +175 -1
- package/dist/apis/OrganizationsApi.js +433 -0
- package/dist/apis/ScheduledTasksApi.d.ts +143 -0
- package/dist/apis/ScheduledTasksApi.js +364 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccessRoleCreateRequestUio.d.ts +45 -0
- package/dist/models/AccessRoleCreateRequestUio.js +55 -0
- package/dist/models/AccessRolePermissionsRequestUio.d.ts +33 -0
- package/dist/models/AccessRolePermissionsRequestUio.js +51 -0
- package/dist/models/AccessRoleUio.d.ts +75 -0
- package/dist/models/AccessRoleUio.js +75 -0
- package/dist/models/AccessRoleUpdateRequestUio.d.ts +38 -0
- package/dist/models/AccessRoleUpdateRequestUio.js +52 -0
- package/dist/models/ChatUio.d.ts +14 -0
- package/dist/models/ChatUio.js +10 -0
- package/dist/models/GetUploadLimits200ResponseUio.d.ts +32 -0
- package/dist/models/GetUploadLimits200ResponseUio.js +50 -0
- package/dist/models/OrganizationMemberUio.d.ts +51 -0
- package/dist/models/OrganizationMemberUio.js +63 -0
- package/dist/models/OrganizationMemberUserUio.d.ts +32 -0
- package/dist/models/OrganizationMemberUserUio.js +50 -0
- package/dist/models/OrganizationPermissionKeyUio.d.ts +59 -0
- package/dist/models/OrganizationPermissionKeyUio.js +85 -0
- package/dist/models/OrganizationUserInviteRequestUio.d.ts +38 -0
- package/dist/models/OrganizationUserInviteRequestUio.js +52 -0
- package/dist/models/OrganizationUserInviteResponseUio.d.ts +32 -0
- package/dist/models/OrganizationUserInviteResponseUio.js +50 -0
- package/dist/models/PermissionEntryUio.d.ts +39 -0
- package/dist/models/PermissionEntryUio.js +55 -0
- package/dist/models/PromptCreateRequestUio.d.ts +14 -0
- package/dist/models/PromptCreateRequestUio.js +10 -0
- package/dist/models/PromptFlowCreateRequestUio.d.ts +14 -0
- package/dist/models/PromptFlowCreateRequestUio.js +10 -0
- package/dist/models/ProviderValiationRequestUio.d.ts +6 -0
- package/dist/models/ProviderValiationRequestUio.js +4 -0
- package/dist/models/RunStepUio.d.ts +78 -0
- package/dist/models/RunStepUio.js +74 -0
- package/dist/models/ScheduledTaskCreateUio.d.ts +77 -0
- package/dist/models/ScheduledTaskCreateUio.js +75 -0
- package/dist/models/ScheduledTaskListUio.d.ts +39 -0
- package/dist/models/ScheduledTaskListUio.js +55 -0
- package/dist/models/ScheduledTaskManualRunResponseUio.d.ts +32 -0
- package/dist/models/ScheduledTaskManualRunResponseUio.js +50 -0
- package/dist/models/ScheduledTaskRunListUio.d.ts +39 -0
- package/dist/models/ScheduledTaskRunListUio.js +55 -0
- package/dist/models/ScheduledTaskRunUio.d.ts +110 -0
- package/dist/models/ScheduledTaskRunUio.js +98 -0
- package/dist/models/ScheduledTaskStatusResponseUio.d.ts +46 -0
- package/dist/models/ScheduledTaskStatusResponseUio.js +60 -0
- package/dist/models/ScheduledTaskStatusToggleUio.d.ts +40 -0
- package/dist/models/ScheduledTaskStatusToggleUio.js +58 -0
- package/dist/models/ScheduledTaskUio.d.ts +146 -0
- package/dist/models/ScheduledTaskUio.js +123 -0
- package/dist/models/TaskScheduleEndOneOf1Uio.d.ts +45 -0
- package/dist/models/TaskScheduleEndOneOf1Uio.js +61 -0
- package/dist/models/TaskScheduleEndOneOf2Uio.d.ts +45 -0
- package/dist/models/TaskScheduleEndOneOf2Uio.js +61 -0
- package/dist/models/TaskScheduleEndOneOfUio.d.ts +39 -0
- package/dist/models/TaskScheduleEndOneOfUio.js +57 -0
- package/dist/models/TaskScheduleEndUio.d.ts +24 -0
- package/dist/models/TaskScheduleEndUio.js +64 -0
- package/dist/models/TaskScheduleIntervalUio.d.ts +47 -0
- package/dist/models/TaskScheduleIntervalUio.js +63 -0
- package/dist/models/TaskScheduleUio.d.ts +94 -0
- package/dist/models/TaskScheduleUio.js +78 -0
- package/dist/models/UserAccessRolesRequestUio.d.ts +32 -0
- package/dist/models/UserAccessRolesRequestUio.js +50 -0
- package/dist/models/UserAccessUio.d.ts +39 -0
- package/dist/models/UserAccessUio.js +55 -0
- package/dist/models/UserAgentAccessAgentUio.d.ts +38 -0
- package/dist/models/UserAgentAccessAgentUio.js +54 -0
- package/dist/models/UserAgentAccessRequestUio.d.ts +38 -0
- package/dist/models/UserAgentAccessRequestUio.js +54 -0
- package/dist/models/UserAgentAccessUio.d.ts +45 -0
- package/dist/models/UserAgentAccessUio.js +59 -0
- package/dist/models/UserDirectPermissionsRequestUio.d.ts +33 -0
- package/dist/models/UserDirectPermissionsRequestUio.js +51 -0
- package/dist/models/UserUio.d.ts +3 -3
- package/dist/models/UserUio.js +3 -3
- package/dist/models/index.d.ts +32 -2
- package/dist/models/index.js +32 -2
- package/dist/openapi.json +2329 -617
- package/package.json +1 -1
- package/dist/models/UploadLimitsResponseUio.d.ts +0 -32
- package/dist/models/UploadLimitsResponseUio.js +0 -50
- package/dist/models/UserUserUio.d.ts +0 -32
- package/dist/models/UserUserUio.js +0 -50
|
@@ -53,6 +53,38 @@ const index_1 = require("../models/index");
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
class OrganizationsApi extends runtime.BaseAPI {
|
|
56
|
+
/**
|
|
57
|
+
* Create an access role in an organization
|
|
58
|
+
*/
|
|
59
|
+
async createOrganizationAccessRoleRaw(requestParameters, initOverrides) {
|
|
60
|
+
if (requestParameters['organizationId'] == null) {
|
|
61
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling createOrganizationAccessRole().');
|
|
62
|
+
}
|
|
63
|
+
if (requestParameters['accessRoleCreateRequestUio'] == null) {
|
|
64
|
+
throw new runtime.RequiredError('accessRoleCreateRequestUio', 'Required parameter "accessRoleCreateRequestUio" was null or undefined when calling createOrganizationAccessRole().');
|
|
65
|
+
}
|
|
66
|
+
const queryParameters = {};
|
|
67
|
+
const headerParameters = {};
|
|
68
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
69
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
70
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
71
|
+
}
|
|
72
|
+
const response = await this.request({
|
|
73
|
+
path: `/organizations/{organizationId}/access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
74
|
+
method: 'POST',
|
|
75
|
+
headers: headerParameters,
|
|
76
|
+
query: queryParameters,
|
|
77
|
+
body: (0, index_1.AccessRoleCreateRequestUioToJSON)(requestParameters['accessRoleCreateRequestUio']),
|
|
78
|
+
}, initOverrides);
|
|
79
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccessRoleUioFromJSON)(jsonValue));
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Create an access role in an organization
|
|
83
|
+
*/
|
|
84
|
+
async createOrganizationAccessRole(organizationId, accessRoleCreateRequestUio, initOverrides) {
|
|
85
|
+
const response = await this.createOrganizationAccessRoleRaw({ organizationId: organizationId, accessRoleCreateRequestUio: accessRoleCreateRequestUio }, initOverrides);
|
|
86
|
+
return await response.value();
|
|
87
|
+
}
|
|
56
88
|
/**
|
|
57
89
|
* Creates a new agent role in the specified organization
|
|
58
90
|
* Create a role in an organization
|
|
@@ -87,6 +119,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
87
119
|
const response = await this.createOrganizationRoleRaw({ organizationId: organizationId, roleCreateRequestUio: roleCreateRequestUio }, initOverrides);
|
|
88
120
|
return await response.value();
|
|
89
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Delete an access role from an organization
|
|
124
|
+
*/
|
|
125
|
+
async deleteOrganizationAccessRoleRaw(requestParameters, initOverrides) {
|
|
126
|
+
if (requestParameters['organizationId'] == null) {
|
|
127
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationAccessRole().');
|
|
128
|
+
}
|
|
129
|
+
if (requestParameters['roleId'] == null) {
|
|
130
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling deleteOrganizationAccessRole().');
|
|
131
|
+
}
|
|
132
|
+
const queryParameters = {};
|
|
133
|
+
const headerParameters = {};
|
|
134
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
135
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
136
|
+
}
|
|
137
|
+
const response = await this.request({
|
|
138
|
+
path: `/organizations/{organizationId}/access-roles/{roleId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
139
|
+
method: 'DELETE',
|
|
140
|
+
headers: headerParameters,
|
|
141
|
+
query: queryParameters,
|
|
142
|
+
}, initOverrides);
|
|
143
|
+
return new runtime.VoidApiResponse(response);
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Delete an access role from an organization
|
|
147
|
+
*/
|
|
148
|
+
async deleteOrganizationAccessRole(organizationId, roleId, initOverrides) {
|
|
149
|
+
await this.deleteOrganizationAccessRoleRaw({ organizationId: organizationId, roleId: roleId }, initOverrides);
|
|
150
|
+
}
|
|
90
151
|
/**
|
|
91
152
|
* Deletes an agent role from the specified organization
|
|
92
153
|
* Delete a role from an organization
|
|
@@ -118,6 +179,35 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
118
179
|
async deleteOrganizationRole(organizationId, roleId, initOverrides) {
|
|
119
180
|
await this.deleteOrganizationRoleRaw({ organizationId: organizationId, roleId: roleId }, initOverrides);
|
|
120
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Remove a user from an organization
|
|
184
|
+
*/
|
|
185
|
+
async deleteOrganizationUserRaw(requestParameters, initOverrides) {
|
|
186
|
+
if (requestParameters['organizationId'] == null) {
|
|
187
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling deleteOrganizationUser().');
|
|
188
|
+
}
|
|
189
|
+
if (requestParameters['userId'] == null) {
|
|
190
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteOrganizationUser().');
|
|
191
|
+
}
|
|
192
|
+
const queryParameters = {};
|
|
193
|
+
const headerParameters = {};
|
|
194
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
196
|
+
}
|
|
197
|
+
const response = await this.request({
|
|
198
|
+
path: `/organizations/{organizationId}/users/{userId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
199
|
+
method: 'DELETE',
|
|
200
|
+
headers: headerParameters,
|
|
201
|
+
query: queryParameters,
|
|
202
|
+
}, initOverrides);
|
|
203
|
+
return new runtime.VoidApiResponse(response);
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Remove a user from an organization
|
|
207
|
+
*/
|
|
208
|
+
async deleteOrganizationUser(organizationId, userId, initOverrides) {
|
|
209
|
+
await this.deleteOrganizationUserRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
210
|
+
}
|
|
121
211
|
/**
|
|
122
212
|
* Retrieves an organization by its ID
|
|
123
213
|
* Get an organization by ID
|
|
@@ -205,6 +295,152 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
205
295
|
const response = await this.getOrganizationEngineRaw({ organizationId: organizationId }, initOverrides);
|
|
206
296
|
return await response.value();
|
|
207
297
|
}
|
|
298
|
+
/**
|
|
299
|
+
* Get current member resolved permissions
|
|
300
|
+
*/
|
|
301
|
+
async getOrganizationMemberPermissionsRaw(requestParameters, initOverrides) {
|
|
302
|
+
if (requestParameters['organizationId'] == null) {
|
|
303
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationMemberPermissions().');
|
|
304
|
+
}
|
|
305
|
+
const queryParameters = {};
|
|
306
|
+
const headerParameters = {};
|
|
307
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
308
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
309
|
+
}
|
|
310
|
+
const response = await this.request({
|
|
311
|
+
path: `/organizations/{organizationId}/members/me/permissions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
312
|
+
method: 'GET',
|
|
313
|
+
headers: headerParameters,
|
|
314
|
+
query: queryParameters,
|
|
315
|
+
}, initOverrides);
|
|
316
|
+
return new runtime.JSONApiResponse(response);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Get current member resolved permissions
|
|
320
|
+
*/
|
|
321
|
+
async getOrganizationMemberPermissions(organizationId, initOverrides) {
|
|
322
|
+
const response = await this.getOrganizationMemberPermissionsRaw({ organizationId: organizationId }, initOverrides);
|
|
323
|
+
return await response.value();
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Get user access roles and direct permissions
|
|
327
|
+
*/
|
|
328
|
+
async getOrganizationUserAccessRaw(requestParameters, initOverrides) {
|
|
329
|
+
if (requestParameters['organizationId'] == null) {
|
|
330
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationUserAccess().');
|
|
331
|
+
}
|
|
332
|
+
if (requestParameters['userId'] == null) {
|
|
333
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getOrganizationUserAccess().');
|
|
334
|
+
}
|
|
335
|
+
const queryParameters = {};
|
|
336
|
+
const headerParameters = {};
|
|
337
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
339
|
+
}
|
|
340
|
+
const response = await this.request({
|
|
341
|
+
path: `/organizations/{organizationId}/users/{userId}/access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
342
|
+
method: 'GET',
|
|
343
|
+
headers: headerParameters,
|
|
344
|
+
query: queryParameters,
|
|
345
|
+
}, initOverrides);
|
|
346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserAccessUioFromJSON)(jsonValue));
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Get user access roles and direct permissions
|
|
350
|
+
*/
|
|
351
|
+
async getOrganizationUserAccess(organizationId, userId, initOverrides) {
|
|
352
|
+
const response = await this.getOrganizationUserAccessRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
353
|
+
return await response.value();
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Get user agent access configuration
|
|
357
|
+
*/
|
|
358
|
+
async getOrganizationUserAgentsAccessRaw(requestParameters, initOverrides) {
|
|
359
|
+
if (requestParameters['organizationId'] == null) {
|
|
360
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling getOrganizationUserAgentsAccess().');
|
|
361
|
+
}
|
|
362
|
+
if (requestParameters['userId'] == null) {
|
|
363
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling getOrganizationUserAgentsAccess().');
|
|
364
|
+
}
|
|
365
|
+
const queryParameters = {};
|
|
366
|
+
const headerParameters = {};
|
|
367
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
368
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
369
|
+
}
|
|
370
|
+
const response = await this.request({
|
|
371
|
+
path: `/organizations/{organizationId}/users/{userId}/agents-access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
372
|
+
method: 'GET',
|
|
373
|
+
headers: headerParameters,
|
|
374
|
+
query: queryParameters,
|
|
375
|
+
}, initOverrides);
|
|
376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserAgentAccessUioFromJSON)(jsonValue));
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* Get user agent access configuration
|
|
380
|
+
*/
|
|
381
|
+
async getOrganizationUserAgentsAccess(organizationId, userId, initOverrides) {
|
|
382
|
+
const response = await this.getOrganizationUserAgentsAccessRaw({ organizationId: organizationId, userId: userId }, initOverrides);
|
|
383
|
+
return await response.value();
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Invite a user to an organization
|
|
387
|
+
*/
|
|
388
|
+
async inviteOrganizationUserRaw(requestParameters, initOverrides) {
|
|
389
|
+
if (requestParameters['organizationId'] == null) {
|
|
390
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling inviteOrganizationUser().');
|
|
391
|
+
}
|
|
392
|
+
if (requestParameters['organizationUserInviteRequestUio'] == null) {
|
|
393
|
+
throw new runtime.RequiredError('organizationUserInviteRequestUio', 'Required parameter "organizationUserInviteRequestUio" was null or undefined when calling inviteOrganizationUser().');
|
|
394
|
+
}
|
|
395
|
+
const queryParameters = {};
|
|
396
|
+
const headerParameters = {};
|
|
397
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
398
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
399
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
400
|
+
}
|
|
401
|
+
const response = await this.request({
|
|
402
|
+
path: `/organizations/{organizationId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
403
|
+
method: 'POST',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
body: (0, index_1.OrganizationUserInviteRequestUioToJSON)(requestParameters['organizationUserInviteRequestUio']),
|
|
407
|
+
}, initOverrides);
|
|
408
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationUserInviteResponseUioFromJSON)(jsonValue));
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Invite a user to an organization
|
|
412
|
+
*/
|
|
413
|
+
async inviteOrganizationUser(organizationId, organizationUserInviteRequestUio, initOverrides) {
|
|
414
|
+
const response = await this.inviteOrganizationUserRaw({ organizationId: organizationId, organizationUserInviteRequestUio: organizationUserInviteRequestUio }, initOverrides);
|
|
415
|
+
return await response.value();
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* List access roles of an organization
|
|
419
|
+
*/
|
|
420
|
+
async listOrganizationAccessRolesRaw(requestParameters, initOverrides) {
|
|
421
|
+
if (requestParameters['organizationId'] == null) {
|
|
422
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationAccessRoles().');
|
|
423
|
+
}
|
|
424
|
+
const queryParameters = {};
|
|
425
|
+
const headerParameters = {};
|
|
426
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
427
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
428
|
+
}
|
|
429
|
+
const response = await this.request({
|
|
430
|
+
path: `/organizations/{organizationId}/access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
431
|
+
method: 'GET',
|
|
432
|
+
headers: headerParameters,
|
|
433
|
+
query: queryParameters,
|
|
434
|
+
}, initOverrides);
|
|
435
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AccessRoleUioFromJSON));
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* List access roles of an organization
|
|
439
|
+
*/
|
|
440
|
+
async listOrganizationAccessRoles(organizationId, initOverrides) {
|
|
441
|
+
const response = await this.listOrganizationAccessRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
442
|
+
return await response.value();
|
|
443
|
+
}
|
|
208
444
|
/**
|
|
209
445
|
* Retrieves all roles configured for the given organization
|
|
210
446
|
* List roles of an organization
|
|
@@ -234,6 +470,33 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
234
470
|
const response = await this.listOrganizationRolesRaw({ organizationId: organizationId }, initOverrides);
|
|
235
471
|
return await response.value();
|
|
236
472
|
}
|
|
473
|
+
/**
|
|
474
|
+
* List users of an organization
|
|
475
|
+
*/
|
|
476
|
+
async listOrganizationUsersRaw(requestParameters, initOverrides) {
|
|
477
|
+
if (requestParameters['organizationId'] == null) {
|
|
478
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling listOrganizationUsers().');
|
|
479
|
+
}
|
|
480
|
+
const queryParameters = {};
|
|
481
|
+
const headerParameters = {};
|
|
482
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
483
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
484
|
+
}
|
|
485
|
+
const response = await this.request({
|
|
486
|
+
path: `/organizations/{organizationId}/users`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))),
|
|
487
|
+
method: 'GET',
|
|
488
|
+
headers: headerParameters,
|
|
489
|
+
query: queryParameters,
|
|
490
|
+
}, initOverrides);
|
|
491
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.OrganizationMemberUioFromJSON));
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* List users of an organization
|
|
495
|
+
*/
|
|
496
|
+
async listOrganizationUsers(organizationId, initOverrides) {
|
|
497
|
+
const response = await this.listOrganizationUsersRaw({ organizationId: organizationId }, initOverrides);
|
|
498
|
+
return await response.value();
|
|
499
|
+
}
|
|
237
500
|
/**
|
|
238
501
|
* Lists all organizations for the current user. Admins see all organizations.
|
|
239
502
|
* List organizations
|
|
@@ -260,6 +523,176 @@ class OrganizationsApi extends runtime.BaseAPI {
|
|
|
260
523
|
const response = await this.listOrganizationsRaw(initOverrides);
|
|
261
524
|
return await response.value();
|
|
262
525
|
}
|
|
526
|
+
/**
|
|
527
|
+
* Set permissions for an access role
|
|
528
|
+
*/
|
|
529
|
+
async setOrganizationAccessRolePermissionsRaw(requestParameters, initOverrides) {
|
|
530
|
+
if (requestParameters['organizationId'] == null) {
|
|
531
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationAccessRolePermissions().');
|
|
532
|
+
}
|
|
533
|
+
if (requestParameters['roleId'] == null) {
|
|
534
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling setOrganizationAccessRolePermissions().');
|
|
535
|
+
}
|
|
536
|
+
if (requestParameters['accessRolePermissionsRequestUio'] == null) {
|
|
537
|
+
throw new runtime.RequiredError('accessRolePermissionsRequestUio', 'Required parameter "accessRolePermissionsRequestUio" was null or undefined when calling setOrganizationAccessRolePermissions().');
|
|
538
|
+
}
|
|
539
|
+
const queryParameters = {};
|
|
540
|
+
const headerParameters = {};
|
|
541
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
542
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
543
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
544
|
+
}
|
|
545
|
+
const response = await this.request({
|
|
546
|
+
path: `/organizations/{organizationId}/access-roles/{roleId}/permissions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
547
|
+
method: 'PUT',
|
|
548
|
+
headers: headerParameters,
|
|
549
|
+
query: queryParameters,
|
|
550
|
+
body: (0, index_1.AccessRolePermissionsRequestUioToJSON)(requestParameters['accessRolePermissionsRequestUio']),
|
|
551
|
+
}, initOverrides);
|
|
552
|
+
return new runtime.VoidApiResponse(response);
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* Set permissions for an access role
|
|
556
|
+
*/
|
|
557
|
+
async setOrganizationAccessRolePermissions(organizationId, roleId, accessRolePermissionsRequestUio, initOverrides) {
|
|
558
|
+
await this.setOrganizationAccessRolePermissionsRaw({ organizationId: organizationId, roleId: roleId, accessRolePermissionsRequestUio: accessRolePermissionsRequestUio }, initOverrides);
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Set user access roles
|
|
562
|
+
*/
|
|
563
|
+
async setOrganizationUserAccessRolesRaw(requestParameters, initOverrides) {
|
|
564
|
+
if (requestParameters['organizationId'] == null) {
|
|
565
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationUserAccessRoles().');
|
|
566
|
+
}
|
|
567
|
+
if (requestParameters['userId'] == null) {
|
|
568
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setOrganizationUserAccessRoles().');
|
|
569
|
+
}
|
|
570
|
+
if (requestParameters['userAccessRolesRequestUio'] == null) {
|
|
571
|
+
throw new runtime.RequiredError('userAccessRolesRequestUio', 'Required parameter "userAccessRolesRequestUio" was null or undefined when calling setOrganizationUserAccessRoles().');
|
|
572
|
+
}
|
|
573
|
+
const queryParameters = {};
|
|
574
|
+
const headerParameters = {};
|
|
575
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
576
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
577
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
578
|
+
}
|
|
579
|
+
const response = await this.request({
|
|
580
|
+
path: `/organizations/{organizationId}/users/{userId}/access-roles`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
581
|
+
method: 'PUT',
|
|
582
|
+
headers: headerParameters,
|
|
583
|
+
query: queryParameters,
|
|
584
|
+
body: (0, index_1.UserAccessRolesRequestUioToJSON)(requestParameters['userAccessRolesRequestUio']),
|
|
585
|
+
}, initOverrides);
|
|
586
|
+
return new runtime.VoidApiResponse(response);
|
|
587
|
+
}
|
|
588
|
+
/**
|
|
589
|
+
* Set user access roles
|
|
590
|
+
*/
|
|
591
|
+
async setOrganizationUserAccessRoles(organizationId, userId, userAccessRolesRequestUio, initOverrides) {
|
|
592
|
+
await this.setOrganizationUserAccessRolesRaw({ organizationId: organizationId, userId: userId, userAccessRolesRequestUio: userAccessRolesRequestUio }, initOverrides);
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Set user agent access configuration
|
|
596
|
+
*/
|
|
597
|
+
async setOrganizationUserAgentsAccessRaw(requestParameters, initOverrides) {
|
|
598
|
+
if (requestParameters['organizationId'] == null) {
|
|
599
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationUserAgentsAccess().');
|
|
600
|
+
}
|
|
601
|
+
if (requestParameters['userId'] == null) {
|
|
602
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setOrganizationUserAgentsAccess().');
|
|
603
|
+
}
|
|
604
|
+
if (requestParameters['userAgentAccessRequestUio'] == null) {
|
|
605
|
+
throw new runtime.RequiredError('userAgentAccessRequestUio', 'Required parameter "userAgentAccessRequestUio" was null or undefined when calling setOrganizationUserAgentsAccess().');
|
|
606
|
+
}
|
|
607
|
+
const queryParameters = {};
|
|
608
|
+
const headerParameters = {};
|
|
609
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
610
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
611
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
612
|
+
}
|
|
613
|
+
const response = await this.request({
|
|
614
|
+
path: `/organizations/{organizationId}/users/{userId}/agents-access`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
615
|
+
method: 'PUT',
|
|
616
|
+
headers: headerParameters,
|
|
617
|
+
query: queryParameters,
|
|
618
|
+
body: (0, index_1.UserAgentAccessRequestUioToJSON)(requestParameters['userAgentAccessRequestUio']),
|
|
619
|
+
}, initOverrides);
|
|
620
|
+
return new runtime.VoidApiResponse(response);
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* Set user agent access configuration
|
|
624
|
+
*/
|
|
625
|
+
async setOrganizationUserAgentsAccess(organizationId, userId, userAgentAccessRequestUio, initOverrides) {
|
|
626
|
+
await this.setOrganizationUserAgentsAccessRaw({ organizationId: organizationId, userId: userId, userAgentAccessRequestUio: userAgentAccessRequestUio }, initOverrides);
|
|
627
|
+
}
|
|
628
|
+
/**
|
|
629
|
+
* Set user direct permissions
|
|
630
|
+
*/
|
|
631
|
+
async setOrganizationUserDirectPermissionsRaw(requestParameters, initOverrides) {
|
|
632
|
+
if (requestParameters['organizationId'] == null) {
|
|
633
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling setOrganizationUserDirectPermissions().');
|
|
634
|
+
}
|
|
635
|
+
if (requestParameters['userId'] == null) {
|
|
636
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling setOrganizationUserDirectPermissions().');
|
|
637
|
+
}
|
|
638
|
+
if (requestParameters['userDirectPermissionsRequestUio'] == null) {
|
|
639
|
+
throw new runtime.RequiredError('userDirectPermissionsRequestUio', 'Required parameter "userDirectPermissionsRequestUio" was null or undefined when calling setOrganizationUserDirectPermissions().');
|
|
640
|
+
}
|
|
641
|
+
const queryParameters = {};
|
|
642
|
+
const headerParameters = {};
|
|
643
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
644
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
645
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
646
|
+
}
|
|
647
|
+
const response = await this.request({
|
|
648
|
+
path: `/organizations/{organizationId}/users/{userId}/permissions`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
649
|
+
method: 'PUT',
|
|
650
|
+
headers: headerParameters,
|
|
651
|
+
query: queryParameters,
|
|
652
|
+
body: (0, index_1.UserDirectPermissionsRequestUioToJSON)(requestParameters['userDirectPermissionsRequestUio']),
|
|
653
|
+
}, initOverrides);
|
|
654
|
+
return new runtime.VoidApiResponse(response);
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Set user direct permissions
|
|
658
|
+
*/
|
|
659
|
+
async setOrganizationUserDirectPermissions(organizationId, userId, userDirectPermissionsRequestUio, initOverrides) {
|
|
660
|
+
await this.setOrganizationUserDirectPermissionsRaw({ organizationId: organizationId, userId: userId, userDirectPermissionsRequestUio: userDirectPermissionsRequestUio }, initOverrides);
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* Update an access role in an organization
|
|
664
|
+
*/
|
|
665
|
+
async updateOrganizationAccessRoleRaw(requestParameters, initOverrides) {
|
|
666
|
+
if (requestParameters['organizationId'] == null) {
|
|
667
|
+
throw new runtime.RequiredError('organizationId', 'Required parameter "organizationId" was null or undefined when calling updateOrganizationAccessRole().');
|
|
668
|
+
}
|
|
669
|
+
if (requestParameters['roleId'] == null) {
|
|
670
|
+
throw new runtime.RequiredError('roleId', 'Required parameter "roleId" was null or undefined when calling updateOrganizationAccessRole().');
|
|
671
|
+
}
|
|
672
|
+
if (requestParameters['accessRoleUpdateRequestUio'] == null) {
|
|
673
|
+
throw new runtime.RequiredError('accessRoleUpdateRequestUio', 'Required parameter "accessRoleUpdateRequestUio" was null or undefined when calling updateOrganizationAccessRole().');
|
|
674
|
+
}
|
|
675
|
+
const queryParameters = {};
|
|
676
|
+
const headerParameters = {};
|
|
677
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
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: `/organizations/{organizationId}/access-roles/{roleId}`.replace(`{${"organizationId"}}`, encodeURIComponent(String(requestParameters['organizationId']))).replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId']))),
|
|
683
|
+
method: 'PUT',
|
|
684
|
+
headers: headerParameters,
|
|
685
|
+
query: queryParameters,
|
|
686
|
+
body: (0, index_1.AccessRoleUpdateRequestUioToJSON)(requestParameters['accessRoleUpdateRequestUio']),
|
|
687
|
+
}, initOverrides);
|
|
688
|
+
return new runtime.VoidApiResponse(response);
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Update an access role in an organization
|
|
692
|
+
*/
|
|
693
|
+
async updateOrganizationAccessRole(organizationId, roleId, accessRoleUpdateRequestUio, initOverrides) {
|
|
694
|
+
await this.updateOrganizationAccessRoleRaw({ organizationId: organizationId, roleId: roleId, accessRoleUpdateRequestUio: accessRoleUpdateRequestUio }, initOverrides);
|
|
695
|
+
}
|
|
263
696
|
/**
|
|
264
697
|
* Updates an existing agent role in the specified organization
|
|
265
698
|
* Update a role in an organization
|
|
@@ -0,0 +1,143 @@
|
|
|
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
|
+
import * as runtime from '../runtime';
|
|
13
|
+
import type { ScheduledTaskCreateUio, ScheduledTaskListUio, ScheduledTaskManualRunResponseUio, ScheduledTaskRunListUio, ScheduledTaskRunUio, ScheduledTaskStatusResponseUio, ScheduledTaskStatusToggleUio, ScheduledTaskUio } from '../models/index';
|
|
14
|
+
export interface CreateScheduledTaskRequest {
|
|
15
|
+
agentId: string;
|
|
16
|
+
scheduledTaskCreateUio: ScheduledTaskCreateUio;
|
|
17
|
+
}
|
|
18
|
+
export interface DeleteScheduledTaskRequest {
|
|
19
|
+
agentId: string;
|
|
20
|
+
taskId: string;
|
|
21
|
+
}
|
|
22
|
+
export interface GetScheduledTaskRequest {
|
|
23
|
+
agentId: string;
|
|
24
|
+
taskId: string;
|
|
25
|
+
}
|
|
26
|
+
export interface GetScheduledTaskRunRequest {
|
|
27
|
+
agentId: string;
|
|
28
|
+
taskId: string;
|
|
29
|
+
runId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface ListScheduledTaskRunsRequest {
|
|
32
|
+
agentId: string;
|
|
33
|
+
taskId: string;
|
|
34
|
+
limit?: number;
|
|
35
|
+
before?: Date;
|
|
36
|
+
}
|
|
37
|
+
export interface ListScheduledTasksRequest {
|
|
38
|
+
agentId: string;
|
|
39
|
+
status?: ListScheduledTasksStatusEnum;
|
|
40
|
+
q?: string;
|
|
41
|
+
limit?: number;
|
|
42
|
+
before?: Date;
|
|
43
|
+
}
|
|
44
|
+
export interface ToggleScheduledTaskStatusRequest {
|
|
45
|
+
agentId: string;
|
|
46
|
+
taskId: string;
|
|
47
|
+
scheduledTaskStatusToggleUio: ScheduledTaskStatusToggleUio;
|
|
48
|
+
}
|
|
49
|
+
export interface TriggerScheduledTaskRequest {
|
|
50
|
+
agentId: string;
|
|
51
|
+
taskId: string;
|
|
52
|
+
}
|
|
53
|
+
export interface UpdateScheduledTaskRequest {
|
|
54
|
+
agentId: string;
|
|
55
|
+
taskId: string;
|
|
56
|
+
scheduledTaskCreateUio: ScheduledTaskCreateUio;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
*/
|
|
61
|
+
export declare class ScheduledTasksApi extends runtime.BaseAPI {
|
|
62
|
+
/**
|
|
63
|
+
* Create a scheduled task for an agent
|
|
64
|
+
*/
|
|
65
|
+
createScheduledTaskRaw(requestParameters: CreateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskUio>>;
|
|
66
|
+
/**
|
|
67
|
+
* Create a scheduled task for an agent
|
|
68
|
+
*/
|
|
69
|
+
createScheduledTask(agentId: string, scheduledTaskCreateUio: ScheduledTaskCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskUio>;
|
|
70
|
+
/**
|
|
71
|
+
* Delete a scheduled task
|
|
72
|
+
*/
|
|
73
|
+
deleteScheduledTaskRaw(requestParameters: DeleteScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
74
|
+
/**
|
|
75
|
+
* Delete a scheduled task
|
|
76
|
+
*/
|
|
77
|
+
deleteScheduledTask(agentId: string, taskId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* Get a scheduled task by ID
|
|
80
|
+
*/
|
|
81
|
+
getScheduledTaskRaw(requestParameters: GetScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskUio>>;
|
|
82
|
+
/**
|
|
83
|
+
* Get a scheduled task by ID
|
|
84
|
+
*/
|
|
85
|
+
getScheduledTask(agentId: string, taskId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskUio>;
|
|
86
|
+
/**
|
|
87
|
+
* Get a specific scheduled task run by ID
|
|
88
|
+
*/
|
|
89
|
+
getScheduledTaskRunRaw(requestParameters: GetScheduledTaskRunRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskRunUio>>;
|
|
90
|
+
/**
|
|
91
|
+
* Get a specific scheduled task run by ID
|
|
92
|
+
*/
|
|
93
|
+
getScheduledTaskRun(agentId: string, taskId: string, runId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunUio>;
|
|
94
|
+
/**
|
|
95
|
+
* List runs for a scheduled task
|
|
96
|
+
*/
|
|
97
|
+
listScheduledTaskRunsRaw(requestParameters: ListScheduledTaskRunsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskRunListUio>>;
|
|
98
|
+
/**
|
|
99
|
+
* List runs for a scheduled task
|
|
100
|
+
*/
|
|
101
|
+
listScheduledTaskRuns(agentId: string, taskId: string, limit?: number, before?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskRunListUio>;
|
|
102
|
+
/**
|
|
103
|
+
* List scheduled tasks for an agent
|
|
104
|
+
*/
|
|
105
|
+
listScheduledTasksRaw(requestParameters: ListScheduledTasksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskListUio>>;
|
|
106
|
+
/**
|
|
107
|
+
* List scheduled tasks for an agent
|
|
108
|
+
*/
|
|
109
|
+
listScheduledTasks(agentId: string, status?: ListScheduledTasksStatusEnum, q?: string, limit?: number, before?: Date, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskListUio>;
|
|
110
|
+
/**
|
|
111
|
+
* Toggle scheduled task status (active/paused)
|
|
112
|
+
*/
|
|
113
|
+
toggleScheduledTaskStatusRaw(requestParameters: ToggleScheduledTaskStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskStatusResponseUio>>;
|
|
114
|
+
/**
|
|
115
|
+
* Toggle scheduled task status (active/paused)
|
|
116
|
+
*/
|
|
117
|
+
toggleScheduledTaskStatus(agentId: string, taskId: string, scheduledTaskStatusToggleUio: ScheduledTaskStatusToggleUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskStatusResponseUio>;
|
|
118
|
+
/**
|
|
119
|
+
* Manually trigger a scheduled task run
|
|
120
|
+
*/
|
|
121
|
+
triggerScheduledTaskRaw(requestParameters: TriggerScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskManualRunResponseUio>>;
|
|
122
|
+
/**
|
|
123
|
+
* Manually trigger a scheduled task run
|
|
124
|
+
*/
|
|
125
|
+
triggerScheduledTask(agentId: string, taskId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskManualRunResponseUio>;
|
|
126
|
+
/**
|
|
127
|
+
* Update a scheduled task
|
|
128
|
+
*/
|
|
129
|
+
updateScheduledTaskRaw(requestParameters: UpdateScheduledTaskRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ScheduledTaskUio>>;
|
|
130
|
+
/**
|
|
131
|
+
* Update a scheduled task
|
|
132
|
+
*/
|
|
133
|
+
updateScheduledTask(agentId: string, taskId: string, scheduledTaskCreateUio: ScheduledTaskCreateUio, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ScheduledTaskUio>;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @export
|
|
137
|
+
*/
|
|
138
|
+
export declare const ListScheduledTasksStatusEnum: {
|
|
139
|
+
readonly Active: "active";
|
|
140
|
+
readonly Paused: "paused";
|
|
141
|
+
readonly Done: "done";
|
|
142
|
+
};
|
|
143
|
+
export type ListScheduledTasksStatusEnum = typeof ListScheduledTasksStatusEnum[keyof typeof ListScheduledTasksStatusEnum];
|