@andco/protocol 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/dist/api-errors.d.ts +5 -128
  2. package/dist/api-errors.d.ts.map +1 -1
  3. package/dist/api-errors.js +5 -131
  4. package/dist/authorization-preparation.d.ts +3 -3
  5. package/dist/authorization-preparation.d.ts.map +1 -1
  6. package/dist/authorization-preparation.js +4 -0
  7. package/dist/authorization.js +2 -2
  8. package/dist/errors.d.ts +111 -16
  9. package/dist/errors.d.ts.map +1 -1
  10. package/dist/errors.js +124 -12
  11. package/dist/index.d.ts +1 -0
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -0
  14. package/dist/intent-input.d.ts +1791 -725
  15. package/dist/intent-input.d.ts.map +1 -1
  16. package/dist/intent-input.js +325 -157
  17. package/dist/issues.d.ts +62 -0
  18. package/dist/issues.d.ts.map +1 -0
  19. package/dist/issues.js +61 -0
  20. package/dist/messages/index.d.ts +2 -2
  21. package/dist/messages/index.d.ts.map +1 -1
  22. package/dist/messages/index.js +10 -3
  23. package/dist/messages/set-preferences.d.ts +13 -1
  24. package/dist/messages/set-preferences.d.ts.map +1 -1
  25. package/dist/messages/set-preferences.js +31 -9
  26. package/dist/miniapp-manifest.d.ts +2 -2
  27. package/dist/miniapp-manifest.d.ts.map +1 -1
  28. package/dist/miniapp-manifest.js +1 -1
  29. package/dist/native-intent.d.ts +48 -28
  30. package/dist/native-intent.d.ts.map +1 -1
  31. package/dist/native-intent.js +76 -24
  32. package/dist/pagination.d.ts +37 -31
  33. package/dist/pagination.d.ts.map +1 -1
  34. package/dist/pagination.js +72 -24
  35. package/dist/rar/account-matchers.d.ts +47 -240
  36. package/dist/rar/account-matchers.d.ts.map +1 -1
  37. package/dist/rar/account-matchers.js +52 -131
  38. package/dist/rar/bank.d.ts +280 -392
  39. package/dist/rar/bank.d.ts.map +1 -1
  40. package/dist/rar/bank.js +68 -137
  41. package/dist/rar/catalog.d.ts +305 -288
  42. package/dist/rar/catalog.d.ts.map +1 -1
  43. package/dist/rar/catalog.js +69 -29
  44. package/dist/rar/detail.d.ts +15 -32
  45. package/dist/rar/detail.d.ts.map +1 -1
  46. package/dist/rar/detail.js +14 -34
  47. package/dist/rar/index.d.ts +2 -1
  48. package/dist/rar/index.d.ts.map +1 -1
  49. package/dist/rar/index.js +2 -1
  50. package/dist/rar/json-schemas.generated.d.ts +4 -0
  51. package/dist/rar/json-schemas.generated.d.ts.map +1 -0
  52. package/dist/rar/json-schemas.generated.js +3570 -0
  53. package/dist/rar/money.d.ts +5 -5
  54. package/dist/rar/money.d.ts.map +1 -1
  55. package/dist/rar/money.js +5 -5
  56. package/dist/rar/project-users.d.ts +40 -14
  57. package/dist/rar/project-users.d.ts.map +1 -1
  58. package/dist/rar/project-users.js +20 -23
  59. package/dist/rar/subject-data.d.ts +96 -48
  60. package/dist/rar/subject-data.d.ts.map +1 -1
  61. package/dist/rar/subject-data.js +61 -34
  62. package/dist/rar/subject.d.ts +18 -85
  63. package/dist/rar/subject.d.ts.map +1 -1
  64. package/dist/rar/subject.js +23 -51
  65. package/dist/rest/accounts.d.ts +347 -0
  66. package/dist/rest/accounts.d.ts.map +1 -0
  67. package/dist/rest/accounts.js +108 -0
  68. package/dist/rest/addresses.d.ts +581 -0
  69. package/dist/rest/addresses.d.ts.map +1 -0
  70. package/dist/rest/addresses.js +190 -0
  71. package/dist/rest/api-error.d.ts +104 -0
  72. package/dist/rest/api-error.d.ts.map +1 -0
  73. package/dist/rest/api-error.js +103 -0
  74. package/dist/rest/authorization.d.ts +123 -0
  75. package/dist/rest/authorization.d.ts.map +1 -0
  76. package/dist/rest/authorization.js +62 -0
  77. package/dist/rest/catalog.d.ts +199 -0
  78. package/dist/rest/catalog.d.ts.map +1 -0
  79. package/dist/rest/catalog.js +63 -0
  80. package/dist/rest/common.d.ts +637 -0
  81. package/dist/rest/common.d.ts.map +1 -0
  82. package/dist/rest/common.js +172 -0
  83. package/dist/rest/contract.d.ts +3480 -0
  84. package/dist/rest/contract.d.ts.map +1 -0
  85. package/dist/rest/contract.js +120 -0
  86. package/dist/rest/events.d.ts +145 -0
  87. package/dist/rest/events.d.ts.map +1 -0
  88. package/dist/rest/events.js +42 -0
  89. package/dist/rest/http.d.ts +49 -0
  90. package/dist/rest/http.d.ts.map +1 -0
  91. package/dist/rest/http.js +25 -0
  92. package/dist/rest/identity.d.ts +627 -0
  93. package/dist/rest/identity.d.ts.map +1 -0
  94. package/dist/rest/identity.js +128 -0
  95. package/dist/rest/index.d.ts +14 -0
  96. package/dist/rest/index.d.ts.map +1 -0
  97. package/dist/rest/index.js +13 -0
  98. package/dist/rest/intents.d.ts +4556 -0
  99. package/dist/rest/intents.d.ts.map +1 -0
  100. package/dist/rest/intents.js +551 -0
  101. package/dist/rest/signatures.d.ts +110 -0
  102. package/dist/rest/signatures.d.ts.map +1 -0
  103. package/dist/rest/signatures.js +113 -0
  104. package/dist/rest/subjects.d.ts +14 -0
  105. package/dist/rest/subjects.d.ts.map +1 -0
  106. package/dist/rest/subjects.js +22 -0
  107. package/dist/service-grants.d.ts +2 -2
  108. package/dist/service-grants.d.ts.map +1 -1
  109. package/dist/service-grants.js +1 -1
  110. package/dist/transport/generated/oauth-api.d.ts +5547 -1448
  111. package/dist/transport/generated/oauth-api.d.ts.map +1 -1
  112. package/dist/transport/intents.d.ts +9 -134
  113. package/dist/transport/intents.d.ts.map +1 -1
  114. package/dist/transport/intents.js +21 -405
  115. package/dist/transport/rest.d.ts +15 -5
  116. package/dist/transport/rest.d.ts.map +1 -1
  117. package/dist/userinfo.d.ts +22 -9
  118. package/dist/userinfo.d.ts.map +1 -1
  119. package/dist/userinfo.js +17 -12
  120. package/package.json +13 -2
@@ -0,0 +1,627 @@
1
+ import * as v from "valibot";
2
+ import { InsufficientAuthorization, InsufficientScope, InvalidIdentifier, InvalidOrigin, InvalidRequest, InvalidToken, ServerError, TemporarilyUnavailable, UnsupportedVersion } from "./common.js";
3
+ /** What Andco Core checked about an identity's document, and when. */
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 Core, on its hosted page.">]>;
6
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
9
+ }, undefined>, v.DescriptionAction<{
10
+ validated_by: "andco_core";
11
+ validated_at: string;
12
+ evidence: ("document" | "liveness" | "face_comparison")[];
13
+ verification_id: string;
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
+ /** A person's identity: who they are by their document. */
16
+ export declare const ProfileIdentity: v.ObjectSchema<{
17
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
18
+ readonly country: v.StringSchema<undefined>;
19
+ readonly nationality: v.NullableSchema<v.StringSchema<undefined>, undefined>;
20
+ readonly born_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
21
+ readonly gender: v.NullableSchema<v.PicklistSchema<["male", "female", "other"], undefined>, undefined>;
22
+ readonly document_kind: v.PicklistSchema<["nin", "passport"], undefined>;
23
+ readonly document_value: v.StringSchema<undefined>;
24
+ readonly given_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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 Core, on its hosted page.">]>;
29
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
32
+ }, undefined>, v.DescriptionAction<{
33
+ validated_by: "andco_core";
34
+ validated_at: string;
35
+ evidence: ("document" | "liveness" | "face_comparison")[];
36
+ verification_id: string;
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
+ validated_by: "andco_core";
39
+ validated_at: string;
40
+ evidence: ("document" | "liveness" | "face_comparison")[];
41
+ verification_id: string;
42
+ } | null | undefined, "Only on `GET /profiles/{profile_id}/identities`, and only when the Grant's `identity` detail asked for it with `validation` and `required` true; a plain `identity` read does not get the field, not even `null`. `null` means this identity has no validation.">]>;
43
+ }, undefined>;
44
+ /** One page of a Profile's identities. */
45
+ export declare const ProfileIdentityPage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
46
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
47
+ readonly cursor: v.StringSchema<undefined>;
48
+ readonly node: v.ObjectSchema<{
49
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
50
+ readonly country: v.StringSchema<undefined>;
51
+ readonly nationality: v.NullableSchema<v.StringSchema<undefined>, undefined>;
52
+ readonly born_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
53
+ readonly gender: v.NullableSchema<v.PicklistSchema<["male", "female", "other"], undefined>, undefined>;
54
+ readonly document_kind: v.PicklistSchema<["nin", "passport"], undefined>;
55
+ readonly document_value: v.StringSchema<undefined>;
56
+ readonly given_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
57
+ readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
58
+ readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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 Core, on its hosted page.">]>;
61
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
64
+ }, undefined>, v.DescriptionAction<{
65
+ validated_by: "andco_core";
66
+ validated_at: string;
67
+ evidence: ("document" | "liveness" | "face_comparison")[];
68
+ verification_id: string;
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
+ validated_by: "andco_core";
71
+ validated_at: string;
72
+ evidence: ("document" | "liveness" | "face_comparison")[];
73
+ verification_id: string;
74
+ } | null | undefined, "Only on `GET /profiles/{profile_id}/identities`, and only when the Grant's `identity` detail asked for it with `validation` and `required` true; a plain `identity` read does not get the field, not even `null`. `null` means this identity has no validation.">]>;
75
+ }, undefined>;
76
+ }, undefined>, undefined>;
77
+ readonly pageInfo: v.StrictObjectSchema<{
78
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
79
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
80
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
81
+ readonly hasNextPage: v.BooleanSchema<undefined>;
82
+ }, undefined>;
83
+ }, undefined>, v.DescriptionAction<{
84
+ edges: {
85
+ cursor: string;
86
+ node: {
87
+ id: string;
88
+ country: string;
89
+ nationality: string | null;
90
+ born_date: string | null;
91
+ gender: "other" | "male" | "female" | null;
92
+ document_kind: "nin" | "passport";
93
+ document_value: string;
94
+ given_names: string | null;
95
+ family_names: string | null;
96
+ business_activity_code: string | null;
97
+ validation?: {
98
+ validated_by: "andco_core";
99
+ validated_at: string;
100
+ evidence: ("document" | "liveness" | "face_comparison")[];
101
+ verification_id: string;
102
+ } | null | undefined;
103
+ };
104
+ }[];
105
+ pageInfo: {
106
+ startCursor: string | null;
107
+ endCursor: string | null;
108
+ hasPreviousPage: boolean;
109
+ hasNextPage: boolean;
110
+ };
111
+ }, string>]>;
112
+ /** The legal identity of an Organization: its name and its tax document. */
113
+ export declare const OrganizationIdentity: v.ObjectSchema<{
114
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
115
+ readonly legal_name: v.StringSchema<undefined>;
116
+ readonly country: v.StringSchema<undefined>;
117
+ readonly document_kind: v.LiteralSchema<"rut", undefined>;
118
+ readonly document_value: v.StringSchema<undefined>;
119
+ }, undefined>;
120
+ /** One page of an Organization's legal identities. */
121
+ export declare const OrganizationIdentityPage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
122
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
123
+ readonly cursor: v.StringSchema<undefined>;
124
+ readonly node: v.ObjectSchema<{
125
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
126
+ readonly legal_name: v.StringSchema<undefined>;
127
+ readonly country: v.StringSchema<undefined>;
128
+ readonly document_kind: v.LiteralSchema<"rut", undefined>;
129
+ readonly document_value: v.StringSchema<undefined>;
130
+ }, undefined>;
131
+ }, undefined>, undefined>;
132
+ readonly pageInfo: v.StrictObjectSchema<{
133
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
134
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
135
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
136
+ readonly hasNextPage: v.BooleanSchema<undefined>;
137
+ }, undefined>;
138
+ }, undefined>, v.DescriptionAction<{
139
+ edges: {
140
+ cursor: string;
141
+ node: {
142
+ id: string;
143
+ legal_name: string;
144
+ country: string;
145
+ document_kind: "rut";
146
+ document_value: string;
147
+ };
148
+ }[];
149
+ pageInfo: {
150
+ startCursor: string | null;
151
+ endCursor: string | null;
152
+ hasPreviousPage: boolean;
153
+ hasNextPage: boolean;
154
+ };
155
+ }, string>]>;
156
+ /** An Organization a Profile belongs to, by name. */
157
+ export declare const Organization: v.ObjectSchema<{
158
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
159
+ readonly name: v.StringSchema<undefined>;
160
+ }, undefined>;
161
+ /** One page of Organizations. */
162
+ export declare const OrganizationPage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
163
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
164
+ readonly cursor: v.StringSchema<undefined>;
165
+ readonly node: v.ObjectSchema<{
166
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
167
+ readonly name: v.StringSchema<undefined>;
168
+ }, undefined>;
169
+ }, undefined>, undefined>;
170
+ readonly pageInfo: v.StrictObjectSchema<{
171
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
172
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
173
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
174
+ readonly hasNextPage: v.BooleanSchema<undefined>;
175
+ }, undefined>;
176
+ }, undefined>, v.DescriptionAction<{
177
+ edges: {
178
+ cursor: string;
179
+ node: {
180
+ id: string;
181
+ name: string;
182
+ };
183
+ }[];
184
+ pageInfo: {
185
+ startCursor: string | null;
186
+ endCursor: string | null;
187
+ hasPreviousPage: boolean;
188
+ hasNextPage: boolean;
189
+ };
190
+ }, string>]>;
191
+ /**
192
+ * A person who uses a Project's Clients. Every field is present; one is `null` when the person did
193
+ * not disclose it or the Grant and the request leave it out.
194
+ */
195
+ export declare const ProjectProfile: v.ObjectSchema<{
196
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
197
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
198
+ readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
199
+ readonly avatar: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
200
+ readonly phone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
201
+ readonly identities: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
202
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
203
+ readonly country: v.StringSchema<undefined>;
204
+ readonly nationality: v.NullableSchema<v.StringSchema<undefined>, undefined>;
205
+ readonly born_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
206
+ readonly gender: v.NullableSchema<v.PicklistSchema<["male", "female", "other"], undefined>, undefined>;
207
+ readonly document_kind: v.PicklistSchema<["nin", "passport"], undefined>;
208
+ readonly document_value: v.StringSchema<undefined>;
209
+ readonly given_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
210
+ readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
211
+ readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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 Core, on its hosted page.">]>;
214
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
217
+ }, undefined>, v.DescriptionAction<{
218
+ validated_by: "andco_core";
219
+ validated_at: string;
220
+ evidence: ("document" | "liveness" | "face_comparison")[];
221
+ verification_id: string;
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
+ validated_by: "andco_core";
224
+ validated_at: string;
225
+ evidence: ("document" | "liveness" | "face_comparison")[];
226
+ verification_id: string;
227
+ } | null | undefined, "Only on `GET /profiles/{profile_id}/identities`, and only when the Grant's `identity` detail asked for it with `validation` and `required` true; a plain `identity` read does not get the field, not even `null`. `null` means this identity has no validation.">]>;
228
+ }, undefined>, undefined>, undefined>;
229
+ readonly addresses: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
230
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
231
+ readonly country: v.StringSchema<undefined>;
232
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
233
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
234
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
235
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
236
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
237
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
238
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
239
+ }, undefined>, undefined>, undefined>;
240
+ }, undefined>;
241
+ /** One page of a Project's Profiles. */
242
+ export declare const ProjectProfilePage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
243
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
244
+ readonly cursor: v.StringSchema<undefined>;
245
+ readonly node: v.ObjectSchema<{
246
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
247
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
248
+ readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
249
+ readonly avatar: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
250
+ readonly phone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
251
+ readonly identities: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
252
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
253
+ readonly country: v.StringSchema<undefined>;
254
+ readonly nationality: v.NullableSchema<v.StringSchema<undefined>, undefined>;
255
+ readonly born_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
256
+ readonly gender: v.NullableSchema<v.PicklistSchema<["male", "female", "other"], undefined>, undefined>;
257
+ readonly document_kind: v.PicklistSchema<["nin", "passport"], undefined>;
258
+ readonly document_value: v.StringSchema<undefined>;
259
+ readonly given_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
260
+ readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
261
+ readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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 Core, on its hosted page.">]>;
264
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
267
+ }, undefined>, v.DescriptionAction<{
268
+ validated_by: "andco_core";
269
+ validated_at: string;
270
+ evidence: ("document" | "liveness" | "face_comparison")[];
271
+ verification_id: string;
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
+ validated_by: "andco_core";
274
+ validated_at: string;
275
+ evidence: ("document" | "liveness" | "face_comparison")[];
276
+ verification_id: string;
277
+ } | null | undefined, "Only on `GET /profiles/{profile_id}/identities`, and only when the Grant's `identity` detail asked for it with `validation` and `required` true; a plain `identity` read does not get the field, not even `null`. `null` means this identity has no validation.">]>;
278
+ }, undefined>, undefined>, undefined>;
279
+ readonly addresses: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
280
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
281
+ readonly country: v.StringSchema<undefined>;
282
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
283
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
284
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
285
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
286
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
287
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
288
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
289
+ }, undefined>, undefined>, undefined>;
290
+ }, undefined>;
291
+ }, undefined>, undefined>;
292
+ readonly pageInfo: v.StrictObjectSchema<{
293
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
294
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
295
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
296
+ readonly hasNextPage: v.BooleanSchema<undefined>;
297
+ }, undefined>;
298
+ }, undefined>, v.DescriptionAction<{
299
+ edges: {
300
+ cursor: string;
301
+ node: {
302
+ id: string;
303
+ name: string | null;
304
+ email: string | null;
305
+ avatar: string | null;
306
+ phone: string | null;
307
+ identities: {
308
+ id: string;
309
+ country: string;
310
+ nationality: string | null;
311
+ born_date: string | null;
312
+ gender: "other" | "male" | "female" | null;
313
+ document_kind: "nin" | "passport";
314
+ document_value: string;
315
+ given_names: string | null;
316
+ family_names: string | null;
317
+ business_activity_code: string | null;
318
+ validation?: {
319
+ validated_by: "andco_core";
320
+ validated_at: string;
321
+ evidence: ("document" | "liveness" | "face_comparison")[];
322
+ verification_id: string;
323
+ } | null | undefined;
324
+ }[] | null;
325
+ addresses: {
326
+ id: string;
327
+ country: string;
328
+ level1: string | null;
329
+ level2: string | null;
330
+ level3: string | null;
331
+ street_address: string | null;
332
+ label_kind: "home" | "work" | "vacation" | "other";
333
+ label_name: string | null;
334
+ priority: number;
335
+ }[] | null;
336
+ };
337
+ }[];
338
+ pageInfo: {
339
+ startCursor: string | null;
340
+ endCursor: string | null;
341
+ hasPreviousPage: boolean;
342
+ hasNextPage: boolean;
343
+ };
344
+ }, string>]>;
345
+ /** Reads the standard identity claims of the person the token was issued to. */
346
+ export declare const getUserInfo: import("@orpc/contract").ProcedureContractBuilderWithOutput<v.ObjectSchema<{
347
+ readonly sub: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
348
+ readonly email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "The Profile's email address, present with the `email` scope. Any address the identity provider accepts, so a client must not require a narrower syntax.">]>, undefined>;
349
+ readonly email_verified: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
350
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
351
+ readonly picture: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
352
+ readonly phone: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "The Profile's phone number, present when the `phone` scope is granted and a number is on file.">]>, undefined>;
353
+ readonly phone_verified: v.OptionalSchema<v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Present and `true` when the `phone` scope is granted and the number was confirmed.">]>, undefined>;
354
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidToken, typeof InsufficientScope, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable]>>;
355
+ /** Lists a Profile's active identities. */
356
+ export declare const listProfileIdentities: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
357
+ 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>;
358
+ 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.">]>;
359
+ readonly before: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
360
+ readonly last: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
361
+ readonly after: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
362
+ readonly first: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
363
+ readonly profile_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Profile the Grant's subject names.">]>;
364
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
365
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
366
+ readonly cursor: v.StringSchema<undefined>;
367
+ readonly node: v.ObjectSchema<{
368
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
369
+ readonly country: v.StringSchema<undefined>;
370
+ readonly nationality: v.NullableSchema<v.StringSchema<undefined>, undefined>;
371
+ readonly born_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
372
+ readonly gender: v.NullableSchema<v.PicklistSchema<["male", "female", "other"], undefined>, undefined>;
373
+ readonly document_kind: v.PicklistSchema<["nin", "passport"], undefined>;
374
+ readonly document_value: v.StringSchema<undefined>;
375
+ readonly given_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
376
+ readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
377
+ readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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 Core, on its hosted page.">]>;
380
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
383
+ }, undefined>, v.DescriptionAction<{
384
+ validated_by: "andco_core";
385
+ validated_at: string;
386
+ evidence: ("document" | "liveness" | "face_comparison")[];
387
+ verification_id: string;
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
+ validated_by: "andco_core";
390
+ validated_at: string;
391
+ evidence: ("document" | "liveness" | "face_comparison")[];
392
+ verification_id: string;
393
+ } | null | undefined, "Only on `GET /profiles/{profile_id}/identities`, and only when the Grant's `identity` detail asked for it with `validation` and `required` true; a plain `identity` read does not get the field, not even `null`. `null` means this identity has no validation.">]>;
394
+ }, undefined>;
395
+ }, undefined>, undefined>;
396
+ readonly pageInfo: v.StrictObjectSchema<{
397
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
398
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
399
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
400
+ readonly hasNextPage: v.BooleanSchema<undefined>;
401
+ }, undefined>;
402
+ }, undefined>, v.DescriptionAction<{
403
+ edges: {
404
+ cursor: string;
405
+ node: {
406
+ id: string;
407
+ country: string;
408
+ nationality: string | null;
409
+ born_date: string | null;
410
+ gender: "other" | "male" | "female" | null;
411
+ document_kind: "nin" | "passport";
412
+ document_value: string;
413
+ given_names: string | null;
414
+ family_names: string | null;
415
+ business_activity_code: string | null;
416
+ validation?: {
417
+ validated_by: "andco_core";
418
+ validated_at: string;
419
+ evidence: ("document" | "liveness" | "face_comparison")[];
420
+ verification_id: string;
421
+ } | null | undefined;
422
+ };
423
+ }[];
424
+ pageInfo: {
425
+ startCursor: string | null;
426
+ endCursor: string | null;
427
+ hasPreviousPage: boolean;
428
+ hasNextPage: boolean;
429
+ };
430
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidIdentifier, typeof InvalidToken, typeof InsufficientAuthorization, typeof import("./common.js").NotFound, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable, typeof InvalidRequest]>>;
431
+ /** Lists the Organizations a Profile belongs to, by name. */
432
+ export declare const listProfileOrganizations: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
433
+ 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>;
434
+ 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.">]>;
435
+ readonly before: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
436
+ readonly last: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
437
+ readonly after: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
438
+ readonly first: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
439
+ readonly profile_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Profile the Grant's subject names.">]>;
440
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
441
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
442
+ readonly cursor: v.StringSchema<undefined>;
443
+ readonly node: v.ObjectSchema<{
444
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
445
+ readonly name: v.StringSchema<undefined>;
446
+ }, undefined>;
447
+ }, undefined>, undefined>;
448
+ readonly pageInfo: v.StrictObjectSchema<{
449
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
450
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
451
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
452
+ readonly hasNextPage: v.BooleanSchema<undefined>;
453
+ }, undefined>;
454
+ }, undefined>, v.DescriptionAction<{
455
+ edges: {
456
+ cursor: string;
457
+ node: {
458
+ id: string;
459
+ name: string;
460
+ };
461
+ }[];
462
+ pageInfo: {
463
+ startCursor: string | null;
464
+ endCursor: string | null;
465
+ hasPreviousPage: boolean;
466
+ hasNextPage: boolean;
467
+ };
468
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidIdentifier, typeof InvalidToken, typeof InsufficientAuthorization, typeof import("./common.js").NotFound, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable, typeof InvalidRequest]>>;
469
+ /** Lists an Organization's legal identities. */
470
+ export declare const listOrganizationIdentities: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
471
+ 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>;
472
+ 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.">]>;
473
+ readonly before: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
474
+ readonly last: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
475
+ readonly after: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
476
+ readonly first: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
477
+ readonly organization_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "The Organization the Grant's subject names.">]>;
478
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
479
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
480
+ readonly cursor: v.StringSchema<undefined>;
481
+ readonly node: v.ObjectSchema<{
482
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
483
+ readonly legal_name: v.StringSchema<undefined>;
484
+ readonly country: v.StringSchema<undefined>;
485
+ readonly document_kind: v.LiteralSchema<"rut", undefined>;
486
+ readonly document_value: v.StringSchema<undefined>;
487
+ }, undefined>;
488
+ }, undefined>, undefined>;
489
+ readonly pageInfo: v.StrictObjectSchema<{
490
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
491
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
492
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
493
+ readonly hasNextPage: v.BooleanSchema<undefined>;
494
+ }, undefined>;
495
+ }, undefined>, v.DescriptionAction<{
496
+ edges: {
497
+ cursor: string;
498
+ node: {
499
+ id: string;
500
+ legal_name: string;
501
+ country: string;
502
+ document_kind: "rut";
503
+ document_value: string;
504
+ };
505
+ }[];
506
+ pageInfo: {
507
+ startCursor: string | null;
508
+ endCursor: string | null;
509
+ hasPreviousPage: boolean;
510
+ hasNextPage: boolean;
511
+ };
512
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidIdentifier, typeof InvalidToken, typeof InsufficientAuthorization, typeof import("./common.js").NotFound, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable, typeof InvalidRequest]>>;
513
+ /** Lists the Profiles of the people who use a Project's Clients. */
514
+ export declare const listProjectProfiles: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
515
+ 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>;
516
+ 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.">]>;
517
+ readonly before: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
518
+ readonly last: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
519
+ readonly after: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2048, undefined>, v.DescriptionAction<string, "Opaque cursor previously returned by this collection.">]>, undefined>;
520
+ readonly first: 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, "Cursor page size; forward and backward argument families are exclusive.">]>;
521
+ readonly project_id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, v.DescriptionAction<string, "The Project whose Profiles are read; it must be one of the Grant's `project_ids`, or any of the Organization's when that list is empty.">]>;
522
+ readonly client_id: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "An eq.UUID or in.(UUID,UUID) filter that narrows the authorized Clients.">]>;
523
+ readonly fields: v.SchemaWithPipe<readonly [v.OptionalSchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string | undefined, "A comma-separated subset of the fields the Grant allows, for example `name,email`.">]>;
524
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
525
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
526
+ readonly cursor: v.StringSchema<undefined>;
527
+ readonly node: v.ObjectSchema<{
528
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
529
+ readonly name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
530
+ readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
531
+ readonly avatar: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UrlAction<string, undefined>]>, undefined>;
532
+ readonly phone: v.NullableSchema<v.StringSchema<undefined>, undefined>;
533
+ readonly identities: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
534
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
535
+ readonly country: v.StringSchema<undefined>;
536
+ readonly nationality: v.NullableSchema<v.StringSchema<undefined>, undefined>;
537
+ readonly born_date: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoDateAction<string, undefined>]>, undefined>;
538
+ readonly gender: v.NullableSchema<v.PicklistSchema<["male", "female", "other"], undefined>, undefined>;
539
+ readonly document_kind: v.PicklistSchema<["nin", "passport"], undefined>;
540
+ readonly document_value: v.StringSchema<undefined>;
541
+ readonly given_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
542
+ readonly family_names: v.NullableSchema<v.StringSchema<undefined>, undefined>;
543
+ readonly business_activity_code: v.NullableSchema<v.StringSchema<undefined>, undefined>;
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 Core, on its hosted page.">]>;
546
+ readonly validated_at: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>]>;
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 Core's identifier of the validation. Keep it as the reference to the validation.">]>;
549
+ }, undefined>, v.DescriptionAction<{
550
+ validated_by: "andco_core";
551
+ validated_at: string;
552
+ evidence: ("document" | "liveness" | "face_comparison")[];
553
+ verification_id: string;
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
+ validated_by: "andco_core";
556
+ validated_at: string;
557
+ evidence: ("document" | "liveness" | "face_comparison")[];
558
+ verification_id: string;
559
+ } | null | undefined, "Only on `GET /profiles/{profile_id}/identities`, and only when the Grant's `identity` detail asked for it with `validation` and `required` true; a plain `identity` read does not get the field, not even `null`. `null` means this identity has no validation.">]>;
560
+ }, undefined>, undefined>, undefined>;
561
+ readonly addresses: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
562
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
563
+ readonly country: v.StringSchema<undefined>;
564
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
565
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
566
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
567
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
568
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
569
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
570
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
571
+ }, undefined>, undefined>, undefined>;
572
+ }, undefined>;
573
+ }, undefined>, undefined>;
574
+ readonly pageInfo: v.StrictObjectSchema<{
575
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
576
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
577
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
578
+ readonly hasNextPage: v.BooleanSchema<undefined>;
579
+ }, undefined>;
580
+ }, undefined>, v.DescriptionAction<{
581
+ edges: {
582
+ cursor: string;
583
+ node: {
584
+ id: string;
585
+ name: string | null;
586
+ email: string | null;
587
+ avatar: string | null;
588
+ phone: string | null;
589
+ identities: {
590
+ id: string;
591
+ country: string;
592
+ nationality: string | null;
593
+ born_date: string | null;
594
+ gender: "other" | "male" | "female" | null;
595
+ document_kind: "nin" | "passport";
596
+ document_value: string;
597
+ given_names: string | null;
598
+ family_names: string | null;
599
+ business_activity_code: string | null;
600
+ validation?: {
601
+ validated_by: "andco_core";
602
+ validated_at: string;
603
+ evidence: ("document" | "liveness" | "face_comparison")[];
604
+ verification_id: string;
605
+ } | null | undefined;
606
+ }[] | null;
607
+ addresses: {
608
+ id: string;
609
+ country: string;
610
+ level1: string | null;
611
+ level2: string | null;
612
+ level3: string | null;
613
+ street_address: string | null;
614
+ label_kind: "home" | "work" | "vacation" | "other";
615
+ label_name: string | null;
616
+ priority: number;
617
+ }[] | null;
618
+ };
619
+ }[];
620
+ pageInfo: {
621
+ startCursor: string | null;
622
+ endCursor: string | null;
623
+ hasPreviousPage: boolean;
624
+ hasNextPage: boolean;
625
+ };
626
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof InvalidIdentifier, typeof InvalidRequest, typeof InvalidToken, typeof InsufficientAuthorization, typeof InvalidOrigin, typeof UnsupportedVersion, typeof ServerError, typeof TemporarilyUnavailable]>>;
627
+ //# sourceMappingURL=identity.d.ts.map