@orq-ai/node 3.6.4 → 3.6.6

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.
Files changed (120) hide show
  1. package/FUNCTIONS.md +5 -22
  2. package/README.md +45 -47
  3. package/bin/mcp-server.js +43 -43
  4. package/bin/mcp-server.js.map +23 -23
  5. package/docs/sdks/contacts/README.md +5 -9
  6. package/docs/sdks/datasets/README.md +65 -111
  7. package/docs/sdks/deployments/README.md +34 -44
  8. package/docs/sdks/feedback/README.md +5 -9
  9. package/docs/sdks/files/README.md +20 -34
  10. package/docs/sdks/knowledge/README.md +80 -138
  11. package/docs/sdks/metrics/README.md +5 -9
  12. package/docs/sdks/models/README.md +5 -9
  13. package/docs/sdks/prompts/README.md +35 -61
  14. package/docs/sdks/remoteconfigs/README.md +5 -9
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +3 -3
  17. package/lib/config.js +3 -3
  18. package/mcp-server/mcp-server.js +1 -1
  19. package/mcp-server/server.js +1 -1
  20. package/models/errors/apierror.d.ts +14 -2
  21. package/models/errors/apierror.d.ts.map +1 -1
  22. package/models/errors/apierror.js +1 -1
  23. package/models/errors/apierror.js.map +1 -1
  24. package/models/operations/bulkcreatedatapoints.js +2 -2
  25. package/models/operations/createcontact.js +2 -2
  26. package/models/operations/createdataset.js +2 -2
  27. package/models/operations/createdatasetitem.js +2 -2
  28. package/models/operations/createdatasource.js +2 -2
  29. package/models/operations/fileget.js +2 -2
  30. package/models/operations/filelist.js +2 -2
  31. package/models/operations/fileupload.js +2 -2
  32. package/models/operations/listdatasetdatapoints.js +2 -2
  33. package/models/operations/listdatasets.js +2 -2
  34. package/models/operations/listdatasources.js +2 -2
  35. package/models/operations/retrievedatapoint.js +2 -2
  36. package/models/operations/retrievedataset.js +2 -2
  37. package/models/operations/retrievedatasource.js +2 -2
  38. package/models/operations/updatedatapoint.js +2 -2
  39. package/models/operations/updatedataset.js +2 -2
  40. package/models/operations/updatedatasource.js +2 -2
  41. package/package.json +1 -1
  42. package/packages/orq-rc/FUNCTIONS.md +5 -22
  43. package/packages/orq-rc/README.md +129 -47
  44. package/packages/orq-rc/docs/sdks/contacts/README.md +344 -11
  45. package/packages/orq-rc/docs/sdks/datasets/README.md +60 -102
  46. package/packages/orq-rc/docs/sdks/deployments/README.md +34 -44
  47. package/packages/orq-rc/docs/sdks/evals/README.md +175 -315
  48. package/packages/orq-rc/docs/sdks/feedback/README.md +5 -9
  49. package/packages/orq-rc/docs/sdks/files/README.md +20 -34
  50. package/packages/orq-rc/docs/sdks/knowledge/README.md +80 -138
  51. package/packages/orq-rc/docs/sdks/metrics/README.md +5 -9
  52. package/packages/orq-rc/docs/sdks/models/README.md +5 -9
  53. package/packages/orq-rc/docs/sdks/prompts/README.md +35 -61
  54. package/packages/orq-rc/docs/sdks/remoteconfigs/README.md +5 -9
  55. package/packages/orq-rc/jsr.json +1 -1
  56. package/packages/orq-rc/package-lock.json +2 -2
  57. package/packages/orq-rc/package.json +1 -1
  58. package/packages/orq-rc/src/funcs/contactsCreate.ts +12 -7
  59. package/packages/orq-rc/src/funcs/contactsDelete.ts +172 -0
  60. package/packages/orq-rc/src/funcs/contactsList.ts +165 -0
  61. package/packages/orq-rc/src/funcs/contactsRetrieve.ts +171 -0
  62. package/packages/orq-rc/src/funcs/contactsUpdate.ts +172 -0
  63. package/packages/orq-rc/src/lib/config.ts +3 -3
  64. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  65. package/packages/orq-rc/src/mcp-server/server.ts +9 -1
  66. package/packages/orq-rc/src/mcp-server/tools/contactsCreate.ts +3 -3
  67. package/packages/orq-rc/src/mcp-server/tools/contactsDelete.ts +35 -0
  68. package/packages/orq-rc/src/mcp-server/tools/contactsList.ts +37 -0
  69. package/packages/orq-rc/src/mcp-server/tools/contactsRetrieve.ts +37 -0
  70. package/packages/orq-rc/src/mcp-server/tools/contactsUpdate.ts +37 -0
  71. package/packages/orq-rc/src/models/errors/apierror.ts +18 -3
  72. package/packages/orq-rc/src/models/errors/deletecontact.ts +81 -0
  73. package/packages/orq-rc/src/models/errors/index.ts +3 -0
  74. package/packages/orq-rc/src/models/errors/retrievecontact.ts +81 -0
  75. package/packages/orq-rc/src/models/errors/updatecontact.ts +74 -0
  76. package/packages/orq-rc/src/models/operations/createcontact.ts +30 -19
  77. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  78. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
  81. package/packages/orq-rc/src/models/operations/deletecontact.ts +69 -0
  82. package/packages/orq-rc/src/models/operations/deployments.ts +69 -59
  83. package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
  84. package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
  85. package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
  86. package/packages/orq-rc/src/models/operations/index.ts +4 -0
  87. package/packages/orq-rc/src/models/operations/listcontacts.ts +490 -0
  88. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  89. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  90. package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
  91. package/packages/orq-rc/src/models/operations/retrievecontact.ts +210 -0
  92. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  93. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  94. package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
  95. package/packages/orq-rc/src/models/operations/updatecontact.ts +325 -0
  96. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  98. package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
  99. package/packages/orq-rc/src/sdk/contacts.ts +75 -3
  100. package/src/lib/config.ts +3 -3
  101. package/src/mcp-server/mcp-server.ts +1 -1
  102. package/src/mcp-server/server.ts +1 -1
  103. package/src/models/errors/apierror.ts +18 -3
  104. package/src/models/operations/bulkcreatedatapoints.ts +2 -2
  105. package/src/models/operations/createcontact.ts +2 -2
  106. package/src/models/operations/createdataset.ts +2 -2
  107. package/src/models/operations/createdatasetitem.ts +2 -2
  108. package/src/models/operations/createdatasource.ts +2 -2
  109. package/src/models/operations/fileget.ts +2 -2
  110. package/src/models/operations/filelist.ts +2 -2
  111. package/src/models/operations/fileupload.ts +2 -2
  112. package/src/models/operations/listdatasetdatapoints.ts +2 -2
  113. package/src/models/operations/listdatasets.ts +2 -2
  114. package/src/models/operations/listdatasources.ts +2 -2
  115. package/src/models/operations/retrievedatapoint.ts +2 -2
  116. package/src/models/operations/retrievedataset.ts +2 -2
  117. package/src/models/operations/retrievedatasource.ts +2 -2
  118. package/src/models/operations/updatedatapoint.ts +2 -2
  119. package/src/models/operations/updatedataset.ts +2 -2
  120. package/src/models/operations/updatedatasource.ts +2 -2
@@ -5,11 +5,15 @@
5
5
 
6
6
  ### Available Operations
7
7
 
8
- * [create](#create) - Update user information
8
+ * [create](#create) - Create a contact
9
+ * [list](#list) - List contacts
10
+ * [retrieve](#retrieve) - Retrieve a contact
11
+ * [update](#update) - Update a contact
12
+ * [delete](#delete) - Delete a contact
9
13
 
10
14
  ## create
11
15
 
12
- Update or add user information to workspace
16
+ Creates a new contact or updates an existing one based on external_id. Use this endpoint to add users from your system to orq.ai for tracking their usage and engagement.
13
17
 
14
18
  ### Example Usage
15
19
 
@@ -25,7 +29,6 @@ async function run() {
25
29
  externalId: "<id>",
26
30
  });
27
31
 
28
- // Handle the result
29
32
  console.log(result);
30
33
  }
31
34
 
@@ -50,35 +53,365 @@ async function run() {
50
53
  const res = await contactsCreate(orq, {
51
54
  externalId: "<id>",
52
55
  });
53
-
54
- if (!res.ok) {
55
- throw res.error;
56
+ if (res.ok) {
57
+ const { value: result } = res;
58
+ console.log(result);
59
+ } else {
60
+ console.log("contactsCreate failed:", res.error);
56
61
  }
62
+ }
63
+
64
+ run();
65
+ ```
66
+
67
+ ### Parameters
68
+
69
+ | Parameter | Type | Required | Description |
70
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
71
+ | `request` | [operations.CreateContactRequestBody](../../models/operations/createcontactrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
72
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
73
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
74
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
75
+
76
+ ### Response
77
+
78
+ **Promise\<[operations.CreateContactResponseBody](../../models/operations/createcontactresponsebody.md)\>**
79
+
80
+ ### Errors
81
+
82
+ | Error Type | Status Code | Content Type |
83
+ | --------------- | --------------- | --------------- |
84
+ | errors.APIError | 4XX, 5XX | \*/\* |
85
+
86
+ ## list
87
+
88
+ Retrieves a paginated list of contacts in your workspace. Use pagination parameters to navigate through large contact lists efficiently.
89
+
90
+ ### Example Usage
91
+
92
+ ```typescript
93
+ import { Orq } from "@orq-ai/node";
57
94
 
58
- const { value: result } = res;
95
+ const orq = new Orq({
96
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
97
+ });
98
+
99
+ async function run() {
100
+ const result = await orq.contacts.list({
101
+ filterBy: {
102
+ tags: [
103
+ "premium",
104
+ "beta-user",
105
+ ],
106
+ },
107
+ });
59
108
 
60
- // Handle the result
61
109
  console.log(result);
62
110
  }
63
111
 
64
112
  run();
65
113
  ```
66
114
 
115
+ ### Standalone function
116
+
117
+ The standalone function version of this method:
118
+
119
+ ```typescript
120
+ import { OrqCore } from "@orq-ai/node/core.js";
121
+ import { contactsList } from "@orq-ai/node/funcs/contactsList.js";
122
+
123
+ // Use `OrqCore` for best tree-shaking performance.
124
+ // You can create one instance of it to use across an application.
125
+ const orq = new OrqCore({
126
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
127
+ });
128
+
129
+ async function run() {
130
+ const res = await contactsList(orq, {
131
+ filterBy: {
132
+ tags: [
133
+ "premium",
134
+ "beta-user",
135
+ ],
136
+ },
137
+ });
138
+ if (res.ok) {
139
+ const { value: result } = res;
140
+ console.log(result);
141
+ } else {
142
+ console.log("contactsList failed:", res.error);
143
+ }
144
+ }
145
+
146
+ run();
147
+ ```
148
+
67
149
  ### Parameters
68
150
 
69
151
  | Parameter | Type | Required | Description |
70
152
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
71
- | `request` | [operations.CreateContactRequestBody](../../models/operations/createcontactrequestbody.md) | :heavy_check_mark: | The request object to use for the request. |
153
+ | `request` | [operations.ListContactsRequest](../../models/operations/listcontactsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
72
154
  | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
73
155
  | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
74
156
  | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
75
157
 
76
158
  ### Response
77
159
 
78
- **Promise\<[operations.CreateContactResponseBody](../../models/operations/createcontactresponsebody.md)\>**
160
+ **Promise\<[operations.ListContactsResponseBody](../../models/operations/listcontactsresponsebody.md)\>**
79
161
 
80
162
  ### Errors
81
163
 
82
164
  | Error Type | Status Code | Content Type |
83
165
  | --------------- | --------------- | --------------- |
84
- | errors.APIError | 4XX, 5XX | \*/\* |
166
+ | errors.APIError | 4XX, 5XX | \*/\* |
167
+
168
+ ## retrieve
169
+
170
+ Retrieves detailed information about a specific contact using their contact ID or external ID from your system.
171
+
172
+ ### Example Usage
173
+
174
+ ```typescript
175
+ import { Orq } from "@orq-ai/node";
176
+
177
+ const orq = new Orq({
178
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
179
+ });
180
+
181
+ async function run() {
182
+ const result = await orq.contacts.retrieve({
183
+ id: "<id>",
184
+ });
185
+
186
+ console.log(result);
187
+ }
188
+
189
+ run();
190
+ ```
191
+
192
+ ### Standalone function
193
+
194
+ The standalone function version of this method:
195
+
196
+ ```typescript
197
+ import { OrqCore } from "@orq-ai/node/core.js";
198
+ import { contactsRetrieve } from "@orq-ai/node/funcs/contactsRetrieve.js";
199
+
200
+ // Use `OrqCore` for best tree-shaking performance.
201
+ // You can create one instance of it to use across an application.
202
+ const orq = new OrqCore({
203
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
204
+ });
205
+
206
+ async function run() {
207
+ const res = await contactsRetrieve(orq, {
208
+ id: "<id>",
209
+ });
210
+ if (res.ok) {
211
+ const { value: result } = res;
212
+ console.log(result);
213
+ } else {
214
+ console.log("contactsRetrieve failed:", res.error);
215
+ }
216
+ }
217
+
218
+ run();
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+ | Parameter | Type | Required | Description |
224
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
225
+ | `request` | [operations.RetrieveContactRequest](../../models/operations/retrievecontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
226
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
227
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
228
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
229
+
230
+ ### Response
231
+
232
+ **Promise\<[operations.RetrieveContactResponseBody](../../models/operations/retrievecontactresponsebody.md)\>**
233
+
234
+ ### Errors
235
+
236
+ | Error Type | Status Code | Content Type |
237
+ | ---------------------------------- | ---------------------------------- | ---------------------------------- |
238
+ | errors.RetrieveContactResponseBody | 404 | application/json |
239
+ | errors.APIError | 4XX, 5XX | \*/\* |
240
+
241
+ ## update
242
+
243
+ Updates specific fields of an existing contact. Only the fields provided in the request body will be updated.
244
+
245
+ ### Example Usage
246
+
247
+ ```typescript
248
+ import { Orq } from "@orq-ai/node";
249
+
250
+ const orq = new Orq({
251
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
252
+ });
253
+
254
+ async function run() {
255
+ const result = await orq.contacts.update({
256
+ id: "<id>",
257
+ requestBody: {
258
+ displayName: "Jane Smith",
259
+ email: "jane.smith@example.com",
260
+ avatarUrl: "https://example.com/avatars/jane-smith.jpg",
261
+ tags: [
262
+ "premium",
263
+ "beta-user",
264
+ "enterprise",
265
+ ],
266
+ metadata: {
267
+ "department": "Engineering",
268
+ "role": "Senior Developer",
269
+ "subscription_tier": "premium",
270
+ "last_login": "2024-01-15T10:30:00Z",
271
+ },
272
+ },
273
+ });
274
+
275
+ console.log(result);
276
+ }
277
+
278
+ run();
279
+ ```
280
+
281
+ ### Standalone function
282
+
283
+ The standalone function version of this method:
284
+
285
+ ```typescript
286
+ import { OrqCore } from "@orq-ai/node/core.js";
287
+ import { contactsUpdate } from "@orq-ai/node/funcs/contactsUpdate.js";
288
+
289
+ // Use `OrqCore` for best tree-shaking performance.
290
+ // You can create one instance of it to use across an application.
291
+ const orq = new OrqCore({
292
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
293
+ });
294
+
295
+ async function run() {
296
+ const res = await contactsUpdate(orq, {
297
+ id: "<id>",
298
+ requestBody: {
299
+ displayName: "Jane Smith",
300
+ email: "jane.smith@example.com",
301
+ avatarUrl: "https://example.com/avatars/jane-smith.jpg",
302
+ tags: [
303
+ "premium",
304
+ "beta-user",
305
+ "enterprise",
306
+ ],
307
+ metadata: {
308
+ "department": "Engineering",
309
+ "role": "Senior Developer",
310
+ "subscription_tier": "premium",
311
+ "last_login": "2024-01-15T10:30:00Z",
312
+ },
313
+ },
314
+ });
315
+ if (res.ok) {
316
+ const { value: result } = res;
317
+ console.log(result);
318
+ } else {
319
+ console.log("contactsUpdate failed:", res.error);
320
+ }
321
+ }
322
+
323
+ run();
324
+ ```
325
+
326
+ ### Parameters
327
+
328
+ | Parameter | Type | Required | Description |
329
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
330
+ | `request` | [operations.UpdateContactRequest](../../models/operations/updatecontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
331
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
332
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
333
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
334
+
335
+ ### Response
336
+
337
+ **Promise\<[operations.UpdateContactResponseBody](../../models/operations/updatecontactresponsebody.md)\>**
338
+
339
+ ### Errors
340
+
341
+ | Error Type | Status Code | Content Type |
342
+ | -------------------------------- | -------------------------------- | -------------------------------- |
343
+ | errors.UpdateContactResponseBody | 404 | application/json |
344
+ | errors.APIError | 4XX, 5XX | \*/\* |
345
+
346
+ ## delete
347
+
348
+ Permanently deletes a contact from your workspace. This action cannot be undone.
349
+
350
+ ### Example Usage
351
+
352
+ ```typescript
353
+ import { Orq } from "@orq-ai/node";
354
+
355
+ const orq = new Orq({
356
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
357
+ });
358
+
359
+ async function run() {
360
+ await orq.contacts.delete({
361
+ id: "<id>",
362
+ });
363
+
364
+
365
+ }
366
+
367
+ run();
368
+ ```
369
+
370
+ ### Standalone function
371
+
372
+ The standalone function version of this method:
373
+
374
+ ```typescript
375
+ import { OrqCore } from "@orq-ai/node/core.js";
376
+ import { contactsDelete } from "@orq-ai/node/funcs/contactsDelete.js";
377
+
378
+ // Use `OrqCore` for best tree-shaking performance.
379
+ // You can create one instance of it to use across an application.
380
+ const orq = new OrqCore({
381
+ apiKey: process.env["ORQ_API_KEY"] ?? "",
382
+ });
383
+
384
+ async function run() {
385
+ const res = await contactsDelete(orq, {
386
+ id: "<id>",
387
+ });
388
+ if (res.ok) {
389
+ const { value: result } = res;
390
+
391
+ } else {
392
+ console.log("contactsDelete failed:", res.error);
393
+ }
394
+ }
395
+
396
+ run();
397
+ ```
398
+
399
+ ### Parameters
400
+
401
+ | Parameter | Type | Required | Description |
402
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
403
+ | `request` | [operations.DeleteContactRequest](../../models/operations/deletecontactrequest.md) | :heavy_check_mark: | The request object to use for the request. |
404
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
405
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
406
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
407
+
408
+ ### Response
409
+
410
+ **Promise\<void\>**
411
+
412
+ ### Errors
413
+
414
+ | Error Type | Status Code | Content Type |
415
+ | -------------------------------- | -------------------------------- | -------------------------------- |
416
+ | errors.DeleteContactResponseBody | 404 | application/json |
417
+ | errors.APIError | 4XX, 5XX | \*/\* |