@camox/api-contract 0.14.2 → 0.16.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.
- package/dist/index.d.ts +155 -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<{
|
|
@@ -4551,6 +4577,7 @@ declare const router: {
|
|
|
4551
4577
|
content: import("zod").ZodUnknown;
|
|
4552
4578
|
settings: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
4553
4579
|
afterPosition: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
4580
|
+
beforePosition: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodString>>;
|
|
4554
4581
|
repeatableItems: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
4555
4582
|
tempId: import("zod").ZodString;
|
|
4556
4583
|
parentTempId: import("zod").ZodNullable<import("zod").ZodString>;
|
|
@@ -4605,9 +4632,9 @@ declare const router: {
|
|
|
4605
4632
|
activeOrganizationId?: string | null | undefined;
|
|
4606
4633
|
activeTeamId?: string | null | undefined;
|
|
4607
4634
|
};
|
|
4608
|
-
db: Database;
|
|
4609
4635
|
env: Bindings;
|
|
4610
4636
|
headers: Headers;
|
|
4637
|
+
db: Database;
|
|
4611
4638
|
environmentName: string;
|
|
4612
4639
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4613
4640
|
}>, import("zod").ZodObject<{
|
|
@@ -4660,9 +4687,9 @@ declare const router: {
|
|
|
4660
4687
|
activeOrganizationId?: string | null | undefined;
|
|
4661
4688
|
activeTeamId?: string | null | undefined;
|
|
4662
4689
|
};
|
|
4663
|
-
db: Database;
|
|
4664
4690
|
env: Bindings;
|
|
4665
4691
|
headers: Headers;
|
|
4692
|
+
db: Database;
|
|
4666
4693
|
environmentName: string;
|
|
4667
4694
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4668
4695
|
}>, import("zod").ZodObject<{
|
|
@@ -4715,9 +4742,9 @@ declare const router: {
|
|
|
4715
4742
|
activeOrganizationId?: string | null | undefined;
|
|
4716
4743
|
activeTeamId?: string | null | undefined;
|
|
4717
4744
|
};
|
|
4718
|
-
db: Database;
|
|
4719
4745
|
env: Bindings;
|
|
4720
4746
|
headers: Headers;
|
|
4747
|
+
db: Database;
|
|
4721
4748
|
environmentName: string;
|
|
4722
4749
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4723
4750
|
}>, import("zod").ZodObject<{
|
|
@@ -4771,9 +4798,9 @@ declare const router: {
|
|
|
4771
4798
|
activeOrganizationId?: string | null | undefined;
|
|
4772
4799
|
activeTeamId?: string | null | undefined;
|
|
4773
4800
|
};
|
|
4774
|
-
db: Database;
|
|
4775
4801
|
env: Bindings;
|
|
4776
4802
|
headers: Headers;
|
|
4803
|
+
db: Database;
|
|
4777
4804
|
environmentName: string;
|
|
4778
4805
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4779
4806
|
}>, import("zod").ZodObject<{
|
|
@@ -4825,9 +4852,9 @@ declare const router: {
|
|
|
4825
4852
|
activeOrganizationId?: string | null | undefined;
|
|
4826
4853
|
activeTeamId?: string | null | undefined;
|
|
4827
4854
|
};
|
|
4828
|
-
db: Database;
|
|
4829
4855
|
env: Bindings;
|
|
4830
4856
|
headers: Headers;
|
|
4857
|
+
db: Database;
|
|
4831
4858
|
environmentName: string;
|
|
4832
4859
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4833
4860
|
}>, import("zod").ZodObject<{
|
|
@@ -4879,9 +4906,9 @@ declare const router: {
|
|
|
4879
4906
|
activeOrganizationId?: string | null | undefined;
|
|
4880
4907
|
activeTeamId?: string | null | undefined;
|
|
4881
4908
|
};
|
|
4882
|
-
db: Database;
|
|
4883
4909
|
env: Bindings;
|
|
4884
4910
|
headers: Headers;
|
|
4911
|
+
db: Database;
|
|
4885
4912
|
environmentName: string;
|
|
4886
4913
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4887
4914
|
}>, import("zod").ZodObject<{
|
|
@@ -4933,9 +4960,9 @@ declare const router: {
|
|
|
4933
4960
|
activeOrganizationId?: string | null | undefined;
|
|
4934
4961
|
activeTeamId?: string | null | undefined;
|
|
4935
4962
|
};
|
|
4936
|
-
db: Database;
|
|
4937
4963
|
env: Bindings;
|
|
4938
4964
|
headers: Headers;
|
|
4965
|
+
db: Database;
|
|
4939
4966
|
environmentName: string;
|
|
4940
4967
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
4941
4968
|
}>, import("zod").ZodObject<{
|
|
@@ -5148,9 +5175,9 @@ declare const router: {
|
|
|
5148
5175
|
activeOrganizationId?: string | null | undefined;
|
|
5149
5176
|
activeTeamId?: string | null | undefined;
|
|
5150
5177
|
};
|
|
5151
|
-
db: Database;
|
|
5152
5178
|
env: Bindings;
|
|
5153
5179
|
headers: Headers;
|
|
5180
|
+
db: Database;
|
|
5154
5181
|
environmentName: string;
|
|
5155
5182
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5156
5183
|
}>, import("zod").ZodObject<{
|
|
@@ -5207,9 +5234,9 @@ declare const router: {
|
|
|
5207
5234
|
activeOrganizationId?: string | null | undefined;
|
|
5208
5235
|
activeTeamId?: string | null | undefined;
|
|
5209
5236
|
};
|
|
5210
|
-
db: Database;
|
|
5211
5237
|
env: Bindings;
|
|
5212
5238
|
headers: Headers;
|
|
5239
|
+
db: Database;
|
|
5213
5240
|
environmentName: string;
|
|
5214
5241
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5215
5242
|
}>, import("zod").ZodObject<{
|
|
@@ -5266,9 +5293,9 @@ declare const router: {
|
|
|
5266
5293
|
activeOrganizationId?: string | null | undefined;
|
|
5267
5294
|
activeTeamId?: string | null | undefined;
|
|
5268
5295
|
};
|
|
5269
|
-
db: Database;
|
|
5270
5296
|
env: Bindings;
|
|
5271
5297
|
headers: Headers;
|
|
5298
|
+
db: Database;
|
|
5272
5299
|
environmentName: string;
|
|
5273
5300
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5274
5301
|
}>, import("zod").ZodObject<{
|
|
@@ -5324,9 +5351,9 @@ declare const router: {
|
|
|
5324
5351
|
activeOrganizationId?: string | null | undefined;
|
|
5325
5352
|
activeTeamId?: string | null | undefined;
|
|
5326
5353
|
};
|
|
5327
|
-
db: Database;
|
|
5328
5354
|
env: Bindings;
|
|
5329
5355
|
headers: Headers;
|
|
5356
|
+
db: Database;
|
|
5330
5357
|
environmentName: string;
|
|
5331
5358
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5332
5359
|
}>, import("zod").ZodObject<{
|
|
@@ -5354,9 +5381,9 @@ declare const router: {
|
|
|
5354
5381
|
activeOrganizationId?: string | null | undefined;
|
|
5355
5382
|
activeTeamId?: string | null | undefined;
|
|
5356
5383
|
};
|
|
5357
|
-
db: Database;
|
|
5358
5384
|
env: Bindings;
|
|
5359
5385
|
headers: Headers;
|
|
5386
|
+
db: Database;
|
|
5360
5387
|
environmentName: string;
|
|
5361
5388
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5362
5389
|
}>, import("zod").ZodObject<{
|
|
@@ -5389,9 +5416,9 @@ declare const router: {
|
|
|
5389
5416
|
activeOrganizationId?: string | null | undefined;
|
|
5390
5417
|
activeTeamId?: string | null | undefined;
|
|
5391
5418
|
};
|
|
5392
|
-
db: Database;
|
|
5393
5419
|
env: Bindings;
|
|
5394
5420
|
headers: Headers;
|
|
5421
|
+
db: Database;
|
|
5395
5422
|
environmentName: string;
|
|
5396
5423
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5397
5424
|
}>, import("zod").ZodObject<{
|
|
@@ -5448,9 +5475,9 @@ declare const router: {
|
|
|
5448
5475
|
activeOrganizationId?: string | null | undefined;
|
|
5449
5476
|
activeTeamId?: string | null | undefined;
|
|
5450
5477
|
};
|
|
5451
|
-
db: Database;
|
|
5452
5478
|
env: Bindings;
|
|
5453
5479
|
headers: Headers;
|
|
5480
|
+
db: Database;
|
|
5454
5481
|
environmentName: string;
|
|
5455
5482
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5456
5483
|
}>, import("zod").ZodObject<{
|
|
@@ -5567,9 +5594,9 @@ declare const router: {
|
|
|
5567
5594
|
activeOrganizationId?: string | null | undefined;
|
|
5568
5595
|
activeTeamId?: string | null | undefined;
|
|
5569
5596
|
};
|
|
5570
|
-
db: Database;
|
|
5571
5597
|
env: Bindings;
|
|
5572
5598
|
headers: Headers;
|
|
5599
|
+
db: Database;
|
|
5573
5600
|
environmentName: string;
|
|
5574
5601
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5575
5602
|
}>, import("zod").ZodObject<{
|
|
@@ -5632,9 +5659,9 @@ declare const router: {
|
|
|
5632
5659
|
activeOrganizationId?: string | null | undefined;
|
|
5633
5660
|
activeTeamId?: string | null | undefined;
|
|
5634
5661
|
};
|
|
5635
|
-
db: Database;
|
|
5636
5662
|
env: Bindings;
|
|
5637
5663
|
headers: Headers;
|
|
5664
|
+
db: Database;
|
|
5638
5665
|
environmentName: string;
|
|
5639
5666
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5640
5667
|
}>, import("zod").ZodObject<{
|
|
@@ -5685,9 +5712,9 @@ declare const router: {
|
|
|
5685
5712
|
activeOrganizationId?: string | null | undefined;
|
|
5686
5713
|
activeTeamId?: string | null | undefined;
|
|
5687
5714
|
};
|
|
5688
|
-
db: Database;
|
|
5689
5715
|
env: Bindings;
|
|
5690
5716
|
headers: Headers;
|
|
5717
|
+
db: Database;
|
|
5691
5718
|
environmentName: string;
|
|
5692
5719
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5693
5720
|
}>, import("zod").ZodObject<{
|
|
@@ -5738,9 +5765,9 @@ declare const router: {
|
|
|
5738
5765
|
activeOrganizationId?: string | null | undefined;
|
|
5739
5766
|
activeTeamId?: string | null | undefined;
|
|
5740
5767
|
};
|
|
5741
|
-
db: Database;
|
|
5742
5768
|
env: Bindings;
|
|
5743
5769
|
headers: Headers;
|
|
5770
|
+
db: Database;
|
|
5744
5771
|
environmentName: string;
|
|
5745
5772
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5746
5773
|
}>, import("zod").ZodObject<{
|
|
@@ -5792,9 +5819,9 @@ declare const router: {
|
|
|
5792
5819
|
activeOrganizationId?: string | null | undefined;
|
|
5793
5820
|
activeTeamId?: string | null | undefined;
|
|
5794
5821
|
};
|
|
5795
|
-
db: Database;
|
|
5796
5822
|
env: Bindings;
|
|
5797
5823
|
headers: Headers;
|
|
5824
|
+
db: Database;
|
|
5798
5825
|
environmentName: string;
|
|
5799
5826
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5800
5827
|
}>, import("zod").ZodObject<{
|
|
@@ -5844,9 +5871,9 @@ declare const router: {
|
|
|
5844
5871
|
activeOrganizationId?: string | null | undefined;
|
|
5845
5872
|
activeTeamId?: string | null | undefined;
|
|
5846
5873
|
};
|
|
5847
|
-
db: Database;
|
|
5848
5874
|
env: Bindings;
|
|
5849
5875
|
headers: Headers;
|
|
5876
|
+
db: Database;
|
|
5850
5877
|
environmentName: string;
|
|
5851
5878
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5852
5879
|
}>, import("zod").ZodObject<{
|
|
@@ -5896,9 +5923,9 @@ declare const router: {
|
|
|
5896
5923
|
activeOrganizationId?: string | null | undefined;
|
|
5897
5924
|
activeTeamId?: string | null | undefined;
|
|
5898
5925
|
};
|
|
5899
|
-
db: Database;
|
|
5900
5926
|
env: Bindings;
|
|
5901
5927
|
headers: Headers;
|
|
5928
|
+
db: Database;
|
|
5902
5929
|
environmentName: string;
|
|
5903
5930
|
waitUntil: (promise: Promise<unknown>) => void;
|
|
5904
5931
|
}>, import("zod").ZodObject<{
|
|
@@ -6009,8 +6036,6 @@ declare const router: {
|
|
|
6009
6036
|
environmentCreated: boolean;
|
|
6010
6037
|
}>, Record<never, never>, Record<never, never>>;
|
|
6011
6038
|
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
6039
|
blockId: import("zod").ZodString;
|
|
6015
6040
|
title: import("zod").ZodString;
|
|
6016
6041
|
description: import("zod").ZodString;
|
|
@@ -6019,6 +6044,8 @@ declare const router: {
|
|
|
6019
6044
|
defaultContent: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
6020
6045
|
defaultSettings: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
6021
6046
|
layoutOnly: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
6047
|
+
projectSlug: import("zod").ZodString;
|
|
6048
|
+
syncSecret: import("zod").ZodString;
|
|
6022
6049
|
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
6023
6050
|
action: "updated";
|
|
6024
6051
|
id: number;
|
|
@@ -6092,6 +6119,86 @@ declare const router: {
|
|
|
6092
6119
|
blockId: string;
|
|
6093
6120
|
}>, Record<never, never>, Record<never, never>>;
|
|
6094
6121
|
};
|
|
6122
|
+
agent: {
|
|
6123
|
+
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>>, {
|
|
6124
|
+
user: {
|
|
6125
|
+
id: string;
|
|
6126
|
+
createdAt: Date;
|
|
6127
|
+
updatedAt: Date;
|
|
6128
|
+
email: string;
|
|
6129
|
+
emailVerified: boolean;
|
|
6130
|
+
name: string;
|
|
6131
|
+
image?: string | null | undefined;
|
|
6132
|
+
};
|
|
6133
|
+
session: {
|
|
6134
|
+
id: string;
|
|
6135
|
+
createdAt: Date;
|
|
6136
|
+
updatedAt: Date;
|
|
6137
|
+
userId: string;
|
|
6138
|
+
expiresAt: Date;
|
|
6139
|
+
token: string;
|
|
6140
|
+
ipAddress?: string | null | undefined;
|
|
6141
|
+
userAgent?: string | null | undefined;
|
|
6142
|
+
activeOrganizationId?: string | null | undefined;
|
|
6143
|
+
activeTeamId?: string | null | undefined;
|
|
6144
|
+
};
|
|
6145
|
+
env: Bindings;
|
|
6146
|
+
headers: Headers;
|
|
6147
|
+
db: Database;
|
|
6148
|
+
environmentName: string;
|
|
6149
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
6150
|
+
}>, import("zod").ZodObject<{
|
|
6151
|
+
projectId: import("zod").ZodNumber;
|
|
6152
|
+
name: import("zod").ZodString;
|
|
6153
|
+
arguments: import("zod").ZodUnknown;
|
|
6154
|
+
}, import("better-auth").$strip>, import("@orpc/server").Schema<{
|
|
6155
|
+
ok: true;
|
|
6156
|
+
result: unknown;
|
|
6157
|
+
error?: undefined;
|
|
6158
|
+
} | {
|
|
6159
|
+
ok: false;
|
|
6160
|
+
error: ToolError;
|
|
6161
|
+
result?: undefined;
|
|
6162
|
+
}, {
|
|
6163
|
+
ok: true;
|
|
6164
|
+
result: unknown;
|
|
6165
|
+
error?: undefined;
|
|
6166
|
+
} | {
|
|
6167
|
+
ok: false;
|
|
6168
|
+
error: ToolError;
|
|
6169
|
+
result?: undefined;
|
|
6170
|
+
}>, Record<never, never>, Record<never, never>>;
|
|
6171
|
+
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>>, {
|
|
6172
|
+
user: {
|
|
6173
|
+
id: string;
|
|
6174
|
+
createdAt: Date;
|
|
6175
|
+
updatedAt: Date;
|
|
6176
|
+
email: string;
|
|
6177
|
+
emailVerified: boolean;
|
|
6178
|
+
name: string;
|
|
6179
|
+
image?: string | null | undefined;
|
|
6180
|
+
};
|
|
6181
|
+
session: {
|
|
6182
|
+
id: string;
|
|
6183
|
+
createdAt: Date;
|
|
6184
|
+
updatedAt: Date;
|
|
6185
|
+
userId: string;
|
|
6186
|
+
expiresAt: Date;
|
|
6187
|
+
token: string;
|
|
6188
|
+
ipAddress?: string | null | undefined;
|
|
6189
|
+
userAgent?: string | null | undefined;
|
|
6190
|
+
activeOrganizationId?: string | null | undefined;
|
|
6191
|
+
activeTeamId?: string | null | undefined;
|
|
6192
|
+
};
|
|
6193
|
+
env: Bindings;
|
|
6194
|
+
headers: Headers;
|
|
6195
|
+
db: Database;
|
|
6196
|
+
environmentName: string;
|
|
6197
|
+
waitUntil: (promise: Promise<unknown>) => void;
|
|
6198
|
+
}>, import("zod").ZodObject<{
|
|
6199
|
+
projectId: import("zod").ZodNumber;
|
|
6200
|
+
}, import("better-auth").$strip>, import("@orpc/server").Schema<JsonSchemaTool[], JsonSchemaTool[]>, Record<never, never>, Record<never, never>>;
|
|
6201
|
+
};
|
|
6095
6202
|
};
|
|
6096
6203
|
export type Router = typeof router;
|
|
6097
6204
|
|