@singi-labs/sifa-sdk 0.18.19 → 0.18.21
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/atproto/index.cjs +22 -0
- package/dist/atproto/index.cjs.map +1 -0
- package/dist/atproto/index.d.cts +45 -0
- package/dist/atproto/index.d.ts +45 -0
- package/dist/atproto/index.js +17 -0
- package/dist/atproto/index.js.map +1 -0
- package/dist/{index-E2qQbMnv.d.ts → index-66ul8ibE.d.cts} +50 -0
- package/dist/{index-E2qQbMnv.d.cts → index-C13I8diU.d.ts} +50 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +3 -1
- package/dist/jsonld/index.d.ts +3 -1
- package/dist/{network-map-BU9NhJ5k.d.ts → network-map-Cwef6yhK.d.ts} +4 -4
- package/dist/{network-map-CdyfAzkr.d.cts → network-map-Dupds9nG.d.cts} +4 -4
- package/dist/{org-BugQoHpq.d.ts → org-DC_71Ojb.d.ts} +2 -2
- package/dist/{org-DJMLuc-j.d.cts → org-DgC4pecF.d.cts} +2 -2
- package/dist/{profile-investment-vmHROP_v.d.cts → profile-investment-Bvulg_jG.d.cts} +1 -85
- package/dist/{profile-investment-vmHROP_v.d.ts → profile-investment-Bvulg_jG.d.ts} +1 -85
- package/dist/{profile-summary-CKAuwczF.d.ts → profile-summary-CjhrwYBp.d.ts} +1 -1
- package/dist/{profile-summary-BeiM3TmH.d.cts → profile-summary-DMaGicYm.d.cts} +1 -1
- package/dist/query/fetchers/index.d.cts +8 -7
- package/dist/query/fetchers/index.d.ts +8 -7
- package/dist/query/hooks/index.d.cts +7 -6
- package/dist/query/hooks/index.d.ts +7 -6
- package/dist/query/index.d.cts +9 -8
- package/dist/query/index.d.ts +9 -8
- package/dist/resume/index.d.cts +3 -1
- package/dist/resume/index.d.ts +3 -1
- package/dist/schemas/index.d.cts +2 -1
- package/dist/schemas/index.d.ts +2 -1
- package/dist/shared-v0vl5hov.d.cts +87 -0
- package/dist/shared-v0vl5hov.d.ts +87 -0
- package/dist/{types-2qTC_DBy.d.cts → types-CDrbMqyV.d.cts} +1 -1
- package/dist/{types-CLrLfvXz.d.ts → types-YpOch4Ho.d.ts} +1 -1
- package/dist/{use-org-notification-emails-BCmsG1rE.d.ts → use-org-notification-emails-CHU0JhlL.d.ts} +3 -3
- package/dist/{use-org-notification-emails-CmK77DQu.d.cts → use-org-notification-emails-ZmOjvMh0.d.cts} +3 -3
- package/package.json +11 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/atproto/index.ts
|
|
4
|
+
function likeRecord(agent, subject) {
|
|
5
|
+
return agent.like(subject.uri, subject.cid);
|
|
6
|
+
}
|
|
7
|
+
function unlikeRecord(agent, likeUri) {
|
|
8
|
+
return agent.deleteLike(likeUri);
|
|
9
|
+
}
|
|
10
|
+
function repostRecord(agent, subject) {
|
|
11
|
+
return agent.repost(subject.uri, subject.cid);
|
|
12
|
+
}
|
|
13
|
+
function unrepostRecord(agent, repostUri) {
|
|
14
|
+
return agent.deleteRepost(repostUri);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.likeRecord = likeRecord;
|
|
18
|
+
exports.repostRecord = repostRecord;
|
|
19
|
+
exports.unlikeRecord = unlikeRecord;
|
|
20
|
+
exports.unrepostRecord = unrepostRecord;
|
|
21
|
+
//# sourceMappingURL=index.cjs.map
|
|
22
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/atproto/index.ts"],"names":[],"mappings":";;;AAoCO,SAAS,UAAA,CAAW,OAA0B,OAAA,EAAwC;AAC3F,EAAA,OAAO,KAAA,CAAM,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,QAAQ,GAAG,CAAA;AAC5C;AAGO,SAAS,YAAA,CAAa,OAA0B,OAAA,EAAgC;AACrF,EAAA,OAAO,KAAA,CAAM,WAAW,OAAO,CAAA;AACjC;AAMO,SAAS,YAAA,CAAa,OAA0B,OAAA,EAAwC;AAC7F,EAAA,OAAO,KAAA,CAAM,MAAA,CAAO,OAAA,CAAQ,GAAA,EAAK,QAAQ,GAAG,CAAA;AAC9C;AAGO,SAAS,cAAA,CAAe,OAA0B,SAAA,EAAkC;AACzF,EAAA,OAAO,KAAA,CAAM,aAAa,SAAS,CAAA;AACrC","file":"index.cjs","sourcesContent":["/**\n * Direct-to-PDS write helpers for AT Protocol interactions (like, repost).\n *\n * The native app performs OAuth on-device and holds its own authenticated agent,\n * then writes records directly to the user's PDS. These helpers are the shared,\n * typed service layer for those writes: the app passes its agent in, and the SDK\n * never constructs one itself. Reads stay on the sifa-api HTTP client (the rest\n * of this package); this subpath is the write side.\n *\n * Kept dependency-free: the agent is described structurally (below) rather than\n * imported from `@atproto/api`, so consuming this subpath adds no dependency.\n * The app's real `Agent` satisfies the structural type.\n */\n\n/** A strong reference to a record: its AT-URI and content id. */\nexport interface StrongRef {\n uri: string;\n cid: string;\n}\n\n/**\n * The subset of an authenticated AT Protocol agent (e.g. `@atproto/api`'s\n * `Agent`) that these write helpers use. Declared structurally so the SDK needs\n * no `@atproto/api` dependency.\n */\nexport interface AtprotoWriteAgent {\n like(uri: string, cid: string): Promise<StrongRef>;\n deleteLike(likeUri: string): Promise<void>;\n repost(uri: string, cid: string): Promise<StrongRef>;\n deleteRepost(repostUri: string): Promise<void>;\n}\n\n/**\n * Like a record. `subject` is the post being liked; the returned ref is the\n * like record itself, which {@link unlikeRecord} needs to undo it.\n */\nexport function likeRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef> {\n return agent.like(subject.uri, subject.cid);\n}\n\n/** Remove a like, given the like record's AT-URI (from {@link likeRecord}). */\nexport function unlikeRecord(agent: AtprotoWriteAgent, likeUri: string): Promise<void> {\n return agent.deleteLike(likeUri);\n}\n\n/**\n * Repost a record. `subject` is the post being reposted; the returned ref is the\n * repost record itself, which {@link unrepostRecord} needs to undo it.\n */\nexport function repostRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef> {\n return agent.repost(subject.uri, subject.cid);\n}\n\n/** Remove a repost, given the repost record's AT-URI (from {@link repostRecord}). */\nexport function unrepostRecord(agent: AtprotoWriteAgent, repostUri: string): Promise<void> {\n return agent.deleteRepost(repostUri);\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direct-to-PDS write helpers for AT Protocol interactions (like, repost).
|
|
3
|
+
*
|
|
4
|
+
* The native app performs OAuth on-device and holds its own authenticated agent,
|
|
5
|
+
* then writes records directly to the user's PDS. These helpers are the shared,
|
|
6
|
+
* typed service layer for those writes: the app passes its agent in, and the SDK
|
|
7
|
+
* never constructs one itself. Reads stay on the sifa-api HTTP client (the rest
|
|
8
|
+
* of this package); this subpath is the write side.
|
|
9
|
+
*
|
|
10
|
+
* Kept dependency-free: the agent is described structurally (below) rather than
|
|
11
|
+
* imported from `@atproto/api`, so consuming this subpath adds no dependency.
|
|
12
|
+
* The app's real `Agent` satisfies the structural type.
|
|
13
|
+
*/
|
|
14
|
+
/** A strong reference to a record: its AT-URI and content id. */
|
|
15
|
+
interface StrongRef {
|
|
16
|
+
uri: string;
|
|
17
|
+
cid: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The subset of an authenticated AT Protocol agent (e.g. `@atproto/api`'s
|
|
21
|
+
* `Agent`) that these write helpers use. Declared structurally so the SDK needs
|
|
22
|
+
* no `@atproto/api` dependency.
|
|
23
|
+
*/
|
|
24
|
+
interface AtprotoWriteAgent {
|
|
25
|
+
like(uri: string, cid: string): Promise<StrongRef>;
|
|
26
|
+
deleteLike(likeUri: string): Promise<void>;
|
|
27
|
+
repost(uri: string, cid: string): Promise<StrongRef>;
|
|
28
|
+
deleteRepost(repostUri: string): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Like a record. `subject` is the post being liked; the returned ref is the
|
|
32
|
+
* like record itself, which {@link unlikeRecord} needs to undo it.
|
|
33
|
+
*/
|
|
34
|
+
declare function likeRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef>;
|
|
35
|
+
/** Remove a like, given the like record's AT-URI (from {@link likeRecord}). */
|
|
36
|
+
declare function unlikeRecord(agent: AtprotoWriteAgent, likeUri: string): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Repost a record. `subject` is the post being reposted; the returned ref is the
|
|
39
|
+
* repost record itself, which {@link unrepostRecord} needs to undo it.
|
|
40
|
+
*/
|
|
41
|
+
declare function repostRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef>;
|
|
42
|
+
/** Remove a repost, given the repost record's AT-URI (from {@link repostRecord}). */
|
|
43
|
+
declare function unrepostRecord(agent: AtprotoWriteAgent, repostUri: string): Promise<void>;
|
|
44
|
+
|
|
45
|
+
export { type AtprotoWriteAgent, type StrongRef, likeRecord, repostRecord, unlikeRecord, unrepostRecord };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direct-to-PDS write helpers for AT Protocol interactions (like, repost).
|
|
3
|
+
*
|
|
4
|
+
* The native app performs OAuth on-device and holds its own authenticated agent,
|
|
5
|
+
* then writes records directly to the user's PDS. These helpers are the shared,
|
|
6
|
+
* typed service layer for those writes: the app passes its agent in, and the SDK
|
|
7
|
+
* never constructs one itself. Reads stay on the sifa-api HTTP client (the rest
|
|
8
|
+
* of this package); this subpath is the write side.
|
|
9
|
+
*
|
|
10
|
+
* Kept dependency-free: the agent is described structurally (below) rather than
|
|
11
|
+
* imported from `@atproto/api`, so consuming this subpath adds no dependency.
|
|
12
|
+
* The app's real `Agent` satisfies the structural type.
|
|
13
|
+
*/
|
|
14
|
+
/** A strong reference to a record: its AT-URI and content id. */
|
|
15
|
+
interface StrongRef {
|
|
16
|
+
uri: string;
|
|
17
|
+
cid: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The subset of an authenticated AT Protocol agent (e.g. `@atproto/api`'s
|
|
21
|
+
* `Agent`) that these write helpers use. Declared structurally so the SDK needs
|
|
22
|
+
* no `@atproto/api` dependency.
|
|
23
|
+
*/
|
|
24
|
+
interface AtprotoWriteAgent {
|
|
25
|
+
like(uri: string, cid: string): Promise<StrongRef>;
|
|
26
|
+
deleteLike(likeUri: string): Promise<void>;
|
|
27
|
+
repost(uri: string, cid: string): Promise<StrongRef>;
|
|
28
|
+
deleteRepost(repostUri: string): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Like a record. `subject` is the post being liked; the returned ref is the
|
|
32
|
+
* like record itself, which {@link unlikeRecord} needs to undo it.
|
|
33
|
+
*/
|
|
34
|
+
declare function likeRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef>;
|
|
35
|
+
/** Remove a like, given the like record's AT-URI (from {@link likeRecord}). */
|
|
36
|
+
declare function unlikeRecord(agent: AtprotoWriteAgent, likeUri: string): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Repost a record. `subject` is the post being reposted; the returned ref is the
|
|
39
|
+
* repost record itself, which {@link unrepostRecord} needs to undo it.
|
|
40
|
+
*/
|
|
41
|
+
declare function repostRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef>;
|
|
42
|
+
/** Remove a repost, given the repost record's AT-URI (from {@link repostRecord}). */
|
|
43
|
+
declare function unrepostRecord(agent: AtprotoWriteAgent, repostUri: string): Promise<void>;
|
|
44
|
+
|
|
45
|
+
export { type AtprotoWriteAgent, type StrongRef, likeRecord, repostRecord, unlikeRecord, unrepostRecord };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/atproto/index.ts
|
|
2
|
+
function likeRecord(agent, subject) {
|
|
3
|
+
return agent.like(subject.uri, subject.cid);
|
|
4
|
+
}
|
|
5
|
+
function unlikeRecord(agent, likeUri) {
|
|
6
|
+
return agent.deleteLike(likeUri);
|
|
7
|
+
}
|
|
8
|
+
function repostRecord(agent, subject) {
|
|
9
|
+
return agent.repost(subject.uri, subject.cid);
|
|
10
|
+
}
|
|
11
|
+
function unrepostRecord(agent, repostUri) {
|
|
12
|
+
return agent.deleteRepost(repostUri);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { likeRecord, repostRecord, unlikeRecord, unrepostRecord };
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/atproto/index.ts"],"names":[],"mappings":";AAoCO,SAAS,UAAA,CAAW,OAA0B,OAAA,EAAwC;AAC3F,EAAA,OAAO,KAAA,CAAM,IAAA,CAAK,OAAA,CAAQ,GAAA,EAAK,QAAQ,GAAG,CAAA;AAC5C;AAGO,SAAS,YAAA,CAAa,OAA0B,OAAA,EAAgC;AACrF,EAAA,OAAO,KAAA,CAAM,WAAW,OAAO,CAAA;AACjC;AAMO,SAAS,YAAA,CAAa,OAA0B,OAAA,EAAwC;AAC7F,EAAA,OAAO,KAAA,CAAM,MAAA,CAAO,OAAA,CAAQ,GAAA,EAAK,QAAQ,GAAG,CAAA;AAC9C;AAGO,SAAS,cAAA,CAAe,OAA0B,SAAA,EAAkC;AACzF,EAAA,OAAO,KAAA,CAAM,aAAa,SAAS,CAAA;AACrC","file":"index.js","sourcesContent":["/**\n * Direct-to-PDS write helpers for AT Protocol interactions (like, repost).\n *\n * The native app performs OAuth on-device and holds its own authenticated agent,\n * then writes records directly to the user's PDS. These helpers are the shared,\n * typed service layer for those writes: the app passes its agent in, and the SDK\n * never constructs one itself. Reads stay on the sifa-api HTTP client (the rest\n * of this package); this subpath is the write side.\n *\n * Kept dependency-free: the agent is described structurally (below) rather than\n * imported from `@atproto/api`, so consuming this subpath adds no dependency.\n * The app's real `Agent` satisfies the structural type.\n */\n\n/** A strong reference to a record: its AT-URI and content id. */\nexport interface StrongRef {\n uri: string;\n cid: string;\n}\n\n/**\n * The subset of an authenticated AT Protocol agent (e.g. `@atproto/api`'s\n * `Agent`) that these write helpers use. Declared structurally so the SDK needs\n * no `@atproto/api` dependency.\n */\nexport interface AtprotoWriteAgent {\n like(uri: string, cid: string): Promise<StrongRef>;\n deleteLike(likeUri: string): Promise<void>;\n repost(uri: string, cid: string): Promise<StrongRef>;\n deleteRepost(repostUri: string): Promise<void>;\n}\n\n/**\n * Like a record. `subject` is the post being liked; the returned ref is the\n * like record itself, which {@link unlikeRecord} needs to undo it.\n */\nexport function likeRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef> {\n return agent.like(subject.uri, subject.cid);\n}\n\n/** Remove a like, given the like record's AT-URI (from {@link likeRecord}). */\nexport function unlikeRecord(agent: AtprotoWriteAgent, likeUri: string): Promise<void> {\n return agent.deleteLike(likeUri);\n}\n\n/**\n * Repost a record. `subject` is the post being reposted; the returned ref is the\n * repost record itself, which {@link unrepostRecord} needs to undo it.\n */\nexport function repostRecord(agent: AtprotoWriteAgent, subject: StrongRef): Promise<StrongRef> {\n return agent.repost(subject.uri, subject.cid);\n}\n\n/** Remove a repost, given the repost record's AT-URI (from {@link repostRecord}). */\nexport function unrepostRecord(agent: AtprotoWriteAgent, repostUri: string): Promise<void> {\n return agent.deleteRepost(repostUri);\n}\n"]}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { A as AgentRef } from './shared-v0vl5hov.cjs';
|
|
2
|
+
|
|
1
3
|
interface LocationValue {
|
|
2
4
|
city?: string;
|
|
3
5
|
/** community.lexicon.location.address field -- preferred over `city`. */
|
|
@@ -32,6 +34,12 @@ interface ProfilePosition {
|
|
|
32
34
|
* `company`).
|
|
33
35
|
*/
|
|
34
36
|
entityName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
39
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
40
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
41
|
+
*/
|
|
42
|
+
agentRef?: AgentRef;
|
|
35
43
|
/**
|
|
36
44
|
* Company-page slug for a durably-linked position, resolved by the AppView at
|
|
37
45
|
* read time alongside `entityName` (#159). Lets a consumer link the company
|
|
@@ -82,6 +90,12 @@ interface ProfileEducation {
|
|
|
82
90
|
* `institution`).
|
|
83
91
|
*/
|
|
84
92
|
entityName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
95
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
96
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
97
|
+
*/
|
|
98
|
+
agentRef?: AgentRef;
|
|
85
99
|
degree?: string;
|
|
86
100
|
fieldOfStudy?: string;
|
|
87
101
|
description?: string;
|
|
@@ -185,6 +199,12 @@ interface ProfileCertification {
|
|
|
185
199
|
* `authority`).
|
|
186
200
|
*/
|
|
187
201
|
entityName?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
204
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
205
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
206
|
+
*/
|
|
207
|
+
agentRef?: AgentRef;
|
|
188
208
|
issueDate?: string;
|
|
189
209
|
expiryDate?: string;
|
|
190
210
|
credentialUrl?: string;
|
|
@@ -290,6 +310,12 @@ interface ProfileVolunteering {
|
|
|
290
310
|
* `organization`).
|
|
291
311
|
*/
|
|
292
312
|
entityName?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
315
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
316
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
317
|
+
*/
|
|
318
|
+
agentRef?: AgentRef;
|
|
293
319
|
role?: string;
|
|
294
320
|
cause?: string;
|
|
295
321
|
startDate?: string;
|
|
@@ -313,6 +339,12 @@ interface ProfileHonor {
|
|
|
313
339
|
* entry. Absent for free-text or unresolved entries (fall back to `issuer`).
|
|
314
340
|
*/
|
|
315
341
|
entityName?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
344
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
345
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
346
|
+
*/
|
|
347
|
+
agentRef?: AgentRef;
|
|
316
348
|
date?: string;
|
|
317
349
|
description?: string;
|
|
318
350
|
hidden?: boolean;
|
|
@@ -358,6 +390,12 @@ interface ProfileInvestment {
|
|
|
358
390
|
entityRef?: string;
|
|
359
391
|
/** Resolved canonical name of the linked company. Render over `company` when present. */
|
|
360
392
|
entityName?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
395
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
396
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
397
|
+
*/
|
|
398
|
+
agentRef?: AgentRef;
|
|
361
399
|
/** How the capital went in. Angel, syndicate member or LP -- never GP. */
|
|
362
400
|
role?: string;
|
|
363
401
|
/** The company's funding stage at the time of the investment, not its stage today. */
|
|
@@ -403,6 +441,12 @@ interface ProfileInvolvement {
|
|
|
403
441
|
* free-text or unresolved entries.
|
|
404
442
|
*/
|
|
405
443
|
entityName?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
446
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
447
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
448
|
+
*/
|
|
449
|
+
agentRef?: AgentRef;
|
|
406
450
|
location?: LocationValue | null;
|
|
407
451
|
skills?: SkillRef[];
|
|
408
452
|
/** Skill records resolved from `skills`, for display. */
|
|
@@ -445,6 +489,12 @@ interface ProfileCourse {
|
|
|
445
489
|
* `institution`).
|
|
446
490
|
*/
|
|
447
491
|
entityName?: string;
|
|
492
|
+
/**
|
|
493
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
494
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
495
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
496
|
+
*/
|
|
497
|
+
agentRef?: AgentRef;
|
|
448
498
|
number?: string;
|
|
449
499
|
/** rkey of the associated certification, resolved from the course's
|
|
450
500
|
* `credential` at-uri. Used to join the course to a certification in the
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { A as AgentRef } from './shared-v0vl5hov.js';
|
|
2
|
+
|
|
1
3
|
interface LocationValue {
|
|
2
4
|
city?: string;
|
|
3
5
|
/** community.lexicon.location.address field -- preferred over `city`. */
|
|
@@ -32,6 +34,12 @@ interface ProfilePosition {
|
|
|
32
34
|
* `company`).
|
|
33
35
|
*/
|
|
34
36
|
entityName?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
39
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
40
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
41
|
+
*/
|
|
42
|
+
agentRef?: AgentRef;
|
|
35
43
|
/**
|
|
36
44
|
* Company-page slug for a durably-linked position, resolved by the AppView at
|
|
37
45
|
* read time alongside `entityName` (#159). Lets a consumer link the company
|
|
@@ -82,6 +90,12 @@ interface ProfileEducation {
|
|
|
82
90
|
* `institution`).
|
|
83
91
|
*/
|
|
84
92
|
entityName?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
95
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
96
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
97
|
+
*/
|
|
98
|
+
agentRef?: AgentRef;
|
|
85
99
|
degree?: string;
|
|
86
100
|
fieldOfStudy?: string;
|
|
87
101
|
description?: string;
|
|
@@ -185,6 +199,12 @@ interface ProfileCertification {
|
|
|
185
199
|
* `authority`).
|
|
186
200
|
*/
|
|
187
201
|
entityName?: string;
|
|
202
|
+
/**
|
|
203
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
204
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
205
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
206
|
+
*/
|
|
207
|
+
agentRef?: AgentRef;
|
|
188
208
|
issueDate?: string;
|
|
189
209
|
expiryDate?: string;
|
|
190
210
|
credentialUrl?: string;
|
|
@@ -290,6 +310,12 @@ interface ProfileVolunteering {
|
|
|
290
310
|
* `organization`).
|
|
291
311
|
*/
|
|
292
312
|
entityName?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
315
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
316
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
317
|
+
*/
|
|
318
|
+
agentRef?: AgentRef;
|
|
293
319
|
role?: string;
|
|
294
320
|
cause?: string;
|
|
295
321
|
startDate?: string;
|
|
@@ -313,6 +339,12 @@ interface ProfileHonor {
|
|
|
313
339
|
* entry. Absent for free-text or unresolved entries (fall back to `issuer`).
|
|
314
340
|
*/
|
|
315
341
|
entityName?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
344
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
345
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
346
|
+
*/
|
|
347
|
+
agentRef?: AgentRef;
|
|
316
348
|
date?: string;
|
|
317
349
|
description?: string;
|
|
318
350
|
hidden?: boolean;
|
|
@@ -358,6 +390,12 @@ interface ProfileInvestment {
|
|
|
358
390
|
entityRef?: string;
|
|
359
391
|
/** Resolved canonical name of the linked company. Render over `company` when present. */
|
|
360
392
|
entityName?: string;
|
|
393
|
+
/**
|
|
394
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
395
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
396
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
397
|
+
*/
|
|
398
|
+
agentRef?: AgentRef;
|
|
361
399
|
/** How the capital went in. Angel, syndicate member or LP -- never GP. */
|
|
362
400
|
role?: string;
|
|
363
401
|
/** The company's funding stage at the time of the investment, not its stage today. */
|
|
@@ -403,6 +441,12 @@ interface ProfileInvolvement {
|
|
|
403
441
|
* free-text or unresolved entries.
|
|
404
442
|
*/
|
|
405
443
|
entityName?: string;
|
|
444
|
+
/**
|
|
445
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
446
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
447
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
448
|
+
*/
|
|
449
|
+
agentRef?: AgentRef;
|
|
406
450
|
location?: LocationValue | null;
|
|
407
451
|
skills?: SkillRef[];
|
|
408
452
|
/** Skill records resolved from `skills`, for display. */
|
|
@@ -445,6 +489,12 @@ interface ProfileCourse {
|
|
|
445
489
|
* `institution`).
|
|
446
490
|
*/
|
|
447
491
|
entityName?: string;
|
|
492
|
+
/**
|
|
493
|
+
* Canonical org reference (#511): a nested mirror of the flat
|
|
494
|
+
* name / did / entityRef fields. Prefer it when present; the nested
|
|
495
|
+
* shape wins over the flat fields (resolveAgentRef precedence).
|
|
496
|
+
*/
|
|
497
|
+
agentRef?: AgentRef;
|
|
448
498
|
number?: string;
|
|
449
499
|
/** rkey of the associated certification, resolved from the course's
|
|
450
500
|
* `credential` at-uri. Used to join the course to a certification in the
|
package/dist/index.cjs
CHANGED
|
@@ -6417,7 +6417,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6417
6417
|
}
|
|
6418
6418
|
|
|
6419
6419
|
// src/index.ts
|
|
6420
|
-
var SIFA_SDK_VERSION = "0.18.
|
|
6420
|
+
var SIFA_SDK_VERSION = "0.18.21";
|
|
6421
6421
|
|
|
6422
6422
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6423
6423
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|