@zyphe-sdk/core 0.3.1 → 0.5.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.
package/README.md CHANGED
@@ -89,8 +89,16 @@ const response = await createVerificationSession(
89
89
  apiKey: '<your-api-key>',
90
90
  environment: 'staging', // or "production", "local"
91
91
  handoffBaseUrl: 'https://your-app.com', // optional
92
- primaryColor: '#000000', // optional
93
- secondaryColor: '#ffffff', // optional
92
+ // Theming — all optional. Light mode:
93
+ backgroundColor: '#ffffff', // page background
94
+ accentColor: '#155dfb', // buttons, icons, highlights
95
+ cardColor: '#ffffff', // card surface
96
+ // Dark mode:
97
+ darkBackgroundColor: '#16181d',
98
+ darkAccentColor: '#155dfb',
99
+ darkCardColor: '#16181d',
100
+ borderRadius: '12px', // shared radius for cards, buttons, inputs
101
+ // Deprecated (still honored): primaryColor → background, secondaryColor → accent
94
102
  isFullscreen: true, // optional
95
103
  },
96
104
  )
@@ -116,15 +124,23 @@ const url = constructVerificationSessionUrl({
116
124
  apiKey: '<your-api-key>',
117
125
  environment: 'staging',
118
126
  handoffBaseUrl: 'https://your-app.com', // optional
119
- primaryColor: '#000000', // optional
120
- secondaryColor: '#ffffff', // optional
127
+ // Theming — all optional. Light mode:
128
+ backgroundColor: '#ffffff', // page background
129
+ accentColor: '#155dfb', // buttons, icons, highlights
130
+ cardColor: '#ffffff', // card surface
131
+ // Dark mode:
132
+ darkBackgroundColor: '#16181d',
133
+ darkAccentColor: '#155dfb',
134
+ darkCardColor: '#16181d',
135
+ borderRadius: '12px', // shared radius for cards, buttons, inputs
136
+ // Deprecated (still honored): primaryColor → background, secondaryColor → accent
121
137
  isFullscreen: true, // optional
122
138
  },
123
139
  })
124
140
  ```
125
141
 
126
142
  - The constructed URL includes all relevant parameters and can be used to embed or redirect users to the verification flow.
127
- - Optional fields (like `handoffBaseUrl`, `primaryColor`, etc.) will be appended as query parameters if provided.
143
+ - Optional fields (like `handoffBaseUrl`, `accentColor`, `borderRadius`, etc.) will be appended as query parameters if provided. The legacy `primaryColor`/`secondaryColor` are still accepted but deprecated — prefer `backgroundColor`/`accentColor`.
128
144
 
129
145
  #### Types
130
146