@fern-api/venus-api-sdk 0.14.3-1-g14981f0 → 0.14.5-2-gee7d8c6
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/api/resources/organization/client/Client.d.ts +2 -1
- package/api/resources/organization/client/Client.js +11 -10
- package/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +4 -1
- package/api/resources/registry/client/Client.js +3 -3
- package/api/resources/user/client/Client.js +2 -2
- package/dist/api/resources/organization/client/Client.d.ts +2 -1
- package/dist/api/resources/organization/client/Client.js +11 -10
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +4 -1
- package/dist/api/resources/registry/client/Client.js +3 -3
- package/dist/api/resources/user/client/Client.js +2 -2
- package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +1 -0
- package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +1 -0
- package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -58,7 +58,8 @@ export declare class Organization {
|
|
|
58
58
|
* isFernbotCanary: undefined,
|
|
59
59
|
* oauthClientEnabled: undefined,
|
|
60
60
|
* apiPlaygroundEnabled: undefined,
|
|
61
|
-
* workosOrganizationId: undefined
|
|
61
|
+
* workosOrganizationId: undefined,
|
|
62
|
+
* selfHostedSdKs: undefined
|
|
62
63
|
* })
|
|
63
64
|
*/
|
|
64
65
|
update(orgId: FernVenusApi.OrganizationId, request?: FernVenusApi.UpdateOrganizationRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.organization.update.Error>>;
|
|
@@ -75,7 +75,7 @@ class Organization {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/create"),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.CreateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -136,7 +136,8 @@ class Organization {
|
|
|
136
136
|
* isFernbotCanary: undefined,
|
|
137
137
|
* oauthClientEnabled: undefined,
|
|
138
138
|
* apiPlaygroundEnabled: undefined,
|
|
139
|
-
* workosOrganizationId: undefined
|
|
139
|
+
* workosOrganizationId: undefined,
|
|
140
|
+
* selfHostedSdKs: undefined
|
|
140
141
|
* })
|
|
141
142
|
*/
|
|
142
143
|
update(orgId_1) {
|
|
@@ -145,7 +146,7 @@ class Organization {
|
|
|
145
146
|
const _response = yield core.fetcher({
|
|
146
147
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/organizations/${encodeURIComponent(serializers.OrganizationId.jsonOrThrow(orgId))}/update`),
|
|
147
148
|
method: "POST",
|
|
148
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
149
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
149
150
|
contentType: "application/json",
|
|
150
151
|
requestType: "json",
|
|
151
152
|
body: serializers.UpdateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -198,7 +199,7 @@ class Organization {
|
|
|
198
199
|
const _response = yield core.fetcher({
|
|
199
200
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/organizations/${encodeURIComponent(serializers.OrganizationId.jsonOrThrow(orgId))}`),
|
|
200
201
|
method: "GET",
|
|
201
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
202
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
202
203
|
contentType: "application/json",
|
|
203
204
|
queryParameters: _queryParams,
|
|
204
205
|
requestType: "json",
|
|
@@ -250,7 +251,7 @@ class Organization {
|
|
|
250
251
|
const _response = yield core.fetcher({
|
|
251
252
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/organizations/belongs-to-organization/${encodeURIComponent(serializers.OrganizationId.jsonOrThrow(organizationId))}`),
|
|
252
253
|
method: "POST",
|
|
253
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
254
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
254
255
|
contentType: "application/json",
|
|
255
256
|
requestType: "json",
|
|
256
257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -294,7 +295,7 @@ class Organization {
|
|
|
294
295
|
const _response = yield core.fetcher({
|
|
295
296
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/myself"),
|
|
296
297
|
method: "POST",
|
|
297
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
298
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
299
|
contentType: "application/json",
|
|
299
300
|
queryParameters: _queryParams,
|
|
300
301
|
requestType: "json",
|
|
@@ -345,7 +346,7 @@ class Organization {
|
|
|
345
346
|
const _response = yield core.fetcher({
|
|
346
347
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations"),
|
|
347
348
|
method: "POST",
|
|
348
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
349
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
349
350
|
contentType: "application/json",
|
|
350
351
|
requestType: "json",
|
|
351
352
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -385,7 +386,7 @@ class Organization {
|
|
|
385
386
|
const _response = yield core.fetcher({
|
|
386
387
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/add-user"),
|
|
387
388
|
method: "POST",
|
|
388
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
389
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
389
390
|
contentType: "application/json",
|
|
390
391
|
requestType: "json",
|
|
391
392
|
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -436,7 +437,7 @@ class Organization {
|
|
|
436
437
|
const _response = yield core.fetcher({
|
|
437
438
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/invite"),
|
|
438
439
|
method: "POST",
|
|
439
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
440
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
440
441
|
contentType: "application/json",
|
|
441
442
|
requestType: "json",
|
|
442
443
|
body: serializers.InviteUserToOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -487,7 +488,7 @@ class Organization {
|
|
|
487
488
|
const _response = yield core.fetcher({
|
|
488
489
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/user"),
|
|
489
490
|
method: "DELETE",
|
|
490
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
491
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
491
492
|
contentType: "application/json",
|
|
492
493
|
requestType: "json",
|
|
493
494
|
body: serializers.RemoveUserFromOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
* isFernbotCanary: undefined,
|
|
19
19
|
* oauthClientEnabled: undefined,
|
|
20
20
|
* apiPlaygroundEnabled: undefined,
|
|
21
|
-
* workosOrganizationId: undefined
|
|
21
|
+
* workosOrganizationId: undefined,
|
|
22
|
+
* selfHostedSdKs: undefined
|
|
22
23
|
* }
|
|
23
24
|
*/
|
|
24
25
|
export interface UpdateOrganizationRequest {
|
|
@@ -52,4 +53,6 @@ export interface UpdateOrganizationRequest {
|
|
|
52
53
|
apiPlaygroundEnabled?: boolean;
|
|
53
54
|
/** If not present, does not update value. */
|
|
54
55
|
workosOrganizationId?: string;
|
|
56
|
+
/** If not present, does not update value. */
|
|
57
|
+
selfHostedSdKs?: boolean;
|
|
55
58
|
}
|
|
@@ -72,7 +72,7 @@ class Registry {
|
|
|
72
72
|
const _response = yield core.fetcher({
|
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/generate-tokens"),
|
|
74
74
|
method: "POST",
|
|
75
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
75
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
requestType: "json",
|
|
78
78
|
body: serializers.GenerateRegistryTokensRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -128,7 +128,7 @@ class Registry {
|
|
|
128
128
|
const _response = yield core.fetcher({
|
|
129
129
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/check-permissions"),
|
|
130
130
|
method: "POST",
|
|
131
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
131
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
requestType: "json",
|
|
134
134
|
body: serializers.CheckRegistryPermissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -184,7 +184,7 @@ class Registry {
|
|
|
184
184
|
const _response = yield core.fetcher({
|
|
185
185
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/revoke-token"),
|
|
186
186
|
method: "POST",
|
|
187
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
187
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
body: serializers.RevokeTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -69,7 +69,7 @@ class User {
|
|
|
69
69
|
const _response = yield core.fetcher({
|
|
70
70
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/users"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
72
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
requestType: "json",
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,7 +111,7 @@ class User {
|
|
|
111
111
|
const _response = yield core.fetcher({
|
|
112
112
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/users/organizations"),
|
|
113
113
|
method: "GET",
|
|
114
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
114
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
115
115
|
contentType: "application/json",
|
|
116
116
|
queryParameters: _queryParams,
|
|
117
117
|
requestType: "json",
|
|
@@ -58,7 +58,8 @@ export declare class Organization {
|
|
|
58
58
|
* isFernbotCanary: undefined,
|
|
59
59
|
* oauthClientEnabled: undefined,
|
|
60
60
|
* apiPlaygroundEnabled: undefined,
|
|
61
|
-
* workosOrganizationId: undefined
|
|
61
|
+
* workosOrganizationId: undefined,
|
|
62
|
+
* selfHostedSdKs: undefined
|
|
62
63
|
* })
|
|
63
64
|
*/
|
|
64
65
|
update(orgId: FernVenusApi.OrganizationId, request?: FernVenusApi.UpdateOrganizationRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.organization.update.Error>>;
|
|
@@ -75,7 +75,7 @@ class Organization {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/create"),
|
|
77
77
|
method: "POST",
|
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
body: serializers.CreateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -136,7 +136,8 @@ class Organization {
|
|
|
136
136
|
* isFernbotCanary: undefined,
|
|
137
137
|
* oauthClientEnabled: undefined,
|
|
138
138
|
* apiPlaygroundEnabled: undefined,
|
|
139
|
-
* workosOrganizationId: undefined
|
|
139
|
+
* workosOrganizationId: undefined,
|
|
140
|
+
* selfHostedSdKs: undefined
|
|
140
141
|
* })
|
|
141
142
|
*/
|
|
142
143
|
update(orgId_1) {
|
|
@@ -145,7 +146,7 @@ class Organization {
|
|
|
145
146
|
const _response = yield core.fetcher({
|
|
146
147
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/organizations/${encodeURIComponent(serializers.OrganizationId.jsonOrThrow(orgId))}/update`),
|
|
147
148
|
method: "POST",
|
|
148
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
149
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
149
150
|
contentType: "application/json",
|
|
150
151
|
requestType: "json",
|
|
151
152
|
body: serializers.UpdateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -198,7 +199,7 @@ class Organization {
|
|
|
198
199
|
const _response = yield core.fetcher({
|
|
199
200
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/organizations/${encodeURIComponent(serializers.OrganizationId.jsonOrThrow(orgId))}`),
|
|
200
201
|
method: "GET",
|
|
201
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
202
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
202
203
|
contentType: "application/json",
|
|
203
204
|
queryParameters: _queryParams,
|
|
204
205
|
requestType: "json",
|
|
@@ -250,7 +251,7 @@ class Organization {
|
|
|
250
251
|
const _response = yield core.fetcher({
|
|
251
252
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), `/organizations/belongs-to-organization/${encodeURIComponent(serializers.OrganizationId.jsonOrThrow(organizationId))}`),
|
|
252
253
|
method: "POST",
|
|
253
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
254
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
254
255
|
contentType: "application/json",
|
|
255
256
|
requestType: "json",
|
|
256
257
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -294,7 +295,7 @@ class Organization {
|
|
|
294
295
|
const _response = yield core.fetcher({
|
|
295
296
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/myself"),
|
|
296
297
|
method: "POST",
|
|
297
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
298
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
298
299
|
contentType: "application/json",
|
|
299
300
|
queryParameters: _queryParams,
|
|
300
301
|
requestType: "json",
|
|
@@ -345,7 +346,7 @@ class Organization {
|
|
|
345
346
|
const _response = yield core.fetcher({
|
|
346
347
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations"),
|
|
347
348
|
method: "POST",
|
|
348
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
349
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
349
350
|
contentType: "application/json",
|
|
350
351
|
requestType: "json",
|
|
351
352
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -385,7 +386,7 @@ class Organization {
|
|
|
385
386
|
const _response = yield core.fetcher({
|
|
386
387
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/add-user"),
|
|
387
388
|
method: "POST",
|
|
388
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
389
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
389
390
|
contentType: "application/json",
|
|
390
391
|
requestType: "json",
|
|
391
392
|
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -436,7 +437,7 @@ class Organization {
|
|
|
436
437
|
const _response = yield core.fetcher({
|
|
437
438
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/invite"),
|
|
438
439
|
method: "POST",
|
|
439
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
440
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
440
441
|
contentType: "application/json",
|
|
441
442
|
requestType: "json",
|
|
442
443
|
body: serializers.InviteUserToOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -487,7 +488,7 @@ class Organization {
|
|
|
487
488
|
const _response = yield core.fetcher({
|
|
488
489
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/organizations/user"),
|
|
489
490
|
method: "DELETE",
|
|
490
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
491
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
491
492
|
contentType: "application/json",
|
|
492
493
|
requestType: "json",
|
|
493
494
|
body: serializers.RemoveUserFromOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
* isFernbotCanary: undefined,
|
|
19
19
|
* oauthClientEnabled: undefined,
|
|
20
20
|
* apiPlaygroundEnabled: undefined,
|
|
21
|
-
* workosOrganizationId: undefined
|
|
21
|
+
* workosOrganizationId: undefined,
|
|
22
|
+
* selfHostedSdKs: undefined
|
|
22
23
|
* }
|
|
23
24
|
*/
|
|
24
25
|
export interface UpdateOrganizationRequest {
|
|
@@ -52,4 +53,6 @@ export interface UpdateOrganizationRequest {
|
|
|
52
53
|
apiPlaygroundEnabled?: boolean;
|
|
53
54
|
/** If not present, does not update value. */
|
|
54
55
|
workosOrganizationId?: string;
|
|
56
|
+
/** If not present, does not update value. */
|
|
57
|
+
selfHostedSdKs?: boolean;
|
|
55
58
|
}
|
|
@@ -72,7 +72,7 @@ class Registry {
|
|
|
72
72
|
const _response = yield core.fetcher({
|
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/generate-tokens"),
|
|
74
74
|
method: "POST",
|
|
75
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
75
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
76
76
|
contentType: "application/json",
|
|
77
77
|
requestType: "json",
|
|
78
78
|
body: serializers.GenerateRegistryTokensRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -128,7 +128,7 @@ class Registry {
|
|
|
128
128
|
const _response = yield core.fetcher({
|
|
129
129
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/check-permissions"),
|
|
130
130
|
method: "POST",
|
|
131
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
131
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
132
132
|
contentType: "application/json",
|
|
133
133
|
requestType: "json",
|
|
134
134
|
body: serializers.CheckRegistryPermissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -184,7 +184,7 @@ class Registry {
|
|
|
184
184
|
const _response = yield core.fetcher({
|
|
185
185
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/revoke-token"),
|
|
186
186
|
method: "POST",
|
|
187
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
187
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
188
188
|
contentType: "application/json",
|
|
189
189
|
requestType: "json",
|
|
190
190
|
body: serializers.RevokeTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -69,7 +69,7 @@ class User {
|
|
|
69
69
|
const _response = yield core.fetcher({
|
|
70
70
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/users"),
|
|
71
71
|
method: "GET",
|
|
72
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
72
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
73
73
|
contentType: "application/json",
|
|
74
74
|
requestType: "json",
|
|
75
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -111,7 +111,7 @@ class User {
|
|
|
111
111
|
const _response = yield core.fetcher({
|
|
112
112
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/users/organizations"),
|
|
113
113
|
method: "GET",
|
|
114
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.
|
|
114
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.14.5-2-gee7d8c6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
115
115
|
contentType: "application/json",
|
|
116
116
|
queryParameters: _queryParams,
|
|
117
117
|
requestType: "json",
|
package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js
CHANGED
|
@@ -54,4 +54,5 @@ exports.UpdateOrganizationRequest = core.serialization.object({
|
|
|
54
54
|
oauthClientEnabled: core.serialization.boolean().optional(),
|
|
55
55
|
apiPlaygroundEnabled: core.serialization.boolean().optional(),
|
|
56
56
|
workosOrganizationId: core.serialization.string().optional(),
|
|
57
|
+
selfHostedSdKs: core.serialization.property("selfHostedSDKs", core.serialization.boolean().optional()),
|
|
57
58
|
});
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.14.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.5-2-gee7d8c6";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -54,4 +54,5 @@ exports.UpdateOrganizationRequest = core.serialization.object({
|
|
|
54
54
|
oauthClientEnabled: core.serialization.boolean().optional(),
|
|
55
55
|
apiPlaygroundEnabled: core.serialization.boolean().optional(),
|
|
56
56
|
workosOrganizationId: core.serialization.string().optional(),
|
|
57
|
+
selfHostedSdKs: core.serialization.property("selfHostedSDKs", core.serialization.boolean().optional()),
|
|
57
58
|
});
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.14.
|
|
1
|
+
export declare const SDK_VERSION = "0.14.5-2-gee7d8c6";
|
package/version.js
CHANGED