-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathembeds.ts
57 lines (53 loc) · 1.77 KB
/
embeds.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import { embedsGetEmbedAccessToken } from "../funcs/embedsGetEmbedAccessToken.js";
import { embedsGetValidEmbedAccessTokens } from "../funcs/embedsGetValidEmbedAccessTokens.js";
import { embedsRevokeEmbedAccessToken } from "../funcs/embedsRevokeEmbedAccessToken.js";
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
import * as operations from "./models/operations/index.js";
import * as shared from "./models/shared/index.js";
import { unwrapAsync } from "./types/fp.js";
export class Embeds extends ClientSDK {
/**
* Get an embed access token for the current workspace.
*
* @remarks
* Returns an embed access token for the current workspace. This can be used to authenticate access to externally embedded content.
* Filters can be applied allowing views to be filtered to things like particular customerIds.
*/
async getEmbedAccessToken(
request: operations.GetEmbedAccessTokenRequest,
options?: RequestOptions,
): Promise<operations.GetEmbedAccessTokenResponse> {
return unwrapAsync(embedsGetEmbedAccessToken(
this,
request,
options,
));
}
/**
* Get all valid embed access tokens for the current workspace.
*/
async getValidEmbedAccessTokens(
options?: RequestOptions,
): Promise<operations.GetValidEmbedAccessTokensResponse> {
return unwrapAsync(embedsGetValidEmbedAccessTokens(
this,
options,
));
}
/**
* Revoke an embed access EmbedToken.
*/
async revokeEmbedAccessToken(
request: operations.RevokeEmbedAccessTokenRequest,
options?: RequestOptions,
): Promise<shared.ErrorT | undefined> {
return unwrapAsync(embedsRevokeEmbedAccessToken(
this,
request,
options,
));
}
}