@pellux/goodvibes-sdk 0.26.1 → 0.26.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/dist/_internal/contracts/artifacts/operator-contract.json +34 -7
- package/dist/_internal/contracts/generated/foundation-metadata.d.ts +1 -1
- package/dist/_internal/contracts/generated/foundation-metadata.js +1 -1
- package/dist/_internal/contracts/generated/operator-contract.d.ts.map +1 -1
- package/dist/_internal/contracts/generated/operator-contract.js +34 -7
- package/dist/_internal/daemon/artifact-upload.d.ts +26 -0
- package/dist/_internal/daemon/artifact-upload.d.ts.map +1 -0
- package/dist/_internal/daemon/artifact-upload.js +463 -0
- package/dist/_internal/daemon/index.d.ts +2 -0
- package/dist/_internal/daemon/index.d.ts.map +1 -1
- package/dist/_internal/daemon/index.js +1 -0
- package/dist/_internal/daemon/knowledge-route-types.d.ts +2 -0
- package/dist/_internal/daemon/knowledge-route-types.d.ts.map +1 -1
- package/dist/_internal/daemon/knowledge-routes.d.ts.map +1 -1
- package/dist/_internal/daemon/knowledge-routes.js +15 -0
- package/dist/_internal/daemon/media-routes.d.ts.map +1 -1
- package/dist/_internal/daemon/media-routes.js +7 -0
- package/dist/_internal/platform/artifacts/store.d.ts +5 -1
- package/dist/_internal/platform/artifacts/store.d.ts.map +1 -1
- package/dist/_internal/platform/artifacts/store.js +168 -31
- package/dist/_internal/platform/artifacts/types.d.ts +12 -0
- package/dist/_internal/platform/artifacts/types.d.ts.map +1 -1
- package/dist/_internal/platform/config/schema-domain-core.d.ts +3 -0
- package/dist/_internal/platform/config/schema-domain-core.d.ts.map +1 -1
- package/dist/_internal/platform/config/schema-domain-core.js +10 -0
- package/dist/_internal/platform/config/schema-types.d.ts +5 -2
- package/dist/_internal/platform/config/schema-types.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/method-catalog-homegraph.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/method-catalog-homegraph.js +6 -1
- package/dist/_internal/platform/control-plane/method-catalog-knowledge.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/method-catalog-knowledge.js +5 -1
- package/dist/_internal/platform/control-plane/method-catalog-media.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/method-catalog-media.js +5 -1
- package/dist/_internal/platform/daemon/http/home-graph-routes.d.ts +2 -0
- package/dist/_internal/platform/daemon/http/home-graph-routes.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http/home-graph-routes.js +13 -1
- package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts +1 -0
- package/dist/_internal/platform/daemon/http/router-route-contexts.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http/router-route-contexts.js +1 -0
- package/dist/_internal/platform/daemon/http/router.d.ts.map +1 -1
- package/dist/_internal/platform/daemon/http/router.js +2 -0
- package/dist/_internal/platform/version.js +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"product": {
|
|
4
4
|
"id": "goodvibes",
|
|
5
5
|
"surface": "operator",
|
|
6
|
-
"version": "0.26.
|
|
6
|
+
"version": "0.26.3"
|
|
7
7
|
},
|
|
8
8
|
"auth": {
|
|
9
9
|
"modes": [
|
|
@@ -2279,7 +2279,7 @@
|
|
|
2279
2279
|
{
|
|
2280
2280
|
"id": "artifacts.create",
|
|
2281
2281
|
"title": "Create Artifact",
|
|
2282
|
-
"description": "Store a file or attachment artifact for later delivery or
|
|
2282
|
+
"description": "Store a file or attachment artifact for later delivery, analysis, or knowledge ingest. JSON supports small inline bodies and daemon-local path/URI references; HTTP callers can also send multipart/form-data or a raw binary body for large uploads.",
|
|
2283
2283
|
"category": "artifacts",
|
|
2284
2284
|
"source": "builtin",
|
|
2285
2285
|
"access": "authenticated",
|
|
@@ -2438,7 +2438,16 @@
|
|
|
2438
2438
|
],
|
|
2439
2439
|
"additionalProperties": false
|
|
2440
2440
|
},
|
|
2441
|
-
"invokable": true
|
|
2441
|
+
"invokable": true,
|
|
2442
|
+
"metadata": {
|
|
2443
|
+
"uploadModes": [
|
|
2444
|
+
"json-inline",
|
|
2445
|
+
"json-path-or-uri",
|
|
2446
|
+
"multipart-file",
|
|
2447
|
+
"raw-body"
|
|
2448
|
+
],
|
|
2449
|
+
"largeUploadConfigKey": "storage.artifacts.maxBytes"
|
|
2450
|
+
}
|
|
2442
2451
|
},
|
|
2443
2452
|
{
|
|
2444
2453
|
"id": "artifacts.get",
|
|
@@ -25880,7 +25889,7 @@
|
|
|
25880
25889
|
{
|
|
25881
25890
|
"id": "homeassistant.homeGraph.ingestHomeGraphArtifact",
|
|
25882
25891
|
"title": "Ingest Home Graph Artifact",
|
|
25883
|
-
"description": "Index an artifact
|
|
25892
|
+
"description": "Index an existing artifact reference, JSON path/URI reference, multipart file upload, or raw binary upload as a Home Graph document, receipt, warranty, manual, or photo.",
|
|
25884
25893
|
"category": "knowledge",
|
|
25885
25894
|
"source": "builtin",
|
|
25886
25895
|
"access": "admin",
|
|
@@ -26304,7 +26313,16 @@
|
|
|
26304
26313
|
],
|
|
26305
26314
|
"additionalProperties": true
|
|
26306
26315
|
},
|
|
26307
|
-
"invokable": true
|
|
26316
|
+
"invokable": true,
|
|
26317
|
+
"metadata": {
|
|
26318
|
+
"uploadModes": [
|
|
26319
|
+
"json-artifact-reference",
|
|
26320
|
+
"json-path-or-uri",
|
|
26321
|
+
"multipart-file",
|
|
26322
|
+
"raw-body"
|
|
26323
|
+
],
|
|
26324
|
+
"largeUploadConfigKey": "storage.artifacts.maxBytes"
|
|
26325
|
+
}
|
|
26308
26326
|
},
|
|
26309
26327
|
{
|
|
26310
26328
|
"id": "homeassistant.homeGraph.ingestHomeGraphNote",
|
|
@@ -30650,7 +30668,7 @@
|
|
|
30650
30668
|
{
|
|
30651
30669
|
"id": "knowledge.ingest.artifact",
|
|
30652
30670
|
"title": "Ingest Artifact Into Knowledge",
|
|
30653
|
-
"description": "Snapshot
|
|
30671
|
+
"description": "Snapshot an existing artifact, daemon-local path, remote URI, multipart file upload, or raw binary upload into the structured knowledge store and run structured extraction.",
|
|
30654
30672
|
"category": "knowledge",
|
|
30655
30673
|
"source": "builtin",
|
|
30656
30674
|
"access": "admin",
|
|
@@ -30941,7 +30959,16 @@
|
|
|
30941
30959
|
],
|
|
30942
30960
|
"additionalProperties": true
|
|
30943
30961
|
},
|
|
30944
|
-
"invokable": true
|
|
30962
|
+
"invokable": true,
|
|
30963
|
+
"metadata": {
|
|
30964
|
+
"uploadModes": [
|
|
30965
|
+
"json-artifact-reference",
|
|
30966
|
+
"json-path-or-uri",
|
|
30967
|
+
"multipart-file",
|
|
30968
|
+
"raw-body"
|
|
30969
|
+
],
|
|
30970
|
+
"largeUploadConfigKey": "storage.artifacts.maxBytes"
|
|
30971
|
+
}
|
|
30945
30972
|
},
|
|
30946
30973
|
{
|
|
30947
30974
|
"id": "knowledge.ingest.bookmarks",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Synced from packages/contracts/src/generated/foundation-metadata.ts
|
|
2
2
|
export const FOUNDATION_METADATA = {
|
|
3
3
|
"productId": "goodvibes",
|
|
4
|
-
"productVersion": "0.26.
|
|
4
|
+
"productVersion": "0.26.3",
|
|
5
5
|
"operatorMethodCount": 242,
|
|
6
6
|
"operatorEventCount": 30,
|
|
7
7
|
"peerEndpointCount": 6
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-contract.d.ts","sourceRoot":"","sources":["../../../../src/_internal/contracts/generated/operator-contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,iBAAiB,EAAE,
|
|
1
|
+
{"version":3,"file":"operator-contract.d.ts","sourceRoot":"","sources":["../../../../src/_internal/contracts/generated/operator-contract.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,iBAAiB,EAAE,wBA4q1DtB,CAAC"}
|
|
@@ -3,7 +3,7 @@ export const OPERATOR_CONTRACT = {
|
|
|
3
3
|
"product": {
|
|
4
4
|
"id": "goodvibes",
|
|
5
5
|
"surface": "operator",
|
|
6
|
-
"version": "0.26.
|
|
6
|
+
"version": "0.26.3"
|
|
7
7
|
},
|
|
8
8
|
"auth": {
|
|
9
9
|
"modes": [
|
|
@@ -2279,7 +2279,7 @@ export const OPERATOR_CONTRACT = {
|
|
|
2279
2279
|
{
|
|
2280
2280
|
"id": "artifacts.create",
|
|
2281
2281
|
"title": "Create Artifact",
|
|
2282
|
-
"description": "Store a file or attachment artifact for later delivery or
|
|
2282
|
+
"description": "Store a file or attachment artifact for later delivery, analysis, or knowledge ingest. JSON supports small inline bodies and daemon-local path/URI references; HTTP callers can also send multipart/form-data or a raw binary body for large uploads.",
|
|
2283
2283
|
"category": "artifacts",
|
|
2284
2284
|
"source": "builtin",
|
|
2285
2285
|
"access": "authenticated",
|
|
@@ -2438,7 +2438,16 @@ export const OPERATOR_CONTRACT = {
|
|
|
2438
2438
|
],
|
|
2439
2439
|
"additionalProperties": false
|
|
2440
2440
|
},
|
|
2441
|
-
"invokable": true
|
|
2441
|
+
"invokable": true,
|
|
2442
|
+
"metadata": {
|
|
2443
|
+
"uploadModes": [
|
|
2444
|
+
"json-inline",
|
|
2445
|
+
"json-path-or-uri",
|
|
2446
|
+
"multipart-file",
|
|
2447
|
+
"raw-body"
|
|
2448
|
+
],
|
|
2449
|
+
"largeUploadConfigKey": "storage.artifacts.maxBytes"
|
|
2450
|
+
}
|
|
2442
2451
|
},
|
|
2443
2452
|
{
|
|
2444
2453
|
"id": "artifacts.get",
|
|
@@ -25880,7 +25889,7 @@ export const OPERATOR_CONTRACT = {
|
|
|
25880
25889
|
{
|
|
25881
25890
|
"id": "homeassistant.homeGraph.ingestHomeGraphArtifact",
|
|
25882
25891
|
"title": "Ingest Home Graph Artifact",
|
|
25883
|
-
"description": "Index an artifact
|
|
25892
|
+
"description": "Index an existing artifact reference, JSON path/URI reference, multipart file upload, or raw binary upload as a Home Graph document, receipt, warranty, manual, or photo.",
|
|
25884
25893
|
"category": "knowledge",
|
|
25885
25894
|
"source": "builtin",
|
|
25886
25895
|
"access": "admin",
|
|
@@ -26304,7 +26313,16 @@ export const OPERATOR_CONTRACT = {
|
|
|
26304
26313
|
],
|
|
26305
26314
|
"additionalProperties": true
|
|
26306
26315
|
},
|
|
26307
|
-
"invokable": true
|
|
26316
|
+
"invokable": true,
|
|
26317
|
+
"metadata": {
|
|
26318
|
+
"uploadModes": [
|
|
26319
|
+
"json-artifact-reference",
|
|
26320
|
+
"json-path-or-uri",
|
|
26321
|
+
"multipart-file",
|
|
26322
|
+
"raw-body"
|
|
26323
|
+
],
|
|
26324
|
+
"largeUploadConfigKey": "storage.artifacts.maxBytes"
|
|
26325
|
+
}
|
|
26308
26326
|
},
|
|
26309
26327
|
{
|
|
26310
26328
|
"id": "homeassistant.homeGraph.ingestHomeGraphNote",
|
|
@@ -30650,7 +30668,7 @@ export const OPERATOR_CONTRACT = {
|
|
|
30650
30668
|
{
|
|
30651
30669
|
"id": "knowledge.ingest.artifact",
|
|
30652
30670
|
"title": "Ingest Artifact Into Knowledge",
|
|
30653
|
-
"description": "Snapshot
|
|
30671
|
+
"description": "Snapshot an existing artifact, daemon-local path, remote URI, multipart file upload, or raw binary upload into the structured knowledge store and run structured extraction.",
|
|
30654
30672
|
"category": "knowledge",
|
|
30655
30673
|
"source": "builtin",
|
|
30656
30674
|
"access": "admin",
|
|
@@ -30941,7 +30959,16 @@ export const OPERATOR_CONTRACT = {
|
|
|
30941
30959
|
],
|
|
30942
30960
|
"additionalProperties": true
|
|
30943
30961
|
},
|
|
30944
|
-
"invokable": true
|
|
30962
|
+
"invokable": true,
|
|
30963
|
+
"metadata": {
|
|
30964
|
+
"uploadModes": [
|
|
30965
|
+
"json-artifact-reference",
|
|
30966
|
+
"json-path-or-uri",
|
|
30967
|
+
"multipart-file",
|
|
30968
|
+
"raw-body"
|
|
30969
|
+
],
|
|
30970
|
+
"largeUploadConfigKey": "storage.artifacts.maxBytes"
|
|
30971
|
+
}
|
|
30945
30972
|
},
|
|
30946
30973
|
{
|
|
30947
30974
|
"id": "knowledge.ingest.bookmarks",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type ArtifactUploadFieldMap = Record<string, unknown>;
|
|
2
|
+
export interface ArtifactStoreUploadLike {
|
|
3
|
+
create(input: Record<string, unknown>): Promise<unknown>;
|
|
4
|
+
getMaxBytes?(): number;
|
|
5
|
+
createFromStream?(input: {
|
|
6
|
+
readonly stream: ReadableStream<Uint8Array> | AsyncIterable<Uint8Array | Buffer | string> | Iterable<Uint8Array | Buffer | string>;
|
|
7
|
+
readonly kind?: string;
|
|
8
|
+
readonly mimeType?: string;
|
|
9
|
+
readonly filename?: string;
|
|
10
|
+
readonly sourceUri?: string;
|
|
11
|
+
readonly sizeBytes?: number;
|
|
12
|
+
readonly retentionMs?: number;
|
|
13
|
+
readonly acquisitionMode?: string;
|
|
14
|
+
readonly fetchMode?: string;
|
|
15
|
+
readonly metadata?: Record<string, unknown>;
|
|
16
|
+
}): Promise<unknown>;
|
|
17
|
+
}
|
|
18
|
+
export interface ArtifactUploadResult {
|
|
19
|
+
readonly artifact: unknown;
|
|
20
|
+
readonly artifactId: string;
|
|
21
|
+
readonly fields: ArtifactUploadFieldMap;
|
|
22
|
+
}
|
|
23
|
+
export declare function isJsonContentType(contentType: string | null): boolean;
|
|
24
|
+
export declare function isArtifactUploadRequest(req: Request): boolean;
|
|
25
|
+
export declare function createArtifactFromUploadRequest(artifactStore: ArtifactStoreUploadLike, req: Request): Promise<ArtifactUploadResult | Response>;
|
|
26
|
+
//# sourceMappingURL=artifact-upload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"artifact-upload.d.ts","sourceRoot":"","sources":["../../../src/_internal/daemon/artifact-upload.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC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