@learncard/network-brain-client 2.5.57 → 2.5.59
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/brain-client.cjs.development.cjs +6433 -5248
- package/dist/brain-client.cjs.development.cjs.map +2 -2
- package/dist/brain-client.cjs.production.min.cjs +66 -66
- package/dist/brain-client.cjs.production.min.cjs.map +3 -3
- package/dist/brain-client.esm.js +896 -11
- package/dist/brain-client.esm.js.map +3 -3
- package/package.json +4 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -15909,7 +15909,11 @@ var __getProtoOf = Object.getPrototypeOf;
|
|
|
15909
15909
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15910
15910
|
var __name2 = /* @__PURE__ */ __name((target, value) => __defProp2(target, "name", { value, configurable: true }), "__name");
|
|
15911
15911
|
var __commonJS = /* @__PURE__ */ __name((cb, mod) => /* @__PURE__ */ __name(function __require() {
|
|
15912
|
-
|
|
15912
|
+
try {
|
|
15913
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15914
|
+
} catch (e) {
|
|
15915
|
+
throw mod = 0, e;
|
|
15916
|
+
}
|
|
15913
15917
|
}, "__require"), "__commonJS");
|
|
15914
15918
|
var __export2 = /* @__PURE__ */ __name((target, all) => {
|
|
15915
15919
|
for (var name in all)
|
|
@@ -15961,6 +15965,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
15961
15965
|
AchievementSubjectValidator: /* @__PURE__ */ __name2(() => AchievementSubjectValidator, "AchievementSubjectValidator"),
|
|
15962
15966
|
AchievementTypeValidator: /* @__PURE__ */ __name2(() => AchievementTypeValidator, "AchievementTypeValidator"),
|
|
15963
15967
|
AchievementValidator: /* @__PURE__ */ __name2(() => AchievementValidator, "AchievementValidator"),
|
|
15968
|
+
AcknowledgeViewInputValidator: /* @__PURE__ */ __name2(() => AcknowledgeViewInputValidator, "AcknowledgeViewInputValidator"),
|
|
15969
|
+
AcknowledgeViewOutputValidator: /* @__PURE__ */ __name2(() => AcknowledgeViewOutputValidator, "AcknowledgeViewOutputValidator"),
|
|
15964
15970
|
AddTagInputValidator: /* @__PURE__ */ __name2(() => AddTagInputValidator, "AddTagInputValidator"),
|
|
15965
15971
|
AddressValidator: /* @__PURE__ */ __name2(() => AddressValidator, "AddressValidator"),
|
|
15966
15972
|
AgeRatingValidator: /* @__PURE__ */ __name2(() => AgeRatingValidator, "AgeRatingValidator"),
|
|
@@ -15976,6 +15982,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
15976
15982
|
AppEventResponseValidator: /* @__PURE__ */ __name2(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
15977
15983
|
AppEventValidator: /* @__PURE__ */ __name2(() => AppEventValidator, "AppEventValidator"),
|
|
15978
15984
|
AppListingStatusValidator: /* @__PURE__ */ __name2(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
15985
|
+
AppManifestDiffValidator: /* @__PURE__ */ __name2(() => AppManifestDiffValidator, "AppManifestDiffValidator"),
|
|
15986
|
+
AppManifestTemplateChangeValidator: /* @__PURE__ */ __name2(() => AppManifestTemplateChangeValidator, "AppManifestTemplateChangeValidator"),
|
|
15987
|
+
AppManifestTemplateRefValidator: /* @__PURE__ */ __name2(() => AppManifestTemplateRefValidator, "AppManifestTemplateRefValidator"),
|
|
15988
|
+
AppManifestValidator: /* @__PURE__ */ __name2(() => AppManifestValidator, "AppManifestValidator"),
|
|
15989
|
+
AppManifestVersionStatusValidator: /* @__PURE__ */ __name2(() => AppManifestVersionStatusValidator, "AppManifestVersionStatusValidator"),
|
|
15990
|
+
AppManifestVersionValidator: /* @__PURE__ */ __name2(() => AppManifestVersionValidator, "AppManifestVersionValidator"),
|
|
15979
15991
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name2(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
15980
15992
|
AppStoreListingSubmitterValidator: /* @__PURE__ */ __name2(() => AppStoreListingSubmitterValidator, "AppStoreListingSubmitterValidator"),
|
|
15981
15993
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name2(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
@@ -15997,6 +16009,8 @@ var require_types_cjs_development = __commonJS({
|
|
|
15997
16009
|
BoostRecipientValidator: /* @__PURE__ */ __name2(() => BoostRecipientValidator, "BoostRecipientValidator"),
|
|
15998
16010
|
BoostRecipientWithChildrenValidator: /* @__PURE__ */ __name2(() => BoostRecipientWithChildrenValidator, "BoostRecipientWithChildrenValidator"),
|
|
15999
16011
|
BoostValidator: /* @__PURE__ */ __name2(() => BoostValidator, "BoostValidator"),
|
|
16012
|
+
CapturedConsentRecordValidator: /* @__PURE__ */ __name2(() => CapturedConsentRecordValidator, "CapturedConsentRecordValidator"),
|
|
16013
|
+
CapturedTemplateRecordValidator: /* @__PURE__ */ __name2(() => CapturedTemplateRecordValidator, "CapturedTemplateRecordValidator"),
|
|
16000
16014
|
CheckCredentialEventValidator: /* @__PURE__ */ __name2(() => CheckCredentialEventValidator, "CheckCredentialEventValidator"),
|
|
16001
16015
|
CheckIssuanceStatusEventValidator: /* @__PURE__ */ __name2(() => CheckIssuanceStatusEventValidator, "CheckIssuanceStatusEventValidator"),
|
|
16002
16016
|
ClaimHookQueryValidator: /* @__PURE__ */ __name2(() => ClaimHookQueryValidator, "ClaimHookQueryValidator"),
|
|
@@ -16018,6 +16032,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16018
16032
|
ConsentFlowDataForDidQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataForDidQueryValidator, "ConsentFlowDataForDidQueryValidator"),
|
|
16019
16033
|
ConsentFlowDataQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataQueryValidator, "ConsentFlowDataQueryValidator"),
|
|
16020
16034
|
ConsentFlowGuardianApprovalValidator: /* @__PURE__ */ __name2(() => ConsentFlowGuardianApprovalValidator, "ConsentFlowGuardianApprovalValidator"),
|
|
16035
|
+
ConsentFlowReferralValidator: /* @__PURE__ */ __name2(() => ConsentFlowReferralValidator, "ConsentFlowReferralValidator"),
|
|
16021
16036
|
ConsentFlowTermValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermValidator, "ConsentFlowTermValidator"),
|
|
16022
16037
|
ConsentFlowTermsQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermsQueryValidator, "ConsentFlowTermsQueryValidator"),
|
|
16023
16038
|
ConsentFlowTermsStatusValidator: /* @__PURE__ */ __name2(() => ConsentFlowTermsStatusValidator, "ConsentFlowTermsStatusValidator"),
|
|
@@ -16025,6 +16040,10 @@ var require_types_cjs_development = __commonJS({
|
|
|
16025
16040
|
ConsentFlowTransactionActionValidator: /* @__PURE__ */ __name2(() => ConsentFlowTransactionActionValidator, "ConsentFlowTransactionActionValidator"),
|
|
16026
16041
|
ConsentFlowTransactionValidator: /* @__PURE__ */ __name2(() => ConsentFlowTransactionValidator, "ConsentFlowTransactionValidator"),
|
|
16027
16042
|
ConsentFlowTransactionsQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowTransactionsQueryValidator, "ConsentFlowTransactionsQueryValidator"),
|
|
16043
|
+
ConsentFlowWebhookMetadataValidator: /* @__PURE__ */ __name2(() => ConsentFlowWebhookMetadataValidator, "ConsentFlowWebhookMetadataValidator"),
|
|
16044
|
+
ConsentRequestPersonalFieldValidator: /* @__PURE__ */ __name2(() => ConsentRequestPersonalFieldValidator, "ConsentRequestPersonalFieldValidator"),
|
|
16045
|
+
ConsentRequestValidator: /* @__PURE__ */ __name2(() => ConsentRequestValidator, "ConsentRequestValidator"),
|
|
16046
|
+
ConsentRequestWalletCategoryValidator: /* @__PURE__ */ __name2(() => ConsentRequestWalletCategoryValidator, "ConsentRequestWalletCategoryValidator"),
|
|
16028
16047
|
ContactMethodCreateValidator: /* @__PURE__ */ __name2(() => ContactMethodCreateValidator, "ContactMethodCreateValidator"),
|
|
16029
16048
|
ContactMethodQueryValidator: /* @__PURE__ */ __name2(() => ContactMethodQueryValidator, "ContactMethodQueryValidator"),
|
|
16030
16049
|
ContactMethodValidator: /* @__PURE__ */ __name2(() => ContactMethodValidator, "ContactMethodValidator"),
|
|
@@ -16032,12 +16051,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
16032
16051
|
ContactMethodVerificationValidator: /* @__PURE__ */ __name2(() => ContactMethodVerificationValidator, "ContactMethodVerificationValidator"),
|
|
16033
16052
|
ContextValidator: /* @__PURE__ */ __name2(() => ContextValidator, "ContextValidator"),
|
|
16034
16053
|
ContractCredentialValidator: /* @__PURE__ */ __name2(() => ContractCredentialValidator, "ContractCredentialValidator"),
|
|
16054
|
+
ContractRequestFieldsValidator: /* @__PURE__ */ __name2(() => ContractRequestFieldsValidator, "ContractRequestFieldsValidator"),
|
|
16035
16055
|
CountSkillsInputValidator: /* @__PURE__ */ __name2(() => CountSkillsInputValidator, "CountSkillsInputValidator"),
|
|
16036
16056
|
CountSkillsResultValidator: /* @__PURE__ */ __name2(() => CountSkillsResultValidator, "CountSkillsResultValidator"),
|
|
16037
16057
|
CreateContactMethodSessionResponseValidator: /* @__PURE__ */ __name2(() => CreateContactMethodSessionResponseValidator, "CreateContactMethodSessionResponseValidator"),
|
|
16038
16058
|
CreateContactMethodSessionValidator: /* @__PURE__ */ __name2(() => CreateContactMethodSessionValidator, "CreateContactMethodSessionValidator"),
|
|
16039
16059
|
CreateManagedFrameworkBatchInputValidator: /* @__PURE__ */ __name2(() => CreateManagedFrameworkBatchInputValidator, "CreateManagedFrameworkBatchInputValidator"),
|
|
16040
16060
|
CreateManagedFrameworkInputValidator: /* @__PURE__ */ __name2(() => CreateManagedFrameworkInputValidator, "CreateManagedFrameworkInputValidator"),
|
|
16061
|
+
CreateShareLinkInputValidator: /* @__PURE__ */ __name2(() => CreateShareLinkInputValidator, "CreateShareLinkInputValidator"),
|
|
16041
16062
|
CreateSkillInputValidator: /* @__PURE__ */ __name2(() => CreateSkillInputValidator, "CreateSkillInputValidator"),
|
|
16042
16063
|
CreateSkillsBatchInputValidator: /* @__PURE__ */ __name2(() => CreateSkillsBatchInputValidator, "CreateSkillsBatchInputValidator"),
|
|
16043
16064
|
CredentialActivityEventTypeValidator: /* @__PURE__ */ __name2(() => CredentialActivityEventTypeValidator, "CredentialActivityEventTypeValidator"),
|
|
@@ -16066,13 +16087,19 @@ var require_types_cjs_development = __commonJS({
|
|
|
16066
16087
|
CriteriaValidator: /* @__PURE__ */ __name2(() => CriteriaValidator, "CriteriaValidator"),
|
|
16067
16088
|
DEFAULT_BITSTRING_STATUS_LIST_SIZE: /* @__PURE__ */ __name2(() => DEFAULT_BITSTRING_STATUS_LIST_SIZE, "DEFAULT_BITSTRING_STATUS_LIST_SIZE"),
|
|
16068
16089
|
DeleteFrameworkInputValidator: /* @__PURE__ */ __name2(() => DeleteFrameworkInputValidator, "DeleteFrameworkInputValidator"),
|
|
16090
|
+
DeleteShareLinkAttachmentChunksInputValidator: /* @__PURE__ */ __name2(() => DeleteShareLinkAttachmentChunksInputValidator, "DeleteShareLinkAttachmentChunksInputValidator"),
|
|
16091
|
+
DeleteShareLinkAttachmentChunksOutputValidator: /* @__PURE__ */ __name2(() => DeleteShareLinkAttachmentChunksOutputValidator, "DeleteShareLinkAttachmentChunksOutputValidator"),
|
|
16069
16092
|
DeleteSkillInputValidator: /* @__PURE__ */ __name2(() => DeleteSkillInputValidator, "DeleteSkillInputValidator"),
|
|
16070
16093
|
DidDocumentValidator: /* @__PURE__ */ __name2(() => DidDocumentValidator, "DidDocumentValidator"),
|
|
16071
16094
|
EMPTY_IN_APP_MESSAGES_FLAG: /* @__PURE__ */ __name2(() => EMPTY_IN_APP_MESSAGES_FLAG, "EMPTY_IN_APP_MESSAGES_FLAG"),
|
|
16095
|
+
ESCROW_PIN_LOCKED_MESSAGE: /* @__PURE__ */ __name2(() => ESCROW_PIN_LOCKED_MESSAGE, "ESCROW_PIN_LOCKED_MESSAGE"),
|
|
16096
|
+
ESCROW_PIN_MISMATCH_PATTERN: /* @__PURE__ */ __name2(() => ESCROW_PIN_MISMATCH_PATTERN, "ESCROW_PIN_MISMATCH_PATTERN"),
|
|
16097
|
+
ESCROW_PIN_UNAVAILABLE_MESSAGE: /* @__PURE__ */ __name2(() => ESCROW_PIN_UNAVAILABLE_MESSAGE, "ESCROW_PIN_UNAVAILABLE_MESSAGE"),
|
|
16072
16098
|
EncryptedCredentialRecordValidator: /* @__PURE__ */ __name2(() => EncryptedCredentialRecordValidator, "EncryptedCredentialRecordValidator"),
|
|
16073
16099
|
EncryptedRecordValidator: /* @__PURE__ */ __name2(() => EncryptedRecordValidator, "EncryptedRecordValidator"),
|
|
16074
16100
|
EndorsementCredentialValidator: /* @__PURE__ */ __name2(() => EndorsementCredentialValidator, "EndorsementCredentialValidator"),
|
|
16075
16101
|
EndorsementSubjectValidator: /* @__PURE__ */ __name2(() => EndorsementSubjectValidator, "EndorsementSubjectValidator"),
|
|
16102
|
+
EscrowPinStatusValidator: /* @__PURE__ */ __name2(() => EscrowPinStatusValidator, "EscrowPinStatusValidator"),
|
|
16076
16103
|
EvidenceValidator: /* @__PURE__ */ __name2(() => EvidenceValidator, "EvidenceValidator"),
|
|
16077
16104
|
FlatAuthGrantValidator: /* @__PURE__ */ __name2(() => FlatAuthGrantValidator, "FlatAuthGrantValidator"),
|
|
16078
16105
|
FrameworkWithSkillsValidator: /* @__PURE__ */ __name2(() => FrameworkWithSkillsValidator, "FrameworkWithSkillsValidator"),
|
|
@@ -16084,6 +16111,7 @@ var require_types_cjs_development = __commonJS({
|
|
|
16084
16111
|
GetCredentialRefreshHistoryResultValidator: /* @__PURE__ */ __name2(() => GetCredentialRefreshHistoryResultValidator, "GetCredentialRefreshHistoryResultValidator"),
|
|
16085
16112
|
GetFullSkillTreeInputValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeInputValidator, "GetFullSkillTreeInputValidator"),
|
|
16086
16113
|
GetFullSkillTreeResultValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeResultValidator, "GetFullSkillTreeResultValidator"),
|
|
16114
|
+
GetShareLinkAttachmentChunkInputValidator: /* @__PURE__ */ __name2(() => GetShareLinkAttachmentChunkInputValidator, "GetShareLinkAttachmentChunkInputValidator"),
|
|
16087
16115
|
GetSkillPathInputValidator: /* @__PURE__ */ __name2(() => GetSkillPathInputValidator, "GetSkillPathInputValidator"),
|
|
16088
16116
|
GetSkillPathResultValidator: /* @__PURE__ */ __name2(() => GetSkillPathResultValidator, "GetSkillPathResultValidator"),
|
|
16089
16117
|
GetTemplateRecipientsEventValidator: /* @__PURE__ */ __name2(() => GetTemplateRecipientsEventValidator, "GetTemplateRecipientsEventValidator"),
|
|
@@ -16101,6 +16129,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16101
16129
|
InboxCredentialRefreshReceiptValidator: /* @__PURE__ */ __name2(() => InboxCredentialRefreshReceiptValidator, "InboxCredentialRefreshReceiptValidator"),
|
|
16102
16130
|
InboxCredentialValidator: /* @__PURE__ */ __name2(() => InboxCredentialValidator, "InboxCredentialValidator"),
|
|
16103
16131
|
IncrementCounterEventValidator: /* @__PURE__ */ __name2(() => IncrementCounterEventValidator, "IncrementCounterEventValidator"),
|
|
16132
|
+
InlineAlignmentValidator: /* @__PURE__ */ __name2(() => InlineAlignmentValidator, "InlineAlignmentValidator"),
|
|
16133
|
+
InlineCredentialTemplateValidator: /* @__PURE__ */ __name2(() => InlineCredentialTemplateValidator, "InlineCredentialTemplateValidator"),
|
|
16134
|
+
InlineEvidenceValidator: /* @__PURE__ */ __name2(() => InlineEvidenceValidator, "InlineEvidenceValidator"),
|
|
16135
|
+
InlineSendCredentialEventValidator: /* @__PURE__ */ __name2(() => InlineSendCredentialEventValidator, "InlineSendCredentialEventValidator"),
|
|
16136
|
+
InlineWalletCategoryValidator: /* @__PURE__ */ __name2(() => InlineWalletCategoryValidator, "InlineWalletCategoryValidator"),
|
|
16137
|
+
InlineWalletSkillTagValidator: /* @__PURE__ */ __name2(() => InlineWalletSkillTagValidator, "InlineWalletSkillTagValidator"),
|
|
16104
16138
|
InstalledAppValidator: /* @__PURE__ */ __name2(() => InstalledAppValidator, "InstalledAppValidator"),
|
|
16105
16139
|
IssueInboxCredentialBatchItemResultValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialBatchItemResultValidator, "IssueInboxCredentialBatchItemResultValidator"),
|
|
16106
16140
|
IssueInboxCredentialBatchItemValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialBatchItemValidator, "IssueInboxCredentialBatchItemValidator"),
|
|
@@ -16153,9 +16187,19 @@ var require_types_cjs_development = __commonJS({
|
|
|
16153
16187
|
LCNVisibleProfileValidator: /* @__PURE__ */ __name2(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
|
|
16154
16188
|
LaunchTypeValidator: /* @__PURE__ */ __name2(() => LaunchTypeValidator, "LaunchTypeValidator"),
|
|
16155
16189
|
LearnCardRefreshAuthorizationValidator: /* @__PURE__ */ __name2(() => LearnCardRefreshAuthorizationValidator, "LearnCardRefreshAuthorizationValidator"),
|
|
16190
|
+
LegacySendCredentialEventValidator: /* @__PURE__ */ __name2(() => LegacySendCredentialEventValidator, "LegacySendCredentialEventValidator"),
|
|
16156
16191
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name2(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
|
|
16192
|
+
ListShareLinksInputValidator: /* @__PURE__ */ __name2(() => ListShareLinksInputValidator, "ListShareLinksInputValidator"),
|
|
16193
|
+
MAX_ENDORSEMENTS: /* @__PURE__ */ __name2(() => MAX_ENDORSEMENTS, "MAX_ENDORSEMENTS"),
|
|
16194
|
+
MAX_SELECTED_CREDENTIALS: /* @__PURE__ */ __name2(() => MAX_SELECTED_CREDENTIALS, "MAX_SELECTED_CREDENTIALS"),
|
|
16195
|
+
MAX_SHARE_CIPHERTEXT_BYTES: /* @__PURE__ */ __name2(() => MAX_SHARE_CIPHERTEXT_BYTES, "MAX_SHARE_CIPHERTEXT_BYTES"),
|
|
16196
|
+
MAX_SHARE_LINK_REQUEST_BYTES: /* @__PURE__ */ __name2(() => MAX_SHARE_LINK_REQUEST_BYTES, "MAX_SHARE_LINK_REQUEST_BYTES"),
|
|
16197
|
+
MAX_SHARE_RECOVERY_JWE_BYTES: /* @__PURE__ */ __name2(() => MAX_SHARE_RECOVERY_JWE_BYTES, "MAX_SHARE_RECOVERY_JWE_BYTES"),
|
|
16198
|
+
MAX_SHARE_SOURCE_URI_CHARS: /* @__PURE__ */ __name2(() => MAX_SHARE_SOURCE_URI_CHARS, "MAX_SHARE_SOURCE_URI_CHARS"),
|
|
16199
|
+
MAX_VP_MEMBERS: /* @__PURE__ */ __name2(() => MAX_VP_MEMBERS, "MAX_VP_MEMBERS"),
|
|
16157
16200
|
ManagedCredentialRefreshReceiptValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshReceiptValidator, "ManagedCredentialRefreshReceiptValidator"),
|
|
16158
16201
|
ManagedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshServiceValidator2, "ManagedCredentialRefreshServiceValidator"),
|
|
16202
|
+
NormalizedConsentScopesValidator: /* @__PURE__ */ __name2(() => NormalizedConsentScopesValidator, "NormalizedConsentScopesValidator"),
|
|
16159
16203
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name2(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
|
|
16160
16204
|
PaginatedBoostRecipientsValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsValidator, "PaginatedBoostRecipientsValidator"),
|
|
16161
16205
|
PaginatedBoostRecipientsWithChildrenValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsWithChildrenValidator, "PaginatedBoostRecipientsWithChildrenValidator"),
|
|
@@ -16176,11 +16220,14 @@ var require_types_cjs_development = __commonJS({
|
|
|
16176
16220
|
PaginatedLCNProfileManagersValidator: /* @__PURE__ */ __name2(() => PaginatedLCNProfileManagersValidator, "PaginatedLCNProfileManagersValidator"),
|
|
16177
16221
|
PaginatedLCNProfilesAndManagersValidator: /* @__PURE__ */ __name2(() => PaginatedLCNProfilesAndManagersValidator, "PaginatedLCNProfilesAndManagersValidator"),
|
|
16178
16222
|
PaginatedLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedLCNProfilesValidator, "PaginatedLCNProfilesValidator"),
|
|
16223
|
+
PaginatedShareLinksValidator: /* @__PURE__ */ __name2(() => PaginatedShareLinksValidator, "PaginatedShareLinksValidator"),
|
|
16179
16224
|
PaginatedSkillFrameworksValidator: /* @__PURE__ */ __name2(() => PaginatedSkillFrameworksValidator, "PaginatedSkillFrameworksValidator"),
|
|
16180
16225
|
PaginatedSkillTreeValidator: /* @__PURE__ */ __name2(() => PaginatedSkillTreeValidator, "PaginatedSkillTreeValidator"),
|
|
16181
16226
|
PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
|
|
16182
16227
|
PaginationOptionsValidator: /* @__PURE__ */ __name2(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
|
|
16183
16228
|
PaginationResponseValidator: /* @__PURE__ */ __name2(() => PaginationResponseValidator, "PaginationResponseValidator"),
|
|
16229
|
+
PendingListingUpdateStatusValidator: /* @__PURE__ */ __name2(() => PendingListingUpdateStatusValidator, "PendingListingUpdateStatusValidator"),
|
|
16230
|
+
PendingListingUpdateValidator: /* @__PURE__ */ __name2(() => PendingListingUpdateValidator, "PendingListingUpdateValidator"),
|
|
16184
16231
|
PrepareRefreshableSendInputValidator: /* @__PURE__ */ __name2(() => PrepareRefreshableSendInputValidator, "PrepareRefreshableSendInputValidator"),
|
|
16185
16232
|
PrepareRefreshableSendResultValidator: /* @__PURE__ */ __name2(() => PrepareRefreshableSendResultValidator, "PrepareRefreshableSendResultValidator"),
|
|
16186
16233
|
ProfileValidator: /* @__PURE__ */ __name2(() => ProfileValidator, "ProfileValidator"),
|
|
@@ -16193,6 +16240,9 @@ var require_types_cjs_development = __commonJS({
|
|
|
16193
16240
|
PublishCredentialRefreshResultValidator: /* @__PURE__ */ __name2(() => PublishCredentialRefreshResultValidator, "PublishCredentialRefreshResultValidator"),
|
|
16194
16241
|
PublishIssuerSignedRefreshValidator: /* @__PURE__ */ __name2(() => PublishIssuerSignedRefreshValidator, "PublishIssuerSignedRefreshValidator"),
|
|
16195
16242
|
PublishSigningAuthorityRefreshValidator: /* @__PURE__ */ __name2(() => PublishSigningAuthorityRefreshValidator, "PublishSigningAuthorityRefreshValidator"),
|
|
16243
|
+
PutShareLinkAttachmentChunkInputValidator: /* @__PURE__ */ __name2(() => PutShareLinkAttachmentChunkInputValidator, "PutShareLinkAttachmentChunkInputValidator"),
|
|
16244
|
+
PutShareLinkAttachmentChunkOutputValidator: /* @__PURE__ */ __name2(() => PutShareLinkAttachmentChunkOutputValidator, "PutShareLinkAttachmentChunkOutputValidator"),
|
|
16245
|
+
RawInlineCredentialTemplateValidator: /* @__PURE__ */ __name2(() => RawInlineCredentialTemplateValidator, "RawInlineCredentialTemplateValidator"),
|
|
16196
16246
|
RefreshServiceValidator: /* @__PURE__ */ __name2(() => RefreshServiceValidator, "RefreshServiceValidator"),
|
|
16197
16247
|
RegExpValidator: /* @__PURE__ */ __name2(() => RegExpValidator, "RegExpValidator"),
|
|
16198
16248
|
RelatedValidator: /* @__PURE__ */ __name2(() => RelatedValidator, "RelatedValidator"),
|
|
@@ -16200,16 +16250,26 @@ var require_types_cjs_development = __commonJS({
|
|
|
16200
16250
|
ReplaceSkillFrameworkSkillsInputValidator: /* @__PURE__ */ __name2(() => ReplaceSkillFrameworkSkillsInputValidator, "ReplaceSkillFrameworkSkillsInputValidator"),
|
|
16201
16251
|
ReplaceSkillFrameworkSkillsResultValidator: /* @__PURE__ */ __name2(() => ReplaceSkillFrameworkSkillsResultValidator, "ReplaceSkillFrameworkSkillsResultValidator"),
|
|
16202
16252
|
RequestLearnerContextEventValidator: /* @__PURE__ */ __name2(() => RequestLearnerContextEventValidator, "RequestLearnerContextEventValidator"),
|
|
16253
|
+
ResolveShareLinkInputValidator: /* @__PURE__ */ __name2(() => ResolveShareLinkInputValidator, "ResolveShareLinkInputValidator"),
|
|
16203
16254
|
ResultDescriptionValidator: /* @__PURE__ */ __name2(() => ResultDescriptionValidator, "ResultDescriptionValidator"),
|
|
16204
16255
|
ResultStatusTypeValidator: /* @__PURE__ */ __name2(() => ResultStatusTypeValidator, "ResultStatusTypeValidator"),
|
|
16205
16256
|
ResultTypeValidator: /* @__PURE__ */ __name2(() => ResultTypeValidator, "ResultTypeValidator"),
|
|
16206
16257
|
ResultValidator: /* @__PURE__ */ __name2(() => ResultValidator, "ResultValidator"),
|
|
16207
16258
|
RubricCriterionValidator: /* @__PURE__ */ __name2(() => RubricCriterionValidator, "RubricCriterionValidator"),
|
|
16259
|
+
SHARE_AAD_PREFIX: /* @__PURE__ */ __name2(() => SHARE_AAD_PREFIX, "SHARE_AAD_PREFIX"),
|
|
16260
|
+
SHARE_CONTENT_KEY_BYTES: /* @__PURE__ */ __name2(() => SHARE_CONTENT_KEY_BYTES, "SHARE_CONTENT_KEY_BYTES"),
|
|
16261
|
+
SHARE_IV_BYTES: /* @__PURE__ */ __name2(() => SHARE_IV_BYTES, "SHARE_IV_BYTES"),
|
|
16262
|
+
SHARE_LINK_ID_BYTES: /* @__PURE__ */ __name2(() => SHARE_LINK_ID_BYTES, "SHARE_LINK_ID_BYTES"),
|
|
16263
|
+
SHARE_LINK_PROTOCOL: /* @__PURE__ */ __name2(() => SHARE_LINK_PROTOCOL, "SHARE_LINK_PROTOCOL"),
|
|
16264
|
+
SHARE_RECOVERY_PROTOCOL: /* @__PURE__ */ __name2(() => SHARE_RECOVERY_PROTOCOL, "SHARE_RECOVERY_PROTOCOL"),
|
|
16265
|
+
SHARE_TAG_BYTES: /* @__PURE__ */ __name2(() => SHARE_TAG_BYTES, "SHARE_TAG_BYTES"),
|
|
16266
|
+
SHARE_VIEW_RECEIPT_TTL_SECONDS: /* @__PURE__ */ __name2(() => SHARE_VIEW_RECEIPT_TTL_SECONDS, "SHARE_VIEW_RECEIPT_TTL_SECONDS"),
|
|
16208
16267
|
SendAiSessionCredentialEventValidator: /* @__PURE__ */ __name2(() => SendAiSessionCredentialEventValidator, "SendAiSessionCredentialEventValidator"),
|
|
16209
16268
|
SendBoostInputValidator: /* @__PURE__ */ __name2(() => SendBoostInputValidator, "SendBoostInputValidator"),
|
|
16210
16269
|
SendBoostResponseValidator: /* @__PURE__ */ __name2(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
|
|
16211
16270
|
SendBoostTemplateValidator: /* @__PURE__ */ __name2(() => SendBoostTemplateValidator, "SendBoostTemplateValidator"),
|
|
16212
16271
|
SendBrandingOptionsValidator: /* @__PURE__ */ __name2(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
|
|
16272
|
+
SendContractRequestValidator: /* @__PURE__ */ __name2(() => SendContractRequestValidator, "SendContractRequestValidator"),
|
|
16213
16273
|
SendCredentialEventValidator: /* @__PURE__ */ __name2(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
|
|
16214
16274
|
SendInboxResponseValidator: /* @__PURE__ */ __name2(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
|
|
16215
16275
|
SendInputValidator: /* @__PURE__ */ __name2(() => SendInputValidator, "SendInputValidator"),
|
|
@@ -16219,6 +16279,36 @@ var require_types_cjs_development = __commonJS({
|
|
|
16219
16279
|
SentCredentialInfoValidator: /* @__PURE__ */ __name2(() => SentCredentialInfoValidator, "SentCredentialInfoValidator"),
|
|
16220
16280
|
ServiceValidator: /* @__PURE__ */ __name2(() => ServiceValidator, "ServiceValidator"),
|
|
16221
16281
|
SetPrimaryContactMethodValidator: /* @__PURE__ */ __name2(() => SetPrimaryContactMethodValidator, "SetPrimaryContactMethodValidator"),
|
|
16282
|
+
ShareCiphertextValidator: /* @__PURE__ */ __name2(() => ShareCiphertextValidator, "ShareCiphertextValidator"),
|
|
16283
|
+
ShareContentKeyValidator: /* @__PURE__ */ __name2(() => ShareContentKeyValidator, "ShareContentKeyValidator"),
|
|
16284
|
+
ShareContentStateValidator: /* @__PURE__ */ __name2(() => ShareContentStateValidator, "ShareContentStateValidator"),
|
|
16285
|
+
ShareEndorsementEntryValidator: /* @__PURE__ */ __name2(() => ShareEndorsementEntryValidator, "ShareEndorsementEntryValidator"),
|
|
16286
|
+
ShareEnvelopeValidator: /* @__PURE__ */ __name2(() => ShareEnvelopeValidator, "ShareEnvelopeValidator"),
|
|
16287
|
+
ShareIvValidator: /* @__PURE__ */ __name2(() => ShareIvValidator, "ShareIvValidator"),
|
|
16288
|
+
ShareLinkAttachmentChunkEnvelopeValidator: /* @__PURE__ */ __name2(() => ShareLinkAttachmentChunkEnvelopeValidator, "ShareLinkAttachmentChunkEnvelopeValidator"),
|
|
16289
|
+
ShareLinkAttachmentChunkOutputValidator: /* @__PURE__ */ __name2(() => ShareLinkAttachmentChunkOutputValidator, "ShareLinkAttachmentChunkOutputValidator"),
|
|
16290
|
+
ShareLinkAttachmentValidator: /* @__PURE__ */ __name2(() => ShareLinkAttachmentValidator, "ShareLinkAttachmentValidator"),
|
|
16291
|
+
ShareLinkIdInputValidator: /* @__PURE__ */ __name2(() => ShareLinkIdInputValidator, "ShareLinkIdInputValidator"),
|
|
16292
|
+
ShareLinkIdValidator: /* @__PURE__ */ __name2(() => ShareLinkIdValidator, "ShareLinkIdValidator"),
|
|
16293
|
+
ShareLinkOperationKeyInputValidator: /* @__PURE__ */ __name2(() => ShareLinkOperationKeyInputValidator, "ShareLinkOperationKeyInputValidator"),
|
|
16294
|
+
ShareLinkOwnerCommitOutputValidator: /* @__PURE__ */ __name2(() => ShareLinkOwnerCommitOutputValidator, "ShareLinkOwnerCommitOutputValidator"),
|
|
16295
|
+
ShareLinkOwnerContentOutputValidator: /* @__PURE__ */ __name2(() => ShareLinkOwnerContentOutputValidator, "ShareLinkOwnerContentOutputValidator"),
|
|
16296
|
+
ShareLinkOwnerRecoveryOutputValidator: /* @__PURE__ */ __name2(() => ShareLinkOwnerRecoveryOutputValidator, "ShareLinkOwnerRecoveryOutputValidator"),
|
|
16297
|
+
ShareLinkOwnerStatusOutputValidator: /* @__PURE__ */ __name2(() => ShareLinkOwnerStatusOutputValidator, "ShareLinkOwnerStatusOutputValidator"),
|
|
16298
|
+
ShareLinkPublicContentViewValidator: /* @__PURE__ */ __name2(() => ShareLinkPublicContentViewValidator, "ShareLinkPublicContentViewValidator"),
|
|
16299
|
+
ShareLinkPublicStateValidator: /* @__PURE__ */ __name2(() => ShareLinkPublicStateValidator, "ShareLinkPublicStateValidator"),
|
|
16300
|
+
ShareLinkStatusValidator: /* @__PURE__ */ __name2(() => ShareLinkStatusValidator, "ShareLinkStatusValidator"),
|
|
16301
|
+
ShareLinkValidator: /* @__PURE__ */ __name2(() => ShareLinkValidator, "ShareLinkValidator"),
|
|
16302
|
+
ShareManifestPresentationValidator: /* @__PURE__ */ __name2(() => ShareManifestPresentationValidator, "ShareManifestPresentationValidator"),
|
|
16303
|
+
ShareOwnerRecoveryValidator: /* @__PURE__ */ __name2(() => ShareOwnerRecoveryValidator, "ShareOwnerRecoveryValidator"),
|
|
16304
|
+
SharePayloadValidator: /* @__PURE__ */ __name2(() => SharePayloadValidator, "SharePayloadValidator"),
|
|
16305
|
+
SharePayloadValidatorShape: /* @__PURE__ */ __name2(() => SharePayloadValidatorShape, "SharePayloadValidatorShape"),
|
|
16306
|
+
ShareRecoveryEndorsementValidator: /* @__PURE__ */ __name2(() => ShareRecoveryEndorsementValidator, "ShareRecoveryEndorsementValidator"),
|
|
16307
|
+
ShareRecoveryPlaintextValidator: /* @__PURE__ */ __name2(() => ShareRecoveryPlaintextValidator, "ShareRecoveryPlaintextValidator"),
|
|
16308
|
+
ShareRecoverySelectionValidator: /* @__PURE__ */ __name2(() => ShareRecoverySelectionValidator, "ShareRecoverySelectionValidator"),
|
|
16309
|
+
ShareSelectionEntryValidator: /* @__PURE__ */ __name2(() => ShareSelectionEntryValidator, "ShareSelectionEntryValidator"),
|
|
16310
|
+
ShareSharerValidator: /* @__PURE__ */ __name2(() => ShareSharerValidator, "ShareSharerValidator"),
|
|
16311
|
+
SimpleInlineCredentialTemplateValidator: /* @__PURE__ */ __name2(() => SimpleInlineCredentialTemplateValidator, "SimpleInlineCredentialTemplateValidator"),
|
|
16222
16312
|
SkillDeletionStrategyValidator: /* @__PURE__ */ __name2(() => SkillDeletionStrategyValidator, "SkillDeletionStrategyValidator"),
|
|
16223
16313
|
SkillFrameworkAdminInputValidator: /* @__PURE__ */ __name2(() => SkillFrameworkAdminInputValidator, "SkillFrameworkAdminInputValidator"),
|
|
16224
16314
|
SkillFrameworkAdminsValidator: /* @__PURE__ */ __name2(() => SkillFrameworkAdminsValidator, "SkillFrameworkAdminsValidator"),
|
|
@@ -16249,8 +16339,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16249
16339
|
UnsignedClrCredentialValidator: /* @__PURE__ */ __name2(() => UnsignedClrCredentialValidator, "UnsignedClrCredentialValidator"),
|
|
16250
16340
|
UnsignedVCValidator: /* @__PURE__ */ __name2(() => UnsignedVCValidator, "UnsignedVCValidator"),
|
|
16251
16341
|
UnsignedVPValidator: /* @__PURE__ */ __name2(() => UnsignedVPValidator, "UnsignedVPValidator"),
|
|
16342
|
+
UnsupportedSignInOperationError: /* @__PURE__ */ __name2(() => UnsupportedSignInOperationError, "UnsupportedSignInOperationError"),
|
|
16252
16343
|
UpdateFrameworkInputValidator: /* @__PURE__ */ __name2(() => UpdateFrameworkInputValidator, "UpdateFrameworkInputValidator"),
|
|
16344
|
+
UpdateShareLinkInputValidator: /* @__PURE__ */ __name2(() => UpdateShareLinkInputValidator, "UpdateShareLinkInputValidator"),
|
|
16253
16345
|
UpdateSkillInputValidator: /* @__PURE__ */ __name2(() => UpdateSkillInputValidator, "UpdateSkillInputValidator"),
|
|
16346
|
+
UpsertConsentContractEventValidator: /* @__PURE__ */ __name2(() => UpsertConsentContractEventValidator, "UpsertConsentContractEventValidator"),
|
|
16347
|
+
UpsertConsentContractResponseValidator: /* @__PURE__ */ __name2(() => UpsertConsentContractResponseValidator, "UpsertConsentContractResponseValidator"),
|
|
16254
16348
|
VC2EvidenceValidator: /* @__PURE__ */ __name2(() => VC2EvidenceValidator, "VC2EvidenceValidator"),
|
|
16255
16349
|
VCValidator: /* @__PURE__ */ __name2(() => VCValidator, "VCValidator"),
|
|
16256
16350
|
VPValidator: /* @__PURE__ */ __name2(() => VPValidator, "VPValidator"),
|
|
@@ -16261,7 +16355,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16261
16355
|
VerificationStatusValidator: /* @__PURE__ */ __name2(() => VerificationStatusValidator, "VerificationStatusValidator"),
|
|
16262
16356
|
appStoreActionValidator: /* @__PURE__ */ __name2(() => appStoreActionValidator, "appStoreActionValidator"),
|
|
16263
16357
|
capgoUpdateActionValidator: /* @__PURE__ */ __name2(() => capgoUpdateActionValidator, "capgoUpdateActionValidator"),
|
|
16358
|
+
classifyShareManifest: /* @__PURE__ */ __name2(() => classifyShareManifest, "classifyShareManifest"),
|
|
16359
|
+
decodeBase64Url: /* @__PURE__ */ __name2(() => decodeBase64Url, "decodeBase64Url"),
|
|
16360
|
+
decodedBase64UrlByteLength: /* @__PURE__ */ __name2(() => decodedBase64UrlByteLength, "decodedBase64UrlByteLength"),
|
|
16264
16361
|
dismissActionValidator: /* @__PURE__ */ __name2(() => dismissActionValidator, "dismissActionValidator"),
|
|
16362
|
+
encodeBase64Url: /* @__PURE__ */ __name2(() => encodeBase64Url, "encodeBase64Url"),
|
|
16363
|
+
escrowPinMismatchMessage: /* @__PURE__ */ __name2(() => escrowPinMismatchMessage, "escrowPinMismatchMessage"),
|
|
16265
16364
|
externalLinkActionValidator: /* @__PURE__ */ __name2(() => externalLinkActionValidator, "externalLinkActionValidator"),
|
|
16266
16365
|
inAppMessageActionStyleValidator: /* @__PURE__ */ __name2(() => inAppMessageActionStyleValidator, "inAppMessageActionStyleValidator"),
|
|
16267
16366
|
inAppMessageActionTargetValidator: /* @__PURE__ */ __name2(() => inAppMessageActionTargetValidator, "inAppMessageActionTargetValidator"),
|
|
@@ -16276,10 +16375,12 @@ var require_types_cjs_development = __commonJS({
|
|
|
16276
16375
|
inAppMessageVersionSourceValidator: /* @__PURE__ */ __name2(() => inAppMessageVersionSourceValidator, "inAppMessageVersionSourceValidator"),
|
|
16277
16376
|
inAppMessagesFlagValidator: /* @__PURE__ */ __name2(() => inAppMessagesFlagValidator, "inAppMessagesFlagValidator"),
|
|
16278
16377
|
internalLinkActionValidator: /* @__PURE__ */ __name2(() => internalLinkActionValidator, "internalLinkActionValidator"),
|
|
16378
|
+
isCanonicalBase64Url: /* @__PURE__ */ __name2(() => isCanonicalBase64Url, "isCanonicalBase64Url"),
|
|
16279
16379
|
isStoredCredentialEnvelope: /* @__PURE__ */ __name2(() => isStoredCredentialEnvelope2, "isStoredCredentialEnvelope"),
|
|
16280
16380
|
parseInAppMessagesFlag: /* @__PURE__ */ __name2(() => parseInAppMessagesFlag, "parseInAppMessagesFlag"),
|
|
16281
16381
|
platformPredicateValidator: /* @__PURE__ */ __name2(() => platformPredicateValidator, "platformPredicateValidator"),
|
|
16282
16382
|
rolePredicateValidator: /* @__PURE__ */ __name2(() => rolePredicateValidator, "rolePredicateValidator"),
|
|
16383
|
+
utf8ByteLength: /* @__PURE__ */ __name2(() => utf8ByteLength, "utf8ByteLength"),
|
|
16283
16384
|
versionPredicateValidator: /* @__PURE__ */ __name2(() => versionPredicateValidator, "versionPredicateValidator")
|
|
16284
16385
|
});
|
|
16285
16386
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -32416,7 +32517,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
32416
32517
|
"replacedBy"
|
|
32417
32518
|
]).or(external_exports2.string());
|
|
32418
32519
|
var AssociationValidator = external_exports2.object({
|
|
32419
|
-
|
|
32520
|
+
// Accept compacted scalars while retaining the existing permissive array contract.
|
|
32521
|
+
type: external_exports2.string().min(1).or(external_exports2.string().array().nonempty()),
|
|
32420
32522
|
associationType: AssociationTypeValidator,
|
|
32421
32523
|
sourceId: external_exports2.string().optional(),
|
|
32422
32524
|
targetId: external_exports2.string()
|
|
@@ -33239,11 +33341,48 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33239
33341
|
updatedAt: external_exports2.string(),
|
|
33240
33342
|
expiresAt: external_exports2.string().optional(),
|
|
33241
33343
|
autoBoosts: external_exports2.string().array().optional(),
|
|
33242
|
-
writers: external_exports2.array(LCNProfileValidator).optional()
|
|
33344
|
+
writers: external_exports2.array(LCNProfileValidator).optional(),
|
|
33345
|
+
recipients: external_exports2.array(LCNPublicProfileValidator.extend({ did: external_exports2.string() })).optional(),
|
|
33346
|
+
audienceVersion: external_exports2.number().int().nonnegative().optional()
|
|
33243
33347
|
});
|
|
33244
|
-
var ConsentFlowContractRequestStatusValidator = external_exports2.enum(["pending", "accepted", "denied"]).nullable();
|
|
33348
|
+
var ConsentFlowContractRequestStatusValidator = external_exports2.enum(["pending", "accepted", "denied", "cancelled"]).nullable();
|
|
33245
33349
|
var ConsentFlowContractRequestReadStatusValidator = external_exports2.enum(["unseen", "seen"]).nullable();
|
|
33246
|
-
var
|
|
33350
|
+
var ConsentFlowReferralValidator = external_exports2.object({
|
|
33351
|
+
requestId: external_exports2.string(),
|
|
33352
|
+
requestedBy: external_exports2.string(),
|
|
33353
|
+
externalReferenceId: external_exports2.string().max(256).optional()
|
|
33354
|
+
});
|
|
33355
|
+
var ContractRequestFieldsValidator = ConsentFlowReferralValidator.partial().extend({
|
|
33356
|
+
requestedAt: external_exports2.string().optional(),
|
|
33357
|
+
message: external_exports2.string().max(500).optional()
|
|
33358
|
+
});
|
|
33359
|
+
var SendContractRequestValidator = external_exports2.object({
|
|
33360
|
+
contractUri: external_exports2.string(),
|
|
33361
|
+
targetProfileId: external_exports2.string(),
|
|
33362
|
+
externalReferenceId: external_exports2.string().trim().min(1).max(256).optional(),
|
|
33363
|
+
message: external_exports2.string().trim().max(500).optional()
|
|
33364
|
+
});
|
|
33365
|
+
var ConsentFlowWebhookMetadataValidator = external_exports2.object({
|
|
33366
|
+
eventId: external_exports2.string(),
|
|
33367
|
+
deliveryKey: external_exports2.string(),
|
|
33368
|
+
event: external_exports2.enum([
|
|
33369
|
+
"request_sent",
|
|
33370
|
+
"request_accepted",
|
|
33371
|
+
"request_denied",
|
|
33372
|
+
"request_cancelled",
|
|
33373
|
+
"consent_created",
|
|
33374
|
+
"consent_updated",
|
|
33375
|
+
"consent_withdrawn",
|
|
33376
|
+
"credentials_synced"
|
|
33377
|
+
]),
|
|
33378
|
+
contractUri: external_exports2.string(),
|
|
33379
|
+
termsUri: external_exports2.string().optional(),
|
|
33380
|
+
requestId: external_exports2.string().optional(),
|
|
33381
|
+
requestedBy: external_exports2.string().optional(),
|
|
33382
|
+
externalReferenceId: external_exports2.string().optional(),
|
|
33383
|
+
recipientRole: external_exports2.enum(["owner", "recipient", "requester", "target"])
|
|
33384
|
+
});
|
|
33385
|
+
var ConsentFlowContractRequestForProfileValidator = ContractRequestFieldsValidator.extend({
|
|
33247
33386
|
profile: LCNProfileValidator,
|
|
33248
33387
|
status: ConsentFlowContractRequestStatusValidator,
|
|
33249
33388
|
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
@@ -33289,6 +33428,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33289
33428
|
expiresAt: external_exports2.string().optional(),
|
|
33290
33429
|
oneTime: external_exports2.boolean().optional(),
|
|
33291
33430
|
terms: ConsentFlowTermsValidator,
|
|
33431
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
33292
33432
|
contract: ConsentFlowContractDetailsValidator,
|
|
33293
33433
|
uri: external_exports2.string(),
|
|
33294
33434
|
consenter: LCNProfileValidator,
|
|
@@ -33384,6 +33524,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33384
33524
|
oneTime: external_exports2.boolean().optional(),
|
|
33385
33525
|
terms: ConsentFlowTermsValidator.optional(),
|
|
33386
33526
|
guardianApproval: ConsentFlowGuardianApprovalValidator.optional(),
|
|
33527
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
33387
33528
|
id: external_exports2.string(),
|
|
33388
33529
|
action: ConsentFlowTransactionActionValidator,
|
|
33389
33530
|
date: external_exports2.string(),
|
|
@@ -33394,6 +33535,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
33394
33535
|
status: ConsentFlowTermsStatusValidator,
|
|
33395
33536
|
contract: ConsentFlowContractDetailsValidator,
|
|
33396
33537
|
terms: ConsentFlowTermsValidator,
|
|
33538
|
+
referral: ConsentFlowReferralValidator.optional(),
|
|
33397
33539
|
transactions: ConsentFlowTransactionValidator.array()
|
|
33398
33540
|
});
|
|
33399
33541
|
var HolderExportMetadataValidator = external_exports2.object({
|
|
@@ -34130,7 +34272,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34130
34272
|
displayName: external_exports2.string(),
|
|
34131
34273
|
email: external_exports2.string().optional()
|
|
34132
34274
|
});
|
|
34133
|
-
var
|
|
34275
|
+
var AppStoreListingFieldsValidator = external_exports2.object({
|
|
34134
34276
|
listing_id: external_exports2.string(),
|
|
34135
34277
|
slug: external_exports2.string().optional(),
|
|
34136
34278
|
display_name: external_exports2.string(),
|
|
@@ -34156,15 +34298,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34156
34298
|
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
34157
34299
|
contact_email: external_exports2.string().email().optional()
|
|
34158
34300
|
});
|
|
34301
|
+
var PendingListingUpdateStatusValidator = external_exports2.enum(["DRAFT", "PENDING_REVIEW"]);
|
|
34302
|
+
var PendingListingUpdateValidator = external_exports2.object({
|
|
34303
|
+
status: PendingListingUpdateStatusValidator,
|
|
34304
|
+
submitted_at: external_exports2.string().optional(),
|
|
34305
|
+
changes: AppStoreListingFieldsValidator.omit({
|
|
34306
|
+
listing_id: true,
|
|
34307
|
+
app_listing_status: true,
|
|
34308
|
+
promotion_level: true,
|
|
34309
|
+
submitted_at: true,
|
|
34310
|
+
submitter: true
|
|
34311
|
+
}).partial(),
|
|
34312
|
+
manifest_version: external_exports2.number().int().min(1).optional()
|
|
34313
|
+
});
|
|
34314
|
+
var AppStoreListingValidator = AppStoreListingFieldsValidator.extend({
|
|
34315
|
+
pending_update: PendingListingUpdateValidator.optional()
|
|
34316
|
+
});
|
|
34159
34317
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
34160
34318
|
listing_id: true,
|
|
34161
34319
|
app_listing_status: true,
|
|
34162
|
-
promotion_level: true
|
|
34320
|
+
promotion_level: true,
|
|
34321
|
+
pending_update: true
|
|
34163
34322
|
});
|
|
34164
34323
|
var AppStoreListingUpdateValidator = AppStoreListingValidator.partial().omit({
|
|
34165
34324
|
listing_id: true,
|
|
34166
34325
|
app_listing_status: true,
|
|
34167
|
-
promotion_level: true
|
|
34326
|
+
promotion_level: true,
|
|
34327
|
+
pending_update: true
|
|
34168
34328
|
});
|
|
34169
34329
|
var InstalledAppValidator = AppStoreListingValidator.extend({
|
|
34170
34330
|
installed_at: external_exports2.string()
|
|
@@ -34179,12 +34339,87 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34179
34339
|
templateAlias: external_exports2.string().min(1).max(50).regex(/^[a-z0-9-]+$/),
|
|
34180
34340
|
boostUri: external_exports2.string()
|
|
34181
34341
|
});
|
|
34182
|
-
var
|
|
34342
|
+
var InlineWalletCategoryValidator = external_exports2.enum([
|
|
34343
|
+
"Achievement",
|
|
34344
|
+
"Skill",
|
|
34345
|
+
"ID",
|
|
34346
|
+
"Learning History",
|
|
34347
|
+
"Work History",
|
|
34348
|
+
"Social Badges",
|
|
34349
|
+
"Membership",
|
|
34350
|
+
"Accomplishment",
|
|
34351
|
+
"Experiences",
|
|
34352
|
+
"Accommodation",
|
|
34353
|
+
"Family"
|
|
34354
|
+
]);
|
|
34355
|
+
var InlineAlignmentValidator = external_exports2.object({
|
|
34356
|
+
name: external_exports2.string(),
|
|
34357
|
+
url: external_exports2.string(),
|
|
34358
|
+
framework: external_exports2.string().optional(),
|
|
34359
|
+
code: external_exports2.string().optional()
|
|
34360
|
+
}).passthrough();
|
|
34361
|
+
var InlineEvidenceValidator = external_exports2.object({
|
|
34362
|
+
id: external_exports2.string().optional(),
|
|
34363
|
+
name: external_exports2.string().optional(),
|
|
34364
|
+
narrative: external_exports2.string().optional()
|
|
34365
|
+
}).passthrough();
|
|
34366
|
+
var InlineWalletSkillTagValidator = external_exports2.object({
|
|
34367
|
+
frameworkId: external_exports2.string(),
|
|
34368
|
+
id: external_exports2.string(),
|
|
34369
|
+
proficiencyLevel: external_exports2.string().optional()
|
|
34370
|
+
}).passthrough();
|
|
34371
|
+
var SimpleInlineCredentialTemplateValidator = external_exports2.object({
|
|
34372
|
+
rawCredential: external_exports2.undefined().optional(),
|
|
34373
|
+
name: external_exports2.string(),
|
|
34374
|
+
description: external_exports2.string().optional(),
|
|
34375
|
+
image: external_exports2.string().optional(),
|
|
34376
|
+
issuerName: external_exports2.string().optional(),
|
|
34377
|
+
achievementType: external_exports2.string().optional(),
|
|
34378
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
34379
|
+
criteria: external_exports2.object({
|
|
34380
|
+
narrative: external_exports2.string().optional(),
|
|
34381
|
+
url: external_exports2.string().optional()
|
|
34382
|
+
}).passthrough().optional(),
|
|
34383
|
+
alignments: external_exports2.array(InlineAlignmentValidator).optional(),
|
|
34384
|
+
tags: external_exports2.array(external_exports2.string()).optional(),
|
|
34385
|
+
activity: external_exports2.object({
|
|
34386
|
+
startDate: external_exports2.string().optional(),
|
|
34387
|
+
endDate: external_exports2.string().optional()
|
|
34388
|
+
}).passthrough().optional(),
|
|
34389
|
+
credits: external_exports2.object({
|
|
34390
|
+
earned: external_exports2.union([external_exports2.number(), external_exports2.string()]).optional(),
|
|
34391
|
+
available: external_exports2.union([external_exports2.number(), external_exports2.string()]).optional()
|
|
34392
|
+
}).passthrough().optional(),
|
|
34393
|
+
validUntil: external_exports2.string().optional(),
|
|
34394
|
+
evidence: external_exports2.array(InlineEvidenceValidator).optional(),
|
|
34395
|
+
walletSkills: external_exports2.array(InlineWalletSkillTagValidator).optional()
|
|
34396
|
+
}).passthrough();
|
|
34397
|
+
var RawInlineCredentialTemplateValidator = external_exports2.object({
|
|
34398
|
+
rawCredential: external_exports2.record(external_exports2.string(), external_exports2.unknown()),
|
|
34399
|
+
category: InlineWalletCategoryValidator.optional(),
|
|
34400
|
+
walletSkills: external_exports2.array(InlineWalletSkillTagValidator).optional()
|
|
34401
|
+
}).passthrough();
|
|
34402
|
+
var InlineCredentialTemplateValidator = external_exports2.union([
|
|
34403
|
+
RawInlineCredentialTemplateValidator,
|
|
34404
|
+
SimpleInlineCredentialTemplateValidator
|
|
34405
|
+
]);
|
|
34406
|
+
var LegacySendCredentialEventValidator = external_exports2.object({
|
|
34183
34407
|
type: external_exports2.literal("send-credential"),
|
|
34184
34408
|
templateAlias: external_exports2.string(),
|
|
34185
34409
|
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
34186
34410
|
preventDuplicateClaim: external_exports2.boolean().optional()
|
|
34187
34411
|
});
|
|
34412
|
+
var InlineSendCredentialEventValidator = external_exports2.object({
|
|
34413
|
+
type: external_exports2.literal("send-credential"),
|
|
34414
|
+
alias: external_exports2.string(),
|
|
34415
|
+
template: InlineCredentialTemplateValidator,
|
|
34416
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
34417
|
+
preventDuplicateClaim: external_exports2.boolean().optional()
|
|
34418
|
+
});
|
|
34419
|
+
var SendCredentialEventValidator = external_exports2.union([
|
|
34420
|
+
LegacySendCredentialEventValidator,
|
|
34421
|
+
InlineSendCredentialEventValidator
|
|
34422
|
+
]);
|
|
34188
34423
|
var CheckCredentialEventValidator = external_exports2.object({
|
|
34189
34424
|
type: external_exports2.literal("check-credential"),
|
|
34190
34425
|
templateAlias: external_exports2.string().optional(),
|
|
@@ -34279,7 +34514,119 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34279
34514
|
type: external_exports2.literal("get-counters"),
|
|
34280
34515
|
keys: external_exports2.array(counterKeyValidator).min(1).max(50).optional()
|
|
34281
34516
|
});
|
|
34282
|
-
var
|
|
34517
|
+
var ConsentRequestWalletCategoryValidator = external_exports2.enum([
|
|
34518
|
+
"Achievement",
|
|
34519
|
+
"Skill",
|
|
34520
|
+
"ID",
|
|
34521
|
+
"Learning History",
|
|
34522
|
+
"Work History",
|
|
34523
|
+
"Social Badges",
|
|
34524
|
+
"Membership",
|
|
34525
|
+
"Accomplishment",
|
|
34526
|
+
"Experiences",
|
|
34527
|
+
"Accommodation",
|
|
34528
|
+
"Family"
|
|
34529
|
+
]);
|
|
34530
|
+
var ConsentRequestPersonalFieldValidator = external_exports2.enum([
|
|
34531
|
+
"name",
|
|
34532
|
+
"email",
|
|
34533
|
+
"phone",
|
|
34534
|
+
"birthDate",
|
|
34535
|
+
"country",
|
|
34536
|
+
"avatar"
|
|
34537
|
+
]);
|
|
34538
|
+
var ConsentRequestValidator = external_exports2.object({
|
|
34539
|
+
read: external_exports2.object({
|
|
34540
|
+
credentialCategories: external_exports2.array(ConsentRequestWalletCategoryValidator).optional(),
|
|
34541
|
+
personalFields: external_exports2.array(ConsentRequestPersonalFieldValidator).optional()
|
|
34542
|
+
}).optional(),
|
|
34543
|
+
write: external_exports2.object({
|
|
34544
|
+
credentialCategories: external_exports2.array(ConsentRequestWalletCategoryValidator).optional()
|
|
34545
|
+
}).optional(),
|
|
34546
|
+
reason: external_exports2.string().optional()
|
|
34547
|
+
});
|
|
34548
|
+
var NormalizedConsentScopesValidator = external_exports2.object({
|
|
34549
|
+
read: external_exports2.object({
|
|
34550
|
+
credentialCategories: external_exports2.array(ConsentRequestWalletCategoryValidator).default([]),
|
|
34551
|
+
personalFields: external_exports2.array(ConsentRequestPersonalFieldValidator).default([])
|
|
34552
|
+
}),
|
|
34553
|
+
write: external_exports2.object({
|
|
34554
|
+
credentialCategories: external_exports2.array(ConsentRequestWalletCategoryValidator).default([])
|
|
34555
|
+
})
|
|
34556
|
+
});
|
|
34557
|
+
var CapturedTemplateRecordValidator = external_exports2.object({
|
|
34558
|
+
alias: external_exports2.string(),
|
|
34559
|
+
template: InlineCredentialTemplateValidator,
|
|
34560
|
+
version: external_exports2.number().int().min(1),
|
|
34561
|
+
lastUsedAt: external_exports2.string()
|
|
34562
|
+
}).passthrough();
|
|
34563
|
+
var CapturedConsentRecordValidator = external_exports2.object({
|
|
34564
|
+
scopes: NormalizedConsentScopesValidator,
|
|
34565
|
+
reason: external_exports2.string().optional(),
|
|
34566
|
+
lastUsedAt: external_exports2.string()
|
|
34567
|
+
}).passthrough();
|
|
34568
|
+
var AppManifestValidator = external_exports2.object({
|
|
34569
|
+
manifestVersion: external_exports2.literal(1),
|
|
34570
|
+
appUrl: external_exports2.string(),
|
|
34571
|
+
appKey: external_exports2.string().max(200).optional(),
|
|
34572
|
+
suggestedName: external_exports2.string().optional(),
|
|
34573
|
+
suggestedIconUrl: external_exports2.string().optional(),
|
|
34574
|
+
permissions: external_exports2.array(external_exports2.string()).default([]),
|
|
34575
|
+
templates: external_exports2.array(CapturedTemplateRecordValidator).default([]),
|
|
34576
|
+
consentRequests: external_exports2.array(CapturedConsentRecordValidator).default([]),
|
|
34577
|
+
usedConsentContract: external_exports2.boolean().optional(),
|
|
34578
|
+
featuresLaunched: external_exports2.array(external_exports2.string()).default([]),
|
|
34579
|
+
counterKeys: external_exports2.array(external_exports2.string()).default([]),
|
|
34580
|
+
usedLearnerContext: external_exports2.boolean(),
|
|
34581
|
+
usedNotifications: external_exports2.boolean(),
|
|
34582
|
+
firstCapturedAt: external_exports2.string(),
|
|
34583
|
+
lastUpdatedAt: external_exports2.string()
|
|
34584
|
+
}).passthrough();
|
|
34585
|
+
var AppManifestVersionStatusValidator = external_exports2.enum(["draft", "active", "superseded"]);
|
|
34586
|
+
var AppManifestVersionValidator = external_exports2.object({
|
|
34587
|
+
id: external_exports2.string(),
|
|
34588
|
+
version: external_exports2.number().int().min(1),
|
|
34589
|
+
manifestHash: external_exports2.string(),
|
|
34590
|
+
manifest: AppManifestValidator,
|
|
34591
|
+
status: AppManifestVersionStatusValidator,
|
|
34592
|
+
createdAt: external_exports2.string(),
|
|
34593
|
+
activatedAt: external_exports2.string().optional()
|
|
34594
|
+
});
|
|
34595
|
+
var AppManifestStringDiffValidator = external_exports2.object({
|
|
34596
|
+
added: external_exports2.array(external_exports2.string()),
|
|
34597
|
+
removed: external_exports2.array(external_exports2.string()),
|
|
34598
|
+
changed: external_exports2.array(external_exports2.string())
|
|
34599
|
+
});
|
|
34600
|
+
var AppManifestTemplateRefValidator = external_exports2.object({
|
|
34601
|
+
alias: external_exports2.string(),
|
|
34602
|
+
version: external_exports2.number().int().min(1)
|
|
34603
|
+
});
|
|
34604
|
+
var AppManifestTemplateChangeValidator = external_exports2.object({
|
|
34605
|
+
alias: external_exports2.string(),
|
|
34606
|
+
fromVersion: external_exports2.number().int().min(1),
|
|
34607
|
+
toVersion: external_exports2.number().int().min(1)
|
|
34608
|
+
});
|
|
34609
|
+
var AppManifestDiffValidator = external_exports2.object({
|
|
34610
|
+
permissions: AppManifestStringDiffValidator,
|
|
34611
|
+
templates: external_exports2.object({
|
|
34612
|
+
added: external_exports2.array(AppManifestTemplateRefValidator),
|
|
34613
|
+
removed: external_exports2.array(AppManifestTemplateRefValidator),
|
|
34614
|
+
changed: external_exports2.array(AppManifestTemplateChangeValidator)
|
|
34615
|
+
}),
|
|
34616
|
+
consentScopes: AppManifestStringDiffValidator,
|
|
34617
|
+
featurePaths: AppManifestStringDiffValidator,
|
|
34618
|
+
counterKeys: AppManifestStringDiffValidator,
|
|
34619
|
+
requiresReview: external_exports2.boolean()
|
|
34620
|
+
});
|
|
34621
|
+
var UpsertConsentContractEventValidator = external_exports2.object({
|
|
34622
|
+
type: external_exports2.literal("upsert-consent-contract"),
|
|
34623
|
+
scopes: ConsentRequestValidator
|
|
34624
|
+
});
|
|
34625
|
+
var UpsertConsentContractResponseValidator = external_exports2.object({
|
|
34626
|
+
contractUri: external_exports2.string(),
|
|
34627
|
+
created: external_exports2.boolean()
|
|
34628
|
+
});
|
|
34629
|
+
var AppEventValidator = external_exports2.union([
|
|
34283
34630
|
SendCredentialEventValidator,
|
|
34284
34631
|
CheckCredentialEventValidator,
|
|
34285
34632
|
CheckIssuanceStatusEventValidator,
|
|
@@ -34289,7 +34636,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34289
34636
|
SendNotificationEventValidator,
|
|
34290
34637
|
IncrementCounterEventValidator,
|
|
34291
34638
|
GetCounterEventValidator,
|
|
34292
|
-
GetCountersEventValidator
|
|
34639
|
+
GetCountersEventValidator,
|
|
34640
|
+
UpsertConsentContractEventValidator
|
|
34293
34641
|
]);
|
|
34294
34642
|
var AppEventInputValidator = external_exports2.object({
|
|
34295
34643
|
listingId: external_exports2.string(),
|
|
@@ -34371,6 +34719,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34371
34719
|
__name22(this, "AuthSessionError");
|
|
34372
34720
|
}
|
|
34373
34721
|
};
|
|
34722
|
+
var UnsupportedSignInOperationError = class extends Error {
|
|
34723
|
+
static {
|
|
34724
|
+
__name(this, "UnsupportedSignInOperationError");
|
|
34725
|
+
}
|
|
34726
|
+
static {
|
|
34727
|
+
__name2(this, "UnsupportedSignInOperationError");
|
|
34728
|
+
}
|
|
34729
|
+
constructor(operation, providerType) {
|
|
34730
|
+
super(`${operation} is not supported by ${providerType}`);
|
|
34731
|
+
this.operation = operation;
|
|
34732
|
+
this.providerType = providerType;
|
|
34733
|
+
this.name = "UnsupportedSignInOperationError";
|
|
34734
|
+
}
|
|
34735
|
+
static {
|
|
34736
|
+
__name22(this, "UnsupportedSignInOperationError");
|
|
34737
|
+
}
|
|
34738
|
+
};
|
|
34739
|
+
var ESCROW_PIN_LOCKED_MESSAGE = "Too many incorrect PIN attempts. You can still recover by waiting.";
|
|
34740
|
+
var ESCROW_PIN_UNAVAILABLE_MESSAGE = "PIN recovery is not available for this account.";
|
|
34741
|
+
var ESCROW_PIN_MISMATCH_PATTERN = /^Incorrect PIN\. (\d+) attempts left\.$/;
|
|
34742
|
+
var escrowPinMismatchMessage = /* @__PURE__ */ __name22((attemptsRemaining) => `Incorrect PIN. ${attemptsRemaining} attempts left.`, "escrowPinMismatchMessage");
|
|
34743
|
+
var EscrowPinStatusValidator = external_exports2.object({
|
|
34744
|
+
state: external_exports2.enum(["none", "enabled", "locked", "stale"]),
|
|
34745
|
+
enabled: external_exports2.boolean(),
|
|
34746
|
+
attemptsRemaining: external_exports2.number().int().nonnegative(),
|
|
34747
|
+
salt: external_exports2.string().optional()
|
|
34748
|
+
});
|
|
34374
34749
|
var BITSTRING_STATUS_PURPOSES = ["revocation", "suspension"];
|
|
34375
34750
|
var DEFAULT_BITSTRING_STATUS_LIST_SIZE = 131072;
|
|
34376
34751
|
var BitstringStatusPurposeValidator = external_exports2.enum(BITSTRING_STATUS_PURPOSES);
|
|
@@ -34485,6 +34860,502 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
34485
34860
|
const result = inAppMessagesFlagValidator.safeParse(raw);
|
|
34486
34861
|
return result.success ? result.data : EMPTY_IN_APP_MESSAGES_FLAG;
|
|
34487
34862
|
}, "parseInAppMessagesFlag");
|
|
34863
|
+
var SHARE_LINK_ID_BYTES = 16;
|
|
34864
|
+
var SHARE_CONTENT_KEY_BYTES = 32;
|
|
34865
|
+
var SHARE_IV_BYTES = 12;
|
|
34866
|
+
var SHARE_TAG_BYTES = 16;
|
|
34867
|
+
var MAX_SHARE_CIPHERTEXT_BYTES = 512 * 1024;
|
|
34868
|
+
var MAX_SHARE_RECOVERY_JWE_BYTES = 64 * 1024;
|
|
34869
|
+
var MAX_SELECTED_CREDENTIALS = 50;
|
|
34870
|
+
var MAX_ENDORSEMENTS = 200;
|
|
34871
|
+
var MAX_VP_MEMBERS = MAX_SELECTED_CREDENTIALS + MAX_ENDORSEMENTS;
|
|
34872
|
+
var MAX_SHARE_SOURCE_URI_CHARS = 2048;
|
|
34873
|
+
var MAX_SHARE_LINK_REQUEST_BYTES = 1024 * 1024;
|
|
34874
|
+
var SHARE_LINK_PROTOCOL = "lc-share/v1";
|
|
34875
|
+
var SHARE_RECOVERY_PROTOCOL = "lc-share-recovery/v1";
|
|
34876
|
+
var SHARE_AAD_PREFIX = "lc-share:v1";
|
|
34877
|
+
var BASE64URL_ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";
|
|
34878
|
+
var BASE64URL_LOOKUP = (() => {
|
|
34879
|
+
const table = new Int16Array(128).fill(-1);
|
|
34880
|
+
for (let index = 0; index < BASE64URL_ALPHABET.length; index += 1) {
|
|
34881
|
+
table[BASE64URL_ALPHABET.charCodeAt(index)] = index;
|
|
34882
|
+
}
|
|
34883
|
+
return table;
|
|
34884
|
+
})();
|
|
34885
|
+
var encodeBase64Url = /* @__PURE__ */ __name22((bytes) => {
|
|
34886
|
+
let output = "";
|
|
34887
|
+
for (let index = 0; index < bytes.length; index += 3) {
|
|
34888
|
+
const first = bytes[index];
|
|
34889
|
+
const second = bytes[index + 1];
|
|
34890
|
+
const third = bytes[index + 2];
|
|
34891
|
+
output += BASE64URL_ALPHABET[first >> 2];
|
|
34892
|
+
output += BASE64URL_ALPHABET[(first & 3) << 4 | (second ?? 0) >> 4];
|
|
34893
|
+
if (second === void 0) break;
|
|
34894
|
+
output += BASE64URL_ALPHABET[(second & 15) << 2 | (third ?? 0) >> 6];
|
|
34895
|
+
if (third === void 0) break;
|
|
34896
|
+
output += BASE64URL_ALPHABET[third & 63];
|
|
34897
|
+
}
|
|
34898
|
+
return output;
|
|
34899
|
+
}, "encodeBase64Url");
|
|
34900
|
+
var decodeBase64Url = /* @__PURE__ */ __name22((value) => {
|
|
34901
|
+
if (typeof value !== "string") return null;
|
|
34902
|
+
const output = new Uint8Array(Math.floor(value.length * 6 / 8));
|
|
34903
|
+
let bits = 0;
|
|
34904
|
+
let bitCount = 0;
|
|
34905
|
+
let outputIndex = 0;
|
|
34906
|
+
for (let index = 0; index < value.length; index += 1) {
|
|
34907
|
+
const code = value.charCodeAt(index);
|
|
34908
|
+
const digit = code < 128 ? BASE64URL_LOOKUP[code] : -1;
|
|
34909
|
+
if (digit < 0) return null;
|
|
34910
|
+
bits = bits << 6 | digit;
|
|
34911
|
+
bitCount += 6;
|
|
34912
|
+
if (bitCount >= 8) {
|
|
34913
|
+
bitCount -= 8;
|
|
34914
|
+
output[outputIndex] = bits >> bitCount & 255;
|
|
34915
|
+
outputIndex += 1;
|
|
34916
|
+
}
|
|
34917
|
+
}
|
|
34918
|
+
return output;
|
|
34919
|
+
}, "decodeBase64Url");
|
|
34920
|
+
var isCanonicalBase64Url = /* @__PURE__ */ __name22((value, expectedBytes) => {
|
|
34921
|
+
if (typeof value !== "string") return false;
|
|
34922
|
+
if (expectedBytes !== void 0 && value.length !== Math.ceil(expectedBytes * 4 / 3))
|
|
34923
|
+
return false;
|
|
34924
|
+
const decoded = decodeBase64Url(value);
|
|
34925
|
+
if (decoded === null) return false;
|
|
34926
|
+
if (expectedBytes !== void 0 && decoded.length !== expectedBytes) return false;
|
|
34927
|
+
return encodeBase64Url(decoded) === value;
|
|
34928
|
+
}, "isCanonicalBase64Url");
|
|
34929
|
+
var decodedBase64UrlByteLength = /* @__PURE__ */ __name22((value) => decodeBase64Url(value)?.length ?? null, "decodedBase64UrlByteLength");
|
|
34930
|
+
var utf8ByteLength = /* @__PURE__ */ __name22((value) => new TextEncoder().encode(value).length, "utf8ByteLength");
|
|
34931
|
+
var canonicalBase64Url = /* @__PURE__ */ __name22((bytes) => external_exports2.string().refine((value) => isCanonicalBase64Url(value, bytes), {
|
|
34932
|
+
message: `must be canonical base64url for exactly ${bytes} bytes`
|
|
34933
|
+
}), "canonicalBase64Url");
|
|
34934
|
+
var ShareLinkIdValidator = canonicalBase64Url(SHARE_LINK_ID_BYTES);
|
|
34935
|
+
var ShareContentKeyValidator = canonicalBase64Url(SHARE_CONTENT_KEY_BYTES);
|
|
34936
|
+
var ShareIvValidator = canonicalBase64Url(SHARE_IV_BYTES);
|
|
34937
|
+
var ShareCiphertextValidator = external_exports2.string().refine(
|
|
34938
|
+
(value) => {
|
|
34939
|
+
if (value.length > Math.ceil(MAX_SHARE_CIPHERTEXT_BYTES * 4 / 3)) return false;
|
|
34940
|
+
const decoded = decodeBase64Url(value);
|
|
34941
|
+
if (decoded === null) return false;
|
|
34942
|
+
if (encodeBase64Url(decoded) !== value) return false;
|
|
34943
|
+
return decoded.length >= SHARE_TAG_BYTES && decoded.length <= MAX_SHARE_CIPHERTEXT_BYTES;
|
|
34944
|
+
},
|
|
34945
|
+
{
|
|
34946
|
+
message: `must be canonical base64url decoding to ${SHARE_TAG_BYTES}..${MAX_SHARE_CIPHERTEXT_BYTES} bytes`
|
|
34947
|
+
}
|
|
34948
|
+
);
|
|
34949
|
+
var ShareEnvelopeValidator = external_exports2.object({
|
|
34950
|
+
v: external_exports2.literal(1),
|
|
34951
|
+
alg: external_exports2.literal("A256GCM"),
|
|
34952
|
+
iv: ShareIvValidator,
|
|
34953
|
+
ct: ShareCiphertextValidator
|
|
34954
|
+
}).strict();
|
|
34955
|
+
var safeVersion = external_exports2.number().int().min(1).max(2 ** 31 - 1);
|
|
34956
|
+
var safeCredentialIndex = external_exports2.number().int().min(0).max(MAX_VP_MEMBERS - 1);
|
|
34957
|
+
var ShareSelectionEntryValidator = external_exports2.object({ credentialIndex: safeCredentialIndex }).strict();
|
|
34958
|
+
var ShareEndorsementEntryValidator = external_exports2.object({ credentialIndex: safeCredentialIndex, targetCredentialIndex: safeCredentialIndex }).strict();
|
|
34959
|
+
var ShareSharerValidator = external_exports2.object({
|
|
34960
|
+
profileId: external_exports2.string().min(1).max(128),
|
|
34961
|
+
displayName: external_exports2.string().min(1).max(120),
|
|
34962
|
+
avatar: external_exports2.string().max(2048).optional()
|
|
34963
|
+
}).strict();
|
|
34964
|
+
var presentationShape = VPValidator.extend({
|
|
34965
|
+
verifiableCredential: VCValidator.array().min(1).max(MAX_VP_MEMBERS)
|
|
34966
|
+
});
|
|
34967
|
+
var hasBoundedPresentation = /* @__PURE__ */ __name22((value) => {
|
|
34968
|
+
let credentialCount = 0;
|
|
34969
|
+
const ancestors = /* @__PURE__ */ new Set();
|
|
34970
|
+
const visit = /* @__PURE__ */ __name22((node, depth) => {
|
|
34971
|
+
if (node === null || typeof node !== "object") return true;
|
|
34972
|
+
if (depth > 32 || ancestors.has(node)) return false;
|
|
34973
|
+
ancestors.add(node);
|
|
34974
|
+
try {
|
|
34975
|
+
for (const [key, child] of Object.entries(node)) {
|
|
34976
|
+
if (key === "verifiableCredential") {
|
|
34977
|
+
credentialCount += Array.isArray(child) ? child.length : 1;
|
|
34978
|
+
if (credentialCount > MAX_VP_MEMBERS) return false;
|
|
34979
|
+
}
|
|
34980
|
+
if (!visit(child, depth + 1)) return false;
|
|
34981
|
+
}
|
|
34982
|
+
return true;
|
|
34983
|
+
} finally {
|
|
34984
|
+
ancestors.delete(node);
|
|
34985
|
+
}
|
|
34986
|
+
}, "visit");
|
|
34987
|
+
return visit(value, 0);
|
|
34988
|
+
}, "hasBoundedPresentation");
|
|
34989
|
+
var ShareManifestPresentationValidator = external_exports2.custom(
|
|
34990
|
+
(value) => hasBoundedPresentation(value) && presentationShape.safeParse(value).success,
|
|
34991
|
+
{ message: "invalid share presentation" }
|
|
34992
|
+
);
|
|
34993
|
+
var SharePayloadValidatorShape = external_exports2.object({
|
|
34994
|
+
protocol: external_exports2.literal(SHARE_LINK_PROTOCOL),
|
|
34995
|
+
shareId: ShareLinkIdValidator,
|
|
34996
|
+
contentVersion: safeVersion,
|
|
34997
|
+
createdAt: external_exports2.iso.datetime(),
|
|
34998
|
+
sharer: ShareSharerValidator,
|
|
34999
|
+
presentation: ShareManifestPresentationValidator,
|
|
35000
|
+
selection: ShareSelectionEntryValidator.array().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
35001
|
+
endorsements: ShareEndorsementEntryValidator.array().max(MAX_ENDORSEMENTS).default([])
|
|
35002
|
+
}).strict();
|
|
35003
|
+
var classificationFailure = /* @__PURE__ */ __name22((code, message, path = []) => ({ ok: false, code, message, path }), "classificationFailure");
|
|
35004
|
+
var readSignedClaimId = /* @__PURE__ */ __name22((member) => {
|
|
35005
|
+
if (member === null || typeof member !== "object") return void 0;
|
|
35006
|
+
const record22 = member;
|
|
35007
|
+
const claim = record22.credentialSubject ?? record22.endorsement;
|
|
35008
|
+
if (claim === null || typeof claim !== "object") return void 0;
|
|
35009
|
+
const claimRecord = claim;
|
|
35010
|
+
const nested = claimRecord.endorsement;
|
|
35011
|
+
const nestedId = nested !== null && typeof nested === "object" ? nested.id : void 0;
|
|
35012
|
+
return claimRecord.id ?? nestedId;
|
|
35013
|
+
}, "readSignedClaimId");
|
|
35014
|
+
var classifyShareManifest = /* @__PURE__ */ __name22((payload) => {
|
|
35015
|
+
const members = payload.presentation?.verifiableCredential;
|
|
35016
|
+
if (!Array.isArray(members) || members.length === 0) {
|
|
35017
|
+
return classificationFailure("NO_PRESENTATION_MEMBERS", "presentation has no credentials");
|
|
35018
|
+
}
|
|
35019
|
+
if (members.length > MAX_VP_MEMBERS) {
|
|
35020
|
+
return classificationFailure(
|
|
35021
|
+
"TOO_MANY_VP_MEMBERS",
|
|
35022
|
+
`presentation has ${members.length} members, over the ${MAX_VP_MEMBERS} bound`
|
|
35023
|
+
);
|
|
35024
|
+
}
|
|
35025
|
+
const selection = payload.selection;
|
|
35026
|
+
const endorsements = payload.endorsements ?? [];
|
|
35027
|
+
if (!Array.isArray(selection) || selection.length < 1 || selection.length > MAX_SELECTED_CREDENTIALS) {
|
|
35028
|
+
return classificationFailure("BAD_SELECTION", "selection must contain 1..50 entries");
|
|
35029
|
+
}
|
|
35030
|
+
if (!Array.isArray(endorsements) || endorsements.length > MAX_ENDORSEMENTS) {
|
|
35031
|
+
return classificationFailure(
|
|
35032
|
+
"BAD_ENDORSEMENTS",
|
|
35033
|
+
"endorsements must contain at most 200 entries"
|
|
35034
|
+
);
|
|
35035
|
+
}
|
|
35036
|
+
const selectedIndices = [];
|
|
35037
|
+
const selected = /* @__PURE__ */ new Set();
|
|
35038
|
+
for (let index = 0; index < selection.length; index += 1) {
|
|
35039
|
+
const entry = selection[index];
|
|
35040
|
+
const credentialIndex = entry?.credentialIndex;
|
|
35041
|
+
if (!Number.isSafeInteger(credentialIndex) || credentialIndex < 0 || credentialIndex >= members.length) {
|
|
35042
|
+
return classificationFailure(
|
|
35043
|
+
"SELECTION_INDEX_OUT_OF_BOUNDS",
|
|
35044
|
+
`selection[${index}].credentialIndex is out of bounds`,
|
|
35045
|
+
["selection", index, "credentialIndex"]
|
|
35046
|
+
);
|
|
35047
|
+
}
|
|
35048
|
+
if (selected.has(credentialIndex)) {
|
|
35049
|
+
return classificationFailure(
|
|
35050
|
+
"SELECTION_INDEX_DUPLICATE",
|
|
35051
|
+
`selection[${index}].credentialIndex is duplicated`,
|
|
35052
|
+
["selection", index, "credentialIndex"]
|
|
35053
|
+
);
|
|
35054
|
+
}
|
|
35055
|
+
selected.add(credentialIndex);
|
|
35056
|
+
selectedIndices.push(credentialIndex);
|
|
35057
|
+
}
|
|
35058
|
+
const classified = new Set(selected);
|
|
35059
|
+
const endorsementIndices = [];
|
|
35060
|
+
for (let index = 0; index < endorsements.length; index += 1) {
|
|
35061
|
+
const entry = endorsements[index];
|
|
35062
|
+
const credentialIndex = entry?.credentialIndex;
|
|
35063
|
+
const targetIndex = entry?.targetCredentialIndex;
|
|
35064
|
+
if (!Number.isSafeInteger(credentialIndex) || credentialIndex < 0 || credentialIndex >= members.length) {
|
|
35065
|
+
return classificationFailure(
|
|
35066
|
+
"ENDORSEMENT_INDEX_OUT_OF_BOUNDS",
|
|
35067
|
+
`endorsements[${index}].credentialIndex is out of bounds`,
|
|
35068
|
+
["endorsements", index, "credentialIndex"]
|
|
35069
|
+
);
|
|
35070
|
+
}
|
|
35071
|
+
if (classified.has(credentialIndex)) {
|
|
35072
|
+
return classificationFailure(
|
|
35073
|
+
"VP_MEMBER_CLASSIFIED_TWICE",
|
|
35074
|
+
`endorsements[${index}].credentialIndex was already classified`,
|
|
35075
|
+
["endorsements", index, "credentialIndex"]
|
|
35076
|
+
);
|
|
35077
|
+
}
|
|
35078
|
+
if (!selected.has(targetIndex)) {
|
|
35079
|
+
return classificationFailure(
|
|
35080
|
+
"ENDORSEMENT_TARGET_NOT_SELECTED",
|
|
35081
|
+
`endorsements[${index}].targetCredentialIndex must reference a selected credential`,
|
|
35082
|
+
["endorsements", index, "targetCredentialIndex"]
|
|
35083
|
+
);
|
|
35084
|
+
}
|
|
35085
|
+
const referenced = readSignedClaimId(members[credentialIndex]);
|
|
35086
|
+
const target = members[targetIndex];
|
|
35087
|
+
const targetId = target !== null && typeof target === "object" ? target.id : void 0;
|
|
35088
|
+
if (typeof referenced !== "string" || typeof targetId !== "string" || referenced !== targetId) {
|
|
35089
|
+
return classificationFailure(
|
|
35090
|
+
"ENDORSEMENT_TARGET_UNBOUND",
|
|
35091
|
+
`endorsements[${index}] claim does not reference the target credential id`,
|
|
35092
|
+
["endorsements", index]
|
|
35093
|
+
);
|
|
35094
|
+
}
|
|
35095
|
+
classified.add(credentialIndex);
|
|
35096
|
+
endorsementIndices.push(credentialIndex);
|
|
35097
|
+
}
|
|
35098
|
+
if (classified.size !== members.length) {
|
|
35099
|
+
return classificationFailure(
|
|
35100
|
+
"UNCLASSIFIED_VP_MEMBER",
|
|
35101
|
+
"every presentation member must be classified exactly once",
|
|
35102
|
+
["presentation", "verifiableCredential"]
|
|
35103
|
+
);
|
|
35104
|
+
}
|
|
35105
|
+
return {
|
|
35106
|
+
ok: true,
|
|
35107
|
+
classification: { selectedIndices, endorsementIndices, memberCount: members.length }
|
|
35108
|
+
};
|
|
35109
|
+
}, "classifyShareManifest");
|
|
35110
|
+
var SharePayloadValidator = SharePayloadValidatorShape.superRefine((payload, ctx) => {
|
|
35111
|
+
const result = classifyShareManifest(payload);
|
|
35112
|
+
if (!result.ok) {
|
|
35113
|
+
ctx.addIssue({
|
|
35114
|
+
code: "custom",
|
|
35115
|
+
message: result.message,
|
|
35116
|
+
path: result.path,
|
|
35117
|
+
params: { shareLinkCode: result.code }
|
|
35118
|
+
});
|
|
35119
|
+
}
|
|
35120
|
+
});
|
|
35121
|
+
var ShareRecoverySelectionValidator = external_exports2.object({
|
|
35122
|
+
ref: external_exports2.string().min(1).max(MAX_SHARE_SOURCE_URI_CHARS),
|
|
35123
|
+
order: external_exports2.number().int().min(0).max(MAX_SELECTED_CREDENTIALS - 1)
|
|
35124
|
+
}).strict();
|
|
35125
|
+
var ShareRecoveryEndorsementValidator = external_exports2.object({ targetRef: external_exports2.string().min(1).max(MAX_SHARE_SOURCE_URI_CHARS) }).strict();
|
|
35126
|
+
var ShareRecoveryPlaintextValidator = external_exports2.object({
|
|
35127
|
+
protocol: external_exports2.literal(SHARE_RECOVERY_PROTOCOL),
|
|
35128
|
+
shareId: ShareLinkIdValidator,
|
|
35129
|
+
ownerProfileId: external_exports2.string().min(1).max(128),
|
|
35130
|
+
createdAt: external_exports2.iso.datetime(),
|
|
35131
|
+
latest: external_exports2.object({ contentVersion: safeVersion, key: ShareContentKeyValidator }).strict(),
|
|
35132
|
+
selection: ShareRecoverySelectionValidator.array().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
35133
|
+
endorsements: ShareRecoveryEndorsementValidator.array().max(MAX_ENDORSEMENTS).default([])
|
|
35134
|
+
}).strict().superRefine((recovery, ctx) => {
|
|
35135
|
+
const orders = /* @__PURE__ */ new Set();
|
|
35136
|
+
recovery.selection.forEach((entry, index) => {
|
|
35137
|
+
if (entry.order >= recovery.selection.length) {
|
|
35138
|
+
ctx.addIssue({
|
|
35139
|
+
code: "custom",
|
|
35140
|
+
message: "order must be within the selection bounds",
|
|
35141
|
+
path: ["selection", index, "order"]
|
|
35142
|
+
});
|
|
35143
|
+
}
|
|
35144
|
+
if (orders.has(entry.order)) {
|
|
35145
|
+
ctx.addIssue({
|
|
35146
|
+
code: "custom",
|
|
35147
|
+
message: "order must be unique within the selection",
|
|
35148
|
+
path: ["selection", index, "order"]
|
|
35149
|
+
});
|
|
35150
|
+
}
|
|
35151
|
+
orders.add(entry.order);
|
|
35152
|
+
});
|
|
35153
|
+
});
|
|
35154
|
+
var ShareOwnerRecoveryValidator = JWEValidator2.refine(
|
|
35155
|
+
(value) => utf8ByteLength(JSON.stringify(value)) <= MAX_SHARE_RECOVERY_JWE_BYTES,
|
|
35156
|
+
{ message: `serialized recovery JWE must be at most ${MAX_SHARE_RECOVERY_JWE_BYTES} bytes` }
|
|
35157
|
+
);
|
|
35158
|
+
var ShareLinkStatusValidator = external_exports2.enum(["pending", "active", "stopped"]);
|
|
35159
|
+
var ShareContentStateValidator = external_exports2.enum(["staging", "finalized", "content_missing"]);
|
|
35160
|
+
var ShareLinkValidator = external_exports2.object({
|
|
35161
|
+
id: ShareLinkIdValidator,
|
|
35162
|
+
title: external_exports2.string().min(1).max(120),
|
|
35163
|
+
note: external_exports2.string().max(500).optional(),
|
|
35164
|
+
selectedCount: external_exports2.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
35165
|
+
version: safeVersion,
|
|
35166
|
+
contentVersion: safeVersion,
|
|
35167
|
+
status: ShareLinkStatusValidator,
|
|
35168
|
+
attachmentId: external_exports2.string().uuid().nullable().optional(),
|
|
35169
|
+
attachmentChunkCount: external_exports2.number().int().min(1).max(16).nullable().optional(),
|
|
35170
|
+
contentState: ShareContentStateValidator,
|
|
35171
|
+
createdAt: external_exports2.iso.datetime(),
|
|
35172
|
+
updatedAt: external_exports2.iso.datetime(),
|
|
35173
|
+
expiresAt: external_exports2.iso.datetime().nullable(),
|
|
35174
|
+
stoppedAt: external_exports2.iso.datetime().nullable(),
|
|
35175
|
+
lastViewedAt: external_exports2.iso.datetime().nullable(),
|
|
35176
|
+
viewCount: external_exports2.number().int().min(0).optional(),
|
|
35177
|
+
passcodeProtected: external_exports2.boolean(),
|
|
35178
|
+
notifyOnView: external_exports2.boolean(),
|
|
35179
|
+
minorPolicy: external_exports2.object({
|
|
35180
|
+
isMinor: external_exports2.boolean().nullable(),
|
|
35181
|
+
policyResolved: external_exports2.boolean(),
|
|
35182
|
+
defaultExpiryDays: external_exports2.union([external_exports2.literal(30), external_exports2.literal(365)]),
|
|
35183
|
+
viewCountingEnabled: external_exports2.boolean()
|
|
35184
|
+
}),
|
|
35185
|
+
/**
|
|
35186
|
+
* Guarded application/API URL for the content. Optional because owner APIs in
|
|
35187
|
+
* D1 have no public resolve/content endpoint yet; it must never be a
|
|
35188
|
+
* LearnCloud object URL or carry a fabricated decryption key.
|
|
35189
|
+
*/
|
|
35190
|
+
contentUrl: external_exports2.string().optional()
|
|
35191
|
+
});
|
|
35192
|
+
var clientRequestId = external_exports2.string().uuid();
|
|
35193
|
+
var ShareLinkAttachmentValidator = external_exports2.object({
|
|
35194
|
+
id: external_exports2.string().uuid(),
|
|
35195
|
+
chunkCount: external_exports2.number().int().min(1).max(16)
|
|
35196
|
+
}).strict();
|
|
35197
|
+
var attachmentChunkKey = {
|
|
35198
|
+
id: ShareLinkIdValidator,
|
|
35199
|
+
contentVersion: safeVersion,
|
|
35200
|
+
attachmentId: external_exports2.string().uuid(),
|
|
35201
|
+
chunkIndex: external_exports2.number().int().min(0).max(15)
|
|
35202
|
+
};
|
|
35203
|
+
var ShareLinkAttachmentChunkEnvelopeValidator = ShareEnvelopeValidator.refine(
|
|
35204
|
+
(value) => (decodedBase64UrlByteLength(value.ct) ?? Infinity) <= 256 * 1024 + SHARE_TAG_BYTES
|
|
35205
|
+
);
|
|
35206
|
+
var PutShareLinkAttachmentChunkInputValidator = external_exports2.object({
|
|
35207
|
+
...attachmentChunkKey,
|
|
35208
|
+
chunkCount: external_exports2.number().int().min(1).max(16),
|
|
35209
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
35210
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator
|
|
35211
|
+
}).strict().refine((value) => value.chunkIndex < value.chunkCount);
|
|
35212
|
+
var GetShareLinkAttachmentChunkInputValidator = external_exports2.object({
|
|
35213
|
+
...attachmentChunkKey,
|
|
35214
|
+
passcode: external_exports2.string().min(4).max(64).optional(),
|
|
35215
|
+
accessToken: external_exports2.string().min(1).max(2048).optional()
|
|
35216
|
+
}).strict();
|
|
35217
|
+
var ShareLinkAttachmentChunkOutputValidator = external_exports2.object({
|
|
35218
|
+
...attachmentChunkKey,
|
|
35219
|
+
envelope: ShareLinkAttachmentChunkEnvelopeValidator,
|
|
35220
|
+
accessToken: external_exports2.string().min(1).max(2048).optional()
|
|
35221
|
+
}).strict();
|
|
35222
|
+
var DeleteShareLinkAttachmentChunksInputValidator = external_exports2.object({
|
|
35223
|
+
id: ShareLinkIdValidator,
|
|
35224
|
+
contentVersion: safeVersion,
|
|
35225
|
+
attachmentId: external_exports2.string().uuid(),
|
|
35226
|
+
chunkCount: external_exports2.number().int().min(1).max(16)
|
|
35227
|
+
}).strict();
|
|
35228
|
+
var PutShareLinkAttachmentChunkOutputValidator = external_exports2.object({ ok: external_exports2.literal(true) }).strict();
|
|
35229
|
+
var DeleteShareLinkAttachmentChunksOutputValidator = external_exports2.object({ ok: external_exports2.boolean() }).strict();
|
|
35230
|
+
var CreateShareLinkInputValidator = external_exports2.object({
|
|
35231
|
+
id: ShareLinkIdValidator,
|
|
35232
|
+
clientRequestId,
|
|
35233
|
+
title: external_exports2.string().min(1).max(120),
|
|
35234
|
+
note: external_exports2.string().max(500).optional(),
|
|
35235
|
+
expiresAt: external_exports2.iso.datetime().nullable().optional(),
|
|
35236
|
+
passcode: external_exports2.string().min(8).max(64).optional(),
|
|
35237
|
+
notifyOnView: external_exports2.boolean().default(false),
|
|
35238
|
+
selectedCount: external_exports2.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
35239
|
+
contentVersion: external_exports2.literal(1),
|
|
35240
|
+
envelope: ShareEnvelopeValidator,
|
|
35241
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator,
|
|
35242
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
35243
|
+
}).strict();
|
|
35244
|
+
var UpdateShareLinkInputValidator = external_exports2.object({
|
|
35245
|
+
id: ShareLinkIdValidator,
|
|
35246
|
+
expectedVersion: safeVersion,
|
|
35247
|
+
clientRequestId,
|
|
35248
|
+
title: external_exports2.string().min(1).max(120).optional(),
|
|
35249
|
+
note: external_exports2.string().max(500).nullable().optional(),
|
|
35250
|
+
expiresAt: external_exports2.iso.datetime().nullable().optional(),
|
|
35251
|
+
/** Omitted preserves the current passcode, null removes it, and a string replaces it. */
|
|
35252
|
+
passcode: external_exports2.string().min(8).max(64).nullable().optional(),
|
|
35253
|
+
notifyOnView: external_exports2.boolean().optional(),
|
|
35254
|
+
contentVersion: safeVersion.optional(),
|
|
35255
|
+
selectedCount: external_exports2.number().int().min(1).max(MAX_SELECTED_CREDENTIALS).optional(),
|
|
35256
|
+
envelope: ShareEnvelopeValidator.optional(),
|
|
35257
|
+
ownerEncryptedRecovery: ShareOwnerRecoveryValidator.optional(),
|
|
35258
|
+
attachment: ShareLinkAttachmentValidator.optional()
|
|
35259
|
+
}).strict().superRefine((value, ctx) => {
|
|
35260
|
+
const provided = [
|
|
35261
|
+
value.contentVersion,
|
|
35262
|
+
value.selectedCount,
|
|
35263
|
+
value.envelope,
|
|
35264
|
+
value.ownerEncryptedRecovery
|
|
35265
|
+
].filter((field) => field !== void 0).length;
|
|
35266
|
+
if (provided !== 0 && provided !== 4) {
|
|
35267
|
+
ctx.addIssue({
|
|
35268
|
+
code: "custom",
|
|
35269
|
+
message: "content replacement requires contentVersion, selectedCount, envelope and ownerEncryptedRecovery together"
|
|
35270
|
+
});
|
|
35271
|
+
}
|
|
35272
|
+
if (value.attachment !== void 0 && provided !== 4) {
|
|
35273
|
+
ctx.addIssue({ code: "custom", message: "attachment requires a content replacement" });
|
|
35274
|
+
}
|
|
35275
|
+
});
|
|
35276
|
+
var ShareLinkIdInputValidator = external_exports2.object({ id: ShareLinkIdValidator }).strict();
|
|
35277
|
+
var ShareLinkOperationKeyInputValidator = external_exports2.object({ id: ShareLinkIdValidator, operationId: external_exports2.string().uuid() }).strict();
|
|
35278
|
+
var ShareLinkOwnerCommitOutputValidator = external_exports2.discriminatedUnion("status", [
|
|
35279
|
+
external_exports2.object({ status: external_exports2.literal("completed"), share: ShareLinkValidator }).strict(),
|
|
35280
|
+
external_exports2.object({
|
|
35281
|
+
status: external_exports2.literal("pending"),
|
|
35282
|
+
id: ShareLinkIdValidator,
|
|
35283
|
+
operationId: external_exports2.string().uuid()
|
|
35284
|
+
}).strict()
|
|
35285
|
+
]);
|
|
35286
|
+
var ShareLinkOwnerStatusOutputValidator = external_exports2.discriminatedUnion("status", [
|
|
35287
|
+
external_exports2.object({ status: external_exports2.literal("found"), share: ShareLinkValidator }).strict(),
|
|
35288
|
+
external_exports2.object({
|
|
35289
|
+
status: external_exports2.literal("pending"),
|
|
35290
|
+
id: ShareLinkIdValidator,
|
|
35291
|
+
operationId: external_exports2.string().uuid()
|
|
35292
|
+
}).strict(),
|
|
35293
|
+
external_exports2.object({ status: external_exports2.literal("not_found"), id: ShareLinkIdValidator }).strict()
|
|
35294
|
+
]);
|
|
35295
|
+
var ShareLinkOwnerRecoveryOutputValidator = external_exports2.object({ recovery: ShareOwnerRecoveryValidator }).strict();
|
|
35296
|
+
var ShareLinkOwnerContentOutputValidator = external_exports2.object({
|
|
35297
|
+
id: ShareLinkIdValidator,
|
|
35298
|
+
contentVersion: safeVersion,
|
|
35299
|
+
envelope: ShareEnvelopeValidator
|
|
35300
|
+
}).strict();
|
|
35301
|
+
var ResolveShareLinkInputValidator = external_exports2.object({
|
|
35302
|
+
id: ShareLinkIdValidator,
|
|
35303
|
+
/** Sent only in a POST body; it must never be placed in a share URL. */
|
|
35304
|
+
passcode: external_exports2.string().min(4).max(64).optional()
|
|
35305
|
+
}).strict();
|
|
35306
|
+
var ShareLinkPublicStateValidator = external_exports2.discriminatedUnion("state", [
|
|
35307
|
+
external_exports2.object({
|
|
35308
|
+
state: external_exports2.literal("passcode_required"),
|
|
35309
|
+
id: ShareLinkIdValidator
|
|
35310
|
+
}).strict(),
|
|
35311
|
+
external_exports2.object({ state: external_exports2.literal("try_later"), id: ShareLinkIdValidator }).strict(),
|
|
35312
|
+
external_exports2.object({
|
|
35313
|
+
state: external_exports2.literal("active"),
|
|
35314
|
+
id: ShareLinkIdValidator,
|
|
35315
|
+
title: external_exports2.string().max(120),
|
|
35316
|
+
note: external_exports2.string().max(500).optional(),
|
|
35317
|
+
selectedCount: external_exports2.number().int().min(1).max(MAX_SELECTED_CREDENTIALS),
|
|
35318
|
+
contentVersion: safeVersion,
|
|
35319
|
+
contentUrl: external_exports2.string(),
|
|
35320
|
+
sharer: external_exports2.object({
|
|
35321
|
+
displayName: external_exports2.string().max(120),
|
|
35322
|
+
avatar: external_exports2.string().max(2048).optional()
|
|
35323
|
+
}),
|
|
35324
|
+
createdAt: external_exports2.iso.datetime(),
|
|
35325
|
+
updatedAt: external_exports2.iso.datetime(),
|
|
35326
|
+
expiresAt: external_exports2.iso.datetime().nullable()
|
|
35327
|
+
}).strict(),
|
|
35328
|
+
external_exports2.object({
|
|
35329
|
+
state: external_exports2.literal("expired"),
|
|
35330
|
+
id: ShareLinkIdValidator,
|
|
35331
|
+
expiresAt: external_exports2.iso.datetime()
|
|
35332
|
+
}).strict(),
|
|
35333
|
+
external_exports2.object({
|
|
35334
|
+
state: external_exports2.literal("stopped"),
|
|
35335
|
+
id: ShareLinkIdValidator,
|
|
35336
|
+
stoppedAt: external_exports2.iso.datetime()
|
|
35337
|
+
}).strict(),
|
|
35338
|
+
external_exports2.object({ state: external_exports2.literal("not_found"), id: ShareLinkIdValidator }).strict()
|
|
35339
|
+
]);
|
|
35340
|
+
var ListShareLinksInputValidator = external_exports2.object({
|
|
35341
|
+
limit: external_exports2.number().int().min(1).max(50).default(25),
|
|
35342
|
+
cursor: external_exports2.string().max(512).optional()
|
|
35343
|
+
}).strict();
|
|
35344
|
+
var PaginatedShareLinksValidator = PaginationResponseValidator.extend({
|
|
35345
|
+
records: ShareLinkValidator.array()
|
|
35346
|
+
});
|
|
35347
|
+
var AcknowledgeViewInputValidator = external_exports2.object({
|
|
35348
|
+
receipt: external_exports2.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
|
|
35349
|
+
}).strict();
|
|
35350
|
+
var AcknowledgeViewOutputValidator = external_exports2.object({ ok: external_exports2.literal(true) }).strict();
|
|
35351
|
+
var SHARE_VIEW_RECEIPT_TTL_SECONDS = 10 * 60;
|
|
35352
|
+
var ShareLinkPublicContentViewValidator = external_exports2.object({
|
|
35353
|
+
id: ShareLinkIdValidator,
|
|
35354
|
+
contentVersion: safeVersion,
|
|
35355
|
+
envelope: ShareEnvelopeValidator,
|
|
35356
|
+
contentUrl: external_exports2.string(),
|
|
35357
|
+
receipt: external_exports2.string().min(22).max(128).regex(/^[A-Za-z0-9_-]+$/)
|
|
35358
|
+
}).strict();
|
|
34488
35359
|
}
|
|
34489
35360
|
});
|
|
34490
35361
|
var require_dist = __commonJS({
|
|
@@ -34823,6 +35694,20 @@ var optionalEnvironmentPort = external_exports.preprocess(
|
|
|
34823
35694
|
(value) => value === "" || value === void 0 ? void 0 : value,
|
|
34824
35695
|
environmentPort.optional()
|
|
34825
35696
|
);
|
|
35697
|
+
var DEFAULT_MAX_CANONICAL_BYTES = 2 * 1024 * 1024;
|
|
35698
|
+
var ShareContentCanonicalizationError = class extends Error {
|
|
35699
|
+
static {
|
|
35700
|
+
__name(this, "ShareContentCanonicalizationError");
|
|
35701
|
+
}
|
|
35702
|
+
constructor(message) {
|
|
35703
|
+
super(message);
|
|
35704
|
+
this.code = "UNSUPPORTED_REQUEST_VALUE";
|
|
35705
|
+
this.name = "ShareContentCanonicalizationError";
|
|
35706
|
+
}
|
|
35707
|
+
static {
|
|
35708
|
+
__name2(this, "ShareContentCanonicalizationError");
|
|
35709
|
+
}
|
|
35710
|
+
};
|
|
34826
35711
|
var RegExpTransformer = {
|
|
34827
35712
|
serialize(object2) {
|
|
34828
35713
|
return JSON.stringify(object2, (_key, value) => {
|