@heynixie/contract 0.70.2 → 0.72.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/action-proposal-schema.d.ts +18 -0
- package/dist/contract/approval-contract.d.ts +479 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +548 -191
- package/dist/{contract.d.ts → contract/contract.d.ts} +704 -243
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +284 -0
- package/dist/contract/input-miss-schema.d.ts +23 -0
- package/dist/contract/known-contact-schema.d.ts +7 -0
- package/dist/contract/logged-input-schema.d.ts +36 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +92 -217
- package/dist/{moment-contract.d.ts → contract/moment-contract.d.ts} +1 -0
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/contract/turn-inputs-contract.d.ts +134 -0
- package/dist/index.d.ts +17 -17
- package/dist/index.js +979 -667
- package/dist/{build-pending-input.d.ts → span/build-pending-input.d.ts} +1 -1
- package/dist/{build-span-state.d.ts → span/build-span-state.d.ts} +1 -1
- package/dist/{pick-span-source.d.ts → span/pick-span-source.d.ts} +1 -1
- package/dist/types.d.ts +3 -3
- package/package.json +2 -2
- package/dist/proposal-outcome-schema.d.ts +0 -37
- package/dist/rule-contract.d.ts +0 -65
- /package/dist/{client-header-name.d.ts → contract/client-header-name.d.ts} +0 -0
- /package/dist/{forget-backup-schema.d.ts → contract/forget-backup-schema.d.ts} +0 -0
- /package/dist/{image-limits.d.ts → contract/image-limits.d.ts} +0 -0
- /package/dist/{image-not-found-error.d.ts → contract/image-not-found-error.d.ts} +0 -0
- /package/dist/{image-refused-error.d.ts → contract/image-refused-error.d.ts} +0 -0
- /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
- /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
- /package/dist/{render-session-cookie.d.ts → contract/render-session-cookie.d.ts} +0 -0
- /package/dist/{reused-id-errors.d.ts → contract/reused-id-errors.d.ts} +0 -0
- /package/dist/{session-cookie-name.d.ts → contract/session-cookie-name.d.ts} +0 -0
- /package/dist/{signed-in.d.ts → contract/signed-in.d.ts} +0 -0
- /package/dist/{task-schema.d.ts → contract/task-schema.d.ts} +0 -0
- /package/dist/{tool-call-schema.d.ts → contract/tool-call-schema.d.ts} +0 -0
- /package/dist/{task-message-input-schema.d.ts → message/task-message-input-schema.d.ts} +0 -0
- /package/dist/{task-message-kind-schema.d.ts → message/task-message-kind-schema.d.ts} +0 -0
- /package/dist/{task-message-result-schema.d.ts → message/task-message-result-schema.d.ts} +0 -0
- /package/dist/{has-several-words.d.ts → span/has-several-words.d.ts} +0 -0
- /package/dist/{span-schema.d.ts → span/span-schema.d.ts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { PendingInput, SpanState } from '
|
|
1
|
+
import type { PendingInput, SpanState } from '../types.js';
|
|
2
2
|
export declare function buildSpanState(state: SpanState, pending: PendingInput | undefined, text: string): SpanState;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { SpanSource } from '
|
|
1
|
+
import type { SpanSource } from '../types.js';
|
|
2
2
|
export declare function pickSpanSource(inputType: string, data: string | null): SpanSource;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ContractRouterClient, InferContractRouterInputs, InferContractRouterOutputs } from '@orpc/contract';
|
|
2
|
-
import type { contract } from './contract.js';
|
|
3
|
-
import type { hostContract } from './host-contract.js';
|
|
4
|
-
import type { imageLimits } from './image-limits.js';
|
|
2
|
+
import type { contract } from './contract/contract.js';
|
|
3
|
+
import type { hostContract } from './contract/host-contract.js';
|
|
4
|
+
import type { imageLimits } from './contract/image-limits.js';
|
|
5
5
|
export type ContractClient = ContractRouterClient<typeof contract>;
|
|
6
6
|
export type ContractInputs = InferContractRouterInputs<typeof contract>;
|
|
7
7
|
export type ContractOutputs = InferContractRouterOutputs<typeof contract>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heynixie/contract",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"description": "The oRPC contract of the nixie API, with the types a client needs",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@orpc/openapi": "1.16.1",
|
|
27
27
|
"@orpc/tanstack-query": "1.16.1",
|
|
28
28
|
"@orpc/zod": "1.16.1",
|
|
29
|
-
"@tanstack/query-core": "5.
|
|
29
|
+
"@tanstack/query-core": "5.107.1",
|
|
30
30
|
"zod": "4.6.7"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const proposalOutcomeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
-
proposalID: z.ZodString;
|
|
4
|
-
status: z.ZodLiteral<"applied">;
|
|
5
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
-
proposalID: z.ZodString;
|
|
7
|
-
status: z.ZodLiteral<"rejected">;
|
|
8
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
-
item: z.ZodObject<{
|
|
10
|
-
itemID: z.ZodString;
|
|
11
|
-
text: z.ZodString;
|
|
12
|
-
version: z.ZodInt;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
proposalID: z.ZodString;
|
|
15
|
-
status: z.ZodLiteral<"close_match">;
|
|
16
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
17
|
-
cause: z.ZodEnum<{
|
|
18
|
-
answered: "answered";
|
|
19
|
-
changed: "changed";
|
|
20
|
-
gone: "gone";
|
|
21
|
-
lapsed: "lapsed";
|
|
22
|
-
moved: "moved";
|
|
23
|
-
}>;
|
|
24
|
-
proposalID: z.ZodString;
|
|
25
|
-
status: z.ZodLiteral<"stale">;
|
|
26
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
27
|
-
code: z.ZodEnum<{
|
|
28
|
-
CLIENT_ACTION_ID_REUSED: "CLIENT_ACTION_ID_REUSED";
|
|
29
|
-
PINNED_CORE_FULL: "PINNED_CORE_FULL";
|
|
30
|
-
PIN_EDIT: "PIN_EDIT";
|
|
31
|
-
RETIREMENT_EDIT: "RETIREMENT_EDIT";
|
|
32
|
-
REVISION_TARGET: "REVISION_TARGET";
|
|
33
|
-
WRONG_STATE: "WRONG_STATE";
|
|
34
|
-
}>;
|
|
35
|
-
proposalID: z.ZodString;
|
|
36
|
-
status: z.ZodLiteral<"refused">;
|
|
37
|
-
}, z.core.$strip>], "status">;
|
package/dist/rule-contract.d.ts
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const ruleContract: {
|
|
3
|
-
listProposals: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
4
|
-
proposals: z.ZodArray<z.ZodObject<{
|
|
5
|
-
proposalID: z.ZodString;
|
|
6
|
-
changes: z.ZodArray<z.ZodObject<{
|
|
7
|
-
ruleID: z.ZodString;
|
|
8
|
-
before: z.ZodNullable<z.ZodObject<{
|
|
9
|
-
ruleHash: z.ZodString;
|
|
10
|
-
sentence: z.ZodString;
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
after: z.ZodNullable<z.ZodObject<{
|
|
13
|
-
ruleHash: z.ZodString;
|
|
14
|
-
sentence: z.ZodString;
|
|
15
|
-
}, z.core.$strip>>;
|
|
16
|
-
}, z.core.$strip>>;
|
|
17
|
-
createdAt: z.ZodDate;
|
|
18
|
-
lapseAt: z.ZodDate;
|
|
19
|
-
}, z.core.$strip>>;
|
|
20
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
21
|
-
UNAUTHORIZED: {
|
|
22
|
-
message: string;
|
|
23
|
-
status: number;
|
|
24
|
-
};
|
|
25
|
-
}>, Record<never, never>>;
|
|
26
|
-
approveProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
27
|
-
proposalID: z.ZodString;
|
|
28
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
-
proposalID: z.ZodString;
|
|
30
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
31
|
-
UNAUTHORIZED: {
|
|
32
|
-
message: string;
|
|
33
|
-
status: number;
|
|
34
|
-
};
|
|
35
|
-
}>, {
|
|
36
|
-
NOT_FOUND: {
|
|
37
|
-
message: string;
|
|
38
|
-
status: number;
|
|
39
|
-
};
|
|
40
|
-
PROPOSAL_CLOSED: {
|
|
41
|
-
message: string;
|
|
42
|
-
status: number;
|
|
43
|
-
};
|
|
44
|
-
}>, Record<never, never>>;
|
|
45
|
-
rejectProposal: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
46
|
-
proposalID: z.ZodString;
|
|
47
|
-
reason: z.ZodString;
|
|
48
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
-
proposalID: z.ZodString;
|
|
50
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
51
|
-
UNAUTHORIZED: {
|
|
52
|
-
message: string;
|
|
53
|
-
status: number;
|
|
54
|
-
};
|
|
55
|
-
}>, {
|
|
56
|
-
NOT_FOUND: {
|
|
57
|
-
message: string;
|
|
58
|
-
status: number;
|
|
59
|
-
};
|
|
60
|
-
PROPOSAL_CLOSED: {
|
|
61
|
-
message: string;
|
|
62
|
-
status: number;
|
|
63
|
-
};
|
|
64
|
-
}>, Record<never, never>>;
|
|
65
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|