@meetkai/mka1 0.55.6 → 0.55.8
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 +375 -361
- package/bin/mcp-server.js +517 -16
- package/bin/mcp-server.js.map +23 -19
- package/dist/commonjs/funcs/authOrgsGetInboundRules.d.ts +18 -0
- package/dist/commonjs/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/commonjs/funcs/authOrgsGetInboundRules.js +145 -0
- package/dist/commonjs/funcs/authOrgsGetInboundRules.js.map +1 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.js +140 -0
- package/dist/commonjs/funcs/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/commonjs/funcs/llmFilesList.js +1 -0
- package/dist/commonjs/funcs/llmFilesList.js.map +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreate.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreate.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/commonjs/funcs/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreate.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js +4 -0
- package/dist/commonjs/models/components/createvectorstorefilebatchrequest.js.map +1 -1
- package/dist/commonjs/models/components/file.d.ts +5 -0
- package/dist/commonjs/models/components/file.d.ts.map +1 -1
- package/dist/commonjs/models/components/file.js +2 -0
- package/dist/commonjs/models/components/file.js.map +1 -1
- package/dist/commonjs/models/components/vectorstorefileerror.d.ts +4 -3
- package/dist/commonjs/models/components/vectorstorefileerror.d.ts.map +1 -1
- package/dist/commonjs/models/components/vectorstorefileerror.js +2 -1
- package/dist/commonjs/models/components/vectorstorefileerror.js.map +1 -1
- package/dist/commonjs/models/errors/getorginboundrules.d.ts +185 -0
- package/dist/commonjs/models/errors/getorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getorginboundrules.js +266 -0
- package/dist/commonjs/models/errors/getorginboundrules.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +2 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +2 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/updateorginboundrules.d.ts +188 -0
- package/dist/commonjs/models/errors/updateorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/errors/updateorginboundrules.js +270 -0
- package/dist/commonjs/models/errors/updateorginboundrules.js.map +1 -0
- package/dist/commonjs/models/operations/getorginboundrules.d.ts +80 -0
- package/dist/commonjs/models/operations/getorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorginboundrules.js +133 -0
- package/dist/commonjs/models/operations/getorginboundrules.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +2 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +2 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listfiles.d.ts +2 -0
- package/dist/commonjs/models/operations/listfiles.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listfiles.js +2 -0
- package/dist/commonjs/models/operations/listfiles.js.map +1 -1
- package/dist/commonjs/models/operations/updateorginboundrules.d.ts +110 -0
- package/dist/commonjs/models/operations/updateorginboundrules.d.ts.map +1 -0
- package/dist/commonjs/models/operations/updateorginboundrules.js +172 -0
- package/dist/commonjs/models/operations/updateorginboundrules.js.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js +36 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.core.js.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts +39 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.js +60 -0
- package/dist/commonjs/react-query/authOrgsGetInboundRules.js.map +1 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js +47 -0
- package/dist/commonjs/react-query/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/commonjs/react-query/index.d.ts +2 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +2 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.core.d.ts +1 -0
- package/dist/commonjs/react-query/llmFilesList.core.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.core.js +1 -0
- package/dist/commonjs/react-query/llmFilesList.core.js.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.d.ts +2 -0
- package/dist/commonjs/react-query/llmFilesList.d.ts.map +1 -1
- package/dist/commonjs/react-query/llmFilesList.js.map +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreate.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreate.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFile.js +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/commonjs/react-query/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/commonjs/sdk/orgs.d.ts +14 -0
- package/dist/commonjs/sdk/orgs.d.ts.map +1 -1
- package/dist/commonjs/sdk/orgs.js +20 -0
- package/dist/commonjs/sdk/orgs.js.map +1 -1
- package/dist/commonjs/sdk/vectorstores.d.ts +3 -3
- package/dist/commonjs/sdk/vectorstores.js +3 -3
- package/dist/esm/funcs/authOrgsGetInboundRules.d.ts +18 -0
- package/dist/esm/funcs/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/esm/funcs/authOrgsGetInboundRules.js +109 -0
- package/dist/esm/funcs/authOrgsGetInboundRules.js.map +1 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts +18 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.js +104 -0
- package/dist/esm/funcs/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/esm/funcs/llmFilesList.js +1 -0
- package/dist/esm/funcs/llmFilesList.js.map +1 -1
- package/dist/esm/funcs/llmVectorStoresCreate.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreate.js +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/esm/funcs/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreate.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFile.js.map +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/mcp-server/tools/llmVectorStoresCreateFileBatch.js.map +1 -1
- package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts +5 -0
- package/dist/esm/models/components/createvectorstorefilebatchrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createvectorstorefilebatchrequest.js +4 -0
- package/dist/esm/models/components/createvectorstorefilebatchrequest.js.map +1 -1
- package/dist/esm/models/components/file.d.ts +5 -0
- package/dist/esm/models/components/file.d.ts.map +1 -1
- package/dist/esm/models/components/file.js +2 -0
- package/dist/esm/models/components/file.js.map +1 -1
- package/dist/esm/models/components/vectorstorefileerror.d.ts +4 -3
- package/dist/esm/models/components/vectorstorefileerror.d.ts.map +1 -1
- package/dist/esm/models/components/vectorstorefileerror.js +2 -1
- package/dist/esm/models/components/vectorstorefileerror.js.map +1 -1
- package/dist/esm/models/errors/getorginboundrules.d.ts +185 -0
- package/dist/esm/models/errors/getorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/errors/getorginboundrules.js +223 -0
- package/dist/esm/models/errors/getorginboundrules.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +2 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +2 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/updateorginboundrules.d.ts +188 -0
- package/dist/esm/models/errors/updateorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/errors/updateorginboundrules.js +227 -0
- package/dist/esm/models/errors/updateorginboundrules.js.map +1 -0
- package/dist/esm/models/operations/getorginboundrules.d.ts +80 -0
- package/dist/esm/models/operations/getorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/operations/getorginboundrules.js +89 -0
- package/dist/esm/models/operations/getorginboundrules.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +2 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +2 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listfiles.d.ts +2 -0
- package/dist/esm/models/operations/listfiles.d.ts.map +1 -1
- package/dist/esm/models/operations/listfiles.js +2 -0
- package/dist/esm/models/operations/listfiles.js.map +1 -1
- package/dist/esm/models/operations/updateorginboundrules.d.ts +110 -0
- package/dist/esm/models/operations/updateorginboundrules.d.ts.map +1 -0
- package/dist/esm/models/operations/updateorginboundrules.js +124 -0
- package/dist/esm/models/operations/updateorginboundrules.js.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts +14 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.d.ts.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.js +31 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.core.js.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.d.ts +39 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.d.ts.map +1 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.js +50 -0
- package/dist/esm/react-query/authOrgsGetInboundRules.js.map +1 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts +30 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.d.ts.map +1 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.js +42 -0
- package/dist/esm/react-query/authOrgsUpdateInboundRules.js.map +1 -0
- package/dist/esm/react-query/index.d.ts +2 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +2 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/llmFilesList.core.d.ts +1 -0
- package/dist/esm/react-query/llmFilesList.core.d.ts.map +1 -1
- package/dist/esm/react-query/llmFilesList.core.js +1 -0
- package/dist/esm/react-query/llmFilesList.core.js.map +1 -1
- package/dist/esm/react-query/llmFilesList.d.ts +2 -0
- package/dist/esm/react-query/llmFilesList.d.ts.map +1 -1
- package/dist/esm/react-query/llmFilesList.js.map +1 -1
- package/dist/esm/react-query/llmVectorStoresCreate.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreate.js +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFile.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFile.js +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFileBatch.d.ts +1 -1
- package/dist/esm/react-query/llmVectorStoresCreateFileBatch.js +1 -1
- package/dist/esm/sdk/orgs.d.ts +14 -0
- package/dist/esm/sdk/orgs.d.ts.map +1 -1
- package/dist/esm/sdk/orgs.js +20 -0
- package/dist/esm/sdk/orgs.js.map +1 -1
- package/dist/esm/sdk/vectorstores.d.ts +3 -3
- package/dist/esm/sdk/vectorstores.js +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/authOrgsGetInboundRules.ts +248 -0
- package/src/funcs/authOrgsUpdateInboundRules.ts +246 -0
- package/src/funcs/llmFilesList.ts +1 -0
- package/src/funcs/llmVectorStoresCreate.ts +1 -1
- package/src/funcs/llmVectorStoresCreateFile.ts +1 -1
- package/src/funcs/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreate.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreateFile.ts +1 -1
- package/src/mcp-server/tools/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/models/components/createvectorstorefilebatchrequest.ts +9 -0
- package/src/models/components/file.ts +7 -0
- package/src/models/components/vectorstorefileerror.ts +4 -3
- package/src/models/errors/getorginboundrules.ts +451 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/updateorginboundrules.ts +461 -0
- package/src/models/operations/getorginboundrules.ts +233 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/listfiles.ts +4 -0
- package/src/models/operations/updateorginboundrules.ts +328 -0
- package/src/react-query/authOrgsGetInboundRules.core.ts +80 -0
- package/src/react-query/authOrgsGetInboundRules.ts +153 -0
- package/src/react-query/authOrgsUpdateInboundRules.ts +120 -0
- package/src/react-query/index.ts +2 -0
- package/src/react-query/llmFilesList.core.ts +2 -0
- package/src/react-query/llmFilesList.ts +2 -0
- package/src/react-query/llmVectorStoresCreate.ts +1 -1
- package/src/react-query/llmVectorStoresCreateFile.ts +1 -1
- package/src/react-query/llmVectorStoresCreateFileBatch.ts +1 -1
- package/src/sdk/orgs.ts +40 -0
- package/src/sdk/vectorstores.ts +3 -3
|
@@ -0,0 +1,461 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { SDKError } from "./sdkerror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Rate limited
|
|
10
|
+
*/
|
|
11
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse429ResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Rate limited
|
|
17
|
+
*/
|
|
18
|
+
export class UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody
|
|
19
|
+
extends SDKError
|
|
20
|
+
{
|
|
21
|
+
/** The original data that was passed to this error instance. */
|
|
22
|
+
data$: UpdateOrgInboundRulesAuthOrgsResponse429ResponseBodyData;
|
|
23
|
+
|
|
24
|
+
constructor(
|
|
25
|
+
err: UpdateOrgInboundRulesAuthOrgsResponse429ResponseBodyData,
|
|
26
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
27
|
+
) {
|
|
28
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
29
|
+
super(message, httpMeta);
|
|
30
|
+
this.data$ = err;
|
|
31
|
+
|
|
32
|
+
this.name = "UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Gone
|
|
38
|
+
*/
|
|
39
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse410ResponseBodyData = {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Gone
|
|
45
|
+
*/
|
|
46
|
+
export class UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody
|
|
47
|
+
extends SDKError
|
|
48
|
+
{
|
|
49
|
+
/** The original data that was passed to this error instance. */
|
|
50
|
+
data$: UpdateOrgInboundRulesAuthOrgsResponse410ResponseBodyData;
|
|
51
|
+
|
|
52
|
+
constructor(
|
|
53
|
+
err: UpdateOrgInboundRulesAuthOrgsResponse410ResponseBodyData,
|
|
54
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
55
|
+
) {
|
|
56
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
57
|
+
super(message, httpMeta);
|
|
58
|
+
this.data$ = err;
|
|
59
|
+
|
|
60
|
+
this.name = "UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Conflict. `code: "inbound_rules_unavailable"` means enabling was refused because inbound rules are not enabled on this cluster; a disabled policy can still be saved.
|
|
66
|
+
*/
|
|
67
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse409ResponseBodyData = {
|
|
68
|
+
message: string;
|
|
69
|
+
code?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Conflict. `code: "inbound_rules_unavailable"` means enabling was refused because inbound rules are not enabled on this cluster; a disabled policy can still be saved.
|
|
74
|
+
*/
|
|
75
|
+
export class UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody
|
|
76
|
+
extends SDKError
|
|
77
|
+
{
|
|
78
|
+
code?: string | undefined;
|
|
79
|
+
|
|
80
|
+
/** The original data that was passed to this error instance. */
|
|
81
|
+
data$: UpdateOrgInboundRulesAuthOrgsResponse409ResponseBodyData;
|
|
82
|
+
|
|
83
|
+
constructor(
|
|
84
|
+
err: UpdateOrgInboundRulesAuthOrgsResponse409ResponseBodyData,
|
|
85
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
86
|
+
) {
|
|
87
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
88
|
+
super(message, httpMeta);
|
|
89
|
+
this.data$ = err;
|
|
90
|
+
if (err.code != null) this.code = err.code;
|
|
91
|
+
|
|
92
|
+
this.name = "UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Not found
|
|
98
|
+
*/
|
|
99
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse404ResponseBodyData = {
|
|
100
|
+
message: string;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Not found
|
|
105
|
+
*/
|
|
106
|
+
export class UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody
|
|
107
|
+
extends SDKError
|
|
108
|
+
{
|
|
109
|
+
/** The original data that was passed to this error instance. */
|
|
110
|
+
data$: UpdateOrgInboundRulesAuthOrgsResponse404ResponseBodyData;
|
|
111
|
+
|
|
112
|
+
constructor(
|
|
113
|
+
err: UpdateOrgInboundRulesAuthOrgsResponse404ResponseBodyData,
|
|
114
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
115
|
+
) {
|
|
116
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
117
|
+
super(message, httpMeta);
|
|
118
|
+
this.data$ = err;
|
|
119
|
+
|
|
120
|
+
this.name = "UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody";
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Forbidden
|
|
126
|
+
*/
|
|
127
|
+
export type UpdateOrgInboundRulesAuthOrgsResponseResponseBodyData = {
|
|
128
|
+
message: string;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Forbidden
|
|
133
|
+
*/
|
|
134
|
+
export class UpdateOrgInboundRulesAuthOrgsResponseResponseBody
|
|
135
|
+
extends SDKError
|
|
136
|
+
{
|
|
137
|
+
/** The original data that was passed to this error instance. */
|
|
138
|
+
data$: UpdateOrgInboundRulesAuthOrgsResponseResponseBodyData;
|
|
139
|
+
|
|
140
|
+
constructor(
|
|
141
|
+
err: UpdateOrgInboundRulesAuthOrgsResponseResponseBodyData,
|
|
142
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
143
|
+
) {
|
|
144
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
145
|
+
super(message, httpMeta);
|
|
146
|
+
this.data$ = err;
|
|
147
|
+
|
|
148
|
+
this.name = "UpdateOrgInboundRulesAuthOrgsResponseResponseBody";
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Unauthorized
|
|
154
|
+
*/
|
|
155
|
+
export type UpdateOrgInboundRulesAuthOrgsResponseBodyData = {
|
|
156
|
+
message: string;
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Unauthorized
|
|
161
|
+
*/
|
|
162
|
+
export class UpdateOrgInboundRulesAuthOrgsResponseBody extends SDKError {
|
|
163
|
+
/** The original data that was passed to this error instance. */
|
|
164
|
+
data$: UpdateOrgInboundRulesAuthOrgsResponseBodyData;
|
|
165
|
+
|
|
166
|
+
constructor(
|
|
167
|
+
err: UpdateOrgInboundRulesAuthOrgsResponseBodyData,
|
|
168
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
169
|
+
) {
|
|
170
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
171
|
+
super(message, httpMeta);
|
|
172
|
+
this.data$ = err;
|
|
173
|
+
|
|
174
|
+
this.name = "UpdateOrgInboundRulesAuthOrgsResponseBody";
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Bad request
|
|
180
|
+
*/
|
|
181
|
+
export type UpdateOrgInboundRulesResponseBodyData = {
|
|
182
|
+
message: string;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Bad request
|
|
187
|
+
*/
|
|
188
|
+
export class UpdateOrgInboundRulesResponseBody extends SDKError {
|
|
189
|
+
/** The original data that was passed to this error instance. */
|
|
190
|
+
data$: UpdateOrgInboundRulesResponseBodyData;
|
|
191
|
+
|
|
192
|
+
constructor(
|
|
193
|
+
err: UpdateOrgInboundRulesResponseBodyData,
|
|
194
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
195
|
+
) {
|
|
196
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
197
|
+
super(message, httpMeta);
|
|
198
|
+
this.data$ = err;
|
|
199
|
+
|
|
200
|
+
this.name = "UpdateOrgInboundRulesResponseBody";
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody$inboundSchema:
|
|
206
|
+
z.ZodType<
|
|
207
|
+
UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody,
|
|
208
|
+
z.ZodTypeDef,
|
|
209
|
+
unknown
|
|
210
|
+
> = z.object({
|
|
211
|
+
message: z.string(),
|
|
212
|
+
request$: z.instanceof(Request),
|
|
213
|
+
response$: z.instanceof(Response),
|
|
214
|
+
body$: z.string(),
|
|
215
|
+
})
|
|
216
|
+
.transform((v) => {
|
|
217
|
+
return new UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody(v, {
|
|
218
|
+
request: v.request$,
|
|
219
|
+
response: v.response$,
|
|
220
|
+
body: v.body$,
|
|
221
|
+
});
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
/** @internal */
|
|
225
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody$Outbound = {
|
|
226
|
+
message: string;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
/** @internal */
|
|
230
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody$outboundSchema:
|
|
231
|
+
z.ZodType<
|
|
232
|
+
UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody$Outbound,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody
|
|
235
|
+
> = z.instanceof(UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody)
|
|
236
|
+
.transform(v => v.data$)
|
|
237
|
+
.pipe(z.object({
|
|
238
|
+
message: z.string(),
|
|
239
|
+
}));
|
|
240
|
+
|
|
241
|
+
/** @internal */
|
|
242
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody$inboundSchema:
|
|
243
|
+
z.ZodType<
|
|
244
|
+
UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody,
|
|
245
|
+
z.ZodTypeDef,
|
|
246
|
+
unknown
|
|
247
|
+
> = z.object({
|
|
248
|
+
message: z.string(),
|
|
249
|
+
request$: z.instanceof(Request),
|
|
250
|
+
response$: z.instanceof(Response),
|
|
251
|
+
body$: z.string(),
|
|
252
|
+
})
|
|
253
|
+
.transform((v) => {
|
|
254
|
+
return new UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody(v, {
|
|
255
|
+
request: v.request$,
|
|
256
|
+
response: v.response$,
|
|
257
|
+
body: v.body$,
|
|
258
|
+
});
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
/** @internal */
|
|
262
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody$Outbound = {
|
|
263
|
+
message: string;
|
|
264
|
+
};
|
|
265
|
+
|
|
266
|
+
/** @internal */
|
|
267
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody$outboundSchema:
|
|
268
|
+
z.ZodType<
|
|
269
|
+
UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody$Outbound,
|
|
270
|
+
z.ZodTypeDef,
|
|
271
|
+
UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody
|
|
272
|
+
> = z.instanceof(UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody)
|
|
273
|
+
.transform(v => v.data$)
|
|
274
|
+
.pipe(z.object({
|
|
275
|
+
message: z.string(),
|
|
276
|
+
}));
|
|
277
|
+
|
|
278
|
+
/** @internal */
|
|
279
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody$inboundSchema:
|
|
280
|
+
z.ZodType<
|
|
281
|
+
UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody,
|
|
282
|
+
z.ZodTypeDef,
|
|
283
|
+
unknown
|
|
284
|
+
> = z.object({
|
|
285
|
+
message: z.string(),
|
|
286
|
+
code: z.string().optional(),
|
|
287
|
+
request$: z.instanceof(Request),
|
|
288
|
+
response$: z.instanceof(Response),
|
|
289
|
+
body$: z.string(),
|
|
290
|
+
})
|
|
291
|
+
.transform((v) => {
|
|
292
|
+
return new UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody(v, {
|
|
293
|
+
request: v.request$,
|
|
294
|
+
response: v.response$,
|
|
295
|
+
body: v.body$,
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
|
|
299
|
+
/** @internal */
|
|
300
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody$Outbound = {
|
|
301
|
+
message: string;
|
|
302
|
+
code?: string | undefined;
|
|
303
|
+
};
|
|
304
|
+
|
|
305
|
+
/** @internal */
|
|
306
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody$outboundSchema:
|
|
307
|
+
z.ZodType<
|
|
308
|
+
UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody$Outbound,
|
|
309
|
+
z.ZodTypeDef,
|
|
310
|
+
UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody
|
|
311
|
+
> = z.instanceof(UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody)
|
|
312
|
+
.transform(v => v.data$)
|
|
313
|
+
.pipe(z.object({
|
|
314
|
+
message: z.string(),
|
|
315
|
+
code: z.string().optional(),
|
|
316
|
+
}));
|
|
317
|
+
|
|
318
|
+
/** @internal */
|
|
319
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody$inboundSchema:
|
|
320
|
+
z.ZodType<
|
|
321
|
+
UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody,
|
|
322
|
+
z.ZodTypeDef,
|
|
323
|
+
unknown
|
|
324
|
+
> = z.object({
|
|
325
|
+
message: z.string(),
|
|
326
|
+
request$: z.instanceof(Request),
|
|
327
|
+
response$: z.instanceof(Response),
|
|
328
|
+
body$: z.string(),
|
|
329
|
+
})
|
|
330
|
+
.transform((v) => {
|
|
331
|
+
return new UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody(v, {
|
|
332
|
+
request: v.request$,
|
|
333
|
+
response: v.response$,
|
|
334
|
+
body: v.body$,
|
|
335
|
+
});
|
|
336
|
+
});
|
|
337
|
+
|
|
338
|
+
/** @internal */
|
|
339
|
+
export type UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody$Outbound = {
|
|
340
|
+
message: string;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
/** @internal */
|
|
344
|
+
export const UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody$outboundSchema:
|
|
345
|
+
z.ZodType<
|
|
346
|
+
UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody$Outbound,
|
|
347
|
+
z.ZodTypeDef,
|
|
348
|
+
UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody
|
|
349
|
+
> = z.instanceof(UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody)
|
|
350
|
+
.transform(v => v.data$)
|
|
351
|
+
.pipe(z.object({
|
|
352
|
+
message: z.string(),
|
|
353
|
+
}));
|
|
354
|
+
|
|
355
|
+
/** @internal */
|
|
356
|
+
export const UpdateOrgInboundRulesAuthOrgsResponseResponseBody$inboundSchema:
|
|
357
|
+
z.ZodType<
|
|
358
|
+
UpdateOrgInboundRulesAuthOrgsResponseResponseBody,
|
|
359
|
+
z.ZodTypeDef,
|
|
360
|
+
unknown
|
|
361
|
+
> = z.object({
|
|
362
|
+
message: z.string(),
|
|
363
|
+
request$: z.instanceof(Request),
|
|
364
|
+
response$: z.instanceof(Response),
|
|
365
|
+
body$: z.string(),
|
|
366
|
+
})
|
|
367
|
+
.transform((v) => {
|
|
368
|
+
return new UpdateOrgInboundRulesAuthOrgsResponseResponseBody(v, {
|
|
369
|
+
request: v.request$,
|
|
370
|
+
response: v.response$,
|
|
371
|
+
body: v.body$,
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
|
|
375
|
+
/** @internal */
|
|
376
|
+
export type UpdateOrgInboundRulesAuthOrgsResponseResponseBody$Outbound = {
|
|
377
|
+
message: string;
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
/** @internal */
|
|
381
|
+
export const UpdateOrgInboundRulesAuthOrgsResponseResponseBody$outboundSchema:
|
|
382
|
+
z.ZodType<
|
|
383
|
+
UpdateOrgInboundRulesAuthOrgsResponseResponseBody$Outbound,
|
|
384
|
+
z.ZodTypeDef,
|
|
385
|
+
UpdateOrgInboundRulesAuthOrgsResponseResponseBody
|
|
386
|
+
> = z.instanceof(UpdateOrgInboundRulesAuthOrgsResponseResponseBody)
|
|
387
|
+
.transform(v => v.data$)
|
|
388
|
+
.pipe(z.object({
|
|
389
|
+
message: z.string(),
|
|
390
|
+
}));
|
|
391
|
+
|
|
392
|
+
/** @internal */
|
|
393
|
+
export const UpdateOrgInboundRulesAuthOrgsResponseBody$inboundSchema: z.ZodType<
|
|
394
|
+
UpdateOrgInboundRulesAuthOrgsResponseBody,
|
|
395
|
+
z.ZodTypeDef,
|
|
396
|
+
unknown
|
|
397
|
+
> = z.object({
|
|
398
|
+
message: z.string(),
|
|
399
|
+
request$: z.instanceof(Request),
|
|
400
|
+
response$: z.instanceof(Response),
|
|
401
|
+
body$: z.string(),
|
|
402
|
+
})
|
|
403
|
+
.transform((v) => {
|
|
404
|
+
return new UpdateOrgInboundRulesAuthOrgsResponseBody(v, {
|
|
405
|
+
request: v.request$,
|
|
406
|
+
response: v.response$,
|
|
407
|
+
body: v.body$,
|
|
408
|
+
});
|
|
409
|
+
});
|
|
410
|
+
|
|
411
|
+
/** @internal */
|
|
412
|
+
export type UpdateOrgInboundRulesAuthOrgsResponseBody$Outbound = {
|
|
413
|
+
message: string;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
/** @internal */
|
|
417
|
+
export const UpdateOrgInboundRulesAuthOrgsResponseBody$outboundSchema:
|
|
418
|
+
z.ZodType<
|
|
419
|
+
UpdateOrgInboundRulesAuthOrgsResponseBody$Outbound,
|
|
420
|
+
z.ZodTypeDef,
|
|
421
|
+
UpdateOrgInboundRulesAuthOrgsResponseBody
|
|
422
|
+
> = z.instanceof(UpdateOrgInboundRulesAuthOrgsResponseBody)
|
|
423
|
+
.transform(v => v.data$)
|
|
424
|
+
.pipe(z.object({
|
|
425
|
+
message: z.string(),
|
|
426
|
+
}));
|
|
427
|
+
|
|
428
|
+
/** @internal */
|
|
429
|
+
export const UpdateOrgInboundRulesResponseBody$inboundSchema: z.ZodType<
|
|
430
|
+
UpdateOrgInboundRulesResponseBody,
|
|
431
|
+
z.ZodTypeDef,
|
|
432
|
+
unknown
|
|
433
|
+
> = z.object({
|
|
434
|
+
message: z.string(),
|
|
435
|
+
request$: z.instanceof(Request),
|
|
436
|
+
response$: z.instanceof(Response),
|
|
437
|
+
body$: z.string(),
|
|
438
|
+
})
|
|
439
|
+
.transform((v) => {
|
|
440
|
+
return new UpdateOrgInboundRulesResponseBody(v, {
|
|
441
|
+
request: v.request$,
|
|
442
|
+
response: v.response$,
|
|
443
|
+
body: v.body$,
|
|
444
|
+
});
|
|
445
|
+
});
|
|
446
|
+
|
|
447
|
+
/** @internal */
|
|
448
|
+
export type UpdateOrgInboundRulesResponseBody$Outbound = {
|
|
449
|
+
message: string;
|
|
450
|
+
};
|
|
451
|
+
|
|
452
|
+
/** @internal */
|
|
453
|
+
export const UpdateOrgInboundRulesResponseBody$outboundSchema: z.ZodType<
|
|
454
|
+
UpdateOrgInboundRulesResponseBody$Outbound,
|
|
455
|
+
z.ZodTypeDef,
|
|
456
|
+
UpdateOrgInboundRulesResponseBody
|
|
457
|
+
> = z.instanceof(UpdateOrgInboundRulesResponseBody)
|
|
458
|
+
.transform(v => v.data$)
|
|
459
|
+
.pipe(z.object({
|
|
460
|
+
message: z.string(),
|
|
461
|
+
}));
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type GetOrgInboundRulesSecurity = {
|
|
12
|
+
bearerAuth?: string | undefined;
|
|
13
|
+
sessionCookie?: string | undefined;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export type GetOrgInboundRulesRequest = {
|
|
17
|
+
orgId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
20
|
+
*/
|
|
21
|
+
xOnBehalfOf?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type GetOrgInboundRulesRules = {
|
|
25
|
+
id: string;
|
|
26
|
+
cidr: string;
|
|
27
|
+
description: string | null;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* OK
|
|
33
|
+
*/
|
|
34
|
+
export type GetOrgInboundRulesResponseBody = {
|
|
35
|
+
id: string;
|
|
36
|
+
available: boolean;
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
rules: Array<GetOrgInboundRulesRules>;
|
|
39
|
+
updatedAt: string | null;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const GetOrgInboundRulesSecurity$inboundSchema: z.ZodType<
|
|
44
|
+
GetOrgInboundRulesSecurity,
|
|
45
|
+
z.ZodTypeDef,
|
|
46
|
+
unknown
|
|
47
|
+
> = z.object({
|
|
48
|
+
bearerAuth: z.string().optional(),
|
|
49
|
+
sessionCookie: z.string().optional(),
|
|
50
|
+
});
|
|
51
|
+
/** @internal */
|
|
52
|
+
export type GetOrgInboundRulesSecurity$Outbound = {
|
|
53
|
+
bearerAuth?: string | undefined;
|
|
54
|
+
sessionCookie?: string | undefined;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/** @internal */
|
|
58
|
+
export const GetOrgInboundRulesSecurity$outboundSchema: z.ZodType<
|
|
59
|
+
GetOrgInboundRulesSecurity$Outbound,
|
|
60
|
+
z.ZodTypeDef,
|
|
61
|
+
GetOrgInboundRulesSecurity
|
|
62
|
+
> = z.object({
|
|
63
|
+
bearerAuth: z.string().optional(),
|
|
64
|
+
sessionCookie: z.string().optional(),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function getOrgInboundRulesSecurityToJSON(
|
|
68
|
+
getOrgInboundRulesSecurity: GetOrgInboundRulesSecurity,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
GetOrgInboundRulesSecurity$outboundSchema.parse(getOrgInboundRulesSecurity),
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
export function getOrgInboundRulesSecurityFromJSON(
|
|
75
|
+
jsonString: string,
|
|
76
|
+
): SafeParseResult<GetOrgInboundRulesSecurity, SDKValidationError> {
|
|
77
|
+
return safeParse(
|
|
78
|
+
jsonString,
|
|
79
|
+
(x) => GetOrgInboundRulesSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
80
|
+
`Failed to parse 'GetOrgInboundRulesSecurity' from JSON`,
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const GetOrgInboundRulesRequest$inboundSchema: z.ZodType<
|
|
86
|
+
GetOrgInboundRulesRequest,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
unknown
|
|
89
|
+
> = z.object({
|
|
90
|
+
orgId: z.string(),
|
|
91
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
/** @internal */
|
|
98
|
+
export type GetOrgInboundRulesRequest$Outbound = {
|
|
99
|
+
orgId: string;
|
|
100
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
/** @internal */
|
|
104
|
+
export const GetOrgInboundRulesRequest$outboundSchema: z.ZodType<
|
|
105
|
+
GetOrgInboundRulesRequest$Outbound,
|
|
106
|
+
z.ZodTypeDef,
|
|
107
|
+
GetOrgInboundRulesRequest
|
|
108
|
+
> = z.object({
|
|
109
|
+
orgId: z.string(),
|
|
110
|
+
xOnBehalfOf: z.string().optional(),
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return remap$(v, {
|
|
113
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export function getOrgInboundRulesRequestToJSON(
|
|
118
|
+
getOrgInboundRulesRequest: GetOrgInboundRulesRequest,
|
|
119
|
+
): string {
|
|
120
|
+
return JSON.stringify(
|
|
121
|
+
GetOrgInboundRulesRequest$outboundSchema.parse(getOrgInboundRulesRequest),
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
export function getOrgInboundRulesRequestFromJSON(
|
|
125
|
+
jsonString: string,
|
|
126
|
+
): SafeParseResult<GetOrgInboundRulesRequest, SDKValidationError> {
|
|
127
|
+
return safeParse(
|
|
128
|
+
jsonString,
|
|
129
|
+
(x) => GetOrgInboundRulesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
130
|
+
`Failed to parse 'GetOrgInboundRulesRequest' from JSON`,
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const GetOrgInboundRulesRules$inboundSchema: z.ZodType<
|
|
136
|
+
GetOrgInboundRulesRules,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
unknown
|
|
139
|
+
> = z.object({
|
|
140
|
+
id: z.string(),
|
|
141
|
+
cidr: z.string(),
|
|
142
|
+
description: z.nullable(z.string()),
|
|
143
|
+
createdAt: z.string(),
|
|
144
|
+
});
|
|
145
|
+
/** @internal */
|
|
146
|
+
export type GetOrgInboundRulesRules$Outbound = {
|
|
147
|
+
id: string;
|
|
148
|
+
cidr: string;
|
|
149
|
+
description: string | null;
|
|
150
|
+
createdAt: string;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
/** @internal */
|
|
154
|
+
export const GetOrgInboundRulesRules$outboundSchema: z.ZodType<
|
|
155
|
+
GetOrgInboundRulesRules$Outbound,
|
|
156
|
+
z.ZodTypeDef,
|
|
157
|
+
GetOrgInboundRulesRules
|
|
158
|
+
> = z.object({
|
|
159
|
+
id: z.string(),
|
|
160
|
+
cidr: z.string(),
|
|
161
|
+
description: z.nullable(z.string()),
|
|
162
|
+
createdAt: z.string(),
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
export function getOrgInboundRulesRulesToJSON(
|
|
166
|
+
getOrgInboundRulesRules: GetOrgInboundRulesRules,
|
|
167
|
+
): string {
|
|
168
|
+
return JSON.stringify(
|
|
169
|
+
GetOrgInboundRulesRules$outboundSchema.parse(getOrgInboundRulesRules),
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
export function getOrgInboundRulesRulesFromJSON(
|
|
173
|
+
jsonString: string,
|
|
174
|
+
): SafeParseResult<GetOrgInboundRulesRules, SDKValidationError> {
|
|
175
|
+
return safeParse(
|
|
176
|
+
jsonString,
|
|
177
|
+
(x) => GetOrgInboundRulesRules$inboundSchema.parse(JSON.parse(x)),
|
|
178
|
+
`Failed to parse 'GetOrgInboundRulesRules' from JSON`,
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** @internal */
|
|
183
|
+
export const GetOrgInboundRulesResponseBody$inboundSchema: z.ZodType<
|
|
184
|
+
GetOrgInboundRulesResponseBody,
|
|
185
|
+
z.ZodTypeDef,
|
|
186
|
+
unknown
|
|
187
|
+
> = z.object({
|
|
188
|
+
id: z.string(),
|
|
189
|
+
available: z.boolean(),
|
|
190
|
+
enabled: z.boolean(),
|
|
191
|
+
rules: z.array(z.lazy(() => GetOrgInboundRulesRules$inboundSchema)),
|
|
192
|
+
updatedAt: z.nullable(z.string()),
|
|
193
|
+
});
|
|
194
|
+
/** @internal */
|
|
195
|
+
export type GetOrgInboundRulesResponseBody$Outbound = {
|
|
196
|
+
id: string;
|
|
197
|
+
available: boolean;
|
|
198
|
+
enabled: boolean;
|
|
199
|
+
rules: Array<GetOrgInboundRulesRules$Outbound>;
|
|
200
|
+
updatedAt: string | null;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
/** @internal */
|
|
204
|
+
export const GetOrgInboundRulesResponseBody$outboundSchema: z.ZodType<
|
|
205
|
+
GetOrgInboundRulesResponseBody$Outbound,
|
|
206
|
+
z.ZodTypeDef,
|
|
207
|
+
GetOrgInboundRulesResponseBody
|
|
208
|
+
> = z.object({
|
|
209
|
+
id: z.string(),
|
|
210
|
+
available: z.boolean(),
|
|
211
|
+
enabled: z.boolean(),
|
|
212
|
+
rules: z.array(z.lazy(() => GetOrgInboundRulesRules$outboundSchema)),
|
|
213
|
+
updatedAt: z.nullable(z.string()),
|
|
214
|
+
});
|
|
215
|
+
|
|
216
|
+
export function getOrgInboundRulesResponseBodyToJSON(
|
|
217
|
+
getOrgInboundRulesResponseBody: GetOrgInboundRulesResponseBody,
|
|
218
|
+
): string {
|
|
219
|
+
return JSON.stringify(
|
|
220
|
+
GetOrgInboundRulesResponseBody$outboundSchema.parse(
|
|
221
|
+
getOrgInboundRulesResponseBody,
|
|
222
|
+
),
|
|
223
|
+
);
|
|
224
|
+
}
|
|
225
|
+
export function getOrgInboundRulesResponseBodyFromJSON(
|
|
226
|
+
jsonString: string,
|
|
227
|
+
): SafeParseResult<GetOrgInboundRulesResponseBody, SDKValidationError> {
|
|
228
|
+
return safeParse(
|
|
229
|
+
jsonString,
|
|
230
|
+
(x) => GetOrgInboundRulesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
231
|
+
`Failed to parse 'GetOrgInboundRulesResponseBody' from JSON`,
|
|
232
|
+
);
|
|
233
|
+
}
|
|
@@ -222,6 +222,7 @@ export * from "./getnetworkpolicyaccess.js";
|
|
|
222
222
|
export * from "./getorganizationbilling.js";
|
|
223
223
|
export * from "./getorgbudgets.js";
|
|
224
224
|
export * from "./getorgbyid.js";
|
|
225
|
+
export * from "./getorginboundrules.js";
|
|
225
226
|
export * from "./getorgquota.js";
|
|
226
227
|
export * from "./getorgratelimit.js";
|
|
227
228
|
export * from "./getorgtokenquota.js";
|
|
@@ -464,6 +465,7 @@ export * from "./updatememoryentry.js";
|
|
|
464
465
|
export * from "./updatememorystore.js";
|
|
465
466
|
export * from "./updateorganization.js";
|
|
466
467
|
export * from "./updateorganizationbillingprofile.js";
|
|
468
|
+
export * from "./updateorginboundrules.js";
|
|
467
469
|
export * from "./updateorgmember.js";
|
|
468
470
|
export * from "./updateorgquota.js";
|
|
469
471
|
export * from "./updateorgratelimit.js";
|