Provisioning
Source code in superme_sdk/services/_provision.py
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 | |
provision_create
provision_create(
community_id: str,
*,
name: str,
linkedin_url: str,
contact_email: Optional[str] = None,
notes: Optional[str] = None,
socials: Optional[dict[str, str]] = None,
external_urls: Optional[list[str]] = None,
) -> ProvisionCreateResponse
Provision a single community member.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
community_id
|
str
|
The community to provision into. |
required |
name
|
str
|
Full name of the person being provisioned. |
required |
linkedin_url
|
str
|
LinkedIn profile URL ( |
required |
contact_email
|
Optional[str]
|
Email address for invite delivery. |
None
|
notes
|
Optional[str]
|
Community-scoped note (e.g. intro context, WhatsApp note). |
None
|
socials
|
Optional[dict[str, str]]
|
Platform handles, e.g. |
None
|
external_urls
|
Optional[list[str]]
|
URLs to import into the person's knowledge base. |
None
|
Returns:
| Type | Description |
|---|---|
ProvisionCreateResponse
|
class: |
Source code in superme_sdk/services/_provision.py
provision_create_batch
provision_create_batch(
community_id: str, profiles: list[ProvisionProfile]
) -> list[dict[str, Any]]
Provision multiple community members concurrently.
Fans out up to 10 concurrent requests using a dedicated batch-scoped
HTTP client (avoids sharing the main client across threads). Results
are returned in the same order as profiles. Failed items have an
"error" key instead of "provision".
Example
results = client.provision_create_batch(
"community_abc",
profiles=[
{
"name": "Jane Smith",
"linkedin_url": "https://linkedin.com/in/janesmith",
"notes": "WhatsApp intro: loves B2B SaaS",
},
{
"name": "John Doe",
"linkedin_url": "https://linkedin.com/in/johndoe",
"contact_email": "john@example.com",
},
],
)
for r in results:
if "error" in r:
print("failed:", r["error"])
else:
print("provisioned:", r["provision"]["user_id"])
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
community_id
|
str
|
The community to provision into. |
required |
profiles
|
list[ProvisionProfile]
|
List of profile dicts. Each supports the same keys as
:meth: |
required |
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
List of result dicts in the same order as |
Source code in superme_sdk/services/_provision.py
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
provision_send_invites
Send invite emails to provisioned members.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
community_id
|
str
|
The community whose provisions to invite. |
required |
user_ids
|
list[str]
|
List of provisioned user IDs to send invites to. |
required |
Returns:
| Type | Description |
|---|---|
ProvisionInviteResponse
|
class: |
Source code in superme_sdk/services/_provision.py
provision_list
List all provisions for a community.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
community_id
|
str
|
The community to list provisions for. |
required |
Returns:
| Type | Description |
|---|---|
ProvisionListResponse
|
class: |
Source code in superme_sdk/services/_provision.py
provision_get
Fetch a single provisioned member by user ID.
Example
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
community_id
|
str
|
The community that owns the provision. |
required |
user_id
|
str
|
The provisioned user's ID. |
required |
Returns:
| Type | Description |
|---|---|
ProvisionRecord
|
class: |