qovery-typescript-axios 1.1.19 → 1.1.21

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.
Files changed (4) hide show
  1. package/api.ts +1155 -121
  2. package/dist/api.d.ts +791 -63
  3. package/dist/api.js +699 -112
  4. package/package.json +1 -1
package/api.ts CHANGED
@@ -218,7 +218,7 @@ export interface Application {
218
218
  */
219
219
  'healthcheck'?: Healthcheck;
220
220
  /**
221
- * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request.
221
+ * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request. If not specified, it takes the value of the `auto_preview` property from the associated environment.
222
222
  * @type {boolean}
223
223
  * @memberof Application
224
224
  */
@@ -291,6 +291,42 @@ export interface ApplicationAdvancedSettings {
291
291
  * @memberof ApplicationAdvancedSettings
292
292
  */
293
293
  'network.ingress.proxy_buffer_size_kb'?: number;
294
+ /**
295
+ * Limits the maximum time (in seconds) during which requests can be processed through one keepalive connection
296
+ * @type {number}
297
+ * @memberof ApplicationAdvancedSettings
298
+ */
299
+ 'network.ingress.keepalive_time_seconds'?: number;
300
+ /**
301
+ * Sets a timeout (in seconds) during which an idle keepalive connection to an upstream server will stay open.
302
+ * @type {number}
303
+ * @memberof ApplicationAdvancedSettings
304
+ */
305
+ 'network.ingress.keepalive_timeout_seconds'?: number;
306
+ /**
307
+ * Sets a timeout (in seconds) for transmitting a response to the client
308
+ * @type {number}
309
+ * @memberof ApplicationAdvancedSettings
310
+ */
311
+ 'network.ingress.send_timeout_seconds'?: number;
312
+ /**
313
+ * Sets a timeout (in seconds) for establishing a connection to a proxied server
314
+ * @type {number}
315
+ * @memberof ApplicationAdvancedSettings
316
+ */
317
+ 'network.ingress.proxy_connect_timeout_seconds'?: number;
318
+ /**
319
+ * Sets a timeout (in seconds) for transmitting a request to the proxied server
320
+ * @type {number}
321
+ * @memberof ApplicationAdvancedSettings
322
+ */
323
+ 'network.ingress.proxy_send_timeout_seconds'?: number;
324
+ /**
325
+ * Sets a timeout (in seconds) for reading a response from the proxied server
326
+ * @type {number}
327
+ * @memberof ApplicationAdvancedSettings
328
+ */
329
+ 'network.ingress.proxy_read_timeout_seconds'?: number;
294
330
  /**
295
331
  * list of source ranges to allow access to ingress proxy. This property can be used to whitelist source IP ranges for ingress proxy. The value is a comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1 To allow all source ranges, set 0.0.0.0/0.
296
332
  * @type {string}
@@ -499,7 +535,7 @@ export interface ApplicationAllOf {
499
535
  */
500
536
  'healthcheck'?: Healthcheck;
501
537
  /**
502
- * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request.
538
+ * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request. If not specified, it takes the value of the `auto_preview` property from the associated environment.
503
539
  * @type {boolean}
504
540
  * @memberof ApplicationAllOf
505
541
  */
@@ -726,7 +762,7 @@ export interface ApplicationEditRequest {
726
762
  */
727
763
  'healthcheck'?: Healthcheck;
728
764
  /**
729
- * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request.
765
+ * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request. If not specified, it takes the value of the `auto_preview` property from the associated environment.
730
766
  * @type {boolean}
731
767
  * @memberof ApplicationEditRequest
732
768
  */
@@ -817,7 +853,7 @@ export interface ApplicationEditRequestAllOf {
817
853
  */
818
854
  'healthcheck'?: Healthcheck;
819
855
  /**
820
- * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request.
856
+ * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request. If not specified, it takes the value of the `auto_preview` property from the associated environment.
821
857
  * @type {boolean}
822
858
  * @memberof ApplicationEditRequestAllOf
823
859
  */
@@ -1044,7 +1080,7 @@ export interface ApplicationRequest {
1044
1080
  */
1045
1081
  'healthcheck'?: Healthcheck;
1046
1082
  /**
1047
- * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request.
1083
+ * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request. If not specified, it takes the value of the `auto_preview` property from the associated environment.
1048
1084
  * @type {boolean}
1049
1085
  * @memberof ApplicationRequest
1050
1086
  */
@@ -1123,7 +1159,7 @@ export interface ApplicationRequestAllOf {
1123
1159
  */
1124
1160
  'healthcheck'?: Healthcheck;
1125
1161
  /**
1126
- * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request.
1162
+ * Specify if the environment preview option is activated or not for this application. If activated, a preview environment will be automatically cloned at each pull request. If not specified, it takes the value of the `auto_preview` property from the associated environment.
1127
1163
  * @type {boolean}
1128
1164
  * @memberof ApplicationRequestAllOf
1129
1165
  */
@@ -1160,6 +1196,12 @@ export interface AvailableContainerRegistryResponse {
1160
1196
  * @memberof AvailableContainerRegistryResponse
1161
1197
  */
1162
1198
  'required_config'?: { [key: string]: object; };
1199
+ /**
1200
+ *
1201
+ * @type {boolean}
1202
+ * @memberof AvailableContainerRegistryResponse
1203
+ */
1204
+ 'is_mandatory'?: boolean;
1163
1205
  }
1164
1206
  /**
1165
1207
  *
@@ -2934,6 +2976,42 @@ export interface ContainerAdvancedSettings {
2934
2976
  * @memberof ContainerAdvancedSettings
2935
2977
  */
2936
2978
  'network.ingress.proxy_buffer_size_kb'?: number;
2979
+ /**
2980
+ * Limits the maximum time (in seconds) during which requests can be processed through one keepalive connection
2981
+ * @type {number}
2982
+ * @memberof ContainerAdvancedSettings
2983
+ */
2984
+ 'network.ingress.keepalive_time_seconds'?: number;
2985
+ /**
2986
+ * Sets a timeout (in seconds) during which an idle keepalive connection to an upstream server will stay open.
2987
+ * @type {number}
2988
+ * @memberof ContainerAdvancedSettings
2989
+ */
2990
+ 'network.ingress.keepalive_timeout_seconds'?: number;
2991
+ /**
2992
+ * Sets a timeout (in seconds) for transmitting a response to the client
2993
+ * @type {number}
2994
+ * @memberof ContainerAdvancedSettings
2995
+ */
2996
+ 'network.ingress.send_timeout_seconds'?: number;
2997
+ /**
2998
+ * Sets a timeout (in seconds) for establishing a connection to a proxied server
2999
+ * @type {number}
3000
+ * @memberof ContainerAdvancedSettings
3001
+ */
3002
+ 'network.ingress.proxy_connect_timeout_seconds'?: number;
3003
+ /**
3004
+ * Sets a timeout (in seconds) for transmitting a request to the proxied server
3005
+ * @type {number}
3006
+ * @memberof ContainerAdvancedSettings
3007
+ */
3008
+ 'network.ingress.proxy_send_timeout_seconds'?: number;
3009
+ /**
3010
+ * Sets a timeout (in seconds) for reading a response from the proxied server
3011
+ * @type {number}
3012
+ * @memberof ContainerAdvancedSettings
3013
+ */
3014
+ 'network.ingress.proxy_read_timeout_seconds'?: number;
2937
3015
  /**
2938
3016
  * list of source ranges to allow access to ingress proxy. This property can be used to whitelist source IP ranges for ingress proxy. The value is a comma separated list of CIDRs, e.g. 10.0.0.0/24,172.10.0.1 To allow all source ranges, set 0.0.0.0/0.
2939
3017
  * @type {string}
@@ -3191,11 +3269,11 @@ export interface ContainerRegistryRequest {
3191
3269
  */
3192
3270
  'description'?: string;
3193
3271
  /**
3194
- * URL of the container registry: * For `DOCKER_HUB`: should be `https://docker.io` * For others: must start by `https://`
3272
+ * URL of the container registry: * For `DOCKER_HUB`: it must be `https://docker.io` (default with \'https://docker.io\' if no url provided for DOCKER_HUB) * For others: it\'s required and must start by `https://`
3195
3273
  * @type {string}
3196
3274
  * @memberof ContainerRegistryRequest
3197
3275
  */
3198
- 'url': string;
3276
+ 'url'?: string;
3199
3277
  /**
3200
3278
  *
3201
3279
  * @type {ContainerRegistryRequestConfig}
@@ -3204,7 +3282,7 @@ export interface ContainerRegistryRequest {
3204
3282
  'config': ContainerRegistryRequestConfig;
3205
3283
  }
3206
3284
  /**
3207
- * This field is dependent of the container registry kind: * `ECR` needs in the config: region, access_key_id, secret_access_key * `SCALEWAY_CR` needs in the config: region, scaleway_access_key, scaleway_secret_key * `DOCKER_HUB` needs in the config: username, password * `PUBLIC_ECR` needs in the config: access_key_id, secret_access_key * `DOCR` is not supported anymore
3285
+ * This field is dependent of the container registry kind: * `ECR` needs in the config: region, access_key_id, secret_access_key * `SCALEWAY_CR` needs in the config: region, scaleway_access_key, scaleway_secret_key * `DOCKER_HUB` needs in the config (optional): username, password * `PUBLIC_ECR` doesn\'t need credentials info * `DOCR` is not supported anymore
3208
3286
  * @export
3209
3287
  * @interface ContainerRegistryRequestConfig
3210
3288
  */
@@ -3240,13 +3318,13 @@ export interface ContainerRegistryRequestConfig {
3240
3318
  */
3241
3319
  'scaleway_secret_key'?: string;
3242
3320
  /**
3243
- * Required if kind is `DOCKER_HUB`
3321
+ * optional, for kind `DOCKER_HUB` We encourage you to set credentials for Docker Hub due to the limits on the pull rate
3244
3322
  * @type {string}
3245
3323
  * @memberof ContainerRegistryRequestConfig
3246
3324
  */
3247
3325
  'username'?: string;
3248
3326
  /**
3249
- * Required if kind is `DOCKER_HUB`
3327
+ * optional, for kind `DOCKER_HUB` We encourage you to set credentials for Docker Hub due to the limits on the pull rate
3250
3328
  * @type {string}
3251
3329
  * @memberof ContainerRegistryRequestConfig
3252
3330
  */
@@ -3376,7 +3454,7 @@ export interface ContainerRequest {
3376
3454
  */
3377
3455
  'registry_id': string;
3378
3456
  /**
3379
- * The image name pattern differs according to chosen container registry provider: * `ECR`: `repository` * `SCALEWAY_CR`: `namespace/image` * `DOCKER_HUB`: `namespace/image` * `PUBLIC_ECR`: `registry_alias/repository`
3457
+ * The image name pattern differs according to chosen container registry provider: * `ECR`: `repository` * `SCALEWAY_CR`: `namespace/image` * `DOCKER_HUB`: `image` or `repository/image` * `PUBLIC_ECR`: `registry_alias/repository`
3380
3458
  * @type {string}
3381
3459
  * @memberof ContainerRequest
3382
3460
  */
@@ -3423,6 +3501,12 @@ export interface ContainerRequest {
3423
3501
  * @memberof ContainerRequest
3424
3502
  */
3425
3503
  'max_running_instances'?: number;
3504
+ /**
3505
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
3506
+ * @type {boolean}
3507
+ * @memberof ContainerRequest
3508
+ */
3509
+ 'auto_preview'?: boolean;
3426
3510
  }
3427
3511
  /**
3428
3512
  *
@@ -3443,7 +3527,7 @@ export interface ContainerRequestAllOf {
3443
3527
  */
3444
3528
  'registry_id': string;
3445
3529
  /**
3446
- * The image name pattern differs according to chosen container registry provider: * `ECR`: `repository` * `SCALEWAY_CR`: `namespace/image` * `DOCKER_HUB`: `namespace/image` * `PUBLIC_ECR`: `registry_alias/repository`
3530
+ * The image name pattern differs according to chosen container registry provider: * `ECR`: `repository` * `SCALEWAY_CR`: `namespace/image` * `DOCKER_HUB`: `image` or `repository/image` * `PUBLIC_ECR`: `registry_alias/repository`
3447
3531
  * @type {string}
3448
3532
  * @memberof ContainerRequestAllOf
3449
3533
  */
@@ -3490,6 +3574,12 @@ export interface ContainerRequestAllOf {
3490
3574
  * @memberof ContainerRequestAllOf
3491
3575
  */
3492
3576
  'max_running_instances'?: number;
3577
+ /**
3578
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
3579
+ * @type {boolean}
3580
+ * @memberof ContainerRequestAllOf
3581
+ */
3582
+ 'auto_preview'?: boolean;
3493
3583
  }
3494
3584
  /**
3495
3585
  *
@@ -3600,7 +3690,7 @@ export interface ContainerResponse {
3600
3690
  */
3601
3691
  'max_running_instances': number;
3602
3692
  /**
3603
- * Specify if the environment preview option is activated or not for this container. If activated, a preview environment will be automatically cloned at each pull request.
3693
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
3604
3694
  * @type {boolean}
3605
3695
  * @memberof ContainerResponse
3606
3696
  */
@@ -3697,7 +3787,7 @@ export interface ContainerResponseAllOf {
3697
3787
  */
3698
3788
  'max_running_instances': number;
3699
3789
  /**
3700
- * Specify if the environment preview option is activated or not for this container. If activated, a preview environment will be automatically cloned at each pull request.
3790
+ * Indicates if the \'environment preview option\' is enabled for this container. If enabled, a preview environment will be automatically cloned when `/preview` endpoint is called. If not specified, it takes the value of the `auto_preview` property from the associated environment.
3701
3791
  * @type {boolean}
3702
3792
  * @memberof ContainerResponseAllOf
3703
3793
  */
@@ -6975,6 +7065,18 @@ export interface InviteMember {
6975
7065
  * @memberof InviteMember
6976
7066
  */
6977
7067
  'logo_url'?: string;
7068
+ /**
7069
+ *
7070
+ * @type {string}
7071
+ * @memberof InviteMember
7072
+ */
7073
+ 'role_id'?: string;
7074
+ /**
7075
+ *
7076
+ * @type {string}
7077
+ * @memberof InviteMember
7078
+ */
7079
+ 'role_name'?: string;
6978
7080
  }
6979
7081
  /**
6980
7082
  *
@@ -7018,6 +7120,18 @@ export interface InviteMemberAllOf {
7018
7120
  * @memberof InviteMemberAllOf
7019
7121
  */
7020
7122
  'logo_url'?: string;
7123
+ /**
7124
+ *
7125
+ * @type {string}
7126
+ * @memberof InviteMemberAllOf
7127
+ */
7128
+ 'role_id'?: string;
7129
+ /**
7130
+ *
7131
+ * @type {string}
7132
+ * @memberof InviteMemberAllOf
7133
+ */
7134
+ 'role_name'?: string;
7021
7135
  }
7022
7136
  /**
7023
7137
  *
@@ -7036,7 +7150,13 @@ export interface InviteMemberRequest {
7036
7150
  * @type {InviteMemberRoleEnum}
7037
7151
  * @memberof InviteMemberRequest
7038
7152
  */
7039
- 'role': InviteMemberRoleEnum;
7153
+ 'role'?: InviteMemberRoleEnum;
7154
+ /**
7155
+ * the target role to attribute to the new member
7156
+ * @type {string}
7157
+ * @memberof InviteMemberRequest
7158
+ */
7159
+ 'role_id'?: string;
7040
7160
  }
7041
7161
  /**
7042
7162
  *
@@ -7052,7 +7172,7 @@ export interface InviteMemberResponseList {
7052
7172
  'results'?: Array<InviteMember>;
7053
7173
  }
7054
7174
  /**
7055
- *
7175
+ * deprecated
7056
7176
  * @export
7057
7177
  * @enum {string}
7058
7178
  */
@@ -7469,6 +7589,18 @@ export interface Member {
7469
7589
  * @memberof Member
7470
7590
  */
7471
7591
  'role'?: InviteMemberRoleEnum;
7592
+ /**
7593
+ * the role linked to the user
7594
+ * @type {string}
7595
+ * @memberof Member
7596
+ */
7597
+ 'role_name'?: string;
7598
+ /**
7599
+ *
7600
+ * @type {string}
7601
+ * @memberof Member
7602
+ */
7603
+ 'role_id'?: string;
7472
7604
  }
7473
7605
  /**
7474
7606
  *
@@ -7512,6 +7644,18 @@ export interface MemberAllOf {
7512
7644
  * @memberof MemberAllOf
7513
7645
  */
7514
7646
  'role'?: InviteMemberRoleEnum;
7647
+ /**
7648
+ * the role linked to the user
7649
+ * @type {string}
7650
+ * @memberof MemberAllOf
7651
+ */
7652
+ 'role_name'?: string;
7653
+ /**
7654
+ *
7655
+ * @type {string}
7656
+ * @memberof MemberAllOf
7657
+ */
7658
+ 'role_id'?: string;
7515
7659
  }
7516
7660
  /**
7517
7661
  *
@@ -7526,6 +7670,25 @@ export interface MemberResponseList {
7526
7670
  */
7527
7671
  'results'?: Array<Member>;
7528
7672
  }
7673
+ /**
7674
+ *
7675
+ * @export
7676
+ * @interface MemberRoleUpdateRequest
7677
+ */
7678
+ export interface MemberRoleUpdateRequest {
7679
+ /**
7680
+ * specify the git provider user id
7681
+ * @type {string}
7682
+ * @memberof MemberRoleUpdateRequest
7683
+ */
7684
+ 'user_id': string;
7685
+ /**
7686
+ *
7687
+ * @type {string}
7688
+ * @memberof MemberRoleUpdateRequest
7689
+ */
7690
+ 'role_id': string;
7691
+ }
7529
7692
  /**
7530
7693
  *
7531
7694
  * @export
@@ -8138,6 +8301,38 @@ export enum OrganizationApiTokenScope {
8138
8301
  ADMIN = 'ADMIN'
8139
8302
  }
8140
8303
 
8304
+ /**
8305
+ *
8306
+ * @export
8307
+ * @interface OrganizationAvailableRole
8308
+ */
8309
+ export interface OrganizationAvailableRole {
8310
+ /**
8311
+ *
8312
+ * @type {string}
8313
+ * @memberof OrganizationAvailableRole
8314
+ */
8315
+ 'id'?: string;
8316
+ /**
8317
+ *
8318
+ * @type {string}
8319
+ * @memberof OrganizationAvailableRole
8320
+ */
8321
+ 'name'?: string;
8322
+ }
8323
+ /**
8324
+ *
8325
+ * @export
8326
+ * @interface OrganizationAvailableRoleList
8327
+ */
8328
+ export interface OrganizationAvailableRoleList {
8329
+ /**
8330
+ *
8331
+ * @type {Array<OrganizationAvailableRole>}
8332
+ * @memberof OrganizationAvailableRoleList
8333
+ */
8334
+ 'results'?: Array<OrganizationAvailableRole>;
8335
+ }
8141
8336
  /**
8142
8337
  *
8143
8338
  * @export
@@ -8252,6 +8447,244 @@ export interface OrganizationCurrentCostAllOf {
8252
8447
  */
8253
8448
  'paid_usage'?: PaidUsage;
8254
8449
  }
8450
+ /**
8451
+ *
8452
+ * @export
8453
+ * @interface OrganizationCustomRole
8454
+ */
8455
+ export interface OrganizationCustomRole {
8456
+ /**
8457
+ *
8458
+ * @type {string}
8459
+ * @memberof OrganizationCustomRole
8460
+ */
8461
+ 'name'?: string;
8462
+ /**
8463
+ *
8464
+ * @type {string}
8465
+ * @memberof OrganizationCustomRole
8466
+ */
8467
+ 'description'?: string;
8468
+ /**
8469
+ *
8470
+ * @type {Array<OrganizationCustomRoleClusterPermissions>}
8471
+ * @memberof OrganizationCustomRole
8472
+ */
8473
+ 'cluster_permissions'?: Array<OrganizationCustomRoleClusterPermissions>;
8474
+ /**
8475
+ *
8476
+ * @type {Array<OrganizationCustomRoleProjectPermissions>}
8477
+ * @memberof OrganizationCustomRole
8478
+ */
8479
+ 'project_permissions'?: Array<OrganizationCustomRoleProjectPermissions>;
8480
+ }
8481
+ /**
8482
+ * Indicates the permission for a target cluster, from the lowest to the highest: - `VIEWER` user has only read access on target cluster - `ENV_CREATOR` user can deploy on the cluster - `ADMIN` user can modify the cluster settings
8483
+ * @export
8484
+ * @enum {string}
8485
+ */
8486
+
8487
+ export enum OrganizationCustomRoleClusterPermission {
8488
+ VIEWER = 'VIEWER',
8489
+ ENV_CREATOR = 'ENV_CREATOR',
8490
+ ADMIN = 'ADMIN'
8491
+ }
8492
+
8493
+ /**
8494
+ *
8495
+ * @export
8496
+ * @interface OrganizationCustomRoleClusterPermissions
8497
+ */
8498
+ export interface OrganizationCustomRoleClusterPermissions {
8499
+ /**
8500
+ *
8501
+ * @type {string}
8502
+ * @memberof OrganizationCustomRoleClusterPermissions
8503
+ */
8504
+ 'cluster_id'?: string;
8505
+ /**
8506
+ *
8507
+ * @type {string}
8508
+ * @memberof OrganizationCustomRoleClusterPermissions
8509
+ */
8510
+ 'cluster_name'?: string;
8511
+ /**
8512
+ *
8513
+ * @type {OrganizationCustomRoleClusterPermission}
8514
+ * @memberof OrganizationCustomRoleClusterPermissions
8515
+ */
8516
+ 'permission'?: OrganizationCustomRoleClusterPermission;
8517
+ }
8518
+ /**
8519
+ *
8520
+ * @export
8521
+ * @interface OrganizationCustomRoleCreateRequest
8522
+ */
8523
+ export interface OrganizationCustomRoleCreateRequest {
8524
+ /**
8525
+ *
8526
+ * @type {string}
8527
+ * @memberof OrganizationCustomRoleCreateRequest
8528
+ */
8529
+ 'name': string;
8530
+ /**
8531
+ *
8532
+ * @type {string}
8533
+ * @memberof OrganizationCustomRoleCreateRequest
8534
+ */
8535
+ 'description'?: string;
8536
+ }
8537
+ /**
8538
+ *
8539
+ * @export
8540
+ * @interface OrganizationCustomRoleList
8541
+ */
8542
+ export interface OrganizationCustomRoleList {
8543
+ /**
8544
+ *
8545
+ * @type {Array<OrganizationCustomRole>}
8546
+ * @memberof OrganizationCustomRoleList
8547
+ */
8548
+ 'results'?: Array<OrganizationCustomRole>;
8549
+ }
8550
+ /**
8551
+ * Indicates the permission for a target project and a given environment type, from the lowest to the highest: - `NO_ACCESS` user has no access - `VIEWER` user can access the environment (and applications / containers / databases / variables) - `DEPLOYER` user can deploy the environment (dependent on the required cluster permission `ENV_CREATOR`) - `MANAGER` user can create an environment (and applications / containers / databases / variables)
8552
+ * @export
8553
+ * @enum {string}
8554
+ */
8555
+
8556
+ export enum OrganizationCustomRoleProjectPermission {
8557
+ NO_ACCESS = 'NO_ACCESS',
8558
+ VIEWER = 'VIEWER',
8559
+ DEPLOYER = 'DEPLOYER',
8560
+ MANAGER = 'MANAGER'
8561
+ }
8562
+
8563
+ /**
8564
+ *
8565
+ * @export
8566
+ * @interface OrganizationCustomRoleProjectPermissions
8567
+ */
8568
+ export interface OrganizationCustomRoleProjectPermissions {
8569
+ /**
8570
+ *
8571
+ * @type {string}
8572
+ * @memberof OrganizationCustomRoleProjectPermissions
8573
+ */
8574
+ 'project_id'?: string;
8575
+ /**
8576
+ *
8577
+ * @type {string}
8578
+ * @memberof OrganizationCustomRoleProjectPermissions
8579
+ */
8580
+ 'project_name'?: string;
8581
+ /**
8582
+ * If `is_admin` is `true`, the user is: - automatically `MANAGER` for each environment type - allowed to manage project deployment rules - able to delete the project Note that `permissions` can then be ignored for this project
8583
+ * @type {boolean}
8584
+ * @memberof OrganizationCustomRoleProjectPermissions
8585
+ */
8586
+ 'is_admin'?: boolean;
8587
+ /**
8588
+ *
8589
+ * @type {Array<OrganizationCustomRoleUpdateRequestPermissions>}
8590
+ * @memberof OrganizationCustomRoleProjectPermissions
8591
+ */
8592
+ 'permissions'?: Array<OrganizationCustomRoleUpdateRequestPermissions>;
8593
+ }
8594
+ /**
8595
+ *
8596
+ * @export
8597
+ * @interface OrganizationCustomRoleUpdateRequest
8598
+ */
8599
+ export interface OrganizationCustomRoleUpdateRequest {
8600
+ /**
8601
+ *
8602
+ * @type {string}
8603
+ * @memberof OrganizationCustomRoleUpdateRequest
8604
+ */
8605
+ 'name': string;
8606
+ /**
8607
+ *
8608
+ * @type {string}
8609
+ * @memberof OrganizationCustomRoleUpdateRequest
8610
+ */
8611
+ 'description'?: string;
8612
+ /**
8613
+ * Should contain an entry for every existing cluster
8614
+ * @type {Array<OrganizationCustomRoleUpdateRequestClusterPermissions>}
8615
+ * @memberof OrganizationCustomRoleUpdateRequest
8616
+ */
8617
+ 'cluster_permissions': Array<OrganizationCustomRoleUpdateRequestClusterPermissions>;
8618
+ /**
8619
+ * Should contain an entry for every existing project
8620
+ * @type {Array<OrganizationCustomRoleUpdateRequestProjectPermissions>}
8621
+ * @memberof OrganizationCustomRoleUpdateRequest
8622
+ */
8623
+ 'project_permissions': Array<OrganizationCustomRoleUpdateRequestProjectPermissions>;
8624
+ }
8625
+ /**
8626
+ *
8627
+ * @export
8628
+ * @interface OrganizationCustomRoleUpdateRequestClusterPermissions
8629
+ */
8630
+ export interface OrganizationCustomRoleUpdateRequestClusterPermissions {
8631
+ /**
8632
+ *
8633
+ * @type {string}
8634
+ * @memberof OrganizationCustomRoleUpdateRequestClusterPermissions
8635
+ */
8636
+ 'cluster_id'?: string;
8637
+ /**
8638
+ *
8639
+ * @type {OrganizationCustomRoleClusterPermission}
8640
+ * @memberof OrganizationCustomRoleUpdateRequestClusterPermissions
8641
+ */
8642
+ 'permission'?: OrganizationCustomRoleClusterPermission;
8643
+ }
8644
+ /**
8645
+ *
8646
+ * @export
8647
+ * @interface OrganizationCustomRoleUpdateRequestPermissions
8648
+ */
8649
+ export interface OrganizationCustomRoleUpdateRequestPermissions {
8650
+ /**
8651
+ *
8652
+ * @type {EnvironmentModeEnum}
8653
+ * @memberof OrganizationCustomRoleUpdateRequestPermissions
8654
+ */
8655
+ 'environment_type'?: EnvironmentModeEnum;
8656
+ /**
8657
+ *
8658
+ * @type {OrganizationCustomRoleProjectPermission}
8659
+ * @memberof OrganizationCustomRoleUpdateRequestPermissions
8660
+ */
8661
+ 'permission'?: OrganizationCustomRoleProjectPermission;
8662
+ }
8663
+ /**
8664
+ *
8665
+ * @export
8666
+ * @interface OrganizationCustomRoleUpdateRequestProjectPermissions
8667
+ */
8668
+ export interface OrganizationCustomRoleUpdateRequestProjectPermissions {
8669
+ /**
8670
+ *
8671
+ * @type {string}
8672
+ * @memberof OrganizationCustomRoleUpdateRequestProjectPermissions
8673
+ */
8674
+ 'project_id'?: string;
8675
+ /**
8676
+ * If `is_admin` is `true`, the user is: - automatically `MANAGER` for each environment type - allowed to manage project deployment rules - able to delete the project Note that `permissions` can then be ignored for this project
8677
+ * @type {boolean}
8678
+ * @memberof OrganizationCustomRoleUpdateRequestProjectPermissions
8679
+ */
8680
+ 'is_admin'?: boolean;
8681
+ /**
8682
+ * Mandatory if `is_admin` is `false` Should contain an entry for every environment type: - `DEVELOPMENT` - `PREVIEW` - `STAGING` - `PRODUCTION`
8683
+ * @type {Array<OrganizationCustomRoleUpdateRequestPermissions>}
8684
+ * @memberof OrganizationCustomRoleUpdateRequestProjectPermissions
8685
+ */
8686
+ 'permissions'?: Array<OrganizationCustomRoleUpdateRequestPermissions>;
8687
+ }
8255
8688
  /**
8256
8689
  *
8257
8690
  * @export
@@ -15091,48 +15524,6 @@ export const ApplicationsApiAxiosParamCreator = function (configuration?: Config
15091
15524
  options: localVarRequestOptions,
15092
15525
  };
15093
15526
  },
15094
- /**
15095
- * Deploy to the last commit the applications you specified.
15096
- * @summary Deploy applications
15097
- * @param {string} environmentId Environment ID
15098
- * @param {DeployAllRequest} [deployAllRequest]
15099
- * @param {*} [options] Override http request option.
15100
- * @throws {RequiredError}
15101
- */
15102
- deployAllApplications: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
15103
- // verify required parameter 'environmentId' is not null or undefined
15104
- assertParamExists('deployAllApplications', 'environmentId', environmentId)
15105
- const localVarPath = `/environment/{environmentId}/application/deploy`
15106
- .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
15107
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15108
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15109
- let baseOptions;
15110
- if (configuration) {
15111
- baseOptions = configuration.baseOptions;
15112
- }
15113
-
15114
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15115
- const localVarHeaderParameter = {} as any;
15116
- const localVarQueryParameter = {} as any;
15117
-
15118
- // authentication bearerAuth required
15119
- // http bearer authentication required
15120
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
15121
-
15122
-
15123
-
15124
- localVarHeaderParameter['Content-Type'] = 'application/json';
15125
-
15126
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15127
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15128
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15129
- localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
15130
-
15131
- return {
15132
- url: toPathString(localVarUrlObj),
15133
- options: localVarRequestOptions,
15134
- };
15135
- },
15136
15527
  /**
15137
15528
  *
15138
15529
  * @summary List default application advanced settings
@@ -15379,18 +15770,6 @@ export const ApplicationsApiFp = function(configuration?: Configuration) {
15379
15770
  const localVarAxiosArgs = await localVarAxiosParamCreator.createApplication(environmentId, applicationRequest, options);
15380
15771
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15381
15772
  },
15382
- /**
15383
- * Deploy to the last commit the applications you specified.
15384
- * @summary Deploy applications
15385
- * @param {string} environmentId Environment ID
15386
- * @param {DeployAllRequest} [deployAllRequest]
15387
- * @param {*} [options] Override http request option.
15388
- * @throws {RequiredError}
15389
- */
15390
- async deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
15391
- const localVarAxiosArgs = await localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
15392
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
15393
- },
15394
15773
  /**
15395
15774
  *
15396
15775
  * @summary List default application advanced settings
@@ -15477,17 +15856,6 @@ export const ApplicationsApiFactory = function (configuration?: Configuration, b
15477
15856
  createApplication(environmentId: string, applicationRequest?: ApplicationRequest, options?: any): AxiosPromise<Application> {
15478
15857
  return localVarFp.createApplication(environmentId, applicationRequest, options).then((request) => request(axios, basePath));
15479
15858
  },
15480
- /**
15481
- * Deploy to the last commit the applications you specified.
15482
- * @summary Deploy applications
15483
- * @param {string} environmentId Environment ID
15484
- * @param {DeployAllRequest} [deployAllRequest]
15485
- * @param {*} [options] Override http request option.
15486
- * @throws {RequiredError}
15487
- */
15488
- deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: any): AxiosPromise<Status> {
15489
- return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
15490
- },
15491
15859
  /**
15492
15860
  *
15493
15861
  * @summary List default application advanced settings
@@ -15570,19 +15938,6 @@ export class ApplicationsApi extends BaseAPI {
15570
15938
  return ApplicationsApiFp(this.configuration).createApplication(environmentId, applicationRequest, options).then((request) => request(this.axios, this.basePath));
15571
15939
  }
15572
15940
 
15573
- /**
15574
- * Deploy to the last commit the applications you specified.
15575
- * @summary Deploy applications
15576
- * @param {string} environmentId Environment ID
15577
- * @param {DeployAllRequest} [deployAllRequest]
15578
- * @param {*} [options] Override http request option.
15579
- * @throws {RequiredError}
15580
- * @memberof ApplicationsApi
15581
- */
15582
- public deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig) {
15583
- return ApplicationsApiFp(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
15584
- }
15585
-
15586
15941
  /**
15587
15942
  *
15588
15943
  * @summary List default application advanced settings
@@ -27779,6 +28134,122 @@ export class DependencyApi extends BaseAPI {
27779
28134
  }
27780
28135
 
27781
28136
 
28137
+ /**
28138
+ * EnvironmentApi - axios parameter creator
28139
+ * @export
28140
+ */
28141
+ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configuration) {
28142
+ return {
28143
+ /**
28144
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
28145
+ * @summary Deploy applications
28146
+ * @param {string} environmentId Environment ID
28147
+ * @param {DeployAllRequest} [deployAllRequest]
28148
+ * @param {*} [options] Override http request option.
28149
+ * @throws {RequiredError}
28150
+ */
28151
+ deployAllApplications: async (environmentId: string, deployAllRequest?: DeployAllRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
28152
+ // verify required parameter 'environmentId' is not null or undefined
28153
+ assertParamExists('deployAllApplications', 'environmentId', environmentId)
28154
+ const localVarPath = `/environment/{environmentId}/application/deploy`
28155
+ .replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
28156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
28157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
28158
+ let baseOptions;
28159
+ if (configuration) {
28160
+ baseOptions = configuration.baseOptions;
28161
+ }
28162
+
28163
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
28164
+ const localVarHeaderParameter = {} as any;
28165
+ const localVarQueryParameter = {} as any;
28166
+
28167
+ // authentication bearerAuth required
28168
+ // http bearer authentication required
28169
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
28170
+
28171
+
28172
+
28173
+ localVarHeaderParameter['Content-Type'] = 'application/json';
28174
+
28175
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
28176
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
28177
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
28178
+ localVarRequestOptions.data = serializeDataIfNeeded(deployAllRequest, localVarRequestOptions, configuration)
28179
+
28180
+ return {
28181
+ url: toPathString(localVarUrlObj),
28182
+ options: localVarRequestOptions,
28183
+ };
28184
+ },
28185
+ }
28186
+ };
28187
+
28188
+ /**
28189
+ * EnvironmentApi - functional programming interface
28190
+ * @export
28191
+ */
28192
+ export const EnvironmentApiFp = function(configuration?: Configuration) {
28193
+ const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration)
28194
+ return {
28195
+ /**
28196
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
28197
+ * @summary Deploy applications
28198
+ * @param {string} environmentId Environment ID
28199
+ * @param {DeployAllRequest} [deployAllRequest]
28200
+ * @param {*} [options] Override http request option.
28201
+ * @throws {RequiredError}
28202
+ */
28203
+ async deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Status>> {
28204
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deployAllApplications(environmentId, deployAllRequest, options);
28205
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
28206
+ },
28207
+ }
28208
+ };
28209
+
28210
+ /**
28211
+ * EnvironmentApi - factory interface
28212
+ * @export
28213
+ */
28214
+ export const EnvironmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
28215
+ const localVarFp = EnvironmentApiFp(configuration)
28216
+ return {
28217
+ /**
28218
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
28219
+ * @summary Deploy applications
28220
+ * @param {string} environmentId Environment ID
28221
+ * @param {DeployAllRequest} [deployAllRequest]
28222
+ * @param {*} [options] Override http request option.
28223
+ * @throws {RequiredError}
28224
+ */
28225
+ deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: any): AxiosPromise<Status> {
28226
+ return localVarFp.deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(axios, basePath));
28227
+ },
28228
+ };
28229
+ };
28230
+
28231
+ /**
28232
+ * EnvironmentApi - object-oriented interface
28233
+ * @export
28234
+ * @class EnvironmentApi
28235
+ * @extends {BaseAPI}
28236
+ */
28237
+ export class EnvironmentApi extends BaseAPI {
28238
+ /**
28239
+ * Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
28240
+ * @summary Deploy applications
28241
+ * @param {string} environmentId Environment ID
28242
+ * @param {DeployAllRequest} [deployAllRequest]
28243
+ * @param {*} [options] Override http request option.
28244
+ * @throws {RequiredError}
28245
+ * @memberof EnvironmentApi
28246
+ */
28247
+ public deployAllApplications(environmentId: string, deployAllRequest?: DeployAllRequest, options?: AxiosRequestConfig) {
28248
+ return EnvironmentApiFp(this.configuration).deployAllApplications(environmentId, deployAllRequest, options).then((request) => request(this.axios, this.basePath));
28249
+ }
28250
+ }
28251
+
28252
+
27782
28253
  /**
27783
28254
  * EnvironmentActionsApi - axios parameter creator
27784
28255
  * @export
@@ -31825,6 +32296,48 @@ export const MembersApiAxiosParamCreator = function (configuration?: Configurati
31825
32296
  options: localVarRequestOptions,
31826
32297
  };
31827
32298
  },
32299
+ /**
32300
+ * Edit an organization member role
32301
+ * @summary Edit an organization member role
32302
+ * @param {string} organizationId Organization ID
32303
+ * @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
32304
+ * @param {*} [options] Override http request option.
32305
+ * @throws {RequiredError}
32306
+ */
32307
+ editOrganizationMemberRole: async (organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
32308
+ // verify required parameter 'organizationId' is not null or undefined
32309
+ assertParamExists('editOrganizationMemberRole', 'organizationId', organizationId)
32310
+ const localVarPath = `/organization/{organizationId}/member`
32311
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
32312
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32313
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32314
+ let baseOptions;
32315
+ if (configuration) {
32316
+ baseOptions = configuration.baseOptions;
32317
+ }
32318
+
32319
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
32320
+ const localVarHeaderParameter = {} as any;
32321
+ const localVarQueryParameter = {} as any;
32322
+
32323
+ // authentication bearerAuth required
32324
+ // http bearer authentication required
32325
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
32326
+
32327
+
32328
+
32329
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32330
+
32331
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32332
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32333
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
32334
+ localVarRequestOptions.data = serializeDataIfNeeded(memberRoleUpdateRequest, localVarRequestOptions, configuration)
32335
+
32336
+ return {
32337
+ url: toPathString(localVarUrlObj),
32338
+ options: localVarRequestOptions,
32339
+ };
32340
+ },
31828
32341
  /**
31829
32342
  *
31830
32343
  * @summary Get invited members
@@ -32060,6 +32573,18 @@ export const MembersApiFp = function(configuration?: Configuration) {
32060
32573
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMember(organizationId, userId, options);
32061
32574
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32062
32575
  },
32576
+ /**
32577
+ * Edit an organization member role
32578
+ * @summary Edit an organization member role
32579
+ * @param {string} organizationId Organization ID
32580
+ * @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
32581
+ * @param {*} [options] Override http request option.
32582
+ * @throws {RequiredError}
32583
+ */
32584
+ async editOrganizationMemberRole(organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
32585
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options);
32586
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32587
+ },
32063
32588
  /**
32064
32589
  *
32065
32590
  * @summary Get invited members
@@ -32149,6 +32674,17 @@ export const MembersApiFactory = function (configuration?: Configuration, basePa
32149
32674
  deleteMember(organizationId: string, userId: string, options?: any): AxiosPromise<void> {
32150
32675
  return localVarFp.deleteMember(organizationId, userId, options).then((request) => request(axios, basePath));
32151
32676
  },
32677
+ /**
32678
+ * Edit an organization member role
32679
+ * @summary Edit an organization member role
32680
+ * @param {string} organizationId Organization ID
32681
+ * @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
32682
+ * @param {*} [options] Override http request option.
32683
+ * @throws {RequiredError}
32684
+ */
32685
+ editOrganizationMemberRole(organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options?: any): AxiosPromise<void> {
32686
+ return localVarFp.editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options).then((request) => request(axios, basePath));
32687
+ },
32152
32688
  /**
32153
32689
  *
32154
32690
  * @summary Get invited members
@@ -32237,6 +32773,19 @@ export class MembersApi extends BaseAPI {
32237
32773
  return MembersApiFp(this.configuration).deleteMember(organizationId, userId, options).then((request) => request(this.axios, this.basePath));
32238
32774
  }
32239
32775
 
32776
+ /**
32777
+ * Edit an organization member role
32778
+ * @summary Edit an organization member role
32779
+ * @param {string} organizationId Organization ID
32780
+ * @param {MemberRoleUpdateRequest} [memberRoleUpdateRequest]
32781
+ * @param {*} [options] Override http request option.
32782
+ * @throws {RequiredError}
32783
+ * @memberof MembersApi
32784
+ */
32785
+ public editOrganizationMemberRole(organizationId: string, memberRoleUpdateRequest?: MemberRoleUpdateRequest, options?: AxiosRequestConfig) {
32786
+ return MembersApiFp(this.configuration).editOrganizationMemberRole(organizationId, memberRoleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
32787
+ }
32788
+
32240
32789
  /**
32241
32790
  *
32242
32791
  * @summary Get invited members
@@ -33127,20 +33676,24 @@ export class OrganizationApiTokenApi extends BaseAPI {
33127
33676
 
33128
33677
 
33129
33678
  /**
33130
- * OrganizationMainCallsApi - axios parameter creator
33679
+ * OrganizationCustomRoleApi - axios parameter creator
33131
33680
  * @export
33132
33681
  */
33133
- export const OrganizationMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
33682
+ export const OrganizationCustomRoleApiAxiosParamCreator = function (configuration?: Configuration) {
33134
33683
  return {
33135
33684
  /**
33136
- *
33137
- * @summary Create an organization
33138
- * @param {OrganizationRequest} [organizationRequest]
33685
+ * Create an organization custom role
33686
+ * @summary Create an organization custom role
33687
+ * @param {string} organizationId Organization ID
33688
+ * @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
33139
33689
  * @param {*} [options] Override http request option.
33140
33690
  * @throws {RequiredError}
33141
33691
  */
33142
- createOrganization: async (organizationRequest?: OrganizationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33143
- const localVarPath = `/organization`;
33692
+ createOrganizationCustomRole: async (organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33693
+ // verify required parameter 'organizationId' is not null or undefined
33694
+ assertParamExists('createOrganizationCustomRole', 'organizationId', organizationId)
33695
+ const localVarPath = `/organization/{organizationId}/customRole`
33696
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
33144
33697
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33145
33698
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33146
33699
  let baseOptions;
@@ -33163,7 +33716,7 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
33163
33716
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33164
33717
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33165
33718
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33166
- localVarRequestOptions.data = serializeDataIfNeeded(organizationRequest, localVarRequestOptions, configuration)
33719
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationCustomRoleCreateRequest, localVarRequestOptions, configuration)
33167
33720
 
33168
33721
  return {
33169
33722
  url: toPathString(localVarUrlObj),
@@ -33171,16 +33724,16 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
33171
33724
  };
33172
33725
  },
33173
33726
  /**
33174
- * To delete an organization you must have the admin permission
33175
- * @summary Delete an organization
33727
+ * Delete organization custom role
33728
+ * @summary Delete organization custom role
33176
33729
  * @param {string} organizationId Organization ID
33177
33730
  * @param {*} [options] Override http request option.
33178
33731
  * @throws {RequiredError}
33179
33732
  */
33180
- deleteOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33733
+ deleteOrganizationCustomRole: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33181
33734
  // verify required parameter 'organizationId' is not null or undefined
33182
- assertParamExists('deleteOrganization', 'organizationId', organizationId)
33183
- const localVarPath = `/organization/{organizationId}`
33735
+ assertParamExists('deleteOrganizationCustomRole', 'organizationId', organizationId)
33736
+ const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
33184
33737
  .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
33185
33738
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33186
33739
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -33209,17 +33762,17 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
33209
33762
  };
33210
33763
  },
33211
33764
  /**
33212
- * To edit an organization you must have the admin permission
33213
- * @summary Edit an organization
33765
+ * Edit an organization custom role
33766
+ * @summary Edit an organization custom role
33214
33767
  * @param {string} organizationId Organization ID
33215
- * @param {OrganizationEditRequest} [organizationEditRequest]
33768
+ * @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
33216
33769
  * @param {*} [options] Override http request option.
33217
33770
  * @throws {RequiredError}
33218
33771
  */
33219
- editOrganization: async (organizationId: string, organizationEditRequest?: OrganizationEditRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33772
+ editOrganizationCustomRole: async (organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33220
33773
  // verify required parameter 'organizationId' is not null or undefined
33221
- assertParamExists('editOrganization', 'organizationId', organizationId)
33222
- const localVarPath = `/organization/{organizationId}`
33774
+ assertParamExists('editOrganizationCustomRole', 'organizationId', organizationId)
33775
+ const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
33223
33776
  .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
33224
33777
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33225
33778
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -33243,7 +33796,7 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
33243
33796
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33244
33797
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33245
33798
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33246
- localVarRequestOptions.data = serializeDataIfNeeded(organizationEditRequest, localVarRequestOptions, configuration)
33799
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationCustomRoleUpdateRequest, localVarRequestOptions, configuration)
33247
33800
 
33248
33801
  return {
33249
33802
  url: toPathString(localVarUrlObj),
@@ -33251,17 +33804,427 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
33251
33804
  };
33252
33805
  },
33253
33806
  /**
33254
- *
33255
- * @summary Get organization by ID
33807
+ * Get an organization custom role
33808
+ * @summary Get an organization custom role
33256
33809
  * @param {string} organizationId Organization ID
33810
+ * @param {string} customRoleId Custom Role ID
33257
33811
  * @param {*} [options] Override http request option.
33258
33812
  * @throws {RequiredError}
33259
33813
  */
33260
- getOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33814
+ getOrganizationCustomRole: async (organizationId: string, customRoleId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33261
33815
  // verify required parameter 'organizationId' is not null or undefined
33262
- assertParamExists('getOrganization', 'organizationId', organizationId)
33263
- const localVarPath = `/organization/{organizationId}`
33264
- .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
33816
+ assertParamExists('getOrganizationCustomRole', 'organizationId', organizationId)
33817
+ // verify required parameter 'customRoleId' is not null or undefined
33818
+ assertParamExists('getOrganizationCustomRole', 'customRoleId', customRoleId)
33819
+ const localVarPath = `/organization/{organizationId}/customRole/{customRoleId}`
33820
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)))
33821
+ .replace(`{${"customRoleId"}}`, encodeURIComponent(String(customRoleId)));
33822
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33823
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33824
+ let baseOptions;
33825
+ if (configuration) {
33826
+ baseOptions = configuration.baseOptions;
33827
+ }
33828
+
33829
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33830
+ const localVarHeaderParameter = {} as any;
33831
+ const localVarQueryParameter = {} as any;
33832
+
33833
+ // authentication bearerAuth required
33834
+ // http bearer authentication required
33835
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33836
+
33837
+
33838
+
33839
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33840
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33841
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33842
+
33843
+ return {
33844
+ url: toPathString(localVarUrlObj),
33845
+ options: localVarRequestOptions,
33846
+ };
33847
+ },
33848
+ /**
33849
+ * List organization custom roles
33850
+ * @summary List organization custom roles
33851
+ * @param {string} organizationId Organization ID
33852
+ * @param {*} [options] Override http request option.
33853
+ * @throws {RequiredError}
33854
+ */
33855
+ listOrganizationCustomRoles: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
33856
+ // verify required parameter 'organizationId' is not null or undefined
33857
+ assertParamExists('listOrganizationCustomRoles', 'organizationId', organizationId)
33858
+ const localVarPath = `/organization/{organizationId}/customRole`
33859
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
33860
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33861
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33862
+ let baseOptions;
33863
+ if (configuration) {
33864
+ baseOptions = configuration.baseOptions;
33865
+ }
33866
+
33867
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
33868
+ const localVarHeaderParameter = {} as any;
33869
+ const localVarQueryParameter = {} as any;
33870
+
33871
+ // authentication bearerAuth required
33872
+ // http bearer authentication required
33873
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33874
+
33875
+
33876
+
33877
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33878
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33879
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33880
+
33881
+ return {
33882
+ url: toPathString(localVarUrlObj),
33883
+ options: localVarRequestOptions,
33884
+ };
33885
+ },
33886
+ }
33887
+ };
33888
+
33889
+ /**
33890
+ * OrganizationCustomRoleApi - functional programming interface
33891
+ * @export
33892
+ */
33893
+ export const OrganizationCustomRoleApiFp = function(configuration?: Configuration) {
33894
+ const localVarAxiosParamCreator = OrganizationCustomRoleApiAxiosParamCreator(configuration)
33895
+ return {
33896
+ /**
33897
+ * Create an organization custom role
33898
+ * @summary Create an organization custom role
33899
+ * @param {string} organizationId Organization ID
33900
+ * @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
33901
+ * @param {*} [options] Override http request option.
33902
+ * @throws {RequiredError}
33903
+ */
33904
+ async createOrganizationCustomRole(organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRole>> {
33905
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options);
33906
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33907
+ },
33908
+ /**
33909
+ * Delete organization custom role
33910
+ * @summary Delete organization custom role
33911
+ * @param {string} organizationId Organization ID
33912
+ * @param {*} [options] Override http request option.
33913
+ * @throws {RequiredError}
33914
+ */
33915
+ async deleteOrganizationCustomRole(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
33916
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationCustomRole(organizationId, options);
33917
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33918
+ },
33919
+ /**
33920
+ * Edit an organization custom role
33921
+ * @summary Edit an organization custom role
33922
+ * @param {string} organizationId Organization ID
33923
+ * @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
33924
+ * @param {*} [options] Override http request option.
33925
+ * @throws {RequiredError}
33926
+ */
33927
+ async editOrganizationCustomRole(organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRole>> {
33928
+ const localVarAxiosArgs = await localVarAxiosParamCreator.editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options);
33929
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33930
+ },
33931
+ /**
33932
+ * Get an organization custom role
33933
+ * @summary Get an organization custom role
33934
+ * @param {string} organizationId Organization ID
33935
+ * @param {string} customRoleId Custom Role ID
33936
+ * @param {*} [options] Override http request option.
33937
+ * @throws {RequiredError}
33938
+ */
33939
+ async getOrganizationCustomRole(organizationId: string, customRoleId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRole>> {
33940
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationCustomRole(organizationId, customRoleId, options);
33941
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33942
+ },
33943
+ /**
33944
+ * List organization custom roles
33945
+ * @summary List organization custom roles
33946
+ * @param {string} organizationId Organization ID
33947
+ * @param {*} [options] Override http request option.
33948
+ * @throws {RequiredError}
33949
+ */
33950
+ async listOrganizationCustomRoles(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationCustomRoleList>> {
33951
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationCustomRoles(organizationId, options);
33952
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33953
+ },
33954
+ }
33955
+ };
33956
+
33957
+ /**
33958
+ * OrganizationCustomRoleApi - factory interface
33959
+ * @export
33960
+ */
33961
+ export const OrganizationCustomRoleApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
33962
+ const localVarFp = OrganizationCustomRoleApiFp(configuration)
33963
+ return {
33964
+ /**
33965
+ * Create an organization custom role
33966
+ * @summary Create an organization custom role
33967
+ * @param {string} organizationId Organization ID
33968
+ * @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
33969
+ * @param {*} [options] Override http request option.
33970
+ * @throws {RequiredError}
33971
+ */
33972
+ createOrganizationCustomRole(organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options?: any): AxiosPromise<OrganizationCustomRole> {
33973
+ return localVarFp.createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options).then((request) => request(axios, basePath));
33974
+ },
33975
+ /**
33976
+ * Delete organization custom role
33977
+ * @summary Delete organization custom role
33978
+ * @param {string} organizationId Organization ID
33979
+ * @param {*} [options] Override http request option.
33980
+ * @throws {RequiredError}
33981
+ */
33982
+ deleteOrganizationCustomRole(organizationId: string, options?: any): AxiosPromise<void> {
33983
+ return localVarFp.deleteOrganizationCustomRole(organizationId, options).then((request) => request(axios, basePath));
33984
+ },
33985
+ /**
33986
+ * Edit an organization custom role
33987
+ * @summary Edit an organization custom role
33988
+ * @param {string} organizationId Organization ID
33989
+ * @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
33990
+ * @param {*} [options] Override http request option.
33991
+ * @throws {RequiredError}
33992
+ */
33993
+ editOrganizationCustomRole(organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options?: any): AxiosPromise<OrganizationCustomRole> {
33994
+ return localVarFp.editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options).then((request) => request(axios, basePath));
33995
+ },
33996
+ /**
33997
+ * Get an organization custom role
33998
+ * @summary Get an organization custom role
33999
+ * @param {string} organizationId Organization ID
34000
+ * @param {string} customRoleId Custom Role ID
34001
+ * @param {*} [options] Override http request option.
34002
+ * @throws {RequiredError}
34003
+ */
34004
+ getOrganizationCustomRole(organizationId: string, customRoleId: string, options?: any): AxiosPromise<OrganizationCustomRole> {
34005
+ return localVarFp.getOrganizationCustomRole(organizationId, customRoleId, options).then((request) => request(axios, basePath));
34006
+ },
34007
+ /**
34008
+ * List organization custom roles
34009
+ * @summary List organization custom roles
34010
+ * @param {string} organizationId Organization ID
34011
+ * @param {*} [options] Override http request option.
34012
+ * @throws {RequiredError}
34013
+ */
34014
+ listOrganizationCustomRoles(organizationId: string, options?: any): AxiosPromise<OrganizationCustomRoleList> {
34015
+ return localVarFp.listOrganizationCustomRoles(organizationId, options).then((request) => request(axios, basePath));
34016
+ },
34017
+ };
34018
+ };
34019
+
34020
+ /**
34021
+ * OrganizationCustomRoleApi - object-oriented interface
34022
+ * @export
34023
+ * @class OrganizationCustomRoleApi
34024
+ * @extends {BaseAPI}
34025
+ */
34026
+ export class OrganizationCustomRoleApi extends BaseAPI {
34027
+ /**
34028
+ * Create an organization custom role
34029
+ * @summary Create an organization custom role
34030
+ * @param {string} organizationId Organization ID
34031
+ * @param {OrganizationCustomRoleCreateRequest} [organizationCustomRoleCreateRequest]
34032
+ * @param {*} [options] Override http request option.
34033
+ * @throws {RequiredError}
34034
+ * @memberof OrganizationCustomRoleApi
34035
+ */
34036
+ public createOrganizationCustomRole(organizationId: string, organizationCustomRoleCreateRequest?: OrganizationCustomRoleCreateRequest, options?: AxiosRequestConfig) {
34037
+ return OrganizationCustomRoleApiFp(this.configuration).createOrganizationCustomRole(organizationId, organizationCustomRoleCreateRequest, options).then((request) => request(this.axios, this.basePath));
34038
+ }
34039
+
34040
+ /**
34041
+ * Delete organization custom role
34042
+ * @summary Delete organization custom role
34043
+ * @param {string} organizationId Organization ID
34044
+ * @param {*} [options] Override http request option.
34045
+ * @throws {RequiredError}
34046
+ * @memberof OrganizationCustomRoleApi
34047
+ */
34048
+ public deleteOrganizationCustomRole(organizationId: string, options?: AxiosRequestConfig) {
34049
+ return OrganizationCustomRoleApiFp(this.configuration).deleteOrganizationCustomRole(organizationId, options).then((request) => request(this.axios, this.basePath));
34050
+ }
34051
+
34052
+ /**
34053
+ * Edit an organization custom role
34054
+ * @summary Edit an organization custom role
34055
+ * @param {string} organizationId Organization ID
34056
+ * @param {OrganizationCustomRoleUpdateRequest} [organizationCustomRoleUpdateRequest]
34057
+ * @param {*} [options] Override http request option.
34058
+ * @throws {RequiredError}
34059
+ * @memberof OrganizationCustomRoleApi
34060
+ */
34061
+ public editOrganizationCustomRole(organizationId: string, organizationCustomRoleUpdateRequest?: OrganizationCustomRoleUpdateRequest, options?: AxiosRequestConfig) {
34062
+ return OrganizationCustomRoleApiFp(this.configuration).editOrganizationCustomRole(organizationId, organizationCustomRoleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
34063
+ }
34064
+
34065
+ /**
34066
+ * Get an organization custom role
34067
+ * @summary Get an organization custom role
34068
+ * @param {string} organizationId Organization ID
34069
+ * @param {string} customRoleId Custom Role ID
34070
+ * @param {*} [options] Override http request option.
34071
+ * @throws {RequiredError}
34072
+ * @memberof OrganizationCustomRoleApi
34073
+ */
34074
+ public getOrganizationCustomRole(organizationId: string, customRoleId: string, options?: AxiosRequestConfig) {
34075
+ return OrganizationCustomRoleApiFp(this.configuration).getOrganizationCustomRole(organizationId, customRoleId, options).then((request) => request(this.axios, this.basePath));
34076
+ }
34077
+
34078
+ /**
34079
+ * List organization custom roles
34080
+ * @summary List organization custom roles
34081
+ * @param {string} organizationId Organization ID
34082
+ * @param {*} [options] Override http request option.
34083
+ * @throws {RequiredError}
34084
+ * @memberof OrganizationCustomRoleApi
34085
+ */
34086
+ public listOrganizationCustomRoles(organizationId: string, options?: AxiosRequestConfig) {
34087
+ return OrganizationCustomRoleApiFp(this.configuration).listOrganizationCustomRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
34088
+ }
34089
+ }
34090
+
34091
+
34092
+ /**
34093
+ * OrganizationMainCallsApi - axios parameter creator
34094
+ * @export
34095
+ */
34096
+ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration?: Configuration) {
34097
+ return {
34098
+ /**
34099
+ *
34100
+ * @summary Create an organization
34101
+ * @param {OrganizationRequest} [organizationRequest]
34102
+ * @param {*} [options] Override http request option.
34103
+ * @throws {RequiredError}
34104
+ */
34105
+ createOrganization: async (organizationRequest?: OrganizationRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34106
+ const localVarPath = `/organization`;
34107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34108
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34109
+ let baseOptions;
34110
+ if (configuration) {
34111
+ baseOptions = configuration.baseOptions;
34112
+ }
34113
+
34114
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34115
+ const localVarHeaderParameter = {} as any;
34116
+ const localVarQueryParameter = {} as any;
34117
+
34118
+ // authentication bearerAuth required
34119
+ // http bearer authentication required
34120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34121
+
34122
+
34123
+
34124
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34125
+
34126
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34127
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34128
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34129
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationRequest, localVarRequestOptions, configuration)
34130
+
34131
+ return {
34132
+ url: toPathString(localVarUrlObj),
34133
+ options: localVarRequestOptions,
34134
+ };
34135
+ },
34136
+ /**
34137
+ * To delete an organization you must have the admin permission
34138
+ * @summary Delete an organization
34139
+ * @param {string} organizationId Organization ID
34140
+ * @param {*} [options] Override http request option.
34141
+ * @throws {RequiredError}
34142
+ */
34143
+ deleteOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34144
+ // verify required parameter 'organizationId' is not null or undefined
34145
+ assertParamExists('deleteOrganization', 'organizationId', organizationId)
34146
+ const localVarPath = `/organization/{organizationId}`
34147
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
34148
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34149
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34150
+ let baseOptions;
34151
+ if (configuration) {
34152
+ baseOptions = configuration.baseOptions;
34153
+ }
34154
+
34155
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
34156
+ const localVarHeaderParameter = {} as any;
34157
+ const localVarQueryParameter = {} as any;
34158
+
34159
+ // authentication bearerAuth required
34160
+ // http bearer authentication required
34161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34162
+
34163
+
34164
+
34165
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34166
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34167
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34168
+
34169
+ return {
34170
+ url: toPathString(localVarUrlObj),
34171
+ options: localVarRequestOptions,
34172
+ };
34173
+ },
34174
+ /**
34175
+ * To edit an organization you must have the admin permission
34176
+ * @summary Edit an organization
34177
+ * @param {string} organizationId Organization ID
34178
+ * @param {OrganizationEditRequest} [organizationEditRequest]
34179
+ * @param {*} [options] Override http request option.
34180
+ * @throws {RequiredError}
34181
+ */
34182
+ editOrganization: async (organizationId: string, organizationEditRequest?: OrganizationEditRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34183
+ // verify required parameter 'organizationId' is not null or undefined
34184
+ assertParamExists('editOrganization', 'organizationId', organizationId)
34185
+ const localVarPath = `/organization/{organizationId}`
34186
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
34187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34189
+ let baseOptions;
34190
+ if (configuration) {
34191
+ baseOptions = configuration.baseOptions;
34192
+ }
34193
+
34194
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
34195
+ const localVarHeaderParameter = {} as any;
34196
+ const localVarQueryParameter = {} as any;
34197
+
34198
+ // authentication bearerAuth required
34199
+ // http bearer authentication required
34200
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34201
+
34202
+
34203
+
34204
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34205
+
34206
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34207
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34208
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34209
+ localVarRequestOptions.data = serializeDataIfNeeded(organizationEditRequest, localVarRequestOptions, configuration)
34210
+
34211
+ return {
34212
+ url: toPathString(localVarUrlObj),
34213
+ options: localVarRequestOptions,
34214
+ };
34215
+ },
34216
+ /**
34217
+ *
34218
+ * @summary Get organization by ID
34219
+ * @param {string} organizationId Organization ID
34220
+ * @param {*} [options] Override http request option.
34221
+ * @throws {RequiredError}
34222
+ */
34223
+ getOrganization: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34224
+ // verify required parameter 'organizationId' is not null or undefined
34225
+ assertParamExists('getOrganization', 'organizationId', organizationId)
34226
+ const localVarPath = `/organization/{organizationId}`
34227
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
33265
34228
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
33266
34229
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33267
34230
  let baseOptions;
@@ -33313,6 +34276,44 @@ export const OrganizationMainCallsApiAxiosParamCreator = function (configuration
33313
34276
 
33314
34277
 
33315
34278
 
34279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34281
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34282
+
34283
+ return {
34284
+ url: toPathString(localVarUrlObj),
34285
+ options: localVarRequestOptions,
34286
+ };
34287
+ },
34288
+ /**
34289
+ * List organization available roles
34290
+ * @summary List organization available roles
34291
+ * @param {string} organizationId Organization ID
34292
+ * @param {*} [options] Override http request option.
34293
+ * @throws {RequiredError}
34294
+ */
34295
+ listOrganizationAvailableRoles: async (organizationId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
34296
+ // verify required parameter 'organizationId' is not null or undefined
34297
+ assertParamExists('listOrganizationAvailableRoles', 'organizationId', organizationId)
34298
+ const localVarPath = `/organization/{organizationId}/availableRole`
34299
+ .replace(`{${"organizationId"}}`, encodeURIComponent(String(organizationId)));
34300
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34301
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34302
+ let baseOptions;
34303
+ if (configuration) {
34304
+ baseOptions = configuration.baseOptions;
34305
+ }
34306
+
34307
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34308
+ const localVarHeaderParameter = {} as any;
34309
+ const localVarQueryParameter = {} as any;
34310
+
34311
+ // authentication bearerAuth required
34312
+ // http bearer authentication required
34313
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34314
+
34315
+
34316
+
33316
34317
  setSearchParams(localVarUrlObj, localVarQueryParameter);
33317
34318
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33318
34319
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -33387,6 +34388,17 @@ export const OrganizationMainCallsApiFp = function(configuration?: Configuration
33387
34388
  const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganization(options);
33388
34389
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
33389
34390
  },
34391
+ /**
34392
+ * List organization available roles
34393
+ * @summary List organization available roles
34394
+ * @param {string} organizationId Organization ID
34395
+ * @param {*} [options] Override http request option.
34396
+ * @throws {RequiredError}
34397
+ */
34398
+ async listOrganizationAvailableRoles(organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrganizationAvailableRoleList>> {
34399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizationAvailableRoles(organizationId, options);
34400
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
34401
+ },
33390
34402
  }
33391
34403
  };
33392
34404
 
@@ -33447,6 +34459,16 @@ export const OrganizationMainCallsApiFactory = function (configuration?: Configu
33447
34459
  listOrganization(options?: any): AxiosPromise<OrganizationResponseList> {
33448
34460
  return localVarFp.listOrganization(options).then((request) => request(axios, basePath));
33449
34461
  },
34462
+ /**
34463
+ * List organization available roles
34464
+ * @summary List organization available roles
34465
+ * @param {string} organizationId Organization ID
34466
+ * @param {*} [options] Override http request option.
34467
+ * @throws {RequiredError}
34468
+ */
34469
+ listOrganizationAvailableRoles(organizationId: string, options?: any): AxiosPromise<OrganizationAvailableRoleList> {
34470
+ return localVarFp.listOrganizationAvailableRoles(organizationId, options).then((request) => request(axios, basePath));
34471
+ },
33450
34472
  };
33451
34473
  };
33452
34474
 
@@ -33516,6 +34538,18 @@ export class OrganizationMainCallsApi extends BaseAPI {
33516
34538
  public listOrganization(options?: AxiosRequestConfig) {
33517
34539
  return OrganizationMainCallsApiFp(this.configuration).listOrganization(options).then((request) => request(this.axios, this.basePath));
33518
34540
  }
34541
+
34542
+ /**
34543
+ * List organization available roles
34544
+ * @summary List organization available roles
34545
+ * @param {string} organizationId Organization ID
34546
+ * @param {*} [options] Override http request option.
34547
+ * @throws {RequiredError}
34548
+ * @memberof OrganizationMainCallsApi
34549
+ */
34550
+ public listOrganizationAvailableRoles(organizationId: string, options?: AxiosRequestConfig) {
34551
+ return OrganizationMainCallsApiFp(this.configuration).listOrganizationAvailableRoles(organizationId, options).then((request) => request(this.axios, this.basePath));
34552
+ }
33519
34553
  }
33520
34554
 
33521
34555