@orq-ai/node 4.10.0-rc.7 → 4.10.0-rc.8
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 +48 -53
- package/funcs/projectsCreate.d.ts +1 -1
- package/funcs/projectsCreate.js +1 -1
- package/funcs/projectsDelete.d.ts +3 -0
- package/funcs/projectsDelete.d.ts.map +1 -1
- package/funcs/projectsDelete.js +3 -0
- package/funcs/projectsDelete.js.map +1 -1
- package/funcs/projectsList.d.ts +1 -1
- package/funcs/projectsList.js +1 -1
- package/funcs/reportingQuery.d.ts +17 -0
- package/funcs/reportingQuery.d.ts.map +1 -0
- package/funcs/{contactsCreate.js → reportingQuery.js} +10 -10
- package/funcs/reportingQuery.js.map +1 -0
- package/funcs/skillsCreate.d.ts +1 -1
- package/funcs/skillsCreate.js +1 -1
- package/funcs/skillsDelete.d.ts +3 -0
- package/funcs/skillsDelete.d.ts.map +1 -1
- package/funcs/skillsDelete.js +3 -0
- package/funcs/skillsDelete.js.map +1 -1
- package/funcs/skillsGet.d.ts +1 -1
- package/funcs/skillsGet.js +1 -1
- package/funcs/skillsList.d.ts +1 -1
- package/funcs/skillsList.js +1 -1
- package/funcs/skillsUpdate.d.ts +1 -1
- package/funcs/skillsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createprojectrequest.d.ts +6 -0
- package/models/components/createprojectrequest.d.ts.map +1 -1
- package/models/components/createprojectrequest.js.map +1 -1
- package/models/components/createprojectresponse.d.ts +3 -0
- package/models/components/createprojectresponse.d.ts.map +1 -1
- package/models/components/createprojectresponse.js.map +1 -1
- package/models/components/createskillrequest.d.ts +18 -0
- package/models/components/createskillrequest.d.ts.map +1 -1
- package/models/components/createskillrequest.js.map +1 -1
- package/models/components/createskillresponse.d.ts +3 -0
- package/models/components/createskillresponse.d.ts.map +1 -1
- package/models/components/createskillresponse.js.map +1 -1
- package/models/components/datapoint.d.ts +40 -0
- package/models/components/datapoint.d.ts.map +1 -0
- package/models/components/datapoint.js +53 -0
- package/models/components/datapoint.js.map +1 -0
- package/models/components/file.d.ts +0 -1
- package/models/components/file.d.ts.map +1 -1
- package/models/components/file.js +0 -2
- package/models/components/file.js.map +1 -1
- package/models/components/filter.d.ts +99 -0
- package/models/components/filter.d.ts.map +1 -0
- package/models/components/filter.js +120 -0
- package/models/components/filter.js.map +1 -0
- package/models/components/getprojectresponse.d.ts +3 -0
- package/models/components/getprojectresponse.d.ts.map +1 -1
- package/models/components/getprojectresponse.js.map +1 -1
- package/models/components/getskillresponse.d.ts +3 -0
- package/models/components/getskillresponse.d.ts.map +1 -1
- package/models/components/getskillresponse.js.map +1 -1
- package/models/components/index.d.ts +6 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +6 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listprojectsresponse.d.ts +12 -0
- package/models/components/listprojectsresponse.d.ts.map +1 -1
- package/models/components/listprojectsresponse.js.map +1 -1
- package/models/components/listskillsresponse.d.ts +12 -0
- package/models/components/listskillsresponse.d.ts.map +1 -1
- package/models/components/listskillsresponse.js.map +1 -1
- package/models/components/project.d.ts +42 -1
- package/models/components/project.d.ts.map +1 -1
- package/models/components/project.js +0 -2
- package/models/components/project.js.map +1 -1
- package/models/components/queryreportrequest.d.ts +156 -0
- package/models/components/queryreportrequest.d.ts.map +1 -0
- package/models/components/queryreportrequest.js +166 -0
- package/models/components/queryreportrequest.js.map +1 -0
- package/models/components/queryreportresponse.d.ts +59 -0
- package/models/components/queryreportresponse.d.ts.map +1 -0
- package/models/components/queryreportresponse.js +73 -0
- package/models/components/queryreportresponse.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsemeta.d.ts +63 -0
- package/models/components/responsemeta.d.ts.map +1 -0
- package/models/{operations/remoteconfigsgetconfig.js → components/responsemeta.js} +31 -27
- package/models/components/responsemeta.js.map +1 -0
- package/models/components/skill.d.ts +37 -1
- package/models/components/skill.d.ts.map +1 -1
- package/models/components/skill.js +0 -2
- package/models/components/skill.js.map +1 -1
- package/models/components/totals.d.ts +18 -0
- package/models/components/totals.d.ts.map +1 -0
- package/models/components/totals.js +51 -0
- package/models/components/totals.js.map +1 -0
- package/models/components/updateprojectrequest.d.ts +12 -0
- package/models/components/updateprojectrequest.d.ts.map +1 -1
- package/models/components/updateprojectrequest.js.map +1 -1
- package/models/components/updateprojectresponse.d.ts +3 -0
- package/models/components/updateprojectresponse.d.ts.map +1 -1
- package/models/components/updateprojectresponse.js.map +1 -1
- package/models/components/updateskillrequest.d.ts +21 -0
- package/models/components/updateskillrequest.d.ts.map +1 -1
- package/models/components/updateskillrequest.js.map +1 -1
- package/models/components/updateskillresponse.d.ts +3 -0
- package/models/components/updateskillresponse.d.ts.map +1 -1
- package/models/components/updateskillresponse.js.map +1 -1
- package/models/operations/createannotation.d.ts +4 -4
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +5 -5
- package/models/operations/createannotation.js.map +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/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeeval.d.ts +28 -28
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +40 -40
- package/models/operations/invokeeval.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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedback.d.ts +15 -15
- package/models/operations/postv2feedback.d.ts.map +1 -1
- package/models/operations/postv2feedback.js +15 -16
- package/models/operations/postv2feedback.js.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2feedbackremove.d.ts +8 -8
- package/models/operations/postv2feedbackremove.d.ts.map +1 -1
- package/models/operations/postv2feedbackremove.js +8 -7
- package/models/operations/postv2feedbackremove.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/projectdelete.d.ts +3 -0
- package/models/operations/projectdelete.d.ts.map +1 -1
- package/models/operations/projectdelete.js.map +1 -1
- package/models/operations/projectget.d.ts +3 -0
- package/models/operations/projectget.d.ts.map +1 -1
- package/models/operations/projectget.js.map +1 -1
- package/models/operations/projectlist.d.ts +15 -0
- package/models/operations/projectlist.d.ts.map +1 -1
- package/models/operations/projectlist.js.map +1 -1
- package/models/operations/projectupdate.d.ts +3 -0
- package/models/operations/projectupdate.d.ts.map +1 -1
- package/models/operations/projectupdate.js.map +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/skilldelete.d.ts +3 -0
- package/models/operations/skilldelete.d.ts.map +1 -1
- package/models/operations/skilldelete.js.map +1 -1
- package/models/operations/skilllist.d.ts +12 -0
- package/models/operations/skilllist.d.ts.map +1 -1
- package/models/operations/skilllist.js.map +1 -1
- package/models/operations/skillupdate.d.ts +3 -0
- package/models/operations/skillupdate.d.ts.map +1 -1
- package/models/operations/skillupdate.js.map +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 +8 -8
- package/sdk/feedback.d.ts +1 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +3 -3
- package/sdk/feedback.js.map +1 -1
- package/sdk/projects.d.ts +5 -2
- package/sdk/projects.d.ts.map +1 -1
- package/sdk/projects.js +5 -2
- package/sdk/projects.js.map +1 -1
- package/sdk/reporting.d.ts +12 -0
- package/sdk/reporting.d.ts.map +1 -0
- package/sdk/reporting.js +22 -0
- package/sdk/reporting.js.map +1 -0
- package/sdk/sdk.d.ts +5 -8
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -11
- package/sdk/sdk.js.map +1 -1
- package/sdk/skills.d.ts +7 -4
- package/sdk/skills.d.ts.map +1 -1
- package/sdk/skills.js +7 -4
- package/sdk/skills.js.map +1 -1
- package/src/funcs/projectsCreate.ts +1 -1
- package/src/funcs/projectsDelete.ts +3 -0
- package/src/funcs/projectsList.ts +1 -1
- package/src/funcs/{contactsCreate.ts → reportingQuery.ts} +13 -13
- package/src/funcs/skillsCreate.ts +1 -1
- package/src/funcs/skillsDelete.ts +3 -0
- package/src/funcs/skillsGet.ts +1 -1
- package/src/funcs/skillsList.ts +1 -1
- package/src/funcs/skillsUpdate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createprojectrequest.ts +6 -0
- package/src/models/components/createprojectresponse.ts +3 -0
- package/src/models/components/createskillrequest.ts +18 -0
- package/src/models/components/createskillresponse.ts +3 -0
- package/src/models/components/datapoint.ts +60 -0
- package/src/models/components/file.ts +0 -3
- package/src/models/components/filter.ts +137 -0
- package/src/models/components/getprojectresponse.ts +3 -0
- package/src/models/components/getskillresponse.ts +3 -0
- package/src/models/components/index.ts +6 -0
- package/src/models/components/listprojectsresponse.ts +12 -0
- package/src/models/components/listskillsresponse.ts +12 -0
- package/src/models/components/project.ts +42 -3
- package/src/models/components/queryreportrequest.ts +237 -0
- package/src/models/components/queryreportresponse.ts +96 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsemeta.ts +103 -0
- package/src/models/components/skill.ts +37 -3
- package/src/models/components/totals.ts +34 -0
- package/src/models/components/updateprojectrequest.ts +12 -0
- package/src/models/components/updateprojectresponse.ts +3 -0
- package/src/models/components/updateskillrequest.ts +21 -0
- package/src/models/components/updateskillresponse.ts +3 -0
- package/src/models/operations/createannotation.ts +7 -11
- 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/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -2
- package/src/models/operations/invokeeval.ts +83 -80
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedback.ts +34 -27
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2feedbackremove.ts +14 -17
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/projectdelete.ts +3 -0
- package/src/models/operations/projectget.ts +3 -0
- package/src/models/operations/projectlist.ts +15 -0
- package/src/models/operations/projectupdate.ts +3 -0
- 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/skilldelete.ts +3 -0
- package/src/models/operations/skilllist.ts +12 -0
- package/src/models/operations/skillupdate.ts +3 -0
- 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/feedback.ts +8 -8
- package/src/sdk/projects.ts +5 -2
- package/src/sdk/reporting.ts +27 -0
- package/src/sdk/sdk.ts +11 -17
- package/src/sdk/skills.ts +7 -4
- package/funcs/contactsCreate.d.ts +0 -17
- package/funcs/contactsCreate.d.ts.map +0 -1
- package/funcs/contactsCreate.js.map +0 -1
- package/funcs/remoteconfigsRetrieve.d.ts +0 -14
- package/funcs/remoteconfigsRetrieve.d.ts.map +0 -1
- package/funcs/remoteconfigsRetrieve.js +0 -115
- package/funcs/remoteconfigsRetrieve.js.map +0 -1
- package/models/operations/createcontact.d.ts +0 -95
- package/models/operations/createcontact.d.ts.map +0 -1
- package/models/operations/createcontact.js +0 -86
- package/models/operations/createcontact.js.map +0 -1
- package/models/operations/remoteconfigsgetconfig.d.ts +0 -67
- package/models/operations/remoteconfigsgetconfig.d.ts.map +0 -1
- package/models/operations/remoteconfigsgetconfig.js.map +0 -1
- package/sdk/contacts.d.ts +0 -12
- package/sdk/contacts.d.ts.map +0 -1
- package/sdk/contacts.js +0 -22
- package/sdk/contacts.js.map +0 -1
- package/sdk/remoteconfigs.d.ts +0 -9
- package/sdk/remoteconfigs.d.ts.map +0 -1
- package/sdk/remoteconfigs.js +0 -19
- package/sdk/remoteconfigs.js.map +0 -1
- package/src/funcs/remoteconfigsRetrieve.ts +0 -163
- package/src/models/operations/createcontact.ts +0 -156
- package/src/models/operations/remoteconfigsgetconfig.ts +0 -108
- package/src/sdk/contacts.ts +0 -27
- package/src/sdk/remoteconfigs.ts +0 -24
package/src/sdk/sdk.ts
CHANGED
|
@@ -10,7 +10,6 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
10
10
|
import { Agents } from "./agents.js";
|
|
11
11
|
import { Annotations } from "./annotations.js";
|
|
12
12
|
import { Chunking } from "./chunking.js";
|
|
13
|
-
import { Contacts } from "./contacts.js";
|
|
14
13
|
import { Datasets } from "./datasets.js";
|
|
15
14
|
import { Deployments } from "./deployments.js";
|
|
16
15
|
import { Evals } from "./evals.js";
|
|
@@ -24,7 +23,7 @@ import { MemoryStores } from "./memorystores.js";
|
|
|
24
23
|
import { Policies } from "./policies.js";
|
|
25
24
|
import { Projects } from "./projects.js";
|
|
26
25
|
import { Prompts } from "./prompts.js";
|
|
27
|
-
import {
|
|
26
|
+
import { Reporting } from "./reporting.js";
|
|
28
27
|
import { Responses } from "./responses.js";
|
|
29
28
|
import { Router } from "./router.js";
|
|
30
29
|
import { RoutingRules } from "./routingrules.js";
|
|
@@ -33,16 +32,6 @@ import { Skills } from "./skills.js";
|
|
|
33
32
|
import { Tools } from "./tools.js";
|
|
34
33
|
|
|
35
34
|
export class Orq extends ClientSDK {
|
|
36
|
-
private _contacts?: Contacts;
|
|
37
|
-
get contacts(): Contacts {
|
|
38
|
-
return (this._contacts ??= new Contacts(this._options));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
private _feedback?: Feedback;
|
|
42
|
-
get feedback(): Feedback {
|
|
43
|
-
return (this._feedback ??= new Feedback(this._options));
|
|
44
|
-
}
|
|
45
|
-
|
|
46
35
|
private _evals?: Evals;
|
|
47
36
|
get evals(): Evals {
|
|
48
37
|
return (this._evals ??= new Evals(this._options));
|
|
@@ -68,11 +57,6 @@ export class Orq extends ClientSDK {
|
|
|
68
57
|
return (this._prompts ??= new Prompts(this._options));
|
|
69
58
|
}
|
|
70
59
|
|
|
71
|
-
private _remoteconfigs?: Remoteconfigs;
|
|
72
|
-
get remoteconfigs(): Remoteconfigs {
|
|
73
|
-
return (this._remoteconfigs ??= new Remoteconfigs(this._options));
|
|
74
|
-
}
|
|
75
|
-
|
|
76
60
|
private _tools?: Tools;
|
|
77
61
|
get tools(): Tools {
|
|
78
62
|
return (this._tools ??= new Tools(this._options));
|
|
@@ -108,6 +92,11 @@ export class Orq extends ClientSDK {
|
|
|
108
92
|
return (this._annotations ??= new Annotations(this._options));
|
|
109
93
|
}
|
|
110
94
|
|
|
95
|
+
private _feedback?: Feedback;
|
|
96
|
+
get feedback(): Feedback {
|
|
97
|
+
return (this._feedback ??= new Feedback(this._options));
|
|
98
|
+
}
|
|
99
|
+
|
|
111
100
|
private _humanReviewSets?: HumanReviewSets;
|
|
112
101
|
get humanReviewSets(): HumanReviewSets {
|
|
113
102
|
return (this._humanReviewSets ??= new HumanReviewSets(this._options));
|
|
@@ -153,6 +142,11 @@ export class Orq extends ClientSDK {
|
|
|
153
142
|
return (this._responses ??= new Responses(this._options));
|
|
154
143
|
}
|
|
155
144
|
|
|
145
|
+
private _reporting?: Reporting;
|
|
146
|
+
get reporting(): Reporting {
|
|
147
|
+
return (this._reporting ??= new Reporting(this._options));
|
|
148
|
+
}
|
|
149
|
+
|
|
156
150
|
async postV2FeedbackEvaluationRemove(
|
|
157
151
|
request?: operations.PostV2FeedbackEvaluationRemoveRequestBody | undefined,
|
|
158
152
|
options?: RequestOptions,
|
package/src/sdk/skills.ts
CHANGED
|
@@ -17,7 +17,7 @@ export class Skills extends ClientSDK {
|
|
|
17
17
|
* List all skills
|
|
18
18
|
*
|
|
19
19
|
* @remarks
|
|
20
|
-
* Returns
|
|
20
|
+
* Returns the skills visible to the current workspace, ordered by creation time with the newest skill first. Use `starting_after` or `ending_before` to page through large collections.
|
|
21
21
|
*/
|
|
22
22
|
async list(
|
|
23
23
|
request?: operations.SkillListRequest | undefined,
|
|
@@ -34,7 +34,7 @@ export class Skills extends ClientSDK {
|
|
|
34
34
|
* Create a new skill
|
|
35
35
|
*
|
|
36
36
|
* @remarks
|
|
37
|
-
*
|
|
37
|
+
* Creates a reusable skill in the workspace. Skills store instructions, metadata, and an optional project location so teams can standardize repeatable AI workflows.
|
|
38
38
|
*/
|
|
39
39
|
async create(
|
|
40
40
|
request: components.CreateSkillRequest,
|
|
@@ -51,7 +51,7 @@ export class Skills extends ClientSDK {
|
|
|
51
51
|
* Retrieve a skill
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Retrieves an existing skill by
|
|
54
|
+
* Retrieves an existing skill by skill ID. Display names are also accepted for compatibility because they are unique within a workspace.
|
|
55
55
|
*/
|
|
56
56
|
async get(
|
|
57
57
|
request: operations.SkillGetRequest,
|
|
@@ -66,6 +66,9 @@ export class Skills extends ClientSDK {
|
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Delete a skill
|
|
69
|
+
*
|
|
70
|
+
* @remarks
|
|
71
|
+
* Deletes a skill from the workspace. The response body is empty when the delete succeeds.
|
|
69
72
|
*/
|
|
70
73
|
async delete(
|
|
71
74
|
request: operations.SkillDeleteRequest,
|
|
@@ -82,7 +85,7 @@ export class Skills extends ClientSDK {
|
|
|
82
85
|
* Update a skill
|
|
83
86
|
*
|
|
84
87
|
* @remarks
|
|
85
|
-
* Updates
|
|
88
|
+
* Updates mutable skill fields. Omitted optional fields keep their current values. Repeated fields such as `tags` replace the existing collection when provided.
|
|
86
89
|
*/
|
|
87
90
|
async update(
|
|
88
91
|
request: operations.SkillUpdateRequest,
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { APIPromise } from "../types/async.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
/**
|
|
11
|
-
* Update user information
|
|
12
|
-
*
|
|
13
|
-
* @remarks
|
|
14
|
-
* Update or add user information to workspace
|
|
15
|
-
*/
|
|
16
|
-
export declare function contactsCreate(client: OrqCore, request: operations.CreateContactRequestBody, options?: RequestOptions): APIPromise<Result<operations.CreateContactResponseBody, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
17
|
-
//# sourceMappingURL=contactsCreate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contactsCreate.d.ts","sourceRoot":"","sources":["../src/funcs/contactsCreate.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,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,0 @@
|
|
|
1
|
-
import { OrqCore } from "../core.js";
|
|
2
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
-
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
4
|
-
import { OrqError } from "../models/errors/orqerror.js";
|
|
5
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
6
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
-
import * as operations from "../models/operations/index.js";
|
|
8
|
-
import { APIPromise } from "../types/async.js";
|
|
9
|
-
import { Result } from "../types/fp.js";
|
|
10
|
-
/**
|
|
11
|
-
* Retrieve a remote config
|
|
12
|
-
*/
|
|
13
|
-
export declare function remoteconfigsRetrieve(client: OrqCore, request?: operations.RemoteConfigsGetConfigRequestBody | undefined, options?: RequestOptions): APIPromise<Result<operations.RemoteConfigsGetConfigResponseBody, OrqError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
14
|
-
//# sourceMappingURL=remoteconfigsRetrieve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remoteconfigsRetrieve.d.ts","sourceRoot":"","sources":["../src/funcs/remoteconfigsRetrieve.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAMrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,iCAAiC,GAAG,SAAS,EAClE,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kCAAkC,EAC3C,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -1,115 +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.remoteconfigsRetrieve = remoteconfigsRetrieve;
|
|
40
|
-
const encodings_js_1 = require("../lib/encodings.js");
|
|
41
|
-
const http_js_1 = require("../lib/http.js");
|
|
42
|
-
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
-
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
-
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
-
const security_js_1 = require("../lib/security.js");
|
|
46
|
-
const url_js_1 = require("../lib/url.js");
|
|
47
|
-
const operations = __importStar(require("../models/operations/index.js"));
|
|
48
|
-
const async_js_1 = require("../types/async.js");
|
|
49
|
-
/**
|
|
50
|
-
* Retrieve a remote config
|
|
51
|
-
*/
|
|
52
|
-
function remoteconfigsRetrieve(client, request, options) {
|
|
53
|
-
return new async_js_1.APIPromise($do(client, request, options));
|
|
54
|
-
}
|
|
55
|
-
async function $do(client, request, options) {
|
|
56
|
-
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.RemoteConfigsGetConfigRequestBody$outboundSchema.optional()
|
|
57
|
-
.parse(value), "Input validation failed");
|
|
58
|
-
if (!parsed.ok) {
|
|
59
|
-
return [parsed, { status: "invalid" }];
|
|
60
|
-
}
|
|
61
|
-
const payload = parsed.value;
|
|
62
|
-
const body = payload === undefined
|
|
63
|
-
? null
|
|
64
|
-
: (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
|
|
65
|
-
const path = (0, url_js_1.pathToFunc)("/v2/remoteconfigs")();
|
|
66
|
-
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
67
|
-
"Content-Type": "application/json",
|
|
68
|
-
Accept: "application/json",
|
|
69
|
-
}));
|
|
70
|
-
const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
|
|
71
|
-
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
72
|
-
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
73
|
-
const context = {
|
|
74
|
-
options: client._options,
|
|
75
|
-
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
76
|
-
operationID: "RemoteConfigsGetConfig",
|
|
77
|
-
oAuth2Scopes: null,
|
|
78
|
-
resolvedSecurity: requestSecurity,
|
|
79
|
-
securitySource: client._options.apiKey,
|
|
80
|
-
retryConfig: options?.retries
|
|
81
|
-
|| client._options.retryConfig
|
|
82
|
-
|| { strategy: "none" },
|
|
83
|
-
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
84
|
-
};
|
|
85
|
-
const requestRes = client._createRequest(context, {
|
|
86
|
-
security: requestSecurity,
|
|
87
|
-
method: "POST",
|
|
88
|
-
baseURL: options?.serverURL,
|
|
89
|
-
path: path,
|
|
90
|
-
headers: headers,
|
|
91
|
-
body: body,
|
|
92
|
-
userAgent: client._options.userAgent,
|
|
93
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
94
|
-
}, options);
|
|
95
|
-
if (!requestRes.ok) {
|
|
96
|
-
return [requestRes, { status: "invalid" }];
|
|
97
|
-
}
|
|
98
|
-
const req = requestRes.value;
|
|
99
|
-
const doResult = await client._do(req, {
|
|
100
|
-
context,
|
|
101
|
-
isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
|
|
102
|
-
retryConfig: context.retryConfig,
|
|
103
|
-
retryCodes: context.retryCodes,
|
|
104
|
-
});
|
|
105
|
-
if (!doResult.ok) {
|
|
106
|
-
return [doResult, { status: "request-error", request: req }];
|
|
107
|
-
}
|
|
108
|
-
const response = doResult.value;
|
|
109
|
-
const [result] = await M.match(M.json(200, operations.RemoteConfigsGetConfigResponseBody$inboundSchema), M.fail([400, 401, 404, "4XX"]), M.fail([500, "5XX"]))(response, req);
|
|
110
|
-
if (!result.ok) {
|
|
111
|
-
return [result, { status: "complete", request: req, response }];
|
|
112
|
-
}
|
|
113
|
-
return [result, { status: "complete", request: req, response }];
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=remoteconfigsRetrieve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remoteconfigsRetrieve.js","sourceRoot":"","sources":["../src/funcs/remoteconfigsRetrieve.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BH,sDAsBC;AA/CD,sDAAiD;AACjD,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAW3C,0EAA4D;AAC5D,gDAAwD;AAGxD;;GAEG;AACH,SAAgB,qBAAqB,CACnC,MAAe,EACf,OAAkE,EAClE,OAAwB;IAcxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAkE,EAClE,OAAwB;IAiBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,gDAAgD,CAAC,QAAQ,EAAE;SACnE,KAAK,CAAC,KAAK,CAAC,EACjB,yBAAyB,CAC1B,CAAC;IACF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KAAK,CAW5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,CAAC,gDAAgD,CAAC,EACxE,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,EAC9B,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CACrB,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -1,95 +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
|
-
* Update user information payload
|
|
6
|
-
*/
|
|
7
|
-
export type CreateContactRequestBody = {
|
|
8
|
-
/**
|
|
9
|
-
* 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.
|
|
10
|
-
*/
|
|
11
|
-
externalId: string;
|
|
12
|
-
/**
|
|
13
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
14
|
-
*/
|
|
15
|
-
displayName?: string | null | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Email address of the contact user
|
|
18
|
-
*/
|
|
19
|
-
email?: string | null | undefined;
|
|
20
|
-
/**
|
|
21
|
-
* URL linking to the contact user's avatar image
|
|
22
|
-
*/
|
|
23
|
-
avatarUrl?: string | null | undefined;
|
|
24
|
-
/**
|
|
25
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
26
|
-
*/
|
|
27
|
-
tags?: Array<string> | undefined;
|
|
28
|
-
/**
|
|
29
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
30
|
-
*/
|
|
31
|
-
metadata?: {
|
|
32
|
-
[k: string]: any;
|
|
33
|
-
} | undefined;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Successful operation
|
|
37
|
-
*/
|
|
38
|
-
export type CreateContactResponseBody = {
|
|
39
|
-
/**
|
|
40
|
-
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the contact
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* 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.
|
|
45
|
-
*/
|
|
46
|
-
externalId: string;
|
|
47
|
-
/**
|
|
48
|
-
* Display name or nickname of the contact user. This is typically shown in user interfaces.
|
|
49
|
-
*/
|
|
50
|
-
displayName?: string | null | undefined;
|
|
51
|
-
/**
|
|
52
|
-
* Email address of the contact user
|
|
53
|
-
*/
|
|
54
|
-
email?: string | null | undefined;
|
|
55
|
-
/**
|
|
56
|
-
* URL linking to the contact user's avatar image
|
|
57
|
-
*/
|
|
58
|
-
avatarUrl?: string | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Array of tags associated with the contact. Useful for organizing and filtering contacts by categories, departments, or custom classifications.
|
|
61
|
-
*/
|
|
62
|
-
tags?: Array<string> | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* Additional custom metadata associated with the contact as key-value pairs. Use this to store any extra information specific to your application.
|
|
65
|
-
*/
|
|
66
|
-
metadata?: {
|
|
67
|
-
[k: string]: any;
|
|
68
|
-
} | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* The date and time the resource was created
|
|
71
|
-
*/
|
|
72
|
-
created?: Date | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* The date and time the resource was last updated
|
|
75
|
-
*/
|
|
76
|
-
updated: Date;
|
|
77
|
-
};
|
|
78
|
-
/** @internal */
|
|
79
|
-
export type CreateContactRequestBody$Outbound = {
|
|
80
|
-
external_id: string;
|
|
81
|
-
display_name?: string | null | undefined;
|
|
82
|
-
email?: string | null | undefined;
|
|
83
|
-
avatar_url?: string | null | undefined;
|
|
84
|
-
tags?: Array<string> | undefined;
|
|
85
|
-
metadata?: {
|
|
86
|
-
[k: string]: any;
|
|
87
|
-
} | undefined;
|
|
88
|
-
};
|
|
89
|
-
/** @internal */
|
|
90
|
-
export declare const CreateContactRequestBody$outboundSchema: z.ZodType<CreateContactRequestBody$Outbound, z.ZodTypeDef, CreateContactRequestBody>;
|
|
91
|
-
export declare function createContactRequestBodyToJSON(createContactRequestBody: CreateContactRequestBody): string;
|
|
92
|
-
/** @internal */
|
|
93
|
-
export declare const CreateContactResponseBody$inboundSchema: z.ZodType<CreateContactResponseBody, z.ZodTypeDef, unknown>;
|
|
94
|
-
export declare function createContactResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateContactResponseBody, SDKValidationError>;
|
|
95
|
-
//# sourceMappingURL=createcontact.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createcontact.d.ts","sourceRoot":"","sources":["../../src/models/operations/createcontact.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,UAAU,EAAE,MAAM,CAAC;IACnB;;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;I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ACjC,QAAQ,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAcxB,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,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,86 +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.CreateContactResponseBody$inboundSchema = exports.CreateContactRequestBody$outboundSchema = void 0;
|
|
40
|
-
exports.createContactRequestBodyToJSON = createContactRequestBodyToJSON;
|
|
41
|
-
exports.createContactResponseBodyFromJSON = createContactResponseBodyFromJSON;
|
|
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.CreateContactRequestBody$outboundSchema = z.object({
|
|
47
|
-
externalId: z.string(),
|
|
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
|
-
externalId: "external_id",
|
|
56
|
-
displayName: "display_name",
|
|
57
|
-
avatarUrl: "avatar_url",
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
function createContactRequestBodyToJSON(createContactRequestBody) {
|
|
61
|
-
return JSON.stringify(exports.CreateContactRequestBody$outboundSchema.parse(createContactRequestBody));
|
|
62
|
-
}
|
|
63
|
-
/** @internal */
|
|
64
|
-
exports.CreateContactResponseBody$inboundSchema = z.object({
|
|
65
|
-
_id: z.string(),
|
|
66
|
-
external_id: z.string(),
|
|
67
|
-
display_name: z.nullable(z.string()).optional(),
|
|
68
|
-
email: z.nullable(z.string()).optional(),
|
|
69
|
-
avatar_url: z.nullable(z.string()).optional(),
|
|
70
|
-
tags: z.array(z.string()).optional(),
|
|
71
|
-
metadata: z.record(z.any()).optional(),
|
|
72
|
-
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
73
|
-
.optional(),
|
|
74
|
-
updated: z.string().datetime({ offset: true }).default("2026-05-15T03:37:24.790Z").transform(v => new Date(v)),
|
|
75
|
-
}).transform((v) => {
|
|
76
|
-
return (0, primitives_js_1.remap)(v, {
|
|
77
|
-
"_id": "id",
|
|
78
|
-
"external_id": "externalId",
|
|
79
|
-
"display_name": "displayName",
|
|
80
|
-
"avatar_url": "avatarUrl",
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
function createContactResponseBodyFromJSON(jsonString) {
|
|
84
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CreateContactResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CreateContactResponseBody' from JSON`);
|
|
85
|
-
}
|
|
86
|
-
//# sourceMappingURL=createcontact.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createcontact.js","sourceRoot":"","sources":["../../src/models/operations/createcontact.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GH,wEAMC;AA6BD,8EAQC;AAvJD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAsFjD,gBA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.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
export type RemoteConfigsGetConfigRequestBody = {
|
|
6
|
-
/**
|
|
7
|
-
* Remote configuration key
|
|
8
|
-
*/
|
|
9
|
-
key: string;
|
|
10
|
-
/**
|
|
11
|
-
* Key-value pairs matching your data model, applied to each prompt key.
|
|
12
|
-
*/
|
|
13
|
-
context?: {
|
|
14
|
-
[k: string]: any;
|
|
15
|
-
} | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Key-value pairs to attach to the log generated by this request.
|
|
18
|
-
*/
|
|
19
|
-
metadata?: {
|
|
20
|
-
[k: string]: any;
|
|
21
|
-
} | undefined;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* The return type of the rule
|
|
25
|
-
*/
|
|
26
|
-
export declare const RemoteConfigsGetConfigType: {
|
|
27
|
-
readonly Boolean: "boolean";
|
|
28
|
-
readonly String: "string";
|
|
29
|
-
readonly Integer: "integer";
|
|
30
|
-
readonly Decimal: "decimal";
|
|
31
|
-
readonly List: "list";
|
|
32
|
-
readonly Json: "json";
|
|
33
|
-
readonly Deployment: "deployment";
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* The return type of the rule
|
|
37
|
-
*/
|
|
38
|
-
export type RemoteConfigsGetConfigType = ClosedEnum<typeof RemoteConfigsGetConfigType>;
|
|
39
|
-
/**
|
|
40
|
-
* An individual remote config
|
|
41
|
-
*/
|
|
42
|
-
export type RemoteConfigsGetConfigResponseBody = {
|
|
43
|
-
/**
|
|
44
|
-
* The return type of the rule
|
|
45
|
-
*/
|
|
46
|
-
type: RemoteConfigsGetConfigType;
|
|
47
|
-
value?: any | undefined;
|
|
48
|
-
};
|
|
49
|
-
/** @internal */
|
|
50
|
-
export type RemoteConfigsGetConfigRequestBody$Outbound = {
|
|
51
|
-
key: string;
|
|
52
|
-
context?: {
|
|
53
|
-
[k: string]: any;
|
|
54
|
-
} | undefined;
|
|
55
|
-
metadata?: {
|
|
56
|
-
[k: string]: any;
|
|
57
|
-
} | undefined;
|
|
58
|
-
};
|
|
59
|
-
/** @internal */
|
|
60
|
-
export declare const RemoteConfigsGetConfigRequestBody$outboundSchema: z.ZodType<RemoteConfigsGetConfigRequestBody$Outbound, z.ZodTypeDef, RemoteConfigsGetConfigRequestBody>;
|
|
61
|
-
export declare function remoteConfigsGetConfigRequestBodyToJSON(remoteConfigsGetConfigRequestBody: RemoteConfigsGetConfigRequestBody): string;
|
|
62
|
-
/** @internal */
|
|
63
|
-
export declare const RemoteConfigsGetConfigType$inboundSchema: z.ZodNativeEnum<typeof RemoteConfigsGetConfigType>;
|
|
64
|
-
/** @internal */
|
|
65
|
-
export declare const RemoteConfigsGetConfigResponseBody$inboundSchema: z.ZodType<RemoteConfigsGetConfigResponseBody, z.ZodTypeDef, unknown>;
|
|
66
|
-
export declare function remoteConfigsGetConfigResponseBodyFromJSON(jsonString: string): SafeParseResult<RemoteConfigsGetConfigResponseBody, SDKValidationError>;
|
|
67
|
-
//# sourceMappingURL=remoteconfigsgetconfig.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remoteconfigsgetconfig.d.ts","sourceRoot":"","sources":["../../src/models/operations/remoteconfigsgetconfig.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,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,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS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,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,wDAAgD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACvE,gEAAgE,CACjE,CAAC;AACJ,CAAC"}
|
package/sdk/contacts.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Contacts extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Update user information
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Update or add user information to workspace
|
|
9
|
-
*/
|
|
10
|
-
create(request: operations.CreateContactRequestBody, options?: RequestOptions): Promise<operations.CreateContactResponseBody>;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=contacts.d.ts.map
|
package/sdk/contacts.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../src/sdk/contacts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,QAAS,SAAQ,SAAS;IACrC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,yBAAyB,CAAC;CAOjD"}
|
package/sdk/contacts.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Contacts = void 0;
|
|
7
|
-
const contactsCreate_js_1 = require("../funcs/contactsCreate.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Contacts extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Update user information
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* Update or add user information to workspace
|
|
16
|
-
*/
|
|
17
|
-
async create(request, options) {
|
|
18
|
-
return (0, fp_js_1.unwrapAsync)((0, contactsCreate_js_1.contactsCreate)(this, request, options));
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.Contacts = Contacts;
|
|
22
|
-
//# sourceMappingURL=contacts.js.map
|
package/sdk/contacts.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contacts.js","sourceRoot":"","sources":["../src/sdk/contacts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,kEAA4D;AAC5D,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,QAAS,SAAQ,mBAAS;IACrC;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kCAAc,EAC/B,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAjBD,4BAiBC"}
|
package/sdk/remoteconfigs.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
-
import * as operations from "../models/operations/index.js";
|
|
3
|
-
export declare class Remoteconfigs extends ClientSDK {
|
|
4
|
-
/**
|
|
5
|
-
* Retrieve a remote config
|
|
6
|
-
*/
|
|
7
|
-
retrieve(request?: operations.RemoteConfigsGetConfigRequestBody | undefined, options?: RequestOptions): Promise<operations.RemoteConfigsGetConfigResponseBody>;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=remoteconfigs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remoteconfigs.d.ts","sourceRoot":"","sources":["../src/sdk/remoteconfigs.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,aAAc,SAAQ,SAAS;IAC1C;;OAEG;IACG,QAAQ,CACZ,OAAO,CAAC,EAAE,UAAU,CAAC,iCAAiC,GAAG,SAAS,EAClE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kCAAkC,CAAC;CAO1D"}
|
package/sdk/remoteconfigs.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Remoteconfigs = void 0;
|
|
7
|
-
const remoteconfigsRetrieve_js_1 = require("../funcs/remoteconfigsRetrieve.js");
|
|
8
|
-
const sdks_js_1 = require("../lib/sdks.js");
|
|
9
|
-
const fp_js_1 = require("../types/fp.js");
|
|
10
|
-
class Remoteconfigs extends sdks_js_1.ClientSDK {
|
|
11
|
-
/**
|
|
12
|
-
* Retrieve a remote config
|
|
13
|
-
*/
|
|
14
|
-
async retrieve(request, options) {
|
|
15
|
-
return (0, fp_js_1.unwrapAsync)((0, remoteconfigsRetrieve_js_1.remoteconfigsRetrieve)(this, request, options));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.Remoteconfigs = Remoteconfigs;
|
|
19
|
-
//# sourceMappingURL=remoteconfigs.js.map
|
package/sdk/remoteconfigs.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remoteconfigs.js","sourceRoot":"","sources":["../src/sdk/remoteconfigs.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,4CAA2D;AAE3D,0CAA6C;AAE7C,MAAa,aAAc,SAAQ,mBAAS;IAC1C;;OAEG;IACH,KAAK,CAAC,QAAQ,CACZ,OAAkE,EAClE,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAdD,sCAcC"}
|