@ofidj/contracts 3.7.0 → 3.7.2

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## [3.7.2] - 2026-09-13
4
+
5
+ - Describe `signin` on the status response: which screen collects a credential,
6
+ `fidj-ui` or `provider-page`. The switch behind it fails closed and silently,
7
+ so without this an operator cannot tell whether their configuration took.
8
+
3
9
  - Describe login acceptance fields and public versioned app-agreement metadata.
4
10
 
5
11
  Dated entries are historical; current workflow is in the package README.
@@ -0,0 +1,53 @@
1
+ export type FidjApiLawfulBasis = 'consent' | 'contract' | 'legal_obligation' | 'vital_interests' | 'public_task' | 'legitimate_interests';
2
+ export type FidjApiPurposeControl = 'none' | 'consent_switch' | 'objection' | 'revoke' | 'leave_app' | 'link_unlink' | 'export_only';
3
+ export interface FidjApiPurpose {
4
+ purposeId: string;
5
+ version: number;
6
+ status: 'published' | 'withheld';
7
+ controllership: 'controller' | 'processor' | 'joint_controller';
8
+ name: string;
9
+ description: string;
10
+ controller: {
11
+ name: string;
12
+ contact: string;
13
+ privacyContact?: string;
14
+ dpo?: string | null;
15
+ };
16
+ dataCategories: string[];
17
+ lawfulBasis: FidjApiLawfulBasis;
18
+ basisEvidence: {
19
+ necessityStatement?: string | null;
20
+ legalReference?: string | null;
21
+ balancingTestRef?: string | null;
22
+ article9Condition?: string | null;
23
+ };
24
+ required: boolean;
25
+ defaultState: 'off' | null;
26
+ control: FidjApiPurposeControl;
27
+ retention: {
28
+ trigger: string;
29
+ days: number;
30
+ label: string;
31
+ };
32
+ withdrawalEffect: string;
33
+ objectionRight: boolean;
34
+ recipients: string[];
35
+ transfers: {
36
+ outsideEEA: boolean;
37
+ safeguard: string | null;
38
+ };
39
+ automatedDecision: boolean;
40
+ implementation: {
41
+ implemented: boolean;
42
+ verified?: boolean;
43
+ enforced: boolean;
44
+ code?: string;
45
+ gap?: string;
46
+ };
47
+ publishedAt?: string;
48
+ }
49
+ export interface FidjApiPurposesResponse {
50
+ schemaVersion: string;
51
+ purposes: FidjApiPurpose[];
52
+ }
53
+ export type FidjApiPurposeWriteRequest = FidjApiPurpose;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=FidjApiPurposes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FidjApiPurposes.js","sourceRoot":"","sources":["../../src/fidj-api/FidjApiPurposes.ts"],"names":[],"mappings":""}
@@ -8,5 +8,6 @@ export interface FidjApiStatusResponse {
8
8
  'principal-app'?: string;
9
9
  'test-apps'?: string | string[];
10
10
  docs?: string;
11
+ signin?: 'fidj-ui' | 'provider-page';
11
12
  isOk?: boolean;
12
13
  }
@@ -26,5 +26,6 @@ export * from './FidjApiTokensCreateResponse';
26
26
  export * from './FidjApiPrivacyResponse';
27
27
  export * from './FidjApiAccountRecovery';
28
28
  export * from './FidjApiGroups';
29
+ export * from './FidjApiPurposes';
29
30
  export * from "./identity";
30
31
  export * from './FidjApiAccountSelfService';
package/fidj-api/index.js CHANGED
@@ -49,6 +49,7 @@ __exportStar(require("./FidjApiTokensCreateResponse"), exports);
49
49
  __exportStar(require("./FidjApiPrivacyResponse"), exports);
50
50
  __exportStar(require("./FidjApiAccountRecovery"), exports);
51
51
  __exportStar(require("./FidjApiGroups"), exports);
52
+ __exportStar(require("./FidjApiPurposes"), exports);
52
53
  __exportStar(require("./identity"), exports);
53
54
  __exportStar(require("./FidjApiAccountSelfService"), exports);
54
55
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fidj-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,0DAAwC;AACxC,yDAAuC;AAEvC,OAAO;AACP,6DAA2C;AAC3C,8DAA4C;AAE5C,QAAQ;AACR,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,kEAAgD;AAChD,gEAA8C;AAC9C,8DAA4C;AAE5C,kBAAkB;AAClB,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AAEjD,OAAO;AACP,6DAA2C;AAC3C,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAE/C,YAAY;AACZ,iEAA+C;AAC/C,kEAAgD;AAChD,kEAAgD;AAEhD,SAAS;AACT,+DAA6C;AAC7C,gEAA8C;AAE9C,2DAAyC;AAEzC,2DAAyC;AAEzC,kDAAgC;AAEhC,6CAA2B;AAC3B,8DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/fidj-api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,SAAS;AACT,0DAAwC;AACxC,yDAAuC;AAEvC,OAAO;AACP,6DAA2C;AAC3C,8DAA4C;AAE5C,QAAQ;AACR,8DAA4C;AAC5C,+DAA6C;AAC7C,2DAAyC;AACzC,kEAAgD;AAChD,gEAA8C;AAC9C,8DAA4C;AAE5C,kBAAkB;AAClB,4DAA0C;AAC1C,iEAA+C;AAC/C,mEAAiD;AAEjD,OAAO;AACP,6DAA2C;AAC3C,8DAA4C;AAC5C,8DAA4C;AAC5C,+DAA6C;AAC7C,6DAA2C;AAC3C,6DAA2C;AAC3C,iEAA+C;AAE/C,YAAY;AACZ,iEAA+C;AAC/C,kEAAgD;AAChD,kEAAgD;AAEhD,SAAS;AACT,+DAA6C;AAC7C,gEAA8C;AAE9C,2DAAyC;AAEzC,2DAAyC;AAEzC,kDAAgC;AAChC,oDAAkC;AAElC,6CAA2B;AAC3B,8DAA4C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ofidj/contracts",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "author": "contact@fidj.ovh",
5
5
  "description": "TypeScript API contracts for Fidj services - request/response interfaces for REST endpoints",
6
6
  "keywords": [