@fern-api/venus-api-sdk 0.14.1-1-g78e09da → 0.14.2-1-g5cd6c55
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 +29 -33
- package/api/resources/organization/client/Client.js +38 -42
- package/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
- package/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +4 -5
- package/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +1 -3
- package/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +1 -3
- package/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
- package/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
- package/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +15 -15
- package/api/resources/organization/types/Organization.d.ts +2 -0
- package/api/resources/registry/client/Client.d.ts +5 -8
- package/api/resources/registry/client/Client.js +8 -11
- package/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -5
- package/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +1 -1
- package/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
- package/api/resources/user/client/Client.js +2 -2
- package/dist/api/resources/organization/client/Client.d.ts +29 -33
- package/dist/api/resources/organization/client/Client.js +38 -42
- package/dist/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +4 -5
- package/dist/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +1 -3
- package/dist/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +1 -3
- package/dist/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
- package/dist/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +15 -15
- package/dist/api/resources/organization/types/Organization.d.ts +2 -0
- package/dist/api/resources/registry/client/Client.d.ts +5 -8
- package/dist/api/resources/registry/client/Client.js +8 -11
- package/dist/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -5
- package/dist/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +1 -1
- package/dist/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
- package/dist/api/resources/user/client/Client.js +2 -2
- package/dist/serialization/resources/organization/types/Organization.d.ts +1 -0
- package/dist/serialization/resources/organization/types/Organization.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/types/Organization.d.ts +1 -0
- package/serialization/resources/organization/types/Organization.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -30,10 +30,10 @@ export declare class Organization {
|
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* await client.organization.create({
|
|
33
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
34
|
-
* displayName:
|
|
35
|
-
* artifactReadRequiresToken:
|
|
36
|
-
* enableGithubConnection:
|
|
33
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
34
|
+
* displayName: undefined,
|
|
35
|
+
* artifactReadRequiresToken: undefined,
|
|
36
|
+
* enableGithubConnection: undefined
|
|
37
37
|
* })
|
|
38
38
|
*/
|
|
39
39
|
create(request: FernVenusApi.CreateOrganizationRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<FernVenusApi.CreateOrganizationResponse, FernVenusApi.organization.create.Error>>;
|
|
@@ -43,22 +43,22 @@ export declare class Organization {
|
|
|
43
43
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
44
|
*
|
|
45
45
|
* @example
|
|
46
|
-
* await client.organization.update(FernVenusApi.OrganizationId("
|
|
47
|
-
* displayName:
|
|
48
|
-
* logoUrl:
|
|
49
|
-
* artifactReadRequiresToken:
|
|
50
|
-
* isWhitelabeled:
|
|
51
|
-
* previewEnabled:
|
|
52
|
-
* snippetsEnabled:
|
|
53
|
-
* snippetUnitTestsEnabled:
|
|
54
|
-
* snippetsApiAccessEnabled:
|
|
55
|
-
* snippetTemplatesAccessEnabled:
|
|
56
|
-
* paginationEnabled:
|
|
57
|
-
* changeLogEnabled:
|
|
58
|
-
* isFernbotCanary:
|
|
59
|
-
* oauthClientEnabled:
|
|
60
|
-
* apiPlaygroundEnabled:
|
|
61
|
-
* workosOrganizationId:
|
|
46
|
+
* await client.organization.update(FernVenusApi.OrganizationId("orgId"), {
|
|
47
|
+
* displayName: undefined,
|
|
48
|
+
* logoUrl: undefined,
|
|
49
|
+
* artifactReadRequiresToken: undefined,
|
|
50
|
+
* isWhitelabeled: undefined,
|
|
51
|
+
* previewEnabled: undefined,
|
|
52
|
+
* snippetsEnabled: undefined,
|
|
53
|
+
* snippetUnitTestsEnabled: undefined,
|
|
54
|
+
* snippetsApiAccessEnabled: undefined,
|
|
55
|
+
* snippetTemplatesAccessEnabled: undefined,
|
|
56
|
+
* paginationEnabled: undefined,
|
|
57
|
+
* changeLogEnabled: undefined,
|
|
58
|
+
* isFernbotCanary: undefined,
|
|
59
|
+
* oauthClientEnabled: undefined,
|
|
60
|
+
* apiPlaygroundEnabled: undefined,
|
|
61
|
+
* workosOrganizationId: undefined
|
|
62
62
|
* })
|
|
63
63
|
*/
|
|
64
64
|
update(orgId: FernVenusApi.OrganizationId, request?: FernVenusApi.UpdateOrganizationRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.organization.update.Error>>;
|
|
@@ -68,9 +68,7 @@ export declare class Organization {
|
|
|
68
68
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.organization.get(FernVenusApi.OrganizationId("
|
|
72
|
-
* shouldIncludeFernUsers: true
|
|
73
|
-
* })
|
|
71
|
+
* await client.organization.get(FernVenusApi.OrganizationId("orgId"))
|
|
74
72
|
*/
|
|
75
73
|
get(orgId: FernVenusApi.OrganizationId, request?: FernVenusApi.GetOrganizationRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.get.Error>>;
|
|
76
74
|
/**
|
|
@@ -78,7 +76,7 @@ export declare class Organization {
|
|
|
78
76
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
77
|
*
|
|
80
78
|
* @example
|
|
81
|
-
* await client.organization.isMember(FernVenusApi.OrganizationId("
|
|
79
|
+
* await client.organization.isMember(FernVenusApi.OrganizationId("organizationId"))
|
|
82
80
|
*/
|
|
83
81
|
isMember(organizationId: FernVenusApi.OrganizationId, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<boolean, FernVenusApi.organization.isMember.Error>>;
|
|
84
82
|
/**
|
|
@@ -88,9 +86,7 @@ export declare class Organization {
|
|
|
88
86
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
87
|
*
|
|
90
88
|
* @example
|
|
91
|
-
* await client.organization.getMyOrganizationFromScopedToken(
|
|
92
|
-
* shouldIncludeFernUsers: true
|
|
93
|
-
* })
|
|
89
|
+
* await client.organization.getMyOrganizationFromScopedToken()
|
|
94
90
|
*/
|
|
95
91
|
getMyOrganizationFromScopedToken(request?: FernVenusApi.GetMyOrganizationFromScopedToken, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.getMyOrganizationFromScopedToken.Error>>;
|
|
96
92
|
/**
|
|
@@ -106,8 +102,8 @@ export declare class Organization {
|
|
|
106
102
|
*
|
|
107
103
|
* @example
|
|
108
104
|
* await client.organization.addUser({
|
|
109
|
-
* userId: FernVenusApi.UserId("
|
|
110
|
-
* orgId: FernVenusApi.OrganizationId("
|
|
105
|
+
* userId: FernVenusApi.UserId("userId"),
|
|
106
|
+
* orgId: FernVenusApi.OrganizationId("orgId")
|
|
111
107
|
* })
|
|
112
108
|
*/
|
|
113
109
|
addUser(request: FernVenusApi.AddUserToOrgRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.organization.addUser.Error>>;
|
|
@@ -117,8 +113,8 @@ export declare class Organization {
|
|
|
117
113
|
*
|
|
118
114
|
* @example
|
|
119
115
|
* await client.organization.inviteUser({
|
|
120
|
-
* emailAddress: "
|
|
121
|
-
* auth0OrgId: FernVenusApi.OrganizationId("
|
|
116
|
+
* emailAddress: "emailAddress",
|
|
117
|
+
* auth0OrgId: FernVenusApi.OrganizationId("auth0OrgId")
|
|
122
118
|
* })
|
|
123
119
|
*/
|
|
124
120
|
inviteUser(request: FernVenusApi.InviteUserToOrgRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.organization.inviteUser.Error>>;
|
|
@@ -128,8 +124,8 @@ export declare class Organization {
|
|
|
128
124
|
*
|
|
129
125
|
* @example
|
|
130
126
|
* await client.organization.removeUser({
|
|
131
|
-
* userId: "
|
|
132
|
-
* auth0OrgId: FernVenusApi.OrganizationId("
|
|
127
|
+
* userId: "userId",
|
|
128
|
+
* auth0OrgId: FernVenusApi.OrganizationId("auth0OrgId")
|
|
133
129
|
* })
|
|
134
130
|
*/
|
|
135
131
|
removeUser(request: FernVenusApi.RemoveUserFromOrgRequest, requestOptions?: Organization.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.organization.removeUser.Error>>;
|
|
@@ -63,10 +63,10 @@ class Organization {
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* await client.organization.create({
|
|
66
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
67
|
-
* displayName:
|
|
68
|
-
* artifactReadRequiresToken:
|
|
69
|
-
* enableGithubConnection:
|
|
66
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
67
|
+
* displayName: undefined,
|
|
68
|
+
* artifactReadRequiresToken: undefined,
|
|
69
|
+
* enableGithubConnection: undefined
|
|
70
70
|
* })
|
|
71
71
|
*/
|
|
72
72
|
create(request, requestOptions) {
|
|
@@ -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.2-1-g5cd6c55", "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" }),
|
|
@@ -121,22 +121,22 @@ class Organization {
|
|
|
121
121
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
122
|
*
|
|
123
123
|
* @example
|
|
124
|
-
* await client.organization.update(FernVenusApi.OrganizationId("
|
|
125
|
-
* displayName:
|
|
126
|
-
* logoUrl:
|
|
127
|
-
* artifactReadRequiresToken:
|
|
128
|
-
* isWhitelabeled:
|
|
129
|
-
* previewEnabled:
|
|
130
|
-
* snippetsEnabled:
|
|
131
|
-
* snippetUnitTestsEnabled:
|
|
132
|
-
* snippetsApiAccessEnabled:
|
|
133
|
-
* snippetTemplatesAccessEnabled:
|
|
134
|
-
* paginationEnabled:
|
|
135
|
-
* changeLogEnabled:
|
|
136
|
-
* isFernbotCanary:
|
|
137
|
-
* oauthClientEnabled:
|
|
138
|
-
* apiPlaygroundEnabled:
|
|
139
|
-
* workosOrganizationId:
|
|
124
|
+
* await client.organization.update(FernVenusApi.OrganizationId("orgId"), {
|
|
125
|
+
* displayName: undefined,
|
|
126
|
+
* logoUrl: undefined,
|
|
127
|
+
* artifactReadRequiresToken: undefined,
|
|
128
|
+
* isWhitelabeled: undefined,
|
|
129
|
+
* previewEnabled: undefined,
|
|
130
|
+
* snippetsEnabled: undefined,
|
|
131
|
+
* snippetUnitTestsEnabled: undefined,
|
|
132
|
+
* snippetsApiAccessEnabled: undefined,
|
|
133
|
+
* snippetTemplatesAccessEnabled: undefined,
|
|
134
|
+
* paginationEnabled: undefined,
|
|
135
|
+
* changeLogEnabled: undefined,
|
|
136
|
+
* isFernbotCanary: undefined,
|
|
137
|
+
* oauthClientEnabled: undefined,
|
|
138
|
+
* apiPlaygroundEnabled: undefined,
|
|
139
|
+
* workosOrganizationId: undefined
|
|
140
140
|
* })
|
|
141
141
|
*/
|
|
142
142
|
update(orgId_1) {
|
|
@@ -145,7 +145,7 @@ class Organization {
|
|
|
145
145
|
const _response = yield core.fetcher({
|
|
146
146
|
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
147
|
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
149
149
|
contentType: "application/json",
|
|
150
150
|
requestType: "json",
|
|
151
151
|
body: serializers.UpdateOrganizationRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -185,9 +185,7 @@ class Organization {
|
|
|
185
185
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
186
|
*
|
|
187
187
|
* @example
|
|
188
|
-
* await client.organization.get(FernVenusApi.OrganizationId("
|
|
189
|
-
* shouldIncludeFernUsers: true
|
|
190
|
-
* })
|
|
188
|
+
* await client.organization.get(FernVenusApi.OrganizationId("orgId"))
|
|
191
189
|
*/
|
|
192
190
|
get(orgId_1) {
|
|
193
191
|
return __awaiter(this, arguments, void 0, function* (orgId, request = {}, requestOptions) {
|
|
@@ -200,7 +198,7 @@ class Organization {
|
|
|
200
198
|
const _response = yield core.fetcher({
|
|
201
199
|
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))}`),
|
|
202
200
|
method: "GET",
|
|
203
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
204
202
|
contentType: "application/json",
|
|
205
203
|
queryParameters: _queryParams,
|
|
206
204
|
requestType: "json",
|
|
@@ -244,7 +242,7 @@ class Organization {
|
|
|
244
242
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
243
|
*
|
|
246
244
|
* @example
|
|
247
|
-
* await client.organization.isMember(FernVenusApi.OrganizationId("
|
|
245
|
+
* await client.organization.isMember(FernVenusApi.OrganizationId("organizationId"))
|
|
248
246
|
*/
|
|
249
247
|
isMember(organizationId, requestOptions) {
|
|
250
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -252,7 +250,7 @@ class Organization {
|
|
|
252
250
|
const _response = yield core.fetcher({
|
|
253
251
|
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))}`),
|
|
254
252
|
method: "POST",
|
|
255
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
256
254
|
contentType: "application/json",
|
|
257
255
|
requestType: "json",
|
|
258
256
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -283,9 +281,7 @@ class Organization {
|
|
|
283
281
|
* @param {Organization.RequestOptions} requestOptions - Request-specific configuration.
|
|
284
282
|
*
|
|
285
283
|
* @example
|
|
286
|
-
* await client.organization.getMyOrganizationFromScopedToken(
|
|
287
|
-
* shouldIncludeFernUsers: true
|
|
288
|
-
* })
|
|
284
|
+
* await client.organization.getMyOrganizationFromScopedToken()
|
|
289
285
|
*/
|
|
290
286
|
getMyOrganizationFromScopedToken() {
|
|
291
287
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
@@ -298,7 +294,7 @@ class Organization {
|
|
|
298
294
|
const _response = yield core.fetcher({
|
|
299
295
|
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"),
|
|
300
296
|
method: "POST",
|
|
301
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
302
298
|
contentType: "application/json",
|
|
303
299
|
queryParameters: _queryParams,
|
|
304
300
|
requestType: "json",
|
|
@@ -349,7 +345,7 @@ class Organization {
|
|
|
349
345
|
const _response = yield core.fetcher({
|
|
350
346
|
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"),
|
|
351
347
|
method: "POST",
|
|
352
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
353
349
|
contentType: "application/json",
|
|
354
350
|
requestType: "json",
|
|
355
351
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -379,8 +375,8 @@ class Organization {
|
|
|
379
375
|
*
|
|
380
376
|
* @example
|
|
381
377
|
* await client.organization.addUser({
|
|
382
|
-
* userId: FernVenusApi.UserId("
|
|
383
|
-
* orgId: FernVenusApi.OrganizationId("
|
|
378
|
+
* userId: FernVenusApi.UserId("userId"),
|
|
379
|
+
* orgId: FernVenusApi.OrganizationId("orgId")
|
|
384
380
|
* })
|
|
385
381
|
*/
|
|
386
382
|
addUser(request, requestOptions) {
|
|
@@ -389,7 +385,7 @@ class Organization {
|
|
|
389
385
|
const _response = yield core.fetcher({
|
|
390
386
|
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"),
|
|
391
387
|
method: "POST",
|
|
392
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
393
389
|
contentType: "application/json",
|
|
394
390
|
requestType: "json",
|
|
395
391
|
body: serializers.AddUserToOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -430,8 +426,8 @@ class Organization {
|
|
|
430
426
|
*
|
|
431
427
|
* @example
|
|
432
428
|
* await client.organization.inviteUser({
|
|
433
|
-
* emailAddress: "
|
|
434
|
-
* auth0OrgId: FernVenusApi.OrganizationId("
|
|
429
|
+
* emailAddress: "emailAddress",
|
|
430
|
+
* auth0OrgId: FernVenusApi.OrganizationId("auth0OrgId")
|
|
435
431
|
* })
|
|
436
432
|
*/
|
|
437
433
|
inviteUser(request, requestOptions) {
|
|
@@ -440,7 +436,7 @@ class Organization {
|
|
|
440
436
|
const _response = yield core.fetcher({
|
|
441
437
|
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"),
|
|
442
438
|
method: "POST",
|
|
443
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
444
440
|
contentType: "application/json",
|
|
445
441
|
requestType: "json",
|
|
446
442
|
body: serializers.InviteUserToOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -481,8 +477,8 @@ class Organization {
|
|
|
481
477
|
*
|
|
482
478
|
* @example
|
|
483
479
|
* await client.organization.removeUser({
|
|
484
|
-
* userId: "
|
|
485
|
-
* auth0OrgId: FernVenusApi.OrganizationId("
|
|
480
|
+
* userId: "userId",
|
|
481
|
+
* auth0OrgId: FernVenusApi.OrganizationId("auth0OrgId")
|
|
486
482
|
* })
|
|
487
483
|
*/
|
|
488
484
|
removeUser(request, requestOptions) {
|
|
@@ -491,7 +487,7 @@ class Organization {
|
|
|
491
487
|
const _response = yield core.fetcher({
|
|
492
488
|
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"),
|
|
493
489
|
method: "DELETE",
|
|
494
|
-
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.
|
|
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
495
491
|
contentType: "application/json",
|
|
496
492
|
requestType: "json",
|
|
497
493
|
body: serializers.RemoveUserFromOrgRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -5,8 +5,8 @@ import * as FernVenusApi from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* userId: FernVenusApi.UserId("
|
|
9
|
-
* orgId: FernVenusApi.OrganizationId("
|
|
8
|
+
* userId: FernVenusApi.UserId("userId"),
|
|
9
|
+
* orgId: FernVenusApi.OrganizationId("orgId")
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface AddUserToOrgRequest {
|
|
@@ -5,10 +5,10 @@ import * as FernVenusApi from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
9
|
-
* displayName:
|
|
10
|
-
* artifactReadRequiresToken:
|
|
11
|
-
* enableGithubConnection:
|
|
8
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
9
|
+
* displayName: undefined,
|
|
10
|
+
* artifactReadRequiresToken: undefined,
|
|
11
|
+
* enableGithubConnection: undefined
|
|
12
12
|
* }
|
|
13
13
|
*/
|
|
14
14
|
export interface CreateOrganizationRequest {
|
|
@@ -19,7 +19,6 @@ export interface CreateOrganizationRequest {
|
|
|
19
19
|
/**
|
|
20
20
|
* Allow users to log into the organization with their GitHub account, necessary for accepting organizations today.
|
|
21
21
|
* This is a field to allow for us to create organizations without this in the future if necessary.
|
|
22
|
-
*
|
|
23
22
|
*/
|
|
24
23
|
enableGithubConnection?: boolean;
|
|
25
24
|
}
|
|
@@ -5,8 +5,8 @@ import * as FernVenusApi from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* emailAddress: "
|
|
9
|
-
* auth0OrgId: FernVenusApi.OrganizationId("
|
|
8
|
+
* emailAddress: "emailAddress",
|
|
9
|
+
* auth0OrgId: FernVenusApi.OrganizationId("auth0OrgId")
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface InviteUserToOrgRequest {
|
|
@@ -5,8 +5,8 @@ import * as FernVenusApi from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* userId: "
|
|
9
|
-
* auth0OrgId: FernVenusApi.OrganizationId("
|
|
8
|
+
* userId: "userId",
|
|
9
|
+
* auth0OrgId: FernVenusApi.OrganizationId("auth0OrgId")
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface RemoveUserFromOrgRequest {
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
6
|
* {
|
|
7
|
-
* displayName:
|
|
8
|
-
* logoUrl:
|
|
9
|
-
* artifactReadRequiresToken:
|
|
10
|
-
* isWhitelabeled:
|
|
11
|
-
* previewEnabled:
|
|
12
|
-
* snippetsEnabled:
|
|
13
|
-
* snippetUnitTestsEnabled:
|
|
14
|
-
* snippetsApiAccessEnabled:
|
|
15
|
-
* snippetTemplatesAccessEnabled:
|
|
16
|
-
* paginationEnabled:
|
|
17
|
-
* changeLogEnabled:
|
|
18
|
-
* isFernbotCanary:
|
|
19
|
-
* oauthClientEnabled:
|
|
20
|
-
* apiPlaygroundEnabled:
|
|
21
|
-
* workosOrganizationId:
|
|
7
|
+
* displayName: undefined,
|
|
8
|
+
* logoUrl: undefined,
|
|
9
|
+
* artifactReadRequiresToken: undefined,
|
|
10
|
+
* isWhitelabeled: undefined,
|
|
11
|
+
* previewEnabled: undefined,
|
|
12
|
+
* snippetsEnabled: undefined,
|
|
13
|
+
* snippetUnitTestsEnabled: undefined,
|
|
14
|
+
* snippetsApiAccessEnabled: undefined,
|
|
15
|
+
* snippetTemplatesAccessEnabled: undefined,
|
|
16
|
+
* paginationEnabled: undefined,
|
|
17
|
+
* changeLogEnabled: undefined,
|
|
18
|
+
* isFernbotCanary: undefined,
|
|
19
|
+
* oauthClientEnabled: undefined,
|
|
20
|
+
* apiPlaygroundEnabled: undefined,
|
|
21
|
+
* workosOrganizationId: undefined
|
|
22
22
|
* }
|
|
23
23
|
*/
|
|
24
24
|
export interface UpdateOrganizationRequest {
|
|
@@ -30,7 +30,7 @@ export declare class Registry {
|
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
32
32
|
* await client.registry.generateRegistryTokens({
|
|
33
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
33
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId")
|
|
34
34
|
* })
|
|
35
35
|
*/
|
|
36
36
|
generateRegistryTokens(request: FernVenusApi.GenerateRegistryTokensRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<FernVenusApi.RegistryTokens, FernVenusApi.registry.generateRegistryTokens.Error>>;
|
|
@@ -40,11 +40,8 @@ export declare class Registry {
|
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* await client.registry.hasRegistryPermission({
|
|
43
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
44
|
-
* token:
|
|
45
|
-
* type: "npm",
|
|
46
|
-
* token: "string"
|
|
47
|
-
* }
|
|
43
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
44
|
+
* token: undefined
|
|
48
45
|
* })
|
|
49
46
|
*/
|
|
50
47
|
hasRegistryPermission(request: FernVenusApi.CheckRegistryPermissionRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<boolean, FernVenusApi.registry.hasRegistryPermission.Error>>;
|
|
@@ -54,8 +51,8 @@ export declare class Registry {
|
|
|
54
51
|
*
|
|
55
52
|
* @example
|
|
56
53
|
* await client.registry.revokeToken({
|
|
57
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
58
|
-
* token: "
|
|
54
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
55
|
+
* token: "token"
|
|
59
56
|
* })
|
|
60
57
|
*/
|
|
61
58
|
revokeToken(request: FernVenusApi.RevokeTokenRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.registry.revokeToken.Error>>;
|
|
@@ -63,7 +63,7 @@ class Registry {
|
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* await client.registry.generateRegistryTokens({
|
|
66
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
66
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId")
|
|
67
67
|
* })
|
|
68
68
|
*/
|
|
69
69
|
generateRegistryTokens(request, requestOptions) {
|
|
@@ -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.2-1-g5cd6c55", "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" }),
|
|
@@ -118,11 +118,8 @@ class Registry {
|
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* await client.registry.hasRegistryPermission({
|
|
121
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
122
|
-
* token:
|
|
123
|
-
* type: "npm",
|
|
124
|
-
* token: "string"
|
|
125
|
-
* }
|
|
121
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
122
|
+
* token: undefined
|
|
126
123
|
* })
|
|
127
124
|
*/
|
|
128
125
|
hasRegistryPermission(request, requestOptions) {
|
|
@@ -131,7 +128,7 @@ class Registry {
|
|
|
131
128
|
const _response = yield core.fetcher({
|
|
132
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"),
|
|
133
130
|
method: "POST",
|
|
134
|
-
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
135
132
|
contentType: "application/json",
|
|
136
133
|
requestType: "json",
|
|
137
134
|
body: serializers.CheckRegistryPermissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -177,8 +174,8 @@ class Registry {
|
|
|
177
174
|
*
|
|
178
175
|
* @example
|
|
179
176
|
* await client.registry.revokeToken({
|
|
180
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
181
|
-
* token: "
|
|
177
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
178
|
+
* token: "token"
|
|
182
179
|
* })
|
|
183
180
|
*/
|
|
184
181
|
revokeToken(request, requestOptions) {
|
|
@@ -187,7 +184,7 @@ class Registry {
|
|
|
187
184
|
const _response = yield core.fetcher({
|
|
188
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"),
|
|
189
186
|
method: "POST",
|
|
190
|
-
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.2-1-g5cd6c55", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
191
188
|
contentType: "application/json",
|
|
192
189
|
requestType: "json",
|
|
193
190
|
body: serializers.RevokeTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -5,11 +5,8 @@ import * as FernVenusApi from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
9
|
-
* token:
|
|
10
|
-
* type: "npm",
|
|
11
|
-
* token: "string"
|
|
12
|
-
* }
|
|
8
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
9
|
+
* token: undefined
|
|
13
10
|
* }
|
|
14
11
|
*/
|
|
15
12
|
export interface CheckRegistryPermissionRequest {
|
|
@@ -5,8 +5,8 @@ import * as FernVenusApi from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* organizationId: FernVenusApi.OrganizationId("
|
|
9
|
-
* token: "
|
|
8
|
+
* organizationId: FernVenusApi.OrganizationId("organizationId"),
|
|
9
|
+
* token: "token"
|
|
10
10
|
* }
|
|
11
11
|
*/
|
|
12
12
|
export interface RevokeTokenRequest {
|
|
@@ -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.2-1-g5cd6c55", "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.2-1-g5cd6c55", "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",
|