syllable-sdk 0.1.0-alpha.47 → 0.1.0-alpha.49
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 +18 -4
- package/docs/sdks/fullsummary/README.md +85 -0
- package/docs/sdks/languagegroups/README.md +465 -0
- package/docs/sdks/v1/README.md +0 -158
- package/funcs/languageGroupsCreate.d.ts +16 -0
- package/funcs/languageGroupsCreate.d.ts.map +1 -0
- package/funcs/languageGroupsCreate.js +102 -0
- package/funcs/languageGroupsCreate.js.map +1 -0
- package/funcs/{v1Delete.d.ts → languageGroupsDelete.d.ts} +4 -4
- package/funcs/languageGroupsDelete.d.ts.map +1 -0
- package/funcs/{v1Delete.js → languageGroupsDelete.js} +9 -12
- package/funcs/languageGroupsDelete.js.map +1 -0
- package/funcs/languageGroupsGetById.d.ts +17 -0
- package/funcs/languageGroupsGetById.d.ts.map +1 -0
- package/funcs/languageGroupsGetById.js +105 -0
- package/funcs/languageGroupsGetById.js.map +1 -0
- package/funcs/{v1GetById.d.ts → languageGroupsList.d.ts} +4 -4
- package/funcs/languageGroupsList.d.ts.map +1 -0
- package/funcs/languageGroupsList.js +114 -0
- package/funcs/languageGroupsList.js.map +1 -0
- package/funcs/languageGroupsUpdate.d.ts +16 -0
- package/funcs/languageGroupsUpdate.d.ts.map +1 -0
- package/funcs/languageGroupsUpdate.js +102 -0
- package/funcs/languageGroupsUpdate.js.map +1 -0
- package/funcs/sessionsFullSummaryGetById.d.ts +14 -0
- package/funcs/sessionsFullSummaryGetById.d.ts.map +1 -0
- package/funcs/{v1GetById.js → sessionsFullSummaryGetById.js} +9 -12
- package/funcs/sessionsFullSummaryGetById.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/agentcreate.d.ts +7 -0
- package/models/components/agentcreate.d.ts.map +1 -1
- package/models/components/agentcreate.js +4 -0
- package/models/components/agentcreate.js.map +1 -1
- package/models/components/agentlanguage.d.ts +41 -0
- package/models/components/agentlanguage.d.ts.map +1 -0
- package/models/components/agentlanguage.js +62 -0
- package/models/components/agentlanguage.js.map +1 -0
- package/models/components/agentresponse.d.ts +13 -0
- package/models/components/agentresponse.d.ts.map +1 -1
- package/models/components/agentresponse.js +9 -0
- package/models/components/agentresponse.js.map +1 -1
- package/models/components/agentupdate.d.ts +7 -0
- package/models/components/agentupdate.d.ts.map +1 -1
- package/models/components/agentupdate.js +4 -0
- package/models/components/agentupdate.js.map +1 -1
- package/models/components/agentvoice.d.ts +29 -5
- package/models/components/agentvoice.d.ts.map +1 -1
- package/models/components/agentvoice.js +19 -5
- package/models/components/agentvoice.js.map +1 -1
- package/models/components/agentvoicedisplayname.d.ts +142 -0
- package/models/components/agentvoicedisplayname.d.ts.map +1 -0
- package/models/components/agentvoicedisplayname.js +89 -0
- package/models/components/agentvoicedisplayname.js.map +1 -0
- package/models/components/agentvoicegender.d.ts +34 -0
- package/models/components/agentvoicegender.d.ts.map +1 -0
- package/models/components/agentvoicegender.js +53 -0
- package/models/components/agentvoicegender.js.map +1 -0
- package/models/components/agentvoicemodel.d.ts +46 -0
- package/models/components/agentvoicemodel.d.ts.map +1 -0
- package/models/components/agentvoicemodel.js +57 -0
- package/models/components/agentvoicemodel.js.map +1 -0
- package/models/components/agentvoicevarname.d.ts +30 -0
- package/models/components/agentvoicevarname.d.ts.map +1 -1
- package/models/components/agentvoicevarname.js +10 -0
- package/models/components/agentvoicevarname.js.map +1 -1
- package/models/components/index.d.ts +13 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +13 -1
- package/models/components/index.js.map +1 -1
- package/models/components/languagecode.d.ts +49 -0
- package/models/components/languagecode.d.ts.map +1 -0
- package/models/components/languagecode.js +58 -0
- package/models/components/languagecode.js.map +1 -0
- package/models/components/languageconfig.d.ts +56 -0
- package/models/components/languageconfig.d.ts.map +1 -0
- package/models/components/languageconfig.js +83 -0
- package/models/components/languageconfig.js.map +1 -0
- package/models/components/languagegroupcreaterequest.d.ts +48 -0
- package/models/components/languagegroupcreaterequest.d.ts.map +1 -0
- package/models/components/languagegroupcreaterequest.js +77 -0
- package/models/components/languagegroupcreaterequest.js.map +1 -0
- package/models/components/languagegroupproperties.d.ts +37 -0
- package/models/components/languagegroupproperties.d.ts.map +1 -0
- package/models/components/languagegroupproperties.js +53 -0
- package/models/components/languagegroupproperties.js.map +1 -0
- package/models/components/languagegroupresponse.d.ts +68 -0
- package/models/components/languagegroupresponse.d.ts.map +1 -0
- package/models/components/languagegroupresponse.js +91 -0
- package/models/components/languagegroupresponse.js.map +1 -0
- package/models/components/languagegroupupdaterequest.d.ts +58 -0
- package/models/components/languagegroupupdaterequest.d.ts.map +1 -0
- package/models/components/languagegroupupdaterequest.js +83 -0
- package/models/components/languagegroupupdaterequest.js.map +1 -0
- package/models/components/listresponselanguagegroupresponse.d.ts +38 -0
- package/models/components/listresponselanguagegroupresponse.d.ts.map +1 -0
- package/models/components/listresponselanguagegroupresponse.js +81 -0
- package/models/components/listresponselanguagegroupresponse.js.map +1 -0
- package/models/components/promptcreaterequest.d.ts +5 -0
- package/models/components/promptcreaterequest.d.ts.map +1 -1
- package/models/components/promptcreaterequest.js +4 -0
- package/models/components/promptcreaterequest.js.map +1 -1
- package/models/components/promptupdaterequest.d.ts +5 -0
- package/models/components/promptupdaterequest.d.ts.map +1 -1
- package/models/components/promptupdaterequest.js +4 -0
- package/models/components/promptupdaterequest.js.map +1 -1
- package/models/components/sessionrecordingresponse.d.ts +0 -5
- package/models/components/sessionrecordingresponse.d.ts.map +1 -1
- package/models/components/sessionrecordingresponse.js +0 -2
- package/models/components/sessionrecordingresponse.js.map +1 -1
- package/models/components/sessionsummaryresponse.d.ts +40 -0
- package/models/components/sessionsummaryresponse.d.ts.map +1 -0
- package/models/components/sessionsummaryresponse.js +61 -0
- package/models/components/sessionsummaryresponse.js.map +1 -0
- package/models/components/{sttprovider.d.ts → ttsprovider.d.ts} +10 -10
- package/models/components/{sttprovider.d.ts.map → ttsprovider.d.ts.map} +1 -1
- package/models/components/{sttprovider.js → ttsprovider.js} +14 -14
- package/models/components/{sttprovider.js.map → ttsprovider.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/languagegroupsdelete.d.ts +31 -0
- package/models/operations/languagegroupsdelete.d.ts.map +1 -0
- package/models/operations/languagegroupsdelete.js +70 -0
- package/models/operations/languagegroupsdelete.js.map +1 -0
- package/models/operations/languagegroupsgetbyid.d.ts +29 -0
- package/models/operations/languagegroupsgetbyid.d.ts.map +1 -0
- package/models/operations/languagegroupsgetbyid.js +68 -0
- package/models/operations/languagegroupsgetbyid.js.map +1 -0
- package/models/operations/languagegroupslist.d.ts +46 -0
- package/models/operations/languagegroupslist.d.ts.map +1 -0
- package/models/operations/languagegroupslist.js +103 -0
- package/models/operations/languagegroupslist.js.map +1 -0
- package/models/operations/sessionfullsummarygetbyid.d.ts +29 -0
- package/models/operations/sessionfullsummarygetbyid.d.ts.map +1 -0
- package/models/operations/sessionfullsummarygetbyid.js +68 -0
- package/models/operations/sessionfullsummarygetbyid.js.map +1 -0
- package/openapi.json +1163 -198
- package/package.json +1 -1
- package/sdk/fullsummary.d.ts +10 -0
- package/sdk/fullsummary.d.ts.map +1 -0
- package/sdk/fullsummary.js +19 -0
- package/sdk/fullsummary.js.map +1 -0
- package/sdk/languagegroups.d.ts +41 -0
- package/sdk/languagegroups.d.ts.map +1 -0
- package/sdk/languagegroups.js +62 -0
- package/sdk/languagegroups.js.map +1 -0
- package/sdk/sdk.d.ts +5 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +7 -3
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +3 -0
- package/sdk/sessions.d.ts.map +1 -1
- package/sdk/sessions.js +4 -0
- package/sdk/sessions.js.map +1 -1
- package/sdk/v1.d.ts +0 -14
- package/sdk/v1.d.ts.map +1 -1
- package/sdk/v1.js +0 -20
- package/sdk/v1.js.map +1 -1
- package/src/funcs/languageGroupsCreate.ts +136 -0
- package/src/funcs/{v1Delete.ts → languageGroupsDelete.ts} +15 -11
- package/src/funcs/languageGroupsGetById.ts +146 -0
- package/src/funcs/languageGroupsList.ts +148 -0
- package/src/funcs/languageGroupsUpdate.ts +136 -0
- package/src/funcs/{v1GetById.ts → sessionsFullSummaryGetById.ts} +13 -13
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentcreate.ts +11 -0
- package/src/models/components/agentlanguage.ts +80 -0
- package/src/models/components/agentresponse.ts +26 -0
- package/src/models/components/agentupdate.ts +11 -0
- package/src/models/components/agentvoice.ts +63 -12
- package/src/models/components/agentvoicedisplayname.ts +75 -0
- package/src/models/components/agentvoicegender.ts +39 -0
- package/src/models/components/agentvoicemodel.ts +43 -0
- package/src/models/components/agentvoicevarname.ts +10 -0
- package/src/models/components/index.ts +13 -1
- package/src/models/components/languagecode.ts +42 -0
- package/src/models/components/languageconfig.ts +122 -0
- package/src/models/components/languagegroupcreaterequest.ts +107 -0
- package/src/models/components/languagegroupproperties.ts +38 -0
- package/src/models/components/languagegroupresponse.ts +141 -0
- package/src/models/components/languagegroupupdaterequest.ts +123 -0
- package/src/models/components/listresponselanguagegroupresponse.ts +104 -0
- package/src/models/components/promptcreaterequest.ts +9 -0
- package/src/models/components/promptupdaterequest.ts +9 -0
- package/src/models/components/sessionrecordingresponse.ts +0 -7
- package/src/models/components/sessionsummaryresponse.ts +79 -0
- package/src/models/components/ttsprovider.ts +38 -0
- package/src/models/operations/index.ts +4 -0
- package/src/models/operations/languagegroupsdelete.ts +81 -0
- package/src/models/operations/languagegroupsgetbyid.ts +77 -0
- package/src/models/operations/languagegroupslist.ts +126 -0
- package/src/models/operations/sessionfullsummarygetbyid.ts +77 -0
- package/src/sdk/fullsummary.ts +25 -0
- package/src/sdk/languagegroups.ts +100 -0
- package/src/sdk/sdk.ts +11 -5
- package/src/sdk/sessions.ts +6 -0
- package/src/sdk/v1.ts +0 -36
- package/funcs/v1Delete.d.ts.map +0 -1
- package/funcs/v1Delete.js.map +0 -1
- package/funcs/v1GetById.d.ts.map +0 -1
- package/funcs/v1GetById.js.map +0 -1
- package/src/models/components/sttprovider.ts +0 -38
|
@@ -44,6 +44,10 @@ export type PromptUpdateRequest = {
|
|
|
44
44
|
* The comments for the most recent edit to the prompt
|
|
45
45
|
*/
|
|
46
46
|
editComments?: string | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Whether to include the default tools (`hangup`, `summary`) in the list of tools for the prompt. If you remove one of the default tools from your prompt, you might want to disable this option so that the tool is not added again when updated.
|
|
49
|
+
*/
|
|
50
|
+
includeDefaultTools?: boolean | undefined;
|
|
47
51
|
};
|
|
48
52
|
|
|
49
53
|
/** @internal */
|
|
@@ -60,10 +64,12 @@ export const PromptUpdateRequest$inboundSchema: z.ZodType<
|
|
|
60
64
|
llm_config: PromptLlmConfig$inboundSchema,
|
|
61
65
|
id: z.number().int(),
|
|
62
66
|
edit_comments: z.nullable(z.string()).optional(),
|
|
67
|
+
include_default_tools: z.boolean().default(true),
|
|
63
68
|
}).transform((v) => {
|
|
64
69
|
return remap$(v, {
|
|
65
70
|
"llm_config": "llmConfig",
|
|
66
71
|
"edit_comments": "editComments",
|
|
72
|
+
"include_default_tools": "includeDefaultTools",
|
|
67
73
|
});
|
|
68
74
|
});
|
|
69
75
|
|
|
@@ -77,6 +83,7 @@ export type PromptUpdateRequest$Outbound = {
|
|
|
77
83
|
llm_config: PromptLlmConfig$Outbound;
|
|
78
84
|
id: number;
|
|
79
85
|
edit_comments?: string | null | undefined;
|
|
86
|
+
include_default_tools: boolean;
|
|
80
87
|
};
|
|
81
88
|
|
|
82
89
|
/** @internal */
|
|
@@ -93,10 +100,12 @@ export const PromptUpdateRequest$outboundSchema: z.ZodType<
|
|
|
93
100
|
llmConfig: PromptLlmConfig$outboundSchema,
|
|
94
101
|
id: z.number().int(),
|
|
95
102
|
editComments: z.nullable(z.string()).optional(),
|
|
103
|
+
includeDefaultTools: z.boolean().default(true),
|
|
96
104
|
}).transform((v) => {
|
|
97
105
|
return remap$(v, {
|
|
98
106
|
llmConfig: "llm_config",
|
|
99
107
|
editComments: "edit_comments",
|
|
108
|
+
includeDefaultTools: "include_default_tools",
|
|
100
109
|
});
|
|
101
110
|
});
|
|
102
111
|
|
|
@@ -20,10 +20,6 @@ export type SessionRecordingResponse = {
|
|
|
20
20
|
* List of recording URLs
|
|
21
21
|
*/
|
|
22
22
|
recordings?: Array<string> | null | undefined;
|
|
23
|
-
/**
|
|
24
|
-
* Expiration timestamp of the URLs
|
|
25
|
-
*/
|
|
26
|
-
expiration?: string | null | undefined;
|
|
27
23
|
};
|
|
28
24
|
|
|
29
25
|
/** @internal */
|
|
@@ -34,7 +30,6 @@ export const SessionRecordingResponse$inboundSchema: z.ZodType<
|
|
|
34
30
|
> = z.object({
|
|
35
31
|
session_id: z.nullable(z.string()).optional(),
|
|
36
32
|
recordings: z.nullable(z.array(z.string())).optional(),
|
|
37
|
-
expiration: z.nullable(z.string()).optional(),
|
|
38
33
|
}).transform((v) => {
|
|
39
34
|
return remap$(v, {
|
|
40
35
|
"session_id": "sessionId",
|
|
@@ -45,7 +40,6 @@ export const SessionRecordingResponse$inboundSchema: z.ZodType<
|
|
|
45
40
|
export type SessionRecordingResponse$Outbound = {
|
|
46
41
|
session_id?: string | null | undefined;
|
|
47
42
|
recordings?: Array<string> | null | undefined;
|
|
48
|
-
expiration?: string | null | undefined;
|
|
49
43
|
};
|
|
50
44
|
|
|
51
45
|
/** @internal */
|
|
@@ -56,7 +50,6 @@ export const SessionRecordingResponse$outboundSchema: z.ZodType<
|
|
|
56
50
|
> = z.object({
|
|
57
51
|
sessionId: z.nullable(z.string()).optional(),
|
|
58
52
|
recordings: z.nullable(z.array(z.string())).optional(),
|
|
59
|
-
expiration: z.nullable(z.string()).optional(),
|
|
60
53
|
}).transform((v) => {
|
|
61
54
|
return remap$(v, {
|
|
62
55
|
sessionId: "session_id",
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
* Summary for a given session.
|
|
12
|
+
*/
|
|
13
|
+
export type SessionSummaryResponse = {
|
|
14
|
+
/**
|
|
15
|
+
* The AI summary of the session
|
|
16
|
+
*/
|
|
17
|
+
summary?: string | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The AI rating of the session
|
|
20
|
+
*/
|
|
21
|
+
rating?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const SessionSummaryResponse$inboundSchema: z.ZodType<
|
|
26
|
+
SessionSummaryResponse,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
summary: z.nullable(z.string()).optional(),
|
|
31
|
+
rating: z.nullable(z.string()).optional(),
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export type SessionSummaryResponse$Outbound = {
|
|
36
|
+
summary?: string | null | undefined;
|
|
37
|
+
rating?: string | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/** @internal */
|
|
41
|
+
export const SessionSummaryResponse$outboundSchema: z.ZodType<
|
|
42
|
+
SessionSummaryResponse$Outbound,
|
|
43
|
+
z.ZodTypeDef,
|
|
44
|
+
SessionSummaryResponse
|
|
45
|
+
> = z.object({
|
|
46
|
+
summary: z.nullable(z.string()).optional(),
|
|
47
|
+
rating: z.nullable(z.string()).optional(),
|
|
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 SessionSummaryResponse$ {
|
|
55
|
+
/** @deprecated use `SessionSummaryResponse$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = SessionSummaryResponse$inboundSchema;
|
|
57
|
+
/** @deprecated use `SessionSummaryResponse$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = SessionSummaryResponse$outboundSchema;
|
|
59
|
+
/** @deprecated use `SessionSummaryResponse$Outbound` instead. */
|
|
60
|
+
export type Outbound = SessionSummaryResponse$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function sessionSummaryResponseToJSON(
|
|
64
|
+
sessionSummaryResponse: SessionSummaryResponse,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
SessionSummaryResponse$outboundSchema.parse(sessionSummaryResponse),
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function sessionSummaryResponseFromJSON(
|
|
72
|
+
jsonString: string,
|
|
73
|
+
): SafeParseResult<SessionSummaryResponse, SDKValidationError> {
|
|
74
|
+
return safeParse(
|
|
75
|
+
jsonString,
|
|
76
|
+
(x) => SessionSummaryResponse$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
+
`Failed to parse 'SessionSummaryResponse' from JSON`,
|
|
78
|
+
);
|
|
79
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* TTS provider for an agent voice.
|
|
10
|
+
*/
|
|
11
|
+
export const TtsProvider = {
|
|
12
|
+
OpenAI: "OpenAI",
|
|
13
|
+
ElevenLabs: "ElevenLabs",
|
|
14
|
+
Google: "Google",
|
|
15
|
+
} as const;
|
|
16
|
+
/**
|
|
17
|
+
* TTS provider for an agent voice.
|
|
18
|
+
*/
|
|
19
|
+
export type TtsProvider = ClosedEnum<typeof TtsProvider>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const TtsProvider$inboundSchema: z.ZodNativeEnum<typeof TtsProvider> = z
|
|
23
|
+
.nativeEnum(TtsProvider);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const TtsProvider$outboundSchema: z.ZodNativeEnum<typeof TtsProvider> =
|
|
27
|
+
TtsProvider$inboundSchema;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @internal
|
|
31
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
|
+
*/
|
|
33
|
+
export namespace TtsProvider$ {
|
|
34
|
+
/** @deprecated use `TtsProvider$inboundSchema` instead. */
|
|
35
|
+
export const inboundSchema = TtsProvider$inboundSchema;
|
|
36
|
+
/** @deprecated use `TtsProvider$outboundSchema` instead. */
|
|
37
|
+
export const outboundSchema = TtsProvider$outboundSchema;
|
|
38
|
+
}
|
|
@@ -28,6 +28,9 @@ export * from "./insightsworkflowlist.js";
|
|
|
28
28
|
export * from "./insightsworkflowupdate.js";
|
|
29
29
|
export * from "./insighttoolgetbyid.js";
|
|
30
30
|
export * from "./insighttoollist.js";
|
|
31
|
+
export * from "./languagegroupsdelete.js";
|
|
32
|
+
export * from "./languagegroupsgetbyid.js";
|
|
33
|
+
export * from "./languagegroupslist.js";
|
|
31
34
|
export * from "./postgetdashboard.js";
|
|
32
35
|
export * from "./postlistdashboard.js";
|
|
33
36
|
export * from "./promptsdelete.js";
|
|
@@ -37,6 +40,7 @@ export * from "./promptslist.js";
|
|
|
37
40
|
export * from "./servicedelete.js";
|
|
38
41
|
export * from "./servicelist.js";
|
|
39
42
|
export * from "./servicesgetbyid.js";
|
|
43
|
+
export * from "./sessionfullsummarygetbyid.js";
|
|
40
44
|
export * from "./sessiongetbyid.js";
|
|
41
45
|
export * from "./sessionlabelgetbyid.js";
|
|
42
46
|
export * from "./sessionlabelslist.js";
|
|
@@ -0,0 +1,81 @@
|
|
|
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 LanguageGroupsDeleteRequest = {
|
|
12
|
+
languageGroupId: number;
|
|
13
|
+
reason: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const LanguageGroupsDeleteRequest$inboundSchema: z.ZodType<
|
|
18
|
+
LanguageGroupsDeleteRequest,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
language_group_id: z.number().int(),
|
|
23
|
+
reason: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"language_group_id": "languageGroupId",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
/** @internal */
|
|
31
|
+
export type LanguageGroupsDeleteRequest$Outbound = {
|
|
32
|
+
language_group_id: number;
|
|
33
|
+
reason: string;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const LanguageGroupsDeleteRequest$outboundSchema: z.ZodType<
|
|
38
|
+
LanguageGroupsDeleteRequest$Outbound,
|
|
39
|
+
z.ZodTypeDef,
|
|
40
|
+
LanguageGroupsDeleteRequest
|
|
41
|
+
> = z.object({
|
|
42
|
+
languageGroupId: z.number().int(),
|
|
43
|
+
reason: z.string(),
|
|
44
|
+
}).transform((v) => {
|
|
45
|
+
return remap$(v, {
|
|
46
|
+
languageGroupId: "language_group_id",
|
|
47
|
+
});
|
|
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 LanguageGroupsDeleteRequest$ {
|
|
55
|
+
/** @deprecated use `LanguageGroupsDeleteRequest$inboundSchema` instead. */
|
|
56
|
+
export const inboundSchema = LanguageGroupsDeleteRequest$inboundSchema;
|
|
57
|
+
/** @deprecated use `LanguageGroupsDeleteRequest$outboundSchema` instead. */
|
|
58
|
+
export const outboundSchema = LanguageGroupsDeleteRequest$outboundSchema;
|
|
59
|
+
/** @deprecated use `LanguageGroupsDeleteRequest$Outbound` instead. */
|
|
60
|
+
export type Outbound = LanguageGroupsDeleteRequest$Outbound;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function languageGroupsDeleteRequestToJSON(
|
|
64
|
+
languageGroupsDeleteRequest: LanguageGroupsDeleteRequest,
|
|
65
|
+
): string {
|
|
66
|
+
return JSON.stringify(
|
|
67
|
+
LanguageGroupsDeleteRequest$outboundSchema.parse(
|
|
68
|
+
languageGroupsDeleteRequest,
|
|
69
|
+
),
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function languageGroupsDeleteRequestFromJSON(
|
|
74
|
+
jsonString: string,
|
|
75
|
+
): SafeParseResult<LanguageGroupsDeleteRequest, SDKValidationError> {
|
|
76
|
+
return safeParse(
|
|
77
|
+
jsonString,
|
|
78
|
+
(x) => LanguageGroupsDeleteRequest$inboundSchema.parse(JSON.parse(x)),
|
|
79
|
+
`Failed to parse 'LanguageGroupsDeleteRequest' from JSON`,
|
|
80
|
+
);
|
|
81
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 LanguageGroupsGetByIdRequest = {
|
|
12
|
+
languageGroupId: number;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const LanguageGroupsGetByIdRequest$inboundSchema: z.ZodType<
|
|
17
|
+
LanguageGroupsGetByIdRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
language_group_id: z.number().int(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"language_group_id": "languageGroupId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type LanguageGroupsGetByIdRequest$Outbound = {
|
|
30
|
+
language_group_id: number;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const LanguageGroupsGetByIdRequest$outboundSchema: z.ZodType<
|
|
35
|
+
LanguageGroupsGetByIdRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
LanguageGroupsGetByIdRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
languageGroupId: z.number().int(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
languageGroupId: "language_group_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 LanguageGroupsGetByIdRequest$ {
|
|
51
|
+
/** @deprecated use `LanguageGroupsGetByIdRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = LanguageGroupsGetByIdRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `LanguageGroupsGetByIdRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = LanguageGroupsGetByIdRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `LanguageGroupsGetByIdRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = LanguageGroupsGetByIdRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function languageGroupsGetByIdRequestToJSON(
|
|
60
|
+
languageGroupsGetByIdRequest: LanguageGroupsGetByIdRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
LanguageGroupsGetByIdRequest$outboundSchema.parse(
|
|
64
|
+
languageGroupsGetByIdRequest,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function languageGroupsGetByIdRequestFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<LanguageGroupsGetByIdRequest, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => LanguageGroupsGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'LanguageGroupsGetByIdRequest' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type LanguageGroupsListRequest = {
|
|
13
|
+
page?: number | null | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
|
+
searchFields?: Array<components.LanguageGroupProperties> | undefined;
|
|
16
|
+
searchFieldValues?: Array<string> | undefined;
|
|
17
|
+
orderBy?: components.LanguageGroupProperties | null | undefined;
|
|
18
|
+
orderByDirection?: components.OrderByDirection | null | undefined;
|
|
19
|
+
fields?: Array<components.LanguageGroupProperties> | null | undefined;
|
|
20
|
+
startDatetime?: string | null | undefined;
|
|
21
|
+
endDatetime?: string | null | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const LanguageGroupsListRequest$inboundSchema: z.ZodType<
|
|
26
|
+
LanguageGroupsListRequest,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
unknown
|
|
29
|
+
> = z.object({
|
|
30
|
+
page: z.nullable(z.number().int()).optional(),
|
|
31
|
+
limit: z.number().int().default(25),
|
|
32
|
+
search_fields: z.array(components.LanguageGroupProperties$inboundSchema)
|
|
33
|
+
.optional(),
|
|
34
|
+
search_field_values: z.array(z.string()).optional(),
|
|
35
|
+
order_by: z.nullable(components.LanguageGroupProperties$inboundSchema)
|
|
36
|
+
.optional(),
|
|
37
|
+
order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
|
|
38
|
+
.optional(),
|
|
39
|
+
fields: z.nullable(z.array(components.LanguageGroupProperties$inboundSchema))
|
|
40
|
+
.optional(),
|
|
41
|
+
start_datetime: z.nullable(z.string()).optional(),
|
|
42
|
+
end_datetime: z.nullable(z.string()).optional(),
|
|
43
|
+
}).transform((v) => {
|
|
44
|
+
return remap$(v, {
|
|
45
|
+
"search_fields": "searchFields",
|
|
46
|
+
"search_field_values": "searchFieldValues",
|
|
47
|
+
"order_by": "orderBy",
|
|
48
|
+
"order_by_direction": "orderByDirection",
|
|
49
|
+
"start_datetime": "startDatetime",
|
|
50
|
+
"end_datetime": "endDatetime",
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
/** @internal */
|
|
55
|
+
export type LanguageGroupsListRequest$Outbound = {
|
|
56
|
+
page?: number | null | undefined;
|
|
57
|
+
limit: number;
|
|
58
|
+
search_fields?: Array<string> | undefined;
|
|
59
|
+
search_field_values?: Array<string> | undefined;
|
|
60
|
+
order_by?: string | null | undefined;
|
|
61
|
+
order_by_direction?: string | null | undefined;
|
|
62
|
+
fields?: Array<string> | null | undefined;
|
|
63
|
+
start_datetime?: string | null | undefined;
|
|
64
|
+
end_datetime?: string | null | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const LanguageGroupsListRequest$outboundSchema: z.ZodType<
|
|
69
|
+
LanguageGroupsListRequest$Outbound,
|
|
70
|
+
z.ZodTypeDef,
|
|
71
|
+
LanguageGroupsListRequest
|
|
72
|
+
> = z.object({
|
|
73
|
+
page: z.nullable(z.number().int()).optional(),
|
|
74
|
+
limit: z.number().int().default(25),
|
|
75
|
+
searchFields: z.array(components.LanguageGroupProperties$outboundSchema)
|
|
76
|
+
.optional(),
|
|
77
|
+
searchFieldValues: z.array(z.string()).optional(),
|
|
78
|
+
orderBy: z.nullable(components.LanguageGroupProperties$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
|
|
81
|
+
.optional(),
|
|
82
|
+
fields: z.nullable(z.array(components.LanguageGroupProperties$outboundSchema))
|
|
83
|
+
.optional(),
|
|
84
|
+
startDatetime: z.nullable(z.string()).optional(),
|
|
85
|
+
endDatetime: z.nullable(z.string()).optional(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return remap$(v, {
|
|
88
|
+
searchFields: "search_fields",
|
|
89
|
+
searchFieldValues: "search_field_values",
|
|
90
|
+
orderBy: "order_by",
|
|
91
|
+
orderByDirection: "order_by_direction",
|
|
92
|
+
startDatetime: "start_datetime",
|
|
93
|
+
endDatetime: "end_datetime",
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @internal
|
|
99
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
100
|
+
*/
|
|
101
|
+
export namespace LanguageGroupsListRequest$ {
|
|
102
|
+
/** @deprecated use `LanguageGroupsListRequest$inboundSchema` instead. */
|
|
103
|
+
export const inboundSchema = LanguageGroupsListRequest$inboundSchema;
|
|
104
|
+
/** @deprecated use `LanguageGroupsListRequest$outboundSchema` instead. */
|
|
105
|
+
export const outboundSchema = LanguageGroupsListRequest$outboundSchema;
|
|
106
|
+
/** @deprecated use `LanguageGroupsListRequest$Outbound` instead. */
|
|
107
|
+
export type Outbound = LanguageGroupsListRequest$Outbound;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function languageGroupsListRequestToJSON(
|
|
111
|
+
languageGroupsListRequest: LanguageGroupsListRequest,
|
|
112
|
+
): string {
|
|
113
|
+
return JSON.stringify(
|
|
114
|
+
LanguageGroupsListRequest$outboundSchema.parse(languageGroupsListRequest),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function languageGroupsListRequestFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<LanguageGroupsListRequest, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => LanguageGroupsListRequest$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'LanguageGroupsListRequest' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
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 SessionFullSummaryGetByIdRequest = {
|
|
12
|
+
sessionId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export const SessionFullSummaryGetByIdRequest$inboundSchema: z.ZodType<
|
|
17
|
+
SessionFullSummaryGetByIdRequest,
|
|
18
|
+
z.ZodTypeDef,
|
|
19
|
+
unknown
|
|
20
|
+
> = z.object({
|
|
21
|
+
session_id: z.string(),
|
|
22
|
+
}).transform((v) => {
|
|
23
|
+
return remap$(v, {
|
|
24
|
+
"session_id": "sessionId",
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type SessionFullSummaryGetByIdRequest$Outbound = {
|
|
30
|
+
session_id: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
/** @internal */
|
|
34
|
+
export const SessionFullSummaryGetByIdRequest$outboundSchema: z.ZodType<
|
|
35
|
+
SessionFullSummaryGetByIdRequest$Outbound,
|
|
36
|
+
z.ZodTypeDef,
|
|
37
|
+
SessionFullSummaryGetByIdRequest
|
|
38
|
+
> = z.object({
|
|
39
|
+
sessionId: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
sessionId: "session_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 SessionFullSummaryGetByIdRequest$ {
|
|
51
|
+
/** @deprecated use `SessionFullSummaryGetByIdRequest$inboundSchema` instead. */
|
|
52
|
+
export const inboundSchema = SessionFullSummaryGetByIdRequest$inboundSchema;
|
|
53
|
+
/** @deprecated use `SessionFullSummaryGetByIdRequest$outboundSchema` instead. */
|
|
54
|
+
export const outboundSchema = SessionFullSummaryGetByIdRequest$outboundSchema;
|
|
55
|
+
/** @deprecated use `SessionFullSummaryGetByIdRequest$Outbound` instead. */
|
|
56
|
+
export type Outbound = SessionFullSummaryGetByIdRequest$Outbound;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function sessionFullSummaryGetByIdRequestToJSON(
|
|
60
|
+
sessionFullSummaryGetByIdRequest: SessionFullSummaryGetByIdRequest,
|
|
61
|
+
): string {
|
|
62
|
+
return JSON.stringify(
|
|
63
|
+
SessionFullSummaryGetByIdRequest$outboundSchema.parse(
|
|
64
|
+
sessionFullSummaryGetByIdRequest,
|
|
65
|
+
),
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function sessionFullSummaryGetByIdRequestFromJSON(
|
|
70
|
+
jsonString: string,
|
|
71
|
+
): SafeParseResult<SessionFullSummaryGetByIdRequest, SDKValidationError> {
|
|
72
|
+
return safeParse(
|
|
73
|
+
jsonString,
|
|
74
|
+
(x) => SessionFullSummaryGetByIdRequest$inboundSchema.parse(JSON.parse(x)),
|
|
75
|
+
`Failed to parse 'SessionFullSummaryGetByIdRequest' from JSON`,
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { sessionsFullSummaryGetById } from "../funcs/sessionsFullSummaryGetById.js";
|
|
6
|
+
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
|
+
import * as components from "../models/components/index.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
10
|
+
|
|
11
|
+
export class FullSummary extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Get Full Session Summary By Id
|
|
14
|
+
*/
|
|
15
|
+
async getById(
|
|
16
|
+
request: operations.SessionFullSummaryGetByIdRequest,
|
|
17
|
+
options?: RequestOptions,
|
|
18
|
+
): Promise<components.SessionSummaryResponse> {
|
|
19
|
+
return unwrapAsync(sessionsFullSummaryGetById(
|
|
20
|
+
this,
|
|
21
|
+
request,
|
|
22
|
+
options,
|
|
23
|
+
));
|
|
24
|
+
}
|
|
25
|
+
}
|