@superclerk/sdk 0.3.0 → 0.4.0
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/CHANGELOG.md +23 -0
- package/README.md +15 -0
- package/api.md +1 -0
- package/core/client.d.ts +5 -2
- package/core/client.js +4 -3
- package/generated/resources.d.ts +8 -0
- package/generated/resources.js +17 -2
- package/generated/tools.d.ts +232 -3
- package/generated/types.d.ts +83 -12
- package/generated/version.d.ts +1 -1
- package/generated/version.js +1 -1
- package/lib/social.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 0.4.0 (2026-11-25)
|
|
6
|
+
|
|
7
|
+
Still pinned to API version `2026-11-05`.
|
|
8
|
+
|
|
9
|
+
- `apiKey: null` sends no key, for a team app Superclerk hosts: its pages call their own address,
|
|
10
|
+
`${location.origin}/_superclerk`, as the `baseURL`, which acts as the teammate signed in to the app.
|
|
11
|
+
- Google Business Profile: `business_profile_update_chat_links` sets or removes the WhatsApp and text links behind a
|
|
12
|
+
location's Message button on Google Maps, and `business_profile_get_attributes` reads what the business set.
|
|
13
|
+
`business_profile_fetch_performance_metrics` takes `MESSAGING_CLICKS`, the taps on that button, and drops
|
|
14
|
+
`BUSINESS_CONVERSATIONS` and `BUSINESS_FOOD_ORDERS`, which Google retired.
|
|
15
|
+
- Conversations answer `contactDomain`: the domain of the email address a conversation reaches its customer at, such
|
|
16
|
+
as `acme.com`, or null where it doesn't reach them by email or where it is a free mailbox such as gmail.com.
|
|
17
|
+
- A chat's approval card answers `button`: what approving does, in the words of its button, such as
|
|
18
|
+
`Start cold email`, or null where the card doesn't say. A trigger's prompt is a `synthetic` message, as Superclerk's
|
|
19
|
+
words to the agent rather than the person's.
|
|
20
|
+
- A chat's user message answers `source`: who wrote it, the chat's `member`, their `team`, an `outsider`, the `agent`
|
|
21
|
+
that gave a subagent its task, a `trigger` the member set up (its prompt), or Superclerk itself (`runtime`).
|
|
22
|
+
Superclerk's words to the agent are never sent: a `trigger` or `runtime` message's text parts come with empty
|
|
23
|
+
`text`, text written for the model alone is left out, and a reply the agent chose to withhold comes with no text.
|
|
24
|
+
`synthetic` stays, true exactly for `trigger` and `runtime`, and is removed in a later version.
|
|
25
|
+
|
|
3
26
|
## 0.3.0 (2026-11-17)
|
|
4
27
|
|
|
5
28
|
Still pinned to API version `2026-11-05`.
|
package/README.md
CHANGED
|
@@ -149,6 +149,21 @@ await superclerk.contacts.list({}, { workspace: "org_client" })
|
|
|
149
149
|
An operation takes a client workspace only when its reference names the `Superclerk-Workspace` header. The rest act in
|
|
150
150
|
the key's own workspace alone, and answer `403 workspace_not_supported` when a request names another.
|
|
151
151
|
|
|
152
|
+
## Team apps Superclerk hosts
|
|
153
|
+
|
|
154
|
+
A team app's pages call the API in the browser through their own address, with no key: Superclerk signs in the
|
|
155
|
+
teammate using the app, and each call acts as them, with their own role.
|
|
156
|
+
|
|
157
|
+
```ts
|
|
158
|
+
import { Superclerk } from "@superclerk/sdk"
|
|
159
|
+
|
|
160
|
+
const superclerk = new Superclerk({ apiKey: null, baseURL: `${location.origin}/_superclerk` })
|
|
161
|
+
const { items } = await superclerk.contacts.list({ limit: 20 })
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
It reaches what Superclerk's own pages use, such as contacts, deals, tasks, conversations and the Inbox. Operations
|
|
165
|
+
that take only an API key, such as running a connection's tools, answer `403 not_available_to_team_apps`.
|
|
166
|
+
|
|
152
167
|
## Errors
|
|
153
168
|
|
|
154
169
|
Everything the SDK throws is a `SuperclerkError`, apart from the reason you abort a call with. Branch on its `code`,
|
package/api.md
CHANGED
|
@@ -94,6 +94,7 @@ Generated from the public OpenAPI document. Every method returns an `APIPromise`
|
|
|
94
94
|
- `client.social.media.confirm(mediaID)` → `SocialMediaConfirmResponse` — `POST /v1/social/media/{mediaID}/confirm`
|
|
95
95
|
- `client.social.media.download(mediaID)` → `SocialMediaDownloadResponse` — `GET /v1/social/media/{mediaID}/download`
|
|
96
96
|
- `client.social.media.get(mediaID)` → `SocialMediaGetResponse` — `GET /v1/social/media/{mediaID}`
|
|
97
|
+
- `client.social.media.delete(mediaID)` → `SocialMediaDeleteResponse` — `DELETE /v1/social/media/{mediaID}`
|
|
97
98
|
|
|
98
99
|
### social.posts
|
|
99
100
|
|
package/core/client.d.ts
CHANGED
|
@@ -14,8 +14,11 @@ export interface Operation {
|
|
|
14
14
|
response: "json" | "raw";
|
|
15
15
|
}
|
|
16
16
|
export interface ClientOptions {
|
|
17
|
-
/**
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Defaults to the `SUPERCLERK_API_KEY` environment variable. `null` sends no key, for a team app Superclerk hosts: its
|
|
19
|
+
* pages call their own address, `${location.origin}/_superclerk`, which acts as the person signed in to the app.
|
|
20
|
+
*/
|
|
21
|
+
apiKey?: string | null;
|
|
19
22
|
/** Defaults to the `SUPERCLERK_BASE_URL` environment variable, then `https://api.superclerk.com`. */
|
|
20
23
|
baseURL?: string;
|
|
21
24
|
/** A client workspace of the key's agency to act in, as `workspaces.list` returns it. */
|
package/core/client.js
CHANGED
|
@@ -25,8 +25,8 @@ export class Core {
|
|
|
25
25
|
// names, and only the server running a chat's turn streams the agent's text as it's written.
|
|
26
26
|
#cookies = new Map();
|
|
27
27
|
constructor(options = {}) {
|
|
28
|
-
const apiKey = options.apiKey ?? readEnv("SUPERCLERK_API_KEY");
|
|
29
|
-
if (
|
|
28
|
+
const apiKey = options.apiKey === null ? null : (options.apiKey ?? readEnv("SUPERCLERK_API_KEY"));
|
|
29
|
+
if (apiKey === undefined || apiKey === "")
|
|
30
30
|
throw new SuperclerkError("missing_api_key", "Pass apiKey, or set the SUPERCLERK_API_KEY environment variable. To create a key: https://docs.superclerk.com/authentication");
|
|
31
31
|
this.#apiKey = apiKey;
|
|
32
32
|
this.baseURL = (options.baseURL ?? readEnv("SUPERCLERK_BASE_URL") ?? DEFAULT_BASE_URL).replace(/\/+$/, "");
|
|
@@ -133,7 +133,8 @@ export class Core {
|
|
|
133
133
|
}
|
|
134
134
|
headers(operation, options) {
|
|
135
135
|
const headers = new Headers(this.#defaultHeaders);
|
|
136
|
-
|
|
136
|
+
if (this.#apiKey !== null)
|
|
137
|
+
headers.set("Authorization", `Bearer ${this.#apiKey}`);
|
|
137
138
|
headers.set("Accept", "application/json");
|
|
138
139
|
headers.set("Superclerk-Version", API_VERSION);
|
|
139
140
|
headers.set("User-Agent", this.#userAgent);
|
package/generated/resources.d.ts
CHANGED
|
@@ -367,6 +367,14 @@ export declare class SocialMedia extends APIResource {
|
|
|
367
367
|
* `GET /v1/social/media/{mediaID}`
|
|
368
368
|
*/
|
|
369
369
|
get(mediaID: string, options?: RequestOptions): APIPromise<Types.SocialMediaGetResponse>;
|
|
370
|
+
/**
|
|
371
|
+
* Delete media no post uses
|
|
372
|
+
*
|
|
373
|
+
* Its file stops being served within minutes. Media a post uses can't be deleted.
|
|
374
|
+
*
|
|
375
|
+
* `DELETE /v1/social/media/{mediaID}`
|
|
376
|
+
*/
|
|
377
|
+
delete(mediaID: string, options?: RequestOptions): APIPromise<Types.SocialMediaDeleteResponse>;
|
|
370
378
|
}
|
|
371
379
|
export declare class SocialPosts extends APIResource {
|
|
372
380
|
/**
|
package/generated/resources.js
CHANGED
|
@@ -476,8 +476,13 @@ export class SocialMedia extends APIResource {
|
|
|
476
476
|
* `GET /v1/social/media`
|
|
477
477
|
*/
|
|
478
478
|
list(params = {}, options) {
|
|
479
|
-
const { limit, cursor, search } = params;
|
|
480
|
-
return this._client.list({
|
|
479
|
+
const { limit, cursor, search, aiGenerated, posted } = params;
|
|
480
|
+
return this._client.list({
|
|
481
|
+
method: "GET",
|
|
482
|
+
path: `/v1/social/media`,
|
|
483
|
+
query: { limit, cursor, search, aiGenerated, posted },
|
|
484
|
+
response: "json",
|
|
485
|
+
}, options);
|
|
481
486
|
}
|
|
482
487
|
/**
|
|
483
488
|
* Reserve a verified social media upload
|
|
@@ -519,6 +524,16 @@ export class SocialMedia extends APIResource {
|
|
|
519
524
|
get(mediaID, options) {
|
|
520
525
|
return this._client.request({ method: "GET", path: `/v1/social/media/${pathParam(mediaID)}`, response: "json" }, options);
|
|
521
526
|
}
|
|
527
|
+
/**
|
|
528
|
+
* Delete media no post uses
|
|
529
|
+
*
|
|
530
|
+
* Its file stops being served within minutes. Media a post uses can't be deleted.
|
|
531
|
+
*
|
|
532
|
+
* `DELETE /v1/social/media/{mediaID}`
|
|
533
|
+
*/
|
|
534
|
+
delete(mediaID, options) {
|
|
535
|
+
return this._client.request({ method: "DELETE", path: `/v1/social/media/${pathParam(mediaID)}`, response: "json" }, options);
|
|
536
|
+
}
|
|
522
537
|
}
|
|
523
538
|
export class SocialPosts extends APIResource {
|
|
524
539
|
/**
|
package/generated/tools.d.ts
CHANGED
|
@@ -10266,7 +10266,7 @@ export interface Tools {
|
|
|
10266
10266
|
business_profile_fetch_performance_metrics: {
|
|
10267
10267
|
input: {
|
|
10268
10268
|
locationName: string;
|
|
10269
|
-
dailyMetrics: Array<"BUSINESS_IMPRESSIONS_DESKTOP_MAPS" | "BUSINESS_IMPRESSIONS_DESKTOP_SEARCH" | "BUSINESS_IMPRESSIONS_MOBILE_MAPS" | "BUSINESS_IMPRESSIONS_MOBILE_SEARCH" | "
|
|
10269
|
+
dailyMetrics: Array<"BUSINESS_IMPRESSIONS_DESKTOP_MAPS" | "BUSINESS_IMPRESSIONS_DESKTOP_SEARCH" | "BUSINESS_IMPRESSIONS_MOBILE_MAPS" | "BUSINESS_IMPRESSIONS_MOBILE_SEARCH" | "BUSINESS_DIRECTION_REQUESTS" | "CALL_CLICKS" | "WEBSITE_CLICKS" | "MESSAGING_CLICKS" | "BUSINESS_BOOKINGS" | "BUSINESS_FOOD_MENU_CLICKS">;
|
|
10270
10270
|
dailyRange: {
|
|
10271
10271
|
startDate: {
|
|
10272
10272
|
year: number;
|
|
@@ -10286,6 +10286,17 @@ export interface Tools {
|
|
|
10286
10286
|
}>;
|
|
10287
10287
|
};
|
|
10288
10288
|
};
|
|
10289
|
+
/** Read the attributes the business set on one location, its chat links among them. */
|
|
10290
|
+
business_profile_get_attributes: {
|
|
10291
|
+
input: {
|
|
10292
|
+
locationName: string;
|
|
10293
|
+
};
|
|
10294
|
+
output: {
|
|
10295
|
+
attributes: Array<{
|
|
10296
|
+
[key: string]: unknown;
|
|
10297
|
+
}>;
|
|
10298
|
+
};
|
|
10299
|
+
};
|
|
10289
10300
|
/** Get one Google Business Profile location with an explicit read mask. */
|
|
10290
10301
|
business_profile_get_location: {
|
|
10291
10302
|
input: {
|
|
@@ -10444,6 +10455,21 @@ export interface Tools {
|
|
|
10444
10455
|
nextPageToken?: string;
|
|
10445
10456
|
};
|
|
10446
10457
|
};
|
|
10458
|
+
/** Set or remove the WhatsApp and text links behind the location's Message button on Google Maps and Search. */
|
|
10459
|
+
business_profile_update_chat_links: {
|
|
10460
|
+
input: {
|
|
10461
|
+
locationName: string;
|
|
10462
|
+
/** The WhatsApp number customers message. Set null to remove the WhatsApp link; omit to leave it. */
|
|
10463
|
+
whatsapp?: string | null;
|
|
10464
|
+
/** The number that receives customers' texts. Set null to remove the text link; omit to leave it. */
|
|
10465
|
+
text?: string | null;
|
|
10466
|
+
};
|
|
10467
|
+
output: {
|
|
10468
|
+
attributes: Array<{
|
|
10469
|
+
[key: string]: unknown;
|
|
10470
|
+
}>;
|
|
10471
|
+
};
|
|
10472
|
+
};
|
|
10447
10473
|
/** Update selected fields on a public Business Profile local post. */
|
|
10448
10474
|
business_profile_update_local_post: {
|
|
10449
10475
|
input: {
|
|
@@ -27389,6 +27415,75 @@ export interface Tools {
|
|
|
27389
27415
|
after?: string;
|
|
27390
27416
|
};
|
|
27391
27417
|
};
|
|
27418
|
+
/** Add a video to the end of one of the channel's playlists. */
|
|
27419
|
+
youtube_add_to_playlist: {
|
|
27420
|
+
input: {
|
|
27421
|
+
playlistId: string;
|
|
27422
|
+
videoId: string;
|
|
27423
|
+
};
|
|
27424
|
+
output: {
|
|
27425
|
+
playlistItemId: string;
|
|
27426
|
+
playlistId: string;
|
|
27427
|
+
videoId: string;
|
|
27428
|
+
};
|
|
27429
|
+
};
|
|
27430
|
+
/** Publish comments that YouTube is holding for review or marked as likely spam. */
|
|
27431
|
+
youtube_approve_comments: {
|
|
27432
|
+
input: {
|
|
27433
|
+
commentIds: Array<string>;
|
|
27434
|
+
};
|
|
27435
|
+
output: {
|
|
27436
|
+
commentIds: Array<string>;
|
|
27437
|
+
};
|
|
27438
|
+
};
|
|
27439
|
+
/** Create a playlist on the channel. */
|
|
27440
|
+
youtube_create_playlist: {
|
|
27441
|
+
input: {
|
|
27442
|
+
title: string;
|
|
27443
|
+
description: string;
|
|
27444
|
+
privacyStatus: "private" | "public" | "unlisted";
|
|
27445
|
+
};
|
|
27446
|
+
output: {
|
|
27447
|
+
playlistId: string;
|
|
27448
|
+
title: string;
|
|
27449
|
+
privacyStatus: "private" | "public" | "unlisted";
|
|
27450
|
+
url: string;
|
|
27451
|
+
};
|
|
27452
|
+
};
|
|
27453
|
+
/** Delete a comment or reply the channel itself wrote. */
|
|
27454
|
+
youtube_delete_comment: {
|
|
27455
|
+
input: {
|
|
27456
|
+
commentId: string;
|
|
27457
|
+
};
|
|
27458
|
+
output: {
|
|
27459
|
+
commentId: string;
|
|
27460
|
+
};
|
|
27461
|
+
};
|
|
27462
|
+
/** Delete a video from the channel for good. */
|
|
27463
|
+
youtube_delete_video: {
|
|
27464
|
+
input: {
|
|
27465
|
+
videoId: string;
|
|
27466
|
+
};
|
|
27467
|
+
output: {
|
|
27468
|
+
videoId: string;
|
|
27469
|
+
};
|
|
27470
|
+
};
|
|
27471
|
+
/** Read the channel's YouTube Analytics for a date range: totals, or by day, video, country, device, traffic source, age and gender, or a video's audience retention. */
|
|
27472
|
+
youtube_get_analytics: {
|
|
27473
|
+
input: {
|
|
27474
|
+
startDate: string;
|
|
27475
|
+
endDate: string;
|
|
27476
|
+
/** none gives the period's totals; video ranks the top 50 videos by views. */
|
|
27477
|
+
breakdown: "none" | "day" | "video" | "country" | "device" | "traffic_source" | "age_gender" | "retention";
|
|
27478
|
+
/** Only this video's numbers. retention needs it. */
|
|
27479
|
+
videoId?: string;
|
|
27480
|
+
};
|
|
27481
|
+
output: {
|
|
27482
|
+
rows: Array<{
|
|
27483
|
+
[key: string]: string | number;
|
|
27484
|
+
}>;
|
|
27485
|
+
};
|
|
27486
|
+
};
|
|
27392
27487
|
/** Read the connected channel: its ID, title, handle, subscribers, lifetime views and public videos. */
|
|
27393
27488
|
youtube_get_channel: {
|
|
27394
27489
|
input: {
|
|
@@ -27405,6 +27500,74 @@ export interface Tools {
|
|
|
27405
27500
|
videos: number;
|
|
27406
27501
|
};
|
|
27407
27502
|
};
|
|
27503
|
+
/** List a video's caption tracks: each one's language, name and whether it's live. */
|
|
27504
|
+
youtube_list_captions: {
|
|
27505
|
+
input: {
|
|
27506
|
+
videoId: string;
|
|
27507
|
+
};
|
|
27508
|
+
output: {
|
|
27509
|
+
tracks: Array<{
|
|
27510
|
+
captionId: string;
|
|
27511
|
+
language: string;
|
|
27512
|
+
name: string;
|
|
27513
|
+
/** ASR tracks are YouTube's automatic captions. */
|
|
27514
|
+
kind: "standard" | "ASR" | "forced";
|
|
27515
|
+
isDraft: boolean;
|
|
27516
|
+
status: "serving" | "syncing" | "failed";
|
|
27517
|
+
}>;
|
|
27518
|
+
};
|
|
27519
|
+
};
|
|
27520
|
+
/** List comment threads on the channel's videos, newest first, with their first replies. */
|
|
27521
|
+
youtube_list_comments: {
|
|
27522
|
+
input: {
|
|
27523
|
+
/** Only this video's comments; omit for every video on the channel. */
|
|
27524
|
+
videoId?: string;
|
|
27525
|
+
/** heldForReview and likelySpam list what YouTube is holding back from public view. */
|
|
27526
|
+
moderationStatus?: "published" | "heldForReview" | "likelySpam";
|
|
27527
|
+
cursor?: string;
|
|
27528
|
+
};
|
|
27529
|
+
output: {
|
|
27530
|
+
threads: Array<{
|
|
27531
|
+
commentId: string;
|
|
27532
|
+
author: string;
|
|
27533
|
+
authorChannelId: string | null;
|
|
27534
|
+
text: string;
|
|
27535
|
+
likes: number;
|
|
27536
|
+
publishedAt: string;
|
|
27537
|
+
/** Null for a comment on the channel itself. */
|
|
27538
|
+
videoId: string | null;
|
|
27539
|
+
replyCount: number;
|
|
27540
|
+
canReply: boolean;
|
|
27541
|
+
/** The first few replies; replyCount is the total. */
|
|
27542
|
+
replies: Array<{
|
|
27543
|
+
commentId: string;
|
|
27544
|
+
author: string;
|
|
27545
|
+
authorChannelId: string | null;
|
|
27546
|
+
text: string;
|
|
27547
|
+
likes: number;
|
|
27548
|
+
publishedAt: string;
|
|
27549
|
+
}>;
|
|
27550
|
+
}>;
|
|
27551
|
+
nextCursor: string | null;
|
|
27552
|
+
};
|
|
27553
|
+
};
|
|
27554
|
+
/** List the channel's playlists, including private and unlisted ones, with how many videos each holds. */
|
|
27555
|
+
youtube_list_playlists: {
|
|
27556
|
+
input: {
|
|
27557
|
+
cursor?: string;
|
|
27558
|
+
};
|
|
27559
|
+
output: {
|
|
27560
|
+
playlists: Array<{
|
|
27561
|
+
playlistId: string;
|
|
27562
|
+
title: string;
|
|
27563
|
+
description: string;
|
|
27564
|
+
privacyStatus: "private" | "public" | "unlisted";
|
|
27565
|
+
videoCount: number;
|
|
27566
|
+
url: string;
|
|
27567
|
+
}>;
|
|
27568
|
+
nextCursor: string | null;
|
|
27569
|
+
};
|
|
27570
|
+
};
|
|
27408
27571
|
/** List this channel's uploads from Superclerk, newest first, with each one's status and video link. */
|
|
27409
27572
|
youtube_list_uploads: {
|
|
27410
27573
|
input: {
|
|
@@ -27421,7 +27584,7 @@ export interface Tools {
|
|
|
27421
27584
|
videoId: string | null;
|
|
27422
27585
|
url: string | null;
|
|
27423
27586
|
error: {
|
|
27424
|
-
kind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
27587
|
+
kind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
27425
27588
|
message: string;
|
|
27426
27589
|
} | null;
|
|
27427
27590
|
}>;
|
|
@@ -27450,6 +27613,72 @@ export interface Tools {
|
|
|
27450
27613
|
description: string;
|
|
27451
27614
|
};
|
|
27452
27615
|
};
|
|
27616
|
+
/** Remove comments on the channel's videos from public view, with their replies. */
|
|
27617
|
+
youtube_remove_comments: {
|
|
27618
|
+
input: {
|
|
27619
|
+
commentIds: Array<string>;
|
|
27620
|
+
/** Also hide everything these authors write on the channel from now on. */
|
|
27621
|
+
banAuthor: boolean;
|
|
27622
|
+
};
|
|
27623
|
+
output: {
|
|
27624
|
+
commentIds: Array<string>;
|
|
27625
|
+
};
|
|
27626
|
+
};
|
|
27627
|
+
/** Reply to a comment thread as the channel. */
|
|
27628
|
+
youtube_reply_to_comment: {
|
|
27629
|
+
input: {
|
|
27630
|
+
/** The thread's commentId from youtube_list_comments. */
|
|
27631
|
+
commentId: string;
|
|
27632
|
+
text: string;
|
|
27633
|
+
};
|
|
27634
|
+
output: {
|
|
27635
|
+
commentId: string;
|
|
27636
|
+
parentId: string;
|
|
27637
|
+
};
|
|
27638
|
+
};
|
|
27639
|
+
/** Change a video's title, description, tags, category, privacy or the time it goes public. */
|
|
27640
|
+
youtube_update_video: {
|
|
27641
|
+
input: {
|
|
27642
|
+
videoId: string;
|
|
27643
|
+
title?: string;
|
|
27644
|
+
description?: string;
|
|
27645
|
+
/** Replaces every tag. */
|
|
27646
|
+
tags?: Array<string>;
|
|
27647
|
+
categoryId?: string;
|
|
27648
|
+
privacyStatus?: "private" | "public" | "unlisted";
|
|
27649
|
+
/** Make a private video that was never public go public at this time. */
|
|
27650
|
+
publishAt?: string;
|
|
27651
|
+
};
|
|
27652
|
+
output: {
|
|
27653
|
+
videoId: string;
|
|
27654
|
+
title: string;
|
|
27655
|
+
privacyStatus: "private" | "public" | "unlisted";
|
|
27656
|
+
publishAt: string | null;
|
|
27657
|
+
url: string;
|
|
27658
|
+
};
|
|
27659
|
+
};
|
|
27660
|
+
/** Add a caption track to a video from SubRip or WebVTT text. */
|
|
27661
|
+
youtube_upload_captions: {
|
|
27662
|
+
input: {
|
|
27663
|
+
videoId: string;
|
|
27664
|
+
language: string;
|
|
27665
|
+
/** Shown beside the language in YouTube's captions menu; may be empty. */
|
|
27666
|
+
name: string;
|
|
27667
|
+
/** The caption file's text, such as SubRip (.srt) or WebVTT (.vtt). */
|
|
27668
|
+
captions: string;
|
|
27669
|
+
/** true keeps the track hidden from viewers. */
|
|
27670
|
+
isDraft?: boolean;
|
|
27671
|
+
};
|
|
27672
|
+
output: {
|
|
27673
|
+
captionId: string;
|
|
27674
|
+
language: string;
|
|
27675
|
+
name: string;
|
|
27676
|
+
/** ASR tracks are YouTube's automatic captions. */
|
|
27677
|
+
kind: "standard" | "ASR" | "forced";
|
|
27678
|
+
isDraft: boolean;
|
|
27679
|
+
status: "serving" | "syncing" | "failed";
|
|
27680
|
+
};
|
|
27681
|
+
};
|
|
27453
27682
|
/** Upload an MP4 to the connected channel now, or schedule when it goes live. */
|
|
27454
27683
|
youtube_upload_video: {
|
|
27455
27684
|
input: {
|
|
@@ -27479,7 +27708,7 @@ export interface Tools {
|
|
|
27479
27708
|
videoId: string | null;
|
|
27480
27709
|
url: string | null;
|
|
27481
27710
|
error: {
|
|
27482
|
-
kind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
27711
|
+
kind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
27483
27712
|
message: string;
|
|
27484
27713
|
} | null;
|
|
27485
27714
|
};
|
package/generated/types.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export interface Chat {
|
|
|
145
145
|
nextAt: string;
|
|
146
146
|
} | null;
|
|
147
147
|
/** What the agent waits on. */
|
|
148
|
-
pending: Array<ChatApproval | ChatQuestion | ChatConnectionRequest | ChatSubagent | ChatSubagentWait>;
|
|
148
|
+
pending: Array<ChatApproval | ChatQuestion | ChatConnectionRequest | ChatSubagent | ChatSubagentWait | ChatVideo>;
|
|
149
149
|
/** Why the agent's latest message ended without an answer. */
|
|
150
150
|
error: ChatError | null;
|
|
151
151
|
/** What the key started the chat with; null for a chat started in the app. */
|
|
@@ -242,6 +242,18 @@ export interface ChatSubagentWait {
|
|
|
242
242
|
callID: string;
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
+
/** A video the agent is making; it arrives in the chat as a message, or the message says why it didn't. */
|
|
246
|
+
export interface ChatVideo {
|
|
247
|
+
type: "video";
|
|
248
|
+
id: string;
|
|
249
|
+
seconds: number;
|
|
250
|
+
/** The tool call that asked. */
|
|
251
|
+
call: {
|
|
252
|
+
messageID: string;
|
|
253
|
+
/** The tool call, as its tool part's callID names it. */
|
|
254
|
+
callID: string;
|
|
255
|
+
};
|
|
256
|
+
}
|
|
245
257
|
export interface ChatError {
|
|
246
258
|
/** stopped, context_too_long, output_too_long, provider_auth, provider_error, structured_output, failed, or the billing code that refused it, such as billing_credit_exhausted. */
|
|
247
259
|
code: string;
|
|
@@ -260,12 +272,15 @@ export interface ChatUserMessage {
|
|
|
260
272
|
/** The message's ID in the app it came in or went out through. */
|
|
261
273
|
providerMessageID: string | null;
|
|
262
274
|
role: "user";
|
|
263
|
-
|
|
275
|
+
source: InputSource;
|
|
276
|
+
/** True exactly when source is trigger or runtime. Kept for older clients. */
|
|
264
277
|
synthetic: boolean;
|
|
265
278
|
context: ChatContext | null;
|
|
266
279
|
/** A call filed in a phone line's thread as the caller's message: what happened, and which call's transcript and recording it belongs to. Null for anything else. */
|
|
267
280
|
phone: PhoneEvent | null;
|
|
268
281
|
}
|
|
282
|
+
/** Who wrote a message to the agent: the chat's member, their team or someone outside the workspace, the agent that gave a subagent its task, an automation the member set up (trigger: a trigger's or a workflow step's prompt), or Superclerk itself (runtime), such as a runtime notice or a subagent's report. A trigger's and the runtime's words are for the agent and never shown. */
|
|
283
|
+
export type InputSource = "member" | "team" | "outsider" | "agent" | "trigger" | "runtime";
|
|
269
284
|
/** The page of the app the person had open, which the agent reads with the message. */
|
|
270
285
|
export type ChatContext = {
|
|
271
286
|
kind: "website";
|
|
@@ -326,8 +341,9 @@ export interface ChatTextPart {
|
|
|
326
341
|
id: string;
|
|
327
342
|
chatID: string;
|
|
328
343
|
messageID: string;
|
|
344
|
+
/** Empty in a message Superclerk wrote for the agent (source trigger or runtime): those words are never sent. */
|
|
329
345
|
text: string;
|
|
330
|
-
/**
|
|
346
|
+
/** Always false: text Superclerk writes for the agent alone is never sent. Kept for older clients. */
|
|
331
347
|
synthetic: boolean;
|
|
332
348
|
startedAt: string | null;
|
|
333
349
|
endedAt: string | null;
|
|
@@ -383,6 +399,8 @@ export type ChatToolState = {
|
|
|
383
399
|
label: string;
|
|
384
400
|
value: string;
|
|
385
401
|
}> | null;
|
|
402
|
+
/** What approving does, in the words of its button, for a card that does one thing. */
|
|
403
|
+
button: string | null;
|
|
386
404
|
metadata: {
|
|
387
405
|
[key: string]: unknown;
|
|
388
406
|
} | null;
|
|
@@ -523,6 +541,8 @@ export interface Conversation {
|
|
|
523
541
|
};
|
|
524
542
|
contactID: string | null;
|
|
525
543
|
contactName: string | null;
|
|
544
|
+
/** The domain of the email address the conversation reaches the customer at, such as acme.com; null where it doesn't reach them by email. */
|
|
545
|
+
contactDomain: string | null;
|
|
526
546
|
contactLink: "automatic" | "manual" | "none";
|
|
527
547
|
/** False for a group or shared thread, which can't belong to one contact. */
|
|
528
548
|
linkable: boolean;
|
|
@@ -1473,6 +1493,7 @@ export interface WorkflowCatalogResponse {
|
|
|
1473
1493
|
attemptTimeoutMs: number;
|
|
1474
1494
|
totalTimeoutMs: number;
|
|
1475
1495
|
};
|
|
1496
|
+
recipientInput: string | null;
|
|
1476
1497
|
}>;
|
|
1477
1498
|
retainedActions: Array<{
|
|
1478
1499
|
appID: string;
|
|
@@ -1514,6 +1535,7 @@ export interface WorkflowCatalogResponse {
|
|
|
1514
1535
|
attemptTimeoutMs: number;
|
|
1515
1536
|
totalTimeoutMs: number;
|
|
1516
1537
|
};
|
|
1538
|
+
recipientInput: string | null;
|
|
1517
1539
|
}>;
|
|
1518
1540
|
triggers: Array<WorkflowTriggerCatalogEntry>;
|
|
1519
1541
|
retainedTriggers: Array<WorkflowTriggerCatalogEntry>;
|
|
@@ -4172,11 +4194,11 @@ export type WorkflowFailureAlertDestination = {
|
|
|
4172
4194
|
} | {
|
|
4173
4195
|
state: "failed";
|
|
4174
4196
|
terminalAt: number;
|
|
4175
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4197
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4176
4198
|
} | {
|
|
4177
4199
|
state: "outcome_unknown";
|
|
4178
4200
|
terminalAt: number;
|
|
4179
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4201
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4180
4202
|
} | null;
|
|
4181
4203
|
provider: "slack";
|
|
4182
4204
|
channelID: string;
|
|
@@ -4196,11 +4218,11 @@ export type WorkflowFailureAlertDestination = {
|
|
|
4196
4218
|
} | {
|
|
4197
4219
|
state: "failed";
|
|
4198
4220
|
terminalAt: number;
|
|
4199
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4221
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4200
4222
|
} | {
|
|
4201
4223
|
state: "outcome_unknown";
|
|
4202
4224
|
terminalAt: number;
|
|
4203
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4225
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4204
4226
|
} | null;
|
|
4205
4227
|
provider: "telegram";
|
|
4206
4228
|
chatID: string;
|
|
@@ -4220,11 +4242,11 @@ export type WorkflowFailureAlertDestination = {
|
|
|
4220
4242
|
} | {
|
|
4221
4243
|
state: "failed";
|
|
4222
4244
|
terminalAt: number;
|
|
4223
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4245
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4224
4246
|
} | {
|
|
4225
4247
|
state: "outcome_unknown";
|
|
4226
4248
|
terminalAt: number;
|
|
4227
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4249
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4228
4250
|
} | null;
|
|
4229
4251
|
provider: "gmail";
|
|
4230
4252
|
recipient: string;
|
|
@@ -4244,11 +4266,11 @@ export type WorkflowFailureAlertDestination = {
|
|
|
4244
4266
|
} | {
|
|
4245
4267
|
state: "failed";
|
|
4246
4268
|
terminalAt: number;
|
|
4247
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4269
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4248
4270
|
} | {
|
|
4249
4271
|
state: "outcome_unknown";
|
|
4250
4272
|
terminalAt: number;
|
|
4251
|
-
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
4273
|
+
errorKind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
4252
4274
|
} | null;
|
|
4253
4275
|
provider: "outlook";
|
|
4254
4276
|
recipient: string;
|
|
@@ -5848,7 +5870,7 @@ export interface ToolRunFailedEvent {
|
|
|
5848
5870
|
connectionID: string | null;
|
|
5849
5871
|
status: "failed" | "cancelled";
|
|
5850
5872
|
error: {
|
|
5851
|
-
kind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled";
|
|
5873
|
+
kind: "validation" | "permission" | "auth" | "quota_exhausted" | "provider_rejected" | "rate_limited" | "retryable_upstream" | "outcome_unknown" | "result_unavailable" | "upstream" | "timeout" | "internal" | "cancelled" | "sender_restricted" | "recipient_refused";
|
|
5852
5874
|
};
|
|
5853
5875
|
};
|
|
5854
5876
|
}
|
|
@@ -6343,6 +6365,7 @@ export type SocialAccountsAnalyticsOverviewResponse = {
|
|
|
6343
6365
|
value: number | null;
|
|
6344
6366
|
}>;
|
|
6345
6367
|
}>;
|
|
6368
|
+
missingScopes?: Array<string>;
|
|
6346
6369
|
status: "ready";
|
|
6347
6370
|
retrievedAt: number;
|
|
6348
6371
|
};
|
|
@@ -6423,6 +6446,10 @@ export interface SocialMediaListParams {
|
|
|
6423
6446
|
limit?: number;
|
|
6424
6447
|
cursor?: string;
|
|
6425
6448
|
search?: string;
|
|
6449
|
+
/** true: only media AI made; false: only people's. */
|
|
6450
|
+
aiGenerated?: "true" | "false";
|
|
6451
|
+
/** true: only media a post published; false: only media none did. */
|
|
6452
|
+
posted?: "true" | "false";
|
|
6426
6453
|
}
|
|
6427
6454
|
export type SocialMediaListResponse = {
|
|
6428
6455
|
items: Array<{
|
|
@@ -6434,9 +6461,19 @@ export type SocialMediaListResponse = {
|
|
|
6434
6461
|
storageAccess: "private" | "public";
|
|
6435
6462
|
status: "pending" | "ready";
|
|
6436
6463
|
url: string | null;
|
|
6464
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
6465
|
+
aiGenerated: boolean;
|
|
6437
6466
|
createdAt: number;
|
|
6438
6467
|
updatedAt: number;
|
|
6439
6468
|
confirmedAt: number | null;
|
|
6469
|
+
post: {
|
|
6470
|
+
postID: string;
|
|
6471
|
+
status: "posted" | "scheduled" | "draft" | "failed";
|
|
6472
|
+
/** Where that post goes. */
|
|
6473
|
+
platforms: Array<"x" | "instagram" | "facebook" | "linkedin" | "threads" | "tiktok" | "youtube" | "googlebusiness">;
|
|
6474
|
+
/** When it went out, goes out or failed; null for a draft. */
|
|
6475
|
+
at: string | null;
|
|
6476
|
+
} | null;
|
|
6440
6477
|
}>;
|
|
6441
6478
|
nextCursor: string | null;
|
|
6442
6479
|
};
|
|
@@ -6463,6 +6500,8 @@ export type SocialMediaCreateResponse = {
|
|
|
6463
6500
|
storageAccess: "private" | "public";
|
|
6464
6501
|
status: "pending" | "ready";
|
|
6465
6502
|
url: string | null;
|
|
6503
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
6504
|
+
aiGenerated: boolean;
|
|
6466
6505
|
createdAt: number;
|
|
6467
6506
|
updatedAt: number;
|
|
6468
6507
|
confirmedAt: number | null;
|
|
@@ -6485,6 +6524,8 @@ export type SocialMediaConfirmResponse = {
|
|
|
6485
6524
|
storageAccess: "private" | "public";
|
|
6486
6525
|
status: "pending" | "ready";
|
|
6487
6526
|
url: string | null;
|
|
6527
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
6528
|
+
aiGenerated: boolean;
|
|
6488
6529
|
createdAt: number;
|
|
6489
6530
|
updatedAt: number;
|
|
6490
6531
|
confirmedAt: number | null;
|
|
@@ -6502,10 +6543,16 @@ export type SocialMediaGetResponse = {
|
|
|
6502
6543
|
storageAccess: "private" | "public";
|
|
6503
6544
|
status: "pending" | "ready";
|
|
6504
6545
|
url: string | null;
|
|
6546
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
6547
|
+
aiGenerated: boolean;
|
|
6505
6548
|
createdAt: number;
|
|
6506
6549
|
updatedAt: number;
|
|
6507
6550
|
confirmedAt: number | null;
|
|
6508
6551
|
};
|
|
6552
|
+
export type SocialMediaDeleteResponse = {
|
|
6553
|
+
id: string;
|
|
6554
|
+
deleted: true;
|
|
6555
|
+
};
|
|
6509
6556
|
export interface SocialPostsListParams {
|
|
6510
6557
|
limit?: number;
|
|
6511
6558
|
cursor?: string;
|
|
@@ -6531,6 +6578,8 @@ export type SocialPostsListResponse = {
|
|
|
6531
6578
|
storageAccess: "private" | "public";
|
|
6532
6579
|
status: "pending" | "ready";
|
|
6533
6580
|
url: string | null;
|
|
6581
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
6582
|
+
aiGenerated: boolean;
|
|
6534
6583
|
createdAt: number;
|
|
6535
6584
|
updatedAt: number;
|
|
6536
6585
|
confirmedAt: number | null;
|
|
@@ -6561,6 +6610,8 @@ export type SocialPostsListResponse = {
|
|
|
6561
6610
|
storageAccess: "private" | "public";
|
|
6562
6611
|
status: "pending" | "ready";
|
|
6563
6612
|
url: string | null;
|
|
6613
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
6614
|
+
aiGenerated: boolean;
|
|
6564
6615
|
createdAt: number;
|
|
6565
6616
|
updatedAt: number;
|
|
6566
6617
|
confirmedAt: number | null;
|
|
@@ -7320,6 +7371,8 @@ export type SocialPostsCreateResponse = {
|
|
|
7320
7371
|
storageAccess: "private" | "public";
|
|
7321
7372
|
status: "pending" | "ready";
|
|
7322
7373
|
url: string | null;
|
|
7374
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
7375
|
+
aiGenerated: boolean;
|
|
7323
7376
|
createdAt: number;
|
|
7324
7377
|
updatedAt: number;
|
|
7325
7378
|
confirmedAt: number | null;
|
|
@@ -7350,6 +7403,8 @@ export type SocialPostsCreateResponse = {
|
|
|
7350
7403
|
storageAccess: "private" | "public";
|
|
7351
7404
|
status: "pending" | "ready";
|
|
7352
7405
|
url: string | null;
|
|
7406
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
7407
|
+
aiGenerated: boolean;
|
|
7353
7408
|
createdAt: number;
|
|
7354
7409
|
updatedAt: number;
|
|
7355
7410
|
confirmedAt: number | null;
|
|
@@ -7385,6 +7440,8 @@ export type SocialPostsGetResponse = {
|
|
|
7385
7440
|
storageAccess: "private" | "public";
|
|
7386
7441
|
status: "pending" | "ready";
|
|
7387
7442
|
url: string | null;
|
|
7443
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
7444
|
+
aiGenerated: boolean;
|
|
7388
7445
|
createdAt: number;
|
|
7389
7446
|
updatedAt: number;
|
|
7390
7447
|
confirmedAt: number | null;
|
|
@@ -7415,6 +7472,8 @@ export type SocialPostsGetResponse = {
|
|
|
7415
7472
|
storageAccess: "private" | "public";
|
|
7416
7473
|
status: "pending" | "ready";
|
|
7417
7474
|
url: string | null;
|
|
7475
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
7476
|
+
aiGenerated: boolean;
|
|
7418
7477
|
createdAt: number;
|
|
7419
7478
|
updatedAt: number;
|
|
7420
7479
|
confirmedAt: number | null;
|
|
@@ -8174,6 +8233,8 @@ export type SocialPostsUpdateResponse = {
|
|
|
8174
8233
|
storageAccess: "private" | "public";
|
|
8175
8234
|
status: "pending" | "ready";
|
|
8176
8235
|
url: string | null;
|
|
8236
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
8237
|
+
aiGenerated: boolean;
|
|
8177
8238
|
createdAt: number;
|
|
8178
8239
|
updatedAt: number;
|
|
8179
8240
|
confirmedAt: number | null;
|
|
@@ -8204,6 +8265,8 @@ export type SocialPostsUpdateResponse = {
|
|
|
8204
8265
|
storageAccess: "private" | "public";
|
|
8205
8266
|
status: "pending" | "ready";
|
|
8206
8267
|
url: string | null;
|
|
8268
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
8269
|
+
aiGenerated: boolean;
|
|
8207
8270
|
createdAt: number;
|
|
8208
8271
|
updatedAt: number;
|
|
8209
8272
|
confirmedAt: number | null;
|
|
@@ -8247,6 +8310,8 @@ export type SocialPostsRescheduleResponse = {
|
|
|
8247
8310
|
storageAccess: "private" | "public";
|
|
8248
8311
|
status: "pending" | "ready";
|
|
8249
8312
|
url: string | null;
|
|
8313
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
8314
|
+
aiGenerated: boolean;
|
|
8250
8315
|
createdAt: number;
|
|
8251
8316
|
updatedAt: number;
|
|
8252
8317
|
confirmedAt: number | null;
|
|
@@ -8277,6 +8342,8 @@ export type SocialPostsRescheduleResponse = {
|
|
|
8277
8342
|
storageAccess: "private" | "public";
|
|
8278
8343
|
status: "pending" | "ready";
|
|
8279
8344
|
url: string | null;
|
|
8345
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
8346
|
+
aiGenerated: boolean;
|
|
8280
8347
|
createdAt: number;
|
|
8281
8348
|
updatedAt: number;
|
|
8282
8349
|
confirmedAt: number | null;
|
|
@@ -8315,6 +8382,8 @@ export type SocialPostsCancelResponse = {
|
|
|
8315
8382
|
storageAccess: "private" | "public";
|
|
8316
8383
|
status: "pending" | "ready";
|
|
8317
8384
|
url: string | null;
|
|
8385
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
8386
|
+
aiGenerated: boolean;
|
|
8318
8387
|
createdAt: number;
|
|
8319
8388
|
updatedAt: number;
|
|
8320
8389
|
confirmedAt: number | null;
|
|
@@ -8345,6 +8414,8 @@ export type SocialPostsCancelResponse = {
|
|
|
8345
8414
|
storageAccess: "private" | "public";
|
|
8346
8415
|
status: "pending" | "ready";
|
|
8347
8416
|
url: string | null;
|
|
8417
|
+
/** Whether AI made it: an agent's image or video, or a photo an agent edited. */
|
|
8418
|
+
aiGenerated: boolean;
|
|
8348
8419
|
createdAt: number;
|
|
8349
8420
|
updatedAt: number;
|
|
8350
8421
|
confirmedAt: number | null;
|
package/generated/version.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.
|
|
1
|
+
export declare const SDK_VERSION = "0.4.0";
|
|
2
2
|
/** The API behavior this SDK was generated for. Every request pins it with the Superclerk-Version header. */
|
|
3
3
|
export declare const API_VERSION = "2026-11-05";
|
|
4
4
|
export declare const DEFAULT_BASE_URL = "https://api.superclerk.com";
|
package/generated/version.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by script/generate.ts from the public OpenAPI document. Do not edit.
|
|
2
|
-
export const SDK_VERSION = "0.
|
|
2
|
+
export const SDK_VERSION = "0.4.0";
|
|
3
3
|
/** The API behavior this SDK was generated for. Every request pins it with the Superclerk-Version header. */
|
|
4
4
|
export const API_VERSION = "2026-11-05";
|
|
5
5
|
export const DEFAULT_BASE_URL = "https://api.superclerk.com";
|
package/lib/social.d.ts
CHANGED