@orq-ai/node 4.2.0 → 4.2.4
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/FUNCTIONS.md +17 -7
- package/README.md +125 -70
- package/examples/contactsCreate.example.ts +42 -0
- package/examples/package-lock.json +1 -1
- package/funcs/contactsCreate.d.ts +3 -5
- package/funcs/contactsCreate.d.ts.map +1 -1
- package/funcs/contactsCreate.js +5 -9
- package/funcs/contactsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +6 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +2 -0
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/publiccontact.d.ts +3 -1
- package/models/components/publiccontact.d.ts.map +1 -1
- package/models/components/publiccontact.js.map +1 -1
- package/models/components/publicidentity.d.ts +47 -0
- package/models/components/publicidentity.d.ts.map +1 -0
- package/models/{operations/deletecontact.js → components/publicidentity.js} +17 -6
- package/models/components/publicidentity.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +0 -3
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -3
- package/models/errors/index.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +9 -51
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +5 -24
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +9 -51
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +4 -22
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.d.ts +2 -6
- package/models/operations/createcontact.d.ts.map +1 -1
- package/models/operations/createcontact.js +1 -3
- package/models/operations/createcontact.js.map +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +9 -51
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +3 -21
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +9 -51
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +3 -21
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +9 -51
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +3 -21
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +9 -51
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +3 -21
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/creatererank.d.ts +9 -51
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +3 -21
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +9 -51
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +3 -21
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +9 -51
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +3 -21
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +9 -51
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +3 -21
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +5 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +1 -0
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +5 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +1 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.d.ts +7 -7
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +25 -23
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/index.d.ts +0 -4
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -4
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/packages/orq-rc/examples/contactsCreate.example.ts +42 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/contactsCreate.ts +7 -14
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/conversationresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +1 -0
- package/packages/orq-rc/src/models/components/invokedeploymentrequest.ts +11 -0
- package/packages/orq-rc/src/models/components/partdoneevent.ts +1 -1
- package/packages/orq-rc/src/models/components/publiccontact.ts +3 -1
- package/packages/orq-rc/src/models/components/publicidentity.ts +69 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/errors/index.ts +0 -3
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +11 -78
- package/packages/orq-rc/src/models/operations/createcompletion.ts +11 -75
- package/packages/orq-rc/src/models/operations/createcontact.ts +3 -9
- package/packages/orq-rc/src/models/operations/createconversation.ts +1 -1
- package/packages/orq-rc/src/models/operations/createconversationresponse.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createembedding.ts +11 -75
- package/packages/orq-rc/src/models/operations/createeval.ts +14 -14
- package/packages/orq-rc/src/models/operations/createidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/createimage.ts +11 -75
- package/packages/orq-rc/src/models/operations/createimageedit.ts +11 -75
- package/packages/orq-rc/src/models/operations/createimagevariation.ts +11 -77
- package/packages/orq-rc/src/models/operations/creatererank.ts +11 -75
- package/packages/orq-rc/src/models/operations/createspeech.ts +11 -75
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/createtranscription.ts +11 -75
- package/packages/orq-rc/src/models/operations/createtranslation.ts +11 -75
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +6 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +6 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +1 -1
- package/packages/orq-rc/src/models/operations/filelist.ts +1 -1
- package/packages/orq-rc/src/models/operations/fileupload.ts +1 -1
- package/packages/orq-rc/src/models/operations/generateconversationname.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +35 -39
- package/packages/orq-rc/src/models/operations/index.ts +0 -4
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrieveidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateconversation.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +14 -14
- package/packages/orq-rc/src/models/operations/updateidentity.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/contacts.ts +3 -85
- package/sdk/contacts.d.ts +3 -41
- package/sdk/contacts.d.ts.map +1 -1
- package/sdk/contacts.js +2 -52
- package/sdk/contacts.js.map +1 -1
- package/src/funcs/contactsCreate.ts +7 -14
- package/src/lib/config.ts +2 -2
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/invokedeploymentrequest.ts +11 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/publiccontact.ts +3 -1
- package/src/models/components/publicidentity.ts +69 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +0 -3
- package/src/models/operations/createchatcompletion.ts +11 -78
- package/src/models/operations/createcompletion.ts +11 -75
- package/src/models/operations/createcontact.ts +3 -9
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +11 -75
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +11 -75
- package/src/models/operations/createimageedit.ts +11 -75
- package/src/models/operations/createimagevariation.ts +11 -77
- package/src/models/operations/creatererank.ts +11 -75
- package/src/models/operations/createspeech.ts +11 -75
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +11 -75
- package/src/models/operations/createtranslation.ts +11 -75
- package/src/models/operations/deploymentgetconfig.ts +6 -0
- package/src/models/operations/deploymentstream.ts +6 -0
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +35 -39
- package/src/models/operations/index.ts +0 -4
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/contacts.ts +3 -85
- package/examples/feedbackCreate.example.ts +0 -32
- package/funcs/contactsDelete.d.ts +0 -20
- package/funcs/contactsDelete.d.ts.map +0 -1
- package/funcs/contactsDelete.js +0 -126
- package/funcs/contactsDelete.js.map +0 -1
- package/funcs/contactsList.d.ts +0 -19
- package/funcs/contactsList.d.ts.map +0 -1
- package/funcs/contactsList.js +0 -124
- package/funcs/contactsList.js.map +0 -1
- package/funcs/contactsRetrieve.d.ts +0 -20
- package/funcs/contactsRetrieve.d.ts.map +0 -1
- package/funcs/contactsRetrieve.js +0 -125
- package/funcs/contactsRetrieve.js.map +0 -1
- package/funcs/contactsUpdate.d.ts +0 -20
- package/funcs/contactsUpdate.d.ts.map +0 -1
- package/funcs/contactsUpdate.js +0 -126
- package/funcs/contactsUpdate.js.map +0 -1
- package/models/errors/deletecontact.d.ts +0 -30
- package/models/errors/deletecontact.d.ts.map +0 -1
- package/models/errors/deletecontact.js +0 -71
- package/models/errors/deletecontact.js.map +0 -1
- package/models/errors/retrievecontact.d.ts +0 -30
- package/models/errors/retrievecontact.d.ts.map +0 -1
- package/models/errors/retrievecontact.js +0 -71
- package/models/errors/retrievecontact.js.map +0 -1
- package/models/errors/updatecontact.d.ts +0 -26
- package/models/errors/updatecontact.d.ts.map +0 -1
- package/models/errors/updatecontact.js +0 -68
- package/models/errors/updatecontact.js.map +0 -1
- package/models/operations/deletecontact.d.ts +0 -15
- package/models/operations/deletecontact.d.ts.map +0 -1
- package/models/operations/deletecontact.js.map +0 -1
- package/models/operations/listcontacts.d.ts +0 -138
- package/models/operations/listcontacts.d.ts.map +0 -1
- package/models/operations/listcontacts.js +0 -136
- package/models/operations/listcontacts.js.map +0 -1
- package/models/operations/retrievecontact.d.ts +0 -63
- package/models/operations/retrievecontact.d.ts.map +0 -1
- package/models/operations/retrievecontact.js +0 -75
- package/models/operations/retrievecontact.js.map +0 -1
- package/models/operations/updatecontact.d.ts +0 -108
- package/models/operations/updatecontact.d.ts.map +0 -1
- package/models/operations/updatecontact.js +0 -97
- package/models/operations/updatecontact.js.map +0 -1
- package/packages/orq-rc/examples/feedbackCreate.example.ts +0 -32
- package/packages/orq-rc/src/funcs/contactsDelete.ts +0 -178
- package/packages/orq-rc/src/funcs/contactsList.ts +0 -172
- package/packages/orq-rc/src/funcs/contactsRetrieve.ts +0 -177
- package/packages/orq-rc/src/funcs/contactsUpdate.ts +0 -178
- package/packages/orq-rc/src/models/errors/deletecontact.ts +0 -62
- package/packages/orq-rc/src/models/errors/retrievecontact.ts +0 -62
- package/packages/orq-rc/src/models/errors/updatecontact.ts +0 -54
- package/packages/orq-rc/src/models/operations/deletecontact.ts +0 -34
- package/packages/orq-rc/src/models/operations/listcontacts.ts +0 -274
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +0 -117
- package/packages/orq-rc/src/models/operations/updatecontact.ts +0 -188
- package/src/funcs/contactsDelete.ts +0 -178
- package/src/funcs/contactsList.ts +0 -172
- package/src/funcs/contactsRetrieve.ts +0 -177
- package/src/funcs/contactsUpdate.ts +0 -178
- package/src/models/errors/deletecontact.ts +0 -62
- package/src/models/errors/retrievecontact.ts +0 -62
- package/src/models/errors/updatecontact.ts +0 -54
- package/src/models/operations/deletecontact.ts +0 -34
- package/src/models/operations/listcontacts.ts +0 -274
- package/src/models/operations/retrievecontact.ts +0 -117
- package/src/models/operations/updatecontact.ts +0 -188
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.ListContactsResponseBody$inboundSchema = exports.Data$inboundSchema = exports.ListContactsMetrics$inboundSchema = exports.ObjectT$inboundSchema = exports.ListContactsRequest$outboundSchema = exports.ListContactsQueryParamFilterBy$outboundSchema = exports.ObjectT = void 0;
|
|
40
|
-
exports.listContactsQueryParamFilterByToJSON = listContactsQueryParamFilterByToJSON;
|
|
41
|
-
exports.listContactsRequestToJSON = listContactsRequestToJSON;
|
|
42
|
-
exports.listContactsMetricsFromJSON = listContactsMetricsFromJSON;
|
|
43
|
-
exports.dataFromJSON = dataFromJSON;
|
|
44
|
-
exports.listContactsResponseBodyFromJSON = listContactsResponseBodyFromJSON;
|
|
45
|
-
const z = __importStar(require("zod/v3"));
|
|
46
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
47
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
48
|
-
exports.ObjectT = {
|
|
49
|
-
List: "list",
|
|
50
|
-
};
|
|
51
|
-
/** @internal */
|
|
52
|
-
exports.ListContactsQueryParamFilterBy$outboundSchema = z.object({
|
|
53
|
-
tags: z.array(z.string()).optional(),
|
|
54
|
-
});
|
|
55
|
-
function listContactsQueryParamFilterByToJSON(listContactsQueryParamFilterBy) {
|
|
56
|
-
return JSON.stringify(exports.ListContactsQueryParamFilterBy$outboundSchema.parse(listContactsQueryParamFilterBy));
|
|
57
|
-
}
|
|
58
|
-
/** @internal */
|
|
59
|
-
exports.ListContactsRequest$outboundSchema = z.object({
|
|
60
|
-
limit: z.number().default(10),
|
|
61
|
-
startingAfter: z.string().optional(),
|
|
62
|
-
endingBefore: z.string().optional(),
|
|
63
|
-
search: z.string().optional(),
|
|
64
|
-
filterBy: z.lazy(() => exports.ListContactsQueryParamFilterBy$outboundSchema)
|
|
65
|
-
.optional(),
|
|
66
|
-
includeMetrics: z.nullable(z.boolean().default(false)),
|
|
67
|
-
}).transform((v) => {
|
|
68
|
-
return (0, primitives_js_1.remap)(v, {
|
|
69
|
-
startingAfter: "starting_after",
|
|
70
|
-
endingBefore: "ending_before",
|
|
71
|
-
filterBy: "filter_by",
|
|
72
|
-
includeMetrics: "include_metrics",
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
function listContactsRequestToJSON(listContactsRequest) {
|
|
76
|
-
return JSON.stringify(exports.ListContactsRequest$outboundSchema.parse(listContactsRequest));
|
|
77
|
-
}
|
|
78
|
-
/** @internal */
|
|
79
|
-
exports.ObjectT$inboundSchema = z
|
|
80
|
-
.nativeEnum(exports.ObjectT);
|
|
81
|
-
/** @internal */
|
|
82
|
-
exports.ListContactsMetrics$inboundSchema = z.object({
|
|
83
|
-
total_cost: z.number(),
|
|
84
|
-
total_tokens: z.number(),
|
|
85
|
-
total_requests: z.number(),
|
|
86
|
-
error_rate: z.number(),
|
|
87
|
-
}).transform((v) => {
|
|
88
|
-
return (0, primitives_js_1.remap)(v, {
|
|
89
|
-
"total_cost": "totalCost",
|
|
90
|
-
"total_tokens": "totalTokens",
|
|
91
|
-
"total_requests": "totalRequests",
|
|
92
|
-
"error_rate": "errorRate",
|
|
93
|
-
});
|
|
94
|
-
});
|
|
95
|
-
function listContactsMetricsFromJSON(jsonString) {
|
|
96
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListContactsMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContactsMetrics' from JSON`);
|
|
97
|
-
}
|
|
98
|
-
/** @internal */
|
|
99
|
-
exports.Data$inboundSchema = z
|
|
100
|
-
.object({
|
|
101
|
-
_id: z.string(),
|
|
102
|
-
external_id: z.string(),
|
|
103
|
-
display_name: z.nullable(z.string()).optional(),
|
|
104
|
-
email: z.nullable(z.string()).optional(),
|
|
105
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
106
|
-
tags: z.array(z.string()).optional(),
|
|
107
|
-
metadata: z.record(z.any()).optional(),
|
|
108
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
109
|
-
.optional(),
|
|
110
|
-
updated: z.string().datetime({ offset: true }).default("2026-01-23T11:14:01.166Z").transform(v => new Date(v)),
|
|
111
|
-
metrics: z.lazy(() => exports.ListContactsMetrics$inboundSchema),
|
|
112
|
-
}).transform((v) => {
|
|
113
|
-
return (0, primitives_js_1.remap)(v, {
|
|
114
|
-
"_id": "id",
|
|
115
|
-
"external_id": "externalId",
|
|
116
|
-
"display_name": "displayName",
|
|
117
|
-
"avatar_url": "avatarUrl",
|
|
118
|
-
});
|
|
119
|
-
});
|
|
120
|
-
function dataFromJSON(jsonString) {
|
|
121
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data' from JSON`);
|
|
122
|
-
}
|
|
123
|
-
/** @internal */
|
|
124
|
-
exports.ListContactsResponseBody$inboundSchema = z.object({
|
|
125
|
-
object: exports.ObjectT$inboundSchema,
|
|
126
|
-
data: z.array(z.lazy(() => exports.Data$inboundSchema)),
|
|
127
|
-
has_more: z.boolean(),
|
|
128
|
-
}).transform((v) => {
|
|
129
|
-
return (0, primitives_js_1.remap)(v, {
|
|
130
|
-
"has_more": "hasMore",
|
|
131
|
-
});
|
|
132
|
-
});
|
|
133
|
-
function listContactsResponseBodyFromJSON(jsonString) {
|
|
134
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListContactsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListContactsResponseBody' from JSON`);
|
|
135
|
-
}
|
|
136
|
-
//# sourceMappingURL=listcontacts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listcontacts.js","sourceRoot":"","sources":["../../src/models/operations/listcontacts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkIH,oFAQC;AAkCD,8DAMC;AAyBD,kEAQC;AA2BD,oCAQC;AAiBD,4EAQC;AA7QD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAuCpC,QAAA,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;CACJ,CAAC;AA4EX,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAA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AAE;CACtB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type RetrieveContactRequest = {
|
|
5
|
-
/**
|
|
6
|
-
* Unique contact id or external id
|
|
7
|
-
*/
|
|
8
|
-
id: string;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Contact details
|
|
12
|
-
*/
|
|
13
|
-
export type RetrieveContactResponseBody = {
|
|
14
|
-
/**
|
|
15
|
-
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
16
|
-
*/
|
|
17
|
-
id: string;
|
|
18
|
-
/**
|
|
19
|
-
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
20
|
-
*/
|
|
21
|
-
externalId: string;
|
|
22
|
-
/**
|
|
23
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
24
|
-
*/
|
|
25
|
-
displayName?: string | null | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Email address of the contact user
|
|
28
|
-
*/
|
|
29
|
-
email?: string | null | undefined;
|
|
30
|
-
/**
|
|
31
|
-
* URL linking to the contact user's avatar image
|
|
32
|
-
*/
|
|
33
|
-
avatarUrl?: string | null | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
36
|
-
*/
|
|
37
|
-
tags?: Array<string> | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
40
|
-
*/
|
|
41
|
-
metadata?: {
|
|
42
|
-
[k: string]: any;
|
|
43
|
-
} | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* The date and time the resource was created
|
|
46
|
-
*/
|
|
47
|
-
created?: Date | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* The date and time the resource was last updated
|
|
50
|
-
*/
|
|
51
|
-
updated: Date;
|
|
52
|
-
};
|
|
53
|
-
/** @internal */
|
|
54
|
-
export type RetrieveContactRequest$Outbound = {
|
|
55
|
-
id: string;
|
|
56
|
-
};
|
|
57
|
-
/** @internal */
|
|
58
|
-
export declare const RetrieveContactRequest$outboundSchema: z.ZodType<RetrieveContactRequest$Outbound, z.ZodTypeDef, RetrieveContactRequest>;
|
|
59
|
-
export declare function retrieveContactRequestToJSON(retrieveContactRequest: RetrieveContactRequest): string;
|
|
60
|
-
/** @internal */
|
|
61
|
-
export declare const RetrieveContactResponseBody$inboundSchema: z.ZodType<RetrieveContactResponseBody, z.ZodTypeDef, unknown>;
|
|
62
|
-
export declare function retrieveContactResponseBodyFromJSON(jsonString: string): SafeParseResult<RetrieveContactResponseBody, SDKValidationError>;
|
|
63
|
-
//# sourceMappingURL=retrievecontact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrievecontact.d.ts","sourceRoot":"","sources":["../../src/models/operations/retrievecontact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM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AkB,CAAC,CAMlE"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.RetrieveContactResponseBody$inboundSchema = exports.RetrieveContactRequest$outboundSchema = void 0;
|
|
40
|
-
exports.retrieveContactRequestToJSON = retrieveContactRequestToJSON;
|
|
41
|
-
exports.retrieveContactResponseBodyFromJSON = retrieveContactResponseBodyFromJSON;
|
|
42
|
-
const z = __importStar(require("zod/v3"));
|
|
43
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
45
|
-
/** @internal */
|
|
46
|
-
exports.RetrieveContactRequest$outboundSchema = z.object({
|
|
47
|
-
id: z.string(),
|
|
48
|
-
});
|
|
49
|
-
function retrieveContactRequestToJSON(retrieveContactRequest) {
|
|
50
|
-
return JSON.stringify(exports.RetrieveContactRequest$outboundSchema.parse(retrieveContactRequest));
|
|
51
|
-
}
|
|
52
|
-
/** @internal */
|
|
53
|
-
exports.RetrieveContactResponseBody$inboundSchema = z.object({
|
|
54
|
-
_id: z.string(),
|
|
55
|
-
external_id: z.string(),
|
|
56
|
-
display_name: z.nullable(z.string()).optional(),
|
|
57
|
-
email: z.nullable(z.string()).optional(),
|
|
58
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
59
|
-
tags: z.array(z.string()).optional(),
|
|
60
|
-
metadata: z.record(z.any()).optional(),
|
|
61
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
62
|
-
.optional(),
|
|
63
|
-
updated: z.string().datetime({ offset: true }).default("2026-01-23T11:14:01.166Z").transform(v => new Date(v)),
|
|
64
|
-
}).transform((v) => {
|
|
65
|
-
return (0, primitives_js_1.remap)(v, {
|
|
66
|
-
"_id": "id",
|
|
67
|
-
"external_id": "externalId",
|
|
68
|
-
"display_name": "displayName",
|
|
69
|
-
"avatar_url": "avatarUrl",
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
function retrieveContactResponseBodyFromJSON(jsonString) {
|
|
73
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RetrieveContactResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RetrieveContactResponseBody' from JSON`);
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=retrievecontact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrievecontact.js","sourceRoot":"","sources":["../../src/models/operations/retrievecontact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEH,oEAMC;AA6BD,kFAQC;AAhHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA0DjD,gBAAgB;AACH,QAAA,qCAAqC,GAI9C,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;CACf,CAAC,CAAC;AAEH,SAAgB,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,6CAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC7C,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;SACvE,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CACpD,0BAA0B,CAC3B,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,YAAY;QAC3B,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
/**
|
|
5
|
-
* Contact fields to update
|
|
6
|
-
*/
|
|
7
|
-
export type UpdateContactRequestBody = {
|
|
8
|
-
/**
|
|
9
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
10
|
-
*/
|
|
11
|
-
displayName?: string | null | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* Email address of the contact user
|
|
14
|
-
*/
|
|
15
|
-
email?: string | null | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* URL linking to the contact user's avatar image
|
|
18
|
-
*/
|
|
19
|
-
avatarUrl?: string | null | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
22
|
-
*/
|
|
23
|
-
tags?: Array<string> | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
26
|
-
*/
|
|
27
|
-
metadata?: {
|
|
28
|
-
[k: string]: any;
|
|
29
|
-
} | undefined;
|
|
30
|
-
};
|
|
31
|
-
export type UpdateContactRequest = {
|
|
32
|
-
/**
|
|
33
|
-
* Unique contact id or external id
|
|
34
|
-
*/
|
|
35
|
-
id: string;
|
|
36
|
-
/**
|
|
37
|
-
* Contact fields to update
|
|
38
|
-
*/
|
|
39
|
-
requestBody?: UpdateContactRequestBody | undefined;
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Updated contact
|
|
43
|
-
*/
|
|
44
|
-
export type UpdateContactResponseBody = {
|
|
45
|
-
/**
|
|
46
|
-
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
47
|
-
*/
|
|
48
|
-
id: string;
|
|
49
|
-
/**
|
|
50
|
-
* Unique string value to identify the contact user in the customer's system. This should be the same ID you use in your system to reference this user.
|
|
51
|
-
*/
|
|
52
|
-
externalId: string;
|
|
53
|
-
/**
|
|
54
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
55
|
-
*/
|
|
56
|
-
displayName?: string | null | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Email address of the contact user
|
|
59
|
-
*/
|
|
60
|
-
email?: string | null | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* URL linking to the contact user's avatar image
|
|
63
|
-
*/
|
|
64
|
-
avatarUrl?: string | null | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
67
|
-
*/
|
|
68
|
-
tags?: Array<string> | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
71
|
-
*/
|
|
72
|
-
metadata?: {
|
|
73
|
-
[k: string]: any;
|
|
74
|
-
} | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* The date and time the resource was created
|
|
77
|
-
*/
|
|
78
|
-
created?: Date | undefined;
|
|
79
|
-
/**
|
|
80
|
-
* The date and time the resource was last updated
|
|
81
|
-
*/
|
|
82
|
-
updated: Date;
|
|
83
|
-
};
|
|
84
|
-
/** @internal */
|
|
85
|
-
export type UpdateContactRequestBody$Outbound = {
|
|
86
|
-
display_name?: string | null | undefined;
|
|
87
|
-
email?: string | null | undefined;
|
|
88
|
-
avatar_url?: string | null | undefined;
|
|
89
|
-
tags?: Array<string> | undefined;
|
|
90
|
-
metadata?: {
|
|
91
|
-
[k: string]: any;
|
|
92
|
-
} | undefined;
|
|
93
|
-
};
|
|
94
|
-
/** @internal */
|
|
95
|
-
export declare const UpdateContactRequestBody$outboundSchema: z.ZodType<UpdateContactRequestBody$Outbound, z.ZodTypeDef, UpdateContactRequestBody>;
|
|
96
|
-
export declare function updateContactRequestBodyToJSON(updateContactRequestBody: UpdateContactRequestBody): string;
|
|
97
|
-
/** @internal */
|
|
98
|
-
export type UpdateContactRequest$Outbound = {
|
|
99
|
-
id: string;
|
|
100
|
-
RequestBody?: UpdateContactRequestBody$Outbound | undefined;
|
|
101
|
-
};
|
|
102
|
-
/** @internal */
|
|
103
|
-
export declare const UpdateContactRequest$outboundSchema: z.ZodType<UpdateContactRequest$Outbound, z.ZodTypeDef, UpdateContactRequest>;
|
|
104
|
-
export declare function updateContactRequestToJSON(updateContactRequest: UpdateContactRequest): string;
|
|
105
|
-
/** @internal */
|
|
106
|
-
export declare const UpdateContactResponseBody$inboundSchema: z.ZodType<UpdateContactResponseBody, z.ZodTypeDef, unknown>;
|
|
107
|
-
export declare function updateContactResponseBodyFromJSON(jsonString: string): SafeParseResult<UpdateContactResponseBody, SDKValidationError>;
|
|
108
|
-
//# sourceMappingURL=updatecontact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updatecontact.d.ts","sourceRoot":"","sources":["../../src/models/operations/updatecontact.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,CAAC,EAAE,wBAAwB,GAAG,SAAS,CAAC;CACpD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAE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SAAS,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAQpB,CAAC;AAEH,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.UpdateContactResponseBody$inboundSchema = exports.UpdateContactRequest$outboundSchema = exports.UpdateContactRequestBody$outboundSchema = void 0;
|
|
40
|
-
exports.updateContactRequestBodyToJSON = updateContactRequestBodyToJSON;
|
|
41
|
-
exports.updateContactRequestToJSON = updateContactRequestToJSON;
|
|
42
|
-
exports.updateContactResponseBodyFromJSON = updateContactResponseBodyFromJSON;
|
|
43
|
-
const z = __importStar(require("zod/v3"));
|
|
44
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
45
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
46
|
-
/** @internal */
|
|
47
|
-
exports.UpdateContactRequestBody$outboundSchema = z.object({
|
|
48
|
-
displayName: z.nullable(z.string()).optional(),
|
|
49
|
-
email: z.nullable(z.string()).optional(),
|
|
50
|
-
avatarUrl: z.nullable(z.string()).optional(),
|
|
51
|
-
tags: z.array(z.string()).optional(),
|
|
52
|
-
metadata: z.record(z.any()).optional(),
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return (0, primitives_js_1.remap)(v, {
|
|
55
|
-
displayName: "display_name",
|
|
56
|
-
avatarUrl: "avatar_url",
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
function updateContactRequestBodyToJSON(updateContactRequestBody) {
|
|
60
|
-
return JSON.stringify(exports.UpdateContactRequestBody$outboundSchema.parse(updateContactRequestBody));
|
|
61
|
-
}
|
|
62
|
-
/** @internal */
|
|
63
|
-
exports.UpdateContactRequest$outboundSchema = z.object({
|
|
64
|
-
id: z.string(),
|
|
65
|
-
requestBody: z.lazy(() => exports.UpdateContactRequestBody$outboundSchema).optional(),
|
|
66
|
-
}).transform((v) => {
|
|
67
|
-
return (0, primitives_js_1.remap)(v, {
|
|
68
|
-
requestBody: "RequestBody",
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
function updateContactRequestToJSON(updateContactRequest) {
|
|
72
|
-
return JSON.stringify(exports.UpdateContactRequest$outboundSchema.parse(updateContactRequest));
|
|
73
|
-
}
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.UpdateContactResponseBody$inboundSchema = z.object({
|
|
76
|
-
_id: z.string(),
|
|
77
|
-
external_id: z.string(),
|
|
78
|
-
display_name: z.nullable(z.string()).optional(),
|
|
79
|
-
email: z.nullable(z.string()).optional(),
|
|
80
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
81
|
-
tags: z.array(z.string()).optional(),
|
|
82
|
-
metadata: z.record(z.any()).optional(),
|
|
83
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
84
|
-
.optional(),
|
|
85
|
-
updated: z.string().datetime({ offset: true }).default("2026-01-23T11:14:01.166Z").transform(v => new Date(v)),
|
|
86
|
-
}).transform((v) => {
|
|
87
|
-
return (0, primitives_js_1.remap)(v, {
|
|
88
|
-
"_id": "id",
|
|
89
|
-
"external_id": "externalId",
|
|
90
|
-
"display_name": "displayName",
|
|
91
|
-
"avatar_url": "avatarUrl",
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
function updateContactResponseBodyFromJSON(jsonString) {
|
|
95
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateContactResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateContactResponseBody' from JSON`);
|
|
96
|
-
}
|
|
97
|
-
//# sourceMappingURL=updatecontact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updatecontact.js","sourceRoot":"","sources":["../../src/models/operations/updatecontact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkHH,wEAMC;AAsBD,gEAMC;AA6BD,8EAQC;AAvLD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA4FjD,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAQD,gBAAgB;AACH,QAAA,mCAAmC,GAI5C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C,CAAC,CAAC;SACvE,QAAQ,EAAE;IACb,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CACpD,0BAA0B,CAC3B,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;CAC9B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,KAAK,EAAE,IAAI;QACX,aAAa,EAAE,YAAY;QAC3B,cAAc,EAAE,aAAa;QAC7B,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import dotenv from "dotenv";
|
|
6
|
-
dotenv.config();
|
|
7
|
-
/**
|
|
8
|
-
* Example usage of the @orq-ai/node SDK
|
|
9
|
-
*
|
|
10
|
-
* To run this example from the examples directory:
|
|
11
|
-
* npm run build && npx tsx feedbackCreate.example.ts
|
|
12
|
-
*/
|
|
13
|
-
|
|
14
|
-
import { Orq } from "@orq-ai/node";
|
|
15
|
-
|
|
16
|
-
const orq = new Orq({
|
|
17
|
-
apiKey: process.env["ORQ_API_KEY"] ?? "",
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
async function main() {
|
|
21
|
-
const result = await orq.feedback.create({
|
|
22
|
-
field: "rating",
|
|
23
|
-
value: [
|
|
24
|
-
"good",
|
|
25
|
-
],
|
|
26
|
-
traceId: "67HTZ65Z9W91HSF51CW68KK1QH",
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
console.log(result);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
main().catch(console.error);
|