@proveanything/smartlinks 2.1.28 → 2.1.29
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/docs/API_SUMMARY.md +5 -10
- package/dist/openapi.yaml +0 -8
- package/dist/types/broadcasts.d.ts +2 -4
- package/dist/types/comms.d.ts +1 -4
- package/dist/types/contact.d.ts +0 -1
- package/docs/API_SUMMARY.md +5 -10
- package/openapi.yaml +0 -8
- package/package.json +1 -1
package/dist/docs/API_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smartlinks API Summary
|
|
2
2
|
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.29 | Generated: 2026-11-20T10:17:06.171Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -6041,7 +6041,7 @@ interface BroadcastAppendBulkBody {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
```
|
|
6043
6043
|
|
|
6044
|
-
**BroadcastChannel** = `'email' | 'push' | 'sms'
|
|
6044
|
+
**BroadcastChannel** = `'email' | 'push' | 'sms'`
|
|
6045
6045
|
|
|
6046
6046
|
**BroadcastPreviewResponse** = ``
|
|
6047
6047
|
|
|
@@ -6932,7 +6932,7 @@ interface RegisterMethodResponse {
|
|
|
6932
6932
|
```typescript
|
|
6933
6933
|
interface SubscriptionsResolveRequest {
|
|
6934
6934
|
subject: { type: SubjectType; id: string; productId?: string }
|
|
6935
|
-
hints: { userId?: string; pushEndpoint?: string; email?: string
|
|
6935
|
+
hints: { userId?: string; pushEndpoint?: string; email?: string }
|
|
6936
6936
|
}
|
|
6937
6937
|
```
|
|
6938
6938
|
|
|
@@ -6945,11 +6945,9 @@ interface SubscriptionsResolveResponse {
|
|
|
6945
6945
|
contactId: string
|
|
6946
6946
|
subscribed: boolean
|
|
6947
6947
|
channels?: Partial<Record<BroadcastChannel, boolean>>
|
|
6948
|
-
walletForSubject?: boolean
|
|
6949
6948
|
}>
|
|
6950
6949
|
anySubscribed: boolean
|
|
6951
6950
|
anyMethods: boolean
|
|
6952
|
-
anyWalletForSubject: boolean
|
|
6953
6951
|
}
|
|
6954
6952
|
```
|
|
6955
6953
|
|
|
@@ -7293,7 +7291,7 @@ export interface RegisterMethodResponse { ok: true; contactId: string }
|
|
|
7293
7291
|
|
|
7294
7292
|
export interface SubscriptionsResolveRequest {
|
|
7295
7293
|
subject: { type: SubjectType; id: string; productId?: string }
|
|
7296
|
-
hints: { userId?: string; pushEndpoint?: string; email?: string
|
|
7294
|
+
hints: { userId?: string; pushEndpoint?: string; email?: string }
|
|
7297
7295
|
}
|
|
7298
7296
|
export interface SubscriptionsResolveResponse {
|
|
7299
7297
|
ok: true
|
|
@@ -7302,11 +7300,9 @@ export interface SubscriptionsResolveResponse {
|
|
|
7302
7300
|
contactId: string
|
|
7303
7301
|
subscribed: boolean
|
|
7304
7302
|
channels?: Partial<Record<BroadcastChannel, boolean>>
|
|
7305
|
-
walletForSubject?: boolean
|
|
7306
7303
|
}>
|
|
7307
7304
|
anySubscribed: boolean
|
|
7308
7305
|
anyMethods: boolean
|
|
7309
|
-
anyWalletForSubject: boolean
|
|
7310
7306
|
}
|
|
7311
7307
|
|
|
7312
7308
|
// Transactional send (single-contact, single-message)
|
|
@@ -7434,7 +7430,7 @@ export interface TransactionalSendError {
|
|
|
7434
7430
|
* - `transactional.phone_missing`
|
|
7435
7431
|
* - `transactional.whatsapp_missing`
|
|
7436
7432
|
* - `transactional.no_push_methods`
|
|
7437
|
-
* - `transactional.
|
|
7433
|
+
* - `transactional.no_wallet_passes` (`channel: 'wallet'`: the person has no wallet passes from this app)
|
|
7438
7434
|
* - `transactional.opted_out` (category `'service'`: the person turned that channel off, or the email is suppressed)
|
|
7439
7435
|
* - `transactional.template_or_message` / `transactional.message_invalid` / `transactional.about_invalid`
|
|
7440
7436
|
*/
|
|
@@ -7693,7 +7689,6 @@ interface CommMethodMeta {
|
|
|
7693
7689
|
auth?: string
|
|
7694
7690
|
phone?: string
|
|
7695
7691
|
email?: string
|
|
7696
|
-
walletObjectId?: string
|
|
7697
7692
|
subjectType?: SubjectType
|
|
7698
7693
|
subjectId?: string
|
|
7699
7694
|
productId?: string
|
package/dist/openapi.yaml
CHANGED
|
@@ -27248,7 +27248,6 @@ components:
|
|
|
27248
27248
|
- email
|
|
27249
27249
|
- push
|
|
27250
27250
|
- sms
|
|
27251
|
-
- wallet
|
|
27252
27251
|
BroadcastPreviewResponse:
|
|
27253
27252
|
type: object
|
|
27254
27253
|
additionalProperties: true
|
|
@@ -28797,14 +28796,10 @@ components:
|
|
|
28797
28796
|
type: boolean
|
|
28798
28797
|
channels:
|
|
28799
28798
|
$ref: "#/components/schemas/BroadcastChannel"
|
|
28800
|
-
walletForSubject:
|
|
28801
|
-
type: boolean
|
|
28802
28799
|
anySubscribed:
|
|
28803
28800
|
type: boolean
|
|
28804
28801
|
anyMethods:
|
|
28805
28802
|
type: boolean
|
|
28806
|
-
anyWalletForSubject:
|
|
28807
|
-
type: boolean
|
|
28808
28803
|
required:
|
|
28809
28804
|
- ok
|
|
28810
28805
|
- subject
|
|
@@ -28813,7 +28808,6 @@ components:
|
|
|
28813
28808
|
- subscribed
|
|
28814
28809
|
- anySubscribed
|
|
28815
28810
|
- anyMethods
|
|
28816
|
-
- anyWalletForSubject
|
|
28817
28811
|
TransactionalSendRequest:
|
|
28818
28812
|
type: object
|
|
28819
28813
|
properties:
|
|
@@ -29420,8 +29414,6 @@ components:
|
|
|
29420
29414
|
type: string
|
|
29421
29415
|
email:
|
|
29422
29416
|
type: string
|
|
29423
|
-
walletObjectId:
|
|
29424
|
-
type: string
|
|
29425
29417
|
subjectType:
|
|
29426
29418
|
$ref: "#/components/schemas/SubjectType"
|
|
29427
29419
|
subjectId:
|
|
@@ -3,7 +3,8 @@ export interface ListBroadcastsQuery {
|
|
|
3
3
|
offset?: number;
|
|
4
4
|
appId?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
/** Broadcast channels. Wallet is not one: wallet passes are messaged one-to-one (`comms.send` with `channel: 'wallet'`). */
|
|
7
|
+
export type BroadcastChannel = 'email' | 'push' | 'sms';
|
|
7
8
|
export interface BroadcastRecord {
|
|
8
9
|
id: string;
|
|
9
10
|
collectionId: string;
|
|
@@ -80,9 +81,6 @@ export type BroadcastPreviewResponse = {
|
|
|
80
81
|
} | {
|
|
81
82
|
channel: 'sms';
|
|
82
83
|
body: string;
|
|
83
|
-
} | {
|
|
84
|
-
channel: 'wallet';
|
|
85
|
-
payload: any;
|
|
86
84
|
};
|
|
87
85
|
export interface BroadcastSendTestRequest {
|
|
88
86
|
contactId?: string;
|
package/dist/types/comms.d.ts
CHANGED
|
@@ -294,7 +294,6 @@ export interface SubscriptionsResolveRequest {
|
|
|
294
294
|
userId?: string;
|
|
295
295
|
pushEndpoint?: string;
|
|
296
296
|
email?: string;
|
|
297
|
-
walletObjectId?: string;
|
|
298
297
|
};
|
|
299
298
|
}
|
|
300
299
|
export interface SubscriptionsResolveResponse {
|
|
@@ -308,11 +307,9 @@ export interface SubscriptionsResolveResponse {
|
|
|
308
307
|
contactId: string;
|
|
309
308
|
subscribed: boolean;
|
|
310
309
|
channels?: Partial<Record<BroadcastChannel, boolean>>;
|
|
311
|
-
walletForSubject?: boolean;
|
|
312
310
|
}>;
|
|
313
311
|
anySubscribed: boolean;
|
|
314
312
|
anyMethods: boolean;
|
|
315
|
-
anyWalletForSubject: boolean;
|
|
316
313
|
}
|
|
317
314
|
/**
|
|
318
315
|
* Send a single message to one contact using a template.
|
|
@@ -439,7 +436,7 @@ export interface TransactionalSendError {
|
|
|
439
436
|
* - `transactional.phone_missing`
|
|
440
437
|
* - `transactional.whatsapp_missing`
|
|
441
438
|
* - `transactional.no_push_methods`
|
|
442
|
-
* - `transactional.
|
|
439
|
+
* - `transactional.no_wallet_passes` (`channel: 'wallet'`: the person has no wallet passes from this app)
|
|
443
440
|
* - `transactional.opted_out` (category `'service'`: the person turned that channel off, or the email is suppressed)
|
|
444
441
|
* - `transactional.template_or_message` / `transactional.message_invalid` / `transactional.about_invalid`
|
|
445
442
|
*/
|
package/dist/types/contact.d.ts
CHANGED
package/docs/API_SUMMARY.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Smartlinks API Summary
|
|
2
2
|
|
|
3
|
-
Version: 2.1.
|
|
3
|
+
Version: 2.1.29 | Generated: 2026-11-20T10:17:06.171Z
|
|
4
4
|
|
|
5
5
|
This is a concise summary of all available API functions and types.
|
|
6
6
|
|
|
@@ -6041,7 +6041,7 @@ interface BroadcastAppendBulkBody {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
```
|
|
6043
6043
|
|
|
6044
|
-
**BroadcastChannel** = `'email' | 'push' | 'sms'
|
|
6044
|
+
**BroadcastChannel** = `'email' | 'push' | 'sms'`
|
|
6045
6045
|
|
|
6046
6046
|
**BroadcastPreviewResponse** = ``
|
|
6047
6047
|
|
|
@@ -6932,7 +6932,7 @@ interface RegisterMethodResponse {
|
|
|
6932
6932
|
```typescript
|
|
6933
6933
|
interface SubscriptionsResolveRequest {
|
|
6934
6934
|
subject: { type: SubjectType; id: string; productId?: string }
|
|
6935
|
-
hints: { userId?: string; pushEndpoint?: string; email?: string
|
|
6935
|
+
hints: { userId?: string; pushEndpoint?: string; email?: string }
|
|
6936
6936
|
}
|
|
6937
6937
|
```
|
|
6938
6938
|
|
|
@@ -6945,11 +6945,9 @@ interface SubscriptionsResolveResponse {
|
|
|
6945
6945
|
contactId: string
|
|
6946
6946
|
subscribed: boolean
|
|
6947
6947
|
channels?: Partial<Record<BroadcastChannel, boolean>>
|
|
6948
|
-
walletForSubject?: boolean
|
|
6949
6948
|
}>
|
|
6950
6949
|
anySubscribed: boolean
|
|
6951
6950
|
anyMethods: boolean
|
|
6952
|
-
anyWalletForSubject: boolean
|
|
6953
6951
|
}
|
|
6954
6952
|
```
|
|
6955
6953
|
|
|
@@ -7293,7 +7291,7 @@ export interface RegisterMethodResponse { ok: true; contactId: string }
|
|
|
7293
7291
|
|
|
7294
7292
|
export interface SubscriptionsResolveRequest {
|
|
7295
7293
|
subject: { type: SubjectType; id: string; productId?: string }
|
|
7296
|
-
hints: { userId?: string; pushEndpoint?: string; email?: string
|
|
7294
|
+
hints: { userId?: string; pushEndpoint?: string; email?: string }
|
|
7297
7295
|
}
|
|
7298
7296
|
export interface SubscriptionsResolveResponse {
|
|
7299
7297
|
ok: true
|
|
@@ -7302,11 +7300,9 @@ export interface SubscriptionsResolveResponse {
|
|
|
7302
7300
|
contactId: string
|
|
7303
7301
|
subscribed: boolean
|
|
7304
7302
|
channels?: Partial<Record<BroadcastChannel, boolean>>
|
|
7305
|
-
walletForSubject?: boolean
|
|
7306
7303
|
}>
|
|
7307
7304
|
anySubscribed: boolean
|
|
7308
7305
|
anyMethods: boolean
|
|
7309
|
-
anyWalletForSubject: boolean
|
|
7310
7306
|
}
|
|
7311
7307
|
|
|
7312
7308
|
// Transactional send (single-contact, single-message)
|
|
@@ -7434,7 +7430,7 @@ export interface TransactionalSendError {
|
|
|
7434
7430
|
* - `transactional.phone_missing`
|
|
7435
7431
|
* - `transactional.whatsapp_missing`
|
|
7436
7432
|
* - `transactional.no_push_methods`
|
|
7437
|
-
* - `transactional.
|
|
7433
|
+
* - `transactional.no_wallet_passes` (`channel: 'wallet'`: the person has no wallet passes from this app)
|
|
7438
7434
|
* - `transactional.opted_out` (category `'service'`: the person turned that channel off, or the email is suppressed)
|
|
7439
7435
|
* - `transactional.template_or_message` / `transactional.message_invalid` / `transactional.about_invalid`
|
|
7440
7436
|
*/
|
|
@@ -7693,7 +7689,6 @@ interface CommMethodMeta {
|
|
|
7693
7689
|
auth?: string
|
|
7694
7690
|
phone?: string
|
|
7695
7691
|
email?: string
|
|
7696
|
-
walletObjectId?: string
|
|
7697
7692
|
subjectType?: SubjectType
|
|
7698
7693
|
subjectId?: string
|
|
7699
7694
|
productId?: string
|
package/openapi.yaml
CHANGED
|
@@ -27248,7 +27248,6 @@ components:
|
|
|
27248
27248
|
- email
|
|
27249
27249
|
- push
|
|
27250
27250
|
- sms
|
|
27251
|
-
- wallet
|
|
27252
27251
|
BroadcastPreviewResponse:
|
|
27253
27252
|
type: object
|
|
27254
27253
|
additionalProperties: true
|
|
@@ -28797,14 +28796,10 @@ components:
|
|
|
28797
28796
|
type: boolean
|
|
28798
28797
|
channels:
|
|
28799
28798
|
$ref: "#/components/schemas/BroadcastChannel"
|
|
28800
|
-
walletForSubject:
|
|
28801
|
-
type: boolean
|
|
28802
28799
|
anySubscribed:
|
|
28803
28800
|
type: boolean
|
|
28804
28801
|
anyMethods:
|
|
28805
28802
|
type: boolean
|
|
28806
|
-
anyWalletForSubject:
|
|
28807
|
-
type: boolean
|
|
28808
28803
|
required:
|
|
28809
28804
|
- ok
|
|
28810
28805
|
- subject
|
|
@@ -28813,7 +28808,6 @@ components:
|
|
|
28813
28808
|
- subscribed
|
|
28814
28809
|
- anySubscribed
|
|
28815
28810
|
- anyMethods
|
|
28816
|
-
- anyWalletForSubject
|
|
28817
28811
|
TransactionalSendRequest:
|
|
28818
28812
|
type: object
|
|
28819
28813
|
properties:
|
|
@@ -29420,8 +29414,6 @@ components:
|
|
|
29420
29414
|
type: string
|
|
29421
29415
|
email:
|
|
29422
29416
|
type: string
|
|
29423
|
-
walletObjectId:
|
|
29424
|
-
type: string
|
|
29425
29417
|
subjectType:
|
|
29426
29418
|
$ref: "#/components/schemas/SubjectType"
|
|
29427
29419
|
subjectId:
|