@fern-api/venus-api-sdk 11.5.0 → 11.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +9 -0
  3. package/dist/cjs/api/resources/apiKeys/client/Client.js +14 -2
  4. package/dist/cjs/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.ts +1 -0
  5. package/dist/cjs/api/resources/organization/client/Client.d.ts +37 -1
  6. package/dist/cjs/api/resources/organization/client/Client.js +165 -1
  7. package/dist/cjs/api/resources/organization/client/getPostmanTeamDocs.d.ts +25 -0
  8. package/dist/cjs/api/resources/organization/client/getPostmanTeamDocs.js +66 -0
  9. package/dist/cjs/api/resources/organization/client/index.d.ts +2 -0
  10. package/dist/cjs/api/resources/organization/client/index.js +3 -1
  11. package/dist/cjs/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.d.ts +9 -0
  12. package/dist/cjs/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.js +3 -0
  13. package/dist/cjs/api/resources/organization/client/requests/SetDocsUrlRequest.d.ts +11 -0
  14. package/dist/cjs/api/resources/organization/client/requests/SetDocsUrlRequest.js +3 -0
  15. package/dist/cjs/api/resources/organization/client/requests/index.d.ts +2 -0
  16. package/dist/cjs/api/resources/organization/client/setDocsUrl.d.ts +25 -0
  17. package/dist/cjs/api/resources/organization/client/setDocsUrl.js +66 -0
  18. package/dist/cjs/api/types/PostmanTeamDocsResponse.d.ts +6 -0
  19. package/dist/cjs/api/types/PostmanTeamDocsResponse.js +3 -0
  20. package/dist/cjs/api/types/index.d.ts +1 -0
  21. package/dist/cjs/api/types/index.js +1 -0
  22. package/dist/cjs/serialization/resources/organization/client/requests/SetDocsUrlRequest.d.ts +9 -0
  23. package/dist/cjs/serialization/resources/organization/client/requests/SetDocsUrlRequest.js +41 -0
  24. package/dist/cjs/serialization/resources/organization/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/serialization/resources/organization/client/requests/index.js +3 -1
  26. package/dist/cjs/serialization/types/PostmanTeamDocsResponse.d.ts +12 -0
  27. package/dist/cjs/serialization/types/PostmanTeamDocsResponse.js +44 -0
  28. package/dist/cjs/serialization/types/index.d.ts +1 -0
  29. package/dist/cjs/serialization/types/index.js +1 -0
  30. package/dist/cjs/version.d.ts +1 -1
  31. package/dist/cjs/version.js +1 -1
  32. package/dist/esm/BaseClient.mjs +2 -2
  33. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +9 -0
  34. package/dist/esm/api/resources/apiKeys/client/Client.mjs +14 -2
  35. package/dist/esm/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.mts +1 -0
  36. package/dist/esm/api/resources/organization/client/Client.d.mts +37 -1
  37. package/dist/esm/api/resources/organization/client/Client.mjs +165 -1
  38. package/dist/esm/api/resources/organization/client/getPostmanTeamDocs.d.mts +25 -0
  39. package/dist/esm/api/resources/organization/client/getPostmanTeamDocs.mjs +30 -0
  40. package/dist/esm/api/resources/organization/client/index.d.mts +2 -0
  41. package/dist/esm/api/resources/organization/client/index.mjs +2 -0
  42. package/dist/esm/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.d.mts +9 -0
  43. package/dist/esm/api/resources/organization/client/requests/GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.mjs +2 -0
  44. package/dist/esm/api/resources/organization/client/requests/SetDocsUrlRequest.d.mts +11 -0
  45. package/dist/esm/api/resources/organization/client/requests/SetDocsUrlRequest.mjs +2 -0
  46. package/dist/esm/api/resources/organization/client/requests/index.d.mts +2 -0
  47. package/dist/esm/api/resources/organization/client/setDocsUrl.d.mts +25 -0
  48. package/dist/esm/api/resources/organization/client/setDocsUrl.mjs +30 -0
  49. package/dist/esm/api/types/PostmanTeamDocsResponse.d.mts +6 -0
  50. package/dist/esm/api/types/PostmanTeamDocsResponse.mjs +2 -0
  51. package/dist/esm/api/types/index.d.mts +1 -0
  52. package/dist/esm/api/types/index.mjs +1 -0
  53. package/dist/esm/serialization/resources/organization/client/requests/SetDocsUrlRequest.d.mts +9 -0
  54. package/dist/esm/serialization/resources/organization/client/requests/SetDocsUrlRequest.mjs +5 -0
  55. package/dist/esm/serialization/resources/organization/client/requests/index.d.mts +1 -0
  56. package/dist/esm/serialization/resources/organization/client/requests/index.mjs +1 -0
  57. package/dist/esm/serialization/types/PostmanTeamDocsResponse.d.mts +12 -0
  58. package/dist/esm/serialization/types/PostmanTeamDocsResponse.mjs +8 -0
  59. package/dist/esm/serialization/types/index.d.mts +1 -0
  60. package/dist/esm/serialization/types/index.mjs +1 -0
  61. package/dist/esm/version.d.mts +1 -1
  62. package/dist/esm/version.mjs +1 -1
  63. package/package.json +1 -1
  64. package/reference.md +174 -1
@@ -0,0 +1,25 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.organization.setDocsUrl.Error.UnprocessableEntityError | FernVenusApi.organization.setDocsUrl.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface UnprocessableEntityError extends _Utils {
6
+ statusCode: 422;
7
+ content: FernVenusApi.HttpValidationError;
8
+ }
9
+ interface _Unknown extends _Utils {
10
+ statusCode: void;
11
+ content: core.Fetcher.Error;
12
+ }
13
+ interface _Utils {
14
+ _visit: <_Result>(visitor: FernVenusApi.organization.setDocsUrl.Error._Visitor<_Result>) => _Result;
15
+ }
16
+ interface _Visitor<_Result> {
17
+ unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
18
+ _other: (value: core.Fetcher.Error) => _Result;
19
+ }
20
+ }
21
+ export declare const Error: {
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.setDocsUrl.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.setDocsUrl.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.organization.setDocsUrl.Error, visitor: FernVenusApi.organization.setDocsUrl.Error._Visitor<_Result>) => _Result;
25
+ };
@@ -0,0 +1,30 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export const Error = {
4
+ unprocessableEntityError: (value) => {
5
+ return {
6
+ content: value,
7
+ statusCode: 422,
8
+ _visit: function (visitor) {
9
+ return FernVenusApi.organization.setDocsUrl.Error._visit(this, visitor);
10
+ },
11
+ };
12
+ },
13
+ _unknown: (fetcherError) => {
14
+ return {
15
+ statusCode: undefined,
16
+ content: fetcherError,
17
+ _visit: function (visitor) {
18
+ return FernVenusApi.organization.setDocsUrl.Error._visit(this, visitor);
19
+ },
20
+ };
21
+ },
22
+ _visit: (value, visitor) => {
23
+ switch (value.statusCode) {
24
+ case 422:
25
+ return visitor.unprocessableEntityError(value.content);
26
+ default:
27
+ return visitor._other(value.content);
28
+ }
29
+ },
30
+ };
@@ -0,0 +1,6 @@
1
+ import type * as FernVenusApi from "../index.mjs";
2
+ export interface PostmanTeamDocsResponse {
3
+ organizationId: string;
4
+ claimStatus: FernVenusApi.ClaimStatus;
5
+ docsUrl: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -20,6 +20,7 @@ export * from "./Npm.mjs";
20
20
  export * from "./NpmRegistryToken.mjs";
21
21
  export * from "./Organization.mjs";
22
22
  export * from "./OrganizationsPage.mjs";
23
+ export * from "./PostmanTeamDocsResponse.mjs";
23
24
  export * from "./Pypi.mjs";
24
25
  export * from "./PypiRegistryToken.mjs";
25
26
  export * from "./RegistryToken.mjs";
@@ -20,6 +20,7 @@ export * from "./Npm.mjs";
20
20
  export * from "./NpmRegistryToken.mjs";
21
21
  export * from "./Organization.mjs";
22
22
  export * from "./OrganizationsPage.mjs";
23
+ export * from "./PostmanTeamDocsResponse.mjs";
23
24
  export * from "./Pypi.mjs";
24
25
  export * from "./PypiRegistryToken.mjs";
25
26
  export * from "./RegistryToken.mjs";
@@ -0,0 +1,9 @@
1
+ import type * as FernVenusApi from "../../../../../api/index.mjs";
2
+ import * as core from "../../../../../core/index.mjs";
3
+ import type * as serializers from "../../../../index.mjs";
4
+ export declare const SetDocsUrlRequest: core.serialization.Schema<serializers.SetDocsUrlRequest.Raw, Omit<FernVenusApi.SetDocsUrlRequest, "orgId">>;
5
+ export declare namespace SetDocsUrlRequest {
6
+ interface Raw {
7
+ docsUrl: string;
8
+ }
9
+ }
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../../core/index.mjs";
3
+ export const SetDocsUrlRequest = core.serialization.object({
4
+ docsUrl: core.serialization.string(),
5
+ });
@@ -3,4 +3,5 @@ export { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.mjs";
3
3
  export { CreateOrganizationRequest } from "./CreateOrganizationRequest.mjs";
4
4
  export { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
5
5
  export { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
6
+ export { SetDocsUrlRequest } from "./SetDocsUrlRequest.mjs";
6
7
  export { UpdateOrganizationRequest } from "./UpdateOrganizationRequest.mjs";
@@ -3,4 +3,5 @@ export { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.mjs";
3
3
  export { CreateOrganizationRequest } from "./CreateOrganizationRequest.mjs";
4
4
  export { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
5
5
  export { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
6
+ export { SetDocsUrlRequest } from "./SetDocsUrlRequest.mjs";
6
7
  export { UpdateOrganizationRequest } from "./UpdateOrganizationRequest.mjs";
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { ClaimStatus } from "./ClaimStatus.mjs";
5
+ export declare const PostmanTeamDocsResponse: core.serialization.ObjectSchema<serializers.PostmanTeamDocsResponse.Raw, FernVenusApi.PostmanTeamDocsResponse>;
6
+ export declare namespace PostmanTeamDocsResponse {
7
+ interface Raw {
8
+ organizationId: string;
9
+ claimStatus: ClaimStatus.Raw;
10
+ docsUrl: string;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { ClaimStatus } from "./ClaimStatus.mjs";
4
+ export const PostmanTeamDocsResponse = core.serialization.object({
5
+ organizationId: core.serialization.string(),
6
+ claimStatus: ClaimStatus,
7
+ docsUrl: core.serialization.string(),
8
+ });
@@ -20,6 +20,7 @@ export * from "./Npm.mjs";
20
20
  export * from "./NpmRegistryToken.mjs";
21
21
  export * from "./Organization.mjs";
22
22
  export * from "./OrganizationsPage.mjs";
23
+ export * from "./PostmanTeamDocsResponse.mjs";
23
24
  export * from "./Pypi.mjs";
24
25
  export * from "./PypiRegistryToken.mjs";
25
26
  export * from "./RegistryToken.mjs";
@@ -20,6 +20,7 @@ export * from "./Npm.mjs";
20
20
  export * from "./NpmRegistryToken.mjs";
21
21
  export * from "./Organization.mjs";
22
22
  export * from "./OrganizationsPage.mjs";
23
+ export * from "./PostmanTeamDocsResponse.mjs";
23
24
  export * from "./Pypi.mjs";
24
25
  export * from "./PypiRegistryToken.mjs";
25
26
  export * from "./RegistryToken.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "11.5.0";
1
+ export declare const SDK_VERSION = "11.7.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "11.5.0";
1
+ export const SDK_VERSION = "11.7.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fern-api/venus-api-sdk",
3
- "version": "11.5.0",
3
+ "version": "11.7.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/reference.md CHANGED
@@ -267,6 +267,22 @@ await client.apiKeys.getTokenMetadata({
267
267
  <dl>
268
268
  <dd>
269
269
 
270
+ #### 📝 Description
271
+
272
+ <dl>
273
+ <dd>
274
+
275
+ <dl>
276
+ <dd>
277
+
278
+ Lists an organization's API keys. Called with the provisioner token, it
279
+ only works for an unclaimed organization that was created with that
280
+ token, and returns 403 for any other.
281
+ </dd>
282
+ </dl>
283
+ </dd>
284
+ </dl>
285
+
270
286
  #### 🔌 Usage
271
287
 
272
288
  <dl>
@@ -318,6 +334,23 @@ await client.apiKeys.getTokensForOrganization({
318
334
  <dl>
319
335
  <dd>
320
336
 
337
+ #### 📝 Description
338
+
339
+ <dl>
340
+ <dd>
341
+
342
+ <dl>
343
+ <dd>
344
+
345
+ Revokes an API key by its ID. Called with the provisioner token,
346
+ organizationId is required and must be an unclaimed organization that
347
+ was created with that token (403 otherwise), and the key must be that
348
+ organization's (401 otherwise). Other callers don't need organizationId.
349
+ </dd>
350
+ </dl>
351
+ </dd>
352
+ </dl>
353
+
321
354
  #### 🔌 Usage
322
355
 
323
356
  <dl>
@@ -929,6 +962,9 @@ await client.organization.get({
929
962
  <dd>
930
963
 
931
964
  Deletes an organization. Only users with admin role can delete organizations.
965
+ Called with the provisioner token, it only works for an unclaimed
966
+ organization that was created with that token, and returns 403 for any
967
+ other. It also revokes that organization's API keys.
932
968
  </dd>
933
969
  </dl>
934
970
  </dd>
@@ -1042,6 +1078,74 @@ await client.organization.getOrgIdsByPostmanTeamId({
1042
1078
  </dl>
1043
1079
 
1044
1080
 
1081
+ </dd>
1082
+ </dl>
1083
+ </details>
1084
+
1085
+ <details><summary><code>client.organization.<a href="/src/api/resources/organization/client/Client.ts">getPostmanTeamDocs</a>({ ...params }) -> core.APIResponse&lt;FernVenusApi.PostmanTeamDocsResponse, FernVenusApi.organization.getPostmanTeamDocs.Error&gt;</code></summary>
1086
+ <dl>
1087
+ <dd>
1088
+
1089
+ #### 📝 Description
1090
+
1091
+ <dl>
1092
+ <dd>
1093
+
1094
+ <dl>
1095
+ <dd>
1096
+
1097
+ The claimable organization linked to a Postman team, with its claim
1098
+ status and the address of its docs site. Only Postman's integration
1099
+ service token can call it. 404 when the team has no claimable
1100
+ organization, or its docs address isn't set.
1101
+ </dd>
1102
+ </dl>
1103
+ </dd>
1104
+ </dl>
1105
+
1106
+ #### 🔌 Usage
1107
+
1108
+ <dl>
1109
+ <dd>
1110
+
1111
+ <dl>
1112
+ <dd>
1113
+
1114
+ ```typescript
1115
+ await client.organization.getPostmanTeamDocs({
1116
+ postmanTeamId: "postman_team_id"
1117
+ });
1118
+
1119
+ ```
1120
+ </dd>
1121
+ </dl>
1122
+ </dd>
1123
+ </dl>
1124
+
1125
+ #### ⚙️ Parameters
1126
+
1127
+ <dl>
1128
+ <dd>
1129
+
1130
+ <dl>
1131
+ <dd>
1132
+
1133
+ **request:** `FernVenusApi.GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest`
1134
+
1135
+ </dd>
1136
+ </dl>
1137
+
1138
+ <dl>
1139
+ <dd>
1140
+
1141
+ **requestOptions:** `OrganizationClient.RequestOptions`
1142
+
1143
+ </dd>
1144
+ </dl>
1145
+ </dd>
1146
+ </dl>
1147
+
1148
+
1045
1149
  </dd>
1046
1150
  </dl>
1047
1151
  </details>
@@ -1191,7 +1295,8 @@ await client.organization.getClaimStatus({
1191
1295
  <dd>
1192
1296
 
1193
1297
  Issues a claim link for an unclaimed organization, bound to one Postman
1194
- user and valid for 15 minutes. Only the provisioner token can call it.
1298
+ user and valid for 15 minutes. Only the provisioner token and Postman's
1299
+ integration service token can call it.
1195
1300
  </dd>
1196
1301
  </dl>
1197
1302
  </dd>
@@ -1241,6 +1346,74 @@ await client.organization.createClaimToken({
1241
1346
  </dl>
1242
1347
 
1243
1348
 
1349
+ </dd>
1350
+ </dl>
1351
+ </details>
1352
+
1353
+ <details><summary><code>client.organization.<a href="/src/api/resources/organization/client/Client.ts">setDocsUrl</a>({ ...params }) -> core.APIResponse&lt;void, FernVenusApi.organization.setDocsUrl.Error&gt;</code></summary>
1354
+ <dl>
1355
+ <dd>
1356
+
1357
+ #### 📝 Description
1358
+
1359
+ <dl>
1360
+ <dd>
1361
+
1362
+ <dl>
1363
+ <dd>
1364
+
1365
+ Sets the address of an unclaimed organization's docs site, which the
1366
+ team docs lookup returns. Only the provisioner token can call it, and
1367
+ only until the organization is claimed.
1368
+ </dd>
1369
+ </dl>
1370
+ </dd>
1371
+ </dl>
1372
+
1373
+ #### 🔌 Usage
1374
+
1375
+ <dl>
1376
+ <dd>
1377
+
1378
+ <dl>
1379
+ <dd>
1380
+
1381
+ ```typescript
1382
+ await client.organization.setDocsUrl({
1383
+ orgId: "org_id",
1384
+ docsUrl: "docsUrl"
1385
+ });
1386
+
1387
+ ```
1388
+ </dd>
1389
+ </dl>
1390
+ </dd>
1391
+ </dl>
1392
+
1393
+ #### ⚙️ Parameters
1394
+
1395
+ <dl>
1396
+ <dd>
1397
+
1398
+ <dl>
1399
+ <dd>
1400
+
1401
+ **request:** `FernVenusApi.SetDocsUrlRequest`
1402
+
1403
+ </dd>
1404
+ </dl>
1405
+
1406
+ <dl>
1407
+ <dd>
1408
+
1409
+ **requestOptions:** `OrganizationClient.RequestOptions`
1410
+
1411
+ </dd>
1412
+ </dl>
1413
+ </dd>
1414
+ </dl>
1415
+
1416
+
1244
1417
  </dd>
1245
1418
  </dl>
1246
1419
  </details>