@gleanwork/api-client 0.17.1 → 0.17.2
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 +6 -0
- package/dist/commonjs/__tests__/summarize.test.js +4 -3
- package/dist/commonjs/__tests__/summarize.test.js.map +1 -1
- package/dist/commonjs/__tests__/tools.test.js +22 -0
- package/dist/commonjs/__tests__/tools.test.js.map +1 -1
- package/dist/commonjs/funcs/clientToolsAuthorizeToolServer.d.ts +23 -0
- package/dist/commonjs/funcs/clientToolsAuthorizeToolServer.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientToolsAuthorizeToolServer.js +135 -0
- package/dist/commonjs/funcs/clientToolsAuthorizeToolServer.js.map +1 -0
- package/dist/commonjs/funcs/clientToolsRetrieveToolServerAuthStatus.d.ts +18 -0
- package/dist/commonjs/funcs/clientToolsRetrieveToolServerAuthStatus.d.ts.map +1 -0
- package/dist/commonjs/funcs/clientToolsRetrieveToolServerAuthStatus.js +126 -0
- package/dist/commonjs/funcs/clientToolsRetrieveToolServerAuthStatus.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/authorizetoolserverrequest.d.ts +18 -0
- package/dist/commonjs/models/components/authorizetoolserverrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/authorizetoolserverrequest.js +50 -0
- package/dist/commonjs/models/components/authorizetoolserverrequest.js.map +1 -0
- package/dist/commonjs/models/components/authorizetoolserverresponse.d.ts +16 -0
- package/dist/commonjs/models/components/authorizetoolserverresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/authorizetoolserverresponse.js +51 -0
- package/dist/commonjs/models/components/authorizetoolserverresponse.js.map +1 -0
- package/dist/commonjs/models/components/feedentry.d.ts +1 -0
- package/dist/commonjs/models/components/feedentry.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedentry.js +1 -0
- package/dist/commonjs/models/components/feedentry.js.map +1 -1
- package/dist/commonjs/models/components/feedrequest.d.ts +1 -0
- package/dist/commonjs/models/components/feedrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedrequest.js +1 -0
- package/dist/commonjs/models/components/feedrequest.js.map +1 -1
- package/dist/commonjs/models/components/feedresult.d.ts +1 -0
- package/dist/commonjs/models/components/feedresult.d.ts.map +1 -1
- package/dist/commonjs/models/components/feedresult.js +1 -0
- package/dist/commonjs/models/components/feedresult.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +4 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +4 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/toolserverauthstatus.d.ts +16 -0
- package/dist/commonjs/models/components/toolserverauthstatus.d.ts.map +1 -0
- package/dist/commonjs/models/components/toolserverauthstatus.js +51 -0
- package/dist/commonjs/models/components/toolserverauthstatus.js.map +1 -0
- package/dist/commonjs/models/components/toolserverauthstatusresponse.d.ts +36 -0
- package/dist/commonjs/models/components/toolserverauthstatusresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/toolserverauthstatusresponse.js +57 -0
- package/dist/commonjs/models/components/toolserverauthstatusresponse.js.map +1 -0
- package/dist/commonjs/models/operations/authorizetoolserver.d.ts +18 -0
- package/dist/commonjs/models/operations/authorizetoolserver.d.ts.map +1 -0
- package/dist/commonjs/models/operations/authorizetoolserver.js +57 -0
- package/dist/commonjs/models/operations/authorizetoolserver.js.map +1 -0
- package/dist/commonjs/models/operations/gettoolserverauthstatus.d.ts +15 -0
- package/dist/commonjs/models/operations/gettoolserverauthstatus.d.ts.map +1 -0
- package/dist/commonjs/models/operations/gettoolserverauthstatus.js +50 -0
- package/dist/commonjs/models/operations/gettoolserverauthstatus.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/react-query/clientToolsAuthorizeToolServer.d.ts +35 -0
- package/dist/commonjs/react-query/clientToolsAuthorizeToolServer.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientToolsAuthorizeToolServer.js +54 -0
- package/dist/commonjs/react-query/clientToolsAuthorizeToolServer.js.map +1 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.core.d.ts +12 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.core.js +40 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.core.js.map +1 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.d.ts +29 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.d.ts.map +1 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.js +72 -0
- package/dist/commonjs/react-query/clientToolsRetrieveToolServerAuthStatus.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/sdk/tools.d.ts +21 -0
- package/dist/commonjs/sdk/tools.d.ts.map +1 -1
- package/dist/commonjs/sdk/tools.js +27 -0
- package/dist/commonjs/sdk/tools.js.map +1 -1
- package/dist/esm/__tests__/summarize.test.js +4 -3
- package/dist/esm/__tests__/summarize.test.js.map +1 -1
- package/dist/esm/__tests__/tools.test.js +22 -0
- package/dist/esm/__tests__/tools.test.js.map +1 -1
- package/dist/esm/funcs/clientToolsAuthorizeToolServer.d.ts +23 -0
- package/dist/esm/funcs/clientToolsAuthorizeToolServer.d.ts.map +1 -0
- package/dist/esm/funcs/clientToolsAuthorizeToolServer.js +99 -0
- package/dist/esm/funcs/clientToolsAuthorizeToolServer.js.map +1 -0
- package/dist/esm/funcs/clientToolsRetrieveToolServerAuthStatus.d.ts +18 -0
- package/dist/esm/funcs/clientToolsRetrieveToolServerAuthStatus.d.ts.map +1 -0
- package/dist/esm/funcs/clientToolsRetrieveToolServerAuthStatus.js +90 -0
- package/dist/esm/funcs/clientToolsRetrieveToolServerAuthStatus.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/authorizetoolserverrequest.d.ts +18 -0
- package/dist/esm/models/components/authorizetoolserverrequest.d.ts.map +1 -0
- package/dist/esm/models/components/authorizetoolserverrequest.js +13 -0
- package/dist/esm/models/components/authorizetoolserverrequest.js.map +1 -0
- package/dist/esm/models/components/authorizetoolserverresponse.d.ts +16 -0
- package/dist/esm/models/components/authorizetoolserverresponse.d.ts.map +1 -0
- package/dist/esm/models/components/authorizetoolserverresponse.js +14 -0
- package/dist/esm/models/components/authorizetoolserverresponse.js.map +1 -0
- package/dist/esm/models/components/feedentry.d.ts +1 -0
- package/dist/esm/models/components/feedentry.d.ts.map +1 -1
- package/dist/esm/models/components/feedentry.js +1 -0
- package/dist/esm/models/components/feedentry.js.map +1 -1
- package/dist/esm/models/components/feedrequest.d.ts +1 -0
- package/dist/esm/models/components/feedrequest.d.ts.map +1 -1
- package/dist/esm/models/components/feedrequest.js +1 -0
- package/dist/esm/models/components/feedrequest.js.map +1 -1
- package/dist/esm/models/components/feedresult.d.ts +1 -0
- package/dist/esm/models/components/feedresult.d.ts.map +1 -1
- package/dist/esm/models/components/feedresult.js +1 -0
- package/dist/esm/models/components/feedresult.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +4 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +4 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/toolserverauthstatus.d.ts +16 -0
- package/dist/esm/models/components/toolserverauthstatus.d.ts.map +1 -0
- package/dist/esm/models/components/toolserverauthstatus.js +15 -0
- package/dist/esm/models/components/toolserverauthstatus.js.map +1 -0
- package/dist/esm/models/components/toolserverauthstatusresponse.d.ts +36 -0
- package/dist/esm/models/components/toolserverauthstatusresponse.d.ts.map +1 -0
- package/dist/esm/models/components/toolserverauthstatusresponse.js +20 -0
- package/dist/esm/models/components/toolserverauthstatusresponse.js.map +1 -0
- package/dist/esm/models/operations/authorizetoolserver.d.ts +18 -0
- package/dist/esm/models/operations/authorizetoolserver.d.ts.map +1 -0
- package/dist/esm/models/operations/authorizetoolserver.js +20 -0
- package/dist/esm/models/operations/authorizetoolserver.js.map +1 -0
- package/dist/esm/models/operations/gettoolserverauthstatus.d.ts +15 -0
- package/dist/esm/models/operations/gettoolserverauthstatus.d.ts.map +1 -0
- package/dist/esm/models/operations/gettoolserverauthstatus.js +13 -0
- package/dist/esm/models/operations/gettoolserverauthstatus.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/react-query/clientToolsAuthorizeToolServer.d.ts +35 -0
- package/dist/esm/react-query/clientToolsAuthorizeToolServer.d.ts.map +1 -0
- package/dist/esm/react-query/clientToolsAuthorizeToolServer.js +49 -0
- package/dist/esm/react-query/clientToolsAuthorizeToolServer.js.map +1 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.core.d.ts +12 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.core.d.ts.map +1 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.core.js +35 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.core.js.map +1 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.d.ts +29 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.d.ts.map +1 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.js +62 -0
- package/dist/esm/react-query/clientToolsRetrieveToolServerAuthStatus.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/sdk/tools.d.ts +21 -0
- package/dist/esm/sdk/tools.d.ts.map +1 -1
- package/dist/esm/sdk/tools.js +27 -0
- package/dist/esm/sdk/tools.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/summarize.test.ts +4 -3
- package/src/__tests__/tools.test.ts +28 -0
- package/src/funcs/clientToolsAuthorizeToolServer.ts +189 -0
- package/src/funcs/clientToolsRetrieveToolServerAuthStatus.ts +177 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/authorizetoolserverrequest.ts +38 -0
- package/src/models/components/authorizetoolserverresponse.ts +38 -0
- package/src/models/components/feedentry.ts +1 -0
- package/src/models/components/feedrequest.ts +1 -0
- package/src/models/components/feedresult.ts +1 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/toolserverauthstatus.ts +27 -0
- package/src/models/components/toolserverauthstatusresponse.ts +68 -0
- package/src/models/operations/authorizetoolserver.ts +45 -0
- package/src/models/operations/gettoolserverauthstatus.ts +37 -0
- package/src/models/operations/index.ts +2 -0
- package/src/react-query/clientToolsAuthorizeToolServer.ts +119 -0
- package/src/react-query/clientToolsRetrieveToolServerAuthStatus.core.ts +79 -0
- package/src/react-query/clientToolsRetrieveToolServerAuthStatus.ts +150 -0
- package/src/react-query/index.ts +2 -0
- package/src/sdk/tools.ts +45 -0
|
@@ -40,6 +40,8 @@ export * from "./assistantinsightsresponse.js";
|
|
|
40
40
|
export * from "./authconfig.js";
|
|
41
41
|
export * from "./authorizeactionpackrequest.js";
|
|
42
42
|
export * from "./authorizeactionpackresponse.js";
|
|
43
|
+
export * from "./authorizetoolserverrequest.js";
|
|
44
|
+
export * from "./authorizetoolserverresponse.js";
|
|
43
45
|
export * from "./authstatus.js";
|
|
44
46
|
export * from "./authtoken.js";
|
|
45
47
|
export * from "./autocompleterequest.js";
|
|
@@ -450,6 +452,8 @@ export * from "./toolparameter.js";
|
|
|
450
452
|
export * from "./toolscallparameter.js";
|
|
451
453
|
export * from "./toolscallrequest.js";
|
|
452
454
|
export * from "./toolscallresponse.js";
|
|
455
|
+
export * from "./toolserverauthstatus.js";
|
|
456
|
+
export * from "./toolserverauthstatusresponse.js";
|
|
453
457
|
export * from "./toolsets.js";
|
|
454
458
|
export * from "./toolslistresponse.js";
|
|
455
459
|
export * from "./ugctype.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 071ce1b5ce41
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Authentication status for the calling user.
|
|
12
|
+
*/
|
|
13
|
+
export const ToolServerAuthStatus = {
|
|
14
|
+
AwaitingAuth: "AWAITING_AUTH",
|
|
15
|
+
Authorized: "AUTHORIZED",
|
|
16
|
+
} as const;
|
|
17
|
+
/**
|
|
18
|
+
* Authentication status for the calling user.
|
|
19
|
+
*/
|
|
20
|
+
export type ToolServerAuthStatus = OpenEnum<typeof ToolServerAuthStatus>;
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export const ToolServerAuthStatus$inboundSchema: z.ZodType<
|
|
24
|
+
ToolServerAuthStatus,
|
|
25
|
+
z.ZodTypeDef,
|
|
26
|
+
unknown
|
|
27
|
+
> = openEnums.inboundSchema(ToolServerAuthStatus);
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 9b8d34bb7e2d
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
ActionAuthType,
|
|
12
|
+
ActionAuthType$inboundSchema,
|
|
13
|
+
} from "./actionauthtype.js";
|
|
14
|
+
import {
|
|
15
|
+
ToolServerAuthStatus,
|
|
16
|
+
ToolServerAuthStatus$inboundSchema,
|
|
17
|
+
} from "./toolserverauthstatus.js";
|
|
18
|
+
|
|
19
|
+
export type ToolServerAuthStatusResponse = {
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable name of the tool server.
|
|
22
|
+
*/
|
|
23
|
+
displayName?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Logo URL for the tool server.
|
|
26
|
+
*/
|
|
27
|
+
logoUrl?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Brief description of the tool server.
|
|
30
|
+
*/
|
|
31
|
+
description?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Authentication status for the calling user.
|
|
34
|
+
*/
|
|
35
|
+
authStatus: ToolServerAuthStatus;
|
|
36
|
+
/**
|
|
37
|
+
* Authentication mechanism used by an action pack.
|
|
38
|
+
*
|
|
39
|
+
* @remarks
|
|
40
|
+
* - `AUTH_USER_OAUTH`: Requires per-user OAuth consent to the third-party tool.
|
|
41
|
+
* - `AUTH_ADMIN`: Uses a service-account / admin-owned credential. End users do not authorize individually.
|
|
42
|
+
* - `AUTH_NONE`: Action pack requires no authentication.
|
|
43
|
+
*/
|
|
44
|
+
authType: ActionAuthType;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const ToolServerAuthStatusResponse$inboundSchema: z.ZodType<
|
|
49
|
+
ToolServerAuthStatusResponse,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.object({
|
|
53
|
+
displayName: z.string().optional(),
|
|
54
|
+
logoUrl: z.string().optional(),
|
|
55
|
+
description: z.string().optional(),
|
|
56
|
+
authStatus: ToolServerAuthStatus$inboundSchema,
|
|
57
|
+
authType: ActionAuthType$inboundSchema,
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
export function toolServerAuthStatusResponseFromJSON(
|
|
61
|
+
jsonString: string,
|
|
62
|
+
): SafeParseResult<ToolServerAuthStatusResponse, SDKValidationError> {
|
|
63
|
+
return safeParse(
|
|
64
|
+
jsonString,
|
|
65
|
+
(x) => ToolServerAuthStatusResponse$inboundSchema.parse(JSON.parse(x)),
|
|
66
|
+
`Failed to parse 'ToolServerAuthStatusResponse' from JSON`,
|
|
67
|
+
);
|
|
68
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d7057ee40a5b
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import * as components from "../components/index.js";
|
|
9
|
+
|
|
10
|
+
export type AuthorizeToolServerRequest = {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier of the tool server.
|
|
13
|
+
*/
|
|
14
|
+
serverId: string;
|
|
15
|
+
authorizeToolServerRequest: components.AuthorizeToolServerRequest;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type AuthorizeToolServerRequest$Outbound = {
|
|
20
|
+
serverId: string;
|
|
21
|
+
AuthorizeToolServerRequest: components.AuthorizeToolServerRequest$Outbound;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export const AuthorizeToolServerRequest$outboundSchema: z.ZodType<
|
|
26
|
+
AuthorizeToolServerRequest$Outbound,
|
|
27
|
+
z.ZodTypeDef,
|
|
28
|
+
AuthorizeToolServerRequest
|
|
29
|
+
> = z.object({
|
|
30
|
+
serverId: z.string(),
|
|
31
|
+
authorizeToolServerRequest:
|
|
32
|
+
components.AuthorizeToolServerRequest$outboundSchema,
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
authorizeToolServerRequest: "AuthorizeToolServerRequest",
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function authorizeToolServerRequestToJSON(
|
|
40
|
+
authorizeToolServerRequest: AuthorizeToolServerRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
AuthorizeToolServerRequest$outboundSchema.parse(authorizeToolServerRequest),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: b9399d9292cf
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
|
|
8
|
+
export type GetToolServerAuthStatusRequest = {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier of the tool server.
|
|
11
|
+
*/
|
|
12
|
+
serverId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type GetToolServerAuthStatusRequest$Outbound = {
|
|
17
|
+
serverId: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const GetToolServerAuthStatusRequest$outboundSchema: z.ZodType<
|
|
22
|
+
GetToolServerAuthStatusRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
GetToolServerAuthStatusRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
serverId: z.string(),
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
export function getToolServerAuthStatusRequestToJSON(
|
|
30
|
+
getToolServerAuthStatusRequest: GetToolServerAuthStatusRequest,
|
|
31
|
+
): string {
|
|
32
|
+
return JSON.stringify(
|
|
33
|
+
GetToolServerAuthStatusRequest$outboundSchema.parse(
|
|
34
|
+
getToolServerAuthStatusRequest,
|
|
35
|
+
),
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from "./addcollectionitems.js";
|
|
|
7
7
|
export * from "./addverificationreminder.js";
|
|
8
8
|
export * from "./adminsearch.js";
|
|
9
9
|
export * from "./authorizeactionpack.js";
|
|
10
|
+
export * from "./authorizetoolserver.js";
|
|
10
11
|
export * from "./autocomplete.js";
|
|
11
12
|
export * from "./chat.js";
|
|
12
13
|
export * from "./chatstream.js";
|
|
@@ -58,6 +59,7 @@ export * from "./getreportstatus.js";
|
|
|
58
59
|
export * from "./getrestapiindexcustommetadataschemagroupname.js";
|
|
59
60
|
export * from "./getrestapiv1toolslist.js";
|
|
60
61
|
export * from "./getshortcut.js";
|
|
62
|
+
export * from "./gettoolserverauthstatus.js";
|
|
61
63
|
export * from "./insights.js";
|
|
62
64
|
export * from "./listanswers.js";
|
|
63
65
|
export * from "./listchats.js";
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 6ea6bcf043da
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
MutationKey,
|
|
8
|
+
useMutation,
|
|
9
|
+
UseMutationResult,
|
|
10
|
+
} from "@tanstack/react-query";
|
|
11
|
+
import { GleanCore } from "../core.js";
|
|
12
|
+
import { clientToolsAuthorizeToolServer } from "../funcs/clientToolsAuthorizeToolServer.js";
|
|
13
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
14
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import * as components from "../models/components/index.js";
|
|
16
|
+
import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
|
|
17
|
+
import {
|
|
18
|
+
ConnectionError,
|
|
19
|
+
InvalidRequestError,
|
|
20
|
+
RequestAbortedError,
|
|
21
|
+
RequestTimeoutError,
|
|
22
|
+
UnexpectedClientError,
|
|
23
|
+
} from "../models/errors/httpclienterrors.js";
|
|
24
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
25
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
27
|
+
import { useGleanContext } from "./_context.js";
|
|
28
|
+
import { MutationHookOptions } from "./_types.js";
|
|
29
|
+
|
|
30
|
+
export type ClientToolsAuthorizeToolServerMutationVariables = {
|
|
31
|
+
authorizeToolServerRequest: components.AuthorizeToolServerRequest;
|
|
32
|
+
serverId: string;
|
|
33
|
+
options?: RequestOptions;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type ClientToolsAuthorizeToolServerMutationData =
|
|
37
|
+
components.AuthorizeToolServerResponse;
|
|
38
|
+
|
|
39
|
+
export type ClientToolsAuthorizeToolServerMutationError =
|
|
40
|
+
| GleanBaseError
|
|
41
|
+
| ResponseValidationError
|
|
42
|
+
| ConnectionError
|
|
43
|
+
| RequestAbortedError
|
|
44
|
+
| RequestTimeoutError
|
|
45
|
+
| InvalidRequestError
|
|
46
|
+
| UnexpectedClientError
|
|
47
|
+
| SDKValidationError;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Start the OAuth authorization flow for a tool server.
|
|
51
|
+
*
|
|
52
|
+
* @remarks
|
|
53
|
+
* Initiates the third-party OAuth flow for the specified tool server and returns the
|
|
54
|
+
* authorization URL that the client should navigate the end user to. After the OAuth
|
|
55
|
+
* callback completes, the user's browser is redirected back to `returnUrl` with query
|
|
56
|
+
* parameters indicating the result.
|
|
57
|
+
*
|
|
58
|
+
* `returnUrl` must match the tenant's configured return URL allowlist; otherwise the
|
|
59
|
+
* request is rejected with 400.
|
|
60
|
+
*/
|
|
61
|
+
export function useClientToolsAuthorizeToolServerMutation(
|
|
62
|
+
options?: MutationHookOptions<
|
|
63
|
+
ClientToolsAuthorizeToolServerMutationData,
|
|
64
|
+
ClientToolsAuthorizeToolServerMutationError,
|
|
65
|
+
ClientToolsAuthorizeToolServerMutationVariables
|
|
66
|
+
>,
|
|
67
|
+
): UseMutationResult<
|
|
68
|
+
ClientToolsAuthorizeToolServerMutationData,
|
|
69
|
+
ClientToolsAuthorizeToolServerMutationError,
|
|
70
|
+
ClientToolsAuthorizeToolServerMutationVariables
|
|
71
|
+
> {
|
|
72
|
+
const client = useGleanContext();
|
|
73
|
+
return useMutation({
|
|
74
|
+
...buildClientToolsAuthorizeToolServerMutation(client, options),
|
|
75
|
+
...options,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function mutationKeyClientToolsAuthorizeToolServer(): MutationKey {
|
|
80
|
+
return ["@gleanwork/api-client", "tools", "authorizeToolServer"];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function buildClientToolsAuthorizeToolServerMutation(
|
|
84
|
+
client$: GleanCore,
|
|
85
|
+
hookOptions?: RequestOptions,
|
|
86
|
+
): {
|
|
87
|
+
mutationKey: MutationKey;
|
|
88
|
+
mutationFn: (
|
|
89
|
+
variables: ClientToolsAuthorizeToolServerMutationVariables,
|
|
90
|
+
) => Promise<ClientToolsAuthorizeToolServerMutationData>;
|
|
91
|
+
} {
|
|
92
|
+
return {
|
|
93
|
+
mutationKey: mutationKeyClientToolsAuthorizeToolServer(),
|
|
94
|
+
mutationFn: function clientToolsAuthorizeToolServerMutationFn({
|
|
95
|
+
authorizeToolServerRequest,
|
|
96
|
+
serverId,
|
|
97
|
+
options,
|
|
98
|
+
}): Promise<ClientToolsAuthorizeToolServerMutationData> {
|
|
99
|
+
const mergedOptions = {
|
|
100
|
+
...hookOptions,
|
|
101
|
+
...options,
|
|
102
|
+
fetchOptions: {
|
|
103
|
+
...hookOptions?.fetchOptions,
|
|
104
|
+
...options?.fetchOptions,
|
|
105
|
+
signal: combineSignals(
|
|
106
|
+
hookOptions?.fetchOptions?.signal,
|
|
107
|
+
options?.fetchOptions?.signal,
|
|
108
|
+
),
|
|
109
|
+
},
|
|
110
|
+
};
|
|
111
|
+
return unwrapAsync(clientToolsAuthorizeToolServer(
|
|
112
|
+
client$,
|
|
113
|
+
authorizeToolServerRequest,
|
|
114
|
+
serverId,
|
|
115
|
+
mergedOptions,
|
|
116
|
+
));
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 53a6c8e7c68e
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
QueryClient,
|
|
8
|
+
QueryFunctionContext,
|
|
9
|
+
QueryKey,
|
|
10
|
+
} from "@tanstack/react-query";
|
|
11
|
+
import { GleanCore } from "../core.js";
|
|
12
|
+
import { clientToolsRetrieveToolServerAuthStatus } from "../funcs/clientToolsRetrieveToolServerAuthStatus.js";
|
|
13
|
+
import { combineSignals } from "../lib/primitives.js";
|
|
14
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
15
|
+
import * as components from "../models/components/index.js";
|
|
16
|
+
import { unwrapAsync } from "../types/fp.js";
|
|
17
|
+
export type ClientToolsRetrieveToolServerAuthStatusQueryData =
|
|
18
|
+
components.ToolServerAuthStatusResponse;
|
|
19
|
+
|
|
20
|
+
export function prefetchClientToolsRetrieveToolServerAuthStatus(
|
|
21
|
+
queryClient: QueryClient,
|
|
22
|
+
client$: GleanCore,
|
|
23
|
+
serverId: string,
|
|
24
|
+
options?: RequestOptions,
|
|
25
|
+
): Promise<void> {
|
|
26
|
+
return queryClient.prefetchQuery({
|
|
27
|
+
...buildClientToolsRetrieveToolServerAuthStatusQuery(
|
|
28
|
+
client$,
|
|
29
|
+
serverId,
|
|
30
|
+
options,
|
|
31
|
+
),
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function buildClientToolsRetrieveToolServerAuthStatusQuery(
|
|
36
|
+
client$: GleanCore,
|
|
37
|
+
serverId: string,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): {
|
|
40
|
+
queryKey: QueryKey;
|
|
41
|
+
queryFn: (
|
|
42
|
+
context: QueryFunctionContext,
|
|
43
|
+
) => Promise<ClientToolsRetrieveToolServerAuthStatusQueryData>;
|
|
44
|
+
} {
|
|
45
|
+
return {
|
|
46
|
+
queryKey: queryKeyClientToolsRetrieveToolServerAuthStatus(serverId),
|
|
47
|
+
queryFn: async function clientToolsRetrieveToolServerAuthStatusQueryFn(
|
|
48
|
+
ctx,
|
|
49
|
+
): Promise<ClientToolsRetrieveToolServerAuthStatusQueryData> {
|
|
50
|
+
const sig = combineSignals(
|
|
51
|
+
ctx.signal,
|
|
52
|
+
options?.signal,
|
|
53
|
+
options?.fetchOptions?.signal,
|
|
54
|
+
);
|
|
55
|
+
const mergedOptions = {
|
|
56
|
+
...options?.fetchOptions,
|
|
57
|
+
...options,
|
|
58
|
+
signal: sig,
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return unwrapAsync(clientToolsRetrieveToolServerAuthStatus(
|
|
62
|
+
client$,
|
|
63
|
+
serverId,
|
|
64
|
+
mergedOptions,
|
|
65
|
+
));
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function queryKeyClientToolsRetrieveToolServerAuthStatus(
|
|
71
|
+
serverId: string,
|
|
72
|
+
): QueryKey {
|
|
73
|
+
return [
|
|
74
|
+
"@gleanwork/api-client",
|
|
75
|
+
"tools",
|
|
76
|
+
"retrieveToolServerAuthStatus",
|
|
77
|
+
serverId,
|
|
78
|
+
];
|
|
79
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 961b3d891d21
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
InvalidateQueryFilters,
|
|
8
|
+
QueryClient,
|
|
9
|
+
useQuery,
|
|
10
|
+
UseQueryResult,
|
|
11
|
+
useSuspenseQuery,
|
|
12
|
+
UseSuspenseQueryResult,
|
|
13
|
+
} from "@tanstack/react-query";
|
|
14
|
+
import { GleanBaseError } from "../models/errors/gleanbaseerror.js";
|
|
15
|
+
import {
|
|
16
|
+
ConnectionError,
|
|
17
|
+
InvalidRequestError,
|
|
18
|
+
RequestAbortedError,
|
|
19
|
+
RequestTimeoutError,
|
|
20
|
+
UnexpectedClientError,
|
|
21
|
+
} from "../models/errors/httpclienterrors.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import { useGleanContext } from "./_context.js";
|
|
25
|
+
import {
|
|
26
|
+
QueryHookOptions,
|
|
27
|
+
SuspenseQueryHookOptions,
|
|
28
|
+
TupleToPrefixes,
|
|
29
|
+
} from "./_types.js";
|
|
30
|
+
import {
|
|
31
|
+
buildClientToolsRetrieveToolServerAuthStatusQuery,
|
|
32
|
+
ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
33
|
+
prefetchClientToolsRetrieveToolServerAuthStatus,
|
|
34
|
+
queryKeyClientToolsRetrieveToolServerAuthStatus,
|
|
35
|
+
} from "./clientToolsRetrieveToolServerAuthStatus.core.js";
|
|
36
|
+
export {
|
|
37
|
+
buildClientToolsRetrieveToolServerAuthStatusQuery,
|
|
38
|
+
type ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
39
|
+
prefetchClientToolsRetrieveToolServerAuthStatus,
|
|
40
|
+
queryKeyClientToolsRetrieveToolServerAuthStatus,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
export type ClientToolsRetrieveToolServerAuthStatusQueryError =
|
|
44
|
+
| GleanBaseError
|
|
45
|
+
| ResponseValidationError
|
|
46
|
+
| ConnectionError
|
|
47
|
+
| RequestAbortedError
|
|
48
|
+
| RequestTimeoutError
|
|
49
|
+
| InvalidRequestError
|
|
50
|
+
| UnexpectedClientError
|
|
51
|
+
| SDKValidationError;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get end-user authentication status for a tool server.
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Returns display information and the calling user's current authentication status
|
|
58
|
+
* for the specified tool server.
|
|
59
|
+
*/
|
|
60
|
+
export function useClientToolsRetrieveToolServerAuthStatus(
|
|
61
|
+
serverId: string,
|
|
62
|
+
options?: QueryHookOptions<
|
|
63
|
+
ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
64
|
+
ClientToolsRetrieveToolServerAuthStatusQueryError
|
|
65
|
+
>,
|
|
66
|
+
): UseQueryResult<
|
|
67
|
+
ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
68
|
+
ClientToolsRetrieveToolServerAuthStatusQueryError
|
|
69
|
+
> {
|
|
70
|
+
const client = useGleanContext();
|
|
71
|
+
return useQuery({
|
|
72
|
+
...buildClientToolsRetrieveToolServerAuthStatusQuery(
|
|
73
|
+
client,
|
|
74
|
+
serverId,
|
|
75
|
+
options,
|
|
76
|
+
),
|
|
77
|
+
...options,
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Get end-user authentication status for a tool server.
|
|
83
|
+
*
|
|
84
|
+
* @remarks
|
|
85
|
+
* Returns display information and the calling user's current authentication status
|
|
86
|
+
* for the specified tool server.
|
|
87
|
+
*/
|
|
88
|
+
export function useClientToolsRetrieveToolServerAuthStatusSuspense(
|
|
89
|
+
serverId: string,
|
|
90
|
+
options?: SuspenseQueryHookOptions<
|
|
91
|
+
ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
92
|
+
ClientToolsRetrieveToolServerAuthStatusQueryError
|
|
93
|
+
>,
|
|
94
|
+
): UseSuspenseQueryResult<
|
|
95
|
+
ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
96
|
+
ClientToolsRetrieveToolServerAuthStatusQueryError
|
|
97
|
+
> {
|
|
98
|
+
const client = useGleanContext();
|
|
99
|
+
return useSuspenseQuery({
|
|
100
|
+
...buildClientToolsRetrieveToolServerAuthStatusQuery(
|
|
101
|
+
client,
|
|
102
|
+
serverId,
|
|
103
|
+
options,
|
|
104
|
+
),
|
|
105
|
+
...options,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function setClientToolsRetrieveToolServerAuthStatusData(
|
|
110
|
+
client: QueryClient,
|
|
111
|
+
queryKeyBase: [serverId: string],
|
|
112
|
+
data: ClientToolsRetrieveToolServerAuthStatusQueryData,
|
|
113
|
+
): ClientToolsRetrieveToolServerAuthStatusQueryData | undefined {
|
|
114
|
+
const key = queryKeyClientToolsRetrieveToolServerAuthStatus(...queryKeyBase);
|
|
115
|
+
|
|
116
|
+
return client.setQueryData<ClientToolsRetrieveToolServerAuthStatusQueryData>(
|
|
117
|
+
key,
|
|
118
|
+
data,
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export function invalidateClientToolsRetrieveToolServerAuthStatus(
|
|
123
|
+
client: QueryClient,
|
|
124
|
+
queryKeyBase: TupleToPrefixes<[serverId: string]>,
|
|
125
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
126
|
+
): Promise<void> {
|
|
127
|
+
return client.invalidateQueries({
|
|
128
|
+
...filters,
|
|
129
|
+
queryKey: [
|
|
130
|
+
"@gleanwork/api-client",
|
|
131
|
+
"tools",
|
|
132
|
+
"retrieveToolServerAuthStatus",
|
|
133
|
+
...queryKeyBase,
|
|
134
|
+
],
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function invalidateAllClientToolsRetrieveToolServerAuthStatus(
|
|
139
|
+
client: QueryClient,
|
|
140
|
+
filters?: Omit<InvalidateQueryFilters, "queryKey" | "predicate" | "exact">,
|
|
141
|
+
): Promise<void> {
|
|
142
|
+
return client.invalidateQueries({
|
|
143
|
+
...filters,
|
|
144
|
+
queryKey: [
|
|
145
|
+
"@gleanwork/api-client",
|
|
146
|
+
"tools",
|
|
147
|
+
"retrieveToolServerAuthStatus",
|
|
148
|
+
],
|
|
149
|
+
});
|
|
150
|
+
}
|
package/src/react-query/index.ts
CHANGED
|
@@ -91,8 +91,10 @@ export * from "./clientShortcutsList.js";
|
|
|
91
91
|
export * from "./clientShortcutsRetrieve.js";
|
|
92
92
|
export * from "./clientShortcutsUpdate.js";
|
|
93
93
|
export * from "./clientToolsAuthorizeActionPack.js";
|
|
94
|
+
export * from "./clientToolsAuthorizeToolServer.js";
|
|
94
95
|
export * from "./clientToolsList.js";
|
|
95
96
|
export * from "./clientToolsRetrieveActionPackAuthStatus.js";
|
|
97
|
+
export * from "./clientToolsRetrieveToolServerAuthStatus.js";
|
|
96
98
|
export * from "./clientToolsRun.js";
|
|
97
99
|
export * from "./clientVerificationAddReminder.js";
|
|
98
100
|
export * from "./clientVerificationList.js";
|
package/src/sdk/tools.ts
CHANGED
|
@@ -4,8 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { clientToolsAuthorizeActionPack } from "../funcs/clientToolsAuthorizeActionPack.js";
|
|
7
|
+
import { clientToolsAuthorizeToolServer } from "../funcs/clientToolsAuthorizeToolServer.js";
|
|
7
8
|
import { clientToolsList } from "../funcs/clientToolsList.js";
|
|
8
9
|
import { clientToolsRetrieveActionPackAuthStatus } from "../funcs/clientToolsRetrieveActionPackAuthStatus.js";
|
|
10
|
+
import { clientToolsRetrieveToolServerAuthStatus } from "../funcs/clientToolsRetrieveToolServerAuthStatus.js";
|
|
9
11
|
import { clientToolsRun } from "../funcs/clientToolsRun.js";
|
|
10
12
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
11
13
|
import * as components from "../models/components/index.js";
|
|
@@ -89,4 +91,47 @@ export class Tools extends ClientSDK {
|
|
|
89
91
|
options,
|
|
90
92
|
));
|
|
91
93
|
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Get end-user authentication status for a tool server.
|
|
97
|
+
*
|
|
98
|
+
* @remarks
|
|
99
|
+
* Returns display information and the calling user's current authentication status
|
|
100
|
+
* for the specified tool server.
|
|
101
|
+
*/
|
|
102
|
+
async retrieveToolServerAuthStatus(
|
|
103
|
+
serverId: string,
|
|
104
|
+
options?: RequestOptions,
|
|
105
|
+
): Promise<components.ToolServerAuthStatusResponse> {
|
|
106
|
+
return unwrapAsync(clientToolsRetrieveToolServerAuthStatus(
|
|
107
|
+
this,
|
|
108
|
+
serverId,
|
|
109
|
+
options,
|
|
110
|
+
));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Start the OAuth authorization flow for a tool server.
|
|
115
|
+
*
|
|
116
|
+
* @remarks
|
|
117
|
+
* Initiates the third-party OAuth flow for the specified tool server and returns the
|
|
118
|
+
* authorization URL that the client should navigate the end user to. After the OAuth
|
|
119
|
+
* callback completes, the user's browser is redirected back to `returnUrl` with query
|
|
120
|
+
* parameters indicating the result.
|
|
121
|
+
*
|
|
122
|
+
* `returnUrl` must match the tenant's configured return URL allowlist; otherwise the
|
|
123
|
+
* request is rejected with 400.
|
|
124
|
+
*/
|
|
125
|
+
async authorizeToolServer(
|
|
126
|
+
authorizeToolServerRequest: components.AuthorizeToolServerRequest,
|
|
127
|
+
serverId: string,
|
|
128
|
+
options?: RequestOptions,
|
|
129
|
+
): Promise<components.AuthorizeToolServerResponse> {
|
|
130
|
+
return unwrapAsync(clientToolsAuthorizeToolServer(
|
|
131
|
+
this,
|
|
132
|
+
authorizeToolServerRequest,
|
|
133
|
+
serverId,
|
|
134
|
+
options,
|
|
135
|
+
));
|
|
136
|
+
}
|
|
92
137
|
}
|