@kya-os/contracts 1.7.14 → 1.7.16

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.
@@ -131,9 +131,16 @@ exports.delegationCredentialSchema = zod_1.z.object({
131
131
  credential_jwt: zod_1.z.string().optional(),
132
132
  authorization: zod_1.z.object({
133
133
  // 'oauth' is deprecated, use 'oauth2' instead (will be removed in v2.0.0)
134
- type: zod_1.z.enum(['oauth', 'oauth2', 'password', 'credential', 'none']),
134
+ // 'webauthn' and 'siwe' added in v1.7.16
135
+ type: zod_1.z.enum(['oauth', 'oauth2', 'password', 'credential', 'webauthn', 'siwe', 'none']),
135
136
  provider: zod_1.z.string().optional(),
136
137
  credentialType: zod_1.z.string().optional(),
138
+ // WebAuthn-specific fields
139
+ rpId: zod_1.z.string().optional(),
140
+ userVerification: zod_1.z.enum(['required', 'preferred', 'discouraged']).optional(),
141
+ // SIWE-specific fields
142
+ chainId: zod_1.z.number().optional(),
143
+ domain: zod_1.z.string().optional(),
137
144
  }),
138
145
  });
139
146
  /**
@@ -150,9 +150,13 @@ export interface DelegationCredential {
150
150
  created_at: number;
151
151
  credential_jwt?: string;
152
152
  authorization: {
153
- type: 'oauth' | 'oauth2' | 'password' | 'credential' | 'none';
153
+ type: 'oauth' | 'oauth2' | 'password' | 'credential' | 'webauthn' | 'siwe' | 'none';
154
154
  provider?: string;
155
155
  credentialType?: string;
156
+ rpId?: string;
157
+ userVerification?: 'required' | 'preferred' | 'discouraged';
158
+ chainId?: number;
159
+ domain?: string;
156
160
  };
157
161
  }
158
162
  /**