@singi-labs/sifa-sdk 0.19.0 → 0.19.2
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/index.cjs +15 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/{network-map-C8VCE7HI.d.cts → network-map--UEgNKwG.d.cts} +1 -1
- package/dist/{network-map-DNE9jp_r.d.ts → network-map-02mWqhn7.d.ts} +1 -1
- package/dist/{org-8RWC0qSH.d.cts → org-DLs-A3x8.d.cts} +9 -3
- package/dist/{org-BwK-97S0.d.ts → org-DfW-NrU1.d.ts} +9 -3
- package/dist/{org-settings-CZ_tmAYl.d.cts → org-settings-BndD0dMQ.d.cts} +19 -0
- package/dist/{org-settings-CZ_tmAYl.d.ts → org-settings-BndD0dMQ.d.ts} +19 -0
- package/dist/{profile-investment-D-nKT3ZK.d.cts → profile-investment-DSTOEvG-.d.cts} +6 -0
- package/dist/{profile-investment-D-nKT3ZK.d.ts → profile-investment-DSTOEvG-.d.ts} +6 -0
- package/dist/query/fetchers/index.cjs +1 -0
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +4 -4
- package/dist/query/fetchers/index.d.ts +4 -4
- package/dist/query/fetchers/index.js +1 -0
- package/dist/query/fetchers/index.js.map +1 -1
- package/dist/query/hooks/index.cjs +5 -1
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +4 -4
- package/dist/query/hooks/index.d.ts +4 -4
- package/dist/query/hooks/index.js +5 -1
- package/dist/query/hooks/index.js.map +1 -1
- package/dist/query/index.cjs +5 -1
- 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 +5 -1
- package/dist/query/index.js.map +1 -1
- package/dist/schemas/index.cjs +14 -0
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +1 -1
- package/dist/schemas/index.d.ts +1 -1
- package/dist/schemas/index.js +14 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/write/index.cjs +77 -9
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +7 -1
- package/dist/schemas/write/index.d.ts +7 -1
- package/dist/schemas/write/index.js +77 -9
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/{use-org-notification-emails-CeDxRlis.d.cts → use-org-notification-emails-DooABlcj.d.cts} +21 -2
- package/dist/{use-org-notification-emails-LIoQtBgD.d.ts → use-org-notification-emails-TwvSWfD-.d.ts} +21 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Profile, d as ProfilePosition, S as SkillRef, w as PresentationLinkView } from './index-66ul8ibE.cjs';
|
|
2
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
2
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-DLs-A3x8.cjs';
|
|
3
3
|
import { n as ProfileView } from './types-CDrbMqyV.cjs';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-DMaGicYm.cjs';
|
|
5
5
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-D1l6pulB.cjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as Profile, d as ProfilePosition, S as SkillRef, w as PresentationLinkView } from './index-C13I8diU.js';
|
|
2
|
-
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-
|
|
2
|
+
import { S as SifaApiConfig, A as ApiFetchOptions, C as CreateResult, W as WriteResult } from './org-DfW-NrU1.js';
|
|
3
3
|
import { n as ProfileView } from './types-YpOch4Ho.js';
|
|
4
4
|
import { S as SummarizeProfileViewOptions, P as ProfileSummary } from './profile-summary-CjhrwYBp.js';
|
|
5
5
|
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, l as EntitySelectRequest, n as EntitySelectResponse } from './follow-profile-D1l6pulB.js';
|
|
@@ -2,7 +2,7 @@ import { p as ExternalAccount, Q as SkillSuggestion } from './index-66ul8ibE.cjs
|
|
|
2
2
|
import { b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-CDrbMqyV.cjs';
|
|
3
3
|
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-D1l6pulB.cjs';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-
|
|
5
|
+
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-BndD0dMQ.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Foundation HTTP client for talking to the Sifa AppView.
|
|
@@ -1293,13 +1293,19 @@ declare function getFollowing(config: SifaApiConfig, handle: string, opts?: Fetc
|
|
|
1293
1293
|
/** Options for {@link fetchFollowingFeed}. */
|
|
1294
1294
|
interface FetchFollowingFeedOptions extends ApiFetchOptions {
|
|
1295
1295
|
limit?: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* Opt in to the viewer's Bluesky activity too. Off by default: the point of
|
|
1298
|
+
* the feed is what connections do on OTHER apps.
|
|
1299
|
+
*/
|
|
1300
|
+
includeBluesky?: boolean;
|
|
1296
1301
|
/** Forward a `Cookie` header on Next.js RSC server-side calls (web). */
|
|
1297
1302
|
cookieHeader?: string;
|
|
1298
1303
|
}
|
|
1299
1304
|
/**
|
|
1300
1305
|
* The viewer's cross-app following feed: what OTHER apps their connections use
|
|
1301
|
-
* (Tangled, WhiteWind, Smoke Signal, ...) — Bluesky is excluded server-side
|
|
1302
|
-
* it is the least interesting part and other apps already surface
|
|
1306
|
+
* (Tangled, WhiteWind, Smoke Signal, ...) — Bluesky is excluded server-side by
|
|
1307
|
+
* default, as it is the least interesting part and other apps already surface
|
|
1308
|
+
* it. Pass `includeBluesky: true` to bring it back in.
|
|
1303
1309
|
*
|
|
1304
1310
|
* Auth is identity-only server-side, so the NATIVE app supplies
|
|
1305
1311
|
* `config.getAuthToken` to mint a service-auth Bearer, while WEB relies on its
|
|
@@ -2,7 +2,7 @@ import { p as ExternalAccount, Q as SkillSuggestion } from './index-C13I8diU.js'
|
|
|
2
2
|
import { b as ActivityLabel, t as RepoDeleteResult, w as RepoInventory } from './types-YpOch4Ho.js';
|
|
3
3
|
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-D1l6pulB.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-
|
|
5
|
+
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-BndD0dMQ.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Foundation HTTP client for talking to the Sifa AppView.
|
|
@@ -1293,13 +1293,19 @@ declare function getFollowing(config: SifaApiConfig, handle: string, opts?: Fetc
|
|
|
1293
1293
|
/** Options for {@link fetchFollowingFeed}. */
|
|
1294
1294
|
interface FetchFollowingFeedOptions extends ApiFetchOptions {
|
|
1295
1295
|
limit?: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* Opt in to the viewer's Bluesky activity too. Off by default: the point of
|
|
1298
|
+
* the feed is what connections do on OTHER apps.
|
|
1299
|
+
*/
|
|
1300
|
+
includeBluesky?: boolean;
|
|
1296
1301
|
/** Forward a `Cookie` header on Next.js RSC server-side calls (web). */
|
|
1297
1302
|
cookieHeader?: string;
|
|
1298
1303
|
}
|
|
1299
1304
|
/**
|
|
1300
1305
|
* The viewer's cross-app following feed: what OTHER apps their connections use
|
|
1301
|
-
* (Tangled, WhiteWind, Smoke Signal, ...) — Bluesky is excluded server-side
|
|
1302
|
-
* it is the least interesting part and other apps already surface
|
|
1306
|
+
* (Tangled, WhiteWind, Smoke Signal, ...) — Bluesky is excluded server-side by
|
|
1307
|
+
* default, as it is the least interesting part and other apps already surface
|
|
1308
|
+
* it. Pass `includeBluesky: true` to bring it back in.
|
|
1303
1309
|
*
|
|
1304
1310
|
* Auth is identity-only server-side, so the NATIVE app supplies
|
|
1305
1311
|
* `config.getAuthToken` to mint a service-auth Bearer, while WEB relies on its
|
|
@@ -43,6 +43,25 @@ declare const OrgProfileUpdateRequestSchema: z.ZodObject<{
|
|
|
43
43
|
mimeType: z.ZodString;
|
|
44
44
|
size: z.ZodNumber;
|
|
45
45
|
}, z.core.$strip>>;
|
|
46
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
country: z.ZodOptional<z.ZodString>;
|
|
48
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
49
|
+
region: z.ZodOptional<z.ZodString>;
|
|
50
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
51
|
+
street: z.ZodOptional<z.ZodString>;
|
|
52
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
companySize: z.ZodOptional<z.ZodString>;
|
|
55
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
url: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
industry: z.ZodString;
|
|
61
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
founded: z.ZodOptional<z.ZodString>;
|
|
64
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
65
|
personalProfileVisible: z.ZodOptional<z.ZodBoolean>;
|
|
47
66
|
}, z.core.$strip>;
|
|
48
67
|
type OrgProfileUpdateRequestInput = z.infer<typeof OrgProfileUpdateRequestSchema>;
|
|
@@ -43,6 +43,25 @@ declare const OrgProfileUpdateRequestSchema: z.ZodObject<{
|
|
|
43
43
|
mimeType: z.ZodString;
|
|
44
44
|
size: z.ZodNumber;
|
|
45
45
|
}, z.core.$strip>>;
|
|
46
|
+
addresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
47
|
+
country: z.ZodOptional<z.ZodString>;
|
|
48
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
49
|
+
region: z.ZodOptional<z.ZodString>;
|
|
50
|
+
locality: z.ZodOptional<z.ZodString>;
|
|
51
|
+
street: z.ZodOptional<z.ZodString>;
|
|
52
|
+
name: z.ZodOptional<z.ZodString>;
|
|
53
|
+
}, z.core.$strip>>>;
|
|
54
|
+
companySize: z.ZodOptional<z.ZodString>;
|
|
55
|
+
links: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
56
|
+
name: z.ZodString;
|
|
57
|
+
url: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
60
|
+
industry: z.ZodString;
|
|
61
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>>;
|
|
63
|
+
founded: z.ZodOptional<z.ZodString>;
|
|
64
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
65
|
personalProfileVisible: z.ZodOptional<z.ZodBoolean>;
|
|
47
66
|
}, z.core.$strip>;
|
|
48
67
|
type OrgProfileUpdateRequestInput = z.infer<typeof OrgProfileUpdateRequestSchema>;
|
|
@@ -131,6 +131,12 @@ declare const OrgProfileRecordSchema: z.ZodObject<{
|
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
url: z.ZodString;
|
|
133
133
|
}, z.core.$strip>>>;
|
|
134
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
|
+
industry: z.ZodString;
|
|
136
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
founded: z.ZodOptional<z.ZodString>;
|
|
139
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
140
|
personalProfileVisible: z.ZodOptional<z.ZodBoolean>;
|
|
135
141
|
labels: z.ZodOptional<z.ZodObject<{
|
|
136
142
|
$type: z.ZodOptional<z.ZodLiteral<"com.atproto.label.defs#selfLabels">>;
|
|
@@ -131,6 +131,12 @@ declare const OrgProfileRecordSchema: z.ZodObject<{
|
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
url: z.ZodString;
|
|
133
133
|
}, z.core.$strip>>>;
|
|
134
|
+
industries: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
135
|
+
industry: z.ZodString;
|
|
136
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
137
|
+
}, z.core.$strip>>>;
|
|
138
|
+
founded: z.ZodOptional<z.ZodString>;
|
|
139
|
+
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
134
140
|
personalProfileVisible: z.ZodOptional<z.ZodBoolean>;
|
|
135
141
|
labels: z.ZodOptional<z.ZodObject<{
|
|
136
142
|
$type: z.ZodOptional<z.ZodLiteral<"com.atproto.label.defs#selfLabels">>;
|
|
@@ -1061,6 +1061,7 @@ var FOLLOWING_FEED_LXM = "id.sifa.feed.getFollowingFeed";
|
|
|
1061
1061
|
async function fetchFollowingFeed(config, opts = {}) {
|
|
1062
1062
|
const params = new URLSearchParams();
|
|
1063
1063
|
if (opts.limit) params.set("limit", String(opts.limit));
|
|
1064
|
+
if (opts.includeBluesky) params.set("includeBluesky", "true");
|
|
1064
1065
|
const qs = params.toString();
|
|
1065
1066
|
const headers = { ...opts.headers ?? {} };
|
|
1066
1067
|
if (opts.cookieHeader) headers.cookie = opts.cookieHeader;
|