@heynixie/contract 0.71.0 → 0.73.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/{approval-contract.d.ts → contract/approval-contract.d.ts} +208 -2
- package/dist/contract/authentication-response-schema.d.ts +17 -0
- package/dist/contract/base64-url-schema.d.ts +2 -0
- package/dist/{build-query-utils.d.ts → contract/build-query-utils.d.ts} +619 -262
- package/dist/contract/challenge-for-schema.d.ts +18 -0
- package/dist/contract/choice-schema.d.ts +7 -0
- package/dist/{contract.d.ts → contract/contract.d.ts} +661 -308
- package/dist/contract/creation-options-schema.d.ts +42 -0
- package/dist/contract/credential-descriptor-schema.d.ts +6 -0
- package/dist/contract/forgettable-kinds.d.ts +1 -0
- package/dist/{host-contract.d.ts → contract/host-contract.d.ts} +75 -199
- package/dist/contract/host-passkey-contract.d.ts +29 -0
- package/dist/{memory-view-contract.d.ts → contract/memory-view-contract.d.ts} +1 -230
- package/dist/contract/no-passkey-error.d.ts +6 -0
- package/dist/contract/passkey-contract.d.ts +270 -0
- package/dist/contract/passkey-failed-error.d.ts +18 -0
- package/dist/contract/passkey-failure-schema.d.ts +10 -0
- package/dist/contract/pause-state-schema.d.ts +9 -0
- package/dist/contract/recovery-schema.d.ts +21 -0
- package/dist/contract/registration-response-schema.d.ts +19 -0
- package/dist/contract/request-options-schema.d.ts +16 -0
- package/dist/contract/rule-contract.d.ts +106 -0
- package/dist/contract/transports-schema.d.ts +2 -0
- package/dist/contract/user-verification-schema.d.ts +6 -0
- package/dist/index.d.ts +17 -18
- package/dist/index.js +1153 -944
- 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 +1 -1
- package/dist/forgettable-kinds.d.ts +0 -1
- package/dist/proposal-outcome-schema.d.ts +0 -37
- package/dist/rule-contract.d.ts +0 -124
- /package/dist/{action-proposal-schema.d.ts → contract/action-proposal-schema.d.ts} +0 -0
- /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/{input-miss-schema.d.ts → contract/input-miss-schema.d.ts} +0 -0
- /package/dist/{is-time-zone.d.ts → contract/is-time-zone.d.ts} +0 -0
- /package/dist/{known-contact-schema.d.ts → contract/known-contact-schema.d.ts} +0 -0
- /package/dist/{logged-input-schema.d.ts → contract/logged-input-schema.d.ts} +0 -0
- /package/dist/{memory-export-contract.d.ts → contract/memory-export-contract.d.ts} +0 -0
- /package/dist/{moment-contract.d.ts → contract/moment-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/{turn-inputs-contract.d.ts → contract/turn-inputs-contract.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
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const requestOptionsSchema: z.ZodObject<{
|
|
3
|
+
challenge: z.ZodString;
|
|
4
|
+
rpId: z.ZodString;
|
|
5
|
+
allowCredentials: z.ZodArray<z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
type: z.ZodLiteral<"public-key">;
|
|
8
|
+
transports: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
userVerification: z.ZodEnum<{
|
|
11
|
+
discouraged: "discouraged";
|
|
12
|
+
preferred: "preferred";
|
|
13
|
+
required: "required";
|
|
14
|
+
}>;
|
|
15
|
+
timeout: z.ZodInt;
|
|
16
|
+
}, z.core.$strip>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ruleContract: {
|
|
3
|
+
readRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4
|
+
ruleID: z.ZodString;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
ruleID: z.ZodString;
|
|
7
|
+
revision: z.ZodInt;
|
|
8
|
+
sentence: z.ZodString;
|
|
9
|
+
outcome: z.ZodEnum<{
|
|
10
|
+
allow: "allow";
|
|
11
|
+
ask: "ask";
|
|
12
|
+
deny: "deny";
|
|
13
|
+
}>;
|
|
14
|
+
destinations: z.ZodArray<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
16
|
+
UNAUTHORIZED: {
|
|
17
|
+
message: string;
|
|
18
|
+
status: number;
|
|
19
|
+
};
|
|
20
|
+
}>, {
|
|
21
|
+
NOT_FOUND: {
|
|
22
|
+
message: string;
|
|
23
|
+
status: number;
|
|
24
|
+
};
|
|
25
|
+
}>, Record<never, never>>;
|
|
26
|
+
removeRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
27
|
+
ruleID: z.ZodString;
|
|
28
|
+
revision: z.ZodInt;
|
|
29
|
+
clientActionID: z.ZodUUID;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
ruleID: z.ZodString;
|
|
32
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
33
|
+
UNAUTHORIZED: {
|
|
34
|
+
message: string;
|
|
35
|
+
status: number;
|
|
36
|
+
};
|
|
37
|
+
}>, {
|
|
38
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
39
|
+
message: string;
|
|
40
|
+
status: number;
|
|
41
|
+
};
|
|
42
|
+
}>, {
|
|
43
|
+
NOT_FOUND: {
|
|
44
|
+
message: string;
|
|
45
|
+
status: number;
|
|
46
|
+
};
|
|
47
|
+
CONFLICT: {
|
|
48
|
+
message: string;
|
|
49
|
+
status: number;
|
|
50
|
+
data: z.ZodObject<{
|
|
51
|
+
revision: z.ZodInt;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
};
|
|
54
|
+
NOT_ALLOWED: {
|
|
55
|
+
message: string;
|
|
56
|
+
status: number;
|
|
57
|
+
data: z.ZodObject<{
|
|
58
|
+
reason: z.ZodEnum<{
|
|
59
|
+
empty: "empty";
|
|
60
|
+
widens: "widens";
|
|
61
|
+
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
};
|
|
64
|
+
}>, Record<never, never>>;
|
|
65
|
+
editRule: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
66
|
+
ruleID: z.ZodString;
|
|
67
|
+
revision: z.ZodInt;
|
|
68
|
+
destinations: z.ZodArray<z.ZodString>;
|
|
69
|
+
clientActionID: z.ZodUUID;
|
|
70
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
71
|
+
ruleID: z.ZodString;
|
|
72
|
+
revision: z.ZodInt;
|
|
73
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
74
|
+
UNAUTHORIZED: {
|
|
75
|
+
message: string;
|
|
76
|
+
status: number;
|
|
77
|
+
};
|
|
78
|
+
}>, {
|
|
79
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
80
|
+
message: string;
|
|
81
|
+
status: number;
|
|
82
|
+
};
|
|
83
|
+
}>, {
|
|
84
|
+
NOT_FOUND: {
|
|
85
|
+
message: string;
|
|
86
|
+
status: number;
|
|
87
|
+
};
|
|
88
|
+
CONFLICT: {
|
|
89
|
+
message: string;
|
|
90
|
+
status: number;
|
|
91
|
+
data: z.ZodObject<{
|
|
92
|
+
revision: z.ZodInt;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
};
|
|
95
|
+
NOT_ALLOWED: {
|
|
96
|
+
message: string;
|
|
97
|
+
status: number;
|
|
98
|
+
data: z.ZodObject<{
|
|
99
|
+
reason: z.ZodEnum<{
|
|
100
|
+
empty: "empty";
|
|
101
|
+
widens: "widens";
|
|
102
|
+
}>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
};
|
|
105
|
+
}>, Record<never, never>>;
|
|
106
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
export type { BeforeInputFields } from './build-pending-input.js';
|
|
2
|
-
export { buildPendingInput } from './build-pending-input.js';
|
|
3
|
-
export { buildQueryUtils } from './build-query-utils.js';
|
|
4
|
-
export { buildSpanState } from './build-span-state.js';
|
|
5
|
-
export { clientHeaderName } from './client-header-name.js';
|
|
6
|
-
export { forgettableKinds } from './forgettable-kinds.js';
|
|
7
|
-
export { contract } from './contract.js';
|
|
8
|
-
export { hostContract } from './host-contract.js';
|
|
9
|
-
export { imageLimits } from './image-limits.js';
|
|
10
|
-
export { isTimeZone } from './is-time-zone.js';
|
|
11
|
-
export { pickSpanSource } from './pick-span-source.js';
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export { taskMessageResultSchema } from './task-message-result-schema.js';
|
|
1
|
+
export type { BeforeInputFields } from './span/build-pending-input.js';
|
|
2
|
+
export { buildPendingInput } from './span/build-pending-input.js';
|
|
3
|
+
export { buildQueryUtils } from './contract/build-query-utils.js';
|
|
4
|
+
export { buildSpanState } from './span/build-span-state.js';
|
|
5
|
+
export { clientHeaderName } from './contract/client-header-name.js';
|
|
6
|
+
export { forgettableKinds } from './contract/forgettable-kinds.js';
|
|
7
|
+
export { contract } from './contract/contract.js';
|
|
8
|
+
export { hostContract } from './contract/host-contract.js';
|
|
9
|
+
export { imageLimits } from './contract/image-limits.js';
|
|
10
|
+
export { isTimeZone } from './contract/is-time-zone.js';
|
|
11
|
+
export { pickSpanSource } from './span/pick-span-source.js';
|
|
12
|
+
export { renderSessionCookie } from './contract/render-session-cookie.js';
|
|
13
|
+
export { sessionCookieName } from './contract/session-cookie-name.js';
|
|
14
|
+
export { spanSchema } from './span/span-schema.js';
|
|
15
|
+
export { taskMessageInputSchema } from './message/task-message-input-schema.js';
|
|
16
|
+
export { taskMessageKindSchema } from './message/task-message-kind-schema.js';
|
|
17
|
+
export { taskMessageResultSchema } from './message/task-message-result-schema.js';
|
|
19
18
|
export type { ContractClient, ContractInputs, ContractOutputs, HostContractClient, HostContractInputs, ImageMediaType, LogRecord, PendingInput, Span, SpanSource, SpanState, } from './types.js';
|