@spotto/contract 1.0.70-alpha.0 → 1.0.70-alpha.1

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.
@@ -4,3 +4,4 @@ export * from './post';
4
4
  export * from './get';
5
5
  export * from './[id]';
6
6
  export * from './invites';
7
+ export * from './password-reset';
@@ -20,4 +20,5 @@ __exportStar(require("./post"), exports);
20
20
  __exportStar(require("./get"), exports);
21
21
  __exportStar(require("./[id]"), exports);
22
22
  __exportStar(require("./invites"), exports);
23
+ __exportStar(require("./password-reset"), exports);
23
24
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,4CAAyB;AACzB,yCAAsB;AACtB,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,4CAAyB;AACzB,yCAAsB;AACtB,wCAAqB;AACrB,yCAAsB;AACtB,4CAAyB;AACzB,mDAAgC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Request shape for `POST /users/forgot-password`. The email is the only
3
+ * identifier we need; we don't take a return URL or any user-controlled
4
+ * routing — the link in the email points at a fixed `/reset-password`
5
+ * path resolved server-side from the org's tenant.
6
+ */
7
+ export interface RequestPasswordResetRequest {
8
+ email: string;
9
+ }
10
+ /**
11
+ * Response shape for `POST /users/forgot-password`. Always empty, always
12
+ * 200 — the endpoint never reveals whether the email exists. Misses, SSO
13
+ * users, and successful sends all return the same payload to prevent
14
+ * email enumeration via the unauthenticated reset surface.
15
+ */
16
+ export declare type RequestPasswordResetResponse = Record<string, never>;
17
+ export interface ResetPasswordRequest {
18
+ password: string;
19
+ }
20
+ /**
21
+ * Response shape for `POST /users/reset-password/:token`. Empty on
22
+ * success; the FE redirects to login. 404 for not-found / expired /
23
+ * already-consumed (same response for all three, mirroring invite
24
+ * accept).
25
+ */
26
+ export declare type ResetPasswordResponse = Record<string, never>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=password-reset.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password-reset.js","sourceRoot":"","sources":["../../src/users/password-reset.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.70-alpha.0",
4
+ "version": "1.0.70-alpha.1",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -18,5 +18,5 @@
18
18
  "@types/geojson": "^7946.0.11",
19
19
  "shx": "^0.3.4"
20
20
  },
21
- "gitHead": "de1ef27eb8669459f3eab4799e816919b56d0b61"
21
+ "gitHead": "f9ca7e502cb0a991ebbc204eb54b166d64f2a307"
22
22
  }