@kya-os/contracts 1.5.2-canary.3 → 1.5.2-canary.5

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.
@@ -1727,9 +1727,9 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1727
1727
  status: "active" | "revoked" | "expired";
1728
1728
  constraints: {
1729
1729
  audience?: string | string[] | undefined;
1730
+ scopes?: string[] | undefined;
1730
1731
  notBefore?: number | undefined;
1731
1732
  notAfter?: number | undefined;
1732
- scopes?: string[] | undefined;
1733
1733
  crisp?: z.objectOutputType<{
1734
1734
  budget: z.ZodOptional<z.ZodObject<{
1735
1735
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -1785,9 +1785,9 @@ export declare const DelegationChainEntrySchema: z.ZodObject<{
1785
1785
  status: "active" | "revoked" | "expired";
1786
1786
  constraints: {
1787
1787
  audience?: string | string[] | undefined;
1788
+ scopes?: string[] | undefined;
1788
1789
  notBefore?: number | undefined;
1789
1790
  notAfter?: number | undefined;
1790
- scopes?: string[] | undefined;
1791
1791
  crisp?: z.objectInputType<{
1792
1792
  budget: z.ZodOptional<z.ZodObject<{
1793
1793
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2267,9 +2267,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
2267
2267
  status: "active" | "revoked" | "expired";
2268
2268
  constraints: {
2269
2269
  audience?: string | string[] | undefined;
2270
+ scopes?: string[] | undefined;
2270
2271
  notBefore?: number | undefined;
2271
2272
  notAfter?: number | undefined;
2272
- scopes?: string[] | undefined;
2273
2273
  crisp?: z.objectOutputType<{
2274
2274
  budget: z.ZodOptional<z.ZodObject<{
2275
2275
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2325,9 +2325,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
2325
2325
  status: "active" | "revoked" | "expired";
2326
2326
  constraints: {
2327
2327
  audience?: string | string[] | undefined;
2328
+ scopes?: string[] | undefined;
2328
2329
  notBefore?: number | undefined;
2329
2330
  notAfter?: number | undefined;
2330
- scopes?: string[] | undefined;
2331
2331
  crisp?: z.objectInputType<{
2332
2332
  budget: z.ZodOptional<z.ZodObject<{
2333
2333
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2395,9 +2395,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
2395
2395
  status: "active" | "revoked" | "expired";
2396
2396
  constraints: {
2397
2397
  audience?: string | string[] | undefined;
2398
+ scopes?: string[] | undefined;
2398
2399
  notBefore?: number | undefined;
2399
2400
  notAfter?: number | undefined;
2400
- scopes?: string[] | undefined;
2401
2401
  crisp?: z.objectOutputType<{
2402
2402
  budget: z.ZodOptional<z.ZodObject<{
2403
2403
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2460,9 +2460,9 @@ export declare const DelegationChainSchema: z.ZodObject<{
2460
2460
  status: "active" | "revoked" | "expired";
2461
2461
  constraints: {
2462
2462
  audience?: string | string[] | undefined;
2463
+ scopes?: string[] | undefined;
2463
2464
  notBefore?: number | undefined;
2464
2465
  notAfter?: number | undefined;
2465
- scopes?: string[] | undefined;
2466
2466
  crisp?: z.objectInputType<{
2467
2467
  budget: z.ZodOptional<z.ZodObject<{
2468
2468
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2935,9 +2935,9 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2935
2935
  }, "strip", z.ZodTypeAny, {
2936
2936
  constraints: {
2937
2937
  audience?: string | string[] | undefined;
2938
+ scopes?: string[] | undefined;
2938
2939
  notBefore?: number | undefined;
2939
2940
  notAfter?: number | undefined;
2940
- scopes?: string[] | undefined;
2941
2941
  crisp?: z.objectOutputType<{
2942
2942
  budget: z.ZodOptional<z.ZodObject<{
2943
2943
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -2992,9 +2992,9 @@ export declare const DelegationCreationRequestSchema: z.ZodObject<{
2992
2992
  }, {
2993
2993
  constraints: {
2994
2994
  audience?: string | string[] | undefined;
2995
+ scopes?: string[] | undefined;
2995
2996
  notBefore?: number | undefined;
2996
2997
  notAfter?: number | undefined;
2997
- scopes?: string[] | undefined;
2998
2998
  crisp?: z.objectInputType<{
2999
2999
  budget: z.ZodOptional<z.ZodObject<{
3000
3000
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -3073,21 +3073,21 @@ export declare const DelegationVerificationResultSchema: z.ZodObject<{
3073
3073
  }, "strip", z.ZodTypeAny, {
3074
3074
  valid: boolean;
3075
3075
  status: "active" | "revoked" | "expired";
3076
- delegationId: string;
3077
3076
  verifiedAt: number;
3077
+ delegationId: string;
3078
+ details?: Record<string, any> | undefined;
3078
3079
  reason?: string | undefined;
3079
3080
  credentialValid?: boolean | undefined;
3080
3081
  chainValid?: boolean | undefined;
3081
- details?: Record<string, any> | undefined;
3082
3082
  }, {
3083
3083
  valid: boolean;
3084
3084
  status: "active" | "revoked" | "expired";
3085
- delegationId: string;
3086
3085
  verifiedAt: number;
3086
+ delegationId: string;
3087
+ details?: Record<string, any> | undefined;
3087
3088
  reason?: string | undefined;
3088
3089
  credentialValid?: boolean | undefined;
3089
3090
  chainValid?: boolean | undefined;
3090
- details?: Record<string, any> | undefined;
3091
3091
  }>;
3092
3092
  export type DelegationVerificationResult = z.infer<typeof DelegationVerificationResultSchema>;
3093
3093
  /**
@@ -3961,9 +3961,9 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
3961
3961
  status: "active" | "revoked" | "expired";
3962
3962
  constraints: {
3963
3963
  audience?: string | string[] | undefined;
3964
+ scopes?: string[] | undefined;
3964
3965
  notBefore?: number | undefined;
3965
3966
  notAfter?: number | undefined;
3966
- scopes?: string[] | undefined;
3967
3967
  crisp?: z.objectInputType<{
3968
3968
  budget: z.ZodOptional<z.ZodObject<{
3969
3969
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4026,9 +4026,9 @@ export declare function validateDelegationChain(chain: unknown): z.SafeParseRetu
4026
4026
  status: "active" | "revoked" | "expired";
4027
4027
  constraints: {
4028
4028
  audience?: string | string[] | undefined;
4029
+ scopes?: string[] | undefined;
4029
4030
  notBefore?: number | undefined;
4030
4031
  notAfter?: number | undefined;
4031
- scopes?: string[] | undefined;
4032
4032
  crisp?: z.objectOutputType<{
4033
4033
  budget: z.ZodOptional<z.ZodObject<{
4034
4034
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4556,11 +4556,12 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4556
4556
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4557
4557
  }, "strip", z.ZodTypeAny, {
4558
4558
  status: "active" | "revoked" | "expired";
4559
+ id: string;
4559
4560
  constraints: {
4560
4561
  audience?: string | string[] | undefined;
4562
+ scopes?: string[] | undefined;
4561
4563
  notBefore?: number | undefined;
4562
4564
  notAfter?: number | undefined;
4563
- scopes?: string[] | undefined;
4564
4565
  crisp?: z.objectOutputType<{
4565
4566
  budget: z.ZodOptional<z.ZodObject<{
4566
4567
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4607,19 +4608,19 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4607
4608
  } & {
4608
4609
  [k: string]: unknown;
4609
4610
  };
4610
- id: string;
4611
4611
  issuerDid: string;
4612
4612
  subjectDid: string;
4613
4613
  createdAt?: number | undefined;
4614
+ metadata?: Record<string, any> | undefined;
4614
4615
  controller?: string | undefined;
4615
4616
  parentId?: string | undefined;
4616
- metadata?: Record<string, any> | undefined;
4617
4617
  }, {
4618
+ id: string;
4618
4619
  constraints: {
4619
4620
  audience?: string | string[] | undefined;
4621
+ scopes?: string[] | undefined;
4620
4622
  notBefore?: number | undefined;
4621
4623
  notAfter?: number | undefined;
4622
- scopes?: string[] | undefined;
4623
4624
  crisp?: z.objectInputType<{
4624
4625
  budget: z.ZodOptional<z.ZodObject<{
4625
4626
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4666,24 +4667,23 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4666
4667
  } & {
4667
4668
  [k: string]: unknown;
4668
4669
  };
4669
- id: string;
4670
4670
  issuerDid: string;
4671
4671
  subjectDid: string;
4672
4672
  status?: "active" | "revoked" | "expired" | undefined;
4673
4673
  createdAt?: number | undefined;
4674
+ metadata?: Record<string, any> | undefined;
4674
4675
  controller?: string | undefined;
4675
4676
  parentId?: string | undefined;
4676
- metadata?: Record<string, any> | undefined;
4677
4677
  }>;
4678
4678
  }, "strip", z.ZodTypeAny, {
4679
- id: string;
4680
4679
  delegation: {
4681
4680
  status: "active" | "revoked" | "expired";
4681
+ id: string;
4682
4682
  constraints: {
4683
4683
  audience?: string | string[] | undefined;
4684
+ scopes?: string[] | undefined;
4684
4685
  notBefore?: number | undefined;
4685
4686
  notAfter?: number | undefined;
4686
- scopes?: string[] | undefined;
4687
4687
  crisp?: z.objectOutputType<{
4688
4688
  budget: z.ZodOptional<z.ZodObject<{
4689
4689
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4730,22 +4730,22 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4730
4730
  } & {
4731
4731
  [k: string]: unknown;
4732
4732
  };
4733
- id: string;
4734
4733
  issuerDid: string;
4735
4734
  subjectDid: string;
4736
4735
  createdAt?: number | undefined;
4736
+ metadata?: Record<string, any> | undefined;
4737
4737
  controller?: string | undefined;
4738
4738
  parentId?: string | undefined;
4739
- metadata?: Record<string, any> | undefined;
4740
4739
  };
4741
- }, {
4742
4740
  id: string;
4741
+ }, {
4743
4742
  delegation: {
4743
+ id: string;
4744
4744
  constraints: {
4745
4745
  audience?: string | string[] | undefined;
4746
+ scopes?: string[] | undefined;
4746
4747
  notBefore?: number | undefined;
4747
4748
  notAfter?: number | undefined;
4748
- scopes?: string[] | undefined;
4749
4749
  crisp?: z.objectInputType<{
4750
4750
  budget: z.ZodOptional<z.ZodObject<{
4751
4751
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -4792,15 +4792,15 @@ export declare const DelegationCredentialSubjectSchema: z.ZodObject<{
4792
4792
  } & {
4793
4793
  [k: string]: unknown;
4794
4794
  };
4795
- id: string;
4796
4795
  issuerDid: string;
4797
4796
  subjectDid: string;
4798
4797
  status?: "active" | "revoked" | "expired" | undefined;
4799
4798
  createdAt?: number | undefined;
4799
+ metadata?: Record<string, any> | undefined;
4800
4800
  controller?: string | undefined;
4801
4801
  parentId?: string | undefined;
4802
- metadata?: Record<string, any> | undefined;
4803
4802
  };
4803
+ id: string;
4804
4804
  }>;
4805
4805
  export type DelegationCredentialSubject = z.infer<typeof DelegationCredentialSubjectSchema>;
4806
4806
  /**
@@ -5261,11 +5261,12 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5261
5261
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5262
5262
  }, "strip", z.ZodTypeAny, {
5263
5263
  status: "active" | "revoked" | "expired";
5264
+ id: string;
5264
5265
  constraints: {
5265
5266
  audience?: string | string[] | undefined;
5267
+ scopes?: string[] | undefined;
5266
5268
  notBefore?: number | undefined;
5267
5269
  notAfter?: number | undefined;
5268
- scopes?: string[] | undefined;
5269
5270
  crisp?: z.objectOutputType<{
5270
5271
  budget: z.ZodOptional<z.ZodObject<{
5271
5272
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5312,19 +5313,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5312
5313
  } & {
5313
5314
  [k: string]: unknown;
5314
5315
  };
5315
- id: string;
5316
5316
  issuerDid: string;
5317
5317
  subjectDid: string;
5318
5318
  createdAt?: number | undefined;
5319
+ metadata?: Record<string, any> | undefined;
5319
5320
  controller?: string | undefined;
5320
5321
  parentId?: string | undefined;
5321
- metadata?: Record<string, any> | undefined;
5322
5322
  }, {
5323
+ id: string;
5323
5324
  constraints: {
5324
5325
  audience?: string | string[] | undefined;
5326
+ scopes?: string[] | undefined;
5325
5327
  notBefore?: number | undefined;
5326
5328
  notAfter?: number | undefined;
5327
- scopes?: string[] | undefined;
5328
5329
  crisp?: z.objectInputType<{
5329
5330
  budget: z.ZodOptional<z.ZodObject<{
5330
5331
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5371,24 +5372,23 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5371
5372
  } & {
5372
5373
  [k: string]: unknown;
5373
5374
  };
5374
- id: string;
5375
5375
  issuerDid: string;
5376
5376
  subjectDid: string;
5377
5377
  status?: "active" | "revoked" | "expired" | undefined;
5378
5378
  createdAt?: number | undefined;
5379
+ metadata?: Record<string, any> | undefined;
5379
5380
  controller?: string | undefined;
5380
5381
  parentId?: string | undefined;
5381
- metadata?: Record<string, any> | undefined;
5382
5382
  }>;
5383
5383
  }, "strip", z.ZodTypeAny, {
5384
- id: string;
5385
5384
  delegation: {
5386
5385
  status: "active" | "revoked" | "expired";
5386
+ id: string;
5387
5387
  constraints: {
5388
5388
  audience?: string | string[] | undefined;
5389
+ scopes?: string[] | undefined;
5389
5390
  notBefore?: number | undefined;
5390
5391
  notAfter?: number | undefined;
5391
- scopes?: string[] | undefined;
5392
5392
  crisp?: z.objectOutputType<{
5393
5393
  budget: z.ZodOptional<z.ZodObject<{
5394
5394
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5435,22 +5435,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5435
5435
  } & {
5436
5436
  [k: string]: unknown;
5437
5437
  };
5438
- id: string;
5439
5438
  issuerDid: string;
5440
5439
  subjectDid: string;
5441
5440
  createdAt?: number | undefined;
5441
+ metadata?: Record<string, any> | undefined;
5442
5442
  controller?: string | undefined;
5443
5443
  parentId?: string | undefined;
5444
- metadata?: Record<string, any> | undefined;
5445
5444
  };
5446
- }, {
5447
5445
  id: string;
5446
+ }, {
5448
5447
  delegation: {
5448
+ id: string;
5449
5449
  constraints: {
5450
5450
  audience?: string | string[] | undefined;
5451
+ scopes?: string[] | undefined;
5451
5452
  notBefore?: number | undefined;
5452
5453
  notAfter?: number | undefined;
5453
- scopes?: string[] | undefined;
5454
5454
  crisp?: z.objectInputType<{
5455
5455
  budget: z.ZodOptional<z.ZodObject<{
5456
5456
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -5497,15 +5497,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5497
5497
  } & {
5498
5498
  [k: string]: unknown;
5499
5499
  };
5500
- id: string;
5501
5500
  issuerDid: string;
5502
5501
  subjectDid: string;
5503
5502
  status?: "active" | "revoked" | "expired" | undefined;
5504
5503
  createdAt?: number | undefined;
5504
+ metadata?: Record<string, any> | undefined;
5505
5505
  controller?: string | undefined;
5506
5506
  parentId?: string | undefined;
5507
- metadata?: Record<string, any> | undefined;
5508
5507
  };
5508
+ id: string;
5509
5509
  }>;
5510
5510
  credentialStatus: z.ZodOptional<z.ZodObject<{
5511
5511
  id: z.ZodString;
@@ -5977,11 +5977,12 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
5977
5977
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5978
5978
  }, "strip", z.ZodTypeAny, {
5979
5979
  status: "active" | "revoked" | "expired";
5980
+ id: string;
5980
5981
  constraints: {
5981
5982
  audience?: string | string[] | undefined;
5983
+ scopes?: string[] | undefined;
5982
5984
  notBefore?: number | undefined;
5983
5985
  notAfter?: number | undefined;
5984
- scopes?: string[] | undefined;
5985
5986
  crisp?: z.objectOutputType<{
5986
5987
  budget: z.ZodOptional<z.ZodObject<{
5987
5988
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6028,19 +6029,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6028
6029
  } & {
6029
6030
  [k: string]: unknown;
6030
6031
  };
6031
- id: string;
6032
6032
  issuerDid: string;
6033
6033
  subjectDid: string;
6034
6034
  createdAt?: number | undefined;
6035
+ metadata?: Record<string, any> | undefined;
6035
6036
  controller?: string | undefined;
6036
6037
  parentId?: string | undefined;
6037
- metadata?: Record<string, any> | undefined;
6038
6038
  }, {
6039
+ id: string;
6039
6040
  constraints: {
6040
6041
  audience?: string | string[] | undefined;
6042
+ scopes?: string[] | undefined;
6041
6043
  notBefore?: number | undefined;
6042
6044
  notAfter?: number | undefined;
6043
- scopes?: string[] | undefined;
6044
6045
  crisp?: z.objectInputType<{
6045
6046
  budget: z.ZodOptional<z.ZodObject<{
6046
6047
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6087,24 +6088,23 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6087
6088
  } & {
6088
6089
  [k: string]: unknown;
6089
6090
  };
6090
- id: string;
6091
6091
  issuerDid: string;
6092
6092
  subjectDid: string;
6093
6093
  status?: "active" | "revoked" | "expired" | undefined;
6094
6094
  createdAt?: number | undefined;
6095
+ metadata?: Record<string, any> | undefined;
6095
6096
  controller?: string | undefined;
6096
6097
  parentId?: string | undefined;
6097
- metadata?: Record<string, any> | undefined;
6098
6098
  }>;
6099
6099
  }, "strip", z.ZodTypeAny, {
6100
- id: string;
6101
6100
  delegation: {
6102
6101
  status: "active" | "revoked" | "expired";
6102
+ id: string;
6103
6103
  constraints: {
6104
6104
  audience?: string | string[] | undefined;
6105
+ scopes?: string[] | undefined;
6105
6106
  notBefore?: number | undefined;
6106
6107
  notAfter?: number | undefined;
6107
- scopes?: string[] | undefined;
6108
6108
  crisp?: z.objectOutputType<{
6109
6109
  budget: z.ZodOptional<z.ZodObject<{
6110
6110
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6151,22 +6151,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6151
6151
  } & {
6152
6152
  [k: string]: unknown;
6153
6153
  };
6154
- id: string;
6155
6154
  issuerDid: string;
6156
6155
  subjectDid: string;
6157
6156
  createdAt?: number | undefined;
6157
+ metadata?: Record<string, any> | undefined;
6158
6158
  controller?: string | undefined;
6159
6159
  parentId?: string | undefined;
6160
- metadata?: Record<string, any> | undefined;
6161
6160
  };
6162
- }, {
6163
6161
  id: string;
6162
+ }, {
6164
6163
  delegation: {
6164
+ id: string;
6165
6165
  constraints: {
6166
6166
  audience?: string | string[] | undefined;
6167
+ scopes?: string[] | undefined;
6167
6168
  notBefore?: number | undefined;
6168
6169
  notAfter?: number | undefined;
6169
- scopes?: string[] | undefined;
6170
6170
  crisp?: z.objectInputType<{
6171
6171
  budget: z.ZodOptional<z.ZodObject<{
6172
6172
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6213,15 +6213,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6213
6213
  } & {
6214
6214
  [k: string]: unknown;
6215
6215
  };
6216
- id: string;
6217
6216
  issuerDid: string;
6218
6217
  subjectDid: string;
6219
6218
  status?: "active" | "revoked" | "expired" | undefined;
6220
6219
  createdAt?: number | undefined;
6220
+ metadata?: Record<string, any> | undefined;
6221
6221
  controller?: string | undefined;
6222
6222
  parentId?: string | undefined;
6223
- metadata?: Record<string, any> | undefined;
6224
6223
  };
6224
+ id: string;
6225
6225
  }>;
6226
6226
  credentialStatus: z.ZodOptional<z.ZodObject<{
6227
6227
  id: z.ZodString;
@@ -6693,11 +6693,12 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6693
6693
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6694
6694
  }, "strip", z.ZodTypeAny, {
6695
6695
  status: "active" | "revoked" | "expired";
6696
+ id: string;
6696
6697
  constraints: {
6697
6698
  audience?: string | string[] | undefined;
6699
+ scopes?: string[] | undefined;
6698
6700
  notBefore?: number | undefined;
6699
6701
  notAfter?: number | undefined;
6700
- scopes?: string[] | undefined;
6701
6702
  crisp?: z.objectOutputType<{
6702
6703
  budget: z.ZodOptional<z.ZodObject<{
6703
6704
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6744,19 +6745,19 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6744
6745
  } & {
6745
6746
  [k: string]: unknown;
6746
6747
  };
6747
- id: string;
6748
6748
  issuerDid: string;
6749
6749
  subjectDid: string;
6750
6750
  createdAt?: number | undefined;
6751
+ metadata?: Record<string, any> | undefined;
6751
6752
  controller?: string | undefined;
6752
6753
  parentId?: string | undefined;
6753
- metadata?: Record<string, any> | undefined;
6754
6754
  }, {
6755
+ id: string;
6755
6756
  constraints: {
6756
6757
  audience?: string | string[] | undefined;
6758
+ scopes?: string[] | undefined;
6757
6759
  notBefore?: number | undefined;
6758
6760
  notAfter?: number | undefined;
6759
- scopes?: string[] | undefined;
6760
6761
  crisp?: z.objectInputType<{
6761
6762
  budget: z.ZodOptional<z.ZodObject<{
6762
6763
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6803,24 +6804,23 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6803
6804
  } & {
6804
6805
  [k: string]: unknown;
6805
6806
  };
6806
- id: string;
6807
6807
  issuerDid: string;
6808
6808
  subjectDid: string;
6809
6809
  status?: "active" | "revoked" | "expired" | undefined;
6810
6810
  createdAt?: number | undefined;
6811
+ metadata?: Record<string, any> | undefined;
6811
6812
  controller?: string | undefined;
6812
6813
  parentId?: string | undefined;
6813
- metadata?: Record<string, any> | undefined;
6814
6814
  }>;
6815
6815
  }, "strip", z.ZodTypeAny, {
6816
- id: string;
6817
6816
  delegation: {
6818
6817
  status: "active" | "revoked" | "expired";
6818
+ id: string;
6819
6819
  constraints: {
6820
6820
  audience?: string | string[] | undefined;
6821
+ scopes?: string[] | undefined;
6821
6822
  notBefore?: number | undefined;
6822
6823
  notAfter?: number | undefined;
6823
- scopes?: string[] | undefined;
6824
6824
  crisp?: z.objectOutputType<{
6825
6825
  budget: z.ZodOptional<z.ZodObject<{
6826
6826
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6867,22 +6867,22 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6867
6867
  } & {
6868
6868
  [k: string]: unknown;
6869
6869
  };
6870
- id: string;
6871
6870
  issuerDid: string;
6872
6871
  subjectDid: string;
6873
6872
  createdAt?: number | undefined;
6873
+ metadata?: Record<string, any> | undefined;
6874
6874
  controller?: string | undefined;
6875
6875
  parentId?: string | undefined;
6876
- metadata?: Record<string, any> | undefined;
6877
6876
  };
6878
- }, {
6879
6877
  id: string;
6878
+ }, {
6880
6879
  delegation: {
6880
+ id: string;
6881
6881
  constraints: {
6882
6882
  audience?: string | string[] | undefined;
6883
+ scopes?: string[] | undefined;
6883
6884
  notBefore?: number | undefined;
6884
6885
  notAfter?: number | undefined;
6885
- scopes?: string[] | undefined;
6886
6886
  crisp?: z.objectInputType<{
6887
6887
  budget: z.ZodOptional<z.ZodObject<{
6888
6888
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -6929,15 +6929,15 @@ export declare const DelegationCredentialSchema: z.ZodObject<{
6929
6929
  } & {
6930
6930
  [k: string]: unknown;
6931
6931
  };
6932
- id: string;
6933
6932
  issuerDid: string;
6934
6933
  subjectDid: string;
6935
6934
  status?: "active" | "revoked" | "expired" | undefined;
6936
6935
  createdAt?: number | undefined;
6936
+ metadata?: Record<string, any> | undefined;
6937
6937
  controller?: string | undefined;
6938
6938
  parentId?: string | undefined;
6939
- metadata?: Record<string, any> | undefined;
6940
6939
  };
6940
+ id: string;
6941
6941
  }>;
6942
6942
  credentialStatus: z.ZodOptional<z.ZodObject<{
6943
6943
  id: z.ZodString;
@@ -7417,11 +7417,12 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7417
7417
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7418
7418
  }, "strip", z.ZodTypeAny, {
7419
7419
  status: "active" | "revoked" | "expired";
7420
+ id: string;
7420
7421
  constraints: {
7421
7422
  audience?: string | string[] | undefined;
7423
+ scopes?: string[] | undefined;
7422
7424
  notBefore?: number | undefined;
7423
7425
  notAfter?: number | undefined;
7424
- scopes?: string[] | undefined;
7425
7426
  crisp?: z.objectOutputType<{
7426
7427
  budget: z.ZodOptional<z.ZodObject<{
7427
7428
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7468,19 +7469,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7468
7469
  } & {
7469
7470
  [k: string]: unknown;
7470
7471
  };
7471
- id: string;
7472
7472
  issuerDid: string;
7473
7473
  subjectDid: string;
7474
7474
  createdAt?: number | undefined;
7475
+ metadata?: Record<string, any> | undefined;
7475
7476
  controller?: string | undefined;
7476
7477
  parentId?: string | undefined;
7477
- metadata?: Record<string, any> | undefined;
7478
7478
  }, {
7479
+ id: string;
7479
7480
  constraints: {
7480
7481
  audience?: string | string[] | undefined;
7482
+ scopes?: string[] | undefined;
7481
7483
  notBefore?: number | undefined;
7482
7484
  notAfter?: number | undefined;
7483
- scopes?: string[] | undefined;
7484
7485
  crisp?: z.objectInputType<{
7485
7486
  budget: z.ZodOptional<z.ZodObject<{
7486
7487
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7527,24 +7528,23 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7527
7528
  } & {
7528
7529
  [k: string]: unknown;
7529
7530
  };
7530
- id: string;
7531
7531
  issuerDid: string;
7532
7532
  subjectDid: string;
7533
7533
  status?: "active" | "revoked" | "expired" | undefined;
7534
7534
  createdAt?: number | undefined;
7535
+ metadata?: Record<string, any> | undefined;
7535
7536
  controller?: string | undefined;
7536
7537
  parentId?: string | undefined;
7537
- metadata?: Record<string, any> | undefined;
7538
7538
  }>;
7539
7539
  }, "strip", z.ZodTypeAny, {
7540
- id: string;
7541
7540
  delegation: {
7542
7541
  status: "active" | "revoked" | "expired";
7542
+ id: string;
7543
7543
  constraints: {
7544
7544
  audience?: string | string[] | undefined;
7545
+ scopes?: string[] | undefined;
7545
7546
  notBefore?: number | undefined;
7546
7547
  notAfter?: number | undefined;
7547
- scopes?: string[] | undefined;
7548
7548
  crisp?: z.objectOutputType<{
7549
7549
  budget: z.ZodOptional<z.ZodObject<{
7550
7550
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7591,22 +7591,22 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7591
7591
  } & {
7592
7592
  [k: string]: unknown;
7593
7593
  };
7594
- id: string;
7595
7594
  issuerDid: string;
7596
7595
  subjectDid: string;
7597
7596
  createdAt?: number | undefined;
7597
+ metadata?: Record<string, any> | undefined;
7598
7598
  controller?: string | undefined;
7599
7599
  parentId?: string | undefined;
7600
- metadata?: Record<string, any> | undefined;
7601
7600
  };
7602
- }, {
7603
7601
  id: string;
7602
+ }, {
7604
7603
  delegation: {
7604
+ id: string;
7605
7605
  constraints: {
7606
7606
  audience?: string | string[] | undefined;
7607
+ scopes?: string[] | undefined;
7607
7608
  notBefore?: number | undefined;
7608
7609
  notAfter?: number | undefined;
7609
- scopes?: string[] | undefined;
7610
7610
  crisp?: z.objectInputType<{
7611
7611
  budget: z.ZodOptional<z.ZodObject<{
7612
7612
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -7653,15 +7653,15 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
7653
7653
  } & {
7654
7654
  [k: string]: unknown;
7655
7655
  };
7656
- id: string;
7657
7656
  issuerDid: string;
7658
7657
  subjectDid: string;
7659
7658
  status?: "active" | "revoked" | "expired" | undefined;
7660
7659
  createdAt?: number | undefined;
7660
+ metadata?: Record<string, any> | undefined;
7661
7661
  controller?: string | undefined;
7662
7662
  parentId?: string | undefined;
7663
- metadata?: Record<string, any> | undefined;
7664
7663
  };
7664
+ id: string;
7665
7665
  }>;
7666
7666
  credentialStatus: z.ZodOptional<z.ZodObject<{
7667
7667
  id: z.ZodString;
@@ -8133,11 +8133,12 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8133
8133
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
8134
8134
  }, "strip", z.ZodTypeAny, {
8135
8135
  status: "active" | "revoked" | "expired";
8136
+ id: string;
8136
8137
  constraints: {
8137
8138
  audience?: string | string[] | undefined;
8139
+ scopes?: string[] | undefined;
8138
8140
  notBefore?: number | undefined;
8139
8141
  notAfter?: number | undefined;
8140
- scopes?: string[] | undefined;
8141
8142
  crisp?: z.objectOutputType<{
8142
8143
  budget: z.ZodOptional<z.ZodObject<{
8143
8144
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8184,19 +8185,19 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8184
8185
  } & {
8185
8186
  [k: string]: unknown;
8186
8187
  };
8187
- id: string;
8188
8188
  issuerDid: string;
8189
8189
  subjectDid: string;
8190
8190
  createdAt?: number | undefined;
8191
+ metadata?: Record<string, any> | undefined;
8191
8192
  controller?: string | undefined;
8192
8193
  parentId?: string | undefined;
8193
- metadata?: Record<string, any> | undefined;
8194
8194
  }, {
8195
+ id: string;
8195
8196
  constraints: {
8196
8197
  audience?: string | string[] | undefined;
8198
+ scopes?: string[] | undefined;
8197
8199
  notBefore?: number | undefined;
8198
8200
  notAfter?: number | undefined;
8199
- scopes?: string[] | undefined;
8200
8201
  crisp?: z.objectInputType<{
8201
8202
  budget: z.ZodOptional<z.ZodObject<{
8202
8203
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8243,24 +8244,23 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8243
8244
  } & {
8244
8245
  [k: string]: unknown;
8245
8246
  };
8246
- id: string;
8247
8247
  issuerDid: string;
8248
8248
  subjectDid: string;
8249
8249
  status?: "active" | "revoked" | "expired" | undefined;
8250
8250
  createdAt?: number | undefined;
8251
+ metadata?: Record<string, any> | undefined;
8251
8252
  controller?: string | undefined;
8252
8253
  parentId?: string | undefined;
8253
- metadata?: Record<string, any> | undefined;
8254
8254
  }>;
8255
8255
  }, "strip", z.ZodTypeAny, {
8256
- id: string;
8257
8256
  delegation: {
8258
8257
  status: "active" | "revoked" | "expired";
8258
+ id: string;
8259
8259
  constraints: {
8260
8260
  audience?: string | string[] | undefined;
8261
+ scopes?: string[] | undefined;
8261
8262
  notBefore?: number | undefined;
8262
8263
  notAfter?: number | undefined;
8263
- scopes?: string[] | undefined;
8264
8264
  crisp?: z.objectOutputType<{
8265
8265
  budget: z.ZodOptional<z.ZodObject<{
8266
8266
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8307,22 +8307,22 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8307
8307
  } & {
8308
8308
  [k: string]: unknown;
8309
8309
  };
8310
- id: string;
8311
8310
  issuerDid: string;
8312
8311
  subjectDid: string;
8313
8312
  createdAt?: number | undefined;
8313
+ metadata?: Record<string, any> | undefined;
8314
8314
  controller?: string | undefined;
8315
8315
  parentId?: string | undefined;
8316
- metadata?: Record<string, any> | undefined;
8317
8316
  };
8318
- }, {
8319
8317
  id: string;
8318
+ }, {
8320
8319
  delegation: {
8320
+ id: string;
8321
8321
  constraints: {
8322
8322
  audience?: string | string[] | undefined;
8323
+ scopes?: string[] | undefined;
8323
8324
  notBefore?: number | undefined;
8324
8325
  notAfter?: number | undefined;
8325
- scopes?: string[] | undefined;
8326
8326
  crisp?: z.objectInputType<{
8327
8327
  budget: z.ZodOptional<z.ZodObject<{
8328
8328
  unit: z.ZodEnum<["USD", "ops", "points"]>;
@@ -8369,15 +8369,15 @@ export declare function validateDelegationCredential(credential: unknown): z.Saf
8369
8369
  } & {
8370
8370
  [k: string]: unknown;
8371
8371
  };
8372
- id: string;
8373
8372
  issuerDid: string;
8374
8373
  subjectDid: string;
8375
8374
  status?: "active" | "revoked" | "expired" | undefined;
8376
8375
  createdAt?: number | undefined;
8376
+ metadata?: Record<string, any> | undefined;
8377
8377
  controller?: string | undefined;
8378
8378
  parentId?: string | undefined;
8379
- metadata?: Record<string, any> | undefined;
8380
8379
  };
8380
+ id: string;
8381
8381
  }>;
8382
8382
  credentialStatus: z.ZodOptional<z.ZodObject<{
8383
8383
  id: z.ZodString;
@@ -8455,4 +8455,3 @@ export declare function isDelegationCredentialExpired(vc: DelegationCredential):
8455
8455
  * @returns true if not yet valid
8456
8456
  */
8457
8457
  export declare function isDelegationCredentialNotYetValid(vc: DelegationCredential): boolean;
8458
- //# sourceMappingURL=schemas.d.ts.map