@corti/sdk 5.0.0-rc → 5.0.0

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 CHANGED
@@ -18,8 +18,8 @@ The Corti JavaScript library provides convenient access to the Corti APIs from J
18
18
  - [Pagination](#pagination)
19
19
  - [Advanced](#advanced)
20
20
  - [Additional Headers](#additional-headers)
21
- - [Analytics](#analytics)
22
21
  - [Additional Query String Parameters](#additional-query-string-parameters)
22
+ - [Analytics](#analytics)
23
23
  - [Retries](#retries)
24
24
  - [Timeouts](#timeouts)
25
25
  - [Aborting Requests](#aborting-requests)
@@ -689,6 +689,18 @@ const response = await client.interactions.create(..., {
689
689
  });
690
690
  ```
691
691
 
692
+ ### Additional Query String Parameters
693
+
694
+ If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
695
+
696
+ ```typescript
697
+ const response = await client.interactions.create(..., {
698
+ queryParams: {
699
+ 'customQueryParamKey': 'custom query param value'
700
+ }
701
+ });
702
+ ```
703
+
692
704
  ### Analytics
693
705
 
694
706
  The SDK sends metadata about itself (`sdk_version`, `sdk_type`) with every request via the `X-Corti-Analytics` header (REST) or the `x-corti-analytics` query parameter (WebSocket). You can extend this payload with your own fields on the client constructor, and overlay extra fields on individual REST calls or WebSocket connections.
@@ -740,18 +752,6 @@ const socket = await client.stream.connect({
740
752
 
741
753
  > **Note**: This value is in the query string and may appear in access logs — avoid personally identifiable information.
742
754
 
743
- ### Additional Query String Parameters
744
-
745
- If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
746
-
747
- ```typescript
748
- const response = await client.interactions.create(..., {
749
- queryParams: {
750
- 'customQueryParamKey': 'custom query param value'
751
- }
752
- });
753
- ```
754
-
755
755
  ### Retries
756
756
 
757
757
  The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@corti/sdk",
46
- "X-Fern-SDK-Version": "5.0.0-rc",
47
- "User-Agent": "@corti/sdk/5.0.0-rc",
46
+ "X-Fern-SDK-Version": "5.0.0",
47
+ "User-Agent": "@corti/sdk/5.0.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.0.0-rc";
1
+ export declare const SDK_VERSION = "5.0.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "5.0.0-rc";
4
+ exports.SDK_VERSION = "5.0.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@corti/sdk",
9
- "X-Fern-SDK-Version": "5.0.0-rc",
10
- "User-Agent": "@corti/sdk/5.0.0-rc",
9
+ "X-Fern-SDK-Version": "5.0.0",
10
+ "User-Agent": "@corti/sdk/5.0.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "Tenant-Name": options === null || options === void 0 ? void 0 : options.tenantName,
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "5.0.0-rc";
1
+ export declare const SDK_VERSION = "5.0.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "5.0.0-rc";
1
+ export const SDK_VERSION = "5.0.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "5.0.0-rc",
3
+ "version": "5.0.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",