@vibes.diy/api-types 14.3.295 → 14.3.296
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/agent-picture.d.ts +15 -0
- package/agent-picture.js +51 -0
- package/agent-picture.js.map +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/invite-flow.d.ts +152 -152
- package/package.json +4 -4
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const AGENT_SEND_PICTURE_TOOL_NAME = "send_picture";
|
|
2
|
+
export declare const AGENT_PICTURES_PER_TURN = 4;
|
|
3
|
+
export declare const AGENT_PICTURE_MAX_BYTES: number;
|
|
4
|
+
export interface AgentPicture {
|
|
5
|
+
readonly url: string;
|
|
6
|
+
readonly mimeType: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly size: number;
|
|
9
|
+
readonly ownerHandle: string;
|
|
10
|
+
readonly appSlug: string;
|
|
11
|
+
readonly dbName: string;
|
|
12
|
+
readonly docId: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function agentPictureFromReceipt(text: string | undefined): AgentPicture | undefined;
|
|
15
|
+
export declare function agentPictureFileName(key: string, docId: string, mimeType: string): string;
|
package/agent-picture.js
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type } from "arktype";
|
|
2
|
+
import { lazyType } from "./lazy-type.js";
|
|
3
|
+
export const AGENT_SEND_PICTURE_TOOL_NAME = "send_picture";
|
|
4
|
+
export const AGENT_PICTURES_PER_TURN = 4;
|
|
5
|
+
export const AGENT_PICTURE_MAX_BYTES = 20 * 1024 * 1024;
|
|
6
|
+
const pictureReceipt = lazyType(() => type({
|
|
7
|
+
ok: "true",
|
|
8
|
+
picture: {
|
|
9
|
+
url: /^https?:\/\//,
|
|
10
|
+
mimeType: /^image\//,
|
|
11
|
+
name: "string > 0",
|
|
12
|
+
size: "number >= 0",
|
|
13
|
+
ownerHandle: "string > 0",
|
|
14
|
+
appSlug: "string > 0",
|
|
15
|
+
dbName: "string > 0",
|
|
16
|
+
docId: "string > 0",
|
|
17
|
+
},
|
|
18
|
+
}));
|
|
19
|
+
export function agentPictureFromReceipt(text) {
|
|
20
|
+
if (text === undefined)
|
|
21
|
+
return undefined;
|
|
22
|
+
let parsed;
|
|
23
|
+
try {
|
|
24
|
+
parsed = JSON.parse(text);
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
const r = pictureReceipt(parsed);
|
|
30
|
+
if (r instanceof type.errors)
|
|
31
|
+
return undefined;
|
|
32
|
+
const p = r.picture;
|
|
33
|
+
return {
|
|
34
|
+
url: p.url,
|
|
35
|
+
mimeType: p.mimeType,
|
|
36
|
+
name: p.name,
|
|
37
|
+
size: p.size,
|
|
38
|
+
ownerHandle: p.ownerHandle,
|
|
39
|
+
appSlug: p.appSlug,
|
|
40
|
+
dbName: p.dbName,
|
|
41
|
+
docId: p.docId,
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export function agentPictureFileName(key, docId, mimeType) {
|
|
45
|
+
if (/\.[a-z0-9]{2,5}$/i.test(key))
|
|
46
|
+
return key;
|
|
47
|
+
const ext = mimeType === "image/jpeg" ? "jpg" : (mimeType.split("/")[1]?.replace(/[^a-z0-9]/gi, "") ?? "img");
|
|
48
|
+
const stem = (docId.split(":")[0] ?? docId).replace(/[^A-Za-z0-9_-]/g, "").slice(0, 40) || "picture";
|
|
49
|
+
return `${stem}.${ext === "" ? "img" : ext}`;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=agent-picture.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-picture.js","sourceRoot":"","sources":["../jsr/agent-picture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAoB1C,MAAM,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AAC;AACJ,CAAC;AAGD,MAAM,UAAU,oBAAoB,CAAC,GAAW,EAAE,KAAa,EAAE,QAAgB;IAC/E,IAAI,mBAAmB,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,OAAO,GAAG,CAAC;IAC9C,MAAM,GAAG,GAAG,QAAQ,KAAK,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,IAAI,KAAK,CAAC,CAAC;IAC9G,MAAM,IAAI,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC;IACrG,OAAO,GAAG,IAAI,IAAI,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;AAC/C,CAAC"}
|
package/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export * from "./chat-chips.js";
|
|
|
17
17
|
export * from "./agent-tools.js";
|
|
18
18
|
export * from "./agent-personalities.js";
|
|
19
19
|
export * from "./agent-reactions.js";
|
|
20
|
+
export * from "./agent-picture.js";
|
|
20
21
|
export * from "./shared-mint.js";
|
|
21
22
|
export * from "./mint-fire.js";
|
|
22
23
|
export * from "./build-ledger.js";
|
package/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from "./chat-chips.js";
|
|
|
16
16
|
export * from "./agent-tools.js";
|
|
17
17
|
export * from "./agent-personalities.js";
|
|
18
18
|
export * from "./agent-reactions.js";
|
|
19
|
+
export * from "./agent-picture.js";
|
|
19
20
|
export * from "./shared-mint.js";
|
|
20
21
|
export * from "./mint-fire.js";
|
|
21
22
|
export * from "./build-ledger.js";
|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CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AAQrC,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;AAqDD,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AAEpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AAEjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC"}
|
package/invite-flow.d.ts
CHANGED
|
@@ -8,6 +8,53 @@ export declare const KeyGrantKey: import("arktype/internal/variants/object.ts").
|
|
|
8
8
|
export type KeyGrantKey = typeof KeyGrantKey.infer;
|
|
9
9
|
export declare const ResKeyGrantItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
10
10
|
entry: {
|
|
11
|
+
type: "app.acl.active.request";
|
|
12
|
+
role: "viewer";
|
|
13
|
+
state: "pending";
|
|
14
|
+
request: {
|
|
15
|
+
key: string;
|
|
16
|
+
provider: "clerk" | "github" | "google";
|
|
17
|
+
msg?: string | undefined;
|
|
18
|
+
userId: string;
|
|
19
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
20
|
+
};
|
|
21
|
+
} | {
|
|
22
|
+
type: "app.acl.active.request";
|
|
23
|
+
role: "editor" | "submitter" | "viewer";
|
|
24
|
+
state: "approved";
|
|
25
|
+
request: {
|
|
26
|
+
key: string;
|
|
27
|
+
provider: "clerk" | "github" | "google";
|
|
28
|
+
msg?: string | undefined;
|
|
29
|
+
userId: string;
|
|
30
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
31
|
+
};
|
|
32
|
+
tick: {
|
|
33
|
+
count: number;
|
|
34
|
+
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
35
|
+
};
|
|
36
|
+
grant: {
|
|
37
|
+
ownerId: string;
|
|
38
|
+
key?: string | undefined;
|
|
39
|
+
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
40
|
+
};
|
|
41
|
+
} | {
|
|
42
|
+
type: "app.acl.active.request";
|
|
43
|
+
role: "editor" | "submitter" | "viewer";
|
|
44
|
+
state: "rejected";
|
|
45
|
+
request: {
|
|
46
|
+
key: string;
|
|
47
|
+
provider: "clerk" | "github" | "google";
|
|
48
|
+
msg?: string | undefined;
|
|
49
|
+
userId: string;
|
|
50
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
51
|
+
};
|
|
52
|
+
grant: {
|
|
53
|
+
ownerId: string;
|
|
54
|
+
key?: string | undefined;
|
|
55
|
+
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
56
|
+
};
|
|
57
|
+
} | {
|
|
11
58
|
type: "app.acl.active.invite";
|
|
12
59
|
role: "editor";
|
|
13
60
|
state: "pending";
|
|
@@ -93,53 +140,6 @@ export declare const ResKeyGrantItem: import("arktype/internal/variants/object.t
|
|
|
93
140
|
count: number;
|
|
94
141
|
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
95
142
|
};
|
|
96
|
-
} | {
|
|
97
|
-
type: "app.acl.active.request";
|
|
98
|
-
role: "viewer";
|
|
99
|
-
state: "pending";
|
|
100
|
-
request: {
|
|
101
|
-
key: string;
|
|
102
|
-
provider: "clerk" | "github" | "google";
|
|
103
|
-
msg?: string | undefined;
|
|
104
|
-
userId: string;
|
|
105
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
106
|
-
};
|
|
107
|
-
} | {
|
|
108
|
-
type: "app.acl.active.request";
|
|
109
|
-
role: "editor" | "submitter" | "viewer";
|
|
110
|
-
state: "approved";
|
|
111
|
-
request: {
|
|
112
|
-
key: string;
|
|
113
|
-
provider: "clerk" | "github" | "google";
|
|
114
|
-
msg?: string | undefined;
|
|
115
|
-
userId: string;
|
|
116
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
117
|
-
};
|
|
118
|
-
tick: {
|
|
119
|
-
count: number;
|
|
120
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
121
|
-
};
|
|
122
|
-
grant: {
|
|
123
|
-
ownerId: string;
|
|
124
|
-
key?: string | undefined;
|
|
125
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
126
|
-
};
|
|
127
|
-
} | {
|
|
128
|
-
type: "app.acl.active.request";
|
|
129
|
-
role: "editor" | "submitter" | "viewer";
|
|
130
|
-
state: "rejected";
|
|
131
|
-
request: {
|
|
132
|
-
key: string;
|
|
133
|
-
provider: "clerk" | "github" | "google";
|
|
134
|
-
msg?: string | undefined;
|
|
135
|
-
userId: string;
|
|
136
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
137
|
-
};
|
|
138
|
-
grant: {
|
|
139
|
-
ownerId: string;
|
|
140
|
-
key?: string | undefined;
|
|
141
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
142
|
-
};
|
|
143
143
|
};
|
|
144
144
|
grantUserId?: string | undefined;
|
|
145
145
|
grantType: "invite" | "request";
|
|
@@ -168,6 +168,53 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
|
|
|
168
168
|
items: {
|
|
169
169
|
key: string;
|
|
170
170
|
entry: {
|
|
171
|
+
type: "app.acl.active.request";
|
|
172
|
+
role: "viewer";
|
|
173
|
+
state: "pending";
|
|
174
|
+
request: {
|
|
175
|
+
key: string;
|
|
176
|
+
provider: "clerk" | "github" | "google";
|
|
177
|
+
msg?: string | undefined;
|
|
178
|
+
userId: string;
|
|
179
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
180
|
+
};
|
|
181
|
+
} | {
|
|
182
|
+
type: "app.acl.active.request";
|
|
183
|
+
role: "editor" | "submitter" | "viewer";
|
|
184
|
+
state: "approved";
|
|
185
|
+
request: {
|
|
186
|
+
key: string;
|
|
187
|
+
provider: "clerk" | "github" | "google";
|
|
188
|
+
msg?: string | undefined;
|
|
189
|
+
userId: string;
|
|
190
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
191
|
+
};
|
|
192
|
+
tick: {
|
|
193
|
+
count: number;
|
|
194
|
+
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
195
|
+
};
|
|
196
|
+
grant: {
|
|
197
|
+
ownerId: string;
|
|
198
|
+
key?: string | undefined;
|
|
199
|
+
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
200
|
+
};
|
|
201
|
+
} | {
|
|
202
|
+
type: "app.acl.active.request";
|
|
203
|
+
role: "editor" | "submitter" | "viewer";
|
|
204
|
+
state: "rejected";
|
|
205
|
+
request: {
|
|
206
|
+
key: string;
|
|
207
|
+
provider: "clerk" | "github" | "google";
|
|
208
|
+
msg?: string | undefined;
|
|
209
|
+
userId: string;
|
|
210
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
211
|
+
};
|
|
212
|
+
grant: {
|
|
213
|
+
ownerId: string;
|
|
214
|
+
key?: string | undefined;
|
|
215
|
+
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
216
|
+
};
|
|
217
|
+
} | {
|
|
171
218
|
type: "app.acl.active.invite";
|
|
172
219
|
role: "editor";
|
|
173
220
|
state: "pending";
|
|
@@ -253,53 +300,6 @@ export declare const ResListKeyGrants: import("arktype/internal/variants/object.
|
|
|
253
300
|
count: number;
|
|
254
301
|
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
255
302
|
};
|
|
256
|
-
} | {
|
|
257
|
-
type: "app.acl.active.request";
|
|
258
|
-
role: "viewer";
|
|
259
|
-
state: "pending";
|
|
260
|
-
request: {
|
|
261
|
-
key: string;
|
|
262
|
-
provider: "clerk" | "github" | "google";
|
|
263
|
-
msg?: string | undefined;
|
|
264
|
-
userId: string;
|
|
265
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
266
|
-
};
|
|
267
|
-
} | {
|
|
268
|
-
type: "app.acl.active.request";
|
|
269
|
-
role: "editor" | "submitter" | "viewer";
|
|
270
|
-
state: "approved";
|
|
271
|
-
request: {
|
|
272
|
-
key: string;
|
|
273
|
-
provider: "clerk" | "github" | "google";
|
|
274
|
-
msg?: string | undefined;
|
|
275
|
-
userId: string;
|
|
276
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
277
|
-
};
|
|
278
|
-
tick: {
|
|
279
|
-
count: number;
|
|
280
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
281
|
-
};
|
|
282
|
-
grant: {
|
|
283
|
-
ownerId: string;
|
|
284
|
-
key?: string | undefined;
|
|
285
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
286
|
-
};
|
|
287
|
-
} | {
|
|
288
|
-
type: "app.acl.active.request";
|
|
289
|
-
role: "editor" | "submitter" | "viewer";
|
|
290
|
-
state: "rejected";
|
|
291
|
-
request: {
|
|
292
|
-
key: string;
|
|
293
|
-
provider: "clerk" | "github" | "google";
|
|
294
|
-
msg?: string | undefined;
|
|
295
|
-
userId: string;
|
|
296
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
297
|
-
};
|
|
298
|
-
grant: {
|
|
299
|
-
ownerId: string;
|
|
300
|
-
key?: string | undefined;
|
|
301
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
302
|
-
};
|
|
303
303
|
};
|
|
304
304
|
grantUserId?: string | undefined;
|
|
305
305
|
updated: string;
|
|
@@ -321,6 +321,53 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
321
321
|
appSlug: string;
|
|
322
322
|
ownerHandle: string;
|
|
323
323
|
entry: {
|
|
324
|
+
type: "app.acl.active.request";
|
|
325
|
+
role: "viewer";
|
|
326
|
+
state: "pending";
|
|
327
|
+
request: {
|
|
328
|
+
key: string;
|
|
329
|
+
provider: "clerk" | "github" | "google";
|
|
330
|
+
msg?: string | undefined;
|
|
331
|
+
userId: string;
|
|
332
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
333
|
+
};
|
|
334
|
+
} | {
|
|
335
|
+
type: "app.acl.active.request";
|
|
336
|
+
role: "editor" | "submitter" | "viewer";
|
|
337
|
+
state: "approved";
|
|
338
|
+
request: {
|
|
339
|
+
key: string;
|
|
340
|
+
provider: "clerk" | "github" | "google";
|
|
341
|
+
msg?: string | undefined;
|
|
342
|
+
userId: string;
|
|
343
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
344
|
+
};
|
|
345
|
+
tick: {
|
|
346
|
+
count: number;
|
|
347
|
+
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
348
|
+
};
|
|
349
|
+
grant: {
|
|
350
|
+
ownerId: string;
|
|
351
|
+
key?: string | undefined;
|
|
352
|
+
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
353
|
+
};
|
|
354
|
+
} | {
|
|
355
|
+
type: "app.acl.active.request";
|
|
356
|
+
role: "editor" | "submitter" | "viewer";
|
|
357
|
+
state: "rejected";
|
|
358
|
+
request: {
|
|
359
|
+
key: string;
|
|
360
|
+
provider: "clerk" | "github" | "google";
|
|
361
|
+
msg?: string | undefined;
|
|
362
|
+
userId: string;
|
|
363
|
+
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
364
|
+
};
|
|
365
|
+
grant: {
|
|
366
|
+
ownerId: string;
|
|
367
|
+
key?: string | undefined;
|
|
368
|
+
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
369
|
+
};
|
|
370
|
+
} | {
|
|
324
371
|
type: "app.acl.active.invite";
|
|
325
372
|
role: "editor";
|
|
326
373
|
state: "pending";
|
|
@@ -406,7 +453,16 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
406
453
|
count: number;
|
|
407
454
|
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
408
455
|
};
|
|
409
|
-
}
|
|
456
|
+
};
|
|
457
|
+
}, {}>;
|
|
458
|
+
export type ReqUpsertKeyGrant = typeof ReqUpsertKeyGrant.infer;
|
|
459
|
+
export declare function isReqUpsertKeyGrant(obj: unknown): obj is ReqUpsertKeyGrant;
|
|
460
|
+
export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
461
|
+
appSlug: string;
|
|
462
|
+
ownerHandle: string;
|
|
463
|
+
grantType: "invite" | "request";
|
|
464
|
+
key: string;
|
|
465
|
+
entry: {
|
|
410
466
|
type: "app.acl.active.request";
|
|
411
467
|
role: "viewer";
|
|
412
468
|
state: "pending";
|
|
@@ -453,16 +509,7 @@ export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
453
509
|
key?: string | undefined;
|
|
454
510
|
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
455
511
|
};
|
|
456
|
-
}
|
|
457
|
-
}, {}>;
|
|
458
|
-
export type ReqUpsertKeyGrant = typeof ReqUpsertKeyGrant.infer;
|
|
459
|
-
export declare function isReqUpsertKeyGrant(obj: unknown): obj is ReqUpsertKeyGrant;
|
|
460
|
-
export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
461
|
-
appSlug: string;
|
|
462
|
-
ownerHandle: string;
|
|
463
|
-
grantType: "invite" | "request";
|
|
464
|
-
key: string;
|
|
465
|
-
entry: {
|
|
512
|
+
} | {
|
|
466
513
|
type: "app.acl.active.invite";
|
|
467
514
|
role: "editor";
|
|
468
515
|
state: "pending";
|
|
@@ -548,53 +595,6 @@ export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object
|
|
|
548
595
|
count: number;
|
|
549
596
|
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
550
597
|
};
|
|
551
|
-
} | {
|
|
552
|
-
type: "app.acl.active.request";
|
|
553
|
-
role: "viewer";
|
|
554
|
-
state: "pending";
|
|
555
|
-
request: {
|
|
556
|
-
key: string;
|
|
557
|
-
provider: "clerk" | "github" | "google";
|
|
558
|
-
msg?: string | undefined;
|
|
559
|
-
userId: string;
|
|
560
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
561
|
-
};
|
|
562
|
-
} | {
|
|
563
|
-
type: "app.acl.active.request";
|
|
564
|
-
role: "editor" | "submitter" | "viewer";
|
|
565
|
-
state: "approved";
|
|
566
|
-
request: {
|
|
567
|
-
key: string;
|
|
568
|
-
provider: "clerk" | "github" | "google";
|
|
569
|
-
msg?: string | undefined;
|
|
570
|
-
userId: string;
|
|
571
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
572
|
-
};
|
|
573
|
-
tick: {
|
|
574
|
-
count: number;
|
|
575
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
576
|
-
};
|
|
577
|
-
grant: {
|
|
578
|
-
ownerId: string;
|
|
579
|
-
key?: string | undefined;
|
|
580
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
581
|
-
};
|
|
582
|
-
} | {
|
|
583
|
-
type: "app.acl.active.request";
|
|
584
|
-
role: "editor" | "submitter" | "viewer";
|
|
585
|
-
state: "rejected";
|
|
586
|
-
request: {
|
|
587
|
-
key: string;
|
|
588
|
-
provider: "clerk" | "github" | "google";
|
|
589
|
-
msg?: string | undefined;
|
|
590
|
-
userId: string;
|
|
591
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
592
|
-
};
|
|
593
|
-
grant: {
|
|
594
|
-
ownerId: string;
|
|
595
|
-
key?: string | undefined;
|
|
596
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
597
|
-
};
|
|
598
598
|
};
|
|
599
599
|
grantUserId?: string | undefined;
|
|
600
600
|
updated: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/api-types",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.296",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@adviser/cement": "~0.5.34",
|
|
25
25
|
"@cloudflare/workers-types": "~5.20261101.1",
|
|
26
|
-
"@vibes.diy/call-ai-v2": "14.3.
|
|
27
|
-
"@vibes.diy/identity": "14.3.
|
|
28
|
-
"@vibes.diy/vibe-types": "14.3.
|
|
26
|
+
"@vibes.diy/call-ai-v2": "14.3.296",
|
|
27
|
+
"@vibes.diy/identity": "14.3.296",
|
|
28
|
+
"@vibes.diy/vibe-types": "14.3.296",
|
|
29
29
|
"arktype": "~2.2.9"
|
|
30
30
|
},
|
|
31
31
|
"repository": {
|