@mycadet/credential-executor 0.13.0-dev.202610221914.02130b1 → 0.13.0-dev.202610231952.fa65022

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.
@@ -3,7 +3,7 @@
3
3
  * credential still authenticates.
4
4
  *
5
5
  * The daemon route is the authoritative serving side:
6
- * - `POST /v1/platform/verify-credential`
6
+ * - `POST /v1/cloud/verify-credential`
7
7
  * (`assistant/src/runtime/routes/cloud-routes.ts`)
8
8
  *
9
9
  * The daemon's platform client produces the verdict, the route reports it,
@@ -32,10 +32,10 @@ export type CloudCredentialVerificationStatus = z.infer<
32
32
  typeof CloudCredentialVerificationStatusSchema
33
33
  >;
34
34
 
35
- /** `POST /v1/platform/verify-credential` response body. */
36
- export const PlatformVerifyCredentialResponseSchema = z.object({
35
+ /** `POST /v1/cloud/verify-credential` response body. */
36
+ export const CloudVerifyCredentialResponseSchema = z.object({
37
37
  status: CloudCredentialVerificationStatusSchema,
38
38
  });
39
- export type PlatformVerifyCredentialResponse = z.infer<
40
- typeof PlatformVerifyCredentialResponseSchema
39
+ export type CloudVerifyCredentialResponse = z.infer<
40
+ typeof CloudVerifyCredentialResponseSchema
41
41
  >;
@@ -37,12 +37,6 @@
37
37
  */
38
38
  export const REMOTE_WEB_PAIRING_CODE_TTL_MS = 10 * 60 * 1000;
39
39
 
40
- /** `POST /v1/remote-web/pairing-challenge` request body. */
41
- export interface RemoteWebPairingChallengeRequest {
42
- /** Public https base URL the scanning device can reach the assistant at. */
43
- publicBaseUrl: string;
44
- }
45
-
46
40
  /** `POST /v1/remote-web/pairing-challenge` success response body (200). */
47
41
  export interface RemoteWebPairingChallengeResponse {
48
42
  /** Opaque secret the paired device exchanges for a token. */
@@ -51,6 +45,12 @@ export interface RemoteWebPairingChallengeResponse {
51
45
  userCode: string;
52
46
  /** URL the device opens to complete pairing. */
53
47
  verificationUri: string;
48
+ /**
49
+ * The base URL the challenge was minted for (echoed into verificationUri).
50
+ * The gateway self-sources it — the request's own host through the trusted
51
+ * edge, else its recorded ingress URL; callers cannot request a URL.
52
+ */
53
+ publicBaseUrl: string;
54
54
  /** ISO-8601 instant the challenge expires. */
55
55
  expiresAt: string;
56
56
  /** Seconds until the challenge expires. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mycadet/credential-executor",
3
- "version": "0.13.0-dev.202610221914.02130b1",
3
+ "version": "0.13.0-dev.202610231952.fa65022",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/vargasjr-dev/mycadet-temp.git"