@framebreak/types 0.1.18 → 0.1.19
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 +115 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4117,6 +4117,121 @@ declare const v1Router: {
|
|
|
4117
4117
|
readonly message: "An internal server error occurred";
|
|
4118
4118
|
};
|
|
4119
4119
|
}>, Record<never, never>>;
|
|
4120
|
+
get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
4121
|
+
session: {
|
|
4122
|
+
id: string;
|
|
4123
|
+
createdAt: Date;
|
|
4124
|
+
updatedAt: Date;
|
|
4125
|
+
userId: string;
|
|
4126
|
+
expiresAt: Date;
|
|
4127
|
+
token: string;
|
|
4128
|
+
ipAddress?: string | null | undefined | undefined;
|
|
4129
|
+
userAgent?: string | null | undefined | undefined;
|
|
4130
|
+
impersonatedBy?: string | null | undefined;
|
|
4131
|
+
};
|
|
4132
|
+
user: {
|
|
4133
|
+
id: string;
|
|
4134
|
+
createdAt: Date;
|
|
4135
|
+
updatedAt: Date;
|
|
4136
|
+
email: string;
|
|
4137
|
+
emailVerified: boolean;
|
|
4138
|
+
name: string;
|
|
4139
|
+
image?: string | null | undefined | undefined;
|
|
4140
|
+
onboardingCompleted: boolean | null | undefined;
|
|
4141
|
+
linkedinVerified: boolean | null | undefined;
|
|
4142
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
4143
|
+
linkedinId?: string | null | undefined;
|
|
4144
|
+
linkedinName?: string | null | undefined;
|
|
4145
|
+
banned: boolean | null | undefined;
|
|
4146
|
+
role?: string | null | undefined;
|
|
4147
|
+
banReason?: string | null | undefined;
|
|
4148
|
+
banExpires?: Date | null | undefined;
|
|
4149
|
+
username?: string | null | undefined;
|
|
4150
|
+
displayUsername?: string | null | undefined;
|
|
4151
|
+
};
|
|
4152
|
+
}>, zod.ZodObject<{
|
|
4153
|
+
id: zod.ZodString;
|
|
4154
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
4155
|
+
data: {
|
|
4156
|
+
id: string;
|
|
4157
|
+
content: string;
|
|
4158
|
+
link: {
|
|
4159
|
+
url: string;
|
|
4160
|
+
title: string | null;
|
|
4161
|
+
description: string | null;
|
|
4162
|
+
image: string | null;
|
|
4163
|
+
} | null;
|
|
4164
|
+
createdAt: Date;
|
|
4165
|
+
updatedAt: Date;
|
|
4166
|
+
author: {
|
|
4167
|
+
id: string;
|
|
4168
|
+
name: string;
|
|
4169
|
+
username: string | null;
|
|
4170
|
+
displayUsername: string | null;
|
|
4171
|
+
image: string | null;
|
|
4172
|
+
linkedinVerified: boolean | null;
|
|
4173
|
+
};
|
|
4174
|
+
isOwner: boolean;
|
|
4175
|
+
engagement: {
|
|
4176
|
+
likesCount: number;
|
|
4177
|
+
commentsCount: number;
|
|
4178
|
+
isLiked: boolean;
|
|
4179
|
+
};
|
|
4180
|
+
};
|
|
4181
|
+
}, {
|
|
4182
|
+
data: {
|
|
4183
|
+
id: string;
|
|
4184
|
+
content: string;
|
|
4185
|
+
link: {
|
|
4186
|
+
url: string;
|
|
4187
|
+
title: string | null;
|
|
4188
|
+
description: string | null;
|
|
4189
|
+
image: string | null;
|
|
4190
|
+
} | null;
|
|
4191
|
+
createdAt: Date;
|
|
4192
|
+
updatedAt: Date;
|
|
4193
|
+
author: {
|
|
4194
|
+
id: string;
|
|
4195
|
+
name: string;
|
|
4196
|
+
username: string | null;
|
|
4197
|
+
displayUsername: string | null;
|
|
4198
|
+
image: string | null;
|
|
4199
|
+
linkedinVerified: boolean | null;
|
|
4200
|
+
};
|
|
4201
|
+
isOwner: boolean;
|
|
4202
|
+
engagement: {
|
|
4203
|
+
likesCount: number;
|
|
4204
|
+
commentsCount: number;
|
|
4205
|
+
isLiked: boolean;
|
|
4206
|
+
};
|
|
4207
|
+
};
|
|
4208
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
4209
|
+
readonly UNAUTHORIZED: {
|
|
4210
|
+
readonly message: "You must be logged in to access this resource";
|
|
4211
|
+
};
|
|
4212
|
+
readonly FORBIDDEN: {
|
|
4213
|
+
readonly message: "You do not have permission to access this resource";
|
|
4214
|
+
};
|
|
4215
|
+
readonly NOT_FOUND: {
|
|
4216
|
+
readonly message: "The requested resource was not found";
|
|
4217
|
+
};
|
|
4218
|
+
readonly BAD_REQUEST: {
|
|
4219
|
+
readonly message: "Invalid request";
|
|
4220
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
4221
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
4222
|
+
code: zod.ZodString;
|
|
4223
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
4224
|
+
message: zod.ZodString;
|
|
4225
|
+
}, better_auth.$loose>>;
|
|
4226
|
+
}, better_auth.$strip>>;
|
|
4227
|
+
};
|
|
4228
|
+
readonly CONFLICT: {
|
|
4229
|
+
readonly message: "The request conflicts with existing data";
|
|
4230
|
+
};
|
|
4231
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
4232
|
+
readonly message: "An internal server error occurred";
|
|
4233
|
+
};
|
|
4234
|
+
}>, Record<never, never>>;
|
|
4120
4235
|
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
4121
4236
|
session: {
|
|
4122
4237
|
id: string;
|