@ideascol/agents-generator-sdk 0.7.1 → 0.7.2

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-8acda2a920b73ea6f20e54f68ace024752e2d8ff",
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();
@@ -1851,6 +1863,54 @@ var init_AdminTokenUsageService = __esm(() => {
1851
1863
  init_request();
1852
1864
  });
1853
1865
 
1866
+ // src/lib/clients/agents-generator/services/AdminWebhookConfigsService.ts
1867
+ class AdminWebhookConfigsService {
1868
+ static createWebhookConfig(requestBody, workspaceId) {
1869
+ return request(OpenAPI, {
1870
+ method: "POST",
1871
+ url: "/webhook-configs",
1872
+ query: {
1873
+ workspace_id: workspaceId
1874
+ },
1875
+ body: requestBody,
1876
+ mediaType: "application/json",
1877
+ errors: {
1878
+ 422: `Validation Error`
1879
+ }
1880
+ });
1881
+ }
1882
+ static updateWebhookConfig(configId, requestBody) {
1883
+ return request(OpenAPI, {
1884
+ method: "PUT",
1885
+ url: "/webhook-configs/{config_id}",
1886
+ path: {
1887
+ config_id: configId
1888
+ },
1889
+ body: requestBody,
1890
+ mediaType: "application/json",
1891
+ errors: {
1892
+ 422: `Validation Error`
1893
+ }
1894
+ });
1895
+ }
1896
+ static deleteWebhookConfig(configId) {
1897
+ return request(OpenAPI, {
1898
+ method: "DELETE",
1899
+ url: "/webhook-configs/{config_id}",
1900
+ path: {
1901
+ config_id: configId
1902
+ },
1903
+ errors: {
1904
+ 422: `Validation Error`
1905
+ }
1906
+ });
1907
+ }
1908
+ }
1909
+ var init_AdminWebhookConfigsService = __esm(() => {
1910
+ init_OpenAPI();
1911
+ init_request();
1912
+ });
1913
+
1854
1914
  // src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
1855
1915
  class AdminWorkspacesService {
1856
1916
  static createWorkspace(requestBody) {
@@ -2405,6 +2465,18 @@ class ConversationsService {
2405
2465
  }
2406
2466
  });
2407
2467
  }
2468
+ static getResearchStatus(conversationId) {
2469
+ return request(OpenAPI, {
2470
+ method: "GET",
2471
+ url: "/conversations/{conversation_id}/research-status",
2472
+ path: {
2473
+ conversation_id: conversationId
2474
+ },
2475
+ errors: {
2476
+ 422: `Validation Error`
2477
+ }
2478
+ });
2479
+ }
2408
2480
  }
2409
2481
  var init_ConversationsService = __esm(() => {
2410
2482
  init_OpenAPI();
@@ -2965,6 +3037,18 @@ class PublicConversationsService {
2965
3037
  }
2966
3038
  });
2967
3039
  }
3040
+ static getResearchStatus(conversationId) {
3041
+ return request(OpenAPI, {
3042
+ method: "GET",
3043
+ url: "/conversations/{conversation_id}/research-status",
3044
+ path: {
3045
+ conversation_id: conversationId
3046
+ },
3047
+ errors: {
3048
+ 422: `Validation Error`
3049
+ }
3050
+ });
3051
+ }
2968
3052
  }
2969
3053
  var init_PublicConversationsService = __esm(() => {
2970
3054
  init_OpenAPI();
@@ -3144,6 +3228,112 @@ var init_TokenUsageService = __esm(() => {
3144
3228
  init_request();
3145
3229
  });
3146
3230
 
3231
+ // src/lib/clients/agents-generator/services/WebhookConfigsService.ts
3232
+ class WebhookConfigsService {
3233
+ static createWebhookConfig(requestBody, workspaceId) {
3234
+ return request(OpenAPI, {
3235
+ method: "POST",
3236
+ url: "/webhook-configs",
3237
+ query: {
3238
+ workspace_id: workspaceId
3239
+ },
3240
+ body: requestBody,
3241
+ mediaType: "application/json",
3242
+ errors: {
3243
+ 422: `Validation Error`
3244
+ }
3245
+ });
3246
+ }
3247
+ static listWebhookConfigs(workspaceId) {
3248
+ return request(OpenAPI, {
3249
+ method: "GET",
3250
+ url: "/webhook-configs",
3251
+ query: {
3252
+ workspace_id: workspaceId
3253
+ },
3254
+ errors: {
3255
+ 422: `Validation Error`
3256
+ }
3257
+ });
3258
+ }
3259
+ static listWebhookEvents(workspaceId, limit = 50, offset) {
3260
+ return request(OpenAPI, {
3261
+ method: "GET",
3262
+ url: "/webhook-configs/events",
3263
+ query: {
3264
+ workspace_id: workspaceId,
3265
+ limit,
3266
+ offset
3267
+ },
3268
+ errors: {
3269
+ 422: `Validation Error`
3270
+ }
3271
+ });
3272
+ }
3273
+ static getWebhookConfig(configId) {
3274
+ return request(OpenAPI, {
3275
+ method: "GET",
3276
+ url: "/webhook-configs/{config_id}",
3277
+ path: {
3278
+ config_id: configId
3279
+ },
3280
+ errors: {
3281
+ 422: `Validation Error`
3282
+ }
3283
+ });
3284
+ }
3285
+ static updateWebhookConfig(configId, requestBody) {
3286
+ return request(OpenAPI, {
3287
+ method: "PUT",
3288
+ url: "/webhook-configs/{config_id}",
3289
+ path: {
3290
+ config_id: configId
3291
+ },
3292
+ body: requestBody,
3293
+ mediaType: "application/json",
3294
+ errors: {
3295
+ 422: `Validation Error`
3296
+ }
3297
+ });
3298
+ }
3299
+ static deleteWebhookConfig(configId) {
3300
+ return request(OpenAPI, {
3301
+ method: "DELETE",
3302
+ url: "/webhook-configs/{config_id}",
3303
+ path: {
3304
+ config_id: configId
3305
+ },
3306
+ errors: {
3307
+ 422: `Validation Error`
3308
+ }
3309
+ });
3310
+ }
3311
+ }
3312
+ var init_WebhookConfigsService = __esm(() => {
3313
+ init_OpenAPI();
3314
+ init_request();
3315
+ });
3316
+
3317
+ // src/lib/clients/agents-generator/services/WebhooksService.ts
3318
+ class WebhooksService {
3319
+ static receiveOpenaiWebhookWebhooksOpenaiWorkspaceIdPost(workspaceId) {
3320
+ return request(OpenAPI, {
3321
+ method: "POST",
3322
+ url: "/webhooks/openai/{workspace_id}",
3323
+ path: {
3324
+ workspace_id: workspaceId
3325
+ },
3326
+ errors: {
3327
+ 422: `Validation Error`
3328
+ }
3329
+ });
3330
+ }
3331
+ }
3332
+ var init_WebhooksService = __esm(() => {
3333
+ init_OpenAPI();
3334
+ init_request();
3335
+ });
3336
+
3147
3337
  // src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
3148
3338
  class WorkspaceCollaboratorsService {
3149
3339
  static addWorkspaceCollaborator(workspaceId, requestBody) {
@@ -3315,6 +3505,7 @@ var init_agents_generator = __esm(() => {
3315
3505
  init_AdminFileLibraryService();
3316
3506
  init_AdminMcpServersService();
3317
3507
  init_AdminTokenUsageService();
3508
+ init_AdminWebhookConfigsService();
3318
3509
  init_AdminWorkspacesService();
3319
3510
  init_AgentService();
3320
3511
  init_AgentFoldersService();
@@ -3329,6 +3520,8 @@ var init_agents_generator = __esm(() => {
3329
3520
  init_RootService();
3330
3521
  init_SchemaGeneratorService();
3331
3522
  init_TokenUsageService();
3523
+ init_WebhookConfigsService();
3524
+ init_WebhooksService();
3332
3525
  init_WorkspaceCollaboratorsService();
3333
3526
  init_WorkspacesService();
3334
3527
  });
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-8acda2a920b73ea6f20e54f68ace024752e2d8ff",
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();
@@ -1419,6 +1431,54 @@ var init_AdminTokenUsageService = __esm(() => {
1419
1431
  init_request();
1420
1432
  });
1421
1433
 
1434
+ // src/lib/clients/agents-generator/services/AdminWebhookConfigsService.ts
1435
+ class AdminWebhookConfigsService {
1436
+ static createWebhookConfig(requestBody, workspaceId) {
1437
+ return request(OpenAPI, {
1438
+ method: "POST",
1439
+ url: "/webhook-configs",
1440
+ query: {
1441
+ workspace_id: workspaceId
1442
+ },
1443
+ body: requestBody,
1444
+ mediaType: "application/json",
1445
+ errors: {
1446
+ 422: `Validation Error`
1447
+ }
1448
+ });
1449
+ }
1450
+ static updateWebhookConfig(configId, requestBody) {
1451
+ return request(OpenAPI, {
1452
+ method: "PUT",
1453
+ url: "/webhook-configs/{config_id}",
1454
+ path: {
1455
+ config_id: configId
1456
+ },
1457
+ body: requestBody,
1458
+ mediaType: "application/json",
1459
+ errors: {
1460
+ 422: `Validation Error`
1461
+ }
1462
+ });
1463
+ }
1464
+ static deleteWebhookConfig(configId) {
1465
+ return request(OpenAPI, {
1466
+ method: "DELETE",
1467
+ url: "/webhook-configs/{config_id}",
1468
+ path: {
1469
+ config_id: configId
1470
+ },
1471
+ errors: {
1472
+ 422: `Validation Error`
1473
+ }
1474
+ });
1475
+ }
1476
+ }
1477
+ var init_AdminWebhookConfigsService = __esm(() => {
1478
+ init_OpenAPI();
1479
+ init_request();
1480
+ });
1481
+
1422
1482
  // src/lib/clients/agents-generator/services/AdminWorkspacesService.ts
1423
1483
  class AdminWorkspacesService {
1424
1484
  static createWorkspace(requestBody) {
@@ -1973,6 +2033,18 @@ class ConversationsService {
1973
2033
  }
1974
2034
  });
1975
2035
  }
2036
+ static getResearchStatus(conversationId) {
2037
+ return request(OpenAPI, {
2038
+ method: "GET",
2039
+ url: "/conversations/{conversation_id}/research-status",
2040
+ path: {
2041
+ conversation_id: conversationId
2042
+ },
2043
+ errors: {
2044
+ 422: `Validation Error`
2045
+ }
2046
+ });
2047
+ }
1976
2048
  }
1977
2049
  var init_ConversationsService = __esm(() => {
1978
2050
  init_OpenAPI();
@@ -2533,6 +2605,18 @@ class PublicConversationsService {
2533
2605
  }
2534
2606
  });
2535
2607
  }
2608
+ static getResearchStatus(conversationId) {
2609
+ return request(OpenAPI, {
2610
+ method: "GET",
2611
+ url: "/conversations/{conversation_id}/research-status",
2612
+ path: {
2613
+ conversation_id: conversationId
2614
+ },
2615
+ errors: {
2616
+ 422: `Validation Error`
2617
+ }
2618
+ });
2619
+ }
2536
2620
  }
2537
2621
  var init_PublicConversationsService = __esm(() => {
2538
2622
  init_OpenAPI();
@@ -2712,6 +2796,112 @@ var init_TokenUsageService = __esm(() => {
2712
2796
  init_request();
2713
2797
  });
2714
2798
 
2799
+ // src/lib/clients/agents-generator/services/WebhookConfigsService.ts
2800
+ class WebhookConfigsService {
2801
+ static createWebhookConfig(requestBody, workspaceId) {
2802
+ return request(OpenAPI, {
2803
+ method: "POST",
2804
+ url: "/webhook-configs",
2805
+ query: {
2806
+ workspace_id: workspaceId
2807
+ },
2808
+ body: requestBody,
2809
+ mediaType: "application/json",
2810
+ errors: {
2811
+ 422: `Validation Error`
2812
+ }
2813
+ });
2814
+ }
2815
+ static listWebhookConfigs(workspaceId) {
2816
+ return request(OpenAPI, {
2817
+ method: "GET",
2818
+ url: "/webhook-configs",
2819
+ query: {
2820
+ workspace_id: workspaceId
2821
+ },
2822
+ errors: {
2823
+ 422: `Validation Error`
2824
+ }
2825
+ });
2826
+ }
2827
+ static listWebhookEvents(workspaceId, limit = 50, offset) {
2828
+ return request(OpenAPI, {
2829
+ method: "GET",
2830
+ url: "/webhook-configs/events",
2831
+ query: {
2832
+ workspace_id: workspaceId,
2833
+ limit,
2834
+ offset
2835
+ },
2836
+ errors: {
2837
+ 422: `Validation Error`
2838
+ }
2839
+ });
2840
+ }
2841
+ static getWebhookConfig(configId) {
2842
+ return request(OpenAPI, {
2843
+ method: "GET",
2844
+ url: "/webhook-configs/{config_id}",
2845
+ path: {
2846
+ config_id: configId
2847
+ },
2848
+ errors: {
2849
+ 422: `Validation Error`
2850
+ }
2851
+ });
2852
+ }
2853
+ static updateWebhookConfig(configId, requestBody) {
2854
+ return request(OpenAPI, {
2855
+ method: "PUT",
2856
+ url: "/webhook-configs/{config_id}",
2857
+ path: {
2858
+ config_id: configId
2859
+ },
2860
+ body: requestBody,
2861
+ mediaType: "application/json",
2862
+ errors: {
2863
+ 422: `Validation Error`
2864
+ }
2865
+ });
2866
+ }
2867
+ static deleteWebhookConfig(configId) {
2868
+ return request(OpenAPI, {
2869
+ method: "DELETE",
2870
+ url: "/webhook-configs/{config_id}",
2871
+ path: {
2872
+ config_id: configId
2873
+ },
2874
+ errors: {
2875
+ 422: `Validation Error`
2876
+ }
2877
+ });
2878
+ }
2879
+ }
2880
+ var init_WebhookConfigsService = __esm(() => {
2881
+ init_OpenAPI();
2882
+ init_request();
2883
+ });
2884
+
2885
+ // src/lib/clients/agents-generator/services/WebhooksService.ts
2886
+ class WebhooksService {
2887
+ static receiveOpenaiWebhookWebhooksOpenaiWorkspaceIdPost(workspaceId) {
2888
+ return request(OpenAPI, {
2889
+ method: "POST",
2890
+ url: "/webhooks/openai/{workspace_id}",
2891
+ path: {
2892
+ workspace_id: workspaceId
2893
+ },
2894
+ errors: {
2895
+ 422: `Validation Error`
2896
+ }
2897
+ });
2898
+ }
2899
+ }
2900
+ var init_WebhooksService = __esm(() => {
2901
+ init_OpenAPI();
2902
+ init_request();
2903
+ });
2904
+
2715
2905
  // src/lib/clients/agents-generator/services/WorkspaceCollaboratorsService.ts
2716
2906
  class WorkspaceCollaboratorsService {
2717
2907
  static addWorkspaceCollaborator(workspaceId, requestBody) {
@@ -2883,6 +3073,7 @@ var init_agents_generator = __esm(() => {
2883
3073
  init_AdminFileLibraryService();
2884
3074
  init_AdminMcpServersService();
2885
3075
  init_AdminTokenUsageService();
3076
+ init_AdminWebhookConfigsService();
2886
3077
  init_AdminWorkspacesService();
2887
3078
  init_AgentService();
2888
3079
  init_AgentFoldersService();
@@ -2897,6 +3088,8 @@ var init_agents_generator = __esm(() => {
2897
3088
  init_RootService();
2898
3089
  init_SchemaGeneratorService();
2899
3090
  init_TokenUsageService();
3091
+ init_WebhookConfigsService();
3092
+ init_WebhooksService();
2900
3093
  init_WorkspaceCollaboratorsService();
2901
3094
  init_WorkspacesService();
2902
3095
  });
@@ -3199,6 +3392,8 @@ var exports_src = {};
3199
3392
  __export(exports_src, {
3200
3393
  WorkspacesService: () => WorkspacesService,
3201
3394
  WorkspaceCollaboratorsService: () => WorkspaceCollaboratorsService,
3395
+ WebhooksService: () => WebhooksService,
3396
+ WebhookConfigsService: () => WebhookConfigsService,
3202
3397
  TokenUsageService: () => TokenUsageService,
3203
3398
  SchemaGeneratorService: () => SchemaGeneratorService,
3204
3399
  RootService: () => RootService,
@@ -3219,6 +3414,7 @@ __export(exports_src, {
3219
3414
  AgentFoldersService: () => AgentFoldersService,
3220
3415
  AgentClient: () => AgentClient,
3221
3416
  AdminWorkspacesService: () => AdminWorkspacesService,
3417
+ AdminWebhookConfigsService: () => AdminWebhookConfigsService,
3222
3418
  AdminTokenUsageService: () => AdminTokenUsageService,
3223
3419
  AdminMcpServersService: () => AdminMcpServersService,
3224
3420
  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
  }
@@ -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
  }
@@ -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.2",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "test": "bun test",