@sphereon/ssi-sdk.data-store 0.34.1-feature.SSISDK.17.bitstring.sl.8 → 0.34.1-feature.disable.test.8

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.js CHANGED
@@ -2745,7 +2745,7 @@ _ts_decorate26([
2745
2745
  _ts_metadata25("design:type", Number)
2746
2746
  ], StatusListEntryEntity.prototype, "statusListIndex", void 0);
2747
2747
  _ts_decorate26([
2748
- ManyToOne11(() => StatusList2021Entity, (statusList) => statusList.statusListEntries),
2748
+ ManyToOne11(() => StatusListEntity, (statusList) => statusList.statusListEntries),
2749
2749
  JoinColumn13({
2750
2750
  name: "statusListId"
2751
2751
  }),
@@ -2795,10 +2795,6 @@ StatusListEntryEntity = _ts_decorate26([
2795
2795
 
2796
2796
  // src/entities/statusList/StatusListEntities.ts
2797
2797
  import { typeOrmDateTime as typeOrmDateTime13 } from "@sphereon/ssi-sdk.agent-config";
2798
-
2799
- // src/entities/statusList/BitstringStatusListEntryEntity.ts
2800
- import { Validate as Validate10 } from "class-validator";
2801
- import { BaseEntity as BaseEntity20, Column as Column24, Entity as Entity22, JoinColumn as JoinColumn14, ManyToOne as ManyToOne12, PrimaryColumn as PrimaryColumn2 } from "typeorm";
2802
2798
  function _ts_decorate27(decorators, target, key, desc) {
2803
2799
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2804
2800
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -2810,162 +2806,8 @@ function _ts_metadata26(k, v) {
2810
2806
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2811
2807
  }
2812
2808
  __name(_ts_metadata26, "_ts_metadata");
2813
- var BitstringStatusListEntryEntity = class extends BaseEntity20 {
2814
- static {
2815
- __name(this, "BitstringStatusListEntryEntity");
2816
- }
2817
- statusListId;
2818
- statusListIndex;
2819
- statusList;
2820
- credentialId;
2821
- credentialHash;
2822
- entryCorrelationId;
2823
- statusPurpose;
2824
- bitsPerStatus;
2825
- statusMessage;
2826
- statusReference;
2827
- };
2828
- _ts_decorate27([
2829
- PrimaryColumn2({
2830
- name: "statusListId",
2831
- type: "varchar",
2832
- nullable: false,
2833
- unique: false
2834
- }),
2835
- Validate10(IsNonEmptyStringConstraint, {
2836
- message: "Status list id is required"
2837
- }),
2838
- _ts_metadata26("design:type", String)
2839
- ], BitstringStatusListEntryEntity.prototype, "statusListId", void 0);
2840
- _ts_decorate27([
2841
- PrimaryColumn2({
2842
- name: "statusListIndex",
2843
- type: "integer",
2844
- nullable: false,
2845
- unique: false
2846
- }),
2847
- _ts_metadata26("design:type", Number)
2848
- ], BitstringStatusListEntryEntity.prototype, "statusListIndex", void 0);
2849
- _ts_decorate27([
2850
- ManyToOne12(() => BitstringStatusListEntity, (statusList) => statusList.statusListEntries),
2851
- JoinColumn14({
2852
- name: "statusListId"
2853
- }),
2854
- _ts_metadata26("design:type", typeof BitstringStatusListEntity === "undefined" ? Object : BitstringStatusListEntity)
2855
- ], BitstringStatusListEntryEntity.prototype, "statusList", void 0);
2856
- _ts_decorate27([
2857
- Column24({
2858
- name: "credentialId",
2859
- type: "text",
2860
- nullable: true
2861
- }),
2862
- _ts_metadata26("design:type", String)
2863
- ], BitstringStatusListEntryEntity.prototype, "credentialId", void 0);
2864
- _ts_decorate27([
2865
- Column24({
2866
- name: "credentialHash",
2867
- length: 128,
2868
- type: "varchar",
2869
- nullable: true,
2870
- unique: false
2871
- }),
2872
- _ts_metadata26("design:type", String)
2873
- ], BitstringStatusListEntryEntity.prototype, "credentialHash", void 0);
2874
- _ts_decorate27([
2875
- Column24({
2876
- name: "correlationId",
2877
- length: 255,
2878
- type: "varchar",
2879
- nullable: true,
2880
- unique: false
2881
- }),
2882
- _ts_metadata26("design:type", String)
2883
- ], BitstringStatusListEntryEntity.prototype, "entryCorrelationId", void 0);
2884
- _ts_decorate27([
2885
- Column24({
2886
- type: "varchar",
2887
- name: "statusPurpose",
2888
- nullable: false
2889
- }),
2890
- _ts_metadata26("design:type", String)
2891
- ], BitstringStatusListEntryEntity.prototype, "statusPurpose", void 0);
2892
- _ts_decorate27([
2893
- Column24({
2894
- type: "integer",
2895
- name: "bitsPerStatus",
2896
- nullable: true,
2897
- default: 1
2898
- }),
2899
- _ts_metadata26("design:type", Number)
2900
- ], BitstringStatusListEntryEntity.prototype, "bitsPerStatus", void 0);
2901
- _ts_decorate27([
2902
- Column24({
2903
- type: "text",
2904
- name: "statusMessage",
2905
- nullable: true,
2906
- transformer: {
2907
- from(value) {
2908
- if (!value) {
2909
- return void 0;
2910
- }
2911
- return JSON.parse(value);
2912
- },
2913
- to(value) {
2914
- if (!value) {
2915
- return void 0;
2916
- }
2917
- return JSON.stringify(value);
2918
- }
2919
- }
2920
- }),
2921
- _ts_metadata26("design:type", typeof Array === "undefined" ? Object : Array)
2922
- ], BitstringStatusListEntryEntity.prototype, "statusMessage", void 0);
2923
- _ts_decorate27([
2924
- Column24({
2925
- type: "text",
2926
- name: "statusReference",
2927
- nullable: true,
2928
- transformer: {
2929
- from(value) {
2930
- if (!value) {
2931
- return void 0;
2932
- }
2933
- if (value.startsWith("[")) {
2934
- return JSON.parse(value);
2935
- }
2936
- return value;
2937
- },
2938
- to(value) {
2939
- if (!value) {
2940
- return void 0;
2941
- }
2942
- if (Array.isArray(value)) {
2943
- return JSON.stringify(value);
2944
- }
2945
- return value;
2946
- }
2947
- }
2948
- }),
2949
- _ts_metadata26("design:type", Object)
2950
- ], BitstringStatusListEntryEntity.prototype, "statusReference", void 0);
2951
- BitstringStatusListEntryEntity = _ts_decorate27([
2952
- Entity22("BitstringStatusListEntry")
2953
- ], BitstringStatusListEntryEntity);
2954
-
2955
- // src/entities/statusList/StatusListEntities.ts
2956
- function _ts_decorate28(decorators, target, key, desc) {
2957
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2958
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2959
- 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;
2960
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2961
- }
2962
- __name(_ts_decorate28, "_ts_decorate");
2963
- function _ts_metadata27(k, v) {
2964
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
2965
- }
2966
- __name(_ts_metadata27, "_ts_metadata");
2967
- var { BaseEntity: BaseEntity21, ChildEntity: ChildEntity5, Column: Column25, Entity: Entity23, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn3, TableInheritance: TableInheritance4, Unique } = typeorm9;
2968
- var StatusListEntity = class extends BaseEntity21 {
2809
+ var { BaseEntity: BaseEntity20, ChildEntity: ChildEntity5, Column: Column24, Entity: Entity22, OneToMany: OneToMany8, PrimaryColumn: PrimaryColumn2, TableInheritance: TableInheritance4, Unique } = typeorm9;
2810
+ var StatusListEntity = class extends BaseEntity20 {
2969
2811
  static {
2970
2812
  __name(this, "StatusListEntity");
2971
2813
  }
@@ -2977,33 +2819,34 @@ var StatusListEntity = class extends BaseEntity21 {
2977
2819
  credentialIdMode;
2978
2820
  proofFormat;
2979
2821
  statusListCredential;
2822
+ statusListEntries;
2980
2823
  };
2981
- _ts_decorate28([
2982
- PrimaryColumn3({
2824
+ _ts_decorate27([
2825
+ PrimaryColumn2({
2983
2826
  name: "id",
2984
2827
  type: "varchar"
2985
2828
  }),
2986
- _ts_metadata27("design:type", String)
2829
+ _ts_metadata26("design:type", String)
2987
2830
  ], StatusListEntity.prototype, "id", void 0);
2988
- _ts_decorate28([
2989
- Column25({
2831
+ _ts_decorate27([
2832
+ Column24({
2990
2833
  name: "correlationId",
2991
2834
  type: "varchar",
2992
2835
  nullable: false
2993
2836
  }),
2994
- _ts_metadata27("design:type", String)
2837
+ _ts_metadata26("design:type", String)
2995
2838
  ], StatusListEntity.prototype, "correlationId", void 0);
2996
- _ts_decorate28([
2997
- Column25({
2839
+ _ts_decorate27([
2840
+ Column24({
2998
2841
  name: "length",
2999
2842
  type: "integer",
3000
2843
  nullable: false,
3001
2844
  unique: false
3002
2845
  }),
3003
- _ts_metadata27("design:type", Number)
2846
+ _ts_metadata26("design:type", Number)
3004
2847
  ], StatusListEntity.prototype, "length", void 0);
3005
- _ts_decorate28([
3006
- Column25({
2848
+ _ts_decorate27([
2849
+ Column24({
3007
2850
  name: "issuer",
3008
2851
  type: "text",
3009
2852
  nullable: false,
@@ -3023,28 +2866,28 @@ _ts_decorate28([
3023
2866
  }
3024
2867
  }
3025
2868
  }),
3026
- _ts_metadata27("design:type", Object)
2869
+ _ts_metadata26("design:type", Object)
3027
2870
  ], StatusListEntity.prototype, "issuer", void 0);
3028
- _ts_decorate28([
3029
- Column25("simple-enum", {
2871
+ _ts_decorate27([
2872
+ Column24("simple-enum", {
3030
2873
  name: "driverType",
3031
2874
  enum: StatusListDriverType,
3032
2875
  nullable: false,
3033
2876
  default: StatusListDriverType.AGENT_TYPEORM
3034
2877
  }),
3035
- _ts_metadata27("design:type", typeof StatusListDriverType === "undefined" ? Object : StatusListDriverType)
2878
+ _ts_metadata26("design:type", typeof StatusListDriverType === "undefined" ? Object : StatusListDriverType)
3036
2879
  ], StatusListEntity.prototype, "driverType", void 0);
3037
- _ts_decorate28([
3038
- Column25("simple-enum", {
2880
+ _ts_decorate27([
2881
+ Column24("simple-enum", {
3039
2882
  name: "credentialIdMode",
3040
2883
  enum: StatusListCredentialIdMode,
3041
2884
  nullable: false,
3042
2885
  default: StatusListCredentialIdMode.ISSUANCE
3043
2886
  }),
3044
- _ts_metadata27("design:type", typeof StatusListCredentialIdMode === "undefined" ? Object : StatusListCredentialIdMode)
2887
+ _ts_metadata26("design:type", typeof StatusListCredentialIdMode === "undefined" ? Object : StatusListCredentialIdMode)
3045
2888
  ], StatusListEntity.prototype, "credentialIdMode", void 0);
3046
- _ts_decorate28([
3047
- Column25({
2889
+ _ts_decorate27([
2890
+ Column24({
3048
2891
  type: "varchar",
3049
2892
  name: "proofFormat",
3050
2893
  enum: [
@@ -3054,10 +2897,10 @@ _ts_decorate28([
3054
2897
  nullable: false,
3055
2898
  default: "lds"
3056
2899
  }),
3057
- _ts_metadata27("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
2900
+ _ts_metadata26("design:type", typeof CredentialProofFormat === "undefined" ? Object : CredentialProofFormat)
3058
2901
  ], StatusListEntity.prototype, "proofFormat", void 0);
3059
- _ts_decorate28([
3060
- Column25({
2902
+ _ts_decorate27([
2903
+ Column24({
3061
2904
  name: "statusListCredential",
3062
2905
  type: "text",
3063
2906
  nullable: true,
@@ -3077,10 +2920,14 @@ _ts_decorate28([
3077
2920
  }
3078
2921
  }
3079
2922
  }),
3080
- _ts_metadata27("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
2923
+ _ts_metadata26("design:type", typeof StatusListCredential === "undefined" ? Object : StatusListCredential)
3081
2924
  ], StatusListEntity.prototype, "statusListCredential", void 0);
3082
- StatusListEntity = _ts_decorate28([
3083
- Entity23("StatusList"),
2925
+ _ts_decorate27([
2926
+ OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
2927
+ _ts_metadata26("design:type", Array)
2928
+ ], StatusListEntity.prototype, "statusListEntries", void 0);
2929
+ StatusListEntity = _ts_decorate27([
2930
+ Entity22("StatusList"),
3084
2931
  Unique("UQ_correlationId", [
3085
2932
  "correlationId"
3086
2933
  ]),
@@ -3098,10 +2945,9 @@ var StatusList2021Entity = class extends StatusListEntity {
3098
2945
  }
3099
2946
  indexingDirection;
3100
2947
  statusPurpose;
3101
- statusListEntries;
3102
2948
  };
3103
- _ts_decorate28([
3104
- Column25({
2949
+ _ts_decorate27([
2950
+ Column24({
3105
2951
  type: "varchar",
3106
2952
  name: "indexingDirection",
3107
2953
  enum: [
@@ -3110,22 +2956,18 @@ _ts_decorate28([
3110
2956
  nullable: false,
3111
2957
  default: "rightToLeft"
3112
2958
  }),
3113
- _ts_metadata27("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
2959
+ _ts_metadata26("design:type", typeof StatusListIndexingDirection === "undefined" ? Object : StatusListIndexingDirection)
3114
2960
  ], StatusList2021Entity.prototype, "indexingDirection", void 0);
3115
- _ts_decorate28([
3116
- Column25({
2961
+ _ts_decorate27([
2962
+ Column24({
3117
2963
  type: "varchar",
3118
2964
  name: "statusPurpose",
3119
2965
  nullable: false,
3120
2966
  default: "revocation"
3121
2967
  }),
3122
- _ts_metadata27("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
2968
+ _ts_metadata26("design:type", typeof StatusPurpose2021 === "undefined" ? Object : StatusPurpose2021)
3123
2969
  ], StatusList2021Entity.prototype, "statusPurpose", void 0);
3124
- _ts_decorate28([
3125
- OneToMany8((type) => StatusListEntryEntity, (entry) => entry.statusList),
3126
- _ts_metadata27("design:type", Array)
3127
- ], StatusList2021Entity.prototype, "statusListEntries", void 0);
3128
- StatusList2021Entity = _ts_decorate28([
2970
+ StatusList2021Entity = _ts_decorate27([
3129
2971
  ChildEntity5(StatusListType.StatusList2021)
3130
2972
  ], StatusList2021Entity);
3131
2973
  var OAuthStatusListEntity = class extends StatusListEntity {
@@ -3135,113 +2977,41 @@ var OAuthStatusListEntity = class extends StatusListEntity {
3135
2977
  bitsPerStatus;
3136
2978
  expiresAt;
3137
2979
  };
3138
- _ts_decorate28([
3139
- Column25({
2980
+ _ts_decorate27([
2981
+ Column24({
3140
2982
  type: "integer",
3141
2983
  name: "bitsPerStatus",
3142
2984
  nullable: false
3143
2985
  }),
3144
- _ts_metadata27("design:type", Number)
2986
+ _ts_metadata26("design:type", Number)
3145
2987
  ], OAuthStatusListEntity.prototype, "bitsPerStatus", void 0);
3146
- _ts_decorate28([
3147
- Column25({
2988
+ _ts_decorate27([
2989
+ Column24({
3148
2990
  name: "expiresAt",
3149
2991
  nullable: true,
3150
2992
  type: typeOrmDateTime13()
3151
2993
  }),
3152
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
2994
+ _ts_metadata26("design:type", typeof Date === "undefined" ? Object : Date)
3153
2995
  ], OAuthStatusListEntity.prototype, "expiresAt", void 0);
3154
- OAuthStatusListEntity = _ts_decorate28([
2996
+ OAuthStatusListEntity = _ts_decorate27([
3155
2997
  ChildEntity5(StatusListType.OAuthStatusList)
3156
2998
  ], OAuthStatusListEntity);
3157
- var BitstringStatusListEntity = class extends StatusListEntity {
3158
- static {
3159
- __name(this, "BitstringStatusListEntity");
3160
- }
3161
- statusPurpose;
3162
- bitsPerStatus;
3163
- validFrom;
3164
- validUntil;
3165
- ttl;
3166
- statusListEntries;
3167
- };
3168
- _ts_decorate28([
3169
- Column25({
3170
- type: "varchar",
3171
- name: "statusPurpose",
3172
- nullable: false,
3173
- transformer: {
3174
- from(value) {
3175
- if (value?.includes(",")) {
3176
- return value.split(",").map((v) => v.trim());
3177
- }
3178
- return value;
3179
- },
3180
- to(value) {
3181
- if (Array.isArray(value)) {
3182
- return value.join(",");
3183
- }
3184
- return value;
3185
- }
3186
- }
3187
- }),
3188
- _ts_metadata27("design:type", Object)
3189
- ], BitstringStatusListEntity.prototype, "statusPurpose", void 0);
3190
- _ts_decorate28([
3191
- Column25({
3192
- type: "integer",
3193
- name: "bitsPerStatus",
3194
- nullable: false
3195
- }),
3196
- _ts_metadata27("design:type", Number)
3197
- ], BitstringStatusListEntity.prototype, "bitsPerStatus", void 0);
3198
- _ts_decorate28([
3199
- Column25({
3200
- name: "validFrom",
3201
- nullable: true,
3202
- type: typeOrmDateTime13()
3203
- }),
3204
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3205
- ], BitstringStatusListEntity.prototype, "validFrom", void 0);
3206
- _ts_decorate28([
3207
- Column25({
3208
- name: "validUntil",
3209
- nullable: true,
3210
- type: typeOrmDateTime13()
3211
- }),
3212
- _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3213
- ], BitstringStatusListEntity.prototype, "validUntil", void 0);
3214
- _ts_decorate28([
3215
- Column25({
3216
- type: "integer",
3217
- name: "ttl",
3218
- nullable: true
3219
- }),
3220
- _ts_metadata27("design:type", Number)
3221
- ], BitstringStatusListEntity.prototype, "ttl", void 0);
3222
- _ts_decorate28([
3223
- OneToMany8((type) => BitstringStatusListEntryEntity, (entry) => entry.statusList),
3224
- _ts_metadata27("design:type", Array)
3225
- ], BitstringStatusListEntity.prototype, "statusListEntries", void 0);
3226
- BitstringStatusListEntity = _ts_decorate28([
3227
- ChildEntity5(StatusListType.BitstringStatusList)
3228
- ], BitstringStatusListEntity);
3229
2999
 
3230
3000
  // src/entities/machineState/MachineStateInfoEntity.ts
3231
- import { BaseEntity as BaseEntity22, Column as Column26, CreateDateColumn as CreateDateColumn11, Entity as Entity24, PrimaryColumn as PrimaryColumn4, UpdateDateColumn as UpdateDateColumn11 } from "typeorm";
3001
+ import { BaseEntity as BaseEntity21, Column as Column25, CreateDateColumn as CreateDateColumn11, Entity as Entity23, PrimaryColumn as PrimaryColumn3, UpdateDateColumn as UpdateDateColumn11 } from "typeorm";
3232
3002
  import { typeOrmDateTime as typeOrmDateTime14 } from "@sphereon/ssi-sdk.agent-config";
3233
- function _ts_decorate29(decorators, target, key, desc) {
3003
+ function _ts_decorate28(decorators, target, key, desc) {
3234
3004
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3235
3005
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3236
3006
  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;
3237
3007
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3238
3008
  }
3239
- __name(_ts_decorate29, "_ts_decorate");
3240
- function _ts_metadata28(k, v) {
3009
+ __name(_ts_decorate28, "_ts_decorate");
3010
+ function _ts_metadata27(k, v) {
3241
3011
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3242
3012
  }
3243
- __name(_ts_metadata28, "_ts_metadata");
3244
- var MachineStateInfoEntity = class extends BaseEntity22 {
3013
+ __name(_ts_metadata27, "_ts_metadata");
3014
+ var MachineStateInfoEntity = class extends BaseEntity21 {
3245
3015
  static {
3246
3016
  __name(this, "MachineStateInfoEntity");
3247
3017
  }
@@ -3259,120 +3029,120 @@ var MachineStateInfoEntity = class extends BaseEntity22 {
3259
3029
  completedAt;
3260
3030
  tenantId;
3261
3031
  };
3262
- _ts_decorate29([
3263
- PrimaryColumn4({
3032
+ _ts_decorate28([
3033
+ PrimaryColumn3({
3264
3034
  name: "instance_id",
3265
3035
  type: "varchar",
3266
3036
  nullable: false
3267
3037
  }),
3268
- _ts_metadata28("design:type", String)
3038
+ _ts_metadata27("design:type", String)
3269
3039
  ], MachineStateInfoEntity.prototype, "instanceId", void 0);
3270
- _ts_decorate29([
3271
- Column26({
3040
+ _ts_decorate28([
3041
+ Column25({
3272
3042
  name: "session_id",
3273
3043
  type: "varchar",
3274
3044
  nullable: true
3275
3045
  }),
3276
- _ts_metadata28("design:type", String)
3046
+ _ts_metadata27("design:type", String)
3277
3047
  ], MachineStateInfoEntity.prototype, "sessionId", void 0);
3278
- _ts_decorate29([
3279
- Column26({
3048
+ _ts_decorate28([
3049
+ Column25({
3280
3050
  name: "machine_name",
3281
3051
  type: "varchar",
3282
3052
  nullable: false
3283
3053
  }),
3284
- _ts_metadata28("design:type", String)
3054
+ _ts_metadata27("design:type", String)
3285
3055
  ], MachineStateInfoEntity.prototype, "machineName", void 0);
3286
- _ts_decorate29([
3287
- Column26({
3056
+ _ts_decorate28([
3057
+ Column25({
3288
3058
  name: "latest_state_name",
3289
3059
  type: "varchar",
3290
3060
  nullable: true
3291
3061
  }),
3292
- _ts_metadata28("design:type", String)
3062
+ _ts_metadata27("design:type", String)
3293
3063
  ], MachineStateInfoEntity.prototype, "latestStateName", void 0);
3294
- _ts_decorate29([
3295
- Column26({
3064
+ _ts_decorate28([
3065
+ Column25({
3296
3066
  name: "latest_event_type",
3297
3067
  type: "varchar",
3298
3068
  nullable: false
3299
3069
  }),
3300
- _ts_metadata28("design:type", String)
3070
+ _ts_metadata27("design:type", String)
3301
3071
  ], MachineStateInfoEntity.prototype, "latestEventType", void 0);
3302
- _ts_decorate29([
3303
- Column26({
3072
+ _ts_decorate28([
3073
+ Column25({
3304
3074
  name: "state",
3305
3075
  type: "text",
3306
3076
  nullable: false
3307
3077
  }),
3308
- _ts_metadata28("design:type", String)
3078
+ _ts_metadata27("design:type", String)
3309
3079
  ], MachineStateInfoEntity.prototype, "state", void 0);
3310
- _ts_decorate29([
3080
+ _ts_decorate28([
3311
3081
  CreateDateColumn11({
3312
3082
  name: "created_at",
3313
3083
  nullable: false,
3314
3084
  type: typeOrmDateTime14()
3315
3085
  }),
3316
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3086
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3317
3087
  ], MachineStateInfoEntity.prototype, "createdAt", void 0);
3318
- _ts_decorate29([
3088
+ _ts_decorate28([
3319
3089
  UpdateDateColumn11({
3320
3090
  name: "updated_at",
3321
3091
  nullable: false,
3322
3092
  type: typeOrmDateTime14()
3323
3093
  }),
3324
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3094
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3325
3095
  ], MachineStateInfoEntity.prototype, "updatedAt", void 0);
3326
- _ts_decorate29([
3327
- Column26({
3096
+ _ts_decorate28([
3097
+ Column25({
3328
3098
  name: "updated_count",
3329
3099
  type: "integer",
3330
3100
  nullable: false
3331
3101
  }),
3332
- _ts_metadata28("design:type", Number)
3102
+ _ts_metadata27("design:type", Number)
3333
3103
  ], MachineStateInfoEntity.prototype, "updatedCount", void 0);
3334
- _ts_decorate29([
3335
- Column26({
3104
+ _ts_decorate28([
3105
+ Column25({
3336
3106
  name: "expires_at",
3337
3107
  nullable: true,
3338
3108
  type: typeOrmDateTime14()
3339
3109
  }),
3340
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3110
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3341
3111
  ], MachineStateInfoEntity.prototype, "expiresAt", void 0);
3342
- _ts_decorate29([
3343
- Column26({
3112
+ _ts_decorate28([
3113
+ Column25({
3344
3114
  name: "completed_at",
3345
3115
  nullable: true,
3346
3116
  type: typeOrmDateTime14()
3347
3117
  }),
3348
- _ts_metadata28("design:type", typeof Date === "undefined" ? Object : Date)
3118
+ _ts_metadata27("design:type", typeof Date === "undefined" ? Object : Date)
3349
3119
  ], MachineStateInfoEntity.prototype, "completedAt", void 0);
3350
- _ts_decorate29([
3351
- Column26({
3120
+ _ts_decorate28([
3121
+ Column25({
3352
3122
  name: "tenant_id",
3353
3123
  type: "varchar",
3354
3124
  nullable: true
3355
3125
  }),
3356
- _ts_metadata28("design:type", String)
3126
+ _ts_metadata27("design:type", String)
3357
3127
  ], MachineStateInfoEntity.prototype, "tenantId", void 0);
3358
- MachineStateInfoEntity = _ts_decorate29([
3359
- Entity24("MachineStateInfoEntity")
3128
+ MachineStateInfoEntity = _ts_decorate28([
3129
+ Entity23("MachineStateInfoEntity")
3360
3130
  ], MachineStateInfoEntity);
3361
3131
 
3362
3132
  // src/entities/contact/OrganizationEntity.ts
3363
3133
  import { IsNotEmpty as IsNotEmpty10, validate as validate16 } from "class-validator";
3364
- import { BeforeInsert as BeforeInsert18, BeforeUpdate as BeforeUpdate18, ChildEntity as ChildEntity6, Column as Column27 } from "typeorm";
3365
- function _ts_decorate30(decorators, target, key, desc) {
3134
+ import { BeforeInsert as BeforeInsert18, BeforeUpdate as BeforeUpdate18, ChildEntity as ChildEntity6, Column as Column26 } from "typeorm";
3135
+ function _ts_decorate29(decorators, target, key, desc) {
3366
3136
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3367
3137
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3368
3138
  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;
3369
3139
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3370
3140
  }
3371
- __name(_ts_decorate30, "_ts_decorate");
3372
- function _ts_metadata29(k, v) {
3141
+ __name(_ts_decorate29, "_ts_decorate");
3142
+ function _ts_metadata28(k, v) {
3373
3143
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3374
3144
  }
3375
- __name(_ts_metadata29, "_ts_metadata");
3145
+ __name(_ts_metadata28, "_ts_metadata");
3376
3146
  var OrganizationEntity = class extends BaseContactEntity {
3377
3147
  static {
3378
3148
  __name(this, "OrganizationEntity");
@@ -3392,8 +3162,8 @@ var OrganizationEntity = class extends BaseContactEntity {
3392
3162
  }
3393
3163
  }
3394
3164
  };
3395
- _ts_decorate30([
3396
- Column27("varchar", {
3165
+ _ts_decorate29([
3166
+ Column26("varchar", {
3397
3167
  name: "legal_name",
3398
3168
  length: 255,
3399
3169
  nullable: false,
@@ -3402,10 +3172,10 @@ _ts_decorate30([
3402
3172
  IsNotEmpty10({
3403
3173
  message: "Blank legal names are not allowed"
3404
3174
  }),
3405
- _ts_metadata29("design:type", String)
3175
+ _ts_metadata28("design:type", String)
3406
3176
  ], OrganizationEntity.prototype, "legalName", void 0);
3407
- _ts_decorate30([
3408
- Column27("varchar", {
3177
+ _ts_decorate29([
3178
+ Column26("varchar", {
3409
3179
  name: "display_name",
3410
3180
  length: 255,
3411
3181
  nullable: false,
@@ -3414,47 +3184,47 @@ _ts_decorate30([
3414
3184
  IsNotEmpty10({
3415
3185
  message: "Blank display names are not allowed"
3416
3186
  }),
3417
- _ts_metadata29("design:type", String)
3187
+ _ts_metadata28("design:type", String)
3418
3188
  ], OrganizationEntity.prototype, "displayName", void 0);
3419
- _ts_decorate30([
3420
- Column27("text", {
3189
+ _ts_decorate29([
3190
+ Column26("text", {
3421
3191
  name: "owner_id",
3422
3192
  nullable: true
3423
3193
  }),
3424
- _ts_metadata29("design:type", String)
3194
+ _ts_metadata28("design:type", String)
3425
3195
  ], OrganizationEntity.prototype, "ownerId", void 0);
3426
- _ts_decorate30([
3427
- Column27("text", {
3196
+ _ts_decorate29([
3197
+ Column26("text", {
3428
3198
  name: "tenant_id",
3429
3199
  nullable: true
3430
3200
  }),
3431
- _ts_metadata29("design:type", String)
3201
+ _ts_metadata28("design:type", String)
3432
3202
  ], OrganizationEntity.prototype, "tenantId", void 0);
3433
- _ts_decorate30([
3203
+ _ts_decorate29([
3434
3204
  BeforeInsert18(),
3435
3205
  BeforeUpdate18(),
3436
- _ts_metadata29("design:type", Function),
3437
- _ts_metadata29("design:paramtypes", []),
3438
- _ts_metadata29("design:returntype", Promise)
3206
+ _ts_metadata28("design:type", Function),
3207
+ _ts_metadata28("design:paramtypes", []),
3208
+ _ts_metadata28("design:returntype", Promise)
3439
3209
  ], OrganizationEntity.prototype, "validate", null);
3440
- OrganizationEntity = _ts_decorate30([
3210
+ OrganizationEntity = _ts_decorate29([
3441
3211
  ChildEntity6("Organization")
3442
3212
  ], OrganizationEntity);
3443
3213
 
3444
3214
  // src/entities/contact/NaturalPersonEntity.ts
3445
- import { Column as Column28, ChildEntity as ChildEntity7, BeforeInsert as BeforeInsert19, BeforeUpdate as BeforeUpdate19 } from "typeorm";
3446
- import { validate as validate17, IsNotEmpty as IsNotEmpty11, Validate as Validate11 } from "class-validator";
3447
- function _ts_decorate31(decorators, target, key, desc) {
3215
+ import { Column as Column27, ChildEntity as ChildEntity7, BeforeInsert as BeforeInsert19, BeforeUpdate as BeforeUpdate19 } from "typeorm";
3216
+ import { validate as validate17, IsNotEmpty as IsNotEmpty11, Validate as Validate10 } from "class-validator";
3217
+ function _ts_decorate30(decorators, target, key, desc) {
3448
3218
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3449
3219
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3450
3220
  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;
3451
3221
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3452
3222
  }
3453
- __name(_ts_decorate31, "_ts_decorate");
3454
- function _ts_metadata30(k, v) {
3223
+ __name(_ts_decorate30, "_ts_decorate");
3224
+ function _ts_metadata29(k, v) {
3455
3225
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3456
3226
  }
3457
- __name(_ts_metadata30, "_ts_metadata");
3227
+ __name(_ts_metadata29, "_ts_metadata");
3458
3228
  var NaturalPersonEntity = class extends BaseContactEntity {
3459
3229
  static {
3460
3230
  __name(this, "NaturalPersonEntity");
@@ -3476,8 +3246,8 @@ var NaturalPersonEntity = class extends BaseContactEntity {
3476
3246
  }
3477
3247
  }
3478
3248
  };
3479
- _ts_decorate31([
3480
- Column28("varchar", {
3249
+ _ts_decorate30([
3250
+ Column27("varchar", {
3481
3251
  name: "first_name",
3482
3252
  length: 255,
3483
3253
  nullable: false,
@@ -3486,22 +3256,22 @@ _ts_decorate31([
3486
3256
  IsNotEmpty11({
3487
3257
  message: "Blank first names are not allowed"
3488
3258
  }),
3489
- _ts_metadata30("design:type", String)
3259
+ _ts_metadata29("design:type", String)
3490
3260
  ], NaturalPersonEntity.prototype, "firstName", void 0);
3491
- _ts_decorate31([
3492
- Column28("varchar", {
3261
+ _ts_decorate30([
3262
+ Column27("varchar", {
3493
3263
  name: "middle_name",
3494
3264
  length: 255,
3495
3265
  nullable: true,
3496
3266
  unique: false
3497
3267
  }),
3498
- Validate11(IsNonEmptyStringConstraint, {
3268
+ Validate10(IsNonEmptyStringConstraint, {
3499
3269
  message: "Blank middle names are not allowed"
3500
3270
  }),
3501
- _ts_metadata30("design:type", String)
3271
+ _ts_metadata29("design:type", String)
3502
3272
  ], NaturalPersonEntity.prototype, "middleName", void 0);
3503
- _ts_decorate31([
3504
- Column28("varchar", {
3273
+ _ts_decorate30([
3274
+ Column27("varchar", {
3505
3275
  name: "last_name",
3506
3276
  length: 255,
3507
3277
  nullable: false,
@@ -3510,10 +3280,10 @@ _ts_decorate31([
3510
3280
  IsNotEmpty11({
3511
3281
  message: "Blank last names are not allowed"
3512
3282
  }),
3513
- _ts_metadata30("design:type", String)
3283
+ _ts_metadata29("design:type", String)
3514
3284
  ], NaturalPersonEntity.prototype, "lastName", void 0);
3515
- _ts_decorate31([
3516
- Column28("varchar", {
3285
+ _ts_decorate30([
3286
+ Column27("varchar", {
3517
3287
  name: "display_name",
3518
3288
  length: 255,
3519
3289
  nullable: false,
@@ -3522,30 +3292,30 @@ _ts_decorate31([
3522
3292
  IsNotEmpty11({
3523
3293
  message: "Blank display names are not allowed"
3524
3294
  }),
3525
- _ts_metadata30("design:type", String)
3295
+ _ts_metadata29("design:type", String)
3526
3296
  ], NaturalPersonEntity.prototype, "displayName", void 0);
3527
- _ts_decorate31([
3528
- Column28("text", {
3297
+ _ts_decorate30([
3298
+ Column27("text", {
3529
3299
  name: "owner_id",
3530
3300
  nullable: true
3531
3301
  }),
3532
- _ts_metadata30("design:type", String)
3302
+ _ts_metadata29("design:type", String)
3533
3303
  ], NaturalPersonEntity.prototype, "ownerId", void 0);
3534
- _ts_decorate31([
3535
- Column28("text", {
3304
+ _ts_decorate30([
3305
+ Column27("text", {
3536
3306
  name: "tenant_id",
3537
3307
  nullable: true
3538
3308
  }),
3539
- _ts_metadata30("design:type", String)
3309
+ _ts_metadata29("design:type", String)
3540
3310
  ], NaturalPersonEntity.prototype, "tenantId", void 0);
3541
- _ts_decorate31([
3311
+ _ts_decorate30([
3542
3312
  BeforeInsert19(),
3543
3313
  BeforeUpdate19(),
3544
- _ts_metadata30("design:type", Function),
3545
- _ts_metadata30("design:paramtypes", []),
3546
- _ts_metadata30("design:returntype", Promise)
3314
+ _ts_metadata29("design:type", Function),
3315
+ _ts_metadata29("design:paramtypes", []),
3316
+ _ts_metadata29("design:returntype", Promise)
3547
3317
  ], NaturalPersonEntity.prototype, "validate", null);
3548
- NaturalPersonEntity = _ts_decorate31([
3318
+ NaturalPersonEntity = _ts_decorate30([
3549
3319
  ChildEntity7("NaturalPerson")
3550
3320
  ], NaturalPersonEntity);
3551
3321
 
@@ -3553,19 +3323,19 @@ NaturalPersonEntity = _ts_decorate31([
3553
3323
  import { ActionType, InitiatorType, LoggingEventType, LogLevel, SubSystem, System, SystemCorrelationIdType } from "@sphereon/ssi-types";
3554
3324
  import { CredentialType, PartyCorrelationType } from "@sphereon/ssi-sdk.core";
3555
3325
  import { typeOrmDateTime as typeOrmDateTime15 } from "@sphereon/ssi-sdk.agent-config";
3556
- import { BaseEntity as BaseEntity23, Column as Column29, CreateDateColumn as CreateDateColumn12, Entity as Entity25, PrimaryGeneratedColumn as PrimaryGeneratedColumn21, UpdateDateColumn as UpdateDateColumn12 } from "typeorm";
3557
- function _ts_decorate32(decorators, target, key, desc) {
3326
+ import { BaseEntity as BaseEntity22, Column as Column28, CreateDateColumn as CreateDateColumn12, Entity as Entity24, PrimaryGeneratedColumn as PrimaryGeneratedColumn21, UpdateDateColumn as UpdateDateColumn12 } from "typeorm";
3327
+ function _ts_decorate31(decorators, target, key, desc) {
3558
3328
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3559
3329
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3560
3330
  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;
3561
3331
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3562
3332
  }
3563
- __name(_ts_decorate32, "_ts_decorate");
3564
- function _ts_metadata31(k, v) {
3333
+ __name(_ts_decorate31, "_ts_decorate");
3334
+ function _ts_metadata30(k, v) {
3565
3335
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3566
3336
  }
3567
- __name(_ts_metadata31, "_ts_metadata");
3568
- var AuditEventEntity = class extends BaseEntity23 {
3337
+ __name(_ts_metadata30, "_ts_metadata");
3338
+ var AuditEventEntity = class extends BaseEntity22 {
3569
3339
  static {
3570
3340
  __name(this, "AuditEventEntity");
3571
3341
  }
@@ -3596,240 +3366,240 @@ var AuditEventEntity = class extends BaseEntity23 {
3596
3366
  createdAt;
3597
3367
  lastUpdatedAt;
3598
3368
  };
3599
- _ts_decorate32([
3369
+ _ts_decorate31([
3600
3370
  PrimaryGeneratedColumn21("uuid"),
3601
- _ts_metadata31("design:type", String)
3371
+ _ts_metadata30("design:type", String)
3602
3372
  ], AuditEventEntity.prototype, "id", void 0);
3603
- _ts_decorate32([
3604
- Column29({
3373
+ _ts_decorate31([
3374
+ Column28({
3605
3375
  name: "timestamp",
3606
3376
  nullable: false,
3607
3377
  unique: false,
3608
3378
  type: typeOrmDateTime15()
3609
3379
  }),
3610
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3380
+ _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3611
3381
  ], AuditEventEntity.prototype, "timestamp", void 0);
3612
- _ts_decorate32([
3613
- Column29("simple-enum", {
3382
+ _ts_decorate31([
3383
+ Column28("simple-enum", {
3614
3384
  name: "eventType",
3615
3385
  enum: LoggingEventType,
3616
3386
  nullable: false,
3617
3387
  unique: false
3618
3388
  }),
3619
- _ts_metadata31("design:type", typeof LoggingEventType === "undefined" ? Object : LoggingEventType)
3389
+ _ts_metadata30("design:type", typeof LoggingEventType === "undefined" ? Object : LoggingEventType)
3620
3390
  ], AuditEventEntity.prototype, "type", void 0);
3621
- _ts_decorate32([
3622
- Column29("simple-enum", {
3391
+ _ts_decorate31([
3392
+ Column28("simple-enum", {
3623
3393
  name: "level",
3624
3394
  enum: LogLevel,
3625
3395
  nullable: false,
3626
3396
  unique: false
3627
3397
  }),
3628
- _ts_metadata31("design:type", typeof LogLevel === "undefined" ? Object : LogLevel)
3398
+ _ts_metadata30("design:type", typeof LogLevel === "undefined" ? Object : LogLevel)
3629
3399
  ], AuditEventEntity.prototype, "level", void 0);
3630
- _ts_decorate32([
3631
- Column29("text", {
3400
+ _ts_decorate31([
3401
+ Column28("text", {
3632
3402
  name: "correlationId",
3633
3403
  nullable: false,
3634
3404
  unique: false
3635
3405
  }),
3636
- _ts_metadata31("design:type", String)
3406
+ _ts_metadata30("design:type", String)
3637
3407
  ], AuditEventEntity.prototype, "correlationId", void 0);
3638
- _ts_decorate32([
3639
- Column29("simple-enum", {
3408
+ _ts_decorate31([
3409
+ Column28("simple-enum", {
3640
3410
  name: "system",
3641
3411
  enum: System,
3642
3412
  nullable: false,
3643
3413
  unique: false
3644
3414
  }),
3645
- _ts_metadata31("design:type", typeof System === "undefined" ? Object : System)
3415
+ _ts_metadata30("design:type", typeof System === "undefined" ? Object : System)
3646
3416
  ], AuditEventEntity.prototype, "system", void 0);
3647
- _ts_decorate32([
3648
- Column29("simple-enum", {
3417
+ _ts_decorate31([
3418
+ Column28("simple-enum", {
3649
3419
  name: "subSystemType",
3650
3420
  enum: SubSystem,
3651
3421
  nullable: false,
3652
3422
  unique: false
3653
3423
  }),
3654
- _ts_metadata31("design:type", typeof SubSystem === "undefined" ? Object : SubSystem)
3424
+ _ts_metadata30("design:type", typeof SubSystem === "undefined" ? Object : SubSystem)
3655
3425
  ], AuditEventEntity.prototype, "subSystemType", void 0);
3656
- _ts_decorate32([
3657
- Column29("simple-enum", {
3426
+ _ts_decorate31([
3427
+ Column28("simple-enum", {
3658
3428
  name: "actionType",
3659
3429
  enum: ActionType,
3660
3430
  nullable: false,
3661
3431
  unique: false
3662
3432
  }),
3663
- _ts_metadata31("design:type", typeof ActionType === "undefined" ? Object : ActionType)
3433
+ _ts_metadata30("design:type", typeof ActionType === "undefined" ? Object : ActionType)
3664
3434
  ], AuditEventEntity.prototype, "actionType", void 0);
3665
- _ts_decorate32([
3666
- Column29({
3435
+ _ts_decorate31([
3436
+ Column28({
3667
3437
  name: "actionSubType",
3668
3438
  type: "varchar",
3669
3439
  nullable: false,
3670
3440
  unique: false
3671
3441
  }),
3672
- _ts_metadata31("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
3442
+ _ts_metadata30("design:type", typeof ActionSubType === "undefined" ? Object : ActionSubType)
3673
3443
  ], AuditEventEntity.prototype, "actionSubType", void 0);
3674
- _ts_decorate32([
3675
- Column29("simple-enum", {
3444
+ _ts_decorate31([
3445
+ Column28("simple-enum", {
3676
3446
  name: "initiatorType",
3677
3447
  enum: InitiatorType,
3678
3448
  nullable: false,
3679
3449
  unique: false
3680
3450
  }),
3681
- _ts_metadata31("design:type", typeof InitiatorType === "undefined" ? Object : InitiatorType)
3451
+ _ts_metadata30("design:type", typeof InitiatorType === "undefined" ? Object : InitiatorType)
3682
3452
  ], AuditEventEntity.prototype, "initiatorType", void 0);
3683
- _ts_decorate32([
3684
- Column29("simple-enum", {
3453
+ _ts_decorate31([
3454
+ Column28("simple-enum", {
3685
3455
  name: "systemCorrelationIdType",
3686
3456
  enum: SystemCorrelationIdType,
3687
3457
  nullable: true,
3688
3458
  unique: false
3689
3459
  }),
3690
- _ts_metadata31("design:type", typeof SystemCorrelationIdType === "undefined" ? Object : SystemCorrelationIdType)
3460
+ _ts_metadata30("design:type", typeof SystemCorrelationIdType === "undefined" ? Object : SystemCorrelationIdType)
3691
3461
  ], AuditEventEntity.prototype, "systemCorrelationIdType", void 0);
3692
- _ts_decorate32([
3693
- Column29("text", {
3462
+ _ts_decorate31([
3463
+ Column28("text", {
3694
3464
  name: "systemCorrelationId",
3695
3465
  nullable: true,
3696
3466
  unique: false
3697
3467
  }),
3698
- _ts_metadata31("design:type", String)
3468
+ _ts_metadata30("design:type", String)
3699
3469
  ], AuditEventEntity.prototype, "systemCorrelationId", void 0);
3700
- _ts_decorate32([
3701
- Column29("text", {
3470
+ _ts_decorate31([
3471
+ Column28("text", {
3702
3472
  name: "systemAlias",
3703
3473
  nullable: true,
3704
3474
  unique: false
3705
3475
  }),
3706
- _ts_metadata31("design:type", String)
3476
+ _ts_metadata30("design:type", String)
3707
3477
  ], AuditEventEntity.prototype, "systemAlias", void 0);
3708
- _ts_decorate32([
3709
- Column29("simple-enum", {
3478
+ _ts_decorate31([
3479
+ Column28("simple-enum", {
3710
3480
  name: "partyCorrelationType",
3711
3481
  enum: PartyCorrelationType,
3712
3482
  nullable: true,
3713
3483
  unique: false
3714
3484
  }),
3715
- _ts_metadata31("design:type", typeof PartyCorrelationType === "undefined" ? Object : PartyCorrelationType)
3485
+ _ts_metadata30("design:type", typeof PartyCorrelationType === "undefined" ? Object : PartyCorrelationType)
3716
3486
  ], AuditEventEntity.prototype, "partyCorrelationType", void 0);
3717
- _ts_decorate32([
3718
- Column29("text", {
3487
+ _ts_decorate31([
3488
+ Column28("text", {
3719
3489
  name: "partyCorrelationId",
3720
3490
  nullable: true,
3721
3491
  unique: false
3722
3492
  }),
3723
- _ts_metadata31("design:type", String)
3493
+ _ts_metadata30("design:type", String)
3724
3494
  ], AuditEventEntity.prototype, "partyCorrelationId", void 0);
3725
- _ts_decorate32([
3726
- Column29("text", {
3495
+ _ts_decorate31([
3496
+ Column28("text", {
3727
3497
  name: "partyAlias",
3728
3498
  nullable: true,
3729
3499
  unique: false
3730
3500
  }),
3731
- _ts_metadata31("design:type", String)
3501
+ _ts_metadata30("design:type", String)
3732
3502
  ], AuditEventEntity.prototype, "partyAlias", void 0);
3733
- _ts_decorate32([
3734
- Column29("text", {
3503
+ _ts_decorate31([
3504
+ Column28("text", {
3735
3505
  name: "description",
3736
3506
  nullable: false,
3737
3507
  unique: false
3738
3508
  }),
3739
- _ts_metadata31("design:type", String)
3509
+ _ts_metadata30("design:type", String)
3740
3510
  ], AuditEventEntity.prototype, "description", void 0);
3741
- _ts_decorate32([
3742
- Column29("simple-enum", {
3511
+ _ts_decorate31([
3512
+ Column28("simple-enum", {
3743
3513
  name: "credentialType",
3744
3514
  enum: CredentialType,
3745
3515
  nullable: true,
3746
3516
  unique: false
3747
3517
  }),
3748
- _ts_metadata31("design:type", typeof CredentialType === "undefined" ? Object : CredentialType)
3518
+ _ts_metadata30("design:type", typeof CredentialType === "undefined" ? Object : CredentialType)
3749
3519
  ], AuditEventEntity.prototype, "credentialType", void 0);
3750
- _ts_decorate32([
3751
- Column29("text", {
3520
+ _ts_decorate31([
3521
+ Column28("text", {
3752
3522
  name: "credentialHash",
3753
3523
  nullable: true,
3754
3524
  unique: false
3755
3525
  }),
3756
- _ts_metadata31("design:type", String)
3526
+ _ts_metadata30("design:type", String)
3757
3527
  ], AuditEventEntity.prototype, "credentialHash", void 0);
3758
- _ts_decorate32([
3759
- Column29("text", {
3528
+ _ts_decorate31([
3529
+ Column28("text", {
3760
3530
  name: "parentCredentialHash",
3761
3531
  nullable: true,
3762
3532
  unique: false
3763
3533
  }),
3764
- _ts_metadata31("design:type", String)
3534
+ _ts_metadata30("design:type", String)
3765
3535
  ], AuditEventEntity.prototype, "parentCredentialHash", void 0);
3766
- _ts_decorate32([
3767
- Column29("text", {
3536
+ _ts_decorate31([
3537
+ Column28("text", {
3768
3538
  name: "originalCredential",
3769
3539
  nullable: true,
3770
3540
  unique: false
3771
3541
  }),
3772
- _ts_metadata31("design:type", String)
3542
+ _ts_metadata30("design:type", String)
3773
3543
  ], AuditEventEntity.prototype, "originalCredential", void 0);
3774
- _ts_decorate32([
3775
- Column29("text", {
3544
+ _ts_decorate31([
3545
+ Column28("text", {
3776
3546
  name: "sharePurpose",
3777
3547
  nullable: true,
3778
3548
  unique: false
3779
3549
  }),
3780
- _ts_metadata31("design:type", String)
3550
+ _ts_metadata30("design:type", String)
3781
3551
  ], AuditEventEntity.prototype, "sharePurpose", void 0);
3782
- _ts_decorate32([
3783
- Column29("text", {
3552
+ _ts_decorate31([
3553
+ Column28("text", {
3784
3554
  name: "data",
3785
3555
  nullable: true,
3786
3556
  unique: false
3787
3557
  }),
3788
- _ts_metadata31("design:type", String)
3558
+ _ts_metadata30("design:type", String)
3789
3559
  ], AuditEventEntity.prototype, "data", void 0);
3790
- _ts_decorate32([
3791
- Column29("text", {
3560
+ _ts_decorate31([
3561
+ Column28("text", {
3792
3562
  name: "diagnosticData",
3793
3563
  nullable: true,
3794
3564
  unique: false
3795
3565
  }),
3796
- _ts_metadata31("design:type", String)
3566
+ _ts_metadata30("design:type", String)
3797
3567
  ], AuditEventEntity.prototype, "diagnosticData", void 0);
3798
- _ts_decorate32([
3568
+ _ts_decorate31([
3799
3569
  CreateDateColumn12({
3800
3570
  name: "created_at",
3801
3571
  nullable: false,
3802
3572
  type: typeOrmDateTime15()
3803
3573
  }),
3804
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3574
+ _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3805
3575
  ], AuditEventEntity.prototype, "createdAt", void 0);
3806
- _ts_decorate32([
3576
+ _ts_decorate31([
3807
3577
  UpdateDateColumn12({
3808
3578
  name: "last_updated_at",
3809
3579
  nullable: false,
3810
3580
  type: typeOrmDateTime15()
3811
3581
  }),
3812
- _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
3582
+ _ts_metadata30("design:type", typeof Date === "undefined" ? Object : Date)
3813
3583
  ], AuditEventEntity.prototype, "lastUpdatedAt", void 0);
3814
- AuditEventEntity = _ts_decorate32([
3815
- Entity25("AuditEvents")
3584
+ AuditEventEntity = _ts_decorate31([
3585
+ Entity24("AuditEvents")
3816
3586
  ], AuditEventEntity);
3817
3587
 
3818
3588
  // src/entities/digitalCredential/DigitalCredentialEntity.ts
3819
3589
  import { typeormDate, typeOrmDateTime as typeOrmDateTime16 } from "@sphereon/ssi-sdk.agent-config";
3820
- import { BaseEntity as BaseEntity24, Column as Column30, CreateDateColumn as CreateDateColumn13, Entity as Entity26, PrimaryGeneratedColumn as PrimaryGeneratedColumn22, UpdateDateColumn as UpdateDateColumn13 } from "typeorm";
3821
- function _ts_decorate33(decorators, target, key, desc) {
3590
+ import { BaseEntity as BaseEntity23, Column as Column29, CreateDateColumn as CreateDateColumn13, Entity as Entity25, PrimaryGeneratedColumn as PrimaryGeneratedColumn22, UpdateDateColumn as UpdateDateColumn13 } from "typeorm";
3591
+ function _ts_decorate32(decorators, target, key, desc) {
3822
3592
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3823
3593
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3824
3594
  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;
3825
3595
  return c > 3 && r && Object.defineProperty(target, key, r), r;
3826
3596
  }
3827
- __name(_ts_decorate33, "_ts_decorate");
3828
- function _ts_metadata32(k, v) {
3597
+ __name(_ts_decorate32, "_ts_decorate");
3598
+ function _ts_metadata31(k, v) {
3829
3599
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
3830
3600
  }
3831
- __name(_ts_metadata32, "_ts_metadata");
3832
- var DigitalCredentialEntity = class extends BaseEntity24 {
3601
+ __name(_ts_metadata31, "_ts_metadata");
3602
+ var DigitalCredentialEntity = class extends BaseEntity23 {
3833
3603
  static {
3834
3604
  __name(this, "DigitalCredentialEntity");
3835
3605
  }
@@ -3862,236 +3632,236 @@ var DigitalCredentialEntity = class extends BaseEntity24 {
3862
3632
  verifiedAt;
3863
3633
  revokedAt;
3864
3634
  };
3865
- _ts_decorate33([
3635
+ _ts_decorate32([
3866
3636
  PrimaryGeneratedColumn22("uuid"),
3867
- _ts_metadata32("design:type", String)
3637
+ _ts_metadata31("design:type", String)
3868
3638
  ], DigitalCredentialEntity.prototype, "id", void 0);
3869
- _ts_decorate33([
3870
- Column30("text", {
3639
+ _ts_decorate32([
3640
+ Column29("text", {
3871
3641
  name: "parent_id",
3872
3642
  nullable: true
3873
3643
  }),
3874
- _ts_metadata32("design:type", String)
3644
+ _ts_metadata31("design:type", String)
3875
3645
  ], DigitalCredentialEntity.prototype, "parentId", void 0);
3876
- _ts_decorate33([
3877
- Column30("simple-enum", {
3646
+ _ts_decorate32([
3647
+ Column29("simple-enum", {
3878
3648
  name: "document_type",
3879
3649
  enum: DocumentType,
3880
3650
  nullable: false
3881
3651
  }),
3882
- _ts_metadata32("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
3652
+ _ts_metadata31("design:type", typeof DocumentType === "undefined" ? Object : DocumentType)
3883
3653
  ], DigitalCredentialEntity.prototype, "documentType", void 0);
3884
- _ts_decorate33([
3885
- Column30("simple-enum", {
3654
+ _ts_decorate32([
3655
+ Column29("simple-enum", {
3886
3656
  name: "regulation_type",
3887
3657
  enum: RegulationType,
3888
3658
  nullable: false
3889
3659
  }),
3890
- _ts_metadata32("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
3660
+ _ts_metadata31("design:type", typeof RegulationType === "undefined" ? Object : RegulationType)
3891
3661
  ], DigitalCredentialEntity.prototype, "regulationType", void 0);
3892
- _ts_decorate33([
3893
- Column30("simple-enum", {
3662
+ _ts_decorate32([
3663
+ Column29("simple-enum", {
3894
3664
  name: "document_format",
3895
3665
  enum: CredentialDocumentFormat,
3896
3666
  nullable: false
3897
3667
  }),
3898
- _ts_metadata32("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
3668
+ _ts_metadata31("design:type", typeof CredentialDocumentFormat === "undefined" ? Object : CredentialDocumentFormat)
3899
3669
  ], DigitalCredentialEntity.prototype, "documentFormat", void 0);
3900
- _ts_decorate33([
3901
- Column30("simple-enum", {
3670
+ _ts_decorate32([
3671
+ Column29("simple-enum", {
3902
3672
  name: "credential_role",
3903
3673
  enum: CredentialRole,
3904
3674
  nullable: false
3905
3675
  }),
3906
- _ts_metadata32("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
3676
+ _ts_metadata31("design:type", typeof CredentialRole === "undefined" ? Object : CredentialRole)
3907
3677
  ], DigitalCredentialEntity.prototype, "credentialRole", void 0);
3908
- _ts_decorate33([
3909
- Column30("text", {
3678
+ _ts_decorate32([
3679
+ Column29("text", {
3910
3680
  name: "raw_document",
3911
3681
  nullable: false
3912
3682
  }),
3913
- _ts_metadata32("design:type", String)
3683
+ _ts_metadata31("design:type", String)
3914
3684
  ], DigitalCredentialEntity.prototype, "rawDocument", void 0);
3915
- _ts_decorate33([
3916
- Column30("text", {
3685
+ _ts_decorate32([
3686
+ Column29("text", {
3917
3687
  name: "uniform_document",
3918
3688
  nullable: false
3919
3689
  }),
3920
- _ts_metadata32("design:type", String)
3690
+ _ts_metadata31("design:type", String)
3921
3691
  ], DigitalCredentialEntity.prototype, "uniformDocument", void 0);
3922
- _ts_decorate33([
3923
- Column30("text", {
3692
+ _ts_decorate32([
3693
+ Column29("text", {
3924
3694
  name: "credential_id",
3925
3695
  nullable: true,
3926
3696
  unique: false
3927
3697
  }),
3928
- _ts_metadata32("design:type", String)
3698
+ _ts_metadata31("design:type", String)
3929
3699
  ], DigitalCredentialEntity.prototype, "credentialId", void 0);
3930
- _ts_decorate33([
3931
- Column30("text", {
3700
+ _ts_decorate32([
3701
+ Column29("text", {
3932
3702
  name: "hash",
3933
3703
  nullable: false,
3934
3704
  unique: true
3935
3705
  }),
3936
- _ts_metadata32("design:type", String)
3706
+ _ts_metadata31("design:type", String)
3937
3707
  ], DigitalCredentialEntity.prototype, "hash", void 0);
3938
- _ts_decorate33([
3939
- Column30("text", {
3708
+ _ts_decorate32([
3709
+ Column29("text", {
3940
3710
  name: "kms_key_ref",
3941
3711
  nullable: true
3942
3712
  }),
3943
- _ts_metadata32("design:type", String)
3713
+ _ts_metadata31("design:type", String)
3944
3714
  ], DigitalCredentialEntity.prototype, "kmsKeyRef", void 0);
3945
- _ts_decorate33([
3946
- Column30("text", {
3715
+ _ts_decorate32([
3716
+ Column29("text", {
3947
3717
  name: "identifier_method",
3948
3718
  nullable: true
3949
3719
  }),
3950
- _ts_metadata32("design:type", String)
3720
+ _ts_metadata31("design:type", String)
3951
3721
  ], DigitalCredentialEntity.prototype, "identifierMethod", void 0);
3952
- _ts_decorate33([
3953
- Column30("simple-enum", {
3722
+ _ts_decorate32([
3723
+ Column29("simple-enum", {
3954
3724
  name: "issuer_correlation_type",
3955
3725
  enum: CredentialCorrelationType,
3956
3726
  nullable: false
3957
3727
  }),
3958
- _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3728
+ _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3959
3729
  ], DigitalCredentialEntity.prototype, "issuerCorrelationType", void 0);
3960
- _ts_decorate33([
3961
- Column30("simple-enum", {
3730
+ _ts_decorate32([
3731
+ Column29("simple-enum", {
3962
3732
  name: "subject_correlation_type",
3963
3733
  enum: CredentialCorrelationType,
3964
3734
  nullable: true
3965
3735
  }),
3966
- _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3736
+ _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3967
3737
  ], DigitalCredentialEntity.prototype, "subjectCorrelationType", void 0);
3968
- _ts_decorate33([
3969
- Column30("simple-enum", {
3738
+ _ts_decorate32([
3739
+ Column29("simple-enum", {
3970
3740
  name: "rp_correlation_type",
3971
3741
  enum: CredentialCorrelationType,
3972
3742
  nullable: true
3973
3743
  }),
3974
- _ts_metadata32("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3744
+ _ts_metadata31("design:type", typeof CredentialCorrelationType === "undefined" ? Object : CredentialCorrelationType)
3975
3745
  ], DigitalCredentialEntity.prototype, "rpCorrelationType", void 0);
3976
- _ts_decorate33([
3977
- Column30("boolean", {
3746
+ _ts_decorate32([
3747
+ Column29("boolean", {
3978
3748
  name: "issuer_signed",
3979
3749
  nullable: true
3980
3750
  }),
3981
- _ts_metadata32("design:type", Boolean)
3751
+ _ts_metadata31("design:type", Boolean)
3982
3752
  ], DigitalCredentialEntity.prototype, "isIssuerSigned", void 0);
3983
- _ts_decorate33([
3984
- Column30("text", {
3753
+ _ts_decorate32([
3754
+ Column29("text", {
3985
3755
  name: "issuer_correlation_id",
3986
3756
  nullable: false
3987
3757
  }),
3988
- _ts_metadata32("design:type", String)
3758
+ _ts_metadata31("design:type", String)
3989
3759
  ], DigitalCredentialEntity.prototype, "issuerCorrelationId", void 0);
3990
- _ts_decorate33([
3991
- Column30("text", {
3760
+ _ts_decorate32([
3761
+ Column29("text", {
3992
3762
  name: "subject_correlation_id",
3993
3763
  nullable: true
3994
3764
  }),
3995
- _ts_metadata32("design:type", String)
3765
+ _ts_metadata31("design:type", String)
3996
3766
  ], DigitalCredentialEntity.prototype, "subjectCorrelationId", void 0);
3997
- _ts_decorate33([
3998
- Column30("text", {
3767
+ _ts_decorate32([
3768
+ Column29("text", {
3999
3769
  name: "rp_correlation_id",
4000
3770
  nullable: true
4001
3771
  }),
4002
- _ts_metadata32("design:type", String)
3772
+ _ts_metadata31("design:type", String)
4003
3773
  ], DigitalCredentialEntity.prototype, "rpCorrelationId", void 0);
4004
- _ts_decorate33([
4005
- Column30("simple-enum", {
3774
+ _ts_decorate32([
3775
+ Column29("simple-enum", {
4006
3776
  name: "verified_state",
4007
3777
  enum: CredentialStateType,
4008
3778
  nullable: true
4009
3779
  }),
4010
- _ts_metadata32("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
3780
+ _ts_metadata31("design:type", typeof CredentialStateType === "undefined" ? Object : CredentialStateType)
4011
3781
  ], DigitalCredentialEntity.prototype, "verifiedState", void 0);
4012
- _ts_decorate33([
4013
- Column30("text", {
3782
+ _ts_decorate32([
3783
+ Column29("text", {
4014
3784
  name: "tenant_id",
4015
3785
  nullable: true
4016
3786
  }),
4017
- _ts_metadata32("design:type", String)
3787
+ _ts_metadata31("design:type", String)
4018
3788
  ], DigitalCredentialEntity.prototype, "tenantId", void 0);
4019
- _ts_decorate33([
3789
+ _ts_decorate32([
4020
3790
  CreateDateColumn13({
4021
3791
  name: "created_at",
4022
3792
  nullable: false,
4023
3793
  type: typeOrmDateTime16()
4024
3794
  }),
4025
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3795
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4026
3796
  ], DigitalCredentialEntity.prototype, "createdAt", void 0);
4027
- _ts_decorate33([
4028
- Column30({
3797
+ _ts_decorate32([
3798
+ Column29({
4029
3799
  name: "presented_at",
4030
3800
  nullable: true,
4031
3801
  type: typeormDate()
4032
3802
  }),
4033
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3803
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4034
3804
  ], DigitalCredentialEntity.prototype, "presentedAt", void 0);
4035
- _ts_decorate33([
3805
+ _ts_decorate32([
4036
3806
  UpdateDateColumn13({
4037
3807
  name: "last_updated_at",
4038
3808
  nullable: false,
4039
3809
  type: typeOrmDateTime16()
4040
3810
  }),
4041
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3811
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4042
3812
  ], DigitalCredentialEntity.prototype, "lastUpdatedAt", void 0);
4043
- _ts_decorate33([
4044
- Column30({
3813
+ _ts_decorate32([
3814
+ Column29({
4045
3815
  name: "valid_until",
4046
3816
  nullable: true,
4047
3817
  type: typeormDate()
4048
3818
  }),
4049
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3819
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4050
3820
  ], DigitalCredentialEntity.prototype, "validUntil", void 0);
4051
- _ts_decorate33([
4052
- Column30({
3821
+ _ts_decorate32([
3822
+ Column29({
4053
3823
  name: "valid_from",
4054
3824
  nullable: true,
4055
3825
  type: typeormDate()
4056
3826
  }),
4057
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3827
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4058
3828
  ], DigitalCredentialEntity.prototype, "validFrom", void 0);
4059
- _ts_decorate33([
4060
- Column30({
3829
+ _ts_decorate32([
3830
+ Column29({
4061
3831
  name: "verified_at",
4062
3832
  nullable: true,
4063
3833
  type: typeOrmDateTime16()
4064
3834
  }),
4065
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3835
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4066
3836
  ], DigitalCredentialEntity.prototype, "verifiedAt", void 0);
4067
- _ts_decorate33([
4068
- Column30({
3837
+ _ts_decorate32([
3838
+ Column29({
4069
3839
  name: "revoked_at",
4070
3840
  nullable: true,
4071
3841
  type: typeOrmDateTime16()
4072
3842
  }),
4073
- _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
3843
+ _ts_metadata31("design:type", typeof Date === "undefined" ? Object : Date)
4074
3844
  ], DigitalCredentialEntity.prototype, "revokedAt", void 0);
4075
- DigitalCredentialEntity = _ts_decorate33([
4076
- Entity26("DigitalCredential")
3845
+ DigitalCredentialEntity = _ts_decorate32([
3846
+ Entity25("DigitalCredential")
4077
3847
  ], DigitalCredentialEntity);
4078
3848
 
4079
3849
  // src/entities/presentationDefinition/PresentationDefinitionItemEntity.ts
4080
- import { BaseEntity as BaseEntity25, BeforeInsert as BeforeInsert20, BeforeUpdate as BeforeUpdate20, Column as Column31, CreateDateColumn as CreateDateColumn14, Entity as Entity27, Index as Index8, PrimaryGeneratedColumn as PrimaryGeneratedColumn23, UpdateDateColumn as UpdateDateColumn14 } from "typeorm";
3850
+ import { BaseEntity as BaseEntity24, BeforeInsert as BeforeInsert20, BeforeUpdate as BeforeUpdate20, Column as Column30, CreateDateColumn as CreateDateColumn14, Entity as Entity26, Index as Index8, PrimaryGeneratedColumn as PrimaryGeneratedColumn23, UpdateDateColumn as UpdateDateColumn14 } from "typeorm";
4081
3851
  import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
4082
3852
  import { typeOrmDateTime as typeOrmDateTime17 } from "@sphereon/ssi-sdk.agent-config";
4083
- function _ts_decorate34(decorators, target, key, desc) {
3853
+ function _ts_decorate33(decorators, target, key, desc) {
4084
3854
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4085
3855
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4086
3856
  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;
4087
3857
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4088
3858
  }
4089
- __name(_ts_decorate34, "_ts_decorate");
4090
- function _ts_metadata33(k, v) {
3859
+ __name(_ts_decorate33, "_ts_decorate");
3860
+ function _ts_metadata32(k, v) {
4091
3861
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4092
3862
  }
4093
- __name(_ts_metadata33, "_ts_metadata");
4094
- var PresentationDefinitionItemEntity = class extends BaseEntity25 {
3863
+ __name(_ts_metadata32, "_ts_metadata");
3864
+ var PresentationDefinitionItemEntity = class extends BaseEntity24 {
4095
3865
  static {
4096
3866
  __name(this, "PresentationDefinitionItemEntity");
4097
3867
  }
@@ -4110,12 +3880,12 @@ var PresentationDefinitionItemEntity = class extends BaseEntity25 {
4110
3880
  this.lastUpdatedAt = /* @__PURE__ */ new Date();
4111
3881
  }
4112
3882
  };
4113
- _ts_decorate34([
3883
+ _ts_decorate33([
4114
3884
  PrimaryGeneratedColumn23("uuid"),
4115
- _ts_metadata33("design:type", String)
3885
+ _ts_metadata32("design:type", String)
4116
3886
  ], PresentationDefinitionItemEntity.prototype, "id", void 0);
4117
- _ts_decorate34([
4118
- Column31({
3887
+ _ts_decorate33([
3888
+ Column30({
4119
3889
  name: "definition_id",
4120
3890
  length: 255,
4121
3891
  type: "varchar",
@@ -4125,10 +3895,10 @@ _ts_decorate34([
4125
3895
  IsNotEmpty12({
4126
3896
  message: "A blank definition id field is not allowed"
4127
3897
  }),
4128
- _ts_metadata33("design:type", String)
3898
+ _ts_metadata32("design:type", String)
4129
3899
  ], PresentationDefinitionItemEntity.prototype, "definitionId", void 0);
4130
- _ts_decorate34([
4131
- Column31({
3900
+ _ts_decorate33([
3901
+ Column30({
4132
3902
  name: "version",
4133
3903
  length: 255,
4134
3904
  type: "varchar",
@@ -4138,40 +3908,40 @@ _ts_decorate34([
4138
3908
  IsNotEmpty12({
4139
3909
  message: "A blank version field is not allowed"
4140
3910
  }),
4141
- _ts_metadata33("design:type", String)
3911
+ _ts_metadata32("design:type", String)
4142
3912
  ], PresentationDefinitionItemEntity.prototype, "version", void 0);
4143
- _ts_decorate34([
4144
- Column31({
3913
+ _ts_decorate33([
3914
+ Column30({
4145
3915
  name: "tenant_id",
4146
3916
  length: 255,
4147
3917
  type: "varchar",
4148
3918
  nullable: true,
4149
3919
  unique: false
4150
3920
  }),
4151
- _ts_metadata33("design:type", String)
3921
+ _ts_metadata32("design:type", String)
4152
3922
  ], PresentationDefinitionItemEntity.prototype, "tenantId", void 0);
4153
- _ts_decorate34([
4154
- Column31({
3923
+ _ts_decorate33([
3924
+ Column30({
4155
3925
  name: "purpose",
4156
3926
  length: 255,
4157
3927
  type: "varchar",
4158
3928
  nullable: true,
4159
3929
  unique: false
4160
3930
  }),
4161
- _ts_metadata33("design:type", String)
3931
+ _ts_metadata32("design:type", String)
4162
3932
  ], PresentationDefinitionItemEntity.prototype, "purpose", void 0);
4163
- _ts_decorate34([
4164
- Column31({
3933
+ _ts_decorate33([
3934
+ Column30({
4165
3935
  name: "name",
4166
3936
  length: 255,
4167
3937
  type: "varchar",
4168
3938
  nullable: true,
4169
3939
  unique: false
4170
3940
  }),
4171
- _ts_metadata33("design:type", String)
3941
+ _ts_metadata32("design:type", String)
4172
3942
  ], PresentationDefinitionItemEntity.prototype, "name", void 0);
4173
- _ts_decorate34([
4174
- Column31({
3943
+ _ts_decorate33([
3944
+ Column30({
4175
3945
  name: "definition_payload",
4176
3946
  type: "text",
4177
3947
  nullable: false,
@@ -4180,10 +3950,10 @@ _ts_decorate34([
4180
3950
  IsNotEmpty12({
4181
3951
  message: "A blank PD definition payload field is not allowed"
4182
3952
  }),
4183
- _ts_metadata33("design:type", String)
3953
+ _ts_metadata32("design:type", String)
4184
3954
  ], PresentationDefinitionItemEntity.prototype, "definitionPayload", void 0);
4185
- _ts_decorate34([
4186
- Column31({
3955
+ _ts_decorate33([
3956
+ Column30({
4187
3957
  name: "dcql_payload",
4188
3958
  type: "text",
4189
3959
  nullable: true,
@@ -4192,33 +3962,33 @@ _ts_decorate34([
4192
3962
  IsNotEmpty12({
4193
3963
  message: "A blank dcql definition payload field is not allowed"
4194
3964
  }),
4195
- _ts_metadata33("design:type", String)
3965
+ _ts_metadata32("design:type", String)
4196
3966
  ], PresentationDefinitionItemEntity.prototype, "dcqlPayload", void 0);
4197
- _ts_decorate34([
3967
+ _ts_decorate33([
4198
3968
  CreateDateColumn14({
4199
3969
  name: "created_at",
4200
3970
  nullable: false,
4201
3971
  type: typeOrmDateTime17()
4202
3972
  }),
4203
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
3973
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4204
3974
  ], PresentationDefinitionItemEntity.prototype, "createdAt", void 0);
4205
- _ts_decorate34([
3975
+ _ts_decorate33([
4206
3976
  UpdateDateColumn14({
4207
3977
  name: "last_updated_at",
4208
3978
  nullable: false,
4209
3979
  type: typeOrmDateTime17()
4210
3980
  }),
4211
- _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
3981
+ _ts_metadata32("design:type", typeof Date === "undefined" ? Object : Date)
4212
3982
  ], PresentationDefinitionItemEntity.prototype, "lastUpdatedAt", void 0);
4213
- _ts_decorate34([
3983
+ _ts_decorate33([
4214
3984
  BeforeInsert20(),
4215
3985
  BeforeUpdate20(),
4216
- _ts_metadata33("design:type", Function),
4217
- _ts_metadata33("design:paramtypes", []),
4218
- _ts_metadata33("design:returntype", void 0)
3986
+ _ts_metadata32("design:type", Function),
3987
+ _ts_metadata32("design:paramtypes", []),
3988
+ _ts_metadata32("design:returntype", void 0)
4219
3989
  ], PresentationDefinitionItemEntity.prototype, "updateUpdatedDate", null);
4220
- PresentationDefinitionItemEntity = _ts_decorate34([
4221
- Entity27("PresentationDefinitionItem"),
3990
+ PresentationDefinitionItemEntity = _ts_decorate33([
3991
+ Entity26("PresentationDefinitionItem"),
4222
3992
  Index8([
4223
3993
  "version"
4224
3994
  ], {
@@ -4228,19 +3998,19 @@ PresentationDefinitionItemEntity = _ts_decorate34([
4228
3998
 
4229
3999
  // src/entities/oid4vcState/Oid4vcStateEntity.ts
4230
4000
  import { typeOrmDateTime as typeOrmDateTime18 } from "@sphereon/ssi-sdk.agent-config";
4231
- import { BaseEntity as BaseEntity26, Column as Column32, CreateDateColumn as CreateDateColumn15, Entity as Entity28, PrimaryColumn as PrimaryColumn5, UpdateDateColumn as UpdateDateColumn15 } from "typeorm";
4232
- function _ts_decorate35(decorators, target, key, desc) {
4001
+ import { BaseEntity as BaseEntity25, Column as Column31, CreateDateColumn as CreateDateColumn15, Entity as Entity27, PrimaryColumn as PrimaryColumn4, UpdateDateColumn as UpdateDateColumn15 } from "typeorm";
4002
+ function _ts_decorate34(decorators, target, key, desc) {
4233
4003
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4234
4004
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4235
4005
  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;
4236
4006
  return c > 3 && r && Object.defineProperty(target, key, r), r;
4237
4007
  }
4238
- __name(_ts_decorate35, "_ts_decorate");
4239
- function _ts_metadata34(k, v) {
4008
+ __name(_ts_decorate34, "_ts_decorate");
4009
+ function _ts_metadata33(k, v) {
4240
4010
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
4241
4011
  }
4242
- __name(_ts_metadata34, "_ts_metadata");
4243
- var Oid4vcStateEntity = class extends BaseEntity26 {
4012
+ __name(_ts_metadata33, "_ts_metadata");
4013
+ var Oid4vcStateEntity = class extends BaseEntity25 {
4244
4014
  static {
4245
4015
  __name(this, "Oid4vcStateEntity");
4246
4016
  }
@@ -4254,80 +4024,80 @@ var Oid4vcStateEntity = class extends BaseEntity26 {
4254
4024
  expiresAt;
4255
4025
  tenantId;
4256
4026
  };
4257
- _ts_decorate35([
4258
- PrimaryColumn5({
4027
+ _ts_decorate34([
4028
+ PrimaryColumn4({
4259
4029
  name: "id",
4260
4030
  type: "varchar",
4261
4031
  nullable: false
4262
4032
  }),
4263
- _ts_metadata34("design:type", String)
4033
+ _ts_metadata33("design:type", String)
4264
4034
  ], Oid4vcStateEntity.prototype, "id", void 0);
4265
- _ts_decorate35([
4266
- Column32({
4035
+ _ts_decorate34([
4036
+ Column31({
4267
4037
  name: "lookup_ids",
4268
4038
  type: "array",
4269
4039
  nullable: true
4270
4040
  }),
4271
- _ts_metadata34("design:type", typeof Array === "undefined" ? Object : Array)
4041
+ _ts_metadata33("design:type", typeof Array === "undefined" ? Object : Array)
4272
4042
  ], Oid4vcStateEntity.prototype, "lookups", void 0);
4273
- _ts_decorate35([
4274
- Column32({
4043
+ _ts_decorate34([
4044
+ Column31({
4275
4045
  name: "state_id",
4276
4046
  type: "varchar",
4277
4047
  nullable: true
4278
4048
  }),
4279
- _ts_metadata34("design:type", String)
4049
+ _ts_metadata33("design:type", String)
4280
4050
  ], Oid4vcStateEntity.prototype, "stateId", void 0);
4281
- _ts_decorate35([
4282
- Column32({
4051
+ _ts_decorate34([
4052
+ Column31({
4283
4053
  name: "correlation_id",
4284
4054
  type: "varchar",
4285
4055
  nullable: true
4286
4056
  }),
4287
- _ts_metadata34("design:type", String)
4057
+ _ts_metadata33("design:type", String)
4288
4058
  ], Oid4vcStateEntity.prototype, "correlationId", void 0);
4289
- _ts_decorate35([
4290
- Column32({
4059
+ _ts_decorate34([
4060
+ Column31({
4291
4061
  name: "state",
4292
4062
  type: "json",
4293
4063
  nullable: false
4294
4064
  }),
4295
- _ts_metadata34("design:type", typeof StateType === "undefined" ? Object : StateType)
4065
+ _ts_metadata33("design:type", typeof StateType === "undefined" ? Object : StateType)
4296
4066
  ], Oid4vcStateEntity.prototype, "state", void 0);
4297
- _ts_decorate35([
4067
+ _ts_decorate34([
4298
4068
  CreateDateColumn15({
4299
4069
  name: "created_at",
4300
4070
  nullable: false,
4301
4071
  type: typeOrmDateTime18()
4302
4072
  }),
4303
- _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4073
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4304
4074
  ], Oid4vcStateEntity.prototype, "createdAt", void 0);
4305
- _ts_decorate35([
4075
+ _ts_decorate34([
4306
4076
  UpdateDateColumn15({
4307
4077
  name: "updated_at",
4308
4078
  nullable: false,
4309
4079
  type: typeOrmDateTime18()
4310
4080
  }),
4311
- _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4081
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4312
4082
  ], Oid4vcStateEntity.prototype, "updatedAt", void 0);
4313
- _ts_decorate35([
4314
- Column32({
4083
+ _ts_decorate34([
4084
+ Column31({
4315
4085
  name: "expires_at",
4316
4086
  nullable: true,
4317
4087
  type: typeOrmDateTime18()
4318
4088
  }),
4319
- _ts_metadata34("design:type", typeof Date === "undefined" ? Object : Date)
4089
+ _ts_metadata33("design:type", typeof Date === "undefined" ? Object : Date)
4320
4090
  ], Oid4vcStateEntity.prototype, "expiresAt", void 0);
4321
- _ts_decorate35([
4322
- Column32({
4091
+ _ts_decorate34([
4092
+ Column31({
4323
4093
  name: "tenant_id",
4324
4094
  type: "varchar",
4325
4095
  nullable: true
4326
4096
  }),
4327
- _ts_metadata34("design:type", String)
4097
+ _ts_metadata33("design:type", String)
4328
4098
  ], Oid4vcStateEntity.prototype, "tenantId", void 0);
4329
- Oid4vcStateEntity = _ts_decorate35([
4330
- Entity28("Oid4vcStateEntity")
4099
+ Oid4vcStateEntity = _ts_decorate34([
4100
+ Entity27("Oid4vcStateEntity")
4331
4101
  ], Oid4vcStateEntity);
4332
4102
 
4333
4103
  // src/contact/ContactStore.ts
@@ -6096,25 +5866,6 @@ var statusListEntityFrom = /* @__PURE__ */ __name((args) => {
6096
5866
  });
6097
5867
  return entity;
6098
5868
  }
6099
- if (args.type === StatusListType2.BitstringStatusList) {
6100
- const entity = new BitstringStatusListEntity();
6101
- const bitstringsl = args;
6102
- if (!bitstringsl.bitsPerStatus) {
6103
- throw Error("bitsPerStatus must be set for BitstringStatusList");
6104
- }
6105
- entity.statusPurpose = bitstringsl.statusPurpose;
6106
- entity.bitsPerStatus = bitstringsl.bitsPerStatus;
6107
- entity.validFrom = bitstringsl.validFrom;
6108
- entity.validUntil = bitstringsl.validUntil;
6109
- entity.ttl = bitstringsl.ttl;
6110
- setBaseFields(entity, args);
6111
- Object.defineProperty(entity, "type", {
6112
- value: StatusListType2.BitstringStatusList,
6113
- enumerable: true,
6114
- configurable: true
6115
- });
6116
- return entity;
6117
- }
6118
5869
  throw new Error(`Invalid status list type ${args.type}`);
6119
5870
  }, "statusListEntityFrom");
6120
5871
  var statusListFrom = /* @__PURE__ */ __name((entity) => {
@@ -6136,18 +5887,6 @@ var statusListFrom = /* @__PURE__ */ __name((entity) => {
6136
5887
  };
6137
5888
  return replaceNullWithUndefined(result);
6138
5889
  }
6139
- if (entity instanceof BitstringStatusListEntity) {
6140
- const result = {
6141
- ...getBaseFields(entity),
6142
- type: StatusListType2.BitstringStatusList,
6143
- statusPurpose: entity.statusPurpose,
6144
- bitsPerStatus: entity.bitsPerStatus,
6145
- validFrom: entity.validFrom,
6146
- validUntil: entity.validUntil,
6147
- ttl: entity.ttl
6148
- };
6149
- return replaceNullWithUndefined(result);
6150
- }
6151
5890
  throw new Error(`Invalid status list type ${typeof entity}`);
6152
5891
  }, "statusListFrom");
6153
5892
  var setBaseFields = /* @__PURE__ */ __name((entity, args) => {
@@ -6201,7 +5940,7 @@ var StatusListStore = class {
6201
5940
  const repo = await this.getStatusListEntryRepo();
6202
5941
  const results = (await repo.find({
6203
5942
  where: {
6204
- statusListId: statusList.id,
5943
+ statusList,
6205
5944
  statusListIndex: In3(statusListIndex)
6206
5945
  }
6207
5946
  })).map((index) => index.statusListIndex);
@@ -6436,8 +6175,6 @@ var StatusListStore = class {
6436
6175
  return dataSource.getRepository(StatusList2021Entity);
6437
6176
  case StatusListType3.OAuthStatusList:
6438
6177
  return dataSource.getRepository(OAuthStatusListEntity);
6439
- case StatusListType3.BitstringStatusList:
6440
- return dataSource.getRepository(BitstringStatusListEntity);
6441
6178
  default:
6442
6179
  return dataSource.getRepository(StatusListEntity);
6443
6180
  }
@@ -8911,198 +8648,6 @@ var FixCredentialClaimsReferencesUuid1741895822987 = class {
8911
8648
  }
8912
8649
  };
8913
8650
 
8914
- // src/migrations/generic/12-CreateBitstringStatusList.ts
8915
- import Debug19 from "debug";
8916
-
8917
- // src/migrations/postgres/1741895823000-CreateBitstringStatusList.ts
8918
- var CreateBitstringStatusListPG1741895823000 = class {
8919
- static {
8920
- __name(this, "CreateBitstringStatusListPG1741895823000");
8921
- }
8922
- name = "CreateBitstringStatusList1741895823000";
8923
- async up(queryRunner) {
8924
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "bitsPerStatus" integer DEFAULT 1`);
8925
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "ttl" integer`);
8926
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validFrom" TIMESTAMP`);
8927
- await queryRunner.query(`ALTER TABLE "StatusList" ADD COLUMN "validUntil" TIMESTAMP`);
8928
- await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT IF EXISTS "CHK_StatusList_type"`);
8929
- await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList'))`);
8930
- await queryRunner.query(`
8931
- CREATE TABLE "BitstringStatusListEntry" (
8932
- "statusListId" character varying NOT NULL,
8933
- "statusListIndex" integer NOT NULL,
8934
- "credentialId" text,
8935
- "credentialHash" character varying(128),
8936
- "correlationId" character varying(255),
8937
- "statusPurpose" character varying NOT NULL,
8938
- "bitsPerStatus" integer DEFAULT 1,
8939
- "statusMessage" text,
8940
- "statusReference" text,
8941
- CONSTRAINT "PK_BitstringStatusListEntry" PRIMARY KEY ("statusListId", "statusListIndex")
8942
- )
8943
- `);
8944
- await queryRunner.query(`
8945
- ALTER TABLE "BitstringStatusListEntry"
8946
- ADD CONSTRAINT "FK_BitstringStatusListEntry_statusListId"
8947
- FOREIGN KEY ("statusListId") REFERENCES "StatusList"("id") ON DELETE NO ACTION ON UPDATE NO ACTION
8948
- `);
8949
- }
8950
- async down(queryRunner) {
8951
- await queryRunner.query(`ALTER TABLE "BitstringStatusListEntry" DROP CONSTRAINT "FK_BitstringStatusListEntry_statusListId"`);
8952
- await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
8953
- await queryRunner.query(`ALTER TABLE "StatusList" DROP CONSTRAINT "CHK_StatusList_type"`);
8954
- await queryRunner.query(`ALTER TABLE "StatusList" ADD CONSTRAINT "CHK_StatusList_type" CHECK ("type" IN ('StatusList2021', 'OAuthStatusList'))`);
8955
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validUntil"`);
8956
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "validFrom"`);
8957
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "ttl"`);
8958
- await queryRunner.query(`ALTER TABLE "StatusList" DROP COLUMN "bitsPerStatus"`);
8959
- }
8960
- };
8961
-
8962
- // src/migrations/sqlite/1741895823001-CreateBitstringStatusList.ts
8963
- var CreateBitstringStatusListSqlite1741895823001 = class {
8964
- static {
8965
- __name(this, "CreateBitstringStatusListSqlite1741895823001");
8966
- }
8967
- name = "CreateBitstringStatusList1741895823000";
8968
- async up(queryRunner) {
8969
- await queryRunner.query(`
8970
- CREATE TABLE "temporary_StatusList" (
8971
- "id" varchar PRIMARY KEY NOT NULL,
8972
- "correlationId" varchar NOT NULL,
8973
- "length" integer NOT NULL,
8974
- "issuer" text NOT NULL,
8975
- "type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList', 'BitstringStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
8976
- "driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
8977
- "credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
8978
- "proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
8979
- "indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
8980
- "statusPurpose" varchar,
8981
- "statusListCredential" text,
8982
- "expiresAt" datetime,
8983
- "bitsPerStatus" integer DEFAULT (1),
8984
- "ttl" integer,
8985
- "validFrom" datetime,
8986
- "validUntil" datetime,
8987
- CONSTRAINT "UQ_correlationId" UNIQUE ("correlationId")
8988
- )
8989
- `);
8990
- await queryRunner.query(`
8991
- INSERT INTO "temporary_StatusList"(
8992
- "id", "correlationId", "length", "issuer", "type", "driverType",
8993
- "credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
8994
- "statusListCredential", "bitsPerStatus", "expiresAt"
8995
- )
8996
- SELECT
8997
- "id", "correlationId", "length", "issuer", "type", "driverType",
8998
- "credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
8999
- "statusListCredential", "bitsPerStatus", "expiresAt"
9000
- FROM "StatusList"
9001
- `);
9002
- await queryRunner.query(`DROP TABLE "StatusList"`);
9003
- await queryRunner.query(`ALTER TABLE "temporary_StatusList" RENAME TO "StatusList"`);
9004
- await queryRunner.query(`
9005
- CREATE TABLE "BitstringStatusListEntry" (
9006
- "statusListId" varchar NOT NULL,
9007
- "statusListIndex" integer NOT NULL,
9008
- "credentialId" text,
9009
- "credentialHash" varchar(128),
9010
- "correlationId" varchar(255),
9011
- "statusPurpose" varchar NOT NULL,
9012
- "bitsPerStatus" integer DEFAULT (1),
9013
- "statusMessage" text,
9014
- "statusReference" text,
9015
- PRIMARY KEY ("statusListId", "statusListIndex")
9016
- )
9017
- `);
9018
- }
9019
- async down(queryRunner) {
9020
- await queryRunner.query(`DROP TABLE "BitstringStatusListEntry"`);
9021
- await queryRunner.query(`
9022
- CREATE TABLE "temporary_StatusList" (
9023
- "id" varchar PRIMARY KEY NOT NULL,
9024
- "correlationId" varchar NOT NULL,
9025
- "length" integer NOT NULL,
9026
- "issuer" text NOT NULL,
9027
- "type" varchar CHECK( "type" IN ('StatusList2021', 'OAuthStatusList') ) NOT NULL DEFAULT ('StatusList2021'),
9028
- "driverType" varchar CHECK( "driverType" IN ('agent_typeorm','agent_kv_store','github','agent_filesystem') ) NOT NULL DEFAULT ('agent_typeorm'),
9029
- "credentialIdMode" varchar CHECK( "credentialIdMode" IN ('ISSUANCE','PERSISTENCE','NEVER') ) NOT NULL DEFAULT ('ISSUANCE'),
9030
- "proofFormat" varchar CHECK( "proofFormat" IN ('lds','jwt') ) NOT NULL DEFAULT ('lds'),
9031
- "indexingDirection" varchar CHECK( "indexingDirection" IN ('rightToLeft') ),
9032
- "statusPurpose" varchar,
9033
- "statusListCredential" text,
9034
- "bitsPerStatus" integer,
9035
- "expiresAt" datetime,
9036
- CONSTRAINT "UQ_correlationId" UNIQUE ("correlationId")
9037
- )
9038
- `);
9039
- await queryRunner.query(`
9040
- INSERT INTO "temporary_StatusList"(
9041
- "id", "correlationId", "length", "issuer", "type", "driverType",
9042
- "credentialIdMode", "proofFormat", "indexingDirection", "statusPurpose",
9043
- "statusListCredential", "bitsPerStatus", "expiresAt"
9044
- )
9045
- SELECT
9046
- "id", "correlationId", "length", "issuer",
9047
- CASE WHEN "type" = 'BitstringStatusList' THEN 'StatusList2021' ELSE "type" END,
9048
- "driverType", "credentialIdMode", "proofFormat", "indexingDirection",
9049
- "statusPurpose", "statusListCredential", "bitsPerStatus", "expiresAt"
9050
- FROM "StatusList"
9051
- `);
9052
- await queryRunner.query(`DROP TABLE "StatusList"`);
9053
- await queryRunner.query(`ALTER TABLE "temporary_StatusList" RENAME TO "StatusList"`);
9054
- }
9055
- };
9056
-
9057
- // src/migrations/generic/12-CreateBitstringStatusList.ts
9058
- var debug19 = Debug19("sphereon:ssi-sdk:migrations");
9059
- var CreateBitstringStatusList1741895823000 = class {
9060
- static {
9061
- __name(this, "CreateBitstringStatusList1741895823000");
9062
- }
9063
- name = "CreateBitstringStatusList1741895823000";
9064
- async up(queryRunner) {
9065
- debug19("migration: creating bitstring status list tables");
9066
- const dbType = queryRunner.connection.driver.options.type;
9067
- switch (dbType) {
9068
- case "postgres": {
9069
- const mig = new CreateBitstringStatusListPG1741895823000();
9070
- await mig.up(queryRunner);
9071
- return;
9072
- }
9073
- case "sqlite":
9074
- case "expo":
9075
- case "react-native": {
9076
- const mig = new CreateBitstringStatusListSqlite1741895823001();
9077
- await mig.up(queryRunner);
9078
- return;
9079
- }
9080
- default:
9081
- return Promise.reject(`Migrations only supported for sqlite and postgres. Was ${dbType}`);
9082
- }
9083
- }
9084
- async down(queryRunner) {
9085
- debug19("migration: dropping bitstring status list tables");
9086
- const dbType = queryRunner.connection.driver.options.type;
9087
- switch (dbType) {
9088
- case "postgres": {
9089
- const mig = new CreateBitstringStatusListPG1741895823000();
9090
- await mig.down(queryRunner);
9091
- return;
9092
- }
9093
- case "sqlite":
9094
- case "expo":
9095
- case "react-native": {
9096
- const mig = new CreateBitstringStatusListSqlite1741895823001();
9097
- await mig.down(queryRunner);
9098
- return;
9099
- }
9100
- default:
9101
- return Promise.reject(`Migrations only supported for sqlite and postgres. Was ${dbType}`);
9102
- }
9103
- }
9104
- };
9105
-
9106
8651
  // src/migrations/generic/index.ts
9107
8652
  var DataStoreContactMigrations = [
9108
8653
  CreateContacts1659463079429,
@@ -9115,8 +8660,7 @@ var DataStoreIssuanceBrandingMigrations = [
9115
8660
  FixCredentialClaimsReferencesUuid1741895822987
9116
8661
  ];
9117
8662
  var DataStoreStatusListMigrations = [
9118
- CreateStatusList1693866470000,
9119
- CreateBitstringStatusList1741895823000
8663
+ CreateStatusList1693866470000
9120
8664
  ];
9121
8665
  var DataStoreEventLoggerMigrations = [
9122
8666
  CreateAuditEvents1701635835330
@@ -9321,8 +8865,6 @@ var DataStoreStatusListEntities = [
9321
8865
  StatusListEntity,
9322
8866
  StatusList2021Entity,
9323
8867
  OAuthStatusListEntity,
9324
- BitstringStatusListEntity,
9325
- BitstringStatusListEntryEntity,
9326
8868
  StatusListEntryEntity
9327
8869
  ];
9328
8870
  var DataStoreEventLoggerEntities = [
@@ -9354,8 +8896,6 @@ export {
9354
8896
  BaseConfigEntity,
9355
8897
  BaseContactEntity,
9356
8898
  BaseLocaleBrandingEntity,
9357
- BitstringStatusListEntity,
9358
- BitstringStatusListEntryEntity,
9359
8899
  ConnectionEntity,
9360
8900
  ConnectionType,
9361
8901
  ContactMetadataItemEntity,