@vibes.diy/api-types 2.0.0-dev-cli-d → 2.0.0-dev-cli-f
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.d.ts +558 -0
- package/app.js +227 -0
- package/app.js.map +1 -0
- package/cf-env.d.ts +3 -0
- package/chat.d.ts +739 -0
- package/chat.js +130 -0
- package/chat.js.map +1 -0
- package/common.d.ts +371 -0
- package/common.js +207 -0
- package/common.js.map +1 -0
- package/fpcloud-token.d.ts +145 -0
- package/fpcloud-token.js +43 -0
- package/fpcloud-token.js.map +1 -0
- package/index.d.ts +18 -1
- package/index.js +7 -1
- package/index.js.map +1 -1
- package/invite-flow.d.ts +989 -0
- package/invite-flow.js +241 -0
- package/invite-flow.js.map +1 -0
- package/invite.d.ts +113 -8
- package/invite.js +13 -3
- package/invite.js.map +1 -1
- package/package.json +6 -6
- package/request-access.d.ts +767 -0
- package/request-access.js +222 -0
- package/request-access.js.map +1 -0
- package/settings.d.ts +1227 -0
- package/settings.js +182 -0
- package/settings.js.map +1 -0
- package/vibes-diy-api.d.ts +11 -1
- package/vibes-diy-api.js.map +1 -1
- package/vibes-diy-serv-ctx.js +1 -1
- package/vibes-diy-serv-ctx.js.map +1 -1
- package/vibes-types.d.ts +0 -5
- package/vibes-types.js +0 -3
- package/vibes-types.js.map +1 -1
- package/msg-types.d.ts +0 -4215
- package/msg-types.js +0 -1089
- package/msg-types.js.map +0 -1
package/msg-types.d.ts
DELETED
|
@@ -1,4215 +0,0 @@
|
|
|
1
|
-
import { Result } from "@adviser/cement";
|
|
2
|
-
export declare const ClerkClaimParams: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3
|
-
nick?: string | undefined;
|
|
4
|
-
email: string;
|
|
5
|
-
email_verified: boolean;
|
|
6
|
-
external_id?: string | null | undefined;
|
|
7
|
-
first: string;
|
|
8
|
-
image_url: string;
|
|
9
|
-
last: string;
|
|
10
|
-
name: string | null;
|
|
11
|
-
public_meta: unknown;
|
|
12
|
-
}, {}>;
|
|
13
|
-
export type ClerkClaimParams = typeof ClerkClaimParams.infer;
|
|
14
|
-
export declare const ClerkClaim: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
15
|
-
azp?: string | undefined;
|
|
16
|
-
exp?: number | undefined;
|
|
17
|
-
iat?: number | undefined;
|
|
18
|
-
iss?: string | undefined;
|
|
19
|
-
jti?: string | undefined;
|
|
20
|
-
nbf?: number | undefined;
|
|
21
|
-
params: {
|
|
22
|
-
nick?: string | undefined;
|
|
23
|
-
email: string;
|
|
24
|
-
email_verified: boolean;
|
|
25
|
-
external_id?: string | null | undefined;
|
|
26
|
-
first: string;
|
|
27
|
-
image_url: string;
|
|
28
|
-
last: string;
|
|
29
|
-
name: string | null;
|
|
30
|
-
public_meta: unknown;
|
|
31
|
-
};
|
|
32
|
-
role: string;
|
|
33
|
-
sub: string;
|
|
34
|
-
userId: string;
|
|
35
|
-
aud?: string | string[] | undefined;
|
|
36
|
-
app_metadata?: unknown;
|
|
37
|
-
}, {}>;
|
|
38
|
-
export type ClerkClaim = typeof ClerkClaim.infer;
|
|
39
|
-
export declare const FPCloudClaim: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
40
|
-
azp?: string | undefined;
|
|
41
|
-
iss?: string | undefined;
|
|
42
|
-
sub?: string | undefined;
|
|
43
|
-
aud?: string | string[] | undefined;
|
|
44
|
-
exp?: number | undefined;
|
|
45
|
-
nbf?: number | undefined;
|
|
46
|
-
iat?: number | undefined;
|
|
47
|
-
jti?: string | undefined;
|
|
48
|
-
userId: string;
|
|
49
|
-
email: string;
|
|
50
|
-
nickname?: string | undefined;
|
|
51
|
-
provider?: "github" | "google" | undefined;
|
|
52
|
-
created: (In: string | number) => import("arktype").Out<Date>;
|
|
53
|
-
tenants: {
|
|
54
|
-
id: string;
|
|
55
|
-
role: "admin" | "member" | "owner";
|
|
56
|
-
}[];
|
|
57
|
-
ledgers: {
|
|
58
|
-
id: string;
|
|
59
|
-
role: "admin" | "member" | "owner";
|
|
60
|
-
right: "read" | "write";
|
|
61
|
-
}[];
|
|
62
|
-
selected: {
|
|
63
|
-
appId?: string | undefined;
|
|
64
|
-
tenant: string;
|
|
65
|
-
ledger: string;
|
|
66
|
-
};
|
|
67
|
-
}, {}>;
|
|
68
|
-
export type FPCloudClaim = typeof FPCloudClaim.infer;
|
|
69
|
-
export declare const dashAuthType: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
70
|
-
type: "clerk" | "device-id" | "ucan";
|
|
71
|
-
token: string;
|
|
72
|
-
}, {}>;
|
|
73
|
-
export declare const vibeUserEnv: import("arktype/internal/variants/object.ts").ObjectType<Record<string, string>, {}>;
|
|
74
|
-
export declare const VibeCodeBlock: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
75
|
-
filename: string;
|
|
76
|
-
entryPoint?: boolean | undefined;
|
|
77
|
-
mimetype?: string | undefined;
|
|
78
|
-
type: "code-block";
|
|
79
|
-
lang: string;
|
|
80
|
-
content: string;
|
|
81
|
-
}, {}>;
|
|
82
|
-
export type VibeCodeBlock = typeof VibeCodeBlock.infer;
|
|
83
|
-
export declare function isVibeCodeBlock(obj: unknown): obj is VibeCodeBlock;
|
|
84
|
-
export declare const VibeCodeRef: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
85
|
-
filename: string;
|
|
86
|
-
entryPoint?: boolean | undefined;
|
|
87
|
-
mimetype?: string | undefined;
|
|
88
|
-
type: "code-ref";
|
|
89
|
-
refId: string;
|
|
90
|
-
}, {}>;
|
|
91
|
-
export declare const VibeStrAssetBlock: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
92
|
-
filename: string;
|
|
93
|
-
entryPoint?: boolean | undefined;
|
|
94
|
-
mimetype?: string | undefined;
|
|
95
|
-
type: "str-asset-block";
|
|
96
|
-
content: string;
|
|
97
|
-
}, {}>;
|
|
98
|
-
export declare const VibeStrAssetRef: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
99
|
-
filename: string;
|
|
100
|
-
entryPoint?: boolean | undefined;
|
|
101
|
-
mimetype?: string | undefined;
|
|
102
|
-
type: "str-asset-ref";
|
|
103
|
-
refId: string;
|
|
104
|
-
}, {}>;
|
|
105
|
-
export declare const VibeUint8AssetBlock: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
106
|
-
filename: string;
|
|
107
|
-
entryPoint?: boolean | undefined;
|
|
108
|
-
mimetype?: string | undefined;
|
|
109
|
-
type: "uint8-asset-block";
|
|
110
|
-
content: Uint8Array<ArrayBuffer>;
|
|
111
|
-
}, {}>;
|
|
112
|
-
export declare const VibeUint8AssetRef: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
113
|
-
filename: string;
|
|
114
|
-
entryPoint?: boolean | undefined;
|
|
115
|
-
mimetype?: string | undefined;
|
|
116
|
-
type: "uint8-asset-ref";
|
|
117
|
-
refId: string;
|
|
118
|
-
}, {}>;
|
|
119
|
-
export declare const vibeFile: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
120
|
-
filename: string;
|
|
121
|
-
entryPoint?: boolean | undefined;
|
|
122
|
-
mimetype?: string | undefined;
|
|
123
|
-
type: "code-block";
|
|
124
|
-
lang: string;
|
|
125
|
-
content: string;
|
|
126
|
-
} | {
|
|
127
|
-
filename: string;
|
|
128
|
-
entryPoint?: boolean | undefined;
|
|
129
|
-
mimetype?: string | undefined;
|
|
130
|
-
type: "code-ref";
|
|
131
|
-
refId: string;
|
|
132
|
-
} | {
|
|
133
|
-
filename: string;
|
|
134
|
-
entryPoint?: boolean | undefined;
|
|
135
|
-
mimetype?: string | undefined;
|
|
136
|
-
type: "str-asset-block";
|
|
137
|
-
content: string;
|
|
138
|
-
} | {
|
|
139
|
-
filename: string;
|
|
140
|
-
entryPoint?: boolean | undefined;
|
|
141
|
-
mimetype?: string | undefined;
|
|
142
|
-
type: "str-asset-ref";
|
|
143
|
-
refId: string;
|
|
144
|
-
} | {
|
|
145
|
-
filename: string;
|
|
146
|
-
entryPoint?: boolean | undefined;
|
|
147
|
-
mimetype?: string | undefined;
|
|
148
|
-
type: "uint8-asset-block";
|
|
149
|
-
content: Uint8Array<ArrayBuffer>;
|
|
150
|
-
} | {
|
|
151
|
-
filename: string;
|
|
152
|
-
entryPoint?: boolean | undefined;
|
|
153
|
-
mimetype?: string | undefined;
|
|
154
|
-
type: "uint8-asset-ref";
|
|
155
|
-
refId: string;
|
|
156
|
-
}, {}>;
|
|
157
|
-
export type VibeFile = typeof vibeFile.infer;
|
|
158
|
-
export declare const reqOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
159
|
-
type: "vibes.diy.req-open-chat";
|
|
160
|
-
auth: {
|
|
161
|
-
type: "clerk" | "device-id" | "ucan";
|
|
162
|
-
token: string;
|
|
163
|
-
};
|
|
164
|
-
appSlug?: string | undefined;
|
|
165
|
-
userSlug?: string | undefined;
|
|
166
|
-
chatId?: string | undefined;
|
|
167
|
-
mode: "application" | "creation";
|
|
168
|
-
}, {}>;
|
|
169
|
-
export type ReqOpenChat = typeof reqOpenChat.infer;
|
|
170
|
-
export declare const resOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
171
|
-
type: "vibes.diy.res-open-chat";
|
|
172
|
-
appSlug: string;
|
|
173
|
-
userSlug: string;
|
|
174
|
-
chatId: string;
|
|
175
|
-
mode: "application" | "creation";
|
|
176
|
-
}, {}>;
|
|
177
|
-
export type ResOpenChat = typeof resOpenChat.infer;
|
|
178
|
-
export declare function isResOpenChat(obj: unknown): obj is ResOpenChat;
|
|
179
|
-
export declare const resError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
180
|
-
type: "vibes.diy.error";
|
|
181
|
-
message: string;
|
|
182
|
-
code?: string | undefined;
|
|
183
|
-
stack?: string[] | undefined;
|
|
184
|
-
}, {}>;
|
|
185
|
-
export declare const reqCreationPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
186
|
-
type: "vibes.diy.req-prompt-chat-section";
|
|
187
|
-
mode: "creation";
|
|
188
|
-
auth: {
|
|
189
|
-
type: "clerk" | "device-id" | "ucan";
|
|
190
|
-
token: string;
|
|
191
|
-
};
|
|
192
|
-
chatId: string;
|
|
193
|
-
outerTid: string;
|
|
194
|
-
prompt: {
|
|
195
|
-
model?: string | undefined;
|
|
196
|
-
messages: {
|
|
197
|
-
role: "assistant" | "system" | "user";
|
|
198
|
-
content: {
|
|
199
|
-
type: "text";
|
|
200
|
-
text: string;
|
|
201
|
-
}[];
|
|
202
|
-
}[];
|
|
203
|
-
stream?: boolean | undefined;
|
|
204
|
-
temperature?: number | undefined;
|
|
205
|
-
max_tokens?: number | undefined;
|
|
206
|
-
top_p?: number | undefined;
|
|
207
|
-
logprobs?: boolean | undefined;
|
|
208
|
-
top_logsprobs?: number | undefined;
|
|
209
|
-
frequency_penalty?: number | undefined;
|
|
210
|
-
presence_penalty?: number | undefined;
|
|
211
|
-
stop?: string | string[] | undefined;
|
|
212
|
-
};
|
|
213
|
-
}, {}>;
|
|
214
|
-
export declare function isReqCreationPromptChatSection(obj: unknown): obj is typeof reqCreationPromptChatSection.infer;
|
|
215
|
-
export declare const reqPromptApplicationChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
216
|
-
type: "vibes.diy.req-prompt-chat-section";
|
|
217
|
-
mode: "application";
|
|
218
|
-
auth: {
|
|
219
|
-
type: "clerk" | "device-id" | "ucan";
|
|
220
|
-
token: string;
|
|
221
|
-
};
|
|
222
|
-
chatId: string;
|
|
223
|
-
outerTid: string;
|
|
224
|
-
prompt: {
|
|
225
|
-
model?: string | undefined;
|
|
226
|
-
messages: {
|
|
227
|
-
role: "assistant" | "system" | "user";
|
|
228
|
-
content: {
|
|
229
|
-
type: "text";
|
|
230
|
-
text: string;
|
|
231
|
-
}[];
|
|
232
|
-
}[];
|
|
233
|
-
stream?: boolean | undefined;
|
|
234
|
-
temperature?: number | undefined;
|
|
235
|
-
max_tokens?: number | undefined;
|
|
236
|
-
top_p?: number | undefined;
|
|
237
|
-
logprobs?: boolean | undefined;
|
|
238
|
-
top_logsprobs?: number | undefined;
|
|
239
|
-
frequency_penalty?: number | undefined;
|
|
240
|
-
presence_penalty?: number | undefined;
|
|
241
|
-
stop?: string | string[] | undefined;
|
|
242
|
-
};
|
|
243
|
-
}, {}>;
|
|
244
|
-
export declare function isReqPromptApplicationChatSection(obj: unknown): obj is typeof reqPromptApplicationChatSection.infer;
|
|
245
|
-
export declare const reqPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
246
|
-
type: "vibes.diy.req-prompt-chat-section";
|
|
247
|
-
mode: "creation";
|
|
248
|
-
auth: {
|
|
249
|
-
type: "clerk" | "device-id" | "ucan";
|
|
250
|
-
token: string;
|
|
251
|
-
};
|
|
252
|
-
chatId: string;
|
|
253
|
-
outerTid: string;
|
|
254
|
-
prompt: {
|
|
255
|
-
model?: string | undefined;
|
|
256
|
-
messages: {
|
|
257
|
-
role: "assistant" | "system" | "user";
|
|
258
|
-
content: {
|
|
259
|
-
type: "text";
|
|
260
|
-
text: string;
|
|
261
|
-
}[];
|
|
262
|
-
}[];
|
|
263
|
-
stream?: boolean | undefined;
|
|
264
|
-
temperature?: number | undefined;
|
|
265
|
-
max_tokens?: number | undefined;
|
|
266
|
-
top_p?: number | undefined;
|
|
267
|
-
logprobs?: boolean | undefined;
|
|
268
|
-
top_logsprobs?: number | undefined;
|
|
269
|
-
frequency_penalty?: number | undefined;
|
|
270
|
-
presence_penalty?: number | undefined;
|
|
271
|
-
stop?: string | string[] | undefined;
|
|
272
|
-
};
|
|
273
|
-
} | {
|
|
274
|
-
type: "vibes.diy.req-prompt-chat-section";
|
|
275
|
-
mode: "application";
|
|
276
|
-
auth: {
|
|
277
|
-
type: "clerk" | "device-id" | "ucan";
|
|
278
|
-
token: string;
|
|
279
|
-
};
|
|
280
|
-
chatId: string;
|
|
281
|
-
outerTid: string;
|
|
282
|
-
prompt: {
|
|
283
|
-
model?: string | undefined;
|
|
284
|
-
messages: {
|
|
285
|
-
role: "assistant" | "system" | "user";
|
|
286
|
-
content: {
|
|
287
|
-
type: "text";
|
|
288
|
-
text: string;
|
|
289
|
-
}[];
|
|
290
|
-
}[];
|
|
291
|
-
stream?: boolean | undefined;
|
|
292
|
-
temperature?: number | undefined;
|
|
293
|
-
max_tokens?: number | undefined;
|
|
294
|
-
top_p?: number | undefined;
|
|
295
|
-
logprobs?: boolean | undefined;
|
|
296
|
-
top_logsprobs?: number | undefined;
|
|
297
|
-
frequency_penalty?: number | undefined;
|
|
298
|
-
presence_penalty?: number | undefined;
|
|
299
|
-
stop?: string | string[] | undefined;
|
|
300
|
-
};
|
|
301
|
-
}, {}>;
|
|
302
|
-
export type ReqPromptChatSection = typeof reqPromptChatSection.infer;
|
|
303
|
-
export declare const resPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
304
|
-
type: "vibes.diy.res-prompt-chat-section";
|
|
305
|
-
mode: "application" | "creation";
|
|
306
|
-
chatId: string;
|
|
307
|
-
userSlug: string;
|
|
308
|
-
appSlug: string;
|
|
309
|
-
promptId: string;
|
|
310
|
-
outerTid: string;
|
|
311
|
-
}, {}>;
|
|
312
|
-
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
313
|
-
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
314
|
-
export declare const reqAddFS: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
315
|
-
type: "vibes.diy.req-add-fs";
|
|
316
|
-
auth: {
|
|
317
|
-
type: "clerk" | "device-id" | "ucan";
|
|
318
|
-
token: string;
|
|
319
|
-
};
|
|
320
|
-
chatId: string;
|
|
321
|
-
outerTid: string;
|
|
322
|
-
fs: ({
|
|
323
|
-
filename: string;
|
|
324
|
-
entryPoint?: boolean | undefined;
|
|
325
|
-
mimetype?: string | undefined;
|
|
326
|
-
type: "code-block";
|
|
327
|
-
lang: string;
|
|
328
|
-
content: string;
|
|
329
|
-
} | {
|
|
330
|
-
filename: string;
|
|
331
|
-
entryPoint?: boolean | undefined;
|
|
332
|
-
mimetype?: string | undefined;
|
|
333
|
-
type: "code-ref";
|
|
334
|
-
refId: string;
|
|
335
|
-
} | {
|
|
336
|
-
filename: string;
|
|
337
|
-
entryPoint?: boolean | undefined;
|
|
338
|
-
mimetype?: string | undefined;
|
|
339
|
-
type: "str-asset-block";
|
|
340
|
-
content: string;
|
|
341
|
-
} | {
|
|
342
|
-
filename: string;
|
|
343
|
-
entryPoint?: boolean | undefined;
|
|
344
|
-
mimetype?: string | undefined;
|
|
345
|
-
type: "str-asset-ref";
|
|
346
|
-
refId: string;
|
|
347
|
-
} | {
|
|
348
|
-
filename: string;
|
|
349
|
-
entryPoint?: boolean | undefined;
|
|
350
|
-
mimetype?: string | undefined;
|
|
351
|
-
type: "uint8-asset-block";
|
|
352
|
-
content: Uint8Array<ArrayBuffer>;
|
|
353
|
-
} | {
|
|
354
|
-
filename: string;
|
|
355
|
-
entryPoint?: boolean | undefined;
|
|
356
|
-
mimetype?: string | undefined;
|
|
357
|
-
type: "uint8-asset-ref";
|
|
358
|
-
refId: string;
|
|
359
|
-
})[];
|
|
360
|
-
}, {}>;
|
|
361
|
-
export type ReqAddFS = typeof reqAddFS.infer;
|
|
362
|
-
export declare function isReqAddFS(obj: unknown): obj is ReqAddFS;
|
|
363
|
-
export declare const resAddFS: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
364
|
-
appSlug: string;
|
|
365
|
-
userSlug: string;
|
|
366
|
-
mode: "dev" | "production";
|
|
367
|
-
fsId: string;
|
|
368
|
-
type: "vibes.diy.res-add-fs";
|
|
369
|
-
chatId: string;
|
|
370
|
-
outerTid: string;
|
|
371
|
-
}, {}>;
|
|
372
|
-
export type ResAddFS = typeof resAddFS.infer;
|
|
373
|
-
export declare function isResAddFS(obj: unknown): obj is ResAddFS;
|
|
374
|
-
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
375
|
-
streamId: string;
|
|
376
|
-
chatId: string;
|
|
377
|
-
seq: number;
|
|
378
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
379
|
-
type: "prompt.block-begin";
|
|
380
|
-
} | {
|
|
381
|
-
streamId: string;
|
|
382
|
-
chatId: string;
|
|
383
|
-
seq: number;
|
|
384
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
385
|
-
type: "prompt.block-end";
|
|
386
|
-
} | {
|
|
387
|
-
streamId: string;
|
|
388
|
-
chatId: string;
|
|
389
|
-
seq: number;
|
|
390
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
391
|
-
type: "prompt.req";
|
|
392
|
-
request: {
|
|
393
|
-
model?: string | undefined;
|
|
394
|
-
messages: {
|
|
395
|
-
role: "assistant" | "system" | "user";
|
|
396
|
-
content: {
|
|
397
|
-
type: "text";
|
|
398
|
-
text: string;
|
|
399
|
-
}[];
|
|
400
|
-
}[];
|
|
401
|
-
stream?: boolean | undefined;
|
|
402
|
-
temperature?: number | undefined;
|
|
403
|
-
max_tokens?: number | undefined;
|
|
404
|
-
top_p?: number | undefined;
|
|
405
|
-
logprobs?: boolean | undefined;
|
|
406
|
-
top_logsprobs?: number | undefined;
|
|
407
|
-
frequency_penalty?: number | undefined;
|
|
408
|
-
presence_penalty?: number | undefined;
|
|
409
|
-
stop?: string | string[] | undefined;
|
|
410
|
-
};
|
|
411
|
-
} | {
|
|
412
|
-
streamId: string;
|
|
413
|
-
chatId: string;
|
|
414
|
-
seq: number;
|
|
415
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
416
|
-
type: "prompt.error";
|
|
417
|
-
error: string;
|
|
418
|
-
} | {
|
|
419
|
-
blockId: string;
|
|
420
|
-
streamId: string;
|
|
421
|
-
seq: number;
|
|
422
|
-
blockNr: number;
|
|
423
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
424
|
-
type: "block.begin";
|
|
425
|
-
} | {
|
|
426
|
-
blockId: string;
|
|
427
|
-
streamId: string;
|
|
428
|
-
seq: number;
|
|
429
|
-
blockNr: number;
|
|
430
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
431
|
-
type: "block.end";
|
|
432
|
-
stats: {
|
|
433
|
-
toplevel: {
|
|
434
|
-
lines: number;
|
|
435
|
-
bytes: number;
|
|
436
|
-
cnt?: number | undefined;
|
|
437
|
-
};
|
|
438
|
-
code: {
|
|
439
|
-
lines: number;
|
|
440
|
-
bytes: number;
|
|
441
|
-
cnt?: number | undefined;
|
|
442
|
-
};
|
|
443
|
-
image: {
|
|
444
|
-
lines: number;
|
|
445
|
-
bytes: number;
|
|
446
|
-
cnt?: number | undefined;
|
|
447
|
-
};
|
|
448
|
-
total: {
|
|
449
|
-
lines: number;
|
|
450
|
-
bytes: number;
|
|
451
|
-
cnt?: number | undefined;
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
usage: {
|
|
455
|
-
given: {
|
|
456
|
-
prompt_tokens: number;
|
|
457
|
-
completion_tokens: number;
|
|
458
|
-
total_tokens: number;
|
|
459
|
-
}[];
|
|
460
|
-
calculated: {
|
|
461
|
-
prompt_tokens: number;
|
|
462
|
-
completion_tokens: number;
|
|
463
|
-
total_tokens: number;
|
|
464
|
-
};
|
|
465
|
-
};
|
|
466
|
-
fsRef?: {
|
|
467
|
-
appSlug: string;
|
|
468
|
-
userSlug: string;
|
|
469
|
-
mode: "dev" | "production";
|
|
470
|
-
fsId: string;
|
|
471
|
-
} | undefined;
|
|
472
|
-
} | {
|
|
473
|
-
blockId: string;
|
|
474
|
-
streamId: string;
|
|
475
|
-
seq: number;
|
|
476
|
-
blockNr: number;
|
|
477
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
478
|
-
type: "block.stats";
|
|
479
|
-
stats: {
|
|
480
|
-
toplevel: {
|
|
481
|
-
lines: number;
|
|
482
|
-
bytes: number;
|
|
483
|
-
cnt?: number | undefined;
|
|
484
|
-
};
|
|
485
|
-
code: {
|
|
486
|
-
lines: number;
|
|
487
|
-
bytes: number;
|
|
488
|
-
cnt?: number | undefined;
|
|
489
|
-
};
|
|
490
|
-
image: {
|
|
491
|
-
lines: number;
|
|
492
|
-
bytes: number;
|
|
493
|
-
cnt?: number | undefined;
|
|
494
|
-
};
|
|
495
|
-
total: {
|
|
496
|
-
lines: number;
|
|
497
|
-
bytes: number;
|
|
498
|
-
cnt?: number | undefined;
|
|
499
|
-
};
|
|
500
|
-
};
|
|
501
|
-
usage: {
|
|
502
|
-
prompt_tokens: number;
|
|
503
|
-
completion_tokens: number;
|
|
504
|
-
total_tokens: number;
|
|
505
|
-
};
|
|
506
|
-
} | {
|
|
507
|
-
blockId: string;
|
|
508
|
-
streamId: string;
|
|
509
|
-
seq: number;
|
|
510
|
-
blockNr: number;
|
|
511
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
512
|
-
stats: {
|
|
513
|
-
lines: number;
|
|
514
|
-
bytes: number;
|
|
515
|
-
cnt?: number | undefined;
|
|
516
|
-
};
|
|
517
|
-
type: "block.image";
|
|
518
|
-
sectionId: string;
|
|
519
|
-
url: string;
|
|
520
|
-
} | {
|
|
521
|
-
blockId: string;
|
|
522
|
-
streamId: string;
|
|
523
|
-
seq: number;
|
|
524
|
-
blockNr: number;
|
|
525
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
526
|
-
type: "block.code.begin";
|
|
527
|
-
sectionId: string;
|
|
528
|
-
lang: string;
|
|
529
|
-
} | {
|
|
530
|
-
blockId: string;
|
|
531
|
-
streamId: string;
|
|
532
|
-
seq: number;
|
|
533
|
-
blockNr: number;
|
|
534
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
535
|
-
lineNr: number;
|
|
536
|
-
line: string;
|
|
537
|
-
type: "block.code.line";
|
|
538
|
-
sectionId: string;
|
|
539
|
-
lang: string;
|
|
540
|
-
} | {
|
|
541
|
-
blockId: string;
|
|
542
|
-
streamId: string;
|
|
543
|
-
seq: number;
|
|
544
|
-
blockNr: number;
|
|
545
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
546
|
-
stats: {
|
|
547
|
-
lines: number;
|
|
548
|
-
bytes: number;
|
|
549
|
-
cnt?: number | undefined;
|
|
550
|
-
};
|
|
551
|
-
type: "block.code.end";
|
|
552
|
-
sectionId: string;
|
|
553
|
-
lang: string;
|
|
554
|
-
} | {
|
|
555
|
-
blockId: string;
|
|
556
|
-
streamId: string;
|
|
557
|
-
seq: number;
|
|
558
|
-
blockNr: number;
|
|
559
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
560
|
-
type: "block.toplevel.begin";
|
|
561
|
-
sectionId: string;
|
|
562
|
-
} | {
|
|
563
|
-
blockId: string;
|
|
564
|
-
streamId: string;
|
|
565
|
-
seq: number;
|
|
566
|
-
blockNr: number;
|
|
567
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
568
|
-
lineNr: number;
|
|
569
|
-
line: string;
|
|
570
|
-
type: "block.toplevel.line";
|
|
571
|
-
sectionId: string;
|
|
572
|
-
} | {
|
|
573
|
-
blockId: string;
|
|
574
|
-
streamId: string;
|
|
575
|
-
seq: number;
|
|
576
|
-
blockNr: number;
|
|
577
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
578
|
-
stats: {
|
|
579
|
-
lines: number;
|
|
580
|
-
bytes: number;
|
|
581
|
-
cnt?: number | undefined;
|
|
582
|
-
};
|
|
583
|
-
type: "block.toplevel.end";
|
|
584
|
-
sectionId: string;
|
|
585
|
-
}, {}>;
|
|
586
|
-
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
587
|
-
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
588
|
-
type: "vibes.diy.section-event";
|
|
589
|
-
chatId: string;
|
|
590
|
-
promptId: string;
|
|
591
|
-
blockSeq: number;
|
|
592
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
593
|
-
blocks: ({
|
|
594
|
-
streamId: string;
|
|
595
|
-
chatId: string;
|
|
596
|
-
seq: number;
|
|
597
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
598
|
-
type: "prompt.block-begin";
|
|
599
|
-
} | {
|
|
600
|
-
streamId: string;
|
|
601
|
-
chatId: string;
|
|
602
|
-
seq: number;
|
|
603
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
604
|
-
type: "prompt.block-end";
|
|
605
|
-
} | {
|
|
606
|
-
streamId: string;
|
|
607
|
-
chatId: string;
|
|
608
|
-
seq: number;
|
|
609
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
610
|
-
type: "prompt.req";
|
|
611
|
-
request: {
|
|
612
|
-
model?: string | undefined;
|
|
613
|
-
messages: {
|
|
614
|
-
role: "assistant" | "system" | "user";
|
|
615
|
-
content: {
|
|
616
|
-
type: "text";
|
|
617
|
-
text: string;
|
|
618
|
-
}[];
|
|
619
|
-
}[];
|
|
620
|
-
stream?: boolean | undefined;
|
|
621
|
-
temperature?: number | undefined;
|
|
622
|
-
max_tokens?: number | undefined;
|
|
623
|
-
top_p?: number | undefined;
|
|
624
|
-
logprobs?: boolean | undefined;
|
|
625
|
-
top_logsprobs?: number | undefined;
|
|
626
|
-
frequency_penalty?: number | undefined;
|
|
627
|
-
presence_penalty?: number | undefined;
|
|
628
|
-
stop?: string | string[] | undefined;
|
|
629
|
-
};
|
|
630
|
-
} | {
|
|
631
|
-
streamId: string;
|
|
632
|
-
chatId: string;
|
|
633
|
-
seq: number;
|
|
634
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
635
|
-
type: "prompt.error";
|
|
636
|
-
error: string;
|
|
637
|
-
} | {
|
|
638
|
-
blockId: string;
|
|
639
|
-
streamId: string;
|
|
640
|
-
seq: number;
|
|
641
|
-
blockNr: number;
|
|
642
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
643
|
-
type: "block.begin";
|
|
644
|
-
} | {
|
|
645
|
-
blockId: string;
|
|
646
|
-
streamId: string;
|
|
647
|
-
seq: number;
|
|
648
|
-
blockNr: number;
|
|
649
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
650
|
-
type: "block.end";
|
|
651
|
-
stats: {
|
|
652
|
-
toplevel: {
|
|
653
|
-
lines: number;
|
|
654
|
-
bytes: number;
|
|
655
|
-
cnt?: number | undefined;
|
|
656
|
-
};
|
|
657
|
-
code: {
|
|
658
|
-
lines: number;
|
|
659
|
-
bytes: number;
|
|
660
|
-
cnt?: number | undefined;
|
|
661
|
-
};
|
|
662
|
-
image: {
|
|
663
|
-
lines: number;
|
|
664
|
-
bytes: number;
|
|
665
|
-
cnt?: number | undefined;
|
|
666
|
-
};
|
|
667
|
-
total: {
|
|
668
|
-
lines: number;
|
|
669
|
-
bytes: number;
|
|
670
|
-
cnt?: number | undefined;
|
|
671
|
-
};
|
|
672
|
-
};
|
|
673
|
-
usage: {
|
|
674
|
-
given: {
|
|
675
|
-
prompt_tokens: number;
|
|
676
|
-
completion_tokens: number;
|
|
677
|
-
total_tokens: number;
|
|
678
|
-
}[];
|
|
679
|
-
calculated: {
|
|
680
|
-
prompt_tokens: number;
|
|
681
|
-
completion_tokens: number;
|
|
682
|
-
total_tokens: number;
|
|
683
|
-
};
|
|
684
|
-
};
|
|
685
|
-
fsRef?: {
|
|
686
|
-
appSlug: string;
|
|
687
|
-
userSlug: string;
|
|
688
|
-
mode: "dev" | "production";
|
|
689
|
-
fsId: string;
|
|
690
|
-
} | undefined;
|
|
691
|
-
} | {
|
|
692
|
-
blockId: string;
|
|
693
|
-
streamId: string;
|
|
694
|
-
seq: number;
|
|
695
|
-
blockNr: number;
|
|
696
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
697
|
-
type: "block.stats";
|
|
698
|
-
stats: {
|
|
699
|
-
toplevel: {
|
|
700
|
-
lines: number;
|
|
701
|
-
bytes: number;
|
|
702
|
-
cnt?: number | undefined;
|
|
703
|
-
};
|
|
704
|
-
code: {
|
|
705
|
-
lines: number;
|
|
706
|
-
bytes: number;
|
|
707
|
-
cnt?: number | undefined;
|
|
708
|
-
};
|
|
709
|
-
image: {
|
|
710
|
-
lines: number;
|
|
711
|
-
bytes: number;
|
|
712
|
-
cnt?: number | undefined;
|
|
713
|
-
};
|
|
714
|
-
total: {
|
|
715
|
-
lines: number;
|
|
716
|
-
bytes: number;
|
|
717
|
-
cnt?: number | undefined;
|
|
718
|
-
};
|
|
719
|
-
};
|
|
720
|
-
usage: {
|
|
721
|
-
prompt_tokens: number;
|
|
722
|
-
completion_tokens: number;
|
|
723
|
-
total_tokens: number;
|
|
724
|
-
};
|
|
725
|
-
} | {
|
|
726
|
-
blockId: string;
|
|
727
|
-
streamId: string;
|
|
728
|
-
seq: number;
|
|
729
|
-
blockNr: number;
|
|
730
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
731
|
-
stats: {
|
|
732
|
-
lines: number;
|
|
733
|
-
bytes: number;
|
|
734
|
-
cnt?: number | undefined;
|
|
735
|
-
};
|
|
736
|
-
type: "block.image";
|
|
737
|
-
sectionId: string;
|
|
738
|
-
url: string;
|
|
739
|
-
} | {
|
|
740
|
-
blockId: string;
|
|
741
|
-
streamId: string;
|
|
742
|
-
seq: number;
|
|
743
|
-
blockNr: number;
|
|
744
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
745
|
-
type: "block.code.begin";
|
|
746
|
-
sectionId: string;
|
|
747
|
-
lang: string;
|
|
748
|
-
} | {
|
|
749
|
-
blockId: string;
|
|
750
|
-
streamId: string;
|
|
751
|
-
seq: number;
|
|
752
|
-
blockNr: number;
|
|
753
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
754
|
-
lineNr: number;
|
|
755
|
-
line: string;
|
|
756
|
-
type: "block.code.line";
|
|
757
|
-
sectionId: string;
|
|
758
|
-
lang: string;
|
|
759
|
-
} | {
|
|
760
|
-
blockId: string;
|
|
761
|
-
streamId: string;
|
|
762
|
-
seq: number;
|
|
763
|
-
blockNr: number;
|
|
764
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
765
|
-
stats: {
|
|
766
|
-
lines: number;
|
|
767
|
-
bytes: number;
|
|
768
|
-
cnt?: number | undefined;
|
|
769
|
-
};
|
|
770
|
-
type: "block.code.end";
|
|
771
|
-
sectionId: string;
|
|
772
|
-
lang: string;
|
|
773
|
-
} | {
|
|
774
|
-
blockId: string;
|
|
775
|
-
streamId: string;
|
|
776
|
-
seq: number;
|
|
777
|
-
blockNr: number;
|
|
778
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
779
|
-
type: "block.toplevel.begin";
|
|
780
|
-
sectionId: string;
|
|
781
|
-
} | {
|
|
782
|
-
blockId: string;
|
|
783
|
-
streamId: string;
|
|
784
|
-
seq: number;
|
|
785
|
-
blockNr: number;
|
|
786
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
787
|
-
lineNr: number;
|
|
788
|
-
line: string;
|
|
789
|
-
type: "block.toplevel.line";
|
|
790
|
-
sectionId: string;
|
|
791
|
-
} | {
|
|
792
|
-
blockId: string;
|
|
793
|
-
streamId: string;
|
|
794
|
-
seq: number;
|
|
795
|
-
blockNr: number;
|
|
796
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
797
|
-
stats: {
|
|
798
|
-
lines: number;
|
|
799
|
-
bytes: number;
|
|
800
|
-
cnt?: number | undefined;
|
|
801
|
-
};
|
|
802
|
-
type: "block.toplevel.end";
|
|
803
|
-
sectionId: string;
|
|
804
|
-
})[];
|
|
805
|
-
}, {}>;
|
|
806
|
-
export type SectionEvent = typeof sectionEvent.infer;
|
|
807
|
-
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
808
|
-
export type ResError = typeof resError.infer;
|
|
809
|
-
export type CodeID = string;
|
|
810
|
-
export type EnvID = string;
|
|
811
|
-
export declare const FSMode: import("arktype/internal/variants/string.ts").StringType<"dev" | "production", {}>;
|
|
812
|
-
export declare const AppSlugUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
813
|
-
appSlug: string;
|
|
814
|
-
userSlug: string;
|
|
815
|
-
}, {}>;
|
|
816
|
-
export type AppSlugUserSlug = typeof AppSlugUserSlug.infer;
|
|
817
|
-
export declare const OptAppSlugUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
818
|
-
appSlug?: string | undefined;
|
|
819
|
-
userSlug: string;
|
|
820
|
-
}, {}>;
|
|
821
|
-
export type OptAppSlugUserSlug = typeof OptAppSlugUserSlug.infer;
|
|
822
|
-
export declare const AppSlugOptUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
823
|
-
appSlug: string;
|
|
824
|
-
userSlug?: string | undefined;
|
|
825
|
-
}, {}>;
|
|
826
|
-
export type AppSlugOptUserSlug = typeof AppSlugOptUserSlug.infer;
|
|
827
|
-
export declare const OptAppSlugOptUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
828
|
-
appSlug?: string | undefined;
|
|
829
|
-
userSlug?: string | undefined;
|
|
830
|
-
}, {}>;
|
|
831
|
-
export type OptAppSlugOptUserSlug = typeof OptAppSlugOptUserSlug.infer;
|
|
832
|
-
export declare const NeedOneAppSlugUserSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
833
|
-
appSlug: string;
|
|
834
|
-
userSlug: string;
|
|
835
|
-
} | {
|
|
836
|
-
appSlug?: string | undefined;
|
|
837
|
-
userSlug: string;
|
|
838
|
-
} | {
|
|
839
|
-
appSlug: string;
|
|
840
|
-
userSlug?: string | undefined;
|
|
841
|
-
} | {
|
|
842
|
-
appSlug?: string | undefined;
|
|
843
|
-
userSlug?: string | undefined;
|
|
844
|
-
}, {}>;
|
|
845
|
-
export type NeedOneAppSlugUserSlug = typeof NeedOneAppSlugUserSlug.infer;
|
|
846
|
-
export declare const ReqEnsureAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
847
|
-
appSlug: string;
|
|
848
|
-
userSlug: string;
|
|
849
|
-
type: "vibes.diy.req-ensure-app-slug";
|
|
850
|
-
auth: {
|
|
851
|
-
type: "clerk" | "device-id" | "ucan";
|
|
852
|
-
token: string;
|
|
853
|
-
};
|
|
854
|
-
mode: "dev" | "production";
|
|
855
|
-
env?: Record<string, string> | undefined;
|
|
856
|
-
fileSystem: ({
|
|
857
|
-
filename: string;
|
|
858
|
-
entryPoint?: boolean | undefined;
|
|
859
|
-
mimetype?: string | undefined;
|
|
860
|
-
type: "code-block";
|
|
861
|
-
lang: string;
|
|
862
|
-
content: string;
|
|
863
|
-
} | {
|
|
864
|
-
filename: string;
|
|
865
|
-
entryPoint?: boolean | undefined;
|
|
866
|
-
mimetype?: string | undefined;
|
|
867
|
-
type: "code-ref";
|
|
868
|
-
refId: string;
|
|
869
|
-
} | {
|
|
870
|
-
filename: string;
|
|
871
|
-
entryPoint?: boolean | undefined;
|
|
872
|
-
mimetype?: string | undefined;
|
|
873
|
-
type: "str-asset-block";
|
|
874
|
-
content: string;
|
|
875
|
-
} | {
|
|
876
|
-
filename: string;
|
|
877
|
-
entryPoint?: boolean | undefined;
|
|
878
|
-
mimetype?: string | undefined;
|
|
879
|
-
type: "str-asset-ref";
|
|
880
|
-
refId: string;
|
|
881
|
-
} | {
|
|
882
|
-
filename: string;
|
|
883
|
-
entryPoint?: boolean | undefined;
|
|
884
|
-
mimetype?: string | undefined;
|
|
885
|
-
type: "uint8-asset-block";
|
|
886
|
-
content: Uint8Array<ArrayBuffer>;
|
|
887
|
-
} | {
|
|
888
|
-
filename: string;
|
|
889
|
-
entryPoint?: boolean | undefined;
|
|
890
|
-
mimetype?: string | undefined;
|
|
891
|
-
type: "uint8-asset-ref";
|
|
892
|
-
refId: string;
|
|
893
|
-
})[];
|
|
894
|
-
} | {
|
|
895
|
-
appSlug?: string | undefined;
|
|
896
|
-
userSlug: string;
|
|
897
|
-
type: "vibes.diy.req-ensure-app-slug";
|
|
898
|
-
auth: {
|
|
899
|
-
type: "clerk" | "device-id" | "ucan";
|
|
900
|
-
token: string;
|
|
901
|
-
};
|
|
902
|
-
mode: "dev" | "production";
|
|
903
|
-
env?: Record<string, string> | undefined;
|
|
904
|
-
fileSystem: ({
|
|
905
|
-
filename: string;
|
|
906
|
-
entryPoint?: boolean | undefined;
|
|
907
|
-
mimetype?: string | undefined;
|
|
908
|
-
type: "code-block";
|
|
909
|
-
lang: string;
|
|
910
|
-
content: string;
|
|
911
|
-
} | {
|
|
912
|
-
filename: string;
|
|
913
|
-
entryPoint?: boolean | undefined;
|
|
914
|
-
mimetype?: string | undefined;
|
|
915
|
-
type: "code-ref";
|
|
916
|
-
refId: string;
|
|
917
|
-
} | {
|
|
918
|
-
filename: string;
|
|
919
|
-
entryPoint?: boolean | undefined;
|
|
920
|
-
mimetype?: string | undefined;
|
|
921
|
-
type: "str-asset-block";
|
|
922
|
-
content: string;
|
|
923
|
-
} | {
|
|
924
|
-
filename: string;
|
|
925
|
-
entryPoint?: boolean | undefined;
|
|
926
|
-
mimetype?: string | undefined;
|
|
927
|
-
type: "str-asset-ref";
|
|
928
|
-
refId: string;
|
|
929
|
-
} | {
|
|
930
|
-
filename: string;
|
|
931
|
-
entryPoint?: boolean | undefined;
|
|
932
|
-
mimetype?: string | undefined;
|
|
933
|
-
type: "uint8-asset-block";
|
|
934
|
-
content: Uint8Array<ArrayBuffer>;
|
|
935
|
-
} | {
|
|
936
|
-
filename: string;
|
|
937
|
-
entryPoint?: boolean | undefined;
|
|
938
|
-
mimetype?: string | undefined;
|
|
939
|
-
type: "uint8-asset-ref";
|
|
940
|
-
refId: string;
|
|
941
|
-
})[];
|
|
942
|
-
} | {
|
|
943
|
-
appSlug: string;
|
|
944
|
-
userSlug?: string | undefined;
|
|
945
|
-
type: "vibes.diy.req-ensure-app-slug";
|
|
946
|
-
auth: {
|
|
947
|
-
type: "clerk" | "device-id" | "ucan";
|
|
948
|
-
token: string;
|
|
949
|
-
};
|
|
950
|
-
mode: "dev" | "production";
|
|
951
|
-
env?: Record<string, string> | undefined;
|
|
952
|
-
fileSystem: ({
|
|
953
|
-
filename: string;
|
|
954
|
-
entryPoint?: boolean | undefined;
|
|
955
|
-
mimetype?: string | undefined;
|
|
956
|
-
type: "code-block";
|
|
957
|
-
lang: string;
|
|
958
|
-
content: string;
|
|
959
|
-
} | {
|
|
960
|
-
filename: string;
|
|
961
|
-
entryPoint?: boolean | undefined;
|
|
962
|
-
mimetype?: string | undefined;
|
|
963
|
-
type: "code-ref";
|
|
964
|
-
refId: string;
|
|
965
|
-
} | {
|
|
966
|
-
filename: string;
|
|
967
|
-
entryPoint?: boolean | undefined;
|
|
968
|
-
mimetype?: string | undefined;
|
|
969
|
-
type: "str-asset-block";
|
|
970
|
-
content: string;
|
|
971
|
-
} | {
|
|
972
|
-
filename: string;
|
|
973
|
-
entryPoint?: boolean | undefined;
|
|
974
|
-
mimetype?: string | undefined;
|
|
975
|
-
type: "str-asset-ref";
|
|
976
|
-
refId: string;
|
|
977
|
-
} | {
|
|
978
|
-
filename: string;
|
|
979
|
-
entryPoint?: boolean | undefined;
|
|
980
|
-
mimetype?: string | undefined;
|
|
981
|
-
type: "uint8-asset-block";
|
|
982
|
-
content: Uint8Array<ArrayBuffer>;
|
|
983
|
-
} | {
|
|
984
|
-
filename: string;
|
|
985
|
-
entryPoint?: boolean | undefined;
|
|
986
|
-
mimetype?: string | undefined;
|
|
987
|
-
type: "uint8-asset-ref";
|
|
988
|
-
refId: string;
|
|
989
|
-
})[];
|
|
990
|
-
} | {
|
|
991
|
-
appSlug?: string | undefined;
|
|
992
|
-
userSlug?: string | undefined;
|
|
993
|
-
type: "vibes.diy.req-ensure-app-slug";
|
|
994
|
-
auth: {
|
|
995
|
-
type: "clerk" | "device-id" | "ucan";
|
|
996
|
-
token: string;
|
|
997
|
-
};
|
|
998
|
-
mode: "dev" | "production";
|
|
999
|
-
env?: Record<string, string> | undefined;
|
|
1000
|
-
fileSystem: ({
|
|
1001
|
-
filename: string;
|
|
1002
|
-
entryPoint?: boolean | undefined;
|
|
1003
|
-
mimetype?: string | undefined;
|
|
1004
|
-
type: "code-block";
|
|
1005
|
-
lang: string;
|
|
1006
|
-
content: string;
|
|
1007
|
-
} | {
|
|
1008
|
-
filename: string;
|
|
1009
|
-
entryPoint?: boolean | undefined;
|
|
1010
|
-
mimetype?: string | undefined;
|
|
1011
|
-
type: "code-ref";
|
|
1012
|
-
refId: string;
|
|
1013
|
-
} | {
|
|
1014
|
-
filename: string;
|
|
1015
|
-
entryPoint?: boolean | undefined;
|
|
1016
|
-
mimetype?: string | undefined;
|
|
1017
|
-
type: "str-asset-block";
|
|
1018
|
-
content: string;
|
|
1019
|
-
} | {
|
|
1020
|
-
filename: string;
|
|
1021
|
-
entryPoint?: boolean | undefined;
|
|
1022
|
-
mimetype?: string | undefined;
|
|
1023
|
-
type: "str-asset-ref";
|
|
1024
|
-
refId: string;
|
|
1025
|
-
} | {
|
|
1026
|
-
filename: string;
|
|
1027
|
-
entryPoint?: boolean | undefined;
|
|
1028
|
-
mimetype?: string | undefined;
|
|
1029
|
-
type: "uint8-asset-block";
|
|
1030
|
-
content: Uint8Array<ArrayBuffer>;
|
|
1031
|
-
} | {
|
|
1032
|
-
filename: string;
|
|
1033
|
-
entryPoint?: boolean | undefined;
|
|
1034
|
-
mimetype?: string | undefined;
|
|
1035
|
-
type: "uint8-asset-ref";
|
|
1036
|
-
refId: string;
|
|
1037
|
-
})[];
|
|
1038
|
-
}, {}>;
|
|
1039
|
-
export type ReqEnsureAppSlug = typeof ReqEnsureAppSlug.infer;
|
|
1040
|
-
export declare const resEnsureAppSlugOk: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1041
|
-
appSlug: string;
|
|
1042
|
-
userSlug: string;
|
|
1043
|
-
mode: "dev" | "production";
|
|
1044
|
-
fsId: string;
|
|
1045
|
-
type: "vibes.diy.res-ensure-app-slug";
|
|
1046
|
-
env: Record<string, string>;
|
|
1047
|
-
fileSystem: {
|
|
1048
|
-
fileName: string;
|
|
1049
|
-
mimeType: string;
|
|
1050
|
-
assetId: string;
|
|
1051
|
-
assetURI: string;
|
|
1052
|
-
transform?: {
|
|
1053
|
-
type: "jsx-to-js";
|
|
1054
|
-
transformedAssetId: string;
|
|
1055
|
-
} | {
|
|
1056
|
-
type: "imports";
|
|
1057
|
-
importMapAssetId: string;
|
|
1058
|
-
} | {
|
|
1059
|
-
type: "import-map";
|
|
1060
|
-
fromAssetIds: string[];
|
|
1061
|
-
} | {
|
|
1062
|
-
type: "transformed";
|
|
1063
|
-
action: "jsx-to-js";
|
|
1064
|
-
transformedAssetId: string;
|
|
1065
|
-
} | undefined;
|
|
1066
|
-
entryPoint?: boolean | undefined;
|
|
1067
|
-
size: number;
|
|
1068
|
-
}[];
|
|
1069
|
-
}, {}>;
|
|
1070
|
-
export type ResEnsureAppSlugOk = typeof resEnsureAppSlugOk.infer;
|
|
1071
|
-
export declare const resEnsureAppSlugRequireLogin: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1072
|
-
type: "vibes.diy.error";
|
|
1073
|
-
message: string;
|
|
1074
|
-
code: "require-login";
|
|
1075
|
-
stack?: string[] | undefined;
|
|
1076
|
-
}, {}>;
|
|
1077
|
-
export type ResEnsureAppSlugRequireLogin = typeof resEnsureAppSlugRequireLogin.infer;
|
|
1078
|
-
export declare function isResEnsureAppSlugOk(obj: unknown): obj is ResEnsureAppSlugOk;
|
|
1079
|
-
export declare const resEnsureAppSlugUserSlugInvalid: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1080
|
-
type: "vibes.diy.error";
|
|
1081
|
-
message: string;
|
|
1082
|
-
code: "user-slug-invalid";
|
|
1083
|
-
stack?: string[] | undefined;
|
|
1084
|
-
}, {}>;
|
|
1085
|
-
export type ResEnsureAppSlugUserSlugInvalid = typeof resEnsureAppSlugUserSlugInvalid.infer;
|
|
1086
|
-
export declare function isResEnsureAppSlugUserSlugInvalid(obj: unknown): obj is ResEnsureAppSlugUserSlugInvalid;
|
|
1087
|
-
export declare const resEnsureAppSlugInvalid: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1088
|
-
type: "vibes.diy.error";
|
|
1089
|
-
message: string;
|
|
1090
|
-
code: "app-slug-invalid";
|
|
1091
|
-
stack?: string[] | undefined;
|
|
1092
|
-
}, {}>;
|
|
1093
|
-
export type ResEnsureAppSlugInvalid = typeof resEnsureAppSlugInvalid.infer;
|
|
1094
|
-
export declare function isResEnsureAppSlugInvalid(obj: unknown): obj is ResEnsureAppSlugInvalid;
|
|
1095
|
-
export declare const resEnsureAppSlugError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1096
|
-
type: "vibes.diy.error";
|
|
1097
|
-
message: string;
|
|
1098
|
-
code: "require-login";
|
|
1099
|
-
stack?: string[] | undefined;
|
|
1100
|
-
} | {
|
|
1101
|
-
type: "vibes.diy.error";
|
|
1102
|
-
message: string;
|
|
1103
|
-
code: "user-slug-invalid";
|
|
1104
|
-
stack?: string[] | undefined;
|
|
1105
|
-
} | {
|
|
1106
|
-
type: "vibes.diy.error";
|
|
1107
|
-
message: string;
|
|
1108
|
-
code: "app-slug-invalid";
|
|
1109
|
-
stack?: string[] | undefined;
|
|
1110
|
-
}, {}>;
|
|
1111
|
-
export declare const resEnsureAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1112
|
-
appSlug: string;
|
|
1113
|
-
userSlug: string;
|
|
1114
|
-
mode: "dev" | "production";
|
|
1115
|
-
fsId: string;
|
|
1116
|
-
type: "vibes.diy.res-ensure-app-slug";
|
|
1117
|
-
env: Record<string, string>;
|
|
1118
|
-
fileSystem: {
|
|
1119
|
-
fileName: string;
|
|
1120
|
-
mimeType: string;
|
|
1121
|
-
assetId: string;
|
|
1122
|
-
assetURI: string;
|
|
1123
|
-
transform?: {
|
|
1124
|
-
type: "jsx-to-js";
|
|
1125
|
-
transformedAssetId: string;
|
|
1126
|
-
} | {
|
|
1127
|
-
type: "imports";
|
|
1128
|
-
importMapAssetId: string;
|
|
1129
|
-
} | {
|
|
1130
|
-
type: "import-map";
|
|
1131
|
-
fromAssetIds: string[];
|
|
1132
|
-
} | {
|
|
1133
|
-
type: "transformed";
|
|
1134
|
-
action: "jsx-to-js";
|
|
1135
|
-
transformedAssetId: string;
|
|
1136
|
-
} | undefined;
|
|
1137
|
-
entryPoint?: boolean | undefined;
|
|
1138
|
-
size: number;
|
|
1139
|
-
}[];
|
|
1140
|
-
} | {
|
|
1141
|
-
type: "vibes.diy.error";
|
|
1142
|
-
message: string;
|
|
1143
|
-
code: "require-login";
|
|
1144
|
-
stack?: string[] | undefined;
|
|
1145
|
-
} | {
|
|
1146
|
-
type: "vibes.diy.error";
|
|
1147
|
-
message: string;
|
|
1148
|
-
code: "user-slug-invalid";
|
|
1149
|
-
stack?: string[] | undefined;
|
|
1150
|
-
} | {
|
|
1151
|
-
type: "vibes.diy.error";
|
|
1152
|
-
message: string;
|
|
1153
|
-
code: "app-slug-invalid";
|
|
1154
|
-
stack?: string[] | undefined;
|
|
1155
|
-
}, {}>;
|
|
1156
|
-
export type ResEnsureAppSlugError = typeof resEnsureAppSlugError.infer;
|
|
1157
|
-
export type ResEnsureAppSlug = typeof resEnsureAppSlug.infer;
|
|
1158
|
-
export declare function isResEnsureAppSlug(obj: unknown): obj is ResEnsureAppSlug;
|
|
1159
|
-
export declare const reqGetChatDetails: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1160
|
-
type: "vibes.diy.req-get-chat-details";
|
|
1161
|
-
auth: {
|
|
1162
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1163
|
-
token: string;
|
|
1164
|
-
};
|
|
1165
|
-
userSlug: string;
|
|
1166
|
-
appSlug: string;
|
|
1167
|
-
}, {}>;
|
|
1168
|
-
export type ReqGetChatDetails = typeof reqGetChatDetails.infer;
|
|
1169
|
-
export declare const resChatDetailsPrompt: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1170
|
-
prompt: string;
|
|
1171
|
-
fsId: string;
|
|
1172
|
-
created: string;
|
|
1173
|
-
}, {}>;
|
|
1174
|
-
export type ResChatDetailsPrompt = typeof resChatDetailsPrompt.infer;
|
|
1175
|
-
export declare const resGetChatDetails: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1176
|
-
type: "vibes.diy.res-get-chat-details";
|
|
1177
|
-
chatId: string;
|
|
1178
|
-
userSlug: string;
|
|
1179
|
-
appSlug: string;
|
|
1180
|
-
prompts: {
|
|
1181
|
-
prompt: string;
|
|
1182
|
-
fsId: string;
|
|
1183
|
-
created: string;
|
|
1184
|
-
}[];
|
|
1185
|
-
}, {}>;
|
|
1186
|
-
export type ResGetChatDetails = typeof resGetChatDetails.infer;
|
|
1187
|
-
export declare function isResGetChatDetails(obj: unknown): obj is ResGetChatDetails;
|
|
1188
|
-
export declare const reqGetAppByFsId: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1189
|
-
type: "vibes.diy.req-get-app-by-fsid";
|
|
1190
|
-
auth?: {
|
|
1191
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1192
|
-
token: string;
|
|
1193
|
-
} | undefined;
|
|
1194
|
-
fsId?: string | undefined;
|
|
1195
|
-
appSlug: string;
|
|
1196
|
-
userSlug: string;
|
|
1197
|
-
token?: string | undefined;
|
|
1198
|
-
}, {}>;
|
|
1199
|
-
export type ReqGetAppByFsId = typeof reqGetAppByFsId.infer;
|
|
1200
|
-
export declare function isReqGetAppByFsId(obj: unknown): obj is ReqGetAppByFsId;
|
|
1201
|
-
export declare const resGetAppByFsId: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1202
|
-
type: "vibes.diy.res-get-app-by-fsid";
|
|
1203
|
-
error?: string | undefined;
|
|
1204
|
-
appSlug: string;
|
|
1205
|
-
userSlug: string;
|
|
1206
|
-
fsId?: string | undefined;
|
|
1207
|
-
mode: "dev" | "production";
|
|
1208
|
-
grant: "accepted-email-invite" | "granted-access.editor" | "granted-access.viewer" | "not-found" | "not-grant" | "owner" | "pending-request" | "public-access" | "req-login.invite" | "req-login.request" | "revoked-access";
|
|
1209
|
-
releaseSeq: number;
|
|
1210
|
-
env: Record<string, string>;
|
|
1211
|
-
fileSystem: {
|
|
1212
|
-
fileName: string;
|
|
1213
|
-
mimeType: string;
|
|
1214
|
-
assetId: string;
|
|
1215
|
-
assetURI: string;
|
|
1216
|
-
transform?: {
|
|
1217
|
-
type: "jsx-to-js";
|
|
1218
|
-
transformedAssetId: string;
|
|
1219
|
-
} | {
|
|
1220
|
-
type: "imports";
|
|
1221
|
-
importMapAssetId: string;
|
|
1222
|
-
} | {
|
|
1223
|
-
type: "import-map";
|
|
1224
|
-
fromAssetIds: string[];
|
|
1225
|
-
} | {
|
|
1226
|
-
type: "transformed";
|
|
1227
|
-
action: "jsx-to-js";
|
|
1228
|
-
transformedAssetId: string;
|
|
1229
|
-
} | undefined;
|
|
1230
|
-
entryPoint?: boolean | undefined;
|
|
1231
|
-
size: number;
|
|
1232
|
-
}[];
|
|
1233
|
-
meta: ({
|
|
1234
|
-
type: "screen-shot-ref";
|
|
1235
|
-
assetUrl: string;
|
|
1236
|
-
mime: string;
|
|
1237
|
-
} | {
|
|
1238
|
-
type: "title";
|
|
1239
|
-
title: string;
|
|
1240
|
-
})[];
|
|
1241
|
-
created: string;
|
|
1242
|
-
}, {}>;
|
|
1243
|
-
export type ResGetAppByFsId = typeof resGetAppByFsId.infer;
|
|
1244
|
-
export declare function isResGetAppByFsId(obj: unknown): obj is ResGetAppByFsId;
|
|
1245
|
-
export declare const reqGetByUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1246
|
-
type: "vibes.diy.req-get-by-user-slug-app-slug";
|
|
1247
|
-
auth: {
|
|
1248
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1249
|
-
token: string;
|
|
1250
|
-
};
|
|
1251
|
-
userSlug: string;
|
|
1252
|
-
appSlug: string;
|
|
1253
|
-
}, {}>;
|
|
1254
|
-
export declare const reqListUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1255
|
-
type: "vibes.diy.req-list-user-slug-app-slug";
|
|
1256
|
-
auth: {
|
|
1257
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1258
|
-
token: string;
|
|
1259
|
-
};
|
|
1260
|
-
userSlug?: string | undefined;
|
|
1261
|
-
appSlug?: string | undefined;
|
|
1262
|
-
}, {}>;
|
|
1263
|
-
export type ReqListUserSlugAppSlug = typeof reqListUserSlugAppSlug.infer;
|
|
1264
|
-
export declare function isReqListUserSlugAppSlug(obj: unknown): obj is ReqListUserSlugAppSlug;
|
|
1265
|
-
export declare const resListUserSlugAppSlugItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1266
|
-
userId: string;
|
|
1267
|
-
userSlug: string;
|
|
1268
|
-
appSlugs: string[];
|
|
1269
|
-
}, {}>;
|
|
1270
|
-
export type ResListUserSlugAppSlugItem = typeof resListUserSlugAppSlugItem.infer;
|
|
1271
|
-
export declare const resListUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1272
|
-
type: "vibes.diy.res-list-user-slug-app-slug";
|
|
1273
|
-
items: {
|
|
1274
|
-
userId: string;
|
|
1275
|
-
userSlug: string;
|
|
1276
|
-
appSlugs: string[];
|
|
1277
|
-
}[];
|
|
1278
|
-
}, {}>;
|
|
1279
|
-
export type ResListUserSlugAppSlug = typeof resListUserSlugAppSlug.infer;
|
|
1280
|
-
export declare function isResListUserSlugAppSlug(obj: unknown): obj is ResListUserSlugAppSlug;
|
|
1281
|
-
export type ReqGetByUserSlugAppSlug = typeof reqGetByUserSlugAppSlug.infer;
|
|
1282
|
-
export declare function isReqGetByUserSlugAppSlug(obj: unknown): obj is ReqGetByUserSlugAppSlug;
|
|
1283
|
-
export declare const resGetByUserSlugAppSlug: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1284
|
-
appSlug: string;
|
|
1285
|
-
userSlug: string;
|
|
1286
|
-
mode: "dev" | "production";
|
|
1287
|
-
fsId: string;
|
|
1288
|
-
type: "vibes.diy.res-get-by-user-slug-app-slug";
|
|
1289
|
-
}, {}>;
|
|
1290
|
-
export type ResGetByUserSlugAppSlug = typeof resGetByUserSlugAppSlug.infer;
|
|
1291
|
-
export declare function isResGetByUserSlugAppSlug(obj: unknown): obj is ResGetByUserSlugAppSlug;
|
|
1292
|
-
export declare const msgBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1293
|
-
tid: string;
|
|
1294
|
-
src: string;
|
|
1295
|
-
dst: string;
|
|
1296
|
-
ttl: number;
|
|
1297
|
-
payload: unknown;
|
|
1298
|
-
}, {}>;
|
|
1299
|
-
export type msgBaseType = typeof msgBase.infer;
|
|
1300
|
-
export declare function isMsgBase(obj: unknown): obj is msgBaseType;
|
|
1301
|
-
export interface MsgBase<T = unknown> extends Omit<msgBaseType, "payload"> {
|
|
1302
|
-
payload: T;
|
|
1303
|
-
}
|
|
1304
|
-
export interface InMsgBase<T> {
|
|
1305
|
-
readonly tid: string;
|
|
1306
|
-
readonly src?: string;
|
|
1307
|
-
readonly dst?: string;
|
|
1308
|
-
readonly ttl?: number;
|
|
1309
|
-
readonly payload: T;
|
|
1310
|
-
}
|
|
1311
|
-
export interface MsgBox<T = unknown> extends Omit<MsgBase, "payload"> {
|
|
1312
|
-
payload: T;
|
|
1313
|
-
}
|
|
1314
|
-
export type MsgBaseCfg = Pick<MsgBase, "src" | "dst" | "ttl">;
|
|
1315
|
-
export type MsgBaseParam = Partial<MsgBaseCfg>;
|
|
1316
|
-
export type VibesDiyError = (ResError | ResEnsureAppSlugError) & Error;
|
|
1317
|
-
export type ResultVibesDiy<T> = Result<T, VibesDiyError>;
|
|
1318
|
-
export declare const w3cMessageEventBox: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1319
|
-
type: "MessageEvent";
|
|
1320
|
-
event: {
|
|
1321
|
-
data?: unknown;
|
|
1322
|
-
origin?: string | null | undefined;
|
|
1323
|
-
lastEventId?: string | undefined;
|
|
1324
|
-
source?: unknown;
|
|
1325
|
-
ports?: unknown;
|
|
1326
|
-
};
|
|
1327
|
-
}, {}>;
|
|
1328
|
-
export declare const w3cCloseEventBox: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1329
|
-
type: "CloseEvent";
|
|
1330
|
-
event: {
|
|
1331
|
-
wasClean: boolean;
|
|
1332
|
-
code: number;
|
|
1333
|
-
reason: string;
|
|
1334
|
-
};
|
|
1335
|
-
}, {}>;
|
|
1336
|
-
export declare const w3cErrorEventBox: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1337
|
-
type: "ErrorEvent";
|
|
1338
|
-
event: {
|
|
1339
|
-
message?: string | undefined;
|
|
1340
|
-
filename?: string | undefined;
|
|
1341
|
-
lineno?: number | undefined;
|
|
1342
|
-
colno?: number | undefined;
|
|
1343
|
-
error?: unknown;
|
|
1344
|
-
};
|
|
1345
|
-
}, {}>;
|
|
1346
|
-
export declare const w3CWebSocketEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1347
|
-
type: "MessageEvent";
|
|
1348
|
-
event: {
|
|
1349
|
-
data?: unknown;
|
|
1350
|
-
origin?: string | null | undefined;
|
|
1351
|
-
lastEventId?: string | undefined;
|
|
1352
|
-
source?: unknown;
|
|
1353
|
-
ports?: unknown;
|
|
1354
|
-
};
|
|
1355
|
-
} | {
|
|
1356
|
-
type: "CloseEvent";
|
|
1357
|
-
event: {
|
|
1358
|
-
wasClean: boolean;
|
|
1359
|
-
code: number;
|
|
1360
|
-
reason: string;
|
|
1361
|
-
};
|
|
1362
|
-
} | {
|
|
1363
|
-
type: "ErrorEvent";
|
|
1364
|
-
event: {
|
|
1365
|
-
message?: string | undefined;
|
|
1366
|
-
filename?: string | undefined;
|
|
1367
|
-
lineno?: number | undefined;
|
|
1368
|
-
colno?: number | undefined;
|
|
1369
|
-
error?: unknown;
|
|
1370
|
-
};
|
|
1371
|
-
}, {}>;
|
|
1372
|
-
export type W3CWebSocketEvent = typeof w3CWebSocketEvent.infer;
|
|
1373
|
-
export type W3CWebSocketErrorEvent = typeof w3cErrorEventBox.infer;
|
|
1374
|
-
export type W3CWebSocketMessageEvent = typeof w3cMessageEventBox.infer;
|
|
1375
|
-
export type W3CWebSocketCloseEvent = typeof w3cCloseEventBox.infer;
|
|
1376
|
-
export declare const userSettingShareing: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1377
|
-
type: "sharing";
|
|
1378
|
-
grants: {
|
|
1379
|
-
grant: "allow" | "deny";
|
|
1380
|
-
appSlug: string;
|
|
1381
|
-
userSlug: string;
|
|
1382
|
-
dbName: string;
|
|
1383
|
-
}[];
|
|
1384
|
-
}, {}>;
|
|
1385
|
-
export declare function isUserSettingSharing(obj: unknown): obj is typeof userSettingShareing.infer;
|
|
1386
|
-
export declare const userSettingItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1387
|
-
type: "sharing";
|
|
1388
|
-
grants: {
|
|
1389
|
-
grant: "allow" | "deny";
|
|
1390
|
-
appSlug: string;
|
|
1391
|
-
userSlug: string;
|
|
1392
|
-
dbName: string;
|
|
1393
|
-
}[];
|
|
1394
|
-
}, {}>;
|
|
1395
|
-
export type UserSettingItem = typeof userSettingItem.infer;
|
|
1396
|
-
export declare const reqEnsureUserSettings: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1397
|
-
type: "vibes.diy.req-ensure-user-settings";
|
|
1398
|
-
auth: {
|
|
1399
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1400
|
-
token: string;
|
|
1401
|
-
};
|
|
1402
|
-
settings: {
|
|
1403
|
-
type: "sharing";
|
|
1404
|
-
grants: {
|
|
1405
|
-
grant: "allow" | "deny";
|
|
1406
|
-
appSlug: string;
|
|
1407
|
-
userSlug: string;
|
|
1408
|
-
dbName: string;
|
|
1409
|
-
}[];
|
|
1410
|
-
}[];
|
|
1411
|
-
}, {}>;
|
|
1412
|
-
export type ReqEnsureUserSettings = typeof reqEnsureUserSettings.infer;
|
|
1413
|
-
export declare const resEnsureUserSettings: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1414
|
-
type: "vibes.diy.res-ensure-user-settings";
|
|
1415
|
-
userId: string;
|
|
1416
|
-
settings: {
|
|
1417
|
-
type: "sharing";
|
|
1418
|
-
grants: {
|
|
1419
|
-
grant: "allow" | "deny";
|
|
1420
|
-
appSlug: string;
|
|
1421
|
-
userSlug: string;
|
|
1422
|
-
dbName: string;
|
|
1423
|
-
}[];
|
|
1424
|
-
}[];
|
|
1425
|
-
updated: string;
|
|
1426
|
-
created: string;
|
|
1427
|
-
}, {}>;
|
|
1428
|
-
export type ResEnsureUserSettings = typeof resEnsureUserSettings.infer;
|
|
1429
|
-
export declare function isResEnsureUserSettings(obj: unknown): obj is ResEnsureUserSettings;
|
|
1430
|
-
export declare const reqEnsureAppSettingsBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1431
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1432
|
-
auth?: {
|
|
1433
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1434
|
-
token: string;
|
|
1435
|
-
} | undefined;
|
|
1436
|
-
appSlug: string;
|
|
1437
|
-
userSlug: string;
|
|
1438
|
-
}, {}>;
|
|
1439
|
-
export type ReqEnsureAppSettingsBase = typeof reqEnsureAppSettingsBase.infer;
|
|
1440
|
-
export declare function isReqEnsureAppSettingsBase(obj: unknown): obj is ReqEnsureAppSettingsBase;
|
|
1441
|
-
export declare const reqEnsureAppSettingsAcl: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1442
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1443
|
-
auth?: {
|
|
1444
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1445
|
-
token: string;
|
|
1446
|
-
} | undefined;
|
|
1447
|
-
appSlug: string;
|
|
1448
|
-
userSlug: string;
|
|
1449
|
-
aclEntry: {
|
|
1450
|
-
entry: {
|
|
1451
|
-
type: "app.acl.active.invite";
|
|
1452
|
-
role: "editor";
|
|
1453
|
-
state: "pending";
|
|
1454
|
-
invite: {
|
|
1455
|
-
email: string;
|
|
1456
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1457
|
-
};
|
|
1458
|
-
token: string;
|
|
1459
|
-
} | {
|
|
1460
|
-
type: "app.acl.active.invite";
|
|
1461
|
-
role: "viewer";
|
|
1462
|
-
state: "pending";
|
|
1463
|
-
invite: {
|
|
1464
|
-
email: string;
|
|
1465
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1466
|
-
};
|
|
1467
|
-
token: string;
|
|
1468
|
-
} | {
|
|
1469
|
-
type: "app.acl.active.invite";
|
|
1470
|
-
role: "editor";
|
|
1471
|
-
state: "accepted";
|
|
1472
|
-
invite: {
|
|
1473
|
-
email: string;
|
|
1474
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1475
|
-
};
|
|
1476
|
-
grant: {
|
|
1477
|
-
ownerId: string;
|
|
1478
|
-
key?: string | undefined;
|
|
1479
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1480
|
-
};
|
|
1481
|
-
tick: {
|
|
1482
|
-
count: number;
|
|
1483
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1484
|
-
};
|
|
1485
|
-
} | {
|
|
1486
|
-
type: "app.acl.active.invite";
|
|
1487
|
-
role: "viewer";
|
|
1488
|
-
state: "accepted";
|
|
1489
|
-
invite: {
|
|
1490
|
-
email: string;
|
|
1491
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1492
|
-
};
|
|
1493
|
-
grant: {
|
|
1494
|
-
ownerId: string;
|
|
1495
|
-
key?: string | undefined;
|
|
1496
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1497
|
-
};
|
|
1498
|
-
tick: {
|
|
1499
|
-
count: number;
|
|
1500
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1501
|
-
};
|
|
1502
|
-
} | {
|
|
1503
|
-
type: "app.acl.active.invite";
|
|
1504
|
-
role: "editor";
|
|
1505
|
-
state: "revoked";
|
|
1506
|
-
invite: {
|
|
1507
|
-
email: string;
|
|
1508
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1509
|
-
};
|
|
1510
|
-
grant: {
|
|
1511
|
-
ownerId: string;
|
|
1512
|
-
key?: string | undefined;
|
|
1513
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1514
|
-
};
|
|
1515
|
-
tick: {
|
|
1516
|
-
count: number;
|
|
1517
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1518
|
-
};
|
|
1519
|
-
} | {
|
|
1520
|
-
type: "app.acl.active.invite";
|
|
1521
|
-
role: "viewer";
|
|
1522
|
-
state: "revoked";
|
|
1523
|
-
invite: {
|
|
1524
|
-
email: string;
|
|
1525
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1526
|
-
};
|
|
1527
|
-
grant: {
|
|
1528
|
-
ownerId: string;
|
|
1529
|
-
key?: string | undefined;
|
|
1530
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1531
|
-
};
|
|
1532
|
-
tick: {
|
|
1533
|
-
count: number;
|
|
1534
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1535
|
-
};
|
|
1536
|
-
} | {
|
|
1537
|
-
type: "app.acl.active.request";
|
|
1538
|
-
role: "viewer";
|
|
1539
|
-
state: "pending";
|
|
1540
|
-
request: {
|
|
1541
|
-
key: string;
|
|
1542
|
-
provider: "clerk" | "github" | "google";
|
|
1543
|
-
msg?: string | undefined;
|
|
1544
|
-
userId: string;
|
|
1545
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1546
|
-
};
|
|
1547
|
-
} | {
|
|
1548
|
-
type: "app.acl.active.request";
|
|
1549
|
-
role: "editor" | "viewer";
|
|
1550
|
-
state: "approved";
|
|
1551
|
-
request: {
|
|
1552
|
-
key: string;
|
|
1553
|
-
provider: "clerk" | "github" | "google";
|
|
1554
|
-
msg?: string | undefined;
|
|
1555
|
-
userId: string;
|
|
1556
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1557
|
-
};
|
|
1558
|
-
tick: {
|
|
1559
|
-
count: number;
|
|
1560
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1561
|
-
};
|
|
1562
|
-
grant: {
|
|
1563
|
-
ownerId: string;
|
|
1564
|
-
key?: string | undefined;
|
|
1565
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1566
|
-
};
|
|
1567
|
-
} | {
|
|
1568
|
-
type: "app.acl.active.request";
|
|
1569
|
-
role: "editor" | "viewer";
|
|
1570
|
-
state: "rejected";
|
|
1571
|
-
request: {
|
|
1572
|
-
key: string;
|
|
1573
|
-
provider: "clerk" | "github" | "google";
|
|
1574
|
-
msg?: string | undefined;
|
|
1575
|
-
userId: string;
|
|
1576
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1577
|
-
};
|
|
1578
|
-
grant: {
|
|
1579
|
-
ownerId: string;
|
|
1580
|
-
key?: string | undefined;
|
|
1581
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1582
|
-
};
|
|
1583
|
-
};
|
|
1584
|
-
op: "delete" | "upsert";
|
|
1585
|
-
};
|
|
1586
|
-
}, {}>;
|
|
1587
|
-
export type ReqEnsureAppSettingsAcl = typeof reqEnsureAppSettingsAcl.infer;
|
|
1588
|
-
export declare function isReqEnsureAppSettingsAcl(obj: unknown): obj is ReqEnsureAppSettingsAcl;
|
|
1589
|
-
export declare const reqPublicAccess: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1590
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1591
|
-
auth?: {
|
|
1592
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1593
|
-
token: string;
|
|
1594
|
-
} | undefined;
|
|
1595
|
-
appSlug: string;
|
|
1596
|
-
userSlug: string;
|
|
1597
|
-
publicAccess: {
|
|
1598
|
-
enable: boolean;
|
|
1599
|
-
};
|
|
1600
|
-
}, {}>;
|
|
1601
|
-
export type ReqPublicAccess = typeof reqPublicAccess.infer;
|
|
1602
|
-
export declare function isReqPublicAccess(obj: unknown): obj is ReqPublicAccess;
|
|
1603
|
-
export declare const reqRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1604
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1605
|
-
auth?: {
|
|
1606
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1607
|
-
token: string;
|
|
1608
|
-
} | undefined;
|
|
1609
|
-
appSlug: string;
|
|
1610
|
-
userSlug: string;
|
|
1611
|
-
request: {
|
|
1612
|
-
enable: boolean;
|
|
1613
|
-
autoAcceptViewRequest?: boolean | undefined;
|
|
1614
|
-
};
|
|
1615
|
-
}, {}>;
|
|
1616
|
-
export type ReqRequest = typeof reqRequest.infer;
|
|
1617
|
-
export declare function isReqRequest(obj: unknown): obj is ReqRequest;
|
|
1618
|
-
export declare const reqEnsureAppSettingsTitle: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1619
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1620
|
-
auth?: {
|
|
1621
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1622
|
-
token: string;
|
|
1623
|
-
} | undefined;
|
|
1624
|
-
appSlug: string;
|
|
1625
|
-
userSlug: string;
|
|
1626
|
-
title: string;
|
|
1627
|
-
}, {}>;
|
|
1628
|
-
export type ReqEnsureAppSettingsTitle = typeof reqEnsureAppSettingsTitle.infer;
|
|
1629
|
-
export declare function isReqEnsureAppSettingsTitle(obj: unknown): obj is ReqEnsureAppSettingsTitle;
|
|
1630
|
-
export declare const reqEnsureAppSettingsApp: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1631
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1632
|
-
auth?: {
|
|
1633
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1634
|
-
token: string;
|
|
1635
|
-
} | undefined;
|
|
1636
|
-
appSlug: string;
|
|
1637
|
-
userSlug: string;
|
|
1638
|
-
app: {
|
|
1639
|
-
model?: string | undefined;
|
|
1640
|
-
apiKey?: string | undefined;
|
|
1641
|
-
};
|
|
1642
|
-
}, {}>;
|
|
1643
|
-
export type ReqEnsureAppSettingsApp = typeof reqEnsureAppSettingsApp.infer;
|
|
1644
|
-
export declare function isReqEnsureAppSettingsApp(obj: unknown): obj is ReqEnsureAppSettingsApp;
|
|
1645
|
-
export declare const reqEnsureAppSettingsChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1646
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1647
|
-
auth?: {
|
|
1648
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1649
|
-
token: string;
|
|
1650
|
-
} | undefined;
|
|
1651
|
-
appSlug: string;
|
|
1652
|
-
userSlug: string;
|
|
1653
|
-
chat: {
|
|
1654
|
-
model?: string | undefined;
|
|
1655
|
-
apiKey?: string | undefined;
|
|
1656
|
-
};
|
|
1657
|
-
}, {}>;
|
|
1658
|
-
export type ReqEnsureAppSettingsChat = typeof reqEnsureAppSettingsChat.infer;
|
|
1659
|
-
export declare function isReqEnsureAppSettingsChat(obj: unknown): obj is ReqEnsureAppSettingsChat;
|
|
1660
|
-
export declare const reqEnsureAppSettingsEnv: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1661
|
-
type: "vibes.diy.req-ensure-app-settings";
|
|
1662
|
-
auth?: {
|
|
1663
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1664
|
-
token: string;
|
|
1665
|
-
} | undefined;
|
|
1666
|
-
appSlug: string;
|
|
1667
|
-
userSlug: string;
|
|
1668
|
-
env: {
|
|
1669
|
-
key: string;
|
|
1670
|
-
value: string;
|
|
1671
|
-
}[];
|
|
1672
|
-
}, {}>;
|
|
1673
|
-
export type ReqEnsureAppSettingsEnv = typeof reqEnsureAppSettingsEnv.infer;
|
|
1674
|
-
export declare function isReqEnsureAppSettingsEnv(obj: unknown): obj is ReqEnsureAppSettingsEnv;
|
|
1675
|
-
export type ReqEnsureAppSettings = ReqPublicAccess | ReqRequest | ReqEnsureAppSettingsTitle | ReqEnsureAppSettingsApp | ReqEnsureAppSettingsChat | ReqEnsureAppSettingsEnv | ReqEnsureAppSettingsBase;
|
|
1676
|
-
export declare function isReqEnsureAppSettings(obj: unknown): obj is ReqEnsureAppSettings;
|
|
1677
|
-
export declare const AppSettings: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1678
|
-
entries: ({
|
|
1679
|
-
type: "app.acl.active.invite";
|
|
1680
|
-
role: "editor";
|
|
1681
|
-
state: "pending";
|
|
1682
|
-
invite: {
|
|
1683
|
-
email: string;
|
|
1684
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1685
|
-
};
|
|
1686
|
-
token: string;
|
|
1687
|
-
} | {
|
|
1688
|
-
type: "app.acl.active.invite";
|
|
1689
|
-
role: "viewer";
|
|
1690
|
-
state: "pending";
|
|
1691
|
-
invite: {
|
|
1692
|
-
email: string;
|
|
1693
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1694
|
-
};
|
|
1695
|
-
token: string;
|
|
1696
|
-
} | {
|
|
1697
|
-
type: "app.acl.active.invite";
|
|
1698
|
-
role: "editor";
|
|
1699
|
-
state: "accepted";
|
|
1700
|
-
invite: {
|
|
1701
|
-
email: string;
|
|
1702
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1703
|
-
};
|
|
1704
|
-
grant: {
|
|
1705
|
-
ownerId: string;
|
|
1706
|
-
key?: string | undefined;
|
|
1707
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1708
|
-
};
|
|
1709
|
-
tick: {
|
|
1710
|
-
count: number;
|
|
1711
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1712
|
-
};
|
|
1713
|
-
} | {
|
|
1714
|
-
type: "app.acl.active.invite";
|
|
1715
|
-
role: "viewer";
|
|
1716
|
-
state: "accepted";
|
|
1717
|
-
invite: {
|
|
1718
|
-
email: string;
|
|
1719
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1720
|
-
};
|
|
1721
|
-
grant: {
|
|
1722
|
-
ownerId: string;
|
|
1723
|
-
key?: string | undefined;
|
|
1724
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1725
|
-
};
|
|
1726
|
-
tick: {
|
|
1727
|
-
count: number;
|
|
1728
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1729
|
-
};
|
|
1730
|
-
} | {
|
|
1731
|
-
type: "app.acl.active.invite";
|
|
1732
|
-
role: "editor";
|
|
1733
|
-
state: "revoked";
|
|
1734
|
-
invite: {
|
|
1735
|
-
email: string;
|
|
1736
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1737
|
-
};
|
|
1738
|
-
grant: {
|
|
1739
|
-
ownerId: string;
|
|
1740
|
-
key?: string | undefined;
|
|
1741
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1742
|
-
};
|
|
1743
|
-
tick: {
|
|
1744
|
-
count: number;
|
|
1745
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1746
|
-
};
|
|
1747
|
-
} | {
|
|
1748
|
-
type: "app.acl.active.invite";
|
|
1749
|
-
role: "viewer";
|
|
1750
|
-
state: "revoked";
|
|
1751
|
-
invite: {
|
|
1752
|
-
email: string;
|
|
1753
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1754
|
-
};
|
|
1755
|
-
grant: {
|
|
1756
|
-
ownerId: string;
|
|
1757
|
-
key?: string | undefined;
|
|
1758
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1759
|
-
};
|
|
1760
|
-
tick: {
|
|
1761
|
-
count: number;
|
|
1762
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1763
|
-
};
|
|
1764
|
-
} | {
|
|
1765
|
-
type: "app.acl.active.request";
|
|
1766
|
-
role: "viewer";
|
|
1767
|
-
state: "pending";
|
|
1768
|
-
request: {
|
|
1769
|
-
key: string;
|
|
1770
|
-
provider: "clerk" | "github" | "google";
|
|
1771
|
-
msg?: string | undefined;
|
|
1772
|
-
userId: string;
|
|
1773
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1774
|
-
};
|
|
1775
|
-
} | {
|
|
1776
|
-
type: "app.acl.active.request";
|
|
1777
|
-
role: "editor" | "viewer";
|
|
1778
|
-
state: "approved";
|
|
1779
|
-
request: {
|
|
1780
|
-
key: string;
|
|
1781
|
-
provider: "clerk" | "github" | "google";
|
|
1782
|
-
msg?: string | undefined;
|
|
1783
|
-
userId: string;
|
|
1784
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1785
|
-
};
|
|
1786
|
-
tick: {
|
|
1787
|
-
count: number;
|
|
1788
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1789
|
-
};
|
|
1790
|
-
grant: {
|
|
1791
|
-
ownerId: string;
|
|
1792
|
-
key?: string | undefined;
|
|
1793
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1794
|
-
};
|
|
1795
|
-
} | {
|
|
1796
|
-
type: "app.acl.active.request";
|
|
1797
|
-
role: "editor" | "viewer";
|
|
1798
|
-
state: "rejected";
|
|
1799
|
-
request: {
|
|
1800
|
-
key: string;
|
|
1801
|
-
provider: "clerk" | "github" | "google";
|
|
1802
|
-
msg?: string | undefined;
|
|
1803
|
-
userId: string;
|
|
1804
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1805
|
-
};
|
|
1806
|
-
grant: {
|
|
1807
|
-
ownerId: string;
|
|
1808
|
-
key?: string | undefined;
|
|
1809
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1810
|
-
};
|
|
1811
|
-
} | {
|
|
1812
|
-
type: "app.public.access";
|
|
1813
|
-
enable: boolean;
|
|
1814
|
-
tick?: {
|
|
1815
|
-
count: number;
|
|
1816
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1817
|
-
} | undefined;
|
|
1818
|
-
} | {
|
|
1819
|
-
type: "app.request";
|
|
1820
|
-
enable: boolean;
|
|
1821
|
-
autoAcceptViewRequest?: boolean | null | undefined;
|
|
1822
|
-
} | {
|
|
1823
|
-
type: "active.title";
|
|
1824
|
-
title: string;
|
|
1825
|
-
} | {
|
|
1826
|
-
type: "active.model";
|
|
1827
|
-
param: {
|
|
1828
|
-
model: string;
|
|
1829
|
-
apiKey?: string | undefined;
|
|
1830
|
-
};
|
|
1831
|
-
usage: "chat";
|
|
1832
|
-
} | {
|
|
1833
|
-
type: "active.model";
|
|
1834
|
-
param: {
|
|
1835
|
-
model: string;
|
|
1836
|
-
apiKey?: string | undefined;
|
|
1837
|
-
};
|
|
1838
|
-
usage: "app";
|
|
1839
|
-
} | {
|
|
1840
|
-
type: "active.env";
|
|
1841
|
-
env: {
|
|
1842
|
-
key: string;
|
|
1843
|
-
value: string;
|
|
1844
|
-
}[];
|
|
1845
|
-
})[];
|
|
1846
|
-
entry: {
|
|
1847
|
-
settings: {
|
|
1848
|
-
title?: string | undefined;
|
|
1849
|
-
app?: {
|
|
1850
|
-
model?: string | undefined;
|
|
1851
|
-
apiKey?: string | undefined;
|
|
1852
|
-
} | undefined;
|
|
1853
|
-
chat?: {
|
|
1854
|
-
model?: string | undefined;
|
|
1855
|
-
apiKey?: string | undefined;
|
|
1856
|
-
} | undefined;
|
|
1857
|
-
env: {
|
|
1858
|
-
key: string;
|
|
1859
|
-
value: string;
|
|
1860
|
-
}[];
|
|
1861
|
-
};
|
|
1862
|
-
publicAccess?: {
|
|
1863
|
-
type: "app.public.access";
|
|
1864
|
-
enable: boolean;
|
|
1865
|
-
tick?: {
|
|
1866
|
-
count: number;
|
|
1867
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1868
|
-
} | undefined;
|
|
1869
|
-
} | undefined;
|
|
1870
|
-
enableRequest?: {
|
|
1871
|
-
type: "app.request";
|
|
1872
|
-
enable: boolean;
|
|
1873
|
-
autoAcceptViewRequest?: boolean | null | undefined;
|
|
1874
|
-
} | undefined;
|
|
1875
|
-
};
|
|
1876
|
-
}, {}>;
|
|
1877
|
-
export type AppSettings = typeof AppSettings.infer;
|
|
1878
|
-
export declare const resEnsureAppSettings: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1879
|
-
type: "vibes.diy.res-ensure-app-settings";
|
|
1880
|
-
userId: string;
|
|
1881
|
-
appSlug: string;
|
|
1882
|
-
ledger: string;
|
|
1883
|
-
userSlug: string;
|
|
1884
|
-
tenant: string;
|
|
1885
|
-
error?: string | undefined;
|
|
1886
|
-
settings: {
|
|
1887
|
-
entries: ({
|
|
1888
|
-
type: "app.acl.active.invite";
|
|
1889
|
-
role: "editor";
|
|
1890
|
-
state: "pending";
|
|
1891
|
-
invite: {
|
|
1892
|
-
email: string;
|
|
1893
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1894
|
-
};
|
|
1895
|
-
token: string;
|
|
1896
|
-
} | {
|
|
1897
|
-
type: "app.acl.active.invite";
|
|
1898
|
-
role: "viewer";
|
|
1899
|
-
state: "pending";
|
|
1900
|
-
invite: {
|
|
1901
|
-
email: string;
|
|
1902
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1903
|
-
};
|
|
1904
|
-
token: string;
|
|
1905
|
-
} | {
|
|
1906
|
-
type: "app.acl.active.invite";
|
|
1907
|
-
role: "editor";
|
|
1908
|
-
state: "accepted";
|
|
1909
|
-
invite: {
|
|
1910
|
-
email: string;
|
|
1911
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1912
|
-
};
|
|
1913
|
-
grant: {
|
|
1914
|
-
ownerId: string;
|
|
1915
|
-
key?: string | undefined;
|
|
1916
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1917
|
-
};
|
|
1918
|
-
tick: {
|
|
1919
|
-
count: number;
|
|
1920
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1921
|
-
};
|
|
1922
|
-
} | {
|
|
1923
|
-
type: "app.acl.active.invite";
|
|
1924
|
-
role: "viewer";
|
|
1925
|
-
state: "accepted";
|
|
1926
|
-
invite: {
|
|
1927
|
-
email: string;
|
|
1928
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1929
|
-
};
|
|
1930
|
-
grant: {
|
|
1931
|
-
ownerId: string;
|
|
1932
|
-
key?: string | undefined;
|
|
1933
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1934
|
-
};
|
|
1935
|
-
tick: {
|
|
1936
|
-
count: number;
|
|
1937
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1938
|
-
};
|
|
1939
|
-
} | {
|
|
1940
|
-
type: "app.acl.active.invite";
|
|
1941
|
-
role: "editor";
|
|
1942
|
-
state: "revoked";
|
|
1943
|
-
invite: {
|
|
1944
|
-
email: string;
|
|
1945
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1946
|
-
};
|
|
1947
|
-
grant: {
|
|
1948
|
-
ownerId: string;
|
|
1949
|
-
key?: string | undefined;
|
|
1950
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1951
|
-
};
|
|
1952
|
-
tick: {
|
|
1953
|
-
count: number;
|
|
1954
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1955
|
-
};
|
|
1956
|
-
} | {
|
|
1957
|
-
type: "app.acl.active.invite";
|
|
1958
|
-
role: "viewer";
|
|
1959
|
-
state: "revoked";
|
|
1960
|
-
invite: {
|
|
1961
|
-
email: string;
|
|
1962
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1963
|
-
};
|
|
1964
|
-
grant: {
|
|
1965
|
-
ownerId: string;
|
|
1966
|
-
key?: string | undefined;
|
|
1967
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1968
|
-
};
|
|
1969
|
-
tick: {
|
|
1970
|
-
count: number;
|
|
1971
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1972
|
-
};
|
|
1973
|
-
} | {
|
|
1974
|
-
type: "app.acl.active.request";
|
|
1975
|
-
role: "viewer";
|
|
1976
|
-
state: "pending";
|
|
1977
|
-
request: {
|
|
1978
|
-
key: string;
|
|
1979
|
-
provider: "clerk" | "github" | "google";
|
|
1980
|
-
msg?: string | undefined;
|
|
1981
|
-
userId: string;
|
|
1982
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1983
|
-
};
|
|
1984
|
-
} | {
|
|
1985
|
-
type: "app.acl.active.request";
|
|
1986
|
-
role: "editor" | "viewer";
|
|
1987
|
-
state: "approved";
|
|
1988
|
-
request: {
|
|
1989
|
-
key: string;
|
|
1990
|
-
provider: "clerk" | "github" | "google";
|
|
1991
|
-
msg?: string | undefined;
|
|
1992
|
-
userId: string;
|
|
1993
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1994
|
-
};
|
|
1995
|
-
tick: {
|
|
1996
|
-
count: number;
|
|
1997
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1998
|
-
};
|
|
1999
|
-
grant: {
|
|
2000
|
-
ownerId: string;
|
|
2001
|
-
key?: string | undefined;
|
|
2002
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2003
|
-
};
|
|
2004
|
-
} | {
|
|
2005
|
-
type: "app.acl.active.request";
|
|
2006
|
-
role: "editor" | "viewer";
|
|
2007
|
-
state: "rejected";
|
|
2008
|
-
request: {
|
|
2009
|
-
key: string;
|
|
2010
|
-
provider: "clerk" | "github" | "google";
|
|
2011
|
-
msg?: string | undefined;
|
|
2012
|
-
userId: string;
|
|
2013
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2014
|
-
};
|
|
2015
|
-
grant: {
|
|
2016
|
-
ownerId: string;
|
|
2017
|
-
key?: string | undefined;
|
|
2018
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2019
|
-
};
|
|
2020
|
-
} | {
|
|
2021
|
-
type: "app.public.access";
|
|
2022
|
-
enable: boolean;
|
|
2023
|
-
tick?: {
|
|
2024
|
-
count: number;
|
|
2025
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2026
|
-
} | undefined;
|
|
2027
|
-
} | {
|
|
2028
|
-
type: "app.request";
|
|
2029
|
-
enable: boolean;
|
|
2030
|
-
autoAcceptViewRequest?: boolean | null | undefined;
|
|
2031
|
-
} | {
|
|
2032
|
-
type: "active.title";
|
|
2033
|
-
title: string;
|
|
2034
|
-
} | {
|
|
2035
|
-
type: "active.model";
|
|
2036
|
-
param: {
|
|
2037
|
-
model: string;
|
|
2038
|
-
apiKey?: string | undefined;
|
|
2039
|
-
};
|
|
2040
|
-
usage: "chat";
|
|
2041
|
-
} | {
|
|
2042
|
-
type: "active.model";
|
|
2043
|
-
param: {
|
|
2044
|
-
model: string;
|
|
2045
|
-
apiKey?: string | undefined;
|
|
2046
|
-
};
|
|
2047
|
-
usage: "app";
|
|
2048
|
-
} | {
|
|
2049
|
-
type: "active.env";
|
|
2050
|
-
env: {
|
|
2051
|
-
key: string;
|
|
2052
|
-
value: string;
|
|
2053
|
-
}[];
|
|
2054
|
-
})[];
|
|
2055
|
-
entry: {
|
|
2056
|
-
settings: {
|
|
2057
|
-
title?: string | undefined;
|
|
2058
|
-
app?: {
|
|
2059
|
-
model?: string | undefined;
|
|
2060
|
-
apiKey?: string | undefined;
|
|
2061
|
-
} | undefined;
|
|
2062
|
-
chat?: {
|
|
2063
|
-
model?: string | undefined;
|
|
2064
|
-
apiKey?: string | undefined;
|
|
2065
|
-
} | undefined;
|
|
2066
|
-
env: {
|
|
2067
|
-
key: string;
|
|
2068
|
-
value: string;
|
|
2069
|
-
}[];
|
|
2070
|
-
};
|
|
2071
|
-
publicAccess?: {
|
|
2072
|
-
type: "app.public.access";
|
|
2073
|
-
enable: boolean;
|
|
2074
|
-
tick?: {
|
|
2075
|
-
count: number;
|
|
2076
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2077
|
-
} | undefined;
|
|
2078
|
-
} | undefined;
|
|
2079
|
-
enableRequest?: {
|
|
2080
|
-
type: "app.request";
|
|
2081
|
-
enable: boolean;
|
|
2082
|
-
autoAcceptViewRequest?: boolean | null | undefined;
|
|
2083
|
-
} | undefined;
|
|
2084
|
-
};
|
|
2085
|
-
};
|
|
2086
|
-
updated: string;
|
|
2087
|
-
created: string;
|
|
2088
|
-
}, {}>;
|
|
2089
|
-
export type ResEnsureAppSettings = typeof resEnsureAppSettings.infer;
|
|
2090
|
-
export declare function isResEnsureAppSettings(obj: unknown): obj is ResEnsureAppSettings;
|
|
2091
|
-
export declare const reqListApplicationChats: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2092
|
-
type: "vibes.diy.req-list-application-chats";
|
|
2093
|
-
auth: {
|
|
2094
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2095
|
-
token: string;
|
|
2096
|
-
};
|
|
2097
|
-
appSlug?: string | undefined;
|
|
2098
|
-
userSlug?: string | undefined;
|
|
2099
|
-
limit?: number | undefined;
|
|
2100
|
-
cursor?: string | undefined;
|
|
2101
|
-
}, {}>;
|
|
2102
|
-
export type ReqListApplicationChats = typeof reqListApplicationChats.infer;
|
|
2103
|
-
export declare const resListApplicationChatsItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2104
|
-
chatId: string;
|
|
2105
|
-
appSlug: string;
|
|
2106
|
-
userSlug: string;
|
|
2107
|
-
created: string;
|
|
2108
|
-
}, {}>;
|
|
2109
|
-
export type ResListApplicationChatsItem = typeof resListApplicationChatsItem.infer;
|
|
2110
|
-
export declare const resListApplicationChats: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2111
|
-
type: "vibes.diy.res-list-application-chats";
|
|
2112
|
-
items: {
|
|
2113
|
-
chatId: string;
|
|
2114
|
-
appSlug: string;
|
|
2115
|
-
userSlug: string;
|
|
2116
|
-
created: string;
|
|
2117
|
-
}[];
|
|
2118
|
-
nextCursor?: string | undefined;
|
|
2119
|
-
}, {}>;
|
|
2120
|
-
export type ResListApplicationChats = typeof resListApplicationChats.infer;
|
|
2121
|
-
export declare function isResListApplicationChats(obj: unknown): obj is ResListApplicationChats;
|
|
2122
|
-
export declare const Pager: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2123
|
-
limit?: number | undefined;
|
|
2124
|
-
cursor?: string | undefined;
|
|
2125
|
-
}, {}>;
|
|
2126
|
-
export type Pager = typeof Pager.infer;
|
|
2127
|
-
export declare const KeyGrantKey: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2128
|
-
appSlug: string;
|
|
2129
|
-
userSlug: string;
|
|
2130
|
-
grantType: "invite" | "request";
|
|
2131
|
-
key: string;
|
|
2132
|
-
}, {}>;
|
|
2133
|
-
export type KeyGrantKey = typeof KeyGrantKey.infer;
|
|
2134
|
-
export declare const ResKeyGrantItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2135
|
-
entry: {
|
|
2136
|
-
type: "app.acl.active.invite";
|
|
2137
|
-
role: "editor";
|
|
2138
|
-
state: "pending";
|
|
2139
|
-
invite: {
|
|
2140
|
-
email: string;
|
|
2141
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2142
|
-
};
|
|
2143
|
-
token: string;
|
|
2144
|
-
} | {
|
|
2145
|
-
type: "app.acl.active.invite";
|
|
2146
|
-
role: "viewer";
|
|
2147
|
-
state: "pending";
|
|
2148
|
-
invite: {
|
|
2149
|
-
email: string;
|
|
2150
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2151
|
-
};
|
|
2152
|
-
token: string;
|
|
2153
|
-
} | {
|
|
2154
|
-
type: "app.acl.active.invite";
|
|
2155
|
-
role: "editor";
|
|
2156
|
-
state: "accepted";
|
|
2157
|
-
invite: {
|
|
2158
|
-
email: string;
|
|
2159
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2160
|
-
};
|
|
2161
|
-
grant: {
|
|
2162
|
-
ownerId: string;
|
|
2163
|
-
key?: string | undefined;
|
|
2164
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2165
|
-
};
|
|
2166
|
-
tick: {
|
|
2167
|
-
count: number;
|
|
2168
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2169
|
-
};
|
|
2170
|
-
} | {
|
|
2171
|
-
type: "app.acl.active.invite";
|
|
2172
|
-
role: "viewer";
|
|
2173
|
-
state: "accepted";
|
|
2174
|
-
invite: {
|
|
2175
|
-
email: string;
|
|
2176
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2177
|
-
};
|
|
2178
|
-
grant: {
|
|
2179
|
-
ownerId: string;
|
|
2180
|
-
key?: string | undefined;
|
|
2181
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2182
|
-
};
|
|
2183
|
-
tick: {
|
|
2184
|
-
count: number;
|
|
2185
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2186
|
-
};
|
|
2187
|
-
} | {
|
|
2188
|
-
type: "app.acl.active.invite";
|
|
2189
|
-
role: "editor";
|
|
2190
|
-
state: "revoked";
|
|
2191
|
-
invite: {
|
|
2192
|
-
email: string;
|
|
2193
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2194
|
-
};
|
|
2195
|
-
grant: {
|
|
2196
|
-
ownerId: string;
|
|
2197
|
-
key?: string | undefined;
|
|
2198
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2199
|
-
};
|
|
2200
|
-
tick: {
|
|
2201
|
-
count: number;
|
|
2202
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2203
|
-
};
|
|
2204
|
-
} | {
|
|
2205
|
-
type: "app.acl.active.invite";
|
|
2206
|
-
role: "viewer";
|
|
2207
|
-
state: "revoked";
|
|
2208
|
-
invite: {
|
|
2209
|
-
email: string;
|
|
2210
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2211
|
-
};
|
|
2212
|
-
grant: {
|
|
2213
|
-
ownerId: string;
|
|
2214
|
-
key?: string | undefined;
|
|
2215
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2216
|
-
};
|
|
2217
|
-
tick: {
|
|
2218
|
-
count: number;
|
|
2219
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2220
|
-
};
|
|
2221
|
-
} | {
|
|
2222
|
-
type: "app.acl.active.request";
|
|
2223
|
-
role: "viewer";
|
|
2224
|
-
state: "pending";
|
|
2225
|
-
request: {
|
|
2226
|
-
key: string;
|
|
2227
|
-
provider: "clerk" | "github" | "google";
|
|
2228
|
-
msg?: string | undefined;
|
|
2229
|
-
userId: string;
|
|
2230
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2231
|
-
};
|
|
2232
|
-
} | {
|
|
2233
|
-
type: "app.acl.active.request";
|
|
2234
|
-
role: "editor" | "viewer";
|
|
2235
|
-
state: "approved";
|
|
2236
|
-
request: {
|
|
2237
|
-
key: string;
|
|
2238
|
-
provider: "clerk" | "github" | "google";
|
|
2239
|
-
msg?: string | undefined;
|
|
2240
|
-
userId: string;
|
|
2241
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2242
|
-
};
|
|
2243
|
-
tick: {
|
|
2244
|
-
count: number;
|
|
2245
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2246
|
-
};
|
|
2247
|
-
grant: {
|
|
2248
|
-
ownerId: string;
|
|
2249
|
-
key?: string | undefined;
|
|
2250
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2251
|
-
};
|
|
2252
|
-
} | {
|
|
2253
|
-
type: "app.acl.active.request";
|
|
2254
|
-
role: "editor" | "viewer";
|
|
2255
|
-
state: "rejected";
|
|
2256
|
-
request: {
|
|
2257
|
-
key: string;
|
|
2258
|
-
provider: "clerk" | "github" | "google";
|
|
2259
|
-
msg?: string | undefined;
|
|
2260
|
-
userId: string;
|
|
2261
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2262
|
-
};
|
|
2263
|
-
grant: {
|
|
2264
|
-
ownerId: string;
|
|
2265
|
-
key?: string | undefined;
|
|
2266
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2267
|
-
};
|
|
2268
|
-
};
|
|
2269
|
-
grantUserId?: string | undefined;
|
|
2270
|
-
grantType: "invite" | "request";
|
|
2271
|
-
key: string;
|
|
2272
|
-
updated: string;
|
|
2273
|
-
}, {}>;
|
|
2274
|
-
export type ResKeyGrantItem = typeof ResKeyGrantItem.infer;
|
|
2275
|
-
export declare const ReqListKeyGrants: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2276
|
-
type: "vibes.diy.req-list-key-grants";
|
|
2277
|
-
auth: {
|
|
2278
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2279
|
-
token: string;
|
|
2280
|
-
};
|
|
2281
|
-
pager: {
|
|
2282
|
-
limit?: number | undefined;
|
|
2283
|
-
cursor?: string | undefined;
|
|
2284
|
-
};
|
|
2285
|
-
appSlug: string;
|
|
2286
|
-
grantType: "invite" | "request";
|
|
2287
|
-
userSlug: string;
|
|
2288
|
-
}, {}>;
|
|
2289
|
-
export type ReqListKeyGrants = typeof ReqListKeyGrants.infer;
|
|
2290
|
-
export declare function isReqListKeyGrants(obj: unknown): obj is ReqListKeyGrants;
|
|
2291
|
-
export declare const ResListKeyGrants: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2292
|
-
type: "vibes.diy.res-list-key-grants";
|
|
2293
|
-
items: {
|
|
2294
|
-
key: string;
|
|
2295
|
-
entry: {
|
|
2296
|
-
type: "app.acl.active.invite";
|
|
2297
|
-
role: "editor";
|
|
2298
|
-
state: "pending";
|
|
2299
|
-
invite: {
|
|
2300
|
-
email: string;
|
|
2301
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2302
|
-
};
|
|
2303
|
-
token: string;
|
|
2304
|
-
} | {
|
|
2305
|
-
type: "app.acl.active.invite";
|
|
2306
|
-
role: "viewer";
|
|
2307
|
-
state: "pending";
|
|
2308
|
-
invite: {
|
|
2309
|
-
email: string;
|
|
2310
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2311
|
-
};
|
|
2312
|
-
token: string;
|
|
2313
|
-
} | {
|
|
2314
|
-
type: "app.acl.active.invite";
|
|
2315
|
-
role: "editor";
|
|
2316
|
-
state: "accepted";
|
|
2317
|
-
invite: {
|
|
2318
|
-
email: string;
|
|
2319
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2320
|
-
};
|
|
2321
|
-
grant: {
|
|
2322
|
-
ownerId: string;
|
|
2323
|
-
key?: string | undefined;
|
|
2324
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2325
|
-
};
|
|
2326
|
-
tick: {
|
|
2327
|
-
count: number;
|
|
2328
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2329
|
-
};
|
|
2330
|
-
} | {
|
|
2331
|
-
type: "app.acl.active.invite";
|
|
2332
|
-
role: "viewer";
|
|
2333
|
-
state: "accepted";
|
|
2334
|
-
invite: {
|
|
2335
|
-
email: string;
|
|
2336
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2337
|
-
};
|
|
2338
|
-
grant: {
|
|
2339
|
-
ownerId: string;
|
|
2340
|
-
key?: string | undefined;
|
|
2341
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2342
|
-
};
|
|
2343
|
-
tick: {
|
|
2344
|
-
count: number;
|
|
2345
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2346
|
-
};
|
|
2347
|
-
} | {
|
|
2348
|
-
type: "app.acl.active.invite";
|
|
2349
|
-
role: "editor";
|
|
2350
|
-
state: "revoked";
|
|
2351
|
-
invite: {
|
|
2352
|
-
email: string;
|
|
2353
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2354
|
-
};
|
|
2355
|
-
grant: {
|
|
2356
|
-
ownerId: string;
|
|
2357
|
-
key?: string | undefined;
|
|
2358
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2359
|
-
};
|
|
2360
|
-
tick: {
|
|
2361
|
-
count: number;
|
|
2362
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2363
|
-
};
|
|
2364
|
-
} | {
|
|
2365
|
-
type: "app.acl.active.invite";
|
|
2366
|
-
role: "viewer";
|
|
2367
|
-
state: "revoked";
|
|
2368
|
-
invite: {
|
|
2369
|
-
email: string;
|
|
2370
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2371
|
-
};
|
|
2372
|
-
grant: {
|
|
2373
|
-
ownerId: string;
|
|
2374
|
-
key?: string | undefined;
|
|
2375
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2376
|
-
};
|
|
2377
|
-
tick: {
|
|
2378
|
-
count: number;
|
|
2379
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2380
|
-
};
|
|
2381
|
-
} | {
|
|
2382
|
-
type: "app.acl.active.request";
|
|
2383
|
-
role: "viewer";
|
|
2384
|
-
state: "pending";
|
|
2385
|
-
request: {
|
|
2386
|
-
key: string;
|
|
2387
|
-
provider: "clerk" | "github" | "google";
|
|
2388
|
-
msg?: string | undefined;
|
|
2389
|
-
userId: string;
|
|
2390
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2391
|
-
};
|
|
2392
|
-
} | {
|
|
2393
|
-
type: "app.acl.active.request";
|
|
2394
|
-
role: "editor" | "viewer";
|
|
2395
|
-
state: "approved";
|
|
2396
|
-
request: {
|
|
2397
|
-
key: string;
|
|
2398
|
-
provider: "clerk" | "github" | "google";
|
|
2399
|
-
msg?: string | undefined;
|
|
2400
|
-
userId: string;
|
|
2401
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2402
|
-
};
|
|
2403
|
-
tick: {
|
|
2404
|
-
count: number;
|
|
2405
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2406
|
-
};
|
|
2407
|
-
grant: {
|
|
2408
|
-
ownerId: string;
|
|
2409
|
-
key?: string | undefined;
|
|
2410
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2411
|
-
};
|
|
2412
|
-
} | {
|
|
2413
|
-
type: "app.acl.active.request";
|
|
2414
|
-
role: "editor" | "viewer";
|
|
2415
|
-
state: "rejected";
|
|
2416
|
-
request: {
|
|
2417
|
-
key: string;
|
|
2418
|
-
provider: "clerk" | "github" | "google";
|
|
2419
|
-
msg?: string | undefined;
|
|
2420
|
-
userId: string;
|
|
2421
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2422
|
-
};
|
|
2423
|
-
grant: {
|
|
2424
|
-
ownerId: string;
|
|
2425
|
-
key?: string | undefined;
|
|
2426
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2427
|
-
};
|
|
2428
|
-
};
|
|
2429
|
-
grantUserId?: string | undefined;
|
|
2430
|
-
updated: string;
|
|
2431
|
-
created: string;
|
|
2432
|
-
}[];
|
|
2433
|
-
nextCursor?: string | undefined;
|
|
2434
|
-
appSlug: string;
|
|
2435
|
-
grantType: "invite" | "request";
|
|
2436
|
-
userSlug: string;
|
|
2437
|
-
}, {}>;
|
|
2438
|
-
export type ResListKeyGrants = typeof ResListKeyGrants.infer;
|
|
2439
|
-
export declare function isResListKeyGrants(obj: unknown): obj is ResListKeyGrants;
|
|
2440
|
-
export declare const ReqUpsertKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2441
|
-
type: "vibes.diy.req-upsert-key-grant";
|
|
2442
|
-
auth: {
|
|
2443
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2444
|
-
token: string;
|
|
2445
|
-
};
|
|
2446
|
-
appSlug: string;
|
|
2447
|
-
userSlug: string;
|
|
2448
|
-
entry: {
|
|
2449
|
-
type: "app.acl.active.invite";
|
|
2450
|
-
role: "editor";
|
|
2451
|
-
state: "pending";
|
|
2452
|
-
invite: {
|
|
2453
|
-
email: string;
|
|
2454
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2455
|
-
};
|
|
2456
|
-
token: string;
|
|
2457
|
-
} | {
|
|
2458
|
-
type: "app.acl.active.invite";
|
|
2459
|
-
role: "viewer";
|
|
2460
|
-
state: "pending";
|
|
2461
|
-
invite: {
|
|
2462
|
-
email: string;
|
|
2463
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2464
|
-
};
|
|
2465
|
-
token: string;
|
|
2466
|
-
} | {
|
|
2467
|
-
type: "app.acl.active.invite";
|
|
2468
|
-
role: "editor";
|
|
2469
|
-
state: "accepted";
|
|
2470
|
-
invite: {
|
|
2471
|
-
email: string;
|
|
2472
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2473
|
-
};
|
|
2474
|
-
grant: {
|
|
2475
|
-
ownerId: string;
|
|
2476
|
-
key?: string | undefined;
|
|
2477
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2478
|
-
};
|
|
2479
|
-
tick: {
|
|
2480
|
-
count: number;
|
|
2481
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2482
|
-
};
|
|
2483
|
-
} | {
|
|
2484
|
-
type: "app.acl.active.invite";
|
|
2485
|
-
role: "viewer";
|
|
2486
|
-
state: "accepted";
|
|
2487
|
-
invite: {
|
|
2488
|
-
email: string;
|
|
2489
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2490
|
-
};
|
|
2491
|
-
grant: {
|
|
2492
|
-
ownerId: string;
|
|
2493
|
-
key?: string | undefined;
|
|
2494
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2495
|
-
};
|
|
2496
|
-
tick: {
|
|
2497
|
-
count: number;
|
|
2498
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2499
|
-
};
|
|
2500
|
-
} | {
|
|
2501
|
-
type: "app.acl.active.invite";
|
|
2502
|
-
role: "editor";
|
|
2503
|
-
state: "revoked";
|
|
2504
|
-
invite: {
|
|
2505
|
-
email: string;
|
|
2506
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2507
|
-
};
|
|
2508
|
-
grant: {
|
|
2509
|
-
ownerId: string;
|
|
2510
|
-
key?: string | undefined;
|
|
2511
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2512
|
-
};
|
|
2513
|
-
tick: {
|
|
2514
|
-
count: number;
|
|
2515
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2516
|
-
};
|
|
2517
|
-
} | {
|
|
2518
|
-
type: "app.acl.active.invite";
|
|
2519
|
-
role: "viewer";
|
|
2520
|
-
state: "revoked";
|
|
2521
|
-
invite: {
|
|
2522
|
-
email: string;
|
|
2523
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2524
|
-
};
|
|
2525
|
-
grant: {
|
|
2526
|
-
ownerId: string;
|
|
2527
|
-
key?: string | undefined;
|
|
2528
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2529
|
-
};
|
|
2530
|
-
tick: {
|
|
2531
|
-
count: number;
|
|
2532
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2533
|
-
};
|
|
2534
|
-
} | {
|
|
2535
|
-
type: "app.acl.active.request";
|
|
2536
|
-
role: "viewer";
|
|
2537
|
-
state: "pending";
|
|
2538
|
-
request: {
|
|
2539
|
-
key: string;
|
|
2540
|
-
provider: "clerk" | "github" | "google";
|
|
2541
|
-
msg?: string | undefined;
|
|
2542
|
-
userId: string;
|
|
2543
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2544
|
-
};
|
|
2545
|
-
} | {
|
|
2546
|
-
type: "app.acl.active.request";
|
|
2547
|
-
role: "editor" | "viewer";
|
|
2548
|
-
state: "approved";
|
|
2549
|
-
request: {
|
|
2550
|
-
key: string;
|
|
2551
|
-
provider: "clerk" | "github" | "google";
|
|
2552
|
-
msg?: string | undefined;
|
|
2553
|
-
userId: string;
|
|
2554
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2555
|
-
};
|
|
2556
|
-
tick: {
|
|
2557
|
-
count: number;
|
|
2558
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2559
|
-
};
|
|
2560
|
-
grant: {
|
|
2561
|
-
ownerId: string;
|
|
2562
|
-
key?: string | undefined;
|
|
2563
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2564
|
-
};
|
|
2565
|
-
} | {
|
|
2566
|
-
type: "app.acl.active.request";
|
|
2567
|
-
role: "editor" | "viewer";
|
|
2568
|
-
state: "rejected";
|
|
2569
|
-
request: {
|
|
2570
|
-
key: string;
|
|
2571
|
-
provider: "clerk" | "github" | "google";
|
|
2572
|
-
msg?: string | undefined;
|
|
2573
|
-
userId: string;
|
|
2574
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2575
|
-
};
|
|
2576
|
-
grant: {
|
|
2577
|
-
ownerId: string;
|
|
2578
|
-
key?: string | undefined;
|
|
2579
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2580
|
-
};
|
|
2581
|
-
};
|
|
2582
|
-
}, {}>;
|
|
2583
|
-
export type ReqUpsertKeyGrant = typeof ReqUpsertKeyGrant.infer;
|
|
2584
|
-
export declare function isReqUpsertKeyGrant(obj: unknown): obj is ReqUpsertKeyGrant;
|
|
2585
|
-
export declare const ResUpsertKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2586
|
-
appSlug: string;
|
|
2587
|
-
userSlug: string;
|
|
2588
|
-
grantType: "invite" | "request";
|
|
2589
|
-
key: string;
|
|
2590
|
-
entry: {
|
|
2591
|
-
type: "app.acl.active.invite";
|
|
2592
|
-
role: "editor";
|
|
2593
|
-
state: "pending";
|
|
2594
|
-
invite: {
|
|
2595
|
-
email: string;
|
|
2596
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2597
|
-
};
|
|
2598
|
-
token: string;
|
|
2599
|
-
} | {
|
|
2600
|
-
type: "app.acl.active.invite";
|
|
2601
|
-
role: "viewer";
|
|
2602
|
-
state: "pending";
|
|
2603
|
-
invite: {
|
|
2604
|
-
email: string;
|
|
2605
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2606
|
-
};
|
|
2607
|
-
token: string;
|
|
2608
|
-
} | {
|
|
2609
|
-
type: "app.acl.active.invite";
|
|
2610
|
-
role: "editor";
|
|
2611
|
-
state: "accepted";
|
|
2612
|
-
invite: {
|
|
2613
|
-
email: string;
|
|
2614
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2615
|
-
};
|
|
2616
|
-
grant: {
|
|
2617
|
-
ownerId: string;
|
|
2618
|
-
key?: string | undefined;
|
|
2619
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2620
|
-
};
|
|
2621
|
-
tick: {
|
|
2622
|
-
count: number;
|
|
2623
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2624
|
-
};
|
|
2625
|
-
} | {
|
|
2626
|
-
type: "app.acl.active.invite";
|
|
2627
|
-
role: "viewer";
|
|
2628
|
-
state: "accepted";
|
|
2629
|
-
invite: {
|
|
2630
|
-
email: string;
|
|
2631
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2632
|
-
};
|
|
2633
|
-
grant: {
|
|
2634
|
-
ownerId: string;
|
|
2635
|
-
key?: string | undefined;
|
|
2636
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2637
|
-
};
|
|
2638
|
-
tick: {
|
|
2639
|
-
count: number;
|
|
2640
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2641
|
-
};
|
|
2642
|
-
} | {
|
|
2643
|
-
type: "app.acl.active.invite";
|
|
2644
|
-
role: "editor";
|
|
2645
|
-
state: "revoked";
|
|
2646
|
-
invite: {
|
|
2647
|
-
email: string;
|
|
2648
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2649
|
-
};
|
|
2650
|
-
grant: {
|
|
2651
|
-
ownerId: string;
|
|
2652
|
-
key?: string | undefined;
|
|
2653
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2654
|
-
};
|
|
2655
|
-
tick: {
|
|
2656
|
-
count: number;
|
|
2657
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2658
|
-
};
|
|
2659
|
-
} | {
|
|
2660
|
-
type: "app.acl.active.invite";
|
|
2661
|
-
role: "viewer";
|
|
2662
|
-
state: "revoked";
|
|
2663
|
-
invite: {
|
|
2664
|
-
email: string;
|
|
2665
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2666
|
-
};
|
|
2667
|
-
grant: {
|
|
2668
|
-
ownerId: string;
|
|
2669
|
-
key?: string | undefined;
|
|
2670
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2671
|
-
};
|
|
2672
|
-
tick: {
|
|
2673
|
-
count: number;
|
|
2674
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2675
|
-
};
|
|
2676
|
-
} | {
|
|
2677
|
-
type: "app.acl.active.request";
|
|
2678
|
-
role: "viewer";
|
|
2679
|
-
state: "pending";
|
|
2680
|
-
request: {
|
|
2681
|
-
key: string;
|
|
2682
|
-
provider: "clerk" | "github" | "google";
|
|
2683
|
-
msg?: string | undefined;
|
|
2684
|
-
userId: string;
|
|
2685
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2686
|
-
};
|
|
2687
|
-
} | {
|
|
2688
|
-
type: "app.acl.active.request";
|
|
2689
|
-
role: "editor" | "viewer";
|
|
2690
|
-
state: "approved";
|
|
2691
|
-
request: {
|
|
2692
|
-
key: string;
|
|
2693
|
-
provider: "clerk" | "github" | "google";
|
|
2694
|
-
msg?: string | undefined;
|
|
2695
|
-
userId: string;
|
|
2696
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2697
|
-
};
|
|
2698
|
-
tick: {
|
|
2699
|
-
count: number;
|
|
2700
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2701
|
-
};
|
|
2702
|
-
grant: {
|
|
2703
|
-
ownerId: string;
|
|
2704
|
-
key?: string | undefined;
|
|
2705
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2706
|
-
};
|
|
2707
|
-
} | {
|
|
2708
|
-
type: "app.acl.active.request";
|
|
2709
|
-
role: "editor" | "viewer";
|
|
2710
|
-
state: "rejected";
|
|
2711
|
-
request: {
|
|
2712
|
-
key: string;
|
|
2713
|
-
provider: "clerk" | "github" | "google";
|
|
2714
|
-
msg?: string | undefined;
|
|
2715
|
-
userId: string;
|
|
2716
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2717
|
-
};
|
|
2718
|
-
grant: {
|
|
2719
|
-
ownerId: string;
|
|
2720
|
-
key?: string | undefined;
|
|
2721
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2722
|
-
};
|
|
2723
|
-
};
|
|
2724
|
-
grantUserId?: string | undefined;
|
|
2725
|
-
updated: string;
|
|
2726
|
-
type: "vibes.diy.res-upsert-key-grant";
|
|
2727
|
-
}, {}>;
|
|
2728
|
-
export type ResUpsertKeyGrant = typeof ResUpsertKeyGrant.infer;
|
|
2729
|
-
export declare function isResUpsertKeyGrant(obj: unknown): obj is ResUpsertKeyGrant;
|
|
2730
|
-
export declare const ReqDeleteKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2731
|
-
appSlug: string;
|
|
2732
|
-
userSlug: string;
|
|
2733
|
-
grantType: "invite" | "request";
|
|
2734
|
-
key: string;
|
|
2735
|
-
type: "vibes.diy.req-delete-key-grant";
|
|
2736
|
-
auth: {
|
|
2737
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2738
|
-
token: string;
|
|
2739
|
-
};
|
|
2740
|
-
}, {}>;
|
|
2741
|
-
export type ReqDeleteKeyGrant = typeof ReqDeleteKeyGrant.infer;
|
|
2742
|
-
export declare function isReqDeleteKeyGrant(obj: unknown): obj is ReqDeleteKeyGrant;
|
|
2743
|
-
export declare const ResDeleteKeyGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2744
|
-
appSlug: string;
|
|
2745
|
-
userSlug: string;
|
|
2746
|
-
grantType: "invite" | "request";
|
|
2747
|
-
key: string;
|
|
2748
|
-
type: "vibes.diy.res-delete-key-grant";
|
|
2749
|
-
deleted: boolean;
|
|
2750
|
-
}, {}>;
|
|
2751
|
-
export type ResDeleteKeyGrant = typeof ResDeleteKeyGrant.infer;
|
|
2752
|
-
export declare function isResDeleteKeyGrant(obj: unknown): obj is ResDeleteKeyGrant;
|
|
2753
|
-
export declare const ForeignInfo: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2754
|
-
givenEmail?: string | undefined;
|
|
2755
|
-
claims?: {
|
|
2756
|
-
azp?: string | undefined;
|
|
2757
|
-
exp?: number | undefined;
|
|
2758
|
-
iat?: number | undefined;
|
|
2759
|
-
iss?: string | undefined;
|
|
2760
|
-
jti?: string | undefined;
|
|
2761
|
-
nbf?: number | undefined;
|
|
2762
|
-
params: {
|
|
2763
|
-
nick?: string | undefined;
|
|
2764
|
-
email: string;
|
|
2765
|
-
email_verified: boolean;
|
|
2766
|
-
external_id?: string | null | undefined;
|
|
2767
|
-
first: string;
|
|
2768
|
-
image_url: string;
|
|
2769
|
-
last: string;
|
|
2770
|
-
name: string | null;
|
|
2771
|
-
public_meta: unknown;
|
|
2772
|
-
};
|
|
2773
|
-
role: string;
|
|
2774
|
-
sub: string;
|
|
2775
|
-
userId: string;
|
|
2776
|
-
aud?: string | string[] | undefined;
|
|
2777
|
-
app_metadata?: unknown;
|
|
2778
|
-
} | undefined;
|
|
2779
|
-
}, {}>;
|
|
2780
|
-
export type ForeignInfo = typeof ForeignInfo.infer;
|
|
2781
|
-
export declare const InviteForeignInfo: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2782
|
-
givenEmail?: string | undefined;
|
|
2783
|
-
claims?: {
|
|
2784
|
-
azp?: string | undefined;
|
|
2785
|
-
exp?: number | undefined;
|
|
2786
|
-
iat?: number | undefined;
|
|
2787
|
-
iss?: string | undefined;
|
|
2788
|
-
jti?: string | undefined;
|
|
2789
|
-
nbf?: number | undefined;
|
|
2790
|
-
params: {
|
|
2791
|
-
nick?: string | undefined;
|
|
2792
|
-
email: string;
|
|
2793
|
-
email_verified: boolean;
|
|
2794
|
-
external_id?: string | null | undefined;
|
|
2795
|
-
first: string;
|
|
2796
|
-
image_url: string;
|
|
2797
|
-
last: string;
|
|
2798
|
-
name: string | null;
|
|
2799
|
-
public_meta: unknown;
|
|
2800
|
-
};
|
|
2801
|
-
role: string;
|
|
2802
|
-
sub: string;
|
|
2803
|
-
userId: string;
|
|
2804
|
-
aud?: string | string[] | undefined;
|
|
2805
|
-
app_metadata?: unknown;
|
|
2806
|
-
} | undefined;
|
|
2807
|
-
}, {}>;
|
|
2808
|
-
export type InviteForeignInfo = ForeignInfo;
|
|
2809
|
-
export declare const ReqRedeemInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2810
|
-
type: "vibes.diy.req-redeem-invite";
|
|
2811
|
-
auth: {
|
|
2812
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2813
|
-
token: string;
|
|
2814
|
-
};
|
|
2815
|
-
token: string;
|
|
2816
|
-
}, {}>;
|
|
2817
|
-
export type ReqRedeemInvite = typeof ReqRedeemInvite.infer;
|
|
2818
|
-
export declare function isReqRedeemInvite(obj: unknown): obj is ReqRedeemInvite;
|
|
2819
|
-
export declare const ResRedeemInviteOK: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2820
|
-
type: "vibes.diy.res-redeem-invite";
|
|
2821
|
-
appSlug: string;
|
|
2822
|
-
userSlug: string;
|
|
2823
|
-
emailKey: string;
|
|
2824
|
-
role: "editor" | "viewer";
|
|
2825
|
-
state: "accepted";
|
|
2826
|
-
}, {}>;
|
|
2827
|
-
export type ResRedeemInviteOK = typeof ResRedeemInviteOK.infer;
|
|
2828
|
-
export declare function isResRedeemInviteOK(obj: unknown): obj is ResRedeemInviteOK;
|
|
2829
|
-
export declare const ResRedeemInviteError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2830
|
-
type: "vibes.diy.error";
|
|
2831
|
-
message: string;
|
|
2832
|
-
code: "redeem-invite-failed";
|
|
2833
|
-
stack?: string[] | undefined;
|
|
2834
|
-
}, {}>;
|
|
2835
|
-
export type ResRedeemInviteError = typeof ResRedeemInviteError.infer;
|
|
2836
|
-
export declare function isResRedeemInviteError(obj: unknown): obj is ResRedeemInviteError;
|
|
2837
|
-
export declare const ResRedeemInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2838
|
-
type: "vibes.diy.res-redeem-invite";
|
|
2839
|
-
appSlug: string;
|
|
2840
|
-
userSlug: string;
|
|
2841
|
-
emailKey: string;
|
|
2842
|
-
role: "editor" | "viewer";
|
|
2843
|
-
state: "accepted";
|
|
2844
|
-
} | {
|
|
2845
|
-
type: "vibes.diy.error";
|
|
2846
|
-
message: string;
|
|
2847
|
-
code: "redeem-invite-failed";
|
|
2848
|
-
stack?: string[] | undefined;
|
|
2849
|
-
}, {}>;
|
|
2850
|
-
export type ResRedeemInvite = typeof ResRedeemInvite.infer;
|
|
2851
|
-
export declare function isResRedeemInvite(obj: unknown): obj is ResRedeemInvite;
|
|
2852
|
-
export declare const InviteGrantItem: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2853
|
-
emailKey: string;
|
|
2854
|
-
state: "accepted" | "pending" | "revoked";
|
|
2855
|
-
role: "editor" | "viewer";
|
|
2856
|
-
tokenOrGrantUserId: string;
|
|
2857
|
-
foreignInfo: {
|
|
2858
|
-
givenEmail?: string | undefined;
|
|
2859
|
-
claims?: {
|
|
2860
|
-
azp?: string | undefined;
|
|
2861
|
-
exp?: number | undefined;
|
|
2862
|
-
iat?: number | undefined;
|
|
2863
|
-
iss?: string | undefined;
|
|
2864
|
-
jti?: string | undefined;
|
|
2865
|
-
nbf?: number | undefined;
|
|
2866
|
-
params: {
|
|
2867
|
-
nick?: string | undefined;
|
|
2868
|
-
email: string;
|
|
2869
|
-
email_verified: boolean;
|
|
2870
|
-
external_id?: string | null | undefined;
|
|
2871
|
-
first: string;
|
|
2872
|
-
image_url: string;
|
|
2873
|
-
last: string;
|
|
2874
|
-
name: string | null;
|
|
2875
|
-
public_meta: unknown;
|
|
2876
|
-
};
|
|
2877
|
-
role: string;
|
|
2878
|
-
sub: string;
|
|
2879
|
-
userId: string;
|
|
2880
|
-
aud?: string | string[] | undefined;
|
|
2881
|
-
app_metadata?: unknown;
|
|
2882
|
-
} | undefined;
|
|
2883
|
-
};
|
|
2884
|
-
updated: string;
|
|
2885
|
-
created: string;
|
|
2886
|
-
}, {}>;
|
|
2887
|
-
export type InviteGrantItem = typeof InviteGrantItem.infer;
|
|
2888
|
-
export declare const ReqCreateInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2889
|
-
type: "vibes.diy.req-create-invite";
|
|
2890
|
-
auth: {
|
|
2891
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2892
|
-
token: string;
|
|
2893
|
-
};
|
|
2894
|
-
appSlug: string;
|
|
2895
|
-
userSlug: string;
|
|
2896
|
-
invitedEmail: string;
|
|
2897
|
-
role: "editor" | "viewer";
|
|
2898
|
-
}, {}>;
|
|
2899
|
-
export type ReqCreateInvite = typeof ReqCreateInvite.infer;
|
|
2900
|
-
export declare function isReqCreateInvite(obj: unknown): obj is ReqCreateInvite;
|
|
2901
|
-
export declare const ResCreateInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2902
|
-
emailKey: string;
|
|
2903
|
-
state: "accepted" | "pending" | "revoked";
|
|
2904
|
-
role: "editor" | "viewer";
|
|
2905
|
-
tokenOrGrantUserId: string;
|
|
2906
|
-
foreignInfo: {
|
|
2907
|
-
givenEmail?: string | undefined;
|
|
2908
|
-
claims?: {
|
|
2909
|
-
azp?: string | undefined;
|
|
2910
|
-
exp?: number | undefined;
|
|
2911
|
-
iat?: number | undefined;
|
|
2912
|
-
iss?: string | undefined;
|
|
2913
|
-
jti?: string | undefined;
|
|
2914
|
-
nbf?: number | undefined;
|
|
2915
|
-
params: {
|
|
2916
|
-
nick?: string | undefined;
|
|
2917
|
-
email: string;
|
|
2918
|
-
email_verified: boolean;
|
|
2919
|
-
external_id?: string | null | undefined;
|
|
2920
|
-
first: string;
|
|
2921
|
-
image_url: string;
|
|
2922
|
-
last: string;
|
|
2923
|
-
name: string | null;
|
|
2924
|
-
public_meta: unknown;
|
|
2925
|
-
};
|
|
2926
|
-
role: string;
|
|
2927
|
-
sub: string;
|
|
2928
|
-
userId: string;
|
|
2929
|
-
aud?: string | string[] | undefined;
|
|
2930
|
-
app_metadata?: unknown;
|
|
2931
|
-
} | undefined;
|
|
2932
|
-
};
|
|
2933
|
-
updated: string;
|
|
2934
|
-
created: string;
|
|
2935
|
-
type: "vibes.diy.res-create-invite";
|
|
2936
|
-
appSlug: string;
|
|
2937
|
-
userSlug: string;
|
|
2938
|
-
}, {}>;
|
|
2939
|
-
export type ResCreateInvite = typeof ResCreateInvite.infer;
|
|
2940
|
-
export declare function isResCreateInvite(obj: unknown): obj is ResCreateInvite;
|
|
2941
|
-
export declare const ReqHasAccessInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2942
|
-
type: "vibes.diy.req-has-access-invite";
|
|
2943
|
-
auth: {
|
|
2944
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2945
|
-
token: string;
|
|
2946
|
-
};
|
|
2947
|
-
appSlug: string;
|
|
2948
|
-
userSlug: string;
|
|
2949
|
-
}, {}>;
|
|
2950
|
-
export type ReqHasAccessInvite = typeof ReqHasAccessInvite.infer;
|
|
2951
|
-
export declare function isReqHasAccessInvite(obj: unknown): obj is ReqHasAccessInvite;
|
|
2952
|
-
export declare const ResHasAccessInviteBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2953
|
-
type: "vibes.diy.res-has-access-invite";
|
|
2954
|
-
appSlug: string;
|
|
2955
|
-
userSlug: string;
|
|
2956
|
-
}, {}>;
|
|
2957
|
-
export declare const ResHasAccessInviteNotFound: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2958
|
-
type: "vibes.diy.res-has-access-invite";
|
|
2959
|
-
appSlug: string;
|
|
2960
|
-
userSlug: string;
|
|
2961
|
-
state: "not-found";
|
|
2962
|
-
}, {}>;
|
|
2963
|
-
export type ResHasAccessInviteNotFound = typeof ResHasAccessInviteNotFound.infer;
|
|
2964
|
-
export declare function isResHasAccessInviteNotFound(obj: unknown): obj is ResHasAccessInviteNotFound;
|
|
2965
|
-
export declare const ResHasAccessInviteRevoke: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2966
|
-
type: "vibes.diy.res-has-access-invite";
|
|
2967
|
-
appSlug: string;
|
|
2968
|
-
userSlug: string;
|
|
2969
|
-
state: "revoked";
|
|
2970
|
-
}, {}>;
|
|
2971
|
-
export type ResHasAccessInviteRevoke = typeof ResHasAccessInviteRevoke.infer;
|
|
2972
|
-
export declare function isResHasAccessInviteRevoke(obj: unknown): obj is ResHasAccessInviteRevoke;
|
|
2973
|
-
export declare const ResHasAccessInviteAccepted: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2974
|
-
type: "vibes.diy.res-has-access-invite";
|
|
2975
|
-
appSlug: string;
|
|
2976
|
-
userSlug: string;
|
|
2977
|
-
state: "accepted";
|
|
2978
|
-
role: "editor" | "viewer";
|
|
2979
|
-
tokenOrGrantUserId: string;
|
|
2980
|
-
}, {}>;
|
|
2981
|
-
export type ResHasAccessInviteAccepted = typeof ResHasAccessInviteAccepted.infer;
|
|
2982
|
-
export declare function isResHasAccessInviteAccepted(obj: unknown): obj is ResHasAccessInviteAccepted;
|
|
2983
|
-
export declare const ResHasAccessInvitePending: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2984
|
-
type: "vibes.diy.res-has-access-invite";
|
|
2985
|
-
appSlug: string;
|
|
2986
|
-
userSlug: string;
|
|
2987
|
-
state: "pending";
|
|
2988
|
-
role: "editor" | "viewer";
|
|
2989
|
-
tokenOrGrantUserId: string;
|
|
2990
|
-
}, {}>;
|
|
2991
|
-
export type ResHasAccessInvitePending = typeof ResHasAccessInvitePending.infer;
|
|
2992
|
-
export declare function isResHasAccessInvitePending(obj: unknown): obj is ResHasAccessInvitePending;
|
|
2993
|
-
export declare const ResHasAccessInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2994
|
-
type: "vibes.diy.res-has-access-invite";
|
|
2995
|
-
appSlug: string;
|
|
2996
|
-
userSlug: string;
|
|
2997
|
-
state: "not-found";
|
|
2998
|
-
} | {
|
|
2999
|
-
type: "vibes.diy.res-has-access-invite";
|
|
3000
|
-
appSlug: string;
|
|
3001
|
-
userSlug: string;
|
|
3002
|
-
state: "revoked";
|
|
3003
|
-
} | {
|
|
3004
|
-
type: "vibes.diy.res-has-access-invite";
|
|
3005
|
-
appSlug: string;
|
|
3006
|
-
userSlug: string;
|
|
3007
|
-
state: "accepted";
|
|
3008
|
-
role: "editor" | "viewer";
|
|
3009
|
-
tokenOrGrantUserId: string;
|
|
3010
|
-
} | {
|
|
3011
|
-
type: "vibes.diy.res-has-access-invite";
|
|
3012
|
-
appSlug: string;
|
|
3013
|
-
userSlug: string;
|
|
3014
|
-
state: "pending";
|
|
3015
|
-
role: "editor" | "viewer";
|
|
3016
|
-
tokenOrGrantUserId: string;
|
|
3017
|
-
}, {}>;
|
|
3018
|
-
export type ResHasAccessInvite = typeof ResHasAccessInvite.infer;
|
|
3019
|
-
export declare function isResHasAccessInvite(obj: unknown): obj is ResHasAccessInvite;
|
|
3020
|
-
export declare const ReqInviteSetRole: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3021
|
-
type: "vibes.diy.req-invite-set-role";
|
|
3022
|
-
auth: {
|
|
3023
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3024
|
-
token: string;
|
|
3025
|
-
};
|
|
3026
|
-
appSlug: string;
|
|
3027
|
-
userSlug: string;
|
|
3028
|
-
emailKey: string;
|
|
3029
|
-
role: "editor" | "viewer";
|
|
3030
|
-
}, {}>;
|
|
3031
|
-
export type ReqInviteSetRole = typeof ReqInviteSetRole.infer;
|
|
3032
|
-
export declare function isReqInviteSetRole(obj: unknown): obj is ReqInviteSetRole;
|
|
3033
|
-
export declare const ResInviteSetRole: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3034
|
-
type: "vibes.diy.res-invite-set-role";
|
|
3035
|
-
appSlug: string;
|
|
3036
|
-
userSlug: string;
|
|
3037
|
-
emailKey: string;
|
|
3038
|
-
role: "editor" | "viewer";
|
|
3039
|
-
}, {}>;
|
|
3040
|
-
export type ResInviteSetRole = typeof ResInviteSetRole.infer;
|
|
3041
|
-
export declare function isResInviteSetRole(obj: unknown): obj is ResInviteSetRole;
|
|
3042
|
-
export declare const ReqRevokeInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3043
|
-
type: "vibes.diy.req-revoke-invite";
|
|
3044
|
-
auth: {
|
|
3045
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3046
|
-
token: string;
|
|
3047
|
-
};
|
|
3048
|
-
appSlug: string;
|
|
3049
|
-
userSlug: string;
|
|
3050
|
-
emailKey: string;
|
|
3051
|
-
delete?: boolean | undefined;
|
|
3052
|
-
}, {}>;
|
|
3053
|
-
export type ReqRevokeInvite = typeof ReqRevokeInvite.infer;
|
|
3054
|
-
export declare function isReqRevokeInvite(obj: unknown): obj is ReqRevokeInvite;
|
|
3055
|
-
export declare const ResRevokeInvite: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3056
|
-
type: "vibes.diy.res-revoke-invite";
|
|
3057
|
-
appSlug: string;
|
|
3058
|
-
userSlug: string;
|
|
3059
|
-
emailKey: string;
|
|
3060
|
-
deleted: boolean;
|
|
3061
|
-
}, {}>;
|
|
3062
|
-
export type ResRevokeInvite = typeof ResRevokeInvite.infer;
|
|
3063
|
-
export declare function isResRevokeInvite(obj: unknown): obj is ResRevokeInvite;
|
|
3064
|
-
export declare const ReqListInviteGrants: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3065
|
-
appSlug: string;
|
|
3066
|
-
userSlug: string;
|
|
3067
|
-
auth: {
|
|
3068
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3069
|
-
token: string;
|
|
3070
|
-
};
|
|
3071
|
-
pager: {
|
|
3072
|
-
limit?: number | undefined;
|
|
3073
|
-
cursor?: string | undefined;
|
|
3074
|
-
};
|
|
3075
|
-
type: "vibes.diy.req-list-invite-grants";
|
|
3076
|
-
}, {}>;
|
|
3077
|
-
export type ReqListInviteGrants = typeof ReqListInviteGrants.infer;
|
|
3078
|
-
export declare function isReqListInviteGrants(obj: unknown): obj is ReqListInviteGrants;
|
|
3079
|
-
export declare const ResListInviteGrants: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3080
|
-
type: "vibes.diy.res-list-invite-grants";
|
|
3081
|
-
appSlug: string;
|
|
3082
|
-
userSlug: string;
|
|
3083
|
-
items: {
|
|
3084
|
-
emailKey: string;
|
|
3085
|
-
state: "accepted" | "pending" | "revoked";
|
|
3086
|
-
role: "editor" | "viewer";
|
|
3087
|
-
tokenOrGrantUserId: string;
|
|
3088
|
-
foreignInfo: {
|
|
3089
|
-
givenEmail?: string | undefined;
|
|
3090
|
-
claims?: {
|
|
3091
|
-
azp?: string | undefined;
|
|
3092
|
-
exp?: number | undefined;
|
|
3093
|
-
iat?: number | undefined;
|
|
3094
|
-
iss?: string | undefined;
|
|
3095
|
-
jti?: string | undefined;
|
|
3096
|
-
nbf?: number | undefined;
|
|
3097
|
-
params: {
|
|
3098
|
-
nick?: string | undefined;
|
|
3099
|
-
email: string;
|
|
3100
|
-
email_verified: boolean;
|
|
3101
|
-
external_id?: string | null | undefined;
|
|
3102
|
-
first: string;
|
|
3103
|
-
image_url: string;
|
|
3104
|
-
last: string;
|
|
3105
|
-
name: string | null;
|
|
3106
|
-
public_meta: unknown;
|
|
3107
|
-
};
|
|
3108
|
-
role: string;
|
|
3109
|
-
sub: string;
|
|
3110
|
-
userId: string;
|
|
3111
|
-
aud?: string | string[] | undefined;
|
|
3112
|
-
app_metadata?: unknown;
|
|
3113
|
-
} | undefined;
|
|
3114
|
-
};
|
|
3115
|
-
updated: string;
|
|
3116
|
-
created: string;
|
|
3117
|
-
}[];
|
|
3118
|
-
nextCursor?: string | undefined;
|
|
3119
|
-
}, {}>;
|
|
3120
|
-
export type ResListInviteGrants = typeof ResListInviteGrants.infer;
|
|
3121
|
-
export declare function isResListInviteGrants(obj: unknown): obj is ResListInviteGrants;
|
|
3122
|
-
export declare const ReqRequestAccess: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3123
|
-
type: "vibes.diy.req-request-access";
|
|
3124
|
-
auth: {
|
|
3125
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3126
|
-
token: string;
|
|
3127
|
-
};
|
|
3128
|
-
appSlug: string;
|
|
3129
|
-
userSlug: string;
|
|
3130
|
-
}, {}>;
|
|
3131
|
-
export type ReqRequestAccess = typeof ReqRequestAccess.infer;
|
|
3132
|
-
export declare function isReqRequestAccess(obj: unknown): obj is ReqRequestAccess;
|
|
3133
|
-
export declare const ResRequestAccessBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3134
|
-
type: "vibes.diy.res-request-access";
|
|
3135
|
-
appSlug: string;
|
|
3136
|
-
userSlug: string;
|
|
3137
|
-
foreignUserId: string;
|
|
3138
|
-
foreignInfo: {
|
|
3139
|
-
givenEmail?: string | undefined;
|
|
3140
|
-
claims?: {
|
|
3141
|
-
azp?: string | undefined;
|
|
3142
|
-
exp?: number | undefined;
|
|
3143
|
-
iat?: number | undefined;
|
|
3144
|
-
iss?: string | undefined;
|
|
3145
|
-
jti?: string | undefined;
|
|
3146
|
-
nbf?: number | undefined;
|
|
3147
|
-
params: {
|
|
3148
|
-
nick?: string | undefined;
|
|
3149
|
-
email: string;
|
|
3150
|
-
email_verified: boolean;
|
|
3151
|
-
external_id?: string | null | undefined;
|
|
3152
|
-
first: string;
|
|
3153
|
-
image_url: string;
|
|
3154
|
-
last: string;
|
|
3155
|
-
name: string | null;
|
|
3156
|
-
public_meta: unknown;
|
|
3157
|
-
};
|
|
3158
|
-
role: string;
|
|
3159
|
-
sub: string;
|
|
3160
|
-
userId: string;
|
|
3161
|
-
aud?: string | string[] | undefined;
|
|
3162
|
-
app_metadata?: unknown;
|
|
3163
|
-
} | undefined;
|
|
3164
|
-
};
|
|
3165
|
-
updated: string;
|
|
3166
|
-
created: string;
|
|
3167
|
-
}, {}>;
|
|
3168
|
-
export declare const ResRequestAccessPending: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3169
|
-
type: "vibes.diy.res-request-access";
|
|
3170
|
-
appSlug: string;
|
|
3171
|
-
userSlug: string;
|
|
3172
|
-
foreignUserId: string;
|
|
3173
|
-
foreignInfo: {
|
|
3174
|
-
givenEmail?: string | undefined;
|
|
3175
|
-
claims?: {
|
|
3176
|
-
azp?: string | undefined;
|
|
3177
|
-
exp?: number | undefined;
|
|
3178
|
-
iat?: number | undefined;
|
|
3179
|
-
iss?: string | undefined;
|
|
3180
|
-
jti?: string | undefined;
|
|
3181
|
-
nbf?: number | undefined;
|
|
3182
|
-
params: {
|
|
3183
|
-
nick?: string | undefined;
|
|
3184
|
-
email: string;
|
|
3185
|
-
email_verified: boolean;
|
|
3186
|
-
external_id?: string | null | undefined;
|
|
3187
|
-
first: string;
|
|
3188
|
-
image_url: string;
|
|
3189
|
-
last: string;
|
|
3190
|
-
name: string | null;
|
|
3191
|
-
public_meta: unknown;
|
|
3192
|
-
};
|
|
3193
|
-
role: string;
|
|
3194
|
-
sub: string;
|
|
3195
|
-
userId: string;
|
|
3196
|
-
aud?: string | string[] | undefined;
|
|
3197
|
-
app_metadata?: unknown;
|
|
3198
|
-
} | undefined;
|
|
3199
|
-
};
|
|
3200
|
-
updated: string;
|
|
3201
|
-
created: string;
|
|
3202
|
-
state: "pending";
|
|
3203
|
-
}, {}>;
|
|
3204
|
-
export type ResRequestAccessPending = typeof ResRequestAccessPending.infer;
|
|
3205
|
-
export declare function isResRequestAccessPending(obj: unknown): obj is ResRequestAccessPending;
|
|
3206
|
-
export declare const ResRequestAccessApproved: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3207
|
-
type: "vibes.diy.res-request-access";
|
|
3208
|
-
appSlug: string;
|
|
3209
|
-
userSlug: string;
|
|
3210
|
-
foreignUserId: string;
|
|
3211
|
-
foreignInfo: {
|
|
3212
|
-
givenEmail?: string | undefined;
|
|
3213
|
-
claims?: {
|
|
3214
|
-
azp?: string | undefined;
|
|
3215
|
-
exp?: number | undefined;
|
|
3216
|
-
iat?: number | undefined;
|
|
3217
|
-
iss?: string | undefined;
|
|
3218
|
-
jti?: string | undefined;
|
|
3219
|
-
nbf?: number | undefined;
|
|
3220
|
-
params: {
|
|
3221
|
-
nick?: string | undefined;
|
|
3222
|
-
email: string;
|
|
3223
|
-
email_verified: boolean;
|
|
3224
|
-
external_id?: string | null | undefined;
|
|
3225
|
-
first: string;
|
|
3226
|
-
image_url: string;
|
|
3227
|
-
last: string;
|
|
3228
|
-
name: string | null;
|
|
3229
|
-
public_meta: unknown;
|
|
3230
|
-
};
|
|
3231
|
-
role: string;
|
|
3232
|
-
sub: string;
|
|
3233
|
-
userId: string;
|
|
3234
|
-
aud?: string | string[] | undefined;
|
|
3235
|
-
app_metadata?: unknown;
|
|
3236
|
-
} | undefined;
|
|
3237
|
-
};
|
|
3238
|
-
updated: string;
|
|
3239
|
-
created: string;
|
|
3240
|
-
state: "approved";
|
|
3241
|
-
role: "editor" | "viewer";
|
|
3242
|
-
}, {}>;
|
|
3243
|
-
export type ResRequestAccessApproved = typeof ResRequestAccessApproved.infer;
|
|
3244
|
-
export declare function isResRequestAccessApproved(obj: unknown): obj is ResRequestAccessApproved;
|
|
3245
|
-
export declare const ResRequestAccessRevoked: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3246
|
-
type: "vibes.diy.res-request-access";
|
|
3247
|
-
appSlug: string;
|
|
3248
|
-
userSlug: string;
|
|
3249
|
-
foreignUserId: string;
|
|
3250
|
-
foreignInfo: {
|
|
3251
|
-
givenEmail?: string | undefined;
|
|
3252
|
-
claims?: {
|
|
3253
|
-
azp?: string | undefined;
|
|
3254
|
-
exp?: number | undefined;
|
|
3255
|
-
iat?: number | undefined;
|
|
3256
|
-
iss?: string | undefined;
|
|
3257
|
-
jti?: string | undefined;
|
|
3258
|
-
nbf?: number | undefined;
|
|
3259
|
-
params: {
|
|
3260
|
-
nick?: string | undefined;
|
|
3261
|
-
email: string;
|
|
3262
|
-
email_verified: boolean;
|
|
3263
|
-
external_id?: string | null | undefined;
|
|
3264
|
-
first: string;
|
|
3265
|
-
image_url: string;
|
|
3266
|
-
last: string;
|
|
3267
|
-
name: string | null;
|
|
3268
|
-
public_meta: unknown;
|
|
3269
|
-
};
|
|
3270
|
-
role: string;
|
|
3271
|
-
sub: string;
|
|
3272
|
-
userId: string;
|
|
3273
|
-
aud?: string | string[] | undefined;
|
|
3274
|
-
app_metadata?: unknown;
|
|
3275
|
-
} | undefined;
|
|
3276
|
-
};
|
|
3277
|
-
updated: string;
|
|
3278
|
-
created: string;
|
|
3279
|
-
state: "revoked";
|
|
3280
|
-
role: "editor" | "viewer";
|
|
3281
|
-
}, {}>;
|
|
3282
|
-
export type ResRequestAccessRevoked = typeof ResRequestAccessRevoked.infer;
|
|
3283
|
-
export declare function isResRequestAccessRevoked(obj: unknown): obj is ResRequestAccessRevoked;
|
|
3284
|
-
export declare const ResRequestAccess: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3285
|
-
type: "vibes.diy.res-request-access";
|
|
3286
|
-
appSlug: string;
|
|
3287
|
-
userSlug: string;
|
|
3288
|
-
foreignUserId: string;
|
|
3289
|
-
foreignInfo: {
|
|
3290
|
-
givenEmail?: string | undefined;
|
|
3291
|
-
claims?: {
|
|
3292
|
-
azp?: string | undefined;
|
|
3293
|
-
exp?: number | undefined;
|
|
3294
|
-
iat?: number | undefined;
|
|
3295
|
-
iss?: string | undefined;
|
|
3296
|
-
jti?: string | undefined;
|
|
3297
|
-
nbf?: number | undefined;
|
|
3298
|
-
params: {
|
|
3299
|
-
nick?: string | undefined;
|
|
3300
|
-
email: string;
|
|
3301
|
-
email_verified: boolean;
|
|
3302
|
-
external_id?: string | null | undefined;
|
|
3303
|
-
first: string;
|
|
3304
|
-
image_url: string;
|
|
3305
|
-
last: string;
|
|
3306
|
-
name: string | null;
|
|
3307
|
-
public_meta: unknown;
|
|
3308
|
-
};
|
|
3309
|
-
role: string;
|
|
3310
|
-
sub: string;
|
|
3311
|
-
userId: string;
|
|
3312
|
-
aud?: string | string[] | undefined;
|
|
3313
|
-
app_metadata?: unknown;
|
|
3314
|
-
} | undefined;
|
|
3315
|
-
};
|
|
3316
|
-
updated: string;
|
|
3317
|
-
created: string;
|
|
3318
|
-
state: "pending";
|
|
3319
|
-
} | {
|
|
3320
|
-
type: "vibes.diy.res-request-access";
|
|
3321
|
-
appSlug: string;
|
|
3322
|
-
userSlug: string;
|
|
3323
|
-
foreignUserId: string;
|
|
3324
|
-
foreignInfo: {
|
|
3325
|
-
givenEmail?: string | undefined;
|
|
3326
|
-
claims?: {
|
|
3327
|
-
azp?: string | undefined;
|
|
3328
|
-
exp?: number | undefined;
|
|
3329
|
-
iat?: number | undefined;
|
|
3330
|
-
iss?: string | undefined;
|
|
3331
|
-
jti?: string | undefined;
|
|
3332
|
-
nbf?: number | undefined;
|
|
3333
|
-
params: {
|
|
3334
|
-
nick?: string | undefined;
|
|
3335
|
-
email: string;
|
|
3336
|
-
email_verified: boolean;
|
|
3337
|
-
external_id?: string | null | undefined;
|
|
3338
|
-
first: string;
|
|
3339
|
-
image_url: string;
|
|
3340
|
-
last: string;
|
|
3341
|
-
name: string | null;
|
|
3342
|
-
public_meta: unknown;
|
|
3343
|
-
};
|
|
3344
|
-
role: string;
|
|
3345
|
-
sub: string;
|
|
3346
|
-
userId: string;
|
|
3347
|
-
aud?: string | string[] | undefined;
|
|
3348
|
-
app_metadata?: unknown;
|
|
3349
|
-
} | undefined;
|
|
3350
|
-
};
|
|
3351
|
-
updated: string;
|
|
3352
|
-
created: string;
|
|
3353
|
-
state: "approved";
|
|
3354
|
-
role: "editor" | "viewer";
|
|
3355
|
-
} | {
|
|
3356
|
-
type: "vibes.diy.res-request-access";
|
|
3357
|
-
appSlug: string;
|
|
3358
|
-
userSlug: string;
|
|
3359
|
-
foreignUserId: string;
|
|
3360
|
-
foreignInfo: {
|
|
3361
|
-
givenEmail?: string | undefined;
|
|
3362
|
-
claims?: {
|
|
3363
|
-
azp?: string | undefined;
|
|
3364
|
-
exp?: number | undefined;
|
|
3365
|
-
iat?: number | undefined;
|
|
3366
|
-
iss?: string | undefined;
|
|
3367
|
-
jti?: string | undefined;
|
|
3368
|
-
nbf?: number | undefined;
|
|
3369
|
-
params: {
|
|
3370
|
-
nick?: string | undefined;
|
|
3371
|
-
email: string;
|
|
3372
|
-
email_verified: boolean;
|
|
3373
|
-
external_id?: string | null | undefined;
|
|
3374
|
-
first: string;
|
|
3375
|
-
image_url: string;
|
|
3376
|
-
last: string;
|
|
3377
|
-
name: string | null;
|
|
3378
|
-
public_meta: unknown;
|
|
3379
|
-
};
|
|
3380
|
-
role: string;
|
|
3381
|
-
sub: string;
|
|
3382
|
-
userId: string;
|
|
3383
|
-
aud?: string | string[] | undefined;
|
|
3384
|
-
app_metadata?: unknown;
|
|
3385
|
-
} | undefined;
|
|
3386
|
-
};
|
|
3387
|
-
updated: string;
|
|
3388
|
-
created: string;
|
|
3389
|
-
state: "revoked";
|
|
3390
|
-
role: "editor" | "viewer";
|
|
3391
|
-
}, {}>;
|
|
3392
|
-
export type ResRequestAccess = typeof ResRequestAccess.infer;
|
|
3393
|
-
export declare function isResRequestAccess(obj: unknown): obj is ResRequestAccess;
|
|
3394
|
-
export declare const ReqApproveRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3395
|
-
type: "vibes.diy.req-approve-request";
|
|
3396
|
-
auth: {
|
|
3397
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3398
|
-
token: string;
|
|
3399
|
-
};
|
|
3400
|
-
appSlug: string;
|
|
3401
|
-
userSlug: string;
|
|
3402
|
-
foreignUserId: string;
|
|
3403
|
-
role: "editor" | "viewer";
|
|
3404
|
-
}, {}>;
|
|
3405
|
-
export type ReqApproveRequest = typeof ReqApproveRequest.infer;
|
|
3406
|
-
export declare function isReqApproveRequest(obj: unknown): obj is ReqApproveRequest;
|
|
3407
|
-
export declare const ResApproveRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3408
|
-
type: "vibes.diy.res-approve-request";
|
|
3409
|
-
appSlug: string;
|
|
3410
|
-
userSlug: string;
|
|
3411
|
-
foreignUserId: string;
|
|
3412
|
-
role: "editor" | "viewer";
|
|
3413
|
-
state: "approved";
|
|
3414
|
-
updated: string;
|
|
3415
|
-
}, {}>;
|
|
3416
|
-
export type ResApproveRequest = typeof ResApproveRequest.infer;
|
|
3417
|
-
export declare function isResApproveRequest(obj: unknown): obj is ResApproveRequest;
|
|
3418
|
-
export declare const ReqRequestSetRole: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3419
|
-
type: "vibes.diy.req-request-set-role";
|
|
3420
|
-
auth: {
|
|
3421
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3422
|
-
token: string;
|
|
3423
|
-
};
|
|
3424
|
-
appSlug: string;
|
|
3425
|
-
userSlug: string;
|
|
3426
|
-
foreignUserId: string;
|
|
3427
|
-
role: "editor" | "viewer";
|
|
3428
|
-
}, {}>;
|
|
3429
|
-
export type ReqRequestSetRole = typeof ReqRequestSetRole.infer;
|
|
3430
|
-
export declare function isReqRequestSetRole(obj: unknown): obj is ReqRequestSetRole;
|
|
3431
|
-
export declare const ResRequestSetRole: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3432
|
-
type: "vibes.diy.res-request-set-role";
|
|
3433
|
-
appSlug: string;
|
|
3434
|
-
userSlug: string;
|
|
3435
|
-
foreignUserId: string;
|
|
3436
|
-
role: "editor" | "viewer";
|
|
3437
|
-
}, {}>;
|
|
3438
|
-
export type ResRequestSetRole = typeof ResRequestSetRole.infer;
|
|
3439
|
-
export declare function isResRequestSetRole(obj: unknown): obj is ResRequestSetRole;
|
|
3440
|
-
export declare const ReqRevokeRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3441
|
-
type: "vibes.diy.req-revoke-request";
|
|
3442
|
-
auth: {
|
|
3443
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3444
|
-
token: string;
|
|
3445
|
-
};
|
|
3446
|
-
appSlug: string;
|
|
3447
|
-
userSlug: string;
|
|
3448
|
-
foreignUserId: string;
|
|
3449
|
-
delete?: boolean | undefined;
|
|
3450
|
-
}, {}>;
|
|
3451
|
-
export type ReqRevokeRequest = typeof ReqRevokeRequest.infer;
|
|
3452
|
-
export declare function isReqRevokeRequest(obj: unknown): obj is ReqRevokeRequest;
|
|
3453
|
-
export declare const ResRevokeRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3454
|
-
type: "vibes.diy.res-revoke-request";
|
|
3455
|
-
appSlug: string;
|
|
3456
|
-
userSlug: string;
|
|
3457
|
-
foreignUserId: string;
|
|
3458
|
-
deleted: boolean;
|
|
3459
|
-
}, {}>;
|
|
3460
|
-
export type ResRevokeRequest = typeof ResRevokeRequest.infer;
|
|
3461
|
-
export declare function isResRevokeRequest(obj: unknown): obj is ResRevokeRequest;
|
|
3462
|
-
export declare const ReqHasAccessRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3463
|
-
type: "vibes.diy.req-has-access-request";
|
|
3464
|
-
auth: {
|
|
3465
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3466
|
-
token: string;
|
|
3467
|
-
};
|
|
3468
|
-
appSlug: string;
|
|
3469
|
-
userSlug: string;
|
|
3470
|
-
}, {}>;
|
|
3471
|
-
export type ReqHasAccessRequest = typeof ReqHasAccessRequest.infer;
|
|
3472
|
-
export declare function isReqHasAccessRequest(obj: unknown): obj is ReqHasAccessRequest;
|
|
3473
|
-
export declare const ResHasAccessRequestBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3474
|
-
type: "vibes.diy.res-has-access-request";
|
|
3475
|
-
appSlug: string;
|
|
3476
|
-
userSlug: string;
|
|
3477
|
-
}, {}>;
|
|
3478
|
-
export declare const ResHasAccessRequestNotFound: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3479
|
-
type: "vibes.diy.res-has-access-request";
|
|
3480
|
-
appSlug: string;
|
|
3481
|
-
userSlug: string;
|
|
3482
|
-
state: "not-found";
|
|
3483
|
-
}, {}>;
|
|
3484
|
-
export type ResHasAccessRequestNotFound = typeof ResHasAccessRequestNotFound.infer;
|
|
3485
|
-
export declare function isResHasAccessRequestNotFound(obj: unknown): obj is ResHasAccessRequestNotFound;
|
|
3486
|
-
export declare const ResHasAccessRequestPending: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3487
|
-
type: "vibes.diy.res-has-access-request";
|
|
3488
|
-
appSlug: string;
|
|
3489
|
-
userSlug: string;
|
|
3490
|
-
state: "pending";
|
|
3491
|
-
role: "editor" | "viewer" | null | undefined;
|
|
3492
|
-
}, {}>;
|
|
3493
|
-
export type ResHasAccessRequestPending = typeof ResHasAccessRequestPending.infer;
|
|
3494
|
-
export declare function isResHasAccessRequestPending(obj: unknown): obj is ResHasAccessRequestPending;
|
|
3495
|
-
export declare const ResHasAccessRequestApproved: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3496
|
-
type: "vibes.diy.res-has-access-request";
|
|
3497
|
-
appSlug: string;
|
|
3498
|
-
userSlug: string;
|
|
3499
|
-
state: "approved";
|
|
3500
|
-
role: "editor" | "viewer";
|
|
3501
|
-
}, {}>;
|
|
3502
|
-
export type ResHasAccessRequestApproved = typeof ResHasAccessRequestApproved.infer;
|
|
3503
|
-
export declare function isResHasAccessRequestApproved(obj: unknown): obj is ResHasAccessRequestApproved;
|
|
3504
|
-
export declare const ResHasAccessRequestRevoked: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3505
|
-
type: "vibes.diy.res-has-access-request";
|
|
3506
|
-
appSlug: string;
|
|
3507
|
-
userSlug: string;
|
|
3508
|
-
state: "revoked";
|
|
3509
|
-
}, {}>;
|
|
3510
|
-
export type ResHasAccessRequestRevoked = typeof ResHasAccessRequestRevoked.infer;
|
|
3511
|
-
export declare function isResHasAccessRequestRevoked(obj: unknown): obj is ResHasAccessRequestRevoked;
|
|
3512
|
-
export declare const ResHasAccessRequest: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3513
|
-
type: "vibes.diy.res-has-access-request";
|
|
3514
|
-
appSlug: string;
|
|
3515
|
-
userSlug: string;
|
|
3516
|
-
state: "not-found";
|
|
3517
|
-
} | {
|
|
3518
|
-
type: "vibes.diy.res-has-access-request";
|
|
3519
|
-
appSlug: string;
|
|
3520
|
-
userSlug: string;
|
|
3521
|
-
state: "pending";
|
|
3522
|
-
role: "editor" | "viewer" | null | undefined;
|
|
3523
|
-
} | {
|
|
3524
|
-
type: "vibes.diy.res-has-access-request";
|
|
3525
|
-
appSlug: string;
|
|
3526
|
-
userSlug: string;
|
|
3527
|
-
state: "approved";
|
|
3528
|
-
role: "editor" | "viewer";
|
|
3529
|
-
} | {
|
|
3530
|
-
type: "vibes.diy.res-has-access-request";
|
|
3531
|
-
appSlug: string;
|
|
3532
|
-
userSlug: string;
|
|
3533
|
-
state: "revoked";
|
|
3534
|
-
}, {}>;
|
|
3535
|
-
export type ResHasAccessRequest = typeof ResHasAccessRequest.infer;
|
|
3536
|
-
export declare function isResHasAccessRequest(obj: unknown): obj is ResHasAccessRequest;
|
|
3537
|
-
export declare const ResFlowOwnerError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3538
|
-
type: "vibes.diy.error";
|
|
3539
|
-
message: string;
|
|
3540
|
-
code: "owner-error";
|
|
3541
|
-
stack?: string[] | undefined;
|
|
3542
|
-
}, {}>;
|
|
3543
|
-
export type ResFlowOwnerError = typeof ResFlowOwnerError.infer;
|
|
3544
|
-
export declare function isResFlowOwnerError(obj: unknown): obj is ResFlowOwnerError;
|
|
3545
|
-
export declare const ResRequestAccessError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3546
|
-
type: "vibes.diy.error";
|
|
3547
|
-
message: string;
|
|
3548
|
-
code: "request-access-app-not-found" | "request-access-not-enabled";
|
|
3549
|
-
stack?: string[] | undefined;
|
|
3550
|
-
}, {}>;
|
|
3551
|
-
export type ResRequestAccessError = typeof ResRequestAccessError.infer;
|
|
3552
|
-
export declare function isResRequestAccessError(obj: unknown): obj is ResRequestAccessError;
|
|
3553
|
-
export declare const ResApproveRequestError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3554
|
-
type: "vibes.diy.error";
|
|
3555
|
-
message: string;
|
|
3556
|
-
code: "approve-request-not-found";
|
|
3557
|
-
stack?: string[] | undefined;
|
|
3558
|
-
}, {}>;
|
|
3559
|
-
export type ResApproveRequestError = typeof ResApproveRequestError.infer;
|
|
3560
|
-
export declare const ResRequestSetRoleError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3561
|
-
type: "vibes.diy.error";
|
|
3562
|
-
message: string;
|
|
3563
|
-
code: "request-set-role-not-found";
|
|
3564
|
-
stack?: string[] | undefined;
|
|
3565
|
-
}, {}>;
|
|
3566
|
-
export type ResRequestSetRoleError = typeof ResRequestSetRoleError.infer;
|
|
3567
|
-
export declare const ResRequestAccessFlow: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3568
|
-
type: "vibes.diy.res-request-access";
|
|
3569
|
-
appSlug: string;
|
|
3570
|
-
userSlug: string;
|
|
3571
|
-
foreignUserId: string;
|
|
3572
|
-
foreignInfo: {
|
|
3573
|
-
givenEmail?: string | undefined;
|
|
3574
|
-
claims?: {
|
|
3575
|
-
azp?: string | undefined;
|
|
3576
|
-
exp?: number | undefined;
|
|
3577
|
-
iat?: number | undefined;
|
|
3578
|
-
iss?: string | undefined;
|
|
3579
|
-
jti?: string | undefined;
|
|
3580
|
-
nbf?: number | undefined;
|
|
3581
|
-
params: {
|
|
3582
|
-
nick?: string | undefined;
|
|
3583
|
-
email: string;
|
|
3584
|
-
email_verified: boolean;
|
|
3585
|
-
external_id?: string | null | undefined;
|
|
3586
|
-
first: string;
|
|
3587
|
-
image_url: string;
|
|
3588
|
-
last: string;
|
|
3589
|
-
name: string | null;
|
|
3590
|
-
public_meta: unknown;
|
|
3591
|
-
};
|
|
3592
|
-
role: string;
|
|
3593
|
-
sub: string;
|
|
3594
|
-
userId: string;
|
|
3595
|
-
aud?: string | string[] | undefined;
|
|
3596
|
-
app_metadata?: unknown;
|
|
3597
|
-
} | undefined;
|
|
3598
|
-
};
|
|
3599
|
-
updated: string;
|
|
3600
|
-
created: string;
|
|
3601
|
-
state: "pending";
|
|
3602
|
-
} | {
|
|
3603
|
-
type: "vibes.diy.res-request-access";
|
|
3604
|
-
appSlug: string;
|
|
3605
|
-
userSlug: string;
|
|
3606
|
-
foreignUserId: string;
|
|
3607
|
-
foreignInfo: {
|
|
3608
|
-
givenEmail?: string | undefined;
|
|
3609
|
-
claims?: {
|
|
3610
|
-
azp?: string | undefined;
|
|
3611
|
-
exp?: number | undefined;
|
|
3612
|
-
iat?: number | undefined;
|
|
3613
|
-
iss?: string | undefined;
|
|
3614
|
-
jti?: string | undefined;
|
|
3615
|
-
nbf?: number | undefined;
|
|
3616
|
-
params: {
|
|
3617
|
-
nick?: string | undefined;
|
|
3618
|
-
email: string;
|
|
3619
|
-
email_verified: boolean;
|
|
3620
|
-
external_id?: string | null | undefined;
|
|
3621
|
-
first: string;
|
|
3622
|
-
image_url: string;
|
|
3623
|
-
last: string;
|
|
3624
|
-
name: string | null;
|
|
3625
|
-
public_meta: unknown;
|
|
3626
|
-
};
|
|
3627
|
-
role: string;
|
|
3628
|
-
sub: string;
|
|
3629
|
-
userId: string;
|
|
3630
|
-
aud?: string | string[] | undefined;
|
|
3631
|
-
app_metadata?: unknown;
|
|
3632
|
-
} | undefined;
|
|
3633
|
-
};
|
|
3634
|
-
updated: string;
|
|
3635
|
-
created: string;
|
|
3636
|
-
state: "approved";
|
|
3637
|
-
role: "editor" | "viewer";
|
|
3638
|
-
} | {
|
|
3639
|
-
type: "vibes.diy.res-request-access";
|
|
3640
|
-
appSlug: string;
|
|
3641
|
-
userSlug: string;
|
|
3642
|
-
foreignUserId: string;
|
|
3643
|
-
foreignInfo: {
|
|
3644
|
-
givenEmail?: string | undefined;
|
|
3645
|
-
claims?: {
|
|
3646
|
-
azp?: string | undefined;
|
|
3647
|
-
exp?: number | undefined;
|
|
3648
|
-
iat?: number | undefined;
|
|
3649
|
-
iss?: string | undefined;
|
|
3650
|
-
jti?: string | undefined;
|
|
3651
|
-
nbf?: number | undefined;
|
|
3652
|
-
params: {
|
|
3653
|
-
nick?: string | undefined;
|
|
3654
|
-
email: string;
|
|
3655
|
-
email_verified: boolean;
|
|
3656
|
-
external_id?: string | null | undefined;
|
|
3657
|
-
first: string;
|
|
3658
|
-
image_url: string;
|
|
3659
|
-
last: string;
|
|
3660
|
-
name: string | null;
|
|
3661
|
-
public_meta: unknown;
|
|
3662
|
-
};
|
|
3663
|
-
role: string;
|
|
3664
|
-
sub: string;
|
|
3665
|
-
userId: string;
|
|
3666
|
-
aud?: string | string[] | undefined;
|
|
3667
|
-
app_metadata?: unknown;
|
|
3668
|
-
} | undefined;
|
|
3669
|
-
};
|
|
3670
|
-
updated: string;
|
|
3671
|
-
created: string;
|
|
3672
|
-
state: "revoked";
|
|
3673
|
-
role: "editor" | "viewer";
|
|
3674
|
-
} | {
|
|
3675
|
-
type: "vibes.diy.error";
|
|
3676
|
-
message: string;
|
|
3677
|
-
code: "owner-error";
|
|
3678
|
-
stack?: string[] | undefined;
|
|
3679
|
-
} | {
|
|
3680
|
-
type: "vibes.diy.error";
|
|
3681
|
-
message: string;
|
|
3682
|
-
code: "request-access-app-not-found" | "request-access-not-enabled";
|
|
3683
|
-
stack?: string[] | undefined;
|
|
3684
|
-
}, {}>;
|
|
3685
|
-
export type ResRequestAccessFlow = typeof ResRequestAccessFlow.infer;
|
|
3686
|
-
export declare function isResRequestAccessFlow(obj: unknown): obj is ResRequestAccessFlow;
|
|
3687
|
-
export declare const ResHasAccessRequestFlow: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3688
|
-
type: "vibes.diy.res-has-access-request";
|
|
3689
|
-
appSlug: string;
|
|
3690
|
-
userSlug: string;
|
|
3691
|
-
state: "not-found";
|
|
3692
|
-
} | {
|
|
3693
|
-
type: "vibes.diy.res-has-access-request";
|
|
3694
|
-
appSlug: string;
|
|
3695
|
-
userSlug: string;
|
|
3696
|
-
state: "pending";
|
|
3697
|
-
role: "editor" | "viewer" | null | undefined;
|
|
3698
|
-
} | {
|
|
3699
|
-
type: "vibes.diy.res-has-access-request";
|
|
3700
|
-
appSlug: string;
|
|
3701
|
-
userSlug: string;
|
|
3702
|
-
state: "approved";
|
|
3703
|
-
role: "editor" | "viewer";
|
|
3704
|
-
} | {
|
|
3705
|
-
type: "vibes.diy.res-has-access-request";
|
|
3706
|
-
appSlug: string;
|
|
3707
|
-
userSlug: string;
|
|
3708
|
-
state: "revoked";
|
|
3709
|
-
} | {
|
|
3710
|
-
type: "vibes.diy.error";
|
|
3711
|
-
message: string;
|
|
3712
|
-
code: "owner-error";
|
|
3713
|
-
stack?: string[] | undefined;
|
|
3714
|
-
}, {}>;
|
|
3715
|
-
export type ResHasAccessRequestFlow = typeof ResHasAccessRequestFlow.infer;
|
|
3716
|
-
export declare function isResHasAccessRequestFlow(obj: unknown): obj is ResHasAccessRequestFlow;
|
|
3717
|
-
export declare const ReqListRequestGrants: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3718
|
-
appSlug: string;
|
|
3719
|
-
userSlug: string;
|
|
3720
|
-
auth: {
|
|
3721
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3722
|
-
token: string;
|
|
3723
|
-
};
|
|
3724
|
-
pager: {
|
|
3725
|
-
limit?: number | undefined;
|
|
3726
|
-
cursor?: string | undefined;
|
|
3727
|
-
};
|
|
3728
|
-
type: "vibes.diy.req-list-request-grants";
|
|
3729
|
-
}, {}>;
|
|
3730
|
-
export type ReqListRequestGrants = typeof ReqListRequestGrants.infer;
|
|
3731
|
-
export declare function isReqListRequestGrants(obj: unknown): obj is ReqListRequestGrants;
|
|
3732
|
-
export declare const ResListRequestGrants: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3733
|
-
type: "vibes.diy.res-list-request-grants";
|
|
3734
|
-
appSlug: string;
|
|
3735
|
-
userSlug: string;
|
|
3736
|
-
items: {
|
|
3737
|
-
foreignUserId: string;
|
|
3738
|
-
state: "approved" | "pending" | "revoked";
|
|
3739
|
-
role: "editor" | "viewer" | null | undefined;
|
|
3740
|
-
foreignInfo: {
|
|
3741
|
-
claims?: {
|
|
3742
|
-
azp?: string | undefined;
|
|
3743
|
-
exp?: number | undefined;
|
|
3744
|
-
iat?: number | undefined;
|
|
3745
|
-
iss?: string | undefined;
|
|
3746
|
-
jti?: string | undefined;
|
|
3747
|
-
nbf?: number | undefined;
|
|
3748
|
-
params?: {
|
|
3749
|
-
nick?: string | undefined;
|
|
3750
|
-
email: string;
|
|
3751
|
-
email_verified: boolean;
|
|
3752
|
-
external_id?: string | null | undefined;
|
|
3753
|
-
first: string;
|
|
3754
|
-
image_url: string;
|
|
3755
|
-
last: string;
|
|
3756
|
-
name: string | null;
|
|
3757
|
-
public_meta: unknown;
|
|
3758
|
-
} | undefined;
|
|
3759
|
-
role?: string | undefined;
|
|
3760
|
-
sub?: string | undefined;
|
|
3761
|
-
userId?: string | undefined;
|
|
3762
|
-
aud?: string | string[] | undefined;
|
|
3763
|
-
app_metadata?: unknown;
|
|
3764
|
-
} | undefined;
|
|
3765
|
-
};
|
|
3766
|
-
tick: string;
|
|
3767
|
-
updated: string;
|
|
3768
|
-
created: string;
|
|
3769
|
-
}[];
|
|
3770
|
-
nextCursor?: string | undefined;
|
|
3771
|
-
}, {}>;
|
|
3772
|
-
export type ResListRequestGrants = typeof ResListRequestGrants.infer;
|
|
3773
|
-
export declare function isResListRequestGrants(obj: unknown): obj is ResListRequestGrants;
|
|
3774
|
-
export declare const evtNewFsId: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3775
|
-
type: "vibes.diy.evt-new-fs-id";
|
|
3776
|
-
userSlug: string;
|
|
3777
|
-
appSlug: string;
|
|
3778
|
-
fsId: string;
|
|
3779
|
-
sessionToken: string;
|
|
3780
|
-
vibeUrl: string;
|
|
3781
|
-
}, {}>;
|
|
3782
|
-
export type EvtNewFsId = typeof evtNewFsId.infer;
|
|
3783
|
-
export declare function isEvtNewFsId(obj: unknown): obj is EvtNewFsId;
|
|
3784
|
-
export declare const evtAppSetting: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3785
|
-
type: "vibes.diy.evt-app-setting";
|
|
3786
|
-
userSlug: string;
|
|
3787
|
-
appSlug: string;
|
|
3788
|
-
settings: ({
|
|
3789
|
-
type: "app.acl.active.invite";
|
|
3790
|
-
role: "editor";
|
|
3791
|
-
state: "pending";
|
|
3792
|
-
invite: {
|
|
3793
|
-
email: string;
|
|
3794
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3795
|
-
};
|
|
3796
|
-
token: string;
|
|
3797
|
-
} | {
|
|
3798
|
-
type: "app.acl.active.invite";
|
|
3799
|
-
role: "viewer";
|
|
3800
|
-
state: "pending";
|
|
3801
|
-
invite: {
|
|
3802
|
-
email: string;
|
|
3803
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3804
|
-
};
|
|
3805
|
-
token: string;
|
|
3806
|
-
} | {
|
|
3807
|
-
type: "app.acl.active.invite";
|
|
3808
|
-
role: "editor";
|
|
3809
|
-
state: "accepted";
|
|
3810
|
-
invite: {
|
|
3811
|
-
email: string;
|
|
3812
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3813
|
-
};
|
|
3814
|
-
grant: {
|
|
3815
|
-
ownerId: string;
|
|
3816
|
-
key?: string | undefined;
|
|
3817
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3818
|
-
};
|
|
3819
|
-
tick: {
|
|
3820
|
-
count: number;
|
|
3821
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3822
|
-
};
|
|
3823
|
-
} | {
|
|
3824
|
-
type: "app.acl.active.invite";
|
|
3825
|
-
role: "viewer";
|
|
3826
|
-
state: "accepted";
|
|
3827
|
-
invite: {
|
|
3828
|
-
email: string;
|
|
3829
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3830
|
-
};
|
|
3831
|
-
grant: {
|
|
3832
|
-
ownerId: string;
|
|
3833
|
-
key?: string | undefined;
|
|
3834
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3835
|
-
};
|
|
3836
|
-
tick: {
|
|
3837
|
-
count: number;
|
|
3838
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3839
|
-
};
|
|
3840
|
-
} | {
|
|
3841
|
-
type: "app.acl.active.invite";
|
|
3842
|
-
role: "editor";
|
|
3843
|
-
state: "revoked";
|
|
3844
|
-
invite: {
|
|
3845
|
-
email: string;
|
|
3846
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3847
|
-
};
|
|
3848
|
-
grant: {
|
|
3849
|
-
ownerId: string;
|
|
3850
|
-
key?: string | undefined;
|
|
3851
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3852
|
-
};
|
|
3853
|
-
tick: {
|
|
3854
|
-
count: number;
|
|
3855
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3856
|
-
};
|
|
3857
|
-
} | {
|
|
3858
|
-
type: "app.acl.active.invite";
|
|
3859
|
-
role: "viewer";
|
|
3860
|
-
state: "revoked";
|
|
3861
|
-
invite: {
|
|
3862
|
-
email: string;
|
|
3863
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3864
|
-
};
|
|
3865
|
-
grant: {
|
|
3866
|
-
ownerId: string;
|
|
3867
|
-
key?: string | undefined;
|
|
3868
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3869
|
-
};
|
|
3870
|
-
tick: {
|
|
3871
|
-
count: number;
|
|
3872
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3873
|
-
};
|
|
3874
|
-
} | {
|
|
3875
|
-
type: "app.acl.active.request";
|
|
3876
|
-
role: "viewer";
|
|
3877
|
-
state: "pending";
|
|
3878
|
-
request: {
|
|
3879
|
-
key: string;
|
|
3880
|
-
provider: "clerk" | "github" | "google";
|
|
3881
|
-
msg?: string | undefined;
|
|
3882
|
-
userId: string;
|
|
3883
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3884
|
-
};
|
|
3885
|
-
} | {
|
|
3886
|
-
type: "app.acl.active.request";
|
|
3887
|
-
role: "editor" | "viewer";
|
|
3888
|
-
state: "approved";
|
|
3889
|
-
request: {
|
|
3890
|
-
key: string;
|
|
3891
|
-
provider: "clerk" | "github" | "google";
|
|
3892
|
-
msg?: string | undefined;
|
|
3893
|
-
userId: string;
|
|
3894
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3895
|
-
};
|
|
3896
|
-
tick: {
|
|
3897
|
-
count: number;
|
|
3898
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3899
|
-
};
|
|
3900
|
-
grant: {
|
|
3901
|
-
ownerId: string;
|
|
3902
|
-
key?: string | undefined;
|
|
3903
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3904
|
-
};
|
|
3905
|
-
} | {
|
|
3906
|
-
type: "app.acl.active.request";
|
|
3907
|
-
role: "editor" | "viewer";
|
|
3908
|
-
state: "rejected";
|
|
3909
|
-
request: {
|
|
3910
|
-
key: string;
|
|
3911
|
-
provider: "clerk" | "github" | "google";
|
|
3912
|
-
msg?: string | undefined;
|
|
3913
|
-
userId: string;
|
|
3914
|
-
created: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3915
|
-
};
|
|
3916
|
-
grant: {
|
|
3917
|
-
ownerId: string;
|
|
3918
|
-
key?: string | undefined;
|
|
3919
|
-
on: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3920
|
-
};
|
|
3921
|
-
} | {
|
|
3922
|
-
type: "app.public.access";
|
|
3923
|
-
enable: boolean;
|
|
3924
|
-
tick?: {
|
|
3925
|
-
count: number;
|
|
3926
|
-
last: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3927
|
-
} | undefined;
|
|
3928
|
-
} | {
|
|
3929
|
-
type: "app.request";
|
|
3930
|
-
enable: boolean;
|
|
3931
|
-
autoAcceptViewRequest?: boolean | null | undefined;
|
|
3932
|
-
} | {
|
|
3933
|
-
type: "active.title";
|
|
3934
|
-
title: string;
|
|
3935
|
-
} | {
|
|
3936
|
-
type: "active.model";
|
|
3937
|
-
param: {
|
|
3938
|
-
model: string;
|
|
3939
|
-
apiKey?: string | undefined;
|
|
3940
|
-
};
|
|
3941
|
-
usage: "chat";
|
|
3942
|
-
} | {
|
|
3943
|
-
type: "active.model";
|
|
3944
|
-
param: {
|
|
3945
|
-
model: string;
|
|
3946
|
-
apiKey?: string | undefined;
|
|
3947
|
-
};
|
|
3948
|
-
usage: "app";
|
|
3949
|
-
} | {
|
|
3950
|
-
type: "active.env";
|
|
3951
|
-
env: {
|
|
3952
|
-
key: string;
|
|
3953
|
-
value: string;
|
|
3954
|
-
}[];
|
|
3955
|
-
})[];
|
|
3956
|
-
}, {}>;
|
|
3957
|
-
export type EvtAppSetting = typeof evtAppSetting.infer;
|
|
3958
|
-
export declare function isEvtAppSetting(obj: unknown): obj is EvtAppSetting;
|
|
3959
|
-
export declare const evtInviteGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3960
|
-
cud: "create" | "delete" | "update";
|
|
3961
|
-
type: "vibes.diy.evt-invite-grant";
|
|
3962
|
-
userSlug: string;
|
|
3963
|
-
appSlug: string;
|
|
3964
|
-
userId: string;
|
|
3965
|
-
state: "approved" | "pending" | "revoked";
|
|
3966
|
-
role: "editor" | "viewer" | null | undefined;
|
|
3967
|
-
foreignInfo: {
|
|
3968
|
-
givenEmail?: string | undefined;
|
|
3969
|
-
claims?: {
|
|
3970
|
-
azp?: string | undefined;
|
|
3971
|
-
exp?: number | undefined;
|
|
3972
|
-
iat?: number | undefined;
|
|
3973
|
-
iss?: string | undefined;
|
|
3974
|
-
jti?: string | undefined;
|
|
3975
|
-
nbf?: number | undefined;
|
|
3976
|
-
params: {
|
|
3977
|
-
nick?: string | undefined;
|
|
3978
|
-
email: string;
|
|
3979
|
-
email_verified: boolean;
|
|
3980
|
-
external_id?: string | null | undefined;
|
|
3981
|
-
first: string;
|
|
3982
|
-
image_url: string;
|
|
3983
|
-
last: string;
|
|
3984
|
-
name: string | null;
|
|
3985
|
-
public_meta: unknown;
|
|
3986
|
-
};
|
|
3987
|
-
role: string;
|
|
3988
|
-
sub: string;
|
|
3989
|
-
userId: string;
|
|
3990
|
-
aud?: string | string[] | undefined;
|
|
3991
|
-
app_metadata?: unknown;
|
|
3992
|
-
} | undefined;
|
|
3993
|
-
};
|
|
3994
|
-
emailKey: string;
|
|
3995
|
-
tokenOrGrantUserId: string;
|
|
3996
|
-
}, {}>;
|
|
3997
|
-
export type EvtInviteGrant = typeof evtInviteGrant.infer;
|
|
3998
|
-
export declare function isEvtInviteGrant(obj: unknown): obj is EvtInviteGrant;
|
|
3999
|
-
export declare const evtRequestGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4000
|
-
cud: "create" | "delete" | "update";
|
|
4001
|
-
type: "vibes.diy.evt-request-grant";
|
|
4002
|
-
userSlug: string;
|
|
4003
|
-
appSlug: string;
|
|
4004
|
-
userId: string;
|
|
4005
|
-
foreignUserId: string;
|
|
4006
|
-
state: "approved" | "pending" | "revoked";
|
|
4007
|
-
role: "editor" | "viewer" | null | undefined;
|
|
4008
|
-
foreignInfo: {
|
|
4009
|
-
givenEmail?: string | undefined;
|
|
4010
|
-
claims?: {
|
|
4011
|
-
azp?: string | undefined;
|
|
4012
|
-
exp?: number | undefined;
|
|
4013
|
-
iat?: number | undefined;
|
|
4014
|
-
iss?: string | undefined;
|
|
4015
|
-
jti?: string | undefined;
|
|
4016
|
-
nbf?: number | undefined;
|
|
4017
|
-
params: {
|
|
4018
|
-
nick?: string | undefined;
|
|
4019
|
-
email: string;
|
|
4020
|
-
email_verified: boolean;
|
|
4021
|
-
external_id?: string | null | undefined;
|
|
4022
|
-
first: string;
|
|
4023
|
-
image_url: string;
|
|
4024
|
-
last: string;
|
|
4025
|
-
name: string | null;
|
|
4026
|
-
public_meta: unknown;
|
|
4027
|
-
};
|
|
4028
|
-
role: string;
|
|
4029
|
-
sub: string;
|
|
4030
|
-
userId: string;
|
|
4031
|
-
aud?: string | string[] | undefined;
|
|
4032
|
-
app_metadata?: unknown;
|
|
4033
|
-
} | undefined;
|
|
4034
|
-
};
|
|
4035
|
-
}, {}>;
|
|
4036
|
-
export type EvtRequestGrant = typeof evtRequestGrant.infer;
|
|
4037
|
-
export declare function isEvtRequestGrant(obj: unknown): obj is EvtRequestGrant;
|
|
4038
|
-
export declare const ResSetModeFs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4039
|
-
type: "vibes.diy.res-set-mode-fs";
|
|
4040
|
-
fsId: string;
|
|
4041
|
-
appSlug: string;
|
|
4042
|
-
userSlug: string;
|
|
4043
|
-
mode: "dev" | "production";
|
|
4044
|
-
}, {}>;
|
|
4045
|
-
export type ResSetModeFs = typeof ResSetModeFs.infer;
|
|
4046
|
-
export declare function isResSetModeFs(obj: unknown): obj is ResSetModeFs;
|
|
4047
|
-
export declare const ReqSetModeFs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4048
|
-
type: "vibes.diy.req-set-mode-fs";
|
|
4049
|
-
auth: {
|
|
4050
|
-
type: "clerk" | "device-id" | "ucan";
|
|
4051
|
-
token: string;
|
|
4052
|
-
};
|
|
4053
|
-
fsId: string;
|
|
4054
|
-
appSlug: string;
|
|
4055
|
-
userSlug: string;
|
|
4056
|
-
mode: "dev" | "production";
|
|
4057
|
-
}, {}>;
|
|
4058
|
-
export declare const reqSetModeFs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4059
|
-
type: "vibes.diy.req-set-mode-fs";
|
|
4060
|
-
auth: {
|
|
4061
|
-
type: "clerk" | "device-id" | "ucan";
|
|
4062
|
-
token: string;
|
|
4063
|
-
};
|
|
4064
|
-
fsId: string;
|
|
4065
|
-
appSlug: string;
|
|
4066
|
-
userSlug: string;
|
|
4067
|
-
mode: "dev" | "production";
|
|
4068
|
-
}, {}>;
|
|
4069
|
-
export type ReqSetModeFs = typeof ReqSetModeFs.infer;
|
|
4070
|
-
export declare function isReqSetModeFs(obj: unknown): obj is ReqSetModeFs;
|
|
4071
|
-
export declare const ReqFPCloudToken: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4072
|
-
type: "vibes.diy.req-fpcloud-token";
|
|
4073
|
-
auth: {
|
|
4074
|
-
type: "clerk" | "device-id" | "ucan";
|
|
4075
|
-
token: string;
|
|
4076
|
-
};
|
|
4077
|
-
userSlug: string;
|
|
4078
|
-
appSlug: string;
|
|
4079
|
-
dbName: string;
|
|
4080
|
-
}, {}>;
|
|
4081
|
-
export type ReqFPCloudToken = typeof ReqFPCloudToken.infer;
|
|
4082
|
-
export declare function isReqFPCloudToken(obj: unknown): obj is ReqFPCloudToken;
|
|
4083
|
-
export declare const ResFPCloudTokenNoGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4084
|
-
type: "vibes.diy.res-fpcloud-token";
|
|
4085
|
-
grant: "no-grant";
|
|
4086
|
-
}, {}>;
|
|
4087
|
-
export type ResFPCloudTokenNoGrant = typeof ResFPCloudTokenNoGrant.infer;
|
|
4088
|
-
export declare function isResFPCloudTokenNoGrant(obj: unknown): obj is ResFPCloudTokenNoGrant;
|
|
4089
|
-
export declare const Token: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4090
|
-
expiresInSec: number;
|
|
4091
|
-
token: string;
|
|
4092
|
-
claims: {
|
|
4093
|
-
azp?: string | undefined;
|
|
4094
|
-
iss?: string | undefined;
|
|
4095
|
-
sub?: string | undefined;
|
|
4096
|
-
aud?: string | string[] | undefined;
|
|
4097
|
-
exp?: number | undefined;
|
|
4098
|
-
nbf?: number | undefined;
|
|
4099
|
-
iat?: number | undefined;
|
|
4100
|
-
jti?: string | undefined;
|
|
4101
|
-
userId: string;
|
|
4102
|
-
email: string;
|
|
4103
|
-
nickname?: string | undefined;
|
|
4104
|
-
provider?: "github" | "google" | undefined;
|
|
4105
|
-
created: (In: string | number) => import("arktype").Out<Date>;
|
|
4106
|
-
tenants: {
|
|
4107
|
-
id: string;
|
|
4108
|
-
role: "admin" | "member" | "owner";
|
|
4109
|
-
}[];
|
|
4110
|
-
ledgers: {
|
|
4111
|
-
id: string;
|
|
4112
|
-
role: "admin" | "member" | "owner";
|
|
4113
|
-
right: "read" | "write";
|
|
4114
|
-
}[];
|
|
4115
|
-
selected: {
|
|
4116
|
-
appId?: string | undefined;
|
|
4117
|
-
tenant: string;
|
|
4118
|
-
ledger: string;
|
|
4119
|
-
};
|
|
4120
|
-
};
|
|
4121
|
-
}, {}>;
|
|
4122
|
-
export type Token = typeof Token.infer;
|
|
4123
|
-
export declare const ResFPCloudTokenGrant: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4124
|
-
type: "vibes.diy.res-fpcloud-token";
|
|
4125
|
-
grant: "invite-editor" | "invite-viewer" | "owner" | "public" | "request-editor" | "request-viewer";
|
|
4126
|
-
token: {
|
|
4127
|
-
expiresInSec: number;
|
|
4128
|
-
token: string;
|
|
4129
|
-
claims: {
|
|
4130
|
-
azp?: string | undefined;
|
|
4131
|
-
iss?: string | undefined;
|
|
4132
|
-
sub?: string | undefined;
|
|
4133
|
-
aud?: string | string[] | undefined;
|
|
4134
|
-
exp?: number | undefined;
|
|
4135
|
-
nbf?: number | undefined;
|
|
4136
|
-
iat?: number | undefined;
|
|
4137
|
-
jti?: string | undefined;
|
|
4138
|
-
userId: string;
|
|
4139
|
-
email: string;
|
|
4140
|
-
nickname?: string | undefined;
|
|
4141
|
-
provider?: "github" | "google" | undefined;
|
|
4142
|
-
created: (In: string | number) => import("arktype").Out<Date>;
|
|
4143
|
-
tenants: {
|
|
4144
|
-
id: string;
|
|
4145
|
-
role: "admin" | "member" | "owner";
|
|
4146
|
-
}[];
|
|
4147
|
-
ledgers: {
|
|
4148
|
-
id: string;
|
|
4149
|
-
role: "admin" | "member" | "owner";
|
|
4150
|
-
right: "read" | "write";
|
|
4151
|
-
}[];
|
|
4152
|
-
selected: {
|
|
4153
|
-
appId?: string | undefined;
|
|
4154
|
-
tenant: string;
|
|
4155
|
-
ledger: string;
|
|
4156
|
-
};
|
|
4157
|
-
};
|
|
4158
|
-
};
|
|
4159
|
-
fpCloudUrl: string;
|
|
4160
|
-
appSlug: string;
|
|
4161
|
-
userSlug: string;
|
|
4162
|
-
dbName: string;
|
|
4163
|
-
ledger: string;
|
|
4164
|
-
tenant: string;
|
|
4165
|
-
}, {}>;
|
|
4166
|
-
export type ResFPCloudTokenGrant = typeof ResFPCloudTokenGrant.infer;
|
|
4167
|
-
export declare function isResFPCloudTokenGrant(obj: unknown): obj is ResFPCloudTokenGrant;
|
|
4168
|
-
export declare const ResFPCloudToken: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4169
|
-
type: "vibes.diy.res-fpcloud-token";
|
|
4170
|
-
grant: "no-grant";
|
|
4171
|
-
} | {
|
|
4172
|
-
type: "vibes.diy.res-fpcloud-token";
|
|
4173
|
-
grant: "invite-editor" | "invite-viewer" | "owner" | "public" | "request-editor" | "request-viewer";
|
|
4174
|
-
token: {
|
|
4175
|
-
expiresInSec: number;
|
|
4176
|
-
token: string;
|
|
4177
|
-
claims: {
|
|
4178
|
-
azp?: string | undefined;
|
|
4179
|
-
iss?: string | undefined;
|
|
4180
|
-
sub?: string | undefined;
|
|
4181
|
-
aud?: string | string[] | undefined;
|
|
4182
|
-
exp?: number | undefined;
|
|
4183
|
-
nbf?: number | undefined;
|
|
4184
|
-
iat?: number | undefined;
|
|
4185
|
-
jti?: string | undefined;
|
|
4186
|
-
userId: string;
|
|
4187
|
-
email: string;
|
|
4188
|
-
nickname?: string | undefined;
|
|
4189
|
-
provider?: "github" | "google" | undefined;
|
|
4190
|
-
created: (In: string | number) => import("arktype").Out<Date>;
|
|
4191
|
-
tenants: {
|
|
4192
|
-
id: string;
|
|
4193
|
-
role: "admin" | "member" | "owner";
|
|
4194
|
-
}[];
|
|
4195
|
-
ledgers: {
|
|
4196
|
-
id: string;
|
|
4197
|
-
role: "admin" | "member" | "owner";
|
|
4198
|
-
right: "read" | "write";
|
|
4199
|
-
}[];
|
|
4200
|
-
selected: {
|
|
4201
|
-
appId?: string | undefined;
|
|
4202
|
-
tenant: string;
|
|
4203
|
-
ledger: string;
|
|
4204
|
-
};
|
|
4205
|
-
};
|
|
4206
|
-
};
|
|
4207
|
-
fpCloudUrl: string;
|
|
4208
|
-
appSlug: string;
|
|
4209
|
-
userSlug: string;
|
|
4210
|
-
dbName: string;
|
|
4211
|
-
ledger: string;
|
|
4212
|
-
tenant: string;
|
|
4213
|
-
}, {}>;
|
|
4214
|
-
export type ResFPCloudToken = typeof ResFPCloudToken.infer;
|
|
4215
|
-
export declare function isResFPCloudToken(obj: unknown): obj is ResFPCloudToken;
|