@channel.io/app-sdk-core 0.29.0 → 0.31.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,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { HookConfig as ProtoHookConfig, HookGetHooksOutput as ProtoGetHooksOutput, HookTeamChatMessageCreatedInput as ProtoTeamChatMessageCreatedHookInput, HookTeamChatMessageCreatedResult as ProtoTeamChatMessageCreatedHookResult, HookUserChatOpenedInput as ProtoUserChatOpenedHookInput, HookUserChatOpenedResult as ProtoUserChatOpenedHookResult, HookWebhookConfig as ProtoWebhookConfig, OAuthFlowHookInput as ProtoOAuthFlowHookInput, OAuthFlowHookResult as ProtoOAuthFlowHookResult } from "../gen/channel/app/sdk/v1/extension.js";
2
+ import type { HookConfig as ProtoHookConfig, HookGetHooksOutput as ProtoGetHooksOutput, HookTeamChatMessageCreatedInput as ProtoTeamChatMessageCreatedHookInput, HookTeamChatMessageCreatedResult as ProtoTeamChatMessageCreatedHookResult, HookUserChatOpenedInput as ProtoUserChatOpenedHookInput, HookUserChatOpenedResult as ProtoUserChatOpenedHookResult, HookWebhookConfig as ProtoWebhookConfig, HookWebhookResponse as ProtoWebhookResponse, OAuthFlowHookInput as ProtoOAuthFlowHookInput, OAuthFlowHookResult as ProtoOAuthFlowHookResult } from "../gen/channel/app/sdk/v1/extension.js";
3
3
  type ProtoBacked<T extends Proto, Proto> = T;
4
4
  /**
5
5
  * Hook type returned from extension.hook.metadata.getHooks.
@@ -259,21 +259,188 @@ export declare const TeamChatMessageCreatedHookResultSchema: z.ZodDiscriminatedU
259
259
  terminal: true;
260
260
  }>]>;
261
261
  export type TeamChatMessageCreatedHookResult = ProtoBacked<z.infer<typeof TeamChatMessageCreatedHookResultSchema>, ProtoTeamChatMessageCreatedHookResult>;
262
+ /** Fixed acknowledgement after outbox persistence; it does not report app completion. */
263
+ export declare const WebhookResponseSchema: z.ZodEffects<z.ZodUnion<[z.ZodObject<{
264
+ contentType: z.ZodEffects<z.ZodString, string, string>;
265
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
266
+ } & {
267
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
268
+ }, "strict", z.ZodTypeAny, {
269
+ statusCode: number;
270
+ contentType: string;
271
+ body?: string | undefined;
272
+ }, {
273
+ statusCode: number;
274
+ contentType: string;
275
+ body?: string | undefined;
276
+ }>, z.ZodObject<{
277
+ contentType: z.ZodEffects<z.ZodString, string, string>;
278
+ } & {
279
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
280
+ body: z.ZodOptional<z.ZodLiteral<"">>;
281
+ }, "strict", z.ZodTypeAny, {
282
+ statusCode: 204 | 205;
283
+ contentType: string;
284
+ body?: "" | undefined;
285
+ }, {
286
+ statusCode: 204 | 205;
287
+ contentType: string;
288
+ body?: "" | undefined;
289
+ }>]>, {
290
+ statusCode: number;
291
+ contentType: string;
292
+ body?: string | undefined;
293
+ } | {
294
+ statusCode: 204 | 205;
295
+ contentType: string;
296
+ body?: "" | undefined;
297
+ }, {
298
+ statusCode: number;
299
+ contentType: string;
300
+ body?: string | undefined;
301
+ } | {
302
+ statusCode: 204 | 205;
303
+ contentType: string;
304
+ body?: "" | undefined;
305
+ }>;
306
+ export type WebhookResponse = ProtoBacked<z.infer<typeof WebhookResponseSchema>, ProtoWebhookResponse>;
262
307
  export declare const WebhookConfigSchema: z.ZodUnion<[z.ZodObject<{
263
308
  endpointToken: z.ZodString;
309
+ response: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
310
+ contentType: z.ZodEffects<z.ZodString, string, string>;
311
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
312
+ } & {
313
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
314
+ }, "strict", z.ZodTypeAny, {
315
+ statusCode: number;
316
+ contentType: string;
317
+ body?: string | undefined;
318
+ }, {
319
+ statusCode: number;
320
+ contentType: string;
321
+ body?: string | undefined;
322
+ }>, z.ZodObject<{
323
+ contentType: z.ZodEffects<z.ZodString, string, string>;
324
+ } & {
325
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
326
+ body: z.ZodOptional<z.ZodLiteral<"">>;
327
+ }, "strict", z.ZodTypeAny, {
328
+ statusCode: 204 | 205;
329
+ contentType: string;
330
+ body?: "" | undefined;
331
+ }, {
332
+ statusCode: 204 | 205;
333
+ contentType: string;
334
+ body?: "" | undefined;
335
+ }>]>, {
336
+ statusCode: number;
337
+ contentType: string;
338
+ body?: string | undefined;
339
+ } | {
340
+ statusCode: 204 | 205;
341
+ contentType: string;
342
+ body?: "" | undefined;
343
+ }, {
344
+ statusCode: number;
345
+ contentType: string;
346
+ body?: string | undefined;
347
+ } | {
348
+ statusCode: 204 | 205;
349
+ contentType: string;
350
+ body?: "" | undefined;
351
+ }>>;
264
352
  executionScope: z.ZodOptional<z.ZodLiteral<"app">>;
265
353
  }, "strict", z.ZodTypeAny, {
266
354
  endpointToken: string;
355
+ response?: {
356
+ statusCode: number;
357
+ contentType: string;
358
+ body?: string | undefined;
359
+ } | {
360
+ statusCode: 204 | 205;
361
+ contentType: string;
362
+ body?: "" | undefined;
363
+ } | undefined;
267
364
  executionScope?: "app" | undefined;
268
365
  }, {
269
366
  endpointToken: string;
367
+ response?: {
368
+ statusCode: number;
369
+ contentType: string;
370
+ body?: string | undefined;
371
+ } | {
372
+ statusCode: 204 | 205;
373
+ contentType: string;
374
+ body?: "" | undefined;
375
+ } | undefined;
270
376
  executionScope?: "app" | undefined;
271
377
  }>, z.ZodObject<{
272
378
  executionScope: z.ZodLiteral<"manager">;
379
+ response: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
380
+ contentType: z.ZodEffects<z.ZodString, string, string>;
381
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
382
+ } & {
383
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
384
+ }, "strict", z.ZodTypeAny, {
385
+ statusCode: number;
386
+ contentType: string;
387
+ body?: string | undefined;
388
+ }, {
389
+ statusCode: number;
390
+ contentType: string;
391
+ body?: string | undefined;
392
+ }>, z.ZodObject<{
393
+ contentType: z.ZodEffects<z.ZodString, string, string>;
394
+ } & {
395
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
396
+ body: z.ZodOptional<z.ZodLiteral<"">>;
397
+ }, "strict", z.ZodTypeAny, {
398
+ statusCode: 204 | 205;
399
+ contentType: string;
400
+ body?: "" | undefined;
401
+ }, {
402
+ statusCode: 204 | 205;
403
+ contentType: string;
404
+ body?: "" | undefined;
405
+ }>]>, {
406
+ statusCode: number;
407
+ contentType: string;
408
+ body?: string | undefined;
409
+ } | {
410
+ statusCode: 204 | 205;
411
+ contentType: string;
412
+ body?: "" | undefined;
413
+ }, {
414
+ statusCode: number;
415
+ contentType: string;
416
+ body?: string | undefined;
417
+ } | {
418
+ statusCode: 204 | 205;
419
+ contentType: string;
420
+ body?: "" | undefined;
421
+ }>>;
273
422
  }, "strict", z.ZodTypeAny, {
274
423
  executionScope: "manager";
424
+ response?: {
425
+ statusCode: number;
426
+ contentType: string;
427
+ body?: string | undefined;
428
+ } | {
429
+ statusCode: 204 | 205;
430
+ contentType: string;
431
+ body?: "" | undefined;
432
+ } | undefined;
275
433
  }, {
276
434
  executionScope: "manager";
435
+ response?: {
436
+ statusCode: number;
437
+ contentType: string;
438
+ body?: string | undefined;
439
+ } | {
440
+ statusCode: 204 | 205;
441
+ contentType: string;
442
+ body?: "" | undefined;
443
+ } | undefined;
277
444
  }>]>;
278
445
  export type WebhookConfig = ProtoBacked<z.infer<typeof WebhookConfigSchema>, ProtoWebhookConfig>;
279
446
  /**
@@ -389,19 +556,141 @@ export declare const HookConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
389
556
  targetId: z.ZodString;
390
557
  webhook: z.ZodUnion<[z.ZodObject<{
391
558
  endpointToken: z.ZodString;
559
+ response: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
560
+ contentType: z.ZodEffects<z.ZodString, string, string>;
561
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
562
+ } & {
563
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
564
+ }, "strict", z.ZodTypeAny, {
565
+ statusCode: number;
566
+ contentType: string;
567
+ body?: string | undefined;
568
+ }, {
569
+ statusCode: number;
570
+ contentType: string;
571
+ body?: string | undefined;
572
+ }>, z.ZodObject<{
573
+ contentType: z.ZodEffects<z.ZodString, string, string>;
574
+ } & {
575
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
576
+ body: z.ZodOptional<z.ZodLiteral<"">>;
577
+ }, "strict", z.ZodTypeAny, {
578
+ statusCode: 204 | 205;
579
+ contentType: string;
580
+ body?: "" | undefined;
581
+ }, {
582
+ statusCode: 204 | 205;
583
+ contentType: string;
584
+ body?: "" | undefined;
585
+ }>]>, {
586
+ statusCode: number;
587
+ contentType: string;
588
+ body?: string | undefined;
589
+ } | {
590
+ statusCode: 204 | 205;
591
+ contentType: string;
592
+ body?: "" | undefined;
593
+ }, {
594
+ statusCode: number;
595
+ contentType: string;
596
+ body?: string | undefined;
597
+ } | {
598
+ statusCode: 204 | 205;
599
+ contentType: string;
600
+ body?: "" | undefined;
601
+ }>>;
392
602
  executionScope: z.ZodOptional<z.ZodLiteral<"app">>;
393
603
  }, "strict", z.ZodTypeAny, {
394
604
  endpointToken: string;
605
+ response?: {
606
+ statusCode: number;
607
+ contentType: string;
608
+ body?: string | undefined;
609
+ } | {
610
+ statusCode: 204 | 205;
611
+ contentType: string;
612
+ body?: "" | undefined;
613
+ } | undefined;
395
614
  executionScope?: "app" | undefined;
396
615
  }, {
397
616
  endpointToken: string;
617
+ response?: {
618
+ statusCode: number;
619
+ contentType: string;
620
+ body?: string | undefined;
621
+ } | {
622
+ statusCode: 204 | 205;
623
+ contentType: string;
624
+ body?: "" | undefined;
625
+ } | undefined;
398
626
  executionScope?: "app" | undefined;
399
627
  }>, z.ZodObject<{
400
628
  executionScope: z.ZodLiteral<"manager">;
629
+ response: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
630
+ contentType: z.ZodEffects<z.ZodString, string, string>;
631
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
632
+ } & {
633
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
634
+ }, "strict", z.ZodTypeAny, {
635
+ statusCode: number;
636
+ contentType: string;
637
+ body?: string | undefined;
638
+ }, {
639
+ statusCode: number;
640
+ contentType: string;
641
+ body?: string | undefined;
642
+ }>, z.ZodObject<{
643
+ contentType: z.ZodEffects<z.ZodString, string, string>;
644
+ } & {
645
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
646
+ body: z.ZodOptional<z.ZodLiteral<"">>;
647
+ }, "strict", z.ZodTypeAny, {
648
+ statusCode: 204 | 205;
649
+ contentType: string;
650
+ body?: "" | undefined;
651
+ }, {
652
+ statusCode: 204 | 205;
653
+ contentType: string;
654
+ body?: "" | undefined;
655
+ }>]>, {
656
+ statusCode: number;
657
+ contentType: string;
658
+ body?: string | undefined;
659
+ } | {
660
+ statusCode: 204 | 205;
661
+ contentType: string;
662
+ body?: "" | undefined;
663
+ }, {
664
+ statusCode: number;
665
+ contentType: string;
666
+ body?: string | undefined;
667
+ } | {
668
+ statusCode: 204 | 205;
669
+ contentType: string;
670
+ body?: "" | undefined;
671
+ }>>;
401
672
  }, "strict", z.ZodTypeAny, {
402
673
  executionScope: "manager";
674
+ response?: {
675
+ statusCode: number;
676
+ contentType: string;
677
+ body?: string | undefined;
678
+ } | {
679
+ statusCode: 204 | 205;
680
+ contentType: string;
681
+ body?: "" | undefined;
682
+ } | undefined;
403
683
  }, {
404
684
  executionScope: "manager";
685
+ response?: {
686
+ statusCode: number;
687
+ contentType: string;
688
+ body?: string | undefined;
689
+ } | {
690
+ statusCode: 204 | 205;
691
+ contentType: string;
692
+ body?: "" | undefined;
693
+ } | undefined;
405
694
  }>]>;
406
695
  }, "strict", z.ZodTypeAny, {
407
696
  type: "webhook.received";
@@ -409,9 +698,27 @@ export declare const HookConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
409
698
  targetId: string;
410
699
  webhook: {
411
700
  endpointToken: string;
701
+ response?: {
702
+ statusCode: number;
703
+ contentType: string;
704
+ body?: string | undefined;
705
+ } | {
706
+ statusCode: 204 | 205;
707
+ contentType: string;
708
+ body?: "" | undefined;
709
+ } | undefined;
412
710
  executionScope?: "app" | undefined;
413
711
  } | {
414
712
  executionScope: "manager";
713
+ response?: {
714
+ statusCode: number;
715
+ contentType: string;
716
+ body?: string | undefined;
717
+ } | {
718
+ statusCode: 204 | 205;
719
+ contentType: string;
720
+ body?: "" | undefined;
721
+ } | undefined;
415
722
  };
416
723
  systemVersion?: string | undefined;
417
724
  }, {
@@ -420,9 +727,27 @@ export declare const HookConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObj
420
727
  targetId: string;
421
728
  webhook: {
422
729
  endpointToken: string;
730
+ response?: {
731
+ statusCode: number;
732
+ contentType: string;
733
+ body?: string | undefined;
734
+ } | {
735
+ statusCode: 204 | 205;
736
+ contentType: string;
737
+ body?: "" | undefined;
738
+ } | undefined;
423
739
  executionScope?: "app" | undefined;
424
740
  } | {
425
741
  executionScope: "manager";
742
+ response?: {
743
+ statusCode: number;
744
+ contentType: string;
745
+ body?: string | undefined;
746
+ } | {
747
+ statusCode: 204 | 205;
748
+ contentType: string;
749
+ body?: "" | undefined;
750
+ } | undefined;
426
751
  };
427
752
  systemVersion?: string | undefined;
428
753
  }>, z.ZodObject<{
@@ -730,19 +1055,141 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
730
1055
  targetId: z.ZodString;
731
1056
  webhook: z.ZodUnion<[z.ZodObject<{
732
1057
  endpointToken: z.ZodString;
1058
+ response: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
1059
+ contentType: z.ZodEffects<z.ZodString, string, string>;
1060
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1061
+ } & {
1062
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
1063
+ }, "strict", z.ZodTypeAny, {
1064
+ statusCode: number;
1065
+ contentType: string;
1066
+ body?: string | undefined;
1067
+ }, {
1068
+ statusCode: number;
1069
+ contentType: string;
1070
+ body?: string | undefined;
1071
+ }>, z.ZodObject<{
1072
+ contentType: z.ZodEffects<z.ZodString, string, string>;
1073
+ } & {
1074
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
1075
+ body: z.ZodOptional<z.ZodLiteral<"">>;
1076
+ }, "strict", z.ZodTypeAny, {
1077
+ statusCode: 204 | 205;
1078
+ contentType: string;
1079
+ body?: "" | undefined;
1080
+ }, {
1081
+ statusCode: 204 | 205;
1082
+ contentType: string;
1083
+ body?: "" | undefined;
1084
+ }>]>, {
1085
+ statusCode: number;
1086
+ contentType: string;
1087
+ body?: string | undefined;
1088
+ } | {
1089
+ statusCode: 204 | 205;
1090
+ contentType: string;
1091
+ body?: "" | undefined;
1092
+ }, {
1093
+ statusCode: number;
1094
+ contentType: string;
1095
+ body?: string | undefined;
1096
+ } | {
1097
+ statusCode: 204 | 205;
1098
+ contentType: string;
1099
+ body?: "" | undefined;
1100
+ }>>;
733
1101
  executionScope: z.ZodOptional<z.ZodLiteral<"app">>;
734
1102
  }, "strict", z.ZodTypeAny, {
735
1103
  endpointToken: string;
1104
+ response?: {
1105
+ statusCode: number;
1106
+ contentType: string;
1107
+ body?: string | undefined;
1108
+ } | {
1109
+ statusCode: 204 | 205;
1110
+ contentType: string;
1111
+ body?: "" | undefined;
1112
+ } | undefined;
736
1113
  executionScope?: "app" | undefined;
737
1114
  }, {
738
1115
  endpointToken: string;
1116
+ response?: {
1117
+ statusCode: number;
1118
+ contentType: string;
1119
+ body?: string | undefined;
1120
+ } | {
1121
+ statusCode: 204 | 205;
1122
+ contentType: string;
1123
+ body?: "" | undefined;
1124
+ } | undefined;
739
1125
  executionScope?: "app" | undefined;
740
1126
  }>, z.ZodObject<{
741
1127
  executionScope: z.ZodLiteral<"manager">;
1128
+ response: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
1129
+ contentType: z.ZodEffects<z.ZodString, string, string>;
1130
+ body: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1131
+ } & {
1132
+ statusCode: z.ZodUnion<[z.ZodNumber, z.ZodNumber]>;
1133
+ }, "strict", z.ZodTypeAny, {
1134
+ statusCode: number;
1135
+ contentType: string;
1136
+ body?: string | undefined;
1137
+ }, {
1138
+ statusCode: number;
1139
+ contentType: string;
1140
+ body?: string | undefined;
1141
+ }>, z.ZodObject<{
1142
+ contentType: z.ZodEffects<z.ZodString, string, string>;
1143
+ } & {
1144
+ statusCode: z.ZodUnion<[z.ZodLiteral<204>, z.ZodLiteral<205>]>;
1145
+ body: z.ZodOptional<z.ZodLiteral<"">>;
1146
+ }, "strict", z.ZodTypeAny, {
1147
+ statusCode: 204 | 205;
1148
+ contentType: string;
1149
+ body?: "" | undefined;
1150
+ }, {
1151
+ statusCode: 204 | 205;
1152
+ contentType: string;
1153
+ body?: "" | undefined;
1154
+ }>]>, {
1155
+ statusCode: number;
1156
+ contentType: string;
1157
+ body?: string | undefined;
1158
+ } | {
1159
+ statusCode: 204 | 205;
1160
+ contentType: string;
1161
+ body?: "" | undefined;
1162
+ }, {
1163
+ statusCode: number;
1164
+ contentType: string;
1165
+ body?: string | undefined;
1166
+ } | {
1167
+ statusCode: 204 | 205;
1168
+ contentType: string;
1169
+ body?: "" | undefined;
1170
+ }>>;
742
1171
  }, "strict", z.ZodTypeAny, {
743
1172
  executionScope: "manager";
1173
+ response?: {
1174
+ statusCode: number;
1175
+ contentType: string;
1176
+ body?: string | undefined;
1177
+ } | {
1178
+ statusCode: 204 | 205;
1179
+ contentType: string;
1180
+ body?: "" | undefined;
1181
+ } | undefined;
744
1182
  }, {
745
1183
  executionScope: "manager";
1184
+ response?: {
1185
+ statusCode: number;
1186
+ contentType: string;
1187
+ body?: string | undefined;
1188
+ } | {
1189
+ statusCode: 204 | 205;
1190
+ contentType: string;
1191
+ body?: "" | undefined;
1192
+ } | undefined;
746
1193
  }>]>;
747
1194
  }, "strict", z.ZodTypeAny, {
748
1195
  type: "webhook.received";
@@ -750,9 +1197,27 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
750
1197
  targetId: string;
751
1198
  webhook: {
752
1199
  endpointToken: string;
1200
+ response?: {
1201
+ statusCode: number;
1202
+ contentType: string;
1203
+ body?: string | undefined;
1204
+ } | {
1205
+ statusCode: 204 | 205;
1206
+ contentType: string;
1207
+ body?: "" | undefined;
1208
+ } | undefined;
753
1209
  executionScope?: "app" | undefined;
754
1210
  } | {
755
1211
  executionScope: "manager";
1212
+ response?: {
1213
+ statusCode: number;
1214
+ contentType: string;
1215
+ body?: string | undefined;
1216
+ } | {
1217
+ statusCode: 204 | 205;
1218
+ contentType: string;
1219
+ body?: "" | undefined;
1220
+ } | undefined;
756
1221
  };
757
1222
  systemVersion?: string | undefined;
758
1223
  }, {
@@ -761,9 +1226,27 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
761
1226
  targetId: string;
762
1227
  webhook: {
763
1228
  endpointToken: string;
1229
+ response?: {
1230
+ statusCode: number;
1231
+ contentType: string;
1232
+ body?: string | undefined;
1233
+ } | {
1234
+ statusCode: 204 | 205;
1235
+ contentType: string;
1236
+ body?: "" | undefined;
1237
+ } | undefined;
764
1238
  executionScope?: "app" | undefined;
765
1239
  } | {
766
1240
  executionScope: "manager";
1241
+ response?: {
1242
+ statusCode: number;
1243
+ contentType: string;
1244
+ body?: string | undefined;
1245
+ } | {
1246
+ statusCode: 204 | 205;
1247
+ contentType: string;
1248
+ body?: "" | undefined;
1249
+ } | undefined;
767
1250
  };
768
1251
  systemVersion?: string | undefined;
769
1252
  }>, z.ZodObject<{
@@ -996,9 +1479,27 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
996
1479
  targetId: string;
997
1480
  webhook: {
998
1481
  endpointToken: string;
1482
+ response?: {
1483
+ statusCode: number;
1484
+ contentType: string;
1485
+ body?: string | undefined;
1486
+ } | {
1487
+ statusCode: 204 | 205;
1488
+ contentType: string;
1489
+ body?: "" | undefined;
1490
+ } | undefined;
999
1491
  executionScope?: "app" | undefined;
1000
1492
  } | {
1001
1493
  executionScope: "manager";
1494
+ response?: {
1495
+ statusCode: number;
1496
+ contentType: string;
1497
+ body?: string | undefined;
1498
+ } | {
1499
+ statusCode: 204 | 205;
1500
+ contentType: string;
1501
+ body?: "" | undefined;
1502
+ } | undefined;
1002
1503
  };
1003
1504
  systemVersion?: string | undefined;
1004
1505
  } | {
@@ -1085,9 +1586,27 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
1085
1586
  targetId: string;
1086
1587
  webhook: {
1087
1588
  endpointToken: string;
1589
+ response?: {
1590
+ statusCode: number;
1591
+ contentType: string;
1592
+ body?: string | undefined;
1593
+ } | {
1594
+ statusCode: 204 | 205;
1595
+ contentType: string;
1596
+ body?: "" | undefined;
1597
+ } | undefined;
1088
1598
  executionScope?: "app" | undefined;
1089
1599
  } | {
1090
1600
  executionScope: "manager";
1601
+ response?: {
1602
+ statusCode: number;
1603
+ contentType: string;
1604
+ body?: string | undefined;
1605
+ } | {
1606
+ statusCode: 204 | 205;
1607
+ contentType: string;
1608
+ body?: "" | undefined;
1609
+ } | undefined;
1091
1610
  };
1092
1611
  systemVersion?: string | undefined;
1093
1612
  } | {
@@ -1176,9 +1695,27 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
1176
1695
  targetId: string;
1177
1696
  webhook: {
1178
1697
  endpointToken: string;
1698
+ response?: {
1699
+ statusCode: number;
1700
+ contentType: string;
1701
+ body?: string | undefined;
1702
+ } | {
1703
+ statusCode: 204 | 205;
1704
+ contentType: string;
1705
+ body?: "" | undefined;
1706
+ } | undefined;
1179
1707
  executionScope?: "app" | undefined;
1180
1708
  } | {
1181
1709
  executionScope: "manager";
1710
+ response?: {
1711
+ statusCode: number;
1712
+ contentType: string;
1713
+ body?: string | undefined;
1714
+ } | {
1715
+ statusCode: 204 | 205;
1716
+ contentType: string;
1717
+ body?: "" | undefined;
1718
+ } | undefined;
1182
1719
  };
1183
1720
  systemVersion?: string | undefined;
1184
1721
  } | {
@@ -1267,9 +1804,27 @@ export declare const GetHooksOutputSchema: z.ZodObject<{
1267
1804
  targetId: string;
1268
1805
  webhook: {
1269
1806
  endpointToken: string;
1807
+ response?: {
1808
+ statusCode: number;
1809
+ contentType: string;
1810
+ body?: string | undefined;
1811
+ } | {
1812
+ statusCode: 204 | 205;
1813
+ contentType: string;
1814
+ body?: "" | undefined;
1815
+ } | undefined;
1270
1816
  executionScope?: "app" | undefined;
1271
1817
  } | {
1272
1818
  executionScope: "manager";
1819
+ response?: {
1820
+ statusCode: number;
1821
+ contentType: string;
1822
+ body?: string | undefined;
1823
+ } | {
1824
+ statusCode: 204 | 205;
1825
+ contentType: string;
1826
+ body?: "" | undefined;
1827
+ } | undefined;
1273
1828
  };
1274
1829
  systemVersion?: string | undefined;
1275
1830
  } | {