@omnara/sdk 0.1.38 → 0.1.40

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.
@@ -16,7 +16,6 @@ __export(zod_gen_exports, {
16
16
  zAgentActivity: () => zAgentActivity,
17
17
  zAgentConfig: () => zAgentConfig,
18
18
  zAgentConfigDefinition: () => zAgentConfigDefinition,
19
- zAgentConfigDefinitionEventWebhook: () => zAgentConfigDefinitionEventWebhook,
20
19
  zAgentConfigDefinitionGitCredentials: () => zAgentConfigDefinitionGitCredentials,
21
20
  zAgentConfigDefinitionInteractionHandler: () => zAgentConfigDefinitionInteractionHandler,
22
21
  zAgentConfigDefinitionInteractionHandlers: () => zAgentConfigDefinitionInteractionHandlers,
@@ -51,6 +50,7 @@ __export(zod_gen_exports, {
51
50
  zAgentEvent: () => zAgentEvent,
52
51
  zAgentEventId: () => zAgentEventId,
53
52
  zAgentEventStreamData: () => zAgentEventStreamData,
53
+ zAgentEventWebhookScope: () => zAgentEventWebhookScope,
54
54
  zAgentId: () => zAgentId,
55
55
  zAgentIncludeUsage: () => zAgentIncludeUsage,
56
56
  zAgentInput: () => zAgentInput,
@@ -76,6 +76,7 @@ __export(zod_gen_exports, {
76
76
  zAgentName: () => zAgentName,
77
77
  zAgentProfile: () => zAgentProfile,
78
78
  zAgentProfileCronTriggerTarget: () => zAgentProfileCronTriggerTarget,
79
+ zAgentProfileEventWebhookScope: () => zAgentProfileEventWebhookScope,
79
80
  zAgentProfileId: () => zAgentProfileId,
80
81
  zAgentProfileIncludeStats: () => zAgentProfileIncludeStats,
81
82
  zAgentProfileStats: () => zAgentProfileStats,
@@ -108,7 +109,6 @@ __export(zod_gen_exports, {
108
109
  zClientErrorCode: () => zClientErrorCode,
109
110
  zCompiledAgentConfig: () => zCompiledAgentConfig,
110
111
  zCompiledAgentModel: () => zCompiledAgentModel,
111
- zCompiledEventWebhook: () => zCompiledEventWebhook,
112
112
  zCompiledGitCredentials: () => zCompiledGitCredentials,
113
113
  zCompiledIntegrationCapability: () => zCompiledIntegrationCapability,
114
114
  zCompiledMachineSource: () => zCompiledMachineSource,
@@ -176,6 +176,10 @@ __export(zod_gen_exports, {
176
176
  zCreateCronTriggerPath: () => zCreateCronTriggerPath,
177
177
  zCreateCronTriggerRequest: () => zCreateCronTriggerRequest,
178
178
  zCreateCronTriggerResponse: () => zCreateCronTriggerResponse,
179
+ zCreateEventWebhookBody: () => zCreateEventWebhookBody,
180
+ zCreateEventWebhookPath: () => zCreateEventWebhookPath,
181
+ zCreateEventWebhookRequest: () => zCreateEventWebhookRequest,
182
+ zCreateEventWebhookResponse: () => zCreateEventWebhookResponse,
179
183
  zCreateGitHubSetupRequest: () => zCreateGitHubSetupRequest,
180
184
  zCreateIntegrationBody: () => zCreateIntegrationBody,
181
185
  zCreateIntegrationGitHubSetupBody: () => zCreateIntegrationGitHubSetupBody,
@@ -300,6 +304,8 @@ __export(zod_gen_exports, {
300
304
  zDeleteCronTriggerPath: () => zDeleteCronTriggerPath,
301
305
  zDeleteCronTriggerResponse: () => zDeleteCronTriggerResponse,
302
306
  zDeleteCurrentUserResponse: () => zDeleteCurrentUserResponse,
307
+ zDeleteEventWebhookPath: () => zDeleteEventWebhookPath,
308
+ zDeleteEventWebhookResponse: () => zDeleteEventWebhookResponse,
303
309
  zDeleteIntegrationPath: () => zDeleteIntegrationPath,
304
310
  zDeleteIntegrationResponse: () => zDeleteIntegrationResponse,
305
311
  zDeleteIntegrationSubscriptionPath: () => zDeleteIntegrationSubscriptionPath,
@@ -354,10 +360,15 @@ __export(zod_gen_exports, {
354
360
  zError: () => zError,
355
361
  zErrorCode: () => zErrorCode,
356
362
  zErrorContentBlock: () => zErrorContentBlock,
363
+ zEventWebhook: () => zEventWebhook,
357
364
  zEventWebhookAgentInputEvent: () => zEventWebhookAgentInputEvent,
358
365
  zEventWebhookContextCheckpointEvent: () => zEventWebhookContextCheckpointEvent,
366
+ zEventWebhookEventType: () => zEventWebhookEventType,
367
+ zEventWebhookId: () => zEventWebhookId,
359
368
  zEventWebhookModelOutputEvent: () => zEventWebhookModelOutputEvent,
360
369
  zEventWebhookPayload: () => zEventWebhookPayload,
370
+ zEventWebhookScope: () => zEventWebhookScope,
371
+ zEventWebhookScopeType: () => zEventWebhookScopeType,
361
372
  zEventWebhookToolCallUpdate: () => zEventWebhookToolCallUpdate,
362
373
  zEventWebhookToolResultEvent: () => zEventWebhookToolResultEvent,
363
374
  zExternalActorParams: () => zExternalActorParams,
@@ -502,6 +513,10 @@ __export(zod_gen_exports, {
502
513
  zListCronTriggersQuery: () => zListCronTriggersQuery,
503
514
  zListCronTriggersResponse: () => zListCronTriggersResponse,
504
515
  zListCronTriggersResponse2: () => zListCronTriggersResponse2,
516
+ zListEventWebhooksPath: () => zListEventWebhooksPath,
517
+ zListEventWebhooksQuery: () => zListEventWebhooksQuery,
518
+ zListEventWebhooksResponse: () => zListEventWebhooksResponse,
519
+ zListEventWebhooksResponse2: () => zListEventWebhooksResponse2,
505
520
  zListEventsPath: () => zListEventsPath,
506
521
  zListEventsQuery: () => zListEventsQuery,
507
522
  zListEventsResponse: () => zListEventsResponse,
@@ -756,6 +771,7 @@ __export(zod_gen_exports, {
756
771
  zProcessReconciliationDirective: () => zProcessReconciliationDirective,
757
772
  zProject: () => zProject,
758
773
  zProjectAccess: () => zProjectAccess,
774
+ zProjectEventWebhookScope: () => zProjectEventWebhookScope,
759
775
  zProjectFields: () => zProjectFields,
760
776
  zProjectId: () => zProjectId,
761
777
  zProjectMachineGrant: () => zProjectMachineGrant,
@@ -918,6 +934,10 @@ __export(zod_gen_exports, {
918
934
  zUpdateCronTriggerPath: () => zUpdateCronTriggerPath,
919
935
  zUpdateCronTriggerRequest: () => zUpdateCronTriggerRequest,
920
936
  zUpdateCronTriggerResponse: () => zUpdateCronTriggerResponse,
937
+ zUpdateEventWebhookBody: () => zUpdateEventWebhookBody,
938
+ zUpdateEventWebhookPath: () => zUpdateEventWebhookPath,
939
+ zUpdateEventWebhookRequest: () => zUpdateEventWebhookRequest,
940
+ zUpdateEventWebhookResponse: () => zUpdateEventWebhookResponse,
921
941
  zUpdateIntegrationBody: () => zUpdateIntegrationBody,
922
942
  zUpdateIntegrationPath: () => zUpdateIntegrationPath,
923
943
  zUpdateIntegrationRequest: () => zUpdateIntegrationRequest,
@@ -994,17 +1014,6 @@ __export(zod_gen_exports, {
994
1014
  zWriteMemoryFileResponse: () => zWriteMemoryFileResponse
995
1015
  });
996
1016
  import * as z from "zod";
997
- var zAgentConfigDefinitionEventWebhook = z.object({
998
- events: z.array(z.enum([
999
- "agent_input",
1000
- "model_output",
1001
- "tool_result",
1002
- "context_checkpoint",
1003
- "tool_call_update"
1004
- ])).min(1),
1005
- signing_secret_id: z.string().min(1).optional(),
1006
- url: z.string().min(1)
1007
- });
1008
1017
  var zAgentConfigDefinitionGitCredentials = z.object({
1009
1018
  integration: z.string().regex(/^[a-zA-Z][a-zA-Z0-9-]{0,31}$/),
1010
1019
  repository_ids: z.array(z.int().gte(1)).min(1).max(500).optional(),
@@ -1129,7 +1138,6 @@ var zAgentConfigDefinitionMemoryStore = z.object({
1129
1138
  });
1130
1139
  var zAgentConfigDefinitionMemoryStores = z.array(zAgentConfigDefinitionMemoryStore).nullable();
1131
1140
  var zAgentConfigDefinition = z.object({
1132
- event_webhook: zAgentConfigDefinitionEventWebhook.optional(),
1133
1141
  git_credentials: zAgentConfigDefinitionGitCredentials.optional(),
1134
1142
  instruction: z.string().min(1).regex(/\S/),
1135
1143
  interaction_handlers: zAgentConfigDefinitionInteractionHandlers.optional(),
@@ -1223,6 +1231,35 @@ var zActorId = z.string().regex(/^actr_[a-z2-7]{26}$/);
1223
1231
  var zAgentId = z.string().regex(/^agt_[a-z2-7]{26}$/);
1224
1232
  var zAgentConfigId = z.string().regex(/^acfg_[a-z2-7]{26}$/);
1225
1233
  var zAgentProfileId = z.string().regex(/^aprf_[a-z2-7]{26}$/);
1234
+ var zEventWebhookId = z.string().regex(/^whk_[a-z2-7]{26}$/);
1235
+ var zEventWebhookScopeType = z.enum([
1236
+ "project",
1237
+ "profile",
1238
+ "agent"
1239
+ ]);
1240
+ var zProjectEventWebhookScope = z.object({
1241
+ type: z.enum(["project"])
1242
+ });
1243
+ var zAgentProfileEventWebhookScope = z.object({
1244
+ type: z.enum(["profile"]),
1245
+ agent_profile_id: zAgentProfileId
1246
+ });
1247
+ var zAgentEventWebhookScope = z.object({
1248
+ type: z.enum(["agent"]),
1249
+ agent_id: zAgentId
1250
+ });
1251
+ var zEventWebhookScope = z.discriminatedUnion("type", [
1252
+ zProjectEventWebhookScope.extend({ type: z.literal("project") }),
1253
+ zAgentProfileEventWebhookScope.extend({ type: z.literal("profile") }),
1254
+ zAgentEventWebhookScope.extend({ type: z.literal("agent") })
1255
+ ]);
1256
+ var zEventWebhookEventType = z.enum([
1257
+ "agent_input",
1258
+ "model_output",
1259
+ "tool_result",
1260
+ "context_checkpoint",
1261
+ "tool_call_update"
1262
+ ]);
1226
1263
  var zCronTriggerId = z.string().regex(/^cron_[a-z2-7]{26}$/);
1227
1264
  var zIntegrationTargetId = z.string().regex(/^itgt_[a-z2-7]{26}$/);
1228
1265
  var zAgentEventId = z.string().regex(/^evt_[a-z2-7]{26}$/);
@@ -1351,6 +1388,31 @@ var zSkillRevisionId = z.string().regex(/^skr_[a-z2-7]{26}$/);
1351
1388
  var zSkillGrantId = z.string().regex(/^skg_[a-z2-7]{26}$/);
1352
1389
  var zMemoryStoreId = z.string().regex(/^mst_[a-z2-7]{26}$/);
1353
1390
  var zSecretId = z.string().regex(/^sec_[a-z2-7]{26}$/);
1391
+ var zUpdateEventWebhookRequest = z.object({
1392
+ url: z.string().min(1).max(2048).optional(),
1393
+ event_types: z.array(zEventWebhookEventType).min(1).optional(),
1394
+ signing_secret_id: zSecretId.nullish()
1395
+ });
1396
+ var zCreateEventWebhookRequest = z.object({
1397
+ url: z.string().min(1).max(2048),
1398
+ event_types: z.array(zEventWebhookEventType).min(1),
1399
+ signing_secret_id: zSecretId.optional(),
1400
+ scope: zEventWebhookScope
1401
+ });
1402
+ var zEventWebhook = z.object({
1403
+ url: z.string().min(1).max(2048),
1404
+ event_types: z.array(zEventWebhookEventType).min(1),
1405
+ signing_secret_id: zSecretId.optional(),
1406
+ scope: zEventWebhookScope,
1407
+ id: zEventWebhookId,
1408
+ org_id: zOrganizationId,
1409
+ project_id: zProjectId,
1410
+ created_at: z.iso.datetime({ offset: true }),
1411
+ updated_at: z.iso.datetime({ offset: true })
1412
+ });
1413
+ var zListEventWebhooksResponse = z.object({
1414
+ data: z.array(zEventWebhook)
1415
+ });
1354
1416
  var zCreateModelProviderConfigRequest = z.object({
1355
1417
  name: zResourceName,
1356
1418
  preset: z.enum([
@@ -1866,17 +1928,6 @@ var zAgentConfigModel = z.object({
1866
1928
  input_modalities: z.array(z.string()),
1867
1929
  output_modalities: z.array(z.string())
1868
1930
  });
1869
- var zCompiledEventWebhook = z.object({
1870
- url: z.string(),
1871
- events: z.array(z.enum([
1872
- "agent_input",
1873
- "model_output",
1874
- "tool_result",
1875
- "context_checkpoint",
1876
- "tool_call_update"
1877
- ])).min(1),
1878
- signing_secret_id: zSecretId.optional()
1879
- });
1880
1931
  var zCompiledModelReasoning = z.object({
1881
1932
  effort: z.string()
1882
1933
  });
@@ -3622,7 +3673,6 @@ var zCompiledAgentConfig = z.object({
3622
3673
  machine_sources: z.array(zCompiledMachineSource).optional(),
3623
3674
  tools: z.record(z.string(), zCompiledTool).optional(),
3624
3675
  mcp: z.record(z.string(), zCompiledMcpServer).optional(),
3625
- event_webhook: zCompiledEventWebhook.optional(),
3626
3676
  interaction_handlers: z.record(z.string(), zCompiledIntegrationCapability).optional(),
3627
3677
  git_credentials: zCompiledGitCredentials.optional(),
3628
3678
  skills: z.array(zCompiledSkill).optional(),
@@ -3871,6 +3921,35 @@ var zSecretOwnerKindFilter = z.enum([
3871
3921
  var zSecretOwnerProjectIdFilter = zProjectId;
3872
3922
  var zSecretMcpoAuthFlowIdFilter = zMcpoAuthFlowId;
3873
3923
  var zSecretAvailabilitySourceFilter = z.enum(["direct", "grant"]);
3924
+ var zListEventWebhooksPath = z.object({
3925
+ orgID: zOrganizationId,
3926
+ projectID: zProjectId
3927
+ });
3928
+ var zListEventWebhooksQuery = z.object({
3929
+ scope_type: zEventWebhookScopeType,
3930
+ agent_profile_id: zAgentProfileId.optional(),
3931
+ agent_id: zAgentId.optional()
3932
+ });
3933
+ var zListEventWebhooksResponse2 = zListEventWebhooksResponse;
3934
+ var zCreateEventWebhookBody = zCreateEventWebhookRequest;
3935
+ var zCreateEventWebhookPath = z.object({
3936
+ orgID: zOrganizationId,
3937
+ projectID: zProjectId
3938
+ });
3939
+ var zCreateEventWebhookResponse = zEventWebhook;
3940
+ var zDeleteEventWebhookPath = z.object({
3941
+ orgID: zOrganizationId,
3942
+ projectID: zProjectId,
3943
+ webhookID: zEventWebhookId
3944
+ });
3945
+ var zDeleteEventWebhookResponse = z.void();
3946
+ var zUpdateEventWebhookBody = zUpdateEventWebhookRequest;
3947
+ var zUpdateEventWebhookPath = z.object({
3948
+ orgID: zOrganizationId,
3949
+ projectID: zProjectId,
3950
+ webhookID: zEventWebhookId
3951
+ });
3952
+ var zUpdateEventWebhookResponse = zEventWebhook;
3874
3953
  var zListPersonalAccessTokensQuery = z.object({
3875
3954
  limit: z.int().gte(1).lte(100).optional().default(50),
3876
3955
  cursor: z.string().max(1024).optional()
@@ -5201,7 +5280,6 @@ var zListIntegrationDefinitionsResponse2 = zListIntegrationDefinitionsResponse;
5201
5280
 
5202
5281
  export {
5203
5282
  __export,
5204
- zAgentConfigDefinitionEventWebhook,
5205
5283
  zAgentConfigDefinitionGitCredentials,
5206
5284
  zAgentConfigDefinitionInteractionHandler,
5207
5285
  zAgentConfigDefinitionInteractionHandlers,
@@ -5250,6 +5328,13 @@ export {
5250
5328
  zAgentId,
5251
5329
  zAgentConfigId,
5252
5330
  zAgentProfileId,
5331
+ zEventWebhookId,
5332
+ zEventWebhookScopeType,
5333
+ zProjectEventWebhookScope,
5334
+ zAgentProfileEventWebhookScope,
5335
+ zAgentEventWebhookScope,
5336
+ zEventWebhookScope,
5337
+ zEventWebhookEventType,
5253
5338
  zCronTriggerId,
5254
5339
  zIntegrationTargetId,
5255
5340
  zAgentEventId,
@@ -5290,6 +5375,10 @@ export {
5290
5375
  zSkillGrantId,
5291
5376
  zMemoryStoreId,
5292
5377
  zSecretId,
5378
+ zUpdateEventWebhookRequest,
5379
+ zCreateEventWebhookRequest,
5380
+ zEventWebhook,
5381
+ zListEventWebhooksResponse,
5293
5382
  zCreateModelProviderConfigRequest,
5294
5383
  zUpdateModelProviderConfigRequest,
5295
5384
  zSecretGrantId,
@@ -5382,7 +5471,6 @@ export {
5382
5471
  zMcpServerTool,
5383
5472
  zMcpServerToolsResponse,
5384
5473
  zAgentConfigModel,
5385
- zCompiledEventWebhook,
5386
5474
  zCompiledModelReasoning,
5387
5475
  zCompiledAgentModel,
5388
5476
  zCompiledMachineSource,
@@ -5713,6 +5801,17 @@ export {
5713
5801
  zSecretOwnerProjectIdFilter,
5714
5802
  zSecretMcpoAuthFlowIdFilter,
5715
5803
  zSecretAvailabilitySourceFilter,
5804
+ zListEventWebhooksPath,
5805
+ zListEventWebhooksQuery,
5806
+ zListEventWebhooksResponse2,
5807
+ zCreateEventWebhookBody,
5808
+ zCreateEventWebhookPath,
5809
+ zCreateEventWebhookResponse,
5810
+ zDeleteEventWebhookPath,
5811
+ zDeleteEventWebhookResponse,
5812
+ zUpdateEventWebhookBody,
5813
+ zUpdateEventWebhookPath,
5814
+ zUpdateEventWebhookResponse,
5716
5815
  zListPersonalAccessTokensQuery,
5717
5816
  zListPersonalAccessTokensResponse2,
5718
5817
  zCreatePersonalAccessTokenBody,
@@ -6188,4 +6287,4 @@ export {
6188
6287
  zListIntegrationDefinitionsResponse2,
6189
6288
  zod_gen_exports
6190
6289
  };
6191
- //# sourceMappingURL=chunk-2LTFYXMO.js.map
6290
+ //# sourceMappingURL=chunk-FNBBY6EZ.js.map