@tai42/api-client 30.0.1 → 31.0.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.
@@ -100,10 +100,12 @@ export type ClaimLinkCreated = z.infer<typeof claimLinkCreated>;
100
100
  * `POST /api/auth/logout` — the single authed logout dispatcher's result.
101
101
  * `revoked` is `true` when a live accounts session was revoked; a plain `sk-` key
102
102
  * has nothing to revoke and answers `404` (a loud absent-session signal), never a
103
- * `revoked: false` body. Non-strict, so a SUCCESSFUL logout never throws
104
- * `ApiSchemaError` on an additive field.
103
+ * `revoked: false` body. `end_session_url` is the identity provider's end-session
104
+ * URL when the session came through one, `null` otherwise. Non-strict, so a
105
+ * SUCCESSFUL logout never throws `ApiSchemaError` on an additive field.
105
106
  */
106
107
  export declare const logoutResult: z.ZodObject<{
108
+ end_session_url: z.ZodDefault<z.ZodNullable<z.ZodString>>;
107
109
  revoked: z.ZodBoolean;
108
110
  }, z.core.$strip>;
109
111
  export type LogoutResult = z.infer<typeof logoutResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.d.ts","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAAA,kEAAkE;AAClE,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAI7B;;;;GAIG;AACH,eAAO,MAAM,UAAU;;;iBAAqB,CAAC;AAC7C,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;;;GAKG;AACH,eAAO,MAAM,YAAY;;;;iBAAuB,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;GAIG;AACH,eAAO,MAAM,WAAW;;;;;;iBAAsB,CAAC;AAC/C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;;;;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;;;;;;;;;iBAA2B,CAAC;AACrD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;iBAA0B,CAAC;AACxD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY;;;iBAAuB,CAAC;AACjD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB;;;;;;iBAA2B,CAAC;AACzD,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -43,8 +43,9 @@ export const claimLinkCreated = openapi.claimLinkResult;
43
43
  * `POST /api/auth/logout` — the single authed logout dispatcher's result.
44
44
  * `revoked` is `true` when a live accounts session was revoked; a plain `sk-` key
45
45
  * has nothing to revoke and answers `404` (a loud absent-session signal), never a
46
- * `revoked: false` body. Non-strict, so a SUCCESSFUL logout never throws
47
- * `ApiSchemaError` on an additive field.
46
+ * `revoked: false` body. `end_session_url` is the identity provider's end-session
47
+ * URL when the session came through one, `null` otherwise. Non-strict, so a
48
+ * SUCCESSFUL logout never throws `ApiSchemaError` on an additive field.
48
49
  */
49
50
  export const logoutResult = openapi.logoutResult;
50
51
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;AAG7C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAGjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAG/C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAGrD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;AAGxD;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAGjD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC"}
1
+ {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/schemas/capabilities.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,8BAA8B,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;AAG7C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAGjD;;;;GAIG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;AAG/C;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC;AAGrD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,eAAe,CAAC;AAGxD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;AAGjD;;;;;GAKG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tai42/api-client",
3
- "version": "30.0.1",
3
+ "version": "31.0.0",
4
4
  "description": "Typed client for the tai42-skeleton HTTP API.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "tai42 <oss@tai42.ai>",
@@ -148,7 +148,8 @@ export function logoutClient(t: Transport) {
148
148
  // session server-side before the shell clears local state. A plain `sk-` key
149
149
  // has nothing to revoke and answers 404 (surfaced as an `ApiError`, quiet at
150
150
  // the call site); a 5xx/network failure is a real revoke failure the shell
151
- // surfaces loudly.
151
+ // surfaces loudly. The result's `end_session_url` is where the shell sends the
152
+ // browser after clearing local auth.
152
153
  logout: () => req(apiRoutes.post_api_auth_logout.path, s.logoutResult, { method: 'POST' }),
153
154
  };
154
155
  }
@@ -565,7 +565,7 @@ export type SetupLogin = z.infer<typeof setupLogin>;
565
565
  export const loginMethodsListing = z.object({ "claim_fragment_key": z.string(), "methods": z.array(z.discriminatedUnion("shape", [formMethod, buttonMethod])), "needs_setup": z.boolean(), "setup_login": setupLogin.nullable().default(null) });
566
566
  export type LoginMethodsListing = z.infer<typeof loginMethodsListing>;
567
567
 
568
- export const logoutResult = z.object({ "revoked": z.boolean() });
568
+ export const logoutResult = z.object({ "end_session_url": z.string().nullable().default(null), "revoked": z.boolean() });
569
569
  export type LogoutResult = z.infer<typeof logoutResult>;
570
570
 
571
571
  export const mCPConfig = z.object({ "args": z.array(z.string()).default([]), "command": z.string().nullable().default(null), "env": z.record(z.string(), z.string()).default({}), "headers": z.record(z.string(), z.string()).default({}), "type": z.string().nullable().default(null), "uds": z.string().nullable().default(null), "url": z.string().nullable().default(null) }).strict();
@@ -57,8 +57,9 @@ export type ClaimLinkCreated = z.infer<typeof claimLinkCreated>;
57
57
  * `POST /api/auth/logout` — the single authed logout dispatcher's result.
58
58
  * `revoked` is `true` when a live accounts session was revoked; a plain `sk-` key
59
59
  * has nothing to revoke and answers `404` (a loud absent-session signal), never a
60
- * `revoked: false` body. Non-strict, so a SUCCESSFUL logout never throws
61
- * `ApiSchemaError` on an additive field.
60
+ * `revoked: false` body. `end_session_url` is the identity provider's end-session
61
+ * URL when the session came through one, `null` otherwise. Non-strict, so a
62
+ * SUCCESSFUL logout never throws `ApiSchemaError` on an additive field.
62
63
  */
63
64
  export const logoutResult = openapi.logoutResult;
64
65
  export type LogoutResult = z.infer<typeof logoutResult>;