@medalsocial/sdk 1.2.0 → 1.3.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/README.md +131 -1
- package/dist/openapi/medal-social.openapi.json +1257 -86
- package/dist/src/index.d.mts +437 -4
- package/dist/src/index.d.ts +437 -4
- package/dist/src/index.js +224 -8
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +218 -7
- package/dist/src/index.mjs.map +1 -1
- package/dist/src/openapi.generated.d.mts +674 -0
- package/dist/src/openapi.generated.d.ts +674 -0
- package/dist/src/openapi.generated.js.map +1 -1
- package/openapi/medal-social.openapi.yaml +710 -0
- package/package.json +21 -15
- package/skills/client/SKILL.md +105 -0
- package/skills/resources/SKILL.md +241 -0
|
@@ -442,6 +442,174 @@ interface paths {
|
|
|
442
442
|
patch?: never;
|
|
443
443
|
trace?: never;
|
|
444
444
|
};
|
|
445
|
+
"/api/v1/helpdesk/conversations": {
|
|
446
|
+
parameters: {
|
|
447
|
+
query?: never;
|
|
448
|
+
header?: never;
|
|
449
|
+
path?: never;
|
|
450
|
+
cookie?: never;
|
|
451
|
+
};
|
|
452
|
+
/** List helpdesk conversations */
|
|
453
|
+
get: operations["listHelpdeskConversations"];
|
|
454
|
+
put?: never;
|
|
455
|
+
post?: never;
|
|
456
|
+
delete?: never;
|
|
457
|
+
options?: never;
|
|
458
|
+
head?: never;
|
|
459
|
+
patch?: never;
|
|
460
|
+
trace?: never;
|
|
461
|
+
};
|
|
462
|
+
"/api/v1/helpdesk/conversations/{id}": {
|
|
463
|
+
parameters: {
|
|
464
|
+
query?: never;
|
|
465
|
+
header?: never;
|
|
466
|
+
path: {
|
|
467
|
+
id: components["parameters"]["Id"];
|
|
468
|
+
};
|
|
469
|
+
cookie?: never;
|
|
470
|
+
};
|
|
471
|
+
/** Get a helpdesk conversation */
|
|
472
|
+
get: operations["getHelpdeskConversation"];
|
|
473
|
+
put?: never;
|
|
474
|
+
post?: never;
|
|
475
|
+
delete?: never;
|
|
476
|
+
options?: never;
|
|
477
|
+
head?: never;
|
|
478
|
+
/**
|
|
479
|
+
* Update a conversation's status or assignee
|
|
480
|
+
* @description Set `status` and/or `assignee_user_id` (`null` unassigns). At least one field is required. Capability-scoped tokens must send `Idempotency-Key` and `X-Capability-Confirmation` headers on this route; API keys with legacy scopes may omit them.
|
|
481
|
+
*/
|
|
482
|
+
patch: operations["updateHelpdeskConversation"];
|
|
483
|
+
trace?: never;
|
|
484
|
+
};
|
|
485
|
+
"/api/v1/helpdesk/conversations/{id}/messages": {
|
|
486
|
+
parameters: {
|
|
487
|
+
query?: never;
|
|
488
|
+
header?: never;
|
|
489
|
+
path: {
|
|
490
|
+
id: components["parameters"]["Id"];
|
|
491
|
+
};
|
|
492
|
+
cookie?: never;
|
|
493
|
+
};
|
|
494
|
+
/** List conversation messages */
|
|
495
|
+
get: operations["listHelpdeskConversationMessages"];
|
|
496
|
+
put?: never;
|
|
497
|
+
post?: never;
|
|
498
|
+
delete?: never;
|
|
499
|
+
options?: never;
|
|
500
|
+
head?: never;
|
|
501
|
+
patch?: never;
|
|
502
|
+
trace?: never;
|
|
503
|
+
};
|
|
504
|
+
"/api/v1/helpdesk/replies": {
|
|
505
|
+
parameters: {
|
|
506
|
+
query?: never;
|
|
507
|
+
header?: never;
|
|
508
|
+
path?: never;
|
|
509
|
+
cookie?: never;
|
|
510
|
+
};
|
|
511
|
+
get?: never;
|
|
512
|
+
put?: never;
|
|
513
|
+
/**
|
|
514
|
+
* Send an operator reply or internal note
|
|
515
|
+
* @description Send an `Idempotency-Key` header so retried requests do not create duplicate messages — it is required for capability-scoped tokens (together with `X-Capability-Confirmation`).
|
|
516
|
+
*/
|
|
517
|
+
post: operations["createHelpdeskReply"];
|
|
518
|
+
delete?: never;
|
|
519
|
+
options?: never;
|
|
520
|
+
head?: never;
|
|
521
|
+
patch?: never;
|
|
522
|
+
trace?: never;
|
|
523
|
+
};
|
|
524
|
+
"/api/v1/webhooks": {
|
|
525
|
+
parameters: {
|
|
526
|
+
query?: never;
|
|
527
|
+
header?: never;
|
|
528
|
+
path?: never;
|
|
529
|
+
cookie?: never;
|
|
530
|
+
};
|
|
531
|
+
/** List webhook endpoints */
|
|
532
|
+
get: operations["listWebhooks"];
|
|
533
|
+
put?: never;
|
|
534
|
+
/**
|
|
535
|
+
* Create a webhook endpoint
|
|
536
|
+
* @description The response's `data.secret` contains the signing secret EXACTLY ONCE — it can never be retrieved again, so store it securely immediately. An idempotent replay (same `Idempotency-Key`) returns the existing endpoint WITHOUT `secret`. Deliveries are HTTP POSTs signed with `X-Medal-Signature: sha256=<base64(HMAC-SHA256("{timestamp}.{rawBody}", secret))>` plus `X-Medal-Timestamp`, `X-Medal-Event`, and `X-Medal-Delivery-Id` / `Idempotency-Key` headers.
|
|
537
|
+
*/
|
|
538
|
+
post: operations["createWebhook"];
|
|
539
|
+
delete?: never;
|
|
540
|
+
options?: never;
|
|
541
|
+
head?: never;
|
|
542
|
+
patch?: never;
|
|
543
|
+
trace?: never;
|
|
544
|
+
};
|
|
545
|
+
"/api/v1/webhooks/{id}": {
|
|
546
|
+
parameters: {
|
|
547
|
+
query?: never;
|
|
548
|
+
header?: never;
|
|
549
|
+
path: {
|
|
550
|
+
id: components["parameters"]["Id"];
|
|
551
|
+
};
|
|
552
|
+
cookie?: never;
|
|
553
|
+
};
|
|
554
|
+
/** Get a webhook endpoint */
|
|
555
|
+
get: operations["getWebhook"];
|
|
556
|
+
put?: never;
|
|
557
|
+
post?: never;
|
|
558
|
+
/**
|
|
559
|
+
* Delete a webhook endpoint
|
|
560
|
+
* @description Permanently deletes the endpoint and stops all outbound deliveries. Capability-scoped tokens must send `Idempotency-Key` and `X-Capability-Confirmation` headers on this route; API keys with legacy scopes may omit them.
|
|
561
|
+
*/
|
|
562
|
+
delete: operations["deleteWebhook"];
|
|
563
|
+
options?: never;
|
|
564
|
+
head?: never;
|
|
565
|
+
/**
|
|
566
|
+
* Update a webhook endpoint
|
|
567
|
+
* @description Only provided fields change. Pass `null` for `channels` or `channel_connection_ids` to clear that filter.
|
|
568
|
+
*/
|
|
569
|
+
patch: operations["updateWebhook"];
|
|
570
|
+
trace?: never;
|
|
571
|
+
};
|
|
572
|
+
"/api/v1/webhooks/{id}/deliveries": {
|
|
573
|
+
parameters: {
|
|
574
|
+
query?: never;
|
|
575
|
+
header?: never;
|
|
576
|
+
path: {
|
|
577
|
+
id: components["parameters"]["Id"];
|
|
578
|
+
};
|
|
579
|
+
cookie?: never;
|
|
580
|
+
};
|
|
581
|
+
/** List recent deliveries */
|
|
582
|
+
get: operations["listWebhookDeliveries"];
|
|
583
|
+
put?: never;
|
|
584
|
+
post?: never;
|
|
585
|
+
delete?: never;
|
|
586
|
+
options?: never;
|
|
587
|
+
head?: never;
|
|
588
|
+
patch?: never;
|
|
589
|
+
trace?: never;
|
|
590
|
+
};
|
|
591
|
+
"/api/v1/webhooks/{id}/test": {
|
|
592
|
+
parameters: {
|
|
593
|
+
query?: never;
|
|
594
|
+
header?: never;
|
|
595
|
+
path: {
|
|
596
|
+
id: components["parameters"]["Id"];
|
|
597
|
+
};
|
|
598
|
+
cookie?: never;
|
|
599
|
+
};
|
|
600
|
+
get?: never;
|
|
601
|
+
put?: never;
|
|
602
|
+
/**
|
|
603
|
+
* Queue a test delivery
|
|
604
|
+
* @description Queues a signed `test.ping` delivery to the endpoint.
|
|
605
|
+
*/
|
|
606
|
+
post: operations["testWebhook"];
|
|
607
|
+
delete?: never;
|
|
608
|
+
options?: never;
|
|
609
|
+
head?: never;
|
|
610
|
+
patch?: never;
|
|
611
|
+
trace?: never;
|
|
612
|
+
};
|
|
445
613
|
}
|
|
446
614
|
type webhooks = Record<string, never>;
|
|
447
615
|
interface components {
|
|
@@ -897,6 +1065,162 @@ interface components {
|
|
|
897
1065
|
} & {
|
|
898
1066
|
[key: string]: unknown;
|
|
899
1067
|
};
|
|
1068
|
+
/** @enum {string} */
|
|
1069
|
+
HelpdeskConversationStatus: "open" | "snoozed" | "closed";
|
|
1070
|
+
/** @enum {string} */
|
|
1071
|
+
HelpdeskMessageAuthorType: "visitor" | "operator" | "ai" | "system";
|
|
1072
|
+
/**
|
|
1073
|
+
* @description `note` is operator-internal and never delivered to the customer.
|
|
1074
|
+
* @enum {string}
|
|
1075
|
+
*/
|
|
1076
|
+
HelpdeskMessageType: "chat" | "email" | "note";
|
|
1077
|
+
HelpdeskConversation: {
|
|
1078
|
+
id: string;
|
|
1079
|
+
/** @description Channel type, e.g. `widget`, `instagram`, `messenger`, `whatsapp`, `email`. */
|
|
1080
|
+
channel: string;
|
|
1081
|
+
channel_connection_id: string | null;
|
|
1082
|
+
status: components["schemas"]["HelpdeskConversationStatus"];
|
|
1083
|
+
subject: string | null;
|
|
1084
|
+
assignee_user_id: string | null;
|
|
1085
|
+
contact_id: string | null;
|
|
1086
|
+
visitor_name: string | null;
|
|
1087
|
+
visitor_email: string | null;
|
|
1088
|
+
external_conversation_id: string | null;
|
|
1089
|
+
channel_account_id: string | null;
|
|
1090
|
+
message_count: number;
|
|
1091
|
+
unread_for_operator: number;
|
|
1092
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1093
|
+
last_message_at: number;
|
|
1094
|
+
last_message_preview: string | null;
|
|
1095
|
+
last_message_author_type: components["schemas"]["HelpdeskMessageAuthorType"] | null;
|
|
1096
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1097
|
+
created_at: number;
|
|
1098
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1099
|
+
updated_at: number;
|
|
1100
|
+
};
|
|
1101
|
+
HelpdeskMessage: {
|
|
1102
|
+
id: string;
|
|
1103
|
+
conversation_id: string;
|
|
1104
|
+
author_type: components["schemas"]["HelpdeskMessageAuthorType"];
|
|
1105
|
+
message_type: components["schemas"]["HelpdeskMessageType"];
|
|
1106
|
+
author_user_id: string | null;
|
|
1107
|
+
author_name: string | null;
|
|
1108
|
+
body: string;
|
|
1109
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1110
|
+
created_at: number;
|
|
1111
|
+
};
|
|
1112
|
+
/** @description At least one field is required. */
|
|
1113
|
+
UpdateHelpdeskConversationInput: {
|
|
1114
|
+
status?: components["schemas"]["HelpdeskConversationStatus"];
|
|
1115
|
+
/** @description User ID to assign, or `null` to unassign. */
|
|
1116
|
+
assignee_user_id?: string | null;
|
|
1117
|
+
};
|
|
1118
|
+
HelpdeskConversationUpdateResult: {
|
|
1119
|
+
id: string;
|
|
1120
|
+
status: components["schemas"]["HelpdeskConversationStatus"];
|
|
1121
|
+
assignee_user_id: string | null;
|
|
1122
|
+
};
|
|
1123
|
+
CreateHelpdeskReplyInput: {
|
|
1124
|
+
conversation_id: string;
|
|
1125
|
+
body: string;
|
|
1126
|
+
/**
|
|
1127
|
+
* @description `note` = operator-internal note (not delivered to the customer). Default `chat`.
|
|
1128
|
+
* @enum {string}
|
|
1129
|
+
*/
|
|
1130
|
+
message_type?: "chat" | "note";
|
|
1131
|
+
/** @description Agent display name for bridged replies (shown in widget + inbox). */
|
|
1132
|
+
author_name?: string;
|
|
1133
|
+
};
|
|
1134
|
+
HelpdeskReplyCreateResult: {
|
|
1135
|
+
id: string;
|
|
1136
|
+
conversation_id: string;
|
|
1137
|
+
/** @constant */
|
|
1138
|
+
status: "created";
|
|
1139
|
+
};
|
|
1140
|
+
WebhookEndpoint: {
|
|
1141
|
+
id: string;
|
|
1142
|
+
name: string;
|
|
1143
|
+
/**
|
|
1144
|
+
* Format: uri
|
|
1145
|
+
* @description Destination URL (must be https).
|
|
1146
|
+
*/
|
|
1147
|
+
url: string;
|
|
1148
|
+
enabled: boolean;
|
|
1149
|
+
/** @description Subscribed event types. Empty array = all events. */
|
|
1150
|
+
event_types: string[];
|
|
1151
|
+
/** @description Channel-type filter (e.g. `['widget', 'whatsapp']`), or `null` for all channels. */
|
|
1152
|
+
channels: string[] | null;
|
|
1153
|
+
/** @description Channel-connection filter, or `null` for all connections. */
|
|
1154
|
+
channel_connection_ids: string[] | null;
|
|
1155
|
+
/** @description Last 4 characters of the signing secret, for identification. */
|
|
1156
|
+
secret_last4: string;
|
|
1157
|
+
consecutive_failures: number;
|
|
1158
|
+
/** @description Unix timestamp in milliseconds, or `null` if never. */
|
|
1159
|
+
last_delivery_at: number | null;
|
|
1160
|
+
/** @description Unix timestamp in milliseconds, or `null` if never. */
|
|
1161
|
+
last_success_at: number | null;
|
|
1162
|
+
/** @description Unix timestamp in milliseconds, or `null` if never. */
|
|
1163
|
+
last_error_at: number | null;
|
|
1164
|
+
last_error: string | null;
|
|
1165
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1166
|
+
created_at: number;
|
|
1167
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1168
|
+
updated_at: number;
|
|
1169
|
+
/** @description Full signing secret (`whsec_…`) — present ONLY in the create response, exactly once. It can never be retrieved again; store it securely immediately. An idempotent replay of the create request omits it. */
|
|
1170
|
+
secret?: string;
|
|
1171
|
+
};
|
|
1172
|
+
CreateWebhookInput: {
|
|
1173
|
+
name: string;
|
|
1174
|
+
/**
|
|
1175
|
+
* Format: uri
|
|
1176
|
+
* @description Destination URL — must be https.
|
|
1177
|
+
*/
|
|
1178
|
+
url: string;
|
|
1179
|
+
/** @description Event types to subscribe to (e.g. `helpdesk.message_received`). Empty = all. */
|
|
1180
|
+
event_types: string[];
|
|
1181
|
+
/** @description Restrict to these channel types (e.g. `['widget', 'whatsapp']`). */
|
|
1182
|
+
channels?: string[];
|
|
1183
|
+
/** @description Restrict to these channel connection IDs. */
|
|
1184
|
+
channel_connection_ids?: string[];
|
|
1185
|
+
};
|
|
1186
|
+
/** @description Only provided fields change. */
|
|
1187
|
+
UpdateWebhookInput: {
|
|
1188
|
+
name?: string;
|
|
1189
|
+
/** Format: uri */
|
|
1190
|
+
url?: string;
|
|
1191
|
+
event_types?: string[];
|
|
1192
|
+
/** @description New channel-type filter, or `null` to clear the filter. */
|
|
1193
|
+
channels?: string[] | null;
|
|
1194
|
+
/** @description New channel-connection filter, or `null` to clear the filter. */
|
|
1195
|
+
channel_connection_ids?: string[] | null;
|
|
1196
|
+
enabled?: boolean;
|
|
1197
|
+
};
|
|
1198
|
+
WebhookDeleteResult: {
|
|
1199
|
+
id: string;
|
|
1200
|
+
/** @constant */
|
|
1201
|
+
status: "deleted";
|
|
1202
|
+
};
|
|
1203
|
+
WebhookDelivery: {
|
|
1204
|
+
id: string;
|
|
1205
|
+
event_type: string;
|
|
1206
|
+
/** @enum {string} */
|
|
1207
|
+
status: "pending" | "delivered" | "dead_letter";
|
|
1208
|
+
attempt_count: number;
|
|
1209
|
+
/** @description Unix timestamp in milliseconds of the next retry, or `null`. */
|
|
1210
|
+
next_attempt_at: number | null;
|
|
1211
|
+
response_status: number | null;
|
|
1212
|
+
duration_ms: number | null;
|
|
1213
|
+
last_error: string | null;
|
|
1214
|
+
/** @description Unix timestamp in milliseconds, or `null` if not delivered. */
|
|
1215
|
+
delivered_at: number | null;
|
|
1216
|
+
/** @description Unix timestamp in milliseconds. */
|
|
1217
|
+
created_at: number;
|
|
1218
|
+
};
|
|
1219
|
+
WebhookTestResult: {
|
|
1220
|
+
delivery_id: string;
|
|
1221
|
+
/** @constant */
|
|
1222
|
+
status: "queued";
|
|
1223
|
+
};
|
|
900
1224
|
ApiResponse_PostCreateResult: components["schemas"]["Envelope_PostCreateResult"];
|
|
901
1225
|
ApiResponse_PostDetail: components["schemas"]["Envelope_PostDetail"];
|
|
902
1226
|
ApiResponse_Success: components["schemas"]["Envelope_Success"];
|
|
@@ -924,6 +1248,14 @@ interface components {
|
|
|
924
1248
|
ApiResponse_ConsentResult: components["schemas"]["Envelope_ConsentResult"];
|
|
925
1249
|
ApiResponse_ConsentRecordArray: components["schemas"]["Envelope_ConsentRecordArray"];
|
|
926
1250
|
ApiResponse_WorkspaceArray: components["schemas"]["Envelope_WorkspaceArray"];
|
|
1251
|
+
ApiResponse_HelpdeskConversation: components["schemas"]["Envelope_HelpdeskConversation"];
|
|
1252
|
+
ApiResponse_HelpdeskConversationUpdateResult: components["schemas"]["Envelope_HelpdeskConversationUpdateResult"];
|
|
1253
|
+
ApiResponse_HelpdeskReplyCreateResult: components["schemas"]["Envelope_HelpdeskReplyCreateResult"];
|
|
1254
|
+
ApiResponse_WebhookEndpoint: components["schemas"]["Envelope_WebhookEndpoint"];
|
|
1255
|
+
ApiResponse_WebhookEndpointArray: components["schemas"]["Envelope_WebhookEndpointArray"];
|
|
1256
|
+
ApiResponse_WebhookDeleteResult: components["schemas"]["Envelope_WebhookDeleteResult"];
|
|
1257
|
+
ApiResponse_WebhookDeliveryArray: components["schemas"]["Envelope_WebhookDeliveryArray"];
|
|
1258
|
+
ApiResponse_WebhookTestResult: components["schemas"]["Envelope_WebhookTestResult"];
|
|
927
1259
|
PaginatedResponse_Post: {
|
|
928
1260
|
data: components["schemas"]["Post"][];
|
|
929
1261
|
pagination: components["schemas"]["Pagination"];
|
|
@@ -940,6 +1272,14 @@ interface components {
|
|
|
940
1272
|
data: components["schemas"]["Deal"][];
|
|
941
1273
|
pagination: components["schemas"]["Pagination"];
|
|
942
1274
|
};
|
|
1275
|
+
PaginatedResponse_HelpdeskConversation: {
|
|
1276
|
+
data: components["schemas"]["HelpdeskConversation"][];
|
|
1277
|
+
pagination: components["schemas"]["Pagination"];
|
|
1278
|
+
};
|
|
1279
|
+
PaginatedResponse_HelpdeskMessage: {
|
|
1280
|
+
data: components["schemas"]["HelpdeskMessage"][];
|
|
1281
|
+
pagination: components["schemas"]["Pagination"];
|
|
1282
|
+
};
|
|
943
1283
|
Envelope_PostCreateResult: {
|
|
944
1284
|
data: components["schemas"]["PostCreateResult"];
|
|
945
1285
|
};
|
|
@@ -1021,6 +1361,30 @@ interface components {
|
|
|
1021
1361
|
Envelope_WorkspaceArray: {
|
|
1022
1362
|
data: components["schemas"]["Workspace"][];
|
|
1023
1363
|
};
|
|
1364
|
+
Envelope_HelpdeskConversation: {
|
|
1365
|
+
data: components["schemas"]["HelpdeskConversation"];
|
|
1366
|
+
};
|
|
1367
|
+
Envelope_HelpdeskConversationUpdateResult: {
|
|
1368
|
+
data: components["schemas"]["HelpdeskConversationUpdateResult"];
|
|
1369
|
+
};
|
|
1370
|
+
Envelope_HelpdeskReplyCreateResult: {
|
|
1371
|
+
data: components["schemas"]["HelpdeskReplyCreateResult"];
|
|
1372
|
+
};
|
|
1373
|
+
Envelope_WebhookEndpoint: {
|
|
1374
|
+
data: components["schemas"]["WebhookEndpoint"];
|
|
1375
|
+
};
|
|
1376
|
+
Envelope_WebhookEndpointArray: {
|
|
1377
|
+
data: components["schemas"]["WebhookEndpoint"][];
|
|
1378
|
+
};
|
|
1379
|
+
Envelope_WebhookDeleteResult: {
|
|
1380
|
+
data: components["schemas"]["WebhookDeleteResult"];
|
|
1381
|
+
};
|
|
1382
|
+
Envelope_WebhookDeliveryArray: {
|
|
1383
|
+
data: components["schemas"]["WebhookDelivery"][];
|
|
1384
|
+
};
|
|
1385
|
+
Envelope_WebhookTestResult: {
|
|
1386
|
+
data: components["schemas"]["WebhookTestResult"];
|
|
1387
|
+
};
|
|
1024
1388
|
};
|
|
1025
1389
|
responses: {
|
|
1026
1390
|
/** @description API error. */
|
|
@@ -1850,6 +2214,316 @@ interface operations {
|
|
|
1850
2214
|
default: components["responses"]["ApiError"];
|
|
1851
2215
|
};
|
|
1852
2216
|
};
|
|
2217
|
+
listHelpdeskConversations: {
|
|
2218
|
+
parameters: {
|
|
2219
|
+
query?: {
|
|
2220
|
+
limit?: number;
|
|
2221
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2222
|
+
status?: components["schemas"]["HelpdeskConversationStatus"];
|
|
2223
|
+
/** @description Only conversations assigned to this user. */
|
|
2224
|
+
assignee_user_id?: string;
|
|
2225
|
+
/** @description Match against visitor name/email. */
|
|
2226
|
+
requester?: string;
|
|
2227
|
+
/** @description Free-text search query. */
|
|
2228
|
+
query?: string;
|
|
2229
|
+
/** @description Comma-separated channel types (e.g. `widget,whatsapp`). */
|
|
2230
|
+
channels?: string;
|
|
2231
|
+
};
|
|
2232
|
+
header?: never;
|
|
2233
|
+
path?: never;
|
|
2234
|
+
cookie?: never;
|
|
2235
|
+
};
|
|
2236
|
+
requestBody?: never;
|
|
2237
|
+
responses: {
|
|
2238
|
+
/** @description Conversations page. */
|
|
2239
|
+
200: {
|
|
2240
|
+
headers: {
|
|
2241
|
+
[name: string]: unknown;
|
|
2242
|
+
};
|
|
2243
|
+
content: {
|
|
2244
|
+
"application/json": components["schemas"]["PaginatedResponse_HelpdeskConversation"];
|
|
2245
|
+
};
|
|
2246
|
+
};
|
|
2247
|
+
default: components["responses"]["ApiError"];
|
|
2248
|
+
};
|
|
2249
|
+
};
|
|
2250
|
+
getHelpdeskConversation: {
|
|
2251
|
+
parameters: {
|
|
2252
|
+
query?: never;
|
|
2253
|
+
header?: never;
|
|
2254
|
+
path: {
|
|
2255
|
+
id: components["parameters"]["Id"];
|
|
2256
|
+
};
|
|
2257
|
+
cookie?: never;
|
|
2258
|
+
};
|
|
2259
|
+
requestBody?: never;
|
|
2260
|
+
responses: {
|
|
2261
|
+
/** @description Conversation. */
|
|
2262
|
+
200: {
|
|
2263
|
+
headers: {
|
|
2264
|
+
[name: string]: unknown;
|
|
2265
|
+
};
|
|
2266
|
+
content: {
|
|
2267
|
+
"application/json": components["schemas"]["ApiResponse_HelpdeskConversation"];
|
|
2268
|
+
};
|
|
2269
|
+
};
|
|
2270
|
+
default: components["responses"]["ApiError"];
|
|
2271
|
+
};
|
|
2272
|
+
};
|
|
2273
|
+
updateHelpdeskConversation: {
|
|
2274
|
+
parameters: {
|
|
2275
|
+
query?: never;
|
|
2276
|
+
header?: never;
|
|
2277
|
+
path: {
|
|
2278
|
+
id: components["parameters"]["Id"];
|
|
2279
|
+
};
|
|
2280
|
+
cookie?: never;
|
|
2281
|
+
};
|
|
2282
|
+
requestBody: {
|
|
2283
|
+
content: {
|
|
2284
|
+
"application/json": components["schemas"]["UpdateHelpdeskConversationInput"];
|
|
2285
|
+
};
|
|
2286
|
+
};
|
|
2287
|
+
responses: {
|
|
2288
|
+
/** @description Update result. */
|
|
2289
|
+
200: {
|
|
2290
|
+
headers: {
|
|
2291
|
+
[name: string]: unknown;
|
|
2292
|
+
};
|
|
2293
|
+
content: {
|
|
2294
|
+
"application/json": components["schemas"]["ApiResponse_HelpdeskConversationUpdateResult"];
|
|
2295
|
+
};
|
|
2296
|
+
};
|
|
2297
|
+
default: components["responses"]["ApiError"];
|
|
2298
|
+
};
|
|
2299
|
+
};
|
|
2300
|
+
listHelpdeskConversationMessages: {
|
|
2301
|
+
parameters: {
|
|
2302
|
+
query?: {
|
|
2303
|
+
limit?: number;
|
|
2304
|
+
cursor?: components["parameters"]["Cursor"];
|
|
2305
|
+
};
|
|
2306
|
+
header?: never;
|
|
2307
|
+
path: {
|
|
2308
|
+
id: components["parameters"]["Id"];
|
|
2309
|
+
};
|
|
2310
|
+
cookie?: never;
|
|
2311
|
+
};
|
|
2312
|
+
requestBody?: never;
|
|
2313
|
+
responses: {
|
|
2314
|
+
/** @description Messages page. */
|
|
2315
|
+
200: {
|
|
2316
|
+
headers: {
|
|
2317
|
+
[name: string]: unknown;
|
|
2318
|
+
};
|
|
2319
|
+
content: {
|
|
2320
|
+
"application/json": components["schemas"]["PaginatedResponse_HelpdeskMessage"];
|
|
2321
|
+
};
|
|
2322
|
+
};
|
|
2323
|
+
/** @description Conversation not found. */
|
|
2324
|
+
404: {
|
|
2325
|
+
headers: {
|
|
2326
|
+
[name: string]: unknown;
|
|
2327
|
+
};
|
|
2328
|
+
content: {
|
|
2329
|
+
"application/json": components["schemas"]["ApiError"];
|
|
2330
|
+
};
|
|
2331
|
+
};
|
|
2332
|
+
default: components["responses"]["ApiError"];
|
|
2333
|
+
};
|
|
2334
|
+
};
|
|
2335
|
+
createHelpdeskReply: {
|
|
2336
|
+
parameters: {
|
|
2337
|
+
query?: never;
|
|
2338
|
+
header?: never;
|
|
2339
|
+
path?: never;
|
|
2340
|
+
cookie?: never;
|
|
2341
|
+
};
|
|
2342
|
+
requestBody: {
|
|
2343
|
+
content: {
|
|
2344
|
+
"application/json": components["schemas"]["CreateHelpdeskReplyInput"];
|
|
2345
|
+
};
|
|
2346
|
+
};
|
|
2347
|
+
responses: {
|
|
2348
|
+
/** @description Created reply reference. */
|
|
2349
|
+
201: {
|
|
2350
|
+
headers: {
|
|
2351
|
+
[name: string]: unknown;
|
|
2352
|
+
};
|
|
2353
|
+
content: {
|
|
2354
|
+
"application/json": components["schemas"]["ApiResponse_HelpdeskReplyCreateResult"];
|
|
2355
|
+
};
|
|
2356
|
+
};
|
|
2357
|
+
default: components["responses"]["ApiError"];
|
|
2358
|
+
};
|
|
2359
|
+
};
|
|
2360
|
+
listWebhooks: {
|
|
2361
|
+
parameters: {
|
|
2362
|
+
query?: never;
|
|
2363
|
+
header?: never;
|
|
2364
|
+
path?: never;
|
|
2365
|
+
cookie?: never;
|
|
2366
|
+
};
|
|
2367
|
+
requestBody?: never;
|
|
2368
|
+
responses: {
|
|
2369
|
+
/** @description Webhook endpoints. */
|
|
2370
|
+
200: {
|
|
2371
|
+
headers: {
|
|
2372
|
+
[name: string]: unknown;
|
|
2373
|
+
};
|
|
2374
|
+
content: {
|
|
2375
|
+
"application/json": components["schemas"]["ApiResponse_WebhookEndpointArray"];
|
|
2376
|
+
};
|
|
2377
|
+
};
|
|
2378
|
+
default: components["responses"]["ApiError"];
|
|
2379
|
+
};
|
|
2380
|
+
};
|
|
2381
|
+
createWebhook: {
|
|
2382
|
+
parameters: {
|
|
2383
|
+
query?: never;
|
|
2384
|
+
header?: never;
|
|
2385
|
+
path?: never;
|
|
2386
|
+
cookie?: never;
|
|
2387
|
+
};
|
|
2388
|
+
requestBody: {
|
|
2389
|
+
content: {
|
|
2390
|
+
"application/json": components["schemas"]["CreateWebhookInput"];
|
|
2391
|
+
};
|
|
2392
|
+
};
|
|
2393
|
+
responses: {
|
|
2394
|
+
/** @description Created endpoint, including the one-time `secret`. */
|
|
2395
|
+
201: {
|
|
2396
|
+
headers: {
|
|
2397
|
+
[name: string]: unknown;
|
|
2398
|
+
};
|
|
2399
|
+
content: {
|
|
2400
|
+
"application/json": components["schemas"]["ApiResponse_WebhookEndpoint"];
|
|
2401
|
+
};
|
|
2402
|
+
};
|
|
2403
|
+
default: components["responses"]["ApiError"];
|
|
2404
|
+
};
|
|
2405
|
+
};
|
|
2406
|
+
getWebhook: {
|
|
2407
|
+
parameters: {
|
|
2408
|
+
query?: never;
|
|
2409
|
+
header?: never;
|
|
2410
|
+
path: {
|
|
2411
|
+
id: components["parameters"]["Id"];
|
|
2412
|
+
};
|
|
2413
|
+
cookie?: never;
|
|
2414
|
+
};
|
|
2415
|
+
requestBody?: never;
|
|
2416
|
+
responses: {
|
|
2417
|
+
/** @description Webhook endpoint. */
|
|
2418
|
+
200: {
|
|
2419
|
+
headers: {
|
|
2420
|
+
[name: string]: unknown;
|
|
2421
|
+
};
|
|
2422
|
+
content: {
|
|
2423
|
+
"application/json": components["schemas"]["ApiResponse_WebhookEndpoint"];
|
|
2424
|
+
};
|
|
2425
|
+
};
|
|
2426
|
+
default: components["responses"]["ApiError"];
|
|
2427
|
+
};
|
|
2428
|
+
};
|
|
2429
|
+
deleteWebhook: {
|
|
2430
|
+
parameters: {
|
|
2431
|
+
query?: never;
|
|
2432
|
+
header?: never;
|
|
2433
|
+
path: {
|
|
2434
|
+
id: components["parameters"]["Id"];
|
|
2435
|
+
};
|
|
2436
|
+
cookie?: never;
|
|
2437
|
+
};
|
|
2438
|
+
requestBody?: never;
|
|
2439
|
+
responses: {
|
|
2440
|
+
/** @description Delete result. */
|
|
2441
|
+
200: {
|
|
2442
|
+
headers: {
|
|
2443
|
+
[name: string]: unknown;
|
|
2444
|
+
};
|
|
2445
|
+
content: {
|
|
2446
|
+
"application/json": components["schemas"]["ApiResponse_WebhookDeleteResult"];
|
|
2447
|
+
};
|
|
2448
|
+
};
|
|
2449
|
+
default: components["responses"]["ApiError"];
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
updateWebhook: {
|
|
2453
|
+
parameters: {
|
|
2454
|
+
query?: never;
|
|
2455
|
+
header?: never;
|
|
2456
|
+
path: {
|
|
2457
|
+
id: components["parameters"]["Id"];
|
|
2458
|
+
};
|
|
2459
|
+
cookie?: never;
|
|
2460
|
+
};
|
|
2461
|
+
requestBody: {
|
|
2462
|
+
content: {
|
|
2463
|
+
"application/json": components["schemas"]["UpdateWebhookInput"];
|
|
2464
|
+
};
|
|
2465
|
+
};
|
|
2466
|
+
responses: {
|
|
2467
|
+
/** @description Updated endpoint. */
|
|
2468
|
+
200: {
|
|
2469
|
+
headers: {
|
|
2470
|
+
[name: string]: unknown;
|
|
2471
|
+
};
|
|
2472
|
+
content: {
|
|
2473
|
+
"application/json": components["schemas"]["ApiResponse_WebhookEndpoint"];
|
|
2474
|
+
};
|
|
2475
|
+
};
|
|
2476
|
+
default: components["responses"]["ApiError"];
|
|
2477
|
+
};
|
|
2478
|
+
};
|
|
2479
|
+
listWebhookDeliveries: {
|
|
2480
|
+
parameters: {
|
|
2481
|
+
query?: {
|
|
2482
|
+
limit?: number;
|
|
2483
|
+
};
|
|
2484
|
+
header?: never;
|
|
2485
|
+
path: {
|
|
2486
|
+
id: components["parameters"]["Id"];
|
|
2487
|
+
};
|
|
2488
|
+
cookie?: never;
|
|
2489
|
+
};
|
|
2490
|
+
requestBody?: never;
|
|
2491
|
+
responses: {
|
|
2492
|
+
/** @description Recent deliveries, most recent first. */
|
|
2493
|
+
200: {
|
|
2494
|
+
headers: {
|
|
2495
|
+
[name: string]: unknown;
|
|
2496
|
+
};
|
|
2497
|
+
content: {
|
|
2498
|
+
"application/json": components["schemas"]["ApiResponse_WebhookDeliveryArray"];
|
|
2499
|
+
};
|
|
2500
|
+
};
|
|
2501
|
+
default: components["responses"]["ApiError"];
|
|
2502
|
+
};
|
|
2503
|
+
};
|
|
2504
|
+
testWebhook: {
|
|
2505
|
+
parameters: {
|
|
2506
|
+
query?: never;
|
|
2507
|
+
header?: never;
|
|
2508
|
+
path: {
|
|
2509
|
+
id: components["parameters"]["Id"];
|
|
2510
|
+
};
|
|
2511
|
+
cookie?: never;
|
|
2512
|
+
};
|
|
2513
|
+
requestBody?: never;
|
|
2514
|
+
responses: {
|
|
2515
|
+
/** @description Test delivery queued. */
|
|
2516
|
+
202: {
|
|
2517
|
+
headers: {
|
|
2518
|
+
[name: string]: unknown;
|
|
2519
|
+
};
|
|
2520
|
+
content: {
|
|
2521
|
+
"application/json": components["schemas"]["ApiResponse_WebhookTestResult"];
|
|
2522
|
+
};
|
|
2523
|
+
};
|
|
2524
|
+
default: components["responses"]["ApiError"];
|
|
2525
|
+
};
|
|
2526
|
+
};
|
|
1853
2527
|
}
|
|
1854
2528
|
|
|
1855
2529
|
export type { $defs, components, operations, paths, webhooks };
|