@flashstart/client 0.1.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +9 -2
- package/dist/src/generated/authentication/client/client.gen.d.ts +2 -0
- package/dist/src/generated/authentication/client/client.gen.js +216 -0
- package/dist/src/generated/authentication/client/index.d.ts +10 -0
- package/dist/src/generated/authentication/client/index.js +6 -0
- package/dist/src/generated/authentication/client/types.gen.d.ts +120 -0
- package/dist/src/generated/authentication/client/types.gen.js +2 -0
- package/dist/src/generated/authentication/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/authentication/client/utils.gen.js +228 -0
- package/dist/src/generated/authentication/client.gen.d.ts +12 -0
- package/dist/src/generated/authentication/client.gen.js +3 -0
- package/dist/src/generated/authentication/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/authentication/core/auth.gen.js +14 -0
- package/dist/src/generated/authentication/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/authentication/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/authentication/core/params.gen.d.ts +43 -0
- package/dist/src/generated/authentication/core/params.gen.js +109 -0
- package/dist/src/generated/authentication/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/authentication/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/authentication/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/authentication/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/authentication/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/authentication/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/authentication/core/types.gen.d.ts +83 -0
- package/dist/src/generated/authentication/core/types.gen.js +2 -0
- package/dist/src/generated/authentication/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/authentication/core/utils.gen.js +87 -0
- package/dist/src/generated/authentication/index.d.ts +2 -0
- package/dist/src/generated/authentication/index.js +2 -0
- package/dist/src/generated/authentication/sdk.gen.d.ts +151 -0
- package/dist/src/generated/authentication/sdk.gen.js +359 -0
- package/dist/src/generated/authentication/types.gen.d.ts +1135 -0
- package/dist/src/generated/authentication/types.gen.js +2 -0
- package/dist/src/generated/integration/client/client.gen.d.ts +2 -0
- package/dist/src/generated/integration/client/client.gen.js +216 -0
- package/dist/src/generated/integration/client/index.d.ts +10 -0
- package/dist/src/generated/integration/client/index.js +6 -0
- package/dist/src/generated/integration/client/types.gen.d.ts +120 -0
- package/dist/src/generated/integration/client/types.gen.js +2 -0
- package/dist/src/generated/integration/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/integration/client/utils.gen.js +228 -0
- package/dist/src/generated/integration/client.gen.d.ts +12 -0
- package/dist/src/generated/integration/client.gen.js +3 -0
- package/dist/src/generated/integration/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/integration/core/auth.gen.js +14 -0
- package/dist/src/generated/integration/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/integration/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/integration/core/params.gen.d.ts +43 -0
- package/dist/src/generated/integration/core/params.gen.js +109 -0
- package/dist/src/generated/integration/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/integration/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/integration/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/integration/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/integration/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/integration/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/integration/core/types.gen.d.ts +83 -0
- package/dist/src/generated/integration/core/types.gen.js +2 -0
- package/dist/src/generated/integration/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/integration/core/utils.gen.js +87 -0
- package/dist/src/generated/integration/index.d.ts +2 -0
- package/dist/src/generated/integration/index.js +2 -0
- package/dist/src/generated/integration/sdk.gen.d.ts +207 -0
- package/dist/src/generated/integration/sdk.gen.js +527 -0
- package/dist/src/generated/integration/types.gen.d.ts +2604 -0
- package/dist/src/generated/integration/types.gen.js +2 -0
- package/dist/src/generated/network/index.d.ts +1 -1
- package/dist/src/generated/network/types.gen.d.ts +751 -55
- package/dist/src/generated/protection/index.d.ts +1 -1
- package/dist/src/generated/protection/types.gen.d.ts +627 -357
- package/dist/src/generated/report/client/client.gen.d.ts +2 -0
- package/dist/src/generated/report/client/client.gen.js +216 -0
- package/dist/src/generated/report/client/index.d.ts +10 -0
- package/dist/src/generated/report/client/index.js +6 -0
- package/dist/src/generated/report/client/types.gen.d.ts +120 -0
- package/dist/src/generated/report/client/types.gen.js +2 -0
- package/dist/src/generated/report/client/utils.gen.d.ts +37 -0
- package/dist/src/generated/report/client/utils.gen.js +228 -0
- package/dist/src/generated/report/client.gen.d.ts +12 -0
- package/dist/src/generated/report/client.gen.js +3 -0
- package/dist/src/generated/report/core/auth.gen.d.ts +25 -0
- package/dist/src/generated/report/core/auth.gen.js +14 -0
- package/dist/src/generated/report/core/bodySerializer.gen.d.ts +25 -0
- package/dist/src/generated/report/core/bodySerializer.gen.js +57 -0
- package/dist/src/generated/report/core/params.gen.d.ts +43 -0
- package/dist/src/generated/report/core/params.gen.js +109 -0
- package/dist/src/generated/report/core/pathSerializer.gen.d.ts +33 -0
- package/dist/src/generated/report/core/pathSerializer.gen.js +106 -0
- package/dist/src/generated/report/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/src/generated/report/core/queryKeySerializer.gen.js +92 -0
- package/dist/src/generated/report/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/src/generated/report/core/serverSentEvents.gen.js +132 -0
- package/dist/src/generated/report/core/types.gen.d.ts +83 -0
- package/dist/src/generated/report/core/types.gen.js +2 -0
- package/dist/src/generated/report/core/utils.gen.d.ts +19 -0
- package/dist/src/generated/report/core/utils.gen.js +87 -0
- package/dist/src/generated/report/index.d.ts +2 -0
- package/dist/src/generated/report/index.js +2 -0
- package/dist/src/generated/report/sdk.gen.d.ts +59 -0
- package/dist/src/generated/report/sdk.gen.js +89 -0
- package/dist/src/generated/report/types.gen.d.ts +389 -0
- package/dist/src/generated/report/types.gen.js +2 -0
- package/dist/src/index.d.ts +13 -1
- package/dist/src/index.js +39 -4
- package/package.json +5 -2
|
@@ -1,190 +1,6 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: 'https://core.flashstart.com/protection' | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Uuid = string;
|
|
5
|
-
export type Policy = {
|
|
6
|
-
id: Uuid;
|
|
7
|
-
isLimited: boolean;
|
|
8
|
-
isShared: boolean;
|
|
9
|
-
name: string;
|
|
10
|
-
organizationId: Uuid;
|
|
11
|
-
};
|
|
12
|
-
export type PolicyCreation = {
|
|
13
|
-
name: string;
|
|
14
|
-
isLimited: boolean;
|
|
15
|
-
isShared?: boolean;
|
|
16
|
-
organizationId?: Uuid;
|
|
17
|
-
templateId?: Uuid;
|
|
18
|
-
};
|
|
19
|
-
export type PolicyUpdate = {
|
|
20
|
-
name?: string;
|
|
21
|
-
isLimited?: boolean;
|
|
22
|
-
isShared?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type PolicySettings = {
|
|
25
|
-
bingSafeSearchEnabled: boolean;
|
|
26
|
-
duckduckgoSafeSearchEnabled: boolean;
|
|
27
|
-
googleSafeSearchEnabled: boolean;
|
|
28
|
-
ipBlockingEnabled: boolean;
|
|
29
|
-
youtubeSafeSearchEnabled: boolean;
|
|
30
|
-
};
|
|
31
|
-
export type PolicySettingsUpdate = {
|
|
32
|
-
bingSafeSearchEnabled?: boolean;
|
|
33
|
-
duckduckgoSafeSearchEnabled?: boolean;
|
|
34
|
-
googleSafeSearchEnabled?: boolean;
|
|
35
|
-
ipBlockingEnabled?: boolean;
|
|
36
|
-
youtubeSafeSearchEnabled?: boolean;
|
|
37
|
-
};
|
|
38
|
-
export type BaseNetwork = {
|
|
39
|
-
id: Uuid;
|
|
40
|
-
type: 'STATIC_SINGLE' | 'STATIC_CIDR' | 'STATIC_RANGE' | 'DYNAMIC_INTERNAL' | 'DYNAMIC_EXTERNAL' | 'STATIC_ENCRYPTED';
|
|
41
|
-
name: string;
|
|
42
|
-
note: string;
|
|
43
|
-
organizationId: Uuid;
|
|
44
|
-
createdAt: string;
|
|
45
|
-
updatedAt: string;
|
|
46
|
-
lastQueriedAt?: string;
|
|
47
|
-
};
|
|
48
|
-
export type PolicyWithNetworks = Policy & {
|
|
49
|
-
networks: Array<BaseNetwork>;
|
|
50
|
-
};
|
|
51
|
-
export type PolicyExceptionGroup = {
|
|
52
|
-
exceptionGroupId: Uuid;
|
|
53
|
-
policyId: Uuid;
|
|
54
|
-
};
|
|
55
|
-
export type DynamicDnsRedirect = {
|
|
56
|
-
isEnabled: boolean;
|
|
57
|
-
};
|
|
58
|
-
export type Category = {
|
|
59
|
-
code: string;
|
|
60
|
-
id: Uuid;
|
|
61
|
-
macroCategoryId: Uuid;
|
|
62
|
-
name: string;
|
|
63
|
-
};
|
|
64
|
-
export type MacroCategoryWithCategories = {
|
|
65
|
-
id: Uuid;
|
|
66
|
-
name: string;
|
|
67
|
-
protectionModule: 'content_filter' | 'malware_protection' | 'app_blocker';
|
|
68
|
-
categories: Array<Category>;
|
|
69
|
-
};
|
|
70
|
-
export type TimeBlock = {
|
|
71
|
-
day: number;
|
|
72
|
-
from: string;
|
|
73
|
-
to: string;
|
|
74
|
-
};
|
|
75
|
-
export type TimeBlockRequest = {
|
|
76
|
-
day: number;
|
|
77
|
-
from: string;
|
|
78
|
-
to: string;
|
|
79
|
-
};
|
|
80
|
-
export type BlockedCategoryWithTimeBlock = TimeBlock & {
|
|
81
|
-
categoryId: Uuid;
|
|
82
|
-
id: Uuid;
|
|
83
|
-
policyId: Uuid;
|
|
84
|
-
};
|
|
85
|
-
export type BlockedCategoryWithSchedule = {
|
|
86
|
-
categoryId: Uuid;
|
|
87
|
-
policyId: Uuid;
|
|
88
|
-
timeBlocks: Array<TimeBlock & {
|
|
89
|
-
id: Uuid;
|
|
90
|
-
}>;
|
|
91
|
-
};
|
|
92
|
-
export type CategoryScheduleRequest = {
|
|
93
|
-
categoryId: Uuid;
|
|
94
|
-
blockSchedulation: Array<TimeBlockRequest>;
|
|
95
|
-
};
|
|
96
|
-
export type CategoryBlockedOnPolicy = {
|
|
97
|
-
categoryId: Uuid;
|
|
98
|
-
policyId: Uuid;
|
|
99
|
-
};
|
|
100
|
-
export type Country = {
|
|
101
|
-
code: string;
|
|
102
|
-
continentId: Uuid;
|
|
103
|
-
id: Uuid;
|
|
104
|
-
name: string;
|
|
105
|
-
};
|
|
106
|
-
export type BlockedCountry = Country & {
|
|
107
|
-
policyId: Uuid;
|
|
108
|
-
};
|
|
109
|
-
export type ContinentWithCountries = {
|
|
110
|
-
code: string;
|
|
111
|
-
id: Uuid;
|
|
112
|
-
name: string;
|
|
113
|
-
countries: Array<Country>;
|
|
114
|
-
};
|
|
115
|
-
export type Tld = {
|
|
116
|
-
id: Uuid;
|
|
117
|
-
tld: string;
|
|
118
|
-
};
|
|
119
|
-
export type TldBlockedOnPolicy = Tld & {
|
|
120
|
-
policyId: Uuid;
|
|
121
|
-
tldId: Uuid;
|
|
122
|
-
};
|
|
123
|
-
export type MacroTldWithTlds = {
|
|
124
|
-
code: string;
|
|
125
|
-
id: Uuid;
|
|
126
|
-
name: string;
|
|
127
|
-
tlds: Array<Tld>;
|
|
128
|
-
};
|
|
129
|
-
export type ExceptionGroup = {
|
|
130
|
-
id: Uuid;
|
|
131
|
-
name: string;
|
|
132
|
-
organizationId: Uuid;
|
|
133
|
-
type: 'allowlist' | 'blocklist';
|
|
134
|
-
};
|
|
135
|
-
export type Domain = {
|
|
136
|
-
id: Uuid;
|
|
137
|
-
name: string;
|
|
138
|
-
note?: string | null;
|
|
139
|
-
};
|
|
140
|
-
export type DomainInput = {
|
|
141
|
-
domain: string;
|
|
142
|
-
note?: string;
|
|
143
|
-
};
|
|
144
|
-
export type DomainInExceptionGroup = {
|
|
145
|
-
domainId: Uuid;
|
|
146
|
-
exceptionGroupId: Uuid;
|
|
147
|
-
note?: string | null;
|
|
148
|
-
};
|
|
149
|
-
export type ExceptionGroupWithDomains = ExceptionGroup & {
|
|
150
|
-
domains: Array<Domain>;
|
|
151
|
-
};
|
|
152
|
-
export type ExceptionGroupWithDomainsAndPolicies = ExceptionGroupWithDomains & {
|
|
153
|
-
policies: Array<Policy>;
|
|
154
|
-
isHidden: boolean;
|
|
155
|
-
};
|
|
156
|
-
export type ExceptionGroupCreation = {
|
|
157
|
-
domains?: Array<string>;
|
|
158
|
-
name: string;
|
|
159
|
-
organizationId?: Uuid;
|
|
160
|
-
type: 'allowlist' | 'blocklist';
|
|
161
|
-
};
|
|
162
|
-
export type ExceptionGroupUpdate = {
|
|
163
|
-
name?: string;
|
|
164
|
-
type?: 'allowlist' | 'blocklist';
|
|
165
|
-
};
|
|
166
|
-
export type TemplateWithConfigData = {
|
|
167
|
-
id: Uuid;
|
|
168
|
-
name: string;
|
|
169
|
-
type: 'malware_threats' | 'malware_contents' | 'malware_free_time';
|
|
170
|
-
categories: Array<Category>;
|
|
171
|
-
settings: Array<'google_safesearch' | 'youtube_safesearch' | 'ip_blocking' | 'bing_safesearch' | 'duckduckgo_safesearch'>;
|
|
172
|
-
};
|
|
173
|
-
export type CategoryMultiStatus = MultiStatusCategoryBlockedOnPolicy;
|
|
174
|
-
export type CountryMultiStatus = MultiStatusBlockedCountry;
|
|
175
|
-
export type TldMultiStatus = MultiStatusTldBlockedOnPolicy;
|
|
176
|
-
export type MultiStatusCategoryBlockedOnPolicy = {
|
|
177
|
-
errors: Array<FlashStartErrorBody>;
|
|
178
|
-
successes: Array<CategoryBlockedOnPolicy>;
|
|
179
|
-
};
|
|
180
|
-
export type MultiStatusBlockedCountry = {
|
|
181
|
-
errors: Array<FlashStartErrorBody>;
|
|
182
|
-
successes: Array<BlockedCountry>;
|
|
183
|
-
};
|
|
184
|
-
export type MultiStatusTldBlockedOnPolicy = {
|
|
185
|
-
errors: Array<FlashStartErrorBody>;
|
|
186
|
-
successes: Array<TldBlockedOnPolicy>;
|
|
187
|
-
};
|
|
188
4
|
export type FlashStartErrorBody = {
|
|
189
5
|
code: string;
|
|
190
6
|
message?: string;
|
|
@@ -193,45 +9,11 @@ export type FlashStartErrorBody = {
|
|
|
193
9
|
export type MissingCredentialsErrorBody = {
|
|
194
10
|
message: string;
|
|
195
11
|
};
|
|
196
|
-
export type PolicyId = Uuid;
|
|
197
|
-
export type ExceptionGroupId = Uuid;
|
|
198
|
-
export type DomainId = Uuid;
|
|
199
|
-
export type SchedulationId = Uuid;
|
|
200
|
-
export type TemplateId = Uuid;
|
|
201
|
-
export type TldName = string;
|
|
202
|
-
export type OrganizationId = Uuid;
|
|
203
|
-
export type Lang = string;
|
|
204
|
-
export type IncludeNetworkCount = 'true' | 'false';
|
|
205
|
-
export type IncludeAssociatedPolicies = 'true' | 'false';
|
|
206
|
-
export type PolicyCreation2 = PolicyCreation;
|
|
207
|
-
export type PolicyUpdate2 = PolicyUpdate;
|
|
208
|
-
export type PolicySettingsUpdate2 = PolicySettingsUpdate;
|
|
209
|
-
export type ExceptionGroupId2 = {
|
|
210
|
-
exceptionGroupId: Uuid;
|
|
211
|
-
};
|
|
212
|
-
export type CategoryIds = {
|
|
213
|
-
categoryIds: Array<Uuid>;
|
|
214
|
-
};
|
|
215
|
-
export type CountryIds = {
|
|
216
|
-
countryIds: Array<Uuid>;
|
|
217
|
-
};
|
|
218
|
-
export type TldIds = {
|
|
219
|
-
tldIds: Array<Uuid>;
|
|
220
|
-
};
|
|
221
|
-
export type CategorySchedule = CategoryScheduleRequest;
|
|
222
|
-
export type ExceptionGroupCreation2 = ExceptionGroupCreation;
|
|
223
|
-
export type ExceptionGroupUpdate2 = ExceptionGroupUpdate;
|
|
224
|
-
export type Domains = {
|
|
225
|
-
domains: Array<DomainInput>;
|
|
226
|
-
};
|
|
227
|
-
export type DomainNote = {
|
|
228
|
-
note?: string | null;
|
|
229
|
-
};
|
|
230
12
|
export type ListPoliciesData = {
|
|
231
13
|
body?: never;
|
|
232
14
|
path?: never;
|
|
233
15
|
query?: {
|
|
234
|
-
organizationId?:
|
|
16
|
+
organizationId?: string;
|
|
235
17
|
includeNetworkCount?: 'true' | 'false';
|
|
236
18
|
};
|
|
237
19
|
url: '/v1/policies';
|
|
@@ -259,11 +41,39 @@ export type ListPoliciesResponses = {
|
|
|
259
41
|
/**
|
|
260
42
|
* Policies
|
|
261
43
|
*/
|
|
262
|
-
200: Array<
|
|
44
|
+
200: Array<{
|
|
45
|
+
id: string;
|
|
46
|
+
isLimited: boolean;
|
|
47
|
+
isShared: boolean;
|
|
48
|
+
name: string;
|
|
49
|
+
organizationId: string;
|
|
50
|
+
} | {
|
|
51
|
+
id: string;
|
|
52
|
+
isLimited: boolean;
|
|
53
|
+
isShared: boolean;
|
|
54
|
+
name: string;
|
|
55
|
+
organizationId: string;
|
|
56
|
+
networks: Array<{
|
|
57
|
+
id: string;
|
|
58
|
+
type: 'STATIC_SINGLE' | 'STATIC_CIDR' | 'STATIC_RANGE' | 'DYNAMIC_INTERNAL' | 'DYNAMIC_EXTERNAL' | 'STATIC_ENCRYPTED';
|
|
59
|
+
name: string;
|
|
60
|
+
note: string;
|
|
61
|
+
organizationId: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
|
+
lastQueriedAt?: string;
|
|
65
|
+
}>;
|
|
66
|
+
}>;
|
|
263
67
|
};
|
|
264
68
|
export type ListPoliciesResponse = ListPoliciesResponses[keyof ListPoliciesResponses];
|
|
265
69
|
export type CreatePolicyData = {
|
|
266
|
-
body:
|
|
70
|
+
body: {
|
|
71
|
+
isLimited: boolean;
|
|
72
|
+
isShared?: boolean;
|
|
73
|
+
name: string;
|
|
74
|
+
organizationId?: string;
|
|
75
|
+
templateId?: string;
|
|
76
|
+
};
|
|
267
77
|
path?: never;
|
|
268
78
|
query?: never;
|
|
269
79
|
url: '/v1/policies';
|
|
@@ -295,13 +105,19 @@ export type CreatePolicyResponses = {
|
|
|
295
105
|
/**
|
|
296
106
|
* Policy
|
|
297
107
|
*/
|
|
298
|
-
201:
|
|
108
|
+
201: {
|
|
109
|
+
id: string;
|
|
110
|
+
isLimited: boolean;
|
|
111
|
+
isShared: boolean;
|
|
112
|
+
name: string;
|
|
113
|
+
organizationId: string;
|
|
114
|
+
};
|
|
299
115
|
};
|
|
300
116
|
export type CreatePolicyResponse = CreatePolicyResponses[keyof CreatePolicyResponses];
|
|
301
117
|
export type DeletePolicyData = {
|
|
302
118
|
body?: never;
|
|
303
119
|
path: {
|
|
304
|
-
policyId:
|
|
120
|
+
policyId: string;
|
|
305
121
|
};
|
|
306
122
|
query?: never;
|
|
307
123
|
url: '/v1/policies/{policyId}';
|
|
@@ -329,13 +145,19 @@ export type DeletePolicyResponses = {
|
|
|
329
145
|
/**
|
|
330
146
|
* Policy
|
|
331
147
|
*/
|
|
332
|
-
200:
|
|
148
|
+
200: {
|
|
149
|
+
id: string;
|
|
150
|
+
isLimited: boolean;
|
|
151
|
+
isShared: boolean;
|
|
152
|
+
name: string;
|
|
153
|
+
organizationId: string;
|
|
154
|
+
};
|
|
333
155
|
};
|
|
334
156
|
export type DeletePolicyResponse = DeletePolicyResponses[keyof DeletePolicyResponses];
|
|
335
157
|
export type GetPolicyData = {
|
|
336
158
|
body?: never;
|
|
337
159
|
path: {
|
|
338
|
-
policyId:
|
|
160
|
+
policyId: string;
|
|
339
161
|
};
|
|
340
162
|
query?: never;
|
|
341
163
|
url: '/v1/policies/{policyId}';
|
|
@@ -363,13 +185,23 @@ export type GetPolicyResponses = {
|
|
|
363
185
|
/**
|
|
364
186
|
* Policy
|
|
365
187
|
*/
|
|
366
|
-
200:
|
|
188
|
+
200: {
|
|
189
|
+
id: string;
|
|
190
|
+
isLimited: boolean;
|
|
191
|
+
isShared: boolean;
|
|
192
|
+
name: string;
|
|
193
|
+
organizationId: string;
|
|
194
|
+
};
|
|
367
195
|
};
|
|
368
196
|
export type GetPolicyResponse = GetPolicyResponses[keyof GetPolicyResponses];
|
|
369
197
|
export type UpdatePolicyData = {
|
|
370
|
-
body:
|
|
198
|
+
body: {
|
|
199
|
+
isLimited?: boolean;
|
|
200
|
+
isShared?: boolean;
|
|
201
|
+
name?: string;
|
|
202
|
+
};
|
|
371
203
|
path: {
|
|
372
|
-
policyId:
|
|
204
|
+
policyId: string;
|
|
373
205
|
};
|
|
374
206
|
query?: never;
|
|
375
207
|
url: '/v1/policies/{policyId}';
|
|
@@ -401,13 +233,19 @@ export type UpdatePolicyResponses = {
|
|
|
401
233
|
/**
|
|
402
234
|
* Policy
|
|
403
235
|
*/
|
|
404
|
-
200:
|
|
236
|
+
200: {
|
|
237
|
+
id: string;
|
|
238
|
+
isLimited: boolean;
|
|
239
|
+
isShared: boolean;
|
|
240
|
+
name: string;
|
|
241
|
+
organizationId: string;
|
|
242
|
+
};
|
|
405
243
|
};
|
|
406
244
|
export type UpdatePolicyResponse = UpdatePolicyResponses[keyof UpdatePolicyResponses];
|
|
407
245
|
export type GetPolicySettingsData = {
|
|
408
246
|
body?: never;
|
|
409
247
|
path: {
|
|
410
|
-
policyId:
|
|
248
|
+
policyId: string;
|
|
411
249
|
};
|
|
412
250
|
query?: never;
|
|
413
251
|
url: '/v1/policies/{policyId}/settings';
|
|
@@ -435,13 +273,25 @@ export type GetPolicySettingsResponses = {
|
|
|
435
273
|
/**
|
|
436
274
|
* Policy settings
|
|
437
275
|
*/
|
|
438
|
-
200:
|
|
276
|
+
200: {
|
|
277
|
+
bingSafeSearchEnabled: boolean;
|
|
278
|
+
duckduckgoSafeSearchEnabled: boolean;
|
|
279
|
+
googleSafeSearchEnabled: boolean;
|
|
280
|
+
ipBlockingEnabled: boolean;
|
|
281
|
+
youtubeSafeSearchEnabled: boolean;
|
|
282
|
+
};
|
|
439
283
|
};
|
|
440
284
|
export type GetPolicySettingsResponse = GetPolicySettingsResponses[keyof GetPolicySettingsResponses];
|
|
441
285
|
export type UpdatePolicySettingsData = {
|
|
442
|
-
body:
|
|
286
|
+
body: {
|
|
287
|
+
bingSafeSearchEnabled?: boolean;
|
|
288
|
+
duckduckgoSafeSearchEnabled?: boolean;
|
|
289
|
+
googleSafeSearchEnabled?: boolean;
|
|
290
|
+
ipBlockingEnabled?: boolean;
|
|
291
|
+
youtubeSafeSearchEnabled?: boolean;
|
|
292
|
+
};
|
|
443
293
|
path: {
|
|
444
|
-
policyId:
|
|
294
|
+
policyId: string;
|
|
445
295
|
};
|
|
446
296
|
query?: never;
|
|
447
297
|
url: '/v1/policies/{policyId}/settings';
|
|
@@ -473,13 +323,19 @@ export type UpdatePolicySettingsResponses = {
|
|
|
473
323
|
/**
|
|
474
324
|
* Policy settings
|
|
475
325
|
*/
|
|
476
|
-
200:
|
|
326
|
+
200: {
|
|
327
|
+
bingSafeSearchEnabled: boolean;
|
|
328
|
+
duckduckgoSafeSearchEnabled: boolean;
|
|
329
|
+
googleSafeSearchEnabled: boolean;
|
|
330
|
+
ipBlockingEnabled: boolean;
|
|
331
|
+
youtubeSafeSearchEnabled: boolean;
|
|
332
|
+
};
|
|
477
333
|
};
|
|
478
334
|
export type UpdatePolicySettingsResponse = UpdatePolicySettingsResponses[keyof UpdatePolicySettingsResponses];
|
|
479
335
|
export type ListPolicyExceptionGroupsData = {
|
|
480
336
|
body?: never;
|
|
481
337
|
path: {
|
|
482
|
-
policyId:
|
|
338
|
+
policyId: string;
|
|
483
339
|
};
|
|
484
340
|
query?: never;
|
|
485
341
|
url: '/v1/policies/{policyId}/exceptiongroups';
|
|
@@ -507,13 +363,25 @@ export type ListPolicyExceptionGroupsResponses = {
|
|
|
507
363
|
/**
|
|
508
364
|
* Exception groups
|
|
509
365
|
*/
|
|
510
|
-
200: Array<
|
|
366
|
+
200: Array<{
|
|
367
|
+
id: string;
|
|
368
|
+
name: string;
|
|
369
|
+
organizationId: string;
|
|
370
|
+
type: 'allowlist' | 'blocklist';
|
|
371
|
+
domains: Array<{
|
|
372
|
+
id: string;
|
|
373
|
+
name: string;
|
|
374
|
+
note?: string | null;
|
|
375
|
+
}>;
|
|
376
|
+
}>;
|
|
511
377
|
};
|
|
512
378
|
export type ListPolicyExceptionGroupsResponse = ListPolicyExceptionGroupsResponses[keyof ListPolicyExceptionGroupsResponses];
|
|
513
379
|
export type AddPolicyExceptionGroupData = {
|
|
514
|
-
body:
|
|
380
|
+
body: {
|
|
381
|
+
exceptionGroupId: string;
|
|
382
|
+
};
|
|
515
383
|
path: {
|
|
516
|
-
policyId:
|
|
384
|
+
policyId: string;
|
|
517
385
|
};
|
|
518
386
|
query?: never;
|
|
519
387
|
url: '/v1/policies/{policyId}/exceptiongroups';
|
|
@@ -545,14 +413,17 @@ export type AddPolicyExceptionGroupResponses = {
|
|
|
545
413
|
/**
|
|
546
414
|
* Policy exception group association
|
|
547
415
|
*/
|
|
548
|
-
201:
|
|
416
|
+
201: {
|
|
417
|
+
exceptionGroupId: string;
|
|
418
|
+
policyId: string;
|
|
419
|
+
};
|
|
549
420
|
};
|
|
550
421
|
export type AddPolicyExceptionGroupResponse = AddPolicyExceptionGroupResponses[keyof AddPolicyExceptionGroupResponses];
|
|
551
422
|
export type RemovePolicyExceptionGroupData = {
|
|
552
423
|
body?: never;
|
|
553
424
|
path: {
|
|
554
|
-
|
|
555
|
-
|
|
425
|
+
exceptionGroupId: string;
|
|
426
|
+
policyId: string;
|
|
556
427
|
};
|
|
557
428
|
query?: never;
|
|
558
429
|
url: '/v1/policies/{policyId}/exceptiongroups/{exceptionGroupId}';
|
|
@@ -580,13 +451,16 @@ export type RemovePolicyExceptionGroupResponses = {
|
|
|
580
451
|
/**
|
|
581
452
|
* Policy exception group association
|
|
582
453
|
*/
|
|
583
|
-
200:
|
|
454
|
+
200: {
|
|
455
|
+
exceptionGroupId: string;
|
|
456
|
+
policyId: string;
|
|
457
|
+
};
|
|
584
458
|
};
|
|
585
459
|
export type RemovePolicyExceptionGroupResponse = RemovePolicyExceptionGroupResponses[keyof RemovePolicyExceptionGroupResponses];
|
|
586
460
|
export type DisableDynamicDnsRedirectData = {
|
|
587
461
|
body?: never;
|
|
588
462
|
path: {
|
|
589
|
-
policyId:
|
|
463
|
+
policyId: string;
|
|
590
464
|
};
|
|
591
465
|
query?: never;
|
|
592
466
|
url: '/v1/policies/{policyId}/dyndns-redirect';
|
|
@@ -620,7 +494,7 @@ export type DisableDynamicDnsRedirectResponse = DisableDynamicDnsRedirectRespons
|
|
|
620
494
|
export type GetDynamicDnsRedirectData = {
|
|
621
495
|
body?: never;
|
|
622
496
|
path: {
|
|
623
|
-
policyId:
|
|
497
|
+
policyId: string;
|
|
624
498
|
};
|
|
625
499
|
query?: never;
|
|
626
500
|
url: '/v1/policies/{policyId}/dyndns-redirect';
|
|
@@ -648,13 +522,15 @@ export type GetDynamicDnsRedirectResponses = {
|
|
|
648
522
|
/**
|
|
649
523
|
* Dynamic DNS redirect status
|
|
650
524
|
*/
|
|
651
|
-
200:
|
|
525
|
+
200: {
|
|
526
|
+
isEnabled: boolean;
|
|
527
|
+
};
|
|
652
528
|
};
|
|
653
529
|
export type GetDynamicDnsRedirectResponse = GetDynamicDnsRedirectResponses[keyof GetDynamicDnsRedirectResponses];
|
|
654
530
|
export type EnableDynamicDnsRedirectData = {
|
|
655
531
|
body?: never;
|
|
656
532
|
path: {
|
|
657
|
-
policyId:
|
|
533
|
+
policyId: string;
|
|
658
534
|
};
|
|
659
535
|
query?: never;
|
|
660
536
|
url: '/v1/policies/{policyId}/dyndns-redirect';
|
|
@@ -686,9 +562,11 @@ export type EnableDynamicDnsRedirectResponses = {
|
|
|
686
562
|
};
|
|
687
563
|
export type EnableDynamicDnsRedirectResponse = EnableDynamicDnsRedirectResponses[keyof EnableDynamicDnsRedirectResponses];
|
|
688
564
|
export type AllowCategoriesData = {
|
|
689
|
-
body:
|
|
565
|
+
body: {
|
|
566
|
+
categoryIds: Array<string>;
|
|
567
|
+
};
|
|
690
568
|
path: {
|
|
691
|
-
policyId:
|
|
569
|
+
policyId: string;
|
|
692
570
|
};
|
|
693
571
|
query?: never;
|
|
694
572
|
url: '/v1/policies/{policyId}/categories/blocked';
|
|
@@ -720,17 +598,25 @@ export type AllowCategoriesResponses = {
|
|
|
720
598
|
/**
|
|
721
599
|
* Per-category results
|
|
722
600
|
*/
|
|
723
|
-
207:
|
|
601
|
+
207: {
|
|
602
|
+
errors: Array<{
|
|
603
|
+
code: string;
|
|
604
|
+
message?: string;
|
|
605
|
+
details?: unknown;
|
|
606
|
+
}>;
|
|
607
|
+
successes: Array<{
|
|
608
|
+
categoryId: string;
|
|
609
|
+
policyId: string;
|
|
610
|
+
}>;
|
|
611
|
+
};
|
|
724
612
|
};
|
|
725
613
|
export type AllowCategoriesResponse = AllowCategoriesResponses[keyof AllowCategoriesResponses];
|
|
726
614
|
export type ListBlockedCategoriesData = {
|
|
727
615
|
body?: never;
|
|
728
616
|
path: {
|
|
729
|
-
policyId:
|
|
730
|
-
};
|
|
731
|
-
query?: {
|
|
732
|
-
lang?: string;
|
|
617
|
+
policyId: string;
|
|
733
618
|
};
|
|
619
|
+
query?: never;
|
|
734
620
|
url: '/v1/policies/{policyId}/categories/blocked';
|
|
735
621
|
};
|
|
736
622
|
export type ListBlockedCategoriesErrors = {
|
|
@@ -756,13 +642,24 @@ export type ListBlockedCategoriesResponses = {
|
|
|
756
642
|
/**
|
|
757
643
|
* Blocked categories
|
|
758
644
|
*/
|
|
759
|
-
200: Array<
|
|
645
|
+
200: Array<{
|
|
646
|
+
categoryId: string;
|
|
647
|
+
policyId: string;
|
|
648
|
+
timeBlocks: Array<{
|
|
649
|
+
day: number;
|
|
650
|
+
from: string;
|
|
651
|
+
to: string;
|
|
652
|
+
id: string;
|
|
653
|
+
}>;
|
|
654
|
+
}>;
|
|
760
655
|
};
|
|
761
656
|
export type ListBlockedCategoriesResponse = ListBlockedCategoriesResponses[keyof ListBlockedCategoriesResponses];
|
|
762
657
|
export type BlockCategoriesData = {
|
|
763
|
-
body:
|
|
658
|
+
body: {
|
|
659
|
+
categoryIds: Array<string>;
|
|
660
|
+
};
|
|
764
661
|
path: {
|
|
765
|
-
policyId:
|
|
662
|
+
policyId: string;
|
|
766
663
|
};
|
|
767
664
|
query?: never;
|
|
768
665
|
url: '/v1/policies/{policyId}/categories/blocked';
|
|
@@ -794,13 +691,25 @@ export type BlockCategoriesResponses = {
|
|
|
794
691
|
/**
|
|
795
692
|
* Per-category results
|
|
796
693
|
*/
|
|
797
|
-
207:
|
|
694
|
+
207: {
|
|
695
|
+
errors: Array<{
|
|
696
|
+
code: string;
|
|
697
|
+
message?: string;
|
|
698
|
+
details?: unknown;
|
|
699
|
+
}>;
|
|
700
|
+
successes: Array<{
|
|
701
|
+
categoryId: string;
|
|
702
|
+
policyId: string;
|
|
703
|
+
}>;
|
|
704
|
+
};
|
|
798
705
|
};
|
|
799
706
|
export type BlockCategoriesResponse = BlockCategoriesResponses[keyof BlockCategoriesResponses];
|
|
800
707
|
export type AllowAppBlockerCategoriesData = {
|
|
801
|
-
body:
|
|
708
|
+
body: {
|
|
709
|
+
categoryIds: Array<string>;
|
|
710
|
+
};
|
|
802
711
|
path: {
|
|
803
|
-
policyId:
|
|
712
|
+
policyId: string;
|
|
804
713
|
};
|
|
805
714
|
query?: never;
|
|
806
715
|
url: '/v1/policies/{policyId}/appblocker/blocked';
|
|
@@ -832,17 +741,25 @@ export type AllowAppBlockerCategoriesResponses = {
|
|
|
832
741
|
/**
|
|
833
742
|
* Per-category results
|
|
834
743
|
*/
|
|
835
|
-
207:
|
|
744
|
+
207: {
|
|
745
|
+
errors: Array<{
|
|
746
|
+
code: string;
|
|
747
|
+
message?: string;
|
|
748
|
+
details?: unknown;
|
|
749
|
+
}>;
|
|
750
|
+
successes: Array<{
|
|
751
|
+
categoryId: string;
|
|
752
|
+
policyId: string;
|
|
753
|
+
}>;
|
|
754
|
+
};
|
|
836
755
|
};
|
|
837
756
|
export type AllowAppBlockerCategoriesResponse = AllowAppBlockerCategoriesResponses[keyof AllowAppBlockerCategoriesResponses];
|
|
838
757
|
export type ListBlockedAppBlockerCategoriesData = {
|
|
839
758
|
body?: never;
|
|
840
759
|
path: {
|
|
841
|
-
policyId:
|
|
842
|
-
};
|
|
843
|
-
query?: {
|
|
844
|
-
lang?: string;
|
|
760
|
+
policyId: string;
|
|
845
761
|
};
|
|
762
|
+
query?: never;
|
|
846
763
|
url: '/v1/policies/{policyId}/appblocker/blocked';
|
|
847
764
|
};
|
|
848
765
|
export type ListBlockedAppBlockerCategoriesErrors = {
|
|
@@ -868,13 +785,24 @@ export type ListBlockedAppBlockerCategoriesResponses = {
|
|
|
868
785
|
/**
|
|
869
786
|
* Blocked categories
|
|
870
787
|
*/
|
|
871
|
-
200: Array<
|
|
788
|
+
200: Array<{
|
|
789
|
+
categoryId: string;
|
|
790
|
+
policyId: string;
|
|
791
|
+
timeBlocks: Array<{
|
|
792
|
+
day: number;
|
|
793
|
+
from: string;
|
|
794
|
+
to: string;
|
|
795
|
+
id: string;
|
|
796
|
+
}>;
|
|
797
|
+
}>;
|
|
872
798
|
};
|
|
873
799
|
export type ListBlockedAppBlockerCategoriesResponse = ListBlockedAppBlockerCategoriesResponses[keyof ListBlockedAppBlockerCategoriesResponses];
|
|
874
800
|
export type BlockAppBlockerCategoriesData = {
|
|
875
|
-
body:
|
|
801
|
+
body: {
|
|
802
|
+
categoryIds: Array<string>;
|
|
803
|
+
};
|
|
876
804
|
path: {
|
|
877
|
-
policyId:
|
|
805
|
+
policyId: string;
|
|
878
806
|
};
|
|
879
807
|
query?: never;
|
|
880
808
|
url: '/v1/policies/{policyId}/appblocker/blocked';
|
|
@@ -906,13 +834,25 @@ export type BlockAppBlockerCategoriesResponses = {
|
|
|
906
834
|
/**
|
|
907
835
|
* Per-category results
|
|
908
836
|
*/
|
|
909
|
-
207:
|
|
837
|
+
207: {
|
|
838
|
+
errors: Array<{
|
|
839
|
+
code: string;
|
|
840
|
+
message?: string;
|
|
841
|
+
details?: unknown;
|
|
842
|
+
}>;
|
|
843
|
+
successes: Array<{
|
|
844
|
+
categoryId: string;
|
|
845
|
+
policyId: string;
|
|
846
|
+
}>;
|
|
847
|
+
};
|
|
910
848
|
};
|
|
911
849
|
export type BlockAppBlockerCategoriesResponse = BlockAppBlockerCategoriesResponses[keyof BlockAppBlockerCategoriesResponses];
|
|
912
850
|
export type AllowMalwareCategoriesData = {
|
|
913
|
-
body:
|
|
851
|
+
body: {
|
|
852
|
+
categoryIds: Array<string>;
|
|
853
|
+
};
|
|
914
854
|
path: {
|
|
915
|
-
policyId:
|
|
855
|
+
policyId: string;
|
|
916
856
|
};
|
|
917
857
|
query?: never;
|
|
918
858
|
url: '/v1/policies/{policyId}/malwares/blocked';
|
|
@@ -944,17 +884,25 @@ export type AllowMalwareCategoriesResponses = {
|
|
|
944
884
|
/**
|
|
945
885
|
* Per-category results
|
|
946
886
|
*/
|
|
947
|
-
207:
|
|
887
|
+
207: {
|
|
888
|
+
errors: Array<{
|
|
889
|
+
code: string;
|
|
890
|
+
message?: string;
|
|
891
|
+
details?: unknown;
|
|
892
|
+
}>;
|
|
893
|
+
successes: Array<{
|
|
894
|
+
categoryId: string;
|
|
895
|
+
policyId: string;
|
|
896
|
+
}>;
|
|
897
|
+
};
|
|
948
898
|
};
|
|
949
899
|
export type AllowMalwareCategoriesResponse = AllowMalwareCategoriesResponses[keyof AllowMalwareCategoriesResponses];
|
|
950
900
|
export type ListBlockedMalwareCategoriesData = {
|
|
951
901
|
body?: never;
|
|
952
902
|
path: {
|
|
953
|
-
policyId:
|
|
954
|
-
};
|
|
955
|
-
query?: {
|
|
956
|
-
lang?: string;
|
|
903
|
+
policyId: string;
|
|
957
904
|
};
|
|
905
|
+
query?: never;
|
|
958
906
|
url: '/v1/policies/{policyId}/malwares/blocked';
|
|
959
907
|
};
|
|
960
908
|
export type ListBlockedMalwareCategoriesErrors = {
|
|
@@ -980,13 +928,24 @@ export type ListBlockedMalwareCategoriesResponses = {
|
|
|
980
928
|
/**
|
|
981
929
|
* Blocked categories
|
|
982
930
|
*/
|
|
983
|
-
200: Array<
|
|
931
|
+
200: Array<{
|
|
932
|
+
categoryId: string;
|
|
933
|
+
policyId: string;
|
|
934
|
+
timeBlocks: Array<{
|
|
935
|
+
day: number;
|
|
936
|
+
from: string;
|
|
937
|
+
to: string;
|
|
938
|
+
id: string;
|
|
939
|
+
}>;
|
|
940
|
+
}>;
|
|
984
941
|
};
|
|
985
942
|
export type ListBlockedMalwareCategoriesResponse = ListBlockedMalwareCategoriesResponses[keyof ListBlockedMalwareCategoriesResponses];
|
|
986
943
|
export type BlockMalwareCategoriesData = {
|
|
987
|
-
body:
|
|
944
|
+
body: {
|
|
945
|
+
categoryIds: Array<string>;
|
|
946
|
+
};
|
|
988
947
|
path: {
|
|
989
|
-
policyId:
|
|
948
|
+
policyId: string;
|
|
990
949
|
};
|
|
991
950
|
query?: never;
|
|
992
951
|
url: '/v1/policies/{policyId}/malwares/blocked';
|
|
@@ -1018,13 +977,30 @@ export type BlockMalwareCategoriesResponses = {
|
|
|
1018
977
|
/**
|
|
1019
978
|
* Per-category results
|
|
1020
979
|
*/
|
|
1021
|
-
207:
|
|
980
|
+
207: {
|
|
981
|
+
errors: Array<{
|
|
982
|
+
code: string;
|
|
983
|
+
message?: string;
|
|
984
|
+
details?: unknown;
|
|
985
|
+
}>;
|
|
986
|
+
successes: Array<{
|
|
987
|
+
categoryId: string;
|
|
988
|
+
policyId: string;
|
|
989
|
+
}>;
|
|
990
|
+
};
|
|
1022
991
|
};
|
|
1023
992
|
export type BlockMalwareCategoriesResponse = BlockMalwareCategoriesResponses[keyof BlockMalwareCategoriesResponses];
|
|
1024
993
|
export type ScheduleCategoryBlockData = {
|
|
1025
|
-
body:
|
|
994
|
+
body: {
|
|
995
|
+
categoryId: string;
|
|
996
|
+
blockSchedulation: Array<{
|
|
997
|
+
day: number;
|
|
998
|
+
from: string;
|
|
999
|
+
to: string;
|
|
1000
|
+
}>;
|
|
1001
|
+
};
|
|
1026
1002
|
path: {
|
|
1027
|
-
policyId:
|
|
1003
|
+
policyId: string;
|
|
1028
1004
|
};
|
|
1029
1005
|
query?: never;
|
|
1030
1006
|
url: '/v1/policies/{policyId}/categories/blocked/schedule';
|
|
@@ -1056,14 +1032,21 @@ export type ScheduleCategoryBlockResponses = {
|
|
|
1056
1032
|
/**
|
|
1057
1033
|
* Created category schedules
|
|
1058
1034
|
*/
|
|
1059
|
-
201: Array<
|
|
1035
|
+
201: Array<{
|
|
1036
|
+
day: number;
|
|
1037
|
+
from: string;
|
|
1038
|
+
to: string;
|
|
1039
|
+
categoryId: string;
|
|
1040
|
+
id: string;
|
|
1041
|
+
policyId: string;
|
|
1042
|
+
}>;
|
|
1060
1043
|
};
|
|
1061
1044
|
export type ScheduleCategoryBlockResponse = ScheduleCategoryBlockResponses[keyof ScheduleCategoryBlockResponses];
|
|
1062
1045
|
export type RemoveCategoryBlockScheduleData = {
|
|
1063
1046
|
body?: never;
|
|
1064
1047
|
path: {
|
|
1065
|
-
policyId:
|
|
1066
|
-
schedulationId:
|
|
1048
|
+
policyId: string;
|
|
1049
|
+
schedulationId: string;
|
|
1067
1050
|
};
|
|
1068
1051
|
query?: never;
|
|
1069
1052
|
url: '/v1/policies/{policyId}/categories/blocked/schedule/{schedulationId}';
|
|
@@ -1091,13 +1074,27 @@ export type RemoveCategoryBlockScheduleResponses = {
|
|
|
1091
1074
|
/**
|
|
1092
1075
|
* Removed category schedule
|
|
1093
1076
|
*/
|
|
1094
|
-
200:
|
|
1077
|
+
200: {
|
|
1078
|
+
day: number;
|
|
1079
|
+
from: string;
|
|
1080
|
+
to: string;
|
|
1081
|
+
categoryId: string;
|
|
1082
|
+
id: string;
|
|
1083
|
+
policyId: string;
|
|
1084
|
+
};
|
|
1095
1085
|
};
|
|
1096
1086
|
export type RemoveCategoryBlockScheduleResponse = RemoveCategoryBlockScheduleResponses[keyof RemoveCategoryBlockScheduleResponses];
|
|
1097
1087
|
export type ScheduleAppBlockerCategoryBlockData = {
|
|
1098
|
-
body:
|
|
1088
|
+
body: {
|
|
1089
|
+
categoryId: string;
|
|
1090
|
+
blockSchedulation: Array<{
|
|
1091
|
+
day: number;
|
|
1092
|
+
from: string;
|
|
1093
|
+
to: string;
|
|
1094
|
+
}>;
|
|
1095
|
+
};
|
|
1099
1096
|
path: {
|
|
1100
|
-
policyId:
|
|
1097
|
+
policyId: string;
|
|
1101
1098
|
};
|
|
1102
1099
|
query?: never;
|
|
1103
1100
|
url: '/v1/policies/{policyId}/appblocker/blocked/schedule';
|
|
@@ -1129,14 +1126,21 @@ export type ScheduleAppBlockerCategoryBlockResponses = {
|
|
|
1129
1126
|
/**
|
|
1130
1127
|
* Created category schedules
|
|
1131
1128
|
*/
|
|
1132
|
-
201: Array<
|
|
1129
|
+
201: Array<{
|
|
1130
|
+
day: number;
|
|
1131
|
+
from: string;
|
|
1132
|
+
to: string;
|
|
1133
|
+
categoryId: string;
|
|
1134
|
+
id: string;
|
|
1135
|
+
policyId: string;
|
|
1136
|
+
}>;
|
|
1133
1137
|
};
|
|
1134
1138
|
export type ScheduleAppBlockerCategoryBlockResponse = ScheduleAppBlockerCategoryBlockResponses[keyof ScheduleAppBlockerCategoryBlockResponses];
|
|
1135
1139
|
export type RemoveAppBlockerCategoryBlockScheduleData = {
|
|
1136
1140
|
body?: never;
|
|
1137
1141
|
path: {
|
|
1138
|
-
policyId:
|
|
1139
|
-
schedulationId:
|
|
1142
|
+
policyId: string;
|
|
1143
|
+
schedulationId: string;
|
|
1140
1144
|
};
|
|
1141
1145
|
query?: never;
|
|
1142
1146
|
url: '/v1/policies/{policyId}/appblocker/blocked/schedule/{schedulationId}';
|
|
@@ -1164,13 +1168,27 @@ export type RemoveAppBlockerCategoryBlockScheduleResponses = {
|
|
|
1164
1168
|
/**
|
|
1165
1169
|
* Removed category schedule
|
|
1166
1170
|
*/
|
|
1167
|
-
200:
|
|
1171
|
+
200: {
|
|
1172
|
+
day: number;
|
|
1173
|
+
from: string;
|
|
1174
|
+
to: string;
|
|
1175
|
+
categoryId: string;
|
|
1176
|
+
id: string;
|
|
1177
|
+
policyId: string;
|
|
1178
|
+
};
|
|
1168
1179
|
};
|
|
1169
1180
|
export type RemoveAppBlockerCategoryBlockScheduleResponse = RemoveAppBlockerCategoryBlockScheduleResponses[keyof RemoveAppBlockerCategoryBlockScheduleResponses];
|
|
1170
1181
|
export type ScheduleMalwareCategoryBlockData = {
|
|
1171
|
-
body:
|
|
1182
|
+
body: {
|
|
1183
|
+
categoryId: string;
|
|
1184
|
+
blockSchedulation: Array<{
|
|
1185
|
+
day: number;
|
|
1186
|
+
from: string;
|
|
1187
|
+
to: string;
|
|
1188
|
+
}>;
|
|
1189
|
+
};
|
|
1172
1190
|
path: {
|
|
1173
|
-
policyId:
|
|
1191
|
+
policyId: string;
|
|
1174
1192
|
};
|
|
1175
1193
|
query?: never;
|
|
1176
1194
|
url: '/v1/policies/{policyId}/malwares/blocked/schedule';
|
|
@@ -1202,14 +1220,21 @@ export type ScheduleMalwareCategoryBlockResponses = {
|
|
|
1202
1220
|
/**
|
|
1203
1221
|
* Created category schedules
|
|
1204
1222
|
*/
|
|
1205
|
-
201: Array<
|
|
1223
|
+
201: Array<{
|
|
1224
|
+
day: number;
|
|
1225
|
+
from: string;
|
|
1226
|
+
to: string;
|
|
1227
|
+
categoryId: string;
|
|
1228
|
+
id: string;
|
|
1229
|
+
policyId: string;
|
|
1230
|
+
}>;
|
|
1206
1231
|
};
|
|
1207
1232
|
export type ScheduleMalwareCategoryBlockResponse = ScheduleMalwareCategoryBlockResponses[keyof ScheduleMalwareCategoryBlockResponses];
|
|
1208
1233
|
export type RemoveMalwareCategoryBlockScheduleData = {
|
|
1209
1234
|
body?: never;
|
|
1210
1235
|
path: {
|
|
1211
|
-
policyId:
|
|
1212
|
-
schedulationId:
|
|
1236
|
+
policyId: string;
|
|
1237
|
+
schedulationId: string;
|
|
1213
1238
|
};
|
|
1214
1239
|
query?: never;
|
|
1215
1240
|
url: '/v1/policies/{policyId}/malwares/blocked/schedule/{schedulationId}';
|
|
@@ -1237,13 +1262,22 @@ export type RemoveMalwareCategoryBlockScheduleResponses = {
|
|
|
1237
1262
|
/**
|
|
1238
1263
|
* Removed category schedule
|
|
1239
1264
|
*/
|
|
1240
|
-
200:
|
|
1265
|
+
200: {
|
|
1266
|
+
day: number;
|
|
1267
|
+
from: string;
|
|
1268
|
+
to: string;
|
|
1269
|
+
categoryId: string;
|
|
1270
|
+
id: string;
|
|
1271
|
+
policyId: string;
|
|
1272
|
+
};
|
|
1241
1273
|
};
|
|
1242
1274
|
export type RemoveMalwareCategoryBlockScheduleResponse = RemoveMalwareCategoryBlockScheduleResponses[keyof RemoveMalwareCategoryBlockScheduleResponses];
|
|
1243
1275
|
export type AllowCountriesData = {
|
|
1244
|
-
body:
|
|
1276
|
+
body: {
|
|
1277
|
+
countryIds: Array<string>;
|
|
1278
|
+
};
|
|
1245
1279
|
path: {
|
|
1246
|
-
policyId:
|
|
1280
|
+
policyId: string;
|
|
1247
1281
|
};
|
|
1248
1282
|
query?: never;
|
|
1249
1283
|
url: '/v1/policies/{policyId}/countries/blocked';
|
|
@@ -1275,13 +1309,26 @@ export type AllowCountriesResponses = {
|
|
|
1275
1309
|
/**
|
|
1276
1310
|
* Per-country results
|
|
1277
1311
|
*/
|
|
1278
|
-
207:
|
|
1312
|
+
207: {
|
|
1313
|
+
errors: Array<{
|
|
1314
|
+
code: string;
|
|
1315
|
+
message?: string;
|
|
1316
|
+
details?: unknown;
|
|
1317
|
+
}>;
|
|
1318
|
+
successes: Array<{
|
|
1319
|
+
code: string;
|
|
1320
|
+
continentId: string;
|
|
1321
|
+
id: string;
|
|
1322
|
+
name: string;
|
|
1323
|
+
policyId: string;
|
|
1324
|
+
}>;
|
|
1325
|
+
};
|
|
1279
1326
|
};
|
|
1280
1327
|
export type AllowCountriesResponse = AllowCountriesResponses[keyof AllowCountriesResponses];
|
|
1281
1328
|
export type ListBlockedCountriesData = {
|
|
1282
1329
|
body?: never;
|
|
1283
1330
|
path: {
|
|
1284
|
-
policyId:
|
|
1331
|
+
policyId: string;
|
|
1285
1332
|
};
|
|
1286
1333
|
query?: never;
|
|
1287
1334
|
url: '/v1/policies/{policyId}/countries/blocked';
|
|
@@ -1309,13 +1356,21 @@ export type ListBlockedCountriesResponses = {
|
|
|
1309
1356
|
/**
|
|
1310
1357
|
* Countries
|
|
1311
1358
|
*/
|
|
1312
|
-
200: Array<
|
|
1359
|
+
200: Array<{
|
|
1360
|
+
code: string;
|
|
1361
|
+
continentId: string;
|
|
1362
|
+
id: string;
|
|
1363
|
+
name: string;
|
|
1364
|
+
policyId: string;
|
|
1365
|
+
}>;
|
|
1313
1366
|
};
|
|
1314
1367
|
export type ListBlockedCountriesResponse = ListBlockedCountriesResponses[keyof ListBlockedCountriesResponses];
|
|
1315
1368
|
export type BlockCountriesData = {
|
|
1316
|
-
body:
|
|
1369
|
+
body: {
|
|
1370
|
+
countryIds: Array<string>;
|
|
1371
|
+
};
|
|
1317
1372
|
path: {
|
|
1318
|
-
policyId:
|
|
1373
|
+
policyId: string;
|
|
1319
1374
|
};
|
|
1320
1375
|
query?: never;
|
|
1321
1376
|
url: '/v1/policies/{policyId}/countries/blocked';
|
|
@@ -1347,13 +1402,28 @@ export type BlockCountriesResponses = {
|
|
|
1347
1402
|
/**
|
|
1348
1403
|
* Per-country results
|
|
1349
1404
|
*/
|
|
1350
|
-
207:
|
|
1405
|
+
207: {
|
|
1406
|
+
errors: Array<{
|
|
1407
|
+
code: string;
|
|
1408
|
+
message?: string;
|
|
1409
|
+
details?: unknown;
|
|
1410
|
+
}>;
|
|
1411
|
+
successes: Array<{
|
|
1412
|
+
code: string;
|
|
1413
|
+
continentId: string;
|
|
1414
|
+
id: string;
|
|
1415
|
+
name: string;
|
|
1416
|
+
policyId: string;
|
|
1417
|
+
}>;
|
|
1418
|
+
};
|
|
1351
1419
|
};
|
|
1352
1420
|
export type BlockCountriesResponse = BlockCountriesResponses[keyof BlockCountriesResponses];
|
|
1353
1421
|
export type AllowTldsData = {
|
|
1354
|
-
body:
|
|
1422
|
+
body: {
|
|
1423
|
+
tldIds: Array<string>;
|
|
1424
|
+
};
|
|
1355
1425
|
path: {
|
|
1356
|
-
policyId:
|
|
1426
|
+
policyId: string;
|
|
1357
1427
|
};
|
|
1358
1428
|
query?: never;
|
|
1359
1429
|
url: '/v1/policies/{policyId}/tlds/blocked';
|
|
@@ -1385,13 +1455,25 @@ export type AllowTldsResponses = {
|
|
|
1385
1455
|
/**
|
|
1386
1456
|
* Per-TLD results
|
|
1387
1457
|
*/
|
|
1388
|
-
207:
|
|
1458
|
+
207: {
|
|
1459
|
+
errors: Array<{
|
|
1460
|
+
code: string;
|
|
1461
|
+
message?: string;
|
|
1462
|
+
details?: unknown;
|
|
1463
|
+
}>;
|
|
1464
|
+
successes: Array<{
|
|
1465
|
+
id: string;
|
|
1466
|
+
tld: string;
|
|
1467
|
+
policyId: string;
|
|
1468
|
+
tldId: string;
|
|
1469
|
+
}>;
|
|
1470
|
+
};
|
|
1389
1471
|
};
|
|
1390
1472
|
export type AllowTldsResponse = AllowTldsResponses[keyof AllowTldsResponses];
|
|
1391
1473
|
export type ListBlockedTldsData = {
|
|
1392
1474
|
body?: never;
|
|
1393
1475
|
path: {
|
|
1394
|
-
policyId:
|
|
1476
|
+
policyId: string;
|
|
1395
1477
|
};
|
|
1396
1478
|
query?: never;
|
|
1397
1479
|
url: '/v1/policies/{policyId}/tlds/blocked';
|
|
@@ -1419,13 +1501,20 @@ export type ListBlockedTldsResponses = {
|
|
|
1419
1501
|
/**
|
|
1420
1502
|
* Blocked TLDs
|
|
1421
1503
|
*/
|
|
1422
|
-
200: Array<
|
|
1504
|
+
200: Array<{
|
|
1505
|
+
id: string;
|
|
1506
|
+
tld: string;
|
|
1507
|
+
policyId: string;
|
|
1508
|
+
tldId: string;
|
|
1509
|
+
}>;
|
|
1423
1510
|
};
|
|
1424
1511
|
export type ListBlockedTldsResponse = ListBlockedTldsResponses[keyof ListBlockedTldsResponses];
|
|
1425
1512
|
export type BlockTldsData = {
|
|
1426
|
-
body:
|
|
1513
|
+
body: {
|
|
1514
|
+
tldIds: Array<string>;
|
|
1515
|
+
};
|
|
1427
1516
|
path: {
|
|
1428
|
-
policyId:
|
|
1517
|
+
policyId: string;
|
|
1429
1518
|
};
|
|
1430
1519
|
query?: never;
|
|
1431
1520
|
url: '/v1/policies/{policyId}/tlds/blocked';
|
|
@@ -1457,14 +1546,26 @@ export type BlockTldsResponses = {
|
|
|
1457
1546
|
/**
|
|
1458
1547
|
* Per-TLD results
|
|
1459
1548
|
*/
|
|
1460
|
-
207:
|
|
1549
|
+
207: {
|
|
1550
|
+
errors: Array<{
|
|
1551
|
+
code: string;
|
|
1552
|
+
message?: string;
|
|
1553
|
+
details?: unknown;
|
|
1554
|
+
}>;
|
|
1555
|
+
successes: Array<{
|
|
1556
|
+
id: string;
|
|
1557
|
+
tld: string;
|
|
1558
|
+
policyId: string;
|
|
1559
|
+
tldId: string;
|
|
1560
|
+
}>;
|
|
1561
|
+
};
|
|
1461
1562
|
};
|
|
1462
1563
|
export type BlockTldsResponse = BlockTldsResponses[keyof BlockTldsResponses];
|
|
1463
1564
|
export type ListCategoriesData = {
|
|
1464
1565
|
body?: never;
|
|
1465
1566
|
path?: never;
|
|
1466
1567
|
query?: {
|
|
1467
|
-
organizationId?:
|
|
1568
|
+
organizationId?: string;
|
|
1468
1569
|
lang?: string;
|
|
1469
1570
|
};
|
|
1470
1571
|
url: '/v1/categories';
|
|
@@ -1492,14 +1593,19 @@ export type ListCategoriesResponses = {
|
|
|
1492
1593
|
/**
|
|
1493
1594
|
* Categories
|
|
1494
1595
|
*/
|
|
1495
|
-
200: Array<
|
|
1596
|
+
200: Array<{
|
|
1597
|
+
code: string;
|
|
1598
|
+
id: string;
|
|
1599
|
+
macroCategoryId: string;
|
|
1600
|
+
name: string;
|
|
1601
|
+
}>;
|
|
1496
1602
|
};
|
|
1497
1603
|
export type ListCategoriesResponse = ListCategoriesResponses[keyof ListCategoriesResponses];
|
|
1498
1604
|
export type ListCategoryMacrosData = {
|
|
1499
1605
|
body?: never;
|
|
1500
1606
|
path?: never;
|
|
1501
1607
|
query?: {
|
|
1502
|
-
organizationId?:
|
|
1608
|
+
organizationId?: string;
|
|
1503
1609
|
lang?: string;
|
|
1504
1610
|
};
|
|
1505
1611
|
url: '/v1/categories/macros';
|
|
@@ -1527,14 +1633,24 @@ export type ListCategoryMacrosResponses = {
|
|
|
1527
1633
|
/**
|
|
1528
1634
|
* Macro categories
|
|
1529
1635
|
*/
|
|
1530
|
-
200: Array<
|
|
1636
|
+
200: Array<{
|
|
1637
|
+
id: string;
|
|
1638
|
+
name: string;
|
|
1639
|
+
protectionModule: 'content_filter' | 'malware_protection' | 'app_blocker';
|
|
1640
|
+
categories: Array<{
|
|
1641
|
+
code: string;
|
|
1642
|
+
id: string;
|
|
1643
|
+
macroCategoryId: string;
|
|
1644
|
+
name: string;
|
|
1645
|
+
}>;
|
|
1646
|
+
}>;
|
|
1531
1647
|
};
|
|
1532
1648
|
export type ListCategoryMacrosResponse = ListCategoryMacrosResponses[keyof ListCategoryMacrosResponses];
|
|
1533
1649
|
export type ListAppBlockerCategoriesData = {
|
|
1534
1650
|
body?: never;
|
|
1535
1651
|
path?: never;
|
|
1536
1652
|
query?: {
|
|
1537
|
-
organizationId?:
|
|
1653
|
+
organizationId?: string;
|
|
1538
1654
|
lang?: string;
|
|
1539
1655
|
};
|
|
1540
1656
|
url: '/v1/appblocker/categories';
|
|
@@ -1562,14 +1678,19 @@ export type ListAppBlockerCategoriesResponses = {
|
|
|
1562
1678
|
/**
|
|
1563
1679
|
* Categories
|
|
1564
1680
|
*/
|
|
1565
|
-
200: Array<
|
|
1681
|
+
200: Array<{
|
|
1682
|
+
code: string;
|
|
1683
|
+
id: string;
|
|
1684
|
+
macroCategoryId: string;
|
|
1685
|
+
name: string;
|
|
1686
|
+
}>;
|
|
1566
1687
|
};
|
|
1567
1688
|
export type ListAppBlockerCategoriesResponse = ListAppBlockerCategoriesResponses[keyof ListAppBlockerCategoriesResponses];
|
|
1568
1689
|
export type ListAppBlockerCategoryMacrosData = {
|
|
1569
1690
|
body?: never;
|
|
1570
1691
|
path?: never;
|
|
1571
1692
|
query?: {
|
|
1572
|
-
organizationId?:
|
|
1693
|
+
organizationId?: string;
|
|
1573
1694
|
lang?: string;
|
|
1574
1695
|
};
|
|
1575
1696
|
url: '/v1/appblocker/macros';
|
|
@@ -1597,14 +1718,24 @@ export type ListAppBlockerCategoryMacrosResponses = {
|
|
|
1597
1718
|
/**
|
|
1598
1719
|
* Macro categories
|
|
1599
1720
|
*/
|
|
1600
|
-
200: Array<
|
|
1721
|
+
200: Array<{
|
|
1722
|
+
id: string;
|
|
1723
|
+
name: string;
|
|
1724
|
+
protectionModule: 'content_filter' | 'malware_protection' | 'app_blocker';
|
|
1725
|
+
categories: Array<{
|
|
1726
|
+
code: string;
|
|
1727
|
+
id: string;
|
|
1728
|
+
macroCategoryId: string;
|
|
1729
|
+
name: string;
|
|
1730
|
+
}>;
|
|
1731
|
+
}>;
|
|
1601
1732
|
};
|
|
1602
1733
|
export type ListAppBlockerCategoryMacrosResponse = ListAppBlockerCategoryMacrosResponses[keyof ListAppBlockerCategoryMacrosResponses];
|
|
1603
1734
|
export type ListMalwareCategoriesData = {
|
|
1604
1735
|
body?: never;
|
|
1605
1736
|
path?: never;
|
|
1606
1737
|
query?: {
|
|
1607
|
-
organizationId?:
|
|
1738
|
+
organizationId?: string;
|
|
1608
1739
|
lang?: string;
|
|
1609
1740
|
};
|
|
1610
1741
|
url: '/v1/malwares/categories';
|
|
@@ -1632,14 +1763,19 @@ export type ListMalwareCategoriesResponses = {
|
|
|
1632
1763
|
/**
|
|
1633
1764
|
* Categories
|
|
1634
1765
|
*/
|
|
1635
|
-
200: Array<
|
|
1766
|
+
200: Array<{
|
|
1767
|
+
code: string;
|
|
1768
|
+
id: string;
|
|
1769
|
+
macroCategoryId: string;
|
|
1770
|
+
name: string;
|
|
1771
|
+
}>;
|
|
1636
1772
|
};
|
|
1637
1773
|
export type ListMalwareCategoriesResponse = ListMalwareCategoriesResponses[keyof ListMalwareCategoriesResponses];
|
|
1638
1774
|
export type ListMalwareCategoryMacrosData = {
|
|
1639
1775
|
body?: never;
|
|
1640
1776
|
path?: never;
|
|
1641
1777
|
query?: {
|
|
1642
|
-
organizationId?:
|
|
1778
|
+
organizationId?: string;
|
|
1643
1779
|
lang?: string;
|
|
1644
1780
|
};
|
|
1645
1781
|
url: '/v1/malwares/macros';
|
|
@@ -1667,7 +1803,17 @@ export type ListMalwareCategoryMacrosResponses = {
|
|
|
1667
1803
|
/**
|
|
1668
1804
|
* Macro categories
|
|
1669
1805
|
*/
|
|
1670
|
-
200: Array<
|
|
1806
|
+
200: Array<{
|
|
1807
|
+
id: string;
|
|
1808
|
+
name: string;
|
|
1809
|
+
protectionModule: 'content_filter' | 'malware_protection' | 'app_blocker';
|
|
1810
|
+
categories: Array<{
|
|
1811
|
+
code: string;
|
|
1812
|
+
id: string;
|
|
1813
|
+
macroCategoryId: string;
|
|
1814
|
+
name: string;
|
|
1815
|
+
}>;
|
|
1816
|
+
}>;
|
|
1671
1817
|
};
|
|
1672
1818
|
export type ListMalwareCategoryMacrosResponse = ListMalwareCategoryMacrosResponses[keyof ListMalwareCategoryMacrosResponses];
|
|
1673
1819
|
export type ListContinentsData = {
|
|
@@ -1701,7 +1847,17 @@ export type ListContinentsResponses = {
|
|
|
1701
1847
|
/**
|
|
1702
1848
|
* Continents
|
|
1703
1849
|
*/
|
|
1704
|
-
200: Array<
|
|
1850
|
+
200: Array<{
|
|
1851
|
+
code: string;
|
|
1852
|
+
id: string;
|
|
1853
|
+
name: string;
|
|
1854
|
+
countries: Array<{
|
|
1855
|
+
code: string;
|
|
1856
|
+
continentId: string;
|
|
1857
|
+
id: string;
|
|
1858
|
+
name: string;
|
|
1859
|
+
}>;
|
|
1860
|
+
}>;
|
|
1705
1861
|
};
|
|
1706
1862
|
export type ListContinentsResponse = ListContinentsResponses[keyof ListContinentsResponses];
|
|
1707
1863
|
export type ListCountriesData = {
|
|
@@ -1733,14 +1889,19 @@ export type ListCountriesResponses = {
|
|
|
1733
1889
|
/**
|
|
1734
1890
|
* Countries
|
|
1735
1891
|
*/
|
|
1736
|
-
200: Array<
|
|
1892
|
+
200: Array<{
|
|
1893
|
+
code: string;
|
|
1894
|
+
continentId: string;
|
|
1895
|
+
id: string;
|
|
1896
|
+
name: string;
|
|
1897
|
+
}>;
|
|
1737
1898
|
};
|
|
1738
1899
|
export type ListCountriesResponse = ListCountriesResponses[keyof ListCountriesResponses];
|
|
1739
1900
|
export type ListExceptionGroupsData = {
|
|
1740
1901
|
body?: never;
|
|
1741
1902
|
path?: never;
|
|
1742
1903
|
query?: {
|
|
1743
|
-
organizationId?:
|
|
1904
|
+
organizationId?: string;
|
|
1744
1905
|
includeAssociatedPolicies?: 'true' | 'false';
|
|
1745
1906
|
};
|
|
1746
1907
|
url: '/v1/exceptiongroups';
|
|
@@ -1768,11 +1929,44 @@ export type ListExceptionGroupsResponses = {
|
|
|
1768
1929
|
/**
|
|
1769
1930
|
* Exception groups
|
|
1770
1931
|
*/
|
|
1771
|
-
200: Array<
|
|
1932
|
+
200: Array<{
|
|
1933
|
+
id: string;
|
|
1934
|
+
name: string;
|
|
1935
|
+
organizationId: string;
|
|
1936
|
+
type: 'allowlist' | 'blocklist';
|
|
1937
|
+
domains: Array<{
|
|
1938
|
+
id: string;
|
|
1939
|
+
name: string;
|
|
1940
|
+
note?: string | null;
|
|
1941
|
+
}>;
|
|
1942
|
+
} | {
|
|
1943
|
+
id: string;
|
|
1944
|
+
name: string;
|
|
1945
|
+
organizationId: string;
|
|
1946
|
+
type: 'allowlist' | 'blocklist';
|
|
1947
|
+
domains: Array<{
|
|
1948
|
+
id: string;
|
|
1949
|
+
name: string;
|
|
1950
|
+
note?: string | null;
|
|
1951
|
+
}>;
|
|
1952
|
+
policies: Array<{
|
|
1953
|
+
id: string;
|
|
1954
|
+
isLimited: boolean;
|
|
1955
|
+
isShared: boolean;
|
|
1956
|
+
name: string;
|
|
1957
|
+
organizationId: string;
|
|
1958
|
+
}>;
|
|
1959
|
+
isHidden: boolean;
|
|
1960
|
+
}>;
|
|
1772
1961
|
};
|
|
1773
1962
|
export type ListExceptionGroupsResponse = ListExceptionGroupsResponses[keyof ListExceptionGroupsResponses];
|
|
1774
1963
|
export type CreateExceptionGroupData = {
|
|
1775
|
-
body:
|
|
1964
|
+
body: {
|
|
1965
|
+
domains?: Array<string>;
|
|
1966
|
+
name: string;
|
|
1967
|
+
organizationId?: string;
|
|
1968
|
+
type: 'allowlist' | 'blocklist';
|
|
1969
|
+
};
|
|
1776
1970
|
path?: never;
|
|
1777
1971
|
query?: never;
|
|
1778
1972
|
url: '/v1/exceptiongroups';
|
|
@@ -1802,15 +1996,25 @@ export type CreateExceptionGroupErrors = {
|
|
|
1802
1996
|
export type CreateExceptionGroupError = CreateExceptionGroupErrors[keyof CreateExceptionGroupErrors];
|
|
1803
1997
|
export type CreateExceptionGroupResponses = {
|
|
1804
1998
|
/**
|
|
1805
|
-
* Exception group
|
|
1999
|
+
* Exception group
|
|
1806
2000
|
*/
|
|
1807
|
-
201:
|
|
2001
|
+
201: {
|
|
2002
|
+
id: string;
|
|
2003
|
+
name: string;
|
|
2004
|
+
organizationId: string;
|
|
2005
|
+
type: 'allowlist' | 'blocklist';
|
|
2006
|
+
domains: Array<{
|
|
2007
|
+
id: string;
|
|
2008
|
+
name: string;
|
|
2009
|
+
note?: string | null;
|
|
2010
|
+
}>;
|
|
2011
|
+
};
|
|
1808
2012
|
};
|
|
1809
2013
|
export type CreateExceptionGroupResponse = CreateExceptionGroupResponses[keyof CreateExceptionGroupResponses];
|
|
1810
2014
|
export type DeleteExceptionGroupData = {
|
|
1811
2015
|
body?: never;
|
|
1812
2016
|
path: {
|
|
1813
|
-
exceptionGroupId:
|
|
2017
|
+
exceptionGroupId: string;
|
|
1814
2018
|
};
|
|
1815
2019
|
query?: never;
|
|
1816
2020
|
url: '/v1/exceptiongroups/{exceptionGroupId}';
|
|
@@ -1838,13 +2042,21 @@ export type DeleteExceptionGroupResponses = {
|
|
|
1838
2042
|
/**
|
|
1839
2043
|
* Exception group
|
|
1840
2044
|
*/
|
|
1841
|
-
200:
|
|
2045
|
+
200: {
|
|
2046
|
+
id: string;
|
|
2047
|
+
name: string;
|
|
2048
|
+
organizationId: string;
|
|
2049
|
+
type: 'allowlist' | 'blocklist';
|
|
2050
|
+
};
|
|
1842
2051
|
};
|
|
1843
2052
|
export type DeleteExceptionGroupResponse = DeleteExceptionGroupResponses[keyof DeleteExceptionGroupResponses];
|
|
1844
2053
|
export type UpdateExceptionGroupData = {
|
|
1845
|
-
body:
|
|
2054
|
+
body: {
|
|
2055
|
+
name?: string;
|
|
2056
|
+
type?: 'allowlist' | 'blocklist';
|
|
2057
|
+
};
|
|
1846
2058
|
path: {
|
|
1847
|
-
exceptionGroupId:
|
|
2059
|
+
exceptionGroupId: string;
|
|
1848
2060
|
};
|
|
1849
2061
|
query?: never;
|
|
1850
2062
|
url: '/v1/exceptiongroups/{exceptionGroupId}';
|
|
@@ -1876,13 +2088,18 @@ export type UpdateExceptionGroupResponses = {
|
|
|
1876
2088
|
/**
|
|
1877
2089
|
* Exception group
|
|
1878
2090
|
*/
|
|
1879
|
-
200:
|
|
2091
|
+
200: {
|
|
2092
|
+
id: string;
|
|
2093
|
+
name: string;
|
|
2094
|
+
organizationId: string;
|
|
2095
|
+
type: 'allowlist' | 'blocklist';
|
|
2096
|
+
};
|
|
1880
2097
|
};
|
|
1881
2098
|
export type UpdateExceptionGroupResponse = UpdateExceptionGroupResponses[keyof UpdateExceptionGroupResponses];
|
|
1882
2099
|
export type ListExceptionGroupDomainsData = {
|
|
1883
2100
|
body?: never;
|
|
1884
2101
|
path: {
|
|
1885
|
-
exceptionGroupId:
|
|
2102
|
+
exceptionGroupId: string;
|
|
1886
2103
|
};
|
|
1887
2104
|
query?: never;
|
|
1888
2105
|
url: '/v1/exceptiongroups/{exceptionGroupId}/domains';
|
|
@@ -1910,13 +2127,22 @@ export type ListExceptionGroupDomainsResponses = {
|
|
|
1910
2127
|
/**
|
|
1911
2128
|
* Domains
|
|
1912
2129
|
*/
|
|
1913
|
-
200: Array<
|
|
2130
|
+
200: Array<{
|
|
2131
|
+
id: string;
|
|
2132
|
+
name: string;
|
|
2133
|
+
note?: string | null;
|
|
2134
|
+
}>;
|
|
1914
2135
|
};
|
|
1915
2136
|
export type ListExceptionGroupDomainsResponse = ListExceptionGroupDomainsResponses[keyof ListExceptionGroupDomainsResponses];
|
|
1916
2137
|
export type AddExceptionGroupDomainsData = {
|
|
1917
|
-
body:
|
|
2138
|
+
body: {
|
|
2139
|
+
domains: Array<{
|
|
2140
|
+
domain: string;
|
|
2141
|
+
note?: string;
|
|
2142
|
+
}>;
|
|
2143
|
+
};
|
|
1918
2144
|
path: {
|
|
1919
|
-
exceptionGroupId:
|
|
2145
|
+
exceptionGroupId: string;
|
|
1920
2146
|
};
|
|
1921
2147
|
query?: never;
|
|
1922
2148
|
url: '/v1/exceptiongroups/{exceptionGroupId}/domains';
|
|
@@ -1948,14 +2174,18 @@ export type AddExceptionGroupDomainsResponses = {
|
|
|
1948
2174
|
/**
|
|
1949
2175
|
* Exception group domain associations
|
|
1950
2176
|
*/
|
|
1951
|
-
201: Array<
|
|
2177
|
+
201: Array<{
|
|
2178
|
+
domainId: string;
|
|
2179
|
+
exceptionGroupId: string;
|
|
2180
|
+
note?: string | null;
|
|
2181
|
+
}>;
|
|
1952
2182
|
};
|
|
1953
2183
|
export type AddExceptionGroupDomainsResponse = AddExceptionGroupDomainsResponses[keyof AddExceptionGroupDomainsResponses];
|
|
1954
2184
|
export type RemoveExceptionGroupDomainData = {
|
|
1955
2185
|
body?: never;
|
|
1956
2186
|
path: {
|
|
1957
|
-
exceptionGroupId:
|
|
1958
|
-
domainId:
|
|
2187
|
+
exceptionGroupId: string;
|
|
2188
|
+
domainId: string;
|
|
1959
2189
|
};
|
|
1960
2190
|
query?: never;
|
|
1961
2191
|
url: '/v1/exceptiongroups/{exceptionGroupId}/domains/{domainId}';
|
|
@@ -1983,14 +2213,20 @@ export type RemoveExceptionGroupDomainResponses = {
|
|
|
1983
2213
|
/**
|
|
1984
2214
|
* Exception group domain association
|
|
1985
2215
|
*/
|
|
1986
|
-
200:
|
|
2216
|
+
200: {
|
|
2217
|
+
domainId: string;
|
|
2218
|
+
exceptionGroupId: string;
|
|
2219
|
+
note?: string | null;
|
|
2220
|
+
};
|
|
1987
2221
|
};
|
|
1988
2222
|
export type RemoveExceptionGroupDomainResponse = RemoveExceptionGroupDomainResponses[keyof RemoveExceptionGroupDomainResponses];
|
|
1989
2223
|
export type UpdateExceptionGroupDomainNoteData = {
|
|
1990
|
-
body:
|
|
2224
|
+
body: {
|
|
2225
|
+
note?: string | null;
|
|
2226
|
+
};
|
|
1991
2227
|
path: {
|
|
1992
|
-
exceptionGroupId:
|
|
1993
|
-
domainId:
|
|
2228
|
+
exceptionGroupId: string;
|
|
2229
|
+
domainId: string;
|
|
1994
2230
|
};
|
|
1995
2231
|
query?: never;
|
|
1996
2232
|
url: '/v1/exceptiongroups/{exceptionGroupId}/domains/{domainId}';
|
|
@@ -2022,14 +2258,18 @@ export type UpdateExceptionGroupDomainNoteResponses = {
|
|
|
2022
2258
|
/**
|
|
2023
2259
|
* Exception group domain association
|
|
2024
2260
|
*/
|
|
2025
|
-
200:
|
|
2261
|
+
200: {
|
|
2262
|
+
domainId: string;
|
|
2263
|
+
exceptionGroupId: string;
|
|
2264
|
+
note?: string | null;
|
|
2265
|
+
};
|
|
2026
2266
|
};
|
|
2027
2267
|
export type UpdateExceptionGroupDomainNoteResponse = UpdateExceptionGroupDomainNoteResponses[keyof UpdateExceptionGroupDomainNoteResponses];
|
|
2028
2268
|
export type ListProtectionTemplatesData = {
|
|
2029
2269
|
body?: never;
|
|
2030
2270
|
path?: never;
|
|
2031
2271
|
query?: {
|
|
2032
|
-
organizationId?:
|
|
2272
|
+
organizationId?: string;
|
|
2033
2273
|
lang?: string;
|
|
2034
2274
|
};
|
|
2035
2275
|
url: '/v1/templates';
|
|
@@ -2057,16 +2297,27 @@ export type ListProtectionTemplatesResponses = {
|
|
|
2057
2297
|
/**
|
|
2058
2298
|
* Protection templates
|
|
2059
2299
|
*/
|
|
2060
|
-
200: Array<
|
|
2300
|
+
200: Array<{
|
|
2301
|
+
id: string;
|
|
2302
|
+
name: string;
|
|
2303
|
+
type: 'malware_threats' | 'malware_contents' | 'malware_free_time';
|
|
2304
|
+
categories: Array<{
|
|
2305
|
+
code: string;
|
|
2306
|
+
id: string;
|
|
2307
|
+
macroCategoryId: string;
|
|
2308
|
+
name: string;
|
|
2309
|
+
}>;
|
|
2310
|
+
settings: Array<'google_safesearch' | 'youtube_safesearch' | 'ip_blocking' | 'bing_safesearch' | 'duckduckgo_safesearch'>;
|
|
2311
|
+
}>;
|
|
2061
2312
|
};
|
|
2062
2313
|
export type ListProtectionTemplatesResponse = ListProtectionTemplatesResponses[keyof ListProtectionTemplatesResponses];
|
|
2063
2314
|
export type ListTemplateCategoriesData = {
|
|
2064
2315
|
body?: never;
|
|
2065
2316
|
path: {
|
|
2066
|
-
templateId:
|
|
2317
|
+
templateId: string;
|
|
2067
2318
|
};
|
|
2068
2319
|
query?: {
|
|
2069
|
-
organizationId?:
|
|
2320
|
+
organizationId?: string;
|
|
2070
2321
|
lang?: string;
|
|
2071
2322
|
};
|
|
2072
2323
|
url: '/v1/templates/{templateId}/categories';
|
|
@@ -2094,7 +2345,12 @@ export type ListTemplateCategoriesResponses = {
|
|
|
2094
2345
|
/**
|
|
2095
2346
|
* Categories
|
|
2096
2347
|
*/
|
|
2097
|
-
200: Array<
|
|
2348
|
+
200: Array<{
|
|
2349
|
+
code: string;
|
|
2350
|
+
id: string;
|
|
2351
|
+
macroCategoryId: string;
|
|
2352
|
+
name: string;
|
|
2353
|
+
}>;
|
|
2098
2354
|
};
|
|
2099
2355
|
export type ListTemplateCategoriesResponse = ListTemplateCategoriesResponses[keyof ListTemplateCategoriesResponses];
|
|
2100
2356
|
export type ListTldsData = {
|
|
@@ -2126,7 +2382,10 @@ export type ListTldsResponses = {
|
|
|
2126
2382
|
/**
|
|
2127
2383
|
* TLDs
|
|
2128
2384
|
*/
|
|
2129
|
-
200: Array<
|
|
2385
|
+
200: Array<{
|
|
2386
|
+
id: string;
|
|
2387
|
+
tld: string;
|
|
2388
|
+
}>;
|
|
2130
2389
|
};
|
|
2131
2390
|
export type ListTldsResponse = ListTldsResponses[keyof ListTldsResponses];
|
|
2132
2391
|
export type ListTldMacrosData = {
|
|
@@ -2160,7 +2419,15 @@ export type ListTldMacrosResponses = {
|
|
|
2160
2419
|
/**
|
|
2161
2420
|
* TLD macros
|
|
2162
2421
|
*/
|
|
2163
|
-
200: Array<
|
|
2422
|
+
200: Array<{
|
|
2423
|
+
code: string;
|
|
2424
|
+
id: string;
|
|
2425
|
+
name: string;
|
|
2426
|
+
tlds: Array<{
|
|
2427
|
+
id: string;
|
|
2428
|
+
tld: string;
|
|
2429
|
+
}>;
|
|
2430
|
+
}>;
|
|
2164
2431
|
};
|
|
2165
2432
|
export type ListTldMacrosResponse = ListTldMacrosResponses[keyof ListTldMacrosResponses];
|
|
2166
2433
|
export type GetTldData = {
|
|
@@ -2194,6 +2461,9 @@ export type GetTldResponses = {
|
|
|
2194
2461
|
/**
|
|
2195
2462
|
* TLD
|
|
2196
2463
|
*/
|
|
2197
|
-
200:
|
|
2464
|
+
200: {
|
|
2465
|
+
id: string;
|
|
2466
|
+
tld: string;
|
|
2467
|
+
};
|
|
2198
2468
|
};
|
|
2199
2469
|
export type GetTldResponse = GetTldResponses[keyof GetTldResponses];
|