@pellux/goodvibes-sdk 0.28.4 → 0.28.6
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 +106 -1
- 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 +106 -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 +11 -1
- package/dist/_internal/platform/control-plane/operator-contract-schemas-homegraph.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/operator-contract-schemas-homegraph.js +8 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge-map.d.ts +2 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge-map.d.ts.map +1 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge-map.js +61 -0
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge.d.ts +1 -1
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge.d.ts.map +1 -1
- package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge.js +1 -53
- package/dist/_internal/platform/knowledge/home-graph/generated-pages.d.ts +2 -2
- package/dist/_internal/platform/knowledge/home-graph/generated-pages.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/home-graph/generated-pages.js +4 -1
- package/dist/_internal/platform/knowledge/home-graph/reindex.d.ts +16 -2
- package/dist/_internal/platform/knowledge/home-graph/reindex.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/home-graph/reindex.js +167 -2
- package/dist/_internal/platform/knowledge/home-graph/service.d.ts +2 -2
- package/dist/_internal/platform/knowledge/home-graph/service.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/home-graph/service.js +8 -25
- package/dist/_internal/platform/knowledge/home-graph/status.js +1 -1
- package/dist/_internal/platform/knowledge/home-graph/types.d.ts +16 -0
- package/dist/_internal/platform/knowledge/home-graph/types.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/map.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/map.js +17 -8
- package/dist/_internal/platform/knowledge/semantic/answer.js +54 -21
- package/dist/_internal/platform/knowledge/semantic/fact-quality.d.ts +1 -0
- package/dist/_internal/platform/knowledge/semantic/fact-quality.d.ts.map +1 -1
- package/dist/_internal/platform/knowledge/semantic/fact-quality.js +67 -0
- package/dist/_internal/platform/knowledge/semantic/self-improvement.js +5 -0
- package/dist/_internal/platform/knowledge/types.d.ts +6 -0
- package/dist/_internal/platform/knowledge/types.d.ts.map +1 -1
- 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.28.
|
|
6
|
+
"version": "0.28.6"
|
|
7
7
|
},
|
|
8
8
|
"auth": {
|
|
9
9
|
"modes": [
|
|
@@ -28440,6 +28440,24 @@
|
|
|
28440
28440
|
"toId": {
|
|
28441
28441
|
"type": "string"
|
|
28442
28442
|
},
|
|
28443
|
+
"source": {
|
|
28444
|
+
"type": "string"
|
|
28445
|
+
},
|
|
28446
|
+
"target": {
|
|
28447
|
+
"type": "string"
|
|
28448
|
+
},
|
|
28449
|
+
"fromTitle": {
|
|
28450
|
+
"type": "string"
|
|
28451
|
+
},
|
|
28452
|
+
"toTitle": {
|
|
28453
|
+
"type": "string"
|
|
28454
|
+
},
|
|
28455
|
+
"sourceTitle": {
|
|
28456
|
+
"type": "string"
|
|
28457
|
+
},
|
|
28458
|
+
"targetTitle": {
|
|
28459
|
+
"type": "string"
|
|
28460
|
+
},
|
|
28443
28461
|
"relation": {
|
|
28444
28462
|
"type": "string"
|
|
28445
28463
|
},
|
|
@@ -29726,6 +29744,27 @@
|
|
|
29726
29744
|
},
|
|
29727
29745
|
"knowledgeSpaceId": {
|
|
29728
29746
|
"type": "string"
|
|
29747
|
+
},
|
|
29748
|
+
"limit": {
|
|
29749
|
+
"type": "number"
|
|
29750
|
+
},
|
|
29751
|
+
"maxRunMs": {
|
|
29752
|
+
"type": "number"
|
|
29753
|
+
},
|
|
29754
|
+
"semanticLimit": {
|
|
29755
|
+
"type": "number"
|
|
29756
|
+
},
|
|
29757
|
+
"semanticMaxRunMs": {
|
|
29758
|
+
"type": "number"
|
|
29759
|
+
},
|
|
29760
|
+
"generatedPageLimit": {
|
|
29761
|
+
"type": "number"
|
|
29762
|
+
},
|
|
29763
|
+
"force": {
|
|
29764
|
+
"type": "boolean"
|
|
29765
|
+
},
|
|
29766
|
+
"refreshPages": {
|
|
29767
|
+
"type": "boolean"
|
|
29729
29768
|
}
|
|
29730
29769
|
},
|
|
29731
29770
|
"additionalProperties": true
|
|
@@ -29751,6 +29790,27 @@
|
|
|
29751
29790
|
"failed": {
|
|
29752
29791
|
"type": "number"
|
|
29753
29792
|
},
|
|
29793
|
+
"changedSourceCount": {
|
|
29794
|
+
"type": "number"
|
|
29795
|
+
},
|
|
29796
|
+
"forcedSourceCount": {
|
|
29797
|
+
"type": "number"
|
|
29798
|
+
},
|
|
29799
|
+
"skippedGeneratedPageArtifactCount": {
|
|
29800
|
+
"type": "number"
|
|
29801
|
+
},
|
|
29802
|
+
"refreshedGeneratedPageCount": {
|
|
29803
|
+
"type": "number"
|
|
29804
|
+
},
|
|
29805
|
+
"generatedPagePolicyVersion": {
|
|
29806
|
+
"type": "string"
|
|
29807
|
+
},
|
|
29808
|
+
"truncated": {
|
|
29809
|
+
"type": "boolean"
|
|
29810
|
+
},
|
|
29811
|
+
"budgetExhausted": {
|
|
29812
|
+
"type": "boolean"
|
|
29813
|
+
},
|
|
29754
29814
|
"sources": {
|
|
29755
29815
|
"type": "array",
|
|
29756
29816
|
"items": {
|
|
@@ -29914,6 +29974,33 @@
|
|
|
29914
29974
|
]
|
|
29915
29975
|
}
|
|
29916
29976
|
},
|
|
29977
|
+
"semantic": {
|
|
29978
|
+
"type": "object",
|
|
29979
|
+
"additionalProperties": {
|
|
29980
|
+
"anyOf": [
|
|
29981
|
+
{
|
|
29982
|
+
"type": "string"
|
|
29983
|
+
},
|
|
29984
|
+
{
|
|
29985
|
+
"type": "number"
|
|
29986
|
+
},
|
|
29987
|
+
{
|
|
29988
|
+
"type": "boolean"
|
|
29989
|
+
},
|
|
29990
|
+
{
|
|
29991
|
+
"type": "null"
|
|
29992
|
+
},
|
|
29993
|
+
{
|
|
29994
|
+
"type": "object",
|
|
29995
|
+
"additionalProperties": {}
|
|
29996
|
+
},
|
|
29997
|
+
{
|
|
29998
|
+
"type": "array",
|
|
29999
|
+
"items": {}
|
|
30000
|
+
}
|
|
30001
|
+
]
|
|
30002
|
+
}
|
|
30003
|
+
},
|
|
29917
30004
|
"generated": {
|
|
29918
30005
|
"type": "object",
|
|
29919
30006
|
"additionalProperties": {
|
|
@@ -38049,6 +38136,24 @@
|
|
|
38049
38136
|
"toId": {
|
|
38050
38137
|
"type": "string"
|
|
38051
38138
|
},
|
|
38139
|
+
"source": {
|
|
38140
|
+
"type": "string"
|
|
38141
|
+
},
|
|
38142
|
+
"target": {
|
|
38143
|
+
"type": "string"
|
|
38144
|
+
},
|
|
38145
|
+
"fromTitle": {
|
|
38146
|
+
"type": "string"
|
|
38147
|
+
},
|
|
38148
|
+
"toTitle": {
|
|
38149
|
+
"type": "string"
|
|
38150
|
+
},
|
|
38151
|
+
"sourceTitle": {
|
|
38152
|
+
"type": "string"
|
|
38153
|
+
},
|
|
38154
|
+
"targetTitle": {
|
|
38155
|
+
"type": "string"
|
|
38156
|
+
},
|
|
38052
38157
|
"relation": {
|
|
38053
38158
|
"type": "string"
|
|
38054
38159
|
},
|
|
@@ -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.28.
|
|
4
|
+
"productVersion": "0.28.6",
|
|
5
5
|
"operatorMethodCount": 264,
|
|
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,wBAwkmEtB,CAAC"}
|
|
@@ -3,7 +3,7 @@ export const OPERATOR_CONTRACT = {
|
|
|
3
3
|
"product": {
|
|
4
4
|
"id": "goodvibes",
|
|
5
5
|
"surface": "operator",
|
|
6
|
-
"version": "0.28.
|
|
6
|
+
"version": "0.28.6"
|
|
7
7
|
},
|
|
8
8
|
"auth": {
|
|
9
9
|
"modes": [
|
|
@@ -28440,6 +28440,24 @@ export const OPERATOR_CONTRACT = {
|
|
|
28440
28440
|
"toId": {
|
|
28441
28441
|
"type": "string"
|
|
28442
28442
|
},
|
|
28443
|
+
"source": {
|
|
28444
|
+
"type": "string"
|
|
28445
|
+
},
|
|
28446
|
+
"target": {
|
|
28447
|
+
"type": "string"
|
|
28448
|
+
},
|
|
28449
|
+
"fromTitle": {
|
|
28450
|
+
"type": "string"
|
|
28451
|
+
},
|
|
28452
|
+
"toTitle": {
|
|
28453
|
+
"type": "string"
|
|
28454
|
+
},
|
|
28455
|
+
"sourceTitle": {
|
|
28456
|
+
"type": "string"
|
|
28457
|
+
},
|
|
28458
|
+
"targetTitle": {
|
|
28459
|
+
"type": "string"
|
|
28460
|
+
},
|
|
28443
28461
|
"relation": {
|
|
28444
28462
|
"type": "string"
|
|
28445
28463
|
},
|
|
@@ -29726,6 +29744,27 @@ export const OPERATOR_CONTRACT = {
|
|
|
29726
29744
|
},
|
|
29727
29745
|
"knowledgeSpaceId": {
|
|
29728
29746
|
"type": "string"
|
|
29747
|
+
},
|
|
29748
|
+
"limit": {
|
|
29749
|
+
"type": "number"
|
|
29750
|
+
},
|
|
29751
|
+
"maxRunMs": {
|
|
29752
|
+
"type": "number"
|
|
29753
|
+
},
|
|
29754
|
+
"semanticLimit": {
|
|
29755
|
+
"type": "number"
|
|
29756
|
+
},
|
|
29757
|
+
"semanticMaxRunMs": {
|
|
29758
|
+
"type": "number"
|
|
29759
|
+
},
|
|
29760
|
+
"generatedPageLimit": {
|
|
29761
|
+
"type": "number"
|
|
29762
|
+
},
|
|
29763
|
+
"force": {
|
|
29764
|
+
"type": "boolean"
|
|
29765
|
+
},
|
|
29766
|
+
"refreshPages": {
|
|
29767
|
+
"type": "boolean"
|
|
29729
29768
|
}
|
|
29730
29769
|
},
|
|
29731
29770
|
"additionalProperties": true
|
|
@@ -29751,6 +29790,27 @@ export const OPERATOR_CONTRACT = {
|
|
|
29751
29790
|
"failed": {
|
|
29752
29791
|
"type": "number"
|
|
29753
29792
|
},
|
|
29793
|
+
"changedSourceCount": {
|
|
29794
|
+
"type": "number"
|
|
29795
|
+
},
|
|
29796
|
+
"forcedSourceCount": {
|
|
29797
|
+
"type": "number"
|
|
29798
|
+
},
|
|
29799
|
+
"skippedGeneratedPageArtifactCount": {
|
|
29800
|
+
"type": "number"
|
|
29801
|
+
},
|
|
29802
|
+
"refreshedGeneratedPageCount": {
|
|
29803
|
+
"type": "number"
|
|
29804
|
+
},
|
|
29805
|
+
"generatedPagePolicyVersion": {
|
|
29806
|
+
"type": "string"
|
|
29807
|
+
},
|
|
29808
|
+
"truncated": {
|
|
29809
|
+
"type": "boolean"
|
|
29810
|
+
},
|
|
29811
|
+
"budgetExhausted": {
|
|
29812
|
+
"type": "boolean"
|
|
29813
|
+
},
|
|
29754
29814
|
"sources": {
|
|
29755
29815
|
"type": "array",
|
|
29756
29816
|
"items": {
|
|
@@ -29914,6 +29974,33 @@ export const OPERATOR_CONTRACT = {
|
|
|
29914
29974
|
]
|
|
29915
29975
|
}
|
|
29916
29976
|
},
|
|
29977
|
+
"semantic": {
|
|
29978
|
+
"type": "object",
|
|
29979
|
+
"additionalProperties": {
|
|
29980
|
+
"anyOf": [
|
|
29981
|
+
{
|
|
29982
|
+
"type": "string"
|
|
29983
|
+
},
|
|
29984
|
+
{
|
|
29985
|
+
"type": "number"
|
|
29986
|
+
},
|
|
29987
|
+
{
|
|
29988
|
+
"type": "boolean"
|
|
29989
|
+
},
|
|
29990
|
+
{
|
|
29991
|
+
"type": "null"
|
|
29992
|
+
},
|
|
29993
|
+
{
|
|
29994
|
+
"type": "object",
|
|
29995
|
+
"additionalProperties": {}
|
|
29996
|
+
},
|
|
29997
|
+
{
|
|
29998
|
+
"type": "array",
|
|
29999
|
+
"items": {}
|
|
30000
|
+
}
|
|
30001
|
+
]
|
|
30002
|
+
}
|
|
30003
|
+
},
|
|
29917
30004
|
"generated": {
|
|
29918
30005
|
"type": "object",
|
|
29919
30006
|
"additionalProperties": {
|
|
@@ -38049,6 +38136,24 @@ export const OPERATOR_CONTRACT = {
|
|
|
38049
38136
|
"toId": {
|
|
38050
38137
|
"type": "string"
|
|
38051
38138
|
},
|
|
38139
|
+
"source": {
|
|
38140
|
+
"type": "string"
|
|
38141
|
+
},
|
|
38142
|
+
"target": {
|
|
38143
|
+
"type": "string"
|
|
38144
|
+
},
|
|
38145
|
+
"fromTitle": {
|
|
38146
|
+
"type": "string"
|
|
38147
|
+
},
|
|
38148
|
+
"toTitle": {
|
|
38149
|
+
"type": "string"
|
|
38150
|
+
},
|
|
38151
|
+
"sourceTitle": {
|
|
38152
|
+
"type": "string"
|
|
38153
|
+
},
|
|
38154
|
+
"targetTitle": {
|
|
38155
|
+
"type": "string"
|
|
38156
|
+
},
|
|
38052
38157
|
"relation": {
|
|
38053
38158
|
"type": "string"
|
|
38054
38159
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method-catalog-homegraph.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/method-catalog-homegraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAqE1E,eAAO,MAAM,wCAAwC,EAAE,SAAS,uBAAuB,
|
|
1
|
+
{"version":3,"file":"method-catalog-homegraph.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/method-catalog-homegraph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAqE1E,eAAO,MAAM,wCAAwC,EAAE,SAAS,uBAAuB,EAyTtF,CAAC"}
|
|
@@ -130,7 +130,17 @@ export const builtinGatewayHomeGraphMethodDescriptors = [
|
|
|
130
130
|
method: 'POST',
|
|
131
131
|
path: '/api/homeassistant/home-graph/reindex',
|
|
132
132
|
write: true,
|
|
133
|
-
inputSchema:
|
|
133
|
+
inputSchema: bodyEnvelopeSchema({
|
|
134
|
+
installationId: STRING_SCHEMA,
|
|
135
|
+
knowledgeSpaceId: STRING_SCHEMA,
|
|
136
|
+
limit: NUMBER_SCHEMA,
|
|
137
|
+
maxRunMs: NUMBER_SCHEMA,
|
|
138
|
+
semanticLimit: NUMBER_SCHEMA,
|
|
139
|
+
semanticMaxRunMs: NUMBER_SCHEMA,
|
|
140
|
+
generatedPageLimit: NUMBER_SCHEMA,
|
|
141
|
+
force: BOOLEAN_SCHEMA,
|
|
142
|
+
refreshPages: BOOLEAN_SCHEMA,
|
|
143
|
+
}),
|
|
134
144
|
outputSchema: HOME_GRAPH_REINDEX_OUTPUT_SCHEMA,
|
|
135
145
|
}),
|
|
136
146
|
homeGraphDescriptor({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-contract-schemas-homegraph.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/operator-contract-schemas-homegraph.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,6BAA6B,yBAGJ,CAAC;AAEvC,eAAO,MAAM,wBAAwB,yBAY4H,CAAC;AAElK,eAAO,MAAM,6BAA6B,yBAeiF,CAAC;AAE5H,eAAO,MAAM,+BAA+B,yBAOmB,CAAC;AAEhE,eAAO,MAAM,6BAA6B,yBAKmB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,yBAM0C,CAAC;AAEpF,eAAO,MAAM,4BAA4B,yBAA8B,CAAC;AAExE,eAAO,MAAM,gCAAgC,
|
|
1
|
+
{"version":3,"file":"operator-contract-schemas-homegraph.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/operator-contract-schemas-homegraph.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,6BAA6B,yBAGJ,CAAC;AAEvC,eAAO,MAAM,wBAAwB,yBAY4H,CAAC;AAElK,eAAO,MAAM,6BAA6B,yBAeiF,CAAC;AAE5H,eAAO,MAAM,+BAA+B,yBAOmB,CAAC;AAEhE,eAAO,MAAM,6BAA6B,yBAKmB,CAAC;AAE9D,eAAO,MAAM,4BAA4B,yBAM0C,CAAC;AAEpF,eAAO,MAAM,4BAA4B,yBAA8B,CAAC;AAExE,eAAO,MAAM,gCAAgC,yBAmB2E,CAAC;AAEzH,eAAO,MAAM,mCAAmC,yBAQsC,CAAC;AAEvF,eAAO,MAAM,+BAA+B,yBAImB,CAAC;AAEhE,eAAO,MAAM,gCAAgC,yBAImB,CAAC;AAEjE,eAAO,MAAM,8BAA8B,yBAImB,CAAC;AAE/D,eAAO,MAAM,+BAA+B,yBAOgD,CAAC;AAE7F,eAAO,MAAM,+BAA+B,yBAMS,CAAC;AAEtD,eAAO,MAAM,yCAAyC,yBAIQ,CAAC;AAE/D,eAAO,MAAM,wCAAwC,yBAIQ,CAAC;AAE9D,eAAO,MAAM,uCAAuC,yBAIW,CAAC;AAEhE,eAAO,MAAM,+BAA+B,yBAUoG,CAAC;AAEjJ,eAAO,MAAM,+BAA+B,yBAIqB,CAAC"}
|
|
@@ -63,9 +63,17 @@ export const HOME_GRAPH_REINDEX_OUTPUT_SCHEMA = objectSchema({
|
|
|
63
63
|
reparsed: NUMBER_SCHEMA,
|
|
64
64
|
skipped: NUMBER_SCHEMA,
|
|
65
65
|
failed: NUMBER_SCHEMA,
|
|
66
|
+
changedSourceCount: NUMBER_SCHEMA,
|
|
67
|
+
forcedSourceCount: NUMBER_SCHEMA,
|
|
68
|
+
skippedGeneratedPageArtifactCount: NUMBER_SCHEMA,
|
|
69
|
+
refreshedGeneratedPageCount: NUMBER_SCHEMA,
|
|
70
|
+
generatedPagePolicyVersion: STRING_SCHEMA,
|
|
71
|
+
truncated: BOOLEAN_SCHEMA,
|
|
72
|
+
budgetExhausted: BOOLEAN_SCHEMA,
|
|
66
73
|
sources: arraySchema(KNOWLEDGE_SOURCE_SCHEMA),
|
|
67
74
|
failures: GENERIC_LIST_SCHEMA,
|
|
68
75
|
linked: GENERIC_LIST_SCHEMA,
|
|
76
|
+
semantic: JSON_RECORD_SCHEMA,
|
|
69
77
|
generated: JSON_RECORD_SCHEMA,
|
|
70
78
|
}, ['ok', 'spaceId', 'scanned', 'reparsed', 'skipped', 'failed', 'sources', 'failures'], { additionalProperties: true });
|
|
71
79
|
export const HOME_GRAPH_PROJECTION_OUTPUT_SCHEMA = objectSchema({
|
package/dist/_internal/platform/control-plane/operator-contract-schemas-knowledge-map.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operator-contract-schemas-knowledge-map.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/operator-contract-schemas-knowledge-map.ts"],"names":[],"mappings":"AA2DA,eAAO,MAAM,2BAA2B,yBAegG,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { BOOLEAN_SCHEMA, NUMBER_SCHEMA, STRING_SCHEMA, arraySchema, objectSchema, } from './method-catalog-shared.js';
|
|
2
|
+
import { METADATA_SCHEMA, recordSchema, } from './operator-contract-schemas-shared.js';
|
|
3
|
+
const KNOWLEDGE_MAP_NODE_SCHEMA = objectSchema({
|
|
4
|
+
id: STRING_SCHEMA,
|
|
5
|
+
recordKind: STRING_SCHEMA,
|
|
6
|
+
kind: STRING_SCHEMA,
|
|
7
|
+
title: STRING_SCHEMA,
|
|
8
|
+
summary: STRING_SCHEMA,
|
|
9
|
+
x: NUMBER_SCHEMA,
|
|
10
|
+
y: NUMBER_SCHEMA,
|
|
11
|
+
radius: NUMBER_SCHEMA,
|
|
12
|
+
metadata: METADATA_SCHEMA,
|
|
13
|
+
}, ['id', 'recordKind', 'kind', 'title', 'x', 'y', 'radius', 'metadata'], { additionalProperties: true });
|
|
14
|
+
const KNOWLEDGE_MAP_EDGE_SCHEMA = objectSchema({
|
|
15
|
+
id: STRING_SCHEMA,
|
|
16
|
+
fromId: STRING_SCHEMA,
|
|
17
|
+
toId: STRING_SCHEMA,
|
|
18
|
+
source: STRING_SCHEMA,
|
|
19
|
+
target: STRING_SCHEMA,
|
|
20
|
+
fromTitle: STRING_SCHEMA,
|
|
21
|
+
toTitle: STRING_SCHEMA,
|
|
22
|
+
sourceTitle: STRING_SCHEMA,
|
|
23
|
+
targetTitle: STRING_SCHEMA,
|
|
24
|
+
relation: STRING_SCHEMA,
|
|
25
|
+
weight: NUMBER_SCHEMA,
|
|
26
|
+
metadata: METADATA_SCHEMA,
|
|
27
|
+
}, ['id', 'fromId', 'toId', 'relation', 'weight', 'metadata'], { additionalProperties: true });
|
|
28
|
+
const KNOWLEDGE_MAP_FACET_VALUE_SCHEMA = objectSchema({
|
|
29
|
+
value: STRING_SCHEMA,
|
|
30
|
+
count: NUMBER_SCHEMA,
|
|
31
|
+
label: STRING_SCHEMA,
|
|
32
|
+
}, ['value', 'count'], { additionalProperties: true });
|
|
33
|
+
const KNOWLEDGE_MAP_FACETS_SCHEMA = objectSchema({
|
|
34
|
+
recordKinds: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
35
|
+
nodeKinds: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
36
|
+
sourceTypes: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
37
|
+
sourceStatuses: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
38
|
+
nodeStatuses: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
39
|
+
issueCodes: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
40
|
+
issueStatuses: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
41
|
+
issueSeverities: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
42
|
+
edgeRelations: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
43
|
+
tags: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
44
|
+
homeAssistant: recordSchema(arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA)),
|
|
45
|
+
}, [], { additionalProperties: true });
|
|
46
|
+
export const KNOWLEDGE_MAP_OUTPUT_SCHEMA = objectSchema({
|
|
47
|
+
ok: BOOLEAN_SCHEMA,
|
|
48
|
+
spaceId: STRING_SCHEMA,
|
|
49
|
+
title: STRING_SCHEMA,
|
|
50
|
+
generatedAt: NUMBER_SCHEMA,
|
|
51
|
+
width: NUMBER_SCHEMA,
|
|
52
|
+
height: NUMBER_SCHEMA,
|
|
53
|
+
nodeCount: NUMBER_SCHEMA,
|
|
54
|
+
edgeCount: NUMBER_SCHEMA,
|
|
55
|
+
totalNodeCount: NUMBER_SCHEMA,
|
|
56
|
+
totalEdgeCount: NUMBER_SCHEMA,
|
|
57
|
+
facets: KNOWLEDGE_MAP_FACETS_SCHEMA,
|
|
58
|
+
nodes: arraySchema(KNOWLEDGE_MAP_NODE_SCHEMA),
|
|
59
|
+
edges: arraySchema(KNOWLEDGE_MAP_EDGE_SCHEMA),
|
|
60
|
+
svg: STRING_SCHEMA,
|
|
61
|
+
}, ['ok', 'title', 'generatedAt', 'width', 'height', 'nodeCount', 'edgeCount', 'nodes', 'edges', 'svg'], { additionalProperties: true });
|
|
@@ -82,7 +82,7 @@ export declare const KNOWLEDGE_CONNECTORS_OUTPUT_SCHEMA: Record<string, unknown>
|
|
|
82
82
|
export declare const KNOWLEDGE_PACKET_SCHEMA: Record<string, unknown>;
|
|
83
83
|
export declare const KNOWLEDGE_PROJECTION_BUNDLE_SCHEMA: Record<string, unknown>;
|
|
84
84
|
export declare const KNOWLEDGE_MATERIALIZED_PROJECTION_SCHEMA: Record<string, unknown>;
|
|
85
|
-
export
|
|
85
|
+
export { KNOWLEDGE_MAP_OUTPUT_SCHEMA } from './operator-contract-schemas-knowledge-map.js';
|
|
86
86
|
export declare const KNOWLEDGE_GRAPHQL_SCHEMA_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
87
87
|
export declare const KNOWLEDGE_GRAPHQL_EXECUTE_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
88
88
|
export declare const KNOWLEDGE_LINT_OUTPUT_SCHEMA: Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator-contract-schemas-knowledge.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/operator-contract-schemas-knowledge.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,qCAAqC,yBAA6C,CAAC;AAChG,eAAO,MAAM,iCAAiC,yBAAqC,CAAC;AACpF,eAAO,MAAM,oCAAoC,yBAA4B,CAAC;AAC9E,eAAO,MAAM,sCAAsC,yBAAqE,CAAC;AACzH,eAAO,MAAM,4BAA4B,yBAWvC,CAAC;AACH,eAAO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M,0BAA0B,yBAOD,CAAC;AAoBvC,eAAO,MAAM,0BAA0B,yBAWgC,CAAC;AAmBxE,eAAO,MAAM,8BAA8B,yBAIa,CAAC;AAEzD,eAAO,MAAM,oCAAoC,yBAKF,CAAC;AAWhD,eAAO,MAAM,oCAAoC,yBAMU,CAAC;AAW5D,eAAO,MAAM,8BAA8B,yBAE5B,CAAC;AAEhB,eAAO,MAAM,2BAA2B,yBAe2C,CAAC;AAEpF,eAAO,MAAM,+BAA+B,yBAAuD,CAAC;AACpG,eAAO,MAAM,6BAA6B,yBAAmD,CAAC;AAC9F,eAAO,MAAM,8BAA8B,yBAAqD,CAAC;AACjG,eAAO,MAAM,oCAAoC,yBAOE,CAAC;AACpD,eAAO,MAAM,kCAAkC,yBAA6D,CAAC;AAgB7G,eAAO,MAAM,uBAAuB,yBASsE,CAAC;AAsG3G,eAAO,MAAM,kCAAkC,yBAOsB,CAAC;AAEtE,eAAO,MAAM,wCAAwC,yBAMK,CAAC;
|
|
1
|
+
{"version":3,"file":"operator-contract-schemas-knowledge.d.ts","sourceRoot":"","sources":["../../../../src/_internal/platform/control-plane/operator-contract-schemas-knowledge.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,qCAAqC,yBAA6C,CAAC;AAChG,eAAO,MAAM,iCAAiC,yBAAqC,CAAC;AACpF,eAAO,MAAM,oCAAoC,yBAA4B,CAAC;AAC9E,eAAO,MAAM,sCAAsC,yBAAqE,CAAC;AACzH,eAAO,MAAM,4BAA4B,yBAWvC,CAAC;AACH,eAAO,MAAM,8BAA8B,yBAAkD,CAAC;AAC9F,eAAO,MAAM,yBAAyB,yBAAuC,CAAC;AAC9E,eAAO,MAAM,2BAA2B,yBAA2D,CAAC;AACpG,eAAO,MAAM,sCAAsC,yBAcjD,CAAC;AACH,eAAO,MAAM,wCAAwC,yBAOnD,CAAC;AACH,eAAO,MAAM,yCAAyC,yBAAkD,CAAC;AACzG,eAAO,MAAM,yBAAyB,yBAWpC,CAAC;AACH,eAAO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AA+D,CAAC;AAChH,eAAO,MAAM,kCAAkC,yBAAgC,CAAC"}
|
|
@@ -607,59 +607,7 @@ export const KNOWLEDGE_MATERIALIZED_PROJECTION_SCHEMA = objectSchema({
|
|
|
607
607
|
linked: KNOWLEDGE_EDGE_SCHEMA,
|
|
608
608
|
artifactCreated: BOOLEAN_SCHEMA,
|
|
609
609
|
}, ['bundle', 'artifact'], { additionalProperties: true });
|
|
610
|
-
|
|
611
|
-
id: STRING_SCHEMA,
|
|
612
|
-
recordKind: STRING_SCHEMA,
|
|
613
|
-
kind: STRING_SCHEMA,
|
|
614
|
-
title: STRING_SCHEMA,
|
|
615
|
-
summary: STRING_SCHEMA,
|
|
616
|
-
x: NUMBER_SCHEMA,
|
|
617
|
-
y: NUMBER_SCHEMA,
|
|
618
|
-
radius: NUMBER_SCHEMA,
|
|
619
|
-
metadata: METADATA_SCHEMA,
|
|
620
|
-
}, ['id', 'recordKind', 'kind', 'title', 'x', 'y', 'radius', 'metadata'], { additionalProperties: true });
|
|
621
|
-
const KNOWLEDGE_MAP_EDGE_SCHEMA = objectSchema({
|
|
622
|
-
id: STRING_SCHEMA,
|
|
623
|
-
fromId: STRING_SCHEMA,
|
|
624
|
-
toId: STRING_SCHEMA,
|
|
625
|
-
relation: STRING_SCHEMA,
|
|
626
|
-
weight: NUMBER_SCHEMA,
|
|
627
|
-
metadata: METADATA_SCHEMA,
|
|
628
|
-
}, ['id', 'fromId', 'toId', 'relation', 'weight', 'metadata'], { additionalProperties: true });
|
|
629
|
-
const KNOWLEDGE_MAP_FACET_VALUE_SCHEMA = objectSchema({
|
|
630
|
-
value: STRING_SCHEMA,
|
|
631
|
-
count: NUMBER_SCHEMA,
|
|
632
|
-
label: STRING_SCHEMA,
|
|
633
|
-
}, ['value', 'count'], { additionalProperties: true });
|
|
634
|
-
const KNOWLEDGE_MAP_FACETS_SCHEMA = objectSchema({
|
|
635
|
-
recordKinds: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
636
|
-
nodeKinds: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
637
|
-
sourceTypes: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
638
|
-
sourceStatuses: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
639
|
-
nodeStatuses: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
640
|
-
issueCodes: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
641
|
-
issueStatuses: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
642
|
-
issueSeverities: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
643
|
-
edgeRelations: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
644
|
-
tags: arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA),
|
|
645
|
-
homeAssistant: recordSchema(arraySchema(KNOWLEDGE_MAP_FACET_VALUE_SCHEMA)),
|
|
646
|
-
}, [], { additionalProperties: true });
|
|
647
|
-
export const KNOWLEDGE_MAP_OUTPUT_SCHEMA = objectSchema({
|
|
648
|
-
ok: BOOLEAN_SCHEMA,
|
|
649
|
-
spaceId: STRING_SCHEMA,
|
|
650
|
-
title: STRING_SCHEMA,
|
|
651
|
-
generatedAt: NUMBER_SCHEMA,
|
|
652
|
-
width: NUMBER_SCHEMA,
|
|
653
|
-
height: NUMBER_SCHEMA,
|
|
654
|
-
nodeCount: NUMBER_SCHEMA,
|
|
655
|
-
edgeCount: NUMBER_SCHEMA,
|
|
656
|
-
totalNodeCount: NUMBER_SCHEMA,
|
|
657
|
-
totalEdgeCount: NUMBER_SCHEMA,
|
|
658
|
-
facets: KNOWLEDGE_MAP_FACETS_SCHEMA,
|
|
659
|
-
nodes: arraySchema(KNOWLEDGE_MAP_NODE_SCHEMA),
|
|
660
|
-
edges: arraySchema(KNOWLEDGE_MAP_EDGE_SCHEMA),
|
|
661
|
-
svg: STRING_SCHEMA,
|
|
662
|
-
}, ['ok', 'title', 'generatedAt', 'width', 'height', 'nodeCount', 'edgeCount', 'nodes', 'edges', 'svg'], { additionalProperties: true });
|
|
610
|
+
export { KNOWLEDGE_MAP_OUTPUT_SCHEMA } from './operator-contract-schemas-knowledge-map.js';
|
|
663
611
|
export const KNOWLEDGE_GRAPHQL_SCHEMA_OUTPUT_SCHEMA = objectSchema({
|
|
664
612
|
language: STRING_SCHEMA,
|
|
665
613
|
domain: STRING_SCHEMA,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { ArtifactStore } from '../../artifacts/index.js';
|
|
2
2
|
import type { KnowledgeStore } from '../store.js';
|
|
3
3
|
import type { HomeGraphDevicePassportResult, HomeGraphGeneratedPagesSummary, HomeGraphProjectionInput, HomeGraphProjectionResult, HomeGraphSnapshotInput } from './types.js';
|
|
4
|
-
interface HomeGraphPageContext {
|
|
4
|
+
export interface HomeGraphPageContext {
|
|
5
5
|
readonly store: KnowledgeStore;
|
|
6
6
|
readonly artifactStore: ArtifactStore;
|
|
7
7
|
readonly spaceId: string;
|
|
8
8
|
readonly installationId: string;
|
|
9
9
|
}
|
|
10
|
+
export declare const HOME_GRAPH_PAGE_POLICY_VERSION = "homegraph-pages-v7";
|
|
10
11
|
export declare function generateAutomaticHomeGraphPages(context: HomeGraphPageContext & {
|
|
11
12
|
readonly input: HomeGraphSnapshotInput;
|
|
12
13
|
}): Promise<HomeGraphGeneratedPagesSummary>;
|
|
@@ -26,5 +27,4 @@ export declare function generateHomeGraphPacket(context: HomeGraphPageContext &
|
|
|
26
27
|
}): Promise<HomeGraphProjectionResult & {
|
|
27
28
|
readonly artifactCreated: boolean;
|
|
28
29
|
}>;
|
|
29
|
-
export {};
|
|
30
30
|
//# sourceMappingURL=generated-pages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-pages.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/knowledge/home-graph/generated-pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"generated-pages.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/knowledge/home-graph/generated-pages.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAK9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAsClD,OAAO,KAAK,EACV,6BAA6B,EAC7B,8BAA8B,EAC9B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IACtC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED,eAAO,MAAM,8BAA8B,uBAAuB,CAAC;AAEnE,wBAAsB,+BAA+B,CACnD,OAAO,EAAE,oBAAoB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,sBAAsB,CAAA;CAAE,GACzE,OAAO,CAAC,8BAA8B,CAAC,CAEzC;AAED,wBAAsB,8BAA8B,CAClD,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,8BAA8B,CAAC,CAEzC;AA2ED,wBAAsB,8BAA8B,CAClD,OAAO,EAAE,oBAAoB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAA;CAAE,GAC3E,OAAO,CAAC,6BAA6B,GAAG;IAAE,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAAE,CAAC,CA6EhF;AAED,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,oBAAoB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAA;CAAE,GAC3E,OAAO,CAAC,yBAAyB,GAAG;IAAE,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAAE,CAAC,CAsC5E;AAED,wBAAsB,uBAAuB,CAC3C,OAAO,EAAE,oBAAoB,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,wBAAwB,CAAA;CAAE,GAC3E,OAAO,CAAC,yBAAyB,GAAG;IAAE,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAA;CAAE,CAAC,CAyB5E"}
|
|
@@ -2,8 +2,9 @@ import { materializeGeneratedKnowledgeProjection, } from '../generated-projectio
|
|
|
2
2
|
import { HOME_GRAPH_CONNECTOR_ID, buildHomeGraphMetadata, edgeIsActive, homeGraphNodeId, homeGraphSourceId, isGeneratedPageSource, namespacedCanonicalUri, readRecord, uniqueStrings, } from './helpers.js';
|
|
3
3
|
import { findHomeAssistantNode, missingDevicePassportFields, readHomeGraphState, renderHomeGraphState, safeHomeGraphFilename, sourcesLinkedToNode, } from './state.js';
|
|
4
4
|
import { issuesForScope, renderDevicePassportPage, renderPacketPage, renderRoomPage, } from './rendering.js';
|
|
5
|
-
import { hasConcreteFeatureSignal, isLowValueFeatureOrSpecText, isUsefulHomeGraphPageFact, } from '../semantic/fact-quality.js';
|
|
5
|
+
import { hasConcreteFeatureSignal, isLowValueFeatureOrSpecText, isUsefulHomeGraphSourceBackedNote, isUsefulHomeGraphPageFact, } from '../semantic/fact-quality.js';
|
|
6
6
|
import { normalizeWhitespace, sourceSemanticText } from '../semantic/utils.js';
|
|
7
|
+
export const HOME_GRAPH_PAGE_POLICY_VERSION = 'homegraph-pages-v7';
|
|
7
8
|
export async function generateAutomaticHomeGraphPages(context) {
|
|
8
9
|
return generateHomeGraphPagesForCurrentState(context, context.input.pageAutomation ?? {});
|
|
9
10
|
}
|
|
@@ -227,6 +228,7 @@ async function materializeGeneratedMarkdown(input) {
|
|
|
227
228
|
homeGraphGeneratedPage: true,
|
|
228
229
|
projectionKind: input.projectionKind,
|
|
229
230
|
generatedAt,
|
|
231
|
+
pagePolicyVersion: HOME_GRAPH_PAGE_POLICY_VERSION,
|
|
230
232
|
pageEditable: true,
|
|
231
233
|
regeneration,
|
|
232
234
|
};
|
|
@@ -306,6 +308,7 @@ function extractSourceBackedNotes(text) {
|
|
|
306
308
|
.map((part) => normalizeWhitespace(part.replace(/^[-*•]\s*/, '')))
|
|
307
309
|
.filter((part) => part.length >= 24 && part.length <= 420)
|
|
308
310
|
.filter((part) => hasConcreteFeatureSignal(part))
|
|
311
|
+
.filter((part) => isUsefulHomeGraphSourceBackedNote(part))
|
|
309
312
|
.filter((part) => !isLowValueFeatureOrSpecText(part));
|
|
310
313
|
}
|
|
311
314
|
function limitRecords(records, limit) {
|
|
@@ -1,12 +1,26 @@
|
|
|
1
1
|
import type { ArtifactStore } from '../../artifacts/index.js';
|
|
2
2
|
import type { ArtifactDescriptor } from '../../artifacts/types.js';
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
3
|
+
import type { KnowledgeStore } from '../store.js';
|
|
4
|
+
import type { KnowledgeExtractionRecord, KnowledgeIssueRecord, KnowledgeSourceRecord } from '../types.js';
|
|
5
|
+
import type { KnowledgeSemanticService } from '../semantic/index.js';
|
|
6
|
+
import type { HomeGraphAutoLinkResult } from './auto-link.js';
|
|
7
|
+
import type { HomeGraphReindexInput, HomeGraphReindexResult } from './types.js';
|
|
8
|
+
export interface HomeGraphReindexContext {
|
|
9
|
+
readonly store: KnowledgeStore;
|
|
10
|
+
readonly artifactStore: ArtifactStore;
|
|
11
|
+
readonly semanticService?: KnowledgeSemanticService;
|
|
12
|
+
readonly extract: (source: KnowledgeSourceRecord, artifact: ArtifactDescriptor, spaceId: string, installationId: string) => Promise<KnowledgeExtractionRecord | undefined>;
|
|
13
|
+
readonly autoLinkExistingSources: (spaceId: string, installationId: string) => Promise<readonly HomeGraphAutoLinkResult[]>;
|
|
14
|
+
readonly refreshQualityIssues: (spaceId: string, installationId: string) => Promise<readonly KnowledgeIssueRecord[]>;
|
|
15
|
+
}
|
|
16
|
+
export declare function runHomeGraphReindex(context: HomeGraphReindexContext, input?: HomeGraphReindexInput): Promise<HomeGraphReindexResult>;
|
|
5
17
|
export declare function reindexHomeGraphSources(input: {
|
|
6
18
|
readonly spaceId: string;
|
|
7
19
|
readonly sources: readonly KnowledgeSourceRecord[];
|
|
8
20
|
readonly extractionBySourceId: ReadonlyMap<string, KnowledgeExtractionRecord>;
|
|
9
21
|
readonly artifactStore: ArtifactStore;
|
|
10
22
|
readonly extract: (source: KnowledgeSourceRecord, artifact: ArtifactDescriptor) => Promise<KnowledgeExtractionRecord | undefined>;
|
|
23
|
+
readonly limit?: number;
|
|
24
|
+
readonly maxRunMs?: number;
|
|
11
25
|
}): Promise<HomeGraphReindexResult>;
|
|
12
26
|
//# sourceMappingURL=reindex.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reindex.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/knowledge/home-graph/reindex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"reindex.d.ts","sourceRoot":"","sources":["../../../../../src/_internal/platform/knowledge/home-graph/reindex.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,a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