@function-bay/types 1.0.0
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/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +51 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.module.js +2 -0
- package/dist/index.module.js.map +1 -0
- package/dist/index.umd.js +2 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +42 -0
- package/src/index.ts +42 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var e=require("@lowerdeck/validation"),i=e.v.object({provider:e.v.enumOf(["aws.lambda","gcp.cloud-functions","azure.functions"]),identifier:e.v.string(),version:e.v.string(),os:e.v.enumOf(["linux"]),osIdentifier:e.v.string(),arch:e.v.enumOf(["x86_64","arm64"])}),n=e.v.union([e.v.object({identifier:e.v.literal("nodejs"),version:e.v.enumOf(["24.x","22.x"])}),e.v.object({identifier:e.v.literal("python"),version:e.v.enumOf(["3.14","3.13","3.12"])}),e.v.object({identifier:e.v.literal("ruby"),version:e.v.enumOf(["3.4","3.3"])}),e.v.object({identifier:e.v.literal("java"),version:e.v.enumOf(["25","21"])})]),r=e.v.object({layer:i,runtime:n,handler:e.v.string(),identifier:e.v.string()});exports.functionBayLayer=i,exports.functionBayRuntimeConfig=r,exports.functionBayRuntimeSpec=n;
|
|
2
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/index.ts"],"sourcesContent":["import { v, ValidationTypeValue } from '@lowerdeck/validation';\n\nexport let functionBayLayer = v.object({\n provider: v.enumOf(['aws.lambda', 'gcp.cloud-functions', 'azure.functions']),\n identifier: v.string(),\n version: v.string(),\n os: v.enumOf(['linux']),\n osIdentifier: v.string(),\n arch: v.enumOf(['x86_64', 'arm64'])\n});\n\nexport type FunctionBayLayer = ValidationTypeValue<typeof functionBayLayer>;\n\nexport let functionBayRuntimeSpec = v.union([\n v.object({\n identifier: v.literal('nodejs'),\n version: v.enumOf(['24.x', '22.x'])\n }),\n v.object({\n identifier: v.literal('python'),\n version: v.enumOf(['3.14', '3.13', '3.12'])\n }),\n v.object({\n identifier: v.literal('ruby'),\n version: v.enumOf(['3.4', '3.3'])\n }),\n v.object({\n identifier: v.literal('java'),\n version: v.enumOf(['25', '21'])\n })\n]);\n\nexport type FunctionBayRuntimeSpec = ValidationTypeValue<typeof functionBayRuntimeSpec>;\n\nexport let functionBayRuntimeConfig = v.object({\n layer: functionBayLayer,\n runtime: functionBayRuntimeSpec,\n handler: v.string(),\n identifier: v.string()\n});\n\nexport type FunctionBayRuntimeConfig = ValidationTypeValue<typeof functionBayRuntimeConfig>;\n"],"names":["functionBayLayer","v","object","provider","enumOf","identifier","string","version","os","osIdentifier","arch","functionBayRuntimeSpec","union","literal","functionBayRuntimeConfig","layer","runtime","handler"],"mappings":"uCAEWA,EAAmBC,EAAAA,EAAEC,OAAO,CACrCC,SAAUF,EAAAA,EAAEG,OAAO,CAAC,aAAc,sBAAuB,oBACzDC,WAAYJ,EAACA,EAACK,SACdC,QAASN,EAACA,EAACK,SACXE,GAAIP,EAACA,EAACG,OAAO,CAAC,UACdK,aAAcR,EAACA,EAACK,SAChBI,KAAMT,EAACA,EAACG,OAAO,CAAC,SAAU,YAKjBO,EAAyBV,EAAAA,EAAEW,MAAM,CAC1CX,IAAEC,OAAO,CACPG,WAAYJ,IAAEY,QAAQ,UACtBN,QAASN,EAAAA,EAAEG,OAAO,CAAC,OAAQ,WAE7BH,EAAAA,EAAEC,OAAO,CACPG,WAAYJ,IAAEY,QAAQ,UACtBN,QAASN,EAAAA,EAAEG,OAAO,CAAC,OAAQ,OAAQ,WAErCH,EAACA,EAACC,OAAO,CACPG,WAAYJ,EAACA,EAACY,QAAQ,QACtBN,QAASN,EAACA,EAACG,OAAO,CAAC,MAAO,UAE5BH,EAACA,EAACC,OAAO,CACPG,WAAYJ,EAACA,EAACY,QAAQ,QACtBN,QAASN,EAACA,EAACG,OAAO,CAAC,KAAM,WAMlBU,EAA2Bb,EAACA,EAACC,OAAO,CAC7Ca,MAAOf,EACPgB,QAASL,EACTM,QAAShB,EAAAA,EAAEK,SACXD,WAAYJ,EAACA,EAACK"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ValidationTypeValue } from '@lowerdeck/validation';
|
|
2
|
+
export declare let functionBayLayer: import("@lowerdeck/validation").ValidationType<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
3
|
+
provider: "aws.lambda" | "gcp.cloud-functions" | "azure.functions";
|
|
4
|
+
identifier: string;
|
|
5
|
+
version: string;
|
|
6
|
+
os: "linux";
|
|
7
|
+
osIdentifier: string;
|
|
8
|
+
arch: "x86_64" | "arm64";
|
|
9
|
+
}>>;
|
|
10
|
+
export type FunctionBayLayer = ValidationTypeValue<typeof functionBayLayer>;
|
|
11
|
+
export declare let functionBayRuntimeSpec: import("@lowerdeck/validation").ValidationType<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
12
|
+
identifier: "nodejs";
|
|
13
|
+
version: "24.x" | "22.x";
|
|
14
|
+
}> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
15
|
+
identifier: "python";
|
|
16
|
+
version: "3.14" | "3.13" | "3.12";
|
|
17
|
+
}> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
18
|
+
identifier: "ruby";
|
|
19
|
+
version: "3.4" | "3.3";
|
|
20
|
+
}> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
21
|
+
identifier: "java";
|
|
22
|
+
version: "25" | "21";
|
|
23
|
+
}>>;
|
|
24
|
+
export type FunctionBayRuntimeSpec = ValidationTypeValue<typeof functionBayRuntimeSpec>;
|
|
25
|
+
export declare let functionBayRuntimeConfig: import("@lowerdeck/validation").ValidationType<import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
26
|
+
layer: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
27
|
+
provider: "aws.lambda" | "gcp.cloud-functions" | "azure.functions";
|
|
28
|
+
identifier: string;
|
|
29
|
+
version: string;
|
|
30
|
+
os: "linux";
|
|
31
|
+
osIdentifier: string;
|
|
32
|
+
arch: "x86_64" | "arm64";
|
|
33
|
+
}>;
|
|
34
|
+
runtime: import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
35
|
+
identifier: "nodejs";
|
|
36
|
+
version: "24.x" | "22.x";
|
|
37
|
+
}> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
38
|
+
identifier: "python";
|
|
39
|
+
version: "3.14" | "3.13" | "3.12";
|
|
40
|
+
}> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
41
|
+
identifier: "ruby";
|
|
42
|
+
version: "3.4" | "3.3";
|
|
43
|
+
}> | import("@lowerdeck/validation/dist/validators").UndefinedIsOptional<{
|
|
44
|
+
identifier: "java";
|
|
45
|
+
version: "25" | "21";
|
|
46
|
+
}>;
|
|
47
|
+
handler: string;
|
|
48
|
+
identifier: string;
|
|
49
|
+
}>>;
|
|
50
|
+
export type FunctionBayRuntimeConfig = ValidationTypeValue<typeof functionBayRuntimeConfig>;
|
|
51
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,eAAO,IAAI,gBAAgB;;;;;;;GAOzB,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE5E,eAAO,IAAI,sBAAsB;;;;;;;;;;;;GAiB/B,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAExF,eAAO,IAAI,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;GAKjC,CAAC;AAEH,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{v as e}from"@lowerdeck/validation";var i=e.object({provider:e.enumOf(["aws.lambda","gcp.cloud-functions","azure.functions"]),identifier:e.string(),version:e.string(),os:e.enumOf(["linux"]),osIdentifier:e.string(),arch:e.enumOf(["x86_64","arm64"])}),n=e.union([e.object({identifier:e.literal("nodejs"),version:e.enumOf(["24.x","22.x"])}),e.object({identifier:e.literal("python"),version:e.enumOf(["3.14","3.13","3.12"])}),e.object({identifier:e.literal("ruby"),version:e.enumOf(["3.4","3.3"])}),e.object({identifier:e.literal("java"),version:e.enumOf(["25","21"])})]),r=e.object({layer:i,runtime:n,handler:e.string(),identifier:e.string()});export{i as functionBayLayer,r as functionBayRuntimeConfig,n as functionBayRuntimeSpec};
|
|
2
|
+
//# sourceMappingURL=index.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.module.js","sources":["../src/index.ts"],"sourcesContent":["import { v, ValidationTypeValue } from '@lowerdeck/validation';\n\nexport let functionBayLayer = v.object({\n provider: v.enumOf(['aws.lambda', 'gcp.cloud-functions', 'azure.functions']),\n identifier: v.string(),\n version: v.string(),\n os: v.enumOf(['linux']),\n osIdentifier: v.string(),\n arch: v.enumOf(['x86_64', 'arm64'])\n});\n\nexport type FunctionBayLayer = ValidationTypeValue<typeof functionBayLayer>;\n\nexport let functionBayRuntimeSpec = v.union([\n v.object({\n identifier: v.literal('nodejs'),\n version: v.enumOf(['24.x', '22.x'])\n }),\n v.object({\n identifier: v.literal('python'),\n version: v.enumOf(['3.14', '3.13', '3.12'])\n }),\n v.object({\n identifier: v.literal('ruby'),\n version: v.enumOf(['3.4', '3.3'])\n }),\n v.object({\n identifier: v.literal('java'),\n version: v.enumOf(['25', '21'])\n })\n]);\n\nexport type FunctionBayRuntimeSpec = ValidationTypeValue<typeof functionBayRuntimeSpec>;\n\nexport let functionBayRuntimeConfig = v.object({\n layer: functionBayLayer,\n runtime: functionBayRuntimeSpec,\n handler: v.string(),\n identifier: v.string()\n});\n\nexport type FunctionBayRuntimeConfig = ValidationTypeValue<typeof functionBayRuntimeConfig>;\n"],"names":["functionBayLayer","v","object","provider","enumOf","identifier","string","version","os","osIdentifier","arch","functionBayRuntimeSpec","union","literal","functionBayRuntimeConfig","layer","runtime","handler"],"mappings":"0CAEW,IAAAA,EAAmBC,EAAEC,OAAO,CACrCC,SAAUF,EAAEG,OAAO,CAAC,aAAc,sBAAuB,oBACzDC,WAAYJ,EAAEK,SACdC,QAASN,EAAEK,SACXE,GAAIP,EAAEG,OAAO,CAAC,UACdK,aAAcR,EAAEK,SAChBI,KAAMT,EAAEG,OAAO,CAAC,SAAU,YAKjBO,EAAyBV,EAAEW,MAAM,CAC1CX,EAAEC,OAAO,CACPG,WAAYJ,EAAEY,QAAQ,UACtBN,QAASN,EAAEG,OAAO,CAAC,OAAQ,WAE7BH,EAAEC,OAAO,CACPG,WAAYJ,EAAEY,QAAQ,UACtBN,QAASN,EAAEG,OAAO,CAAC,OAAQ,OAAQ,WAErCH,EAAEC,OAAO,CACPG,WAAYJ,EAAEY,QAAQ,QACtBN,QAASN,EAAEG,OAAO,CAAC,MAAO,UAE5BH,EAAEC,OAAO,CACPG,WAAYJ,EAAEY,QAAQ,QACtBN,QAASN,EAAEG,OAAO,CAAC,KAAM,WAMlBU,EAA2Bb,EAAEC,OAAO,CAC7Ca,MAAOf,EACPgB,QAASL,EACTM,QAAShB,EAAEK,SACXD,WAAYJ,EAAEK"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@lowerdeck/validation")):"function"==typeof define&&define.amd?define(["exports","@lowerdeck/validation"],i):i((e||self).types={},e.validation)}(this,function(e,i){var n=i.v.object({provider:i.v.enumOf(["aws.lambda","gcp.cloud-functions","azure.functions"]),identifier:i.v.string(),version:i.v.string(),os:i.v.enumOf(["linux"]),osIdentifier:i.v.string(),arch:i.v.enumOf(["x86_64","arm64"])}),t=i.v.union([i.v.object({identifier:i.v.literal("nodejs"),version:i.v.enumOf(["24.x","22.x"])}),i.v.object({identifier:i.v.literal("python"),version:i.v.enumOf(["3.14","3.13","3.12"])}),i.v.object({identifier:i.v.literal("ruby"),version:i.v.enumOf(["3.4","3.3"])}),i.v.object({identifier:i.v.literal("java"),version:i.v.enumOf(["25","21"])})]),o=i.v.object({layer:n,runtime:t,handler:i.v.string(),identifier:i.v.string()});e.functionBayLayer=n,e.functionBayRuntimeConfig=o,e.functionBayRuntimeSpec=t});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { v, ValidationTypeValue } from '@lowerdeck/validation';\n\nexport let functionBayLayer = v.object({\n provider: v.enumOf(['aws.lambda', 'gcp.cloud-functions', 'azure.functions']),\n identifier: v.string(),\n version: v.string(),\n os: v.enumOf(['linux']),\n osIdentifier: v.string(),\n arch: v.enumOf(['x86_64', 'arm64'])\n});\n\nexport type FunctionBayLayer = ValidationTypeValue<typeof functionBayLayer>;\n\nexport let functionBayRuntimeSpec = v.union([\n v.object({\n identifier: v.literal('nodejs'),\n version: v.enumOf(['24.x', '22.x'])\n }),\n v.object({\n identifier: v.literal('python'),\n version: v.enumOf(['3.14', '3.13', '3.12'])\n }),\n v.object({\n identifier: v.literal('ruby'),\n version: v.enumOf(['3.4', '3.3'])\n }),\n v.object({\n identifier: v.literal('java'),\n version: v.enumOf(['25', '21'])\n })\n]);\n\nexport type FunctionBayRuntimeSpec = ValidationTypeValue<typeof functionBayRuntimeSpec>;\n\nexport let functionBayRuntimeConfig = v.object({\n layer: functionBayLayer,\n runtime: functionBayRuntimeSpec,\n handler: v.string(),\n identifier: v.string()\n});\n\nexport type FunctionBayRuntimeConfig = ValidationTypeValue<typeof functionBayRuntimeConfig>;\n"],"names":["functionBayLayer","v","object","provider","enumOf","identifier","string","version","os","osIdentifier","arch","functionBayRuntimeSpec","union","literal","functionBayRuntimeConfig","layer","runtime","handler"],"mappings":"uSAEWA,IAAAA,EAAmBC,EAAAA,EAAEC,OAAO,CACrCC,SAAUF,EAAAA,EAAEG,OAAO,CAAC,aAAc,sBAAuB,oBACzDC,WAAYJ,EAACA,EAACK,SACdC,QAASN,EAACA,EAACK,SACXE,GAAIP,EAACA,EAACG,OAAO,CAAC,UACdK,aAAcR,EAACA,EAACK,SAChBI,KAAMT,EAACA,EAACG,OAAO,CAAC,SAAU,YAKjBO,EAAyBV,EAAAA,EAAEW,MAAM,CAC1CX,IAAEC,OAAO,CACPG,WAAYJ,IAAEY,QAAQ,UACtBN,QAASN,EAAAA,EAAEG,OAAO,CAAC,OAAQ,WAE7BH,EAAAA,EAAEC,OAAO,CACPG,WAAYJ,IAAEY,QAAQ,UACtBN,QAASN,EAAAA,EAAEG,OAAO,CAAC,OAAQ,OAAQ,WAErCH,EAACA,EAACC,OAAO,CACPG,WAAYJ,EAACA,EAACY,QAAQ,QACtBN,QAASN,EAACA,EAACG,OAAO,CAAC,MAAO,UAE5BH,EAACA,EAACC,OAAO,CACPG,WAAYJ,EAACA,EAACY,QAAQ,QACtBN,QAASN,EAACA,EAACG,OAAO,CAAC,KAAM,WAMlBU,EAA2Bb,EAACA,EAACC,OAAO,CAC7Ca,MAAOf,EACPgB,QAASL,EACTM,QAAShB,EAAAA,EAAEK,SACXD,WAAYJ,EAACA,EAACK"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@function-bay/types",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"files": [
|
|
8
|
+
"src/**",
|
|
9
|
+
"dist/**",
|
|
10
|
+
"README.md",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
13
|
+
"author": "Tobias Herber",
|
|
14
|
+
"license": "Apache 2",
|
|
15
|
+
"type": "module",
|
|
16
|
+
"source": "src/index.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"require": "./dist/index.cjs",
|
|
20
|
+
"import": "./dist/index.module.js",
|
|
21
|
+
"default": "./dist/index.module.js"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.module.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"unpkg": "./dist/index.umd.js",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "vitest run --passWithNoTests",
|
|
29
|
+
"lint": "prettier src/**/*.ts --check",
|
|
30
|
+
"build": "rm -rf ./dist && microbundle",
|
|
31
|
+
"prepublish": "npm run build"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"microbundle": "^0.15.1",
|
|
35
|
+
"@function-bay/tsconfig": "^1.0.0",
|
|
36
|
+
"typescript": "^5.9.3",
|
|
37
|
+
"vitest": "^3.2.4"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@lowerdeck/validation": "^1.0.4"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { v, ValidationTypeValue } from '@lowerdeck/validation';
|
|
2
|
+
|
|
3
|
+
export let functionBayLayer = v.object({
|
|
4
|
+
provider: v.enumOf(['aws.lambda', 'gcp.cloud-functions', 'azure.functions']),
|
|
5
|
+
identifier: v.string(),
|
|
6
|
+
version: v.string(),
|
|
7
|
+
os: v.enumOf(['linux']),
|
|
8
|
+
osIdentifier: v.string(),
|
|
9
|
+
arch: v.enumOf(['x86_64', 'arm64'])
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export type FunctionBayLayer = ValidationTypeValue<typeof functionBayLayer>;
|
|
13
|
+
|
|
14
|
+
export let functionBayRuntimeSpec = v.union([
|
|
15
|
+
v.object({
|
|
16
|
+
identifier: v.literal('nodejs'),
|
|
17
|
+
version: v.enumOf(['24.x', '22.x'])
|
|
18
|
+
}),
|
|
19
|
+
v.object({
|
|
20
|
+
identifier: v.literal('python'),
|
|
21
|
+
version: v.enumOf(['3.14', '3.13', '3.12'])
|
|
22
|
+
}),
|
|
23
|
+
v.object({
|
|
24
|
+
identifier: v.literal('ruby'),
|
|
25
|
+
version: v.enumOf(['3.4', '3.3'])
|
|
26
|
+
}),
|
|
27
|
+
v.object({
|
|
28
|
+
identifier: v.literal('java'),
|
|
29
|
+
version: v.enumOf(['25', '21'])
|
|
30
|
+
})
|
|
31
|
+
]);
|
|
32
|
+
|
|
33
|
+
export type FunctionBayRuntimeSpec = ValidationTypeValue<typeof functionBayRuntimeSpec>;
|
|
34
|
+
|
|
35
|
+
export let functionBayRuntimeConfig = v.object({
|
|
36
|
+
layer: functionBayLayer,
|
|
37
|
+
runtime: functionBayRuntimeSpec,
|
|
38
|
+
handler: v.string(),
|
|
39
|
+
identifier: v.string()
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export type FunctionBayRuntimeConfig = ValidationTypeValue<typeof functionBayRuntimeConfig>;
|