@heynixie/contract 0.72.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/contract/approval-contract.d.ts +52 -4
- package/dist/contract/authentication-response-schema.d.ts +17 -0
- package/dist/contract/base64-url-schema.d.ts +2 -0
- package/dist/contract/build-query-utils.d.ts +366 -23
- package/dist/contract/challenge-for-schema.d.ts +18 -0
- package/dist/contract/choice-schema.d.ts +7 -0
- package/dist/contract/contract.d.ts +321 -23
- 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 -1
- package/dist/contract/host-contract.d.ts +28 -199
- package/dist/contract/host-passkey-contract.d.ts +29 -0
- package/dist/contract/memory-view-contract.d.ts +0 -13
- 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/registration-response-schema.d.ts +19 -0
- package/dist/contract/request-options-schema.d.ts +16 -0
- package/dist/contract/transports-schema.d.ts +2 -0
- package/dist/contract/user-verification-schema.d.ts +6 -0
- package/dist/index.js +1010 -830
- package/package.json +1 -1
|
@@ -1152,7 +1152,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1152
1152
|
isSensitive: boolean;
|
|
1153
1153
|
itemID: string;
|
|
1154
1154
|
kind: "fact" | "self";
|
|
1155
|
-
origin: "conversation" | "lapse" | "
|
|
1155
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1156
1156
|
shortID: string;
|
|
1157
1157
|
source: "owner" | "owner_data" | "untrusted";
|
|
1158
1158
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1195,7 +1195,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1195
1195
|
isSensitive: boolean;
|
|
1196
1196
|
itemID: string;
|
|
1197
1197
|
kind: "fact" | "self";
|
|
1198
|
-
origin: "conversation" | "lapse" | "
|
|
1198
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1199
1199
|
shortID: string;
|
|
1200
1200
|
source: "owner" | "owner_data" | "untrusted";
|
|
1201
1201
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1231,7 +1231,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1231
1231
|
isSensitive: boolean;
|
|
1232
1232
|
itemID: string;
|
|
1233
1233
|
kind: "fact" | "self";
|
|
1234
|
-
origin: "conversation" | "lapse" | "
|
|
1234
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1235
1235
|
shortID: string;
|
|
1236
1236
|
source: "owner" | "owner_data" | "untrusted";
|
|
1237
1237
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1263,7 +1263,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1263
1263
|
isSensitive: boolean;
|
|
1264
1264
|
itemID: string;
|
|
1265
1265
|
kind: "fact" | "self";
|
|
1266
|
-
origin: "conversation" | "lapse" | "
|
|
1266
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1267
1267
|
shortID: string;
|
|
1268
1268
|
source: "owner" | "owner_data" | "untrusted";
|
|
1269
1269
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1291,7 +1291,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1291
1291
|
sequence: number;
|
|
1292
1292
|
thread: string;
|
|
1293
1293
|
} | null;
|
|
1294
|
-
origin: "conversation" | "lapse" | "
|
|
1294
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1295
1295
|
proposalID: string | null;
|
|
1296
1296
|
recordedAt: Date;
|
|
1297
1297
|
source: "owner" | "owner_data" | "untrusted";
|
|
@@ -1415,7 +1415,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1415
1415
|
isSensitive: boolean;
|
|
1416
1416
|
itemID: string;
|
|
1417
1417
|
kind: "fact" | "self";
|
|
1418
|
-
origin: "conversation" | "lapse" | "
|
|
1418
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1419
1419
|
shortID: string;
|
|
1420
1420
|
source: "owner" | "owner_data" | "untrusted";
|
|
1421
1421
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1431,7 +1431,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1431
1431
|
sequence: number;
|
|
1432
1432
|
version: number | null;
|
|
1433
1433
|
}[];
|
|
1434
|
-
kind: "
|
|
1434
|
+
kind: "run" | "turn";
|
|
1435
1435
|
messageSequence: number | null;
|
|
1436
1436
|
noticeKey: string;
|
|
1437
1437
|
proposed: number;
|
|
@@ -1548,7 +1548,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1548
1548
|
isSensitive: boolean;
|
|
1549
1549
|
itemID: string;
|
|
1550
1550
|
kind: "fact" | "self";
|
|
1551
|
-
origin: "conversation" | "lapse" | "
|
|
1551
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1552
1552
|
shortID: string;
|
|
1553
1553
|
source: "owner" | "owner_data" | "untrusted";
|
|
1554
1554
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1576,7 +1576,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1576
1576
|
sequence: number;
|
|
1577
1577
|
thread: string;
|
|
1578
1578
|
} | null;
|
|
1579
|
-
origin: "conversation" | "lapse" | "
|
|
1579
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1580
1580
|
proposalID: string | null;
|
|
1581
1581
|
recordedAt: Date;
|
|
1582
1582
|
source: "owner" | "owner_data" | "untrusted";
|
|
@@ -1675,7 +1675,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1675
1675
|
isSensitive: boolean;
|
|
1676
1676
|
itemID: string;
|
|
1677
1677
|
kind: "fact" | "self";
|
|
1678
|
-
origin: "conversation" | "lapse" | "
|
|
1678
|
+
origin: "conversation" | "lapse" | "owner" | "task";
|
|
1679
1679
|
shortID: string;
|
|
1680
1680
|
source: "owner" | "owner_data" | "untrusted";
|
|
1681
1681
|
state: "active" | "forgetting" | "forgotten" | "retired";
|
|
@@ -1938,14 +1938,6 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
1938
1938
|
status: number;
|
|
1939
1939
|
};
|
|
1940
1940
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
1941
|
-
consolidatorStatus: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
1942
|
-
isEnabled: boolean;
|
|
1943
|
-
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1944
|
-
UNAUTHORIZED: {
|
|
1945
|
-
message: string;
|
|
1946
|
-
status: number;
|
|
1947
|
-
};
|
|
1948
|
-
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
1949
1941
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
1950
1942
|
nixie: {
|
|
1951
1943
|
read: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
@@ -2203,13 +2195,13 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2203
2195
|
lapseAt: Date;
|
|
2204
2196
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2205
2197
|
operation: "pin" | "remember" | "retire";
|
|
2206
|
-
origin: "conversation" | "
|
|
2198
|
+
origin: "conversation" | "owner" | "task";
|
|
2207
2199
|
proposalID: string;
|
|
2208
2200
|
quote: string | null;
|
|
2209
2201
|
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "sensitive" | "subject_change" | "token_missing";
|
|
2210
2202
|
source: "owner" | "owner_data" | "untrusted";
|
|
2211
2203
|
sources: {
|
|
2212
|
-
origin: "conversation" | "
|
|
2204
|
+
origin: "conversation" | "owner" | "task";
|
|
2213
2205
|
proposedAt: Date;
|
|
2214
2206
|
thread: string | null;
|
|
2215
2207
|
}[];
|
|
@@ -2224,6 +2216,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2224
2216
|
name: string;
|
|
2225
2217
|
} | null;
|
|
2226
2218
|
choices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2219
|
+
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2227
2220
|
}[];
|
|
2228
2221
|
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2229
2222
|
UNAUTHORIZED: {
|
|
@@ -2282,13 +2275,13 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2282
2275
|
lapseAt: Date;
|
|
2283
2276
|
newSubject: "owner" | "self" | "shared" | null;
|
|
2284
2277
|
operation: "pin" | "remember" | "retire";
|
|
2285
|
-
origin: "conversation" | "
|
|
2278
|
+
origin: "conversation" | "owner" | "task";
|
|
2286
2279
|
proposalID: string;
|
|
2287
2280
|
quote: string | null;
|
|
2288
2281
|
reason: "ambiguous_target" | "ask_rule" | "checker_not_asserted" | "checker_unreachable" | "checker_unsure" | "forgotten_evidence" | "from_photo" | "invisible_character" | "no_quote" | "other" | "pinned" | "quote_in_quoted_block" | "quote_not_typed" | "self_note" | "sensitive" | "subject_change" | "token_missing";
|
|
2289
2282
|
source: "owner" | "owner_data" | "untrusted";
|
|
2290
2283
|
sources: {
|
|
2291
|
-
origin: "conversation" | "
|
|
2284
|
+
origin: "conversation" | "owner" | "task";
|
|
2292
2285
|
proposedAt: Date;
|
|
2293
2286
|
thread: string | null;
|
|
2294
2287
|
}[];
|
|
@@ -2303,6 +2296,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2303
2296
|
name: string;
|
|
2304
2297
|
} | null;
|
|
2305
2298
|
choices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2299
|
+
passkeyChoices: ("always_allow" | "approve" | "decline" | "defer")[];
|
|
2306
2300
|
answeredOn: string | null;
|
|
2307
2301
|
isAnsweredHere: boolean;
|
|
2308
2302
|
}[];
|
|
@@ -2330,6 +2324,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2330
2324
|
} | undefined;
|
|
2331
2325
|
ignoreCloseMatch?: boolean | undefined;
|
|
2332
2326
|
} | undefined;
|
|
2327
|
+
passkey?: {
|
|
2328
|
+
id: string;
|
|
2329
|
+
rawId: string;
|
|
2330
|
+
response: {
|
|
2331
|
+
clientDataJSON: string;
|
|
2332
|
+
authenticatorData: string;
|
|
2333
|
+
signature: string;
|
|
2334
|
+
userHandle?: string | undefined;
|
|
2335
|
+
};
|
|
2336
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2337
|
+
clientExtensionResults: Record<string, never>;
|
|
2338
|
+
type: "public-key";
|
|
2339
|
+
} | undefined;
|
|
2333
2340
|
}, {
|
|
2334
2341
|
proposalID: string;
|
|
2335
2342
|
state: "approved";
|
|
@@ -2359,6 +2366,25 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2359
2366
|
status: number;
|
|
2360
2367
|
};
|
|
2361
2368
|
}>, {
|
|
2369
|
+
NO_PASSKEY: {
|
|
2370
|
+
message: string;
|
|
2371
|
+
status: number;
|
|
2372
|
+
};
|
|
2373
|
+
PASSKEY_FAILED: {
|
|
2374
|
+
message: string;
|
|
2375
|
+
status: number;
|
|
2376
|
+
data: import("zod").ZodObject<{
|
|
2377
|
+
reason: import("zod").ZodEnum<{
|
|
2378
|
+
binding: "binding";
|
|
2379
|
+
counter: "counter";
|
|
2380
|
+
no_user_verification: "no_user_verification";
|
|
2381
|
+
origin: "origin";
|
|
2382
|
+
signature: "signature";
|
|
2383
|
+
unknown_challenge: "unknown_challenge";
|
|
2384
|
+
unknown_passkey: "unknown_passkey";
|
|
2385
|
+
}>;
|
|
2386
|
+
}, import("zod/v4/core").$strip>;
|
|
2387
|
+
};
|
|
2362
2388
|
CONFLICT: {
|
|
2363
2389
|
message: string;
|
|
2364
2390
|
status: number;
|
|
@@ -2390,6 +2416,10 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2390
2416
|
reason: import("zod").ZodString;
|
|
2391
2417
|
}, import("zod/v4/core").$strip>;
|
|
2392
2418
|
};
|
|
2419
|
+
PASSKEY_REQUIRED: {
|
|
2420
|
+
message: string;
|
|
2421
|
+
status: number;
|
|
2422
|
+
};
|
|
2393
2423
|
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2394
2424
|
proposalID: string;
|
|
2395
2425
|
actionHash: string;
|
|
@@ -2406,6 +2436,19 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2406
2436
|
} | undefined;
|
|
2407
2437
|
ignoreCloseMatch?: boolean | undefined;
|
|
2408
2438
|
} | undefined;
|
|
2439
|
+
passkey?: {
|
|
2440
|
+
id: string;
|
|
2441
|
+
rawId: string;
|
|
2442
|
+
response: {
|
|
2443
|
+
clientDataJSON: string;
|
|
2444
|
+
authenticatorData: string;
|
|
2445
|
+
signature: string;
|
|
2446
|
+
userHandle?: string | undefined;
|
|
2447
|
+
};
|
|
2448
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2449
|
+
clientExtensionResults: Record<string, never>;
|
|
2450
|
+
type: "public-key";
|
|
2451
|
+
} | undefined;
|
|
2409
2452
|
}>;
|
|
2410
2453
|
answerProposals: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2411
2454
|
answers: {
|
|
@@ -2446,7 +2489,7 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2446
2489
|
};
|
|
2447
2490
|
} | {
|
|
2448
2491
|
proposalID: string;
|
|
2449
|
-
error: "CLOSED" | "CONFLICT" | "NOT_ALLOWED";
|
|
2492
|
+
error: "CLOSED" | "CONFLICT" | "NOT_ALLOWED" | "PASSKEY_REQUIRED";
|
|
2450
2493
|
current?: {
|
|
2451
2494
|
actionHash: string;
|
|
2452
2495
|
ruleHash: string | null;
|
|
@@ -2484,6 +2527,306 @@ export declare function buildQueryUtils(client: ContractClient): {
|
|
|
2484
2527
|
}[];
|
|
2485
2528
|
}>;
|
|
2486
2529
|
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2530
|
+
passkeys: {
|
|
2531
|
+
challenge: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2532
|
+
for: {
|
|
2533
|
+
kind: "answer";
|
|
2534
|
+
proposalID: string;
|
|
2535
|
+
actionHash: string;
|
|
2536
|
+
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2537
|
+
ruleHash?: string | undefined;
|
|
2538
|
+
} | {
|
|
2539
|
+
kind: "register";
|
|
2540
|
+
} | {
|
|
2541
|
+
kind: "revoke";
|
|
2542
|
+
passkeyID: string;
|
|
2543
|
+
};
|
|
2544
|
+
}, {
|
|
2545
|
+
options: {
|
|
2546
|
+
challenge: string;
|
|
2547
|
+
rpId: string;
|
|
2548
|
+
allowCredentials: {
|
|
2549
|
+
id: string;
|
|
2550
|
+
type: "public-key";
|
|
2551
|
+
transports?: string[] | undefined;
|
|
2552
|
+
}[];
|
|
2553
|
+
userVerification: "discouraged" | "preferred" | "required";
|
|
2554
|
+
timeout: number;
|
|
2555
|
+
};
|
|
2556
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2557
|
+
UNAUTHORIZED: {
|
|
2558
|
+
message: string;
|
|
2559
|
+
status: number;
|
|
2560
|
+
};
|
|
2561
|
+
}>, {
|
|
2562
|
+
NO_PASSKEY: {
|
|
2563
|
+
message: string;
|
|
2564
|
+
status: number;
|
|
2565
|
+
};
|
|
2566
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2567
|
+
for: {
|
|
2568
|
+
kind: "answer";
|
|
2569
|
+
proposalID: string;
|
|
2570
|
+
actionHash: string;
|
|
2571
|
+
choice: "always_allow" | "approve" | "decline" | "defer";
|
|
2572
|
+
ruleHash?: string | undefined;
|
|
2573
|
+
} | {
|
|
2574
|
+
kind: "register";
|
|
2575
|
+
} | {
|
|
2576
|
+
kind: "revoke";
|
|
2577
|
+
passkeyID: string;
|
|
2578
|
+
};
|
|
2579
|
+
}>;
|
|
2580
|
+
registrationOptions: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2581
|
+
code?: string | undefined;
|
|
2582
|
+
passkey?: {
|
|
2583
|
+
id: string;
|
|
2584
|
+
rawId: string;
|
|
2585
|
+
response: {
|
|
2586
|
+
clientDataJSON: string;
|
|
2587
|
+
authenticatorData: string;
|
|
2588
|
+
signature: string;
|
|
2589
|
+
userHandle?: string | undefined;
|
|
2590
|
+
};
|
|
2591
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2592
|
+
clientExtensionResults: Record<string, never>;
|
|
2593
|
+
type: "public-key";
|
|
2594
|
+
} | undefined;
|
|
2595
|
+
}, {
|
|
2596
|
+
options: {
|
|
2597
|
+
rp: {
|
|
2598
|
+
id: string;
|
|
2599
|
+
name: string;
|
|
2600
|
+
};
|
|
2601
|
+
user: {
|
|
2602
|
+
id: string;
|
|
2603
|
+
name: string;
|
|
2604
|
+
displayName: string;
|
|
2605
|
+
};
|
|
2606
|
+
challenge: string;
|
|
2607
|
+
pubKeyCredParams: {
|
|
2608
|
+
type: "public-key";
|
|
2609
|
+
alg: number;
|
|
2610
|
+
}[];
|
|
2611
|
+
timeout: number;
|
|
2612
|
+
excludeCredentials: {
|
|
2613
|
+
id: string;
|
|
2614
|
+
type: "public-key";
|
|
2615
|
+
transports?: string[] | undefined;
|
|
2616
|
+
}[];
|
|
2617
|
+
authenticatorSelection: {
|
|
2618
|
+
residentKey: "discouraged" | "preferred" | "required";
|
|
2619
|
+
requireResidentKey: boolean;
|
|
2620
|
+
userVerification: "discouraged" | "preferred" | "required";
|
|
2621
|
+
};
|
|
2622
|
+
attestation: "direct" | "enterprise" | "indirect" | "none";
|
|
2623
|
+
};
|
|
2624
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2625
|
+
UNAUTHORIZED: {
|
|
2626
|
+
message: string;
|
|
2627
|
+
status: number;
|
|
2628
|
+
};
|
|
2629
|
+
}>, {
|
|
2630
|
+
PASSKEY_FAILED: {
|
|
2631
|
+
message: string;
|
|
2632
|
+
status: number;
|
|
2633
|
+
data: import("zod").ZodObject<{
|
|
2634
|
+
reason: import("zod").ZodEnum<{
|
|
2635
|
+
binding: "binding";
|
|
2636
|
+
counter: "counter";
|
|
2637
|
+
no_user_verification: "no_user_verification";
|
|
2638
|
+
origin: "origin";
|
|
2639
|
+
signature: "signature";
|
|
2640
|
+
unknown_challenge: "unknown_challenge";
|
|
2641
|
+
unknown_passkey: "unknown_passkey";
|
|
2642
|
+
}>;
|
|
2643
|
+
}, import("zod/v4/core").$strip>;
|
|
2644
|
+
};
|
|
2645
|
+
TOO_MANY_PASSKEYS: {
|
|
2646
|
+
message: string;
|
|
2647
|
+
status: number;
|
|
2648
|
+
};
|
|
2649
|
+
ORIGIN_UNSUPPORTED: {
|
|
2650
|
+
message: string;
|
|
2651
|
+
status: number;
|
|
2652
|
+
};
|
|
2653
|
+
ORIGIN_CHANGED: {
|
|
2654
|
+
message: string;
|
|
2655
|
+
status: number;
|
|
2656
|
+
};
|
|
2657
|
+
}>, {
|
|
2658
|
+
CODE_REQUIRED: {
|
|
2659
|
+
message: string;
|
|
2660
|
+
status: number;
|
|
2661
|
+
};
|
|
2662
|
+
CODE_INVALID: {
|
|
2663
|
+
message: string;
|
|
2664
|
+
status: number;
|
|
2665
|
+
};
|
|
2666
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2667
|
+
code?: string | undefined;
|
|
2668
|
+
passkey?: {
|
|
2669
|
+
id: string;
|
|
2670
|
+
rawId: string;
|
|
2671
|
+
response: {
|
|
2672
|
+
clientDataJSON: string;
|
|
2673
|
+
authenticatorData: string;
|
|
2674
|
+
signature: string;
|
|
2675
|
+
userHandle?: string | undefined;
|
|
2676
|
+
};
|
|
2677
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2678
|
+
clientExtensionResults: Record<string, never>;
|
|
2679
|
+
type: "public-key";
|
|
2680
|
+
} | undefined;
|
|
2681
|
+
}>;
|
|
2682
|
+
register: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2683
|
+
clientActionID: string;
|
|
2684
|
+
response: {
|
|
2685
|
+
id: string;
|
|
2686
|
+
rawId: string;
|
|
2687
|
+
response: {
|
|
2688
|
+
clientDataJSON: string;
|
|
2689
|
+
attestationObject: string;
|
|
2690
|
+
authenticatorData?: string | undefined;
|
|
2691
|
+
transports?: string[] | undefined;
|
|
2692
|
+
publicKeyAlgorithm?: number | undefined;
|
|
2693
|
+
publicKey?: string | undefined;
|
|
2694
|
+
};
|
|
2695
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2696
|
+
clientExtensionResults: Record<string, never>;
|
|
2697
|
+
type: "public-key";
|
|
2698
|
+
};
|
|
2699
|
+
label?: string | undefined;
|
|
2700
|
+
}, {
|
|
2701
|
+
passkeyID: string;
|
|
2702
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2703
|
+
UNAUTHORIZED: {
|
|
2704
|
+
message: string;
|
|
2705
|
+
status: number;
|
|
2706
|
+
};
|
|
2707
|
+
}>, {
|
|
2708
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2709
|
+
message: string;
|
|
2710
|
+
status: number;
|
|
2711
|
+
};
|
|
2712
|
+
}>, {
|
|
2713
|
+
REGISTRATION_FAILED: {
|
|
2714
|
+
message: string;
|
|
2715
|
+
status: number;
|
|
2716
|
+
data: import("zod").ZodObject<{
|
|
2717
|
+
reason: import("zod").ZodString;
|
|
2718
|
+
}, import("zod/v4/core").$strip>;
|
|
2719
|
+
};
|
|
2720
|
+
TOO_MANY_PASSKEYS: {
|
|
2721
|
+
message: string;
|
|
2722
|
+
status: number;
|
|
2723
|
+
};
|
|
2724
|
+
ORIGIN_UNSUPPORTED: {
|
|
2725
|
+
message: string;
|
|
2726
|
+
status: number;
|
|
2727
|
+
};
|
|
2728
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2729
|
+
clientActionID: string;
|
|
2730
|
+
response: {
|
|
2731
|
+
id: string;
|
|
2732
|
+
rawId: string;
|
|
2733
|
+
response: {
|
|
2734
|
+
clientDataJSON: string;
|
|
2735
|
+
attestationObject: string;
|
|
2736
|
+
authenticatorData?: string | undefined;
|
|
2737
|
+
transports?: string[] | undefined;
|
|
2738
|
+
publicKeyAlgorithm?: number | undefined;
|
|
2739
|
+
publicKey?: string | undefined;
|
|
2740
|
+
};
|
|
2741
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2742
|
+
clientExtensionResults: Record<string, never>;
|
|
2743
|
+
type: "public-key";
|
|
2744
|
+
};
|
|
2745
|
+
label?: string | undefined;
|
|
2746
|
+
}>;
|
|
2747
|
+
list: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, unknown, {
|
|
2748
|
+
passkeys: {
|
|
2749
|
+
passkeyID: string;
|
|
2750
|
+
label: string;
|
|
2751
|
+
synced: boolean;
|
|
2752
|
+
authorizedBy: string;
|
|
2753
|
+
registeredAt: Date;
|
|
2754
|
+
lastUsedAt: Date | null;
|
|
2755
|
+
revokedAt: Date | null;
|
|
2756
|
+
}[];
|
|
2757
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2758
|
+
UNAUTHORIZED: {
|
|
2759
|
+
message: string;
|
|
2760
|
+
status: number;
|
|
2761
|
+
};
|
|
2762
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2763
|
+
revoke: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2764
|
+
clientActionID: string;
|
|
2765
|
+
passkeyID: string;
|
|
2766
|
+
passkey: {
|
|
2767
|
+
id: string;
|
|
2768
|
+
rawId: string;
|
|
2769
|
+
response: {
|
|
2770
|
+
clientDataJSON: string;
|
|
2771
|
+
authenticatorData: string;
|
|
2772
|
+
signature: string;
|
|
2773
|
+
userHandle?: string | undefined;
|
|
2774
|
+
};
|
|
2775
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2776
|
+
clientExtensionResults: Record<string, never>;
|
|
2777
|
+
type: "public-key";
|
|
2778
|
+
};
|
|
2779
|
+
}, {
|
|
2780
|
+
revokedAt: Date;
|
|
2781
|
+
}, import("@orpc/contract").ErrorFromErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2782
|
+
UNAUTHORIZED: {
|
|
2783
|
+
message: string;
|
|
2784
|
+
status: number;
|
|
2785
|
+
};
|
|
2786
|
+
}>, {
|
|
2787
|
+
CLIENT_ACTION_ID_REUSED: {
|
|
2788
|
+
message: string;
|
|
2789
|
+
status: number;
|
|
2790
|
+
};
|
|
2791
|
+
}>, {
|
|
2792
|
+
PASSKEY_FAILED: {
|
|
2793
|
+
message: string;
|
|
2794
|
+
status: number;
|
|
2795
|
+
data: import("zod").ZodObject<{
|
|
2796
|
+
reason: import("zod").ZodEnum<{
|
|
2797
|
+
binding: "binding";
|
|
2798
|
+
counter: "counter";
|
|
2799
|
+
no_user_verification: "no_user_verification";
|
|
2800
|
+
origin: "origin";
|
|
2801
|
+
signature: "signature";
|
|
2802
|
+
unknown_challenge: "unknown_challenge";
|
|
2803
|
+
unknown_passkey: "unknown_passkey";
|
|
2804
|
+
}>;
|
|
2805
|
+
}, import("zod/v4/core").$strip>;
|
|
2806
|
+
};
|
|
2807
|
+
}>, {
|
|
2808
|
+
NOT_FOUND: {
|
|
2809
|
+
message: string;
|
|
2810
|
+
status: number;
|
|
2811
|
+
};
|
|
2812
|
+
}>>> & import("@orpc/tanstack-query").GeneralUtils<{
|
|
2813
|
+
clientActionID: string;
|
|
2814
|
+
passkeyID: string;
|
|
2815
|
+
passkey: {
|
|
2816
|
+
id: string;
|
|
2817
|
+
rawId: string;
|
|
2818
|
+
response: {
|
|
2819
|
+
clientDataJSON: string;
|
|
2820
|
+
authenticatorData: string;
|
|
2821
|
+
signature: string;
|
|
2822
|
+
userHandle?: string | undefined;
|
|
2823
|
+
};
|
|
2824
|
+
authenticatorAttachment?: "cross-platform" | "platform" | undefined;
|
|
2825
|
+
clientExtensionResults: Record<string, never>;
|
|
2826
|
+
type: "public-key";
|
|
2827
|
+
};
|
|
2828
|
+
}>;
|
|
2829
|
+
} & import("@orpc/tanstack-query").GeneralUtils<unknown>;
|
|
2487
2830
|
log: {
|
|
2488
2831
|
follow: import("@orpc/tanstack-query").ProcedureUtils<Record<never, never>, {
|
|
2489
2832
|
afterSequence: number;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const challengeForSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"answer">;
|
|
4
|
+
proposalID: z.ZodString;
|
|
5
|
+
actionHash: z.ZodString;
|
|
6
|
+
choice: z.ZodEnum<{
|
|
7
|
+
always_allow: "always_allow";
|
|
8
|
+
approve: "approve";
|
|
9
|
+
decline: "decline";
|
|
10
|
+
defer: "defer";
|
|
11
|
+
}>;
|
|
12
|
+
ruleHash: z.ZodOptional<z.ZodString>;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
kind: z.ZodLiteral<"register">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
kind: z.ZodLiteral<"revoke">;
|
|
17
|
+
passkeyID: z.ZodString;
|
|
18
|
+
}, z.core.$strip>], "kind">;
|