@stackone/core 3.5.1 → 3.6.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/README.md CHANGED
@@ -14,37 +14,37 @@ Please check the [root README](../../README.md) for requirements.
14
14
 
15
15
  ```bash
16
16
  # install dependencies
17
- $ npm run install
17
+ $ pnpm install
18
18
  ```
19
19
 
20
20
  ## Available commands
21
21
 
22
22
  ```bash
23
23
  # clean build output
24
- $ npm run clean
24
+ $ pnpm clean
25
25
  ```
26
26
 
27
27
  ```bash
28
28
  # build package
29
- $ npm run build
29
+ $ pnpm build
30
30
  ```
31
31
 
32
32
  ```bash
33
33
  # run tests
34
- $ npm run test
34
+ $ pnpm test
35
35
  ```
36
36
 
37
37
  ```bash
38
38
  # run tests on watch mode
39
- $ npm run test:watch
39
+ $ pnpm test:watch
40
40
  ```
41
41
 
42
42
  ```bash
43
43
  # run linter
44
- $ npm run lint
44
+ $ pnpm lint
45
45
  ```
46
46
 
47
47
  ```bash
48
48
  # run linter and try to fix any error
49
- $ npm run lint:fix
49
+ $ pnpm lint:fix
50
50
  ```
package/dist/index.d.cts CHANGED
@@ -226,7 +226,7 @@ type SchemaField = {
226
226
  description?: string;
227
227
  };
228
228
  //#endregion
229
- //#region ../../node_modules/zod/v4/core/standard-schema.d.cts
229
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/standard-schema.d.cts
230
230
  /** The Standard Schema interface. */
231
231
  interface StandardSchemaV1<Input = unknown, Output = Input> {
232
232
  /** The Standard Schema properties. */
@@ -283,7 +283,7 @@ declare namespace StandardSchemaV1 {
283
283
  type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
284
284
  }
285
285
  //#endregion
286
- //#region ../../node_modules/zod/v4/core/util.d.cts
286
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.d.cts
287
287
  type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
288
288
  type IsAny<T> = 0 extends 1 & T ? true : false;
289
289
  type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
@@ -322,14 +322,14 @@ declare abstract class Class {
322
322
  constructor(..._args: any[]);
323
323
  }
324
324
  //#endregion
325
- //#region ../../node_modules/zod/v4/core/versions.d.cts
325
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.d.cts
326
326
  declare const version$1: {
327
327
  readonly major: 4;
328
328
  readonly minor: 0;
329
329
  readonly patch: number;
330
330
  };
331
331
  //#endregion
332
- //#region ../../node_modules/zod/v4/core/schemas.d.cts
332
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.d.cts
333
333
  interface ParseContext<T extends $ZodIssueBase = never> {
334
334
  /** Customize error messages. */
335
335
  readonly error?: $ZodErrorMap<T>;
@@ -999,7 +999,7 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
999
999
  }
1000
1000
  declare const $ZodCustom: $constructor<$ZodCustom>;
1001
1001
  //#endregion
1002
- //#region ../../node_modules/zod/v4/core/checks.d.cts
1002
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.d.cts
1003
1003
  interface $ZodCheckDef {
1004
1004
  check: string;
1005
1005
  error?: $ZodErrorMap<never> | undefined;
@@ -1181,7 +1181,7 @@ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
1181
1181
  }
1182
1182
  declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
1183
1183
  //#endregion
1184
- //#region ../../node_modules/zod/v4/core/errors.d.cts
1184
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.d.cts
1185
1185
  interface $ZodIssueBase {
1186
1186
  readonly code?: string;
1187
1187
  readonly input?: unknown;
@@ -1290,7 +1290,7 @@ type $ZodFormattedError<T, U = string> = {
1290
1290
  _errors: U[];
1291
1291
  } & Flatten<_ZodFormattedError<T, U>>;
1292
1292
  //#endregion
1293
- //#region ../../node_modules/zod/v4/core/core.d.cts
1293
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.d.cts
1294
1294
  type ZodTrait = {
1295
1295
  _zod: {
1296
1296
  def: any;
@@ -1320,7 +1320,7 @@ type output<T> = T extends {
1320
1320
  };
1321
1321
  } ? Required<T["_zod"]>["output"] : unknown;
1322
1322
  //#endregion
1323
- //#region ../../node_modules/zod/v4/core/registries.d.cts
1323
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.d.cts
1324
1324
  declare const $output: unique symbol;
1325
1325
  type $output = typeof $output;
1326
1326
  declare const $input: unique symbol;
@@ -1347,7 +1347,7 @@ interface JSONSchemaMeta {
1347
1347
  }
1348
1348
  interface GlobalMeta extends JSONSchemaMeta {}
1349
1349
  //#endregion
1350
- //#region ../../node_modules/zod/v4/core/api.d.cts
1350
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.d.cts
1351
1351
  type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
1352
1352
  error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
1353
1353
  message?: string | undefined;
@@ -1399,7 +1399,7 @@ type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
1399
1399
  type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
1400
1400
  type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
1401
1401
  //#endregion
1402
- //#region ../../node_modules/zod/v4/classic/errors.d.cts
1402
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.d.cts
1403
1403
  /** An Error-like class used to store Zod validation issues. */
1404
1404
  interface ZodError<T = unknown> extends $ZodError<T> {
1405
1405
  /** @deprecated Use the `z.treeifyError(err)` function instead. */
@@ -1417,7 +1417,7 @@ interface ZodError<T = unknown> extends $ZodError<T> {
1417
1417
  }
1418
1418
  declare const ZodError: $constructor<ZodError>;
1419
1419
  //#endregion
1420
- //#region ../../node_modules/zod/v4/classic/parse.d.cts
1420
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.d.cts
1421
1421
  type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
1422
1422
  type ZodSafeParseSuccess<T> = {
1423
1423
  success: true;
@@ -1430,7 +1430,7 @@ type ZodSafeParseError<T> = {
1430
1430
  error: ZodError<T>;
1431
1431
  };
1432
1432
  //#endregion
1433
- //#region ../../node_modules/zod/v4/classic/schemas.d.cts
1433
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.d.cts
1434
1434
  interface RefinementCtx<T = unknown> extends ParsePayload<T> {
1435
1435
  addIssue(arg: string | $ZodRawIssue | Partial<$ZodIssueCustom>): void;
1436
1436
  }
@@ -1733,7 +1733,7 @@ declare const ZodLazy: $constructor<ZodLazy>;
1733
1733
  interface ZodCustom<O = unknown, I = unknown> extends _ZodType<$ZodCustomInternals<O, I>>, $ZodCustom<O, I> {}
1734
1734
  declare const ZodCustom: $constructor<ZodCustom>;
1735
1735
  //#endregion
1736
- //#region ../../node_modules/zod/v4/classic/coerce.d.cts
1736
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/coerce.d.cts
1737
1737
  interface ZodCoercedString<T = unknown> extends _ZodString<$ZodStringInternals<T>> {}
1738
1738
  //#endregion
1739
1739
  //#region src/stepFunctions/codeExecutionLambda/lambdaClient.d.ts
@@ -2852,6 +2852,10 @@ type Connector = {
2852
2852
  releaseStage?: ReleaseStage;
2853
2853
  forkedFrom?: string;
2854
2854
  owner?: string;
2855
+ mcp?: ConnectorMcpConfig;
2856
+ };
2857
+ type ConnectorMcpConfig = {
2858
+ instructions?: string;
2855
2859
  };
2856
2860
  type Assets = {
2857
2861
  icon: string;
@@ -3130,6 +3134,8 @@ type DefenderSettings = {
3130
3134
  useSfe?: boolean;
3131
3135
  annotateBoundary?: boolean;
3132
3136
  multiheadEnabled?: boolean;
3137
+ useTier3Classification?: boolean;
3138
+ defenderMode?: 'cascade' | 'tier3_only';
3133
3139
  };
3134
3140
  //#endregion
3135
3141
  //#region src/source/types.d.ts
package/dist/index.d.mts CHANGED
@@ -225,7 +225,7 @@ type SchemaField = {
225
225
  description?: string;
226
226
  };
227
227
  //#endregion
228
- //#region ../../node_modules/zod/v4/core/standard-schema.d.cts
228
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/standard-schema.d.cts
229
229
  /** The Standard Schema interface. */
230
230
  interface StandardSchemaV1<Input = unknown, Output = Input> {
231
231
  /** The Standard Schema properties. */
@@ -282,7 +282,7 @@ declare namespace StandardSchemaV1 {
282
282
  type InferOutput<Schema extends StandardSchemaV1> = NonNullable<Schema["~standard"]["types"]>["output"];
283
283
  }
284
284
  //#endregion
285
- //#region ../../node_modules/zod/v4/core/util.d.cts
285
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/util.d.cts
286
286
  type JWTAlgorithm = "HS256" | "HS384" | "HS512" | "RS256" | "RS384" | "RS512" | "ES256" | "ES384" | "ES512" | "PS256" | "PS384" | "PS512" | "EdDSA" | (string & {});
287
287
  type IsAny<T> = 0 extends 1 & T ? true : false;
288
288
  type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
@@ -321,14 +321,14 @@ declare abstract class Class {
321
321
  constructor(..._args: any[]);
322
322
  }
323
323
  //#endregion
324
- //#region ../../node_modules/zod/v4/core/versions.d.cts
324
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/versions.d.cts
325
325
  declare const version$1: {
326
326
  readonly major: 4;
327
327
  readonly minor: 0;
328
328
  readonly patch: number;
329
329
  };
330
330
  //#endregion
331
- //#region ../../node_modules/zod/v4/core/schemas.d.cts
331
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/schemas.d.cts
332
332
  interface ParseContext<T extends $ZodIssueBase = never> {
333
333
  /** Customize error messages. */
334
334
  readonly error?: $ZodErrorMap<T>;
@@ -998,7 +998,7 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
998
998
  }
999
999
  declare const $ZodCustom: $constructor<$ZodCustom>;
1000
1000
  //#endregion
1001
- //#region ../../node_modules/zod/v4/core/checks.d.cts
1001
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/checks.d.cts
1002
1002
  interface $ZodCheckDef {
1003
1003
  check: string;
1004
1004
  error?: $ZodErrorMap<never> | undefined;
@@ -1180,7 +1180,7 @@ interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {
1180
1180
  }
1181
1181
  declare const $ZodCheckEndsWith: $constructor<$ZodCheckEndsWith>;
1182
1182
  //#endregion
1183
- //#region ../../node_modules/zod/v4/core/errors.d.cts
1183
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/errors.d.cts
1184
1184
  interface $ZodIssueBase {
1185
1185
  readonly code?: string;
1186
1186
  readonly input?: unknown;
@@ -1289,7 +1289,7 @@ type $ZodFormattedError<T, U = string> = {
1289
1289
  _errors: U[];
1290
1290
  } & Flatten<_ZodFormattedError<T, U>>;
1291
1291
  //#endregion
1292
- //#region ../../node_modules/zod/v4/core/core.d.cts
1292
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/core.d.cts
1293
1293
  type ZodTrait = {
1294
1294
  _zod: {
1295
1295
  def: any;
@@ -1319,7 +1319,7 @@ type output<T> = T extends {
1319
1319
  };
1320
1320
  } ? Required<T["_zod"]>["output"] : unknown;
1321
1321
  //#endregion
1322
- //#region ../../node_modules/zod/v4/core/registries.d.cts
1322
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/registries.d.cts
1323
1323
  declare const $output: unique symbol;
1324
1324
  type $output = typeof $output;
1325
1325
  declare const $input: unique symbol;
@@ -1346,7 +1346,7 @@ interface JSONSchemaMeta {
1346
1346
  }
1347
1347
  interface GlobalMeta extends JSONSchemaMeta {}
1348
1348
  //#endregion
1349
- //#region ../../node_modules/zod/v4/core/api.d.cts
1349
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/core/api.d.cts
1350
1350
  type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
1351
1351
  error?: string | $ZodErrorMap<IssueTypes> | undefined; /** @deprecated This parameter is deprecated. Use `error` instead. */
1352
1352
  message?: string | undefined;
@@ -1398,7 +1398,7 @@ type $ZodEnumParams = TypeParams<$ZodEnum, "entries">;
1398
1398
  type $ZodNonOptionalParams = TypeParams<$ZodNonOptional, "innerType">;
1399
1399
  type $ZodCustomParams = CheckTypeParams<$ZodCustom, "fn">;
1400
1400
  //#endregion
1401
- //#region ../../node_modules/zod/v4/classic/errors.d.cts
1401
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/errors.d.cts
1402
1402
  /** An Error-like class used to store Zod validation issues. */
1403
1403
  interface ZodError<T = unknown> extends $ZodError<T> {
1404
1404
  /** @deprecated Use the `z.treeifyError(err)` function instead. */
@@ -1416,7 +1416,7 @@ interface ZodError<T = unknown> extends $ZodError<T> {
1416
1416
  }
1417
1417
  declare const ZodError: $constructor<ZodError>;
1418
1418
  //#endregion
1419
- //#region ../../node_modules/zod/v4/classic/parse.d.cts
1419
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/parse.d.cts
1420
1420
  type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
1421
1421
  type ZodSafeParseSuccess<T> = {
1422
1422
  success: true;
@@ -1429,7 +1429,7 @@ type ZodSafeParseError<T> = {
1429
1429
  error: ZodError<T>;
1430
1430
  };
1431
1431
  //#endregion
1432
- //#region ../../node_modules/zod/v4/classic/schemas.d.cts
1432
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/schemas.d.cts
1433
1433
  interface RefinementCtx<T = unknown> extends ParsePayload<T> {
1434
1434
  addIssue(arg: string | $ZodRawIssue | Partial<$ZodIssueCustom>): void;
1435
1435
  }
@@ -1732,7 +1732,7 @@ declare const ZodLazy: $constructor<ZodLazy>;
1732
1732
  interface ZodCustom<O = unknown, I = unknown> extends _ZodType<$ZodCustomInternals<O, I>>, $ZodCustom<O, I> {}
1733
1733
  declare const ZodCustom: $constructor<ZodCustom>;
1734
1734
  //#endregion
1735
- //#region ../../node_modules/zod/v4/classic/coerce.d.cts
1735
+ //#region ../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v4/classic/coerce.d.cts
1736
1736
  interface ZodCoercedString<T = unknown> extends _ZodString<$ZodStringInternals<T>> {}
1737
1737
  //#endregion
1738
1738
  //#region src/stepFunctions/codeExecutionLambda/lambdaClient.d.ts
@@ -2851,6 +2851,10 @@ type Connector = {
2851
2851
  releaseStage?: ReleaseStage;
2852
2852
  forkedFrom?: string;
2853
2853
  owner?: string;
2854
+ mcp?: ConnectorMcpConfig;
2855
+ };
2856
+ type ConnectorMcpConfig = {
2857
+ instructions?: string;
2854
2858
  };
2855
2859
  type Assets = {
2856
2860
  icon: string;
@@ -3129,6 +3133,8 @@ type DefenderSettings = {
3129
3133
  useSfe?: boolean;
3130
3134
  annotateBoundary?: boolean;
3131
3135
  multiheadEnabled?: boolean;
3136
+ useTier3Classification?: boolean;
3137
+ defenderMode?: 'cascade' | 'tier3_only';
3132
3138
  };
3133
3139
  //#endregion
3134
3140
  //#region src/source/types.d.ts
package/package.json CHANGED
@@ -1,59 +1,59 @@
1
1
  {
2
- "name": "@stackone/core",
3
- "version": "3.5.1",
4
- "description": "",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "types": "dist/index.d.cts",
8
- "files": [
9
- "dist",
10
- "package.json",
11
- "README.md"
12
- ],
13
- "exports": {
14
- ".": {
15
- "types": "./dist/index.d.cts",
16
- "import": "./dist/index.mjs",
17
- "require": "./dist/index.cjs"
18
- },
19
- "./package.json": "./package.json"
2
+ "name": "@stackone/core",
3
+ "version": "3.6.0",
4
+ "description": "",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.cts",
8
+ "files": [
9
+ "dist",
10
+ "package.json",
11
+ "README.md"
12
+ ],
13
+ "exports": {
14
+ ".": {
15
+ "types": "./dist/index.d.cts",
16
+ "import": "./dist/index.mjs",
17
+ "require": "./dist/index.cjs"
20
18
  },
21
- "scripts": {
22
- "clean": "rimraf dist",
23
- "prebuild": "npm run clean",
24
- "build": "tsdown --env.NODE_ENV=production --minify",
25
- "prebuild:dev": "npm run clean",
26
- "build:dev": "tsdown --env.NODE_ENV=development",
27
- "code:format": "biome format ./src ./*.mjs",
28
- "code:format:fix": "biome format --write ./src ./*.mjs",
29
- "code:lint": "biome lint --error-on-warnings ./src ./*.mjs",
30
- "code:lint:fix": "biome lint --write ./src ./*.mjs",
31
- "code:check": "biome check ./src ./*.mjs",
32
- "code:check:fix": "biome check --write ./src ./*.mjs",
33
- "lint": "npm run code:check",
34
- "lint:fix": "npm run code:check:fix",
35
- "test": "FORCE_COLOR=1 vitest run",
36
- "test:watch": "FORCE_COLOR=1 vitest watch --silent",
37
- "test:typecheck": "tsc --noEmit --project tsconfig.tests.json",
38
- "publish-release": "npm publish --access=public"
39
- },
40
- "keywords": [],
41
- "author": "StackOne",
42
- "license": "ISC",
43
- "dependencies": {
44
- "@aws-sdk/client-lambda": "3.1030.0",
45
- "@stackone/expressions": "*",
46
- "@stackone/olap": "*",
47
- "@stackone/transport": "*",
48
- "@stackone/utils": "*",
49
- "form-data": "4.0.5",
50
- "jose": "5.9.6",
51
- "mime-types": "3.0.2",
52
- "saml": "3.0.1",
53
- "uuid": "9.0.1"
54
- },
55
- "devDependencies": {
56
- "@types/mime-types": "3.0.1",
57
- "@types/saml": "3.0.0"
58
- }
59
- }
19
+ "./package.json": "./package.json"
20
+ },
21
+ "keywords": [],
22
+ "author": "StackOne",
23
+ "license": "ISC",
24
+ "dependencies": {
25
+ "@aws-sdk/client-lambda": "3.1030.0",
26
+ "@stackone/expressions": "*",
27
+ "@stackone/olap": "*",
28
+ "@stackone/transport": "*",
29
+ "@stackone/utils": "*",
30
+ "form-data": "4.0.5",
31
+ "jose": "5.9.6",
32
+ "mime-types": "3.0.2",
33
+ "saml": "3.0.1",
34
+ "uuid": "9.0.1"
35
+ },
36
+ "devDependencies": {
37
+ "@types/mime-types": "3.0.1",
38
+ "@types/saml": "3.0.0"
39
+ },
40
+ "scripts": {
41
+ "clean": "rimraf dist",
42
+ "prebuild": "pnpm clean",
43
+ "build": "tsdown --env.NODE_ENV=production --minify",
44
+ "prebuild:dev": "pnpm clean",
45
+ "build:dev": "tsdown --env.NODE_ENV=development",
46
+ "code:format": "biome format ./src ./*.mjs",
47
+ "code:format:fix": "biome format --write ./src ./*.mjs",
48
+ "code:lint": "biome lint --error-on-warnings ./src ./*.mjs",
49
+ "code:lint:fix": "biome lint --write ./src ./*.mjs",
50
+ "code:check": "biome check ./src ./*.mjs",
51
+ "code:check:fix": "biome check --write ./src ./*.mjs",
52
+ "lint": "pnpm code:check",
53
+ "lint:fix": "pnpm code:check:fix",
54
+ "test": "FORCE_COLOR=1 vitest run",
55
+ "test:watch": "FORCE_COLOR=1 vitest watch --silent",
56
+ "test:typecheck": "tsc --noEmit --project tsconfig.tests.json",
57
+ "publish-release": "pnpm publish --no-git-checks --access public"
58
+ }
59
+ }