@antasphere/chassis-contract 1.1.0 → 1.2.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.
@@ -3405,6 +3405,1001 @@ export declare const teamMemberRemoveRoute: {
3405
3405
  } & {
3406
3406
  getRoutingPath(): "/teams/:id/members/:userId";
3407
3407
  };
3408
+ export declare const webhooksListRoute: {
3409
+ method: "get";
3410
+ path: "/webhooks";
3411
+ tags: string[];
3412
+ summary: string;
3413
+ request: {
3414
+ query: z.ZodObject<{
3415
+ cursor: z.ZodOptional<z.ZodString>;
3416
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
3417
+ }, z.core.$strip>;
3418
+ };
3419
+ responses: {
3420
+ 200: {
3421
+ content: {
3422
+ 'application/json': {
3423
+ schema: z.ZodObject<{
3424
+ webhooks: z.ZodArray<z.ZodObject<{
3425
+ id: z.ZodString;
3426
+ url: z.ZodString;
3427
+ description: z.ZodString;
3428
+ events: z.ZodArray<z.ZodString>;
3429
+ filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3430
+ enabled: z.ZodBoolean;
3431
+ createdBy: z.ZodNullable<z.ZodString>;
3432
+ createdAt: z.ZodString;
3433
+ updatedAt: z.ZodString;
3434
+ disabledAt: z.ZodNullable<z.ZodString>;
3435
+ disabledReason: z.ZodNullable<z.ZodString>;
3436
+ consecutiveFailures: z.ZodNumber;
3437
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
3438
+ lastDeliveryStatus: z.ZodNullable<z.ZodEnum<{
3439
+ delivered: "delivered";
3440
+ failed: "failed";
3441
+ }>>;
3442
+ previousSecretExpiresAt: z.ZodNullable<z.ZodString>;
3443
+ }, z.core.$strip>>;
3444
+ nextCursor: z.ZodNullable<z.ZodString>;
3445
+ }, z.core.$strip>;
3446
+ };
3447
+ };
3448
+ description: string;
3449
+ };
3450
+ 400: {
3451
+ content: {
3452
+ 'application/json': {
3453
+ schema: z.ZodObject<{
3454
+ error: z.ZodObject<{
3455
+ code: z.ZodString;
3456
+ message: z.ZodString;
3457
+ details: z.ZodOptional<z.ZodUnknown>;
3458
+ }, z.core.$strip>;
3459
+ }, z.core.$strip>;
3460
+ };
3461
+ };
3462
+ description: string;
3463
+ };
3464
+ 401: {
3465
+ content: {
3466
+ 'application/json': {
3467
+ schema: z.ZodObject<{
3468
+ error: z.ZodObject<{
3469
+ code: z.ZodString;
3470
+ message: z.ZodString;
3471
+ details: z.ZodOptional<z.ZodUnknown>;
3472
+ }, z.core.$strip>;
3473
+ }, z.core.$strip>;
3474
+ };
3475
+ };
3476
+ description: string;
3477
+ };
3478
+ 403: {
3479
+ content: {
3480
+ 'application/json': {
3481
+ schema: z.ZodObject<{
3482
+ error: z.ZodObject<{
3483
+ code: z.ZodString;
3484
+ message: z.ZodString;
3485
+ details: z.ZodOptional<z.ZodUnknown>;
3486
+ }, z.core.$strip>;
3487
+ }, z.core.$strip>;
3488
+ };
3489
+ };
3490
+ description: string;
3491
+ };
3492
+ };
3493
+ } & {
3494
+ getRoutingPath(): "/webhooks";
3495
+ };
3496
+ export declare const webhookCatalogRoute: {
3497
+ method: "get";
3498
+ path: "/webhooks/events";
3499
+ tags: string[];
3500
+ summary: string;
3501
+ responses: {
3502
+ 200: {
3503
+ content: {
3504
+ 'application/json': {
3505
+ schema: z.ZodObject<{
3506
+ subjects: z.ZodArray<z.ZodObject<{
3507
+ key: z.ZodString;
3508
+ field: z.ZodString;
3509
+ description: z.ZodString;
3510
+ list: z.ZodBoolean;
3511
+ }, z.core.$strip>>;
3512
+ events: z.ZodArray<z.ZodObject<{
3513
+ type: z.ZodString;
3514
+ description: z.ZodString;
3515
+ subjects: z.ZodArray<z.ZodString>;
3516
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3517
+ }, z.core.$strip>>;
3518
+ }, z.core.$strip>;
3519
+ };
3520
+ };
3521
+ description: string;
3522
+ };
3523
+ 401: {
3524
+ content: {
3525
+ 'application/json': {
3526
+ schema: z.ZodObject<{
3527
+ error: z.ZodObject<{
3528
+ code: z.ZodString;
3529
+ message: z.ZodString;
3530
+ details: z.ZodOptional<z.ZodUnknown>;
3531
+ }, z.core.$strip>;
3532
+ }, z.core.$strip>;
3533
+ };
3534
+ };
3535
+ description: string;
3536
+ };
3537
+ 403: {
3538
+ content: {
3539
+ 'application/json': {
3540
+ schema: z.ZodObject<{
3541
+ error: z.ZodObject<{
3542
+ code: z.ZodString;
3543
+ message: z.ZodString;
3544
+ details: z.ZodOptional<z.ZodUnknown>;
3545
+ }, z.core.$strip>;
3546
+ }, z.core.$strip>;
3547
+ };
3548
+ };
3549
+ description: string;
3550
+ };
3551
+ };
3552
+ } & {
3553
+ getRoutingPath(): "/webhooks/events";
3554
+ };
3555
+ export declare const webhookCreateRoute: {
3556
+ method: "post";
3557
+ path: "/webhooks";
3558
+ tags: string[];
3559
+ summary: string;
3560
+ description: string;
3561
+ request: {
3562
+ body: {
3563
+ required: boolean;
3564
+ content: {
3565
+ 'application/json': {
3566
+ schema: z.ZodObject<{
3567
+ url: z.ZodString;
3568
+ description: z.ZodDefault<z.ZodString>;
3569
+ events: z.ZodArray<z.ZodString>;
3570
+ filters: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3571
+ enabled: z.ZodDefault<z.ZodBoolean>;
3572
+ }, z.core.$strip>;
3573
+ };
3574
+ };
3575
+ description: string;
3576
+ };
3577
+ };
3578
+ responses: {
3579
+ 403: {
3580
+ content: {
3581
+ 'application/json': {
3582
+ schema: z.ZodObject<{
3583
+ error: z.ZodObject<{
3584
+ code: z.ZodString;
3585
+ message: z.ZodString;
3586
+ details: z.ZodOptional<z.ZodUnknown>;
3587
+ }, z.core.$strip>;
3588
+ }, z.core.$strip>;
3589
+ };
3590
+ };
3591
+ description: string;
3592
+ };
3593
+ 401: {
3594
+ content: {
3595
+ 'application/json': {
3596
+ schema: z.ZodObject<{
3597
+ error: z.ZodObject<{
3598
+ code: z.ZodString;
3599
+ message: z.ZodString;
3600
+ details: z.ZodOptional<z.ZodUnknown>;
3601
+ }, z.core.$strip>;
3602
+ }, z.core.$strip>;
3603
+ };
3604
+ };
3605
+ description: string;
3606
+ };
3607
+ 404: {
3608
+ content: {
3609
+ 'application/json': {
3610
+ schema: z.ZodObject<{
3611
+ error: z.ZodObject<{
3612
+ code: z.ZodString;
3613
+ message: z.ZodString;
3614
+ details: z.ZodOptional<z.ZodUnknown>;
3615
+ }, z.core.$strip>;
3616
+ }, z.core.$strip>;
3617
+ };
3618
+ };
3619
+ description: string;
3620
+ };
3621
+ 201: {
3622
+ content: {
3623
+ 'application/json': {
3624
+ schema: z.ZodObject<{
3625
+ id: z.ZodString;
3626
+ url: z.ZodString;
3627
+ description: z.ZodString;
3628
+ events: z.ZodArray<z.ZodString>;
3629
+ filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3630
+ enabled: z.ZodBoolean;
3631
+ createdBy: z.ZodNullable<z.ZodString>;
3632
+ createdAt: z.ZodString;
3633
+ updatedAt: z.ZodString;
3634
+ disabledAt: z.ZodNullable<z.ZodString>;
3635
+ disabledReason: z.ZodNullable<z.ZodString>;
3636
+ consecutiveFailures: z.ZodNumber;
3637
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
3638
+ lastDeliveryStatus: z.ZodNullable<z.ZodEnum<{
3639
+ delivered: "delivered";
3640
+ failed: "failed";
3641
+ }>>;
3642
+ previousSecretExpiresAt: z.ZodNullable<z.ZodString>;
3643
+ secret: z.ZodString;
3644
+ }, z.core.$strip>;
3645
+ };
3646
+ };
3647
+ description: string;
3648
+ };
3649
+ 400: {
3650
+ content: {
3651
+ 'application/json': {
3652
+ schema: z.ZodObject<{
3653
+ error: z.ZodObject<{
3654
+ code: z.ZodString;
3655
+ message: z.ZodString;
3656
+ details: z.ZodOptional<z.ZodUnknown>;
3657
+ }, z.core.$strip>;
3658
+ }, z.core.$strip>;
3659
+ };
3660
+ };
3661
+ description: string;
3662
+ };
3663
+ };
3664
+ } & {
3665
+ getRoutingPath(): "/webhooks";
3666
+ };
3667
+ export declare const webhookGetRoute: {
3668
+ method: "get";
3669
+ path: "/webhooks/{id}";
3670
+ tags: string[];
3671
+ summary: string;
3672
+ request: {
3673
+ params: z.ZodObject<{
3674
+ id: z.ZodUUID;
3675
+ }, z.core.$strip>;
3676
+ };
3677
+ responses: {
3678
+ 401: {
3679
+ content: {
3680
+ 'application/json': {
3681
+ schema: z.ZodObject<{
3682
+ error: z.ZodObject<{
3683
+ code: z.ZodString;
3684
+ message: z.ZodString;
3685
+ details: z.ZodOptional<z.ZodUnknown>;
3686
+ }, z.core.$strip>;
3687
+ }, z.core.$strip>;
3688
+ };
3689
+ };
3690
+ description: string;
3691
+ };
3692
+ 403: {
3693
+ content: {
3694
+ 'application/json': {
3695
+ schema: z.ZodObject<{
3696
+ error: z.ZodObject<{
3697
+ code: z.ZodString;
3698
+ message: z.ZodString;
3699
+ details: z.ZodOptional<z.ZodUnknown>;
3700
+ }, z.core.$strip>;
3701
+ }, z.core.$strip>;
3702
+ };
3703
+ };
3704
+ description: string;
3705
+ };
3706
+ 404: {
3707
+ content: {
3708
+ 'application/json': {
3709
+ schema: z.ZodObject<{
3710
+ error: z.ZodObject<{
3711
+ code: z.ZodString;
3712
+ message: z.ZodString;
3713
+ details: z.ZodOptional<z.ZodUnknown>;
3714
+ }, z.core.$strip>;
3715
+ }, z.core.$strip>;
3716
+ };
3717
+ };
3718
+ description: string;
3719
+ };
3720
+ 200: {
3721
+ content: {
3722
+ 'application/json': {
3723
+ schema: z.ZodObject<{
3724
+ id: z.ZodString;
3725
+ url: z.ZodString;
3726
+ description: z.ZodString;
3727
+ events: z.ZodArray<z.ZodString>;
3728
+ filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3729
+ enabled: z.ZodBoolean;
3730
+ createdBy: z.ZodNullable<z.ZodString>;
3731
+ createdAt: z.ZodString;
3732
+ updatedAt: z.ZodString;
3733
+ disabledAt: z.ZodNullable<z.ZodString>;
3734
+ disabledReason: z.ZodNullable<z.ZodString>;
3735
+ consecutiveFailures: z.ZodNumber;
3736
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
3737
+ lastDeliveryStatus: z.ZodNullable<z.ZodEnum<{
3738
+ delivered: "delivered";
3739
+ failed: "failed";
3740
+ }>>;
3741
+ previousSecretExpiresAt: z.ZodNullable<z.ZodString>;
3742
+ }, z.core.$strip>;
3743
+ };
3744
+ };
3745
+ description: string;
3746
+ };
3747
+ };
3748
+ } & {
3749
+ getRoutingPath(): "/webhooks/:id";
3750
+ };
3751
+ export declare const webhookUpdateRoute: {
3752
+ method: "patch";
3753
+ path: "/webhooks/{id}";
3754
+ tags: string[];
3755
+ summary: string;
3756
+ description: string;
3757
+ request: {
3758
+ params: z.ZodObject<{
3759
+ id: z.ZodUUID;
3760
+ }, z.core.$strip>;
3761
+ body: {
3762
+ required: boolean;
3763
+ content: {
3764
+ 'application/json': {
3765
+ schema: z.ZodObject<{
3766
+ url: z.ZodOptional<z.ZodString>;
3767
+ description: z.ZodOptional<z.ZodString>;
3768
+ events: z.ZodOptional<z.ZodArray<z.ZodString>>;
3769
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
3770
+ enabled: z.ZodOptional<z.ZodBoolean>;
3771
+ }, z.core.$strip>;
3772
+ };
3773
+ };
3774
+ description: string;
3775
+ };
3776
+ };
3777
+ responses: {
3778
+ 401: {
3779
+ content: {
3780
+ 'application/json': {
3781
+ schema: z.ZodObject<{
3782
+ error: z.ZodObject<{
3783
+ code: z.ZodString;
3784
+ message: z.ZodString;
3785
+ details: z.ZodOptional<z.ZodUnknown>;
3786
+ }, z.core.$strip>;
3787
+ }, z.core.$strip>;
3788
+ };
3789
+ };
3790
+ description: string;
3791
+ };
3792
+ 403: {
3793
+ content: {
3794
+ 'application/json': {
3795
+ schema: z.ZodObject<{
3796
+ error: z.ZodObject<{
3797
+ code: z.ZodString;
3798
+ message: z.ZodString;
3799
+ details: z.ZodOptional<z.ZodUnknown>;
3800
+ }, z.core.$strip>;
3801
+ }, z.core.$strip>;
3802
+ };
3803
+ };
3804
+ description: string;
3805
+ };
3806
+ 404: {
3807
+ content: {
3808
+ 'application/json': {
3809
+ schema: z.ZodObject<{
3810
+ error: z.ZodObject<{
3811
+ code: z.ZodString;
3812
+ message: z.ZodString;
3813
+ details: z.ZodOptional<z.ZodUnknown>;
3814
+ }, z.core.$strip>;
3815
+ }, z.core.$strip>;
3816
+ };
3817
+ };
3818
+ description: string;
3819
+ };
3820
+ 200: {
3821
+ content: {
3822
+ 'application/json': {
3823
+ schema: z.ZodObject<{
3824
+ id: z.ZodString;
3825
+ url: z.ZodString;
3826
+ description: z.ZodString;
3827
+ events: z.ZodArray<z.ZodString>;
3828
+ filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3829
+ enabled: z.ZodBoolean;
3830
+ createdBy: z.ZodNullable<z.ZodString>;
3831
+ createdAt: z.ZodString;
3832
+ updatedAt: z.ZodString;
3833
+ disabledAt: z.ZodNullable<z.ZodString>;
3834
+ disabledReason: z.ZodNullable<z.ZodString>;
3835
+ consecutiveFailures: z.ZodNumber;
3836
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
3837
+ lastDeliveryStatus: z.ZodNullable<z.ZodEnum<{
3838
+ delivered: "delivered";
3839
+ failed: "failed";
3840
+ }>>;
3841
+ previousSecretExpiresAt: z.ZodNullable<z.ZodString>;
3842
+ }, z.core.$strip>;
3843
+ };
3844
+ };
3845
+ description: string;
3846
+ };
3847
+ 400: {
3848
+ content: {
3849
+ 'application/json': {
3850
+ schema: z.ZodObject<{
3851
+ error: z.ZodObject<{
3852
+ code: z.ZodString;
3853
+ message: z.ZodString;
3854
+ details: z.ZodOptional<z.ZodUnknown>;
3855
+ }, z.core.$strip>;
3856
+ }, z.core.$strip>;
3857
+ };
3858
+ };
3859
+ description: string;
3860
+ };
3861
+ };
3862
+ } & {
3863
+ getRoutingPath(): "/webhooks/:id";
3864
+ };
3865
+ export declare const webhookDeleteRoute: {
3866
+ method: "delete";
3867
+ path: "/webhooks/{id}";
3868
+ tags: string[];
3869
+ summary: string;
3870
+ request: {
3871
+ params: z.ZodObject<{
3872
+ id: z.ZodUUID;
3873
+ }, z.core.$strip>;
3874
+ };
3875
+ responses: {
3876
+ 401: {
3877
+ content: {
3878
+ 'application/json': {
3879
+ schema: z.ZodObject<{
3880
+ error: z.ZodObject<{
3881
+ code: z.ZodString;
3882
+ message: z.ZodString;
3883
+ details: z.ZodOptional<z.ZodUnknown>;
3884
+ }, z.core.$strip>;
3885
+ }, z.core.$strip>;
3886
+ };
3887
+ };
3888
+ description: string;
3889
+ };
3890
+ 403: {
3891
+ content: {
3892
+ 'application/json': {
3893
+ schema: z.ZodObject<{
3894
+ error: z.ZodObject<{
3895
+ code: z.ZodString;
3896
+ message: z.ZodString;
3897
+ details: z.ZodOptional<z.ZodUnknown>;
3898
+ }, z.core.$strip>;
3899
+ }, z.core.$strip>;
3900
+ };
3901
+ };
3902
+ description: string;
3903
+ };
3904
+ 404: {
3905
+ content: {
3906
+ 'application/json': {
3907
+ schema: z.ZodObject<{
3908
+ error: z.ZodObject<{
3909
+ code: z.ZodString;
3910
+ message: z.ZodString;
3911
+ details: z.ZodOptional<z.ZodUnknown>;
3912
+ }, z.core.$strip>;
3913
+ }, z.core.$strip>;
3914
+ };
3915
+ };
3916
+ description: string;
3917
+ };
3918
+ 200: {
3919
+ content: {
3920
+ 'application/json': {
3921
+ schema: z.ZodObject<{
3922
+ id: z.ZodString;
3923
+ url: z.ZodString;
3924
+ description: z.ZodString;
3925
+ events: z.ZodArray<z.ZodString>;
3926
+ filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
3927
+ enabled: z.ZodBoolean;
3928
+ createdBy: z.ZodNullable<z.ZodString>;
3929
+ createdAt: z.ZodString;
3930
+ updatedAt: z.ZodString;
3931
+ disabledAt: z.ZodNullable<z.ZodString>;
3932
+ disabledReason: z.ZodNullable<z.ZodString>;
3933
+ consecutiveFailures: z.ZodNumber;
3934
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
3935
+ lastDeliveryStatus: z.ZodNullable<z.ZodEnum<{
3936
+ delivered: "delivered";
3937
+ failed: "failed";
3938
+ }>>;
3939
+ previousSecretExpiresAt: z.ZodNullable<z.ZodString>;
3940
+ }, z.core.$strip>;
3941
+ };
3942
+ };
3943
+ description: string;
3944
+ };
3945
+ };
3946
+ } & {
3947
+ getRoutingPath(): "/webhooks/:id";
3948
+ };
3949
+ export declare const webhookRotateSecretRoute: {
3950
+ method: "post";
3951
+ path: "/webhooks/{id}/rotate-secret";
3952
+ tags: string[];
3953
+ summary: string;
3954
+ description: string;
3955
+ request: {
3956
+ params: z.ZodObject<{
3957
+ id: z.ZodUUID;
3958
+ }, z.core.$strip>;
3959
+ };
3960
+ responses: {
3961
+ 401: {
3962
+ content: {
3963
+ 'application/json': {
3964
+ schema: z.ZodObject<{
3965
+ error: z.ZodObject<{
3966
+ code: z.ZodString;
3967
+ message: z.ZodString;
3968
+ details: z.ZodOptional<z.ZodUnknown>;
3969
+ }, z.core.$strip>;
3970
+ }, z.core.$strip>;
3971
+ };
3972
+ };
3973
+ description: string;
3974
+ };
3975
+ 403: {
3976
+ content: {
3977
+ 'application/json': {
3978
+ schema: z.ZodObject<{
3979
+ error: z.ZodObject<{
3980
+ code: z.ZodString;
3981
+ message: z.ZodString;
3982
+ details: z.ZodOptional<z.ZodUnknown>;
3983
+ }, z.core.$strip>;
3984
+ }, z.core.$strip>;
3985
+ };
3986
+ };
3987
+ description: string;
3988
+ };
3989
+ 404: {
3990
+ content: {
3991
+ 'application/json': {
3992
+ schema: z.ZodObject<{
3993
+ error: z.ZodObject<{
3994
+ code: z.ZodString;
3995
+ message: z.ZodString;
3996
+ details: z.ZodOptional<z.ZodUnknown>;
3997
+ }, z.core.$strip>;
3998
+ }, z.core.$strip>;
3999
+ };
4000
+ };
4001
+ description: string;
4002
+ };
4003
+ 200: {
4004
+ content: {
4005
+ 'application/json': {
4006
+ schema: z.ZodObject<{
4007
+ id: z.ZodString;
4008
+ url: z.ZodString;
4009
+ description: z.ZodString;
4010
+ events: z.ZodArray<z.ZodString>;
4011
+ filters: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>;
4012
+ enabled: z.ZodBoolean;
4013
+ createdBy: z.ZodNullable<z.ZodString>;
4014
+ createdAt: z.ZodString;
4015
+ updatedAt: z.ZodString;
4016
+ disabledAt: z.ZodNullable<z.ZodString>;
4017
+ disabledReason: z.ZodNullable<z.ZodString>;
4018
+ consecutiveFailures: z.ZodNumber;
4019
+ lastDeliveryAt: z.ZodNullable<z.ZodString>;
4020
+ lastDeliveryStatus: z.ZodNullable<z.ZodEnum<{
4021
+ delivered: "delivered";
4022
+ failed: "failed";
4023
+ }>>;
4024
+ secret: z.ZodString;
4025
+ previousSecretExpiresAt: z.ZodString;
4026
+ }, z.core.$strip>;
4027
+ };
4028
+ };
4029
+ description: string;
4030
+ };
4031
+ };
4032
+ } & {
4033
+ getRoutingPath(): "/webhooks/:id/rotate-secret";
4034
+ };
4035
+ export declare const webhookTestRoute: {
4036
+ method: "post";
4037
+ path: "/webhooks/{id}/test";
4038
+ tags: string[];
4039
+ summary: string;
4040
+ request: {
4041
+ params: z.ZodObject<{
4042
+ id: z.ZodUUID;
4043
+ }, z.core.$strip>;
4044
+ };
4045
+ responses: {
4046
+ 401: {
4047
+ content: {
4048
+ 'application/json': {
4049
+ schema: z.ZodObject<{
4050
+ error: z.ZodObject<{
4051
+ code: z.ZodString;
4052
+ message: z.ZodString;
4053
+ details: z.ZodOptional<z.ZodUnknown>;
4054
+ }, z.core.$strip>;
4055
+ }, z.core.$strip>;
4056
+ };
4057
+ };
4058
+ description: string;
4059
+ };
4060
+ 403: {
4061
+ content: {
4062
+ 'application/json': {
4063
+ schema: z.ZodObject<{
4064
+ error: z.ZodObject<{
4065
+ code: z.ZodString;
4066
+ message: z.ZodString;
4067
+ details: z.ZodOptional<z.ZodUnknown>;
4068
+ }, z.core.$strip>;
4069
+ }, z.core.$strip>;
4070
+ };
4071
+ };
4072
+ description: string;
4073
+ };
4074
+ 404: {
4075
+ content: {
4076
+ 'application/json': {
4077
+ schema: z.ZodObject<{
4078
+ error: z.ZodObject<{
4079
+ code: z.ZodString;
4080
+ message: z.ZodString;
4081
+ details: z.ZodOptional<z.ZodUnknown>;
4082
+ }, z.core.$strip>;
4083
+ }, z.core.$strip>;
4084
+ };
4085
+ };
4086
+ description: string;
4087
+ };
4088
+ 200: {
4089
+ content: {
4090
+ 'application/json': {
4091
+ schema: z.ZodObject<{
4092
+ delivery: z.ZodObject<{
4093
+ id: z.ZodString;
4094
+ endpointId: z.ZodString;
4095
+ eventId: z.ZodString;
4096
+ eventType: z.ZodString;
4097
+ status: z.ZodEnum<{
4098
+ pending: "pending";
4099
+ delivered: "delivered";
4100
+ failed: "failed";
4101
+ held: "held";
4102
+ }>;
4103
+ attempt: z.ZodNumber;
4104
+ lastStatusCode: z.ZodNullable<z.ZodNumber>;
4105
+ lastError: z.ZodNullable<z.ZodString>;
4106
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
4107
+ deliveredAt: z.ZodNullable<z.ZodString>;
4108
+ createdAt: z.ZodString;
4109
+ updatedAt: z.ZodString;
4110
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4111
+ }, z.core.$strip>;
4112
+ }, z.core.$strip>;
4113
+ };
4114
+ };
4115
+ description: string;
4116
+ };
4117
+ };
4118
+ } & {
4119
+ getRoutingPath(): "/webhooks/:id/test";
4120
+ };
4121
+ export declare const webhookDeliveriesListRoute: {
4122
+ method: "get";
4123
+ path: "/webhooks/{id}/deliveries";
4124
+ tags: string[];
4125
+ summary: string;
4126
+ request: {
4127
+ params: z.ZodObject<{
4128
+ id: z.ZodUUID;
4129
+ }, z.core.$strip>;
4130
+ query: z.ZodObject<{
4131
+ cursor: z.ZodOptional<z.ZodString>;
4132
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
4133
+ status: z.ZodOptional<z.ZodEnum<{
4134
+ pending: "pending";
4135
+ delivered: "delivered";
4136
+ failed: "failed";
4137
+ held: "held";
4138
+ }>>;
4139
+ }, z.core.$strip>;
4140
+ };
4141
+ responses: {
4142
+ 401: {
4143
+ content: {
4144
+ 'application/json': {
4145
+ schema: z.ZodObject<{
4146
+ error: z.ZodObject<{
4147
+ code: z.ZodString;
4148
+ message: z.ZodString;
4149
+ details: z.ZodOptional<z.ZodUnknown>;
4150
+ }, z.core.$strip>;
4151
+ }, z.core.$strip>;
4152
+ };
4153
+ };
4154
+ description: string;
4155
+ };
4156
+ 403: {
4157
+ content: {
4158
+ 'application/json': {
4159
+ schema: z.ZodObject<{
4160
+ error: z.ZodObject<{
4161
+ code: z.ZodString;
4162
+ message: z.ZodString;
4163
+ details: z.ZodOptional<z.ZodUnknown>;
4164
+ }, z.core.$strip>;
4165
+ }, z.core.$strip>;
4166
+ };
4167
+ };
4168
+ description: string;
4169
+ };
4170
+ 404: {
4171
+ content: {
4172
+ 'application/json': {
4173
+ schema: z.ZodObject<{
4174
+ error: z.ZodObject<{
4175
+ code: z.ZodString;
4176
+ message: z.ZodString;
4177
+ details: z.ZodOptional<z.ZodUnknown>;
4178
+ }, z.core.$strip>;
4179
+ }, z.core.$strip>;
4180
+ };
4181
+ };
4182
+ description: string;
4183
+ };
4184
+ 200: {
4185
+ content: {
4186
+ 'application/json': {
4187
+ schema: z.ZodObject<{
4188
+ deliveries: z.ZodArray<z.ZodObject<{
4189
+ id: z.ZodString;
4190
+ endpointId: z.ZodString;
4191
+ eventId: z.ZodString;
4192
+ eventType: z.ZodString;
4193
+ status: z.ZodEnum<{
4194
+ pending: "pending";
4195
+ delivered: "delivered";
4196
+ failed: "failed";
4197
+ held: "held";
4198
+ }>;
4199
+ attempt: z.ZodNumber;
4200
+ lastStatusCode: z.ZodNullable<z.ZodNumber>;
4201
+ lastError: z.ZodNullable<z.ZodString>;
4202
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
4203
+ deliveredAt: z.ZodNullable<z.ZodString>;
4204
+ createdAt: z.ZodString;
4205
+ updatedAt: z.ZodString;
4206
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4207
+ }, z.core.$strip>>;
4208
+ nextCursor: z.ZodNullable<z.ZodString>;
4209
+ }, z.core.$strip>;
4210
+ };
4211
+ };
4212
+ description: string;
4213
+ };
4214
+ 400: {
4215
+ content: {
4216
+ 'application/json': {
4217
+ schema: z.ZodObject<{
4218
+ error: z.ZodObject<{
4219
+ code: z.ZodString;
4220
+ message: z.ZodString;
4221
+ details: z.ZodOptional<z.ZodUnknown>;
4222
+ }, z.core.$strip>;
4223
+ }, z.core.$strip>;
4224
+ };
4225
+ };
4226
+ description: string;
4227
+ };
4228
+ };
4229
+ } & {
4230
+ getRoutingPath(): "/webhooks/:id/deliveries";
4231
+ };
4232
+ export declare const webhookDeliveryGetRoute: {
4233
+ method: "get";
4234
+ path: "/webhooks/{id}/deliveries/{deliveryId}";
4235
+ tags: string[];
4236
+ summary: string;
4237
+ request: {
4238
+ params: z.ZodObject<{
4239
+ id: z.ZodUUID;
4240
+ deliveryId: z.ZodUUID;
4241
+ }, z.core.$strip>;
4242
+ };
4243
+ responses: {
4244
+ 401: {
4245
+ content: {
4246
+ 'application/json': {
4247
+ schema: z.ZodObject<{
4248
+ error: z.ZodObject<{
4249
+ code: z.ZodString;
4250
+ message: z.ZodString;
4251
+ details: z.ZodOptional<z.ZodUnknown>;
4252
+ }, z.core.$strip>;
4253
+ }, z.core.$strip>;
4254
+ };
4255
+ };
4256
+ description: string;
4257
+ };
4258
+ 403: {
4259
+ content: {
4260
+ 'application/json': {
4261
+ schema: z.ZodObject<{
4262
+ error: z.ZodObject<{
4263
+ code: z.ZodString;
4264
+ message: z.ZodString;
4265
+ details: z.ZodOptional<z.ZodUnknown>;
4266
+ }, z.core.$strip>;
4267
+ }, z.core.$strip>;
4268
+ };
4269
+ };
4270
+ description: string;
4271
+ };
4272
+ 404: {
4273
+ content: {
4274
+ 'application/json': {
4275
+ schema: z.ZodObject<{
4276
+ error: z.ZodObject<{
4277
+ code: z.ZodString;
4278
+ message: z.ZodString;
4279
+ details: z.ZodOptional<z.ZodUnknown>;
4280
+ }, z.core.$strip>;
4281
+ }, z.core.$strip>;
4282
+ };
4283
+ };
4284
+ description: string;
4285
+ };
4286
+ 200: {
4287
+ content: {
4288
+ 'application/json': {
4289
+ schema: z.ZodObject<{
4290
+ id: z.ZodString;
4291
+ endpointId: z.ZodString;
4292
+ eventId: z.ZodString;
4293
+ eventType: z.ZodString;
4294
+ status: z.ZodEnum<{
4295
+ pending: "pending";
4296
+ delivered: "delivered";
4297
+ failed: "failed";
4298
+ held: "held";
4299
+ }>;
4300
+ attempt: z.ZodNumber;
4301
+ lastStatusCode: z.ZodNullable<z.ZodNumber>;
4302
+ lastError: z.ZodNullable<z.ZodString>;
4303
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
4304
+ deliveredAt: z.ZodNullable<z.ZodString>;
4305
+ createdAt: z.ZodString;
4306
+ updatedAt: z.ZodString;
4307
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4308
+ }, z.core.$strip>;
4309
+ };
4310
+ };
4311
+ description: string;
4312
+ };
4313
+ };
4314
+ } & {
4315
+ getRoutingPath(): "/webhooks/:id/deliveries/:deliveryId";
4316
+ };
4317
+ export declare const webhookRedeliverRoute: {
4318
+ method: "post";
4319
+ path: "/webhooks/{id}/deliveries/{deliveryId}/redeliver";
4320
+ tags: string[];
4321
+ summary: string;
4322
+ description: string;
4323
+ request: {
4324
+ params: z.ZodObject<{
4325
+ id: z.ZodUUID;
4326
+ deliveryId: z.ZodUUID;
4327
+ }, z.core.$strip>;
4328
+ };
4329
+ responses: {
4330
+ 401: {
4331
+ content: {
4332
+ 'application/json': {
4333
+ schema: z.ZodObject<{
4334
+ error: z.ZodObject<{
4335
+ code: z.ZodString;
4336
+ message: z.ZodString;
4337
+ details: z.ZodOptional<z.ZodUnknown>;
4338
+ }, z.core.$strip>;
4339
+ }, z.core.$strip>;
4340
+ };
4341
+ };
4342
+ description: string;
4343
+ };
4344
+ 403: {
4345
+ content: {
4346
+ 'application/json': {
4347
+ schema: z.ZodObject<{
4348
+ error: z.ZodObject<{
4349
+ code: z.ZodString;
4350
+ message: z.ZodString;
4351
+ details: z.ZodOptional<z.ZodUnknown>;
4352
+ }, z.core.$strip>;
4353
+ }, z.core.$strip>;
4354
+ };
4355
+ };
4356
+ description: string;
4357
+ };
4358
+ 404: {
4359
+ content: {
4360
+ 'application/json': {
4361
+ schema: z.ZodObject<{
4362
+ error: z.ZodObject<{
4363
+ code: z.ZodString;
4364
+ message: z.ZodString;
4365
+ details: z.ZodOptional<z.ZodUnknown>;
4366
+ }, z.core.$strip>;
4367
+ }, z.core.$strip>;
4368
+ };
4369
+ };
4370
+ description: string;
4371
+ };
4372
+ 201: {
4373
+ content: {
4374
+ 'application/json': {
4375
+ schema: z.ZodObject<{
4376
+ id: z.ZodString;
4377
+ endpointId: z.ZodString;
4378
+ eventId: z.ZodString;
4379
+ eventType: z.ZodString;
4380
+ status: z.ZodEnum<{
4381
+ pending: "pending";
4382
+ delivered: "delivered";
4383
+ failed: "failed";
4384
+ held: "held";
4385
+ }>;
4386
+ attempt: z.ZodNumber;
4387
+ lastStatusCode: z.ZodNullable<z.ZodNumber>;
4388
+ lastError: z.ZodNullable<z.ZodString>;
4389
+ nextAttemptAt: z.ZodNullable<z.ZodString>;
4390
+ deliveredAt: z.ZodNullable<z.ZodString>;
4391
+ createdAt: z.ZodString;
4392
+ updatedAt: z.ZodString;
4393
+ payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4394
+ }, z.core.$strip>;
4395
+ };
4396
+ };
4397
+ description: string;
4398
+ };
4399
+ };
4400
+ } & {
4401
+ getRoutingPath(): "/webhooks/:id/deliveries/:deliveryId/redeliver";
4402
+ };
3408
4403
  export declare const demoPassesListRoute: {
3409
4404
  method: "get";
3410
4405
  path: "/demo/passes";