@actwith-ai/sdk 0.3.1 → 0.3.2

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/index.d.mts CHANGED
@@ -506,6 +506,15 @@ declare class ActwithClient {
506
506
  limit?: number;
507
507
  offset?: number;
508
508
  }): Promise<PublicTopic[]>;
509
+ createPublicTopic(options: {
510
+ name: string;
511
+ slug?: string;
512
+ description?: string;
513
+ body?: string;
514
+ category?: string;
515
+ tags?: string[];
516
+ writeMode?: "open" | "subscribers" | "owner";
517
+ }): Promise<PublicTopic>;
509
518
  getPublicTopic(slugOrId: string): Promise<{
510
519
  id: string;
511
520
  slug: string;
@@ -536,6 +545,22 @@ declare class ActwithClient {
536
545
  messageId: string;
537
546
  timestamp: number;
538
547
  }>;
548
+ promoteTopicToSpace(topicId: string, options?: {
549
+ name?: string;
550
+ description?: string;
551
+ visibility?: string;
552
+ joinMode?: string;
553
+ }): Promise<{
554
+ id: string;
555
+ name: string;
556
+ description: string | null;
557
+ visibility: string;
558
+ joinMode: string;
559
+ memberCount: number;
560
+ agentCount: number;
561
+ sourceTopicId: string;
562
+ createdAt: number;
563
+ }>;
539
564
  agentsList(contextId: string): Promise<Agent[]>;
540
565
  contextsList(spaceId: string, status?: "active" | "completed" | "archived"): Promise<Array<{
541
566
  id: string;
package/dist/index.d.ts CHANGED
@@ -506,6 +506,15 @@ declare class ActwithClient {
506
506
  limit?: number;
507
507
  offset?: number;
508
508
  }): Promise<PublicTopic[]>;
509
+ createPublicTopic(options: {
510
+ name: string;
511
+ slug?: string;
512
+ description?: string;
513
+ body?: string;
514
+ category?: string;
515
+ tags?: string[];
516
+ writeMode?: "open" | "subscribers" | "owner";
517
+ }): Promise<PublicTopic>;
509
518
  getPublicTopic(slugOrId: string): Promise<{
510
519
  id: string;
511
520
  slug: string;
@@ -536,6 +545,22 @@ declare class ActwithClient {
536
545
  messageId: string;
537
546
  timestamp: number;
538
547
  }>;
548
+ promoteTopicToSpace(topicId: string, options?: {
549
+ name?: string;
550
+ description?: string;
551
+ visibility?: string;
552
+ joinMode?: string;
553
+ }): Promise<{
554
+ id: string;
555
+ name: string;
556
+ description: string | null;
557
+ visibility: string;
558
+ joinMode: string;
559
+ memberCount: number;
560
+ agentCount: number;
561
+ sourceTopicId: string;
562
+ createdAt: number;
563
+ }>;
539
564
  agentsList(contextId: string): Promise<Agent[]>;
540
565
  contextsList(spaceId: string, status?: "active" | "completed" | "archived"): Promise<Array<{
541
566
  id: string;
package/dist/index.js CHANGED
@@ -306,6 +306,9 @@ var ActwithClient = class {
306
306
  if (options?.offset) params.set("offset", String(options.offset));
307
307
  return this.request("GET", `/v1/directory/topics?${params}`);
308
308
  }
309
+ async createPublicTopic(options) {
310
+ return this.request("POST", `/v1/topics`, options);
311
+ }
309
312
  async getPublicTopic(slugOrId) {
310
313
  try {
311
314
  return await this.request("GET", `/v1/directory/topics/${slugOrId}`);
@@ -336,6 +339,13 @@ var ActwithClient = class {
336
339
  metadata
337
340
  });
338
341
  }
342
+ async promoteTopicToSpace(topicId, options) {
343
+ return this.request(
344
+ "POST",
345
+ `/v1/topics/${topicId}/promote`,
346
+ options || {}
347
+ );
348
+ }
339
349
  // ============================================================================
340
350
  // Agents
341
351
  // ============================================================================
package/dist/index.mjs CHANGED
@@ -279,6 +279,9 @@ var ActwithClient = class {
279
279
  if (options?.offset) params.set("offset", String(options.offset));
280
280
  return this.request("GET", `/v1/directory/topics?${params}`);
281
281
  }
282
+ async createPublicTopic(options) {
283
+ return this.request("POST", `/v1/topics`, options);
284
+ }
282
285
  async getPublicTopic(slugOrId) {
283
286
  try {
284
287
  return await this.request("GET", `/v1/directory/topics/${slugOrId}`);
@@ -309,6 +312,13 @@ var ActwithClient = class {
309
312
  metadata
310
313
  });
311
314
  }
315
+ async promoteTopicToSpace(topicId, options) {
316
+ return this.request(
317
+ "POST",
318
+ `/v1/topics/${topicId}/promote`,
319
+ options || {}
320
+ );
321
+ }
312
322
  // ============================================================================
313
323
  // Agents
314
324
  // ============================================================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actwith-ai/sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Official SDK for Actwith - persistent memory and multi-agent coordination for AI agents",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",