@ideascol/agents-generator-sdk 0.7.2 → 0.7.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin/cli.js CHANGED
@@ -619,7 +619,7 @@ var OpenAPI;
619
619
  var init_OpenAPI = __esm(() => {
620
620
  OpenAPI = {
621
621
  BASE: "",
622
- VERSION: "main-8acda2a920b73ea6f20e54f68ace024752e2d8ff",
622
+ VERSION: "main-4e98343b9970cdc29452c95593033dcfc9074e11",
623
623
  WITH_CREDENTIALS: false,
624
624
  CREDENTIALS: "include",
625
625
  TOKEN: undefined,
@@ -1414,6 +1414,21 @@ class AdminCredentialsService {
1414
1414
  }
1415
1415
  });
1416
1416
  }
1417
+ static testCredential(credentialId, workspaceId) {
1418
+ return request(OpenAPI, {
1419
+ method: "POST",
1420
+ url: "/credentials/{credential_id}/test",
1421
+ path: {
1422
+ credential_id: credentialId
1423
+ },
1424
+ query: {
1425
+ workspace_id: workspaceId
1426
+ },
1427
+ errors: {
1428
+ 422: `Validation Error`
1429
+ }
1430
+ });
1431
+ }
1417
1432
  static getCredentialDecrypted(credentialId, workspaceId) {
1418
1433
  return request(OpenAPI, {
1419
1434
  method: "GET",
@@ -2558,6 +2573,21 @@ class CredentialsService {
2558
2573
  }
2559
2574
  });
2560
2575
  }
2576
+ static testCredential(credentialId, workspaceId) {
2577
+ return request(OpenAPI, {
2578
+ method: "POST",
2579
+ url: "/credentials/{credential_id}/test",
2580
+ path: {
2581
+ credential_id: credentialId
2582
+ },
2583
+ query: {
2584
+ workspace_id: workspaceId
2585
+ },
2586
+ errors: {
2587
+ 422: `Validation Error`
2588
+ }
2589
+ });
2590
+ }
2561
2591
  static getCredentialDecrypted(credentialId, workspaceId) {
2562
2592
  return request(OpenAPI, {
2563
2593
  method: "GET",
package/dist/index.js CHANGED
@@ -187,7 +187,7 @@ var OpenAPI;
187
187
  var init_OpenAPI = __esm(() => {
188
188
  OpenAPI = {
189
189
  BASE: "",
190
- VERSION: "main-8acda2a920b73ea6f20e54f68ace024752e2d8ff",
190
+ VERSION: "main-4e98343b9970cdc29452c95593033dcfc9074e11",
191
191
  WITH_CREDENTIALS: false,
192
192
  CREDENTIALS: "include",
193
193
  TOKEN: undefined,
@@ -982,6 +982,21 @@ class AdminCredentialsService {
982
982
  }
983
983
  });
984
984
  }
985
+ static testCredential(credentialId, workspaceId) {
986
+ return request(OpenAPI, {
987
+ method: "POST",
988
+ url: "/credentials/{credential_id}/test",
989
+ path: {
990
+ credential_id: credentialId
991
+ },
992
+ query: {
993
+ workspace_id: workspaceId
994
+ },
995
+ errors: {
996
+ 422: `Validation Error`
997
+ }
998
+ });
999
+ }
985
1000
  static getCredentialDecrypted(credentialId, workspaceId) {
986
1001
  return request(OpenAPI, {
987
1002
  method: "GET",
@@ -2126,6 +2141,21 @@ class CredentialsService {
2126
2141
  }
2127
2142
  });
2128
2143
  }
2144
+ static testCredential(credentialId, workspaceId) {
2145
+ return request(OpenAPI, {
2146
+ method: "POST",
2147
+ url: "/credentials/{credential_id}/test",
2148
+ path: {
2149
+ credential_id: credentialId
2150
+ },
2151
+ query: {
2152
+ workspace_id: workspaceId
2153
+ },
2154
+ errors: {
2155
+ 422: `Validation Error`
2156
+ }
2157
+ });
2158
+ }
2129
2159
  static getCredentialDecrypted(credentialId, workspaceId) {
2130
2160
  return request(OpenAPI, {
2131
2161
  method: "GET",
@@ -47,6 +47,15 @@ export declare class AdminCredentialsService {
47
47
  * @throws ApiError
48
48
  */
49
49
  static deleteCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
50
+ /**
51
+ * Test Credential
52
+ * Test a credential by validating it against the provider API - only admin and owner roles
53
+ * @param credentialId
54
+ * @param workspaceId
55
+ * @returns any Successful Response
56
+ * @throws ApiError
57
+ */
58
+ static testCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
50
59
  /**
51
60
  * Get Credential Decrypted
52
61
  * Get a credential with decrypted value
@@ -47,6 +47,15 @@ export declare class CredentialsService {
47
47
  * @throws ApiError
48
48
  */
49
49
  static deleteCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
50
+ /**
51
+ * Test Credential
52
+ * Test a credential by validating it against the provider API - only admin and owner roles
53
+ * @param credentialId
54
+ * @param workspaceId
55
+ * @returns any Successful Response
56
+ * @throws ApiError
57
+ */
58
+ static testCredential(credentialId: string, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
50
59
  /**
51
60
  * Get Credential Decrypted
52
61
  * Get a credential with decrypted value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",