@sailpoint/angular-sdk 0.0.52 → 0.0.54

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 (140) hide show
  1. package/access_model_metadata/README.md +2 -2
  2. package/access_profiles/README.md +2 -2
  3. package/access_request_approvals/README.md +2 -2
  4. package/access_request_identity_metrics/README.md +2 -2
  5. package/access_requests/README.md +2 -2
  6. package/account_activities/README.md +2 -2
  7. package/account_aggregations/README.md +2 -2
  8. package/account_deletion_requests/README.md +2 -2
  9. package/account_usages/README.md +2 -2
  10. package/accounts/README.md +2 -2
  11. package/api_usage/README.md +2 -2
  12. package/application_discovery/README.md +2 -2
  13. package/approvals/README.md +2 -2
  14. package/apps/README.md +2 -2
  15. package/auth_profile/README.md +2 -2
  16. package/auth_users/README.md +2 -2
  17. package/branding/README.md +2 -2
  18. package/business_applications/README.md +2 -2
  19. package/capabilities/README.md +2 -2
  20. package/certification_campaign_filters/README.md +2 -2
  21. package/certification_campaigns/README.md +2 -2
  22. package/certification_summaries/README.md +2 -2
  23. package/certifications/README.md +2 -2
  24. package/classify_source/README.md +2 -2
  25. package/configuration_hub/README.md +2 -2
  26. package/connector_customizers/README.md +2 -2
  27. package/connector_rule_management/README.md +2 -2
  28. package/connectors/README.md +2 -2
  29. package/credentials/README.md +2 -2
  30. package/custom_forms/README.md +2 -2
  31. package/custom_password_instructions/README.md +2 -2
  32. package/custom_user_levels/README.md +2 -2
  33. package/data_access_security/README.md +2 -2
  34. package/data_segmentation/README.md +2 -2
  35. package/declassify_source/README.md +2 -2
  36. package/devices/README.md +2 -2
  37. package/dimensions/README.md +2 -2
  38. package/entitlement_connections/README.md +2 -2
  39. package/entitlements/README.md +2 -2
  40. package/fesm2022/sailpoint-angular-sdk-certification_campaigns.mjs +59 -0
  41. package/fesm2022/sailpoint-angular-sdk-certification_campaigns.mjs.map +1 -1
  42. package/fesm2022/sailpoint-angular-sdk-human_account_subtypes.mjs +752 -0
  43. package/fesm2022/sailpoint-angular-sdk-human_account_subtypes.mjs.map +1 -0
  44. package/fesm2022/sailpoint-angular-sdk.mjs +1610 -809
  45. package/fesm2022/sailpoint-angular-sdk.mjs.map +1 -1
  46. package/generic/README.md +2 -2
  47. package/generic_request_approval_config/README.md +2 -2
  48. package/global_tenant_security_settings/README.md +2 -2
  49. package/gov_certification/README.md +2 -2
  50. package/governance_groups/README.md +2 -2
  51. package/human_account_subtypes/README.md +236 -0
  52. package/iai_access_request_recommendations/README.md +2 -2
  53. package/iai_common_access/README.md +2 -2
  54. package/iai_outliers/README.md +2 -2
  55. package/iai_peer_group_strategies/README.md +2 -2
  56. package/iai_recommendations/README.md +2 -2
  57. package/iai_role_mining/README.md +2 -2
  58. package/icons/README.md +2 -2
  59. package/identities/README.md +2 -2
  60. package/identity_attributes/README.md +2 -2
  61. package/identity_history/README.md +2 -2
  62. package/identity_profiles/README.md +2 -2
  63. package/intelligence/README.md +2 -2
  64. package/jit_access/README.md +2 -2
  65. package/jit_activation_convert/README.md +2 -2
  66. package/jit_activations/README.md +2 -2
  67. package/launchers/README.md +2 -2
  68. package/lifecycle_states/README.md +2 -2
  69. package/machine_account_classify/README.md +2 -2
  70. package/machine_account_creation_request/README.md +2 -2
  71. package/machine_account_mappings/README.md +2 -2
  72. package/machine_account_recommendation/README.md +2 -2
  73. package/machine_account_subtypes/README.md +2 -2
  74. package/machine_accounts/README.md +2 -2
  75. package/machine_classification_config/README.md +2 -2
  76. package/machine_identities/README.md +2 -2
  77. package/machine_identities_lifecycle_actions/README.md +2 -2
  78. package/machine_identity_metadata/README.md +2 -2
  79. package/machine_mapping_metadata/README.md +2 -2
  80. package/managed_clients/README.md +2 -2
  81. package/managed_cluster_types/README.md +2 -2
  82. package/managed_clusters/README.md +2 -2
  83. package/mfa_configuration/README.md +2 -2
  84. package/multi_host_integration/README.md +2 -2
  85. package/nerm/README.md +2 -2
  86. package/nermv2025/README.md +2 -2
  87. package/non_employee_lifecycle_management/README.md +2 -2
  88. package/notifications/README.md +2 -2
  89. package/oauth_clients/README.md +2 -2
  90. package/org_config/README.md +2 -2
  91. package/package.json +5 -1
  92. package/parameter_storage/README.md +2 -2
  93. package/password_configuration/README.md +2 -2
  94. package/password_dictionary/README.md +2 -2
  95. package/password_management/README.md +2 -2
  96. package/password_policies/README.md +2 -2
  97. package/password_sync_groups/README.md +2 -2
  98. package/personal_access_tokens/README.md +2 -2
  99. package/privilege_criteria/README.md +2 -2
  100. package/privilege_criteria_configuration/README.md +2 -2
  101. package/public_identities/README.md +2 -2
  102. package/public_identities_config/README.md +2 -2
  103. package/public_machine_identities/README.md +2 -2
  104. package/reminder_escalations/README.md +2 -2
  105. package/reports_data_extraction/README.md +2 -2
  106. package/requestable_objects/README.md +2 -2
  107. package/role_insights/README.md +2 -2
  108. package/role_propagation/README.md +2 -2
  109. package/roles/README.md +2 -2
  110. package/sailpoint-scopes.json +144 -1
  111. package/saved_search/README.md +2 -2
  112. package/scheduled_search/README.md +2 -2
  113. package/search/README.md +2 -2
  114. package/search_attribute_configuration/README.md +2 -2
  115. package/segments/README.md +2 -2
  116. package/service_desk_integration/README.md +2 -2
  117. package/shared_signals_framework_ssf/README.md +2 -2
  118. package/sim_integrations/README.md +2 -2
  119. package/sod_controls/README.md +2 -2
  120. package/sod_policies/README.md +2 -2
  121. package/sod_violations/README.md +2 -2
  122. package/source_usages/README.md +2 -2
  123. package/sources/README.md +2 -2
  124. package/sp_config/README.md +2 -2
  125. package/suggested_entitlement_description/README.md +2 -2
  126. package/tagged_objects/README.md +2 -2
  127. package/tags/README.md +2 -2
  128. package/task_management/README.md +2 -2
  129. package/tenant/README.md +2 -2
  130. package/tenant_context/README.md +2 -2
  131. package/transforms/README.md +2 -2
  132. package/triggers/README.md +2 -2
  133. package/types/sailpoint-angular-sdk-certification_campaigns.d.ts +53 -1
  134. package/types/sailpoint-angular-sdk-human_account_subtypes.d.ts +731 -0
  135. package/types/sailpoint-angular-sdk.d.ts +1757 -1098
  136. package/ui_metadata/README.md +2 -2
  137. package/ui_plugins/README.md +2 -2
  138. package/work_items/README.md +2 -2
  139. package/work_reassignment/README.md +2 -2
  140. package/workflows/README.md +2 -2
@@ -0,0 +1,752 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, Optional, Inject, Injectable, SkipSelf, NgModule } from '@angular/core';
3
+ import * as i1 from '@angular/common/http';
4
+ import { HttpHeaders, HttpContext, HttpParams } from '@angular/common/http';
5
+
6
+ const BASE_PATH = new InjectionToken('basePath');
7
+ const COLLECTION_FORMATS = {
8
+ 'csv': ',',
9
+ 'tsv': ' ',
10
+ 'ssv': ' ',
11
+ 'pipes': '|'
12
+ };
13
+
14
+ /**
15
+ * Custom HttpParameterCodec
16
+ * Workaround for https://github.com/angular/angular/issues/18261
17
+ */
18
+ class CustomHttpParameterCodec {
19
+ encodeKey(k) {
20
+ return encodeURIComponent(k);
21
+ }
22
+ encodeValue(v) {
23
+ return encodeURIComponent(v);
24
+ }
25
+ decodeKey(k) {
26
+ return decodeURIComponent(k);
27
+ }
28
+ decodeValue(v) {
29
+ return decodeURIComponent(v);
30
+ }
31
+ }
32
+
33
+ class Configuration {
34
+ /**
35
+ * @deprecated Since 5.0. Use credentials instead
36
+ */
37
+ apiKeys;
38
+ username;
39
+ password;
40
+ /**
41
+ * @deprecated Since 5.0. Use credentials instead
42
+ */
43
+ accessToken;
44
+ basePath;
45
+ withCredentials;
46
+ /**
47
+ * Takes care of encoding query- and form-parameters.
48
+ */
49
+ encoder;
50
+ /**
51
+ * Encoding of various path parameter
52
+ * <a href="https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#style-values">styles</a>.
53
+ * <p>
54
+ * See {@link README.md} for more details
55
+ * </p>
56
+ */
57
+ encodeParam;
58
+ /**
59
+ * The keys are the names in the securitySchemes section of the OpenAPI
60
+ * document. They should map to the value used for authentication
61
+ * minus any standard prefixes such as 'Basic' or 'Bearer'.
62
+ */
63
+ credentials;
64
+ constructor(configurationParameters = {}) {
65
+ this.apiKeys = configurationParameters.apiKeys;
66
+ this.username = configurationParameters.username;
67
+ this.password = configurationParameters.password;
68
+ this.accessToken = configurationParameters.accessToken;
69
+ this.basePath = configurationParameters.basePath;
70
+ this.withCredentials = configurationParameters.withCredentials;
71
+ this.encoder = configurationParameters.encoder;
72
+ if (configurationParameters.encodeParam) {
73
+ this.encodeParam = configurationParameters.encodeParam;
74
+ }
75
+ else {
76
+ this.encodeParam = param => this.defaultEncodeParam(param);
77
+ }
78
+ if (configurationParameters.credentials) {
79
+ this.credentials = configurationParameters.credentials;
80
+ }
81
+ else {
82
+ this.credentials = {};
83
+ }
84
+ }
85
+ /**
86
+ * Select the correct content-type to use for a request.
87
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
88
+ * If no content type is found return the first found type if the contentTypes is not empty
89
+ * @param contentTypes - the array of content types that are available for selection
90
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
91
+ */
92
+ selectHeaderContentType(contentTypes) {
93
+ if (contentTypes.length === 0) {
94
+ return undefined;
95
+ }
96
+ const type = contentTypes.find((x) => this.isJsonMime(x));
97
+ if (type === undefined) {
98
+ return contentTypes[0];
99
+ }
100
+ return type;
101
+ }
102
+ /**
103
+ * Select the correct accept content-type to use for a request.
104
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
105
+ * If no content type is found return the first found type if the contentTypes is not empty
106
+ * @param accepts - the array of content types that are available for selection.
107
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
108
+ */
109
+ selectHeaderAccept(accepts) {
110
+ if (accepts.length === 0) {
111
+ return undefined;
112
+ }
113
+ const type = accepts.find((x) => this.isJsonMime(x));
114
+ if (type === undefined) {
115
+ return accepts[0];
116
+ }
117
+ return type;
118
+ }
119
+ /**
120
+ * Check if the given MIME is a JSON MIME.
121
+ * JSON MIME examples:
122
+ * application/json
123
+ * application/json; charset=UTF8
124
+ * APPLICATION/JSON
125
+ * application/vnd.company+json
126
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
127
+ * @return True if the given MIME is JSON, false otherwise.
128
+ */
129
+ isJsonMime(mime) {
130
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
131
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
132
+ }
133
+ lookupCredential(key) {
134
+ const value = this.credentials[key];
135
+ return typeof value === 'function'
136
+ ? value()
137
+ : value;
138
+ }
139
+ addCredentialToHeaders(credentialKey, headerName, headers, prefix) {
140
+ const value = this.lookupCredential(credentialKey);
141
+ return value
142
+ ? headers.set(headerName, (prefix ?? '') + value)
143
+ : headers;
144
+ }
145
+ addCredentialToQuery(credentialKey, paramName, query) {
146
+ const value = this.lookupCredential(credentialKey);
147
+ return value
148
+ ? query.set(paramName, value)
149
+ : query;
150
+ }
151
+ defaultEncodeParam(param) {
152
+ // This implementation exists as fallback for missing configuration
153
+ // and for backwards compatibility to older typescript-angular generator versions.
154
+ // It only works for the 'simple' parameter style.
155
+ // Date-handling only works for the 'date-time' format.
156
+ // All other styles and Date-formats are probably handled incorrectly.
157
+ //
158
+ // But: if that's all you need (i.e.: the most common use-case): no need for customization!
159
+ const value = param.dataFormat === 'date-time' && param.value instanceof Date
160
+ ? param.value.toISOString()
161
+ : param.value;
162
+ return encodeURIComponent(String(value));
163
+ }
164
+ }
165
+
166
+ class BaseService {
167
+ basePath = '';
168
+ defaultHeaders = new HttpHeaders();
169
+ configuration;
170
+ encoder;
171
+ constructor(basePath, configuration) {
172
+ this.configuration = configuration || new Configuration();
173
+ if (typeof this.configuration.basePath !== 'string') {
174
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
175
+ if (firstBasePath != undefined) {
176
+ basePath = firstBasePath;
177
+ }
178
+ if (typeof basePath !== 'string') {
179
+ basePath = this.basePath;
180
+ }
181
+ this.configuration.basePath = basePath;
182
+ }
183
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
184
+ }
185
+ canConsumeForm(consumes) {
186
+ return consumes.indexOf('multipart/form-data') !== -1;
187
+ }
188
+ addToHttpParams(httpParams, value, key) {
189
+ // If the value is an object (but not a Date), recursively add its keys.
190
+ if (typeof value === 'object' && !(value instanceof Date)) {
191
+ return this.addToHttpParamsRecursive(httpParams, value, key);
192
+ }
193
+ return this.addToHttpParamsRecursive(httpParams, value, key);
194
+ }
195
+ addToHttpParamsRecursive(httpParams, value, key) {
196
+ if (value === null || value === undefined) {
197
+ return httpParams;
198
+ }
199
+ if (typeof value === 'object') {
200
+ // If JSON format is preferred, key must be provided.
201
+ if (key != null) {
202
+ return httpParams.append(key, JSON.stringify(value));
203
+ }
204
+ // Otherwise, if it's an array, add each element.
205
+ if (Array.isArray(value)) {
206
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
207
+ }
208
+ else if (value instanceof Date) {
209
+ if (key != null) {
210
+ httpParams = httpParams.append(key, value.toISOString());
211
+ }
212
+ else {
213
+ throw Error("key may not be null if value is Date");
214
+ }
215
+ }
216
+ else {
217
+ Object.keys(value).forEach(k => {
218
+ const paramKey = key ? `${key}.${k}` : k;
219
+ httpParams = this.addToHttpParamsRecursive(httpParams, value[k], paramKey);
220
+ });
221
+ }
222
+ return httpParams;
223
+ }
224
+ else if (key != null) {
225
+ return httpParams.append(key, value);
226
+ }
227
+ throw Error("key may not be null if value is not object or array");
228
+ }
229
+ }
230
+
231
+ /**
232
+ * SailPoint Identity Security API - Human Account Subtypes
233
+ *
234
+ *
235
+ *
236
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
237
+ * https://openapi-generator.tech
238
+ * Do not edit the class manually.
239
+ */
240
+ /* tslint:disable:no-unused-variable member-ordering */
241
+ class HumanAccountSubtypesService extends BaseService {
242
+ httpClient;
243
+ constructor(httpClient, basePath, configuration) {
244
+ super(basePath, configuration);
245
+ this.httpClient = httpClient;
246
+ }
247
+ createHumanAccountSubtypeV2(requestParameters, observe = 'body', reportProgress = false, options) {
248
+ const sourceId = requestParameters?.sourceId;
249
+ if (sourceId === null || sourceId === undefined) {
250
+ throw new Error('Required parameter sourceId was null or undefined when calling createHumanAccountSubtypeV2.');
251
+ }
252
+ const humanAccountSubtypeCreateRequest = requestParameters?.humanAccountSubtypeCreateRequest;
253
+ if (humanAccountSubtypeCreateRequest === null || humanAccountSubtypeCreateRequest === undefined) {
254
+ throw new Error('Required parameter humanAccountSubtypeCreateRequest was null or undefined when calling createHumanAccountSubtypeV2.');
255
+ }
256
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
257
+ let localVarHeaders = this.defaultHeaders;
258
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
259
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
260
+ }
261
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
262
+ 'application/json'
263
+ ]);
264
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
265
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
266
+ }
267
+ const localVarHttpContext = options?.context ?? new HttpContext();
268
+ const localVarTransferCache = options?.transferCache ?? true;
269
+ // to determine the Content-Type header
270
+ const consumes = [
271
+ 'application/json'
272
+ ];
273
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
274
+ if (httpContentTypeSelected !== undefined) {
275
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
276
+ }
277
+ let responseType_ = 'json';
278
+ if (localVarHttpHeaderAcceptSelected) {
279
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
280
+ responseType_ = 'text';
281
+ }
282
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
283
+ responseType_ = 'json';
284
+ }
285
+ else {
286
+ responseType_ = 'blob';
287
+ }
288
+ }
289
+ let localVarPath = `/accounts/v2/sources/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/subtypes`;
290
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
291
+ context: localVarHttpContext,
292
+ body: humanAccountSubtypeCreateRequest,
293
+ responseType: responseType_,
294
+ withCredentials: this.configuration.withCredentials,
295
+ headers: localVarHeaders,
296
+ observe: observe,
297
+ transferCache: localVarTransferCache,
298
+ reportProgress: reportProgress
299
+ });
300
+ }
301
+ deleteHumanAccountSubtypeV2(requestParameters, observe = 'body', reportProgress = false, options) {
302
+ const sourceId = requestParameters?.sourceId;
303
+ if (sourceId === null || sourceId === undefined) {
304
+ throw new Error('Required parameter sourceId was null or undefined when calling deleteHumanAccountSubtypeV2.');
305
+ }
306
+ const subtypeId = requestParameters?.subtypeId;
307
+ if (subtypeId === null || subtypeId === undefined) {
308
+ throw new Error('Required parameter subtypeId was null or undefined when calling deleteHumanAccountSubtypeV2.');
309
+ }
310
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
311
+ let localVarHeaders = this.defaultHeaders;
312
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
313
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
314
+ }
315
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
316
+ 'application/json'
317
+ ]);
318
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
319
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
320
+ }
321
+ const localVarHttpContext = options?.context ?? new HttpContext();
322
+ const localVarTransferCache = options?.transferCache ?? true;
323
+ let responseType_ = 'json';
324
+ if (localVarHttpHeaderAcceptSelected) {
325
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
326
+ responseType_ = 'text';
327
+ }
328
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
329
+ responseType_ = 'json';
330
+ }
331
+ else {
332
+ responseType_ = 'blob';
333
+ }
334
+ }
335
+ let localVarPath = `/accounts/v2/sources/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/subtypes/${this.configuration.encodeParam({ name: "subtypeId", value: subtypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
336
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
337
+ context: localVarHttpContext,
338
+ responseType: responseType_,
339
+ withCredentials: this.configuration.withCredentials,
340
+ headers: localVarHeaders,
341
+ observe: observe,
342
+ transferCache: localVarTransferCache,
343
+ reportProgress: reportProgress
344
+ });
345
+ }
346
+ getHumanAccountSubtypeConfigV2(requestParameters, observe = 'body', reportProgress = false, options) {
347
+ const subtypeId = requestParameters?.subtypeId;
348
+ if (subtypeId === null || subtypeId === undefined) {
349
+ throw new Error('Required parameter subtypeId was null or undefined when calling getHumanAccountSubtypeConfigV2.');
350
+ }
351
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
352
+ let localVarHeaders = this.defaultHeaders;
353
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
354
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
355
+ }
356
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
357
+ 'application/json'
358
+ ]);
359
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
360
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
361
+ }
362
+ const localVarHttpContext = options?.context ?? new HttpContext();
363
+ const localVarTransferCache = options?.transferCache ?? true;
364
+ let responseType_ = 'json';
365
+ if (localVarHttpHeaderAcceptSelected) {
366
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
367
+ responseType_ = 'text';
368
+ }
369
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
370
+ responseType_ = 'json';
371
+ }
372
+ else {
373
+ responseType_ = 'blob';
374
+ }
375
+ }
376
+ let localVarPath = `/accounts/v2/source-subtypes/${this.configuration.encodeParam({ name: "subtypeId", value: subtypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/human-config`;
377
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
378
+ context: localVarHttpContext,
379
+ responseType: responseType_,
380
+ withCredentials: this.configuration.withCredentials,
381
+ headers: localVarHeaders,
382
+ observe: observe,
383
+ transferCache: localVarTransferCache,
384
+ reportProgress: reportProgress
385
+ });
386
+ }
387
+ getHumanAccountSubtypeV2(requestParameters, observe = 'body', reportProgress = false, options) {
388
+ const sourceId = requestParameters?.sourceId;
389
+ if (sourceId === null || sourceId === undefined) {
390
+ throw new Error('Required parameter sourceId was null or undefined when calling getHumanAccountSubtypeV2.');
391
+ }
392
+ const subtypeId = requestParameters?.subtypeId;
393
+ if (subtypeId === null || subtypeId === undefined) {
394
+ throw new Error('Required parameter subtypeId was null or undefined when calling getHumanAccountSubtypeV2.');
395
+ }
396
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
397
+ let localVarHeaders = this.defaultHeaders;
398
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
399
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
400
+ }
401
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
402
+ 'application/json'
403
+ ]);
404
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
405
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
406
+ }
407
+ const localVarHttpContext = options?.context ?? new HttpContext();
408
+ const localVarTransferCache = options?.transferCache ?? true;
409
+ let responseType_ = 'json';
410
+ if (localVarHttpHeaderAcceptSelected) {
411
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
412
+ responseType_ = 'text';
413
+ }
414
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
415
+ responseType_ = 'json';
416
+ }
417
+ else {
418
+ responseType_ = 'blob';
419
+ }
420
+ }
421
+ let localVarPath = `/accounts/v2/sources/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/subtypes/${this.configuration.encodeParam({ name: "subtypeId", value: subtypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
422
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
423
+ context: localVarHttpContext,
424
+ responseType: responseType_,
425
+ withCredentials: this.configuration.withCredentials,
426
+ headers: localVarHeaders,
427
+ observe: observe,
428
+ transferCache: localVarTransferCache,
429
+ reportProgress: reportProgress
430
+ });
431
+ }
432
+ listHumanAccountSubtypesV2(requestParameters, observe = 'body', reportProgress = false, options) {
433
+ const sourceId = requestParameters?.sourceId;
434
+ if (sourceId === null || sourceId === undefined) {
435
+ throw new Error('Required parameter sourceId was null or undefined when calling listHumanAccountSubtypesV2.');
436
+ }
437
+ const count = requestParameters?.count;
438
+ const limit = requestParameters?.limit;
439
+ const offset = requestParameters?.offset;
440
+ const sorters = requestParameters?.sorters;
441
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
442
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
443
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, count, 'count');
444
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, limit, 'limit');
445
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, offset, 'offset');
446
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, sorters, 'sorters');
447
+ let localVarHeaders = this.defaultHeaders;
448
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
449
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
450
+ }
451
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
452
+ 'application/json'
453
+ ]);
454
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
455
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
456
+ }
457
+ const localVarHttpContext = options?.context ?? new HttpContext();
458
+ const localVarTransferCache = options?.transferCache ?? true;
459
+ let responseType_ = 'json';
460
+ if (localVarHttpHeaderAcceptSelected) {
461
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
462
+ responseType_ = 'text';
463
+ }
464
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
465
+ responseType_ = 'json';
466
+ }
467
+ else {
468
+ responseType_ = 'blob';
469
+ }
470
+ }
471
+ let localVarPath = `/accounts/v2/sources/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/subtypes`;
472
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
473
+ context: localVarHttpContext,
474
+ params: localVarQueryParameters,
475
+ responseType: responseType_,
476
+ withCredentials: this.configuration.withCredentials,
477
+ headers: localVarHeaders,
478
+ observe: observe,
479
+ transferCache: localVarTransferCache,
480
+ reportProgress: reportProgress
481
+ });
482
+ }
483
+ updateHumanAccountSubtypeConfigV2(requestParameters, observe = 'body', reportProgress = false, options) {
484
+ const subtypeId = requestParameters?.subtypeId;
485
+ if (subtypeId === null || subtypeId === undefined) {
486
+ throw new Error('Required parameter subtypeId was null or undefined when calling updateHumanAccountSubtypeConfigV2.');
487
+ }
488
+ const jsonPatchOperation = requestParameters?.jsonPatchOperation;
489
+ if (jsonPatchOperation === null || jsonPatchOperation === undefined) {
490
+ throw new Error('Required parameter jsonPatchOperation was null or undefined when calling updateHumanAccountSubtypeConfigV2.');
491
+ }
492
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
493
+ let localVarHeaders = this.defaultHeaders;
494
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
495
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
496
+ }
497
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
498
+ 'application/json'
499
+ ]);
500
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
501
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
502
+ }
503
+ const localVarHttpContext = options?.context ?? new HttpContext();
504
+ const localVarTransferCache = options?.transferCache ?? true;
505
+ // to determine the Content-Type header
506
+ const consumes = [
507
+ 'application/json-patch+json'
508
+ ];
509
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
510
+ if (httpContentTypeSelected !== undefined) {
511
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
512
+ }
513
+ let responseType_ = 'json';
514
+ if (localVarHttpHeaderAcceptSelected) {
515
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
516
+ responseType_ = 'text';
517
+ }
518
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
519
+ responseType_ = 'json';
520
+ }
521
+ else {
522
+ responseType_ = 'blob';
523
+ }
524
+ }
525
+ let localVarPath = `/accounts/v2/source-subtypes/${this.configuration.encodeParam({ name: "subtypeId", value: subtypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/human-config`;
526
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
527
+ context: localVarHttpContext,
528
+ body: jsonPatchOperation,
529
+ responseType: responseType_,
530
+ withCredentials: this.configuration.withCredentials,
531
+ headers: localVarHeaders,
532
+ observe: observe,
533
+ transferCache: localVarTransferCache,
534
+ reportProgress: reportProgress
535
+ });
536
+ }
537
+ updateHumanAccountSubtypeV2(requestParameters, observe = 'body', reportProgress = false, options) {
538
+ const sourceId = requestParameters?.sourceId;
539
+ if (sourceId === null || sourceId === undefined) {
540
+ throw new Error('Required parameter sourceId was null or undefined when calling updateHumanAccountSubtypeV2.');
541
+ }
542
+ const subtypeId = requestParameters?.subtypeId;
543
+ if (subtypeId === null || subtypeId === undefined) {
544
+ throw new Error('Required parameter subtypeId was null or undefined when calling updateHumanAccountSubtypeV2.');
545
+ }
546
+ const jsonPatchOperation = requestParameters?.jsonPatchOperation;
547
+ if (jsonPatchOperation === null || jsonPatchOperation === undefined) {
548
+ throw new Error('Required parameter jsonPatchOperation was null or undefined when calling updateHumanAccountSubtypeV2.');
549
+ }
550
+ const xSailPointExperimental = requestParameters?.xSailPointExperimental;
551
+ let localVarHeaders = this.defaultHeaders;
552
+ if (xSailPointExperimental !== undefined && xSailPointExperimental !== null) {
553
+ localVarHeaders = localVarHeaders.set('X-SailPoint-Experimental', String(xSailPointExperimental));
554
+ }
555
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
556
+ 'application/json'
557
+ ]);
558
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
559
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
560
+ }
561
+ const localVarHttpContext = options?.context ?? new HttpContext();
562
+ const localVarTransferCache = options?.transferCache ?? true;
563
+ // to determine the Content-Type header
564
+ const consumes = [
565
+ 'application/json-patch+json'
566
+ ];
567
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
568
+ if (httpContentTypeSelected !== undefined) {
569
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
570
+ }
571
+ let responseType_ = 'json';
572
+ if (localVarHttpHeaderAcceptSelected) {
573
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
574
+ responseType_ = 'text';
575
+ }
576
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
577
+ responseType_ = 'json';
578
+ }
579
+ else {
580
+ responseType_ = 'blob';
581
+ }
582
+ }
583
+ let localVarPath = `/accounts/v2/sources/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/subtypes/${this.configuration.encodeParam({ name: "subtypeId", value: subtypeId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
584
+ return this.httpClient.request('patch', `${this.configuration.basePath}${localVarPath}`, {
585
+ context: localVarHttpContext,
586
+ body: jsonPatchOperation,
587
+ responseType: responseType_,
588
+ withCredentials: this.configuration.withCredentials,
589
+ headers: localVarHeaders,
590
+ observe: observe,
591
+ transferCache: localVarTransferCache,
592
+ reportProgress: reportProgress
593
+ });
594
+ }
595
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: HumanAccountSubtypesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
596
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: HumanAccountSubtypesService, providedIn: 'root' });
597
+ }
598
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: HumanAccountSubtypesService, decorators: [{
599
+ type: Injectable,
600
+ args: [{
601
+ providedIn: 'root'
602
+ }]
603
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
604
+ type: Optional
605
+ }, {
606
+ type: Inject,
607
+ args: [BASE_PATH]
608
+ }] }, { type: Configuration, decorators: [{
609
+ type: Optional
610
+ }] }] });
611
+
612
+ const APIS = [HumanAccountSubtypesService];
613
+
614
+ /**
615
+ * SailPoint Identity Security API - Human Account Subtypes
616
+ *
617
+ *
618
+ *
619
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
620
+ * https://openapi-generator.tech
621
+ * Do not edit the class manually.
622
+ */
623
+
624
+ /**
625
+ * SailPoint Identity Security API - Human Account Subtypes
626
+ *
627
+ *
628
+ *
629
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
630
+ * https://openapi-generator.tech
631
+ * Do not edit the class manually.
632
+ */
633
+
634
+ /**
635
+ * SailPoint Identity Security API - Human Account Subtypes
636
+ *
637
+ *
638
+ *
639
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
640
+ * https://openapi-generator.tech
641
+ * Do not edit the class manually.
642
+ */
643
+ var HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum;
644
+ (function (HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum) {
645
+ HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum["All"] = "ALL";
646
+ HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum["Approval"] = "APPROVAL";
647
+ HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum["Rejection"] = "REJECTION";
648
+ HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum["Off"] = "OFF";
649
+ })(HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum || (HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum = {}));
650
+ ;
651
+
652
+ /**
653
+ * SailPoint Identity Security API - Human Account Subtypes
654
+ *
655
+ *
656
+ *
657
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
658
+ * https://openapi-generator.tech
659
+ * Do not edit the class manually.
660
+ */
661
+
662
+ var JsonPatchOperationOpEnum;
663
+ (function (JsonPatchOperationOpEnum) {
664
+ JsonPatchOperationOpEnum["Add"] = "add";
665
+ JsonPatchOperationOpEnum["Remove"] = "remove";
666
+ JsonPatchOperationOpEnum["Replace"] = "replace";
667
+ JsonPatchOperationOpEnum["Move"] = "move";
668
+ JsonPatchOperationOpEnum["Copy"] = "copy";
669
+ JsonPatchOperationOpEnum["Test"] = "test";
670
+ })(JsonPatchOperationOpEnum || (JsonPatchOperationOpEnum = {}));
671
+ ;
672
+
673
+ /**
674
+ * SailPoint Identity Security API - Human Account Subtypes
675
+ *
676
+ *
677
+ *
678
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
679
+ * https://openapi-generator.tech
680
+ * Do not edit the class manually.
681
+ */
682
+
683
+ /**
684
+ * SailPoint Identity Security API - Human Account Subtypes
685
+ *
686
+ *
687
+ *
688
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
689
+ * https://openapi-generator.tech
690
+ * Do not edit the class manually.
691
+ */
692
+
693
+ /**
694
+ * SailPoint Identity Security API - Human Account Subtypes
695
+ *
696
+ *
697
+ *
698
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
699
+ * https://openapi-generator.tech
700
+ * Do not edit the class manually.
701
+ */
702
+ /**
703
+ * An indicator of how the locale was selected. *DEFAULT* means the locale is the system default. *REQUEST* means the locale was selected from the request context (i.e., best match based on the *Accept-Language* header). Additional values may be added in the future without notice.
704
+ */
705
+ var LocaleOrigin;
706
+ (function (LocaleOrigin) {
707
+ LocaleOrigin["Default"] = "DEFAULT";
708
+ LocaleOrigin["Request"] = "REQUEST";
709
+ })(LocaleOrigin || (LocaleOrigin = {}));
710
+
711
+ class ApiModule {
712
+ static forRoot(configurationFactory) {
713
+ return {
714
+ ngModule: ApiModule,
715
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
716
+ };
717
+ }
718
+ constructor(parentModule, http) {
719
+ if (parentModule) {
720
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
721
+ }
722
+ if (!http) {
723
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
724
+ 'See also https://github.com/angular/angular/issues/20575');
725
+ }
726
+ }
727
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
728
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.4", ngImport: i0, type: ApiModule });
729
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ApiModule });
730
+ }
731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.4", ngImport: i0, type: ApiModule, decorators: [{
732
+ type: NgModule,
733
+ args: [{
734
+ imports: [],
735
+ declarations: [],
736
+ exports: [],
737
+ providers: []
738
+ }]
739
+ }], ctorParameters: () => [{ type: ApiModule, decorators: [{
740
+ type: Optional
741
+ }, {
742
+ type: SkipSelf
743
+ }] }, { type: i1.HttpClient, decorators: [{
744
+ type: Optional
745
+ }] }] });
746
+
747
+ /**
748
+ * Generated bundle index. Do not edit.
749
+ */
750
+
751
+ export { APIS, ApiModule, BASE_PATH, COLLECTION_FORMATS, Configuration, HumanAccountSubtypeConfigHumanAccountCreateApprovalConfigCommentsEnum, HumanAccountSubtypesService, JsonPatchOperationOpEnum, LocaleOrigin };
752
+ //# sourceMappingURL=sailpoint-angular-sdk-human_account_subtypes.mjs.map