@learncard/network-brain-service 3.17.0 → 3.19.0

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.
Files changed (274) hide show
  1. package/.env.example +4 -0
  2. package/AGENTS.md +177 -159
  3. package/CHANGELOG.md +148 -0
  4. package/README.md +26 -8
  5. package/compose.inbox.yml +7 -0
  6. package/dist/accesslayer/app-store-listing/relationships/read.d.ts.map +1 -1
  7. package/dist/accesslayer/auth-grant/read.d.ts +1 -0
  8. package/dist/accesslayer/auth-grant/read.d.ts.map +1 -1
  9. package/dist/accesslayer/consentflowcontract/relationships/create.d.ts +3 -2
  10. package/dist/accesslayer/consentflowcontract/relationships/create.d.ts.map +1 -1
  11. package/dist/accesslayer/consentflowcontract/relationships/read.d.ts +1 -0
  12. package/dist/accesslayer/consentflowcontract/relationships/read.d.ts.map +1 -1
  13. package/dist/accesslayer/consentflowcontract/relationships/update.d.ts +5 -3
  14. package/dist/accesslayer/consentflowcontract/relationships/update.d.ts.map +1 -1
  15. package/dist/accesslayer/credential/create.d.ts +2 -1
  16. package/dist/accesslayer/credential/create.d.ts.map +1 -1
  17. package/dist/accesslayer/credential/create.test.d.ts +2 -0
  18. package/dist/accesslayer/credential/create.test.d.ts.map +1 -0
  19. package/dist/accesslayer/credential/relationships/read.d.ts +1 -0
  20. package/dist/accesslayer/credential/relationships/read.d.ts.map +1 -1
  21. package/dist/accesslayer/credential-activity/create.d.ts.map +1 -1
  22. package/dist/accesslayer/credential-refresh/email-delivery.d.ts +18 -0
  23. package/dist/accesslayer/credential-refresh/email-delivery.d.ts.map +1 -0
  24. package/dist/accesslayer/credential-refresh/index.d.ts +1 -0
  25. package/dist/accesslayer/credential-refresh/index.d.ts.map +1 -1
  26. package/dist/accesslayer/credential-refresh/read.d.ts.map +1 -1
  27. package/dist/accesslayer/credential-refresh/update.d.ts.map +1 -1
  28. package/dist/accesslayer/inbox-batch/store.d.ts +33 -0
  29. package/dist/accesslayer/inbox-batch/store.d.ts.map +1 -0
  30. package/dist/accesslayer/inbox-credential/create.d.ts +5 -0
  31. package/dist/accesslayer/inbox-credential/create.d.ts.map +1 -1
  32. package/dist/accesslayer/inbox-credential/refresh.d.ts +71 -0
  33. package/dist/accesslayer/inbox-credential/refresh.d.ts.map +1 -0
  34. package/dist/accesslayer/inbox-credential/update.d.ts +1 -1
  35. package/dist/accesslayer/inbox-credential/update.d.ts.map +1 -1
  36. package/dist/cache/atomic-counter.test-helpers.d.ts +3 -0
  37. package/dist/cache/atomic-counter.test-helpers.d.ts.map +1 -0
  38. package/dist/cache/atomic-counter.test.d.ts +2 -0
  39. package/dist/cache/atomic-counter.test.d.ts.map +1 -0
  40. package/dist/cache/index.d.ts +1 -1
  41. package/dist/cache/index.d.ts.map +1 -1
  42. package/dist/config/environment.d.ts +46 -0
  43. package/dist/config/environment.d.ts.map +1 -1
  44. package/dist/credential-refresh.d.ts.map +1 -1
  45. package/dist/didkit_wasm_bg.wasm +0 -0
  46. package/dist/helpers/activity.helpers.d.ts +4 -0
  47. package/dist/helpers/activity.helpers.d.ts.map +1 -1
  48. package/dist/helpers/boost-storage.helpers.test.d.ts +2 -0
  49. package/dist/helpers/boost-storage.helpers.test.d.ts.map +1 -0
  50. package/dist/helpers/boost.helpers.d.ts +3 -7
  51. package/dist/helpers/boost.helpers.d.ts.map +1 -1
  52. package/dist/helpers/contact-method.helpers.d.ts.map +1 -1
  53. package/dist/helpers/contact-method.helpers.test.d.ts +2 -0
  54. package/dist/helpers/contact-method.helpers.test.d.ts.map +1 -0
  55. package/dist/helpers/credential-refresh-email-content.helpers.d.ts +44 -0
  56. package/dist/helpers/credential-refresh-email-content.helpers.d.ts.map +1 -0
  57. package/dist/helpers/credential-refresh-email-content.helpers.test.d.ts +2 -0
  58. package/dist/helpers/credential-refresh-email-content.helpers.test.d.ts.map +1 -0
  59. package/dist/helpers/credential-refresh-email.helpers.d.ts +17 -0
  60. package/dist/helpers/credential-refresh-email.helpers.d.ts.map +1 -0
  61. package/dist/helpers/credential-refresh-proof.helpers.d.ts +4 -0
  62. package/dist/helpers/credential-refresh-proof.helpers.d.ts.map +1 -0
  63. package/dist/helpers/credential-refresh-proof.helpers.test.d.ts +2 -0
  64. package/dist/helpers/credential-refresh-proof.helpers.test.d.ts.map +1 -0
  65. package/dist/helpers/credential-refresh.helpers.d.ts +45 -2
  66. package/dist/helpers/credential-refresh.helpers.d.ts.map +1 -1
  67. package/dist/helpers/credential.helpers.d.ts +4 -2
  68. package/dist/helpers/credential.helpers.d.ts.map +1 -1
  69. package/dist/helpers/finalize-inbox.helpers.d.ts.map +1 -1
  70. package/dist/helpers/inbox-batch-http.helpers.d.ts +15 -0
  71. package/dist/helpers/inbox-batch-http.helpers.d.ts.map +1 -0
  72. package/dist/helpers/inbox-batch-http.helpers.test.d.ts +2 -0
  73. package/dist/helpers/inbox-batch-http.helpers.test.d.ts.map +1 -0
  74. package/dist/helpers/inbox-batch-status.helpers.d.ts +3 -0
  75. package/dist/helpers/inbox-batch-status.helpers.d.ts.map +1 -0
  76. package/dist/helpers/inbox-batch.helpers.d.ts +10 -0
  77. package/dist/helpers/inbox-batch.helpers.d.ts.map +1 -0
  78. package/dist/helpers/inbox-batch.helpers.test.d.ts +2 -0
  79. package/dist/helpers/inbox-batch.helpers.test.d.ts.map +1 -0
  80. package/dist/helpers/inbox-issuance-error.helpers.d.ts +13 -0
  81. package/dist/helpers/inbox-issuance-error.helpers.d.ts.map +1 -0
  82. package/dist/helpers/inbox-queue.helpers.d.ts +11 -0
  83. package/dist/helpers/inbox-queue.helpers.d.ts.map +1 -0
  84. package/dist/helpers/inbox-queue.helpers.test.d.ts +2 -0
  85. package/dist/helpers/inbox-queue.helpers.test.d.ts.map +1 -0
  86. package/dist/helpers/inbox-refresh.helpers.d.ts +186 -0
  87. package/dist/helpers/inbox-refresh.helpers.d.ts.map +1 -0
  88. package/dist/helpers/inbox.helpers.d.ts +9 -1
  89. package/dist/helpers/inbox.helpers.d.ts.map +1 -1
  90. package/dist/helpers/issuedCredentialStatus.helpers.d.ts +5 -0
  91. package/dist/helpers/issuedCredentialStatus.helpers.d.ts.map +1 -0
  92. package/dist/helpers/notifications.helpers.d.ts.map +1 -1
  93. package/dist/helpers/rateLimit.helpers.d.ts.map +1 -1
  94. package/dist/helpers/refresh-send-intent.helpers.d.ts +51 -0
  95. package/dist/helpers/refresh-send-intent.helpers.d.ts.map +1 -0
  96. package/dist/helpers/shim.d.ts +1 -1
  97. package/dist/helpers/shim.d.ts.map +1 -1
  98. package/dist/helpers/signingAuthority.helpers.d.ts +3 -2
  99. package/dist/helpers/signingAuthority.helpers.d.ts.map +1 -1
  100. package/dist/helpers/signingAuthority.helpers.test.d.ts +2 -0
  101. package/dist/helpers/signingAuthority.helpers.test.d.ts.map +1 -0
  102. package/dist/helpers/status-list.helpers.d.ts.map +1 -1
  103. package/dist/helpers/status-list.helpers.test.d.ts +2 -0
  104. package/dist/helpers/status-list.helpers.test.d.ts.map +1 -0
  105. package/dist/inbox-queue-local.d.ts +2 -0
  106. package/dist/inbox-queue-local.d.ts.map +1 -0
  107. package/dist/index.js +2 -2
  108. package/dist/models/AuthGrant.d.ts.map +1 -1
  109. package/dist/models/ConsentFlowTerms.d.ts.map +1 -1
  110. package/dist/models/ConsentFlowTransaction.d.ts.map +1 -1
  111. package/dist/models/Credential.d.ts +1 -0
  112. package/dist/models/Credential.d.ts.map +1 -1
  113. package/dist/models/CredentialActivity.d.ts +1 -0
  114. package/dist/models/CredentialActivity.d.ts.map +1 -1
  115. package/dist/models/CredentialRefresh.d.ts +5 -2
  116. package/dist/models/CredentialRefresh.d.ts.map +1 -1
  117. package/dist/models/InboxCredential.d.ts +1 -0
  118. package/dist/models/InboxCredential.d.ts.map +1 -1
  119. package/dist/models/credential-refresh-constraints.d.ts.map +1 -1
  120. package/dist/openapi.d.ts.map +1 -1
  121. package/dist/routes/act-as.test.d.ts +2 -0
  122. package/dist/routes/act-as.test.d.ts.map +1 -0
  123. package/dist/routes/activity.d.ts +3 -0
  124. package/dist/routes/activity.d.ts.map +1 -1
  125. package/dist/routes/app-store.d.ts.map +1 -1
  126. package/dist/routes/auth-grants.d.ts +10 -0
  127. package/dist/routes/auth-grants.d.ts.map +1 -1
  128. package/dist/routes/boosts.d.ts +506 -12
  129. package/dist/routes/boosts.d.ts.map +1 -1
  130. package/dist/routes/contracts.d.ts +48 -2
  131. package/dist/routes/contracts.d.ts.map +1 -1
  132. package/dist/routes/credential-refreshes.d.ts +4 -4
  133. package/dist/routes/credential-refreshes.d.ts.map +1 -1
  134. package/dist/routes/credentials.d.ts +8 -2
  135. package/dist/routes/credentials.d.ts.map +1 -1
  136. package/dist/routes/did-metadata.d.ts +8 -8
  137. package/dist/routes/federation.d.ts +2 -2
  138. package/dist/routes/inbox.d.ts +973 -31
  139. package/dist/routes/inbox.d.ts.map +1 -1
  140. package/dist/routes/index.d.ts +47 -127
  141. package/dist/routes/index.d.ts.map +1 -1
  142. package/dist/routes/presentations.d.ts +6 -6
  143. package/dist/routes/storage.d.ts +63 -63
  144. package/dist/routes/test.d.ts +6 -0
  145. package/dist/routes/test.d.ts.map +1 -1
  146. package/dist/routes/workflows.d.ts +14 -14
  147. package/dist/routes/workflows.d.ts.map +1 -1
  148. package/dist/services/delivery/adapters/postmark.adapter.d.ts.map +1 -1
  149. package/dist/services/delivery/adapters/postmark.adapter.test.d.ts +2 -0
  150. package/dist/services/delivery/adapters/postmark.adapter.test.d.ts.map +1 -0
  151. package/dist/services/registry/registry.factory.d.ts.map +1 -1
  152. package/dist/types/activity.d.ts +4 -0
  153. package/dist/types/activity.d.ts.map +1 -1
  154. package/dist/types/consentflowcontract.d.ts +22 -8
  155. package/dist/types/consentflowcontract.d.ts.map +1 -1
  156. package/dist/types/credential-refresh.d.ts +10 -1
  157. package/dist/types/credential-refresh.d.ts.map +1 -1
  158. package/dist/types/credential.d.ts +7 -0
  159. package/dist/types/credential.d.ts.map +1 -1
  160. package/dist/types/did-metadata.d.ts +2 -2
  161. package/dist/types/inbox-batch.d.ts +38 -0
  162. package/dist/types/inbox-batch.d.ts.map +1 -0
  163. package/inbox-e2e-setup.ts +53 -1
  164. package/inbox-elasticmq.conf +10 -0
  165. package/lambda.ts +61 -16
  166. package/package.json +18 -16
  167. package/scripts/setup-inbox-queues.ts +60 -0
  168. package/serverless-local.yml +2 -0
  169. package/serverless.yml +75 -0
  170. package/src/accesslayer/app-store-listing/relationships/read.ts +4 -3
  171. package/src/accesslayer/auth-grant/read.ts +2 -1
  172. package/src/accesslayer/consentflowcontract/relationships/create.ts +15 -5
  173. package/src/accesslayer/consentflowcontract/relationships/read.ts +161 -63
  174. package/src/accesslayer/consentflowcontract/relationships/update.ts +43 -10
  175. package/src/accesslayer/credential/create.test.ts +141 -0
  176. package/src/accesslayer/credential/create.ts +27 -3
  177. package/src/accesslayer/credential-activity/create.ts +1 -0
  178. package/src/accesslayer/credential-refresh/email-delivery.ts +116 -0
  179. package/src/accesslayer/credential-refresh/index.ts +1 -0
  180. package/src/accesslayer/credential-refresh/read.ts +8 -2
  181. package/src/accesslayer/credential-refresh/update.ts +4 -0
  182. package/src/accesslayer/inbox-batch/store.ts +469 -0
  183. package/src/accesslayer/inbox-credential/create.ts +51 -19
  184. package/src/accesslayer/inbox-credential/refresh.ts +221 -0
  185. package/src/accesslayer/inbox-credential/update.ts +1 -1
  186. package/src/cache/atomic-counter.test-helpers.ts +27 -0
  187. package/src/cache/atomic-counter.test.ts +6 -0
  188. package/src/cache/index.ts +25 -13
  189. package/src/config/environment.ts +26 -0
  190. package/src/credential-refresh.ts +5 -1
  191. package/src/docker-entry.ts +8 -0
  192. package/src/helpers/activity.helpers.ts +4 -0
  193. package/src/helpers/app-counter.helpers.ts +1 -1
  194. package/src/helpers/boost-storage.helpers.test.ts +242 -0
  195. package/src/helpers/boost.helpers.ts +58 -437
  196. package/src/helpers/contact-method.helpers.test.ts +43 -0
  197. package/src/helpers/contact-method.helpers.ts +3 -4
  198. package/src/helpers/credential-refresh-email-content.helpers.test.ts +222 -0
  199. package/src/helpers/credential-refresh-email-content.helpers.ts +155 -0
  200. package/src/helpers/credential-refresh-email.helpers.ts +201 -0
  201. package/src/helpers/credential-refresh-proof.helpers.test.ts +103 -0
  202. package/src/helpers/credential-refresh-proof.helpers.ts +43 -0
  203. package/src/helpers/credential-refresh.helpers.ts +385 -107
  204. package/src/helpers/credential.helpers.ts +6 -2
  205. package/src/helpers/finalize-inbox.helpers.ts +39 -22
  206. package/src/helpers/inbox-batch-http.helpers.test.ts +188 -0
  207. package/src/helpers/inbox-batch-http.helpers.ts +150 -0
  208. package/src/helpers/inbox-batch-status.helpers.ts +11 -0
  209. package/src/helpers/inbox-batch.helpers.test.ts +668 -0
  210. package/src/helpers/inbox-batch.helpers.ts +374 -0
  211. package/src/helpers/inbox-issuance-error.helpers.ts +25 -0
  212. package/src/helpers/inbox-queue.helpers.test.ts +253 -0
  213. package/src/helpers/inbox-queue.helpers.ts +372 -0
  214. package/src/helpers/inbox-refresh.helpers.ts +432 -0
  215. package/src/helpers/inbox.helpers.ts +301 -50
  216. package/src/helpers/issuedCredentialStatus.helpers.ts +11 -0
  217. package/src/helpers/notifications.helpers.ts +4 -2
  218. package/src/helpers/rateLimit.helpers.ts +2 -5
  219. package/src/helpers/refresh-send-intent.helpers.ts +273 -0
  220. package/src/helpers/shim.ts +32 -31
  221. package/src/helpers/signingAuthority.helpers.test.ts +198 -0
  222. package/src/helpers/signingAuthority.helpers.ts +41 -18
  223. package/src/helpers/status-list.helpers.test.ts +77 -0
  224. package/src/helpers/status-list.helpers.ts +31 -8
  225. package/src/inbox-queue-local.ts +28 -0
  226. package/src/models/AuthGrant.ts +1 -0
  227. package/src/models/ConsentFlowTerms.ts +4 -0
  228. package/src/models/ConsentFlowTransaction.ts +4 -0
  229. package/src/models/Credential.ts +1 -0
  230. package/src/models/CredentialActivity.ts +3 -5
  231. package/src/models/CredentialRefresh.ts +4 -2
  232. package/src/models/InboxCredential.ts +2 -0
  233. package/src/models/credential-refresh-constraints.test.ts +8 -3
  234. package/src/models/credential-refresh-constraints.ts +5 -0
  235. package/src/openapi.ts +8 -0
  236. package/src/routes/act-as.test.ts +239 -0
  237. package/src/routes/app-store.ts +69 -52
  238. package/src/routes/auth-grants.ts +13 -11
  239. package/src/routes/boosts.ts +943 -120
  240. package/src/routes/contracts.ts +55 -7
  241. package/src/routes/credential-refreshes.test.ts +8 -2
  242. package/src/routes/credential-refreshes.ts +4 -1
  243. package/src/routes/credentials.ts +2 -1
  244. package/src/routes/inbox.ts +95 -49
  245. package/src/routes/index.ts +164 -88
  246. package/src/routes/skills.ts +1 -1
  247. package/src/routes/workflows.ts +80 -31
  248. package/src/services/delivery/adapters/postmark.adapter.test.ts +54 -0
  249. package/src/services/delivery/adapters/postmark.adapter.ts +12 -0
  250. package/src/services/registry/registry.factory.ts +2 -1
  251. package/src/types/activity.ts +2 -0
  252. package/src/types/consentflowcontract.ts +21 -3
  253. package/src/types/credential-refresh.ts +21 -2
  254. package/src/types/credential.ts +13 -1
  255. package/src/types/inbox-batch.ts +46 -0
  256. package/test/app-store-listing.spec.ts +66 -30
  257. package/test/atomic-counter.e2e.ts +12 -0
  258. package/test/auth-grant.spec.ts +21 -21
  259. package/test/bitstring-status-list.spec.ts +12 -9
  260. package/test/consentflow.spec.ts +453 -26
  261. package/test/credential-refresh-email.spec.ts +663 -0
  262. package/test/credential-refresh-publication.spec.ts +13 -5
  263. package/test/guardian-gated-routes.spec.ts +337 -180
  264. package/test/helpers/inbox-e2e-environment.ts +6 -0
  265. package/test/inbox-batch.spec.ts +1338 -0
  266. package/test/inbox-refresh.spec.ts +534 -0
  267. package/test/inbox-security.e2e.ts +48 -3
  268. package/test/openapi.spec.ts +41 -1
  269. package/test/refresh-send.spec.ts +1799 -0
  270. package/test/registry.spec.ts +56 -11
  271. package/test/revoke-suspend-per-instance.spec.ts +9 -1
  272. package/vitest.config.ts +13 -0
  273. package/vitest.inbox-e2e.config.ts +5 -1
  274. package/vitest.integration.config.ts +2 -0
@@ -147,9 +147,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
147
147
  proof: {
148
148
  [x: string]: any;
149
149
  type: string;
150
- created: string;
151
150
  proofPurpose: string;
152
151
  verificationMethod: string;
152
+ created?: string | undefined;
153
153
  challenge?: string | undefined;
154
154
  domain?: string | undefined;
155
155
  nonce?: string | undefined;
@@ -157,9 +157,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
157
157
  } | {
158
158
  [x: string]: any;
159
159
  type: string;
160
- created: string;
161
160
  proofPurpose: string;
162
161
  verificationMethod: string;
162
+ created?: string | undefined;
163
163
  challenge?: string | undefined;
164
164
  domain?: string | undefined;
165
165
  nonce?: string | undefined;
@@ -260,9 +260,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
260
260
  proof: {
261
261
  [x: string]: any;
262
262
  type: string;
263
- created: string;
264
263
  proofPurpose: string;
265
264
  verificationMethod: string;
265
+ created?: string | undefined;
266
266
  challenge?: string | undefined;
267
267
  domain?: string | undefined;
268
268
  nonce?: string | undefined;
@@ -270,9 +270,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
270
270
  } | {
271
271
  [x: string]: any;
272
272
  type: string;
273
- created: string;
274
273
  proofPurpose: string;
275
274
  verificationMethod: string;
275
+ created?: string | undefined;
276
276
  challenge?: string | undefined;
277
277
  domain?: string | undefined;
278
278
  nonce?: string | undefined;
@@ -339,9 +339,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
339
339
  proof: {
340
340
  [x: string]: any;
341
341
  type: string;
342
- created: string;
343
342
  proofPurpose: string;
344
343
  verificationMethod: string;
344
+ created?: string | undefined;
345
345
  challenge?: string | undefined;
346
346
  domain?: string | undefined;
347
347
  nonce?: string | undefined;
@@ -349,9 +349,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
349
349
  } | {
350
350
  [x: string]: any;
351
351
  type: string;
352
- created: string;
353
352
  proofPurpose: string;
354
353
  verificationMethod: string;
354
+ created?: string | undefined;
355
355
  challenge?: string | undefined;
356
356
  domain?: string | undefined;
357
357
  nonce?: string | undefined;
@@ -505,9 +505,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
505
505
  proof: {
506
506
  [x: string]: any;
507
507
  type: string;
508
- created: string;
509
508
  proofPurpose: string;
510
509
  verificationMethod: string;
510
+ created?: string | undefined;
511
511
  challenge?: string | undefined;
512
512
  domain?: string | undefined;
513
513
  nonce?: string | undefined;
@@ -515,9 +515,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
515
515
  } | {
516
516
  [x: string]: any;
517
517
  type: string;
518
- created: string;
519
518
  proofPurpose: string;
520
519
  verificationMethod: string;
520
+ created?: string | undefined;
521
521
  challenge?: string | undefined;
522
522
  domain?: string | undefined;
523
523
  nonce?: string | undefined;
@@ -760,7 +760,796 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
760
760
  })[] | undefined;
761
761
  } | undefined;
762
762
  templateUri?: string | undefined;
763
+ refresh?: boolean | undefined;
764
+ idempotencyKey?: string | undefined;
763
765
  configuration?: {
766
+ guardianEmail?: string | undefined;
767
+ signingAuthority?: {
768
+ endpoint: string;
769
+ name: string;
770
+ } | undefined;
771
+ webhookUrl?: string | undefined;
772
+ expiresInDays?: number | undefined;
773
+ templateData?: Record<string, unknown> | undefined;
774
+ delivery?: {
775
+ suppress?: boolean | undefined;
776
+ template?: {
777
+ model: {
778
+ issuer?: {
779
+ name?: string | undefined;
780
+ logoUrl?: string | undefined;
781
+ } | undefined;
782
+ credential?: {
783
+ name?: string | undefined;
784
+ type?: string | undefined;
785
+ } | undefined;
786
+ recipient?: {
787
+ name?: string | undefined;
788
+ } | undefined;
789
+ };
790
+ id?: "universal-inbox-claim" | undefined;
791
+ } | undefined;
792
+ } | undefined;
793
+ } | undefined;
794
+ };
795
+ output: {
796
+ issuanceId: string;
797
+ status: "PENDING" | "DELIVERED" | "CLAIMED" | "EXPIRED" | "ISSUED";
798
+ recipient: {
799
+ type: "email";
800
+ value: string;
801
+ } | {
802
+ type: "phone";
803
+ value: string;
804
+ };
805
+ refresh?: {
806
+ refreshService: {
807
+ [x: string]: any;
808
+ id: string;
809
+ type: "LearnCardCredentialRefresh2026";
810
+ authorization?: {
811
+ [x: string]: any;
812
+ type: "LearnCardDIDAuth";
813
+ } | undefined;
814
+ };
815
+ credentialId: string;
816
+ refreshId: string;
817
+ issuerDid: string;
818
+ credentialStatus?: {
819
+ [x: string]: any;
820
+ type: string;
821
+ id?: string | undefined;
822
+ } | {
823
+ [x: string]: any;
824
+ type: string;
825
+ id?: string | undefined;
826
+ }[] | undefined;
827
+ holderDid?: string | undefined;
828
+ } | undefined;
829
+ claimUrl?: string | undefined;
830
+ recipientDid?: string | undefined;
831
+ };
832
+ meta: import(".././routes/index").RouteMetadata;
833
+ }>;
834
+ issueBatch: import("@trpc/server").TRPCMutationProcedure<{
835
+ input: {
836
+ items: {
837
+ recipient: {
838
+ type: "email";
839
+ value: string;
840
+ } | {
841
+ type: "phone";
842
+ value: string;
843
+ };
844
+ configuration?: {
845
+ signingAuthority?: {
846
+ endpoint: string;
847
+ name: string;
848
+ } | undefined;
849
+ webhookUrl?: string | undefined;
850
+ expiresInDays?: number | undefined;
851
+ templateData?: Record<string, unknown> | undefined;
852
+ refresh?: boolean | undefined;
853
+ delivery?: {
854
+ template?: {
855
+ model: {
856
+ issuer?: {
857
+ name?: string | undefined;
858
+ logoUrl?: string | undefined;
859
+ } | undefined;
860
+ credential?: {
861
+ name?: string | undefined;
862
+ type?: string | undefined;
863
+ } | undefined;
864
+ recipient?: {
865
+ name?: string | undefined;
866
+ } | undefined;
867
+ };
868
+ id?: "universal-inbox-claim" | undefined;
869
+ } | undefined;
870
+ suppress?: boolean | undefined;
871
+ } | undefined;
872
+ guardianEmail?: string | null | undefined;
873
+ } | undefined;
874
+ idempotencyKey?: string | undefined;
875
+ credential?: {
876
+ [x: string]: any;
877
+ '@context': (string | Record<string, any>)[];
878
+ type: string[];
879
+ issuer: string | {
880
+ [x: string]: any;
881
+ id?: string | undefined;
882
+ type?: string | string[] | undefined;
883
+ name?: string | undefined;
884
+ url?: string | undefined;
885
+ phone?: string | undefined;
886
+ description?: string | undefined;
887
+ endorsement?: any[] | undefined;
888
+ image?: string | {
889
+ id: string;
890
+ type: string;
891
+ caption?: string | undefined;
892
+ } | undefined;
893
+ email?: string | undefined;
894
+ address?: {
895
+ type: string | string[];
896
+ addressCountry?: string | undefined;
897
+ addressCountryCode?: string | undefined;
898
+ addressRegion?: string | undefined;
899
+ addressLocality?: string | undefined;
900
+ streetAddress?: string | undefined;
901
+ postOfficeBoxNumber?: string | undefined;
902
+ postalCode?: string | undefined;
903
+ geo?: {
904
+ type: string | string[];
905
+ latitude: number;
906
+ longitude: number;
907
+ } | undefined;
908
+ } | undefined;
909
+ otherIdentifier?: {
910
+ type: string | string[];
911
+ identifier: string;
912
+ identifierType: string;
913
+ }[] | undefined;
914
+ official?: string | undefined;
915
+ parentOrg?: any;
916
+ familyName?: string | undefined;
917
+ givenName?: string | undefined;
918
+ additionalName?: string | undefined;
919
+ patronymicName?: string | undefined;
920
+ honorificPrefix?: string | undefined;
921
+ honorificSuffix?: string | undefined;
922
+ familyNamePrefix?: string | undefined;
923
+ dateOfBirth?: string | undefined;
924
+ };
925
+ credentialSubject: {
926
+ [x: string]: any;
927
+ id?: string | undefined;
928
+ } | {
929
+ [x: string]: any;
930
+ id?: string | undefined;
931
+ }[];
932
+ proof: {
933
+ [x: string]: any;
934
+ type: string;
935
+ proofPurpose: string;
936
+ verificationMethod: string;
937
+ created?: string | undefined;
938
+ challenge?: string | undefined;
939
+ domain?: string | undefined;
940
+ nonce?: string | undefined;
941
+ jws?: string | undefined;
942
+ } | {
943
+ [x: string]: any;
944
+ type: string;
945
+ proofPurpose: string;
946
+ verificationMethod: string;
947
+ created?: string | undefined;
948
+ challenge?: string | undefined;
949
+ domain?: string | undefined;
950
+ nonce?: string | undefined;
951
+ jws?: string | undefined;
952
+ }[];
953
+ id?: string | undefined;
954
+ refreshService?: {
955
+ [x: string]: any;
956
+ type: string;
957
+ id?: string | undefined;
958
+ } | {
959
+ [x: string]: any;
960
+ type: string;
961
+ id?: string | undefined;
962
+ }[] | undefined;
963
+ credentialSchema?: {
964
+ [x: string]: any;
965
+ id: string;
966
+ type: string;
967
+ } | {
968
+ [x: string]: any;
969
+ id: string;
970
+ type: string;
971
+ }[] | undefined;
972
+ issuanceDate?: string | undefined;
973
+ expirationDate?: string | undefined;
974
+ credentialStatus?: {
975
+ [x: string]: any;
976
+ type: string;
977
+ id?: string | undefined;
978
+ } | {
979
+ [x: string]: any;
980
+ type: string;
981
+ id?: string | undefined;
982
+ }[] | undefined;
983
+ name?: string | undefined;
984
+ description?: string | undefined;
985
+ validFrom?: string | undefined;
986
+ validUntil?: string | undefined;
987
+ status?: {
988
+ [x: string]: any;
989
+ type: string;
990
+ id?: string | undefined;
991
+ } | {
992
+ [x: string]: any;
993
+ type: string;
994
+ id?: string | undefined;
995
+ }[] | undefined;
996
+ termsOfUse?: {
997
+ [x: string]: any;
998
+ type: string;
999
+ id?: string | undefined;
1000
+ } | {
1001
+ [x: string]: any;
1002
+ type: string;
1003
+ id?: string | undefined;
1004
+ }[] | undefined;
1005
+ evidence?: {
1006
+ [x: string]: any;
1007
+ type: string[];
1008
+ id?: string | undefined;
1009
+ name?: string | undefined;
1010
+ narrative?: string | undefined;
1011
+ description?: string | undefined;
1012
+ genre?: string | undefined;
1013
+ audience?: string | undefined;
1014
+ } | {
1015
+ [x: string]: any;
1016
+ type: string[];
1017
+ id?: string | undefined;
1018
+ name?: string | undefined;
1019
+ narrative?: string | undefined;
1020
+ description?: string | undefined;
1021
+ genre?: string | undefined;
1022
+ audience?: string | undefined;
1023
+ }[] | undefined;
1024
+ renderMethod?: Record<string, any> | {
1025
+ type: "TemplateRenderMethod";
1026
+ renderSuite: string;
1027
+ template: string;
1028
+ renderProperty?: string[] | undefined;
1029
+ outputPreference?: {
1030
+ mediaType: string;
1031
+ } | undefined;
1032
+ } | (Record<string, any> | {
1033
+ type: "TemplateRenderMethod";
1034
+ renderSuite: string;
1035
+ template: string;
1036
+ renderProperty?: string[] | undefined;
1037
+ outputPreference?: {
1038
+ mediaType: string;
1039
+ } | undefined;
1040
+ })[] | undefined;
1041
+ } | {
1042
+ [x: string]: any;
1043
+ '@context': (string | Record<string, any>)[];
1044
+ type: string | string[];
1045
+ proof: {
1046
+ [x: string]: any;
1047
+ type: string;
1048
+ proofPurpose: string;
1049
+ verificationMethod: string;
1050
+ created?: string | undefined;
1051
+ challenge?: string | undefined;
1052
+ domain?: string | undefined;
1053
+ nonce?: string | undefined;
1054
+ jws?: string | undefined;
1055
+ } | {
1056
+ [x: string]: any;
1057
+ type: string;
1058
+ proofPurpose: string;
1059
+ verificationMethod: string;
1060
+ created?: string | undefined;
1061
+ challenge?: string | undefined;
1062
+ domain?: string | undefined;
1063
+ nonce?: string | undefined;
1064
+ jws?: string | undefined;
1065
+ }[];
1066
+ id?: string | undefined;
1067
+ verifiableCredential?: {
1068
+ [x: string]: any;
1069
+ '@context': (string | Record<string, any>)[];
1070
+ type: string[];
1071
+ issuer: string | {
1072
+ [x: string]: any;
1073
+ id?: string | undefined;
1074
+ type?: string | string[] | undefined;
1075
+ name?: string | undefined;
1076
+ url?: string | undefined;
1077
+ phone?: string | undefined;
1078
+ description?: string | undefined;
1079
+ endorsement?: any[] | undefined;
1080
+ image?: string | {
1081
+ id: string;
1082
+ type: string;
1083
+ caption?: string | undefined;
1084
+ } | undefined;
1085
+ email?: string | undefined;
1086
+ address?: {
1087
+ type: string | string[];
1088
+ addressCountry?: string | undefined;
1089
+ addressCountryCode?: string | undefined;
1090
+ addressRegion?: string | undefined;
1091
+ addressLocality?: string | undefined;
1092
+ streetAddress?: string | undefined;
1093
+ postOfficeBoxNumber?: string | undefined;
1094
+ postalCode?: string | undefined;
1095
+ geo?: {
1096
+ type: string | string[];
1097
+ latitude: number;
1098
+ longitude: number;
1099
+ } | undefined;
1100
+ } | undefined;
1101
+ otherIdentifier?: {
1102
+ type: string | string[];
1103
+ identifier: string;
1104
+ identifierType: string;
1105
+ }[] | undefined;
1106
+ official?: string | undefined;
1107
+ parentOrg?: any;
1108
+ familyName?: string | undefined;
1109
+ givenName?: string | undefined;
1110
+ additionalName?: string | undefined;
1111
+ patronymicName?: string | undefined;
1112
+ honorificPrefix?: string | undefined;
1113
+ honorificSuffix?: string | undefined;
1114
+ familyNamePrefix?: string | undefined;
1115
+ dateOfBirth?: string | undefined;
1116
+ };
1117
+ credentialSubject: {
1118
+ [x: string]: any;
1119
+ id?: string | undefined;
1120
+ } | {
1121
+ [x: string]: any;
1122
+ id?: string | undefined;
1123
+ }[];
1124
+ proof: {
1125
+ [x: string]: any;
1126
+ type: string;
1127
+ proofPurpose: string;
1128
+ verificationMethod: string;
1129
+ created?: string | undefined;
1130
+ challenge?: string | undefined;
1131
+ domain?: string | undefined;
1132
+ nonce?: string | undefined;
1133
+ jws?: string | undefined;
1134
+ } | {
1135
+ [x: string]: any;
1136
+ type: string;
1137
+ proofPurpose: string;
1138
+ verificationMethod: string;
1139
+ created?: string | undefined;
1140
+ challenge?: string | undefined;
1141
+ domain?: string | undefined;
1142
+ nonce?: string | undefined;
1143
+ jws?: string | undefined;
1144
+ }[];
1145
+ id?: string | undefined;
1146
+ refreshService?: {
1147
+ [x: string]: any;
1148
+ type: string;
1149
+ id?: string | undefined;
1150
+ } | {
1151
+ [x: string]: any;
1152
+ type: string;
1153
+ id?: string | undefined;
1154
+ }[] | undefined;
1155
+ credentialSchema?: {
1156
+ [x: string]: any;
1157
+ id: string;
1158
+ type: string;
1159
+ } | {
1160
+ [x: string]: any;
1161
+ id: string;
1162
+ type: string;
1163
+ }[] | undefined;
1164
+ issuanceDate?: string | undefined;
1165
+ expirationDate?: string | undefined;
1166
+ credentialStatus?: {
1167
+ [x: string]: any;
1168
+ type: string;
1169
+ id?: string | undefined;
1170
+ } | {
1171
+ [x: string]: any;
1172
+ type: string;
1173
+ id?: string | undefined;
1174
+ }[] | undefined;
1175
+ name?: string | undefined;
1176
+ description?: string | undefined;
1177
+ validFrom?: string | undefined;
1178
+ validUntil?: string | undefined;
1179
+ status?: {
1180
+ [x: string]: any;
1181
+ type: string;
1182
+ id?: string | undefined;
1183
+ } | {
1184
+ [x: string]: any;
1185
+ type: string;
1186
+ id?: string | undefined;
1187
+ }[] | undefined;
1188
+ termsOfUse?: {
1189
+ [x: string]: any;
1190
+ type: string;
1191
+ id?: string | undefined;
1192
+ } | {
1193
+ [x: string]: any;
1194
+ type: string;
1195
+ id?: string | undefined;
1196
+ }[] | undefined;
1197
+ evidence?: {
1198
+ [x: string]: any;
1199
+ type: string[];
1200
+ id?: string | undefined;
1201
+ name?: string | undefined;
1202
+ narrative?: string | undefined;
1203
+ description?: string | undefined;
1204
+ genre?: string | undefined;
1205
+ audience?: string | undefined;
1206
+ } | {
1207
+ [x: string]: any;
1208
+ type: string[];
1209
+ id?: string | undefined;
1210
+ name?: string | undefined;
1211
+ narrative?: string | undefined;
1212
+ description?: string | undefined;
1213
+ genre?: string | undefined;
1214
+ audience?: string | undefined;
1215
+ }[] | undefined;
1216
+ renderMethod?: Record<string, any> | {
1217
+ type: "TemplateRenderMethod";
1218
+ renderSuite: string;
1219
+ template: string;
1220
+ renderProperty?: string[] | undefined;
1221
+ outputPreference?: {
1222
+ mediaType: string;
1223
+ } | undefined;
1224
+ } | (Record<string, any> | {
1225
+ type: "TemplateRenderMethod";
1226
+ renderSuite: string;
1227
+ template: string;
1228
+ renderProperty?: string[] | undefined;
1229
+ outputPreference?: {
1230
+ mediaType: string;
1231
+ } | undefined;
1232
+ })[] | undefined;
1233
+ } | {
1234
+ [x: string]: any;
1235
+ '@context': (string | Record<string, any>)[];
1236
+ type: string[];
1237
+ issuer: string | {
1238
+ [x: string]: any;
1239
+ id?: string | undefined;
1240
+ type?: string | string[] | undefined;
1241
+ name?: string | undefined;
1242
+ url?: string | undefined;
1243
+ phone?: string | undefined;
1244
+ description?: string | undefined;
1245
+ endorsement?: any[] | undefined;
1246
+ image?: string | {
1247
+ id: string;
1248
+ type: string;
1249
+ caption?: string | undefined;
1250
+ } | undefined;
1251
+ email?: string | undefined;
1252
+ address?: {
1253
+ type: string | string[];
1254
+ addressCountry?: string | undefined;
1255
+ addressCountryCode?: string | undefined;
1256
+ addressRegion?: string | undefined;
1257
+ addressLocality?: string | undefined;
1258
+ streetAddress?: string | undefined;
1259
+ postOfficeBoxNumber?: string | undefined;
1260
+ postalCode?: string | undefined;
1261
+ geo?: {
1262
+ type: string | string[];
1263
+ latitude: number;
1264
+ longitude: number;
1265
+ } | undefined;
1266
+ } | undefined;
1267
+ otherIdentifier?: {
1268
+ type: string | string[];
1269
+ identifier: string;
1270
+ identifierType: string;
1271
+ }[] | undefined;
1272
+ official?: string | undefined;
1273
+ parentOrg?: any;
1274
+ familyName?: string | undefined;
1275
+ givenName?: string | undefined;
1276
+ additionalName?: string | undefined;
1277
+ patronymicName?: string | undefined;
1278
+ honorificPrefix?: string | undefined;
1279
+ honorificSuffix?: string | undefined;
1280
+ familyNamePrefix?: string | undefined;
1281
+ dateOfBirth?: string | undefined;
1282
+ };
1283
+ credentialSubject: {
1284
+ [x: string]: any;
1285
+ id?: string | undefined;
1286
+ } | {
1287
+ [x: string]: any;
1288
+ id?: string | undefined;
1289
+ }[];
1290
+ proof: {
1291
+ [x: string]: any;
1292
+ type: string;
1293
+ proofPurpose: string;
1294
+ verificationMethod: string;
1295
+ created?: string | undefined;
1296
+ challenge?: string | undefined;
1297
+ domain?: string | undefined;
1298
+ nonce?: string | undefined;
1299
+ jws?: string | undefined;
1300
+ } | {
1301
+ [x: string]: any;
1302
+ type: string;
1303
+ proofPurpose: string;
1304
+ verificationMethod: string;
1305
+ created?: string | undefined;
1306
+ challenge?: string | undefined;
1307
+ domain?: string | undefined;
1308
+ nonce?: string | undefined;
1309
+ jws?: string | undefined;
1310
+ }[];
1311
+ id?: string | undefined;
1312
+ refreshService?: {
1313
+ [x: string]: any;
1314
+ type: string;
1315
+ id?: string | undefined;
1316
+ } | {
1317
+ [x: string]: any;
1318
+ type: string;
1319
+ id?: string | undefined;
1320
+ }[] | undefined;
1321
+ credentialSchema?: {
1322
+ [x: string]: any;
1323
+ id: string;
1324
+ type: string;
1325
+ } | {
1326
+ [x: string]: any;
1327
+ id: string;
1328
+ type: string;
1329
+ }[] | undefined;
1330
+ issuanceDate?: string | undefined;
1331
+ expirationDate?: string | undefined;
1332
+ credentialStatus?: {
1333
+ [x: string]: any;
1334
+ type: string;
1335
+ id?: string | undefined;
1336
+ } | {
1337
+ [x: string]: any;
1338
+ type: string;
1339
+ id?: string | undefined;
1340
+ }[] | undefined;
1341
+ name?: string | undefined;
1342
+ description?: string | undefined;
1343
+ validFrom?: string | undefined;
1344
+ validUntil?: string | undefined;
1345
+ status?: {
1346
+ [x: string]: any;
1347
+ type: string;
1348
+ id?: string | undefined;
1349
+ } | {
1350
+ [x: string]: any;
1351
+ type: string;
1352
+ id?: string | undefined;
1353
+ }[] | undefined;
1354
+ termsOfUse?: {
1355
+ [x: string]: any;
1356
+ type: string;
1357
+ id?: string | undefined;
1358
+ } | {
1359
+ [x: string]: any;
1360
+ type: string;
1361
+ id?: string | undefined;
1362
+ }[] | undefined;
1363
+ evidence?: {
1364
+ [x: string]: any;
1365
+ type: string[];
1366
+ id?: string | undefined;
1367
+ name?: string | undefined;
1368
+ narrative?: string | undefined;
1369
+ description?: string | undefined;
1370
+ genre?: string | undefined;
1371
+ audience?: string | undefined;
1372
+ } | {
1373
+ [x: string]: any;
1374
+ type: string[];
1375
+ id?: string | undefined;
1376
+ name?: string | undefined;
1377
+ narrative?: string | undefined;
1378
+ description?: string | undefined;
1379
+ genre?: string | undefined;
1380
+ audience?: string | undefined;
1381
+ }[] | undefined;
1382
+ renderMethod?: Record<string, any> | {
1383
+ type: "TemplateRenderMethod";
1384
+ renderSuite: string;
1385
+ template: string;
1386
+ renderProperty?: string[] | undefined;
1387
+ outputPreference?: {
1388
+ mediaType: string;
1389
+ } | undefined;
1390
+ } | (Record<string, any> | {
1391
+ type: "TemplateRenderMethod";
1392
+ renderSuite: string;
1393
+ template: string;
1394
+ renderProperty?: string[] | undefined;
1395
+ outputPreference?: {
1396
+ mediaType: string;
1397
+ } | undefined;
1398
+ })[] | undefined;
1399
+ }[] | undefined;
1400
+ holder?: string | undefined;
1401
+ } | {
1402
+ [x: string]: any;
1403
+ '@context': (string | Record<string, any>)[];
1404
+ type: string[];
1405
+ issuer: string | {
1406
+ [x: string]: any;
1407
+ id?: string | undefined;
1408
+ type?: string | string[] | undefined;
1409
+ name?: string | undefined;
1410
+ url?: string | undefined;
1411
+ phone?: string | undefined;
1412
+ description?: string | undefined;
1413
+ endorsement?: any[] | undefined;
1414
+ image?: string | {
1415
+ id: string;
1416
+ type: string;
1417
+ caption?: string | undefined;
1418
+ } | undefined;
1419
+ email?: string | undefined;
1420
+ address?: {
1421
+ type: string | string[];
1422
+ addressCountry?: string | undefined;
1423
+ addressCountryCode?: string | undefined;
1424
+ addressRegion?: string | undefined;
1425
+ addressLocality?: string | undefined;
1426
+ streetAddress?: string | undefined;
1427
+ postOfficeBoxNumber?: string | undefined;
1428
+ postalCode?: string | undefined;
1429
+ geo?: {
1430
+ type: string | string[];
1431
+ latitude: number;
1432
+ longitude: number;
1433
+ } | undefined;
1434
+ } | undefined;
1435
+ otherIdentifier?: {
1436
+ type: string | string[];
1437
+ identifier: string;
1438
+ identifierType: string;
1439
+ }[] | undefined;
1440
+ official?: string | undefined;
1441
+ parentOrg?: any;
1442
+ familyName?: string | undefined;
1443
+ givenName?: string | undefined;
1444
+ additionalName?: string | undefined;
1445
+ patronymicName?: string | undefined;
1446
+ honorificPrefix?: string | undefined;
1447
+ honorificSuffix?: string | undefined;
1448
+ familyNamePrefix?: string | undefined;
1449
+ dateOfBirth?: string | undefined;
1450
+ };
1451
+ credentialSubject: {
1452
+ [x: string]: any;
1453
+ id?: string | undefined;
1454
+ } | {
1455
+ [x: string]: any;
1456
+ id?: string | undefined;
1457
+ }[];
1458
+ id?: string | undefined;
1459
+ refreshService?: {
1460
+ [x: string]: any;
1461
+ type: string;
1462
+ id?: string | undefined;
1463
+ } | {
1464
+ [x: string]: any;
1465
+ type: string;
1466
+ id?: string | undefined;
1467
+ }[] | undefined;
1468
+ credentialSchema?: {
1469
+ [x: string]: any;
1470
+ id: string;
1471
+ type: string;
1472
+ } | {
1473
+ [x: string]: any;
1474
+ id: string;
1475
+ type: string;
1476
+ }[] | undefined;
1477
+ issuanceDate?: string | undefined;
1478
+ expirationDate?: string | undefined;
1479
+ credentialStatus?: {
1480
+ [x: string]: any;
1481
+ type: string;
1482
+ id?: string | undefined;
1483
+ } | {
1484
+ [x: string]: any;
1485
+ type: string;
1486
+ id?: string | undefined;
1487
+ }[] | undefined;
1488
+ name?: string | undefined;
1489
+ description?: string | undefined;
1490
+ validFrom?: string | undefined;
1491
+ validUntil?: string | undefined;
1492
+ status?: {
1493
+ [x: string]: any;
1494
+ type: string;
1495
+ id?: string | undefined;
1496
+ } | {
1497
+ [x: string]: any;
1498
+ type: string;
1499
+ id?: string | undefined;
1500
+ }[] | undefined;
1501
+ termsOfUse?: {
1502
+ [x: string]: any;
1503
+ type: string;
1504
+ id?: string | undefined;
1505
+ } | {
1506
+ [x: string]: any;
1507
+ type: string;
1508
+ id?: string | undefined;
1509
+ }[] | undefined;
1510
+ evidence?: {
1511
+ [x: string]: any;
1512
+ type: string[];
1513
+ id?: string | undefined;
1514
+ name?: string | undefined;
1515
+ narrative?: string | undefined;
1516
+ description?: string | undefined;
1517
+ genre?: string | undefined;
1518
+ audience?: string | undefined;
1519
+ } | {
1520
+ [x: string]: any;
1521
+ type: string[];
1522
+ id?: string | undefined;
1523
+ name?: string | undefined;
1524
+ narrative?: string | undefined;
1525
+ description?: string | undefined;
1526
+ genre?: string | undefined;
1527
+ audience?: string | undefined;
1528
+ }[] | undefined;
1529
+ renderMethod?: Record<string, any> | {
1530
+ type: "TemplateRenderMethod";
1531
+ renderSuite: string;
1532
+ template: string;
1533
+ renderProperty?: string[] | undefined;
1534
+ outputPreference?: {
1535
+ mediaType: string;
1536
+ } | undefined;
1537
+ } | (Record<string, any> | {
1538
+ type: "TemplateRenderMethod";
1539
+ renderSuite: string;
1540
+ template: string;
1541
+ renderProperty?: string[] | undefined;
1542
+ outputPreference?: {
1543
+ mediaType: string;
1544
+ } | undefined;
1545
+ })[] | undefined;
1546
+ } | undefined;
1547
+ templateUri?: string | undefined;
1548
+ refresh?: boolean | undefined;
1549
+ }[];
1550
+ requestId?: string | undefined;
1551
+ configuration?: {
1552
+ guardianEmail?: string | undefined;
764
1553
  signingAuthority?: {
765
1554
  endpoint: string;
766
1555
  name: string;
@@ -768,8 +1557,8 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
768
1557
  webhookUrl?: string | undefined;
769
1558
  expiresInDays?: number | undefined;
770
1559
  templateData?: Record<string, unknown> | undefined;
1560
+ refresh?: boolean | undefined;
771
1561
  delivery?: {
772
- suppress?: boolean | undefined;
773
1562
  template?: {
774
1563
  model: {
775
1564
  issuer?: {
@@ -786,21 +1575,99 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
786
1575
  };
787
1576
  id?: "universal-inbox-claim" | undefined;
788
1577
  } | undefined;
1578
+ suppress?: boolean | undefined;
789
1579
  } | undefined;
790
1580
  } | undefined;
791
1581
  };
792
1582
  output: {
793
- issuanceId: string;
794
- status: "PENDING" | "DELIVERED" | "CLAIMED" | "EXPIRED" | "ISSUED";
795
- recipient: {
796
- type: "email";
797
- value: string;
798
- } | {
799
- type: "phone";
800
- value: string;
1583
+ batchId: string;
1584
+ status: "QUEUED" | "PROCESSING" | "COMPLETED" | "NEEDS_RECONCILIATION";
1585
+ createdAt: string;
1586
+ };
1587
+ meta: import(".././routes/index").RouteMetadata;
1588
+ }>;
1589
+ getBatch: import("@trpc/server").TRPCQueryProcedure<{
1590
+ input: {
1591
+ batchId: string;
1592
+ };
1593
+ output: {
1594
+ batchId: string;
1595
+ createdAt: string;
1596
+ done: boolean;
1597
+ status: "QUEUED" | "PROCESSING" | "COMPLETED" | "NEEDS_RECONCILIATION";
1598
+ items: {
1599
+ index: number;
1600
+ state: "QUEUED" | "PROCESSING" | "COMPLETED" | "NEEDS_RECONCILIATION";
1601
+ result?: {
1602
+ issuanceId: string;
1603
+ status: "PENDING" | "DELIVERED" | "CLAIMED" | "EXPIRED" | "ISSUED";
1604
+ recipient: {
1605
+ type: "email";
1606
+ value: string;
1607
+ } | {
1608
+ type: "phone";
1609
+ value: string;
1610
+ };
1611
+ success: true;
1612
+ index: number;
1613
+ refresh?: {
1614
+ refreshService: {
1615
+ [x: string]: any;
1616
+ id: string;
1617
+ type: "LearnCardCredentialRefresh2026";
1618
+ authorization?: {
1619
+ [x: string]: any;
1620
+ type: "LearnCardDIDAuth";
1621
+ } | undefined;
1622
+ };
1623
+ credentialId: string;
1624
+ refreshId: string;
1625
+ issuerDid: string;
1626
+ credentialStatus?: {
1627
+ [x: string]: any;
1628
+ type: string;
1629
+ id?: string | undefined;
1630
+ } | {
1631
+ [x: string]: any;
1632
+ type: string;
1633
+ id?: string | undefined;
1634
+ }[] | undefined;
1635
+ holderDid?: string | undefined;
1636
+ } | undefined;
1637
+ claimUrl?: string | undefined;
1638
+ recipientDid?: string | undefined;
1639
+ deduplicated?: boolean | undefined;
1640
+ guardianStatus?: "AWAITING_GUARDIAN" | "GUARDIAN_APPROVED" | "GUARDIAN_REJECTED" | undefined;
1641
+ idempotencyKey?: string | undefined;
1642
+ } | {
1643
+ success: false;
1644
+ index: number;
1645
+ error: {
1646
+ code: string;
1647
+ message: string;
1648
+ reason?: "DUPLICATE_KEY" | "IDEMPOTENCY_MISMATCH" | "IN_PROGRESS" | "UNCONFIRMED" | undefined;
1649
+ };
1650
+ idempotencyKey?: string | undefined;
1651
+ recipient?: {
1652
+ type: "email";
1653
+ value: string;
1654
+ } | {
1655
+ type: "phone";
1656
+ value: string;
1657
+ } | undefined;
1658
+ issuanceId?: string | undefined;
1659
+ claimUrl?: string | undefined;
1660
+ } | undefined;
1661
+ }[];
1662
+ summary: {
1663
+ total: number;
1664
+ succeeded: number;
1665
+ failed: number;
1666
+ deduplicated: number;
1667
+ completed: number;
1668
+ pending: number;
1669
+ unconfirmed: number;
801
1670
  };
802
- claimUrl?: string | undefined;
803
- recipientDid?: string | undefined;
804
1671
  };
805
1672
  meta: import(".././routes/index").RouteMetadata;
806
1673
  }>;
@@ -866,9 +1733,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
866
1733
  proof: {
867
1734
  [x: string]: any;
868
1735
  type: string;
869
- created: string;
870
1736
  proofPurpose: string;
871
1737
  verificationMethod: string;
1738
+ created?: string | undefined;
872
1739
  challenge?: string | undefined;
873
1740
  domain?: string | undefined;
874
1741
  nonce?: string | undefined;
@@ -876,9 +1743,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
876
1743
  } | {
877
1744
  [x: string]: any;
878
1745
  type: string;
879
- created: string;
880
1746
  proofPurpose: string;
881
1747
  verificationMethod: string;
1748
+ created?: string | undefined;
882
1749
  challenge?: string | undefined;
883
1750
  domain?: string | undefined;
884
1751
  nonce?: string | undefined;
@@ -979,9 +1846,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
979
1846
  proof: {
980
1847
  [x: string]: any;
981
1848
  type: string;
982
- created: string;
983
1849
  proofPurpose: string;
984
1850
  verificationMethod: string;
1851
+ created?: string | undefined;
985
1852
  challenge?: string | undefined;
986
1853
  domain?: string | undefined;
987
1854
  nonce?: string | undefined;
@@ -989,9 +1856,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
989
1856
  } | {
990
1857
  [x: string]: any;
991
1858
  type: string;
992
- created: string;
993
1859
  proofPurpose: string;
994
1860
  verificationMethod: string;
1861
+ created?: string | undefined;
995
1862
  challenge?: string | undefined;
996
1863
  domain?: string | undefined;
997
1864
  nonce?: string | undefined;
@@ -1058,9 +1925,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1058
1925
  proof: {
1059
1926
  [x: string]: any;
1060
1927
  type: string;
1061
- created: string;
1062
1928
  proofPurpose: string;
1063
1929
  verificationMethod: string;
1930
+ created?: string | undefined;
1064
1931
  challenge?: string | undefined;
1065
1932
  domain?: string | undefined;
1066
1933
  nonce?: string | undefined;
@@ -1068,9 +1935,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1068
1935
  } | {
1069
1936
  [x: string]: any;
1070
1937
  type: string;
1071
- created: string;
1072
1938
  proofPurpose: string;
1073
1939
  verificationMethod: string;
1940
+ created?: string | undefined;
1074
1941
  challenge?: string | undefined;
1075
1942
  domain?: string | undefined;
1076
1943
  nonce?: string | undefined;
@@ -1224,9 +2091,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1224
2091
  proof: {
1225
2092
  [x: string]: any;
1226
2093
  type: string;
1227
- created: string;
1228
2094
  proofPurpose: string;
1229
2095
  verificationMethod: string;
2096
+ created?: string | undefined;
1230
2097
  challenge?: string | undefined;
1231
2098
  domain?: string | undefined;
1232
2099
  nonce?: string | undefined;
@@ -1234,9 +2101,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1234
2101
  } | {
1235
2102
  [x: string]: any;
1236
2103
  type: string;
1237
- created: string;
1238
2104
  proofPurpose: string;
1239
2105
  verificationMethod: string;
2106
+ created?: string | undefined;
1240
2107
  challenge?: string | undefined;
1241
2108
  domain?: string | undefined;
1242
2109
  nonce?: string | undefined;
@@ -1504,6 +2371,7 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1504
2371
  activityId?: string | undefined;
1505
2372
  integrationId?: string | undefined;
1506
2373
  boostUri?: string | undefined;
2374
+ refreshId?: string | undefined;
1507
2375
  isAccepted?: boolean | undefined;
1508
2376
  finalizedAt?: string | undefined;
1509
2377
  expiredAt?: string | undefined;
@@ -1514,6 +2382,30 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1514
2382
  guardianStatus?: "AWAITING_GUARDIAN" | "GUARDIAN_APPROVED" | "GUARDIAN_REJECTED" | undefined;
1515
2383
  guardianApprovedAt?: string | undefined;
1516
2384
  guardianApprovedByDid?: string | undefined;
2385
+ refresh?: {
2386
+ refreshService: {
2387
+ [x: string]: any;
2388
+ id: string;
2389
+ type: "LearnCardCredentialRefresh2026";
2390
+ authorization?: {
2391
+ [x: string]: any;
2392
+ type: "LearnCardDIDAuth";
2393
+ } | undefined;
2394
+ };
2395
+ credentialId: string;
2396
+ refreshId: string;
2397
+ issuerDid: string;
2398
+ credentialStatus?: {
2399
+ [x: string]: any;
2400
+ type: string;
2401
+ id?: string | undefined;
2402
+ } | {
2403
+ [x: string]: any;
2404
+ type: string;
2405
+ id?: string | undefined;
2406
+ }[] | undefined;
2407
+ holderDid?: string | undefined;
2408
+ } | undefined;
1517
2409
  };
1518
2410
  status: string;
1519
2411
  recipientDid?: string | undefined;
@@ -1587,9 +2479,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1587
2479
  proof: {
1588
2480
  [x: string]: any;
1589
2481
  type: string;
1590
- created: string;
1591
2482
  proofPurpose: string;
1592
2483
  verificationMethod: string;
2484
+ created?: string | undefined;
1593
2485
  challenge?: string | undefined;
1594
2486
  domain?: string | undefined;
1595
2487
  nonce?: string | undefined;
@@ -1597,9 +2489,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1597
2489
  } | {
1598
2490
  [x: string]: any;
1599
2491
  type: string;
1600
- created: string;
1601
2492
  proofPurpose: string;
1602
2493
  verificationMethod: string;
2494
+ created?: string | undefined;
1603
2495
  challenge?: string | undefined;
1604
2496
  domain?: string | undefined;
1605
2497
  nonce?: string | undefined;
@@ -1756,9 +2648,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1756
2648
  proof: {
1757
2649
  [x: string]: any;
1758
2650
  type: string;
1759
- created: string;
1760
2651
  proofPurpose: string;
1761
2652
  verificationMethod: string;
2653
+ created?: string | undefined;
1762
2654
  challenge?: string | undefined;
1763
2655
  domain?: string | undefined;
1764
2656
  nonce?: string | undefined;
@@ -1766,9 +2658,9 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1766
2658
  } | {
1767
2659
  [x: string]: any;
1768
2660
  type: string;
1769
- created: string;
1770
2661
  proofPurpose: string;
1771
2662
  verificationMethod: string;
2663
+ created?: string | undefined;
1772
2664
  challenge?: string | undefined;
1773
2665
  domain?: string | undefined;
1774
2666
  nonce?: string | undefined;
@@ -1904,6 +2796,7 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1904
2796
  activityId?: string | undefined;
1905
2797
  integrationId?: string | undefined;
1906
2798
  boostUri?: string | undefined;
2799
+ refreshId?: string | undefined;
1907
2800
  isAccepted?: boolean | undefined;
1908
2801
  finalizedAt?: string | undefined;
1909
2802
  expiredAt?: string | undefined;
@@ -1914,6 +2807,30 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1914
2807
  guardianStatus?: "AWAITING_GUARDIAN" | "GUARDIAN_APPROVED" | "GUARDIAN_REJECTED" | undefined;
1915
2808
  guardianApprovedAt?: string | undefined;
1916
2809
  guardianApprovedByDid?: string | undefined;
2810
+ refresh?: {
2811
+ refreshService: {
2812
+ [x: string]: any;
2813
+ id: string;
2814
+ type: "LearnCardCredentialRefresh2026";
2815
+ authorization?: {
2816
+ [x: string]: any;
2817
+ type: "LearnCardDIDAuth";
2818
+ } | undefined;
2819
+ };
2820
+ credentialId: string;
2821
+ refreshId: string;
2822
+ issuerDid: string;
2823
+ credentialStatus?: {
2824
+ [x: string]: any;
2825
+ type: string;
2826
+ id?: string | undefined;
2827
+ } | {
2828
+ [x: string]: any;
2829
+ type: string;
2830
+ id?: string | undefined;
2831
+ }[] | undefined;
2832
+ holderDid?: string | undefined;
2833
+ } | undefined;
1917
2834
  }[];
1918
2835
  cursor?: string | undefined;
1919
2836
  };
@@ -1937,6 +2854,7 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1937
2854
  activityId?: string | undefined;
1938
2855
  integrationId?: string | undefined;
1939
2856
  boostUri?: string | undefined;
2857
+ refreshId?: string | undefined;
1940
2858
  isAccepted?: boolean | undefined;
1941
2859
  finalizedAt?: string | undefined;
1942
2860
  expiredAt?: string | undefined;
@@ -1947,6 +2865,30 @@ export declare const inboxRouter: import("@trpc/server").TRPCBuiltRouter<{
1947
2865
  guardianStatus?: "AWAITING_GUARDIAN" | "GUARDIAN_APPROVED" | "GUARDIAN_REJECTED" | undefined;
1948
2866
  guardianApprovedAt?: string | undefined;
1949
2867
  guardianApprovedByDid?: string | undefined;
2868
+ refresh?: {
2869
+ refreshService: {
2870
+ [x: string]: any;
2871
+ id: string;
2872
+ type: "LearnCardCredentialRefresh2026";
2873
+ authorization?: {
2874
+ [x: string]: any;
2875
+ type: "LearnCardDIDAuth";
2876
+ } | undefined;
2877
+ };
2878
+ credentialId: string;
2879
+ refreshId: string;
2880
+ issuerDid: string;
2881
+ credentialStatus?: {
2882
+ [x: string]: any;
2883
+ type: string;
2884
+ id?: string | undefined;
2885
+ } | {
2886
+ [x: string]: any;
2887
+ type: string;
2888
+ id?: string | undefined;
2889
+ }[] | undefined;
2890
+ holderDid?: string | undefined;
2891
+ } | undefined;
1950
2892
  };
1951
2893
  meta: import(".././routes/index").RouteMetadata;
1952
2894
  }>;