syllable-sdk 0.1.0-alpha.143 → 0.1.0-alpha.149
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 +8 -0
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/campaigns/README.md +78 -0
- package/docs/sdks/folders/README.md +168 -0
- package/docs/sdks/numbers/README.md +1 -1
- package/docs/sdks/syllablesdktools/README.md +80 -0
- package/docs/sdks/workflows/README.md +9 -9
- package/funcs/insightsFoldersDelete.d.ts +13 -0
- package/funcs/insightsFoldersDelete.d.ts.map +1 -0
- package/funcs/insightsFoldersDelete.js +105 -0
- package/funcs/insightsFoldersDelete.js.map +1 -0
- package/funcs/insightsFoldersMoveFiles.d.ts +14 -0
- package/funcs/insightsFoldersMoveFiles.d.ts.map +1 -0
- package/funcs/insightsFoldersMoveFiles.js +109 -0
- package/funcs/insightsFoldersMoveFiles.js.map +1 -0
- package/funcs/insightsToolsDelete.d.ts +16 -0
- package/funcs/insightsToolsDelete.d.ts.map +1 -0
- package/funcs/insightsToolsDelete.js +108 -0
- package/funcs/insightsToolsDelete.js.map +1 -0
- package/funcs/outboundCampaignsDelete.d.ts +13 -0
- package/funcs/outboundCampaignsDelete.d.ts.map +1 -0
- package/funcs/outboundCampaignsDelete.js +105 -0
- package/funcs/outboundCampaignsDelete.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/insightsfolderfilemove.d.ts +40 -0
- package/models/components/insightsfolderfilemove.d.ts.map +1 -0
- package/models/components/insightsfolderfilemove.js +72 -0
- package/models/components/insightsfolderfilemove.js.map +1 -0
- package/models/components/insightsfolderproperties.d.ts +3 -0
- package/models/components/insightsfolderproperties.d.ts.map +1 -1
- package/models/components/insightsfolderproperties.js +1 -0
- package/models/components/insightsfolderproperties.js.map +1 -1
- package/models/components/insighttoolproperties.d.ts +3 -0
- package/models/components/insighttoolproperties.d.ts.map +1 -1
- package/models/components/insighttoolproperties.js +1 -0
- package/models/components/insighttoolproperties.js.map +1 -1
- package/models/components/insighttooltestinput.d.ts +8 -3
- package/models/components/insighttooltestinput.d.ts.map +1 -1
- package/models/components/insighttooltestinput.js +6 -2
- package/models/components/insighttooltestinput.js.map +1 -1
- package/models/components/insightworkflowproperties.d.ts +3 -0
- package/models/components/insightworkflowproperties.d.ts.map +1 -1
- package/models/components/insightworkflowproperties.js +1 -0
- package/models/components/insightworkflowproperties.js.map +1 -1
- package/models/operations/index.d.ts +4 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +4 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/insightsfolderdelete.d.ts +29 -0
- package/models/operations/insightsfolderdelete.d.ts.map +1 -0
- package/models/operations/insightsfolderdelete.js +68 -0
- package/models/operations/insightsfolderdelete.js.map +1 -0
- package/models/operations/insightstooldelete.d.ts +29 -0
- package/models/operations/insightstooldelete.d.ts.map +1 -0
- package/models/operations/insightstooldelete.js +68 -0
- package/models/operations/insightstooldelete.js.map +1 -0
- package/models/operations/insightsuploadmovefiles.d.ts +32 -0
- package/models/operations/insightsuploadmovefiles.d.ts.map +1 -0
- package/models/operations/insightsuploadmovefiles.js +73 -0
- package/models/operations/insightsuploadmovefiles.js.map +1 -0
- package/models/operations/outboundcampaigndelete.d.ts +29 -0
- package/models/operations/outboundcampaigndelete.d.ts.map +1 -0
- package/models/operations/outboundcampaigndelete.js +68 -0
- package/models/operations/outboundcampaigndelete.js.map +1 -0
- package/openapi.json +303 -39
- package/package.json +1 -1
- package/sdk/campaigns.d.ts +4 -0
- package/sdk/campaigns.d.ts.map +1 -1
- package/sdk/campaigns.js +7 -0
- package/sdk/campaigns.js.map +1 -1
- package/sdk/folders.d.ts +8 -0
- package/sdk/folders.d.ts.map +1 -1
- package/sdk/folders.js +14 -0
- package/sdk/folders.js.map +1 -1
- package/sdk/syllablesdktools.d.ts +7 -0
- package/sdk/syllablesdktools.d.ts.map +1 -1
- package/sdk/syllablesdktools.js +10 -0
- package/sdk/syllablesdktools.js.map +1 -1
- package/src/funcs/insightsFoldersDelete.ts +140 -0
- package/src/funcs/insightsFoldersMoveFiles.ts +146 -0
- package/src/funcs/insightsToolsDelete.ts +144 -0
- package/src/funcs/outboundCampaignsDelete.ts +142 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +1 -0
- package/src/models/components/insightsfolderfilemove.ts +90 -0
- package/src/models/components/insightsfolderproperties.ts +1 -0
- package/src/models/components/insighttoolproperties.ts +1 -0
- package/src/models/components/insighttooltestinput.ts +14 -5
- package/src/models/components/insightworkflowproperties.ts +1 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/insightsfolderdelete.ts +77 -0
- package/src/models/operations/insightstooldelete.ts +75 -0
- package/src/models/operations/insightsuploadmovefiles.ts +84 -0
- package/src/models/operations/outboundcampaigndelete.ts +77 -0
- package/src/sdk/campaigns.ts +15 -0
- package/src/sdk/folders.ts +30 -0
- package/src/sdk/syllablesdktools.ts +18 -0
package/sdk/campaigns.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Campaigns = void 0;
|
|
7
7
|
const outboundCampaignsCreate_js_1 = require("../funcs/outboundCampaignsCreate.js");
|
|
8
|
+
const outboundCampaignsDelete_js_1 = require("../funcs/outboundCampaignsDelete.js");
|
|
8
9
|
const outboundCampaignsGetById_js_1 = require("../funcs/outboundCampaignsGetById.js");
|
|
9
10
|
const outboundCampaignsList_js_1 = require("../funcs/outboundCampaignsList.js");
|
|
10
11
|
const outboundCampaignsUpdate_js_1 = require("../funcs/outboundCampaignsUpdate.js");
|
|
@@ -35,6 +36,12 @@ class Campaigns extends sdks_js_1.ClientSDK {
|
|
|
35
36
|
async update(request, options) {
|
|
36
37
|
return (0, fp_js_1.unwrapAsync)((0, outboundCampaignsUpdate_js_1.outboundCampaignsUpdate)(this, request, options));
|
|
37
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Delete Outbound Communication Campaign
|
|
41
|
+
*/
|
|
42
|
+
async delete(request, options) {
|
|
43
|
+
return (0, fp_js_1.unwrapAsync)((0, outboundCampaignsDelete_js_1.outboundCampaignsDelete)(this, request, options));
|
|
44
|
+
}
|
|
38
45
|
}
|
|
39
46
|
exports.Campaigns = Campaigns;
|
|
40
47
|
//# sourceMappingURL=campaigns.js.map
|
package/sdk/campaigns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"campaigns.js","sourceRoot":"","sources":["../src/sdk/campaigns.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,sFAAgF;AAChF,gFAA0E;AAC1E,oFAA8E;AAC9E,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"campaigns.js","sourceRoot":"","sources":["../src/sdk/campaigns.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,oFAA8E;AAC9E,oFAA8E;AAC9E,sFAAgF;AAChF,gFAA0E;AAC1E,oFAA8E;AAC9E,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,SAAU,SAAQ,mBAAS;IACtC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAyC,EACzC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAiD,EACjD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,oDAAuB,EACxC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAtED,8BAsEC"}
|
package/sdk/folders.d.ts
CHANGED
|
@@ -14,6 +14,10 @@ export declare class Folders extends ClientSDK {
|
|
|
14
14
|
* Get Insights Folder Details
|
|
15
15
|
*/
|
|
16
16
|
getById(request: operations.InsightsFolderGetByIdRequest, options?: RequestOptions): Promise<components.FolderDetails>;
|
|
17
|
+
/**
|
|
18
|
+
* Delete Insights Folder
|
|
19
|
+
*/
|
|
20
|
+
delete(request: operations.InsightsFolderDeleteRequest, options?: RequestOptions): Promise<boolean>;
|
|
17
21
|
/**
|
|
18
22
|
* Update Insights Folder
|
|
19
23
|
*/
|
|
@@ -26,5 +30,9 @@ export declare class Folders extends ClientSDK {
|
|
|
26
30
|
* Fetch Insights Upload Files
|
|
27
31
|
*/
|
|
28
32
|
listFiles(request: operations.InsightsUploadListFilesRequest, options?: RequestOptions): Promise<components.ListResponseInsightsUploadFile>;
|
|
33
|
+
/**
|
|
34
|
+
* Move Insights Upload Files
|
|
35
|
+
*/
|
|
36
|
+
moveFiles(request: operations.InsightsUploadMoveFilesRequest, options?: RequestOptions): Promise<Array<components.InsightsUploadFile>>;
|
|
29
37
|
}
|
|
30
38
|
//# sourceMappingURL=folders.d.ts.map
|
package/sdk/folders.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../src/sdk/folders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"folders.d.ts","sourceRoot":"","sources":["../src/sdk/folders.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;OAEG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;IAQrC;;OAEG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,4BAA4B,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC;IAQpC;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,OAAO,CAAC;IAQnB;;OAEG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,cAAc,CAAC;IAQrC;;OAEG;IACG,UAAU,CACd,OAAO,EAAE,UAAU,CAAC,+BAA+B,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC;IAQzC;;OAEG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;OAEG;IACG,SAAS,CACb,OAAO,EAAE,UAAU,CAAC,8BAA8B,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC;CAOjD"}
|
package/sdk/folders.js
CHANGED
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Folders = void 0;
|
|
7
7
|
const insightsFoldersCreate_js_1 = require("../funcs/insightsFoldersCreate.js");
|
|
8
|
+
const insightsFoldersDelete_js_1 = require("../funcs/insightsFoldersDelete.js");
|
|
8
9
|
const insightsFoldersGetById_js_1 = require("../funcs/insightsFoldersGetById.js");
|
|
9
10
|
const insightsFoldersList_js_1 = require("../funcs/insightsFoldersList.js");
|
|
10
11
|
const insightsFoldersListFiles_js_1 = require("../funcs/insightsFoldersListFiles.js");
|
|
12
|
+
const insightsFoldersMoveFiles_js_1 = require("../funcs/insightsFoldersMoveFiles.js");
|
|
11
13
|
const insightsFoldersUpdate_js_1 = require("../funcs/insightsFoldersUpdate.js");
|
|
12
14
|
const insightsFoldersUploadFile_js_1 = require("../funcs/insightsFoldersUploadFile.js");
|
|
13
15
|
const sdks_js_1 = require("../lib/sdks.js");
|
|
@@ -31,6 +33,12 @@ class Folders extends sdks_js_1.ClientSDK {
|
|
|
31
33
|
async getById(request, options) {
|
|
32
34
|
return (0, fp_js_1.unwrapAsync)((0, insightsFoldersGetById_js_1.insightsFoldersGetById)(this, request, options));
|
|
33
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Delete Insights Folder
|
|
38
|
+
*/
|
|
39
|
+
async delete(request, options) {
|
|
40
|
+
return (0, fp_js_1.unwrapAsync)((0, insightsFoldersDelete_js_1.insightsFoldersDelete)(this, request, options));
|
|
41
|
+
}
|
|
34
42
|
/**
|
|
35
43
|
* Update Insights Folder
|
|
36
44
|
*/
|
|
@@ -49,6 +57,12 @@ class Folders extends sdks_js_1.ClientSDK {
|
|
|
49
57
|
async listFiles(request, options) {
|
|
50
58
|
return (0, fp_js_1.unwrapAsync)((0, insightsFoldersListFiles_js_1.insightsFoldersListFiles)(this, request, options));
|
|
51
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Move Insights Upload Files
|
|
62
|
+
*/
|
|
63
|
+
async moveFiles(request, options) {
|
|
64
|
+
return (0, fp_js_1.unwrapAsync)((0, insightsFoldersMoveFiles_js_1.insightsFoldersMoveFiles)(this, request, options));
|
|
65
|
+
}
|
|
52
66
|
}
|
|
53
67
|
exports.Folders = Folders;
|
|
54
68
|
//# sourceMappingURL=folders.js.map
|
package/sdk/folders.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../src/sdk/folders.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,kFAA4E;AAC5E,4EAAsE;AACtE,sFAAgF;AAChF,gFAA0E;AAC1E,wFAAkF;AAClF,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CACb,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"folders.js","sourceRoot":"","sources":["../src/sdk/folders.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,gFAA0E;AAC1E,gFAA0E;AAC1E,kFAA4E;AAC5E,4EAAsE;AACtE,sFAAgF;AAChF,sFAAgF;AAChF,gFAA0E;AAC1E,wFAAkF;AAClF,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,OAAQ,SAAQ,mBAAS;IACpC;;OAEG;IACH,KAAK,CAAC,IAAI,CACR,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAAuC,EACvC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,OAAO,CACX,OAAgD,EAChD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kDAAsB,EACvC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,MAAM,CACV,OAA+C,EAC/C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gDAAqB,EACtC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,UAAU,CACd,OAAmD,EACnD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wDAAyB,EAC1C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CACb,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CACb,OAAkD,EAClD,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,sDAAwB,EACzC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AAhHD,0BAgHC"}
|
|
@@ -23,6 +23,13 @@ export declare class SyllableSDKTools extends ClientSDK {
|
|
|
23
23
|
* Get a InsightTool by Name.
|
|
24
24
|
*/
|
|
25
25
|
getById(request: operations.InsightToolGetByIdRequest, options?: RequestOptions): Promise<components.InsightToolOutput>;
|
|
26
|
+
/**
|
|
27
|
+
* Delete Insight Tool Configuration
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Delete an Insights tool configuration.
|
|
31
|
+
*/
|
|
32
|
+
delete(request: operations.InsightsToolDeleteRequest, options?: RequestOptions): Promise<any>;
|
|
26
33
|
/**
|
|
27
34
|
* Update Insights Tool Configuration
|
|
28
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syllablesdktools.d.ts","sourceRoot":"","sources":["../src/sdk/syllablesdktools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"syllablesdktools.d.ts","sourceRoot":"","sources":["../src/sdk/syllablesdktools.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,gBAAiB,SAAQ,SAAS;IAC7C;;;;;OAKG;IACG,IAAI,CACR,OAAO,EAAE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,6BAA6B,CAAC;IAQpD;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,OAAO,CACX,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;IAQf;;;;;OAKG;IACG,MAAM,CACV,OAAO,EAAE,UAAU,CAAC,yBAAyB,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC;IAQxC;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,EAAE,UAAU,CAAC,oBAAoB,EACxC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,GAAG,CAAC;IAQf;;;;;OAKG;IACG,yBAAyB,CAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,qBAAqB,CAAC,CAAC;CAMpD"}
|
package/sdk/syllablesdktools.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.SyllableSDKTools = void 0;
|
|
7
7
|
const insightsToolsCreate_js_1 = require("../funcs/insightsToolsCreate.js");
|
|
8
|
+
const insightsToolsDelete_js_1 = require("../funcs/insightsToolsDelete.js");
|
|
8
9
|
const insightsToolsGetById_js_1 = require("../funcs/insightsToolsGetById.js");
|
|
9
10
|
const insightsToolsInsightsToolTest_js_1 = require("../funcs/insightsToolsInsightsToolTest.js");
|
|
10
11
|
const insightsToolsInsightToolGetDefinitions_js_1 = require("../funcs/insightsToolsInsightToolGetDefinitions.js");
|
|
@@ -40,6 +41,15 @@ class SyllableSDKTools extends sdks_js_1.ClientSDK {
|
|
|
40
41
|
async getById(request, options) {
|
|
41
42
|
return (0, fp_js_1.unwrapAsync)((0, insightsToolsGetById_js_1.insightsToolsGetById)(this, request, options));
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Delete Insight Tool Configuration
|
|
46
|
+
*
|
|
47
|
+
* @remarks
|
|
48
|
+
* Delete an Insights tool configuration.
|
|
49
|
+
*/
|
|
50
|
+
async delete(request, options) {
|
|
51
|
+
return (0, fp_js_1.unwrapAsync)((0, insightsToolsDelete_js_1.insightsToolsDelete)(this, request, options));
|
|
52
|
+
}
|
|
43
53
|
/**
|
|
44
54
|
* Update Insights Tool Configuration
|
|
45
55
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"syllablesdktools.js","sourceRoot":"","sources":["../src/sdk/syllablesdktools.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,8EAAwE;AACxE,gGAA0F;AAC1F,kHAA4G;AAC5G,wEAAkE;AAClE,4EAAsE;AACtE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,gBAAiB,SAAQ,mBAAS;IAC7C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"syllablesdktools.js","sourceRoot":"","sources":["../src/sdk/syllablesdktools.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,4EAAsE;AACtE,4EAAsE;AACtE,8EAAwE;AACxE,gGAA0F;AAC1F,kHAA4G;AAC5G,wEAAkE;AAClE,4EAAsE;AACtE,4CAA2D;AAG3D,0CAA6C;AAE7C,MAAa,gBAAiB,SAAQ,mBAAS;IAC7C;;;;;OAKG;IACH,KAAK,CAAC,IAAI,CACR,OAA0C,EAC1C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,wCAAiB,EAClC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAAoC,EACpC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CACX,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,8CAAoB,EACrC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,OAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,4CAAmB,EACpC,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CACpB,OAAwC,EACxC,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,gEAA6B,EAC9C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAC7B,OAAwB;QAExB,OAAO,IAAA,mBAAW,EAAC,IAAA,kFAAsC,EACvD,IAAI,EACJ,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF;AArHD,4CAqHC"}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { SyllableSDKCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Delete Insights Folder
|
|
29
|
+
*/
|
|
30
|
+
export async function insightsFoldersDelete(
|
|
31
|
+
client: SyllableSDKCore,
|
|
32
|
+
request: operations.InsightsFolderDeleteRequest,
|
|
33
|
+
options?: RequestOptions,
|
|
34
|
+
): Promise<
|
|
35
|
+
Result<
|
|
36
|
+
boolean,
|
|
37
|
+
| errors.HTTPValidationError
|
|
38
|
+
| SDKError
|
|
39
|
+
| SDKValidationError
|
|
40
|
+
| UnexpectedClientError
|
|
41
|
+
| InvalidRequestError
|
|
42
|
+
| RequestAbortedError
|
|
43
|
+
| RequestTimeoutError
|
|
44
|
+
| ConnectionError
|
|
45
|
+
>
|
|
46
|
+
> {
|
|
47
|
+
const parsed = safeParse(
|
|
48
|
+
request,
|
|
49
|
+
(value) =>
|
|
50
|
+
operations.InsightsFolderDeleteRequest$outboundSchema.parse(value),
|
|
51
|
+
"Input validation failed",
|
|
52
|
+
);
|
|
53
|
+
if (!parsed.ok) {
|
|
54
|
+
return parsed;
|
|
55
|
+
}
|
|
56
|
+
const payload = parsed.value;
|
|
57
|
+
const body = null;
|
|
58
|
+
|
|
59
|
+
const pathParams = {
|
|
60
|
+
folder_id: encodeSimple("folder_id", payload.folder_id, {
|
|
61
|
+
explode: false,
|
|
62
|
+
charEncoding: "percent",
|
|
63
|
+
}),
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const path = pathToFunc("/api/v1/insights/folders/{folder_id}")(pathParams);
|
|
67
|
+
|
|
68
|
+
const headers = new Headers(compactMap({
|
|
69
|
+
Accept: "application/json",
|
|
70
|
+
}));
|
|
71
|
+
|
|
72
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
73
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
74
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
75
|
+
|
|
76
|
+
const context = {
|
|
77
|
+
baseURL: options?.serverURL ?? "",
|
|
78
|
+
operationID: "insights_folder_delete",
|
|
79
|
+
oAuth2Scopes: [],
|
|
80
|
+
|
|
81
|
+
resolvedSecurity: requestSecurity,
|
|
82
|
+
|
|
83
|
+
securitySource: client._options.apiKeyHeader,
|
|
84
|
+
retryConfig: options?.retries
|
|
85
|
+
|| client._options.retryConfig
|
|
86
|
+
|| { strategy: "none" },
|
|
87
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const requestRes = client._createRequest(context, {
|
|
91
|
+
security: requestSecurity,
|
|
92
|
+
method: "DELETE",
|
|
93
|
+
baseURL: options?.serverURL,
|
|
94
|
+
path: path,
|
|
95
|
+
headers: headers,
|
|
96
|
+
body: body,
|
|
97
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
98
|
+
}, options);
|
|
99
|
+
if (!requestRes.ok) {
|
|
100
|
+
return requestRes;
|
|
101
|
+
}
|
|
102
|
+
const req = requestRes.value;
|
|
103
|
+
|
|
104
|
+
const doResult = await client._do(req, {
|
|
105
|
+
context,
|
|
106
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
107
|
+
retryConfig: context.retryConfig,
|
|
108
|
+
retryCodes: context.retryCodes,
|
|
109
|
+
});
|
|
110
|
+
if (!doResult.ok) {
|
|
111
|
+
return doResult;
|
|
112
|
+
}
|
|
113
|
+
const response = doResult.value;
|
|
114
|
+
|
|
115
|
+
const responseFields = {
|
|
116
|
+
HttpMeta: { Response: response, Request: req },
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const [result] = await M.match<
|
|
120
|
+
boolean,
|
|
121
|
+
| errors.HTTPValidationError
|
|
122
|
+
| SDKError
|
|
123
|
+
| SDKValidationError
|
|
124
|
+
| UnexpectedClientError
|
|
125
|
+
| InvalidRequestError
|
|
126
|
+
| RequestAbortedError
|
|
127
|
+
| RequestTimeoutError
|
|
128
|
+
| ConnectionError
|
|
129
|
+
>(
|
|
130
|
+
M.json(200, z.boolean()),
|
|
131
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
132
|
+
M.fail("4XX"),
|
|
133
|
+
M.fail("5XX"),
|
|
134
|
+
)(response, { extraFields: responseFields });
|
|
135
|
+
if (!result.ok) {
|
|
136
|
+
return result;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { SyllableSDKCore } from "../core.js";
|
|
7
|
+
import { encodeJSON, encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import * as components from "../models/components/index.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import * as errors from "../models/errors/index.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { Result } from "../types/fp.js";
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Move Insights Upload Files
|
|
30
|
+
*/
|
|
31
|
+
export async function insightsFoldersMoveFiles(
|
|
32
|
+
client: SyllableSDKCore,
|
|
33
|
+
request: operations.InsightsUploadMoveFilesRequest,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): Promise<
|
|
36
|
+
Result<
|
|
37
|
+
Array<components.InsightsUploadFile>,
|
|
38
|
+
| errors.HTTPValidationError
|
|
39
|
+
| SDKError
|
|
40
|
+
| SDKValidationError
|
|
41
|
+
| UnexpectedClientError
|
|
42
|
+
| InvalidRequestError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
const parsed = safeParse(
|
|
49
|
+
request,
|
|
50
|
+
(value) =>
|
|
51
|
+
operations.InsightsUploadMoveFilesRequest$outboundSchema.parse(value),
|
|
52
|
+
"Input validation failed",
|
|
53
|
+
);
|
|
54
|
+
if (!parsed.ok) {
|
|
55
|
+
return parsed;
|
|
56
|
+
}
|
|
57
|
+
const payload = parsed.value;
|
|
58
|
+
const body = encodeJSON("body", payload.InsightsFolderFileMove, {
|
|
59
|
+
explode: true,
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
const pathParams = {
|
|
63
|
+
folder_id: encodeSimple("folder_id", payload.folder_id, {
|
|
64
|
+
explode: false,
|
|
65
|
+
charEncoding: "percent",
|
|
66
|
+
}),
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const path = pathToFunc("/api/v1/insights/folders/{folder_id}/move-files")(
|
|
70
|
+
pathParams,
|
|
71
|
+
);
|
|
72
|
+
|
|
73
|
+
const headers = new Headers(compactMap({
|
|
74
|
+
"Content-Type": "application/json",
|
|
75
|
+
Accept: "application/json",
|
|
76
|
+
}));
|
|
77
|
+
|
|
78
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
79
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
80
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
81
|
+
|
|
82
|
+
const context = {
|
|
83
|
+
baseURL: options?.serverURL ?? "",
|
|
84
|
+
operationID: "insights_upload_move_files",
|
|
85
|
+
oAuth2Scopes: [],
|
|
86
|
+
|
|
87
|
+
resolvedSecurity: requestSecurity,
|
|
88
|
+
|
|
89
|
+
securitySource: client._options.apiKeyHeader,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const requestRes = client._createRequest(context, {
|
|
97
|
+
security: requestSecurity,
|
|
98
|
+
method: "POST",
|
|
99
|
+
baseURL: options?.serverURL,
|
|
100
|
+
path: path,
|
|
101
|
+
headers: headers,
|
|
102
|
+
body: body,
|
|
103
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
104
|
+
}, options);
|
|
105
|
+
if (!requestRes.ok) {
|
|
106
|
+
return requestRes;
|
|
107
|
+
}
|
|
108
|
+
const req = requestRes.value;
|
|
109
|
+
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
errorCodes: ["422", "4XX", "5XX"],
|
|
113
|
+
retryConfig: context.retryConfig,
|
|
114
|
+
retryCodes: context.retryCodes,
|
|
115
|
+
});
|
|
116
|
+
if (!doResult.ok) {
|
|
117
|
+
return doResult;
|
|
118
|
+
}
|
|
119
|
+
const response = doResult.value;
|
|
120
|
+
|
|
121
|
+
const responseFields = {
|
|
122
|
+
HttpMeta: { Response: response, Request: req },
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
const [result] = await M.match<
|
|
126
|
+
Array<components.InsightsUploadFile>,
|
|
127
|
+
| errors.HTTPValidationError
|
|
128
|
+
| SDKError
|
|
129
|
+
| SDKValidationError
|
|
130
|
+
| UnexpectedClientError
|
|
131
|
+
| InvalidRequestError
|
|
132
|
+
| RequestAbortedError
|
|
133
|
+
| RequestTimeoutError
|
|
134
|
+
| ConnectionError
|
|
135
|
+
>(
|
|
136
|
+
M.json(200, z.array(components.InsightsUploadFile$inboundSchema)),
|
|
137
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
138
|
+
M.fail("4XX"),
|
|
139
|
+
M.fail("5XX"),
|
|
140
|
+
)(response, { extraFields: responseFields });
|
|
141
|
+
if (!result.ok) {
|
|
142
|
+
return result;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
return result;
|
|
146
|
+
}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { SyllableSDKCore } from "../core.js";
|
|
7
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { Result } from "../types/fp.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Delete Insight Tool Configuration
|
|
29
|
+
*
|
|
30
|
+
* @remarks
|
|
31
|
+
* Delete an Insights tool configuration.
|
|
32
|
+
*/
|
|
33
|
+
export async function insightsToolsDelete(
|
|
34
|
+
client: SyllableSDKCore,
|
|
35
|
+
request: operations.InsightsToolDeleteRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): Promise<
|
|
38
|
+
Result<
|
|
39
|
+
any,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| SDKError
|
|
42
|
+
| SDKValidationError
|
|
43
|
+
| UnexpectedClientError
|
|
44
|
+
| InvalidRequestError
|
|
45
|
+
| RequestAbortedError
|
|
46
|
+
| RequestTimeoutError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
>
|
|
49
|
+
> {
|
|
50
|
+
const parsed = safeParse(
|
|
51
|
+
request,
|
|
52
|
+
(value) => operations.InsightsToolDeleteRequest$outboundSchema.parse(value),
|
|
53
|
+
"Input validation failed",
|
|
54
|
+
);
|
|
55
|
+
if (!parsed.ok) {
|
|
56
|
+
return parsed;
|
|
57
|
+
}
|
|
58
|
+
const payload = parsed.value;
|
|
59
|
+
const body = null;
|
|
60
|
+
|
|
61
|
+
const pathParams = {
|
|
62
|
+
tool_id: encodeSimple("tool_id", payload.tool_id, {
|
|
63
|
+
explode: false,
|
|
64
|
+
charEncoding: "percent",
|
|
65
|
+
}),
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const path = pathToFunc("/api/v1/insights/tool-configurations/{tool_id}")(
|
|
69
|
+
pathParams,
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
const headers = new Headers(compactMap({
|
|
73
|
+
Accept: "application/json",
|
|
74
|
+
}));
|
|
75
|
+
|
|
76
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
77
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
78
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
79
|
+
|
|
80
|
+
const context = {
|
|
81
|
+
baseURL: options?.serverURL ?? "",
|
|
82
|
+
operationID: "insights_tool_delete",
|
|
83
|
+
oAuth2Scopes: [],
|
|
84
|
+
|
|
85
|
+
resolvedSecurity: requestSecurity,
|
|
86
|
+
|
|
87
|
+
securitySource: client._options.apiKeyHeader,
|
|
88
|
+
retryConfig: options?.retries
|
|
89
|
+
|| client._options.retryConfig
|
|
90
|
+
|| { strategy: "none" },
|
|
91
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
const requestRes = client._createRequest(context, {
|
|
95
|
+
security: requestSecurity,
|
|
96
|
+
method: "DELETE",
|
|
97
|
+
baseURL: options?.serverURL,
|
|
98
|
+
path: path,
|
|
99
|
+
headers: headers,
|
|
100
|
+
body: body,
|
|
101
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
102
|
+
}, options);
|
|
103
|
+
if (!requestRes.ok) {
|
|
104
|
+
return requestRes;
|
|
105
|
+
}
|
|
106
|
+
const req = requestRes.value;
|
|
107
|
+
|
|
108
|
+
const doResult = await client._do(req, {
|
|
109
|
+
context,
|
|
110
|
+
errorCodes: ["400", "404", "412", "422", "4XX", "500", "5XX"],
|
|
111
|
+
retryConfig: context.retryConfig,
|
|
112
|
+
retryCodes: context.retryCodes,
|
|
113
|
+
});
|
|
114
|
+
if (!doResult.ok) {
|
|
115
|
+
return doResult;
|
|
116
|
+
}
|
|
117
|
+
const response = doResult.value;
|
|
118
|
+
|
|
119
|
+
const responseFields = {
|
|
120
|
+
HttpMeta: { Response: response, Request: req },
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
const [result] = await M.match<
|
|
124
|
+
any,
|
|
125
|
+
| errors.HTTPValidationError
|
|
126
|
+
| SDKError
|
|
127
|
+
| SDKValidationError
|
|
128
|
+
| UnexpectedClientError
|
|
129
|
+
| InvalidRequestError
|
|
130
|
+
| RequestAbortedError
|
|
131
|
+
| RequestTimeoutError
|
|
132
|
+
| ConnectionError
|
|
133
|
+
>(
|
|
134
|
+
M.json(200, z.any()),
|
|
135
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
136
|
+
M.fail([400, 404, 412, "4XX"]),
|
|
137
|
+
M.fail([500, "5XX"]),
|
|
138
|
+
)(response, { extraFields: responseFields });
|
|
139
|
+
if (!result.ok) {
|
|
140
|
+
return result;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return result;
|
|
144
|
+
}
|