sinfactura-types 1.10.21 → 1.10.23

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/dist/api.d.ts CHANGED
@@ -14,7 +14,6 @@ declare global {
14
14
  removePhotoURL?: string;
15
15
  }
16
16
  interface ResponseApi<T = Record<string, string>> {
17
- status: boolean;
18
17
  error: string | null;
19
18
  message: string | null;
20
19
  data: T;
package/dist/audit.d.ts CHANGED
@@ -102,6 +102,24 @@ declare global {
102
102
  /** Full request args + response body (raw), for the regulator record. */
103
103
  requestPayload: Record<string, unknown>;
104
104
  responsePayload: Record<string, unknown>;
105
+ /**
106
+ * Set ONLY when the interaction was triggered from inside a MANAGER
107
+ * support-impersonation session. Absent means the tenant acted for itself,
108
+ * which is the overwhelming majority — so absence is the normal case and
109
+ * must never be read as "unknown actor".
110
+ *
111
+ * These records are retained 10 years and are the tenant's due-diligence
112
+ * defence: an ARCA review reads them as proof the tenant checked a CUIT at
113
+ * the time of the transaction. Without this field a platform operator's
114
+ * lookups are indistinguishable from the tenant's own, so the tenant either
115
+ * claims diligence it never performed or cannot account for the entry.
116
+ */
117
+ actedBy?: {
118
+ /** Operator (MANAGER) user id — the impersonation JWT's `act.sub`. */
119
+ operatorId: string;
120
+ /** Impersonation session id — the JWT `sid`; correlates to the `IMPERSONATION#{operatorId}` registry row. */
121
+ sessionId: string;
122
+ };
105
123
  }
106
124
  /** APOC ("facturas apócrifas") CUIT check request. Source is ARCA's public registry snapshot imported daily into the api's `APOC` DDB partition (no per-check ARCA call). */
107
125
  interface ApocCheckRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sinfactura-types",
3
- "version": "1.10.21",
3
+ "version": "1.10.23",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",