@singi-labs/sifa-sdk 0.22.0 → 0.23.1
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/badge/index.cjs.map +1 -1
- package/dist/{follow-profile-CVcA2w1v.d.ts → follow-profile-CCL1tT1x.d.ts} +1 -1
- package/dist/{follow-profile-CgLLLQtJ.d.cts → follow-profile-RijPgyp-.d.cts} +1 -1
- package/dist/{index-DDh2RLvx.d.ts → index-Bcy443Qi.d.ts} +1 -1
- package/dist/{index-BQAKeEoj.d.cts → index-Ck5zdubP.d.cts} +1 -1
- package/dist/index.cjs +49 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/jsonld/index.d.cts +2 -2
- package/dist/jsonld/index.d.ts +2 -2
- package/dist/{network-map-2OKh3wSB.d.ts → network-map-BGO1feWW.d.ts} +4 -4
- package/dist/{network-map-DJonNOl0.d.cts → network-map-DBiloRce.d.cts} +4 -4
- package/dist/{org-settings-BShvhyFp.d.ts → org-settings-BliQdqbB.d.cts} +57 -1
- package/dist/{profile-investment-QSwX2GL5.d.cts → profile-investment-BmuXFlZw.d.cts} +2 -0
- package/dist/{profile-investment-QSwX2GL5.d.ts → profile-investment-BmuXFlZw.d.ts} +2 -0
- package/dist/{org-settings-C73Sin5E.d.cts → profile-self-D59D_rhI.d.ts} +57 -1
- package/dist/{profile-summary-DF8-evvA.d.ts → profile-summary-5jNVFUR9.d.ts} +1 -1
- package/dist/{profile-summary-BCOKt3qS.d.cts → profile-summary-DJVnLbFV.d.cts} +1 -1
- package/dist/publishing/index.cjs +31 -1
- package/dist/publishing/index.cjs.map +1 -1
- package/dist/query/client.js +20 -1
- package/dist/query/client.js.map +1 -1
- package/dist/query/fetchers/index.cjs +51 -2
- package/dist/query/fetchers/index.cjs.map +1 -1
- package/dist/query/fetchers/index.d.cts +9 -9
- package/dist/query/fetchers/index.d.ts +9 -9
- package/dist/query/fetchers/profile-mutations.js.map +1 -1
- package/dist/query/hooks/index.cjs +51 -2
- package/dist/query/hooks/index.cjs.map +1 -1
- package/dist/query/hooks/index.d.cts +7 -7
- package/dist/query/hooks/index.d.ts +7 -7
- package/dist/query/index.cjs +20 -1
- package/dist/query/index.cjs.map +1 -1
- package/dist/query/index.d.cts +12 -12
- package/dist/query/index.d.ts +12 -12
- package/dist/query/index.js.map +1 -1
- package/dist/resume/index.d.cts +2 -2
- package/dist/resume/index.d.ts +2 -2
- package/dist/schemas/index.cjs +48 -6
- package/dist/schemas/index.cjs.map +1 -1
- package/dist/schemas/index.d.cts +3 -3
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +16 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/profile-self.js +18 -6
- package/dist/schemas/profile-self.js.map +1 -1
- package/dist/schemas/shared.js +41 -1
- package/dist/schemas/shared.js.map +1 -1
- package/dist/schemas/write/index.cjs +43 -6
- package/dist/schemas/write/index.cjs.map +1 -1
- package/dist/schemas/write/index.d.cts +2 -45
- package/dist/schemas/write/index.d.ts +2 -45
- package/dist/schemas/write/index.js +5 -1
- package/dist/schemas/write/index.js.map +1 -1
- package/dist/schemas/write/profile-self.js +19 -5
- package/dist/schemas/write/profile-self.js.map +1 -1
- package/dist/testing/index.d.cts +2 -2
- package/dist/testing/index.d.ts +2 -2
- package/dist/{types-JydVIhN5.d.cts → types-4MZHuQif.d.cts} +15 -3
- package/dist/{types-CkomzDlY.d.ts → types-DJrmm7p0.d.ts} +15 -3
- package/dist/{use-user-settings-DQ6Dyby7.d.ts → use-user-settings-BfGwI4x3.d.ts} +11 -6
- package/dist/{use-user-settings-Bn6g8bgr.d.cts → use-user-settings-g8ATc9zm.d.cts} +11 -6
- package/dist/{user-settings-BdNrDa9O.d.ts → user-settings-C3_y8_8T.d.ts} +6 -11
- package/dist/{user-settings-C8JUD4DM.d.cts → user-settings-CuqhXuTE.d.cts} +6 -11
- package/dist/{verification-providers-DeyGqaoC.d.cts → verification-providers-Dq6ni6e-.d.cts} +58 -1
- package/dist/{verification-providers-DeyGqaoC.d.ts → verification-providers-Dq6ni6e-.d.ts} +58 -1
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/schemas/write/index.ts"],"sourcesContent":["/**\n * `@singi-labs/sifa-sdk/schemas/write` — Zod schemas that mirror the input\n * contracts of the sifa-api write endpoints. Client-side callers use these\n * to `.safeParse(...)` inputs before submitting.\n *\n * These are DELIBERATELY separate from the lexicon record schemas in\n * `@singi-labs/sifa-sdk/schemas`:\n * - Lexicon schemas describe the PDS record shape (wire format).\n * - Write schemas describe what sifa-api's HTTP endpoints accept (write policy).\n *\n * The two overlap heavily but diverge in ways that matter for UX (e.g., write\n * schemas allow explicit `null` for optional fields to round-trip API echoes;\n * lexicon schemas use `.optional()` because PDS records never carry `null`).\n * Client-side form validation should use THESE schemas so \"passes locally\"\n * matches \"server accepts\". Wire-shape assertions should use the lexicon\n * schemas.\n *\n * Source of truth: `sifa-api/src/routes/schemas.ts`. Any change to server-side\n * write policy must land here first, then be adopted in sifa-api.\n */\n\nexport {\n artifactLinkSchema,\n entityRefSchema,\n externalRecordRefSchema,\n httpUrlOrNull,\n isValidDateOnly,\n isValidPartialDate,\n normalizeUrl,\n optionalUrl,\n presentationLinkSchema,\n skillRefSchema,\n VALID_PLATFORMS,\n writeLocationSchema,\n type ValidPlatform,\n} from './shared.js';\n\nexport { CertificationWriteSchema, type CertificationWriteInput } from './certification.js';\nexport { CourseWriteSchema, type CourseWriteInput } from './course.js';\nexport { EducationWriteSchema, type EducationWriteInput } from './education.js';\nexport { ExternalAccountWriteSchema, type ExternalAccountWriteInput } from './external-account.js';\nexport { HonorWriteSchema, type HonorWriteInput } from './honor.js';\nexport { InvolvementWriteSchema, type InvolvementWriteInput } from './involvement.js';\nexport { InvestmentWriteSchema, type InvestmentWriteInput } from './investment.js';\nexport { LanguageWriteSchema, type LanguageWriteInput } from './language.js';\nexport {\n OrgEmploymentAttestationWriteSchema,\n type OrgEmploymentAttestationWriteInput,\n} from './org-employment-attestation.js';\nexport {\n OrgProfileWriteSchema,\n orgFoundedSchema,\n type OrgProfileWriteInput,\n} from './org-profile.js';\nexport { OrgClaimRequestSchema, type OrgClaimRequestInput } from './org-claim.js';\nexport {\n OrgProfileUpdateRequestSchema,\n type OrgProfileUpdateRequestInput,\n OrgDomainChallengeRequestSchema,\n type OrgDomainChallengeRequestInput,\n OrgDomainVerifyRequestSchema,\n type OrgDomainVerifyRequestInput,\n OrgNotificationEmailRequestSchema,\n type OrgNotificationEmailRequestInput,\n} from './org-settings.js';\nexport { PositionWriteSchema, type PositionWriteInput } from './position.js';\nexport {\n PresentationDeliveryWriteSchema,\n type PresentationDeliveryWriteInput,\n} from './presentation-delivery.js';\nexport { PresentationWriteSchema, type PresentationWriteInput } from './presentation.js';\nexport { ProfileLocationWriteSchema, type ProfileLocationWriteInput } from './profile-location.js';\nexport {
|
|
1
|
+
{"version":3,"sources":["../../../src/schemas/write/index.ts"],"sourcesContent":["/**\n * `@singi-labs/sifa-sdk/schemas/write` — Zod schemas that mirror the input\n * contracts of the sifa-api write endpoints. Client-side callers use these\n * to `.safeParse(...)` inputs before submitting.\n *\n * These are DELIBERATELY separate from the lexicon record schemas in\n * `@singi-labs/sifa-sdk/schemas`:\n * - Lexicon schemas describe the PDS record shape (wire format).\n * - Write schemas describe what sifa-api's HTTP endpoints accept (write policy).\n *\n * The two overlap heavily but diverge in ways that matter for UX (e.g., write\n * schemas allow explicit `null` for optional fields to round-trip API echoes;\n * lexicon schemas use `.optional()` because PDS records never carry `null`).\n * Client-side form validation should use THESE schemas so \"passes locally\"\n * matches \"server accepts\". Wire-shape assertions should use the lexicon\n * schemas.\n *\n * Source of truth: `sifa-api/src/routes/schemas.ts`. Any change to server-side\n * write policy must land here first, then be adopted in sifa-api.\n */\n\nexport {\n artifactLinkSchema,\n entityRefSchema,\n externalRecordRefSchema,\n httpUrlOrNull,\n isValidDateOnly,\n isValidPartialDate,\n normalizeUrl,\n optionalUrl,\n presentationLinkSchema,\n skillRefSchema,\n VALID_PLATFORMS,\n writeLocationSchema,\n type ValidPlatform,\n} from './shared.js';\n\nexport { CertificationWriteSchema, type CertificationWriteInput } from './certification.js';\nexport { CourseWriteSchema, type CourseWriteInput } from './course.js';\nexport { EducationWriteSchema, type EducationWriteInput } from './education.js';\nexport { ExternalAccountWriteSchema, type ExternalAccountWriteInput } from './external-account.js';\nexport { HonorWriteSchema, type HonorWriteInput } from './honor.js';\nexport { InvolvementWriteSchema, type InvolvementWriteInput } from './involvement.js';\nexport { InvestmentWriteSchema, type InvestmentWriteInput } from './investment.js';\nexport { LanguageWriteSchema, type LanguageWriteInput } from './language.js';\nexport {\n OrgEmploymentAttestationWriteSchema,\n type OrgEmploymentAttestationWriteInput,\n} from './org-employment-attestation.js';\nexport {\n OrgProfileWriteSchema,\n orgFoundedSchema,\n type OrgProfileWriteInput,\n} from './org-profile.js';\nexport { OrgClaimRequestSchema, type OrgClaimRequestInput } from './org-claim.js';\nexport {\n OrgProfileUpdateRequestSchema,\n type OrgProfileUpdateRequestInput,\n OrgDomainChallengeRequestSchema,\n type OrgDomainChallengeRequestInput,\n OrgDomainVerifyRequestSchema,\n type OrgDomainVerifyRequestInput,\n OrgNotificationEmailRequestSchema,\n type OrgNotificationEmailRequestInput,\n} from './org-settings.js';\nexport { PositionWriteSchema, type PositionWriteInput } from './position.js';\nexport {\n PresentationDeliveryWriteSchema,\n type PresentationDeliveryWriteInput,\n} from './presentation-delivery.js';\nexport { PresentationWriteSchema, type PresentationWriteInput } from './presentation.js';\nexport { ProfileLocationWriteSchema, type ProfileLocationWriteInput } from './profile-location.js';\nexport {\n ProfileOverrideWriteSchema,\n ProfileSelfWriteSchema,\n type ProfileOverrideWriteInput,\n type ProfileSelfWriteInput,\n} from './profile-self.js';\nexport { ProjectWriteSchema, type ProjectWriteInput } from './project.js';\nexport {\n PublicationWriteSchema,\n relatedIdentifierWriteSchema,\n publicationAuthorWriteSchema,\n type PublicationWriteInput,\n} from './publication.js';\nexport { SkillWriteSchema, type SkillWriteInput } from './skill.js';\nexport { VolunteeringWriteSchema, type VolunteeringWriteInput } from './volunteering.js';\n"],"mappings":";AAqBA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AAEP,SAAS,gCAA8D;AACvE,SAAS,yBAAgD;AACzD,SAAS,4BAAsD;AAC/D,SAAS,kCAAkE;AAC3E,SAAS,wBAA8C;AACvD,SAAS,8BAA0D;AACnE,SAAS,6BAAwD;AACjE,SAAS,2BAAoD;AAC7D;AAAA,EACE;AAAA,OAEK;AACP;AAAA,EACE;AAAA,EACA;AAAA,OAEK;AACP,SAAS,6BAAwD;AACjE;AAAA,EACE;AAAA,EAEA;AAAA,EAEA;AAAA,EAEA;AAAA,OAEK;AACP,SAAS,2BAAoD;AAC7D;AAAA,EACE;AAAA,OAEK;AACP,SAAS,+BAA4D;AACrE,SAAS,kCAAkE;AAC3E;AAAA,EACE;AAAA,EACA;AAAA,OAGK;AACP,SAAS,0BAAkD;AAC3D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP,SAAS,wBAA8C;AACvD,SAAS,+BAA4D;","names":[]}
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
// src/schemas/write/profile-self.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { RPG_AVATAR_SOURCE } from "../../rpg/avatar.js";
|
|
4
|
+
import {
|
|
5
|
+
profileAboutSchema,
|
|
6
|
+
profileDisplayNameSchema,
|
|
7
|
+
profileHeadlineSchema,
|
|
8
|
+
profileNameSchema,
|
|
9
|
+
profilePronounsSchema
|
|
10
|
+
} from "../shared.js";
|
|
4
11
|
import { writeLocationSchema } from "./shared.js";
|
|
5
12
|
var ProfileSelfWriteSchema = z.object({
|
|
6
|
-
headline:
|
|
7
|
-
about:
|
|
8
|
-
givenName:
|
|
9
|
-
familyName:
|
|
10
|
-
namePronunciation:
|
|
13
|
+
headline: profileHeadlineSchema.optional(),
|
|
14
|
+
about: profileAboutSchema.optional(),
|
|
15
|
+
givenName: profileNameSchema.optional(),
|
|
16
|
+
familyName: profileNameSchema.optional(),
|
|
17
|
+
namePronunciation: profileNameSchema.optional(),
|
|
11
18
|
industries: z.array(
|
|
12
19
|
z.object({
|
|
13
20
|
industry: z.string().max(100),
|
|
@@ -29,7 +36,14 @@ var ProfileSelfWriteSchema = z.object({
|
|
|
29
36
|
*/
|
|
30
37
|
avatarSource: z.enum([RPG_AVATAR_SOURCE]).nullable().optional()
|
|
31
38
|
}).passthrough();
|
|
39
|
+
var ProfileOverrideWriteSchema = z.object({
|
|
40
|
+
headline: profileHeadlineSchema.nullish(),
|
|
41
|
+
about: profileAboutSchema.nullish(),
|
|
42
|
+
displayName: profileDisplayNameSchema.nullish(),
|
|
43
|
+
pronouns: profilePronounsSchema.nullish()
|
|
44
|
+
});
|
|
32
45
|
export {
|
|
46
|
+
ProfileOverrideWriteSchema,
|
|
33
47
|
ProfileSelfWriteSchema
|
|
34
48
|
};
|
|
35
49
|
//# sourceMappingURL=profile-self.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/schemas/write/profile-self.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { RPG_AVATAR_SOURCE } from '../../rpg/avatar.js';\nimport { writeLocationSchema } from './shared.js';\n\n/**\n * Schema enforced by `POST /profile/self` on sifa-api.\n *\n * `.passthrough()` so the API accepts fields not yet enumerated here (used for\n * gradual rollout of new profile-self keys without requiring lockstep bumps\n * between web/api). Note this means client validation on this schema will\n * NEVER reject \"unknown\" fields — the divergence is intentional.\n *\n *
|
|
1
|
+
{"version":3,"sources":["../../../src/schemas/write/profile-self.ts"],"sourcesContent":["import { z } from 'zod';\n\nimport { RPG_AVATAR_SOURCE } from '../../rpg/avatar.js';\nimport {\n profileAboutSchema,\n profileDisplayNameSchema,\n profileHeadlineSchema,\n profileNameSchema,\n profilePronounsSchema,\n} from '../shared.js';\nimport { writeLocationSchema } from './shared.js';\n\n/**\n * Schema enforced by `POST /profile/self` on sifa-api.\n *\n * `.passthrough()` so the API accepts fields not yet enumerated here (used for\n * gradual rollout of new profile-self keys without requiring lockstep bumps\n * between web/api). Note this means client validation on this schema will\n * NEVER reject \"unknown\" fields — the divergence is intentional.\n *\n * headline, about, givenName, familyName and namePronunciation match the\n * `id.sifa.profile.self` lexicon's grapheme and UTF-8 byte limits. Other fields\n * (for example `langs` formats) are not checked against the lexicon here.\n */\nexport const ProfileSelfWriteSchema = z\n .object({\n headline: profileHeadlineSchema.optional(),\n about: profileAboutSchema.optional(),\n givenName: profileNameSchema.optional(),\n familyName: profileNameSchema.optional(),\n namePronunciation: profileNameSchema.optional(),\n industries: z\n .array(\n z.object({\n industry: z.string().max(100),\n domain: z.string().max(100).optional(),\n }),\n )\n .max(10)\n .optional(),\n location: writeLocationSchema,\n openTo: z.array(z.string()).max(10).optional(),\n preferredWorkplace: z.array(z.string()).max(5).optional(),\n availableFromUtc: z.number().int().min(0).max(23).optional(),\n availableToUtc: z.number().int().min(0).max(23).optional(),\n langs: z.array(z.string()).max(3).optional(),\n discoverable: z.boolean().optional(),\n /**\n * `actor.rpg.sprite` uses the user's rpg.actor character as their avatar;\n * `null` turns it off (the uploaded avatar, or the Bluesky one, comes\n * back). Omitted leaves the current choice unchanged. Only values Sifa can\n * render are accepted.\n */\n avatarSource: z.enum([RPG_AVATAR_SOURCE]).nullable().optional(),\n })\n .passthrough();\n\nexport type ProfileSelfWriteInput = z.infer<typeof ProfileSelfWriteSchema>;\n\n/**\n * Override fields validated by sifa-api's profile override route. `displayName`\n * and `pronouns` are not part of `ProfileSelfWriteSchema`; every field is\n * nullish (`null` clears an override). Limits mirror `id.sifa.profile.self`.\n */\nexport const ProfileOverrideWriteSchema = z.object({\n headline: profileHeadlineSchema.nullish(),\n about: profileAboutSchema.nullish(),\n displayName: profileDisplayNameSchema.nullish(),\n pronouns: profilePronounsSchema.nullish(),\n});\n\nexport type ProfileOverrideWriteInput = z.infer<typeof ProfileOverrideWriteSchema>;\n"],"mappings":";AAAA,SAAS,SAAS;AAElB,SAAS,yBAAyB;AAClC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,2BAA2B;AAc7B,IAAM,yBAAyB,EACnC,OAAO;AAAA,EACN,UAAU,sBAAsB,SAAS;AAAA,EACzC,OAAO,mBAAmB,SAAS;AAAA,EACnC,WAAW,kBAAkB,SAAS;AAAA,EACtC,YAAY,kBAAkB,SAAS;AAAA,EACvC,mBAAmB,kBAAkB,SAAS;AAAA,EAC9C,YAAY,EACT;AAAA,IACC,EAAE,OAAO;AAAA,MACP,UAAU,EAAE,OAAO,EAAE,IAAI,GAAG;AAAA,MAC5B,QAAQ,EAAE,OAAO,EAAE,IAAI,GAAG,EAAE,SAAS;AAAA,IACvC,CAAC;AAAA,EACH,EACC,IAAI,EAAE,EACN,SAAS;AAAA,EACZ,UAAU;AAAA,EACV,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAC7C,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EACxD,kBAAkB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EAC3D,gBAAgB,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE,SAAS;AAAA,EACzD,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,EAAE,SAAS;AAAA,EAC3C,cAAc,EAAE,QAAQ,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOnC,cAAc,EAAE,KAAK,CAAC,iBAAiB,CAAC,EAAE,SAAS,EAAE,SAAS;AAChE,CAAC,EACA,YAAY;AASR,IAAM,6BAA6B,EAAE,OAAO;AAAA,EACjD,UAAU,sBAAsB,QAAQ;AAAA,EACxC,OAAO,mBAAmB,QAAQ;AAAA,EAClC,aAAa,yBAAyB,QAAQ;AAAA,EAC9C,UAAU,sBAAsB,QAAQ;AAC1C,CAAC;","names":[]}
|
package/dist/testing/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as ExportContact } from '../export-contact-D_krcTBH.cjs';
|
|
2
|
-
import { c as Profile } from '../index-
|
|
2
|
+
import { c as Profile } from '../index-Ck5zdubP.cjs';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../verification-providers-
|
|
4
|
+
import '../verification-providers-Dq6ni6e-.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shared test data for the apps built on the SDK.
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { E as ExportContact } from '../export-contact-D_krcTBH.js';
|
|
2
|
-
import { c as Profile } from '../index-
|
|
2
|
+
import { c as Profile } from '../index-Bcy443Qi.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
import '../verification-providers-
|
|
4
|
+
import '../verification-providers-Dq6ni6e-.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Shared test data for the apps built on the SDK.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-
|
|
2
|
-
import { a as AccountVerification } from './verification-providers-
|
|
1
|
+
import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-Ck5zdubP.cjs';
|
|
2
|
+
import { a as AccountVerification } from './verification-providers-Dq6ni6e-.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -456,6 +456,18 @@ interface WriteFailure {
|
|
|
456
456
|
* Present only when the body carries a non-empty string `code`.
|
|
457
457
|
*/
|
|
458
458
|
code?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Field-level validation problems from a 400 `ValidationError` body (the
|
|
461
|
+
* Zod `error.issues` of sifa-api). Present only when the body carries an
|
|
462
|
+
* array; malformed entries are dropped. `path` locates the field.
|
|
463
|
+
*/
|
|
464
|
+
issues?: WriteIssue[];
|
|
465
|
+
}
|
|
466
|
+
/** One validation problem reported by sifa-api, shaped like a Zod issue. */
|
|
467
|
+
interface WriteIssue {
|
|
468
|
+
path: (string | number)[];
|
|
469
|
+
message: string;
|
|
470
|
+
code?: string;
|
|
459
471
|
}
|
|
460
472
|
/**
|
|
461
473
|
* Successful branch of a {@link WriteResult}: the response body fields
|
|
@@ -940,4 +952,4 @@ interface RepoDeleteResult {
|
|
|
940
952
|
};
|
|
941
953
|
}
|
|
942
954
|
|
|
943
|
-
export { siteActivityPresetUpdateSchema as $, ADULT_CONTENT_LABELS as A, SIFA_REPO_GROUPS as B, type CertificationView as C, type DurationView as D, EMPTY_SITE_ACTIVITY_PRESET as E, SITE_PRESET_MAX_TAGS as F, SITE_PRESET_MAX_TAG_LENGTH as G, type HonorView as H, type IndustryDomain as I, SITE_PRESET_TAG_CATEGORY as J, type SiteActivityPreset as K, type LanguageView as L, type SkillView as M, describeSifaRecord as N, hasAdultContent as O, type PositionView as P, isSiteActivityPresetActive as Q, type RepoCollectionGroup as R, type SearchFilters as S, matchesSiteActivityPreset as T, matchesSitePresetTags as U, type VolunteeringView as V, normalizeSitePresetTag as W, parseSitePresetTags as X, recordTags as Y, repoGroupForCollection as Z, siteActivityPresetSchema as _, type ActiveAppView as a, type ApiFetchOptions as a0, type SifaApiConfig as a1, type WriteResult as a2, type CreateResult as a3, ApiError as a4, type FilterOptions as a5, type ProfileSearchResult as a6, type ProfileSearchSuggestion as a7, type SearchResponse as a8, type SkillSearchResult as a9,
|
|
955
|
+
export { siteActivityPresetUpdateSchema as $, ADULT_CONTENT_LABELS as A, SIFA_REPO_GROUPS as B, type CertificationView as C, type DurationView as D, EMPTY_SITE_ACTIVITY_PRESET as E, SITE_PRESET_MAX_TAGS as F, SITE_PRESET_MAX_TAG_LENGTH as G, type HonorView as H, type IndustryDomain as I, SITE_PRESET_TAG_CATEGORY as J, type SiteActivityPreset as K, type LanguageView as L, type SkillView as M, describeSifaRecord as N, hasAdultContent as O, type PositionView as P, isSiteActivityPresetActive as Q, type RepoCollectionGroup as R, type SearchFilters as S, matchesSiteActivityPreset as T, matchesSitePresetTags as U, type VolunteeringView as V, normalizeSitePresetTag as W, parseSitePresetTags as X, recordTags as Y, repoGroupForCollection as Z, siteActivityPresetSchema as _, type ActiveAppView as a, type ApiFetchOptions as a0, type SifaApiConfig as a1, type WriteResult as a2, type CreateResult as a3, ApiError as a4, type FilterOptions as a5, type ProfileSearchResult as a6, type ProfileSearchSuggestion as a7, type SearchResponse as a8, type SkillSearchResult as a9, type WriteFailure as aa, type WriteIssue as ab, apiFetch as ac, apiFetchOrNull as ad, apiWrite as ae, apiWriteCreate as af, fetchSearchFilters as ag, fetchSearchProfiles as ah, fetchSkillSuggestions as ai, searchSkills as aj, type CompanySearchFilters as ak, type CompanySearchResponse as al, type CompanySearchResult as am, fetchSearchCompanies as an, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type EducationView as h, type ExternalAccountView as i, type InvolvementLinkView as j, type InvolvementView as k, type PresentationDeliveryView as l, type PresentationView as m, type ProfileLocationView as n, type ProfileView as o, type ProjectMemberView as p, type ProjectView as q, type PublicationView as r, type RepoDeleteOutcome as s, type RepoDeleteRecordResult as t, type RepoDeleteResult as u, type RepoGroupDefinition as v, type RepoGroupId as w, type RepoInventory as x, type RepoRecordLabel as y, type RepoRecordSummary as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-
|
|
2
|
-
import { a as AccountVerification } from './verification-providers-
|
|
1
|
+
import { D as PresentationLinkView, b as PdsProviderInfo, Z as SkillSuggestion } from './index-Bcy443Qi.js';
|
|
2
|
+
import { a as AccountVerification } from './verification-providers-Dq6ni6e-.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -456,6 +456,18 @@ interface WriteFailure {
|
|
|
456
456
|
* Present only when the body carries a non-empty string `code`.
|
|
457
457
|
*/
|
|
458
458
|
code?: string;
|
|
459
|
+
/**
|
|
460
|
+
* Field-level validation problems from a 400 `ValidationError` body (the
|
|
461
|
+
* Zod `error.issues` of sifa-api). Present only when the body carries an
|
|
462
|
+
* array; malformed entries are dropped. `path` locates the field.
|
|
463
|
+
*/
|
|
464
|
+
issues?: WriteIssue[];
|
|
465
|
+
}
|
|
466
|
+
/** One validation problem reported by sifa-api, shaped like a Zod issue. */
|
|
467
|
+
interface WriteIssue {
|
|
468
|
+
path: (string | number)[];
|
|
469
|
+
message: string;
|
|
470
|
+
code?: string;
|
|
459
471
|
}
|
|
460
472
|
/**
|
|
461
473
|
* Successful branch of a {@link WriteResult}: the response body fields
|
|
@@ -940,4 +952,4 @@ interface RepoDeleteResult {
|
|
|
940
952
|
};
|
|
941
953
|
}
|
|
942
954
|
|
|
943
|
-
export { siteActivityPresetUpdateSchema as $, ADULT_CONTENT_LABELS as A, SIFA_REPO_GROUPS as B, type CertificationView as C, type DurationView as D, EMPTY_SITE_ACTIVITY_PRESET as E, SITE_PRESET_MAX_TAGS as F, SITE_PRESET_MAX_TAG_LENGTH as G, type HonorView as H, type IndustryDomain as I, SITE_PRESET_TAG_CATEGORY as J, type SiteActivityPreset as K, type LanguageView as L, type SkillView as M, describeSifaRecord as N, hasAdultContent as O, type PositionView as P, isSiteActivityPresetActive as Q, type RepoCollectionGroup as R, type SearchFilters as S, matchesSiteActivityPreset as T, matchesSitePresetTags as U, type VolunteeringView as V, normalizeSitePresetTag as W, parseSitePresetTags as X, recordTags as Y, repoGroupForCollection as Z, siteActivityPresetSchema as _, type ActiveAppView as a, type ApiFetchOptions as a0, type SifaApiConfig as a1, type WriteResult as a2, type CreateResult as a3, ApiError as a4, type FilterOptions as a5, type ProfileSearchResult as a6, type ProfileSearchSuggestion as a7, type SearchResponse as a8, type SkillSearchResult as a9,
|
|
955
|
+
export { siteActivityPresetUpdateSchema as $, ADULT_CONTENT_LABELS as A, SIFA_REPO_GROUPS as B, type CertificationView as C, type DurationView as D, EMPTY_SITE_ACTIVITY_PRESET as E, SITE_PRESET_MAX_TAGS as F, SITE_PRESET_MAX_TAG_LENGTH as G, type HonorView as H, type IndustryDomain as I, SITE_PRESET_TAG_CATEGORY as J, type SiteActivityPreset as K, type LanguageView as L, type SkillView as M, describeSifaRecord as N, hasAdultContent as O, type PositionView as P, isSiteActivityPresetActive as Q, type RepoCollectionGroup as R, type SearchFilters as S, matchesSiteActivityPreset as T, matchesSitePresetTags as U, type VolunteeringView as V, normalizeSitePresetTag as W, parseSitePresetTags as X, recordTags as Y, repoGroupForCollection as Z, siteActivityPresetSchema as _, type ActiveAppView as a, type ApiFetchOptions as a0, type SifaApiConfig as a1, type WriteResult as a2, type CreateResult as a3, ApiError as a4, type FilterOptions as a5, type ProfileSearchResult as a6, type ProfileSearchSuggestion as a7, type SearchResponse as a8, type SkillSearchResult as a9, type WriteFailure as aa, type WriteIssue as ab, apiFetch as ac, apiFetchOrNull as ad, apiWrite as ae, apiWriteCreate as af, fetchSearchFilters as ag, fetchSearchProfiles as ah, fetchSkillSuggestions as ai, searchSkills as aj, type CompanySearchFilters as ak, type CompanySearchResponse as al, type CompanySearchResult as am, fetchSearchCompanies as an, type ActivityLabel as b, type AdultContentLabel as c, type AtfundLinkView as d, type CoSpeakerView as e, type ContributorView as f, type CourseView as g, type EducationView as h, type ExternalAccountView as i, type InvolvementLinkView as j, type InvolvementView as k, type PresentationDeliveryView as l, type PresentationView as m, type ProfileLocationView as n, type ProfileView as o, type ProjectMemberView as p, type ProjectView as q, type PublicationView as r, type RepoDeleteOutcome as s, type RepoDeleteRecordResult as t, type RepoDeleteResult as u, type RepoGroupDefinition as v, type RepoGroupId as w, type RepoInventory as x, type RepoRecordLabel as y, type RepoRecordSummary as z };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult,
|
|
3
|
+
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ak as CompanySearchFilters, al as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-DJrmm7p0.js';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
|
-
import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-
|
|
7
|
-
import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-
|
|
6
|
+
import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-Bcy443Qi.js';
|
|
7
|
+
import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-C3_y8_8T.js';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-
|
|
10
|
-
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './
|
|
9
|
+
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-CCL1tT1x.js';
|
|
10
|
+
import { O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, d as OrgDomainVerifyRequestInput, f as OrgNotificationEmailRequestInput } from './profile-self-D59D_rhI.js';
|
|
11
11
|
|
|
12
12
|
interface SifaProviderProps {
|
|
13
13
|
config: SifaApiConfig;
|
|
@@ -274,7 +274,12 @@ declare function useGetProfileView(actor: string | undefined | null, options?: O
|
|
|
274
274
|
*/
|
|
275
275
|
declare function useUpdateProfileSelf(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileSelfInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateProfileSelfInput, unknown>;
|
|
276
276
|
/** React hook for updating the authenticated user's profile override fields. */
|
|
277
|
-
declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error,
|
|
277
|
+
declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, {
|
|
278
|
+
headline?: string | null | undefined;
|
|
279
|
+
about?: string | null | undefined;
|
|
280
|
+
displayName?: string | null | undefined;
|
|
281
|
+
pronouns?: string | null | undefined;
|
|
282
|
+
}, unknown>;
|
|
278
283
|
/** React hook for re-pulling the authenticated user's PDS-side profile. */
|
|
279
284
|
declare function useRefreshPds(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<RefreshPdsResult, Error, void>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<RefreshPdsResult, Error, void, unknown>;
|
|
280
285
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
-
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult,
|
|
3
|
+
import { a1 as SifaApiConfig, a0 as ApiFetchOptions, a2 as WriteResult, o as ProfileView, a3 as CreateResult, a5 as FilterOptions, S as SearchFilters, a8 as SearchResponse, a9 as SkillSearchResult, ak as CompanySearchFilters, al as CompanySearchResponse, u as RepoDeleteResult, x as RepoInventory } from './types-4MZHuQif.cjs';
|
|
4
4
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
5
5
|
import { UseQueryOptions, UseMutationOptions, UseInfiniteQueryOptions, InfiniteData } from '@tanstack/react-query';
|
|
6
|
-
import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-
|
|
7
|
-
import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-
|
|
6
|
+
import { c as Profile, d as ProfilePosition, Y as SkillRef, p as ExternalAccount, Z as SkillSuggestion, s as OrgFloorVerdict } from './index-Ck5zdubP.cjs';
|
|
7
|
+
import { s as sifaQueryKeys, aJ as RefreshPdsResult, b9 as UpdateProfileOverrideInput, ba as UpdateProfileSelfInput, bb as UploadAvatarResult, bc as UploadPronunciationAudioResult, at as PrimarySection, b2 as SubCategoryBulkResult, ay as ProfileLocationInput, q as ExternalAccountInput, n as CreateExternalAccountResult, bg as VerifyExternalAccountResult, E as EndorsementInput, l as ConfirmationInput, m as ConfirmationSubjectInput, a3 as GivenConfirmation, as as PendingConfirmationsPage, ae as InboxCounts, p as DismissUnlinkedPositionInput, b7 as UnlinkedPositionsResult, o as DismissCompletenessSignalInput, au as ProfileCompleteness, aU as RpgClaimableResponse, aY as RpgStatusResponse, aI as RefreshOrcidPublicationsResult, B as BulkHideProfileItemInput, ad as HideProfileItemInput, a8 as HiddenActivityItem, ac as HideActivityItemInput, b5 as UnhideActivityItemInput, f as ActivityPreferences, b0 as SiteActivityPresetResponse, b8 as UpdateActivityPreferencesInput, b1 as StatsResponse, i as AppRegistryEntry, a9 as HiddenApp, b as AccountSummary, r as FeaturedProfile, a$ as SimilarProfile, Q as FetchSuggestionsOptions, b4 as SuggestionsResponse, W as FollowUserResult, y as FetchFollowListOptions, T as FollowListPage, a0 as FollowingResponse, G as FetchFollowingFeedOptions, _ as FollowingFeedResponse, $ as FollowingFeedVersion, z as FetchFollowProfilePageOptions, V as FollowProfilePageResponse, F as FeatureAllowlistResponse, h as AdminReviewQueues, u as FetchActivityFeedOptions, c as ActivityFeedResponse, g as ActivityTeaserResponse, a7 as HeatmapResponse, ag as MyGithubPullRequestsResponse, A as AccountCheckResult, aH as ReactionStatus, aG as ReactionResult, aF as ReactionError, j as CastRoadmapVoteResult, aQ as RoadmapItemRef, D as DeleteAccountResult, aL as ResetProfileResult, bh as WipePreview, aK as RepoDeleteInput, ai as OrgClaimResult, ao as OrgProfileUpdateResult, aj as OrgDomainChallengeResult, ak as OrgDomainVerifyResult, al as OrgNotificationEmailAddResult, am as OrgNotificationEmailRemoveResult, bd as UserSettings } from './user-settings-CuqhXuTE.cjs';
|
|
8
8
|
import { z } from 'zod';
|
|
9
|
-
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-
|
|
10
|
-
import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-
|
|
9
|
+
import { i as EntitySearchResponse, E as EntitySearchResult, c as EntityMintDomainResponse, g as EntityResolveDomainResponse, n as EntitySelectResponse, l as EntitySelectRequest, r as FeatureFlag } from './follow-profile-RijPgyp-.cjs';
|
|
10
|
+
import { O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, b as OrgDomainChallengeRequestInput, c as OrgDomainVerifyRequestInput, d as OrgNotificationEmailRequestInput } from './org-settings-BliQdqbB.cjs';
|
|
11
11
|
|
|
12
12
|
interface SifaProviderProps {
|
|
13
13
|
config: SifaApiConfig;
|
|
@@ -274,7 +274,12 @@ declare function useGetProfileView(actor: string | undefined | null, options?: O
|
|
|
274
274
|
*/
|
|
275
275
|
declare function useUpdateProfileSelf(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileSelfInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, UpdateProfileSelfInput, unknown>;
|
|
276
276
|
/** React hook for updating the authenticated user's profile override fields. */
|
|
277
|
-
declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error,
|
|
277
|
+
declare function useUpdateProfileOverride(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<WriteResult, Error, UpdateProfileOverrideInput>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<WriteResult, Error, {
|
|
278
|
+
headline?: string | null | undefined;
|
|
279
|
+
about?: string | null | undefined;
|
|
280
|
+
displayName?: string | null | undefined;
|
|
281
|
+
pronouns?: string | null | undefined;
|
|
282
|
+
}, unknown>;
|
|
278
283
|
/** React hook for re-pulling the authenticated user's PDS-side profile. */
|
|
279
284
|
declare function useRefreshPds(ownerHandleOrDid: string, options?: Omit<UseMutationOptions<RefreshPdsResult, Error, void>, 'mutationFn'>): _tanstack_react_query.UseMutationResult<RefreshPdsResult, Error, void, unknown>;
|
|
280
285
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-DJrmm7p0.js';
|
|
2
|
+
import { P as ProfileOverrideWriteInput, f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './profile-self-D59D_rhI.js';
|
|
3
|
+
import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-Bcy443Qi.js';
|
|
4
|
+
import { a as AccountVerification } from './verification-providers-Dq6ni6e-.js';
|
|
5
|
+
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-CCL1tT1x.js';
|
|
5
6
|
import { z } from 'zod';
|
|
6
|
-
import { f as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, h as OrgProfileUpdateRequestInput, d as OrgDomainVerifyRequestInput } from './org-settings-BShvhyFp.js';
|
|
7
7
|
|
|
8
8
|
/** Industry/domain entry on the profile self record. */
|
|
9
9
|
interface ProfileIndustryInput {
|
|
@@ -50,12 +50,7 @@ interface UpdateProfileSelfInput {
|
|
|
50
50
|
/** Update the authenticated user's `id.sifa.profile.self` record. */
|
|
51
51
|
declare function updateProfileSelf(config: SifaApiConfig, data: UpdateProfileSelfInput, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
52
52
|
/** Body accepted by {@link updateProfileOverride}. */
|
|
53
|
-
|
|
54
|
-
headline?: string | null;
|
|
55
|
-
about?: string | null;
|
|
56
|
-
displayName?: string | null;
|
|
57
|
-
pronouns?: string | null;
|
|
58
|
-
}
|
|
53
|
+
type UpdateProfileOverrideInput = ProfileOverrideWriteInput;
|
|
59
54
|
/**
|
|
60
55
|
* Override aggregated profile fields with sifa-specific values. `null`
|
|
61
56
|
* clears the override and falls back to the upstream PDS value.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { a2 as WriteResult, a1 as SifaApiConfig, a0 as ApiFetchOptions, a3 as CreateResult, K as SiteActivityPreset, b as ActivityLabel, u as RepoDeleteResult, x as RepoInventory } from './types-4MZHuQif.cjs';
|
|
2
|
+
import { P as ProfileOverrideWriteInput, d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-BliQdqbB.cjs';
|
|
3
|
+
import { p as ExternalAccount, B as PositionViewerConfirmation } from './index-Ck5zdubP.cjs';
|
|
4
|
+
import { a as AccountVerification } from './verification-providers-Dq6ni6e-.cjs';
|
|
5
|
+
import { s as FollowProfileItem, p as FeatureAllowlistEntry, r as FeatureFlag } from './follow-profile-RijPgyp-.cjs';
|
|
5
6
|
import { z } from 'zod';
|
|
6
|
-
import { d as OrgNotificationEmailRequestInput, b as OrgDomainChallengeRequestInput, O as OrgClaimRequestInput, a as OrgProfileUpdateRequestInput, c as OrgDomainVerifyRequestInput } from './org-settings-C73Sin5E.cjs';
|
|
7
7
|
|
|
8
8
|
/** Industry/domain entry on the profile self record. */
|
|
9
9
|
interface ProfileIndustryInput {
|
|
@@ -50,12 +50,7 @@ interface UpdateProfileSelfInput {
|
|
|
50
50
|
/** Update the authenticated user's `id.sifa.profile.self` record. */
|
|
51
51
|
declare function updateProfileSelf(config: SifaApiConfig, data: UpdateProfileSelfInput, options?: ApiFetchOptions): Promise<WriteResult>;
|
|
52
52
|
/** Body accepted by {@link updateProfileOverride}. */
|
|
53
|
-
|
|
54
|
-
headline?: string | null;
|
|
55
|
-
about?: string | null;
|
|
56
|
-
displayName?: string | null;
|
|
57
|
-
pronouns?: string | null;
|
|
58
|
-
}
|
|
53
|
+
type UpdateProfileOverrideInput = ProfileOverrideWriteInput;
|
|
59
54
|
/**
|
|
60
55
|
* Override aggregated profile fields with sifa-specific values. `null`
|
|
61
56
|
* clears the override and falls back to the upstream PDS value.
|
package/dist/{verification-providers-DeyGqaoC.d.cts → verification-providers-Dq6ni6e-.d.cts}
RENAMED
|
@@ -8,6 +8,63 @@ import { z } from 'zod';
|
|
|
8
8
|
* count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
|
|
9
9
|
*/
|
|
10
10
|
declare function maxGraphemes(max: number): (value: string) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Byte-length refinement matching the AT Protocol lexicon string `maxLength`
|
|
13
|
+
* constraint, which counts UTF-8 bytes (not UTF-16 code units). Uses
|
|
14
|
+
* `TextEncoder` rather than `Buffer` so it also runs in browsers.
|
|
15
|
+
*/
|
|
16
|
+
declare function maxBytes(max: number): (value: string) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* A string capped by a lexicon `maxGraphemes` (user-perceived characters) and
|
|
19
|
+
* `maxLength` (UTF-8 bytes) pair. The grapheme check aborts first, so an
|
|
20
|
+
* over-long value reports only the character error.
|
|
21
|
+
*/
|
|
22
|
+
declare function lexiconString(graphemes: number, bytes: number): z.ZodString;
|
|
23
|
+
/**
|
|
24
|
+
* Lexicon limits for the `id.sifa.profile.self` text fields: `graphemes` is the
|
|
25
|
+
* `maxGraphemes` cap (user-perceived characters), `bytes` the `maxLength` cap
|
|
26
|
+
* (UTF-8 bytes). The field schemas below are built from these numbers, so
|
|
27
|
+
* forms can show counters and caps without duplicating them.
|
|
28
|
+
*/
|
|
29
|
+
declare const PROFILE_TEXT_LIMITS: {
|
|
30
|
+
readonly displayName: {
|
|
31
|
+
readonly graphemes: 64;
|
|
32
|
+
readonly bytes: 640;
|
|
33
|
+
};
|
|
34
|
+
readonly givenName: {
|
|
35
|
+
readonly graphemes: 64;
|
|
36
|
+
readonly bytes: 640;
|
|
37
|
+
};
|
|
38
|
+
readonly familyName: {
|
|
39
|
+
readonly graphemes: 64;
|
|
40
|
+
readonly bytes: 640;
|
|
41
|
+
};
|
|
42
|
+
readonly namePronunciation: {
|
|
43
|
+
readonly graphemes: 64;
|
|
44
|
+
readonly bytes: 640;
|
|
45
|
+
};
|
|
46
|
+
readonly pronouns: {
|
|
47
|
+
readonly graphemes: 20;
|
|
48
|
+
readonly bytes: 200;
|
|
49
|
+
};
|
|
50
|
+
readonly headline: {
|
|
51
|
+
readonly graphemes: 120;
|
|
52
|
+
readonly bytes: 1200;
|
|
53
|
+
};
|
|
54
|
+
readonly about: {
|
|
55
|
+
readonly graphemes: 5000;
|
|
56
|
+
readonly bytes: 50000;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Field schemas for `id.sifa.profile.self`, shared by the record schema and the
|
|
61
|
+
* write schemas so the lexicon limits live in one place.
|
|
62
|
+
*/
|
|
63
|
+
declare const profileDisplayNameSchema: z.ZodString;
|
|
64
|
+
declare const profileNameSchema: z.ZodString;
|
|
65
|
+
declare const profilePronounsSchema: z.ZodString;
|
|
66
|
+
declare const profileHeadlineSchema: z.ZodString;
|
|
67
|
+
declare const profileAboutSchema: z.ZodString;
|
|
11
68
|
/** Decentralized identifier, AT Protocol `format: did`. */
|
|
12
69
|
declare const didSchema: z.ZodString;
|
|
13
70
|
/** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
|
|
@@ -209,4 +266,4 @@ declare function resolveVerificationBadges(input: {
|
|
|
209
266
|
blueskyVerifiedAt?: string | null;
|
|
210
267
|
}): AccountVerification[];
|
|
211
268
|
|
|
212
|
-
export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o,
|
|
269
|
+
export { type AgentRef as A, resolveVerifierProvider as B, selfLabelsSchema as C, skillRefSchema as D, strongRefSchema as E, uriSchema as F, verificationLabel as G, PROFILE_TEXT_LIMITS as P, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o, lexiconString as p, maxBytes as q, maxGraphemes as r, partialDateSchema as s, primaryVerification as t, profileAboutSchema as u, profileDisplayNameSchema as v, profileHeadlineSchema as w, profileNameSchema as x, profilePronounsSchema as y, resolveVerificationBadges as z };
|
|
@@ -8,6 +8,63 @@ import { z } from 'zod';
|
|
|
8
8
|
* count as one unit each. We use `Intl.Segmenter` to enforce this correctly.
|
|
9
9
|
*/
|
|
10
10
|
declare function maxGraphemes(max: number): (value: string) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Byte-length refinement matching the AT Protocol lexicon string `maxLength`
|
|
13
|
+
* constraint, which counts UTF-8 bytes (not UTF-16 code units). Uses
|
|
14
|
+
* `TextEncoder` rather than `Buffer` so it also runs in browsers.
|
|
15
|
+
*/
|
|
16
|
+
declare function maxBytes(max: number): (value: string) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* A string capped by a lexicon `maxGraphemes` (user-perceived characters) and
|
|
19
|
+
* `maxLength` (UTF-8 bytes) pair. The grapheme check aborts first, so an
|
|
20
|
+
* over-long value reports only the character error.
|
|
21
|
+
*/
|
|
22
|
+
declare function lexiconString(graphemes: number, bytes: number): z.ZodString;
|
|
23
|
+
/**
|
|
24
|
+
* Lexicon limits for the `id.sifa.profile.self` text fields: `graphemes` is the
|
|
25
|
+
* `maxGraphemes` cap (user-perceived characters), `bytes` the `maxLength` cap
|
|
26
|
+
* (UTF-8 bytes). The field schemas below are built from these numbers, so
|
|
27
|
+
* forms can show counters and caps without duplicating them.
|
|
28
|
+
*/
|
|
29
|
+
declare const PROFILE_TEXT_LIMITS: {
|
|
30
|
+
readonly displayName: {
|
|
31
|
+
readonly graphemes: 64;
|
|
32
|
+
readonly bytes: 640;
|
|
33
|
+
};
|
|
34
|
+
readonly givenName: {
|
|
35
|
+
readonly graphemes: 64;
|
|
36
|
+
readonly bytes: 640;
|
|
37
|
+
};
|
|
38
|
+
readonly familyName: {
|
|
39
|
+
readonly graphemes: 64;
|
|
40
|
+
readonly bytes: 640;
|
|
41
|
+
};
|
|
42
|
+
readonly namePronunciation: {
|
|
43
|
+
readonly graphemes: 64;
|
|
44
|
+
readonly bytes: 640;
|
|
45
|
+
};
|
|
46
|
+
readonly pronouns: {
|
|
47
|
+
readonly graphemes: 20;
|
|
48
|
+
readonly bytes: 200;
|
|
49
|
+
};
|
|
50
|
+
readonly headline: {
|
|
51
|
+
readonly graphemes: 120;
|
|
52
|
+
readonly bytes: 1200;
|
|
53
|
+
};
|
|
54
|
+
readonly about: {
|
|
55
|
+
readonly graphemes: 5000;
|
|
56
|
+
readonly bytes: 50000;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Field schemas for `id.sifa.profile.self`, shared by the record schema and the
|
|
61
|
+
* write schemas so the lexicon limits live in one place.
|
|
62
|
+
*/
|
|
63
|
+
declare const profileDisplayNameSchema: z.ZodString;
|
|
64
|
+
declare const profileNameSchema: z.ZodString;
|
|
65
|
+
declare const profilePronounsSchema: z.ZodString;
|
|
66
|
+
declare const profileHeadlineSchema: z.ZodString;
|
|
67
|
+
declare const profileAboutSchema: z.ZodString;
|
|
11
68
|
/** Decentralized identifier, AT Protocol `format: did`. */
|
|
12
69
|
declare const didSchema: z.ZodString;
|
|
13
70
|
/** RFC 3339 datetime with timezone offset, AT Protocol `format: datetime`. */
|
|
@@ -209,4 +266,4 @@ declare function resolveVerificationBadges(input: {
|
|
|
209
266
|
blueskyVerifiedAt?: string | null;
|
|
210
267
|
}): AccountVerification[];
|
|
211
268
|
|
|
212
|
-
export { type AgentRef as A, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o,
|
|
269
|
+
export { type AgentRef as A, resolveVerifierProvider as B, selfLabelsSchema as C, skillRefSchema as D, strongRefSchema as E, uriSchema as F, verificationLabel as G, PROFILE_TEXT_LIMITS as P, VERIFICATION_PROVIDERS as V, type AccountVerification as a, type VerificationProvider as b, type VerificationProviderId as c, type VerificationSource as d, type VerifierListItem as e, agentRefSchema as f, atUriSchema as g, buildVerifierListMembers as h, cidSchema as i, datetimeSchema as j, didSchema as k, externalRecordRefSchema as l, getVerificationProvider as m, isKnownVerificationProvider as n, languageTagSchema as o, lexiconString as p, maxBytes as q, maxGraphemes as r, partialDateSchema as s, primaryVerification as t, profileAboutSchema as u, profileDisplayNameSchema as v, profileHeadlineSchema as w, profileNameSchema as x, profilePronounsSchema as y, resolveVerificationBadges as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@singi-labs/sifa-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.1",
|
|
4
4
|
"description": "Sifa SDK — public client library for the Sifa AppView on AT Protocol. Shared by sifa-web and sifa-app.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && tsup",
|
|
226
226
|
"dev": "tsup --watch",
|
|
227
227
|
"lint": "eslint",
|
|
228
|
+
"knip": "knip",
|
|
228
229
|
"lint:fix": "eslint --fix",
|
|
229
230
|
"typecheck": "tsc --noEmit",
|
|
230
231
|
"test": "vitest run",
|
|
@@ -274,9 +275,11 @@
|
|
|
274
275
|
"@testing-library/react": "16.3.2",
|
|
275
276
|
"@types/react": "19.2.17",
|
|
276
277
|
"@vitest/coverage-v8": "3.2.1",
|
|
278
|
+
"esbuild": "0.27.7",
|
|
277
279
|
"eslint": "10.8.1",
|
|
278
280
|
"husky": "9.1.7",
|
|
279
281
|
"jsdom": "30.0.1",
|
|
282
|
+
"knip": "6.42.0",
|
|
280
283
|
"prettier": "3.9.6",
|
|
281
284
|
"react": "19.2.7",
|
|
282
285
|
"react-dom": "19.2.7",
|