@sequenceholdings/managed-functions 0.4.2 → 0.4.3
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 +2 -2
- package/dist/monitoring-contract.d.ts +2 -2
- package/dist/monitoring-contract.js +2 -2
- package/dist/runtime.cjs +6 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -583,7 +583,7 @@ capabilities:
|
|
|
583
583
|
```
|
|
584
584
|
|
|
585
585
|
Declarations grant no monitoring authority. The attached account needs the
|
|
586
|
-
producer namespace's runtime floor and pinned `
|
|
586
|
+
producer namespace's runtime floor and pinned `emit-monitoring` capability.
|
|
587
587
|
Continuous Improvement must also register that exact namespace and authorize
|
|
588
588
|
publishing or catalog reads. Registrations default to inactive with both
|
|
589
589
|
operations disabled. Only a human with current Monitoring Admin authority can
|
|
@@ -627,7 +627,7 @@ accepted. A legitimate zero-event result still receives a hash-bound receipt.
|
|
|
627
627
|
Both publishing and lookup require producer authorization.
|
|
628
628
|
|
|
629
629
|
`getBucketCatalog({ producer })` reads only the complete active taxonomy
|
|
630
|
-
metadata under the separate namespace `
|
|
630
|
+
metadata under the separate namespace `read-monitoring-catalog` capability.
|
|
631
631
|
Freeze that catalog with the analysis inputs. More than 2000 buckets or 512 KiB
|
|
632
632
|
returns an explicit size error; the client never treats a partial catalog as complete.
|
|
633
633
|
|
|
@@ -3,8 +3,8 @@ import { functionMonitoringAnnotationSchema } from './monitoring-annotations';
|
|
|
3
3
|
export type { DeltaEventInput as MonitoringDeltaEvent } from './monitoring-events';
|
|
4
4
|
export declare const FUNCTION_MONITORING_TOKEN_HEADER = "x-sequence-monitoring-service-token";
|
|
5
5
|
export declare const FUNCTION_MONITORING_DELIVERIES_PATH = "/api/managed-functions/monitoring/deliveries";
|
|
6
|
-
export declare const MONITORING_PRODUCER_CAPABILITY = "
|
|
7
|
-
export declare const MONITORING_CATALOG_CAPABILITY = "
|
|
6
|
+
export declare const MONITORING_PRODUCER_CAPABILITY = "emit-monitoring";
|
|
7
|
+
export declare const MONITORING_CATALOG_CAPABILITY = "read-monitoring-catalog";
|
|
8
8
|
export declare const MAX_MONITORING_DELIVERY_BYTES: number;
|
|
9
9
|
export declare const functionMonitoringScopesSchema: z.ZodObject<{
|
|
10
10
|
producers: z.ZodArray<z.ZodString>;
|
|
@@ -9,8 +9,8 @@ const monitoring_events_1 = require("./monitoring-events");
|
|
|
9
9
|
const monitoring_annotations_1 = require("./monitoring-annotations");
|
|
10
10
|
exports.FUNCTION_MONITORING_TOKEN_HEADER = 'x-sequence-monitoring-service-token';
|
|
11
11
|
exports.FUNCTION_MONITORING_DELIVERIES_PATH = '/api/managed-functions/monitoring/deliveries';
|
|
12
|
-
exports.MONITORING_PRODUCER_CAPABILITY = '
|
|
13
|
-
exports.MONITORING_CATALOG_CAPABILITY = '
|
|
12
|
+
exports.MONITORING_PRODUCER_CAPABILITY = 'emit-monitoring';
|
|
13
|
+
exports.MONITORING_CATALOG_CAPABILITY = 'read-monitoring-catalog';
|
|
14
14
|
exports.MAX_MONITORING_DELIVERY_BYTES = 512 * 1024;
|
|
15
15
|
const producer = zod_1.z.string().min(1).max(41).regex(/^[a-z][a-z0-9_]{0,40}$/);
|
|
16
16
|
exports.functionMonitoringScopesSchema = zod_1.z.strictObject({
|
package/dist/runtime.cjs
CHANGED
|
@@ -18871,8 +18871,8 @@ var require_monitoring_contract = __commonJS({
|
|
|
18871
18871
|
var monitoring_annotations_12 = require_monitoring_annotations();
|
|
18872
18872
|
exports2.FUNCTION_MONITORING_TOKEN_HEADER = "x-sequence-monitoring-service-token";
|
|
18873
18873
|
exports2.FUNCTION_MONITORING_DELIVERIES_PATH = "/api/managed-functions/monitoring/deliveries";
|
|
18874
|
-
exports2.MONITORING_PRODUCER_CAPABILITY = "
|
|
18875
|
-
exports2.MONITORING_CATALOG_CAPABILITY = "
|
|
18874
|
+
exports2.MONITORING_PRODUCER_CAPABILITY = "emit-monitoring";
|
|
18875
|
+
exports2.MONITORING_CATALOG_CAPABILITY = "read-monitoring-catalog";
|
|
18876
18876
|
exports2.MAX_MONITORING_DELIVERY_BYTES = 512 * 1024;
|
|
18877
18877
|
var producer = zod_12.z.string().min(1).max(41).regex(/^[a-z][a-z0-9_]{0,40}$/);
|
|
18878
18878
|
exports2.functionMonitoringScopesSchema = zod_12.z.strictObject({
|
|
@@ -29268,9 +29268,12 @@ var require_transfer = __commonJS({
|
|
|
29268
29268
|
}
|
|
29269
29269
|
};
|
|
29270
29270
|
exports2.StorageTransferError = StorageTransferError;
|
|
29271
|
+
var BUCKET_HOST = /^[a-z0-9][a-z0-9_-]{1,61}[a-z0-9]\.storage\.googleapis\.com$/;
|
|
29271
29272
|
function checkedUploadUrl(value) {
|
|
29272
29273
|
const url = new URL(value);
|
|
29273
|
-
|
|
29274
|
+
const jsonSession = url.hostname === "storage.googleapis.com" && url.pathname.startsWith("/upload/");
|
|
29275
|
+
const bucketHostSession = BUCKET_HOST.test(url.hostname) && url.pathname !== "/";
|
|
29276
|
+
if (url.protocol !== "https:" || !(jsonSession || bucketHostSession) || !url.searchParams.has("upload_id") || url.port || url.username || url.password) {
|
|
29274
29277
|
throw new StorageTransferError("Invalid storage upload destination");
|
|
29275
29278
|
}
|
|
29276
29279
|
return url.href;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sequenceholdings/managed-functions",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Managed Function context and opt-in cache runtime",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"zod": "^4.1.13",
|
|
41
41
|
"@opentelemetry/api": "^1.9.0",
|
|
42
42
|
"@opentelemetry/sdk-trace-base": "^2.5.1",
|
|
43
|
-
"@sequenceholdings/storage": "0.1.
|
|
43
|
+
"@sequenceholdings/storage": "0.1.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/node": "^22.0.0",
|