@fern-api/venus-api-sdk 15.1.0 → 15.3.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.d.ts +1 -0
- package/dist/cjs/api/resources/organization/client/Client.d.ts +34 -0
- package/dist/cjs/api/resources/organization/client/Client.js +172 -0
- package/dist/cjs/api/resources/organization/client/claimGithub.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/claimGithub.js +66 -0
- package/dist/cjs/api/resources/organization/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/organization/client/index.js +3 -1
- package/dist/cjs/api/resources/organization/client/previewGithubClaim.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/previewGithubClaim.js +66 -0
- package/dist/cjs/api/resources/organization/client/requests/ClaimGithubOrganizationRequest.d.ts +11 -0
- package/dist/cjs/api/resources/organization/client/requests/ClaimGithubOrganizationRequest.js +3 -0
- package/dist/cjs/api/resources/organization/client/requests/GithubClaimPreviewRequest.d.ts +9 -0
- package/dist/cjs/api/resources/organization/client/requests/GithubClaimPreviewRequest.js +3 -0
- package/dist/cjs/api/resources/organization/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/GithubClaimPreviewResponse.d.ts +7 -0
- package/dist/cjs/api/types/GithubClaimPreviewResponse.js +3 -0
- package/dist/cjs/api/types/SettleArtifact.d.ts +12 -0
- package/dist/cjs/api/types/SettleArtifact.js +3 -0
- package/dist/cjs/api/types/index.d.ts +2 -0
- package/dist/cjs/api/types/index.js +2 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.js +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/ClaimGithubOrganizationRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/organization/client/requests/ClaimGithubOrganizationRequest.js +42 -0
- package/dist/cjs/serialization/resources/organization/client/requests/GithubClaimPreviewRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/organization/client/requests/GithubClaimPreviewRequest.js +41 -0
- package/dist/cjs/serialization/resources/organization/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/index.js +5 -1
- package/dist/cjs/serialization/types/GithubClaimPreviewResponse.d.ts +13 -0
- package/dist/cjs/serialization/types/GithubClaimPreviewResponse.js +45 -0
- package/dist/cjs/serialization/types/SettleArtifact.d.ts +12 -0
- package/dist/cjs/serialization/types/SettleArtifact.js +44 -0
- package/dist/cjs/serialization/types/index.d.ts +2 -0
- package/dist/cjs/serialization/types/index.js +2 -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/internalGuestSession/client/requests/SettleRequest.d.mts +1 -0
- package/dist/esm/api/resources/organization/client/Client.d.mts +34 -0
- package/dist/esm/api/resources/organization/client/Client.mjs +172 -0
- package/dist/esm/api/resources/organization/client/claimGithub.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/claimGithub.mjs +30 -0
- package/dist/esm/api/resources/organization/client/index.d.mts +2 -0
- package/dist/esm/api/resources/organization/client/index.mjs +2 -0
- package/dist/esm/api/resources/organization/client/previewGithubClaim.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/previewGithubClaim.mjs +30 -0
- package/dist/esm/api/resources/organization/client/requests/ClaimGithubOrganizationRequest.d.mts +11 -0
- package/dist/esm/api/resources/organization/client/requests/ClaimGithubOrganizationRequest.mjs +2 -0
- package/dist/esm/api/resources/organization/client/requests/GithubClaimPreviewRequest.d.mts +9 -0
- package/dist/esm/api/resources/organization/client/requests/GithubClaimPreviewRequest.mjs +2 -0
- package/dist/esm/api/resources/organization/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/GithubClaimPreviewResponse.d.mts +7 -0
- package/dist/esm/api/types/GithubClaimPreviewResponse.mjs +2 -0
- package/dist/esm/api/types/SettleArtifact.d.mts +12 -0
- package/dist/esm/api/types/SettleArtifact.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/ClaimGithubOrganizationRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/organization/client/requests/ClaimGithubOrganizationRequest.mjs +6 -0
- package/dist/esm/serialization/resources/organization/client/requests/GithubClaimPreviewRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/organization/client/requests/GithubClaimPreviewRequest.mjs +5 -0
- package/dist/esm/serialization/resources/organization/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/types/GithubClaimPreviewResponse.d.mts +13 -0
- package/dist/esm/serialization/types/GithubClaimPreviewResponse.mjs +9 -0
- package/dist/esm/serialization/types/SettleArtifact.d.mts +12 -0
- package/dist/esm/serialization/types/SettleArtifact.mjs +8 -0
- package/dist/esm/serialization/types/index.d.mts +2 -0
- package/dist/esm/serialization/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +138 -0
|
@@ -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.previewGithubClaim.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.previewGithubClaim.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
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { AddUserToOrgRequest } from "./AddUserToOrgRequest.mjs";
|
|
2
|
+
export type { ClaimGithubOrganizationRequest } from "./ClaimGithubOrganizationRequest.mjs";
|
|
2
3
|
export type { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.mjs";
|
|
3
4
|
export type { CreateOrganizationRequest } from "./CreateOrganizationRequest.mjs";
|
|
4
5
|
export type { DeleteOrganizationsOrgIdDeleteRequest } from "./DeleteOrganizationsOrgIdDeleteRequest.mjs";
|
|
@@ -9,6 +10,7 @@ export type { GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRe
|
|
|
9
10
|
export type { GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest } from "./GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.mjs";
|
|
10
11
|
export type { GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest } from "./GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.mjs";
|
|
11
12
|
export type { GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest } from "./GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.mjs";
|
|
13
|
+
export type { GithubClaimPreviewRequest } from "./GithubClaimPreviewRequest.mjs";
|
|
12
14
|
export type { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
|
|
13
15
|
export type { IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest } from "./IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.mjs";
|
|
14
16
|
export type { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the settling service built, echoed on the ``guest.*`` event so
|
|
3
|
+
* usage pages can list the docs site or SDK and not just the session.
|
|
4
|
+
* Nothing here is secret: the docs URL is public and the SDK name is the
|
|
5
|
+
* one the guest typed.
|
|
6
|
+
*/
|
|
7
|
+
export interface SettleArtifact {
|
|
8
|
+
docsUrl?: string | null;
|
|
9
|
+
sdkName?: string | null;
|
|
10
|
+
language?: string | null;
|
|
11
|
+
buildId?: string | null;
|
|
12
|
+
}
|
|
@@ -15,6 +15,7 @@ export * from "./DeleteGuestSessionResponseStatus.mjs";
|
|
|
15
15
|
export * from "./Expired.mjs";
|
|
16
16
|
export * from "./GetGuestSessionResponse.mjs";
|
|
17
17
|
export * from "./GetGuestSessionResponseStatus.mjs";
|
|
18
|
+
export * from "./GithubClaimPreviewResponse.mjs";
|
|
18
19
|
export * from "./GoneErrorBody.mjs";
|
|
19
20
|
export * from "./GoneErrorBodyContent.mjs";
|
|
20
21
|
export * from "./GoneErrorBodyContentCode.mjs";
|
|
@@ -51,6 +52,7 @@ export * from "./Revoked.mjs";
|
|
|
51
52
|
export * from "./ServiceUnavailableErrorBody.mjs";
|
|
52
53
|
export * from "./ServiceUnavailableErrorBodyContent.mjs";
|
|
53
54
|
export * from "./ServiceUnavailableErrorBodyContentCode.mjs";
|
|
55
|
+
export * from "./SettleArtifact.mjs";
|
|
54
56
|
export * from "./SettleResponse.mjs";
|
|
55
57
|
export * from "./SettleResponseReason.mjs";
|
|
56
58
|
export * from "./TokenMetadata.mjs";
|
|
@@ -15,6 +15,7 @@ export * from "./DeleteGuestSessionResponseStatus.mjs";
|
|
|
15
15
|
export * from "./Expired.mjs";
|
|
16
16
|
export * from "./GetGuestSessionResponse.mjs";
|
|
17
17
|
export * from "./GetGuestSessionResponseStatus.mjs";
|
|
18
|
+
export * from "./GithubClaimPreviewResponse.mjs";
|
|
18
19
|
export * from "./GoneErrorBody.mjs";
|
|
19
20
|
export * from "./GoneErrorBodyContent.mjs";
|
|
20
21
|
export * from "./GoneErrorBodyContentCode.mjs";
|
|
@@ -51,6 +52,7 @@ export * from "./Revoked.mjs";
|
|
|
51
52
|
export * from "./ServiceUnavailableErrorBody.mjs";
|
|
52
53
|
export * from "./ServiceUnavailableErrorBodyContent.mjs";
|
|
53
54
|
export * from "./ServiceUnavailableErrorBodyContentCode.mjs";
|
|
55
|
+
export * from "./SettleArtifact.mjs";
|
|
54
56
|
export * from "./SettleResponse.mjs";
|
|
55
57
|
export * from "./SettleResponseReason.mjs";
|
|
56
58
|
export * from "./TokenMetadata.mjs";
|
package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
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 { SettleArtifact } from "../../../../types/SettleArtifact.mjs";
|
|
4
5
|
import { SettleRequestOutcome } from "../../types/SettleRequestOutcome.mjs";
|
|
5
6
|
export declare const SettleRequest: core.serialization.Schema<serializers.SettleRequest.Raw, Omit<FernVenusApi.SettleRequest, "sessionId">>;
|
|
6
7
|
export declare namespace SettleRequest {
|
|
7
8
|
interface Raw {
|
|
8
9
|
reservationId: string;
|
|
9
10
|
outcome: SettleRequestOutcome.Raw;
|
|
11
|
+
artifact?: (SettleArtifact.Raw | null | undefined) | null;
|
|
10
12
|
}
|
|
11
13
|
}
|
package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
import { SettleArtifact } from "../../../../types/SettleArtifact.mjs";
|
|
3
4
|
import { SettleRequestOutcome } from "../../types/SettleRequestOutcome.mjs";
|
|
4
5
|
export const SettleRequest = core.serialization.object({
|
|
5
6
|
reservationId: core.serialization.string(),
|
|
6
7
|
outcome: SettleRequestOutcome,
|
|
8
|
+
artifact: SettleArtifact.optionalNullable(),
|
|
7
9
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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 ClaimGithubOrganizationRequest: core.serialization.Schema<serializers.ClaimGithubOrganizationRequest.Raw, FernVenusApi.ClaimGithubOrganizationRequest>;
|
|
5
|
+
export declare namespace ClaimGithubOrganizationRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
organizationId: string;
|
|
8
|
+
githubToken: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../../../../core/index.mjs";
|
|
3
|
+
export const ClaimGithubOrganizationRequest = core.serialization.object({
|
|
4
|
+
organizationId: core.serialization.string(),
|
|
5
|
+
githubToken: core.serialization.string(),
|
|
6
|
+
});
|
|
@@ -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 GithubClaimPreviewRequest: core.serialization.Schema<serializers.GithubClaimPreviewRequest.Raw, FernVenusApi.GithubClaimPreviewRequest>;
|
|
5
|
+
export declare namespace GithubClaimPreviewRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
organizationId: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { AddUserToOrgRequest } from "./AddUserToOrgRequest.mjs";
|
|
2
|
+
export { ClaimGithubOrganizationRequest } from "./ClaimGithubOrganizationRequest.mjs";
|
|
2
3
|
export { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.mjs";
|
|
3
4
|
export { CreateOrganizationRequest } from "./CreateOrganizationRequest.mjs";
|
|
5
|
+
export { GithubClaimPreviewRequest } from "./GithubClaimPreviewRequest.mjs";
|
|
4
6
|
export { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
|
|
5
7
|
export { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
|
|
6
8
|
export { SetDocsUrlRequest } from "./SetDocsUrlRequest.mjs";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export { AddUserToOrgRequest } from "./AddUserToOrgRequest.mjs";
|
|
2
|
+
export { ClaimGithubOrganizationRequest } from "./ClaimGithubOrganizationRequest.mjs";
|
|
2
3
|
export { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.mjs";
|
|
3
4
|
export { CreateOrganizationRequest } from "./CreateOrganizationRequest.mjs";
|
|
5
|
+
export { GithubClaimPreviewRequest } from "./GithubClaimPreviewRequest.mjs";
|
|
4
6
|
export { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
|
|
5
7
|
export { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
|
|
6
8
|
export { SetDocsUrlRequest } from "./SetDocsUrlRequest.mjs";
|
|
@@ -0,0 +1,13 @@
|
|
|
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 GithubClaimPreviewResponse: core.serialization.ObjectSchema<serializers.GithubClaimPreviewResponse.Raw, FernVenusApi.GithubClaimPreviewResponse>;
|
|
6
|
+
export declare namespace GithubClaimPreviewResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizationId: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
claimStatus: ClaimStatus.Raw;
|
|
11
|
+
repositoryId: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 GithubClaimPreviewResponse = core.serialization.object({
|
|
5
|
+
organizationId: core.serialization.string(),
|
|
6
|
+
displayName: core.serialization.string(),
|
|
7
|
+
claimStatus: ClaimStatus,
|
|
8
|
+
repositoryId: core.serialization.string(),
|
|
9
|
+
});
|
|
@@ -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
|
+
export declare const SettleArtifact: core.serialization.ObjectSchema<serializers.SettleArtifact.Raw, FernVenusApi.SettleArtifact>;
|
|
5
|
+
export declare namespace SettleArtifact {
|
|
6
|
+
interface Raw {
|
|
7
|
+
docsUrl?: (string | null | undefined) | null;
|
|
8
|
+
sdkName?: (string | null | undefined) | null;
|
|
9
|
+
language?: (string | null | undefined) | null;
|
|
10
|
+
buildId?: (string | null | undefined) | null;
|
|
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
|
+
export const SettleArtifact = core.serialization.object({
|
|
4
|
+
docsUrl: core.serialization.string().optionalNullable(),
|
|
5
|
+
sdkName: core.serialization.string().optionalNullable(),
|
|
6
|
+
language: core.serialization.string().optionalNullable(),
|
|
7
|
+
buildId: core.serialization.string().optionalNullable(),
|
|
8
|
+
});
|
|
@@ -15,6 +15,7 @@ export * from "./DeleteGuestSessionResponseStatus.mjs";
|
|
|
15
15
|
export * from "./Expired.mjs";
|
|
16
16
|
export * from "./GetGuestSessionResponse.mjs";
|
|
17
17
|
export * from "./GetGuestSessionResponseStatus.mjs";
|
|
18
|
+
export * from "./GithubClaimPreviewResponse.mjs";
|
|
18
19
|
export * from "./GoneErrorBody.mjs";
|
|
19
20
|
export * from "./GoneErrorBodyContent.mjs";
|
|
20
21
|
export * from "./GoneErrorBodyContentCode.mjs";
|
|
@@ -51,6 +52,7 @@ export * from "./Revoked.mjs";
|
|
|
51
52
|
export * from "./ServiceUnavailableErrorBody.mjs";
|
|
52
53
|
export * from "./ServiceUnavailableErrorBodyContent.mjs";
|
|
53
54
|
export * from "./ServiceUnavailableErrorBodyContentCode.mjs";
|
|
55
|
+
export * from "./SettleArtifact.mjs";
|
|
54
56
|
export * from "./SettleResponse.mjs";
|
|
55
57
|
export * from "./SettleResponseReason.mjs";
|
|
56
58
|
export * from "./TokenMetadata.mjs";
|
|
@@ -15,6 +15,7 @@ export * from "./DeleteGuestSessionResponseStatus.mjs";
|
|
|
15
15
|
export * from "./Expired.mjs";
|
|
16
16
|
export * from "./GetGuestSessionResponse.mjs";
|
|
17
17
|
export * from "./GetGuestSessionResponseStatus.mjs";
|
|
18
|
+
export * from "./GithubClaimPreviewResponse.mjs";
|
|
18
19
|
export * from "./GoneErrorBody.mjs";
|
|
19
20
|
export * from "./GoneErrorBodyContent.mjs";
|
|
20
21
|
export * from "./GoneErrorBodyContentCode.mjs";
|
|
@@ -51,6 +52,7 @@ export * from "./Revoked.mjs";
|
|
|
51
52
|
export * from "./ServiceUnavailableErrorBody.mjs";
|
|
52
53
|
export * from "./ServiceUnavailableErrorBodyContent.mjs";
|
|
53
54
|
export * from "./ServiceUnavailableErrorBodyContentCode.mjs";
|
|
55
|
+
export * from "./SettleArtifact.mjs";
|
|
54
56
|
export * from "./SettleResponse.mjs";
|
|
55
57
|
export * from "./SettleResponseReason.mjs";
|
|
56
58
|
export * from "./TokenMetadata.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "15.
|
|
1
|
+
export declare const SDK_VERSION = "15.3.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "15.
|
|
1
|
+
export const SDK_VERSION = "15.3.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -1907,6 +1907,144 @@ await client.organization.claimFromDocsSite({
|
|
|
1907
1907
|
</dl>
|
|
1908
1908
|
|
|
1909
1909
|
|
|
1910
|
+
</dd>
|
|
1911
|
+
</dl>
|
|
1912
|
+
</details>
|
|
1913
|
+
|
|
1914
|
+
<details><summary><code>client.organization.<a href="/src/api/resources/organization/client/Client.ts">claimGithub</a>({ ...params }) -> core.APIResponse<FernVenusApi.ClaimOrganizationResponse, FernVenusApi.organization.claimGithub.Error></code></summary>
|
|
1915
|
+
<dl>
|
|
1916
|
+
<dd>
|
|
1917
|
+
|
|
1918
|
+
#### 📝 Description
|
|
1919
|
+
|
|
1920
|
+
<dl>
|
|
1921
|
+
<dd>
|
|
1922
|
+
|
|
1923
|
+
<dl>
|
|
1924
|
+
<dd>
|
|
1925
|
+
|
|
1926
|
+
Claims an organization held for a GitHub repo. The caller, signed in to
|
|
1927
|
+
Fern, sends a GitHub token of theirs; Venus asks GitHub with it about the
|
|
1928
|
+
repo and claims the organization for the caller only if GitHub says they
|
|
1929
|
+
are an admin of it. They become the organization's admin. The token is
|
|
1930
|
+
used for that one request and never stored. The first claim wins, and a
|
|
1931
|
+
retry by the same user finishes a claim that failed partway.
|
|
1932
|
+
</dd>
|
|
1933
|
+
</dl>
|
|
1934
|
+
</dd>
|
|
1935
|
+
</dl>
|
|
1936
|
+
|
|
1937
|
+
#### 🔌 Usage
|
|
1938
|
+
|
|
1939
|
+
<dl>
|
|
1940
|
+
<dd>
|
|
1941
|
+
|
|
1942
|
+
<dl>
|
|
1943
|
+
<dd>
|
|
1944
|
+
|
|
1945
|
+
```typescript
|
|
1946
|
+
await client.organization.claimGithub({
|
|
1947
|
+
organizationId: "organizationId",
|
|
1948
|
+
githubToken: "githubToken"
|
|
1949
|
+
});
|
|
1950
|
+
|
|
1951
|
+
```
|
|
1952
|
+
</dd>
|
|
1953
|
+
</dl>
|
|
1954
|
+
</dd>
|
|
1955
|
+
</dl>
|
|
1956
|
+
|
|
1957
|
+
#### ⚙️ Parameters
|
|
1958
|
+
|
|
1959
|
+
<dl>
|
|
1960
|
+
<dd>
|
|
1961
|
+
|
|
1962
|
+
<dl>
|
|
1963
|
+
<dd>
|
|
1964
|
+
|
|
1965
|
+
**request:** `FernVenusApi.ClaimGithubOrganizationRequest`
|
|
1966
|
+
|
|
1967
|
+
</dd>
|
|
1968
|
+
</dl>
|
|
1969
|
+
|
|
1970
|
+
<dl>
|
|
1971
|
+
<dd>
|
|
1972
|
+
|
|
1973
|
+
**requestOptions:** `OrganizationClient.RequestOptions`
|
|
1974
|
+
|
|
1975
|
+
</dd>
|
|
1976
|
+
</dl>
|
|
1977
|
+
</dd>
|
|
1978
|
+
</dl>
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
</dd>
|
|
1982
|
+
</dl>
|
|
1983
|
+
</details>
|
|
1984
|
+
|
|
1985
|
+
<details><summary><code>client.organization.<a href="/src/api/resources/organization/client/Client.ts">previewGithubClaim</a>({ ...params }) -> core.APIResponse<FernVenusApi.GithubClaimPreviewResponse, FernVenusApi.organization.previewGithubClaim.Error></code></summary>
|
|
1986
|
+
<dl>
|
|
1987
|
+
<dd>
|
|
1988
|
+
|
|
1989
|
+
#### 📝 Description
|
|
1990
|
+
|
|
1991
|
+
<dl>
|
|
1992
|
+
<dd>
|
|
1993
|
+
|
|
1994
|
+
<dl>
|
|
1995
|
+
<dd>
|
|
1996
|
+
|
|
1997
|
+
What an organization held for a GitHub repo is, and whether it has been
|
|
1998
|
+
claimed, so the dashboard can show it before the user signs in. Public:
|
|
1999
|
+
the organization's docs site already names the repo.
|
|
2000
|
+
</dd>
|
|
2001
|
+
</dl>
|
|
2002
|
+
</dd>
|
|
2003
|
+
</dl>
|
|
2004
|
+
|
|
2005
|
+
#### 🔌 Usage
|
|
2006
|
+
|
|
2007
|
+
<dl>
|
|
2008
|
+
<dd>
|
|
2009
|
+
|
|
2010
|
+
<dl>
|
|
2011
|
+
<dd>
|
|
2012
|
+
|
|
2013
|
+
```typescript
|
|
2014
|
+
await client.organization.previewGithubClaim({
|
|
2015
|
+
organizationId: "organizationId"
|
|
2016
|
+
});
|
|
2017
|
+
|
|
2018
|
+
```
|
|
2019
|
+
</dd>
|
|
2020
|
+
</dl>
|
|
2021
|
+
</dd>
|
|
2022
|
+
</dl>
|
|
2023
|
+
|
|
2024
|
+
#### ⚙️ Parameters
|
|
2025
|
+
|
|
2026
|
+
<dl>
|
|
2027
|
+
<dd>
|
|
2028
|
+
|
|
2029
|
+
<dl>
|
|
2030
|
+
<dd>
|
|
2031
|
+
|
|
2032
|
+
**request:** `FernVenusApi.GithubClaimPreviewRequest`
|
|
2033
|
+
|
|
2034
|
+
</dd>
|
|
2035
|
+
</dl>
|
|
2036
|
+
|
|
2037
|
+
<dl>
|
|
2038
|
+
<dd>
|
|
2039
|
+
|
|
2040
|
+
**requestOptions:** `OrganizationClient.RequestOptions`
|
|
2041
|
+
|
|
2042
|
+
</dd>
|
|
2043
|
+
</dl>
|
|
2044
|
+
</dd>
|
|
2045
|
+
</dl>
|
|
2046
|
+
|
|
2047
|
+
|
|
1910
2048
|
</dd>
|
|
1911
2049
|
</dl>
|
|
1912
2050
|
</details>
|