@chrt-inc/typescript-sdk 1.311.0 → 1.312.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/dist/cjs/Client.js +2 -2
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.ts +10 -0
- package/dist/cjs/api/resources/orgInfoForConnections/resources/forwarder/client/Client.js +51 -0
- package/dist/cjs/api/types/UserPublicData1.d.ts +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts +10 -0
- package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.mjs +51 -0
- package/dist/esm/api/types/UserPublicData1.d.mts +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +55 -0
package/dist/cjs/Client.js
CHANGED
|
@@ -71,8 +71,8 @@ class ChrtClient {
|
|
|
71
71
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
72
72
|
"X-Fern-Language": "JavaScript",
|
|
73
73
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
74
|
-
"X-Fern-SDK-Version": "1.
|
|
75
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
74
|
+
"X-Fern-SDK-Version": "1.312.0",
|
|
75
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.312.0",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -30,6 +30,16 @@ export declare namespace Forwarder {
|
|
|
30
30
|
export declare class Forwarder {
|
|
31
31
|
protected readonly _options: Forwarder.Options;
|
|
32
32
|
constructor(_options?: Forwarder.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
35
|
+
*
|
|
36
|
+
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.orgInfoForConnections.forwarder.getV1()
|
|
40
|
+
*/
|
|
41
|
+
getV1(requestOptions?: Forwarder.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderOrgInfoForConnections1>;
|
|
42
|
+
private __getV1;
|
|
33
43
|
/**
|
|
34
44
|
* Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
35
45
|
*
|
|
@@ -55,6 +55,57 @@ class Forwarder {
|
|
|
55
55
|
constructor(_options = {}) {
|
|
56
56
|
this._options = _options;
|
|
57
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
60
|
+
*
|
|
61
|
+
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.orgInfoForConnections.forwarder.getV1()
|
|
65
|
+
*/
|
|
66
|
+
getV1(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(requestOptions));
|
|
68
|
+
}
|
|
69
|
+
__getV1(requestOptions) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a, _b, _c, _d;
|
|
72
|
+
let _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
73
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
74
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "connections/org_info_for_connections/forwarder/v1"),
|
|
75
|
+
method: "GET",
|
|
76
|
+
headers: _headers,
|
|
77
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
78
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
79
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
80
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
|
+
});
|
|
82
|
+
if (_response.ok) {
|
|
83
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
84
|
+
}
|
|
85
|
+
if (_response.error.reason === "status-code") {
|
|
86
|
+
throw new errors.ChrtError({
|
|
87
|
+
statusCode: _response.error.statusCode,
|
|
88
|
+
body: _response.error.body,
|
|
89
|
+
rawResponse: _response.rawResponse,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
switch (_response.error.reason) {
|
|
93
|
+
case "non-json":
|
|
94
|
+
throw new errors.ChrtError({
|
|
95
|
+
statusCode: _response.error.statusCode,
|
|
96
|
+
body: _response.error.rawBody,
|
|
97
|
+
rawResponse: _response.rawResponse,
|
|
98
|
+
});
|
|
99
|
+
case "timeout":
|
|
100
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/forwarder/v1.");
|
|
101
|
+
case "unknown":
|
|
102
|
+
throw new errors.ChrtError({
|
|
103
|
+
message: _response.error.errorMessage,
|
|
104
|
+
rawResponse: _response.rawResponse,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
58
109
|
/**
|
|
59
110
|
* Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
60
111
|
*
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.312.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -35,8 +35,8 @@ export class ChrtClient {
|
|
|
35
35
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
36
36
|
"X-Fern-Language": "JavaScript",
|
|
37
37
|
"X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
|
|
38
|
-
"X-Fern-SDK-Version": "1.
|
|
39
|
-
"User-Agent": "@chrt-inc/typescript-sdk/1.
|
|
38
|
+
"X-Fern-SDK-Version": "1.312.0",
|
|
39
|
+
"User-Agent": "@chrt-inc/typescript-sdk/1.312.0",
|
|
40
40
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
41
41
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
42
42
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/esm/api/resources/orgInfoForConnections/resources/forwarder/client/Client.d.mts
CHANGED
|
@@ -30,6 +30,16 @@ export declare namespace Forwarder {
|
|
|
30
30
|
export declare class Forwarder {
|
|
31
31
|
protected readonly _options: Forwarder.Options;
|
|
32
32
|
constructor(_options?: Forwarder.Options);
|
|
33
|
+
/**
|
|
34
|
+
* Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
35
|
+
*
|
|
36
|
+
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* await client.orgInfoForConnections.forwarder.getV1()
|
|
40
|
+
*/
|
|
41
|
+
getV1(requestOptions?: Forwarder.RequestOptions): core.HttpResponsePromise<Chrt.ForwarderOrgInfoForConnections1>;
|
|
42
|
+
private __getV1;
|
|
33
43
|
/**
|
|
34
44
|
* Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
35
45
|
*
|
|
@@ -19,6 +19,57 @@ export class Forwarder {
|
|
|
19
19
|
constructor(_options = {}) {
|
|
20
20
|
this._options = _options;
|
|
21
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
24
|
+
*
|
|
25
|
+
* @param {Forwarder.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.orgInfoForConnections.forwarder.getV1()
|
|
29
|
+
*/
|
|
30
|
+
getV1(requestOptions) {
|
|
31
|
+
return core.HttpResponsePromise.fromPromise(this.__getV1(requestOptions));
|
|
32
|
+
}
|
|
33
|
+
__getV1(requestOptions) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
var _a, _b, _c, _d;
|
|
36
|
+
let _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
37
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
38
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ChrtEnvironment.Local, "connections/org_info_for_connections/forwarder/v1"),
|
|
39
|
+
method: "GET",
|
|
40
|
+
headers: _headers,
|
|
41
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
42
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
43
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
44
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
45
|
+
});
|
|
46
|
+
if (_response.ok) {
|
|
47
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
48
|
+
}
|
|
49
|
+
if (_response.error.reason === "status-code") {
|
|
50
|
+
throw new errors.ChrtError({
|
|
51
|
+
statusCode: _response.error.statusCode,
|
|
52
|
+
body: _response.error.body,
|
|
53
|
+
rawResponse: _response.rawResponse,
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
switch (_response.error.reason) {
|
|
57
|
+
case "non-json":
|
|
58
|
+
throw new errors.ChrtError({
|
|
59
|
+
statusCode: _response.error.statusCode,
|
|
60
|
+
body: _response.error.rawBody,
|
|
61
|
+
rawResponse: _response.rawResponse,
|
|
62
|
+
});
|
|
63
|
+
case "timeout":
|
|
64
|
+
throw new errors.ChrtTimeoutError("Timeout exceeded when calling GET /connections/org_info_for_connections/forwarder/v1.");
|
|
65
|
+
case "unknown":
|
|
66
|
+
throw new errors.ChrtError({
|
|
67
|
+
message: _response.error.errorMessage,
|
|
68
|
+
rawResponse: _response.rawResponse,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
}
|
|
22
73
|
/**
|
|
23
74
|
* Creates forwarder organization connection information. Fails if already exists. | (ForwarderOrgInfoForConnectionsClientCreate1) -> (PydanticObjectId)
|
|
24
75
|
*
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.
|
|
1
|
+
export declare const SDK_VERSION = "1.312.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.
|
|
1
|
+
export const SDK_VERSION = "1.312.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -9929,6 +9929,61 @@ await client.orgInfoForConnections.courier.updateV1();
|
|
|
9929
9929
|
|
|
9930
9930
|
## OrgInfoForConnections Forwarder
|
|
9931
9931
|
|
|
9932
|
+
<details><summary><code>client.orgInfoForConnections.forwarder.<a href="/src/api/resources/orgInfoForConnections/resources/forwarder/client/Client.ts">getV1</a>() -> Chrt.ForwarderOrgInfoForConnections1</code></summary>
|
|
9933
|
+
<dl>
|
|
9934
|
+
<dd>
|
|
9935
|
+
|
|
9936
|
+
#### 📝 Description
|
|
9937
|
+
|
|
9938
|
+
<dl>
|
|
9939
|
+
<dd>
|
|
9940
|
+
|
|
9941
|
+
<dl>
|
|
9942
|
+
<dd>
|
|
9943
|
+
|
|
9944
|
+
Retrieves forwarder organization connection information for the authenticated organization. | () -> (ForwarderOrgInfoForConnections1)
|
|
9945
|
+
|
|
9946
|
+
</dd>
|
|
9947
|
+
</dl>
|
|
9948
|
+
</dd>
|
|
9949
|
+
</dl>
|
|
9950
|
+
|
|
9951
|
+
#### 🔌 Usage
|
|
9952
|
+
|
|
9953
|
+
<dl>
|
|
9954
|
+
<dd>
|
|
9955
|
+
|
|
9956
|
+
<dl>
|
|
9957
|
+
<dd>
|
|
9958
|
+
|
|
9959
|
+
```typescript
|
|
9960
|
+
await client.orgInfoForConnections.forwarder.getV1();
|
|
9961
|
+
```
|
|
9962
|
+
|
|
9963
|
+
</dd>
|
|
9964
|
+
</dl>
|
|
9965
|
+
</dd>
|
|
9966
|
+
</dl>
|
|
9967
|
+
|
|
9968
|
+
#### ⚙️ Parameters
|
|
9969
|
+
|
|
9970
|
+
<dl>
|
|
9971
|
+
<dd>
|
|
9972
|
+
|
|
9973
|
+
<dl>
|
|
9974
|
+
<dd>
|
|
9975
|
+
|
|
9976
|
+
**requestOptions:** `Forwarder.RequestOptions`
|
|
9977
|
+
|
|
9978
|
+
</dd>
|
|
9979
|
+
</dl>
|
|
9980
|
+
</dd>
|
|
9981
|
+
</dl>
|
|
9982
|
+
|
|
9983
|
+
</dd>
|
|
9984
|
+
</dl>
|
|
9985
|
+
</details>
|
|
9986
|
+
|
|
9932
9987
|
<details><summary><code>client.orgInfoForConnections.forwarder.<a href="/src/api/resources/orgInfoForConnections/resources/forwarder/client/Client.ts">createV1</a>({ ...params }) -> string</code></summary>
|
|
9933
9988
|
<dl>
|
|
9934
9989
|
<dd>
|