@meetkai/mka1 0.54.31 → 0.54.33
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 +299 -294
- package/bin/mcp-server.js +217 -13
- package/bin/mcp-server.js.map +15 -12
- package/dist/commonjs/funcs/sessionGetPendingInvitation.d.ts +18 -0
- package/dist/commonjs/funcs/sessionGetPendingInvitation.d.ts.map +1 -0
- package/dist/commonjs/funcs/sessionGetPendingInvitation.js +133 -0
- package/dist/commonjs/funcs/sessionGetPendingInvitation.js.map +1 -0
- 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/models/components/addcatalogmodelrequest.d.ts +20 -0
- package/dist/commonjs/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js +24 -1
- package/dist/commonjs/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts +20 -0
- package/dist/commonjs/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js +24 -1
- package/dist/commonjs/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/commonjs/models/errors/getpendinginvitation.d.ts +55 -0
- package/dist/commonjs/models/errors/getpendinginvitation.d.ts.map +1 -0
- package/dist/commonjs/models/errors/getpendinginvitation.js +106 -0
- package/dist/commonjs/models/errors/getpendinginvitation.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +1 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +1 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/operations/getmodel.d.ts +16 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +13 -0
- package/dist/commonjs/models/operations/getmodel.js.map +1 -1
- package/dist/commonjs/models/operations/getpendinginvitation.d.ts +89 -0
- package/dist/commonjs/models/operations/getpendinginvitation.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getpendinginvitation.js +160 -0
- package/dist/commonjs/models/operations/getpendinginvitation.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listmodels.d.ts +16 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +13 -0
- package/dist/commonjs/models/operations/listmodels.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/sessionGetPendingInvitation.core.d.ts +14 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.core.js +36 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.core.js.map +1 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.d.ts +35 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.d.ts.map +1 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.js +65 -0
- package/dist/commonjs/react-query/sessionGetPendingInvitation.js.map +1 -0
- package/dist/commonjs/sdk/session.d.ts +7 -0
- package/dist/commonjs/sdk/session.d.ts.map +1 -1
- package/dist/commonjs/sdk/session.js +10 -0
- package/dist/commonjs/sdk/session.js.map +1 -1
- package/dist/esm/funcs/sessionGetPendingInvitation.d.ts +18 -0
- package/dist/esm/funcs/sessionGetPendingInvitation.d.ts.map +1 -0
- package/dist/esm/funcs/sessionGetPendingInvitation.js +97 -0
- package/dist/esm/funcs/sessionGetPendingInvitation.js.map +1 -0
- 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/models/components/addcatalogmodelrequest.d.ts +20 -0
- package/dist/esm/models/components/addcatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/addcatalogmodelrequest.js +21 -0
- package/dist/esm/models/components/addcatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts +20 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.d.ts.map +1 -1
- package/dist/esm/models/components/updatecatalogmodelrequest.js +21 -0
- package/dist/esm/models/components/updatecatalogmodelrequest.js.map +1 -1
- package/dist/esm/models/errors/getpendinginvitation.d.ts +55 -0
- package/dist/esm/models/errors/getpendinginvitation.d.ts.map +1 -0
- package/dist/esm/models/errors/getpendinginvitation.js +68 -0
- package/dist/esm/models/errors/getpendinginvitation.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +1 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +1 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/operations/getmodel.d.ts +16 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +13 -0
- package/dist/esm/models/operations/getmodel.js.map +1 -1
- package/dist/esm/models/operations/getpendinginvitation.d.ts +89 -0
- package/dist/esm/models/operations/getpendinginvitation.d.ts.map +1 -0
- package/dist/esm/models/operations/getpendinginvitation.js +112 -0
- package/dist/esm/models/operations/getpendinginvitation.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listmodels.d.ts +16 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +13 -0
- package/dist/esm/models/operations/listmodels.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/sessionGetPendingInvitation.core.d.ts +14 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.core.d.ts.map +1 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.core.js +31 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.core.js.map +1 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.d.ts +35 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.d.ts.map +1 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.js +55 -0
- package/dist/esm/react-query/sessionGetPendingInvitation.js.map +1 -0
- package/dist/esm/sdk/session.d.ts +7 -0
- package/dist/esm/sdk/session.d.ts.map +1 -1
- package/dist/esm/sdk/session.js +10 -0
- package/dist/esm/sdk/session.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/sessionGetPendingInvitation.ts +202 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/addcatalogmodelrequest.ts +52 -0
- package/src/models/components/updatecatalogmodelrequest.ts +63 -0
- package/src/models/errors/getpendinginvitation.ts +128 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/getmodel.ts +28 -0
- package/src/models/operations/getpendinginvitation.ts +308 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listmodels.ts +28 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/sessionGetPendingInvitation.core.ts +79 -0
- package/src/react-query/sessionGetPendingInvitation.ts +150 -0
- package/src/sdk/session.ts +20 -0
|
@@ -0,0 +1,308 @@
|
|
|
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 * as discriminatedUnionTypes from "../../types/discriminatedUnion.js";
|
|
9
|
+
import { discriminatedUnion } from "../../types/discriminatedUnion.js";
|
|
10
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
11
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
|
+
|
|
13
|
+
export type GetPendingInvitationSecurity = {
|
|
14
|
+
sessionCookie: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type GetPendingInvitationRequest = {
|
|
18
|
+
/**
|
|
19
|
+
* Optional external end-user identifier forwarded by the API gateway.
|
|
20
|
+
*/
|
|
21
|
+
xOnBehalfOf?: string | undefined;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export type Invitation2 = {
|
|
25
|
+
type: "cluster";
|
|
26
|
+
token: string;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type Invitation1 = {
|
|
30
|
+
type: "organization";
|
|
31
|
+
id: string;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export type GetPendingInvitationInvitation =
|
|
35
|
+
| Invitation1
|
|
36
|
+
| Invitation2
|
|
37
|
+
| discriminatedUnionTypes.Unknown<"type">;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Invitation to resume, or null when none exists
|
|
41
|
+
*/
|
|
42
|
+
export type GetPendingInvitationResponseBody = {
|
|
43
|
+
invitation:
|
|
44
|
+
| Invitation1
|
|
45
|
+
| Invitation2
|
|
46
|
+
| discriminatedUnionTypes.Unknown<"type">
|
|
47
|
+
| null;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
/** @internal */
|
|
51
|
+
export const GetPendingInvitationSecurity$inboundSchema: z.ZodType<
|
|
52
|
+
GetPendingInvitationSecurity,
|
|
53
|
+
z.ZodTypeDef,
|
|
54
|
+
unknown
|
|
55
|
+
> = z.object({
|
|
56
|
+
sessionCookie: z.string(),
|
|
57
|
+
});
|
|
58
|
+
/** @internal */
|
|
59
|
+
export type GetPendingInvitationSecurity$Outbound = {
|
|
60
|
+
sessionCookie: string;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const GetPendingInvitationSecurity$outboundSchema: z.ZodType<
|
|
65
|
+
GetPendingInvitationSecurity$Outbound,
|
|
66
|
+
z.ZodTypeDef,
|
|
67
|
+
GetPendingInvitationSecurity
|
|
68
|
+
> = z.object({
|
|
69
|
+
sessionCookie: z.string(),
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export function getPendingInvitationSecurityToJSON(
|
|
73
|
+
getPendingInvitationSecurity: GetPendingInvitationSecurity,
|
|
74
|
+
): string {
|
|
75
|
+
return JSON.stringify(
|
|
76
|
+
GetPendingInvitationSecurity$outboundSchema.parse(
|
|
77
|
+
getPendingInvitationSecurity,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
export function getPendingInvitationSecurityFromJSON(
|
|
82
|
+
jsonString: string,
|
|
83
|
+
): SafeParseResult<GetPendingInvitationSecurity, SDKValidationError> {
|
|
84
|
+
return safeParse(
|
|
85
|
+
jsonString,
|
|
86
|
+
(x) => GetPendingInvitationSecurity$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
+
`Failed to parse 'GetPendingInvitationSecurity' from JSON`,
|
|
88
|
+
);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const GetPendingInvitationRequest$inboundSchema: z.ZodType<
|
|
93
|
+
GetPendingInvitationRequest,
|
|
94
|
+
z.ZodTypeDef,
|
|
95
|
+
unknown
|
|
96
|
+
> = z.object({
|
|
97
|
+
"X-On-Behalf-Of": z.string().optional(),
|
|
98
|
+
}).transform((v) => {
|
|
99
|
+
return remap$(v, {
|
|
100
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
/** @internal */
|
|
104
|
+
export type GetPendingInvitationRequest$Outbound = {
|
|
105
|
+
"X-On-Behalf-Of"?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/** @internal */
|
|
109
|
+
export const GetPendingInvitationRequest$outboundSchema: z.ZodType<
|
|
110
|
+
GetPendingInvitationRequest$Outbound,
|
|
111
|
+
z.ZodTypeDef,
|
|
112
|
+
GetPendingInvitationRequest
|
|
113
|
+
> = z.object({
|
|
114
|
+
xOnBehalfOf: z.string().optional(),
|
|
115
|
+
}).transform((v) => {
|
|
116
|
+
return remap$(v, {
|
|
117
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
118
|
+
});
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
export function getPendingInvitationRequestToJSON(
|
|
122
|
+
getPendingInvitationRequest: GetPendingInvitationRequest,
|
|
123
|
+
): string {
|
|
124
|
+
return JSON.stringify(
|
|
125
|
+
GetPendingInvitationRequest$outboundSchema.parse(
|
|
126
|
+
getPendingInvitationRequest,
|
|
127
|
+
),
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
export function getPendingInvitationRequestFromJSON(
|
|
131
|
+
jsonString: string,
|
|
132
|
+
): SafeParseResult<GetPendingInvitationRequest, SDKValidationError> {
|
|
133
|
+
return safeParse(
|
|
134
|
+
jsonString,
|
|
135
|
+
(x) => GetPendingInvitationRequest$inboundSchema.parse(JSON.parse(x)),
|
|
136
|
+
`Failed to parse 'GetPendingInvitationRequest' from JSON`,
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const Invitation2$inboundSchema: z.ZodType<
|
|
142
|
+
Invitation2,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
unknown
|
|
145
|
+
> = z.object({
|
|
146
|
+
type: z.literal("cluster"),
|
|
147
|
+
token: z.string(),
|
|
148
|
+
});
|
|
149
|
+
/** @internal */
|
|
150
|
+
export type Invitation2$Outbound = {
|
|
151
|
+
type: "cluster";
|
|
152
|
+
token: string;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
/** @internal */
|
|
156
|
+
export const Invitation2$outboundSchema: z.ZodType<
|
|
157
|
+
Invitation2$Outbound,
|
|
158
|
+
z.ZodTypeDef,
|
|
159
|
+
Invitation2
|
|
160
|
+
> = z.object({
|
|
161
|
+
type: z.literal("cluster"),
|
|
162
|
+
token: z.string(),
|
|
163
|
+
});
|
|
164
|
+
|
|
165
|
+
export function invitation2ToJSON(invitation2: Invitation2): string {
|
|
166
|
+
return JSON.stringify(Invitation2$outboundSchema.parse(invitation2));
|
|
167
|
+
}
|
|
168
|
+
export function invitation2FromJSON(
|
|
169
|
+
jsonString: string,
|
|
170
|
+
): SafeParseResult<Invitation2, SDKValidationError> {
|
|
171
|
+
return safeParse(
|
|
172
|
+
jsonString,
|
|
173
|
+
(x) => Invitation2$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
+
`Failed to parse 'Invitation2' from JSON`,
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** @internal */
|
|
179
|
+
export const Invitation1$inboundSchema: z.ZodType<
|
|
180
|
+
Invitation1,
|
|
181
|
+
z.ZodTypeDef,
|
|
182
|
+
unknown
|
|
183
|
+
> = z.object({
|
|
184
|
+
type: z.literal("organization"),
|
|
185
|
+
id: z.string(),
|
|
186
|
+
});
|
|
187
|
+
/** @internal */
|
|
188
|
+
export type Invitation1$Outbound = {
|
|
189
|
+
type: "organization";
|
|
190
|
+
id: string;
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
/** @internal */
|
|
194
|
+
export const Invitation1$outboundSchema: z.ZodType<
|
|
195
|
+
Invitation1$Outbound,
|
|
196
|
+
z.ZodTypeDef,
|
|
197
|
+
Invitation1
|
|
198
|
+
> = z.object({
|
|
199
|
+
type: z.literal("organization"),
|
|
200
|
+
id: z.string(),
|
|
201
|
+
});
|
|
202
|
+
|
|
203
|
+
export function invitation1ToJSON(invitation1: Invitation1): string {
|
|
204
|
+
return JSON.stringify(Invitation1$outboundSchema.parse(invitation1));
|
|
205
|
+
}
|
|
206
|
+
export function invitation1FromJSON(
|
|
207
|
+
jsonString: string,
|
|
208
|
+
): SafeParseResult<Invitation1, SDKValidationError> {
|
|
209
|
+
return safeParse(
|
|
210
|
+
jsonString,
|
|
211
|
+
(x) => Invitation1$inboundSchema.parse(JSON.parse(x)),
|
|
212
|
+
`Failed to parse 'Invitation1' from JSON`,
|
|
213
|
+
);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
/** @internal */
|
|
217
|
+
export const GetPendingInvitationInvitation$inboundSchema: z.ZodType<
|
|
218
|
+
GetPendingInvitationInvitation,
|
|
219
|
+
z.ZodTypeDef,
|
|
220
|
+
unknown
|
|
221
|
+
> = discriminatedUnion("type", {
|
|
222
|
+
organization: z.lazy(() => Invitation1$inboundSchema),
|
|
223
|
+
cluster: z.lazy(() => Invitation2$inboundSchema),
|
|
224
|
+
});
|
|
225
|
+
/** @internal */
|
|
226
|
+
export type GetPendingInvitationInvitation$Outbound =
|
|
227
|
+
| Invitation1$Outbound
|
|
228
|
+
| Invitation2$Outbound;
|
|
229
|
+
|
|
230
|
+
/** @internal */
|
|
231
|
+
export const GetPendingInvitationInvitation$outboundSchema: z.ZodType<
|
|
232
|
+
GetPendingInvitationInvitation$Outbound,
|
|
233
|
+
z.ZodTypeDef,
|
|
234
|
+
GetPendingInvitationInvitation
|
|
235
|
+
> = z.union([
|
|
236
|
+
z.lazy(() => Invitation1$outboundSchema),
|
|
237
|
+
z.lazy(() => Invitation2$outboundSchema),
|
|
238
|
+
]);
|
|
239
|
+
|
|
240
|
+
export function getPendingInvitationInvitationToJSON(
|
|
241
|
+
getPendingInvitationInvitation: GetPendingInvitationInvitation,
|
|
242
|
+
): string {
|
|
243
|
+
return JSON.stringify(
|
|
244
|
+
GetPendingInvitationInvitation$outboundSchema.parse(
|
|
245
|
+
getPendingInvitationInvitation,
|
|
246
|
+
),
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
export function getPendingInvitationInvitationFromJSON(
|
|
250
|
+
jsonString: string,
|
|
251
|
+
): SafeParseResult<GetPendingInvitationInvitation, SDKValidationError> {
|
|
252
|
+
return safeParse(
|
|
253
|
+
jsonString,
|
|
254
|
+
(x) => GetPendingInvitationInvitation$inboundSchema.parse(JSON.parse(x)),
|
|
255
|
+
`Failed to parse 'GetPendingInvitationInvitation' from JSON`,
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/** @internal */
|
|
260
|
+
export const GetPendingInvitationResponseBody$inboundSchema: z.ZodType<
|
|
261
|
+
GetPendingInvitationResponseBody,
|
|
262
|
+
z.ZodTypeDef,
|
|
263
|
+
unknown
|
|
264
|
+
> = z.object({
|
|
265
|
+
invitation: z.nullable(
|
|
266
|
+
discriminatedUnion("type", {
|
|
267
|
+
organization: z.lazy(() => Invitation1$inboundSchema),
|
|
268
|
+
cluster: z.lazy(() => Invitation2$inboundSchema),
|
|
269
|
+
}),
|
|
270
|
+
),
|
|
271
|
+
});
|
|
272
|
+
/** @internal */
|
|
273
|
+
export type GetPendingInvitationResponseBody$Outbound = {
|
|
274
|
+
invitation: Invitation1$Outbound | Invitation2$Outbound | null;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const GetPendingInvitationResponseBody$outboundSchema: z.ZodType<
|
|
279
|
+
GetPendingInvitationResponseBody$Outbound,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
GetPendingInvitationResponseBody
|
|
282
|
+
> = z.object({
|
|
283
|
+
invitation: z.nullable(
|
|
284
|
+
z.union([
|
|
285
|
+
z.lazy(() => Invitation1$outboundSchema),
|
|
286
|
+
z.lazy(() => Invitation2$outboundSchema),
|
|
287
|
+
]),
|
|
288
|
+
),
|
|
289
|
+
});
|
|
290
|
+
|
|
291
|
+
export function getPendingInvitationResponseBodyToJSON(
|
|
292
|
+
getPendingInvitationResponseBody: GetPendingInvitationResponseBody,
|
|
293
|
+
): string {
|
|
294
|
+
return JSON.stringify(
|
|
295
|
+
GetPendingInvitationResponseBody$outboundSchema.parse(
|
|
296
|
+
getPendingInvitationResponseBody,
|
|
297
|
+
),
|
|
298
|
+
);
|
|
299
|
+
}
|
|
300
|
+
export function getPendingInvitationResponseBodyFromJSON(
|
|
301
|
+
jsonString: string,
|
|
302
|
+
): SafeParseResult<GetPendingInvitationResponseBody, SDKValidationError> {
|
|
303
|
+
return safeParse(
|
|
304
|
+
jsonString,
|
|
305
|
+
(x) => GetPendingInvitationResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
306
|
+
`Failed to parse 'GetPendingInvitationResponseBody' from JSON`,
|
|
307
|
+
);
|
|
308
|
+
}
|
|
@@ -174,6 +174,7 @@ export * from "./getorgbudgets.js";
|
|
|
174
174
|
export * from "./getorgbyid.js";
|
|
175
175
|
export * from "./getorgquota.js";
|
|
176
176
|
export * from "./getorgratelimit.js";
|
|
177
|
+
export * from "./getpendinginvitation.js";
|
|
177
178
|
export * from "./getpricing.js";
|
|
178
179
|
export * from "./getprompt.js";
|
|
179
180
|
export * from "./getpromptversion.js";
|
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { RFCDate } from "../../types/rfcdate.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
export type ListModelsRequest = {
|
|
@@ -53,6 +54,18 @@ export type ListModelsData = {
|
|
|
53
54
|
* Modalities this model can produce, mirroring the registry's `capabilities.modalities.output`. Unconstrained strings rather than a closed enum so a new registry modality reaches clients without a breaking schema change.
|
|
54
55
|
*/
|
|
55
56
|
outputModalities: Array<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Total parameter count of the weights behind this model, mirroring the registry's `modelCard.parameterCount`. Null when the registry does not record one (closed-weight API models, or entries nobody has filled in yet).
|
|
59
|
+
*/
|
|
60
|
+
parameterCount: number | null;
|
|
61
|
+
/**
|
|
62
|
+
* Parameters active per token for mixture-of-experts models, mirroring the registry's `modelCard.activeParameterCount`. Null for dense models and whenever unrecorded.
|
|
63
|
+
*/
|
|
64
|
+
activeParameterCount: number | null;
|
|
65
|
+
/**
|
|
66
|
+
* Public release date of the model as an ISO calendar date (YYYY-MM-DD), mirroring the registry's `modelCard.releaseDate`. Null when unrecorded.
|
|
67
|
+
*/
|
|
68
|
+
releaseDate: RFCDate | null;
|
|
56
69
|
/**
|
|
57
70
|
* Curated public sampling capabilities for this model.
|
|
58
71
|
*/
|
|
@@ -188,6 +201,9 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
188
201
|
model_type: ListModelsModelType$inboundSchema,
|
|
189
202
|
input_modalities: z.array(z.string()),
|
|
190
203
|
output_modalities: z.array(z.string()),
|
|
204
|
+
parameter_count: z.nullable(z.number().int()),
|
|
205
|
+
active_parameter_count: z.nullable(z.number().int()),
|
|
206
|
+
release_date: z.nullable(z.string().transform(v => new RFCDate(v))),
|
|
191
207
|
capabilities: z.lazy(() => ListModelsCapabilities$inboundSchema),
|
|
192
208
|
}).transform((v) => {
|
|
193
209
|
return remap$(v, {
|
|
@@ -195,6 +211,9 @@ export const ListModelsData$inboundSchema: z.ZodType<
|
|
|
195
211
|
"model_type": "modelType",
|
|
196
212
|
"input_modalities": "inputModalities",
|
|
197
213
|
"output_modalities": "outputModalities",
|
|
214
|
+
"parameter_count": "parameterCount",
|
|
215
|
+
"active_parameter_count": "activeParameterCount",
|
|
216
|
+
"release_date": "releaseDate",
|
|
198
217
|
});
|
|
199
218
|
});
|
|
200
219
|
/** @internal */
|
|
@@ -206,6 +225,9 @@ export type ListModelsData$Outbound = {
|
|
|
206
225
|
model_type: string;
|
|
207
226
|
input_modalities: Array<string>;
|
|
208
227
|
output_modalities: Array<string>;
|
|
228
|
+
parameter_count: number | null;
|
|
229
|
+
active_parameter_count: number | null;
|
|
230
|
+
release_date: string | null;
|
|
209
231
|
capabilities: ListModelsCapabilities$Outbound;
|
|
210
232
|
};
|
|
211
233
|
|
|
@@ -222,6 +244,9 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
222
244
|
modelType: ListModelsModelType$outboundSchema,
|
|
223
245
|
inputModalities: z.array(z.string()),
|
|
224
246
|
outputModalities: z.array(z.string()),
|
|
247
|
+
parameterCount: z.nullable(z.number().int()),
|
|
248
|
+
activeParameterCount: z.nullable(z.number().int()),
|
|
249
|
+
releaseDate: z.nullable(z.instanceof(RFCDate).transform(v => v.toString())),
|
|
225
250
|
capabilities: z.lazy(() => ListModelsCapabilities$outboundSchema),
|
|
226
251
|
}).transform((v) => {
|
|
227
252
|
return remap$(v, {
|
|
@@ -229,6 +254,9 @@ export const ListModelsData$outboundSchema: z.ZodType<
|
|
|
229
254
|
modelType: "model_type",
|
|
230
255
|
inputModalities: "input_modalities",
|
|
231
256
|
outputModalities: "output_modalities",
|
|
257
|
+
parameterCount: "parameter_count",
|
|
258
|
+
activeParameterCount: "active_parameter_count",
|
|
259
|
+
releaseDate: "release_date",
|
|
232
260
|
});
|
|
233
261
|
});
|
|
234
262
|
|
package/src/react-query/index.ts
CHANGED
|
@@ -387,5 +387,6 @@ export * from "./schema3OtherResolveReferenceApiV1SandboxGithubRepositoriesResol
|
|
|
387
387
|
export * from "./schema3OtherRunEnvironmentSetupApiV1SandboxSessionsSessionIdEnvironmentSetupPost.js";
|
|
388
388
|
export * from "./schema3OtherUpdateEnvironmentApiV1SandboxEnvironmentsEnvironmentIdPut.js";
|
|
389
389
|
export * from "./sessionExchangeSessionToken.js";
|
|
390
|
+
export * from "./sessionGetPendingInvitation.js";
|
|
390
391
|
export * from "./usageCosts.js";
|
|
391
392
|
export * from "./usageSandbox.js";
|
|
@@ -0,0 +1,79 @@
|
|
|
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 { sessionGetPendingInvitation } from "../funcs/sessionGetPendingInvitation.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 SessionGetPendingInvitationQueryData =
|
|
17
|
+
operations.GetPendingInvitationResponseBody;
|
|
18
|
+
|
|
19
|
+
export function prefetchSessionGetPendingInvitation(
|
|
20
|
+
queryClient: QueryClient,
|
|
21
|
+
client$: SDKCore,
|
|
22
|
+
security: operations.GetPendingInvitationSecurity,
|
|
23
|
+
request: operations.GetPendingInvitationRequest,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<void> {
|
|
26
|
+
return queryClient.prefetchQuery({
|
|
27
|
+
...buildSessionGetPendingInvitationQuery(
|
|
28
|
+
client$,
|
|
29
|
+
security,
|
|
30
|
+
request,
|
|
31
|
+
options,
|
|
32
|
+
),
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export function buildSessionGetPendingInvitationQuery(
|
|
37
|
+
client$: SDKCore,
|
|
38
|
+
security: operations.GetPendingInvitationSecurity,
|
|
39
|
+
request: operations.GetPendingInvitationRequest,
|
|
40
|
+
options?: RequestOptions,
|
|
41
|
+
): {
|
|
42
|
+
queryKey: QueryKey;
|
|
43
|
+
queryFn: (
|
|
44
|
+
context: QueryFunctionContext,
|
|
45
|
+
) => Promise<SessionGetPendingInvitationQueryData>;
|
|
46
|
+
} {
|
|
47
|
+
return {
|
|
48
|
+
queryKey: queryKeySessionGetPendingInvitation({
|
|
49
|
+
xOnBehalfOf: request.xOnBehalfOf,
|
|
50
|
+
}),
|
|
51
|
+
queryFn: async function sessionGetPendingInvitationQueryFn(
|
|
52
|
+
ctx,
|
|
53
|
+
): Promise<SessionGetPendingInvitationQueryData> {
|
|
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(sessionGetPendingInvitation(
|
|
66
|
+
client$,
|
|
67
|
+
security,
|
|
68
|
+
request,
|
|
69
|
+
mergedOptions,
|
|
70
|
+
));
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export function queryKeySessionGetPendingInvitation(
|
|
76
|
+
parameters: { xOnBehalfOf?: string | undefined },
|
|
77
|
+
): QueryKey {
|
|
78
|
+
return ["@meetkai/mka1", "Session", "getPendingInvitation", parameters];
|
|
79
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
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
|
+
buildSessionGetPendingInvitationQuery,
|
|
33
|
+
prefetchSessionGetPendingInvitation,
|
|
34
|
+
queryKeySessionGetPendingInvitation,
|
|
35
|
+
SessionGetPendingInvitationQueryData,
|
|
36
|
+
} from "./sessionGetPendingInvitation.core.js";
|
|
37
|
+
export {
|
|
38
|
+
buildSessionGetPendingInvitationQuery,
|
|
39
|
+
prefetchSessionGetPendingInvitation,
|
|
40
|
+
queryKeySessionGetPendingInvitation,
|
|
41
|
+
type SessionGetPendingInvitationQueryData,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type SessionGetPendingInvitationQueryError =
|
|
45
|
+
| errors.GetPendingInvitationResponseBody
|
|
46
|
+
| errors.GetPendingInvitationSessionResponseBody
|
|
47
|
+
| SDKError
|
|
48
|
+
| ResponseValidationError
|
|
49
|
+
| ConnectionError
|
|
50
|
+
| RequestAbortedError
|
|
51
|
+
| RequestTimeoutError
|
|
52
|
+
| InvalidRequestError
|
|
53
|
+
| UnexpectedClientError
|
|
54
|
+
| SDKValidationError;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
58
|
+
*
|
|
59
|
+
* @remarks
|
|
60
|
+
* Requires a session with a verified email. Returns a pending, unexpired organization invitation first, otherwise an unclaimed, unexpired cluster invitation bound to that email. Open cluster invitations are never returned. Does not accept or modify the invitation.
|
|
61
|
+
*/
|
|
62
|
+
export function useSessionGetPendingInvitation(
|
|
63
|
+
security: operations.GetPendingInvitationSecurity,
|
|
64
|
+
request: operations.GetPendingInvitationRequest,
|
|
65
|
+
options?: QueryHookOptions<
|
|
66
|
+
SessionGetPendingInvitationQueryData,
|
|
67
|
+
SessionGetPendingInvitationQueryError
|
|
68
|
+
>,
|
|
69
|
+
): UseQueryResult<
|
|
70
|
+
SessionGetPendingInvitationQueryData,
|
|
71
|
+
SessionGetPendingInvitationQueryError
|
|
72
|
+
> {
|
|
73
|
+
const client = useSDKContext();
|
|
74
|
+
return useQuery({
|
|
75
|
+
...buildSessionGetPendingInvitationQuery(
|
|
76
|
+
client,
|
|
77
|
+
security,
|
|
78
|
+
request,
|
|
79
|
+
options,
|
|
80
|
+
),
|
|
81
|
+
...options,
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
87
|
+
*
|
|
88
|
+
* @remarks
|
|
89
|
+
* Requires a session with a verified email. Returns a pending, unexpired organization invitation first, otherwise an unclaimed, unexpired cluster invitation bound to that email. Open cluster invitations are never returned. Does not accept or modify the invitation.
|
|
90
|
+
*/
|
|
91
|
+
export function useSessionGetPendingInvitationSuspense(
|
|
92
|
+
security: operations.GetPendingInvitationSecurity,
|
|
93
|
+
request: operations.GetPendingInvitationRequest,
|
|
94
|
+
options?: SuspenseQueryHookOptions<
|
|
95
|
+
SessionGetPendingInvitationQueryData,
|
|
96
|
+
SessionGetPendingInvitationQueryError
|
|
97
|
+
>,
|
|
98
|
+
): UseSuspenseQueryResult<
|
|
99
|
+
SessionGetPendingInvitationQueryData,
|
|
100
|
+
SessionGetPendingInvitationQueryError
|
|
101
|
+
> {
|
|
102
|
+
const client = useSDKContext();
|
|
103
|
+
return useSuspenseQuery({
|
|
104
|
+
...buildSessionGetPendingInvitationQuery(
|
|
105
|
+
client,
|
|
106
|
+
security,
|
|
107
|
+
request,
|
|
108
|
+
options,
|
|
109
|
+
),
|
|
110
|
+
...options,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function setSessionGetPendingInvitationData(
|
|
115
|
+
client: QueryClient,
|
|
116
|
+
queryKeyBase: [parameters: { xOnBehalfOf?: string | undefined }],
|
|
117
|
+
data: SessionGetPendingInvitationQueryData,
|
|
118
|
+
): SessionGetPendingInvitationQueryData | undefined {
|
|
119
|
+
const key = queryKeySessionGetPendingInvitation(...queryKeyBase);
|
|
120
|
+
|
|
121
|
+
return client.setQueryData<SessionGetPendingInvitationQueryData>(key, data);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function invalidateSessionGetPendingInvitation(
|
|
125
|
+
client: QueryClient,
|
|
126
|
+
queryKeyBase: TupleToPrefixes<
|
|
127
|
+
[parameters: { xOnBehalfOf?: string | undefined }]
|
|
128
|
+
>,
|
|
129
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
130
|
+
): Promise<void> {
|
|
131
|
+
return client.invalidateQueries({
|
|
132
|
+
...filters,
|
|
133
|
+
queryKey: [
|
|
134
|
+
"@meetkai/mka1",
|
|
135
|
+
"Session",
|
|
136
|
+
"getPendingInvitation",
|
|
137
|
+
...queryKeyBase,
|
|
138
|
+
],
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function invalidateAllSessionGetPendingInvitation(
|
|
143
|
+
client: QueryClient,
|
|
144
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
145
|
+
): Promise<void> {
|
|
146
|
+
return client.invalidateQueries({
|
|
147
|
+
...filters,
|
|
148
|
+
queryKey: ["@meetkai/mka1", "Session", "getPendingInvitation"],
|
|
149
|
+
});
|
|
150
|
+
}
|
package/src/sdk/session.ts
CHANGED
|
@@ -3,11 +3,31 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { sessionExchangeSessionToken } from "../funcs/sessionExchangeSessionToken.js";
|
|
6
|
+
import { sessionGetPendingInvitation } from "../funcs/sessionGetPendingInvitation.js";
|
|
6
7
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
7
8
|
import * as operations from "../models/operations/index.js";
|
|
8
9
|
import { unwrapAsync } from "../types/fp.js";
|
|
9
10
|
|
|
10
11
|
export class Session extends ClientSDK {
|
|
12
|
+
/**
|
|
13
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Requires a session with a verified email. Returns a pending, unexpired organization invitation first, otherwise an unclaimed, unexpired cluster invitation bound to that email. Open cluster invitations are never returned. Does not accept or modify the invitation.
|
|
17
|
+
*/
|
|
18
|
+
async getPendingInvitation(
|
|
19
|
+
security: operations.GetPendingInvitationSecurity,
|
|
20
|
+
request: operations.GetPendingInvitationRequest,
|
|
21
|
+
options?: RequestOptions,
|
|
22
|
+
): Promise<operations.GetPendingInvitationResponseBody> {
|
|
23
|
+
return unwrapAsync(sessionGetPendingInvitation(
|
|
24
|
+
this,
|
|
25
|
+
security,
|
|
26
|
+
request,
|
|
27
|
+
options,
|
|
28
|
+
));
|
|
29
|
+
}
|
|
30
|
+
|
|
11
31
|
/**
|
|
12
32
|
* Exchange a live session for a delegated access token
|
|
13
33
|
*
|