@learncard/helpers 1.6.1 → 1.6.3
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/helpers.cjs.development.cjs +4052 -3640
- package/dist/helpers.cjs.development.cjs.map +2 -2
- package/dist/helpers.cjs.production.min.cjs +27 -27
- package/dist/helpers.cjs.production.min.cjs.map +3 -3
- package/dist/helpers.esm.js +372 -14
- package/dist/helpers.esm.js.map +2 -2
- package/package.json +2 -2
package/dist/helpers.esm.js
CHANGED
|
@@ -6,7 +6,11 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
6
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
7
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
8
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
-
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
10
14
|
};
|
|
11
15
|
var __export = (target, all) => {
|
|
12
16
|
for (var name in all)
|
|
@@ -77,6 +81,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
77
81
|
AppEventResponseValidator: /* @__PURE__ */ __name(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
78
82
|
AppEventValidator: /* @__PURE__ */ __name(() => AppEventValidator, "AppEventValidator"),
|
|
79
83
|
AppListingStatusValidator: /* @__PURE__ */ __name(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
84
|
+
AppManifestDiffValidator: /* @__PURE__ */ __name(() => AppManifestDiffValidator, "AppManifestDiffValidator"),
|
|
85
|
+
AppManifestTemplateChangeValidator: /* @__PURE__ */ __name(() => AppManifestTemplateChangeValidator, "AppManifestTemplateChangeValidator"),
|
|
86
|
+
AppManifestTemplateRefValidator: /* @__PURE__ */ __name(() => AppManifestTemplateRefValidator, "AppManifestTemplateRefValidator"),
|
|
87
|
+
AppManifestValidator: /* @__PURE__ */ __name(() => AppManifestValidator, "AppManifestValidator"),
|
|
88
|
+
AppManifestVersionStatusValidator: /* @__PURE__ */ __name(() => AppManifestVersionStatusValidator, "AppManifestVersionStatusValidator"),
|
|
89
|
+
AppManifestVersionValidator: /* @__PURE__ */ __name(() => AppManifestVersionValidator, "AppManifestVersionValidator"),
|
|
80
90
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
81
91
|
AppStoreListingSubmitterValidator: /* @__PURE__ */ __name(() => AppStoreListingSubmitterValidator, "AppStoreListingSubmitterValidator"),
|
|
82
92
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
@@ -98,6 +108,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
98
108
|
BoostRecipientValidator: /* @__PURE__ */ __name(() => BoostRecipientValidator, "BoostRecipientValidator"),
|
|
99
109
|
BoostRecipientWithChildrenValidator: /* @__PURE__ */ __name(() => BoostRecipientWithChildrenValidator, "BoostRecipientWithChildrenValidator"),
|
|
100
110
|
BoostValidator: /* @__PURE__ */ __name(() => BoostValidator, "BoostValidator"),
|
|
111
|
+
CapturedConsentRecordValidator: /* @__PURE__ */ __name(() => CapturedConsentRecordValidator, "CapturedConsentRecordValidator"),
|
|
112
|
+
CapturedTemplateRecordValidator: /* @__PURE__ */ __name(() => CapturedTemplateRecordValidator, "CapturedTemplateRecordValidator"),
|
|
101
113
|
CheckCredentialEventValidator: /* @__PURE__ */ __name(() => CheckCredentialEventValidator, "CheckCredentialEventValidator"),
|
|
102
114
|
CheckIssuanceStatusEventValidator: /* @__PURE__ */ __name(() => CheckIssuanceStatusEventValidator, "CheckIssuanceStatusEventValidator"),
|
|
103
115
|
ClaimHookQueryValidator: /* @__PURE__ */ __name(() => ClaimHookQueryValidator, "ClaimHookQueryValidator"),
|
|
@@ -119,6 +131,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
119
131
|
ConsentFlowDataForDidQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowDataForDidQueryValidator, "ConsentFlowDataForDidQueryValidator"),
|
|
120
132
|
ConsentFlowDataQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowDataQueryValidator, "ConsentFlowDataQueryValidator"),
|
|
121
133
|
ConsentFlowGuardianApprovalValidator: /* @__PURE__ */ __name(() => ConsentFlowGuardianApprovalValidator, "ConsentFlowGuardianApprovalValidator"),
|
|
134
|
+
ConsentFlowReferralValidator: /* @__PURE__ */ __name(() => ConsentFlowReferralValidator, "ConsentFlowReferralValidator"),
|
|
122
135
|
ConsentFlowTermValidator: /* @__PURE__ */ __name(() => ConsentFlowTermValidator, "ConsentFlowTermValidator"),
|
|
123
136
|
ConsentFlowTermsQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowTermsQueryValidator, "ConsentFlowTermsQueryValidator"),
|
|
124
137
|
ConsentFlowTermsStatusValidator: /* @__PURE__ */ __name(() => ConsentFlowTermsStatusValidator, "ConsentFlowTermsStatusValidator"),
|
|
@@ -126,6 +139,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
126
139
|
ConsentFlowTransactionActionValidator: /* @__PURE__ */ __name(() => ConsentFlowTransactionActionValidator, "ConsentFlowTransactionActionValidator"),
|
|
127
140
|
ConsentFlowTransactionValidator: /* @__PURE__ */ __name(() => ConsentFlowTransactionValidator, "ConsentFlowTransactionValidator"),
|
|
128
141
|
ConsentFlowTransactionsQueryValidator: /* @__PURE__ */ __name(() => ConsentFlowTransactionsQueryValidator, "ConsentFlowTransactionsQueryValidator"),
|
|
142
|
+
ConsentFlowWebhookMetadataValidator: /* @__PURE__ */ __name(() => ConsentFlowWebhookMetadataValidator, "ConsentFlowWebhookMetadataValidator"),
|
|
143
|
+
ConsentRequestPersonalFieldValidator: /* @__PURE__ */ __name(() => ConsentRequestPersonalFieldValidator, "ConsentRequestPersonalFieldValidator"),
|
|
144
|
+
ConsentRequestValidator: /* @__PURE__ */ __name(() => ConsentRequestValidator, "ConsentRequestValidator"),
|
|
145
|
+
ConsentRequestWalletCategoryValidator: /* @__PURE__ */ __name(() => ConsentRequestWalletCategoryValidator, "ConsentRequestWalletCategoryValidator"),
|
|
129
146
|
ContactMethodCreateValidator: /* @__PURE__ */ __name(() => ContactMethodCreateValidator, "ContactMethodCreateValidator"),
|
|
130
147
|
ContactMethodQueryValidator: /* @__PURE__ */ __name(() => ContactMethodQueryValidator, "ContactMethodQueryValidator"),
|
|
131
148
|
ContactMethodValidator: /* @__PURE__ */ __name(() => ContactMethodValidator, "ContactMethodValidator"),
|
|
@@ -133,6 +150,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
133
150
|
ContactMethodVerificationValidator: /* @__PURE__ */ __name(() => ContactMethodVerificationValidator, "ContactMethodVerificationValidator"),
|
|
134
151
|
ContextValidator: /* @__PURE__ */ __name(() => ContextValidator, "ContextValidator"),
|
|
135
152
|
ContractCredentialValidator: /* @__PURE__ */ __name(() => ContractCredentialValidator, "ContractCredentialValidator"),
|
|
153
|
+
ContractRequestFieldsValidator: /* @__PURE__ */ __name(() => ContractRequestFieldsValidator, "ContractRequestFieldsValidator"),
|
|
136
154
|
CountSkillsInputValidator: /* @__PURE__ */ __name(() => CountSkillsInputValidator, "CountSkillsInputValidator"),
|
|
137
155
|
CountSkillsResultValidator: /* @__PURE__ */ __name(() => CountSkillsResultValidator, "CountSkillsResultValidator"),
|
|
138
156
|
CreateContactMethodSessionResponseValidator: /* @__PURE__ */ __name(() => CreateContactMethodSessionResponseValidator, "CreateContactMethodSessionResponseValidator"),
|
|
@@ -168,6 +186,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
168
186
|
CriteriaValidator: /* @__PURE__ */ __name(() => CriteriaValidator, "CriteriaValidator"),
|
|
169
187
|
DEFAULT_BITSTRING_STATUS_LIST_SIZE: /* @__PURE__ */ __name(() => DEFAULT_BITSTRING_STATUS_LIST_SIZE, "DEFAULT_BITSTRING_STATUS_LIST_SIZE"),
|
|
170
188
|
DeleteFrameworkInputValidator: /* @__PURE__ */ __name(() => DeleteFrameworkInputValidator, "DeleteFrameworkInputValidator"),
|
|
189
|
+
DeleteShareLinkAttachmentChunksInputValidator: /* @__PURE__ */ __name(() => DeleteShareLinkAttachmentChunksInputValidator, "DeleteShareLinkAttachmentChunksInputValidator"),
|
|
190
|
+
DeleteShareLinkAttachmentChunksOutputValidator: /* @__PURE__ */ __name(() => DeleteShareLinkAttachmentChunksOutputValidator, "DeleteShareLinkAttachmentChunksOutputValidator"),
|
|
171
191
|
DeleteSkillInputValidator: /* @__PURE__ */ __name(() => DeleteSkillInputValidator, "DeleteSkillInputValidator"),
|
|
172
192
|
DidDocumentValidator: /* @__PURE__ */ __name(() => DidDocumentValidator, "DidDocumentValidator"),
|
|
173
193
|
EMPTY_IN_APP_MESSAGES_FLAG: /* @__PURE__ */ __name(() => EMPTY_IN_APP_MESSAGES_FLAG, "EMPTY_IN_APP_MESSAGES_FLAG"),
|
|
@@ -190,6 +210,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
190
210
|
GetCredentialRefreshHistoryResultValidator: /* @__PURE__ */ __name(() => GetCredentialRefreshHistoryResultValidator, "GetCredentialRefreshHistoryResultValidator"),
|
|
191
211
|
GetFullSkillTreeInputValidator: /* @__PURE__ */ __name(() => GetFullSkillTreeInputValidator, "GetFullSkillTreeInputValidator"),
|
|
192
212
|
GetFullSkillTreeResultValidator: /* @__PURE__ */ __name(() => GetFullSkillTreeResultValidator, "GetFullSkillTreeResultValidator"),
|
|
213
|
+
GetShareLinkAttachmentChunkInputValidator: /* @__PURE__ */ __name(() => GetShareLinkAttachmentChunkInputValidator, "GetShareLinkAttachmentChunkInputValidator"),
|
|
193
214
|
GetSkillPathInputValidator: /* @__PURE__ */ __name(() => GetSkillPathInputValidator, "GetSkillPathInputValidator"),
|
|
194
215
|
GetSkillPathResultValidator: /* @__PURE__ */ __name(() => GetSkillPathResultValidator, "GetSkillPathResultValidator"),
|
|
195
216
|
GetTemplateRecipientsEventValidator: /* @__PURE__ */ __name(() => GetTemplateRecipientsEventValidator, "GetTemplateRecipientsEventValidator"),
|
|
@@ -207,6 +228,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
207
228
|
InboxCredentialRefreshReceiptValidator: /* @__PURE__ */ __name(() => InboxCredentialRefreshReceiptValidator, "InboxCredentialRefreshReceiptValidator"),
|
|
208
229
|
InboxCredentialValidator: /* @__PURE__ */ __name(() => InboxCredentialValidator, "InboxCredentialValidator"),
|
|
209
230
|
IncrementCounterEventValidator: /* @__PURE__ */ __name(() => IncrementCounterEventValidator, "IncrementCounterEventValidator"),
|
|
231
|
+
InlineAlignmentValidator: /* @__PURE__ */ __name(() => InlineAlignmentValidator, "InlineAlignmentValidator"),
|
|
232
|
+
InlineCredentialTemplateValidator: /* @__PURE__ */ __name(() => InlineCredentialTemplateValidator, "InlineCredentialTemplateValidator"),
|
|
233
|
+
InlineEvidenceValidator: /* @__PURE__ */ __name(() => InlineEvidenceValidator, "InlineEvidenceValidator"),
|
|
234
|
+
InlineSendCredentialEventValidator: /* @__PURE__ */ __name(() => InlineSendCredentialEventValidator, "InlineSendCredentialEventValidator"),
|
|
235
|
+
InlineWalletCategoryValidator: /* @__PURE__ */ __name(() => InlineWalletCategoryValidator, "InlineWalletCategoryValidator"),
|
|
236
|
+
InlineWalletSkillTagValidator: /* @__PURE__ */ __name(() => InlineWalletSkillTagValidator, "InlineWalletSkillTagValidator"),
|
|
210
237
|
InstalledAppValidator: /* @__PURE__ */ __name(() => InstalledAppValidator, "InstalledAppValidator"),
|
|
211
238
|
IssueInboxCredentialBatchItemResultValidator: /* @__PURE__ */ __name(() => IssueInboxCredentialBatchItemResultValidator, "IssueInboxCredentialBatchItemResultValidator"),
|
|
212
239
|
IssueInboxCredentialBatchItemValidator: /* @__PURE__ */ __name(() => IssueInboxCredentialBatchItemValidator, "IssueInboxCredentialBatchItemValidator"),
|
|
@@ -259,6 +286,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
259
286
|
LCNVisibleProfileValidator: /* @__PURE__ */ __name(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
|
|
260
287
|
LaunchTypeValidator: /* @__PURE__ */ __name(() => LaunchTypeValidator, "LaunchTypeValidator"),
|
|
261
288
|
LearnCardRefreshAuthorizationValidator: /* @__PURE__ */ __name(() => LearnCardRefreshAuthorizationValidator, "LearnCardRefreshAuthorizationValidator"),
|
|
289
|
+
LegacySendCredentialEventValidator: /* @__PURE__ */ __name(() => LegacySendCredentialEventValidator, "LegacySendCredentialEventValidator"),
|
|
262
290
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
|
|
263
291
|
ListShareLinksInputValidator: /* @__PURE__ */ __name(() => ListShareLinksInputValidator, "ListShareLinksInputValidator"),
|
|
264
292
|
MAX_ENDORSEMENTS: /* @__PURE__ */ __name(() => MAX_ENDORSEMENTS, "MAX_ENDORSEMENTS"),
|
|
@@ -270,6 +298,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
270
298
|
MAX_VP_MEMBERS: /* @__PURE__ */ __name(() => MAX_VP_MEMBERS, "MAX_VP_MEMBERS"),
|
|
271
299
|
ManagedCredentialRefreshReceiptValidator: /* @__PURE__ */ __name(() => ManagedCredentialRefreshReceiptValidator, "ManagedCredentialRefreshReceiptValidator"),
|
|
272
300
|
ManagedCredentialRefreshServiceValidator: /* @__PURE__ */ __name(() => ManagedCredentialRefreshServiceValidator2, "ManagedCredentialRefreshServiceValidator"),
|
|
301
|
+
NormalizedConsentScopesValidator: /* @__PURE__ */ __name(() => NormalizedConsentScopesValidator, "NormalizedConsentScopesValidator"),
|
|
273
302
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
|
|
274
303
|
PaginatedBoostRecipientsValidator: /* @__PURE__ */ __name(() => PaginatedBoostRecipientsValidator, "PaginatedBoostRecipientsValidator"),
|
|
275
304
|
PaginatedBoostRecipientsWithChildrenValidator: /* @__PURE__ */ __name(() => PaginatedBoostRecipientsWithChildrenValidator, "PaginatedBoostRecipientsWithChildrenValidator"),
|
|
@@ -296,6 +325,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
296
325
|
PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
|
|
297
326
|
PaginationOptionsValidator: /* @__PURE__ */ __name(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
|
|
298
327
|
PaginationResponseValidator: /* @__PURE__ */ __name(() => PaginationResponseValidator, "PaginationResponseValidator"),
|
|
328
|
+
PendingListingUpdateStatusValidator: /* @__PURE__ */ __name(() => PendingListingUpdateStatusValidator, "PendingListingUpdateStatusValidator"),
|
|
329
|
+
PendingListingUpdateValidator: /* @__PURE__ */ __name(() => PendingListingUpdateValidator, "PendingListingUpdateValidator"),
|
|
299
330
|
PrepareRefreshableSendInputValidator: /* @__PURE__ */ __name(() => PrepareRefreshableSendInputValidator, "PrepareRefreshableSendInputValidator"),
|
|
300
331
|
PrepareRefreshableSendResultValidator: /* @__PURE__ */ __name(() => PrepareRefreshableSendResultValidator, "PrepareRefreshableSendResultValidator"),
|
|
301
332
|
ProfileValidator: /* @__PURE__ */ __name(() => ProfileValidator, "ProfileValidator"),
|
|
@@ -308,6 +339,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
308
339
|
PublishCredentialRefreshResultValidator: /* @__PURE__ */ __name(() => PublishCredentialRefreshResultValidator, "PublishCredentialRefreshResultValidator"),
|
|
309
340
|
PublishIssuerSignedRefreshValidator: /* @__PURE__ */ __name(() => PublishIssuerSignedRefreshValidator, "PublishIssuerSignedRefreshValidator"),
|
|
310
341
|
PublishSigningAuthorityRefreshValidator: /* @__PURE__ */ __name(() => PublishSigningAuthorityRefreshValidator, "PublishSigningAuthorityRefreshValidator"),
|
|
342
|
+
PutShareLinkAttachmentChunkInputValidator: /* @__PURE__ */ __name(() => PutShareLinkAttachmentChunkInputValidator, "PutShareLinkAttachmentChunkInputValidator"),
|
|
343
|
+
PutShareLinkAttachmentChunkOutputValidator: /* @__PURE__ */ __name(() => PutShareLinkAttachmentChunkOutputValidator, "PutShareLinkAttachmentChunkOutputValidator"),
|
|
344
|
+
RawInlineCredentialTemplateValidator: /* @__PURE__ */ __name(() => RawInlineCredentialTemplateValidator, "RawInlineCredentialTemplateValidator"),
|
|
311
345
|
RefreshServiceValidator: /* @__PURE__ */ __name(() => RefreshServiceValidator, "RefreshServiceValidator"),
|
|
312
346
|
RegExpValidator: /* @__PURE__ */ __name(() => RegExpValidator, "RegExpValidator"),
|
|
313
347
|
RelatedValidator: /* @__PURE__ */ __name(() => RelatedValidator, "RelatedValidator"),
|
|
@@ -334,6 +368,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
334
368
|
SendBoostResponseValidator: /* @__PURE__ */ __name(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
|
|
335
369
|
SendBoostTemplateValidator: /* @__PURE__ */ __name(() => SendBoostTemplateValidator, "SendBoostTemplateValidator"),
|
|
336
370
|
SendBrandingOptionsValidator: /* @__PURE__ */ __name(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
|
|
371
|
+
SendContractRequestValidator: /* @__PURE__ */ __name(() => SendContractRequestValidator, "SendContractRequestValidator"),
|
|
337
372
|
SendCredentialEventValidator: /* @__PURE__ */ __name(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
|
|
338
373
|
SendInboxResponseValidator: /* @__PURE__ */ __name(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
|
|
339
374
|
SendInputValidator: /* @__PURE__ */ __name(() => SendInputValidator, "SendInputValidator"),
|
|
@@ -349,6 +384,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
349
384
|
ShareEndorsementEntryValidator: /* @__PURE__ */ __name(() => ShareEndorsementEntryValidator, "ShareEndorsementEntryValidator"),
|
|
350
385
|
ShareEnvelopeValidator: /* @__PURE__ */ __name(() => ShareEnvelopeValidator, "ShareEnvelopeValidator"),
|
|
351
386
|
ShareIvValidator: /* @__PURE__ */ __name(() => ShareIvValidator, "ShareIvValidator"),
|
|
387
|
+
ShareLinkAttachmentChunkEnvelopeValidator: /* @__PURE__ */ __name(() => ShareLinkAttachmentChunkEnvelopeValidator, "ShareLinkAttachmentChunkEnvelopeValidator"),
|
|
388
|
+
ShareLinkAttachmentChunkOutputValidator: /* @__PURE__ */ __name(() => ShareLinkAttachmentChunkOutputValidator, "ShareLinkAttachmentChunkOutputValidator"),
|
|
389
|
+
ShareLinkAttachmentValidator: /* @__PURE__ */ __name(() => ShareLinkAttachmentValidator, "ShareLinkAttachmentValidator"),
|
|
352
390
|
ShareLinkIdInputValidator: /* @__PURE__ */ __name(() => ShareLinkIdInputValidator, "ShareLinkIdInputValidator"),
|
|
353
391
|
ShareLinkIdValidator: /* @__PURE__ */ __name(() => ShareLinkIdValidator, "ShareLinkIdValidator"),
|
|
354
392
|
ShareLinkOperationKeyInputValidator: /* @__PURE__ */ __name(() => ShareLinkOperationKeyInputValidator, "ShareLinkOperationKeyInputValidator"),
|
|
@@ -369,6 +407,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
369
407
|
ShareRecoverySelectionValidator: /* @__PURE__ */ __name(() => ShareRecoverySelectionValidator, "ShareRecoverySelectionValidator"),
|
|
370
408
|
ShareSelectionEntryValidator: /* @__PURE__ */ __name(() => ShareSelectionEntryValidator, "ShareSelectionEntryValidator"),
|
|
371
409
|
ShareSharerValidator: /* @__PURE__ */ __name(() => ShareSharerValidator, "ShareSharerValidator"),
|
|
410
|
+
SimpleInlineCredentialTemplateValidator: /* @__PURE__ */ __name(() => SimpleInlineCredentialTemplateValidator, "SimpleInlineCredentialTemplateValidator"),
|
|
372
411
|
SkillDeletionStrategyValidator: /* @__PURE__ */ __name(() => SkillDeletionStrategyValidator, "SkillDeletionStrategyValidator"),
|
|
373
412
|
SkillFrameworkAdminInputValidator: /* @__PURE__ */ __name(() => SkillFrameworkAdminInputValidator, "SkillFrameworkAdminInputValidator"),
|
|
374
413
|
SkillFrameworkAdminsValidator: /* @__PURE__ */ __name(() => SkillFrameworkAdminsValidator, "SkillFrameworkAdminsValidator"),
|
|
@@ -399,9 +438,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
399
438
|
UnsignedClrCredentialValidator: /* @__PURE__ */ __name(() => UnsignedClrCredentialValidator, "UnsignedClrCredentialValidator"),
|
|
400
439
|
UnsignedVCValidator: /* @__PURE__ */ __name(() => UnsignedVCValidator, "UnsignedVCValidator"),
|
|
401
440
|
UnsignedVPValidator: /* @__PURE__ */ __name(() => UnsignedVPValidator, "UnsignedVPValidator"),
|
|
441
|
+
UnsupportedSignInOperationError: /* @__PURE__ */ __name(() => UnsupportedSignInOperationError, "UnsupportedSignInOperationError"),
|
|
402
442
|
UpdateFrameworkInputValidator: /* @__PURE__ */ __name(() => UpdateFrameworkInputValidator, "UpdateFrameworkInputValidator"),
|
|
403
443
|
UpdateShareLinkInputValidator: /* @__PURE__ */ __name(() => UpdateShareLinkInputValidator, "UpdateShareLinkInputValidator"),
|
|
404
444
|
UpdateSkillInputValidator: /* @__PURE__ */ __name(() => UpdateSkillInputValidator, "UpdateSkillInputValidator"),
|
|
445
|
+
UpsertConsentContractEventValidator: /* @__PURE__ */ __name(() => UpsertConsentContractEventValidator, "UpsertConsentContractEventValidator"),
|
|
446
|
+
UpsertConsentContractResponseValidator: /* @__PURE__ */ __name(() => UpsertConsentContractResponseValidator, "UpsertConsentContractResponseValidator"),
|
|
405
447
|
VC2EvidenceValidator: /* @__PURE__ */ __name(() => VC2EvidenceValidator, "VC2EvidenceValidator"),
|
|
406
448
|
VCValidator: /* @__PURE__ */ __name(() => VCValidator, "VCValidator"),
|
|
407
449
|
VPValidator: /* @__PURE__ */ __name(() => VPValidator, "VPValidator"),
|
|
@@ -15842,7 +15884,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
15842
15884
|
verificationMethod: external_exports.string(),
|
|
15843
15885
|
jws: external_exports.string().optional()
|
|
15844
15886
|
}).catchall(external_exports.any()).superRefine((proof, ctx) => {
|
|
15845
|
-
if (proof.created === void 0 &&
|
|
15887
|
+
if (proof.created === void 0 && // These standardized Data Integrity suites make created optional.
|
|
15888
|
+
// Keep the prior requirement for legacy and unknown proof suites.
|
|
15889
|
+
// https://www.w3.org/TR/vc-di-eddsa/#proof-configuration-eddsa-jcs-2022
|
|
15890
|
+
// https://www.w3.org/TR/vc-di-bbs/#proof-configuration
|
|
15891
|
+
(proof.type !== "DataIntegrityProof" || ![
|
|
15892
|
+
"ecdsa-rdfc-2019",
|
|
15893
|
+
"ecdsa-jcs-2019",
|
|
15894
|
+
"ecdsa-sd-2023",
|
|
15895
|
+
"eddsa-rdfc-2022",
|
|
15896
|
+
"eddsa-jcs-2022",
|
|
15897
|
+
"bbs-2023"
|
|
15898
|
+
].includes(proof.cryptosuite))) {
|
|
15846
15899
|
ctx.addIssue({
|
|
15847
15900
|
code: "custom",
|
|
15848
15901
|
path: ["created"],
|
|
@@ -16122,7 +16175,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16122
16175
|
"replacedBy"
|
|
16123
16176
|
]).or(external_exports.string());
|
|
16124
16177
|
var AssociationValidator = external_exports.object({
|
|
16125
|
-
|
|
16178
|
+
// Accept compacted scalars while retaining the existing permissive array contract.
|
|
16179
|
+
type: external_exports.string().min(1).or(external_exports.string().array().nonempty()),
|
|
16126
16180
|
associationType: AssociationTypeValidator,
|
|
16127
16181
|
sourceId: external_exports.string().optional(),
|
|
16128
16182
|
targetId: external_exports.string()
|
|
@@ -16945,11 +16999,48 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16945
16999
|
updatedAt: external_exports.string(),
|
|
16946
17000
|
expiresAt: external_exports.string().optional(),
|
|
16947
17001
|
autoBoosts: external_exports.string().array().optional(),
|
|
16948
|
-
writers: external_exports.array(LCNProfileValidator).optional()
|
|
17002
|
+
writers: external_exports.array(LCNProfileValidator).optional(),
|
|
17003
|
+
recipients: external_exports.array(LCNPublicProfileValidator.extend({ did: external_exports.string() })).optional(),
|
|
17004
|
+
audienceVersion: external_exports.number().int().nonnegative().optional()
|
|
16949
17005
|
});
|
|
16950
|
-
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied"]).nullable();
|
|
17006
|
+
var ConsentFlowContractRequestStatusValidator = external_exports.enum(["pending", "accepted", "denied", "cancelled"]).nullable();
|
|
16951
17007
|
var ConsentFlowContractRequestReadStatusValidator = external_exports.enum(["unseen", "seen"]).nullable();
|
|
16952
|
-
var
|
|
17008
|
+
var ConsentFlowReferralValidator = external_exports.object({
|
|
17009
|
+
requestId: external_exports.string(),
|
|
17010
|
+
requestedBy: external_exports.string(),
|
|
17011
|
+
externalReferenceId: external_exports.string().max(256).optional()
|
|
17012
|
+
});
|
|
17013
|
+
var ContractRequestFieldsValidator = ConsentFlowReferralValidator.partial().extend({
|
|
17014
|
+
requestedAt: external_exports.string().optional(),
|
|
17015
|
+
message: external_exports.string().max(500).optional()
|
|
17016
|
+
});
|
|
17017
|
+
var SendContractRequestValidator = external_exports.object({
|
|
17018
|
+
contractUri: external_exports.string(),
|
|
17019
|
+
targetProfileId: external_exports.string(),
|
|
17020
|
+
externalReferenceId: external_exports.string().trim().min(1).max(256).optional(),
|
|
17021
|
+
message: external_exports.string().trim().max(500).optional()
|
|
17022
|
+
});
|
|
17023
|
+
var ConsentFlowWebhookMetadataValidator = external_exports.object({
|
|
17024
|
+
eventId: external_exports.string(),
|
|
17025
|
+
deliveryKey: external_exports.string(),
|
|
17026
|
+
event: external_exports.enum([
|
|
17027
|
+
"request_sent",
|
|
17028
|
+
"request_accepted",
|
|
17029
|
+
"request_denied",
|
|
17030
|
+
"request_cancelled",
|
|
17031
|
+
"consent_created",
|
|
17032
|
+
"consent_updated",
|
|
17033
|
+
"consent_withdrawn",
|
|
17034
|
+
"credentials_synced"
|
|
17035
|
+
]),
|
|
17036
|
+
contractUri: external_exports.string(),
|
|
17037
|
+
termsUri: external_exports.string().optional(),
|
|
17038
|
+
requestId: external_exports.string().optional(),
|
|
17039
|
+
requestedBy: external_exports.string().optional(),
|
|
17040
|
+
externalReferenceId: external_exports.string().optional(),
|
|
17041
|
+
recipientRole: external_exports.enum(["owner", "recipient", "requester", "target"])
|
|
17042
|
+
});
|
|
17043
|
+
var ConsentFlowContractRequestForProfileValidator = ContractRequestFieldsValidator.extend({
|
|
16953
17044
|
profile: LCNProfileValidator,
|
|
16954
17045
|
status: ConsentFlowContractRequestStatusValidator,
|
|
16955
17046
|
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
@@ -16995,6 +17086,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
16995
17086
|
expiresAt: external_exports.string().optional(),
|
|
16996
17087
|
oneTime: external_exports.boolean().optional(),
|
|
16997
17088
|
terms: ConsentFlowTermsValidator,
|
|
17089
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
16998
17090
|
contract: ConsentFlowContractDetailsValidator,
|
|
16999
17091
|
uri: external_exports.string(),
|
|
17000
17092
|
consenter: LCNProfileValidator,
|
|
@@ -17090,6 +17182,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17090
17182
|
oneTime: external_exports.boolean().optional(),
|
|
17091
17183
|
terms: ConsentFlowTermsValidator.optional(),
|
|
17092
17184
|
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
17185
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
17093
17186
|
id: external_exports.string(),
|
|
17094
17187
|
action: ConsentFlowTransactionActionValidator,
|
|
17095
17188
|
date: external_exports.string(),
|
|
@@ -17100,6 +17193,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17100
17193
|
status: ConsentFlowTermsStatusValidator,
|
|
17101
17194
|
contract: ConsentFlowContractDetailsValidator,
|
|
17102
17195
|
terms: ConsentFlowTermsValidator,
|
|
17196
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
17103
17197
|
transactions: ConsentFlowTransactionValidator.array()
|
|
17104
17198
|
});
|
|
17105
17199
|
var HolderExportMetadataValidator = external_exports.object({
|
|
@@ -17836,7 +17930,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17836
17930
|
displayName: external_exports.string(),
|
|
17837
17931
|
email: external_exports.string().optional()
|
|
17838
17932
|
});
|
|
17839
|
-
var
|
|
17933
|
+
var AppStoreListingFieldsValidator = external_exports.object({
|
|
17840
17934
|
listing_id: external_exports.string(),
|
|
17841
17935
|
slug: external_exports.string().optional(),
|
|
17842
17936
|
display_name: external_exports.string(),
|
|
@@ -17862,15 +17956,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17862
17956
|
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
17863
17957
|
contact_email: external_exports.string().email().optional()
|
|
17864
17958
|
});
|
|
17959
|
+
var PendingListingUpdateStatusValidator = external_exports.enum(["DRAFT", "PENDING_REVIEW"]);
|
|
17960
|
+
var PendingListingUpdateValidator = external_exports.object({
|
|
17961
|
+
status: PendingListingUpdateStatusValidator,
|
|
17962
|
+
submitted_at: external_exports.string().optional(),
|
|
17963
|
+
changes: AppStoreListingFieldsValidator.omit({
|
|
17964
|
+
listing_id: true,
|
|
17965
|
+
app_listing_status: true,
|
|
17966
|
+
promotion_level: true,
|
|
17967
|
+
submitted_at: true,
|
|
17968
|
+
submitter: true
|
|
17969
|
+
}).partial(),
|
|
17970
|
+
manifest_version: external_exports.number().int().min(1).optional()
|
|
17971
|
+
});
|
|
17972
|
+
var AppStoreListingValidator = AppStoreListingFieldsValidator.extend({
|
|
17973
|
+
pending_update: PendingListingUpdateValidator.optional()
|
|
17974
|
+
});
|
|
17865
17975
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
17866
17976
|
listing_id: true,
|
|
17867
17977
|
app_listing_status: true,
|
|
17868
|
-
promotion_level: true
|
|
17978
|
+
promotion_level: true,
|
|
17979
|
+
pending_update: true
|
|
17869
17980
|
});
|
|
17870
17981
|
var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
|
|
17871
17982
|
listing_id: true,
|
|
17872
17983
|
app_listing_status: true,
|
|
17873
|
-
promotion_level: true
|
|
17984
|
+
promotion_level: true,
|
|
17985
|
+
pending_update: true
|
|
17874
17986
|
});
|
|
17875
17987
|
var InstalledAppValidator = AppStoreListingValidator.extend({
|
|
17876
17988
|
installed_at: external_exports.string()
|
|
@@ -17885,12 +17997,87 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17885
17997
|
templateAlias: external_exports.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
17886
17998
|
boostUri: external_exports.string()
|
|
17887
17999
|
});
|
|
17888
|
-
var
|
|
18000
|
+
var InlineWalletCategoryValidator = external_exports.enum([
|
|
18001
|
+
"Achievement",
|
|
18002
|
+
"Skill",
|
|
18003
|
+
"ID",
|
|
18004
|
+
"Learning History",
|
|
18005
|
+
"Work History",
|
|
18006
|
+
"Social Badges",
|
|
18007
|
+
"Membership",
|
|
18008
|
+
"Accomplishment",
|
|
18009
|
+
"Experiences",
|
|
18010
|
+
"Accommodation",
|
|
18011
|
+
"Family"
|
|
18012
|
+
]);
|
|
18013
|
+
var InlineAlignmentValidator = external_exports.object({
|
|
18014
|
+
name: external_exports.string(),
|
|
18015
|
+
url: external_exports.string(),
|
|
18016
|
+
framework: external_exports.string().optional(),
|
|
18017
|
+
code: external_exports.string().optional()
|
|
18018
|
+
}).passthrough();
|
|
18019
|
+
var InlineEvidenceValidator = external_exports.object({
|
|
18020
|
+
id: external_exports.string().optional(),
|
|
18021
|
+
name: external_exports.string().optional(),
|
|
18022
|
+
narrative: external_exports.string().optional()
|
|
18023
|
+
}).passthrough();
|
|
18024
|
+
var InlineWalletSkillTagValidator = external_exports.object({
|
|
18025
|
+
frameworkId: external_exports.string(),
|
|
18026
|
+
id: external_exports.string(),
|
|
18027
|
+
proficiencyLevel: external_exports.string().optional()
|
|
18028
|
+
}).passthrough();
|
|
18029
|
+
var SimpleInlineCredentialTemplateValidator = external_exports.object({
|
|
18030
|
+
rawCredential: external_exports.undefined().optional(),
|
|
18031
|
+
name: external_exports.string(),
|
|
18032
|
+
description: external_exports.string().optional(),
|
|
18033
|
+
image: external_exports.string().optional(),
|
|
18034
|
+
issuerName: external_exports.string().optional(),
|
|
18035
|
+
achievementType: external_exports.string().optional(),
|
|
18036
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
18037
|
+
criteria: external_exports.object({
|
|
18038
|
+
narrative: external_exports.string().optional(),
|
|
18039
|
+
url: external_exports.string().optional()
|
|
18040
|
+
}).passthrough().optional(),
|
|
18041
|
+
alignments: external_exports.array(InlineAlignmentValidator).optional(),
|
|
18042
|
+
tags: external_exports.array(external_exports.string()).optional(),
|
|
18043
|
+
activity: external_exports.object({
|
|
18044
|
+
startDate: external_exports.string().optional(),
|
|
18045
|
+
endDate: external_exports.string().optional()
|
|
18046
|
+
}).passthrough().optional(),
|
|
18047
|
+
credits: external_exports.object({
|
|
18048
|
+
earned: external_exports.union([external_exports.number(), external_exports.string()]).optional(),
|
|
18049
|
+
available: external_exports.union([external_exports.number(), external_exports.string()]).optional()
|
|
18050
|
+
}).passthrough().optional(),
|
|
18051
|
+
validUntil: external_exports.string().optional(),
|
|
18052
|
+
evidence: external_exports.array(InlineEvidenceValidator).optional(),
|
|
18053
|
+
walletSkills: external_exports.array(InlineWalletSkillTagValidator).optional()
|
|
18054
|
+
}).passthrough();
|
|
18055
|
+
var RawInlineCredentialTemplateValidator = external_exports.object({
|
|
18056
|
+
rawCredential: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
18057
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
18058
|
+
walletSkills: external_exports.array(InlineWalletSkillTagValidator).optional()
|
|
18059
|
+
}).passthrough();
|
|
18060
|
+
var InlineCredentialTemplateValidator = external_exports.union([
|
|
18061
|
+
RawInlineCredentialTemplateValidator,
|
|
18062
|
+
SimpleInlineCredentialTemplateValidator
|
|
18063
|
+
]);
|
|
18064
|
+
var LegacySendCredentialEventValidator = external_exports.object({
|
|
17889
18065
|
type: external_exports.literal("send-credential"),
|
|
17890
18066
|
templateAlias: external_exports.string(),
|
|
17891
18067
|
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
17892
18068
|
preventDuplicateClaim: external_exports.boolean().optional()
|
|
17893
18069
|
});
|
|
18070
|
+
var InlineSendCredentialEventValidator = external_exports.object({
|
|
18071
|
+
type: external_exports.literal("send-credential"),
|
|
18072
|
+
alias: external_exports.string(),
|
|
18073
|
+
template: InlineCredentialTemplateValidator,
|
|
18074
|
+
templateData: external_exports.record(external_exports.string(), external_exports.unknown()).optional(),
|
|
18075
|
+
preventDuplicateClaim: external_exports.boolean().optional()
|
|
18076
|
+
});
|
|
18077
|
+
var SendCredentialEventValidator = external_exports.union([
|
|
18078
|
+
LegacySendCredentialEventValidator,
|
|
18079
|
+
InlineSendCredentialEventValidator
|
|
18080
|
+
]);
|
|
17894
18081
|
var CheckCredentialEventValidator = external_exports.object({
|
|
17895
18082
|
type: external_exports.literal("check-credential"),
|
|
17896
18083
|
templateAlias: external_exports.string().optional(),
|
|
@@ -17985,7 +18172,119 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17985
18172
|
type: external_exports.literal("get-counters"),
|
|
17986
18173
|
keys: external_exports.array(counterKeyValidator).min(1).max(50).optional()
|
|
17987
18174
|
});
|
|
17988
|
-
var
|
|
18175
|
+
var ConsentRequestWalletCategoryValidator = external_exports.enum([
|
|
18176
|
+
"Achievement",
|
|
18177
|
+
"Skill",
|
|
18178
|
+
"ID",
|
|
18179
|
+
"Learning History",
|
|
18180
|
+
"Work History",
|
|
18181
|
+
"Social Badges",
|
|
18182
|
+
"Membership",
|
|
18183
|
+
"Accomplishment",
|
|
18184
|
+
"Experiences",
|
|
18185
|
+
"Accommodation",
|
|
18186
|
+
"Family"
|
|
18187
|
+
]);
|
|
18188
|
+
var ConsentRequestPersonalFieldValidator = external_exports.enum([
|
|
18189
|
+
"name",
|
|
18190
|
+
"email",
|
|
18191
|
+
"phone",
|
|
18192
|
+
"birthDate",
|
|
18193
|
+
"country",
|
|
18194
|
+
"avatar"
|
|
18195
|
+
]);
|
|
18196
|
+
var ConsentRequestValidator = external_exports.object({
|
|
18197
|
+
read: external_exports.object({
|
|
18198
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).optional(),
|
|
18199
|
+
personalFields: external_exports.array(ConsentRequestPersonalFieldValidator).optional()
|
|
18200
|
+
}).optional(),
|
|
18201
|
+
write: external_exports.object({
|
|
18202
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).optional()
|
|
18203
|
+
}).optional(),
|
|
18204
|
+
reason: external_exports.string().optional()
|
|
18205
|
+
});
|
|
18206
|
+
var NormalizedConsentScopesValidator = external_exports.object({
|
|
18207
|
+
read: external_exports.object({
|
|
18208
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).default([]),
|
|
18209
|
+
personalFields: external_exports.array(ConsentRequestPersonalFieldValidator).default([])
|
|
18210
|
+
}),
|
|
18211
|
+
write: external_exports.object({
|
|
18212
|
+
credentialCategories: external_exports.array(ConsentRequestWalletCategoryValidator).default([])
|
|
18213
|
+
})
|
|
18214
|
+
});
|
|
18215
|
+
var CapturedTemplateRecordValidator = external_exports.object({
|
|
18216
|
+
alias: external_exports.string(),
|
|
18217
|
+
template: InlineCredentialTemplateValidator,
|
|
18218
|
+
version: external_exports.number().int().min(1),
|
|
18219
|
+
lastUsedAt: external_exports.string()
|
|
18220
|
+
}).passthrough();
|
|
18221
|
+
var CapturedConsentRecordValidator = external_exports.object({
|
|
18222
|
+
scopes: NormalizedConsentScopesValidator,
|
|
18223
|
+
reason: external_exports.string().optional(),
|
|
18224
|
+
lastUsedAt: external_exports.string()
|
|
18225
|
+
}).passthrough();
|
|
18226
|
+
var AppManifestValidator = external_exports.object({
|
|
18227
|
+
manifestVersion: external_exports.literal(1),
|
|
18228
|
+
appUrl: external_exports.string(),
|
|
18229
|
+
appKey: external_exports.string().max(200).optional(),
|
|
18230
|
+
suggestedName: external_exports.string().optional(),
|
|
18231
|
+
suggestedIconUrl: external_exports.string().optional(),
|
|
18232
|
+
permissions: external_exports.array(external_exports.string()).default([]),
|
|
18233
|
+
templates: external_exports.array(CapturedTemplateRecordValidator).default([]),
|
|
18234
|
+
consentRequests: external_exports.array(CapturedConsentRecordValidator).default([]),
|
|
18235
|
+
usedConsentContract: external_exports.boolean().optional(),
|
|
18236
|
+
featuresLaunched: external_exports.array(external_exports.string()).default([]),
|
|
18237
|
+
counterKeys: external_exports.array(external_exports.string()).default([]),
|
|
18238
|
+
usedLearnerContext: external_exports.boolean(),
|
|
18239
|
+
usedNotifications: external_exports.boolean(),
|
|
18240
|
+
firstCapturedAt: external_exports.string(),
|
|
18241
|
+
lastUpdatedAt: external_exports.string()
|
|
18242
|
+
}).passthrough();
|
|
18243
|
+
var AppManifestVersionStatusValidator = external_exports.enum(["draft", "active", "superseded"]);
|
|
18244
|
+
var AppManifestVersionValidator = external_exports.object({
|
|
18245
|
+
id: external_exports.string(),
|
|
18246
|
+
version: external_exports.number().int().min(1),
|
|
18247
|
+
manifestHash: external_exports.string(),
|
|
18248
|
+
manifest: AppManifestValidator,
|
|
18249
|
+
status: AppManifestVersionStatusValidator,
|
|
18250
|
+
createdAt: external_exports.string(),
|
|
18251
|
+
activatedAt: external_exports.string().optional()
|
|
18252
|
+
});
|
|
18253
|
+
var AppManifestStringDiffValidator = external_exports.object({
|
|
18254
|
+
added: external_exports.array(external_exports.string()),
|
|
18255
|
+
removed: external_exports.array(external_exports.string()),
|
|
18256
|
+
changed: external_exports.array(external_exports.string())
|
|
18257
|
+
});
|
|
18258
|
+
var AppManifestTemplateRefValidator = external_exports.object({
|
|
18259
|
+
alias: external_exports.string(),
|
|
18260
|
+
version: external_exports.number().int().min(1)
|
|
18261
|
+
});
|
|
18262
|
+
var AppManifestTemplateChangeValidator = external_exports.object({
|
|
18263
|
+
alias: external_exports.string(),
|
|
18264
|
+
fromVersion: external_exports.number().int().min(1),
|
|
18265
|
+
toVersion: external_exports.number().int().min(1)
|
|
18266
|
+
});
|
|
18267
|
+
var AppManifestDiffValidator = external_exports.object({
|
|
18268
|
+
permissions: AppManifestStringDiffValidator,
|
|
18269
|
+
templates: external_exports.object({
|
|
18270
|
+
added: external_exports.array(AppManifestTemplateRefValidator),
|
|
18271
|
+
removed: external_exports.array(AppManifestTemplateRefValidator),
|
|
18272
|
+
changed: external_exports.array(AppManifestTemplateChangeValidator)
|
|
18273
|
+
}),
|
|
18274
|
+
consentScopes: AppManifestStringDiffValidator,
|
|
18275
|
+
featurePaths: AppManifestStringDiffValidator,
|
|
18276
|
+
counterKeys: AppManifestStringDiffValidator,
|
|
18277
|
+
requiresReview: external_exports.boolean()
|
|
18278
|
+
});
|
|
18279
|
+
var UpsertConsentContractEventValidator = external_exports.object({
|
|
18280
|
+
type: external_exports.literal("upsert-consent-contract"),
|
|
18281
|
+
scopes: ConsentRequestValidator
|
|
18282
|
+
});
|
|
18283
|
+
var UpsertConsentContractResponseValidator = external_exports.object({
|
|
18284
|
+
contractUri: external_exports.string(),
|
|
18285
|
+
created: external_exports.boolean()
|
|
18286
|
+
});
|
|
18287
|
+
var AppEventValidator = external_exports.union([
|
|
17989
18288
|
SendCredentialEventValidator,
|
|
17990
18289
|
CheckCredentialEventValidator,
|
|
17991
18290
|
CheckIssuanceStatusEventValidator,
|
|
@@ -17995,7 +18294,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17995
18294
|
SendNotificationEventValidator,
|
|
17996
18295
|
IncrementCounterEventValidator,
|
|
17997
18296
|
GetCounterEventValidator,
|
|
17998
|
-
GetCountersEventValidator
|
|
18297
|
+
GetCountersEventValidator,
|
|
18298
|
+
UpsertConsentContractEventValidator
|
|
17999
18299
|
]);
|
|
18000
18300
|
var AppEventInputValidator = external_exports.object({
|
|
18001
18301
|
listingId: external_exports.string(),
|
|
@@ -18074,6 +18374,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18074
18374
|
__name2(this, "AuthSessionError");
|
|
18075
18375
|
}
|
|
18076
18376
|
};
|
|
18377
|
+
var UnsupportedSignInOperationError = class extends Error {
|
|
18378
|
+
static {
|
|
18379
|
+
__name(this, "UnsupportedSignInOperationError");
|
|
18380
|
+
}
|
|
18381
|
+
constructor(operation, providerType) {
|
|
18382
|
+
super(`${operation} is not supported by ${providerType}`);
|
|
18383
|
+
this.operation = operation;
|
|
18384
|
+
this.providerType = providerType;
|
|
18385
|
+
this.name = "UnsupportedSignInOperationError";
|
|
18386
|
+
}
|
|
18387
|
+
static {
|
|
18388
|
+
__name2(this, "UnsupportedSignInOperationError");
|
|
18389
|
+
}
|
|
18390
|
+
};
|
|
18077
18391
|
var ESCROW_PIN_LOCKED_MESSAGE = "Too many incorrect PIN attempts. You can still recover by waiting.";
|
|
18078
18392
|
var ESCROW_PIN_UNAVAILABLE_MESSAGE = "PIN recovery is not available for this account.";
|
|
18079
18393
|
var ESCROW_PIN_MISMATCH_PATTERN = /^Incorrect PIN\. (\d+) attempts left\.$/;
|
|
@@ -18503,6 +18817,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18503
18817
|
version: safeVersion,
|
|
18504
18818
|
contentVersion: safeVersion,
|
|
18505
18819
|
status: ShareLinkStatusValidator,
|
|
18820
|
+
attachmentId: external_exports.string().uuid().nullable().optional(),
|
|
18821
|
+
attachmentChunkCount: external_exports.number().int().min(1).max(16).nullable().optional(),
|
|
18506
18822
|
contentState: ShareContentStateValidator,
|
|
18507
18823
|
createdAt: external_exports.iso.datetime(),
|
|
18508
18824
|
updatedAt: external_exports.iso.datetime(),
|
|
@@ -18526,6 +18842,43 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18526
18842
|
contentUrl: external_exports.string().optional()
|
|
18527
18843
|
});
|
|
18528
18844
|
var clientRequestId = external_exports.string().uuid();
|
|
18845
|
+
var ShareLinkAttachmentValidator = external_exports.object({
|
|
18846
|
+
id: external_exports.string().uuid(),
|
|
18847
|
+
chunkCount: external_exports.number().int().min(1).max(16)
|
|
18848
|
+
}).strict();
|
|
18849
|
+
var attachmentChunkKey = {
|
|
18850
|
+
id: ShareLinkIdValidator,
|
|
18851
|
+
contentVersion: safeVersion,
|
|
18852
|
+
attachmentId: external_exports.string().uuid(),
|
|
18853
|
+
chunkIndex: external_exports.number().int().min(0).max(15)
|
|
18854
|
+
};
|
|
18855
|
+
var ShareLinkAttachmentChunkEnvelopeValidator = ShareEnvelopeValidator.refine(
|
|
18856
|
+
(value) => (decodedBase64UrlByteLength(value.ct) ?? Infinity) <= 256 * 1024 + SHARE_TAG_BYTES
|
|
18857
|
+
);
|
|
18858
|
+
var PutShareLinkAttachmentChunkInputValidator = external_exports.object({
|
|
18859
|
+
...attachmentChunkKey,
|
|
18860
|
+
chunkCount: external_exports.number().int().min(1).max(16),
|
|
18861
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
18862
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
18863
|
+
}).strict().refine((value) => value.chunkIndex < value.chunkCount);
|
|
18864
|
+
var GetShareLinkAttachmentChunkInputValidator = external_exports.object({
|
|
18865
|
+
...attachmentChunkKey,
|
|
18866
|
+
passcode: external_exports.string().min(4).max(64).optional(),
|
|
18867
|
+
accessToken: external_exports.string().min(1).max(2048).optional()
|
|
18868
|
+
}).strict();
|
|
18869
|
+
var ShareLinkAttachmentChunkOutputValidator = external_exports.object({
|
|
18870
|
+
...attachmentChunkKey,
|
|
18871
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
18872
|
+
accessToken: external_exports.string().min(1).max(2048).optional()
|
|
18873
|
+
}).strict();
|
|
18874
|
+
var DeleteShareLinkAttachmentChunksInputValidator = external_exports.object({
|
|
18875
|
+
id: ShareLinkIdValidator,
|
|
18876
|
+
contentVersion: safeVersion,
|
|
18877
|
+
attachmentId: external_exports.string().uuid(),
|
|
18878
|
+
chunkCount: external_exports.number().int().min(1).max(16)
|
|
18879
|
+
}).strict();
|
|
18880
|
+
var PutShareLinkAttachmentChunkOutputValidator = external_exports.object({ ok: external_exports.literal(true) }).strict();
|
|
18881
|
+
var DeleteShareLinkAttachmentChunksOutputValidator = external_exports.object({ ok: external_exports.boolean() }).strict();
|
|
18529
18882
|
var CreateShareLinkInputValidator = external_exports.object({
|
|
18530
18883
|
id: ShareLinkIdValidator,
|
|
18531
18884
|
clientRequestId,
|
|
@@ -18537,7 +18890,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18537
18890
|
selectedCount: external_exports.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
18538
18891
|
contentVersion: external_exports.literal(1),
|
|
18539
18892
|
envelope: ShareEnvelopeValidator,
|
|
18540
|
-
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
18893
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator,
|
|
18894
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
18541
18895
|
}).strict();
|
|
18542
18896
|
var UpdateShareLinkInputValidator = external_exports.object({
|
|
18543
18897
|
id: ShareLinkIdValidator,
|
|
@@ -18552,7 +18906,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18552
18906
|
contentVersion: safeVersion.optional(),
|
|
18553
18907
|
selectedCount: external_exports.number().int().min(1).max(MAX_SELECTED_CREDENTIALS).optional(),
|
|
18554
18908
|
envelope: ShareEnvelopeValidator.optional(),
|
|
18555
|
-
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional()
|
|
18909
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional(),
|
|
18910
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
18556
18911
|
}).strict().superRefine((value, ctx) => {
|
|
18557
18912
|
const provided = [
|
|
18558
18913
|
value.contentVersion,
|
|
@@ -18566,6 +18921,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18566
18921
|
message: "content replacement requires contentVersion, selectedCount, envelope and ownerEncryptedRecovery together"
|
|
18567
18922
|
});
|
|
18568
18923
|
}
|
|
18924
|
+
if (value.attachment !== void 0 && provided !== 4) {
|
|
18925
|
+
ctx.addIssue({ code: "custom", message: "attachment requires a content replacement" });
|
|
18926
|
+
}
|
|
18569
18927
|
});
|
|
18570
18928
|
var ShareLinkIdInputValidator = external_exports.object({ id: ShareLinkIdValidator }).strict();
|
|
18571
18929
|
var ShareLinkOperationKeyInputValidator = external_exports.object({ id: ShareLinkIdValidator, operationId: external_exports.string().uuid() }).strict();
|