@rightbrain/brain-api-client 0.0.1-dev.132.3bba4c0 → 0.0.1-dev.133.947ca83

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.
Files changed (4) hide show
  1. package/api.ts +577 -0
  2. package/dist/api.d.ts +374 -0
  3. package/dist/api.js +446 -4
  4. package/package.json +1 -1
package/dist/api.d.ts CHANGED
@@ -125,6 +125,164 @@ export interface AsyncJobResult {
125
125
  */
126
126
  'task_id': Array<string>;
127
127
  }
128
+ /**
129
+ *
130
+ * @export
131
+ * @interface AuditEventDetail
132
+ */
133
+ export interface AuditEventDetail {
134
+ /**
135
+ *
136
+ * @type {string}
137
+ * @memberof AuditEventDetail
138
+ */
139
+ 'id': string;
140
+ /**
141
+ *
142
+ * @type {string}
143
+ * @memberof AuditEventDetail
144
+ */
145
+ 'project_id': string;
146
+ /**
147
+ *
148
+ * @type {string}
149
+ * @memberof AuditEventDetail
150
+ */
151
+ 'org_id': string;
152
+ /**
153
+ *
154
+ * @type {string}
155
+ * @memberof AuditEventDetail
156
+ */
157
+ 'actor_user_id': string | null;
158
+ /**
159
+ *
160
+ * @type {string}
161
+ * @memberof AuditEventDetail
162
+ */
163
+ 'event_type': string;
164
+ /**
165
+ *
166
+ * @type {string}
167
+ * @memberof AuditEventDetail
168
+ */
169
+ 'resource_type': string | null;
170
+ /**
171
+ *
172
+ * @type {string}
173
+ * @memberof AuditEventDetail
174
+ */
175
+ 'resource_id': string | null;
176
+ /**
177
+ *
178
+ * @type {string}
179
+ * @memberof AuditEventDetail
180
+ */
181
+ 'message': string;
182
+ /**
183
+ *
184
+ * @type {{ [key: string]: any; }}
185
+ * @memberof AuditEventDetail
186
+ */
187
+ 'labels': {
188
+ [key: string]: any;
189
+ };
190
+ /**
191
+ *
192
+ * @type {string}
193
+ * @memberof AuditEventDetail
194
+ */
195
+ 'occurred_at': string;
196
+ /**
197
+ *
198
+ * @type {string}
199
+ * @memberof AuditEventDetail
200
+ */
201
+ 'created': string;
202
+ /**
203
+ *
204
+ * @type {{ [key: string]: any; }}
205
+ * @memberof AuditEventDetail
206
+ */
207
+ 'payload': {
208
+ [key: string]: any;
209
+ } | null;
210
+ }
211
+ /**
212
+ *
213
+ * @export
214
+ * @interface AuditEventListItem
215
+ */
216
+ export interface AuditEventListItem {
217
+ /**
218
+ *
219
+ * @type {string}
220
+ * @memberof AuditEventListItem
221
+ */
222
+ 'id': string;
223
+ /**
224
+ *
225
+ * @type {string}
226
+ * @memberof AuditEventListItem
227
+ */
228
+ 'project_id': string;
229
+ /**
230
+ *
231
+ * @type {string}
232
+ * @memberof AuditEventListItem
233
+ */
234
+ 'org_id': string;
235
+ /**
236
+ *
237
+ * @type {string}
238
+ * @memberof AuditEventListItem
239
+ */
240
+ 'actor_user_id': string | null;
241
+ /**
242
+ *
243
+ * @type {string}
244
+ * @memberof AuditEventListItem
245
+ */
246
+ 'event_type': string;
247
+ /**
248
+ *
249
+ * @type {string}
250
+ * @memberof AuditEventListItem
251
+ */
252
+ 'resource_type': string | null;
253
+ /**
254
+ *
255
+ * @type {string}
256
+ * @memberof AuditEventListItem
257
+ */
258
+ 'resource_id': string | null;
259
+ /**
260
+ *
261
+ * @type {string}
262
+ * @memberof AuditEventListItem
263
+ */
264
+ 'message': string;
265
+ /**
266
+ *
267
+ * @type {{ [key: string]: any; }}
268
+ * @memberof AuditEventListItem
269
+ */
270
+ 'labels': {
271
+ [key: string]: any;
272
+ };
273
+ /**
274
+ *
275
+ * @type {string}
276
+ * @memberof AuditEventListItem
277
+ */
278
+ 'occurred_at': string;
279
+ /**
280
+ *
281
+ * @type {string}
282
+ * @memberof AuditEventListItem
283
+ */
284
+ 'created': string;
285
+ }
128
286
  /**
129
287
  *
130
288
  * @export
@@ -5770,6 +5928,25 @@ export interface PaginatedResultSetAnnotatedUnionAnnotatedWebhookForwarderInDBTa
5770
5928
  */
5771
5929
  'results': Array<ResultsInner>;
5772
5930
  }
5931
+ /**
5932
+ *
5933
+ * @export
5934
+ * @interface PaginatedResultSetAuditEventListItem
5935
+ */
5936
+ export interface PaginatedResultSetAuditEventListItem {
5937
+ /**
5938
+ *
5939
+ * @type {PaginationDetails}
5940
+ * @memberof PaginatedResultSetAuditEventListItem
5941
+ */
5942
+ 'pagination'?: PaginationDetails;
5943
+ /**
5944
+ * The list of items returned for the current page.
5945
+ * @type {Array<AuditEventListItem>}
5946
+ * @memberof PaginatedResultSetAuditEventListItem
5947
+ */
5948
+ 'results': Array<AuditEventListItem>;
5949
+ }
5773
5950
  /**
5774
5951
  *
5775
5952
  * @export
@@ -15251,6 +15428,203 @@ export declare class AgentPackApi extends BaseAPI {
15251
15428
  */
15252
15429
  getTaskForLlm(projectKey: string, taskId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<string, any, {}>>;
15253
15430
  }
15431
+ /**
15432
+ * AuditEventsApi - axios parameter creator
15433
+ * @export
15434
+ */
15435
+ export declare const AuditEventsApiAxiosParamCreator: (configuration?: Configuration) => {
15436
+ /**
15437
+ * Export project audit events as NDJSON. Each line is a full audit event detail record, including the decrypted payload.
15438
+ * @summary Export Project Audit Events
15439
+ * @param {string} orgId The unique identifier of the organization.
15440
+ * @param {string} projectId The unique identifier of the project.
15441
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15442
+ * @param {string | null} [actorUserId] Filter by the acting user.
15443
+ * @param {string | null} [resourceType] Filter by resource type.
15444
+ * @param {string | null} [resourceId] Filter by resource identifier.
15445
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15446
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15447
+ * @param {*} [options] Override http request option.
15448
+ * @throws {RequiredError}
15449
+ */
15450
+ exportProjectAuditEvents: (orgId: string, projectId: string, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15451
+ /**
15452
+ * Retrieve a single audit event for the project. The detail response includes the decrypted payload captured for the event.
15453
+ * @summary Get Project Audit Event
15454
+ * @param {string} auditEventId
15455
+ * @param {string} orgId The unique identifier of the organization.
15456
+ * @param {string} projectId The unique identifier of the project.
15457
+ * @param {*} [options] Override http request option.
15458
+ * @throws {RequiredError}
15459
+ */
15460
+ getProjectAuditEvent: (auditEventId: string, orgId: string, projectId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15461
+ /**
15462
+ * List immutable audit events recorded for a project. Results are ordered by `occurred_at` descending, then `id` descending. The `cursor` parameter is an opaque pagination token and must be treated as an unreadable value by clients. Use the filters to narrow the feed by event type, actor, or resource identifiers.
15463
+ * @summary List Project Audit Events
15464
+ * @param {string} orgId The unique identifier of the organization.
15465
+ * @param {string} projectId The unique identifier of the project.
15466
+ * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
15467
+ * @param {number} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
15468
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15469
+ * @param {string | null} [actorUserId] Filter by the acting user.
15470
+ * @param {string | null} [resourceType] Filter by resource type.
15471
+ * @param {string | null} [resourceId] Filter by resource identifier.
15472
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15473
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15474
+ * @param {*} [options] Override http request option.
15475
+ * @throws {RequiredError}
15476
+ */
15477
+ listProjectAuditEvents: (orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15478
+ };
15479
+ /**
15480
+ * AuditEventsApi - functional programming interface
15481
+ * @export
15482
+ */
15483
+ export declare const AuditEventsApiFp: (configuration?: Configuration) => {
15484
+ /**
15485
+ * Export project audit events as NDJSON. Each line is a full audit event detail record, including the decrypted payload.
15486
+ * @summary Export Project Audit Events
15487
+ * @param {string} orgId The unique identifier of the organization.
15488
+ * @param {string} projectId The unique identifier of the project.
15489
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15490
+ * @param {string | null} [actorUserId] Filter by the acting user.
15491
+ * @param {string | null} [resourceType] Filter by resource type.
15492
+ * @param {string | null} [resourceId] Filter by resource identifier.
15493
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15494
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15495
+ * @param {*} [options] Override http request option.
15496
+ * @throws {RequiredError}
15497
+ */
15498
+ exportProjectAuditEvents(orgId: string, projectId: string, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
15499
+ /**
15500
+ * Retrieve a single audit event for the project. The detail response includes the decrypted payload captured for the event.
15501
+ * @summary Get Project Audit Event
15502
+ * @param {string} auditEventId
15503
+ * @param {string} orgId The unique identifier of the organization.
15504
+ * @param {string} projectId The unique identifier of the project.
15505
+ * @param {*} [options] Override http request option.
15506
+ * @throws {RequiredError}
15507
+ */
15508
+ getProjectAuditEvent(auditEventId: string, orgId: string, projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuditEventDetail>>;
15509
+ /**
15510
+ * List immutable audit events recorded for a project. Results are ordered by `occurred_at` descending, then `id` descending. The `cursor` parameter is an opaque pagination token and must be treated as an unreadable value by clients. Use the filters to narrow the feed by event type, actor, or resource identifiers.
15511
+ * @summary List Project Audit Events
15512
+ * @param {string} orgId The unique identifier of the organization.
15513
+ * @param {string} projectId The unique identifier of the project.
15514
+ * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
15515
+ * @param {number} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
15516
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15517
+ * @param {string | null} [actorUserId] Filter by the acting user.
15518
+ * @param {string | null} [resourceType] Filter by resource type.
15519
+ * @param {string | null} [resourceId] Filter by resource identifier.
15520
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15521
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15522
+ * @param {*} [options] Override http request option.
15523
+ * @throws {RequiredError}
15524
+ */
15525
+ listProjectAuditEvents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaginatedResultSetAuditEventListItem>>;
15526
+ };
15527
+ /**
15528
+ * AuditEventsApi - factory interface
15529
+ * @export
15530
+ */
15531
+ export declare const AuditEventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
15532
+ /**
15533
+ * Export project audit events as NDJSON. Each line is a full audit event detail record, including the decrypted payload.
15534
+ * @summary Export Project Audit Events
15535
+ * @param {string} orgId The unique identifier of the organization.
15536
+ * @param {string} projectId The unique identifier of the project.
15537
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15538
+ * @param {string | null} [actorUserId] Filter by the acting user.
15539
+ * @param {string | null} [resourceType] Filter by resource type.
15540
+ * @param {string | null} [resourceId] Filter by resource identifier.
15541
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15542
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15543
+ * @param {*} [options] Override http request option.
15544
+ * @throws {RequiredError}
15545
+ */
15546
+ exportProjectAuditEvents(orgId: string, projectId: string, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: any): AxiosPromise<any>;
15547
+ /**
15548
+ * Retrieve a single audit event for the project. The detail response includes the decrypted payload captured for the event.
15549
+ * @summary Get Project Audit Event
15550
+ * @param {string} auditEventId
15551
+ * @param {string} orgId The unique identifier of the organization.
15552
+ * @param {string} projectId The unique identifier of the project.
15553
+ * @param {*} [options] Override http request option.
15554
+ * @throws {RequiredError}
15555
+ */
15556
+ getProjectAuditEvent(auditEventId: string, orgId: string, projectId: string, options?: any): AxiosPromise<AuditEventDetail>;
15557
+ /**
15558
+ * List immutable audit events recorded for a project. Results are ordered by `occurred_at` descending, then `id` descending. The `cursor` parameter is an opaque pagination token and must be treated as an unreadable value by clients. Use the filters to narrow the feed by event type, actor, or resource identifiers.
15559
+ * @summary List Project Audit Events
15560
+ * @param {string} orgId The unique identifier of the organization.
15561
+ * @param {string} projectId The unique identifier of the project.
15562
+ * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
15563
+ * @param {number} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
15564
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15565
+ * @param {string | null} [actorUserId] Filter by the acting user.
15566
+ * @param {string | null} [resourceType] Filter by resource type.
15567
+ * @param {string | null} [resourceId] Filter by resource identifier.
15568
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15569
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15570
+ * @param {*} [options] Override http request option.
15571
+ * @throws {RequiredError}
15572
+ */
15573
+ listProjectAuditEvents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: any): AxiosPromise<PaginatedResultSetAuditEventListItem>;
15574
+ };
15575
+ /**
15576
+ * AuditEventsApi - object-oriented interface
15577
+ * @export
15578
+ * @class AuditEventsApi
15579
+ * @extends {BaseAPI}
15580
+ */
15581
+ export declare class AuditEventsApi extends BaseAPI {
15582
+ /**
15583
+ * Export project audit events as NDJSON. Each line is a full audit event detail record, including the decrypted payload.
15584
+ * @summary Export Project Audit Events
15585
+ * @param {string} orgId The unique identifier of the organization.
15586
+ * @param {string} projectId The unique identifier of the project.
15587
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15588
+ * @param {string | null} [actorUserId] Filter by the acting user.
15589
+ * @param {string | null} [resourceType] Filter by resource type.
15590
+ * @param {string | null} [resourceId] Filter by resource identifier.
15591
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15592
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15593
+ * @param {*} [options] Override http request option.
15594
+ * @throws {RequiredError}
15595
+ * @memberof AuditEventsApi
15596
+ */
15597
+ exportProjectAuditEvents(orgId: string, projectId: string, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
15598
+ /**
15599
+ * Retrieve a single audit event for the project. The detail response includes the decrypted payload captured for the event.
15600
+ * @summary Get Project Audit Event
15601
+ * @param {string} auditEventId
15602
+ * @param {string} orgId The unique identifier of the organization.
15603
+ * @param {string} projectId The unique identifier of the project.
15604
+ * @param {*} [options] Override http request option.
15605
+ * @throws {RequiredError}
15606
+ * @memberof AuditEventsApi
15607
+ */
15608
+ getProjectAuditEvent(auditEventId: string, orgId: string, projectId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AuditEventDetail, any, {}>>;
15609
+ /**
15610
+ * List immutable audit events recorded for a project. Results are ordered by `occurred_at` descending, then `id` descending. The `cursor` parameter is an opaque pagination token and must be treated as an unreadable value by clients. Use the filters to narrow the feed by event type, actor, or resource identifiers.
15611
+ * @summary List Project Audit Events
15612
+ * @param {string} orgId The unique identifier of the organization.
15613
+ * @param {string} projectId The unique identifier of the project.
15614
+ * @param {string | null} [cursor] A cursor for pagination. Use the &#x60;next_cursor&#x60; value from the previous response to get the next page of results.
15615
+ * @param {number} [pageLimit] The maximum number of items to return per page. Defaults to &#x60;100&#x60; if not specified.
15616
+ * @param {Array<string> | null} [eventType] Filter by one or more audit event types.
15617
+ * @param {string | null} [actorUserId] Filter by the acting user.
15618
+ * @param {string | null} [resourceType] Filter by resource type.
15619
+ * @param {string | null} [resourceId] Filter by resource identifier.
15620
+ * @param {string | null} [startDate] Only include events occurring at or after this UTC timestamp.
15621
+ * @param {string | null} [endDate] Only include events occurring at or before this UTC timestamp.
15622
+ * @param {*} [options] Override http request option.
15623
+ * @throws {RequiredError}
15624
+ * @memberof AuditEventsApi
15625
+ */
15626
+ listProjectAuditEvents(orgId: string, projectId: string, cursor?: string | null, pageLimit?: number, eventType?: Array<string> | null, actorUserId?: string | null, resourceType?: string | null, resourceId?: string | null, startDate?: string | null, endDate?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<PaginatedResultSetAuditEventListItem, any, {}>>;
15627
+ }
15254
15628
  /**
15255
15629
  * CollectionApi - axios parameter creator
15256
15630
  * @export