@prismer/sdk 1.0.0 → 1.1.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.js CHANGED
@@ -490,7 +490,8 @@ var DirectClient = class {
490
490
  return this._r("POST", `/api/im/direct/${userId}/messages`, {
491
491
  content,
492
492
  type: options?.type ?? "text",
493
- metadata: options?.metadata
493
+ metadata: options?.metadata,
494
+ parentId: options?.parentId
494
495
  });
495
496
  }
496
497
  /** Get direct message history with a user */
@@ -522,7 +523,8 @@ var GroupsClient = class {
522
523
  return this._r("POST", `/api/im/groups/${groupId}/messages`, {
523
524
  content,
524
525
  type: options?.type ?? "text",
525
- metadata: options?.metadata
526
+ metadata: options?.metadata,
527
+ parentId: options?.parentId
526
528
  });
527
529
  }
528
530
  /** Get group message history */
@@ -574,7 +576,8 @@ var MessagesClient = class {
574
576
  return this._r("POST", `/api/im/messages/${conversationId}`, {
575
577
  content,
576
578
  type: options?.type ?? "text",
577
- metadata: options?.metadata
579
+ metadata: options?.metadata,
580
+ parentId: options?.parentId
578
581
  });
579
582
  }
580
583
  /** Get message history for a conversation */
package/dist/index.d.mts CHANGED
@@ -179,7 +179,7 @@ interface PrismerConfig {
179
179
  imAgent?: string;
180
180
  }
181
181
  interface LoadOptions {
182
- inputType?: 'url' | 'urls' | 'query';
182
+ inputType?: 'auto' | 'url' | 'urls' | 'query';
183
183
  processUncached?: boolean;
184
184
  search?: {
185
185
  topK?: number;
@@ -392,6 +392,8 @@ interface IMMeData {
392
392
  agentCard?: IMAgentCard;
393
393
  stats: {
394
394
  conversationCount: number;
395
+ directCount?: number;
396
+ groupCount?: number;
395
397
  contactCount: number;
396
398
  messagesSent: number;
397
399
  unreadCount: number;
@@ -412,11 +414,15 @@ interface IMTokenData {
412
414
  }
413
415
  interface IMMessage {
414
416
  id: string;
417
+ conversationId?: string;
415
418
  content: string;
416
419
  type: string;
417
420
  senderId: string;
421
+ parentId?: string | null;
422
+ status?: string;
418
423
  createdAt: string;
419
- metadata?: Record<string, any>;
424
+ updatedAt?: string;
425
+ metadata?: Record<string, any> | string;
420
426
  }
421
427
  interface IMRouting {
422
428
  mode: string;
@@ -433,6 +439,7 @@ interface IMMessageData {
433
439
  interface IMGroupMember {
434
440
  userId: string;
435
441
  username: string;
442
+ displayName?: string;
436
443
  role: string;
437
444
  }
438
445
  interface IMGroupData {
@@ -504,7 +511,8 @@ interface IMAutocompleteResult {
504
511
  interface IMCreateGroupOptions {
505
512
  title: string;
506
513
  description?: string;
507
- members: string[];
514
+ members?: string[];
515
+ metadata?: Record<string, any>;
508
516
  }
509
517
  interface IMCreateBindingOptions {
510
518
  platform: 'telegram' | 'discord' | 'slack' | 'wechat' | 'x' | 'line';
@@ -513,8 +521,9 @@ interface IMCreateBindingOptions {
513
521
  channelId?: string;
514
522
  }
515
523
  interface IMSendOptions {
516
- type?: 'text' | 'markdown' | 'code' | 'system_event';
524
+ type?: 'text' | 'markdown' | 'code' | 'image' | 'file' | 'tool_call' | 'tool_result' | 'system_event' | 'thinking';
517
525
  metadata?: Record<string, any>;
526
+ parentId?: string;
518
527
  }
519
528
  interface IMPaginationOptions {
520
529
  limit?: number;
package/dist/index.d.ts CHANGED
@@ -179,7 +179,7 @@ interface PrismerConfig {
179
179
  imAgent?: string;
180
180
  }
181
181
  interface LoadOptions {
182
- inputType?: 'url' | 'urls' | 'query';
182
+ inputType?: 'auto' | 'url' | 'urls' | 'query';
183
183
  processUncached?: boolean;
184
184
  search?: {
185
185
  topK?: number;
@@ -392,6 +392,8 @@ interface IMMeData {
392
392
  agentCard?: IMAgentCard;
393
393
  stats: {
394
394
  conversationCount: number;
395
+ directCount?: number;
396
+ groupCount?: number;
395
397
  contactCount: number;
396
398
  messagesSent: number;
397
399
  unreadCount: number;
@@ -412,11 +414,15 @@ interface IMTokenData {
412
414
  }
413
415
  interface IMMessage {
414
416
  id: string;
417
+ conversationId?: string;
415
418
  content: string;
416
419
  type: string;
417
420
  senderId: string;
421
+ parentId?: string | null;
422
+ status?: string;
418
423
  createdAt: string;
419
- metadata?: Record<string, any>;
424
+ updatedAt?: string;
425
+ metadata?: Record<string, any> | string;
420
426
  }
421
427
  interface IMRouting {
422
428
  mode: string;
@@ -433,6 +439,7 @@ interface IMMessageData {
433
439
  interface IMGroupMember {
434
440
  userId: string;
435
441
  username: string;
442
+ displayName?: string;
436
443
  role: string;
437
444
  }
438
445
  interface IMGroupData {
@@ -504,7 +511,8 @@ interface IMAutocompleteResult {
504
511
  interface IMCreateGroupOptions {
505
512
  title: string;
506
513
  description?: string;
507
- members: string[];
514
+ members?: string[];
515
+ metadata?: Record<string, any>;
508
516
  }
509
517
  interface IMCreateBindingOptions {
510
518
  platform: 'telegram' | 'discord' | 'slack' | 'wechat' | 'x' | 'line';
@@ -513,8 +521,9 @@ interface IMCreateBindingOptions {
513
521
  channelId?: string;
514
522
  }
515
523
  interface IMSendOptions {
516
- type?: 'text' | 'markdown' | 'code' | 'system_event';
524
+ type?: 'text' | 'markdown' | 'code' | 'image' | 'file' | 'tool_call' | 'tool_result' | 'system_event' | 'thinking';
517
525
  metadata?: Record<string, any>;
526
+ parentId?: string;
518
527
  }
519
528
  interface IMPaginationOptions {
520
529
  limit?: number;
package/dist/index.js CHANGED
@@ -500,7 +500,8 @@ var DirectClient = class {
500
500
  return this._r("POST", `/api/im/direct/${userId}/messages`, {
501
501
  content,
502
502
  type: options?.type ?? "text",
503
- metadata: options?.metadata
503
+ metadata: options?.metadata,
504
+ parentId: options?.parentId
504
505
  });
505
506
  }
506
507
  /** Get direct message history with a user */
@@ -532,7 +533,8 @@ var GroupsClient = class {
532
533
  return this._r("POST", `/api/im/groups/${groupId}/messages`, {
533
534
  content,
534
535
  type: options?.type ?? "text",
535
- metadata: options?.metadata
536
+ metadata: options?.metadata,
537
+ parentId: options?.parentId
536
538
  });
537
539
  }
538
540
  /** Get group message history */
@@ -584,7 +586,8 @@ var MessagesClient = class {
584
586
  return this._r("POST", `/api/im/messages/${conversationId}`, {
585
587
  content,
586
588
  type: options?.type ?? "text",
587
- metadata: options?.metadata
589
+ metadata: options?.metadata,
590
+ parentId: options?.parentId
588
591
  });
589
592
  }
590
593
  /** Get message history for a conversation */
package/dist/index.mjs CHANGED
@@ -458,7 +458,8 @@ var DirectClient = class {
458
458
  return this._r("POST", `/api/im/direct/${userId}/messages`, {
459
459
  content,
460
460
  type: options?.type ?? "text",
461
- metadata: options?.metadata
461
+ metadata: options?.metadata,
462
+ parentId: options?.parentId
462
463
  });
463
464
  }
464
465
  /** Get direct message history with a user */
@@ -490,7 +491,8 @@ var GroupsClient = class {
490
491
  return this._r("POST", `/api/im/groups/${groupId}/messages`, {
491
492
  content,
492
493
  type: options?.type ?? "text",
493
- metadata: options?.metadata
494
+ metadata: options?.metadata,
495
+ parentId: options?.parentId
494
496
  });
495
497
  }
496
498
  /** Get group message history */
@@ -542,7 +544,8 @@ var MessagesClient = class {
542
544
  return this._r("POST", `/api/im/messages/${conversationId}`, {
543
545
  content,
544
546
  type: options?.type ?? "text",
545
- metadata: options?.metadata
547
+ metadata: options?.metadata,
548
+ parentId: options?.parentId
546
549
  });
547
550
  }
548
551
  /** Get message history for a conversation */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismer/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Official TypeScript SDK for Prismer Cloud API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",