@fern-api/venus-api-sdk 14.0.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/guestSession/client/Client.js +14 -2
- package/dist/cjs/api/resources/guestSession/client/create.d.ts +3 -3
- package/dist/cjs/api/resources/guestSession/client/get.d.ts +3 -3
- package/dist/cjs/api/resources/organization/client/Client.d.ts +26 -4
- package/dist/cjs/api/resources/organization/client/Client.js +90 -4
- package/dist/cjs/api/resources/organization/client/getPublisherDocs.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/getPublisherDocs.js +66 -0
- package/dist/cjs/api/resources/organization/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/organization/client/index.js +2 -1
- package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +2 -0
- package/dist/cjs/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
- package/dist/cjs/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.d.ts +12 -0
- package/dist/cjs/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.js +3 -0
- package/dist/cjs/api/resources/organization/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/Publisher.d.ts +10 -0
- package/dist/cjs/api/types/Publisher.js +3 -0
- package/dist/cjs/api/types/PublisherDocsResponse.d.ts +6 -0
- package/dist/cjs/api/types/PublisherDocsResponse.js +3 -0
- package/dist/cjs/api/types/PublisherType.d.ts +5 -0
- package/dist/cjs/api/types/PublisherType.js +8 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.js +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +2 -0
- package/dist/cjs/serialization/types/Publisher.d.ts +11 -0
- package/dist/cjs/serialization/types/Publisher.js +43 -0
- package/dist/cjs/serialization/types/PublisherDocsResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/PublisherDocsResponse.js +44 -0
- package/dist/cjs/serialization/types/PublisherType.d.ts +7 -0
- package/dist/cjs/serialization/types/PublisherType.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +3 -0
- package/dist/cjs/serialization/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/guestSession/client/Client.mjs +14 -2
- package/dist/esm/api/resources/guestSession/client/create.d.mts +3 -3
- package/dist/esm/api/resources/guestSession/client/get.d.mts +3 -3
- package/dist/esm/api/resources/organization/client/Client.d.mts +26 -4
- package/dist/esm/api/resources/organization/client/Client.mjs +90 -4
- package/dist/esm/api/resources/organization/client/getPublisherDocs.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/getPublisherDocs.mjs +30 -0
- package/dist/esm/api/resources/organization/client/index.d.mts +1 -0
- package/dist/esm/api/resources/organization/client/index.mjs +1 -0
- package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +2 -0
- package/dist/esm/api/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
- package/dist/esm/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.d.mts +12 -0
- package/dist/esm/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/organization/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/Publisher.d.mts +10 -0
- package/dist/esm/api/types/Publisher.mjs +2 -0
- package/dist/esm/api/types/PublisherDocsResponse.d.mts +6 -0
- package/dist/esm/api/types/PublisherDocsResponse.mjs +2 -0
- package/dist/esm/api/types/PublisherType.d.mts +5 -0
- package/dist/esm/api/types/PublisherType.mjs +5 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.mjs +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.mjs +2 -0
- package/dist/esm/serialization/types/Publisher.d.mts +11 -0
- package/dist/esm/serialization/types/Publisher.mjs +7 -0
- package/dist/esm/serialization/types/PublisherDocsResponse.d.mts +12 -0
- package/dist/esm/serialization/types/PublisherDocsResponse.mjs +8 -0
- package/dist/esm/serialization/types/PublisherType.d.mts +7 -0
- package/dist/esm/serialization/types/PublisherType.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +3 -0
- package/dist/esm/serialization/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +78 -4
|
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
|
|
|
37
37
|
export * from "./Organization.mjs";
|
|
38
38
|
export * from "./OrganizationsPage.mjs";
|
|
39
39
|
export * from "./PostmanTeamDocsResponse.mjs";
|
|
40
|
+
export * from "./Publisher.mjs";
|
|
41
|
+
export * from "./PublisherDocsResponse.mjs";
|
|
42
|
+
export * from "./PublisherType.mjs";
|
|
40
43
|
export * from "./Pypi.mjs";
|
|
41
44
|
export * from "./PypiRegistryToken.mjs";
|
|
42
45
|
export * from "./RegistryToken.mjs";
|
|
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
|
|
|
37
37
|
export * from "./Organization.mjs";
|
|
38
38
|
export * from "./OrganizationsPage.mjs";
|
|
39
39
|
export * from "./PostmanTeamDocsResponse.mjs";
|
|
40
|
+
export * from "./Publisher.mjs";
|
|
41
|
+
export * from "./PublisherDocsResponse.mjs";
|
|
42
|
+
export * from "./PublisherType.mjs";
|
|
40
43
|
export * from "./Pypi.mjs";
|
|
41
44
|
export * from "./PypiRegistryToken.mjs";
|
|
42
45
|
export * from "./RegistryToken.mjs";
|
package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.mts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as FernVenusApi from "../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { Publisher } from "../../../../types/Publisher.mjs";
|
|
4
5
|
export declare const CreateClaimTokenRequest: core.serialization.Schema<serializers.CreateClaimTokenRequest.Raw, Omit<FernVenusApi.CreateClaimTokenRequest, "orgId">>;
|
|
5
6
|
export declare namespace CreateClaimTokenRequest {
|
|
6
7
|
interface Raw {
|
|
7
8
|
postmanUserId: string;
|
|
9
|
+
publisher?: (Publisher.Raw | null | undefined) | null;
|
|
8
10
|
}
|
|
9
11
|
}
|
package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.mjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { Publisher } from "../../../../types/Publisher.mjs";
|
|
3
4
|
export const CreateClaimTokenRequest = core.serialization.object({
|
|
4
5
|
postmanUserId: core.serialization.string(),
|
|
6
|
+
publisher: Publisher.optionalNullable(),
|
|
5
7
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as FernVenusApi from "../../../../../api/index.mjs";
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
3
|
import type * as serializers from "../../../../index.mjs";
|
|
4
|
+
import { Publisher } from "../../../../types/Publisher.mjs";
|
|
4
5
|
export declare const CreateOrganizationRequest: core.serialization.Schema<serializers.CreateOrganizationRequest.Raw, FernVenusApi.CreateOrganizationRequest>;
|
|
5
6
|
export declare namespace CreateOrganizationRequest {
|
|
6
7
|
interface Raw {
|
|
@@ -11,5 +12,6 @@ export declare namespace CreateOrganizationRequest {
|
|
|
11
12
|
enableGoogleConnection?: (boolean | null | undefined) | null;
|
|
12
13
|
enablePostmanConnection?: (boolean | null | undefined) | null;
|
|
13
14
|
postmanTeamId?: (string | null | undefined) | null;
|
|
15
|
+
publisher?: (Publisher.Raw | null | undefined) | null;
|
|
14
16
|
}
|
|
15
17
|
}
|
package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { Publisher } from "../../../../types/Publisher.mjs";
|
|
3
4
|
export const CreateOrganizationRequest = core.serialization.object({
|
|
4
5
|
organizationId: core.serialization.string(),
|
|
5
6
|
displayName: core.serialization.string().optionalNullable(),
|
|
@@ -8,4 +9,5 @@ export const CreateOrganizationRequest = core.serialization.object({
|
|
|
8
9
|
enableGoogleConnection: core.serialization.boolean().optionalNullable(),
|
|
9
10
|
enablePostmanConnection: core.serialization.boolean().optionalNullable(),
|
|
10
11
|
postmanTeamId: core.serialization.string().optionalNullable(),
|
|
12
|
+
publisher: Publisher.optionalNullable(),
|
|
11
13
|
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { PublisherType } from "./PublisherType.mjs";
|
|
5
|
+
export declare const Publisher: core.serialization.ObjectSchema<serializers.Publisher.Raw, FernVenusApi.Publisher>;
|
|
6
|
+
export declare namespace Publisher {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: PublisherType.Raw;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { PublisherType } from "./PublisherType.mjs";
|
|
4
|
+
export const Publisher = core.serialization.object({
|
|
5
|
+
type: PublisherType,
|
|
6
|
+
id: core.serialization.string(),
|
|
7
|
+
});
|
|
@@ -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 PublisherDocsResponse: core.serialization.ObjectSchema<serializers.PublisherDocsResponse.Raw, FernVenusApi.PublisherDocsResponse>;
|
|
6
|
+
export declare namespace PublisherDocsResponse {
|
|
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 PublisherDocsResponse = core.serialization.object({
|
|
5
|
+
organizationId: core.serialization.string(),
|
|
6
|
+
claimStatus: ClaimStatus,
|
|
7
|
+
docsUrl: core.serialization.string(),
|
|
8
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
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 PublisherType: core.serialization.Schema<serializers.PublisherType.Raw, FernVenusApi.PublisherType>;
|
|
5
|
+
export declare namespace PublisherType {
|
|
6
|
+
type Raw = "postman_team" | "postman_user";
|
|
7
|
+
}
|
|
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
|
|
|
37
37
|
export * from "./Organization.mjs";
|
|
38
38
|
export * from "./OrganizationsPage.mjs";
|
|
39
39
|
export * from "./PostmanTeamDocsResponse.mjs";
|
|
40
|
+
export * from "./Publisher.mjs";
|
|
41
|
+
export * from "./PublisherDocsResponse.mjs";
|
|
42
|
+
export * from "./PublisherType.mjs";
|
|
40
43
|
export * from "./Pypi.mjs";
|
|
41
44
|
export * from "./PypiRegistryToken.mjs";
|
|
42
45
|
export * from "./RegistryToken.mjs";
|
|
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.mjs";
|
|
|
37
37
|
export * from "./Organization.mjs";
|
|
38
38
|
export * from "./OrganizationsPage.mjs";
|
|
39
39
|
export * from "./PostmanTeamDocsResponse.mjs";
|
|
40
|
+
export * from "./Publisher.mjs";
|
|
41
|
+
export * from "./PublisherDocsResponse.mjs";
|
|
42
|
+
export * from "./PublisherType.mjs";
|
|
40
43
|
export * from "./Pypi.mjs";
|
|
41
44
|
export * from "./PypiRegistryToken.mjs";
|
|
42
45
|
export * from "./RegistryToken.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "15.0.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "
|
|
1
|
+
export const SDK_VERSION = "15.0.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1000,8 +1000,9 @@ await client.guestSession.claim({
|
|
|
1000
1000
|
|
|
1001
1001
|
Creates an organization with the caller as its admin. Called with the
|
|
1002
1002
|
provisioner token, it instead creates an unclaimed organization, with no
|
|
1003
|
-
Auth0 organization or members,
|
|
1004
|
-
Creating it again for the same
|
|
1003
|
+
Auth0 organization or members, held for the required publisher (or
|
|
1004
|
+
postmanTeamId). Creating it again for the same publisher returns the
|
|
1005
|
+
same organization, which may have another ID than the one asked for.
|
|
1005
1006
|
A normal signup gets 409 if its postmanTeamId is linked to an unclaimed
|
|
1006
1007
|
organization, since that team claims its organization through Postman.
|
|
1007
1008
|
</dd>
|
|
@@ -1355,6 +1356,75 @@ await client.organization.getPostmanTeamDocs({
|
|
|
1355
1356
|
</dl>
|
|
1356
1357
|
|
|
1357
1358
|
|
|
1359
|
+
</dd>
|
|
1360
|
+
</dl>
|
|
1361
|
+
</details>
|
|
1362
|
+
|
|
1363
|
+
<details><summary><code>client.organization.<a href="/src/api/resources/organization/client/Client.ts">getPublisherDocs</a>({ ...params }) -> core.APIResponse<FernVenusApi.PublisherDocsResponse, FernVenusApi.organization.getPublisherDocs.Error></code></summary>
|
|
1364
|
+
<dl>
|
|
1365
|
+
<dd>
|
|
1366
|
+
|
|
1367
|
+
#### 📝 Description
|
|
1368
|
+
|
|
1369
|
+
<dl>
|
|
1370
|
+
<dd>
|
|
1371
|
+
|
|
1372
|
+
<dl>
|
|
1373
|
+
<dd>
|
|
1374
|
+
|
|
1375
|
+
The claimable organization held for a publisher, with its claim
|
|
1376
|
+
status and the address of its docs site. Only Postman's integration
|
|
1377
|
+
service token can call it. 404 when the publisher has no claimable
|
|
1378
|
+
organization, or its docs address isn't set.
|
|
1379
|
+
</dd>
|
|
1380
|
+
</dl>
|
|
1381
|
+
</dd>
|
|
1382
|
+
</dl>
|
|
1383
|
+
|
|
1384
|
+
#### 🔌 Usage
|
|
1385
|
+
|
|
1386
|
+
<dl>
|
|
1387
|
+
<dd>
|
|
1388
|
+
|
|
1389
|
+
<dl>
|
|
1390
|
+
<dd>
|
|
1391
|
+
|
|
1392
|
+
```typescript
|
|
1393
|
+
await client.organization.getPublisherDocs({
|
|
1394
|
+
publisherType: "postman_team",
|
|
1395
|
+
publisherId: "publisher_id"
|
|
1396
|
+
});
|
|
1397
|
+
|
|
1398
|
+
```
|
|
1399
|
+
</dd>
|
|
1400
|
+
</dl>
|
|
1401
|
+
</dd>
|
|
1402
|
+
</dl>
|
|
1403
|
+
|
|
1404
|
+
#### ⚙️ Parameters
|
|
1405
|
+
|
|
1406
|
+
<dl>
|
|
1407
|
+
<dd>
|
|
1408
|
+
|
|
1409
|
+
<dl>
|
|
1410
|
+
<dd>
|
|
1411
|
+
|
|
1412
|
+
**request:** `FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest`
|
|
1413
|
+
|
|
1414
|
+
</dd>
|
|
1415
|
+
</dl>
|
|
1416
|
+
|
|
1417
|
+
<dl>
|
|
1418
|
+
<dd>
|
|
1419
|
+
|
|
1420
|
+
**requestOptions:** `OrganizationClient.RequestOptions`
|
|
1421
|
+
|
|
1422
|
+
</dd>
|
|
1423
|
+
</dl>
|
|
1424
|
+
</dd>
|
|
1425
|
+
</dl>
|
|
1426
|
+
|
|
1427
|
+
|
|
1358
1428
|
</dd>
|
|
1359
1429
|
</dl>
|
|
1360
1430
|
</details>
|
|
@@ -1505,7 +1575,9 @@ await client.organization.getClaimStatus({
|
|
|
1505
1575
|
|
|
1506
1576
|
Issues a claim link for an unclaimed organization, bound to one Postman
|
|
1507
1577
|
user and valid for 15 minutes. Only the provisioner token and Postman's
|
|
1508
|
-
integration service token can call it.
|
|
1578
|
+
integration service token can call it. For an organization held for a
|
|
1579
|
+
Postman user, the caller must name that user as the publisher, or gets
|
|
1580
|
+
403 PublisherMismatchError.
|
|
1509
1581
|
</dd>
|
|
1510
1582
|
</dl>
|
|
1511
1583
|
</dd>
|
|
@@ -1779,7 +1851,9 @@ the organization's docs site. The organization is claimed for the
|
|
|
1779
1851
|
Postman user the link was issued for, who becomes its admin if they
|
|
1780
1852
|
already have a Fern account; otherwise the organization starts with
|
|
1781
1853
|
no members, and the dashboard adds the team's Postman users when they
|
|
1782
|
-
sign in with Postman.
|
|
1854
|
+
sign in with Postman. An organization with no team would then stay
|
|
1855
|
+
empty, so without a Fern account it gets 403 FernAccountRequiredError
|
|
1856
|
+
and stays unclaimed. Public: the link is the secret, and only the
|
|
1783
1857
|
provisioner and Postman's integration service can get one. The first
|
|
1784
1858
|
claim wins, and a retry finishes a claim that failed partway.
|
|
1785
1859
|
</dd>
|