qovery-typescript-axios 1.1.941 → 1.1.942
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/api.ts +441 -0
- package/dist/api.d.ts +293 -0
- package/dist/api.js +267 -3
- package/dist/esm/api.d.ts +293 -0
- package/dist/esm/api.js +260 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -19611,6 +19611,166 @@ export interface Organization {
|
|
|
19611
19611
|
}
|
|
19612
19612
|
|
|
19613
19613
|
|
|
19614
|
+
/**
|
|
19615
|
+
*
|
|
19616
|
+
* @export
|
|
19617
|
+
* @interface OrganizationAgentApiToken
|
|
19618
|
+
*/
|
|
19619
|
+
export interface OrganizationAgentApiToken {
|
|
19620
|
+
/**
|
|
19621
|
+
*
|
|
19622
|
+
* @type {string}
|
|
19623
|
+
* @memberof OrganizationAgentApiToken
|
|
19624
|
+
*/
|
|
19625
|
+
'id': string;
|
|
19626
|
+
/**
|
|
19627
|
+
*
|
|
19628
|
+
* @type {string}
|
|
19629
|
+
* @memberof OrganizationAgentApiToken
|
|
19630
|
+
*/
|
|
19631
|
+
'created_at': string;
|
|
19632
|
+
/**
|
|
19633
|
+
*
|
|
19634
|
+
* @type {string}
|
|
19635
|
+
* @memberof OrganizationAgentApiToken
|
|
19636
|
+
*/
|
|
19637
|
+
'updated_at'?: string;
|
|
19638
|
+
/**
|
|
19639
|
+
*
|
|
19640
|
+
* @type {string}
|
|
19641
|
+
* @memberof OrganizationAgentApiToken
|
|
19642
|
+
*/
|
|
19643
|
+
'name'?: string;
|
|
19644
|
+
/**
|
|
19645
|
+
*
|
|
19646
|
+
* @type {string}
|
|
19647
|
+
* @memberof OrganizationAgentApiToken
|
|
19648
|
+
*/
|
|
19649
|
+
'description'?: string;
|
|
19650
|
+
/**
|
|
19651
|
+
* the Open Policy Agent (rego) policy evaluated on every request made with this token
|
|
19652
|
+
* @type {string}
|
|
19653
|
+
* @memberof OrganizationAgentApiToken
|
|
19654
|
+
*/
|
|
19655
|
+
'opa_policy'?: string;
|
|
19656
|
+
/**
|
|
19657
|
+
*
|
|
19658
|
+
* @type {string}
|
|
19659
|
+
* @memberof OrganizationAgentApiToken
|
|
19660
|
+
*/
|
|
19661
|
+
'creator_name'?: string | null;
|
|
19662
|
+
/**
|
|
19663
|
+
*
|
|
19664
|
+
* @type {string}
|
|
19665
|
+
* @memberof OrganizationAgentApiToken
|
|
19666
|
+
*/
|
|
19667
|
+
'expires_at'?: string | null;
|
|
19668
|
+
}
|
|
19669
|
+
/**
|
|
19670
|
+
*
|
|
19671
|
+
* @export
|
|
19672
|
+
* @interface OrganizationAgentApiTokenCreate
|
|
19673
|
+
*/
|
|
19674
|
+
export interface OrganizationAgentApiTokenCreate {
|
|
19675
|
+
/**
|
|
19676
|
+
*
|
|
19677
|
+
* @type {string}
|
|
19678
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19679
|
+
*/
|
|
19680
|
+
'id': string;
|
|
19681
|
+
/**
|
|
19682
|
+
*
|
|
19683
|
+
* @type {string}
|
|
19684
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19685
|
+
*/
|
|
19686
|
+
'created_at': string;
|
|
19687
|
+
/**
|
|
19688
|
+
*
|
|
19689
|
+
* @type {string}
|
|
19690
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19691
|
+
*/
|
|
19692
|
+
'updated_at'?: string;
|
|
19693
|
+
/**
|
|
19694
|
+
*
|
|
19695
|
+
* @type {string}
|
|
19696
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19697
|
+
*/
|
|
19698
|
+
'name'?: string;
|
|
19699
|
+
/**
|
|
19700
|
+
*
|
|
19701
|
+
* @type {string}
|
|
19702
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19703
|
+
*/
|
|
19704
|
+
'description'?: string;
|
|
19705
|
+
/**
|
|
19706
|
+
* the generated token to send in \'Authorization\' header prefixed by \'Token \'. It is returned only here and cannot be retrieved afterwards.
|
|
19707
|
+
* @type {string}
|
|
19708
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19709
|
+
*/
|
|
19710
|
+
'token'?: string;
|
|
19711
|
+
/**
|
|
19712
|
+
*
|
|
19713
|
+
* @type {string}
|
|
19714
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19715
|
+
*/
|
|
19716
|
+
'creator_name'?: string | null;
|
|
19717
|
+
/**
|
|
19718
|
+
*
|
|
19719
|
+
* @type {string}
|
|
19720
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19721
|
+
*/
|
|
19722
|
+
'user_sub'?: string;
|
|
19723
|
+
/**
|
|
19724
|
+
*
|
|
19725
|
+
* @type {string}
|
|
19726
|
+
* @memberof OrganizationAgentApiTokenCreate
|
|
19727
|
+
*/
|
|
19728
|
+
'expires_at'?: string | null;
|
|
19729
|
+
}
|
|
19730
|
+
/**
|
|
19731
|
+
*
|
|
19732
|
+
* @export
|
|
19733
|
+
* @interface OrganizationAgentApiTokenCreateRequest
|
|
19734
|
+
*/
|
|
19735
|
+
export interface OrganizationAgentApiTokenCreateRequest {
|
|
19736
|
+
/**
|
|
19737
|
+
*
|
|
19738
|
+
* @type {string}
|
|
19739
|
+
* @memberof OrganizationAgentApiTokenCreateRequest
|
|
19740
|
+
*/
|
|
19741
|
+
'name': string;
|
|
19742
|
+
/**
|
|
19743
|
+
*
|
|
19744
|
+
* @type {string}
|
|
19745
|
+
* @memberof OrganizationAgentApiTokenCreateRequest
|
|
19746
|
+
*/
|
|
19747
|
+
'description'?: string;
|
|
19748
|
+
/**
|
|
19749
|
+
* Open Policy Agent (rego) rule definitions, without a `package` declaration: Qovery prepends a per-token package so that one token\'s rules cannot authorize another\'s. The policy must define an `allow` rule, and the request is denied unless it evaluates to true.
|
|
19750
|
+
* @type {string}
|
|
19751
|
+
* @memberof OrganizationAgentApiTokenCreateRequest
|
|
19752
|
+
*/
|
|
19753
|
+
'opa_policy': string;
|
|
19754
|
+
/**
|
|
19755
|
+
*
|
|
19756
|
+
* @type {string}
|
|
19757
|
+
* @memberof OrganizationAgentApiTokenCreateRequest
|
|
19758
|
+
*/
|
|
19759
|
+
'expires_at'?: string | null;
|
|
19760
|
+
}
|
|
19761
|
+
/**
|
|
19762
|
+
*
|
|
19763
|
+
* @export
|
|
19764
|
+
* @interface OrganizationAgentApiTokenResponseList
|
|
19765
|
+
*/
|
|
19766
|
+
export interface OrganizationAgentApiTokenResponseList {
|
|
19767
|
+
/**
|
|
19768
|
+
*
|
|
19769
|
+
* @type {Array<OrganizationAgentApiToken>}
|
|
19770
|
+
* @memberof OrganizationAgentApiTokenResponseList
|
|
19771
|
+
*/
|
|
19772
|
+
'results'?: Array<OrganizationAgentApiToken>;
|
|
19773
|
+
}
|
|
19614
19774
|
/**
|
|
19615
19775
|
*
|
|
19616
19776
|
* @export
|
|
@@ -64248,6 +64408,287 @@ export class OrganizationAccountGitRepositoriesApi extends BaseAPI {
|
|
|
64248
64408
|
|
|
64249
64409
|
|
|
64250
64410
|
|
|
64411
|
+
/**
|
|
64412
|
+
* OrganizationAgentApiTokenApi - axios parameter creator
|
|
64413
|
+
* @export
|
|
64414
|
+
*/
|
|
64415
|
+
export const OrganizationAgentApiTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
64416
|
+
return {
|
|
64417
|
+
/**
|
|
64418
|
+
* Create an agent api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, an agent api token carries **no organization role**. The Open Policy Agent (rego) policy attached to it is evaluated on every request and is the only thing constraining what the token can do: a policy that allows everything grants full organization admin access. For that reason only an organization owner or admin can create one. The generated token value is returned only in this response and cannot be retrieved afterwards.
|
|
64419
|
+
* @summary Create an organization agent api token
|
|
64420
|
+
* @param {string} organizationId Organization ID
|
|
64421
|
+
* @param {OrganizationAgentApiTokenCreateRequest} [organizationAgentApiTokenCreateRequest]
|
|
64422
|
+
* @param {*} [options] Override http request option.
|
|
64423
|
+
* @throws {RequiredError}
|
|
64424
|
+
*/
|
|
64425
|
+
createOrganizationAgentApiToken: async (organizationId: string, organizationAgentApiTokenCreateRequest?: OrganizationAgentApiTokenCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
64426
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
64427
|
+
assertParamExists('createOrganizationAgentApiToken', 'organizationId', organizationId)
|
|
64428
|
+
const localVarPath = `/organization/{organizationId}/agentApiToken`
|
|
64429
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
64430
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64431
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64432
|
+
let baseOptions;
|
|
64433
|
+
if (configuration) {
|
|
64434
|
+
baseOptions = configuration.baseOptions;
|
|
64435
|
+
}
|
|
64436
|
+
|
|
64437
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64438
|
+
const localVarHeaderParameter = {} as any;
|
|
64439
|
+
const localVarQueryParameter = {} as any;
|
|
64440
|
+
|
|
64441
|
+
// authentication ApiKeyAuth required
|
|
64442
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
64443
|
+
|
|
64444
|
+
// authentication bearerAuth required
|
|
64445
|
+
// http bearer authentication required
|
|
64446
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
64447
|
+
|
|
64448
|
+
|
|
64449
|
+
|
|
64450
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
64451
|
+
|
|
64452
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64454
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
64455
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationAgentApiTokenCreateRequest, localVarRequestOptions, configuration)
|
|
64456
|
+
|
|
64457
|
+
return {
|
|
64458
|
+
url: toPathString(localVarUrlObj),
|
|
64459
|
+
options: localVarRequestOptions,
|
|
64460
|
+
};
|
|
64461
|
+
},
|
|
64462
|
+
/**
|
|
64463
|
+
* Delete organization agent api token
|
|
64464
|
+
* @summary Delete organization agent api token
|
|
64465
|
+
* @param {string} organizationId Organization ID
|
|
64466
|
+
* @param {string} agentApiTokenId Organization Agent Api Token ID
|
|
64467
|
+
* @param {*} [options] Override http request option.
|
|
64468
|
+
* @throws {RequiredError}
|
|
64469
|
+
*/
|
|
64470
|
+
deleteOrganizationAgentApiToken: async (organizationId: string, agentApiTokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
64471
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
64472
|
+
assertParamExists('deleteOrganizationAgentApiToken', 'organizationId', organizationId)
|
|
64473
|
+
// verify required parameter 'agentApiTokenId' is not null or undefined
|
|
64474
|
+
assertParamExists('deleteOrganizationAgentApiToken', 'agentApiTokenId', agentApiTokenId)
|
|
64475
|
+
const localVarPath = `/organization/{organizationId}/agentApiToken/{agentApiTokenId}`
|
|
64476
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
64477
|
+
.replace(`{${"agentApiTokenId"}}`, encodeURIComponent(String(agentApiTokenId)));
|
|
64478
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64479
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64480
|
+
let baseOptions;
|
|
64481
|
+
if (configuration) {
|
|
64482
|
+
baseOptions = configuration.baseOptions;
|
|
64483
|
+
}
|
|
64484
|
+
|
|
64485
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
64486
|
+
const localVarHeaderParameter = {} as any;
|
|
64487
|
+
const localVarQueryParameter = {} as any;
|
|
64488
|
+
|
|
64489
|
+
// authentication ApiKeyAuth required
|
|
64490
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
64491
|
+
|
|
64492
|
+
// authentication bearerAuth required
|
|
64493
|
+
// http bearer authentication required
|
|
64494
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
64495
|
+
|
|
64496
|
+
|
|
64497
|
+
|
|
64498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64500
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
64501
|
+
|
|
64502
|
+
return {
|
|
64503
|
+
url: toPathString(localVarUrlObj),
|
|
64504
|
+
options: localVarRequestOptions,
|
|
64505
|
+
};
|
|
64506
|
+
},
|
|
64507
|
+
/**
|
|
64508
|
+
* List the agent api tokens of the organization, each with the Open Policy Agent (rego) policy it carries. The token value itself is never returned here, it is only shown once at creation.
|
|
64509
|
+
* @summary List organization agent api tokens
|
|
64510
|
+
* @param {string} organizationId Organization ID
|
|
64511
|
+
* @param {*} [options] Override http request option.
|
|
64512
|
+
* @throws {RequiredError}
|
|
64513
|
+
*/
|
|
64514
|
+
listOrganizationAgentApiTokens: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
64515
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
64516
|
+
assertParamExists('listOrganizationAgentApiTokens', 'organizationId', organizationId)
|
|
64517
|
+
const localVarPath = `/organization/{organizationId}/agentApiToken`
|
|
64518
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
64519
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64520
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
64521
|
+
let baseOptions;
|
|
64522
|
+
if (configuration) {
|
|
64523
|
+
baseOptions = configuration.baseOptions;
|
|
64524
|
+
}
|
|
64525
|
+
|
|
64526
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
64527
|
+
const localVarHeaderParameter = {} as any;
|
|
64528
|
+
const localVarQueryParameter = {} as any;
|
|
64529
|
+
|
|
64530
|
+
// authentication ApiKeyAuth required
|
|
64531
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
64532
|
+
|
|
64533
|
+
// authentication bearerAuth required
|
|
64534
|
+
// http bearer authentication required
|
|
64535
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
64536
|
+
|
|
64537
|
+
|
|
64538
|
+
|
|
64539
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
64540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64541
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
64542
|
+
|
|
64543
|
+
return {
|
|
64544
|
+
url: toPathString(localVarUrlObj),
|
|
64545
|
+
options: localVarRequestOptions,
|
|
64546
|
+
};
|
|
64547
|
+
},
|
|
64548
|
+
}
|
|
64549
|
+
};
|
|
64550
|
+
|
|
64551
|
+
/**
|
|
64552
|
+
* OrganizationAgentApiTokenApi - functional programming interface
|
|
64553
|
+
* @export
|
|
64554
|
+
*/
|
|
64555
|
+
export const OrganizationAgentApiTokenApiFp = function(configuration?: Configuration) {
|
|
64556
|
+
const localVarAxiosParamCreator = OrganizationAgentApiTokenApiAxiosParamCreator(configuration)
|
|
64557
|
+
return {
|
|
64558
|
+
/**
|
|
64559
|
+
* Create an agent api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, an agent api token carries **no organization role**. The Open Policy Agent (rego) policy attached to it is evaluated on every request and is the only thing constraining what the token can do: a policy that allows everything grants full organization admin access. For that reason only an organization owner or admin can create one. The generated token value is returned only in this response and cannot be retrieved afterwards.
|
|
64560
|
+
* @summary Create an organization agent api token
|
|
64561
|
+
* @param {string} organizationId Organization ID
|
|
64562
|
+
* @param {OrganizationAgentApiTokenCreateRequest} [organizationAgentApiTokenCreateRequest]
|
|
64563
|
+
* @param {*} [options] Override http request option.
|
|
64564
|
+
* @throws {RequiredError}
|
|
64565
|
+
*/
|
|
64566
|
+
async createOrganizationAgentApiToken(organizationId: string, organizationAgentApiTokenCreateRequest?: OrganizationAgentApiTokenCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAgentApiTokenCreate>> {
|
|
64567
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationAgentApiToken(organizationId, organizationAgentApiTokenCreateRequest, options);
|
|
64568
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
64569
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationAgentApiTokenApi.createOrganizationAgentApiToken']?.[localVarOperationServerIndex]?.url;
|
|
64570
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
64571
|
+
},
|
|
64572
|
+
/**
|
|
64573
|
+
* Delete organization agent api token
|
|
64574
|
+
* @summary Delete organization agent api token
|
|
64575
|
+
* @param {string} organizationId Organization ID
|
|
64576
|
+
* @param {string} agentApiTokenId Organization Agent Api Token ID
|
|
64577
|
+
* @param {*} [options] Override http request option.
|
|
64578
|
+
* @throws {RequiredError}
|
|
64579
|
+
*/
|
|
64580
|
+
async deleteOrganizationAgentApiToken(organizationId: string, agentApiTokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
64581
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationAgentApiToken(organizationId, agentApiTokenId, options);
|
|
64582
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
64583
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationAgentApiTokenApi.deleteOrganizationAgentApiToken']?.[localVarOperationServerIndex]?.url;
|
|
64584
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
64585
|
+
},
|
|
64586
|
+
/**
|
|
64587
|
+
* List the agent api tokens of the organization, each with the Open Policy Agent (rego) policy it carries. The token value itself is never returned here, it is only shown once at creation.
|
|
64588
|
+
* @summary List organization agent api tokens
|
|
64589
|
+
* @param {string} organizationId Organization ID
|
|
64590
|
+
* @param {*} [options] Override http request option.
|
|
64591
|
+
* @throws {RequiredError}
|
|
64592
|
+
*/
|
|
64593
|
+
async listOrganizationAgentApiTokens(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAgentApiTokenResponseList>> {
|
|
64594
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationAgentApiTokens(organizationId, options);
|
|
64595
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
64596
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationAgentApiTokenApi.listOrganizationAgentApiTokens']?.[localVarOperationServerIndex]?.url;
|
|
64597
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
64598
|
+
},
|
|
64599
|
+
}
|
|
64600
|
+
};
|
|
64601
|
+
|
|
64602
|
+
/**
|
|
64603
|
+
* OrganizationAgentApiTokenApi - factory interface
|
|
64604
|
+
* @export
|
|
64605
|
+
*/
|
|
64606
|
+
export const OrganizationAgentApiTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
64607
|
+
const localVarFp = OrganizationAgentApiTokenApiFp(configuration)
|
|
64608
|
+
return {
|
|
64609
|
+
/**
|
|
64610
|
+
* Create an agent api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, an agent api token carries **no organization role**. The Open Policy Agent (rego) policy attached to it is evaluated on every request and is the only thing constraining what the token can do: a policy that allows everything grants full organization admin access. For that reason only an organization owner or admin can create one. The generated token value is returned only in this response and cannot be retrieved afterwards.
|
|
64611
|
+
* @summary Create an organization agent api token
|
|
64612
|
+
* @param {string} organizationId Organization ID
|
|
64613
|
+
* @param {OrganizationAgentApiTokenCreateRequest} [organizationAgentApiTokenCreateRequest]
|
|
64614
|
+
* @param {*} [options] Override http request option.
|
|
64615
|
+
* @throws {RequiredError}
|
|
64616
|
+
*/
|
|
64617
|
+
createOrganizationAgentApiToken(organizationId: string, organizationAgentApiTokenCreateRequest?: OrganizationAgentApiTokenCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationAgentApiTokenCreate> {
|
|
64618
|
+
return localVarFp.createOrganizationAgentApiToken(organizationId, organizationAgentApiTokenCreateRequest, options).then((request) => request(axios, basePath));
|
|
64619
|
+
},
|
|
64620
|
+
/**
|
|
64621
|
+
* Delete organization agent api token
|
|
64622
|
+
* @summary Delete organization agent api token
|
|
64623
|
+
* @param {string} organizationId Organization ID
|
|
64624
|
+
* @param {string} agentApiTokenId Organization Agent Api Token ID
|
|
64625
|
+
* @param {*} [options] Override http request option.
|
|
64626
|
+
* @throws {RequiredError}
|
|
64627
|
+
*/
|
|
64628
|
+
deleteOrganizationAgentApiToken(organizationId: string, agentApiTokenId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
64629
|
+
return localVarFp.deleteOrganizationAgentApiToken(organizationId, agentApiTokenId, options).then((request) => request(axios, basePath));
|
|
64630
|
+
},
|
|
64631
|
+
/**
|
|
64632
|
+
* List the agent api tokens of the organization, each with the Open Policy Agent (rego) policy it carries. The token value itself is never returned here, it is only shown once at creation.
|
|
64633
|
+
* @summary List organization agent api tokens
|
|
64634
|
+
* @param {string} organizationId Organization ID
|
|
64635
|
+
* @param {*} [options] Override http request option.
|
|
64636
|
+
* @throws {RequiredError}
|
|
64637
|
+
*/
|
|
64638
|
+
listOrganizationAgentApiTokens(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationAgentApiTokenResponseList> {
|
|
64639
|
+
return localVarFp.listOrganizationAgentApiTokens(organizationId, options).then((request) => request(axios, basePath));
|
|
64640
|
+
},
|
|
64641
|
+
};
|
|
64642
|
+
};
|
|
64643
|
+
|
|
64644
|
+
/**
|
|
64645
|
+
* OrganizationAgentApiTokenApi - object-oriented interface
|
|
64646
|
+
* @export
|
|
64647
|
+
* @class OrganizationAgentApiTokenApi
|
|
64648
|
+
* @extends {BaseAPI}
|
|
64649
|
+
*/
|
|
64650
|
+
export class OrganizationAgentApiTokenApi extends BaseAPI {
|
|
64651
|
+
/**
|
|
64652
|
+
* Create an agent api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, an agent api token carries **no organization role**. The Open Policy Agent (rego) policy attached to it is evaluated on every request and is the only thing constraining what the token can do: a policy that allows everything grants full organization admin access. For that reason only an organization owner or admin can create one. The generated token value is returned only in this response and cannot be retrieved afterwards.
|
|
64653
|
+
* @summary Create an organization agent api token
|
|
64654
|
+
* @param {string} organizationId Organization ID
|
|
64655
|
+
* @param {OrganizationAgentApiTokenCreateRequest} [organizationAgentApiTokenCreateRequest]
|
|
64656
|
+
* @param {*} [options] Override http request option.
|
|
64657
|
+
* @throws {RequiredError}
|
|
64658
|
+
* @memberof OrganizationAgentApiTokenApi
|
|
64659
|
+
*/
|
|
64660
|
+
public createOrganizationAgentApiToken(organizationId: string, organizationAgentApiTokenCreateRequest?: OrganizationAgentApiTokenCreateRequest, options?: RawAxiosRequestConfig) {
|
|
64661
|
+
return OrganizationAgentApiTokenApiFp(this.configuration).createOrganizationAgentApiToken(organizationId, organizationAgentApiTokenCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
64662
|
+
}
|
|
64663
|
+
|
|
64664
|
+
/**
|
|
64665
|
+
* Delete organization agent api token
|
|
64666
|
+
* @summary Delete organization agent api token
|
|
64667
|
+
* @param {string} organizationId Organization ID
|
|
64668
|
+
* @param {string} agentApiTokenId Organization Agent Api Token ID
|
|
64669
|
+
* @param {*} [options] Override http request option.
|
|
64670
|
+
* @throws {RequiredError}
|
|
64671
|
+
* @memberof OrganizationAgentApiTokenApi
|
|
64672
|
+
*/
|
|
64673
|
+
public deleteOrganizationAgentApiToken(organizationId: string, agentApiTokenId: string, options?: RawAxiosRequestConfig) {
|
|
64674
|
+
return OrganizationAgentApiTokenApiFp(this.configuration).deleteOrganizationAgentApiToken(organizationId, agentApiTokenId, options).then((request) => request(this.axios, this.basePath));
|
|
64675
|
+
}
|
|
64676
|
+
|
|
64677
|
+
/**
|
|
64678
|
+
* List the agent api tokens of the organization, each with the Open Policy Agent (rego) policy it carries. The token value itself is never returned here, it is only shown once at creation.
|
|
64679
|
+
* @summary List organization agent api tokens
|
|
64680
|
+
* @param {string} organizationId Organization ID
|
|
64681
|
+
* @param {*} [options] Override http request option.
|
|
64682
|
+
* @throws {RequiredError}
|
|
64683
|
+
* @memberof OrganizationAgentApiTokenApi
|
|
64684
|
+
*/
|
|
64685
|
+
public listOrganizationAgentApiTokens(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
64686
|
+
return OrganizationAgentApiTokenApiFp(this.configuration).listOrganizationAgentApiTokens(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
64687
|
+
}
|
|
64688
|
+
}
|
|
64689
|
+
|
|
64690
|
+
|
|
64691
|
+
|
|
64251
64692
|
/**
|
|
64252
64693
|
* OrganizationAnnotationsGroupApi - axios parameter creator
|
|
64253
64694
|
* @export
|