@learncard/network-brain-client 2.5.21 → 2.5.25
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/CHANGELOG.md +30 -0
- package/dist/brain-client.cjs.development.js +225 -11
- package/dist/brain-client.cjs.development.js.map +2 -2
- package/dist/brain-client.cjs.production.min.js +13 -13
- package/dist/brain-client.cjs.production.min.js.map +3 -3
- package/dist/brain-client.esm.js +140 -11
- package/dist/brain-client.esm.js.map +2 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/index.ts +27 -4
package/dist/brain-client.esm.js
CHANGED
|
@@ -14066,17 +14066,20 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14066
14066
|
AgeRatingValidator: /* @__PURE__ */ __name2(() => AgeRatingValidator, "AgeRatingValidator"),
|
|
14067
14067
|
AlignmentTargetTypeValidator: /* @__PURE__ */ __name2(() => AlignmentTargetTypeValidator, "AlignmentTargetTypeValidator"),
|
|
14068
14068
|
AlignmentValidator: /* @__PURE__ */ __name2(() => AlignmentValidator, "AlignmentValidator"),
|
|
14069
|
+
AllowConnectionRequestsEnum: /* @__PURE__ */ __name2(() => AllowConnectionRequestsEnum, "AllowConnectionRequestsEnum"),
|
|
14069
14070
|
AppBoostValidator: /* @__PURE__ */ __name2(() => AppBoostValidator, "AppBoostValidator"),
|
|
14070
14071
|
AppEventInputValidator: /* @__PURE__ */ __name2(() => AppEventInputValidator, "AppEventInputValidator"),
|
|
14071
14072
|
AppEventResponseValidator: /* @__PURE__ */ __name2(() => AppEventResponseValidator, "AppEventResponseValidator"),
|
|
14072
14073
|
AppEventValidator: /* @__PURE__ */ __name2(() => AppEventValidator, "AppEventValidator"),
|
|
14073
14074
|
AppListingStatusValidator: /* @__PURE__ */ __name2(() => AppListingStatusValidator, "AppListingStatusValidator"),
|
|
14074
14075
|
AppStoreListingCreateValidator: /* @__PURE__ */ __name2(() => AppStoreListingCreateValidator, "AppStoreListingCreateValidator"),
|
|
14076
|
+
AppStoreListingSubmitterValidator: /* @__PURE__ */ __name2(() => AppStoreListingSubmitterValidator, "AppStoreListingSubmitterValidator"),
|
|
14075
14077
|
AppStoreListingUpdateValidator: /* @__PURE__ */ __name2(() => AppStoreListingUpdateValidator, "AppStoreListingUpdateValidator"),
|
|
14076
14078
|
AppStoreListingValidator: /* @__PURE__ */ __name2(() => AppStoreListingValidator, "AppStoreListingValidator"),
|
|
14077
14079
|
AuthGrantQueryValidator: /* @__PURE__ */ __name2(() => AuthGrantQueryValidator, "AuthGrantQueryValidator"),
|
|
14078
14080
|
AuthGrantStatusValidator: /* @__PURE__ */ __name2(() => AuthGrantStatusValidator, "AuthGrantStatusValidator"),
|
|
14079
14081
|
AuthGrantValidator: /* @__PURE__ */ __name2(() => AuthGrantValidator, "AuthGrantValidator"),
|
|
14082
|
+
AuthSessionError: /* @__PURE__ */ __name2(() => AuthSessionError, "AuthSessionError"),
|
|
14080
14083
|
AutoBoostConfigValidator: /* @__PURE__ */ __name2(() => AutoBoostConfigValidator, "AutoBoostConfigValidator"),
|
|
14081
14084
|
BoostPermissionsQueryValidator: /* @__PURE__ */ __name2(() => BoostPermissionsQueryValidator, "BoostPermissionsQueryValidator"),
|
|
14082
14085
|
BoostPermissionsValidator: /* @__PURE__ */ __name2(() => BoostPermissionsValidator, "BoostPermissionsValidator"),
|
|
@@ -14084,6 +14087,8 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14084
14087
|
BoostRecipientValidator: /* @__PURE__ */ __name2(() => BoostRecipientValidator, "BoostRecipientValidator"),
|
|
14085
14088
|
BoostRecipientWithChildrenValidator: /* @__PURE__ */ __name2(() => BoostRecipientWithChildrenValidator, "BoostRecipientWithChildrenValidator"),
|
|
14086
14089
|
BoostValidator: /* @__PURE__ */ __name2(() => BoostValidator, "BoostValidator"),
|
|
14090
|
+
CheckCredentialEventValidator: /* @__PURE__ */ __name2(() => CheckCredentialEventValidator, "CheckCredentialEventValidator"),
|
|
14091
|
+
CheckIssuanceStatusEventValidator: /* @__PURE__ */ __name2(() => CheckIssuanceStatusEventValidator, "CheckIssuanceStatusEventValidator"),
|
|
14087
14092
|
ClaimHookQueryValidator: /* @__PURE__ */ __name2(() => ClaimHookQueryValidator, "ClaimHookQueryValidator"),
|
|
14088
14093
|
ClaimHookTypeValidator: /* @__PURE__ */ __name2(() => ClaimHookTypeValidator, "ClaimHookTypeValidator"),
|
|
14089
14094
|
ClaimHookValidator: /* @__PURE__ */ __name2(() => ClaimHookValidator, "ClaimHookValidator"),
|
|
@@ -14093,6 +14098,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14093
14098
|
ConsentFlowContractDataValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractDataValidator, "ConsentFlowContractDataValidator"),
|
|
14094
14099
|
ConsentFlowContractDetailsValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractDetailsValidator, "ConsentFlowContractDetailsValidator"),
|
|
14095
14100
|
ConsentFlowContractQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractQueryValidator, "ConsentFlowContractQueryValidator"),
|
|
14101
|
+
ConsentFlowContractRequestForProfileListValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractRequestForProfileListValidator, "ConsentFlowContractRequestForProfileListValidator"),
|
|
14102
|
+
ConsentFlowContractRequestForProfileValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractRequestForProfileValidator, "ConsentFlowContractRequestForProfileValidator"),
|
|
14103
|
+
ConsentFlowContractRequestReadStatusValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractRequestReadStatusValidator, "ConsentFlowContractRequestReadStatusValidator"),
|
|
14104
|
+
ConsentFlowContractRequestStatusValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractRequestStatusValidator, "ConsentFlowContractRequestStatusValidator"),
|
|
14096
14105
|
ConsentFlowContractValidator: /* @__PURE__ */ __name2(() => ConsentFlowContractValidator, "ConsentFlowContractValidator"),
|
|
14097
14106
|
ConsentFlowDataForDidQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataForDidQueryValidator, "ConsentFlowDataForDidQueryValidator"),
|
|
14098
14107
|
ConsentFlowDataQueryValidator: /* @__PURE__ */ __name2(() => ConsentFlowDataQueryValidator, "ConsentFlowDataQueryValidator"),
|
|
@@ -14125,6 +14134,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14125
14134
|
CredentialActivityValidator: /* @__PURE__ */ __name2(() => CredentialActivityValidator, "CredentialActivityValidator"),
|
|
14126
14135
|
CredentialActivityWithDetailsValidator: /* @__PURE__ */ __name2(() => CredentialActivityWithDetailsValidator, "CredentialActivityWithDetailsValidator"),
|
|
14127
14136
|
CredentialInfoValidator: /* @__PURE__ */ __name2(() => CredentialInfoValidator, "CredentialInfoValidator"),
|
|
14137
|
+
CredentialNameRefValidator: /* @__PURE__ */ __name2(() => CredentialNameRefValidator, "CredentialNameRefValidator"),
|
|
14128
14138
|
CredentialRecordValidator: /* @__PURE__ */ __name2(() => CredentialRecordValidator, "CredentialRecordValidator"),
|
|
14129
14139
|
CredentialSchemaValidator: /* @__PURE__ */ __name2(() => CredentialSchemaValidator, "CredentialSchemaValidator"),
|
|
14130
14140
|
CredentialStatusValidator: /* @__PURE__ */ __name2(() => CredentialStatusValidator, "CredentialStatusValidator"),
|
|
@@ -14146,6 +14156,7 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14146
14156
|
GetFullSkillTreeResultValidator: /* @__PURE__ */ __name2(() => GetFullSkillTreeResultValidator, "GetFullSkillTreeResultValidator"),
|
|
14147
14157
|
GetSkillPathInputValidator: /* @__PURE__ */ __name2(() => GetSkillPathInputValidator, "GetSkillPathInputValidator"),
|
|
14148
14158
|
GetSkillPathResultValidator: /* @__PURE__ */ __name2(() => GetSkillPathResultValidator, "GetSkillPathResultValidator"),
|
|
14159
|
+
GetTemplateRecipientsEventValidator: /* @__PURE__ */ __name2(() => GetTemplateRecipientsEventValidator, "GetTemplateRecipientsEventValidator"),
|
|
14149
14160
|
IdentifierEntryValidator: /* @__PURE__ */ __name2(() => IdentifierEntryValidator, "IdentifierEntryValidator"),
|
|
14150
14161
|
IdentifierTypeValidator: /* @__PURE__ */ __name2(() => IdentifierTypeValidator, "IdentifierTypeValidator"),
|
|
14151
14162
|
IdentityObjectValidator: /* @__PURE__ */ __name2(() => IdentityObjectValidator, "IdentityObjectValidator"),
|
|
@@ -14162,9 +14173,11 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14162
14173
|
JWKValidator: /* @__PURE__ */ __name2(() => JWKValidator, "JWKValidator"),
|
|
14163
14174
|
JWKWithPrivateKeyValidator: /* @__PURE__ */ __name2(() => JWKWithPrivateKeyValidator, "JWKWithPrivateKeyValidator"),
|
|
14164
14175
|
KnownAchievementTypeValidator: /* @__PURE__ */ __name2(() => KnownAchievementTypeValidator, "KnownAchievementTypeValidator"),
|
|
14176
|
+
LCNAuthedProfileValidator: /* @__PURE__ */ __name2(() => LCNAuthedProfileValidator, "LCNAuthedProfileValidator"),
|
|
14165
14177
|
LCNBoostClaimLinkOptionsValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkOptionsValidator, "LCNBoostClaimLinkOptionsValidator"),
|
|
14166
14178
|
LCNBoostClaimLinkSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNBoostClaimLinkSigningAuthorityValidator, "LCNBoostClaimLinkSigningAuthorityValidator"),
|
|
14167
14179
|
LCNBoostStatus: /* @__PURE__ */ __name2(() => LCNBoostStatus, "LCNBoostStatus"),
|
|
14180
|
+
LCNConnectionProfileValidator: /* @__PURE__ */ __name2(() => LCNConnectionProfileValidator, "LCNConnectionProfileValidator"),
|
|
14168
14181
|
LCNDomainOrOriginValidator: /* @__PURE__ */ __name2(() => LCNDomainOrOriginValidator, "LCNDomainOrOriginValidator"),
|
|
14169
14182
|
LCNInboxContactMethodValidator: /* @__PURE__ */ __name2(() => LCNInboxContactMethodValidator, "LCNInboxContactMethodValidator"),
|
|
14170
14183
|
LCNInboxStatusEnumValidator: /* @__PURE__ */ __name2(() => LCNInboxStatusEnumValidator, "LCNInboxStatusEnumValidator"),
|
|
@@ -14184,8 +14197,10 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14184
14197
|
LCNProfileManagerValidator: /* @__PURE__ */ __name2(() => LCNProfileManagerValidator, "LCNProfileManagerValidator"),
|
|
14185
14198
|
LCNProfileQueryValidator: /* @__PURE__ */ __name2(() => LCNProfileQueryValidator, "LCNProfileQueryValidator"),
|
|
14186
14199
|
LCNProfileValidator: /* @__PURE__ */ __name2(() => LCNProfileValidator, "LCNProfileValidator"),
|
|
14200
|
+
LCNPublicProfileValidator: /* @__PURE__ */ __name2(() => LCNPublicProfileValidator, "LCNPublicProfileValidator"),
|
|
14187
14201
|
LCNSigningAuthorityForUserValidator: /* @__PURE__ */ __name2(() => LCNSigningAuthorityForUserValidator, "LCNSigningAuthorityForUserValidator"),
|
|
14188
14202
|
LCNSigningAuthorityValidator: /* @__PURE__ */ __name2(() => LCNSigningAuthorityValidator, "LCNSigningAuthorityValidator"),
|
|
14203
|
+
LCNVisibleProfileValidator: /* @__PURE__ */ __name2(() => LCNVisibleProfileValidator, "LCNVisibleProfileValidator"),
|
|
14189
14204
|
LaunchTypeValidator: /* @__PURE__ */ __name2(() => LaunchTypeValidator, "LaunchTypeValidator"),
|
|
14190
14205
|
LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name2(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
|
|
14191
14206
|
PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name2(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
|
|
@@ -14210,9 +14225,11 @@ var require_types_cjs_development = __commonJS2({
|
|
|
14210
14225
|
PaginatedLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedLCNProfilesValidator, "PaginatedLCNProfilesValidator"),
|
|
14211
14226
|
PaginatedSkillFrameworksValidator: /* @__PURE__ */ __name2(() => PaginatedSkillFrameworksValidator, "PaginatedSkillFrameworksValidator"),
|
|
14212
14227
|
PaginatedSkillTreeValidator: /* @__PURE__ */ __name2(() => PaginatedSkillTreeValidator, "PaginatedSkillTreeValidator"),
|
|
14228
|
+
PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
|
|
14213
14229
|
PaginationOptionsValidator: /* @__PURE__ */ __name2(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
|
|
14214
14230
|
PaginationResponseValidator: /* @__PURE__ */ __name2(() => PaginationResponseValidator, "PaginationResponseValidator"),
|
|
14215
14231
|
ProfileValidator: /* @__PURE__ */ __name2(() => ProfileValidator, "ProfileValidator"),
|
|
14232
|
+
ProfileVisibilityEnum: /* @__PURE__ */ __name2(() => ProfileVisibilityEnum, "ProfileVisibilityEnum"),
|
|
14216
14233
|
PromotionLevelValidator: /* @__PURE__ */ __name2(() => PromotionLevelValidator, "PromotionLevelValidator"),
|
|
14217
14234
|
ProofValidator: /* @__PURE__ */ __name2(() => ProofValidator, "ProofValidator"),
|
|
14218
14235
|
RefreshServiceValidator: /* @__PURE__ */ __name2(() => RefreshServiceValidator, "RefreshServiceValidator"),
|
|
@@ -28535,6 +28552,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28535
28552
|
idBackgroundColor: external_exports2.string().optional(),
|
|
28536
28553
|
repeatIdBackgroundImage: external_exports2.boolean().optional()
|
|
28537
28554
|
});
|
|
28555
|
+
var ProfileVisibilityEnum = external_exports2.enum(["public", "connections_only", "private"]);
|
|
28556
|
+
var AllowConnectionRequestsEnum = external_exports2.enum(["anyone", "invite_only"]);
|
|
28538
28557
|
var LCNProfileValidator = external_exports2.object({
|
|
28539
28558
|
profileId: external_exports2.string().min(3).max(40).describe("Unique, URL-safe identifier for the profile."),
|
|
28540
28559
|
displayName: external_exports2.string().default("").describe("Human-readable display name for the profile."),
|
|
@@ -28542,6 +28561,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28542
28561
|
bio: external_exports2.string().default("").describe("Longer bio for the profile."),
|
|
28543
28562
|
did: external_exports2.string().describe("Decentralized Identifier for the profile. (auto-assigned)"),
|
|
28544
28563
|
isPrivate: external_exports2.boolean().optional().describe("Whether the profile is private or not and shows up in search results."),
|
|
28564
|
+
profileVisibility: ProfileVisibilityEnum.default("public").optional().describe("Profile visibility: 'public', 'connections_only', or 'private'."),
|
|
28565
|
+
showEmail: external_exports2.boolean().default(false).optional().describe("Whether to show email to connections."),
|
|
28566
|
+
allowConnectionRequests: AllowConnectionRequestsEnum.default("anyone").optional().describe("Who can send connection requests: 'anyone' or 'invite_only'."),
|
|
28545
28567
|
email: external_exports2.string().optional().describe("Contact email address for the profile. (deprecated)"),
|
|
28546
28568
|
image: external_exports2.string().optional().describe("Profile image URL for the profile."),
|
|
28547
28569
|
heroImage: external_exports2.string().optional().describe("Hero image URL for the profile."),
|
|
@@ -28556,6 +28578,32 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28556
28578
|
country: external_exports2.string().optional().describe("Country for the profile."),
|
|
28557
28579
|
approved: external_exports2.boolean().optional().describe("Approval status for the profile.")
|
|
28558
28580
|
});
|
|
28581
|
+
var LCNPublicProfileValidator = LCNProfileValidator.pick({
|
|
28582
|
+
profileId: true,
|
|
28583
|
+
displayName: true,
|
|
28584
|
+
shortBio: true,
|
|
28585
|
+
image: true,
|
|
28586
|
+
heroImage: true,
|
|
28587
|
+
type: true,
|
|
28588
|
+
isServiceProfile: true,
|
|
28589
|
+
display: true
|
|
28590
|
+
});
|
|
28591
|
+
var LCNAuthedProfileValidator = LCNPublicProfileValidator.extend({
|
|
28592
|
+
bio: LCNProfileValidator.shape.bio,
|
|
28593
|
+
websiteLink: LCNProfileValidator.shape.websiteLink,
|
|
28594
|
+
role: LCNProfileValidator.shape.role,
|
|
28595
|
+
highlightedCredentials: LCNProfileValidator.shape.highlightedCredentials,
|
|
28596
|
+
did: LCNProfileValidator.shape.did
|
|
28597
|
+
});
|
|
28598
|
+
var LCNConnectionProfileValidator = LCNAuthedProfileValidator.extend({
|
|
28599
|
+
email: LCNProfileValidator.shape.email
|
|
28600
|
+
});
|
|
28601
|
+
var LCNVisibleProfileValidator = external_exports2.union([
|
|
28602
|
+
LCNConnectionProfileValidator.strict(),
|
|
28603
|
+
LCNAuthedProfileValidator.strict(),
|
|
28604
|
+
LCNPublicProfileValidator.strict(),
|
|
28605
|
+
LCNProfileValidator
|
|
28606
|
+
]);
|
|
28559
28607
|
var LCNProfileQueryValidator = external_exports2.object({
|
|
28560
28608
|
profileId: StringQuery,
|
|
28561
28609
|
displayName: StringQuery,
|
|
@@ -28569,6 +28617,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28569
28617
|
var PaginatedLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
28570
28618
|
records: LCNProfileValidator.array()
|
|
28571
28619
|
});
|
|
28620
|
+
var PaginatedVisibleLCNProfilesValidator = PaginationResponseValidator.extend({
|
|
28621
|
+
records: LCNVisibleProfileValidator.array()
|
|
28622
|
+
});
|
|
28572
28623
|
var LCNProfileConnectionStatusEnum = external_exports2.enum([
|
|
28573
28624
|
"CONNECTED",
|
|
28574
28625
|
"PENDING_REQUEST_SENT",
|
|
@@ -28702,7 +28753,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28702
28753
|
records: BoostValidator.array()
|
|
28703
28754
|
});
|
|
28704
28755
|
var BoostRecipientValidator = external_exports2.object({
|
|
28705
|
-
to:
|
|
28756
|
+
to: LCNVisibleProfileValidator,
|
|
28706
28757
|
from: external_exports2.string(),
|
|
28707
28758
|
received: external_exports2.string().optional(),
|
|
28708
28759
|
uri: external_exports2.string().optional()
|
|
@@ -28711,7 +28762,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28711
28762
|
records: BoostRecipientValidator.array()
|
|
28712
28763
|
});
|
|
28713
28764
|
var BoostRecipientWithChildrenValidator = external_exports2.object({
|
|
28714
|
-
to:
|
|
28765
|
+
to: LCNVisibleProfileValidator,
|
|
28715
28766
|
from: external_exports2.string(),
|
|
28716
28767
|
received: external_exports2.string().optional(),
|
|
28717
28768
|
boostUris: external_exports2.array(external_exports2.string()),
|
|
@@ -28855,6 +28906,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28855
28906
|
autoBoosts: external_exports2.string().array().optional(),
|
|
28856
28907
|
writers: external_exports2.array(LCNProfileValidator).optional()
|
|
28857
28908
|
});
|
|
28909
|
+
var ConsentFlowContractRequestStatusValidator = external_exports2.enum(["pending", "accepted", "denied"]).nullable();
|
|
28910
|
+
var ConsentFlowContractRequestReadStatusValidator = external_exports2.enum(["unseen", "seen"]).nullable();
|
|
28911
|
+
var ConsentFlowContractRequestForProfileValidator = external_exports2.object({
|
|
28912
|
+
profile: LCNProfileValidator,
|
|
28913
|
+
status: ConsentFlowContractRequestStatusValidator,
|
|
28914
|
+
readStatus: ConsentFlowContractRequestReadStatusValidator.optional()
|
|
28915
|
+
});
|
|
28916
|
+
var ConsentFlowContractRequestForProfileListValidator = external_exports2.array(
|
|
28917
|
+
ConsentFlowContractRequestForProfileValidator
|
|
28918
|
+
);
|
|
28858
28919
|
var PaginatedConsentFlowContractsValidator = PaginationResponseValidator.extend({
|
|
28859
28920
|
records: ConsentFlowContractDetailsValidator.omit({ owner: true }).array()
|
|
28860
28921
|
});
|
|
@@ -29015,7 +29076,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29015
29076
|
"PROFILE_PARENT_APPROVED",
|
|
29016
29077
|
"APP_LISTING_SUBMITTED",
|
|
29017
29078
|
"APP_LISTING_APPROVED",
|
|
29018
|
-
"APP_LISTING_REJECTED"
|
|
29079
|
+
"APP_LISTING_REJECTED",
|
|
29080
|
+
"APP_LISTING_WITHDRAWN",
|
|
29081
|
+
"DEVICE_LINK_REQUEST"
|
|
29019
29082
|
]);
|
|
29020
29083
|
var LCNNotificationMessageValidator = external_exports2.object({
|
|
29021
29084
|
title: external_exports2.string().optional(),
|
|
@@ -29154,6 +29217,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29154
29217
|
webhookUrl: external_exports2.string().optional(),
|
|
29155
29218
|
boostUri: external_exports2.string().optional(),
|
|
29156
29219
|
activityId: external_exports2.string().optional(),
|
|
29220
|
+
integrationId: external_exports2.string().optional(),
|
|
29157
29221
|
signingAuthority: external_exports2.object({
|
|
29158
29222
|
endpoint: external_exports2.string().optional(),
|
|
29159
29223
|
name: external_exports2.string().optional()
|
|
@@ -29255,8 +29319,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29255
29319
|
claimUrl: external_exports2.string().url().optional(),
|
|
29256
29320
|
recipientDid: external_exports2.string().optional()
|
|
29257
29321
|
});
|
|
29322
|
+
var CredentialNameRefValidator = external_exports2.object({ name: external_exports2.string() }).passthrough();
|
|
29258
29323
|
var ClaimInboxCredentialValidator = external_exports2.object({
|
|
29259
|
-
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).describe("The credential to issue."),
|
|
29324
|
+
credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
|
|
29260
29325
|
configuration: external_exports2.object({
|
|
29261
29326
|
publishableKey: external_exports2.string(),
|
|
29262
29327
|
signingAuthorityName: external_exports2.string().optional(),
|
|
@@ -29540,6 +29605,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29540
29605
|
"DEMOTED"
|
|
29541
29606
|
]);
|
|
29542
29607
|
var AgeRatingValidator = external_exports2.enum(["4+", "9+", "12+", "17+"]);
|
|
29608
|
+
var AppStoreListingSubmitterValidator = external_exports2.object({
|
|
29609
|
+
profileId: external_exports2.string(),
|
|
29610
|
+
displayName: external_exports2.string(),
|
|
29611
|
+
email: external_exports2.string().optional()
|
|
29612
|
+
});
|
|
29543
29613
|
var AppStoreListingValidator = external_exports2.object({
|
|
29544
29614
|
listing_id: external_exports2.string(),
|
|
29545
29615
|
slug: external_exports2.string().optional(),
|
|
@@ -29561,7 +29631,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29561
29631
|
screenshots: external_exports2.array(external_exports2.string()).optional(),
|
|
29562
29632
|
hero_background_color: external_exports2.string().optional(),
|
|
29563
29633
|
min_age: external_exports2.number().int().min(0).max(18).optional(),
|
|
29564
|
-
age_rating: AgeRatingValidator.optional()
|
|
29634
|
+
age_rating: AgeRatingValidator.optional(),
|
|
29635
|
+
submitted_at: external_exports2.string().optional(),
|
|
29636
|
+
submitter: AppStoreListingSubmitterValidator.optional(),
|
|
29637
|
+
contact_email: external_exports2.string().email().optional()
|
|
29565
29638
|
});
|
|
29566
29639
|
var AppStoreListingCreateValidator = AppStoreListingValidator.omit({
|
|
29567
29640
|
listing_id: true,
|
|
@@ -29589,9 +29662,39 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29589
29662
|
var SendCredentialEventValidator = external_exports2.object({
|
|
29590
29663
|
type: external_exports2.literal("send-credential"),
|
|
29591
29664
|
templateAlias: external_exports2.string(),
|
|
29592
|
-
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional()
|
|
29665
|
+
templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
|
|
29666
|
+
preventDuplicateClaim: external_exports2.boolean().optional()
|
|
29667
|
+
});
|
|
29668
|
+
var CheckCredentialEventValidator = external_exports2.object({
|
|
29669
|
+
type: external_exports2.literal("check-credential"),
|
|
29670
|
+
templateAlias: external_exports2.string().optional(),
|
|
29671
|
+
boostUri: external_exports2.string().optional()
|
|
29672
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
29673
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
29674
|
+
});
|
|
29675
|
+
var CheckIssuanceStatusEventValidator = external_exports2.object({
|
|
29676
|
+
type: external_exports2.literal("check-issuance-status"),
|
|
29677
|
+
templateAlias: external_exports2.string().optional(),
|
|
29678
|
+
boostUri: external_exports2.string().optional(),
|
|
29679
|
+
recipient: external_exports2.string()
|
|
29680
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
29681
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
29593
29682
|
});
|
|
29594
|
-
var
|
|
29683
|
+
var GetTemplateRecipientsEventValidator = external_exports2.object({
|
|
29684
|
+
type: external_exports2.literal("get-template-recipients"),
|
|
29685
|
+
templateAlias: external_exports2.string().optional(),
|
|
29686
|
+
boostUri: external_exports2.string().optional(),
|
|
29687
|
+
limit: external_exports2.number().optional(),
|
|
29688
|
+
cursor: external_exports2.string().optional()
|
|
29689
|
+
}).refine((input) => Boolean(input.templateAlias) !== Boolean(input.boostUri), {
|
|
29690
|
+
message: "Exactly one of templateAlias or boostUri is required"
|
|
29691
|
+
});
|
|
29692
|
+
var AppEventValidator = external_exports2.discriminatedUnion("type", [
|
|
29693
|
+
SendCredentialEventValidator,
|
|
29694
|
+
CheckCredentialEventValidator,
|
|
29695
|
+
CheckIssuanceStatusEventValidator,
|
|
29696
|
+
GetTemplateRecipientsEventValidator
|
|
29697
|
+
]);
|
|
29595
29698
|
var AppEventInputValidator = external_exports2.object({
|
|
29596
29699
|
listingId: external_exports2.string(),
|
|
29597
29700
|
event: AppEventValidator
|
|
@@ -29654,6 +29757,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29654
29757
|
failed: external_exports2.number(),
|
|
29655
29758
|
claimRate: external_exports2.number()
|
|
29656
29759
|
});
|
|
29760
|
+
var AuthSessionError = class extends Error {
|
|
29761
|
+
static {
|
|
29762
|
+
__name(this, "AuthSessionError");
|
|
29763
|
+
}
|
|
29764
|
+
static {
|
|
29765
|
+
__name2(this, "AuthSessionError");
|
|
29766
|
+
}
|
|
29767
|
+
constructor(message, reason) {
|
|
29768
|
+
super(message);
|
|
29769
|
+
this.reason = reason;
|
|
29770
|
+
this.name = "AuthSessionError";
|
|
29771
|
+
}
|
|
29772
|
+
static {
|
|
29773
|
+
__name22(this, "AuthSessionError");
|
|
29774
|
+
}
|
|
29775
|
+
};
|
|
29657
29776
|
}
|
|
29658
29777
|
});
|
|
29659
29778
|
var require_dist = __commonJS2({
|
|
@@ -31653,7 +31772,7 @@ var callbackLink = /* @__PURE__ */ __name((callback) => {
|
|
|
31653
31772
|
}, "callbackLink");
|
|
31654
31773
|
|
|
31655
31774
|
// src/index.ts
|
|
31656
|
-
var getClient = /* @__PURE__ */ __name(async (url2, didAuthFunction) => {
|
|
31775
|
+
var getClient = /* @__PURE__ */ __name(async (url2, didAuthFunction, guardianApprovalGetter) => {
|
|
31657
31776
|
let challenges = [];
|
|
31658
31777
|
const challengeRequester = createTRPCClient({
|
|
31659
31778
|
links: [
|
|
@@ -31684,7 +31803,11 @@ var getClient = /* @__PURE__ */ __name(async (url2, didAuthFunction) => {
|
|
|
31684
31803
|
url: url2,
|
|
31685
31804
|
headers: /* @__PURE__ */ __name(async () => {
|
|
31686
31805
|
if (challenges.length === 0) challenges.push(...await getChallenges());
|
|
31687
|
-
|
|
31806
|
+
const guardianApproval = guardianApprovalGetter ? await guardianApprovalGetter() : void 0;
|
|
31807
|
+
return {
|
|
31808
|
+
Authorization: `Bearer ${await didAuthFunction(challenges.pop())}`,
|
|
31809
|
+
...guardianApproval ? { "x-guardian-approval": guardianApproval } : {}
|
|
31810
|
+
};
|
|
31688
31811
|
}, "headers"),
|
|
31689
31812
|
transformer: {
|
|
31690
31813
|
input: RegExpTransformer,
|
|
@@ -31695,14 +31818,20 @@ var getClient = /* @__PURE__ */ __name(async (url2, didAuthFunction) => {
|
|
|
31695
31818
|
});
|
|
31696
31819
|
return trpc;
|
|
31697
31820
|
}, "getClient");
|
|
31698
|
-
var getApiTokenClient = /* @__PURE__ */ __name(async (url2, apiToken) => {
|
|
31821
|
+
var getApiTokenClient = /* @__PURE__ */ __name(async (url2, apiToken, guardianApprovalGetter) => {
|
|
31699
31822
|
const trpc = createTRPCClient({
|
|
31700
31823
|
links: [
|
|
31701
31824
|
httpBatchLink({
|
|
31702
31825
|
methodOverride: "POST",
|
|
31703
31826
|
url: url2,
|
|
31704
31827
|
maxURLLength: 3072,
|
|
31705
|
-
headers:
|
|
31828
|
+
headers: /* @__PURE__ */ __name(async () => {
|
|
31829
|
+
const guardianApproval = guardianApprovalGetter ? await guardianApprovalGetter() : void 0;
|
|
31830
|
+
return {
|
|
31831
|
+
Authorization: `Bearer ${apiToken}`,
|
|
31832
|
+
...guardianApproval ? { "x-guardian-approval": guardianApproval } : {}
|
|
31833
|
+
};
|
|
31834
|
+
}, "headers"),
|
|
31706
31835
|
transformer: {
|
|
31707
31836
|
input: RegExpTransformer,
|
|
31708
31837
|
output: { serialize: /* @__PURE__ */ __name((o) => o, "serialize"), deserialize: /* @__PURE__ */ __name((o) => o, "deserialize") }
|