@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.17.bitstring.sl.2 → 0.34.1-next.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.
package/dist/index.cjs CHANGED
@@ -41,8 +41,6 @@ __export(index_exports, {
41
41
  BaseConfigEntity: () => BaseConfigEntity,
42
42
  BaseContactEntity: () => BaseContactEntity,
43
43
  BaseLocaleBrandingEntity: () => BaseLocaleBrandingEntity,
44
- BitstringStatusListEntity: () => BitstringStatusListEntity,
45
- BitstringStatusListEntryEntity: () => BitstringStatusListEntryEntity,
46
44
  ConnectionEntity: () => ConnectionEntity,
47
45
  ConnectionType: () => ConnectionType,
48
46
  ContactMetadataItemEntity: () => ContactMetadataItemEntity,
@@ -2857,8 +2855,8 @@ IssuerLocaleBrandingEntity = _ts_decorate25([
2857
2855
  ], IssuerLocaleBrandingEntity);
2858
2856
 
2859
2857
  // src/entities/statusList/StatusListEntities.ts
2860
- var import_ssi_types2 = require("@sphereon/ssi-types");
2861
- var import_typeorm27 = __toESM(require("typeorm"), 1);
2858
+ var import_ssi_types = require("@sphereon/ssi-types");
2859
+ var import_typeorm26 = __toESM(require("typeorm"), 1);
2862
2860
 
2863
2861
  // src/entities/statusList/StatusList2021EntryEntity.ts
2864
2862
  var import_class_validator18 = require("class-validator");
@@ -2911,7 +2909,7 @@ _ts_decorate26([
2911
2909
  _ts_metadata25("design:type", Number)
2912
2910
  ], StatusListEntryEntity.prototype, "statusListIndex", void 0);
2913
2911
  _ts_decorate26([
2914
- (0, import_typeorm25.ManyToOne)(() => StatusList2021Entity, (statusList) => statusList.statusListEntries),
2912
+ (0, import_typeorm25.ManyToOne)(() => StatusListEntity, (statusList) => statusList.statusListEntries),
2915
2913
  (0, import_typeorm25.JoinColumn)({
2916
2914
  name: "statusListId"
2917
2915
  }),
@@ -2961,11 +2959,6 @@ StatusListEntryEntity = _ts_decorate26([
2961
2959
 
2962
2960
  // src/entities/statusList/StatusListEntities.ts
2963
2961
  var import_ssi_sdk13 = require("@sphereon/ssi-sdk.agent-config");
2964
-
2965
- // src/entities/statusList/BitstringStatusListEntryEntity.ts
2966
- var import_class_validator19 = require("class-validator");
2967
- var import_typeorm26 = require("typeorm");
2968
- var import_ssi_types = require("@sphereon/ssi-types");
2969
2962
  function _ts_decorate27(decorators, target, key, desc) {
2970
2963
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2971
2964
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2977,162 +2970,8 @@ function _ts_metadata26(k, v) {
2977
2970
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2978
2971
  }
2979
2972
  __name(_ts_metadata26, "_ts_metadata");
2980
- var BitstringStatusListEntryEntity = class extends import_typeorm26.BaseEntity {
2981
- static {
2982
- __name(this, "BitstringStatusListEntryEntity");
2983
- }
2984
- statusListId;
2985
- statusListIndex;
2986
- statusList;
2987
- credentialId;
2988
- credentialHash;
2989
- entryCorrelationId;
2990
- statusPurpose;
2991
- statusSize;
2992
- statusMessage;
2993
- statusReference;
2994
- };
2995
- _ts_decorate27([
2996
- (0, import_typeorm26.PrimaryColumn)({
2997
- name: "statusListId",
2998
- type: "varchar",
2999
- nullable: false,
3000
- unique: false
3001
- }),
3002
- (0, import_class_validator19.Validate)(IsNonEmptyStringConstraint, {
3003
- message: "Status list id is required"
3004
- }),
3005
- _ts_metadata26("design:type", String)
3006
- ], BitstringStatusListEntryEntity.prototype, "statusListId", void 0);
3007
- _ts_decorate27([
3008
- (0, import_typeorm26.PrimaryColumn)({
3009
- name: "statusListIndex",
3010
- type: "integer",
3011
- nullable: false,
3012
- unique: false
3013
- }),
3014
- _ts_metadata26("design:type", Number)
3015
- ], BitstringStatusListEntryEntity.prototype, "statusListIndex", void 0);
3016
- _ts_decorate27([
3017
- (0, import_typeorm26.ManyToOne)(() => BitstringStatusListEntity, (statusList) => statusList.statusListEntries),
3018
- (0, import_typeorm26.JoinColumn)({
3019
- name: "statusListId"
3020
- }),
3021
- _ts_metadata26("design:type", typeof BitstringStatusListEntity === "undefined" ? Object : BitstringStatusListEntity)
3022
- ], BitstringStatusListEntryEntity.prototype, "statusList", void 0);
3023
- _ts_decorate27([
3024
- (0, import_typeorm26.Column)({
3025
- name: "credentialId",
3026
- type: "text",
3027
- nullable: true
3028
- }),
3029
- _ts_metadata26("design:type", String)
3030
- ], BitstringStatusListEntryEntity.prototype, "credentialId", void 0);
3031
- _ts_decorate27([
3032
- (0, import_typeorm26.Column)({
3033
- name: "credentialHash",
3034
- length: 128,
3035
- type: "varchar",
3036
- nullable: true,
3037
- unique: false
3038
- }),
3039
- _ts_metadata26("design:type", String)
3040
- ], BitstringStatusListEntryEntity.prototype, "credentialHash", void 0);
3041
- _ts_decorate27([
3042
- (0, import_typeorm26.Column)({
3043
- name: "correlationId",
3044
- length: 255,
3045
- type: "varchar",
3046
- nullable: true,
3047
- unique: false
3048
- }),
3049
- _ts_metadata26("design:type", String)
3050
- ], BitstringStatusListEntryEntity.prototype, "entryCorrelationId", void 0);
3051
- _ts_decorate27([
3052
- (0, import_typeorm26.Column)({
3053
- type: "varchar",
3054
- name: "statusPurpose",
3055
- nullable: false
3056
- }),
3057
- _ts_metadata26("design:type", typeof import_ssi_types.BitstringStatusPurpose === "undefined" ? Object : import_ssi_types.BitstringStatusPurpose)
3058
- ], BitstringStatusListEntryEntity.prototype, "statusPurpose", void 0);
3059
- _ts_decorate27([
3060
- (0, import_typeorm26.Column)({
3061
- type: "integer",
3062
- name: "statusSize",
3063
- nullable: true,
3064
- default: 1
3065
- }),
3066
- _ts_metadata26("design:type", Number)
3067
- ], BitstringStatusListEntryEntity.prototype, "statusSize", void 0);
3068
- _ts_decorate27([
3069
- (0, import_typeorm26.Column)({
3070
- type: "text",
3071
- name: "statusMessage",
3072
- nullable: true,
3073
- transformer: {
3074
- from(value) {
3075
- if (!value) {
3076
- return void 0;
3077
- }
3078
- return JSON.parse(value);
3079
- },
3080
- to(value) {
3081
- if (!value) {
3082
- return void 0;
3083
- }
3084
- return JSON.stringify(value);
3085
- }
3086
- }
3087
- }),
3088
- _ts_metadata26("design:type", typeof Array === "undefined" ? Object : Array)
3089
- ], BitstringStatusListEntryEntity.prototype, "statusMessage", void 0);
3090
- _ts_decorate27([
3091
- (0, import_typeorm26.Column)({
3092
- type: "text",
3093
- name: "statusReference",
3094
- nullable: true,
3095
- transformer: {
3096
- from(value) {
3097
- if (!value) {
3098
- return void 0;
3099
- }
3100
- if (value.startsWith("[")) {
3101
- return JSON.parse(value);
3102
- }
3103
- return value;
3104
- },
3105
- to(value) {
3106
- if (!value) {
3107
- return void 0;
3108
- }
3109
- if (Array.isArray(value)) {
3110
- return JSON.stringify(value);
3111
- }
3112
- return value;
3113
- }
3114
- }
3115
- }),
3116
- _ts_metadata26("design:type", Object)
3117
- ], BitstringStatusListEntryEntity.prototype, "statusReference", void 0);
3118
- BitstringStatusListEntryEntity = _ts_decorate27([
3119
- (0, import_typeorm26.Entity)("BitstringStatusListEntry")
3120
- ], BitstringStatusListEntryEntity);
3121
-
3122
- // src/entities/statusList/StatusListEntities.ts
3123
- function _ts_decorate28(decorators, target, key, desc) {
3124
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3125
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3126
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3127
- return c > 3 && r && Object.defineProperty(target, key, r), r;
3128
- }
3129
- __name(_ts_decorate28, "_ts_decorate");
3130
- function _ts_metadata27(k, v) {
3131
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3132
- }
3133
- __name(_ts_metadata27, "_ts_metadata");
3134
- var { BaseEntity: BaseEntity21, ChildEntity: ChildEntity5, Column: Column25, Entity: Entity23, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn3, TableInheritance: TableInheritance4, Unique } = import_typeorm27.default;
3135
- var StatusListEntity = class extends BaseEntity21 {
2973
+ var { BaseEntity: BaseEntity20, ChildEntity: ChildEntity5, Column: Column24, Entity: Entity22, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn2, TableInheritance: TableInheritance4, Unique } = import_typeorm26.default;
2974
+ var StatusListEntity = class extends BaseEntity20 {
3136
2975
  static {
3137
2976
  __name(this, "StatusListEntity");
3138
2977
  }
@@ -3144,33 +2983,34 @@ var StatusListEntity = class extends BaseEntity21 {
3144
2983
  credentialIdMode;
3145
2984
  proofFormat;
3146
2985
  statusListCredential;
2986
+ statusListEntries;
3147
2987
  };
3148
- _ts_decorate28([
3149
- PrimaryColumn3({
2988
+ _ts_decorate27([
2989
+ PrimaryColumn2({
3150
2990
  name: "id",
3151
2991
  type: "varchar"
3152
2992
  }),
3153
- _ts_metadata27("design:type", String)
2993
+ _ts_metadata26("design:type", String)
3154
2994
  ], StatusListEntity.prototype, "id", void 0);
3155
- _ts_decorate28([
3156
- Column25({
2995
+ _ts_decorate27([
2996
+ Column24({
3157
2997
  name: "correlationId",
3158
2998
  type: "varchar",
3159
2999
  nullable: false
3160
3000
  }),
3161
- _ts_metadata27("design:type", String)
3001
+ _ts_metadata26("design:type", String)
3162
3002
  ], StatusListEntity.prototype, "correlationId", void 0);
3163
- _ts_decorate28([
3164
- Column25({
3003
+ _ts_decorate27([
3004
+ Column24({
3165
3005
  name: "length",
3166
3006
  type: "integer",
3167
3007
  nullable: false,
3168
3008
  unique: false
3169
3009
  }),
3170
- _ts_metadata27("design:type", Number)
3010
+ _ts_metadata26("design:type", Number)
3171
3011
  ], StatusListEntity.prototype, "length", void 0);
3172
- _ts_decorate28([
3173
- Column25({
3012
+ _ts_decorate27([
3013
+ Column24({
3174
3014
  name: "issuer",
3175
3015
  type: "text",
3176
3016
  nullable: false,
@@ -3190,28 +3030,28 @@ _ts_decorate28([
3190
3030
  }
3191
3031
  }
3192
3032
  }),
3193
- _ts_metadata27("design:type", Object)
3033
+ _ts_metadata26("design:type", Object)
3194
3034
  ], StatusListEntity.prototype, "issuer", void 0);
3195
- _ts_decorate28([
3196
- Column25("simple-enum", {
3035
+ _ts_decorate27([
3036
+ Column24("simple-enum", {
3197
3037
  name: "driverType",
3198
- enum: import_ssi_types2.StatusListDriverType,
3038
+ enum: import_ssi_types.StatusListDriverType,
3199
3039
  nullable: false,
3200
- default: import_ssi_types2.StatusListDriverType.AGENT_TYPEORM
3040
+ default: import_ssi_types.StatusListDriverType.AGENT_TYPEORM
3201
3041
  }),
3202
- _ts_metadata27("design:type", typeof import_ssi_types2.StatusListDriverType === "undefined" ? Object : import_ssi_types2.StatusListDriverType)
3042
+ _ts_metadata26("design:type", typeof import_ssi_types.StatusListDriverType === "undefined" ? Object : import_ssi_types.StatusListDriverType)
3203
3043
  ], StatusListEntity.prototype, "driverType", void 0);
3204
- _ts_decorate28([
3205
- Column25("simple-enum", {
3044
+ _ts_decorate27([
3045
+ Column24("simple-enum", {
3206
3046
  name: "credentialIdMode",
3207
- enum: import_ssi_types2.StatusListCredentialIdMode,
3047
+ enum: import_ssi_types.StatusListCredentialIdMode,
3208
3048
  nullable: false,
3209
- default: import_ssi_types2.StatusListCredentialIdMode.ISSUANCE
3049
+ default: import_ssi_types.StatusListCredentialIdMode.ISSUANCE
3210
3050
  }),
3211
- _ts_metadata27("design:type", typeof import_ssi_types2.StatusListCredentialIdMode === "undefined" ? Object : import_ssi_types2.StatusListCredentialIdMode)
3051
+ _ts_metadata26("design:type", typeof import_ssi_types.StatusListCredentialIdMode === "undefined" ? Object : import_ssi_types.StatusListCredentialIdMode)
3212
3052
  ], StatusListEntity.prototype, "credentialIdMode", void 0);
3213
- _ts_decorate28([
3214
- Column25({
3053
+ _ts_decorate27([
3054
+ Column24({
3215
3055
  type: "varchar",
3216
3056
  name: "proofFormat",
3217
3057
  enum: [
@@ -3221,10 +3061,10 @@ _ts_decorate28([
3221
3061
  nullable: false,
3222
3062
  default: "lds"
3223
3063
  }),
3224
- _ts_metadata27("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
3064
+ _ts_metadata26("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
3225
3065
  ], StatusListEntity.prototype, "proofFormat", void 0);
3226
- _ts_decorate28([
3227
- Column25({
3066
+ _ts_decorate27([
3067
+ Column24({
3228
3068
  name: "statusListCredential",
3229
3069
  type: "text",
3230
3070
  nullable: true,
@@ -3244,10 +3084,14 @@ _ts_decorate28([
3244
3084
  }
3245
3085
  }
3246
3086
  }),
3247
- _ts_metadata27("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
3087
+ _ts_metadata26("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
3248
3088
  ], StatusListEntity.prototype, "statusListCredential", void 0);
3249
- StatusListEntity = _ts_decorate28([
3250
- Entity23("StatusList"),
3089
+ _ts_decorate27([
3090
+ OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
3091
+ _ts_metadata26("design:type", Array)
3092
+ ], StatusListEntity.prototype, "statusListEntries", void 0);
3093
+ StatusListEntity = _ts_decorate27([
3094
+ Entity22("StatusList"),
3251
3095
  Unique("UQ_correlationId", [
3252
3096
  "correlationId"
3253
3097
  ]),
@@ -3255,7 +3099,7 @@ StatusListEntity = _ts_decorate28([
3255
3099
  column: {
3256
3100
  type: "simple-enum",
3257
3101
  name: "type",
3258
- enum: import_ssi_types2.StatusListType
3102
+ enum: import_ssi_types.StatusListType
3259
3103
  }
3260
3104
  })
3261
3105
  ], StatusListEntity);
@@ -3265,10 +3109,9 @@ var StatusList2021Entity = class extends StatusListEntity {
3265
3109
  }
3266
3110
  indexingDirection;
3267
3111
  statusPurpose;
3268
- statusListEntries;
3269
3112
  };
3270
- _ts_decorate28([
3271
- Column25({
3113
+ _ts_decorate27([
3114
+ Column24({
3272
3115
  type: "varchar",
3273
3116
  name: "indexingDirection",
3274
3117
  enum: [
@@ -3277,23 +3120,19 @@ _ts_decorate28([
3277
3120
  nullable: false,
3278
3121
  default: "rightToLeft"
3279
3122
  }),
3280
- _ts_metadata27("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
3123
+ _ts_metadata26("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
3281
3124
  ], StatusList2021Entity.prototype, "indexingDirection", void 0);
3282
- _ts_decorate28([
3283
- Column25({
3125
+ _ts_decorate27([
3126
+ Column24({
3284
3127
  type: "varchar",
3285
3128
  name: "statusPurpose",
3286
3129
  nullable: false,
3287
3130
  default: "revocation"
3288
3131
  }),
3289
- _ts_metadata27("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
3132
+ _ts_metadata26("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
3290
3133
  ], StatusList2021Entity.prototype, "statusPurpose", void 0);
3291
- _ts_decorate28([
3292
- OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
3293
- _ts_metadata27("design:type", Array)
3294
- ], StatusList2021Entity.prototype, "statusListEntries", void 0);
3295
- StatusList2021Entity = _ts_decorate28([
3296
- ChildEntity5(import_ssi_types2.StatusListType.StatusList2021)
3134
+ StatusList2021Entity = _ts_decorate27([
3135
+ ChildEntity5(import_ssi_types.StatusListType.StatusList2021)
3297
3136
  ], StatusList2021Entity);
3298
3137
  var OAuthStatusListEntity = class extends StatusListEntity {
3299
3138
  static {
@@ -3302,114 +3141,41 @@ var OAuthStatusListEntity = class extends StatusListEntity {
3302
3141
  bitsPerStatus;
3303
3142
  expiresAt;
3304
3143
  };
3305
- _ts_decorate28([
3306
- Column25({
3144
+ _ts_decorate27([
3145
+ Column24({
3307
3146
  type: "integer",
3308
3147
  name: "bitsPerStatus",
3309
3148
  nullable: false
3310
3149
  }),
3311
- _ts_metadata27("design:type", Number)
3150
+ _ts_metadata26("design:type", Number)
3312
3151
  ], OAuthStatusListEntity.prototype, "bitsPerStatus", void 0);
3313
- _ts_decorate28([
3314
- Column25({
3152
+ _ts_decorate27([
3153
+ Column24({
3315
3154
  name: "expiresAt",
3316
3155
  nullable: true,
3317
3156
  type: (0, import_ssi_sdk13.typeOrmDateTime)()
3318
3157
  }),
3319
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3158
+ _ts_metadata26("design:type", typeof Date === "undefined" ? Object : Date)
3320
3159
  ], OAuthStatusListEntity.prototype, "expiresAt", void 0);
3321
- OAuthStatusListEntity = _ts_decorate28([
3322
- ChildEntity5(import_ssi_types2.StatusListType.OAuthStatusList)
3160
+ OAuthStatusListEntity = _ts_decorate27([
3161
+ ChildEntity5(import_ssi_types.StatusListType.OAuthStatusList)
3323
3162
  ], OAuthStatusListEntity);
3324
- var BitstringStatusListEntity = class extends StatusListEntity {
3325
- static {
3326
- __name(this, "BitstringStatusListEntity");
3327
- }
3328
- statusPurpose;
3329
- statusSize;
3330
- validFrom;
3331
- validUntil;
3332
- ttl;
3333
- statusListEntries;
3334
- };
3335
- _ts_decorate28([
3336
- Column25({
3337
- type: "varchar",
3338
- name: "statusPurpose",
3339
- nullable: false,
3340
- transformer: {
3341
- from(value) {
3342
- if (value?.includes(",")) {
3343
- return value.split(",").map((v) => v.trim());
3344
- }
3345
- return value;
3346
- },
3347
- to(value) {
3348
- if (Array.isArray(value)) {
3349
- return value.join(",");
3350
- }
3351
- return value;
3352
- }
3353
- }
3354
- }),
3355
- _ts_metadata27("design:type", Object)
3356
- ], BitstringStatusListEntity.prototype, "statusPurpose", void 0);
3357
- _ts_decorate28([
3358
- Column25({
3359
- type: "integer",
3360
- name: "statusSize",
3361
- nullable: true,
3362
- default: 1
3363
- }),
3364
- _ts_metadata27("design:type", Number)
3365
- ], BitstringStatusListEntity.prototype, "statusSize", void 0);
3366
- _ts_decorate28([
3367
- Column25({
3368
- name: "validFrom",
3369
- nullable: true,
3370
- type: (0, import_ssi_sdk13.typeOrmDateTime)()
3371
- }),
3372
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3373
- ], BitstringStatusListEntity.prototype, "validFrom", void 0);
3374
- _ts_decorate28([
3375
- Column25({
3376
- name: "validUntil",
3377
- nullable: true,
3378
- type: (0, import_ssi_sdk13.typeOrmDateTime)()
3379
- }),
3380
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3381
- ], BitstringStatusListEntity.prototype, "validUntil", void 0);
3382
- _ts_decorate28([
3383
- Column25({
3384
- type: "integer",
3385
- name: "ttl",
3386
- nullable: true
3387
- }),
3388
- _ts_metadata27("design:type", Number)
3389
- ], BitstringStatusListEntity.prototype, "ttl", void 0);
3390
- _ts_decorate28([
3391
- OneToMany8((type) => BitstringStatusListEntryEntity, (entry) => entry.statusList),
3392
- _ts_metadata27("design:type", Array)
3393
- ], BitstringStatusListEntity.prototype, "statusListEntries", void 0);
3394
- BitstringStatusListEntity = _ts_decorate28([
3395
- ChildEntity5(import_ssi_types2.StatusListType.BitstringStatusList)
3396
- ], BitstringStatusListEntity);
3397
3163
 
3398
3164
  // src/entities/machineState/MachineStateInfoEntity.ts
3399
- var import_typeorm28 = require("typeorm");
3165
+ var import_typeorm27 = require("typeorm");
3400
3166
  var import_ssi_sdk14 = require("@sphereon/ssi-sdk.agent-config");
3401
- function _ts_decorate29(decorators, target, key, desc) {
3167
+ function _ts_decorate28(decorators, target, key, desc) {
3402
3168
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3403
3169
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3404
3170
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3405
3171
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3406
3172
  }
3407
- __name(_ts_decorate29, "_ts_decorate");
3408
- function _ts_metadata28(k, v) {
3173
+ __name(_ts_decorate28, "_ts_decorate");
3174
+ function _ts_metadata27(k, v) {
3409
3175
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3410
3176
  }
3411
- __name(_ts_metadata28, "_ts_metadata");
3412
- var MachineStateInfoEntity = class extends import_typeorm28.BaseEntity {
3177
+ __name(_ts_metadata27, "_ts_metadata");
3178
+ var MachineStateInfoEntity = class extends import_typeorm27.BaseEntity {
3413
3179
  static {
3414
3180
  __name(this, "MachineStateInfoEntity");
3415
3181
  }
@@ -3427,120 +3193,120 @@ var MachineStateInfoEntity = class extends import_typeorm28.BaseEntity {
3427
3193
  completedAt;
3428
3194
  tenantId;
3429
3195
  };
3430
- _ts_decorate29([
3431
- (0, import_typeorm28.PrimaryColumn)({
3196
+ _ts_decorate28([
3197
+ (0, import_typeorm27.PrimaryColumn)({
3432
3198
  name: "instance_id",
3433
3199
  type: "varchar",
3434
3200
  nullable: false
3435
3201
  }),
3436
- _ts_metadata28("design:type", String)
3202
+ _ts_metadata27("design:type", String)
3437
3203
  ], MachineStateInfoEntity.prototype, "instanceId", void 0);
3438
- _ts_decorate29([
3439
- (0, import_typeorm28.Column)({
3204
+ _ts_decorate28([
3205
+ (0, import_typeorm27.Column)({
3440
3206
  name: "session_id",
3441
3207
  type: "varchar",
3442
3208
  nullable: true
3443
3209
  }),
3444
- _ts_metadata28("design:type", String)
3210
+ _ts_metadata27("design:type", String)
3445
3211
  ], MachineStateInfoEntity.prototype, "sessionId", void 0);
3446
- _ts_decorate29([
3447
- (0, import_typeorm28.Column)({
3212
+ _ts_decorate28([
3213
+ (0, import_typeorm27.Column)({
3448
3214
  name: "machine_name",
3449
3215
  type: "varchar",
3450
3216
  nullable: false
3451
3217
  }),
3452
- _ts_metadata28("design:type", String)
3218
+ _ts_metadata27("design:type", String)
3453
3219
  ], MachineStateInfoEntity.prototype, "machineName", void 0);
3454
- _ts_decorate29([
3455
- (0, import_typeorm28.Column)({
3220
+ _ts_decorate28([
3221
+ (0, import_typeorm27.Column)({
3456
3222
  name: "latest_state_name",
3457
3223
  type: "varchar",
3458
3224
  nullable: true
3459
3225
  }),
3460
- _ts_metadata28("design:type", String)
3226
+ _ts_metadata27("design:type", String)
3461
3227
  ], MachineStateInfoEntity.prototype, "latestStateName", void 0);
3462
- _ts_decorate29([
3463
- (0, import_typeorm28.Column)({
3228
+ _ts_decorate28([
3229
+ (0, import_typeorm27.Column)({
3464
3230
  name: "latest_event_type",
3465
3231
  type: "varchar",
3466
3232
  nullable: false
3467
3233
  }),
3468
- _ts_metadata28("design:type", String)
3234
+ _ts_metadata27("design:type", String)
3469
3235
  ], MachineStateInfoEntity.prototype, "latestEventType", void 0);
3470
- _ts_decorate29([
3471
- (0, import_typeorm28.Column)({
3236
+ _ts_decorate28([
3237
+ (0, import_typeorm27.Column)({
3472
3238
  name: "state",
3473
3239
  type: "text",
3474
3240
  nullable: false
3475
3241
  }),
3476
- _ts_metadata28("design:type", String)
3242
+ _ts_metadata27("design:type", String)
3477
3243
  ], MachineStateInfoEntity.prototype, "state", void 0);
3478
- _ts_decorate29([
3479
- (0, import_typeorm28.CreateDateColumn)({
3244
+ _ts_decorate28([
3245
+ (0, import_typeorm27.CreateDateColumn)({
3480
3246
  name: "created_at",
3481
3247
  nullable: false,
3482
3248
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3483
3249
  }),
3484
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3250
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3485
3251
  ], MachineStateInfoEntity.prototype, "createdAt", void 0);
3486
- _ts_decorate29([
3487
- (0, import_typeorm28.UpdateDateColumn)({
3252
+ _ts_decorate28([
3253
+ (0, import_typeorm27.UpdateDateColumn)({
3488
3254
  name: "updated_at",
3489
3255
  nullable: false,
3490
3256
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3491
3257
  }),
3492
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3258
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3493
3259
  ], MachineStateInfoEntity.prototype, "updatedAt", void 0);
3494
- _ts_decorate29([
3495
- (0, import_typeorm28.Column)({
3260
+ _ts_decorate28([
3261
+ (0, import_typeorm27.Column)({
3496
3262
  name: "updated_count",
3497
3263
  type: "integer",
3498
3264
  nullable: false
3499
3265
  }),
3500
- _ts_metadata28("design:type", Number)
3266
+ _ts_metadata27("design:type", Number)
3501
3267
  ], MachineStateInfoEntity.prototype, "updatedCount", void 0);
3502
- _ts_decorate29([
3503
- (0, import_typeorm28.Column)({
3268
+ _ts_decorate28([
3269
+ (0, import_typeorm27.Column)({
3504
3270
  name: "expires_at",
3505
3271
  nullable: true,
3506
3272
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3507
3273
  }),
3508
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3274
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3509
3275
  ], MachineStateInfoEntity.prototype, "expiresAt", void 0);
3510
- _ts_decorate29([
3511
- (0, import_typeorm28.Column)({
3276
+ _ts_decorate28([
3277
+ (0, import_typeorm27.Column)({
3512
3278
  name: "completed_at",
3513
3279
  nullable: true,
3514
3280
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3515
3281
  }),
3516
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3282
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3517
3283
  ], MachineStateInfoEntity.prototype, "completedAt", void 0);
3518
- _ts_decorate29([
3519
- (0, import_typeorm28.Column)({
3284
+ _ts_decorate28([
3285
+ (0, import_typeorm27.Column)({
3520
3286
  name: "tenant_id",
3521
3287
  type: "varchar",
3522
3288
  nullable: true
3523
3289
  }),
3524
- _ts_metadata28("design:type", String)
3290
+ _ts_metadata27("design:type", String)
3525
3291
  ], MachineStateInfoEntity.prototype, "tenantId", void 0);
3526
- MachineStateInfoEntity = _ts_decorate29([
3527
- (0, import_typeorm28.Entity)("MachineStateInfoEntity")
3292
+ MachineStateInfoEntity = _ts_decorate28([
3293
+ (0, import_typeorm27.Entity)("MachineStateInfoEntity")
3528
3294
  ], MachineStateInfoEntity);
3529
3295
 
3530
3296
  // src/entities/contact/OrganizationEntity.ts
3531
- var import_class_validator20 = require("class-validator");
3532
- var import_typeorm29 = require("typeorm");
3533
- function _ts_decorate30(decorators, target, key, desc) {
3297
+ var import_class_validator19 = require("class-validator");
3298
+ var import_typeorm28 = require("typeorm");
3299
+ function _ts_decorate29(decorators, target, key, desc) {
3534
3300
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3535
3301
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3536
3302
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3537
3303
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3538
3304
  }
3539
- __name(_ts_decorate30, "_ts_decorate");
3540
- function _ts_metadata29(k, v) {
3305
+ __name(_ts_decorate29, "_ts_decorate");
3306
+ function _ts_metadata28(k, v) {
3541
3307
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3542
3308
  }
3543
- __name(_ts_metadata29, "_ts_metadata");
3309
+ __name(_ts_metadata28, "_ts_metadata");
3544
3310
  var OrganizationEntity = class extends BaseContactEntity {
3545
3311
  static {
3546
3312
  __name(this, "OrganizationEntity");
@@ -3550,7 +3316,7 @@ var OrganizationEntity = class extends BaseContactEntity {
3550
3316
  ownerId;
3551
3317
  tenantId;
3552
3318
  async validate() {
3553
- const validation = await (0, import_class_validator20.validate)(this);
3319
+ const validation = await (0, import_class_validator19.validate)(this);
3554
3320
  if (validation.length > 0) {
3555
3321
  const constraint = getConstraint(validation[0]);
3556
3322
  if (constraint) {
@@ -3560,69 +3326,69 @@ var OrganizationEntity = class extends BaseContactEntity {
3560
3326
  }
3561
3327
  }
3562
3328
  };
3563
- _ts_decorate30([
3564
- (0, import_typeorm29.Column)("varchar", {
3329
+ _ts_decorate29([
3330
+ (0, import_typeorm28.Column)("varchar", {
3565
3331
  name: "legal_name",
3566
3332
  length: 255,
3567
3333
  nullable: false,
3568
3334
  unique: true
3569
3335
  }),
3570
- (0, import_class_validator20.IsNotEmpty)({
3336
+ (0, import_class_validator19.IsNotEmpty)({
3571
3337
  message: "Blank legal names are not allowed"
3572
3338
  }),
3573
- _ts_metadata29("design:type", String)
3339
+ _ts_metadata28("design:type", String)
3574
3340
  ], OrganizationEntity.prototype, "legalName", void 0);
3575
- _ts_decorate30([
3576
- (0, import_typeorm29.Column)("varchar", {
3341
+ _ts_decorate29([
3342
+ (0, import_typeorm28.Column)("varchar", {
3577
3343
  name: "display_name",
3578
3344
  length: 255,
3579
3345
  nullable: false,
3580
3346
  unique: false
3581
3347
  }),
3582
- (0, import_class_validator20.IsNotEmpty)({
3348
+ (0, import_class_validator19.IsNotEmpty)({
3583
3349
  message: "Blank display names are not allowed"
3584
3350
  }),
3585
- _ts_metadata29("design:type", String)
3351
+ _ts_metadata28("design:type", String)
3586
3352
  ], OrganizationEntity.prototype, "displayName", void 0);
3587
- _ts_decorate30([
3588
- (0, import_typeorm29.Column)("text", {
3353
+ _ts_decorate29([
3354
+ (0, import_typeorm28.Column)("text", {
3589
3355
  name: "owner_id",
3590
3356
  nullable: true
3591
3357
  }),
3592
- _ts_metadata29("design:type", String)
3358
+ _ts_metadata28("design:type", String)
3593
3359
  ], OrganizationEntity.prototype, "ownerId", void 0);
3594
- _ts_decorate30([
3595
- (0, import_typeorm29.Column)("text", {
3360
+ _ts_decorate29([
3361
+ (0, import_typeorm28.Column)("text", {
3596
3362
  name: "tenant_id",
3597
3363
  nullable: true
3598
3364
  }),
3599
- _ts_metadata29("design:type", String)
3365
+ _ts_metadata28("design:type", String)
3600
3366
  ], OrganizationEntity.prototype, "tenantId", void 0);
3601
- _ts_decorate30([
3602
- (0, import_typeorm29.BeforeInsert)(),
3603
- (0, import_typeorm29.BeforeUpdate)(),
3604
- _ts_metadata29("design:type", Function),
3605
- _ts_metadata29("design:paramtypes", []),
3606
- _ts_metadata29("design:returntype", Promise)
3367
+ _ts_decorate29([
3368
+ (0, import_typeorm28.BeforeInsert)(),
3369
+ (0, import_typeorm28.BeforeUpdate)(),
3370
+ _ts_metadata28("design:type", Function),
3371
+ _ts_metadata28("design:paramtypes", []),
3372
+ _ts_metadata28("design:returntype", Promise)
3607
3373
  ], OrganizationEntity.prototype, "validate", null);
3608
- OrganizationEntity = _ts_decorate30([
3609
- (0, import_typeorm29.ChildEntity)("Organization")
3374
+ OrganizationEntity = _ts_decorate29([
3375
+ (0, import_typeorm28.ChildEntity)("Organization")
3610
3376
  ], OrganizationEntity);
3611
3377
 
3612
3378
  // src/entities/contact/NaturalPersonEntity.ts
3613
- var import_typeorm30 = require("typeorm");
3614
- var import_class_validator21 = require("class-validator");
3615
- function _ts_decorate31(decorators, target, key, desc) {
3379
+ var import_typeorm29 = require("typeorm");
3380
+ var import_class_validator20 = require("class-validator");
3381
+ function _ts_decorate30(decorators, target, key, desc) {
3616
3382
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3617
3383
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3618
3384
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3619
3385
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3620
3386
  }
3621
- __name(_ts_decorate31, "_ts_decorate");
3622
- function _ts_metadata30(k, v) {
3387
+ __name(_ts_decorate30, "_ts_decorate");
3388
+ function _ts_metadata29(k, v) {
3623
3389
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3624
3390
  }
3625
- __name(_ts_metadata30, "_ts_metadata");
3391
+ __name(_ts_metadata29, "_ts_metadata");
3626
3392
  var NaturalPersonEntity = class extends BaseContactEntity {
3627
3393
  static {
3628
3394
  __name(this, "NaturalPersonEntity");
@@ -3634,7 +3400,7 @@ var NaturalPersonEntity = class extends BaseContactEntity {
3634
3400
  ownerId;
3635
3401
  tenantId;
3636
3402
  async validate() {
3637
- const validation = await (0, import_class_validator21.validate)(this);
3403
+ const validation = await (0, import_class_validator20.validate)(this);
3638
3404
  if (validation.length > 0) {
3639
3405
  const constraint = getConstraint(validation[0]);
3640
3406
  if (constraint) {
@@ -3644,96 +3410,96 @@ var NaturalPersonEntity = class extends BaseContactEntity {
3644
3410
  }
3645
3411
  }
3646
3412
  };
3647
- _ts_decorate31([
3648
- (0, import_typeorm30.Column)("varchar", {
3413
+ _ts_decorate30([
3414
+ (0, import_typeorm29.Column)("varchar", {
3649
3415
  name: "first_name",
3650
3416
  length: 255,
3651
3417
  nullable: false,
3652
3418
  unique: false
3653
3419
  }),
3654
- (0, import_class_validator21.IsNotEmpty)({
3420
+ (0, import_class_validator20.IsNotEmpty)({
3655
3421
  message: "Blank first names are not allowed"
3656
3422
  }),
3657
- _ts_metadata30("design:type", String)
3423
+ _ts_metadata29("design:type", String)
3658
3424
  ], NaturalPersonEntity.prototype, "firstName", void 0);
3659
- _ts_decorate31([
3660
- (0, import_typeorm30.Column)("varchar", {
3425
+ _ts_decorate30([
3426
+ (0, import_typeorm29.Column)("varchar", {
3661
3427
  name: "middle_name",
3662
3428
  length: 255,
3663
3429
  nullable: true,
3664
3430
  unique: false
3665
3431
  }),
3666
- (0, import_class_validator21.Validate)(IsNonEmptyStringConstraint, {
3432
+ (0, import_class_validator20.Validate)(IsNonEmptyStringConstraint, {
3667
3433
  message: "Blank middle names are not allowed"
3668
3434
  }),
3669
- _ts_metadata30("design:type", String)
3435
+ _ts_metadata29("design:type", String)
3670
3436
  ], NaturalPersonEntity.prototype, "middleName", void 0);
3671
- _ts_decorate31([
3672
- (0, import_typeorm30.Column)("varchar", {
3437
+ _ts_decorate30([
3438
+ (0, import_typeorm29.Column)("varchar", {
3673
3439
  name: "last_name",
3674
3440
  length: 255,
3675
3441
  nullable: false,
3676
3442
  unique: false
3677
3443
  }),
3678
- (0, import_class_validator21.IsNotEmpty)({
3444
+ (0, import_class_validator20.IsNotEmpty)({
3679
3445
  message: "Blank last names are not allowed"
3680
3446
  }),
3681
- _ts_metadata30("design:type", String)
3447
+ _ts_metadata29("design:type", String)
3682
3448
  ], NaturalPersonEntity.prototype, "lastName", void 0);
3683
- _ts_decorate31([
3684
- (0, import_typeorm30.Column)("varchar", {
3449
+ _ts_decorate30([
3450
+ (0, import_typeorm29.Column)("varchar", {
3685
3451
  name: "display_name",
3686
3452
  length: 255,
3687
3453
  nullable: false,
3688
3454
  unique: false
3689
3455
  }),
3690
- (0, import_class_validator21.IsNotEmpty)({
3456
+ (0, import_class_validator20.IsNotEmpty)({
3691
3457
  message: "Blank display names are not allowed"
3692
3458
  }),
3693
- _ts_metadata30("design:type", String)
3459
+ _ts_metadata29("design:type", String)
3694
3460
  ], NaturalPersonEntity.prototype, "displayName", void 0);
3695
- _ts_decorate31([
3696
- (0, import_typeorm30.Column)("text", {
3461
+ _ts_decorate30([
3462
+ (0, import_typeorm29.Column)("text", {
3697
3463
  name: "owner_id",
3698
3464
  nullable: true
3699
3465
  }),
3700
- _ts_metadata30("design:type", String)
3466
+ _ts_metadata29("design:type", String)
3701
3467
  ], NaturalPersonEntity.prototype, "ownerId", void 0);
3702
- _ts_decorate31([
3703
- (0, import_typeorm30.Column)("text", {
3468
+ _ts_decorate30([
3469
+ (0, import_typeorm29.Column)("text", {
3704
3470
  name: "tenant_id",
3705
3471
  nullable: true
3706
3472
  }),
3707
- _ts_metadata30("design:type", String)
3473
+ _ts_metadata29("design:type", String)
3708
3474
  ], NaturalPersonEntity.prototype, "tenantId", void 0);
3709
- _ts_decorate31([
3710
- (0, import_typeorm30.BeforeInsert)(),
3711
- (0, import_typeorm30.BeforeUpdate)(),
3712
- _ts_metadata30("design:type", Function),
3713
- _ts_metadata30("design:paramtypes", []),
3714
- _ts_metadata30("design:returntype", Promise)
3475
+ _ts_decorate30([
3476
+ (0, import_typeorm29.BeforeInsert)(),
3477
+ (0, import_typeorm29.BeforeUpdate)(),
3478
+ _ts_metadata29("design:type", Function),
3479
+ _ts_metadata29("design:paramtypes", []),
3480
+ _ts_metadata29("design:returntype", Promise)
3715
3481
  ], NaturalPersonEntity.prototype, "validate", null);
3716
- NaturalPersonEntity = _ts_decorate31([
3717
- (0, import_typeorm30.ChildEntity)("NaturalPerson")
3482
+ NaturalPersonEntity = _ts_decorate30([
3483
+ (0, import_typeorm29.ChildEntity)("NaturalPerson")
3718
3484
  ], NaturalPersonEntity);
3719
3485
 
3720
3486
  // src/entities/eventLogger/AuditEventEntity.ts
3721
- var import_ssi_types3 = require("@sphereon/ssi-types");
3487
+ var import_ssi_types2 = require("@sphereon/ssi-types");
3722
3488
  var import_ssi_sdk15 = require("@sphereon/ssi-sdk.core");
3723
3489
  var import_ssi_sdk16 = require("@sphereon/ssi-sdk.agent-config");
3724
- var import_typeorm31 = require("typeorm");
3725
- function _ts_decorate32(decorators, target, key, desc) {
3490
+ var import_typeorm30 = require("typeorm");
3491
+ function _ts_decorate31(decorators, target, key, desc) {
3726
3492
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3727
3493
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3728
3494
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3729
3495
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3730
3496
  }
3731
- __name(_ts_decorate32, "_ts_decorate");
3732
- function _ts_metadata31(k, v) {
3497
+ __name(_ts_decorate31, "_ts_decorate");
3498
+ function _ts_metadata30(k, v) {
3733
3499
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3734
3500
  }
3735
- __name(_ts_metadata31, "_ts_metadata");
3736
- var AuditEventEntity = class extends import_typeorm31.BaseEntity {
3501
+ __name(_ts_metadata30, "_ts_metadata");
3502
+ var AuditEventEntity = class extends import_typeorm30.BaseEntity {
3737
3503
  static {
3738
3504
  __name(this, "AuditEventEntity");
3739
3505
  }
@@ -3764,240 +3530,240 @@ var AuditEventEntity = class extends import_typeorm31.BaseEntity {
3764
3530
  createdAt;
3765
3531
  lastUpdatedAt;
3766
3532
  };
3767
- _ts_decorate32([
3768
- (0, import_typeorm31.PrimaryGeneratedColumn)("uuid"),
3769
- _ts_metadata31("design:type", String)
3533
+ _ts_decorate31([
3534
+ (0, import_typeorm30.PrimaryGeneratedColumn)("uuid"),
3535
+ _ts_metadata30("design:type", String)
3770
3536
  ], AuditEventEntity.prototype, "id", void 0);
3771
- _ts_decorate32([
3772
- (0, import_typeorm31.Column)({
3537
+ _ts_decorate31([
3538
+ (0, import_typeorm30.Column)({
3773
3539
  name: "timestamp",
3774
3540
  nullable: false,
3775
3541
  unique: false,
3776
3542
  type: (0, import_ssi_sdk16.typeOrmDateTime)()
3777
3543
  }),
3778
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3544
+ _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3779
3545
  ], AuditEventEntity.prototype, "timestamp", void 0);
3780
- _ts_decorate32([
3781
- (0, import_typeorm31.Column)("simple-enum", {
3546
+ _ts_decorate31([
3547
+ (0, import_typeorm30.Column)("simple-enum", {
3782
3548
  name: "eventType",
3783
- enum: import_ssi_types3.LoggingEventType,
3549
+ enum: import_ssi_types2.LoggingEventType,
3784
3550
  nullable: false,
3785
3551
  unique: false
3786
3552
  }),
3787
- _ts_metadata31("design:type", typeof import_ssi_types3.LoggingEventType === "undefined" ? Object : import_ssi_types3.LoggingEventType)
3553
+ _ts_metadata30("design:type", typeof import_ssi_types2.LoggingEventType === "undefined" ? Object : import_ssi_types2.LoggingEventType)
3788
3554
  ], AuditEventEntity.prototype, "type", void 0);
3789
- _ts_decorate32([
3790
- (0, import_typeorm31.Column)("simple-enum", {
3555
+ _ts_decorate31([
3556
+ (0, import_typeorm30.Column)("simple-enum", {
3791
3557
  name: "level",
3792
- enum: import_ssi_types3.LogLevel,
3558
+ enum: import_ssi_types2.LogLevel,
3793
3559
  nullable: false,
3794
3560
  unique: false
3795
3561
  }),
3796
- _ts_metadata31("design:type", typeof import_ssi_types3.LogLevel === "undefined" ? Object : import_ssi_types3.LogLevel)
3562
+ _ts_metadata30("design:type", typeof import_ssi_types2.LogLevel === "undefined" ? Object : import_ssi_types2.LogLevel)
3797
3563
  ], AuditEventEntity.prototype, "level", void 0);
3798
- _ts_decorate32([
3799
- (0, import_typeorm31.Column)("text", {
3564
+ _ts_decorate31([
3565
+ (0, import_typeorm30.Column)("text", {
3800
3566
  name: "correlationId",
3801
3567
  nullable: false,
3802
3568
  unique: false
3803
3569
  }),
3804
- _ts_metadata31("design:type", String)
3570
+ _ts_metadata30("design:type", String)
3805
3571
  ], AuditEventEntity.prototype, "correlationId", void 0);
3806
- _ts_decorate32([
3807
- (0, import_typeorm31.Column)("simple-enum", {
3572
+ _ts_decorate31([
3573
+ (0, import_typeorm30.Column)("simple-enum", {
3808
3574
  name: "system",
3809
- enum: import_ssi_types3.System,
3575
+ enum: import_ssi_types2.System,
3810
3576
  nullable: false,
3811
3577
  unique: false
3812
3578
  }),
3813
- _ts_metadata31("design:type", typeof import_ssi_types3.System === "undefined" ? Object : import_ssi_types3.System)
3579
+ _ts_metadata30("design:type", typeof import_ssi_types2.System === "undefined" ? Object : import_ssi_types2.System)
3814
3580
  ], AuditEventEntity.prototype, "system", void 0);
3815
- _ts_decorate32([
3816
- (0, import_typeorm31.Column)("simple-enum", {
3581
+ _ts_decorate31([
3582
+ (0, import_typeorm30.Column)("simple-enum", {
3817
3583
  name: "subSystemType",
3818
- enum: import_ssi_types3.SubSystem,
3584
+ enum: import_ssi_types2.SubSystem,
3819
3585
  nullable: false,
3820
3586
  unique: false
3821
3587
  }),
3822
- _ts_metadata31("design:type", typeof import_ssi_types3.SubSystem === "undefined" ? Object : import_ssi_types3.SubSystem)
3588
+ _ts_metadata30("design:type", typeof import_ssi_types2.SubSystem === "undefined" ? Object : import_ssi_types2.SubSystem)
3823
3589
  ], AuditEventEntity.prototype, "subSystemType", void 0);
3824
- _ts_decorate32([
3825
- (0, import_typeorm31.Column)("simple-enum", {
3590
+ _ts_decorate31([
3591
+ (0, import_typeorm30.Column)("simple-enum", {
3826
3592
  name: "actionType",
3827
- enum: import_ssi_types3.ActionType,
3593
+ enum: import_ssi_types2.ActionType,
3828
3594
  nullable: false,
3829
3595
  unique: false
3830
3596
  }),
3831
- _ts_metadata31("design:type", typeof import_ssi_types3.ActionType === "undefined" ? Object : import_ssi_types3.ActionType)
3597
+ _ts_metadata30("design:type", typeof import_ssi_types2.ActionType === "undefined" ? Object : import_ssi_types2.ActionType)
3832
3598
  ], AuditEventEntity.prototype, "actionType", void 0);
3833
- _ts_decorate32([
3834
- (0, import_typeorm31.Column)({
3599
+ _ts_decorate31([
3600
+ (0, import_typeorm30.Column)({
3835
3601
  name: "actionSubType",
3836
3602
  type: "varchar",
3837
3603
  nullable: false,
3838
3604
  unique: false
3839
3605
  }),
3840
- _ts_metadata31("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
3606
+ _ts_metadata30("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
3841
3607
  ], AuditEventEntity.prototype, "actionSubType", void 0);
3842
- _ts_decorate32([
3843
- (0, import_typeorm31.Column)("simple-enum", {
3608
+ _ts_decorate31([
3609
+ (0, import_typeorm30.Column)("simple-enum", {
3844
3610
  name: "initiatorType",
3845
- enum: import_ssi_types3.InitiatorType,
3611
+ enum: import_ssi_types2.InitiatorType,
3846
3612
  nullable: false,
3847
3613
  unique: false
3848
3614
  }),
3849
- _ts_metadata31("design:type", typeof import_ssi_types3.InitiatorType === "undefined" ? Object : import_ssi_types3.InitiatorType)
3615
+ _ts_metadata30("design:type", typeof import_ssi_types2.InitiatorType === "undefined" ? Object : import_ssi_types2.InitiatorType)
3850
3616
  ], AuditEventEntity.prototype, "initiatorType", void 0);
3851
- _ts_decorate32([
3852
- (0, import_typeorm31.Column)("simple-enum", {
3617
+ _ts_decorate31([
3618
+ (0, import_typeorm30.Column)("simple-enum", {
3853
3619
  name: "systemCorrelationIdType",
3854
- enum: import_ssi_types3.SystemCorrelationIdType,
3620
+ enum: import_ssi_types2.SystemCorrelationIdType,
3855
3621
  nullable: true,
3856
3622
  unique: false
3857
3623
  }),
3858
- _ts_metadata31("design:type", typeof import_ssi_types3.SystemCorrelationIdType === "undefined" ? Object : import_ssi_types3.SystemCorrelationIdType)
3624
+ _ts_metadata30("design:type", typeof import_ssi_types2.SystemCorrelationIdType === "undefined" ? Object : import_ssi_types2.SystemCorrelationIdType)
3859
3625
  ], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
3860
- _ts_decorate32([
3861
- (0, import_typeorm31.Column)("text", {
3626
+ _ts_decorate31([
3627
+ (0, import_typeorm30.Column)("text", {
3862
3628
  name: "systemCorrelationId",
3863
3629
  nullable: true,
3864
3630
  unique: false
3865
3631
  }),
3866
- _ts_metadata31("design:type", String)
3632
+ _ts_metadata30("design:type", String)
3867
3633
  ], AuditEventEntity.prototype, "systemCorrelationId", void 0);
3868
- _ts_decorate32([
3869
- (0, import_typeorm31.Column)("text", {
3634
+ _ts_decorate31([
3635
+ (0, import_typeorm30.Column)("text", {
3870
3636
  name: "systemAlias",
3871
3637
  nullable: true,
3872
3638
  unique: false
3873
3639
  }),
3874
- _ts_metadata31("design:type", String)
3640
+ _ts_metadata30("design:type", String)
3875
3641
  ], AuditEventEntity.prototype, "systemAlias", void 0);
3876
- _ts_decorate32([
3877
- (0, import_typeorm31.Column)("simple-enum", {
3642
+ _ts_decorate31([
3643
+ (0, import_typeorm30.Column)("simple-enum", {
3878
3644
  name: "partyCorrelationType",
3879
3645
  enum: import_ssi_sdk15.PartyCorrelationType,
3880
3646
  nullable: true,
3881
3647
  unique: false
3882
3648
  }),
3883
- _ts_metadata31("design:type", typeof import_ssi_sdk15.PartyCorrelationType === "undefined" ? Object : import_ssi_sdk15.PartyCorrelationType)
3649
+ _ts_metadata30("design:type", typeof import_ssi_sdk15.PartyCorrelationType === "undefined" ? Object : import_ssi_sdk15.PartyCorrelationType)
3884
3650
  ], AuditEventEntity.prototype, "partyCorrelationType", void 0);
3885
- _ts_decorate32([
3886
- (0, import_typeorm31.Column)("text", {
3651
+ _ts_decorate31([
3652
+ (0, import_typeorm30.Column)("text", {
3887
3653
  name: "partyCorrelationId",
3888
3654
  nullable: true,
3889
3655
  unique: false
3890
3656
  }),
3891
- _ts_metadata31("design:type", String)
3657
+ _ts_metadata30("design:type", String)
3892
3658
  ], AuditEventEntity.prototype, "partyCorrelationId", void 0);
3893
- _ts_decorate32([
3894
- (0, import_typeorm31.Column)("text", {
3659
+ _ts_decorate31([
3660
+ (0, import_typeorm30.Column)("text", {
3895
3661
  name: "partyAlias",
3896
3662
  nullable: true,
3897
3663
  unique: false
3898
3664
  }),
3899
- _ts_metadata31("design:type", String)
3665
+ _ts_metadata30("design:type", String)
3900
3666
  ], AuditEventEntity.prototype, "partyAlias", void 0);
3901
- _ts_decorate32([
3902
- (0, import_typeorm31.Column)("text", {
3667
+ _ts_decorate31([
3668
+ (0, import_typeorm30.Column)("text", {
3903
3669
  name: "description",
3904
3670
  nullable: false,
3905
3671
  unique: false
3906
3672
  }),
3907
- _ts_metadata31("design:type", String)
3673
+ _ts_metadata30("design:type", String)
3908
3674
  ], AuditEventEntity.prototype, "description", void 0);
3909
- _ts_decorate32([
3910
- (0, import_typeorm31.Column)("simple-enum", {
3675
+ _ts_decorate31([
3676
+ (0, import_typeorm30.Column)("simple-enum", {
3911
3677
  name: "credentialType",
3912
3678
  enum: import_ssi_sdk15.CredentialType,
3913
3679
  nullable: true,
3914
3680
  unique: false
3915
3681
  }),
3916
- _ts_metadata31("design:type", typeof import_ssi_sdk15.CredentialType === "undefined" ? Object : import_ssi_sdk15.CredentialType)
3682
+ _ts_metadata30("design:type", typeof import_ssi_sdk15.CredentialType === "undefined" ? Object : import_ssi_sdk15.CredentialType)
3917
3683
  ], AuditEventEntity.prototype, "credentialType", void 0);
3918
- _ts_decorate32([
3919
- (0, import_typeorm31.Column)("text", {
3684
+ _ts_decorate31([
3685
+ (0, import_typeorm30.Column)("text", {
3920
3686
  name: "credentialHash",
3921
3687
  nullable: true,
3922
3688
  unique: false
3923
3689
  }),
3924
- _ts_metadata31("design:type", String)
3690
+ _ts_metadata30("design:type", String)
3925
3691
  ], AuditEventEntity.prototype, "credentialHash", void 0);
3926
- _ts_decorate32([
3927
- (0, import_typeorm31.Column)("text", {
3692
+ _ts_decorate31([
3693
+ (0, import_typeorm30.Column)("text", {
3928
3694
  name: "parentCredentialHash",
3929
3695
  nullable: true,
3930
3696
  unique: false
3931
3697
  }),
3932
- _ts_metadata31("design:type", String)
3698
+ _ts_metadata30("design:type", String)
3933
3699
  ], AuditEventEntity.prototype, "parentCredentialHash", void 0);
3934
- _ts_decorate32([
3935
- (0, import_typeorm31.Column)("text", {
3700
+ _ts_decorate31([
3701
+ (0, import_typeorm30.Column)("text", {
3936
3702
  name: "originalCredential",
3937
3703
  nullable: true,
3938
3704
  unique: false
3939
3705
  }),
3940
- _ts_metadata31("design:type", String)
3706
+ _ts_metadata30("design:type", String)
3941
3707
  ], AuditEventEntity.prototype, "originalCredential", void 0);
3942
- _ts_decorate32([
3943
- (0, import_typeorm31.Column)("text", {
3708
+ _ts_decorate31([
3709
+ (0, import_typeorm30.Column)("text", {
3944
3710
  name: "sharePurpose",
3945
3711
  nullable: true,
3946
3712
  unique: false
3947
3713
  }),
3948
- _ts_metadata31("design:type", String)
3714
+ _ts_metadata30("design:type", String)
3949
3715
  ], AuditEventEntity.prototype, "sharePurpose", void 0);
3950
- _ts_decorate32([
3951
- (0, import_typeorm31.Column)("text", {
3716
+ _ts_decorate31([
3717
+ (0, import_typeorm30.Column)("text", {
3952
3718
  name: "data",
3953
3719
  nullable: true,
3954
3720
  unique: false
3955
3721
  }),
3956
- _ts_metadata31("design:type", String)
3722
+ _ts_metadata30("design:type", String)
3957
3723
  ], AuditEventEntity.prototype, "data", void 0);
3958
- _ts_decorate32([
3959
- (0, import_typeorm31.Column)("text", {
3724
+ _ts_decorate31([
3725
+ (0, import_typeorm30.Column)("text", {
3960
3726
  name: "diagnosticData",
3961
3727
  nullable: true,
3962
3728
  unique: false
3963
3729
  }),
3964
- _ts_metadata31("design:type", String)
3730
+ _ts_metadata30("design:type", String)
3965
3731
  ], AuditEventEntity.prototype, "diagnosticData", void 0);
3966
- _ts_decorate32([
3967
- (0, import_typeorm31.CreateDateColumn)({
3732
+ _ts_decorate31([
3733
+ (0, import_typeorm30.CreateDateColumn)({
3968
3734
  name: "created_at",
3969
3735
  nullable: false,
3970
3736
  type: (0, import_ssi_sdk16.typeOrmDateTime)()
3971
3737
  }),
3972
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3738
+ _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3973
3739
  ], AuditEventEntity.prototype, "createdAt", void 0);
3974
- _ts_decorate32([
3975
- (0, import_typeorm31.UpdateDateColumn)({
3740
+ _ts_decorate31([
3741
+ (0, import_typeorm30.UpdateDateColumn)({
3976
3742
  name: "last_updated_at",
3977
3743
  nullable: false,
3978
3744
  type: (0, import_ssi_sdk16.typeOrmDateTime)()
3979
3745
  }),
3980
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3746
+ _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3981
3747
  ], AuditEventEntity.prototype, "lastUpdatedAt", void 0);
3982
- AuditEventEntity = _ts_decorate32([
3983
- (0, import_typeorm31.Entity)("AuditEvents")
3748
+ AuditEventEntity = _ts_decorate31([
3749
+ (0, import_typeorm30.Entity)("AuditEvents")
3984
3750
  ], AuditEventEntity);
3985
3751
 
3986
3752
  // src/entities/digitalCredential/DigitalCredentialEntity.ts
3987
3753
  var import_ssi_sdk17 = require("@sphereon/ssi-sdk.agent-config");
3988
- var import_typeorm32 = require("typeorm");
3989
- function _ts_decorate33(decorators, target, key, desc) {
3754
+ var import_typeorm31 = require("typeorm");
3755
+ function _ts_decorate32(decorators, target, key, desc) {
3990
3756
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3991
3757
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3992
3758
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3993
3759
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3994
3760
  }
3995
- __name(_ts_decorate33, "_ts_decorate");
3996
- function _ts_metadata32(k, v) {
3761
+ __name(_ts_decorate32, "_ts_decorate");
3762
+ function _ts_metadata31(k, v) {
3997
3763
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3998
3764
  }
3999
- __name(_ts_metadata32, "_ts_metadata");
4000
- var DigitalCredentialEntity = class extends import_typeorm32.BaseEntity {
3765
+ __name(_ts_metadata31, "_ts_metadata");
3766
+ var DigitalCredentialEntity = class extends import_typeorm31.BaseEntity {
4001
3767
  static {
4002
3768
  __name(this, "DigitalCredentialEntity");
4003
3769
  }
@@ -4030,236 +3796,236 @@ var DigitalCredentialEntity = class extends import_typeorm32.BaseEntity {
4030
3796
  verifiedAt;
4031
3797
  revokedAt;
4032
3798
  };
4033
- _ts_decorate33([
4034
- (0, import_typeorm32.PrimaryGeneratedColumn)("uuid"),
4035
- _ts_metadata32("design:type", String)
3799
+ _ts_decorate32([
3800
+ (0, import_typeorm31.PrimaryGeneratedColumn)("uuid"),
3801
+ _ts_metadata31("design:type", String)
4036
3802
  ], DigitalCredentialEntity.prototype, "id", void 0);
4037
- _ts_decorate33([
4038
- (0, import_typeorm32.Column)("text", {
3803
+ _ts_decorate32([
3804
+ (0, import_typeorm31.Column)("text", {
4039
3805
  name: "parent_id",
4040
3806
  nullable: true
4041
3807
  }),
4042
- _ts_metadata32("design:type", String)
3808
+ _ts_metadata31("design:type", String)
4043
3809
  ], DigitalCredentialEntity.prototype, "parentId", void 0);
4044
- _ts_decorate33([
4045
- (0, import_typeorm32.Column)("simple-enum", {
3810
+ _ts_decorate32([
3811
+ (0, import_typeorm31.Column)("simple-enum", {
4046
3812
  name: "document_type",
4047
3813
  enum: DocumentType,
4048
3814
  nullable: false
4049
3815
  }),
4050
- _ts_metadata32("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
3816
+ _ts_metadata31("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
4051
3817
  ], DigitalCredentialEntity.prototype, "documentType", void 0);
4052
- _ts_decorate33([
4053
- (0, import_typeorm32.Column)("simple-enum", {
3818
+ _ts_decorate32([
3819
+ (0, import_typeorm31.Column)("simple-enum", {
4054
3820
  name: "regulation_type",
4055
3821
  enum: RegulationType,
4056
3822
  nullable: false
4057
3823
  }),
4058
- _ts_metadata32("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
3824
+ _ts_metadata31("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
4059
3825
  ], DigitalCredentialEntity.prototype, "regulationType", void 0);
4060
- _ts_decorate33([
4061
- (0, import_typeorm32.Column)("simple-enum", {
3826
+ _ts_decorate32([
3827
+ (0, import_typeorm31.Column)("simple-enum", {
4062
3828
  name: "document_format",
4063
3829
  enum: CredentialDocumentFormat,
4064
3830
  nullable: false
4065
3831
  }),
4066
- _ts_metadata32("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
3832
+ _ts_metadata31("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
4067
3833
  ], DigitalCredentialEntity.prototype, "documentFormat", void 0);
4068
- _ts_decorate33([
4069
- (0, import_typeorm32.Column)("simple-enum", {
3834
+ _ts_decorate32([
3835
+ (0, import_typeorm31.Column)("simple-enum", {
4070
3836
  name: "credential_role",
4071
3837
  enum: CredentialRole,
4072
3838
  nullable: false
4073
3839
  }),
4074
- _ts_metadata32("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
3840
+ _ts_metadata31("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
4075
3841
  ], DigitalCredentialEntity.prototype, "credentialRole", void 0);
4076
- _ts_decorate33([
4077
- (0, import_typeorm32.Column)("text", {
3842
+ _ts_decorate32([
3843
+ (0, import_typeorm31.Column)("text", {
4078
3844
  name: "raw_document",
4079
3845
  nullable: false
4080
3846
  }),
4081
- _ts_metadata32("design:type", String)
3847
+ _ts_metadata31("design:type", String)
4082
3848
  ], DigitalCredentialEntity.prototype, "rawDocument", void 0);
4083
- _ts_decorate33([
4084
- (0, import_typeorm32.Column)("text", {
3849
+ _ts_decorate32([
3850
+ (0, import_typeorm31.Column)("text", {
4085
3851
  name: "uniform_document",
4086
3852
  nullable: false
4087
3853
  }),
4088
- _ts_metadata32("design:type", String)
3854
+ _ts_metadata31("design:type", String)
4089
3855
  ], DigitalCredentialEntity.prototype, "uniformDocument", void 0);
4090
- _ts_decorate33([
4091
- (0, import_typeorm32.Column)("text", {
3856
+ _ts_decorate32([
3857
+ (0, import_typeorm31.Column)("text", {
4092
3858
  name: "credential_id",
4093
3859
  nullable: true,
4094
3860
  unique: false
4095
3861
  }),
4096
- _ts_metadata32("design:type", String)
3862
+ _ts_metadata31("design:type", String)
4097
3863
  ], DigitalCredentialEntity.prototype, "credentialId", void 0);
4098
- _ts_decorate33([
4099
- (0, import_typeorm32.Column)("text", {
3864
+ _ts_decorate32([
3865
+ (0, import_typeorm31.Column)("text", {
4100
3866
  name: "hash",
4101
3867
  nullable: false,
4102
3868
  unique: true
4103
3869
  }),
4104
- _ts_metadata32("design:type", String)
3870
+ _ts_metadata31("design:type", String)
4105
3871
  ], DigitalCredentialEntity.prototype, "hash", void 0);
4106
- _ts_decorate33([
4107
- (0, import_typeorm32.Column)("text", {
3872
+ _ts_decorate32([
3873
+ (0, import_typeorm31.Column)("text", {
4108
3874
  name: "kms_key_ref",
4109
3875
  nullable: true
4110
3876
  }),
4111
- _ts_metadata32("design:type", String)
3877
+ _ts_metadata31("design:type", String)
4112
3878
  ], DigitalCredentialEntity.prototype, "kmsKeyRef", void 0);
4113
- _ts_decorate33([
4114
- (0, import_typeorm32.Column)("text", {
3879
+ _ts_decorate32([
3880
+ (0, import_typeorm31.Column)("text", {
4115
3881
  name: "identifier_method",
4116
3882
  nullable: true
4117
3883
  }),
4118
- _ts_metadata32("design:type", String)
3884
+ _ts_metadata31("design:type", String)
4119
3885
  ], DigitalCredentialEntity.prototype, "identifierMethod", void 0);
4120
- _ts_decorate33([
4121
- (0, import_typeorm32.Column)("simple-enum", {
3886
+ _ts_decorate32([
3887
+ (0, import_typeorm31.Column)("simple-enum", {
4122
3888
  name: "issuer_correlation_type",
4123
3889
  enum: CredentialCorrelationType,
4124
3890
  nullable: false
4125
3891
  }),
4126
- _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3892
+ _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
4127
3893
  ], DigitalCredentialEntity.prototype, "issuerCorrelationType", void 0);
4128
- _ts_decorate33([
4129
- (0, import_typeorm32.Column)("simple-enum", {
3894
+ _ts_decorate32([
3895
+ (0, import_typeorm31.Column)("simple-enum", {
4130
3896
  name: "subject_correlation_type",
4131
3897
  enum: CredentialCorrelationType,
4132
3898
  nullable: true
4133
3899
  }),
4134
- _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3900
+ _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
4135
3901
  ], DigitalCredentialEntity.prototype, "subjectCorrelationType", void 0);
4136
- _ts_decorate33([
4137
- (0, import_typeorm32.Column)("simple-enum", {
3902
+ _ts_decorate32([
3903
+ (0, import_typeorm31.Column)("simple-enum", {
4138
3904
  name: "rp_correlation_type",
4139
3905
  enum: CredentialCorrelationType,
4140
3906
  nullable: true
4141
3907
  }),
4142
- _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3908
+ _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
4143
3909
  ], DigitalCredentialEntity.prototype, "rpCorrelationType", void 0);
4144
- _ts_decorate33([
4145
- (0, import_typeorm32.Column)("boolean", {
3910
+ _ts_decorate32([
3911
+ (0, import_typeorm31.Column)("boolean", {
4146
3912
  name: "issuer_signed",
4147
3913
  nullable: true
4148
3914
  }),
4149
- _ts_metadata32("design:type", Boolean)
3915
+ _ts_metadata31("design:type", Boolean)
4150
3916
  ], DigitalCredentialEntity.prototype, "isIssuerSigned", void 0);
4151
- _ts_decorate33([
4152
- (0, import_typeorm32.Column)("text", {
3917
+ _ts_decorate32([
3918
+ (0, import_typeorm31.Column)("text", {
4153
3919
  name: "issuer_correlation_id",
4154
3920
  nullable: false
4155
3921
  }),
4156
- _ts_metadata32("design:type", String)
3922
+ _ts_metadata31("design:type", String)
4157
3923
  ], DigitalCredentialEntity.prototype, "issuerCorrelationId", void 0);
4158
- _ts_decorate33([
4159
- (0, import_typeorm32.Column)("text", {
3924
+ _ts_decorate32([
3925
+ (0, import_typeorm31.Column)("text", {
4160
3926
  name: "subject_correlation_id",
4161
3927
  nullable: true
4162
3928
  }),
4163
- _ts_metadata32("design:type", String)
3929
+ _ts_metadata31("design:type", String)
4164
3930
  ], DigitalCredentialEntity.prototype, "subjectCorrelationId", void 0);
4165
- _ts_decorate33([
4166
- (0, import_typeorm32.Column)("text", {
3931
+ _ts_decorate32([
3932
+ (0, import_typeorm31.Column)("text", {
4167
3933
  name: "rp_correlation_id",
4168
3934
  nullable: true
4169
3935
  }),
4170
- _ts_metadata32("design:type", String)
3936
+ _ts_metadata31("design:type", String)
4171
3937
  ], DigitalCredentialEntity.prototype, "rpCorrelationId", void 0);
4172
- _ts_decorate33([
4173
- (0, import_typeorm32.Column)("simple-enum", {
3938
+ _ts_decorate32([
3939
+ (0, import_typeorm31.Column)("simple-enum", {
4174
3940
  name: "verified_state",
4175
3941
  enum: CredentialStateType,
4176
3942
  nullable: true
4177
3943
  }),
4178
- _ts_metadata32("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
3944
+ _ts_metadata31("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
4179
3945
  ], DigitalCredentialEntity.prototype, "verifiedState", void 0);
4180
- _ts_decorate33([
4181
- (0, import_typeorm32.Column)("text", {
3946
+ _ts_decorate32([
3947
+ (0, import_typeorm31.Column)("text", {
4182
3948
  name: "tenant_id",
4183
3949
  nullable: true
4184
3950
  }),
4185
- _ts_metadata32("design:type", String)
3951
+ _ts_metadata31("design:type", String)
4186
3952
  ], DigitalCredentialEntity.prototype, "tenantId", void 0);
4187
- _ts_decorate33([
4188
- (0, import_typeorm32.CreateDateColumn)({
3953
+ _ts_decorate32([
3954
+ (0, import_typeorm31.CreateDateColumn)({
4189
3955
  name: "created_at",
4190
3956
  nullable: false,
4191
3957
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
4192
3958
  }),
4193
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3959
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4194
3960
  ], DigitalCredentialEntity.prototype, "createdAt", void 0);
4195
- _ts_decorate33([
4196
- (0, import_typeorm32.Column)({
3961
+ _ts_decorate32([
3962
+ (0, import_typeorm31.Column)({
4197
3963
  name: "presented_at",
4198
3964
  nullable: true,
4199
3965
  type: (0, import_ssi_sdk17.typeormDate)()
4200
3966
  }),
4201
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3967
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4202
3968
  ], DigitalCredentialEntity.prototype, "presentedAt", void 0);
4203
- _ts_decorate33([
4204
- (0, import_typeorm32.UpdateDateColumn)({
3969
+ _ts_decorate32([
3970
+ (0, import_typeorm31.UpdateDateColumn)({
4205
3971
  name: "last_updated_at",
4206
3972
  nullable: false,
4207
3973
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
4208
3974
  }),
4209
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3975
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4210
3976
  ], DigitalCredentialEntity.prototype, "lastUpdatedAt", void 0);
4211
- _ts_decorate33([
4212
- (0, import_typeorm32.Column)({
3977
+ _ts_decorate32([
3978
+ (0, import_typeorm31.Column)({
4213
3979
  name: "valid_until",
4214
3980
  nullable: true,
4215
3981
  type: (0, import_ssi_sdk17.typeormDate)()
4216
3982
  }),
4217
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3983
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4218
3984
  ], DigitalCredentialEntity.prototype, "validUntil", void 0);
4219
- _ts_decorate33([
4220
- (0, import_typeorm32.Column)({
3985
+ _ts_decorate32([
3986
+ (0, import_typeorm31.Column)({
4221
3987
  name: "valid_from",
4222
3988
  nullable: true,
4223
3989
  type: (0, import_ssi_sdk17.typeormDate)()
4224
3990
  }),
4225
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3991
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4226
3992
  ], DigitalCredentialEntity.prototype, "validFrom", void 0);
4227
- _ts_decorate33([
4228
- (0, import_typeorm32.Column)({
3993
+ _ts_decorate32([
3994
+ (0, import_typeorm31.Column)({
4229
3995
  name: "verified_at",
4230
3996
  nullable: true,
4231
3997
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
4232
3998
  }),
4233
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3999
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4234
4000
  ], DigitalCredentialEntity.prototype, "verifiedAt", void 0);
4235
- _ts_decorate33([
4236
- (0, import_typeorm32.Column)({
4001
+ _ts_decorate32([
4002
+ (0, import_typeorm31.Column)({
4237
4003
  name: "revoked_at",
4238
4004
  nullable: true,
4239
4005
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
4240
4006
  }),
4241
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4007
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4242
4008
  ], DigitalCredentialEntity.prototype, "revokedAt", void 0);
4243
- DigitalCredentialEntity = _ts_decorate33([
4244
- (0, import_typeorm32.Entity)("DigitalCredential")
4009
+ DigitalCredentialEntity = _ts_decorate32([
4010
+ (0, import_typeorm31.Entity)("DigitalCredential")
4245
4011
  ], DigitalCredentialEntity);
4246
4012
 
4247
4013
  // src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts
4248
- var import_typeorm33 = require("typeorm");
4249
- var import_class_validator22 = require("class-validator");
4014
+ var import_typeorm32 = require("typeorm");
4015
+ var import_class_validator21 = require("class-validator");
4250
4016
  var import_ssi_sdk18 = require("@sphereon/ssi-sdk.agent-config");
4251
- function _ts_decorate34(decorators, target, key, desc) {
4017
+ function _ts_decorate33(decorators, target, key, desc) {
4252
4018
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4253
4019
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4254
4020
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4255
4021
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4256
4022
  }
4257
- __name(_ts_decorate34, "_ts_decorate");
4258
- function _ts_metadata33(k, v) {
4023
+ __name(_ts_decorate33, "_ts_decorate");
4024
+ function _ts_metadata32(k, v) {
4259
4025
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4260
4026
  }
4261
- __name(_ts_metadata33, "_ts_metadata");
4262
- var PresentationDefinitionItemEntity = class extends import_typeorm33.BaseEntity {
4027
+ __name(_ts_metadata32, "_ts_metadata");
4028
+ var PresentationDefinitionItemEntity = class extends import_typeorm32.BaseEntity {
4263
4029
  static {
4264
4030
  __name(this, "PresentationDefinitionItemEntity");
4265
4031
  }
@@ -4278,116 +4044,116 @@ var PresentationDefinitionItemEntity = class extends import_typeorm33.BaseEntity
4278
4044
  this.lastUpdatedAt = /* @__PURE__ */ new Date();
4279
4045
  }
4280
4046
  };
4281
- _ts_decorate34([
4282
- (0, import_typeorm33.PrimaryGeneratedColumn)("uuid"),
4283
- _ts_metadata33("design:type", String)
4047
+ _ts_decorate33([
4048
+ (0, import_typeorm32.PrimaryGeneratedColumn)("uuid"),
4049
+ _ts_metadata32("design:type", String)
4284
4050
  ], PresentationDefinitionItemEntity.prototype, "id", void 0);
4285
- _ts_decorate34([
4286
- (0, import_typeorm33.Column)({
4051
+ _ts_decorate33([
4052
+ (0, import_typeorm32.Column)({
4287
4053
  name: "definition_id",
4288
4054
  length: 255,
4289
4055
  type: "varchar",
4290
4056
  nullable: false,
4291
4057
  unique: false
4292
4058
  }),
4293
- (0, import_class_validator22.IsNotEmpty)({
4059
+ (0, import_class_validator21.IsNotEmpty)({
4294
4060
  message: "A blank definition id field is not allowed"
4295
4061
  }),
4296
- _ts_metadata33("design:type", String)
4062
+ _ts_metadata32("design:type", String)
4297
4063
  ], PresentationDefinitionItemEntity.prototype, "definitionId", void 0);
4298
- _ts_decorate34([
4299
- (0, import_typeorm33.Column)({
4064
+ _ts_decorate33([
4065
+ (0, import_typeorm32.Column)({
4300
4066
  name: "version",
4301
4067
  length: 255,
4302
4068
  type: "varchar",
4303
4069
  nullable: false,
4304
4070
  unique: false
4305
4071
  }),
4306
- (0, import_class_validator22.IsNotEmpty)({
4072
+ (0, import_class_validator21.IsNotEmpty)({
4307
4073
  message: "A blank version field is not allowed"
4308
4074
  }),
4309
- _ts_metadata33("design:type", String)
4075
+ _ts_metadata32("design:type", String)
4310
4076
  ], PresentationDefinitionItemEntity.prototype, "version", void 0);
4311
- _ts_decorate34([
4312
- (0, import_typeorm33.Column)({
4077
+ _ts_decorate33([
4078
+ (0, import_typeorm32.Column)({
4313
4079
  name: "tenant_id",
4314
4080
  length: 255,
4315
4081
  type: "varchar",
4316
4082
  nullable: true,
4317
4083
  unique: false
4318
4084
  }),
4319
- _ts_metadata33("design:type", String)
4085
+ _ts_metadata32("design:type", String)
4320
4086
  ], PresentationDefinitionItemEntity.prototype, "tenantId", void 0);
4321
- _ts_decorate34([
4322
- (0, import_typeorm33.Column)({
4087
+ _ts_decorate33([
4088
+ (0, import_typeorm32.Column)({
4323
4089
  name: "purpose",
4324
4090
  length: 255,
4325
4091
  type: "varchar",
4326
4092
  nullable: true,
4327
4093
  unique: false
4328
4094
  }),
4329
- _ts_metadata33("design:type", String)
4095
+ _ts_metadata32("design:type", String)
4330
4096
  ], PresentationDefinitionItemEntity.prototype, "purpose", void 0);
4331
- _ts_decorate34([
4332
- (0, import_typeorm33.Column)({
4097
+ _ts_decorate33([
4098
+ (0, import_typeorm32.Column)({
4333
4099
  name: "name",
4334
4100
  length: 255,
4335
4101
  type: "varchar",
4336
4102
  nullable: true,
4337
4103
  unique: false
4338
4104
  }),
4339
- _ts_metadata33("design:type", String)
4105
+ _ts_metadata32("design:type", String)
4340
4106
  ], PresentationDefinitionItemEntity.prototype, "name", void 0);
4341
- _ts_decorate34([
4342
- (0, import_typeorm33.Column)({
4107
+ _ts_decorate33([
4108
+ (0, import_typeorm32.Column)({
4343
4109
  name: "definition_payload",
4344
4110
  type: "text",
4345
4111
  nullable: false,
4346
4112
  unique: false
4347
4113
  }),
4348
- (0, import_class_validator22.IsNotEmpty)({
4114
+ (0, import_class_validator21.IsNotEmpty)({
4349
4115
  message: "A blank PD definition payload field is not allowed"
4350
4116
  }),
4351
- _ts_metadata33("design:type", String)
4117
+ _ts_metadata32("design:type", String)
4352
4118
  ], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
4353
- _ts_decorate34([
4354
- (0, import_typeorm33.Column)({
4119
+ _ts_decorate33([
4120
+ (0, import_typeorm32.Column)({
4355
4121
  name: "dcql_payload",
4356
4122
  type: "text",
4357
4123
  nullable: true,
4358
4124
  unique: false
4359
4125
  }),
4360
- (0, import_class_validator22.IsNotEmpty)({
4126
+ (0, import_class_validator21.IsNotEmpty)({
4361
4127
  message: "A blank dcql definition payload field is not allowed"
4362
4128
  }),
4363
- _ts_metadata33("design:type", String)
4129
+ _ts_metadata32("design:type", String)
4364
4130
  ], PresentationDefinitionItemEntity.prototype, "dcqlPayload", void 0);
4365
- _ts_decorate34([
4366
- (0, import_typeorm33.CreateDateColumn)({
4131
+ _ts_decorate33([
4132
+ (0, import_typeorm32.CreateDateColumn)({
4367
4133
  name: "created_at",
4368
4134
  nullable: false,
4369
4135
  type: (0, import_ssi_sdk18.typeOrmDateTime)()
4370
4136
  }),
4371
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4137
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4372
4138
  ], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
4373
- _ts_decorate34([
4374
- (0, import_typeorm33.UpdateDateColumn)({
4139
+ _ts_decorate33([
4140
+ (0, import_typeorm32.UpdateDateColumn)({
4375
4141
  name: "last_updated_at",
4376
4142
  nullable: false,
4377
4143
  type: (0, import_ssi_sdk18.typeOrmDateTime)()
4378
4144
  }),
4379
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4145
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4380
4146
  ], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", void 0);
4381
- _ts_decorate34([
4382
- (0, import_typeorm33.BeforeInsert)(),
4383
- (0, import_typeorm33.BeforeUpdate)(),
4384
- _ts_metadata33("design:type", Function),
4385
- _ts_metadata33("design:paramtypes", []),
4386
- _ts_metadata33("design:returntype", void 0)
4147
+ _ts_decorate33([
4148
+ (0, import_typeorm32.BeforeInsert)(),
4149
+ (0, import_typeorm32.BeforeUpdate)(),
4150
+ _ts_metadata32("design:type", Function),
4151
+ _ts_metadata32("design:paramtypes", []),
4152
+ _ts_metadata32("design:returntype", void 0)
4387
4153
  ], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
4388
- PresentationDefinitionItemEntity = _ts_decorate34([
4389
- (0, import_typeorm33.Entity)("PresentationDefinitionItem"),
4390
- (0, import_typeorm33.Index)([
4154
+ PresentationDefinitionItemEntity = _ts_decorate33([
4155
+ (0, import_typeorm32.Entity)("PresentationDefinitionItem"),
4156
+ (0, import_typeorm32.Index)([
4391
4157
  "version"
4392
4158
  ], {
4393
4159
  unique: false
@@ -4396,19 +4162,19 @@ PresentationDefinitionItemEntity = _ts_decorate34([
4396
4162
 
4397
4163
  // src/entities/oid4vcState/Oid4vcStateEntity.ts
4398
4164
  var import_ssi_sdk19 = require("@sphereon/ssi-sdk.agent-config");
4399
- var import_typeorm34 = require("typeorm");
4400
- function _ts_decorate35(decorators, target, key, desc) {
4165
+ var import_typeorm33 = require("typeorm");
4166
+ function _ts_decorate34(decorators, target, key, desc) {
4401
4167
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4402
4168
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4403
4169
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4404
4170
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4405
4171
  }
4406
- __name(_ts_decorate35, "_ts_decorate");
4407
- function _ts_metadata34(k, v) {
4172
+ __name(_ts_decorate34, "_ts_decorate");
4173
+ function _ts_metadata33(k, v) {
4408
4174
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4409
4175
  }
4410
- __name(_ts_metadata34, "_ts_metadata");
4411
- var Oid4vcStateEntity = class extends import_typeorm34.BaseEntity {
4176
+ __name(_ts_metadata33, "_ts_metadata");
4177
+ var Oid4vcStateEntity = class extends import_typeorm33.BaseEntity {
4412
4178
  static {
4413
4179
  __name(this, "Oid4vcStateEntity");
4414
4180
  }
@@ -4422,84 +4188,84 @@ var Oid4vcStateEntity = class extends import_typeorm34.BaseEntity {
4422
4188
  expiresAt;
4423
4189
  tenantId;
4424
4190
  };
4425
- _ts_decorate35([
4426
- (0, import_typeorm34.PrimaryColumn)({
4191
+ _ts_decorate34([
4192
+ (0, import_typeorm33.PrimaryColumn)({
4427
4193
  name: "id",
4428
4194
  type: "varchar",
4429
4195
  nullable: false
4430
4196
  }),
4431
- _ts_metadata34("design:type", String)
4197
+ _ts_metadata33("design:type", String)
4432
4198
  ], Oid4vcStateEntity.prototype, "id", void 0);
4433
- _ts_decorate35([
4434
- (0, import_typeorm34.Column)({
4199
+ _ts_decorate34([
4200
+ (0, import_typeorm33.Column)({
4435
4201
  name: "lookup_ids",
4436
4202
  type: "array",
4437
4203
  nullable: true
4438
4204
  }),
4439
- _ts_metadata34("design:type", typeof Array === "undefined" ? Object : Array)
4205
+ _ts_metadata33("design:type", typeof Array === "undefined" ? Object : Array)
4440
4206
  ], Oid4vcStateEntity.prototype, "lookups", void 0);
4441
- _ts_decorate35([
4442
- (0, import_typeorm34.Column)({
4207
+ _ts_decorate34([
4208
+ (0, import_typeorm33.Column)({
4443
4209
  name: "state_id",
4444
4210
  type: "varchar",
4445
4211
  nullable: true
4446
4212
  }),
4447
- _ts_metadata34("design:type", String)
4213
+ _ts_metadata33("design:type", String)
4448
4214
  ], Oid4vcStateEntity.prototype, "stateId", void 0);
4449
- _ts_decorate35([
4450
- (0, import_typeorm34.Column)({
4215
+ _ts_decorate34([
4216
+ (0, import_typeorm33.Column)({
4451
4217
  name: "correlation_id",
4452
4218
  type: "varchar",
4453
4219
  nullable: true
4454
4220
  }),
4455
- _ts_metadata34("design:type", String)
4221
+ _ts_metadata33("design:type", String)
4456
4222
  ], Oid4vcStateEntity.prototype, "correlationId", void 0);
4457
- _ts_decorate35([
4458
- (0, import_typeorm34.Column)({
4223
+ _ts_decorate34([
4224
+ (0, import_typeorm33.Column)({
4459
4225
  name: "state",
4460
4226
  type: "json",
4461
4227
  nullable: false
4462
4228
  }),
4463
- _ts_metadata34("design:type", typeof StateType === "undefined" ? Object : StateType)
4229
+ _ts_metadata33("design:type", typeof StateType === "undefined" ? Object : StateType)
4464
4230
  ], Oid4vcStateEntity.prototype, "state", void 0);
4465
- _ts_decorate35([
4466
- (0, import_typeorm34.CreateDateColumn)({
4231
+ _ts_decorate34([
4232
+ (0, import_typeorm33.CreateDateColumn)({
4467
4233
  name: "created_at",
4468
4234
  nullable: false,
4469
4235
  type: (0, import_ssi_sdk19.typeOrmDateTime)()
4470
4236
  }),
4471
- _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4237
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4472
4238
  ], Oid4vcStateEntity.prototype, "createdAt", void 0);
4473
- _ts_decorate35([
4474
- (0, import_typeorm34.UpdateDateColumn)({
4239
+ _ts_decorate34([
4240
+ (0, import_typeorm33.UpdateDateColumn)({
4475
4241
  name: "updated_at",
4476
4242
  nullable: false,
4477
4243
  type: (0, import_ssi_sdk19.typeOrmDateTime)()
4478
4244
  }),
4479
- _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4245
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4480
4246
  ], Oid4vcStateEntity.prototype, "updatedAt", void 0);
4481
- _ts_decorate35([
4482
- (0, import_typeorm34.Column)({
4247
+ _ts_decorate34([
4248
+ (0, import_typeorm33.Column)({
4483
4249
  name: "expires_at",
4484
4250
  nullable: true,
4485
4251
  type: (0, import_ssi_sdk19.typeOrmDateTime)()
4486
4252
  }),
4487
- _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4253
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4488
4254
  ], Oid4vcStateEntity.prototype, "expiresAt", void 0);
4489
- _ts_decorate35([
4490
- (0, import_typeorm34.Column)({
4255
+ _ts_decorate34([
4256
+ (0, import_typeorm33.Column)({
4491
4257
  name: "tenant_id",
4492
4258
  type: "varchar",
4493
4259
  nullable: true
4494
4260
  }),
4495
- _ts_metadata34("design:type", String)
4261
+ _ts_metadata33("design:type", String)
4496
4262
  ], Oid4vcStateEntity.prototype, "tenantId", void 0);
4497
- Oid4vcStateEntity = _ts_decorate35([
4498
- (0, import_typeorm34.Entity)("Oid4vcStateEntity")
4263
+ Oid4vcStateEntity = _ts_decorate34([
4264
+ (0, import_typeorm33.Entity)("Oid4vcStateEntity")
4499
4265
  ], Oid4vcStateEntity);
4500
4266
 
4501
4267
  // src/contact/ContactStore.ts
4502
- var import_typeorm35 = require("typeorm");
4268
+ var import_typeorm34 = require("typeorm");
4503
4269
  var import_debug = __toESM(require("debug"), 1);
4504
4270
 
4505
4271
  // src/contact/AbstractContactStore.ts
@@ -4968,7 +4734,7 @@ var ContactStore = class extends AbstractContactStore {
4968
4734
  });
4969
4735
  const result = await partyRepository.find({
4970
4736
  where: {
4971
- id: (0, import_typeorm35.In)(initialResult.map((party) => party.id))
4737
+ id: (0, import_typeorm34.In)(initialResult.map((party) => party.id))
4972
4738
  }
4973
4739
  });
4974
4740
  debug(`getParties() resulted in ${result.length} parties`);
@@ -5064,7 +4830,7 @@ var ContactStore = class extends AbstractContactStore {
5064
4830
  });
5065
4831
  const result = await identityRepository.find({
5066
4832
  where: {
5067
- id: (0, import_typeorm35.In)(initialResult.map((identity) => identity.id))
4833
+ id: (0, import_typeorm34.In)(initialResult.map((identity) => identity.id))
5068
4834
  }
5069
4835
  });
5070
4836
  return result.map(identityFrom);
@@ -5169,7 +4935,7 @@ var ContactStore = class extends AbstractContactStore {
5169
4935
  });
5170
4936
  const result = await partyRelationshipRepository.find({
5171
4937
  where: {
5172
- id: (0, import_typeorm35.In)(initialResult.map((partyRelationship) => partyRelationship.id))
4938
+ id: (0, import_typeorm34.In)(initialResult.map((partyRelationship) => partyRelationship.id))
5173
4939
  }
5174
4940
  });
5175
4941
  return result.map((partyRelationship) => partyRelationshipFrom(partyRelationship));
@@ -5235,7 +5001,7 @@ var ContactStore = class extends AbstractContactStore {
5235
5001
  });
5236
5002
  const result = await partyTypeRepository.find({
5237
5003
  where: {
5238
- id: (0, import_typeorm35.In)(initialResult.map((partyType) => partyType.id))
5004
+ id: (0, import_typeorm34.In)(initialResult.map((partyType) => partyType.id))
5239
5005
  }
5240
5006
  });
5241
5007
  return result.map((partyType) => partyTypeFrom(partyType));
@@ -5303,7 +5069,7 @@ var ContactStore = class extends AbstractContactStore {
5303
5069
  });
5304
5070
  const result = await electronicAddressRepository.find({
5305
5071
  where: {
5306
- id: (0, import_typeorm35.In)(initialResult.map((electronicAddress) => electronicAddress.id))
5072
+ id: (0, import_typeorm34.In)(initialResult.map((electronicAddress) => electronicAddress.id))
5307
5073
  }
5308
5074
  });
5309
5075
  return result.map((electronicAddress) => electronicAddressFrom(electronicAddress));
@@ -5379,7 +5145,7 @@ var ContactStore = class extends AbstractContactStore {
5379
5145
  });
5380
5146
  const result = await physicalAddressRepository.find({
5381
5147
  where: {
5382
- id: (0, import_typeorm35.In)(initialResult.map((physicalAddress) => physicalAddress.id))
5148
+ id: (0, import_typeorm34.In)(initialResult.map((physicalAddress) => physicalAddress.id))
5383
5149
  }
5384
5150
  });
5385
5151
  return result.map((physicalAddress) => physicalAddressFrom(physicalAddress));
@@ -5738,7 +5504,7 @@ var AbstractIssuanceBrandingStore = class {
5738
5504
 
5739
5505
  // src/issuanceBranding/IssuanceBrandingStore.ts
5740
5506
  var import_debug3 = __toESM(require("debug"), 1);
5741
- var import_typeorm36 = require("typeorm");
5507
+ var import_typeorm35 = require("typeorm");
5742
5508
 
5743
5509
  // src/utils/issuanceBranding/MappingUtils.ts
5744
5510
  var credentialBrandingFrom = /* @__PURE__ */ __name((credentialBranding) => {
@@ -5932,7 +5698,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
5932
5698
  credentialBranding: {
5933
5699
  id: credentialBrandingId
5934
5700
  },
5935
- locale: (0, import_typeorm36.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
5701
+ locale: (0, import_typeorm35.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
5936
5702
  }
5937
5703
  });
5938
5704
  if (locales && locales.length > 0) {
@@ -6000,7 +5766,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
6000
5766
  credentialBranding: {
6001
5767
  id: result.credentialBrandingId
6002
5768
  },
6003
- id: (0, import_typeorm36.Not)((0, import_typeorm36.In)([
5769
+ id: (0, import_typeorm35.Not)((0, import_typeorm35.In)([
6004
5770
  localeBranding.id
6005
5771
  ])),
6006
5772
  locale: localeBranding.locale
@@ -6103,7 +5869,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
6103
5869
  issuerBranding: {
6104
5870
  id: issuerBrandingId
6105
5871
  },
6106
- locale: (0, import_typeorm36.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
5872
+ locale: (0, import_typeorm35.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
6107
5873
  }
6108
5874
  });
6109
5875
  if (locales && locales.length > 0) {
@@ -6171,7 +5937,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
6171
5937
  issuerBranding: {
6172
5938
  id: result.issuerBrandingId
6173
5939
  },
6174
- id: (0, import_typeorm36.Not)((0, import_typeorm36.In)([
5940
+ id: (0, import_typeorm35.Not)((0, import_typeorm35.In)([
6175
5941
  localeBranding.id
6176
5942
  ])),
6177
5943
  locale: localeBranding.locale
@@ -6231,50 +5997,34 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
6231
5997
  };
6232
5998
 
6233
5999
  // src/statusList/StatusListStore.ts
6234
- var import_ssi_types5 = require("@sphereon/ssi-types");
6000
+ var import_ssi_types4 = require("@sphereon/ssi-types");
6235
6001
  var import_debug4 = __toESM(require("debug"), 1);
6236
- var import_typeorm37 = require("typeorm");
6002
+ var import_typeorm36 = require("typeorm");
6237
6003
 
6238
6004
  // src/utils/statusList/MappingUtils.ts
6239
- var import_ssi_types4 = require("@sphereon/ssi-types");
6005
+ var import_ssi_types3 = require("@sphereon/ssi-types");
6240
6006
  var statusListEntityFrom = /* @__PURE__ */ __name((args) => {
6241
- if (args.type === import_ssi_types4.StatusListType.StatusList2021) {
6007
+ if (args.type === import_ssi_types3.StatusListType.StatusList2021) {
6242
6008
  const entity = new StatusList2021Entity();
6243
6009
  const sl2021 = args;
6244
6010
  entity.indexingDirection = sl2021.indexingDirection;
6245
6011
  entity.statusPurpose = sl2021.statusPurpose;
6246
6012
  setBaseFields(entity, args);
6247
6013
  Object.defineProperty(entity, "type", {
6248
- value: import_ssi_types4.StatusListType.StatusList2021,
6014
+ value: import_ssi_types3.StatusListType.StatusList2021,
6249
6015
  enumerable: true,
6250
6016
  configurable: true
6251
6017
  });
6252
6018
  return entity;
6253
6019
  }
6254
- if (args.type === import_ssi_types4.StatusListType.OAuthStatusList) {
6020
+ if (args.type === import_ssi_types3.StatusListType.OAuthStatusList) {
6255
6021
  const entity = new OAuthStatusListEntity();
6256
6022
  const oauthSl = args;
6257
6023
  entity.bitsPerStatus = oauthSl.bitsPerStatus;
6258
6024
  entity.expiresAt = oauthSl.expiresAt;
6259
6025
  setBaseFields(entity, args);
6260
6026
  Object.defineProperty(entity, "type", {
6261
- value: import_ssi_types4.StatusListType.OAuthStatusList,
6262
- enumerable: true,
6263
- configurable: true
6264
- });
6265
- return entity;
6266
- }
6267
- if (args.type === import_ssi_types4.StatusListType.BitstringStatusList) {
6268
- const entity = new BitstringStatusListEntity();
6269
- const bitstringsl = args;
6270
- entity.statusPurpose = bitstringsl.statusPurpose;
6271
- entity.statusSize = bitstringsl.statusSize;
6272
- entity.validFrom = bitstringsl.validFrom;
6273
- entity.validUntil = bitstringsl.validUntil;
6274
- entity.ttl = bitstringsl.ttl;
6275
- setBaseFields(entity, args);
6276
- Object.defineProperty(entity, "type", {
6277
- value: import_ssi_types4.StatusListType.BitstringStatusList,
6027
+ value: import_ssi_types3.StatusListType.OAuthStatusList,
6278
6028
  enumerable: true,
6279
6029
  configurable: true
6280
6030
  });
@@ -6286,7 +6036,7 @@ var statusListFrom = /* @__PURE__ */ __name((entity) => {
6286
6036
  if (entity instanceof StatusList2021Entity) {
6287
6037
  const result = {
6288
6038
  ...getBaseFields(entity),
6289
- type: import_ssi_types4.StatusListType.StatusList2021,
6039
+ type: import_ssi_types3.StatusListType.StatusList2021,
6290
6040
  indexingDirection: entity.indexingDirection,
6291
6041
  statusPurpose: entity.statusPurpose
6292
6042
  };
@@ -6295,24 +6045,12 @@ var statusListFrom = /* @__PURE__ */ __name((entity) => {
6295
6045
  if (entity instanceof OAuthStatusListEntity) {
6296
6046
  const result = {
6297
6047
  ...getBaseFields(entity),
6298
- type: import_ssi_types4.StatusListType.OAuthStatusList,
6048
+ type: import_ssi_types3.StatusListType.OAuthStatusList,
6299
6049
  bitsPerStatus: entity.bitsPerStatus,
6300
6050
  expiresAt: entity.expiresAt
6301
6051
  };
6302
6052
  return replaceNullWithUndefined(result);
6303
6053
  }
6304
- if (entity instanceof BitstringStatusListEntity) {
6305
- const result = {
6306
- ...getBaseFields(entity),
6307
- type: import_ssi_types4.StatusListType.BitstringStatusList,
6308
- statusPurpose: entity.statusPurpose,
6309
- statusSize: entity.statusSize,
6310
- validFrom: entity.validFrom,
6311
- validUntil: entity.validUntil,
6312
- ttl: entity.ttl
6313
- };
6314
- return replaceNullWithUndefined(result);
6315
- }
6316
6054
  throw new Error(`Invalid status list type ${typeof entity}`);
6317
6055
  }, "statusListFrom");
6318
6056
  var setBaseFields = /* @__PURE__ */ __name((entity, args) => {
@@ -6367,7 +6105,7 @@ var StatusListStore = class {
6367
6105
  const results = (await repo.find({
6368
6106
  where: {
6369
6107
  statusList,
6370
- statusListIndex: (0, import_typeorm37.In)(statusListIndex)
6108
+ statusListIndex: (0, import_typeorm36.In)(statusListIndex)
6371
6109
  }
6372
6110
  })).map((index) => index.statusListIndex);
6373
6111
  return statusListIndex.filter((index) => !results.includes(index));
@@ -6597,12 +6335,10 @@ var StatusListStore = class {
6597
6335
  async getStatusListRepo(type) {
6598
6336
  const dataSource = await this.getDS();
6599
6337
  switch (type) {
6600
- case import_ssi_types5.StatusListType.StatusList2021:
6338
+ case import_ssi_types4.StatusListType.StatusList2021:
6601
6339
  return dataSource.getRepository(StatusList2021Entity);
6602
- case import_ssi_types5.StatusListType.OAuthStatusList:
6340
+ case import_ssi_types4.StatusListType.OAuthStatusList:
6603
6341
  return dataSource.getRepository(OAuthStatusListEntity);
6604
- case import_ssi_types5.StatusListType.BitstringStatusList:
6605
- return dataSource.getRepository(BitstringStatusListEntity);
6606
6342
  default:
6607
6343
  return dataSource.getRepository(StatusListEntity);
6608
6344
  }
@@ -6620,15 +6356,15 @@ var AbstractEventLoggerStore = class {
6620
6356
  };
6621
6357
 
6622
6358
  // src/eventLogger/EventLoggerStore.ts
6623
- var import_ssi_types7 = require("@sphereon/ssi-types");
6359
+ var import_ssi_types6 = require("@sphereon/ssi-types");
6624
6360
  var import_debug5 = __toESM(require("debug"), 1);
6625
6361
 
6626
6362
  // src/utils/eventLogger/MappingUtils.ts
6627
- var import_ssi_types6 = require("@sphereon/ssi-types");
6363
+ var import_ssi_types5 = require("@sphereon/ssi-types");
6628
6364
  var auditEventFrom = /* @__PURE__ */ __name((event) => {
6629
6365
  const result = {
6630
6366
  id: event.id,
6631
- type: import_ssi_types6.LoggingEventType.AUDIT,
6367
+ type: import_ssi_types5.LoggingEventType.AUDIT,
6632
6368
  description: event.description,
6633
6369
  timestamp: event.timestamp,
6634
6370
  level: event.level,
@@ -6655,7 +6391,7 @@ var auditEventFrom = /* @__PURE__ */ __name((event) => {
6655
6391
  }, "auditEventFrom");
6656
6392
  var auditEventEntityFrom = /* @__PURE__ */ __name((args) => {
6657
6393
  const auditEventEntity = new AuditEventEntity();
6658
- auditEventEntity.type = import_ssi_types6.LoggingEventType.AUDIT;
6394
+ auditEventEntity.type = import_ssi_types5.LoggingEventType.AUDIT;
6659
6395
  auditEventEntity.timestamp = args.timestamp;
6660
6396
  auditEventEntity.level = args.level;
6661
6397
  auditEventEntity.correlationId = args.correlationId;
@@ -6679,7 +6415,7 @@ var auditEventEntityFrom = /* @__PURE__ */ __name((args) => {
6679
6415
  var activityEventFrom = /* @__PURE__ */ __name((event) => {
6680
6416
  const result = {
6681
6417
  id: event.id,
6682
- type: import_ssi_types6.LoggingEventType.ACTIVITY,
6418
+ type: import_ssi_types5.LoggingEventType.ACTIVITY,
6683
6419
  credentialType: event.credentialType,
6684
6420
  originalCredential: event.originalCredential,
6685
6421
  credentialHash: event.credentialHash,
@@ -6711,7 +6447,7 @@ var activityEventFrom = /* @__PURE__ */ __name((event) => {
6711
6447
  }, "activityEventFrom");
6712
6448
  var activityEventEntityFrom = /* @__PURE__ */ __name((args) => {
6713
6449
  const activityEventEntity = new AuditEventEntity();
6714
- activityEventEntity.type = import_ssi_types6.LoggingEventType.ACTIVITY;
6450
+ activityEventEntity.type = import_ssi_types5.LoggingEventType.ACTIVITY;
6715
6451
  activityEventEntity.timestamp = args.timestamp;
6716
6452
  activityEventEntity.level = args.level;
6717
6453
  activityEventEntity.correlationId = args.correlationId;
@@ -6753,11 +6489,11 @@ var EventLoggerStore = class extends AbstractEventLoggerStore {
6753
6489
  const { filter = [] } = args ?? {};
6754
6490
  const auditEventsFilter = filter.map((item) => ({
6755
6491
  ...item,
6756
- type: import_ssi_types7.LoggingEventType.AUDIT
6492
+ type: import_ssi_types6.LoggingEventType.AUDIT
6757
6493
  }));
6758
6494
  if (auditEventsFilter.length === 0) {
6759
6495
  auditEventsFilter.push({
6760
- type: import_ssi_types7.LoggingEventType.AUDIT
6496
+ type: import_ssi_types6.LoggingEventType.AUDIT
6761
6497
  });
6762
6498
  }
6763
6499
  const connection = await this.dbConnection;
@@ -6779,11 +6515,11 @@ var EventLoggerStore = class extends AbstractEventLoggerStore {
6779
6515
  const { filter = [] } = args ?? {};
6780
6516
  const activityEventsFilter = filter.map((item) => ({
6781
6517
  ...item,
6782
- type: import_ssi_types7.LoggingEventType.ACTIVITY
6518
+ type: import_ssi_types6.LoggingEventType.ACTIVITY
6783
6519
  }));
6784
6520
  if (activityEventsFilter.length === 0) {
6785
6521
  activityEventsFilter.push({
6786
- type: import_ssi_types7.LoggingEventType.ACTIVITY
6522
+ type: import_ssi_types6.LoggingEventType.ACTIVITY
6787
6523
  });
6788
6524
  }
6789
6525
  const connection = await this.dbConnection;
@@ -6812,7 +6548,7 @@ var IAbstractMachineStateStore = class {
6812
6548
 
6813
6549
  // src/machineState/MachineStateStore.ts
6814
6550
  var import_debug6 = __toESM(require("debug"), 1);
6815
- var import_typeorm38 = require("typeorm");
6551
+ var import_typeorm37 = require("typeorm");
6816
6552
  var debug6 = (0, import_debug6.default)("sphereon:ssi-sdk:machine-state:store");
6817
6553
  var MachineStateStore = class _MachineStateStore extends IAbstractMachineStateStore {
6818
6554
  static {
@@ -6848,7 +6584,7 @@ var MachineStateStore = class _MachineStateStore extends IAbstractMachineStateSt
6848
6584
  const { tenantId, machineName, instanceId } = args;
6849
6585
  const connection = await this._dbConnection;
6850
6586
  debug6(`Executing findActiveMachineStates query with machineName: ${machineName}, tenantId: ${tenantId}`);
6851
- const queryBuilder = connection.getRepository(MachineStateInfoEntity).createQueryBuilder("state").where("state.completedAt IS NULL").andWhere(new import_typeorm38.Brackets((qb) => {
6587
+ const queryBuilder = connection.getRepository(MachineStateInfoEntity).createQueryBuilder("state").where("state.completedAt IS NULL").andWhere(new import_typeorm37.Brackets((qb) => {
6852
6588
  qb.where("state.expiresAt IS NULL").orWhere("state.expiresAt > :now", {
6853
6589
  now: /* @__PURE__ */ new Date()
6854
6590
  });
@@ -6918,10 +6654,10 @@ var MachineStateStore = class _MachineStateStore extends IAbstractMachineStateSt
6918
6654
  },
6919
6655
  // When deleteOnDone state is set we only look at completedAt, in other cases we compare current time with expiresAt
6920
6656
  ...!deleteDoneStates && {
6921
- expiresAt: (0, import_typeorm38.LessThan)(/* @__PURE__ */ new Date())
6657
+ expiresAt: (0, import_typeorm37.LessThan)(/* @__PURE__ */ new Date())
6922
6658
  },
6923
6659
  ...deleteDoneStates && {
6924
- completedAt: (0, import_typeorm38.Not)((0, import_typeorm38.IsNull)())
6660
+ completedAt: (0, import_typeorm37.Not)((0, import_typeorm37.IsNull)())
6925
6661
  }
6926
6662
  };
6927
6663
  const result = await connection.getRepository(MachineStateInfoEntity).delete(deleteCriteria);
@@ -6949,7 +6685,7 @@ var AbstractPDStore = class {
6949
6685
  };
6950
6686
 
6951
6687
  // src/presentationDefinition/PDStore.ts
6952
- var import_typeorm39 = require("typeorm");
6688
+ var import_typeorm38 = require("typeorm");
6953
6689
  var import_debug7 = __toESM(require("debug"), 1);
6954
6690
 
6955
6691
  // src/utils/presentationDefinition/MappingUtils.ts
@@ -7045,7 +6781,7 @@ var PDStore = class extends AbstractPDStore {
7045
6781
  const initialResult = await this.findIds(pdRepository, filter);
7046
6782
  const result = await pdRepository.find({
7047
6783
  where: {
7048
- id: (0, import_typeorm39.In)(initialResult.map((entity) => entity.id))
6784
+ id: (0, import_typeorm38.In)(initialResult.map((entity) => entity.id))
7049
6785
  },
7050
6786
  order: {
7051
6787
  version: "DESC"
@@ -7107,7 +6843,7 @@ var PDStore = class extends AbstractPDStore {
7107
6843
  const initialResult = await this.findIds(pdRepository, filter);
7108
6844
  const result = await pdRepository.find({
7109
6845
  where: {
7110
- id: (0, import_typeorm39.In)(initialResult.map((entity) => entity.id))
6846
+ id: (0, import_typeorm38.In)(initialResult.map((entity) => entity.id))
7111
6847
  }
7112
6848
  });
7113
6849
  for (const entity of result) {
@@ -7121,7 +6857,7 @@ var PDStore = class extends AbstractPDStore {
7121
6857
  if (idFilters && idFilters.length > 0 && idFilters.length === filter?.length) {
7122
6858
  return await pdRepository.find({
7123
6859
  where: {
7124
- id: (0, import_typeorm39.In)(idFilters)
6860
+ id: (0, import_typeorm38.In)(idFilters)
7125
6861
  }
7126
6862
  });
7127
6863
  } else {
@@ -9076,199 +8812,6 @@ var FixCredentialClaimsReferencesUuid1741895822987 = class {
9076
8812
  }
9077
8813
  };
9078
8814
 
9079
- // src/migrations/generic/12-CreateBitstringStatusList.ts
9080
- var import_debug19 = __toESM(require("debug"), 1);
9081
-
9082
- // src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts
9083
- var CreateBitstringStatusListPG1741895823000 = class {
9084
- static {
9085
- __name(this, "CreateBitstringStatusListPG1741895823000");
9086
- }
9087
- name = "CreateBitstringStatusList1741895823000";
9088
- async up(queryRunner) {
9089
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "statusSize" integer DEFAULT 1`);
9090
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "ttl" integer`);
9091
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validFrom" TIMESTAMP`);
9092
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validUntil" TIMESTAMP`);
9093
- await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT IF EXISTS "CHK_StatusList_type"`);
9094
- await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList'))`);
9095
- await queryRunner.query(`
9096
- CREATE TABLE "BitstringStatusListEntry" (
9097
- "statusListId" character varying NOT NULL,
9098
- "statusListIndex" integer NOT NULL,
9099
- "credentialId" text,
9100
- "credentialHash" character varying(128),
9101
- "correlationId" character varying(255),
9102
- "statusPurpose" character varying NOT NULL,
9103
- "statusSize" integer DEFAULT 1,
9104
- "statusMessage" text,
9105
- "statusReference" text,
9106
- CONSTRAINT "PK_BitstringStatusListEntry" PRIMARY KEY ("statusListId", "statusListIndex")
9107
- )
9108
- `);
9109
- await queryRunner.query(`
9110
- ALTER TABLE "BitstringStatusListEntry"
9111
- ADD CONSTRAINT "FK_BitstringStatusListEntry_statusListId"
9112
- FOREIGN KEY ("statusListId") REFERENCES "StatusList"("id") ON DELETE NO ACTION ON UPDATE NO ACTION
9113
- `);
9114
- }
9115
- async down(queryRunner) {
9116
- await queryRunner.query(`ALTER TABLE "BitstringStatusListEntry" DROP CONSTRAINT "FK_BitstringStatusListEntry_statusListId"`);
9117
- await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
9118
- await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT "CHK_StatusList_type"`);
9119
- await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList'))`);
9120
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validUntil"`);
9121
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validFrom"`);
9122
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "ttl"`);
9123
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "statusSize"`);
9124
- }
9125
- };
9126
-
9127
- // src/migrations/sqlite/1741895823001-CreateBitstringStatusList.ts
9128
- var CreateBitstringStatusListSqlite1741895823001 = class {
9129
- static {
9130
- __name(this, "CreateBitstringStatusListSqlite1741895823001");
9131
- }
9132
- name = "CreateBitstringStatusList1741895823000";
9133
- async up(queryRunner) {
9134
- await queryRunner.query(`
9135
- CREATE TABLE "temporary_StatusList" (
9136
- "id" varchar PRIMARY KEY NOT NULL,
9137
- "correlationId" varchar NOT NULL,
9138
- "length" integer NOT NULL,
9139
- "issuer" text NOT NULL,
9140
- "type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
9141
- "driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
9142
- "credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
9143
- "proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
9144
- "indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
9145
- "statusPurpose" varchar,
9146
- "statusListCredential" text,
9147
- "bitsPerStatus" integer,
9148
- "expiresAt" datetime,
9149
- "statusSize" integer DEFAULT (1),
9150
- "ttl" integer,
9151
- "validFrom" datetime,
9152
- "validUntil" datetime,
9153
- CONSTRAINT "UQ_correlationId" UNIQUE ("correlationId")
9154
- )
9155
- `);
9156
- await queryRunner.query(`
9157
- INSERT INTO "temporary_StatusList"(
9158
- "id", "correlationId", "length", "issuer", "type", "driverType",
9159
- "credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
9160
- "statusListCredential", "bitsPerStatus", "expiresAt"
9161
- )
9162
- SELECT
9163
- "id", "correlationId", "length", "issuer", "type", "driverType",
9164
- "credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
9165
- "statusListCredential", "bitsPerStatus", "expiresAt"
9166
- FROM "StatusList"
9167
- `);
9168
- await queryRunner.query(`DROP TABLE "StatusList"`);
9169
- await queryRunner.query(`ALTER TABLE "temporary_StatusList" RENAME TO "StatusList"`);
9170
- await queryRunner.query(`
9171
- CREATE TABLE "BitstringStatusListEntry" (
9172
- "statusListId" varchar NOT NULL,
9173
- "statusListIndex" integer NOT NULL,
9174
- "credentialId" text,
9175
- "credentialHash" varchar(128),
9176
- "correlationId" varchar(255),
9177
- "statusPurpose" varchar NOT NULL,
9178
- "statusSize" integer DEFAULT (1),
9179
- "statusMessage" text,
9180
- "statusReference" text,
9181
- PRIMARY KEY ("statusListId", "statusListIndex")
9182
- )
9183
- `);
9184
- }
9185
- async down(queryRunner) {
9186
- await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
9187
- await queryRunner.query(`
9188
- CREATE TABLE "temporary_StatusList" (
9189
- "id" varchar PRIMARY KEY NOT NULL,
9190
- "correlationId" varchar NOT NULL,
9191
- "length" integer NOT NULL,
9192
- "issuer" text NOT NULL,
9193
- "type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
9194
- "driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
9195
- "credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
9196
- "proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
9197
- "indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
9198
- "statusPurpose" varchar,
9199
- "statusListCredential" text,
9200
- "bitsPerStatus" integer,
9201
- "expiresAt" datetime,
9202
- CONSTRAINT "UQ_correlationId" UNIQUE ("correlationId")
9203
- )
9204
- `);
9205
- await queryRunner.query(`
9206
- INSERT INTO "temporary_StatusList"(
9207
- "id", "correlationId", "length", "issuer", "type", "driverType",
9208
- "credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
9209
- "statusListCredential", "bitsPerStatus", "expiresAt"
9210
- )
9211
- SELECT
9212
- "id", "correlationId", "length", "issuer",
9213
- CASE WHEN "type" = 'BitstringStatusList' THEN 'StatusList2021' ELSE "type" END,
9214
- "driverType", "credentialIdMode", "proofFormat", "indexingDirection",
9215
- "statusPurpose", "statusListCredential", "bitsPerStatus", "expiresAt"
9216
- FROM "StatusList"
9217
- `);
9218
- await queryRunner.query(`DROP TABLE "StatusList"`);
9219
- await queryRunner.query(`ALTER TABLE "temporary_StatusList" RENAME TO "StatusList"`);
9220
- }
9221
- };
9222
-
9223
- // src/migrations/generic/12-CreateBitstringStatusList.ts
9224
- var debug19 = (0, import_debug19.default)("sphereon:ssi-sdk:migrations");
9225
- var CreateBitstringStatusList1741895823000 = class {
9226
- static {
9227
- __name(this, "CreateBitstringStatusList1741895823000");
9228
- }
9229
- name = "CreateBitstringStatusList1741895823000";
9230
- async up(queryRunner) {
9231
- debug19("migration: creating bitstring status list tables");
9232
- const dbType = queryRunner.connection.driver.options.type;
9233
- switch (dbType) {
9234
- case "postgres": {
9235
- const mig = new CreateBitstringStatusListPG1741895823000();
9236
- await mig.up(queryRunner);
9237
- return;
9238
- }
9239
- case "sqlite":
9240
- case "expo":
9241
- case "react-native": {
9242
- const mig = new CreateBitstringStatusListSqlite1741895823001();
9243
- await mig.up(queryRunner);
9244
- return;
9245
- }
9246
- default:
9247
- return Promise.reject(`Migrations only supported for sqlite and postgres. Was ${dbType}`);
9248
- }
9249
- }
9250
- async down(queryRunner) {
9251
- debug19("migration: dropping bitstring status list tables");
9252
- const dbType = queryRunner.connection.driver.options.type;
9253
- switch (dbType) {
9254
- case "postgres": {
9255
- const mig = new CreateBitstringStatusListPG1741895823000();
9256
- await mig.down(queryRunner);
9257
- return;
9258
- }
9259
- case "sqlite":
9260
- case "expo":
9261
- case "react-native": {
9262
- const mig = new CreateBitstringStatusListSqlite1741895823001();
9263
- await mig.down(queryRunner);
9264
- return;
9265
- }
9266
- default:
9267
- return Promise.reject(`Migrations only supported for sqlite and postgres. Was ${dbType}`);
9268
- }
9269
- }
9270
- };
9271
-
9272
8815
  // src/migrations/generic/index.ts
9273
8816
  var DataStoreContactMigrations = [
9274
8817
  CreateContacts1659463079429,
@@ -9281,8 +8824,7 @@ var DataStoreIssuanceBrandingMigrations = [
9281
8824
  FixCredentialClaimsReferencesUuid1741895822987
9282
8825
  ];
9283
8826
  var DataStoreStatusListMigrations = [
9284
- CreateStatusList1693866470000,
9285
- CreateBitstringStatusList1741895823000
8827
+ CreateStatusList1693866470000
9286
8828
  ];
9287
8829
  var DataStoreEventLoggerMigrations = [
9288
8830
  CreateAuditEvents1701635835330
@@ -9307,7 +8849,7 @@ var DataStoreMigrations = [
9307
8849
  ];
9308
8850
 
9309
8851
  // src/utils/digitalCredential/MappingUtils.ts
9310
- var import_ssi_types8 = require("@sphereon/ssi-types");
8852
+ var import_ssi_types7 = require("@sphereon/ssi-types");
9311
8853
  var import_utils = require("@veramo/utils");
9312
8854
  var import_ssi_sdk23 = require("@sphereon/ssi-sdk.core");
9313
8855
  function determineDocumentType(raw) {
@@ -9315,11 +8857,11 @@ function determineDocumentType(raw) {
9315
8857
  if (!rawDocument) {
9316
8858
  throw new Error(`Couldn't parse the credential: ${raw}`);
9317
8859
  }
9318
- const hasProof = import_ssi_types8.CredentialMapper.hasProof(rawDocument);
9319
- const isCredential = isHex(raw) || import_ssi_types8.ObjectUtils.isBase64(raw) || import_ssi_types8.CredentialMapper.isCredential(rawDocument);
9320
- const isPresentation = import_ssi_types8.CredentialMapper.isPresentation(rawDocument);
8860
+ const hasProof = import_ssi_types7.CredentialMapper.hasProof(rawDocument);
8861
+ const isCredential = isHex(raw) || import_ssi_types7.ObjectUtils.isBase64(raw) || import_ssi_types7.CredentialMapper.isCredential(rawDocument);
8862
+ const isPresentation = import_ssi_types7.CredentialMapper.isPresentation(rawDocument);
9321
8863
  if (isCredential) {
9322
- return hasProof || isHex(raw) || import_ssi_types8.ObjectUtils.isBase64(raw) ? DocumentType.VC : DocumentType.C;
8864
+ return hasProof || isHex(raw) || import_ssi_types7.ObjectUtils.isBase64(raw) ? DocumentType.VC : DocumentType.C;
9323
8865
  } else if (isPresentation) {
9324
8866
  return hasProof ? DocumentType.VP : DocumentType.P;
9325
8867
  }
@@ -9331,9 +8873,9 @@ function isHex(input) {
9331
8873
  }
9332
8874
  __name(isHex, "isHex");
9333
8875
  function parseRawDocument(raw) {
9334
- if (isHex(raw) || import_ssi_types8.ObjectUtils.isBase64(raw)) {
8876
+ if (isHex(raw) || import_ssi_types7.ObjectUtils.isBase64(raw)) {
9335
8877
  return raw;
9336
- } else if (import_ssi_types8.CredentialMapper.isJwtEncoded(raw) || import_ssi_types8.CredentialMapper.isSdJwtEncoded(raw)) {
8878
+ } else if (import_ssi_types7.CredentialMapper.isJwtEncoded(raw) || import_ssi_types7.CredentialMapper.isSdJwtEncoded(raw)) {
9337
8879
  return raw;
9338
8880
  }
9339
8881
  try {
@@ -9345,9 +8887,9 @@ function parseRawDocument(raw) {
9345
8887
  __name(parseRawDocument, "parseRawDocument");
9346
8888
  function ensureRawDocument(input) {
9347
8889
  if (typeof input === "string") {
9348
- if (isHex(input) || import_ssi_types8.ObjectUtils.isBase64(input)) {
8890
+ if (isHex(input) || import_ssi_types7.ObjectUtils.isBase64(input)) {
9349
8891
  return input;
9350
- } else if (import_ssi_types8.CredentialMapper.isJwtEncoded(input) || import_ssi_types8.CredentialMapper.isSdJwtEncoded(input)) {
8892
+ } else if (import_ssi_types7.CredentialMapper.isJwtEncoded(input) || import_ssi_types7.CredentialMapper.isSdJwtEncoded(input)) {
9351
8893
  return input;
9352
8894
  }
9353
8895
  throw Error("Unknown input to be mapped as rawDocument");
@@ -9361,13 +8903,13 @@ function ensureRawDocument(input) {
9361
8903
  __name(ensureRawDocument, "ensureRawDocument");
9362
8904
  function determineCredentialDocumentFormat(documentFormat) {
9363
8905
  switch (documentFormat) {
9364
- case import_ssi_types8.DocumentFormat.JSONLD:
8906
+ case import_ssi_types7.DocumentFormat.JSONLD:
9365
8907
  return CredentialDocumentFormat.JSON_LD;
9366
- case import_ssi_types8.DocumentFormat.JWT:
8908
+ case import_ssi_types7.DocumentFormat.JWT:
9367
8909
  return CredentialDocumentFormat.JWT;
9368
- case import_ssi_types8.DocumentFormat.SD_JWT_VC:
8910
+ case import_ssi_types7.DocumentFormat.SD_JWT_VC:
9369
8911
  return CredentialDocumentFormat.SD_JWT;
9370
- case import_ssi_types8.DocumentFormat.MSO_MDOC:
8912
+ case import_ssi_types7.DocumentFormat.MSO_MDOC:
9371
8913
  return CredentialDocumentFormat.MSO_MDOC;
9372
8914
  default:
9373
8915
  throw new Error(`Not supported document format: ${documentFormat}`);
@@ -9406,14 +8948,14 @@ var safeStringify = /* @__PURE__ */ __name((object) => {
9406
8948
  }, "safeStringify");
9407
8949
  var nonPersistedDigitalCredentialEntityFromAddArgs = /* @__PURE__ */ __name((addCredentialArgs) => {
9408
8950
  const documentType = determineDocumentType(addCredentialArgs.rawDocument);
9409
- const documentFormat = import_ssi_types8.CredentialMapper.detectDocumentType(addCredentialArgs.rawDocument);
8951
+ const documentFormat = import_ssi_types7.CredentialMapper.detectDocumentType(addCredentialArgs.rawDocument);
9410
8952
  const hasher = addCredentialArgs?.opts?.hasher ?? import_ssi_sdk23.defaultHasher;
9411
- if (documentFormat === import_ssi_types8.DocumentFormat.SD_JWT_VC && !addCredentialArgs.opts?.hasher) {
8953
+ if (documentFormat === import_ssi_types7.DocumentFormat.SD_JWT_VC && !addCredentialArgs.opts?.hasher) {
9412
8954
  throw new Error("No hasher function is provided for SD_JWT credential.");
9413
8955
  }
9414
- const uniformDocument = documentType === DocumentType.VC || documentType === DocumentType.C ? import_ssi_types8.CredentialMapper.toUniformCredential(addCredentialArgs.rawDocument, {
8956
+ const uniformDocument = documentType === DocumentType.VC || documentType === DocumentType.C ? import_ssi_types7.CredentialMapper.toUniformCredential(addCredentialArgs.rawDocument, {
9415
8957
  hasher
9416
- }) : import_ssi_types8.CredentialMapper.toUniformPresentation(addCredentialArgs.rawDocument, {
8958
+ }) : import_ssi_types7.CredentialMapper.toUniformPresentation(addCredentialArgs.rawDocument, {
9417
8959
  hasher
9418
8960
  });
9419
8961
  const validFrom = getValidFrom(uniformDocument);
@@ -9487,8 +9029,6 @@ var DataStoreStatusListEntities = [
9487
9029
  StatusListEntity,
9488
9030
  StatusList2021Entity,
9489
9031
  OAuthStatusListEntity,
9490
- BitstringStatusListEntity,
9491
- BitstringStatusListEntryEntity,
9492
9032
  StatusListEntryEntity
9493
9033
  ];
9494
9034
  var DataStoreEventLoggerEntities = [