@proveanything/smartlinks 1.7.1 → 1.7.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/openapi.yaml CHANGED
@@ -5500,7 +5500,7 @@ paths:
5500
5500
  get:
5501
5501
  tags:
5502
5502
  - tags
5503
- summary: List all tags for a collection with optional filters and pagination.
5503
+ summary: List tags with optional filters and pagination (admin).
5504
5504
  operationId: tags_list
5505
5505
  security:
5506
5506
  - bearerAuth: []
@@ -5526,7 +5526,7 @@ paths:
5526
5526
  post:
5527
5527
  tags:
5528
5528
  - tags
5529
- summary: Create a single tag mapping.
5529
+ summary: Create a single tag mapping (admin).
5530
5530
  operationId: tags_create
5531
5531
  security:
5532
5532
  - bearerAuth: []
@@ -5559,7 +5559,7 @@ paths:
5559
5559
  post:
5560
5560
  tags:
5561
5561
  - tags
5562
- summary: tags.createBatch
5562
+ summary: Batch-create tags (admin).
5563
5563
  operationId: tags_createBatch
5564
5564
  security:
5565
5565
  - bearerAuth: []
@@ -5575,7 +5575,7 @@ paths:
5575
5575
  content:
5576
5576
  application/json:
5577
5577
  schema:
5578
- $ref: "#/components/schemas/CreateTagsBatchResponse"
5578
+ $ref: "#/components/schemas/BatchCreateResult"
5579
5579
  400:
5580
5580
  description: Bad request
5581
5581
  401:
@@ -5587,12 +5587,12 @@ paths:
5587
5587
  content:
5588
5588
  application/json:
5589
5589
  schema:
5590
- $ref: "#/components/schemas/CreateTagsBatchRequest"
5590
+ $ref: "#/components/schemas/BatchCreateTagRequest"
5591
5591
  /admin/collection/{collectionId}/tags/by-ref:
5592
5592
  get:
5593
5593
  tags:
5594
5594
  - tags
5595
- summary: Reverse lookup find all tags linked to a given app object (admin).
5595
+ summary: Reverse lookup — find all tags linked to a given object (admin).
5596
5596
  operationId: tags_byRef
5597
5597
  security:
5598
5598
  - bearerAuth: []
@@ -5619,7 +5619,7 @@ paths:
5619
5619
  get:
5620
5620
  tags:
5621
5621
  - tags
5622
- summary: Get a single tag mapping by tagId.
5622
+ summary: "Get a single tag by `tagId` (admin)."
5623
5623
  operationId: tags_get
5624
5624
  security:
5625
5625
  - bearerAuth: []
@@ -5650,7 +5650,7 @@ paths:
5650
5650
  put:
5651
5651
  tags:
5652
5652
  - tags
5653
- summary: Update an existing tag mapping.
5653
+ summary: Update a tag (admin).
5654
5654
  operationId: tags_update
5655
5655
  security:
5656
5656
  - bearerAuth: []
@@ -5687,7 +5687,7 @@ paths:
5687
5687
  delete:
5688
5688
  tags:
5689
5689
  - tags
5690
- summary: Delete a tag mapping.
5690
+ summary: Delete a tag (admin).
5691
5691
  operationId: tags_remove
5692
5692
  security:
5693
5693
  - bearerAuth: []
@@ -8671,6 +8671,151 @@ paths:
8671
8671
  description: Unauthorized
8672
8672
  404:
8673
8673
  description: Not found
8674
+ /public/collection/{collectionId}/tags/by-ref:
8675
+ get:
8676
+ tags:
8677
+ - tags
8678
+ summary: Reverse lookup by ref via GET (public).
8679
+ operationId: tags_publicByRef
8680
+ security: []
8681
+ parameters:
8682
+ - name: collectionId
8683
+ in: path
8684
+ required: true
8685
+ schema:
8686
+ type: string
8687
+ responses:
8688
+ 200:
8689
+ description: Success
8690
+ content:
8691
+ application/json:
8692
+ schema:
8693
+ $ref: "#/components/schemas/ByRefResponse"
8694
+ 400:
8695
+ description: Bad request
8696
+ 401:
8697
+ description: Unauthorized
8698
+ 404:
8699
+ description: Not found
8700
+ post:
8701
+ tags:
8702
+ - tags
8703
+ summary: Reverse lookup by ref via POST (public).
8704
+ operationId: tags_publicByRefPost
8705
+ security: []
8706
+ parameters:
8707
+ - name: collectionId
8708
+ in: path
8709
+ required: true
8710
+ schema:
8711
+ type: string
8712
+ responses:
8713
+ 200:
8714
+ description: Success
8715
+ content:
8716
+ application/json:
8717
+ schema:
8718
+ $ref: "#/components/schemas/ByRefResponse"
8719
+ 400:
8720
+ description: Bad request
8721
+ 401:
8722
+ description: Unauthorized
8723
+ 404:
8724
+ description: Not found
8725
+ requestBody:
8726
+ required: true
8727
+ content:
8728
+ application/json:
8729
+ schema:
8730
+ $ref: "#/components/schemas/ByRefRequest"
8731
+ /public/collection/{collectionId}/tags/lookup:
8732
+ get:
8733
+ tags:
8734
+ - tags
8735
+ summary: Batch tag lookup via GET (public).
8736
+ operationId: tags_lookupTagsQuery
8737
+ security: []
8738
+ parameters:
8739
+ - name: collectionId
8740
+ in: path
8741
+ required: true
8742
+ schema:
8743
+ type: string
8744
+ responses:
8745
+ 200:
8746
+ description: Success
8747
+ content:
8748
+ application/json:
8749
+ schema:
8750
+ $ref: "#/components/schemas/TagLookupResponse"
8751
+ 400:
8752
+ description: Bad request
8753
+ 401:
8754
+ description: Unauthorized
8755
+ 404:
8756
+ description: Not found
8757
+ post:
8758
+ tags:
8759
+ - tags
8760
+ summary: Batch tag lookup via POST (public).
8761
+ operationId: tags_lookupTags
8762
+ security: []
8763
+ parameters:
8764
+ - name: collectionId
8765
+ in: path
8766
+ required: true
8767
+ schema:
8768
+ type: string
8769
+ responses:
8770
+ 200:
8771
+ description: Success
8772
+ content:
8773
+ application/json:
8774
+ schema:
8775
+ $ref: "#/components/schemas/TagLookupResponse"
8776
+ 400:
8777
+ description: Bad request
8778
+ 401:
8779
+ description: Unauthorized
8780
+ 404:
8781
+ description: Not found
8782
+ requestBody:
8783
+ required: true
8784
+ content:
8785
+ application/json:
8786
+ schema:
8787
+ $ref: "#/components/schemas/LookupTagsRequest"
8788
+ /public/collection/{collectionId}/tags/{tagId}:
8789
+ get:
8790
+ tags:
8791
+ - tags
8792
+ summary: Single tag lookup with optional embedded data (public).
8793
+ operationId: tags_publicGetByCollection
8794
+ security: []
8795
+ parameters:
8796
+ - name: collectionId
8797
+ in: path
8798
+ required: true
8799
+ schema:
8800
+ type: string
8801
+ - name: tagId
8802
+ in: path
8803
+ required: true
8804
+ schema:
8805
+ type: string
8806
+ responses:
8807
+ 200:
8808
+ description: Success
8809
+ content:
8810
+ application/json:
8811
+ schema:
8812
+ $ref: "#/components/schemas/PublicGetTagResponse"
8813
+ 400:
8814
+ description: Bad request
8815
+ 401:
8816
+ description: Unauthorized
8817
+ 404:
8818
+ description: Not found
8674
8819
  /public/collection/{collectionId}/template/getAllowed:
8675
8820
  get:
8676
8821
  tags:
@@ -8867,57 +9012,12 @@ paths:
8867
9012
  description: Unauthorized
8868
9013
  404:
8869
9014
  description: Not found
8870
- /public/tags/lookup:
8871
- get:
8872
- tags:
8873
- - tags
8874
- summary: Public batch lookup of multiple tags using query parameters (GET).
8875
- operationId: tags_lookupTagsQuery
8876
- security: []
8877
- responses:
8878
- 200:
8879
- description: Success
8880
- content:
8881
- application/json:
8882
- schema:
8883
- $ref: "#/components/schemas/PublicBatchLookupQueryResponse"
8884
- 400:
8885
- description: Bad request
8886
- 401:
8887
- description: Unauthorized
8888
- 404:
8889
- description: Not found
8890
- post:
8891
- tags:
8892
- - tags
8893
- summary: Public batch lookup of multiple tags in a single request (POST).
8894
- operationId: tags_lookupTags
8895
- security: []
8896
- responses:
8897
- 200:
8898
- description: Success
8899
- content:
8900
- application/json:
8901
- schema:
8902
- $ref: "#/components/schemas/PublicBatchLookupResponse"
8903
- 400:
8904
- description: Bad request
8905
- 401:
8906
- description: Unauthorized
8907
- 404:
8908
- description: Not found
8909
- requestBody:
8910
- required: true
8911
- content:
8912
- application/json:
8913
- schema:
8914
- $ref: "#/components/schemas/PublicBatchLookupRequest"
8915
9015
  /public/tags/{tagId}:
8916
9016
  get:
8917
9017
  tags:
8918
9018
  - tags
8919
- summary: Public lookup of a single tag by tagId (global).
8920
- operationId: tags_getTag
9019
+ summary: "Global tag resolve — returns `{ tagId, collectionId }` only."
9020
+ operationId: tags_resolveTag
8921
9021
  security: []
8922
9022
  parameters:
8923
9023
  - name: tagId
@@ -8931,7 +9031,7 @@ paths:
8931
9031
  content:
8932
9032
  application/json:
8933
9033
  schema:
8934
- $ref: "#/components/schemas/PublicGetTagResponse"
9034
+ $ref: "#/components/schemas/TagIndexEntry"
8935
9035
  400:
8936
9036
  description: Bad request
8937
9037
  401:
@@ -16451,9 +16551,40 @@ components:
16451
16551
  - orgId
16452
16552
  - tagId
16453
16553
  - collectionId
16554
+ - productId
16555
+ - variantId
16556
+ - batchId
16557
+ - proofId
16558
+ - refType
16559
+ - refId
16454
16560
  - metadata
16455
16561
  - createdAt
16456
16562
  - updatedAt
16563
+ TagIndexEntry:
16564
+ type: object
16565
+ properties:
16566
+ tagId:
16567
+ type: string
16568
+ collectionId:
16569
+ type: string
16570
+ required:
16571
+ - tagId
16572
+ - collectionId
16573
+ TagEmbedded:
16574
+ type: object
16575
+ properties:
16576
+ products:
16577
+ type: object
16578
+ additionalProperties: true
16579
+ proofs:
16580
+ type: object
16581
+ additionalProperties: true
16582
+ containers:
16583
+ type: object
16584
+ additionalProperties: true
16585
+ refs:
16586
+ type: object
16587
+ additionalProperties: true
16457
16588
  CreateTagRequest:
16458
16589
  type: object
16459
16590
  properties:
@@ -16480,19 +16611,20 @@ components:
16480
16611
  type: boolean
16481
16612
  required:
16482
16613
  - tagId
16483
- CreateTagResponse:
16614
+ BatchCreateTagRequest:
16484
16615
  type: object
16485
16616
  properties:
16486
- wasUpdated:
16617
+ tags:
16618
+ type: array
16619
+ items:
16620
+ $ref: "#/components/schemas/CreateTagRequest"
16621
+ force:
16487
16622
  type: boolean
16488
- CreateTagsBatchRequest:
16623
+ required:
16624
+ - tags
16625
+ UpdateTagRequest:
16489
16626
  type: object
16490
16627
  properties:
16491
- tags:
16492
- type: object
16493
- additionalProperties: true
16494
- tagId:
16495
- type: string
16496
16628
  productId:
16497
16629
  type: string
16498
16630
  variantId:
@@ -16501,16 +16633,19 @@ components:
16501
16633
  type: string
16502
16634
  proofId:
16503
16635
  type: string
16636
+ refType:
16637
+ type: string
16638
+ refId:
16639
+ type: string
16504
16640
  metadata:
16505
16641
  type: object
16506
16642
  additionalProperties: true
16507
- force:
16643
+ CreateTagResponse:
16644
+ type: object
16645
+ properties:
16646
+ wasUpdated:
16508
16647
  type: boolean
16509
- required:
16510
- - tags
16511
- - tagId
16512
- - productId
16513
- CreateTagsBatchResponse:
16648
+ BatchCreateResult:
16514
16649
  type: object
16515
16650
  properties:
16516
16651
  summary:
@@ -16527,22 +16662,18 @@ components:
16527
16662
  items:
16528
16663
  $ref: "#/components/schemas/Tag"
16529
16664
  failed:
16530
- type: object
16531
- additionalProperties: true
16665
+ type: array
16666
+ items:
16667
+ type: object
16668
+ additionalProperties: true
16532
16669
  conflicts:
16533
- type: object
16534
- additionalProperties: true
16670
+ type: array
16671
+ items:
16672
+ type: object
16673
+ additionalProperties: true
16535
16674
  results:
16536
16675
  type: object
16537
16676
  additionalProperties: true
16538
- tagId:
16539
- type: string
16540
- reason:
16541
- type: string
16542
- message:
16543
- type: string
16544
- existingTag:
16545
- $ref: "#/components/schemas/Tag"
16546
16677
  required:
16547
16678
  - summary
16548
16679
  - total
@@ -16554,32 +16685,7 @@ components:
16554
16685
  - created
16555
16686
  - updated
16556
16687
  - failed
16557
- - tagId
16558
- - reason
16559
- - message
16560
16688
  - conflicts
16561
- - tagId
16562
- - reason
16563
- - message
16564
- - existingTag
16565
- UpdateTagRequest:
16566
- type: object
16567
- properties:
16568
- productId:
16569
- type: string
16570
- variantId:
16571
- type: string
16572
- batchId:
16573
- type: string
16574
- proofId:
16575
- type: string
16576
- refType:
16577
- type: string
16578
- refId:
16579
- type: string
16580
- metadata:
16581
- type: object
16582
- additionalProperties: true
16583
16689
  UpdateTagResponse:
16584
16690
  type: object
16585
16691
  properties: {}
@@ -16625,22 +16731,7 @@ components:
16625
16731
  - tags
16626
16732
  - limit
16627
16733
  - offset
16628
- PublicGetTagRequest:
16629
- type: object
16630
- properties:
16631
- embed:
16632
- type: string
16633
- PublicGetTagResponse:
16634
- type: object
16635
- properties:
16636
- tag:
16637
- $ref: "#/components/schemas/Tag"
16638
- collection: {}
16639
- product: {}
16640
- proof: {}
16641
- required:
16642
- - tag
16643
- PublicBatchLookupRequest:
16734
+ LookupTagsRequest:
16644
16735
  type: object
16645
16736
  properties:
16646
16737
  tagIds:
@@ -16651,25 +16742,7 @@ components:
16651
16742
  type: string
16652
16743
  required:
16653
16744
  - tagIds
16654
- PublicBatchLookupResponse:
16655
- type: object
16656
- properties:
16657
- tags:
16658
- type: object
16659
- additionalProperties:
16660
- $ref: "#/components/schemas/Tag"
16661
- collections:
16662
- type: object
16663
- additionalProperties: true
16664
- products:
16665
- type: object
16666
- additionalProperties: true
16667
- proofs:
16668
- type: object
16669
- additionalProperties: true
16670
- required:
16671
- - tags
16672
- PublicBatchLookupQueryRequest:
16745
+ LookupTagsQueryRequest:
16673
16746
  type: object
16674
16747
  properties:
16675
16748
  tagIds:
@@ -16678,9 +16751,18 @@ components:
16678
16751
  type: string
16679
16752
  required:
16680
16753
  - tagIds
16681
- PublicBatchLookupQueryResponse:
16754
+ ByRefRequest:
16682
16755
  type: object
16683
- properties: {}
16756
+ properties:
16757
+ refType:
16758
+ type: string
16759
+ refId:
16760
+ type: string
16761
+ embed:
16762
+ type: string
16763
+ required:
16764
+ - refType
16765
+ - refId
16684
16766
  ReverseTagLookupParams:
16685
16767
  type: object
16686
16768
  properties:
@@ -16688,9 +16770,36 @@ components:
16688
16770
  type: string
16689
16771
  refId:
16690
16772
  type: string
16773
+ embed:
16774
+ type: string
16691
16775
  required:
16692
16776
  - refType
16693
16777
  - refId
16778
+ PublicGetTagResponse:
16779
+ type: object
16780
+ properties:
16781
+ tag:
16782
+ $ref: "#/components/schemas/Tag"
16783
+ embedded:
16784
+ $ref: "#/components/schemas/TagEmbedded"
16785
+ required:
16786
+ - tag
16787
+ - embedded
16788
+ TagLookupResponse:
16789
+ type: object
16790
+ properties:
16791
+ count:
16792
+ type: number
16793
+ tags:
16794
+ type: array
16795
+ items:
16796
+ $ref: "#/components/schemas/Tag"
16797
+ embedded:
16798
+ $ref: "#/components/schemas/TagEmbedded"
16799
+ required:
16800
+ - count
16801
+ - tags
16802
+ - embedded
16694
16803
  ReverseTagLookupResponse:
16695
16804
  type: object
16696
16805
  properties:
@@ -16700,6 +16809,18 @@ components:
16700
16809
  $ref: "#/components/schemas/Tag"
16701
16810
  required:
16702
16811
  - tags
16812
+ ByRefResponse:
16813
+ type: object
16814
+ properties:
16815
+ tags:
16816
+ type: array
16817
+ items:
16818
+ $ref: "#/components/schemas/Tag"
16819
+ embedded:
16820
+ $ref: "#/components/schemas/TagEmbedded"
16821
+ required:
16822
+ - tags
16823
+ - embedded
16703
16824
  TemplateBase:
16704
16825
  type: object
16705
16826
  properties: