Skip to content

Commit c4360d3

Browse files
Security update (#6)
* Security update * 2.0.2 * Regenerated code
1 parent b1634ce commit c4360d3

33 files changed

+276
-715
lines changed

.openapi-generator/FILES

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ common.ts
2626
configuration.ts
2727
git_push.sh
2828
index.ts
29+
model/access-type.ts
2930
model/add-or-update-integration-link-model.ts
3031
model/add-or-update-jira-integration-link-model.ts
3132
model/audit-log-item-model.ts
33+
model/audit-log-type.ts
3234
model/code-reference-model.ts
3335
model/code-reference-request.ts
3436
model/comparison-value-list-model.ts
@@ -52,22 +54,28 @@ model/create-tag-model.ts
5254
model/delete-integration-link-model.ts
5355
model/delete-repository-reports-request.ts
5456
model/environment-access-model.ts
57+
model/environment-access-type.ts
5558
model/environment-model.ts
59+
model/evaluation-version.ts
5660
model/feature-flag-limitations.ts
5761
model/flag-reference.ts
5862
model/index.ts
5963
model/initial-value.ts
6064
model/integration-link-detail.ts
6165
model/integration-link-details-model.ts
6266
model/integration-link-model.ts
67+
model/integration-link-type.ts
6368
model/integration-model.ts
69+
model/integration-type.ts
6470
model/integrations-model.ts
6571
model/invitation-model.ts
6672
model/invite-members-request.ts
6773
model/json-patch-operation.ts
74+
model/key-generation-mode.ts
6875
model/me-model.ts
6976
model/member-model.ts
7077
model/modify-integration-request.ts
78+
model/operation-type.ts
7179
model/organization-admin-model.ts
7280
model/organization-invitation-model.ts
7381
model/organization-member-model.ts
@@ -79,22 +87,26 @@ model/organization-product-model.ts
7987
model/percentage-option-model.ts
8088
model/permission-group-model.ts
8189
model/preferences-model.ts
90+
model/prerequisite-comparator.ts
8291
model/prerequisite-flag-condition-model.ts
8392
model/product-model.ts
8493
model/reason-required-environment-model.ts
8594
model/reference-line.ts
8695
model/reference-lines.ts
8796
model/replace-setting-model.ts
8897
model/rollout-percentage-item-model.ts
98+
model/rollout-rule-comparator.ts
8999
model/rollout-rule-model.ts
90100
model/sdk-keys-model.ts
101+
model/segment-comparator.ts
91102
model/segment-condition-model.ts
92103
model/segment-list-model.ts
93104
model/segment-model.ts
94105
model/setting-data-model.ts
95106
model/setting-formula-model.ts
96107
model/setting-model.ts
97108
model/setting-tag-model.ts
109+
model/setting-type.ts
98110
model/setting-value-model.ts
99111
model/tag-model.ts
100112
model/targeting-rule-model.ts
@@ -113,9 +125,11 @@ model/update-setting-value-model.ts
113125
model/update-setting-value-with-setting-id-model.ts
114126
model/update-setting-values-with-id-model.ts
115127
model/update-tag-model.ts
128+
model/user-comparator.ts
116129
model/user-condition-model.ts
117130
model/user-model.ts
118131
model/value-model.ts
132+
model/web-hook-http-method.ts
119133
model/web-hook-request.ts
120134
model/webhook-config.ts
121135
model/webhook-environment.ts

api/audit-logs-api.ts

Lines changed: 18 additions & 182 deletions
Large diffs are not rendered by default.

api/integration-links-api.ts

Lines changed: 26 additions & 51 deletions
Large diffs are not rendered by default.

model/audit-log-item-model.ts

Lines changed: 5 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { AuditLogType } from './audit-log-type';
1619

1720
/**
1821
*
@@ -34,10 +37,10 @@ export interface AuditLogItemModel {
3437
'auditLogDateTime'?: string;
3538
/**
3639
*
37-
* @type {string}
40+
* @type {AuditLogType}
3841
* @memberof AuditLogItemModel
3942
*/
40-
'auditLogTypeEnum'?: AuditLogItemModelAuditLogTypeEnumEnum;
43+
'auditLogTypeEnum'?: AuditLogType;
4144
/**
4245
*
4346
* @type {string}
@@ -94,86 +97,5 @@ export interface AuditLogItemModel {
9497
'details'?: string | null;
9598
}
9699

97-
export const AuditLogItemModelAuditLogTypeEnumEnum = {
98-
ProductCreated: 'productCreated',
99-
ProductChanged: 'productChanged',
100-
ProductOwnershipTransferred: 'productOwnershipTransferred',
101-
ProductDeleted: 'productDeleted',
102-
ProductsReordered: 'productsReordered',
103-
TeamMemberInvited: 'teamMemberInvited',
104-
TeamMemberInvitationRevoked: 'teamMemberInvitationRevoked',
105-
TeamMemberJoined: 'teamMemberJoined',
106-
TeamMemberPermissionGroupChanged: 'teamMemberPermissionGroupChanged',
107-
TeamMemberRemoved: 'teamMemberRemoved',
108-
TeamMemberLeft: 'teamMemberLeft',
109-
TeamMemberInvitationChanged: 'teamMemberInvitationChanged',
110-
TeamMemberInvitationResent: 'teamMemberInvitationResent',
111-
TeamMemberInvitationRejected: 'teamMemberInvitationRejected',
112-
ConfigCreated: 'configCreated',
113-
ConfigChanged: 'configChanged',
114-
ConfigDeleted: 'configDeleted',
115-
ConfigsReordered: 'configsReordered',
116-
EnvironmentCreated: 'environmentCreated',
117-
EnvironmentChanged: 'environmentChanged',
118-
EnvironmentDeleted: 'environmentDeleted',
119-
EnvironmentsReordered: 'environmentsReordered',
120-
SettingCreated: 'settingCreated',
121-
SettingChanged: 'settingChanged',
122-
SettingDeleted: 'settingDeleted',
123-
SettingsReordered: 'settingsReordered',
124-
SettingValueChanged: 'settingValueChanged',
125-
WebHookCreated: 'webHookCreated',
126-
WebHookChanged: 'webHookChanged',
127-
WebHookDeleted: 'webHookDeleted',
128-
PermissionGroupCreated: 'permissionGroupCreated',
129-
PermissionGroupChanged: 'permissionGroupChanged',
130-
PermissionGroupDeleted: 'permissionGroupDeleted',
131-
PermissionGroupDefault: 'permissionGroupDefault',
132-
ApiKeyAdded: 'apiKeyAdded',
133-
ApiKeyRemoved: 'apiKeyRemoved',
134-
IntegrationAdded: 'integrationAdded',
135-
IntegrationChanged: 'integrationChanged',
136-
IntegrationRemoved: 'integrationRemoved',
137-
ApiKeyConnected: 'apiKeyConnected',
138-
IntegrationLinkAdded: 'integrationLinkAdded',
139-
IntegrationLinkRemoved: 'integrationLinkRemoved',
140-
OrganizationAdded: 'organizationAdded',
141-
OrganizationRemoved: 'organizationRemoved',
142-
OrganizationChanged: 'organizationChanged',
143-
OrganizationSubscriptionTypeChanged: 'organizationSubscriptionTypeChanged',
144-
OrganizationAdminChanged: 'organizationAdminChanged',
145-
OrganizationAdminLeft: 'organizationAdminLeft',
146-
OrganizationAdminDisabled2Fa: 'organizationAdminDisabled2FA',
147-
TagAdded: 'tagAdded',
148-
TagChanged: 'tagChanged',
149-
TagRemoved: 'tagRemoved',
150-
SettingTagAdded: 'settingTagAdded',
151-
SettingTagRemoved: 'settingTagRemoved',
152-
PublicApiAccessTokenAdded: 'publicApiAccessTokenAdded',
153-
PublicApiAccessTokenRemoved: 'publicApiAccessTokenRemoved',
154-
DomainAdded: 'domainAdded',
155-
DomainVerified: 'domainVerified',
156-
DomainRemoved: 'domainRemoved',
157-
DomainSamlConfigured: 'domainSamlConfigured',
158-
DomainSamlDeleted: 'domainSamlDeleted',
159-
AutoProvisioningConfigurationChanged: 'autoProvisioningConfigurationChanged',
160-
SamlIdpConfigurationAdded: 'samlIdpConfigurationAdded',
161-
SamlIdpConfigurationRemoved: 'samlIdpConfigurationRemoved',
162-
SamlIdpConfigurationUpdated: 'samlIdpConfigurationUpdated',
163-
OrganizationMemberJoined: 'organizationMemberJoined',
164-
OrganizationMemberProductJoinRequested: 'organizationMemberProductJoinRequested',
165-
OrganizationMemberProductJoinRequestRejected: 'organizationMemberProductJoinRequestRejected',
166-
OrganizationMemberProductJoinRequestApproved: 'organizationMemberProductJoinRequestApproved',
167-
CodeReferencesUploaded: 'codeReferencesUploaded',
168-
CodeReferenceDeleted: 'codeReferenceDeleted',
169-
CodeReferenceStaleBranchDeleted: 'codeReferenceStaleBranchDeleted',
170-
SegmentCreated: 'segmentCreated',
171-
SegmentChanged: 'segmentChanged',
172-
SegmentDeleted: 'segmentDeleted',
173-
WebhookSigningKeyDeleted: 'webhookSigningKeyDeleted',
174-
WebhookSigningKeyCreated: 'webhookSigningKeyCreated'
175-
} as const;
176-
177-
export type AuditLogItemModelAuditLogTypeEnumEnum = typeof AuditLogItemModelAuditLogTypeEnumEnum[keyof typeof AuditLogItemModelAuditLogTypeEnumEnum];
178100

179101

model/audit-log-type.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const AuditLogType = {
6969
OrganizationSubscriptionTypeChanged: 'organizationSubscriptionTypeChanged',
7070
OrganizationAdminChanged: 'organizationAdminChanged',
7171
OrganizationAdminLeft: 'organizationAdminLeft',
72-
OrganizationAdminDisabled2Fa: 'organizationAdminDisabled2FA',
72+
TwoFactorDisabledForMember: 'twoFactorDisabledForMember',
7373
TagAdded: 'tagAdded',
7474
TagChanged: 'tagChanged',
7575
TagRemoved: 'tagRemoved',
@@ -90,6 +90,7 @@ export const AuditLogType = {
9090
OrganizationMemberProductJoinRequested: 'organizationMemberProductJoinRequested',
9191
OrganizationMemberProductJoinRequestRejected: 'organizationMemberProductJoinRequestRejected',
9292
OrganizationMemberProductJoinRequestApproved: 'organizationMemberProductJoinRequestApproved',
93+
OrganizationMemberRemoved: 'organizationMemberRemoved',
9394
CodeReferencesUploaded: 'codeReferencesUploaded',
9495
CodeReferenceDeleted: 'codeReferenceDeleted',
9596
CodeReferenceStaleBranchDeleted: 'codeReferenceStaleBranchDeleted',

model/config-model.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { EvaluationVersion } from './evaluation-version';
1619
// May contain unused imports in some cases
1720
// @ts-ignore
1821
import { ProductModel } from './product-model';
@@ -60,18 +63,12 @@ export interface ConfigModel {
6063
*/
6164
'migratedConfigId'?: string | null;
6265
/**
63-
* Determines the evaluation version of a Config. Using `v2` enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
64-
* @type {string}
66+
*
67+
* @type {EvaluationVersion}
6568
* @memberof ConfigModel
6669
*/
67-
'evaluationVersion'?: ConfigModelEvaluationVersionEnum;
70+
'evaluationVersion'?: EvaluationVersion;
6871
}
6972

70-
export const ConfigModelEvaluationVersionEnum = {
71-
V1: 'v1',
72-
V2: 'v2'
73-
} as const;
74-
75-
export type ConfigModelEvaluationVersionEnum = typeof ConfigModelEvaluationVersionEnum[keyof typeof ConfigModelEvaluationVersionEnum];
7673

7774

model/create-config-request.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { EvaluationVersion } from './evaluation-version';
1619

1720
/**
1821
*
@@ -39,18 +42,12 @@ export interface CreateConfigRequest {
3942
*/
4043
'order'?: number | null;
4144
/**
42-
* Determines the evaluation version of a Config. Using `v2` enables the new features of Config V2 (https://configcat.com/docs/advanced/config-v2).
43-
* @type {string}
45+
*
46+
* @type {EvaluationVersion}
4447
* @memberof CreateConfigRequest
4548
*/
46-
'evaluationVersion'?: CreateConfigRequestEvaluationVersionEnum;
49+
'evaluationVersion'?: EvaluationVersion;
4750
}
4851

49-
export const CreateConfigRequestEvaluationVersionEnum = {
50-
V1: 'v1',
51-
V2: 'v2'
52-
} as const;
53-
54-
export type CreateConfigRequestEvaluationVersionEnum = typeof CreateConfigRequestEvaluationVersionEnum[keyof typeof CreateConfigRequestEvaluationVersionEnum];
5552

5653

model/create-integration-model.ts

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { IntegrationType } from './integration-type';
1619

1720
/**
1821
*
@@ -21,11 +24,11 @@
2124
*/
2225
export interface CreateIntegrationModel {
2326
/**
24-
* Type of the Integration.
25-
* @type {string}
27+
*
28+
* @type {IntegrationType}
2629
* @memberof CreateIntegrationModel
2730
*/
28-
'integrationType': CreateIntegrationModelIntegrationTypeEnum;
31+
'integrationType': IntegrationType;
2932
/**
3033
* Name of the Integration.
3134
* @type {string}
@@ -52,15 +55,5 @@ export interface CreateIntegrationModel {
5255
'configIds': Array<string>;
5356
}
5457

55-
export const CreateIntegrationModelIntegrationTypeEnum = {
56-
DataDog: 'dataDog',
57-
Slack: 'slack',
58-
Amplitude: 'amplitude',
59-
MixPanel: 'mixPanel',
60-
Segment: 'segment',
61-
PubNub: 'pubNub'
62-
} as const;
63-
64-
export type CreateIntegrationModelIntegrationTypeEnum = typeof CreateIntegrationModelIntegrationTypeEnum[keyof typeof CreateIntegrationModelIntegrationTypeEnum];
6558

6659

model/create-or-update-environment-access-model.ts

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
*/
1414

1515

16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import { EnvironmentAccessType } from './environment-access-type';
1619

1720
/**
1821
*
@@ -27,19 +30,12 @@ export interface CreateOrUpdateEnvironmentAccessModel {
2730
*/
2831
'environmentId'?: string;
2932
/**
30-
* Represent the environment specific Feature Management permission.
31-
* @type {string}
33+
*
34+
* @type {EnvironmentAccessType}
3235
* @memberof CreateOrUpdateEnvironmentAccessModel
3336
*/
34-
'environmentAccessType'?: CreateOrUpdateEnvironmentAccessModelEnvironmentAccessTypeEnum;
37+
'environmentAccessType'?: EnvironmentAccessType;
3538
}
3639

37-
export const CreateOrUpdateEnvironmentAccessModelEnvironmentAccessTypeEnum = {
38-
Full: 'full',
39-
ReadOnly: 'readOnly',
40-
None: 'none'
41-
} as const;
42-
43-
export type CreateOrUpdateEnvironmentAccessModelEnvironmentAccessTypeEnum = typeof CreateOrUpdateEnvironmentAccessModelEnvironmentAccessTypeEnum[keyof typeof CreateOrUpdateEnvironmentAccessModelEnvironmentAccessTypeEnum];
4440

4541

0 commit comments

Comments
 (0)