@proveanything/smartlinks 1.15.24 → 1.16.1

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
@@ -41,6 +41,7 @@ tags:
41
41
  - name: journeys
42
42
  - name: journeysAnalytics
43
43
  - name: location
44
+ - name: lots
44
45
  - name: loyalty
45
46
  - name: nfc
46
47
  - name: order
@@ -4825,6 +4826,240 @@ paths:
4825
4826
  description: Unauthorized
4826
4827
  404:
4827
4828
  description: Not found
4829
+ /admin/collection/{collectionId}/lots/by-number/{lotNumber}:
4830
+ get:
4831
+ tags:
4832
+ - lots
4833
+ summary: Look up a lot by its number (case-insensitive) — used by scan/resolver flows.
4834
+ operationId: lots_getByNumber
4835
+ security:
4836
+ - bearerAuth: []
4837
+ parameters:
4838
+ - name: collectionId
4839
+ in: path
4840
+ required: true
4841
+ schema:
4842
+ type: string
4843
+ - name: lotNumber
4844
+ in: path
4845
+ required: true
4846
+ schema:
4847
+ type: string
4848
+ responses:
4849
+ 200:
4850
+ description: Success
4851
+ content:
4852
+ application/json:
4853
+ schema:
4854
+ $ref: "#/components/schemas/Lot"
4855
+ 400:
4856
+ description: Bad request
4857
+ 401:
4858
+ description: Unauthorized
4859
+ 404:
4860
+ description: Not found
4861
+ /admin/collection/{collectionId}/lots/{lotId}:
4862
+ get:
4863
+ tags:
4864
+ - lots
4865
+ summary: Get the full lot record.
4866
+ operationId: lots_get
4867
+ security:
4868
+ - bearerAuth: []
4869
+ parameters:
4870
+ - name: collectionId
4871
+ in: path
4872
+ required: true
4873
+ schema:
4874
+ type: string
4875
+ - name: lotId
4876
+ in: path
4877
+ required: true
4878
+ schema:
4879
+ type: string
4880
+ responses:
4881
+ 200:
4882
+ description: Success
4883
+ content:
4884
+ application/json:
4885
+ schema:
4886
+ $ref: "#/components/schemas/Lot"
4887
+ 400:
4888
+ description: Bad request
4889
+ 401:
4890
+ description: Unauthorized
4891
+ 404:
4892
+ description: Not found
4893
+ put:
4894
+ tags:
4895
+ - lots
4896
+ summary: Update a lot.
4897
+ operationId: lots_update
4898
+ security:
4899
+ - bearerAuth: []
4900
+ parameters:
4901
+ - name: collectionId
4902
+ in: path
4903
+ required: true
4904
+ schema:
4905
+ type: string
4906
+ - name: lotId
4907
+ in: path
4908
+ required: true
4909
+ schema:
4910
+ type: string
4911
+ responses:
4912
+ 200:
4913
+ description: Success
4914
+ content:
4915
+ application/json:
4916
+ schema:
4917
+ $ref: "#/components/schemas/Lot"
4918
+ 400:
4919
+ description: Bad request
4920
+ 401:
4921
+ description: Unauthorized
4922
+ 404:
4923
+ description: Not found
4924
+ requestBody:
4925
+ required: true
4926
+ content:
4927
+ application/json:
4928
+ schema:
4929
+ $ref: "#/components/schemas/LotUpdateInput"
4930
+ /admin/collection/{collectionId}/lots/{lotId}/products{opts}:
4931
+ get:
4932
+ tags:
4933
+ - lots
4934
+ summary: Paginated member product summaries.
4935
+ operationId: lots_listProducts
4936
+ security:
4937
+ - bearerAuth: []
4938
+ parameters:
4939
+ - name: collectionId
4940
+ in: path
4941
+ required: true
4942
+ schema:
4943
+ type: string
4944
+ - name: lotId
4945
+ in: path
4946
+ required: true
4947
+ schema:
4948
+ type: string
4949
+ - name: opts
4950
+ in: path
4951
+ required: true
4952
+ schema:
4953
+ type: string
4954
+ responses:
4955
+ 200:
4956
+ description: Success
4957
+ content:
4958
+ application/json:
4959
+ schema:
4960
+ $ref: "#/components/schemas/ListLotProductsResponse"
4961
+ 400:
4962
+ description: Bad request
4963
+ 401:
4964
+ description: Unauthorized
4965
+ 404:
4966
+ description: Not found
4967
+ /admin/collection/{collectionId}/lots/{lotId}/resolve:
4968
+ post:
4969
+ tags:
4970
+ - lots
4971
+ summary: Re-resolve members from the current selector; returns the lot + a member diff.
4972
+ operationId: lots_resolve
4973
+ security:
4974
+ - bearerAuth: []
4975
+ parameters:
4976
+ - name: collectionId
4977
+ in: path
4978
+ required: true
4979
+ schema:
4980
+ type: string
4981
+ - name: lotId
4982
+ in: path
4983
+ required: true
4984
+ schema:
4985
+ type: string
4986
+ responses:
4987
+ 200:
4988
+ description: Success
4989
+ content:
4990
+ application/json:
4991
+ schema:
4992
+ $ref: "#/components/schemas/ResolveLotResponse"
4993
+ 400:
4994
+ description: Bad request
4995
+ 401:
4996
+ description: Unauthorized
4997
+ 404:
4998
+ description: Not found
4999
+ /admin/collection/{collectionId}/lots/{lotId}/restore:
5000
+ post:
5001
+ tags:
5002
+ - lots
5003
+ summary: Restore a soft-deleted lot.
5004
+ operationId: lots_restore
5005
+ security:
5006
+ - bearerAuth: []
5007
+ parameters:
5008
+ - name: collectionId
5009
+ in: path
5010
+ required: true
5011
+ schema:
5012
+ type: string
5013
+ - name: lotId
5014
+ in: path
5015
+ required: true
5016
+ schema:
5017
+ type: string
5018
+ responses:
5019
+ 200:
5020
+ description: Success
5021
+ content:
5022
+ application/json:
5023
+ schema:
5024
+ $ref: "#/components/schemas/Lot"
5025
+ 400:
5026
+ description: Bad request
5027
+ 401:
5028
+ description: Unauthorized
5029
+ 404:
5030
+ description: Not found
5031
+ /admin/collection/{collectionId}/lots{params}:
5032
+ get:
5033
+ tags:
5034
+ - lots
5035
+ summary: "List lots (summary rows; `payload`/`productIds` omitted)."
5036
+ operationId: lots_list
5037
+ security:
5038
+ - bearerAuth: []
5039
+ parameters:
5040
+ - name: collectionId
5041
+ in: path
5042
+ required: true
5043
+ schema:
5044
+ type: string
5045
+ - name: params
5046
+ in: path
5047
+ required: true
5048
+ schema:
5049
+ type: string
5050
+ responses:
5051
+ 200:
5052
+ description: Success
5053
+ content:
5054
+ application/json:
5055
+ schema:
5056
+ $ref: "#/components/schemas/ListLotsResponse"
5057
+ 400:
5058
+ description: Bad request
5059
+ 401:
5060
+ description: Unauthorized
5061
+ 404:
5062
+ description: Not found
4828
5063
  /admin/collection/{collectionId}/loyaltyScheme:
4829
5064
  get:
4830
5065
  tags:
@@ -11549,6 +11784,135 @@ paths:
11549
11784
  description: Unauthorized
11550
11785
  404:
11551
11786
  description: Not found
11787
+ /public/collection/{collectionId}/lots/by-number/{lotNumber}:
11788
+ get:
11789
+ tags:
11790
+ - lots
11791
+ summary: lots.publicGetByNumber
11792
+ operationId: lots_publicGetByNumber
11793
+ security: []
11794
+ parameters:
11795
+ - name: collectionId
11796
+ in: path
11797
+ required: true
11798
+ schema:
11799
+ type: string
11800
+ - name: lotNumber
11801
+ in: path
11802
+ required: true
11803
+ schema:
11804
+ type: string
11805
+ responses:
11806
+ 200:
11807
+ description: Success
11808
+ content:
11809
+ application/json:
11810
+ schema:
11811
+ $ref: "#/components/schemas/Lot"
11812
+ 400:
11813
+ description: Bad request
11814
+ 401:
11815
+ description: Unauthorized
11816
+ 404:
11817
+ description: Not found
11818
+ /public/collection/{collectionId}/lots/{lotId}:
11819
+ get:
11820
+ tags:
11821
+ - lots
11822
+ summary: lots.publicGet
11823
+ operationId: lots_publicGet
11824
+ security: []
11825
+ parameters:
11826
+ - name: collectionId
11827
+ in: path
11828
+ required: true
11829
+ schema:
11830
+ type: string
11831
+ - name: lotId
11832
+ in: path
11833
+ required: true
11834
+ schema:
11835
+ type: string
11836
+ responses:
11837
+ 200:
11838
+ description: Success
11839
+ content:
11840
+ application/json:
11841
+ schema:
11842
+ $ref: "#/components/schemas/Lot"
11843
+ 400:
11844
+ description: Bad request
11845
+ 401:
11846
+ description: Unauthorized
11847
+ 404:
11848
+ description: Not found
11849
+ /public/collection/{collectionId}/lots/{lotId}/products{opts}:
11850
+ get:
11851
+ tags:
11852
+ - lots
11853
+ summary: lots.publicListProducts
11854
+ operationId: lots_publicListProducts
11855
+ security: []
11856
+ parameters:
11857
+ - name: collectionId
11858
+ in: path
11859
+ required: true
11860
+ schema:
11861
+ type: string
11862
+ - name: lotId
11863
+ in: path
11864
+ required: true
11865
+ schema:
11866
+ type: string
11867
+ - name: opts
11868
+ in: path
11869
+ required: true
11870
+ schema:
11871
+ type: string
11872
+ responses:
11873
+ 200:
11874
+ description: Success
11875
+ content:
11876
+ application/json:
11877
+ schema:
11878
+ $ref: "#/components/schemas/ListLotProductsResponse"
11879
+ 400:
11880
+ description: Bad request
11881
+ 401:
11882
+ description: Unauthorized
11883
+ 404:
11884
+ description: Not found
11885
+ /public/collection/{collectionId}/lots{params}:
11886
+ get:
11887
+ tags:
11888
+ - lots
11889
+ summary: lots.publicList
11890
+ operationId: lots_publicList
11891
+ security: []
11892
+ parameters:
11893
+ - name: collectionId
11894
+ in: path
11895
+ required: true
11896
+ schema:
11897
+ type: string
11898
+ - name: params
11899
+ in: path
11900
+ required: true
11901
+ schema:
11902
+ type: string
11903
+ responses:
11904
+ 200:
11905
+ description: Success
11906
+ content:
11907
+ application/json:
11908
+ schema:
11909
+ $ref: "#/components/schemas/ListLotsResponse"
11910
+ 400:
11911
+ description: Bad request
11912
+ 401:
11913
+ description: Unauthorized
11914
+ 404:
11915
+ description: Not found
11552
11916
  /public/collection/{collectionId}/loyaltyScheme:
11553
11917
  get:
11554
11918
  tags:
@@ -18773,6 +19137,122 @@ components:
18773
19137
  - auth_time
18774
19138
  - iat
18775
19139
  - features
19140
+ AuthTelemetryEvent:
19141
+ type: object
19142
+ properties:
19143
+ eventId:
19144
+ type: string
19145
+ correlationId:
19146
+ type: string
19147
+ clientId:
19148
+ type: string
19149
+ collectionId:
19150
+ type: string
19151
+ type:
19152
+ $ref: "#/components/schemas/AuthEventType"
19153
+ flow:
19154
+ $ref: "#/components/schemas/AuthFlow"
19155
+ ts:
19156
+ type: string
19157
+ durationMs:
19158
+ type: number
19159
+ outcome:
19160
+ type: string
19161
+ enum:
19162
+ - success
19163
+ - error
19164
+ - stalled
19165
+ - abandoned
19166
+ error:
19167
+ type: object
19168
+ additionalProperties: true
19169
+ code:
19170
+ type: string
19171
+ statusCode:
19172
+ type: number
19173
+ message:
19174
+ type: string
19175
+ name:
19176
+ type: string
19177
+ stack:
19178
+ type: string
19179
+ endpoint:
19180
+ type: string
19181
+ context:
19182
+ type: object
19183
+ additionalProperties: true
19184
+ sdkVersion:
19185
+ type: string
19186
+ authKitVersion:
19187
+ type: string
19188
+ mode:
19189
+ type: string
19190
+ enum:
19191
+ - standalone
19192
+ - embedded
19193
+ - proxy
19194
+ - native
19195
+ route:
19196
+ type: string
19197
+ deepLinkMode:
19198
+ type: string
19199
+ userAgent:
19200
+ type: string
19201
+ platform:
19202
+ type: string
19203
+ language:
19204
+ type: string
19205
+ online:
19206
+ type: boolean
19207
+ viewport:
19208
+ type: object
19209
+ additionalProperties: true
19210
+ darkMode:
19211
+ type: boolean
19212
+ subject:
19213
+ type: object
19214
+ additionalProperties: true
19215
+ required:
19216
+ - eventId
19217
+ - correlationId
19218
+ - clientId
19219
+ - type
19220
+ - flow
19221
+ - ts
19222
+ - context
19223
+ - sdkVersion
19224
+ - authKitVersion
19225
+ - mode
19226
+ - userAgent
19227
+ - online
19228
+ TelemetryIngestResponse:
19229
+ type: object
19230
+ properties:
19231
+ accepted:
19232
+ type: number
19233
+ rejected:
19234
+ type: number
19235
+ rejectedIds:
19236
+ type: array
19237
+ items:
19238
+ type: string
19239
+ required:
19240
+ - accepted
19241
+ - rejected
19242
+ - rejectedIds
19243
+ AuthKitTelemetryConfig:
19244
+ type: object
19245
+ properties:
19246
+ enabled:
19247
+ type: boolean
19248
+ successSampleRate:
19249
+ type: number
19250
+ captureJsErrors:
19251
+ type: boolean
19252
+ stallThresholdMs:
19253
+ type: number
19254
+ retentionDays:
19255
+ type: number
18776
19256
  AuthKitUser:
18777
19257
  type: object
18778
19258
  properties:
@@ -23355,6 +23835,178 @@ components:
23355
23835
  required:
23356
23836
  - items
23357
23837
  - count
23838
+ LotPayload:
23839
+ type: object
23840
+ properties:
23841
+ manufacturedAt:
23842
+ type: string
23843
+ expiresAt:
23844
+ type: string
23845
+ location:
23846
+ type: string
23847
+ custom:
23848
+ type: object
23849
+ additionalProperties: true
23850
+ Lot:
23851
+ type: object
23852
+ properties:
23853
+ id:
23854
+ type: string
23855
+ collectionId:
23856
+ type: string
23857
+ lotNumber:
23858
+ type: string
23859
+ name:
23860
+ type: string
23861
+ description:
23862
+ type: string
23863
+ status:
23864
+ $ref: "#/components/schemas/LotStatus"
23865
+ selector:
23866
+ $ref: "#/components/schemas/LotSelector"
23867
+ payload:
23868
+ $ref: "#/components/schemas/LotPayload"
23869
+ destination:
23870
+ type: object
23871
+ additionalProperties: true
23872
+ productCount:
23873
+ type: number
23874
+ productIds:
23875
+ type: array
23876
+ items:
23877
+ type: string
23878
+ resolvedAt:
23879
+ type: string
23880
+ createdBy:
23881
+ type: string
23882
+ updatedBy:
23883
+ type: string
23884
+ createdAt:
23885
+ type: string
23886
+ updatedAt:
23887
+ type: string
23888
+ deletedAt:
23889
+ type: string
23890
+ required:
23891
+ - id
23892
+ - collectionId
23893
+ - lotNumber
23894
+ - status
23895
+ - selector
23896
+ - productCount
23897
+ - createdAt
23898
+ - updatedAt
23899
+ LotCreateInput:
23900
+ type: object
23901
+ properties:
23902
+ lotNumber:
23903
+ type: string
23904
+ name:
23905
+ type: string
23906
+ description:
23907
+ type: string
23908
+ selector:
23909
+ $ref: "#/components/schemas/LotSelector"
23910
+ payload:
23911
+ $ref: "#/components/schemas/LotPayload"
23912
+ destination:
23913
+ type: object
23914
+ additionalProperties: true
23915
+ status:
23916
+ $ref: "#/components/schemas/LotStatus"
23917
+ id:
23918
+ type: string
23919
+ required:
23920
+ - lotNumber
23921
+ ListLotsParams:
23922
+ type: object
23923
+ properties:
23924
+ status:
23925
+ $ref: "#/components/schemas/LotStatus"
23926
+ search:
23927
+ type: string
23928
+ productId:
23929
+ type: string
23930
+ includeDeleted:
23931
+ type: boolean
23932
+ ListLotsResponse:
23933
+ type: object
23934
+ properties:
23935
+ lots:
23936
+ type: array
23937
+ items:
23938
+ $ref: "#/components/schemas/Lot"
23939
+ required:
23940
+ - lots
23941
+ LotMemberDiff:
23942
+ type: object
23943
+ properties:
23944
+ added:
23945
+ type: array
23946
+ items:
23947
+ type: object
23948
+ additionalProperties: true
23949
+ required:
23950
+ - added
23951
+ ResolveLotResponse:
23952
+ type: object
23953
+ properties:
23954
+ lot:
23955
+ type: object
23956
+ additionalProperties: true
23957
+ required:
23958
+ - lot
23959
+ LotProductSummary:
23960
+ type: object
23961
+ properties:
23962
+ id:
23963
+ type: object
23964
+ additionalProperties: true
23965
+ required:
23966
+ - id
23967
+ ListLotProductsResponse:
23968
+ type: object
23969
+ properties:
23970
+ products:
23971
+ type: array
23972
+ items:
23973
+ $ref: "#/components/schemas/LotProductSummary"
23974
+ total:
23975
+ type: number
23976
+ page:
23977
+ type: number
23978
+ limit:
23979
+ type: number
23980
+ required:
23981
+ - products
23982
+ - total
23983
+ - page
23984
+ - limit
23985
+ LotResolutionResult:
23986
+ type: object
23987
+ properties:
23988
+ match:
23989
+ type: string
23990
+ enum:
23991
+ - batch
23992
+ - lot
23993
+ - product
23994
+ - none
23995
+ productId:
23996
+ type: string
23997
+ batchId:
23998
+ type: string
23999
+ lotId:
24000
+ type: string
24001
+ ai10:
24002
+ type: string
24003
+ destination: {}
24004
+ required:
24005
+ - match
24006
+ - productId
24007
+ - batchId
24008
+ - lotId
24009
+ - ai10
23358
24010
  LoyaltyScheme:
23359
24011
  type: object
23360
24012
  properties:
@@ -25050,6 +25702,12 @@ components:
25050
25702
  type: string
25051
25703
  userId:
25052
25704
  type: string
25705
+ batchId:
25706
+ type: string
25707
+ variantId:
25708
+ type: string
25709
+ lotId:
25710
+ type: string
25053
25711
  claimable:
25054
25712
  type: boolean
25055
25713
  virtual: