@nvisy/sdk 0.4.0 → 0.6.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.
@@ -1,5 +1,5 @@
1
1
  import { t as ClientConfig } from "./config-BRQp8Cat.js";
2
- import { A as PipelineStatus, At as Signup, B as UnreadStatus, Ct as Connection, D as Pipeline, Dt as UpdateConnection, E as CreatePipeline, Et as CreateConnection, F as CursorPagination, Ft as CreateApiToken, G as MembersPage, H as ListMembers, Ht as UpdateAccount, J as GenerateInviteCode, K as UpdateMember, Lt as UpdateApiToken, Nt as ApiTokenWithJWT, Ot as AuthToken, P as UpdatePipeline, Pt as ApiTokensPage, Q as InvitePreview, R as NotificationSettings, Rt as ActivitiesPage, St as UpdateContext, T as UpdatePolicy, U as Member, Ut as paths, V as UpdateNotificationSettings, Vt as Account$1, X as InviteCode, Y as Invite, _t as Context, a as WorkspacesPage, at as CheckHealth, b as PoliciesPage, bt as ContextsPage, c as UpdateWebhook, d as WebhookResult, ft as FilesPage, g as PipelineRun, h as CreatePipelineRun, j as PipelineSummariesPage, jt as ApiToken, kt as Login, l as Webhook, lt as File, m as AnalyzedDocument, mt as UpdateFile, n as UpdateWorkspace, nt as ListInvites, o as CreateWebhook, p as WebhooksPage, pt as ListFiles, q as CreateInvite, r as Workspace, rt as ReplyInvite, s as TestWebhook, st as Health, t as CreateWorkspace, tt as InvitesPage, v as PipelineRunsPage, wt as ConnectionsPage, x as Policy, xt as CreateContext, y as CreatePolicy, z as NotificationsPage } from "./index-Cmm2g3SG.js";
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-D-y57n8p.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 workspaceId - Workspace ID
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(workspaceId: string, query?: CursorPagination): Promise<ActivitiesPage>;
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 workspaceId - Workspace ID
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(workspaceId: string, query?: CursorPagination & {
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 workspaceId - Workspace ID
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(workspaceId: string, connection: CreateConnection): Promise<Connection>;
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 workspaceId - Workspace ID
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(workspaceId: string, files: Blob | Blob[]): Promise<File[]>;
196
+ uploadFiles(workspaceSlug: string, files: Blob | Blob[]): Promise<File[]>;
234
197
  /**
235
198
  * List files in a workspace
236
- * @param workspaceId - Workspace ID
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(workspaceId: string, query?: ListFiles & CursorPagination): Promise<FilesPage>;
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(workspaceId: string, query?: ListInvites & CursorPagination): Promise<InvitesPage>;
254
+ listInvites(workspaceSlug: string, query?: ListInvites & CursorPagination): Promise<InvitesPage>;
288
255
  /**
289
256
  * Send an invitation to join a workspace
290
- * @param workspaceId - Workspace ID
257
+ * @param workspaceSlug - Workspace slug
291
258
  * @param invite - Invitation request
292
- * @returns Promise that resolves with the created invitation
259
+ * @returns Promise that resolves with the sent invitation
293
260
  * @throws {ApiError} if the request fails
294
261
  */
295
- sendInvite(workspaceId: string, invite: CreateInvite): Promise<Invite>;
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 workspaceId - Workspace ID
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(workspaceId: string, options: GenerateInviteCode): Promise<InviteCode>;
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 workspaceId - Workspace ID
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(workspaceId: string, query?: ListMembers & CursorPagination): Promise<MembersPage>;
319
+ listMembers(workspaceSlug: string, query?: ListMembers & CursorPagination): Promise<MembersPage>;
351
320
  /**
352
- * Get member details by account ID
353
- * @param workspaceId - Workspace ID
354
- * @param accountId - Account ID
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(workspaceId: string, accountId: string): Promise<Member>;
327
+ getMember(workspaceSlug: string, username: string): Promise<Member>;
359
328
  /**
360
329
  * Update a member's role
361
- * @param workspaceId - Workspace ID
362
- * @param accountId - Account ID
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(workspaceId: string, accountId: string, updates: UpdateMember): Promise<Member>;
336
+ updateMember(workspaceSlug: string, username: string, updates: UpdateMember): Promise<Member>;
368
337
  /**
369
338
  * Remove a member from a workspace
370
- * @param workspaceId - Workspace ID
371
- * @param accountId - Account ID
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(workspaceId: string, accountId: string): Promise<void>;
344
+ removeMember(workspaceSlug: string, username: string): Promise<void>;
376
345
  /**
377
346
  * Leave a workspace
378
- * @param workspaceId - Workspace ID
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(workspaceId: string): Promise<void>;
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 workspaceId - Workspace ID
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(workspaceId: string, query?: CursorPagination & {
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 workspaceId - Workspace ID
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(workspaceId: string, pipeline: CreatePipeline): Promise<Pipeline>;
401
+ createPipeline(workspaceSlug: string, pipeline: CreatePipeline): Promise<Pipeline>;
433
402
  /**
434
- * Get pipeline details by ID
435
- * @param pipelineId - Pipeline ID
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(pipelineId: string): Promise<Pipeline>;
409
+ getPipeline(workspaceSlug: string, pipelineSlug: string): Promise<Pipeline>;
440
410
  /**
441
411
  * Update a pipeline
442
- * @param pipelineId - Pipeline ID
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(pipelineId: string, updates: UpdatePipeline): Promise<Pipeline>;
418
+ updatePipeline(workspaceSlug: string, pipelineSlug: string, updates: UpdatePipeline): Promise<Pipeline>;
448
419
  /**
449
420
  * Delete a pipeline
450
- * @param pipelineId - Pipeline ID
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(pipelineId: string): Promise<void>;
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 workspaceId - Workspace ID
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(workspaceId: string, query?: CursorPagination): Promise<PoliciesPage>;
443
+ listPolicies(workspaceSlug: string, query?: CursorPagination): Promise<PoliciesPage>;
472
444
  /**
473
445
  * Create a policy in a workspace
474
- * @param workspaceId - Workspace ID
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(workspaceId: string, policy: CreatePolicy): Promise<Policy>;
451
+ createPolicy(workspaceSlug: string, policy: CreatePolicy): Promise<Policy>;
480
452
  /**
481
- * Get policy details by ID
482
- * @param policyId - Policy ID
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(policyId: string): Promise<Policy>;
459
+ getPolicy(workspaceSlug: string, policySlug: string): Promise<Policy>;
487
460
  /**
488
461
  * Update a policy
489
- * @param policyId - Policy ID
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(policyId: string, updates: UpdatePolicy): Promise<Policy>;
468
+ updatePolicy(workspaceSlug: string, policySlug: string, updates: UpdatePolicy): Promise<Policy>;
495
469
  /**
496
470
  * Delete a policy
497
- * @param policyId - Policy ID
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(policyId: string): Promise<void>;
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 for a pipeline
513
- * @param pipelineId - Pipeline ID
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
- listRuns(pipelineId: string, query?: CursorPagination): Promise<PipelineRunsPage>;
504
+ listPipelineRuns(workspaceSlug: string, pipelineSlug: string, query?: CursorPagination): Promise<PipelineRunsPage>;
519
505
  /**
520
506
  * Trigger a new run for a pipeline
521
- * @param pipelineId - Pipeline ID
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(pipelineId: string, run: CreatePipelineRun): Promise<PipelineRun>;
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 workspaceId - Workspace ID
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(workspaceId: string, query?: CursorPagination): Promise<WebhooksPage>;
569
+ listWebhooks(workspaceSlug: string, query?: CursorPagination): Promise<WebhooksPage>;
580
570
  /**
581
- * Get a specific webhook by ID
582
- * @param webhookId - Webhook ID
583
- * @returns Promise that resolves with the webhook details
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
- getWebhook(webhookId: string): Promise<Webhook>;
577
+ createWebhook(workspaceSlug: string, webhook: CreateWebhook): Promise<WebhookCreated>;
587
578
  /**
588
- * Create a new webhook
589
- * @param workspaceId - Workspace ID
590
- * @param webhook - Webhook creation request
591
- * @returns Promise that resolves with the created webhook
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
- createWebhook(workspaceId: string, webhook: CreateWebhook): Promise<Webhook>;
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 workspaceId - Workspace ID
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(workspaceId: string): Promise<Workspace>;
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 workspaceId - Workspace ID
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(workspaceId: string, updates: UpdateWorkspace): Promise<Workspace>;
649
+ updateWorkspace(workspaceSlug: string, updates: UpdateWorkspace): Promise<Workspace>;
656
650
  /**
657
651
  * Delete a workspace
658
- * @param workspaceId - Workspace ID
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(workspaceId: string): Promise<void>;
656
+ deleteWorkspace(workspaceSlug: string): Promise<void>;
663
657
  /**
664
658
  * Get notification settings for the authenticated user in a workspace
665
- * @param workspaceId - Workspace ID
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(workspaceId: string): Promise<NotificationSettings>;
663
+ getNotificationSettings(workspaceSlug: string): Promise<NotificationSettings>;
670
664
  /**
671
665
  * Update notification settings for the authenticated user in a workspace
672
- * @param workspaceId - Workspace ID
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(workspaceId: string, settings: UpdateNotificationSettings): Promise<NotificationSettings>;
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 { Activities as _, Status as a, Pipelines as c, Invites as d, Files as f, ApiTokens as g, Auth as h, Webhooks as i, Notifications as l, Connections as m, Nvisy as n, Runs as o, Contexts as p, Workspaces as r, Policies as s, ApiClient as t, Members as u, Account as v };
819
- //# sourceMappingURL=client-yLrhST0r.d.ts.map
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-Dm0HXA-W.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-Dm0HXA-W.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;;;;;;;;EA+BL,UACL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