@kya-os/contracts 1.7.4 → 1.7.7

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.
@@ -31,13 +31,13 @@ export declare const gitHubInstallationSchema: z.ZodObject<{
31
31
  type: z.ZodEnum<["User", "Organization"]>;
32
32
  id: z.ZodNumber;
33
33
  }, "strip", z.ZodTypeAny, {
34
- type: "User" | "Organization";
35
34
  id: number;
35
+ type: "User" | "Organization";
36
36
  login: string;
37
37
  avatarUrl: string;
38
38
  }, {
39
- type: "User" | "Organization";
40
39
  id: number;
40
+ type: "User" | "Organization";
41
41
  login: string;
42
42
  avatarUrl: string;
43
43
  }>;
@@ -46,29 +46,29 @@ export declare const gitHubInstallationSchema: z.ZodObject<{
46
46
  createdAt: z.ZodString;
47
47
  updatedAt: z.ZodString;
48
48
  }, "strip", z.ZodTypeAny, {
49
- createdAt: string;
50
49
  id: string;
51
50
  installationId: number;
52
51
  account: {
53
- type: "User" | "Organization";
54
52
  id: number;
53
+ type: "User" | "Organization";
55
54
  login: string;
56
55
  avatarUrl: string;
57
56
  };
58
57
  permissions: string[];
58
+ createdAt: string;
59
59
  updatedAt: string;
60
60
  suspendedAt?: string | null | undefined;
61
61
  }, {
62
- createdAt: string;
63
62
  id: string;
64
63
  installationId: number;
65
64
  account: {
66
- type: "User" | "Organization";
67
65
  id: number;
66
+ type: "User" | "Organization";
68
67
  login: string;
69
68
  avatarUrl: string;
70
69
  };
71
70
  permissions: string[];
71
+ createdAt: string;
72
72
  updatedAt: string;
73
73
  suspendedAt?: string | null | undefined;
74
74
  }>;
@@ -83,15 +83,15 @@ export declare const gitHubRepositorySchema: z.ZodObject<{
83
83
  defaultBranch: z.ZodString;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  name: string;
86
- url: string;
87
86
  fullName: string;
88
87
  private: boolean;
88
+ url: string;
89
89
  defaultBranch: string;
90
90
  }, {
91
91
  name: string;
92
- url: string;
93
92
  fullName: string;
94
93
  private: boolean;
94
+ url: string;
95
95
  defaultBranch: string;
96
96
  }>;
97
97
  /**
@@ -137,13 +137,13 @@ export declare const gitHubCallbackResponseSchema: z.ZodObject<{
137
137
  type: z.ZodEnum<["User", "Organization"]>;
138
138
  id: z.ZodNumber;
139
139
  }, "strip", z.ZodTypeAny, {
140
- type: "User" | "Organization";
141
140
  id: number;
141
+ type: "User" | "Organization";
142
142
  login: string;
143
143
  avatarUrl: string;
144
144
  }, {
145
- type: "User" | "Organization";
146
145
  id: number;
146
+ type: "User" | "Organization";
147
147
  login: string;
148
148
  avatarUrl: string;
149
149
  }>;
@@ -152,61 +152,61 @@ export declare const gitHubCallbackResponseSchema: z.ZodObject<{
152
152
  createdAt: z.ZodString;
153
153
  updatedAt: z.ZodString;
154
154
  }, "strip", z.ZodTypeAny, {
155
- createdAt: string;
156
155
  id: string;
157
156
  installationId: number;
158
157
  account: {
159
- type: "User" | "Organization";
160
158
  id: number;
159
+ type: "User" | "Organization";
161
160
  login: string;
162
161
  avatarUrl: string;
163
162
  };
164
163
  permissions: string[];
164
+ createdAt: string;
165
165
  updatedAt: string;
166
166
  suspendedAt?: string | null | undefined;
167
167
  }, {
168
- createdAt: string;
169
168
  id: string;
170
169
  installationId: number;
171
170
  account: {
172
- type: "User" | "Organization";
173
171
  id: number;
172
+ type: "User" | "Organization";
174
173
  login: string;
175
174
  avatarUrl: string;
176
175
  };
177
176
  permissions: string[];
177
+ createdAt: string;
178
178
  updatedAt: string;
179
179
  suspendedAt?: string | null | undefined;
180
180
  }>;
181
181
  }, "strip", z.ZodTypeAny, {
182
182
  success: true;
183
183
  installation: {
184
- createdAt: string;
185
184
  id: string;
186
185
  installationId: number;
187
186
  account: {
188
- type: "User" | "Organization";
189
187
  id: number;
188
+ type: "User" | "Organization";
190
189
  login: string;
191
190
  avatarUrl: string;
192
191
  };
193
192
  permissions: string[];
193
+ createdAt: string;
194
194
  updatedAt: string;
195
195
  suspendedAt?: string | null | undefined;
196
196
  };
197
197
  }, {
198
198
  success: true;
199
199
  installation: {
200
- createdAt: string;
201
200
  id: string;
202
201
  installationId: number;
203
202
  account: {
204
- type: "User" | "Organization";
205
203
  id: number;
204
+ type: "User" | "Organization";
206
205
  login: string;
207
206
  avatarUrl: string;
208
207
  };
209
208
  permissions: string[];
209
+ createdAt: string;
210
210
  updatedAt: string;
211
211
  suspendedAt?: string | null | undefined;
212
212
  };
@@ -227,13 +227,13 @@ export declare const gitHubStatusResponseSchema: z.ZodObject<{
227
227
  type: z.ZodEnum<["User", "Organization"]>;
228
228
  id: z.ZodNumber;
229
229
  }, "strip", z.ZodTypeAny, {
230
- type: "User" | "Organization";
231
230
  id: number;
231
+ type: "User" | "Organization";
232
232
  login: string;
233
233
  avatarUrl: string;
234
234
  }, {
235
- type: "User" | "Organization";
236
235
  id: number;
236
+ type: "User" | "Organization";
237
237
  login: string;
238
238
  avatarUrl: string;
239
239
  }>;
@@ -242,29 +242,29 @@ export declare const gitHubStatusResponseSchema: z.ZodObject<{
242
242
  createdAt: z.ZodString;
243
243
  updatedAt: z.ZodString;
244
244
  }, "strip", z.ZodTypeAny, {
245
- createdAt: string;
246
245
  id: string;
247
246
  installationId: number;
248
247
  account: {
249
- type: "User" | "Organization";
250
248
  id: number;
249
+ type: "User" | "Organization";
251
250
  login: string;
252
251
  avatarUrl: string;
253
252
  };
254
253
  permissions: string[];
254
+ createdAt: string;
255
255
  updatedAt: string;
256
256
  suspendedAt?: string | null | undefined;
257
257
  }, {
258
- createdAt: string;
259
258
  id: string;
260
259
  installationId: number;
261
260
  account: {
262
- type: "User" | "Organization";
263
261
  id: number;
262
+ type: "User" | "Organization";
264
263
  login: string;
265
264
  avatarUrl: string;
266
265
  };
267
266
  permissions: string[];
267
+ createdAt: string;
268
268
  updatedAt: string;
269
269
  suspendedAt?: string | null | undefined;
270
270
  }>>;
@@ -276,116 +276,116 @@ export declare const gitHubStatusResponseSchema: z.ZodObject<{
276
276
  defaultBranch: z.ZodString;
277
277
  }, "strip", z.ZodTypeAny, {
278
278
  name: string;
279
- url: string;
280
279
  fullName: string;
281
280
  private: boolean;
281
+ url: string;
282
282
  defaultBranch: string;
283
283
  }, {
284
284
  name: string;
285
- url: string;
286
285
  fullName: string;
287
286
  private: boolean;
287
+ url: string;
288
288
  defaultBranch: string;
289
289
  }>, "many">>;
290
290
  }, "strip", z.ZodTypeAny, {
291
291
  connected: boolean;
292
292
  installation?: {
293
- createdAt: string;
294
293
  id: string;
295
294
  installationId: number;
296
295
  account: {
297
- type: "User" | "Organization";
298
296
  id: number;
297
+ type: "User" | "Organization";
299
298
  login: string;
300
299
  avatarUrl: string;
301
300
  };
302
301
  permissions: string[];
302
+ createdAt: string;
303
303
  updatedAt: string;
304
304
  suspendedAt?: string | null | undefined;
305
305
  } | undefined;
306
306
  repositories?: {
307
307
  name: string;
308
- url: string;
309
308
  fullName: string;
310
309
  private: boolean;
310
+ url: string;
311
311
  defaultBranch: string;
312
312
  }[] | undefined;
313
313
  }, {
314
314
  connected: boolean;
315
315
  installation?: {
316
- createdAt: string;
317
316
  id: string;
318
317
  installationId: number;
319
318
  account: {
320
- type: "User" | "Organization";
321
319
  id: number;
320
+ type: "User" | "Organization";
322
321
  login: string;
323
322
  avatarUrl: string;
324
323
  };
325
324
  permissions: string[];
325
+ createdAt: string;
326
326
  updatedAt: string;
327
327
  suspendedAt?: string | null | undefined;
328
328
  } | undefined;
329
329
  repositories?: {
330
330
  name: string;
331
- url: string;
332
331
  fullName: string;
333
332
  private: boolean;
333
+ url: string;
334
334
  defaultBranch: string;
335
335
  }[] | undefined;
336
336
  }>;
337
337
  }, "strip", z.ZodTypeAny, {
338
- success: true;
339
338
  data: {
340
339
  connected: boolean;
341
340
  installation?: {
342
- createdAt: string;
343
341
  id: string;
344
342
  installationId: number;
345
343
  account: {
346
- type: "User" | "Organization";
347
344
  id: number;
345
+ type: "User" | "Organization";
348
346
  login: string;
349
347
  avatarUrl: string;
350
348
  };
351
349
  permissions: string[];
350
+ createdAt: string;
352
351
  updatedAt: string;
353
352
  suspendedAt?: string | null | undefined;
354
353
  } | undefined;
355
354
  repositories?: {
356
355
  name: string;
357
- url: string;
358
356
  fullName: string;
359
357
  private: boolean;
358
+ url: string;
360
359
  defaultBranch: string;
361
360
  }[] | undefined;
362
361
  };
363
- }, {
364
362
  success: true;
363
+ }, {
365
364
  data: {
366
365
  connected: boolean;
367
366
  installation?: {
368
- createdAt: string;
369
367
  id: string;
370
368
  installationId: number;
371
369
  account: {
372
- type: "User" | "Organization";
373
370
  id: number;
371
+ type: "User" | "Organization";
374
372
  login: string;
375
373
  avatarUrl: string;
376
374
  };
377
375
  permissions: string[];
376
+ createdAt: string;
378
377
  updatedAt: string;
379
378
  suspendedAt?: string | null | undefined;
380
379
  } | undefined;
381
380
  repositories?: {
382
381
  name: string;
383
- url: string;
384
382
  fullName: string;
385
383
  private: boolean;
384
+ url: string;
386
385
  defaultBranch: string;
387
386
  }[] | undefined;
388
387
  };
388
+ success: true;
389
389
  }>;
390
390
  /**
391
391
  * GitHub disconnect response schema
@@ -421,15 +421,15 @@ export declare const deployToGitHubRequestSchema: z.ZodObject<{
421
421
  isPrivate: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
422
422
  description: z.ZodOptional<z.ZodString>;
423
423
  }, "strip", z.ZodTypeAny, {
424
- platform: "cloudflare" | "vercel";
425
424
  repoName: string;
426
425
  template: "blank" | "ecommerce" | "hardware-world";
426
+ platform: "cloudflare" | "vercel";
427
427
  isPrivate: boolean;
428
428
  description?: string | undefined;
429
429
  }, {
430
- platform: "cloudflare" | "vercel";
431
430
  repoName: string;
432
431
  template: "blank" | "ecommerce" | "hardware-world";
432
+ platform: "cloudflare" | "vercel";
433
433
  isPrivate?: boolean | undefined;
434
434
  description?: string | undefined;
435
435
  }>;
@@ -536,7 +536,6 @@ export declare const deployToGitHubResponseSchema: z.ZodObject<{
536
536
  nextSteps: string[];
537
537
  }>;
538
538
  }, "strip", z.ZodTypeAny, {
539
- success: true;
540
539
  data: {
541
540
  repoUrl: string;
542
541
  repoFullName: string;
@@ -548,8 +547,8 @@ export declare const deployToGitHubResponseSchema: z.ZodObject<{
548
547
  deployUrl: string;
549
548
  nextSteps: string[];
550
549
  };
551
- }, {
552
550
  success: true;
551
+ }, {
553
552
  data: {
554
553
  repoUrl: string;
555
554
  repoFullName: string;
@@ -561,6 +560,7 @@ export declare const deployToGitHubResponseSchema: z.ZodObject<{
561
560
  deployUrl: string;
562
561
  nextSteps: string[];
563
562
  };
563
+ success: true;
564
564
  }>;
565
565
  /**
566
566
  * Deploy error response schema
@@ -640,7 +640,6 @@ export declare const deployToGitHubResultSchema: z.ZodDiscriminatedUnion<"succes
640
640
  nextSteps: string[];
641
641
  }>;
642
642
  }, "strip", z.ZodTypeAny, {
643
- success: true;
644
643
  data: {
645
644
  repoUrl: string;
646
645
  repoFullName: string;
@@ -652,8 +651,8 @@ export declare const deployToGitHubResultSchema: z.ZodDiscriminatedUnion<"succes
652
651
  deployUrl: string;
653
652
  nextSteps: string[];
654
653
  };
655
- }, {
656
654
  success: true;
655
+ }, {
657
656
  data: {
658
657
  repoUrl: string;
659
658
  repoFullName: string;
@@ -665,6 +664,7 @@ export declare const deployToGitHubResultSchema: z.ZodDiscriminatedUnion<"succes
665
664
  deployUrl: string;
666
665
  nextSteps: string[];
667
666
  };
667
+ success: true;
668
668
  }>, z.ZodObject<{
669
669
  success: z.ZodLiteral<false>;
670
670
  error: z.ZodObject<{
@@ -712,29 +712,29 @@ export declare const deployedRepositorySchema: z.ZodObject<{
712
712
  createdAt: z.ZodString;
713
713
  updatedAt: z.ZodString;
714
714
  }, "strip", z.ZodTypeAny, {
715
- platform: "cloudflare" | "vercel";
716
- createdAt: string;
717
- projectId: string;
718
715
  id: string;
719
716
  installationId: string;
717
+ createdAt: string;
720
718
  updatedAt: string;
721
719
  template: "blank" | "ecommerce" | "hardware-world";
720
+ platform: "cloudflare" | "vercel";
722
721
  repoUrl: string;
723
722
  repoFullName: string;
724
723
  userId: string;
724
+ projectId: string;
725
725
  cloudflareDeployed: boolean;
726
726
  cloudflareUrl?: string | null | undefined;
727
727
  }, {
728
- platform: "cloudflare" | "vercel";
729
- createdAt: string;
730
- projectId: string;
731
728
  id: string;
732
729
  installationId: string;
730
+ createdAt: string;
733
731
  updatedAt: string;
734
732
  template: "blank" | "ecommerce" | "hardware-world";
733
+ platform: "cloudflare" | "vercel";
735
734
  repoUrl: string;
736
735
  repoFullName: string;
737
736
  userId: string;
737
+ projectId: string;
738
738
  cloudflareDeployed: boolean;
739
739
  cloudflareUrl?: string | null | undefined;
740
740
  }>;
@@ -757,64 +757,64 @@ export declare const listDeployedRepositoriesResponseSchema: z.ZodObject<{
757
757
  createdAt: z.ZodString;
758
758
  updatedAt: z.ZodString;
759
759
  }, "strip", z.ZodTypeAny, {
760
- platform: "cloudflare" | "vercel";
761
- createdAt: string;
762
- projectId: string;
763
760
  id: string;
764
761
  installationId: string;
762
+ createdAt: string;
765
763
  updatedAt: string;
766
764
  template: "blank" | "ecommerce" | "hardware-world";
765
+ platform: "cloudflare" | "vercel";
767
766
  repoUrl: string;
768
767
  repoFullName: string;
769
768
  userId: string;
769
+ projectId: string;
770
770
  cloudflareDeployed: boolean;
771
771
  cloudflareUrl?: string | null | undefined;
772
772
  }, {
773
- platform: "cloudflare" | "vercel";
774
- createdAt: string;
775
- projectId: string;
776
773
  id: string;
777
774
  installationId: string;
775
+ createdAt: string;
778
776
  updatedAt: string;
779
777
  template: "blank" | "ecommerce" | "hardware-world";
778
+ platform: "cloudflare" | "vercel";
780
779
  repoUrl: string;
781
780
  repoFullName: string;
782
781
  userId: string;
782
+ projectId: string;
783
783
  cloudflareDeployed: boolean;
784
784
  cloudflareUrl?: string | null | undefined;
785
785
  }>, "many">;
786
786
  }, "strip", z.ZodTypeAny, {
787
- success: true;
788
787
  data: {
789
- platform: "cloudflare" | "vercel";
790
- createdAt: string;
791
- projectId: string;
792
788
  id: string;
793
789
  installationId: string;
790
+ createdAt: string;
794
791
  updatedAt: string;
795
792
  template: "blank" | "ecommerce" | "hardware-world";
793
+ platform: "cloudflare" | "vercel";
796
794
  repoUrl: string;
797
795
  repoFullName: string;
798
796
  userId: string;
797
+ projectId: string;
799
798
  cloudflareDeployed: boolean;
800
799
  cloudflareUrl?: string | null | undefined;
801
800
  }[];
802
- }, {
803
801
  success: true;
802
+ }, {
804
803
  data: {
805
- platform: "cloudflare" | "vercel";
806
- createdAt: string;
807
- projectId: string;
808
804
  id: string;
809
805
  installationId: string;
806
+ createdAt: string;
810
807
  updatedAt: string;
811
808
  template: "blank" | "ecommerce" | "hardware-world";
809
+ platform: "cloudflare" | "vercel";
812
810
  repoUrl: string;
813
811
  repoFullName: string;
814
812
  userId: string;
813
+ projectId: string;
815
814
  cloudflareDeployed: boolean;
816
815
  cloudflareUrl?: string | null | undefined;
817
816
  }[];
817
+ success: true;
818
818
  }>;
819
819
  /**
820
820
  * Generated file schema
@@ -843,15 +843,15 @@ export declare const scaffolderOptionsSchema: z.ZodObject<{
843
843
  agentShieldApiKey: z.ZodOptional<z.ZodString>;
844
844
  skipIdentity: z.ZodOptional<z.ZodBoolean>;
845
845
  }, "strip", z.ZodTypeAny, {
846
- platform: "cloudflare" | "vercel";
847
846
  template: "blank" | "ecommerce" | "hardware-world";
847
+ platform: "cloudflare" | "vercel";
848
848
  projectName: string;
849
849
  agentShieldProjectId?: string | undefined;
850
850
  agentShieldApiKey?: string | undefined;
851
851
  skipIdentity?: boolean | undefined;
852
852
  }, {
853
- platform: "cloudflare" | "vercel";
854
853
  template: "blank" | "ecommerce" | "hardware-world";
854
+ platform: "cloudflare" | "vercel";
855
855
  projectName: string;
856
856
  agentShieldProjectId?: string | undefined;
857
857
  agentShieldApiKey?: string | undefined;
@@ -931,16 +931,16 @@ export declare const deployStepSchema: z.ZodObject<{
931
931
  startedAt: z.ZodOptional<z.ZodString>;
932
932
  completedAt: z.ZodOptional<z.ZodString>;
933
933
  }, "strip", z.ZodTypeAny, {
934
- name: string;
935
- status: "pending" | "in_progress" | "completed" | "failed";
936
934
  id: string;
935
+ status: "pending" | "in_progress" | "completed" | "failed";
936
+ name: string;
937
937
  message?: string | undefined;
938
938
  startedAt?: string | undefined;
939
939
  completedAt?: string | undefined;
940
940
  }, {
941
- name: string;
942
- status: "pending" | "in_progress" | "completed" | "failed";
943
941
  id: string;
942
+ status: "pending" | "in_progress" | "completed" | "failed";
943
+ name: string;
944
944
  message?: string | undefined;
945
945
  startedAt?: string | undefined;
946
946
  completedAt?: string | undefined;
@@ -957,16 +957,16 @@ export declare const deploymentProgressSchema: z.ZodObject<{
957
957
  startedAt: z.ZodOptional<z.ZodString>;
958
958
  completedAt: z.ZodOptional<z.ZodString>;
959
959
  }, "strip", z.ZodTypeAny, {
960
- name: string;
961
- status: "pending" | "in_progress" | "completed" | "failed";
962
960
  id: string;
961
+ status: "pending" | "in_progress" | "completed" | "failed";
962
+ name: string;
963
963
  message?: string | undefined;
964
964
  startedAt?: string | undefined;
965
965
  completedAt?: string | undefined;
966
966
  }, {
967
- name: string;
968
- status: "pending" | "in_progress" | "completed" | "failed";
969
967
  id: string;
968
+ status: "pending" | "in_progress" | "completed" | "failed";
969
+ name: string;
970
970
  message?: string | undefined;
971
971
  startedAt?: string | undefined;
972
972
  completedAt?: string | undefined;
@@ -976,9 +976,9 @@ export declare const deploymentProgressSchema: z.ZodObject<{
976
976
  overallStatus: z.ZodEnum<["pending", "in_progress", "completed", "failed"]>;
977
977
  }, "strip", z.ZodTypeAny, {
978
978
  steps: {
979
- name: string;
980
- status: "pending" | "in_progress" | "completed" | "failed";
981
979
  id: string;
980
+ status: "pending" | "in_progress" | "completed" | "failed";
981
+ name: string;
982
982
  message?: string | undefined;
983
983
  startedAt?: string | undefined;
984
984
  completedAt?: string | undefined;
@@ -988,9 +988,9 @@ export declare const deploymentProgressSchema: z.ZodObject<{
988
988
  overallStatus: "pending" | "in_progress" | "completed" | "failed";
989
989
  }, {
990
990
  steps: {
991
- name: string;
992
- status: "pending" | "in_progress" | "completed" | "failed";
993
991
  id: string;
992
+ status: "pending" | "in_progress" | "completed" | "failed";
993
+ name: string;
994
994
  message?: string | undefined;
995
995
  startedAt?: string | undefined;
996
996
  completedAt?: string | undefined;
@@ -31,13 +31,14 @@ export type AuthorizationRequirement = {
31
31
  provider: string;
32
32
  verificationLevel?: 'basic' | 'enhanced' | 'loa3';
33
33
  } | {
34
- /** FUTURE: Require user to present an existing VC (not yet implemented) */
34
+ /** Require user to present an existing VC */
35
35
  type: 'verifiable_credential';
36
36
  credentialType: string;
37
37
  issuer?: string;
38
38
  } | {
39
39
  /**
40
- * @deprecated Use `verifiable_credential` instead. Kept for backward compatibility.
40
+ * @deprecated Use 'verifiable_credential' instead. Will be removed in v2.0.0.
41
+ * This is an alias for 'verifiable_credential' for backward compatibility.
41
42
  */
42
43
  type: 'credential';
43
44
  credentialType: string;
@@ -51,10 +52,7 @@ export declare const AUTHORIZATION_TYPES: {
51
52
  readonly PASSWORD: "password";
52
53
  readonly MDL: "mdl";
53
54
  readonly IDV: "idv";
54
- /** FUTURE: Not yet implemented */
55
55
  readonly VERIFIABLE_CREDENTIAL: "verifiable_credential";
56
- /** @deprecated Use VERIFIABLE_CREDENTIAL */
57
- readonly CREDENTIAL: "credential";
58
56
  readonly NONE: "none";
59
57
  };
60
58
  export type AuthorizationType = (typeof AUTHORIZATION_TYPES)[keyof typeof AUTHORIZATION_TYPES];
@@ -836,7 +834,8 @@ export declare function hasPasswordAuthorization(protection: ToolProtection): pr
836
834
  };
837
835
  /**
838
836
  * Type guard to check if a ToolProtection requires a Verifiable Credential
839
- * Handles both 'verifiable_credential' and legacy 'credential' types
837
+ *
838
+ * Note: Also returns true for deprecated 'credential' type (normalized to verifiable_credential)
840
839
  */
841
840
  export declare function hasVerifiableCredentialAuthorization(protection: ToolProtection): protection is ToolProtection & {
842
841
  authorization: {
@@ -911,16 +910,6 @@ export type ConsentProviderType = (typeof CONSENT_PROVIDER_TYPES)[keyof typeof C
911
910
  * @returns The consent provider type
912
911
  */
913
912
  export declare function determineConsentProviderType(hasOAuthIdentity: boolean, isPasswordFlow?: boolean, isMagicLinkFlow?: boolean, isOtpFlow?: boolean): ConsentProviderType;
914
- /**
915
- * Normalize authorization requirement to use canonical type names
916
- *
917
- * Migrates legacy 'credential' type to 'verifiable_credential'
918
- * This ensures consistent type usage across the codebase.
919
- *
920
- * @param auth - The authorization requirement (may have legacy type)
921
- * @returns Normalized authorization requirement with canonical type
922
- */
923
- export declare function normalizeAuthorizationType(auth: AuthorizationRequirement): AuthorizationRequirement;
924
913
  /**
925
914
  * Get a human-readable label for an authorization requirement type
926
915
  */
@@ -929,3 +918,28 @@ export declare function getAuthorizationTypeLabel(auth: AuthorizationRequirement
929
918
  * Get a unique key for an authorization requirement (for React keys, caching, etc.)
930
919
  */
931
920
  export declare function getAuthorizationTypeKey(auth: AuthorizationRequirement): string;
921
+ /**
922
+ * Normalize authorization requirement type
923
+ *
924
+ * Normalizes deprecated 'credential' type to 'verifiable_credential' and emits
925
+ * deprecation warnings. This function should be called at runtime boundaries
926
+ * when processing authorization requirements.
927
+ *
928
+ * @param auth - Authorization requirement (may contain deprecated 'credential' type)
929
+ * @param options - Normalization options
930
+ * @returns Normalized authorization requirement
931
+ *
932
+ * @example
933
+ * ```typescript
934
+ * const normalized = normalizeAuthorizationType(
935
+ * { type: 'credential', credentialType: 'delegation' },
936
+ * { warn: true }
937
+ * );
938
+ * // Returns: { type: 'verifiable_credential', credentialType: 'delegation' }
939
+ * // Logs: DEPRECATION warning
940
+ * ```
941
+ */
942
+ export declare function normalizeAuthorizationType(auth: AuthorizationRequirement, options?: {
943
+ warn?: boolean;
944
+ logger?: (message: string) => void;
945
+ }): AuthorizationRequirement;