(github )
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . checkAccess ( {
org : "<value>" ,
repo : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.CheckAccessResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . configureCodeSamples ( {
org : "<value>" ,
repo : "<value>" ,
targetName : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.ConfigureCodeSamplesResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . configureMintlifyRepo ( {
input : "<value>" ,
org : "<value>" ,
overlays : [
"<value>" ,
] ,
repo : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.ConfigureMintlifyRepoResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . configureTarget ( {
org : "<value>" ,
repoName : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.ConfigureTargetResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . fetchPublishingPRs ( {
generateGenLockId : "<value>" ,
org : "<value>" ,
repo : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.FetchPublishingPRsResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
githubCheckPublishingSecrets
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . githubCheckPublishingSecrets ( {
generateGenLockId : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.GithubCheckPublishingSecretsResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
githubStorePublishingSecrets
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . githubStorePublishingSecrets ( {
generateGenLockId : "<value>" ,
secrets : {
"key" : "<value>" ,
} ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.GithubStorePublishingSecretsResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/
import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript" ;
async function run ( ) {
const sdk = new Speakeasy ( {
security : {
apiKey : "<YOUR_API_KEY_HERE>" ,
} ,
} ) ;
const res = await sdk . github . triggerAction ( {
genLockId : "<value>" ,
org : "<value>" ,
repoName : "<value>" ,
} ) ;
if ( res . statusCode == 200 ) {
// handle response
}
}
run ( ) ;
Promise<operations.TriggerActionResponse >
Error Object
Status Code
Content Type
errors.SDKError
4xx-5xx
/