qovery-typescript-axios 1.1.941 → 1.1.943
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 +266 -2
- package/dist/esm/api.d.ts +293 -0
- package/dist/esm/api.js +260 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -21167,6 +21167,166 @@ export const OrganizationOnboardingStatusEnum = {
|
|
|
21167
21167
|
export type OrganizationOnboardingStatusEnum = typeof OrganizationOnboardingStatusEnum[keyof typeof OrganizationOnboardingStatusEnum];
|
|
21168
21168
|
|
|
21169
21169
|
|
|
21170
|
+
/**
|
|
21171
|
+
*
|
|
21172
|
+
* @export
|
|
21173
|
+
* @interface OrganizationPolicyApiToken
|
|
21174
|
+
*/
|
|
21175
|
+
export interface OrganizationPolicyApiToken {
|
|
21176
|
+
/**
|
|
21177
|
+
*
|
|
21178
|
+
* @type {string}
|
|
21179
|
+
* @memberof OrganizationPolicyApiToken
|
|
21180
|
+
*/
|
|
21181
|
+
'id': string;
|
|
21182
|
+
/**
|
|
21183
|
+
*
|
|
21184
|
+
* @type {string}
|
|
21185
|
+
* @memberof OrganizationPolicyApiToken
|
|
21186
|
+
*/
|
|
21187
|
+
'created_at': string;
|
|
21188
|
+
/**
|
|
21189
|
+
*
|
|
21190
|
+
* @type {string}
|
|
21191
|
+
* @memberof OrganizationPolicyApiToken
|
|
21192
|
+
*/
|
|
21193
|
+
'updated_at'?: string;
|
|
21194
|
+
/**
|
|
21195
|
+
*
|
|
21196
|
+
* @type {string}
|
|
21197
|
+
* @memberof OrganizationPolicyApiToken
|
|
21198
|
+
*/
|
|
21199
|
+
'name'?: string;
|
|
21200
|
+
/**
|
|
21201
|
+
*
|
|
21202
|
+
* @type {string}
|
|
21203
|
+
* @memberof OrganizationPolicyApiToken
|
|
21204
|
+
*/
|
|
21205
|
+
'description'?: string;
|
|
21206
|
+
/**
|
|
21207
|
+
* the Open Policy Agent (rego) policy evaluated on every request made with this token
|
|
21208
|
+
* @type {string}
|
|
21209
|
+
* @memberof OrganizationPolicyApiToken
|
|
21210
|
+
*/
|
|
21211
|
+
'opa_policy'?: string;
|
|
21212
|
+
/**
|
|
21213
|
+
*
|
|
21214
|
+
* @type {string}
|
|
21215
|
+
* @memberof OrganizationPolicyApiToken
|
|
21216
|
+
*/
|
|
21217
|
+
'creator_name'?: string | null;
|
|
21218
|
+
/**
|
|
21219
|
+
*
|
|
21220
|
+
* @type {string}
|
|
21221
|
+
* @memberof OrganizationPolicyApiToken
|
|
21222
|
+
*/
|
|
21223
|
+
'expires_at'?: string | null;
|
|
21224
|
+
}
|
|
21225
|
+
/**
|
|
21226
|
+
*
|
|
21227
|
+
* @export
|
|
21228
|
+
* @interface OrganizationPolicyApiTokenCreate
|
|
21229
|
+
*/
|
|
21230
|
+
export interface OrganizationPolicyApiTokenCreate {
|
|
21231
|
+
/**
|
|
21232
|
+
*
|
|
21233
|
+
* @type {string}
|
|
21234
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21235
|
+
*/
|
|
21236
|
+
'id': string;
|
|
21237
|
+
/**
|
|
21238
|
+
*
|
|
21239
|
+
* @type {string}
|
|
21240
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21241
|
+
*/
|
|
21242
|
+
'created_at': string;
|
|
21243
|
+
/**
|
|
21244
|
+
*
|
|
21245
|
+
* @type {string}
|
|
21246
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21247
|
+
*/
|
|
21248
|
+
'updated_at'?: string;
|
|
21249
|
+
/**
|
|
21250
|
+
*
|
|
21251
|
+
* @type {string}
|
|
21252
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21253
|
+
*/
|
|
21254
|
+
'name'?: string;
|
|
21255
|
+
/**
|
|
21256
|
+
*
|
|
21257
|
+
* @type {string}
|
|
21258
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21259
|
+
*/
|
|
21260
|
+
'description'?: string;
|
|
21261
|
+
/**
|
|
21262
|
+
* the generated token to send in \'Authorization\' header prefixed by \'Token \'. It is returned only here and cannot be retrieved afterwards.
|
|
21263
|
+
* @type {string}
|
|
21264
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21265
|
+
*/
|
|
21266
|
+
'token'?: string;
|
|
21267
|
+
/**
|
|
21268
|
+
*
|
|
21269
|
+
* @type {string}
|
|
21270
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21271
|
+
*/
|
|
21272
|
+
'creator_name'?: string | null;
|
|
21273
|
+
/**
|
|
21274
|
+
*
|
|
21275
|
+
* @type {string}
|
|
21276
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21277
|
+
*/
|
|
21278
|
+
'user_sub'?: string;
|
|
21279
|
+
/**
|
|
21280
|
+
*
|
|
21281
|
+
* @type {string}
|
|
21282
|
+
* @memberof OrganizationPolicyApiTokenCreate
|
|
21283
|
+
*/
|
|
21284
|
+
'expires_at'?: string | null;
|
|
21285
|
+
}
|
|
21286
|
+
/**
|
|
21287
|
+
*
|
|
21288
|
+
* @export
|
|
21289
|
+
* @interface OrganizationPolicyApiTokenCreateRequest
|
|
21290
|
+
*/
|
|
21291
|
+
export interface OrganizationPolicyApiTokenCreateRequest {
|
|
21292
|
+
/**
|
|
21293
|
+
*
|
|
21294
|
+
* @type {string}
|
|
21295
|
+
* @memberof OrganizationPolicyApiTokenCreateRequest
|
|
21296
|
+
*/
|
|
21297
|
+
'name': string;
|
|
21298
|
+
/**
|
|
21299
|
+
*
|
|
21300
|
+
* @type {string}
|
|
21301
|
+
* @memberof OrganizationPolicyApiTokenCreateRequest
|
|
21302
|
+
*/
|
|
21303
|
+
'description'?: string;
|
|
21304
|
+
/**
|
|
21305
|
+
* 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.
|
|
21306
|
+
* @type {string}
|
|
21307
|
+
* @memberof OrganizationPolicyApiTokenCreateRequest
|
|
21308
|
+
*/
|
|
21309
|
+
'opa_policy': string;
|
|
21310
|
+
/**
|
|
21311
|
+
*
|
|
21312
|
+
* @type {string}
|
|
21313
|
+
* @memberof OrganizationPolicyApiTokenCreateRequest
|
|
21314
|
+
*/
|
|
21315
|
+
'expires_at'?: string | null;
|
|
21316
|
+
}
|
|
21317
|
+
/**
|
|
21318
|
+
*
|
|
21319
|
+
* @export
|
|
21320
|
+
* @interface OrganizationPolicyApiTokenResponseList
|
|
21321
|
+
*/
|
|
21322
|
+
export interface OrganizationPolicyApiTokenResponseList {
|
|
21323
|
+
/**
|
|
21324
|
+
*
|
|
21325
|
+
* @type {Array<OrganizationPolicyApiToken>}
|
|
21326
|
+
* @memberof OrganizationPolicyApiTokenResponseList
|
|
21327
|
+
*/
|
|
21328
|
+
'results'?: Array<OrganizationPolicyApiToken>;
|
|
21329
|
+
}
|
|
21170
21330
|
/**
|
|
21171
21331
|
*
|
|
21172
21332
|
* @export
|
|
@@ -68585,6 +68745,287 @@ export class OrganizationMainCallsApi extends BaseAPI {
|
|
|
68585
68745
|
|
|
68586
68746
|
|
|
68587
68747
|
|
|
68748
|
+
/**
|
|
68749
|
+
* OrganizationPolicyApiTokenApi - axios parameter creator
|
|
68750
|
+
* @export
|
|
68751
|
+
*/
|
|
68752
|
+
export const OrganizationPolicyApiTokenApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
68753
|
+
return {
|
|
68754
|
+
/**
|
|
68755
|
+
* Create a policy api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, a policy 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.
|
|
68756
|
+
* @summary Create an organization policy api token
|
|
68757
|
+
* @param {string} organizationId Organization ID
|
|
68758
|
+
* @param {OrganizationPolicyApiTokenCreateRequest} [organizationPolicyApiTokenCreateRequest]
|
|
68759
|
+
* @param {*} [options] Override http request option.
|
|
68760
|
+
* @throws {RequiredError}
|
|
68761
|
+
*/
|
|
68762
|
+
createOrganizationPolicyApiToken: async (organizationId: string, organizationPolicyApiTokenCreateRequest?: OrganizationPolicyApiTokenCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68763
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
68764
|
+
assertParamExists('createOrganizationPolicyApiToken', 'organizationId', organizationId)
|
|
68765
|
+
const localVarPath = `/organization/{organizationId}/policyApiToken`
|
|
68766
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
68767
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68768
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
68769
|
+
let baseOptions;
|
|
68770
|
+
if (configuration) {
|
|
68771
|
+
baseOptions = configuration.baseOptions;
|
|
68772
|
+
}
|
|
68773
|
+
|
|
68774
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
68775
|
+
const localVarHeaderParameter = {} as any;
|
|
68776
|
+
const localVarQueryParameter = {} as any;
|
|
68777
|
+
|
|
68778
|
+
// authentication ApiKeyAuth required
|
|
68779
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
68780
|
+
|
|
68781
|
+
// authentication bearerAuth required
|
|
68782
|
+
// http bearer authentication required
|
|
68783
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68784
|
+
|
|
68785
|
+
|
|
68786
|
+
|
|
68787
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
68788
|
+
|
|
68789
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
68790
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68791
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68792
|
+
localVarRequestOptions.data = serializeDataIfNeeded(organizationPolicyApiTokenCreateRequest, localVarRequestOptions, configuration)
|
|
68793
|
+
|
|
68794
|
+
return {
|
|
68795
|
+
url: toPathString(localVarUrlObj),
|
|
68796
|
+
options: localVarRequestOptions,
|
|
68797
|
+
};
|
|
68798
|
+
},
|
|
68799
|
+
/**
|
|
68800
|
+
* Delete organization policy api token
|
|
68801
|
+
* @summary Delete organization policy api token
|
|
68802
|
+
* @param {string} organizationId Organization ID
|
|
68803
|
+
* @param {string} policyApiTokenId Organization Policy Api Token ID
|
|
68804
|
+
* @param {*} [options] Override http request option.
|
|
68805
|
+
* @throws {RequiredError}
|
|
68806
|
+
*/
|
|
68807
|
+
deleteOrganizationPolicyApiToken: async (organizationId: string, policyApiTokenId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68808
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
68809
|
+
assertParamExists('deleteOrganizationPolicyApiToken', 'organizationId', organizationId)
|
|
68810
|
+
// verify required parameter 'policyApiTokenId' is not null or undefined
|
|
68811
|
+
assertParamExists('deleteOrganizationPolicyApiToken', 'policyApiTokenId', policyApiTokenId)
|
|
68812
|
+
const localVarPath = `/organization/{organizationId}/policyApiToken/{policyApiTokenId}`
|
|
68813
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
|
|
68814
|
+
.replace(`{${"policyApiTokenId"}}`, encodeURIComponent(String(policyApiTokenId)));
|
|
68815
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68816
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
68817
|
+
let baseOptions;
|
|
68818
|
+
if (configuration) {
|
|
68819
|
+
baseOptions = configuration.baseOptions;
|
|
68820
|
+
}
|
|
68821
|
+
|
|
68822
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
68823
|
+
const localVarHeaderParameter = {} as any;
|
|
68824
|
+
const localVarQueryParameter = {} as any;
|
|
68825
|
+
|
|
68826
|
+
// authentication ApiKeyAuth required
|
|
68827
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
68828
|
+
|
|
68829
|
+
// authentication bearerAuth required
|
|
68830
|
+
// http bearer authentication required
|
|
68831
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68832
|
+
|
|
68833
|
+
|
|
68834
|
+
|
|
68835
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
68836
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68837
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68838
|
+
|
|
68839
|
+
return {
|
|
68840
|
+
url: toPathString(localVarUrlObj),
|
|
68841
|
+
options: localVarRequestOptions,
|
|
68842
|
+
};
|
|
68843
|
+
},
|
|
68844
|
+
/**
|
|
68845
|
+
* List the policy 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.
|
|
68846
|
+
* @summary List organization policy api tokens
|
|
68847
|
+
* @param {string} organizationId Organization ID
|
|
68848
|
+
* @param {*} [options] Override http request option.
|
|
68849
|
+
* @throws {RequiredError}
|
|
68850
|
+
*/
|
|
68851
|
+
listOrganizationPolicyApiTokens: async (organizationId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
68852
|
+
// verify required parameter 'organizationId' is not null or undefined
|
|
68853
|
+
assertParamExists('listOrganizationPolicyApiTokens', 'organizationId', organizationId)
|
|
68854
|
+
const localVarPath = `/organization/{organizationId}/policyApiToken`
|
|
68855
|
+
.replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
|
|
68856
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
68857
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
68858
|
+
let baseOptions;
|
|
68859
|
+
if (configuration) {
|
|
68860
|
+
baseOptions = configuration.baseOptions;
|
|
68861
|
+
}
|
|
68862
|
+
|
|
68863
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
68864
|
+
const localVarHeaderParameter = {} as any;
|
|
68865
|
+
const localVarQueryParameter = {} as any;
|
|
68866
|
+
|
|
68867
|
+
// authentication ApiKeyAuth required
|
|
68868
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
68869
|
+
|
|
68870
|
+
// authentication bearerAuth required
|
|
68871
|
+
// http bearer authentication required
|
|
68872
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
68873
|
+
|
|
68874
|
+
|
|
68875
|
+
|
|
68876
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
68877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68878
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
68879
|
+
|
|
68880
|
+
return {
|
|
68881
|
+
url: toPathString(localVarUrlObj),
|
|
68882
|
+
options: localVarRequestOptions,
|
|
68883
|
+
};
|
|
68884
|
+
},
|
|
68885
|
+
}
|
|
68886
|
+
};
|
|
68887
|
+
|
|
68888
|
+
/**
|
|
68889
|
+
* OrganizationPolicyApiTokenApi - functional programming interface
|
|
68890
|
+
* @export
|
|
68891
|
+
*/
|
|
68892
|
+
export const OrganizationPolicyApiTokenApiFp = function(configuration?: Configuration) {
|
|
68893
|
+
const localVarAxiosParamCreator = OrganizationPolicyApiTokenApiAxiosParamCreator(configuration)
|
|
68894
|
+
return {
|
|
68895
|
+
/**
|
|
68896
|
+
* Create a policy api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, a policy 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.
|
|
68897
|
+
* @summary Create an organization policy api token
|
|
68898
|
+
* @param {string} organizationId Organization ID
|
|
68899
|
+
* @param {OrganizationPolicyApiTokenCreateRequest} [organizationPolicyApiTokenCreateRequest]
|
|
68900
|
+
* @param {*} [options] Override http request option.
|
|
68901
|
+
* @throws {RequiredError}
|
|
68902
|
+
*/
|
|
68903
|
+
async createOrganizationPolicyApiToken(organizationId: string, organizationPolicyApiTokenCreateRequest?: OrganizationPolicyApiTokenCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationPolicyApiTokenCreate>> {
|
|
68904
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationPolicyApiToken(organizationId, organizationPolicyApiTokenCreateRequest, options);
|
|
68905
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
68906
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationPolicyApiTokenApi.createOrganizationPolicyApiToken']?.[localVarOperationServerIndex]?.url;
|
|
68907
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
68908
|
+
},
|
|
68909
|
+
/**
|
|
68910
|
+
* Delete organization policy api token
|
|
68911
|
+
* @summary Delete organization policy api token
|
|
68912
|
+
* @param {string} organizationId Organization ID
|
|
68913
|
+
* @param {string} policyApiTokenId Organization Policy Api Token ID
|
|
68914
|
+
* @param {*} [options] Override http request option.
|
|
68915
|
+
* @throws {RequiredError}
|
|
68916
|
+
*/
|
|
68917
|
+
async deleteOrganizationPolicyApiToken(organizationId: string, policyApiTokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
68918
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationPolicyApiToken(organizationId, policyApiTokenId, options);
|
|
68919
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
68920
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationPolicyApiTokenApi.deleteOrganizationPolicyApiToken']?.[localVarOperationServerIndex]?.url;
|
|
68921
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
68922
|
+
},
|
|
68923
|
+
/**
|
|
68924
|
+
* List the policy 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.
|
|
68925
|
+
* @summary List organization policy api tokens
|
|
68926
|
+
* @param {string} organizationId Organization ID
|
|
68927
|
+
* @param {*} [options] Override http request option.
|
|
68928
|
+
* @throws {RequiredError}
|
|
68929
|
+
*/
|
|
68930
|
+
async listOrganizationPolicyApiTokens(organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationPolicyApiTokenResponseList>> {
|
|
68931
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationPolicyApiTokens(organizationId, options);
|
|
68932
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
68933
|
+
const localVarOperationServerBasePath = operationServerMap['OrganizationPolicyApiTokenApi.listOrganizationPolicyApiTokens']?.[localVarOperationServerIndex]?.url;
|
|
68934
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
68935
|
+
},
|
|
68936
|
+
}
|
|
68937
|
+
};
|
|
68938
|
+
|
|
68939
|
+
/**
|
|
68940
|
+
* OrganizationPolicyApiTokenApi - factory interface
|
|
68941
|
+
* @export
|
|
68942
|
+
*/
|
|
68943
|
+
export const OrganizationPolicyApiTokenApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
68944
|
+
const localVarFp = OrganizationPolicyApiTokenApiFp(configuration)
|
|
68945
|
+
return {
|
|
68946
|
+
/**
|
|
68947
|
+
* Create a policy api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, a policy 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.
|
|
68948
|
+
* @summary Create an organization policy api token
|
|
68949
|
+
* @param {string} organizationId Organization ID
|
|
68950
|
+
* @param {OrganizationPolicyApiTokenCreateRequest} [organizationPolicyApiTokenCreateRequest]
|
|
68951
|
+
* @param {*} [options] Override http request option.
|
|
68952
|
+
* @throws {RequiredError}
|
|
68953
|
+
*/
|
|
68954
|
+
createOrganizationPolicyApiToken(organizationId: string, organizationPolicyApiTokenCreateRequest?: OrganizationPolicyApiTokenCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationPolicyApiTokenCreate> {
|
|
68955
|
+
return localVarFp.createOrganizationPolicyApiToken(organizationId, organizationPolicyApiTokenCreateRequest, options).then((request) => request(axios, basePath));
|
|
68956
|
+
},
|
|
68957
|
+
/**
|
|
68958
|
+
* Delete organization policy api token
|
|
68959
|
+
* @summary Delete organization policy api token
|
|
68960
|
+
* @param {string} organizationId Organization ID
|
|
68961
|
+
* @param {string} policyApiTokenId Organization Policy Api Token ID
|
|
68962
|
+
* @param {*} [options] Override http request option.
|
|
68963
|
+
* @throws {RequiredError}
|
|
68964
|
+
*/
|
|
68965
|
+
deleteOrganizationPolicyApiToken(organizationId: string, policyApiTokenId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
68966
|
+
return localVarFp.deleteOrganizationPolicyApiToken(organizationId, policyApiTokenId, options).then((request) => request(axios, basePath));
|
|
68967
|
+
},
|
|
68968
|
+
/**
|
|
68969
|
+
* List the policy 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.
|
|
68970
|
+
* @summary List organization policy api tokens
|
|
68971
|
+
* @param {string} organizationId Organization ID
|
|
68972
|
+
* @param {*} [options] Override http request option.
|
|
68973
|
+
* @throws {RequiredError}
|
|
68974
|
+
*/
|
|
68975
|
+
listOrganizationPolicyApiTokens(organizationId: string, options?: RawAxiosRequestConfig): AxiosPromise<OrganizationPolicyApiTokenResponseList> {
|
|
68976
|
+
return localVarFp.listOrganizationPolicyApiTokens(organizationId, options).then((request) => request(axios, basePath));
|
|
68977
|
+
},
|
|
68978
|
+
};
|
|
68979
|
+
};
|
|
68980
|
+
|
|
68981
|
+
/**
|
|
68982
|
+
* OrganizationPolicyApiTokenApi - object-oriented interface
|
|
68983
|
+
* @export
|
|
68984
|
+
* @class OrganizationPolicyApiTokenApi
|
|
68985
|
+
* @extends {BaseAPI}
|
|
68986
|
+
*/
|
|
68987
|
+
export class OrganizationPolicyApiTokenApi extends BaseAPI {
|
|
68988
|
+
/**
|
|
68989
|
+
* Create a policy api token, intended for autonomous agents calling the Qovery API. Unlike a regular api token, a policy 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.
|
|
68990
|
+
* @summary Create an organization policy api token
|
|
68991
|
+
* @param {string} organizationId Organization ID
|
|
68992
|
+
* @param {OrganizationPolicyApiTokenCreateRequest} [organizationPolicyApiTokenCreateRequest]
|
|
68993
|
+
* @param {*} [options] Override http request option.
|
|
68994
|
+
* @throws {RequiredError}
|
|
68995
|
+
* @memberof OrganizationPolicyApiTokenApi
|
|
68996
|
+
*/
|
|
68997
|
+
public createOrganizationPolicyApiToken(organizationId: string, organizationPolicyApiTokenCreateRequest?: OrganizationPolicyApiTokenCreateRequest, options?: RawAxiosRequestConfig) {
|
|
68998
|
+
return OrganizationPolicyApiTokenApiFp(this.configuration).createOrganizationPolicyApiToken(organizationId, organizationPolicyApiTokenCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
68999
|
+
}
|
|
69000
|
+
|
|
69001
|
+
/**
|
|
69002
|
+
* Delete organization policy api token
|
|
69003
|
+
* @summary Delete organization policy api token
|
|
69004
|
+
* @param {string} organizationId Organization ID
|
|
69005
|
+
* @param {string} policyApiTokenId Organization Policy Api Token ID
|
|
69006
|
+
* @param {*} [options] Override http request option.
|
|
69007
|
+
* @throws {RequiredError}
|
|
69008
|
+
* @memberof OrganizationPolicyApiTokenApi
|
|
69009
|
+
*/
|
|
69010
|
+
public deleteOrganizationPolicyApiToken(organizationId: string, policyApiTokenId: string, options?: RawAxiosRequestConfig) {
|
|
69011
|
+
return OrganizationPolicyApiTokenApiFp(this.configuration).deleteOrganizationPolicyApiToken(organizationId, policyApiTokenId, options).then((request) => request(this.axios, this.basePath));
|
|
69012
|
+
}
|
|
69013
|
+
|
|
69014
|
+
/**
|
|
69015
|
+
* List the policy 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.
|
|
69016
|
+
* @summary List organization policy api tokens
|
|
69017
|
+
* @param {string} organizationId Organization ID
|
|
69018
|
+
* @param {*} [options] Override http request option.
|
|
69019
|
+
* @throws {RequiredError}
|
|
69020
|
+
* @memberof OrganizationPolicyApiTokenApi
|
|
69021
|
+
*/
|
|
69022
|
+
public listOrganizationPolicyApiTokens(organizationId: string, options?: RawAxiosRequestConfig) {
|
|
69023
|
+
return OrganizationPolicyApiTokenApiFp(this.configuration).listOrganizationPolicyApiTokens(organizationId, options).then((request) => request(this.axios, this.basePath));
|
|
69024
|
+
}
|
|
69025
|
+
}
|
|
69026
|
+
|
|
69027
|
+
|
|
69028
|
+
|
|
68588
69029
|
/**
|
|
68589
69030
|
* OrganizationWebhookApi - axios parameter creator
|
|
68590
69031
|
* @export
|