syllable-sdk 0.1.0-alpha.43 → 0.1.0-alpha.45
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 +6 -2
- package/docs/sdks/datasources/README.md +26 -18
- package/docs/sdks/v1/README.md +158 -0
- package/funcs/dataSourcesDelete.d.ts.map +1 -1
- package/funcs/dataSourcesDelete.js +5 -2
- package/funcs/dataSourcesDelete.js.map +1 -1
- package/funcs/{dataSourcesGetByName.d.ts → dataSourcesGetById.d.ts} +2 -2
- package/funcs/dataSourcesGetById.d.ts.map +1 -0
- package/funcs/dataSourcesGetById.js +108 -0
- package/funcs/dataSourcesGetById.js.map +1 -0
- package/funcs/v1Delete.d.ts +16 -0
- package/funcs/v1Delete.d.ts.map +1 -0
- package/funcs/v1Delete.js +112 -0
- package/funcs/v1Delete.js.map +1 -0
- package/funcs/v1GetById.d.ts +17 -0
- package/funcs/v1GetById.d.ts.map +1 -0
- package/funcs/{dataSourcesGetByName.js → v1GetById.js} +10 -7
- package/funcs/v1GetById.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mintlify/mint.json +3 -0
- package/models/components/datasourcecreaterequest.d.ts +3 -3
- package/models/components/datasourcecreaterequest.d.ts.map +1 -1
- package/models/components/datasourcecreaterequest.js +2 -2
- package/models/components/datasourcecreaterequest.js.map +1 -1
- package/models/components/datasourcedetailresponse.d.ts +8 -3
- package/models/components/datasourcedetailresponse.d.ts.map +1 -1
- package/models/components/datasourcedetailresponse.js +4 -2
- package/models/components/datasourcedetailresponse.js.map +1 -1
- package/models/components/datasourcemetadataresponse.d.ts +8 -3
- package/models/components/datasourcemetadataresponse.d.ts.map +1 -1
- package/models/components/datasourcemetadataresponse.js +4 -2
- package/models/components/datasourcemetadataresponse.js.map +1 -1
- package/models/components/datasourceupdaterequest.d.ts +8 -3
- package/models/components/datasourceupdaterequest.d.ts.map +1 -1
- package/models/components/datasourceupdaterequest.js +4 -2
- package/models/components/datasourceupdaterequest.js.map +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/tooldetailresponse.d.ts +6 -0
- package/models/components/tooldetailresponse.d.ts.map +1 -1
- package/models/components/tooldetailresponse.js +5 -0
- package/models/components/tooldetailresponse.js.map +1 -1
- package/models/components/toolpromptinfo.d.ts +40 -0
- package/models/components/toolpromptinfo.d.ts.map +1 -0
- package/models/components/toolpromptinfo.js +61 -0
- package/models/components/toolpromptinfo.js.map +1 -0
- package/models/components/toolresponse.d.ts +6 -0
- package/models/components/toolresponse.d.ts.map +1 -1
- package/models/components/toolresponse.js +5 -0
- package/models/components/toolresponse.js.map +1 -1
- package/models/operations/datasourcesdelete.d.ts +2 -2
- package/models/operations/datasourcesdelete.d.ts.map +1 -1
- package/models/operations/datasourcesdelete.js +4 -4
- package/models/operations/datasourcesdelete.js.map +1 -1
- package/models/operations/datasourcesgetbyid.d.ts +29 -0
- package/models/operations/datasourcesgetbyid.d.ts.map +1 -0
- package/models/operations/{datasourcesgetbyname.js → datasourcesgetbyid.js} +21 -21
- package/models/operations/datasourcesgetbyid.js.map +1 -0
- package/models/operations/index.d.ts +1 -1
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -1
- package/models/operations/index.js.map +1 -1
- package/openapi.json +176 -61
- package/package.json +1 -1
- package/sdk/datasources.d.ts +1 -1
- package/sdk/datasources.d.ts.map +1 -1
- package/sdk/datasources.js +3 -3
- package/sdk/datasources.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/v1.d.ts +14 -0
- package/sdk/v1.d.ts.map +1 -1
- package/sdk/v1.js +20 -0
- package/sdk/v1.js.map +1 -1
- package/src/funcs/dataSourcesDelete.ts +5 -8
- package/src/funcs/{dataSourcesGetByName.ts → dataSourcesGetById.ts} +9 -13
- package/src/funcs/v1Delete.ts +147 -0
- package/src/funcs/v1GetById.ts +142 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/datasourcecreaterequest.ts +5 -5
- package/src/models/components/datasourcedetailresponse.ts +12 -5
- package/src/models/components/datasourcemetadataresponse.ts +12 -5
- package/src/models/components/datasourceupdaterequest.ts +12 -5
- package/src/models/components/index.ts +1 -0
- package/src/models/components/tooldetailresponse.ts +15 -0
- package/src/models/components/toolpromptinfo.ts +75 -0
- package/src/models/components/toolresponse.ts +15 -0
- package/src/models/operations/datasourcesdelete.ts +6 -6
- package/src/models/operations/datasourcesgetbyid.ts +75 -0
- package/src/models/operations/index.ts +1 -1
- package/src/sdk/datasources.ts +4 -4
- package/src/sdk/sdk.ts +5 -5
- package/src/sdk/v1.ts +36 -0
- package/funcs/dataSourcesGetByName.d.ts.map +0 -1
- package/funcs/dataSourcesGetByName.js.map +0 -1
- package/models/operations/datasourcesgetbyname.d.ts +0 -29
- package/models/operations/datasourcesgetbyname.d.ts.map +0 -1
- package/models/operations/datasourcesgetbyname.js.map +0 -1
- package/src/models/operations/datasourcesgetbyname.ts +0 -77
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Information about a prompt linked to a tool.
|
|
12
|
+
*/
|
|
13
|
+
export type ToolPromptInfo = {
|
|
14
|
+
/**
|
|
15
|
+
* The ID of the prompt
|
|
16
|
+
*/
|
|
17
|
+
id: number;
|
|
18
|
+
/**
|
|
19
|
+
* The name of the prompt
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const ToolPromptInfo$inboundSchema: z.ZodType<
|
|
26
|
+
ToolPromptInfo,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
id: z.number().int(),
|
|
31
|
+
name: z.string(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type ToolPromptInfo$Outbound = {
|
|
36
|
+
id: number;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const ToolPromptInfo$outboundSchema: z.ZodType<
|
|
42
|
+
ToolPromptInfo$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
ToolPromptInfo
|
|
45
|
+
> = z.object({
|
|
46
|
+
id: z.number().int(),
|
|
47
|
+
name: z.string(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @internal
|
|
52
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
+
*/
|
|
54
|
+
export namespace ToolPromptInfo$ {
|
|
55
|
+
/** @deprecated use `ToolPromptInfo$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = ToolPromptInfo$inboundSchema;
|
|
57
|
+
/** @deprecated use `ToolPromptInfo$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = ToolPromptInfo$outboundSchema;
|
|
59
|
+
/** @deprecated use `ToolPromptInfo$Outbound` instead. */
|
|
60
|
+
export type Outbound = ToolPromptInfo$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function toolPromptInfoToJSON(toolPromptInfo: ToolPromptInfo): string {
|
|
64
|
+
return JSON.stringify(ToolPromptInfo$outboundSchema.parse(toolPromptInfo));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function toolPromptInfoFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<ToolPromptInfo, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => ToolPromptInfo$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'ToolPromptInfo' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -13,6 +13,12 @@ import {
|
|
|
13
13
|
ToolDefinition$Outbound,
|
|
14
14
|
ToolDefinition$outboundSchema,
|
|
15
15
|
} from "./tooldefinition.js";
|
|
16
|
+
import {
|
|
17
|
+
ToolPromptInfo,
|
|
18
|
+
ToolPromptInfo$inboundSchema,
|
|
19
|
+
ToolPromptInfo$Outbound,
|
|
20
|
+
ToolPromptInfo$outboundSchema,
|
|
21
|
+
} from "./toolpromptinfo.js";
|
|
16
22
|
|
|
17
23
|
/**
|
|
18
24
|
* A tool is a function that an agent can call to perform actions like accessing databases,
|
|
@@ -46,6 +52,10 @@ export type ToolResponse = {
|
|
|
46
52
|
* The name of the service to which the tool belongs
|
|
47
53
|
*/
|
|
48
54
|
serviceName?: string | null | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* IDs and names of the prompts linked to the tool
|
|
57
|
+
*/
|
|
58
|
+
promptsInfo?: Array<ToolPromptInfo> | null | undefined;
|
|
49
59
|
/**
|
|
50
60
|
* The timestamp of the most recent update to the service
|
|
51
61
|
*/
|
|
@@ -68,6 +78,7 @@ export const ToolResponse$inboundSchema: z.ZodType<
|
|
|
68
78
|
id: z.number().int(),
|
|
69
79
|
last_updated_comments: z.nullable(z.string()).optional(),
|
|
70
80
|
service_name: z.nullable(z.string()).optional(),
|
|
81
|
+
prompts_info: z.nullable(z.array(ToolPromptInfo$inboundSchema)).optional(),
|
|
71
82
|
last_updated: z.string().datetime({ offset: true }).transform(v =>
|
|
72
83
|
new Date(v)
|
|
73
84
|
),
|
|
@@ -77,6 +88,7 @@ export const ToolResponse$inboundSchema: z.ZodType<
|
|
|
77
88
|
"service_id": "serviceId",
|
|
78
89
|
"last_updated_comments": "lastUpdatedComments",
|
|
79
90
|
"service_name": "serviceName",
|
|
91
|
+
"prompts_info": "promptsInfo",
|
|
80
92
|
"last_updated": "lastUpdated",
|
|
81
93
|
"last_updated_by": "lastUpdatedBy",
|
|
82
94
|
});
|
|
@@ -90,6 +102,7 @@ export type ToolResponse$Outbound = {
|
|
|
90
102
|
id: number;
|
|
91
103
|
last_updated_comments?: string | null | undefined;
|
|
92
104
|
service_name?: string | null | undefined;
|
|
105
|
+
prompts_info?: Array<ToolPromptInfo$Outbound> | null | undefined;
|
|
93
106
|
last_updated: string;
|
|
94
107
|
last_updated_by: string;
|
|
95
108
|
};
|
|
@@ -106,6 +119,7 @@ export const ToolResponse$outboundSchema: z.ZodType<
|
|
|
106
119
|
id: z.number().int(),
|
|
107
120
|
lastUpdatedComments: z.nullable(z.string()).optional(),
|
|
108
121
|
serviceName: z.nullable(z.string()).optional(),
|
|
122
|
+
promptsInfo: z.nullable(z.array(ToolPromptInfo$outboundSchema)).optional(),
|
|
109
123
|
lastUpdated: z.date().transform(v => v.toISOString()),
|
|
110
124
|
lastUpdatedBy: z.string(),
|
|
111
125
|
}).transform((v) => {
|
|
@@ -113,6 +127,7 @@ export const ToolResponse$outboundSchema: z.ZodType<
|
|
|
113
127
|
serviceId: "service_id",
|
|
114
128
|
lastUpdatedComments: "last_updated_comments",
|
|
115
129
|
serviceName: "service_name",
|
|
130
|
+
promptsInfo: "prompts_info",
|
|
116
131
|
lastUpdated: "last_updated",
|
|
117
132
|
lastUpdatedBy: "last_updated_by",
|
|
118
133
|
});
|
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type DataSourcesDeleteRequest = {
|
|
12
|
-
|
|
12
|
+
dataSourceId: number;
|
|
13
13
|
reason: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -19,17 +19,17 @@ export const DataSourcesDeleteRequest$inboundSchema: z.ZodType<
|
|
|
19
19
|
z.ZodTypeDef,
|
|
20
20
|
unknown
|
|
21
21
|
> = z.object({
|
|
22
|
-
|
|
22
|
+
data_source_id: z.number().int(),
|
|
23
23
|
reason: z.string(),
|
|
24
24
|
}).transform((v) => {
|
|
25
25
|
return remap$(v, {
|
|
26
|
-
"
|
|
26
|
+
"data_source_id": "dataSourceId",
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
29
|
|
|
30
30
|
/** @internal */
|
|
31
31
|
export type DataSourcesDeleteRequest$Outbound = {
|
|
32
|
-
|
|
32
|
+
data_source_id: number;
|
|
33
33
|
reason: string;
|
|
34
34
|
};
|
|
35
35
|
|
|
@@ -39,11 +39,11 @@ export const DataSourcesDeleteRequest$outboundSchema: z.ZodType<
|
|
|
39
39
|
z.ZodTypeDef,
|
|
40
40
|
DataSourcesDeleteRequest
|
|
41
41
|
> = z.object({
|
|
42
|
-
|
|
42
|
+
dataSourceId: z.number().int(),
|
|
43
43
|
reason: z.string(),
|
|
44
44
|
}).transform((v) => {
|
|
45
45
|
return remap$(v, {
|
|
46
|
-
|
|
46
|
+
dataSourceId: "data_source_id",
|
|
47
47
|
});
|
|
48
48
|
});
|
|
49
49
|
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type DataSourcesGetByIdRequest = {
|
|
12
|
+
dataSourceId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const DataSourcesGetByIdRequest$inboundSchema: z.ZodType<
|
|
17
|
+
DataSourcesGetByIdRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
data_source_id: z.number().int(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"data_source_id": "dataSourceId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type DataSourcesGetByIdRequest$Outbound = {
|
|
30
|
+
data_source_id: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const DataSourcesGetByIdRequest$outboundSchema: z.ZodType<
|
|
35
|
+
DataSourcesGetByIdRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
DataSourcesGetByIdRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
dataSourceId: z.number().int(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
dataSourceId: "data_source_id",
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
export namespace DataSourcesGetByIdRequest$ {
|
|
51
|
+
/** @deprecated use `DataSourcesGetByIdRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = DataSourcesGetByIdRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `DataSourcesGetByIdRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = DataSourcesGetByIdRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `DataSourcesGetByIdRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = DataSourcesGetByIdRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function dataSourcesGetByIdRequestToJSON(
|
|
60
|
+
dataSourcesGetByIdRequest: DataSourcesGetByIdRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
DataSourcesGetByIdRequest$outboundSchema.parse(dataSourcesGetByIdRequest),
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export function dataSourcesGetByIdRequestFromJSON(
|
|
68
|
+
jsonString: string,
|
|
69
|
+
): SafeParseResult<DataSourcesGetByIdRequest, SDKValidationError> {
|
|
70
|
+
return safeParse(
|
|
71
|
+
jsonString,
|
|
72
|
+
(x) => DataSourcesGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
73
|
+
`Failed to parse 'DataSourcesGetByIdRequest' from JSON`,
|
|
74
|
+
);
|
|
75
|
+
}
|
|
@@ -17,7 +17,7 @@ export * from "./custommessagegetbyid.js";
|
|
|
17
17
|
export * from "./custommessagesdelete.js";
|
|
18
18
|
export * from "./custommessageslist.js";
|
|
19
19
|
export * from "./datasourcesdelete.js";
|
|
20
|
-
export * from "./
|
|
20
|
+
export * from "./datasourcesgetbyid.js";
|
|
21
21
|
export * from "./datasourceslist.js";
|
|
22
22
|
export * from "./eventslist.js";
|
|
23
23
|
export * from "./generatesessionrecordingurls.js";
|
package/src/sdk/datasources.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { dataSourcesCreate } from "../funcs/dataSourcesCreate.js";
|
|
6
6
|
import { dataSourcesDelete } from "../funcs/dataSourcesDelete.js";
|
|
7
|
-
import {
|
|
7
|
+
import { dataSourcesGetById } from "../funcs/dataSourcesGetById.js";
|
|
8
8
|
import { dataSourcesList } from "../funcs/dataSourcesList.js";
|
|
9
9
|
import { dataSourcesUpdate } from "../funcs/dataSourcesUpdate.js";
|
|
10
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
@@ -70,11 +70,11 @@ export class DataSources extends ClientSDK {
|
|
|
70
70
|
* @remarks
|
|
71
71
|
* Fetch a given data source, including its text.
|
|
72
72
|
*/
|
|
73
|
-
async
|
|
74
|
-
request: operations.
|
|
73
|
+
async getById(
|
|
74
|
+
request: operations.DataSourcesGetByIdRequest,
|
|
75
75
|
options?: RequestOptions,
|
|
76
76
|
): Promise<components.DataSourceDetailResponse> {
|
|
77
|
-
return unwrapAsync(
|
|
77
|
+
return unwrapAsync(dataSourcesGetById(
|
|
78
78
|
this,
|
|
79
79
|
request,
|
|
80
80
|
options,
|
package/src/sdk/sdk.ts
CHANGED
|
@@ -38,6 +38,11 @@ export class SyllableSDK extends ClientSDK {
|
|
|
38
38
|
return (this._dataSources ??= new DataSources(this._options));
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
private _v1?: V1;
|
|
42
|
+
get v1(): V1 {
|
|
43
|
+
return (this._v1 ??= new V1(this._options));
|
|
44
|
+
}
|
|
45
|
+
|
|
41
46
|
private _events?: Events;
|
|
42
47
|
get events(): Events {
|
|
43
48
|
return (this._events ??= new Events(this._options));
|
|
@@ -77,9 +82,4 @@ export class SyllableSDK extends ClientSDK {
|
|
|
77
82
|
get dashboards(): Dashboards {
|
|
78
83
|
return (this._dashboards ??= new Dashboards(this._options));
|
|
79
84
|
}
|
|
80
|
-
|
|
81
|
-
private _v1?: V1;
|
|
82
|
-
get v1(): V1 {
|
|
83
|
-
return (this._v1 ??= new V1(this._options));
|
|
84
|
-
}
|
|
85
85
|
}
|
package/src/sdk/v1.ts
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { v1Delete } from "../funcs/v1Delete.js";
|
|
6
|
+
import { v1GetById } from "../funcs/v1GetById.js";
|
|
5
7
|
import { v1PostGetDashboard } from "../funcs/v1PostGetDashboard.js";
|
|
6
8
|
import { v1PostListDashboard } from "../funcs/v1PostListDashboard.js";
|
|
7
9
|
import { v1PostSessionEventsDashboard } from "../funcs/v1PostSessionEventsDashboard.js";
|
|
@@ -14,6 +16,40 @@ import * as operations from "../models/operations/index.js";
|
|
|
14
16
|
import { unwrapAsync } from "../types/fp.js";
|
|
15
17
|
|
|
16
18
|
export class V1 extends ClientSDK {
|
|
19
|
+
/**
|
|
20
|
+
* Get Data Source
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Fetch a given data source, including its text.
|
|
24
|
+
*/
|
|
25
|
+
async getById(
|
|
26
|
+
request: operations.DataSourcesGetByIdRequest,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): Promise<components.DataSourceDetailResponse> {
|
|
29
|
+
return unwrapAsync(v1GetById(
|
|
30
|
+
this,
|
|
31
|
+
request,
|
|
32
|
+
options,
|
|
33
|
+
));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Delete Data Source
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* Delete a given data source.
|
|
41
|
+
*/
|
|
42
|
+
async delete(
|
|
43
|
+
request: operations.DataSourcesDeleteRequest,
|
|
44
|
+
options?: RequestOptions,
|
|
45
|
+
): Promise<any> {
|
|
46
|
+
return unwrapAsync(v1Delete(
|
|
47
|
+
this,
|
|
48
|
+
request,
|
|
49
|
+
options,
|
|
50
|
+
));
|
|
51
|
+
}
|
|
52
|
+
|
|
17
53
|
/**
|
|
18
54
|
* Post List Dashboards
|
|
19
55
|
*
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dataSourcesGetByName.d.ts","sourceRoot":"","sources":["../src/funcs/dataSourcesGetByName.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,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C,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7C,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type DataSourcesGetByNameRequest = {
|
|
5
|
-
dataSourceName: string;
|
|
6
|
-
};
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare const DataSourcesGetByNameRequest$inboundSchema: z.ZodType<DataSourcesGetByNameRequest, z.ZodTypeDef, unknown>;
|
|
9
|
-
/** @internal */
|
|
10
|
-
export type DataSourcesGetByNameRequest$Outbound = {
|
|
11
|
-
data_source_name: string;
|
|
12
|
-
};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const DataSourcesGetByNameRequest$outboundSchema: z.ZodType<DataSourcesGetByNameRequest$Outbound, z.ZodTypeDef, DataSourcesGetByNameRequest>;
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
-
*/
|
|
19
|
-
export declare namespace DataSourcesGetByNameRequest$ {
|
|
20
|
-
/** @deprecated use `DataSourcesGetByNameRequest$inboundSchema` instead. */
|
|
21
|
-
const inboundSchema: z.ZodType<DataSourcesGetByNameRequest, z.ZodTypeDef, unknown>;
|
|
22
|
-
/** @deprecated use `DataSourcesGetByNameRequest$outboundSchema` instead. */
|
|
23
|
-
const outboundSchema: z.ZodType<DataSourcesGetByNameRequest$Outbound, z.ZodTypeDef, DataSourcesGetByNameRequest>;
|
|
24
|
-
/** @deprecated use `DataSourcesGetByNameRequest$Outbound` instead. */
|
|
25
|
-
type Outbound = DataSourcesGetByNameRequest$Outbound;
|
|
26
|
-
}
|
|
27
|
-
export declare function dataSourcesGetByNameRequestToJSON(dataSourcesGetByNameRequest: DataSourcesGetByNameRequest): string;
|
|
28
|
-
export declare function dataSourcesGetByNameRequestFromJSON(jsonString: string): SafeParseResult<DataSourcesGetByNameRequest, SDKValidationError>;
|
|
29
|
-
//# sourceMappingURL=datasourcesgetbyname.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datasourcesgetbyname.d.ts","sourceRoot":"","sources":["../../src/models/operations/datasourcesgetbyname.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;AAErE,MAAM,MAAM,2BAA2B,GAAG;IACxC,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAO3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D;AAED,wBAAgB,iCAAiC,CAC/C,2BAA2B,EAAE,2BAA2B,GACvD,MAAM,CAMR;AAED,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"datasourcesgetbyname.js","sourceRoot":"","sources":["../../src/models/operations/datasourcesgetbyname.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwDH,8EAQC;AAED,kFAQC;AAxED,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAQjD,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,gBAAgB;KACrC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,kBAAkB;KACnC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C;AAED,SAAgB,iCAAiC,CAC/C,2BAAwD;IAExD,OAAO,IAAI,CAAC,SAAS,CACnB,kDAA0C,CAAC,KAAK,CAC9C,2BAA2B,CAC5B,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,mCAAmC,CACjD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iDAAyC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrE,yDAAyD,CAC1D,CAAC;AACJ,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
|
|
11
|
-
export type DataSourcesGetByNameRequest = {
|
|
12
|
-
dataSourceName: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** @internal */
|
|
16
|
-
export const DataSourcesGetByNameRequest$inboundSchema: z.ZodType<
|
|
17
|
-
DataSourcesGetByNameRequest,
|
|
18
|
-
z.ZodTypeDef,
|
|
19
|
-
unknown
|
|
20
|
-
> = z.object({
|
|
21
|
-
data_source_name: z.string(),
|
|
22
|
-
}).transform((v) => {
|
|
23
|
-
return remap$(v, {
|
|
24
|
-
"data_source_name": "dataSourceName",
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export type DataSourcesGetByNameRequest$Outbound = {
|
|
30
|
-
data_source_name: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export const DataSourcesGetByNameRequest$outboundSchema: z.ZodType<
|
|
35
|
-
DataSourcesGetByNameRequest$Outbound,
|
|
36
|
-
z.ZodTypeDef,
|
|
37
|
-
DataSourcesGetByNameRequest
|
|
38
|
-
> = z.object({
|
|
39
|
-
dataSourceName: z.string(),
|
|
40
|
-
}).transform((v) => {
|
|
41
|
-
return remap$(v, {
|
|
42
|
-
dataSourceName: "data_source_name",
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export namespace DataSourcesGetByNameRequest$ {
|
|
51
|
-
/** @deprecated use `DataSourcesGetByNameRequest$inboundSchema` instead. */
|
|
52
|
-
export const inboundSchema = DataSourcesGetByNameRequest$inboundSchema;
|
|
53
|
-
/** @deprecated use `DataSourcesGetByNameRequest$outboundSchema` instead. */
|
|
54
|
-
export const outboundSchema = DataSourcesGetByNameRequest$outboundSchema;
|
|
55
|
-
/** @deprecated use `DataSourcesGetByNameRequest$Outbound` instead. */
|
|
56
|
-
export type Outbound = DataSourcesGetByNameRequest$Outbound;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export function dataSourcesGetByNameRequestToJSON(
|
|
60
|
-
dataSourcesGetByNameRequest: DataSourcesGetByNameRequest,
|
|
61
|
-
): string {
|
|
62
|
-
return JSON.stringify(
|
|
63
|
-
DataSourcesGetByNameRequest$outboundSchema.parse(
|
|
64
|
-
dataSourcesGetByNameRequest,
|
|
65
|
-
),
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function dataSourcesGetByNameRequestFromJSON(
|
|
70
|
-
jsonString: string,
|
|
71
|
-
): SafeParseResult<DataSourcesGetByNameRequest, SDKValidationError> {
|
|
72
|
-
return safeParse(
|
|
73
|
-
jsonString,
|
|
74
|
-
(x) => DataSourcesGetByNameRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
-
`Failed to parse 'DataSourcesGetByNameRequest' from JSON`,
|
|
76
|
-
);
|
|
77
|
-
}
|