@ideascol/agents-generator-sdk 0.7.1 → 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-56e3189e58c7aa5fdc70bd2e240a2c8b918b8142",
622
+ VERSION: "main-4e98343b9970cdc29452c95593033dcfc9074e11",
623
623
  WITH_CREDENTIALS: false,
624
624
  CREDENTIALS: "include",
625
625
  TOKEN: undefined,
@@ -1321,6 +1321,18 @@ class AdminConversationsService {
1321
1321
  }
1322
1322
  });
1323
1323
  }
1324
+ static getResearchStatus(conversationId) {
1325
+ return request(OpenAPI, {
1326
+ method: "GET",
1327
+ url: "/conversations/{conversation_id}/research-status",
1328
+ path: {
1329
+ conversation_id: conversationId
1330
+ },
1331
+ errors: {
1332
+ 422: `Validation Error`
1333
+ }
1334
+ });
1335
+ }
1324
1336
  }
1325
1337
  var init_AdminConversationsService = __esm(() => {
1326
1338
  init_OpenAPI();
@@ -1402,6 +1414,21 @@ class AdminCredentialsService {
1402
1414
  }
1403
1415
  });
1404
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
+ }
1405
1432
  static getCredentialDecrypted(credentialId, workspaceId) {
1406
1433
  return request(OpenAPI, {
1407
1434
  method: "GET",
@@ -1851,6 +1878,54 @@ var init_AdminTokenUsageService = __esm(() => {
1851
1878
  init_request();
1852
1879
  });
1853
1880
 
1881
+ // src/lib/clients/agents-generator/services/AdminWebhookConfigsService.ts
1882
+ class AdminWebhookConfigsService {
1883
+ static createWebhookConfig(requestBody, workspaceId) {
1884
+ return request(OpenAPI, {
1885
+ method: "POST",
1886
+ url: "/webhook-configs",
1887
+ query: {
1888
+ workspace_id: workspaceId
1889
+ },
1890
+ body: requestBody,
1891
+ mediaType: "application/json",
1892
+ errors: {
1893
+ 422: `Validation Error`
1894
+ }
1895
+ });
1896
+ }
1897
+ static updateWebhookConfig(configId, requestBody) {
1898
+ return request(OpenAPI, {
1899
+ method: "PUT",
1900
+ url: "/webhook-configs/{config_id}",
1901
+ path: {
1902
+ config_id: configId
1903
+ },
1904
+ body: requestBody,
1905
+ mediaType: "application/json",
1906
+ errors: {
1907
+ 422: `Validation Error`
1908
+ }
1909
+ });
1910
+ }
1911
+ static deleteWebhookConfig(configId) {
1912
+ return request(OpenAPI, {
1913
+ method: "DELETE",
1914
+ url: "/webhook-configs/{config_id}",
1915
+ path: {
1916
+ config_id: configId
1917
+ },
1918
+ errors: {
1919
+ 422: `Validation Error`
1920
+ }
1921
+ });
1922
+ }
1923
+ }
1924
+ var init_AdminWebhookConfigsService = __esm(() => {
1925
+ init_OpenAPI();
1926
+ init_request();
1927
+ });
1928
+
1854
1929
  // src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
1855
1930
  class AdminWorkspacesService {
1856
1931
  static createWorkspace(requestBody) {
@@ -2405,6 +2480,18 @@ class ConversationsService {
2405
2480
  }
2406
2481
  });
2407
2482
  }
2483
+ static getResearchStatus(conversationId) {
2484
+ return request(OpenAPI, {
2485
+ method: "GET",
2486
+ url: "/conversations/{conversation_id}/research-status",
2487
+ path: {
2488
+ conversation_id: conversationId
2489
+ },
2490
+ errors: {
2491
+ 422: `Validation Error`
2492
+ }
2493
+ });
2494
+ }
2408
2495
  }
2409
2496
  var init_ConversationsService = __esm(() => {
2410
2497
  init_OpenAPI();
@@ -2486,6 +2573,21 @@ class CredentialsService {
2486
2573
  }
2487
2574
  });
2488
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
+ }
2489
2591
  static getCredentialDecrypted(credentialId, workspaceId) {
2490
2592
  return request(OpenAPI, {
2491
2593
  method: "GET",
@@ -2965,6 +3067,18 @@ class PublicConversationsService {
2965
3067
  }
2966
3068
  });
2967
3069
  }
3070
+ static getResearchStatus(conversationId) {
3071
+ return request(OpenAPI, {
3072
+ method: "GET",
3073
+ url: "/conversations/{conversation_id}/research-status",
3074
+ path: {
3075
+ conversation_id: conversationId
3076
+ },
3077
+ errors: {
3078
+ 422: `Validation Error`
3079
+ }
3080
+ });
3081
+ }
2968
3082
  }
2969
3083
  var init_PublicConversationsService = __esm(() => {
2970
3084
  init_OpenAPI();
@@ -3144,6 +3258,112 @@ var init_TokenUsageService = __esm(() => {
3144
3258
  init_request();
3145
3259
  });
3146
3260
 
3261
+ // src/lib/clients/agents-generator/services/WebhookConfigsService.ts
3262
+ class WebhookConfigsService {
3263
+ static createWebhookConfig(requestBody, workspaceId) {
3264
+ return request(OpenAPI, {
3265
+ method: "POST",
3266
+ url: "/webhook-configs",
3267
+ query: {
3268
+ workspace_id: workspaceId
3269
+ },
3270
+ body: requestBody,
3271
+ mediaType: "application/json",
3272
+ errors: {
3273
+ 422: `Validation Error`
3274
+ }
3275
+ });
3276
+ }
3277
+ static listWebhookConfigs(workspaceId) {
3278
+ return request(OpenAPI, {
3279
+ method: "GET",
3280
+ url: "/webhook-configs",
3281
+ query: {
3282
+ workspace_id: workspaceId
3283
+ },
3284
+ errors: {
3285
+ 422: `Validation Error`
3286
+ }
3287
+ });
3288
+ }
3289
+ static listWebhookEvents(workspaceId, limit = 50, offset) {
3290
+ return request(OpenAPI, {
3291
+ method: "GET",
3292
+ url: "/webhook-configs/events",
3293
+ query: {
3294
+ workspace_id: workspaceId,
3295
+ limit,
3296
+ offset
3297
+ },
3298
+ errors: {
3299
+ 422: `Validation Error`
3300
+ }
3301
+ });
3302
+ }
3303
+ static getWebhookConfig(configId) {
3304
+ return request(OpenAPI, {
3305
+ method: "GET",
3306
+ url: "/webhook-configs/{config_id}",
3307
+ path: {
3308
+ config_id: configId
3309
+ },
3310
+ errors: {
3311
+ 422: `Validation Error`
3312
+ }
3313
+ });
3314
+ }
3315
+ static updateWebhookConfig(configId, requestBody) {
3316
+ return request(OpenAPI, {
3317
+ method: "PUT",
3318
+ url: "/webhook-configs/{config_id}",
3319
+ path: {
3320
+ config_id: configId
3321
+ },
3322
+ body: requestBody,
3323
+ mediaType: "application/json",
3324
+ errors: {
3325
+ 422: `Validation Error`
3326
+ }
3327
+ });
3328
+ }
3329
+ static deleteWebhookConfig(configId) {
3330
+ return request(OpenAPI, {
3331
+ method: "DELETE",
3332
+ url: "/webhook-configs/{config_id}",
3333
+ path: {
3334
+ config_id: configId
3335
+ },
3336
+ errors: {
3337
+ 422: `Validation Error`
3338
+ }
3339
+ });
3340
+ }
3341
+ }
3342
+ var init_WebhookConfigsService = __esm(() => {
3343
+ init_OpenAPI();
3344
+ init_request();
3345
+ });
3346
+
3347
+ // src/lib/clients/agents-generator/services/WebhooksService.ts
3348
+ class WebhooksService {
3349
+ static receiveOpenaiWebhookWebhooksOpenaiWorkspaceIdPost(workspaceId) {
3350
+ return request(OpenAPI, {
3351
+ method: "POST",
3352
+ url: "/webhooks/openai/{workspace_id}",
3353
+ path: {
3354
+ workspace_id: workspaceId
3355
+ },
3356
+ errors: {
3357
+ 422: `Validation Error`
3358
+ }
3359
+ });
3360
+ }
3361
+ }
3362
+ var init_WebhooksService = __esm(() => {
3363
+ init_OpenAPI();
3364
+ init_request();
3365
+ });
3366
+
3147
3367
  // src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
3148
3368
  class WorkspaceCollaboratorsService {
3149
3369
  static addWorkspaceCollaborator(workspaceId, requestBody) {
@@ -3315,6 +3535,7 @@ var init_agents_generator = __esm(() => {
3315
3535
  init_AdminFileLibraryService();
3316
3536
  init_AdminMcpServersService();
3317
3537
  init_AdminTokenUsageService();
3538
+ init_AdminWebhookConfigsService();
3318
3539
  init_AdminWorkspacesService();
3319
3540
  init_AgentService();
3320
3541
  init_AgentFoldersService();
@@ -3329,6 +3550,8 @@ var init_agents_generator = __esm(() => {
3329
3550
  init_RootService();
3330
3551
  init_SchemaGeneratorService();
3331
3552
  init_TokenUsageService();
3553
+ init_WebhookConfigsService();
3554
+ init_WebhooksService();
3332
3555
  init_WorkspaceCollaboratorsService();
3333
3556
  init_WorkspacesService();
3334
3557
  });
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-56e3189e58c7aa5fdc70bd2e240a2c8b918b8142",
190
+ VERSION: "main-4e98343b9970cdc29452c95593033dcfc9074e11",
191
191
  WITH_CREDENTIALS: false,
192
192
  CREDENTIALS: "include",
193
193
  TOKEN: undefined,
@@ -889,6 +889,18 @@ class AdminConversationsService {
889
889
  }
890
890
  });
891
891
  }
892
+ static getResearchStatus(conversationId) {
893
+ return request(OpenAPI, {
894
+ method: "GET",
895
+ url: "/conversations/{conversation_id}/research-status",
896
+ path: {
897
+ conversation_id: conversationId
898
+ },
899
+ errors: {
900
+ 422: `Validation Error`
901
+ }
902
+ });
903
+ }
892
904
  }
893
905
  var init_AdminConversationsService = __esm(() => {
894
906
  init_OpenAPI();
@@ -970,6 +982,21 @@ class AdminCredentialsService {
970
982
  }
971
983
  });
972
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
+ }
973
1000
  static getCredentialDecrypted(credentialId, workspaceId) {
974
1001
  return request(OpenAPI, {
975
1002
  method: "GET",
@@ -1419,6 +1446,54 @@ var init_AdminTokenUsageService = __esm(() => {
1419
1446
  init_request();
1420
1447
  });
1421
1448
 
1449
+ // src/lib/clients/agents-generator/services/AdminWebhookConfigsService.ts
1450
+ class AdminWebhookConfigsService {
1451
+ static createWebhookConfig(requestBody, workspaceId) {
1452
+ return request(OpenAPI, {
1453
+ method: "POST",
1454
+ url: "/webhook-configs",
1455
+ query: {
1456
+ workspace_id: workspaceId
1457
+ },
1458
+ body: requestBody,
1459
+ mediaType: "application/json",
1460
+ errors: {
1461
+ 422: `Validation Error`
1462
+ }
1463
+ });
1464
+ }
1465
+ static updateWebhookConfig(configId, requestBody) {
1466
+ return request(OpenAPI, {
1467
+ method: "PUT",
1468
+ url: "/webhook-configs/{config_id}",
1469
+ path: {
1470
+ config_id: configId
1471
+ },
1472
+ body: requestBody,
1473
+ mediaType: "application/json",
1474
+ errors: {
1475
+ 422: `Validation Error`
1476
+ }
1477
+ });
1478
+ }
1479
+ static deleteWebhookConfig(configId) {
1480
+ return request(OpenAPI, {
1481
+ method: "DELETE",
1482
+ url: "/webhook-configs/{config_id}",
1483
+ path: {
1484
+ config_id: configId
1485
+ },
1486
+ errors: {
1487
+ 422: `Validation Error`
1488
+ }
1489
+ });
1490
+ }
1491
+ }
1492
+ var init_AdminWebhookConfigsService = __esm(() => {
1493
+ init_OpenAPI();
1494
+ init_request();
1495
+ });
1496
+
1422
1497
  // src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
1423
1498
  class AdminWorkspacesService {
1424
1499
  static createWorkspace(requestBody) {
@@ -1973,6 +2048,18 @@ class ConversationsService {
1973
2048
  }
1974
2049
  });
1975
2050
  }
2051
+ static getResearchStatus(conversationId) {
2052
+ return request(OpenAPI, {
2053
+ method: "GET",
2054
+ url: "/conversations/{conversation_id}/research-status",
2055
+ path: {
2056
+ conversation_id: conversationId
2057
+ },
2058
+ errors: {
2059
+ 422: `Validation Error`
2060
+ }
2061
+ });
2062
+ }
1976
2063
  }
1977
2064
  var init_ConversationsService = __esm(() => {
1978
2065
  init_OpenAPI();
@@ -2054,6 +2141,21 @@ class CredentialsService {
2054
2141
  }
2055
2142
  });
2056
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
+ }
2057
2159
  static getCredentialDecrypted(credentialId, workspaceId) {
2058
2160
  return request(OpenAPI, {
2059
2161
  method: "GET",
@@ -2533,6 +2635,18 @@ class PublicConversationsService {
2533
2635
  }
2534
2636
  });
2535
2637
  }
2638
+ static getResearchStatus(conversationId) {
2639
+ return request(OpenAPI, {
2640
+ method: "GET",
2641
+ url: "/conversations/{conversation_id}/research-status",
2642
+ path: {
2643
+ conversation_id: conversationId
2644
+ },
2645
+ errors: {
2646
+ 422: `Validation Error`
2647
+ }
2648
+ });
2649
+ }
2536
2650
  }
2537
2651
  var init_PublicConversationsService = __esm(() => {
2538
2652
  init_OpenAPI();
@@ -2712,6 +2826,112 @@ var init_TokenUsageService = __esm(() => {
2712
2826
  init_request();
2713
2827
  });
2714
2828
 
2829
+ // src/lib/clients/agents-generator/services/WebhookConfigsService.ts
2830
+ class WebhookConfigsService {
2831
+ static createWebhookConfig(requestBody, workspaceId) {
2832
+ return request(OpenAPI, {
2833
+ method: "POST",
2834
+ url: "/webhook-configs",
2835
+ query: {
2836
+ workspace_id: workspaceId
2837
+ },
2838
+ body: requestBody,
2839
+ mediaType: "application/json",
2840
+ errors: {
2841
+ 422: `Validation Error`
2842
+ }
2843
+ });
2844
+ }
2845
+ static listWebhookConfigs(workspaceId) {
2846
+ return request(OpenAPI, {
2847
+ method: "GET",
2848
+ url: "/webhook-configs",
2849
+ query: {
2850
+ workspace_id: workspaceId
2851
+ },
2852
+ errors: {
2853
+ 422: `Validation Error`
2854
+ }
2855
+ });
2856
+ }
2857
+ static listWebhookEvents(workspaceId, limit = 50, offset) {
2858
+ return request(OpenAPI, {
2859
+ method: "GET",
2860
+ url: "/webhook-configs/events",
2861
+ query: {
2862
+ workspace_id: workspaceId,
2863
+ limit,
2864
+ offset
2865
+ },
2866
+ errors: {
2867
+ 422: `Validation Error`
2868
+ }
2869
+ });
2870
+ }
2871
+ static getWebhookConfig(configId) {
2872
+ return request(OpenAPI, {
2873
+ method: "GET",
2874
+ url: "/webhook-configs/{config_id}",
2875
+ path: {
2876
+ config_id: configId
2877
+ },
2878
+ errors: {
2879
+ 422: `Validation Error`
2880
+ }
2881
+ });
2882
+ }
2883
+ static updateWebhookConfig(configId, requestBody) {
2884
+ return request(OpenAPI, {
2885
+ method: "PUT",
2886
+ url: "/webhook-configs/{config_id}",
2887
+ path: {
2888
+ config_id: configId
2889
+ },
2890
+ body: requestBody,
2891
+ mediaType: "application/json",
2892
+ errors: {
2893
+ 422: `Validation Error`
2894
+ }
2895
+ });
2896
+ }
2897
+ static deleteWebhookConfig(configId) {
2898
+ return request(OpenAPI, {
2899
+ method: "DELETE",
2900
+ url: "/webhook-configs/{config_id}",
2901
+ path: {
2902
+ config_id: configId
2903
+ },
2904
+ errors: {
2905
+ 422: `Validation Error`
2906
+ }
2907
+ });
2908
+ }
2909
+ }
2910
+ var init_WebhookConfigsService = __esm(() => {
2911
+ init_OpenAPI();
2912
+ init_request();
2913
+ });
2914
+
2915
+ // src/lib/clients/agents-generator/services/WebhooksService.ts
2916
+ class WebhooksService {
2917
+ static receiveOpenaiWebhookWebhooksOpenaiWorkspaceIdPost(workspaceId) {
2918
+ return request(OpenAPI, {
2919
+ method: "POST",
2920
+ url: "/webhooks/openai/{workspace_id}",
2921
+ path: {
2922
+ workspace_id: workspaceId
2923
+ },
2924
+ errors: {
2925
+ 422: `Validation Error`
2926
+ }
2927
+ });
2928
+ }
2929
+ }
2930
+ var init_WebhooksService = __esm(() => {
2931
+ init_OpenAPI();
2932
+ init_request();
2933
+ });
2934
+
2715
2935
  // src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
2716
2936
  class WorkspaceCollaboratorsService {
2717
2937
  static addWorkspaceCollaborator(workspaceId, requestBody) {
@@ -2883,6 +3103,7 @@ var init_agents_generator = __esm(() => {
2883
3103
  init_AdminFileLibraryService();
2884
3104
  init_AdminMcpServersService();
2885
3105
  init_AdminTokenUsageService();
3106
+ init_AdminWebhookConfigsService();
2886
3107
  init_AdminWorkspacesService();
2887
3108
  init_AgentService();
2888
3109
  init_AgentFoldersService();
@@ -2897,6 +3118,8 @@ var init_agents_generator = __esm(() => {
2897
3118
  init_RootService();
2898
3119
  init_SchemaGeneratorService();
2899
3120
  init_TokenUsageService();
3121
+ init_WebhookConfigsService();
3122
+ init_WebhooksService();
2900
3123
  init_WorkspaceCollaboratorsService();
2901
3124
  init_WorkspacesService();
2902
3125
  });
@@ -3199,6 +3422,8 @@ var exports_src = {};
3199
3422
  __export(exports_src, {
3200
3423
  WorkspacesService: () => WorkspacesService,
3201
3424
  WorkspaceCollaboratorsService: () => WorkspaceCollaboratorsService,
3425
+ WebhooksService: () => WebhooksService,
3426
+ WebhookConfigsService: () => WebhookConfigsService,
3202
3427
  TokenUsageService: () => TokenUsageService,
3203
3428
  SchemaGeneratorService: () => SchemaGeneratorService,
3204
3429
  RootService: () => RootService,
@@ -3219,6 +3444,7 @@ __export(exports_src, {
3219
3444
  AgentFoldersService: () => AgentFoldersService,
3220
3445
  AgentClient: () => AgentClient,
3221
3446
  AdminWorkspacesService: () => AdminWorkspacesService,
3447
+ AdminWebhookConfigsService: () => AdminWebhookConfigsService,
3222
3448
  AdminTokenUsageService: () => AdminTokenUsageService,
3223
3449
  AdminMcpServersService: () => AdminMcpServersService,
3224
3450
  AdminFileLibraryService: () => AdminFileLibraryService,
@@ -68,6 +68,8 @@ export type { VectorStoreInfoResponse } from './models/VectorStoreInfoResponse';
68
68
  export type { VectorStoreSearchRequest } from './models/VectorStoreSearchRequest';
69
69
  export type { VectorStoreSearchResponse } from './models/VectorStoreSearchResponse';
70
70
  export type { VectorStoreSearchResult } from './models/VectorStoreSearchResult';
71
+ export type { WebhookConfigCreate } from './models/WebhookConfigCreate';
72
+ export type { WebhookConfigUpdate } from './models/WebhookConfigUpdate';
71
73
  export type { WorkspaceCollaboratorCreate } from './models/WorkspaceCollaboratorCreate';
72
74
  export type { WorkspaceCollaboratorResponse } from './models/WorkspaceCollaboratorResponse';
73
75
  export type { WorkspaceCollaboratorUpdate } from './models/WorkspaceCollaboratorUpdate';
@@ -84,6 +86,7 @@ export { AdminCredentialsService } from './services/AdminCredentialsService';
84
86
  export { AdminFileLibraryService } from './services/AdminFileLibraryService';
85
87
  export { AdminMcpServersService } from './services/AdminMcpServersService';
86
88
  export { AdminTokenUsageService } from './services/AdminTokenUsageService';
89
+ export { AdminWebhookConfigsService } from './services/AdminWebhookConfigsService';
87
90
  export { AdminWorkspacesService } from './services/AdminWorkspacesService';
88
91
  export { AgentService } from './services/AgentService';
89
92
  export { AgentFoldersService } from './services/AgentFoldersService';
@@ -98,5 +101,7 @@ export { PublicConversationsService } from './services/PublicConversationsServic
98
101
  export { RootService } from './services/RootService';
99
102
  export { SchemaGeneratorService } from './services/SchemaGeneratorService';
100
103
  export { TokenUsageService } from './services/TokenUsageService';
104
+ export { WebhookConfigsService } from './services/WebhookConfigsService';
105
+ export { WebhooksService } from './services/WebhooksService';
101
106
  export { WorkspaceCollaboratorsService } from './services/WorkspaceCollaboratorsService';
102
107
  export { WorkspacesService } from './services/WorkspacesService';
@@ -49,4 +49,8 @@ export type NodeData = {
49
49
  * Maximum number of tokens to generate in the response
50
50
  */
51
51
  max_tokens?: (number | null);
52
+ /**
53
+ * Reasoning effort level for reasoning models (low, medium, high, xhigh)
54
+ */
55
+ reasoning_effort?: (string | null);
52
56
  };
@@ -0,0 +1,5 @@
1
+ export type WebhookConfigCreate = {
2
+ provider: string;
3
+ name: string;
4
+ webhook_secret: string;
5
+ };
@@ -0,0 +1,5 @@
1
+ export type WebhookConfigUpdate = {
2
+ name?: (string | null);
3
+ webhook_secret?: (string | null);
4
+ is_active?: (boolean | null);
5
+ };
@@ -41,4 +41,13 @@ export declare class AdminConversationsService {
41
41
  * @throws ApiError
42
42
  */
43
43
  static getAgentConversations(agentId: string, skip?: number, limit?: number): CancelablePromise<Array<ConversationResponse>>;
44
+ /**
45
+ * Get Research Status
46
+ * Get the status of any pending deep research request for a conversation.
47
+ * Used by the frontend to poll for completion while waiting for webhook delivery.
48
+ * @param conversationId
49
+ * @returns any Successful Response
50
+ * @throws ApiError
51
+ */
52
+ static getResearchStatus(conversationId: string): CancelablePromise<Record<string, any>>;
44
53
  }
@@ -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
@@ -0,0 +1,31 @@
1
+ import type { WebhookConfigCreate } from '../models/WebhookConfigCreate';
2
+ import type { WebhookConfigUpdate } from '../models/WebhookConfigUpdate';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class AdminWebhookConfigsService {
5
+ /**
6
+ * Create Webhook Config
7
+ * Create a new webhook configuration - only admin and owner roles can create
8
+ * @param requestBody
9
+ * @param workspaceId
10
+ * @returns any Successful Response
11
+ * @throws ApiError
12
+ */
13
+ static createWebhookConfig(requestBody: WebhookConfigCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
14
+ /**
15
+ * Update Webhook Config
16
+ * Update a webhook configuration - only admin and owner roles can update
17
+ * @param configId
18
+ * @param requestBody
19
+ * @returns any Successful Response
20
+ * @throws ApiError
21
+ */
22
+ static updateWebhookConfig(configId: string, requestBody: WebhookConfigUpdate): CancelablePromise<Record<string, any>>;
23
+ /**
24
+ * Delete Webhook Config
25
+ * Delete a webhook configuration - only admin and owner roles can delete
26
+ * @param configId
27
+ * @returns any Successful Response
28
+ * @throws ApiError
29
+ */
30
+ static deleteWebhookConfig(configId: string): CancelablePromise<Record<string, any>>;
31
+ }
@@ -52,4 +52,13 @@ export declare class ConversationsService {
52
52
  * @throws ApiError
53
53
  */
54
54
  static addMessage(conversationId: string, requestBody: MessageCreate, useDraft?: boolean, accept?: (string | null)): CancelablePromise<any>;
55
+ /**
56
+ * Get Research Status
57
+ * Get the status of any pending deep research request for a conversation.
58
+ * Used by the frontend to poll for completion while waiting for webhook delivery.
59
+ * @param conversationId
60
+ * @returns any Successful Response
61
+ * @throws ApiError
62
+ */
63
+ static getResearchStatus(conversationId: string): CancelablePromise<Record<string, any>>;
55
64
  }
@@ -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
@@ -27,4 +27,13 @@ export declare class PublicConversationsService {
27
27
  * @throws ApiError
28
28
  */
29
29
  static addMessage(conversationId: string, requestBody: MessageCreate, useDraft?: boolean, accept?: (string | null)): CancelablePromise<any>;
30
+ /**
31
+ * Get Research Status
32
+ * Get the status of any pending deep research request for a conversation.
33
+ * Used by the frontend to poll for completion while waiting for webhook delivery.
34
+ * @param conversationId
35
+ * @returns any Successful Response
36
+ * @throws ApiError
37
+ */
38
+ static getResearchStatus(conversationId: string): CancelablePromise<Record<string, any>>;
30
39
  }
@@ -0,0 +1,57 @@
1
+ import type { WebhookConfigCreate } from '../models/WebhookConfigCreate';
2
+ import type { WebhookConfigUpdate } from '../models/WebhookConfigUpdate';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class WebhookConfigsService {
5
+ /**
6
+ * Create Webhook Config
7
+ * Create a new webhook configuration - only admin and owner roles can create
8
+ * @param requestBody
9
+ * @param workspaceId
10
+ * @returns any Successful Response
11
+ * @throws ApiError
12
+ */
13
+ static createWebhookConfig(requestBody: WebhookConfigCreate, workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
14
+ /**
15
+ * List Webhook Configs
16
+ * List all webhook configurations for a workspace
17
+ * @param workspaceId
18
+ * @returns any Successful Response
19
+ * @throws ApiError
20
+ */
21
+ static listWebhookConfigs(workspaceId?: (string | null)): CancelablePromise<Record<string, any>>;
22
+ /**
23
+ * List Webhook Events
24
+ * List webhook event logs for a workspace
25
+ * @param workspaceId
26
+ * @param limit
27
+ * @param offset
28
+ * @returns any Successful Response
29
+ * @throws ApiError
30
+ */
31
+ static listWebhookEvents(workspaceId?: (string | null), limit?: number, offset?: number): CancelablePromise<Record<string, any>>;
32
+ /**
33
+ * Get Webhook Config
34
+ * Get a specific webhook configuration
35
+ * @param configId
36
+ * @returns any Successful Response
37
+ * @throws ApiError
38
+ */
39
+ static getWebhookConfig(configId: string): CancelablePromise<Record<string, any>>;
40
+ /**
41
+ * Update Webhook Config
42
+ * Update a webhook configuration - only admin and owner roles can update
43
+ * @param configId
44
+ * @param requestBody
45
+ * @returns any Successful Response
46
+ * @throws ApiError
47
+ */
48
+ static updateWebhookConfig(configId: string, requestBody: WebhookConfigUpdate): CancelablePromise<Record<string, any>>;
49
+ /**
50
+ * Delete Webhook Config
51
+ * Delete a webhook configuration - only admin and owner roles can delete
52
+ * @param configId
53
+ * @returns any Successful Response
54
+ * @throws ApiError
55
+ */
56
+ static deleteWebhookConfig(configId: string): CancelablePromise<Record<string, any>>;
57
+ }
@@ -0,0 +1,13 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class WebhooksService {
3
+ /**
4
+ * Receive Openai Webhook
5
+ * Receive webhook events from OpenAI.
6
+ * This endpoint is called by OpenAI when events like response.completed occur.
7
+ * It verifies the webhook signature and processes the event.
8
+ * @param workspaceId
9
+ * @returns any Successful Response
10
+ * @throws ApiError
11
+ */
12
+ static receiveOpenaiWebhookWebhooksOpenaiWorkspaceIdPost(workspaceId: string): CancelablePromise<any>;
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ideascol/agents-generator-sdk",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",