@meetkai/mka1 0.54.30 → 0.54.32
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 +147 -10
- package/bin/mcp-server.js.map +12 -10
- 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 +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +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 +10 -0
- package/dist/commonjs/models/operations/getmodel.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmodel.js +8 -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 +10 -0
- package/dist/commonjs/models/operations/listmodels.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmodels.js +8 -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 +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +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 +10 -0
- package/dist/esm/models/operations/getmodel.d.ts.map +1 -1
- package/dist/esm/models/operations/getmodel.js +8 -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 +10 -0
- package/dist/esm/models/operations/listmodels.d.ts.map +1 -1
- package/dist/esm/models/operations/listmodels.js +8 -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 +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/getpendinginvitation.ts +128 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/getmodel.ts +18 -0
- package/src/models/operations/getpendinginvitation.ts +308 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listmodels.ts +18 -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,35 @@
|
|
|
1
|
+
import { InvalidateQueryFilters, QueryClient, UseQueryResult, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
2
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
3
|
+
import * as errors from "../models/errors/index.js";
|
|
4
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
5
|
+
import { SDKError } from "../models/errors/sdkerror.js";
|
|
6
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
7
|
+
import * as operations from "../models/operations/index.js";
|
|
8
|
+
import { QueryHookOptions, SuspenseQueryHookOptions, TupleToPrefixes } from "./_types.js";
|
|
9
|
+
import { buildSessionGetPendingInvitationQuery, prefetchSessionGetPendingInvitation, queryKeySessionGetPendingInvitation, SessionGetPendingInvitationQueryData } from "./sessionGetPendingInvitation.core.js";
|
|
10
|
+
export { buildSessionGetPendingInvitationQuery, prefetchSessionGetPendingInvitation, queryKeySessionGetPendingInvitation, type SessionGetPendingInvitationQueryData, };
|
|
11
|
+
export type SessionGetPendingInvitationQueryError = errors.GetPendingInvitationResponseBody | errors.GetPendingInvitationSessionResponseBody | SDKError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError;
|
|
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
|
+
export declare function useSessionGetPendingInvitation(security: operations.GetPendingInvitationSecurity, request: operations.GetPendingInvitationRequest, options?: QueryHookOptions<SessionGetPendingInvitationQueryData, SessionGetPendingInvitationQueryError>): UseQueryResult<SessionGetPendingInvitationQueryData, SessionGetPendingInvitationQueryError>;
|
|
19
|
+
/**
|
|
20
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* 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.
|
|
24
|
+
*/
|
|
25
|
+
export declare function useSessionGetPendingInvitationSuspense(security: operations.GetPendingInvitationSecurity, request: operations.GetPendingInvitationRequest, options?: SuspenseQueryHookOptions<SessionGetPendingInvitationQueryData, SessionGetPendingInvitationQueryError>): UseSuspenseQueryResult<SessionGetPendingInvitationQueryData, SessionGetPendingInvitationQueryError>;
|
|
26
|
+
export declare function setSessionGetPendingInvitationData(client: QueryClient, queryKeyBase: [parameters: {
|
|
27
|
+
xOnBehalfOf?: string | undefined;
|
|
28
|
+
}], data: SessionGetPendingInvitationQueryData): SessionGetPendingInvitationQueryData | undefined;
|
|
29
|
+
export declare function invalidateSessionGetPendingInvitation(client: QueryClient, queryKeyBase: TupleToPrefixes<[
|
|
30
|
+
parameters: {
|
|
31
|
+
xOnBehalfOf?: string | undefined;
|
|
32
|
+
}
|
|
33
|
+
]>, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
34
|
+
export declare function invalidateAllSessionGetPendingInvitation(client: QueryClient, filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">): Promise<void>;
|
|
35
|
+
//# sourceMappingURL=sessionGetPendingInvitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionGetPendingInvitation.d.ts","sourceRoot":"","sources":["../../../src/react-query/sessionGetPendingInvitation.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,sBAAsB,EACtB,WAAW,EAEX,cAAc,EAEd,sBAAsB,EACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAE5D,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,eAAe,EAChB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,EACnC,oCAAoC,EACrC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,EACnC,KAAK,oCAAoC,GAC1C,CAAC;AAEF,MAAM,MAAM,qCAAqC,GAC7C,MAAM,CAAC,gCAAgC,GACvC,MAAM,CAAC,uCAAuC,GAC9C,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,QAAQ,EAAE,UAAU,CAAC,4BAA4B,EACjD,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,gBAAgB,CACxB,oCAAoC,EACpC,qCAAqC,CACtC,GACA,cAAc,CACf,oCAAoC,EACpC,qCAAqC,CACtC,CAWA;AAED;;;;;GAKG;AACH,wBAAgB,sCAAsC,CACpD,QAAQ,EAAE,UAAU,CAAC,4BAA4B,EACjD,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,wBAAwB,CAChC,oCAAoC,EACpC,qCAAqC,CACtC,GACA,sBAAsB,CACvB,oCAAoC,EACpC,qCAAqC,CACtC,CAWA;AAED,wBAAgB,kCAAkC,CAChD,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,CAAC,UAAU,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAC,EAChE,IAAI,EAAE,oCAAoC,GACzC,oCAAoC,GAAG,SAAS,CAIlD;AAED,wBAAgB,qCAAqC,CACnD,MAAM,EAAE,WAAW,EACnB,YAAY,EAAE,eAAe,CAC3B;IAAC,UAAU,EAAE;QAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE;CAAC,CACnD,EACD,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAUf;AAED,wBAAgB,wCAAwC,CACtD,MAAM,EAAE,WAAW,EACnB,OAAO,CAAC,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC,GACzE,OAAO,CAAC,IAAI,CAAC,CAKf"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import { useQuery, useSuspenseQuery, } from "@tanstack/react-query";
|
|
5
|
+
import { useSDKContext } from "./_context.js";
|
|
6
|
+
import { buildSessionGetPendingInvitationQuery, prefetchSessionGetPendingInvitation, queryKeySessionGetPendingInvitation, } from "./sessionGetPendingInvitation.core.js";
|
|
7
|
+
export { buildSessionGetPendingInvitationQuery, prefetchSessionGetPendingInvitation, queryKeySessionGetPendingInvitation, };
|
|
8
|
+
/**
|
|
9
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* 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.
|
|
13
|
+
*/
|
|
14
|
+
export function useSessionGetPendingInvitation(security, request, options) {
|
|
15
|
+
const client = useSDKContext();
|
|
16
|
+
return useQuery({
|
|
17
|
+
...buildSessionGetPendingInvitationQuery(client, security, request, options),
|
|
18
|
+
...options,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* 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.
|
|
26
|
+
*/
|
|
27
|
+
export function useSessionGetPendingInvitationSuspense(security, request, options) {
|
|
28
|
+
const client = useSDKContext();
|
|
29
|
+
return useSuspenseQuery({
|
|
30
|
+
...buildSessionGetPendingInvitationQuery(client, security, request, options),
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
export function setSessionGetPendingInvitationData(client, queryKeyBase, data) {
|
|
35
|
+
const key = queryKeySessionGetPendingInvitation(...queryKeyBase);
|
|
36
|
+
return client.setQueryData(key, data);
|
|
37
|
+
}
|
|
38
|
+
export function invalidateSessionGetPendingInvitation(client, queryKeyBase, filters) {
|
|
39
|
+
return client.invalidateQueries({
|
|
40
|
+
...filters,
|
|
41
|
+
queryKey: [
|
|
42
|
+
"@meetkai/mka1",
|
|
43
|
+
"Session",
|
|
44
|
+
"getPendingInvitation",
|
|
45
|
+
...queryKeyBase,
|
|
46
|
+
],
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
export function invalidateAllSessionGetPendingInvitation(client, filters) {
|
|
50
|
+
return client.invalidateQueries({
|
|
51
|
+
...filters,
|
|
52
|
+
queryKey: ["@meetkai/mka1", "Session", "getPendingInvitation"],
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=sessionGetPendingInvitation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessionGetPendingInvitation.js","sourceRoot":"","sources":["../../../src/react-query/sessionGetPendingInvitation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAGL,QAAQ,EAER,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC;AAa/B,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAM9C,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,GAEpC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,qCAAqC,EACrC,mCAAmC,EACnC,mCAAmC,GAEpC,CAAC;AAcF;;;;;GAKG;AACH,MAAM,UAAU,8BAA8B,CAC5C,QAAiD,EACjD,OAA+C,EAC/C,OAGC;IAKD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,QAAQ,CAAC;QACd,GAAG,qCAAqC,CACtC,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sCAAsC,CACpD,QAAiD,EACjD,OAA+C,EAC/C,OAGC;IAKD,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,OAAO,gBAAgB,CAAC;QACtB,GAAG,qCAAqC,CACtC,MAAM,EACN,QAAQ,EACR,OAAO,EACP,OAAO,CACR;QACD,GAAG,OAAO;KACX,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,MAAmB,EACnB,YAAgE,EAChE,IAA0C;IAE1C,MAAM,GAAG,GAAG,mCAAmC,CAAC,GAAG,YAAY,CAAC,CAAC;IAEjE,OAAO,MAAM,CAAC,YAAY,CAAuC,GAAG,EAAE,IAAI,CAAC,CAAC;AAC9E,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,MAAmB,EACnB,YAEC,EACD,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE;YACR,eAAe;YACf,SAAS;YACT,sBAAsB;YACtB,GAAG,YAAY;SAChB;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,UAAU,wCAAwC,CACtD,MAAmB,EACnB,OAA0E;IAE1E,OAAO,MAAM,CAAC,iBAAiB,CAAC;QAC9B,GAAG,OAAO;QACV,QAAQ,EAAE,CAAC,eAAe,EAAE,SAAS,EAAE,sBAAsB,CAAC;KAC/D,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
3
|
export declare class Session extends ClientSDK {
|
|
4
|
+
/**
|
|
5
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* 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.
|
|
9
|
+
*/
|
|
10
|
+
getPendingInvitation(security: operations.GetPendingInvitationSecurity, request: operations.GetPendingInvitationRequest, options?: RequestOptions): Promise<operations.GetPendingInvitationResponseBody>;
|
|
4
11
|
/**
|
|
5
12
|
* Exchange a live session for a delegated access token
|
|
6
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/sdk/session.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../../src/sdk/session.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACG,oBAAoB,CACxB,QAAQ,EAAE,UAAU,CAAC,4BAA4B,EACjD,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,gCAAgC,CAAC;IASvD;;;;;OAKG;IACG,oBAAoB,CACxB,QAAQ,EAAE,UAAU,CAAC,4BAA4B,EACjD,OAAO,EAAE,UAAU,CAAC,2BAA2B,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,4BAA4B,CAAC;CAQpD"}
|
package/dist/esm/sdk/session.js
CHANGED
|
@@ -2,9 +2,19 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
import { sessionExchangeSessionToken } from "../funcs/sessionExchangeSessionToken.js";
|
|
5
|
+
import { sessionGetPendingInvitation } from "../funcs/sessionGetPendingInvitation.js";
|
|
5
6
|
import { ClientSDK } from "../lib/sdks.js";
|
|
6
7
|
import { unwrapAsync } from "../types/fp.js";
|
|
7
8
|
export class Session extends ClientSDK {
|
|
9
|
+
/**
|
|
10
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* 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.
|
|
14
|
+
*/
|
|
15
|
+
async getPendingInvitation(security, request, options) {
|
|
16
|
+
return unwrapAsync(sessionGetPendingInvitation(this, security, request, options));
|
|
17
|
+
}
|
|
8
18
|
/**
|
|
9
19
|
* Exchange a live session for a delegated access token
|
|
10
20
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/sdk/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,QAAiD,EACjD,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../../src/sdk/session.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,OAAQ,SAAQ,SAAS;IACpC;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,QAAiD,EACjD,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,oBAAoB,CACxB,QAAiD,EACjD,OAA+C,EAC/C,OAAwB;QAExB,OAAO,WAAW,CAAC,2BAA2B,CAC5C,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { SDKCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { safeParse } from "../lib/schemas.js";
|
|
11
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
12
|
+
import { resolveSecurity } from "../lib/security.js";
|
|
13
|
+
import { pathToFunc } from "../lib/url.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 { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Find an unfinished invitation for the signed-in recipient
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
export function sessionGetPendingInvitation(
|
|
36
|
+
client: SDKCore,
|
|
37
|
+
security: operations.GetPendingInvitationSecurity,
|
|
38
|
+
request: operations.GetPendingInvitationRequest,
|
|
39
|
+
options?: RequestOptions,
|
|
40
|
+
): APIPromise<
|
|
41
|
+
Result<
|
|
42
|
+
operations.GetPendingInvitationResponseBody,
|
|
43
|
+
| errors.GetPendingInvitationResponseBody
|
|
44
|
+
| errors.GetPendingInvitationSessionResponseBody
|
|
45
|
+
| SDKError
|
|
46
|
+
| ResponseValidationError
|
|
47
|
+
| ConnectionError
|
|
48
|
+
| RequestAbortedError
|
|
49
|
+
| RequestTimeoutError
|
|
50
|
+
| InvalidRequestError
|
|
51
|
+
| UnexpectedClientError
|
|
52
|
+
| SDKValidationError
|
|
53
|
+
>
|
|
54
|
+
> {
|
|
55
|
+
return new APIPromise($do(
|
|
56
|
+
client,
|
|
57
|
+
security,
|
|
58
|
+
request,
|
|
59
|
+
options,
|
|
60
|
+
));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
async function $do(
|
|
64
|
+
client: SDKCore,
|
|
65
|
+
security: operations.GetPendingInvitationSecurity,
|
|
66
|
+
request: operations.GetPendingInvitationRequest,
|
|
67
|
+
options?: RequestOptions,
|
|
68
|
+
): Promise<
|
|
69
|
+
[
|
|
70
|
+
Result<
|
|
71
|
+
operations.GetPendingInvitationResponseBody,
|
|
72
|
+
| errors.GetPendingInvitationResponseBody
|
|
73
|
+
| errors.GetPendingInvitationSessionResponseBody
|
|
74
|
+
| SDKError
|
|
75
|
+
| ResponseValidationError
|
|
76
|
+
| ConnectionError
|
|
77
|
+
| RequestAbortedError
|
|
78
|
+
| RequestTimeoutError
|
|
79
|
+
| InvalidRequestError
|
|
80
|
+
| UnexpectedClientError
|
|
81
|
+
| SDKValidationError
|
|
82
|
+
>,
|
|
83
|
+
APICall,
|
|
84
|
+
]
|
|
85
|
+
> {
|
|
86
|
+
const parsed = safeParse(
|
|
87
|
+
request,
|
|
88
|
+
(value) =>
|
|
89
|
+
operations.GetPendingInvitationRequest$outboundSchema.parse(value),
|
|
90
|
+
"Input validation failed",
|
|
91
|
+
);
|
|
92
|
+
if (!parsed.ok) {
|
|
93
|
+
return [parsed, { status: "invalid" }];
|
|
94
|
+
}
|
|
95
|
+
const payload = parsed.value;
|
|
96
|
+
const body = null;
|
|
97
|
+
|
|
98
|
+
const path = pathToFunc("/api/v1/authentication/pending-invitation")();
|
|
99
|
+
|
|
100
|
+
const headers = new Headers(compactMap({
|
|
101
|
+
Accept: "application/json",
|
|
102
|
+
"X-On-Behalf-Of": encodeSimple(
|
|
103
|
+
"X-On-Behalf-Of",
|
|
104
|
+
payload["X-On-Behalf-Of"],
|
|
105
|
+
{ explode: false, charEncoding: "none" },
|
|
106
|
+
),
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
const requestSecurity = resolveSecurity(
|
|
110
|
+
[
|
|
111
|
+
{
|
|
112
|
+
fieldName: "__Secure-mka1-auth-v2.session_token",
|
|
113
|
+
type: "apiKey:cookie",
|
|
114
|
+
value: security?.sessionCookie,
|
|
115
|
+
},
|
|
116
|
+
],
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
const context = {
|
|
120
|
+
options: client._options,
|
|
121
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
122
|
+
operationID: "getPendingInvitation",
|
|
123
|
+
oAuth2Scopes: null,
|
|
124
|
+
|
|
125
|
+
resolvedSecurity: requestSecurity,
|
|
126
|
+
|
|
127
|
+
securitySource: security,
|
|
128
|
+
retryConfig: options?.retries
|
|
129
|
+
|| client._options.retryConfig
|
|
130
|
+
|| {
|
|
131
|
+
strategy: "backoff",
|
|
132
|
+
backoff: {
|
|
133
|
+
initialInterval: 500,
|
|
134
|
+
maxInterval: 5000,
|
|
135
|
+
exponent: 1.5,
|
|
136
|
+
maxElapsedTime: 15000,
|
|
137
|
+
},
|
|
138
|
+
retryConnectionErrors: true,
|
|
139
|
+
}
|
|
140
|
+
|| { strategy: "none" },
|
|
141
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
const requestRes = client._createRequest(context, {
|
|
145
|
+
security: requestSecurity,
|
|
146
|
+
method: "GET",
|
|
147
|
+
baseURL: options?.serverURL,
|
|
148
|
+
path: path,
|
|
149
|
+
headers: headers,
|
|
150
|
+
body: body,
|
|
151
|
+
userAgent: client._options.userAgent,
|
|
152
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
153
|
+
}, options);
|
|
154
|
+
if (!requestRes.ok) {
|
|
155
|
+
return [requestRes, { status: "invalid" }];
|
|
156
|
+
}
|
|
157
|
+
const req = requestRes.value;
|
|
158
|
+
|
|
159
|
+
const doResult = await client._do(req, {
|
|
160
|
+
context,
|
|
161
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
162
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
163
|
+
retryConfig: context.retryConfig,
|
|
164
|
+
retryCodes: context.retryCodes,
|
|
165
|
+
});
|
|
166
|
+
if (!doResult.ok) {
|
|
167
|
+
return [doResult, { status: "request-error", request: req }];
|
|
168
|
+
}
|
|
169
|
+
const response = doResult.value;
|
|
170
|
+
|
|
171
|
+
const responseFields = {
|
|
172
|
+
HttpMeta: { Response: response, Request: req },
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
const [result] = await M.match<
|
|
176
|
+
operations.GetPendingInvitationResponseBody,
|
|
177
|
+
| errors.GetPendingInvitationResponseBody
|
|
178
|
+
| errors.GetPendingInvitationSessionResponseBody
|
|
179
|
+
| SDKError
|
|
180
|
+
| ResponseValidationError
|
|
181
|
+
| ConnectionError
|
|
182
|
+
| RequestAbortedError
|
|
183
|
+
| RequestTimeoutError
|
|
184
|
+
| InvalidRequestError
|
|
185
|
+
| UnexpectedClientError
|
|
186
|
+
| SDKValidationError
|
|
187
|
+
>(
|
|
188
|
+
M.json(200, operations.GetPendingInvitationResponseBody$inboundSchema),
|
|
189
|
+
M.jsonErr(401, errors.GetPendingInvitationResponseBody$inboundSchema),
|
|
190
|
+
M.jsonErr(
|
|
191
|
+
403,
|
|
192
|
+
errors.GetPendingInvitationSessionResponseBody$inboundSchema,
|
|
193
|
+
),
|
|
194
|
+
M.fail("4XX"),
|
|
195
|
+
M.fail("5XX"),
|
|
196
|
+
)(response, req, { extraFields: responseFields });
|
|
197
|
+
if (!result.ok) {
|
|
198
|
+
return [result, { status: "complete", request: req, response }];
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
return [result, { status: "complete", request: req, response }];
|
|
202
|
+
}
|
package/src/lib/config.ts
CHANGED
|
@@ -65,7 +65,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
65
65
|
export const SDK_METADATA = {
|
|
66
66
|
language: "typescript",
|
|
67
67
|
openapiDocVersion: "1.1.0",
|
|
68
|
-
sdkVersion: "0.54.
|
|
69
|
-
genVersion: "2.
|
|
70
|
-
userAgent: "speakeasy-sdk/typescript 0.54.
|
|
68
|
+
sdkVersion: "0.54.32",
|
|
69
|
+
genVersion: "2.937.18",
|
|
70
|
+
userAgent: "speakeasy-sdk/typescript 0.54.32 2.937.18 1.1.0 @meetkai/mka1",
|
|
71
71
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -0,0 +1,128 @@
|
|
|
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
|
+
* Forbidden
|
|
10
|
+
*/
|
|
11
|
+
export type GetPendingInvitationSessionResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Forbidden
|
|
17
|
+
*/
|
|
18
|
+
export class GetPendingInvitationSessionResponseBody extends SDKError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: GetPendingInvitationSessionResponseBodyData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: GetPendingInvitationSessionResponseBodyData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
27
|
+
super(message, httpMeta);
|
|
28
|
+
this.data$ = err;
|
|
29
|
+
|
|
30
|
+
this.name = "GetPendingInvitationSessionResponseBody";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Unauthorized
|
|
36
|
+
*/
|
|
37
|
+
export type GetPendingInvitationResponseBodyData = {
|
|
38
|
+
message: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Unauthorized
|
|
43
|
+
*/
|
|
44
|
+
export class GetPendingInvitationResponseBody extends SDKError {
|
|
45
|
+
/** The original data that was passed to this error instance. */
|
|
46
|
+
data$: GetPendingInvitationResponseBodyData;
|
|
47
|
+
|
|
48
|
+
constructor(
|
|
49
|
+
err: GetPendingInvitationResponseBodyData,
|
|
50
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
51
|
+
) {
|
|
52
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
53
|
+
super(message, httpMeta);
|
|
54
|
+
this.data$ = err;
|
|
55
|
+
|
|
56
|
+
this.name = "GetPendingInvitationResponseBody";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const GetPendingInvitationSessionResponseBody$inboundSchema: z.ZodType<
|
|
62
|
+
GetPendingInvitationSessionResponseBody,
|
|
63
|
+
z.ZodTypeDef,
|
|
64
|
+
unknown
|
|
65
|
+
> = z.object({
|
|
66
|
+
message: z.string(),
|
|
67
|
+
request$: z.instanceof(Request),
|
|
68
|
+
response$: z.instanceof(Response),
|
|
69
|
+
body$: z.string(),
|
|
70
|
+
})
|
|
71
|
+
.transform((v) => {
|
|
72
|
+
return new GetPendingInvitationSessionResponseBody(v, {
|
|
73
|
+
request: v.request$,
|
|
74
|
+
response: v.response$,
|
|
75
|
+
body: v.body$,
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export type GetPendingInvitationSessionResponseBody$Outbound = {
|
|
81
|
+
message: string;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const GetPendingInvitationSessionResponseBody$outboundSchema: z.ZodType<
|
|
86
|
+
GetPendingInvitationSessionResponseBody$Outbound,
|
|
87
|
+
z.ZodTypeDef,
|
|
88
|
+
GetPendingInvitationSessionResponseBody
|
|
89
|
+
> = z.instanceof(GetPendingInvitationSessionResponseBody)
|
|
90
|
+
.transform(v => v.data$)
|
|
91
|
+
.pipe(z.object({
|
|
92
|
+
message: z.string(),
|
|
93
|
+
}));
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export const GetPendingInvitationResponseBody$inboundSchema: z.ZodType<
|
|
97
|
+
GetPendingInvitationResponseBody,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({
|
|
101
|
+
message: z.string(),
|
|
102
|
+
request$: z.instanceof(Request),
|
|
103
|
+
response$: z.instanceof(Response),
|
|
104
|
+
body$: z.string(),
|
|
105
|
+
})
|
|
106
|
+
.transform((v) => {
|
|
107
|
+
return new GetPendingInvitationResponseBody(v, {
|
|
108
|
+
request: v.request$,
|
|
109
|
+
response: v.response$,
|
|
110
|
+
body: v.body$,
|
|
111
|
+
});
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export type GetPendingInvitationResponseBody$Outbound = {
|
|
116
|
+
message: string;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
/** @internal */
|
|
120
|
+
export const GetPendingInvitationResponseBody$outboundSchema: z.ZodType<
|
|
121
|
+
GetPendingInvitationResponseBody$Outbound,
|
|
122
|
+
z.ZodTypeDef,
|
|
123
|
+
GetPendingInvitationResponseBody
|
|
124
|
+
> = z.instanceof(GetPendingInvitationResponseBody)
|
|
125
|
+
.transform(v => v.data$)
|
|
126
|
+
.pipe(z.object({
|
|
127
|
+
message: z.string(),
|
|
128
|
+
}));
|
|
@@ -23,6 +23,7 @@ export * from "./getjwtfromkey.js";
|
|
|
23
23
|
export * from "./getorgbyid.js";
|
|
24
24
|
export * from "./getorgquota.js";
|
|
25
25
|
export * from "./getorgratelimit.js";
|
|
26
|
+
export * from "./getpendinginvitation.js";
|
|
26
27
|
export * from "./getserviceaccount.js";
|
|
27
28
|
export * from "./getteam.js";
|
|
28
29
|
export * from "./httpclienterrors.js";
|
|
@@ -49,6 +49,14 @@ export type GetModelResponseBody = {
|
|
|
49
49
|
created: number;
|
|
50
50
|
ownedBy: string;
|
|
51
51
|
modelType: ModelType;
|
|
52
|
+
/**
|
|
53
|
+
* Modalities this model accepts as input, mirroring the registry's `capabilities.modalities.input` (e.g. `["text", "image"]`). Clients use it to decide whether an attachment — an image, audio clip, or video — can be sent to this model at all.
|
|
54
|
+
*/
|
|
55
|
+
inputModalities: Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* 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.
|
|
58
|
+
*/
|
|
59
|
+
outputModalities: Array<string>;
|
|
52
60
|
/**
|
|
53
61
|
* Curated public sampling capabilities for this model.
|
|
54
62
|
*/
|
|
@@ -171,11 +179,15 @@ export const GetModelResponseBody$inboundSchema: z.ZodType<
|
|
|
171
179
|
created: z.number().int(),
|
|
172
180
|
owned_by: z.string(),
|
|
173
181
|
model_type: ModelType$inboundSchema,
|
|
182
|
+
input_modalities: z.array(z.string()),
|
|
183
|
+
output_modalities: z.array(z.string()),
|
|
174
184
|
capabilities: z.lazy(() => Capabilities$inboundSchema),
|
|
175
185
|
}).transform((v) => {
|
|
176
186
|
return remap$(v, {
|
|
177
187
|
"owned_by": "ownedBy",
|
|
178
188
|
"model_type": "modelType",
|
|
189
|
+
"input_modalities": "inputModalities",
|
|
190
|
+
"output_modalities": "outputModalities",
|
|
179
191
|
});
|
|
180
192
|
});
|
|
181
193
|
/** @internal */
|
|
@@ -185,6 +197,8 @@ export type GetModelResponseBody$Outbound = {
|
|
|
185
197
|
created: number;
|
|
186
198
|
owned_by: string;
|
|
187
199
|
model_type: string;
|
|
200
|
+
input_modalities: Array<string>;
|
|
201
|
+
output_modalities: Array<string>;
|
|
188
202
|
capabilities: Capabilities$Outbound;
|
|
189
203
|
};
|
|
190
204
|
|
|
@@ -199,11 +213,15 @@ export const GetModelResponseBody$outboundSchema: z.ZodType<
|
|
|
199
213
|
created: z.number().int(),
|
|
200
214
|
ownedBy: z.string(),
|
|
201
215
|
modelType: ModelType$outboundSchema,
|
|
216
|
+
inputModalities: z.array(z.string()),
|
|
217
|
+
outputModalities: z.array(z.string()),
|
|
202
218
|
capabilities: z.lazy(() => Capabilities$outboundSchema),
|
|
203
219
|
}).transform((v) => {
|
|
204
220
|
return remap$(v, {
|
|
205
221
|
ownedBy: "owned_by",
|
|
206
222
|
modelType: "model_type",
|
|
223
|
+
inputModalities: "input_modalities",
|
|
224
|
+
outputModalities: "output_modalities",
|
|
207
225
|
});
|
|
208
226
|
});
|
|
209
227
|
|