whio-api-sdk 1.0.189-bet-staging → 1.0.190-bet-staging

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.
@@ -93,10 +93,10 @@ export declare class ApiSDK {
93
93
  message: string;
94
94
  sessionId: string;
95
95
  }>;
96
- createAgent(name: string): Promise<Agent>;
96
+ createAgent(name: string, templateTextReplacement?: string): Promise<Agent>;
97
97
  getAgents(): Promise<Agent[]>;
98
98
  getAgent(id: string): Promise<Agent>;
99
- updateAgent(id: string, name: string): Promise<Agent>;
99
+ updateAgent(id: string, name: string, templateTextReplacement?: string): Promise<Agent>;
100
100
  deleteAgent(id: string): Promise<void>;
101
101
  addAgentToOrganization(agentId: string, organizationId: string): Promise<void>;
102
102
  removeAgentFromOrganization(agentId: string, organizationId: string): Promise<void>;
@@ -692,9 +692,9 @@ export class ApiSDK {
692
692
  // ======================
693
693
  // AGENT METHODS
694
694
  // ======================
695
- createAgent(name) {
695
+ createAgent(name, templateTextReplacement) {
696
696
  return __awaiter(this, void 0, void 0, function* () {
697
- const dto = { name };
697
+ const dto = { name, templateTextReplacement };
698
698
  return this.request(urls.agents, 'POST', dto);
699
699
  });
700
700
  }
@@ -708,9 +708,9 @@ export class ApiSDK {
708
708
  return this.request(`${urls.agents}/${id}`, 'GET');
709
709
  });
710
710
  }
711
- updateAgent(id, name) {
711
+ updateAgent(id, name, templateTextReplacement) {
712
712
  return __awaiter(this, void 0, void 0, function* () {
713
- const dto = { name };
713
+ const dto = { name, templateTextReplacement };
714
714
  return this.request(`${urls.agents}/${id}`, 'PATCH', dto);
715
715
  });
716
716
  }
@@ -328,6 +328,7 @@ export interface UpdateSessionDto {
328
328
  export interface Agent {
329
329
  id: string;
330
330
  name: string;
331
+ templateTextReplacement?: string;
331
332
  createdAt: string;
332
333
  updatedAt: string;
333
334
  organizations?: AgentOrganization[];
@@ -341,9 +342,11 @@ export interface AgentOrganization {
341
342
  }
342
343
  export interface CreateAgentDto {
343
344
  name: string;
345
+ templateTextReplacement?: string;
344
346
  }
345
347
  export interface UpdateAgentDto {
346
348
  name?: string;
349
+ templateTextReplacement?: string;
347
350
  }
348
351
  export declare enum AudioFileStatus {
349
352
  UPLOADED = "UPLOADED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.189-bet-staging",
3
+ "version": "1.0.190-bet-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
package/src/sdk/sdk.ts CHANGED
@@ -781,8 +781,8 @@ export class ApiSDK {
781
781
  // AGENT METHODS
782
782
  // ======================
783
783
 
784
- public async createAgent(name: string): Promise<Agent> {
785
- const dto: CreateAgentDto = { name };
784
+ public async createAgent(name: string, templateTextReplacement?: string): Promise<Agent> {
785
+ const dto: CreateAgentDto = { name, templateTextReplacement };
786
786
  return this.request<Agent>(urls.agents, 'POST', dto);
787
787
  }
788
788
 
@@ -794,8 +794,8 @@ export class ApiSDK {
794
794
  return this.request<Agent>(`${urls.agents}/${id}`, 'GET');
795
795
  }
796
796
 
797
- public async updateAgent(id: string, name: string): Promise<Agent> {
798
- const dto: UpdateAgentDto = { name };
797
+ public async updateAgent(id: string, name: string, templateTextReplacement?: string): Promise<Agent> {
798
+ const dto: UpdateAgentDto = { name, templateTextReplacement };
799
799
  return this.request<Agent>(`${urls.agents}/${id}`, 'PATCH', dto);
800
800
  }
801
801
 
package/src/sdk/types.ts CHANGED
@@ -413,6 +413,7 @@ export interface UpdateSessionDto {
413
413
  export interface Agent {
414
414
  id: string;
415
415
  name: string;
416
+ templateTextReplacement?: string;
416
417
  createdAt: string;
417
418
  updatedAt: string;
418
419
  organizations?: AgentOrganization[];
@@ -430,10 +431,12 @@ export interface AgentOrganization {
430
431
  // Agent DTOs
431
432
  export interface CreateAgentDto {
432
433
  name: string;
434
+ templateTextReplacement?: string;
433
435
  }
434
436
 
435
437
  export interface UpdateAgentDto {
436
438
  name?: string;
439
+ templateTextReplacement?: string;
437
440
  }
438
441
 
439
442
  // Audio File types