@proveanything/smartlinks 2.1.38 → 2.1.40
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 +1 -0
- package/dist/adminViews.d.ts +1 -1
- package/dist/adminViews.js +3 -1
- package/dist/ai-tools.d.ts +2 -1
- package/dist/ai-tools.js +3 -0
- package/dist/api/ai.d.ts +2 -21
- package/dist/api/ai.js +0 -35
- package/dist/api/asset.js +2 -0
- package/dist/api/files.d.ts +69 -0
- package/dist/api/files.js +81 -0
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.js +2 -0
- package/dist/api/knowledge.d.ts +64 -0
- package/dist/api/knowledge.js +97 -0
- package/dist/docs/API_SUMMARY.md +301 -125
- package/dist/docs/admin-views.md +257 -255
- package/dist/docs/ai.md +239 -352
- package/dist/docs/assets.md +4 -0
- package/dist/docs/files.md +69 -0
- package/dist/docs/knowledge.md +102 -0
- package/dist/docs/overview.md +482 -481
- package/dist/docs/server-functions.md +1219 -1197
- package/dist/openapi.yaml +406 -303
- package/dist/types/ai.d.ts +9 -91
- package/dist/types/asset.d.ts +17 -0
- package/dist/types/files.d.ts +78 -0
- package/dist/types/files.js +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/dist/types/knowledge.d.ts +120 -0
- package/dist/types/knowledge.js +2 -0
- package/docs/API_SUMMARY.md +301 -125
- package/docs/admin-views.md +257 -255
- package/docs/ai.md +239 -352
- package/docs/assets.md +4 -0
- package/docs/files.md +69 -0
- package/docs/knowledge.md +102 -0
- package/docs/overview.md +482 -481
- package/docs/server-functions.md +1219 -1197
- package/openapi.yaml +406 -303
- package/package.json +1 -1
package/dist/docs/API_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smartlinks API Summary
|
|
2
2
|
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.40 | Generated: 2026-11-22T09:29:50.349Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -150,11 +150,13 @@ The Smartlinks SDK is organized into the following namespaces:
|
|
|
150
150
|
- **containers** - Functions for containers operations
|
|
151
151
|
- **errors** - Functions for errors operations
|
|
152
152
|
- **facets** - Functions for facets operations
|
|
153
|
+
- **files** - Functions for files operations
|
|
153
154
|
- **functions** - Functions for functions operations
|
|
154
155
|
- **http** - Functions for http operations
|
|
155
156
|
- **integrations** - Functions for integrations operations
|
|
156
157
|
- **jobs** - Functions for jobs operations
|
|
157
158
|
- **journeysAnalytics** - Functions for journeysAnalytics operations
|
|
159
|
+
- **knowledge** - Functions for knowledge operations
|
|
158
160
|
- **location** - Functions for location operations
|
|
159
161
|
- **lots** - Functions for lots operations
|
|
160
162
|
- **navigation** - Functions for navigation operations
|
|
@@ -920,116 +922,6 @@ interface AIModelListResponse {
|
|
|
920
922
|
}
|
|
921
923
|
```
|
|
922
924
|
|
|
923
|
-
**DocumentChunk** (interface)
|
|
924
|
-
```typescript
|
|
925
|
-
interface DocumentChunk {
|
|
926
|
-
text: string
|
|
927
|
-
embedding: number[]
|
|
928
|
-
metadata: {
|
|
929
|
-
chunkIndex: number
|
|
930
|
-
documentId: string
|
|
931
|
-
[key: string]: any
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
```
|
|
935
|
-
|
|
936
|
-
**IndexDocumentRequest** (interface)
|
|
937
|
-
```typescript
|
|
938
|
-
interface IndexDocumentRequest {
|
|
939
|
-
productId: string
|
|
940
|
-
text?: string
|
|
941
|
-
documentUrl?: string
|
|
942
|
-
metadata?: Record<string, any>
|
|
943
|
-
chunkSize?: number
|
|
944
|
-
overlap?: number
|
|
945
|
-
provider?: 'openai' | 'gemini'
|
|
946
|
-
}
|
|
947
|
-
```
|
|
948
|
-
|
|
949
|
-
**IndexDocumentResponse** (interface)
|
|
950
|
-
```typescript
|
|
951
|
-
interface IndexDocumentResponse {
|
|
952
|
-
success: boolean
|
|
953
|
-
productId: string
|
|
954
|
-
documentId: string
|
|
955
|
-
chunks: number
|
|
956
|
-
metadata: {
|
|
957
|
-
textLength: number
|
|
958
|
-
chunkSize: number
|
|
959
|
-
overlap: number
|
|
960
|
-
embeddingDimensions: number
|
|
961
|
-
}
|
|
962
|
-
sample?: {
|
|
963
|
-
text: string
|
|
964
|
-
chunkIndex: number
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
```
|
|
968
|
-
|
|
969
|
-
**ConfigureAssistantRequest** (interface)
|
|
970
|
-
```typescript
|
|
971
|
-
interface ConfigureAssistantRequest {
|
|
972
|
-
productId: string
|
|
973
|
-
systemPrompt?: string
|
|
974
|
-
model?: string
|
|
975
|
-
maxTokensPerResponse?: number
|
|
976
|
-
temperature?: number
|
|
977
|
-
rateLimitPerUser?: number
|
|
978
|
-
allowedTopics?: string[]
|
|
979
|
-
customInstructions?: {
|
|
980
|
-
tone?: string
|
|
981
|
-
additionalRules?: string
|
|
982
|
-
[key: string]: any
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
```
|
|
986
|
-
|
|
987
|
-
**ConfigureAssistantResponse** (interface)
|
|
988
|
-
```typescript
|
|
989
|
-
interface ConfigureAssistantResponse {
|
|
990
|
-
success: boolean
|
|
991
|
-
configuration: {
|
|
992
|
-
productId: string
|
|
993
|
-
systemPrompt: string
|
|
994
|
-
model: string
|
|
995
|
-
maxTokensPerResponse: number
|
|
996
|
-
temperature: number
|
|
997
|
-
rateLimitPerUser: number
|
|
998
|
-
allowedTopics: string[]
|
|
999
|
-
customInstructions?: Record<string, any>
|
|
1000
|
-
updatedAt: string
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
```
|
|
1004
|
-
|
|
1005
|
-
**PublicChatRequest** (interface)
|
|
1006
|
-
```typescript
|
|
1007
|
-
interface PublicChatRequest {
|
|
1008
|
-
productId: string
|
|
1009
|
-
userId: string
|
|
1010
|
-
message: string
|
|
1011
|
-
sessionId?: string
|
|
1012
|
-
stream?: boolean
|
|
1013
|
-
}
|
|
1014
|
-
```
|
|
1015
|
-
|
|
1016
|
-
**PublicChatResponse** (interface)
|
|
1017
|
-
```typescript
|
|
1018
|
-
interface PublicChatResponse {
|
|
1019
|
-
message: string
|
|
1020
|
-
sessionId: string
|
|
1021
|
-
usage: {
|
|
1022
|
-
prompt_tokens: number
|
|
1023
|
-
completion_tokens: number
|
|
1024
|
-
total_tokens: number
|
|
1025
|
-
}
|
|
1026
|
-
context?: {
|
|
1027
|
-
chunksUsed: number
|
|
1028
|
-
topSimilarity: number
|
|
1029
|
-
}
|
|
1030
|
-
}
|
|
1031
|
-
```
|
|
1032
|
-
|
|
1033
925
|
**Session** (interface)
|
|
1034
926
|
```typescript
|
|
1035
927
|
interface Session {
|
|
@@ -1814,6 +1706,13 @@ interface HttpRequestArgs {
|
|
|
1814
1706
|
}
|
|
1815
1707
|
```
|
|
1816
1708
|
|
|
1709
|
+
**KnowledgeSearchArgs** (interface)
|
|
1710
|
+
```typescript
|
|
1711
|
+
interface KnowledgeSearchArgs {
|
|
1712
|
+
query: string; sets?: string[]; filters?: Record<string, any>; k?: number
|
|
1713
|
+
}
|
|
1714
|
+
```
|
|
1715
|
+
|
|
1817
1716
|
**TranslateArgs** (interface)
|
|
1818
1717
|
```typescript
|
|
1819
1718
|
interface TranslateArgs {
|
|
@@ -1850,6 +1749,7 @@ interface AiToolArgsMap {
|
|
|
1850
1749
|
'pdf.printReady': PdfPrintReadyArgs
|
|
1851
1750
|
'http.request': HttpRequestArgs
|
|
1852
1751
|
'translate': TranslateArgs
|
|
1752
|
+
'knowledge.search': KnowledgeSearchArgs
|
|
1853
1753
|
}
|
|
1854
1754
|
```
|
|
1855
1755
|
|
|
@@ -4210,6 +4110,12 @@ interface Asset {
|
|
|
4210
4110
|
uploaderContactId: string | null
|
|
4211
4111
|
uploadTokenId: string | null
|
|
4212
4112
|
uploaderIp: string | null
|
|
4113
|
+
retention?: 'permanent' | 'temporary'
|
|
4114
|
+
expiresAt?: string | null
|
|
4115
|
+
origin?: 'upload' | 'fetched' | 'derived' | 'generated'
|
|
4116
|
+
sourceKey?: string | null
|
|
4117
|
+
derivedFromId?: string | null
|
|
4118
|
+
variant?: string | null
|
|
4213
4119
|
status: 'active' | 'pending_review' | 'deleted'
|
|
4214
4120
|
createdAt: string
|
|
4215
4121
|
updatedAt: string
|
|
@@ -4304,6 +4210,7 @@ interface AdminListAssetsOptions {
|
|
|
4304
4210
|
order?: 'asc' | 'desc'
|
|
4305
4211
|
limit?: number
|
|
4306
4212
|
offset?: number
|
|
4213
|
+
include?: Array<'temporary' | 'derived'>
|
|
4307
4214
|
}
|
|
4308
4215
|
```
|
|
4309
4216
|
|
|
@@ -8352,6 +8259,91 @@ interface FacetValueGetParams {
|
|
|
8352
8259
|
|
|
8353
8260
|
**FacetValueDefinition** = `FacetValue`
|
|
8354
8261
|
|
|
8262
|
+
### files
|
|
8263
|
+
|
|
8264
|
+
**PutFileRequest** (interface)
|
|
8265
|
+
```typescript
|
|
8266
|
+
interface PutFileRequest {
|
|
8267
|
+
name: string
|
|
8268
|
+
text?: string
|
|
8269
|
+
base64?: string
|
|
8270
|
+
json?: unknown
|
|
8271
|
+
contentType?: string
|
|
8272
|
+
ttl?: FileTtl
|
|
8273
|
+
appId?: string
|
|
8274
|
+
}
|
|
8275
|
+
```
|
|
8276
|
+
|
|
8277
|
+
**FetchFileRequest** (interface)
|
|
8278
|
+
```typescript
|
|
8279
|
+
interface FetchFileRequest {
|
|
8280
|
+
url: string
|
|
8281
|
+
ttl?: FileTtl
|
|
8282
|
+
maxAge?: FileTtl
|
|
8283
|
+
force?: boolean
|
|
8284
|
+
appId?: string
|
|
8285
|
+
}
|
|
8286
|
+
```
|
|
8287
|
+
|
|
8288
|
+
**ListFilesQuery** (interface)
|
|
8289
|
+
```typescript
|
|
8290
|
+
interface ListFilesQuery {
|
|
8291
|
+
origin?: "upload" | "fetched" | "derived" | "generated"
|
|
8292
|
+
retention?: "temporary" | "permanent"
|
|
8293
|
+
appId?: string
|
|
8294
|
+
derivedFromId?: string
|
|
8295
|
+
limit?: number
|
|
8296
|
+
}
|
|
8297
|
+
```
|
|
8298
|
+
|
|
8299
|
+
**ExtractFileRequest** (interface)
|
|
8300
|
+
```typescript
|
|
8301
|
+
interface ExtractFileRequest {
|
|
8302
|
+
variant: FileExtractVariant
|
|
8303
|
+
schema?: Record<string, any>
|
|
8304
|
+
prompt?: string
|
|
8305
|
+
force?: boolean
|
|
8306
|
+
}
|
|
8307
|
+
```
|
|
8308
|
+
|
|
8309
|
+
**ExtractFileResponse** (interface)
|
|
8310
|
+
```typescript
|
|
8311
|
+
interface ExtractFileResponse {
|
|
8312
|
+
ok: true
|
|
8313
|
+
file: FileRecord
|
|
8314
|
+
text?: string
|
|
8315
|
+
data?: any
|
|
8316
|
+
cached: boolean
|
|
8317
|
+
}
|
|
8318
|
+
```
|
|
8319
|
+
|
|
8320
|
+
**ReadFileResponse** (interface)
|
|
8321
|
+
```typescript
|
|
8322
|
+
interface ReadFileResponse {
|
|
8323
|
+
ok: true
|
|
8324
|
+
text?: string
|
|
8325
|
+
base64?: string
|
|
8326
|
+
contentType: string | null
|
|
8327
|
+
size: number
|
|
8328
|
+
}
|
|
8329
|
+
```
|
|
8330
|
+
|
|
8331
|
+
**FileLinkResponse** (interface)
|
|
8332
|
+
```typescript
|
|
8333
|
+
interface FileLinkResponse {
|
|
8334
|
+
ok: true
|
|
8335
|
+
url: string
|
|
8336
|
+
expiresAt?: string
|
|
8337
|
+
permanent?: boolean
|
|
8338
|
+
}
|
|
8339
|
+
```
|
|
8340
|
+
|
|
8341
|
+
**FileRecord** = `Asset`
|
|
8342
|
+
|
|
8343
|
+
**FileTtl** = ``${number}h` | `${number}d` | number`
|
|
8344
|
+
|
|
8345
|
+
**FileExtractVariant** = `"text" | "markdown" | "ocr" | "json"`
|
|
8346
|
+
|
|
8355
8347
|
### headless
|
|
8356
8348
|
|
|
8357
8349
|
**AppDataField** (interface)
|
|
@@ -9806,6 +9798,131 @@ interface JourneyFunnelReportResponse {
|
|
|
9806
9798
|
|
|
9807
9799
|
**JourneyStepRecipientsResponse** = `string[]`
|
|
9808
9800
|
|
|
9801
|
+
### knowledge
|
|
9802
|
+
|
|
9803
|
+
**KnowledgeSet** (interface)
|
|
9804
|
+
```typescript
|
|
9805
|
+
interface KnowledgeSet {
|
|
9806
|
+
id: string
|
|
9807
|
+
key: string
|
|
9808
|
+
name: string
|
|
9809
|
+
description: string | null
|
|
9810
|
+
visibility: KnowledgeVisibility
|
|
9811
|
+
ownerAppId: string | null
|
|
9812
|
+
embedModel: string | null
|
|
9813
|
+
createdAt: string
|
|
9814
|
+
updatedAt: string
|
|
9815
|
+
sourceCount?: number
|
|
9816
|
+
passageCount?: number
|
|
9817
|
+
}
|
|
9818
|
+
```
|
|
9819
|
+
|
|
9820
|
+
**SaveKnowledgeSetRequest** (interface)
|
|
9821
|
+
```typescript
|
|
9822
|
+
interface SaveKnowledgeSetRequest {
|
|
9823
|
+
key: string
|
|
9824
|
+
name: string
|
|
9825
|
+
description?: string | null
|
|
9826
|
+
visibility?: KnowledgeVisibility
|
|
9827
|
+
}
|
|
9828
|
+
```
|
|
9829
|
+
|
|
9830
|
+
**UpdateKnowledgeSetRequest** (interface)
|
|
9831
|
+
```typescript
|
|
9832
|
+
interface UpdateKnowledgeSetRequest {
|
|
9833
|
+
name?: string
|
|
9834
|
+
description?: string | null
|
|
9835
|
+
visibility?: KnowledgeVisibility
|
|
9836
|
+
}
|
|
9837
|
+
```
|
|
9838
|
+
|
|
9839
|
+
**KnowledgeSource** (interface)
|
|
9840
|
+
```typescript
|
|
9841
|
+
interface KnowledgeSource {
|
|
9842
|
+
id: string
|
|
9843
|
+
setId: string
|
|
9844
|
+
kind: KnowledgeSourceKind
|
|
9845
|
+
name: string | null
|
|
9846
|
+
config: Record<string, any>
|
|
9847
|
+
refreshHours: number | null
|
|
9848
|
+
status: 'pending' | 'indexing' | 'ready' | 'failed'
|
|
9849
|
+
error: string | null
|
|
9850
|
+
passageCount: number
|
|
9851
|
+
lastIndexedAt: string | null
|
|
9852
|
+
createdAt: string
|
|
9853
|
+
updatedAt: string
|
|
9854
|
+
}
|
|
9855
|
+
```
|
|
9856
|
+
|
|
9857
|
+
**AddKnowledgeSourceRequest** (interface)
|
|
9858
|
+
```typescript
|
|
9859
|
+
interface AddKnowledgeSourceRequest {
|
|
9860
|
+
kind: KnowledgeSourceKind
|
|
9861
|
+
config?: { url?: string; [key: string]: any }
|
|
9862
|
+
name?: string
|
|
9863
|
+
refreshHours?: number | null
|
|
9864
|
+
}
|
|
9865
|
+
```
|
|
9866
|
+
|
|
9867
|
+
**UpdateKnowledgeSourceRequest** (interface)
|
|
9868
|
+
```typescript
|
|
9869
|
+
interface UpdateKnowledgeSourceRequest {
|
|
9870
|
+
config?: { url?: string; [key: string]: any }
|
|
9871
|
+
name?: string
|
|
9872
|
+
refreshHours?: number | null
|
|
9873
|
+
}
|
|
9874
|
+
```
|
|
9875
|
+
|
|
9876
|
+
**KnowledgeDocument** (interface)
|
|
9877
|
+
```typescript
|
|
9878
|
+
interface KnowledgeDocument {
|
|
9879
|
+
ref: string
|
|
9880
|
+
title: string
|
|
9881
|
+
body: string
|
|
9882
|
+
url?: string
|
|
9883
|
+
meta?: Record<string, any>
|
|
9884
|
+
}
|
|
9885
|
+
```
|
|
9886
|
+
|
|
9887
|
+
**KnowledgeSearchRequest** (interface)
|
|
9888
|
+
```typescript
|
|
9889
|
+
interface KnowledgeSearchRequest {
|
|
9890
|
+
query: string
|
|
9891
|
+
sets?: string[]
|
|
9892
|
+
filters?: Record<string, any>
|
|
9893
|
+
k?: number
|
|
9894
|
+
}
|
|
9895
|
+
```
|
|
9896
|
+
|
|
9897
|
+
**KnowledgeSearchResult** (interface)
|
|
9898
|
+
```typescript
|
|
9899
|
+
interface KnowledgeSearchResult {
|
|
9900
|
+
id: string
|
|
9901
|
+
title: string
|
|
9902
|
+
heading: string | null
|
|
9903
|
+
url: string | null
|
|
9904
|
+
snippet: string
|
|
9905
|
+
text: string
|
|
9906
|
+
score: number
|
|
9907
|
+
set: { id: string; key: string; name: string }
|
|
9908
|
+
sourceId: string
|
|
9909
|
+
meta: Record<string, any>
|
|
9910
|
+
}
|
|
9911
|
+
```
|
|
9912
|
+
|
|
9913
|
+
**KnowledgeSearchResponse** (interface)
|
|
9914
|
+
```typescript
|
|
9915
|
+
interface KnowledgeSearchResponse {
|
|
9916
|
+
query: string
|
|
9917
|
+
results: KnowledgeSearchResult[]
|
|
9918
|
+
mode: 'hybrid' | 'keywords' | 'none'
|
|
9919
|
+
}
|
|
9920
|
+
```
|
|
9921
|
+
|
|
9922
|
+
**KnowledgeVisibility** = `'public' | 'customer' | 'staff'`
|
|
9923
|
+
|
|
9924
|
+
**KnowledgeSourceKind** = ``
|
|
9925
|
+
|
|
9809
9926
|
### location
|
|
9810
9927
|
|
|
9811
9928
|
**Location** (interface)
|
|
@@ -14746,6 +14863,35 @@ Delete a crate for a collection (admin only). This performs a soft delete. ```ty
|
|
|
14746
14863
|
|
|
14747
14864
|
**publicNamespaces**(collectionId: string) → `Promise<FacetNamespaceListResponse>`
|
|
14748
14865
|
|
|
14866
|
+
### files
|
|
14867
|
+
|
|
14868
|
+
**list**(collectionId: string, query: ListFilesQuery = {}) → `Promise<`
|
|
14869
|
+
Files on this site that aren't ordinary uploads: temporary, fetched, derived or generated (admin).
|
|
14870
|
+
|
|
14871
|
+
**put**(collectionId: string, body: PutFileRequest) → `Promise<`
|
|
14872
|
+
A new file from text, base64 or JSON. Temporary (default 1 day) and private.
|
|
14873
|
+
|
|
14874
|
+
**fetch**(collectionId: string, body: FetchFileRequest) → `Promise<`
|
|
14875
|
+
A web address's contents as a file, cached by address.
|
|
14876
|
+
|
|
14877
|
+
**get**(collectionId: string, fileId: string) → `Promise<`
|
|
14878
|
+
One file. @throws `NOT_FOUND`, `EXPIRED`
|
|
14879
|
+
|
|
14880
|
+
**read**(collectionId: string, fileId: string, as: "text" | "base64" = "text") → `Promise<ReadFileResponse>`
|
|
14881
|
+
A file's contents, as text (default) or base64 (up to 25 MB).
|
|
14882
|
+
|
|
14883
|
+
**link**(collectionId: string, fileId: string, minutes?: number) → `Promise<FileLinkResponse>`
|
|
14884
|
+
A signed link to a private file (default 15 minutes), or a kept file's permanent address.
|
|
14885
|
+
|
|
14886
|
+
**extract**(collectionId: string, fileId: string, body: ExtractFileRequest) → `Promise<ExtractFileResponse>`
|
|
14887
|
+
What's in a file: `text`, `markdown`, `ocr` (images) or `json` (typed fields: give a `schema` and/or a `prompt`). Each file is read each way once; asking again returns the same result (`cached: true`).
|
|
14888
|
+
|
|
14889
|
+
**keep**(collectionId: string, fileId: string) → `Promise<`
|
|
14890
|
+
Keep a file: permanent and public, with an `assetUrl`. It then shows in asset lists like any upload.
|
|
14891
|
+
|
|
14892
|
+
**remove**(collectionId: string, fileId: string) → `Promise<`
|
|
14893
|
+
Remove a file (a kept file is deleted like any asset, and can be restored).
|
|
14894
|
+
|
|
14749
14895
|
### form
|
|
14750
14896
|
|
|
14751
14897
|
**get**(collectionId: string, formId: string, admin?: boolean) → `Promise<any>`
|
|
@@ -15037,6 +15183,50 @@ POST /admin/collection/:collectionId/journeys.analytics/:journeyId/steps/:stepId
|
|
|
15037
15183
|
body: JourneyFunnelReportRequest) → `Promise<JourneyFunnelReportResponse>`
|
|
15038
15184
|
POST /admin/collection/:collectionId/journeys.analytics/:journeyId/funnel-report Computes conversion, counts, and avg time across mapped steps in a period.
|
|
15039
15185
|
|
|
15186
|
+
### knowledge
|
|
15187
|
+
|
|
15188
|
+
**listSets**(collectionId: string) → `Promise<KnowledgeSet[]>`
|
|
15189
|
+
Every set, with its source and passage counts (admin).
|
|
15190
|
+
|
|
15191
|
+
**saveSet**(collectionId: string, body: SaveKnowledgeSetRequest) → `Promise<KnowledgeSet>`
|
|
15192
|
+
Create a set, or update the one with this key (admin).
|
|
15193
|
+
|
|
15194
|
+
**getSet**(collectionId: string, set: string) → `Promise<KnowledgeSet>`
|
|
15195
|
+
One set, by id or key (admin).
|
|
15196
|
+
|
|
15197
|
+
**updateSet**(collectionId: string, set: string, body: UpdateKnowledgeSetRequest) → `Promise<KnowledgeSet>`
|
|
15198
|
+
One set, by id or key (admin).
|
|
15199
|
+
|
|
15200
|
+
**deleteSet**(collectionId: string, set: string) → `Promise<`
|
|
15201
|
+
Delete a set with its sources and passages (admin).
|
|
15202
|
+
|
|
15203
|
+
**listSources**(collectionId: string, set: string) → `Promise<KnowledgeSource[]>`
|
|
15204
|
+
A set's sources, with their status (admin).
|
|
15205
|
+
|
|
15206
|
+
**addSource**(collectionId: string, set: string, body: AddKnowledgeSourceRequest) → `Promise<KnowledgeSource>`
|
|
15207
|
+
Add a source; feeds and pages are read in the background (admin).
|
|
15208
|
+
|
|
15209
|
+
**updateSource**(collectionId: string, sourceId: string, body: UpdateKnowledgeSourceRequest) → `Promise<KnowledgeSource>`
|
|
15210
|
+
Add a source; feeds and pages are read in the background (admin).
|
|
15211
|
+
|
|
15212
|
+
**deleteSource**(collectionId: string, sourceId: string) → `Promise<`
|
|
15213
|
+
Add a source; feeds and pages are read in the background (admin).
|
|
15214
|
+
|
|
15215
|
+
**reindex**(collectionId: string, sourceId: string, opts: { force?: boolean } = {}) → `Promise<`
|
|
15216
|
+
Read a source again now (`force` re-splits even if it hasn't changed) (admin).
|
|
15217
|
+
|
|
15218
|
+
**upsertDocuments**(collectionId: string, sourceId: string, documents: KnowledgeDocument[]) → `Promise<`
|
|
15219
|
+
Push documents into a `documents` source; the same `ref` replaces its earlier version. Up to 500 at a time (admin).
|
|
15220
|
+
|
|
15221
|
+
**removeDocuments**(collectionId: string, sourceId: string, refs: string[]) → `Promise<`
|
|
15222
|
+
Remove pushed documents by `ref` (admin).
|
|
15223
|
+
|
|
15224
|
+
**search**(collectionId: string, body: KnowledgeSearchRequest) → `Promise<KnowledgeSearchResponse>`
|
|
15225
|
+
Search every set, staff ones included (admin).
|
|
15226
|
+
|
|
15227
|
+
**publicSearch**(collectionId: string, body: KnowledgeSearchRequest) → `Promise<KnowledgeSearchResponse>`
|
|
15228
|
+
Search from a website, Portal or Hub: public sets, plus customer sets for a signed-in person.
|
|
15229
|
+
|
|
15040
15230
|
### location
|
|
15041
15231
|
|
|
15042
15232
|
**createGlobal**(params: LocationPayload) → `Promise<Location>`
|
|
@@ -15622,10 +15812,6 @@ Get the active transfer/status for a proof (owner, collection admin, or the name
|
|
|
15622
15812
|
|
|
15623
15813
|
### publicClient
|
|
15624
15814
|
|
|
15625
|
-
**chat**(collectionId: string,
|
|
15626
|
-
request: PublicChatRequest) → `Promise<PublicChatResponse>`
|
|
15627
|
-
Chat with product assistant (RAG)
|
|
15628
|
-
|
|
15629
15815
|
**agentRun**(collectionId: string,
|
|
15630
15816
|
body: PublicAgentRunRequest) → `Promise<AgentRunResult>`
|
|
15631
15817
|
Public agent loop — run the orchestration-neutral tool loop on the consumer surface. Exposes an app's PUBLIC server functions (`agent.tool:true`, `visibility:'public'`) to a consumer assistant; built-in tools are opt-in by explicit `server_tools[]` allowlist only. The caller runs as the signed-in consumer ('owner', send the authKit bearer) or anonymous ('public'). POST /public/collection/:collectionId/ai/agent/run
|
|
@@ -15665,16 +15851,6 @@ List the signed-in consumer's own ('owner') sessions — requires an authKit bea
|
|
|
15665
15851
|
**lookupShortCode**(shortId: string, code: string) → `Promise<QrShortCodeLookupResponse>`
|
|
15666
15852
|
Resolve a short code to related resource identifiers.
|
|
15667
15853
|
|
|
15668
|
-
### rag
|
|
15669
|
-
|
|
15670
|
-
**indexDocument**(collectionId: string,
|
|
15671
|
-
request: IndexDocumentRequest) → `Promise<IndexDocumentResponse>`
|
|
15672
|
-
Index a document for RAG
|
|
15673
|
-
|
|
15674
|
-
**configureAssistant**(collectionId: string,
|
|
15675
|
-
request: ConfigureAssistantRequest) → `Promise<ConfigureAssistantResponse>`
|
|
15676
|
-
Configure AI assistant behavior
|
|
15677
|
-
|
|
15678
15854
|
### rateLimit
|
|
15679
15855
|
|
|
15680
15856
|
**reset**(collectionId: string, userId: string) → `Promise<`
|