@camox/api-contract 0.14.1 → 0.15.1
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.ts +154 -48
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3304,6 +3304,16 @@ export type BaseContext = {
|
|
|
3304
3304
|
environmentName: string;
|
|
3305
3305
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3306
3306
|
};
|
|
3307
|
+
export type ToolError = {
|
|
3308
|
+
code: string;
|
|
3309
|
+
message: string;
|
|
3310
|
+
details?: unknown;
|
|
3311
|
+
};
|
|
3312
|
+
export type JsonSchemaTool = {
|
|
3313
|
+
name: string;
|
|
3314
|
+
description: string;
|
|
3315
|
+
inputSchema: Record<string, unknown>;
|
|
3316
|
+
};
|
|
3307
3317
|
declare const router: {
|
|
3308
3318
|
projects: {
|
|
3309
3319
|
list: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
@@ -3328,9 +3338,9 @@ declare const router: {
|
|
|
3328
3338
|
activeOrganizationId?: string | null | undefined;
|
|
3329
3339
|
activeTeamId?: string | null | undefined;
|
|
3330
3340
|
};
|
|
3331
|
-
db: Database;
|
|
3332
3341
|
env: Bindings;
|
|
3333
3342
|
headers: Headers;
|
|
3343
|
+
db: Database;
|
|
3334
3344
|
environmentName: string;
|
|
3335
3345
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3336
3346
|
}>, import("zod").ZodObject<{
|
|
@@ -3374,9 +3384,9 @@ declare const router: {
|
|
|
3374
3384
|
activeOrganizationId?: string | null | undefined;
|
|
3375
3385
|
activeTeamId?: string | null | undefined;
|
|
3376
3386
|
};
|
|
3377
|
-
db: Database;
|
|
3378
3387
|
env: Bindings;
|
|
3379
3388
|
headers: Headers;
|
|
3389
|
+
db: Database;
|
|
3380
3390
|
environmentName: string;
|
|
3381
3391
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3382
3392
|
}>, import("zod").ZodObject<{
|
|
@@ -3420,9 +3430,9 @@ declare const router: {
|
|
|
3420
3430
|
activeOrganizationId?: string | null | undefined;
|
|
3421
3431
|
activeTeamId?: string | null | undefined;
|
|
3422
3432
|
};
|
|
3423
|
-
db: Database;
|
|
3424
3433
|
env: Bindings;
|
|
3425
3434
|
headers: Headers;
|
|
3435
|
+
db: Database;
|
|
3426
3436
|
environmentName: string;
|
|
3427
3437
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3428
3438
|
}>, import("zod").ZodObject<{
|
|
@@ -3468,9 +3478,9 @@ declare const router: {
|
|
|
3468
3478
|
activeOrganizationId?: string | null | undefined;
|
|
3469
3479
|
activeTeamId?: string | null | undefined;
|
|
3470
3480
|
};
|
|
3471
|
-
db: Database;
|
|
3472
3481
|
env: Bindings;
|
|
3473
3482
|
headers: Headers;
|
|
3483
|
+
db: Database;
|
|
3474
3484
|
environmentName: string;
|
|
3475
3485
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3476
3486
|
}>, import("zod").ZodObject<{
|
|
@@ -3516,9 +3526,9 @@ declare const router: {
|
|
|
3516
3526
|
activeOrganizationId?: string | null | undefined;
|
|
3517
3527
|
activeTeamId?: string | null | undefined;
|
|
3518
3528
|
};
|
|
3519
|
-
db: Database;
|
|
3520
3529
|
env: Bindings;
|
|
3521
3530
|
headers: Headers;
|
|
3531
|
+
db: Database;
|
|
3522
3532
|
environmentName: string;
|
|
3523
3533
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3524
3534
|
}>, import("zod").ZodObject<{
|
|
@@ -3550,9 +3560,9 @@ declare const router: {
|
|
|
3550
3560
|
activeOrganizationId?: string | null | undefined;
|
|
3551
3561
|
activeTeamId?: string | null | undefined;
|
|
3552
3562
|
};
|
|
3553
|
-
db: Database;
|
|
3554
3563
|
env: Bindings;
|
|
3555
3564
|
headers: Headers;
|
|
3565
|
+
db: Database;
|
|
3556
3566
|
environmentName: string;
|
|
3557
3567
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3558
3568
|
}>, import("zod").ZodObject<{
|
|
@@ -3598,14 +3608,14 @@ declare const router: {
|
|
|
3598
3608
|
activeOrganizationId?: string | null | undefined;
|
|
3599
3609
|
activeTeamId?: string | null | undefined;
|
|
3600
3610
|
};
|
|
3601
|
-
db: Database;
|
|
3602
3611
|
env: Bindings;
|
|
3603
3612
|
headers: Headers;
|
|
3613
|
+
db: Database;
|
|
3604
3614
|
environmentName: string;
|
|
3605
3615
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3606
3616
|
}>, import("zod").ZodObject<{
|
|
3607
|
-
name: import("zod").ZodString;
|
|
3608
3617
|
id: import("zod").ZodNumber;
|
|
3618
|
+
name: import("zod").ZodString;
|
|
3609
3619
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
3610
3620
|
id: number;
|
|
3611
3621
|
name: string;
|
|
@@ -3645,9 +3655,9 @@ declare const router: {
|
|
|
3645
3655
|
activeOrganizationId?: string | null | undefined;
|
|
3646
3656
|
activeTeamId?: string | null | undefined;
|
|
3647
3657
|
};
|
|
3648
|
-
db: Database;
|
|
3649
3658
|
env: Bindings;
|
|
3650
3659
|
headers: Headers;
|
|
3660
|
+
db: Database;
|
|
3651
3661
|
environmentName: string;
|
|
3652
3662
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3653
3663
|
}>, import("zod").ZodObject<{
|
|
@@ -3705,8 +3715,8 @@ declare const router: {
|
|
|
3705
3715
|
};
|
|
3706
3716
|
pages: {
|
|
3707
3717
|
getByPath: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("zod").ZodObject<{
|
|
3708
|
-
path: import("zod").ZodString;
|
|
3709
3718
|
projectSlug: import("zod").ZodString;
|
|
3719
|
+
path: import("zod").ZodString;
|
|
3710
3720
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
3711
3721
|
page: {
|
|
3712
3722
|
blockIds: number[];
|
|
@@ -3811,8 +3821,8 @@ declare const router: {
|
|
|
3811
3821
|
files: any[];
|
|
3812
3822
|
}>, Record<never, never>, Record<never, never>>;
|
|
3813
3823
|
getStructure: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("zod").ZodObject<{
|
|
3814
|
-
path: import("zod").ZodString;
|
|
3815
3824
|
projectSlug: import("zod").ZodString;
|
|
3825
|
+
path: import("zod").ZodString;
|
|
3816
3826
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
3817
3827
|
page: {
|
|
3818
3828
|
blockIds: number[];
|
|
@@ -3918,9 +3928,15 @@ declare const router: {
|
|
|
3918
3928
|
createdAt: number;
|
|
3919
3929
|
updatedAt: number;
|
|
3920
3930
|
}[]>, Record<never, never>, Record<never, never>>;
|
|
3921
|
-
get: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("zod").
|
|
3922
|
-
|
|
3923
|
-
|
|
3931
|
+
get: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("zod").ZodUnion<readonly [
|
|
3932
|
+
import("zod").ZodObject<{
|
|
3933
|
+
id: import("zod").ZodNumber;
|
|
3934
|
+
}, import("better-auth").$strip>,
|
|
3935
|
+
import("zod").ZodObject<{
|
|
3936
|
+
projectId: import("zod").ZodNumber;
|
|
3937
|
+
path: import("zod").ZodString;
|
|
3938
|
+
}, import("better-auth").$strip>
|
|
3939
|
+
]>, import("@orpc/server").Schema<{
|
|
3924
3940
|
id: number;
|
|
3925
3941
|
projectId: number;
|
|
3926
3942
|
environmentId: number;
|
|
@@ -3969,9 +3985,9 @@ declare const router: {
|
|
|
3969
3985
|
activeOrganizationId?: string | null | undefined;
|
|
3970
3986
|
activeTeamId?: string | null | undefined;
|
|
3971
3987
|
};
|
|
3972
|
-
db: Database;
|
|
3973
3988
|
env: Bindings;
|
|
3974
3989
|
headers: Headers;
|
|
3990
|
+
db: Database;
|
|
3975
3991
|
environmentName: string;
|
|
3976
3992
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
3977
3993
|
}>, import("zod").ZodObject<{
|
|
@@ -4035,15 +4051,15 @@ declare const router: {
|
|
|
4035
4051
|
activeOrganizationId?: string | null | undefined;
|
|
4036
4052
|
activeTeamId?: string | null | undefined;
|
|
4037
4053
|
};
|
|
4038
|
-
db: Database;
|
|
4039
4054
|
env: Bindings;
|
|
4040
4055
|
headers: Headers;
|
|
4056
|
+
db: Database;
|
|
4041
4057
|
environmentName: string;
|
|
4042
4058
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4043
4059
|
}>, import("zod").ZodObject<{
|
|
4044
|
-
pathSegment: import("zod").ZodString;
|
|
4045
|
-
parentPageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
4046
4060
|
id: import("zod").ZodNumber;
|
|
4061
|
+
pathSegment: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4062
|
+
parentPageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
4047
4063
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
4048
4064
|
id: number;
|
|
4049
4065
|
createdAt: number;
|
|
@@ -4093,9 +4109,9 @@ declare const router: {
|
|
|
4093
4109
|
activeOrganizationId?: string | null | undefined;
|
|
4094
4110
|
activeTeamId?: string | null | undefined;
|
|
4095
4111
|
};
|
|
4096
|
-
db: Database;
|
|
4097
4112
|
env: Bindings;
|
|
4098
4113
|
headers: Headers;
|
|
4114
|
+
db: Database;
|
|
4099
4115
|
environmentName: string;
|
|
4100
4116
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4101
4117
|
}>, import("zod").ZodObject<{
|
|
@@ -4149,9 +4165,9 @@ declare const router: {
|
|
|
4149
4165
|
activeOrganizationId?: string | null | undefined;
|
|
4150
4166
|
activeTeamId?: string | null | undefined;
|
|
4151
4167
|
};
|
|
4152
|
-
db: Database;
|
|
4153
4168
|
env: Bindings;
|
|
4154
4169
|
headers: Headers;
|
|
4170
|
+
db: Database;
|
|
4155
4171
|
environmentName: string;
|
|
4156
4172
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4157
4173
|
}>, import("zod").ZodObject<{
|
|
@@ -4206,9 +4222,9 @@ declare const router: {
|
|
|
4206
4222
|
activeOrganizationId?: string | null | undefined;
|
|
4207
4223
|
activeTeamId?: string | null | undefined;
|
|
4208
4224
|
};
|
|
4209
|
-
db: Database;
|
|
4210
4225
|
env: Bindings;
|
|
4211
4226
|
headers: Headers;
|
|
4227
|
+
db: Database;
|
|
4212
4228
|
environmentName: string;
|
|
4213
4229
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4214
4230
|
}>, import("zod").ZodObject<{
|
|
@@ -4263,9 +4279,9 @@ declare const router: {
|
|
|
4263
4279
|
activeOrganizationId?: string | null | undefined;
|
|
4264
4280
|
activeTeamId?: string | null | undefined;
|
|
4265
4281
|
};
|
|
4266
|
-
db: Database;
|
|
4267
4282
|
env: Bindings;
|
|
4268
4283
|
headers: Headers;
|
|
4284
|
+
db: Database;
|
|
4269
4285
|
environmentName: string;
|
|
4270
4286
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4271
4287
|
}>, import("zod").ZodObject<{
|
|
@@ -4320,9 +4336,9 @@ declare const router: {
|
|
|
4320
4336
|
activeOrganizationId?: string | null | undefined;
|
|
4321
4337
|
activeTeamId?: string | null | undefined;
|
|
4322
4338
|
};
|
|
4323
|
-
db: Database;
|
|
4324
4339
|
env: Bindings;
|
|
4325
4340
|
headers: Headers;
|
|
4341
|
+
db: Database;
|
|
4326
4342
|
environmentName: string;
|
|
4327
4343
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4328
4344
|
}>, import("zod").ZodObject<{
|
|
@@ -4377,9 +4393,9 @@ declare const router: {
|
|
|
4377
4393
|
activeOrganizationId?: string | null | undefined;
|
|
4378
4394
|
activeTeamId?: string | null | undefined;
|
|
4379
4395
|
};
|
|
4380
|
-
db: Database;
|
|
4381
4396
|
env: Bindings;
|
|
4382
4397
|
headers: Headers;
|
|
4398
|
+
db: Database;
|
|
4383
4399
|
environmentName: string;
|
|
4384
4400
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4385
4401
|
}>, import("zod").ZodObject<{
|
|
@@ -4506,8 +4522,18 @@ declare const router: {
|
|
|
4506
4522
|
pageId: import("zod").ZodNumber;
|
|
4507
4523
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
4508
4524
|
markdown: string;
|
|
4525
|
+
blocks: {
|
|
4526
|
+
id: number;
|
|
4527
|
+
position: string;
|
|
4528
|
+
markdown: string;
|
|
4529
|
+
}[];
|
|
4509
4530
|
}, {
|
|
4510
4531
|
markdown: string;
|
|
4532
|
+
blocks: {
|
|
4533
|
+
id: number;
|
|
4534
|
+
position: string;
|
|
4535
|
+
markdown: string;
|
|
4536
|
+
}[];
|
|
4511
4537
|
}>, Record<never, never>, Record<never, never>>;
|
|
4512
4538
|
getUsageCounts: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("zod").ZodObject<{
|
|
4513
4539
|
projectId: import("zod").ZodNumber;
|
|
@@ -4540,9 +4566,9 @@ declare const router: {
|
|
|
4540
4566
|
activeOrganizationId?: string | null | undefined;
|
|
4541
4567
|
activeTeamId?: string | null | undefined;
|
|
4542
4568
|
};
|
|
4543
|
-
db: Database;
|
|
4544
4569
|
env: Bindings;
|
|
4545
4570
|
headers: Headers;
|
|
4571
|
+
db: Database;
|
|
4546
4572
|
environmentName: string;
|
|
4547
4573
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4548
4574
|
}>, import("zod").ZodObject<{
|
|
@@ -4605,9 +4631,9 @@ declare const router: {
|
|
|
4605
4631
|
activeOrganizationId?: string | null | undefined;
|
|
4606
4632
|
activeTeamId?: string | null | undefined;
|
|
4607
4633
|
};
|
|
4608
|
-
db: Database;
|
|
4609
4634
|
env: Bindings;
|
|
4610
4635
|
headers: Headers;
|
|
4636
|
+
db: Database;
|
|
4611
4637
|
environmentName: string;
|
|
4612
4638
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4613
4639
|
}>, import("zod").ZodObject<{
|
|
@@ -4660,9 +4686,9 @@ declare const router: {
|
|
|
4660
4686
|
activeOrganizationId?: string | null | undefined;
|
|
4661
4687
|
activeTeamId?: string | null | undefined;
|
|
4662
4688
|
};
|
|
4663
|
-
db: Database;
|
|
4664
4689
|
env: Bindings;
|
|
4665
4690
|
headers: Headers;
|
|
4691
|
+
db: Database;
|
|
4666
4692
|
environmentName: string;
|
|
4667
4693
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4668
4694
|
}>, import("zod").ZodObject<{
|
|
@@ -4715,9 +4741,9 @@ declare const router: {
|
|
|
4715
4741
|
activeOrganizationId?: string | null | undefined;
|
|
4716
4742
|
activeTeamId?: string | null | undefined;
|
|
4717
4743
|
};
|
|
4718
|
-
db: Database;
|
|
4719
4744
|
env: Bindings;
|
|
4720
4745
|
headers: Headers;
|
|
4746
|
+
db: Database;
|
|
4721
4747
|
environmentName: string;
|
|
4722
4748
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4723
4749
|
}>, import("zod").ZodObject<{
|
|
@@ -4771,9 +4797,9 @@ declare const router: {
|
|
|
4771
4797
|
activeOrganizationId?: string | null | undefined;
|
|
4772
4798
|
activeTeamId?: string | null | undefined;
|
|
4773
4799
|
};
|
|
4774
|
-
db: Database;
|
|
4775
4800
|
env: Bindings;
|
|
4776
4801
|
headers: Headers;
|
|
4802
|
+
db: Database;
|
|
4777
4803
|
environmentName: string;
|
|
4778
4804
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4779
4805
|
}>, import("zod").ZodObject<{
|
|
@@ -4825,9 +4851,9 @@ declare const router: {
|
|
|
4825
4851
|
activeOrganizationId?: string | null | undefined;
|
|
4826
4852
|
activeTeamId?: string | null | undefined;
|
|
4827
4853
|
};
|
|
4828
|
-
db: Database;
|
|
4829
4854
|
env: Bindings;
|
|
4830
4855
|
headers: Headers;
|
|
4856
|
+
db: Database;
|
|
4831
4857
|
environmentName: string;
|
|
4832
4858
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4833
4859
|
}>, import("zod").ZodObject<{
|
|
@@ -4879,9 +4905,9 @@ declare const router: {
|
|
|
4879
4905
|
activeOrganizationId?: string | null | undefined;
|
|
4880
4906
|
activeTeamId?: string | null | undefined;
|
|
4881
4907
|
};
|
|
4882
|
-
db: Database;
|
|
4883
4908
|
env: Bindings;
|
|
4884
4909
|
headers: Headers;
|
|
4910
|
+
db: Database;
|
|
4885
4911
|
environmentName: string;
|
|
4886
4912
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4887
4913
|
}>, import("zod").ZodObject<{
|
|
@@ -4933,9 +4959,9 @@ declare const router: {
|
|
|
4933
4959
|
activeOrganizationId?: string | null | undefined;
|
|
4934
4960
|
activeTeamId?: string | null | undefined;
|
|
4935
4961
|
};
|
|
4936
|
-
db: Database;
|
|
4937
4962
|
env: Bindings;
|
|
4938
4963
|
headers: Headers;
|
|
4964
|
+
db: Database;
|
|
4939
4965
|
environmentName: string;
|
|
4940
4966
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4941
4967
|
}>, import("zod").ZodObject<{
|
|
@@ -5148,9 +5174,9 @@ declare const router: {
|
|
|
5148
5174
|
activeOrganizationId?: string | null | undefined;
|
|
5149
5175
|
activeTeamId?: string | null | undefined;
|
|
5150
5176
|
};
|
|
5151
|
-
db: Database;
|
|
5152
5177
|
env: Bindings;
|
|
5153
5178
|
headers: Headers;
|
|
5179
|
+
db: Database;
|
|
5154
5180
|
environmentName: string;
|
|
5155
5181
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5156
5182
|
}>, import("zod").ZodObject<{
|
|
@@ -5207,9 +5233,9 @@ declare const router: {
|
|
|
5207
5233
|
activeOrganizationId?: string | null | undefined;
|
|
5208
5234
|
activeTeamId?: string | null | undefined;
|
|
5209
5235
|
};
|
|
5210
|
-
db: Database;
|
|
5211
5236
|
env: Bindings;
|
|
5212
5237
|
headers: Headers;
|
|
5238
|
+
db: Database;
|
|
5213
5239
|
environmentName: string;
|
|
5214
5240
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5215
5241
|
}>, import("zod").ZodObject<{
|
|
@@ -5266,9 +5292,9 @@ declare const router: {
|
|
|
5266
5292
|
activeOrganizationId?: string | null | undefined;
|
|
5267
5293
|
activeTeamId?: string | null | undefined;
|
|
5268
5294
|
};
|
|
5269
|
-
db: Database;
|
|
5270
5295
|
env: Bindings;
|
|
5271
5296
|
headers: Headers;
|
|
5297
|
+
db: Database;
|
|
5272
5298
|
environmentName: string;
|
|
5273
5299
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5274
5300
|
}>, import("zod").ZodObject<{
|
|
@@ -5324,9 +5350,9 @@ declare const router: {
|
|
|
5324
5350
|
activeOrganizationId?: string | null | undefined;
|
|
5325
5351
|
activeTeamId?: string | null | undefined;
|
|
5326
5352
|
};
|
|
5327
|
-
db: Database;
|
|
5328
5353
|
env: Bindings;
|
|
5329
5354
|
headers: Headers;
|
|
5355
|
+
db: Database;
|
|
5330
5356
|
environmentName: string;
|
|
5331
5357
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5332
5358
|
}>, import("zod").ZodObject<{
|
|
@@ -5354,9 +5380,9 @@ declare const router: {
|
|
|
5354
5380
|
activeOrganizationId?: string | null | undefined;
|
|
5355
5381
|
activeTeamId?: string | null | undefined;
|
|
5356
5382
|
};
|
|
5357
|
-
db: Database;
|
|
5358
5383
|
env: Bindings;
|
|
5359
5384
|
headers: Headers;
|
|
5385
|
+
db: Database;
|
|
5360
5386
|
environmentName: string;
|
|
5361
5387
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5362
5388
|
}>, import("zod").ZodObject<{
|
|
@@ -5389,9 +5415,9 @@ declare const router: {
|
|
|
5389
5415
|
activeOrganizationId?: string | null | undefined;
|
|
5390
5416
|
activeTeamId?: string | null | undefined;
|
|
5391
5417
|
};
|
|
5392
|
-
db: Database;
|
|
5393
5418
|
env: Bindings;
|
|
5394
5419
|
headers: Headers;
|
|
5420
|
+
db: Database;
|
|
5395
5421
|
environmentName: string;
|
|
5396
5422
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5397
5423
|
}>, import("zod").ZodObject<{
|
|
@@ -5448,9 +5474,9 @@ declare const router: {
|
|
|
5448
5474
|
activeOrganizationId?: string | null | undefined;
|
|
5449
5475
|
activeTeamId?: string | null | undefined;
|
|
5450
5476
|
};
|
|
5451
|
-
db: Database;
|
|
5452
5477
|
env: Bindings;
|
|
5453
5478
|
headers: Headers;
|
|
5479
|
+
db: Database;
|
|
5454
5480
|
environmentName: string;
|
|
5455
5481
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5456
5482
|
}>, import("zod").ZodObject<{
|
|
@@ -5567,9 +5593,9 @@ declare const router: {
|
|
|
5567
5593
|
activeOrganizationId?: string | null | undefined;
|
|
5568
5594
|
activeTeamId?: string | null | undefined;
|
|
5569
5595
|
};
|
|
5570
|
-
db: Database;
|
|
5571
5596
|
env: Bindings;
|
|
5572
5597
|
headers: Headers;
|
|
5598
|
+
db: Database;
|
|
5573
5599
|
environmentName: string;
|
|
5574
5600
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5575
5601
|
}>, import("zod").ZodObject<{
|
|
@@ -5632,9 +5658,9 @@ declare const router: {
|
|
|
5632
5658
|
activeOrganizationId?: string | null | undefined;
|
|
5633
5659
|
activeTeamId?: string | null | undefined;
|
|
5634
5660
|
};
|
|
5635
|
-
db: Database;
|
|
5636
5661
|
env: Bindings;
|
|
5637
5662
|
headers: Headers;
|
|
5663
|
+
db: Database;
|
|
5638
5664
|
environmentName: string;
|
|
5639
5665
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5640
5666
|
}>, import("zod").ZodObject<{
|
|
@@ -5685,9 +5711,9 @@ declare const router: {
|
|
|
5685
5711
|
activeOrganizationId?: string | null | undefined;
|
|
5686
5712
|
activeTeamId?: string | null | undefined;
|
|
5687
5713
|
};
|
|
5688
|
-
db: Database;
|
|
5689
5714
|
env: Bindings;
|
|
5690
5715
|
headers: Headers;
|
|
5716
|
+
db: Database;
|
|
5691
5717
|
environmentName: string;
|
|
5692
5718
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5693
5719
|
}>, import("zod").ZodObject<{
|
|
@@ -5738,9 +5764,9 @@ declare const router: {
|
|
|
5738
5764
|
activeOrganizationId?: string | null | undefined;
|
|
5739
5765
|
activeTeamId?: string | null | undefined;
|
|
5740
5766
|
};
|
|
5741
|
-
db: Database;
|
|
5742
5767
|
env: Bindings;
|
|
5743
5768
|
headers: Headers;
|
|
5769
|
+
db: Database;
|
|
5744
5770
|
environmentName: string;
|
|
5745
5771
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5746
5772
|
}>, import("zod").ZodObject<{
|
|
@@ -5792,9 +5818,9 @@ declare const router: {
|
|
|
5792
5818
|
activeOrganizationId?: string | null | undefined;
|
|
5793
5819
|
activeTeamId?: string | null | undefined;
|
|
5794
5820
|
};
|
|
5795
|
-
db: Database;
|
|
5796
5821
|
env: Bindings;
|
|
5797
5822
|
headers: Headers;
|
|
5823
|
+
db: Database;
|
|
5798
5824
|
environmentName: string;
|
|
5799
5825
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5800
5826
|
}>, import("zod").ZodObject<{
|
|
@@ -5844,9 +5870,9 @@ declare const router: {
|
|
|
5844
5870
|
activeOrganizationId?: string | null | undefined;
|
|
5845
5871
|
activeTeamId?: string | null | undefined;
|
|
5846
5872
|
};
|
|
5847
|
-
db: Database;
|
|
5848
5873
|
env: Bindings;
|
|
5849
5874
|
headers: Headers;
|
|
5875
|
+
db: Database;
|
|
5850
5876
|
environmentName: string;
|
|
5851
5877
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5852
5878
|
}>, import("zod").ZodObject<{
|
|
@@ -5896,9 +5922,9 @@ declare const router: {
|
|
|
5896
5922
|
activeOrganizationId?: string | null | undefined;
|
|
5897
5923
|
activeTeamId?: string | null | undefined;
|
|
5898
5924
|
};
|
|
5899
|
-
db: Database;
|
|
5900
5925
|
env: Bindings;
|
|
5901
5926
|
headers: Headers;
|
|
5927
|
+
db: Database;
|
|
5902
5928
|
environmentName: string;
|
|
5903
5929
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5904
5930
|
}>, import("zod").ZodObject<{
|
|
@@ -6009,8 +6035,6 @@ declare const router: {
|
|
|
6009
6035
|
environmentCreated: boolean;
|
|
6010
6036
|
}>, Record<never, never>, Record<never, never>>;
|
|
6011
6037
|
upsert: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("zod").ZodObject<{
|
|
6012
|
-
projectSlug: import("zod").ZodString;
|
|
6013
|
-
syncSecret: import("zod").ZodString;
|
|
6014
6038
|
blockId: import("zod").ZodString;
|
|
6015
6039
|
title: import("zod").ZodString;
|
|
6016
6040
|
description: import("zod").ZodString;
|
|
@@ -6019,6 +6043,8 @@ declare const router: {
|
|
|
6019
6043
|
defaultContent: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
6020
6044
|
defaultSettings: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
6021
6045
|
layoutOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6046
|
+
projectSlug: import("zod").ZodString;
|
|
6047
|
+
syncSecret: import("zod").ZodString;
|
|
6022
6048
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
6023
6049
|
action: "updated";
|
|
6024
6050
|
id: number;
|
|
@@ -6092,6 +6118,86 @@ declare const router: {
|
|
|
6092
6118
|
blockId: string;
|
|
6093
6119
|
}>, Record<never, never>, Record<never, never>>;
|
|
6094
6120
|
};
|
|
6121
|
+
agent: {
|
|
6122
|
+
callTool: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
6123
|
+
user: {
|
|
6124
|
+
id: string;
|
|
6125
|
+
createdAt: Date;
|
|
6126
|
+
updatedAt: Date;
|
|
6127
|
+
email: string;
|
|
6128
|
+
emailVerified: boolean;
|
|
6129
|
+
name: string;
|
|
6130
|
+
image?: string | null | undefined;
|
|
6131
|
+
};
|
|
6132
|
+
session: {
|
|
6133
|
+
id: string;
|
|
6134
|
+
createdAt: Date;
|
|
6135
|
+
updatedAt: Date;
|
|
6136
|
+
userId: string;
|
|
6137
|
+
expiresAt: Date;
|
|
6138
|
+
token: string;
|
|
6139
|
+
ipAddress?: string | null | undefined;
|
|
6140
|
+
userAgent?: string | null | undefined;
|
|
6141
|
+
activeOrganizationId?: string | null | undefined;
|
|
6142
|
+
activeTeamId?: string | null | undefined;
|
|
6143
|
+
};
|
|
6144
|
+
env: Bindings;
|
|
6145
|
+
headers: Headers;
|
|
6146
|
+
db: Database;
|
|
6147
|
+
environmentName: string;
|
|
6148
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
6149
|
+
}>, import("zod").ZodObject<{
|
|
6150
|
+
projectId: import("zod").ZodNumber;
|
|
6151
|
+
name: import("zod").ZodString;
|
|
6152
|
+
arguments: import("zod").ZodUnknown;
|
|
6153
|
+
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
6154
|
+
ok: true;
|
|
6155
|
+
result: unknown;
|
|
6156
|
+
error?: undefined;
|
|
6157
|
+
} | {
|
|
6158
|
+
ok: false;
|
|
6159
|
+
error: ToolError;
|
|
6160
|
+
result?: undefined;
|
|
6161
|
+
}, {
|
|
6162
|
+
ok: true;
|
|
6163
|
+
result: unknown;
|
|
6164
|
+
error?: undefined;
|
|
6165
|
+
} | {
|
|
6166
|
+
ok: false;
|
|
6167
|
+
error: ToolError;
|
|
6168
|
+
result?: undefined;
|
|
6169
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
6170
|
+
listTools: import("@orpc/server").DecoratedProcedure<import("@orpc/server").MergedInitialContext<import("@orpc/server").MergedInitialContext<BaseContext & Record<never, never>, BaseContext, BaseContext>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>>, import("@orpc/server").MergedCurrentContext<import("@orpc/server").MergedCurrentContext<BaseContext, Record<never, never>>, {
|
|
6171
|
+
user: {
|
|
6172
|
+
id: string;
|
|
6173
|
+
createdAt: Date;
|
|
6174
|
+
updatedAt: Date;
|
|
6175
|
+
email: string;
|
|
6176
|
+
emailVerified: boolean;
|
|
6177
|
+
name: string;
|
|
6178
|
+
image?: string | null | undefined;
|
|
6179
|
+
};
|
|
6180
|
+
session: {
|
|
6181
|
+
id: string;
|
|
6182
|
+
createdAt: Date;
|
|
6183
|
+
updatedAt: Date;
|
|
6184
|
+
userId: string;
|
|
6185
|
+
expiresAt: Date;
|
|
6186
|
+
token: string;
|
|
6187
|
+
ipAddress?: string | null | undefined;
|
|
6188
|
+
userAgent?: string | null | undefined;
|
|
6189
|
+
activeOrganizationId?: string | null | undefined;
|
|
6190
|
+
activeTeamId?: string | null | undefined;
|
|
6191
|
+
};
|
|
6192
|
+
env: Bindings;
|
|
6193
|
+
headers: Headers;
|
|
6194
|
+
db: Database;
|
|
6195
|
+
environmentName: string;
|
|
6196
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
6197
|
+
}>, import("zod").ZodObject<{
|
|
6198
|
+
projectId: import("zod").ZodNumber;
|
|
6199
|
+
}, import("better-auth").$strip>, import("@orpc/server").Schema<JsonSchemaTool[], JsonSchemaTool[]>, Record<never, never>, Record<never, never>>;
|
|
6200
|
+
};
|
|
6095
6201
|
};
|
|
6096
6202
|
export type Router = typeof router;
|
|
6097
6203
|
|