@sphereon/ssi-sdk.data-store 0.34.0 → 0.34.1-feature.SSISDK.17.bitstring.sl.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -41,6 +41,8 @@ __export(index_exports, {
41
41
  BaseConfigEntity: () => BaseConfigEntity,
42
42
  BaseContactEntity: () => BaseContactEntity,
43
43
  BaseLocaleBrandingEntity: () => BaseLocaleBrandingEntity,
44
+ BitstringStatusListEntity: () => BitstringStatusListEntity,
45
+ BitstringStatusListEntryEntity: () => BitstringStatusListEntryEntity,
44
46
  ConnectionEntity: () => ConnectionEntity,
45
47
  ConnectionType: () => ConnectionType,
46
48
  ContactMetadataItemEntity: () => ContactMetadataItemEntity,
@@ -2856,7 +2858,7 @@ IssuerLocaleBrandingEntity = _ts_decorate25([
2856
2858
 
2857
2859
  // src/entities/statusList/StatusListEntities.ts
2858
2860
  var import_ssi_types = require("@sphereon/ssi-types");
2859
- var import_typeorm26 = __toESM(require("typeorm"), 1);
2861
+ var import_typeorm27 = __toESM(require("typeorm"), 1);
2860
2862
 
2861
2863
  // src/entities/statusList/StatusList2021EntryEntity.ts
2862
2864
  var import_class_validator18 = require("class-validator");
@@ -2909,7 +2911,7 @@ _ts_decorate26([
2909
2911
  _ts_metadata25("design:type", Number)
2910
2912
  ], StatusListEntryEntity.prototype, "statusListIndex", void 0);
2911
2913
  _ts_decorate26([
2912
- (0, import_typeorm25.ManyToOne)(() => StatusListEntity, (statusList) => statusList.statusListEntries),
2914
+ (0, import_typeorm25.ManyToOne)(() => StatusList2021Entity, (statusList) => statusList.statusListEntries),
2913
2915
  (0, import_typeorm25.JoinColumn)({
2914
2916
  name: "statusListId"
2915
2917
  }),
@@ -2959,6 +2961,10 @@ StatusListEntryEntity = _ts_decorate26([
2959
2961
 
2960
2962
  // src/entities/statusList/StatusListEntities.ts
2961
2963
  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");
2962
2968
  function _ts_decorate27(decorators, target, key, desc) {
2963
2969
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2964
2970
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2970,8 +2976,162 @@ function _ts_metadata26(k, v) {
2970
2976
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2971
2977
  }
2972
2978
  __name(_ts_metadata26, "_ts_metadata");
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 {
2979
+ var BitstringStatusListEntryEntity = class extends import_typeorm26.BaseEntity {
2980
+ static {
2981
+ __name(this, "BitstringStatusListEntryEntity");
2982
+ }
2983
+ statusListId;
2984
+ statusListIndex;
2985
+ statusList;
2986
+ credentialId;
2987
+ credentialHash;
2988
+ entryCorrelationId;
2989
+ statusPurpose;
2990
+ bitsPerStatus;
2991
+ statusMessage;
2992
+ statusReference;
2993
+ };
2994
+ _ts_decorate27([
2995
+ (0, import_typeorm26.PrimaryColumn)({
2996
+ name: "statusListId",
2997
+ type: "varchar",
2998
+ nullable: false,
2999
+ unique: false
3000
+ }),
3001
+ (0, import_class_validator19.Validate)(IsNonEmptyStringConstraint, {
3002
+ message: "Status list id is required"
3003
+ }),
3004
+ _ts_metadata26("design:type", String)
3005
+ ], BitstringStatusListEntryEntity.prototype, "statusListId", void 0);
3006
+ _ts_decorate27([
3007
+ (0, import_typeorm26.PrimaryColumn)({
3008
+ name: "statusListIndex",
3009
+ type: "integer",
3010
+ nullable: false,
3011
+ unique: false
3012
+ }),
3013
+ _ts_metadata26("design:type", Number)
3014
+ ], BitstringStatusListEntryEntity.prototype, "statusListIndex", void 0);
3015
+ _ts_decorate27([
3016
+ (0, import_typeorm26.ManyToOne)(() => BitstringStatusListEntity, (statusList) => statusList.statusListEntries),
3017
+ (0, import_typeorm26.JoinColumn)({
3018
+ name: "statusListId"
3019
+ }),
3020
+ _ts_metadata26("design:type", typeof BitstringStatusListEntity === "undefined" ? Object : BitstringStatusListEntity)
3021
+ ], BitstringStatusListEntryEntity.prototype, "statusList", void 0);
3022
+ _ts_decorate27([
3023
+ (0, import_typeorm26.Column)({
3024
+ name: "credentialId",
3025
+ type: "text",
3026
+ nullable: true
3027
+ }),
3028
+ _ts_metadata26("design:type", String)
3029
+ ], BitstringStatusListEntryEntity.prototype, "credentialId", void 0);
3030
+ _ts_decorate27([
3031
+ (0, import_typeorm26.Column)({
3032
+ name: "credentialHash",
3033
+ length: 128,
3034
+ type: "varchar",
3035
+ nullable: true,
3036
+ unique: false
3037
+ }),
3038
+ _ts_metadata26("design:type", String)
3039
+ ], BitstringStatusListEntryEntity.prototype, "credentialHash", void 0);
3040
+ _ts_decorate27([
3041
+ (0, import_typeorm26.Column)({
3042
+ name: "correlationId",
3043
+ length: 255,
3044
+ type: "varchar",
3045
+ nullable: true,
3046
+ unique: false
3047
+ }),
3048
+ _ts_metadata26("design:type", String)
3049
+ ], BitstringStatusListEntryEntity.prototype, "entryCorrelationId", void 0);
3050
+ _ts_decorate27([
3051
+ (0, import_typeorm26.Column)({
3052
+ type: "varchar",
3053
+ name: "statusPurpose",
3054
+ nullable: false
3055
+ }),
3056
+ _ts_metadata26("design:type", String)
3057
+ ], BitstringStatusListEntryEntity.prototype, "statusPurpose", void 0);
3058
+ _ts_decorate27([
3059
+ (0, import_typeorm26.Column)({
3060
+ type: "integer",
3061
+ name: "bitsPerStatus",
3062
+ nullable: true,
3063
+ default: 1
3064
+ }),
3065
+ _ts_metadata26("design:type", Number)
3066
+ ], BitstringStatusListEntryEntity.prototype, "bitsPerStatus", void 0);
3067
+ _ts_decorate27([
3068
+ (0, import_typeorm26.Column)({
3069
+ type: "text",
3070
+ name: "statusMessage",
3071
+ nullable: true,
3072
+ transformer: {
3073
+ from(value) {
3074
+ if (!value) {
3075
+ return void 0;
3076
+ }
3077
+ return JSON.parse(value);
3078
+ },
3079
+ to(value) {
3080
+ if (!value) {
3081
+ return void 0;
3082
+ }
3083
+ return JSON.stringify(value);
3084
+ }
3085
+ }
3086
+ }),
3087
+ _ts_metadata26("design:type", typeof Array === "undefined" ? Object : Array)
3088
+ ], BitstringStatusListEntryEntity.prototype, "statusMessage", void 0);
3089
+ _ts_decorate27([
3090
+ (0, import_typeorm26.Column)({
3091
+ type: "text",
3092
+ name: "statusReference",
3093
+ nullable: true,
3094
+ transformer: {
3095
+ from(value) {
3096
+ if (!value) {
3097
+ return void 0;
3098
+ }
3099
+ if (value.startsWith("[")) {
3100
+ return JSON.parse(value);
3101
+ }
3102
+ return value;
3103
+ },
3104
+ to(value) {
3105
+ if (!value) {
3106
+ return void 0;
3107
+ }
3108
+ if (Array.isArray(value)) {
3109
+ return JSON.stringify(value);
3110
+ }
3111
+ return value;
3112
+ }
3113
+ }
3114
+ }),
3115
+ _ts_metadata26("design:type", Object)
3116
+ ], BitstringStatusListEntryEntity.prototype, "statusReference", void 0);
3117
+ BitstringStatusListEntryEntity = _ts_decorate27([
3118
+ (0, import_typeorm26.Entity)("BitstringStatusListEntry")
3119
+ ], BitstringStatusListEntryEntity);
3120
+
3121
+ // src/entities/statusList/StatusListEntities.ts
3122
+ function _ts_decorate28(decorators, target, key, desc) {
3123
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3124
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3125
+ 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;
3126
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
3127
+ }
3128
+ __name(_ts_decorate28, "_ts_decorate");
3129
+ function _ts_metadata27(k, v) {
3130
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3131
+ }
3132
+ __name(_ts_metadata27, "_ts_metadata");
3133
+ var { BaseEntity: BaseEntity21, ChildEntity: ChildEntity5, Column: Column25, Entity: Entity23, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn3, TableInheritance: TableInheritance4, Unique } = import_typeorm27.default;
3134
+ var StatusListEntity = class extends BaseEntity21 {
2975
3135
  static {
2976
3136
  __name(this, "StatusListEntity");
2977
3137
  }
@@ -2983,34 +3143,33 @@ var StatusListEntity = class extends BaseEntity20 {
2983
3143
  credentialIdMode;
2984
3144
  proofFormat;
2985
3145
  statusListCredential;
2986
- statusListEntries;
2987
3146
  };
2988
- _ts_decorate27([
2989
- PrimaryColumn2({
3147
+ _ts_decorate28([
3148
+ PrimaryColumn3({
2990
3149
  name: "id",
2991
3150
  type: "varchar"
2992
3151
  }),
2993
- _ts_metadata26("design:type", String)
3152
+ _ts_metadata27("design:type", String)
2994
3153
  ], StatusListEntity.prototype, "id", void 0);
2995
- _ts_decorate27([
2996
- Column24({
3154
+ _ts_decorate28([
3155
+ Column25({
2997
3156
  name: "correlationId",
2998
3157
  type: "varchar",
2999
3158
  nullable: false
3000
3159
  }),
3001
- _ts_metadata26("design:type", String)
3160
+ _ts_metadata27("design:type", String)
3002
3161
  ], StatusListEntity.prototype, "correlationId", void 0);
3003
- _ts_decorate27([
3004
- Column24({
3162
+ _ts_decorate28([
3163
+ Column25({
3005
3164
  name: "length",
3006
3165
  type: "integer",
3007
3166
  nullable: false,
3008
3167
  unique: false
3009
3168
  }),
3010
- _ts_metadata26("design:type", Number)
3169
+ _ts_metadata27("design:type", Number)
3011
3170
  ], StatusListEntity.prototype, "length", void 0);
3012
- _ts_decorate27([
3013
- Column24({
3171
+ _ts_decorate28([
3172
+ Column25({
3014
3173
  name: "issuer",
3015
3174
  type: "text",
3016
3175
  nullable: false,
@@ -3030,28 +3189,28 @@ _ts_decorate27([
3030
3189
  }
3031
3190
  }
3032
3191
  }),
3033
- _ts_metadata26("design:type", Object)
3192
+ _ts_metadata27("design:type", Object)
3034
3193
  ], StatusListEntity.prototype, "issuer", void 0);
3035
- _ts_decorate27([
3036
- Column24("simple-enum", {
3194
+ _ts_decorate28([
3195
+ Column25("simple-enum", {
3037
3196
  name: "driverType",
3038
3197
  enum: import_ssi_types.StatusListDriverType,
3039
3198
  nullable: false,
3040
3199
  default: import_ssi_types.StatusListDriverType.AGENT_TYPEORM
3041
3200
  }),
3042
- _ts_metadata26("design:type", typeof import_ssi_types.StatusListDriverType === "undefined" ? Object : import_ssi_types.StatusListDriverType)
3201
+ _ts_metadata27("design:type", typeof import_ssi_types.StatusListDriverType === "undefined" ? Object : import_ssi_types.StatusListDriverType)
3043
3202
  ], StatusListEntity.prototype, "driverType", void 0);
3044
- _ts_decorate27([
3045
- Column24("simple-enum", {
3203
+ _ts_decorate28([
3204
+ Column25("simple-enum", {
3046
3205
  name: "credentialIdMode",
3047
3206
  enum: import_ssi_types.StatusListCredentialIdMode,
3048
3207
  nullable: false,
3049
3208
  default: import_ssi_types.StatusListCredentialIdMode.ISSUANCE
3050
3209
  }),
3051
- _ts_metadata26("design:type", typeof import_ssi_types.StatusListCredentialIdMode === "undefined" ? Object : import_ssi_types.StatusListCredentialIdMode)
3210
+ _ts_metadata27("design:type", typeof import_ssi_types.StatusListCredentialIdMode === "undefined" ? Object : import_ssi_types.StatusListCredentialIdMode)
3052
3211
  ], StatusListEntity.prototype, "credentialIdMode", void 0);
3053
- _ts_decorate27([
3054
- Column24({
3212
+ _ts_decorate28([
3213
+ Column25({
3055
3214
  type: "varchar",
3056
3215
  name: "proofFormat",
3057
3216
  enum: [
@@ -3061,10 +3220,10 @@ _ts_decorate27([
3061
3220
  nullable: false,
3062
3221
  default: "lds"
3063
3222
  }),
3064
- _ts_metadata26("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
3223
+ _ts_metadata27("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
3065
3224
  ], StatusListEntity.prototype, "proofFormat", void 0);
3066
- _ts_decorate27([
3067
- Column24({
3225
+ _ts_decorate28([
3226
+ Column25({
3068
3227
  name: "statusListCredential",
3069
3228
  type: "text",
3070
3229
  nullable: true,
@@ -3084,14 +3243,10 @@ _ts_decorate27([
3084
3243
  }
3085
3244
  }
3086
3245
  }),
3087
- _ts_metadata26("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
3246
+ _ts_metadata27("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
3088
3247
  ], StatusListEntity.prototype, "statusListCredential", void 0);
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"),
3248
+ StatusListEntity = _ts_decorate28([
3249
+ Entity23("StatusList"),
3095
3250
  Unique("UQ_correlationId", [
3096
3251
  "correlationId"
3097
3252
  ]),
@@ -3109,9 +3264,10 @@ var StatusList2021Entity = class extends StatusListEntity {
3109
3264
  }
3110
3265
  indexingDirection;
3111
3266
  statusPurpose;
3267
+ statusListEntries;
3112
3268
  };
3113
- _ts_decorate27([
3114
- Column24({
3269
+ _ts_decorate28([
3270
+ Column25({
3115
3271
  type: "varchar",
3116
3272
  name: "indexingDirection",
3117
3273
  enum: [
@@ -3120,18 +3276,22 @@ _ts_decorate27([
3120
3276
  nullable: false,
3121
3277
  default: "rightToLeft"
3122
3278
  }),
3123
- _ts_metadata26("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
3279
+ _ts_metadata27("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
3124
3280
  ], StatusList2021Entity.prototype, "indexingDirection", void 0);
3125
- _ts_decorate27([
3126
- Column24({
3281
+ _ts_decorate28([
3282
+ Column25({
3127
3283
  type: "varchar",
3128
3284
  name: "statusPurpose",
3129
3285
  nullable: false,
3130
3286
  default: "revocation"
3131
3287
  }),
3132
- _ts_metadata26("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
3288
+ _ts_metadata27("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
3133
3289
  ], StatusList2021Entity.prototype, "statusPurpose", void 0);
3134
- StatusList2021Entity = _ts_decorate27([
3290
+ _ts_decorate28([
3291
+ OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
3292
+ _ts_metadata27("design:type", Array)
3293
+ ], StatusList2021Entity.prototype, "statusListEntries", void 0);
3294
+ StatusList2021Entity = _ts_decorate28([
3135
3295
  ChildEntity5(import_ssi_types.StatusListType.StatusList2021)
3136
3296
  ], StatusList2021Entity);
3137
3297
  var OAuthStatusListEntity = class extends StatusListEntity {
@@ -3141,41 +3301,113 @@ var OAuthStatusListEntity = class extends StatusListEntity {
3141
3301
  bitsPerStatus;
3142
3302
  expiresAt;
3143
3303
  };
3144
- _ts_decorate27([
3145
- Column24({
3304
+ _ts_decorate28([
3305
+ Column25({
3146
3306
  type: "integer",
3147
3307
  name: "bitsPerStatus",
3148
3308
  nullable: false
3149
3309
  }),
3150
- _ts_metadata26("design:type", Number)
3310
+ _ts_metadata27("design:type", Number)
3151
3311
  ], OAuthStatusListEntity.prototype, "bitsPerStatus", void 0);
3152
- _ts_decorate27([
3153
- Column24({
3312
+ _ts_decorate28([
3313
+ Column25({
3154
3314
  name: "expiresAt",
3155
3315
  nullable: true,
3156
3316
  type: (0, import_ssi_sdk13.typeOrmDateTime)()
3157
3317
  }),
3158
- _ts_metadata26("design:type", typeof Date === "undefined" ? Object : Date)
3318
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3159
3319
  ], OAuthStatusListEntity.prototype, "expiresAt", void 0);
3160
- OAuthStatusListEntity = _ts_decorate27([
3320
+ OAuthStatusListEntity = _ts_decorate28([
3161
3321
  ChildEntity5(import_ssi_types.StatusListType.OAuthStatusList)
3162
3322
  ], OAuthStatusListEntity);
3323
+ var BitstringStatusListEntity = class extends StatusListEntity {
3324
+ static {
3325
+ __name(this, "BitstringStatusListEntity");
3326
+ }
3327
+ statusPurpose;
3328
+ bitsPerStatus;
3329
+ validFrom;
3330
+ validUntil;
3331
+ ttl;
3332
+ statusListEntries;
3333
+ };
3334
+ _ts_decorate28([
3335
+ Column25({
3336
+ type: "varchar",
3337
+ name: "statusPurpose",
3338
+ nullable: false,
3339
+ transformer: {
3340
+ from(value) {
3341
+ if (value?.includes(",")) {
3342
+ return value.split(",").map((v) => v.trim());
3343
+ }
3344
+ return value;
3345
+ },
3346
+ to(value) {
3347
+ if (Array.isArray(value)) {
3348
+ return value.join(",");
3349
+ }
3350
+ return value;
3351
+ }
3352
+ }
3353
+ }),
3354
+ _ts_metadata27("design:type", Object)
3355
+ ], BitstringStatusListEntity.prototype, "statusPurpose", void 0);
3356
+ _ts_decorate28([
3357
+ Column25({
3358
+ type: "integer",
3359
+ name: "bitsPerStatus",
3360
+ nullable: false
3361
+ }),
3362
+ _ts_metadata27("design:type", Number)
3363
+ ], BitstringStatusListEntity.prototype, "bitsPerStatus", void 0);
3364
+ _ts_decorate28([
3365
+ Column25({
3366
+ name: "validFrom",
3367
+ nullable: true,
3368
+ type: (0, import_ssi_sdk13.typeOrmDateTime)()
3369
+ }),
3370
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3371
+ ], BitstringStatusListEntity.prototype, "validFrom", void 0);
3372
+ _ts_decorate28([
3373
+ Column25({
3374
+ name: "validUntil",
3375
+ nullable: true,
3376
+ type: (0, import_ssi_sdk13.typeOrmDateTime)()
3377
+ }),
3378
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3379
+ ], BitstringStatusListEntity.prototype, "validUntil", void 0);
3380
+ _ts_decorate28([
3381
+ Column25({
3382
+ type: "integer",
3383
+ name: "ttl",
3384
+ nullable: true
3385
+ }),
3386
+ _ts_metadata27("design:type", Number)
3387
+ ], BitstringStatusListEntity.prototype, "ttl", void 0);
3388
+ _ts_decorate28([
3389
+ OneToMany8((type) => BitstringStatusListEntryEntity, (entry) => entry.statusList),
3390
+ _ts_metadata27("design:type", Array)
3391
+ ], BitstringStatusListEntity.prototype, "statusListEntries", void 0);
3392
+ BitstringStatusListEntity = _ts_decorate28([
3393
+ ChildEntity5(import_ssi_types.StatusListType.BitstringStatusList)
3394
+ ], BitstringStatusListEntity);
3163
3395
 
3164
3396
  // src/entities/machineState/MachineStateInfoEntity.ts
3165
- var import_typeorm27 = require("typeorm");
3397
+ var import_typeorm28 = require("typeorm");
3166
3398
  var import_ssi_sdk14 = require("@sphereon/ssi-sdk.agent-config");
3167
- function _ts_decorate28(decorators, target, key, desc) {
3399
+ function _ts_decorate29(decorators, target, key, desc) {
3168
3400
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3169
3401
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3170
3402
  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;
3171
3403
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3172
3404
  }
3173
- __name(_ts_decorate28, "_ts_decorate");
3174
- function _ts_metadata27(k, v) {
3405
+ __name(_ts_decorate29, "_ts_decorate");
3406
+ function _ts_metadata28(k, v) {
3175
3407
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3176
3408
  }
3177
- __name(_ts_metadata27, "_ts_metadata");
3178
- var MachineStateInfoEntity = class extends import_typeorm27.BaseEntity {
3409
+ __name(_ts_metadata28, "_ts_metadata");
3410
+ var MachineStateInfoEntity = class extends import_typeorm28.BaseEntity {
3179
3411
  static {
3180
3412
  __name(this, "MachineStateInfoEntity");
3181
3413
  }
@@ -3193,120 +3425,120 @@ var MachineStateInfoEntity = class extends import_typeorm27.BaseEntity {
3193
3425
  completedAt;
3194
3426
  tenantId;
3195
3427
  };
3196
- _ts_decorate28([
3197
- (0, import_typeorm27.PrimaryColumn)({
3428
+ _ts_decorate29([
3429
+ (0, import_typeorm28.PrimaryColumn)({
3198
3430
  name: "instance_id",
3199
3431
  type: "varchar",
3200
3432
  nullable: false
3201
3433
  }),
3202
- _ts_metadata27("design:type", String)
3434
+ _ts_metadata28("design:type", String)
3203
3435
  ], MachineStateInfoEntity.prototype, "instanceId", void 0);
3204
- _ts_decorate28([
3205
- (0, import_typeorm27.Column)({
3436
+ _ts_decorate29([
3437
+ (0, import_typeorm28.Column)({
3206
3438
  name: "session_id",
3207
3439
  type: "varchar",
3208
3440
  nullable: true
3209
3441
  }),
3210
- _ts_metadata27("design:type", String)
3442
+ _ts_metadata28("design:type", String)
3211
3443
  ], MachineStateInfoEntity.prototype, "sessionId", void 0);
3212
- _ts_decorate28([
3213
- (0, import_typeorm27.Column)({
3444
+ _ts_decorate29([
3445
+ (0, import_typeorm28.Column)({
3214
3446
  name: "machine_name",
3215
3447
  type: "varchar",
3216
3448
  nullable: false
3217
3449
  }),
3218
- _ts_metadata27("design:type", String)
3450
+ _ts_metadata28("design:type", String)
3219
3451
  ], MachineStateInfoEntity.prototype, "machineName", void 0);
3220
- _ts_decorate28([
3221
- (0, import_typeorm27.Column)({
3452
+ _ts_decorate29([
3453
+ (0, import_typeorm28.Column)({
3222
3454
  name: "latest_state_name",
3223
3455
  type: "varchar",
3224
3456
  nullable: true
3225
3457
  }),
3226
- _ts_metadata27("design:type", String)
3458
+ _ts_metadata28("design:type", String)
3227
3459
  ], MachineStateInfoEntity.prototype, "latestStateName", void 0);
3228
- _ts_decorate28([
3229
- (0, import_typeorm27.Column)({
3460
+ _ts_decorate29([
3461
+ (0, import_typeorm28.Column)({
3230
3462
  name: "latest_event_type",
3231
3463
  type: "varchar",
3232
3464
  nullable: false
3233
3465
  }),
3234
- _ts_metadata27("design:type", String)
3466
+ _ts_metadata28("design:type", String)
3235
3467
  ], MachineStateInfoEntity.prototype, "latestEventType", void 0);
3236
- _ts_decorate28([
3237
- (0, import_typeorm27.Column)({
3468
+ _ts_decorate29([
3469
+ (0, import_typeorm28.Column)({
3238
3470
  name: "state",
3239
3471
  type: "text",
3240
3472
  nullable: false
3241
3473
  }),
3242
- _ts_metadata27("design:type", String)
3474
+ _ts_metadata28("design:type", String)
3243
3475
  ], MachineStateInfoEntity.prototype, "state", void 0);
3244
- _ts_decorate28([
3245
- (0, import_typeorm27.CreateDateColumn)({
3476
+ _ts_decorate29([
3477
+ (0, import_typeorm28.CreateDateColumn)({
3246
3478
  name: "created_at",
3247
3479
  nullable: false,
3248
3480
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3249
3481
  }),
3250
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3482
+ _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3251
3483
  ], MachineStateInfoEntity.prototype, "createdAt", void 0);
3252
- _ts_decorate28([
3253
- (0, import_typeorm27.UpdateDateColumn)({
3484
+ _ts_decorate29([
3485
+ (0, import_typeorm28.UpdateDateColumn)({
3254
3486
  name: "updated_at",
3255
3487
  nullable: false,
3256
3488
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3257
3489
  }),
3258
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3490
+ _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3259
3491
  ], MachineStateInfoEntity.prototype, "updatedAt", void 0);
3260
- _ts_decorate28([
3261
- (0, import_typeorm27.Column)({
3492
+ _ts_decorate29([
3493
+ (0, import_typeorm28.Column)({
3262
3494
  name: "updated_count",
3263
3495
  type: "integer",
3264
3496
  nullable: false
3265
3497
  }),
3266
- _ts_metadata27("design:type", Number)
3498
+ _ts_metadata28("design:type", Number)
3267
3499
  ], MachineStateInfoEntity.prototype, "updatedCount", void 0);
3268
- _ts_decorate28([
3269
- (0, import_typeorm27.Column)({
3500
+ _ts_decorate29([
3501
+ (0, import_typeorm28.Column)({
3270
3502
  name: "expires_at",
3271
3503
  nullable: true,
3272
3504
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3273
3505
  }),
3274
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3506
+ _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3275
3507
  ], MachineStateInfoEntity.prototype, "expiresAt", void 0);
3276
- _ts_decorate28([
3277
- (0, import_typeorm27.Column)({
3508
+ _ts_decorate29([
3509
+ (0, import_typeorm28.Column)({
3278
3510
  name: "completed_at",
3279
3511
  nullable: true,
3280
3512
  type: (0, import_ssi_sdk14.typeOrmDateTime)()
3281
3513
  }),
3282
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3514
+ _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3283
3515
  ], MachineStateInfoEntity.prototype, "completedAt", void 0);
3284
- _ts_decorate28([
3285
- (0, import_typeorm27.Column)({
3516
+ _ts_decorate29([
3517
+ (0, import_typeorm28.Column)({
3286
3518
  name: "tenant_id",
3287
3519
  type: "varchar",
3288
3520
  nullable: true
3289
3521
  }),
3290
- _ts_metadata27("design:type", String)
3522
+ _ts_metadata28("design:type", String)
3291
3523
  ], MachineStateInfoEntity.prototype, "tenantId", void 0);
3292
- MachineStateInfoEntity = _ts_decorate28([
3293
- (0, import_typeorm27.Entity)("MachineStateInfoEntity")
3524
+ MachineStateInfoEntity = _ts_decorate29([
3525
+ (0, import_typeorm28.Entity)("MachineStateInfoEntity")
3294
3526
  ], MachineStateInfoEntity);
3295
3527
 
3296
3528
  // src/entities/contact/OrganizationEntity.ts
3297
- var import_class_validator19 = require("class-validator");
3298
- var import_typeorm28 = require("typeorm");
3299
- function _ts_decorate29(decorators, target, key, desc) {
3529
+ var import_class_validator20 = require("class-validator");
3530
+ var import_typeorm29 = require("typeorm");
3531
+ function _ts_decorate30(decorators, target, key, desc) {
3300
3532
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3301
3533
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3302
3534
  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;
3303
3535
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3304
3536
  }
3305
- __name(_ts_decorate29, "_ts_decorate");
3306
- function _ts_metadata28(k, v) {
3537
+ __name(_ts_decorate30, "_ts_decorate");
3538
+ function _ts_metadata29(k, v) {
3307
3539
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3308
3540
  }
3309
- __name(_ts_metadata28, "_ts_metadata");
3541
+ __name(_ts_metadata29, "_ts_metadata");
3310
3542
  var OrganizationEntity = class extends BaseContactEntity {
3311
3543
  static {
3312
3544
  __name(this, "OrganizationEntity");
@@ -3316,7 +3548,7 @@ var OrganizationEntity = class extends BaseContactEntity {
3316
3548
  ownerId;
3317
3549
  tenantId;
3318
3550
  async validate() {
3319
- const validation = await (0, import_class_validator19.validate)(this);
3551
+ const validation = await (0, import_class_validator20.validate)(this);
3320
3552
  if (validation.length > 0) {
3321
3553
  const constraint = getConstraint(validation[0]);
3322
3554
  if (constraint) {
@@ -3326,69 +3558,69 @@ var OrganizationEntity = class extends BaseContactEntity {
3326
3558
  }
3327
3559
  }
3328
3560
  };
3329
- _ts_decorate29([
3330
- (0, import_typeorm28.Column)("varchar", {
3561
+ _ts_decorate30([
3562
+ (0, import_typeorm29.Column)("varchar", {
3331
3563
  name: "legal_name",
3332
3564
  length: 255,
3333
3565
  nullable: false,
3334
3566
  unique: true
3335
3567
  }),
3336
- (0, import_class_validator19.IsNotEmpty)({
3568
+ (0, import_class_validator20.IsNotEmpty)({
3337
3569
  message: "Blank legal names are not allowed"
3338
3570
  }),
3339
- _ts_metadata28("design:type", String)
3571
+ _ts_metadata29("design:type", String)
3340
3572
  ], OrganizationEntity.prototype, "legalName", void 0);
3341
- _ts_decorate29([
3342
- (0, import_typeorm28.Column)("varchar", {
3573
+ _ts_decorate30([
3574
+ (0, import_typeorm29.Column)("varchar", {
3343
3575
  name: "display_name",
3344
3576
  length: 255,
3345
3577
  nullable: false,
3346
3578
  unique: false
3347
3579
  }),
3348
- (0, import_class_validator19.IsNotEmpty)({
3580
+ (0, import_class_validator20.IsNotEmpty)({
3349
3581
  message: "Blank display names are not allowed"
3350
3582
  }),
3351
- _ts_metadata28("design:type", String)
3583
+ _ts_metadata29("design:type", String)
3352
3584
  ], OrganizationEntity.prototype, "displayName", void 0);
3353
- _ts_decorate29([
3354
- (0, import_typeorm28.Column)("text", {
3585
+ _ts_decorate30([
3586
+ (0, import_typeorm29.Column)("text", {
3355
3587
  name: "owner_id",
3356
3588
  nullable: true
3357
3589
  }),
3358
- _ts_metadata28("design:type", String)
3590
+ _ts_metadata29("design:type", String)
3359
3591
  ], OrganizationEntity.prototype, "ownerId", void 0);
3360
- _ts_decorate29([
3361
- (0, import_typeorm28.Column)("text", {
3592
+ _ts_decorate30([
3593
+ (0, import_typeorm29.Column)("text", {
3362
3594
  name: "tenant_id",
3363
3595
  nullable: true
3364
3596
  }),
3365
- _ts_metadata28("design:type", String)
3597
+ _ts_metadata29("design:type", String)
3366
3598
  ], OrganizationEntity.prototype, "tenantId", void 0);
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)
3599
+ _ts_decorate30([
3600
+ (0, import_typeorm29.BeforeInsert)(),
3601
+ (0, import_typeorm29.BeforeUpdate)(),
3602
+ _ts_metadata29("design:type", Function),
3603
+ _ts_metadata29("design:paramtypes", []),
3604
+ _ts_metadata29("design:returntype", Promise)
3373
3605
  ], OrganizationEntity.prototype, "validate", null);
3374
- OrganizationEntity = _ts_decorate29([
3375
- (0, import_typeorm28.ChildEntity)("Organization")
3606
+ OrganizationEntity = _ts_decorate30([
3607
+ (0, import_typeorm29.ChildEntity)("Organization")
3376
3608
  ], OrganizationEntity);
3377
3609
 
3378
3610
  // src/entities/contact/NaturalPersonEntity.ts
3379
- var import_typeorm29 = require("typeorm");
3380
- var import_class_validator20 = require("class-validator");
3381
- function _ts_decorate30(decorators, target, key, desc) {
3611
+ var import_typeorm30 = require("typeorm");
3612
+ var import_class_validator21 = require("class-validator");
3613
+ function _ts_decorate31(decorators, target, key, desc) {
3382
3614
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3383
3615
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3384
3616
  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;
3385
3617
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3386
3618
  }
3387
- __name(_ts_decorate30, "_ts_decorate");
3388
- function _ts_metadata29(k, v) {
3619
+ __name(_ts_decorate31, "_ts_decorate");
3620
+ function _ts_metadata30(k, v) {
3389
3621
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3390
3622
  }
3391
- __name(_ts_metadata29, "_ts_metadata");
3623
+ __name(_ts_metadata30, "_ts_metadata");
3392
3624
  var NaturalPersonEntity = class extends BaseContactEntity {
3393
3625
  static {
3394
3626
  __name(this, "NaturalPersonEntity");
@@ -3400,7 +3632,7 @@ var NaturalPersonEntity = class extends BaseContactEntity {
3400
3632
  ownerId;
3401
3633
  tenantId;
3402
3634
  async validate() {
3403
- const validation = await (0, import_class_validator20.validate)(this);
3635
+ const validation = await (0, import_class_validator21.validate)(this);
3404
3636
  if (validation.length > 0) {
3405
3637
  const constraint = getConstraint(validation[0]);
3406
3638
  if (constraint) {
@@ -3410,96 +3642,96 @@ var NaturalPersonEntity = class extends BaseContactEntity {
3410
3642
  }
3411
3643
  }
3412
3644
  };
3413
- _ts_decorate30([
3414
- (0, import_typeorm29.Column)("varchar", {
3645
+ _ts_decorate31([
3646
+ (0, import_typeorm30.Column)("varchar", {
3415
3647
  name: "first_name",
3416
3648
  length: 255,
3417
3649
  nullable: false,
3418
3650
  unique: false
3419
3651
  }),
3420
- (0, import_class_validator20.IsNotEmpty)({
3652
+ (0, import_class_validator21.IsNotEmpty)({
3421
3653
  message: "Blank first names are not allowed"
3422
3654
  }),
3423
- _ts_metadata29("design:type", String)
3655
+ _ts_metadata30("design:type", String)
3424
3656
  ], NaturalPersonEntity.prototype, "firstName", void 0);
3425
- _ts_decorate30([
3426
- (0, import_typeorm29.Column)("varchar", {
3657
+ _ts_decorate31([
3658
+ (0, import_typeorm30.Column)("varchar", {
3427
3659
  name: "middle_name",
3428
3660
  length: 255,
3429
3661
  nullable: true,
3430
3662
  unique: false
3431
3663
  }),
3432
- (0, import_class_validator20.Validate)(IsNonEmptyStringConstraint, {
3664
+ (0, import_class_validator21.Validate)(IsNonEmptyStringConstraint, {
3433
3665
  message: "Blank middle names are not allowed"
3434
3666
  }),
3435
- _ts_metadata29("design:type", String)
3667
+ _ts_metadata30("design:type", String)
3436
3668
  ], NaturalPersonEntity.prototype, "middleName", void 0);
3437
- _ts_decorate30([
3438
- (0, import_typeorm29.Column)("varchar", {
3669
+ _ts_decorate31([
3670
+ (0, import_typeorm30.Column)("varchar", {
3439
3671
  name: "last_name",
3440
3672
  length: 255,
3441
3673
  nullable: false,
3442
3674
  unique: false
3443
3675
  }),
3444
- (0, import_class_validator20.IsNotEmpty)({
3676
+ (0, import_class_validator21.IsNotEmpty)({
3445
3677
  message: "Blank last names are not allowed"
3446
3678
  }),
3447
- _ts_metadata29("design:type", String)
3679
+ _ts_metadata30("design:type", String)
3448
3680
  ], NaturalPersonEntity.prototype, "lastName", void 0);
3449
- _ts_decorate30([
3450
- (0, import_typeorm29.Column)("varchar", {
3681
+ _ts_decorate31([
3682
+ (0, import_typeorm30.Column)("varchar", {
3451
3683
  name: "display_name",
3452
3684
  length: 255,
3453
3685
  nullable: false,
3454
3686
  unique: false
3455
3687
  }),
3456
- (0, import_class_validator20.IsNotEmpty)({
3688
+ (0, import_class_validator21.IsNotEmpty)({
3457
3689
  message: "Blank display names are not allowed"
3458
3690
  }),
3459
- _ts_metadata29("design:type", String)
3691
+ _ts_metadata30("design:type", String)
3460
3692
  ], NaturalPersonEntity.prototype, "displayName", void 0);
3461
- _ts_decorate30([
3462
- (0, import_typeorm29.Column)("text", {
3693
+ _ts_decorate31([
3694
+ (0, import_typeorm30.Column)("text", {
3463
3695
  name: "owner_id",
3464
3696
  nullable: true
3465
3697
  }),
3466
- _ts_metadata29("design:type", String)
3698
+ _ts_metadata30("design:type", String)
3467
3699
  ], NaturalPersonEntity.prototype, "ownerId", void 0);
3468
- _ts_decorate30([
3469
- (0, import_typeorm29.Column)("text", {
3700
+ _ts_decorate31([
3701
+ (0, import_typeorm30.Column)("text", {
3470
3702
  name: "tenant_id",
3471
3703
  nullable: true
3472
3704
  }),
3473
- _ts_metadata29("design:type", String)
3705
+ _ts_metadata30("design:type", String)
3474
3706
  ], NaturalPersonEntity.prototype, "tenantId", void 0);
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)
3707
+ _ts_decorate31([
3708
+ (0, import_typeorm30.BeforeInsert)(),
3709
+ (0, import_typeorm30.BeforeUpdate)(),
3710
+ _ts_metadata30("design:type", Function),
3711
+ _ts_metadata30("design:paramtypes", []),
3712
+ _ts_metadata30("design:returntype", Promise)
3481
3713
  ], NaturalPersonEntity.prototype, "validate", null);
3482
- NaturalPersonEntity = _ts_decorate30([
3483
- (0, import_typeorm29.ChildEntity)("NaturalPerson")
3714
+ NaturalPersonEntity = _ts_decorate31([
3715
+ (0, import_typeorm30.ChildEntity)("NaturalPerson")
3484
3716
  ], NaturalPersonEntity);
3485
3717
 
3486
3718
  // src/entities/eventLogger/AuditEventEntity.ts
3487
3719
  var import_ssi_types2 = require("@sphereon/ssi-types");
3488
3720
  var import_ssi_sdk15 = require("@sphereon/ssi-sdk.core");
3489
3721
  var import_ssi_sdk16 = require("@sphereon/ssi-sdk.agent-config");
3490
- var import_typeorm30 = require("typeorm");
3491
- function _ts_decorate31(decorators, target, key, desc) {
3722
+ var import_typeorm31 = require("typeorm");
3723
+ function _ts_decorate32(decorators, target, key, desc) {
3492
3724
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3493
3725
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3494
3726
  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;
3495
3727
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3496
3728
  }
3497
- __name(_ts_decorate31, "_ts_decorate");
3498
- function _ts_metadata30(k, v) {
3729
+ __name(_ts_decorate32, "_ts_decorate");
3730
+ function _ts_metadata31(k, v) {
3499
3731
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3500
3732
  }
3501
- __name(_ts_metadata30, "_ts_metadata");
3502
- var AuditEventEntity = class extends import_typeorm30.BaseEntity {
3733
+ __name(_ts_metadata31, "_ts_metadata");
3734
+ var AuditEventEntity = class extends import_typeorm31.BaseEntity {
3503
3735
  static {
3504
3736
  __name(this, "AuditEventEntity");
3505
3737
  }
@@ -3530,240 +3762,240 @@ var AuditEventEntity = class extends import_typeorm30.BaseEntity {
3530
3762
  createdAt;
3531
3763
  lastUpdatedAt;
3532
3764
  };
3533
- _ts_decorate31([
3534
- (0, import_typeorm30.PrimaryGeneratedColumn)("uuid"),
3535
- _ts_metadata30("design:type", String)
3765
+ _ts_decorate32([
3766
+ (0, import_typeorm31.PrimaryGeneratedColumn)("uuid"),
3767
+ _ts_metadata31("design:type", String)
3536
3768
  ], AuditEventEntity.prototype, "id", void 0);
3537
- _ts_decorate31([
3538
- (0, import_typeorm30.Column)({
3769
+ _ts_decorate32([
3770
+ (0, import_typeorm31.Column)({
3539
3771
  name: "timestamp",
3540
3772
  nullable: false,
3541
3773
  unique: false,
3542
3774
  type: (0, import_ssi_sdk16.typeOrmDateTime)()
3543
3775
  }),
3544
- _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3776
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3545
3777
  ], AuditEventEntity.prototype, "timestamp", void 0);
3546
- _ts_decorate31([
3547
- (0, import_typeorm30.Column)("simple-enum", {
3778
+ _ts_decorate32([
3779
+ (0, import_typeorm31.Column)("simple-enum", {
3548
3780
  name: "eventType",
3549
3781
  enum: import_ssi_types2.LoggingEventType,
3550
3782
  nullable: false,
3551
3783
  unique: false
3552
3784
  }),
3553
- _ts_metadata30("design:type", typeof import_ssi_types2.LoggingEventType === "undefined" ? Object : import_ssi_types2.LoggingEventType)
3785
+ _ts_metadata31("design:type", typeof import_ssi_types2.LoggingEventType === "undefined" ? Object : import_ssi_types2.LoggingEventType)
3554
3786
  ], AuditEventEntity.prototype, "type", void 0);
3555
- _ts_decorate31([
3556
- (0, import_typeorm30.Column)("simple-enum", {
3787
+ _ts_decorate32([
3788
+ (0, import_typeorm31.Column)("simple-enum", {
3557
3789
  name: "level",
3558
3790
  enum: import_ssi_types2.LogLevel,
3559
3791
  nullable: false,
3560
3792
  unique: false
3561
3793
  }),
3562
- _ts_metadata30("design:type", typeof import_ssi_types2.LogLevel === "undefined" ? Object : import_ssi_types2.LogLevel)
3794
+ _ts_metadata31("design:type", typeof import_ssi_types2.LogLevel === "undefined" ? Object : import_ssi_types2.LogLevel)
3563
3795
  ], AuditEventEntity.prototype, "level", void 0);
3564
- _ts_decorate31([
3565
- (0, import_typeorm30.Column)("text", {
3796
+ _ts_decorate32([
3797
+ (0, import_typeorm31.Column)("text", {
3566
3798
  name: "correlationId",
3567
3799
  nullable: false,
3568
3800
  unique: false
3569
3801
  }),
3570
- _ts_metadata30("design:type", String)
3802
+ _ts_metadata31("design:type", String)
3571
3803
  ], AuditEventEntity.prototype, "correlationId", void 0);
3572
- _ts_decorate31([
3573
- (0, import_typeorm30.Column)("simple-enum", {
3804
+ _ts_decorate32([
3805
+ (0, import_typeorm31.Column)("simple-enum", {
3574
3806
  name: "system",
3575
3807
  enum: import_ssi_types2.System,
3576
3808
  nullable: false,
3577
3809
  unique: false
3578
3810
  }),
3579
- _ts_metadata30("design:type", typeof import_ssi_types2.System === "undefined" ? Object : import_ssi_types2.System)
3811
+ _ts_metadata31("design:type", typeof import_ssi_types2.System === "undefined" ? Object : import_ssi_types2.System)
3580
3812
  ], AuditEventEntity.prototype, "system", void 0);
3581
- _ts_decorate31([
3582
- (0, import_typeorm30.Column)("simple-enum", {
3813
+ _ts_decorate32([
3814
+ (0, import_typeorm31.Column)("simple-enum", {
3583
3815
  name: "subSystemType",
3584
3816
  enum: import_ssi_types2.SubSystem,
3585
3817
  nullable: false,
3586
3818
  unique: false
3587
3819
  }),
3588
- _ts_metadata30("design:type", typeof import_ssi_types2.SubSystem === "undefined" ? Object : import_ssi_types2.SubSystem)
3820
+ _ts_metadata31("design:type", typeof import_ssi_types2.SubSystem === "undefined" ? Object : import_ssi_types2.SubSystem)
3589
3821
  ], AuditEventEntity.prototype, "subSystemType", void 0);
3590
- _ts_decorate31([
3591
- (0, import_typeorm30.Column)("simple-enum", {
3822
+ _ts_decorate32([
3823
+ (0, import_typeorm31.Column)("simple-enum", {
3592
3824
  name: "actionType",
3593
3825
  enum: import_ssi_types2.ActionType,
3594
3826
  nullable: false,
3595
3827
  unique: false
3596
3828
  }),
3597
- _ts_metadata30("design:type", typeof import_ssi_types2.ActionType === "undefined" ? Object : import_ssi_types2.ActionType)
3829
+ _ts_metadata31("design:type", typeof import_ssi_types2.ActionType === "undefined" ? Object : import_ssi_types2.ActionType)
3598
3830
  ], AuditEventEntity.prototype, "actionType", void 0);
3599
- _ts_decorate31([
3600
- (0, import_typeorm30.Column)({
3831
+ _ts_decorate32([
3832
+ (0, import_typeorm31.Column)({
3601
3833
  name: "actionSubType",
3602
3834
  type: "varchar",
3603
3835
  nullable: false,
3604
3836
  unique: false
3605
3837
  }),
3606
- _ts_metadata30("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
3838
+ _ts_metadata31("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
3607
3839
  ], AuditEventEntity.prototype, "actionSubType", void 0);
3608
- _ts_decorate31([
3609
- (0, import_typeorm30.Column)("simple-enum", {
3840
+ _ts_decorate32([
3841
+ (0, import_typeorm31.Column)("simple-enum", {
3610
3842
  name: "initiatorType",
3611
3843
  enum: import_ssi_types2.InitiatorType,
3612
3844
  nullable: false,
3613
3845
  unique: false
3614
3846
  }),
3615
- _ts_metadata30("design:type", typeof import_ssi_types2.InitiatorType === "undefined" ? Object : import_ssi_types2.InitiatorType)
3847
+ _ts_metadata31("design:type", typeof import_ssi_types2.InitiatorType === "undefined" ? Object : import_ssi_types2.InitiatorType)
3616
3848
  ], AuditEventEntity.prototype, "initiatorType", void 0);
3617
- _ts_decorate31([
3618
- (0, import_typeorm30.Column)("simple-enum", {
3849
+ _ts_decorate32([
3850
+ (0, import_typeorm31.Column)("simple-enum", {
3619
3851
  name: "systemCorrelationIdType",
3620
3852
  enum: import_ssi_types2.SystemCorrelationIdType,
3621
3853
  nullable: true,
3622
3854
  unique: false
3623
3855
  }),
3624
- _ts_metadata30("design:type", typeof import_ssi_types2.SystemCorrelationIdType === "undefined" ? Object : import_ssi_types2.SystemCorrelationIdType)
3856
+ _ts_metadata31("design:type", typeof import_ssi_types2.SystemCorrelationIdType === "undefined" ? Object : import_ssi_types2.SystemCorrelationIdType)
3625
3857
  ], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
3626
- _ts_decorate31([
3627
- (0, import_typeorm30.Column)("text", {
3858
+ _ts_decorate32([
3859
+ (0, import_typeorm31.Column)("text", {
3628
3860
  name: "systemCorrelationId",
3629
3861
  nullable: true,
3630
3862
  unique: false
3631
3863
  }),
3632
- _ts_metadata30("design:type", String)
3864
+ _ts_metadata31("design:type", String)
3633
3865
  ], AuditEventEntity.prototype, "systemCorrelationId", void 0);
3634
- _ts_decorate31([
3635
- (0, import_typeorm30.Column)("text", {
3866
+ _ts_decorate32([
3867
+ (0, import_typeorm31.Column)("text", {
3636
3868
  name: "systemAlias",
3637
3869
  nullable: true,
3638
3870
  unique: false
3639
3871
  }),
3640
- _ts_metadata30("design:type", String)
3872
+ _ts_metadata31("design:type", String)
3641
3873
  ], AuditEventEntity.prototype, "systemAlias", void 0);
3642
- _ts_decorate31([
3643
- (0, import_typeorm30.Column)("simple-enum", {
3874
+ _ts_decorate32([
3875
+ (0, import_typeorm31.Column)("simple-enum", {
3644
3876
  name: "partyCorrelationType",
3645
3877
  enum: import_ssi_sdk15.PartyCorrelationType,
3646
3878
  nullable: true,
3647
3879
  unique: false
3648
3880
  }),
3649
- _ts_metadata30("design:type", typeof import_ssi_sdk15.PartyCorrelationType === "undefined" ? Object : import_ssi_sdk15.PartyCorrelationType)
3881
+ _ts_metadata31("design:type", typeof import_ssi_sdk15.PartyCorrelationType === "undefined" ? Object : import_ssi_sdk15.PartyCorrelationType)
3650
3882
  ], AuditEventEntity.prototype, "partyCorrelationType", void 0);
3651
- _ts_decorate31([
3652
- (0, import_typeorm30.Column)("text", {
3883
+ _ts_decorate32([
3884
+ (0, import_typeorm31.Column)("text", {
3653
3885
  name: "partyCorrelationId",
3654
3886
  nullable: true,
3655
3887
  unique: false
3656
3888
  }),
3657
- _ts_metadata30("design:type", String)
3889
+ _ts_metadata31("design:type", String)
3658
3890
  ], AuditEventEntity.prototype, "partyCorrelationId", void 0);
3659
- _ts_decorate31([
3660
- (0, import_typeorm30.Column)("text", {
3891
+ _ts_decorate32([
3892
+ (0, import_typeorm31.Column)("text", {
3661
3893
  name: "partyAlias",
3662
3894
  nullable: true,
3663
3895
  unique: false
3664
3896
  }),
3665
- _ts_metadata30("design:type", String)
3897
+ _ts_metadata31("design:type", String)
3666
3898
  ], AuditEventEntity.prototype, "partyAlias", void 0);
3667
- _ts_decorate31([
3668
- (0, import_typeorm30.Column)("text", {
3899
+ _ts_decorate32([
3900
+ (0, import_typeorm31.Column)("text", {
3669
3901
  name: "description",
3670
3902
  nullable: false,
3671
3903
  unique: false
3672
3904
  }),
3673
- _ts_metadata30("design:type", String)
3905
+ _ts_metadata31("design:type", String)
3674
3906
  ], AuditEventEntity.prototype, "description", void 0);
3675
- _ts_decorate31([
3676
- (0, import_typeorm30.Column)("simple-enum", {
3907
+ _ts_decorate32([
3908
+ (0, import_typeorm31.Column)("simple-enum", {
3677
3909
  name: "credentialType",
3678
3910
  enum: import_ssi_sdk15.CredentialType,
3679
3911
  nullable: true,
3680
3912
  unique: false
3681
3913
  }),
3682
- _ts_metadata30("design:type", typeof import_ssi_sdk15.CredentialType === "undefined" ? Object : import_ssi_sdk15.CredentialType)
3914
+ _ts_metadata31("design:type", typeof import_ssi_sdk15.CredentialType === "undefined" ? Object : import_ssi_sdk15.CredentialType)
3683
3915
  ], AuditEventEntity.prototype, "credentialType", void 0);
3684
- _ts_decorate31([
3685
- (0, import_typeorm30.Column)("text", {
3916
+ _ts_decorate32([
3917
+ (0, import_typeorm31.Column)("text", {
3686
3918
  name: "credentialHash",
3687
3919
  nullable: true,
3688
3920
  unique: false
3689
3921
  }),
3690
- _ts_metadata30("design:type", String)
3922
+ _ts_metadata31("design:type", String)
3691
3923
  ], AuditEventEntity.prototype, "credentialHash", void 0);
3692
- _ts_decorate31([
3693
- (0, import_typeorm30.Column)("text", {
3924
+ _ts_decorate32([
3925
+ (0, import_typeorm31.Column)("text", {
3694
3926
  name: "parentCredentialHash",
3695
3927
  nullable: true,
3696
3928
  unique: false
3697
3929
  }),
3698
- _ts_metadata30("design:type", String)
3930
+ _ts_metadata31("design:type", String)
3699
3931
  ], AuditEventEntity.prototype, "parentCredentialHash", void 0);
3700
- _ts_decorate31([
3701
- (0, import_typeorm30.Column)("text", {
3932
+ _ts_decorate32([
3933
+ (0, import_typeorm31.Column)("text", {
3702
3934
  name: "originalCredential",
3703
3935
  nullable: true,
3704
3936
  unique: false
3705
3937
  }),
3706
- _ts_metadata30("design:type", String)
3938
+ _ts_metadata31("design:type", String)
3707
3939
  ], AuditEventEntity.prototype, "originalCredential", void 0);
3708
- _ts_decorate31([
3709
- (0, import_typeorm30.Column)("text", {
3940
+ _ts_decorate32([
3941
+ (0, import_typeorm31.Column)("text", {
3710
3942
  name: "sharePurpose",
3711
3943
  nullable: true,
3712
3944
  unique: false
3713
3945
  }),
3714
- _ts_metadata30("design:type", String)
3946
+ _ts_metadata31("design:type", String)
3715
3947
  ], AuditEventEntity.prototype, "sharePurpose", void 0);
3716
- _ts_decorate31([
3717
- (0, import_typeorm30.Column)("text", {
3948
+ _ts_decorate32([
3949
+ (0, import_typeorm31.Column)("text", {
3718
3950
  name: "data",
3719
3951
  nullable: true,
3720
3952
  unique: false
3721
3953
  }),
3722
- _ts_metadata30("design:type", String)
3954
+ _ts_metadata31("design:type", String)
3723
3955
  ], AuditEventEntity.prototype, "data", void 0);
3724
- _ts_decorate31([
3725
- (0, import_typeorm30.Column)("text", {
3956
+ _ts_decorate32([
3957
+ (0, import_typeorm31.Column)("text", {
3726
3958
  name: "diagnosticData",
3727
3959
  nullable: true,
3728
3960
  unique: false
3729
3961
  }),
3730
- _ts_metadata30("design:type", String)
3962
+ _ts_metadata31("design:type", String)
3731
3963
  ], AuditEventEntity.prototype, "diagnosticData", void 0);
3732
- _ts_decorate31([
3733
- (0, import_typeorm30.CreateDateColumn)({
3964
+ _ts_decorate32([
3965
+ (0, import_typeorm31.CreateDateColumn)({
3734
3966
  name: "created_at",
3735
3967
  nullable: false,
3736
3968
  type: (0, import_ssi_sdk16.typeOrmDateTime)()
3737
3969
  }),
3738
- _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3970
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3739
3971
  ], AuditEventEntity.prototype, "createdAt", void 0);
3740
- _ts_decorate31([
3741
- (0, import_typeorm30.UpdateDateColumn)({
3972
+ _ts_decorate32([
3973
+ (0, import_typeorm31.UpdateDateColumn)({
3742
3974
  name: "last_updated_at",
3743
3975
  nullable: false,
3744
3976
  type: (0, import_ssi_sdk16.typeOrmDateTime)()
3745
3977
  }),
3746
- _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3978
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3747
3979
  ], AuditEventEntity.prototype, "lastUpdatedAt", void 0);
3748
- AuditEventEntity = _ts_decorate31([
3749
- (0, import_typeorm30.Entity)("AuditEvents")
3980
+ AuditEventEntity = _ts_decorate32([
3981
+ (0, import_typeorm31.Entity)("AuditEvents")
3750
3982
  ], AuditEventEntity);
3751
3983
 
3752
3984
  // src/entities/digitalCredential/DigitalCredentialEntity.ts
3753
3985
  var import_ssi_sdk17 = require("@sphereon/ssi-sdk.agent-config");
3754
- var import_typeorm31 = require("typeorm");
3755
- function _ts_decorate32(decorators, target, key, desc) {
3986
+ var import_typeorm32 = require("typeorm");
3987
+ function _ts_decorate33(decorators, target, key, desc) {
3756
3988
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3757
3989
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3758
3990
  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;
3759
3991
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3760
3992
  }
3761
- __name(_ts_decorate32, "_ts_decorate");
3762
- function _ts_metadata31(k, v) {
3993
+ __name(_ts_decorate33, "_ts_decorate");
3994
+ function _ts_metadata32(k, v) {
3763
3995
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3764
3996
  }
3765
- __name(_ts_metadata31, "_ts_metadata");
3766
- var DigitalCredentialEntity = class extends import_typeorm31.BaseEntity {
3997
+ __name(_ts_metadata32, "_ts_metadata");
3998
+ var DigitalCredentialEntity = class extends import_typeorm32.BaseEntity {
3767
3999
  static {
3768
4000
  __name(this, "DigitalCredentialEntity");
3769
4001
  }
@@ -3796,236 +4028,236 @@ var DigitalCredentialEntity = class extends import_typeorm31.BaseEntity {
3796
4028
  verifiedAt;
3797
4029
  revokedAt;
3798
4030
  };
3799
- _ts_decorate32([
3800
- (0, import_typeorm31.PrimaryGeneratedColumn)("uuid"),
3801
- _ts_metadata31("design:type", String)
4031
+ _ts_decorate33([
4032
+ (0, import_typeorm32.PrimaryGeneratedColumn)("uuid"),
4033
+ _ts_metadata32("design:type", String)
3802
4034
  ], DigitalCredentialEntity.prototype, "id", void 0);
3803
- _ts_decorate32([
3804
- (0, import_typeorm31.Column)("text", {
4035
+ _ts_decorate33([
4036
+ (0, import_typeorm32.Column)("text", {
3805
4037
  name: "parent_id",
3806
4038
  nullable: true
3807
4039
  }),
3808
- _ts_metadata31("design:type", String)
4040
+ _ts_metadata32("design:type", String)
3809
4041
  ], DigitalCredentialEntity.prototype, "parentId", void 0);
3810
- _ts_decorate32([
3811
- (0, import_typeorm31.Column)("simple-enum", {
4042
+ _ts_decorate33([
4043
+ (0, import_typeorm32.Column)("simple-enum", {
3812
4044
  name: "document_type",
3813
4045
  enum: DocumentType,
3814
4046
  nullable: false
3815
4047
  }),
3816
- _ts_metadata31("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
4048
+ _ts_metadata32("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
3817
4049
  ], DigitalCredentialEntity.prototype, "documentType", void 0);
3818
- _ts_decorate32([
3819
- (0, import_typeorm31.Column)("simple-enum", {
4050
+ _ts_decorate33([
4051
+ (0, import_typeorm32.Column)("simple-enum", {
3820
4052
  name: "regulation_type",
3821
4053
  enum: RegulationType,
3822
4054
  nullable: false
3823
4055
  }),
3824
- _ts_metadata31("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
4056
+ _ts_metadata32("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
3825
4057
  ], DigitalCredentialEntity.prototype, "regulationType", void 0);
3826
- _ts_decorate32([
3827
- (0, import_typeorm31.Column)("simple-enum", {
4058
+ _ts_decorate33([
4059
+ (0, import_typeorm32.Column)("simple-enum", {
3828
4060
  name: "document_format",
3829
4061
  enum: CredentialDocumentFormat,
3830
4062
  nullable: false
3831
4063
  }),
3832
- _ts_metadata31("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
4064
+ _ts_metadata32("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
3833
4065
  ], DigitalCredentialEntity.prototype, "documentFormat", void 0);
3834
- _ts_decorate32([
3835
- (0, import_typeorm31.Column)("simple-enum", {
4066
+ _ts_decorate33([
4067
+ (0, import_typeorm32.Column)("simple-enum", {
3836
4068
  name: "credential_role",
3837
4069
  enum: CredentialRole,
3838
4070
  nullable: false
3839
4071
  }),
3840
- _ts_metadata31("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
4072
+ _ts_metadata32("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
3841
4073
  ], DigitalCredentialEntity.prototype, "credentialRole", void 0);
3842
- _ts_decorate32([
3843
- (0, import_typeorm31.Column)("text", {
4074
+ _ts_decorate33([
4075
+ (0, import_typeorm32.Column)("text", {
3844
4076
  name: "raw_document",
3845
4077
  nullable: false
3846
4078
  }),
3847
- _ts_metadata31("design:type", String)
4079
+ _ts_metadata32("design:type", String)
3848
4080
  ], DigitalCredentialEntity.prototype, "rawDocument", void 0);
3849
- _ts_decorate32([
3850
- (0, import_typeorm31.Column)("text", {
4081
+ _ts_decorate33([
4082
+ (0, import_typeorm32.Column)("text", {
3851
4083
  name: "uniform_document",
3852
4084
  nullable: false
3853
4085
  }),
3854
- _ts_metadata31("design:type", String)
4086
+ _ts_metadata32("design:type", String)
3855
4087
  ], DigitalCredentialEntity.prototype, "uniformDocument", void 0);
3856
- _ts_decorate32([
3857
- (0, import_typeorm31.Column)("text", {
4088
+ _ts_decorate33([
4089
+ (0, import_typeorm32.Column)("text", {
3858
4090
  name: "credential_id",
3859
4091
  nullable: true,
3860
4092
  unique: false
3861
4093
  }),
3862
- _ts_metadata31("design:type", String)
4094
+ _ts_metadata32("design:type", String)
3863
4095
  ], DigitalCredentialEntity.prototype, "credentialId", void 0);
3864
- _ts_decorate32([
3865
- (0, import_typeorm31.Column)("text", {
4096
+ _ts_decorate33([
4097
+ (0, import_typeorm32.Column)("text", {
3866
4098
  name: "hash",
3867
4099
  nullable: false,
3868
4100
  unique: true
3869
4101
  }),
3870
- _ts_metadata31("design:type", String)
4102
+ _ts_metadata32("design:type", String)
3871
4103
  ], DigitalCredentialEntity.prototype, "hash", void 0);
3872
- _ts_decorate32([
3873
- (0, import_typeorm31.Column)("text", {
4104
+ _ts_decorate33([
4105
+ (0, import_typeorm32.Column)("text", {
3874
4106
  name: "kms_key_ref",
3875
4107
  nullable: true
3876
4108
  }),
3877
- _ts_metadata31("design:type", String)
4109
+ _ts_metadata32("design:type", String)
3878
4110
  ], DigitalCredentialEntity.prototype, "kmsKeyRef", void 0);
3879
- _ts_decorate32([
3880
- (0, import_typeorm31.Column)("text", {
4111
+ _ts_decorate33([
4112
+ (0, import_typeorm32.Column)("text", {
3881
4113
  name: "identifier_method",
3882
4114
  nullable: true
3883
4115
  }),
3884
- _ts_metadata31("design:type", String)
4116
+ _ts_metadata32("design:type", String)
3885
4117
  ], DigitalCredentialEntity.prototype, "identifierMethod", void 0);
3886
- _ts_decorate32([
3887
- (0, import_typeorm31.Column)("simple-enum", {
4118
+ _ts_decorate33([
4119
+ (0, import_typeorm32.Column)("simple-enum", {
3888
4120
  name: "issuer_correlation_type",
3889
4121
  enum: CredentialCorrelationType,
3890
4122
  nullable: false
3891
4123
  }),
3892
- _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
4124
+ _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3893
4125
  ], DigitalCredentialEntity.prototype, "issuerCorrelationType", void 0);
3894
- _ts_decorate32([
3895
- (0, import_typeorm31.Column)("simple-enum", {
4126
+ _ts_decorate33([
4127
+ (0, import_typeorm32.Column)("simple-enum", {
3896
4128
  name: "subject_correlation_type",
3897
4129
  enum: CredentialCorrelationType,
3898
4130
  nullable: true
3899
4131
  }),
3900
- _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
4132
+ _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3901
4133
  ], DigitalCredentialEntity.prototype, "subjectCorrelationType", void 0);
3902
- _ts_decorate32([
3903
- (0, import_typeorm31.Column)("simple-enum", {
4134
+ _ts_decorate33([
4135
+ (0, import_typeorm32.Column)("simple-enum", {
3904
4136
  name: "rp_correlation_type",
3905
4137
  enum: CredentialCorrelationType,
3906
4138
  nullable: true
3907
4139
  }),
3908
- _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
4140
+ _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3909
4141
  ], DigitalCredentialEntity.prototype, "rpCorrelationType", void 0);
3910
- _ts_decorate32([
3911
- (0, import_typeorm31.Column)("boolean", {
4142
+ _ts_decorate33([
4143
+ (0, import_typeorm32.Column)("boolean", {
3912
4144
  name: "issuer_signed",
3913
4145
  nullable: true
3914
4146
  }),
3915
- _ts_metadata31("design:type", Boolean)
4147
+ _ts_metadata32("design:type", Boolean)
3916
4148
  ], DigitalCredentialEntity.prototype, "isIssuerSigned", void 0);
3917
- _ts_decorate32([
3918
- (0, import_typeorm31.Column)("text", {
4149
+ _ts_decorate33([
4150
+ (0, import_typeorm32.Column)("text", {
3919
4151
  name: "issuer_correlation_id",
3920
4152
  nullable: false
3921
4153
  }),
3922
- _ts_metadata31("design:type", String)
4154
+ _ts_metadata32("design:type", String)
3923
4155
  ], DigitalCredentialEntity.prototype, "issuerCorrelationId", void 0);
3924
- _ts_decorate32([
3925
- (0, import_typeorm31.Column)("text", {
4156
+ _ts_decorate33([
4157
+ (0, import_typeorm32.Column)("text", {
3926
4158
  name: "subject_correlation_id",
3927
4159
  nullable: true
3928
4160
  }),
3929
- _ts_metadata31("design:type", String)
4161
+ _ts_metadata32("design:type", String)
3930
4162
  ], DigitalCredentialEntity.prototype, "subjectCorrelationId", void 0);
3931
- _ts_decorate32([
3932
- (0, import_typeorm31.Column)("text", {
4163
+ _ts_decorate33([
4164
+ (0, import_typeorm32.Column)("text", {
3933
4165
  name: "rp_correlation_id",
3934
4166
  nullable: true
3935
4167
  }),
3936
- _ts_metadata31("design:type", String)
4168
+ _ts_metadata32("design:type", String)
3937
4169
  ], DigitalCredentialEntity.prototype, "rpCorrelationId", void 0);
3938
- _ts_decorate32([
3939
- (0, import_typeorm31.Column)("simple-enum", {
4170
+ _ts_decorate33([
4171
+ (0, import_typeorm32.Column)("simple-enum", {
3940
4172
  name: "verified_state",
3941
4173
  enum: CredentialStateType,
3942
4174
  nullable: true
3943
4175
  }),
3944
- _ts_metadata31("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
4176
+ _ts_metadata32("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
3945
4177
  ], DigitalCredentialEntity.prototype, "verifiedState", void 0);
3946
- _ts_decorate32([
3947
- (0, import_typeorm31.Column)("text", {
4178
+ _ts_decorate33([
4179
+ (0, import_typeorm32.Column)("text", {
3948
4180
  name: "tenant_id",
3949
4181
  nullable: true
3950
4182
  }),
3951
- _ts_metadata31("design:type", String)
4183
+ _ts_metadata32("design:type", String)
3952
4184
  ], DigitalCredentialEntity.prototype, "tenantId", void 0);
3953
- _ts_decorate32([
3954
- (0, import_typeorm31.CreateDateColumn)({
4185
+ _ts_decorate33([
4186
+ (0, import_typeorm32.CreateDateColumn)({
3955
4187
  name: "created_at",
3956
4188
  nullable: false,
3957
4189
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
3958
4190
  }),
3959
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4191
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3960
4192
  ], DigitalCredentialEntity.prototype, "createdAt", void 0);
3961
- _ts_decorate32([
3962
- (0, import_typeorm31.Column)({
4193
+ _ts_decorate33([
4194
+ (0, import_typeorm32.Column)({
3963
4195
  name: "presented_at",
3964
4196
  nullable: true,
3965
4197
  type: (0, import_ssi_sdk17.typeormDate)()
3966
4198
  }),
3967
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4199
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3968
4200
  ], DigitalCredentialEntity.prototype, "presentedAt", void 0);
3969
- _ts_decorate32([
3970
- (0, import_typeorm31.UpdateDateColumn)({
4201
+ _ts_decorate33([
4202
+ (0, import_typeorm32.UpdateDateColumn)({
3971
4203
  name: "last_updated_at",
3972
4204
  nullable: false,
3973
4205
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
3974
4206
  }),
3975
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4207
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3976
4208
  ], DigitalCredentialEntity.prototype, "lastUpdatedAt", void 0);
3977
- _ts_decorate32([
3978
- (0, import_typeorm31.Column)({
4209
+ _ts_decorate33([
4210
+ (0, import_typeorm32.Column)({
3979
4211
  name: "valid_until",
3980
4212
  nullable: true,
3981
4213
  type: (0, import_ssi_sdk17.typeormDate)()
3982
4214
  }),
3983
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4215
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3984
4216
  ], DigitalCredentialEntity.prototype, "validUntil", void 0);
3985
- _ts_decorate32([
3986
- (0, import_typeorm31.Column)({
4217
+ _ts_decorate33([
4218
+ (0, import_typeorm32.Column)({
3987
4219
  name: "valid_from",
3988
4220
  nullable: true,
3989
4221
  type: (0, import_ssi_sdk17.typeormDate)()
3990
4222
  }),
3991
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4223
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3992
4224
  ], DigitalCredentialEntity.prototype, "validFrom", void 0);
3993
- _ts_decorate32([
3994
- (0, import_typeorm31.Column)({
4225
+ _ts_decorate33([
4226
+ (0, import_typeorm32.Column)({
3995
4227
  name: "verified_at",
3996
4228
  nullable: true,
3997
4229
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
3998
4230
  }),
3999
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4231
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4000
4232
  ], DigitalCredentialEntity.prototype, "verifiedAt", void 0);
4001
- _ts_decorate32([
4002
- (0, import_typeorm31.Column)({
4233
+ _ts_decorate33([
4234
+ (0, import_typeorm32.Column)({
4003
4235
  name: "revoked_at",
4004
4236
  nullable: true,
4005
4237
  type: (0, import_ssi_sdk17.typeOrmDateTime)()
4006
4238
  }),
4007
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4239
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4008
4240
  ], DigitalCredentialEntity.prototype, "revokedAt", void 0);
4009
- DigitalCredentialEntity = _ts_decorate32([
4010
- (0, import_typeorm31.Entity)("DigitalCredential")
4241
+ DigitalCredentialEntity = _ts_decorate33([
4242
+ (0, import_typeorm32.Entity)("DigitalCredential")
4011
4243
  ], DigitalCredentialEntity);
4012
4244
 
4013
4245
  // src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts
4014
- var import_typeorm32 = require("typeorm");
4015
- var import_class_validator21 = require("class-validator");
4246
+ var import_typeorm33 = require("typeorm");
4247
+ var import_class_validator22 = require("class-validator");
4016
4248
  var import_ssi_sdk18 = require("@sphereon/ssi-sdk.agent-config");
4017
- function _ts_decorate33(decorators, target, key, desc) {
4249
+ function _ts_decorate34(decorators, target, key, desc) {
4018
4250
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4019
4251
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4020
4252
  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;
4021
4253
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4022
4254
  }
4023
- __name(_ts_decorate33, "_ts_decorate");
4024
- function _ts_metadata32(k, v) {
4255
+ __name(_ts_decorate34, "_ts_decorate");
4256
+ function _ts_metadata33(k, v) {
4025
4257
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4026
4258
  }
4027
- __name(_ts_metadata32, "_ts_metadata");
4028
- var PresentationDefinitionItemEntity = class extends import_typeorm32.BaseEntity {
4259
+ __name(_ts_metadata33, "_ts_metadata");
4260
+ var PresentationDefinitionItemEntity = class extends import_typeorm33.BaseEntity {
4029
4261
  static {
4030
4262
  __name(this, "PresentationDefinitionItemEntity");
4031
4263
  }
@@ -4044,116 +4276,116 @@ var PresentationDefinitionItemEntity = class extends import_typeorm32.BaseEntity
4044
4276
  this.lastUpdatedAt = /* @__PURE__ */ new Date();
4045
4277
  }
4046
4278
  };
4047
- _ts_decorate33([
4048
- (0, import_typeorm32.PrimaryGeneratedColumn)("uuid"),
4049
- _ts_metadata32("design:type", String)
4279
+ _ts_decorate34([
4280
+ (0, import_typeorm33.PrimaryGeneratedColumn)("uuid"),
4281
+ _ts_metadata33("design:type", String)
4050
4282
  ], PresentationDefinitionItemEntity.prototype, "id", void 0);
4051
- _ts_decorate33([
4052
- (0, import_typeorm32.Column)({
4283
+ _ts_decorate34([
4284
+ (0, import_typeorm33.Column)({
4053
4285
  name: "definition_id",
4054
4286
  length: 255,
4055
4287
  type: "varchar",
4056
4288
  nullable: false,
4057
4289
  unique: false
4058
4290
  }),
4059
- (0, import_class_validator21.IsNotEmpty)({
4291
+ (0, import_class_validator22.IsNotEmpty)({
4060
4292
  message: "A blank definition id field is not allowed"
4061
4293
  }),
4062
- _ts_metadata32("design:type", String)
4294
+ _ts_metadata33("design:type", String)
4063
4295
  ], PresentationDefinitionItemEntity.prototype, "definitionId", void 0);
4064
- _ts_decorate33([
4065
- (0, import_typeorm32.Column)({
4296
+ _ts_decorate34([
4297
+ (0, import_typeorm33.Column)({
4066
4298
  name: "version",
4067
4299
  length: 255,
4068
4300
  type: "varchar",
4069
4301
  nullable: false,
4070
4302
  unique: false
4071
4303
  }),
4072
- (0, import_class_validator21.IsNotEmpty)({
4304
+ (0, import_class_validator22.IsNotEmpty)({
4073
4305
  message: "A blank version field is not allowed"
4074
4306
  }),
4075
- _ts_metadata32("design:type", String)
4307
+ _ts_metadata33("design:type", String)
4076
4308
  ], PresentationDefinitionItemEntity.prototype, "version", void 0);
4077
- _ts_decorate33([
4078
- (0, import_typeorm32.Column)({
4309
+ _ts_decorate34([
4310
+ (0, import_typeorm33.Column)({
4079
4311
  name: "tenant_id",
4080
4312
  length: 255,
4081
4313
  type: "varchar",
4082
4314
  nullable: true,
4083
4315
  unique: false
4084
4316
  }),
4085
- _ts_metadata32("design:type", String)
4317
+ _ts_metadata33("design:type", String)
4086
4318
  ], PresentationDefinitionItemEntity.prototype, "tenantId", void 0);
4087
- _ts_decorate33([
4088
- (0, import_typeorm32.Column)({
4319
+ _ts_decorate34([
4320
+ (0, import_typeorm33.Column)({
4089
4321
  name: "purpose",
4090
4322
  length: 255,
4091
4323
  type: "varchar",
4092
4324
  nullable: true,
4093
4325
  unique: false
4094
4326
  }),
4095
- _ts_metadata32("design:type", String)
4327
+ _ts_metadata33("design:type", String)
4096
4328
  ], PresentationDefinitionItemEntity.prototype, "purpose", void 0);
4097
- _ts_decorate33([
4098
- (0, import_typeorm32.Column)({
4329
+ _ts_decorate34([
4330
+ (0, import_typeorm33.Column)({
4099
4331
  name: "name",
4100
4332
  length: 255,
4101
4333
  type: "varchar",
4102
4334
  nullable: true,
4103
4335
  unique: false
4104
4336
  }),
4105
- _ts_metadata32("design:type", String)
4337
+ _ts_metadata33("design:type", String)
4106
4338
  ], PresentationDefinitionItemEntity.prototype, "name", void 0);
4107
- _ts_decorate33([
4108
- (0, import_typeorm32.Column)({
4339
+ _ts_decorate34([
4340
+ (0, import_typeorm33.Column)({
4109
4341
  name: "definition_payload",
4110
4342
  type: "text",
4111
4343
  nullable: false,
4112
4344
  unique: false
4113
4345
  }),
4114
- (0, import_class_validator21.IsNotEmpty)({
4346
+ (0, import_class_validator22.IsNotEmpty)({
4115
4347
  message: "A blank PD definition payload field is not allowed"
4116
4348
  }),
4117
- _ts_metadata32("design:type", String)
4349
+ _ts_metadata33("design:type", String)
4118
4350
  ], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
4119
- _ts_decorate33([
4120
- (0, import_typeorm32.Column)({
4351
+ _ts_decorate34([
4352
+ (0, import_typeorm33.Column)({
4121
4353
  name: "dcql_payload",
4122
4354
  type: "text",
4123
4355
  nullable: true,
4124
4356
  unique: false
4125
4357
  }),
4126
- (0, import_class_validator21.IsNotEmpty)({
4358
+ (0, import_class_validator22.IsNotEmpty)({
4127
4359
  message: "A blank dcql definition payload field is not allowed"
4128
4360
  }),
4129
- _ts_metadata32("design:type", String)
4361
+ _ts_metadata33("design:type", String)
4130
4362
  ], PresentationDefinitionItemEntity.prototype, "dcqlPayload", void 0);
4131
- _ts_decorate33([
4132
- (0, import_typeorm32.CreateDateColumn)({
4363
+ _ts_decorate34([
4364
+ (0, import_typeorm33.CreateDateColumn)({
4133
4365
  name: "created_at",
4134
4366
  nullable: false,
4135
4367
  type: (0, import_ssi_sdk18.typeOrmDateTime)()
4136
4368
  }),
4137
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4369
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4138
4370
  ], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
4139
- _ts_decorate33([
4140
- (0, import_typeorm32.UpdateDateColumn)({
4371
+ _ts_decorate34([
4372
+ (0, import_typeorm33.UpdateDateColumn)({
4141
4373
  name: "last_updated_at",
4142
4374
  nullable: false,
4143
4375
  type: (0, import_ssi_sdk18.typeOrmDateTime)()
4144
4376
  }),
4145
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4377
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4146
4378
  ], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", 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)
4379
+ _ts_decorate34([
4380
+ (0, import_typeorm33.BeforeInsert)(),
4381
+ (0, import_typeorm33.BeforeUpdate)(),
4382
+ _ts_metadata33("design:type", Function),
4383
+ _ts_metadata33("design:paramtypes", []),
4384
+ _ts_metadata33("design:returntype", void 0)
4153
4385
  ], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
4154
- PresentationDefinitionItemEntity = _ts_decorate33([
4155
- (0, import_typeorm32.Entity)("PresentationDefinitionItem"),
4156
- (0, import_typeorm32.Index)([
4386
+ PresentationDefinitionItemEntity = _ts_decorate34([
4387
+ (0, import_typeorm33.Entity)("PresentationDefinitionItem"),
4388
+ (0, import_typeorm33.Index)([
4157
4389
  "version"
4158
4390
  ], {
4159
4391
  unique: false
@@ -4162,19 +4394,19 @@ PresentationDefinitionItemEntity = _ts_decorate33([
4162
4394
 
4163
4395
  // src/entities/oid4vcState/Oid4vcStateEntity.ts
4164
4396
  var import_ssi_sdk19 = require("@sphereon/ssi-sdk.agent-config");
4165
- var import_typeorm33 = require("typeorm");
4166
- function _ts_decorate34(decorators, target, key, desc) {
4397
+ var import_typeorm34 = require("typeorm");
4398
+ function _ts_decorate35(decorators, target, key, desc) {
4167
4399
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4168
4400
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4169
4401
  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;
4170
4402
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4171
4403
  }
4172
- __name(_ts_decorate34, "_ts_decorate");
4173
- function _ts_metadata33(k, v) {
4404
+ __name(_ts_decorate35, "_ts_decorate");
4405
+ function _ts_metadata34(k, v) {
4174
4406
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4175
4407
  }
4176
- __name(_ts_metadata33, "_ts_metadata");
4177
- var Oid4vcStateEntity = class extends import_typeorm33.BaseEntity {
4408
+ __name(_ts_metadata34, "_ts_metadata");
4409
+ var Oid4vcStateEntity = class extends import_typeorm34.BaseEntity {
4178
4410
  static {
4179
4411
  __name(this, "Oid4vcStateEntity");
4180
4412
  }
@@ -4188,84 +4420,84 @@ var Oid4vcStateEntity = class extends import_typeorm33.BaseEntity {
4188
4420
  expiresAt;
4189
4421
  tenantId;
4190
4422
  };
4191
- _ts_decorate34([
4192
- (0, import_typeorm33.PrimaryColumn)({
4423
+ _ts_decorate35([
4424
+ (0, import_typeorm34.PrimaryColumn)({
4193
4425
  name: "id",
4194
4426
  type: "varchar",
4195
4427
  nullable: false
4196
4428
  }),
4197
- _ts_metadata33("design:type", String)
4429
+ _ts_metadata34("design:type", String)
4198
4430
  ], Oid4vcStateEntity.prototype, "id", void 0);
4199
- _ts_decorate34([
4200
- (0, import_typeorm33.Column)({
4431
+ _ts_decorate35([
4432
+ (0, import_typeorm34.Column)({
4201
4433
  name: "lookup_ids",
4202
4434
  type: "array",
4203
4435
  nullable: true
4204
4436
  }),
4205
- _ts_metadata33("design:type", typeof Array === "undefined" ? Object : Array)
4437
+ _ts_metadata34("design:type", typeof Array === "undefined" ? Object : Array)
4206
4438
  ], Oid4vcStateEntity.prototype, "lookups", void 0);
4207
- _ts_decorate34([
4208
- (0, import_typeorm33.Column)({
4439
+ _ts_decorate35([
4440
+ (0, import_typeorm34.Column)({
4209
4441
  name: "state_id",
4210
4442
  type: "varchar",
4211
4443
  nullable: true
4212
4444
  }),
4213
- _ts_metadata33("design:type", String)
4445
+ _ts_metadata34("design:type", String)
4214
4446
  ], Oid4vcStateEntity.prototype, "stateId", void 0);
4215
- _ts_decorate34([
4216
- (0, import_typeorm33.Column)({
4447
+ _ts_decorate35([
4448
+ (0, import_typeorm34.Column)({
4217
4449
  name: "correlation_id",
4218
4450
  type: "varchar",
4219
4451
  nullable: true
4220
4452
  }),
4221
- _ts_metadata33("design:type", String)
4453
+ _ts_metadata34("design:type", String)
4222
4454
  ], Oid4vcStateEntity.prototype, "correlationId", void 0);
4223
- _ts_decorate34([
4224
- (0, import_typeorm33.Column)({
4455
+ _ts_decorate35([
4456
+ (0, import_typeorm34.Column)({
4225
4457
  name: "state",
4226
4458
  type: "json",
4227
4459
  nullable: false
4228
4460
  }),
4229
- _ts_metadata33("design:type", typeof StateType === "undefined" ? Object : StateType)
4461
+ _ts_metadata34("design:type", typeof StateType === "undefined" ? Object : StateType)
4230
4462
  ], Oid4vcStateEntity.prototype, "state", void 0);
4231
- _ts_decorate34([
4232
- (0, import_typeorm33.CreateDateColumn)({
4463
+ _ts_decorate35([
4464
+ (0, import_typeorm34.CreateDateColumn)({
4233
4465
  name: "created_at",
4234
4466
  nullable: false,
4235
4467
  type: (0, import_ssi_sdk19.typeOrmDateTime)()
4236
4468
  }),
4237
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4469
+ _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4238
4470
  ], Oid4vcStateEntity.prototype, "createdAt", void 0);
4239
- _ts_decorate34([
4240
- (0, import_typeorm33.UpdateDateColumn)({
4471
+ _ts_decorate35([
4472
+ (0, import_typeorm34.UpdateDateColumn)({
4241
4473
  name: "updated_at",
4242
4474
  nullable: false,
4243
4475
  type: (0, import_ssi_sdk19.typeOrmDateTime)()
4244
4476
  }),
4245
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4477
+ _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4246
4478
  ], Oid4vcStateEntity.prototype, "updatedAt", void 0);
4247
- _ts_decorate34([
4248
- (0, import_typeorm33.Column)({
4479
+ _ts_decorate35([
4480
+ (0, import_typeorm34.Column)({
4249
4481
  name: "expires_at",
4250
4482
  nullable: true,
4251
4483
  type: (0, import_ssi_sdk19.typeOrmDateTime)()
4252
4484
  }),
4253
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4485
+ _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4254
4486
  ], Oid4vcStateEntity.prototype, "expiresAt", void 0);
4255
- _ts_decorate34([
4256
- (0, import_typeorm33.Column)({
4487
+ _ts_decorate35([
4488
+ (0, import_typeorm34.Column)({
4257
4489
  name: "tenant_id",
4258
4490
  type: "varchar",
4259
4491
  nullable: true
4260
4492
  }),
4261
- _ts_metadata33("design:type", String)
4493
+ _ts_metadata34("design:type", String)
4262
4494
  ], Oid4vcStateEntity.prototype, "tenantId", void 0);
4263
- Oid4vcStateEntity = _ts_decorate34([
4264
- (0, import_typeorm33.Entity)("Oid4vcStateEntity")
4495
+ Oid4vcStateEntity = _ts_decorate35([
4496
+ (0, import_typeorm34.Entity)("Oid4vcStateEntity")
4265
4497
  ], Oid4vcStateEntity);
4266
4498
 
4267
4499
  // src/contact/ContactStore.ts
4268
- var import_typeorm34 = require("typeorm");
4500
+ var import_typeorm35 = require("typeorm");
4269
4501
  var import_debug = __toESM(require("debug"), 1);
4270
4502
 
4271
4503
  // src/contact/AbstractContactStore.ts
@@ -4734,7 +4966,7 @@ var ContactStore = class extends AbstractContactStore {
4734
4966
  });
4735
4967
  const result = await partyRepository.find({
4736
4968
  where: {
4737
- id: (0, import_typeorm34.In)(initialResult.map((party) => party.id))
4969
+ id: (0, import_typeorm35.In)(initialResult.map((party) => party.id))
4738
4970
  }
4739
4971
  });
4740
4972
  debug(`getParties() resulted in ${result.length} parties`);
@@ -4830,7 +5062,7 @@ var ContactStore = class extends AbstractContactStore {
4830
5062
  });
4831
5063
  const result = await identityRepository.find({
4832
5064
  where: {
4833
- id: (0, import_typeorm34.In)(initialResult.map((identity) => identity.id))
5065
+ id: (0, import_typeorm35.In)(initialResult.map((identity) => identity.id))
4834
5066
  }
4835
5067
  });
4836
5068
  return result.map(identityFrom);
@@ -4935,7 +5167,7 @@ var ContactStore = class extends AbstractContactStore {
4935
5167
  });
4936
5168
  const result = await partyRelationshipRepository.find({
4937
5169
  where: {
4938
- id: (0, import_typeorm34.In)(initialResult.map((partyRelationship) => partyRelationship.id))
5170
+ id: (0, import_typeorm35.In)(initialResult.map((partyRelationship) => partyRelationship.id))
4939
5171
  }
4940
5172
  });
4941
5173
  return result.map((partyRelationship) => partyRelationshipFrom(partyRelationship));
@@ -5001,7 +5233,7 @@ var ContactStore = class extends AbstractContactStore {
5001
5233
  });
5002
5234
  const result = await partyTypeRepository.find({
5003
5235
  where: {
5004
- id: (0, import_typeorm34.In)(initialResult.map((partyType) => partyType.id))
5236
+ id: (0, import_typeorm35.In)(initialResult.map((partyType) => partyType.id))
5005
5237
  }
5006
5238
  });
5007
5239
  return result.map((partyType) => partyTypeFrom(partyType));
@@ -5069,7 +5301,7 @@ var ContactStore = class extends AbstractContactStore {
5069
5301
  });
5070
5302
  const result = await electronicAddressRepository.find({
5071
5303
  where: {
5072
- id: (0, import_typeorm34.In)(initialResult.map((electronicAddress) => electronicAddress.id))
5304
+ id: (0, import_typeorm35.In)(initialResult.map((electronicAddress) => electronicAddress.id))
5073
5305
  }
5074
5306
  });
5075
5307
  return result.map((electronicAddress) => electronicAddressFrom(electronicAddress));
@@ -5145,7 +5377,7 @@ var ContactStore = class extends AbstractContactStore {
5145
5377
  });
5146
5378
  const result = await physicalAddressRepository.find({
5147
5379
  where: {
5148
- id: (0, import_typeorm34.In)(initialResult.map((physicalAddress) => physicalAddress.id))
5380
+ id: (0, import_typeorm35.In)(initialResult.map((physicalAddress) => physicalAddress.id))
5149
5381
  }
5150
5382
  });
5151
5383
  return result.map((physicalAddress) => physicalAddressFrom(physicalAddress));
@@ -5504,7 +5736,7 @@ var AbstractIssuanceBrandingStore = class {
5504
5736
 
5505
5737
  // src/issuanceBranding/IssuanceBrandingStore.ts
5506
5738
  var import_debug3 = __toESM(require("debug"), 1);
5507
- var import_typeorm35 = require("typeorm");
5739
+ var import_typeorm36 = require("typeorm");
5508
5740
 
5509
5741
  // src/utils/issuanceBranding/MappingUtils.ts
5510
5742
  var credentialBrandingFrom = /* @__PURE__ */ __name((credentialBranding) => {
@@ -5698,7 +5930,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
5698
5930
  credentialBranding: {
5699
5931
  id: credentialBrandingId
5700
5932
  },
5701
- locale: (0, import_typeorm35.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
5933
+ locale: (0, import_typeorm36.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
5702
5934
  }
5703
5935
  });
5704
5936
  if (locales && locales.length > 0) {
@@ -5766,7 +5998,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
5766
5998
  credentialBranding: {
5767
5999
  id: result.credentialBrandingId
5768
6000
  },
5769
- id: (0, import_typeorm35.Not)((0, import_typeorm35.In)([
6001
+ id: (0, import_typeorm36.Not)((0, import_typeorm36.In)([
5770
6002
  localeBranding.id
5771
6003
  ])),
5772
6004
  locale: localeBranding.locale
@@ -5869,7 +6101,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
5869
6101
  issuerBranding: {
5870
6102
  id: issuerBrandingId
5871
6103
  },
5872
- locale: (0, import_typeorm35.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
6104
+ locale: (0, import_typeorm36.In)(localeBranding.map((localeBranding2) => localeBranding2.locale))
5873
6105
  }
5874
6106
  });
5875
6107
  if (locales && locales.length > 0) {
@@ -5937,7 +6169,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
5937
6169
  issuerBranding: {
5938
6170
  id: result.issuerBrandingId
5939
6171
  },
5940
- id: (0, import_typeorm35.Not)((0, import_typeorm35.In)([
6172
+ id: (0, import_typeorm36.Not)((0, import_typeorm36.In)([
5941
6173
  localeBranding.id
5942
6174
  ])),
5943
6175
  locale: localeBranding.locale
@@ -5999,7 +6231,7 @@ var IssuanceBrandingStore = class extends AbstractIssuanceBrandingStore {
5999
6231
  // src/statusList/StatusListStore.ts
6000
6232
  var import_ssi_types4 = require("@sphereon/ssi-types");
6001
6233
  var import_debug4 = __toESM(require("debug"), 1);
6002
- var import_typeorm36 = require("typeorm");
6234
+ var import_typeorm37 = require("typeorm");
6003
6235
 
6004
6236
  // src/utils/statusList/MappingUtils.ts
6005
6237
  var import_ssi_types3 = require("@sphereon/ssi-types");
@@ -6030,6 +6262,25 @@ var statusListEntityFrom = /* @__PURE__ */ __name((args) => {
6030
6262
  });
6031
6263
  return entity;
6032
6264
  }
6265
+ if (args.type === import_ssi_types3.StatusListType.BitstringStatusList) {
6266
+ const entity = new BitstringStatusListEntity();
6267
+ const bitstringsl = args;
6268
+ if (!bitstringsl.bitsPerStatus) {
6269
+ throw Error("bitsPerStatus must be set for BitstringStatusList");
6270
+ }
6271
+ entity.statusPurpose = bitstringsl.statusPurpose;
6272
+ entity.bitsPerStatus = bitstringsl.bitsPerStatus;
6273
+ entity.validFrom = bitstringsl.validFrom;
6274
+ entity.validUntil = bitstringsl.validUntil;
6275
+ entity.ttl = bitstringsl.ttl;
6276
+ setBaseFields(entity, args);
6277
+ Object.defineProperty(entity, "type", {
6278
+ value: import_ssi_types3.StatusListType.BitstringStatusList,
6279
+ enumerable: true,
6280
+ configurable: true
6281
+ });
6282
+ return entity;
6283
+ }
6033
6284
  throw new Error(`Invalid status list type ${args.type}`);
6034
6285
  }, "statusListEntityFrom");
6035
6286
  var statusListFrom = /* @__PURE__ */ __name((entity) => {
@@ -6051,6 +6302,18 @@ var statusListFrom = /* @__PURE__ */ __name((entity) => {
6051
6302
  };
6052
6303
  return replaceNullWithUndefined(result);
6053
6304
  }
6305
+ if (entity instanceof BitstringStatusListEntity) {
6306
+ const result = {
6307
+ ...getBaseFields(entity),
6308
+ type: import_ssi_types3.StatusListType.BitstringStatusList,
6309
+ statusPurpose: entity.statusPurpose,
6310
+ bitsPerStatus: entity.bitsPerStatus,
6311
+ validFrom: entity.validFrom,
6312
+ validUntil: entity.validUntil,
6313
+ ttl: entity.ttl
6314
+ };
6315
+ return replaceNullWithUndefined(result);
6316
+ }
6054
6317
  throw new Error(`Invalid status list type ${typeof entity}`);
6055
6318
  }, "statusListFrom");
6056
6319
  var setBaseFields = /* @__PURE__ */ __name((entity, args) => {
@@ -6104,8 +6367,8 @@ var StatusListStore = class {
6104
6367
  const repo = await this.getStatusListEntryRepo();
6105
6368
  const results = (await repo.find({
6106
6369
  where: {
6107
- statusList,
6108
- statusListIndex: (0, import_typeorm36.In)(statusListIndex)
6370
+ statusListId: statusList.id,
6371
+ statusListIndex: (0, import_typeorm37.In)(statusListIndex)
6109
6372
  }
6110
6373
  })).map((index) => index.statusListIndex);
6111
6374
  return statusListIndex.filter((index) => !results.includes(index));
@@ -6339,6 +6602,8 @@ var StatusListStore = class {
6339
6602
  return dataSource.getRepository(StatusList2021Entity);
6340
6603
  case import_ssi_types4.StatusListType.OAuthStatusList:
6341
6604
  return dataSource.getRepository(OAuthStatusListEntity);
6605
+ case import_ssi_types4.StatusListType.BitstringStatusList:
6606
+ return dataSource.getRepository(BitstringStatusListEntity);
6342
6607
  default:
6343
6608
  return dataSource.getRepository(StatusListEntity);
6344
6609
  }
@@ -6548,7 +6813,7 @@ var IAbstractMachineStateStore = class {
6548
6813
 
6549
6814
  // src/machineState/MachineStateStore.ts
6550
6815
  var import_debug6 = __toESM(require("debug"), 1);
6551
- var import_typeorm37 = require("typeorm");
6816
+ var import_typeorm38 = require("typeorm");
6552
6817
  var debug6 = (0, import_debug6.default)("sphereon:ssi-sdk:machine-state:store");
6553
6818
  var MachineStateStore = class _MachineStateStore extends IAbstractMachineStateStore {
6554
6819
  static {
@@ -6584,7 +6849,7 @@ var MachineStateStore = class _MachineStateStore extends IAbstractMachineStateSt
6584
6849
  const { tenantId, machineName, instanceId } = args;
6585
6850
  const connection = await this._dbConnection;
6586
6851
  debug6(`Executing findActiveMachineStates query with machineName: ${machineName}, tenantId: ${tenantId}`);
6587
- const queryBuilder = connection.getRepository(MachineStateInfoEntity).createQueryBuilder("state").where("state.completedAt IS NULL").andWhere(new import_typeorm37.Brackets((qb) => {
6852
+ const queryBuilder = connection.getRepository(MachineStateInfoEntity).createQueryBuilder("state").where("state.completedAt IS NULL").andWhere(new import_typeorm38.Brackets((qb) => {
6588
6853
  qb.where("state.expiresAt IS NULL").orWhere("state.expiresAt > :now", {
6589
6854
  now: /* @__PURE__ */ new Date()
6590
6855
  });
@@ -6654,10 +6919,10 @@ var MachineStateStore = class _MachineStateStore extends IAbstractMachineStateSt
6654
6919
  },
6655
6920
  // When deleteOnDone state is set we only look at completedAt, in other cases we compare current time with expiresAt
6656
6921
  ...!deleteDoneStates && {
6657
- expiresAt: (0, import_typeorm37.LessThan)(/* @__PURE__ */ new Date())
6922
+ expiresAt: (0, import_typeorm38.LessThan)(/* @__PURE__ */ new Date())
6658
6923
  },
6659
6924
  ...deleteDoneStates && {
6660
- completedAt: (0, import_typeorm37.Not)((0, import_typeorm37.IsNull)())
6925
+ completedAt: (0, import_typeorm38.Not)((0, import_typeorm38.IsNull)())
6661
6926
  }
6662
6927
  };
6663
6928
  const result = await connection.getRepository(MachineStateInfoEntity).delete(deleteCriteria);
@@ -6685,7 +6950,7 @@ var AbstractPDStore = class {
6685
6950
  };
6686
6951
 
6687
6952
  // src/presentationDefinition/PDStore.ts
6688
- var import_typeorm38 = require("typeorm");
6953
+ var import_typeorm39 = require("typeorm");
6689
6954
  var import_debug7 = __toESM(require("debug"), 1);
6690
6955
 
6691
6956
  // src/utils/presentationDefinition/MappingUtils.ts
@@ -6781,7 +7046,7 @@ var PDStore = class extends AbstractPDStore {
6781
7046
  const initialResult = await this.findIds(pdRepository, filter);
6782
7047
  const result = await pdRepository.find({
6783
7048
  where: {
6784
- id: (0, import_typeorm38.In)(initialResult.map((entity) => entity.id))
7049
+ id: (0, import_typeorm39.In)(initialResult.map((entity) => entity.id))
6785
7050
  },
6786
7051
  order: {
6787
7052
  version: "DESC"
@@ -6843,7 +7108,7 @@ var PDStore = class extends AbstractPDStore {
6843
7108
  const initialResult = await this.findIds(pdRepository, filter);
6844
7109
  const result = await pdRepository.find({
6845
7110
  where: {
6846
- id: (0, import_typeorm38.In)(initialResult.map((entity) => entity.id))
7111
+ id: (0, import_typeorm39.In)(initialResult.map((entity) => entity.id))
6847
7112
  }
6848
7113
  });
6849
7114
  for (const entity of result) {
@@ -6857,7 +7122,7 @@ var PDStore = class extends AbstractPDStore {
6857
7122
  if (idFilters && idFilters.length > 0 && idFilters.length === filter?.length) {
6858
7123
  return await pdRepository.find({
6859
7124
  where: {
6860
- id: (0, import_typeorm38.In)(idFilters)
7125
+ id: (0, import_typeorm39.In)(idFilters)
6861
7126
  }
6862
7127
  });
6863
7128
  } else {
@@ -8812,6 +9077,198 @@ var FixCredentialClaimsReferencesUuid1741895822987 = class {
8812
9077
  }
8813
9078
  };
8814
9079
 
9080
+ // src/migrations/generic/12-CreateBitstringStatusList.ts
9081
+ var import_debug19 = __toESM(require("debug"), 1);
9082
+
9083
+ // src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts
9084
+ var CreateBitstringStatusListPG1741895823000 = class {
9085
+ static {
9086
+ __name(this, "CreateBitstringStatusListPG1741895823000");
9087
+ }
9088
+ name = "CreateBitstringStatusList1741895823000";
9089
+ async up(queryRunner) {
9090
+ await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "bitsPerStatus" integer DEFAULT 1`);
9091
+ await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "ttl" integer`);
9092
+ await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validFrom" TIMESTAMP`);
9093
+ await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validUntil" TIMESTAMP`);
9094
+ await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT IF EXISTS "CHK_StatusList_type"`);
9095
+ await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList'))`);
9096
+ await queryRunner.query(`
9097
+ CREATE TABLE "BitstringStatusListEntry" (
9098
+ "statusListId" character varying NOT NULL,
9099
+ "statusListIndex" integer NOT NULL,
9100
+ "credentialId" text,
9101
+ "credentialHash" character varying(128),
9102
+ "correlationId" character varying(255),
9103
+ "statusPurpose" character varying NOT NULL,
9104
+ "bitsPerStatus" integer DEFAULT 1,
9105
+ "statusMessage" text,
9106
+ "statusReference" text,
9107
+ CONSTRAINT "PK_BitstringStatusListEntry" PRIMARY KEY ("statusListId", "statusListIndex")
9108
+ )
9109
+ `);
9110
+ await queryRunner.query(`
9111
+ ALTER TABLE "BitstringStatusListEntry"
9112
+ ADD CONSTRAINT "FK_BitstringStatusListEntry_statusListId"
9113
+ FOREIGN KEY ("statusListId") REFERENCES "StatusList"("id") ON DELETE NO ACTION ON UPDATE NO ACTION
9114
+ `);
9115
+ }
9116
+ async down(queryRunner) {
9117
+ await queryRunner.query(`ALTER TABLE "BitstringStatusListEntry" DROP CONSTRAINT "FK_BitstringStatusListEntry_statusListId"`);
9118
+ await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
9119
+ await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT "CHK_StatusList_type"`);
9120
+ await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList'))`);
9121
+ await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validUntil"`);
9122
+ await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validFrom"`);
9123
+ await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "ttl"`);
9124
+ await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "bitsPerStatus"`);
9125
+ }
9126
+ };
9127
+
9128
+ // src/migrations/sqlite/1741895823001-CreateBitstringStatusList.ts
9129
+ var CreateBitstringStatusListSqlite1741895823001 = class {
9130
+ static {
9131
+ __name(this, "CreateBitstringStatusListSqlite1741895823001");
9132
+ }
9133
+ name = "CreateBitstringStatusList1741895823000";
9134
+ async up(queryRunner) {
9135
+ await queryRunner.query(`
9136
+ CREATE TABLE "temporary_StatusList" (
9137
+ "id" varchar PRIMARY KEY NOT NULL,
9138
+ "correlationId" varchar NOT NULL,
9139
+ "length" integer NOT NULL,
9140
+ "issuer" text NOT NULL,
9141
+ "type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
9142
+ "driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
9143
+ "credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
9144
+ "proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
9145
+ "indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
9146
+ "statusPurpose" varchar,
9147
+ "statusListCredential" text,
9148
+ "expiresAt" datetime,
9149
+ "bitsPerStatus" 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
+ "bitsPerStatus" 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
+
8815
9272
  // src/migrations/generic/index.ts
8816
9273
  var DataStoreContactMigrations = [
8817
9274
  CreateContacts1659463079429,
@@ -8824,7 +9281,8 @@ var DataStoreIssuanceBrandingMigrations = [
8824
9281
  FixCredentialClaimsReferencesUuid1741895822987
8825
9282
  ];
8826
9283
  var DataStoreStatusListMigrations = [
8827
- CreateStatusList1693866470000
9284
+ CreateStatusList1693866470000,
9285
+ CreateBitstringStatusList1741895823000
8828
9286
  ];
8829
9287
  var DataStoreEventLoggerMigrations = [
8830
9288
  CreateAuditEvents1701635835330
@@ -9029,6 +9487,8 @@ var DataStoreStatusListEntities = [
9029
9487
  StatusListEntity,
9030
9488
  StatusList2021Entity,
9031
9489
  OAuthStatusListEntity,
9490
+ BitstringStatusListEntity,
9491
+ BitstringStatusListEntryEntity,
9032
9492
  StatusListEntryEntity
9033
9493
  ];
9034
9494
  var DataStoreEventLoggerEntities = [