syllable-sdk 0.1.0-alpha.207 → 0.1.0-alpha.213
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/docs/sdks/agents/README.md +4 -4
- package/docs/sdks/batches/README.md +4 -4
- package/docs/sdks/services/README.md +229 -1
- package/docs/sdks/workflows/README.md +8 -8
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentcreate.d.ts +1 -1
- package/models/components/agentresponse.d.ts +1 -1
- package/models/components/agentupdate.d.ts +1 -1
- package/models/components/index.d.ts +1 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -0
- package/models/components/index.js.map +1 -1
- package/models/components/organizationresponse.d.ts +5 -2
- package/models/components/organizationresponse.d.ts.map +1 -1
- package/models/components/organizationresponse.js +4 -4
- package/models/components/organizationresponse.js.map +1 -1
- package/models/components/servicecreaterequest.d.ts +15 -0
- package/models/components/servicecreaterequest.d.ts.map +1 -1
- package/models/components/servicecreaterequest.js +16 -0
- package/models/components/servicecreaterequest.js.map +1 -1
- package/models/components/serviceproperties.d.ts +3 -3
- package/models/components/serviceproperties.js +1 -1
- package/models/components/serviceproperties.js.map +1 -1
- package/models/components/serviceresponse.d.ts +14 -3
- package/models/components/serviceresponse.d.ts.map +1 -1
- package/models/components/serviceresponse.js +11 -2
- package/models/components/serviceresponse.js.map +1 -1
- package/models/components/serviceupdaterequest.d.ts +15 -0
- package/models/components/serviceupdaterequest.d.ts.map +1 -1
- package/models/components/serviceupdaterequest.js +9 -0
- package/models/components/serviceupdaterequest.js.map +1 -1
- package/models/components/toolauthtype.d.ts +31 -0
- package/models/components/toolauthtype.d.ts.map +1 -0
- package/models/components/toolauthtype.js +51 -0
- package/models/components/toolauthtype.js.map +1 -0
- package/openapi.json +176 -51
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentcreate.ts +1 -1
- package/src/models/components/agentresponse.ts +1 -1
- package/src/models/components/agentupdate.ts +1 -1
- package/src/models/components/index.ts +1 -0
- package/src/models/components/organizationresponse.ts +9 -6
- package/src/models/components/servicecreaterequest.ts +30 -0
- package/src/models/components/serviceproperties.ts +1 -1
- package/src/models/components/serviceresponse.ts +28 -5
- package/src/models/components/serviceupdaterequest.ts +23 -0
- package/src/models/components/toolauthtype.ts +32 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"servicecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/servicecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"servicecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/servicecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0FH,gEAMC;AAED,oEAQC;AAxGD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uDAI2B;AAwB3B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,4CAA0B,CAAC,CAAC,QAAQ,EAAE;IAC5D,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,6CAA2B,CAAC,CAAC,QAAQ,EAAE;IAC5D,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;CACxD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -7,7 +7,7 @@ export declare const ServiceProperties: {
|
|
|
7
7
|
readonly Id: "id";
|
|
8
8
|
readonly Name: "name";
|
|
9
9
|
readonly Description: "description";
|
|
10
|
-
readonly
|
|
10
|
+
readonly LastUpdated: "last_updated";
|
|
11
11
|
readonly LastUpdatedBy: "last_updated_by";
|
|
12
12
|
};
|
|
13
13
|
/**
|
|
@@ -28,7 +28,7 @@ export declare namespace ServiceProperties$ {
|
|
|
28
28
|
readonly Id: "id";
|
|
29
29
|
readonly Name: "name";
|
|
30
30
|
readonly Description: "description";
|
|
31
|
-
readonly
|
|
31
|
+
readonly LastUpdated: "last_updated";
|
|
32
32
|
readonly LastUpdatedBy: "last_updated_by";
|
|
33
33
|
}>;
|
|
34
34
|
/** @deprecated use `ServiceProperties$outboundSchema` instead. */
|
|
@@ -36,7 +36,7 @@ export declare namespace ServiceProperties$ {
|
|
|
36
36
|
readonly Id: "id";
|
|
37
37
|
readonly Name: "name";
|
|
38
38
|
readonly Description: "description";
|
|
39
|
-
readonly
|
|
39
|
+
readonly LastUpdated: "last_updated";
|
|
40
40
|
readonly LastUpdatedBy: "last_updated_by";
|
|
41
41
|
}>;
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceproperties.js","sourceRoot":"","sources":["../../src/models/components/serviceproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,
|
|
1
|
+
{"version":3,"file":"serviceproperties.js","sourceRoot":"","sources":["../../src/models/components/serviceproperties.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGzB;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,EAAE,EAAE,IAAI;IACR,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,cAAc;IAC3B,aAAa,EAAE,iBAAiB;CACxB,CAAC;AAMX,gBAAgB;AACH,QAAA,+BAA+B,GAExC,CAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAC;AAEpC,gBAAgB;AACH,QAAA,gCAAgC,GAEzC,uCAA+B,CAAC;AAEpC;;;GAGG;AACH,IAAiB,kBAAkB,CAKlC;AALD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AACjE,CAAC,EALgB,kBAAkB,kCAAlB,kBAAkB,QAKlC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ToolAuthType } from "./toolauthtype.js";
|
|
4
5
|
/**
|
|
5
6
|
* Response model for service operations. A service is a collection of tools.
|
|
6
7
|
*/
|
|
7
8
|
export type ServiceResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* The internal ID of the service
|
|
11
|
+
*/
|
|
12
|
+
id: number;
|
|
8
13
|
/**
|
|
9
14
|
* The name of the service
|
|
10
15
|
*/
|
|
@@ -14,9 +19,13 @@ export type ServiceResponse = {
|
|
|
14
19
|
*/
|
|
15
20
|
description: string;
|
|
16
21
|
/**
|
|
17
|
-
* The
|
|
22
|
+
* The type of authentication to use for the service's tools
|
|
18
23
|
*/
|
|
19
|
-
|
|
24
|
+
authType?: ToolAuthType | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Auth value keys (values omitted for security)
|
|
27
|
+
*/
|
|
28
|
+
authValueKeys?: Array<string> | null | undefined;
|
|
20
29
|
/**
|
|
21
30
|
* Free text providing comment about what was updated
|
|
22
31
|
*/
|
|
@@ -38,9 +47,11 @@ export type ServiceResponse = {
|
|
|
38
47
|
export declare const ServiceResponse$inboundSchema: z.ZodType<ServiceResponse, z.ZodTypeDef, unknown>;
|
|
39
48
|
/** @internal */
|
|
40
49
|
export type ServiceResponse$Outbound = {
|
|
50
|
+
id: number;
|
|
41
51
|
name: string;
|
|
42
52
|
description: string;
|
|
43
|
-
|
|
53
|
+
auth_type?: string | null | undefined;
|
|
54
|
+
auth_value_keys?: Array<string> | null | undefined;
|
|
44
55
|
last_updated_comments?: string | null | undefined;
|
|
45
56
|
last_updated: string;
|
|
46
57
|
last_updated_by: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/serviceresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"serviceresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/serviceresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,WAAW,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,aAAa,EAAE,MAAM,CA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("zod"));
|
|
33
33
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
+
const toolauthtype_js_1 = require("./toolauthtype.js");
|
|
35
36
|
/** @internal */
|
|
36
37
|
exports.ServiceResponse$inboundSchema = z.object({
|
|
38
|
+
id: z.number().int(),
|
|
37
39
|
name: z.string(),
|
|
38
40
|
description: z.string(),
|
|
39
|
-
|
|
41
|
+
auth_type: z.nullable(toolauthtype_js_1.ToolAuthType$inboundSchema).optional(),
|
|
42
|
+
auth_value_keys: z.nullable(z.array(z.string())).optional(),
|
|
40
43
|
last_updated_comments: z.nullable(z.string()).optional(),
|
|
41
44
|
last_updated: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
42
45
|
last_updated_by: z.string(),
|
|
43
46
|
tools: z.array(z.string()),
|
|
44
47
|
}).transform((v) => {
|
|
45
48
|
return (0, primitives_js_1.remap)(v, {
|
|
49
|
+
"auth_type": "authType",
|
|
50
|
+
"auth_value_keys": "authValueKeys",
|
|
46
51
|
"last_updated_comments": "lastUpdatedComments",
|
|
47
52
|
"last_updated": "lastUpdated",
|
|
48
53
|
"last_updated_by": "lastUpdatedBy",
|
|
@@ -50,15 +55,19 @@ exports.ServiceResponse$inboundSchema = z.object({
|
|
|
50
55
|
});
|
|
51
56
|
/** @internal */
|
|
52
57
|
exports.ServiceResponse$outboundSchema = z.object({
|
|
58
|
+
id: z.number().int(),
|
|
53
59
|
name: z.string(),
|
|
54
60
|
description: z.string(),
|
|
55
|
-
|
|
61
|
+
authType: z.nullable(toolauthtype_js_1.ToolAuthType$outboundSchema).optional(),
|
|
62
|
+
authValueKeys: z.nullable(z.array(z.string())).optional(),
|
|
56
63
|
lastUpdatedComments: z.nullable(z.string()).optional(),
|
|
57
64
|
lastUpdated: z.date().transform(v => v.toISOString()),
|
|
58
65
|
lastUpdatedBy: z.string(),
|
|
59
66
|
tools: z.array(z.string()),
|
|
60
67
|
}).transform((v) => {
|
|
61
68
|
return (0, primitives_js_1.remap)(v, {
|
|
69
|
+
authType: "auth_type",
|
|
70
|
+
authValueKeys: "auth_value_keys",
|
|
62
71
|
lastUpdatedComments: "last_updated_comments",
|
|
63
72
|
lastUpdated: "last_updated",
|
|
64
73
|
lastUpdatedBy: "last_updated_by",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceresponse.js","sourceRoot":"","sources":["../../src/models/components/serviceresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"serviceresponse.js","sourceRoot":"","sources":["../../src/models/components/serviceresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAqIH,sDAIC;AAED,0DAQC;AAjJD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uDAI2B;AA4C3B,gBAAgB;AACH,QAAA,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,4CAA0B,CAAC,CAAC,QAAQ,EAAE;IAC5D,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3D,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAChE,IAAI,IAAI,CAAC,CAAC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ACf,QAAQ,EAAE,WAAW;QACrB,aAAa,EAAE,iBAAiB;QAChC,mBAAmB,EAAE,uBAAuB;QAC5C,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,iBAAiB;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gBAAgB,CAOhC;AAPD,WAAiB,gBAAgB;IAC/B,+DAA+D;IAClD,8BAAa,GAAG,qCAA6B,CAAC;IAC3D,gEAAgE;IACnD,+BAAc,GAAG,sCAA8B,CAAC;AAG/D,CAAC,EAPgB,gBAAgB,gCAAhB,gBAAgB,QAOhC;AAED,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,uBAAuB,CACrC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAA6B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzD,6CAA6C,CAC9C,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { ToolAuthType } from "./toolauthtype.js";
|
|
4
5
|
/**
|
|
5
6
|
* Request model to update an existing service.
|
|
6
7
|
*/
|
|
@@ -13,6 +14,16 @@ export type ServiceUpdateRequest = {
|
|
|
13
14
|
* The description of the service
|
|
14
15
|
*/
|
|
15
16
|
description: string;
|
|
17
|
+
/**
|
|
18
|
+
* The type of authentication to use for the service's tools
|
|
19
|
+
*/
|
|
20
|
+
authType?: ToolAuthType | null | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* The values to use for the authentication. Should contain "username" and "password" keys if auth type is basic, "token" key if auth type is bearer, or arbitrary header keys if auth type is custom_headers. On an update, leave a value for a given key null and the value in the database will not be updated. (If a key is omitted entirely, any existing value for that key will be removed.)
|
|
23
|
+
*/
|
|
24
|
+
authValues?: {
|
|
25
|
+
[k: string]: string;
|
|
26
|
+
} | null | undefined;
|
|
16
27
|
/**
|
|
17
28
|
* The internal ID of the service
|
|
18
29
|
*/
|
|
@@ -28,6 +39,10 @@ export declare const ServiceUpdateRequest$inboundSchema: z.ZodType<ServiceUpdate
|
|
|
28
39
|
export type ServiceUpdateRequest$Outbound = {
|
|
29
40
|
name: string;
|
|
30
41
|
description: string;
|
|
42
|
+
auth_type?: string | null | undefined;
|
|
43
|
+
auth_values?: {
|
|
44
|
+
[k: string]: string;
|
|
45
|
+
} | null | undefined;
|
|
31
46
|
id: number;
|
|
32
47
|
last_updated_comments?: string | null | undefined;
|
|
33
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceupdaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/serviceupdaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"serviceupdaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/serviceupdaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAC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oB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -32,14 +32,19 @@ exports.serviceUpdateRequestFromJSON = serviceUpdateRequestFromJSON;
|
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
33
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
+
const toolauthtype_js_1 = require("./toolauthtype.js");
|
|
35
36
|
/** @internal */
|
|
36
37
|
exports.ServiceUpdateRequest$inboundSchema = z.object({
|
|
37
38
|
name: z.string(),
|
|
38
39
|
description: z.string(),
|
|
40
|
+
auth_type: z.nullable(toolauthtype_js_1.ToolAuthType$inboundSchema).optional(),
|
|
41
|
+
auth_values: z.nullable(z.record(z.string())).optional(),
|
|
39
42
|
id: z.number().int(),
|
|
40
43
|
last_updated_comments: z.nullable(z.string()).optional(),
|
|
41
44
|
}).transform((v) => {
|
|
42
45
|
return (0, primitives_js_1.remap)(v, {
|
|
46
|
+
"auth_type": "authType",
|
|
47
|
+
"auth_values": "authValues",
|
|
43
48
|
"last_updated_comments": "lastUpdatedComments",
|
|
44
49
|
});
|
|
45
50
|
});
|
|
@@ -47,10 +52,14 @@ exports.ServiceUpdateRequest$inboundSchema = z.object({
|
|
|
47
52
|
exports.ServiceUpdateRequest$outboundSchema = z.object({
|
|
48
53
|
name: z.string(),
|
|
49
54
|
description: z.string(),
|
|
55
|
+
authType: z.nullable(toolauthtype_js_1.ToolAuthType$outboundSchema).optional(),
|
|
56
|
+
authValues: z.nullable(z.record(z.string())).optional(),
|
|
50
57
|
id: z.number().int(),
|
|
51
58
|
lastUpdatedComments: z.nullable(z.string()).optional(),
|
|
52
59
|
}).transform((v) => {
|
|
53
60
|
return (0, primitives_js_1.remap)(v, {
|
|
61
|
+
authType: "auth_type",
|
|
62
|
+
authValues: "auth_values",
|
|
54
63
|
lastUpdatedComments: "last_updated_comments",
|
|
55
64
|
});
|
|
56
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serviceupdaterequest.js","sourceRoot":"","sources":["../../src/models/components/serviceupdaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"serviceupdaterequest.js","sourceRoot":"","sources":["../../src/models/components/serviceupdaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0GH,gEAMC;AAED,oEAQC;AAxHD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uDAI2B;AAgC3B,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,4CAA0B,CAAC,CAAC,QAAQ,EAAE;IAC5D,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IACxD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,qBAAqB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,UAAU;QACvB,aAAa,EAAE,YAAY;QAC3B,uBAAuB,EAAE,qBAAqB;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC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,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const ToolAuthType: {
|
|
4
|
+
readonly Basic: "basic";
|
|
5
|
+
readonly Bearer: "bearer";
|
|
6
|
+
readonly CustomHeaders: "custom_headers";
|
|
7
|
+
};
|
|
8
|
+
export type ToolAuthType = ClosedEnum<typeof ToolAuthType>;
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ToolAuthType$inboundSchema: z.ZodNativeEnum<typeof ToolAuthType>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const ToolAuthType$outboundSchema: z.ZodNativeEnum<typeof ToolAuthType>;
|
|
13
|
+
/**
|
|
14
|
+
* @internal
|
|
15
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
|
+
*/
|
|
17
|
+
export declare namespace ToolAuthType$ {
|
|
18
|
+
/** @deprecated use `ToolAuthType$inboundSchema` instead. */
|
|
19
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
20
|
+
readonly Basic: "basic";
|
|
21
|
+
readonly Bearer: "bearer";
|
|
22
|
+
readonly CustomHeaders: "custom_headers";
|
|
23
|
+
}>;
|
|
24
|
+
/** @deprecated use `ToolAuthType$outboundSchema` instead. */
|
|
25
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
26
|
+
readonly Basic: "basic";
|
|
27
|
+
readonly Bearer: "bearer";
|
|
28
|
+
readonly CustomHeaders: "custom_headers";
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=toolauthtype.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolauthtype.d.ts","sourceRoot":"","sources":["../../src/models/components/toolauthtype.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3D,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CAChD,CAAC;AAE7B,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,YAAY,CACjD,CAAC;AAE7B;;;GAGG;AACH,yBAAiB,aAAa,CAAC;IAC7B,4DAA4D;IACrD,MAAM,aAAa;;;;MAA6B,CAAC;IACxD,6DAA6D;IACtD,MAAM,cAAc;;;;MAA8B,CAAC;CAC3D"}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.ToolAuthType$ = exports.ToolAuthType$outboundSchema = exports.ToolAuthType$inboundSchema = exports.ToolAuthType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
exports.ToolAuthType = {
|
|
32
|
+
Basic: "basic",
|
|
33
|
+
Bearer: "bearer",
|
|
34
|
+
CustomHeaders: "custom_headers",
|
|
35
|
+
};
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.ToolAuthType$inboundSchema = z.nativeEnum(exports.ToolAuthType);
|
|
38
|
+
/** @internal */
|
|
39
|
+
exports.ToolAuthType$outboundSchema = exports.ToolAuthType$inboundSchema;
|
|
40
|
+
/**
|
|
41
|
+
* @internal
|
|
42
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
|
+
*/
|
|
44
|
+
var ToolAuthType$;
|
|
45
|
+
(function (ToolAuthType$) {
|
|
46
|
+
/** @deprecated use `ToolAuthType$inboundSchema` instead. */
|
|
47
|
+
ToolAuthType$.inboundSchema = exports.ToolAuthType$inboundSchema;
|
|
48
|
+
/** @deprecated use `ToolAuthType$outboundSchema` instead. */
|
|
49
|
+
ToolAuthType$.outboundSchema = exports.ToolAuthType$outboundSchema;
|
|
50
|
+
})(ToolAuthType$ || (exports.ToolAuthType$ = ToolAuthType$ = {}));
|
|
51
|
+
//# sourceMappingURL=toolauthtype.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolauthtype.js","sourceRoot":"","sources":["../../src/models/components/toolauthtype.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,YAAY,GAAG;IAC1B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,gBAAgB;CACvB,CAAC;AAGX,gBAAgB;AACH,QAAA,0BAA0B,GACrC,CAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAC;AAE7B,gBAAgB;AACH,QAAA,2BAA2B,GACtC,kCAA0B,CAAC;AAE7B;;;GAGG;AACH,IAAiB,aAAa,CAK7B;AALD,WAAiB,aAAa;IAC5B,4DAA4D;IAC/C,2BAAa,GAAG,kCAA0B,CAAC;IACxD,6DAA6D;IAChD,4BAAc,GAAG,mCAA2B,CAAC;AAC5D,CAAC,EALgB,aAAa,6BAAb,aAAa,QAK7B"}
|