@camox/api-contract 0.25.0 → 0.27.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +153 -10
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -400,6 +400,28 @@ declare function createDb(d1: D1Database): import("drizzle-orm/d1").DrizzleD1Dat
400
400
  identity: undefined;
401
401
  generated: undefined;
402
402
  }, {}, {}>;
403
+ nickname: import("drizzle-orm/sqlite-core").SQLiteColumn<{
404
+ name: "nickname";
405
+ tableName: "pages";
406
+ dataType: "string";
407
+ columnType: "SQLiteText";
408
+ data: string;
409
+ driverParam: string;
410
+ notNull: true;
411
+ hasDefault: false;
412
+ isPrimaryKey: false;
413
+ isAutoincrement: false;
414
+ hasRuntimeDefault: false;
415
+ enumValues: [
416
+ string,
417
+ ...string[]
418
+ ];
419
+ baseColumn: never;
420
+ identity: undefined;
421
+ generated: undefined;
422
+ }, {}, {
423
+ length: number | undefined;
424
+ }>;
403
425
  metaTitle: import("drizzle-orm/sqlite-core").SQLiteColumn<{
404
426
  name: "meta_title";
405
427
  tableName: "pages";
@@ -4230,6 +4252,7 @@ declare const router: {
4230
4252
  pathSegment: string;
4231
4253
  fullPath: string;
4232
4254
  parentPageId: number | null;
4255
+ nickname: string;
4233
4256
  metaTitle: string | null;
4234
4257
  metaDescription: string | null;
4235
4258
  aiSeoEnabled: boolean | null;
@@ -4307,6 +4330,7 @@ declare const router: {
4307
4330
  pathSegment: string;
4308
4331
  fullPath: string;
4309
4332
  parentPageId: number | null;
4333
+ nickname: string;
4310
4334
  metaTitle: string | null;
4311
4335
  metaDescription: string | null;
4312
4336
  aiSeoEnabled: boolean | null;
@@ -4391,6 +4415,7 @@ declare const router: {
4391
4415
  fullPath: string;
4392
4416
  parentPageId: number | null;
4393
4417
  layoutId: number;
4418
+ nickname: string;
4394
4419
  metaTitle: string | null;
4395
4420
  metaDescription: string | null;
4396
4421
  aiSeoEnabled: boolean | null;
@@ -4424,6 +4449,7 @@ declare const router: {
4424
4449
  fullPath: string;
4425
4450
  parentPageId: number | null;
4426
4451
  layoutId: number;
4452
+ nickname: string;
4427
4453
  metaTitle: string | null;
4428
4454
  metaDescription: string | null;
4429
4455
  aiSeoEnabled: boolean | null;
@@ -4458,6 +4484,7 @@ declare const router: {
4458
4484
  fullPath: string;
4459
4485
  parentPageId: number | null;
4460
4486
  layoutId: number;
4487
+ nickname: string;
4461
4488
  metaTitle: string | null;
4462
4489
  metaDescription: string | null;
4463
4490
  aiSeoEnabled: boolean | null;
@@ -4477,6 +4504,7 @@ declare const router: {
4477
4504
  fullPath: string;
4478
4505
  parentPageId: number | null;
4479
4506
  layoutId: number;
4507
+ nickname: string;
4480
4508
  metaTitle: string | null;
4481
4509
  metaDescription: string | null;
4482
4510
  aiSeoEnabled: boolean | null;
@@ -4499,6 +4527,7 @@ declare const router: {
4499
4527
  fullPath: string;
4500
4528
  parentPageId: number | null;
4501
4529
  layoutId: number;
4530
+ nickname: string;
4502
4531
  metaTitle: string | null;
4503
4532
  metaDescription: string | null;
4504
4533
  aiSeoEnabled: boolean | null;
@@ -4518,6 +4547,7 @@ declare const router: {
4518
4547
  fullPath: string;
4519
4548
  parentPageId: number | null;
4520
4549
  layoutId: number;
4550
+ nickname: string;
4521
4551
  metaTitle: string | null;
4522
4552
  metaDescription: string | null;
4523
4553
  aiSeoEnabled: boolean | null;
@@ -4531,45 +4561,61 @@ declare const router: {
4531
4561
  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 [
4532
4562
  import("zod").ZodObject<{
4533
4563
  id: import("zod").ZodNumber;
4564
+ source: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [
4565
+ import("zod").ZodLiteral<"live">,
4566
+ import("zod").ZodLiteral<"draft">,
4567
+ import("zod").ZodObject<{
4568
+ checkpointId: import("zod").ZodNumber;
4569
+ }, import("better-auth").$strip>
4570
+ ]>>>;
4534
4571
  }, import("better-auth").$strip>,
4535
4572
  import("zod").ZodObject<{
4536
4573
  projectId: import("zod").ZodNumber;
4537
4574
  path: import("zod").ZodString;
4575
+ source: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [
4576
+ import("zod").ZodLiteral<"live">,
4577
+ import("zod").ZodLiteral<"draft">,
4578
+ import("zod").ZodObject<{
4579
+ checkpointId: import("zod").ZodNumber;
4580
+ }, import("better-auth").$strip>
4581
+ ]>>>;
4538
4582
  }, import("better-auth").$strip>
4539
4583
  ]>, import("@orpc/server").Schema<{
4540
4584
  id: number;
4585
+ createdAt: number;
4586
+ updatedAt: number;
4541
4587
  projectId: number;
4542
4588
  environmentId: number;
4589
+ layoutId: number;
4590
+ livePublishedCheckpointId: number | null;
4591
+ contentUpdatedAt: number;
4543
4592
  pathSegment: string;
4544
4593
  fullPath: string;
4545
4594
  parentPageId: number | null;
4546
- layoutId: number;
4595
+ nickname: string;
4547
4596
  metaTitle: string | null;
4548
4597
  metaDescription: string | null;
4549
4598
  aiSeoEnabled: boolean | null;
4550
4599
  customOgImageBlobId: string | null;
4551
4600
  customOgImageUrl: string | null;
4552
- livePublishedCheckpointId: number | null;
4553
- contentUpdatedAt: number;
4554
- createdAt: number;
4555
- updatedAt: number;
4556
4601
  }, {
4557
4602
  id: number;
4603
+ createdAt: number;
4604
+ updatedAt: number;
4558
4605
  projectId: number;
4559
4606
  environmentId: number;
4607
+ layoutId: number;
4608
+ livePublishedCheckpointId: number | null;
4609
+ contentUpdatedAt: number;
4560
4610
  pathSegment: string;
4561
4611
  fullPath: string;
4562
4612
  parentPageId: number | null;
4563
- layoutId: number;
4613
+ nickname: string;
4564
4614
  metaTitle: string | null;
4565
4615
  metaDescription: string | null;
4566
4616
  aiSeoEnabled: boolean | null;
4567
4617
  customOgImageBlobId: string | null;
4568
4618
  customOgImageUrl: string | null;
4569
- livePublishedCheckpointId: number | null;
4570
- contentUpdatedAt: number;
4571
- createdAt: number;
4572
- updatedAt: number;
4573
4619
  }>, Record<never, never>, Record<never, never>>;
4574
4620
  create: 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>>, {
4575
4621
  user: {
@@ -4602,6 +4648,7 @@ declare const router: {
4602
4648
  waitUntil: (promise: Promise<unknown>) => void;
4603
4649
  }>, import("zod").ZodObject<{
4604
4650
  projectId: import("zod").ZodNumber;
4651
+ nickname: import("zod").ZodOptional<import("zod").ZodString>;
4605
4652
  pathSegment: import("zod").ZodString;
4606
4653
  parentPageId: import("zod").ZodOptional<import("zod").ZodNumber>;
4607
4654
  layoutId: import("zod").ZodNumber;
@@ -4619,6 +4666,7 @@ declare const router: {
4619
4666
  pathSegment: string;
4620
4667
  fullPath: string;
4621
4668
  parentPageId: number | null;
4669
+ nickname: string;
4622
4670
  metaTitle: string | null;
4623
4671
  metaDescription: string | null;
4624
4672
  aiSeoEnabled: boolean | null;
@@ -4639,6 +4687,7 @@ declare const router: {
4639
4687
  pathSegment: string;
4640
4688
  fullPath: string;
4641
4689
  parentPageId: number | null;
4690
+ nickname: string;
4642
4691
  metaTitle: string | null;
4643
4692
  metaDescription: string | null;
4644
4693
  aiSeoEnabled: boolean | null;
@@ -4678,6 +4727,7 @@ declare const router: {
4678
4727
  waitUntil: (promise: Promise<unknown>) => void;
4679
4728
  }>, import("zod").ZodObject<{
4680
4729
  id: import("zod").ZodNumber;
4730
+ nickname: import("zod").ZodOptional<import("zod").ZodString>;
4681
4731
  pathSegment: import("zod").ZodOptional<import("zod").ZodString>;
4682
4732
  parentPageId: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
4683
4733
  }, import("better-auth").$strip>, import("@orpc/server").Schema<{
@@ -4692,6 +4742,7 @@ declare const router: {
4692
4742
  pathSegment: string;
4693
4743
  fullPath: string;
4694
4744
  parentPageId: number | null;
4745
+ nickname: string;
4695
4746
  metaTitle: string | null;
4696
4747
  metaDescription: string | null;
4697
4748
  aiSeoEnabled: boolean | null;
@@ -4709,6 +4760,7 @@ declare const router: {
4709
4760
  pathSegment: string;
4710
4761
  fullPath: string;
4711
4762
  parentPageId: number | null;
4763
+ nickname: string;
4712
4764
  metaTitle: string | null;
4713
4765
  metaDescription: string | null;
4714
4766
  aiSeoEnabled: boolean | null;
@@ -4758,6 +4810,7 @@ declare const router: {
4758
4810
  pathSegment: string;
4759
4811
  fullPath: string;
4760
4812
  parentPageId: number | null;
4813
+ nickname: string;
4761
4814
  metaTitle: string | null;
4762
4815
  metaDescription: string | null;
4763
4816
  aiSeoEnabled: boolean | null;
@@ -4775,6 +4828,7 @@ declare const router: {
4775
4828
  pathSegment: string;
4776
4829
  fullPath: string;
4777
4830
  parentPageId: number | null;
4831
+ nickname: string;
4778
4832
  metaTitle: string | null;
4779
4833
  metaDescription: string | null;
4780
4834
  aiSeoEnabled: boolean | null;
@@ -4825,6 +4879,7 @@ declare const router: {
4825
4879
  pathSegment: string;
4826
4880
  fullPath: string;
4827
4881
  parentPageId: number | null;
4882
+ nickname: string;
4828
4883
  metaTitle: string | null;
4829
4884
  metaDescription: string | null;
4830
4885
  aiSeoEnabled: boolean | null;
@@ -4842,6 +4897,7 @@ declare const router: {
4842
4897
  pathSegment: string;
4843
4898
  fullPath: string;
4844
4899
  parentPageId: number | null;
4900
+ nickname: string;
4845
4901
  metaTitle: string | null;
4846
4902
  metaDescription: string | null;
4847
4903
  aiSeoEnabled: boolean | null;
@@ -4892,6 +4948,7 @@ declare const router: {
4892
4948
  pathSegment: string;
4893
4949
  fullPath: string;
4894
4950
  parentPageId: number | null;
4951
+ nickname: string;
4895
4952
  metaTitle: string | null;
4896
4953
  metaDescription: string | null;
4897
4954
  aiSeoEnabled: boolean | null;
@@ -4909,6 +4966,7 @@ declare const router: {
4909
4966
  pathSegment: string;
4910
4967
  fullPath: string;
4911
4968
  parentPageId: number | null;
4969
+ nickname: string;
4912
4970
  metaTitle: string | null;
4913
4971
  metaDescription: string | null;
4914
4972
  aiSeoEnabled: boolean | null;
@@ -4959,6 +5017,7 @@ declare const router: {
4959
5017
  pathSegment: string;
4960
5018
  fullPath: string;
4961
5019
  parentPageId: number | null;
5020
+ nickname: string;
4962
5021
  metaTitle: string | null;
4963
5022
  metaDescription: string | null;
4964
5023
  aiSeoEnabled: boolean | null;
@@ -4976,6 +5035,7 @@ declare const router: {
4976
5035
  pathSegment: string;
4977
5036
  fullPath: string;
4978
5037
  parentPageId: number | null;
5038
+ nickname: string;
4979
5039
  metaTitle: string | null;
4980
5040
  metaDescription: string | null;
4981
5041
  aiSeoEnabled: boolean | null;
@@ -5026,6 +5086,7 @@ declare const router: {
5026
5086
  pathSegment: string;
5027
5087
  fullPath: string;
5028
5088
  parentPageId: number | null;
5089
+ nickname: string;
5029
5090
  metaTitle: string | null;
5030
5091
  metaDescription: string | null;
5031
5092
  aiSeoEnabled: boolean | null;
@@ -5043,6 +5104,7 @@ declare const router: {
5043
5104
  pathSegment: string;
5044
5105
  fullPath: string;
5045
5106
  parentPageId: number | null;
5107
+ nickname: string;
5046
5108
  metaTitle: string | null;
5047
5109
  metaDescription: string | null;
5048
5110
  aiSeoEnabled: boolean | null;
@@ -5088,6 +5150,7 @@ declare const router: {
5088
5150
  fullPath: string;
5089
5151
  parentPageId: number | null;
5090
5152
  layoutId: number;
5153
+ nickname: string;
5091
5154
  metaTitle: string | null;
5092
5155
  metaDescription: string | null;
5093
5156
  aiSeoEnabled: boolean | null;
@@ -5105,6 +5168,7 @@ declare const router: {
5105
5168
  fullPath: string;
5106
5169
  parentPageId: number | null;
5107
5170
  layoutId: number;
5171
+ nickname: string;
5108
5172
  metaTitle: string | null;
5109
5173
  metaDescription: string | null;
5110
5174
  aiSeoEnabled: boolean | null;
@@ -5159,6 +5223,7 @@ declare const router: {
5159
5223
  pathSegment: string;
5160
5224
  fullPath: string;
5161
5225
  parentPageId: number | null;
5226
+ nickname: string;
5162
5227
  metaTitle: string | null;
5163
5228
  metaDescription: string | null;
5164
5229
  aiSeoEnabled: boolean | null;
@@ -5176,6 +5241,7 @@ declare const router: {
5176
5241
  pathSegment: string;
5177
5242
  fullPath: string;
5178
5243
  parentPageId: number | null;
5244
+ nickname: string;
5179
5245
  metaTitle: string | null;
5180
5246
  metaDescription: string | null;
5181
5247
  aiSeoEnabled: boolean | null;
@@ -5225,6 +5291,75 @@ declare const router: {
5225
5291
  pathSegment: string;
5226
5292
  fullPath: string;
5227
5293
  parentPageId: number | null;
5294
+ nickname: string;
5295
+ metaTitle: string | null;
5296
+ metaDescription: string | null;
5297
+ aiSeoEnabled: boolean | null;
5298
+ customOgImageBlobId: string | null;
5299
+ customOgImageUrl: string | null;
5300
+ }, {
5301
+ id: number;
5302
+ createdAt: number;
5303
+ updatedAt: number;
5304
+ projectId: number;
5305
+ environmentId: number;
5306
+ layoutId: number;
5307
+ livePublishedCheckpointId: number | null;
5308
+ contentUpdatedAt: number;
5309
+ pathSegment: string;
5310
+ fullPath: string;
5311
+ parentPageId: number | null;
5312
+ nickname: string;
5313
+ metaTitle: string | null;
5314
+ metaDescription: string | null;
5315
+ aiSeoEnabled: boolean | null;
5316
+ customOgImageBlobId: string | null;
5317
+ customOgImageUrl: string | null;
5318
+ }>, Record<never, never>, Record<never, never>>;
5319
+ discardChanges: 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>>, {
5320
+ user: {
5321
+ id: string;
5322
+ createdAt: Date;
5323
+ updatedAt: Date;
5324
+ email: string;
5325
+ emailVerified: boolean;
5326
+ name: string;
5327
+ image?: string | null | undefined;
5328
+ };
5329
+ session: {
5330
+ id: string;
5331
+ createdAt: Date;
5332
+ updatedAt: Date;
5333
+ userId: string;
5334
+ expiresAt: Date;
5335
+ token: string;
5336
+ ipAddress?: string | null | undefined;
5337
+ userAgent?: string | null | undefined;
5338
+ activeOrganizationId?: string | null | undefined;
5339
+ activeTeamId?: string | null | undefined;
5340
+ };
5341
+ env: Bindings;
5342
+ headers: Headers;
5343
+ db: Database;
5344
+ environmentName: string;
5345
+ client: string;
5346
+ telemetryDisabled: boolean;
5347
+ waitUntil: (promise: Promise<unknown>) => void;
5348
+ }>, import("zod").ZodObject<{
5349
+ id: import("zod").ZodNumber;
5350
+ }, import("better-auth").$strip>, import("@orpc/server").Schema<{
5351
+ id: number;
5352
+ createdAt: number;
5353
+ updatedAt: number;
5354
+ projectId: number;
5355
+ environmentId: number;
5356
+ layoutId: number;
5357
+ livePublishedCheckpointId: number | null;
5358
+ contentUpdatedAt: number;
5359
+ pathSegment: string;
5360
+ fullPath: string;
5361
+ parentPageId: number | null;
5362
+ nickname: string;
5228
5363
  metaTitle: string | null;
5229
5364
  metaDescription: string | null;
5230
5365
  aiSeoEnabled: boolean | null;
@@ -5242,6 +5377,7 @@ declare const router: {
5242
5377
  pathSegment: string;
5243
5378
  fullPath: string;
5244
5379
  parentPageId: number | null;
5380
+ nickname: string;
5245
5381
  metaTitle: string | null;
5246
5382
  metaDescription: string | null;
5247
5383
  aiSeoEnabled: boolean | null;
@@ -5348,6 +5484,13 @@ declare const router: {
5348
5484
  }>, Record<never, never>, Record<never, never>>;
5349
5485
  getPageMarkdown: 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<{
5350
5486
  pageId: import("zod").ZodNumber;
5487
+ source: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodUnion<readonly [
5488
+ import("zod").ZodLiteral<"live">,
5489
+ import("zod").ZodLiteral<"draft">,
5490
+ import("zod").ZodObject<{
5491
+ checkpointId: import("zod").ZodNumber;
5492
+ }, import("better-auth").$strip>
5493
+ ]>>>;
5351
5494
  }, import("better-auth").$strip>, import("@orpc/server").Schema<{
5352
5495
  markdown: string;
5353
5496
  blocks: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camox/api-contract",
3
- "version": "0.25.0",
3
+ "version": "0.27.0",
4
4
  "files": [
5
5
  "src",
6
6
  "dist"