@learncard/network-brain-client 2.5.56 → 2.5.57

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.
@@ -15954,6 +15954,7 @@ var require_types_cjs_development = __commonJS({
15954
15954
  var __toCommonJS = /* @__PURE__ */ __name2((mod) => __copyProps22(__defProp22({}, "__esModule", { value: true }), mod), "__toCommonJS");
15955
15955
  var index_exports = {};
15956
15956
  __export22(index_exports, {
15957
+ ACT_AS_HEADER: /* @__PURE__ */ __name2(() => ACT_AS_HEADER, "ACT_AS_HEADER"),
15957
15958
  AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX: /* @__PURE__ */ __name2(() => AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX, "AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX"),
15958
15959
  AchievementCredentialValidator: /* @__PURE__ */ __name2(() => AchievementCredentialValidator, "AchievementCredentialValidator"),
15959
15960
  AchievementCriteriaValidator: /* @__PURE__ */ __name2(() => AchievementCriteriaValidator, "AchievementCriteriaValidator"),
@@ -16093,10 +16094,18 @@ var require_types_cjs_development = __commonJS({
16093
16094
  IdentifierTypeValidator: /* @__PURE__ */ __name2(() => IdentifierTypeValidator, "IdentifierTypeValidator"),
16094
16095
  IdentityObjectValidator: /* @__PURE__ */ __name2(() => IdentityObjectValidator, "IdentityObjectValidator"),
16095
16096
  ImageValidator: /* @__PURE__ */ __name2(() => ImageValidator, "ImageValidator"),
16097
+ InboxBatchErrorReasonValidator: /* @__PURE__ */ __name2(() => InboxBatchErrorReasonValidator, "InboxBatchErrorReasonValidator"),
16098
+ InboxBatchReceiptValidator: /* @__PURE__ */ __name2(() => InboxBatchReceiptValidator, "InboxBatchReceiptValidator"),
16099
+ InboxBatchStatusValidator: /* @__PURE__ */ __name2(() => InboxBatchStatusValidator, "InboxBatchStatusValidator"),
16096
16100
  InboxCredentialQueryValidator: /* @__PURE__ */ __name2(() => InboxCredentialQueryValidator, "InboxCredentialQueryValidator"),
16101
+ InboxCredentialRefreshReceiptValidator: /* @__PURE__ */ __name2(() => InboxCredentialRefreshReceiptValidator, "InboxCredentialRefreshReceiptValidator"),
16097
16102
  InboxCredentialValidator: /* @__PURE__ */ __name2(() => InboxCredentialValidator, "InboxCredentialValidator"),
16098
16103
  IncrementCounterEventValidator: /* @__PURE__ */ __name2(() => IncrementCounterEventValidator, "IncrementCounterEventValidator"),
16099
16104
  InstalledAppValidator: /* @__PURE__ */ __name2(() => InstalledAppValidator, "InstalledAppValidator"),
16105
+ IssueInboxCredentialBatchItemResultValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialBatchItemResultValidator, "IssueInboxCredentialBatchItemResultValidator"),
16106
+ IssueInboxCredentialBatchItemValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialBatchItemValidator, "IssueInboxCredentialBatchItemValidator"),
16107
+ IssueInboxCredentialBatchResponseValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialBatchResponseValidator, "IssueInboxCredentialBatchResponseValidator"),
16108
+ IssueInboxCredentialBatchValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialBatchValidator, "IssueInboxCredentialBatchValidator"),
16100
16109
  IssueInboxCredentialResponseValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialResponseValidator, "IssueInboxCredentialResponseValidator"),
16101
16110
  IssueInboxCredentialValidator: /* @__PURE__ */ __name2(() => IssueInboxCredentialValidator, "IssueInboxCredentialValidator"),
16102
16111
  IssueInboxSigningAuthorityValidator: /* @__PURE__ */ __name2(() => IssueInboxSigningAuthorityValidator, "IssueInboxSigningAuthorityValidator"),
@@ -16145,7 +16154,8 @@ var require_types_cjs_development = __commonJS({
16145
16154
  LaunchTypeValidator: /* @__PURE__ */ __name2(() => LaunchTypeValidator, "LaunchTypeValidator"),
16146
16155
  LearnCardRefreshAuthorizationValidator: /* @__PURE__ */ __name2(() => LearnCardRefreshAuthorizationValidator, "LearnCardRefreshAuthorizationValidator"),
16147
16156
  LinkProviderFrameworkInputValidator: /* @__PURE__ */ __name2(() => LinkProviderFrameworkInputValidator, "LinkProviderFrameworkInputValidator"),
16148
- ManagedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshServiceValidator, "ManagedCredentialRefreshServiceValidator"),
16157
+ ManagedCredentialRefreshReceiptValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshReceiptValidator, "ManagedCredentialRefreshReceiptValidator"),
16158
+ ManagedCredentialRefreshServiceValidator: /* @__PURE__ */ __name2(() => ManagedCredentialRefreshServiceValidator2, "ManagedCredentialRefreshServiceValidator"),
16149
16159
  PaginatedAppStoreListingsValidator: /* @__PURE__ */ __name2(() => PaginatedAppStoreListingsValidator, "PaginatedAppStoreListingsValidator"),
16150
16160
  PaginatedBoostRecipientsValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsValidator, "PaginatedBoostRecipientsValidator"),
16151
16161
  PaginatedBoostRecipientsWithChildrenValidator: /* @__PURE__ */ __name2(() => PaginatedBoostRecipientsWithChildrenValidator, "PaginatedBoostRecipientsWithChildrenValidator"),
@@ -16171,6 +16181,8 @@ var require_types_cjs_development = __commonJS({
16171
16181
  PaginatedVisibleLCNProfilesValidator: /* @__PURE__ */ __name2(() => PaginatedVisibleLCNProfilesValidator, "PaginatedVisibleLCNProfilesValidator"),
16172
16182
  PaginationOptionsValidator: /* @__PURE__ */ __name2(() => PaginationOptionsValidator, "PaginationOptionsValidator"),
16173
16183
  PaginationResponseValidator: /* @__PURE__ */ __name2(() => PaginationResponseValidator, "PaginationResponseValidator"),
16184
+ PrepareRefreshableSendInputValidator: /* @__PURE__ */ __name2(() => PrepareRefreshableSendInputValidator, "PrepareRefreshableSendInputValidator"),
16185
+ PrepareRefreshableSendResultValidator: /* @__PURE__ */ __name2(() => PrepareRefreshableSendResultValidator, "PrepareRefreshableSendResultValidator"),
16174
16186
  ProfileValidator: /* @__PURE__ */ __name2(() => ProfileValidator, "ProfileValidator"),
16175
16187
  ProfileVisibilityEnum: /* @__PURE__ */ __name2(() => ProfileVisibilityEnum, "ProfileVisibilityEnum"),
16176
16188
  PromotionLevelValidator: /* @__PURE__ */ __name2(() => PromotionLevelValidator, "PromotionLevelValidator"),
@@ -16196,6 +16208,7 @@ var require_types_cjs_development = __commonJS({
16196
16208
  SendAiSessionCredentialEventValidator: /* @__PURE__ */ __name2(() => SendAiSessionCredentialEventValidator, "SendAiSessionCredentialEventValidator"),
16197
16209
  SendBoostInputValidator: /* @__PURE__ */ __name2(() => SendBoostInputValidator, "SendBoostInputValidator"),
16198
16210
  SendBoostResponseValidator: /* @__PURE__ */ __name2(() => SendBoostResponseValidator, "SendBoostResponseValidator"),
16211
+ SendBoostTemplateValidator: /* @__PURE__ */ __name2(() => SendBoostTemplateValidator, "SendBoostTemplateValidator"),
16199
16212
  SendBrandingOptionsValidator: /* @__PURE__ */ __name2(() => SendBrandingOptionsValidator, "SendBrandingOptionsValidator"),
16200
16213
  SendCredentialEventValidator: /* @__PURE__ */ __name2(() => SendCredentialEventValidator, "SendCredentialEventValidator"),
16201
16214
  SendInboxResponseValidator: /* @__PURE__ */ __name2(() => SendInboxResponseValidator, "SendInboxResponseValidator"),
@@ -16938,7 +16951,7 @@ var require_types_cjs_development = __commonJS({
16938
16951
  getSizableOrigin: /* @__PURE__ */ __name2(() => getSizableOrigin2, "getSizableOrigin"),
16939
16952
  hexToUint8Array: /* @__PURE__ */ __name2(() => hexToUint8Array2, "hexToUint8Array"),
16940
16953
  isObject: /* @__PURE__ */ __name2(() => isObject3, "isObject"),
16941
- isPlainObject: /* @__PURE__ */ __name2(() => isPlainObject3, "isPlainObject"),
16954
+ isPlainObject: /* @__PURE__ */ __name2(() => isPlainObject22, "isPlainObject"),
16942
16955
  issue: /* @__PURE__ */ __name2(() => issue2, "issue"),
16943
16956
  joinValues: /* @__PURE__ */ __name2(() => joinValues2, "joinValues"),
16944
16957
  jsonStringifyReplacer: /* @__PURE__ */ __name2(() => jsonStringifyReplacer2, "jsonStringifyReplacer"),
@@ -17187,7 +17200,7 @@ var require_types_cjs_development = __commonJS({
17187
17200
  return false;
17188
17201
  }
17189
17202
  });
17190
- function isPlainObject3(o) {
17203
+ function isPlainObject22(o) {
17191
17204
  if (isObject3(o) === false)
17192
17205
  return false;
17193
17206
  const ctor = o.constructor;
@@ -17203,11 +17216,11 @@ var require_types_cjs_development = __commonJS({
17203
17216
  }
17204
17217
  return true;
17205
17218
  }
17206
- __name(isPlainObject3, "isPlainObject");
17207
- __name2(isPlainObject3, "isPlainObject");
17208
- __name22(isPlainObject3, "isPlainObject");
17219
+ __name(isPlainObject22, "isPlainObject2");
17220
+ __name2(isPlainObject22, "isPlainObject");
17221
+ __name22(isPlainObject22, "isPlainObject");
17209
17222
  function shallowClone2(o) {
17210
- if (isPlainObject3(o))
17223
+ if (isPlainObject22(o))
17211
17224
  return { ...o };
17212
17225
  if (Array.isArray(o))
17213
17226
  return [...o];
@@ -17441,7 +17454,7 @@ var require_types_cjs_development = __commonJS({
17441
17454
  __name2(omit2, "omit");
17442
17455
  __name22(omit2, "omit");
17443
17456
  function extend2(schema, shape) {
17444
- if (!isPlainObject3(shape)) {
17457
+ if (!isPlainObject22(shape)) {
17445
17458
  throw new Error("Invalid input to extend: expected a plain object");
17446
17459
  }
17447
17460
  const checks = schema._zod.def.checks;
@@ -17467,7 +17480,7 @@ var require_types_cjs_development = __commonJS({
17467
17480
  __name2(extend2, "extend");
17468
17481
  __name22(extend2, "extend");
17469
17482
  function safeExtend2(schema, shape) {
17470
- if (!isPlainObject3(shape)) {
17483
+ if (!isPlainObject22(shape)) {
17471
17484
  throw new Error("Invalid input to safeExtend: expected a plain object");
17472
17485
  }
17473
17486
  const def = mergeDefs2(schema._zod.def, {
@@ -19941,7 +19954,7 @@ var require_types_cjs_development = __commonJS({
19941
19954
  if (a instanceof Date && b instanceof Date && +a === +b) {
19942
19955
  return { valid: true, data: a };
19943
19956
  }
19944
- if (isPlainObject3(a) && isPlainObject3(b)) {
19957
+ if (isPlainObject22(a) && isPlainObject22(b)) {
19945
19958
  const bKeys = Object.keys(b);
19946
19959
  const sharedKeys = Object.keys(a).filter((key) => bKeys.indexOf(key) !== -1);
19947
19960
  const newObj = { ...a, ...b };
@@ -20142,7 +20155,7 @@ var require_types_cjs_development = __commonJS({
20142
20155
  $ZodType2.init(inst, def);
20143
20156
  inst._zod.parse = (payload, ctx) => {
20144
20157
  const input = payload.value;
20145
- if (!isPlainObject3(input)) {
20158
+ if (!isPlainObject22(input)) {
20146
20159
  payload.issues.push({
20147
20160
  expected: "record",
20148
20161
  code: "invalid_type",
@@ -32572,6 +32585,204 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32572
32585
  $or: BaseStringQuery.array()
32573
32586
  })
32574
32587
  ]);
32588
+ var LearnCardRefreshAuthorizationValidator = external_exports2.object({ type: external_exports2.literal("LearnCardDIDAuth") }).catchall(external_exports2.any());
32589
+ var ManagedCredentialRefreshServiceValidator2 = external_exports2.object({
32590
+ id: external_exports2.string().min(1),
32591
+ type: external_exports2.literal("LearnCardCredentialRefresh2026"),
32592
+ authorization: LearnCardRefreshAuthorizationValidator.optional()
32593
+ }).catchall(external_exports2.any());
32594
+ var StandardCredentialRefreshServiceValidator = external_exports2.object({
32595
+ id: external_exports2.string().min(1),
32596
+ type: external_exports2.literal("1EdTechCredentialRefresh")
32597
+ }).catchall(external_exports2.any());
32598
+ var SupportedCredentialRefreshServiceValidator2 = external_exports2.union([
32599
+ ManagedCredentialRefreshServiceValidator2,
32600
+ StandardCredentialRefreshServiceValidator
32601
+ ]);
32602
+ var AllocateCredentialRefreshInputValidator = external_exports2.object({
32603
+ holder: external_exports2.object({
32604
+ profileId: external_exports2.string().optional(),
32605
+ did: external_exports2.string().min(1)
32606
+ }),
32607
+ credentialId: external_exports2.string().min(1)
32608
+ });
32609
+ var AllocateCredentialRefreshResultValidator = external_exports2.object({
32610
+ refreshId: external_exports2.string().min(1),
32611
+ refreshService: ManagedCredentialRefreshServiceValidator2.extend({
32612
+ authorization: LearnCardRefreshAuthorizationValidator
32613
+ })
32614
+ });
32615
+ var ManagedCredentialRefreshReceiptValidator = external_exports2.object({
32616
+ refreshId: external_exports2.string().min(1),
32617
+ refreshService: ManagedCredentialRefreshServiceValidator2,
32618
+ credentialId: external_exports2.string().min(1),
32619
+ issuerDid: external_exports2.string().min(1),
32620
+ holderDid: external_exports2.string().min(1),
32621
+ credentialStatus: CredentialStatusValidator.or(
32622
+ CredentialStatusValidator.array()
32623
+ ).optional()
32624
+ }).strip();
32625
+ var InboxCredentialRefreshReceiptValidator = ManagedCredentialRefreshReceiptValidator.omit(
32626
+ { holderDid: true }
32627
+ ).extend({ holderDid: external_exports2.string().min(1).optional() });
32628
+ var CredentialRefreshSigningModeValidator = external_exports2.enum(["issuer-signed", "signing-authority"]);
32629
+ var PublishCredentialRefreshBaseFields = {
32630
+ refreshId: external_exports2.string().min(1),
32631
+ notifyHolder: external_exports2.boolean().optional(),
32632
+ updateSummary: external_exports2.string().optional(),
32633
+ idempotencyKey: external_exports2.string().optional()
32634
+ };
32635
+ var PublishIssuerSignedRefreshValidator = external_exports2.object({
32636
+ ...PublishCredentialRefreshBaseFields,
32637
+ mode: external_exports2.literal("issuer-signed"),
32638
+ signedCredential: VCValidator
32639
+ });
32640
+ var PublishSigningAuthorityRefreshValidator = external_exports2.object({
32641
+ ...PublishCredentialRefreshBaseFields,
32642
+ mode: external_exports2.literal("signing-authority"),
32643
+ credential: UnsignedVCValidator,
32644
+ signingAuthority: external_exports2.object({
32645
+ type: external_exports2.string().min(1)
32646
+ }).catchall(external_exports2.any())
32647
+ });
32648
+ var PublishCredentialRefreshInputValidator = external_exports2.object({
32649
+ ...PublishCredentialRefreshBaseFields,
32650
+ mode: CredentialRefreshSigningModeValidator,
32651
+ signedCredential: VCValidator.optional(),
32652
+ credential: UnsignedVCValidator.optional(),
32653
+ signingAuthority: external_exports2.object({
32654
+ type: external_exports2.string().min(1)
32655
+ }).catchall(external_exports2.any()).optional()
32656
+ }).superRefine((input, ctx) => {
32657
+ if (input.mode === "issuer-signed" && !input.signedCredential) {
32658
+ ctx.addIssue({
32659
+ code: "custom",
32660
+ path: ["signedCredential"],
32661
+ message: "signedCredential is required for issuer-signed publication"
32662
+ });
32663
+ }
32664
+ if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
32665
+ ctx.addIssue({
32666
+ code: "custom",
32667
+ path: ["mode"],
32668
+ message: "issuer-signed publication cannot include signing-authority fields"
32669
+ });
32670
+ }
32671
+ if (input.mode === "signing-authority") {
32672
+ if (input.signedCredential !== void 0) {
32673
+ ctx.addIssue({
32674
+ code: "custom",
32675
+ path: ["signedCredential"],
32676
+ message: "signing-authority publication cannot include signedCredential"
32677
+ });
32678
+ }
32679
+ if (!input.credential) {
32680
+ ctx.addIssue({
32681
+ code: "custom",
32682
+ path: ["credential"],
32683
+ message: "credential is required for signing-authority publication"
32684
+ });
32685
+ }
32686
+ if (!input.signingAuthority) {
32687
+ ctx.addIssue({
32688
+ code: "custom",
32689
+ path: ["signingAuthority"],
32690
+ message: "signingAuthority is required for signing-authority publication"
32691
+ });
32692
+ }
32693
+ }
32694
+ });
32695
+ var PublishCredentialRefreshNotificationValidator = external_exports2.enum([
32696
+ "queued",
32697
+ "suppressed",
32698
+ "not-applicable",
32699
+ /** Publication succeeded, but the post-commit notification enqueue must be retried. */
32700
+ "delivery-failed"
32701
+ ]);
32702
+ var PublishCredentialRefreshResultValidator = external_exports2.object({
32703
+ refreshId: external_exports2.string().min(1),
32704
+ version: external_exports2.number().int().positive(),
32705
+ publishedAt: external_exports2.string().min(1),
32706
+ notification: PublishCredentialRefreshNotificationValidator
32707
+ });
32708
+ var CredentialRefreshVersionMetadataValidator = external_exports2.object({
32709
+ version: external_exports2.number().int().positive(),
32710
+ publishedAt: external_exports2.string().min(1),
32711
+ effectiveAt: external_exports2.string().optional(),
32712
+ etag: external_exports2.string().optional(),
32713
+ signingMode: CredentialRefreshSigningModeValidator.optional(),
32714
+ updateSummary: external_exports2.string().optional()
32715
+ });
32716
+ var GetCredentialRefreshHistoryInputValidator = external_exports2.object({
32717
+ refreshId: external_exports2.string().min(1),
32718
+ cursor: external_exports2.string().optional(),
32719
+ limit: external_exports2.number().int().positive().optional()
32720
+ });
32721
+ var GetCredentialRefreshHistoryResultValidator = external_exports2.object({
32722
+ records: CredentialRefreshVersionMetadataValidator.array(),
32723
+ hasMore: external_exports2.boolean(),
32724
+ cursor: external_exports2.string().optional()
32725
+ });
32726
+ var CredentialRefreshChallengeValidator = external_exports2.object({
32727
+ challenge: external_exports2.string().min(1),
32728
+ expiresAt: external_exports2.string().min(1),
32729
+ domain: external_exports2.string().optional(),
32730
+ scheme: external_exports2.literal("LearnCardDIDAuth").optional()
32731
+ });
32732
+ var PublicCredentialRefreshEnvelopeValidator = external_exports2.object({
32733
+ format: external_exports2.literal("vc"),
32734
+ credential: VCValidator,
32735
+ etag: external_exports2.string().optional()
32736
+ });
32737
+ var JweCredentialRefreshEnvelopeValidator = external_exports2.object({
32738
+ format: external_exports2.literal("jwe"),
32739
+ jwe: JWEValidator2,
32740
+ etag: external_exports2.string().optional(),
32741
+ /** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
32742
+ version: external_exports2.number().int().positive().optional()
32743
+ });
32744
+ var CredentialRefreshResponseEnvelopeValidator = external_exports2.discriminatedUnion("format", [
32745
+ PublicCredentialRefreshEnvelopeValidator,
32746
+ JweCredentialRefreshEnvelopeValidator
32747
+ ]);
32748
+ var CredentialRefreshFailureCodeValidator = external_exports2.enum([
32749
+ "UNAVAILABLE",
32750
+ "TIMEOUT",
32751
+ "UNSUPPORTED_SERVICE",
32752
+ "UNAUTHORIZED",
32753
+ "MALFORMED_RESPONSE",
32754
+ "INVALID_PROOF",
32755
+ "ISSUER_MISMATCH",
32756
+ "ID_MISMATCH",
32757
+ "ROLLBACK",
32758
+ "REVOKED",
32759
+ "UNSAFE_ENDPOINT"
32760
+ ]);
32761
+ var CredentialRefreshUpdatedResultValidator = external_exports2.object({
32762
+ status: external_exports2.literal("updated"),
32763
+ credential: VCValidator,
32764
+ etag: external_exports2.string().optional(),
32765
+ managedVersion: external_exports2.number().int().positive().optional()
32766
+ });
32767
+ var CredentialRefreshUnchangedResultValidator = external_exports2.object({
32768
+ status: external_exports2.literal("unchanged"),
32769
+ checkedAt: external_exports2.string().min(1),
32770
+ etag: external_exports2.string().optional()
32771
+ });
32772
+ var CredentialRefreshUnsupportedResultValidator = external_exports2.object({
32773
+ status: external_exports2.literal("unsupported")
32774
+ });
32775
+ var CredentialRefreshFailedResultValidator = external_exports2.object({
32776
+ status: external_exports2.literal("failed"),
32777
+ code: CredentialRefreshFailureCodeValidator,
32778
+ retryable: external_exports2.boolean()
32779
+ });
32780
+ var CredentialRefreshResultValidator = external_exports2.discriminatedUnion("status", [
32781
+ CredentialRefreshUpdatedResultValidator,
32782
+ CredentialRefreshUnchangedResultValidator,
32783
+ CredentialRefreshUnsupportedResultValidator,
32784
+ CredentialRefreshFailedResultValidator
32785
+ ]);
32575
32786
  var LCNProfileDisplayValidator = external_exports2.object({
32576
32787
  backgroundColor: external_exports2.string().optional(),
32577
32788
  backgroundImage: external_exports2.string().optional(),
@@ -32907,7 +33118,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32907
33118
  "Options for email/phone recipients (Universal Inbox)"
32908
33119
  ),
32909
33120
  templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
32910
- integrationId: external_exports2.string().optional().describe("Integration ID for activity tracking")
33121
+ integrationId: external_exports2.string().optional().describe("Integration ID for activity tracking"),
33122
+ refresh: external_exports2.boolean().optional().describe(
33123
+ "Request managed credential refresh for this send. Profile/DID recipients use immediate issuance; email/phone recipients use deferred Universal Inbox signing and bind the holder at claim."
33124
+ ),
33125
+ idempotencyKey: external_exports2.string().min(1).max(200).optional().describe(
33126
+ "Caller-chosen key that makes a managed refresh send (refresh: true) safe to retry as a whole: retries with the same key reuse the same boost, refresh allocation and result. Reusing a key for a different request is rejected. With signedCredential, requires prior tRPC prepareRefreshableSend; direct REST callers omit the key and retry the exact signed credential and templateUri."
33127
+ )
32911
33128
  }).refine((data) => data.templateUri || data.template || data.signedCredential, {
32912
33129
  message: "Either templateUri, template, or signedCredential must be provided.",
32913
33130
  path: ["templateUri"]
@@ -32922,8 +33139,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32922
33139
  message: "guardianEmail must differ from recipient (self-approval not allowed)",
32923
33140
  path: ["options", "guardianEmail"]
32924
33141
  }
32925
- );
33142
+ ).refine((data) => !data.idempotencyKey || data.refresh === true, {
33143
+ message: "idempotencyKey is only supported with refresh: true.",
33144
+ path: ["idempotencyKey"]
33145
+ });
32926
33146
  var SendInboxResponseValidator = external_exports2.object({
33147
+ refresh: InboxCredentialRefreshReceiptValidator.optional(),
32927
33148
  issuanceId: external_exports2.string(),
32928
33149
  status: external_exports2.enum(["PENDING", "ISSUED", "EXPIRED", "DELIVERED", "CLAIMED"]),
32929
33150
  claimUrl: external_exports2.string().url().optional().describe("Present when suppressDelivery=true"),
@@ -32938,8 +33159,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
32938
33159
  activityId: external_exports2.string().describe("Links to the activity lifecycle for this issuance"),
32939
33160
  inbox: SendInboxResponseValidator.optional().describe(
32940
33161
  "Present when sent via email/phone (Universal Inbox)"
33162
+ ),
33163
+ refresh: ManagedCredentialRefreshReceiptValidator.optional().describe(
33164
+ "Present when managed refresh was requested: issuance metadata the issuer keeps to publish future updates"
32941
33165
  )
32942
33166
  });
33167
+ var PrepareRefreshableSendInputValidator = external_exports2.object({
33168
+ recipient: external_exports2.string(),
33169
+ templateUri: external_exports2.string().optional(),
33170
+ template: SendBoostTemplateValidator.optional(),
33171
+ contractUri: external_exports2.string().optional(),
33172
+ templateData: external_exports2.record(external_exports2.string(), external_exports2.unknown()).optional(),
33173
+ integrationId: external_exports2.string().optional(),
33174
+ /** Credential ID to allocate for; generated server-side when omitted. */
33175
+ credentialId: external_exports2.string().min(1).optional(),
33176
+ idempotencyKey: external_exports2.string().min(1).max(200).optional()
33177
+ }).refine((data) => Boolean(data.templateUri) !== Boolean(data.template), {
33178
+ message: "Provide exactly one of templateUri or template."
33179
+ });
33180
+ var PrepareRefreshableSendResultValidator = external_exports2.object({
33181
+ boostUri: external_exports2.string(),
33182
+ credentialId: external_exports2.string(),
33183
+ refreshId: external_exports2.string(),
33184
+ refreshService: ManagedCredentialRefreshServiceValidator2,
33185
+ /** The DID to use as credentialSubject.id (recipient DID, or the profile's did:web). */
33186
+ holderDid: external_exports2.string(),
33187
+ /** Present when this idempotencyKey already completed: return it without signing. */
33188
+ completed: SendBoostResponseValidator.optional()
33189
+ });
32943
33190
  var SendInputValidator = external_exports2.discriminatedUnion("type", [SendBoostInputValidator]);
32944
33191
  var SendResponseValidator = external_exports2.discriminatedUnion("type", [SendBoostResponseValidator]);
32945
33192
  var ConsentFlowTermsStatusValidator = external_exports2.enum(["live", "stale", "withdrawn"]);
@@ -33258,6 +33505,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33258
33505
  webhookUrl: external_exports2.string().optional()
33259
33506
  });
33260
33507
  var AUTH_GRANT_AUDIENCE_DOMAIN_PREFIX = "auth-grant:";
33508
+ var ACT_AS_HEADER = "X-LearnCard-Act-As";
33261
33509
  var AuthGrantValidator = external_exports2.object({
33262
33510
  id: external_exports2.string(),
33263
33511
  name: external_exports2.string(),
@@ -33270,6 +33518,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33270
33518
  }, "error")
33271
33519
  }),
33272
33520
  scope: external_exports2.string(),
33521
+ actAs: external_exports2.string().optional(),
33273
33522
  createdAt: external_exports2.iso.datetime({ error: "createdAt must be a valid ISO 8601 datetime string" }),
33274
33523
  expiresAt: external_exports2.iso.datetime({ error: "expiresAt must be a valid ISO 8601 datetime string" }).nullish().optional()
33275
33524
  });
@@ -33341,6 +33590,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33341
33590
  sessionJwt: external_exports2.string()
33342
33591
  });
33343
33592
  var InboxCredentialValidator = external_exports2.object({
33593
+ refresh: InboxCredentialRefreshReceiptValidator.optional(),
33594
+ refreshId: external_exports2.string().optional(),
33344
33595
  id: external_exports2.string(),
33345
33596
  credential: external_exports2.string().optional(),
33346
33597
  isSigned: external_exports2.boolean(),
@@ -33395,12 +33646,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33395
33646
  templateUri: external_exports2.string().optional().describe(
33396
33647
  "URI of a boost template to use for issuance. The boost credential will be resolved and used. Mutually exclusive with credential field."
33397
33648
  ),
33649
+ refresh: external_exports2.boolean().optional().describe(
33650
+ "Allocate managed refresh before signing. Requires unsigned content and a registered signing authority; binds the holder on claim."
33651
+ ),
33652
+ idempotencyKey: external_exports2.string().min(1).max(200).optional(),
33398
33653
  // === OPTIONAL FEATURES ===
33399
33654
  // Add major, distinct features at the top level.
33400
33655
  //consentRequest: ConsentRequestValidator.optional(),
33401
33656
  // === PROCESS CONFIGURATION (Optional) ===
33402
33657
  // HOW should this issuance be handled?
33403
33658
  configuration: external_exports2.object({
33659
+ guardianEmail: external_exports2.string().email().optional().describe(
33660
+ "Require approval from this guardian before the recipient can claim. Must differ from the recipient email."
33661
+ ),
33404
33662
  signingAuthority: IssueInboxSigningAuthorityValidator.optional().describe(
33405
33663
  "The signing authority to use for the credential. If not provided, the users default signing authority will be used if the credential is not signed."
33406
33664
  ),
@@ -33454,17 +33712,130 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33454
33712
  }).optional().describe(
33455
33713
  "Configuration for the credential issuance. If not provided, the default configuration will be used."
33456
33714
  )
33715
+ }).refine((data) => !data.idempotencyKey || data.refresh === true, {
33716
+ message: "idempotencyKey requires refresh: true."
33457
33717
  }).refine((data) => data.credential || data.templateUri, {
33458
33718
  message: "Either credential or templateUri must be provided.",
33459
33719
  path: ["credential"]
33460
- });
33720
+ }).refine(
33721
+ (data) => !data.configuration?.guardianEmail || data.recipient.type !== "email" || data.configuration.guardianEmail.toLowerCase() !== data.recipient.value.toLowerCase(),
33722
+ {
33723
+ message: "guardianEmail must differ from recipient (self-approval not allowed)",
33724
+ path: ["configuration", "guardianEmail"]
33725
+ }
33726
+ );
33461
33727
  var IssueInboxCredentialResponseValidator = external_exports2.object({
33728
+ refresh: InboxCredentialRefreshReceiptValidator.optional(),
33462
33729
  issuanceId: external_exports2.string(),
33463
33730
  status: LCNInboxStatusEnumValidator,
33464
33731
  recipient: ContactMethodQueryValidator,
33465
33732
  claimUrl: external_exports2.string().url().optional(),
33466
33733
  recipientDid: external_exports2.string().optional()
33467
33734
  });
33735
+ var InboxBatchConfigurationValidator = IssueInboxCredentialValidator.shape.configuration.unwrap().extend({
33736
+ refresh: IssueInboxCredentialValidator.shape.refresh.describe(
33737
+ "Enable managed refresh by default. An item configuration.refresh overrides this value, including false."
33738
+ ),
33739
+ delivery: IssueInboxCredentialValidator.shape.configuration.unwrap().shape.delivery.unwrap().extend({ suppress: external_exports2.boolean().optional() }).optional()
33740
+ });
33741
+ var InboxBatchItemConfigurationValidator = InboxBatchConfigurationValidator.extend({
33742
+ guardianEmail: InboxBatchConfigurationValidator.shape.guardianEmail.nullable().describe(
33743
+ "Require guardian approval, or set null to clear a batch-level guardianEmail for this item."
33744
+ )
33745
+ });
33746
+ var IssueInboxCredentialBatchItemValidator = external_exports2.object({
33747
+ ...IssueInboxCredentialValidator.shape,
33748
+ configuration: InboxBatchItemConfigurationValidator.optional(),
33749
+ idempotencyKey: external_exports2.string().max(256).optional()
33750
+ }).refine((data) => data.credential || data.templateUri, {
33751
+ message: "Either credential or templateUri must be provided.",
33752
+ path: ["credential"]
33753
+ }).describe(
33754
+ "One issuance: provide credential or templateUri. Invalid input is rejected at submission with its item index."
33755
+ );
33756
+ var IssueInboxCredentialBatchValidator = external_exports2.object({
33757
+ requestId: external_exports2.string().min(1).max(256).optional(),
33758
+ items: external_exports2.array(IssueInboxCredentialBatchItemValidator).min(1).max(100),
33759
+ configuration: InboxBatchConfigurationValidator.optional()
33760
+ }).superRefine((batch, ctx) => {
33761
+ batch.items.forEach((item, index) => {
33762
+ const itemGuardian = item.configuration?.guardianEmail;
33763
+ const guardian = itemGuardian === null ? void 0 : itemGuardian ?? batch.configuration?.guardianEmail;
33764
+ if (guardian && item.recipient.type === "email" && guardian.toLowerCase() === item.recipient.value.toLowerCase()) {
33765
+ ctx.addIssue({
33766
+ code: "custom",
33767
+ path: ["items", index, "configuration", "guardianEmail"],
33768
+ message: "guardianEmail must differ from recipient (self-approval not allowed)"
33769
+ });
33770
+ }
33771
+ });
33772
+ });
33773
+ var InboxBatchErrorReasonValidator = external_exports2.enum([
33774
+ "DUPLICATE_KEY",
33775
+ "IDEMPOTENCY_MISMATCH",
33776
+ "IN_PROGRESS",
33777
+ "UNCONFIRMED"
33778
+ ]);
33779
+ var IssueInboxCredentialBatchItemResultValidator = external_exports2.discriminatedUnion("success", [
33780
+ IssueInboxCredentialResponseValidator.extend({
33781
+ success: external_exports2.literal(true),
33782
+ index: external_exports2.number().int().nonnegative(),
33783
+ deduplicated: external_exports2.boolean().optional(),
33784
+ guardianStatus: GuardianStatusValidator.optional(),
33785
+ idempotencyKey: external_exports2.string().optional()
33786
+ }),
33787
+ external_exports2.object({
33788
+ success: external_exports2.literal(false),
33789
+ index: external_exports2.number().int().nonnegative(),
33790
+ idempotencyKey: external_exports2.string().optional(),
33791
+ recipient: ContactMethodQueryValidator.optional(),
33792
+ error: external_exports2.object({
33793
+ code: external_exports2.string(),
33794
+ message: external_exports2.string(),
33795
+ reason: InboxBatchErrorReasonValidator.optional()
33796
+ }),
33797
+ issuanceId: external_exports2.string().optional().describe(
33798
+ "Present when issuance completed but replay storage could not be confirmed. Reconcile this issuance; do not issue again with a new key."
33799
+ ),
33800
+ claimUrl: external_exports2.string().url().optional().describe(
33801
+ "Claim URL of the completed issuance, if available, when replay storage could not be confirmed."
33802
+ )
33803
+ })
33804
+ ]);
33805
+ var IssueInboxCredentialBatchResponseValidator = external_exports2.object({
33806
+ results: external_exports2.array(IssueInboxCredentialBatchItemResultValidator),
33807
+ summary: external_exports2.object({
33808
+ total: external_exports2.number(),
33809
+ succeeded: external_exports2.number(),
33810
+ failed: external_exports2.number(),
33811
+ deduplicated: external_exports2.number()
33812
+ })
33813
+ });
33814
+ var InboxBatchReceiptValidator = external_exports2.object({
33815
+ batchId: external_exports2.string(),
33816
+ status: external_exports2.enum(["QUEUED", "PROCESSING", "COMPLETED", "NEEDS_RECONCILIATION"]),
33817
+ createdAt: external_exports2.string()
33818
+ });
33819
+ var InboxBatchStatusValidator = external_exports2.object({
33820
+ batchId: external_exports2.string(),
33821
+ createdAt: external_exports2.string(),
33822
+ done: external_exports2.boolean().describe(
33823
+ "True when no queued or processing items remain, including unconfirmed outcomes."
33824
+ ),
33825
+ status: external_exports2.enum(["QUEUED", "PROCESSING", "COMPLETED", "NEEDS_RECONCILIATION"]),
33826
+ items: external_exports2.array(
33827
+ external_exports2.object({
33828
+ index: external_exports2.number().int().nonnegative(),
33829
+ state: external_exports2.enum(["QUEUED", "PROCESSING", "COMPLETED", "NEEDS_RECONCILIATION"]),
33830
+ result: IssueInboxCredentialBatchItemResultValidator.optional()
33831
+ })
33832
+ ),
33833
+ summary: IssueInboxCredentialBatchResponseValidator.shape.summary.extend({
33834
+ completed: external_exports2.number(),
33835
+ pending: external_exports2.number(),
33836
+ unconfirmed: external_exports2.number()
33837
+ })
33838
+ });
33468
33839
  var CredentialNameRefValidator = external_exports2.object({ name: external_exports2.string() }).passthrough();
33469
33840
  var ClaimInboxCredentialValidator = external_exports2.object({
33470
33841
  credential: VCValidator.or(VPValidator).or(UnsignedVCValidator).or(CredentialNameRefValidator).describe("The credential to issue, or a { name } reference to resolve a boost template."),
@@ -33950,6 +34321,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
33950
34321
  eventType: CredentialActivityEventTypeValidator,
33951
34322
  timestamp: external_exports2.string(),
33952
34323
  actorProfileId: external_exports2.string().optional(),
34324
+ onBehalfOf: external_exports2.string().optional(),
33953
34325
  recipientType: CredentialActivityRecipientTypeValidator,
33954
34326
  recipientIdentifier: external_exports2.string(),
33955
34327
  boostUri: external_exports2.string().optional(),
@@ -34113,191 +34485,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
34113
34485
  const result = inAppMessagesFlagValidator.safeParse(raw);
34114
34486
  return result.success ? result.data : EMPTY_IN_APP_MESSAGES_FLAG;
34115
34487
  }, "parseInAppMessagesFlag");
34116
- var LearnCardRefreshAuthorizationValidator = external_exports2.object({ type: external_exports2.literal("LearnCardDIDAuth") }).catchall(external_exports2.any());
34117
- var ManagedCredentialRefreshServiceValidator = external_exports2.object({
34118
- id: external_exports2.string().min(1),
34119
- type: external_exports2.literal("LearnCardCredentialRefresh2026"),
34120
- authorization: LearnCardRefreshAuthorizationValidator.optional()
34121
- }).catchall(external_exports2.any());
34122
- var StandardCredentialRefreshServiceValidator = external_exports2.object({
34123
- id: external_exports2.string().min(1),
34124
- type: external_exports2.literal("1EdTechCredentialRefresh")
34125
- }).catchall(external_exports2.any());
34126
- var SupportedCredentialRefreshServiceValidator2 = external_exports2.union([
34127
- ManagedCredentialRefreshServiceValidator,
34128
- StandardCredentialRefreshServiceValidator
34129
- ]);
34130
- var AllocateCredentialRefreshInputValidator = external_exports2.object({
34131
- holder: external_exports2.object({
34132
- profileId: external_exports2.string().optional(),
34133
- did: external_exports2.string().min(1)
34134
- }),
34135
- credentialId: external_exports2.string().min(1)
34136
- });
34137
- var AllocateCredentialRefreshResultValidator = external_exports2.object({
34138
- refreshId: external_exports2.string().min(1),
34139
- refreshService: ManagedCredentialRefreshServiceValidator.extend({
34140
- authorization: LearnCardRefreshAuthorizationValidator
34141
- })
34142
- });
34143
- var CredentialRefreshSigningModeValidator = external_exports2.enum(["issuer-signed", "signing-authority"]);
34144
- var PublishCredentialRefreshBaseFields = {
34145
- refreshId: external_exports2.string().min(1),
34146
- notifyHolder: external_exports2.boolean().optional(),
34147
- updateSummary: external_exports2.string().optional(),
34148
- idempotencyKey: external_exports2.string().optional()
34149
- };
34150
- var PublishIssuerSignedRefreshValidator = external_exports2.object({
34151
- ...PublishCredentialRefreshBaseFields,
34152
- mode: external_exports2.literal("issuer-signed"),
34153
- signedCredential: VCValidator
34154
- });
34155
- var PublishSigningAuthorityRefreshValidator = external_exports2.object({
34156
- ...PublishCredentialRefreshBaseFields,
34157
- mode: external_exports2.literal("signing-authority"),
34158
- credential: UnsignedVCValidator,
34159
- signingAuthority: external_exports2.object({
34160
- type: external_exports2.string().min(1)
34161
- }).catchall(external_exports2.any())
34162
- });
34163
- var PublishCredentialRefreshInputValidator = external_exports2.object({
34164
- ...PublishCredentialRefreshBaseFields,
34165
- mode: CredentialRefreshSigningModeValidator,
34166
- signedCredential: VCValidator.optional(),
34167
- credential: UnsignedVCValidator.optional(),
34168
- signingAuthority: external_exports2.object({
34169
- type: external_exports2.string().min(1)
34170
- }).catchall(external_exports2.any()).optional()
34171
- }).superRefine((input, ctx) => {
34172
- if (input.mode === "issuer-signed" && !input.signedCredential) {
34173
- ctx.addIssue({
34174
- code: "custom",
34175
- path: ["signedCredential"],
34176
- message: "signedCredential is required for issuer-signed publication"
34177
- });
34178
- }
34179
- if (input.mode === "issuer-signed" && (input.credential !== void 0 || input.signingAuthority !== void 0)) {
34180
- ctx.addIssue({
34181
- code: "custom",
34182
- path: ["mode"],
34183
- message: "issuer-signed publication cannot include signing-authority fields"
34184
- });
34185
- }
34186
- if (input.mode === "signing-authority") {
34187
- if (input.signedCredential !== void 0) {
34188
- ctx.addIssue({
34189
- code: "custom",
34190
- path: ["signedCredential"],
34191
- message: "signing-authority publication cannot include signedCredential"
34192
- });
34193
- }
34194
- if (!input.credential) {
34195
- ctx.addIssue({
34196
- code: "custom",
34197
- path: ["credential"],
34198
- message: "credential is required for signing-authority publication"
34199
- });
34200
- }
34201
- if (!input.signingAuthority) {
34202
- ctx.addIssue({
34203
- code: "custom",
34204
- path: ["signingAuthority"],
34205
- message: "signingAuthority is required for signing-authority publication"
34206
- });
34207
- }
34208
- }
34209
- });
34210
- var PublishCredentialRefreshNotificationValidator = external_exports2.enum([
34211
- "queued",
34212
- "suppressed",
34213
- "not-applicable",
34214
- /** Publication succeeded, but the post-commit notification enqueue must be retried. */
34215
- "delivery-failed"
34216
- ]);
34217
- var PublishCredentialRefreshResultValidator = external_exports2.object({
34218
- refreshId: external_exports2.string().min(1),
34219
- version: external_exports2.number().int().positive(),
34220
- publishedAt: external_exports2.string().min(1),
34221
- notification: PublishCredentialRefreshNotificationValidator
34222
- });
34223
- var CredentialRefreshVersionMetadataValidator = external_exports2.object({
34224
- version: external_exports2.number().int().positive(),
34225
- publishedAt: external_exports2.string().min(1),
34226
- effectiveAt: external_exports2.string().optional(),
34227
- etag: external_exports2.string().optional(),
34228
- signingMode: CredentialRefreshSigningModeValidator.optional(),
34229
- updateSummary: external_exports2.string().optional()
34230
- });
34231
- var GetCredentialRefreshHistoryInputValidator = external_exports2.object({
34232
- refreshId: external_exports2.string().min(1),
34233
- cursor: external_exports2.string().optional(),
34234
- limit: external_exports2.number().int().positive().optional()
34235
- });
34236
- var GetCredentialRefreshHistoryResultValidator = external_exports2.object({
34237
- records: CredentialRefreshVersionMetadataValidator.array(),
34238
- hasMore: external_exports2.boolean(),
34239
- cursor: external_exports2.string().optional()
34240
- });
34241
- var CredentialRefreshChallengeValidator = external_exports2.object({
34242
- challenge: external_exports2.string().min(1),
34243
- expiresAt: external_exports2.string().min(1),
34244
- domain: external_exports2.string().optional(),
34245
- scheme: external_exports2.literal("LearnCardDIDAuth").optional()
34246
- });
34247
- var PublicCredentialRefreshEnvelopeValidator = external_exports2.object({
34248
- format: external_exports2.literal("vc"),
34249
- credential: VCValidator,
34250
- etag: external_exports2.string().optional()
34251
- });
34252
- var JweCredentialRefreshEnvelopeValidator = external_exports2.object({
34253
- format: external_exports2.literal("jwe"),
34254
- jwe: JWEValidator2,
34255
- etag: external_exports2.string().optional(),
34256
- /** Present on LearnCard-managed endpoints; optional for interoperable JWE services. */
34257
- version: external_exports2.number().int().positive().optional()
34258
- });
34259
- var CredentialRefreshResponseEnvelopeValidator = external_exports2.discriminatedUnion("format", [
34260
- PublicCredentialRefreshEnvelopeValidator,
34261
- JweCredentialRefreshEnvelopeValidator
34262
- ]);
34263
- var CredentialRefreshFailureCodeValidator = external_exports2.enum([
34264
- "UNAVAILABLE",
34265
- "TIMEOUT",
34266
- "UNSUPPORTED_SERVICE",
34267
- "UNAUTHORIZED",
34268
- "MALFORMED_RESPONSE",
34269
- "INVALID_PROOF",
34270
- "ISSUER_MISMATCH",
34271
- "ID_MISMATCH",
34272
- "ROLLBACK",
34273
- "REVOKED",
34274
- "UNSAFE_ENDPOINT"
34275
- ]);
34276
- var CredentialRefreshUpdatedResultValidator = external_exports2.object({
34277
- status: external_exports2.literal("updated"),
34278
- credential: VCValidator,
34279
- etag: external_exports2.string().optional(),
34280
- managedVersion: external_exports2.number().int().positive().optional()
34281
- });
34282
- var CredentialRefreshUnchangedResultValidator = external_exports2.object({
34283
- status: external_exports2.literal("unchanged"),
34284
- checkedAt: external_exports2.string().min(1),
34285
- etag: external_exports2.string().optional()
34286
- });
34287
- var CredentialRefreshUnsupportedResultValidator = external_exports2.object({
34288
- status: external_exports2.literal("unsupported")
34289
- });
34290
- var CredentialRefreshFailedResultValidator = external_exports2.object({
34291
- status: external_exports2.literal("failed"),
34292
- code: CredentialRefreshFailureCodeValidator,
34293
- retryable: external_exports2.boolean()
34294
- });
34295
- var CredentialRefreshResultValidator = external_exports2.discriminatedUnion("status", [
34296
- CredentialRefreshUpdatedResultValidator,
34297
- CredentialRefreshUnchangedResultValidator,
34298
- CredentialRefreshUnsupportedResultValidator,
34299
- CredentialRefreshFailedResultValidator
34300
- ]);
34301
34488
  }
34302
34489
  });
34303
34490
  var require_dist = __commonJS({
@@ -34593,6 +34780,18 @@ var ImageWithLoadingStateValdator = external_exports.object({
34593
34780
  });
34594
34781
  var import_types2 = __toESM(require_dist());
34595
34782
  var import_types22 = __toESM(require_dist());
34783
+ var MANAGED_REFRESH_TYPE_TERM = "LearnCardCredentialRefresh2026";
34784
+ var MANAGED_REFRESH_DID_AUTH_TERM = "LearnCardDIDAuth";
34785
+ var MANAGED_REFRESH_TYPE_IRI = "https://learncard.com/refresh#LearnCardCredentialRefresh2026";
34786
+ var MANAGED_REFRESH_AUTHORIZATION_IRI = "https://purl.imsglobal.org/spec/ob/v3p0#authorization";
34787
+ var MANAGED_REFRESH_DID_AUTH_IRI = "https://docs.learncard.com/definitions#LearnCardDIDAuth";
34788
+ var MANAGED_REFRESH_SERVICE_CONTEXT = {
34789
+ [MANAGED_REFRESH_TYPE_TERM]: MANAGED_REFRESH_TYPE_IRI,
34790
+ authorization: {
34791
+ "@id": MANAGED_REFRESH_AUTHORIZATION_IRI,
34792
+ "@context": { [MANAGED_REFRESH_DID_AUTH_TERM]: MANAGED_REFRESH_DID_AUTH_IRI }
34793
+ }
34794
+ };
34596
34795
  var EnvironmentConfigurationError = class extends Error {
34597
34796
  static {
34598
34797
  __name(this, "EnvironmentConfigurationError");