@andco/protocol 0.0.15 → 0.1.0-ti.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/dist/authorization-preparation.d.ts +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/intent-input.d.ts +67 -54
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +39 -23
- package/dist/intent-status.d.ts +5 -6
- package/dist/intent-status.d.ts.map +1 -1
- package/dist/intent-status.js +12 -7
- package/dist/miniapp-manifest.d.ts +2 -2
- package/dist/miniapp-manifest.js +1 -1
- package/dist/native-intent.d.ts +12 -12
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +7 -4
- package/dist/rar/account-matchers.d.ts +10 -10
- package/dist/rar/account-matchers.js +2 -2
- package/dist/rar/bank.d.ts +284 -12
- package/dist/rar/bank.d.ts.map +1 -1
- package/dist/rar/bank.js +42 -4
- package/dist/rar/catalog.d.ts +130 -5
- package/dist/rar/catalog.d.ts.map +1 -1
- package/dist/rar/json-schemas.generated.d.ts.map +1 -1
- package/dist/rar/json-schemas.generated.js +372 -4
- package/dist/rar/money.d.ts +1 -1
- package/dist/rar/money.js +1 -1
- package/dist/rar/subject-data.d.ts +1 -1
- package/dist/rar/subject-data.js +1 -1
- package/dist/rest/accounts.d.ts +3 -3
- package/dist/rest/accounts.js +1 -1
- package/dist/rest/catalog.d.ts +3 -3
- package/dist/rest/catalog.js +2 -2
- package/dist/rest/contract.d.ts +561 -302
- package/dist/rest/contract.d.ts.map +1 -1
- package/dist/rest/contract.js +6 -2
- package/dist/rest/identity.d.ts +22 -22
- package/dist/rest/identity.d.ts.map +1 -1
- package/dist/rest/identity.js +4 -4
- package/dist/rest/intents.d.ts +301 -142
- package/dist/rest/intents.d.ts.map +1 -1
- package/dist/rest/intents.js +66 -52
- package/dist/rest/signatures.d.ts +19 -5
- package/dist/rest/signatures.d.ts.map +1 -1
- package/dist/rest/signatures.js +47 -5
- package/dist/rest/transfers.d.ts +738 -362
- package/dist/rest/transfers.d.ts.map +1 -1
- package/dist/rest/transfers.js +71 -44
- package/dist/signing.d.ts +6 -2
- package/dist/signing.d.ts.map +1 -1
- package/dist/signing.js +2 -1
- package/dist/transfer.d.ts +101 -65
- package/dist/transfer.d.ts.map +1 -1
- package/dist/transfer.js +69 -43
- package/dist/transport/financial-events.d.ts +64 -13
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/financial-events.js +34 -0
- package/dist/transport/generated/oauth-api.d.ts +352 -88
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/intents.d.ts +6 -6
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/rest.d.ts +4 -4
- package/package.json +1 -1
|
@@ -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;AA6HlC;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCpB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,aAAa,CA8EtD,CAAC"}
|
package/dist/rest/contract.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
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
|
+
import { SignedTransferClaimsSchema, SignedTransferEnvelopeSchema, SignedTransferHeaderSchema, TransferPartySchema, TransferReceiverSchema, TransferSenderSchema, } from "../transfer.js";
|
|
3
3
|
import { UserInfo } from "../userinfo.js";
|
|
4
4
|
import { AccountPage, BankAccount, BankTransaction, BankTransactionPage, listAccounts, listAccountTransactions, } from "./accounts.js";
|
|
5
5
|
import { Address, AddressCreate, AddressMutationResult, AddressPage, AddressUpdate, createOrganizationAddress, createProfileAddress, deleteOrganizationAddress, deleteProfileAddress, listOrganizationAddresses, listProfileAddresses, updateOrganizationAddress, updateProfileAddress, } from "./addresses.js";
|
|
@@ -10,7 +10,7 @@ import { FinancialEvent, FinancialEventPage, readAccountEvents, readOrganization
|
|
|
10
10
|
import { getUserInfo, IdentityValidation, listOrganizationIdentities, listProfileIdentities, listProfileOrganizations, listProjectProfiles, Organization, OrganizationIdentity, OrganizationIdentityPage, OrganizationPage, ProfileIdentity, ProfileIdentityPage, ProjectProfile, ProjectProfilePage, } from "./identity.js";
|
|
11
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";
|
|
12
12
|
import { SignedInstructionVerification, verifySignature } from "./signatures.js";
|
|
13
|
-
import { createTransfer, getTransfer, listTransfers, Transfer, TransferPage } from "./transfers.js";
|
|
13
|
+
import { createTransfer, getTransfer, listAccountTransfers, listTransfers, Transfer, TransferListPage, TransferPage, TransferStatus, } from "./transfers.js";
|
|
14
14
|
/**
|
|
15
15
|
* The operations of the AndCo OAuth Resource API, each under its `operationId`. `@andco/protocol`
|
|
16
16
|
* declares them once (ADR 0038): Platform implements them with `implement(contract)` and the
|
|
@@ -34,6 +34,7 @@ export const contract = {
|
|
|
34
34
|
getUserInfo,
|
|
35
35
|
listAccounts,
|
|
36
36
|
listAccountTransactions,
|
|
37
|
+
listAccountTransfers,
|
|
37
38
|
listOrganizationAddresses,
|
|
38
39
|
listOrganizationIdentities,
|
|
39
40
|
listProfileAddresses,
|
|
@@ -119,7 +120,10 @@ export const components = {
|
|
|
119
120
|
SignedTransferHeader: SignedTransferHeaderSchema,
|
|
120
121
|
TransferAmount,
|
|
121
122
|
Transfer,
|
|
123
|
+
TransferListPage,
|
|
122
124
|
TransferPage,
|
|
125
|
+
TransferParty: TransferPartySchema,
|
|
126
|
+
TransferStatus,
|
|
123
127
|
TransferAmountProposal: TransferAmountProposalSchema,
|
|
124
128
|
TransferCommentProposal: TransferCommentProposalSchema,
|
|
125
129
|
TransferIntent,
|
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 AndCo
|
|
3
|
+
/** What AndCo 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 AndCo
|
|
5
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
8
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
14
|
+
}, "What AndCo 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 AndCo
|
|
28
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
31
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
37
|
+
}, "What AndCo 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 AndCo
|
|
60
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
63
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
69
|
+
}, "What AndCo 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 AndCo
|
|
213
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
216
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
222
|
+
}, "What AndCo 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 AndCo
|
|
263
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
266
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
272
|
+
}, "What AndCo 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 AndCo
|
|
379
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
382
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
388
|
+
}, "What AndCo 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 AndCo
|
|
545
|
+
readonly validated_by: v.SchemaWithPipe<readonly [v.PicklistSchema<["andco_core"], undefined>, v.DescriptionAction<"andco_core", "Who validated the identity. `andco_core` is AndCo's own check, 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, "AndCo
|
|
548
|
+
readonly verification_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "AndCo'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 AndCo
|
|
554
|
+
}, "What AndCo 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")[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/rest/identity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,OAAO,EAEL,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,YAAY,EAEZ,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAIrB,
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/rest/identity.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B,OAAO,EAEL,yBAAyB,EACzB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,cAAc,EACd,YAAY,EAEZ,WAAW,EACX,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,aAAa,CAAC;AAIrB,iEAAiE;AACjE,eAAO,MAAM,kBAAkB;;;;;;;;;;6PAqB9B,CAAC;AAEF,2DAA2D;AAC3D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;aAiB1B,CAAC;AAEH,0CAA0C;AAC1C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG/B,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,oBAAoB;;;;;;aAM/B,CAAC;AAEH,sDAAsD;AACtD,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAGpC,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,YAAY;;;aAGvB,CAAC;AAEH,iCAAiC;AACjC,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAQzB,CAAC;AAEH,wCAAwC;AACxC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAG9B,CAAC;AAUF,gFAAgF;AAChF,eAAO,MAAM,WAAW;;;;;;;;uNAYL,CAAC;AAEpB,2CAA2C;AAC3C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sTAaJ,CAAC;AAE/B,6DAA6D;AAC7D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sTAaV,CAAC;AAE5B,gDAAgD;AAChD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sTAaJ,CAAC;AAEpC,oEAAoE;AACpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+QAqCH,CAAC"}
|
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 AndCo
|
|
9
|
+
/** What AndCo 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 AndCo
|
|
11
|
+
validated_by: v.pipe(v.picklist(["andco_core"]), v.description("Who validated the identity. `andco_core` is AndCo's own check, 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("AndCo
|
|
15
|
-
}), v.description("What AndCo
|
|
14
|
+
verification_id: v.pipe(v.pipe(v.string(), v.uuid()), v.description("AndCo's identifier of the validation. Keep it as the reference to the validation.")),
|
|
15
|
+
}), v.description("What AndCo 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()),
|