@heynixie/contract 0.81.0 → 0.83.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.
- package/dist/contract/build-query-utils.d.ts +49 -0
- package/dist/contract/contract.d.ts +47 -0
- package/dist/file/code-file-schema.d.ts +15 -0
- package/dist/file/file-send-input-schema.d.ts +5 -0
- package/dist/file/file-send-result-schema.d.ts +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1225 -1179
- package/package.json +1 -1
|
@@ -2174,6 +2174,55 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2174
2174
|
};
|
|
2175
2175
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2176
2176
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2177
|
+
files: {
|
|
2178
|
+
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2179
|
+
file: string;
|
|
2180
|
+
}, import("zod/v4/core").File, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2181
|
+
UNAUTHORIZED: {
|
|
2182
|
+
message: string;
|
|
2183
|
+
status: number;
|
|
2184
|
+
};
|
|
2185
|
+
}>, {
|
|
2186
|
+
FILE_NOT_FOUND: {
|
|
2187
|
+
message: string;
|
|
2188
|
+
status: number;
|
|
2189
|
+
};
|
|
2190
|
+
FILE_FORGOTTEN: {
|
|
2191
|
+
message: string;
|
|
2192
|
+
status: number;
|
|
2193
|
+
};
|
|
2194
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2195
|
+
file: string;
|
|
2196
|
+
}>;
|
|
2197
|
+
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2198
|
+
cursor?: string | undefined;
|
|
2199
|
+
kind?: "image" | "other" | undefined;
|
|
2200
|
+
}, {
|
|
2201
|
+
files: {
|
|
2202
|
+
file: string;
|
|
2203
|
+
name: string;
|
|
2204
|
+
bytes: number;
|
|
2205
|
+
mediaType: string;
|
|
2206
|
+
recordedAt: Date;
|
|
2207
|
+
thread: string;
|
|
2208
|
+
sequence: number;
|
|
2209
|
+
position: number;
|
|
2210
|
+
isSent: boolean;
|
|
2211
|
+
runFileCount: number;
|
|
2212
|
+
taskID: string | null;
|
|
2213
|
+
taskName: string | null;
|
|
2214
|
+
}[];
|
|
2215
|
+
nextCursor: string | null;
|
|
2216
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2217
|
+
UNAUTHORIZED: {
|
|
2218
|
+
message: string;
|
|
2219
|
+
status: number;
|
|
2220
|
+
};
|
|
2221
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2222
|
+
cursor?: string | undefined;
|
|
2223
|
+
kind?: "image" | "other" | undefined;
|
|
2224
|
+
}>;
|
|
2225
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2177
2226
|
nixie: {
|
|
2178
2227
|
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2179
2228
|
paused: {
|
|
@@ -2533,6 +2533,53 @@ export declare const contract: {
|
|
|
2533
2533
|
};
|
|
2534
2534
|
}>, Record<never, never>>;
|
|
2535
2535
|
};
|
|
2536
|
+
files: {
|
|
2537
|
+
read: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2538
|
+
file: z.ZodString;
|
|
2539
|
+
}, z.core.$strip>, z.ZodFile, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2540
|
+
UNAUTHORIZED: {
|
|
2541
|
+
message: string;
|
|
2542
|
+
status: number;
|
|
2543
|
+
};
|
|
2544
|
+
}>, {
|
|
2545
|
+
FILE_NOT_FOUND: {
|
|
2546
|
+
message: string;
|
|
2547
|
+
status: number;
|
|
2548
|
+
};
|
|
2549
|
+
FILE_FORGOTTEN: {
|
|
2550
|
+
message: string;
|
|
2551
|
+
status: number;
|
|
2552
|
+
};
|
|
2553
|
+
}>, Record<never, never>>;
|
|
2554
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2555
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
2556
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
2557
|
+
image: "image";
|
|
2558
|
+
other: "other";
|
|
2559
|
+
}>>;
|
|
2560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2561
|
+
files: z.ZodArray<z.ZodObject<{
|
|
2562
|
+
file: z.ZodString;
|
|
2563
|
+
name: z.ZodString;
|
|
2564
|
+
bytes: z.ZodInt;
|
|
2565
|
+
mediaType: z.ZodString;
|
|
2566
|
+
recordedAt: z.ZodDate;
|
|
2567
|
+
thread: z.ZodString;
|
|
2568
|
+
sequence: z.ZodInt;
|
|
2569
|
+
position: z.ZodInt;
|
|
2570
|
+
isSent: z.ZodBoolean;
|
|
2571
|
+
runFileCount: z.ZodInt;
|
|
2572
|
+
taskID: z.ZodNullable<z.ZodString>;
|
|
2573
|
+
taskName: z.ZodNullable<z.ZodString>;
|
|
2574
|
+
}, z.core.$strip>>;
|
|
2575
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
2576
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2577
|
+
UNAUTHORIZED: {
|
|
2578
|
+
message: string;
|
|
2579
|
+
status: number;
|
|
2580
|
+
};
|
|
2581
|
+
}>, Record<never, never>>;
|
|
2582
|
+
};
|
|
2536
2583
|
nixie: {
|
|
2537
2584
|
read: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
2538
2585
|
paused: z.ZodNullable<z.ZodObject<{
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const codeFileSchema: z.ZodObject<{
|
|
3
|
+
file: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
bytes: z.ZodInt;
|
|
6
|
+
mediaType: z.ZodString;
|
|
7
|
+
recordedAt: z.ZodDate;
|
|
8
|
+
thread: z.ZodString;
|
|
9
|
+
sequence: z.ZodInt;
|
|
10
|
+
position: z.ZodInt;
|
|
11
|
+
isSent: z.ZodBoolean;
|
|
12
|
+
runFileCount: z.ZodInt;
|
|
13
|
+
taskID: z.ZodNullable<z.ZodString>;
|
|
14
|
+
taskName: z.ZodNullable<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export { pickSpanSource } from './span/pick-span-source.js';
|
|
|
23
23
|
export { renderSessionCookie } from './contract/render-session-cookie.js';
|
|
24
24
|
export { sessionCookieName } from './contract/session-cookie-name.js';
|
|
25
25
|
export { spanSchema } from './span/span-schema.js';
|
|
26
|
+
export { fileSendInputSchema } from './file/file-send-input-schema.js';
|
|
27
|
+
export { fileSendResultSchema } from './file/file-send-result-schema.js';
|
|
26
28
|
export { taskMessageInputSchema } from './message/task-message-input-schema.js';
|
|
27
29
|
export { taskMessageKindSchema } from './message/task-message-kind-schema.js';
|
|
28
30
|
export { taskMessageResultSchema } from './message/task-message-result-schema.js';
|