@faable/auth-sdk 2.7.71 → 2.7.73

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.
@@ -5255,8 +5255,8 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
5255
5255
  data: {
5256
5256
  id: string;
5257
5257
  email: string;
5258
- team: unknown;
5259
- inviter?: unknown;
5258
+ team: string;
5259
+ inviter?: string | undefined;
5260
5260
  roles: string[];
5261
5261
  mode: "auto" | "invite";
5262
5262
  redirect_uri?: string | undefined;
@@ -19441,10 +19441,10 @@ export interface operations {
19441
19441
  id: string;
19442
19442
  /** @description Email address that was invited */
19443
19443
  email: string;
19444
- /** @description Team the invitee will be added to upon acceptance. */
19445
- team: components["schemas"]["Team"] | string | unknown;
19446
- /** @description User that created the invitation, if known. */
19447
- inviter?: components["schemas"]["User"] | string | unknown;
19444
+ /** @description Id of the team the invitee will be added to upon acceptance. */
19445
+ team: string;
19446
+ /** @description Id of the user that created the invitation, if known. */
19447
+ inviter?: string;
19448
19448
  /** @description Role ids that will be applied to the new TeamMember on acceptance. */
19449
19449
  roles: string[];
19450
19450
  /** @description `auto` adds the user directly if they already exist in the tenant and only falls back to a ticketed invite when the email is unknown. `invite` always issues a ticket + email regardless of whether the user exists. */
@@ -26635,10 +26635,12 @@ export interface operations {
26635
26635
  content: {
26636
26636
  "application/json": {
26637
26637
  client_id: string;
26638
- event: "callback_stalled" | "callback_no_verifier";
26638
+ event: "callback_stalled" | "callback_no_verifier" | "callback_recovered";
26639
26639
  /** @description Last step the SDK reached before reporting (`detected`, `verifier_loaded`, `token_request_sent`, `token_response`…). */
26640
26640
  stage?: string;
26641
26641
  elapsed_ms?: number;
26642
+ /** @description First characters of the authorization code, to join the report with the `Generated code=` and `/oauth/token` lines of the same sign-in. */
26643
+ code_prefix?: string;
26642
26644
  detail?: string;
26643
26645
  };
26644
26646
  };
package/dist/version.js CHANGED
@@ -9,13 +9,13 @@
9
9
  // login pages could not import the SDK at all. Same pattern as auth-js.
10
10
  //
11
11
  // The sentinels MUST stay byte-identical to the `from` values in `.releaserc`.
12
- export const version = "2.7.71";
12
+ export const version = "2.7.73";
13
13
  // Short git SHA of the released commit. The version dates a build; this names
14
14
  // the exact tree, so a canonical log line or an audit entry leads straight to
15
15
  // `git show <sha>`. Deliberately NOT hex: an unreleased build (dev, a local
16
16
  // link) cannot be mistaken for a real commit — auth only records values that
17
17
  // look like a SHA, and this one never will.
18
- export const commit = "b7541d7";
18
+ export const commit = "98ac905";
19
19
  // What this SDK writes in `x-faable-client`. Exported for a consumer that
20
20
  // builds a strategy on its own (outside `FaableAuthApi`) and still wants the
21
21
  // token request attributed — a bare `authClientCredentials` stamps only what
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/auth-sdk",
3
- "version": "2.7.71",
3
+ "version": "2.7.73",
4
4
  "author": "Marc Pomar <marc@faable.com>",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/spec/openapi.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "info": {
4
4
  "title": "@faablecloud/auth",
5
5
  "description": "Auth Platform made by Faable. Manage Users and Roles",
6
- "version": "2.58.0",
6
+ "version": "2.59.1",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -37185,28 +37185,12 @@
37185
37185
  "description": "Email address that was invited"
37186
37186
  },
37187
37187
  "team": {
37188
- "anyOf": [
37189
- {
37190
- "$ref": "#/components/schemas/Team"
37191
- },
37192
- {
37193
- "type": "string"
37194
- },
37195
- {}
37196
- ],
37197
- "description": "Team the invitee will be added to upon acceptance."
37188
+ "type": "string",
37189
+ "description": "Id of the team the invitee will be added to upon acceptance."
37198
37190
  },
37199
37191
  "inviter": {
37200
- "anyOf": [
37201
- {
37202
- "$ref": "#/components/schemas/User"
37203
- },
37204
- {
37205
- "type": "string"
37206
- },
37207
- {}
37208
- ],
37209
- "description": "User that created the invitation, if known."
37192
+ "type": "string",
37193
+ "description": "Id of the user that created the invitation, if known."
37210
37194
  },
37211
37195
  "roles": {
37212
37196
  "type": "array",
@@ -54783,6 +54767,12 @@
54783
54767
  "enum": [
54784
54768
  "callback_no_verifier"
54785
54769
  ]
54770
+ },
54771
+ {
54772
+ "type": "string",
54773
+ "enum": [
54774
+ "callback_recovered"
54775
+ ]
54786
54776
  }
54787
54777
  ]
54788
54778
  },
@@ -54796,6 +54786,11 @@
54796
54786
  "minimum": 0,
54797
54787
  "maximum": 3600000
54798
54788
  },
54789
+ "code_prefix": {
54790
+ "type": "string",
54791
+ "pattern": "^[0-9a-f-]{1,8}$",
54792
+ "description": "First characters of the authorization code, to join the report with the `Generated code=` and `/oauth/token` lines of the same sign-in."
54793
+ },
54799
54794
  "detail": {
54800
54795
  "type": "string",
54801
54796
  "maxLength": 500