@qcobro/sdk 1.25.0 → 1.26.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.
@@ -31,10 +31,10 @@ export declare class AgentTemplatesResource {
31
31
  type: import("@prisma/client").$Enums.AgentType;
32
32
  id: string;
33
33
  name: string;
34
- workspaceRef: string;
35
34
  archivedAt: string | null;
36
35
  createdAt: string;
37
36
  updatedAt: string;
37
+ workspaceRef: string;
38
38
  }[]>;
39
39
  /** Get a single agent template by id within the active workspace. */
40
40
  get(input: GetInput): Promise<{
@@ -43,11 +43,11 @@ export declare class AgentTemplatesResource {
43
43
  campaigns: {
44
44
  id: string;
45
45
  name: string;
46
- workspaceRef: string;
47
46
  createdAt: string;
48
47
  updatedAt: string;
49
- status: import("@prisma/client").$Enums.CampaignStatus;
48
+ workspaceRef: string;
50
49
  agentTemplateId: string;
50
+ status: import("@prisma/client").$Enums.CampaignStatus;
51
51
  pauseReason: import("@prisma/client").$Enums.CampaignPauseReason | null;
52
52
  startDate: string;
53
53
  endDate: string | null;
@@ -59,47 +59,47 @@ export declare class AgentTemplatesResource {
59
59
  whatsAppSenderNumberId: string | null;
60
60
  }[];
61
61
  name: string;
62
- workspaceRef: string;
63
62
  archivedAt: string | null;
64
63
  createdAt: string;
65
64
  updatedAt: string;
65
+ workspaceRef: string;
66
66
  voiceAiConfig: {
67
67
  language: string;
68
- firstMessage: string | null;
69
- voice: string;
68
+ templateId: string;
69
+ fonosterAppName: string;
70
70
  fonosterAppRef: string | null;
71
+ voice: string;
71
72
  systemPrompt: string;
72
- fonosterAppName: string;
73
- templateId: string;
73
+ firstMessage: string | null;
74
74
  } | null;
75
75
  voicePrerecordedConfig: {
76
76
  language: string;
77
- voice: string;
78
- fonosterAppRef: string | null;
77
+ templateId: string;
79
78
  fonosterAppName: string;
79
+ fonosterAppRef: string | null;
80
+ voice: string;
80
81
  script: string;
81
- templateId: string;
82
82
  } | null;
83
83
  smsConfig: {
84
+ templateId: string;
84
85
  messageBody: string;
85
86
  senderId: string | null;
86
- templateId: string;
87
87
  } | null;
88
88
  emailConfig: {
89
89
  fromEmail: string;
90
90
  fromName: string;
91
- subject: string;
91
+ templateId: string;
92
92
  systemPrompt: string;
93
93
  messageBody: string;
94
+ subject: string;
94
95
  maxReplies: number | null;
95
- templateId: string;
96
96
  } | null;
97
97
  whatsAppConfig: {
98
+ templateId: string;
98
99
  systemPrompt: string;
99
100
  messageBody: string;
100
101
  maxReplies: number | null;
101
102
  templateName: string;
102
- templateId: string;
103
103
  } | null;
104
104
  }>;
105
105
  /** Create an agent template in the active workspace. `type` determines its required fields. */
@@ -107,10 +107,10 @@ export declare class AgentTemplatesResource {
107
107
  type: import("@qcobro/common").AgentType;
108
108
  id: string;
109
109
  name: string;
110
- workspaceRef: string;
111
110
  archivedAt: string | null;
112
111
  createdAt: string;
113
112
  updatedAt: string;
113
+ workspaceRef: string;
114
114
  }>;
115
115
  /**
116
116
  * Manually re-attempt the Fonoster sync for a voice agent template.
@@ -122,10 +122,10 @@ export declare class AgentTemplatesResource {
122
122
  type: import("@qcobro/common").AgentType;
123
123
  id: string;
124
124
  name: string;
125
- workspaceRef: string;
126
125
  archivedAt: string | null;
127
126
  createdAt: string;
128
127
  updatedAt: string;
128
+ workspaceRef: string;
129
129
  }>;
130
130
  }
131
131
  export {};
@@ -30,71 +30,71 @@ export declare class PortfoliosResource {
30
30
  list(input?: ListInput): Promise<{
31
31
  id: string;
32
32
  name: string;
33
- workspaceRef: string;
34
33
  archivedAt: string | null;
35
34
  createdAt: string;
36
35
  updatedAt: string;
36
+ workspaceRef: string;
37
+ clientId: string;
37
38
  accountCount: number;
39
+ totalOutstandingBalance: number;
38
40
  recoveredAmount: number;
39
41
  lastSyncedAt: string | null;
40
- clientId: string;
41
- totalOutstandingBalance: number;
42
42
  }[]>;
43
43
  /** Get a single portfolio by id within the active workspace. */
44
44
  get(input: GetInput): Promise<{
45
45
  id: string;
46
46
  name: string;
47
- workspaceRef: string;
48
47
  archivedAt: string | null;
49
48
  createdAt: string;
50
49
  updatedAt: string;
50
+ workspaceRef: string;
51
+ clientId: string;
51
52
  accountCount: number;
53
+ totalOutstandingBalance: number;
52
54
  recoveredAmount: number;
53
55
  lastSyncedAt: string | null;
54
- clientId: string;
55
- totalOutstandingBalance: number;
56
56
  }>;
57
57
  /** Create a portfolio in the active workspace. */
58
58
  create(input: CreateInput): Promise<{
59
59
  id: string;
60
60
  name: string;
61
- workspaceRef: string;
62
61
  archivedAt: string | null;
63
62
  createdAt: string;
64
63
  updatedAt: string;
64
+ workspaceRef: string;
65
+ clientId: string;
65
66
  accountCount: number;
67
+ totalOutstandingBalance: number;
66
68
  recoveredAmount: number;
67
69
  lastSyncedAt: string | null;
68
- clientId: string;
69
- totalOutstandingBalance: number;
70
70
  }>;
71
71
  /** Update a portfolio. Set `archived: true` to archive it, `false` to restore it. */
72
72
  update(input: UpdateInput): Promise<{
73
73
  id: string;
74
74
  name: string;
75
- workspaceRef: string;
76
75
  archivedAt: string | null;
77
76
  createdAt: string;
78
77
  updatedAt: string;
78
+ workspaceRef: string;
79
+ clientId: string;
79
80
  accountCount: number;
81
+ totalOutstandingBalance: number;
80
82
  recoveredAmount: number;
81
83
  lastSyncedAt: string | null;
82
- clientId: string;
83
- totalOutstandingBalance: number;
84
84
  }>;
85
85
  /** Delete a portfolio in the active workspace. */
86
86
  delete(input: DeleteInput): Promise<{
87
87
  id: string;
88
88
  name: string;
89
- workspaceRef: string;
90
89
  archivedAt: string | null;
91
90
  createdAt: string;
92
91
  updatedAt: string;
92
+ workspaceRef: string;
93
+ clientId: string;
93
94
  accountCount: number;
95
+ totalOutstandingBalance: number;
94
96
  recoveredAmount: number;
95
97
  lastSyncedAt: string | null;
96
- clientId: string;
97
- totalOutstandingBalance: number;
98
98
  }>;
99
99
  /** List a page of a portfolio's accounts, with the total count. */
100
100
  listAccounts(input: ListAccountsInput): Promise<{
@@ -104,11 +104,10 @@ export declare class PortfoliosResource {
104
104
  archivedAt: string | null;
105
105
  createdAt: string;
106
106
  updatedAt: string;
107
- email: string | null;
108
- outstandingBalance: number;
109
- phone: string | null;
110
107
  externalId: string;
111
108
  fullName: string;
109
+ phone: string | null;
110
+ email: string | null;
112
111
  preferredLanguage: string | null;
113
112
  bestTimeToCall: string | null;
114
113
  customerSegment: string | null;
@@ -116,6 +115,7 @@ export declare class PortfoliosResource {
116
115
  termsAmount: number;
117
116
  termsFrequency: string | null;
118
117
  termsLength: number;
118
+ outstandingBalance: number;
119
119
  daysPastDue: number;
120
120
  missedInstallments: number;
121
121
  lastPaymentDate: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qcobro/sdk",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "Developer-friendly TypeScript SDK for the QCobro API.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -25,7 +25,7 @@
25
25
  "zod": "^4.0.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@qcobro/apiserver": "^1.24.1",
28
+ "@qcobro/apiserver": "^1.26.0",
29
29
  "@trpc/server": "^11.0.0",
30
30
  "@types/express": "^5.0.0",
31
31
  "express": "^5.0.0",