@vibes.diy/api-types 2.0.8 → 2.0.10
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/app-documents.d.ts +30 -6
- package/app-documents.js +26 -3
- package/app-documents.js.map +1 -1
- package/app.d.ts +1 -1
- package/app.js +1 -1
- package/app.js.map +1 -1
- package/cf-env.d.ts +1 -0
- package/chat.d.ts +79 -22
- package/chat.js +1 -0
- package/chat.js.map +1 -1
- package/common.d.ts +1 -1
- package/common.js +1 -1
- package/common.js.map +1 -1
- package/invite-flow.d.ts +21 -21
- package/invite.d.ts +28 -17
- package/invite.js +5 -4
- package/invite.js.map +1 -1
- package/package.json +2 -2
- package/prompt.d.ts +14 -4
- package/request-access.d.ts +19 -19
- package/settings.d.ts +44 -14
- package/settings.js +2 -2
- package/settings.js.map +1 -1
- package/vibes-diy-api.d.ts +3 -2
- package/vibes-diy-api.js.map +1 -1
- package/vibes-diy-serv-ctx.d.ts +4 -0
- package/vibes-diy-serv-ctx.js +2 -0
- package/vibes-diy-serv-ctx.js.map +1 -1
package/invite-flow.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export declare const ResKeyGrantItem: import("arktype/internal/variants/object.t
|
|
|
106
106
|
};
|
|
107
107
|
} | {
|
|
108
108
|
type: "app.acl.active.request";
|
|
109
|
-
role: "editor" | "viewer";
|
|
109
|
+
role: "editor" | "submitter" | "viewer";
|
|
110
110
|
state: "approved";
|
|
111
111
|
request: {
|
|
112
112
|
key: string;
|
|
@@ -126,7 +126,7 @@ export declare const ResKeyGrantItem: import("arktype/internal/variants/object.t
|
|
|
126
126
|
};
|
|
127
127
|
} | {
|
|
128
128
|
type: "app.acl.active.request";
|
|
129
|
-
role: "editor" | "viewer";
|
|
129
|
+
role: "editor" | "submitter" | "viewer";
|
|
130
130
|
state: "rejected";
|
|
131
131
|
request: {
|
|
132
132
|
key: string;
|
|
@@ -266,7 +266,7 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
|
|
|
266
266
|
};
|
|
267
267
|
} | {
|
|
268
268
|
type: "app.acl.active.request";
|
|
269
|
-
role: "editor" | "viewer";
|
|
269
|
+
role: "editor" | "submitter" | "viewer";
|
|
270
270
|
state: "approved";
|
|
271
271
|
request: {
|
|
272
272
|
key: string;
|
|
@@ -286,7 +286,7 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
|
|
|
286
286
|
};
|
|
287
287
|
} | {
|
|
288
288
|
type: "app.acl.active.request";
|
|
289
|
-
role: "editor" | "viewer";
|
|
289
|
+
role: "editor" | "submitter" | "viewer";
|
|
290
290
|
state: "rejected";
|
|
291
291
|
request: {
|
|
292
292
|
key: string;
|
|
@@ -419,7 +419,7 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
419
419
|
};
|
|
420
420
|
} | {
|
|
421
421
|
type: "app.acl.active.request";
|
|
422
|
-
role: "editor" | "viewer";
|
|
422
|
+
role: "editor" | "submitter" | "viewer";
|
|
423
423
|
state: "approved";
|
|
424
424
|
request: {
|
|
425
425
|
key: string;
|
|
@@ -439,7 +439,7 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
439
439
|
};
|
|
440
440
|
} | {
|
|
441
441
|
type: "app.acl.active.request";
|
|
442
|
-
role: "editor" | "viewer";
|
|
442
|
+
role: "editor" | "submitter" | "viewer";
|
|
443
443
|
state: "rejected";
|
|
444
444
|
request: {
|
|
445
445
|
key: string;
|
|
@@ -561,7 +561,7 @@ export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
561
561
|
};
|
|
562
562
|
} | {
|
|
563
563
|
type: "app.acl.active.request";
|
|
564
|
-
role: "editor" | "viewer";
|
|
564
|
+
role: "editor" | "submitter" | "viewer";
|
|
565
565
|
state: "approved";
|
|
566
566
|
request: {
|
|
567
567
|
key: string;
|
|
@@ -581,7 +581,7 @@ export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
581
581
|
};
|
|
582
582
|
} | {
|
|
583
583
|
type: "app.acl.active.request";
|
|
584
|
-
role: "editor" | "viewer";
|
|
584
|
+
role: "editor" | "submitter" | "viewer";
|
|
585
585
|
state: "rejected";
|
|
586
586
|
request: {
|
|
587
587
|
key: string;
|
|
@@ -640,7 +640,7 @@ export declare const ResRedeemInviteOK: import("arktype/internal/variants/object
|
|
|
640
640
|
appSlug: string;
|
|
641
641
|
userSlug: string;
|
|
642
642
|
emailKey: string;
|
|
643
|
-
role: "editor" | "viewer";
|
|
643
|
+
role: "editor" | "submitter" | "viewer";
|
|
644
644
|
state: "accepted";
|
|
645
645
|
}, {}>;
|
|
646
646
|
export type ResRedeemInviteOK = typeof ResRedeemInviteOK.infer;
|
|
@@ -658,7 +658,7 @@ export declare const ResRedeemInvite: import("arktype/internal/variants/object.t
|
|
|
658
658
|
appSlug: string;
|
|
659
659
|
userSlug: string;
|
|
660
660
|
emailKey: string;
|
|
661
|
-
role: "editor" | "viewer";
|
|
661
|
+
role: "editor" | "submitter" | "viewer";
|
|
662
662
|
state: "accepted";
|
|
663
663
|
} | {
|
|
664
664
|
type: "vibes.diy.error";
|
|
@@ -673,7 +673,7 @@ export declare const InviteGrantItem: import("arktype/internal/variants/object.t
|
|
|
673
673
|
userSlug: string;
|
|
674
674
|
emailKey: string;
|
|
675
675
|
state: "accepted" | "pending" | "revoked";
|
|
676
|
-
role: "editor" | "viewer";
|
|
676
|
+
role: "editor" | "submitter" | "viewer";
|
|
677
677
|
tokenOrGrantUserId: string;
|
|
678
678
|
foreignInfo: {
|
|
679
679
|
givenEmail?: string | undefined;
|
|
@@ -715,14 +715,14 @@ export declare const ReqCreateInvite: import("arktype/internal/variants/object.t
|
|
|
715
715
|
appSlug: string;
|
|
716
716
|
userSlug: string;
|
|
717
717
|
invitedEmail: string;
|
|
718
|
-
role: "editor" | "viewer";
|
|
718
|
+
role: "editor" | "submitter" | "viewer";
|
|
719
719
|
}, {}>;
|
|
720
720
|
export type ReqCreateInvite = typeof ReqCreateInvite.infer;
|
|
721
721
|
export declare function isReqCreateInvite(obj: unknown): obj is ReqCreateInvite;
|
|
722
722
|
export declare const ResCreateInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
723
723
|
emailKey: string;
|
|
724
724
|
state: "accepted" | "pending" | "revoked";
|
|
725
|
-
role: "editor" | "viewer";
|
|
725
|
+
role: "editor" | "submitter" | "viewer";
|
|
726
726
|
tokenOrGrantUserId: string;
|
|
727
727
|
foreignInfo: {
|
|
728
728
|
givenEmail?: string | undefined;
|
|
@@ -796,7 +796,7 @@ export declare const ResHasAccessInviteAccepted: import("arktype/internal/varian
|
|
|
796
796
|
appSlug: string;
|
|
797
797
|
userSlug: string;
|
|
798
798
|
state: "accepted";
|
|
799
|
-
role: "editor" | "viewer";
|
|
799
|
+
role: "editor" | "submitter" | "viewer";
|
|
800
800
|
tokenOrGrantUserId: string;
|
|
801
801
|
}, {}>;
|
|
802
802
|
export type ResHasAccessInviteAccepted = typeof ResHasAccessInviteAccepted.infer;
|
|
@@ -806,7 +806,7 @@ export declare const ResHasAccessInvitePending: import("arktype/internal/variant
|
|
|
806
806
|
appSlug: string;
|
|
807
807
|
userSlug: string;
|
|
808
808
|
state: "pending";
|
|
809
|
-
role: "editor" | "viewer";
|
|
809
|
+
role: "editor" | "submitter" | "viewer";
|
|
810
810
|
tokenOrGrantUserId: string;
|
|
811
811
|
}, {}>;
|
|
812
812
|
export type ResHasAccessInvitePending = typeof ResHasAccessInvitePending.infer;
|
|
@@ -826,14 +826,14 @@ export declare const ResHasAccessInvite: import("arktype/internal/variants/objec
|
|
|
826
826
|
appSlug: string;
|
|
827
827
|
userSlug: string;
|
|
828
828
|
state: "accepted";
|
|
829
|
-
role: "editor" | "viewer";
|
|
829
|
+
role: "editor" | "submitter" | "viewer";
|
|
830
830
|
tokenOrGrantUserId: string;
|
|
831
831
|
} | {
|
|
832
832
|
type: "vibes.diy.res-has-access-invite";
|
|
833
833
|
appSlug: string;
|
|
834
834
|
userSlug: string;
|
|
835
835
|
state: "pending";
|
|
836
|
-
role: "editor" | "viewer";
|
|
836
|
+
role: "editor" | "submitter" | "viewer";
|
|
837
837
|
tokenOrGrantUserId: string;
|
|
838
838
|
}, {}>;
|
|
839
839
|
export type ResHasAccessInvite = typeof ResHasAccessInvite.infer;
|
|
@@ -847,7 +847,7 @@ export declare const ReqInviteSetRole: import("arktype/internal/variants/object.
|
|
|
847
847
|
appSlug: string;
|
|
848
848
|
userSlug: string;
|
|
849
849
|
emailKey: string;
|
|
850
|
-
role: "editor" | "viewer";
|
|
850
|
+
role: "editor" | "submitter" | "viewer";
|
|
851
851
|
}, {}>;
|
|
852
852
|
export type ReqInviteSetRole = typeof ReqInviteSetRole.infer;
|
|
853
853
|
export declare function isReqInviteSetRole(obj: unknown): obj is ReqInviteSetRole;
|
|
@@ -856,7 +856,7 @@ export declare const ResInviteSetRole: import("arktype/internal/variants/object.
|
|
|
856
856
|
appSlug: string;
|
|
857
857
|
userSlug: string;
|
|
858
858
|
emailKey: string;
|
|
859
|
-
role: "editor" | "viewer";
|
|
859
|
+
role: "editor" | "submitter" | "viewer";
|
|
860
860
|
}, {}>;
|
|
861
861
|
export type ResInviteSetRole = typeof ResInviteSetRole.infer;
|
|
862
862
|
export declare function isResInviteSetRole(obj: unknown): obj is ResInviteSetRole;
|
|
@@ -906,7 +906,7 @@ export declare const ResListInviteGrants: import("arktype/internal/variants/obje
|
|
|
906
906
|
userSlug: string;
|
|
907
907
|
emailKey: string;
|
|
908
908
|
state: "accepted" | "pending" | "revoked";
|
|
909
|
-
role: "editor" | "viewer";
|
|
909
|
+
role: "editor" | "submitter" | "viewer";
|
|
910
910
|
tokenOrGrantUserId: string;
|
|
911
911
|
foreignInfo: {
|
|
912
912
|
givenEmail?: string | undefined;
|
|
@@ -951,7 +951,7 @@ export declare const evtInviteGrant: import("arktype/internal/variants/object.ts
|
|
|
951
951
|
userSlug: string;
|
|
952
952
|
emailKey: string;
|
|
953
953
|
state: "accepted" | "pending" | "revoked";
|
|
954
|
-
role: "editor" | "viewer";
|
|
954
|
+
role: "editor" | "submitter" | "viewer";
|
|
955
955
|
tokenOrGrantUserId: string;
|
|
956
956
|
foreignInfo: {
|
|
957
957
|
givenEmail?: string | undefined;
|
package/invite.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare const AIParams: import("arktype/internal/variants/object.ts").Obj
|
|
|
12
12
|
description: string;
|
|
13
13
|
featured?: boolean | undefined;
|
|
14
14
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
15
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
15
16
|
};
|
|
16
17
|
apiKey?: string | undefined;
|
|
17
18
|
}, {}>;
|
|
@@ -37,14 +38,14 @@ export declare const RawEmail: import("arktype/internal/variants/object.ts").Obj
|
|
|
37
38
|
export type RawEmail = typeof RawEmail.infer;
|
|
38
39
|
export declare const EmailOpsBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
39
40
|
dst: string;
|
|
40
|
-
role: "editor" | "viewer";
|
|
41
|
+
role: "editor" | "submitter" | "viewer";
|
|
41
42
|
appSlug: string;
|
|
42
43
|
userSlug: string;
|
|
43
44
|
fsId?: string | undefined;
|
|
44
45
|
}, {}>;
|
|
45
46
|
export declare const EmailOpsInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
46
47
|
dst: string;
|
|
47
|
-
role: "editor" | "viewer";
|
|
48
|
+
role: "editor" | "submitter" | "viewer";
|
|
48
49
|
appSlug: string;
|
|
49
50
|
userSlug: string;
|
|
50
51
|
fsId?: string | undefined;
|
|
@@ -55,7 +56,7 @@ export type EmailOpsInvite = typeof EmailOpsInvite.infer;
|
|
|
55
56
|
export declare function isEmailOpsInvite(obj: unknown): obj is EmailOpsInvite;
|
|
56
57
|
export declare const EmailOpsInviteRevoked: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
57
58
|
dst: string;
|
|
58
|
-
role: "editor" | "viewer";
|
|
59
|
+
role: "editor" | "submitter" | "viewer";
|
|
59
60
|
appSlug: string;
|
|
60
61
|
userSlug: string;
|
|
61
62
|
fsId?: string | undefined;
|
|
@@ -63,7 +64,7 @@ export declare const EmailOpsInviteRevoked: import("arktype/internal/variants/ob
|
|
|
63
64
|
}, {}>;
|
|
64
65
|
export declare const EmailOpsRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
65
66
|
dst: string;
|
|
66
|
-
role: "editor" | "viewer";
|
|
67
|
+
role: "editor" | "submitter" | "viewer";
|
|
67
68
|
appSlug: string;
|
|
68
69
|
userSlug: string;
|
|
69
70
|
fsId?: string | undefined;
|
|
@@ -73,7 +74,7 @@ export type EmailOpsRequest = typeof EmailOpsRequest.infer;
|
|
|
73
74
|
export declare function isEmailOpsRequest(obj: unknown): obj is EmailOpsRequest;
|
|
74
75
|
export declare const EmailOps: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
75
76
|
dst: string;
|
|
76
|
-
role: "editor" | "viewer";
|
|
77
|
+
role: "editor" | "submitter" | "viewer";
|
|
77
78
|
appSlug: string;
|
|
78
79
|
userSlug: string;
|
|
79
80
|
fsId?: string | undefined;
|
|
@@ -81,14 +82,14 @@ export declare const EmailOps: import("arktype/internal/variants/object.ts").Obj
|
|
|
81
82
|
token: string;
|
|
82
83
|
} | {
|
|
83
84
|
dst: string;
|
|
84
|
-
role: "editor" | "viewer";
|
|
85
|
+
role: "editor" | "submitter" | "viewer";
|
|
85
86
|
appSlug: string;
|
|
86
87
|
userSlug: string;
|
|
87
88
|
fsId?: string | undefined;
|
|
88
89
|
action: "invite-revoked";
|
|
89
90
|
} | {
|
|
90
91
|
dst: string;
|
|
91
|
-
role: "editor" | "viewer";
|
|
92
|
+
role: "editor" | "submitter" | "viewer";
|
|
92
93
|
appSlug: string;
|
|
93
94
|
userSlug: string;
|
|
94
95
|
fsId?: string | undefined;
|
|
@@ -109,7 +110,7 @@ export declare function isEnablePublicAccess(obj: unknown): obj is EnablePublicA
|
|
|
109
110
|
export declare const EnableRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
110
111
|
type: "app.request";
|
|
111
112
|
enable: boolean;
|
|
112
|
-
|
|
113
|
+
autoAcceptRole?: "editor" | "submitter" | "viewer" | undefined;
|
|
113
114
|
}, {}>;
|
|
114
115
|
export type EnableRequest = typeof EnableRequest.infer;
|
|
115
116
|
export declare function isEnableRequest(obj: unknown): obj is EnableRequest;
|
|
@@ -136,7 +137,7 @@ export type ActiveRequestPending = typeof ActiveRequestPending.infer;
|
|
|
136
137
|
export declare function isActiveRequestPending(obj: unknown): obj is typeof ActiveRequestPending.infer;
|
|
137
138
|
export declare const ActiveRequestApproved: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
138
139
|
type: "app.acl.active.request";
|
|
139
|
-
role: "editor" | "viewer";
|
|
140
|
+
role: "editor" | "submitter" | "viewer";
|
|
140
141
|
state: "approved";
|
|
141
142
|
request: {
|
|
142
143
|
key: string;
|
|
@@ -159,7 +160,7 @@ export type ActiveRequestApproved = typeof ActiveRequestApproved.infer;
|
|
|
159
160
|
export declare function isActiveRequestApproved(obj: unknown): obj is typeof ActiveRequestApproved.infer;
|
|
160
161
|
export declare const ActiveRequestRejected: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
161
162
|
type: "app.acl.active.request";
|
|
162
|
-
role: "editor" | "viewer";
|
|
163
|
+
role: "editor" | "submitter" | "viewer";
|
|
163
164
|
state: "rejected";
|
|
164
165
|
request: {
|
|
165
166
|
key: string;
|
|
@@ -189,7 +190,7 @@ export declare const ActiveRequest: import("arktype/internal/variants/object.ts"
|
|
|
189
190
|
};
|
|
190
191
|
} | {
|
|
191
192
|
type: "app.acl.active.request";
|
|
192
|
-
role: "editor" | "viewer";
|
|
193
|
+
role: "editor" | "submitter" | "viewer";
|
|
193
194
|
state: "approved";
|
|
194
195
|
request: {
|
|
195
196
|
key: string;
|
|
@@ -209,7 +210,7 @@ export declare const ActiveRequest: import("arktype/internal/variants/object.ts"
|
|
|
209
210
|
};
|
|
210
211
|
} | {
|
|
211
212
|
type: "app.acl.active.request";
|
|
212
|
-
role: "editor" | "viewer";
|
|
213
|
+
role: "editor" | "submitter" | "viewer";
|
|
213
214
|
state: "rejected";
|
|
214
215
|
request: {
|
|
215
216
|
key: string;
|
|
@@ -432,7 +433,7 @@ export declare const ActiveACL: import("arktype/internal/variants/object.ts").Ob
|
|
|
432
433
|
};
|
|
433
434
|
} | {
|
|
434
435
|
type: "app.acl.active.request";
|
|
435
|
-
role: "editor" | "viewer";
|
|
436
|
+
role: "editor" | "submitter" | "viewer";
|
|
436
437
|
state: "approved";
|
|
437
438
|
request: {
|
|
438
439
|
key: string;
|
|
@@ -452,7 +453,7 @@ export declare const ActiveACL: import("arktype/internal/variants/object.ts").Ob
|
|
|
452
453
|
};
|
|
453
454
|
} | {
|
|
454
455
|
type: "app.acl.active.request";
|
|
455
|
-
role: "editor" | "viewer";
|
|
456
|
+
role: "editor" | "submitter" | "viewer";
|
|
456
457
|
state: "rejected";
|
|
457
458
|
request: {
|
|
458
459
|
key: string;
|
|
@@ -575,6 +576,7 @@ export declare const ActiveModelSettingBase: import("arktype/internal/variants/o
|
|
|
575
576
|
description: string;
|
|
576
577
|
featured?: boolean | undefined;
|
|
577
578
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
579
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
578
580
|
};
|
|
579
581
|
apiKey?: string | undefined;
|
|
580
582
|
};
|
|
@@ -588,6 +590,7 @@ export declare const ActiveModelSettingChat: import("arktype/internal/variants/o
|
|
|
588
590
|
description: string;
|
|
589
591
|
featured?: boolean | undefined;
|
|
590
592
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
593
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
591
594
|
};
|
|
592
595
|
apiKey?: string | undefined;
|
|
593
596
|
};
|
|
@@ -604,6 +607,7 @@ export declare const ActiveModelSettingApp: import("arktype/internal/variants/ob
|
|
|
604
607
|
description: string;
|
|
605
608
|
featured?: boolean | undefined;
|
|
606
609
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
610
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
607
611
|
};
|
|
608
612
|
apiKey?: string | undefined;
|
|
609
613
|
};
|
|
@@ -620,6 +624,7 @@ export declare const ActiveModelSettingImg: import("arktype/internal/variants/ob
|
|
|
620
624
|
description: string;
|
|
621
625
|
featured?: boolean | undefined;
|
|
622
626
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
627
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
623
628
|
};
|
|
624
629
|
apiKey?: string | undefined;
|
|
625
630
|
};
|
|
@@ -636,6 +641,7 @@ export declare const ActiveModelSetting: import("arktype/internal/variants/objec
|
|
|
636
641
|
description: string;
|
|
637
642
|
featured?: boolean | undefined;
|
|
638
643
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
644
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
639
645
|
};
|
|
640
646
|
apiKey?: string | undefined;
|
|
641
647
|
};
|
|
@@ -649,6 +655,7 @@ export declare const ActiveModelSetting: import("arktype/internal/variants/objec
|
|
|
649
655
|
description: string;
|
|
650
656
|
featured?: boolean | undefined;
|
|
651
657
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
658
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
652
659
|
};
|
|
653
660
|
apiKey?: string | undefined;
|
|
654
661
|
};
|
|
@@ -662,6 +669,7 @@ export declare const ActiveModelSetting: import("arktype/internal/variants/objec
|
|
|
662
669
|
description: string;
|
|
663
670
|
featured?: boolean | undefined;
|
|
664
671
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
672
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
665
673
|
};
|
|
666
674
|
apiKey?: string | undefined;
|
|
667
675
|
};
|
|
@@ -688,7 +696,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
|
|
|
688
696
|
} | {
|
|
689
697
|
type: "app.request";
|
|
690
698
|
enable: boolean;
|
|
691
|
-
|
|
699
|
+
autoAcceptRole?: "editor" | "submitter" | "viewer" | undefined;
|
|
692
700
|
} | {
|
|
693
701
|
type: "app.acl.active.request";
|
|
694
702
|
role: "viewer";
|
|
@@ -702,7 +710,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
|
|
|
702
710
|
};
|
|
703
711
|
} | {
|
|
704
712
|
type: "app.acl.active.request";
|
|
705
|
-
role: "editor" | "viewer";
|
|
713
|
+
role: "editor" | "submitter" | "viewer";
|
|
706
714
|
state: "approved";
|
|
707
715
|
request: {
|
|
708
716
|
key: string;
|
|
@@ -722,7 +730,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
|
|
|
722
730
|
};
|
|
723
731
|
} | {
|
|
724
732
|
type: "app.acl.active.request";
|
|
725
|
-
role: "editor" | "viewer";
|
|
733
|
+
role: "editor" | "submitter" | "viewer";
|
|
726
734
|
state: "rejected";
|
|
727
735
|
request: {
|
|
728
736
|
key: string;
|
|
@@ -837,6 +845,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
|
|
|
837
845
|
description: string;
|
|
838
846
|
featured?: boolean | undefined;
|
|
839
847
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
848
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
840
849
|
};
|
|
841
850
|
apiKey?: string | undefined;
|
|
842
851
|
};
|
|
@@ -850,6 +859,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
|
|
|
850
859
|
description: string;
|
|
851
860
|
featured?: boolean | undefined;
|
|
852
861
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
862
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
853
863
|
};
|
|
854
864
|
apiKey?: string | undefined;
|
|
855
865
|
};
|
|
@@ -863,6 +873,7 @@ export declare const ActiveEntry: import("arktype/internal/variants/object.ts").
|
|
|
863
873
|
description: string;
|
|
864
874
|
featured?: boolean | undefined;
|
|
865
875
|
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
876
|
+
supports?: ("app" | "chat" | "img")[] | undefined;
|
|
866
877
|
};
|
|
867
878
|
apiKey?: string | undefined;
|
|
868
879
|
};
|
package/invite.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type } from "arktype";
|
|
2
2
|
import { CoercedDate } from "@vibes.diy/call-ai-v2";
|
|
3
3
|
import { Model } from "./chat.js";
|
|
4
|
+
import { Role } from "./common.js";
|
|
4
5
|
export const KVString = type({ key: "string", value: "string" });
|
|
5
6
|
export function toKVString(record) {
|
|
6
7
|
return Object.entries(record).map(([key, value]) => ({ key, value }));
|
|
@@ -27,7 +28,7 @@ export const RawEmail = type({
|
|
|
27
28
|
}).and(RawEmailWithoutFrom);
|
|
28
29
|
export const EmailOpsBase = type({
|
|
29
30
|
dst: "string",
|
|
30
|
-
role:
|
|
31
|
+
role: Role,
|
|
31
32
|
appSlug: "string",
|
|
32
33
|
userSlug: "string",
|
|
33
34
|
"fsId?": "string",
|
|
@@ -63,7 +64,7 @@ export function isEnablePublicAccess(obj) {
|
|
|
63
64
|
export const EnableRequest = type({
|
|
64
65
|
type: "'app.request'",
|
|
65
66
|
enable: "boolean",
|
|
66
|
-
"
|
|
67
|
+
"autoAcceptRole?": Role,
|
|
67
68
|
});
|
|
68
69
|
export function isEnableRequest(obj) {
|
|
69
70
|
return !(EnableRequest(obj) instanceof type.errors);
|
|
@@ -91,7 +92,7 @@ const grant = type({
|
|
|
91
92
|
});
|
|
92
93
|
export const ActiveRequestApproved = type({
|
|
93
94
|
type: "'app.acl.active.request'",
|
|
94
|
-
role:
|
|
95
|
+
role: Role,
|
|
95
96
|
state: "'approved'",
|
|
96
97
|
request: requestBase,
|
|
97
98
|
tick: tick,
|
|
@@ -102,7 +103,7 @@ export function isActiveRequestApproved(obj) {
|
|
|
102
103
|
}
|
|
103
104
|
export const ActiveRequestRejected = type({
|
|
104
105
|
type: "'app.acl.active.request'",
|
|
105
|
-
role:
|
|
106
|
+
role: Role,
|
|
106
107
|
state: "'rejected'",
|
|
107
108
|
request: requestBase,
|
|
108
109
|
grant: grant,
|
package/invite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../jsr/invite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"invite.js","sourceRoot":"","sources":["../jsr/invite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC;AAGjE,MAAM,UAAU,UAAU,CAAC,MAA8B;IACvD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,OAAm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;KACjB,EAAE,CAAC,WAAW,CAAC;KACf,EAAE,CAAC,YAAY,CAAC;KAChB,EAAE,CAAC,kBAAkB,CAAC;KACtB,EAAE,CAAC,SAAS,CAAC,CAAC;AAEjB,MAAM,UAAU,WAAW,CAAC,GAAY;IACtC,OAAO,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAClD,CAAC;AAYD,MAAM,CAAC,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,EAAE,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;AACzH,MAAM,CAAC,MAAM,kBAAkB,GAAG,yBAAyB,CAAC,EAAE,CAAC,0BAA0B,CAAC,CAAC,EAAE,CAAC,yBAAyB,CAAC,CAAC;AAKzH,MAAM,UAAU,oBAAoB,CAAC,GAAY;IAC/C,OAAO,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,GAAY;IAC/C,OAAO,CAAC,CAAC,kBAAkB,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAC3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/api-types",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@fireproof/core-types-base": "~0.24.19",
|
|
15
15
|
"@fireproof/core-types-protocols-cloud": "~0.24.19",
|
|
16
16
|
"@fireproof/core-types-protocols-dashboard": "~0.24.19",
|
|
17
|
-
"@vibes.diy/call-ai-v2": "2.0.
|
|
17
|
+
"@vibes.diy/call-ai-v2": "2.0.10",
|
|
18
18
|
"arktype": "~2.2.0"
|
|
19
19
|
},
|
|
20
20
|
"repository": {
|
package/prompt.d.ts
CHANGED
|
@@ -14,10 +14,15 @@ export declare const PromptReq: import("arktype/internal/variants/object.ts").Ob
|
|
|
14
14
|
model?: string | undefined;
|
|
15
15
|
messages: {
|
|
16
16
|
role: "assistant" | "system" | "user";
|
|
17
|
-
content: {
|
|
17
|
+
content: ({
|
|
18
18
|
type: "text";
|
|
19
19
|
text: string;
|
|
20
|
-
}
|
|
20
|
+
} | {
|
|
21
|
+
type: "image_url";
|
|
22
|
+
image_url: {
|
|
23
|
+
url: string;
|
|
24
|
+
};
|
|
25
|
+
})[];
|
|
21
26
|
}[];
|
|
22
27
|
stream?: boolean | undefined;
|
|
23
28
|
temperature?: number | undefined;
|
|
@@ -117,10 +122,15 @@ export declare const PromptMsgs: import("arktype/internal/variants/object.ts").O
|
|
|
117
122
|
model?: string | undefined;
|
|
118
123
|
messages: {
|
|
119
124
|
role: "assistant" | "system" | "user";
|
|
120
|
-
content: {
|
|
125
|
+
content: ({
|
|
121
126
|
type: "text";
|
|
122
127
|
text: string;
|
|
123
|
-
}
|
|
128
|
+
} | {
|
|
129
|
+
type: "image_url";
|
|
130
|
+
image_url: {
|
|
131
|
+
url: string;
|
|
132
|
+
};
|
|
133
|
+
})[];
|
|
124
134
|
}[];
|
|
125
135
|
stream?: boolean | undefined;
|
|
126
136
|
temperature?: number | undefined;
|