@faable/auth-sdk 2.9.24 → 2.9.26

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.
@@ -2549,7 +2549,22 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2549
2549
  provider_options?: {
2550
2550
  team_id?: string | undefined;
2551
2551
  key_id?: string | undefined;
2552
- } | undefined;
2552
+ } | undefined; /**
2553
+ * `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
2554
+ *
2555
+ * Reset a user's passkey offer counter
2556
+ *
2557
+ * The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
2558
+ *
2559
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2560
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2561
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2562
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2563
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2564
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2565
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2566
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2567
+ */
2553
2568
  claims_mapping?: {
2554
2569
  [key: string]: string;
2555
2570
  } | undefined;
@@ -2594,7 +2609,22 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2594
2609
  provider_options?: {
2595
2610
  team_id?: string | undefined;
2596
2611
  key_id?: string | undefined;
2597
- } | undefined;
2612
+ } | undefined; /**
2613
+ * `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
2614
+ *
2615
+ * Reset a user's passkey offer counter
2616
+ *
2617
+ * The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
2618
+ *
2619
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2620
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2621
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2622
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2623
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2624
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2625
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2626
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2627
+ */
2598
2628
  claims_mapping?: {
2599
2629
  [key: string]: string;
2600
2630
  } | undefined;
@@ -2642,7 +2672,22 @@ export declare abstract class GeneratedFaableAuthApi extends FaableApi {
2642
2672
  provider_options?: {
2643
2673
  team_id?: string | undefined;
2644
2674
  key_id?: string | undefined;
2645
- } | undefined;
2675
+ } | undefined; /**
2676
+ * `POST /user/{user_id}/passkey-prompt/reset` — operationId: `user/resetPasskeyPrompt`
2677
+ *
2678
+ * Reset a user's passkey offer counter
2679
+ *
2680
+ * The post-login "create a passkey" offer stops after `login_methods.passkey_promotion_max_prompts` times and snoozes between them. This clears both, so the user is offered a passkey again on their next login — for "why does it keep asking" and "please ask me again" alike.
2681
+ *
2682
+ * @throws {FaableApiError} `validation_error` (400) — The body, query or path failed schema validation. `details.issues` lists each failing field.
2683
+ * @throws {FaableApiError} `unauthorized` (401) — The request carries no valid credentials.
2684
+ * @throws {FaableApiError} `forbidden` (403) — The credentials are valid but do not allow this operation.
2685
+ * @throws {FaableApiError} `insufficient_scope` (403) — The token lacks a scope this operation requires. `message` names it.
2686
+ * @throws {FaableApiError} `user_suspended` (403) — The user is suspended and cannot sign in or be modified.
2687
+ * @throws {FaableApiError} `account_not_found` (404) — No Auth Account matches the request (domain, header or token).
2688
+ * @throws {FaableApiError} `too_many_requests` (429) — Rate limit exceeded. Honour the `Retry-After` header.
2689
+ * @throws {FaableApiError} `internal_error` (500) — Unexpected server error. Retry later; the request id is logged.
2690
+ */
2646
2691
  claims_mapping?: {
2647
2692
  [key: string]: string;
2648
2693
  } | undefined;
@@ -3,75 +3,6 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
- "/webhooks/postmark": {
7
- parameters: {
8
- query?: never;
9
- header?: never;
10
- path?: never;
11
- cookie?: never;
12
- };
13
- get?: never;
14
- put?: never;
15
- post: {
16
- parameters: {
17
- query?: never;
18
- header?: never;
19
- path?: never;
20
- cookie?: never;
21
- };
22
- requestBody?: never;
23
- responses: {
24
- /** @description Default Response */
25
- 200: {
26
- headers: {
27
- [name: string]: unknown;
28
- };
29
- content?: never;
30
- };
31
- /** @description `account_not_found` — No Auth Account matches the request (domain, header or token). */
32
- 404: {
33
- headers: {
34
- [name: string]: unknown;
35
- };
36
- content: {
37
- "application/json": components["schemas"]["ErrorResponse"] & {
38
- /** @enum {string} */
39
- error_code?: "account_not_found";
40
- };
41
- };
42
- };
43
- /** @description `too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header. */
44
- 429: {
45
- headers: {
46
- [name: string]: unknown;
47
- };
48
- content: {
49
- "application/json": components["schemas"]["ErrorResponse"] & {
50
- /** @enum {string} */
51
- error_code?: "too_many_requests";
52
- };
53
- };
54
- };
55
- /** @description `internal_error` — Unexpected server error. Retry later; the request id is logged. */
56
- 500: {
57
- headers: {
58
- [name: string]: unknown;
59
- };
60
- content: {
61
- "application/json": components["schemas"]["ErrorResponse"] & {
62
- /** @enum {string} */
63
- error_code?: "internal_error";
64
- };
65
- };
66
- };
67
- };
68
- };
69
- delete?: never;
70
- options?: never;
71
- head?: never;
72
- patch?: never;
73
- trace?: never;
74
- };
75
6
  "/account/current": {
76
7
  parameters: {
77
8
  query?: never;
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.9.24";
12
+ export const version = "2.9.26";
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 = "cd1c26f";
18
+ export const commit = "57c5e96";
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.9.24",
3
+ "version": "2.9.26",
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.104.0",
6
+ "version": "2.105.0",
7
7
  "license": {
8
8
  "name": "private",
9
9
  "url": "https://faable.com/docs/platform/privacy-policy"
@@ -9960,90 +9960,6 @@
9960
9960
  }
9961
9961
  },
9962
9962
  "paths": {
9963
- "/webhooks/postmark": {
9964
- "post": {
9965
- "responses": {
9966
- "200": {
9967
- "description": "Default Response"
9968
- },
9969
- "404": {
9970
- "description": "`account_not_found` — No Auth Account matches the request (domain, header or token).",
9971
- "content": {
9972
- "application/json": {
9973
- "schema": {
9974
- "allOf": [
9975
- {
9976
- "$ref": "#/components/schemas/ErrorResponse"
9977
- },
9978
- {
9979
- "type": "object",
9980
- "properties": {
9981
- "error_code": {
9982
- "type": "string",
9983
- "enum": [
9984
- "account_not_found"
9985
- ]
9986
- }
9987
- }
9988
- }
9989
- ]
9990
- }
9991
- }
9992
- }
9993
- },
9994
- "429": {
9995
- "description": "`too_many_requests` — Rate limit exceeded. Honour the `Retry-After` header.",
9996
- "content": {
9997
- "application/json": {
9998
- "schema": {
9999
- "allOf": [
10000
- {
10001
- "$ref": "#/components/schemas/ErrorResponse"
10002
- },
10003
- {
10004
- "type": "object",
10005
- "properties": {
10006
- "error_code": {
10007
- "type": "string",
10008
- "enum": [
10009
- "too_many_requests"
10010
- ]
10011
- }
10012
- }
10013
- }
10014
- ]
10015
- }
10016
- }
10017
- }
10018
- },
10019
- "500": {
10020
- "description": "`internal_error` — Unexpected server error. Retry later; the request id is logged.",
10021
- "content": {
10022
- "application/json": {
10023
- "schema": {
10024
- "allOf": [
10025
- {
10026
- "$ref": "#/components/schemas/ErrorResponse"
10027
- },
10028
- {
10029
- "type": "object",
10030
- "properties": {
10031
- "error_code": {
10032
- "type": "string",
10033
- "enum": [
10034
- "internal_error"
10035
- ]
10036
- }
10037
- }
10038
- }
10039
- ]
10040
- }
10041
- }
10042
- }
10043
- }
10044
- }
10045
- }
10046
- },
10047
9963
  "/account/current": {
10048
9964
  "get": {
10049
9965
  "operationId": "account/current",