@repome/api 0.1.5 → 0.1.6

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/index.d.mts CHANGED
@@ -26,7 +26,13 @@ declare const commonErrors: {
26
26
  readonly FORBIDDEN: {
27
27
  readonly status: 403;
28
28
  readonly message: "You do not have access to this resource";
29
- readonly data: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
29
+ readonly data: z.ZodOptional<z.ZodObject<{
30
+ reason: z.ZodOptional<z.ZodEnum<{
31
+ not_a_member: "not_a_member";
32
+ insufficient_role: "insufficient_role";
33
+ scope_missing: "scope_missing";
34
+ }>>;
35
+ }, z.core.$strip>>;
30
36
  };
31
37
  readonly INVITATION_NOT_FOUND: {
32
38
  readonly status: 404;
@@ -840,7 +846,13 @@ declare const contract: {
840
846
  readonly FORBIDDEN: {
841
847
  readonly status: 403;
842
848
  readonly message: "You do not have access to this resource";
843
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
849
+ readonly data: z.ZodOptional<z.ZodObject<{
850
+ reason: z.ZodOptional<z.ZodEnum<{
851
+ not_a_member: "not_a_member";
852
+ insufficient_role: "insufficient_role";
853
+ scope_missing: "scope_missing";
854
+ }>>;
855
+ }, _$zod_v4_core0.$strip>>;
844
856
  };
845
857
  readonly INVITATION_NOT_FOUND: {
846
858
  readonly status: 404;
@@ -992,7 +1004,13 @@ declare const contract: {
992
1004
  readonly FORBIDDEN: {
993
1005
  readonly status: 403;
994
1006
  readonly message: "You do not have access to this resource";
995
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1007
+ readonly data: z.ZodOptional<z.ZodObject<{
1008
+ reason: z.ZodOptional<z.ZodEnum<{
1009
+ not_a_member: "not_a_member";
1010
+ insufficient_role: "insufficient_role";
1011
+ scope_missing: "scope_missing";
1012
+ }>>;
1013
+ }, _$zod_v4_core0.$strip>>;
996
1014
  };
997
1015
  readonly INVITATION_NOT_FOUND: {
998
1016
  readonly status: 404;
@@ -1148,7 +1166,13 @@ declare const contract: {
1148
1166
  readonly FORBIDDEN: {
1149
1167
  readonly status: 403;
1150
1168
  readonly message: "You do not have access to this resource";
1151
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1169
+ readonly data: z.ZodOptional<z.ZodObject<{
1170
+ reason: z.ZodOptional<z.ZodEnum<{
1171
+ not_a_member: "not_a_member";
1172
+ insufficient_role: "insufficient_role";
1173
+ scope_missing: "scope_missing";
1174
+ }>>;
1175
+ }, _$zod_v4_core0.$strip>>;
1152
1176
  };
1153
1177
  readonly INVITATION_NOT_FOUND: {
1154
1178
  readonly status: 404;
@@ -1286,7 +1310,13 @@ declare const contract: {
1286
1310
  readonly FORBIDDEN: {
1287
1311
  readonly status: 403;
1288
1312
  readonly message: "You do not have access to this resource";
1289
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1313
+ readonly data: z.ZodOptional<z.ZodObject<{
1314
+ reason: z.ZodOptional<z.ZodEnum<{
1315
+ not_a_member: "not_a_member";
1316
+ insufficient_role: "insufficient_role";
1317
+ scope_missing: "scope_missing";
1318
+ }>>;
1319
+ }, _$zod_v4_core0.$strip>>;
1290
1320
  };
1291
1321
  readonly INVITATION_NOT_FOUND: {
1292
1322
  readonly status: 404;
@@ -1443,7 +1473,13 @@ declare const contract: {
1443
1473
  readonly FORBIDDEN: {
1444
1474
  readonly status: 403;
1445
1475
  readonly message: "You do not have access to this resource";
1446
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1476
+ readonly data: z.ZodOptional<z.ZodObject<{
1477
+ reason: z.ZodOptional<z.ZodEnum<{
1478
+ not_a_member: "not_a_member";
1479
+ insufficient_role: "insufficient_role";
1480
+ scope_missing: "scope_missing";
1481
+ }>>;
1482
+ }, _$zod_v4_core0.$strip>>;
1447
1483
  };
1448
1484
  readonly INVITATION_NOT_FOUND: {
1449
1485
  readonly status: 404;
@@ -1596,7 +1632,13 @@ declare const contract: {
1596
1632
  readonly FORBIDDEN: {
1597
1633
  readonly status: 403;
1598
1634
  readonly message: "You do not have access to this resource";
1599
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1635
+ readonly data: z.ZodOptional<z.ZodObject<{
1636
+ reason: z.ZodOptional<z.ZodEnum<{
1637
+ not_a_member: "not_a_member";
1638
+ insufficient_role: "insufficient_role";
1639
+ scope_missing: "scope_missing";
1640
+ }>>;
1641
+ }, _$zod_v4_core0.$strip>>;
1600
1642
  };
1601
1643
  readonly INVITATION_NOT_FOUND: {
1602
1644
  readonly status: 404;
@@ -1741,7 +1783,13 @@ declare const contract: {
1741
1783
  readonly FORBIDDEN: {
1742
1784
  readonly status: 403;
1743
1785
  readonly message: "You do not have access to this resource";
1744
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1786
+ readonly data: z.ZodOptional<z.ZodObject<{
1787
+ reason: z.ZodOptional<z.ZodEnum<{
1788
+ not_a_member: "not_a_member";
1789
+ insufficient_role: "insufficient_role";
1790
+ scope_missing: "scope_missing";
1791
+ }>>;
1792
+ }, _$zod_v4_core0.$strip>>;
1745
1793
  };
1746
1794
  readonly INVITATION_NOT_FOUND: {
1747
1795
  readonly status: 404;
@@ -1892,7 +1940,13 @@ declare const contract: {
1892
1940
  readonly FORBIDDEN: {
1893
1941
  readonly status: 403;
1894
1942
  readonly message: "You do not have access to this resource";
1895
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
1943
+ readonly data: z.ZodOptional<z.ZodObject<{
1944
+ reason: z.ZodOptional<z.ZodEnum<{
1945
+ not_a_member: "not_a_member";
1946
+ insufficient_role: "insufficient_role";
1947
+ scope_missing: "scope_missing";
1948
+ }>>;
1949
+ }, _$zod_v4_core0.$strip>>;
1896
1950
  };
1897
1951
  readonly INVITATION_NOT_FOUND: {
1898
1952
  readonly status: 404;
@@ -2047,7 +2101,13 @@ declare const contract: {
2047
2101
  readonly FORBIDDEN: {
2048
2102
  readonly status: 403;
2049
2103
  readonly message: "You do not have access to this resource";
2050
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
2104
+ readonly data: z.ZodOptional<z.ZodObject<{
2105
+ reason: z.ZodOptional<z.ZodEnum<{
2106
+ not_a_member: "not_a_member";
2107
+ insufficient_role: "insufficient_role";
2108
+ scope_missing: "scope_missing";
2109
+ }>>;
2110
+ }, _$zod_v4_core0.$strip>>;
2051
2111
  };
2052
2112
  readonly INVITATION_NOT_FOUND: {
2053
2113
  readonly status: 404;
@@ -2195,7 +2255,13 @@ declare const contract: {
2195
2255
  readonly FORBIDDEN: {
2196
2256
  readonly status: 403;
2197
2257
  readonly message: "You do not have access to this resource";
2198
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
2258
+ readonly data: z.ZodOptional<z.ZodObject<{
2259
+ reason: z.ZodOptional<z.ZodEnum<{
2260
+ not_a_member: "not_a_member";
2261
+ insufficient_role: "insufficient_role";
2262
+ scope_missing: "scope_missing";
2263
+ }>>;
2264
+ }, _$zod_v4_core0.$strip>>;
2199
2265
  };
2200
2266
  readonly INVITATION_NOT_FOUND: {
2201
2267
  readonly status: 404;
@@ -2371,7 +2437,13 @@ declare const contract: {
2371
2437
  readonly FORBIDDEN: {
2372
2438
  readonly status: 403;
2373
2439
  readonly message: "You do not have access to this resource";
2374
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
2440
+ readonly data: z.ZodOptional<z.ZodObject<{
2441
+ reason: z.ZodOptional<z.ZodEnum<{
2442
+ not_a_member: "not_a_member";
2443
+ insufficient_role: "insufficient_role";
2444
+ scope_missing: "scope_missing";
2445
+ }>>;
2446
+ }, _$zod_v4_core0.$strip>>;
2375
2447
  };
2376
2448
  readonly INVITATION_NOT_FOUND: {
2377
2449
  readonly status: 404;
@@ -2512,7 +2584,13 @@ declare const contract: {
2512
2584
  readonly FORBIDDEN: {
2513
2585
  readonly status: 403;
2514
2586
  readonly message: "You do not have access to this resource";
2515
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
2587
+ readonly data: z.ZodOptional<z.ZodObject<{
2588
+ reason: z.ZodOptional<z.ZodEnum<{
2589
+ not_a_member: "not_a_member";
2590
+ insufficient_role: "insufficient_role";
2591
+ scope_missing: "scope_missing";
2592
+ }>>;
2593
+ }, _$zod_v4_core0.$strip>>;
2516
2594
  };
2517
2595
  readonly INVITATION_NOT_FOUND: {
2518
2596
  readonly status: 404;
@@ -2666,7 +2744,13 @@ declare const contract: {
2666
2744
  readonly FORBIDDEN: {
2667
2745
  readonly status: 403;
2668
2746
  readonly message: "You do not have access to this resource";
2669
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
2747
+ readonly data: z.ZodOptional<z.ZodObject<{
2748
+ reason: z.ZodOptional<z.ZodEnum<{
2749
+ not_a_member: "not_a_member";
2750
+ insufficient_role: "insufficient_role";
2751
+ scope_missing: "scope_missing";
2752
+ }>>;
2753
+ }, _$zod_v4_core0.$strip>>;
2670
2754
  };
2671
2755
  readonly INVITATION_NOT_FOUND: {
2672
2756
  readonly status: 404;
@@ -2812,7 +2896,13 @@ declare const contract: {
2812
2896
  readonly FORBIDDEN: {
2813
2897
  readonly status: 403;
2814
2898
  readonly message: "You do not have access to this resource";
2815
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
2899
+ readonly data: z.ZodOptional<z.ZodObject<{
2900
+ reason: z.ZodOptional<z.ZodEnum<{
2901
+ not_a_member: "not_a_member";
2902
+ insufficient_role: "insufficient_role";
2903
+ scope_missing: "scope_missing";
2904
+ }>>;
2905
+ }, _$zod_v4_core0.$strip>>;
2816
2906
  };
2817
2907
  readonly INVITATION_NOT_FOUND: {
2818
2908
  readonly status: 404;
@@ -2965,7 +3055,13 @@ declare const contract: {
2965
3055
  readonly FORBIDDEN: {
2966
3056
  readonly status: 403;
2967
3057
  readonly message: "You do not have access to this resource";
2968
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3058
+ readonly data: z.ZodOptional<z.ZodObject<{
3059
+ reason: z.ZodOptional<z.ZodEnum<{
3060
+ not_a_member: "not_a_member";
3061
+ insufficient_role: "insufficient_role";
3062
+ scope_missing: "scope_missing";
3063
+ }>>;
3064
+ }, _$zod_v4_core0.$strip>>;
2969
3065
  };
2970
3066
  readonly INVITATION_NOT_FOUND: {
2971
3067
  readonly status: 404;
@@ -3111,7 +3207,13 @@ declare const contract: {
3111
3207
  readonly FORBIDDEN: {
3112
3208
  readonly status: 403;
3113
3209
  readonly message: "You do not have access to this resource";
3114
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3210
+ readonly data: z.ZodOptional<z.ZodObject<{
3211
+ reason: z.ZodOptional<z.ZodEnum<{
3212
+ not_a_member: "not_a_member";
3213
+ insufficient_role: "insufficient_role";
3214
+ scope_missing: "scope_missing";
3215
+ }>>;
3216
+ }, _$zod_v4_core0.$strip>>;
3115
3217
  };
3116
3218
  readonly INVITATION_NOT_FOUND: {
3117
3219
  readonly status: 404;
@@ -3258,7 +3360,13 @@ declare const contract: {
3258
3360
  readonly FORBIDDEN: {
3259
3361
  readonly status: 403;
3260
3362
  readonly message: "You do not have access to this resource";
3261
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3363
+ readonly data: z.ZodOptional<z.ZodObject<{
3364
+ reason: z.ZodOptional<z.ZodEnum<{
3365
+ not_a_member: "not_a_member";
3366
+ insufficient_role: "insufficient_role";
3367
+ scope_missing: "scope_missing";
3368
+ }>>;
3369
+ }, _$zod_v4_core0.$strip>>;
3262
3370
  };
3263
3371
  readonly INVITATION_NOT_FOUND: {
3264
3372
  readonly status: 404;
@@ -3408,7 +3516,13 @@ declare const contract: {
3408
3516
  readonly FORBIDDEN: {
3409
3517
  readonly status: 403;
3410
3518
  readonly message: "You do not have access to this resource";
3411
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3519
+ readonly data: z.ZodOptional<z.ZodObject<{
3520
+ reason: z.ZodOptional<z.ZodEnum<{
3521
+ not_a_member: "not_a_member";
3522
+ insufficient_role: "insufficient_role";
3523
+ scope_missing: "scope_missing";
3524
+ }>>;
3525
+ }, _$zod_v4_core0.$strip>>;
3412
3526
  };
3413
3527
  readonly INVITATION_NOT_FOUND: {
3414
3528
  readonly status: 404;
@@ -3549,7 +3663,13 @@ declare const contract: {
3549
3663
  readonly FORBIDDEN: {
3550
3664
  readonly status: 403;
3551
3665
  readonly message: "You do not have access to this resource";
3552
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3666
+ readonly data: z.ZodOptional<z.ZodObject<{
3667
+ reason: z.ZodOptional<z.ZodEnum<{
3668
+ not_a_member: "not_a_member";
3669
+ insufficient_role: "insufficient_role";
3670
+ scope_missing: "scope_missing";
3671
+ }>>;
3672
+ }, _$zod_v4_core0.$strip>>;
3553
3673
  };
3554
3674
  readonly INVITATION_NOT_FOUND: {
3555
3675
  readonly status: 404;
@@ -3702,7 +3822,13 @@ declare const contract: {
3702
3822
  readonly FORBIDDEN: {
3703
3823
  readonly status: 403;
3704
3824
  readonly message: "You do not have access to this resource";
3705
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3825
+ readonly data: z.ZodOptional<z.ZodObject<{
3826
+ reason: z.ZodOptional<z.ZodEnum<{
3827
+ not_a_member: "not_a_member";
3828
+ insufficient_role: "insufficient_role";
3829
+ scope_missing: "scope_missing";
3830
+ }>>;
3831
+ }, _$zod_v4_core0.$strip>>;
3706
3832
  };
3707
3833
  readonly INVITATION_NOT_FOUND: {
3708
3834
  readonly status: 404;
@@ -3848,7 +3974,13 @@ declare const contract: {
3848
3974
  readonly FORBIDDEN: {
3849
3975
  readonly status: 403;
3850
3976
  readonly message: "You do not have access to this resource";
3851
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
3977
+ readonly data: z.ZodOptional<z.ZodObject<{
3978
+ reason: z.ZodOptional<z.ZodEnum<{
3979
+ not_a_member: "not_a_member";
3980
+ insufficient_role: "insufficient_role";
3981
+ scope_missing: "scope_missing";
3982
+ }>>;
3983
+ }, _$zod_v4_core0.$strip>>;
3852
3984
  };
3853
3985
  readonly INVITATION_NOT_FOUND: {
3854
3986
  readonly status: 404;
@@ -4002,7 +4134,13 @@ declare const contract: {
4002
4134
  readonly FORBIDDEN: {
4003
4135
  readonly status: 403;
4004
4136
  readonly message: "You do not have access to this resource";
4005
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
4137
+ readonly data: z.ZodOptional<z.ZodObject<{
4138
+ reason: z.ZodOptional<z.ZodEnum<{
4139
+ not_a_member: "not_a_member";
4140
+ insufficient_role: "insufficient_role";
4141
+ scope_missing: "scope_missing";
4142
+ }>>;
4143
+ }, _$zod_v4_core0.$strip>>;
4006
4144
  };
4007
4145
  readonly INVITATION_NOT_FOUND: {
4008
4146
  readonly status: 404;
@@ -4142,7 +4280,13 @@ declare const contract: {
4142
4280
  readonly FORBIDDEN: {
4143
4281
  readonly status: 403;
4144
4282
  readonly message: "You do not have access to this resource";
4145
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
4283
+ readonly data: z.ZodOptional<z.ZodObject<{
4284
+ reason: z.ZodOptional<z.ZodEnum<{
4285
+ not_a_member: "not_a_member";
4286
+ insufficient_role: "insufficient_role";
4287
+ scope_missing: "scope_missing";
4288
+ }>>;
4289
+ }, _$zod_v4_core0.$strip>>;
4146
4290
  };
4147
4291
  readonly INVITATION_NOT_FOUND: {
4148
4292
  readonly status: 404;
@@ -4294,7 +4438,13 @@ declare const contract: {
4294
4438
  readonly FORBIDDEN: {
4295
4439
  readonly status: 403;
4296
4440
  readonly message: "You do not have access to this resource";
4297
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
4441
+ readonly data: z.ZodOptional<z.ZodObject<{
4442
+ reason: z.ZodOptional<z.ZodEnum<{
4443
+ not_a_member: "not_a_member";
4444
+ insufficient_role: "insufficient_role";
4445
+ scope_missing: "scope_missing";
4446
+ }>>;
4447
+ }, _$zod_v4_core0.$strip>>;
4298
4448
  };
4299
4449
  readonly INVITATION_NOT_FOUND: {
4300
4450
  readonly status: 404;
@@ -4438,7 +4588,13 @@ declare const contract: {
4438
4588
  readonly FORBIDDEN: {
4439
4589
  readonly status: 403;
4440
4590
  readonly message: "You do not have access to this resource";
4441
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
4591
+ readonly data: z.ZodOptional<z.ZodObject<{
4592
+ reason: z.ZodOptional<z.ZodEnum<{
4593
+ not_a_member: "not_a_member";
4594
+ insufficient_role: "insufficient_role";
4595
+ scope_missing: "scope_missing";
4596
+ }>>;
4597
+ }, _$zod_v4_core0.$strip>>;
4442
4598
  };
4443
4599
  readonly INVITATION_NOT_FOUND: {
4444
4600
  readonly status: 404;
@@ -4609,7 +4765,13 @@ declare const contract: {
4609
4765
  readonly FORBIDDEN: {
4610
4766
  readonly status: 403;
4611
4767
  readonly message: "You do not have access to this resource";
4612
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
4768
+ readonly data: z.ZodOptional<z.ZodObject<{
4769
+ reason: z.ZodOptional<z.ZodEnum<{
4770
+ not_a_member: "not_a_member";
4771
+ insufficient_role: "insufficient_role";
4772
+ scope_missing: "scope_missing";
4773
+ }>>;
4774
+ }, _$zod_v4_core0.$strip>>;
4613
4775
  };
4614
4776
  readonly INVITATION_NOT_FOUND: {
4615
4777
  readonly status: 404;
@@ -4765,7 +4927,13 @@ declare const contract: {
4765
4927
  readonly FORBIDDEN: {
4766
4928
  readonly status: 403;
4767
4929
  readonly message: "You do not have access to this resource";
4768
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
4930
+ readonly data: z.ZodOptional<z.ZodObject<{
4931
+ reason: z.ZodOptional<z.ZodEnum<{
4932
+ not_a_member: "not_a_member";
4933
+ insufficient_role: "insufficient_role";
4934
+ scope_missing: "scope_missing";
4935
+ }>>;
4936
+ }, _$zod_v4_core0.$strip>>;
4769
4937
  };
4770
4938
  readonly INVITATION_NOT_FOUND: {
4771
4939
  readonly status: 404;
@@ -4914,7 +5082,13 @@ declare const contract: {
4914
5082
  readonly FORBIDDEN: {
4915
5083
  readonly status: 403;
4916
5084
  readonly message: "You do not have access to this resource";
4917
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
5085
+ readonly data: z.ZodOptional<z.ZodObject<{
5086
+ reason: z.ZodOptional<z.ZodEnum<{
5087
+ not_a_member: "not_a_member";
5088
+ insufficient_role: "insufficient_role";
5089
+ scope_missing: "scope_missing";
5090
+ }>>;
5091
+ }, _$zod_v4_core0.$strip>>;
4918
5092
  };
4919
5093
  readonly INVITATION_NOT_FOUND: {
4920
5094
  readonly status: 404;
@@ -5091,7 +5265,13 @@ declare const contract: {
5091
5265
  readonly FORBIDDEN: {
5092
5266
  readonly status: 403;
5093
5267
  readonly message: "You do not have access to this resource";
5094
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
5268
+ readonly data: z.ZodOptional<z.ZodObject<{
5269
+ reason: z.ZodOptional<z.ZodEnum<{
5270
+ not_a_member: "not_a_member";
5271
+ insufficient_role: "insufficient_role";
5272
+ scope_missing: "scope_missing";
5273
+ }>>;
5274
+ }, _$zod_v4_core0.$strip>>;
5095
5275
  };
5096
5276
  readonly INVITATION_NOT_FOUND: {
5097
5277
  readonly status: 404;
@@ -5258,7 +5438,13 @@ declare const contract: {
5258
5438
  readonly FORBIDDEN: {
5259
5439
  readonly status: 403;
5260
5440
  readonly message: "You do not have access to this resource";
5261
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
5441
+ readonly data: z.ZodOptional<z.ZodObject<{
5442
+ reason: z.ZodOptional<z.ZodEnum<{
5443
+ not_a_member: "not_a_member";
5444
+ insufficient_role: "insufficient_role";
5445
+ scope_missing: "scope_missing";
5446
+ }>>;
5447
+ }, _$zod_v4_core0.$strip>>;
5262
5448
  };
5263
5449
  readonly INVITATION_NOT_FOUND: {
5264
5450
  readonly status: 404;
@@ -5427,7 +5613,13 @@ declare const contract: {
5427
5613
  readonly FORBIDDEN: {
5428
5614
  readonly status: 403;
5429
5615
  readonly message: "You do not have access to this resource";
5430
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
5616
+ readonly data: z.ZodOptional<z.ZodObject<{
5617
+ reason: z.ZodOptional<z.ZodEnum<{
5618
+ not_a_member: "not_a_member";
5619
+ insufficient_role: "insufficient_role";
5620
+ scope_missing: "scope_missing";
5621
+ }>>;
5622
+ }, _$zod_v4_core0.$strip>>;
5431
5623
  };
5432
5624
  readonly INVITATION_NOT_FOUND: {
5433
5625
  readonly status: 404;
@@ -5605,7 +5797,13 @@ declare const contract: {
5605
5797
  readonly FORBIDDEN: {
5606
5798
  readonly status: 403;
5607
5799
  readonly message: "You do not have access to this resource";
5608
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
5800
+ readonly data: z.ZodOptional<z.ZodObject<{
5801
+ reason: z.ZodOptional<z.ZodEnum<{
5802
+ not_a_member: "not_a_member";
5803
+ insufficient_role: "insufficient_role";
5804
+ scope_missing: "scope_missing";
5805
+ }>>;
5806
+ }, _$zod_v4_core0.$strip>>;
5609
5807
  };
5610
5808
  readonly INVITATION_NOT_FOUND: {
5611
5809
  readonly status: 404;
@@ -5763,7 +5961,13 @@ declare const contract: {
5763
5961
  readonly FORBIDDEN: {
5764
5962
  readonly status: 403;
5765
5963
  readonly message: "You do not have access to this resource";
5766
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
5964
+ readonly data: z.ZodOptional<z.ZodObject<{
5965
+ reason: z.ZodOptional<z.ZodEnum<{
5966
+ not_a_member: "not_a_member";
5967
+ insufficient_role: "insufficient_role";
5968
+ scope_missing: "scope_missing";
5969
+ }>>;
5970
+ }, _$zod_v4_core0.$strip>>;
5767
5971
  };
5768
5972
  readonly INVITATION_NOT_FOUND: {
5769
5973
  readonly status: 404;
@@ -5901,7 +6105,13 @@ declare const contract: {
5901
6105
  readonly FORBIDDEN: {
5902
6106
  readonly status: 403;
5903
6107
  readonly message: "You do not have access to this resource";
5904
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
6108
+ readonly data: z.ZodOptional<z.ZodObject<{
6109
+ reason: z.ZodOptional<z.ZodEnum<{
6110
+ not_a_member: "not_a_member";
6111
+ insufficient_role: "insufficient_role";
6112
+ scope_missing: "scope_missing";
6113
+ }>>;
6114
+ }, _$zod_v4_core0.$strip>>;
5905
6115
  };
5906
6116
  readonly INVITATION_NOT_FOUND: {
5907
6117
  readonly status: 404;
@@ -6071,7 +6281,13 @@ declare const contract: {
6071
6281
  readonly FORBIDDEN: {
6072
6282
  readonly status: 403;
6073
6283
  readonly message: "You do not have access to this resource";
6074
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
6284
+ readonly data: z.ZodOptional<z.ZodObject<{
6285
+ reason: z.ZodOptional<z.ZodEnum<{
6286
+ not_a_member: "not_a_member";
6287
+ insufficient_role: "insufficient_role";
6288
+ scope_missing: "scope_missing";
6289
+ }>>;
6290
+ }, _$zod_v4_core0.$strip>>;
6075
6291
  };
6076
6292
  readonly INVITATION_NOT_FOUND: {
6077
6293
  readonly status: 404;
@@ -6217,7 +6433,13 @@ declare const contract: {
6217
6433
  readonly FORBIDDEN: {
6218
6434
  readonly status: 403;
6219
6435
  readonly message: "You do not have access to this resource";
6220
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
6436
+ readonly data: z.ZodOptional<z.ZodObject<{
6437
+ reason: z.ZodOptional<z.ZodEnum<{
6438
+ not_a_member: "not_a_member";
6439
+ insufficient_role: "insufficient_role";
6440
+ scope_missing: "scope_missing";
6441
+ }>>;
6442
+ }, _$zod_v4_core0.$strip>>;
6221
6443
  };
6222
6444
  readonly INVITATION_NOT_FOUND: {
6223
6445
  readonly status: 404;
@@ -6360,7 +6582,13 @@ declare const contract: {
6360
6582
  readonly FORBIDDEN: {
6361
6583
  readonly status: 403;
6362
6584
  readonly message: "You do not have access to this resource";
6363
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
6585
+ readonly data: z.ZodOptional<z.ZodObject<{
6586
+ reason: z.ZodOptional<z.ZodEnum<{
6587
+ not_a_member: "not_a_member";
6588
+ insufficient_role: "insufficient_role";
6589
+ scope_missing: "scope_missing";
6590
+ }>>;
6591
+ }, _$zod_v4_core0.$strip>>;
6364
6592
  };
6365
6593
  readonly INVITATION_NOT_FOUND: {
6366
6594
  readonly status: 404;
@@ -6503,7 +6731,13 @@ declare const contract: {
6503
6731
  readonly FORBIDDEN: {
6504
6732
  readonly status: 403;
6505
6733
  readonly message: "You do not have access to this resource";
6506
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
6734
+ readonly data: z.ZodOptional<z.ZodObject<{
6735
+ reason: z.ZodOptional<z.ZodEnum<{
6736
+ not_a_member: "not_a_member";
6737
+ insufficient_role: "insufficient_role";
6738
+ scope_missing: "scope_missing";
6739
+ }>>;
6740
+ }, _$zod_v4_core0.$strip>>;
6507
6741
  };
6508
6742
  readonly INVITATION_NOT_FOUND: {
6509
6743
  readonly status: 404;
@@ -6641,7 +6875,13 @@ declare const contract: {
6641
6875
  readonly FORBIDDEN: {
6642
6876
  readonly status: 403;
6643
6877
  readonly message: "You do not have access to this resource";
6644
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
6878
+ readonly data: z.ZodOptional<z.ZodObject<{
6879
+ reason: z.ZodOptional<z.ZodEnum<{
6880
+ not_a_member: "not_a_member";
6881
+ insufficient_role: "insufficient_role";
6882
+ scope_missing: "scope_missing";
6883
+ }>>;
6884
+ }, _$zod_v4_core0.$strip>>;
6645
6885
  };
6646
6886
  readonly INVITATION_NOT_FOUND: {
6647
6887
  readonly status: 404;
@@ -6793,7 +7033,13 @@ declare const contract: {
6793
7033
  readonly FORBIDDEN: {
6794
7034
  readonly status: 403;
6795
7035
  readonly message: "You do not have access to this resource";
6796
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7036
+ readonly data: z.ZodOptional<z.ZodObject<{
7037
+ reason: z.ZodOptional<z.ZodEnum<{
7038
+ not_a_member: "not_a_member";
7039
+ insufficient_role: "insufficient_role";
7040
+ scope_missing: "scope_missing";
7041
+ }>>;
7042
+ }, _$zod_v4_core0.$strip>>;
6797
7043
  };
6798
7044
  readonly INVITATION_NOT_FOUND: {
6799
7045
  readonly status: 404;
@@ -6945,7 +7191,13 @@ declare const contract: {
6945
7191
  readonly FORBIDDEN: {
6946
7192
  readonly status: 403;
6947
7193
  readonly message: "You do not have access to this resource";
6948
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7194
+ readonly data: z.ZodOptional<z.ZodObject<{
7195
+ reason: z.ZodOptional<z.ZodEnum<{
7196
+ not_a_member: "not_a_member";
7197
+ insufficient_role: "insufficient_role";
7198
+ scope_missing: "scope_missing";
7199
+ }>>;
7200
+ }, _$zod_v4_core0.$strip>>;
6949
7201
  };
6950
7202
  readonly INVITATION_NOT_FOUND: {
6951
7203
  readonly status: 404;
@@ -7084,7 +7336,13 @@ declare const contract: {
7084
7336
  readonly FORBIDDEN: {
7085
7337
  readonly status: 403;
7086
7338
  readonly message: "You do not have access to this resource";
7087
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7339
+ readonly data: z.ZodOptional<z.ZodObject<{
7340
+ reason: z.ZodOptional<z.ZodEnum<{
7341
+ not_a_member: "not_a_member";
7342
+ insufficient_role: "insufficient_role";
7343
+ scope_missing: "scope_missing";
7344
+ }>>;
7345
+ }, _$zod_v4_core0.$strip>>;
7088
7346
  };
7089
7347
  readonly INVITATION_NOT_FOUND: {
7090
7348
  readonly status: 404;
@@ -7237,7 +7495,13 @@ declare const contract: {
7237
7495
  readonly FORBIDDEN: {
7238
7496
  readonly status: 403;
7239
7497
  readonly message: "You do not have access to this resource";
7240
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7498
+ readonly data: z.ZodOptional<z.ZodObject<{
7499
+ reason: z.ZodOptional<z.ZodEnum<{
7500
+ not_a_member: "not_a_member";
7501
+ insufficient_role: "insufficient_role";
7502
+ scope_missing: "scope_missing";
7503
+ }>>;
7504
+ }, _$zod_v4_core0.$strip>>;
7241
7505
  };
7242
7506
  readonly INVITATION_NOT_FOUND: {
7243
7507
  readonly status: 404;
@@ -7375,7 +7639,13 @@ declare const contract: {
7375
7639
  readonly FORBIDDEN: {
7376
7640
  readonly status: 403;
7377
7641
  readonly message: "You do not have access to this resource";
7378
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7642
+ readonly data: z.ZodOptional<z.ZodObject<{
7643
+ reason: z.ZodOptional<z.ZodEnum<{
7644
+ not_a_member: "not_a_member";
7645
+ insufficient_role: "insufficient_role";
7646
+ scope_missing: "scope_missing";
7647
+ }>>;
7648
+ }, _$zod_v4_core0.$strip>>;
7379
7649
  };
7380
7650
  readonly INVITATION_NOT_FOUND: {
7381
7651
  readonly status: 404;
@@ -7513,7 +7783,13 @@ declare const contract: {
7513
7783
  readonly FORBIDDEN: {
7514
7784
  readonly status: 403;
7515
7785
  readonly message: "You do not have access to this resource";
7516
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7786
+ readonly data: z.ZodOptional<z.ZodObject<{
7787
+ reason: z.ZodOptional<z.ZodEnum<{
7788
+ not_a_member: "not_a_member";
7789
+ insufficient_role: "insufficient_role";
7790
+ scope_missing: "scope_missing";
7791
+ }>>;
7792
+ }, _$zod_v4_core0.$strip>>;
7517
7793
  };
7518
7794
  readonly INVITATION_NOT_FOUND: {
7519
7795
  readonly status: 404;
@@ -7670,7 +7946,13 @@ declare const contract: {
7670
7946
  readonly FORBIDDEN: {
7671
7947
  readonly status: 403;
7672
7948
  readonly message: "You do not have access to this resource";
7673
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
7949
+ readonly data: z.ZodOptional<z.ZodObject<{
7950
+ reason: z.ZodOptional<z.ZodEnum<{
7951
+ not_a_member: "not_a_member";
7952
+ insufficient_role: "insufficient_role";
7953
+ scope_missing: "scope_missing";
7954
+ }>>;
7955
+ }, _$zod_v4_core0.$strip>>;
7674
7956
  };
7675
7957
  readonly INVITATION_NOT_FOUND: {
7676
7958
  readonly status: 404;
@@ -7826,7 +8108,13 @@ declare const contract: {
7826
8108
  readonly FORBIDDEN: {
7827
8109
  readonly status: 403;
7828
8110
  readonly message: "You do not have access to this resource";
7829
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
8111
+ readonly data: z.ZodOptional<z.ZodObject<{
8112
+ reason: z.ZodOptional<z.ZodEnum<{
8113
+ not_a_member: "not_a_member";
8114
+ insufficient_role: "insufficient_role";
8115
+ scope_missing: "scope_missing";
8116
+ }>>;
8117
+ }, _$zod_v4_core0.$strip>>;
7830
8118
  };
7831
8119
  readonly INVITATION_NOT_FOUND: {
7832
8120
  readonly status: 404;
@@ -7982,7 +8270,13 @@ declare const contract: {
7982
8270
  readonly FORBIDDEN: {
7983
8271
  readonly status: 403;
7984
8272
  readonly message: "You do not have access to this resource";
7985
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
8273
+ readonly data: z.ZodOptional<z.ZodObject<{
8274
+ reason: z.ZodOptional<z.ZodEnum<{
8275
+ not_a_member: "not_a_member";
8276
+ insufficient_role: "insufficient_role";
8277
+ scope_missing: "scope_missing";
8278
+ }>>;
8279
+ }, _$zod_v4_core0.$strip>>;
7986
8280
  };
7987
8281
  readonly INVITATION_NOT_FOUND: {
7988
8282
  readonly status: 404;
@@ -8133,7 +8427,13 @@ declare const contract: {
8133
8427
  readonly FORBIDDEN: {
8134
8428
  readonly status: 403;
8135
8429
  readonly message: "You do not have access to this resource";
8136
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
8430
+ readonly data: z.ZodOptional<z.ZodObject<{
8431
+ reason: z.ZodOptional<z.ZodEnum<{
8432
+ not_a_member: "not_a_member";
8433
+ insufficient_role: "insufficient_role";
8434
+ scope_missing: "scope_missing";
8435
+ }>>;
8436
+ }, _$zod_v4_core0.$strip>>;
8137
8437
  };
8138
8438
  readonly INVITATION_NOT_FOUND: {
8139
8439
  readonly status: 404;
@@ -8288,7 +8588,13 @@ declare const contract: {
8288
8588
  readonly FORBIDDEN: {
8289
8589
  readonly status: 403;
8290
8590
  readonly message: "You do not have access to this resource";
8291
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
8591
+ readonly data: z.ZodOptional<z.ZodObject<{
8592
+ reason: z.ZodOptional<z.ZodEnum<{
8593
+ not_a_member: "not_a_member";
8594
+ insufficient_role: "insufficient_role";
8595
+ scope_missing: "scope_missing";
8596
+ }>>;
8597
+ }, _$zod_v4_core0.$strip>>;
8292
8598
  };
8293
8599
  readonly INVITATION_NOT_FOUND: {
8294
8600
  readonly status: 404;
@@ -8441,7 +8747,13 @@ declare const contract: {
8441
8747
  readonly FORBIDDEN: {
8442
8748
  readonly status: 403;
8443
8749
  readonly message: "You do not have access to this resource";
8444
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
8750
+ readonly data: z.ZodOptional<z.ZodObject<{
8751
+ reason: z.ZodOptional<z.ZodEnum<{
8752
+ not_a_member: "not_a_member";
8753
+ insufficient_role: "insufficient_role";
8754
+ scope_missing: "scope_missing";
8755
+ }>>;
8756
+ }, _$zod_v4_core0.$strip>>;
8445
8757
  };
8446
8758
  readonly INVITATION_NOT_FOUND: {
8447
8759
  readonly status: 404;
@@ -8580,7 +8892,13 @@ declare const contract: {
8580
8892
  readonly FORBIDDEN: {
8581
8893
  readonly status: 403;
8582
8894
  readonly message: "You do not have access to this resource";
8583
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
8895
+ readonly data: z.ZodOptional<z.ZodObject<{
8896
+ reason: z.ZodOptional<z.ZodEnum<{
8897
+ not_a_member: "not_a_member";
8898
+ insufficient_role: "insufficient_role";
8899
+ scope_missing: "scope_missing";
8900
+ }>>;
8901
+ }, _$zod_v4_core0.$strip>>;
8584
8902
  };
8585
8903
  readonly INVITATION_NOT_FOUND: {
8586
8904
  readonly status: 404;
@@ -8740,7 +9058,13 @@ declare const contract: {
8740
9058
  readonly FORBIDDEN: {
8741
9059
  readonly status: 403;
8742
9060
  readonly message: "You do not have access to this resource";
8743
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
9061
+ readonly data: z.ZodOptional<z.ZodObject<{
9062
+ reason: z.ZodOptional<z.ZodEnum<{
9063
+ not_a_member: "not_a_member";
9064
+ insufficient_role: "insufficient_role";
9065
+ scope_missing: "scope_missing";
9066
+ }>>;
9067
+ }, _$zod_v4_core0.$strip>>;
8744
9068
  };
8745
9069
  readonly INVITATION_NOT_FOUND: {
8746
9070
  readonly status: 404;
@@ -8895,7 +9219,13 @@ declare const contract: {
8895
9219
  readonly FORBIDDEN: {
8896
9220
  readonly status: 403;
8897
9221
  readonly message: "You do not have access to this resource";
8898
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
9222
+ readonly data: z.ZodOptional<z.ZodObject<{
9223
+ reason: z.ZodOptional<z.ZodEnum<{
9224
+ not_a_member: "not_a_member";
9225
+ insufficient_role: "insufficient_role";
9226
+ scope_missing: "scope_missing";
9227
+ }>>;
9228
+ }, _$zod_v4_core0.$strip>>;
8899
9229
  };
8900
9230
  readonly INVITATION_NOT_FOUND: {
8901
9231
  readonly status: 404;
@@ -9048,7 +9378,13 @@ declare const contract: {
9048
9378
  readonly FORBIDDEN: {
9049
9379
  readonly status: 403;
9050
9380
  readonly message: "You do not have access to this resource";
9051
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
9381
+ readonly data: z.ZodOptional<z.ZodObject<{
9382
+ reason: z.ZodOptional<z.ZodEnum<{
9383
+ not_a_member: "not_a_member";
9384
+ insufficient_role: "insufficient_role";
9385
+ scope_missing: "scope_missing";
9386
+ }>>;
9387
+ }, _$zod_v4_core0.$strip>>;
9052
9388
  };
9053
9389
  readonly INVITATION_NOT_FOUND: {
9054
9390
  readonly status: 404;
@@ -9188,7 +9524,13 @@ declare const contract: {
9188
9524
  readonly FORBIDDEN: {
9189
9525
  readonly status: 403;
9190
9526
  readonly message: "You do not have access to this resource";
9191
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
9527
+ readonly data: z.ZodOptional<z.ZodObject<{
9528
+ reason: z.ZodOptional<z.ZodEnum<{
9529
+ not_a_member: "not_a_member";
9530
+ insufficient_role: "insufficient_role";
9531
+ scope_missing: "scope_missing";
9532
+ }>>;
9533
+ }, _$zod_v4_core0.$strip>>;
9192
9534
  };
9193
9535
  readonly INVITATION_NOT_FOUND: {
9194
9536
  readonly status: 404;
@@ -9336,7 +9678,13 @@ declare const contract: {
9336
9678
  readonly FORBIDDEN: {
9337
9679
  readonly status: 403;
9338
9680
  readonly message: "You do not have access to this resource";
9339
- readonly data: z.ZodOptional<z.ZodObject<{}, _$zod_v4_core0.$strip>>;
9681
+ readonly data: z.ZodOptional<z.ZodObject<{
9682
+ reason: z.ZodOptional<z.ZodEnum<{
9683
+ not_a_member: "not_a_member";
9684
+ insufficient_role: "insufficient_role";
9685
+ scope_missing: "scope_missing";
9686
+ }>>;
9687
+ }, _$zod_v4_core0.$strip>>;
9340
9688
  };
9341
9689
  readonly INVITATION_NOT_FOUND: {
9342
9690
  readonly status: 404;
package/dist/index.mjs CHANGED
@@ -15,7 +15,11 @@ const commonErrors = {
15
15
  FORBIDDEN: {
16
16
  status: 403,
17
17
  message: "You do not have access to this resource",
18
- data: z.object({}).optional()
18
+ data: z.object({ reason: z.enum([
19
+ "not_a_member",
20
+ "insufficient_role",
21
+ "scope_missing"
22
+ ]).optional() }).optional()
19
23
  },
20
24
  INVITATION_NOT_FOUND: {
21
25
  status: 404,
package/package.json CHANGED
@@ -1,10 +1,29 @@
1
1
  {
2
2
  "name": "@repome/api",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
+ "description": "Agent-native, GitHub-shaped forge — shared oRPC contract (zod schemas + procedure shapes).",
5
+ "keywords": [
6
+ "agent",
7
+ "cloudflare",
8
+ "git",
9
+ "orpc",
10
+ "repome"
11
+ ],
12
+ "homepage": "https://repome.sh",
13
+ "bugs": {
14
+ "url": "https://github.com/grovemotorco/repome/issues"
15
+ },
16
+ "license": "MIT",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.com/grovemotorco/repome.git",
20
+ "directory": "packages/api"
21
+ },
4
22
  "files": [
5
23
  "dist"
6
24
  ],
7
25
  "type": "module",
26
+ "sideEffects": false,
8
27
  "exports": {
9
28
  ".": {
10
29
  "types": "./dist/index.d.mts",
@@ -24,6 +43,9 @@
24
43
  "@typescript/native-preview": "7.0.0-dev.20260507.1",
25
44
  "vite-plus": "^0.1.20"
26
45
  },
46
+ "engines": {
47
+ "node": ">=24"
48
+ },
27
49
  "scripts": {
28
50
  "build": "vp pack",
29
51
  "dev": "vp pack --watch",