@andco/protocol 0.0.11 → 0.0.12

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 +52 -16
  9. package/dist/errors.d.ts.map +1 -1
  10. package/dist/errors.js +52 -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 +61 -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,581 @@
1
+ import * as v from "valibot";
2
+ import { InvalidRequest, PayloadTooLarge } from "./common.js";
3
+ /** The identifier of an address, in `…/addresses/{address_id}`. */
4
+ export declare const AddressIdParameter: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
5
+ /** An address of a Profile or of an Organization, as the API reads it. */
6
+ export declare const Address: v.ObjectSchema<{
7
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
8
+ readonly country: v.StringSchema<undefined>;
9
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
10
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
11
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
12
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
13
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
14
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
15
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
16
+ }, undefined>;
17
+ /** One page of addresses. */
18
+ export declare const AddressPage: v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
19
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
20
+ readonly cursor: v.StringSchema<undefined>;
21
+ readonly node: v.ObjectSchema<{
22
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
23
+ readonly country: v.StringSchema<undefined>;
24
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
26
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
27
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
28
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
29
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
30
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
31
+ }, undefined>;
32
+ }, undefined>, undefined>;
33
+ readonly pageInfo: v.StrictObjectSchema<{
34
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
35
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
36
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
37
+ readonly hasNextPage: v.BooleanSchema<undefined>;
38
+ }, undefined>;
39
+ }, undefined>, v.DescriptionAction<{
40
+ edges: {
41
+ cursor: string;
42
+ node: {
43
+ id: string;
44
+ country: string;
45
+ level1: string | null;
46
+ level2: string | null;
47
+ level3: string | null;
48
+ street_address: string | null;
49
+ label_kind: "home" | "work" | "vacation" | "other";
50
+ label_name: string | null;
51
+ priority: number;
52
+ };
53
+ }[];
54
+ pageInfo: {
55
+ startCursor: string | null;
56
+ endCursor: string | null;
57
+ hasPreviousPage: boolean;
58
+ hasNextPage: boolean;
59
+ };
60
+ }, string>]>;
61
+ /** What a request to create an address carries. */
62
+ export declare const AddressCreate: v.StrictObjectSchema<{
63
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
64
+ readonly level1: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
65
+ readonly level2: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
66
+ readonly level3: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
67
+ readonly street_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
68
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
69
+ readonly label_name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
70
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>;
71
+ }, undefined>;
72
+ /**
73
+ * What a request to update an address carries: any of the fields of {@link AddressCreate}, and at
74
+ * least one of them (see {@link addressUpdateIssues}).
75
+ */
76
+ export declare const AddressUpdate: v.SchemaWithPipe<readonly [Omit<v.StrictObjectSchema<{
77
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
78
+ readonly level1: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
79
+ readonly level2: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
80
+ readonly level3: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
81
+ readonly street_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
82
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
83
+ readonly label_name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
84
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>;
85
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
86
+ readonly entries: {
87
+ readonly country: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>, undefined>;
88
+ readonly level1: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
89
+ readonly level2: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
90
+ readonly level3: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
91
+ readonly street_address: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>, undefined>;
92
+ readonly label_kind: v.OptionalSchema<v.PicklistSchema<["home", "work", "vacation", "other"], undefined>, undefined>;
93
+ readonly label_name: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>, undefined>;
94
+ readonly priority: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>, undefined>;
95
+ };
96
+ readonly "~standard": v.StandardProps<{
97
+ country?: string | undefined;
98
+ level1?: string | null | undefined;
99
+ level2?: string | null | undefined;
100
+ level3?: string | null | undefined;
101
+ street_address?: string | null | undefined;
102
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
103
+ label_name?: string | null | undefined;
104
+ priority?: number | undefined;
105
+ }, {
106
+ country?: string | undefined;
107
+ level1?: string | null | undefined;
108
+ level2?: string | null | undefined;
109
+ level3?: string | null | undefined;
110
+ street_address?: string | null | undefined;
111
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
112
+ label_name?: string | null | undefined;
113
+ priority?: number | undefined;
114
+ }>;
115
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
116
+ country?: string | undefined;
117
+ level1?: string | null | undefined;
118
+ level2?: string | null | undefined;
119
+ level3?: string | null | undefined;
120
+ street_address?: string | null | undefined;
121
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
122
+ label_name?: string | null | undefined;
123
+ priority?: number | undefined;
124
+ }, v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 128> | v.PicklistIssue | v.NumberIssue | v.IntegerIssue<number> | v.StrictObjectIssue | v.MaxValueIssue<number, 2147483647> | v.MaxLengthIssue<string, 16> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 100> | v.MinValueIssue<number, -2147483648>>;
125
+ readonly "~types"?: {
126
+ readonly input: {
127
+ country?: string | undefined;
128
+ level1?: string | null | undefined;
129
+ level2?: string | null | undefined;
130
+ level3?: string | null | undefined;
131
+ street_address?: string | null | undefined;
132
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
133
+ label_name?: string | null | undefined;
134
+ priority?: number | undefined;
135
+ };
136
+ readonly output: {
137
+ country?: string | undefined;
138
+ level1?: string | null | undefined;
139
+ level2?: string | null | undefined;
140
+ level3?: string | null | undefined;
141
+ street_address?: string | null | undefined;
142
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
143
+ label_name?: string | null | undefined;
144
+ priority?: number | undefined;
145
+ };
146
+ readonly issue: v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 128> | v.PicklistIssue | v.NumberIssue | v.IntegerIssue<number> | v.StrictObjectIssue | v.MaxValueIssue<number, 2147483647> | v.MaxLengthIssue<string, 16> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 100> | v.MinValueIssue<number, -2147483648>;
147
+ } | undefined;
148
+ }, v.DescriptionAction<{
149
+ country?: string | undefined;
150
+ level1?: string | null | undefined;
151
+ level2?: string | null | undefined;
152
+ level3?: string | null | undefined;
153
+ street_address?: string | null | undefined;
154
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
155
+ label_name?: string | null | undefined;
156
+ priority?: number | undefined;
157
+ }, "At least one address field must be provided.">]>;
158
+ /** The identifier of the address a request created or updated. */
159
+ export declare const AddressMutationResult: v.ObjectSchema<{
160
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
161
+ }, undefined>;
162
+ /**
163
+ * The rule no schema can say: an update has to change something.
164
+ *
165
+ * @returns One issue when the update carries no field, none otherwise.
166
+ *
167
+ * @example
168
+ * ```ts
169
+ * addressUpdateIssues({}); // [{ type: "address_update_empty", path: [] }]
170
+ * ```
171
+ */
172
+ export declare function addressUpdateIssues(update: v.InferOutput<typeof AddressUpdate>): {
173
+ type: string;
174
+ path: string[];
175
+ }[];
176
+ declare const AddressNotCreated_base: (abstract new (data: {}, message?: string, hint?: string) => {
177
+ readonly error: "address_not_created";
178
+ readonly hint?: string;
179
+ readonly data: {};
180
+ name: string;
181
+ message: string;
182
+ stack?: string;
183
+ cause?: unknown;
184
+ }) & {
185
+ readonly error: "address_not_created";
186
+ readonly status: 422;
187
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{}, undefined>, v.DescriptionAction<{}, "The address was well formed but could not be created.">]>;
188
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): (abstract new (data: v.InferOutput<Data>, message?: string, hint?: string) => {
189
+ readonly error: Code;
190
+ readonly hint?: string;
191
+ readonly data: v.InferOutput<Data>;
192
+ name: string;
193
+ message: string;
194
+ stack?: string;
195
+ cause?: unknown;
196
+ }) & {
197
+ readonly error: Code;
198
+ readonly status: Status;
199
+ readonly data: Data;
200
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): /*elided*/ any;
201
+ };
202
+ };
203
+ /**
204
+ * The address could not be created: the values are well formed but the store refused them (a
205
+ * country or level it does not know, for instance). Nothing was created.
206
+ */
207
+ export declare class AddressNotCreated extends /* @__PURE__ */ AddressNotCreated_base {
208
+ constructor(message?: string);
209
+ }
210
+ declare const AddressNotUpdated_base: (abstract new (data: {}, message?: string, hint?: string) => {
211
+ readonly error: "address_not_updated";
212
+ readonly hint?: string;
213
+ readonly data: {};
214
+ name: string;
215
+ message: string;
216
+ stack?: string;
217
+ cause?: unknown;
218
+ }) & {
219
+ readonly error: "address_not_updated";
220
+ readonly status: 422;
221
+ readonly data: v.SchemaWithPipe<readonly [v.ObjectSchema<{}, undefined>, v.DescriptionAction<{}, "The address was well formed but could not be updated.">]>;
222
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): (abstract new (data: v.InferOutput<Data>, message?: string, hint?: string) => {
223
+ readonly error: Code;
224
+ readonly hint?: string;
225
+ readonly data: v.InferOutput<Data>;
226
+ name: string;
227
+ message: string;
228
+ stack?: string;
229
+ cause?: unknown;
230
+ }) & {
231
+ readonly error: Code;
232
+ readonly status: Status;
233
+ readonly data: Data;
234
+ define<const Code extends string, const Status extends number, Data extends import("./api-error.js").AndcoAPIErrorDataSchema>(error: Code, status: Status, data: Data): /*elided*/ any;
235
+ };
236
+ };
237
+ /**
238
+ * The address could not be updated: the values are well formed but the store refused them. The
239
+ * address stays as it was.
240
+ */
241
+ export declare class AddressNotUpdated extends /* @__PURE__ */ AddressNotUpdated_base {
242
+ constructor(message?: string);
243
+ }
244
+ /** List a Profile's addresses. */
245
+ export declare const listProfileAddresses: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
246
+ 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>;
247
+ 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.">]>;
248
+ 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>;
249
+ 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.">]>;
250
+ 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>;
251
+ 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.">]>;
252
+ 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.">]>;
253
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
254
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
255
+ readonly cursor: v.StringSchema<undefined>;
256
+ readonly node: v.ObjectSchema<{
257
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
258
+ readonly country: v.StringSchema<undefined>;
259
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
260
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
261
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
262
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
263
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
264
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
265
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
266
+ }, undefined>;
267
+ }, undefined>, undefined>;
268
+ readonly pageInfo: v.StrictObjectSchema<{
269
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
270
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
271
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
272
+ readonly hasNextPage: v.BooleanSchema<undefined>;
273
+ }, undefined>;
274
+ }, undefined>, v.DescriptionAction<{
275
+ edges: {
276
+ cursor: string;
277
+ node: {
278
+ id: string;
279
+ country: string;
280
+ level1: string | null;
281
+ level2: string | null;
282
+ level3: string | null;
283
+ street_address: string | null;
284
+ label_kind: "home" | "work" | "vacation" | "other";
285
+ label_name: string | null;
286
+ priority: number;
287
+ };
288
+ }[];
289
+ pageInfo: {
290
+ startCursor: string | null;
291
+ endCursor: string | null;
292
+ hasPreviousPage: boolean;
293
+ hasNextPage: boolean;
294
+ };
295
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable, typeof InvalidRequest]>>;
296
+ /** Create an address for a Profile. */
297
+ export declare const createProfileAddress: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
298
+ readonly params: v.ObjectSchema<{
299
+ 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.">]>;
300
+ }, undefined>;
301
+ readonly body: v.StrictObjectSchema<{
302
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
303
+ readonly level1: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
304
+ readonly level2: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
305
+ readonly level3: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
306
+ readonly street_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
307
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
308
+ readonly label_name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
309
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>;
310
+ }, undefined>;
311
+ }, undefined>, v.ObjectSchema<{
312
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
313
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable, typeof InvalidRequest, typeof AddressNotCreated, typeof PayloadTooLarge]>>;
314
+ /** Update one of a Profile's addresses. */
315
+ export declare const updateProfileAddress: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
316
+ readonly params: v.ObjectSchema<{
317
+ 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.">]>;
318
+ readonly address_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
319
+ }, undefined>;
320
+ readonly body: v.SchemaWithPipe<readonly [Omit<v.StrictObjectSchema<{
321
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
322
+ readonly level1: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
323
+ readonly level2: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
324
+ readonly level3: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
325
+ readonly street_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
326
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
327
+ readonly label_name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
328
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>;
329
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
330
+ readonly entries: {
331
+ readonly country: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>, undefined>;
332
+ readonly level1: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
333
+ readonly level2: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
334
+ readonly level3: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
335
+ readonly street_address: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>, undefined>;
336
+ readonly label_kind: v.OptionalSchema<v.PicklistSchema<["home", "work", "vacation", "other"], undefined>, undefined>;
337
+ readonly label_name: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>, undefined>;
338
+ readonly priority: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>, undefined>;
339
+ };
340
+ readonly "~standard": v.StandardProps<{
341
+ country?: string | undefined;
342
+ level1?: string | null | undefined;
343
+ level2?: string | null | undefined;
344
+ level3?: string | null | undefined;
345
+ street_address?: string | null | undefined;
346
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
347
+ label_name?: string | null | undefined;
348
+ priority?: number | undefined;
349
+ }, {
350
+ country?: string | undefined;
351
+ level1?: string | null | undefined;
352
+ level2?: string | null | undefined;
353
+ level3?: string | null | undefined;
354
+ street_address?: string | null | undefined;
355
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
356
+ label_name?: string | null | undefined;
357
+ priority?: number | undefined;
358
+ }>;
359
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
360
+ country?: string | undefined;
361
+ level1?: string | null | undefined;
362
+ level2?: string | null | undefined;
363
+ level3?: string | null | undefined;
364
+ street_address?: string | null | undefined;
365
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
366
+ label_name?: string | null | undefined;
367
+ priority?: number | undefined;
368
+ }, v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 128> | v.PicklistIssue | v.NumberIssue | v.IntegerIssue<number> | v.StrictObjectIssue | v.MaxValueIssue<number, 2147483647> | v.MaxLengthIssue<string, 16> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 100> | v.MinValueIssue<number, -2147483648>>;
369
+ readonly "~types"?: {
370
+ readonly input: {
371
+ country?: string | undefined;
372
+ level1?: string | null | undefined;
373
+ level2?: string | null | undefined;
374
+ level3?: string | null | undefined;
375
+ street_address?: string | null | undefined;
376
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
377
+ label_name?: string | null | undefined;
378
+ priority?: number | undefined;
379
+ };
380
+ readonly output: {
381
+ country?: string | undefined;
382
+ level1?: string | null | undefined;
383
+ level2?: string | null | undefined;
384
+ level3?: string | null | undefined;
385
+ street_address?: string | null | undefined;
386
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
387
+ label_name?: string | null | undefined;
388
+ priority?: number | undefined;
389
+ };
390
+ readonly issue: v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 128> | v.PicklistIssue | v.NumberIssue | v.IntegerIssue<number> | v.StrictObjectIssue | v.MaxValueIssue<number, 2147483647> | v.MaxLengthIssue<string, 16> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 100> | v.MinValueIssue<number, -2147483648>;
391
+ } | undefined;
392
+ }, v.DescriptionAction<{
393
+ country?: string | undefined;
394
+ level1?: string | null | undefined;
395
+ level2?: string | null | undefined;
396
+ level3?: string | null | undefined;
397
+ street_address?: string | null | undefined;
398
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
399
+ label_name?: string | null | undefined;
400
+ priority?: number | undefined;
401
+ }, "At least one address field must be provided.">]>;
402
+ }, undefined>, v.ObjectSchema<{
403
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
404
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable, typeof InvalidRequest, typeof AddressNotUpdated, typeof PayloadTooLarge]>>;
405
+ /** Soft-delete one of a Profile's addresses. */
406
+ export declare const deleteProfileAddress: import("@orpc/contract").ProcedureContractBuilderWithInput<v.ObjectSchema<{
407
+ readonly params: v.ObjectSchema<{
408
+ 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.">]>;
409
+ readonly address_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
410
+ }, undefined>;
411
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable]>>;
412
+ /** List an Organization's addresses. */
413
+ export declare const listOrganizationAddresses: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
414
+ 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>;
415
+ 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.">]>;
416
+ 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>;
417
+ 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.">]>;
418
+ 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>;
419
+ 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.">]>;
420
+ 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.">]>;
421
+ }, undefined>, v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
422
+ readonly edges: v.ArraySchema<v.StrictObjectSchema<{
423
+ readonly cursor: v.StringSchema<undefined>;
424
+ readonly node: v.ObjectSchema<{
425
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
426
+ readonly country: v.StringSchema<undefined>;
427
+ readonly level1: v.NullableSchema<v.StringSchema<undefined>, undefined>;
428
+ readonly level2: v.NullableSchema<v.StringSchema<undefined>, undefined>;
429
+ readonly level3: v.NullableSchema<v.StringSchema<undefined>, undefined>;
430
+ readonly street_address: v.NullableSchema<v.StringSchema<undefined>, undefined>;
431
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
432
+ readonly label_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
433
+ readonly priority: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>;
434
+ }, undefined>;
435
+ }, undefined>, undefined>;
436
+ readonly pageInfo: v.StrictObjectSchema<{
437
+ readonly startCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
438
+ readonly endCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
439
+ readonly hasPreviousPage: v.BooleanSchema<undefined>;
440
+ readonly hasNextPage: v.BooleanSchema<undefined>;
441
+ }, undefined>;
442
+ }, undefined>, v.DescriptionAction<{
443
+ edges: {
444
+ cursor: string;
445
+ node: {
446
+ id: string;
447
+ country: string;
448
+ level1: string | null;
449
+ level2: string | null;
450
+ level3: string | null;
451
+ street_address: string | null;
452
+ label_kind: "home" | "work" | "vacation" | "other";
453
+ label_name: string | null;
454
+ priority: number;
455
+ };
456
+ }[];
457
+ pageInfo: {
458
+ startCursor: string | null;
459
+ endCursor: string | null;
460
+ hasPreviousPage: boolean;
461
+ hasNextPage: boolean;
462
+ };
463
+ }, string>]>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable, typeof InvalidRequest]>>;
464
+ /** Create an address for an Organization. */
465
+ export declare const createOrganizationAddress: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
466
+ readonly params: v.ObjectSchema<{
467
+ 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.">]>;
468
+ }, undefined>;
469
+ readonly body: v.StrictObjectSchema<{
470
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
471
+ readonly level1: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
472
+ readonly level2: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
473
+ readonly level3: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
474
+ readonly street_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
475
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
476
+ readonly label_name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
477
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>;
478
+ }, undefined>;
479
+ }, undefined>, v.ObjectSchema<{
480
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
481
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable, typeof InvalidRequest, typeof AddressNotCreated, typeof PayloadTooLarge]>>;
482
+ /** Update one of an Organization's addresses. */
483
+ export declare const updateOrganizationAddress: import("@orpc/contract").ProcedureContractBuilderWithInputOutput<v.ObjectSchema<{
484
+ readonly params: v.ObjectSchema<{
485
+ 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.">]>;
486
+ readonly address_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
487
+ }, undefined>;
488
+ readonly body: v.SchemaWithPipe<readonly [Omit<v.StrictObjectSchema<{
489
+ readonly country: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>;
490
+ readonly level1: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
491
+ readonly level2: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
492
+ readonly level3: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>;
493
+ readonly street_address: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
494
+ readonly label_kind: v.PicklistSchema<["home", "work", "vacation", "other"], undefined>;
495
+ readonly label_name: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>;
496
+ readonly priority: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>;
497
+ }, undefined>, "~types" | "~run" | "~standard" | "entries"> & {
498
+ readonly entries: {
499
+ readonly country: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 16, undefined>]>, undefined>;
500
+ readonly level1: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
501
+ readonly level2: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
502
+ readonly level3: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>]>, undefined>, undefined>, undefined>;
503
+ readonly street_address: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>, undefined>;
504
+ readonly label_kind: v.OptionalSchema<v.PicklistSchema<["home", "work", "vacation", "other"], undefined>, undefined>;
505
+ readonly label_name: v.OptionalSchema<v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>, undefined>, undefined>, undefined>;
506
+ readonly priority: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, -2147483648, undefined>, v.MaxValueAction<number, 2147483647, undefined>]>, undefined>, undefined>;
507
+ };
508
+ readonly "~standard": v.StandardProps<{
509
+ country?: string | undefined;
510
+ level1?: string | null | undefined;
511
+ level2?: string | null | undefined;
512
+ level3?: string | null | undefined;
513
+ street_address?: string | null | undefined;
514
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
515
+ label_name?: string | null | undefined;
516
+ priority?: number | undefined;
517
+ }, {
518
+ country?: string | undefined;
519
+ level1?: string | null | undefined;
520
+ level2?: string | null | undefined;
521
+ level3?: string | null | undefined;
522
+ street_address?: string | null | undefined;
523
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
524
+ label_name?: string | null | undefined;
525
+ priority?: number | undefined;
526
+ }>;
527
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
528
+ country?: string | undefined;
529
+ level1?: string | null | undefined;
530
+ level2?: string | null | undefined;
531
+ level3?: string | null | undefined;
532
+ street_address?: string | null | undefined;
533
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
534
+ label_name?: string | null | undefined;
535
+ priority?: number | undefined;
536
+ }, v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 128> | v.PicklistIssue | v.NumberIssue | v.IntegerIssue<number> | v.StrictObjectIssue | v.MaxValueIssue<number, 2147483647> | v.MaxLengthIssue<string, 16> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 100> | v.MinValueIssue<number, -2147483648>>;
537
+ readonly "~types"?: {
538
+ readonly input: {
539
+ country?: string | undefined;
540
+ level1?: string | null | undefined;
541
+ level2?: string | null | undefined;
542
+ level3?: string | null | undefined;
543
+ street_address?: string | null | undefined;
544
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
545
+ label_name?: string | null | undefined;
546
+ priority?: number | undefined;
547
+ };
548
+ readonly output: {
549
+ country?: string | undefined;
550
+ level1?: string | null | undefined;
551
+ level2?: string | null | undefined;
552
+ level3?: string | null | undefined;
553
+ street_address?: string | null | undefined;
554
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
555
+ label_name?: string | null | undefined;
556
+ priority?: number | undefined;
557
+ };
558
+ readonly issue: v.StringIssue | v.MinLengthIssue<string, 1> | v.MaxLengthIssue<string, 128> | v.PicklistIssue | v.NumberIssue | v.IntegerIssue<number> | v.StrictObjectIssue | v.MaxValueIssue<number, 2147483647> | v.MaxLengthIssue<string, 16> | v.MaxLengthIssue<string, 200> | v.MaxLengthIssue<string, 100> | v.MinValueIssue<number, -2147483648>;
559
+ } | undefined;
560
+ }, v.DescriptionAction<{
561
+ country?: string | undefined;
562
+ level1?: string | null | undefined;
563
+ level2?: string | null | undefined;
564
+ level3?: string | null | undefined;
565
+ street_address?: string | null | undefined;
566
+ label_kind?: "home" | "work" | "vacation" | "other" | undefined;
567
+ label_name?: string | null | undefined;
568
+ priority?: number | undefined;
569
+ }, "At least one address field must be provided.">]>;
570
+ }, undefined>, v.ObjectSchema<{
571
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
572
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable, typeof InvalidRequest, typeof AddressNotUpdated, typeof PayloadTooLarge]>>;
573
+ /** Soft-delete one of an Organization's addresses. */
574
+ export declare const deleteOrganizationAddress: import("@orpc/contract").ProcedureContractBuilderWithInput<v.ObjectSchema<{
575
+ readonly params: v.ObjectSchema<{
576
+ 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.">]>;
577
+ readonly address_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
578
+ }, undefined>;
579
+ }, undefined>, import("./api-error.js").AndcoAPIErrorMap<readonly [typeof import("./common.js").InvalidIdentifier, typeof import("./common.js").InvalidToken, typeof import("./common.js").InsufficientAuthorization, typeof import("./common.js").NotFound, typeof import("./common.js").InvalidOrigin, typeof import("./common.js").UnsupportedVersion, typeof import("./common.js").ServerError, typeof import("./common.js").TemporarilyUnavailable]>>;
580
+ export {};
581
+ //# sourceMappingURL=addresses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../src/rest/addresses.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,OAAO,EAAc,cAAc,EAAa,eAAe,EAAE,MAAM,aAAa,CAAC;AAIrF,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,yFAA+C,CAAC;AAc/E,0EAA0E;AAC1E,eAAO,MAAM,OAAO;;;;;;;;;;aAUlB,CAAC;AAEH,6BAA6B;AAC7B,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAGvB,CAAC;AAEF,mDAAmD;AACnD,eAAO,MAAM,aAAa;;;;;;;;;aASxB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDAGzB,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,qBAAqB;;aAAiE,CAAC;AAEpG;;;;;;;;;GASG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,WAAW,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,EAAE,CAKnH;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,sBAItD;gBACa,OAAO,CAAC,EAAE,MAAM;CAG7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAED;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,eAAe,CAAC,sBAItD;gBACa,OAAO,CAAC,EAAE,MAAM;CAG7B;AAED,kCAAkC;AAClC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gdAaX,CAAC;AAEvB,uCAAuC;AACvC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;mgBAcD,CAAC;AAEjC,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mgBAkBD,CAAC;AAEjC,gDAAgD;AAChD,eAAO,MAAM,oBAAoB;;;;;0bAa2E,CAAC;AAE7G,wCAAwC;AACxC,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gdAahB,CAAC;AAEvB,6CAA6C;AAC7C,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;mgBAcN,CAAC;AAEjC,iDAAiD;AACjD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mgBAkBN,CAAC;AAEjC,sDAAsD;AACtD,eAAO,MAAM,yBAAyB;;;;;0bAagF,CAAC"}