@ganju/utils 0.0.15 → 0.0.17
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/dist/constants.d.ts +26 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +107 -9
- package/dist/customCodeToken.d.ts +11 -0
- package/dist/customCodeToken.d.ts.map +1 -1
- package/dist/customCodeToken.js +41 -1
- package/dist/data.d.ts +13 -0
- package/dist/data.d.ts.map +1 -0
- package/dist/data.js +103 -0
- package/dist/dataApi.d.ts +578 -0
- package/dist/dataApi.d.ts.map +1 -0
- package/dist/dataApi.js +399 -0
- package/dist/dataCompiler.d.ts +68 -0
- package/dist/dataCompiler.d.ts.map +1 -0
- package/dist/dataCompiler.js +730 -0
- package/dist/dataCsv.d.ts +20 -0
- package/dist/dataCsv.d.ts.map +1 -0
- package/dist/dataCsv.js +102 -0
- package/dist/dataDdl.d.ts +29 -0
- package/dist/dataDdl.d.ts.map +1 -0
- package/dist/dataDdl.js +354 -0
- package/dist/dataEngine.d.ts +143 -0
- package/dist/dataEngine.d.ts.map +1 -0
- package/dist/dataEngine.js +2042 -0
- package/dist/dataIdentifiers.d.ts +8 -0
- package/dist/dataIdentifiers.d.ts.map +1 -0
- package/dist/dataIdentifiers.js +55 -0
- package/dist/dataImport.d.ts +79 -0
- package/dist/dataImport.d.ts.map +1 -0
- package/dist/dataImport.js +453 -0
- package/dist/dataQueries.d.ts +73 -0
- package/dist/dataQueries.d.ts.map +1 -0
- package/dist/dataQueries.js +513 -0
- package/dist/dataRpc.d.ts +150 -0
- package/dist/dataRpc.d.ts.map +1 -0
- package/dist/dataRpc.js +2 -0
- package/dist/dataTools.d.ts +40 -0
- package/dist/dataTools.d.ts.map +1 -0
- package/dist/dataTools.js +280 -0
- package/dist/dataTypes.d.ts +159 -0
- package/dist/dataTypes.d.ts.map +1 -0
- package/dist/dataTypes.js +160 -0
- package/dist/index.d.ts +394 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/oauth.d.ts +14 -0
- package/dist/oauth.d.ts.map +1 -1
- package/dist/oauth.js +42 -2
- package/dist/resourceRerank.d.ts +3 -2
- package/dist/resourceRerank.d.ts.map +1 -1
- package/dist/resourceRerank.js +5 -2
- package/dist/schema.d.ts +376 -4
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +268 -1
- package/dist/sdkConstants.d.ts +1 -0
- package/dist/sdkConstants.d.ts.map +1 -1
- package/dist/sdkConstants.js +2 -1
- package/package.json +17 -2
- package/src/constants.ts +121 -9
- package/src/customCodeToken.ts +74 -0
- package/src/data.ts +108 -0
- package/src/dataApi.ts +479 -0
- package/src/dataCompiler.ts +952 -0
- package/src/dataCsv.ts +99 -0
- package/src/dataDdl.ts +419 -0
- package/src/dataEngine.ts +2773 -0
- package/src/dataIdentifiers.ts +63 -0
- package/src/dataImport.ts +557 -0
- package/src/dataQueries.ts +730 -0
- package/src/dataRpc.ts +132 -0
- package/src/dataTools.ts +338 -0
- package/src/dataTypes.ts +318 -0
- package/src/index.ts +13 -1
- package/src/oauth.ts +42 -1
- package/src/resourceRerank.ts +5 -2
- package/src/schema.ts +315 -1
- package/src/sdkConstants.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -107,6 +107,8 @@ exports.utils = {
|
|
|
107
107
|
listResourcesPage: pagination_1.listResourcesPage,
|
|
108
108
|
mintCustomCodeToken: customCodeToken_1.mintCustomCodeToken,
|
|
109
109
|
verifyCustomCodeToken: customCodeToken_1.verifyCustomCodeToken,
|
|
110
|
+
mintCustomCodeCallToken: customCodeToken_1.mintCustomCodeCallToken,
|
|
111
|
+
verifyCustomCodeCallToken: customCodeToken_1.verifyCustomCodeCallToken,
|
|
110
112
|
customCodeScriptName: customCodeToken_1.customCodeScriptName,
|
|
111
113
|
customCodePreviewScriptName: customCodeToken_1.customCodePreviewScriptName,
|
|
112
114
|
customCodeUploadName: customCodeToken_1.customCodeUploadName,
|
|
@@ -255,6 +257,8 @@ exports.utils = {
|
|
|
255
257
|
selectCitedSources: citations_1.selectCitedSources,
|
|
256
258
|
refreshOAuthToken: oauth_1.refreshOAuthToken,
|
|
257
259
|
OAuthReauthRequiredError: oauth_1.OAuthReauthRequiredError,
|
|
260
|
+
OAuthRefreshError: oauth_1.OAuthRefreshError,
|
|
261
|
+
refreshFailureReauthReason: oauth_1.refreshFailureReauthReason,
|
|
258
262
|
buildReauthMetadata: oauth_1.buildReauthMetadata,
|
|
259
263
|
clearReauthMetadata: oauth_1.clearReauthMetadata,
|
|
260
264
|
isCredentialNeedingReauth: oauth_1.isCredentialNeedingReauth,
|
package/dist/oauth.d.ts
CHANGED
|
@@ -14,8 +14,22 @@ export declare class OAuthReauthRequiredError extends Error {
|
|
|
14
14
|
readonly code: string;
|
|
15
15
|
constructor(code: string);
|
|
16
16
|
}
|
|
17
|
+
export declare class OAuthRefreshError extends Error {
|
|
18
|
+
readonly status: number;
|
|
19
|
+
readonly code: string | undefined;
|
|
20
|
+
constructor(status: number, code: string | undefined, body: string);
|
|
21
|
+
}
|
|
17
22
|
export declare const refreshOAuthToken: (input: RefreshOAuthTokenInput) => Promise<RefreshedOAuthToken>;
|
|
18
23
|
export declare const buildReauthMetadata: (previous: Record<string, unknown> | null, reason: string) => Record<string, unknown>;
|
|
19
24
|
export declare const clearReauthMetadata: (previous: Record<string, unknown> | null) => Record<string, unknown> | null;
|
|
25
|
+
/**
|
|
26
|
+
* Why a failed refresh should flag the credential for a reconnect, or null
|
|
27
|
+
* when it shouldn't. A reauth code flags it at once. Any other rejection
|
|
28
|
+
* (4xx) flags it only once the access token has been expired for
|
|
29
|
+
* CREDENTIAL_REFRESH_GIVE_UP_MS, so a one-off doesn't. Never flagged: an
|
|
30
|
+
* outage (5xx), a network error, rate limiting (429), and errors about our
|
|
31
|
+
* own client id / secret, which no reconnect can fix.
|
|
32
|
+
*/
|
|
33
|
+
export declare const refreshFailureReauthReason: (err: unknown, expiresAt: Date | null, now?: number) => string | null;
|
|
20
34
|
export declare const isCredentialNeedingReauth: (metadata: unknown) => boolean;
|
|
21
35
|
//# sourceMappingURL=oauth.d.ts.map
|
package/dist/oauth.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../src/oauth.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qBAAa,wBAAyB,SAAQ,KAAK;IACjD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;gBAEV,IAAI,EAAE,MAAM;CAKzB;AAUD,eAAO,MAAM,iBAAiB,GAC5B,OAAO,sBAAsB,KAC5B,OAAO,CAAC,mBAAmB,CAsC7B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACxC,QAAQ,MAAM,KACb,MAAM,CAAC,MAAM,EAAE,OAAO,CAKvB,CAAC;AAEH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,KACvC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAO5B,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,UAAU,OAAO,KAAG,OAG7D,CAAC"}
|
|
1
|
+
{"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../src/oauth.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CA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 -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isCredentialNeedingReauth = exports.clearReauthMetadata = exports.buildReauthMetadata = exports.refreshOAuthToken = exports.OAuthReauthRequiredError = void 0;
|
|
3
|
+
exports.isCredentialNeedingReauth = exports.refreshFailureReauthReason = exports.clearReauthMetadata = exports.buildReauthMetadata = exports.refreshOAuthToken = exports.OAuthRefreshError = exports.OAuthReauthRequiredError = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
class OAuthReauthRequiredError extends Error {
|
|
6
6
|
code;
|
|
@@ -11,6 +11,20 @@ class OAuthReauthRequiredError extends Error {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.OAuthReauthRequiredError = OAuthReauthRequiredError;
|
|
14
|
+
// The token endpoint answered with an error that isn't a reauth code. `status`
|
|
15
|
+
// tells a rejection (4xx) from an outage (5xx); a network failure never gets
|
|
16
|
+
// here, it throws fetch's own error.
|
|
17
|
+
class OAuthRefreshError extends Error {
|
|
18
|
+
status;
|
|
19
|
+
code;
|
|
20
|
+
constructor(status, code, body) {
|
|
21
|
+
super(`oauth refresh failed (${status}): ${body}`);
|
|
22
|
+
this.name = 'OAuthRefreshError';
|
|
23
|
+
this.status = status;
|
|
24
|
+
this.code = code;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.OAuthRefreshError = OAuthRefreshError;
|
|
14
28
|
const parseErrorCode = (body) => {
|
|
15
29
|
try {
|
|
16
30
|
return JSON.parse(body)?.error;
|
|
@@ -36,7 +50,7 @@ const refreshOAuthToken = async (input) => {
|
|
|
36
50
|
if (code && constants_1.constants.REAUTH_ERROR_CODES.includes(code)) {
|
|
37
51
|
throw new OAuthReauthRequiredError(code);
|
|
38
52
|
}
|
|
39
|
-
throw new
|
|
53
|
+
throw new OAuthRefreshError(response.status, code, body);
|
|
40
54
|
}
|
|
41
55
|
const tokens = (await response.json());
|
|
42
56
|
if (!tokens.access_token) {
|
|
@@ -67,6 +81,32 @@ const clearReauthMetadata = (previous) => {
|
|
|
67
81
|
return Object.keys(next).length > 0 ? next : null;
|
|
68
82
|
};
|
|
69
83
|
exports.clearReauthMetadata = clearReauthMetadata;
|
|
84
|
+
/**
|
|
85
|
+
* Why a failed refresh should flag the credential for a reconnect, or null
|
|
86
|
+
* when it shouldn't. A reauth code flags it at once. Any other rejection
|
|
87
|
+
* (4xx) flags it only once the access token has been expired for
|
|
88
|
+
* CREDENTIAL_REFRESH_GIVE_UP_MS, so a one-off doesn't. Never flagged: an
|
|
89
|
+
* outage (5xx), a network error, rate limiting (429), and errors about our
|
|
90
|
+
* own client id / secret, which no reconnect can fix.
|
|
91
|
+
*/
|
|
92
|
+
const refreshFailureReauthReason = (err, expiresAt, now = Date.now()) => {
|
|
93
|
+
if (err instanceof OAuthReauthRequiredError)
|
|
94
|
+
return err.code;
|
|
95
|
+
if (!(err instanceof OAuthRefreshError))
|
|
96
|
+
return null;
|
|
97
|
+
if (err.status < 400 || err.status >= 500 || err.status === 429)
|
|
98
|
+
return null;
|
|
99
|
+
if (err.code && constants_1.constants.OAUTH_CLIENT_ERROR_CODES.includes(err.code)) {
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
if (!expiresAt)
|
|
103
|
+
return null;
|
|
104
|
+
if (now - expiresAt.getTime() < constants_1.constants.CREDENTIAL_REFRESH_GIVE_UP_MS) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return err.code ? `refresh_rejected:${err.code}` : 'refresh_rejected';
|
|
108
|
+
};
|
|
109
|
+
exports.refreshFailureReauthReason = refreshFailureReauthReason;
|
|
70
110
|
const isCredentialNeedingReauth = (metadata) => {
|
|
71
111
|
if (!metadata || typeof metadata !== 'object')
|
|
72
112
|
return false;
|
package/dist/resourceRerank.d.ts
CHANGED
|
@@ -9,12 +9,13 @@ export interface RerankAiBinding {
|
|
|
9
9
|
}): Promise<unknown>;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* The cross-encoder second stage for resource search, or undefined when
|
|
12
|
+
* The cross-encoder second stage for resource search, or undefined when it is
|
|
13
|
+
* off (RESOURCE_SEARCH_RERANK_ENABLED, unless `enabled` overrides it) or the
|
|
13
14
|
* Worker has no `AI` binding — local dev without Workers AI keeps plain fusion.
|
|
14
15
|
*
|
|
15
16
|
* Returns one score per document, in input order. A response that doesn't
|
|
16
17
|
* cover every document returns null, which keeps the fused order — a partial
|
|
17
18
|
* ranking would silently drop the chunks it left out.
|
|
18
19
|
*/
|
|
19
|
-
export declare const createResourceReranker: (source: EnvSource) => ((query: string, documents: string[]) => Promise<number[] | null>) | undefined;
|
|
20
|
+
export declare const createResourceReranker: (source: EnvSource, enabled?: boolean) => ((query: string, documents: string[]) => Promise<number[] | null>) | undefined;
|
|
20
21
|
//# sourceMappingURL=resourceRerank.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resourceRerank.d.ts","sourceRoot":"","sources":["../src/resourceRerank.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,MAAM,WAAW,eAAe;IAC9B,GAAG,CACD,KAAK,EAAE,MAAM,EACb,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAC1E,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB;AAMD
|
|
1
|
+
{"version":3,"file":"resourceRerank.d.ts","sourceRoot":"","sources":["../src/resourceRerank.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,MAAM,WAAW,eAAe;IAC9B,GAAG,CACD,KAAK,EAAE,MAAM,EACb,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,KAAK,CAAC;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAC1E,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB;AAMD;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,GACjC,QAAQ,SAAS,EACjB,UAAS,OAAkD,KAEzD,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC,GAClE,SA8BH,CAAC"}
|
package/dist/resourceRerank.js
CHANGED
|
@@ -3,14 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.createResourceReranker = void 0;
|
|
4
4
|
const constants_1 = require("./constants");
|
|
5
5
|
/**
|
|
6
|
-
* The cross-encoder second stage for resource search, or undefined when
|
|
6
|
+
* The cross-encoder second stage for resource search, or undefined when it is
|
|
7
|
+
* off (RESOURCE_SEARCH_RERANK_ENABLED, unless `enabled` overrides it) or the
|
|
7
8
|
* Worker has no `AI` binding — local dev without Workers AI keeps plain fusion.
|
|
8
9
|
*
|
|
9
10
|
* Returns one score per document, in input order. A response that doesn't
|
|
10
11
|
* cover every document returns null, which keeps the fused order — a partial
|
|
11
12
|
* ranking would silently drop the chunks it left out.
|
|
12
13
|
*/
|
|
13
|
-
const createResourceReranker = (source) => {
|
|
14
|
+
const createResourceReranker = (source, enabled = constants_1.constants.RESOURCE_SEARCH_RERANK_ENABLED) => {
|
|
15
|
+
if (!enabled)
|
|
16
|
+
return undefined;
|
|
14
17
|
const ai = source.env?.AI;
|
|
15
18
|
if (!ai)
|
|
16
19
|
return undefined;
|
package/dist/schema.d.ts
CHANGED
|
@@ -313,6 +313,13 @@ declare const CUSTOM_CODE_TOOL: z.ZodObject<{
|
|
|
313
313
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
314
314
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
315
315
|
}, z.core.$strict>>;
|
|
316
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
317
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
318
|
+
read: "read";
|
|
319
|
+
write: "write";
|
|
320
|
+
}>>;
|
|
321
|
+
tables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
322
|
+
}, z.core.$strict>>;
|
|
316
323
|
}, z.core.$strip>;
|
|
317
324
|
declare const CUSTOM_CODE_MANIFEST: z.ZodObject<{
|
|
318
325
|
tools: z.ZodArray<z.ZodObject<{
|
|
@@ -353,6 +360,13 @@ declare const CUSTOM_CODE_MANIFEST: z.ZodObject<{
|
|
|
353
360
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
354
361
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
355
362
|
}, z.core.$strict>>;
|
|
363
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
364
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
365
|
+
read: "read";
|
|
366
|
+
write: "write";
|
|
367
|
+
}>>;
|
|
368
|
+
tables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
369
|
+
}, z.core.$strict>>;
|
|
356
370
|
}, z.core.$strip>>;
|
|
357
371
|
}, z.core.$strip>;
|
|
358
372
|
declare const CUSTOM_CODE_BROKER_RESOURCE_CREATE: z.ZodObject<{
|
|
@@ -604,7 +618,6 @@ export declare const Schema: {
|
|
|
604
618
|
}, z.core.$strip>;
|
|
605
619
|
ARTIFACT_CREATE_PROMPT_VIEW: z.ZodObject<{
|
|
606
620
|
description: z.ZodOptional<z.ZodString>;
|
|
607
|
-
title: z.ZodString;
|
|
608
621
|
schema: z.ZodObject<{
|
|
609
622
|
type: z.ZodEnum<{
|
|
610
623
|
[x: string]: string;
|
|
@@ -619,6 +632,7 @@ export declare const Schema: {
|
|
|
619
632
|
pattern: z.ZodOptional<z.ZodString>;
|
|
620
633
|
enum: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
621
634
|
}, z.core.$strip>;
|
|
635
|
+
title: z.ZodString;
|
|
622
636
|
messages: z.ZodArray<z.ZodObject<{
|
|
623
637
|
role: z.ZodEnum<{
|
|
624
638
|
user: "user";
|
|
@@ -658,7 +672,6 @@ export declare const Schema: {
|
|
|
658
672
|
}, z.core.$strip>;
|
|
659
673
|
ARTIFACT_UPDATE_PROMPT_VIEW: z.ZodObject<{
|
|
660
674
|
description: z.ZodOptional<z.ZodString>;
|
|
661
|
-
title: z.ZodString;
|
|
662
675
|
schema: z.ZodObject<{
|
|
663
676
|
type: z.ZodEnum<{
|
|
664
677
|
[x: string]: string;
|
|
@@ -673,6 +686,7 @@ export declare const Schema: {
|
|
|
673
686
|
pattern: z.ZodOptional<z.ZodString>;
|
|
674
687
|
enum: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
675
688
|
}, z.core.$strip>;
|
|
689
|
+
title: z.ZodString;
|
|
676
690
|
messages: z.ZodArray<z.ZodObject<{
|
|
677
691
|
role: z.ZodEnum<{
|
|
678
692
|
user: "user";
|
|
@@ -833,12 +847,12 @@ export declare const Schema: {
|
|
|
833
847
|
}>>;
|
|
834
848
|
content: z.ZodOptional<z.ZodString>;
|
|
835
849
|
description: z.ZodOptional<z.ZodString>;
|
|
850
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
836
851
|
title: z.ZodString;
|
|
837
852
|
crawlConfig: z.ZodOptional<z.ZodObject<{
|
|
838
853
|
maxPages: z.ZodDefault<z.ZodNumber>;
|
|
839
854
|
maxDepth: z.ZodDefault<z.ZodNumber>;
|
|
840
855
|
}, z.core.$strip>>;
|
|
841
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
842
856
|
encoding: z.ZodOptional<z.ZodString>;
|
|
843
857
|
fileKey: z.ZodOptional<z.ZodString>;
|
|
844
858
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
@@ -1094,8 +1108,8 @@ export declare const Schema: {
|
|
|
1094
1108
|
}>>;
|
|
1095
1109
|
content: z.ZodOptional<z.ZodString>;
|
|
1096
1110
|
description: z.ZodOptional<z.ZodString>;
|
|
1097
|
-
title: z.ZodString;
|
|
1098
1111
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1112
|
+
title: z.ZodString;
|
|
1099
1113
|
encoding: z.ZodOptional<z.ZodString>;
|
|
1100
1114
|
fileKey: z.ZodOptional<z.ZodString>;
|
|
1101
1115
|
annotations: z.ZodOptional<z.ZodObject<{
|
|
@@ -1127,6 +1141,333 @@ export declare const Schema: {
|
|
|
1127
1141
|
userId: z.ZodUUID;
|
|
1128
1142
|
organizationId: z.ZodUUID;
|
|
1129
1143
|
}, z.core.$strip>;
|
|
1144
|
+
DATA_DATABASE_GET: z.ZodObject<{
|
|
1145
|
+
projectId: z.ZodUUID;
|
|
1146
|
+
userId: z.ZodUUID;
|
|
1147
|
+
organizationId: z.ZodUUID;
|
|
1148
|
+
}, z.core.$strip>;
|
|
1149
|
+
DATA_DATABASE_CREATE: z.ZodObject<{
|
|
1150
|
+
projectId: z.ZodUUID;
|
|
1151
|
+
userId: z.ZodUUID;
|
|
1152
|
+
organizationId: z.ZodUUID;
|
|
1153
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1154
|
+
replaceDeleted: z.ZodOptional<z.ZodBoolean>;
|
|
1155
|
+
}, z.core.$strip>;
|
|
1156
|
+
DATA_DATABASE_DELETE: z.ZodObject<{
|
|
1157
|
+
projectId: z.ZodUUID;
|
|
1158
|
+
userId: z.ZodUUID;
|
|
1159
|
+
organizationId: z.ZodUUID;
|
|
1160
|
+
confirmName: z.ZodString;
|
|
1161
|
+
}, z.core.$strip>;
|
|
1162
|
+
DATA_COLUMN_INPUT: z.ZodObject<{
|
|
1163
|
+
name: z.ZodString;
|
|
1164
|
+
type: z.ZodEnum<{
|
|
1165
|
+
boolean: "boolean";
|
|
1166
|
+
email: "email";
|
|
1167
|
+
json: "json";
|
|
1168
|
+
text: "text";
|
|
1169
|
+
long_text: "long_text";
|
|
1170
|
+
integer: "integer";
|
|
1171
|
+
decimal: "decimal";
|
|
1172
|
+
date: "date";
|
|
1173
|
+
datetime: "datetime";
|
|
1174
|
+
enum: "enum";
|
|
1175
|
+
url: "url";
|
|
1176
|
+
phone: "phone";
|
|
1177
|
+
relation: "relation";
|
|
1178
|
+
file: "file";
|
|
1179
|
+
}>;
|
|
1180
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1181
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1182
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1183
|
+
unique: z.ZodOptional<z.ZodBoolean>;
|
|
1184
|
+
filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1185
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
1186
|
+
personal: z.ZodOptional<z.ZodBoolean>;
|
|
1187
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1188
|
+
table: z.ZodOptional<z.ZodString>;
|
|
1189
|
+
onDelete: z.ZodOptional<z.ZodEnum<{
|
|
1190
|
+
restrict: "restrict";
|
|
1191
|
+
cascade: "cascade";
|
|
1192
|
+
set_null: "set_null";
|
|
1193
|
+
}>>;
|
|
1194
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1195
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1196
|
+
}, z.core.$strict>;
|
|
1197
|
+
DATA_TABLE_INPUT: z.ZodObject<{
|
|
1198
|
+
name: z.ZodString;
|
|
1199
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1200
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1201
|
+
displayColumn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1202
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
1203
|
+
none: "none";
|
|
1204
|
+
read: "read";
|
|
1205
|
+
add: "add";
|
|
1206
|
+
full: "full";
|
|
1207
|
+
}>>;
|
|
1208
|
+
customerScoped: z.ZodOptional<z.ZodBoolean>;
|
|
1209
|
+
history: z.ZodOptional<z.ZodBoolean>;
|
|
1210
|
+
columns: z.ZodArray<z.ZodObject<{
|
|
1211
|
+
name: z.ZodString;
|
|
1212
|
+
type: z.ZodEnum<{
|
|
1213
|
+
boolean: "boolean";
|
|
1214
|
+
email: "email";
|
|
1215
|
+
json: "json";
|
|
1216
|
+
text: "text";
|
|
1217
|
+
long_text: "long_text";
|
|
1218
|
+
integer: "integer";
|
|
1219
|
+
decimal: "decimal";
|
|
1220
|
+
date: "date";
|
|
1221
|
+
datetime: "datetime";
|
|
1222
|
+
enum: "enum";
|
|
1223
|
+
url: "url";
|
|
1224
|
+
phone: "phone";
|
|
1225
|
+
relation: "relation";
|
|
1226
|
+
file: "file";
|
|
1227
|
+
}>;
|
|
1228
|
+
label: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1229
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1230
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1231
|
+
unique: z.ZodOptional<z.ZodBoolean>;
|
|
1232
|
+
filterable: z.ZodOptional<z.ZodBoolean>;
|
|
1233
|
+
searchable: z.ZodOptional<z.ZodBoolean>;
|
|
1234
|
+
personal: z.ZodOptional<z.ZodBoolean>;
|
|
1235
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1236
|
+
table: z.ZodOptional<z.ZodString>;
|
|
1237
|
+
onDelete: z.ZodOptional<z.ZodEnum<{
|
|
1238
|
+
restrict: "restrict";
|
|
1239
|
+
cascade: "cascade";
|
|
1240
|
+
set_null: "set_null";
|
|
1241
|
+
}>>;
|
|
1242
|
+
min: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1243
|
+
default: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>;
|
|
1244
|
+
}, z.core.$strict>>;
|
|
1245
|
+
}, z.core.$strict>;
|
|
1246
|
+
DATA_TABLE_PATCH: z.ZodObject<{
|
|
1247
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1248
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1249
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1250
|
+
displayColumn: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1251
|
+
access: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1252
|
+
none: "none";
|
|
1253
|
+
read: "read";
|
|
1254
|
+
add: "add";
|
|
1255
|
+
full: "full";
|
|
1256
|
+
}>>>;
|
|
1257
|
+
customerScoped: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1258
|
+
history: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1259
|
+
}, z.core.$strict>;
|
|
1260
|
+
DATA_COLUMN_PATCH: z.ZodObject<{
|
|
1261
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1262
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1263
|
+
boolean: "boolean";
|
|
1264
|
+
email: "email";
|
|
1265
|
+
json: "json";
|
|
1266
|
+
text: "text";
|
|
1267
|
+
long_text: "long_text";
|
|
1268
|
+
integer: "integer";
|
|
1269
|
+
decimal: "decimal";
|
|
1270
|
+
date: "date";
|
|
1271
|
+
datetime: "datetime";
|
|
1272
|
+
enum: "enum";
|
|
1273
|
+
url: "url";
|
|
1274
|
+
phone: "phone";
|
|
1275
|
+
relation: "relation";
|
|
1276
|
+
file: "file";
|
|
1277
|
+
}>>;
|
|
1278
|
+
label: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1279
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1280
|
+
required: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1281
|
+
unique: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1282
|
+
filterable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1283
|
+
searchable: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1284
|
+
personal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
1285
|
+
values: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
1286
|
+
table: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1287
|
+
onDelete: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1288
|
+
restrict: "restrict";
|
|
1289
|
+
cascade: "cascade";
|
|
1290
|
+
set_null: "set_null";
|
|
1291
|
+
}>>>;
|
|
1292
|
+
min: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1293
|
+
default: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
1294
|
+
}, z.core.$strict>;
|
|
1295
|
+
DATA_TABLE_DROP_BODY: z.ZodObject<{
|
|
1296
|
+
confirmName: z.ZodString;
|
|
1297
|
+
}, z.core.$strict>;
|
|
1298
|
+
DATA_ROW_LIST_QUERY: z.ZodObject<{
|
|
1299
|
+
where: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<unknown, string>>>;
|
|
1300
|
+
sort: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>>;
|
|
1301
|
+
include: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>>;
|
|
1302
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1303
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
1304
|
+
q: z.ZodOptional<z.ZodString>;
|
|
1305
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1306
|
+
}, z.core.$strict>;
|
|
1307
|
+
DATA_ROW_GET_QUERY: z.ZodObject<{
|
|
1308
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1309
|
+
include: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>>;
|
|
1310
|
+
}, z.core.$strict>;
|
|
1311
|
+
DATA_ROW_CREATE_BODY: z.ZodUnion<readonly [z.ZodObject<{
|
|
1312
|
+
values: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1313
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1314
|
+
rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1315
|
+
}, z.core.$strict>]>;
|
|
1316
|
+
DATA_ROW_UPDATE_BODY: z.ZodObject<{
|
|
1317
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1318
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1319
|
+
}, z.core.$strict>;
|
|
1320
|
+
DATA_ROW_DELETE_BODY: z.ZodObject<{
|
|
1321
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1322
|
+
}, z.core.$strict>;
|
|
1323
|
+
DATA_DELETE_PREVIEW_BODY: z.ZodObject<{
|
|
1324
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
1325
|
+
}, z.core.$strict>;
|
|
1326
|
+
DATA_WRITE_OPERATION: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1327
|
+
op: z.ZodLiteral<"insert">;
|
|
1328
|
+
table: z.ZodString;
|
|
1329
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1330
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1331
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1332
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1333
|
+
table: z.ZodString;
|
|
1334
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1335
|
+
$ref: z.ZodNumber;
|
|
1336
|
+
}, z.core.$strict>]>>;
|
|
1337
|
+
where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1338
|
+
expect: z.ZodOptional<z.ZodNumber>;
|
|
1339
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1340
|
+
op: z.ZodLiteral<"update">;
|
|
1341
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1342
|
+
table: z.ZodString;
|
|
1343
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1344
|
+
$ref: z.ZodNumber;
|
|
1345
|
+
}, z.core.$strict>]>>;
|
|
1346
|
+
where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1347
|
+
expect: z.ZodOptional<z.ZodNumber>;
|
|
1348
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1349
|
+
op: z.ZodLiteral<"delete">;
|
|
1350
|
+
}, z.core.$strict>], "op">;
|
|
1351
|
+
DATA_WRITE_BODY: z.ZodObject<{
|
|
1352
|
+
operations: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1353
|
+
op: z.ZodLiteral<"insert">;
|
|
1354
|
+
table: z.ZodString;
|
|
1355
|
+
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1356
|
+
rows: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1357
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1358
|
+
set: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1359
|
+
table: z.ZodString;
|
|
1360
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1361
|
+
$ref: z.ZodNumber;
|
|
1362
|
+
}, z.core.$strict>]>>;
|
|
1363
|
+
where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1364
|
+
expect: z.ZodOptional<z.ZodNumber>;
|
|
1365
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1366
|
+
op: z.ZodLiteral<"update">;
|
|
1367
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1368
|
+
table: z.ZodString;
|
|
1369
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodObject<{
|
|
1370
|
+
$ref: z.ZodNumber;
|
|
1371
|
+
}, z.core.$strict>]>>;
|
|
1372
|
+
where: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1373
|
+
expect: z.ZodOptional<z.ZodNumber>;
|
|
1374
|
+
version: z.ZodOptional<z.ZodNumber>;
|
|
1375
|
+
op: z.ZodLiteral<"delete">;
|
|
1376
|
+
}, z.core.$strict>], "op">>;
|
|
1377
|
+
}, z.core.$strict>;
|
|
1378
|
+
DATA_ROW_HISTORY_QUERY: z.ZodObject<{
|
|
1379
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1380
|
+
cursor: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1381
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
}, z.core.$strict>;
|
|
1383
|
+
DATA_RESTORE_POINT_BODY: z.ZodUnion<readonly [z.ZodObject<{
|
|
1384
|
+
timestamp: z.ZodUnion<readonly [z.ZodISODateTime, z.ZodNumber]>;
|
|
1385
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1386
|
+
bookmark: z.ZodString;
|
|
1387
|
+
}, z.core.$strict>]>;
|
|
1388
|
+
DATA_EXPORT_BODY: z.ZodObject<{
|
|
1389
|
+
format: z.ZodOptional<z.ZodEnum<{
|
|
1390
|
+
csv: "csv";
|
|
1391
|
+
jsonl: "jsonl";
|
|
1392
|
+
}>>;
|
|
1393
|
+
}, z.core.$strict>;
|
|
1394
|
+
DATA_EXPORT_QUERY: z.ZodObject<{
|
|
1395
|
+
exportId: z.ZodOptional<z.ZodUUID>;
|
|
1396
|
+
}, z.core.$strict>;
|
|
1397
|
+
DATA_EXPORT_FILE_QUERY: z.ZodObject<{
|
|
1398
|
+
exportId: z.ZodUUID;
|
|
1399
|
+
table: z.ZodOptional<z.ZodString>;
|
|
1400
|
+
}, z.core.$strict>;
|
|
1401
|
+
DATA_CHANGE_LIST_QUERY: z.ZodObject<{
|
|
1402
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
1403
|
+
cursor: z.ZodOptional<z.ZodUUID>;
|
|
1404
|
+
}, z.core.$strict>;
|
|
1405
|
+
DATA_TABLE_PARAMS: z.ZodObject<{
|
|
1406
|
+
projectId: z.ZodUUID;
|
|
1407
|
+
userId: z.ZodUUID;
|
|
1408
|
+
organizationId: z.ZodUUID;
|
|
1409
|
+
table: z.ZodString;
|
|
1410
|
+
}, z.core.$strip>;
|
|
1411
|
+
DATA_DATABASE_PATCH: z.ZodObject<{
|
|
1412
|
+
timeZone: z.ZodNullable<z.ZodString>;
|
|
1413
|
+
}, z.core.$strict>;
|
|
1414
|
+
DATA_QUERY_PARAM: z.ZodObject<{
|
|
1415
|
+
name: z.ZodString;
|
|
1416
|
+
type: z.ZodEnum<{
|
|
1417
|
+
boolean: "boolean";
|
|
1418
|
+
text: "text";
|
|
1419
|
+
integer: "integer";
|
|
1420
|
+
decimal: "decimal";
|
|
1421
|
+
date: "date";
|
|
1422
|
+
datetime: "datetime";
|
|
1423
|
+
}>;
|
|
1424
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1425
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1426
|
+
}, z.core.$strict>;
|
|
1427
|
+
DATA_QUERY_INPUT: z.ZodObject<{
|
|
1428
|
+
name: z.ZodString;
|
|
1429
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1430
|
+
sql: z.ZodString;
|
|
1431
|
+
params: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1432
|
+
name: z.ZodString;
|
|
1433
|
+
type: z.ZodEnum<{
|
|
1434
|
+
boolean: "boolean";
|
|
1435
|
+
text: "text";
|
|
1436
|
+
integer: "integer";
|
|
1437
|
+
decimal: "decimal";
|
|
1438
|
+
date: "date";
|
|
1439
|
+
datetime: "datetime";
|
|
1440
|
+
}>;
|
|
1441
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1442
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
1443
|
+
}, z.core.$strict>>>;
|
|
1444
|
+
assistant: z.ZodOptional<z.ZodBoolean>;
|
|
1445
|
+
}, z.core.$strict>;
|
|
1446
|
+
DATA_QUERY_RUN_BODY: z.ZodObject<{
|
|
1447
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1448
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1449
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
1450
|
+
}, z.core.$strict>;
|
|
1451
|
+
DATA_QUERY_PATH_PARAMS: z.ZodObject<{
|
|
1452
|
+
projectId: z.ZodUUID;
|
|
1453
|
+
userId: z.ZodUUID;
|
|
1454
|
+
organizationId: z.ZodUUID;
|
|
1455
|
+
name: z.ZodString;
|
|
1456
|
+
}, z.core.$strip>;
|
|
1457
|
+
DATA_COLUMN_PARAMS: z.ZodObject<{
|
|
1458
|
+
projectId: z.ZodUUID;
|
|
1459
|
+
userId: z.ZodUUID;
|
|
1460
|
+
organizationId: z.ZodUUID;
|
|
1461
|
+
table: z.ZodString;
|
|
1462
|
+
column: z.ZodString;
|
|
1463
|
+
}, z.core.$strip>;
|
|
1464
|
+
DATA_ROW_PARAMS: z.ZodObject<{
|
|
1465
|
+
projectId: z.ZodUUID;
|
|
1466
|
+
userId: z.ZodUUID;
|
|
1467
|
+
organizationId: z.ZodUUID;
|
|
1468
|
+
table: z.ZodString;
|
|
1469
|
+
id: z.ZodCoercedNumber<unknown>;
|
|
1470
|
+
}, z.core.$strip>;
|
|
1130
1471
|
ARTIFACT_REMOVE_RESOURCE: z.ZodObject<{
|
|
1131
1472
|
resourceId: z.ZodUUID;
|
|
1132
1473
|
projectId: z.ZodUUID;
|
|
@@ -1991,6 +2332,13 @@ export declare const Schema: {
|
|
|
1991
2332
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
1992
2333
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
1993
2334
|
}, z.core.$strict>>;
|
|
2335
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
2336
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
2337
|
+
read: "read";
|
|
2338
|
+
write: "write";
|
|
2339
|
+
}>>;
|
|
2340
|
+
tables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2341
|
+
}, z.core.$strict>>;
|
|
1994
2342
|
}, z.core.$strip>;
|
|
1995
2343
|
TOOL_ANNOTATIONS: z.ZodObject<{
|
|
1996
2344
|
readOnlyHint: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2037,6 +2385,13 @@ export declare const Schema: {
|
|
|
2037
2385
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
2038
2386
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
2039
2387
|
}, z.core.$strict>>;
|
|
2388
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
2389
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
2390
|
+
read: "read";
|
|
2391
|
+
write: "write";
|
|
2392
|
+
}>>;
|
|
2393
|
+
tables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2394
|
+
}, z.core.$strict>>;
|
|
2040
2395
|
}, z.core.$strip>>;
|
|
2041
2396
|
}, z.core.$strip>;
|
|
2042
2397
|
ARTIFACT_CUSTOM_CODE_CREATE_VERSION: z.ZodObject<{
|
|
@@ -2079,6 +2434,13 @@ export declare const Schema: {
|
|
|
2079
2434
|
idempotentHint: z.ZodOptional<z.ZodBoolean>;
|
|
2080
2435
|
openWorldHint: z.ZodOptional<z.ZodBoolean>;
|
|
2081
2436
|
}, z.core.$strict>>;
|
|
2437
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
2438
|
+
access: z.ZodOptional<z.ZodEnum<{
|
|
2439
|
+
read: "read";
|
|
2440
|
+
write: "write";
|
|
2441
|
+
}>>;
|
|
2442
|
+
tables: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2443
|
+
}, z.core.$strict>>;
|
|
2082
2444
|
}, z.core.$strip>>;
|
|
2083
2445
|
}, z.core.$strip>;
|
|
2084
2446
|
config: z.ZodOptional<z.ZodObject<{
|
|
@@ -2198,6 +2560,16 @@ export declare const Schema: {
|
|
|
2198
2560
|
CUSTOM_CODE_BROKER_SECRET: z.ZodObject<{
|
|
2199
2561
|
name: z.ZodString;
|
|
2200
2562
|
}, z.core.$strip>;
|
|
2563
|
+
CUSTOM_CODE_BROKER_DATA: z.ZodObject<{
|
|
2564
|
+
call: z.ZodString;
|
|
2565
|
+
op: z.ZodEnum<{
|
|
2566
|
+
query: "query";
|
|
2567
|
+
write: "write";
|
|
2568
|
+
describe: "describe";
|
|
2569
|
+
run: "run";
|
|
2570
|
+
}>;
|
|
2571
|
+
args: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2572
|
+
}, z.core.$strip>;
|
|
2201
2573
|
CUSTOM_CODE_BROKER_RESOURCE_SEARCH: z.ZodObject<{
|
|
2202
2574
|
query: z.ZodString;
|
|
2203
2575
|
limit: z.ZodDefault<z.ZodNumber>;
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"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