@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
|
@@ -32,6 +32,7 @@ export type ListFilesRequest = {
|
|
|
32
32
|
limit?: number | undefined;
|
|
33
33
|
order?: ListFilesQueryParamOrder | undefined;
|
|
34
34
|
purpose?: QueryParamPurpose | undefined;
|
|
35
|
+
sha256?: string | undefined;
|
|
35
36
|
/**
|
|
36
37
|
* Optional external end-user identifier forwarded by the API gateway.
|
|
37
38
|
*/
|
|
@@ -66,6 +67,7 @@ export const ListFilesRequest$inboundSchema: z.ZodType<
|
|
|
66
67
|
limit: z.number().int().default(10000),
|
|
67
68
|
order: ListFilesQueryParamOrder$inboundSchema.default("desc"),
|
|
68
69
|
purpose: QueryParamPurpose$inboundSchema.optional(),
|
|
70
|
+
sha256: z.string().optional(),
|
|
69
71
|
"X-On-Behalf-Of": z.string().optional(),
|
|
70
72
|
}).transform((v) => {
|
|
71
73
|
return remap$(v, {
|
|
@@ -78,6 +80,7 @@ export type ListFilesRequest$Outbound = {
|
|
|
78
80
|
limit: number;
|
|
79
81
|
order: string;
|
|
80
82
|
purpose?: string | undefined;
|
|
83
|
+
sha256?: string | undefined;
|
|
81
84
|
"X-On-Behalf-Of"?: string | undefined;
|
|
82
85
|
};
|
|
83
86
|
|
|
@@ -91,6 +94,7 @@ export const ListFilesRequest$outboundSchema: z.ZodType<
|
|
|
91
94
|
limit: z.number().int().default(10000),
|
|
92
95
|
order: ListFilesQueryParamOrder$outboundSchema.default("desc"),
|
|
93
96
|
purpose: QueryParamPurpose$outboundSchema.optional(),
|
|
97
|
+
sha256: z.string().optional(),
|
|
94
98
|
xOnBehalfOf: z.string().optional(),
|
|
95
99
|
}).transform((v) => {
|
|
96
100
|
return remap$(v, {
|
|
@@ -0,0 +1,328 @@
|
|
|
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 UpdateOrgInboundRulesSecurity = {
|
|
12
|
+
sessionCookie: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type Rules = {
|
|
16
|
+
cidr: string;
|
|
17
|
+
description?: string | null | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type UpdateOrgInboundRulesRequestBody = {
|
|
21
|
+
enabled: boolean;
|
|
22
|
+
rules: Array<Rules>;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type UpdateOrgInboundRulesRequest = {
|
|
26
|
+
orgId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
29
|
+
*/
|
|
30
|
+
xOnBehalfOf?: string | undefined;
|
|
31
|
+
requestBody: UpdateOrgInboundRulesRequestBody;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type UpdateOrgInboundRulesRules = {
|
|
35
|
+
id: string;
|
|
36
|
+
cidr: string;
|
|
37
|
+
description: string | null;
|
|
38
|
+
createdAt: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* OK
|
|
43
|
+
*/
|
|
44
|
+
export type UpdateOrgInboundRulesResponseBody = {
|
|
45
|
+
id: string;
|
|
46
|
+
available: boolean;
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
rules: Array<UpdateOrgInboundRulesRules>;
|
|
49
|
+
updatedAt: string | null;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
/** @internal */
|
|
53
|
+
export const UpdateOrgInboundRulesSecurity$inboundSchema: z.ZodType<
|
|
54
|
+
UpdateOrgInboundRulesSecurity,
|
|
55
|
+
z.ZodTypeDef,
|
|
56
|
+
unknown
|
|
57
|
+
> = z.object({
|
|
58
|
+
sessionCookie: z.string(),
|
|
59
|
+
});
|
|
60
|
+
/** @internal */
|
|
61
|
+
export type UpdateOrgInboundRulesSecurity$Outbound = {
|
|
62
|
+
sessionCookie: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
/** @internal */
|
|
66
|
+
export const UpdateOrgInboundRulesSecurity$outboundSchema: z.ZodType<
|
|
67
|
+
UpdateOrgInboundRulesSecurity$Outbound,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
UpdateOrgInboundRulesSecurity
|
|
70
|
+
> = z.object({
|
|
71
|
+
sessionCookie: z.string(),
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
export function updateOrgInboundRulesSecurityToJSON(
|
|
75
|
+
updateOrgInboundRulesSecurity: UpdateOrgInboundRulesSecurity,
|
|
76
|
+
): string {
|
|
77
|
+
return JSON.stringify(
|
|
78
|
+
UpdateOrgInboundRulesSecurity$outboundSchema.parse(
|
|
79
|
+
updateOrgInboundRulesSecurity,
|
|
80
|
+
),
|
|
81
|
+
);
|
|
82
|
+
}
|
|
83
|
+
export function updateOrgInboundRulesSecurityFromJSON(
|
|
84
|
+
jsonString: string,
|
|
85
|
+
): SafeParseResult<UpdateOrgInboundRulesSecurity, SDKValidationError> {
|
|
86
|
+
return safeParse(
|
|
87
|
+
jsonString,
|
|
88
|
+
(x) => UpdateOrgInboundRulesSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
89
|
+
`Failed to parse 'UpdateOrgInboundRulesSecurity' from JSON`,
|
|
90
|
+
);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** @internal */
|
|
94
|
+
export const Rules$inboundSchema: z.ZodType<Rules, z.ZodTypeDef, unknown> = z
|
|
95
|
+
.object({
|
|
96
|
+
cidr: z.string(),
|
|
97
|
+
description: z.nullable(z.string()).optional(),
|
|
98
|
+
});
|
|
99
|
+
/** @internal */
|
|
100
|
+
export type Rules$Outbound = {
|
|
101
|
+
cidr: string;
|
|
102
|
+
description?: string | null | undefined;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const Rules$outboundSchema: z.ZodType<
|
|
107
|
+
Rules$Outbound,
|
|
108
|
+
z.ZodTypeDef,
|
|
109
|
+
Rules
|
|
110
|
+
> = z.object({
|
|
111
|
+
cidr: z.string(),
|
|
112
|
+
description: z.nullable(z.string()).optional(),
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
export function rulesToJSON(rules: Rules): string {
|
|
116
|
+
return JSON.stringify(Rules$outboundSchema.parse(rules));
|
|
117
|
+
}
|
|
118
|
+
export function rulesFromJSON(
|
|
119
|
+
jsonString: string,
|
|
120
|
+
): SafeParseResult<Rules, SDKValidationError> {
|
|
121
|
+
return safeParse(
|
|
122
|
+
jsonString,
|
|
123
|
+
(x) => Rules$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
+
`Failed to parse 'Rules' from JSON`,
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const UpdateOrgInboundRulesRequestBody$inboundSchema: z.ZodType<
|
|
130
|
+
UpdateOrgInboundRulesRequestBody,
|
|
131
|
+
z.ZodTypeDef,
|
|
132
|
+
unknown
|
|
133
|
+
> = z.object({
|
|
134
|
+
enabled: z.boolean(),
|
|
135
|
+
rules: z.array(z.lazy(() => Rules$inboundSchema)),
|
|
136
|
+
});
|
|
137
|
+
/** @internal */
|
|
138
|
+
export type UpdateOrgInboundRulesRequestBody$Outbound = {
|
|
139
|
+
enabled: boolean;
|
|
140
|
+
rules: Array<Rules$Outbound>;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
/** @internal */
|
|
144
|
+
export const UpdateOrgInboundRulesRequestBody$outboundSchema: z.ZodType<
|
|
145
|
+
UpdateOrgInboundRulesRequestBody$Outbound,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
UpdateOrgInboundRulesRequestBody
|
|
148
|
+
> = z.object({
|
|
149
|
+
enabled: z.boolean(),
|
|
150
|
+
rules: z.array(z.lazy(() => Rules$outboundSchema)),
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
export function updateOrgInboundRulesRequestBodyToJSON(
|
|
154
|
+
updateOrgInboundRulesRequestBody: UpdateOrgInboundRulesRequestBody,
|
|
155
|
+
): string {
|
|
156
|
+
return JSON.stringify(
|
|
157
|
+
UpdateOrgInboundRulesRequestBody$outboundSchema.parse(
|
|
158
|
+
updateOrgInboundRulesRequestBody,
|
|
159
|
+
),
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
export function updateOrgInboundRulesRequestBodyFromJSON(
|
|
163
|
+
jsonString: string,
|
|
164
|
+
): SafeParseResult<UpdateOrgInboundRulesRequestBody, SDKValidationError> {
|
|
165
|
+
return safeParse(
|
|
166
|
+
jsonString,
|
|
167
|
+
(x) => UpdateOrgInboundRulesRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
168
|
+
`Failed to parse 'UpdateOrgInboundRulesRequestBody' from JSON`,
|
|
169
|
+
);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
/** @internal */
|
|
173
|
+
export const UpdateOrgInboundRulesRequest$inboundSchema: z.ZodType<
|
|
174
|
+
UpdateOrgInboundRulesRequest,
|
|
175
|
+
z.ZodTypeDef,
|
|
176
|
+
unknown
|
|
177
|
+
> = z.object({
|
|
178
|
+
orgId: z.string(),
|
|
179
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
180
|
+
RequestBody: z.lazy(() => UpdateOrgInboundRulesRequestBody$inboundSchema),
|
|
181
|
+
}).transform((v) => {
|
|
182
|
+
return remap$(v, {
|
|
183
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
184
|
+
"RequestBody": "requestBody",
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
/** @internal */
|
|
188
|
+
export type UpdateOrgInboundRulesRequest$Outbound = {
|
|
189
|
+
orgId: string;
|
|
190
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
191
|
+
RequestBody: UpdateOrgInboundRulesRequestBody$Outbound;
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
/** @internal */
|
|
195
|
+
export const UpdateOrgInboundRulesRequest$outboundSchema: z.ZodType<
|
|
196
|
+
UpdateOrgInboundRulesRequest$Outbound,
|
|
197
|
+
z.ZodTypeDef,
|
|
198
|
+
UpdateOrgInboundRulesRequest
|
|
199
|
+
> = z.object({
|
|
200
|
+
orgId: z.string(),
|
|
201
|
+
xOnBehalfOf: z.string().optional(),
|
|
202
|
+
requestBody: z.lazy(() => UpdateOrgInboundRulesRequestBody$outboundSchema),
|
|
203
|
+
}).transform((v) => {
|
|
204
|
+
return remap$(v, {
|
|
205
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
206
|
+
requestBody: "RequestBody",
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
export function updateOrgInboundRulesRequestToJSON(
|
|
211
|
+
updateOrgInboundRulesRequest: UpdateOrgInboundRulesRequest,
|
|
212
|
+
): string {
|
|
213
|
+
return JSON.stringify(
|
|
214
|
+
UpdateOrgInboundRulesRequest$outboundSchema.parse(
|
|
215
|
+
updateOrgInboundRulesRequest,
|
|
216
|
+
),
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
export function updateOrgInboundRulesRequestFromJSON(
|
|
220
|
+
jsonString: string,
|
|
221
|
+
): SafeParseResult<UpdateOrgInboundRulesRequest, SDKValidationError> {
|
|
222
|
+
return safeParse(
|
|
223
|
+
jsonString,
|
|
224
|
+
(x) => UpdateOrgInboundRulesRequest$inboundSchema.parse(JSON.parse(x)),
|
|
225
|
+
`Failed to parse 'UpdateOrgInboundRulesRequest' from JSON`,
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/** @internal */
|
|
230
|
+
export const UpdateOrgInboundRulesRules$inboundSchema: z.ZodType<
|
|
231
|
+
UpdateOrgInboundRulesRules,
|
|
232
|
+
z.ZodTypeDef,
|
|
233
|
+
unknown
|
|
234
|
+
> = z.object({
|
|
235
|
+
id: z.string(),
|
|
236
|
+
cidr: z.string(),
|
|
237
|
+
description: z.nullable(z.string()),
|
|
238
|
+
createdAt: z.string(),
|
|
239
|
+
});
|
|
240
|
+
/** @internal */
|
|
241
|
+
export type UpdateOrgInboundRulesRules$Outbound = {
|
|
242
|
+
id: string;
|
|
243
|
+
cidr: string;
|
|
244
|
+
description: string | null;
|
|
245
|
+
createdAt: string;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const UpdateOrgInboundRulesRules$outboundSchema: z.ZodType<
|
|
250
|
+
UpdateOrgInboundRulesRules$Outbound,
|
|
251
|
+
z.ZodTypeDef,
|
|
252
|
+
UpdateOrgInboundRulesRules
|
|
253
|
+
> = z.object({
|
|
254
|
+
id: z.string(),
|
|
255
|
+
cidr: z.string(),
|
|
256
|
+
description: z.nullable(z.string()),
|
|
257
|
+
createdAt: z.string(),
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
export function updateOrgInboundRulesRulesToJSON(
|
|
261
|
+
updateOrgInboundRulesRules: UpdateOrgInboundRulesRules,
|
|
262
|
+
): string {
|
|
263
|
+
return JSON.stringify(
|
|
264
|
+
UpdateOrgInboundRulesRules$outboundSchema.parse(updateOrgInboundRulesRules),
|
|
265
|
+
);
|
|
266
|
+
}
|
|
267
|
+
export function updateOrgInboundRulesRulesFromJSON(
|
|
268
|
+
jsonString: string,
|
|
269
|
+
): SafeParseResult<UpdateOrgInboundRulesRules, SDKValidationError> {
|
|
270
|
+
return safeParse(
|
|
271
|
+
jsonString,
|
|
272
|
+
(x) => UpdateOrgInboundRulesRules$inboundSchema.parse(JSON.parse(x)),
|
|
273
|
+
`Failed to parse 'UpdateOrgInboundRulesRules' from JSON`,
|
|
274
|
+
);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const UpdateOrgInboundRulesResponseBody$inboundSchema: z.ZodType<
|
|
279
|
+
UpdateOrgInboundRulesResponseBody,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
unknown
|
|
282
|
+
> = z.object({
|
|
283
|
+
id: z.string(),
|
|
284
|
+
available: z.boolean(),
|
|
285
|
+
enabled: z.boolean(),
|
|
286
|
+
rules: z.array(z.lazy(() => UpdateOrgInboundRulesRules$inboundSchema)),
|
|
287
|
+
updatedAt: z.nullable(z.string()),
|
|
288
|
+
});
|
|
289
|
+
/** @internal */
|
|
290
|
+
export type UpdateOrgInboundRulesResponseBody$Outbound = {
|
|
291
|
+
id: string;
|
|
292
|
+
available: boolean;
|
|
293
|
+
enabled: boolean;
|
|
294
|
+
rules: Array<UpdateOrgInboundRulesRules$Outbound>;
|
|
295
|
+
updatedAt: string | null;
|
|
296
|
+
};
|
|
297
|
+
|
|
298
|
+
/** @internal */
|
|
299
|
+
export const UpdateOrgInboundRulesResponseBody$outboundSchema: z.ZodType<
|
|
300
|
+
UpdateOrgInboundRulesResponseBody$Outbound,
|
|
301
|
+
z.ZodTypeDef,
|
|
302
|
+
UpdateOrgInboundRulesResponseBody
|
|
303
|
+
> = z.object({
|
|
304
|
+
id: z.string(),
|
|
305
|
+
available: z.boolean(),
|
|
306
|
+
enabled: z.boolean(),
|
|
307
|
+
rules: z.array(z.lazy(() => UpdateOrgInboundRulesRules$outboundSchema)),
|
|
308
|
+
updatedAt: z.nullable(z.string()),
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
export function updateOrgInboundRulesResponseBodyToJSON(
|
|
312
|
+
updateOrgInboundRulesResponseBody: UpdateOrgInboundRulesResponseBody,
|
|
313
|
+
): string {
|
|
314
|
+
return JSON.stringify(
|
|
315
|
+
UpdateOrgInboundRulesResponseBody$outboundSchema.parse(
|
|
316
|
+
updateOrgInboundRulesResponseBody,
|
|
317
|
+
),
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
export function updateOrgInboundRulesResponseBodyFromJSON(
|
|
321
|
+
jsonString: string,
|
|
322
|
+
): SafeParseResult<UpdateOrgInboundRulesResponseBody, SDKValidationError> {
|
|
323
|
+
return safeParse(
|
|
324
|
+
jsonString,
|
|
325
|
+
(x) => UpdateOrgInboundRulesResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
326
|
+
`Failed to parse 'UpdateOrgInboundRulesResponseBody' from JSON`,
|
|
327
|
+
);
|
|
328
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
QueryClient,
|
|
7
|
+
QueryFunctionContext,
|
|
8
|
+
QueryKey,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { authOrgsGetInboundRules } from "../funcs/authOrgsGetInboundRules.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import * as operations from "../models/operations/index.js";
|
|
15
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
16
|
+
export type AuthOrgsGetInboundRulesQueryData =
|
|
17
|
+
operations.GetOrgInboundRulesResponseBody;
|
|
18
|
+
|
|
19
|
+
export function prefetchAuthOrgsGetInboundRules(
|
|
20
|
+
queryClient: QueryClient,
|
|
21
|
+
client$: SDKCore,
|
|
22
|
+
security: operations.GetOrgInboundRulesSecurity,
|
|
23
|
+
request: operations.GetOrgInboundRulesRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<void> {
|
|
26
|
+
return queryClient.prefetchQuery({
|
|
27
|
+
...buildAuthOrgsGetInboundRulesQuery(
|
|
28
|
+
client$,
|
|
29
|
+
security,
|
|
30
|
+
request,
|
|
31
|
+
options,
|
|
32
|
+
),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function buildAuthOrgsGetInboundRulesQuery(
|
|
37
|
+
client$: SDKCore,
|
|
38
|
+
security: operations.GetOrgInboundRulesSecurity,
|
|
39
|
+
request: operations.GetOrgInboundRulesRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): {
|
|
42
|
+
queryKey: QueryKey;
|
|
43
|
+
queryFn: (
|
|
44
|
+
context: QueryFunctionContext,
|
|
45
|
+
) => Promise<AuthOrgsGetInboundRulesQueryData>;
|
|
46
|
+
} {
|
|
47
|
+
return {
|
|
48
|
+
queryKey: queryKeyAuthOrgsGetInboundRules(request.orgId, {
|
|
49
|
+
xOnBehalfOf: request.xOnBehalfOf,
|
|
50
|
+
}),
|
|
51
|
+
queryFn: async function authOrgsGetInboundRulesQueryFn(
|
|
52
|
+
ctx,
|
|
53
|
+
): Promise<AuthOrgsGetInboundRulesQueryData> {
|
|
54
|
+
const sig = combineSignals(
|
|
55
|
+
ctx.signal,
|
|
56
|
+
options?.signal,
|
|
57
|
+
options?.fetchOptions?.signal,
|
|
58
|
+
);
|
|
59
|
+
const mergedOptions = {
|
|
60
|
+
...options?.fetchOptions,
|
|
61
|
+
...options,
|
|
62
|
+
signal: sig,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
return unwrapAsync(authOrgsGetInboundRules(
|
|
66
|
+
client$,
|
|
67
|
+
security,
|
|
68
|
+
request,
|
|
69
|
+
mergedOptions,
|
|
70
|
+
));
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function queryKeyAuthOrgsGetInboundRules(
|
|
76
|
+
orgId: string,
|
|
77
|
+
parameters: { xOnBehalfOf?: string | undefined },
|
|
78
|
+
): QueryKey {
|
|
79
|
+
return ["@meetkai/mka1", "orgs", "getInboundRules", orgId, parameters];
|
|
80
|
+
}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
InvalidateQueryFilters,
|
|
7
|
+
QueryClient,
|
|
8
|
+
useQuery,
|
|
9
|
+
UseQueryResult,
|
|
10
|
+
useSuspenseQuery,
|
|
11
|
+
UseSuspenseQueryResult,
|
|
12
|
+
} from "@tanstack/react-query";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as operations from "../models/operations/index.js";
|
|
25
|
+
import { useSDKContext } from "./_context.js";
|
|
26
|
+
import {
|
|
27
|
+
QueryHookOptions,
|
|
28
|
+
SuspenseQueryHookOptions,
|
|
29
|
+
TupleToPrefixes,
|
|
30
|
+
} from "./_types.js";
|
|
31
|
+
import {
|
|
32
|
+
AuthOrgsGetInboundRulesQueryData,
|
|
33
|
+
buildAuthOrgsGetInboundRulesQuery,
|
|
34
|
+
prefetchAuthOrgsGetInboundRules,
|
|
35
|
+
queryKeyAuthOrgsGetInboundRules,
|
|
36
|
+
} from "./authOrgsGetInboundRules.core.js";
|
|
37
|
+
export {
|
|
38
|
+
type AuthOrgsGetInboundRulesQueryData,
|
|
39
|
+
buildAuthOrgsGetInboundRulesQuery,
|
|
40
|
+
prefetchAuthOrgsGetInboundRules,
|
|
41
|
+
queryKeyAuthOrgsGetInboundRules,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type AuthOrgsGetInboundRulesQueryError =
|
|
45
|
+
| errors.GetOrgInboundRulesResponseBody
|
|
46
|
+
| errors.GetOrgInboundRulesAuthOrgsResponseBody
|
|
47
|
+
| errors.GetOrgInboundRulesAuthOrgsResponseResponseBody
|
|
48
|
+
| errors.GetOrgInboundRulesAuthOrgsResponse404ResponseBody
|
|
49
|
+
| errors.GetOrgInboundRulesAuthOrgsResponse409ResponseBody
|
|
50
|
+
| errors.GetOrgInboundRulesAuthOrgsResponse410ResponseBody
|
|
51
|
+
| errors.GetOrgInboundRulesAuthOrgsResponse429ResponseBody
|
|
52
|
+
| SDKError
|
|
53
|
+
| ResponseValidationError
|
|
54
|
+
| ConnectionError
|
|
55
|
+
| RequestAbortedError
|
|
56
|
+
| RequestTimeoutError
|
|
57
|
+
| InvalidRequestError
|
|
58
|
+
| UnexpectedClientError
|
|
59
|
+
| SDKValidationError;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Get an org's inbound IP rules
|
|
63
|
+
*
|
|
64
|
+
* @remarks
|
|
65
|
+
* Source-IP allowlist for the org's API keys. `available` mirrors the cluster's INBOUND_RULES_ENABLED flag. Rules are ordered by createdAt, then id.
|
|
66
|
+
*/
|
|
67
|
+
export function useAuthOrgsGetInboundRules(
|
|
68
|
+
security: operations.GetOrgInboundRulesSecurity,
|
|
69
|
+
request: operations.GetOrgInboundRulesRequest,
|
|
70
|
+
options?: QueryHookOptions<
|
|
71
|
+
AuthOrgsGetInboundRulesQueryData,
|
|
72
|
+
AuthOrgsGetInboundRulesQueryError
|
|
73
|
+
>,
|
|
74
|
+
): UseQueryResult<
|
|
75
|
+
AuthOrgsGetInboundRulesQueryData,
|
|
76
|
+
AuthOrgsGetInboundRulesQueryError
|
|
77
|
+
> {
|
|
78
|
+
const client = useSDKContext();
|
|
79
|
+
return useQuery({
|
|
80
|
+
...buildAuthOrgsGetInboundRulesQuery(
|
|
81
|
+
client,
|
|
82
|
+
security,
|
|
83
|
+
request,
|
|
84
|
+
options,
|
|
85
|
+
),
|
|
86
|
+
...options,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Get an org's inbound IP rules
|
|
92
|
+
*
|
|
93
|
+
* @remarks
|
|
94
|
+
* Source-IP allowlist for the org's API keys. `available` mirrors the cluster's INBOUND_RULES_ENABLED flag. Rules are ordered by createdAt, then id.
|
|
95
|
+
*/
|
|
96
|
+
export function useAuthOrgsGetInboundRulesSuspense(
|
|
97
|
+
security: operations.GetOrgInboundRulesSecurity,
|
|
98
|
+
request: operations.GetOrgInboundRulesRequest,
|
|
99
|
+
options?: SuspenseQueryHookOptions<
|
|
100
|
+
AuthOrgsGetInboundRulesQueryData,
|
|
101
|
+
AuthOrgsGetInboundRulesQueryError
|
|
102
|
+
>,
|
|
103
|
+
): UseSuspenseQueryResult<
|
|
104
|
+
AuthOrgsGetInboundRulesQueryData,
|
|
105
|
+
AuthOrgsGetInboundRulesQueryError
|
|
106
|
+
> {
|
|
107
|
+
const client = useSDKContext();
|
|
108
|
+
return useSuspenseQuery({
|
|
109
|
+
...buildAuthOrgsGetInboundRulesQuery(
|
|
110
|
+
client,
|
|
111
|
+
security,
|
|
112
|
+
request,
|
|
113
|
+
options,
|
|
114
|
+
),
|
|
115
|
+
...options,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function setAuthOrgsGetInboundRulesData(
|
|
120
|
+
client: QueryClient,
|
|
121
|
+
queryKeyBase: [
|
|
122
|
+
orgId: string,
|
|
123
|
+
parameters: { xOnBehalfOf?: string | undefined },
|
|
124
|
+
],
|
|
125
|
+
data: AuthOrgsGetInboundRulesQueryData,
|
|
126
|
+
): AuthOrgsGetInboundRulesQueryData | undefined {
|
|
127
|
+
const key = queryKeyAuthOrgsGetInboundRules(...queryKeyBase);
|
|
128
|
+
|
|
129
|
+
return client.setQueryData<AuthOrgsGetInboundRulesQueryData>(key, data);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function invalidateAuthOrgsGetInboundRules(
|
|
133
|
+
client: QueryClient,
|
|
134
|
+
queryKeyBase: TupleToPrefixes<
|
|
135
|
+
[orgId: string, parameters: { xOnBehalfOf?: string | undefined }]
|
|
136
|
+
>,
|
|
137
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
138
|
+
): Promise<void> {
|
|
139
|
+
return client.invalidateQueries({
|
|
140
|
+
...filters,
|
|
141
|
+
queryKey: ["@meetkai/mka1", "orgs", "getInboundRules", ...queryKeyBase],
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export function invalidateAllAuthOrgsGetInboundRules(
|
|
146
|
+
client: QueryClient,
|
|
147
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
148
|
+
): Promise<void> {
|
|
149
|
+
return client.invalidateQueries({
|
|
150
|
+
...filters,
|
|
151
|
+
queryKey: ["@meetkai/mka1", "orgs", "getInboundRules"],
|
|
152
|
+
});
|
|
153
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import {
|
|
6
|
+
MutationKey,
|
|
7
|
+
useMutation,
|
|
8
|
+
UseMutationResult,
|
|
9
|
+
} from "@tanstack/react-query";
|
|
10
|
+
import { SDKCore } from "../core.js";
|
|
11
|
+
import { authOrgsUpdateInboundRules } from "../funcs/authOrgsUpdateInboundRules.js";
|
|
12
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
+
import {
|
|
15
|
+
ConnectionError,
|
|
16
|
+
InvalidRequestError,
|
|
17
|
+
RequestAbortedError,
|
|
18
|
+
RequestTimeoutError,
|
|
19
|
+
UnexpectedClientError,
|
|
20
|
+
} from "../models/errors/httpclienterrors.js";
|
|
21
|
+
import * as errors from "../models/errors/index.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
24
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useSDKContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type AuthOrgsUpdateInboundRulesMutationVariables = {
|
|
31
|
+
security: operations.UpdateOrgInboundRulesSecurity;
|
|
32
|
+
request: operations.UpdateOrgInboundRulesRequest;
|
|
33
|
+
options?: RequestOptions;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type AuthOrgsUpdateInboundRulesMutationData =
|
|
37
|
+
operations.UpdateOrgInboundRulesResponseBody;
|
|
38
|
+
|
|
39
|
+
export type AuthOrgsUpdateInboundRulesMutationError =
|
|
40
|
+
| errors.UpdateOrgInboundRulesResponseBody
|
|
41
|
+
| errors.UpdateOrgInboundRulesAuthOrgsResponseBody
|
|
42
|
+
| errors.UpdateOrgInboundRulesAuthOrgsResponseResponseBody
|
|
43
|
+
| errors.UpdateOrgInboundRulesAuthOrgsResponse404ResponseBody
|
|
44
|
+
| errors.UpdateOrgInboundRulesAuthOrgsResponse409ResponseBody
|
|
45
|
+
| errors.UpdateOrgInboundRulesAuthOrgsResponse410ResponseBody
|
|
46
|
+
| errors.UpdateOrgInboundRulesAuthOrgsResponse429ResponseBody
|
|
47
|
+
| SDKError
|
|
48
|
+
| ResponseValidationError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
| RequestAbortedError
|
|
51
|
+
| RequestTimeoutError
|
|
52
|
+
| InvalidRequestError
|
|
53
|
+
| UnexpectedClientError
|
|
54
|
+
| SDKValidationError;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Replace an org's inbound IP rules (org owner/admin, browser session)
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Replaces the whole policy atomically. Each cidr is normalized (bare 0.0.0.0 / :: mean /0, other bare addresses are /32 or /128, host bits are cleared); duplicates after normalization are a 400. A request carrying an Authorization header is refused with 403.
|
|
61
|
+
*/
|
|
62
|
+
export function useAuthOrgsUpdateInboundRulesMutation(
|
|
63
|
+
options?: MutationHookOptions<
|
|
64
|
+
AuthOrgsUpdateInboundRulesMutationData,
|
|
65
|
+
AuthOrgsUpdateInboundRulesMutationError,
|
|
66
|
+
AuthOrgsUpdateInboundRulesMutationVariables
|
|
67
|
+
>,
|
|
68
|
+
): UseMutationResult<
|
|
69
|
+
AuthOrgsUpdateInboundRulesMutationData,
|
|
70
|
+
AuthOrgsUpdateInboundRulesMutationError,
|
|
71
|
+
AuthOrgsUpdateInboundRulesMutationVariables
|
|
72
|
+
> {
|
|
73
|
+
const client = useSDKContext();
|
|
74
|
+
return useMutation({
|
|
75
|
+
...buildAuthOrgsUpdateInboundRulesMutation(client, options),
|
|
76
|
+
...options,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function mutationKeyAuthOrgsUpdateInboundRules(): MutationKey {
|
|
81
|
+
return ["@meetkai/mka1", "orgs", "updateInboundRules"];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function buildAuthOrgsUpdateInboundRulesMutation(
|
|
85
|
+
client$: SDKCore,
|
|
86
|
+
hookOptions?: RequestOptions,
|
|
87
|
+
): {
|
|
88
|
+
mutationKey: MutationKey;
|
|
89
|
+
mutationFn: (
|
|
90
|
+
variables: AuthOrgsUpdateInboundRulesMutationVariables,
|
|
91
|
+
) => Promise<AuthOrgsUpdateInboundRulesMutationData>;
|
|
92
|
+
} {
|
|
93
|
+
return {
|
|
94
|
+
mutationKey: mutationKeyAuthOrgsUpdateInboundRules(),
|
|
95
|
+
mutationFn: function authOrgsUpdateInboundRulesMutationFn({
|
|
96
|
+
security,
|
|
97
|
+
request,
|
|
98
|
+
options,
|
|
99
|
+
}): Promise<AuthOrgsUpdateInboundRulesMutationData> {
|
|
100
|
+
const mergedOptions = {
|
|
101
|
+
...hookOptions,
|
|
102
|
+
...options,
|
|
103
|
+
fetchOptions: {
|
|
104
|
+
...hookOptions?.fetchOptions,
|
|
105
|
+
...options?.fetchOptions,
|
|
106
|
+
signal: combineSignals(
|
|
107
|
+
hookOptions?.fetchOptions?.signal,
|
|
108
|
+
options?.fetchOptions?.signal,
|
|
109
|
+
),
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
return unwrapAsync(authOrgsUpdateInboundRules(
|
|
113
|
+
client$,
|
|
114
|
+
security,
|
|
115
|
+
request,
|
|
116
|
+
mergedOptions,
|
|
117
|
+
));
|
|
118
|
+
},
|
|
119
|
+
};
|
|
120
|
+
}
|