@proveanything/smartlinks 1.13.6 → 1.13.9

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
@@ -2198,39 +2198,6 @@ paths:
2198
2198
  application/json:
2199
2199
  schema:
2200
2200
  $ref: "#/components/schemas/BroadcastSendTestRequest"
2201
- /admin/collection/{collectionId}/comm.send:
2202
- post:
2203
- tags:
2204
- - comms
2205
- summary: Send a single transactional message to one contact using a template.
2206
- operationId: comms_sendTransactional
2207
- security:
2208
- - bearerAuth: []
2209
- parameters:
2210
- - name: collectionId
2211
- in: path
2212
- required: true
2213
- schema:
2214
- type: string
2215
- responses:
2216
- 200:
2217
- description: Success
2218
- content:
2219
- application/json:
2220
- schema:
2221
- $ref: "#/components/schemas/TransactionalSendResult"
2222
- 400:
2223
- description: Bad request
2224
- 401:
2225
- description: Unauthorized
2226
- 404:
2227
- description: Not found
2228
- requestBody:
2229
- required: true
2230
- content:
2231
- application/json:
2232
- schema:
2233
- $ref: "#/components/schemas/TransactionalSendRequest"
2234
2201
  /admin/collection/{collectionId}/comm.settings:
2235
2202
  get:
2236
2203
  tags:
@@ -7856,6 +7823,39 @@ paths:
7856
7823
  application/json:
7857
7824
  schema:
7858
7825
  $ref: "#/components/schemas/TranslationUpdateRequest"
7826
+ /admin/collection/{encodedCollectionId}/comm/send:
7827
+ post:
7828
+ tags:
7829
+ - comms
7830
+ summary: Send a single transactional message to one contact using a template.
7831
+ operationId: comms_sendTransactional
7832
+ security:
7833
+ - bearerAuth: []
7834
+ parameters:
7835
+ - name: encodedCollectionId
7836
+ in: path
7837
+ required: true
7838
+ schema:
7839
+ type: string
7840
+ responses:
7841
+ 200:
7842
+ description: Success
7843
+ content:
7844
+ application/json:
7845
+ schema:
7846
+ $ref: "#/components/schemas/TransactionalSendResult"
7847
+ 400:
7848
+ description: Bad request
7849
+ 401:
7850
+ description: Unauthorized
7851
+ 404:
7852
+ description: Not found
7853
+ requestBody:
7854
+ required: true
7855
+ content:
7856
+ application/json:
7857
+ schema:
7858
+ $ref: "#/components/schemas/TransactionalSendRequest"
7859
7859
  /authKit/{authKitId}/config:
7860
7860
  get:
7861
7861
  tags:
@@ -8329,7 +8329,7 @@ paths:
8329
8329
  post:
8330
8330
  tags:
8331
8331
  - authKit
8332
- summary: Verify phone verification code (public).
8332
+ summary: Upsert contact identity after lightweight verification (public).
8333
8333
  operationId: authKit_requestPasswordReset
8334
8334
  security: []
8335
8335
  parameters:
@@ -8391,6 +8391,64 @@ paths:
8391
8391
  schema:
8392
8392
  type: object
8393
8393
  additionalProperties: true
8394
+ /authkit/{clientId}/auth/sms/send:
8395
+ post:
8396
+ tags:
8397
+ - authKit
8398
+ summary: Send an SMS click-to-verify link (public).
8399
+ operationId: authKit_sendSmsVerify
8400
+ security: []
8401
+ parameters:
8402
+ - name: clientId
8403
+ in: path
8404
+ required: true
8405
+ schema:
8406
+ type: string
8407
+ responses:
8408
+ 200:
8409
+ description: Success
8410
+ content:
8411
+ application/json:
8412
+ schema:
8413
+ $ref: "#/components/schemas/SendSmsVerifyResponse"
8414
+ 400:
8415
+ description: Bad request
8416
+ 401:
8417
+ description: Unauthorized
8418
+ 404:
8419
+ description: Not found
8420
+ requestBody:
8421
+ required: true
8422
+ content:
8423
+ application/json:
8424
+ schema:
8425
+ $ref: "#/components/schemas/SendSmsVerifyRequest"
8426
+ /authkit/{clientId}/auth/sms/verify:
8427
+ post:
8428
+ tags:
8429
+ - authKit
8430
+ summary: Verify an SMS click-to-verify token via API (public).
8431
+ operationId: authKit_verifySms
8432
+ security: []
8433
+ parameters:
8434
+ - name: clientId
8435
+ in: path
8436
+ required: true
8437
+ schema:
8438
+ type: string
8439
+ responses:
8440
+ 200:
8441
+ description: Success
8442
+ content:
8443
+ application/json:
8444
+ schema:
8445
+ $ref: "#/components/schemas/VerifySmsResponse"
8446
+ 400:
8447
+ description: Bad request
8448
+ 401:
8449
+ description: Unauthorized
8450
+ 404:
8451
+ description: Not found
8394
8452
  /authkit/{clientId}/auth/verify-email:
8395
8453
  post:
8396
8454
  tags:
@@ -8443,6 +8501,122 @@ paths:
8443
8501
  description: Unauthorized
8444
8502
  404:
8445
8503
  description: Not found
8504
+ /authkit/{clientId}/auth/whatsapp/send:
8505
+ post:
8506
+ tags:
8507
+ - authKit
8508
+ summary: Send a WhatsApp verification deep-link (public).
8509
+ operationId: authKit_sendWhatsApp
8510
+ security: []
8511
+ parameters:
8512
+ - name: clientId
8513
+ in: path
8514
+ required: true
8515
+ schema:
8516
+ type: string
8517
+ responses:
8518
+ 200:
8519
+ description: Success
8520
+ content:
8521
+ application/json:
8522
+ schema:
8523
+ $ref: "#/components/schemas/SendWhatsAppResponse"
8524
+ 400:
8525
+ description: Bad request
8526
+ 401:
8527
+ description: Unauthorized
8528
+ 404:
8529
+ description: Not found
8530
+ requestBody:
8531
+ required: true
8532
+ content:
8533
+ application/json:
8534
+ schema:
8535
+ $ref: "#/components/schemas/SendWhatsAppRequest"
8536
+ /authkit/{clientId}/auth/whatsapp/status:
8537
+ get:
8538
+ tags:
8539
+ - authKit
8540
+ summary: Poll WhatsApp verification status for a token (public).
8541
+ operationId: authKit_getWhatsAppStatus
8542
+ security: []
8543
+ parameters:
8544
+ - name: clientId
8545
+ in: path
8546
+ required: true
8547
+ schema:
8548
+ type: string
8549
+ responses:
8550
+ 200:
8551
+ description: Success
8552
+ content:
8553
+ application/json:
8554
+ schema:
8555
+ $ref: "#/components/schemas/WhatsAppStatusResponse"
8556
+ 400:
8557
+ description: Bad request
8558
+ 401:
8559
+ description: Unauthorized
8560
+ 404:
8561
+ description: Not found
8562
+ /authkit/{clientId}/auth/whatsapp/verify:
8563
+ post:
8564
+ tags:
8565
+ - authKit
8566
+ summary: Manually verify WhatsApp token if inbound webhook path is unavailable (public).
8567
+ operationId: authKit_verifyWhatsApp
8568
+ security: []
8569
+ parameters:
8570
+ - name: clientId
8571
+ in: path
8572
+ required: true
8573
+ schema:
8574
+ type: string
8575
+ responses:
8576
+ 200:
8577
+ description: Success
8578
+ content:
8579
+ application/json:
8580
+ schema:
8581
+ $ref: "#/components/schemas/VerifyWhatsAppResponse"
8582
+ 400:
8583
+ description: Bad request
8584
+ 401:
8585
+ description: Unauthorized
8586
+ 404:
8587
+ description: Not found
8588
+ /authkit/{clientId}/contact/upsert:
8589
+ post:
8590
+ tags:
8591
+ - authKit
8592
+ summary: Upsert contact identity after lightweight verification (public).
8593
+ operationId: authKit_upsertContact
8594
+ security: []
8595
+ parameters:
8596
+ - name: clientId
8597
+ in: path
8598
+ required: true
8599
+ schema:
8600
+ type: string
8601
+ responses:
8602
+ 200:
8603
+ description: Success
8604
+ content:
8605
+ application/json:
8606
+ schema:
8607
+ $ref: "#/components/schemas/UpsertContactResponse"
8608
+ 400:
8609
+ description: Bad request
8610
+ 401:
8611
+ description: Unauthorized
8612
+ 404:
8613
+ description: Not found
8614
+ requestBody:
8615
+ required: true
8616
+ content:
8617
+ application/json:
8618
+ schema:
8619
+ $ref: "#/components/schemas/UpsertContactRequest"
8446
8620
  /platform/location:
8447
8621
  post:
8448
8622
  tags:
@@ -12328,7 +12502,7 @@ paths:
12328
12502
  get:
12329
12503
  tags:
12330
12504
  - records
12331
- summary: List records with optional query parameters GET /records
12505
+ summary: "List records with optional query parameters GET /records Public/owner callers only receive records with `status: \"active\"`."
12332
12506
  operationId: records_list
12333
12507
  security: []
12334
12508
  parameters:
@@ -12347,6 +12521,11 @@ paths:
12347
12521
  required: true
12348
12522
  schema:
12349
12523
  type: string
12524
+ - name: status
12525
+ in: query
12526
+ required: false
12527
+ schema:
12528
+ type: string
12350
12529
  - name: recordType
12351
12530
  in: query
12352
12531
  required: false
@@ -16266,6 +16445,8 @@ components:
16266
16445
  RecordListQueryParams:
16267
16446
  type: object
16268
16447
  properties:
16448
+ status:
16449
+ type: string
16269
16450
  recordType:
16270
16451
  type: string
16271
16452
  ref:
@@ -17683,6 +17864,139 @@ components:
17683
17864
  required:
17684
17865
  - success
17685
17866
  - message
17867
+ SendWhatsAppRequest:
17868
+ type: object
17869
+ properties:
17870
+ phoneNumber:
17871
+ type: string
17872
+ redirectUrl:
17873
+ type: string
17874
+ required:
17875
+ - phoneNumber
17876
+ - redirectUrl
17877
+ SendWhatsAppResponse:
17878
+ type: object
17879
+ properties:
17880
+ waLink:
17881
+ type: string
17882
+ code:
17883
+ type: string
17884
+ token:
17885
+ type: string
17886
+ expiresAt:
17887
+ type: string
17888
+ required:
17889
+ - waLink
17890
+ - code
17891
+ - token
17892
+ - expiresAt
17893
+ VerifyWhatsAppResponse:
17894
+ type: object
17895
+ properties:
17896
+ success:
17897
+ type: boolean
17898
+ verified:
17899
+ type: boolean
17900
+ redirectUrl:
17901
+ type: string
17902
+ required:
17903
+ - success
17904
+ - verified
17905
+ WhatsAppStatusResponse:
17906
+ type: object
17907
+ properties:
17908
+ ok:
17909
+ type: boolean
17910
+ status:
17911
+ $ref: "#/components/schemas/VerifyStatus"
17912
+ verified:
17913
+ type: boolean
17914
+ redirectUrl:
17915
+ type: string
17916
+ phoneNumber:
17917
+ type: string
17918
+ updatedAt: {}
17919
+ required:
17920
+ - ok
17921
+ - status
17922
+ - verified
17923
+ SendSmsVerifyRequest:
17924
+ type: object
17925
+ properties:
17926
+ phoneNumber:
17927
+ type: string
17928
+ redirectUrl:
17929
+ type: string
17930
+ ctaText:
17931
+ type: string
17932
+ required:
17933
+ - phoneNumber
17934
+ - redirectUrl
17935
+ SendSmsVerifyResponse:
17936
+ type: object
17937
+ properties:
17938
+ success:
17939
+ type: boolean
17940
+ expiresAt:
17941
+ type: string
17942
+ required:
17943
+ - success
17944
+ - expiresAt
17945
+ VerifySmsResponse:
17946
+ type: object
17947
+ properties:
17948
+ verified:
17949
+ type: boolean
17950
+ redirectUrl:
17951
+ type: string
17952
+ phoneNumber:
17953
+ type: string
17954
+ required:
17955
+ - verified
17956
+ UpsertContactRequest:
17957
+ type: object
17958
+ properties:
17959
+ collectionId:
17960
+ type: string
17961
+ phone:
17962
+ type: string
17963
+ email:
17964
+ type: string
17965
+ name:
17966
+ type: string
17967
+ firstName:
17968
+ type: string
17969
+ lastName:
17970
+ type: string
17971
+ displayName:
17972
+ type: string
17973
+ source:
17974
+ type: string
17975
+ customFields:
17976
+ type: object
17977
+ additionalProperties: true
17978
+ externalIds:
17979
+ type: object
17980
+ additionalProperties: true
17981
+ UpsertContactResponse:
17982
+ type: object
17983
+ properties:
17984
+ ok:
17985
+ type: boolean
17986
+ collectionId:
17987
+ type: string
17988
+ contactId:
17989
+ type: string
17990
+ userId:
17991
+ type: string
17992
+ created:
17993
+ type: boolean
17994
+ required:
17995
+ - ok
17996
+ - collectionId
17997
+ - contactId
17998
+ - userId
17999
+ - created
17686
18000
  AuthKitBrandingConfig:
17687
18001
  type: object
17688
18002
  properties:
@@ -18865,6 +19179,7 @@ components:
18865
19179
  enum:
18866
19180
  - email
18867
19181
  - sms
19182
+ - whatsapp
18868
19183
  - push
18869
19184
  - wallet
18870
19185
  - preferred
@@ -18906,6 +19221,7 @@ components:
18906
19221
  enum:
18907
19222
  - email
18908
19223
  - sms
19224
+ - whatsapp
18909
19225
  - push
18910
19226
  - wallet
18911
19227
  messageId:
@@ -20805,6 +21121,10 @@ components:
20805
21121
  $ref: "#/components/schemas/InteractionDisplay"
20806
21122
  interactionType:
20807
21123
  type: string
21124
+ effects:
21125
+ type: array
21126
+ items:
21127
+ $ref: "#/components/schemas/InteractionEffect"
20808
21128
  createdAt:
20809
21129
  type: string
20810
21130
  required:
@@ -20880,6 +21200,183 @@ components:
20880
21200
  - FORBIDDEN
20881
21201
  required:
20882
21202
  - error
21203
+ InteractionEffect:
21204
+ type: object
21205
+ properties:
21206
+ type:
21207
+ $ref: "#/components/schemas/EffectType"
21208
+ config:
21209
+ $ref: "#/components/schemas/EffectConfig"
21210
+ required:
21211
+ - type
21212
+ LoyaltyEffectConfig:
21213
+ type: object
21214
+ properties: {}
21215
+ TransactionalEffectConfig:
21216
+ type: object
21217
+ properties:
21218
+ templateId:
21219
+ type: string
21220
+ channel:
21221
+ type: string
21222
+ enum:
21223
+ - email
21224
+ - sms
21225
+ - push
21226
+ - whatsapp
21227
+ - wallet
21228
+ - preferred
21229
+ props:
21230
+ type: object
21231
+ additionalProperties: true
21232
+ include:
21233
+ type: object
21234
+ additionalProperties: true
21235
+ productId:
21236
+ type: string
21237
+ proofId:
21238
+ type: string
21239
+ user:
21240
+ type: boolean
21241
+ appCase:
21242
+ type: string
21243
+ appThread:
21244
+ type: string
21245
+ appRecord:
21246
+ type: string
21247
+ appId:
21248
+ type: string
21249
+ required:
21250
+ - templateId
21251
+ WebhookEffectConfig:
21252
+ type: object
21253
+ properties:
21254
+ url:
21255
+ type: string
21256
+ method:
21257
+ type: string
21258
+ enum:
21259
+ - GET
21260
+ - POST
21261
+ - PUT
21262
+ - PATCH
21263
+ - DELETE
21264
+ headers:
21265
+ type: object
21266
+ additionalProperties:
21267
+ type: string
21268
+ body:
21269
+ type: object
21270
+ additionalProperties: true
21271
+ timeout:
21272
+ type: number
21273
+ required:
21274
+ - url
21275
+ TagEffectConfig:
21276
+ type: object
21277
+ properties:
21278
+ tags:
21279
+ type: array
21280
+ items:
21281
+ type: string
21282
+ action:
21283
+ type: string
21284
+ enum:
21285
+ - add
21286
+ - remove
21287
+ required:
21288
+ - tags
21289
+ AppRecordEffectConfig:
21290
+ type: object
21291
+ properties:
21292
+ appId:
21293
+ type: string
21294
+ recordType:
21295
+ type: string
21296
+ singletonPer:
21297
+ type: string
21298
+ data:
21299
+ type: object
21300
+ additionalProperties: true
21301
+ anchors:
21302
+ type: object
21303
+ additionalProperties: true
21304
+ productId:
21305
+ type: string
21306
+ proofId:
21307
+ type: string
21308
+ variantId:
21309
+ type: string
21310
+ batchId:
21311
+ type: string
21312
+ SegmentEffectConfig:
21313
+ type: object
21314
+ properties:
21315
+ segmentId:
21316
+ type: string
21317
+ action:
21318
+ type: string
21319
+ enum:
21320
+ - add
21321
+ - remove
21322
+ required:
21323
+ - segmentId
21324
+ InteractionEventContext:
21325
+ type: object
21326
+ properties:
21327
+ eventId:
21328
+ type: string
21329
+ collectionId:
21330
+ type: string
21331
+ appId:
21332
+ type: string
21333
+ interactionId:
21334
+ type: string
21335
+ contactId:
21336
+ type: string
21337
+ userId:
21338
+ type: string
21339
+ productId:
21340
+ type: string
21341
+ proofId:
21342
+ type: string
21343
+ variantId:
21344
+ type: string
21345
+ batchId:
21346
+ type: string
21347
+ outcome:
21348
+ type: string
21349
+ eventType:
21350
+ type: string
21351
+ source:
21352
+ type: string
21353
+ timestamp:
21354
+ type: string
21355
+ metadata:
21356
+ type: object
21357
+ additionalProperties: true
21358
+ broadcastId:
21359
+ type: string
21360
+ journeyId:
21361
+ type: string
21362
+ required:
21363
+ - eventId
21364
+ - collectionId
21365
+ - appId
21366
+ - interactionId
21367
+ - contactId
21368
+ - userId
21369
+ - productId
21370
+ - proofId
21371
+ - variantId
21372
+ - batchId
21373
+ - outcome
21374
+ - eventType
21375
+ - source
21376
+ - timestamp
21377
+ - metadata
21378
+ - broadcastId
21379
+ - journeyId
20883
21380
  Job:
20884
21381
  type: object
20885
21382
  properties:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.13.6",
3
+ "version": "1.13.9",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",