@andco/protocol 0.0.13 → 0.0.15
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/README.md +2 -2
- package/dist/api-errors.d.ts +9 -9
- package/dist/api-errors.js +9 -9
- package/dist/authorization-preparation.js +2 -2
- package/dist/authorization.d.ts +1 -1
- package/dist/authorization.js +1 -1
- package/dist/consent.d.ts +2 -2
- package/dist/consent.js +2 -2
- package/dist/constants.d.ts +15 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +17 -3
- package/dist/errors.d.ts +36 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +49 -11
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/intent-input.d.ts +431 -872
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +142 -121
- package/dist/miniapp-icon.js +1 -1
- package/dist/miniapp-manifest.d.ts +1 -1
- package/dist/native-intent.d.ts +82 -68
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +134 -84
- package/dist/native.d.ts +1 -1
- package/dist/rar/account-matchers.d.ts +35 -30
- package/dist/rar/account-matchers.d.ts.map +1 -1
- package/dist/rar/account-matchers.js +27 -21
- package/dist/rar/bank.d.ts +81 -81
- package/dist/rar/bank.js +1 -1
- package/dist/rar/catalog.d.ts +48 -48
- package/dist/rar/catalog.js +6 -6
- package/dist/rar/detail.d.ts +1 -1
- package/dist/rar/detail.js +1 -1
- package/dist/rar/json-schemas.generated.d.ts +1 -1
- package/dist/rar/json-schemas.generated.d.ts.map +1 -1
- package/dist/rar/json-schemas.generated.js +25 -21
- package/dist/rar/subject-data.d.ts +1 -1
- package/dist/rar/subject-data.js +1 -1
- package/dist/rar/subject.d.ts +1 -1
- package/dist/rar/subject.js +1 -1
- package/dist/rest/accounts.d.ts +28 -28
- package/dist/rest/accounts.d.ts.map +1 -1
- package/dist/rest/accounts.js +22 -22
- package/dist/rest/api-error.d.ts +1 -1
- package/dist/rest/api-error.js +1 -1
- package/dist/rest/catalog.d.ts +3 -3
- package/dist/rest/catalog.js +2 -2
- package/dist/rest/common.d.ts +3 -3
- package/dist/rest/common.js +3 -3
- package/dist/rest/contract.d.ts +905 -528
- package/dist/rest/contract.d.ts.map +1 -1
- package/dist/rest/contract.js +17 -5
- package/dist/rest/events.d.ts +1 -1
- package/dist/rest/events.d.ts.map +1 -1
- package/dist/rest/events.js +2 -2
- package/dist/rest/identity.d.ts +22 -22
- package/dist/rest/identity.js +5 -5
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.d.ts.map +1 -1
- package/dist/rest/index.js +1 -0
- package/dist/rest/intents.d.ts +787 -716
- package/dist/rest/intents.d.ts.map +1 -1
- package/dist/rest/intents.js +62 -53
- package/dist/rest/signatures.d.ts +11 -5
- package/dist/rest/signatures.d.ts.map +1 -1
- package/dist/rest/signatures.js +10 -0
- package/dist/rest/subjects.d.ts +1 -1
- package/dist/rest/subjects.d.ts.map +1 -1
- package/dist/rest/subjects.js +3 -2
- package/dist/rest/transfers.d.ts +612 -0
- package/dist/rest/transfers.d.ts.map +1 -0
- package/dist/rest/transfers.js +115 -0
- package/dist/scopes.d.ts +1 -1
- package/dist/signing.d.ts +13 -2
- package/dist/signing.d.ts.map +1 -1
- package/dist/signing.js +13 -0
- package/dist/transfer.d.ts +363 -0
- package/dist/transfer.d.ts.map +1 -0
- package/dist/transfer.js +287 -0
- package/dist/transport/financial-events.d.ts +21 -17
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/generated/oauth-api.d.ts +1017 -194
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +28 -12
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +1 -1
- package/dist/transport/rest.d.ts +4 -4
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +33 -4
- package/dist/urls.d.ts +25 -2
- package/dist/urls.d.ts.map +1 -1
- package/dist/urls.js +47 -4
- package/dist/userinfo.d.ts +2 -2
- package/dist/userinfo.js +2 -2
- package/dist/webhooks.d.ts +19 -15
- package/dist/webhooks.d.ts.map +1 -1
- package/dist/webhooks.js +17 -15
- package/dist/window-features.d.ts +2 -2
- package/dist/window-features.js +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/rest/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/rest/contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAC;AAmHlC;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aAAa,CA2EtD,CAAC"}
|
package/dist/rest/contract.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AccountClosureIntentCreateSchema, AccountOpeningIntentCreateSchema, DepositIntentCreateSchema, IntentAccountExternalSchema, IntentAccountIdSchema, IntentAccountKeySchema, IntentAccountSchema, IntentAmountSchema, IntentCancellationSchema, IntentNoteSchema, IntentRejectionSchema, SignedAccountClosureIntentClaimsSchema, SignedAccountOpeningIntentClaimsSchema, SignedAmountSchema,
|
|
1
|
+
import { AccountClosureIntentCreateSchema, AccountOpeningIntentCreateSchema, DepositIntentCreateSchema, IntentAccountExternalSchema, IntentAccountIdSchema, IntentAccountKeySchema, IntentAccountSchema, IntentAmountSchema, IntentCancellationSchema, IntentNoteSchema, IntentRejectionSchema, SignedAccountClosureIntentClaimsSchema, SignedAccountOpeningIntentClaimsSchema, SignedAmountSchema, TransferAmountProposalSchema, TransferCommentProposalSchema, TransferIntentCreateSchema, TransferIntentReceiverProposalSchema, TransferIntentReceiverSchema, } from "../intent-input.js";
|
|
2
|
+
import { SignedTransferClaimsSchema, SignedTransferEnvelopeSchema, SignedTransferHeaderSchema, TransferReceiverSchema, TransferSenderSchema, } from "../transfer.js";
|
|
2
3
|
import { UserInfo } from "../userinfo.js";
|
|
3
4
|
import { AccountPage, BankAccount, BankTransaction, BankTransactionPage, listAccounts, listAccountTransactions, } from "./accounts.js";
|
|
4
5
|
import { Address, AddressCreate, AddressMutationResult, AddressPage, AddressUpdate, createOrganizationAddress, createProfileAddress, deleteOrganizationAddress, deleteProfileAddress, listOrganizationAddresses, listProfileAddresses, updateOrganizationAddress, updateProfileAddress, } from "./addresses.js";
|
|
@@ -9,8 +10,9 @@ import { FinancialEvent, FinancialEventPage, readAccountEvents, readOrganization
|
|
|
9
10
|
import { getUserInfo, IdentityValidation, listOrganizationIdentities, listProfileIdentities, listProfileOrganizations, listProjectProfiles, Organization, OrganizationIdentity, OrganizationIdentityPage, OrganizationPage, ProfileIdentity, ProfileIdentityPage, ProjectProfile, ProjectProfilePage, } from "./identity.js";
|
|
10
11
|
import { AccountClosureIntent, AccountOpeningIntent, approveIntent, cancelIntent, closeDeposit, createIntent, DepositCloseResult, DepositDestination, DepositIntent, DepositProgress, DepositTarget, DepositTransaction, getIntent, Intent, IntentStatus, readIntentEvents, rejectIntent, TransferAmount, TransferIntent, TransferSettlement, } from "./intents.js";
|
|
11
12
|
import { SignedInstructionVerification, verifySignature } from "./signatures.js";
|
|
13
|
+
import { createTransfer, getTransfer, listTransfers, Transfer, TransferPage } from "./transfers.js";
|
|
12
14
|
/**
|
|
13
|
-
* The operations of the
|
|
15
|
+
* The operations of the AndCo OAuth Resource API, each under its `operationId`. `@andco/protocol`
|
|
14
16
|
* declares them once (ADR 0038): Platform implements them with `implement(contract)` and the
|
|
15
17
|
* OpenAPI document, `openapi/oauth-api.yaml`, is generated from them (`pnpm generate:openapi`).
|
|
16
18
|
*/
|
|
@@ -23,10 +25,12 @@ export const contract = {
|
|
|
23
25
|
cancelIntent,
|
|
24
26
|
closeDeposit,
|
|
25
27
|
createIntent,
|
|
28
|
+
createTransfer,
|
|
26
29
|
getBankCatalog,
|
|
27
30
|
getIntent,
|
|
28
31
|
getGrantAuthorization,
|
|
29
32
|
getPermissionCatalog,
|
|
33
|
+
getTransfer,
|
|
30
34
|
getUserInfo,
|
|
31
35
|
listAccounts,
|
|
32
36
|
listAccountTransactions,
|
|
@@ -36,6 +40,7 @@ export const contract = {
|
|
|
36
40
|
listProfileIdentities,
|
|
37
41
|
listProfileOrganizations,
|
|
38
42
|
listProjectProfiles,
|
|
43
|
+
listTransfers,
|
|
39
44
|
readAccountEvents,
|
|
40
45
|
readIntentEvents,
|
|
41
46
|
readOrganizationEvents,
|
|
@@ -109,12 +114,19 @@ export const components = {
|
|
|
109
114
|
SignedAccountOpeningIntentClaims: SignedAccountOpeningIntentClaimsSchema,
|
|
110
115
|
SignedAmount: SignedAmountSchema,
|
|
111
116
|
SignedInstructionVerification,
|
|
112
|
-
|
|
117
|
+
SignedTransferClaims: SignedTransferClaimsSchema,
|
|
118
|
+
SignedTransferEnvelope: SignedTransferEnvelopeSchema,
|
|
119
|
+
SignedTransferHeader: SignedTransferHeaderSchema,
|
|
113
120
|
TransferAmount,
|
|
121
|
+
Transfer,
|
|
122
|
+
TransferPage,
|
|
114
123
|
TransferAmountProposal: TransferAmountProposalSchema,
|
|
115
|
-
|
|
116
|
-
TransferDestinationProposal: TransferDestinationProposalSchema,
|
|
124
|
+
TransferCommentProposal: TransferCommentProposalSchema,
|
|
117
125
|
TransferIntent,
|
|
118
126
|
TransferIntentCreate: TransferIntentCreateSchema,
|
|
127
|
+
TransferIntentReceiver: TransferIntentReceiverSchema,
|
|
128
|
+
TransferIntentReceiverProposal: TransferIntentReceiverProposalSchema,
|
|
129
|
+
TransferReceiver: TransferReceiverSchema,
|
|
130
|
+
TransferSender: TransferSenderSchema,
|
|
119
131
|
TransferSettlement,
|
|
120
132
|
};
|
package/dist/rest/events.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ export declare const readOrganizationEvents: import("@orpc/contract").ProcedureC
|
|
|
96
96
|
hasNextPage: boolean;
|
|
97
97
|
};
|
|
98
98
|
}, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidRequest, typeof InvalidToken, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable]>>;
|
|
99
|
-
/** Replays the
|
|
99
|
+
/** Replays the account facts of one account the Grant lets the application read. */
|
|
100
100
|
export declare const readAccountEvents: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
|
|
101
101
|
readonly offset: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, undefined>, v.DescriptionAction<number, "Nonnegative position in live ordered results.">]>, undefined>;
|
|
102
102
|
readonly limit: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>, v.DescriptionAction<number | undefined, "Offset page size; do not combine with cursor arguments.">]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/rest/events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,EAEL,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EAER,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAGrB;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;aAMzB,CAAC;AAEH,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAElE,uEAAuE;AACvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG9B,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mNAaN,CAAC;AAE9B,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/rest/events.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,EAEL,yBAAyB,EACzB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EAER,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAGrB;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;aAMzB,CAAC;AAEH,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAC;AAElE,uEAAuE;AACvE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG9B,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mNAaN,CAAC;AAE9B,oFAAoF;AACpF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gSAwBD,CAAC"}
|
package/dist/rest/events.js
CHANGED
|
@@ -28,12 +28,12 @@ export const readOrganizationEvents = /* @__PURE__ */ oc
|
|
|
28
28
|
.errors(errors(InvalidRequest, InvalidToken, InvalidOrigin, UnsupportedVersion, ServerError, TemporarilyUnavailable))
|
|
29
29
|
.input(v.object({ ...PageQuery }))
|
|
30
30
|
.output(FinancialEventPage);
|
|
31
|
-
/** Replays the
|
|
31
|
+
/** Replays the account facts of one account the Grant lets the application read. */
|
|
32
32
|
export const readAccountEvents = /* @__PURE__ */ oc
|
|
33
33
|
.meta(http({
|
|
34
34
|
method: "GET",
|
|
35
35
|
path: "/accounts/{bank_account_id}/events",
|
|
36
|
-
summary: "Replay
|
|
36
|
+
summary: "Replay account facts with account transaction read permission",
|
|
37
37
|
description: "Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed.",
|
|
38
38
|
successDescription: "Authorized event page in publication order",
|
|
39
39
|
}))
|
package/dist/rest/identity.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
import { InsufficientAuthorization, InsufficientScope, InvalidIdentifier, InvalidOrigin, InvalidRequest, InvalidToken, ServerError, TemporarilyUnavailable, UnsupportedVersion } from "./common.js";
|
|
3
|
-
/** What
|
|
3
|
+
/** What AndCo Core checked about an identity's document, and when. */
|
|
4
4
|
export declare const IdentityValidation: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
5
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
5
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
6
6
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
7
7
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
8
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
8
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
9
9
|
}, undefined>, v.DescriptionAction<{
|
|
10
10
|
validated_by: "andco_core";
|
|
11
11
|
validated_at: string;
|
|
12
12
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
13
13
|
verification_id: string;
|
|
14
|
-
}, "What
|
|
14
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>;
|
|
15
15
|
/** A person's identity: who they are by their document. */
|
|
16
16
|
export declare const ProfileIdentity: v.ObjectSchema<{
|
|
17
17
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
@@ -25,16 +25,16 @@ export declare const ProfileIdentity: v.ObjectSchema<{
|
|
|
25
25
|
readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
26
26
|
readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
27
27
|
readonly validation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
28
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
28
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
29
29
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
30
30
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
31
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
31
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
32
32
|
}, undefined>, v.DescriptionAction<{
|
|
33
33
|
validated_by: "andco_core";
|
|
34
34
|
validated_at: string;
|
|
35
35
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
36
36
|
verification_id: string;
|
|
37
|
-
}, "What
|
|
37
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
38
38
|
validated_by: "andco_core";
|
|
39
39
|
validated_at: string;
|
|
40
40
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
@@ -57,16 +57,16 @@ export declare const ProfileIdentityPage: v.SchemaWithPipe<readonly [v.StrictObj
|
|
|
57
57
|
readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
58
58
|
readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
59
59
|
readonly validation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
60
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
60
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
61
61
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
62
62
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
63
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
63
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
64
64
|
}, undefined>, v.DescriptionAction<{
|
|
65
65
|
validated_by: "andco_core";
|
|
66
66
|
validated_at: string;
|
|
67
67
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
68
68
|
verification_id: string;
|
|
69
|
-
}, "What
|
|
69
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
70
70
|
validated_by: "andco_core";
|
|
71
71
|
validated_at: string;
|
|
72
72
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
@@ -210,16 +210,16 @@ export declare const ProjectProfile: v.ObjectSchema<{
|
|
|
210
210
|
readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
211
211
|
readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
212
212
|
readonly validation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
213
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
213
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
214
214
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
215
215
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
216
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
216
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
217
217
|
}, undefined>, v.DescriptionAction<{
|
|
218
218
|
validated_by: "andco_core";
|
|
219
219
|
validated_at: string;
|
|
220
220
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
221
221
|
verification_id: string;
|
|
222
|
-
}, "What
|
|
222
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
223
223
|
validated_by: "andco_core";
|
|
224
224
|
validated_at: string;
|
|
225
225
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
@@ -260,16 +260,16 @@ export declare const ProjectProfilePage: v.SchemaWithPipe<readonly [v.StrictObje
|
|
|
260
260
|
readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
261
261
|
readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
262
262
|
readonly validation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
263
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
263
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
264
264
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
265
265
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
266
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
266
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
267
267
|
}, undefined>, v.DescriptionAction<{
|
|
268
268
|
validated_by: "andco_core";
|
|
269
269
|
validated_at: string;
|
|
270
270
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
271
271
|
verification_id: string;
|
|
272
|
-
}, "What
|
|
272
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
273
273
|
validated_by: "andco_core";
|
|
274
274
|
validated_at: string;
|
|
275
275
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
@@ -376,16 +376,16 @@ export declare const listProfileIdentities: import("@orpc/contract").ProcedureCo
|
|
|
376
376
|
readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
377
377
|
readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
378
378
|
readonly validation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
379
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
379
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
380
380
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
381
381
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
382
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
382
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
383
383
|
}, undefined>, v.DescriptionAction<{
|
|
384
384
|
validated_by: "andco_core";
|
|
385
385
|
validated_at: string;
|
|
386
386
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
387
387
|
verification_id: string;
|
|
388
|
-
}, "What
|
|
388
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
389
389
|
validated_by: "andco_core";
|
|
390
390
|
validated_at: string;
|
|
391
391
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
@@ -542,16 +542,16 @@ export declare const listProjectProfiles: import("@orpc/contract").ProcedureCont
|
|
|
542
542
|
readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
543
543
|
readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
544
544
|
readonly validation: v.SchemaWithPipe<readonly [v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
545
|
-
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is
|
|
545
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo Core, on its hosted page.">]>;
|
|
546
546
|
readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
|
|
547
547
|
readonly evidence: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["document", "liveness", "face_comparison"], undefined>, undefined>, v.MinLengthAction<("document" | "liveness" | "face_comparison")[], 1, undefined>]>, v.DescriptionAction<("document" | "liveness" | "face_comparison")[], "The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.">]>;
|
|
548
|
-
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "
|
|
548
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo Core's identifier of the validation. Keep it as the reference to the validation.">]>;
|
|
549
549
|
}, undefined>, v.DescriptionAction<{
|
|
550
550
|
validated_by: "andco_core";
|
|
551
551
|
validated_at: string;
|
|
552
552
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
|
553
553
|
verification_id: string;
|
|
554
|
-
}, "What
|
|
554
|
+
}, "What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts.">]>, undefined>, undefined>, v.DescriptionAction<{
|
|
555
555
|
validated_by: "andco_core";
|
|
556
556
|
validated_at: string;
|
|
557
557
|
evidence: ("document" | "liveness" | "face_comparison")[];
|
package/dist/rest/identity.js
CHANGED
|
@@ -6,13 +6,13 @@ import { errors } from "./api-error.js";
|
|
|
6
6
|
import { connection, InsufficientAuthorization, InsufficientScope, InvalidIdentifier, InvalidOrigin, InvalidRequest, InvalidToken, PageQuery, ServerError, TemporarilyUnavailable, UnsupportedVersion, } from "./common.js";
|
|
7
7
|
import { http } from "./http.js";
|
|
8
8
|
import { OrganizationIdParameter, ProfileIdParameter, SubjectErrors } from "./subjects.js";
|
|
9
|
-
/** What
|
|
9
|
+
/** What AndCo Core checked about an identity's document, and when. */
|
|
10
10
|
export const IdentityValidation = /* @__PURE__ */ v.pipe(v.object({
|
|
11
|
-
validated_by: v.pipe(v.picklist(["andco_core"]), v.description("Who validated the identity. `andco_core` is
|
|
11
|
+
validated_by: v.pipe(v.picklist(["andco_core"]), v.description("Who validated the identity. `andco_core` is AndCo Core, on its hosted page.")),
|
|
12
12
|
validated_at: v.pipe(v.string(), v.isoTimestamp()),
|
|
13
13
|
evidence: v.pipe(v.pipe(v.array(v.picklist(["document", "liveness", "face_comparison"])), v.minLength(1)), v.description("The kinds of evidence, named after the `evidence` of `verified_claims` in OpenID Connect for Identity Assurance.")),
|
|
14
|
-
verification_id: v.pipe(v.pipe(v.string(), v.uuid()), v.description("
|
|
15
|
-
}), v.description("What
|
|
14
|
+
verification_id: v.pipe(v.pipe(v.string(), v.uuid()), v.description("AndCo Core's identifier of the validation. Keep it as the reference to the validation.")),
|
|
15
|
+
}), v.description("What AndCo Core checked about the identity's document. It belongs to the document (country, kind and number), so correcting the number voids it and correcting the names does not. It does not expire; the reader decides how old a validation it accepts."));
|
|
16
16
|
/** A person's identity: who they are by their document. */
|
|
17
17
|
export const ProfileIdentity = /* @__PURE__ */ v.object({
|
|
18
18
|
id: v.pipe(v.string(), v.uuid()),
|
|
@@ -79,7 +79,7 @@ export const listProfileIdentities = /* @__PURE__ */ oc
|
|
|
79
79
|
method: "GET",
|
|
80
80
|
path: "/profiles/{profile_id}/identities",
|
|
81
81
|
summary: "List a Profile's identities",
|
|
82
|
-
description: "Granted by an `identity` authorization detail with `read` whose subject is this Profile. A subject that is not the Grant's answers `404`, as one that does not exist. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed. When the Grant's detail asked for the
|
|
82
|
+
description: "Granted by an `identity` authorization detail with `read` whose subject is this Profile. A subject that is not the Grant's answers `404`, as one that does not exist. Returns edges and camelCase pageInfo. Cursor and offset argument families cannot be mixed. When the Grant's detail asked for the Verificación de identidad (`validation` with `required` true), each identity also carries `validation`; without it the field is absent, not `null`.",
|
|
83
83
|
successDescription: "One page of the Profile's active identities",
|
|
84
84
|
}))
|
|
85
85
|
.errors(errors(...SubjectErrors, InvalidRequest))
|
package/dist/rest/index.d.ts
CHANGED
package/dist/rest/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
package/dist/rest/index.js
CHANGED