@sphereon/ssi-sdk.oid4vci-holder 0.34.1-next.29 → 0.34.1-next.40
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 +26 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +26 -26
- package/dist/index.js.map +1 -1
- package/package.json +20 -20
package/dist/index.cjs
CHANGED
|
@@ -154,18 +154,18 @@ var import_i18n_js = __toESM(require("i18n-js"), 1);
|
|
|
154
154
|
var import_lodash = __toESM(require("lodash.memoize"), 1);
|
|
155
155
|
|
|
156
156
|
// src/types/IOID4VCIHolder.ts
|
|
157
|
-
var OID4VCIHolderEvent = /* @__PURE__ */ function(OID4VCIHolderEvent2) {
|
|
157
|
+
var OID4VCIHolderEvent = /* @__PURE__ */ (function(OID4VCIHolderEvent2) {
|
|
158
158
|
OID4VCIHolderEvent2["CONTACT_IDENTITY_CREATED"] = "contact_identity_created";
|
|
159
159
|
OID4VCIHolderEvent2["CREDENTIAL_STORED"] = "credential_stored";
|
|
160
160
|
OID4VCIHolderEvent2["IDENTIFIER_CREATED"] = "identifier_created";
|
|
161
161
|
return OID4VCIHolderEvent2;
|
|
162
|
-
}({});
|
|
163
|
-
var SupportedLanguage = /* @__PURE__ */ function(SupportedLanguage2) {
|
|
162
|
+
})({});
|
|
163
|
+
var SupportedLanguage = /* @__PURE__ */ (function(SupportedLanguage2) {
|
|
164
164
|
SupportedLanguage2["ENGLISH"] = "en";
|
|
165
165
|
SupportedLanguage2["DUTCH"] = "nl";
|
|
166
166
|
return SupportedLanguage2;
|
|
167
|
-
}({});
|
|
168
|
-
var OID4VCIMachineStates = /* @__PURE__ */ function(OID4VCIMachineStates2) {
|
|
167
|
+
})({});
|
|
168
|
+
var OID4VCIMachineStates = /* @__PURE__ */ (function(OID4VCIMachineStates2) {
|
|
169
169
|
OID4VCIMachineStates2["start"] = "start";
|
|
170
170
|
OID4VCIMachineStates2["createCredentialsToSelectFrom"] = "createCredentialsToSelectFrom";
|
|
171
171
|
OID4VCIMachineStates2["getContact"] = "getContact";
|
|
@@ -196,18 +196,18 @@ var OID4VCIMachineStates = /* @__PURE__ */ function(OID4VCIMachineStates2) {
|
|
|
196
196
|
OID4VCIMachineStates2["error"] = "error";
|
|
197
197
|
OID4VCIMachineStates2["done"] = "done";
|
|
198
198
|
return OID4VCIMachineStates2;
|
|
199
|
-
}({});
|
|
200
|
-
var OID4VCIMachineAddContactStates = /* @__PURE__ */ function(OID4VCIMachineAddContactStates2) {
|
|
199
|
+
})({});
|
|
200
|
+
var OID4VCIMachineAddContactStates = /* @__PURE__ */ (function(OID4VCIMachineAddContactStates2) {
|
|
201
201
|
OID4VCIMachineAddContactStates2["idle"] = "idle";
|
|
202
202
|
OID4VCIMachineAddContactStates2["next"] = "next";
|
|
203
203
|
return OID4VCIMachineAddContactStates2;
|
|
204
|
-
}({});
|
|
205
|
-
var OID4VCIMachineVerifyPinStates = /* @__PURE__ */ function(OID4VCIMachineVerifyPinStates2) {
|
|
204
|
+
})({});
|
|
205
|
+
var OID4VCIMachineVerifyPinStates = /* @__PURE__ */ (function(OID4VCIMachineVerifyPinStates2) {
|
|
206
206
|
OID4VCIMachineVerifyPinStates2["idle"] = "idle";
|
|
207
207
|
OID4VCIMachineVerifyPinStates2["next"] = "next";
|
|
208
208
|
return OID4VCIMachineVerifyPinStates2;
|
|
209
|
-
}({});
|
|
210
|
-
var OID4VCIMachineEvents = /* @__PURE__ */ function(OID4VCIMachineEvents2) {
|
|
209
|
+
})({});
|
|
210
|
+
var OID4VCIMachineEvents = /* @__PURE__ */ (function(OID4VCIMachineEvents2) {
|
|
211
211
|
OID4VCIMachineEvents2["NEXT"] = "NEXT";
|
|
212
212
|
OID4VCIMachineEvents2["PREVIOUS"] = "PREVIOUS";
|
|
213
213
|
OID4VCIMachineEvents2["DECLINE"] = "DECLINE";
|
|
@@ -220,8 +220,8 @@ var OID4VCIMachineEvents = /* @__PURE__ */ function(OID4VCIMachineEvents2) {
|
|
|
220
220
|
OID4VCIMachineEvents2["INVOKED_AUTHORIZATION_CODE_REQUEST"] = "INVOKED_AUTHORIZATION_CODE_REQUEST";
|
|
221
221
|
OID4VCIMachineEvents2["PROVIDE_AUTHORIZATION_CODE_RESPONSE"] = "PROVIDE_AUTHORIZATION_CODE_RESPONSE";
|
|
222
222
|
return OID4VCIMachineEvents2;
|
|
223
|
-
}({});
|
|
224
|
-
var OID4VCIMachineGuards = /* @__PURE__ */ function(OID4VCIMachineGuards2) {
|
|
223
|
+
})({});
|
|
224
|
+
var OID4VCIMachineGuards = /* @__PURE__ */ (function(OID4VCIMachineGuards2) {
|
|
225
225
|
OID4VCIMachineGuards2["hasContactGuard"] = "oid4vciHasContactGuard";
|
|
226
226
|
OID4VCIMachineGuards2["hasNoContactGuard"] = "oid4vciHasNoContactGuard";
|
|
227
227
|
OID4VCIMachineGuards2["credentialsToSelectRequiredGuard"] = "oid4vciCredentialsToSelectRequiredGuard";
|
|
@@ -237,8 +237,8 @@ var OID4VCIMachineGuards = /* @__PURE__ */ function(OID4VCIMachineGuards2) {
|
|
|
237
237
|
OID4VCIMachineGuards2["contactHasLowTrustGuard"] = "oid4vciContactHasLowTrustGuard";
|
|
238
238
|
OID4VCIMachineGuards2["isFirstPartyApplication"] = "oid4vciIsFirstPartyApplication";
|
|
239
239
|
return OID4VCIMachineGuards2;
|
|
240
|
-
}({});
|
|
241
|
-
var OID4VCIMachineServices = /* @__PURE__ */ function(OID4VCIMachineServices2) {
|
|
240
|
+
})({});
|
|
241
|
+
var OID4VCIMachineServices = /* @__PURE__ */ (function(OID4VCIMachineServices2) {
|
|
242
242
|
OID4VCIMachineServices2["start"] = "start";
|
|
243
243
|
OID4VCIMachineServices2["getContact"] = "getContact";
|
|
244
244
|
OID4VCIMachineServices2["getFederationTrust"] = "getFederationTrust";
|
|
@@ -253,17 +253,17 @@ var OID4VCIMachineServices = /* @__PURE__ */ function(OID4VCIMachineServices2) {
|
|
|
253
253
|
OID4VCIMachineServices2["storeCredentials"] = "storeCredentials";
|
|
254
254
|
OID4VCIMachineServices2["startFirstPartApplicationFlow"] = "startFirstPartApplicationFlow";
|
|
255
255
|
return OID4VCIMachineServices2;
|
|
256
|
-
}({});
|
|
257
|
-
var RequestType = /* @__PURE__ */ function(RequestType2) {
|
|
256
|
+
})({});
|
|
257
|
+
var RequestType = /* @__PURE__ */ (function(RequestType2) {
|
|
258
258
|
RequestType2["OPENID_INITIATE_ISSUANCE"] = "openid-initiate-issuance";
|
|
259
259
|
RequestType2["OPENID_CREDENTIAL_OFFER"] = "openid-credential-offer";
|
|
260
260
|
RequestType2["URL"] = "URL";
|
|
261
261
|
return RequestType2;
|
|
262
|
-
}({});
|
|
263
|
-
var IdentifierAliasEnum = /* @__PURE__ */ function(IdentifierAliasEnum2) {
|
|
262
|
+
})({});
|
|
263
|
+
var IdentifierAliasEnum = /* @__PURE__ */ (function(IdentifierAliasEnum2) {
|
|
264
264
|
IdentifierAliasEnum2["PRIMARY"] = "primary";
|
|
265
265
|
return IdentifierAliasEnum2;
|
|
266
|
-
}({});
|
|
266
|
+
})({});
|
|
267
267
|
|
|
268
268
|
// src/localization/Localization.ts
|
|
269
269
|
var Localization = class Localization2 {
|
|
@@ -305,7 +305,7 @@ var Localization = class Localization2 {
|
|
|
305
305
|
var translate = Localization.translate;
|
|
306
306
|
|
|
307
307
|
// src/types/FirstPartyMachine.ts
|
|
308
|
-
var FirstPartyMachineStateTypes = /* @__PURE__ */ function(FirstPartyMachineStateTypes2) {
|
|
308
|
+
var FirstPartyMachineStateTypes = /* @__PURE__ */ (function(FirstPartyMachineStateTypes2) {
|
|
309
309
|
FirstPartyMachineStateTypes2["sendAuthorizationChallengeRequest"] = "sendAuthorizationChallengeRequest";
|
|
310
310
|
FirstPartyMachineStateTypes2["sendAuthorizationResponse"] = "sendAuthorizationResponse";
|
|
311
311
|
FirstPartyMachineStateTypes2["selectCredentials"] = "selectCredentials";
|
|
@@ -316,21 +316,21 @@ var FirstPartyMachineStateTypes = /* @__PURE__ */ function(FirstPartyMachineStat
|
|
|
316
316
|
FirstPartyMachineStateTypes2["aborted"] = "aborted";
|
|
317
317
|
FirstPartyMachineStateTypes2["declined"] = "declined";
|
|
318
318
|
return FirstPartyMachineStateTypes2;
|
|
319
|
-
}({});
|
|
320
|
-
var FirstPartyMachineServices = /* @__PURE__ */ function(FirstPartyMachineServices2) {
|
|
319
|
+
})({});
|
|
320
|
+
var FirstPartyMachineServices = /* @__PURE__ */ (function(FirstPartyMachineServices2) {
|
|
321
321
|
FirstPartyMachineServices2["sendAuthorizationChallengeRequest"] = "sendAuthorizationChallengeRequest";
|
|
322
322
|
FirstPartyMachineServices2["sendAuthorizationResponse"] = "sendAuthorizationResponse";
|
|
323
323
|
FirstPartyMachineServices2["createConfig"] = "createConfig";
|
|
324
324
|
FirstPartyMachineServices2["getSiopRequest"] = "getSiopRequest";
|
|
325
325
|
return FirstPartyMachineServices2;
|
|
326
|
-
}({});
|
|
327
|
-
var FirstPartyMachineEvents = /* @__PURE__ */ function(FirstPartyMachineEvents2) {
|
|
326
|
+
})({});
|
|
327
|
+
var FirstPartyMachineEvents = /* @__PURE__ */ (function(FirstPartyMachineEvents2) {
|
|
328
328
|
FirstPartyMachineEvents2["NEXT"] = "NEXT";
|
|
329
329
|
FirstPartyMachineEvents2["PREVIOUS"] = "PREVIOUS";
|
|
330
330
|
FirstPartyMachineEvents2["DECLINE"] = "DECLINE";
|
|
331
331
|
FirstPartyMachineEvents2["SET_SELECTED_CREDENTIALS"] = "SET_SELECTED_CREDENTIALS";
|
|
332
332
|
return FirstPartyMachineEvents2;
|
|
333
|
-
}({});
|
|
333
|
+
})({});
|
|
334
334
|
|
|
335
335
|
// src/machines/oid4vciMachine.ts
|
|
336
336
|
var oid4vciHasNoContactGuard = /* @__PURE__ */ __name((_ctx, _event) => {
|