@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.
Files changed (41) hide show
  1. package/api/resources/organization/client/Client.d.ts +29 -33
  2. package/api/resources/organization/client/Client.js +38 -42
  3. package/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
  4. package/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +4 -5
  5. package/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +1 -3
  6. package/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +1 -3
  7. package/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
  8. package/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
  9. package/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +15 -15
  10. package/api/resources/organization/types/Organization.d.ts +2 -0
  11. package/api/resources/registry/client/Client.d.ts +5 -8
  12. package/api/resources/registry/client/Client.js +8 -11
  13. package/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -5
  14. package/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +1 -1
  15. package/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
  16. package/api/resources/user/client/Client.js +2 -2
  17. package/dist/api/resources/organization/client/Client.d.ts +29 -33
  18. package/dist/api/resources/organization/client/Client.js +38 -42
  19. package/dist/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +2 -2
  20. package/dist/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +4 -5
  21. package/dist/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +1 -3
  22. package/dist/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +1 -3
  23. package/dist/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +2 -2
  24. package/dist/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +2 -2
  25. package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +15 -15
  26. package/dist/api/resources/organization/types/Organization.d.ts +2 -0
  27. package/dist/api/resources/registry/client/Client.d.ts +5 -8
  28. package/dist/api/resources/registry/client/Client.js +8 -11
  29. package/dist/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +2 -5
  30. package/dist/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +1 -1
  31. package/dist/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +2 -2
  32. package/dist/api/resources/user/client/Client.js +2 -2
  33. package/dist/serialization/resources/organization/types/Organization.d.ts +1 -0
  34. package/dist/serialization/resources/organization/types/Organization.js +1 -0
  35. package/dist/version.d.ts +1 -1
  36. package/dist/version.js +1 -1
  37. package/package.json +1 -1
  38. package/serialization/resources/organization/types/Organization.d.ts +1 -0
  39. package/serialization/resources/organization/types/Organization.js +1 -0
  40. package/version.d.ts +1 -1
  41. 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("string"),
34
- * displayName: "string",
35
- * artifactReadRequiresToken: true,
36
- * enableGithubConnection: true
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("string"), {
47
- * displayName: "string",
48
- * logoUrl: "string",
49
- * artifactReadRequiresToken: true,
50
- * isWhitelabeled: true,
51
- * previewEnabled: true,
52
- * snippetsEnabled: true,
53
- * snippetUnitTestsEnabled: true,
54
- * snippetsApiAccessEnabled: true,
55
- * snippetTemplatesAccessEnabled: true,
56
- * paginationEnabled: true,
57
- * changeLogEnabled: true,
58
- * isFernbotCanary: true,
59
- * oauthClientEnabled: true,
60
- * apiPlaygroundEnabled: true,
61
- * workosOrganizationId: "string"
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("string"), {
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("string"))
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("string"),
110
- * orgId: FernVenusApi.OrganizationId("string")
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: "string",
121
- * auth0OrgId: FernVenusApi.OrganizationId("string")
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: "string",
132
- * auth0OrgId: FernVenusApi.OrganizationId("string")
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("string"),
67
- * displayName: "string",
68
- * artifactReadRequiresToken: true,
69
- * enableGithubConnection: true
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"), {
125
- * displayName: "string",
126
- * logoUrl: "string",
127
- * artifactReadRequiresToken: true,
128
- * isWhitelabeled: true,
129
- * previewEnabled: true,
130
- * snippetsEnabled: true,
131
- * snippetUnitTestsEnabled: true,
132
- * snippetsApiAccessEnabled: true,
133
- * snippetTemplatesAccessEnabled: true,
134
- * paginationEnabled: true,
135
- * changeLogEnabled: true,
136
- * isFernbotCanary: true,
137
- * oauthClientEnabled: true,
138
- * apiPlaygroundEnabled: true,
139
- * workosOrganizationId: "string"
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"), {
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"))
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"),
383
- * orgId: FernVenusApi.OrganizationId("string")
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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: "string",
434
- * auth0OrgId: FernVenusApi.OrganizationId("string")
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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: "string",
485
- * auth0OrgId: FernVenusApi.OrganizationId("string")
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"),
9
- * orgId: FernVenusApi.OrganizationId("string")
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("string"),
9
- * displayName: "string",
10
- * artifactReadRequiresToken: true,
11
- * enableGithubConnection: true
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
  }
@@ -3,9 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * shouldIncludeFernUsers: true
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface GetMyOrganizationFromScopedToken {
11
9
  shouldIncludeFernUsers?: boolean;
@@ -3,9 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * shouldIncludeFernUsers: true
8
- * }
6
+ * {}
9
7
  */
10
8
  export interface GetOrganizationRequest {
11
9
  shouldIncludeFernUsers?: boolean;
@@ -5,8 +5,8 @@ import * as FernVenusApi from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * emailAddress: "string",
9
- * auth0OrgId: FernVenusApi.OrganizationId("string")
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: "string",
9
- * auth0OrgId: FernVenusApi.OrganizationId("string")
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: "string",
8
- * logoUrl: "string",
9
- * artifactReadRequiresToken: true,
10
- * isWhitelabeled: true,
11
- * previewEnabled: true,
12
- * snippetsEnabled: true,
13
- * snippetUnitTestsEnabled: true,
14
- * snippetsApiAccessEnabled: true,
15
- * snippetTemplatesAccessEnabled: true,
16
- * paginationEnabled: true,
17
- * changeLogEnabled: true,
18
- * isFernbotCanary: true,
19
- * oauthClientEnabled: true,
20
- * apiPlaygroundEnabled: true,
21
- * workosOrganizationId: "string"
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 {
@@ -32,4 +32,6 @@ export interface Organization {
32
32
  apiPlaygroundEnabled: boolean;
33
33
  /** If the organization has sso enabled. */
34
34
  workosOrganizationId?: string;
35
+ /** If the organization has self hosted SDKs enabled. */
36
+ selfHostedSdKs: boolean;
35
37
  }
@@ -30,7 +30,7 @@ export declare class Registry {
30
30
  *
31
31
  * @example
32
32
  * await client.registry.generateRegistryTokens({
33
- * organizationId: FernVenusApi.OrganizationId("string")
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("string"),
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("string"),
58
- * token: "string"
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("string")
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"),
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"),
181
- * token: "string"
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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("string"),
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,7 +5,7 @@ import * as FernVenusApi from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * organizationId: FernVenusApi.OrganizationId("string")
8
+ * organizationId: FernVenusApi.OrganizationId("organizationId")
9
9
  * }
10
10
  */
11
11
  export interface GenerateRegistryTokensRequest {
@@ -5,8 +5,8 @@ import * as FernVenusApi from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * organizationId: FernVenusApi.OrganizationId("string"),
9
- * token: "string"
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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.1-1-g78e09da", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
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",