@mycadet/credential-executor 0.13.0-dev.202611142107.f5e00a2 → 0.13.0-dev.202611142321.f0c8539
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.
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Wire contracts for the remote-web pairing flow — the RFC 8628-style
|
|
3
5
|
* device-code exchange that connects a browser (or the iOS app) to a
|
|
@@ -59,6 +61,16 @@ export interface RemoteWebPairingChallengeResponse {
|
|
|
59
61
|
intervalSeconds: number;
|
|
60
62
|
}
|
|
61
63
|
|
|
64
|
+
export const RemoteWebPairingChallengeResponseSchema = z.object({
|
|
65
|
+
deviceCode: z.string(),
|
|
66
|
+
userCode: z.string(),
|
|
67
|
+
verificationUri: z.string(),
|
|
68
|
+
publicBaseUrl: z.string(),
|
|
69
|
+
expiresAt: z.string(),
|
|
70
|
+
expiresInSeconds: z.number(),
|
|
71
|
+
intervalSeconds: z.number(),
|
|
72
|
+
}) satisfies z.ZodType<RemoteWebPairingChallengeResponse>;
|
|
73
|
+
|
|
62
74
|
/** `POST /v1/remote-web/pairing-verification` request body. */
|
|
63
75
|
export interface RemoteWebPairingVerificationRequest {
|
|
64
76
|
/** The `userCode` from the challenge, entered/scanned on the host. */
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Wire contracts for the remote-web pairing flow — the RFC 8628-style
|
|
3
5
|
* device-code exchange that connects a browser (or the iOS app) to a
|
|
@@ -59,6 +61,16 @@ export interface RemoteWebPairingChallengeResponse {
|
|
|
59
61
|
intervalSeconds: number;
|
|
60
62
|
}
|
|
61
63
|
|
|
64
|
+
export const RemoteWebPairingChallengeResponseSchema = z.object({
|
|
65
|
+
deviceCode: z.string(),
|
|
66
|
+
userCode: z.string(),
|
|
67
|
+
verificationUri: z.string(),
|
|
68
|
+
publicBaseUrl: z.string(),
|
|
69
|
+
expiresAt: z.string(),
|
|
70
|
+
expiresInSeconds: z.number(),
|
|
71
|
+
intervalSeconds: z.number(),
|
|
72
|
+
}) satisfies z.ZodType<RemoteWebPairingChallengeResponse>;
|
|
73
|
+
|
|
62
74
|
/** `POST /v1/remote-web/pairing-verification` request body. */
|
|
63
75
|
export interface RemoteWebPairingVerificationRequest {
|
|
64
76
|
/** The `userCode` from the challenge, entered/scanned on the host. */
|