@proveanything/smartlinks 3.0.0-alpha.2 → 3.0.0-alpha.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.
Files changed (151) hide show
  1. package/README.md +741 -741
  2. package/dist/README.md +573 -573
  3. package/dist/adminCardsView.js +55 -55
  4. package/dist/api/bookings.d.ts +49 -2
  5. package/dist/api/bookings.js +59 -2
  6. package/dist/api/index.d.ts +1 -0
  7. package/dist/api/index.js +1 -0
  8. package/dist/api/payments.d.ts +60 -0
  9. package/dist/api/payments.js +94 -0
  10. package/dist/api/realtime.d.ts +3 -0
  11. package/dist/api/realtime.js +10 -2
  12. package/dist/baseline.css +194 -194
  13. package/dist/dataChanged.d.ts +74 -0
  14. package/dist/dataChanged.js +162 -0
  15. package/dist/docs/API_SUMMARY.md +1086 -858
  16. package/dist/docs/admin-cards.md +189 -189
  17. package/dist/docs/agent-tools.md +156 -156
  18. package/dist/docs/ai-tools-and-skills.md +180 -180
  19. package/dist/docs/ai.md +1721 -1721
  20. package/dist/docs/api-versions.md +85 -85
  21. package/dist/docs/app-data-storage.md +277 -277
  22. package/dist/docs/app-docs.md +73 -73
  23. package/dist/docs/app-manifest.md +852 -852
  24. package/dist/docs/app-records-pattern.md +388 -388
  25. package/dist/docs/appConfig.md +550 -550
  26. package/dist/docs/assistant-apps.md +172 -172
  27. package/dist/docs/assistant-context.md +119 -119
  28. package/dist/docs/bookings.md +105 -8
  29. package/dist/docs/caching.md +32 -3
  30. package/dist/docs/comms.md +689 -689
  31. package/dist/docs/connectors.md +340 -340
  32. package/dist/docs/css-baseline.md +133 -133
  33. package/dist/docs/customer-guide.md +70 -70
  34. package/dist/docs/data-changed.md +91 -0
  35. package/dist/docs/deploying-apps.md +340 -340
  36. package/dist/docs/dpp.md +115 -115
  37. package/dist/docs/entitlements.md +90 -90
  38. package/dist/docs/files.md +69 -69
  39. package/dist/docs/host-dependency-contract.md +252 -252
  40. package/dist/docs/iframe-responder.md +11 -0
  41. package/dist/docs/integrations.md +322 -322
  42. package/dist/docs/interactions.md +544 -544
  43. package/dist/docs/item-context.md +181 -181
  44. package/dist/docs/knowledge.md +105 -105
  45. package/dist/docs/lists.md +157 -157
  46. package/dist/docs/lots.md +112 -112
  47. package/dist/docs/loyalty.md +348 -348
  48. package/dist/docs/members.md +183 -183
  49. package/dist/docs/memberships.md +150 -150
  50. package/dist/docs/mobile-admin-container.md +693 -693
  51. package/dist/docs/operations.md +281 -281
  52. package/dist/docs/overview.md +487 -485
  53. package/dist/docs/payments.md +94 -0
  54. package/dist/docs/proof-comms-triggers.md +142 -142
  55. package/dist/docs/proof-ownership-transfer.md +155 -155
  56. package/dist/docs/proof-product-data-scoping.md +462 -462
  57. package/dist/docs/proof-share-grants.md +305 -305
  58. package/dist/docs/realtime.md +149 -139
  59. package/dist/docs/records-admin-pattern.md +304 -304
  60. package/dist/docs/service-accounts.md +64 -64
  61. package/dist/docs/standard-query.md +196 -187
  62. package/dist/docs/tag-codes.md +97 -97
  63. package/dist/docs/tag-ranges.md +106 -106
  64. package/dist/docs/theme-tokens.md +252 -252
  65. package/dist/docs/upgrading-to-3.md +550 -532
  66. package/dist/docs/wallet-passes.md +107 -107
  67. package/dist/docs/websites.md +123 -123
  68. package/dist/http.d.ts +6 -3
  69. package/dist/http.js +48 -19
  70. package/dist/iframeResponder.d.ts +7 -0
  71. package/dist/iframeResponder.js +10 -0
  72. package/dist/index.d.ts +2 -0
  73. package/dist/index.js +2 -0
  74. package/dist/openapi.yaml +426 -3
  75. package/dist/testing/bookingsMemory.d.ts +29 -1
  76. package/dist/testing/bookingsMemory.js +89 -1
  77. package/dist/testing/index.js +4 -1
  78. package/dist/theme-boot.js +82 -82
  79. package/dist/theme.css +75 -75
  80. package/dist/types/appManifest.d.ts +26 -4
  81. package/dist/types/bookings.d.ts +99 -1
  82. package/dist/types/index.d.ts +1 -0
  83. package/dist/types/index.js +1 -0
  84. package/dist/types/payments.d.ts +101 -0
  85. package/dist/types/payments.js +5 -0
  86. package/dist/types/realtime.d.ts +5 -1
  87. package/dist/version.d.ts +1 -1
  88. package/dist/version.js +1 -1
  89. package/docs/API_SUMMARY.md +1086 -858
  90. package/docs/admin-cards.md +189 -189
  91. package/docs/agent-tools.md +156 -156
  92. package/docs/ai-tools-and-skills.md +180 -180
  93. package/docs/ai.md +1721 -1721
  94. package/docs/api-versions.md +85 -85
  95. package/docs/app-data-storage.md +277 -277
  96. package/docs/app-docs.md +73 -73
  97. package/docs/app-manifest.md +852 -852
  98. package/docs/app-records-pattern.md +388 -388
  99. package/docs/appConfig.md +550 -550
  100. package/docs/assistant-apps.md +172 -172
  101. package/docs/assistant-context.md +119 -119
  102. package/docs/bookings.md +105 -8
  103. package/docs/caching.md +32 -3
  104. package/docs/comms.md +689 -689
  105. package/docs/connectors.md +340 -340
  106. package/docs/css-baseline.md +133 -133
  107. package/docs/customer-guide.md +70 -70
  108. package/docs/data-changed.md +91 -0
  109. package/docs/deploying-apps.md +340 -340
  110. package/docs/dpp.md +115 -115
  111. package/docs/entitlements.md +90 -90
  112. package/docs/files.md +69 -69
  113. package/docs/host-dependency-contract.md +252 -252
  114. package/docs/iframe-responder.md +11 -0
  115. package/docs/integrations.md +322 -322
  116. package/docs/interactions.md +544 -544
  117. package/docs/item-context.md +181 -181
  118. package/docs/knowledge.md +105 -105
  119. package/docs/lists.md +157 -157
  120. package/docs/lots.md +112 -112
  121. package/docs/loyalty.md +348 -348
  122. package/docs/members.md +183 -183
  123. package/docs/memberships.md +150 -150
  124. package/docs/mobile-admin-container.md +693 -693
  125. package/docs/operations.md +281 -281
  126. package/docs/overview.md +487 -485
  127. package/docs/payments.md +94 -0
  128. package/docs/proof-comms-triggers.md +142 -142
  129. package/docs/proof-ownership-transfer.md +155 -155
  130. package/docs/proof-product-data-scoping.md +462 -462
  131. package/docs/proof-share-grants.md +305 -305
  132. package/docs/realtime.md +149 -139
  133. package/docs/service-accounts.md +64 -64
  134. package/docs/standard-query.md +196 -187
  135. package/docs/tag-codes.md +97 -97
  136. package/docs/tag-ranges.md +106 -106
  137. package/docs/theme-lookbook.v1.json +120 -120
  138. package/docs/theme-tokens.md +252 -252
  139. package/docs/upgrading-to-3.md +550 -532
  140. package/docs/wallet-passes.md +107 -107
  141. package/docs/websites.md +123 -123
  142. package/openapi.yaml +426 -3
  143. package/package.json +91 -91
  144. package/scripts/headless-check.mjs +87 -87
  145. package/scripts/lib/bare-imports.mjs +57 -57
  146. package/scripts/lib/keyed-app-data.mjs +21 -21
  147. package/scripts/lib/upgrade.mjs +708 -668
  148. package/scripts/publish.mjs +272 -272
  149. package/scripts/register-release.mjs +91 -91
  150. package/scripts/upgrade.mjs +79 -79
  151. package/upgrade/3.json +2 -2
package/openapi.yaml CHANGED
@@ -6112,7 +6112,7 @@ paths:
6112
6112
  post:
6113
6113
  tags:
6114
6114
  - order
6115
- summary: Get comprehensive scan analytics for all tags in an order.
6115
+ summary: order.getAnalytics
6116
6116
  operationId: order_getAnalytics
6117
6117
  security:
6118
6118
  - bearerAuth: []
@@ -7411,7 +7411,7 @@ paths:
7411
7411
  post:
7412
7412
  tags:
7413
7413
  - proof
7414
- summary: "The standard query on proofs (admin only): filter, sort, page, count and total a collection's proofs in one call, and follow a proof to its `product` and its `owner` (the owner's contact)."
7414
+ summary: proof.query
7415
7415
  operationId: proof_query
7416
7416
  security:
7417
7417
  - bearerAuth: []
@@ -8913,7 +8913,7 @@ paths:
8913
8913
  post:
8914
8914
  tags:
8915
8915
  - authKit
8916
- summary: Sign in with LinkedIn (OpenID Connect) via a server-side authorization code (public).
8916
+ summary: authKit.linkedInLogin
8917
8917
  operationId: authKit_linkedInLogin
8918
8918
  security: []
8919
8919
  parameters:
@@ -9894,6 +9894,32 @@ paths:
9894
9894
  application/json:
9895
9895
  schema:
9896
9896
  $ref: "#/components/schemas/CreateBlockInput"
9897
+ /checkout:
9898
+ post:
9899
+ tags:
9900
+ - bookings
9901
+ summary: Book and pay.
9902
+ operationId: bookings_checkout
9903
+ security: []
9904
+ responses:
9905
+ 200:
9906
+ description: Success
9907
+ content:
9908
+ application/json:
9909
+ schema:
9910
+ $ref: "#/components/schemas/BookingCheckoutResult"
9911
+ 400:
9912
+ description: Bad request
9913
+ 401:
9914
+ description: Unauthorized
9915
+ 404:
9916
+ description: Not found
9917
+ requestBody:
9918
+ required: true
9919
+ content:
9920
+ application/json:
9921
+ schema:
9922
+ $ref: "#/components/schemas/BookingCheckoutInput"
9897
9923
  /freebusy:
9898
9924
  get:
9899
9925
  tags:
@@ -13946,6 +13972,65 @@ paths:
13946
13972
  description: Unauthorized
13947
13973
  404:
13948
13974
  description: Not found
13975
+ /{bookingId}/pay:
13976
+ post:
13977
+ tags:
13978
+ - bookings
13979
+ summary: "An approved request's pay link, for an app with its own pay page (the link in the email goes straight to Stripe)."
13980
+ operationId: bookings_pay
13981
+ security: []
13982
+ parameters:
13983
+ - name: bookingId
13984
+ in: path
13985
+ required: true
13986
+ schema:
13987
+ type: string
13988
+ responses:
13989
+ 200:
13990
+ description: Success
13991
+ content:
13992
+ application/json:
13993
+ schema:
13994
+ $ref: "#/components/schemas/BookingPayLinkResult"
13995
+ 400:
13996
+ description: Bad request
13997
+ 401:
13998
+ description: Unauthorized
13999
+ 404:
14000
+ description: Not found
14001
+ /{bookingId}/refund:
14002
+ post:
14003
+ tags:
14004
+ - bookings
14005
+ summary: "Refund a paid booking without cancelling it (admin): all that's left, or `amount` (minor units)."
14006
+ operationId: bookings_refund
14007
+ security: []
14008
+ parameters:
14009
+ - name: bookingId
14010
+ in: path
14011
+ required: true
14012
+ schema:
14013
+ type: string
14014
+ responses:
14015
+ 200:
14016
+ description: Success
14017
+ content:
14018
+ application/json:
14019
+ schema:
14020
+ $ref: "#/components/schemas/BookingRefundResult"
14021
+ 400:
14022
+ description: Bad request
14023
+ 401:
14024
+ description: Unauthorized
14025
+ 404:
14026
+ description: Not found
14027
+ requestBody:
14028
+ required: true
14029
+ content:
14030
+ application/json:
14031
+ schema:
14032
+ type: object
14033
+ additionalProperties: true
13949
14034
  /{conditionId}:
13950
14035
  get:
13951
14036
  tags:
@@ -24474,6 +24559,8 @@ components:
24474
24559
  $ref: "#/components/schemas/BookingAllocation"
24475
24560
  editToken:
24476
24561
  type: string
24562
+ payment:
24563
+ $ref: "#/components/schemas/BookingPayment"
24477
24564
  required:
24478
24565
  - id
24479
24566
  - collectionId
@@ -25024,6 +25111,166 @@ components:
25024
25111
  $ref: "#/components/schemas/ScheduleOverride"
25025
25112
  required:
25026
25113
  - timezone
25114
+ BookingPaymentLine:
25115
+ type: object
25116
+ properties:
25117
+ priceId:
25118
+ type: string
25119
+ label:
25120
+ type: string
25121
+ unitAmount:
25122
+ type: number
25123
+ quantity:
25124
+ type: number
25125
+ required:
25126
+ - priceId
25127
+ - label
25128
+ - unitAmount
25129
+ - quantity
25130
+ BookingPayment:
25131
+ type: object
25132
+ properties:
25133
+ status:
25134
+ type: string
25135
+ enum:
25136
+ - awaiting
25137
+ - paid
25138
+ - partially_refunded
25139
+ - refunded
25140
+ - waived
25141
+ total:
25142
+ type: number
25143
+ currency:
25144
+ type: string
25145
+ refunded:
25146
+ type: number
25147
+ lines:
25148
+ type: array
25149
+ items:
25150
+ $ref: "#/components/schemas/BookingPaymentLine"
25151
+ paidAt:
25152
+ type: string
25153
+ payBy:
25154
+ type: string
25155
+ requested:
25156
+ type: boolean
25157
+ link:
25158
+ type: string
25159
+ required:
25160
+ - status
25161
+ - total
25162
+ - currency
25163
+ - refunded
25164
+ - lines
25165
+ BookingPrice:
25166
+ type: object
25167
+ properties:
25168
+ id:
25169
+ type: string
25170
+ label:
25171
+ type: string
25172
+ amount:
25173
+ type: number
25174
+ durationMinutes:
25175
+ type: number
25176
+ resourceIds:
25177
+ type: array
25178
+ items:
25179
+ type: string
25180
+ required:
25181
+ - id
25182
+ - label
25183
+ - amount
25184
+ BookingPaymentsConfig:
25185
+ type: object
25186
+ properties:
25187
+ required:
25188
+ type: boolean
25189
+ currency:
25190
+ type: string
25191
+ prices:
25192
+ type: array
25193
+ items:
25194
+ $ref: "#/components/schemas/BookingPrice"
25195
+ sessionMinutes:
25196
+ type: number
25197
+ ownerCancelRefund:
25198
+ type: string
25199
+ enum:
25200
+ - full
25201
+ - none
25202
+ payWithinHours:
25203
+ type: number
25204
+ successUrl:
25205
+ type: string
25206
+ cancelUrl:
25207
+ type: string
25208
+ allowedHosts:
25209
+ type: array
25210
+ items:
25211
+ type: string
25212
+ BookingPriceLine:
25213
+ type: object
25214
+ properties:
25215
+ priceId:
25216
+ type: string
25217
+ quantity:
25218
+ type: number
25219
+ required:
25220
+ - priceId
25221
+ BookingCheckoutInput:
25222
+ type: object
25223
+ properties:
25224
+ lines:
25225
+ type: array
25226
+ items:
25227
+ $ref: "#/components/schemas/BookingPriceLine"
25228
+ priceId:
25229
+ type: string
25230
+ email:
25231
+ type: string
25232
+ successUrl:
25233
+ type: string
25234
+ cancelUrl:
25235
+ type: string
25236
+ customer:
25237
+ type: object
25238
+ additionalProperties: true
25239
+ BookingCheckoutResult:
25240
+ type: object
25241
+ properties:
25242
+ booking:
25243
+ $ref: "#/components/schemas/Booking"
25244
+ editToken:
25245
+ type: string
25246
+ checkoutUrl:
25247
+ type: string
25248
+ expiresAt:
25249
+ type: string
25250
+ total:
25251
+ type: number
25252
+ currency:
25253
+ type: string
25254
+ request:
25255
+ type: boolean
25256
+ required:
25257
+ - booking
25258
+ - checkoutUrl
25259
+ - expiresAt
25260
+ - total
25261
+ - currency
25262
+ BookingPayLinkResult:
25263
+ type: object
25264
+ properties:
25265
+ checkoutUrl:
25266
+ type: string
25267
+ done:
25268
+ type: string
25269
+ enum:
25270
+ - paid
25271
+ - closed
25272
+ url:
25273
+ type: string
25027
25274
  BookingResourceRef:
25028
25275
  type: object
25029
25276
  properties:
@@ -25086,6 +25333,8 @@ components:
25086
25333
  - fri
25087
25334
  - sat
25088
25335
  - sun
25336
+ BookingRefundResult:
25337
+ $ref: "#/components/schemas/Booking"
25089
25338
  ListBroadcastsQuery:
25090
25339
  type: object
25091
25340
  properties:
@@ -33621,6 +33870,180 @@ components:
33621
33870
  enum:
33622
33871
  - sales
33623
33872
  - purchase
33873
+ PaymentsPublicConfig:
33874
+ type: object
33875
+ properties:
33876
+ ready:
33877
+ type: boolean
33878
+ publishableKey:
33879
+ type: string
33880
+ accountId:
33881
+ type: string
33882
+ required:
33883
+ - ready
33884
+ - publishableKey
33885
+ - accountId
33886
+ PaymentIntentInput:
33887
+ type: object
33888
+ properties:
33889
+ appId:
33890
+ type: string
33891
+ amount:
33892
+ type: number
33893
+ currency:
33894
+ type: string
33895
+ email:
33896
+ type: string
33897
+ description:
33898
+ type: string
33899
+ reference:
33900
+ type: string
33901
+ metadata:
33902
+ type: object
33903
+ additionalProperties:
33904
+ type: object
33905
+ additionalProperties: true
33906
+ cardOnly:
33907
+ type: boolean
33908
+ idempotencyKey:
33909
+ type: string
33910
+ required:
33911
+ - appId
33912
+ - amount
33913
+ - currency
33914
+ PaymentIntentResult:
33915
+ type: object
33916
+ properties:
33917
+ paymentIntentId:
33918
+ type: string
33919
+ clientSecret:
33920
+ type: string
33921
+ publishableKey:
33922
+ type: string
33923
+ accountId:
33924
+ type: string
33925
+ amount:
33926
+ type: number
33927
+ currency:
33928
+ type: string
33929
+ fee:
33930
+ type: number
33931
+ required:
33932
+ - paymentIntentId
33933
+ - clientSecret
33934
+ - publishableKey
33935
+ - accountId
33936
+ - amount
33937
+ - currency
33938
+ - fee
33939
+ PaymentsStatus:
33940
+ type: object
33941
+ properties:
33942
+ connected:
33943
+ type: boolean
33944
+ accountId:
33945
+ type: string
33946
+ chargesEnabled:
33947
+ type: boolean
33948
+ detailsSubmitted:
33949
+ type: boolean
33950
+ payoutsEnabled:
33951
+ type: boolean
33952
+ platformReady:
33953
+ type: boolean
33954
+ publishableKeySet:
33955
+ type: boolean
33956
+ fees:
33957
+ type: array
33958
+ items:
33959
+ type: object
33960
+ additionalProperties: true
33961
+ required:
33962
+ - connected
33963
+ - platformReady
33964
+ - publishableKeySet
33965
+ - fees
33966
+ PaymentsConnectInput:
33967
+ type: object
33968
+ properties:
33969
+ returnUrl:
33970
+ type: string
33971
+ refreshUrl:
33972
+ type: string
33973
+ country:
33974
+ type: string
33975
+ required:
33976
+ - returnUrl
33977
+ - refreshUrl
33978
+ PaymentRecord:
33979
+ type: object
33980
+ properties:
33981
+ id:
33982
+ type: string
33983
+ amount:
33984
+ type: number
33985
+ amountReceived:
33986
+ type: number
33987
+ currency:
33988
+ type: string
33989
+ status:
33990
+ type: string
33991
+ created:
33992
+ type: string
33993
+ email:
33994
+ type: string
33995
+ metadata:
33996
+ type: object
33997
+ additionalProperties:
33998
+ type: string
33999
+ required:
34000
+ - id
34001
+ - amount
34002
+ - amountReceived
34003
+ - currency
34004
+ - status
34005
+ - created
34006
+ - email
34007
+ - metadata
34008
+ PaymentListParams:
34009
+ type: object
34010
+ properties:
34011
+ appId:
34012
+ type: string
34013
+ since:
34014
+ type: string
34015
+ limit:
34016
+ type: number
34017
+ after:
34018
+ type: string
34019
+ PaymentList:
34020
+ type: object
34021
+ properties:
34022
+ data:
34023
+ type: array
34024
+ items:
34025
+ $ref: "#/components/schemas/PaymentRecord"
34026
+ hasMore:
34027
+ type: boolean
34028
+ next:
34029
+ type: string
34030
+ required:
34031
+ - data
34032
+ - hasMore
34033
+ - next
34034
+ PaymentDomainResult:
34035
+ type: object
34036
+ properties:
34037
+ domain:
34038
+ type: string
34039
+ applePay:
34040
+ type: string
34041
+ googlePay:
34042
+ type: string
34043
+ required:
34044
+ - domain
34045
+ - applePay
34046
+ - googlePay
33624
34047
  ProductKey:
33625
34048
  type: object
33626
34049
  properties:
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
- {
2
- "name": "@proveanything/smartlinks",
3
- "version": "3.0.0-alpha.2",
4
- "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.js",
12
- "default": "./dist/index.js"
13
- },
14
- "./testing": {
15
- "types": "./dist/testing/index.d.ts",
16
- "import": "./dist/testing/index.js",
17
- "default": "./dist/testing/index.js"
18
- },
19
- "./*": {
20
- "types": "./dist/*.d.ts",
21
- "import": "./dist/*.js",
22
- "default": "./dist/*.js"
23
- },
24
- "./baseline.css": "./dist/baseline.css",
25
- "./baseline.classes.json": "./dist/baseline.classes.json",
26
- "./theme.css": "./dist/theme.css",
27
- "./theme-boot.js": "./dist/theme-boot.js",
28
- "./package.json": "./package.json"
29
- },
30
- "bin": {
31
- "smartlinks-register-release": "scripts/register-release.mjs",
32
- "smartlinks-publish": "scripts/publish.mjs",
33
- "smartlinks-doctor": "scripts/doctor.mjs",
34
- "smartlinks-headless": "scripts/headless-check.mjs",
35
- "smartlinks-upgrade": "scripts/upgrade.mjs"
36
- },
37
- "files": [
38
- "dist/",
39
- "docs/",
40
- "upgrade/",
41
- "scripts/register-release.mjs",
42
- "scripts/publish.mjs",
43
- "scripts/doctor.mjs",
44
- "scripts/upgrade.mjs",
45
- "scripts/headless-check.mjs",
46
- "scripts/lib/",
47
- "openapi.yaml",
48
- "README.md"
49
- ],
50
- "scripts": {
51
- "test": "node test/run.cjs",
52
- "build": "node scripts/write-version.mjs && node scripts/upgrade-table.mjs --check && tsc && node scripts/fix-esm-extensions.mjs && node generate-api-summary.cjs && node generate-openapi.cjs && node scripts/copy-docs-to-dist.cjs && node scripts/build-baseline.mjs",
53
- "docs": "typedoc",
54
- "docs:summary": "node generate-api-summary.cjs",
55
- "docs:openapi": "node generate-openapi.cjs",
56
- "docs:openapi:lint": "npx --yes @redocly/cli@latest lint openapi.yaml",
57
- "docs:openapi:check": "node generate-openapi.cjs && npx --yes @redocly/cli@latest lint openapi.yaml",
58
- "build:docs": "tsc build-docs.ts --outDir dist && node dist/build-docs.js",
59
- "prepublishOnly": "npm run build",
60
- "docs:upgrade": "node scripts/upgrade-table.mjs"
61
- },
62
- "keywords": [
63
- "smartlinks",
64
- "api",
65
- "authentication",
66
- "traceability",
67
- "blockchain",
68
- "typescript",
69
- "sdk"
70
- ],
71
- "author": "Glenn Shoosmith",
72
- "license": "MIT",
73
- "publishConfig": {
74
- "access": "public"
75
- },
76
- "dependencies": {
77
- "cross-fetch": "^3.1.5",
78
- "es-module-lexer": "^1.7.0"
79
- },
80
- "devDependencies": {
81
- "ts-node": "^10.9.1",
82
- "typedoc": "^0.25.13",
83
- "typedoc-plugin-markdown": "^3.17.1",
84
- "typescript": "^4.9.0"
85
- },
86
- "repository": {
87
- "type": "git",
88
- "url": "https://github.com/Prove-Anything/smartlinks.git"
89
- },
90
- "homepage": "https://smartlinks.app"
91
- }
1
+ {
2
+ "name": "@proveanything/smartlinks",
3
+ "version": "3.0.0-alpha.3",
4
+ "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.js",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "./testing": {
15
+ "types": "./dist/testing/index.d.ts",
16
+ "import": "./dist/testing/index.js",
17
+ "default": "./dist/testing/index.js"
18
+ },
19
+ "./*": {
20
+ "types": "./dist/*.d.ts",
21
+ "import": "./dist/*.js",
22
+ "default": "./dist/*.js"
23
+ },
24
+ "./baseline.css": "./dist/baseline.css",
25
+ "./baseline.classes.json": "./dist/baseline.classes.json",
26
+ "./theme.css": "./dist/theme.css",
27
+ "./theme-boot.js": "./dist/theme-boot.js",
28
+ "./package.json": "./package.json"
29
+ },
30
+ "bin": {
31
+ "smartlinks-register-release": "scripts/register-release.mjs",
32
+ "smartlinks-publish": "scripts/publish.mjs",
33
+ "smartlinks-doctor": "scripts/doctor.mjs",
34
+ "smartlinks-headless": "scripts/headless-check.mjs",
35
+ "smartlinks-upgrade": "scripts/upgrade.mjs"
36
+ },
37
+ "files": [
38
+ "dist/",
39
+ "docs/",
40
+ "upgrade/",
41
+ "scripts/register-release.mjs",
42
+ "scripts/publish.mjs",
43
+ "scripts/doctor.mjs",
44
+ "scripts/upgrade.mjs",
45
+ "scripts/headless-check.mjs",
46
+ "scripts/lib/",
47
+ "openapi.yaml",
48
+ "README.md"
49
+ ],
50
+ "scripts": {
51
+ "test": "node test/run.cjs",
52
+ "build": "node scripts/write-version.mjs && node scripts/upgrade-table.mjs --check && tsc && node scripts/fix-esm-extensions.mjs && node generate-api-summary.cjs && node generate-openapi.cjs && node scripts/copy-docs-to-dist.cjs && node scripts/build-baseline.mjs",
53
+ "docs": "typedoc",
54
+ "docs:summary": "node generate-api-summary.cjs",
55
+ "docs:openapi": "node generate-openapi.cjs",
56
+ "docs:openapi:lint": "npx --yes @redocly/cli@latest lint openapi.yaml",
57
+ "docs:openapi:check": "node generate-openapi.cjs && npx --yes @redocly/cli@latest lint openapi.yaml",
58
+ "build:docs": "tsc build-docs.ts --outDir dist && node dist/build-docs.js",
59
+ "prepublishOnly": "npm run build",
60
+ "docs:upgrade": "node scripts/upgrade-table.mjs"
61
+ },
62
+ "keywords": [
63
+ "smartlinks",
64
+ "api",
65
+ "authentication",
66
+ "traceability",
67
+ "blockchain",
68
+ "typescript",
69
+ "sdk"
70
+ ],
71
+ "author": "Glenn Shoosmith",
72
+ "license": "MIT",
73
+ "publishConfig": {
74
+ "access": "public"
75
+ },
76
+ "dependencies": {
77
+ "cross-fetch": "^3.1.5",
78
+ "es-module-lexer": "^1.7.0"
79
+ },
80
+ "devDependencies": {
81
+ "ts-node": "^10.9.1",
82
+ "typedoc": "^0.25.13",
83
+ "typedoc-plugin-markdown": "^3.17.1",
84
+ "typescript": "^4.9.0"
85
+ },
86
+ "repository": {
87
+ "type": "git",
88
+ "url": "https://github.com/Prove-Anything/smartlinks.git"
89
+ },
90
+ "homepage": "https://smartlinks.app"
91
+ }