@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
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { AuthError, AuthError$zodSchema } from "./autherror.js";
|
|
6
7
|
import { Client, Client$zodSchema } from "./client.js";
|
|
8
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
9
|
+
import { RateLimit, RateLimit$zodSchema } from "./ratelimit.js";
|
|
7
10
|
|
|
8
11
|
export type GetClientRequest = { id: string };
|
|
9
12
|
|
|
@@ -15,21 +18,6 @@ export const GetClientRequest$zodSchema: z.ZodType<
|
|
|
15
18
|
id: z.string(),
|
|
16
19
|
});
|
|
17
20
|
|
|
18
|
-
/**
|
|
19
|
-
* Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers
|
|
20
|
-
*/
|
|
21
|
-
export type GetClientTooManyRequestsResponseBody = { message: string };
|
|
22
|
-
|
|
23
|
-
export const GetClientTooManyRequestsResponseBody$zodSchema: z.ZodType<
|
|
24
|
-
GetClientTooManyRequestsResponseBody,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({
|
|
28
|
-
message: z.string(),
|
|
29
|
-
}).describe(
|
|
30
|
-
"Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers",
|
|
31
|
-
);
|
|
32
|
-
|
|
33
21
|
export type GetClientPath = string | number;
|
|
34
22
|
|
|
35
23
|
export const GetClientPath$zodSchema: z.ZodType<
|
|
@@ -88,33 +76,53 @@ export const GetClientUnprocessableEntityResponseBody$zodSchema: z.ZodType<
|
|
|
88
76
|
success: z.boolean(),
|
|
89
77
|
}).describe("Invalid id error");
|
|
90
78
|
|
|
79
|
+
export const GetClientType$zodSchema = z.enum([
|
|
80
|
+
"auth_error",
|
|
81
|
+
]);
|
|
82
|
+
|
|
83
|
+
export type GetClientType = z.infer<typeof GetClientType$zodSchema>;
|
|
84
|
+
|
|
85
|
+
export const GetClientCode$zodSchema = z.enum([
|
|
86
|
+
"missing_scope",
|
|
87
|
+
]);
|
|
88
|
+
|
|
89
|
+
export type GetClientCode = z.infer<typeof GetClientCode$zodSchema>;
|
|
90
|
+
|
|
91
91
|
/**
|
|
92
|
-
*
|
|
92
|
+
* Missing scope
|
|
93
93
|
*/
|
|
94
|
-
export type
|
|
94
|
+
export type GetClientForbiddenResponseBody = {
|
|
95
|
+
status_code: number;
|
|
96
|
+
type: GetClientType;
|
|
97
|
+
code: GetClientCode;
|
|
98
|
+
message: string;
|
|
99
|
+
};
|
|
95
100
|
|
|
96
|
-
export const
|
|
97
|
-
|
|
101
|
+
export const GetClientForbiddenResponseBody$zodSchema: z.ZodType<
|
|
102
|
+
GetClientForbiddenResponseBody,
|
|
98
103
|
z.ZodTypeDef,
|
|
99
104
|
unknown
|
|
100
105
|
> = z.object({
|
|
106
|
+
code: GetClientCode$zodSchema,
|
|
101
107
|
message: z.string(),
|
|
102
|
-
|
|
108
|
+
status_code: z.number(),
|
|
109
|
+
type: GetClientType$zodSchema,
|
|
110
|
+
}).describe("Missing scope");
|
|
103
111
|
|
|
104
112
|
export type GetClientResponse = {
|
|
105
113
|
ContentType: string;
|
|
106
114
|
StatusCode: number;
|
|
107
115
|
RawResponse: Response;
|
|
108
116
|
Client?: Client | undefined;
|
|
109
|
-
|
|
110
|
-
|
|
117
|
+
auth_error?: AuthError | undefined;
|
|
118
|
+
fourHundredAndThreeApplicationJsonObject?:
|
|
119
|
+
| GetClientForbiddenResponseBody
|
|
111
120
|
| undefined;
|
|
121
|
+
not_found?: NotFound | undefined;
|
|
112
122
|
fourHundredAndTwentyTwoApplicationJsonObject?:
|
|
113
123
|
| GetClientUnprocessableEntityResponseBody
|
|
114
124
|
| undefined;
|
|
115
|
-
|
|
116
|
-
| GetClientTooManyRequestsResponseBody
|
|
117
|
-
| undefined;
|
|
125
|
+
rate_limit?: RateLimit | undefined;
|
|
118
126
|
};
|
|
119
127
|
|
|
120
128
|
export const GetClientResponse$zodSchema: z.ZodType<
|
|
@@ -126,13 +134,13 @@ export const GetClientResponse$zodSchema: z.ZodType<
|
|
|
126
134
|
ContentType: z.string(),
|
|
127
135
|
RawResponse: z.instanceof(Response),
|
|
128
136
|
StatusCode: z.number().int(),
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
fourHundredAndTwentyNineApplicationJsonObject: z.lazy(() =>
|
|
133
|
-
GetClientTooManyRequestsResponseBody$zodSchema
|
|
137
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
138
|
+
fourHundredAndThreeApplicationJsonObject: z.lazy(() =>
|
|
139
|
+
GetClientForbiddenResponseBody$zodSchema
|
|
134
140
|
).optional(),
|
|
135
141
|
fourHundredAndTwentyTwoApplicationJsonObject: z.lazy(() =>
|
|
136
142
|
GetClientUnprocessableEntityResponseBody$zodSchema
|
|
137
143
|
).optional(),
|
|
144
|
+
not_found: NotFound$zodSchema.optional(),
|
|
145
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
138
146
|
});
|
package/src/models/getfileop.ts
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { AuthError, AuthError$zodSchema } from "./autherror.js";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
6
8
|
import { FileT, FileT$zodSchema } from "./file.js";
|
|
9
|
+
import { RateLimit, RateLimit$zodSchema } from "./ratelimit.js";
|
|
7
10
|
|
|
8
11
|
export type GetFileRequest = { id: string; xClientId: string };
|
|
9
12
|
|
|
@@ -16,21 +19,6 @@ export const GetFileRequest$zodSchema: z.ZodType<
|
|
|
16
19
|
xClientId: z.string(),
|
|
17
20
|
});
|
|
18
21
|
|
|
19
|
-
/**
|
|
20
|
-
* Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers
|
|
21
|
-
*/
|
|
22
|
-
export type GetFileTooManyRequestsResponseBody = { message: string };
|
|
23
|
-
|
|
24
|
-
export const GetFileTooManyRequestsResponseBody$zodSchema: z.ZodType<
|
|
25
|
-
GetFileTooManyRequestsResponseBody,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.object({
|
|
29
|
-
message: z.string(),
|
|
30
|
-
}).describe(
|
|
31
|
-
"Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers",
|
|
32
|
-
);
|
|
33
|
-
|
|
34
22
|
export type GetFilePath = string | number;
|
|
35
23
|
|
|
36
24
|
export const GetFilePath$zodSchema: z.ZodType<
|
|
@@ -102,20 +90,56 @@ export const GetFileNotFoundResponseBody$zodSchema: z.ZodType<
|
|
|
102
90
|
message: z.string(),
|
|
103
91
|
}).describe("File not found");
|
|
104
92
|
|
|
93
|
+
export const GetFileType$zodSchema = z.enum([
|
|
94
|
+
"auth_error",
|
|
95
|
+
]);
|
|
96
|
+
|
|
97
|
+
export type GetFileType = z.infer<typeof GetFileType$zodSchema>;
|
|
98
|
+
|
|
99
|
+
export const GetFileCode$zodSchema = z.enum([
|
|
100
|
+
"missing_scope",
|
|
101
|
+
]);
|
|
102
|
+
|
|
103
|
+
export type GetFileCode = z.infer<typeof GetFileCode$zodSchema>;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* Missing scope
|
|
107
|
+
*/
|
|
108
|
+
export type GetFileForbiddenResponseBody = {
|
|
109
|
+
status_code: number;
|
|
110
|
+
type: GetFileType;
|
|
111
|
+
code: GetFileCode;
|
|
112
|
+
message: string;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export const GetFileForbiddenResponseBody$zodSchema: z.ZodType<
|
|
116
|
+
GetFileForbiddenResponseBody,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = z.object({
|
|
120
|
+
code: GetFileCode$zodSchema,
|
|
121
|
+
message: z.string(),
|
|
122
|
+
status_code: z.number(),
|
|
123
|
+
type: GetFileType$zodSchema,
|
|
124
|
+
}).describe("Missing scope");
|
|
125
|
+
|
|
105
126
|
export type GetFileResponse = {
|
|
106
127
|
ContentType: string;
|
|
107
128
|
StatusCode: number;
|
|
108
129
|
RawResponse: Response;
|
|
109
130
|
FileT?: FileT | undefined;
|
|
131
|
+
bad_request?: BadRequest | undefined;
|
|
132
|
+
auth_error?: AuthError | undefined;
|
|
133
|
+
fourHundredAndThreeApplicationJsonObject?:
|
|
134
|
+
| GetFileForbiddenResponseBody
|
|
135
|
+
| undefined;
|
|
110
136
|
fourHundredAndFourApplicationJsonObject?:
|
|
111
137
|
| GetFileNotFoundResponseBody
|
|
112
138
|
| undefined;
|
|
113
139
|
fourHundredAndTwentyTwoApplicationJsonObject?:
|
|
114
140
|
| GetFileUnprocessableEntityResponseBody
|
|
115
141
|
| undefined;
|
|
116
|
-
|
|
117
|
-
| GetFileTooManyRequestsResponseBody
|
|
118
|
-
| undefined;
|
|
142
|
+
rate_limit?: RateLimit | undefined;
|
|
119
143
|
};
|
|
120
144
|
|
|
121
145
|
export const GetFileResponse$zodSchema: z.ZodType<
|
|
@@ -127,13 +151,16 @@ export const GetFileResponse$zodSchema: z.ZodType<
|
|
|
127
151
|
FileT: FileT$zodSchema.optional(),
|
|
128
152
|
RawResponse: z.instanceof(Response),
|
|
129
153
|
StatusCode: z.number().int(),
|
|
154
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
155
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
130
156
|
fourHundredAndFourApplicationJsonObject: z.lazy(() =>
|
|
131
157
|
GetFileNotFoundResponseBody$zodSchema
|
|
132
158
|
).optional(),
|
|
133
|
-
|
|
134
|
-
|
|
159
|
+
fourHundredAndThreeApplicationJsonObject: z.lazy(() =>
|
|
160
|
+
GetFileForbiddenResponseBody$zodSchema
|
|
135
161
|
).optional(),
|
|
136
162
|
fourHundredAndTwentyTwoApplicationJsonObject: z.lazy(() =>
|
|
137
163
|
GetFileUnprocessableEntityResponseBody$zodSchema
|
|
138
164
|
).optional(),
|
|
165
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
139
166
|
});
|
package/src/models/gettaskop.ts
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { AuthError, AuthError$zodSchema } from "./autherror.js";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
8
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
9
|
+
import { RateLimit, RateLimit$zodSchema } from "./ratelimit.js";
|
|
6
10
|
import { Task, Task$zodSchema } from "./task.js";
|
|
7
11
|
|
|
8
|
-
export type GetTaskRequest = { id: string };
|
|
12
|
+
export type GetTaskRequest = { id: string; xClientId: string };
|
|
9
13
|
|
|
10
14
|
export const GetTaskRequest$zodSchema: z.ZodType<
|
|
11
15
|
GetTaskRequest,
|
|
@@ -13,6 +17,7 @@ export const GetTaskRequest$zodSchema: z.ZodType<
|
|
|
13
17
|
unknown
|
|
14
18
|
> = z.object({
|
|
15
19
|
id: z.string(),
|
|
20
|
+
xClientId: z.string(),
|
|
16
21
|
});
|
|
17
22
|
|
|
18
23
|
export type GetTaskPath = string | number;
|
|
@@ -73,30 +78,54 @@ export const GetTaskUnprocessableEntityResponseBody$zodSchema: z.ZodType<
|
|
|
73
78
|
success: z.boolean(),
|
|
74
79
|
}).describe("Invalid id error");
|
|
75
80
|
|
|
81
|
+
export const GetTaskType$zodSchema = z.enum([
|
|
82
|
+
"auth_error",
|
|
83
|
+
]);
|
|
84
|
+
|
|
85
|
+
export type GetTaskType = z.infer<typeof GetTaskType$zodSchema>;
|
|
86
|
+
|
|
87
|
+
export const GetTaskCode$zodSchema = z.enum([
|
|
88
|
+
"missing_scope",
|
|
89
|
+
]);
|
|
90
|
+
|
|
91
|
+
export type GetTaskCode = z.infer<typeof GetTaskCode$zodSchema>;
|
|
92
|
+
|
|
76
93
|
/**
|
|
77
|
-
*
|
|
94
|
+
* Missing scope
|
|
78
95
|
*/
|
|
79
|
-
export type
|
|
96
|
+
export type GetTaskForbiddenResponseBody = {
|
|
97
|
+
status_code: number;
|
|
98
|
+
type: GetTaskType;
|
|
99
|
+
code: GetTaskCode;
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
80
102
|
|
|
81
|
-
export const
|
|
82
|
-
|
|
103
|
+
export const GetTaskForbiddenResponseBody$zodSchema: z.ZodType<
|
|
104
|
+
GetTaskForbiddenResponseBody,
|
|
83
105
|
z.ZodTypeDef,
|
|
84
106
|
unknown
|
|
85
107
|
> = z.object({
|
|
108
|
+
code: GetTaskCode$zodSchema,
|
|
86
109
|
message: z.string(),
|
|
87
|
-
|
|
110
|
+
status_code: z.number(),
|
|
111
|
+
type: GetTaskType$zodSchema,
|
|
112
|
+
}).describe("Missing scope");
|
|
88
113
|
|
|
89
114
|
export type GetTaskResponse = {
|
|
90
115
|
ContentType: string;
|
|
91
116
|
StatusCode: number;
|
|
92
117
|
RawResponse: Response;
|
|
93
118
|
Task?: Task | undefined;
|
|
94
|
-
|
|
95
|
-
|
|
119
|
+
bad_request?: BadRequest | undefined;
|
|
120
|
+
auth_error?: AuthError | undefined;
|
|
121
|
+
fourHundredAndThreeApplicationJsonObject?:
|
|
122
|
+
| GetTaskForbiddenResponseBody
|
|
96
123
|
| undefined;
|
|
124
|
+
not_found?: NotFound | undefined;
|
|
97
125
|
fourHundredAndTwentyTwoApplicationJsonObject?:
|
|
98
126
|
| GetTaskUnprocessableEntityResponseBody
|
|
99
127
|
| undefined;
|
|
128
|
+
rate_limit?: RateLimit | undefined;
|
|
100
129
|
};
|
|
101
130
|
|
|
102
131
|
export const GetTaskResponse$zodSchema: z.ZodType<
|
|
@@ -108,10 +137,14 @@ export const GetTaskResponse$zodSchema: z.ZodType<
|
|
|
108
137
|
RawResponse: z.instanceof(Response),
|
|
109
138
|
StatusCode: z.number().int(),
|
|
110
139
|
Task: Task$zodSchema.optional(),
|
|
111
|
-
|
|
112
|
-
|
|
140
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
141
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
142
|
+
fourHundredAndThreeApplicationJsonObject: z.lazy(() =>
|
|
143
|
+
GetTaskForbiddenResponseBody$zodSchema
|
|
113
144
|
).optional(),
|
|
114
145
|
fourHundredAndTwentyTwoApplicationJsonObject: z.lazy(() =>
|
|
115
146
|
GetTaskUnprocessableEntityResponseBody$zodSchema
|
|
116
147
|
).optional(),
|
|
148
|
+
not_found: NotFound$zodSchema.optional(),
|
|
149
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
117
150
|
});
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
+
import { AuthError, AuthError$zodSchema } from "./autherror.js";
|
|
7
|
+
import { BadRequest, BadRequest$zodSchema } from "./badrequest.js";
|
|
8
|
+
import { NotFound, NotFound$zodSchema } from "./notfound.js";
|
|
9
|
+
import { RateLimit, RateLimit$zodSchema } from "./ratelimit.js";
|
|
6
10
|
import { Workspace, Workspace$zodSchema } from "./workspace.js";
|
|
7
11
|
|
|
8
12
|
export type GetWorkspaceRequest = { id: string; xClientId: string };
|
|
@@ -16,21 +20,6 @@ export const GetWorkspaceRequest$zodSchema: z.ZodType<
|
|
|
16
20
|
xClientId: z.string(),
|
|
17
21
|
});
|
|
18
22
|
|
|
19
|
-
/**
|
|
20
|
-
* Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers
|
|
21
|
-
*/
|
|
22
|
-
export type GetWorkspaceTooManyRequestsResponseBody = { message: string };
|
|
23
|
-
|
|
24
|
-
export const GetWorkspaceTooManyRequestsResponseBody$zodSchema: z.ZodType<
|
|
25
|
-
GetWorkspaceTooManyRequestsResponseBody,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.object({
|
|
29
|
-
message: z.string(),
|
|
30
|
-
}).describe(
|
|
31
|
-
"Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers",
|
|
32
|
-
);
|
|
33
|
-
|
|
34
23
|
export type GetWorkspacePath = string | number;
|
|
35
24
|
|
|
36
25
|
export const GetWorkspacePath$zodSchema: z.ZodType<
|
|
@@ -92,33 +81,54 @@ export const GetWorkspaceUnprocessableEntityResponseBody$zodSchema: z.ZodType<
|
|
|
92
81
|
success: z.boolean(),
|
|
93
82
|
}).describe("Invalid id error");
|
|
94
83
|
|
|
84
|
+
export const GetWorkspaceType$zodSchema = z.enum([
|
|
85
|
+
"auth_error",
|
|
86
|
+
]);
|
|
87
|
+
|
|
88
|
+
export type GetWorkspaceType = z.infer<typeof GetWorkspaceType$zodSchema>;
|
|
89
|
+
|
|
90
|
+
export const GetWorkspaceCode$zodSchema = z.enum([
|
|
91
|
+
"missing_scope",
|
|
92
|
+
]);
|
|
93
|
+
|
|
94
|
+
export type GetWorkspaceCode = z.infer<typeof GetWorkspaceCode$zodSchema>;
|
|
95
|
+
|
|
95
96
|
/**
|
|
96
|
-
*
|
|
97
|
+
* Missing scope
|
|
97
98
|
*/
|
|
98
|
-
export type
|
|
99
|
+
export type GetWorkspaceForbiddenResponseBody = {
|
|
100
|
+
status_code: number;
|
|
101
|
+
type: GetWorkspaceType;
|
|
102
|
+
code: GetWorkspaceCode;
|
|
103
|
+
message: string;
|
|
104
|
+
};
|
|
99
105
|
|
|
100
|
-
export const
|
|
101
|
-
|
|
106
|
+
export const GetWorkspaceForbiddenResponseBody$zodSchema: z.ZodType<
|
|
107
|
+
GetWorkspaceForbiddenResponseBody,
|
|
102
108
|
z.ZodTypeDef,
|
|
103
109
|
unknown
|
|
104
110
|
> = z.object({
|
|
111
|
+
code: GetWorkspaceCode$zodSchema,
|
|
105
112
|
message: z.string(),
|
|
106
|
-
|
|
113
|
+
status_code: z.number(),
|
|
114
|
+
type: GetWorkspaceType$zodSchema,
|
|
115
|
+
}).describe("Missing scope");
|
|
107
116
|
|
|
108
117
|
export type GetWorkspaceResponse = {
|
|
109
118
|
ContentType: string;
|
|
110
119
|
StatusCode: number;
|
|
111
120
|
RawResponse: Response;
|
|
112
121
|
Workspace?: Workspace | undefined;
|
|
113
|
-
|
|
114
|
-
|
|
122
|
+
bad_request?: BadRequest | undefined;
|
|
123
|
+
auth_error?: AuthError | undefined;
|
|
124
|
+
fourHundredAndThreeApplicationJsonObject?:
|
|
125
|
+
| GetWorkspaceForbiddenResponseBody
|
|
115
126
|
| undefined;
|
|
127
|
+
not_found?: NotFound | undefined;
|
|
116
128
|
fourHundredAndTwentyTwoApplicationJsonObject?:
|
|
117
129
|
| GetWorkspaceUnprocessableEntityResponseBody
|
|
118
130
|
| undefined;
|
|
119
|
-
|
|
120
|
-
| GetWorkspaceTooManyRequestsResponseBody
|
|
121
|
-
| undefined;
|
|
131
|
+
rate_limit?: RateLimit | undefined;
|
|
122
132
|
};
|
|
123
133
|
|
|
124
134
|
export const GetWorkspaceResponse$zodSchema: z.ZodType<
|
|
@@ -130,13 +140,14 @@ export const GetWorkspaceResponse$zodSchema: z.ZodType<
|
|
|
130
140
|
RawResponse: z.instanceof(Response),
|
|
131
141
|
StatusCode: z.number().int(),
|
|
132
142
|
Workspace: Workspace$zodSchema.optional(),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
GetWorkspaceTooManyRequestsResponseBody$zodSchema
|
|
143
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
144
|
+
bad_request: BadRequest$zodSchema.optional(),
|
|
145
|
+
fourHundredAndThreeApplicationJsonObject: z.lazy(() =>
|
|
146
|
+
GetWorkspaceForbiddenResponseBody$zodSchema
|
|
138
147
|
).optional(),
|
|
139
148
|
fourHundredAndTwentyTwoApplicationJsonObject: z.lazy(() =>
|
|
140
149
|
GetWorkspaceUnprocessableEntityResponseBody$zodSchema
|
|
141
150
|
).optional(),
|
|
151
|
+
not_found: NotFound$zodSchema.optional(),
|
|
152
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
142
153
|
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { RateLimit, RateLimit$zodSchema } from "./ratelimit.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Steuerboard API Index
|
|
10
|
+
*/
|
|
11
|
+
export type IndexResponseBody = { message: string };
|
|
12
|
+
|
|
13
|
+
export const IndexResponseBody$zodSchema: z.ZodType<
|
|
14
|
+
IndexResponseBody,
|
|
15
|
+
z.ZodTypeDef,
|
|
16
|
+
unknown
|
|
17
|
+
> = z.object({
|
|
18
|
+
message: z.string(),
|
|
19
|
+
}).describe("Steuerboard API Index");
|
|
20
|
+
|
|
21
|
+
export type IndexResponse = {
|
|
22
|
+
ContentType: string;
|
|
23
|
+
StatusCode: number;
|
|
24
|
+
RawResponse: Response;
|
|
25
|
+
object?: IndexResponseBody | undefined;
|
|
26
|
+
rate_limit?: RateLimit | undefined;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export const IndexResponse$zodSchema: z.ZodType<
|
|
30
|
+
IndexResponse,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
unknown
|
|
33
|
+
> = z.object({
|
|
34
|
+
ContentType: z.string(),
|
|
35
|
+
RawResponse: z.instanceof(Response),
|
|
36
|
+
StatusCode: z.number().int(),
|
|
37
|
+
object: z.lazy(() => IndexResponseBody$zodSchema).optional(),
|
|
38
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
39
|
+
});
|
|
@@ -3,8 +3,12 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { AuthError, AuthError$zodSchema } from "./autherror.js";
|
|
7
|
+
import {
|
|
8
|
+
PaginatedClients,
|
|
9
|
+
PaginatedClients$zodSchema,
|
|
10
|
+
} from "./paginatedclients.js";
|
|
11
|
+
import { RateLimit, RateLimit$zodSchema } from "./ratelimit.js";
|
|
8
12
|
|
|
9
13
|
/**
|
|
10
14
|
* Include archived clients
|
|
@@ -19,7 +23,7 @@ export type Archived = z.infer<typeof Archived$zodSchema>;
|
|
|
19
23
|
/**
|
|
20
24
|
* 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.
|
|
21
25
|
*/
|
|
22
|
-
export const
|
|
26
|
+
export const ListClientsClientType$zodSchema = z.enum([
|
|
23
27
|
"natural_person",
|
|
24
28
|
"individual_enterprise",
|
|
25
29
|
"legal_person",
|
|
@@ -27,12 +31,14 @@ export const ListClientsType$zodSchema = z.enum([
|
|
|
27
31
|
"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.",
|
|
28
32
|
);
|
|
29
33
|
|
|
30
|
-
export type
|
|
34
|
+
export type ListClientsClientType = z.infer<
|
|
35
|
+
typeof ListClientsClientType$zodSchema
|
|
36
|
+
>;
|
|
31
37
|
|
|
32
38
|
/**
|
|
33
39
|
* The sort field of the results
|
|
34
40
|
*/
|
|
35
|
-
export const
|
|
41
|
+
export const ListClientsSort$zodSchema = z.enum([
|
|
36
42
|
"createdAt",
|
|
37
43
|
"updatedAt",
|
|
38
44
|
"archivedAt",
|
|
@@ -40,17 +46,17 @@ export const Sort$zodSchema = z.enum([
|
|
|
40
46
|
"customId",
|
|
41
47
|
]).describe("The sort field of the results");
|
|
42
48
|
|
|
43
|
-
export type
|
|
49
|
+
export type ListClientsSort = z.infer<typeof ListClientsSort$zodSchema>;
|
|
44
50
|
|
|
45
51
|
/**
|
|
46
52
|
* The order of the results based on the sort field
|
|
47
53
|
*/
|
|
48
|
-
export const
|
|
54
|
+
export const ListClientsOrder$zodSchema = z.enum([
|
|
49
55
|
"asc",
|
|
50
56
|
"desc",
|
|
51
57
|
]).describe("The order of the results based on the sort field");
|
|
52
58
|
|
|
53
|
-
export type
|
|
59
|
+
export type ListClientsOrder = z.infer<typeof ListClientsOrder$zodSchema>;
|
|
54
60
|
|
|
55
61
|
export type ListClientsRequest = {
|
|
56
62
|
limit?: number | undefined;
|
|
@@ -58,9 +64,9 @@ export type ListClientsRequest = {
|
|
|
58
64
|
customId?: string | undefined;
|
|
59
65
|
slug?: string | undefined;
|
|
60
66
|
archived?: Archived | undefined;
|
|
61
|
-
type?:
|
|
62
|
-
sort?:
|
|
63
|
-
order?:
|
|
67
|
+
type?: ListClientsClientType | undefined;
|
|
68
|
+
sort?: ListClientsSort | undefined;
|
|
69
|
+
order?: ListClientsOrder | undefined;
|
|
64
70
|
};
|
|
65
71
|
|
|
66
72
|
export const ListClientsRequest$zodSchema: z.ZodType<
|
|
@@ -72,27 +78,12 @@ export const ListClientsRequest$zodSchema: z.ZodType<
|
|
|
72
78
|
cursor: z.string().optional(),
|
|
73
79
|
customId: z.string().optional(),
|
|
74
80
|
limit: z.number().default(20),
|
|
75
|
-
order:
|
|
81
|
+
order: ListClientsOrder$zodSchema.default("desc"),
|
|
76
82
|
slug: z.string().optional(),
|
|
77
|
-
sort:
|
|
78
|
-
type:
|
|
83
|
+
sort: ListClientsSort$zodSchema.default("createdAt"),
|
|
84
|
+
type: ListClientsClientType$zodSchema.optional(),
|
|
79
85
|
});
|
|
80
86
|
|
|
81
|
-
/**
|
|
82
|
-
* Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers
|
|
83
|
-
*/
|
|
84
|
-
export type ListClientsTooManyRequestsResponseBody = { message: string };
|
|
85
|
-
|
|
86
|
-
export const ListClientsTooManyRequestsResponseBody$zodSchema: z.ZodType<
|
|
87
|
-
ListClientsTooManyRequestsResponseBody,
|
|
88
|
-
z.ZodTypeDef,
|
|
89
|
-
unknown
|
|
90
|
-
> = z.object({
|
|
91
|
-
message: z.string(),
|
|
92
|
-
}).describe(
|
|
93
|
-
"Rate limit exceeded. Slow down requests or retry after the time specified in the rate limit response headers",
|
|
94
|
-
);
|
|
95
|
-
|
|
96
87
|
export type ListClientsPath = string | number;
|
|
97
88
|
|
|
98
89
|
export const ListClientsPath$zodSchema: z.ZodType<
|
|
@@ -154,34 +145,52 @@ export const ListClientsUnprocessableEntityResponseBody$zodSchema: z.ZodType<
|
|
|
154
145
|
success: z.boolean(),
|
|
155
146
|
}).describe("The validation error(s)");
|
|
156
147
|
|
|
148
|
+
export const ListClientsType$zodSchema = z.enum([
|
|
149
|
+
"auth_error",
|
|
150
|
+
]);
|
|
151
|
+
|
|
152
|
+
export type ListClientsType = z.infer<typeof ListClientsType$zodSchema>;
|
|
153
|
+
|
|
154
|
+
export const ListClientsCode$zodSchema = z.enum([
|
|
155
|
+
"missing_scope",
|
|
156
|
+
]);
|
|
157
|
+
|
|
158
|
+
export type ListClientsCode = z.infer<typeof ListClientsCode$zodSchema>;
|
|
159
|
+
|
|
157
160
|
/**
|
|
158
|
-
*
|
|
161
|
+
* Missing scope
|
|
159
162
|
*/
|
|
160
|
-
export type
|
|
161
|
-
|
|
162
|
-
|
|
163
|
+
export type ListClientsForbiddenResponseBody = {
|
|
164
|
+
status_code: number;
|
|
165
|
+
type: ListClientsType;
|
|
166
|
+
code: ListClientsCode;
|
|
167
|
+
message: string;
|
|
163
168
|
};
|
|
164
169
|
|
|
165
|
-
export const
|
|
166
|
-
|
|
170
|
+
export const ListClientsForbiddenResponseBody$zodSchema: z.ZodType<
|
|
171
|
+
ListClientsForbiddenResponseBody,
|
|
167
172
|
z.ZodTypeDef,
|
|
168
173
|
unknown
|
|
169
174
|
> = z.object({
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
175
|
+
code: ListClientsCode$zodSchema,
|
|
176
|
+
message: z.string(),
|
|
177
|
+
status_code: z.number(),
|
|
178
|
+
type: ListClientsType$zodSchema,
|
|
179
|
+
}).describe("Missing scope");
|
|
173
180
|
|
|
174
181
|
export type ListClientsResponse = {
|
|
175
182
|
ContentType: string;
|
|
176
183
|
StatusCode: number;
|
|
177
184
|
RawResponse: Response;
|
|
178
|
-
|
|
185
|
+
PaginatedClients?: PaginatedClients | undefined;
|
|
186
|
+
auth_error?: AuthError | undefined;
|
|
187
|
+
fourHundredAndThreeApplicationJsonObject?:
|
|
188
|
+
| ListClientsForbiddenResponseBody
|
|
189
|
+
| undefined;
|
|
179
190
|
fourHundredAndTwentyTwoApplicationJsonObject?:
|
|
180
191
|
| ListClientsUnprocessableEntityResponseBody
|
|
181
192
|
| undefined;
|
|
182
|
-
|
|
183
|
-
| ListClientsTooManyRequestsResponseBody
|
|
184
|
-
| undefined;
|
|
193
|
+
rate_limit?: RateLimit | undefined;
|
|
185
194
|
};
|
|
186
195
|
|
|
187
196
|
export const ListClientsResponse$zodSchema: z.ZodType<
|
|
@@ -190,15 +199,15 @@ export const ListClientsResponse$zodSchema: z.ZodType<
|
|
|
190
199
|
unknown
|
|
191
200
|
> = z.object({
|
|
192
201
|
ContentType: z.string(),
|
|
202
|
+
PaginatedClients: PaginatedClients$zodSchema.optional(),
|
|
193
203
|
RawResponse: z.instanceof(Response),
|
|
194
204
|
StatusCode: z.number().int(),
|
|
195
|
-
|
|
196
|
-
|
|
205
|
+
auth_error: AuthError$zodSchema.optional(),
|
|
206
|
+
fourHundredAndThreeApplicationJsonObject: z.lazy(() =>
|
|
207
|
+
ListClientsForbiddenResponseBody$zodSchema
|
|
197
208
|
).optional(),
|
|
198
209
|
fourHundredAndTwentyTwoApplicationJsonObject: z.lazy(() =>
|
|
199
210
|
ListClientsUnprocessableEntityResponseBody$zodSchema
|
|
200
211
|
).optional(),
|
|
201
|
-
|
|
202
|
-
ListClientsResponseBody$zodSchema
|
|
203
|
-
).optional(),
|
|
212
|
+
rate_limit: RateLimit$zodSchema.optional(),
|
|
204
213
|
});
|