@turbofy-ai/app-runtime 0.0.20 → 0.0.21
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/src/cloud-function/decrypt.d.ts +3 -0
- package/dist/src/cloud-function/log-redaction.d.ts +1 -0
- package/dist/src/cloud-function/secret.d.ts +16 -0
- package/dist/src/cloud-function/with-secrets.d.ts +7 -0
- package/dist/src/cloud-function.d.ts +3 -0
- package/dist/src/cloud-function.js +21780 -0
- package/dist/src/dsl.d.ts +48 -12
- package/dist/src/dsl.js +148 -106
- package/dist/src/lib/block-color/paint-deps.d.ts +89 -0
- package/dist/src/lib/block-color/styles-ready.d.ts +3 -0
- package/dist/src/lib/block-color/sync-block-colors.d.ts +8 -0
- package/dist/src/lib/page-redirect.d.ts +14 -0
- package/dist/src/lib/page-redirect.test.d.ts +1 -0
- package/package.json +12 -4
package/dist/src/dsl.d.ts
CHANGED
|
@@ -836,18 +836,18 @@ export interface IBranchResult {
|
|
|
836
836
|
}
|
|
837
837
|
export interface IForEachParams {
|
|
838
838
|
/**
|
|
839
|
-
* @maxItems
|
|
839
|
+
* @maxItems 1000
|
|
840
840
|
*/
|
|
841
841
|
items: unknown[];
|
|
842
842
|
bodyStep: string | null;
|
|
843
843
|
}
|
|
844
844
|
export type IForEachResult = {
|
|
845
845
|
/**
|
|
846
|
-
* @maxItems
|
|
846
|
+
* @maxItems 1000
|
|
847
847
|
*/
|
|
848
848
|
items: unknown[];
|
|
849
849
|
/**
|
|
850
|
-
* @maxItems
|
|
850
|
+
* @maxItems 1000
|
|
851
851
|
*/
|
|
852
852
|
result?: unknown[];
|
|
853
853
|
} | {
|
|
@@ -1279,7 +1279,7 @@ export type ICloudFunctionResult = {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
export type IGenericAIParams = {
|
|
1281
1281
|
operation: "generateObject";
|
|
1282
|
-
apiKey
|
|
1282
|
+
apiKey?: string;
|
|
1283
1283
|
temperature?: number;
|
|
1284
1284
|
model: {
|
|
1285
1285
|
provider: "openai";
|
|
@@ -1296,6 +1296,12 @@ export type IGenericAIParams = {
|
|
|
1296
1296
|
} | {
|
|
1297
1297
|
provider: "google";
|
|
1298
1298
|
model: string;
|
|
1299
|
+
} | {
|
|
1300
|
+
provider: "workspace";
|
|
1301
|
+
/**
|
|
1302
|
+
* Chat config id, or "auto" for the workspace default
|
|
1303
|
+
*/
|
|
1304
|
+
model: string;
|
|
1299
1305
|
};
|
|
1300
1306
|
prompt: string;
|
|
1301
1307
|
/**
|
|
@@ -1309,7 +1315,7 @@ export type IGenericAIParams = {
|
|
|
1309
1315
|
};
|
|
1310
1316
|
} | {
|
|
1311
1317
|
operation: "generateText";
|
|
1312
|
-
apiKey
|
|
1318
|
+
apiKey?: string;
|
|
1313
1319
|
temperature?: number;
|
|
1314
1320
|
model: {
|
|
1315
1321
|
provider: "openai";
|
|
@@ -1326,6 +1332,12 @@ export type IGenericAIParams = {
|
|
|
1326
1332
|
} | {
|
|
1327
1333
|
provider: "google";
|
|
1328
1334
|
model: string;
|
|
1335
|
+
} | {
|
|
1336
|
+
provider: "workspace";
|
|
1337
|
+
/**
|
|
1338
|
+
* Chat config id, or "auto" for the workspace default
|
|
1339
|
+
*/
|
|
1340
|
+
model: string;
|
|
1329
1341
|
};
|
|
1330
1342
|
/**
|
|
1331
1343
|
* jsOnly
|
|
@@ -1417,7 +1429,7 @@ export type IGenericAIParams = {
|
|
|
1417
1429
|
};
|
|
1418
1430
|
} | {
|
|
1419
1431
|
operation: "streamText";
|
|
1420
|
-
apiKey
|
|
1432
|
+
apiKey?: string;
|
|
1421
1433
|
temperature?: number;
|
|
1422
1434
|
model: {
|
|
1423
1435
|
provider: "openai";
|
|
@@ -1434,6 +1446,12 @@ export type IGenericAIParams = {
|
|
|
1434
1446
|
} | {
|
|
1435
1447
|
provider: "google";
|
|
1436
1448
|
model: string;
|
|
1449
|
+
} | {
|
|
1450
|
+
provider: "workspace";
|
|
1451
|
+
/**
|
|
1452
|
+
* Chat config id, or "auto" for the workspace default
|
|
1453
|
+
*/
|
|
1454
|
+
model: string;
|
|
1437
1455
|
};
|
|
1438
1456
|
/**
|
|
1439
1457
|
* jsOnly
|
|
@@ -1525,7 +1543,7 @@ export type IGenericAIParams = {
|
|
|
1525
1543
|
};
|
|
1526
1544
|
} | {
|
|
1527
1545
|
operation: "embed";
|
|
1528
|
-
apiKey
|
|
1546
|
+
apiKey?: string;
|
|
1529
1547
|
temperature?: number;
|
|
1530
1548
|
model: {
|
|
1531
1549
|
provider: "openai";
|
|
@@ -1546,7 +1564,7 @@ export type IGenericAIParams = {
|
|
|
1546
1564
|
value: string;
|
|
1547
1565
|
} | {
|
|
1548
1566
|
operation: "generateImage";
|
|
1549
|
-
apiKey
|
|
1567
|
+
apiKey?: string;
|
|
1550
1568
|
temperature?: number;
|
|
1551
1569
|
model: {
|
|
1552
1570
|
provider: "openai";
|
|
@@ -1940,7 +1958,20 @@ export type IAppAuthSettings = {
|
|
|
1940
1958
|
export type SemVer = `${number}.${number}.${number}`;
|
|
1941
1959
|
export interface IDependencyInfo {
|
|
1942
1960
|
version: SemVer;
|
|
1943
|
-
|
|
1961
|
+
/** Published bundle of the package root import. */
|
|
1962
|
+
url?: string;
|
|
1963
|
+
/** Import specifier (e.g. `chart.js/auto`) → its published bundle. */
|
|
1964
|
+
modules?: Record<string, string>;
|
|
1965
|
+
/**
|
|
1966
|
+
* Legacy per-package copy of {@link DEPENDENCY_BUNDLE_KEY}. New pushes store
|
|
1967
|
+
* the chunk map once on that key.
|
|
1968
|
+
*/
|
|
1969
|
+
files?: Record<string, string>;
|
|
1970
|
+
/**
|
|
1971
|
+
* Legacy per-package copy of the bundle graph id. New pushes store it once
|
|
1972
|
+
* on {@link DEPENDENCY_BUNDLE_KEY}.
|
|
1973
|
+
*/
|
|
1974
|
+
build?: string;
|
|
1944
1975
|
}
|
|
1945
1976
|
export type IDependenciesMap = Record<string, IDependencyInfo>;
|
|
1946
1977
|
export interface IBlockTypeOptions {
|
|
@@ -1952,7 +1983,6 @@ export interface IBlockTypeOptions {
|
|
|
1952
1983
|
defaultDynamicData?: string;
|
|
1953
1984
|
sourceCodeUrl?: string;
|
|
1954
1985
|
compiledCodeUrl?: string;
|
|
1955
|
-
dependencies?: IDependenciesMap;
|
|
1956
1986
|
/** Localization dictionaries keyed by language code. */
|
|
1957
1987
|
localizations?: ILocalizationsByLocale;
|
|
1958
1988
|
}
|
|
@@ -1963,7 +1993,6 @@ export interface IBlockTypeDefinition {
|
|
|
1963
1993
|
defaultDynamicData?: string;
|
|
1964
1994
|
sourceCodeUrl?: string;
|
|
1965
1995
|
compiledCodeUrl?: string;
|
|
1966
|
-
dependencies?: IDependenciesMap;
|
|
1967
1996
|
localizations?: ILocalizationsByLocale;
|
|
1968
1997
|
}
|
|
1969
1998
|
export interface IBlockTypeOutput {
|
|
@@ -1973,6 +2002,7 @@ export interface IBlockTypeOutput {
|
|
|
1973
2002
|
defaultDynamicData?: string;
|
|
1974
2003
|
sourceCodeUrl?: string;
|
|
1975
2004
|
compiledCodeUrl?: string;
|
|
2005
|
+
/** Set by app push from the package imports it detects in the block sources. */
|
|
1976
2006
|
dependencies?: IDependenciesMap;
|
|
1977
2007
|
localizations?: ILocalizationsByLocale;
|
|
1978
2008
|
}
|
|
@@ -2044,7 +2074,6 @@ export interface FlattenBlocksOptions {
|
|
|
2044
2074
|
declare function flattenBlocks(blocks: IBlockDefinition[], opts?: FlattenBlocksOptions): IBlockOutput[];
|
|
2045
2075
|
export interface IPageParamConfig {
|
|
2046
2076
|
collection: IObjectTypeDeclaration;
|
|
2047
|
-
slugField?: string;
|
|
2048
2077
|
}
|
|
2049
2078
|
export interface IPageOptions {
|
|
2050
2079
|
id?: string;
|
|
@@ -2071,6 +2100,12 @@ export interface IPageOptions {
|
|
|
2071
2100
|
* end-user session; user/group permissions are enforced by the data layer.
|
|
2072
2101
|
*/
|
|
2073
2102
|
visibility?: PageVisibility;
|
|
2103
|
+
/**
|
|
2104
|
+
* When false, a dynamic page is rendered on demand. Absent or true
|
|
2105
|
+
* pre-generates one URL per table entry while the table has fewer than
|
|
2106
|
+
* 100 entries.
|
|
2107
|
+
*/
|
|
2108
|
+
pregenerate?: boolean;
|
|
2074
2109
|
/** Building block instances on this page. */
|
|
2075
2110
|
blocks?: IBlockDefinition[];
|
|
2076
2111
|
}
|
|
@@ -2084,6 +2119,7 @@ export interface IPageDefinition {
|
|
|
2084
2119
|
localizations?: ILocalizationsByLocale;
|
|
2085
2120
|
localizedConfig?: string;
|
|
2086
2121
|
visibility?: PageVisibility;
|
|
2122
|
+
pregenerate?: boolean;
|
|
2087
2123
|
blocks: IBlockDefinition[];
|
|
2088
2124
|
}
|
|
2089
2125
|
export interface IPageSlugConfig {
|