@learncard/network-brain-service 3.18.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.
- package/.env.example +4 -0
- package/CHANGELOG.md +80 -0
- package/compose.inbox.yml +7 -0
- package/dist/accesslayer/auth-grant/read.d.ts +1 -0
- package/dist/accesslayer/auth-grant/read.d.ts.map +1 -1
- package/dist/accesslayer/credential-activity/create.d.ts.map +1 -1
- package/dist/accesslayer/credential-refresh/email-delivery.d.ts +18 -0
- package/dist/accesslayer/credential-refresh/email-delivery.d.ts.map +1 -0
- package/dist/accesslayer/credential-refresh/index.d.ts +1 -0
- package/dist/accesslayer/credential-refresh/index.d.ts.map +1 -1
- package/dist/accesslayer/credential-refresh/read.d.ts.map +1 -1
- package/dist/accesslayer/credential-refresh/update.d.ts.map +1 -1
- package/dist/accesslayer/inbox-batch/store.d.ts +33 -0
- package/dist/accesslayer/inbox-batch/store.d.ts.map +1 -0
- package/dist/accesslayer/inbox-credential/create.d.ts +5 -0
- package/dist/accesslayer/inbox-credential/create.d.ts.map +1 -1
- package/dist/accesslayer/inbox-credential/refresh.d.ts +71 -0
- package/dist/accesslayer/inbox-credential/refresh.d.ts.map +1 -0
- package/dist/accesslayer/inbox-credential/update.d.ts +1 -1
- package/dist/accesslayer/inbox-credential/update.d.ts.map +1 -1
- package/dist/cache/atomic-counter.test-helpers.d.ts +3 -0
- package/dist/cache/atomic-counter.test-helpers.d.ts.map +1 -0
- package/dist/cache/atomic-counter.test.d.ts +2 -0
- package/dist/cache/atomic-counter.test.d.ts.map +1 -0
- package/dist/cache/index.d.ts +1 -1
- package/dist/cache/index.d.ts.map +1 -1
- package/dist/config/environment.d.ts +46 -0
- package/dist/config/environment.d.ts.map +1 -1
- package/dist/credential-refresh.d.ts.map +1 -1
- package/dist/helpers/activity.helpers.d.ts +4 -0
- package/dist/helpers/activity.helpers.d.ts.map +1 -1
- package/dist/helpers/contact-method.helpers.d.ts.map +1 -1
- package/dist/helpers/contact-method.helpers.test.d.ts +2 -0
- package/dist/helpers/contact-method.helpers.test.d.ts.map +1 -0
- package/dist/helpers/credential-refresh-email-content.helpers.d.ts +44 -0
- package/dist/helpers/credential-refresh-email-content.helpers.d.ts.map +1 -0
- package/dist/helpers/credential-refresh-email-content.helpers.test.d.ts +2 -0
- package/dist/helpers/credential-refresh-email-content.helpers.test.d.ts.map +1 -0
- package/dist/helpers/credential-refresh-email.helpers.d.ts +17 -0
- package/dist/helpers/credential-refresh-email.helpers.d.ts.map +1 -0
- package/dist/helpers/credential-refresh-proof.helpers.d.ts +4 -0
- package/dist/helpers/credential-refresh-proof.helpers.d.ts.map +1 -0
- package/dist/helpers/credential-refresh-proof.helpers.test.d.ts +2 -0
- package/dist/helpers/credential-refresh-proof.helpers.test.d.ts.map +1 -0
- package/dist/helpers/credential-refresh.helpers.d.ts +45 -2
- package/dist/helpers/credential-refresh.helpers.d.ts.map +1 -1
- package/dist/helpers/credential.helpers.d.ts +2 -1
- package/dist/helpers/credential.helpers.d.ts.map +1 -1
- package/dist/helpers/finalize-inbox.helpers.d.ts.map +1 -1
- package/dist/helpers/inbox-batch-http.helpers.d.ts +15 -0
- package/dist/helpers/inbox-batch-http.helpers.d.ts.map +1 -0
- package/dist/helpers/inbox-batch-http.helpers.test.d.ts +2 -0
- package/dist/helpers/inbox-batch-http.helpers.test.d.ts.map +1 -0
- package/dist/helpers/inbox-batch-status.helpers.d.ts +3 -0
- package/dist/helpers/inbox-batch-status.helpers.d.ts.map +1 -0
- package/dist/helpers/inbox-batch.helpers.d.ts +10 -0
- package/dist/helpers/inbox-batch.helpers.d.ts.map +1 -0
- package/dist/helpers/inbox-batch.helpers.test.d.ts +2 -0
- package/dist/helpers/inbox-batch.helpers.test.d.ts.map +1 -0
- package/dist/helpers/inbox-issuance-error.helpers.d.ts +13 -0
- package/dist/helpers/inbox-issuance-error.helpers.d.ts.map +1 -0
- package/dist/helpers/inbox-queue.helpers.d.ts +11 -0
- package/dist/helpers/inbox-queue.helpers.d.ts.map +1 -0
- package/dist/helpers/inbox-queue.helpers.test.d.ts +2 -0
- package/dist/helpers/inbox-queue.helpers.test.d.ts.map +1 -0
- package/dist/helpers/inbox-refresh.helpers.d.ts +186 -0
- package/dist/helpers/inbox-refresh.helpers.d.ts.map +1 -0
- package/dist/helpers/inbox.helpers.d.ts +9 -1
- package/dist/helpers/inbox.helpers.d.ts.map +1 -1
- package/dist/helpers/notifications.helpers.d.ts.map +1 -1
- package/dist/helpers/rateLimit.helpers.d.ts.map +1 -1
- package/dist/helpers/refresh-send-intent.helpers.d.ts +51 -0
- package/dist/helpers/refresh-send-intent.helpers.d.ts.map +1 -0
- package/dist/helpers/shim.d.ts +1 -1
- package/dist/helpers/shim.d.ts.map +1 -1
- package/dist/inbox-queue-local.d.ts +2 -0
- package/dist/inbox-queue-local.d.ts.map +1 -0
- package/dist/index.js +2 -2
- package/dist/models/AuthGrant.d.ts.map +1 -1
- package/dist/models/CredentialActivity.d.ts +1 -0
- package/dist/models/CredentialActivity.d.ts.map +1 -1
- package/dist/models/CredentialRefresh.d.ts +5 -2
- package/dist/models/CredentialRefresh.d.ts.map +1 -1
- package/dist/models/InboxCredential.d.ts +1 -0
- package/dist/models/InboxCredential.d.ts.map +1 -1
- package/dist/models/credential-refresh-constraints.d.ts.map +1 -1
- package/dist/openapi.d.ts.map +1 -1
- package/dist/routes/act-as.test.d.ts +2 -0
- package/dist/routes/act-as.test.d.ts.map +1 -0
- package/dist/routes/activity.d.ts +3 -0
- package/dist/routes/activity.d.ts.map +1 -1
- package/dist/routes/auth-grants.d.ts +10 -0
- package/dist/routes/auth-grants.d.ts.map +1 -1
- package/dist/routes/boosts.d.ts +494 -0
- package/dist/routes/boosts.d.ts.map +1 -1
- package/dist/routes/credential-refreshes.d.ts.map +1 -1
- package/dist/routes/credentials.d.ts.map +1 -1
- package/dist/routes/inbox.d.ts +953 -11
- package/dist/routes/inbox.d.ts.map +1 -1
- package/dist/routes/index.d.ts +42 -126
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/workflows.d.ts.map +1 -1
- package/dist/services/delivery/adapters/postmark.adapter.d.ts.map +1 -1
- package/dist/services/delivery/adapters/postmark.adapter.test.d.ts +2 -0
- package/dist/services/delivery/adapters/postmark.adapter.test.d.ts.map +1 -0
- package/dist/services/registry/registry.factory.d.ts.map +1 -1
- package/dist/types/activity.d.ts +4 -0
- package/dist/types/activity.d.ts.map +1 -1
- package/dist/types/credential-refresh.d.ts +10 -1
- package/dist/types/credential-refresh.d.ts.map +1 -1
- package/dist/types/inbox-batch.d.ts +38 -0
- package/dist/types/inbox-batch.d.ts.map +1 -0
- package/inbox-e2e-setup.ts +53 -1
- package/inbox-elasticmq.conf +10 -0
- package/lambda.ts +61 -16
- package/package.json +18 -16
- package/scripts/setup-inbox-queues.ts +60 -0
- package/serverless-local.yml +2 -0
- package/serverless.yml +75 -0
- package/src/accesslayer/auth-grant/read.ts +2 -1
- package/src/accesslayer/credential-activity/create.ts +1 -0
- package/src/accesslayer/credential-refresh/email-delivery.ts +116 -0
- package/src/accesslayer/credential-refresh/index.ts +1 -0
- package/src/accesslayer/credential-refresh/read.ts +8 -2
- package/src/accesslayer/credential-refresh/update.ts +4 -0
- package/src/accesslayer/inbox-batch/store.ts +469 -0
- package/src/accesslayer/inbox-credential/create.ts +51 -19
- package/src/accesslayer/inbox-credential/refresh.ts +221 -0
- package/src/accesslayer/inbox-credential/update.ts +1 -1
- package/src/cache/atomic-counter.test-helpers.ts +27 -0
- package/src/cache/atomic-counter.test.ts +6 -0
- package/src/cache/index.ts +25 -13
- package/src/config/environment.ts +26 -0
- package/src/credential-refresh.ts +5 -1
- package/src/docker-entry.ts +8 -0
- package/src/helpers/activity.helpers.ts +4 -0
- package/src/helpers/app-counter.helpers.ts +1 -1
- package/src/helpers/contact-method.helpers.test.ts +43 -0
- package/src/helpers/contact-method.helpers.ts +3 -4
- package/src/helpers/credential-refresh-email-content.helpers.test.ts +222 -0
- package/src/helpers/credential-refresh-email-content.helpers.ts +155 -0
- package/src/helpers/credential-refresh-email.helpers.ts +201 -0
- package/src/helpers/credential-refresh-proof.helpers.test.ts +103 -0
- package/src/helpers/credential-refresh-proof.helpers.ts +43 -0
- package/src/helpers/credential-refresh.helpers.ts +375 -99
- package/src/helpers/credential.helpers.ts +4 -1
- package/src/helpers/finalize-inbox.helpers.ts +29 -14
- package/src/helpers/inbox-batch-http.helpers.test.ts +188 -0
- package/src/helpers/inbox-batch-http.helpers.ts +150 -0
- package/src/helpers/inbox-batch-status.helpers.ts +11 -0
- package/src/helpers/inbox-batch.helpers.test.ts +668 -0
- package/src/helpers/inbox-batch.helpers.ts +374 -0
- package/src/helpers/inbox-issuance-error.helpers.ts +25 -0
- package/src/helpers/inbox-queue.helpers.test.ts +253 -0
- package/src/helpers/inbox-queue.helpers.ts +372 -0
- package/src/helpers/inbox-refresh.helpers.ts +432 -0
- package/src/helpers/inbox.helpers.ts +268 -32
- package/src/helpers/notifications.helpers.ts +4 -2
- package/src/helpers/rateLimit.helpers.ts +2 -5
- package/src/helpers/refresh-send-intent.helpers.ts +273 -0
- package/src/helpers/shim.ts +32 -31
- package/src/inbox-queue-local.ts +28 -0
- package/src/models/AuthGrant.ts +1 -0
- package/src/models/CredentialActivity.ts +3 -5
- package/src/models/CredentialRefresh.ts +4 -2
- package/src/models/InboxCredential.ts +2 -0
- package/src/models/credential-refresh-constraints.test.ts +8 -3
- package/src/models/credential-refresh-constraints.ts +5 -0
- package/src/openapi.ts +8 -0
- package/src/routes/act-as.test.ts +239 -0
- package/src/routes/app-store.ts +2 -2
- package/src/routes/auth-grants.ts +13 -11
- package/src/routes/boosts.ts +914 -92
- package/src/routes/credential-refreshes.test.ts +8 -2
- package/src/routes/credential-refreshes.ts +4 -1
- package/src/routes/credentials.ts +2 -1
- package/src/routes/inbox.ts +95 -49
- package/src/routes/index.ts +82 -7
- package/src/routes/skills.ts +1 -1
- package/src/routes/workflows.ts +43 -24
- package/src/services/delivery/adapters/postmark.adapter.test.ts +54 -0
- package/src/services/delivery/adapters/postmark.adapter.ts +12 -0
- package/src/services/registry/registry.factory.ts +2 -1
- package/src/types/activity.ts +2 -0
- package/src/types/credential-refresh.ts +21 -2
- package/src/types/inbox-batch.ts +46 -0
- package/test/atomic-counter.e2e.ts +12 -0
- package/test/auth-grant.spec.ts +21 -21
- package/test/credential-refresh-email.spec.ts +663 -0
- package/test/credential-refresh-publication.spec.ts +2 -0
- package/test/helpers/inbox-e2e-environment.ts +6 -0
- package/test/inbox-batch.spec.ts +1338 -0
- package/test/inbox-refresh.spec.ts +534 -0
- package/test/openapi.spec.ts +41 -1
- package/test/refresh-send.spec.ts +1799 -0
- package/test/registry.spec.ts +56 -11
- package/vitest.config.ts +9 -0
- package/vitest.inbox-e2e.config.ts +5 -1
- package/vitest.integration.config.ts +2 -0
package/dist/helpers/shim.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ import { OpenApiRouter } from 'trpc-to-openapi';
|
|
|
4
4
|
import { CreateOpenApiNodeHttpHandlerOptions } from 'trpc-to-openapi';
|
|
5
5
|
export type CreateOpenApiAwsLambdaHandlerOptions<TRouter extends OpenApiRouter> = Omit<CreateOpenApiNodeHttpHandlerOptions<TRouter, IncomingMessage, ServerResponse>, 'maxBodySize'>;
|
|
6
6
|
type AWSAPIGatewayEvent = APIGatewayProxyEvent | APIGatewayProxyEventV2;
|
|
7
|
-
export declare const createOpenApiAwsLambdaHandler: <TRouter extends OpenApiRouter>(opts: CreateOpenApiAwsLambdaHandlerOptions<TRouter>) => (event: AWSAPIGatewayEvent,
|
|
7
|
+
export declare const createOpenApiAwsLambdaHandler: <TRouter extends OpenApiRouter>(opts: CreateOpenApiAwsLambdaHandlerOptions<TRouter>) => (event: AWSAPIGatewayEvent, context: AWSContext) => Promise<APIGatewayProxyResult>;
|
|
8
8
|
export {};
|
|
9
9
|
//# sourceMappingURL=shim.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["../../src/helpers/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,OAAO,IAAI,UAAU,EAC7B,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["../../src/helpers/shim.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,OAAO,IAAI,UAAU,EAC7B,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,KAAK,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;AAEjE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAgC,mCAAmC,EAAE,MAAM,iBAAiB,CAAC;AAEpG,MAAM,MAAM,oCAAoC,CAAC,OAAO,SAAS,aAAa,IAAI,IAAI,CAClF,mCAAmC,CAAC,OAAO,EAAE,eAAe,EAAE,cAAc,CAAC,EAC7E,aAAa,CAChB,CAAC;AAEF,KAAK,kBAAkB,GAAG,oBAAoB,GAAG,sBAAsB,CAAC;AAgKxE,eAAO,MAAM,6BAA6B,GAAI,OAAO,SAAS,aAAa,EACvE,MAAM,oCAAoC,CAAC,OAAO,CAAC,uFAuCtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inbox-queue-local.d.ts","sourceRoot":"","sources":["../src/inbox-queue-local.ts"],"names":[],"mappings":""}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 105563330 bytes
|
|
4
|
+
sha256: 6db976d48f4cfdb968d8938aa5a51edfdd67e5e35b0d78aa81a47ff0b6694f74
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthGrant.d.ts","sourceRoot":"","sources":["../../src/models/AuthGrant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAAG;IACjC,mBAAmB,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC;AAE1F,eAAO,MAAM,SAAS;;;
|
|
1
|
+
{"version":3,"file":"AuthGrant.d.ts","sourceRoot":"","sources":["../../src/models/AuthGrant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,MAAM,MAAM,sBAAsB,GAAG;IACjC,mBAAmB,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;CAC5E,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,EAAE,sBAAsB,CAAC,CAAC;AAE1F,eAAO,MAAM,SAAS;;;0CAwBrB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialActivity.d.ts","sourceRoot":"","sources":["../../src/models/CredentialActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI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B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,4BAA4B,CAAC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC1C,WAAW,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;IACjE,kBAAkB,EAAE,kBAAkB,CAAC,OAAO,eAAe,EAAE,uBAAuB,CAAC,CAAC;IACxF,QAAQ,EAAE,kBAAkB,CAAC,OAAO,KAAK,EAAE,aAAa,CAAC,CAAC;IAC1D,WAAW,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;CACpE,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG,cAAc,CACnD,sBAAsB,EACtB,+BAA+B,CAClC,CAAC;AAEF,eAAO,MAAM,kBAAkB,uGAqE9B,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -13,13 +13,15 @@ export declare const CredentialRefresh: import("neogma").NeogmaModel<{
|
|
|
13
13
|
refreshId: string;
|
|
14
14
|
issuerProfileId: string;
|
|
15
15
|
issuerDid: string;
|
|
16
|
-
holderDid: string;
|
|
17
16
|
credentialId: string;
|
|
18
|
-
state: "active" | "revoked" | "awaiting_claim";
|
|
17
|
+
state: "active" | "revoked" | "pending_holder" | "awaiting_claim";
|
|
19
18
|
currentVersion: number;
|
|
20
19
|
createdAt: string;
|
|
21
20
|
updatedAt: string;
|
|
21
|
+
inboxCredentialId?: string | undefined;
|
|
22
|
+
inboxCredentialStatus?: string | undefined;
|
|
22
23
|
holderProfileId?: string | undefined;
|
|
24
|
+
holderDid?: string | undefined;
|
|
23
25
|
etag?: string | undefined;
|
|
24
26
|
materialDigest?: string | undefined;
|
|
25
27
|
rootMaterialDigest?: string | undefined;
|
|
@@ -29,6 +31,7 @@ export declare const CredentialRefresh: import("neogma").NeogmaModel<{
|
|
|
29
31
|
signingMode?: "issuer-signed" | "signing-authority" | undefined;
|
|
30
32
|
idempotencyKey?: string | undefined;
|
|
31
33
|
updateSummary?: string | undefined;
|
|
34
|
+
credentialDisplayName?: string | undefined;
|
|
32
35
|
lastPublishedAt?: string | undefined;
|
|
33
36
|
notificationWindowKey?: string | undefined;
|
|
34
37
|
lastNotificationId?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialRefresh.d.ts","sourceRoot":"","sources":["../../src/models/CredentialRefresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,MAAM,8BAA8B,GAAG;IACzC,MAAM,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;IAC5D,MAAM,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;IAC5D,IAAI,EAAE,kBAAkB,CAAC,OAAO,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAChE,IAAI,EAAE,kBAAkB,CAAC,OAAO,UAAU,EAAE,kBAAkB,CAAC,CAAC;CACnE,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAClD,uBAAuB,EACvB,8BAA8B,CACjC,CAAC;AAaF,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"CredentialRefresh.d.ts","sourceRoot":"","sources":["../../src/models/CredentialRefresh.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,MAAM,8BAA8B,GAAG;IACzC,MAAM,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;IAC5D,MAAM,EAAE,kBAAkB,CAAC,OAAO,OAAO,EAAE,eAAe,CAAC,CAAC;IAC5D,IAAI,EAAE,kBAAkB,CAAC,OAAO,UAAU,EAAE,kBAAkB,CAAC,CAAC;IAChE,IAAI,EAAE,kBAAkB,CAAC,OAAO,UAAU,EAAE,kBAAkB,CAAC,CAAC;CACnE,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG,cAAc,CAClD,uBAAuB,EACvB,8BAA8B,CACjC,CAAC;AAaF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDA8C7B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { ModelRelatedNodesI, NeogmaInstance } from 'neogma';
|
|
|
2
2
|
import { Profile, ProfileInstance } from './Profile';
|
|
3
3
|
import ContactMethod, { ContactMethodInstance } from './ContactMethod';
|
|
4
4
|
export type InboxCredentialType = {
|
|
5
|
+
refreshId?: string;
|
|
5
6
|
id: string;
|
|
6
7
|
credential?: string;
|
|
7
8
|
isSigned: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InboxCredential.d.ts","sourceRoot":"","sources":["../../src/models/InboxCredential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,kBAAkB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAI1E,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,aAAa,EAAE,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAEvE,MAAM,MAAM,mBAAmB,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C,YAAY,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAC1D;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAC7D,CAAC;IACF,aAAa,EAAE,kBAAkB,CAC7B,OAAO,OAAO,EACd,eAAe,EACf;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EACrE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CACxE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAChD,mBAAmB,EACnB,4BAA4B,CAC/B,CAAC;AAEF,eAAO,MAAM,eAAe,iGAiJ3B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential-refresh-constraints.d.ts","sourceRoot":"","sources":["../../src/models/credential-refresh-constraints.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credential-refresh-constraints.d.ts","sourceRoot":"","sources":["../../src/models/credential-refresh-constraints.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,kCAAkC,QAAO,OAAO,CAAC,IAAI,CAWjE,CAAC"}
|
package/dist/openapi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAKhD,eAAO,MAAM,eAAe,yCAmB1B,CAAC;
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AACA,OAAgB,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAKhD,eAAO,MAAM,eAAe,yCAmB1B,CAAC;AAkDH,eAAO,MAAM,GAAG,EAAE,OAAmB,CAAC;AAStC,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"act-as.test.d.ts","sourceRoot":"","sources":["../../src/routes/act-as.test.ts"],"names":[],"mappings":""}
|
|
@@ -26,6 +26,7 @@ export declare const activityRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
26
26
|
recipientIdentifier: string;
|
|
27
27
|
source: "contract" | "send" | "sendBoost" | "sendCredential" | "claim" | "inbox" | "claimLink" | "acceptCredential" | "appEvent";
|
|
28
28
|
actorProfileId?: string | undefined;
|
|
29
|
+
onBehalfOf?: string | undefined;
|
|
29
30
|
boostUri?: string | undefined;
|
|
30
31
|
credentialUri?: string | undefined;
|
|
31
32
|
inboxCredentialId?: string | undefined;
|
|
@@ -91,6 +92,7 @@ export declare const activityRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
91
92
|
recipientIdentifier: string;
|
|
92
93
|
source: "contract" | "send" | "sendBoost" | "sendCredential" | "claim" | "inbox" | "claimLink" | "acceptCredential" | "appEvent";
|
|
93
94
|
actorProfileId?: string | undefined;
|
|
95
|
+
onBehalfOf?: string | undefined;
|
|
94
96
|
boostUri?: string | undefined;
|
|
95
97
|
credentialUri?: string | undefined;
|
|
96
98
|
inboxCredentialId?: string | undefined;
|
|
@@ -123,6 +125,7 @@ export declare const activityRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
123
125
|
recipientIdentifier: string;
|
|
124
126
|
source: "contract" | "send" | "sendBoost" | "sendCredential" | "claim" | "inbox" | "claimLink" | "acceptCredential" | "appEvent";
|
|
125
127
|
actorProfileId?: string | undefined;
|
|
128
|
+
onBehalfOf?: string | undefined;
|
|
126
129
|
boostUri?: string | undefined;
|
|
127
130
|
credentialUri?: string | undefined;
|
|
128
131
|
inboxCredentialId?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/routes/activity.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"activity.d.ts","sourceRoot":"","sources":["../../src/routes/activity.ts"],"names":[],"mappings":"AAiBA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2LzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,OAAO,cAAc,CAAC;AAEnD,eAAe,cAAc,CAAC"}
|
|
@@ -10,6 +10,7 @@ export declare const authGrantsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
10
10
|
description?: string | undefined;
|
|
11
11
|
expiresAt?: string | null | undefined;
|
|
12
12
|
scope?: string | undefined;
|
|
13
|
+
actAs?: string | undefined;
|
|
13
14
|
};
|
|
14
15
|
output: string;
|
|
15
16
|
meta: import(".././routes/index").RouteMetadata;
|
|
@@ -25,6 +26,7 @@ export declare const authGrantsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
25
26
|
challenge?: string | undefined;
|
|
26
27
|
status?: "active" | "revoked" | undefined;
|
|
27
28
|
scope?: string | undefined;
|
|
29
|
+
actAs?: string | undefined;
|
|
28
30
|
createdAt?: string | undefined;
|
|
29
31
|
expiresAt?: string | null | undefined;
|
|
30
32
|
} | undefined;
|
|
@@ -79,6 +81,7 @@ export declare const authGrantsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
79
81
|
scope: string;
|
|
80
82
|
createdAt: string;
|
|
81
83
|
description?: string | undefined;
|
|
84
|
+
actAs?: string | undefined;
|
|
82
85
|
expiresAt?: string | null | undefined;
|
|
83
86
|
}[];
|
|
84
87
|
meta: import(".././routes/index").RouteMetadata;
|
|
@@ -87,8 +90,15 @@ export declare const authGrantsRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
87
90
|
input: {
|
|
88
91
|
id: string;
|
|
89
92
|
updates: {
|
|
93
|
+
id?: string | undefined;
|
|
90
94
|
name?: string | undefined;
|
|
91
95
|
description?: string | undefined;
|
|
96
|
+
challenge?: string | undefined;
|
|
97
|
+
status?: "active" | "revoked" | undefined;
|
|
98
|
+
scope?: string | undefined;
|
|
99
|
+
actAs?: string | undefined;
|
|
100
|
+
createdAt?: string | undefined;
|
|
101
|
+
expiresAt?: string | null | undefined;
|
|
92
102
|
};
|
|
93
103
|
};
|
|
94
104
|
output: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-grants.d.ts","sourceRoot":"","sources":["../../src/routes/auth-grants.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"auth-grants.d.ts","sourceRoot":"","sources":["../../src/routes/auth-grants.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+O3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC"}
|