@mondaydotcomorg/z2h-shared-utils 0.5.0 → 0.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.
@@ -1,2 +1,3 @@
1
+ export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS, type AlwaysOnChannel, type DeclaredIntegration, } from './integrations';
1
2
  export * from './secrets';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,cAAc,WAAW,CAAC"}
@@ -1 +1,2 @@
1
+ export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS } from './integrations.mjs';
1
2
  export { decryptSecret, encryptSecret } from './secrets/secret-cipher.mjs';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Backend channels surfaced as `ctx.api.v1.<name>`.
3
+ *
4
+ * Always-on channels need no OAuth and are never declared — the runner builds
5
+ * them for every app regardless of what its handlers touch.
6
+ */
7
+ export declare const ALWAYS_ON_CHANNELS: readonly ["db", "llm", "snowflake"];
8
+ export type AlwaysOnChannel = (typeof ALWAYS_ON_CHANNELS)[number];
9
+ /**
10
+ * Declared (OAuth-gated) integrations: closed set the CLI detects from handler
11
+ * sources and the broker validates on register/update.
12
+ */
13
+ export declare const DECLARED_INTEGRATIONS: readonly ["monday"];
14
+ export type DeclaredIntegration = (typeof DECLARED_INTEGRATIONS)[number];
15
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../../src/integrations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,qCAAsC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qBAAsB,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Backend channels surfaced as `ctx.api.v1.<name>`.
3
+ *
4
+ * Always-on channels need no OAuth and are never declared — the runner builds
5
+ * them for every app regardless of what its handlers touch.
6
+ */
7
+ const ALWAYS_ON_CHANNELS = ['db', 'llm', 'snowflake'];
8
+ /**
9
+ * Declared (OAuth-gated) integrations: closed set the CLI detects from handler
10
+ * sources and the broker validates on register/update.
11
+ */
12
+ const DECLARED_INTEGRATIONS = ['monday'];
13
+
14
+ export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS };
@@ -72,5 +72,6 @@ export declare const Z2hAgentEvents: {
72
72
  /** BI events tracked in `z2h-cli`. */
73
73
  export declare const Z2hCliEvents: {
74
74
  readonly error: "z2h_cli_error";
75
+ readonly handlerParseError: "z2h_cli_handler_parse_error";
75
76
  };
76
77
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;CAEf,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;CAGf,CAAC"}
@@ -72,6 +72,7 @@ const Z2hAgentEvents = {
72
72
  /** BI events tracked in `z2h-cli`. */
73
73
  const Z2hCliEvents = {
74
74
  error: 'z2h_cli_error',
75
+ handlerParseError: 'z2h_cli_handler_parse_error',
75
76
  };
76
77
 
77
78
  export { BackendRunnerEvents, Z2hAgentEvents, Z2hCliEvents, Z2hServiceEvents };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export { ALWAYS_ON_CHANNELS, DECLARED_INTEGRATIONS, type AlwaysOnChannel, type DeclaredIntegration, } from './integrations';
1
2
  export * from './secrets';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,GACzB,MAAM,gBAAgB,CAAC;AACxB,cAAc,WAAW,CAAC"}
package/dist/index.js CHANGED
@@ -1,8 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
 
3
+ const integrations = require('./integrations.js');
3
4
  const secrets_secretCipher = require('./secrets/secret-cipher.js');
4
5
 
5
6
 
6
7
 
8
+ exports.ALWAYS_ON_CHANNELS = integrations.ALWAYS_ON_CHANNELS;
9
+ exports.DECLARED_INTEGRATIONS = integrations.DECLARED_INTEGRATIONS;
7
10
  exports.decryptSecret = secrets_secretCipher.decryptSecret;
8
11
  exports.encryptSecret = secrets_secretCipher.encryptSecret;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Backend channels surfaced as `ctx.api.v1.<name>`.
3
+ *
4
+ * Always-on channels need no OAuth and are never declared — the runner builds
5
+ * them for every app regardless of what its handlers touch.
6
+ */
7
+ export declare const ALWAYS_ON_CHANNELS: readonly ["db", "llm", "snowflake"];
8
+ export type AlwaysOnChannel = (typeof ALWAYS_ON_CHANNELS)[number];
9
+ /**
10
+ * Declared (OAuth-gated) integrations: closed set the CLI detects from handler
11
+ * sources and the broker validates on register/update.
12
+ */
13
+ export declare const DECLARED_INTEGRATIONS: readonly ["monday"];
14
+ export type DeclaredIntegration = (typeof DECLARED_INTEGRATIONS)[number];
15
+ //# sourceMappingURL=integrations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integrations.d.ts","sourceRoot":"","sources":["../src/integrations.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,qCAAsC,CAAC;AACtE,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,qBAAqB,qBAAsB,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,17 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
+
3
+ /**
4
+ * Backend channels surfaced as `ctx.api.v1.<name>`.
5
+ *
6
+ * Always-on channels need no OAuth and are never declared — the runner builds
7
+ * them for every app regardless of what its handlers touch.
8
+ */
9
+ const ALWAYS_ON_CHANNELS = ['db', 'llm', 'snowflake'];
10
+ /**
11
+ * Declared (OAuth-gated) integrations: closed set the CLI detects from handler
12
+ * sources and the broker validates on register/update.
13
+ */
14
+ const DECLARED_INTEGRATIONS = ['monday'];
15
+
16
+ exports.ALWAYS_ON_CHANNELS = ALWAYS_ON_CHANNELS;
17
+ exports.DECLARED_INTEGRATIONS = DECLARED_INTEGRATIONS;
@@ -72,5 +72,6 @@ export declare const Z2hAgentEvents: {
72
72
  /** BI events tracked in `z2h-cli`. */
73
73
  export declare const Z2hCliEvents: {
74
74
  readonly error: "z2h_cli_error";
75
+ readonly handlerParseError: "z2h_cli_handler_parse_error";
75
76
  };
76
77
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;CAEf,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/observability/events.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCtB,CAAC;AAEX,iEAAiE;AACjE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;CAmBnB,CAAC;AAEX,oDAAoD;AACpD,eAAO,MAAM,cAAc;;;;;;;;CAQjB,CAAC;AAEX,sCAAsC;AACtC,eAAO,MAAM,YAAY;;;CAGf,CAAC"}
@@ -74,6 +74,7 @@ const Z2hAgentEvents = {
74
74
  /** BI events tracked in `z2h-cli`. */
75
75
  const Z2hCliEvents = {
76
76
  error: 'z2h_cli_error',
77
+ handlerParseError: 'z2h_cli_handler_parse_error',
77
78
  };
78
79
 
79
80
  exports.BackendRunnerEvents = BackendRunnerEvents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/z2h-shared-utils",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
package/src/index.ts CHANGED
@@ -1 +1,7 @@
1
+ export {
2
+ ALWAYS_ON_CHANNELS,
3
+ DECLARED_INTEGRATIONS,
4
+ type AlwaysOnChannel,
5
+ type DeclaredIntegration,
6
+ } from './integrations';
1
7
  export * from './secrets';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Backend channels surfaced as `ctx.api.v1.<name>`.
3
+ *
4
+ * Always-on channels need no OAuth and are never declared — the runner builds
5
+ * them for every app regardless of what its handlers touch.
6
+ */
7
+ export const ALWAYS_ON_CHANNELS = ['db', 'llm', 'snowflake'] as const;
8
+ export type AlwaysOnChannel = (typeof ALWAYS_ON_CHANNELS)[number];
9
+
10
+ /**
11
+ * Declared (OAuth-gated) integrations: closed set the CLI detects from handler
12
+ * sources and the broker validates on register/update.
13
+ */
14
+ export const DECLARED_INTEGRATIONS = ['monday'] as const;
15
+ export type DeclaredIntegration = (typeof DECLARED_INTEGRATIONS)[number];
@@ -75,4 +75,5 @@ export const Z2hAgentEvents = {
75
75
  /** BI events tracked in `z2h-cli`. */
76
76
  export const Z2hCliEvents = {
77
77
  error: 'z2h_cli_error',
78
+ handlerParseError: 'z2h_cli_handler_parse_error',
78
79
  } as const;