qovery-typescript-axios 1.1.250 → 1.1.252

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 CHANGED
@@ -155,7 +155,7 @@ export interface Application {
155
155
  * @type {ReferenceObject}
156
156
  * @memberof Application
157
157
  */
158
- 'environment'?: ReferenceObject;
158
+ 'environment': ReferenceObject;
159
159
  /**
160
160
  *
161
161
  * @type {ApplicationGitRepository}
@@ -179,7 +179,7 @@ export interface Application {
179
179
  * @type {string}
180
180
  * @memberof Application
181
181
  */
182
- 'name'?: string;
182
+ 'name': string;
183
183
  /**
184
184
  * give a description to this application
185
185
  * @type {string}
@@ -844,6 +844,12 @@ export interface ApplicationGitRepositoryRequest {
844
844
  * @memberof ApplicationGitRepositoryRequest
845
845
  */
846
846
  'root_path'?: string;
847
+ /**
848
+ * The git token id on Qovery side
849
+ * @type {string}
850
+ * @memberof ApplicationGitRepositoryRequest
851
+ */
852
+ 'git_token_id'?: string | null;
847
853
  }
848
854
  /**
849
855
  *
@@ -5490,7 +5496,7 @@ export interface Environment {
5490
5496
  * @type {ReferenceObject}
5491
5497
  * @memberof Environment
5492
5498
  */
5493
- 'project'?: ReferenceObject;
5499
+ 'project': ReferenceObject;
5494
5500
  /**
5495
5501
  * uuid of the user that made the last update
5496
5502
  * @type {string}
@@ -7181,6 +7187,51 @@ export interface GitRepositoryResponseList {
7181
7187
  */
7182
7188
  'results'?: Array<GitRepository>;
7183
7189
  }
7190
+ /**
7191
+ *
7192
+ * @export
7193
+ * @interface GitTokenResponse
7194
+ */
7195
+ export interface GitTokenResponse {
7196
+ /**
7197
+ *
7198
+ * @type {string}
7199
+ * @memberof GitTokenResponse
7200
+ */
7201
+ 'id': string;
7202
+ /**
7203
+ *
7204
+ * @type {string}
7205
+ * @memberof GitTokenResponse
7206
+ */
7207
+ 'created_at': string;
7208
+ /**
7209
+ *
7210
+ * @type {string}
7211
+ * @memberof GitTokenResponse
7212
+ */
7213
+ 'updated_at'?: string;
7214
+ /**
7215
+ *
7216
+ * @type {string}
7217
+ * @memberof GitTokenResponse
7218
+ */
7219
+ 'name': string;
7220
+ /**
7221
+ *
7222
+ * @type {string}
7223
+ * @memberof GitTokenResponse
7224
+ */
7225
+ 'description'?: string;
7226
+ /**
7227
+ *
7228
+ * @type {GitProviderEnum}
7229
+ * @memberof GitTokenResponse
7230
+ */
7231
+ 'type': GitProviderEnum;
7232
+ }
7233
+
7234
+
7184
7235
  /**
7185
7236
  *
7186
7237
  * @export
@@ -8346,6 +8397,19 @@ export interface ListJobDeploymentHistory200Response {
8346
8397
  */
8347
8398
  'results'?: Array<DeploymentHistoryJobResponse>;
8348
8399
  }
8400
+ /**
8401
+ *
8402
+ * @export
8403
+ * @interface ListOrganizationGitTokens200Response
8404
+ */
8405
+ export interface ListOrganizationGitTokens200Response {
8406
+ /**
8407
+ *
8408
+ * @type {Array<GitTokenResponse>}
8409
+ * @memberof ListOrganizationGitTokens200Response
8410
+ */
8411
+ 'results'?: Array<GitTokenResponse>;
8412
+ }
8349
8413
  /**
8350
8414
  *
8351
8415
  * @export
@@ -38888,10 +38952,11 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
38888
38952
  *
38889
38953
  * @summary Get bitbucket repositories of the connected user
38890
38954
  * @param {string} organizationId Organization ID
38955
+ * @param {string} [gitTokenId] The git token id that must be used for the application
38891
38956
  * @param {*} [options] Override http request option.
38892
38957
  * @throws {RequiredError}
38893
38958
  */
38894
- getOrganizationBitbucketRepositories: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38959
+ getOrganizationBitbucketRepositories: async (organizationId: string, gitTokenId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38895
38960
  // verify required parameter 'organizationId' is not null or undefined
38896
38961
  assertParamExists('getOrganizationBitbucketRepositories', 'organizationId', organizationId)
38897
38962
  const localVarPath = `/organization/{organizationId}/account/bitbucket/repository`
@@ -38914,6 +38979,10 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
38914
38979
  // http bearer authentication required
38915
38980
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
38916
38981
 
38982
+ if (gitTokenId !== undefined) {
38983
+ localVarQueryParameter['gitTokenId'] = gitTokenId;
38984
+ }
38985
+
38917
38986
 
38918
38987
 
38919
38988
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -38929,11 +38998,12 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
38929
38998
  *
38930
38999
  * @summary Get bitbucket branches of the specified repository
38931
39000
  * @param {string} organizationId Organization ID
39001
+ * @param {string} [gitTokenId] The git token id that must be used for the application
38932
39002
  * @param {string} [name] The name of the repository where to retrieve the branches
38933
39003
  * @param {*} [options] Override http request option.
38934
39004
  * @throws {RequiredError}
38935
39005
  */
38936
- getOrganizationBitbucketRepositoryBranches: async (organizationId: string, name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39006
+ getOrganizationBitbucketRepositoryBranches: async (organizationId: string, gitTokenId?: string, name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
38937
39007
  // verify required parameter 'organizationId' is not null or undefined
38938
39008
  assertParamExists('getOrganizationBitbucketRepositoryBranches', 'organizationId', organizationId)
38939
39009
  const localVarPath = `/organization/{organizationId}/account/bitbucket/repository/branch`
@@ -38956,6 +39026,10 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
38956
39026
  // http bearer authentication required
38957
39027
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
38958
39028
 
39029
+ if (gitTokenId !== undefined) {
39030
+ localVarQueryParameter['gitTokenId'] = gitTokenId;
39031
+ }
39032
+
38959
39033
  if (name !== undefined) {
38960
39034
  localVarQueryParameter['name'] = name;
38961
39035
  }
@@ -39016,10 +39090,11 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39016
39090
  *
39017
39091
  * @summary Get github repositories of the connected user
39018
39092
  * @param {string} organizationId Organization ID
39093
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39019
39094
  * @param {*} [options] Override http request option.
39020
39095
  * @throws {RequiredError}
39021
39096
  */
39022
- getOrganizationGithubRepositories: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39097
+ getOrganizationGithubRepositories: async (organizationId: string, gitTokenId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39023
39098
  // verify required parameter 'organizationId' is not null or undefined
39024
39099
  assertParamExists('getOrganizationGithubRepositories', 'organizationId', organizationId)
39025
39100
  const localVarPath = `/organization/{organizationId}/account/github/repository`
@@ -39042,6 +39117,10 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39042
39117
  // http bearer authentication required
39043
39118
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
39044
39119
 
39120
+ if (gitTokenId !== undefined) {
39121
+ localVarQueryParameter['gitTokenId'] = gitTokenId;
39122
+ }
39123
+
39045
39124
 
39046
39125
 
39047
39126
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -39057,11 +39136,12 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39057
39136
  *
39058
39137
  * @summary Get github branches of the specified repository
39059
39138
  * @param {string} organizationId Organization ID
39139
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39060
39140
  * @param {string} [name] The name of the repository where to retrieve the branches
39061
39141
  * @param {*} [options] Override http request option.
39062
39142
  * @throws {RequiredError}
39063
39143
  */
39064
- getOrganizationGithubRepositoryBranches: async (organizationId: string, name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39144
+ getOrganizationGithubRepositoryBranches: async (organizationId: string, gitTokenId?: string, name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39065
39145
  // verify required parameter 'organizationId' is not null or undefined
39066
39146
  assertParamExists('getOrganizationGithubRepositoryBranches', 'organizationId', organizationId)
39067
39147
  const localVarPath = `/organization/{organizationId}/account/github/repository/branch`
@@ -39084,6 +39164,10 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39084
39164
  // http bearer authentication required
39085
39165
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
39086
39166
 
39167
+ if (gitTokenId !== undefined) {
39168
+ localVarQueryParameter['gitTokenId'] = gitTokenId;
39169
+ }
39170
+
39087
39171
  if (name !== undefined) {
39088
39172
  localVarQueryParameter['name'] = name;
39089
39173
  }
@@ -39103,10 +39187,11 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39103
39187
  *
39104
39188
  * @summary Get gitlab repositories of the connected user
39105
39189
  * @param {string} organizationId Organization ID
39190
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39106
39191
  * @param {*} [options] Override http request option.
39107
39192
  * @throws {RequiredError}
39108
39193
  */
39109
- getOrganizationGitlabRepositories: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39194
+ getOrganizationGitlabRepositories: async (organizationId: string, gitTokenId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39110
39195
  // verify required parameter 'organizationId' is not null or undefined
39111
39196
  assertParamExists('getOrganizationGitlabRepositories', 'organizationId', organizationId)
39112
39197
  const localVarPath = `/organization/{organizationId}/account/gitlab/repository`
@@ -39129,6 +39214,10 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39129
39214
  // http bearer authentication required
39130
39215
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
39131
39216
 
39217
+ if (gitTokenId !== undefined) {
39218
+ localVarQueryParameter['gitTokenId'] = gitTokenId;
39219
+ }
39220
+
39132
39221
 
39133
39222
 
39134
39223
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -39144,11 +39233,12 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39144
39233
  *
39145
39234
  * @summary Get gitlab branches of the specified repository
39146
39235
  * @param {string} organizationId Organization ID
39236
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39147
39237
  * @param {string} [name] The name of the repository to retrieve the branches
39148
39238
  * @param {*} [options] Override http request option.
39149
39239
  * @throws {RequiredError}
39150
39240
  */
39151
- getOrganizationGitlabRepositoryBranches: async (organizationId: string, name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39241
+ getOrganizationGitlabRepositoryBranches: async (organizationId: string, gitTokenId?: string, name?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
39152
39242
  // verify required parameter 'organizationId' is not null or undefined
39153
39243
  assertParamExists('getOrganizationGitlabRepositoryBranches', 'organizationId', organizationId)
39154
39244
  const localVarPath = `/organization/{organizationId}/account/gitlab/repository/branch`
@@ -39171,6 +39261,10 @@ export const OrganizationAccountGitRepositoriesApiAxiosParamCreator = function (
39171
39261
  // http bearer authentication required
39172
39262
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
39173
39263
 
39264
+ if (gitTokenId !== undefined) {
39265
+ localVarQueryParameter['gitTokenId'] = gitTokenId;
39266
+ }
39267
+
39174
39268
  if (name !== undefined) {
39175
39269
  localVarQueryParameter['name'] = name;
39176
39270
  }
@@ -39200,23 +39294,25 @@ export const OrganizationAccountGitRepositoriesApiFp = function(configuration?:
39200
39294
  *
39201
39295
  * @summary Get bitbucket repositories of the connected user
39202
39296
  * @param {string} organizationId Organization ID
39297
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39203
39298
  * @param {*} [options] Override http request option.
39204
39299
  * @throws {RequiredError}
39205
39300
  */
39206
- async getOrganizationBitbucketRepositories(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryResponseList>> {
39207
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationBitbucketRepositories(organizationId, options);
39301
+ async getOrganizationBitbucketRepositories(organizationId: string, gitTokenId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryResponseList>> {
39302
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationBitbucketRepositories(organizationId, gitTokenId, options);
39208
39303
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39209
39304
  },
39210
39305
  /**
39211
39306
  *
39212
39307
  * @summary Get bitbucket branches of the specified repository
39213
39308
  * @param {string} organizationId Organization ID
39309
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39214
39310
  * @param {string} [name] The name of the repository where to retrieve the branches
39215
39311
  * @param {*} [options] Override http request option.
39216
39312
  * @throws {RequiredError}
39217
39313
  */
39218
- async getOrganizationBitbucketRepositoryBranches(organizationId: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryBranchResponseList>> {
39219
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationBitbucketRepositoryBranches(organizationId, name, options);
39314
+ async getOrganizationBitbucketRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryBranchResponseList>> {
39315
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationBitbucketRepositoryBranches(organizationId, gitTokenId, name, options);
39220
39316
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39221
39317
  },
39222
39318
  /**
@@ -39234,46 +39330,50 @@ export const OrganizationAccountGitRepositoriesApiFp = function(configuration?:
39234
39330
  *
39235
39331
  * @summary Get github repositories of the connected user
39236
39332
  * @param {string} organizationId Organization ID
39333
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39237
39334
  * @param {*} [options] Override http request option.
39238
39335
  * @throws {RequiredError}
39239
39336
  */
39240
- async getOrganizationGithubRepositories(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryResponseList>> {
39241
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGithubRepositories(organizationId, options);
39337
+ async getOrganizationGithubRepositories(organizationId: string, gitTokenId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryResponseList>> {
39338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGithubRepositories(organizationId, gitTokenId, options);
39242
39339
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39243
39340
  },
39244
39341
  /**
39245
39342
  *
39246
39343
  * @summary Get github branches of the specified repository
39247
39344
  * @param {string} organizationId Organization ID
39345
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39248
39346
  * @param {string} [name] The name of the repository where to retrieve the branches
39249
39347
  * @param {*} [options] Override http request option.
39250
39348
  * @throws {RequiredError}
39251
39349
  */
39252
- async getOrganizationGithubRepositoryBranches(organizationId: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryBranchResponseList>> {
39253
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGithubRepositoryBranches(organizationId, name, options);
39350
+ async getOrganizationGithubRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryBranchResponseList>> {
39351
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGithubRepositoryBranches(organizationId, gitTokenId, name, options);
39254
39352
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39255
39353
  },
39256
39354
  /**
39257
39355
  *
39258
39356
  * @summary Get gitlab repositories of the connected user
39259
39357
  * @param {string} organizationId Organization ID
39358
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39260
39359
  * @param {*} [options] Override http request option.
39261
39360
  * @throws {RequiredError}
39262
39361
  */
39263
- async getOrganizationGitlabRepositories(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryResponseList>> {
39264
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGitlabRepositories(organizationId, options);
39362
+ async getOrganizationGitlabRepositories(organizationId: string, gitTokenId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryResponseList>> {
39363
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGitlabRepositories(organizationId, gitTokenId, options);
39265
39364
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39266
39365
  },
39267
39366
  /**
39268
39367
  *
39269
39368
  * @summary Get gitlab branches of the specified repository
39270
39369
  * @param {string} organizationId Organization ID
39370
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39271
39371
  * @param {string} [name] The name of the repository to retrieve the branches
39272
39372
  * @param {*} [options] Override http request option.
39273
39373
  * @throws {RequiredError}
39274
39374
  */
39275
- async getOrganizationGitlabRepositoryBranches(organizationId: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryBranchResponseList>> {
39276
- const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGitlabRepositoryBranches(organizationId, name, options);
39375
+ async getOrganizationGitlabRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GitRepositoryBranchResponseList>> {
39376
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationGitlabRepositoryBranches(organizationId, gitTokenId, name, options);
39277
39377
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
39278
39378
  },
39279
39379
  }
@@ -39290,22 +39390,24 @@ export const OrganizationAccountGitRepositoriesApiFactory = function (configurat
39290
39390
  *
39291
39391
  * @summary Get bitbucket repositories of the connected user
39292
39392
  * @param {string} organizationId Organization ID
39393
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39293
39394
  * @param {*} [options] Override http request option.
39294
39395
  * @throws {RequiredError}
39295
39396
  */
39296
- getOrganizationBitbucketRepositories(organizationId: string, options?: any): AxiosPromise<GitRepositoryResponseList> {
39297
- return localVarFp.getOrganizationBitbucketRepositories(organizationId, options).then((request) => request(axios, basePath));
39397
+ getOrganizationBitbucketRepositories(organizationId: string, gitTokenId?: string, options?: any): AxiosPromise<GitRepositoryResponseList> {
39398
+ return localVarFp.getOrganizationBitbucketRepositories(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
39298
39399
  },
39299
39400
  /**
39300
39401
  *
39301
39402
  * @summary Get bitbucket branches of the specified repository
39302
39403
  * @param {string} organizationId Organization ID
39404
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39303
39405
  * @param {string} [name] The name of the repository where to retrieve the branches
39304
39406
  * @param {*} [options] Override http request option.
39305
39407
  * @throws {RequiredError}
39306
39408
  */
39307
- getOrganizationBitbucketRepositoryBranches(organizationId: string, name?: string, options?: any): AxiosPromise<GitRepositoryBranchResponseList> {
39308
- return localVarFp.getOrganizationBitbucketRepositoryBranches(organizationId, name, options).then((request) => request(axios, basePath));
39409
+ getOrganizationBitbucketRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: any): AxiosPromise<GitRepositoryBranchResponseList> {
39410
+ return localVarFp.getOrganizationBitbucketRepositoryBranches(organizationId, gitTokenId, name, options).then((request) => request(axios, basePath));
39309
39411
  },
39310
39412
  /**
39311
39413
  *
@@ -39321,43 +39423,47 @@ export const OrganizationAccountGitRepositoriesApiFactory = function (configurat
39321
39423
  *
39322
39424
  * @summary Get github repositories of the connected user
39323
39425
  * @param {string} organizationId Organization ID
39426
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39324
39427
  * @param {*} [options] Override http request option.
39325
39428
  * @throws {RequiredError}
39326
39429
  */
39327
- getOrganizationGithubRepositories(organizationId: string, options?: any): AxiosPromise<GitRepositoryResponseList> {
39328
- return localVarFp.getOrganizationGithubRepositories(organizationId, options).then((request) => request(axios, basePath));
39430
+ getOrganizationGithubRepositories(organizationId: string, gitTokenId?: string, options?: any): AxiosPromise<GitRepositoryResponseList> {
39431
+ return localVarFp.getOrganizationGithubRepositories(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
39329
39432
  },
39330
39433
  /**
39331
39434
  *
39332
39435
  * @summary Get github branches of the specified repository
39333
39436
  * @param {string} organizationId Organization ID
39437
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39334
39438
  * @param {string} [name] The name of the repository where to retrieve the branches
39335
39439
  * @param {*} [options] Override http request option.
39336
39440
  * @throws {RequiredError}
39337
39441
  */
39338
- getOrganizationGithubRepositoryBranches(organizationId: string, name?: string, options?: any): AxiosPromise<GitRepositoryBranchResponseList> {
39339
- return localVarFp.getOrganizationGithubRepositoryBranches(organizationId, name, options).then((request) => request(axios, basePath));
39442
+ getOrganizationGithubRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: any): AxiosPromise<GitRepositoryBranchResponseList> {
39443
+ return localVarFp.getOrganizationGithubRepositoryBranches(organizationId, gitTokenId, name, options).then((request) => request(axios, basePath));
39340
39444
  },
39341
39445
  /**
39342
39446
  *
39343
39447
  * @summary Get gitlab repositories of the connected user
39344
39448
  * @param {string} organizationId Organization ID
39449
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39345
39450
  * @param {*} [options] Override http request option.
39346
39451
  * @throws {RequiredError}
39347
39452
  */
39348
- getOrganizationGitlabRepositories(organizationId: string, options?: any): AxiosPromise<GitRepositoryResponseList> {
39349
- return localVarFp.getOrganizationGitlabRepositories(organizationId, options).then((request) => request(axios, basePath));
39453
+ getOrganizationGitlabRepositories(organizationId: string, gitTokenId?: string, options?: any): AxiosPromise<GitRepositoryResponseList> {
39454
+ return localVarFp.getOrganizationGitlabRepositories(organizationId, gitTokenId, options).then((request) => request(axios, basePath));
39350
39455
  },
39351
39456
  /**
39352
39457
  *
39353
39458
  * @summary Get gitlab branches of the specified repository
39354
39459
  * @param {string} organizationId Organization ID
39460
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39355
39461
  * @param {string} [name] The name of the repository to retrieve the branches
39356
39462
  * @param {*} [options] Override http request option.
39357
39463
  * @throws {RequiredError}
39358
39464
  */
39359
- getOrganizationGitlabRepositoryBranches(organizationId: string, name?: string, options?: any): AxiosPromise<GitRepositoryBranchResponseList> {
39360
- return localVarFp.getOrganizationGitlabRepositoryBranches(organizationId, name, options).then((request) => request(axios, basePath));
39465
+ getOrganizationGitlabRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: any): AxiosPromise<GitRepositoryBranchResponseList> {
39466
+ return localVarFp.getOrganizationGitlabRepositoryBranches(organizationId, gitTokenId, name, options).then((request) => request(axios, basePath));
39361
39467
  },
39362
39468
  };
39363
39469
  };
@@ -39373,25 +39479,27 @@ export class OrganizationAccountGitRepositoriesApi extends BaseAPI {
39373
39479
  *
39374
39480
  * @summary Get bitbucket repositories of the connected user
39375
39481
  * @param {string} organizationId Organization ID
39482
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39376
39483
  * @param {*} [options] Override http request option.
39377
39484
  * @throws {RequiredError}
39378
39485
  * @memberof OrganizationAccountGitRepositoriesApi
39379
39486
  */
39380
- public getOrganizationBitbucketRepositories(organizationId: string, options?: AxiosRequestConfig) {
39381
- return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationBitbucketRepositories(organizationId, options).then((request) => request(this.axios, this.basePath));
39487
+ public getOrganizationBitbucketRepositories(organizationId: string, gitTokenId?: string, options?: AxiosRequestConfig) {
39488
+ return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationBitbucketRepositories(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
39382
39489
  }
39383
39490
 
39384
39491
  /**
39385
39492
  *
39386
39493
  * @summary Get bitbucket branches of the specified repository
39387
39494
  * @param {string} organizationId Organization ID
39495
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39388
39496
  * @param {string} [name] The name of the repository where to retrieve the branches
39389
39497
  * @param {*} [options] Override http request option.
39390
39498
  * @throws {RequiredError}
39391
39499
  * @memberof OrganizationAccountGitRepositoriesApi
39392
39500
  */
39393
- public getOrganizationBitbucketRepositoryBranches(organizationId: string, name?: string, options?: AxiosRequestConfig) {
39394
- return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationBitbucketRepositoryBranches(organizationId, name, options).then((request) => request(this.axios, this.basePath));
39501
+ public getOrganizationBitbucketRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: AxiosRequestConfig) {
39502
+ return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationBitbucketRepositoryBranches(organizationId, gitTokenId, name, options).then((request) => request(this.axios, this.basePath));
39395
39503
  }
39396
39504
 
39397
39505
  /**
@@ -39410,50 +39518,54 @@ export class OrganizationAccountGitRepositoriesApi extends BaseAPI {
39410
39518
  *
39411
39519
  * @summary Get github repositories of the connected user
39412
39520
  * @param {string} organizationId Organization ID
39521
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39413
39522
  * @param {*} [options] Override http request option.
39414
39523
  * @throws {RequiredError}
39415
39524
  * @memberof OrganizationAccountGitRepositoriesApi
39416
39525
  */
39417
- public getOrganizationGithubRepositories(organizationId: string, options?: AxiosRequestConfig) {
39418
- return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGithubRepositories(organizationId, options).then((request) => request(this.axios, this.basePath));
39526
+ public getOrganizationGithubRepositories(organizationId: string, gitTokenId?: string, options?: AxiosRequestConfig) {
39527
+ return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGithubRepositories(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
39419
39528
  }
39420
39529
 
39421
39530
  /**
39422
39531
  *
39423
39532
  * @summary Get github branches of the specified repository
39424
39533
  * @param {string} organizationId Organization ID
39534
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39425
39535
  * @param {string} [name] The name of the repository where to retrieve the branches
39426
39536
  * @param {*} [options] Override http request option.
39427
39537
  * @throws {RequiredError}
39428
39538
  * @memberof OrganizationAccountGitRepositoriesApi
39429
39539
  */
39430
- public getOrganizationGithubRepositoryBranches(organizationId: string, name?: string, options?: AxiosRequestConfig) {
39431
- return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGithubRepositoryBranches(organizationId, name, options).then((request) => request(this.axios, this.basePath));
39540
+ public getOrganizationGithubRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: AxiosRequestConfig) {
39541
+ return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGithubRepositoryBranches(organizationId, gitTokenId, name, options).then((request) => request(this.axios, this.basePath));
39432
39542
  }
39433
39543
 
39434
39544
  /**
39435
39545
  *
39436
39546
  * @summary Get gitlab repositories of the connected user
39437
39547
  * @param {string} organizationId Organization ID
39548
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39438
39549
  * @param {*} [options] Override http request option.
39439
39550
  * @throws {RequiredError}
39440
39551
  * @memberof OrganizationAccountGitRepositoriesApi
39441
39552
  */
39442
- public getOrganizationGitlabRepositories(organizationId: string, options?: AxiosRequestConfig) {
39443
- return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGitlabRepositories(organizationId, options).then((request) => request(this.axios, this.basePath));
39553
+ public getOrganizationGitlabRepositories(organizationId: string, gitTokenId?: string, options?: AxiosRequestConfig) {
39554
+ return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGitlabRepositories(organizationId, gitTokenId, options).then((request) => request(this.axios, this.basePath));
39444
39555
  }
39445
39556
 
39446
39557
  /**
39447
39558
  *
39448
39559
  * @summary Get gitlab branches of the specified repository
39449
39560
  * @param {string} organizationId Organization ID
39561
+ * @param {string} [gitTokenId] The git token id that must be used for the application
39450
39562
  * @param {string} [name] The name of the repository to retrieve the branches
39451
39563
  * @param {*} [options] Override http request option.
39452
39564
  * @throws {RequiredError}
39453
39565
  * @memberof OrganizationAccountGitRepositoriesApi
39454
39566
  */
39455
- public getOrganizationGitlabRepositoryBranches(organizationId: string, name?: string, options?: AxiosRequestConfig) {
39456
- return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGitlabRepositoryBranches(organizationId, name, options).then((request) => request(this.axios, this.basePath));
39567
+ public getOrganizationGitlabRepositoryBranches(organizationId: string, gitTokenId?: string, name?: string, options?: AxiosRequestConfig) {
39568
+ return OrganizationAccountGitRepositoriesApiFp(this.configuration).getOrganizationGitlabRepositoryBranches(organizationId, gitTokenId, name, options).then((request) => request(this.axios, this.basePath));
39457
39569
  }
39458
39570
  }
39459
39571
 
@@ -40760,6 +40872,47 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
40760
40872
 
40761
40873
 
40762
40874
 
40875
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
40876
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40877
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
40878
+
40879
+ return {
40880
+ url: toPathString(localVarUrlObj),
40881
+ options: localVarRequestOptions,
40882
+ };
40883
+ },
40884
+ /**
40885
+ * List organization git tokens
40886
+ * @summary List organization git tokens
40887
+ * @param {string} organizationId Organization ID
40888
+ * @param {*} [options] Override http request option.
40889
+ * @throws {RequiredError}
40890
+ */
40891
+ listOrganizationGitTokens: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
40892
+ // verify required parameter 'organizationId' is not null or undefined
40893
+ assertParamExists('listOrganizationGitTokens', 'organizationId', organizationId)
40894
+ const localVarPath = `/organization/{organizationId}/gitToken`
40895
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
40896
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
40897
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
40898
+ let baseOptions;
40899
+ if (configuration) {
40900
+ baseOptions = configuration.baseOptions;
40901
+ }
40902
+
40903
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
40904
+ const localVarHeaderParameter = {} as any;
40905
+ const localVarQueryParameter = {} as any;
40906
+
40907
+ // authentication ApiKeyAuth required
40908
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
40909
+
40910
+ // authentication bearerAuth required
40911
+ // http bearer authentication required
40912
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
40913
+
40914
+
40915
+
40763
40916
  setSearchParams(localVarUrlObj, localVarQueryParameter);
40764
40917
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
40765
40918
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -40845,6 +40998,17 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
40845
40998
  const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationAvailableRoles(organizationId, options);
40846
40999
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
40847
41000
  },
41001
+ /**
41002
+ * List organization git tokens
41003
+ * @summary List organization git tokens
41004
+ * @param {string} organizationId Organization ID
41005
+ * @param {*} [options] Override http request option.
41006
+ * @throws {RequiredError}
41007
+ */
41008
+ async listOrganizationGitTokens(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationGitTokens200Response>> {
41009
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationGitTokens(organizationId, options);
41010
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
41011
+ },
40848
41012
  }
40849
41013
  };
40850
41014
 
@@ -40915,6 +41079,16 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
40915
41079
  listOrganizationAvailableRoles(organizationId: string, options?: any): AxiosPromise<OrganizationAvailableRoleList> {
40916
41080
  return localVarFp.listOrganizationAvailableRoles(organizationId, options).then((request) => request(axios, basePath));
40917
41081
  },
41082
+ /**
41083
+ * List organization git tokens
41084
+ * @summary List organization git tokens
41085
+ * @param {string} organizationId Organization ID
41086
+ * @param {*} [options] Override http request option.
41087
+ * @throws {RequiredError}
41088
+ */
41089
+ listOrganizationGitTokens(organizationId: string, options?: any): AxiosPromise<ListOrganizationGitTokens200Response> {
41090
+ return localVarFp.listOrganizationGitTokens(organizationId, options).then((request) => request(axios, basePath));
41091
+ },
40918
41092
  };
40919
41093
  };
40920
41094
 
@@ -40996,6 +41170,18 @@ export class OrganizationMainCallsApi extends BaseAPI {
40996
41170
  public listOrganizationAvailableRoles(organizationId: string, options?: AxiosRequestConfig) {
40997
41171
  return OrganizationMainCallsApiFp(this.configuration).listOrganizationAvailableRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
40998
41172
  }
41173
+
41174
+ /**
41175
+ * List organization git tokens
41176
+ * @summary List organization git tokens
41177
+ * @param {string} organizationId Organization ID
41178
+ * @param {*} [options] Override http request option.
41179
+ * @throws {RequiredError}
41180
+ * @memberof OrganizationMainCallsApi
41181
+ */
41182
+ public listOrganizationGitTokens(organizationId: string, options?: AxiosRequestConfig) {
41183
+ return OrganizationMainCallsApiFp(this.configuration).listOrganizationGitTokens(organizationId, options).then((request) => request(this.axios, this.basePath));
41184
+ }
40999
41185
  }
41000
41186
 
41001
41187