@oxy.so/contracts 5.1.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/accountGraph.js +8 -5
- package/dist/cjs/accountName.js +20 -0
- package/dist/cjs/accountSubject.js +4 -2
- package/dist/cjs/agency.js +42 -1
- package/dist/cjs/client/accountGraph.js +2 -0
- package/dist/cjs/client/accountName.js +56 -0
- package/dist/cjs/client/index.js +12 -4
- package/dist/cjs/client/organizations.js +5 -4
- package/dist/cjs/index.js +31 -15
- package/dist/cjs/organizations.js +3 -7
- package/dist/cjs/profileColors.generated.js +265 -0
- package/dist/cjs/userResponse.js +4 -19
- package/dist/esm/accountGraph.js +9 -6
- package/dist/esm/accountName.js +12 -0
- package/dist/esm/accountSubject.js +4 -2
- package/dist/esm/agency.js +39 -0
- package/dist/esm/client/accountGraph.js +2 -0
- package/dist/esm/client/accountName.js +51 -0
- package/dist/esm/client/index.js +1 -0
- package/dist/esm/client/organizations.js +5 -4
- package/dist/esm/index.js +4 -2
- package/dist/esm/organizations.js +4 -8
- package/dist/esm/profileColors.generated.js +262 -0
- package/dist/esm/userResponse.js +0 -15
- package/dist/types/accountAccess.d.ts +5 -5
- package/dist/types/accountGraph.d.ts +12 -12
- package/dist/types/accountName.d.ts +5 -0
- package/dist/types/accountSubject.d.ts +3 -2
- package/dist/types/agency.d.ts +86 -28
- package/dist/types/client/accountGraph.d.ts +12 -6
- package/dist/types/client/accountName.d.ts +48 -0
- package/dist/types/client/deviceDirectory.d.ts +3 -3
- package/dist/types/client/index.d.ts +1 -0
- package/dist/types/client/organizations.d.ts +8 -7
- package/dist/types/client/safety.d.ts +2 -2
- package/dist/types/deviceDirectory.d.ts +33 -33
- package/dist/types/externalIdentity.d.ts +14 -14
- package/dist/types/index.d.ts +6 -3
- package/dist/types/inference/economics.d.ts +2 -2
- package/dist/types/inference/providerConnection.d.ts +4 -4
- package/dist/types/notifications.d.ts +4 -4
- package/dist/types/oauth.d.ts +3 -0
- package/dist/types/organizations.d.ts +41 -40
- package/dist/types/profileColors.generated.d.ts +195 -0
- package/dist/types/safety.d.ts +22 -22
- package/dist/types/stickers.d.ts +9 -9
- package/dist/types/userResponse.d.ts +42 -44
- package/package.json +7 -4
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
// Generated from published @oxy.so/bloom/color-presets. Do not edit.
|
|
2
|
+
// Regenerate: bun run generate:profile-colors
|
|
3
|
+
export const USER_PROFILE_COLORS = [
|
|
4
|
+
{
|
|
5
|
+
"name": "teal",
|
|
6
|
+
"gate": null
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "blue",
|
|
10
|
+
"gate": null
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "green",
|
|
14
|
+
"gate": null
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"name": "yellow",
|
|
18
|
+
"gate": null
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "red",
|
|
22
|
+
"gate": null
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "purple",
|
|
26
|
+
"gate": null
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "pink",
|
|
30
|
+
"gate": null
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "sky",
|
|
34
|
+
"gate": null
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "orange",
|
|
38
|
+
"gate": null
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "mint",
|
|
42
|
+
"gate": null
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "oxy",
|
|
46
|
+
"gate": "handle"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "faircoin",
|
|
50
|
+
"gate": "handle"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "pumpkin",
|
|
54
|
+
"gate": null
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "gray",
|
|
58
|
+
"gate": null
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "brown",
|
|
62
|
+
"gate": null
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "peach",
|
|
66
|
+
"gate": null
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "rose",
|
|
70
|
+
"gate": null
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "mono",
|
|
74
|
+
"gate": "premium"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "grove",
|
|
78
|
+
"gate": null
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "ember",
|
|
82
|
+
"gate": null
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"name": "merlot",
|
|
86
|
+
"gate": null
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "cobalt",
|
|
90
|
+
"gate": null
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "jade",
|
|
94
|
+
"gate": null
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "pine",
|
|
98
|
+
"gate": null
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "olive",
|
|
102
|
+
"gate": null
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "lagoon",
|
|
106
|
+
"gate": null
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "navy",
|
|
110
|
+
"gate": null
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "azure",
|
|
114
|
+
"gate": null
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"name": "violet",
|
|
118
|
+
"gate": null
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "lavender",
|
|
122
|
+
"gate": null
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "plum",
|
|
126
|
+
"gate": null
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"name": "cherry",
|
|
130
|
+
"gate": null
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "chocolate",
|
|
134
|
+
"gate": null
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"name": "graphite",
|
|
138
|
+
"gate": null
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "forest-fire",
|
|
142
|
+
"gate": null
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "malachite-rush",
|
|
146
|
+
"gate": null
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "moss-voltage",
|
|
150
|
+
"gate": null
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "viridian-orbit",
|
|
154
|
+
"gate": null
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "acid-canopy",
|
|
158
|
+
"gate": null
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"name": "pacific-flare",
|
|
162
|
+
"gate": null
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "reef-pulse",
|
|
166
|
+
"gate": null
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "electric-tide",
|
|
170
|
+
"gate": null
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"name": "arctic-signal",
|
|
174
|
+
"gate": null
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"name": "ultramarine-gold",
|
|
178
|
+
"gate": null
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "midnight-citrus",
|
|
182
|
+
"gate": null
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"name": "persimmon-wave",
|
|
186
|
+
"gate": null
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"name": "solar-flux",
|
|
190
|
+
"gate": null
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"name": "paprika-current",
|
|
194
|
+
"gate": null
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"name": "crimson-spark",
|
|
198
|
+
"gate": null
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"name": "flamenco-sun",
|
|
202
|
+
"gate": null
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"name": "saffron-depth",
|
|
206
|
+
"gate": null
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "clay-current",
|
|
210
|
+
"gate": null
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "bronze-neon",
|
|
214
|
+
"gate": null
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "copper-field",
|
|
218
|
+
"gate": null
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "umber-signal",
|
|
222
|
+
"gate": null
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"name": "amethyst-current",
|
|
226
|
+
"gate": null
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "ruby-current",
|
|
230
|
+
"gate": null
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"name": "orchid-flare",
|
|
234
|
+
"gate": null
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"name": "garnet-acid",
|
|
238
|
+
"gate": null
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "indigo-ember",
|
|
242
|
+
"gate": null
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "raspberry-gold",
|
|
246
|
+
"gate": null
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "ink-orange",
|
|
250
|
+
"gate": null
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "charcoal-lime",
|
|
254
|
+
"gate": null
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "pewter-current",
|
|
258
|
+
"gate": null
|
|
259
|
+
}
|
|
260
|
+
];
|
|
261
|
+
export const USER_PROFILE_COLOR_PRESETS = USER_PROFILE_COLORS.map(({ name }) => name);
|
|
262
|
+
export const FREE_USER_PROFILE_COLOR_PRESETS = USER_PROFILE_COLORS.filter(({ gate }) => gate === null).map(({ name }) => name);
|
package/dist/esm/userResponse.js
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/** Canonical profile/theme preset identities accepted by Oxy writes. */
|
|
2
|
-
export const USER_PROFILE_COLOR_PRESETS = [
|
|
3
|
-
'teal',
|
|
4
|
-
'blue',
|
|
5
|
-
'green',
|
|
6
|
-
'amber',
|
|
7
|
-
'red',
|
|
8
|
-
'purple',
|
|
9
|
-
'pink',
|
|
10
|
-
'sky',
|
|
11
|
-
'orange',
|
|
12
|
-
'mint',
|
|
13
|
-
'mono',
|
|
14
|
-
'oxy',
|
|
15
|
-
];
|
|
16
1
|
/**
|
|
17
2
|
* Canonical API user-response contracts.
|
|
18
3
|
*
|
|
@@ -69,7 +69,7 @@ export type AccountAccessGrant = z.infer<typeof accountAccessGrantSchema>;
|
|
|
69
69
|
export declare const accountAccessVerdictSchema: z.ZodEffects<z.ZodObject<{
|
|
70
70
|
accountId: z.ZodString;
|
|
71
71
|
/** `null` when no such account exists. */
|
|
72
|
-
kind: z.ZodNullable<z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>>;
|
|
72
|
+
kind: z.ZodNullable<z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>>;
|
|
73
73
|
/** `null` means: this person may not act for this account. */
|
|
74
74
|
access: z.ZodNullable<z.ZodObject<{
|
|
75
75
|
role: z.ZodString;
|
|
@@ -89,7 +89,7 @@ export declare const accountAccessVerdictSchema: z.ZodEffects<z.ZodObject<{
|
|
|
89
89
|
source: "self" | "direct" | "inherited";
|
|
90
90
|
}>>;
|
|
91
91
|
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
kind: "
|
|
92
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community" | null;
|
|
93
93
|
accountId: string;
|
|
94
94
|
access: {
|
|
95
95
|
status: "active";
|
|
@@ -98,7 +98,7 @@ export declare const accountAccessVerdictSchema: z.ZodEffects<z.ZodObject<{
|
|
|
98
98
|
source: "self" | "direct" | "inherited";
|
|
99
99
|
} | null;
|
|
100
100
|
}, {
|
|
101
|
-
kind: "
|
|
101
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community" | null;
|
|
102
102
|
accountId: string;
|
|
103
103
|
access: {
|
|
104
104
|
status: "active";
|
|
@@ -107,7 +107,7 @@ export declare const accountAccessVerdictSchema: z.ZodEffects<z.ZodObject<{
|
|
|
107
107
|
source: "self" | "direct" | "inherited";
|
|
108
108
|
} | null;
|
|
109
109
|
}>, {
|
|
110
|
-
kind: "
|
|
110
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community" | null;
|
|
111
111
|
accountId: string;
|
|
112
112
|
access: {
|
|
113
113
|
status: "active";
|
|
@@ -116,7 +116,7 @@ export declare const accountAccessVerdictSchema: z.ZodEffects<z.ZodObject<{
|
|
|
116
116
|
source: "self" | "direct" | "inherited";
|
|
117
117
|
} | null;
|
|
118
118
|
}, {
|
|
119
|
-
kind: "
|
|
119
|
+
kind: "personal" | "organization" | "project" | "bot" | "channel" | "community" | null;
|
|
120
120
|
accountId: string;
|
|
121
121
|
access: {
|
|
122
122
|
status: "active";
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { z } from 'zod';
|
|
10
10
|
export { ACCOUNT_KINDS, CHILD_ACCOUNT_KINDS, isDelegatedActAsEligibleKind, isOperatorSwitchTargetKind, isAccountKind, ACCOUNT_CATEGORY_IDS, RETIRED_ACCOUNT_CATEGORY_IDS, isSelectableAccountCategoryId, SELECTABLE_ACCOUNT_CATEGORY_IDS, newlyAddedRetiredCategories, MAX_ACCOUNT_CATEGORIES, ACCOUNT_CATEGORY_KINDS, kindAcceptsAccountCategories, } from './client/accountGraph';
|
|
11
11
|
export type { AccountKind, AccountKindGap, ChildAccountKind, ChildAccountKindGap, AccountCategoryId, AccountCategoryKind, } from './client/accountGraph';
|
|
12
|
-
export declare const accountKindSchema: z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>;
|
|
12
|
+
export declare const accountKindSchema: z.ZodEnum<["personal", "organization", "project", "bot", "channel", "community"]>;
|
|
13
13
|
export declare const childAccountKindSchema: z.ZodEnum<["organization", "project", "bot", "channel"]>;
|
|
14
14
|
/**
|
|
15
15
|
* Accepts EVERY id, withdrawn ones included — see rule 3.
|
|
@@ -30,7 +30,7 @@ export declare const accountCategoryIdSchema: z.ZodEnum<["news", "politics", "bu
|
|
|
30
30
|
* property the list exists to carry. A duplicate only ever comes from a client
|
|
31
31
|
* bug, and a 400 naming the index is how that bug gets found.
|
|
32
32
|
*/
|
|
33
|
-
export declare const accountCategoriesSchema: z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("
|
|
33
|
+
export declare const accountCategoriesSchema: z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[], ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[]>;
|
|
34
34
|
/**
|
|
35
35
|
* An account's name on the create/update wire.
|
|
36
36
|
*
|
|
@@ -67,7 +67,7 @@ export declare const accountNameSchema: z.ZodOptional<z.ZodObject<{
|
|
|
67
67
|
* this route. The refinement the single-valued predecessor needed disappeared
|
|
68
68
|
* along with the restriction that made it necessary. A child kind that does NOT
|
|
69
69
|
* accept categories would break that reasoning silently, so
|
|
70
|
-
* `__tests__/accountGraph.test.ts` asserts
|
|
70
|
+
* `__tests__/accountGraph.test.ts` asserts every child kind is a category kind.
|
|
71
71
|
*/
|
|
72
72
|
export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
73
73
|
parentAccountId: z.ZodOptional<z.ZodString>;
|
|
@@ -118,7 +118,7 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
118
118
|
*/
|
|
119
119
|
color: z.ZodOptional<z.ZodString>;
|
|
120
120
|
/** Ordered, PRIMARY FIRST — see rule 2 above {@link ACCOUNT_CATEGORY_IDS}. */
|
|
121
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("
|
|
121
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[], ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[]>>;
|
|
122
122
|
organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
|
|
123
123
|
/**
|
|
124
124
|
* Create the account already opted OUT of discovery.
|
|
@@ -177,12 +177,12 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
177
177
|
last?: string | undefined;
|
|
178
178
|
displayName?: string | undefined;
|
|
179
179
|
} | undefined;
|
|
180
|
-
organizationType?: "
|
|
180
|
+
organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
|
|
181
181
|
avatar?: string | undefined;
|
|
182
182
|
parentAccountId?: string | undefined;
|
|
183
183
|
bio?: string | undefined;
|
|
184
184
|
description?: string | undefined;
|
|
185
|
-
accountCategories?: ("
|
|
185
|
+
accountCategories?: ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
186
186
|
isPrivateAccount?: boolean | undefined;
|
|
187
187
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
188
188
|
}, {
|
|
@@ -194,12 +194,12 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
194
194
|
last?: string | undefined;
|
|
195
195
|
displayName?: string | undefined;
|
|
196
196
|
} | undefined;
|
|
197
|
-
organizationType?: "
|
|
197
|
+
organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
|
|
198
198
|
avatar?: string | undefined;
|
|
199
199
|
parentAccountId?: string | undefined;
|
|
200
200
|
bio?: string | undefined;
|
|
201
201
|
description?: string | undefined;
|
|
202
|
-
accountCategories?: ("
|
|
202
|
+
accountCategories?: ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
203
203
|
isPrivateAccount?: boolean | undefined;
|
|
204
204
|
character?: unknown;
|
|
205
205
|
}>, {
|
|
@@ -211,12 +211,12 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
211
211
|
last?: string | undefined;
|
|
212
212
|
displayName?: string | undefined;
|
|
213
213
|
} | undefined;
|
|
214
|
-
organizationType?: "
|
|
214
|
+
organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
|
|
215
215
|
avatar?: string | undefined;
|
|
216
216
|
parentAccountId?: string | undefined;
|
|
217
217
|
bio?: string | undefined;
|
|
218
218
|
description?: string | undefined;
|
|
219
|
-
accountCategories?: ("
|
|
219
|
+
accountCategories?: ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
220
220
|
isPrivateAccount?: boolean | undefined;
|
|
221
221
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
222
222
|
}, {
|
|
@@ -228,12 +228,12 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
228
228
|
last?: string | undefined;
|
|
229
229
|
displayName?: string | undefined;
|
|
230
230
|
} | undefined;
|
|
231
|
-
organizationType?: "
|
|
231
|
+
organizationType?: "community" | "business" | "nonprofit" | "other" | "public_body" | undefined;
|
|
232
232
|
avatar?: string | undefined;
|
|
233
233
|
parentAccountId?: string | undefined;
|
|
234
234
|
bio?: string | undefined;
|
|
235
235
|
description?: string | undefined;
|
|
236
|
-
accountCategories?: ("
|
|
236
|
+
accountCategories?: ("community" | "news" | "politics" | "business" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "nonprofit" | "government" | "activism" | "environment" | "religion" | "other")[] | undefined;
|
|
237
237
|
isPrivateAccount?: boolean | undefined;
|
|
238
238
|
character?: unknown;
|
|
239
239
|
}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export { ACCOUNT_NAME_POLICY_BY_KIND, ACCOUNT_TITLE_DISALLOWED_SOURCE, ACCOUNT_TITLE_MAX_LENGTH, accountNamePolicyForKind, isPlainTextTitle, } from './client/accountName';
|
|
3
|
+
export type { AccountNamePolicy } from './client/accountName';
|
|
4
|
+
/** A non-personal account's title — see `./client/accountName.ts` for the policy. */
|
|
5
|
+
export declare const accountTitleSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -41,8 +41,9 @@ export declare const ACCOUNT_SUBJECT_CONTRACT_VERSION: 1;
|
|
|
41
41
|
* - `person` — a human; a personal account is its own actor.
|
|
42
42
|
* - `agent` — an AI agent; a bot is its own actor (ADR 0018 `ActorRef`
|
|
43
43
|
* `{type:'agent'}`), and audit records the bot, never the human who owns it.
|
|
44
|
-
* - `operated` — never its own actor. An organization, project
|
|
45
|
-
* acts through a member, and that
|
|
44
|
+
* - `operated` — never its own actor. An organization, project, channel or
|
|
45
|
+
* community only acts through a member (a community's moderators), and that
|
|
46
|
+
* member is the actor.
|
|
46
47
|
*/
|
|
47
48
|
export declare const ACCOUNT_ACTOR_NATURES: readonly ["person", "agent", "operated"];
|
|
48
49
|
export type AccountActorNature = (typeof ACCOUNT_ACTOR_NATURES)[number];
|