@vibes.diy/api-sql 14.3.45 → 14.3.47

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.
@@ -132,6 +132,23 @@ export declare const sqlHandleBinding: import("drizzle-orm/pg-core").PgTableWith
132
132
  identity: undefined;
133
133
  generated: undefined;
134
134
  }, {}, {}>;
135
+ provisional: import("drizzle-orm/pg-core").PgColumn<{
136
+ name: "provisional";
137
+ tableName: "UserSlugBindings";
138
+ dataType: "number";
139
+ columnType: "PgInteger";
140
+ data: number;
141
+ driverParam: string | number;
142
+ notNull: true;
143
+ hasDefault: true;
144
+ isPrimaryKey: false;
145
+ isAutoincrement: false;
146
+ hasRuntimeDefault: false;
147
+ enumValues: undefined;
148
+ baseColumn: never;
149
+ identity: undefined;
150
+ generated: undefined;
151
+ }, {}, {}>;
135
152
  };
136
153
  dialect: 'pg';
137
154
  }>;
@@ -4964,6 +4981,23 @@ export declare const sqlAssetUploads: import("drizzle-orm/pg-core").PgTableWithC
4964
4981
  identity: undefined;
4965
4982
  generated: undefined;
4966
4983
  }, {}, {}>;
4984
+ origin: import("drizzle-orm/pg-core").PgColumn<{
4985
+ name: "origin";
4986
+ tableName: "AssetUploads";
4987
+ dataType: "string";
4988
+ columnType: "PgText";
4989
+ data: string;
4990
+ driverParam: string;
4991
+ notNull: false;
4992
+ hasDefault: false;
4993
+ isPrimaryKey: false;
4994
+ isAutoincrement: false;
4995
+ hasRuntimeDefault: false;
4996
+ enumValues: [string, ...string[]];
4997
+ baseColumn: never;
4998
+ identity: undefined;
4999
+ generated: undefined;
5000
+ }, {}, {}>;
4967
5001
  created: import("drizzle-orm/pg-core").PgColumn<{
4968
5002
  name: "created";
4969
5003
  tableName: "AssetUploads";
@@ -5212,6 +5246,183 @@ export declare const sqlAssetSafety: import("drizzle-orm/pg-core").PgTableWithCo
5212
5246
  };
5213
5247
  dialect: 'pg';
5214
5248
  }>;
5249
+ export declare const sqlAppClipExperiences: import("drizzle-orm/pg-core").PgTableWithColumns<{
5250
+ name: "AppClipExperiences";
5251
+ schema: undefined;
5252
+ columns: {
5253
+ ownerHandle: import("drizzle-orm/pg-core").PgColumn<{
5254
+ name: "ownerHandle";
5255
+ tableName: "AppClipExperiences";
5256
+ dataType: "string";
5257
+ columnType: "PgText";
5258
+ data: string;
5259
+ driverParam: string;
5260
+ notNull: true;
5261
+ hasDefault: false;
5262
+ isPrimaryKey: false;
5263
+ isAutoincrement: false;
5264
+ hasRuntimeDefault: false;
5265
+ enumValues: [string, ...string[]];
5266
+ baseColumn: never;
5267
+ identity: undefined;
5268
+ generated: undefined;
5269
+ }, {}, {}>;
5270
+ appSlug: import("drizzle-orm/pg-core").PgColumn<{
5271
+ name: "appSlug";
5272
+ tableName: "AppClipExperiences";
5273
+ dataType: "string";
5274
+ columnType: "PgText";
5275
+ data: string;
5276
+ driverParam: string;
5277
+ notNull: true;
5278
+ hasDefault: false;
5279
+ isPrimaryKey: false;
5280
+ isAutoincrement: false;
5281
+ hasRuntimeDefault: false;
5282
+ enumValues: [string, ...string[]];
5283
+ baseColumn: never;
5284
+ identity: undefined;
5285
+ generated: undefined;
5286
+ }, {}, {}>;
5287
+ appleExperienceId: import("drizzle-orm/pg-core").PgColumn<{
5288
+ name: "appleExperienceId";
5289
+ tableName: "AppClipExperiences";
5290
+ dataType: "string";
5291
+ columnType: "PgText";
5292
+ data: string;
5293
+ driverParam: string;
5294
+ notNull: false;
5295
+ hasDefault: false;
5296
+ isPrimaryKey: false;
5297
+ isAutoincrement: false;
5298
+ hasRuntimeDefault: false;
5299
+ enumValues: [string, ...string[]];
5300
+ baseColumn: never;
5301
+ identity: undefined;
5302
+ generated: undefined;
5303
+ }, {}, {}>;
5304
+ status: import("drizzle-orm/pg-core").PgColumn<{
5305
+ name: "status";
5306
+ tableName: "AppClipExperiences";
5307
+ dataType: "string";
5308
+ columnType: "PgText";
5309
+ data: string;
5310
+ driverParam: string;
5311
+ notNull: true;
5312
+ hasDefault: false;
5313
+ isPrimaryKey: false;
5314
+ isAutoincrement: false;
5315
+ hasRuntimeDefault: false;
5316
+ enumValues: [string, ...string[]];
5317
+ baseColumn: never;
5318
+ identity: undefined;
5319
+ generated: undefined;
5320
+ }, {}, {}>;
5321
+ title: import("drizzle-orm/pg-core").PgColumn<{
5322
+ name: "title";
5323
+ tableName: "AppClipExperiences";
5324
+ dataType: "string";
5325
+ columnType: "PgText";
5326
+ data: string;
5327
+ driverParam: string;
5328
+ notNull: true;
5329
+ hasDefault: false;
5330
+ isPrimaryKey: false;
5331
+ isAutoincrement: false;
5332
+ hasRuntimeDefault: false;
5333
+ enumValues: [string, ...string[]];
5334
+ baseColumn: never;
5335
+ identity: undefined;
5336
+ generated: undefined;
5337
+ }, {}, {}>;
5338
+ subtitle: import("drizzle-orm/pg-core").PgColumn<{
5339
+ name: "subtitle";
5340
+ tableName: "AppClipExperiences";
5341
+ dataType: "string";
5342
+ columnType: "PgText";
5343
+ data: string;
5344
+ driverParam: string;
5345
+ notNull: true;
5346
+ hasDefault: false;
5347
+ isPrimaryKey: false;
5348
+ isAutoincrement: false;
5349
+ hasRuntimeDefault: false;
5350
+ enumValues: [string, ...string[]];
5351
+ baseColumn: never;
5352
+ identity: undefined;
5353
+ generated: undefined;
5354
+ }, {}, {}>;
5355
+ sourceRelease: import("drizzle-orm/pg-core").PgColumn<{
5356
+ name: "sourceRelease";
5357
+ tableName: "AppClipExperiences";
5358
+ dataType: "string";
5359
+ columnType: "PgText";
5360
+ data: string;
5361
+ driverParam: string;
5362
+ notNull: false;
5363
+ hasDefault: false;
5364
+ isPrimaryKey: false;
5365
+ isAutoincrement: false;
5366
+ hasRuntimeDefault: false;
5367
+ enumValues: [string, ...string[]];
5368
+ baseColumn: never;
5369
+ identity: undefined;
5370
+ generated: undefined;
5371
+ }, {}, {}>;
5372
+ lastError: import("drizzle-orm/pg-core").PgColumn<{
5373
+ name: "lastError";
5374
+ tableName: "AppClipExperiences";
5375
+ dataType: "string";
5376
+ columnType: "PgText";
5377
+ data: string;
5378
+ driverParam: string;
5379
+ notNull: false;
5380
+ hasDefault: false;
5381
+ isPrimaryKey: false;
5382
+ isAutoincrement: false;
5383
+ hasRuntimeDefault: false;
5384
+ enumValues: [string, ...string[]];
5385
+ baseColumn: never;
5386
+ identity: undefined;
5387
+ generated: undefined;
5388
+ }, {}, {}>;
5389
+ created: import("drizzle-orm/pg-core").PgColumn<{
5390
+ name: "created";
5391
+ tableName: "AppClipExperiences";
5392
+ dataType: "string";
5393
+ columnType: "PgText";
5394
+ data: string;
5395
+ driverParam: string;
5396
+ notNull: true;
5397
+ hasDefault: false;
5398
+ isPrimaryKey: false;
5399
+ isAutoincrement: false;
5400
+ hasRuntimeDefault: false;
5401
+ enumValues: [string, ...string[]];
5402
+ baseColumn: never;
5403
+ identity: undefined;
5404
+ generated: undefined;
5405
+ }, {}, {}>;
5406
+ updated: import("drizzle-orm/pg-core").PgColumn<{
5407
+ name: "updated";
5408
+ tableName: "AppClipExperiences";
5409
+ dataType: "string";
5410
+ columnType: "PgText";
5411
+ data: string;
5412
+ driverParam: string;
5413
+ notNull: true;
5414
+ hasDefault: false;
5415
+ isPrimaryKey: false;
5416
+ isAutoincrement: false;
5417
+ hasRuntimeDefault: false;
5418
+ enumValues: [string, ...string[]];
5419
+ baseColumn: never;
5420
+ identity: undefined;
5421
+ generated: undefined;
5422
+ }, {}, {}>;
5423
+ };
5424
+ dialect: 'pg';
5425
+ }>;
5215
5426
  export declare const sqlAccessFunctionBindings: import("drizzle-orm/pg-core").PgTableWithColumns<{
5216
5427
  name: "AccessFunctionBindings";
5217
5428
  schema: undefined;
@@ -7228,4 +7439,273 @@ export declare const sqlConnectionApprovals: import("drizzle-orm/pg-core").PgTab
7228
7439
  };
7229
7440
  dialect: 'pg';
7230
7441
  }>;
7442
+ export declare const sqlAppContentOrdinals: import("drizzle-orm/pg-core").PgTableWithColumns<{
7443
+ name: "AppContentOrdinals";
7444
+ schema: undefined;
7445
+ columns: {
7446
+ userId: import("drizzle-orm/pg-core").PgColumn<{
7447
+ name: "userId";
7448
+ tableName: "AppContentOrdinals";
7449
+ dataType: "string";
7450
+ columnType: "PgText";
7451
+ data: string;
7452
+ driverParam: string;
7453
+ notNull: true;
7454
+ hasDefault: false;
7455
+ isPrimaryKey: false;
7456
+ isAutoincrement: false;
7457
+ hasRuntimeDefault: false;
7458
+ enumValues: [string, ...string[]];
7459
+ baseColumn: never;
7460
+ identity: undefined;
7461
+ generated: undefined;
7462
+ }, {}, {}>;
7463
+ ownerHandle: import("drizzle-orm/pg-core").PgColumn<{
7464
+ name: "userSlug";
7465
+ tableName: "AppContentOrdinals";
7466
+ dataType: "string";
7467
+ columnType: "PgText";
7468
+ data: string;
7469
+ driverParam: string;
7470
+ notNull: true;
7471
+ hasDefault: false;
7472
+ isPrimaryKey: false;
7473
+ isAutoincrement: false;
7474
+ hasRuntimeDefault: false;
7475
+ enumValues: [string, ...string[]];
7476
+ baseColumn: never;
7477
+ identity: undefined;
7478
+ generated: undefined;
7479
+ }, {}, {}>;
7480
+ appSlug: import("drizzle-orm/pg-core").PgColumn<{
7481
+ name: "appSlug";
7482
+ tableName: "AppContentOrdinals";
7483
+ dataType: "string";
7484
+ columnType: "PgText";
7485
+ data: string;
7486
+ driverParam: string;
7487
+ notNull: true;
7488
+ hasDefault: false;
7489
+ isPrimaryKey: false;
7490
+ isAutoincrement: false;
7491
+ hasRuntimeDefault: false;
7492
+ enumValues: [string, ...string[]];
7493
+ baseColumn: never;
7494
+ identity: undefined;
7495
+ generated: undefined;
7496
+ }, {}, {}>;
7497
+ fsId: import("drizzle-orm/pg-core").PgColumn<{
7498
+ name: "fsId";
7499
+ tableName: "AppContentOrdinals";
7500
+ dataType: "string";
7501
+ columnType: "PgText";
7502
+ data: string;
7503
+ driverParam: string;
7504
+ notNull: true;
7505
+ hasDefault: false;
7506
+ isPrimaryKey: false;
7507
+ isAutoincrement: false;
7508
+ hasRuntimeDefault: false;
7509
+ enumValues: [string, ...string[]];
7510
+ baseColumn: never;
7511
+ identity: undefined;
7512
+ generated: undefined;
7513
+ }, {}, {}>;
7514
+ ordinal: import("drizzle-orm/pg-core").PgColumn<{
7515
+ name: "ordinal";
7516
+ tableName: "AppContentOrdinals";
7517
+ dataType: "number";
7518
+ columnType: "PgInteger";
7519
+ data: number;
7520
+ driverParam: string | number;
7521
+ notNull: true;
7522
+ hasDefault: false;
7523
+ isPrimaryKey: false;
7524
+ isAutoincrement: false;
7525
+ hasRuntimeDefault: false;
7526
+ enumValues: undefined;
7527
+ baseColumn: never;
7528
+ identity: undefined;
7529
+ generated: undefined;
7530
+ }, {}, {}>;
7531
+ };
7532
+ dialect: 'pg';
7533
+ }>;
7534
+ export declare const sqlAppPublicNames: import("drizzle-orm/pg-core").PgTableWithColumns<{
7535
+ name: "AppPublicNames";
7536
+ schema: undefined;
7537
+ columns: {
7538
+ ownerUserId: import("drizzle-orm/pg-core").PgColumn<{
7539
+ name: "ownerUserId";
7540
+ tableName: "AppPublicNames";
7541
+ dataType: "string";
7542
+ columnType: "PgText";
7543
+ data: string;
7544
+ driverParam: string;
7545
+ notNull: true;
7546
+ hasDefault: false;
7547
+ isPrimaryKey: false;
7548
+ isAutoincrement: false;
7549
+ hasRuntimeDefault: false;
7550
+ enumValues: [string, ...string[]];
7551
+ baseColumn: never;
7552
+ identity: undefined;
7553
+ generated: undefined;
7554
+ }, {}, {}>;
7555
+ ownerHandle: import("drizzle-orm/pg-core").PgColumn<{
7556
+ name: "userSlug";
7557
+ tableName: "AppPublicNames";
7558
+ dataType: "string";
7559
+ columnType: "PgText";
7560
+ data: string;
7561
+ driverParam: string;
7562
+ notNull: true;
7563
+ hasDefault: false;
7564
+ isPrimaryKey: false;
7565
+ isAutoincrement: false;
7566
+ hasRuntimeDefault: false;
7567
+ enumValues: [string, ...string[]];
7568
+ baseColumn: never;
7569
+ identity: undefined;
7570
+ generated: undefined;
7571
+ }, {}, {}>;
7572
+ storageAppSlug: import("drizzle-orm/pg-core").PgColumn<{
7573
+ name: "storageAppSlug";
7574
+ tableName: "AppPublicNames";
7575
+ dataType: "string";
7576
+ columnType: "PgText";
7577
+ data: string;
7578
+ driverParam: string;
7579
+ notNull: true;
7580
+ hasDefault: false;
7581
+ isPrimaryKey: false;
7582
+ isAutoincrement: false;
7583
+ hasRuntimeDefault: false;
7584
+ enumValues: [string, ...string[]];
7585
+ baseColumn: never;
7586
+ identity: undefined;
7587
+ generated: undefined;
7588
+ }, {}, {}>;
7589
+ ledger: import("drizzle-orm/pg-core").PgColumn<{
7590
+ name: "ledger";
7591
+ tableName: "AppPublicNames";
7592
+ dataType: "string";
7593
+ columnType: "PgText";
7594
+ data: string;
7595
+ driverParam: string;
7596
+ notNull: true;
7597
+ hasDefault: false;
7598
+ isPrimaryKey: false;
7599
+ isAutoincrement: false;
7600
+ hasRuntimeDefault: false;
7601
+ enumValues: [string, ...string[]];
7602
+ baseColumn: never;
7603
+ identity: undefined;
7604
+ generated: undefined;
7605
+ }, {}, {}>;
7606
+ publicAppSlug: import("drizzle-orm/pg-core").PgColumn<{
7607
+ name: "publicAppSlug";
7608
+ tableName: "AppPublicNames";
7609
+ dataType: "string";
7610
+ columnType: "PgText";
7611
+ data: string;
7612
+ driverParam: string;
7613
+ notNull: true;
7614
+ hasDefault: false;
7615
+ isPrimaryKey: false;
7616
+ isAutoincrement: false;
7617
+ hasRuntimeDefault: false;
7618
+ enumValues: [string, ...string[]];
7619
+ baseColumn: never;
7620
+ identity: undefined;
7621
+ generated: undefined;
7622
+ }, {}, {}>;
7623
+ chatId: import("drizzle-orm/pg-core").PgColumn<{
7624
+ name: "chatId";
7625
+ tableName: "AppPublicNames";
7626
+ dataType: "string";
7627
+ columnType: "PgText";
7628
+ data: string;
7629
+ driverParam: string;
7630
+ notNull: true;
7631
+ hasDefault: false;
7632
+ isPrimaryKey: false;
7633
+ isAutoincrement: false;
7634
+ hasRuntimeDefault: false;
7635
+ enumValues: [string, ...string[]];
7636
+ baseColumn: never;
7637
+ identity: undefined;
7638
+ generated: undefined;
7639
+ }, {}, {}>;
7640
+ parentPromptId: import("drizzle-orm/pg-core").PgColumn<{
7641
+ name: "parentPromptId";
7642
+ tableName: "AppPublicNames";
7643
+ dataType: "string";
7644
+ columnType: "PgText";
7645
+ data: string;
7646
+ driverParam: string;
7647
+ notNull: true;
7648
+ hasDefault: false;
7649
+ isPrimaryKey: false;
7650
+ isAutoincrement: false;
7651
+ hasRuntimeDefault: false;
7652
+ enumValues: [string, ...string[]];
7653
+ baseColumn: never;
7654
+ identity: undefined;
7655
+ generated: undefined;
7656
+ }, {}, {}>;
7657
+ rewritePromptId: import("drizzle-orm/pg-core").PgColumn<{
7658
+ name: "rewritePromptId";
7659
+ tableName: "AppPublicNames";
7660
+ dataType: "string";
7661
+ columnType: "PgText";
7662
+ data: string;
7663
+ driverParam: string;
7664
+ notNull: true;
7665
+ hasDefault: false;
7666
+ isPrimaryKey: false;
7667
+ isAutoincrement: false;
7668
+ hasRuntimeDefault: false;
7669
+ enumValues: [string, ...string[]];
7670
+ baseColumn: never;
7671
+ identity: undefined;
7672
+ generated: undefined;
7673
+ }, {}, {}>;
7674
+ resultFsId: import("drizzle-orm/pg-core").PgColumn<{
7675
+ name: "resultFsId";
7676
+ tableName: "AppPublicNames";
7677
+ dataType: "string";
7678
+ columnType: "PgText";
7679
+ data: string;
7680
+ driverParam: string;
7681
+ notNull: true;
7682
+ hasDefault: false;
7683
+ isPrimaryKey: false;
7684
+ isAutoincrement: false;
7685
+ hasRuntimeDefault: false;
7686
+ enumValues: [string, ...string[]];
7687
+ baseColumn: never;
7688
+ identity: undefined;
7689
+ generated: undefined;
7690
+ }, {}, {}>;
7691
+ created: import("drizzle-orm/pg-core").PgColumn<{
7692
+ name: "created";
7693
+ tableName: "AppPublicNames";
7694
+ dataType: "string";
7695
+ columnType: "PgText";
7696
+ data: string;
7697
+ driverParam: string;
7698
+ notNull: true;
7699
+ hasDefault: false;
7700
+ isPrimaryKey: false;
7701
+ isAutoincrement: false;
7702
+ hasRuntimeDefault: false;
7703
+ enumValues: [string, ...string[]];
7704
+ baseColumn: never;
7705
+ identity: undefined;
7706
+ generated: undefined;
7707
+ }, {}, {}>;
7708
+ };
7709
+ dialect: 'pg';
7710
+ }>;
7231
7711
  export {};
@@ -1,4 +1,4 @@
1
- import { integer, pgTable, text, jsonb, primaryKey, uniqueIndex, index, customType, numeric, vector, pgView, } from "drizzle-orm/pg-core";
1
+ import { integer, pgTable, text, jsonb, primaryKey, uniqueIndex, index, check, customType, numeric, vector, pgView, } from "drizzle-orm/pg-core";
2
2
  import { sql } from "drizzle-orm";
3
3
  const bytea = customType({
4
4
  dataType() {
@@ -16,6 +16,7 @@ export const sqlHandleBinding = pgTable("UserSlugBindings", {
16
16
  handle: text("userSlug").notNull(),
17
17
  tenant: text().notNull(),
18
18
  created: text().notNull(),
19
+ provisional: integer().notNull().default(0),
19
20
  }, (table) => [
20
21
  primaryKey({ columns: [table.handle, table.userId] }),
21
22
  uniqueIndex("UserSlug_ownerHandle").on(table.handle),
@@ -456,6 +457,7 @@ export const sqlAssetUploads = pgTable("AssetUploads", {
456
457
  assetURI: text().notNull(),
457
458
  size: integer().notNull(),
458
459
  mimeType: text(),
460
+ origin: text(),
459
461
  created: text().notNull(),
460
462
  }, (table) => [
461
463
  index("AssetUploads_app_idx").on(table.ownerHandle, table.appSlug, table.created),
@@ -477,6 +479,18 @@ export const sqlAssetSafety = pgTable("AssetSafety", {
477
479
  created: text().notNull(),
478
480
  updated: text().notNull(),
479
481
  });
482
+ export const sqlAppClipExperiences = pgTable("AppClipExperiences", {
483
+ ownerHandle: text().notNull(),
484
+ appSlug: text().notNull(),
485
+ appleExperienceId: text(),
486
+ status: text().notNull(),
487
+ title: text().notNull(),
488
+ subtitle: text().notNull(),
489
+ sourceRelease: text(),
490
+ lastError: text(),
491
+ created: text().notNull(),
492
+ updated: text().notNull(),
493
+ }, (table) => [primaryKey({ columns: [table.ownerHandle, table.appSlug] })]);
480
494
  export const sqlAccessFunctionBindings = pgTable("AccessFunctionBindings", {
481
495
  ownerHandle: text("userSlug").notNull(),
482
496
  appSlug: text().notNull(),
@@ -721,4 +735,32 @@ export const sqlConnectionApprovals = pgTable("ConnectionApprovals", {
721
735
  created: text().notNull(),
722
736
  consumedAt: text().notNull().default(""),
723
737
  });
738
+ export const sqlAppContentOrdinals = pgTable("AppContentOrdinals", {
739
+ userId: text().notNull(),
740
+ ownerHandle: text("userSlug").notNull(),
741
+ appSlug: text().notNull(),
742
+ fsId: text().notNull(),
743
+ ordinal: integer().notNull(),
744
+ }, (table) => [
745
+ primaryKey({ columns: [table.userId, table.ownerHandle, table.appSlug, table.fsId] }),
746
+ uniqueIndex("AppContentOrdinals_app_ordinal").on(table.userId, table.ownerHandle, table.appSlug, table.ordinal),
747
+ check("AppContentOrdinals_positive_ordinal", sql `${table.ordinal} > 0 AND ${table.ordinal} = CAST(${table.ordinal} AS INTEGER)`),
748
+ ]);
749
+ export const sqlAppPublicNames = pgTable("AppPublicNames", {
750
+ ownerUserId: text().notNull(),
751
+ ownerHandle: text("userSlug").notNull(),
752
+ storageAppSlug: text().notNull(),
753
+ ledger: text().notNull(),
754
+ publicAppSlug: text().notNull(),
755
+ chatId: text().notNull(),
756
+ parentPromptId: text().notNull(),
757
+ rewritePromptId: text().notNull(),
758
+ resultFsId: text().notNull(),
759
+ created: text().notNull(),
760
+ }, (table) => [
761
+ primaryKey({ columns: [table.ownerHandle, table.storageAppSlug] }),
762
+ uniqueIndex("AppPublicNames_ownerUserId_ledger").on(table.ownerUserId, table.ledger),
763
+ uniqueIndex("AppPublicNames_ownerHandle_publicAppSlug").on(table.ownerHandle, table.publicAppSlug),
764
+ uniqueIndex("AppPublicNames_ownerUserId_publicAppSlug").on(table.ownerUserId, table.publicAppSlug),
765
+ ]);
724
766
  //# sourceMappingURL=vibes-diy-api-schema-pg.js.map