@vibes.diy/api-types 5.0.1 → 5.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,6 +9,10 @@ export interface Helpers {
9
9
  }
10
10
  export interface AccessDescriptor {
11
11
  channels?: string[];
12
+ audience?: {
13
+ followersOf?: string;
14
+ mutualsOf?: string;
15
+ };
12
16
  members?: Record<string, string[]>;
13
17
  grant?: {
14
18
  users?: Record<string, string[]>;
package/app.d.ts CHANGED
@@ -1146,7 +1146,7 @@ export declare const reqListNotifications: import("arktype/internal/variants/obj
1146
1146
  };
1147
1147
  appSlug?: string | undefined;
1148
1148
  ownerHandle?: string | undefined;
1149
- notificationType?: "build-complete" | "build-failed" | "comment-posted" | "dm-received" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed" | undefined;
1149
+ notificationType?: "build-complete" | "build-failed" | "comment-posted" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed" | undefined;
1150
1150
  cursor?: string | undefined;
1151
1151
  limit?: number | undefined;
1152
1152
  }, {}>;
@@ -1157,9 +1157,9 @@ export declare const resListNotifications: import("arktype/internal/variants/obj
1157
1157
  items: {
1158
1158
  id: string;
1159
1159
  userId: string;
1160
- notificationType: "build-complete" | "build-failed" | "comment-posted" | "dm-received" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed";
1160
+ notificationType: "build-complete" | "build-failed" | "comment-posted" | "dm-received" | "follow-approved" | "follow-request" | "follower-added" | "member-joined" | "request-approved" | "request-revoked" | "vibe-published" | "vibe-remixed";
1161
1161
  ownerHandle: string;
1162
- appSlug: string;
1162
+ appSlug: string | null;
1163
1163
  body: string;
1164
1164
  actorHandle?: string | null | undefined;
1165
1165
  actorUserId?: string | null | undefined;
@@ -0,0 +1,94 @@
1
+ export declare const AudienceArmState: import("arktype/internal/variants/string.ts").StringType<"allow" | "deny", {}>;
2
+ export type AudienceArmState = typeof AudienceArmState.infer;
3
+ export declare const AudiencePolicy: import("arktype/internal/variants/string.ts").StringType<"always-allow" | "ask" | "never-allow", {}>;
4
+ export type AudiencePolicy = typeof AudiencePolicy.infer;
5
+ export declare const ReqAudienceArmState: import("arktype/internal/variants/object.ts").ObjectType<{
6
+ type: "vibes.diy.req-audience-arm-state";
7
+ auth: {
8
+ type: "clerk" | "device-id" | "ucan";
9
+ token: string;
10
+ };
11
+ ownerHandle: string;
12
+ appSlug: string;
13
+ }, {}>;
14
+ export type ReqAudienceArmState = typeof ReqAudienceArmState.infer;
15
+ export declare function isReqAudienceArmState(obj: unknown): obj is ReqAudienceArmState;
16
+ export declare const ResAudienceArmState: import("arktype/internal/variants/object.ts").ObjectType<{
17
+ type: "vibes.diy.res-audience-arm-state";
18
+ ownerHandle: string;
19
+ appSlug: string;
20
+ state: "allow" | "deny" | null;
21
+ policy: "always-allow" | "ask" | "never-allow";
22
+ sensitive: boolean;
23
+ }, {}>;
24
+ export type ResAudienceArmState = typeof ResAudienceArmState.infer;
25
+ export declare function isResAudienceArmState(obj: unknown): obj is ResAudienceArmState;
26
+ export declare const ReqSetAudienceArm: import("arktype/internal/variants/object.ts").ObjectType<{
27
+ type: "vibes.diy.req-set-audience-arm";
28
+ auth: {
29
+ type: "clerk" | "device-id" | "ucan";
30
+ token: string;
31
+ };
32
+ ownerHandle: string;
33
+ appSlug: string;
34
+ state: "allow" | "deny" | null;
35
+ }, {}>;
36
+ export type ReqSetAudienceArm = typeof ReqSetAudienceArm.infer;
37
+ export declare function isReqSetAudienceArm(obj: unknown): obj is ReqSetAudienceArm;
38
+ export declare const ResSetAudienceArm: import("arktype/internal/variants/object.ts").ObjectType<{
39
+ type: "vibes.diy.res-set-audience-arm";
40
+ ownerHandle: string;
41
+ appSlug: string;
42
+ state: "allow" | "deny" | null;
43
+ }, {}>;
44
+ export type ResSetAudienceArm = typeof ResSetAudienceArm.infer;
45
+ export declare function isResSetAudienceArm(obj: unknown): obj is ResSetAudienceArm;
46
+ export declare const ReqSetAudiencePolicy: import("arktype/internal/variants/object.ts").ObjectType<{
47
+ type: "vibes.diy.req-set-audience-policy";
48
+ auth: {
49
+ type: "clerk" | "device-id" | "ucan";
50
+ token: string;
51
+ };
52
+ policy: "always-allow" | "ask" | "never-allow";
53
+ }, {}>;
54
+ export type ReqSetAudiencePolicy = typeof ReqSetAudiencePolicy.infer;
55
+ export declare function isReqSetAudiencePolicy(obj: unknown): obj is ReqSetAudiencePolicy;
56
+ export declare const ResSetAudiencePolicy: import("arktype/internal/variants/object.ts").ObjectType<{
57
+ type: "vibes.diy.res-set-audience-policy";
58
+ policy: "always-allow" | "ask" | "never-allow";
59
+ }, {}>;
60
+ export type ResSetAudiencePolicy = typeof ResSetAudiencePolicy.infer;
61
+ export declare function isResSetAudiencePolicy(obj: unknown): obj is ResSetAudiencePolicy;
62
+ export declare const AudienceArmEntry: import("arktype/internal/variants/object.ts").ObjectType<{
63
+ ownerHandle: string;
64
+ appSlug: string;
65
+ state: "allow" | "deny";
66
+ }, {}>;
67
+ export type AudienceArmEntry = typeof AudienceArmEntry.infer;
68
+ export declare const ReqListAudienceArms: import("arktype/internal/variants/object.ts").ObjectType<{
69
+ type: "vibes.diy.req-list-audience-arms";
70
+ auth: {
71
+ type: "clerk" | "device-id" | "ucan";
72
+ token: string;
73
+ };
74
+ }, {}>;
75
+ export type ReqListAudienceArms = typeof ReqListAudienceArms.infer;
76
+ export declare function isReqListAudienceArms(obj: unknown): obj is ReqListAudienceArms;
77
+ export declare const ResListAudienceArms: import("arktype/internal/variants/object.ts").ObjectType<{
78
+ type: "vibes.diy.res-list-audience-arms";
79
+ policy: "always-allow" | "ask" | "never-allow";
80
+ arms: {
81
+ ownerHandle: string;
82
+ appSlug: string;
83
+ state: "allow" | "deny";
84
+ }[];
85
+ }, {}>;
86
+ export type ResListAudienceArms = typeof ResListAudienceArms.infer;
87
+ export declare function isResListAudienceArms(obj: unknown): obj is ResListAudienceArms;
88
+ export type PromptOutcome = "prompt" | "auto-allow" | "silent-deny";
89
+ export interface ResolvePromptOutcomeArgs {
90
+ readonly policy: AudiencePolicy;
91
+ readonly sensitive: boolean;
92
+ readonly prior: AudienceArmState | null;
93
+ }
94
+ export declare function resolvePromptOutcome({ policy, sensitive, prior }: ResolvePromptOutcomeArgs): PromptOutcome;
@@ -0,0 +1,90 @@
1
+ import { type } from "arktype";
2
+ import { dashAuthType } from "./common.js";
3
+ export const AudienceArmState = type("'allow' | 'deny'");
4
+ export const AudiencePolicy = type("'ask' | 'always-allow' | 'never-allow'");
5
+ export const ReqAudienceArmState = type({
6
+ type: "'vibes.diy.req-audience-arm-state'",
7
+ auth: dashAuthType,
8
+ ownerHandle: "string",
9
+ appSlug: "string",
10
+ });
11
+ export function isReqAudienceArmState(obj) {
12
+ return !(ReqAudienceArmState(obj) instanceof type.errors);
13
+ }
14
+ export const ResAudienceArmState = type({
15
+ type: "'vibes.diy.res-audience-arm-state'",
16
+ ownerHandle: "string",
17
+ appSlug: "string",
18
+ state: AudienceArmState.or("null"),
19
+ policy: AudiencePolicy,
20
+ sensitive: "boolean",
21
+ });
22
+ export function isResAudienceArmState(obj) {
23
+ return !(ResAudienceArmState(obj) instanceof type.errors);
24
+ }
25
+ export const ReqSetAudienceArm = type({
26
+ type: "'vibes.diy.req-set-audience-arm'",
27
+ auth: dashAuthType,
28
+ ownerHandle: "string",
29
+ appSlug: "string",
30
+ state: AudienceArmState.or("null"),
31
+ });
32
+ export function isReqSetAudienceArm(obj) {
33
+ return !(ReqSetAudienceArm(obj) instanceof type.errors);
34
+ }
35
+ export const ResSetAudienceArm = type({
36
+ type: "'vibes.diy.res-set-audience-arm'",
37
+ ownerHandle: "string",
38
+ appSlug: "string",
39
+ state: AudienceArmState.or("null"),
40
+ });
41
+ export function isResSetAudienceArm(obj) {
42
+ return !(ResSetAudienceArm(obj) instanceof type.errors);
43
+ }
44
+ export const ReqSetAudiencePolicy = type({
45
+ type: "'vibes.diy.req-set-audience-policy'",
46
+ auth: dashAuthType,
47
+ policy: AudiencePolicy,
48
+ });
49
+ export function isReqSetAudiencePolicy(obj) {
50
+ return !(ReqSetAudiencePolicy(obj) instanceof type.errors);
51
+ }
52
+ export const ResSetAudiencePolicy = type({
53
+ type: "'vibes.diy.res-set-audience-policy'",
54
+ policy: AudiencePolicy,
55
+ });
56
+ export function isResSetAudiencePolicy(obj) {
57
+ return !(ResSetAudiencePolicy(obj) instanceof type.errors);
58
+ }
59
+ export const AudienceArmEntry = type({
60
+ ownerHandle: "string",
61
+ appSlug: "string",
62
+ state: AudienceArmState,
63
+ });
64
+ export const ReqListAudienceArms = type({
65
+ type: "'vibes.diy.req-list-audience-arms'",
66
+ auth: dashAuthType,
67
+ });
68
+ export function isReqListAudienceArms(obj) {
69
+ return !(ReqListAudienceArms(obj) instanceof type.errors);
70
+ }
71
+ export const ResListAudienceArms = type({
72
+ type: "'vibes.diy.res-list-audience-arms'",
73
+ policy: AudiencePolicy,
74
+ arms: AudienceArmEntry.array(),
75
+ });
76
+ export function isResListAudienceArms(obj) {
77
+ return !(ResListAudienceArms(obj) instanceof type.errors);
78
+ }
79
+ export function resolvePromptOutcome({ policy, sensitive, prior }) {
80
+ if (prior === "allow")
81
+ return "auto-allow";
82
+ if (prior === "deny")
83
+ return "silent-deny";
84
+ if (policy === "never-allow")
85
+ return "silent-deny";
86
+ if (policy === "always-allow" && sensitive === false)
87
+ return "auto-allow";
88
+ return "prompt";
89
+ }
90
+ //# sourceMappingURL=audience-arms-msg.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"audience-arms-msg.js","sourceRoot":"","sources":["../jsr/audience-arms-msg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAU3C,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC,kBAAkB,CAAC,CAAC;AAGzD,MAAM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,IAAI,EAAE,oCAAoC;IAC1C,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,gBAAgB,CAAC,KAAK,EAAE;CAC/B,CAAC,CAAC;AAEH,MAAM,UAAU,qBAAqB,CAAC,GAAY;IAChD,OAAO,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC5D,CAAC;AA6CD,MAAM,UAAU,oBAAoB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,KAAK,EAA4B;IACzF,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,YAAY,CAAC;IAC3C,IAAI,KAAK,KAAK,MAAM;QAAE,OAAO,aAAa,CAAC;IAC3C,IAAI,MAAM,KAAK,aAAa;QAAE,OAAO,aAAa,CAAC;IACnD,IAAI,MAAM,KAAK,cAAc,IAAI,SAAS,KAAK,KAAK;QAAE,OAAO,YAAY,CAAC;IAC1E,OAAO,QAAQ,CAAC;AAClB,CAAC"}
package/db-acls.d.ts CHANGED
@@ -4,7 +4,6 @@ export declare const dbAclSubject: import("arktype/internal/variants/string.ts")
4
4
  export declare const dbAcl: import("arktype/internal/variants/object.ts").ObjectType<{
5
5
  read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
6
6
  write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
7
- delete?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
8
7
  }, {}>;
9
8
  export declare function isDbAcl(obj: unknown): obj is DbAcl;
10
9
  export declare const COMMENTS_DB_NAME = "comments";
@@ -15,7 +14,6 @@ export declare const ActiveDbAcl: import("arktype/internal/variants/object.ts").
15
14
  acl: {
16
15
  read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
17
16
  write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
18
- delete?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
19
17
  };
20
18
  }, {}>;
21
19
  export type ActiveDbAcl = typeof ActiveDbAcl.infer;
package/db-acls.js CHANGED
@@ -3,7 +3,6 @@ export const dbAclSubject = type("'members' | 'editors' | 'submitters' | 'reader
3
3
  export const dbAcl = type({
4
4
  "read?": dbAclSubject.array(),
5
5
  "write?": dbAclSubject.array(),
6
- "delete?": dbAclSubject.array(),
7
6
  });
8
7
  export function isDbAcl(obj) {
9
8
  return !(dbAcl(obj) instanceof type.errors);
@@ -11,7 +10,6 @@ export function isDbAcl(obj) {
11
10
  export const COMMENTS_DB_NAME = "comments";
12
11
  export const COMMENTS_DEFAULT_ACL = {
13
12
  write: ["members"],
14
- delete: ["members"],
15
13
  };
16
14
  export const ActiveDbAcl = type({
17
15
  type: "'active.db-acl'",
package/db-acls.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"db-acls.js","sourceRoot":"","sources":["../jsr/db-acls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AA2B/B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,kDAAkD,CAAC,CAAC;AAErF,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,YAAY,CAAC,KAAK,EAAE;IAC7B,QAAQ,EAAE,YAAY,CAAC,KAAK,EAAE;IAC9B,SAAS,EAAE,YAAY,CAAC,KAAK,EAAE;CAChC,CAAC,CAAC;AACH,MAAM,UAAU,OAAO,CAAC,GAAY;IAClC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAM3C,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,KAAK,EAAE,CAAC,SAAS,CAAC;IAClB,MAAM,EAAE,CAAC,SAAS,CAAC;CACpB,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACX,CAAC,CAAC;AAEH,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
1
+ {"version":3,"file":"db-acls.js","sourceRoot":"","sources":["../jsr/db-acls.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AA2B/B,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,kDAAkD,CAAC,CAAC;AAMrF,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,YAAY,CAAC,KAAK,EAAE;IAC7B,QAAQ,EAAE,YAAY,CAAC,KAAK,EAAE;CAC/B,CAAC,CAAC;AACH,MAAM,UAAU,OAAO,CAAC,GAAY;IAClC,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9C,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,UAAU,CAAC;AAM3C,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,KAAK,EAAE,CAAC,SAAS,CAAC;CACnB,CAAC;AAIF,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,iBAAiB;IACvB,MAAM,EAAE,QAAQ;IAChB,GAAG,EAAE,KAAK;CACX,CAAC,CAAC;AAEH,MAAM,UAAU,aAAa,CAAC,GAAY;IACxC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AACpD,CAAC"}
@@ -0,0 +1,96 @@
1
+ export declare const DeveloperGrantState: import("arktype/internal/variants/string.ts").StringType<"active" | "revoked", {}>;
2
+ export type DeveloperGrantState = typeof DeveloperGrantState.infer;
3
+ export declare const ReqEnsureDeveloperGrant: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ type: "vibes.diy.req-ensure-developer-grant";
5
+ auth: {
6
+ type: "clerk" | "device-id" | "ucan";
7
+ token: string;
8
+ };
9
+ appSlug: string;
10
+ ownerHandle: string;
11
+ devHandle: string;
12
+ }, {}>;
13
+ export type ReqEnsureDeveloperGrant = typeof ReqEnsureDeveloperGrant.infer;
14
+ export declare function isReqEnsureDeveloperGrant(obj: unknown): obj is ReqEnsureDeveloperGrant;
15
+ export declare const ResEnsureDeveloperGrant: import("arktype/internal/variants/object.ts").ObjectType<{
16
+ type: "vibes.diy.res-ensure-developer-grant";
17
+ appSlug: string;
18
+ ownerHandle: string;
19
+ devHandle: string;
20
+ devUserId: string;
21
+ state: "active" | "revoked";
22
+ updated: string;
23
+ created: string;
24
+ }, {}>;
25
+ export type ResEnsureDeveloperGrant = typeof ResEnsureDeveloperGrant.infer;
26
+ export declare function isResEnsureDeveloperGrant(obj: unknown): obj is ResEnsureDeveloperGrant;
27
+ export declare const ReqRevokeDeveloperGrant: import("arktype/internal/variants/object.ts").ObjectType<{
28
+ type: "vibes.diy.req-revoke-developer-grant";
29
+ auth: {
30
+ type: "clerk" | "device-id" | "ucan";
31
+ token: string;
32
+ };
33
+ appSlug: string;
34
+ ownerHandle: string;
35
+ devHandle: string;
36
+ }, {}>;
37
+ export type ReqRevokeDeveloperGrant = typeof ReqRevokeDeveloperGrant.infer;
38
+ export declare function isReqRevokeDeveloperGrant(obj: unknown): obj is ReqRevokeDeveloperGrant;
39
+ export declare const ResRevokeDeveloperGrant: import("arktype/internal/variants/object.ts").ObjectType<{
40
+ type: "vibes.diy.res-revoke-developer-grant";
41
+ appSlug: string;
42
+ ownerHandle: string;
43
+ devHandle: string;
44
+ state: "revoked";
45
+ updated: string;
46
+ }, {}>;
47
+ export type ResRevokeDeveloperGrant = typeof ResRevokeDeveloperGrant.infer;
48
+ export declare function isResRevokeDeveloperGrant(obj: unknown): obj is ResRevokeDeveloperGrant;
49
+ export declare const ReqListDeveloperGrants: import("arktype/internal/variants/object.ts").ObjectType<{
50
+ appSlug: string;
51
+ ownerHandle: string;
52
+ auth: {
53
+ type: "clerk" | "device-id" | "ucan";
54
+ token: string;
55
+ };
56
+ pager: {
57
+ limit?: number | undefined;
58
+ cursor?: string | undefined;
59
+ };
60
+ type: "vibes.diy.req-list-developer-grants";
61
+ }, {}>;
62
+ export type ReqListDeveloperGrants = typeof ReqListDeveloperGrants.infer;
63
+ export declare function isReqListDeveloperGrants(obj: unknown): obj is ReqListDeveloperGrants;
64
+ export declare const ResListDeveloperGrants: import("arktype/internal/variants/object.ts").ObjectType<{
65
+ type: "vibes.diy.res-list-developer-grants";
66
+ appSlug: string;
67
+ ownerHandle: string;
68
+ items: {
69
+ devHandle: string;
70
+ devUserId: string;
71
+ state: "active" | "revoked";
72
+ updated: string;
73
+ created: string;
74
+ }[];
75
+ nextCursor?: string | undefined;
76
+ }, {}>;
77
+ export type ResListDeveloperGrants = typeof ResListDeveloperGrants.infer;
78
+ export declare function isResListDeveloperGrants(obj: unknown): obj is ResListDeveloperGrants;
79
+ export declare const ResDeveloperGrantOwnerError: import("arktype/internal/variants/object.ts").ObjectType<{
80
+ type: "vibes.diy.res-error";
81
+ error: {
82
+ message: string;
83
+ code: "developer-grant-owner-error";
84
+ };
85
+ }, {}>;
86
+ export type ResDeveloperGrantOwnerError = typeof ResDeveloperGrantOwnerError.infer;
87
+ export declare function isResDeveloperGrantOwnerError(obj: unknown): obj is ResDeveloperGrantOwnerError;
88
+ export declare const ResDeveloperGrantError: import("arktype/internal/variants/object.ts").ObjectType<{
89
+ type: "vibes.diy.res-error";
90
+ error: {
91
+ message: string;
92
+ code: "developer-grant-app-not-found" | "developer-grant-not-found" | "developer-grant-self-handle" | "developer-grant-unbound-handle";
93
+ };
94
+ }, {}>;
95
+ export type ResDeveloperGrantError = typeof ResDeveloperGrantError.infer;
96
+ export declare function isResDeveloperGrantError(obj: unknown): obj is ResDeveloperGrantError;
@@ -0,0 +1,87 @@
1
+ import { type } from "arktype";
2
+ import { dashAuthType, GrantListBase } from "./common.js";
3
+ export const DeveloperGrantState = type("'active' | 'revoked'");
4
+ export const ReqEnsureDeveloperGrant = type({
5
+ type: "'vibes.diy.req-ensure-developer-grant'",
6
+ auth: dashAuthType,
7
+ appSlug: "string",
8
+ ownerHandle: "string",
9
+ devHandle: "string",
10
+ });
11
+ export function isReqEnsureDeveloperGrant(obj) {
12
+ return !(ReqEnsureDeveloperGrant(obj) instanceof type.errors);
13
+ }
14
+ export const ResEnsureDeveloperGrant = type({
15
+ type: "'vibes.diy.res-ensure-developer-grant'",
16
+ appSlug: "string",
17
+ ownerHandle: "string",
18
+ devHandle: "string",
19
+ devUserId: "string",
20
+ state: DeveloperGrantState,
21
+ updated: "string",
22
+ created: "string",
23
+ });
24
+ export function isResEnsureDeveloperGrant(obj) {
25
+ return !(ResEnsureDeveloperGrant(obj) instanceof type.errors);
26
+ }
27
+ export const ReqRevokeDeveloperGrant = type({
28
+ type: "'vibes.diy.req-revoke-developer-grant'",
29
+ auth: dashAuthType,
30
+ appSlug: "string",
31
+ ownerHandle: "string",
32
+ devHandle: "string",
33
+ });
34
+ export function isReqRevokeDeveloperGrant(obj) {
35
+ return !(ReqRevokeDeveloperGrant(obj) instanceof type.errors);
36
+ }
37
+ export const ResRevokeDeveloperGrant = type({
38
+ type: "'vibes.diy.res-revoke-developer-grant'",
39
+ appSlug: "string",
40
+ ownerHandle: "string",
41
+ devHandle: "string",
42
+ state: "'revoked'",
43
+ updated: "string",
44
+ });
45
+ export function isResRevokeDeveloperGrant(obj) {
46
+ return !(ResRevokeDeveloperGrant(obj) instanceof type.errors);
47
+ }
48
+ export const ReqListDeveloperGrants = type({
49
+ type: "'vibes.diy.req-list-developer-grants'",
50
+ }).and(GrantListBase);
51
+ export function isReqListDeveloperGrants(obj) {
52
+ return !(ReqListDeveloperGrants(obj) instanceof type.errors);
53
+ }
54
+ export const ResListDeveloperGrants = type({
55
+ type: "'vibes.diy.res-list-developer-grants'",
56
+ appSlug: "string",
57
+ ownerHandle: "string",
58
+ items: type({
59
+ devHandle: "string",
60
+ devUserId: "string",
61
+ state: DeveloperGrantState,
62
+ updated: "string",
63
+ created: "string",
64
+ }).array(),
65
+ "nextCursor?": "string",
66
+ });
67
+ export function isResListDeveloperGrants(obj) {
68
+ return !(ResListDeveloperGrants(obj) instanceof type.errors);
69
+ }
70
+ export const ResDeveloperGrantOwnerError = type({
71
+ type: "'vibes.diy.res-error'",
72
+ error: type({ message: "string", code: "'developer-grant-owner-error'" }),
73
+ });
74
+ export function isResDeveloperGrantOwnerError(obj) {
75
+ return !(ResDeveloperGrantOwnerError(obj) instanceof type.errors);
76
+ }
77
+ export const ResDeveloperGrantError = type({
78
+ type: "'vibes.diy.res-error'",
79
+ error: type({
80
+ message: "string",
81
+ code: "'developer-grant-unbound-handle' | 'developer-grant-self-handle' | 'developer-grant-not-found' | 'developer-grant-app-not-found'",
82
+ }),
83
+ });
84
+ export function isResDeveloperGrantError(obj) {
85
+ return !(ResDeveloperGrantError(obj) instanceof type.errors);
86
+ }
87
+ //# sourceMappingURL=developer-grant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developer-grant.js","sourceRoot":"","sources":["../jsr/developer-grant.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAU1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC,sBAAsB,CAAC,CAAC;AAIhE,MAAM,CAAC,MAAM,uBAAuB,GAAG,IAAI,CAAC;IAC1C,IAAI,EAAE,wCAAwC;IAC9C,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,QAAQ;IACjB,WAAW,EAAE,QAAQ;IACrB,SAAS,EAAE,QAAQ;CACpB,CAAC,CAAC;AAEH,MAAM,UAAU,yBAAyB,CAAC,GAAY;IACpD,OAAO,CAAC,CAAC,uBAAuB,CAAC,GAAG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,CAAC,GAAY;IACnD,OAAO,CAAC,CAAC,sBAAsB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC/D,CAAC"}
package/index.d.ts CHANGED
@@ -9,6 +9,9 @@ export * from "./cached-suggestion.js";
9
9
  export * from "./settings.js";
10
10
  export * from "./invite-flow.js";
11
11
  export * from "./request-access.js";
12
+ export * from "./developer-grant.js";
13
+ export * from "./social-msg.js";
14
+ export * from "./audience-arms-msg.js";
12
15
  export * from "./vibes-types.js";
13
16
  export * from "./screen-shotter.js";
14
17
  export * from "./vibes-diy-api.js";
@@ -24,6 +27,7 @@ export * from "./billing-msg.js";
24
27
  export * from "./asset.js";
25
28
  export * from "./report.js";
26
29
  export * from "./home-feed.js";
30
+ export * from "./related-vibes.js";
27
31
  export * from "./direct-channel.js";
28
32
  export * from "./notifications.js";
29
33
  export * from "./email-unsubscribe.js";
package/index.js CHANGED
@@ -8,6 +8,9 @@ export * from "./cached-suggestion.js";
8
8
  export * from "./settings.js";
9
9
  export * from "./invite-flow.js";
10
10
  export * from "./request-access.js";
11
+ export * from "./developer-grant.js";
12
+ export * from "./social-msg.js";
13
+ export * from "./audience-arms-msg.js";
11
14
  export * from "./vibes-types.js";
12
15
  export * from "./screen-shotter.js";
13
16
  export * from "./vibes-diy-api.js";
@@ -23,6 +26,7 @@ export * from "./billing-msg.js";
23
26
  export * from "./asset.js";
24
27
  export * from "./report.js";
25
28
  export * from "./home-feed.js";
29
+ export * from "./related-vibes.js";
26
30
  export * from "./direct-channel.js";
27
31
  export * from "./notifications.js";
28
32
  export * from "./email-unsubscribe.js";
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../jsr/index.ts"],"names":[],"mappings":"AAEA,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc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kB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAE5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAE1B,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAQlC,MAAM,UAAU,eAAe,CAAC,MAAmB;IACjD,OAAO,MAAM,CAAC,IAAI,KAAK,UAAU,CAAC;AACpC,CAAC;AACD,MAAM,UAAU,gBAAgB,CAAC,MAAmB;IAClD,OAAO,MAAM,CAAC,IAAI,KAAK,WAAW,CAAC;AACrC,CAAC;AAUD,MAAM,UAAU,qBAAqB,CAAC,MAAmB;IACvD,OAAO,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC;AAC1C,CAAC"}
package/invite.d.ts CHANGED
@@ -625,6 +625,24 @@ export declare const ActiveAvatar: import("arktype/internal/variants/object.ts")
625
625
  }, {}>;
626
626
  export type ActiveAvatar = typeof ActiveAvatar.infer;
627
627
  export declare function isActiveAvatar(obj: unknown): obj is ActiveAvatar;
628
+ export declare const ActiveSocial: import("arktype/internal/variants/object.ts").ObjectType<{
629
+ type: "active.social";
630
+ private: boolean;
631
+ }, {}>;
632
+ export type ActiveSocial = typeof ActiveSocial.infer;
633
+ export declare function isActiveSocial(obj: unknown): obj is ActiveSocial;
634
+ export declare const ActiveAudiencePolicy: import("arktype/internal/variants/object.ts").ObjectType<{
635
+ type: "active.audience-policy";
636
+ policy: "always-allow" | "ask" | "never-allow";
637
+ }, {}>;
638
+ export type ActiveAudiencePolicy = typeof ActiveAudiencePolicy.infer;
639
+ export declare function isActiveAudiencePolicy(obj: unknown): obj is ActiveAudiencePolicy;
640
+ export declare const ActivePrivacySensitive: import("arktype/internal/variants/object.ts").ObjectType<{
641
+ type: "active.privacy-sensitive";
642
+ sensitive: boolean;
643
+ }, {}>;
644
+ export type ActivePrivacySensitive = typeof ActivePrivacySensitive.infer;
645
+ export declare function isActivePrivacySensitive(obj: unknown): obj is ActivePrivacySensitive;
628
646
  export declare const ActiveIconDescription: import("arktype/internal/variants/object.ts").ObjectType<{
629
647
  type: "active.icon-description";
630
648
  description: string;
@@ -969,6 +987,15 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
969
987
  created: string;
970
988
  }[];
971
989
  currentCid: string;
990
+ } | {
991
+ type: "active.social";
992
+ private: boolean;
993
+ } | {
994
+ type: "active.audience-policy";
995
+ policy: "always-allow" | "ask" | "never-allow";
996
+ } | {
997
+ type: "active.privacy-sensitive";
998
+ sensitive: boolean;
972
999
  } | {
973
1000
  type: "active.icon-description";
974
1001
  description: string;
@@ -1045,7 +1072,6 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
1045
1072
  acl: {
1046
1073
  read?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1047
1074
  write?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1048
- delete?: ("editors" | "members" | "readers" | "submitters")[] | undefined;
1049
1075
  };
1050
1076
  } | {
1051
1077
  type: "active.cached-suggestion";
@@ -1061,6 +1087,19 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
1061
1087
  targetAppSlug?: string | undefined;
1062
1088
  approvedBy: string;
1063
1089
  approvedAt: string;
1090
+ } | {
1091
+ type: "active.recommended-curated";
1092
+ items: {
1093
+ id: string;
1094
+ ownerHandle: string;
1095
+ appSlug: string;
1096
+ }[];
1097
+ } | {
1098
+ type: "active.recommended-masked";
1099
+ items: {
1100
+ ownerHandle: string;
1101
+ appSlug: string;
1102
+ }[];
1064
1103
  }, {}>;
1065
1104
  export declare function isActiveAcl(obj: unknown): obj is typeof ActiveACL.infer;
1066
1105
  export type ActiveEntry = typeof ActiveEntry.infer;
package/invite.js CHANGED
@@ -4,6 +4,7 @@ import { Model } from "./chat.js";
4
4
  import { Role } from "./common.js";
5
5
  import { ActiveDbAcl } from "./db-acls.js";
6
6
  import { ActiveCachedSuggestion, ActiveCachedSuggestionBless } from "./cached-suggestion.js";
7
+ import { ActiveRecommendedCurated, ActiveRecommendedMasked } from "./related-vibes.js";
7
8
  export const KVString = type({ key: "string", value: "string" });
8
9
  export function toKVString(record) {
9
10
  return Object.entries(record).map(([key, value]) => ({ key, value }));
@@ -262,6 +263,27 @@ export const ActiveAvatar = type({
262
263
  export function isActiveAvatar(obj) {
263
264
  return !(ActiveAvatar(obj) instanceof type.errors);
264
265
  }
266
+ export const ActiveSocial = type({
267
+ type: "'active.social'",
268
+ private: "boolean",
269
+ });
270
+ export function isActiveSocial(obj) {
271
+ return !(ActiveSocial(obj) instanceof type.errors);
272
+ }
273
+ export const ActiveAudiencePolicy = type({
274
+ type: "'active.audience-policy'",
275
+ policy: "'ask' | 'always-allow' | 'never-allow'",
276
+ });
277
+ export function isActiveAudiencePolicy(obj) {
278
+ return !(ActiveAudiencePolicy(obj) instanceof type.errors);
279
+ }
280
+ export const ActivePrivacySensitive = type({
281
+ type: "'active.privacy-sensitive'",
282
+ sensitive: "boolean",
283
+ });
284
+ export function isActivePrivacySensitive(obj) {
285
+ return !(ActivePrivacySensitive(obj) instanceof type.errors);
286
+ }
265
287
  export const ActiveIconDescription = type({
266
288
  type: "'active.icon-description'",
267
289
  description: "string",
@@ -343,6 +365,9 @@ export const ActiveEntry = EnablePublicAccess.or(ActiveRequest)
343
365
  .or(ActiveCodegenTheme)
344
366
  .or(ActiveIcon)
345
367
  .or(ActiveAvatar)
368
+ .or(ActiveSocial)
369
+ .or(ActiveAudiencePolicy)
370
+ .or(ActivePrivacySensitive)
346
371
  .or(ActiveIconDescription)
347
372
  .or(ActiveEnrichedPrompt)
348
373
  .or(ActiveModelSetting)
@@ -351,7 +376,9 @@ export const ActiveEntry = EnablePublicAccess.or(ActiveRequest)
351
376
  .or(ActiveBackend)
352
377
  .or(ActiveDbAcl)
353
378
  .or(ActiveCachedSuggestion)
354
- .or(ActiveCachedSuggestionBless);
379
+ .or(ActiveCachedSuggestionBless)
380
+ .or(ActiveRecommendedCurated)
381
+ .or(ActiveRecommendedMasked);
355
382
  export function isActiveAcl(obj) {
356
383
  return !(ActiveACL(obj) instanceof type.errors);
357
384
  }