@opencx/mcp 1.12.4 → 1.13.1
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/restrictions.spec.js +63 -0
- package/dist/restrictions.spec.js.map +1 -1
- package/dist/schema.d.ts +268 -85
- package/dist/schema.d.ts.map +1 -1
- package/dist/tools/actions.d.ts.map +1 -1
- package/dist/tools/actions.js +8 -0
- package/dist/tools/actions.js.map +1 -1
- package/dist/tools/reports.d.ts.map +1 -1
- package/dist/tools/reports.js +30 -23
- package/dist/tools/reports.js.map +1 -1
- package/package.json +1 -1
|
@@ -146,5 +146,68 @@ describe('data-source restriction tools', () => {
|
|
|
146
146
|
expect(await getRequestBody(call)).toEqual({ restricted_to_segments: ['seg-1'] });
|
|
147
147
|
expect(result.isError).toBeFalsy();
|
|
148
148
|
});
|
|
149
|
+
it('create_action POSTs restricted_to_segments', async () => {
|
|
150
|
+
fetchSpy.mockResolvedValueOnce(mockResponse({
|
|
151
|
+
id: 'a-1',
|
|
152
|
+
name: 'Get Order',
|
|
153
|
+
restricted_to_segments: ['seg-1'],
|
|
154
|
+
}));
|
|
155
|
+
const result = await client.callTool({
|
|
156
|
+
name: 'create_action',
|
|
157
|
+
arguments: {
|
|
158
|
+
name: 'Get Order',
|
|
159
|
+
api_endpoint: 'https://api.example.com/orders',
|
|
160
|
+
request_type: 'GET',
|
|
161
|
+
payload: { parameters: [] },
|
|
162
|
+
restricted_to_segments: ['seg-1'],
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
const call = fetchSpy.mock.calls[0];
|
|
166
|
+
expect(getRequestUrl(call)).toBe('https://api.test.com/actions');
|
|
167
|
+
expect(getRequestMethod(call)).toBe('POST');
|
|
168
|
+
expect(await getRequestBody(call)).toEqual({
|
|
169
|
+
name: 'Get Order',
|
|
170
|
+
api_endpoint: 'https://api.example.com/orders',
|
|
171
|
+
request_type: 'GET',
|
|
172
|
+
payload: { parameters: [] },
|
|
173
|
+
restricted_to_segments: ['seg-1'],
|
|
174
|
+
});
|
|
175
|
+
expect(result.isError).toBeFalsy();
|
|
176
|
+
});
|
|
177
|
+
it('update_action PATCHes restricted_to_segments', async () => {
|
|
178
|
+
fetchSpy.mockResolvedValueOnce(mockResponse({ id: 'a-1', restricted_to_segments: ['seg-1', 'seg-2'] }));
|
|
179
|
+
const result = await client.callTool({
|
|
180
|
+
name: 'update_action',
|
|
181
|
+
arguments: {
|
|
182
|
+
action_id: 'a-1',
|
|
183
|
+
restricted_to_segments: ['seg-1', 'seg-2'],
|
|
184
|
+
},
|
|
185
|
+
});
|
|
186
|
+
const call = fetchSpy.mock.calls[0];
|
|
187
|
+
expect(getRequestUrl(call)).toBe('https://api.test.com/actions/a-1');
|
|
188
|
+
expect(getRequestMethod(call)).toBe('PATCH');
|
|
189
|
+
expect(await getRequestBody(call)).toEqual({ restricted_to_segments: ['seg-1', 'seg-2'] });
|
|
190
|
+
expect(result.isError).toBeFalsy();
|
|
191
|
+
});
|
|
192
|
+
it('update_action PATCHes empty restricted_to_segments to clear', async () => {
|
|
193
|
+
fetchSpy.mockResolvedValueOnce(mockResponse({ id: 'a-1', restricted_to_segments: [] }));
|
|
194
|
+
const result = await client.callTool({
|
|
195
|
+
name: 'update_action',
|
|
196
|
+
arguments: { action_id: 'a-1', restricted_to_segments: [] },
|
|
197
|
+
});
|
|
198
|
+
const call = fetchSpy.mock.calls[0];
|
|
199
|
+
expect(await getRequestBody(call)).toEqual({ restricted_to_segments: [] });
|
|
200
|
+
expect(result.isError).toBeFalsy();
|
|
201
|
+
});
|
|
202
|
+
it('update_action omits restricted_to_segments when not provided', async () => {
|
|
203
|
+
fetchSpy.mockResolvedValueOnce(mockResponse({ id: 'a-1', name: 'Renamed' }));
|
|
204
|
+
const result = await client.callTool({
|
|
205
|
+
name: 'update_action',
|
|
206
|
+
arguments: { action_id: 'a-1', name: 'Renamed' },
|
|
207
|
+
});
|
|
208
|
+
const call = fetchSpy.mock.calls[0];
|
|
209
|
+
expect(await getRequestBody(call)).toEqual({ name: 'Renamed' });
|
|
210
|
+
expect(result.isError).toBeFalsy();
|
|
211
|
+
});
|
|
149
212
|
});
|
|
150
213
|
//# sourceMappingURL=restrictions.spec.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"restrictions.spec.js","sourceRoot":"","sources":["../src/restrictions.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,SAAS,YAAY,CAAC,IAAa,EAAE,MAAM,GAAG,GAAG,EAAE,UAAU,GAAG,IAAI;IAClE,MAAM,IAAI,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IACpE,IAAI,MAAM,KAAK,GAAG;QAAE,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;IACtE,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;AACpD,CAAC;AAED,SAAS,aAAa,CAAC,IAAe;IACpC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,IAAI,GAAG,YAAY,OAAO;QAAE,OAAO,GAAG,CAAC,GAAG,CAAC;IAC3C,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;AACrB,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAe;IACvC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB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5E,QAAQ,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QAE7E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC;YACnC,IAAI,EAAE,eAAe;YACrB,SAAS,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE;SACjD,CAAC,CAAC;QAEH,MAAM,IAAI,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAc,CAAC;QACjD,MAAM,CAAC,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;QAChE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/dist/schema.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export interface paths {
|
|
|
70
70
|
head?: never;
|
|
71
71
|
/**
|
|
72
72
|
* Update an action
|
|
73
|
-
* @description Update an existing action. Only provided fields are changed.
|
|
73
|
+
* @description Update an existing action. Only provided fields are changed. Use `restricted_to_segments` to limit the action to contacts in those segments (empty array = available to all contacts; omit to leave unchanged).
|
|
74
74
|
*/
|
|
75
75
|
patch: operations["updateAction"];
|
|
76
76
|
trace?: never;
|
|
@@ -135,6 +135,26 @@ export interface paths {
|
|
|
135
135
|
patch?: never;
|
|
136
136
|
trace?: never;
|
|
137
137
|
};
|
|
138
|
+
"/agent-availability/{userId}": {
|
|
139
|
+
parameters: {
|
|
140
|
+
query?: never;
|
|
141
|
+
header?: never;
|
|
142
|
+
path?: never;
|
|
143
|
+
cookie?: never;
|
|
144
|
+
};
|
|
145
|
+
get?: never;
|
|
146
|
+
/**
|
|
147
|
+
* Update agent availability
|
|
148
|
+
* @description Update an agent's availability status and per-agent chat capacity. The agent must belong to the API key's organization.
|
|
149
|
+
*/
|
|
150
|
+
put: operations["updateAgentAvailability"];
|
|
151
|
+
post?: never;
|
|
152
|
+
delete?: never;
|
|
153
|
+
options?: never;
|
|
154
|
+
head?: never;
|
|
155
|
+
patch?: never;
|
|
156
|
+
trace?: never;
|
|
157
|
+
};
|
|
138
158
|
"/audit-logs": {
|
|
139
159
|
parameters: {
|
|
140
160
|
query?: never;
|
|
@@ -3761,8 +3781,9 @@ export interface paths {
|
|
|
3761
3781
|
get?: never;
|
|
3762
3782
|
put?: never;
|
|
3763
3783
|
/**
|
|
3764
|
-
*
|
|
3765
|
-
* @
|
|
3784
|
+
* DEPRECATED — use runAnalyticsQuery
|
|
3785
|
+
* @deprecated
|
|
3786
|
+
* @description DEPRECATED: legacy Postgres-backed report queries. Existing published mini apps keep working, but new code must use `runAnalyticsQuery` (ClickHouse-backed `report_*` views). Run a read-only SQL query against the org-scoped `report_*_view` views. Scoped to the calling organization and read-only, enforced server-side.
|
|
3766
3787
|
*/
|
|
3767
3788
|
post: operations["runReportQuery"];
|
|
3768
3789
|
delete?: never;
|
|
@@ -3771,6 +3792,26 @@ export interface paths {
|
|
|
3771
3792
|
patch?: never;
|
|
3772
3793
|
trace?: never;
|
|
3773
3794
|
};
|
|
3795
|
+
"/reports/analytics": {
|
|
3796
|
+
parameters: {
|
|
3797
|
+
query?: never;
|
|
3798
|
+
header?: never;
|
|
3799
|
+
path?: never;
|
|
3800
|
+
cookie?: never;
|
|
3801
|
+
};
|
|
3802
|
+
get?: never;
|
|
3803
|
+
put?: never;
|
|
3804
|
+
/**
|
|
3805
|
+
* Run a read-only analytics query
|
|
3806
|
+
* @description Run a read-only SQL query against the org-scoped `report_*` analytics views. Scoped to the calling organization and read-only, enforced server-side.
|
|
3807
|
+
*/
|
|
3808
|
+
post: operations["runAnalyticsQuery"];
|
|
3809
|
+
delete?: never;
|
|
3810
|
+
options?: never;
|
|
3811
|
+
head?: never;
|
|
3812
|
+
patch?: never;
|
|
3813
|
+
trace?: never;
|
|
3814
|
+
};
|
|
3774
3815
|
"/salesforce/miaw/webhook": {
|
|
3775
3816
|
parameters: {
|
|
3776
3817
|
query?: never;
|
|
@@ -4153,6 +4194,7 @@ export interface components {
|
|
|
4153
4194
|
/** @constant */
|
|
4154
4195
|
type: "contact_belongs_to_segment";
|
|
4155
4196
|
segment_id: string;
|
|
4197
|
+
belongs?: boolean;
|
|
4156
4198
|
} | {
|
|
4157
4199
|
/** @constant */
|
|
4158
4200
|
type: "last_contacted_at_between";
|
|
@@ -4167,6 +4209,49 @@ export interface components {
|
|
|
4167
4209
|
after?: string;
|
|
4168
4210
|
/** Format: date-time */
|
|
4169
4211
|
before?: string;
|
|
4212
|
+
} | {
|
|
4213
|
+
/** @constant */
|
|
4214
|
+
type: "contact_has_phone";
|
|
4215
|
+
has: boolean;
|
|
4216
|
+
} | {
|
|
4217
|
+
/** @constant */
|
|
4218
|
+
type: "contact_has_email";
|
|
4219
|
+
has: boolean;
|
|
4220
|
+
} | {
|
|
4221
|
+
/** @constant */
|
|
4222
|
+
type: "contact_is_blocked";
|
|
4223
|
+
blocked: boolean;
|
|
4224
|
+
} | {
|
|
4225
|
+
/** @constant */
|
|
4226
|
+
type: "contact_is_unsubscribed";
|
|
4227
|
+
unsubscribed: boolean;
|
|
4228
|
+
} | {
|
|
4229
|
+
/** @constant */
|
|
4230
|
+
type: "contacts_custom_data";
|
|
4231
|
+
conditions: {
|
|
4232
|
+
key: string;
|
|
4233
|
+
/** @enum {string} */
|
|
4234
|
+
op: "exists" | "not_exists" | "eq" | "neq" | "contains";
|
|
4235
|
+
value?: string;
|
|
4236
|
+
}[];
|
|
4237
|
+
};
|
|
4238
|
+
MakeOutboundCallDto: {
|
|
4239
|
+
phoneAgentId: string;
|
|
4240
|
+
contact: {
|
|
4241
|
+
id: string;
|
|
4242
|
+
} | {
|
|
4243
|
+
phoneNumber: string;
|
|
4244
|
+
};
|
|
4245
|
+
};
|
|
4246
|
+
UpdateKnowledgeSourcesDto: {
|
|
4247
|
+
/** @description IDs of individual instructions to select (outside of selected directories) */
|
|
4248
|
+
instructionIds: string[];
|
|
4249
|
+
/** @description IDs of directories to select (all instructions in these directories are included) */
|
|
4250
|
+
directoryIds: string[];
|
|
4251
|
+
};
|
|
4252
|
+
UpdateAgentWorkflowsDto: {
|
|
4253
|
+
/** @description Logical workflow UUIDs to enable for this agent */
|
|
4254
|
+
workflowIds: string[];
|
|
4170
4255
|
};
|
|
4171
4256
|
CreateGroupDto: {
|
|
4172
4257
|
name: string;
|
|
@@ -4229,24 +4314,6 @@ export interface components {
|
|
|
4229
4314
|
/** @description Reason for archiving */
|
|
4230
4315
|
reason?: string;
|
|
4231
4316
|
};
|
|
4232
|
-
MakeOutboundCallDto: {
|
|
4233
|
-
phoneAgentId: string;
|
|
4234
|
-
contact: {
|
|
4235
|
-
id: string;
|
|
4236
|
-
} | {
|
|
4237
|
-
phoneNumber: string;
|
|
4238
|
-
};
|
|
4239
|
-
};
|
|
4240
|
-
UpdateKnowledgeSourcesDto: {
|
|
4241
|
-
/** @description IDs of individual instructions to select (outside of selected directories) */
|
|
4242
|
-
instructionIds: string[];
|
|
4243
|
-
/** @description IDs of directories to select (all instructions in these directories are included) */
|
|
4244
|
-
directoryIds: string[];
|
|
4245
|
-
};
|
|
4246
|
-
UpdateAgentWorkflowsDto: {
|
|
4247
|
-
/** @description Logical workflow UUIDs to enable for this agent */
|
|
4248
|
-
workflowIds: string[];
|
|
4249
|
-
};
|
|
4250
4317
|
WhatsAppTemplateVariableDto: {
|
|
4251
4318
|
/** @constant */
|
|
4252
4319
|
type: "GLOBAL_DYNAMIC";
|
|
@@ -4322,7 +4389,7 @@ export interface components {
|
|
|
4322
4389
|
parameter_name?: string;
|
|
4323
4390
|
}[];
|
|
4324
4391
|
};
|
|
4325
|
-
buttons?: {
|
|
4392
|
+
buttons?: ({
|
|
4326
4393
|
/** @constant */
|
|
4327
4394
|
type: "button";
|
|
4328
4395
|
/** @enum {string} */
|
|
@@ -4334,7 +4401,19 @@ export interface components {
|
|
|
4334
4401
|
type: "text";
|
|
4335
4402
|
text: components["schemas"]["WhatsAppTemplateVariableDto"];
|
|
4336
4403
|
}[];
|
|
4337
|
-
}
|
|
4404
|
+
} | {
|
|
4405
|
+
/** @constant */
|
|
4406
|
+
type: "button";
|
|
4407
|
+
/** @enum {string} */
|
|
4408
|
+
index: "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
4409
|
+
/** @constant */
|
|
4410
|
+
sub_type: "copy_code";
|
|
4411
|
+
parameters: {
|
|
4412
|
+
/** @constant */
|
|
4413
|
+
type: "coupon_code";
|
|
4414
|
+
coupon_code: components["schemas"]["WhatsAppTemplateVariableDto"];
|
|
4415
|
+
}[];
|
|
4416
|
+
})[];
|
|
4338
4417
|
};
|
|
4339
4418
|
FileUploadDto: {
|
|
4340
4419
|
/**
|
|
@@ -4398,6 +4477,16 @@ export interface components {
|
|
|
4398
4477
|
title?: string;
|
|
4399
4478
|
content?: string;
|
|
4400
4479
|
};
|
|
4480
|
+
UpdateAgentAvailabilityPublicDto: {
|
|
4481
|
+
/** @description Whether the agent is available to take chats */
|
|
4482
|
+
is_available?: boolean;
|
|
4483
|
+
/** @description Free-form status label */
|
|
4484
|
+
custom_status?: string | null;
|
|
4485
|
+
/** @description Per-agent chat capacity */
|
|
4486
|
+
max_concurrent_chats?: number;
|
|
4487
|
+
/** @description Whether the agent is available for inbound phone calls */
|
|
4488
|
+
call_available?: boolean;
|
|
4489
|
+
};
|
|
4401
4490
|
SalesforceMiawWebhookBody: {
|
|
4402
4491
|
/** @enum {string} */
|
|
4403
4492
|
event: "message:new";
|
|
@@ -4521,6 +4610,8 @@ export interface components {
|
|
|
4521
4610
|
tags?: string[];
|
|
4522
4611
|
/** @description Require the user to submit a form before executing */
|
|
4523
4612
|
require_form_submission?: boolean;
|
|
4613
|
+
/** @description Contact segment ids this action is restricted to. Empty/omit = available to all contacts. Segment ids come from list contact segments. */
|
|
4614
|
+
restricted_to_segments?: string[];
|
|
4524
4615
|
};
|
|
4525
4616
|
UpdateActionPublicDto: {
|
|
4526
4617
|
/** @description Action display name */
|
|
@@ -4598,6 +4689,8 @@ export interface components {
|
|
|
4598
4689
|
tags?: string[];
|
|
4599
4690
|
/** @description Require the user to submit a form before executing */
|
|
4600
4691
|
require_form_submission?: boolean;
|
|
4692
|
+
/** @description Contact segment ids this action is restricted to. Omit to leave unchanged; pass [] to clear. Segment ids come from list contact segments. */
|
|
4693
|
+
restricted_to_segments?: string[];
|
|
4601
4694
|
};
|
|
4602
4695
|
InvokeActionDto: {
|
|
4603
4696
|
/**
|
|
@@ -5191,7 +5284,7 @@ export interface components {
|
|
|
5191
5284
|
* @description What starts the workflow. Use "manual-trigger" for on-demand execution, "ai-trigger" for AI-initiated, "webhook" for external HTTP triggers, "cron-trigger" for scheduled runs, or event-based triggers like "ticket-created", "contact-created", etc.
|
|
5192
5285
|
* @enum {string}
|
|
5193
5286
|
*/
|
|
5194
|
-
trigger_type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed";
|
|
5287
|
+
trigger_type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed" | "ai-response-requested" | "ticket-reopened";
|
|
5195
5288
|
/** @description Trigger-specific configuration (e.g. cron expression for cron-trigger) */
|
|
5196
5289
|
trigger_configuration?: unknown | null;
|
|
5197
5290
|
/** @description Array of workflow steps and control-flow blocks. Each step is an object with { "$kind": "Action", "id": "<unique-step-id>", "type": "<action-type>", "name": "<display-name>", "input": { ... } }. Control-flow blocks use { "$kind": "Block", "type": "if-else", "id": "<unique-id>", "inputs": { "condition": { "operatorName": "equals", "left": "{{step_id.field}}", "right": "value" } }, "branches": { "then": [...steps], "else": [...steps] } }. Use {{step_id.field}} to reference outputs from previous steps (no `.output.` segment — the field sits directly under the step id). */
|
|
@@ -5208,7 +5301,7 @@ export interface components {
|
|
|
5208
5301
|
* @description New trigger type
|
|
5209
5302
|
* @enum {string}
|
|
5210
5303
|
*/
|
|
5211
|
-
trigger_type?: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed";
|
|
5304
|
+
trigger_type?: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed" | "ai-response-requested" | "ticket-reopened";
|
|
5212
5305
|
/** @description New trigger configuration */
|
|
5213
5306
|
trigger_configuration?: unknown | null;
|
|
5214
5307
|
/** @description New workflow step/block definitions (replaces existing blocks) */
|
|
@@ -5221,7 +5314,7 @@ export interface components {
|
|
|
5221
5314
|
* @description Trigger type to validate against
|
|
5222
5315
|
* @enum {string}
|
|
5223
5316
|
*/
|
|
5224
|
-
trigger_type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed";
|
|
5317
|
+
trigger_type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed" | "ai-response-requested" | "ticket-reopened";
|
|
5225
5318
|
/** @description Trigger configuration to validate against the trigger's configuration_def. When omitted, the trigger is validated as if unconfigured — triggers with required configuration (e.g. cron-trigger, ai-trigger) will report errors. */
|
|
5226
5319
|
trigger_configuration?: unknown | null;
|
|
5227
5320
|
/** @description Workflow blocks to validate */
|
|
@@ -5234,7 +5327,7 @@ export interface components {
|
|
|
5234
5327
|
* @description Trigger type whose payload shape this synthetic payload should match
|
|
5235
5328
|
* @enum {string}
|
|
5236
5329
|
*/
|
|
5237
|
-
type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed";
|
|
5330
|
+
type: "manual-trigger" | "ai-trigger" | "cron-trigger" | "form-trigger" | "webhook" | "contact-created" | "phone-call-started" | "phone-call-finished" | "ticket-created" | "ticket-reassigned" | "ticket-resolved" | "ticket-handoff" | "pre-ticket-handoff" | "ticket-tag-added" | "ticket-inactive" | "agent-inactive" | "sequence-completed" | "csat-score-submit" | "prohibited-topic-detected" | "sla-first-reply-breached" | "sla-next-reply-breached" | "sla-resolution-breached" | "voice-call-transferred" | "pre-voice-call-transfer" | "pre-phone-call-finished" | "manual-ticket-trigger" | "contact-message-received" | "first-contact-message-received" | "macro-called" | "ai-response-completed" | "agent-availability-changed" | "agent-avail-in-team-changed" | "ai-response-requested" | "ticket-reopened";
|
|
5238
5331
|
payload: unknown;
|
|
5239
5332
|
};
|
|
5240
5333
|
};
|
|
@@ -5891,7 +5984,7 @@ export interface components {
|
|
|
5891
5984
|
contact_id?: string | null;
|
|
5892
5985
|
contact_name?: string | null;
|
|
5893
5986
|
contact_avatar_url?: string | null;
|
|
5894
|
-
contact_source?: ("form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
|
|
5987
|
+
contact_source?: ("csv" | "form" | "freshchat" | "hubspot" | "intercom" | "pipedream" | "salesforce" | "slack") | null;
|
|
5895
5988
|
contact_slack_data?: string | null;
|
|
5896
5989
|
attachments?: components["schemas"]["ChatAttachmentDto"][] | null;
|
|
5897
5990
|
email_rfc_message_id?: string | null;
|
|
@@ -5922,50 +6015,6 @@ export interface components {
|
|
|
5922
6015
|
edited_at?: string | null;
|
|
5923
6016
|
deleted_at?: string | null;
|
|
5924
6017
|
};
|
|
5925
|
-
GroupUsersDto: {
|
|
5926
|
-
id: number;
|
|
5927
|
-
name: string;
|
|
5928
|
-
email: string;
|
|
5929
|
-
is_available: boolean;
|
|
5930
|
-
group_capacity: number | null;
|
|
5931
|
-
global_capacity: number;
|
|
5932
|
-
};
|
|
5933
|
-
GroupDto: {
|
|
5934
|
-
id: string;
|
|
5935
|
-
organization_id: string;
|
|
5936
|
-
name: string;
|
|
5937
|
-
description: string | null;
|
|
5938
|
-
is_support_enabled: boolean;
|
|
5939
|
-
support_office_hours_id: string | null;
|
|
5940
|
-
/** @enum {string} */
|
|
5941
|
-
support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
|
|
5942
|
-
created_at: string | null;
|
|
5943
|
-
updated_at: string | null;
|
|
5944
|
-
deleted_at: string | null;
|
|
5945
|
-
};
|
|
5946
|
-
VersionHistoryItemDto: {
|
|
5947
|
-
/** Format: uuid */
|
|
5948
|
-
id: string;
|
|
5949
|
-
instruction_id: string;
|
|
5950
|
-
version_number: number;
|
|
5951
|
-
question: string;
|
|
5952
|
-
answer: string;
|
|
5953
|
-
/** @enum {string} */
|
|
5954
|
-
type: "BEHAVIORAL" | "SCENARIO_SPECIFIC";
|
|
5955
|
-
/** Format: date-time */
|
|
5956
|
-
published_at: string;
|
|
5957
|
-
published_by: number | null;
|
|
5958
|
-
published_by_name: string | null;
|
|
5959
|
-
/** Format: date-time */
|
|
5960
|
-
created_at: string;
|
|
5961
|
-
start_time: string | null;
|
|
5962
|
-
end_time: string | null;
|
|
5963
|
-
};
|
|
5964
|
-
CustomTrainingDirectoriesDto: {
|
|
5965
|
-
id: string;
|
|
5966
|
-
name: string;
|
|
5967
|
-
org_id: string;
|
|
5968
|
-
};
|
|
5969
6018
|
PhoneAgentDto: {
|
|
5970
6019
|
id: string;
|
|
5971
6020
|
org_id: string;
|
|
@@ -6061,6 +6110,50 @@ export interface components {
|
|
|
6061
6110
|
UpdateAgentWorkflowsResponseDto: {
|
|
6062
6111
|
success: boolean;
|
|
6063
6112
|
};
|
|
6113
|
+
GroupUsersDto: {
|
|
6114
|
+
id: number;
|
|
6115
|
+
name: string;
|
|
6116
|
+
email: string;
|
|
6117
|
+
is_available: boolean;
|
|
6118
|
+
group_capacity: number | null;
|
|
6119
|
+
global_capacity: number;
|
|
6120
|
+
};
|
|
6121
|
+
GroupDto: {
|
|
6122
|
+
id: string;
|
|
6123
|
+
organization_id: string;
|
|
6124
|
+
name: string;
|
|
6125
|
+
description: string | null;
|
|
6126
|
+
is_support_enabled: boolean;
|
|
6127
|
+
support_office_hours_id: string | null;
|
|
6128
|
+
/** @enum {string} */
|
|
6129
|
+
support_assignment_strategy: "least-busy" | "round-robin" | "unassigned";
|
|
6130
|
+
created_at: string | null;
|
|
6131
|
+
updated_at: string | null;
|
|
6132
|
+
deleted_at: string | null;
|
|
6133
|
+
};
|
|
6134
|
+
VersionHistoryItemDto: {
|
|
6135
|
+
/** Format: uuid */
|
|
6136
|
+
id: string;
|
|
6137
|
+
instruction_id: string;
|
|
6138
|
+
version_number: number;
|
|
6139
|
+
question: string;
|
|
6140
|
+
answer: string;
|
|
6141
|
+
/** @enum {string} */
|
|
6142
|
+
type: "BEHAVIORAL" | "SCENARIO_SPECIFIC";
|
|
6143
|
+
/** Format: date-time */
|
|
6144
|
+
published_at: string;
|
|
6145
|
+
published_by: number | null;
|
|
6146
|
+
published_by_name: string | null;
|
|
6147
|
+
/** Format: date-time */
|
|
6148
|
+
created_at: string;
|
|
6149
|
+
start_time: string | null;
|
|
6150
|
+
end_time: string | null;
|
|
6151
|
+
};
|
|
6152
|
+
CustomTrainingDirectoriesDto: {
|
|
6153
|
+
id: string;
|
|
6154
|
+
name: string;
|
|
6155
|
+
org_id: string;
|
|
6156
|
+
};
|
|
6064
6157
|
SequenceStep: {
|
|
6065
6158
|
action: {
|
|
6066
6159
|
/** @constant */
|
|
@@ -6121,6 +6214,17 @@ export interface components {
|
|
|
6121
6214
|
ended_at: string | null;
|
|
6122
6215
|
status: components["schemas"]["SequenceStatus"] | null;
|
|
6123
6216
|
};
|
|
6217
|
+
StartOneOffSequenceOutputDto: {
|
|
6218
|
+
data?: {
|
|
6219
|
+
success: boolean;
|
|
6220
|
+
};
|
|
6221
|
+
error?: {
|
|
6222
|
+
/** @enum {string} */
|
|
6223
|
+
code: "sequence_not_found" | "one_off_sequence_is_canceled" | "sequence_already_started";
|
|
6224
|
+
status: 400 | 404;
|
|
6225
|
+
message: string;
|
|
6226
|
+
};
|
|
6227
|
+
};
|
|
6124
6228
|
SankeyReportResDto: {
|
|
6125
6229
|
nodes: {
|
|
6126
6230
|
id: string;
|
|
@@ -6414,16 +6518,24 @@ export interface components {
|
|
|
6414
6518
|
/** Format: date-time */
|
|
6415
6519
|
updated_at: string;
|
|
6416
6520
|
};
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6521
|
+
AgentAvailability: {
|
|
6522
|
+
id: string;
|
|
6523
|
+
user_id: number;
|
|
6524
|
+
organization_id: string;
|
|
6525
|
+
is_available: boolean;
|
|
6526
|
+
custom_status: string | null;
|
|
6527
|
+
/** Format: date-time */
|
|
6528
|
+
last_status_change: string;
|
|
6529
|
+
current_chat_count: number;
|
|
6530
|
+
max_concurrent_chats: number;
|
|
6531
|
+
notes: string | null;
|
|
6532
|
+
/** Format: date-time */
|
|
6533
|
+
created_at: string;
|
|
6534
|
+
/** Format: date-time */
|
|
6535
|
+
updated_at: string;
|
|
6536
|
+
call_available: boolean;
|
|
6537
|
+
call_locked: boolean;
|
|
6538
|
+
availability_status_id: string | null;
|
|
6427
6539
|
};
|
|
6428
6540
|
AuditLogPublicDto: {
|
|
6429
6541
|
id: string;
|
|
@@ -6663,6 +6775,8 @@ export interface components {
|
|
|
6663
6775
|
is_handoff_like: boolean;
|
|
6664
6776
|
/** @description Whether a form must be submitted before the action executes */
|
|
6665
6777
|
require_form_submission: boolean | null;
|
|
6778
|
+
/** @description Contact segment ids this action is restricted to. Empty = available to all contacts. */
|
|
6779
|
+
restricted_to_segments: string[];
|
|
6666
6780
|
/**
|
|
6667
6781
|
* Format: date-time
|
|
6668
6782
|
* @description When the action was created
|
|
@@ -6945,7 +7059,7 @@ export interface components {
|
|
|
6945
7059
|
} | ({
|
|
6946
7060
|
/** @constant */
|
|
6947
7061
|
success: true;
|
|
6948
|
-
code?: string | "session_assigned_to_human_agent" | "response_cancelled" | "skipping_unuseful_response" | "duplicate_message_ignored";
|
|
7062
|
+
code?: string | "session_assigned_to_human_agent" | "response_cancelled" | "skipping_unuseful_response" | "duplicate_message_ignored" | "ai_response_skipped_by_workflow";
|
|
6949
7063
|
autopilotResponse?: {
|
|
6950
7064
|
/** @constant */
|
|
6951
7065
|
type: "text";
|
|
@@ -7868,7 +7982,7 @@ export interface components {
|
|
|
7868
7982
|
/** Format: email */
|
|
7869
7983
|
email: string;
|
|
7870
7984
|
avatar_url?: string | null;
|
|
7871
|
-
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "settings:read" | "settings:write" | "settings-channels:read" | "settings-channels:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7985
|
+
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "audit-logs:write" | "settings:read" | "settings:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7872
7986
|
};
|
|
7873
7987
|
OrgUserDetail: {
|
|
7874
7988
|
id: number;
|
|
@@ -7877,7 +7991,7 @@ export interface components {
|
|
|
7877
7991
|
/** Format: email */
|
|
7878
7992
|
email: string;
|
|
7879
7993
|
avatar_url?: string | null;
|
|
7880
|
-
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "settings:read" | "settings:write" | "settings-channels:read" | "settings-channels:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7994
|
+
permissions?: ("*" | "sessions:read" | "sessions:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "contacts:read" | "contacts:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "workflows:read" | "workflows:write" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "audit-logs:write" | "settings:read" | "settings:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
|
|
7881
7995
|
teams: {
|
|
7882
7996
|
group: components["schemas"]["GroupDto"];
|
|
7883
7997
|
is_user_available_on_group: boolean;
|
|
@@ -8763,6 +8877,42 @@ export interface operations {
|
|
|
8763
8877
|
};
|
|
8764
8878
|
};
|
|
8765
8879
|
};
|
|
8880
|
+
updateAgentAvailability: {
|
|
8881
|
+
parameters: {
|
|
8882
|
+
query?: never;
|
|
8883
|
+
header?: never;
|
|
8884
|
+
path: {
|
|
8885
|
+
/** @description Organization user ID */
|
|
8886
|
+
userId: number;
|
|
8887
|
+
};
|
|
8888
|
+
cookie?: never;
|
|
8889
|
+
};
|
|
8890
|
+
requestBody: {
|
|
8891
|
+
content: {
|
|
8892
|
+
"application/json": components["schemas"]["UpdateAgentAvailabilityPublicDto"];
|
|
8893
|
+
};
|
|
8894
|
+
};
|
|
8895
|
+
responses: {
|
|
8896
|
+
/** @description Default Response */
|
|
8897
|
+
200: {
|
|
8898
|
+
headers: {
|
|
8899
|
+
[name: string]: unknown;
|
|
8900
|
+
};
|
|
8901
|
+
content: {
|
|
8902
|
+
"application/json": components["schemas"]["AgentAvailability"];
|
|
8903
|
+
};
|
|
8904
|
+
};
|
|
8905
|
+
/** @description Internal Server Error */
|
|
8906
|
+
500: {
|
|
8907
|
+
headers: {
|
|
8908
|
+
[name: string]: unknown;
|
|
8909
|
+
};
|
|
8910
|
+
content: {
|
|
8911
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
8912
|
+
};
|
|
8913
|
+
};
|
|
8914
|
+
};
|
|
8915
|
+
};
|
|
8766
8916
|
listAuditLogs: {
|
|
8767
8917
|
parameters: {
|
|
8768
8918
|
query?: {
|
|
@@ -15713,6 +15863,39 @@ export interface operations {
|
|
|
15713
15863
|
};
|
|
15714
15864
|
};
|
|
15715
15865
|
};
|
|
15866
|
+
runAnalyticsQuery: {
|
|
15867
|
+
parameters: {
|
|
15868
|
+
query?: never;
|
|
15869
|
+
header?: never;
|
|
15870
|
+
path?: never;
|
|
15871
|
+
cookie?: never;
|
|
15872
|
+
};
|
|
15873
|
+
requestBody: {
|
|
15874
|
+
content: {
|
|
15875
|
+
"application/json": components["schemas"]["RunReportQueryBody"];
|
|
15876
|
+
};
|
|
15877
|
+
};
|
|
15878
|
+
responses: {
|
|
15879
|
+
/** @description Default Response */
|
|
15880
|
+
201: {
|
|
15881
|
+
headers: {
|
|
15882
|
+
[name: string]: unknown;
|
|
15883
|
+
};
|
|
15884
|
+
content: {
|
|
15885
|
+
"application/json": components["schemas"]["RunReportQueryResponseDto"];
|
|
15886
|
+
};
|
|
15887
|
+
};
|
|
15888
|
+
/** @description Internal Server Error */
|
|
15889
|
+
500: {
|
|
15890
|
+
headers: {
|
|
15891
|
+
[name: string]: unknown;
|
|
15892
|
+
};
|
|
15893
|
+
content: {
|
|
15894
|
+
"application/json": components["schemas"]["ErrorDto"];
|
|
15895
|
+
};
|
|
15896
|
+
};
|
|
15897
|
+
};
|
|
15898
|
+
};
|
|
15716
15899
|
coworkerNotifyTeam: {
|
|
15717
15900
|
parameters: {
|
|
15718
15901
|
query?: never;
|