@singi-labs/sifa-sdk 0.11.22 → 0.11.24
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/{adult-content-B6aagF8N.d.cts → adult-content-BaQjQsbN.d.cts} +78 -0
- package/dist/{adult-content-B6aagF8N.d.ts → adult-content-BaQjQsbN.d.ts} +78 -0
- package/dist/{feed-BaHtJXYR.d.cts → feed--omSiO_S.d.cts} +74 -1
- package/dist/{feed-BaHtJXYR.d.ts → feed--omSiO_S.d.ts} +74 -1
- package/dist/index-BV2QGy4u.d.ts +261 -0
- package/dist/index-C4UvwkKA.d.cts +261 -0
- package/dist/index-CHPSoiWb.d.cts +611 -0
- package/dist/index-Cw0Ows0u.d.ts +611 -0
- package/dist/index.cjs +56 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +27 -7
- package/dist/index.d.ts +27 -7
- package/dist/index.js +53 -2
- package/dist/index.js.map +1 -1
- package/dist/{keys-D3urUnj8.d.cts → keys-BdLh1txD.d.cts} +2 -2
- package/dist/{keys-cT1ORNOu.d.ts → keys-Czq74eql.d.ts} +2 -2
- package/dist/query/fetchers/index.cjs +11 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +4 -247
- package/dist/query/fetchers/index.d.ts +4 -247
- package/dist/query/fetchers/index.js +11 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +11 -0
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +6 -558
- package/dist/query/hooks/index.d.ts +6 -558
- package/dist/query/hooks/index.js +11 -0
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +47 -0
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +6 -6
- package/dist/query/index.d.ts +6 -6
- package/dist/query/index.js +44 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +37 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +30 -397
- package/dist/schemas/index.d.ts +30 -397
- package/dist/schemas/index.js +32 -1
- package/dist/schemas/index.js.map +1 -1
- package/dist/shared-CHCY7Lst.d.cts +416 -0
- package/dist/shared-CHCY7Lst.d.ts +416 -0
- package/package.json +1 -1
|
@@ -47,6 +47,13 @@ interface ProfilePosition {
|
|
|
47
47
|
interface ProfileEducation {
|
|
48
48
|
rkey: string;
|
|
49
49
|
institution: string;
|
|
50
|
+
/**
|
|
51
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user
|
|
52
|
+
* links the institution to a resolved organization (#159/#241). Absent for
|
|
53
|
+
* free-text entries. Mirrors `ProfilePosition.entityRef`; the AppView sends it
|
|
54
|
+
* for display (the "Linked" badge).
|
|
55
|
+
*/
|
|
56
|
+
entityRef?: string;
|
|
50
57
|
degree?: string;
|
|
51
58
|
fieldOfStudy?: string;
|
|
52
59
|
description?: string;
|
|
@@ -100,6 +107,12 @@ interface ProfileCertification {
|
|
|
100
107
|
rkey: string;
|
|
101
108
|
name: string;
|
|
102
109
|
issuingOrg: string;
|
|
110
|
+
/**
|
|
111
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuing
|
|
112
|
+
* organization to a resolved entity (#159/#241). Absent for free-text entries.
|
|
113
|
+
* Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
114
|
+
*/
|
|
115
|
+
entityRef?: string;
|
|
103
116
|
issueDate?: string;
|
|
104
117
|
expiryDate?: string;
|
|
105
118
|
credentialUrl?: string;
|
|
@@ -160,6 +173,12 @@ interface ProfilePublication {
|
|
|
160
173
|
interface ProfileVolunteering {
|
|
161
174
|
rkey: string;
|
|
162
175
|
organization: string;
|
|
176
|
+
/**
|
|
177
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the
|
|
178
|
+
* organization to a resolved entity (#159/#241). Absent for free-text entries.
|
|
179
|
+
* Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
180
|
+
*/
|
|
181
|
+
entityRef?: string;
|
|
163
182
|
role?: string;
|
|
164
183
|
cause?: string;
|
|
165
184
|
startDate?: string;
|
|
@@ -171,10 +190,62 @@ interface ProfileHonor {
|
|
|
171
190
|
rkey: string;
|
|
172
191
|
title: string;
|
|
173
192
|
issuer?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuer to a
|
|
195
|
+
* resolved entity (#159/#241). Absent for free-text entries. Mirrors
|
|
196
|
+
* `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
197
|
+
*/
|
|
198
|
+
entityRef?: string;
|
|
174
199
|
date?: string;
|
|
175
200
|
description?: string;
|
|
176
201
|
hidden?: boolean;
|
|
177
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* One proof link on an involvement record, as served by the AppView. Mirrors
|
|
205
|
+
* `id.sifa.defs#artifactLink`, plus the computed rung-2 verification signal.
|
|
206
|
+
*/
|
|
207
|
+
interface ProfileInvolvementLink {
|
|
208
|
+
url: string;
|
|
209
|
+
kind?: string;
|
|
210
|
+
label?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Rung-2 cross-ref: true when the link host matches one of the owner's
|
|
213
|
+
* *verified* `externalAccount` records (GitHub, GitLab, ORCID, ...).
|
|
214
|
+
* Computed by the AppView; deterministic host match, no new primitive.
|
|
215
|
+
*/
|
|
216
|
+
verified?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Platform token of the matched verified external account (e.g.
|
|
219
|
+
* `id.sifa.defs#platformGithub`), for the badge label. Absent when
|
|
220
|
+
* `verified` is not true.
|
|
221
|
+
*/
|
|
222
|
+
verifiedPlatform?: string;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* An involvement entry as served by the AppView: an `id.sifa.profile.involvement`
|
|
226
|
+
* record, or a mapped legacy `id.sifa.profile.volunteering` record (`legacy`),
|
|
227
|
+
* grouped in the UI by `kind` via the SDK's involvement-kind taxonomy.
|
|
228
|
+
*/
|
|
229
|
+
interface ProfileInvolvement {
|
|
230
|
+
rkey: string;
|
|
231
|
+
/** Involvement-kind token; drives the display heading. Legacy rows map to charity. */
|
|
232
|
+
kind: string;
|
|
233
|
+
upstream?: string;
|
|
234
|
+
upstreamDid?: string;
|
|
235
|
+
upstreamUrl?: string;
|
|
236
|
+
role?: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
startedAt?: string;
|
|
239
|
+
endedAt?: string;
|
|
240
|
+
links?: ProfileInvolvementLink[];
|
|
241
|
+
/**
|
|
242
|
+
* True when this row is a mapped legacy `id.sifa.profile.volunteering` record
|
|
243
|
+
* (no `kind`), rendered under "Volunteering". Editing it backfills to an
|
|
244
|
+
* `involvement` record and deletes the legacy one.
|
|
245
|
+
*/
|
|
246
|
+
legacy?: boolean;
|
|
247
|
+
hidden?: boolean;
|
|
248
|
+
}
|
|
178
249
|
type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
|
|
179
250
|
interface ProfileLanguage {
|
|
180
251
|
rkey: string;
|
|
@@ -186,6 +257,12 @@ interface ProfileCourse {
|
|
|
186
257
|
rkey: string;
|
|
187
258
|
name: string;
|
|
188
259
|
institution?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the institution
|
|
262
|
+
* to a resolved entity (#159/#241). Absent for free-text entries. Mirrors
|
|
263
|
+
* `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
264
|
+
*/
|
|
265
|
+
entityRef?: string;
|
|
189
266
|
number?: string;
|
|
190
267
|
/** rkey of the associated certification, resolved from the course's
|
|
191
268
|
* `credential` at-uri. Used to join the course to a certification in the
|
|
@@ -392,6 +469,7 @@ interface Profile {
|
|
|
392
469
|
projects?: ProfileProject[];
|
|
393
470
|
publications?: ProfilePublication[];
|
|
394
471
|
volunteering?: ProfileVolunteering[];
|
|
472
|
+
involvement?: ProfileInvolvement[];
|
|
395
473
|
honors?: ProfileHonor[];
|
|
396
474
|
languages?: ProfileLanguage[];
|
|
397
475
|
courses?: ProfileCourse[];
|
|
@@ -47,6 +47,13 @@ interface ProfilePosition {
|
|
|
47
47
|
interface ProfileEducation {
|
|
48
48
|
rkey: string;
|
|
49
49
|
institution: string;
|
|
50
|
+
/**
|
|
51
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) written when the user
|
|
52
|
+
* links the institution to a resolved organization (#159/#241). Absent for
|
|
53
|
+
* free-text entries. Mirrors `ProfilePosition.entityRef`; the AppView sends it
|
|
54
|
+
* for display (the "Linked" badge).
|
|
55
|
+
*/
|
|
56
|
+
entityRef?: string;
|
|
50
57
|
degree?: string;
|
|
51
58
|
fieldOfStudy?: string;
|
|
52
59
|
description?: string;
|
|
@@ -100,6 +107,12 @@ interface ProfileCertification {
|
|
|
100
107
|
rkey: string;
|
|
101
108
|
name: string;
|
|
102
109
|
issuingOrg: string;
|
|
110
|
+
/**
|
|
111
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuing
|
|
112
|
+
* organization to a resolved entity (#159/#241). Absent for free-text entries.
|
|
113
|
+
* Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
114
|
+
*/
|
|
115
|
+
entityRef?: string;
|
|
103
116
|
issueDate?: string;
|
|
104
117
|
expiryDate?: string;
|
|
105
118
|
credentialUrl?: string;
|
|
@@ -160,6 +173,12 @@ interface ProfilePublication {
|
|
|
160
173
|
interface ProfileVolunteering {
|
|
161
174
|
rkey: string;
|
|
162
175
|
organization: string;
|
|
176
|
+
/**
|
|
177
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the
|
|
178
|
+
* organization to a resolved entity (#159/#241). Absent for free-text entries.
|
|
179
|
+
* Mirrors `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
180
|
+
*/
|
|
181
|
+
entityRef?: string;
|
|
163
182
|
role?: string;
|
|
164
183
|
cause?: string;
|
|
165
184
|
startDate?: string;
|
|
@@ -171,10 +190,62 @@ interface ProfileHonor {
|
|
|
171
190
|
rkey: string;
|
|
172
191
|
title: string;
|
|
173
192
|
issuer?: string;
|
|
193
|
+
/**
|
|
194
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the issuer to a
|
|
195
|
+
* resolved entity (#159/#241). Absent for free-text entries. Mirrors
|
|
196
|
+
* `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
197
|
+
*/
|
|
198
|
+
entityRef?: string;
|
|
174
199
|
date?: string;
|
|
175
200
|
description?: string;
|
|
176
201
|
hidden?: boolean;
|
|
177
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* One proof link on an involvement record, as served by the AppView. Mirrors
|
|
205
|
+
* `id.sifa.defs#artifactLink`, plus the computed rung-2 verification signal.
|
|
206
|
+
*/
|
|
207
|
+
interface ProfileInvolvementLink {
|
|
208
|
+
url: string;
|
|
209
|
+
kind?: string;
|
|
210
|
+
label?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Rung-2 cross-ref: true when the link host matches one of the owner's
|
|
213
|
+
* *verified* `externalAccount` records (GitHub, GitLab, ORCID, ...).
|
|
214
|
+
* Computed by the AppView; deterministic host match, no new primitive.
|
|
215
|
+
*/
|
|
216
|
+
verified?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Platform token of the matched verified external account (e.g.
|
|
219
|
+
* `id.sifa.defs#platformGithub`), for the badge label. Absent when
|
|
220
|
+
* `verified` is not true.
|
|
221
|
+
*/
|
|
222
|
+
verifiedPlatform?: string;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* An involvement entry as served by the AppView: an `id.sifa.profile.involvement`
|
|
226
|
+
* record, or a mapped legacy `id.sifa.profile.volunteering` record (`legacy`),
|
|
227
|
+
* grouped in the UI by `kind` via the SDK's involvement-kind taxonomy.
|
|
228
|
+
*/
|
|
229
|
+
interface ProfileInvolvement {
|
|
230
|
+
rkey: string;
|
|
231
|
+
/** Involvement-kind token; drives the display heading. Legacy rows map to charity. */
|
|
232
|
+
kind: string;
|
|
233
|
+
upstream?: string;
|
|
234
|
+
upstreamDid?: string;
|
|
235
|
+
upstreamUrl?: string;
|
|
236
|
+
role?: string;
|
|
237
|
+
description?: string;
|
|
238
|
+
startedAt?: string;
|
|
239
|
+
endedAt?: string;
|
|
240
|
+
links?: ProfileInvolvementLink[];
|
|
241
|
+
/**
|
|
242
|
+
* True when this row is a mapped legacy `id.sifa.profile.volunteering` record
|
|
243
|
+
* (no `kind`), rendered under "Volunteering". Editing it backfills to an
|
|
244
|
+
* `involvement` record and deletes the legacy one.
|
|
245
|
+
*/
|
|
246
|
+
legacy?: boolean;
|
|
247
|
+
hidden?: boolean;
|
|
248
|
+
}
|
|
178
249
|
type LanguageProficiency = 'elementary' | 'limited_working' | 'professional_working' | 'full_professional' | 'native';
|
|
179
250
|
interface ProfileLanguage {
|
|
180
251
|
rkey: string;
|
|
@@ -186,6 +257,12 @@ interface ProfileCourse {
|
|
|
186
257
|
rkey: string;
|
|
187
258
|
name: string;
|
|
188
259
|
institution?: string;
|
|
260
|
+
/**
|
|
261
|
+
* Portable org entity identifier (Wikidata/ROR/LEI URI) linking the institution
|
|
262
|
+
* to a resolved entity (#159/#241). Absent for free-text entries. Mirrors
|
|
263
|
+
* `ProfilePosition.entityRef`; the AppView sends it for display.
|
|
264
|
+
*/
|
|
265
|
+
entityRef?: string;
|
|
189
266
|
number?: string;
|
|
190
267
|
/** rkey of the associated certification, resolved from the course's
|
|
191
268
|
* `credential` at-uri. Used to join the course to a certification in the
|
|
@@ -392,6 +469,7 @@ interface Profile {
|
|
|
392
469
|
projects?: ProfileProject[];
|
|
393
470
|
publications?: ProfilePublication[];
|
|
394
471
|
volunteering?: ProfileVolunteering[];
|
|
472
|
+
involvement?: ProfileInvolvement[];
|
|
395
473
|
honors?: ProfileHonor[];
|
|
396
474
|
languages?: ProfileLanguage[];
|
|
397
475
|
courses?: ProfileCourse[];
|
|
@@ -96,6 +96,79 @@ declare const EntityImportSearchResponseSchema: z.ZodObject<{
|
|
|
96
96
|
}, z.core.$strip>], "source">>;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
type EntityImportSearchResponse = z.infer<typeof EntityImportSearchResponseSchema>;
|
|
99
|
+
/**
|
|
100
|
+
* Body of the domain grow-on-demand endpoints (`POST /api/entities/resolve-domain`
|
|
101
|
+
* and `POST /api/entities/mint-domain`). The server re-validates the value as a
|
|
102
|
+
* registrable domain; 253 is the max DNS name length.
|
|
103
|
+
*/
|
|
104
|
+
declare const EntityResolveDomainRequestSchema: z.ZodObject<{
|
|
105
|
+
domain: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
type EntityResolveDomainRequest = z.infer<typeof EntityResolveDomainRequestSchema>;
|
|
108
|
+
/**
|
|
109
|
+
* Response of `POST /api/entities/resolve-domain` (grow-on-demand Branch 1). Any
|
|
110
|
+
* notable companies whose official website is the domain, imported from Wikidata.
|
|
111
|
+
* `canMint` is true when nothing notable matched AND the domain is eligible for
|
|
112
|
+
* the user-initiated mint-from-domain path -- it drives the "Add <domain>"
|
|
113
|
+
* affordance.
|
|
114
|
+
*/
|
|
115
|
+
declare const EntityResolveDomainResponseSchema: z.ZodObject<{
|
|
116
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
+
kind: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
120
|
+
country: z.ZodNullable<z.ZodString>;
|
|
121
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
122
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
123
|
+
source: z.ZodLiteral<"entity">;
|
|
124
|
+
entityId: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
kind: z.ZodString;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
129
|
+
country: z.ZodNullable<z.ZodString>;
|
|
130
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
131
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
132
|
+
source: z.ZodLiteral<"pdl">;
|
|
133
|
+
pdlId: z.ZodString;
|
|
134
|
+
}, z.core.$strip>], "source">>;
|
|
135
|
+
canMint: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
type EntityResolveDomainResponse = z.infer<typeof EntityResolveDomainResponseSchema>;
|
|
138
|
+
/**
|
|
139
|
+
* Response of `POST /api/entities/mint-domain` (grow-on-demand Branch 2). The
|
|
140
|
+
* linkable entity minted from (or already resolved for) the domain. A non-2xx
|
|
141
|
+
* status (e.g. the domain is not mintable, a confusable look-alike, or the site
|
|
142
|
+
* yielded nothing usable) surfaces as a thrown error, not a null result.
|
|
143
|
+
*
|
|
144
|
+
* `pending` is true when the entity is a fresh hidden-pending mint: the
|
|
145
|
+
* requesting user's own link resolves to it immediately, but it stays out of
|
|
146
|
+
* other users' typeahead + aggregation until an admin approves it. Clients should
|
|
147
|
+
* reflect this ("added -- pending review") rather than "added & live".
|
|
148
|
+
*/
|
|
149
|
+
declare const EntityMintDomainResponseSchema: z.ZodObject<{
|
|
150
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
kind: z.ZodString;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
154
|
+
country: z.ZodNullable<z.ZodString>;
|
|
155
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
156
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
157
|
+
source: z.ZodLiteral<"entity">;
|
|
158
|
+
entityId: z.ZodNumber;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
kind: z.ZodString;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
163
|
+
country: z.ZodNullable<z.ZodString>;
|
|
164
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
165
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
166
|
+
source: z.ZodLiteral<"pdl">;
|
|
167
|
+
pdlId: z.ZodString;
|
|
168
|
+
}, z.core.$strip>], "source">;
|
|
169
|
+
pending: z.ZodBoolean;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
type EntityMintDomainResponse = z.infer<typeof EntityMintDomainResponseSchema>;
|
|
99
172
|
|
|
100
173
|
/**
|
|
101
174
|
* Profile row shared across `/api/following`, `/api/profile/:handleOrDid/mutuals`,
|
|
@@ -348,4 +421,4 @@ interface FeedCursor {
|
|
|
348
421
|
declare function encodeFeedCursor(cursor: FeedCursor): string;
|
|
349
422
|
declare function decodeFeedCursor(encoded: string): FeedCursor;
|
|
350
423
|
|
|
351
|
-
export { type AtmosphereFeedItem as A,
|
|
424
|
+
export { type AtmosphereFeedItem as A, type FollowProfileItem as B, type FollowProfilePage as C, FollowProfilePageSchema as D, type EntityImportSearchResponse as E, FEATURE_FLAGS as F, FollowProfileSchema as G, SifaFeedItemSchema as H, decodeFeedCursor as I, encodeFeedCursor as J, type SifaFeedItem as S, AtmosphereFeedItemSchema as a, EntityImportSearchResponseSchema as b, type EntityMintDomainResponse as c, EntityMintDomainResponseSchema as d, type EntityResolveDomainRequest as e, EntityResolveDomainRequestSchema as f, type EntityResolveDomainResponse as g, EntityResolveDomainResponseSchema as h, type EntitySearchResponse as i, EntitySearchResponseSchema as j, type EntitySearchResult as k, EntitySearchResultSchema as l, type EntitySelectRequest as m, EntitySelectRequestSchema as n, type EntitySelectResponse as o, EntitySelectResponseSchema as p, type FeatureAllowlistEntry as q, FeatureAllowlistEntrySchema as r, type FeatureFlag as s, type FeedActor as t, FeedActorSchema as u, type FeedCursor as v, type FollowFeedItem as w, FollowFeedItemSchema as x, type FollowFeedPage as y, FollowFeedPageSchema as z };
|
|
@@ -96,6 +96,79 @@ declare const EntityImportSearchResponseSchema: z.ZodObject<{
|
|
|
96
96
|
}, z.core.$strip>], "source">>;
|
|
97
97
|
}, z.core.$strip>;
|
|
98
98
|
type EntityImportSearchResponse = z.infer<typeof EntityImportSearchResponseSchema>;
|
|
99
|
+
/**
|
|
100
|
+
* Body of the domain grow-on-demand endpoints (`POST /api/entities/resolve-domain`
|
|
101
|
+
* and `POST /api/entities/mint-domain`). The server re-validates the value as a
|
|
102
|
+
* registrable domain; 253 is the max DNS name length.
|
|
103
|
+
*/
|
|
104
|
+
declare const EntityResolveDomainRequestSchema: z.ZodObject<{
|
|
105
|
+
domain: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
type EntityResolveDomainRequest = z.infer<typeof EntityResolveDomainRequestSchema>;
|
|
108
|
+
/**
|
|
109
|
+
* Response of `POST /api/entities/resolve-domain` (grow-on-demand Branch 1). Any
|
|
110
|
+
* notable companies whose official website is the domain, imported from Wikidata.
|
|
111
|
+
* `canMint` is true when nothing notable matched AND the domain is eligible for
|
|
112
|
+
* the user-initiated mint-from-domain path -- it drives the "Add <domain>"
|
|
113
|
+
* affordance.
|
|
114
|
+
*/
|
|
115
|
+
declare const EntityResolveDomainResponseSchema: z.ZodObject<{
|
|
116
|
+
results: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
+
kind: z.ZodString;
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
120
|
+
country: z.ZodNullable<z.ZodString>;
|
|
121
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
122
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
123
|
+
source: z.ZodLiteral<"entity">;
|
|
124
|
+
entityId: z.ZodNumber;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
kind: z.ZodString;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
129
|
+
country: z.ZodNullable<z.ZodString>;
|
|
130
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
131
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
132
|
+
source: z.ZodLiteral<"pdl">;
|
|
133
|
+
pdlId: z.ZodString;
|
|
134
|
+
}, z.core.$strip>], "source">>;
|
|
135
|
+
canMint: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
type EntityResolveDomainResponse = z.infer<typeof EntityResolveDomainResponseSchema>;
|
|
138
|
+
/**
|
|
139
|
+
* Response of `POST /api/entities/mint-domain` (grow-on-demand Branch 2). The
|
|
140
|
+
* linkable entity minted from (or already resolved for) the domain. A non-2xx
|
|
141
|
+
* status (e.g. the domain is not mintable, a confusable look-alike, or the site
|
|
142
|
+
* yielded nothing usable) surfaces as a thrown error, not a null result.
|
|
143
|
+
*
|
|
144
|
+
* `pending` is true when the entity is a fresh hidden-pending mint: the
|
|
145
|
+
* requesting user's own link resolves to it immediately, but it stays out of
|
|
146
|
+
* other users' typeahead + aggregation until an admin approves it. Clients should
|
|
147
|
+
* reflect this ("added -- pending review") rather than "added & live".
|
|
148
|
+
*/
|
|
149
|
+
declare const EntityMintDomainResponseSchema: z.ZodObject<{
|
|
150
|
+
result: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
151
|
+
kind: z.ZodString;
|
|
152
|
+
name: z.ZodString;
|
|
153
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
154
|
+
country: z.ZodNullable<z.ZodString>;
|
|
155
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
156
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
157
|
+
source: z.ZodLiteral<"entity">;
|
|
158
|
+
entityId: z.ZodNumber;
|
|
159
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
160
|
+
kind: z.ZodString;
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
domain: z.ZodNullable<z.ZodString>;
|
|
163
|
+
country: z.ZodNullable<z.ZodString>;
|
|
164
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
165
|
+
parentName: z.ZodNullable<z.ZodString>;
|
|
166
|
+
source: z.ZodLiteral<"pdl">;
|
|
167
|
+
pdlId: z.ZodString;
|
|
168
|
+
}, z.core.$strip>], "source">;
|
|
169
|
+
pending: z.ZodBoolean;
|
|
170
|
+
}, z.core.$strip>;
|
|
171
|
+
type EntityMintDomainResponse = z.infer<typeof EntityMintDomainResponseSchema>;
|
|
99
172
|
|
|
100
173
|
/**
|
|
101
174
|
* Profile row shared across `/api/following`, `/api/profile/:handleOrDid/mutuals`,
|
|
@@ -348,4 +421,4 @@ interface FeedCursor {
|
|
|
348
421
|
declare function encodeFeedCursor(cursor: FeedCursor): string;
|
|
349
422
|
declare function decodeFeedCursor(encoded: string): FeedCursor;
|
|
350
423
|
|
|
351
|
-
export { type AtmosphereFeedItem as A,
|
|
424
|
+
export { type AtmosphereFeedItem as A, type FollowProfileItem as B, type FollowProfilePage as C, FollowProfilePageSchema as D, type EntityImportSearchResponse as E, FEATURE_FLAGS as F, FollowProfileSchema as G, SifaFeedItemSchema as H, decodeFeedCursor as I, encodeFeedCursor as J, type SifaFeedItem as S, AtmosphereFeedItemSchema as a, EntityImportSearchResponseSchema as b, type EntityMintDomainResponse as c, EntityMintDomainResponseSchema as d, type EntityResolveDomainRequest as e, EntityResolveDomainRequestSchema as f, type EntityResolveDomainResponse as g, EntityResolveDomainResponseSchema as h, type EntitySearchResponse as i, EntitySearchResponseSchema as j, type EntitySearchResult as k, EntitySearchResultSchema as l, type EntitySelectRequest as m, EntitySelectRequestSchema as n, type EntitySelectResponse as o, EntitySelectResponseSchema as p, type FeatureAllowlistEntry as q, FeatureAllowlistEntrySchema as r, type FeatureFlag as s, type FeedActor as t, FeedActorSchema as u, type FeedCursor as v, type FollowFeedItem as w, FollowFeedItemSchema as x, type FollowFeedPage as y, FollowFeedPageSchema as z };
|