@fern-api/venus-api-sdk 15.1.0 → 15.2.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/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/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -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/index.d.ts +1 -0
- package/dist/cjs/serialization/types/index.js +1 -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/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/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -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/index.d.mts +1 -0
- package/dist/esm/serialization/types/index.mjs +1 -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
|
@@ -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
|
+
});
|
|
@@ -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";
|
|
@@ -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";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "15.
|
|
1
|
+
export declare const SDK_VERSION = "15.2.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "15.
|
|
1
|
+
export const SDK_VERSION = "15.2.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>
|