@orq-ai/node 4.4.0-rc.25 → 4.4.0-rc.27
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 +27 -54
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -4
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -4
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +6 -6
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +6 -7
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/errors/index.d.ts +0 -4
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -4
- package/models/errors/index.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/index.d.ts +0 -7
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -7
- 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/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -8
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -4
- package/src/models/components/invokedeploymentrequest.ts +10 -17
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +0 -4
- package/src/models/operations/createcontact.ts +1 -1
- 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/createeval.ts +16 -16
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createtool.ts +6 -6
- 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/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/index.ts +0 -7
- 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/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 +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/sdk.ts +0 -12
- package/funcs/conversationsCreate.d.ts +0 -17
- package/funcs/conversationsCreate.d.ts.map +0 -1
- package/funcs/conversationsCreate.js +0 -114
- package/funcs/conversationsCreate.js.map +0 -1
- package/funcs/conversationsCreateConversationResponse.d.ts +0 -18
- package/funcs/conversationsCreateConversationResponse.d.ts.map +0 -1
- package/funcs/conversationsCreateConversationResponse.js +0 -132
- package/funcs/conversationsCreateConversationResponse.js.map +0 -1
- package/funcs/conversationsDelete.d.ts +0 -17
- package/funcs/conversationsDelete.d.ts.map +0 -1
- package/funcs/conversationsDelete.js +0 -127
- package/funcs/conversationsDelete.js.map +0 -1
- package/funcs/conversationsGenerateName.d.ts +0 -18
- package/funcs/conversationsGenerateName.d.ts.map +0 -1
- package/funcs/conversationsGenerateName.js +0 -128
- package/funcs/conversationsGenerateName.js.map +0 -1
- package/funcs/conversationsList.d.ts +0 -17
- package/funcs/conversationsList.d.ts.map +0 -1
- package/funcs/conversationsList.js +0 -126
- package/funcs/conversationsList.js.map +0 -1
- package/funcs/conversationsRetrieve.d.ts +0 -18
- package/funcs/conversationsRetrieve.d.ts.map +0 -1
- package/funcs/conversationsRetrieve.js +0 -127
- package/funcs/conversationsRetrieve.js.map +0 -1
- package/funcs/conversationsUpdate.d.ts +0 -18
- package/funcs/conversationsUpdate.d.ts.map +0 -1
- package/funcs/conversationsUpdate.js +0 -128
- package/funcs/conversationsUpdate.js.map +0 -1
- package/models/components/conversationresponse.d.ts +0 -74
- package/models/components/conversationresponse.d.ts.map +0 -1
- package/models/components/conversationresponse.js +0 -80
- package/models/components/conversationresponse.js.map +0 -1
- package/models/components/conversationwithmessagesresponse.d.ts +0 -79
- package/models/components/conversationwithmessagesresponse.d.ts.map +0 -1
- package/models/components/conversationwithmessagesresponse.js +0 -83
- package/models/components/conversationwithmessagesresponse.js.map +0 -1
- package/models/components/messageresponse.d.ts +0 -58
- package/models/components/messageresponse.d.ts.map +0 -1
- package/models/components/messageresponse.js +0 -89
- package/models/components/messageresponse.js.map +0 -1
- package/models/components/usermessagerequest.d.ts +0 -54
- package/models/components/usermessagerequest.d.ts.map +0 -1
- package/models/components/usermessagerequest.js +0 -79
- package/models/components/usermessagerequest.js.map +0 -1
- package/models/errors/deleteconversation.d.ts +0 -23
- package/models/errors/deleteconversation.d.ts.map +0 -1
- package/models/errors/deleteconversation.js +0 -68
- package/models/errors/deleteconversation.js.map +0 -1
- package/models/errors/generateconversationname.d.ts +0 -43
- package/models/errors/generateconversationname.d.ts.map +0 -1
- package/models/errors/generateconversationname.js +0 -94
- package/models/errors/generateconversationname.js.map +0 -1
- package/models/errors/retrieveconversation.d.ts +0 -23
- package/models/errors/retrieveconversation.d.ts.map +0 -1
- package/models/errors/retrieveconversation.js +0 -68
- package/models/errors/retrieveconversation.js.map +0 -1
- package/models/errors/updateconversation.d.ts +0 -23
- package/models/errors/updateconversation.d.ts.map +0 -1
- package/models/errors/updateconversation.js +0 -68
- package/models/errors/updateconversation.js.map +0 -1
- package/models/operations/createconversation.d.ts +0 -126
- package/models/operations/createconversation.d.ts.map +0 -1
- package/models/operations/createconversation.js +0 -101
- package/models/operations/createconversation.js.map +0 -1
- package/models/operations/createconversationresponse.d.ts +0 -209
- package/models/operations/createconversationresponse.d.ts.map +0 -1
- package/models/operations/createconversationresponse.js +0 -217
- package/models/operations/createconversationresponse.js.map +0 -1
- package/models/operations/deleteconversation.d.ts +0 -15
- package/models/operations/deleteconversation.d.ts.map +0 -1
- package/models/operations/deleteconversation.js +0 -54
- package/models/operations/deleteconversation.js.map +0 -1
- package/models/operations/generateconversationname.d.ts +0 -105
- package/models/operations/generateconversationname.d.ts.map +0 -1
- package/models/operations/generateconversationname.js +0 -103
- package/models/operations/generateconversationname.js.map +0 -1
- package/models/operations/listconversations.d.ts +0 -51
- package/models/operations/listconversations.d.ts.map +0 -1
- package/models/operations/listconversations.js +0 -74
- package/models/operations/listconversations.js.map +0 -1
- package/models/operations/retrieveconversation.d.ts +0 -15
- package/models/operations/retrieveconversation.d.ts.map +0 -1
- package/models/operations/retrieveconversation.js +0 -54
- package/models/operations/retrieveconversation.js.map +0 -1
- package/models/operations/updateconversation.d.ts +0 -131
- package/models/operations/updateconversation.d.ts.map +0 -1
- package/models/operations/updateconversation.js +0 -113
- package/models/operations/updateconversation.js.map +0 -1
- package/sdk/conversations.d.ts +0 -56
- package/sdk/conversations.d.ts.map +0 -1
- package/sdk/conversations.js +0 -82
- package/sdk/conversations.js.map +0 -1
- package/sdk/internal.d.ts +0 -13
- package/sdk/internal.d.ts.map +0 -1
- package/sdk/internal.js +0 -22
- package/sdk/internal.js.map +0 -1
- package/src/funcs/conversationsCreate.ts +0 -161
- package/src/funcs/conversationsCreateConversationResponse.ts +0 -186
- package/src/funcs/conversationsDelete.ts +0 -180
- package/src/funcs/conversationsGenerateName.ts +0 -194
- package/src/funcs/conversationsList.ts +0 -186
- package/src/funcs/conversationsRetrieve.ts +0 -181
- package/src/funcs/conversationsUpdate.ts +0 -184
- package/src/models/components/conversationresponse.ts +0 -132
- package/src/models/components/conversationwithmessagesresponse.ts +0 -149
- package/src/models/components/messageresponse.ts +0 -127
- package/src/models/components/usermessagerequest.ts +0 -136
- package/src/models/errors/deleteconversation.ts +0 -51
- package/src/models/errors/generateconversationname.ts +0 -99
- package/src/models/errors/retrieveconversation.ts +0 -51
- package/src/models/errors/updateconversation.ts +0 -51
- package/src/models/operations/createconversation.ts +0 -227
- package/src/models/operations/createconversationresponse.ts +0 -498
- package/src/models/operations/deleteconversation.ts +0 -39
- package/src/models/operations/generateconversationname.ts +0 -207
- package/src/models/operations/listconversations.ts +0 -104
- package/src/models/operations/retrieveconversation.ts +0 -41
- package/src/models/operations/updateconversation.ts +0 -252
- package/src/sdk/conversations.ts +0 -147
- package/src/sdk/internal.ts +0 -28
|
@@ -1,94 +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.GenerateConversationNameResponseBody$inboundSchema = exports.GenerateConversationNameConversationsResponseBody$inboundSchema = exports.GenerateConversationNameResponseBody = exports.GenerateConversationNameConversationsResponseBody = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
const orqerror_js_1 = require("./orqerror.js");
|
|
42
|
-
/**
|
|
43
|
-
* Conversation not found.
|
|
44
|
-
*/
|
|
45
|
-
class GenerateConversationNameConversationsResponseBody extends orqerror_js_1.OrqError {
|
|
46
|
-
constructor(err, httpMeta) {
|
|
47
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
48
|
-
super(message, httpMeta);
|
|
49
|
-
this.data$ = err;
|
|
50
|
-
this.name = "GenerateConversationNameConversationsResponseBody";
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.GenerateConversationNameConversationsResponseBody = GenerateConversationNameConversationsResponseBody;
|
|
54
|
-
/**
|
|
55
|
-
* Conversation already has a display name. This endpoint only generates names for conversations with empty display names.
|
|
56
|
-
*/
|
|
57
|
-
class GenerateConversationNameResponseBody extends orqerror_js_1.OrqError {
|
|
58
|
-
constructor(err, httpMeta) {
|
|
59
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
60
|
-
super(message, httpMeta);
|
|
61
|
-
this.data$ = err;
|
|
62
|
-
this.name = "GenerateConversationNameResponseBody";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.GenerateConversationNameResponseBody = GenerateConversationNameResponseBody;
|
|
66
|
-
/** @internal */
|
|
67
|
-
exports.GenerateConversationNameConversationsResponseBody$inboundSchema = z.object({
|
|
68
|
-
message: z.string(),
|
|
69
|
-
request$: z.instanceof(Request),
|
|
70
|
-
response$: z.instanceof(Response),
|
|
71
|
-
body$: z.string(),
|
|
72
|
-
})
|
|
73
|
-
.transform((v) => {
|
|
74
|
-
return new GenerateConversationNameConversationsResponseBody(v, {
|
|
75
|
-
request: v.request$,
|
|
76
|
-
response: v.response$,
|
|
77
|
-
body: v.body$,
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
/** @internal */
|
|
81
|
-
exports.GenerateConversationNameResponseBody$inboundSchema = z.object({
|
|
82
|
-
message: z.string(),
|
|
83
|
-
request$: z.instanceof(Request),
|
|
84
|
-
response$: z.instanceof(Response),
|
|
85
|
-
body$: z.string(),
|
|
86
|
-
})
|
|
87
|
-
.transform((v) => {
|
|
88
|
-
return new GenerateConversationNameResponseBody(v, {
|
|
89
|
-
request: v.request$,
|
|
90
|
-
response: v.response$,
|
|
91
|
-
body: v.body$,
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=generateconversationname.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generateconversationname.js","sourceRoot":"","sources":["../../src/models/errors/generateconversationname.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,+CAAyC;AASzC;;GAEG;AACH,MAAa,iDACX,SAAQ,sBAAQ;IAKhB,YACE,GAA0D,EAC1D,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,IAAI,GAAG,mDAAmD,CAAC;IAClE,CAAC;CACF;AAhBD,8GAgBC;AASD;;GAEG;AACH,MAAa,oCAAqC,SAAQ,sBAAQ;IAIhE,YACE,GAA6C,EAC7C,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,IAAI,GAAG,sCAAsC,CAAC;IACrD,CAAC;CACF;AAdD,oFAcC;AAED,gBAAgB;AACH,QAAA,+DAA+D,GAKtE,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,iDAAiD,CAAC,CAAC,EAAE;QAC9D,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEP,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,oCAAoC,CAAC,CAAC,EAAE;QACjD,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OrqError } from "./orqerror.js";
|
|
3
|
-
/**
|
|
4
|
-
* Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to access it.
|
|
5
|
-
*/
|
|
6
|
-
export type RetrieveConversationResponseBodyData = {
|
|
7
|
-
message: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to access it.
|
|
11
|
-
*/
|
|
12
|
-
export declare class RetrieveConversationResponseBody extends OrqError {
|
|
13
|
-
/** The original data that was passed to this error instance. */
|
|
14
|
-
data$: RetrieveConversationResponseBodyData;
|
|
15
|
-
constructor(err: RetrieveConversationResponseBodyData, httpMeta: {
|
|
16
|
-
response: Response;
|
|
17
|
-
request: Request;
|
|
18
|
-
body: string;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const RetrieveConversationResponseBody$inboundSchema: z.ZodType<RetrieveConversationResponseBody, z.ZodTypeDef, unknown>;
|
|
23
|
-
//# sourceMappingURL=retrieveconversation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieveconversation.d.ts","sourceRoot":"","sources":["../../src/models/errors/retrieveconversation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG;IACjD,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,qBAAa,gCAAiC,SAAQ,QAAQ;IAC5D,gEAAgE;IAChE,KAAK,EAAE,oCAAoC,CAAC;gBAG1C,GAAG,EAAE,oCAAoC,EACzC,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAQnE;AAED,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,gCAAgC,EAChC,CAAC,CAAC,UAAU,EACZ,OAAO,CAaL,CAAC"}
|
|
@@ -1,68 +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.RetrieveConversationResponseBody$inboundSchema = exports.RetrieveConversationResponseBody = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
const orqerror_js_1 = require("./orqerror.js");
|
|
42
|
-
/**
|
|
43
|
-
* Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to access it.
|
|
44
|
-
*/
|
|
45
|
-
class RetrieveConversationResponseBody extends orqerror_js_1.OrqError {
|
|
46
|
-
constructor(err, httpMeta) {
|
|
47
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
48
|
-
super(message, httpMeta);
|
|
49
|
-
this.data$ = err;
|
|
50
|
-
this.name = "RetrieveConversationResponseBody";
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.RetrieveConversationResponseBody = RetrieveConversationResponseBody;
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.RetrieveConversationResponseBody$inboundSchema = z.object({
|
|
56
|
-
message: z.string(),
|
|
57
|
-
request$: z.instanceof(Request),
|
|
58
|
-
response$: z.instanceof(Response),
|
|
59
|
-
body$: z.string(),
|
|
60
|
-
})
|
|
61
|
-
.transform((v) => {
|
|
62
|
-
return new RetrieveConversationResponseBody(v, {
|
|
63
|
-
request: v.request$,
|
|
64
|
-
response: v.response$,
|
|
65
|
-
body: v.body$,
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=retrieveconversation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retrieveconversation.js","sourceRoot":"","sources":["../../src/models/errors/retrieveconversation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,+CAAyC;AASzC;;GAEG;AACH,MAAa,gCAAiC,SAAQ,sBAAQ;IAI5D,YACE,GAAyC,EACzC,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,IAAI,GAAG,kCAAkC,CAAC;IACjD,CAAC;CACF;AAdD,4EAcC;AAED,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,gCAAgC,CAAC,CAAC,EAAE;QAC7C,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OrqError } from "./orqerror.js";
|
|
3
|
-
/**
|
|
4
|
-
* Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to modify it.
|
|
5
|
-
*/
|
|
6
|
-
export type UpdateConversationResponseBodyData = {
|
|
7
|
-
message: string;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to modify it.
|
|
11
|
-
*/
|
|
12
|
-
export declare class UpdateConversationResponseBody extends OrqError {
|
|
13
|
-
/** The original data that was passed to this error instance. */
|
|
14
|
-
data$: UpdateConversationResponseBodyData;
|
|
15
|
-
constructor(err: UpdateConversationResponseBodyData, httpMeta: {
|
|
16
|
-
response: Response;
|
|
17
|
-
request: Request;
|
|
18
|
-
body: string;
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const UpdateConversationResponseBody$inboundSchema: z.ZodType<UpdateConversationResponseBody, z.ZodTypeDef, unknown>;
|
|
23
|
-
//# sourceMappingURL=updateconversation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateconversation.d.ts","sourceRoot":"","sources":["../../src/models/errors/updateconversation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAAG;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,qBAAa,8BAA+B,SAAQ,QAAQ;IAC1D,gEAAgE;IAChE,KAAK,EAAE,kCAAkC,CAAC;gBAGxC,GAAG,EAAE,kCAAkC,EACvC,QAAQ,EAAE;QAAE,QAAQ,EAAE,QAAQ,CAAC;QAAC,OAAO,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE;CAQnE;AAED,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAaL,CAAC"}
|
|
@@ -1,68 +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.UpdateConversationResponseBody$inboundSchema = exports.UpdateConversationResponseBody = void 0;
|
|
40
|
-
const z = __importStar(require("zod/v3"));
|
|
41
|
-
const orqerror_js_1 = require("./orqerror.js");
|
|
42
|
-
/**
|
|
43
|
-
* Conversation not found. The specified conversation ID does not exist in the workspace or you do not have permission to modify it.
|
|
44
|
-
*/
|
|
45
|
-
class UpdateConversationResponseBody extends orqerror_js_1.OrqError {
|
|
46
|
-
constructor(err, httpMeta) {
|
|
47
|
-
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
48
|
-
super(message, httpMeta);
|
|
49
|
-
this.data$ = err;
|
|
50
|
-
this.name = "UpdateConversationResponseBody";
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
exports.UpdateConversationResponseBody = UpdateConversationResponseBody;
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.UpdateConversationResponseBody$inboundSchema = z.object({
|
|
56
|
-
message: z.string(),
|
|
57
|
-
request$: z.instanceof(Request),
|
|
58
|
-
response$: z.instanceof(Response),
|
|
59
|
-
body$: z.string(),
|
|
60
|
-
})
|
|
61
|
-
.transform((v) => {
|
|
62
|
-
return new UpdateConversationResponseBody(v, {
|
|
63
|
-
request: v.request$,
|
|
64
|
-
response: v.response$,
|
|
65
|
-
body: v.body$,
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
//# sourceMappingURL=updateconversation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateconversation.js","sourceRoot":"","sources":["../../src/models/errors/updateconversation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,+CAAyC;AASzC;;GAEG;AACH,MAAa,8BAA+B,SAAQ,sBAAQ;IAI1D,YACE,GAAuC,EACvC,QAAgE;QAEhE,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,IAAI,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5E,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QAEjB,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAC;IAC/C,CAAC;CACF;AAdD,wEAcC;AAED,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,QAAQ,EAAE,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,OAAO,IAAI,8BAA8B,CAAC,CAAC,EAAE;QAC3C,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
/**
|
|
6
|
-
* Optional metadata to attach to the conversation.
|
|
7
|
-
*/
|
|
8
|
-
export type CreateConversationMetadata = {
|
|
9
|
-
/**
|
|
10
|
-
* Set to `true` to indicate the title is being auto-generated.
|
|
11
|
-
*/
|
|
12
|
-
generatingTitle?: boolean | undefined;
|
|
13
|
-
/**
|
|
14
|
-
* Parent entity identifier to associate the conversation with. Omit or set to `null` for standalone conversations.
|
|
15
|
-
*/
|
|
16
|
-
entityId?: string | null | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Model identifier in `provider/model_id` format for standalone conversations. Omit or set to `null` for entity-bound conversations.
|
|
19
|
-
*/
|
|
20
|
-
model?: string | null | undefined;
|
|
21
|
-
};
|
|
22
|
-
export type CreateConversationRequestBody = {
|
|
23
|
-
/**
|
|
24
|
-
* Human-readable name for the conversation. Defaults to "Untitled" if omitted.
|
|
25
|
-
*/
|
|
26
|
-
displayName?: string | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Project identifier to associate the conversation with.
|
|
29
|
-
*/
|
|
30
|
-
projectId: string;
|
|
31
|
-
/**
|
|
32
|
-
* Optional metadata to attach to the conversation.
|
|
33
|
-
*/
|
|
34
|
-
metadata?: CreateConversationMetadata | undefined;
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Resource type discriminator.
|
|
38
|
-
*/
|
|
39
|
-
export declare const CreateConversationKind: {
|
|
40
|
-
readonly Conversation: "conversation";
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Resource type discriminator.
|
|
44
|
-
*/
|
|
45
|
-
export type CreateConversationKind = ClosedEnum<typeof CreateConversationKind>;
|
|
46
|
-
/**
|
|
47
|
-
* Additional conversation metadata.
|
|
48
|
-
*/
|
|
49
|
-
export type CreateConversationConversationsMetadata = {
|
|
50
|
-
/**
|
|
51
|
-
* When `true`, indicates the conversation title is being auto-generated.
|
|
52
|
-
*/
|
|
53
|
-
generatingTitle?: boolean | undefined;
|
|
54
|
-
/**
|
|
55
|
-
* Parent entity identifier (e.g., agent or deployment). Set to `null` for standalone conversations.
|
|
56
|
-
*/
|
|
57
|
-
entityId?: string | null | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* Model identifier for standalone conversations in `provider/model_id` format. Set to `null` for entity-bound conversations.
|
|
60
|
-
*/
|
|
61
|
-
model?: string | null | undefined;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* Conversation successfully created. Returns the complete conversation object including the generated ID and timestamps.
|
|
65
|
-
*/
|
|
66
|
-
export type CreateConversationResponseBody = {
|
|
67
|
-
/**
|
|
68
|
-
* Unique conversation identifier with `conv_` prefix.
|
|
69
|
-
*/
|
|
70
|
-
id: string;
|
|
71
|
-
/**
|
|
72
|
-
* Resource type discriminator.
|
|
73
|
-
*/
|
|
74
|
-
kind: CreateConversationKind;
|
|
75
|
-
/**
|
|
76
|
-
* Human-readable name for the conversation. Maximum 100 characters.
|
|
77
|
-
*/
|
|
78
|
-
displayName: string;
|
|
79
|
-
/**
|
|
80
|
-
* Unix timestamp in milliseconds when the conversation was created.
|
|
81
|
-
*/
|
|
82
|
-
createdAt: number;
|
|
83
|
-
/**
|
|
84
|
-
* Unix timestamp in milliseconds when the conversation was last modified.
|
|
85
|
-
*/
|
|
86
|
-
updatedAt: number;
|
|
87
|
-
/**
|
|
88
|
-
* Identifier of the user or system that created the conversation.
|
|
89
|
-
*/
|
|
90
|
-
createdById?: string | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* Identifier of the user or system that last modified the conversation.
|
|
93
|
-
*/
|
|
94
|
-
updatedById?: string | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* Additional conversation metadata.
|
|
97
|
-
*/
|
|
98
|
-
metadata?: CreateConversationConversationsMetadata | undefined;
|
|
99
|
-
};
|
|
100
|
-
/** @internal */
|
|
101
|
-
export type CreateConversationMetadata$Outbound = {
|
|
102
|
-
generatingTitle?: boolean | undefined;
|
|
103
|
-
entityId?: string | null | undefined;
|
|
104
|
-
model?: string | null | undefined;
|
|
105
|
-
};
|
|
106
|
-
/** @internal */
|
|
107
|
-
export declare const CreateConversationMetadata$outboundSchema: z.ZodType<CreateConversationMetadata$Outbound, z.ZodTypeDef, CreateConversationMetadata>;
|
|
108
|
-
export declare function createConversationMetadataToJSON(createConversationMetadata: CreateConversationMetadata): string;
|
|
109
|
-
/** @internal */
|
|
110
|
-
export type CreateConversationRequestBody$Outbound = {
|
|
111
|
-
displayName: string;
|
|
112
|
-
projectId: string;
|
|
113
|
-
metadata?: CreateConversationMetadata$Outbound | undefined;
|
|
114
|
-
};
|
|
115
|
-
/** @internal */
|
|
116
|
-
export declare const CreateConversationRequestBody$outboundSchema: z.ZodType<CreateConversationRequestBody$Outbound, z.ZodTypeDef, CreateConversationRequestBody>;
|
|
117
|
-
export declare function createConversationRequestBodyToJSON(createConversationRequestBody: CreateConversationRequestBody): string;
|
|
118
|
-
/** @internal */
|
|
119
|
-
export declare const CreateConversationKind$inboundSchema: z.ZodNativeEnum<typeof CreateConversationKind>;
|
|
120
|
-
/** @internal */
|
|
121
|
-
export declare const CreateConversationConversationsMetadata$inboundSchema: z.ZodType<CreateConversationConversationsMetadata, z.ZodTypeDef, unknown>;
|
|
122
|
-
export declare function createConversationConversationsMetadataFromJSON(jsonString: string): SafeParseResult<CreateConversationConversationsMetadata, SDKValidationError>;
|
|
123
|
-
/** @internal */
|
|
124
|
-
export declare const CreateConversationResponseBody$inboundSchema: z.ZodType<CreateConversationResponseBody, z.ZodTypeDef, unknown>;
|
|
125
|
-
export declare function createConversationResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateConversationResponseBody, SDKValidationError>;
|
|
126
|
-
//# sourceMappingURL=createconversation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createconversation.d.ts","sourceRoot":"","sources":["../../src/models/operations/createconversation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,0BAA0B,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF;;GAEG;AACH,eAAO,MA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0BAA0B,GACrD,MAAM,CAIR;AAED,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,mCAAmC,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,sCAAsC,EACtC,CAAC,CAAC,UAAU,EACZ,6BAA6B,CAK7B,CAAC;AAEH,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,aAAa,CAChE,OAAO,sBAAsB,CACS,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,wBAAgB,+CAA+C,CAC7D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uCAAuC,EACvC,kBAAkB,CACnB,CASA;AAED,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,sCAAsC,CACpD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,8BAA8B,EAAE,kBAAkB,CAAC,CAMrE"}
|
|
@@ -1,101 +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.CreateConversationResponseBody$inboundSchema = exports.CreateConversationConversationsMetadata$inboundSchema = exports.CreateConversationKind$inboundSchema = exports.CreateConversationRequestBody$outboundSchema = exports.CreateConversationMetadata$outboundSchema = exports.CreateConversationKind = void 0;
|
|
40
|
-
exports.createConversationMetadataToJSON = createConversationMetadataToJSON;
|
|
41
|
-
exports.createConversationRequestBodyToJSON = createConversationRequestBodyToJSON;
|
|
42
|
-
exports.createConversationConversationsMetadataFromJSON = createConversationConversationsMetadataFromJSON;
|
|
43
|
-
exports.createConversationResponseBodyFromJSON = createConversationResponseBodyFromJSON;
|
|
44
|
-
const z = __importStar(require("zod/v3"));
|
|
45
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
-
/**
|
|
48
|
-
* Resource type discriminator.
|
|
49
|
-
*/
|
|
50
|
-
exports.CreateConversationKind = {
|
|
51
|
-
Conversation: "conversation",
|
|
52
|
-
};
|
|
53
|
-
/** @internal */
|
|
54
|
-
exports.CreateConversationMetadata$outboundSchema = z.object({
|
|
55
|
-
generatingTitle: z.boolean().optional(),
|
|
56
|
-
entityId: z.nullable(z.string()).optional(),
|
|
57
|
-
model: z.nullable(z.string()).optional(),
|
|
58
|
-
});
|
|
59
|
-
function createConversationMetadataToJSON(createConversationMetadata) {
|
|
60
|
-
return JSON.stringify(exports.CreateConversationMetadata$outboundSchema.parse(createConversationMetadata));
|
|
61
|
-
}
|
|
62
|
-
/** @internal */
|
|
63
|
-
exports.CreateConversationRequestBody$outboundSchema = z.object({
|
|
64
|
-
displayName: z.string().default("Untitled"),
|
|
65
|
-
projectId: z.string(),
|
|
66
|
-
metadata: z.lazy(() => exports.CreateConversationMetadata$outboundSchema).optional(),
|
|
67
|
-
});
|
|
68
|
-
function createConversationRequestBodyToJSON(createConversationRequestBody) {
|
|
69
|
-
return JSON.stringify(exports.CreateConversationRequestBody$outboundSchema.parse(createConversationRequestBody));
|
|
70
|
-
}
|
|
71
|
-
/** @internal */
|
|
72
|
-
exports.CreateConversationKind$inboundSchema = z.nativeEnum(exports.CreateConversationKind);
|
|
73
|
-
/** @internal */
|
|
74
|
-
exports.CreateConversationConversationsMetadata$inboundSchema = z.object({
|
|
75
|
-
generatingTitle: z.boolean().optional(),
|
|
76
|
-
entityId: z.nullable(z.string()).optional(),
|
|
77
|
-
model: z.nullable(z.string()).optional(),
|
|
78
|
-
});
|
|
79
|
-
function createConversationConversationsMetadataFromJSON(jsonString) {
|
|
80
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateConversationConversationsMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateConversationConversationsMetadata' from JSON`);
|
|
81
|
-
}
|
|
82
|
-
/** @internal */
|
|
83
|
-
exports.CreateConversationResponseBody$inboundSchema = z.object({
|
|
84
|
-
_id: z.string().default("conv_01kj0ah086ypt6ad2c08yebhvk"),
|
|
85
|
-
kind: exports.CreateConversationKind$inboundSchema,
|
|
86
|
-
displayName: z.string(),
|
|
87
|
-
createdAt: z.number(),
|
|
88
|
-
updatedAt: z.number(),
|
|
89
|
-
createdById: z.string().optional(),
|
|
90
|
-
updatedById: z.string().optional(),
|
|
91
|
-
metadata: z.lazy(() => exports.CreateConversationConversationsMetadata$inboundSchema)
|
|
92
|
-
.optional(),
|
|
93
|
-
}).transform((v) => {
|
|
94
|
-
return (0, primitives_js_1.remap)(v, {
|
|
95
|
-
"_id": "id",
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
function createConversationResponseBodyFromJSON(jsonString) {
|
|
99
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateConversationResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateConversationResponseBody' from JSON`);
|
|
100
|
-
}
|
|
101
|
-
//# sourceMappingURL=createconversation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createconversation.js","sourceRoot":"","sources":["../../src/models/operations/createconversation.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+HH,4EAMC;AAoBD,kFAQC;AAkBD,0GAcC;AAuBD,wFAQC;AA9ND,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAsCjD;;GAEG;AACU,QAAA,sBAAsB,GAAG;IACpC,YAAY,EAAE,cAAc;CACpB,CAAC;AAqE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