@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.
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/integrations.d.ts +15 -0
- package/dist/esm/integrations.d.ts.map +1 -0
- package/dist/esm/integrations.mjs +14 -0
- package/dist/esm/observability/events.d.ts +1 -0
- package/dist/esm/observability/events.d.ts.map +1 -1
- package/dist/esm/observability/events.mjs +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/integrations.d.ts +15 -0
- package/dist/integrations.d.ts.map +1 -0
- package/dist/integrations.js +17 -0
- package/dist/observability/events.d.ts +1 -0
- package/dist/observability/events.d.ts.map +1 -1
- package/dist/observability/events.js +1 -0
- package/package.json +1 -1
- package/src/index.ts +6 -0
- package/src/integrations.ts +15 -0
- package/src/observability/events.ts +1 -0
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -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/esm/index.mjs
CHANGED
|
@@ -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 };
|
|
@@ -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
|
|
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
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
@@ -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
|
|
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"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -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];
|