@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/openapi.yaml CHANGED
@@ -24,8 +24,6 @@ tags:
24
24
  description: Reusable agent skills.
25
25
  - name: models
26
26
  description: Available AI models and their metadata.
27
- - name: rag
28
- description: Retrieval-augmented generation and document indexing.
29
27
  - name: sessions
30
28
  description: Conversation session management.
31
29
  - name: podcast
@@ -273,6 +271,16 @@ paths:
273
271
  required: false
274
272
  schema:
275
273
  type: number
274
+ - name: include
275
+ in: query
276
+ required: false
277
+ schema:
278
+ type: array
279
+ items:
280
+ type: string
281
+ enum:
282
+ - temporary
283
+ - derived
276
284
  - name: collectionId
277
285
  in: query
278
286
  required: false
@@ -800,39 +808,6 @@ paths:
800
808
  description: Unauthorized
801
809
  404:
802
810
  description: Not found
803
- /admin/collection/{collectionId}/ai/configureAssistant:
804
- post:
805
- tags:
806
- - rag
807
- summary: Configure AI assistant behavior
808
- operationId: rag_configureAssistant
809
- security:
810
- - bearerAuth: []
811
- parameters:
812
- - name: collectionId
813
- in: path
814
- required: true
815
- schema:
816
- type: string
817
- responses:
818
- 200:
819
- description: Success
820
- content:
821
- application/json:
822
- schema:
823
- $ref: "#/components/schemas/ConfigureAssistantResponse"
824
- 400:
825
- description: Bad request
826
- 401:
827
- description: Unauthorized
828
- 404:
829
- description: Not found
830
- requestBody:
831
- required: true
832
- content:
833
- application/json:
834
- schema:
835
- $ref: "#/components/schemas/ConfigureAssistantRequest"
836
811
  /admin/collection/{collectionId}/ai/createCache:
837
812
  post:
838
813
  tags:
@@ -926,39 +901,6 @@ paths:
926
901
  application/json:
927
902
  schema:
928
903
  $ref: "#/components/schemas/GeneratePodcastRequest"
929
- /admin/collection/{collectionId}/ai/indexDocument:
930
- post:
931
- tags:
932
- - rag
933
- summary: Index a document for RAG
934
- operationId: rag_indexDocument
935
- security:
936
- - bearerAuth: []
937
- parameters:
938
- - name: collectionId
939
- in: path
940
- required: true
941
- schema:
942
- type: string
943
- responses:
944
- 200:
945
- description: Success
946
- content:
947
- application/json:
948
- schema:
949
- $ref: "#/components/schemas/IndexDocumentResponse"
950
- 400:
951
- description: Bad request
952
- 401:
953
- description: Unauthorized
954
- 404:
955
- description: Not found
956
- requestBody:
957
- required: true
958
- content:
959
- application/json:
960
- schema:
961
- $ref: "#/components/schemas/IndexDocumentRequest"
962
904
  /admin/collection/{collectionId}/ai/models:
963
905
  get:
964
906
  tags:
@@ -11740,38 +11682,6 @@ paths:
11740
11682
  application/json:
11741
11683
  schema:
11742
11684
  $ref: "#/components/schemas/PublicAgentRunRequest"
11743
- /public/collection/{collectionId}/ai/chat:
11744
- post:
11745
- tags:
11746
- - publicClient
11747
- summary: Chat with product assistant (RAG)
11748
- operationId: publicClient_chat
11749
- security: []
11750
- parameters:
11751
- - name: collectionId
11752
- in: path
11753
- required: true
11754
- schema:
11755
- type: string
11756
- responses:
11757
- 200:
11758
- description: Success
11759
- content:
11760
- application/json:
11761
- schema:
11762
- $ref: "#/components/schemas/PublicChatResponse"
11763
- 400:
11764
- description: Bad request
11765
- 401:
11766
- description: Unauthorized
11767
- 404:
11768
- description: Not found
11769
- requestBody:
11770
- required: true
11771
- content:
11772
- application/json:
11773
- schema:
11774
- $ref: "#/components/schemas/PublicChatRequest"
11775
11685
  /public/collection/{collectionId}/ai/rate-limit/{userId}:
11776
11686
  get:
11777
11687
  tags:
@@ -18309,209 +18219,6 @@ components:
18309
18219
  required:
18310
18220
  - object
18311
18221
  - data
18312
- DocumentChunk:
18313
- type: object
18314
- properties:
18315
- text:
18316
- type: string
18317
- embedding:
18318
- type: array
18319
- items:
18320
- type: number
18321
- metadata:
18322
- type: object
18323
- additionalProperties: true
18324
- chunkIndex:
18325
- type: number
18326
- documentId:
18327
- type: string
18328
- required:
18329
- - text
18330
- - embedding
18331
- - metadata
18332
- - chunkIndex
18333
- - documentId
18334
- IndexDocumentRequest:
18335
- type: object
18336
- properties:
18337
- productId:
18338
- type: string
18339
- text:
18340
- type: string
18341
- documentUrl:
18342
- type: string
18343
- metadata:
18344
- type: object
18345
- additionalProperties: true
18346
- chunkSize:
18347
- type: number
18348
- overlap:
18349
- type: number
18350
- provider:
18351
- type: string
18352
- enum:
18353
- - openai
18354
- - gemini
18355
- required:
18356
- - productId
18357
- IndexDocumentResponse:
18358
- type: object
18359
- properties:
18360
- success:
18361
- type: boolean
18362
- productId:
18363
- type: string
18364
- documentId:
18365
- type: string
18366
- chunks:
18367
- type: number
18368
- metadata:
18369
- type: object
18370
- additionalProperties: true
18371
- textLength:
18372
- type: number
18373
- chunkSize:
18374
- type: number
18375
- overlap:
18376
- type: number
18377
- embeddingDimensions:
18378
- type: number
18379
- sample:
18380
- type: object
18381
- additionalProperties: true
18382
- text:
18383
- type: string
18384
- chunkIndex:
18385
- type: number
18386
- required:
18387
- - success
18388
- - productId
18389
- - documentId
18390
- - chunks
18391
- - metadata
18392
- - textLength
18393
- - chunkSize
18394
- - overlap
18395
- - embeddingDimensions
18396
- - text
18397
- - chunkIndex
18398
- ConfigureAssistantRequest:
18399
- type: object
18400
- properties:
18401
- productId:
18402
- type: string
18403
- systemPrompt:
18404
- type: string
18405
- model:
18406
- type: string
18407
- maxTokensPerResponse:
18408
- type: number
18409
- temperature:
18410
- type: number
18411
- rateLimitPerUser:
18412
- type: number
18413
- allowedTopics:
18414
- type: array
18415
- items:
18416
- type: string
18417
- customInstructions:
18418
- type: object
18419
- additionalProperties: true
18420
- tone:
18421
- type: string
18422
- additionalRules:
18423
- type: string
18424
- required:
18425
- - productId
18426
- ConfigureAssistantResponse:
18427
- type: object
18428
- properties:
18429
- success:
18430
- type: boolean
18431
- configuration:
18432
- type: object
18433
- additionalProperties: true
18434
- productId:
18435
- type: string
18436
- systemPrompt:
18437
- type: string
18438
- model:
18439
- type: string
18440
- maxTokensPerResponse:
18441
- type: number
18442
- temperature:
18443
- type: number
18444
- rateLimitPerUser:
18445
- type: number
18446
- allowedTopics:
18447
- type: array
18448
- items:
18449
- type: string
18450
- customInstructions:
18451
- type: object
18452
- additionalProperties: true
18453
- updatedAt:
18454
- type: string
18455
- required:
18456
- - success
18457
- - configuration
18458
- - productId
18459
- - systemPrompt
18460
- - model
18461
- - maxTokensPerResponse
18462
- - temperature
18463
- - rateLimitPerUser
18464
- - allowedTopics
18465
- - updatedAt
18466
- PublicChatRequest:
18467
- type: object
18468
- properties:
18469
- productId:
18470
- type: string
18471
- userId:
18472
- type: string
18473
- message:
18474
- type: string
18475
- sessionId:
18476
- type: string
18477
- stream:
18478
- type: boolean
18479
- required:
18480
- - productId
18481
- - userId
18482
- - message
18483
- PublicChatResponse:
18484
- type: object
18485
- properties:
18486
- message:
18487
- type: string
18488
- sessionId:
18489
- type: string
18490
- usage:
18491
- type: object
18492
- additionalProperties: true
18493
- prompt_tokens:
18494
- type: number
18495
- completion_tokens:
18496
- type: number
18497
- total_tokens:
18498
- type: number
18499
- context:
18500
- type: object
18501
- additionalProperties: true
18502
- chunksUsed:
18503
- type: number
18504
- topSimilarity:
18505
- type: number
18506
- required:
18507
- - message
18508
- - sessionId
18509
- - usage
18510
- - prompt_tokens
18511
- - completion_tokens
18512
- - total_tokens
18513
- - chunksUsed
18514
- - topSimilarity
18515
18222
  Session:
18516
18223
  type: object
18517
18224
  properties:
@@ -19762,6 +19469,14 @@ components:
19762
19469
  - HEAD
19763
19470
  required:
19764
19471
  - url
19472
+ KnowledgeSearchArgs:
19473
+ type: object
19474
+ properties:
19475
+ query:
19476
+ type: object
19477
+ additionalProperties: true
19478
+ required:
19479
+ - query
19765
19480
  TranslateArgs:
19766
19481
  type: object
19767
19482
  properties:
@@ -19825,6 +19540,8 @@ components:
19825
19540
  $ref: "#/components/schemas/HttpRequestArgs"
19826
19541
  translate:
19827
19542
  $ref: "#/components/schemas/TranslateArgs"
19543
+ knowledge.search:
19544
+ $ref: "#/components/schemas/KnowledgeSearchArgs"
19828
19545
  required:
19829
19546
  - web.fetchPage
19830
19547
  - web.extractSchema
@@ -19852,6 +19569,7 @@ components:
19852
19569
  - pdf.printReady
19853
19570
  - http.request
19854
19571
  - translate
19572
+ - knowledge.search
19855
19573
  WebSearchResultItem:
19856
19574
  type: object
19857
19575
  properties:
@@ -20283,6 +20001,7 @@ components:
20283
20001
  - "media:image"
20284
20002
  - "media:pdf"
20285
20003
  - "net:http"
20004
+ - "knowledge:read"
20286
20005
  AiToolName:
20287
20006
  type: string
20288
20007
  enum:
@@ -20312,6 +20031,7 @@ components:
20312
20031
  - pdf.printReady
20313
20032
  - http.request
20314
20033
  - translate
20034
+ - knowledge.search
20315
20035
  PdfColour:
20316
20036
  type: object
20317
20037
  additionalProperties: true
@@ -24226,6 +23946,26 @@ components:
24226
23946
  type: string
24227
23947
  uploaderIp:
24228
23948
  type: string
23949
+ retention:
23950
+ type: string
23951
+ enum:
23952
+ - permanent
23953
+ - temporary
23954
+ expiresAt:
23955
+ type: string
23956
+ origin:
23957
+ type: string
23958
+ enum:
23959
+ - upload
23960
+ - fetched
23961
+ - derived
23962
+ - generated
23963
+ sourceKey:
23964
+ type: string
23965
+ derivedFromId:
23966
+ type: string
23967
+ variant:
23968
+ type: string
24229
23969
  status:
24230
23970
  type: string
24231
23971
  enum:
@@ -24378,6 +24118,13 @@ components:
24378
24118
  type: number
24379
24119
  offset:
24380
24120
  type: number
24121
+ include:
24122
+ type: array
24123
+ items:
24124
+ type: string
24125
+ enum:
24126
+ - temporary
24127
+ - derived
24381
24128
  required:
24382
24129
  - collectionId
24383
24130
  AdminListAssetsResponse:
@@ -30603,6 +30350,135 @@ components:
30603
30350
  type: boolean
30604
30351
  FacetValueDefinition:
30605
30352
  $ref: "#/components/schemas/FacetValue"
30353
+ PutFileRequest:
30354
+ type: object
30355
+ properties:
30356
+ name:
30357
+ type: string
30358
+ text:
30359
+ type: string
30360
+ base64:
30361
+ type: string
30362
+ json: {}
30363
+ contentType:
30364
+ type: string
30365
+ ttl:
30366
+ $ref: "#/components/schemas/FileTtl"
30367
+ appId:
30368
+ type: string
30369
+ required:
30370
+ - name
30371
+ FetchFileRequest:
30372
+ type: object
30373
+ properties:
30374
+ url:
30375
+ type: string
30376
+ ttl:
30377
+ $ref: "#/components/schemas/FileTtl"
30378
+ maxAge:
30379
+ $ref: "#/components/schemas/FileTtl"
30380
+ force:
30381
+ type: boolean
30382
+ appId:
30383
+ type: string
30384
+ required:
30385
+ - url
30386
+ FetchedFile:
30387
+ type: object
30388
+ properties:
30389
+ cached:
30390
+ type: boolean
30391
+ unchanged:
30392
+ type: boolean
30393
+ required:
30394
+ - cached
30395
+ ListFilesQuery:
30396
+ type: object
30397
+ properties:
30398
+ origin:
30399
+ type: object
30400
+ additionalProperties: true
30401
+ retention:
30402
+ type: object
30403
+ additionalProperties: true
30404
+ appId:
30405
+ type: string
30406
+ derivedFromId:
30407
+ type: string
30408
+ limit:
30409
+ type: number
30410
+ ExtractFileRequest:
30411
+ type: object
30412
+ properties:
30413
+ variant:
30414
+ $ref: "#/components/schemas/FileExtractVariant"
30415
+ schema:
30416
+ type: object
30417
+ additionalProperties: true
30418
+ prompt:
30419
+ type: string
30420
+ force:
30421
+ type: boolean
30422
+ required:
30423
+ - variant
30424
+ ExtractFileResponse:
30425
+ type: object
30426
+ properties:
30427
+ ok:
30428
+ type: object
30429
+ additionalProperties: true
30430
+ file:
30431
+ $ref: "#/components/schemas/FileRecord"
30432
+ text:
30433
+ type: string
30434
+ data: {}
30435
+ cached:
30436
+ type: boolean
30437
+ required:
30438
+ - ok
30439
+ - file
30440
+ - cached
30441
+ ReadFileResponse:
30442
+ type: object
30443
+ properties:
30444
+ ok:
30445
+ type: object
30446
+ additionalProperties: true
30447
+ text:
30448
+ type: string
30449
+ base64:
30450
+ type: string
30451
+ contentType:
30452
+ type: string
30453
+ size:
30454
+ type: number
30455
+ required:
30456
+ - ok
30457
+ - contentType
30458
+ - size
30459
+ FileLinkResponse:
30460
+ type: object
30461
+ properties:
30462
+ ok:
30463
+ type: object
30464
+ additionalProperties: true
30465
+ url:
30466
+ type: string
30467
+ expiresAt:
30468
+ type: string
30469
+ permanent:
30470
+ type: boolean
30471
+ required:
30472
+ - ok
30473
+ - url
30474
+ FileRecord:
30475
+ $ref: "#/components/schemas/Asset"
30476
+ FileTtl:
30477
+ type: object
30478
+ additionalProperties: true
30479
+ FileExtractVariant:
30480
+ type: object
30481
+ additionalProperties: true
30606
30482
  AppDataField:
30607
30483
  type: object
30608
30484
  properties:
@@ -33238,6 +33114,233 @@ components:
33238
33114
  type: array
33239
33115
  items:
33240
33116
  type: string
33117
+ KnowledgeSet:
33118
+ type: object
33119
+ properties:
33120
+ id:
33121
+ type: string
33122
+ key:
33123
+ type: string
33124
+ name:
33125
+ type: string
33126
+ description:
33127
+ type: string
33128
+ visibility:
33129
+ $ref: "#/components/schemas/KnowledgeVisibility"
33130
+ ownerAppId:
33131
+ type: string
33132
+ embedModel:
33133
+ type: string
33134
+ createdAt:
33135
+ type: string
33136
+ updatedAt:
33137
+ type: string
33138
+ sourceCount:
33139
+ type: number
33140
+ passageCount:
33141
+ type: number
33142
+ required:
33143
+ - id
33144
+ - key
33145
+ - name
33146
+ - description
33147
+ - visibility
33148
+ - ownerAppId
33149
+ - embedModel
33150
+ - createdAt
33151
+ - updatedAt
33152
+ SaveKnowledgeSetRequest:
33153
+ type: object
33154
+ properties:
33155
+ key:
33156
+ type: string
33157
+ name:
33158
+ type: string
33159
+ description:
33160
+ type: string
33161
+ visibility:
33162
+ $ref: "#/components/schemas/KnowledgeVisibility"
33163
+ required:
33164
+ - key
33165
+ - name
33166
+ UpdateKnowledgeSetRequest:
33167
+ type: object
33168
+ properties:
33169
+ name:
33170
+ type: string
33171
+ description:
33172
+ type: string
33173
+ visibility:
33174
+ $ref: "#/components/schemas/KnowledgeVisibility"
33175
+ KnowledgeSource:
33176
+ type: object
33177
+ properties:
33178
+ id:
33179
+ type: string
33180
+ setId:
33181
+ type: string
33182
+ kind:
33183
+ $ref: "#/components/schemas/KnowledgeSourceKind"
33184
+ name:
33185
+ type: string
33186
+ config:
33187
+ type: object
33188
+ additionalProperties: true
33189
+ refreshHours:
33190
+ type: number
33191
+ status:
33192
+ type: string
33193
+ enum:
33194
+ - pending
33195
+ - indexing
33196
+ - ready
33197
+ - failed
33198
+ error:
33199
+ type: string
33200
+ passageCount:
33201
+ type: number
33202
+ lastIndexedAt:
33203
+ type: string
33204
+ createdAt:
33205
+ type: string
33206
+ updatedAt:
33207
+ type: string
33208
+ required:
33209
+ - id
33210
+ - setId
33211
+ - kind
33212
+ - name
33213
+ - config
33214
+ - refreshHours
33215
+ - status
33216
+ - error
33217
+ - passageCount
33218
+ - lastIndexedAt
33219
+ - createdAt
33220
+ - updatedAt
33221
+ AddKnowledgeSourceRequest:
33222
+ type: object
33223
+ properties:
33224
+ kind:
33225
+ $ref: "#/components/schemas/KnowledgeSourceKind"
33226
+ config:
33227
+ type: object
33228
+ additionalProperties: true
33229
+ name:
33230
+ type: string
33231
+ refreshHours:
33232
+ type: number
33233
+ required:
33234
+ - kind
33235
+ UpdateKnowledgeSourceRequest:
33236
+ type: object
33237
+ properties:
33238
+ config:
33239
+ type: object
33240
+ additionalProperties: true
33241
+ name:
33242
+ type: string
33243
+ refreshHours:
33244
+ type: number
33245
+ KnowledgeDocument:
33246
+ type: object
33247
+ properties:
33248
+ ref:
33249
+ type: string
33250
+ title:
33251
+ type: string
33252
+ body:
33253
+ type: string
33254
+ url:
33255
+ type: string
33256
+ meta:
33257
+ type: object
33258
+ additionalProperties: true
33259
+ required:
33260
+ - ref
33261
+ - title
33262
+ - body
33263
+ KnowledgeSearchRequest:
33264
+ type: object
33265
+ properties:
33266
+ query:
33267
+ type: string
33268
+ sets:
33269
+ type: array
33270
+ items:
33271
+ type: string
33272
+ filters:
33273
+ type: object
33274
+ additionalProperties: true
33275
+ k:
33276
+ type: number
33277
+ required:
33278
+ - query
33279
+ KnowledgeSearchResult:
33280
+ type: object
33281
+ properties:
33282
+ id:
33283
+ type: string
33284
+ title:
33285
+ type: string
33286
+ heading:
33287
+ type: string
33288
+ url:
33289
+ type: string
33290
+ snippet:
33291
+ type: string
33292
+ text:
33293
+ type: string
33294
+ score:
33295
+ type: number
33296
+ set:
33297
+ type: object
33298
+ additionalProperties: true
33299
+ sourceId:
33300
+ type: string
33301
+ meta:
33302
+ type: object
33303
+ additionalProperties: true
33304
+ required:
33305
+ - id
33306
+ - title
33307
+ - heading
33308
+ - url
33309
+ - snippet
33310
+ - text
33311
+ - score
33312
+ - set
33313
+ - sourceId
33314
+ - meta
33315
+ KnowledgeSearchResponse:
33316
+ type: object
33317
+ properties:
33318
+ query:
33319
+ type: string
33320
+ results:
33321
+ type: array
33322
+ items:
33323
+ $ref: "#/components/schemas/KnowledgeSearchResult"
33324
+ mode:
33325
+ type: string
33326
+ enum:
33327
+ - hybrid
33328
+ - keywords
33329
+ - none
33330
+ required:
33331
+ - query
33332
+ - results
33333
+ - mode
33334
+ KnowledgeVisibility:
33335
+ type: string
33336
+ enum:
33337
+ - public
33338
+ - customer
33339
+ - staff
33340
+ KnowledgeSourceKind:
33341
+ type: string
33342
+ enum:
33343
+ - markdown_feed
33241
33344
  Location:
33242
33345
  type: object
33243
33346
  properties: