@steuerboard/mcp 0.0.7 → 0.1.0
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 +11 -23
- package/bin/mcp-server.js +892 -326
- package/bin/mcp-server.js.map +61 -49
- package/esm/src/funcs/adminClientsCreateClient.d.ts +1 -1
- package/esm/src/funcs/adminClientsCreateClient.d.ts.map +1 -1
- package/esm/src/funcs/adminClientsCreateClient.js +6 -8
- package/esm/src/funcs/adminClientsCreateClient.js.map +1 -1
- package/esm/src/funcs/adminClientsGetClient.js +4 -6
- package/esm/src/funcs/adminClientsGetClient.js.map +1 -1
- package/esm/src/funcs/adminClientsListClients.js +3 -5
- package/esm/src/funcs/adminClientsListClients.js.map +1 -1
- package/esm/src/funcs/{authGetV1Me.d.ts → authMe.d.ts} +3 -3
- package/esm/src/funcs/authMe.d.ts.map +1 -0
- package/esm/src/funcs/{authGetV1Me.js → authMe.js} +5 -5
- package/esm/src/funcs/authMe.js.map +1 -0
- package/esm/src/funcs/filesCreateFile.js +31 -33
- package/esm/src/funcs/filesCreateFile.js.map +1 -1
- package/esm/src/funcs/filesDeleteFile.js +4 -6
- package/esm/src/funcs/filesDeleteFile.js.map +1 -1
- package/esm/src/funcs/filesGetFile.js +4 -4
- package/esm/src/funcs/filesGetFile.js.map +1 -1
- package/esm/src/funcs/filesListFiles.js +3 -5
- package/esm/src/funcs/filesListFiles.js.map +1 -1
- package/esm/src/funcs/filesUpdateFile.js +4 -4
- package/esm/src/funcs/filesUpdateFile.js.map +1 -1
- package/esm/src/funcs/{healthCheckGetV1.d.ts → healthIndex.d.ts} +3 -3
- package/esm/src/funcs/{authGetV1Me.d.ts.map → healthIndex.d.ts.map} +1 -1
- package/esm/src/funcs/{healthCheckGetV1.js → healthIndex.js} +5 -5
- package/esm/src/funcs/healthIndex.js.map +1 -0
- package/esm/src/funcs/{healthCheckGetV1Ping.d.ts → healthPing.d.ts} +3 -3
- package/esm/src/funcs/healthPing.d.ts.map +1 -0
- package/esm/src/funcs/{healthCheckGetV1Ping.js → healthPing.js} +5 -5
- package/esm/src/funcs/healthPing.js.map +1 -0
- package/esm/src/funcs/tasksCreateTask.js +5 -1
- package/esm/src/funcs/tasksCreateTask.js.map +1 -1
- package/esm/src/funcs/tasksDeleteTask.js +8 -4
- package/esm/src/funcs/tasksDeleteTask.js.map +1 -1
- package/esm/src/funcs/tasksGetTask.js +8 -4
- package/esm/src/funcs/tasksGetTask.js.map +1 -1
- package/esm/src/funcs/tasksListTasks.d.ts +1 -1
- package/esm/src/funcs/tasksListTasks.d.ts.map +1 -1
- package/esm/src/funcs/tasksListTasks.js +14 -8
- package/esm/src/funcs/tasksListTasks.js.map +1 -1
- package/esm/src/funcs/tasksUpdateTask.js +5 -1
- package/esm/src/funcs/tasksUpdateTask.js.map +1 -1
- package/esm/src/funcs/workspacesCreateWorkspace.d.ts +16 -0
- package/esm/src/funcs/workspacesCreateWorkspace.d.ts.map +1 -0
- package/esm/src/funcs/workspacesCreateWorkspace.js +92 -0
- package/esm/src/funcs/workspacesCreateWorkspace.js.map +1 -0
- package/esm/src/funcs/workspacesGetWorkspace.js +4 -6
- package/esm/src/funcs/workspacesGetWorkspace.js.map +1 -1
- package/esm/src/funcs/workspacesListWorkspaces.js +4 -4
- package/esm/src/funcs/workspacesListWorkspaces.js.map +1 -1
- package/esm/src/lib/config.d.ts +3 -3
- package/esm/src/lib/config.d.ts.map +1 -1
- package/esm/src/lib/config.js +4 -6
- package/esm/src/lib/config.js.map +1 -1
- package/esm/src/mcp-server/mcp-server.js +1 -1
- package/esm/src/mcp-server/mcp-server.js.map +1 -1
- package/esm/src/mcp-server/server.d.ts.map +1 -1
- package/esm/src/mcp-server/server.js +22 -19
- package/esm/src/mcp-server/server.js.map +1 -1
- package/esm/src/mcp-server/tools/adminClientsCreateClient.d.ts +1 -1
- package/esm/src/mcp-server/tools/adminClientsCreateClient.js +1 -1
- package/esm/src/mcp-server/tools/adminClientsCreateClient.js.map +1 -1
- package/esm/src/mcp-server/tools/authMe.d.ts +3 -0
- package/esm/src/mcp-server/tools/authMe.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/{healthCheckGetV1.js → authMe.js} +6 -6
- package/esm/src/mcp-server/tools/authMe.js.map +1 -0
- package/esm/src/mcp-server/tools/healthIndex.d.ts +3 -0
- package/esm/src/mcp-server/tools/healthIndex.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/{authGetV1Me.js → healthIndex.js} +6 -6
- package/esm/src/mcp-server/tools/healthIndex.js.map +1 -0
- package/esm/src/mcp-server/tools/healthPing.d.ts +3 -0
- package/esm/src/mcp-server/tools/healthPing.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/{healthCheckGetV1Ping.js → healthPing.js} +5 -5
- package/esm/src/mcp-server/tools/healthPing.js.map +1 -0
- package/esm/src/mcp-server/tools/tasksListTasks.d.ts +1 -1
- package/esm/src/mcp-server/tools/tasksListTasks.js +1 -1
- package/esm/src/mcp-server/tools/tasksListTasks.js.map +1 -1
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts +7 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.d.ts.map +1 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js +28 -0
- package/esm/src/mcp-server/tools/workspacesCreateWorkspace.js.map +1 -0
- package/esm/src/models/autherror.d.ts +13 -0
- package/esm/src/models/autherror.d.ts.map +1 -0
- package/esm/src/models/autherror.js +17 -0
- package/esm/src/models/autherror.js.map +1 -0
- package/esm/src/models/badrequest.d.ts +13 -0
- package/esm/src/models/badrequest.d.ts.map +1 -0
- package/esm/src/models/badrequest.js +17 -0
- package/esm/src/models/badrequest.js.map +1 -0
- package/esm/src/models/client.d.ts +3 -3
- package/esm/src/models/client.d.ts.map +1 -1
- package/esm/src/models/client.js +2 -2
- package/esm/src/models/client.js.map +1 -1
- package/esm/src/models/clientcreate.d.ts +3 -3
- package/esm/src/models/clientcreate.d.ts.map +1 -1
- package/esm/src/models/clientcreate.js +2 -2
- package/esm/src/models/clientcreate.js.map +1 -1
- package/esm/src/models/createclientop.d.ts +19 -8
- package/esm/src/models/createclientop.d.ts.map +1 -1
- package/esm/src/models/createclientop.js +17 -4
- package/esm/src/models/createclientop.js.map +1 -1
- package/esm/src/models/createfileop.d.ts +29 -9
- package/esm/src/models/createfileop.d.ts.map +1 -1
- package/esm/src/models/createfileop.js +29 -5
- package/esm/src/models/createfileop.js.map +1 -1
- package/esm/src/models/createtaskop.d.ts +25 -4
- package/esm/src/models/createtaskop.d.ts.map +1 -1
- package/esm/src/models/createtaskop.js +22 -3
- package/esm/src/models/createtaskop.js.map +1 -1
- package/esm/src/models/createworkspaceop.d.ts +59 -0
- package/esm/src/models/createworkspaceop.d.ts.map +1 -0
- package/esm/src/models/createworkspaceop.js +57 -0
- package/esm/src/models/createworkspaceop.js.map +1 -0
- package/esm/src/models/deletefileop.d.ts +19 -12
- package/esm/src/models/deletefileop.d.ts.map +1 -1
- package/esm/src/models/deletefileop.js +20 -7
- package/esm/src/models/deletefileop.js.map +1 -1
- package/esm/src/models/deletetaskop.d.ts +20 -4
- package/esm/src/models/deletetaskop.d.ts.map +1 -1
- package/esm/src/models/deletetaskop.js +21 -3
- package/esm/src/models/deletetaskop.js.map +1 -1
- package/esm/src/models/getclientop.d.ts +17 -12
- package/esm/src/models/getclientop.d.ts.map +1 -1
- package/esm/src/models/getclientop.js +18 -7
- package/esm/src/models/getclientop.js.map +1 -1
- package/esm/src/models/getfileop.d.ts +21 -8
- package/esm/src/models/getfileop.d.ts.map +1 -1
- package/esm/src/models/getfileop.js +19 -4
- package/esm/src/models/getfileop.js.map +1 -1
- package/esm/src/models/gettaskop.d.ts +20 -4
- package/esm/src/models/gettaskop.d.ts.map +1 -1
- package/esm/src/models/gettaskop.js +21 -3
- package/esm/src/models/gettaskop.js.map +1 -1
- package/esm/src/models/getworkspaceop.d.ts +19 -12
- package/esm/src/models/getworkspaceop.d.ts.map +1 -1
- package/esm/src/models/getworkspaceop.js +20 -7
- package/esm/src/models/getworkspaceop.js.map +1 -1
- package/esm/src/models/indexop.d.ts +18 -0
- package/esm/src/models/indexop.d.ts.map +1 -0
- package/esm/src/models/indexop.js +16 -0
- package/esm/src/models/indexop.js.map +1 -0
- package/esm/src/models/listclientsop.d.ts +27 -25
- package/esm/src/models/listclientsop.d.ts.map +1 -1
- package/esm/src/models/listclientsop.js +25 -17
- package/esm/src/models/listclientsop.js.map +1 -1
- package/esm/src/models/listfilesop.d.ts +20 -16
- package/esm/src/models/listfilesop.d.ts.map +1 -1
- package/esm/src/models/listfilesop.js +21 -12
- package/esm/src/models/listfilesop.js.map +1 -1
- package/esm/src/models/listtasksop.d.ts +33 -8
- package/esm/src/models/listtasksop.d.ts.map +1 -1
- package/esm/src/models/listtasksop.js +41 -8
- package/esm/src/models/listtasksop.js.map +1 -1
- package/esm/src/models/listworkspacesop.d.ts +20 -16
- package/esm/src/models/listworkspacesop.d.ts.map +1 -1
- package/esm/src/models/listworkspacesop.js +21 -11
- package/esm/src/models/listworkspacesop.js.map +1 -1
- package/esm/src/models/meop.d.ts +41 -0
- package/esm/src/models/meop.d.ts.map +1 -0
- package/esm/src/models/meop.js +38 -0
- package/esm/src/models/meop.js.map +1 -0
- package/esm/src/models/notfound.d.ts +13 -0
- package/esm/src/models/notfound.d.ts.map +1 -0
- package/esm/src/models/notfound.js +18 -0
- package/esm/src/models/notfound.js.map +1 -0
- package/esm/src/models/paginatedclients.d.ts +9 -0
- package/esm/src/models/paginatedclients.d.ts.map +1 -0
- package/esm/src/models/paginatedclients.js +11 -0
- package/esm/src/models/paginatedclients.js.map +1 -0
- package/esm/src/models/paginatedfiles.d.ts +9 -0
- package/esm/src/models/paginatedfiles.d.ts.map +1 -0
- package/esm/src/models/paginatedfiles.js +11 -0
- package/esm/src/models/paginatedfiles.js.map +1 -0
- package/esm/src/models/paginatedtasks.d.ts +9 -0
- package/esm/src/models/paginatedtasks.d.ts.map +1 -0
- package/esm/src/models/paginatedtasks.js +11 -0
- package/esm/src/models/paginatedtasks.js.map +1 -0
- package/esm/src/models/paginatedworkspaces.d.ts +9 -0
- package/esm/src/models/paginatedworkspaces.d.ts.map +1 -0
- package/esm/src/models/paginatedworkspaces.js +11 -0
- package/esm/src/models/paginatedworkspaces.js.map +1 -0
- package/esm/src/models/pingop.d.ts +18 -0
- package/esm/src/models/pingop.d.ts.map +1 -0
- package/esm/src/models/pingop.js +16 -0
- package/esm/src/models/pingop.js.map +1 -0
- package/esm/src/models/ratelimit.d.ts +13 -0
- package/esm/src/models/ratelimit.d.ts.map +1 -0
- package/esm/src/models/ratelimit.js +17 -0
- package/esm/src/models/ratelimit.js.map +1 -0
- package/esm/src/models/updatefileop.d.ts +22 -9
- package/esm/src/models/updatefileop.d.ts.map +1 -1
- package/esm/src/models/updatefileop.js +20 -5
- package/esm/src/models/updatefileop.js.map +1 -1
- package/esm/src/models/updatetaskop.d.ts +20 -4
- package/esm/src/models/updatetaskop.d.ts.map +1 -1
- package/esm/src/models/updatetaskop.js +21 -3
- package/esm/src/models/updatetaskop.js.map +1 -1
- package/esm/src/models/workspacecreate.d.ts +6 -0
- package/esm/src/models/workspacecreate.d.ts.map +1 -0
- package/esm/src/models/workspacecreate.js +8 -0
- package/esm/src/models/workspacecreate.js.map +1 -0
- package/manifest.json +8 -4
- package/package.json +1 -1
- package/src/funcs/adminClientsCreateClient.ts +10 -9
- package/src/funcs/adminClientsGetClient.ts +6 -5
- package/src/funcs/adminClientsListClients.ts +6 -5
- package/src/funcs/{authGetV1Me.ts → authMe.ts} +11 -10
- package/src/funcs/filesCreateFile.ts +41 -39
- package/src/funcs/filesDeleteFile.ts +7 -5
- package/src/funcs/filesGetFile.ts +7 -3
- package/src/funcs/filesListFiles.ts +7 -5
- package/src/funcs/filesUpdateFile.ts +7 -3
- package/src/funcs/{healthCheckGetV1.ts → healthIndex.ts} +9 -7
- package/src/funcs/{healthCheckGetV1Ping.ts → healthPing.ts} +9 -10
- package/src/funcs/tasksCreateTask.ts +10 -1
- package/src/funcs/tasksDeleteTask.ts +11 -2
- package/src/funcs/tasksGetTask.ts +11 -2
- package/src/funcs/tasksListTasks.ts +20 -9
- package/src/funcs/tasksUpdateTask.ts +10 -1
- package/src/funcs/workspacesCreateWorkspace.ts +175 -0
- package/src/funcs/workspacesGetWorkspace.ts +7 -5
- package/src/funcs/workspacesListWorkspaces.ts +8 -4
- package/src/lib/config.ts +41 -43
- package/src/mcp-server/mcp-server.ts +10 -10
- package/src/mcp-server/server.ts +77 -72
- package/src/mcp-server/tools/adminClientsCreateClient.ts +1 -1
- package/src/mcp-server/tools/{authGetV1Me.ts → authMe.ts} +4 -4
- package/src/mcp-server/tools/{healthCheckGetV1.ts → healthIndex.ts} +4 -4
- package/src/mcp-server/tools/{healthCheckGetV1Ping.ts → healthPing.ts} +4 -4
- package/src/mcp-server/tools/tasksListTasks.ts +1 -1
- package/src/mcp-server/tools/workspacesCreateWorkspace.ts +37 -0
- package/src/models/autherror.ts +32 -0
- package/src/models/badrequest.ts +35 -0
- package/src/models/client.ts +4 -4
- package/src/models/clientcreate.ts +6 -4
- package/src/models/createclientop.ts +44 -20
- package/src/models/createfileop.ts +78 -26
- package/src/models/createtaskop.ts +59 -10
- package/src/models/createworkspaceop.ts +158 -0
- package/src/models/deletefileop.ts +41 -30
- package/src/models/deletetaskop.ts +43 -10
- package/src/models/getclientop.ts +38 -30
- package/src/models/getfileop.ts +47 -20
- package/src/models/gettaskop.ts +43 -10
- package/src/models/getworkspaceop.ts +41 -30
- package/src/models/indexop.ts +39 -0
- package/src/models/listclientsop.ts +56 -47
- package/src/models/listfilesop.ts +42 -34
- package/src/models/listtasksop.ts +72 -14
- package/src/models/listworkspacesop.ts +45 -35
- package/src/models/meop.ts +96 -0
- package/src/models/notfound.ts +32 -0
- package/src/models/paginatedclients.ts +18 -0
- package/src/models/paginatedfiles.ts +18 -0
- package/src/models/paginatedtasks.ts +18 -0
- package/src/models/paginatedworkspaces.ts +21 -0
- package/src/models/pingop.ts +39 -0
- package/src/models/ratelimit.ts +32 -0
- package/src/models/updatefileop.ts +49 -22
- package/src/models/updatetaskop.ts +41 -7
- package/src/models/workspacecreate.ts +15 -0
- package/esm/src/funcs/authGetV1Me.js.map +0 -1
- package/esm/src/funcs/healthCheckGetV1.d.ts.map +0 -1
- package/esm/src/funcs/healthCheckGetV1.js.map +0 -1
- package/esm/src/funcs/healthCheckGetV1Ping.d.ts.map +0 -1
- package/esm/src/funcs/healthCheckGetV1Ping.js.map +0 -1
- package/esm/src/mcp-server/tools/authGetV1Me.d.ts +0 -3
- package/esm/src/mcp-server/tools/authGetV1Me.d.ts.map +0 -1
- package/esm/src/mcp-server/tools/authGetV1Me.js.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts +0 -3
- package/esm/src/mcp-server/tools/healthCheckGetV1.d.ts.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1.js.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts +0 -3
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.d.ts.map +0 -1
- package/esm/src/mcp-server/tools/healthCheckGetV1Ping.js.map +0 -1
- package/esm/src/models/getv1meop.d.ts +0 -22
- package/esm/src/models/getv1meop.d.ts.map +0 -1
- package/esm/src/models/getv1meop.js +0 -20
- package/esm/src/models/getv1meop.js.map +0 -1
- package/esm/src/models/getv1op.d.ts +0 -16
- package/esm/src/models/getv1op.d.ts.map +0 -1
- package/esm/src/models/getv1op.js +0 -14
- package/esm/src/models/getv1op.js.map +0 -1
- package/esm/src/models/getv1pingop.d.ts +0 -16
- package/esm/src/models/getv1pingop.d.ts.map +0 -1
- package/esm/src/models/getv1pingop.js +0 -14
- package/esm/src/models/getv1pingop.js.map +0 -1
- package/src/models/getv1meop.ts +0 -50
- package/src/models/getv1op.ts +0 -36
- package/src/models/getv1pingop.ts +0 -36
package/bin/mcp-server.js
CHANGED
|
@@ -40754,15 +40754,13 @@ function serverURLFromOptions(options) {
|
|
|
40754
40754
|
var ServerList, SDK_METADATA;
|
|
40755
40755
|
var init_config = __esm(() => {
|
|
40756
40756
|
init_url();
|
|
40757
|
-
ServerList = [
|
|
40758
|
-
"https://api.steuerboard.com"
|
|
40759
|
-
];
|
|
40757
|
+
ServerList = ["https://api.steuerboard.com"];
|
|
40760
40758
|
SDK_METADATA = {
|
|
40761
40759
|
language: "typescript",
|
|
40762
40760
|
openapiDocVersion: "0.1.0",
|
|
40763
|
-
sdkVersion: "0.0
|
|
40764
|
-
genVersion: "2.
|
|
40765
|
-
userAgent: "speakeasy-sdk/mcp-typescript 0.0
|
|
40761
|
+
sdkVersion: "0.1.0",
|
|
40762
|
+
genVersion: "2.709.0",
|
|
40763
|
+
userAgent: "speakeasy-sdk/mcp-typescript 0.1.0 2.709.0 0.1.0 @steuerboard/mcp"
|
|
40766
40764
|
};
|
|
40767
40765
|
});
|
|
40768
40766
|
|
|
@@ -41874,6 +41872,9 @@ var init_schemas = __esm(() => {
|
|
|
41874
41872
|
function json(codes, schema, options) {
|
|
41875
41873
|
return { ...options, enc: "json", codes, schema };
|
|
41876
41874
|
}
|
|
41875
|
+
function nil(codes, schema, options) {
|
|
41876
|
+
return { ...options, enc: "nil", codes, schema };
|
|
41877
|
+
}
|
|
41877
41878
|
function match(...matchers) {
|
|
41878
41879
|
return async function matchFunc(response, request, options) {
|
|
41879
41880
|
let raw;
|
|
@@ -42158,10 +42159,10 @@ var init_security = __esm(() => {
|
|
|
42158
42159
|
});
|
|
42159
42160
|
|
|
42160
42161
|
// src/models/clientcreate.ts
|
|
42161
|
-
var
|
|
42162
|
+
var ClientCreateClientType$zodSchema, Address$zodSchema, ClientCreate$zodSchema;
|
|
42162
42163
|
var init_clientcreate = __esm(() => {
|
|
42163
42164
|
init_zod();
|
|
42164
|
-
|
|
42165
|
+
ClientCreateClientType$zodSchema = enumType([
|
|
42165
42166
|
"natural_person",
|
|
42166
42167
|
"individual_enterprise",
|
|
42167
42168
|
"legal_person"
|
|
@@ -42177,15 +42178,33 @@ var init_clientcreate = __esm(() => {
|
|
|
42177
42178
|
address: lazyType(() => Address$zodSchema).optional(),
|
|
42178
42179
|
customId: stringType().optional(),
|
|
42179
42180
|
name: stringType(),
|
|
42180
|
-
type:
|
|
42181
|
+
type: ClientCreateClientType$zodSchema
|
|
42182
|
+
});
|
|
42183
|
+
});
|
|
42184
|
+
|
|
42185
|
+
// src/models/autherror.ts
|
|
42186
|
+
var AuthErrorType$zodSchema, AuthErrorCode$zodSchema, AuthError$zodSchema;
|
|
42187
|
+
var init_autherror = __esm(() => {
|
|
42188
|
+
init_zod();
|
|
42189
|
+
AuthErrorType$zodSchema = enumType([
|
|
42190
|
+
"auth_error"
|
|
42191
|
+
]);
|
|
42192
|
+
AuthErrorCode$zodSchema = enumType([
|
|
42193
|
+
"unauthorized"
|
|
42194
|
+
]);
|
|
42195
|
+
AuthError$zodSchema = objectType({
|
|
42196
|
+
code: AuthErrorCode$zodSchema,
|
|
42197
|
+
message: stringType(),
|
|
42198
|
+
status_code: numberType(),
|
|
42199
|
+
type: AuthErrorType$zodSchema
|
|
42181
42200
|
});
|
|
42182
42201
|
});
|
|
42183
42202
|
|
|
42184
42203
|
// src/models/client.ts
|
|
42185
|
-
var
|
|
42204
|
+
var ClientClientType$zodSchema, Client$zodSchema;
|
|
42186
42205
|
var init_client = __esm(() => {
|
|
42187
42206
|
init_zod();
|
|
42188
|
-
|
|
42207
|
+
ClientClientType$zodSchema = enumType([
|
|
42189
42208
|
"natural_person",
|
|
42190
42209
|
"individual_enterprise",
|
|
42191
42210
|
"legal_person"
|
|
@@ -42199,19 +42218,36 @@ var init_client = __esm(() => {
|
|
|
42199
42218
|
legalName: stringType().nullable(),
|
|
42200
42219
|
name: stringType(),
|
|
42201
42220
|
slug: stringType(),
|
|
42202
|
-
type:
|
|
42221
|
+
type: ClientClientType$zodSchema,
|
|
42203
42222
|
updatedAt: stringType()
|
|
42204
42223
|
});
|
|
42205
42224
|
});
|
|
42206
42225
|
|
|
42226
|
+
// src/models/ratelimit.ts
|
|
42227
|
+
var RateLimitType$zodSchema, RateLimitCode$zodSchema, RateLimit$zodSchema;
|
|
42228
|
+
var init_ratelimit = __esm(() => {
|
|
42229
|
+
init_zod();
|
|
42230
|
+
RateLimitType$zodSchema = enumType([
|
|
42231
|
+
"rate_limit"
|
|
42232
|
+
]);
|
|
42233
|
+
RateLimitCode$zodSchema = enumType([
|
|
42234
|
+
"too_many_requests"
|
|
42235
|
+
]);
|
|
42236
|
+
RateLimit$zodSchema = objectType({
|
|
42237
|
+
code: RateLimitCode$zodSchema,
|
|
42238
|
+
message: stringType(),
|
|
42239
|
+
status_code: numberType(),
|
|
42240
|
+
type: RateLimitType$zodSchema
|
|
42241
|
+
});
|
|
42242
|
+
});
|
|
42243
|
+
|
|
42207
42244
|
// src/models/createclientop.ts
|
|
42208
|
-
var
|
|
42245
|
+
var CreateClientPath$zodSchema, CreateClientIssue$zodSchema, CreateClientError$zodSchema, CreateClientUnprocessableEntityResponseBody$zodSchema, CreateClientType$zodSchema, CreateClientCode$zodSchema, CreateClientForbiddenResponseBody$zodSchema, CreateClientResponse$zodSchema;
|
|
42209
42246
|
var init_createclientop = __esm(() => {
|
|
42210
42247
|
init_zod();
|
|
42248
|
+
init_autherror();
|
|
42211
42249
|
init_client();
|
|
42212
|
-
|
|
42213
|
-
message: stringType()
|
|
42214
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
42250
|
+
init_ratelimit();
|
|
42215
42251
|
CreateClientPath$zodSchema = unionType([
|
|
42216
42252
|
stringType(),
|
|
42217
42253
|
numberType()
|
|
@@ -42232,13 +42268,27 @@ var init_createclientop = __esm(() => {
|
|
|
42232
42268
|
error: lazyType(() => CreateClientError$zodSchema),
|
|
42233
42269
|
success: booleanType()
|
|
42234
42270
|
}).describe("The validation error(s)");
|
|
42271
|
+
CreateClientType$zodSchema = enumType([
|
|
42272
|
+
"auth_error"
|
|
42273
|
+
]);
|
|
42274
|
+
CreateClientCode$zodSchema = enumType([
|
|
42275
|
+
"missing_scope"
|
|
42276
|
+
]);
|
|
42277
|
+
CreateClientForbiddenResponseBody$zodSchema = objectType({
|
|
42278
|
+
code: CreateClientCode$zodSchema,
|
|
42279
|
+
message: stringType(),
|
|
42280
|
+
status_code: numberType(),
|
|
42281
|
+
type: CreateClientType$zodSchema
|
|
42282
|
+
}).describe("Missing scope");
|
|
42235
42283
|
CreateClientResponse$zodSchema = objectType({
|
|
42236
42284
|
Client: Client$zodSchema.optional(),
|
|
42237
42285
|
ContentType: stringType(),
|
|
42238
42286
|
RawResponse: instanceOfType(Response),
|
|
42239
42287
|
StatusCode: numberType().int(),
|
|
42240
|
-
|
|
42241
|
-
|
|
42288
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
42289
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateClientForbiddenResponseBody$zodSchema).optional(),
|
|
42290
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateClientUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
42291
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
42242
42292
|
});
|
|
42243
42293
|
});
|
|
42244
42294
|
|
|
@@ -42273,12 +42323,12 @@ function adminClientsCreateClient(client$, request, options) {
|
|
|
42273
42323
|
return new APIPromise($do(client$, request, options));
|
|
42274
42324
|
}
|
|
42275
42325
|
async function $do(client$, request, options) {
|
|
42276
|
-
const parsed$ = safeParse(request, (value$) => ClientCreate$zodSchema.
|
|
42326
|
+
const parsed$ = safeParse(request, (value$) => ClientCreate$zodSchema.parse(value$), "Input validation failed");
|
|
42277
42327
|
if (!parsed$.ok) {
|
|
42278
42328
|
return [parsed$, { status: "invalid" }];
|
|
42279
42329
|
}
|
|
42280
42330
|
const payload$ = parsed$.value;
|
|
42281
|
-
const body$ =
|
|
42331
|
+
const body$ = encodeJSON("body", payload$, { explode: true });
|
|
42282
42332
|
const path$ = pathToFunc("/v1/admin/clients")();
|
|
42283
42333
|
const headers$ = new Headers(compactMap({
|
|
42284
42334
|
"Content-Type": "application/json",
|
|
@@ -42329,11 +42379,11 @@ async function $do(client$, request, options) {
|
|
|
42329
42379
|
const responseFields$ = {
|
|
42330
42380
|
HttpMeta: { Response: response, Request: req$ }
|
|
42331
42381
|
};
|
|
42332
|
-
const [result$] = await match(json(201, CreateClientResponse$zodSchema, { key: "Client" }), json(
|
|
42382
|
+
const [result$] = await match(json(201, CreateClientResponse$zodSchema, { key: "Client" }), json(401, CreateClientResponse$zodSchema, { key: "auth_error" }), json(403, CreateClientResponse$zodSchema, {
|
|
42383
|
+
key: "403_application/json_object"
|
|
42384
|
+
}), json(422, CreateClientResponse$zodSchema, {
|
|
42333
42385
|
key: "422_application/json_object"
|
|
42334
|
-
}), json(429, CreateClientResponse$zodSchema, {
|
|
42335
|
-
key: "429_application/json_object"
|
|
42336
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
42386
|
+
}), json(429, CreateClientResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateClientResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
42337
42387
|
return [result$, { status: "complete", request: req$, response }];
|
|
42338
42388
|
}
|
|
42339
42389
|
var init_adminClientsCreateClient = __esm(() => {
|
|
@@ -42355,7 +42405,7 @@ var init_adminClientsCreateClient2 = __esm(() => {
|
|
|
42355
42405
|
init_clientcreate();
|
|
42356
42406
|
init_tools();
|
|
42357
42407
|
args = {
|
|
42358
|
-
request: ClientCreate$zodSchema
|
|
42408
|
+
request: ClientCreate$zodSchema
|
|
42359
42409
|
};
|
|
42360
42410
|
tool$adminClientsCreateClient = {
|
|
42361
42411
|
name: "admin-clients-create-client",
|
|
@@ -42377,17 +42427,35 @@ Creates a new client for the accountant and returns the created client object.`,
|
|
|
42377
42427
|
};
|
|
42378
42428
|
});
|
|
42379
42429
|
|
|
42430
|
+
// src/models/notfound.ts
|
|
42431
|
+
var NotFoundType$zodSchema, NotFoundCode$zodSchema, NotFound$zodSchema;
|
|
42432
|
+
var init_notfound = __esm(() => {
|
|
42433
|
+
init_zod();
|
|
42434
|
+
NotFoundType$zodSchema = enumType([
|
|
42435
|
+
"not_found"
|
|
42436
|
+
]);
|
|
42437
|
+
NotFoundCode$zodSchema = enumType([
|
|
42438
|
+
"not_found"
|
|
42439
|
+
]);
|
|
42440
|
+
NotFound$zodSchema = objectType({
|
|
42441
|
+
code: NotFoundCode$zodSchema,
|
|
42442
|
+
message: stringType(),
|
|
42443
|
+
status_code: numberType(),
|
|
42444
|
+
type: NotFoundType$zodSchema
|
|
42445
|
+
});
|
|
42446
|
+
});
|
|
42447
|
+
|
|
42380
42448
|
// src/models/getclientop.ts
|
|
42381
|
-
var GetClientRequest$zodSchema,
|
|
42449
|
+
var GetClientRequest$zodSchema, GetClientPath$zodSchema, GetClientIssue$zodSchema, GetClientError$zodSchema, GetClientUnprocessableEntityResponseBody$zodSchema, GetClientType$zodSchema, GetClientCode$zodSchema, GetClientForbiddenResponseBody$zodSchema, GetClientResponse$zodSchema;
|
|
42382
42450
|
var init_getclientop = __esm(() => {
|
|
42383
42451
|
init_zod();
|
|
42452
|
+
init_autherror();
|
|
42384
42453
|
init_client();
|
|
42454
|
+
init_notfound();
|
|
42455
|
+
init_ratelimit();
|
|
42385
42456
|
GetClientRequest$zodSchema = objectType({
|
|
42386
42457
|
id: stringType()
|
|
42387
42458
|
});
|
|
42388
|
-
GetClientTooManyRequestsResponseBody$zodSchema = objectType({
|
|
42389
|
-
message: stringType()
|
|
42390
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
42391
42459
|
GetClientPath$zodSchema = unionType([
|
|
42392
42460
|
stringType(),
|
|
42393
42461
|
numberType()
|
|
@@ -42408,17 +42476,28 @@ var init_getclientop = __esm(() => {
|
|
|
42408
42476
|
error: lazyType(() => GetClientError$zodSchema),
|
|
42409
42477
|
success: booleanType()
|
|
42410
42478
|
}).describe("Invalid id error");
|
|
42411
|
-
|
|
42412
|
-
|
|
42413
|
-
|
|
42479
|
+
GetClientType$zodSchema = enumType([
|
|
42480
|
+
"auth_error"
|
|
42481
|
+
]);
|
|
42482
|
+
GetClientCode$zodSchema = enumType([
|
|
42483
|
+
"missing_scope"
|
|
42484
|
+
]);
|
|
42485
|
+
GetClientForbiddenResponseBody$zodSchema = objectType({
|
|
42486
|
+
code: GetClientCode$zodSchema,
|
|
42487
|
+
message: stringType(),
|
|
42488
|
+
status_code: numberType(),
|
|
42489
|
+
type: GetClientType$zodSchema
|
|
42490
|
+
}).describe("Missing scope");
|
|
42414
42491
|
GetClientResponse$zodSchema = objectType({
|
|
42415
42492
|
Client: Client$zodSchema.optional(),
|
|
42416
42493
|
ContentType: stringType(),
|
|
42417
42494
|
RawResponse: instanceOfType(Response),
|
|
42418
42495
|
StatusCode: numberType().int(),
|
|
42419
|
-
|
|
42420
|
-
|
|
42421
|
-
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetClientUnprocessableEntityResponseBody$zodSchema).optional()
|
|
42496
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
42497
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => GetClientForbiddenResponseBody$zodSchema).optional(),
|
|
42498
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetClientUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
42499
|
+
not_found: NotFound$zodSchema.optional(),
|
|
42500
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
42422
42501
|
});
|
|
42423
42502
|
});
|
|
42424
42503
|
|
|
@@ -42488,13 +42567,11 @@ async function $do2(client$, request, options) {
|
|
|
42488
42567
|
const responseFields$ = {
|
|
42489
42568
|
HttpMeta: { Response: response, Request: req$ }
|
|
42490
42569
|
};
|
|
42491
|
-
const [result$] = await match(json(200, GetClientResponse$zodSchema, { key: "Client" }), json(
|
|
42492
|
-
key: "
|
|
42493
|
-
}), json(422, GetClientResponse$zodSchema, {
|
|
42570
|
+
const [result$] = await match(json(200, GetClientResponse$zodSchema, { key: "Client" }), json(401, GetClientResponse$zodSchema, { key: "auth_error" }), json(403, GetClientResponse$zodSchema, {
|
|
42571
|
+
key: "403_application/json_object"
|
|
42572
|
+
}), json(404, GetClientResponse$zodSchema, { key: "not_found" }), json(422, GetClientResponse$zodSchema, {
|
|
42494
42573
|
key: "422_application/json_object"
|
|
42495
|
-
}), json(429, GetClientResponse$zodSchema, {
|
|
42496
|
-
key: "429_application/json_object"
|
|
42497
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
42574
|
+
}), json(429, GetClientResponse$zodSchema, { key: "rate_limit" }), nil(500, GetClientResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
42498
42575
|
return [result$, { status: "complete", request: req$, response }];
|
|
42499
42576
|
}
|
|
42500
42577
|
var init_adminClientsGetClient = __esm(() => {
|
|
@@ -42549,29 +42626,42 @@ var init_pagination = __esm(() => {
|
|
|
42549
42626
|
});
|
|
42550
42627
|
});
|
|
42551
42628
|
|
|
42552
|
-
// src/models/
|
|
42553
|
-
var
|
|
42554
|
-
var
|
|
42629
|
+
// src/models/paginatedclients.ts
|
|
42630
|
+
var PaginatedClients$zodSchema;
|
|
42631
|
+
var init_paginatedclients = __esm(() => {
|
|
42555
42632
|
init_zod();
|
|
42556
42633
|
init_client();
|
|
42557
42634
|
init_pagination();
|
|
42635
|
+
PaginatedClients$zodSchema = objectType({
|
|
42636
|
+
data: arrayType(Client$zodSchema),
|
|
42637
|
+
pagination: Pagination$zodSchema
|
|
42638
|
+
});
|
|
42639
|
+
});
|
|
42640
|
+
|
|
42641
|
+
// src/models/listclientsop.ts
|
|
42642
|
+
var Archived$zodSchema, ListClientsClientType$zodSchema, ListClientsSort$zodSchema, ListClientsOrder$zodSchema, ListClientsRequest$zodSchema, ListClientsPath$zodSchema, ListClientsIssue$zodSchema, ListClientsError$zodSchema, ListClientsUnprocessableEntityResponseBody$zodSchema, ListClientsType$zodSchema, ListClientsCode$zodSchema, ListClientsForbiddenResponseBody$zodSchema, ListClientsResponse$zodSchema;
|
|
42643
|
+
var init_listclientsop = __esm(() => {
|
|
42644
|
+
init_zod();
|
|
42645
|
+
init_autherror();
|
|
42646
|
+
init_paginatedclients();
|
|
42647
|
+
init_ratelimit();
|
|
42558
42648
|
Archived$zodSchema = enumType([
|
|
42559
42649
|
"true",
|
|
42560
42650
|
"false"
|
|
42561
42651
|
]).describe("Include archived clients");
|
|
42562
|
-
|
|
42652
|
+
ListClientsClientType$zodSchema = enumType([
|
|
42563
42653
|
"natural_person",
|
|
42564
42654
|
"individual_enterprise",
|
|
42565
42655
|
"legal_person"
|
|
42566
42656
|
]).describe("The type of the client. 'natural_person' for individuals, 'legal_person' for companies like UG, GmbH, AG, Ltd., Inc., etc. and 'individual_enterprise' for sole proprietorships.");
|
|
42567
|
-
|
|
42657
|
+
ListClientsSort$zodSchema = enumType([
|
|
42568
42658
|
"createdAt",
|
|
42569
42659
|
"updatedAt",
|
|
42570
42660
|
"archivedAt",
|
|
42571
42661
|
"name",
|
|
42572
42662
|
"customId"
|
|
42573
42663
|
]).describe("The sort field of the results");
|
|
42574
|
-
|
|
42664
|
+
ListClientsOrder$zodSchema = enumType([
|
|
42575
42665
|
"asc",
|
|
42576
42666
|
"desc"
|
|
42577
42667
|
]).describe("The order of the results based on the sort field");
|
|
@@ -42580,14 +42670,11 @@ var init_listclientsop = __esm(() => {
|
|
|
42580
42670
|
cursor: stringType().optional(),
|
|
42581
42671
|
customId: stringType().optional(),
|
|
42582
42672
|
limit: numberType().default(20),
|
|
42583
|
-
order:
|
|
42673
|
+
order: ListClientsOrder$zodSchema.default("desc"),
|
|
42584
42674
|
slug: stringType().optional(),
|
|
42585
|
-
sort:
|
|
42586
|
-
type:
|
|
42675
|
+
sort: ListClientsSort$zodSchema.default("createdAt"),
|
|
42676
|
+
type: ListClientsClientType$zodSchema.optional()
|
|
42587
42677
|
});
|
|
42588
|
-
ListClientsTooManyRequestsResponseBody$zodSchema = objectType({
|
|
42589
|
-
message: stringType()
|
|
42590
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
42591
42678
|
ListClientsPath$zodSchema = unionType([
|
|
42592
42679
|
stringType(),
|
|
42593
42680
|
numberType()
|
|
@@ -42608,17 +42695,27 @@ var init_listclientsop = __esm(() => {
|
|
|
42608
42695
|
error: lazyType(() => ListClientsError$zodSchema),
|
|
42609
42696
|
success: booleanType()
|
|
42610
42697
|
}).describe("The validation error(s)");
|
|
42611
|
-
|
|
42612
|
-
|
|
42613
|
-
|
|
42614
|
-
|
|
42698
|
+
ListClientsType$zodSchema = enumType([
|
|
42699
|
+
"auth_error"
|
|
42700
|
+
]);
|
|
42701
|
+
ListClientsCode$zodSchema = enumType([
|
|
42702
|
+
"missing_scope"
|
|
42703
|
+
]);
|
|
42704
|
+
ListClientsForbiddenResponseBody$zodSchema = objectType({
|
|
42705
|
+
code: ListClientsCode$zodSchema,
|
|
42706
|
+
message: stringType(),
|
|
42707
|
+
status_code: numberType(),
|
|
42708
|
+
type: ListClientsType$zodSchema
|
|
42709
|
+
}).describe("Missing scope");
|
|
42615
42710
|
ListClientsResponse$zodSchema = objectType({
|
|
42616
42711
|
ContentType: stringType(),
|
|
42712
|
+
PaginatedClients: PaginatedClients$zodSchema.optional(),
|
|
42617
42713
|
RawResponse: instanceOfType(Response),
|
|
42618
42714
|
StatusCode: numberType().int(),
|
|
42619
|
-
|
|
42715
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
42716
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => ListClientsForbiddenResponseBody$zodSchema).optional(),
|
|
42620
42717
|
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListClientsUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
42621
|
-
|
|
42718
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
42622
42719
|
});
|
|
42623
42720
|
});
|
|
42624
42721
|
|
|
@@ -42693,13 +42790,11 @@ async function $do3(client$, request, options) {
|
|
|
42693
42790
|
const responseFields$ = {
|
|
42694
42791
|
HttpMeta: { Response: response, Request: req$ }
|
|
42695
42792
|
};
|
|
42696
|
-
const [result$] = await match(json(200, ListClientsResponse$zodSchema, {
|
|
42697
|
-
key: "
|
|
42793
|
+
const [result$] = await match(json(200, ListClientsResponse$zodSchema, { key: "PaginatedClients" }), json(401, ListClientsResponse$zodSchema, { key: "auth_error" }), json(403, ListClientsResponse$zodSchema, {
|
|
42794
|
+
key: "403_application/json_object"
|
|
42698
42795
|
}), json(422, ListClientsResponse$zodSchema, {
|
|
42699
42796
|
key: "422_application/json_object"
|
|
42700
|
-
}), json(429, ListClientsResponse$zodSchema, {
|
|
42701
|
-
key: "429_application/json_object"
|
|
42702
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
42797
|
+
}), json(429, ListClientsResponse$zodSchema, { key: "rate_limit" }), nil(500, ListClientsResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
42703
42798
|
return [result$, { status: "complete", request: req$, response }];
|
|
42704
42799
|
}
|
|
42705
42800
|
var init_adminClientsListClients = __esm(() => {
|
|
@@ -42742,11 +42837,25 @@ Returns a list of clients.`,
|
|
|
42742
42837
|
};
|
|
42743
42838
|
});
|
|
42744
42839
|
|
|
42745
|
-
// src/models/
|
|
42746
|
-
var
|
|
42747
|
-
var
|
|
42840
|
+
// src/models/meop.ts
|
|
42841
|
+
var MeType$zodSchema, MeCode$zodSchema, MeForbiddenResponseBody$zodSchema, MeResponseBody$zodSchema, MeResponse$zodSchema;
|
|
42842
|
+
var init_meop = __esm(() => {
|
|
42748
42843
|
init_zod();
|
|
42749
|
-
|
|
42844
|
+
init_autherror();
|
|
42845
|
+
init_ratelimit();
|
|
42846
|
+
MeType$zodSchema = enumType([
|
|
42847
|
+
"auth_error"
|
|
42848
|
+
]);
|
|
42849
|
+
MeCode$zodSchema = enumType([
|
|
42850
|
+
"missing_scope"
|
|
42851
|
+
]);
|
|
42852
|
+
MeForbiddenResponseBody$zodSchema = objectType({
|
|
42853
|
+
code: MeCode$zodSchema,
|
|
42854
|
+
message: stringType(),
|
|
42855
|
+
status_code: numberType(),
|
|
42856
|
+
type: MeType$zodSchema
|
|
42857
|
+
}).describe("Missing scope");
|
|
42858
|
+
MeResponseBody$zodSchema = objectType({
|
|
42750
42859
|
accountantId: stringType(),
|
|
42751
42860
|
apiKeyId: stringType(),
|
|
42752
42861
|
clientId: stringType().nullable(),
|
|
@@ -42755,16 +42864,19 @@ var init_getv1meop = __esm(() => {
|
|
|
42755
42864
|
rateLimitTimeWindow: numberType(),
|
|
42756
42865
|
type: stringType()
|
|
42757
42866
|
}).describe("Me");
|
|
42758
|
-
|
|
42867
|
+
MeResponse$zodSchema = objectType({
|
|
42759
42868
|
ContentType: stringType(),
|
|
42760
42869
|
RawResponse: instanceOfType(Response),
|
|
42761
42870
|
StatusCode: numberType().int(),
|
|
42762
|
-
|
|
42871
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
42872
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => MeForbiddenResponseBody$zodSchema).optional(),
|
|
42873
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
42874
|
+
twoHundredApplicationJsonObject: lazyType(() => MeResponseBody$zodSchema).optional()
|
|
42763
42875
|
});
|
|
42764
42876
|
});
|
|
42765
42877
|
|
|
42766
|
-
// src/funcs/
|
|
42767
|
-
function
|
|
42878
|
+
// src/funcs/authMe.ts
|
|
42879
|
+
function authMe(client$, options) {
|
|
42768
42880
|
return new APIPromise($do4(client$, options));
|
|
42769
42881
|
}
|
|
42770
42882
|
async function $do4(client$, options) {
|
|
@@ -42777,7 +42889,7 @@ async function $do4(client$, options) {
|
|
|
42777
42889
|
const context = {
|
|
42778
42890
|
options: client$._options,
|
|
42779
42891
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
42780
|
-
operationID: "
|
|
42892
|
+
operationID: "me",
|
|
42781
42893
|
oAuth2Scopes: [],
|
|
42782
42894
|
resolvedSecurity: requestSecurity,
|
|
42783
42895
|
securitySource: client$._options.security,
|
|
@@ -42816,28 +42928,28 @@ async function $do4(client$, options) {
|
|
|
42816
42928
|
const responseFields$ = {
|
|
42817
42929
|
HttpMeta: { Response: response, Request: req$ }
|
|
42818
42930
|
};
|
|
42819
|
-
const [result$] = await match(json(200,
|
|
42931
|
+
const [result$] = await match(json(200, MeResponse$zodSchema, { key: "200_application/json_object" }), json(401, MeResponse$zodSchema, { key: "auth_error" }), json(403, MeResponse$zodSchema, { key: "403_application/json_object" }), json(429, MeResponse$zodSchema, { key: "rate_limit" }), nil(500, MeResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
42820
42932
|
return [result$, { status: "complete", request: req$, response }];
|
|
42821
42933
|
}
|
|
42822
|
-
var
|
|
42934
|
+
var init_authMe = __esm(() => {
|
|
42823
42935
|
init_matchers();
|
|
42824
42936
|
init_primitives();
|
|
42825
42937
|
init_security();
|
|
42826
42938
|
init_url();
|
|
42827
|
-
|
|
42939
|
+
init_meop();
|
|
42828
42940
|
init_async();
|
|
42829
42941
|
});
|
|
42830
42942
|
|
|
42831
|
-
// src/mcp-server/tools/
|
|
42832
|
-
var tool$
|
|
42833
|
-
var
|
|
42834
|
-
|
|
42943
|
+
// src/mcp-server/tools/authMe.ts
|
|
42944
|
+
var tool$authMe;
|
|
42945
|
+
var init_authMe2 = __esm(() => {
|
|
42946
|
+
init_authMe();
|
|
42835
42947
|
init_tools();
|
|
42836
|
-
tool$
|
|
42837
|
-
name: "auth-
|
|
42948
|
+
tool$authMe = {
|
|
42949
|
+
name: "auth-me",
|
|
42838
42950
|
description: `Me`,
|
|
42839
42951
|
tool: async (client, ctx) => {
|
|
42840
|
-
const [result, apiCall] = await
|
|
42952
|
+
const [result, apiCall] = await authMe(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
42841
42953
|
if (!result.ok) {
|
|
42842
42954
|
return {
|
|
42843
42955
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -42910,6 +43022,24 @@ function getContentTypeFromFileName(fileName) {
|
|
|
42910
43022
|
return mimeTypes[ext] || null;
|
|
42911
43023
|
}
|
|
42912
43024
|
|
|
43025
|
+
// src/models/badrequest.ts
|
|
43026
|
+
var BadRequestType$zodSchema, BadRequestCode$zodSchema, BadRequest$zodSchema;
|
|
43027
|
+
var init_badrequest = __esm(() => {
|
|
43028
|
+
init_zod();
|
|
43029
|
+
BadRequestType$zodSchema = enumType([
|
|
43030
|
+
"bad_request"
|
|
43031
|
+
]);
|
|
43032
|
+
BadRequestCode$zodSchema = enumType([
|
|
43033
|
+
"missing_client_id"
|
|
43034
|
+
]);
|
|
43035
|
+
BadRequest$zodSchema = objectType({
|
|
43036
|
+
code: BadRequestCode$zodSchema,
|
|
43037
|
+
message: stringType(),
|
|
43038
|
+
status_code: numberType(),
|
|
43039
|
+
type: BadRequestType$zodSchema
|
|
43040
|
+
});
|
|
43041
|
+
});
|
|
43042
|
+
|
|
42913
43043
|
// src/models/file.ts
|
|
42914
43044
|
var FileT$zodSchema;
|
|
42915
43045
|
var init_file = __esm(() => {
|
|
@@ -42949,18 +43079,18 @@ var init_filecreate = __esm(() => {
|
|
|
42949
43079
|
});
|
|
42950
43080
|
|
|
42951
43081
|
// src/models/createfileop.ts
|
|
42952
|
-
var CreateFileRequest$zodSchema,
|
|
43082
|
+
var CreateFileRequest$zodSchema, CreateFilePath$zodSchema, CreateFileIssue$zodSchema, CreateFileError$zodSchema, CreateFileUnprocessableEntityResponseBody$zodSchema, RequestEntityTooLargeType$zodSchema, RequestEntityTooLargeCode$zodSchema, CreateFileRequestEntityTooLargeResponseBody$zodSchema, CreateFileForbiddenType$zodSchema, CreateFileForbiddenCode$zodSchema, CreateFileForbiddenResponseBody$zodSchema, CreateFileResponse$zodSchema;
|
|
42953
43083
|
var init_createfileop = __esm(() => {
|
|
42954
43084
|
init_zod();
|
|
43085
|
+
init_autherror();
|
|
43086
|
+
init_badrequest();
|
|
42955
43087
|
init_file();
|
|
42956
43088
|
init_filecreate();
|
|
43089
|
+
init_ratelimit();
|
|
42957
43090
|
CreateFileRequest$zodSchema = objectType({
|
|
42958
|
-
FileCreate: FileCreate$zodSchema
|
|
43091
|
+
FileCreate: FileCreate$zodSchema,
|
|
42959
43092
|
xClientId: stringType()
|
|
42960
43093
|
});
|
|
42961
|
-
CreateFileTooManyRequestsResponseBody$zodSchema = objectType({
|
|
42962
|
-
message: stringType()
|
|
42963
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
42964
43094
|
CreateFilePath$zodSchema = unionType([
|
|
42965
43095
|
stringType(),
|
|
42966
43096
|
numberType()
|
|
@@ -42981,17 +43111,41 @@ var init_createfileop = __esm(() => {
|
|
|
42981
43111
|
error: lazyType(() => CreateFileError$zodSchema),
|
|
42982
43112
|
success: booleanType()
|
|
42983
43113
|
}).describe("The validation error(s)");
|
|
43114
|
+
RequestEntityTooLargeType$zodSchema = enumType([
|
|
43115
|
+
"bad_request"
|
|
43116
|
+
]);
|
|
43117
|
+
RequestEntityTooLargeCode$zodSchema = enumType([
|
|
43118
|
+
"payload_too_large"
|
|
43119
|
+
]);
|
|
42984
43120
|
CreateFileRequestEntityTooLargeResponseBody$zodSchema = objectType({
|
|
42985
|
-
|
|
43121
|
+
code: RequestEntityTooLargeCode$zodSchema,
|
|
43122
|
+
message: stringType(),
|
|
43123
|
+
status_code: numberType(),
|
|
43124
|
+
type: RequestEntityTooLargeType$zodSchema
|
|
42986
43125
|
}).describe("Payload too large");
|
|
43126
|
+
CreateFileForbiddenType$zodSchema = enumType([
|
|
43127
|
+
"auth_error"
|
|
43128
|
+
]);
|
|
43129
|
+
CreateFileForbiddenCode$zodSchema = enumType([
|
|
43130
|
+
"missing_scope"
|
|
43131
|
+
]);
|
|
43132
|
+
CreateFileForbiddenResponseBody$zodSchema = objectType({
|
|
43133
|
+
code: CreateFileForbiddenCode$zodSchema,
|
|
43134
|
+
message: stringType(),
|
|
43135
|
+
status_code: numberType(),
|
|
43136
|
+
type: CreateFileForbiddenType$zodSchema
|
|
43137
|
+
}).describe("Missing scope");
|
|
42987
43138
|
CreateFileResponse$zodSchema = objectType({
|
|
42988
43139
|
ContentType: stringType(),
|
|
42989
43140
|
FileT: FileT$zodSchema.optional(),
|
|
42990
43141
|
RawResponse: instanceOfType(Response),
|
|
42991
43142
|
StatusCode: numberType().int(),
|
|
43143
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
43144
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
42992
43145
|
fourHundredAndThirteenApplicationJsonObject: lazyType(() => CreateFileRequestEntityTooLargeResponseBody$zodSchema).optional(),
|
|
42993
|
-
|
|
42994
|
-
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateFileUnprocessableEntityResponseBody$zodSchema).optional()
|
|
43146
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateFileForbiddenResponseBody$zodSchema).optional(),
|
|
43147
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateFileUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
43148
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
42995
43149
|
});
|
|
42996
43150
|
});
|
|
42997
43151
|
|
|
@@ -43033,31 +43187,29 @@ async function $do5(client$, request, options) {
|
|
|
43033
43187
|
}
|
|
43034
43188
|
const payload$ = parsed$.value;
|
|
43035
43189
|
const body$ = new FormData;
|
|
43036
|
-
if (payload$.FileCreate
|
|
43037
|
-
|
|
43038
|
-
|
|
43039
|
-
|
|
43040
|
-
|
|
43041
|
-
|
|
43042
|
-
|
|
43043
|
-
|
|
43044
|
-
|
|
43045
|
-
|
|
43046
|
-
|
|
43047
|
-
|
|
43048
|
-
|
|
43049
|
-
|
|
43050
|
-
|
|
43051
|
-
|
|
43052
|
-
|
|
43053
|
-
|
|
43054
|
-
|
|
43055
|
-
|
|
43056
|
-
|
|
43057
|
-
|
|
43058
|
-
|
|
43059
|
-
appendForm(body$, "taskId", payload$.FileCreate.taskId);
|
|
43060
|
-
}
|
|
43190
|
+
if (isBlobLike(payload$.FileCreate.file)) {
|
|
43191
|
+
appendForm(body$, "file", payload$.FileCreate.file);
|
|
43192
|
+
} else if (isReadableStream(payload$.FileCreate.file.content)) {
|
|
43193
|
+
const buffer = await readableStreamToArrayBuffer(payload$.FileCreate.file.content);
|
|
43194
|
+
const contentType2 = getContentTypeFromFileName(payload$.FileCreate.file.fileName) || "application/octet-stream";
|
|
43195
|
+
const blob = new Blob([buffer], { type: contentType2 });
|
|
43196
|
+
appendForm(body$, "file", blob, payload$.FileCreate.file.fileName);
|
|
43197
|
+
} else {
|
|
43198
|
+
const contentType2 = getContentTypeFromFileName(payload$.FileCreate.file.fileName) || "application/octet-stream";
|
|
43199
|
+
appendForm(body$, "file", new Blob([payload$.FileCreate.file.content], { type: contentType2 }), payload$.FileCreate.file.fileName);
|
|
43200
|
+
}
|
|
43201
|
+
appendForm(body$, "workspaceId", payload$.FileCreate.workspaceId);
|
|
43202
|
+
if (payload$.FileCreate.folderId !== undefined) {
|
|
43203
|
+
appendForm(body$, "folderId", payload$.FileCreate.folderId);
|
|
43204
|
+
}
|
|
43205
|
+
if (payload$.FileCreate.labelIds !== undefined) {
|
|
43206
|
+
appendForm(body$, "labelIds", payload$.FileCreate.labelIds);
|
|
43207
|
+
}
|
|
43208
|
+
if (payload$.FileCreate.name !== undefined) {
|
|
43209
|
+
appendForm(body$, "name", payload$.FileCreate.name);
|
|
43210
|
+
}
|
|
43211
|
+
if (payload$.FileCreate.taskId !== undefined) {
|
|
43212
|
+
appendForm(body$, "taskId", payload$.FileCreate.taskId);
|
|
43061
43213
|
}
|
|
43062
43214
|
const path$ = pathToFunc("/v1/files")();
|
|
43063
43215
|
const headers$ = new Headers(compactMap({
|
|
@@ -43112,13 +43264,13 @@ async function $do5(client$, request, options) {
|
|
|
43112
43264
|
const responseFields$ = {
|
|
43113
43265
|
HttpMeta: { Response: response, Request: req$ }
|
|
43114
43266
|
};
|
|
43115
|
-
const [result$] = await match(json(201, CreateFileResponse$zodSchema, { key: "File" }), json(
|
|
43267
|
+
const [result$] = await match(json(201, CreateFileResponse$zodSchema, { key: "File" }), json(400, CreateFileResponse$zodSchema, { key: "bad_request" }), json(401, CreateFileResponse$zodSchema, { key: "auth_error" }), json(403, CreateFileResponse$zodSchema, {
|
|
43268
|
+
key: "403_application/json_object"
|
|
43269
|
+
}), json(413, CreateFileResponse$zodSchema, {
|
|
43116
43270
|
key: "413_application/json_object"
|
|
43117
43271
|
}), json(422, CreateFileResponse$zodSchema, {
|
|
43118
43272
|
key: "422_application/json_object"
|
|
43119
|
-
}), json(429, CreateFileResponse$zodSchema, {
|
|
43120
|
-
key: "429_application/json_object"
|
|
43121
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
43273
|
+
}), json(429, CreateFileResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
43122
43274
|
return [result$, { status: "complete", request: req$, response }];
|
|
43123
43275
|
}
|
|
43124
43276
|
var init_filesCreateFile = __esm(() => {
|
|
@@ -43173,17 +43325,18 @@ var init_deleteresponse = __esm(() => {
|
|
|
43173
43325
|
});
|
|
43174
43326
|
|
|
43175
43327
|
// src/models/deletefileop.ts
|
|
43176
|
-
var DeleteFileRequest$zodSchema,
|
|
43328
|
+
var DeleteFileRequest$zodSchema, DeleteFilePath$zodSchema, DeleteFileIssue$zodSchema, DeleteFileError$zodSchema, DeleteFileUnprocessableEntityResponseBody$zodSchema, DeleteFileType$zodSchema, DeleteFileCode$zodSchema, DeleteFileForbiddenResponseBody$zodSchema, DeleteFileResponse$zodSchema;
|
|
43177
43329
|
var init_deletefileop = __esm(() => {
|
|
43178
43330
|
init_zod();
|
|
43331
|
+
init_autherror();
|
|
43332
|
+
init_badrequest();
|
|
43179
43333
|
init_deleteresponse();
|
|
43334
|
+
init_notfound();
|
|
43335
|
+
init_ratelimit();
|
|
43180
43336
|
DeleteFileRequest$zodSchema = objectType({
|
|
43181
43337
|
id: stringType(),
|
|
43182
43338
|
xClientId: stringType()
|
|
43183
43339
|
});
|
|
43184
|
-
DeleteFileTooManyRequestsResponseBody$zodSchema = objectType({
|
|
43185
|
-
message: stringType()
|
|
43186
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
43187
43340
|
DeleteFilePath$zodSchema = unionType([
|
|
43188
43341
|
stringType(),
|
|
43189
43342
|
numberType()
|
|
@@ -43204,17 +43357,29 @@ var init_deletefileop = __esm(() => {
|
|
|
43204
43357
|
error: lazyType(() => DeleteFileError$zodSchema),
|
|
43205
43358
|
success: booleanType()
|
|
43206
43359
|
}).describe("Invalid id error");
|
|
43207
|
-
|
|
43208
|
-
|
|
43209
|
-
|
|
43360
|
+
DeleteFileType$zodSchema = enumType([
|
|
43361
|
+
"auth_error"
|
|
43362
|
+
]);
|
|
43363
|
+
DeleteFileCode$zodSchema = enumType([
|
|
43364
|
+
"missing_scope"
|
|
43365
|
+
]);
|
|
43366
|
+
DeleteFileForbiddenResponseBody$zodSchema = objectType({
|
|
43367
|
+
code: DeleteFileCode$zodSchema,
|
|
43368
|
+
message: stringType(),
|
|
43369
|
+
status_code: numberType(),
|
|
43370
|
+
type: DeleteFileType$zodSchema
|
|
43371
|
+
}).describe("Missing scope");
|
|
43210
43372
|
DeleteFileResponse$zodSchema = objectType({
|
|
43211
43373
|
ContentType: stringType(),
|
|
43212
43374
|
DeleteResponse: DeleteResponse$zodSchema.optional(),
|
|
43213
43375
|
RawResponse: instanceOfType(Response),
|
|
43214
43376
|
StatusCode: numberType().int(),
|
|
43215
|
-
|
|
43216
|
-
|
|
43217
|
-
|
|
43377
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
43378
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
43379
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => DeleteFileForbiddenResponseBody$zodSchema).optional(),
|
|
43380
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => DeleteFileUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
43381
|
+
not_found: NotFound$zodSchema.optional(),
|
|
43382
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
43218
43383
|
});
|
|
43219
43384
|
});
|
|
43220
43385
|
|
|
@@ -43288,13 +43453,11 @@ async function $do6(client$, request, options) {
|
|
|
43288
43453
|
const responseFields$ = {
|
|
43289
43454
|
HttpMeta: { Response: response, Request: req$ }
|
|
43290
43455
|
};
|
|
43291
|
-
const [result$] = await match(json(200, DeleteFileResponse$zodSchema, { key: "DeleteResponse" }), json(
|
|
43292
|
-
key: "
|
|
43293
|
-
}), json(422, DeleteFileResponse$zodSchema, {
|
|
43456
|
+
const [result$] = await match(json(200, DeleteFileResponse$zodSchema, { key: "DeleteResponse" }), json(400, DeleteFileResponse$zodSchema, { key: "bad_request" }), json(401, DeleteFileResponse$zodSchema, { key: "auth_error" }), json(403, DeleteFileResponse$zodSchema, {
|
|
43457
|
+
key: "403_application/json_object"
|
|
43458
|
+
}), json(404, DeleteFileResponse$zodSchema, { key: "not_found" }), json(422, DeleteFileResponse$zodSchema, {
|
|
43294
43459
|
key: "422_application/json_object"
|
|
43295
|
-
}), json(429, DeleteFileResponse$zodSchema, {
|
|
43296
|
-
key: "429_application/json_object"
|
|
43297
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
43460
|
+
}), json(429, DeleteFileResponse$zodSchema, { key: "rate_limit" }), nil(500, DeleteFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
43298
43461
|
return [result$, { status: "complete", request: req$, response }];
|
|
43299
43462
|
}
|
|
43300
43463
|
var init_filesDeleteFile = __esm(() => {
|
|
@@ -43338,17 +43501,17 @@ Deletes a file by ID.`,
|
|
|
43338
43501
|
});
|
|
43339
43502
|
|
|
43340
43503
|
// src/models/getfileop.ts
|
|
43341
|
-
var GetFileRequest$zodSchema,
|
|
43504
|
+
var GetFileRequest$zodSchema, GetFilePath$zodSchema, GetFileIssue$zodSchema, GetFileError$zodSchema, GetFileUnprocessableEntityResponseBody$zodSchema, GetFileNotFoundResponseBody$zodSchema, GetFileType$zodSchema, GetFileCode$zodSchema, GetFileForbiddenResponseBody$zodSchema, GetFileResponse$zodSchema;
|
|
43342
43505
|
var init_getfileop = __esm(() => {
|
|
43343
43506
|
init_zod();
|
|
43507
|
+
init_autherror();
|
|
43508
|
+
init_badrequest();
|
|
43344
43509
|
init_file();
|
|
43510
|
+
init_ratelimit();
|
|
43345
43511
|
GetFileRequest$zodSchema = objectType({
|
|
43346
43512
|
id: stringType(),
|
|
43347
43513
|
xClientId: stringType()
|
|
43348
43514
|
});
|
|
43349
|
-
GetFileTooManyRequestsResponseBody$zodSchema = objectType({
|
|
43350
|
-
message: stringType()
|
|
43351
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
43352
43515
|
GetFilePath$zodSchema = unionType([
|
|
43353
43516
|
stringType(),
|
|
43354
43517
|
numberType()
|
|
@@ -43372,14 +43535,29 @@ var init_getfileop = __esm(() => {
|
|
|
43372
43535
|
GetFileNotFoundResponseBody$zodSchema = objectType({
|
|
43373
43536
|
message: stringType()
|
|
43374
43537
|
}).describe("File not found");
|
|
43538
|
+
GetFileType$zodSchema = enumType([
|
|
43539
|
+
"auth_error"
|
|
43540
|
+
]);
|
|
43541
|
+
GetFileCode$zodSchema = enumType([
|
|
43542
|
+
"missing_scope"
|
|
43543
|
+
]);
|
|
43544
|
+
GetFileForbiddenResponseBody$zodSchema = objectType({
|
|
43545
|
+
code: GetFileCode$zodSchema,
|
|
43546
|
+
message: stringType(),
|
|
43547
|
+
status_code: numberType(),
|
|
43548
|
+
type: GetFileType$zodSchema
|
|
43549
|
+
}).describe("Missing scope");
|
|
43375
43550
|
GetFileResponse$zodSchema = objectType({
|
|
43376
43551
|
ContentType: stringType(),
|
|
43377
43552
|
FileT: FileT$zodSchema.optional(),
|
|
43378
43553
|
RawResponse: instanceOfType(Response),
|
|
43379
43554
|
StatusCode: numberType().int(),
|
|
43555
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
43556
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
43380
43557
|
fourHundredAndFourApplicationJsonObject: lazyType(() => GetFileNotFoundResponseBody$zodSchema).optional(),
|
|
43381
|
-
|
|
43382
|
-
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetFileUnprocessableEntityResponseBody$zodSchema).optional()
|
|
43558
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => GetFileForbiddenResponseBody$zodSchema).optional(),
|
|
43559
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetFileUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
43560
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
43383
43561
|
});
|
|
43384
43562
|
});
|
|
43385
43563
|
|
|
@@ -43453,13 +43631,13 @@ async function $do7(client$, request, options) {
|
|
|
43453
43631
|
const responseFields$ = {
|
|
43454
43632
|
HttpMeta: { Response: response, Request: req$ }
|
|
43455
43633
|
};
|
|
43456
|
-
const [result$] = await match(json(200, GetFileResponse$zodSchema, { key: "File" }), json(
|
|
43634
|
+
const [result$] = await match(json(200, GetFileResponse$zodSchema, { key: "File" }), json(400, GetFileResponse$zodSchema, { key: "bad_request" }), json(401, GetFileResponse$zodSchema, { key: "auth_error" }), json(403, GetFileResponse$zodSchema, {
|
|
43635
|
+
key: "403_application/json_object"
|
|
43636
|
+
}), json(404, GetFileResponse$zodSchema, {
|
|
43457
43637
|
key: "404_application/json_object"
|
|
43458
43638
|
}), json(422, GetFileResponse$zodSchema, {
|
|
43459
43639
|
key: "422_application/json_object"
|
|
43460
|
-
}), json(429, GetFileResponse$zodSchema, {
|
|
43461
|
-
key: "429_application/json_object"
|
|
43462
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
43640
|
+
}), json(429, GetFileResponse$zodSchema, { key: "rate_limit" }), nil(500, GetFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
43463
43641
|
return [result$, { status: "complete", request: req$, response }];
|
|
43464
43642
|
}
|
|
43465
43643
|
var init_filesGetFile = __esm(() => {
|
|
@@ -43502,21 +43680,32 @@ Returns a single file object by ID.`,
|
|
|
43502
43680
|
};
|
|
43503
43681
|
});
|
|
43504
43682
|
|
|
43505
|
-
// src/models/
|
|
43506
|
-
var
|
|
43507
|
-
var
|
|
43683
|
+
// src/models/paginatedfiles.ts
|
|
43684
|
+
var PaginatedFiles$zodSchema;
|
|
43685
|
+
var init_paginatedfiles = __esm(() => {
|
|
43508
43686
|
init_zod();
|
|
43509
43687
|
init_file();
|
|
43510
43688
|
init_pagination();
|
|
43689
|
+
PaginatedFiles$zodSchema = objectType({
|
|
43690
|
+
data: arrayType(FileT$zodSchema),
|
|
43691
|
+
pagination: Pagination$zodSchema
|
|
43692
|
+
});
|
|
43693
|
+
});
|
|
43694
|
+
|
|
43695
|
+
// src/models/listfilesop.ts
|
|
43696
|
+
var ListFilesRequest$zodSchema, ListFilesPath$zodSchema, ListFilesIssue$zodSchema, ListFilesError$zodSchema, ListFilesUnprocessableEntityResponseBody$zodSchema, ListFilesType$zodSchema, ListFilesCode$zodSchema, ListFilesForbiddenResponseBody$zodSchema, ListFilesResponse$zodSchema;
|
|
43697
|
+
var init_listfilesop = __esm(() => {
|
|
43698
|
+
init_zod();
|
|
43699
|
+
init_autherror();
|
|
43700
|
+
init_badrequest();
|
|
43701
|
+
init_paginatedfiles();
|
|
43702
|
+
init_ratelimit();
|
|
43511
43703
|
ListFilesRequest$zodSchema = objectType({
|
|
43512
43704
|
cursor: stringType().optional(),
|
|
43513
43705
|
limit: numberType().default(20),
|
|
43514
43706
|
workspaceId: stringType().optional(),
|
|
43515
43707
|
xClientId: stringType()
|
|
43516
43708
|
});
|
|
43517
|
-
ListFilesTooManyRequestsResponseBody$zodSchema = objectType({
|
|
43518
|
-
message: stringType()
|
|
43519
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
43520
43709
|
ListFilesPath$zodSchema = unionType([
|
|
43521
43710
|
stringType(),
|
|
43522
43711
|
numberType()
|
|
@@ -43537,17 +43726,28 @@ var init_listfilesop = __esm(() => {
|
|
|
43537
43726
|
error: lazyType(() => ListFilesError$zodSchema),
|
|
43538
43727
|
success: booleanType()
|
|
43539
43728
|
}).describe("The validation error(s)");
|
|
43540
|
-
|
|
43541
|
-
|
|
43542
|
-
|
|
43543
|
-
|
|
43729
|
+
ListFilesType$zodSchema = enumType([
|
|
43730
|
+
"auth_error"
|
|
43731
|
+
]);
|
|
43732
|
+
ListFilesCode$zodSchema = enumType([
|
|
43733
|
+
"missing_scope"
|
|
43734
|
+
]);
|
|
43735
|
+
ListFilesForbiddenResponseBody$zodSchema = objectType({
|
|
43736
|
+
code: ListFilesCode$zodSchema,
|
|
43737
|
+
message: stringType(),
|
|
43738
|
+
status_code: numberType(),
|
|
43739
|
+
type: ListFilesType$zodSchema
|
|
43740
|
+
}).describe("Missing scope");
|
|
43544
43741
|
ListFilesResponse$zodSchema = objectType({
|
|
43545
43742
|
ContentType: stringType(),
|
|
43743
|
+
PaginatedFiles: PaginatedFiles$zodSchema.optional(),
|
|
43546
43744
|
RawResponse: instanceOfType(Response),
|
|
43547
43745
|
StatusCode: numberType().int(),
|
|
43548
|
-
|
|
43746
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
43747
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
43748
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => ListFilesForbiddenResponseBody$zodSchema).optional(),
|
|
43549
43749
|
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListFilesUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
43550
|
-
|
|
43750
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
43551
43751
|
});
|
|
43552
43752
|
});
|
|
43553
43753
|
|
|
@@ -43621,13 +43821,11 @@ async function $do8(client$, request, options) {
|
|
|
43621
43821
|
const responseFields$ = {
|
|
43622
43822
|
HttpMeta: { Response: response, Request: req$ }
|
|
43623
43823
|
};
|
|
43624
|
-
const [result$] = await match(json(200, ListFilesResponse$zodSchema, {
|
|
43625
|
-
key: "
|
|
43824
|
+
const [result$] = await match(json(200, ListFilesResponse$zodSchema, { key: "PaginatedFiles" }), json(400, ListFilesResponse$zodSchema, { key: "bad_request" }), json(401, ListFilesResponse$zodSchema, { key: "auth_error" }), json(403, ListFilesResponse$zodSchema, {
|
|
43825
|
+
key: "403_application/json_object"
|
|
43626
43826
|
}), json(422, ListFilesResponse$zodSchema, {
|
|
43627
43827
|
key: "422_application/json_object"
|
|
43628
|
-
}), json(429, ListFilesResponse$zodSchema, {
|
|
43629
|
-
key: "429_application/json_object"
|
|
43630
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
43828
|
+
}), json(429, ListFilesResponse$zodSchema, { key: "rate_limit" }), nil(500, ListFilesResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
43631
43829
|
return [result$, { status: "complete", request: req$, response }];
|
|
43632
43830
|
}
|
|
43633
43831
|
var init_filesListFiles = __esm(() => {
|
|
@@ -43682,19 +43880,19 @@ var init_fileupdate = __esm(() => {
|
|
|
43682
43880
|
});
|
|
43683
43881
|
|
|
43684
43882
|
// src/models/updatefileop.ts
|
|
43685
|
-
var UpdateFileRequest$zodSchema,
|
|
43883
|
+
var UpdateFileRequest$zodSchema, UpdateFilePath2$zodSchema, UpdateFileIssue2$zodSchema, UpdateFileError2$zodSchema, UpdateFileResponseBody2$zodSchema, UpdateFilePath1$zodSchema, UpdateFileIssue1$zodSchema, UpdateFileError1$zodSchema, UpdateFileResponseBody1$zodSchema, UpdateFileResponseBody$zodSchema, UpdateFileNotFoundResponseBody$zodSchema, UpdateFileType$zodSchema, UpdateFileCode$zodSchema, UpdateFileForbiddenResponseBody$zodSchema, UpdateFileResponse$zodSchema;
|
|
43686
43884
|
var init_updatefileop = __esm(() => {
|
|
43687
43885
|
init_zod();
|
|
43886
|
+
init_autherror();
|
|
43887
|
+
init_badrequest();
|
|
43688
43888
|
init_file();
|
|
43689
43889
|
init_fileupdate();
|
|
43890
|
+
init_ratelimit();
|
|
43690
43891
|
UpdateFileRequest$zodSchema = objectType({
|
|
43691
|
-
FileUpdate: FileUpdate$zodSchema
|
|
43892
|
+
FileUpdate: FileUpdate$zodSchema,
|
|
43692
43893
|
id: stringType(),
|
|
43693
43894
|
xClientId: stringType()
|
|
43694
43895
|
});
|
|
43695
|
-
UpdateFileTooManyRequestsResponseBody$zodSchema = objectType({
|
|
43696
|
-
message: stringType()
|
|
43697
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
43698
43896
|
UpdateFilePath2$zodSchema = unionType([
|
|
43699
43897
|
stringType(),
|
|
43700
43898
|
numberType()
|
|
@@ -43742,17 +43940,32 @@ var init_updatefileop = __esm(() => {
|
|
|
43742
43940
|
UpdateFileNotFoundResponseBody$zodSchema = objectType({
|
|
43743
43941
|
message: stringType()
|
|
43744
43942
|
}).describe("File not found");
|
|
43943
|
+
UpdateFileType$zodSchema = enumType([
|
|
43944
|
+
"auth_error"
|
|
43945
|
+
]);
|
|
43946
|
+
UpdateFileCode$zodSchema = enumType([
|
|
43947
|
+
"missing_scope"
|
|
43948
|
+
]);
|
|
43949
|
+
UpdateFileForbiddenResponseBody$zodSchema = objectType({
|
|
43950
|
+
code: UpdateFileCode$zodSchema,
|
|
43951
|
+
message: stringType(),
|
|
43952
|
+
status_code: numberType(),
|
|
43953
|
+
type: UpdateFileType$zodSchema
|
|
43954
|
+
}).describe("Missing scope");
|
|
43745
43955
|
UpdateFileResponse$zodSchema = objectType({
|
|
43746
43956
|
ContentType: stringType(),
|
|
43747
43957
|
FileT: FileT$zodSchema.optional(),
|
|
43748
43958
|
RawResponse: instanceOfType(Response),
|
|
43749
43959
|
StatusCode: numberType().int(),
|
|
43960
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
43961
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
43750
43962
|
fourHundredAndFourApplicationJsonObject: lazyType(() => UpdateFileNotFoundResponseBody$zodSchema).optional(),
|
|
43751
|
-
|
|
43963
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => UpdateFileForbiddenResponseBody$zodSchema).optional(),
|
|
43752
43964
|
fourHundredAndTwentyTwoApplicationJsonOneOf: unionType([
|
|
43753
43965
|
lazyType(() => UpdateFileResponseBody1$zodSchema),
|
|
43754
43966
|
lazyType(() => UpdateFileResponseBody2$zodSchema)
|
|
43755
|
-
]).optional()
|
|
43967
|
+
]).optional(),
|
|
43968
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
43756
43969
|
});
|
|
43757
43970
|
});
|
|
43758
43971
|
|
|
@@ -43827,13 +44040,13 @@ async function $do9(client$, request, options) {
|
|
|
43827
44040
|
const responseFields$ = {
|
|
43828
44041
|
HttpMeta: { Response: response, Request: req$ }
|
|
43829
44042
|
};
|
|
43830
|
-
const [result$] = await match(json(200, UpdateFileResponse$zodSchema, { key: "File" }), json(
|
|
44043
|
+
const [result$] = await match(json(200, UpdateFileResponse$zodSchema, { key: "File" }), json(400, UpdateFileResponse$zodSchema, { key: "bad_request" }), json(401, UpdateFileResponse$zodSchema, { key: "auth_error" }), json(403, UpdateFileResponse$zodSchema, {
|
|
44044
|
+
key: "403_application/json_object"
|
|
44045
|
+
}), json(404, UpdateFileResponse$zodSchema, {
|
|
43831
44046
|
key: "404_application/json_object"
|
|
43832
44047
|
}), json(422, UpdateFileResponse$zodSchema, {
|
|
43833
44048
|
key: "422_application/json_oneOf"
|
|
43834
|
-
}), json(429, UpdateFileResponse$zodSchema, {
|
|
43835
|
-
key: "429_application/json_object"
|
|
43836
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
44049
|
+
}), json(429, UpdateFileResponse$zodSchema, { key: "rate_limit" }), nil(500, UpdateFileResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
43837
44050
|
return [result$, { status: "complete", request: req$, response }];
|
|
43838
44051
|
}
|
|
43839
44052
|
var init_filesUpdateFile = __esm(() => {
|
|
@@ -43876,23 +44089,25 @@ Updates a file object.`,
|
|
|
43876
44089
|
};
|
|
43877
44090
|
});
|
|
43878
44091
|
|
|
43879
|
-
// src/models/
|
|
43880
|
-
var
|
|
43881
|
-
var
|
|
44092
|
+
// src/models/indexop.ts
|
|
44093
|
+
var IndexResponseBody$zodSchema, IndexResponse$zodSchema;
|
|
44094
|
+
var init_indexop = __esm(() => {
|
|
43882
44095
|
init_zod();
|
|
43883
|
-
|
|
44096
|
+
init_ratelimit();
|
|
44097
|
+
IndexResponseBody$zodSchema = objectType({
|
|
43884
44098
|
message: stringType()
|
|
43885
44099
|
}).describe("Steuerboard API Index");
|
|
43886
|
-
|
|
44100
|
+
IndexResponse$zodSchema = objectType({
|
|
43887
44101
|
ContentType: stringType(),
|
|
43888
44102
|
RawResponse: instanceOfType(Response),
|
|
43889
44103
|
StatusCode: numberType().int(),
|
|
43890
|
-
object: lazyType(() =>
|
|
44104
|
+
object: lazyType(() => IndexResponseBody$zodSchema).optional(),
|
|
44105
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
43891
44106
|
});
|
|
43892
44107
|
});
|
|
43893
44108
|
|
|
43894
|
-
// src/funcs/
|
|
43895
|
-
function
|
|
44109
|
+
// src/funcs/healthIndex.ts
|
|
44110
|
+
function healthIndex(client$, options) {
|
|
43896
44111
|
return new APIPromise($do10(client$, options));
|
|
43897
44112
|
}
|
|
43898
44113
|
async function $do10(client$, options) {
|
|
@@ -43903,7 +44118,7 @@ async function $do10(client$, options) {
|
|
|
43903
44118
|
const context = {
|
|
43904
44119
|
options: client$._options,
|
|
43905
44120
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
43906
|
-
operationID: "
|
|
44121
|
+
operationID: "index",
|
|
43907
44122
|
oAuth2Scopes: [],
|
|
43908
44123
|
resolvedSecurity: null,
|
|
43909
44124
|
securitySource: null,
|
|
@@ -43941,27 +44156,27 @@ async function $do10(client$, options) {
|
|
|
43941
44156
|
const responseFields$ = {
|
|
43942
44157
|
HttpMeta: { Response: response, Request: req$ }
|
|
43943
44158
|
};
|
|
43944
|
-
const [result$] = await match(json(200,
|
|
44159
|
+
const [result$] = await match(json(200, IndexResponse$zodSchema, { key: "object" }), json(429, IndexResponse$zodSchema, { key: "rate_limit" }), nil(500, IndexResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
43945
44160
|
return [result$, { status: "complete", request: req$, response }];
|
|
43946
44161
|
}
|
|
43947
|
-
var
|
|
44162
|
+
var init_healthIndex = __esm(() => {
|
|
43948
44163
|
init_matchers();
|
|
43949
44164
|
init_primitives();
|
|
43950
44165
|
init_url();
|
|
43951
|
-
|
|
44166
|
+
init_indexop();
|
|
43952
44167
|
init_async();
|
|
43953
44168
|
});
|
|
43954
44169
|
|
|
43955
|
-
// src/mcp-server/tools/
|
|
43956
|
-
var tool$
|
|
43957
|
-
var
|
|
43958
|
-
|
|
44170
|
+
// src/mcp-server/tools/healthIndex.ts
|
|
44171
|
+
var tool$healthIndex;
|
|
44172
|
+
var init_healthIndex2 = __esm(() => {
|
|
44173
|
+
init_healthIndex();
|
|
43959
44174
|
init_tools();
|
|
43960
|
-
tool$
|
|
43961
|
-
name: "health-
|
|
44175
|
+
tool$healthIndex = {
|
|
44176
|
+
name: "health-index",
|
|
43962
44177
|
description: `Index`,
|
|
43963
44178
|
tool: async (client, ctx) => {
|
|
43964
|
-
const [result, apiCall] = await
|
|
44179
|
+
const [result, apiCall] = await healthIndex(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
43965
44180
|
if (!result.ok) {
|
|
43966
44181
|
return {
|
|
43967
44182
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -43974,23 +44189,25 @@ var init_healthCheckGetV12 = __esm(() => {
|
|
|
43974
44189
|
};
|
|
43975
44190
|
});
|
|
43976
44191
|
|
|
43977
|
-
// src/models/
|
|
43978
|
-
var
|
|
43979
|
-
var
|
|
44192
|
+
// src/models/pingop.ts
|
|
44193
|
+
var PingResponseBody$zodSchema, PingResponse$zodSchema;
|
|
44194
|
+
var init_pingop = __esm(() => {
|
|
43980
44195
|
init_zod();
|
|
43981
|
-
|
|
44196
|
+
init_ratelimit();
|
|
44197
|
+
PingResponseBody$zodSchema = objectType({
|
|
43982
44198
|
ping: stringType()
|
|
43983
44199
|
}).describe("Pong");
|
|
43984
|
-
|
|
44200
|
+
PingResponse$zodSchema = objectType({
|
|
43985
44201
|
ContentType: stringType(),
|
|
43986
44202
|
RawResponse: instanceOfType(Response),
|
|
43987
44203
|
StatusCode: numberType().int(),
|
|
43988
|
-
object: lazyType(() =>
|
|
44204
|
+
object: lazyType(() => PingResponseBody$zodSchema).optional(),
|
|
44205
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
43989
44206
|
});
|
|
43990
44207
|
});
|
|
43991
44208
|
|
|
43992
|
-
// src/funcs/
|
|
43993
|
-
function
|
|
44209
|
+
// src/funcs/healthPing.ts
|
|
44210
|
+
function healthPing(client$, options) {
|
|
43994
44211
|
return new APIPromise($do11(client$, options));
|
|
43995
44212
|
}
|
|
43996
44213
|
async function $do11(client$, options) {
|
|
@@ -44001,7 +44218,7 @@ async function $do11(client$, options) {
|
|
|
44001
44218
|
const context = {
|
|
44002
44219
|
options: client$._options,
|
|
44003
44220
|
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
44004
|
-
operationID: "
|
|
44221
|
+
operationID: "ping",
|
|
44005
44222
|
oAuth2Scopes: [],
|
|
44006
44223
|
resolvedSecurity: null,
|
|
44007
44224
|
securitySource: null,
|
|
@@ -44039,27 +44256,27 @@ async function $do11(client$, options) {
|
|
|
44039
44256
|
const responseFields$ = {
|
|
44040
44257
|
HttpMeta: { Response: response, Request: req$ }
|
|
44041
44258
|
};
|
|
44042
|
-
const [result$] = await match(json(200,
|
|
44259
|
+
const [result$] = await match(json(200, PingResponse$zodSchema, { key: "object" }), json(429, PingResponse$zodSchema, { key: "rate_limit" }), nil(500, PingResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
44043
44260
|
return [result$, { status: "complete", request: req$, response }];
|
|
44044
44261
|
}
|
|
44045
|
-
var
|
|
44262
|
+
var init_healthPing = __esm(() => {
|
|
44046
44263
|
init_matchers();
|
|
44047
44264
|
init_primitives();
|
|
44048
44265
|
init_url();
|
|
44049
|
-
|
|
44266
|
+
init_pingop();
|
|
44050
44267
|
init_async();
|
|
44051
44268
|
});
|
|
44052
44269
|
|
|
44053
|
-
// src/mcp-server/tools/
|
|
44054
|
-
var tool$
|
|
44055
|
-
var
|
|
44056
|
-
|
|
44270
|
+
// src/mcp-server/tools/healthPing.ts
|
|
44271
|
+
var tool$healthPing;
|
|
44272
|
+
var init_healthPing2 = __esm(() => {
|
|
44273
|
+
init_healthPing();
|
|
44057
44274
|
init_tools();
|
|
44058
|
-
tool$
|
|
44059
|
-
name: "health-
|
|
44275
|
+
tool$healthPing = {
|
|
44276
|
+
name: "health-ping",
|
|
44060
44277
|
description: `Ping Pong`,
|
|
44061
44278
|
tool: async (client, ctx) => {
|
|
44062
|
-
const [result, apiCall] = await
|
|
44279
|
+
const [result, apiCall] = await healthPing(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
44063
44280
|
if (!result.ok) {
|
|
44064
44281
|
return {
|
|
44065
44282
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -44118,13 +44335,16 @@ var init_taskcreate = __esm(() => {
|
|
|
44118
44335
|
});
|
|
44119
44336
|
|
|
44120
44337
|
// src/models/createtaskop.ts
|
|
44121
|
-
var CreateTaskRequest$zodSchema, CreateTaskPath$zodSchema, CreateTaskIssue$zodSchema, CreateTaskError$zodSchema,
|
|
44338
|
+
var CreateTaskRequest$zodSchema, CreateTaskPath$zodSchema, CreateTaskIssue$zodSchema, CreateTaskError$zodSchema, CreateTaskUnprocessableEntityResponseBody$zodSchema, CreateTaskType$zodSchema, CreateTaskCode$zodSchema, CreateTaskForbiddenResponseBody$zodSchema, CreateTaskResponse$zodSchema;
|
|
44122
44339
|
var init_createtaskop = __esm(() => {
|
|
44123
44340
|
init_zod();
|
|
44341
|
+
init_autherror();
|
|
44342
|
+
init_badrequest();
|
|
44343
|
+
init_ratelimit();
|
|
44124
44344
|
init_task();
|
|
44125
44345
|
init_taskcreate();
|
|
44126
44346
|
CreateTaskRequest$zodSchema = objectType({
|
|
44127
|
-
TaskCreate: TaskCreate$zodSchema
|
|
44347
|
+
TaskCreate: TaskCreate$zodSchema,
|
|
44128
44348
|
xClientId: stringType()
|
|
44129
44349
|
});
|
|
44130
44350
|
CreateTaskPath$zodSchema = unionType([
|
|
@@ -44143,16 +44363,32 @@ var init_createtaskop = __esm(() => {
|
|
|
44143
44363
|
issues: arrayType(lazyType(() => CreateTaskIssue$zodSchema)),
|
|
44144
44364
|
name: stringType()
|
|
44145
44365
|
});
|
|
44146
|
-
|
|
44366
|
+
CreateTaskUnprocessableEntityResponseBody$zodSchema = objectType({
|
|
44147
44367
|
error: lazyType(() => CreateTaskError$zodSchema),
|
|
44148
44368
|
success: booleanType()
|
|
44149
44369
|
}).describe("The validation error(s)");
|
|
44370
|
+
CreateTaskType$zodSchema = enumType([
|
|
44371
|
+
"auth_error"
|
|
44372
|
+
]);
|
|
44373
|
+
CreateTaskCode$zodSchema = enumType([
|
|
44374
|
+
"missing_scope"
|
|
44375
|
+
]);
|
|
44376
|
+
CreateTaskForbiddenResponseBody$zodSchema = objectType({
|
|
44377
|
+
code: CreateTaskCode$zodSchema,
|
|
44378
|
+
message: stringType(),
|
|
44379
|
+
status_code: numberType(),
|
|
44380
|
+
type: CreateTaskType$zodSchema
|
|
44381
|
+
}).describe("Missing scope");
|
|
44150
44382
|
CreateTaskResponse$zodSchema = objectType({
|
|
44151
44383
|
ContentType: stringType(),
|
|
44152
44384
|
RawResponse: instanceOfType(Response),
|
|
44153
44385
|
StatusCode: numberType().int(),
|
|
44154
44386
|
Task: Task$zodSchema.optional(),
|
|
44155
|
-
|
|
44387
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
44388
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
44389
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateTaskForbiddenResponseBody$zodSchema).optional(),
|
|
44390
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateTaskUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
44391
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
44156
44392
|
});
|
|
44157
44393
|
});
|
|
44158
44394
|
|
|
@@ -44221,7 +44457,11 @@ async function $do12(client$, request, options) {
|
|
|
44221
44457
|
const responseFields$ = {
|
|
44222
44458
|
HttpMeta: { Response: response, Request: req$ }
|
|
44223
44459
|
};
|
|
44224
|
-
const [result$] = await match(json(201, CreateTaskResponse$zodSchema, { key: "Task" }), json(
|
|
44460
|
+
const [result$] = await match(json(201, CreateTaskResponse$zodSchema, { key: "Task" }), json(400, CreateTaskResponse$zodSchema, { key: "bad_request" }), json(401, CreateTaskResponse$zodSchema, { key: "auth_error" }), json(403, CreateTaskResponse$zodSchema, {
|
|
44461
|
+
key: "403_application/json_object"
|
|
44462
|
+
}), json(422, CreateTaskResponse$zodSchema, {
|
|
44463
|
+
key: "422_application/json_object"
|
|
44464
|
+
}), json(429, CreateTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
44225
44465
|
return [result$, { status: "complete", request: req$, response }];
|
|
44226
44466
|
}
|
|
44227
44467
|
var init_tasksCreateTask = __esm(() => {
|
|
@@ -44265,12 +44505,17 @@ Creates a new task and returns the created task object.`,
|
|
|
44265
44505
|
});
|
|
44266
44506
|
|
|
44267
44507
|
// src/models/deletetaskop.ts
|
|
44268
|
-
var DeleteTaskRequest$zodSchema, DeleteTaskPath$zodSchema, DeleteTaskIssue$zodSchema, DeleteTaskError$zodSchema, DeleteTaskUnprocessableEntityResponseBody$zodSchema,
|
|
44508
|
+
var DeleteTaskRequest$zodSchema, DeleteTaskPath$zodSchema, DeleteTaskIssue$zodSchema, DeleteTaskError$zodSchema, DeleteTaskUnprocessableEntityResponseBody$zodSchema, DeleteTaskType$zodSchema, DeleteTaskCode$zodSchema, DeleteTaskForbiddenResponseBody$zodSchema, DeleteTaskResponse$zodSchema;
|
|
44269
44509
|
var init_deletetaskop = __esm(() => {
|
|
44270
44510
|
init_zod();
|
|
44511
|
+
init_autherror();
|
|
44512
|
+
init_badrequest();
|
|
44513
|
+
init_notfound();
|
|
44514
|
+
init_ratelimit();
|
|
44271
44515
|
init_task();
|
|
44272
44516
|
DeleteTaskRequest$zodSchema = objectType({
|
|
44273
|
-
id: stringType()
|
|
44517
|
+
id: stringType(),
|
|
44518
|
+
xClientId: stringType()
|
|
44274
44519
|
});
|
|
44275
44520
|
DeleteTaskPath$zodSchema = unionType([
|
|
44276
44521
|
stringType(),
|
|
@@ -44292,16 +44537,29 @@ var init_deletetaskop = __esm(() => {
|
|
|
44292
44537
|
error: lazyType(() => DeleteTaskError$zodSchema),
|
|
44293
44538
|
success: booleanType()
|
|
44294
44539
|
}).describe("Invalid id error");
|
|
44295
|
-
|
|
44296
|
-
|
|
44297
|
-
|
|
44540
|
+
DeleteTaskType$zodSchema = enumType([
|
|
44541
|
+
"auth_error"
|
|
44542
|
+
]);
|
|
44543
|
+
DeleteTaskCode$zodSchema = enumType([
|
|
44544
|
+
"missing_scope"
|
|
44545
|
+
]);
|
|
44546
|
+
DeleteTaskForbiddenResponseBody$zodSchema = objectType({
|
|
44547
|
+
code: DeleteTaskCode$zodSchema,
|
|
44548
|
+
message: stringType(),
|
|
44549
|
+
status_code: numberType(),
|
|
44550
|
+
type: DeleteTaskType$zodSchema
|
|
44551
|
+
}).describe("Missing scope");
|
|
44298
44552
|
DeleteTaskResponse$zodSchema = objectType({
|
|
44299
44553
|
ContentType: stringType(),
|
|
44300
44554
|
RawResponse: instanceOfType(Response),
|
|
44301
44555
|
StatusCode: numberType().int(),
|
|
44302
44556
|
Task: Task$zodSchema.optional(),
|
|
44303
|
-
|
|
44304
|
-
|
|
44557
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
44558
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
44559
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => DeleteTaskForbiddenResponseBody$zodSchema).optional(),
|
|
44560
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => DeleteTaskUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
44561
|
+
not_found: NotFound$zodSchema.optional(),
|
|
44562
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
44305
44563
|
});
|
|
44306
44564
|
});
|
|
44307
44565
|
|
|
@@ -44324,7 +44582,11 @@ async function $do13(client$, request, options) {
|
|
|
44324
44582
|
};
|
|
44325
44583
|
const path$ = pathToFunc("/v1/tasks/{id}")(pathParams$);
|
|
44326
44584
|
const headers$ = new Headers(compactMap({
|
|
44327
|
-
Accept: "application/json"
|
|
44585
|
+
Accept: "application/json",
|
|
44586
|
+
"x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
|
|
44587
|
+
explode: false,
|
|
44588
|
+
charEncoding: "none"
|
|
44589
|
+
})
|
|
44328
44590
|
}));
|
|
44329
44591
|
const securityInput = await extractSecurity(client$._options.security);
|
|
44330
44592
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
@@ -44371,11 +44633,11 @@ async function $do13(client$, request, options) {
|
|
|
44371
44633
|
const responseFields$ = {
|
|
44372
44634
|
HttpMeta: { Response: response, Request: req$ }
|
|
44373
44635
|
};
|
|
44374
|
-
const [result$] = await match(json(200, DeleteTaskResponse$zodSchema, { key: "Task" }), json(
|
|
44375
|
-
key: "
|
|
44376
|
-
}), json(422, DeleteTaskResponse$zodSchema, {
|
|
44636
|
+
const [result$] = await match(json(200, DeleteTaskResponse$zodSchema, { key: "Task" }), json(400, DeleteTaskResponse$zodSchema, { key: "bad_request" }), json(401, DeleteTaskResponse$zodSchema, { key: "auth_error" }), json(403, DeleteTaskResponse$zodSchema, {
|
|
44637
|
+
key: "403_application/json_object"
|
|
44638
|
+
}), json(404, DeleteTaskResponse$zodSchema, { key: "not_found" }), json(422, DeleteTaskResponse$zodSchema, {
|
|
44377
44639
|
key: "422_application/json_object"
|
|
44378
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
44640
|
+
}), json(429, DeleteTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, DeleteTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
44379
44641
|
return [result$, { status: "complete", request: req$, response }];
|
|
44380
44642
|
}
|
|
44381
44643
|
var init_tasksDeleteTask = __esm(() => {
|
|
@@ -44419,12 +44681,17 @@ Deletes a task by ID.`,
|
|
|
44419
44681
|
});
|
|
44420
44682
|
|
|
44421
44683
|
// src/models/gettaskop.ts
|
|
44422
|
-
var GetTaskRequest$zodSchema, GetTaskPath$zodSchema, GetTaskIssue$zodSchema, GetTaskError$zodSchema, GetTaskUnprocessableEntityResponseBody$zodSchema,
|
|
44684
|
+
var GetTaskRequest$zodSchema, GetTaskPath$zodSchema, GetTaskIssue$zodSchema, GetTaskError$zodSchema, GetTaskUnprocessableEntityResponseBody$zodSchema, GetTaskType$zodSchema, GetTaskCode$zodSchema, GetTaskForbiddenResponseBody$zodSchema, GetTaskResponse$zodSchema;
|
|
44423
44685
|
var init_gettaskop = __esm(() => {
|
|
44424
44686
|
init_zod();
|
|
44687
|
+
init_autherror();
|
|
44688
|
+
init_badrequest();
|
|
44689
|
+
init_notfound();
|
|
44690
|
+
init_ratelimit();
|
|
44425
44691
|
init_task();
|
|
44426
44692
|
GetTaskRequest$zodSchema = objectType({
|
|
44427
|
-
id: stringType()
|
|
44693
|
+
id: stringType(),
|
|
44694
|
+
xClientId: stringType()
|
|
44428
44695
|
});
|
|
44429
44696
|
GetTaskPath$zodSchema = unionType([
|
|
44430
44697
|
stringType(),
|
|
@@ -44446,16 +44713,29 @@ var init_gettaskop = __esm(() => {
|
|
|
44446
44713
|
error: lazyType(() => GetTaskError$zodSchema),
|
|
44447
44714
|
success: booleanType()
|
|
44448
44715
|
}).describe("Invalid id error");
|
|
44449
|
-
|
|
44450
|
-
|
|
44451
|
-
|
|
44716
|
+
GetTaskType$zodSchema = enumType([
|
|
44717
|
+
"auth_error"
|
|
44718
|
+
]);
|
|
44719
|
+
GetTaskCode$zodSchema = enumType([
|
|
44720
|
+
"missing_scope"
|
|
44721
|
+
]);
|
|
44722
|
+
GetTaskForbiddenResponseBody$zodSchema = objectType({
|
|
44723
|
+
code: GetTaskCode$zodSchema,
|
|
44724
|
+
message: stringType(),
|
|
44725
|
+
status_code: numberType(),
|
|
44726
|
+
type: GetTaskType$zodSchema
|
|
44727
|
+
}).describe("Missing scope");
|
|
44452
44728
|
GetTaskResponse$zodSchema = objectType({
|
|
44453
44729
|
ContentType: stringType(),
|
|
44454
44730
|
RawResponse: instanceOfType(Response),
|
|
44455
44731
|
StatusCode: numberType().int(),
|
|
44456
44732
|
Task: Task$zodSchema.optional(),
|
|
44457
|
-
|
|
44458
|
-
|
|
44733
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
44734
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
44735
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => GetTaskForbiddenResponseBody$zodSchema).optional(),
|
|
44736
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetTaskUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
44737
|
+
not_found: NotFound$zodSchema.optional(),
|
|
44738
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
44459
44739
|
});
|
|
44460
44740
|
});
|
|
44461
44741
|
|
|
@@ -44478,7 +44758,11 @@ async function $do14(client$, request, options) {
|
|
|
44478
44758
|
};
|
|
44479
44759
|
const path$ = pathToFunc("/v1/tasks/{id}")(pathParams$);
|
|
44480
44760
|
const headers$ = new Headers(compactMap({
|
|
44481
|
-
Accept: "application/json"
|
|
44761
|
+
Accept: "application/json",
|
|
44762
|
+
"x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
|
|
44763
|
+
explode: false,
|
|
44764
|
+
charEncoding: "none"
|
|
44765
|
+
})
|
|
44482
44766
|
}));
|
|
44483
44767
|
const securityInput = await extractSecurity(client$._options.security);
|
|
44484
44768
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
@@ -44525,11 +44809,11 @@ async function $do14(client$, request, options) {
|
|
|
44525
44809
|
const responseFields$ = {
|
|
44526
44810
|
HttpMeta: { Response: response, Request: req$ }
|
|
44527
44811
|
};
|
|
44528
|
-
const [result$] = await match(json(200, GetTaskResponse$zodSchema, { key: "Task" }), json(
|
|
44529
|
-
key: "
|
|
44530
|
-
}), json(422, GetTaskResponse$zodSchema, {
|
|
44812
|
+
const [result$] = await match(json(200, GetTaskResponse$zodSchema, { key: "Task" }), json(400, GetTaskResponse$zodSchema, { key: "bad_request" }), json(401, GetTaskResponse$zodSchema, { key: "auth_error" }), json(403, GetTaskResponse$zodSchema, {
|
|
44813
|
+
key: "403_application/json_object"
|
|
44814
|
+
}), json(404, GetTaskResponse$zodSchema, { key: "not_found" }), json(422, GetTaskResponse$zodSchema, {
|
|
44531
44815
|
key: "422_application/json_object"
|
|
44532
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
44816
|
+
}), json(429, GetTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, GetTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
44533
44817
|
return [result$, { status: "complete", request: req$, response }];
|
|
44534
44818
|
}
|
|
44535
44819
|
var init_tasksGetTask = __esm(() => {
|
|
@@ -44572,16 +44856,44 @@ Returns a single task object by ID.`,
|
|
|
44572
44856
|
};
|
|
44573
44857
|
});
|
|
44574
44858
|
|
|
44575
|
-
// src/models/
|
|
44576
|
-
var
|
|
44577
|
-
var
|
|
44859
|
+
// src/models/paginatedtasks.ts
|
|
44860
|
+
var PaginatedTasks$zodSchema;
|
|
44861
|
+
var init_paginatedtasks = __esm(() => {
|
|
44578
44862
|
init_zod();
|
|
44579
44863
|
init_pagination();
|
|
44580
44864
|
init_task();
|
|
44865
|
+
PaginatedTasks$zodSchema = objectType({
|
|
44866
|
+
data: arrayType(Task$zodSchema),
|
|
44867
|
+
pagination: Pagination$zodSchema
|
|
44868
|
+
});
|
|
44869
|
+
});
|
|
44870
|
+
|
|
44871
|
+
// src/models/listtasksop.ts
|
|
44872
|
+
var ListTasksSort$zodSchema, ListTasksOrder$zodSchema, ListTasksRequest$zodSchema, ListTasksPath$zodSchema, ListTasksIssue$zodSchema, ListTasksError$zodSchema, ListTasksUnprocessableEntityResponseBody$zodSchema, ListTasksType$zodSchema, ListTasksCode$zodSchema, ListTasksForbiddenResponseBody$zodSchema, ListTasksResponse$zodSchema;
|
|
44873
|
+
var init_listtasksop = __esm(() => {
|
|
44874
|
+
init_zod();
|
|
44875
|
+
init_autherror();
|
|
44876
|
+
init_badrequest();
|
|
44877
|
+
init_paginatedtasks();
|
|
44878
|
+
init_ratelimit();
|
|
44879
|
+
ListTasksSort$zodSchema = enumType([
|
|
44880
|
+
"createdAt",
|
|
44881
|
+
"updatedAt",
|
|
44882
|
+
"dueDate",
|
|
44883
|
+
"status",
|
|
44884
|
+
"title"
|
|
44885
|
+
]).describe("The sort field of the results");
|
|
44886
|
+
ListTasksOrder$zodSchema = enumType([
|
|
44887
|
+
"asc",
|
|
44888
|
+
"desc"
|
|
44889
|
+
]).describe("The order of the results based on the sort field");
|
|
44581
44890
|
ListTasksRequest$zodSchema = objectType({
|
|
44582
44891
|
cursor: stringType().optional(),
|
|
44583
44892
|
limit: numberType().default(20),
|
|
44584
|
-
|
|
44893
|
+
order: ListTasksOrder$zodSchema.default("desc"),
|
|
44894
|
+
sort: ListTasksSort$zodSchema.default("createdAt"),
|
|
44895
|
+
workspaceId: stringType().optional(),
|
|
44896
|
+
xClientId: stringType()
|
|
44585
44897
|
});
|
|
44586
44898
|
ListTasksPath$zodSchema = unionType([
|
|
44587
44899
|
stringType(),
|
|
@@ -44603,16 +44915,28 @@ var init_listtasksop = __esm(() => {
|
|
|
44603
44915
|
error: lazyType(() => ListTasksError$zodSchema),
|
|
44604
44916
|
success: booleanType()
|
|
44605
44917
|
}).describe("The validation error(s)");
|
|
44606
|
-
|
|
44607
|
-
|
|
44608
|
-
|
|
44609
|
-
|
|
44918
|
+
ListTasksType$zodSchema = enumType([
|
|
44919
|
+
"auth_error"
|
|
44920
|
+
]);
|
|
44921
|
+
ListTasksCode$zodSchema = enumType([
|
|
44922
|
+
"missing_scope"
|
|
44923
|
+
]);
|
|
44924
|
+
ListTasksForbiddenResponseBody$zodSchema = objectType({
|
|
44925
|
+
code: ListTasksCode$zodSchema,
|
|
44926
|
+
message: stringType(),
|
|
44927
|
+
status_code: numberType(),
|
|
44928
|
+
type: ListTasksType$zodSchema
|
|
44929
|
+
}).describe("Missing scope");
|
|
44610
44930
|
ListTasksResponse$zodSchema = objectType({
|
|
44611
44931
|
ContentType: stringType(),
|
|
44932
|
+
PaginatedTasks: PaginatedTasks$zodSchema.optional(),
|
|
44612
44933
|
RawResponse: instanceOfType(Response),
|
|
44613
44934
|
StatusCode: numberType().int(),
|
|
44935
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
44936
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
44937
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => ListTasksForbiddenResponseBody$zodSchema).optional(),
|
|
44614
44938
|
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListTasksUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
44615
|
-
|
|
44939
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
44616
44940
|
});
|
|
44617
44941
|
});
|
|
44618
44942
|
|
|
@@ -44621,7 +44945,7 @@ function tasksListTasks(client$, request, options) {
|
|
|
44621
44945
|
return new APIPromise($do15(client$, request, options));
|
|
44622
44946
|
}
|
|
44623
44947
|
async function $do15(client$, request, options) {
|
|
44624
|
-
const parsed$ = safeParse(request, (value$) => ListTasksRequest$zodSchema.
|
|
44948
|
+
const parsed$ = safeParse(request, (value$) => ListTasksRequest$zodSchema.parse(value$), "Input validation failed");
|
|
44625
44949
|
if (!parsed$.ok) {
|
|
44626
44950
|
return [parsed$, { status: "invalid" }];
|
|
44627
44951
|
}
|
|
@@ -44629,12 +44953,18 @@ async function $do15(client$, request, options) {
|
|
|
44629
44953
|
const body$ = null;
|
|
44630
44954
|
const path$ = pathToFunc("/v1/tasks")();
|
|
44631
44955
|
const query$ = encodeFormQuery({
|
|
44632
|
-
cursor: payload
|
|
44633
|
-
limit: payload
|
|
44634
|
-
|
|
44956
|
+
cursor: payload$.cursor,
|
|
44957
|
+
limit: payload$.limit,
|
|
44958
|
+
order: payload$.order,
|
|
44959
|
+
sort: payload$.sort,
|
|
44960
|
+
workspaceId: payload$.workspaceId
|
|
44635
44961
|
});
|
|
44636
44962
|
const headers$ = new Headers(compactMap({
|
|
44637
|
-
Accept: "application/json"
|
|
44963
|
+
Accept: "application/json",
|
|
44964
|
+
"x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
|
|
44965
|
+
explode: false,
|
|
44966
|
+
charEncoding: "none"
|
|
44967
|
+
})
|
|
44638
44968
|
}));
|
|
44639
44969
|
const securityInput = await extractSecurity(client$._options.security);
|
|
44640
44970
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
@@ -44682,11 +45012,11 @@ async function $do15(client$, request, options) {
|
|
|
44682
45012
|
const responseFields$ = {
|
|
44683
45013
|
HttpMeta: { Response: response, Request: req$ }
|
|
44684
45014
|
};
|
|
44685
|
-
const [result$] = await match(json(200, ListTasksResponse$zodSchema, {
|
|
44686
|
-
key: "
|
|
45015
|
+
const [result$] = await match(json(200, ListTasksResponse$zodSchema, { key: "PaginatedTasks" }), json(400, ListTasksResponse$zodSchema, { key: "bad_request" }), json(401, ListTasksResponse$zodSchema, { key: "auth_error" }), json(403, ListTasksResponse$zodSchema, {
|
|
45016
|
+
key: "403_application/json_object"
|
|
44687
45017
|
}), json(422, ListTasksResponse$zodSchema, {
|
|
44688
45018
|
key: "422_application/json_object"
|
|
44689
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
45019
|
+
}), json(429, ListTasksResponse$zodSchema, { key: "rate_limit" }), nil(500, ListTasksResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
44690
45020
|
return [result$, { status: "complete", request: req$, response }];
|
|
44691
45021
|
}
|
|
44692
45022
|
var init_tasksListTasks = __esm(() => {
|
|
@@ -44707,7 +45037,7 @@ var init_tasksListTasks2 = __esm(() => {
|
|
|
44707
45037
|
init_listtasksop();
|
|
44708
45038
|
init_tools();
|
|
44709
45039
|
args12 = {
|
|
44710
|
-
request: ListTasksRequest$zodSchema
|
|
45040
|
+
request: ListTasksRequest$zodSchema
|
|
44711
45041
|
};
|
|
44712
45042
|
tool$tasksListTasks = {
|
|
44713
45043
|
name: "tasks-list-tasks",
|
|
@@ -44752,14 +45082,19 @@ var init_taskupdate = __esm(() => {
|
|
|
44752
45082
|
});
|
|
44753
45083
|
|
|
44754
45084
|
// src/models/updatetaskop.ts
|
|
44755
|
-
var UpdateTaskRequest$zodSchema, UpdateTaskPath2$zodSchema, UpdateTaskIssue2$zodSchema, UpdateTaskError2$zodSchema, UpdateTaskResponseBody2$zodSchema, UpdateTaskPath1$zodSchema, UpdateTaskIssue1$zodSchema, UpdateTaskError1$zodSchema, UpdateTaskResponseBody1$zodSchema, UpdateTaskResponseBody$zodSchema,
|
|
45085
|
+
var UpdateTaskRequest$zodSchema, UpdateTaskPath2$zodSchema, UpdateTaskIssue2$zodSchema, UpdateTaskError2$zodSchema, UpdateTaskResponseBody2$zodSchema, UpdateTaskPath1$zodSchema, UpdateTaskIssue1$zodSchema, UpdateTaskError1$zodSchema, UpdateTaskResponseBody1$zodSchema, UpdateTaskResponseBody$zodSchema, UpdateTaskType$zodSchema, UpdateTaskCode$zodSchema, UpdateTaskForbiddenResponseBody$zodSchema, UpdateTaskResponse$zodSchema;
|
|
44756
45086
|
var init_updatetaskop = __esm(() => {
|
|
44757
45087
|
init_zod();
|
|
45088
|
+
init_autherror();
|
|
45089
|
+
init_badrequest();
|
|
45090
|
+
init_notfound();
|
|
45091
|
+
init_ratelimit();
|
|
44758
45092
|
init_task();
|
|
44759
45093
|
init_taskupdate();
|
|
44760
45094
|
UpdateTaskRequest$zodSchema = objectType({
|
|
44761
45095
|
TaskUpdate: TaskUpdate$zodSchema.optional(),
|
|
44762
|
-
id: stringType()
|
|
45096
|
+
id: stringType(),
|
|
45097
|
+
xClientId: stringType()
|
|
44763
45098
|
});
|
|
44764
45099
|
UpdateTaskPath2$zodSchema = unionType([
|
|
44765
45100
|
stringType(),
|
|
@@ -44805,19 +45140,32 @@ var init_updatetaskop = __esm(() => {
|
|
|
44805
45140
|
lazyType(() => UpdateTaskResponseBody1$zodSchema),
|
|
44806
45141
|
lazyType(() => UpdateTaskResponseBody2$zodSchema)
|
|
44807
45142
|
]).describe("The validation error(s)");
|
|
44808
|
-
|
|
44809
|
-
|
|
44810
|
-
|
|
45143
|
+
UpdateTaskType$zodSchema = enumType([
|
|
45144
|
+
"auth_error"
|
|
45145
|
+
]);
|
|
45146
|
+
UpdateTaskCode$zodSchema = enumType([
|
|
45147
|
+
"missing_scope"
|
|
45148
|
+
]);
|
|
45149
|
+
UpdateTaskForbiddenResponseBody$zodSchema = objectType({
|
|
45150
|
+
code: UpdateTaskCode$zodSchema,
|
|
45151
|
+
message: stringType(),
|
|
45152
|
+
status_code: numberType(),
|
|
45153
|
+
type: UpdateTaskType$zodSchema
|
|
45154
|
+
}).describe("Missing scope");
|
|
44811
45155
|
UpdateTaskResponse$zodSchema = objectType({
|
|
44812
45156
|
ContentType: stringType(),
|
|
44813
45157
|
RawResponse: instanceOfType(Response),
|
|
44814
45158
|
StatusCode: numberType().int(),
|
|
44815
45159
|
Task: Task$zodSchema.optional(),
|
|
44816
|
-
|
|
45160
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
45161
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
45162
|
+
not_found: NotFound$zodSchema.optional(),
|
|
45163
|
+
object: lazyType(() => UpdateTaskForbiddenResponseBody$zodSchema).optional(),
|
|
44817
45164
|
oneOf: unionType([
|
|
44818
45165
|
lazyType(() => UpdateTaskResponseBody1$zodSchema),
|
|
44819
45166
|
lazyType(() => UpdateTaskResponseBody2$zodSchema)
|
|
44820
|
-
]).optional()
|
|
45167
|
+
]).optional(),
|
|
45168
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
44821
45169
|
});
|
|
44822
45170
|
});
|
|
44823
45171
|
|
|
@@ -44841,7 +45189,11 @@ async function $do16(client$, request, options) {
|
|
|
44841
45189
|
const path$ = pathToFunc("/v1/tasks/{id}")(pathParams$);
|
|
44842
45190
|
const headers$ = new Headers(compactMap({
|
|
44843
45191
|
"Content-Type": "application/json",
|
|
44844
|
-
Accept: "application/json"
|
|
45192
|
+
Accept: "application/json",
|
|
45193
|
+
"x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
|
|
45194
|
+
explode: false,
|
|
45195
|
+
charEncoding: "none"
|
|
45196
|
+
})
|
|
44845
45197
|
}));
|
|
44846
45198
|
const securityInput = await extractSecurity(client$._options.security);
|
|
44847
45199
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
@@ -44888,7 +45240,7 @@ async function $do16(client$, request, options) {
|
|
|
44888
45240
|
const responseFields$ = {
|
|
44889
45241
|
HttpMeta: { Response: response, Request: req$ }
|
|
44890
45242
|
};
|
|
44891
|
-
const [result$] = await match(json(200, UpdateTaskResponse$zodSchema, { key: "Task" }), json(
|
|
45243
|
+
const [result$] = await match(json(200, UpdateTaskResponse$zodSchema, { key: "Task" }), json(400, UpdateTaskResponse$zodSchema, { key: "bad_request" }), json(401, UpdateTaskResponse$zodSchema, { key: "auth_error" }), json(403, UpdateTaskResponse$zodSchema, { key: "object" }), json(404, UpdateTaskResponse$zodSchema, { key: "not_found" }), json(422, UpdateTaskResponse$zodSchema, { key: "oneOf" }), json(429, UpdateTaskResponse$zodSchema, { key: "rate_limit" }), nil(500, UpdateTaskResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
44892
45244
|
return [result$, { status: "complete", request: req$, response }];
|
|
44893
45245
|
}
|
|
44894
45246
|
var init_tasksUpdateTask = __esm(() => {
|
|
@@ -44945,18 +45297,198 @@ var init_workspace = __esm(() => {
|
|
|
44945
45297
|
});
|
|
44946
45298
|
});
|
|
44947
45299
|
|
|
45300
|
+
// src/models/workspacecreate.ts
|
|
45301
|
+
var WorkspaceCreate$zodSchema;
|
|
45302
|
+
var init_workspacecreate = __esm(() => {
|
|
45303
|
+
init_zod();
|
|
45304
|
+
WorkspaceCreate$zodSchema = objectType({
|
|
45305
|
+
name: stringType()
|
|
45306
|
+
});
|
|
45307
|
+
});
|
|
45308
|
+
|
|
45309
|
+
// src/models/createworkspaceop.ts
|
|
45310
|
+
var CreateWorkspaceRequest$zodSchema, CreateWorkspacePath$zodSchema, CreateWorkspaceIssue$zodSchema, CreateWorkspaceError$zodSchema, CreateWorkspaceUnprocessableEntityResponseBody$zodSchema, CreateWorkspaceType$zodSchema, CreateWorkspaceCode$zodSchema, CreateWorkspaceForbiddenResponseBody$zodSchema, CreateWorkspaceResponse$zodSchema;
|
|
45311
|
+
var init_createworkspaceop = __esm(() => {
|
|
45312
|
+
init_zod();
|
|
45313
|
+
init_autherror();
|
|
45314
|
+
init_badrequest();
|
|
45315
|
+
init_ratelimit();
|
|
45316
|
+
init_workspace();
|
|
45317
|
+
init_workspacecreate();
|
|
45318
|
+
CreateWorkspaceRequest$zodSchema = objectType({
|
|
45319
|
+
WorkspaceCreate: WorkspaceCreate$zodSchema,
|
|
45320
|
+
xClientId: stringType()
|
|
45321
|
+
});
|
|
45322
|
+
CreateWorkspacePath$zodSchema = unionType([
|
|
45323
|
+
stringType(),
|
|
45324
|
+
numberType()
|
|
45325
|
+
]);
|
|
45326
|
+
CreateWorkspaceIssue$zodSchema = objectType({
|
|
45327
|
+
code: stringType(),
|
|
45328
|
+
message: stringType().optional(),
|
|
45329
|
+
path: arrayType(unionType([
|
|
45330
|
+
stringType(),
|
|
45331
|
+
numberType()
|
|
45332
|
+
]))
|
|
45333
|
+
});
|
|
45334
|
+
CreateWorkspaceError$zodSchema = objectType({
|
|
45335
|
+
issues: arrayType(lazyType(() => CreateWorkspaceIssue$zodSchema)),
|
|
45336
|
+
name: stringType()
|
|
45337
|
+
});
|
|
45338
|
+
CreateWorkspaceUnprocessableEntityResponseBody$zodSchema = objectType({
|
|
45339
|
+
error: lazyType(() => CreateWorkspaceError$zodSchema),
|
|
45340
|
+
success: booleanType()
|
|
45341
|
+
}).describe("The validation error(s)");
|
|
45342
|
+
CreateWorkspaceType$zodSchema = enumType([
|
|
45343
|
+
"auth_error"
|
|
45344
|
+
]);
|
|
45345
|
+
CreateWorkspaceCode$zodSchema = enumType([
|
|
45346
|
+
"missing_scope"
|
|
45347
|
+
]);
|
|
45348
|
+
CreateWorkspaceForbiddenResponseBody$zodSchema = objectType({
|
|
45349
|
+
code: CreateWorkspaceCode$zodSchema,
|
|
45350
|
+
message: stringType(),
|
|
45351
|
+
status_code: numberType(),
|
|
45352
|
+
type: CreateWorkspaceType$zodSchema
|
|
45353
|
+
}).describe("Missing scope");
|
|
45354
|
+
CreateWorkspaceResponse$zodSchema = objectType({
|
|
45355
|
+
ContentType: stringType(),
|
|
45356
|
+
RawResponse: instanceOfType(Response),
|
|
45357
|
+
StatusCode: numberType().int(),
|
|
45358
|
+
Workspace: Workspace$zodSchema.optional(),
|
|
45359
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
45360
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
45361
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => CreateWorkspaceForbiddenResponseBody$zodSchema).optional(),
|
|
45362
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => CreateWorkspaceUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
45363
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
45364
|
+
});
|
|
45365
|
+
});
|
|
45366
|
+
|
|
45367
|
+
// src/funcs/workspacesCreateWorkspace.ts
|
|
45368
|
+
function workspacesCreateWorkspace(client$, request, options) {
|
|
45369
|
+
return new APIPromise($do17(client$, request, options));
|
|
45370
|
+
}
|
|
45371
|
+
async function $do17(client$, request, options) {
|
|
45372
|
+
const parsed$ = safeParse(request, (value$) => CreateWorkspaceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
45373
|
+
if (!parsed$.ok) {
|
|
45374
|
+
return [parsed$, { status: "invalid" }];
|
|
45375
|
+
}
|
|
45376
|
+
const payload$ = parsed$.value;
|
|
45377
|
+
const body$ = encodeJSON("body", payload$.WorkspaceCreate, { explode: true });
|
|
45378
|
+
const path$ = pathToFunc("/v1/workspaces")();
|
|
45379
|
+
const headers$ = new Headers(compactMap({
|
|
45380
|
+
"Content-Type": "application/json",
|
|
45381
|
+
Accept: "application/json",
|
|
45382
|
+
"x-client-id": encodeSimple("x-client-id", payload$.xClientId, {
|
|
45383
|
+
explode: false,
|
|
45384
|
+
charEncoding: "none"
|
|
45385
|
+
})
|
|
45386
|
+
}));
|
|
45387
|
+
const securityInput = await extractSecurity(client$._options.security);
|
|
45388
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
45389
|
+
const context = {
|
|
45390
|
+
options: client$._options,
|
|
45391
|
+
baseURL: options?.serverURL ?? client$._baseURL ?? "",
|
|
45392
|
+
operationID: "createWorkspace",
|
|
45393
|
+
oAuth2Scopes: [],
|
|
45394
|
+
resolvedSecurity: requestSecurity,
|
|
45395
|
+
securitySource: client$._options.security,
|
|
45396
|
+
retryConfig: options?.retries || client$._options.retryConfig || { strategy: "none" },
|
|
45397
|
+
retryCodes: options?.retryCodes || [
|
|
45398
|
+
"429",
|
|
45399
|
+
"500",
|
|
45400
|
+
"502",
|
|
45401
|
+
"503",
|
|
45402
|
+
"504"
|
|
45403
|
+
]
|
|
45404
|
+
};
|
|
45405
|
+
const requestRes = client$._createRequest(context, {
|
|
45406
|
+
security: requestSecurity,
|
|
45407
|
+
method: "POST",
|
|
45408
|
+
baseURL: options?.serverURL,
|
|
45409
|
+
path: path$,
|
|
45410
|
+
headers: headers$,
|
|
45411
|
+
body: body$,
|
|
45412
|
+
userAgent: client$._options.userAgent,
|
|
45413
|
+
timeoutMs: options?.timeoutMs || client$._options.timeoutMs || -1
|
|
45414
|
+
}, options);
|
|
45415
|
+
if (!requestRes.ok) {
|
|
45416
|
+
return [requestRes, { status: "invalid" }];
|
|
45417
|
+
}
|
|
45418
|
+
const req$ = requestRes.value;
|
|
45419
|
+
const doResult = await client$._do(req$, {
|
|
45420
|
+
context,
|
|
45421
|
+
errorCodes: [],
|
|
45422
|
+
retryConfig: context.retryConfig,
|
|
45423
|
+
retryCodes: context.retryCodes
|
|
45424
|
+
});
|
|
45425
|
+
if (!doResult.ok) {
|
|
45426
|
+
return [doResult, { status: "request-error", request: req$ }];
|
|
45427
|
+
}
|
|
45428
|
+
const response = doResult.value;
|
|
45429
|
+
const responseFields$ = {
|
|
45430
|
+
HttpMeta: { Response: response, Request: req$ }
|
|
45431
|
+
};
|
|
45432
|
+
const [result$] = await match(json(201, CreateWorkspaceResponse$zodSchema, { key: "Workspace" }), json(400, CreateWorkspaceResponse$zodSchema, { key: "bad_request" }), json(401, CreateWorkspaceResponse$zodSchema, { key: "auth_error" }), json(403, CreateWorkspaceResponse$zodSchema, {
|
|
45433
|
+
key: "403_application/json_object"
|
|
45434
|
+
}), json(422, CreateWorkspaceResponse$zodSchema, {
|
|
45435
|
+
key: "422_application/json_object"
|
|
45436
|
+
}), json(429, CreateWorkspaceResponse$zodSchema, { key: "rate_limit" }), nil(500, CreateWorkspaceResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
45437
|
+
return [result$, { status: "complete", request: req$, response }];
|
|
45438
|
+
}
|
|
45439
|
+
var init_workspacesCreateWorkspace = __esm(() => {
|
|
45440
|
+
init_encodings();
|
|
45441
|
+
init_matchers();
|
|
45442
|
+
init_primitives();
|
|
45443
|
+
init_schemas();
|
|
45444
|
+
init_security();
|
|
45445
|
+
init_url();
|
|
45446
|
+
init_createworkspaceop();
|
|
45447
|
+
init_async();
|
|
45448
|
+
});
|
|
45449
|
+
|
|
45450
|
+
// src/mcp-server/tools/workspacesCreateWorkspace.ts
|
|
45451
|
+
var args14, tool$workspacesCreateWorkspace;
|
|
45452
|
+
var init_workspacesCreateWorkspace2 = __esm(() => {
|
|
45453
|
+
init_workspacesCreateWorkspace();
|
|
45454
|
+
init_createworkspaceop();
|
|
45455
|
+
init_tools();
|
|
45456
|
+
args14 = {
|
|
45457
|
+
request: CreateWorkspaceRequest$zodSchema
|
|
45458
|
+
};
|
|
45459
|
+
tool$workspacesCreateWorkspace = {
|
|
45460
|
+
name: "workspaces-create-workspace",
|
|
45461
|
+
description: `Create a workspace
|
|
45462
|
+
|
|
45463
|
+
Creates a new workspace and returns the created workspace object.`,
|
|
45464
|
+
args: args14,
|
|
45465
|
+
tool: async (client, args15, ctx) => {
|
|
45466
|
+
const [result, apiCall] = await workspacesCreateWorkspace(client, args15.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45467
|
+
if (!result.ok) {
|
|
45468
|
+
return {
|
|
45469
|
+
content: [{ type: "text", text: result.error.message }],
|
|
45470
|
+
isError: true
|
|
45471
|
+
};
|
|
45472
|
+
}
|
|
45473
|
+
const value = result.value;
|
|
45474
|
+
return formatResult(value, apiCall);
|
|
45475
|
+
}
|
|
45476
|
+
};
|
|
45477
|
+
});
|
|
45478
|
+
|
|
44948
45479
|
// src/models/getworkspaceop.ts
|
|
44949
|
-
var GetWorkspaceRequest$zodSchema,
|
|
45480
|
+
var GetWorkspaceRequest$zodSchema, GetWorkspacePath$zodSchema, GetWorkspaceIssue$zodSchema, GetWorkspaceError$zodSchema, GetWorkspaceUnprocessableEntityResponseBody$zodSchema, GetWorkspaceType$zodSchema, GetWorkspaceCode$zodSchema, GetWorkspaceForbiddenResponseBody$zodSchema, GetWorkspaceResponse$zodSchema;
|
|
44950
45481
|
var init_getworkspaceop = __esm(() => {
|
|
44951
45482
|
init_zod();
|
|
45483
|
+
init_autherror();
|
|
45484
|
+
init_badrequest();
|
|
45485
|
+
init_notfound();
|
|
45486
|
+
init_ratelimit();
|
|
44952
45487
|
init_workspace();
|
|
44953
45488
|
GetWorkspaceRequest$zodSchema = objectType({
|
|
44954
45489
|
id: stringType(),
|
|
44955
45490
|
xClientId: stringType()
|
|
44956
45491
|
});
|
|
44957
|
-
GetWorkspaceTooManyRequestsResponseBody$zodSchema = objectType({
|
|
44958
|
-
message: stringType()
|
|
44959
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
44960
45492
|
GetWorkspacePath$zodSchema = unionType([
|
|
44961
45493
|
stringType(),
|
|
44962
45494
|
numberType()
|
|
@@ -44977,25 +45509,37 @@ var init_getworkspaceop = __esm(() => {
|
|
|
44977
45509
|
error: lazyType(() => GetWorkspaceError$zodSchema),
|
|
44978
45510
|
success: booleanType()
|
|
44979
45511
|
}).describe("Invalid id error");
|
|
44980
|
-
|
|
44981
|
-
|
|
44982
|
-
|
|
45512
|
+
GetWorkspaceType$zodSchema = enumType([
|
|
45513
|
+
"auth_error"
|
|
45514
|
+
]);
|
|
45515
|
+
GetWorkspaceCode$zodSchema = enumType([
|
|
45516
|
+
"missing_scope"
|
|
45517
|
+
]);
|
|
45518
|
+
GetWorkspaceForbiddenResponseBody$zodSchema = objectType({
|
|
45519
|
+
code: GetWorkspaceCode$zodSchema,
|
|
45520
|
+
message: stringType(),
|
|
45521
|
+
status_code: numberType(),
|
|
45522
|
+
type: GetWorkspaceType$zodSchema
|
|
45523
|
+
}).describe("Missing scope");
|
|
44983
45524
|
GetWorkspaceResponse$zodSchema = objectType({
|
|
44984
45525
|
ContentType: stringType(),
|
|
44985
45526
|
RawResponse: instanceOfType(Response),
|
|
44986
45527
|
StatusCode: numberType().int(),
|
|
44987
45528
|
Workspace: Workspace$zodSchema.optional(),
|
|
44988
|
-
|
|
44989
|
-
|
|
44990
|
-
|
|
45529
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
45530
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
45531
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => GetWorkspaceForbiddenResponseBody$zodSchema).optional(),
|
|
45532
|
+
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => GetWorkspaceUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
45533
|
+
not_found: NotFound$zodSchema.optional(),
|
|
45534
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
44991
45535
|
});
|
|
44992
45536
|
});
|
|
44993
45537
|
|
|
44994
45538
|
// src/funcs/workspacesGetWorkspace.ts
|
|
44995
45539
|
function workspacesGetWorkspace(client$, request, options) {
|
|
44996
|
-
return new APIPromise($
|
|
45540
|
+
return new APIPromise($do18(client$, request, options));
|
|
44997
45541
|
}
|
|
44998
|
-
async function $
|
|
45542
|
+
async function $do18(client$, request, options) {
|
|
44999
45543
|
const parsed$ = safeParse(request, (value$) => GetWorkspaceRequest$zodSchema.parse(value$), "Input validation failed");
|
|
45000
45544
|
if (!parsed$.ok) {
|
|
45001
45545
|
return [parsed$, { status: "invalid" }];
|
|
@@ -45061,13 +45605,11 @@ async function $do17(client$, request, options) {
|
|
|
45061
45605
|
const responseFields$ = {
|
|
45062
45606
|
HttpMeta: { Response: response, Request: req$ }
|
|
45063
45607
|
};
|
|
45064
|
-
const [result$] = await match(json(200, GetWorkspaceResponse$zodSchema, { key: "Workspace" }), json(
|
|
45065
|
-
key: "
|
|
45066
|
-
}), json(422, GetWorkspaceResponse$zodSchema, {
|
|
45608
|
+
const [result$] = await match(json(200, GetWorkspaceResponse$zodSchema, { key: "Workspace" }), json(400, GetWorkspaceResponse$zodSchema, { key: "bad_request" }), json(401, GetWorkspaceResponse$zodSchema, { key: "auth_error" }), json(403, GetWorkspaceResponse$zodSchema, {
|
|
45609
|
+
key: "403_application/json_object"
|
|
45610
|
+
}), json(404, GetWorkspaceResponse$zodSchema, { key: "not_found" }), json(422, GetWorkspaceResponse$zodSchema, {
|
|
45067
45611
|
key: "422_application/json_object"
|
|
45068
|
-
}), json(429, GetWorkspaceResponse$zodSchema, {
|
|
45069
|
-
key: "429_application/json_object"
|
|
45070
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
45612
|
+
}), json(429, GetWorkspaceResponse$zodSchema, { key: "rate_limit" }), nil(500, GetWorkspaceResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
45071
45613
|
return [result$, { status: "complete", request: req$, response }];
|
|
45072
45614
|
}
|
|
45073
45615
|
var init_workspacesGetWorkspace = __esm(() => {
|
|
@@ -45082,12 +45624,12 @@ var init_workspacesGetWorkspace = __esm(() => {
|
|
|
45082
45624
|
});
|
|
45083
45625
|
|
|
45084
45626
|
// src/mcp-server/tools/workspacesGetWorkspace.ts
|
|
45085
|
-
var
|
|
45627
|
+
var args15, tool$workspacesGetWorkspace;
|
|
45086
45628
|
var init_workspacesGetWorkspace2 = __esm(() => {
|
|
45087
45629
|
init_workspacesGetWorkspace();
|
|
45088
45630
|
init_getworkspaceop();
|
|
45089
45631
|
init_tools();
|
|
45090
|
-
|
|
45632
|
+
args15 = {
|
|
45091
45633
|
request: GetWorkspaceRequest$zodSchema
|
|
45092
45634
|
};
|
|
45093
45635
|
tool$workspacesGetWorkspace = {
|
|
@@ -45095,9 +45637,9 @@ var init_workspacesGetWorkspace2 = __esm(() => {
|
|
|
45095
45637
|
description: `Get a workspace
|
|
45096
45638
|
|
|
45097
45639
|
Returns a single workspace object by ID.`,
|
|
45098
|
-
args:
|
|
45099
|
-
tool: async (client,
|
|
45100
|
-
const [result, apiCall] = await workspacesGetWorkspace(client,
|
|
45640
|
+
args: args15,
|
|
45641
|
+
tool: async (client, args16, ctx) => {
|
|
45642
|
+
const [result, apiCall] = await workspacesGetWorkspace(client, args16.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45101
45643
|
if (!result.ok) {
|
|
45102
45644
|
return {
|
|
45103
45645
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45110,20 +45652,31 @@ Returns a single workspace object by ID.`,
|
|
|
45110
45652
|
};
|
|
45111
45653
|
});
|
|
45112
45654
|
|
|
45113
|
-
// src/models/
|
|
45114
|
-
var
|
|
45115
|
-
var
|
|
45655
|
+
// src/models/paginatedworkspaces.ts
|
|
45656
|
+
var PaginatedWorkspaces$zodSchema;
|
|
45657
|
+
var init_paginatedworkspaces = __esm(() => {
|
|
45116
45658
|
init_zod();
|
|
45117
45659
|
init_pagination();
|
|
45118
45660
|
init_workspace();
|
|
45661
|
+
PaginatedWorkspaces$zodSchema = objectType({
|
|
45662
|
+
data: arrayType(Workspace$zodSchema),
|
|
45663
|
+
pagination: Pagination$zodSchema
|
|
45664
|
+
});
|
|
45665
|
+
});
|
|
45666
|
+
|
|
45667
|
+
// src/models/listworkspacesop.ts
|
|
45668
|
+
var ListWorkspacesRequest$zodSchema, ListWorkspacesPath$zodSchema, ListWorkspacesIssue$zodSchema, ListWorkspacesError$zodSchema, ListWorkspacesUnprocessableEntityResponseBody$zodSchema, ListWorkspacesType$zodSchema, ListWorkspacesCode$zodSchema, ListWorkspacesForbiddenResponseBody$zodSchema, ListWorkspacesResponse$zodSchema;
|
|
45669
|
+
var init_listworkspacesop = __esm(() => {
|
|
45670
|
+
init_zod();
|
|
45671
|
+
init_autherror();
|
|
45672
|
+
init_badrequest();
|
|
45673
|
+
init_paginatedworkspaces();
|
|
45674
|
+
init_ratelimit();
|
|
45119
45675
|
ListWorkspacesRequest$zodSchema = objectType({
|
|
45120
45676
|
cursor: stringType().optional(),
|
|
45121
45677
|
limit: numberType().default(20),
|
|
45122
45678
|
xClientId: stringType()
|
|
45123
45679
|
});
|
|
45124
|
-
ListWorkspacesTooManyRequestsResponseBody$zodSchema = objectType({
|
|
45125
|
-
message: stringType()
|
|
45126
|
-
}).describe("Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers");
|
|
45127
45680
|
ListWorkspacesPath$zodSchema = unionType([
|
|
45128
45681
|
stringType(),
|
|
45129
45682
|
numberType()
|
|
@@ -45144,25 +45697,36 @@ var init_listworkspacesop = __esm(() => {
|
|
|
45144
45697
|
error: lazyType(() => ListWorkspacesError$zodSchema),
|
|
45145
45698
|
success: booleanType()
|
|
45146
45699
|
}).describe("The validation error(s)");
|
|
45147
|
-
|
|
45148
|
-
|
|
45149
|
-
|
|
45150
|
-
|
|
45700
|
+
ListWorkspacesType$zodSchema = enumType([
|
|
45701
|
+
"auth_error"
|
|
45702
|
+
]);
|
|
45703
|
+
ListWorkspacesCode$zodSchema = enumType([
|
|
45704
|
+
"missing_scope"
|
|
45705
|
+
]);
|
|
45706
|
+
ListWorkspacesForbiddenResponseBody$zodSchema = objectType({
|
|
45707
|
+
code: ListWorkspacesCode$zodSchema,
|
|
45708
|
+
message: stringType(),
|
|
45709
|
+
status_code: numberType(),
|
|
45710
|
+
type: ListWorkspacesType$zodSchema
|
|
45711
|
+
}).describe("Missing scope");
|
|
45151
45712
|
ListWorkspacesResponse$zodSchema = objectType({
|
|
45152
45713
|
ContentType: stringType(),
|
|
45714
|
+
PaginatedWorkspaces: PaginatedWorkspaces$zodSchema.optional(),
|
|
45153
45715
|
RawResponse: instanceOfType(Response),
|
|
45154
45716
|
StatusCode: numberType().int(),
|
|
45155
|
-
|
|
45717
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
45718
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
45719
|
+
fourHundredAndThreeApplicationJsonObject: lazyType(() => ListWorkspacesForbiddenResponseBody$zodSchema).optional(),
|
|
45156
45720
|
fourHundredAndTwentyTwoApplicationJsonObject: lazyType(() => ListWorkspacesUnprocessableEntityResponseBody$zodSchema).optional(),
|
|
45157
|
-
|
|
45721
|
+
rate_limit: RateLimit$zodSchema.optional()
|
|
45158
45722
|
});
|
|
45159
45723
|
});
|
|
45160
45724
|
|
|
45161
45725
|
// src/funcs/workspacesListWorkspaces.ts
|
|
45162
45726
|
function workspacesListWorkspaces(client$, request, options) {
|
|
45163
|
-
return new APIPromise($
|
|
45727
|
+
return new APIPromise($do19(client$, request, options));
|
|
45164
45728
|
}
|
|
45165
|
-
async function $
|
|
45729
|
+
async function $do19(client$, request, options) {
|
|
45166
45730
|
const parsed$ = safeParse(request, (value$) => ListWorkspacesRequest$zodSchema.parse(value$), "Input validation failed");
|
|
45167
45731
|
if (!parsed$.ok) {
|
|
45168
45732
|
return [parsed$, { status: "invalid" }];
|
|
@@ -45228,12 +45792,12 @@ async function $do18(client$, request, options) {
|
|
|
45228
45792
|
HttpMeta: { Response: response, Request: req$ }
|
|
45229
45793
|
};
|
|
45230
45794
|
const [result$] = await match(json(200, ListWorkspacesResponse$zodSchema, {
|
|
45231
|
-
key: "
|
|
45795
|
+
key: "PaginatedWorkspaces"
|
|
45796
|
+
}), json(400, ListWorkspacesResponse$zodSchema, { key: "bad_request" }), json(401, ListWorkspacesResponse$zodSchema, { key: "auth_error" }), json(403, ListWorkspacesResponse$zodSchema, {
|
|
45797
|
+
key: "403_application/json_object"
|
|
45232
45798
|
}), json(422, ListWorkspacesResponse$zodSchema, {
|
|
45233
45799
|
key: "422_application/json_object"
|
|
45234
|
-
}), json(429, ListWorkspacesResponse$zodSchema, {
|
|
45235
|
-
key: "429_application/json_object"
|
|
45236
|
-
}))(response, req$, { extraFields: responseFields$ });
|
|
45800
|
+
}), json(429, ListWorkspacesResponse$zodSchema, { key: "rate_limit" }), nil(500, ListWorkspacesResponse$zodSchema))(response, req$, { extraFields: responseFields$ });
|
|
45237
45801
|
return [result$, { status: "complete", request: req$, response }];
|
|
45238
45802
|
}
|
|
45239
45803
|
var init_workspacesListWorkspaces = __esm(() => {
|
|
@@ -45248,12 +45812,12 @@ var init_workspacesListWorkspaces = __esm(() => {
|
|
|
45248
45812
|
});
|
|
45249
45813
|
|
|
45250
45814
|
// src/mcp-server/tools/workspacesListWorkspaces.ts
|
|
45251
|
-
var
|
|
45815
|
+
var args16, tool$workspacesListWorkspaces;
|
|
45252
45816
|
var init_workspacesListWorkspaces2 = __esm(() => {
|
|
45253
45817
|
init_workspacesListWorkspaces();
|
|
45254
45818
|
init_listworkspacesop();
|
|
45255
45819
|
init_tools();
|
|
45256
|
-
|
|
45820
|
+
args16 = {
|
|
45257
45821
|
request: ListWorkspacesRequest$zodSchema
|
|
45258
45822
|
};
|
|
45259
45823
|
tool$workspacesListWorkspaces = {
|
|
@@ -45261,9 +45825,9 @@ var init_workspacesListWorkspaces2 = __esm(() => {
|
|
|
45261
45825
|
description: `List workspaces
|
|
45262
45826
|
|
|
45263
45827
|
Returns a paginated list of workspaces.`,
|
|
45264
|
-
args:
|
|
45265
|
-
tool: async (client,
|
|
45266
|
-
const [result, apiCall] = await workspacesListWorkspaces(client,
|
|
45828
|
+
args: args16,
|
|
45829
|
+
tool: async (client, args17, ctx) => {
|
|
45830
|
+
const [result, apiCall] = await workspacesListWorkspaces(client, args17.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
45267
45831
|
if (!result.ok) {
|
|
45268
45832
|
return {
|
|
45269
45833
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -45280,16 +45844,16 @@ Returns a paginated list of workspaces.`,
|
|
|
45280
45844
|
function createMCPServer(deps) {
|
|
45281
45845
|
const server = new McpServer({
|
|
45282
45846
|
name: "Steuerboard",
|
|
45283
|
-
version: "0.0
|
|
45847
|
+
version: "0.1.0"
|
|
45284
45848
|
});
|
|
45285
45849
|
const getClient = deps.getSDK || (() => new SteuerboardCore({
|
|
45286
45850
|
security: deps.security,
|
|
45287
45851
|
serverURL: deps.serverURL,
|
|
45288
45852
|
serverIdx: deps.serverIdx,
|
|
45289
45853
|
debugLogger: deps.logger.level === "debug" ? {
|
|
45290
|
-
log: (...
|
|
45291
|
-
group: (...
|
|
45292
|
-
groupEnd: (...
|
|
45854
|
+
log: (...args17) => console.log(...args17),
|
|
45855
|
+
group: (...args17) => console.group(...args17),
|
|
45856
|
+
groupEnd: (...args17) => console.groupEnd(...args17)
|
|
45293
45857
|
} : undefined
|
|
45294
45858
|
}));
|
|
45295
45859
|
const scopes = new Set(deps.scopes);
|
|
@@ -45299,13 +45863,14 @@ function createMCPServer(deps) {
|
|
|
45299
45863
|
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, getClient, scopes);
|
|
45300
45864
|
const prompt = createRegisterPrompt(deps.logger, server, getClient, scopes);
|
|
45301
45865
|
const register = { tool, resource, resourceTemplate, prompt };
|
|
45302
|
-
tool(tool$
|
|
45303
|
-
tool(tool$
|
|
45304
|
-
tool(tool$
|
|
45866
|
+
tool(tool$healthIndex);
|
|
45867
|
+
tool(tool$healthPing);
|
|
45868
|
+
tool(tool$authMe);
|
|
45305
45869
|
tool(tool$adminClientsListClients);
|
|
45306
45870
|
tool(tool$adminClientsCreateClient);
|
|
45307
45871
|
tool(tool$adminClientsGetClient);
|
|
45308
45872
|
tool(tool$workspacesListWorkspaces);
|
|
45873
|
+
tool(tool$workspacesCreateWorkspace);
|
|
45309
45874
|
tool(tool$workspacesGetWorkspace);
|
|
45310
45875
|
tool(tool$filesListFiles);
|
|
45311
45876
|
tool(tool$filesCreateFile);
|
|
@@ -45327,19 +45892,20 @@ var init_server2 = __esm(() => {
|
|
|
45327
45892
|
init_adminClientsCreateClient2();
|
|
45328
45893
|
init_adminClientsGetClient2();
|
|
45329
45894
|
init_adminClientsListClients2();
|
|
45330
|
-
|
|
45895
|
+
init_authMe2();
|
|
45331
45896
|
init_filesCreateFile2();
|
|
45332
45897
|
init_filesDeleteFile2();
|
|
45333
45898
|
init_filesGetFile2();
|
|
45334
45899
|
init_filesListFiles2();
|
|
45335
45900
|
init_filesUpdateFile2();
|
|
45336
|
-
|
|
45337
|
-
|
|
45901
|
+
init_healthIndex2();
|
|
45902
|
+
init_healthPing2();
|
|
45338
45903
|
init_tasksCreateTask2();
|
|
45339
45904
|
init_tasksDeleteTask2();
|
|
45340
45905
|
init_tasksGetTask2();
|
|
45341
45906
|
init_tasksListTasks2();
|
|
45342
45907
|
init_tasksUpdateTask2();
|
|
45908
|
+
init_workspacesCreateWorkspace2();
|
|
45343
45909
|
init_workspacesGetWorkspace2();
|
|
45344
45910
|
init_workspacesListWorkspaces2();
|
|
45345
45911
|
});
|
|
@@ -46537,7 +47103,7 @@ var routes = ln({
|
|
|
46537
47103
|
var app = _e(routes, {
|
|
46538
47104
|
name: "mcp",
|
|
46539
47105
|
versionInfo: {
|
|
46540
|
-
currentVersion: "0.0
|
|
47106
|
+
currentVersion: "0.1.0"
|
|
46541
47107
|
}
|
|
46542
47108
|
});
|
|
46543
47109
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -46545,5 +47111,5 @@ export {
|
|
|
46545
47111
|
app
|
|
46546
47112
|
};
|
|
46547
47113
|
|
|
46548
|
-
//# debugId=
|
|
47114
|
+
//# debugId=49813532CB67895064756E2164756E21
|
|
46549
47115
|
//# sourceMappingURL=mcp-server.js.map
|