You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -108,29 +111,15 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
108
111
*[getEmbedAccessToken](docs/sdks/embeds/README.md#getembedaccesstoken) - Get an embed access token for the current workspace.
109
112
*[getValidEmbedAccessTokens](docs/sdks/embeds/README.md#getvalidembedaccesstokens) - Get all valid embed access tokens for the current workspace.
110
113
*[revokeEmbedAccessToken](docs/sdks/embeds/README.md#revokeembedaccesstoken) - Revoke an embed access EmbedToken.
111
-
<!-- End SDK Available Operations -->
112
-
113
-
114
-
115
-
<!-- Start Dev Containers -->
116
-
117
-
<!-- End Dev Containers -->
118
-
114
+
<!-- End Available Resources and Operations [operations] -->
119
115
120
116
121
-
<!-- Start Pagination -->
122
-
# Pagination
123
117
124
-
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
125
-
returned response object will have a `next` method that can be called to pull down the next group of results. If the
126
-
return value of `next` is `null`, then there are no more pages to be fetched.
127
118
128
-
Here's an example of one such pagination call:
129
-
<!-- End Pagination -->
130
119
131
120
132
121
133
-
<!-- Start Error Handling -->
122
+
<!-- Start Error Handling [errors] -->
134
123
## Error Handling
135
124
136
125
Handling errors in this SDK should largely match your expectations. All operations return a response object or throw an error. If Error objects are specified in your OpenAPI Spec, the SDK will throw the appropriate Error type.
@@ -218,35 +217,37 @@ import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
218
217
if (res.statusCode==200) {
219
218
// handle response
220
219
}
221
-
})();
220
+
}
221
+
222
+
run();
222
223
223
224
```
224
-
<!-- End Server Selection -->
225
+
<!-- End Server Selection [server] -->
225
226
226
227
227
228
228
-
<!-- Start Custom HTTP Client -->
229
+
<!-- Start Custom HTTP Client [http-client] -->
229
230
## Custom HTTP Client
230
231
231
-
The Typescript SDK makes API calls using the (axios)[https://axios-http.com/docs/intro] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `AxiosInstance` object.
232
+
The Typescript SDK makes API calls using the [axios](https://axios-http.com/docs/intro) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `AxiosInstance` object.
232
233
233
234
For example, you could specify a header for every request that your sdk makes as follows:
0 commit comments