@proveanything/smartlinks 2.1.37 → 2.1.39

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
@@ -273,6 +273,16 @@ paths:
273
273
  required: false
274
274
  schema:
275
275
  type: number
276
+ - name: include
277
+ in: query
278
+ required: false
279
+ schema:
280
+ type: array
281
+ items:
282
+ type: string
283
+ enum:
284
+ - temporary
285
+ - derived
276
286
  - name: collectionId
277
287
  in: query
278
288
  required: false
@@ -24226,6 +24236,26 @@ components:
24226
24236
  type: string
24227
24237
  uploaderIp:
24228
24238
  type: string
24239
+ retention:
24240
+ type: string
24241
+ enum:
24242
+ - permanent
24243
+ - temporary
24244
+ expiresAt:
24245
+ type: string
24246
+ origin:
24247
+ type: string
24248
+ enum:
24249
+ - upload
24250
+ - fetched
24251
+ - derived
24252
+ - generated
24253
+ sourceKey:
24254
+ type: string
24255
+ derivedFromId:
24256
+ type: string
24257
+ variant:
24258
+ type: string
24229
24259
  status:
24230
24260
  type: string
24231
24261
  enum:
@@ -24378,6 +24408,13 @@ components:
24378
24408
  type: number
24379
24409
  offset:
24380
24410
  type: number
24411
+ include:
24412
+ type: array
24413
+ items:
24414
+ type: string
24415
+ enum:
24416
+ - temporary
24417
+ - derived
24381
24418
  required:
24382
24419
  - collectionId
24383
24420
  AdminListAssetsResponse:
@@ -30603,6 +30640,135 @@ components:
30603
30640
  type: boolean
30604
30641
  FacetValueDefinition:
30605
30642
  $ref: "#/components/schemas/FacetValue"
30643
+ PutFileRequest:
30644
+ type: object
30645
+ properties:
30646
+ name:
30647
+ type: string
30648
+ text:
30649
+ type: string
30650
+ base64:
30651
+ type: string
30652
+ json: {}
30653
+ contentType:
30654
+ type: string
30655
+ ttl:
30656
+ $ref: "#/components/schemas/FileTtl"
30657
+ appId:
30658
+ type: string
30659
+ required:
30660
+ - name
30661
+ FetchFileRequest:
30662
+ type: object
30663
+ properties:
30664
+ url:
30665
+ type: string
30666
+ ttl:
30667
+ $ref: "#/components/schemas/FileTtl"
30668
+ maxAge:
30669
+ $ref: "#/components/schemas/FileTtl"
30670
+ force:
30671
+ type: boolean
30672
+ appId:
30673
+ type: string
30674
+ required:
30675
+ - url
30676
+ FetchedFile:
30677
+ type: object
30678
+ properties:
30679
+ cached:
30680
+ type: boolean
30681
+ unchanged:
30682
+ type: boolean
30683
+ required:
30684
+ - cached
30685
+ ListFilesQuery:
30686
+ type: object
30687
+ properties:
30688
+ origin:
30689
+ type: object
30690
+ additionalProperties: true
30691
+ retention:
30692
+ type: object
30693
+ additionalProperties: true
30694
+ appId:
30695
+ type: string
30696
+ derivedFromId:
30697
+ type: string
30698
+ limit:
30699
+ type: number
30700
+ ExtractFileRequest:
30701
+ type: object
30702
+ properties:
30703
+ variant:
30704
+ $ref: "#/components/schemas/FileExtractVariant"
30705
+ schema:
30706
+ type: object
30707
+ additionalProperties: true
30708
+ prompt:
30709
+ type: string
30710
+ force:
30711
+ type: boolean
30712
+ required:
30713
+ - variant
30714
+ ExtractFileResponse:
30715
+ type: object
30716
+ properties:
30717
+ ok:
30718
+ type: object
30719
+ additionalProperties: true
30720
+ file:
30721
+ $ref: "#/components/schemas/FileRecord"
30722
+ text:
30723
+ type: string
30724
+ data: {}
30725
+ cached:
30726
+ type: boolean
30727
+ required:
30728
+ - ok
30729
+ - file
30730
+ - cached
30731
+ ReadFileResponse:
30732
+ type: object
30733
+ properties:
30734
+ ok:
30735
+ type: object
30736
+ additionalProperties: true
30737
+ text:
30738
+ type: string
30739
+ base64:
30740
+ type: string
30741
+ contentType:
30742
+ type: string
30743
+ size:
30744
+ type: number
30745
+ required:
30746
+ - ok
30747
+ - contentType
30748
+ - size
30749
+ FileLinkResponse:
30750
+ type: object
30751
+ properties:
30752
+ ok:
30753
+ type: object
30754
+ additionalProperties: true
30755
+ url:
30756
+ type: string
30757
+ expiresAt:
30758
+ type: string
30759
+ permanent:
30760
+ type: boolean
30761
+ required:
30762
+ - ok
30763
+ - url
30764
+ FileRecord:
30765
+ $ref: "#/components/schemas/Asset"
30766
+ FileTtl:
30767
+ type: object
30768
+ additionalProperties: true
30769
+ FileExtractVariant:
30770
+ type: object
30771
+ additionalProperties: true
30606
30772
  AppDataField:
30607
30773
  type: object
30608
30774
  properties:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "2.1.37",
3
+ "version": "2.1.39",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",