@medalsocial/sdk 1.2.1 → 1.4.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.
@@ -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 {
@@ -544,9 +712,18 @@ interface components {
544
712
  [key: string]: string;
545
713
  };
546
714
  contact_id?: string;
715
+ idempotency_key?: string;
716
+ /** Format: email */
717
+ copy_to?: string;
718
+ /** Format: email */
719
+ copy_reply_to?: string;
547
720
  };
548
721
  EmailSendResult: {
549
- id: string;
722
+ /** @description Email send id — poll GET /api/v1/emails/{id} with it. */
723
+ id: string | null;
724
+ /** @description Send id of the copy_to copy, or null when no copy was requested. */
725
+ copy_id: string | null;
726
+ contact_id: string | null;
550
727
  status: string;
551
728
  };
552
729
  EmailSend: {
@@ -588,6 +765,18 @@ interface components {
588
765
  total: number;
589
766
  queued: number;
590
767
  failed: number;
768
+ /** @description Per-recipient outcome, in request order. */
769
+ results: components["schemas"]["BatchSendRecipientResult"][];
770
+ };
771
+ BatchSendRecipientResult: {
772
+ /** Format: email */
773
+ email: string;
774
+ /** @description Email send id — poll GET /api/v1/emails/{id} with it. Null when not queued. */
775
+ id: string | null;
776
+ /** @enum {string} */
777
+ status: "queued" | "failed";
778
+ /** @description Failure reason for recipients that were not queued. */
779
+ error: string | null;
591
780
  };
592
781
  EmailTemplate: {
593
782
  id: string;
@@ -897,6 +1086,162 @@ interface components {
897
1086
  } & {
898
1087
  [key: string]: unknown;
899
1088
  };
1089
+ /** @enum {string} */
1090
+ HelpdeskConversationStatus: "open" | "snoozed" | "closed";
1091
+ /** @enum {string} */
1092
+ HelpdeskMessageAuthorType: "visitor" | "operator" | "ai" | "system";
1093
+ /**
1094
+ * @description `note` is operator-internal and never delivered to the customer.
1095
+ * @enum {string}
1096
+ */
1097
+ HelpdeskMessageType: "chat" | "email" | "note";
1098
+ HelpdeskConversation: {
1099
+ id: string;
1100
+ /** @description Channel type, e.g. `widget`, `instagram`, `messenger`, `whatsapp`, `email`. */
1101
+ channel: string;
1102
+ channel_connection_id: string | null;
1103
+ status: components["schemas"]["HelpdeskConversationStatus"];
1104
+ subject: string | null;
1105
+ assignee_user_id: string | null;
1106
+ contact_id: string | null;
1107
+ visitor_name: string | null;
1108
+ visitor_email: string | null;
1109
+ external_conversation_id: string | null;
1110
+ channel_account_id: string | null;
1111
+ message_count: number;
1112
+ unread_for_operator: number;
1113
+ /** @description Unix timestamp in milliseconds. */
1114
+ last_message_at: number;
1115
+ last_message_preview: string | null;
1116
+ last_message_author_type: components["schemas"]["HelpdeskMessageAuthorType"] | null;
1117
+ /** @description Unix timestamp in milliseconds. */
1118
+ created_at: number;
1119
+ /** @description Unix timestamp in milliseconds. */
1120
+ updated_at: number;
1121
+ };
1122
+ HelpdeskMessage: {
1123
+ id: string;
1124
+ conversation_id: string;
1125
+ author_type: components["schemas"]["HelpdeskMessageAuthorType"];
1126
+ message_type: components["schemas"]["HelpdeskMessageType"];
1127
+ author_user_id: string | null;
1128
+ author_name: string | null;
1129
+ body: string;
1130
+ /** @description Unix timestamp in milliseconds. */
1131
+ created_at: number;
1132
+ };
1133
+ /** @description At least one field is required. */
1134
+ UpdateHelpdeskConversationInput: {
1135
+ status?: components["schemas"]["HelpdeskConversationStatus"];
1136
+ /** @description User ID to assign, or `null` to unassign. */
1137
+ assignee_user_id?: string | null;
1138
+ };
1139
+ HelpdeskConversationUpdateResult: {
1140
+ id: string;
1141
+ status: components["schemas"]["HelpdeskConversationStatus"];
1142
+ assignee_user_id: string | null;
1143
+ };
1144
+ CreateHelpdeskReplyInput: {
1145
+ conversation_id: string;
1146
+ body: string;
1147
+ /**
1148
+ * @description `note` = operator-internal note (not delivered to the customer). Default `chat`.
1149
+ * @enum {string}
1150
+ */
1151
+ message_type?: "chat" | "note";
1152
+ /** @description Agent display name for bridged replies (shown in widget + inbox). */
1153
+ author_name?: string;
1154
+ };
1155
+ HelpdeskReplyCreateResult: {
1156
+ id: string;
1157
+ conversation_id: string;
1158
+ /** @constant */
1159
+ status: "created";
1160
+ };
1161
+ WebhookEndpoint: {
1162
+ id: string;
1163
+ name: string;
1164
+ /**
1165
+ * Format: uri
1166
+ * @description Destination URL (must be https).
1167
+ */
1168
+ url: string;
1169
+ enabled: boolean;
1170
+ /** @description Subscribed event types. Empty array = all events. */
1171
+ event_types: string[];
1172
+ /** @description Channel-type filter (e.g. `['widget', 'whatsapp']`), or `null` for all channels. */
1173
+ channels: string[] | null;
1174
+ /** @description Channel-connection filter, or `null` for all connections. */
1175
+ channel_connection_ids: string[] | null;
1176
+ /** @description Last 4 characters of the signing secret, for identification. */
1177
+ secret_last4: string;
1178
+ consecutive_failures: number;
1179
+ /** @description Unix timestamp in milliseconds, or `null` if never. */
1180
+ last_delivery_at: number | null;
1181
+ /** @description Unix timestamp in milliseconds, or `null` if never. */
1182
+ last_success_at: number | null;
1183
+ /** @description Unix timestamp in milliseconds, or `null` if never. */
1184
+ last_error_at: number | null;
1185
+ last_error: string | null;
1186
+ /** @description Unix timestamp in milliseconds. */
1187
+ created_at: number;
1188
+ /** @description Unix timestamp in milliseconds. */
1189
+ updated_at: number;
1190
+ /** @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. */
1191
+ secret?: string;
1192
+ };
1193
+ CreateWebhookInput: {
1194
+ name: string;
1195
+ /**
1196
+ * Format: uri
1197
+ * @description Destination URL — must be https.
1198
+ */
1199
+ url: string;
1200
+ /** @description Event types to subscribe to (e.g. `helpdesk.message_received`). Empty = all. */
1201
+ event_types: string[];
1202
+ /** @description Restrict to these channel types (e.g. `['widget', 'whatsapp']`). */
1203
+ channels?: string[];
1204
+ /** @description Restrict to these channel connection IDs. */
1205
+ channel_connection_ids?: string[];
1206
+ };
1207
+ /** @description Only provided fields change. */
1208
+ UpdateWebhookInput: {
1209
+ name?: string;
1210
+ /** Format: uri */
1211
+ url?: string;
1212
+ event_types?: string[];
1213
+ /** @description New channel-type filter, or `null` to clear the filter. */
1214
+ channels?: string[] | null;
1215
+ /** @description New channel-connection filter, or `null` to clear the filter. */
1216
+ channel_connection_ids?: string[] | null;
1217
+ enabled?: boolean;
1218
+ };
1219
+ WebhookDeleteResult: {
1220
+ id: string;
1221
+ /** @constant */
1222
+ status: "deleted";
1223
+ };
1224
+ WebhookDelivery: {
1225
+ id: string;
1226
+ event_type: string;
1227
+ /** @enum {string} */
1228
+ status: "pending" | "delivered" | "dead_letter";
1229
+ attempt_count: number;
1230
+ /** @description Unix timestamp in milliseconds of the next retry, or `null`. */
1231
+ next_attempt_at: number | null;
1232
+ response_status: number | null;
1233
+ duration_ms: number | null;
1234
+ last_error: string | null;
1235
+ /** @description Unix timestamp in milliseconds, or `null` if not delivered. */
1236
+ delivered_at: number | null;
1237
+ /** @description Unix timestamp in milliseconds. */
1238
+ created_at: number;
1239
+ };
1240
+ WebhookTestResult: {
1241
+ delivery_id: string;
1242
+ /** @constant */
1243
+ status: "queued";
1244
+ };
900
1245
  ApiResponse_PostCreateResult: components["schemas"]["Envelope_PostCreateResult"];
901
1246
  ApiResponse_PostDetail: components["schemas"]["Envelope_PostDetail"];
902
1247
  ApiResponse_Success: components["schemas"]["Envelope_Success"];
@@ -924,6 +1269,14 @@ interface components {
924
1269
  ApiResponse_ConsentResult: components["schemas"]["Envelope_ConsentResult"];
925
1270
  ApiResponse_ConsentRecordArray: components["schemas"]["Envelope_ConsentRecordArray"];
926
1271
  ApiResponse_WorkspaceArray: components["schemas"]["Envelope_WorkspaceArray"];
1272
+ ApiResponse_HelpdeskConversation: components["schemas"]["Envelope_HelpdeskConversation"];
1273
+ ApiResponse_HelpdeskConversationUpdateResult: components["schemas"]["Envelope_HelpdeskConversationUpdateResult"];
1274
+ ApiResponse_HelpdeskReplyCreateResult: components["schemas"]["Envelope_HelpdeskReplyCreateResult"];
1275
+ ApiResponse_WebhookEndpoint: components["schemas"]["Envelope_WebhookEndpoint"];
1276
+ ApiResponse_WebhookEndpointArray: components["schemas"]["Envelope_WebhookEndpointArray"];
1277
+ ApiResponse_WebhookDeleteResult: components["schemas"]["Envelope_WebhookDeleteResult"];
1278
+ ApiResponse_WebhookDeliveryArray: components["schemas"]["Envelope_WebhookDeliveryArray"];
1279
+ ApiResponse_WebhookTestResult: components["schemas"]["Envelope_WebhookTestResult"];
927
1280
  PaginatedResponse_Post: {
928
1281
  data: components["schemas"]["Post"][];
929
1282
  pagination: components["schemas"]["Pagination"];
@@ -940,6 +1293,14 @@ interface components {
940
1293
  data: components["schemas"]["Deal"][];
941
1294
  pagination: components["schemas"]["Pagination"];
942
1295
  };
1296
+ PaginatedResponse_HelpdeskConversation: {
1297
+ data: components["schemas"]["HelpdeskConversation"][];
1298
+ pagination: components["schemas"]["Pagination"];
1299
+ };
1300
+ PaginatedResponse_HelpdeskMessage: {
1301
+ data: components["schemas"]["HelpdeskMessage"][];
1302
+ pagination: components["schemas"]["Pagination"];
1303
+ };
943
1304
  Envelope_PostCreateResult: {
944
1305
  data: components["schemas"]["PostCreateResult"];
945
1306
  };
@@ -1021,6 +1382,30 @@ interface components {
1021
1382
  Envelope_WorkspaceArray: {
1022
1383
  data: components["schemas"]["Workspace"][];
1023
1384
  };
1385
+ Envelope_HelpdeskConversation: {
1386
+ data: components["schemas"]["HelpdeskConversation"];
1387
+ };
1388
+ Envelope_HelpdeskConversationUpdateResult: {
1389
+ data: components["schemas"]["HelpdeskConversationUpdateResult"];
1390
+ };
1391
+ Envelope_HelpdeskReplyCreateResult: {
1392
+ data: components["schemas"]["HelpdeskReplyCreateResult"];
1393
+ };
1394
+ Envelope_WebhookEndpoint: {
1395
+ data: components["schemas"]["WebhookEndpoint"];
1396
+ };
1397
+ Envelope_WebhookEndpointArray: {
1398
+ data: components["schemas"]["WebhookEndpoint"][];
1399
+ };
1400
+ Envelope_WebhookDeleteResult: {
1401
+ data: components["schemas"]["WebhookDeleteResult"];
1402
+ };
1403
+ Envelope_WebhookDeliveryArray: {
1404
+ data: components["schemas"]["WebhookDelivery"][];
1405
+ };
1406
+ Envelope_WebhookTestResult: {
1407
+ data: components["schemas"]["WebhookTestResult"];
1408
+ };
1024
1409
  };
1025
1410
  responses: {
1026
1411
  /** @description API error. */
@@ -1850,6 +2235,316 @@ interface operations {
1850
2235
  default: components["responses"]["ApiError"];
1851
2236
  };
1852
2237
  };
2238
+ listHelpdeskConversations: {
2239
+ parameters: {
2240
+ query?: {
2241
+ limit?: number;
2242
+ cursor?: components["parameters"]["Cursor"];
2243
+ status?: components["schemas"]["HelpdeskConversationStatus"];
2244
+ /** @description Only conversations assigned to this user. */
2245
+ assignee_user_id?: string;
2246
+ /** @description Match against visitor name/email. */
2247
+ requester?: string;
2248
+ /** @description Free-text search query. */
2249
+ query?: string;
2250
+ /** @description Comma-separated channel types (e.g. `widget,whatsapp`). */
2251
+ channels?: string;
2252
+ };
2253
+ header?: never;
2254
+ path?: never;
2255
+ cookie?: never;
2256
+ };
2257
+ requestBody?: never;
2258
+ responses: {
2259
+ /** @description Conversations page. */
2260
+ 200: {
2261
+ headers: {
2262
+ [name: string]: unknown;
2263
+ };
2264
+ content: {
2265
+ "application/json": components["schemas"]["PaginatedResponse_HelpdeskConversation"];
2266
+ };
2267
+ };
2268
+ default: components["responses"]["ApiError"];
2269
+ };
2270
+ };
2271
+ getHelpdeskConversation: {
2272
+ parameters: {
2273
+ query?: never;
2274
+ header?: never;
2275
+ path: {
2276
+ id: components["parameters"]["Id"];
2277
+ };
2278
+ cookie?: never;
2279
+ };
2280
+ requestBody?: never;
2281
+ responses: {
2282
+ /** @description Conversation. */
2283
+ 200: {
2284
+ headers: {
2285
+ [name: string]: unknown;
2286
+ };
2287
+ content: {
2288
+ "application/json": components["schemas"]["ApiResponse_HelpdeskConversation"];
2289
+ };
2290
+ };
2291
+ default: components["responses"]["ApiError"];
2292
+ };
2293
+ };
2294
+ updateHelpdeskConversation: {
2295
+ parameters: {
2296
+ query?: never;
2297
+ header?: never;
2298
+ path: {
2299
+ id: components["parameters"]["Id"];
2300
+ };
2301
+ cookie?: never;
2302
+ };
2303
+ requestBody: {
2304
+ content: {
2305
+ "application/json": components["schemas"]["UpdateHelpdeskConversationInput"];
2306
+ };
2307
+ };
2308
+ responses: {
2309
+ /** @description Update result. */
2310
+ 200: {
2311
+ headers: {
2312
+ [name: string]: unknown;
2313
+ };
2314
+ content: {
2315
+ "application/json": components["schemas"]["ApiResponse_HelpdeskConversationUpdateResult"];
2316
+ };
2317
+ };
2318
+ default: components["responses"]["ApiError"];
2319
+ };
2320
+ };
2321
+ listHelpdeskConversationMessages: {
2322
+ parameters: {
2323
+ query?: {
2324
+ limit?: number;
2325
+ cursor?: components["parameters"]["Cursor"];
2326
+ };
2327
+ header?: never;
2328
+ path: {
2329
+ id: components["parameters"]["Id"];
2330
+ };
2331
+ cookie?: never;
2332
+ };
2333
+ requestBody?: never;
2334
+ responses: {
2335
+ /** @description Messages page. */
2336
+ 200: {
2337
+ headers: {
2338
+ [name: string]: unknown;
2339
+ };
2340
+ content: {
2341
+ "application/json": components["schemas"]["PaginatedResponse_HelpdeskMessage"];
2342
+ };
2343
+ };
2344
+ /** @description Conversation not found. */
2345
+ 404: {
2346
+ headers: {
2347
+ [name: string]: unknown;
2348
+ };
2349
+ content: {
2350
+ "application/json": components["schemas"]["ApiError"];
2351
+ };
2352
+ };
2353
+ default: components["responses"]["ApiError"];
2354
+ };
2355
+ };
2356
+ createHelpdeskReply: {
2357
+ parameters: {
2358
+ query?: never;
2359
+ header?: never;
2360
+ path?: never;
2361
+ cookie?: never;
2362
+ };
2363
+ requestBody: {
2364
+ content: {
2365
+ "application/json": components["schemas"]["CreateHelpdeskReplyInput"];
2366
+ };
2367
+ };
2368
+ responses: {
2369
+ /** @description Created reply reference. */
2370
+ 201: {
2371
+ headers: {
2372
+ [name: string]: unknown;
2373
+ };
2374
+ content: {
2375
+ "application/json": components["schemas"]["ApiResponse_HelpdeskReplyCreateResult"];
2376
+ };
2377
+ };
2378
+ default: components["responses"]["ApiError"];
2379
+ };
2380
+ };
2381
+ listWebhooks: {
2382
+ parameters: {
2383
+ query?: never;
2384
+ header?: never;
2385
+ path?: never;
2386
+ cookie?: never;
2387
+ };
2388
+ requestBody?: never;
2389
+ responses: {
2390
+ /** @description Webhook endpoints. */
2391
+ 200: {
2392
+ headers: {
2393
+ [name: string]: unknown;
2394
+ };
2395
+ content: {
2396
+ "application/json": components["schemas"]["ApiResponse_WebhookEndpointArray"];
2397
+ };
2398
+ };
2399
+ default: components["responses"]["ApiError"];
2400
+ };
2401
+ };
2402
+ createWebhook: {
2403
+ parameters: {
2404
+ query?: never;
2405
+ header?: never;
2406
+ path?: never;
2407
+ cookie?: never;
2408
+ };
2409
+ requestBody: {
2410
+ content: {
2411
+ "application/json": components["schemas"]["CreateWebhookInput"];
2412
+ };
2413
+ };
2414
+ responses: {
2415
+ /** @description Created endpoint, including the one-time `secret`. */
2416
+ 201: {
2417
+ headers: {
2418
+ [name: string]: unknown;
2419
+ };
2420
+ content: {
2421
+ "application/json": components["schemas"]["ApiResponse_WebhookEndpoint"];
2422
+ };
2423
+ };
2424
+ default: components["responses"]["ApiError"];
2425
+ };
2426
+ };
2427
+ getWebhook: {
2428
+ parameters: {
2429
+ query?: never;
2430
+ header?: never;
2431
+ path: {
2432
+ id: components["parameters"]["Id"];
2433
+ };
2434
+ cookie?: never;
2435
+ };
2436
+ requestBody?: never;
2437
+ responses: {
2438
+ /** @description Webhook endpoint. */
2439
+ 200: {
2440
+ headers: {
2441
+ [name: string]: unknown;
2442
+ };
2443
+ content: {
2444
+ "application/json": components["schemas"]["ApiResponse_WebhookEndpoint"];
2445
+ };
2446
+ };
2447
+ default: components["responses"]["ApiError"];
2448
+ };
2449
+ };
2450
+ deleteWebhook: {
2451
+ parameters: {
2452
+ query?: never;
2453
+ header?: never;
2454
+ path: {
2455
+ id: components["parameters"]["Id"];
2456
+ };
2457
+ cookie?: never;
2458
+ };
2459
+ requestBody?: never;
2460
+ responses: {
2461
+ /** @description Delete result. */
2462
+ 200: {
2463
+ headers: {
2464
+ [name: string]: unknown;
2465
+ };
2466
+ content: {
2467
+ "application/json": components["schemas"]["ApiResponse_WebhookDeleteResult"];
2468
+ };
2469
+ };
2470
+ default: components["responses"]["ApiError"];
2471
+ };
2472
+ };
2473
+ updateWebhook: {
2474
+ parameters: {
2475
+ query?: never;
2476
+ header?: never;
2477
+ path: {
2478
+ id: components["parameters"]["Id"];
2479
+ };
2480
+ cookie?: never;
2481
+ };
2482
+ requestBody: {
2483
+ content: {
2484
+ "application/json": components["schemas"]["UpdateWebhookInput"];
2485
+ };
2486
+ };
2487
+ responses: {
2488
+ /** @description Updated endpoint. */
2489
+ 200: {
2490
+ headers: {
2491
+ [name: string]: unknown;
2492
+ };
2493
+ content: {
2494
+ "application/json": components["schemas"]["ApiResponse_WebhookEndpoint"];
2495
+ };
2496
+ };
2497
+ default: components["responses"]["ApiError"];
2498
+ };
2499
+ };
2500
+ listWebhookDeliveries: {
2501
+ parameters: {
2502
+ query?: {
2503
+ limit?: number;
2504
+ };
2505
+ header?: never;
2506
+ path: {
2507
+ id: components["parameters"]["Id"];
2508
+ };
2509
+ cookie?: never;
2510
+ };
2511
+ requestBody?: never;
2512
+ responses: {
2513
+ /** @description Recent deliveries, most recent first. */
2514
+ 200: {
2515
+ headers: {
2516
+ [name: string]: unknown;
2517
+ };
2518
+ content: {
2519
+ "application/json": components["schemas"]["ApiResponse_WebhookDeliveryArray"];
2520
+ };
2521
+ };
2522
+ default: components["responses"]["ApiError"];
2523
+ };
2524
+ };
2525
+ testWebhook: {
2526
+ parameters: {
2527
+ query?: never;
2528
+ header?: never;
2529
+ path: {
2530
+ id: components["parameters"]["Id"];
2531
+ };
2532
+ cookie?: never;
2533
+ };
2534
+ requestBody?: never;
2535
+ responses: {
2536
+ /** @description Test delivery queued. */
2537
+ 202: {
2538
+ headers: {
2539
+ [name: string]: unknown;
2540
+ };
2541
+ content: {
2542
+ "application/json": components["schemas"]["ApiResponse_WebhookTestResult"];
2543
+ };
2544
+ };
2545
+ default: components["responses"]["ApiError"];
2546
+ };
2547
+ };
1853
2548
  }
1854
2549
 
1855
2550
  export type { $defs, components, operations, paths, webhooks };