@vuevox/sdk 0.9.0 → 0.9.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/README.md CHANGED
@@ -354,8 +354,9 @@ Options: `UploadCallInput`
354
354
  | `lead.email` | `string \| null` | Optional lead email. |
355
355
  | `lead.phone` | `string \| null` | Optional lead phone. |
356
356
  | `lead.customFields` | `Record<string, unknown>` | Optional organization-defined lead custom fields. |
357
- | `audio.file` | `Blob` | Required audio file blob. In Node, use `new Blob([buffer], { type: "audio/mpeg" })`. |
357
+ | `audio.file` | `Blob \| ArrayBuffer \| Uint8Array` | Required audio file data. In Node, a `Buffer` from `readFile()` can be passed directly. |
358
358
  | `audio.filename` | `string` | Optional filename sent in multipart upload. |
359
+ | `audio.contentType` | `string` | Optional MIME type, for example `audio/mpeg`. |
359
360
 
360
361
  ```ts
361
362
  import { readFile } from "node:fs/promises";
@@ -381,8 +382,9 @@ const response = await vuevox.calls.upload({
381
382
  },
382
383
  },
383
384
  audio: {
384
- file: new Blob([buffer], { type: "audio/mpeg" }),
385
+ file: buffer,
385
386
  filename: "call.mp3",
387
+ contentType: "audio/mpeg",
386
388
  },
387
389
  });
388
390
 
@@ -782,6 +784,7 @@ invalid_scope
782
784
  insufficient_scope
783
785
  rate_limited
784
786
  invalid_request
787
+ internal_error
785
788
  call_not_found
786
789
  call_external_id_conflict
787
790
  analysis_already_queued
package/dist/client.d.ts CHANGED
@@ -53,8 +53,9 @@ export interface ListCallsOptions extends ListSpacesOptions {
53
53
  export interface UploadCallInput extends CallUploadMetadata {
54
54
  idempotencyKey: string;
55
55
  audio: {
56
- file: Blob;
56
+ file: Blob | ArrayBuffer | Uint8Array;
57
57
  filename?: string;
58
+ contentType?: string;
58
59
  };
59
60
  }
60
61
  export interface WaitForAnalysisOptions {
package/dist/client.js CHANGED
@@ -50,7 +50,7 @@ export function createVueVoxClient(options) {
50
50
  const { audio, idempotencyKey, ...metadata } = input;
51
51
  const formData = new FormData();
52
52
  formData.set("metadata", JSON.stringify(metadata));
53
- formData.set("audioFile", audio.file, audio.filename ?? "call-audio");
53
+ formData.set("audioFile", toUploadBlob(audio.file, audio.contentType), audio.filename ?? "call-audio");
54
54
  return apiMultipart("POST", "/v1/calls", formData, {
55
55
  "Idempotency-Key": idempotencyKey,
56
56
  });
@@ -317,6 +317,12 @@ function withMetadata(data, response, requestId) {
317
317
  status: response.status,
318
318
  };
319
319
  }
320
+ function toUploadBlob(file, contentType) {
321
+ if (file instanceof Blob) {
322
+ return contentType && file.type !== contentType ? new Blob([file], { type: contentType }) : file;
323
+ }
324
+ return new Blob([file], { type: contentType });
325
+ }
320
326
  function notifyResponse(options, method, path, response, requestId, retryAfter) {
321
327
  options.onResponse?.({
322
328
  method,
@@ -695,7 +695,10 @@ export interface components {
695
695
  WebhookEndpointId: string;
696
696
  };
697
697
  requestBodies: never;
698
- headers: never;
698
+ headers: {
699
+ /** @description Request correlation ID for logs and support. Matches error.requestId on error responses. */
700
+ XRequestId: string;
701
+ };
699
702
  pathItems: never;
700
703
  }
701
704
  export type $defs = Record<string, never>;
@@ -716,6 +719,7 @@ export interface operations {
716
719
  /** @description Access token issued. */
717
720
  200: {
718
721
  headers: {
722
+ "X-Request-Id": components["headers"]["XRequestId"];
719
723
  [name: string]: unknown;
720
724
  };
721
725
  content: {
@@ -725,6 +729,7 @@ export interface operations {
725
729
  /** @description Requested scope is not allowed. */
726
730
  400: {
727
731
  headers: {
732
+ "X-Request-Id": components["headers"]["XRequestId"];
728
733
  [name: string]: unknown;
729
734
  };
730
735
  content: {
@@ -734,6 +739,7 @@ export interface operations {
734
739
  /** @description Client authentication failed. */
735
740
  401: {
736
741
  headers: {
742
+ "X-Request-Id": components["headers"]["XRequestId"];
737
743
  [name: string]: unknown;
738
744
  };
739
745
  content: {
@@ -743,6 +749,7 @@ export interface operations {
743
749
  /** @description Request body failed validation. */
744
750
  422: {
745
751
  headers: {
752
+ "X-Request-Id": components["headers"]["XRequestId"];
746
753
  [name: string]: unknown;
747
754
  };
748
755
  content: {
@@ -763,6 +770,7 @@ export interface operations {
763
770
  /** @description Hello response. */
764
771
  200: {
765
772
  headers: {
773
+ "X-Request-Id": components["headers"]["XRequestId"];
766
774
  [name: string]: unknown;
767
775
  };
768
776
  content: {
@@ -772,6 +780,7 @@ export interface operations {
772
780
  /** @description Bearer token is missing, invalid, or expired. */
773
781
  401: {
774
782
  headers: {
783
+ "X-Request-Id": components["headers"]["XRequestId"];
775
784
  [name: string]: unknown;
776
785
  };
777
786
  content: {
@@ -781,6 +790,7 @@ export interface operations {
781
790
  /** @description Bearer token does not include the required scope. */
782
791
  403: {
783
792
  headers: {
793
+ "X-Request-Id": components["headers"]["XRequestId"];
784
794
  [name: string]: unknown;
785
795
  };
786
796
  content: {
@@ -790,6 +800,7 @@ export interface operations {
790
800
  /** @description Per-client rate limit exceeded. */
791
801
  429: {
792
802
  headers: {
803
+ "X-Request-Id": components["headers"]["XRequestId"];
793
804
  /** @description Seconds to wait before retrying. */
794
805
  "Retry-After"?: string;
795
806
  /** @description Request limit per minute for this API client. */
@@ -819,6 +830,7 @@ export interface operations {
819
830
  /** @description Paginated spaces response. */
820
831
  200: {
821
832
  headers: {
833
+ "X-Request-Id": components["headers"]["XRequestId"];
822
834
  [name: string]: unknown;
823
835
  };
824
836
  content: {
@@ -828,6 +840,7 @@ export interface operations {
828
840
  /** @description Bearer token is missing, invalid, or expired. */
829
841
  401: {
830
842
  headers: {
843
+ "X-Request-Id": components["headers"]["XRequestId"];
831
844
  [name: string]: unknown;
832
845
  };
833
846
  content: {
@@ -837,6 +850,7 @@ export interface operations {
837
850
  /** @description Bearer token does not include the required scope. */
838
851
  403: {
839
852
  headers: {
853
+ "X-Request-Id": components["headers"]["XRequestId"];
840
854
  [name: string]: unknown;
841
855
  };
842
856
  content: {
@@ -846,6 +860,7 @@ export interface operations {
846
860
  /** @description Query parameters failed validation. */
847
861
  422: {
848
862
  headers: {
863
+ "X-Request-Id": components["headers"]["XRequestId"];
849
864
  [name: string]: unknown;
850
865
  };
851
866
  content: {
@@ -855,6 +870,7 @@ export interface operations {
855
870
  /** @description Per-client rate limit exceeded. */
856
871
  429: {
857
872
  headers: {
873
+ "X-Request-Id": components["headers"]["XRequestId"];
858
874
  /** @description Seconds to wait before retrying. */
859
875
  "Retry-After"?: string;
860
876
  /** @description Request limit per minute for this API client. */
@@ -886,6 +902,7 @@ export interface operations {
886
902
  /** @description Paginated agents response. */
887
903
  200: {
888
904
  headers: {
905
+ "X-Request-Id": components["headers"]["XRequestId"];
889
906
  [name: string]: unknown;
890
907
  };
891
908
  content: {
@@ -895,6 +912,7 @@ export interface operations {
895
912
  /** @description Bearer token is missing, invalid, or expired. */
896
913
  401: {
897
914
  headers: {
915
+ "X-Request-Id": components["headers"]["XRequestId"];
898
916
  [name: string]: unknown;
899
917
  };
900
918
  content: {
@@ -904,6 +922,7 @@ export interface operations {
904
922
  /** @description Bearer token does not include the required scope. */
905
923
  403: {
906
924
  headers: {
925
+ "X-Request-Id": components["headers"]["XRequestId"];
907
926
  [name: string]: unknown;
908
927
  };
909
928
  content: {
@@ -913,6 +932,7 @@ export interface operations {
913
932
  /** @description Query parameters failed validation. */
914
933
  422: {
915
934
  headers: {
935
+ "X-Request-Id": components["headers"]["XRequestId"];
916
936
  [name: string]: unknown;
917
937
  };
918
938
  content: {
@@ -922,6 +942,7 @@ export interface operations {
922
942
  /** @description Per-client rate limit exceeded. */
923
943
  429: {
924
944
  headers: {
945
+ "X-Request-Id": components["headers"]["XRequestId"];
925
946
  /** @description Seconds to wait before retrying. */
926
947
  "Retry-After"?: string;
927
948
  /** @description Request limit per minute for this API client. */
@@ -963,6 +984,7 @@ export interface operations {
963
984
  /** @description Paginated calls response. */
964
985
  200: {
965
986
  headers: {
987
+ "X-Request-Id": components["headers"]["XRequestId"];
966
988
  [name: string]: unknown;
967
989
  };
968
990
  content: {
@@ -972,6 +994,7 @@ export interface operations {
972
994
  /** @description Bearer token is missing, invalid, or expired. */
973
995
  401: {
974
996
  headers: {
997
+ "X-Request-Id": components["headers"]["XRequestId"];
975
998
  [name: string]: unknown;
976
999
  };
977
1000
  content: {
@@ -981,6 +1004,7 @@ export interface operations {
981
1004
  /** @description Bearer token does not include the required scope. */
982
1005
  403: {
983
1006
  headers: {
1007
+ "X-Request-Id": components["headers"]["XRequestId"];
984
1008
  [name: string]: unknown;
985
1009
  };
986
1010
  content: {
@@ -990,6 +1014,7 @@ export interface operations {
990
1014
  /** @description Query parameters failed validation. */
991
1015
  422: {
992
1016
  headers: {
1017
+ "X-Request-Id": components["headers"]["XRequestId"];
993
1018
  [name: string]: unknown;
994
1019
  };
995
1020
  content: {
@@ -999,6 +1024,7 @@ export interface operations {
999
1024
  /** @description Per-client rate limit exceeded. */
1000
1025
  429: {
1001
1026
  headers: {
1027
+ "X-Request-Id": components["headers"]["XRequestId"];
1002
1028
  /** @description Seconds to wait before retrying. */
1003
1029
  "Retry-After"?: string;
1004
1030
  /** @description Request limit per minute for this API client. */
@@ -1038,6 +1064,7 @@ export interface operations {
1038
1064
  /** @description Call uploaded. Analysis is queued when metadata.queueAnalysis is true. */
1039
1065
  201: {
1040
1066
  headers: {
1067
+ "X-Request-Id": components["headers"]["XRequestId"];
1041
1068
  [name: string]: unknown;
1042
1069
  };
1043
1070
  content: {
@@ -1047,6 +1074,7 @@ export interface operations {
1047
1074
  /** @description Bearer token is missing, invalid, or expired. */
1048
1075
  401: {
1049
1076
  headers: {
1077
+ "X-Request-Id": components["headers"]["XRequestId"];
1050
1078
  [name: string]: unknown;
1051
1079
  };
1052
1080
  content: {
@@ -1056,6 +1084,7 @@ export interface operations {
1056
1084
  /** @description Bearer token does not include the required scope. */
1057
1085
  403: {
1058
1086
  headers: {
1087
+ "X-Request-Id": components["headers"]["XRequestId"];
1059
1088
  [name: string]: unknown;
1060
1089
  };
1061
1090
  content: {
@@ -1065,6 +1094,7 @@ export interface operations {
1065
1094
  /** @description Idempotency key conflict, external call ID conflict, or analysis already queued. */
1066
1095
  409: {
1067
1096
  headers: {
1097
+ "X-Request-Id": components["headers"]["XRequestId"];
1068
1098
  [name: string]: unknown;
1069
1099
  };
1070
1100
  content: {
@@ -1074,6 +1104,7 @@ export interface operations {
1074
1104
  /** @description Multipart upload or metadata failed validation. */
1075
1105
  422: {
1076
1106
  headers: {
1107
+ "X-Request-Id": components["headers"]["XRequestId"];
1077
1108
  [name: string]: unknown;
1078
1109
  };
1079
1110
  content: {
@@ -1097,6 +1128,7 @@ export interface operations {
1097
1128
  /** @description Call detail response. */
1098
1129
  200: {
1099
1130
  headers: {
1131
+ "X-Request-Id": components["headers"]["XRequestId"];
1100
1132
  [name: string]: unknown;
1101
1133
  };
1102
1134
  content: {
@@ -1106,6 +1138,7 @@ export interface operations {
1106
1138
  /** @description Bearer token is missing, invalid, or expired. */
1107
1139
  401: {
1108
1140
  headers: {
1141
+ "X-Request-Id": components["headers"]["XRequestId"];
1109
1142
  [name: string]: unknown;
1110
1143
  };
1111
1144
  content: {
@@ -1115,6 +1148,7 @@ export interface operations {
1115
1148
  /** @description Bearer token does not include the required scope. */
1116
1149
  403: {
1117
1150
  headers: {
1151
+ "X-Request-Id": components["headers"]["XRequestId"];
1118
1152
  [name: string]: unknown;
1119
1153
  };
1120
1154
  content: {
@@ -1124,6 +1158,7 @@ export interface operations {
1124
1158
  /** @description Call was not found in the API client's organization. */
1125
1159
  404: {
1126
1160
  headers: {
1161
+ "X-Request-Id": components["headers"]["XRequestId"];
1127
1162
  [name: string]: unknown;
1128
1163
  };
1129
1164
  content: {
@@ -1133,6 +1168,7 @@ export interface operations {
1133
1168
  /** @description Per-client rate limit exceeded. */
1134
1169
  429: {
1135
1170
  headers: {
1171
+ "X-Request-Id": components["headers"]["XRequestId"];
1136
1172
  /** @description Seconds to wait before retrying. */
1137
1173
  "Retry-After"?: string;
1138
1174
  /** @description Request limit per minute for this API client. */
@@ -1160,6 +1196,7 @@ export interface operations {
1160
1196
  /** @description Analysis queued. */
1161
1197
  200: {
1162
1198
  headers: {
1199
+ "X-Request-Id": components["headers"]["XRequestId"];
1163
1200
  [name: string]: unknown;
1164
1201
  };
1165
1202
  content: {
@@ -1169,6 +1206,7 @@ export interface operations {
1169
1206
  /** @description Bearer token is missing, invalid, or expired. */
1170
1207
  401: {
1171
1208
  headers: {
1209
+ "X-Request-Id": components["headers"]["XRequestId"];
1172
1210
  [name: string]: unknown;
1173
1211
  };
1174
1212
  content: {
@@ -1178,6 +1216,7 @@ export interface operations {
1178
1216
  /** @description Bearer token does not include the required scope. */
1179
1217
  403: {
1180
1218
  headers: {
1219
+ "X-Request-Id": components["headers"]["XRequestId"];
1181
1220
  [name: string]: unknown;
1182
1221
  };
1183
1222
  content: {
@@ -1187,6 +1226,7 @@ export interface operations {
1187
1226
  /** @description Call was not found in the API client's organization. */
1188
1227
  404: {
1189
1228
  headers: {
1229
+ "X-Request-Id": components["headers"]["XRequestId"];
1190
1230
  [name: string]: unknown;
1191
1231
  };
1192
1232
  content: {
@@ -1196,6 +1236,7 @@ export interface operations {
1196
1236
  /** @description Analysis is already queued or processing. */
1197
1237
  409: {
1198
1238
  headers: {
1239
+ "X-Request-Id": components["headers"]["XRequestId"];
1199
1240
  [name: string]: unknown;
1200
1241
  };
1201
1242
  content: {
@@ -1205,6 +1246,7 @@ export interface operations {
1205
1246
  /** @description Organization AI settings, evaluation grid, or audio file is missing. */
1206
1247
  422: {
1207
1248
  headers: {
1249
+ "X-Request-Id": components["headers"]["XRequestId"];
1208
1250
  [name: string]: unknown;
1209
1251
  };
1210
1252
  content: {
@@ -1230,6 +1272,7 @@ export interface operations {
1230
1272
  /** @description Paginated webhook endpoints response. */
1231
1273
  200: {
1232
1274
  headers: {
1275
+ "X-Request-Id": components["headers"]["XRequestId"];
1233
1276
  [name: string]: unknown;
1234
1277
  };
1235
1278
  content: {
@@ -1239,6 +1282,7 @@ export interface operations {
1239
1282
  /** @description Bearer token is missing, invalid, or expired. */
1240
1283
  401: {
1241
1284
  headers: {
1285
+ "X-Request-Id": components["headers"]["XRequestId"];
1242
1286
  [name: string]: unknown;
1243
1287
  };
1244
1288
  content: {
@@ -1248,6 +1292,7 @@ export interface operations {
1248
1292
  /** @description Bearer token does not include the required scope. */
1249
1293
  403: {
1250
1294
  headers: {
1295
+ "X-Request-Id": components["headers"]["XRequestId"];
1251
1296
  [name: string]: unknown;
1252
1297
  };
1253
1298
  content: {
@@ -1257,6 +1302,7 @@ export interface operations {
1257
1302
  /** @description Query parameters failed validation. */
1258
1303
  422: {
1259
1304
  headers: {
1305
+ "X-Request-Id": components["headers"]["XRequestId"];
1260
1306
  [name: string]: unknown;
1261
1307
  };
1262
1308
  content: {
@@ -1281,6 +1327,7 @@ export interface operations {
1281
1327
  /** @description Webhook endpoint created. */
1282
1328
  201: {
1283
1329
  headers: {
1330
+ "X-Request-Id": components["headers"]["XRequestId"];
1284
1331
  [name: string]: unknown;
1285
1332
  };
1286
1333
  content: {
@@ -1290,6 +1337,7 @@ export interface operations {
1290
1337
  /** @description Bearer token is missing, invalid, or expired. */
1291
1338
  401: {
1292
1339
  headers: {
1340
+ "X-Request-Id": components["headers"]["XRequestId"];
1293
1341
  [name: string]: unknown;
1294
1342
  };
1295
1343
  content: {
@@ -1299,6 +1347,7 @@ export interface operations {
1299
1347
  /** @description Bearer token does not include the required scope. */
1300
1348
  403: {
1301
1349
  headers: {
1350
+ "X-Request-Id": components["headers"]["XRequestId"];
1302
1351
  [name: string]: unknown;
1303
1352
  };
1304
1353
  content: {
@@ -1308,6 +1357,7 @@ export interface operations {
1308
1357
  /** @description Request body failed validation. */
1309
1358
  422: {
1310
1359
  headers: {
1360
+ "X-Request-Id": components["headers"]["XRequestId"];
1311
1361
  [name: string]: unknown;
1312
1362
  };
1313
1363
  content: {
@@ -1331,6 +1381,7 @@ export interface operations {
1331
1381
  /** @description Webhook endpoint deleted. */
1332
1382
  204: {
1333
1383
  headers: {
1384
+ "X-Request-Id": components["headers"]["XRequestId"];
1334
1385
  [name: string]: unknown;
1335
1386
  };
1336
1387
  content?: never;
@@ -1338,6 +1389,7 @@ export interface operations {
1338
1389
  /** @description Bearer token is missing, invalid, or expired. */
1339
1390
  401: {
1340
1391
  headers: {
1392
+ "X-Request-Id": components["headers"]["XRequestId"];
1341
1393
  [name: string]: unknown;
1342
1394
  };
1343
1395
  content: {
@@ -1347,6 +1399,7 @@ export interface operations {
1347
1399
  /** @description Bearer token does not include the required scope. */
1348
1400
  403: {
1349
1401
  headers: {
1402
+ "X-Request-Id": components["headers"]["XRequestId"];
1350
1403
  [name: string]: unknown;
1351
1404
  };
1352
1405
  content: {
@@ -1356,6 +1409,7 @@ export interface operations {
1356
1409
  /** @description Webhook endpoint was not found for this API client. */
1357
1410
  404: {
1358
1411
  headers: {
1412
+ "X-Request-Id": components["headers"]["XRequestId"];
1359
1413
  [name: string]: unknown;
1360
1414
  };
1361
1415
  content: {
@@ -1383,6 +1437,7 @@ export interface operations {
1383
1437
  /** @description Webhook endpoint updated. */
1384
1438
  200: {
1385
1439
  headers: {
1440
+ "X-Request-Id": components["headers"]["XRequestId"];
1386
1441
  [name: string]: unknown;
1387
1442
  };
1388
1443
  content: {
@@ -1392,6 +1447,7 @@ export interface operations {
1392
1447
  /** @description Bearer token is missing, invalid, or expired. */
1393
1448
  401: {
1394
1449
  headers: {
1450
+ "X-Request-Id": components["headers"]["XRequestId"];
1395
1451
  [name: string]: unknown;
1396
1452
  };
1397
1453
  content: {
@@ -1401,6 +1457,7 @@ export interface operations {
1401
1457
  /** @description Bearer token does not include the required scope. */
1402
1458
  403: {
1403
1459
  headers: {
1460
+ "X-Request-Id": components["headers"]["XRequestId"];
1404
1461
  [name: string]: unknown;
1405
1462
  };
1406
1463
  content: {
@@ -1410,6 +1467,7 @@ export interface operations {
1410
1467
  /** @description Webhook endpoint was not found for this API client. */
1411
1468
  404: {
1412
1469
  headers: {
1470
+ "X-Request-Id": components["headers"]["XRequestId"];
1413
1471
  [name: string]: unknown;
1414
1472
  };
1415
1473
  content: {
@@ -1419,6 +1477,7 @@ export interface operations {
1419
1477
  /** @description Request body failed validation. */
1420
1478
  422: {
1421
1479
  headers: {
1480
+ "X-Request-Id": components["headers"]["XRequestId"];
1422
1481
  [name: string]: unknown;
1423
1482
  };
1424
1483
  content: {
@@ -1442,6 +1501,7 @@ export interface operations {
1442
1501
  /** @description Webhook endpoint secret rotated. */
1443
1502
  200: {
1444
1503
  headers: {
1504
+ "X-Request-Id": components["headers"]["XRequestId"];
1445
1505
  [name: string]: unknown;
1446
1506
  };
1447
1507
  content: {
@@ -1451,6 +1511,7 @@ export interface operations {
1451
1511
  /** @description Bearer token is missing, invalid, or expired. */
1452
1512
  401: {
1453
1513
  headers: {
1514
+ "X-Request-Id": components["headers"]["XRequestId"];
1454
1515
  [name: string]: unknown;
1455
1516
  };
1456
1517
  content: {
@@ -1460,6 +1521,7 @@ export interface operations {
1460
1521
  /** @description Bearer token does not include the required scope. */
1461
1522
  403: {
1462
1523
  headers: {
1524
+ "X-Request-Id": components["headers"]["XRequestId"];
1463
1525
  [name: string]: unknown;
1464
1526
  };
1465
1527
  content: {
@@ -1469,6 +1531,7 @@ export interface operations {
1469
1531
  /** @description Webhook endpoint was not found for this API client. */
1470
1532
  404: {
1471
1533
  headers: {
1534
+ "X-Request-Id": components["headers"]["XRequestId"];
1472
1535
  [name: string]: unknown;
1473
1536
  };
1474
1537
  content: {
@@ -1492,6 +1555,7 @@ export interface operations {
1492
1555
  /** @description Test delivery queued. */
1493
1556
  202: {
1494
1557
  headers: {
1558
+ "X-Request-Id": components["headers"]["XRequestId"];
1495
1559
  [name: string]: unknown;
1496
1560
  };
1497
1561
  content: {
@@ -1501,6 +1565,7 @@ export interface operations {
1501
1565
  /** @description Bearer token is missing, invalid, or expired. */
1502
1566
  401: {
1503
1567
  headers: {
1568
+ "X-Request-Id": components["headers"]["XRequestId"];
1504
1569
  [name: string]: unknown;
1505
1570
  };
1506
1571
  content: {
@@ -1510,6 +1575,7 @@ export interface operations {
1510
1575
  /** @description Bearer token does not include the required scope. */
1511
1576
  403: {
1512
1577
  headers: {
1578
+ "X-Request-Id": components["headers"]["XRequestId"];
1513
1579
  [name: string]: unknown;
1514
1580
  };
1515
1581
  content: {
@@ -1519,6 +1585,7 @@ export interface operations {
1519
1585
  /** @description Webhook endpoint was not found for this API client. */
1520
1586
  404: {
1521
1587
  headers: {
1588
+ "X-Request-Id": components["headers"]["XRequestId"];
1522
1589
  [name: string]: unknown;
1523
1590
  };
1524
1591
  content: {
@@ -1552,6 +1619,7 @@ export interface operations {
1552
1619
  /** @description Paginated leads response. */
1553
1620
  200: {
1554
1621
  headers: {
1622
+ "X-Request-Id": components["headers"]["XRequestId"];
1555
1623
  [name: string]: unknown;
1556
1624
  };
1557
1625
  content: {
@@ -1561,6 +1629,7 @@ export interface operations {
1561
1629
  /** @description Bearer token is missing, invalid, or expired. */
1562
1630
  401: {
1563
1631
  headers: {
1632
+ "X-Request-Id": components["headers"]["XRequestId"];
1564
1633
  [name: string]: unknown;
1565
1634
  };
1566
1635
  content: {
@@ -1570,6 +1639,7 @@ export interface operations {
1570
1639
  /** @description Bearer token does not include the required scope. */
1571
1640
  403: {
1572
1641
  headers: {
1642
+ "X-Request-Id": components["headers"]["XRequestId"];
1573
1643
  [name: string]: unknown;
1574
1644
  };
1575
1645
  content: {
@@ -1579,6 +1649,7 @@ export interface operations {
1579
1649
  /** @description Query parameters failed validation. */
1580
1650
  422: {
1581
1651
  headers: {
1652
+ "X-Request-Id": components["headers"]["XRequestId"];
1582
1653
  [name: string]: unknown;
1583
1654
  };
1584
1655
  content: {
@@ -1588,6 +1659,7 @@ export interface operations {
1588
1659
  /** @description Per-client rate limit exceeded. */
1589
1660
  429: {
1590
1661
  headers: {
1662
+ "X-Request-Id": components["headers"]["XRequestId"];
1591
1663
  /** @description Seconds to wait before retrying. */
1592
1664
  "Retry-After"?: string;
1593
1665
  /** @description Request limit per minute for this API client. */
@@ -1615,6 +1687,7 @@ export interface operations {
1615
1687
  /** @description Lead detail response. */
1616
1688
  200: {
1617
1689
  headers: {
1690
+ "X-Request-Id": components["headers"]["XRequestId"];
1618
1691
  [name: string]: unknown;
1619
1692
  };
1620
1693
  content: {
@@ -1624,6 +1697,7 @@ export interface operations {
1624
1697
  /** @description Bearer token is missing, invalid, or expired. */
1625
1698
  401: {
1626
1699
  headers: {
1700
+ "X-Request-Id": components["headers"]["XRequestId"];
1627
1701
  [name: string]: unknown;
1628
1702
  };
1629
1703
  content: {
@@ -1633,6 +1707,7 @@ export interface operations {
1633
1707
  /** @description Bearer token does not include the required scope. */
1634
1708
  403: {
1635
1709
  headers: {
1710
+ "X-Request-Id": components["headers"]["XRequestId"];
1636
1711
  [name: string]: unknown;
1637
1712
  };
1638
1713
  content: {
@@ -1642,6 +1717,7 @@ export interface operations {
1642
1717
  /** @description Lead was not found in the API client's organization. */
1643
1718
  404: {
1644
1719
  headers: {
1720
+ "X-Request-Id": components["headers"]["XRequestId"];
1645
1721
  [name: string]: unknown;
1646
1722
  };
1647
1723
  content: {
@@ -1651,6 +1727,7 @@ export interface operations {
1651
1727
  /** @description Per-client rate limit exceeded. */
1652
1728
  429: {
1653
1729
  headers: {
1730
+ "X-Request-Id": components["headers"]["XRequestId"];
1654
1731
  /** @description Seconds to wait before retrying. */
1655
1732
  "Retry-After"?: string;
1656
1733
  /** @description Request limit per minute for this API client. */
@@ -1682,6 +1759,7 @@ export interface operations {
1682
1759
  /** @description Lead updated. */
1683
1760
  200: {
1684
1761
  headers: {
1762
+ "X-Request-Id": components["headers"]["XRequestId"];
1685
1763
  [name: string]: unknown;
1686
1764
  };
1687
1765
  content: {
@@ -1691,6 +1769,7 @@ export interface operations {
1691
1769
  /** @description Bearer token is missing, invalid, or expired. */
1692
1770
  401: {
1693
1771
  headers: {
1772
+ "X-Request-Id": components["headers"]["XRequestId"];
1694
1773
  [name: string]: unknown;
1695
1774
  };
1696
1775
  content: {
@@ -1700,6 +1779,7 @@ export interface operations {
1700
1779
  /** @description Bearer token does not include the required scope. */
1701
1780
  403: {
1702
1781
  headers: {
1782
+ "X-Request-Id": components["headers"]["XRequestId"];
1703
1783
  [name: string]: unknown;
1704
1784
  };
1705
1785
  content: {
@@ -1709,6 +1789,7 @@ export interface operations {
1709
1789
  /** @description Lead was not found in the API client's organization. */
1710
1790
  404: {
1711
1791
  headers: {
1792
+ "X-Request-Id": components["headers"]["XRequestId"];
1712
1793
  [name: string]: unknown;
1713
1794
  };
1714
1795
  content: {
@@ -1718,6 +1799,7 @@ export interface operations {
1718
1799
  /** @description Request body failed validation. */
1719
1800
  422: {
1720
1801
  headers: {
1802
+ "X-Request-Id": components["headers"]["XRequestId"];
1721
1803
  [name: string]: unknown;
1722
1804
  };
1723
1805
  content: {
@@ -1745,6 +1827,7 @@ export interface operations {
1745
1827
  /** @description Existing lead updated. */
1746
1828
  200: {
1747
1829
  headers: {
1830
+ "X-Request-Id": components["headers"]["XRequestId"];
1748
1831
  [name: string]: unknown;
1749
1832
  };
1750
1833
  content: {
@@ -1754,6 +1837,7 @@ export interface operations {
1754
1837
  /** @description New lead created. */
1755
1838
  201: {
1756
1839
  headers: {
1840
+ "X-Request-Id": components["headers"]["XRequestId"];
1757
1841
  [name: string]: unknown;
1758
1842
  };
1759
1843
  content: {
@@ -1763,6 +1847,7 @@ export interface operations {
1763
1847
  /** @description Bearer token is missing, invalid, or expired. */
1764
1848
  401: {
1765
1849
  headers: {
1850
+ "X-Request-Id": components["headers"]["XRequestId"];
1766
1851
  [name: string]: unknown;
1767
1852
  };
1768
1853
  content: {
@@ -1772,6 +1857,7 @@ export interface operations {
1772
1857
  /** @description Bearer token does not include the required scope. */
1773
1858
  403: {
1774
1859
  headers: {
1860
+ "X-Request-Id": components["headers"]["XRequestId"];
1775
1861
  [name: string]: unknown;
1776
1862
  };
1777
1863
  content: {
@@ -1781,6 +1867,7 @@ export interface operations {
1781
1867
  /** @description Request body failed validation. */
1782
1868
  422: {
1783
1869
  headers: {
1870
+ "X-Request-Id": components["headers"]["XRequestId"];
1784
1871
  [name: string]: unknown;
1785
1872
  };
1786
1873
  content: {
@@ -1804,6 +1891,7 @@ export interface operations {
1804
1891
  /** @description Lead custom field definitions. */
1805
1892
  200: {
1806
1893
  headers: {
1894
+ "X-Request-Id": components["headers"]["XRequestId"];
1807
1895
  [name: string]: unknown;
1808
1896
  };
1809
1897
  content: {
@@ -1813,6 +1901,7 @@ export interface operations {
1813
1901
  /** @description Bearer token is missing, invalid, or expired. */
1814
1902
  401: {
1815
1903
  headers: {
1904
+ "X-Request-Id": components["headers"]["XRequestId"];
1816
1905
  [name: string]: unknown;
1817
1906
  };
1818
1907
  content: {
@@ -1822,6 +1911,7 @@ export interface operations {
1822
1911
  /** @description Bearer token does not include the required scope. */
1823
1912
  403: {
1824
1913
  headers: {
1914
+ "X-Request-Id": components["headers"]["XRequestId"];
1825
1915
  [name: string]: unknown;
1826
1916
  };
1827
1917
  content: {
@@ -1846,6 +1936,7 @@ export interface operations {
1846
1936
  /** @description Lead custom field created. */
1847
1937
  201: {
1848
1938
  headers: {
1939
+ "X-Request-Id": components["headers"]["XRequestId"];
1849
1940
  [name: string]: unknown;
1850
1941
  };
1851
1942
  content: {
@@ -1855,6 +1946,7 @@ export interface operations {
1855
1946
  /** @description Bearer token is missing, invalid, or expired. */
1856
1947
  401: {
1857
1948
  headers: {
1949
+ "X-Request-Id": components["headers"]["XRequestId"];
1858
1950
  [name: string]: unknown;
1859
1951
  };
1860
1952
  content: {
@@ -1864,6 +1956,7 @@ export interface operations {
1864
1956
  /** @description Bearer token does not include the required scope. */
1865
1957
  403: {
1866
1958
  headers: {
1959
+ "X-Request-Id": components["headers"]["XRequestId"];
1867
1960
  [name: string]: unknown;
1868
1961
  };
1869
1962
  content: {
@@ -1873,6 +1966,7 @@ export interface operations {
1873
1966
  /** @description A custom field with this key already exists. */
1874
1967
  409: {
1875
1968
  headers: {
1969
+ "X-Request-Id": components["headers"]["XRequestId"];
1876
1970
  [name: string]: unknown;
1877
1971
  };
1878
1972
  content: {
@@ -1882,6 +1976,7 @@ export interface operations {
1882
1976
  /** @description Request body failed validation. */
1883
1977
  422: {
1884
1978
  headers: {
1979
+ "X-Request-Id": components["headers"]["XRequestId"];
1885
1980
  [name: string]: unknown;
1886
1981
  };
1887
1982
  content: {
@@ -1909,6 +2004,7 @@ export interface operations {
1909
2004
  /** @description Lead custom field updated. */
1910
2005
  200: {
1911
2006
  headers: {
2007
+ "X-Request-Id": components["headers"]["XRequestId"];
1912
2008
  [name: string]: unknown;
1913
2009
  };
1914
2010
  content: {
@@ -1918,6 +2014,7 @@ export interface operations {
1918
2014
  /** @description Bearer token is missing, invalid, or expired. */
1919
2015
  401: {
1920
2016
  headers: {
2017
+ "X-Request-Id": components["headers"]["XRequestId"];
1921
2018
  [name: string]: unknown;
1922
2019
  };
1923
2020
  content: {
@@ -1927,6 +2024,7 @@ export interface operations {
1927
2024
  /** @description Bearer token does not include the required scope. */
1928
2025
  403: {
1929
2026
  headers: {
2027
+ "X-Request-Id": components["headers"]["XRequestId"];
1930
2028
  [name: string]: unknown;
1931
2029
  };
1932
2030
  content: {
@@ -1936,6 +2034,7 @@ export interface operations {
1936
2034
  /** @description Custom field was not found in the API client's organization. */
1937
2035
  404: {
1938
2036
  headers: {
2037
+ "X-Request-Id": components["headers"]["XRequestId"];
1939
2038
  [name: string]: unknown;
1940
2039
  };
1941
2040
  content: {
@@ -1945,6 +2044,7 @@ export interface operations {
1945
2044
  /** @description Request body failed validation. */
1946
2045
  422: {
1947
2046
  headers: {
2047
+ "X-Request-Id": components["headers"]["XRequestId"];
1948
2048
  [name: string]: unknown;
1949
2049
  };
1950
2050
  content: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuevox/sdk",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "TypeScript SDK for the VueVox Developer API.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",