@vibes.diy/api-types 14.3.325 → 14.3.327
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/LICENSE.md +54 -201
- package/access-fn-limit-msg.js +0 -1
- package/access-function.js +0 -1
- package/access-summary.js +0 -1
- package/agent-chat.js +0 -1
- package/agent-connector-note.js +0 -1
- package/agent-discussion-entry.js +0 -1
- package/agent-evidence-line.js +0 -1
- package/agent-file-edit.js +0 -1
- package/agent-fold.js +0 -1
- package/agent-personalities.js +0 -1
- package/agent-picture.js +0 -1
- package/agent-reactions.js +0 -1
- package/agent-reply-fold.d.ts +2 -1
- package/agent-reply-fold.js +4 -2
- package/agent-tools.js +0 -1
- package/app-clip.js +0 -1
- package/app-documents.js +0 -1
- package/app-name.js +0 -1
- package/app.js +0 -1
- package/asset-extensions.js +0 -1
- package/asset-safety.js +0 -1
- package/asset.js +0 -1
- package/audience-arms-msg.js +0 -1
- package/auth.js +0 -1
- package/billing-msg.js +0 -1
- package/bridge-notes.js +0 -1
- package/build-ledger.js +0 -1
- package/cached-suggestion.js +0 -1
- package/capi-conversion-msg.js +0 -1
- package/capi-share-msg.js +0 -1
- package/cf-env.d.ts +5 -0
- package/cf-env.js +0 -1
- package/chat-chips.js +0 -1
- package/chat-history.js +0 -1
- package/chat-section-pack.js +0 -1
- package/chat.js +0 -1
- package/checkout-unfinished-msg.js +0 -1
- package/cli-cert-pickup.js +0 -1
- package/common.js +0 -1
- package/credits-copy.js +0 -1
- package/crm-fact-msg.js +0 -1
- package/db-acls.js +0 -1
- package/developer-grant.js +0 -1
- package/direct-channel.js +0 -1
- package/duration.js +0 -1
- package/email-unsubscribe.d.ts +1 -1
- package/email-unsubscribe.js +0 -1
- package/embed-param.js +0 -1
- package/geo.js +0 -1
- package/group-chat-settings.js +0 -1
- package/group-principal.d.ts +33 -0
- package/group-principal.js +33 -1
- package/guest-app-visitors.js +0 -1
- package/guest-principal.js +0 -1
- package/guided-remix.js +0 -1
- package/home-feed.js +0 -1
- package/iframe-src-params.js +0 -1
- package/index.d.ts +2 -0
- package/index.js +2 -1
- package/internal-secret-purpose-key.js +0 -1
- package/invite-flow.js +0 -1
- package/invite-note.js +0 -1
- package/invite.js +0 -1
- package/lazy-type.js +0 -1
- package/log-policy.js +0 -1
- package/look-packages.js +0 -1
- package/mac-bridge-wire.d.ts +87 -0
- package/mac-bridge-wire.js +56 -0
- package/mail-image-token.js +0 -1
- package/manifest-item.js +0 -1
- package/members.js +0 -1
- package/memberships.js +0 -1
- package/meta-capi-core.d.ts +4 -0
- package/meta-capi-core.js +4 -1
- package/meta-click-id-msg.js +0 -1
- package/mint-fire.js +0 -1
- package/moderation.d.ts +81 -4
- package/moderation.js +48 -3
- package/nature-rewrite-suggestion.js +0 -1
- package/notifications-summary.js +0 -1
- package/notifications.js +0 -1
- package/notify-picture.d.ts +23 -0
- package/notify-picture.js +35 -0
- package/offered-options.js +0 -1
- package/package.json +5 -5
- package/parse-http-uri.js +0 -1
- package/phone-link-invite.js +0 -1
- package/phone-link.d.ts +24 -0
- package/phone-link.js +8 -1
- package/places.js +0 -1
- package/prefilled-prompts.js +0 -1
- package/promo-redeemed-msg.js +0 -1
- package/prompt.js +0 -1
- package/queue-schedule.js +0 -1
- package/redact-email-link.js +0 -1
- package/related-vibes.js +0 -1
- package/report.js +0 -1
- package/request-access.js +0 -1
- package/research.js +0 -1
- package/reskin-dose.js +0 -1
- package/retention-msg.js +0 -1
- package/retention-steps.js +0 -1
- package/screen-shotter.js +0 -1
- package/screenshot-capture-token.js +0 -1
- package/settings.js +0 -1
- package/shard-policy.d.ts +1 -0
- package/shard-policy.js +1 -1
- package/shard-policy.test-d.js +0 -1
- package/share-link-tag.js +0 -1
- package/share-open-token.js +0 -1
- package/shared-mint.js +0 -1
- package/signin-ticket.js +0 -1
- package/social-msg.js +0 -1
- package/style-cache-key.js +0 -1
- package/style.js +0 -1
- package/text-number.js +0 -1
- package/text-turn.d.ts +19 -0
- package/text-turn.js +6 -2
- package/tracking-params.js +0 -1
- package/turn-variant.js +0 -1
- package/type-is.js +0 -1
- package/types.js +0 -1
- package/version-ordinal.js +0 -1
- package/vibe-activity.js +0 -1
- package/vibe-card-events.js +0 -1
- package/vibe-file-lint.js +0 -1
- package/vibe-tools.js +0 -1
- package/vibes-diy-api.d.ts +2 -1
- package/vibes-diy-api.js +0 -1
- package/vibes-diy-serv-ctx.js +0 -1
- package/vibes-logo-paths.js +0 -1
- package/vibes-types.js +0 -1
- package/viewer-api-fetch.js +0 -1
- package/welcome-msg.js +0 -1
- package/ws-event-format.js +0 -1
- package/access-fn-limit-msg.js.map +0 -1
- package/access-function.js.map +0 -1
- package/access-summary.js.map +0 -1
- package/agent-chat.js.map +0 -1
- package/agent-connector-note.js.map +0 -1
- package/agent-discussion-entry.js.map +0 -1
- package/agent-evidence-line.js.map +0 -1
- package/agent-file-edit.js.map +0 -1
- package/agent-fold.js.map +0 -1
- package/agent-personalities.js.map +0 -1
- package/agent-picture.js.map +0 -1
- package/agent-reactions.js.map +0 -1
- package/agent-reply-fold.js.map +0 -1
- package/agent-tools.js.map +0 -1
- package/app-clip.js.map +0 -1
- package/app-documents.js.map +0 -1
- package/app-name.js.map +0 -1
- package/app.js.map +0 -1
- package/asset-extensions.js.map +0 -1
- package/asset-safety.js.map +0 -1
- package/asset.js.map +0 -1
- package/audience-arms-msg.js.map +0 -1
- package/auth.js.map +0 -1
- package/billing-msg.js.map +0 -1
- package/bridge-notes.js.map +0 -1
- package/build-ledger.js.map +0 -1
- package/cached-suggestion.js.map +0 -1
- package/capi-conversion-msg.js.map +0 -1
- package/capi-share-msg.js.map +0 -1
- package/cf-env.js.map +0 -1
- package/chat-chips.js.map +0 -1
- package/chat-history.js.map +0 -1
- package/chat-section-pack.js.map +0 -1
- package/chat.js.map +0 -1
- package/checkout-unfinished-msg.js.map +0 -1
- package/cli-cert-pickup.js.map +0 -1
- package/common.js.map +0 -1
- package/credits-copy.js.map +0 -1
- package/crm-fact-msg.js.map +0 -1
- package/db-acls.js.map +0 -1
- package/developer-grant.js.map +0 -1
- package/direct-channel.js.map +0 -1
- package/duration.js.map +0 -1
- package/email-unsubscribe.js.map +0 -1
- package/embed-param.js.map +0 -1
- package/geo.js.map +0 -1
- package/group-chat-settings.js.map +0 -1
- package/group-principal.js.map +0 -1
- package/guest-app-visitors.js.map +0 -1
- package/guest-principal.js.map +0 -1
- package/guided-remix.js.map +0 -1
- package/home-feed.js.map +0 -1
- package/iframe-src-params.js.map +0 -1
- package/index.js.map +0 -1
- package/internal-secret-purpose-key.js.map +0 -1
- package/invite-flow.js.map +0 -1
- package/invite-note.js.map +0 -1
- package/invite.js.map +0 -1
- package/lazy-type.js.map +0 -1
- package/log-policy.js.map +0 -1
- package/look-packages.js.map +0 -1
- package/mail-image-token.js.map +0 -1
- package/manifest-item.js.map +0 -1
- package/members.js.map +0 -1
- package/memberships.js.map +0 -1
- package/meta-capi-core.js.map +0 -1
- package/meta-click-id-msg.js.map +0 -1
- package/mint-fire.js.map +0 -1
- package/moderation.js.map +0 -1
- package/nature-rewrite-suggestion.js.map +0 -1
- package/notifications-summary.js.map +0 -1
- package/notifications.js.map +0 -1
- package/offered-options.js.map +0 -1
- package/parse-http-uri.js.map +0 -1
- package/phone-link-invite.js.map +0 -1
- package/phone-link.js.map +0 -1
- package/places.js.map +0 -1
- package/prefilled-prompts.js.map +0 -1
- package/promo-redeemed-msg.js.map +0 -1
- package/prompt.js.map +0 -1
- package/queue-schedule.js.map +0 -1
- package/redact-email-link.js.map +0 -1
- package/related-vibes.js.map +0 -1
- package/report.js.map +0 -1
- package/request-access.js.map +0 -1
- package/research.js.map +0 -1
- package/reskin-dose.js.map +0 -1
- package/retention-msg.js.map +0 -1
- package/retention-steps.js.map +0 -1
- package/screen-shotter.js.map +0 -1
- package/screenshot-capture-token.js.map +0 -1
- package/settings.js.map +0 -1
- package/shard-policy.js.map +0 -1
- package/shard-policy.test-d.js.map +0 -1
- package/share-link-tag.js.map +0 -1
- package/share-open-token.js.map +0 -1
- package/shared-mint.js.map +0 -1
- package/signin-ticket.js.map +0 -1
- package/social-msg.js.map +0 -1
- package/style-cache-key.js.map +0 -1
- package/style.js.map +0 -1
- package/text-number.js.map +0 -1
- package/text-turn.js.map +0 -1
- package/tracking-params.js.map +0 -1
- package/turn-variant.js.map +0 -1
- package/type-is.js.map +0 -1
- package/types.js.map +0 -1
- package/version-ordinal.js.map +0 -1
- package/vibe-activity.js.map +0 -1
- package/vibe-card-events.js.map +0 -1
- package/vibe-file-lint.js.map +0 -1
- package/vibe-tools.js.map +0 -1
- package/vibes-diy-api.js.map +0 -1
- package/vibes-diy-serv-ctx.js.map +0 -1
- package/vibes-logo-paths.js.map +0 -1
- package/vibes-types.js.map +0 -1
- package/viewer-api-fetch.js.map +0 -1
- package/welcome-msg.js.map +0 -1
- package/ws-event-format.js.map +0 -1
package/group-principal.d.ts
CHANGED
|
@@ -70,6 +70,33 @@ export declare const resSetGroupRoster: import("arktype/internal/variants/object
|
|
|
70
70
|
}, {}>;
|
|
71
71
|
export type ResSetGroupRoster = typeof resSetGroupRoster.infer;
|
|
72
72
|
export declare function isResSetGroupRoster(value: unknown): value is ResSetGroupRoster;
|
|
73
|
+
export declare const reqStopGroupSponsor: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
74
|
+
type: "vibes.diy.req-stop-group-sponsor";
|
|
75
|
+
auth: {
|
|
76
|
+
type: "clerk" | "device-id" | "guest" | "ucan";
|
|
77
|
+
token: string;
|
|
78
|
+
};
|
|
79
|
+
with?: string | undefined;
|
|
80
|
+
}, {}>;
|
|
81
|
+
export type ReqStopGroupSponsor = typeof reqStopGroupSponsor.infer;
|
|
82
|
+
export declare const stoppedGroupChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
83
|
+
group?: string | undefined;
|
|
84
|
+
members: string[];
|
|
85
|
+
}, {}>;
|
|
86
|
+
export type StoppedGroupChat = typeof stoppedGroupChat.infer;
|
|
87
|
+
export declare const resStopGroupSponsor: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
88
|
+
type: "vibes.diy.res-stop-group-sponsor";
|
|
89
|
+
stopped: {
|
|
90
|
+
group?: string | undefined;
|
|
91
|
+
members: string[];
|
|
92
|
+
}[];
|
|
93
|
+
stillSponsoring: {
|
|
94
|
+
group?: string | undefined;
|
|
95
|
+
members: string[];
|
|
96
|
+
}[];
|
|
97
|
+
}, {}>;
|
|
98
|
+
export type ResStopGroupSponsor = typeof resStopGroupSponsor.infer;
|
|
99
|
+
export declare function isResStopGroupSponsor(value: unknown): value is ResStopGroupSponsor;
|
|
73
100
|
export declare const GROUP_CONFIRM_REASON = "needs-second-member";
|
|
74
101
|
export interface GroupConfirm {
|
|
75
102
|
readonly action: "unpublish";
|
|
@@ -77,3 +104,9 @@ export interface GroupConfirm {
|
|
|
77
104
|
readonly appSlug: string;
|
|
78
105
|
}
|
|
79
106
|
export declare function groupConfirmFromReceipt(text: string | undefined): GroupConfirm | undefined;
|
|
107
|
+
export interface GroupCopyToAsker {
|
|
108
|
+
readonly ownerHandle: string;
|
|
109
|
+
readonly appSlug: string;
|
|
110
|
+
readonly remixOf: string;
|
|
111
|
+
}
|
|
112
|
+
export declare function groupCopyFromReceipt(text: string | undefined): GroupCopyToAsker | undefined;
|
package/group-principal.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exception2Result } from "@adviser/cement";
|
|
1
2
|
import { type } from "arktype";
|
|
2
3
|
import { dashAuthType } from "./common.js";
|
|
3
4
|
import { lazyType } from "./lazy-type.js";
|
|
@@ -66,6 +67,23 @@ export const resSetGroupRoster = lazyType(() => type({
|
|
|
66
67
|
export function isResSetGroupRoster(value) {
|
|
67
68
|
return resSetGroupRoster.allows(value);
|
|
68
69
|
}
|
|
70
|
+
export const reqStopGroupSponsor = lazyType(() => type({
|
|
71
|
+
type: "'vibes.diy.req-stop-group-sponsor'",
|
|
72
|
+
auth: dashAuthType,
|
|
73
|
+
"with?": "string",
|
|
74
|
+
}));
|
|
75
|
+
export const stoppedGroupChat = lazyType(() => type({
|
|
76
|
+
"group?": "string",
|
|
77
|
+
members: "string[]",
|
|
78
|
+
}));
|
|
79
|
+
export const resStopGroupSponsor = lazyType(() => type({
|
|
80
|
+
type: "'vibes.diy.res-stop-group-sponsor'",
|
|
81
|
+
stopped: stoppedGroupChat.array(),
|
|
82
|
+
stillSponsoring: stoppedGroupChat.array(),
|
|
83
|
+
}));
|
|
84
|
+
export function isResStopGroupSponsor(value) {
|
|
85
|
+
return resStopGroupSponsor.allows(value);
|
|
86
|
+
}
|
|
69
87
|
export const GROUP_CONFIRM_REASON = "needs-second-member";
|
|
70
88
|
const groupConfirmReceipt = lazyType(() => type({
|
|
71
89
|
reason: `'${GROUP_CONFIRM_REASON}'`,
|
|
@@ -86,4 +104,18 @@ export function groupConfirmFromReceipt(text) {
|
|
|
86
104
|
return undefined;
|
|
87
105
|
return { action: r.confirm.action, ownerHandle: r.confirm.ownerHandle, appSlug: r.confirm.appSlug };
|
|
88
106
|
}
|
|
89
|
-
|
|
107
|
+
const groupCopyReceipt = lazyType(() => type({
|
|
108
|
+
copiedToAsker: { ownerHandle: "string > 0", appSlug: "string > 0", remixOf: "string > 0" },
|
|
109
|
+
}));
|
|
110
|
+
export function groupCopyFromReceipt(text) {
|
|
111
|
+
if (text === undefined)
|
|
112
|
+
return undefined;
|
|
113
|
+
const rParsed = exception2Result(() => JSON.parse(text));
|
|
114
|
+
if (rParsed.isErr())
|
|
115
|
+
return undefined;
|
|
116
|
+
const r = groupCopyReceipt(rParsed.Ok());
|
|
117
|
+
if (r instanceof type.errors)
|
|
118
|
+
return undefined;
|
|
119
|
+
const c = r.copiedToAsker;
|
|
120
|
+
return { ownerHandle: c.ownerHandle, appSlug: c.appSlug, remixOf: c.remixOf };
|
|
121
|
+
}
|
package/guest-app-visitors.js
CHANGED
package/guest-principal.js
CHANGED
package/guided-remix.js
CHANGED
|
@@ -370,4 +370,3 @@ export function readGuideAnswer(path, status, body) {
|
|
|
370
370
|
const waiting = parsed.waiting?.trim().slice(0, GUIDE_ANSWER_CHARS);
|
|
371
371
|
return Result.Ok({ done: parsed.done, vars, ...(waiting === undefined || waiting === "" ? {} : { waiting }) });
|
|
372
372
|
}
|
|
373
|
-
//# sourceMappingURL=guided-remix.js.map
|
package/home-feed.js
CHANGED
package/iframe-src-params.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -14,12 +14,14 @@ export * from "./agent-chat.js";
|
|
|
14
14
|
export * from "./agent-fold.js";
|
|
15
15
|
export * from "./agent-reply-fold.js";
|
|
16
16
|
export * from "./text-turn.js";
|
|
17
|
+
export * from "./mac-bridge-wire.js";
|
|
17
18
|
export * from "./guest-principal.js";
|
|
18
19
|
export * from "./chat-chips.js";
|
|
19
20
|
export * from "./agent-tools.js";
|
|
20
21
|
export * from "./agent-personalities.js";
|
|
21
22
|
export * from "./agent-reactions.js";
|
|
22
23
|
export * from "./agent-picture.js";
|
|
24
|
+
export * from "./notify-picture.js";
|
|
23
25
|
export * from "./bridge-notes.js";
|
|
24
26
|
export * from "./shared-mint.js";
|
|
25
27
|
export * from "./mint-fire.js";
|
package/index.js
CHANGED
|
@@ -13,12 +13,14 @@ export * from "./agent-chat.js";
|
|
|
13
13
|
export * from "./agent-fold.js";
|
|
14
14
|
export * from "./agent-reply-fold.js";
|
|
15
15
|
export * from "./text-turn.js";
|
|
16
|
+
export * from "./mac-bridge-wire.js";
|
|
16
17
|
export * from "./guest-principal.js";
|
|
17
18
|
export * from "./chat-chips.js";
|
|
18
19
|
export * from "./agent-tools.js";
|
|
19
20
|
export * from "./agent-personalities.js";
|
|
20
21
|
export * from "./agent-reactions.js";
|
|
21
22
|
export * from "./agent-picture.js";
|
|
23
|
+
export * from "./notify-picture.js";
|
|
22
24
|
export * from "./bridge-notes.js";
|
|
23
25
|
export * from "./shared-mint.js";
|
|
24
26
|
export * from "./mint-fire.js";
|
|
@@ -117,4 +119,3 @@ export * from "./reskin-dose.js";
|
|
|
117
119
|
export * from "./vibe-card-events.js";
|
|
118
120
|
export * from "./access-summary.js";
|
|
119
121
|
export * from "./ws-event-format.js";
|
|
120
|
-
//# sourceMappingURL=index.js.map
|
package/invite-flow.js
CHANGED
package/invite-note.js
CHANGED
package/invite.js
CHANGED
package/lazy-type.js
CHANGED
package/log-policy.js
CHANGED
package/look-packages.js
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare const MAC_BRIDGE_VERBS: readonly ["sendText", "sendDirect", "sendAttachment", "fetchPhoto", "discardPhoto", "participants", "messagesSince", "react", "markRead", "contactsEnsure", "metric"];
|
|
2
|
+
export type MacBridgeVerb = (typeof MAC_BRIDGE_VERBS)[number];
|
|
3
|
+
export declare const MAC_BRIDGE_ONE_WAY: ReadonlySet<MacBridgeVerb>;
|
|
4
|
+
export declare const MAC_BRIDGE_WIRE_VERSION = 1;
|
|
5
|
+
export declare const macBridgeHello: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
6
|
+
t: "hello";
|
|
7
|
+
version: number;
|
|
8
|
+
caps: string[];
|
|
9
|
+
lastSeenAt: number;
|
|
10
|
+
}, {}>;
|
|
11
|
+
export type MacBridgeHello = typeof macBridgeHello.infer;
|
|
12
|
+
export declare const macBridgeEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
13
|
+
t: "event";
|
|
14
|
+
id: string;
|
|
15
|
+
event: {
|
|
16
|
+
[x: string]: unknown;
|
|
17
|
+
kind: string;
|
|
18
|
+
};
|
|
19
|
+
arrivedAt: number;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export type MacBridgeEvent = typeof macBridgeEvent.infer;
|
|
22
|
+
export declare const macBridgeResult: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
23
|
+
t: "result";
|
|
24
|
+
id: string;
|
|
25
|
+
ok: true;
|
|
26
|
+
value?: unknown;
|
|
27
|
+
} | {
|
|
28
|
+
t: "result";
|
|
29
|
+
id: string;
|
|
30
|
+
ok: false;
|
|
31
|
+
error: string;
|
|
32
|
+
}, {}>;
|
|
33
|
+
export type MacBridgeResult = typeof macBridgeResult.infer;
|
|
34
|
+
export declare const macBridgeUp: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
35
|
+
t: "hello";
|
|
36
|
+
version: number;
|
|
37
|
+
caps: string[];
|
|
38
|
+
lastSeenAt: number;
|
|
39
|
+
} | {
|
|
40
|
+
t: "event";
|
|
41
|
+
id: string;
|
|
42
|
+
event: {
|
|
43
|
+
[x: string]: unknown;
|
|
44
|
+
kind: string;
|
|
45
|
+
};
|
|
46
|
+
arrivedAt: number;
|
|
47
|
+
} | {
|
|
48
|
+
t: "result";
|
|
49
|
+
id: string;
|
|
50
|
+
ok: true;
|
|
51
|
+
value?: unknown;
|
|
52
|
+
} | {
|
|
53
|
+
t: "result";
|
|
54
|
+
id: string;
|
|
55
|
+
ok: false;
|
|
56
|
+
error: string;
|
|
57
|
+
}, {}>;
|
|
58
|
+
export type MacBridgeUp = typeof macBridgeUp.infer;
|
|
59
|
+
export declare function parseMacBridgeUp(obj: unknown): MacBridgeUp | undefined;
|
|
60
|
+
export declare const macBridgeCall: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
61
|
+
t: "call";
|
|
62
|
+
id: string;
|
|
63
|
+
key: string;
|
|
64
|
+
verb: "contactsEnsure" | "discardPhoto" | "fetchPhoto" | "markRead" | "messagesSince" | "metric" | "participants" | "react" | "sendAttachment" | "sendDirect" | "sendText";
|
|
65
|
+
args: unknown;
|
|
66
|
+
}, {}>;
|
|
67
|
+
export type MacBridgeCall = typeof macBridgeCall.infer;
|
|
68
|
+
export declare const macBridgeAck: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
69
|
+
t: "ack";
|
|
70
|
+
id: string;
|
|
71
|
+
}, {}>;
|
|
72
|
+
export type MacBridgeAck = typeof macBridgeAck.infer;
|
|
73
|
+
export declare const macBridgeDown: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
74
|
+
t: "call";
|
|
75
|
+
id: string;
|
|
76
|
+
key: string;
|
|
77
|
+
verb: "contactsEnsure" | "discardPhoto" | "fetchPhoto" | "markRead" | "messagesSince" | "metric" | "participants" | "react" | "sendAttachment" | "sendDirect" | "sendText";
|
|
78
|
+
args: unknown;
|
|
79
|
+
} | {
|
|
80
|
+
t: "ack";
|
|
81
|
+
id: string;
|
|
82
|
+
}, {}>;
|
|
83
|
+
export type MacBridgeDown = typeof macBridgeDown.infer;
|
|
84
|
+
export declare function parseMacBridgeDown(obj: unknown): MacBridgeDown | undefined;
|
|
85
|
+
export declare const MAC_BRIDGE_BLOB_PATH = "/text-lane/mac/blob/";
|
|
86
|
+
export declare const MAC_BRIDGE_STATE_PATH = "/text-lane/mac/state";
|
|
87
|
+
export declare const MAC_BRIDGE_SOCKET_PATH = "/text-lane/mac";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { type } from "arktype";
|
|
2
|
+
import { lazyType } from "./lazy-type.js";
|
|
3
|
+
export const MAC_BRIDGE_VERBS = [
|
|
4
|
+
"sendText",
|
|
5
|
+
"sendDirect",
|
|
6
|
+
"sendAttachment",
|
|
7
|
+
"fetchPhoto",
|
|
8
|
+
"discardPhoto",
|
|
9
|
+
"participants",
|
|
10
|
+
"messagesSince",
|
|
11
|
+
"react",
|
|
12
|
+
"markRead",
|
|
13
|
+
"contactsEnsure",
|
|
14
|
+
"metric",
|
|
15
|
+
];
|
|
16
|
+
export const MAC_BRIDGE_ONE_WAY = new Set(["metric", "discardPhoto"]);
|
|
17
|
+
export const MAC_BRIDGE_WIRE_VERSION = 1;
|
|
18
|
+
export const macBridgeHello = lazyType(() => type({
|
|
19
|
+
t: "'hello'",
|
|
20
|
+
version: "number",
|
|
21
|
+
caps: "string[]",
|
|
22
|
+
lastSeenAt: "number",
|
|
23
|
+
}));
|
|
24
|
+
export const macBridgeEvent = lazyType(() => type({
|
|
25
|
+
t: "'event'",
|
|
26
|
+
id: "string > 0",
|
|
27
|
+
event: { kind: "string", "[string]": "unknown" },
|
|
28
|
+
arrivedAt: "number",
|
|
29
|
+
}));
|
|
30
|
+
export const macBridgeResult = lazyType(() => type({ t: "'result'", id: "string > 0", ok: "true", "value?": "unknown" }).or({
|
|
31
|
+
t: "'result'",
|
|
32
|
+
id: "string > 0",
|
|
33
|
+
ok: "false",
|
|
34
|
+
error: "string",
|
|
35
|
+
}));
|
|
36
|
+
export const macBridgeUp = lazyType(() => macBridgeHello.or(macBridgeEvent).or(macBridgeResult));
|
|
37
|
+
export function parseMacBridgeUp(obj) {
|
|
38
|
+
const r = macBridgeUp(obj);
|
|
39
|
+
return r instanceof type.errors ? undefined : r;
|
|
40
|
+
}
|
|
41
|
+
export const macBridgeCall = lazyType(() => type({
|
|
42
|
+
t: "'call'",
|
|
43
|
+
id: "string > 0",
|
|
44
|
+
key: "string > 0",
|
|
45
|
+
verb: type.enumerated(...MAC_BRIDGE_VERBS),
|
|
46
|
+
args: "unknown",
|
|
47
|
+
}));
|
|
48
|
+
export const macBridgeAck = lazyType(() => type({ t: "'ack'", id: "string > 0" }));
|
|
49
|
+
export const macBridgeDown = lazyType(() => macBridgeCall.or(macBridgeAck));
|
|
50
|
+
export function parseMacBridgeDown(obj) {
|
|
51
|
+
const r = macBridgeDown(obj);
|
|
52
|
+
return r instanceof type.errors ? undefined : r;
|
|
53
|
+
}
|
|
54
|
+
export const MAC_BRIDGE_BLOB_PATH = "/text-lane/mac/blob/";
|
|
55
|
+
export const MAC_BRIDGE_STATE_PATH = "/text-lane/mac/state";
|
|
56
|
+
export const MAC_BRIDGE_SOCKET_PATH = "/text-lane/mac";
|
package/mail-image-token.js
CHANGED
package/manifest-item.js
CHANGED
package/members.js
CHANGED
package/memberships.js
CHANGED
package/meta-capi-core.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ export declare const LEAD_POINTS: {
|
|
|
11
11
|
readonly return: 125;
|
|
12
12
|
readonly share: 125;
|
|
13
13
|
readonly shareOpened: 125;
|
|
14
|
+
readonly textTap: 25;
|
|
15
|
+
readonly groupStart: 125;
|
|
16
|
+
readonly groupActive: 250;
|
|
17
|
+
readonly groupAgain: 125;
|
|
14
18
|
};
|
|
15
19
|
export declare const SHARE_OPENED_CAP = 10;
|
|
16
20
|
export declare function promptLeadPoints(index: number): number | undefined;
|
package/meta-capi-core.js
CHANGED
|
@@ -11,6 +11,10 @@ export const LEAD_POINTS = {
|
|
|
11
11
|
return: 125,
|
|
12
12
|
share: 125,
|
|
13
13
|
shareOpened: 125,
|
|
14
|
+
textTap: 25,
|
|
15
|
+
groupStart: 125,
|
|
16
|
+
groupActive: 250,
|
|
17
|
+
groupAgain: 125,
|
|
14
18
|
};
|
|
15
19
|
export const SHARE_OPENED_CAP = 10;
|
|
16
20
|
export function promptLeadPoints(index) {
|
|
@@ -87,4 +91,3 @@ export async function postCapiEvent(pixelId, payload, eventLabel) {
|
|
|
87
91
|
export function capiFbc(fbclid, clickTimeMs) {
|
|
88
92
|
return `fb.1.${clickTimeMs}.${fbclid}`;
|
|
89
93
|
}
|
|
90
|
-
//# sourceMappingURL=meta-capi-core.js.map
|
package/meta-click-id-msg.js
CHANGED
package/mint-fire.js
CHANGED
package/moderation.d.ts
CHANGED
|
@@ -56,22 +56,58 @@ export type EvtVibeReported = typeof evtVibeReported.infer;
|
|
|
56
56
|
export declare function isEvtVibeReported(obj: unknown): obj is EvtVibeReported;
|
|
57
57
|
export declare const evtChildSafetySignal: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
58
58
|
type: "vibes.diy.evt-child-safety-signal";
|
|
59
|
-
source: "image-check";
|
|
59
|
+
source: "code-check" | "image-check" | "prompt-check";
|
|
60
60
|
ownerHandle: string;
|
|
61
61
|
appSlug: string;
|
|
62
62
|
refId: string;
|
|
63
63
|
}, {}>;
|
|
64
64
|
export type EvtChildSafetySignal = typeof evtChildSafetySignal.infer;
|
|
65
65
|
export declare function isEvtChildSafetySignal(obj: unknown): obj is EvtChildSafetySignal;
|
|
66
|
-
export declare const moderationAdminOp: import("arktype/internal/variants/string.ts").StringType<"list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "unsuspend", {}>;
|
|
66
|
+
export declare const moderationAdminOp: import("arktype/internal/variants/string.ts").StringType<"list-flags" | "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "triage-flag" | "unsuspend", {}>;
|
|
67
67
|
export type ModerationAdminOp = typeof moderationAdminOp.infer;
|
|
68
|
+
export declare const AUTO_FLAG_CATEGORIES: readonly ["minors_sexual", "named_person", "self_harm", "credential_capture", "harassment_doxxing", "refused"];
|
|
69
|
+
export type AutoFlagCategory = (typeof AUTO_FLAG_CATEGORIES)[number];
|
|
70
|
+
export declare const autoFlagTriage: import("arktype/internal/variants/string.ts").StringType<"escalated" | "false_alarm" | "resolved", {}>;
|
|
71
|
+
export type AutoFlagTriage = typeof autoFlagTriage.infer;
|
|
72
|
+
export declare const autoFlagRow: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
73
|
+
flagId: string;
|
|
74
|
+
ownerHandle: string;
|
|
75
|
+
appSlug: string;
|
|
76
|
+
actorUserId: string;
|
|
77
|
+
inputKind: "code" | "prompt";
|
|
78
|
+
category: string;
|
|
79
|
+
reason: string;
|
|
80
|
+
model: string;
|
|
81
|
+
status: string;
|
|
82
|
+
created: string;
|
|
83
|
+
chatId?: string | undefined;
|
|
84
|
+
promptId?: string | undefined;
|
|
85
|
+
fsId?: string | undefined;
|
|
86
|
+
promptText?: string | undefined;
|
|
87
|
+
triagedAt?: string | undefined;
|
|
88
|
+
triagedBy?: string | undefined;
|
|
89
|
+
triageNote?: string | undefined;
|
|
90
|
+
}, {}>;
|
|
91
|
+
export type AutoFlagRow = typeof autoFlagRow.infer;
|
|
92
|
+
export declare const evtAutoFlagWaiting: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
93
|
+
type: "vibes.diy.evt-auto-flag-waiting";
|
|
94
|
+
stage: "first-responder" | "widen";
|
|
95
|
+
flagId: string;
|
|
96
|
+
ownerHandle: string;
|
|
97
|
+
appSlug: string;
|
|
98
|
+
category: string;
|
|
99
|
+
inputKind: "code" | "prompt";
|
|
100
|
+
at: string;
|
|
101
|
+
}, {}>;
|
|
102
|
+
export type EvtAutoFlagWaiting = typeof evtAutoFlagWaiting.infer;
|
|
103
|
+
export declare function isEvtAutoFlagWaiting(obj: unknown): obj is EvtAutoFlagWaiting;
|
|
68
104
|
export declare const reqModerationAdmin: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
69
105
|
type: "vibes.diy.req-moderation-admin";
|
|
70
106
|
auth: {
|
|
71
107
|
type: "clerk" | "device-id" | "guest" | "ucan";
|
|
72
108
|
token: string;
|
|
73
109
|
};
|
|
74
|
-
op: "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "unsuspend";
|
|
110
|
+
op: "list-flags" | "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "triage-flag" | "unsuspend";
|
|
75
111
|
reason?: string | undefined;
|
|
76
112
|
reportId?: string | undefined;
|
|
77
113
|
userId?: string | undefined;
|
|
@@ -79,6 +115,9 @@ export declare const reqModerationAdmin: import("arktype/internal/variants/objec
|
|
|
79
115
|
paused?: boolean | undefined;
|
|
80
116
|
status?: "all" | "open" | "resolved" | undefined;
|
|
81
117
|
limit?: number | undefined;
|
|
118
|
+
flagId?: string | undefined;
|
|
119
|
+
triage?: "escalated" | "false_alarm" | "resolved" | undefined;
|
|
120
|
+
flagStatus?: "all" | "escalated" | "false_alarm" | "open" | "resolved" | undefined;
|
|
82
121
|
}, {}>;
|
|
83
122
|
export type ReqModerationAdmin = typeof reqModerationAdmin.infer;
|
|
84
123
|
export declare const vibeReportRow: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -113,7 +152,7 @@ export declare const publishingSwitchState: import("arktype/internal/variants/ob
|
|
|
113
152
|
export type PublishingSwitchState = typeof publishingSwitchState.infer;
|
|
114
153
|
export declare const resModerationAdmin: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
115
154
|
type: "vibes.diy.res-moderation-admin";
|
|
116
|
-
op: "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "unsuspend";
|
|
155
|
+
op: "list-flags" | "list-reports" | "resolve-report" | "set-publishing-paused" | "status" | "suspend" | "triage-flag" | "unsuspend";
|
|
117
156
|
reports?: {
|
|
118
157
|
reportId: string;
|
|
119
158
|
ownerHandle: string;
|
|
@@ -163,6 +202,44 @@ export declare const resModerationAdmin: import("arktype/internal/variants/objec
|
|
|
163
202
|
updated?: string | undefined;
|
|
164
203
|
} | undefined;
|
|
165
204
|
openReports?: number | undefined;
|
|
205
|
+
flags?: {
|
|
206
|
+
flagId: string;
|
|
207
|
+
ownerHandle: string;
|
|
208
|
+
appSlug: string;
|
|
209
|
+
actorUserId: string;
|
|
210
|
+
inputKind: "code" | "prompt";
|
|
211
|
+
category: string;
|
|
212
|
+
reason: string;
|
|
213
|
+
model: string;
|
|
214
|
+
status: string;
|
|
215
|
+
created: string;
|
|
216
|
+
chatId?: string | undefined;
|
|
217
|
+
promptId?: string | undefined;
|
|
218
|
+
fsId?: string | undefined;
|
|
219
|
+
promptText?: string | undefined;
|
|
220
|
+
triagedAt?: string | undefined;
|
|
221
|
+
triagedBy?: string | undefined;
|
|
222
|
+
triageNote?: string | undefined;
|
|
223
|
+
}[] | undefined;
|
|
224
|
+
flag?: {
|
|
225
|
+
flagId: string;
|
|
226
|
+
ownerHandle: string;
|
|
227
|
+
appSlug: string;
|
|
228
|
+
actorUserId: string;
|
|
229
|
+
inputKind: "code" | "prompt";
|
|
230
|
+
category: string;
|
|
231
|
+
reason: string;
|
|
232
|
+
model: string;
|
|
233
|
+
status: string;
|
|
234
|
+
created: string;
|
|
235
|
+
chatId?: string | undefined;
|
|
236
|
+
promptId?: string | undefined;
|
|
237
|
+
fsId?: string | undefined;
|
|
238
|
+
promptText?: string | undefined;
|
|
239
|
+
triagedAt?: string | undefined;
|
|
240
|
+
triagedBy?: string | undefined;
|
|
241
|
+
triageNote?: string | undefined;
|
|
242
|
+
} | undefined;
|
|
166
243
|
}, {}>;
|
|
167
244
|
export type ResModerationAdmin = typeof resModerationAdmin.infer;
|
|
168
245
|
export declare function isResModerationAdmin(obj: unknown): obj is ResModerationAdmin;
|
package/moderation.js
CHANGED
|
@@ -48,7 +48,7 @@ export function isEvtVibeReported(obj) {
|
|
|
48
48
|
}
|
|
49
49
|
export const evtChildSafetySignal = lazyType(() => type({
|
|
50
50
|
type: "'vibes.diy.evt-child-safety-signal'",
|
|
51
|
-
source: "'image-check'",
|
|
51
|
+
source: "'image-check' | 'prompt-check' | 'code-check'",
|
|
52
52
|
ownerHandle: "string",
|
|
53
53
|
appSlug: "string",
|
|
54
54
|
refId: "string",
|
|
@@ -56,7 +56,48 @@ export const evtChildSafetySignal = lazyType(() => type({
|
|
|
56
56
|
export function isEvtChildSafetySignal(obj) {
|
|
57
57
|
return evtChildSafetySignal.allows(obj);
|
|
58
58
|
}
|
|
59
|
-
export const moderationAdminOp = lazyType(() => type("'list-reports' | 'resolve-report' | 'suspend' | 'unsuspend' | 'set-publishing-paused' | 'status'"));
|
|
59
|
+
export const moderationAdminOp = lazyType(() => type("'list-reports' | 'resolve-report' | 'suspend' | 'unsuspend' | 'set-publishing-paused' | 'status' | 'list-flags' | 'triage-flag'"));
|
|
60
|
+
export const AUTO_FLAG_CATEGORIES = [
|
|
61
|
+
"minors_sexual",
|
|
62
|
+
"named_person",
|
|
63
|
+
"self_harm",
|
|
64
|
+
"credential_capture",
|
|
65
|
+
"harassment_doxxing",
|
|
66
|
+
"refused",
|
|
67
|
+
];
|
|
68
|
+
export const autoFlagTriage = lazyType(() => type("'false_alarm' | 'escalated' | 'resolved'"));
|
|
69
|
+
export const autoFlagRow = lazyType(() => type({
|
|
70
|
+
flagId: "string",
|
|
71
|
+
ownerHandle: "string",
|
|
72
|
+
appSlug: "string",
|
|
73
|
+
actorUserId: "string",
|
|
74
|
+
inputKind: "'prompt' | 'code'",
|
|
75
|
+
category: "string",
|
|
76
|
+
reason: "string",
|
|
77
|
+
model: "string",
|
|
78
|
+
status: "string",
|
|
79
|
+
created: "string",
|
|
80
|
+
"chatId?": "string",
|
|
81
|
+
"promptId?": "string",
|
|
82
|
+
"fsId?": "string",
|
|
83
|
+
"promptText?": "string",
|
|
84
|
+
"triagedAt?": "string",
|
|
85
|
+
"triagedBy?": "string",
|
|
86
|
+
"triageNote?": "string",
|
|
87
|
+
}));
|
|
88
|
+
export const evtAutoFlagWaiting = lazyType(() => type({
|
|
89
|
+
type: "'vibes.diy.evt-auto-flag-waiting'",
|
|
90
|
+
stage: "'first-responder' | 'widen'",
|
|
91
|
+
flagId: "string",
|
|
92
|
+
ownerHandle: "string",
|
|
93
|
+
appSlug: "string",
|
|
94
|
+
category: "string",
|
|
95
|
+
inputKind: "'prompt' | 'code'",
|
|
96
|
+
at: "string",
|
|
97
|
+
}));
|
|
98
|
+
export function isEvtAutoFlagWaiting(obj) {
|
|
99
|
+
return evtAutoFlagWaiting.allows(obj);
|
|
100
|
+
}
|
|
60
101
|
export const reqModerationAdmin = lazyType(() => type({
|
|
61
102
|
type: "'vibes.diy.req-moderation-admin'",
|
|
62
103
|
auth: dashAuthType,
|
|
@@ -68,6 +109,9 @@ export const reqModerationAdmin = lazyType(() => type({
|
|
|
68
109
|
"paused?": "boolean",
|
|
69
110
|
"status?": "'open' | 'resolved' | 'all'",
|
|
70
111
|
"limit?": "number",
|
|
112
|
+
"flagId?": "string",
|
|
113
|
+
"triage?": autoFlagTriage,
|
|
114
|
+
"flagStatus?": "'open' | 'false_alarm' | 'escalated' | 'resolved' | 'all'",
|
|
71
115
|
}));
|
|
72
116
|
export const vibeReportRow = lazyType(() => type({
|
|
73
117
|
reportId: "string",
|
|
@@ -105,6 +149,8 @@ export const resModerationAdmin = lazyType(() => type({
|
|
|
105
149
|
"suspensions?": accountSuspensionRow.array(),
|
|
106
150
|
"publishing?": publishingSwitchState,
|
|
107
151
|
"openReports?": "number",
|
|
152
|
+
"flags?": autoFlagRow.array(),
|
|
153
|
+
"flag?": autoFlagRow,
|
|
108
154
|
}));
|
|
109
155
|
export function isResModerationAdmin(obj) {
|
|
110
156
|
return resModerationAdmin.allows(obj);
|
|
@@ -124,4 +170,3 @@ export function moderationRefusalText(err) {
|
|
|
124
170
|
}
|
|
125
171
|
return undefined;
|
|
126
172
|
}
|
|
127
|
-
//# sourceMappingURL=moderation.js.map
|
package/notifications-summary.js
CHANGED
package/notifications.js
CHANGED