@opencxh/domain 1.28.0 → 1.30.0

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.
@@ -24,7 +24,9 @@ export interface BaseActivity {
24
24
  direction: "inbound" | "outbound" | "internal" | "none";
25
25
  externalIds?: string[];
26
26
  attachments?: Attachment[];
27
- createdAt?: Date;
27
+ /** Epoch ms — matcht DB-model en Interaction.createdAt. */
28
+ createdAt?: number;
29
+ updatedAt?: number;
28
30
  }
29
31
  export type VoiceCallPayload = {
30
32
  from: string;
@@ -381,18 +381,15 @@ export interface OAuthConfig {
381
381
  scopes: string[];
382
382
  /** Extra params voor authorize-URL (prompt, access_type, etc.). */
383
383
  authorizeParams?: Record<string, string>;
384
- /** Optionele identity-decoder voor OAuth-providers met JWT id_token (MS, Google). */
385
- decodeIdentity?: (tokens: TokenResponse) => Promise<{
386
- externalUserId: string;
387
- displayName?: string;
388
- metadata?: Record<string, unknown>;
389
- }>;
390
384
  refresh?: {
391
385
  bufferMs?: number;
392
- /** Hook voor provider-specifieke post-refresh acties (bv. tenant-inferentie MS). */
393
- postRefresh?: (tokens: TokenResponse) => Promise<void>;
394
386
  };
395
387
  }
388
+ export interface DecodedIdentity {
389
+ externalUserId: string;
390
+ displayName?: string;
391
+ metadata?: Record<string, unknown>;
392
+ }
396
393
  export type PersonalAuthConfig = {
397
394
  mode: "oauth2";
398
395
  oauth: OAuthConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/domain",
3
- "version": "1.28.0",
3
+ "version": "1.30.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",