@feelflow/ffid-sdk 0.2.0 → 0.3.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.
@@ -25,6 +25,26 @@ interface FFIDUser {
25
25
  /** Account creation timestamp */
26
26
  createdAt: string;
27
27
  }
28
+ /**
29
+ * Agency branding information for white-label support.
30
+ * Included in organization when it is linked to an agency.
31
+ */
32
+ interface FFIDAgencyBranding {
33
+ /** Agency ID (UUID) */
34
+ agencyId: string;
35
+ /** Agency display name */
36
+ agencyName: string;
37
+ /** Custom logo URL */
38
+ logoUrl?: string;
39
+ /** Custom favicon URL */
40
+ faviconUrl?: string;
41
+ /** Primary brand color (hex) */
42
+ primaryColor?: string;
43
+ /** Secondary brand color (hex) */
44
+ secondaryColor?: string;
45
+ /** White-label company name */
46
+ companyName?: string;
47
+ }
28
48
  /**
29
49
  * Organization membership information
30
50
  */
@@ -39,6 +59,8 @@ interface FFIDOrganization {
39
59
  role: 'owner' | 'admin' | 'member';
40
60
  /** Membership status */
41
61
  status: 'active' | 'invited' | 'suspended';
62
+ /** Agency branding (null if org is not linked to an agency) */
63
+ agencyBranding: FFIDAgencyBranding | null;
42
64
  }
43
65
  /**
44
66
  * Subscription/contract information
@@ -25,6 +25,26 @@ interface FFIDUser {
25
25
  /** Account creation timestamp */
26
26
  createdAt: string;
27
27
  }
28
+ /**
29
+ * Agency branding information for white-label support.
30
+ * Included in organization when it is linked to an agency.
31
+ */
32
+ interface FFIDAgencyBranding {
33
+ /** Agency ID (UUID) */
34
+ agencyId: string;
35
+ /** Agency display name */
36
+ agencyName: string;
37
+ /** Custom logo URL */
38
+ logoUrl?: string;
39
+ /** Custom favicon URL */
40
+ faviconUrl?: string;
41
+ /** Primary brand color (hex) */
42
+ primaryColor?: string;
43
+ /** Secondary brand color (hex) */
44
+ secondaryColor?: string;
45
+ /** White-label company name */
46
+ companyName?: string;
47
+ }
28
48
  /**
29
49
  * Organization membership information
30
50
  */
@@ -39,6 +59,8 @@ interface FFIDOrganization {
39
59
  role: 'owner' | 'admin' | 'member';
40
60
  /** Membership status */
41
61
  status: 'active' | 'invited' | 'suspended';
62
+ /** Agency branding (null if org is not linked to an agency) */
63
+ agencyBranding: FFIDAgencyBranding | null;
42
64
  }
43
65
  /**
44
66
  * Subscription/contract information
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, ComponentType, FC } from 'react';
3
- import { F as FFIDConfig, a as FFIDUser, b as FFIDOrganization, c as FFIDError, d as FFIDSubscriptionContextValue, e as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, f as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, g as FFIDAnnouncementsLogger } from './index-B92_OuFc.cjs';
4
- export { h as Announcement, i as AnnouncementStatus, j as AnnouncementType, k as FFIDAnnouncementBadge, l as FFIDAnnouncementList, m as FFIDAnnouncementsError, n as FFIDAnnouncementsErrorCode, o as FFIDAnnouncementsServerResponse, p as FFIDApiResponse, q as FFIDContextValue, r as FFIDLogger, s as FFIDLoginButton, t as FFIDOrganizationSwitcher, u as FFIDSessionResponse, v as FFIDSubscription, w as FFIDSubscriptionBadge, x as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, y as UseFFIDAnnouncementsReturn, z as useFFIDAnnouncements } from './index-B92_OuFc.cjs';
3
+ import { F as FFIDConfig, a as FFIDUser, b as FFIDOrganization, c as FFIDError, d as FFIDSubscriptionContextValue, e as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, f as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, g as FFIDAnnouncementsLogger } from './index-DBp3Ulyl.cjs';
4
+ export { h as Announcement, i as AnnouncementStatus, j as AnnouncementType, k as FFIDAnnouncementBadge, l as FFIDAnnouncementList, m as FFIDAnnouncementsError, n as FFIDAnnouncementsErrorCode, o as FFIDAnnouncementsServerResponse, p as FFIDApiResponse, q as FFIDContextValue, r as FFIDLogger, s as FFIDLoginButton, t as FFIDOrganizationSwitcher, u as FFIDSessionResponse, v as FFIDSubscription, w as FFIDSubscriptionBadge, x as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, y as UseFFIDAnnouncementsReturn, z as useFFIDAnnouncements } from './index-DBp3Ulyl.cjs';
5
5
 
6
6
  /**
7
7
  * FFID SDK Shared Constants
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode, ComponentType, FC } from 'react';
3
- import { F as FFIDConfig, a as FFIDUser, b as FFIDOrganization, c as FFIDError, d as FFIDSubscriptionContextValue, e as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, f as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, g as FFIDAnnouncementsLogger } from './index-B92_OuFc.js';
4
- export { h as Announcement, i as AnnouncementStatus, j as AnnouncementType, k as FFIDAnnouncementBadge, l as FFIDAnnouncementList, m as FFIDAnnouncementsError, n as FFIDAnnouncementsErrorCode, o as FFIDAnnouncementsServerResponse, p as FFIDApiResponse, q as FFIDContextValue, r as FFIDLogger, s as FFIDLoginButton, t as FFIDOrganizationSwitcher, u as FFIDSessionResponse, v as FFIDSubscription, w as FFIDSubscriptionBadge, x as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, y as UseFFIDAnnouncementsReturn, z as useFFIDAnnouncements } from './index-B92_OuFc.js';
3
+ import { F as FFIDConfig, a as FFIDUser, b as FFIDOrganization, c as FFIDError, d as FFIDSubscriptionContextValue, e as FFIDAnnouncementsClientConfig, L as ListAnnouncementsOptions, f as FFIDAnnouncementsApiResponse, A as AnnouncementListResponse, g as FFIDAnnouncementsLogger } from './index-DBp3Ulyl.js';
4
+ export { h as Announcement, i as AnnouncementStatus, j as AnnouncementType, k as FFIDAnnouncementBadge, l as FFIDAnnouncementList, m as FFIDAnnouncementsError, n as FFIDAnnouncementsErrorCode, o as FFIDAnnouncementsServerResponse, p as FFIDApiResponse, q as FFIDContextValue, r as FFIDLogger, s as FFIDLoginButton, t as FFIDOrganizationSwitcher, u as FFIDSessionResponse, v as FFIDSubscription, w as FFIDSubscriptionBadge, x as FFIDUserMenu, U as UseFFIDAnnouncementsOptions, y as UseFFIDAnnouncementsReturn, z as useFFIDAnnouncements } from './index-DBp3Ulyl.js';
5
5
 
6
6
  /**
7
7
  * FFID SDK Shared Constants
@@ -1,11 +1,4 @@
1
- /**
2
- * FFID SDK Shared Constants
3
- *
4
- * Constants shared across all SDK entry points.
5
- * Centralizing these prevents drift during domain/URL changes.
6
- */
7
- /** Default FFID API base URL (production) */
8
- declare const DEFAULT_API_BASE_URL = "https://id.feelflow.co.jp";
1
+ export { D as DEFAULT_API_BASE_URL } from '../constants-BeWMWOOd.cjs';
9
2
 
10
3
  /**
11
4
  * FFID Legal SDK Type Definitions
@@ -329,4 +322,4 @@ declare function createFFIDLegalClient(config: FFIDLegalClientConfig): {
329
322
  /** Type of the FFID Legal client */
330
323
  type FFIDLegalClient = ReturnType<typeof createFFIDLegalClient>;
331
324
 
332
- export { DEFAULT_API_BASE_URL, type FFIDAgreementCheckResult, type FFIDAgreementMethod, type FFIDLegalApiResponse, type FFIDLegalClient, type FFIDLegalClientConfig, type FFIDLegalDocument, type FFIDLegalDocumentType, type FFIDLegalError, type FFIDLegalErrorCode, type FFIDLegalLogger, type FFIDLegalSdkErrorCode, type FFIDLegalServerError, type FFIDLegalServerErrorCode, type FFIDLegalServerResponse, type FFIDPendingAgreement, type FFIDPendingAgreementsResponse, type FFIDRecordAgreementRequest, type FFIDRecordAgreementResponse, type FFIDServiceUserAgreement, FFID_LEGAL_ERROR_CODES, createFFIDLegalClient };
325
+ export { type FFIDAgreementCheckResult, type FFIDAgreementMethod, type FFIDLegalApiResponse, type FFIDLegalClient, type FFIDLegalClientConfig, type FFIDLegalDocument, type FFIDLegalDocumentType, type FFIDLegalError, type FFIDLegalErrorCode, type FFIDLegalLogger, type FFIDLegalSdkErrorCode, type FFIDLegalServerError, type FFIDLegalServerErrorCode, type FFIDLegalServerResponse, type FFIDPendingAgreement, type FFIDPendingAgreementsResponse, type FFIDRecordAgreementRequest, type FFIDRecordAgreementResponse, type FFIDServiceUserAgreement, FFID_LEGAL_ERROR_CODES, createFFIDLegalClient };
@@ -1,11 +1,4 @@
1
- /**
2
- * FFID SDK Shared Constants
3
- *
4
- * Constants shared across all SDK entry points.
5
- * Centralizing these prevents drift during domain/URL changes.
6
- */
7
- /** Default FFID API base URL (production) */
8
- declare const DEFAULT_API_BASE_URL = "https://id.feelflow.co.jp";
1
+ export { D as DEFAULT_API_BASE_URL } from '../constants-BeWMWOOd.js';
9
2
 
10
3
  /**
11
4
  * FFID Legal SDK Type Definitions
@@ -329,4 +322,4 @@ declare function createFFIDLegalClient(config: FFIDLegalClientConfig): {
329
322
  /** Type of the FFID Legal client */
330
323
  type FFIDLegalClient = ReturnType<typeof createFFIDLegalClient>;
331
324
 
332
- export { DEFAULT_API_BASE_URL, type FFIDAgreementCheckResult, type FFIDAgreementMethod, type FFIDLegalApiResponse, type FFIDLegalClient, type FFIDLegalClientConfig, type FFIDLegalDocument, type FFIDLegalDocumentType, type FFIDLegalError, type FFIDLegalErrorCode, type FFIDLegalLogger, type FFIDLegalSdkErrorCode, type FFIDLegalServerError, type FFIDLegalServerErrorCode, type FFIDLegalServerResponse, type FFIDPendingAgreement, type FFIDPendingAgreementsResponse, type FFIDRecordAgreementRequest, type FFIDRecordAgreementResponse, type FFIDServiceUserAgreement, FFID_LEGAL_ERROR_CODES, createFFIDLegalClient };
325
+ export { type FFIDAgreementCheckResult, type FFIDAgreementMethod, type FFIDLegalApiResponse, type FFIDLegalClient, type FFIDLegalClientConfig, type FFIDLegalDocument, type FFIDLegalDocumentType, type FFIDLegalError, type FFIDLegalErrorCode, type FFIDLegalLogger, type FFIDLegalSdkErrorCode, type FFIDLegalServerError, type FFIDLegalServerErrorCode, type FFIDLegalServerResponse, type FFIDPendingAgreement, type FFIDPendingAgreementsResponse, type FFIDRecordAgreementRequest, type FFIDRecordAgreementResponse, type FFIDServiceUserAgreement, FFID_LEGAL_ERROR_CODES, createFFIDLegalClient };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feelflow/ffid-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "FeelFlow ID Platform SDK for React/Next.js applications",
5
5
  "keywords": [
6
6
  "feelflow",
@@ -50,6 +50,11 @@
50
50
  "types": "./dist/announcements/index.d.ts",
51
51
  "import": "./dist/announcements/index.js",
52
52
  "require": "./dist/announcements/index.cjs"
53
+ },
54
+ "./agency": {
55
+ "types": "./dist/agency/index.d.ts",
56
+ "import": "./dist/agency/index.js",
57
+ "require": "./dist/agency/index.cjs"
53
58
  }
54
59
  },
55
60
  "files": [