@proveanything/smartlinks 1.15.6 → 1.15.10

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/docs/widgets.md CHANGED
@@ -159,6 +159,13 @@ interface SmartLinksWidgetProps {
159
159
  // Base URL to the full public portal for deep linking
160
160
  publicPortalUrl?: string;
161
161
 
162
+ // Authenticity context for the specific item (proof) the URL points at.
163
+ // undefined for collection- and product-only URLs.
164
+ itemContext?: ItemContext;
165
+
166
+ // @deprecated Use itemContext.tag instead — kept for one release
167
+ tag?: TagContext;
168
+
162
169
  // Size hint for responsive rendering
163
170
  size?: 'compact' | 'standard' | 'large';
164
171
 
@@ -180,6 +187,8 @@ interface SmartLinksWidgetProps {
180
187
  | `SL` | `typeof SL` | Pre-initialized SmartLinks SDK |
181
188
  | `onNavigate` | `function?` | Callback to navigate within parent app (accepts `NavigationRequest` or legacy string) |
182
189
  | `publicPortalUrl` | `string?` | Base URL to full portal for deep links |
190
+ | `itemContext` | `ItemContext?` | Authenticity context for the specific item (proof) the URL points at; `undefined` for collection/product-only URLs — see [item-context.md](item-context.md) |
191
+ | `tag` | `TagContext?` | **Deprecated** — use `itemContext.tag` instead. Kept for one release. |
183
192
  | `size` | `string?` | Size hint: 'compact', 'standard', or 'large' |
184
193
  | `lang` | `string?` | Language code (e.g., 'en', 'de', 'fr') |
185
194
  | `translations` | `object?` | Translation overrides |
package/openapi.yaml CHANGED
@@ -15719,8 +15719,6 @@ components:
15719
15719
  enum:
15720
15720
  - registered
15721
15721
  - owned
15722
- virtualItemsEnabled:
15723
- type: boolean
15724
15722
  system:
15725
15723
  $ref: "#/components/schemas/SystemBlock"
15726
15724
  required:
@@ -19309,10 +19307,6 @@ components:
19309
19307
  type: string
19310
19308
  allowAutoGenerateClaims:
19311
19309
  type: boolean
19312
- variants:
19313
- type: boolean
19314
- batches:
19315
- type: boolean
19316
19310
  defaultAuthKitId:
19317
19311
  type: string
19318
19312
  required:
@@ -19328,8 +19322,6 @@ components:
19328
19322
  - supported
19329
19323
  - roles
19330
19324
  - shortId
19331
- - variants
19332
- - batches
19333
19325
  - defaultAuthKitId
19334
19326
  HubAvailabilityResponse:
19335
19327
  type: object
@@ -22211,6 +22203,31 @@ components:
22211
22203
  - metadata
22212
22204
  - broadcastId
22213
22205
  - journeyId
22206
+ ItemContext:
22207
+ type: object
22208
+ properties:
22209
+ isAuthentic:
22210
+ type: boolean
22211
+ status:
22212
+ $ref: "#/components/schemas/ItemContextStatus"
22213
+ source:
22214
+ type: string
22215
+ enum:
22216
+ - nfc
22217
+ - serial
22218
+ errorMessage:
22219
+ type: string
22220
+ isRescan:
22221
+ type: boolean
22222
+ tag:
22223
+ $ref: "#/components/schemas/TagContext"
22224
+ checkedAt:
22225
+ type: number
22226
+ required:
22227
+ - isAuthentic
22228
+ - status
22229
+ - source
22230
+ - checkedAt
22214
22231
  Job:
22215
22232
  type: object
22216
22233
  properties:
@@ -23042,6 +23059,39 @@ components:
23042
23059
  - claimSetId
23043
23060
  - codeId
23044
23061
  - data
23062
+ TagContext:
23063
+ type: object
23064
+ properties:
23065
+ status:
23066
+ $ref: "#/components/schemas/TagStatus"
23067
+ tagId:
23068
+ type: string
23069
+ claimSetId:
23070
+ type: string
23071
+ codeId:
23072
+ type: string
23073
+ count:
23074
+ type: number
23075
+ previousCount:
23076
+ type: number
23077
+ data:
23078
+ type: object
23079
+ additionalProperties: true
23080
+ source:
23081
+ type: string
23082
+ enum:
23083
+ - nfc-validate
23084
+ - nfc-lookup
23085
+ - tag-index
23086
+ - none
23087
+ validatedAt:
23088
+ type: number
23089
+ errorMessage:
23090
+ type: string
23091
+ required:
23092
+ - status
23093
+ - source
23094
+ - validatedAt
23045
23095
  OrderItem:
23046
23096
  type: object
23047
23097
  properties:
@@ -25219,6 +25269,10 @@ components:
25219
25269
  additionalProperties: true
25220
25270
  publicPortalUrl:
25221
25271
  type: string
25272
+ itemContext:
25273
+ $ref: "#/components/schemas/ItemContext"
25274
+ tag:
25275
+ $ref: "#/components/schemas/TagContext"
25222
25276
  size:
25223
25277
  type: string
25224
25278
  enum:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.15.6",
3
+ "version": "1.15.10",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",