@framebreak/types 0.1.32 → 0.1.34

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 +249 -23
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -226,10 +226,28 @@ interface NotificationActor {
226
226
  linkedinVerified: boolean | null;
227
227
  }
228
228
  /**
229
- * Notification with actor information for display.
229
+ * Post information for notification display.
230
+ */
231
+ interface NotificationPost {
232
+ id: string;
233
+ title: string;
234
+ slug: string;
235
+ thumbnailUrl: string | null;
236
+ }
237
+ /**
238
+ * Thread (community post) information for notification display.
239
+ */
240
+ interface NotificationThread {
241
+ id: string;
242
+ contentPreview: string;
243
+ }
244
+ /**
245
+ * Notification with actor, post, and thread information for display.
230
246
  */
231
247
  interface NotificationWithActor extends Notification {
232
248
  actor: NotificationActor | null;
249
+ post: NotificationPost | null;
250
+ thread: NotificationThread | null;
233
251
  }
234
252
 
235
253
  /**
@@ -1101,16 +1119,16 @@ declare const v1Router: {
1101
1119
  }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1102
1120
  data: {
1103
1121
  isVerified: boolean;
1122
+ isConnected: boolean;
1104
1123
  verifiedAt: Date | null;
1105
1124
  linkedinName: string | null;
1106
- canClaimName: boolean | "" | null | undefined;
1107
1125
  };
1108
1126
  }, {
1109
1127
  data: {
1110
1128
  isVerified: boolean;
1129
+ isConnected: boolean;
1111
1130
  verifiedAt: Date | null;
1112
1131
  linkedinName: string | null;
1113
- canClaimName: boolean | "" | null | undefined;
1114
1132
  };
1115
1133
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1116
1134
  readonly UNAUTHORIZED: {
@@ -1175,11 +1193,13 @@ declare const v1Router: {
1175
1193
  data: {
1176
1194
  success: boolean;
1177
1195
  linkedinName: string | null;
1196
+ linkedinPicture: string | null;
1178
1197
  };
1179
1198
  }, {
1180
1199
  data: {
1181
1200
  success: boolean;
1182
1201
  linkedinName: string | null;
1202
+ linkedinPicture: string | null;
1183
1203
  };
1184
1204
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1185
1205
  readonly UNAUTHORIZED: {
@@ -1240,17 +1260,7 @@ declare const v1Router: {
1240
1260
  username?: string | null | undefined;
1241
1261
  displayUsername?: string | null | undefined;
1242
1262
  };
1243
- }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1244
- data: {
1245
- success: boolean;
1246
- name: string;
1247
- };
1248
- }, {
1249
- data: {
1250
- success: boolean;
1251
- name: string;
1252
- };
1253
- }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1263
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1254
1264
  readonly UNAUTHORIZED: {
1255
1265
  readonly message: "You must be logged in to access this resource";
1256
1266
  };
@@ -1309,15 +1319,7 @@ declare const v1Router: {
1309
1319
  username?: string | null | undefined;
1310
1320
  displayUsername?: string | null | undefined;
1311
1321
  };
1312
- }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
1313
- data: {
1314
- success: boolean;
1315
- };
1316
- }, {
1317
- data: {
1318
- success: boolean;
1319
- };
1320
- }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1322
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<never, never>, _orpc_contract.MergedErrorMap<Record<never, never>, {
1321
1323
  readonly UNAUTHORIZED: {
1322
1324
  readonly message: "You must be logged in to access this resource";
1323
1325
  };
@@ -7354,6 +7356,210 @@ declare const v1Router: {
7354
7356
  };
7355
7357
  }>, Record<never, never>>;
7356
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
+ };
7357
7563
  };
7358
7564
  /**
7359
7565
  * Development-only endpoints - returns 404 in production.
@@ -7791,6 +7997,16 @@ declare const v1Router: {
7791
7997
  displayUsername: string | null;
7792
7998
  image: string | null;
7793
7999
  } | null;
8000
+ post?: {
8001
+ id: string;
8002
+ title: string;
8003
+ slug: string;
8004
+ thumbnailUrl: string | null;
8005
+ } | null;
8006
+ thread?: {
8007
+ id: string;
8008
+ contentPreview: string;
8009
+ } | null;
7794
8010
  }, void, unknown>, AsyncGenerator<{
7795
8011
  id: string;
7796
8012
  createdAt: Date;
@@ -7815,6 +8031,16 @@ declare const v1Router: {
7815
8031
  displayUsername: string | null;
7816
8032
  image: string | null;
7817
8033
  } | null;
8034
+ post?: {
8035
+ id: string;
8036
+ title: string;
8037
+ slug: string;
8038
+ thumbnailUrl: string | null;
8039
+ } | null;
8040
+ thread?: {
8041
+ id: string;
8042
+ contentPreview: string;
8043
+ } | null;
7818
8044
  }, void, unknown>>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7819
8045
  readonly UNAUTHORIZED: {
7820
8046
  readonly message: "You must be logged in to access this resource";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framebreak/types",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "Type definitions for the Framebreak API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",