@proveanything/smartlinks 1.1.20 → 1.1.21

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/API_SUMMARY.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Smartlinks API Summary
2
2
 
3
- Version: 1.1.20 | Generated: 2026-01-05T11:30:32.718Z
3
+ Version: 1.1.21 | Generated: 2026-01-05T12:21:27.209Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -2177,6 +2177,14 @@ Appends one interaction event from a public source.
2177
2177
  authToken?: string) → `Promise<InteractionEventRow[]>`
2178
2178
  Appends one interaction event from a public source.
2179
2179
 
2180
+ **publicList**(collectionId: string,
2181
+ query: ListInteractionTypesQuery = {}) → `Promise<InteractionTypeList>`
2182
+ Appends one interaction event from a public source.
2183
+
2184
+ **publicGet**(collectionId: string,
2185
+ id: string) → `Promise<InteractionTypeRecord>`
2186
+ Appends one interaction event from a public source.
2187
+
2180
2188
  ### journeys
2181
2189
 
2182
2190
  **create**(collectionId: string,
@@ -33,4 +33,6 @@ export declare namespace interactions {
33
33
  function remove(collectionId: string, id: string): Promise<void>;
34
34
  function publicCountsByOutcome(collectionId: string, body: PublicInteractionsCountsByOutcomeRequest, authToken?: string): Promise<OutcomeCount[]>;
35
35
  function publicMyInteractions(collectionId: string, body: PublicInteractionsByUserRequest, authToken?: string): Promise<InteractionEventRow[]>;
36
+ function publicList(collectionId: string, query?: ListInteractionTypesQuery): Promise<InteractionTypeList>;
37
+ function publicGet(collectionId: string, id: string): Promise<InteractionTypeRecord>;
36
38
  }
@@ -107,4 +107,17 @@ export var interactions;
107
107
  return post(path, body, headers);
108
108
  }
109
109
  interactions.publicMyInteractions = publicMyInteractions;
110
+ // Public: list interaction definitions (Postgres)
111
+ async function publicList(collectionId, query = {}) {
112
+ const qs = encodeQuery(query);
113
+ const path = `/public/collection/${encodeURIComponent(collectionId)}/interactions/${qs}`;
114
+ return request(path);
115
+ }
116
+ interactions.publicList = publicList;
117
+ // Public: get a single interaction definition (Postgres)
118
+ async function publicGet(collectionId, id) {
119
+ const path = `/public/collection/${encodeURIComponent(collectionId)}/interactions/${encodeURIComponent(id)}`;
120
+ return request(path);
121
+ }
122
+ interactions.publicGet = publicGet;
110
123
  })(interactions || (interactions = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",