@alva-ai/toolkit 0.32.0-beta.1 → 0.33.1-beta.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/dist/cli.d.ts CHANGED
@@ -1257,6 +1257,51 @@ declare class FeedResource {
1257
1257
  setVisibility(params: FeedSetVisibilityRequest): Promise<FeedSetVisibilityResponse>;
1258
1258
  }
1259
1259
 
1260
+ interface XReadParams {
1261
+ first?: number;
1262
+ after?: string;
1263
+ }
1264
+ /** Local credential state, not live verification with X. */
1265
+ interface XConnectionStatus {
1266
+ connected: boolean;
1267
+ canReadFollowing: boolean;
1268
+ canReadPosts: boolean;
1269
+ }
1270
+ interface XAccount {
1271
+ id: string;
1272
+ username: string;
1273
+ name: string;
1274
+ }
1275
+ interface XPost {
1276
+ id: string;
1277
+ text: string;
1278
+ authorId: string;
1279
+ createdAt: string;
1280
+ }
1281
+ /** One live page. retrievedAt is client retrieval time, not an import timestamp. */
1282
+ interface XReadPage<T> {
1283
+ edges: {
1284
+ cursor: string;
1285
+ node: T;
1286
+ }[];
1287
+ pageInfo: {
1288
+ startCursor: string;
1289
+ endCursor: string;
1290
+ hasNextPage: boolean;
1291
+ hasPreviousPage: boolean;
1292
+ };
1293
+ retrievedAt: string;
1294
+ }
1295
+ /** Read-only access to the current user's connected X account. X tokens stay in Backend. */
1296
+ declare class XResource {
1297
+ private client;
1298
+ constructor(client: AlvaClient);
1299
+ status(): Promise<XConnectionStatus>;
1300
+ following(params?: XReadParams): Promise<XReadPage<XAccount>>;
1301
+ posts(params?: XReadParams): Promise<XReadPage<XPost>>;
1302
+ private read;
1303
+ }
1304
+
1260
1305
  /**
1261
1306
  * The canonical viewpoint author. `__typename` names the exact handle that
1262
1307
  * `thesis list` accepts: a Person's `slug` or a PublicUser's `username`.
@@ -2634,6 +2679,8 @@ interface UpdateThesisParams {
2634
2679
  body: string;
2635
2680
  title?: string;
2636
2681
  entity_ids?: ThesisID[];
2682
+ /** Full replacement: resubmit existing directions when only editing the body. */
2683
+ entity_stances?: ThesisEntityStance[];
2637
2684
  /** Required so an update cannot inadvertently publish a private thesis. */
2638
2685
  visibility: ThesisVisibility;
2639
2686
  editorial?: boolean;
@@ -2737,6 +2784,7 @@ declare class AlvaClient {
2737
2784
  private _serviceAccount?;
2738
2785
  private _release?;
2739
2786
  private _feed?;
2787
+ private _x?;
2740
2788
  private _forYou?;
2741
2789
  private _automation?;
2742
2790
  private _playbooks?;
@@ -2800,6 +2848,7 @@ declare class AlvaClient {
2800
2848
  get theses(): ThesesResource;
2801
2849
  get companyNews(): CompanyNewsResource;
2802
2850
  _requireAuth(): void;
2851
+ get x(): XResource;
2803
2852
  get forYou(): ForYouResource;
2804
2853
  _request(method: string, path: string, options?: RequestOptions): Promise<unknown>;
2805
2854
  }