@nvisy/sdk 0.51.0 → 0.52.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,4 +1,4 @@
1
- import { n as NvisyError } from "./errors-D2J3LbE-.js";
1
+ import { n as NvisyError } from "./errors-ChRSBkhj.js";
2
2
 
3
3
  //#region src/services/account.ts
4
4
  /**
@@ -15,7 +15,7 @@ var Account = class {
15
15
  * @throws {ApiError} if the request fails
16
16
  */
17
17
  async getAccount() {
18
- const { data } = await this.#api.GET("/account/");
18
+ const { data } = await this.#api.GET("/account");
19
19
  return data;
20
20
  }
21
21
  /**
@@ -25,7 +25,7 @@ var Account = class {
25
25
  * @throws {ApiError} if the request fails
26
26
  */
27
27
  async updateAccount(updates) {
28
- const { data } = await this.#api.PATCH("/account/", { body: updates });
28
+ const { data } = await this.#api.PATCH("/account", { body: updates });
29
29
  return data;
30
30
  }
31
31
  /**
@@ -34,7 +34,7 @@ var Account = class {
34
34
  * @throws {ApiError} if the request fails
35
35
  */
36
36
  async deleteAccount() {
37
- await this.#api.DELETE("/account/");
37
+ await this.#api.DELETE("/account");
38
38
  }
39
39
  /**
40
40
  * Get a public account profile by account id
@@ -43,7 +43,7 @@ var Account = class {
43
43
  * @throws {ApiError} if the request fails
44
44
  */
45
45
  async getPublicAccount(accountId) {
46
- const { data } = await this.#api.GET("/accounts/{accountId}/", { params: { path: { accountId } } });
46
+ const { data } = await this.#api.GET("/accounts/{accountId}", { params: { path: { accountId } } });
47
47
  return data;
48
48
  }
49
49
  /**
@@ -57,7 +57,7 @@ var Account = class {
57
57
  const formData = new FormData();
58
58
  const name = avatar instanceof File ? avatar.name : "avatar";
59
59
  formData.append("avatar", avatar, name);
60
- const { data } = await this.#api.PUT("/accounts/{accountId}/avatar/", {
60
+ const { data } = await this.#api.PUT("/accounts/{accountId}/avatar", {
61
61
  params: { path: { accountId } },
62
62
  body: formData,
63
63
  bodySerializer: (formData) => formData,
@@ -72,7 +72,7 @@ var Account = class {
72
72
  * @throws {ApiError} if the request fails
73
73
  */
74
74
  async deleteAvatar(accountId) {
75
- await this.#api.DELETE("/accounts/{accountId}/avatar/", { params: { path: { accountId } } });
75
+ await this.#api.DELETE("/accounts/{accountId}/avatar", { params: { path: { accountId } } });
76
76
  }
77
77
  /**
78
78
  * List the account's sign-in methods: its password and linked providers.
@@ -80,7 +80,7 @@ var Account = class {
80
80
  * @throws {ApiError} if the request fails
81
81
  */
82
82
  async listIdentities() {
83
- const { data } = await this.#api.GET("/account/identities/");
83
+ const { data } = await this.#api.GET("/account/identities");
84
84
  return data;
85
85
  }
86
86
  /**
@@ -95,7 +95,7 @@ var Account = class {
95
95
  * @throws {ApiError} if the request fails
96
96
  */
97
97
  async setPassword(request) {
98
- await this.#api.PUT("/account/identities/password/", { body: request });
98
+ await this.#api.PUT("/account/identities/password", { body: request });
99
99
  }
100
100
  /**
101
101
  * Remove the account's password, leaving only its linked providers.
@@ -106,7 +106,7 @@ var Account = class {
106
106
  * @throws {ApiError} if the request fails
107
107
  */
108
108
  async removePassword() {
109
- await this.#api.DELETE("/account/identities/password/");
109
+ await this.#api.DELETE("/account/identities/password");
110
110
  }
111
111
  /**
112
112
  * Begin linking an OIDC provider to the account.
@@ -121,7 +121,7 @@ var Account = class {
121
121
  * @throws {ApiError} if the request fails
122
122
  */
123
123
  async linkIdentity(provider, query) {
124
- const { data } = await this.#api.POST("/account/identities/{provider}/", { params: {
124
+ const { data } = await this.#api.POST("/account/identities/{provider}", { params: {
125
125
  path: { provider },
126
126
  query
127
127
  } });
@@ -137,7 +137,7 @@ var Account = class {
137
137
  * @throws {ApiError} if the request fails
138
138
  */
139
139
  async unlinkIdentity(provider) {
140
- await this.#api.DELETE("/account/identities/{provider}/", { params: { path: { provider } } });
140
+ await this.#api.DELETE("/account/identities/{provider}", { params: { path: { provider } } });
141
141
  }
142
142
  /**
143
143
  * Begin a step-up re-authentication with an already-linked provider.
@@ -152,7 +152,7 @@ var Account = class {
152
152
  * @throws {ApiError} if the request fails
153
153
  */
154
154
  async reauth(provider, query) {
155
- const { data } = await this.#api.GET("/auth/{provider}/reauth/", { params: {
155
+ const { data } = await this.#api.GET("/auth/{provider}/reauth", { params: {
156
156
  path: { provider },
157
157
  query
158
158
  } });
@@ -179,7 +179,7 @@ var Activities = class {
179
179
  * @throws {ApiError} if the request fails
180
180
  */
181
181
  async listActivities(workspaceId, query) {
182
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/activities/", { params: {
182
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/activities", { params: {
183
183
  path: { workspaceId },
184
184
  query
185
185
  } });
@@ -222,7 +222,7 @@ var Analytics = class {
222
222
  * @throws {ApiError} if the request fails
223
223
  */
224
224
  async getAnalytics(workspaceId) {
225
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/analytics/", { params: { path: { workspaceId } } });
225
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/analytics", { params: { path: { workspaceId } } });
226
226
  return data;
227
227
  }
228
228
  /**
@@ -233,7 +233,7 @@ var Analytics = class {
233
233
  * @throws {ApiError} if the request fails
234
234
  */
235
235
  async getDetectionTimeSeries(workspaceId, query) {
236
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/analytics/detections/timeseries/", { params: {
236
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/analytics/detections/timeseries", { params: {
237
237
  path: { workspaceId },
238
238
  query
239
239
  } });
@@ -258,7 +258,7 @@ var ApiTokens = class {
258
258
  * @throws {ApiError} if the request fails
259
259
  */
260
260
  async listApiTokens(query) {
261
- const { data } = await this.#api.GET("/api-tokens/", { params: { query } });
261
+ const { data } = await this.#api.GET("/api-tokens", { params: { query } });
262
262
  return data;
263
263
  }
264
264
  /**
@@ -268,7 +268,7 @@ var ApiTokens = class {
268
268
  * @throws {ApiError} if the request fails
269
269
  */
270
270
  async getApiToken(tokenId) {
271
- const { data } = await this.#api.GET("/api-tokens/{tokenId}/", { params: { path: { tokenId } } });
271
+ const { data } = await this.#api.GET("/api-tokens/{tokenId}", { params: { path: { tokenId } } });
272
272
  return data;
273
273
  }
274
274
  /**
@@ -278,7 +278,7 @@ var ApiTokens = class {
278
278
  * @throws {ApiError} if the request fails
279
279
  */
280
280
  async createApiToken(token) {
281
- const { data } = await this.#api.POST("/api-tokens/", { body: token });
281
+ const { data } = await this.#api.POST("/api-tokens", { body: token });
282
282
  return data;
283
283
  }
284
284
  /**
@@ -289,7 +289,7 @@ var ApiTokens = class {
289
289
  * @throws {ApiError} if the request fails
290
290
  */
291
291
  async updateApiToken(tokenId, updates) {
292
- const { data } = await this.#api.PATCH("/api-tokens/{tokenId}/", {
292
+ const { data } = await this.#api.PATCH("/api-tokens/{tokenId}", {
293
293
  params: { path: { tokenId } },
294
294
  body: updates
295
295
  });
@@ -302,7 +302,7 @@ var ApiTokens = class {
302
302
  * @throws {ApiError} if the request fails
303
303
  */
304
304
  async revokeApiToken(tokenId) {
305
- await this.#api.DELETE("/api-tokens/{tokenId}/", { params: { path: { tokenId } } });
305
+ await this.#api.DELETE("/api-tokens/{tokenId}", { params: { path: { tokenId } } });
306
306
  }
307
307
  };
308
308
 
@@ -328,7 +328,7 @@ var Auth = class {
328
328
  * @throws {ApiError} if the request fails
329
329
  */
330
330
  async loginAccount(credentials) {
331
- await this.#api.POST("/auth/login/", { body: credentials });
331
+ await this.#api.POST("/auth/login", { body: credentials });
332
332
  }
333
333
  /**
334
334
  * Sign up a new account, starting a browser session.
@@ -342,7 +342,7 @@ var Auth = class {
342
342
  * @throws {ApiError} if the request fails
343
343
  */
344
344
  async signupAccount(credentials) {
345
- await this.#api.POST("/auth/signup/", { body: credentials });
345
+ await this.#api.POST("/auth/signup", { body: credentials });
346
346
  }
347
347
  /**
348
348
  * Logout, invalidating the current session and clearing its cookies.
@@ -350,7 +350,7 @@ var Auth = class {
350
350
  * @throws {ApiError} if the request fails
351
351
  */
352
352
  async logoutAccount() {
353
- await this.#api.POST("/auth/logout/");
353
+ await this.#api.POST("/auth/logout");
354
354
  }
355
355
  /**
356
356
  * Begin an OpenID Connect sign-in with a provider.
@@ -365,7 +365,7 @@ var Auth = class {
365
365
  * @throws {ApiError} if the request fails
366
366
  */
367
367
  async startOidcSignIn(provider, query) {
368
- const { data } = await this.#api.GET("/auth/{provider}/start/", { params: {
368
+ const { data } = await this.#api.GET("/auth/{provider}/start", { params: {
369
369
  path: { provider },
370
370
  query
371
371
  } });
@@ -384,7 +384,7 @@ var Auth = class {
384
384
  * @throws {ApiError} if the request fails
385
385
  */
386
386
  async mintDesktopToken(request) {
387
- const { data } = await this.#api.POST("/auth/desktop/token/", { body: request });
387
+ const { data } = await this.#api.POST("/auth/desktop/token", { body: request });
388
388
  return data;
389
389
  }
390
390
  };
@@ -406,7 +406,7 @@ var Capabilities = class {
406
406
  * @returns Promise that resolves with the label catalog.
407
407
  */
408
408
  async listLabels() {
409
- const { data } = await this.#api.GET("/capabilities/labels/");
409
+ const { data } = await this.#api.GET("/capabilities/labels");
410
410
  return data;
411
411
  }
412
412
  /**
@@ -414,7 +414,7 @@ var Capabilities = class {
414
414
  * @returns Promise that resolves with the recognizer catalog.
415
415
  */
416
416
  async listRecognizers() {
417
- const { data } = await this.#api.GET("/capabilities/recognizers/");
417
+ const { data } = await this.#api.GET("/capabilities/recognizers");
418
418
  return data;
419
419
  }
420
420
  /**
@@ -428,7 +428,7 @@ var Capabilities = class {
428
428
  * @returns Promise that resolves with the connector capabilities.
429
429
  */
430
430
  async listConnectors() {
431
- const { data } = await this.#api.GET("/capabilities/connectors/");
431
+ const { data } = await this.#api.GET("/capabilities/connectors");
432
432
  return data;
433
433
  }
434
434
  /**
@@ -436,7 +436,7 @@ var Capabilities = class {
436
436
  * @returns Promise that resolves with the auth capabilities.
437
437
  */
438
438
  async getAuthCapabilities() {
439
- const { data } = await this.#api.GET("/capabilities/auth/");
439
+ const { data } = await this.#api.GET("/capabilities/auth");
440
440
  return data;
441
441
  }
442
442
  };
@@ -459,7 +459,7 @@ var Connections = class {
459
459
  * @throws {ApiError} if the request fails
460
460
  */
461
461
  async listConnections(workspaceId, query) {
462
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/", { params: {
462
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections", { params: {
463
463
  path: { workspaceId },
464
464
  query
465
465
  } });
@@ -473,7 +473,7 @@ var Connections = class {
473
473
  * @throws {ApiError} if the request fails
474
474
  */
475
475
  async createConnection(workspaceId, connection) {
476
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/", {
476
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections", {
477
477
  params: { path: { workspaceId } },
478
478
  body: connection
479
479
  });
@@ -487,7 +487,7 @@ var Connections = class {
487
487
  * @throws {ApiError} if the request fails
488
488
  */
489
489
  async getConnection(workspaceId, connectionId) {
490
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/{connectionId}/", { params: { path: {
490
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/{connectionId}", { params: { path: {
491
491
  workspaceId,
492
492
  connectionId
493
493
  } } });
@@ -502,7 +502,7 @@ var Connections = class {
502
502
  * @throws {ApiError} if the request fails
503
503
  */
504
504
  async updateConnection(workspaceId, connectionId, updates) {
505
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/connections/{connectionId}/", {
505
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/connections/{connectionId}", {
506
506
  params: { path: {
507
507
  workspaceId,
508
508
  connectionId
@@ -519,7 +519,7 @@ var Connections = class {
519
519
  * @throws {ApiError} if the request fails
520
520
  */
521
521
  async deleteConnection(workspaceId, connectionId) {
522
- await this.#api.DELETE("/workspaces/{workspaceId}/connections/{connectionId}/", { params: { path: {
522
+ await this.#api.DELETE("/workspaces/{workspaceId}/connections/{connectionId}", { params: { path: {
523
523
  workspaceId,
524
524
  connectionId
525
525
  } } });
@@ -532,7 +532,7 @@ var Connections = class {
532
532
  * @throws {ApiError} if the request fails
533
533
  */
534
534
  async verifyConnection(workspaceId, connectionId) {
535
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/verify/", { params: { path: {
535
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/verify", { params: { path: {
536
536
  workspaceId,
537
537
  connectionId
538
538
  } } });
@@ -552,7 +552,7 @@ var Connections = class {
552
552
  * @throws {ApiError} if the request fails
553
553
  */
554
554
  async startFileServiceOAuth(workspaceId, provider, request) {
555
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/oauth/{provider}/start/", {
555
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/oauth/{provider}/start", {
556
556
  params: { path: {
557
557
  workspaceId,
558
558
  provider
@@ -575,7 +575,7 @@ var Connections = class {
575
575
  * @throws {ApiError} if the request fails
576
576
  */
577
577
  async importFiles(workspaceId, connectionId, request) {
578
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/import/", {
578
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/import", {
579
579
  params: { path: {
580
580
  workspaceId,
581
581
  connectionId
@@ -598,7 +598,7 @@ var Connections = class {
598
598
  * @throws {ApiError} if the request fails
599
599
  */
600
600
  async exportFiles(workspaceId, connectionId, request) {
601
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/export/", {
601
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/export", {
602
602
  params: { path: {
603
603
  workspaceId,
604
604
  connectionId
@@ -621,7 +621,7 @@ var Connections = class {
621
621
  * @throws {ApiError} if the request fails
622
622
  */
623
623
  async getPickerToken(workspaceId, connectionId, request = {}) {
624
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/picker-token/", {
624
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/picker-token", {
625
625
  params: { path: {
626
626
  workspaceId,
627
627
  connectionId
@@ -706,7 +706,7 @@ var Detections = class {
706
706
  * @throws {ApiError} if the request fails
707
707
  */
708
708
  async listDetections(workspaceId, query) {
709
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/detections/", { params: {
709
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/detections", { params: {
710
710
  path: { workspaceId },
711
711
  query
712
712
  } });
@@ -722,7 +722,7 @@ var Detections = class {
722
722
  * @throws {ApiError} if the request fails
723
723
  */
724
724
  async listPipelineDetections(workspaceId, pipelineId, query) {
725
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/{pipelineId}/detections/", { params: {
725
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/{pipelineId}/detections", { params: {
726
726
  path: {
727
727
  workspaceId,
728
728
  pipelineId
@@ -740,7 +740,7 @@ var Detections = class {
740
740
  * @throws {ApiError} if the request fails
741
741
  */
742
742
  async createDetection(workspaceId, pipelineId, detection) {
743
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/pipelines/{pipelineId}/detections/", {
743
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/pipelines/{pipelineId}/detections", {
744
744
  params: { path: {
745
745
  workspaceId,
746
746
  pipelineId
@@ -757,7 +757,7 @@ var Detections = class {
757
757
  * @throws {ApiError} if the request fails
758
758
  */
759
759
  async createAdhocDetection(workspaceId, detection) {
760
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/detections/", {
760
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/detections", {
761
761
  params: { path: { workspaceId } },
762
762
  body: detection
763
763
  });
@@ -771,7 +771,7 @@ var Detections = class {
771
771
  * @throws {ApiError} if the request fails
772
772
  */
773
773
  async getDetection(workspaceId, detectionId) {
774
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/", { params: { path: {
774
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}", { params: { path: {
775
775
  workspaceId,
776
776
  detectionId
777
777
  } } });
@@ -785,7 +785,7 @@ var Detections = class {
785
785
  * @throws {ApiError} if the request fails
786
786
  */
787
787
  async getAnalysis(workspaceId, detectionId) {
788
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/analysis/", { params: { path: {
788
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/analysis", { params: { path: {
789
789
  workspaceId,
790
790
  detectionId
791
791
  } } });
@@ -805,7 +805,7 @@ var Detections = class {
805
805
  * @throws {ApiError} if the request fails (404 when there are none)
806
806
  */
807
807
  async getIntermediates(workspaceId, detectionId) {
808
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/intermediates/", { params: { path: {
808
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/intermediates", { params: { path: {
809
809
  workspaceId,
810
810
  detectionId
811
811
  } } });
@@ -824,7 +824,7 @@ var Detections = class {
824
824
  * @throws {ApiError} if the request fails
825
825
  */
826
826
  async downloadAudit(workspaceId, detectionId, query) {
827
- const { response } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/audit/", {
827
+ const { response } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/audit", {
828
828
  params: {
829
829
  path: {
830
830
  workspaceId,
@@ -850,7 +850,7 @@ var Detections = class {
850
850
  * @throws {ApiError} if the request fails
851
851
  */
852
852
  async events(workspaceId, detectionId) {
853
- const { response } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/events/", {
853
+ const { response } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/events", {
854
854
  params: { path: {
855
855
  workspaceId,
856
856
  detectionId
@@ -886,7 +886,7 @@ var Detections = class {
886
886
  * @throws {ApiError} if the request fails
887
887
  */
888
888
  async listRedactions(workspaceId, detectionId, query) {
889
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/redactions/", { params: {
889
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/detections/{detectionId}/redactions", { params: {
890
890
  path: {
891
891
  workspaceId,
892
892
  detectionId
@@ -904,7 +904,7 @@ var Detections = class {
904
904
  * @throws {ApiError} if the request fails
905
905
  */
906
906
  async createRedaction(workspaceId, detectionId, redaction) {
907
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/detections/{detectionId}/redactions/", {
907
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/detections/{detectionId}/redactions", {
908
908
  params: { path: {
909
909
  workspaceId,
910
910
  detectionId
@@ -939,7 +939,7 @@ var Documents = class {
939
939
  const name = document instanceof File ? document.name : "document";
940
940
  formData.append("documents", document, name);
941
941
  }
942
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/documents/", {
942
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/documents", {
943
943
  params: { path: { workspaceId } },
944
944
  body: formData,
945
945
  bodySerializer: (formData) => formData,
@@ -956,7 +956,7 @@ var Documents = class {
956
956
  * @throws {ApiError} if the request fails
957
957
  */
958
958
  async listDocuments(workspaceId, query) {
959
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/documents/", { params: {
959
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/documents", { params: {
960
960
  path: { workspaceId },
961
961
  query
962
962
  } });
@@ -970,7 +970,7 @@ var Documents = class {
970
970
  * @throws {ApiError} if the request fails
971
971
  */
972
972
  async getDocument(workspaceId, documentId) {
973
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/documents/{documentId}/", { params: { path: {
973
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/documents/{documentId}", { params: { path: {
974
974
  workspaceId,
975
975
  documentId
976
976
  } } });
@@ -984,7 +984,7 @@ var Documents = class {
984
984
  * @throws {ApiError} if the request fails
985
985
  */
986
986
  async downloadDocument(workspaceId, documentId) {
987
- const { response } = await this.#api.GET("/workspaces/{workspaceId}/documents/{documentId}/content/", {
987
+ const { response } = await this.#api.GET("/workspaces/{workspaceId}/documents/{documentId}/content", {
988
988
  params: { path: {
989
989
  workspaceId,
990
990
  documentId
@@ -1002,7 +1002,7 @@ var Documents = class {
1002
1002
  * @throws {ApiError} if the request fails
1003
1003
  */
1004
1004
  async updateDocument(workspaceId, documentId, updates) {
1005
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/documents/{documentId}/", {
1005
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/documents/{documentId}", {
1006
1006
  params: { path: {
1007
1007
  workspaceId,
1008
1008
  documentId
@@ -1019,7 +1019,7 @@ var Documents = class {
1019
1019
  * @throws {ApiError} if the request fails
1020
1020
  */
1021
1021
  async deleteDocument(workspaceId, documentId) {
1022
- await this.#api.DELETE("/workspaces/{workspaceId}/documents/{documentId}/", { params: { path: {
1022
+ await this.#api.DELETE("/workspaces/{workspaceId}/documents/{documentId}", { params: { path: {
1023
1023
  workspaceId,
1024
1024
  documentId
1025
1025
  } } });
@@ -1037,7 +1037,7 @@ var Documents = class {
1037
1037
  * @throws {ApiError} if the request fails
1038
1038
  */
1039
1039
  async deleteDocuments(workspaceId, documentIds) {
1040
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/documents/delete/", {
1040
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/documents/delete", {
1041
1041
  params: { path: { workspaceId } },
1042
1042
  body: { documentIds }
1043
1043
  });
@@ -1052,7 +1052,7 @@ var Documents = class {
1052
1052
  * @throws {ApiError} if the request fails
1053
1053
  */
1054
1054
  async assignReview(workspaceId, documentId, assignment) {
1055
- const { data } = await this.#api.PUT("/workspaces/{workspaceId}/documents/{documentId}/review/assign/", {
1055
+ const { data } = await this.#api.PUT("/workspaces/{workspaceId}/documents/{documentId}/review/assign", {
1056
1056
  params: { path: {
1057
1057
  workspaceId,
1058
1058
  documentId
@@ -1069,7 +1069,7 @@ var Documents = class {
1069
1069
  * @throws {ApiError} if the request fails
1070
1070
  */
1071
1071
  async verifyReview(workspaceId, documentId) {
1072
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/documents/{documentId}/review/verify/", { params: { path: {
1072
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/documents/{documentId}/review/verify", { params: { path: {
1073
1073
  workspaceId,
1074
1074
  documentId
1075
1075
  } } });
@@ -1095,7 +1095,7 @@ var Invites = class {
1095
1095
  * @throws {ApiError} if the request fails
1096
1096
  */
1097
1097
  async listInvites(workspaceId, query) {
1098
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/invites/", { params: {
1098
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/invites", { params: {
1099
1099
  path: { workspaceId },
1100
1100
  query
1101
1101
  } });
@@ -1109,7 +1109,7 @@ var Invites = class {
1109
1109
  * @throws {ApiError} if the request fails
1110
1110
  */
1111
1111
  async sendInvite(workspaceId, invite) {
1112
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/invites/", {
1112
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/invites", {
1113
1113
  params: { path: { workspaceId } },
1114
1114
  body: invite
1115
1115
  });
@@ -1123,7 +1123,7 @@ var Invites = class {
1123
1123
  * @throws {ApiError} if the request fails
1124
1124
  */
1125
1125
  async cancelInvite(workspaceId, inviteId) {
1126
- await this.#api.DELETE("/workspaces/{workspaceId}/invites/{inviteId}/", { params: { path: {
1126
+ await this.#api.DELETE("/workspaces/{workspaceId}/invites/{inviteId}", { params: { path: {
1127
1127
  workspaceId,
1128
1128
  inviteId
1129
1129
  } } });
@@ -1137,7 +1137,7 @@ var Invites = class {
1137
1137
  * @throws {ApiError} if the request fails
1138
1138
  */
1139
1139
  async replyToInvite(workspaceId, inviteId, reply) {
1140
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/invites/{inviteId}/", {
1140
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/invites/{inviteId}", {
1141
1141
  params: { path: {
1142
1142
  workspaceId,
1143
1143
  inviteId
@@ -1154,7 +1154,7 @@ var Invites = class {
1154
1154
  * @throws {ApiError} if the request fails
1155
1155
  */
1156
1156
  async generateInviteCode(workspaceId, options) {
1157
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/invites/code/", {
1157
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/invites/code", {
1158
1158
  params: { path: { workspaceId } },
1159
1159
  body: options
1160
1160
  });
@@ -1168,7 +1168,7 @@ var Invites = class {
1168
1168
  * @throws {ApiError} if the request fails
1169
1169
  */
1170
1170
  async replyToInviteCode(inviteCode, reply) {
1171
- const { data } = await this.#api.POST("/invites/code/{inviteCode}/", {
1171
+ const { data } = await this.#api.POST("/invites/code/{inviteCode}", {
1172
1172
  params: { path: { inviteCode } },
1173
1173
  body: reply
1174
1174
  });
@@ -1181,7 +1181,7 @@ var Invites = class {
1181
1181
  * @throws {ApiError} if the request fails
1182
1182
  */
1183
1183
  async previewInvite(inviteCode) {
1184
- const { data } = await this.#api.GET("/invites/code/{inviteCode}/", { params: { path: { inviteCode } } });
1184
+ const { data } = await this.#api.GET("/invites/code/{inviteCode}", { params: { path: { inviteCode } } });
1185
1185
  return data;
1186
1186
  }
1187
1187
  };
@@ -1204,7 +1204,7 @@ var Members = class {
1204
1204
  * @throws {ApiError} if the request fails
1205
1205
  */
1206
1206
  async listMembers(workspaceId, query) {
1207
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/members/", { params: {
1207
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/members", { params: {
1208
1208
  path: { workspaceId },
1209
1209
  query
1210
1210
  } });
@@ -1218,7 +1218,7 @@ var Members = class {
1218
1218
  * @throws {ApiError} if the request fails
1219
1219
  */
1220
1220
  async getMember(workspaceId, accountId) {
1221
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/members/{accountId}/", { params: { path: {
1221
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/members/{accountId}", { params: { path: {
1222
1222
  workspaceId,
1223
1223
  accountId
1224
1224
  } } });
@@ -1233,7 +1233,7 @@ var Members = class {
1233
1233
  * @throws {ApiError} if the request fails
1234
1234
  */
1235
1235
  async updateMember(workspaceId, accountId, updates) {
1236
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/members/{accountId}/", {
1236
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/members/{accountId}", {
1237
1237
  params: { path: {
1238
1238
  workspaceId,
1239
1239
  accountId
@@ -1250,7 +1250,7 @@ var Members = class {
1250
1250
  * @throws {ApiError} if the request fails
1251
1251
  */
1252
1252
  async removeMember(workspaceId, accountId) {
1253
- await this.#api.DELETE("/workspaces/{workspaceId}/members/{accountId}/", { params: { path: {
1253
+ await this.#api.DELETE("/workspaces/{workspaceId}/members/{accountId}", { params: { path: {
1254
1254
  workspaceId,
1255
1255
  accountId
1256
1256
  } } });
@@ -1262,7 +1262,7 @@ var Members = class {
1262
1262
  * @throws {ApiError} if the request fails
1263
1263
  */
1264
1264
  async leaveWorkspace(workspaceId) {
1265
- await this.#api.POST("/workspaces/{workspaceId}/members/leave/", { params: { path: { workspaceId } } });
1265
+ await this.#api.POST("/workspaces/{workspaceId}/members/leave", { params: { path: { workspaceId } } });
1266
1266
  }
1267
1267
  };
1268
1268
 
@@ -1283,7 +1283,7 @@ var Notifications = class {
1283
1283
  * @throws {ApiError} if the request fails
1284
1284
  */
1285
1285
  async listNotifications(query) {
1286
- const { data } = await this.#api.GET("/notifications/", { params: { query } });
1286
+ const { data } = await this.#api.GET("/notifications", { params: { query } });
1287
1287
  return data;
1288
1288
  }
1289
1289
  /**
@@ -1292,7 +1292,7 @@ var Notifications = class {
1292
1292
  * @throws {ApiError} if the request fails
1293
1293
  */
1294
1294
  async getUnreadNotificationsStatus() {
1295
- const { data } = await this.#api.GET("/notifications/unread/");
1295
+ const { data } = await this.#api.GET("/notifications/unread");
1296
1296
  return data;
1297
1297
  }
1298
1298
  /**
@@ -1301,7 +1301,7 @@ var Notifications = class {
1301
1301
  * @throws {ApiError} if the request fails
1302
1302
  */
1303
1303
  async markAllRead() {
1304
- const { data } = await this.#api.POST("/notifications/read/");
1304
+ const { data } = await this.#api.POST("/notifications/read");
1305
1305
  return data;
1306
1306
  }
1307
1307
  /**
@@ -1310,7 +1310,7 @@ var Notifications = class {
1310
1310
  * @throws {ApiError} if the request fails
1311
1311
  */
1312
1312
  async markRead(notificationId) {
1313
- await this.#api.POST("/notifications/{notificationId}/read/", { params: { path: { notificationId } } });
1313
+ await this.#api.POST("/notifications/{notificationId}/read", { params: { path: { notificationId } } });
1314
1314
  }
1315
1315
  /**
1316
1316
  * Open the raw Server-Sent Events stream of the account's unread count.
@@ -1324,7 +1324,7 @@ var Notifications = class {
1324
1324
  * @throws {ApiError} if the request fails
1325
1325
  */
1326
1326
  async events() {
1327
- const { response } = await this.#api.GET("/notifications/unread/events/", { parseAs: "stream" });
1327
+ const { response } = await this.#api.GET("/notifications/unread/events", { parseAs: "stream" });
1328
1328
  return response;
1329
1329
  }
1330
1330
  /**
@@ -1363,7 +1363,7 @@ var Pipelines = class {
1363
1363
  * @throws {ApiError} if the request fails
1364
1364
  */
1365
1365
  async listPipelines(workspaceId, query) {
1366
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/", { params: {
1366
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines", { params: {
1367
1367
  path: { workspaceId },
1368
1368
  query
1369
1369
  } });
@@ -1377,7 +1377,7 @@ var Pipelines = class {
1377
1377
  * @throws {ApiError} if the request fails
1378
1378
  */
1379
1379
  async createPipeline(workspaceId, pipeline) {
1380
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/pipelines/", {
1380
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/pipelines", {
1381
1381
  params: { path: { workspaceId } },
1382
1382
  body: pipeline
1383
1383
  });
@@ -1391,7 +1391,7 @@ var Pipelines = class {
1391
1391
  * @throws {ApiError} if the request fails
1392
1392
  */
1393
1393
  async getPipeline(workspaceId, pipelineId) {
1394
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/{pipelineId}/", { params: { path: {
1394
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/pipelines/{pipelineId}", { params: { path: {
1395
1395
  workspaceId,
1396
1396
  pipelineId
1397
1397
  } } });
@@ -1406,7 +1406,7 @@ var Pipelines = class {
1406
1406
  * @throws {ApiError} if the request fails
1407
1407
  */
1408
1408
  async updatePipeline(workspaceId, pipelineId, updates) {
1409
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/pipelines/{pipelineId}/", {
1409
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/pipelines/{pipelineId}", {
1410
1410
  params: { path: {
1411
1411
  workspaceId,
1412
1412
  pipelineId
@@ -1423,7 +1423,7 @@ var Pipelines = class {
1423
1423
  * @throws {ApiError} if the request fails
1424
1424
  */
1425
1425
  async deletePipeline(workspaceId, pipelineId) {
1426
- await this.#api.DELETE("/workspaces/{workspaceId}/pipelines/{pipelineId}/", { params: { path: {
1426
+ await this.#api.DELETE("/workspaces/{workspaceId}/pipelines/{pipelineId}", { params: { path: {
1427
1427
  workspaceId,
1428
1428
  pipelineId
1429
1429
  } } });
@@ -1448,7 +1448,7 @@ var Policies = class {
1448
1448
  * @throws {ApiError} if the request fails
1449
1449
  */
1450
1450
  async listPolicies(workspaceId, query) {
1451
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/policies/", { params: {
1451
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/policies", { params: {
1452
1452
  path: { workspaceId },
1453
1453
  query
1454
1454
  } });
@@ -1462,7 +1462,7 @@ var Policies = class {
1462
1462
  * @throws {ApiError} if the request fails
1463
1463
  */
1464
1464
  async createPolicy(workspaceId, policy) {
1465
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/policies/", {
1465
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/policies", {
1466
1466
  params: { path: { workspaceId } },
1467
1467
  body: policy
1468
1468
  });
@@ -1476,7 +1476,7 @@ var Policies = class {
1476
1476
  * @throws {ApiError} if the request fails
1477
1477
  */
1478
1478
  async getPolicy(workspaceId, policyId) {
1479
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/policies/{policyId}/", { params: { path: {
1479
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/policies/{policyId}", { params: { path: {
1480
1480
  workspaceId,
1481
1481
  policyId
1482
1482
  } } });
@@ -1491,7 +1491,7 @@ var Policies = class {
1491
1491
  * @throws {ApiError} if the request fails
1492
1492
  */
1493
1493
  async updatePolicy(workspaceId, policyId, updates) {
1494
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/policies/{policyId}/", {
1494
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/policies/{policyId}", {
1495
1495
  params: { path: {
1496
1496
  workspaceId,
1497
1497
  policyId
@@ -1508,7 +1508,7 @@ var Policies = class {
1508
1508
  * @throws {ApiError} if the request fails
1509
1509
  */
1510
1510
  async deletePolicy(workspaceId, policyId) {
1511
- await this.#api.DELETE("/workspaces/{workspaceId}/policies/{policyId}/", { params: { path: {
1511
+ await this.#api.DELETE("/workspaces/{workspaceId}/policies/{policyId}", { params: { path: {
1512
1512
  workspaceId,
1513
1513
  policyId
1514
1514
  } } });
@@ -1535,7 +1535,7 @@ var Providers = class {
1535
1535
  * @throws {ApiError} if the request fails
1536
1536
  */
1537
1537
  async listProviders(workspaceId, query) {
1538
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/providers/", { params: {
1538
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/providers", { params: {
1539
1539
  path: { workspaceId },
1540
1540
  query
1541
1541
  } });
@@ -1549,7 +1549,7 @@ var Providers = class {
1549
1549
  * @throws {ApiError} if the request fails
1550
1550
  */
1551
1551
  async createProvider(workspaceId, provider) {
1552
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/providers/", {
1552
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/providers", {
1553
1553
  params: { path: { workspaceId } },
1554
1554
  body: provider
1555
1555
  });
@@ -1563,7 +1563,7 @@ var Providers = class {
1563
1563
  * @throws {ApiError} if the request fails
1564
1564
  */
1565
1565
  async getProvider(workspaceId, providerId) {
1566
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/providers/{providerId}/", { params: { path: {
1566
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/providers/{providerId}", { params: { path: {
1567
1567
  workspaceId,
1568
1568
  providerId
1569
1569
  } } });
@@ -1578,7 +1578,7 @@ var Providers = class {
1578
1578
  * @throws {ApiError} if the request fails
1579
1579
  */
1580
1580
  async updateProvider(workspaceId, providerId, updates) {
1581
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/providers/{providerId}/", {
1581
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/providers/{providerId}", {
1582
1582
  params: { path: {
1583
1583
  workspaceId,
1584
1584
  providerId
@@ -1595,7 +1595,7 @@ var Providers = class {
1595
1595
  * @throws {ApiError} if the request fails
1596
1596
  */
1597
1597
  async deleteProvider(workspaceId, providerId) {
1598
- await this.#api.DELETE("/workspaces/{workspaceId}/providers/{providerId}/", { params: { path: {
1598
+ await this.#api.DELETE("/workspaces/{workspaceId}/providers/{providerId}", { params: { path: {
1599
1599
  workspaceId,
1600
1600
  providerId
1601
1601
  } } });
@@ -1608,7 +1608,7 @@ var Providers = class {
1608
1608
  * @throws {ApiError} if the request fails
1609
1609
  */
1610
1610
  async verifyProvider(workspaceId, providerId) {
1611
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/providers/{providerId}/verify/", { params: { path: {
1611
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/providers/{providerId}/verify", { params: { path: {
1612
1612
  workspaceId,
1613
1613
  providerId
1614
1614
  } } });
@@ -1654,11 +1654,39 @@ var Status = class {
1654
1654
  this.#api = api;
1655
1655
  }
1656
1656
  /**
1657
- * Check the health status of the API
1657
+ * Check the health status of the API.
1658
+ *
1659
+ * Reports the server's health and that of its dependencies. Returns `Health`
1660
+ * for both the healthy/degraded (200) and unhealthy (503) cases.
1661
+ *
1658
1662
  * @returns Promise that resolves with the API health status
1659
1663
  */
1660
1664
  async checkHealth() {
1661
- const { data, error } = await this.#api.GET("/health/", { params: { path: { version: "v1" } } });
1665
+ const { data, error } = await this.#api.GET("/health");
1666
+ return data ?? error;
1667
+ }
1668
+ /**
1669
+ * Liveness probe: resolves if the process is running. Probes no dependencies.
1670
+ *
1671
+ * Returns the raw `Response` (the endpoint has no body); a non-2xx status
1672
+ * throws via the error middleware.
1673
+ *
1674
+ * @returns Promise that resolves with the probe response
1675
+ * @throws {ApiError} if the process is not live
1676
+ */
1677
+ async checkLiveness() {
1678
+ const { response } = await this.#api.GET("/health/live");
1679
+ return response;
1680
+ }
1681
+ /**
1682
+ * Readiness probe: reports the server's health and that of its dependencies,
1683
+ * served from a short-lived cache. Returns `Health` for both the
1684
+ * healthy/degraded (200) and unhealthy (503) cases. Safe to poll frequently.
1685
+ *
1686
+ * @returns Promise that resolves with the API health status
1687
+ */
1688
+ async checkReadiness() {
1689
+ const { data, error } = await this.#api.GET("/health/ready");
1662
1690
  return data ?? error;
1663
1691
  }
1664
1692
  };
@@ -1681,7 +1709,7 @@ var Syncs = class {
1681
1709
  * @throws {ApiError} if the request fails
1682
1710
  */
1683
1711
  async listWorkspaceSyncs(workspaceId, query) {
1684
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/syncs/", { params: {
1712
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/syncs", { params: {
1685
1713
  path: { workspaceId },
1686
1714
  query
1687
1715
  } });
@@ -1701,7 +1729,7 @@ var Syncs = class {
1701
1729
  * @throws {ApiError} if the request fails
1702
1730
  */
1703
1731
  async startSync(workspaceId, connectionId) {
1704
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/sync/", { params: { path: {
1732
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/sync", { params: { path: {
1705
1733
  workspaceId,
1706
1734
  connectionId
1707
1735
  } } });
@@ -1716,7 +1744,7 @@ var Syncs = class {
1716
1744
  * @throws {ApiError} if the request fails
1717
1745
  */
1718
1746
  async listSyncs(workspaceId, connectionId, query) {
1719
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/{connectionId}/syncs/", { params: {
1747
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/{connectionId}/syncs", { params: {
1720
1748
  path: {
1721
1749
  workspaceId,
1722
1750
  connectionId
@@ -1734,7 +1762,7 @@ var Syncs = class {
1734
1762
  * @throws {ApiError} if the request fails
1735
1763
  */
1736
1764
  async getSync(workspaceId, connectionId, syncId) {
1737
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/{connectionId}/syncs/{syncId}/", { params: { path: {
1765
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/connections/{connectionId}/syncs/{syncId}", { params: { path: {
1738
1766
  workspaceId,
1739
1767
  connectionId,
1740
1768
  syncId
@@ -1750,7 +1778,7 @@ var Syncs = class {
1750
1778
  * @throws {ApiError} if the request fails
1751
1779
  */
1752
1780
  async cancelSync(workspaceId, connectionId, syncId) {
1753
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/syncs/{syncId}/cancel/", { params: { path: {
1781
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/connections/{connectionId}/syncs/{syncId}/cancel", { params: { path: {
1754
1782
  workspaceId,
1755
1783
  connectionId,
1756
1784
  syncId
@@ -1777,7 +1805,7 @@ var Threads = class {
1777
1805
  * @throws {ApiError} if the request fails
1778
1806
  */
1779
1807
  async listThreads(workspaceId, query) {
1780
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/threads/", { params: {
1808
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/threads", { params: {
1781
1809
  path: { workspaceId },
1782
1810
  query
1783
1811
  } });
@@ -1791,7 +1819,7 @@ var Threads = class {
1791
1819
  * @throws {ApiError} if the request fails
1792
1820
  */
1793
1821
  async openThread(workspaceId, thread) {
1794
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/threads/", {
1822
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/threads", {
1795
1823
  params: { path: { workspaceId } },
1796
1824
  body: thread
1797
1825
  });
@@ -1806,7 +1834,7 @@ var Threads = class {
1806
1834
  * @throws {ApiError} if the request fails
1807
1835
  */
1808
1836
  async renameThread(workspaceId, threadId, updates) {
1809
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/threads/{threadId}/", {
1837
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/threads/{threadId}", {
1810
1838
  params: { path: {
1811
1839
  workspaceId,
1812
1840
  threadId
@@ -1823,7 +1851,7 @@ var Threads = class {
1823
1851
  * @throws {ApiError} if the request fails
1824
1852
  */
1825
1853
  async deleteThread(workspaceId, threadId) {
1826
- await this.#api.DELETE("/workspaces/{workspaceId}/threads/{threadId}/", { params: { path: {
1854
+ await this.#api.DELETE("/workspaces/{workspaceId}/threads/{threadId}", { params: { path: {
1827
1855
  workspaceId,
1828
1856
  threadId
1829
1857
  } } });
@@ -1836,7 +1864,7 @@ var Threads = class {
1836
1864
  * @throws {ApiError} if the request fails
1837
1865
  */
1838
1866
  async closeThread(workspaceId, threadId) {
1839
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/threads/{threadId}/close/", { params: { path: {
1867
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/threads/{threadId}/close", { params: { path: {
1840
1868
  workspaceId,
1841
1869
  threadId
1842
1870
  } } });
@@ -1850,7 +1878,7 @@ var Threads = class {
1850
1878
  * @throws {ApiError} if the request fails
1851
1879
  */
1852
1880
  async reopenThread(workspaceId, threadId) {
1853
- const { data } = await this.#api.DELETE("/workspaces/{workspaceId}/threads/{threadId}/close/", { params: { path: {
1881
+ const { data } = await this.#api.DELETE("/workspaces/{workspaceId}/threads/{threadId}/close", { params: { path: {
1854
1882
  workspaceId,
1855
1883
  threadId
1856
1884
  } } });
@@ -1865,7 +1893,7 @@ var Threads = class {
1865
1893
  * @throws {ApiError} if the request fails
1866
1894
  */
1867
1895
  async listTimeline(workspaceId, threadId, query) {
1868
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/threads/{threadId}/timeline/", { params: {
1896
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/threads/{threadId}/timeline", { params: {
1869
1897
  path: {
1870
1898
  workspaceId,
1871
1899
  threadId
@@ -1883,7 +1911,7 @@ var Threads = class {
1883
1911
  * @throws {ApiError} if the request fails
1884
1912
  */
1885
1913
  async createComment(workspaceId, threadId, comment) {
1886
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/threads/{threadId}/comments/", {
1914
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/threads/{threadId}/comments", {
1887
1915
  params: { path: {
1888
1916
  workspaceId,
1889
1917
  threadId
@@ -1901,7 +1929,7 @@ var Threads = class {
1901
1929
  * @throws {ApiError} if the request fails
1902
1930
  */
1903
1931
  async updateComment(workspaceId, commentId, updates) {
1904
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/comments/{commentId}/", {
1932
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/comments/{commentId}", {
1905
1933
  params: { path: {
1906
1934
  workspaceId,
1907
1935
  commentId
@@ -1918,7 +1946,7 @@ var Threads = class {
1918
1946
  * @throws {ApiError} if the request fails
1919
1947
  */
1920
1948
  async deleteComment(workspaceId, commentId) {
1921
- await this.#api.DELETE("/workspaces/{workspaceId}/comments/{commentId}/", { params: { path: {
1949
+ await this.#api.DELETE("/workspaces/{workspaceId}/comments/{commentId}", { params: { path: {
1922
1950
  workspaceId,
1923
1951
  commentId
1924
1952
  } } });
@@ -1943,7 +1971,7 @@ var Webhooks = class {
1943
1971
  * @throws {ApiError} if the request fails
1944
1972
  */
1945
1973
  async listWebhooks(workspaceId, query) {
1946
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/webhooks/", { params: {
1974
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/webhooks", { params: {
1947
1975
  path: { workspaceId },
1948
1976
  query
1949
1977
  } });
@@ -1957,7 +1985,7 @@ var Webhooks = class {
1957
1985
  * @throws {ApiError} if the request fails
1958
1986
  */
1959
1987
  async createWebhook(workspaceId, webhook) {
1960
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/webhooks/", {
1988
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/webhooks", {
1961
1989
  params: { path: { workspaceId } },
1962
1990
  body: webhook
1963
1991
  });
@@ -1971,7 +1999,7 @@ var Webhooks = class {
1971
1999
  * @throws {ApiError} if the request fails
1972
2000
  */
1973
2001
  async getWebhook(workspaceId, webhookId) {
1974
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/webhooks/{webhookId}/", { params: { path: {
2002
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/webhooks/{webhookId}", { params: { path: {
1975
2003
  workspaceId,
1976
2004
  webhookId
1977
2005
  } } });
@@ -1986,7 +2014,7 @@ var Webhooks = class {
1986
2014
  * @throws {ApiError} if the request fails
1987
2015
  */
1988
2016
  async updateWebhook(workspaceId, webhookId, updates) {
1989
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/webhooks/{webhookId}/", {
2017
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/webhooks/{webhookId}", {
1990
2018
  params: { path: {
1991
2019
  workspaceId,
1992
2020
  webhookId
@@ -2003,7 +2031,7 @@ var Webhooks = class {
2003
2031
  * @throws {ApiError} if the request fails
2004
2032
  */
2005
2033
  async deleteWebhook(workspaceId, webhookId) {
2006
- await this.#api.DELETE("/workspaces/{workspaceId}/webhooks/{webhookId}/", { params: { path: {
2034
+ await this.#api.DELETE("/workspaces/{workspaceId}/webhooks/{webhookId}", { params: { path: {
2007
2035
  workspaceId,
2008
2036
  webhookId
2009
2037
  } } });
@@ -2017,7 +2045,7 @@ var Webhooks = class {
2017
2045
  * @throws {ApiError} if the request fails
2018
2046
  */
2019
2047
  async testWebhook(workspaceId, webhookId, options) {
2020
- const { data } = await this.#api.POST("/workspaces/{workspaceId}/webhooks/{webhookId}/test/", {
2048
+ const { data } = await this.#api.POST("/workspaces/{workspaceId}/webhooks/{webhookId}/test", {
2021
2049
  params: { path: {
2022
2050
  workspaceId,
2023
2051
  webhookId
@@ -2045,7 +2073,7 @@ var Workspaces = class {
2045
2073
  * @throws {ApiError} if the request fails
2046
2074
  */
2047
2075
  async listWorkspaces(query) {
2048
- const { data } = await this.#api.GET("/workspaces/", { params: { query } });
2076
+ const { data } = await this.#api.GET("/workspaces", { params: { query } });
2049
2077
  return data;
2050
2078
  }
2051
2079
  /**
@@ -2055,7 +2083,7 @@ var Workspaces = class {
2055
2083
  * @throws {ApiError} if the request fails
2056
2084
  */
2057
2085
  async getWorkspace(workspaceId) {
2058
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/", { params: { path: { workspaceId } } });
2086
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}", { params: { path: { workspaceId } } });
2059
2087
  return data;
2060
2088
  }
2061
2089
  /**
@@ -2065,7 +2093,7 @@ var Workspaces = class {
2065
2093
  * @throws {ApiError} if the request fails
2066
2094
  */
2067
2095
  async createWorkspace(workspace) {
2068
- const { data } = await this.#api.POST("/workspaces/", { body: workspace });
2096
+ const { data } = await this.#api.POST("/workspaces", { body: workspace });
2069
2097
  return data;
2070
2098
  }
2071
2099
  /**
@@ -2076,7 +2104,7 @@ var Workspaces = class {
2076
2104
  * @throws {ApiError} if the request fails
2077
2105
  */
2078
2106
  async updateWorkspace(workspaceId, updates) {
2079
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/", {
2107
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}", {
2080
2108
  params: { path: { workspaceId } },
2081
2109
  body: updates
2082
2110
  });
@@ -2089,7 +2117,7 @@ var Workspaces = class {
2089
2117
  * @throws {ApiError} if the request fails
2090
2118
  */
2091
2119
  async deleteWorkspace(workspaceId) {
2092
- await this.#api.DELETE("/workspaces/{workspaceId}/", { params: { path: { workspaceId } } });
2120
+ await this.#api.DELETE("/workspaces/{workspaceId}", { params: { path: { workspaceId } } });
2093
2121
  }
2094
2122
  /**
2095
2123
  * Get notification settings for the authenticated user in a workspace
@@ -2098,7 +2126,7 @@ var Workspaces = class {
2098
2126
  * @throws {ApiError} if the request fails
2099
2127
  */
2100
2128
  async getNotificationSettings(workspaceId) {
2101
- const { data } = await this.#api.GET("/workspaces/{workspaceId}/notifications/", { params: { path: { workspaceId } } });
2129
+ const { data } = await this.#api.GET("/workspaces/{workspaceId}/notifications", { params: { path: { workspaceId } } });
2102
2130
  return data;
2103
2131
  }
2104
2132
  /**
@@ -2109,7 +2137,7 @@ var Workspaces = class {
2109
2137
  * @throws {ApiError} if the request fails
2110
2138
  */
2111
2139
  async updateNotificationSettings(workspaceId, settings) {
2112
- const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/notifications/", {
2140
+ const { data } = await this.#api.PATCH("/workspaces/{workspaceId}/notifications", {
2113
2141
  params: { path: { workspaceId } },
2114
2142
  body: settings
2115
2143
  });
@@ -2126,7 +2154,7 @@ var Workspaces = class {
2126
2154
  const formData = new FormData();
2127
2155
  const name = avatar instanceof File ? avatar.name : "avatar";
2128
2156
  formData.append("avatar", avatar, name);
2129
- await this.#api.PUT("/workspaces/{workspaceId}/avatar/", {
2157
+ await this.#api.PUT("/workspaces/{workspaceId}/avatar", {
2130
2158
  params: { path: { workspaceId } },
2131
2159
  body: formData,
2132
2160
  bodySerializer: (formData) => formData,
@@ -2140,10 +2168,10 @@ var Workspaces = class {
2140
2168
  * @throws {ApiError} if the request fails
2141
2169
  */
2142
2170
  async deleteAvatar(workspaceId) {
2143
- await this.#api.DELETE("/workspaces/{workspaceId}/avatar/", { params: { path: { workspaceId } } });
2171
+ await this.#api.DELETE("/workspaces/{workspaceId}/avatar", { params: { path: { workspaceId } } });
2144
2172
  }
2145
2173
  };
2146
2174
 
2147
2175
  //#endregion
2148
2176
  export { Auth as _, Status as a, Activities as b, Policies as c, Members as d, Invites as f, Capabilities as g, Connections as h, Syncs as i, Pipelines as l, Detections as m, Webhooks as n, Redactions as o, Documents as p, Threads as r, Providers as s, Workspaces as t, Notifications as u, ApiTokens as v, Account as x, Analytics as y };
2149
- //# sourceMappingURL=services-CFFmQDgA.js.map
2177
+ //# sourceMappingURL=services-Bt15MerP.js.map