@singi-labs/sifa-sdk 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -0
- package/dist/index.d.ts +39 -0
- package/dist/index.js +16 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4070,6 +4070,18 @@ var streamCardSubjectSchema = zod.z.discriminatedUnion("kind", [
|
|
|
4070
4070
|
title: zod.z.string().optional()
|
|
4071
4071
|
})
|
|
4072
4072
|
]);
|
|
4073
|
+
var hypercertDetailsSchema = zod.z.object({
|
|
4074
|
+
contributors: zod.z.array(
|
|
4075
|
+
zod.z.object({
|
|
4076
|
+
displayName: zod.z.string(),
|
|
4077
|
+
imageUrl: zod.z.string().optional(),
|
|
4078
|
+
identifier: zod.z.string().optional(),
|
|
4079
|
+
weight: zod.z.number().optional()
|
|
4080
|
+
})
|
|
4081
|
+
),
|
|
4082
|
+
contributorCount: zod.z.number(),
|
|
4083
|
+
attachments: zod.z.array(zod.z.object({ title: zod.z.string().optional(), url: zod.z.string() }))
|
|
4084
|
+
});
|
|
4073
4085
|
var streamCardVMSchema = zod.z.lazy(
|
|
4074
4086
|
() => zod.z.object({
|
|
4075
4087
|
uri: zod.z.string(),
|
|
@@ -4085,7 +4097,8 @@ var streamCardVMSchema = zod.z.lazy(
|
|
|
4085
4097
|
media: zod.z.array(streamMediaSchema).optional(),
|
|
4086
4098
|
externalLink: streamExternalLinkSchema.optional(),
|
|
4087
4099
|
theme: streamThemeSchema.optional(),
|
|
4088
|
-
subject: zod.z.lazy(() => streamCardSubjectSchema).optional()
|
|
4100
|
+
subject: zod.z.lazy(() => streamCardSubjectSchema).optional(),
|
|
4101
|
+
hypercertDetails: hypercertDetailsSchema.optional()
|
|
4089
4102
|
})
|
|
4090
4103
|
);
|
|
4091
4104
|
function maxGraphemes(max) {
|
|
@@ -4808,6 +4821,7 @@ function toStreamCardVM(item, options = {}) {
|
|
|
4808
4821
|
const sourceUrl = resolveSourceUrl(item, record);
|
|
4809
4822
|
if (sourceUrl) vm.sourceUrl = sourceUrl;
|
|
4810
4823
|
}
|
|
4824
|
+
if (item.hypercertDetails) vm.hypercertDetails = item.hypercertDetails;
|
|
4811
4825
|
if (item.subject) {
|
|
4812
4826
|
vm.subject = { kind: "post", post: toStreamCardVM(item.subject, options) };
|
|
4813
4827
|
}
|
|
@@ -6024,7 +6038,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6024
6038
|
}
|
|
6025
6039
|
|
|
6026
6040
|
// src/index.ts
|
|
6027
|
-
var SIFA_SDK_VERSION = "0.
|
|
6041
|
+
var SIFA_SDK_VERSION = "0.17.0";
|
|
6028
6042
|
|
|
6029
6043
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6030
6044
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|