syllable-sdk 1.0.2-rc.5 → 1.0.2-rc.7
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/bin/mcp-server.js +17 -21
- package/bin/mcp-server.js.map +11 -11
- package/docs/sdks/incidents/README.md +0 -8
- package/docs/sdks/prompts/README.md +4 -2
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/incidentcreaterequest.d.ts +3 -1
- package/models/components/incidentcreaterequest.d.ts.map +1 -1
- package/models/components/incidentcreaterequest.js.map +1 -1
- package/models/components/incidentresponse.d.ts +3 -1
- package/models/components/incidentresponse.d.ts.map +1 -1
- package/models/components/incidentresponse.js.map +1 -1
- package/models/components/incidentupdaterequest.d.ts +3 -11
- package/models/components/incidentupdaterequest.d.ts.map +1 -1
- package/models/components/incidentupdaterequest.js +0 -8
- package/models/components/incidentupdaterequest.js.map +1 -1
- 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/promptresponse.d.ts +5 -5
- package/models/components/promptresponse.d.ts.map +1 -1
- package/models/components/promptresponse.js +2 -2
- package/models/components/promptresponse.js.map +1 -1
- package/models/components/promptupdaterequest.d.ts +5 -5
- package/models/components/promptupdaterequest.d.ts.map +1 -1
- package/models/components/promptupdaterequest.js +2 -2
- package/models/components/promptupdaterequest.js.map +1 -1
- package/openapi.json +37 -51
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/incidentcreaterequest.ts +3 -1
- package/src/models/components/incidentresponse.ts +3 -1
- package/src/models/components/incidentupdaterequest.ts +3 -23
- package/src/models/components/promptcreaterequest.ts +9 -0
- package/src/models/components/promptresponse.ts +7 -7
- package/src/models/components/promptupdaterequest.ts +7 -7
package/openapi.json
CHANGED
|
@@ -16530,7 +16530,8 @@
|
|
|
16530
16530
|
}
|
|
16531
16531
|
],
|
|
16532
16532
|
"title": "Sub Organization",
|
|
16533
|
-
"description": "The name of the sub-organization",
|
|
16533
|
+
"description": "The name of the sub-organization (DEPRECATED)",
|
|
16534
|
+
"deprecated": true,
|
|
16534
16535
|
"examples": [
|
|
16535
16536
|
"SubOrg A"
|
|
16536
16537
|
]
|
|
@@ -16682,7 +16683,8 @@
|
|
|
16682
16683
|
}
|
|
16683
16684
|
],
|
|
16684
16685
|
"title": "Sub Organization",
|
|
16685
|
-
"description": "The name of the sub-organization",
|
|
16686
|
+
"description": "The name of the sub-organization (DEPRECATED)",
|
|
16687
|
+
"deprecated": true,
|
|
16686
16688
|
"examples": [
|
|
16687
16689
|
"SubOrg A"
|
|
16688
16690
|
]
|
|
@@ -16849,7 +16851,8 @@
|
|
|
16849
16851
|
}
|
|
16850
16852
|
],
|
|
16851
16853
|
"title": "Sub Organization",
|
|
16852
|
-
"description": "The name of the sub-organization",
|
|
16854
|
+
"description": "The name of the sub-organization (DEPRECATED)",
|
|
16855
|
+
"deprecated": true,
|
|
16853
16856
|
"examples": [
|
|
16854
16857
|
"SubOrg A"
|
|
16855
16858
|
]
|
|
@@ -16861,38 +16864,6 @@
|
|
|
16861
16864
|
"examples": [
|
|
16862
16865
|
1
|
|
16863
16866
|
]
|
|
16864
|
-
},
|
|
16865
|
-
"created_at": {
|
|
16866
|
-
"anyOf": [
|
|
16867
|
-
{
|
|
16868
|
-
"type": "string",
|
|
16869
|
-
"format": "date-time"
|
|
16870
|
-
},
|
|
16871
|
-
{
|
|
16872
|
-
"type": "null"
|
|
16873
|
-
}
|
|
16874
|
-
],
|
|
16875
|
-
"title": "Created At",
|
|
16876
|
-
"description": "Creation time of the incident",
|
|
16877
|
-
"examples": [
|
|
16878
|
-
"2023-10-01T08:00:00Z"
|
|
16879
|
-
]
|
|
16880
|
-
},
|
|
16881
|
-
"updated_at": {
|
|
16882
|
-
"anyOf": [
|
|
16883
|
-
{
|
|
16884
|
-
"type": "string",
|
|
16885
|
-
"format": "date-time"
|
|
16886
|
-
},
|
|
16887
|
-
{
|
|
16888
|
-
"type": "null"
|
|
16889
|
-
}
|
|
16890
|
-
],
|
|
16891
|
-
"title": "Updated At",
|
|
16892
|
-
"description": "Last update time of the incident",
|
|
16893
|
-
"examples": [
|
|
16894
|
-
"2023-10-01T08:00:00Z"
|
|
16895
|
-
]
|
|
16896
16867
|
}
|
|
16897
16868
|
},
|
|
16898
16869
|
"type": "object",
|
|
@@ -21636,6 +21607,21 @@
|
|
|
21636
21607
|
false
|
|
21637
21608
|
]
|
|
21638
21609
|
},
|
|
21610
|
+
"edit_comments": {
|
|
21611
|
+
"anyOf": [
|
|
21612
|
+
{
|
|
21613
|
+
"type": "string"
|
|
21614
|
+
},
|
|
21615
|
+
{
|
|
21616
|
+
"type": "null"
|
|
21617
|
+
}
|
|
21618
|
+
],
|
|
21619
|
+
"title": "Edit Comments",
|
|
21620
|
+
"description": "The comments for the most recent edit to the prompt",
|
|
21621
|
+
"examples": [
|
|
21622
|
+
"Updated prompt text to include requirement to not answer questions that aren't about weather."
|
|
21623
|
+
]
|
|
21624
|
+
},
|
|
21639
21625
|
"include_default_tools": {
|
|
21640
21626
|
"type": "boolean",
|
|
21641
21627
|
"title": "Include Default Tools",
|
|
@@ -22020,14 +22006,6 @@
|
|
|
22020
22006
|
false
|
|
22021
22007
|
]
|
|
22022
22008
|
},
|
|
22023
|
-
"id": {
|
|
22024
|
-
"type": "integer",
|
|
22025
|
-
"title": "Id",
|
|
22026
|
-
"description": "The internal ID of the prompt",
|
|
22027
|
-
"examples": [
|
|
22028
|
-
1
|
|
22029
|
-
]
|
|
22030
|
-
},
|
|
22031
22009
|
"edit_comments": {
|
|
22032
22010
|
"anyOf": [
|
|
22033
22011
|
{
|
|
@@ -22043,6 +22021,14 @@
|
|
|
22043
22021
|
"Updated prompt text to include requirement to not answer questions that aren't about weather."
|
|
22044
22022
|
]
|
|
22045
22023
|
},
|
|
22024
|
+
"id": {
|
|
22025
|
+
"type": "integer",
|
|
22026
|
+
"title": "Id",
|
|
22027
|
+
"description": "The internal ID of the prompt",
|
|
22028
|
+
"examples": [
|
|
22029
|
+
1
|
|
22030
|
+
]
|
|
22031
|
+
},
|
|
22046
22032
|
"last_updated": {
|
|
22047
22033
|
"anyOf": [
|
|
22048
22034
|
{
|
|
@@ -22211,14 +22197,6 @@
|
|
|
22211
22197
|
false
|
|
22212
22198
|
]
|
|
22213
22199
|
},
|
|
22214
|
-
"id": {
|
|
22215
|
-
"type": "integer",
|
|
22216
|
-
"title": "Id",
|
|
22217
|
-
"description": "The internal ID of the prompt",
|
|
22218
|
-
"examples": [
|
|
22219
|
-
1
|
|
22220
|
-
]
|
|
22221
|
-
},
|
|
22222
22200
|
"edit_comments": {
|
|
22223
22201
|
"anyOf": [
|
|
22224
22202
|
{
|
|
@@ -22234,6 +22212,14 @@
|
|
|
22234
22212
|
"Updated prompt text to include requirement to not answer questions that aren't about weather."
|
|
22235
22213
|
]
|
|
22236
22214
|
},
|
|
22215
|
+
"id": {
|
|
22216
|
+
"type": "integer",
|
|
22217
|
+
"title": "Id",
|
|
22218
|
+
"description": "The internal ID of the prompt",
|
|
22219
|
+
"examples": [
|
|
22220
|
+
1
|
|
22221
|
+
]
|
|
22222
|
+
},
|
|
22237
22223
|
"include_default_tools": {
|
|
22238
22224
|
"type": "boolean",
|
|
22239
22225
|
"title": "Include Default Tools",
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "1.0.2-rc.
|
|
64
|
+
sdkVersion: "1.0.2-rc.7",
|
|
65
65
|
genVersion: "2.723.11",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.2-rc.7 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -45,7 +45,9 @@ export type IncidentCreateRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
};
|
|
@@ -45,7 +45,9 @@ export type IncidentResponse = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
/**
|
|
@@ -45,21 +45,15 @@ export type IncidentUpdateRequest = {
|
|
|
45
45
|
*/
|
|
46
46
|
subOrganizationId?: number | null | undefined;
|
|
47
47
|
/**
|
|
48
|
-
* The name of the sub-organization
|
|
48
|
+
* The name of the sub-organization (DEPRECATED)
|
|
49
|
+
*
|
|
50
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
49
51
|
*/
|
|
50
52
|
subOrganization?: string | null | undefined;
|
|
51
53
|
/**
|
|
52
54
|
* The ID of the incident to update
|
|
53
55
|
*/
|
|
54
56
|
id: number;
|
|
55
|
-
/**
|
|
56
|
-
* Creation time of the incident
|
|
57
|
-
*/
|
|
58
|
-
createdAt?: Date | null | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* Last update time of the incident
|
|
61
|
-
*/
|
|
62
|
-
updatedAt?: Date | null | undefined;
|
|
63
57
|
};
|
|
64
58
|
|
|
65
59
|
/** @internal */
|
|
@@ -82,12 +76,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
|
82
76
|
sub_organization_id: z.nullable(z.number().int()).optional(),
|
|
83
77
|
sub_organization: z.nullable(z.string()).optional(),
|
|
84
78
|
id: z.number().int(),
|
|
85
|
-
created_at: z.nullable(
|
|
86
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
87
|
-
).optional(),
|
|
88
|
-
updated_at: z.nullable(
|
|
89
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
90
|
-
).optional(),
|
|
91
79
|
}).transform((v) => {
|
|
92
80
|
return remap$(v, {
|
|
93
81
|
"start_datetime": "startDatetime",
|
|
@@ -97,8 +85,6 @@ export const IncidentUpdateRequest$inboundSchema: z.ZodType<
|
|
|
97
85
|
"organization_id": "organizationId",
|
|
98
86
|
"sub_organization_id": "subOrganizationId",
|
|
99
87
|
"sub_organization": "subOrganization",
|
|
100
|
-
"created_at": "createdAt",
|
|
101
|
-
"updated_at": "updatedAt",
|
|
102
88
|
});
|
|
103
89
|
});
|
|
104
90
|
|
|
@@ -114,8 +100,6 @@ export type IncidentUpdateRequest$Outbound = {
|
|
|
114
100
|
sub_organization_id?: number | null | undefined;
|
|
115
101
|
sub_organization?: string | null | undefined;
|
|
116
102
|
id: number;
|
|
117
|
-
created_at?: string | null | undefined;
|
|
118
|
-
updated_at?: string | null | undefined;
|
|
119
103
|
};
|
|
120
104
|
|
|
121
105
|
/** @internal */
|
|
@@ -134,8 +118,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
|
134
118
|
subOrganizationId: z.nullable(z.number().int()).optional(),
|
|
135
119
|
subOrganization: z.nullable(z.string()).optional(),
|
|
136
120
|
id: z.number().int(),
|
|
137
|
-
createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
138
|
-
updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(),
|
|
139
121
|
}).transform((v) => {
|
|
140
122
|
return remap$(v, {
|
|
141
123
|
startDatetime: "start_datetime",
|
|
@@ -145,8 +127,6 @@ export const IncidentUpdateRequest$outboundSchema: z.ZodType<
|
|
|
145
127
|
organizationId: "organization_id",
|
|
146
128
|
subOrganizationId: "sub_organization_id",
|
|
147
129
|
subOrganization: "sub_organization",
|
|
148
|
-
createdAt: "created_at",
|
|
149
|
-
updatedAt: "updated_at",
|
|
150
130
|
});
|
|
151
131
|
});
|
|
152
132
|
|
|
@@ -46,6 +46,10 @@ export type PromptCreateRequest = {
|
|
|
46
46
|
* Whether session end functionality is enabled for this prompt
|
|
47
47
|
*/
|
|
48
48
|
sessionEndEnabled?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* The comments for the most recent edit to the prompt
|
|
51
|
+
*/
|
|
52
|
+
editComments?: string | null | undefined;
|
|
49
53
|
/**
|
|
50
54
|
* Whether to include the default tools (`hangup`) in the list of tools for the prompt. If you disable this during creation, you might want to disable it during updates as well, otherwise the default tools will be added when updating the prompt.
|
|
51
55
|
*/
|
|
@@ -65,11 +69,13 @@ export const PromptCreateRequest$inboundSchema: z.ZodType<
|
|
|
65
69
|
tools: z.array(z.string()).optional(),
|
|
66
70
|
llm_config: PromptLlmConfig$inboundSchema,
|
|
67
71
|
session_end_enabled: z.boolean().default(false),
|
|
72
|
+
edit_comments: z.nullable(z.string()).optional(),
|
|
68
73
|
include_default_tools: z.boolean().default(true),
|
|
69
74
|
}).transform((v) => {
|
|
70
75
|
return remap$(v, {
|
|
71
76
|
"llm_config": "llmConfig",
|
|
72
77
|
"session_end_enabled": "sessionEndEnabled",
|
|
78
|
+
"edit_comments": "editComments",
|
|
73
79
|
"include_default_tools": "includeDefaultTools",
|
|
74
80
|
});
|
|
75
81
|
});
|
|
@@ -83,6 +89,7 @@ export type PromptCreateRequest$Outbound = {
|
|
|
83
89
|
tools?: Array<string> | undefined;
|
|
84
90
|
llm_config: PromptLlmConfig$Outbound;
|
|
85
91
|
session_end_enabled: boolean;
|
|
92
|
+
edit_comments?: string | null | undefined;
|
|
86
93
|
include_default_tools: boolean;
|
|
87
94
|
};
|
|
88
95
|
|
|
@@ -99,11 +106,13 @@ export const PromptCreateRequest$outboundSchema: z.ZodType<
|
|
|
99
106
|
tools: z.array(z.string()).optional(),
|
|
100
107
|
llmConfig: PromptLlmConfig$outboundSchema,
|
|
101
108
|
sessionEndEnabled: z.boolean().default(false),
|
|
109
|
+
editComments: z.nullable(z.string()).optional(),
|
|
102
110
|
includeDefaultTools: z.boolean().default(true),
|
|
103
111
|
}).transform((v) => {
|
|
104
112
|
return remap$(v, {
|
|
105
113
|
llmConfig: "llm_config",
|
|
106
114
|
sessionEndEnabled: "session_end_enabled",
|
|
115
|
+
editComments: "edit_comments",
|
|
107
116
|
includeDefaultTools: "include_default_tools",
|
|
108
117
|
});
|
|
109
118
|
});
|
|
@@ -60,14 +60,14 @@ export type PromptResponse = {
|
|
|
60
60
|
* Whether session end functionality is enabled for this prompt
|
|
61
61
|
*/
|
|
62
62
|
sessionEndEnabled?: boolean | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* The internal ID of the prompt
|
|
65
|
-
*/
|
|
66
|
-
id: number;
|
|
67
63
|
/**
|
|
68
64
|
* The comments for the most recent edit to the prompt
|
|
69
65
|
*/
|
|
70
66
|
editComments?: string | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* The internal ID of the prompt
|
|
69
|
+
*/
|
|
70
|
+
id: number;
|
|
71
71
|
/**
|
|
72
72
|
* The last updated date of the prompt
|
|
73
73
|
*/
|
|
@@ -103,8 +103,8 @@ export const PromptResponse$inboundSchema: z.ZodType<
|
|
|
103
103
|
tools: z.array(z.string()).optional(),
|
|
104
104
|
llm_config: PromptLlmConfig$inboundSchema,
|
|
105
105
|
session_end_enabled: z.boolean().default(false),
|
|
106
|
-
id: z.number().int(),
|
|
107
106
|
edit_comments: z.nullable(z.string()).optional(),
|
|
107
|
+
id: z.number().int(),
|
|
108
108
|
last_updated: z.nullable(z.string()),
|
|
109
109
|
last_updated_by: z.nullable(z.string()).optional(),
|
|
110
110
|
agent_count: z.nullable(z.number().int()).optional(),
|
|
@@ -132,8 +132,8 @@ export type PromptResponse$Outbound = {
|
|
|
132
132
|
tools?: Array<string> | undefined;
|
|
133
133
|
llm_config: PromptLlmConfig$Outbound;
|
|
134
134
|
session_end_enabled: boolean;
|
|
135
|
-
id: number;
|
|
136
135
|
edit_comments?: string | null | undefined;
|
|
136
|
+
id: number;
|
|
137
137
|
last_updated: string | null;
|
|
138
138
|
last_updated_by?: string | null | undefined;
|
|
139
139
|
agent_count?: number | null | undefined;
|
|
@@ -154,8 +154,8 @@ export const PromptResponse$outboundSchema: z.ZodType<
|
|
|
154
154
|
tools: z.array(z.string()).optional(),
|
|
155
155
|
llmConfig: PromptLlmConfig$outboundSchema,
|
|
156
156
|
sessionEndEnabled: z.boolean().default(false),
|
|
157
|
-
id: z.number().int(),
|
|
158
157
|
editComments: z.nullable(z.string()).optional(),
|
|
158
|
+
id: z.number().int(),
|
|
159
159
|
lastUpdated: z.nullable(z.string()),
|
|
160
160
|
lastUpdatedBy: z.nullable(z.string()).optional(),
|
|
161
161
|
agentCount: z.nullable(z.number().int()).optional(),
|
|
@@ -46,14 +46,14 @@ export type PromptUpdateRequest = {
|
|
|
46
46
|
* Whether session end functionality is enabled for this prompt
|
|
47
47
|
*/
|
|
48
48
|
sessionEndEnabled?: boolean | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* The internal ID of the prompt
|
|
51
|
-
*/
|
|
52
|
-
id: number;
|
|
53
49
|
/**
|
|
54
50
|
* The comments for the most recent edit to the prompt
|
|
55
51
|
*/
|
|
56
52
|
editComments?: string | null | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* The internal ID of the prompt
|
|
55
|
+
*/
|
|
56
|
+
id: number;
|
|
57
57
|
/**
|
|
58
58
|
* Whether to include the default tools (`hangup`) 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.
|
|
59
59
|
*/
|
|
@@ -73,8 +73,8 @@ export const PromptUpdateRequest$inboundSchema: z.ZodType<
|
|
|
73
73
|
tools: z.array(z.string()).optional(),
|
|
74
74
|
llm_config: PromptLlmConfig$inboundSchema,
|
|
75
75
|
session_end_enabled: z.boolean().default(false),
|
|
76
|
-
id: z.number().int(),
|
|
77
76
|
edit_comments: z.nullable(z.string()).optional(),
|
|
77
|
+
id: z.number().int(),
|
|
78
78
|
include_default_tools: z.boolean().default(true),
|
|
79
79
|
}).transform((v) => {
|
|
80
80
|
return remap$(v, {
|
|
@@ -94,8 +94,8 @@ export type PromptUpdateRequest$Outbound = {
|
|
|
94
94
|
tools?: Array<string> | undefined;
|
|
95
95
|
llm_config: PromptLlmConfig$Outbound;
|
|
96
96
|
session_end_enabled: boolean;
|
|
97
|
-
id: number;
|
|
98
97
|
edit_comments?: string | null | undefined;
|
|
98
|
+
id: number;
|
|
99
99
|
include_default_tools: boolean;
|
|
100
100
|
};
|
|
101
101
|
|
|
@@ -112,8 +112,8 @@ export const PromptUpdateRequest$outboundSchema: z.ZodType<
|
|
|
112
112
|
tools: z.array(z.string()).optional(),
|
|
113
113
|
llmConfig: PromptLlmConfig$outboundSchema,
|
|
114
114
|
sessionEndEnabled: z.boolean().default(false),
|
|
115
|
-
id: z.number().int(),
|
|
116
115
|
editComments: z.nullable(z.string()).optional(),
|
|
116
|
+
id: z.number().int(),
|
|
117
117
|
includeDefaultTools: z.boolean().default(true),
|
|
118
118
|
}).transform((v) => {
|
|
119
119
|
return remap$(v, {
|