@proveanything/smartlinks 1.1.13 → 1.1.15

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.13 | Generated: 2025-12-28T23:26:13.738Z
3
+ Version: 1.1.15 | Generated: 2026-01-03T20:22:14.481Z
4
4
 
5
5
  This is a concise summary of all available API functions and types.
6
6
 
@@ -768,6 +768,21 @@ interface PublicContactUpsertResponse {
768
768
  }
769
769
  ```
770
770
 
771
+ **UserSearchResponse** (interface)
772
+ ```typescript
773
+ interface UserSearchResponse {
774
+ user: {
775
+ uid: string,
776
+ displayName: string | null,
777
+ email: string | null,
778
+ phoneNumber: string | null,
779
+ photoURL: string | null
780
+ },
781
+ contact: ContactResponse | null
782
+ existsAsContact: boolean
783
+ }
784
+ ```
785
+
771
786
  **ContactCustomFields** = `Record<string, any>`
772
787
 
773
788
  ### error
@@ -1962,6 +1977,9 @@ Logging: Append many communication events for a list of IDs. POST /admin/collect
1962
1977
 
1963
1978
  **erase**(collectionId: string, contactId: string, body?: any) → `Promise<ContactResponse>`
1964
1979
 
1980
+ **getUser**(collectionId: string,
1981
+ userId: string,) → `Promise<UserSearchResponse>`
1982
+
1965
1983
  ### crate
1966
1984
 
1967
1985
  **get**(collectionId: string, crateId: string) → `Promise<any>`
@@ -1,4 +1,4 @@
1
- import { ContactResponse, ContactCreateRequest, ContactUpdateRequest, ContactListResponse, PublicContactUpsertRequest, PublicContactUpsertResponse } from "../types";
1
+ import { ContactResponse, ContactCreateRequest, ContactUpdateRequest, ContactListResponse, PublicContactUpsertRequest, PublicContactUpsertResponse, UserSearchResponse } from "../types";
2
2
  export declare namespace contact {
3
3
  function create(collectionId: string, data: ContactCreateRequest): Promise<ContactResponse>;
4
4
  function list(collectionId: string, params?: {
@@ -18,4 +18,5 @@ export declare namespace contact {
18
18
  function upsert(collectionId: string, data: ContactCreateRequest): Promise<ContactResponse>;
19
19
  function publicUpsert(collectionId: string, data: PublicContactUpsertRequest): Promise<PublicContactUpsertResponse>;
20
20
  function erase(collectionId: string, contactId: string, body?: any): Promise<ContactResponse>;
21
+ function getUser(collectionId: string, userId: string): Promise<UserSearchResponse>;
21
22
  }
@@ -64,4 +64,10 @@ export var contact;
64
64
  return post(path, body || {});
65
65
  }
66
66
  contact.erase = erase;
67
+ // get user
68
+ async function getUser(collectionId, userId) {
69
+ const path = `/admin/collection/${encodeURIComponent(collectionId)}/owner/${encodeURIComponent(userId)}`;
70
+ return request(path);
71
+ }
72
+ contact.getUser = getUser;
67
73
  })(contact || (contact = {}));
@@ -60,3 +60,14 @@ export interface PublicContactUpsertResponse {
60
60
  ok: boolean;
61
61
  contactId: string;
62
62
  }
63
+ export interface UserSearchResponse {
64
+ user: {
65
+ uid: string;
66
+ displayName: string | null;
67
+ email: string | null;
68
+ phoneNumber: string | null;
69
+ photoURL: string | null;
70
+ };
71
+ contact: ContactResponse | null;
72
+ existsAsContact: boolean;
73
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proveanything/smartlinks",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Official JavaScript/TypeScript SDK for the Smartlinks API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",