@nvisy/sdk 0.4.0 → 0.5.0
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/CHANGELOG.md +29 -1
- package/README.md +0 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/{client-yLrhST0r.d.ts → client-DAxwkjk3.d.ts} +137 -147
- package/dist/client-DAxwkjk3.d.ts.map +1 -0
- package/dist/datatypes/index.d.ts +2 -2
- package/dist/{index-Cmm2g3SG.d.ts → index-DfNB2LNT.d.ts} +564 -1409
- package/dist/index-DfNB2LNT.d.ts.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -7
- package/dist/index.js.map +1 -1
- package/dist/services/index.d.ts +2 -2
- package/dist/services/index.js +2 -2
- package/dist/{services-Dh0FMDzU.js → services-DXP-jsLt.js} +298 -251
- package/dist/services-DXP-jsLt.js.map +1 -0
- package/package.json +3 -3
- package/dist/client-yLrhST0r.d.ts.map +0 -1
- package/dist/index-Cmm2g3SG.d.ts.map +0 -1
- package/dist/services-Dh0FMDzU.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ClientConfig } from "./config-BRQp8Cat.js";
|
|
2
|
-
import {
|
|
2
|
+
import { $ as InvitePreview, At as ApiTokensPage, B as NotificationsPage, Bt as paths, Ct as UpdateConnection, D as CreatePipeline, Dt as ApiToken, E as UpdatePolicy, Et as Signup, F as UpdatePipeline, H as UpdateNotificationSettings, I as CursorPagination, J as CreateInvite, K as MembersPage, Lt as Account$1, M as PipelineSummariesPage, Nt as UpdateApiToken, O as Pipeline, Pt as ActivitiesPage, Rt as PublicAccount, S as Policy, St as CreateConnection, Tt as Login, U as ListMembers, V as UnreadStatus, W as Member, X as Invite, Y as GenerateInviteCode, Z as InviteCode, _ as PipelineRun, a as WorkspacesPage, at as ReplyInvite, b as CreatePolicy, bt as ConnectionsPage, c as UpdateWebhook, dt as File, et as InviteSent, f as WebhookResult, g as CreatePipelineRun, gt as UpdateFile, h as AnalyzedDocument, ht as ListFiles, it as ListInvites, j as PipelineStatus, jt as CreateApiToken, kt as ApiTokenWithJWT, l as Webhook, lt as Health, m as WebhooksPage, mt as FilesPage, n as UpdateWorkspace, o as CreateWebhook, q as UpdateMember, r as Workspace, rt as InvitesPage, s as TestWebhook, st as CheckHealth, t as CreateWorkspace, u as WebhookCreated, v as PipelineRunStatus, wt as AuthToken, x as PoliciesPage, y as PipelineRunsPage, yt as Connection, z as NotificationSettings, zt as UpdateAccount } from "./index-DfNB2LNT.js";
|
|
3
3
|
import { Client } from "openapi-fetch";
|
|
4
4
|
//#region src/services/account.d.ts
|
|
5
5
|
/**
|
|
@@ -27,6 +27,13 @@ declare class Account {
|
|
|
27
27
|
* @throws {ApiError} if the request fails
|
|
28
28
|
*/
|
|
29
29
|
deleteAccount(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Get a public account profile by username
|
|
32
|
+
* @param username - Account username
|
|
33
|
+
* @returns Promise that resolves with the public account details
|
|
34
|
+
* @throws {ApiError} if the request fails
|
|
35
|
+
*/
|
|
36
|
+
getPublicAccount(username: string): Promise<PublicAccount>;
|
|
30
37
|
}
|
|
31
38
|
//#endregion
|
|
32
39
|
//#region src/services/activities.d.ts
|
|
@@ -38,12 +45,12 @@ declare class Activities {
|
|
|
38
45
|
constructor(api: ApiClient);
|
|
39
46
|
/**
|
|
40
47
|
* List activities for a workspace
|
|
41
|
-
* @param
|
|
48
|
+
* @param workspaceSlug - Workspace slug
|
|
42
49
|
* @param query - Optional pagination parameters (limit, after)
|
|
43
50
|
* @returns Promise that resolves with a paginated list of activities
|
|
44
51
|
* @throws {ApiError} if the request fails
|
|
45
52
|
*/
|
|
46
|
-
listActivities(
|
|
53
|
+
listActivities(workspaceSlug: string, query?: CursorPagination): Promise<ActivitiesPage>;
|
|
47
54
|
}
|
|
48
55
|
//#endregion
|
|
49
56
|
//#region src/services/api-tokens.d.ts
|
|
@@ -129,91 +136,47 @@ declare class Connections {
|
|
|
129
136
|
constructor(api: ApiClient);
|
|
130
137
|
/**
|
|
131
138
|
* List connections in a workspace
|
|
132
|
-
* @param
|
|
139
|
+
* @param workspaceSlug - Workspace slug
|
|
133
140
|
* @param query - Optional query parameters (provider, limit, after)
|
|
134
141
|
* @returns Promise that resolves with a paginated list of connections
|
|
135
142
|
* @throws {ApiError} if the request fails
|
|
136
143
|
*/
|
|
137
|
-
listConnections(
|
|
144
|
+
listConnections(workspaceSlug: string, query?: CursorPagination & {
|
|
138
145
|
provider?: string;
|
|
139
146
|
}): Promise<ConnectionsPage>;
|
|
140
147
|
/**
|
|
141
148
|
* Create a connection in a workspace
|
|
142
|
-
* @param
|
|
149
|
+
* @param workspaceSlug - Workspace slug
|
|
143
150
|
* @param connection - Connection creation request
|
|
144
151
|
* @returns Promise that resolves with the created connection
|
|
145
152
|
* @throws {ApiError} if the request fails
|
|
146
153
|
*/
|
|
147
|
-
createConnection(
|
|
154
|
+
createConnection(workspaceSlug: string, connection: CreateConnection): Promise<Connection>;
|
|
148
155
|
/**
|
|
149
156
|
* Get connection details by ID
|
|
157
|
+
* @param workspaceSlug - Workspace slug
|
|
150
158
|
* @param connectionId - Connection ID
|
|
151
159
|
* @returns Promise that resolves with the connection details
|
|
152
160
|
* @throws {ApiError} if the request fails
|
|
153
161
|
*/
|
|
154
|
-
getConnection(connectionId: string): Promise<Connection>;
|
|
162
|
+
getConnection(workspaceSlug: string, connectionId: string): Promise<Connection>;
|
|
155
163
|
/**
|
|
156
164
|
* Update a connection
|
|
165
|
+
* @param workspaceSlug - Workspace slug
|
|
157
166
|
* @param connectionId - Connection ID
|
|
158
167
|
* @param updates - Connection update request
|
|
159
168
|
* @returns Promise that resolves with the updated connection
|
|
160
169
|
* @throws {ApiError} if the request fails
|
|
161
170
|
*/
|
|
162
|
-
updateConnection(connectionId: string, updates: UpdateConnection): Promise<Connection>;
|
|
171
|
+
updateConnection(workspaceSlug: string, connectionId: string, updates: UpdateConnection): Promise<Connection>;
|
|
163
172
|
/**
|
|
164
173
|
* Delete a connection
|
|
174
|
+
* @param workspaceSlug - Workspace slug
|
|
165
175
|
* @param connectionId - Connection ID
|
|
166
176
|
* @returns Promise that resolves when the connection is deleted
|
|
167
177
|
* @throws {ApiError} if the request fails
|
|
168
178
|
*/
|
|
169
|
-
deleteConnection(connectionId: string): Promise<void>;
|
|
170
|
-
}
|
|
171
|
-
//#endregion
|
|
172
|
-
//#region src/services/contexts.d.ts
|
|
173
|
-
/**
|
|
174
|
-
* Service for handling context operations
|
|
175
|
-
*/
|
|
176
|
-
declare class Contexts {
|
|
177
|
-
#private;
|
|
178
|
-
constructor(api: ApiClient);
|
|
179
|
-
/**
|
|
180
|
-
* List contexts in a workspace
|
|
181
|
-
* @param workspaceId - Workspace ID
|
|
182
|
-
* @param query - Optional pagination parameters (limit, after)
|
|
183
|
-
* @returns Promise that resolves with a paginated list of contexts
|
|
184
|
-
* @throws {ApiError} if the request fails
|
|
185
|
-
*/
|
|
186
|
-
listContexts(workspaceId: string, query?: CursorPagination): Promise<ContextsPage>;
|
|
187
|
-
/**
|
|
188
|
-
* Create a context in a workspace
|
|
189
|
-
* @param workspaceId - Workspace ID
|
|
190
|
-
* @param context - Context creation request
|
|
191
|
-
* @returns Promise that resolves with the created context
|
|
192
|
-
* @throws {ApiError} if the request fails
|
|
193
|
-
*/
|
|
194
|
-
createContext(workspaceId: string, context: CreateContext): Promise<Context>;
|
|
195
|
-
/**
|
|
196
|
-
* Get context details by ID
|
|
197
|
-
* @param contextId - Context ID
|
|
198
|
-
* @returns Promise that resolves with the context details
|
|
199
|
-
* @throws {ApiError} if the request fails
|
|
200
|
-
*/
|
|
201
|
-
getContext(contextId: string): Promise<Context>;
|
|
202
|
-
/**
|
|
203
|
-
* Update a context
|
|
204
|
-
* @param contextId - Context ID
|
|
205
|
-
* @param updates - Context update request
|
|
206
|
-
* @returns Promise that resolves with the updated context
|
|
207
|
-
* @throws {ApiError} if the request fails
|
|
208
|
-
*/
|
|
209
|
-
updateContext(contextId: string, updates: UpdateContext): Promise<Context>;
|
|
210
|
-
/**
|
|
211
|
-
* Delete a context
|
|
212
|
-
* @param contextId - Context ID
|
|
213
|
-
* @returns Promise that resolves when the context is deleted
|
|
214
|
-
* @throws {ApiError} if the request fails
|
|
215
|
-
*/
|
|
216
|
-
deleteContext(contextId: string): Promise<void>;
|
|
179
|
+
deleteConnection(workspaceSlug: string, connectionId: string): Promise<void>;
|
|
217
180
|
}
|
|
218
181
|
//#endregion
|
|
219
182
|
//#region src/services/files.d.ts
|
|
@@ -225,49 +188,53 @@ declare class Files {
|
|
|
225
188
|
constructor(api: ApiClient);
|
|
226
189
|
/**
|
|
227
190
|
* Upload one or more files to a workspace
|
|
228
|
-
* @param
|
|
191
|
+
* @param workspaceSlug - Workspace slug
|
|
229
192
|
* @param files - File or array of files to upload
|
|
230
193
|
* @returns Promise that resolves with the uploaded file metadata
|
|
231
194
|
* @throws {ApiError} if the request fails
|
|
232
195
|
*/
|
|
233
|
-
uploadFiles(
|
|
196
|
+
uploadFiles(workspaceSlug: string, files: Blob | Blob[]): Promise<File[]>;
|
|
234
197
|
/**
|
|
235
198
|
* List files in a workspace
|
|
236
|
-
* @param
|
|
199
|
+
* @param workspaceSlug - Workspace slug
|
|
237
200
|
* @param query - Optional query parameters (formats, search, limit, after)
|
|
238
201
|
* @returns Promise that resolves with a paginated list of files
|
|
239
202
|
* @throws {ApiError} if the request fails
|
|
240
203
|
*/
|
|
241
|
-
listFiles(
|
|
204
|
+
listFiles(workspaceSlug: string, query?: ListFiles & CursorPagination): Promise<FilesPage>;
|
|
242
205
|
/**
|
|
243
206
|
* Get file metadata by ID
|
|
207
|
+
* @param workspaceSlug - Workspace slug
|
|
244
208
|
* @param fileId - File ID
|
|
245
209
|
* @returns Promise that resolves with the file metadata
|
|
246
210
|
* @throws {ApiError} if the request fails
|
|
247
211
|
*/
|
|
248
|
-
getFile(fileId: string): Promise<File>;
|
|
212
|
+
getFile(workspaceSlug: string, fileId: string): Promise<File>;
|
|
249
213
|
/**
|
|
250
214
|
* Download a file by ID
|
|
215
|
+
* @param workspaceSlug - Workspace slug
|
|
251
216
|
* @param fileId - File ID
|
|
252
217
|
* @returns Promise that resolves with the file response
|
|
253
218
|
* @throws {ApiError} if the request fails
|
|
254
219
|
*/
|
|
255
|
-
downloadFile(fileId: string): Promise<Response>;
|
|
220
|
+
downloadFile(workspaceSlug: string, fileId: string): Promise<Response>;
|
|
256
221
|
/**
|
|
257
222
|
* Update a file's metadata
|
|
223
|
+
* @param workspaceSlug - Workspace slug
|
|
258
224
|
* @param fileId - File ID
|
|
259
225
|
* @param updates - File update request
|
|
260
226
|
* @returns Promise that resolves with the updated file
|
|
261
227
|
* @throws {ApiError} if the request fails
|
|
262
228
|
*/
|
|
263
|
-
updateFile(fileId: string, updates: UpdateFile): Promise<File>;
|
|
229
|
+
updateFile(workspaceSlug: string, fileId: string, updates: UpdateFile): Promise<File>;
|
|
264
230
|
/**
|
|
265
231
|
* Delete a file
|
|
232
|
+
* @param workspaceSlug - Workspace slug
|
|
266
233
|
* @param fileId - File ID
|
|
267
234
|
* @returns Promise that resolves when the file is deleted
|
|
268
235
|
* @throws {ApiError} if the request fails
|
|
269
236
|
*/
|
|
270
|
-
deleteFile(fileId: string): Promise<void>;
|
|
237
|
+
deleteFile(workspaceSlug: string, fileId: string): Promise<void>;
|
|
271
238
|
}
|
|
272
239
|
//#endregion
|
|
273
240
|
//#region src/services/invites.d.ts
|
|
@@ -284,38 +251,40 @@ declare class Invites {
|
|
|
284
251
|
* @returns Promise that resolves with a paginated list of invitations
|
|
285
252
|
* @throws {ApiError} if the request fails
|
|
286
253
|
*/
|
|
287
|
-
listInvites(
|
|
254
|
+
listInvites(workspaceSlug: string, query?: ListInvites & CursorPagination): Promise<InvitesPage>;
|
|
288
255
|
/**
|
|
289
256
|
* Send an invitation to join a workspace
|
|
290
|
-
* @param
|
|
257
|
+
* @param workspaceSlug - Workspace slug
|
|
291
258
|
* @param invite - Invitation request
|
|
292
|
-
* @returns Promise that resolves with the
|
|
259
|
+
* @returns Promise that resolves with the sent invitation
|
|
293
260
|
* @throws {ApiError} if the request fails
|
|
294
261
|
*/
|
|
295
|
-
sendInvite(
|
|
262
|
+
sendInvite(workspaceSlug: string, invite: CreateInvite): Promise<InviteSent>;
|
|
296
263
|
/**
|
|
297
264
|
* Cancel a pending invitation
|
|
265
|
+
* @param workspaceSlug - Workspace slug
|
|
298
266
|
* @param inviteId - Invite ID
|
|
299
267
|
* @returns Promise that resolves when the invitation is canceled
|
|
300
268
|
* @throws {ApiError} if the request fails
|
|
301
269
|
*/
|
|
302
|
-
cancelInvite(inviteId: string): Promise<void>;
|
|
270
|
+
cancelInvite(workspaceSlug: string, inviteId: string): Promise<void>;
|
|
303
271
|
/**
|
|
304
272
|
* Reply to an invitation (accept or decline)
|
|
273
|
+
* @param workspaceSlug - Workspace slug
|
|
305
274
|
* @param inviteId - Invite ID
|
|
306
275
|
* @param reply - Reply request
|
|
307
276
|
* @returns Promise that resolves with the updated invitation
|
|
308
277
|
* @throws {ApiError} if the request fails
|
|
309
278
|
*/
|
|
310
|
-
replyToInvite(inviteId: string, reply: ReplyInvite): Promise<Invite>;
|
|
279
|
+
replyToInvite(workspaceSlug: string, inviteId: string, reply: ReplyInvite): Promise<Invite>;
|
|
311
280
|
/**
|
|
312
281
|
* Generate a shareable invite code for a workspace
|
|
313
|
-
* @param
|
|
282
|
+
* @param workspaceSlug - Workspace slug
|
|
314
283
|
* @param options - Invite code generation options
|
|
315
284
|
* @returns Promise that resolves with the generated invite code
|
|
316
285
|
* @throws {ApiError} if the request fails
|
|
317
286
|
*/
|
|
318
|
-
generateInviteCode(
|
|
287
|
+
generateInviteCode(workspaceSlug: string, options: GenerateInviteCode): Promise<InviteCode>;
|
|
319
288
|
/**
|
|
320
289
|
* Reply to an invite code (accept or decline)
|
|
321
290
|
* @param inviteCode - The invite code
|
|
@@ -342,44 +311,44 @@ declare class Members {
|
|
|
342
311
|
constructor(api: ApiClient);
|
|
343
312
|
/**
|
|
344
313
|
* List members of a workspace
|
|
345
|
-
* @param
|
|
314
|
+
* @param workspaceSlug - Workspace slug
|
|
346
315
|
* @param query - Optional query parameters (role, has2fa, sortBy, order, limit, after)
|
|
347
316
|
* @returns Promise that resolves with a paginated list of members
|
|
348
317
|
* @throws {ApiError} if the request fails
|
|
349
318
|
*/
|
|
350
|
-
listMembers(
|
|
319
|
+
listMembers(workspaceSlug: string, query?: ListMembers & CursorPagination): Promise<MembersPage>;
|
|
351
320
|
/**
|
|
352
|
-
* Get member details by
|
|
353
|
-
* @param
|
|
354
|
-
* @param
|
|
321
|
+
* Get member details by username
|
|
322
|
+
* @param workspaceSlug - Workspace slug
|
|
323
|
+
* @param username - Member username
|
|
355
324
|
* @returns Promise that resolves with the member details
|
|
356
325
|
* @throws {ApiError} if the request fails
|
|
357
326
|
*/
|
|
358
|
-
getMember(
|
|
327
|
+
getMember(workspaceSlug: string, username: string): Promise<Member>;
|
|
359
328
|
/**
|
|
360
329
|
* Update a member's role
|
|
361
|
-
* @param
|
|
362
|
-
* @param
|
|
330
|
+
* @param workspaceSlug - Workspace slug
|
|
331
|
+
* @param username - Member username
|
|
363
332
|
* @param updates - New role for the member
|
|
364
333
|
* @returns Promise that resolves with the updated member
|
|
365
334
|
* @throws {ApiError} if the request fails
|
|
366
335
|
*/
|
|
367
|
-
updateMember(
|
|
336
|
+
updateMember(workspaceSlug: string, username: string, updates: UpdateMember): Promise<Member>;
|
|
368
337
|
/**
|
|
369
338
|
* Remove a member from a workspace
|
|
370
|
-
* @param
|
|
371
|
-
* @param
|
|
339
|
+
* @param workspaceSlug - Workspace slug
|
|
340
|
+
* @param username - Member username
|
|
372
341
|
* @returns Promise that resolves when the member is removed
|
|
373
342
|
* @throws {ApiError} if the request fails
|
|
374
343
|
*/
|
|
375
|
-
removeMember(
|
|
344
|
+
removeMember(workspaceSlug: string, username: string): Promise<void>;
|
|
376
345
|
/**
|
|
377
346
|
* Leave a workspace
|
|
378
|
-
* @param
|
|
347
|
+
* @param workspaceSlug - Workspace slug
|
|
379
348
|
* @returns Promise that resolves when the member has left
|
|
380
349
|
* @throws {ApiError} if the request fails
|
|
381
350
|
*/
|
|
382
|
-
leaveWorkspace(
|
|
351
|
+
leaveWorkspace(workspaceSlug: string): Promise<void>;
|
|
383
352
|
}
|
|
384
353
|
//#endregion
|
|
385
354
|
//#region src/services/notifications.d.ts
|
|
@@ -413,45 +382,48 @@ declare class Pipelines {
|
|
|
413
382
|
constructor(api: ApiClient);
|
|
414
383
|
/**
|
|
415
384
|
* List pipelines in a workspace
|
|
416
|
-
* @param
|
|
385
|
+
* @param workspaceSlug - Workspace slug
|
|
417
386
|
* @param query - Optional query parameters (search, status, limit, after)
|
|
418
387
|
* @returns Promise that resolves with a paginated list of pipeline summaries
|
|
419
388
|
* @throws {ApiError} if the request fails
|
|
420
389
|
*/
|
|
421
|
-
listPipelines(
|
|
390
|
+
listPipelines(workspaceSlug: string, query?: CursorPagination & {
|
|
422
391
|
search?: string;
|
|
423
392
|
status?: PipelineStatus;
|
|
424
393
|
}): Promise<PipelineSummariesPage>;
|
|
425
394
|
/**
|
|
426
395
|
* Create a pipeline in a workspace
|
|
427
|
-
* @param
|
|
396
|
+
* @param workspaceSlug - Workspace slug
|
|
428
397
|
* @param pipeline - Pipeline creation request
|
|
429
398
|
* @returns Promise that resolves with the created pipeline
|
|
430
399
|
* @throws {ApiError} if the request fails
|
|
431
400
|
*/
|
|
432
|
-
createPipeline(
|
|
401
|
+
createPipeline(workspaceSlug: string, pipeline: CreatePipeline): Promise<Pipeline>;
|
|
433
402
|
/**
|
|
434
|
-
* Get pipeline details by
|
|
435
|
-
* @param
|
|
403
|
+
* Get pipeline details by slug
|
|
404
|
+
* @param workspaceSlug - Workspace slug
|
|
405
|
+
* @param pipelineSlug - Pipeline slug
|
|
436
406
|
* @returns Promise that resolves with the pipeline details
|
|
437
407
|
* @throws {ApiError} if the request fails
|
|
438
408
|
*/
|
|
439
|
-
getPipeline(
|
|
409
|
+
getPipeline(workspaceSlug: string, pipelineSlug: string): Promise<Pipeline>;
|
|
440
410
|
/**
|
|
441
411
|
* Update a pipeline
|
|
442
|
-
* @param
|
|
412
|
+
* @param workspaceSlug - Workspace slug
|
|
413
|
+
* @param pipelineSlug - Pipeline slug
|
|
443
414
|
* @param updates - Pipeline update request
|
|
444
415
|
* @returns Promise that resolves with the updated pipeline
|
|
445
416
|
* @throws {ApiError} if the request fails
|
|
446
417
|
*/
|
|
447
|
-
updatePipeline(
|
|
418
|
+
updatePipeline(workspaceSlug: string, pipelineSlug: string, updates: UpdatePipeline): Promise<Pipeline>;
|
|
448
419
|
/**
|
|
449
420
|
* Delete a pipeline
|
|
450
|
-
* @param
|
|
421
|
+
* @param workspaceSlug - Workspace slug
|
|
422
|
+
* @param pipelineSlug - Pipeline slug
|
|
451
423
|
* @returns Promise that resolves when the pipeline is deleted
|
|
452
424
|
* @throws {ApiError} if the request fails
|
|
453
425
|
*/
|
|
454
|
-
deletePipeline(
|
|
426
|
+
deletePipeline(workspaceSlug: string, pipelineSlug: string): Promise<void>;
|
|
455
427
|
}
|
|
456
428
|
//#endregion
|
|
457
429
|
//#region src/services/policies.d.ts
|
|
@@ -463,42 +435,45 @@ declare class Policies {
|
|
|
463
435
|
constructor(api: ApiClient);
|
|
464
436
|
/**
|
|
465
437
|
* List policies in a workspace
|
|
466
|
-
* @param
|
|
438
|
+
* @param workspaceSlug - Workspace slug
|
|
467
439
|
* @param query - Optional pagination parameters (limit, after)
|
|
468
440
|
* @returns Promise that resolves with a paginated list of policies
|
|
469
441
|
* @throws {ApiError} if the request fails
|
|
470
442
|
*/
|
|
471
|
-
listPolicies(
|
|
443
|
+
listPolicies(workspaceSlug: string, query?: CursorPagination): Promise<PoliciesPage>;
|
|
472
444
|
/**
|
|
473
445
|
* Create a policy in a workspace
|
|
474
|
-
* @param
|
|
446
|
+
* @param workspaceSlug - Workspace slug
|
|
475
447
|
* @param policy - Policy creation request
|
|
476
448
|
* @returns Promise that resolves with the created policy
|
|
477
449
|
* @throws {ApiError} if the request fails
|
|
478
450
|
*/
|
|
479
|
-
createPolicy(
|
|
451
|
+
createPolicy(workspaceSlug: string, policy: CreatePolicy): Promise<Policy>;
|
|
480
452
|
/**
|
|
481
|
-
* Get policy details by
|
|
482
|
-
* @param
|
|
453
|
+
* Get policy details by slug
|
|
454
|
+
* @param workspaceSlug - Workspace slug
|
|
455
|
+
* @param policySlug - Policy slug
|
|
483
456
|
* @returns Promise that resolves with the policy details
|
|
484
457
|
* @throws {ApiError} if the request fails
|
|
485
458
|
*/
|
|
486
|
-
getPolicy(
|
|
459
|
+
getPolicy(workspaceSlug: string, policySlug: string): Promise<Policy>;
|
|
487
460
|
/**
|
|
488
461
|
* Update a policy
|
|
489
|
-
* @param
|
|
462
|
+
* @param workspaceSlug - Workspace slug
|
|
463
|
+
* @param policySlug - Policy slug
|
|
490
464
|
* @param updates - Policy update request
|
|
491
465
|
* @returns Promise that resolves with the updated policy
|
|
492
466
|
* @throws {ApiError} if the request fails
|
|
493
467
|
*/
|
|
494
|
-
updatePolicy(
|
|
468
|
+
updatePolicy(workspaceSlug: string, policySlug: string, updates: UpdatePolicy): Promise<Policy>;
|
|
495
469
|
/**
|
|
496
470
|
* Delete a policy
|
|
497
|
-
* @param
|
|
471
|
+
* @param workspaceSlug - Workspace slug
|
|
472
|
+
* @param policySlug - Policy slug
|
|
498
473
|
* @returns Promise that resolves when the policy is deleted
|
|
499
474
|
* @throws {ApiError} if the request fails
|
|
500
475
|
*/
|
|
501
|
-
deletePolicy(
|
|
476
|
+
deletePolicy(workspaceSlug: string, policySlug: string): Promise<void>;
|
|
502
477
|
}
|
|
503
478
|
//#endregion
|
|
504
479
|
//#region src/services/runs.d.ts
|
|
@@ -509,42 +484,57 @@ declare class Runs {
|
|
|
509
484
|
#private;
|
|
510
485
|
constructor(api: ApiClient);
|
|
511
486
|
/**
|
|
512
|
-
* List runs
|
|
513
|
-
* @param
|
|
487
|
+
* List all pipeline runs in a workspace
|
|
488
|
+
* @param workspaceSlug - Workspace slug
|
|
489
|
+
* @param query - Optional query parameters (status, limit, after)
|
|
490
|
+
* @returns Promise that resolves with a paginated list of pipeline runs
|
|
491
|
+
* @throws {ApiError} if the request fails
|
|
492
|
+
*/
|
|
493
|
+
listRuns(workspaceSlug: string, query?: CursorPagination & {
|
|
494
|
+
status?: PipelineRunStatus;
|
|
495
|
+
}): Promise<PipelineRunsPage>;
|
|
496
|
+
/**
|
|
497
|
+
* List runs for a specific pipeline
|
|
498
|
+
* @param workspaceSlug - Workspace slug
|
|
499
|
+
* @param pipelineSlug - Pipeline slug
|
|
514
500
|
* @param query - Optional pagination parameters (limit, after)
|
|
515
501
|
* @returns Promise that resolves with a paginated list of pipeline runs
|
|
516
502
|
* @throws {ApiError} if the request fails
|
|
517
503
|
*/
|
|
518
|
-
|
|
504
|
+
listPipelineRuns(workspaceSlug: string, pipelineSlug: string, query?: CursorPagination): Promise<PipelineRunsPage>;
|
|
519
505
|
/**
|
|
520
506
|
* Trigger a new run for a pipeline
|
|
521
|
-
* @param
|
|
507
|
+
* @param workspaceSlug - Workspace slug
|
|
508
|
+
* @param pipelineSlug - Pipeline slug
|
|
522
509
|
* @param run - Pipeline run creation request
|
|
523
510
|
* @returns Promise that resolves with the created pipeline run
|
|
524
511
|
* @throws {ApiError} if the request fails
|
|
525
512
|
*/
|
|
526
|
-
createRun(
|
|
513
|
+
createRun(workspaceSlug: string, pipelineSlug: string, run: CreatePipelineRun): Promise<PipelineRun>;
|
|
527
514
|
/**
|
|
528
515
|
* Get pipeline run details by ID
|
|
516
|
+
* @param workspaceSlug - Workspace slug
|
|
529
517
|
* @param runId - Run ID
|
|
530
518
|
* @returns Promise that resolves with the pipeline run details
|
|
531
519
|
* @throws {ApiError} if the request fails
|
|
532
520
|
*/
|
|
533
|
-
getRun(runId: string): Promise<PipelineRun>;
|
|
521
|
+
getRun(workspaceSlug: string, runId: string): Promise<PipelineRun>;
|
|
534
522
|
/**
|
|
535
523
|
* Get the detections (analyzed document) for a pipeline run
|
|
524
|
+
* @param workspaceSlug - Workspace slug
|
|
536
525
|
* @param runId - Run ID
|
|
537
526
|
* @returns Promise that resolves with the analyzed document
|
|
538
527
|
* @throws {ApiError} if the request fails
|
|
539
528
|
*/
|
|
540
|
-
getDetections(runId: string): Promise<AnalyzedDocument>;
|
|
529
|
+
getDetections(workspaceSlug: string, runId: string): Promise<AnalyzedDocument>;
|
|
541
530
|
/**
|
|
542
531
|
* Apply redactions to a pipeline run
|
|
532
|
+
* @param workspaceSlug - Workspace slug
|
|
543
533
|
* @param runId - Run ID
|
|
544
534
|
* @returns Promise that resolves with the updated pipeline run
|
|
545
535
|
* @throws {ApiError} if the request fails
|
|
546
536
|
*/
|
|
547
|
-
redact(runId: string): Promise<PipelineRun>;
|
|
537
|
+
redact(workspaceSlug: string, runId: string): Promise<PipelineRun>;
|
|
548
538
|
}
|
|
549
539
|
//#endregion
|
|
550
540
|
//#region src/services/status.d.ts
|
|
@@ -571,50 +561,54 @@ declare class Webhooks {
|
|
|
571
561
|
constructor(api: ApiClient);
|
|
572
562
|
/**
|
|
573
563
|
* List all webhooks in a workspace
|
|
574
|
-
* @param
|
|
564
|
+
* @param workspaceSlug - Workspace slug
|
|
575
565
|
* @param query - Optional pagination parameters (limit, after)
|
|
576
566
|
* @returns Promise that resolves with a paginated list of webhooks
|
|
577
567
|
* @throws {ApiError} if the request fails
|
|
578
568
|
*/
|
|
579
|
-
listWebhooks(
|
|
569
|
+
listWebhooks(workspaceSlug: string, query?: CursorPagination): Promise<WebhooksPage>;
|
|
580
570
|
/**
|
|
581
|
-
*
|
|
582
|
-
* @param
|
|
583
|
-
* @
|
|
571
|
+
* Create a new webhook
|
|
572
|
+
* @param workspaceSlug - Workspace slug
|
|
573
|
+
* @param webhook - Webhook creation request
|
|
574
|
+
* @returns Promise that resolves with the created webhook (including secret)
|
|
584
575
|
* @throws {ApiError} if the request fails
|
|
585
576
|
*/
|
|
586
|
-
|
|
577
|
+
createWebhook(workspaceSlug: string, webhook: CreateWebhook): Promise<WebhookCreated>;
|
|
587
578
|
/**
|
|
588
|
-
*
|
|
589
|
-
* @param
|
|
590
|
-
* @param
|
|
591
|
-
* @returns Promise that resolves with the
|
|
579
|
+
* Get a specific webhook by slug
|
|
580
|
+
* @param workspaceSlug - Workspace slug
|
|
581
|
+
* @param webhookId - Webhook ID
|
|
582
|
+
* @returns Promise that resolves with the webhook details
|
|
592
583
|
* @throws {ApiError} if the request fails
|
|
593
584
|
*/
|
|
594
|
-
|
|
585
|
+
getWebhook(workspaceSlug: string, webhookId: string): Promise<Webhook>;
|
|
595
586
|
/**
|
|
596
587
|
* Update an existing webhook
|
|
588
|
+
* @param workspaceSlug - Workspace slug
|
|
597
589
|
* @param webhookId - Webhook ID
|
|
598
590
|
* @param updates - Webhook update request
|
|
599
591
|
* @returns Promise that resolves with the updated webhook
|
|
600
592
|
* @throws {ApiError} if the request fails
|
|
601
593
|
*/
|
|
602
|
-
updateWebhook(webhookId: string, updates: UpdateWebhook): Promise<Webhook>;
|
|
594
|
+
updateWebhook(workspaceSlug: string, webhookId: string, updates: UpdateWebhook): Promise<Webhook>;
|
|
603
595
|
/**
|
|
604
596
|
* Delete a webhook
|
|
597
|
+
* @param workspaceSlug - Workspace slug
|
|
605
598
|
* @param webhookId - Webhook ID
|
|
606
599
|
* @returns Promise that resolves when the webhook is deleted
|
|
607
600
|
* @throws {ApiError} if the request fails
|
|
608
601
|
*/
|
|
609
|
-
deleteWebhook(webhookId: string): Promise<void>;
|
|
602
|
+
deleteWebhook(workspaceSlug: string, webhookId: string): Promise<void>;
|
|
610
603
|
/**
|
|
611
604
|
* Test a webhook by sending a test payload
|
|
605
|
+
* @param workspaceSlug - Workspace slug
|
|
612
606
|
* @param webhookId - Webhook ID
|
|
613
607
|
* @param options - Test webhook options
|
|
614
608
|
* @returns Promise that resolves with the test result
|
|
615
609
|
* @throws {ApiError} if the request fails
|
|
616
610
|
*/
|
|
617
|
-
testWebhook(webhookId: string, options?: TestWebhook): Promise<WebhookResult>;
|
|
611
|
+
testWebhook(workspaceSlug: string, webhookId: string, options?: TestWebhook): Promise<WebhookResult>;
|
|
618
612
|
}
|
|
619
613
|
//#endregion
|
|
620
614
|
//#region src/services/workspaces.d.ts
|
|
@@ -633,11 +627,11 @@ declare class Workspaces {
|
|
|
633
627
|
listWorkspaces(query?: CursorPagination): Promise<WorkspacesPage>;
|
|
634
628
|
/**
|
|
635
629
|
* Get workspace details by ID
|
|
636
|
-
* @param
|
|
630
|
+
* @param workspaceSlug - Workspace slug
|
|
637
631
|
* @returns Promise that resolves with the workspace details
|
|
638
632
|
* @throws {ApiError} if the request fails
|
|
639
633
|
*/
|
|
640
|
-
getWorkspace(
|
|
634
|
+
getWorkspace(workspaceSlug: string): Promise<Workspace>;
|
|
641
635
|
/**
|
|
642
636
|
* Create a new workspace
|
|
643
637
|
* @param workspace - Workspace creation request
|
|
@@ -647,34 +641,34 @@ declare class Workspaces {
|
|
|
647
641
|
createWorkspace(workspace: CreateWorkspace): Promise<Workspace>;
|
|
648
642
|
/**
|
|
649
643
|
* Update an existing workspace
|
|
650
|
-
* @param
|
|
644
|
+
* @param workspaceSlug - Workspace slug
|
|
651
645
|
* @param updates - Workspace update request
|
|
652
646
|
* @returns Promise that resolves with the updated workspace
|
|
653
647
|
* @throws {ApiError} if the request fails
|
|
654
648
|
*/
|
|
655
|
-
updateWorkspace(
|
|
649
|
+
updateWorkspace(workspaceSlug: string, updates: UpdateWorkspace): Promise<Workspace>;
|
|
656
650
|
/**
|
|
657
651
|
* Delete a workspace
|
|
658
|
-
* @param
|
|
652
|
+
* @param workspaceSlug - Workspace slug
|
|
659
653
|
* @returns Promise that resolves when the workspace is deleted
|
|
660
654
|
* @throws {ApiError} if the request fails
|
|
661
655
|
*/
|
|
662
|
-
deleteWorkspace(
|
|
656
|
+
deleteWorkspace(workspaceSlug: string): Promise<void>;
|
|
663
657
|
/**
|
|
664
658
|
* Get notification settings for the authenticated user in a workspace
|
|
665
|
-
* @param
|
|
659
|
+
* @param workspaceSlug - Workspace slug
|
|
666
660
|
* @returns Promise that resolves with the notification settings
|
|
667
661
|
* @throws {ApiError} if the request fails
|
|
668
662
|
*/
|
|
669
|
-
getNotificationSettings(
|
|
663
|
+
getNotificationSettings(workspaceSlug: string): Promise<NotificationSettings>;
|
|
670
664
|
/**
|
|
671
665
|
* Update notification settings for the authenticated user in a workspace
|
|
672
|
-
* @param
|
|
666
|
+
* @param workspaceSlug - Workspace slug
|
|
673
667
|
* @param settings - Notification settings update request
|
|
674
668
|
* @returns Promise that resolves with the updated notification settings
|
|
675
669
|
* @throws {ApiError} if the request fails
|
|
676
670
|
*/
|
|
677
|
-
updateNotificationSettings(
|
|
671
|
+
updateNotificationSettings(workspaceSlug: string, settings: UpdateNotificationSettings): Promise<NotificationSettings>;
|
|
678
672
|
}
|
|
679
673
|
//#endregion
|
|
680
674
|
//#region src/client.d.ts
|
|
@@ -773,10 +767,6 @@ declare class Nvisy {
|
|
|
773
767
|
* Service for managing connections.
|
|
774
768
|
*/
|
|
775
769
|
get connections(): Connections;
|
|
776
|
-
/**
|
|
777
|
-
* Service for managing contexts.
|
|
778
|
-
*/
|
|
779
|
-
get contexts(): Contexts;
|
|
780
770
|
/**
|
|
781
771
|
* Service for file operations (upload, download, delete).
|
|
782
772
|
*/
|
|
@@ -815,5 +805,5 @@ declare class Nvisy {
|
|
|
815
805
|
get workspaces(): Workspaces;
|
|
816
806
|
}
|
|
817
807
|
//#endregion
|
|
818
|
-
export {
|
|
819
|
-
//# sourceMappingURL=client-
|
|
808
|
+
export { Account as _, Status as a, Pipelines as c, Invites as d, Files as f, Activities as g, ApiTokens as h, Webhooks as i, Notifications as l, Auth as m, Nvisy as n, Runs as o, Connections as p, Workspaces as r, Policies as s, ApiClient as t, Members as u };
|
|
809
|
+
//# sourceMappingURL=client-DAxwkjk3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client-DAxwkjk3.d.ts","names":[],"sources":["../src/services/account.ts","../src/services/activities.ts","../src/services/api-tokens.ts","../src/services/auth.ts","../src/services/connections.ts","../src/services/files.ts","../src/services/invites.ts","../src/services/members.ts","../src/services/notifications.ts","../src/services/pipelines.ts","../src/services/policies.ts","../src/services/runs.ts","../src/services/status.ts","../src/services/webhooks.ts","../src/services/workspaces.ts","../src/client.ts"],"mappings":";;;;;;;cAUa;;EAGA,YAAA,KAAK;;;;;;EASX,cAAc,QAAQ;;;;;;;EAWtB,cAAc,SAAS,gBAAgB,QAAQ;;;;;;EAY/C,iBAAiB;;;;;;;EAUjB,iBAAiB,mBAAmB,QAAQ;;;;;;;cCjDtC;;EAGA,YAAA,KAAK;;;;;;;;EAWX,eACL,uBACA,QAAQ,mBACN,QAAQ;;;;;;;cCVC;;EAGA,YAAA,KAAK;;;;;;;EAUX,cAAc,QAAQ,mBAAmB,QAAQ;;;;;;;EAajD,YAAY,kBAAkB,QAAQ;;;;;;;EAatC,eAAe,OAAO,iBAAiB,QAAQ;;;;;;;;EAc/C,eACL,iBACA,SAAS,iBACP,QAAQ;;;;;;;EAcL,eAAe,kBAAkB;;;;;;;cC7E3B;;EAGA,YAAA,KAAK;;;;;;;EAUX,aAAa,aAAa,QAAQ,QAAQ;;;;;;;EAa1C,cAAc,aAAa,SAAS,QAAQ;;;;;;EAY5C,iBAAiB;;;;;;;cChCX;;EAGA,YAAA,KAAK;;;;;;;;EAWX,gBACL,uBACA,QAAQ;IAAqB;MAC3B,QAAQ;;;;;;;;EAiBL,iBACL,uBACA,YAAY,mBACV,QAAQ;;;;;;;;EAkBL,cACL,uBACA,uBACE,QAAQ;;;;;;;;;EAkBL,iBACL,uBACA,sBACA,SAAS,mBACP,QAAQ;;;;;;;;EAkBL,iBACL,uBACA,uBACE;;;;;;;cCrGS;;EAGA,YAAA,KAAK;;;;;;;;EAWX,YACL,uBACA,OAAO,OAAO,SACZ,QAAQ;;;;;;;;E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