@framebreak/types 0.1.33 → 0.1.35

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 +214 -26
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -51,14 +51,14 @@ declare const notification: drizzle_orm_pg_core.PgTableWithColumns<{
51
51
  tableName: "notification";
52
52
  dataType: "string";
53
53
  columnType: "PgEnumColumn";
54
- data: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
54
+ data: "post_like" | "community_post_comment" | "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread" | "reaction";
55
55
  driverParam: string;
56
56
  notNull: true;
57
57
  hasDefault: false;
58
58
  isPrimaryKey: false;
59
59
  isAutoincrement: false;
60
60
  hasRuntimeDefault: false;
61
- enumValues: ["mention", "reply", "new_article", "article_comment", "announcement", "new_thread"];
61
+ enumValues: ["mention", "reply", "new_article", "article_comment", "announcement", "new_thread", "post_like", "community_post_comment", "reaction"];
62
62
  baseColumn: never;
63
63
  identity: undefined;
64
64
  generated: undefined;
@@ -1119,16 +1119,16 @@ declare const v1Router: {
1119
1119
  }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1120
1120
  data: {
1121
1121
  isVerified: boolean;
1122
+ isConnected: boolean;
1122
1123
  verifiedAt: Date | null;
1123
1124
  linkedinName: string | null;
1124
- canClaimName: boolean | "" | null | undefined;
1125
1125
  };
1126
1126
  }, {
1127
1127
  data: {
1128
1128
  isVerified: boolean;
1129
+ isConnected: boolean;
1129
1130
  verifiedAt: Date | null;
1130
1131
  linkedinName: string | null;
1131
- canClaimName: boolean | "" | null | undefined;
1132
1132
  };
1133
1133
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1134
1134
  readonly UNAUTHORIZED: {
@@ -1193,11 +1193,13 @@ declare const v1Router: {
1193
1193
  data: {
1194
1194
  success: boolean;
1195
1195
  linkedinName: string | null;
1196
+ linkedinPicture: string | null;
1196
1197
  };
1197
1198
  }, {
1198
1199
  data: {
1199
1200
  success: boolean;
1200
1201
  linkedinName: string | null;
1202
+ linkedinPicture: string | null;
1201
1203
  };
1202
1204
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1203
1205
  readonly UNAUTHORIZED: {
@@ -1258,17 +1260,7 @@ declare const v1Router: {
1258
1260
  username?: string | null | undefined;
1259
1261
  displayUsername?: string | null | undefined;
1260
1262
  };
1261
- }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1262
- data: {
1263
- success: boolean;
1264
- name: string;
1265
- };
1266
- }, {
1267
- data: {
1268
- success: boolean;
1269
- name: string;
1270
- };
1271
- }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1263
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1272
1264
  readonly UNAUTHORIZED: {
1273
1265
  readonly message: "You must be logged in to access this resource";
1274
1266
  };
@@ -1327,15 +1319,7 @@ declare const v1Router: {
1327
1319
  username?: string | null | undefined;
1328
1320
  displayUsername?: string | null | undefined;
1329
1321
  };
1330
- }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1331
- data: {
1332
- success: boolean;
1333
- };
1334
- }, {
1335
- data: {
1336
- success: boolean;
1337
- };
1338
- }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1322
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1339
1323
  readonly UNAUTHORIZED: {
1340
1324
  readonly message: "You must be logged in to access this resource";
1341
1325
  };
@@ -7372,6 +7356,210 @@ declare const v1Router: {
7372
7356
  };
7373
7357
  }>, Record<never, never>>;
7374
7358
  };
7359
+ actions: {
7360
+ backfillLinkedIn: {
7361
+ preview: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7362
+ session: {
7363
+ id: string;
7364
+ createdAt: Date;
7365
+ updatedAt: Date;
7366
+ userId: string;
7367
+ expiresAt: Date;
7368
+ token: string;
7369
+ ipAddress?: string | null | undefined | undefined;
7370
+ userAgent?: string | null | undefined | undefined;
7371
+ impersonatedBy?: string | null | undefined;
7372
+ };
7373
+ user: {
7374
+ id: string;
7375
+ createdAt: Date;
7376
+ updatedAt: Date;
7377
+ email: string;
7378
+ emailVerified: boolean;
7379
+ name: string;
7380
+ image?: string | null | undefined | undefined;
7381
+ onboardingCompleted: boolean | null | undefined;
7382
+ linkedinVerified: boolean | null | undefined;
7383
+ linkedinVerifiedAt?: Date | null | undefined;
7384
+ linkedinId?: string | null | undefined;
7385
+ linkedinName?: string | null | undefined;
7386
+ banned: boolean | null | undefined;
7387
+ role?: string | null | undefined;
7388
+ banReason?: string | null | undefined;
7389
+ banExpires?: Date | null | undefined;
7390
+ username?: string | null | undefined;
7391
+ displayUsername?: string | null | undefined;
7392
+ };
7393
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
7394
+ data: {
7395
+ totalVerified: number;
7396
+ withLinkedInAccount: number;
7397
+ };
7398
+ }, {
7399
+ data: {
7400
+ totalVerified: number;
7401
+ withLinkedInAccount: number;
7402
+ };
7403
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7404
+ readonly UNAUTHORIZED: {
7405
+ readonly message: "You must be logged in to access this resource";
7406
+ };
7407
+ readonly FORBIDDEN: {
7408
+ readonly message: "You do not have permission to access this resource";
7409
+ };
7410
+ readonly NOT_FOUND: {
7411
+ readonly message: "The requested resource was not found";
7412
+ };
7413
+ readonly BAD_REQUEST: {
7414
+ readonly message: "Invalid request";
7415
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7416
+ issues: zod.ZodArray<zod.ZodObject<{
7417
+ code: zod.ZodString;
7418
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7419
+ message: zod.ZodString;
7420
+ }, better_auth.$loose>>;
7421
+ }, better_auth.$strip>>;
7422
+ };
7423
+ readonly CONFLICT: {
7424
+ readonly message: "The request conflicts with existing data";
7425
+ };
7426
+ readonly INTERNAL_SERVER_ERROR: {
7427
+ readonly message: "An internal server error occurred";
7428
+ };
7429
+ }>, Record<never, never>>;
7430
+ execute: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7431
+ session: {
7432
+ id: string;
7433
+ createdAt: Date;
7434
+ updatedAt: Date;
7435
+ userId: string;
7436
+ expiresAt: Date;
7437
+ token: string;
7438
+ ipAddress?: string | null | undefined | undefined;
7439
+ userAgent?: string | null | undefined | undefined;
7440
+ impersonatedBy?: string | null | undefined;
7441
+ };
7442
+ user: {
7443
+ id: string;
7444
+ createdAt: Date;
7445
+ updatedAt: Date;
7446
+ email: string;
7447
+ emailVerified: boolean;
7448
+ name: string;
7449
+ image?: string | null | undefined | undefined;
7450
+ onboardingCompleted: boolean | null | undefined;
7451
+ linkedinVerified: boolean | null | undefined;
7452
+ linkedinVerifiedAt?: Date | null | undefined;
7453
+ linkedinId?: string | null | undefined;
7454
+ linkedinName?: string | null | undefined;
7455
+ banned: boolean | null | undefined;
7456
+ role?: string | null | undefined;
7457
+ banReason?: string | null | undefined;
7458
+ banExpires?: Date | null | undefined;
7459
+ username?: string | null | undefined;
7460
+ displayUsername?: string | null | undefined;
7461
+ };
7462
+ }>, zod.ZodObject<{
7463
+ dryRun: zod.ZodDefault<zod.ZodBoolean>;
7464
+ }, better_auth.$strip>, _orpc_contract.Schema<{
7465
+ data: {
7466
+ dryRun: boolean;
7467
+ summary: {
7468
+ total: number;
7469
+ updated: number;
7470
+ skipped: number;
7471
+ failed: number;
7472
+ };
7473
+ results: never[];
7474
+ };
7475
+ } | {
7476
+ data: {
7477
+ dryRun: boolean;
7478
+ summary: {
7479
+ total: number;
7480
+ updated: number;
7481
+ preview: number;
7482
+ skipped: number;
7483
+ failed: number;
7484
+ };
7485
+ results: {
7486
+ email: string;
7487
+ status: "updated" | "skipped" | "failed" | "preview";
7488
+ reason?: string;
7489
+ before: {
7490
+ name: string | null;
7491
+ image: boolean;
7492
+ };
7493
+ after: {
7494
+ name: string | null;
7495
+ image: boolean;
7496
+ };
7497
+ }[];
7498
+ };
7499
+ }, {
7500
+ data: {
7501
+ dryRun: boolean;
7502
+ summary: {
7503
+ total: number;
7504
+ updated: number;
7505
+ skipped: number;
7506
+ failed: number;
7507
+ };
7508
+ results: never[];
7509
+ };
7510
+ } | {
7511
+ data: {
7512
+ dryRun: boolean;
7513
+ summary: {
7514
+ total: number;
7515
+ updated: number;
7516
+ preview: number;
7517
+ skipped: number;
7518
+ failed: number;
7519
+ };
7520
+ results: {
7521
+ email: string;
7522
+ status: "updated" | "skipped" | "failed" | "preview";
7523
+ reason?: string;
7524
+ before: {
7525
+ name: string | null;
7526
+ image: boolean;
7527
+ };
7528
+ after: {
7529
+ name: string | null;
7530
+ image: boolean;
7531
+ };
7532
+ }[];
7533
+ };
7534
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7535
+ readonly UNAUTHORIZED: {
7536
+ readonly message: "You must be logged in to access this resource";
7537
+ };
7538
+ readonly FORBIDDEN: {
7539
+ readonly message: "You do not have permission to access this resource";
7540
+ };
7541
+ readonly NOT_FOUND: {
7542
+ readonly message: "The requested resource was not found";
7543
+ };
7544
+ readonly BAD_REQUEST: {
7545
+ readonly message: "Invalid request";
7546
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7547
+ issues: zod.ZodArray<zod.ZodObject<{
7548
+ code: zod.ZodString;
7549
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7550
+ message: zod.ZodString;
7551
+ }, better_auth.$loose>>;
7552
+ }, better_auth.$strip>>;
7553
+ };
7554
+ readonly CONFLICT: {
7555
+ readonly message: "The request conflicts with existing data";
7556
+ };
7557
+ readonly INTERNAL_SERVER_ERROR: {
7558
+ readonly message: "An internal server error occurred";
7559
+ };
7560
+ }>, Record<never, never>>;
7561
+ };
7562
+ };
7375
7563
  };
7376
7564
  /**
7377
7565
  * Development-only endpoints - returns 404 in production.
@@ -7789,7 +7977,7 @@ declare const v1Router: {
7789
7977
  id: string;
7790
7978
  createdAt: Date;
7791
7979
  title: string | null;
7792
- type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
7980
+ type: "post_like" | "community_post_comment" | "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread" | "reaction";
7793
7981
  recipientId: string;
7794
7982
  sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
7795
7983
  sourceId: string;
@@ -7823,7 +8011,7 @@ declare const v1Router: {
7823
8011
  id: string;
7824
8012
  createdAt: Date;
7825
8013
  title: string | null;
7826
- type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
8014
+ type: "post_like" | "community_post_comment" | "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread" | "reaction";
7827
8015
  recipientId: string;
7828
8016
  sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
7829
8017
  sourceId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framebreak/types",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "Type definitions for the Framebreak API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",