sailpoint-api-client 2.0.7 → 2.0.9
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/dist/index.d.ts +0 -3
- package/dist/index.js +98 -101
- package/dist/index.js.map +1 -1
- package/dist/nerm/common.js +2 -2
- package/dist/nermv2025/common.js +2 -2
- package/index.ts +0 -3
- package/nerm/README.md +2 -2
- package/nerm/common.ts +2 -2
- package/nerm/package.json +1 -1
- package/nermv2025/README.md +2 -2
- package/nermv2025/common.ts +2 -2
- package/nermv2025/package.json +1 -1
- package/package.json +1 -1
- package/dist/prompt_insights/api.d.ts +0 -367
- package/dist/prompt_insights/api.js +0 -349
- package/dist/prompt_insights/api.js.map +0 -1
- package/dist/prompt_insights/base.d.ts +0 -66
- package/dist/prompt_insights/base.js +0 -90
- package/dist/prompt_insights/base.js.map +0 -1
- package/dist/prompt_insights/common.d.ts +0 -65
- package/dist/prompt_insights/common.js +0 -292
- package/dist/prompt_insights/common.js.map +0 -1
- package/dist/prompt_insights/configuration.d.ts +0 -91
- package/dist/prompt_insights/configuration.js +0 -46
- package/dist/prompt_insights/configuration.js.map +0 -1
- package/dist/prompt_insights/index.d.ts +0 -13
- package/dist/prompt_insights/index.js +0 -32
- package/dist/prompt_insights/index.js.map +0 -1
- package/prompt_insights/.openapi-generator/FILES +0 -23
- package/prompt_insights/.openapi-generator/VERSION +0 -1
- package/prompt_insights/.openapi-generator-ignore +0 -23
- package/prompt_insights/.sdk-partition +0 -1
- package/prompt_insights/api.ts +0 -497
- package/prompt_insights/base.ts +0 -86
- package/prompt_insights/common.ts +0 -183
- package/prompt_insights/configuration.ts +0 -110
- package/prompt_insights/docs/Examples/typescript_code_examples_overlay.yaml +0 -31
- package/prompt_insights/docs/Methods/Index.md +0 -30
- package/prompt_insights/docs/Methods/PromptInsightsApi.md +0 -109
- package/prompt_insights/docs/Models/Errormessagedto.md +0 -21
- package/prompt_insights/docs/Models/Errorresponsedto.md +0 -22
- package/prompt_insights/docs/Models/GetPromptInsightsMetricsV1401Response.md +0 -19
- package/prompt_insights/docs/Models/GetPromptInsightsMetricsV1429Response.md +0 -19
- package/prompt_insights/docs/Models/Index.md +0 -19
- package/prompt_insights/docs/Models/Localeorigin.md +0 -21
- package/prompt_insights/docs/Models/Promptinsight.md +0 -27
- package/prompt_insights/docs/Models/Promptinsightsmetrics.md +0 -20
- package/prompt_insights/docs/Models/README.md +0 -46
- package/prompt_insights/git_push.sh +0 -57
- package/prompt_insights/index.ts +0 -18
- package/prompt_insights/package.json +0 -34
- package/prompt_insights/tsconfig.json +0 -21
package/prompt_insights/api.ts
DELETED
|
@@ -1,497 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Identity Security Cloud API - Prompt Insights
|
|
5
|
-
* Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from '../configuration';
|
|
17
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
18
|
-
import globalAxios from 'axios';
|
|
19
|
-
// Some imports not used depending on template conditions
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
|
-
import type { RequestArgs } from './base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @interface Errormessagedto
|
|
30
|
-
*/
|
|
31
|
-
export interface Errormessagedto {
|
|
32
|
-
/**
|
|
33
|
-
* The locale for the message text, a BCP 47 language tag.
|
|
34
|
-
* @type {string}
|
|
35
|
-
* @memberof Errormessagedto
|
|
36
|
-
*/
|
|
37
|
-
'locale'?: string | null;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {Localeorigin}
|
|
41
|
-
* @memberof Errormessagedto
|
|
42
|
-
*/
|
|
43
|
-
'localeOrigin'?: Localeorigin | null;
|
|
44
|
-
/**
|
|
45
|
-
* Actual text of the error message in the indicated locale.
|
|
46
|
-
* @type {string}
|
|
47
|
-
* @memberof Errormessagedto
|
|
48
|
-
*/
|
|
49
|
-
'text'?: string;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* @export
|
|
56
|
-
* @interface Errorresponsedto
|
|
57
|
-
*/
|
|
58
|
-
export interface Errorresponsedto {
|
|
59
|
-
/**
|
|
60
|
-
* Fine-grained error code providing more detail of the error.
|
|
61
|
-
* @type {string}
|
|
62
|
-
* @memberof Errorresponsedto
|
|
63
|
-
*/
|
|
64
|
-
'detailCode'?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Unique tracking id for the error.
|
|
67
|
-
* @type {string}
|
|
68
|
-
* @memberof Errorresponsedto
|
|
69
|
-
*/
|
|
70
|
-
'trackingId'?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Generic localized reason for error
|
|
73
|
-
* @type {Array<Errormessagedto>}
|
|
74
|
-
* @memberof Errorresponsedto
|
|
75
|
-
*/
|
|
76
|
-
'messages'?: Array<Errormessagedto>;
|
|
77
|
-
/**
|
|
78
|
-
* Plain-text descriptive reasons to provide additional detail to the text provided in the messages field
|
|
79
|
-
* @type {Array<Errormessagedto>}
|
|
80
|
-
* @memberof Errorresponsedto
|
|
81
|
-
*/
|
|
82
|
-
'causes'?: Array<Errormessagedto>;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @export
|
|
87
|
-
* @interface GetPromptInsightsMetricsV1401Response
|
|
88
|
-
*/
|
|
89
|
-
export interface GetPromptInsightsMetricsV1401Response {
|
|
90
|
-
/**
|
|
91
|
-
* A message describing the error
|
|
92
|
-
* @type {any}
|
|
93
|
-
* @memberof GetPromptInsightsMetricsV1401Response
|
|
94
|
-
*/
|
|
95
|
-
'error'?: any;
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
*
|
|
99
|
-
* @export
|
|
100
|
-
* @interface GetPromptInsightsMetricsV1429Response
|
|
101
|
-
*/
|
|
102
|
-
export interface GetPromptInsightsMetricsV1429Response {
|
|
103
|
-
/**
|
|
104
|
-
* A message describing the error
|
|
105
|
-
* @type {any}
|
|
106
|
-
* @memberof GetPromptInsightsMetricsV1429Response
|
|
107
|
-
*/
|
|
108
|
-
'message'?: any;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* 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.
|
|
112
|
-
* @export
|
|
113
|
-
* @enum {string}
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
export const Localeorigin = {
|
|
117
|
-
Default: 'DEFAULT',
|
|
118
|
-
Request: 'REQUEST'
|
|
119
|
-
} as const;
|
|
120
|
-
|
|
121
|
-
export type Localeorigin = typeof Localeorigin[keyof typeof Localeorigin];
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* A prompt security insight event.
|
|
126
|
-
* @export
|
|
127
|
-
* @interface Promptinsight
|
|
128
|
-
*/
|
|
129
|
-
export interface Promptinsight {
|
|
130
|
-
/**
|
|
131
|
-
* Event time in UTC.
|
|
132
|
-
* @type {string}
|
|
133
|
-
* @memberof Promptinsight
|
|
134
|
-
*/
|
|
135
|
-
'timestamp'?: string;
|
|
136
|
-
/**
|
|
137
|
-
* User identifier or display name.
|
|
138
|
-
* @type {string}
|
|
139
|
-
* @memberof Promptinsight
|
|
140
|
-
*/
|
|
141
|
-
'user'?: string;
|
|
142
|
-
/**
|
|
143
|
-
* The AI agent that processed the prompt.
|
|
144
|
-
* @type {string}
|
|
145
|
-
* @memberof Promptinsight
|
|
146
|
-
*/
|
|
147
|
-
'agent'?: string;
|
|
148
|
-
/**
|
|
149
|
-
* The policy decision applied to the prompt.
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof Promptinsight
|
|
152
|
-
*/
|
|
153
|
-
'policyDecision'?: PromptinsightPolicyDecisionEnum;
|
|
154
|
-
/**
|
|
155
|
-
* The category of the prompt security finding.
|
|
156
|
-
* @type {string}
|
|
157
|
-
* @memberof Promptinsight
|
|
158
|
-
*/
|
|
159
|
-
'category'?: PromptinsightCategoryEnum;
|
|
160
|
-
/**
|
|
161
|
-
* The severity of the prompt security finding.
|
|
162
|
-
* @type {string}
|
|
163
|
-
* @memberof Promptinsight
|
|
164
|
-
*/
|
|
165
|
-
'severity'?: PromptinsightSeverityEnum;
|
|
166
|
-
/**
|
|
167
|
-
* Human-readable or structured reason for the policy decision.
|
|
168
|
-
* @type {string}
|
|
169
|
-
* @memberof Promptinsight
|
|
170
|
-
*/
|
|
171
|
-
'reason'?: string;
|
|
172
|
-
/**
|
|
173
|
-
* The rule that matched the prompt.
|
|
174
|
-
* @type {string}
|
|
175
|
-
* @memberof Promptinsight
|
|
176
|
-
*/
|
|
177
|
-
'rule'?: string;
|
|
178
|
-
/**
|
|
179
|
-
* The policy that matched the prompt.
|
|
180
|
-
* @type {string}
|
|
181
|
-
* @memberof Promptinsight
|
|
182
|
-
*/
|
|
183
|
-
'policy'?: string;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export const PromptinsightPolicyDecisionEnum = {
|
|
187
|
-
Allowed: 'ALLOWED',
|
|
188
|
-
Redacted: 'REDACTED'
|
|
189
|
-
} as const;
|
|
190
|
-
|
|
191
|
-
export type PromptinsightPolicyDecisionEnum = typeof PromptinsightPolicyDecisionEnum[keyof typeof PromptinsightPolicyDecisionEnum];
|
|
192
|
-
export const PromptinsightCategoryEnum = {
|
|
193
|
-
Anomalies: 'ANOMALIES',
|
|
194
|
-
DataUploads: 'DATA_UPLOADS',
|
|
195
|
-
McpToolCalls: 'MCP_TOOL_CALLS'
|
|
196
|
-
} as const;
|
|
197
|
-
|
|
198
|
-
export type PromptinsightCategoryEnum = typeof PromptinsightCategoryEnum[keyof typeof PromptinsightCategoryEnum];
|
|
199
|
-
export const PromptinsightSeverityEnum = {
|
|
200
|
-
Low: 'LOW',
|
|
201
|
-
Medium: 'MEDIUM',
|
|
202
|
-
High: 'HIGH',
|
|
203
|
-
Critical: 'CRITICAL'
|
|
204
|
-
} as const;
|
|
205
|
-
|
|
206
|
-
export type PromptinsightSeverityEnum = typeof PromptinsightSeverityEnum[keyof typeof PromptinsightSeverityEnum];
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Aggregate prompt insights metrics for the requested time window.
|
|
210
|
-
* @export
|
|
211
|
-
* @interface Promptinsightsmetrics
|
|
212
|
-
*/
|
|
213
|
-
export interface Promptinsightsmetrics {
|
|
214
|
-
/**
|
|
215
|
-
* Count of prompts scanned in the interval.
|
|
216
|
-
* @type {number}
|
|
217
|
-
* @memberof Promptinsightsmetrics
|
|
218
|
-
*/
|
|
219
|
-
'promptsScanned'?: number;
|
|
220
|
-
/**
|
|
221
|
-
* Count of prompts redacted in the interval.
|
|
222
|
-
* @type {number}
|
|
223
|
-
* @memberof Promptinsightsmetrics
|
|
224
|
-
*/
|
|
225
|
-
'promptsRedacted'?: number;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* PromptInsightsApi - axios parameter creator
|
|
230
|
-
* @export
|
|
231
|
-
*/
|
|
232
|
-
export const PromptInsightsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
233
|
-
return {
|
|
234
|
-
/**
|
|
235
|
-
* Returns aggregate prompt insights metrics for the requested time window.
|
|
236
|
-
* @summary Get prompt insights metrics
|
|
237
|
-
* @param {GetPromptInsightsMetricsV1IntervalEnum} interval Relative lookback window for metrics aggregation.
|
|
238
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
239
|
-
* @throws {RequiredError}
|
|
240
|
-
*/
|
|
241
|
-
getPromptInsightsMetricsV1: async (interval: GetPromptInsightsMetricsV1IntervalEnum, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
242
|
-
// verify required parameter 'interval' is not null or undefined
|
|
243
|
-
assertParamExists('getPromptInsightsMetricsV1', 'interval', interval)
|
|
244
|
-
const localVarPath = `/prompt-insights/v1/metrics`;
|
|
245
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
246
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
247
|
-
let baseOptions;
|
|
248
|
-
if (configuration) {
|
|
249
|
-
baseOptions = configuration.baseOptions;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};
|
|
253
|
-
const localVarHeaderParameter = {} as any;
|
|
254
|
-
const localVarQueryParameter = {} as any;
|
|
255
|
-
|
|
256
|
-
if (interval !== undefined) {
|
|
257
|
-
localVarQueryParameter['interval'] = interval;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
263
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
264
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
265
|
-
|
|
266
|
-
return {
|
|
267
|
-
url: toPathString(localVarUrlObj),
|
|
268
|
-
axiosOptions: localVarRequestOptions,
|
|
269
|
-
};
|
|
270
|
-
},
|
|
271
|
-
/**
|
|
272
|
-
* Returns a paginated list of prompt insights within a lookback window, with optional structured filters. Results are sorted by timestamp descending (most recent first).
|
|
273
|
-
* @summary List prompt insights
|
|
274
|
-
* @param {ListPromptInsightsV1IntervalEnum} interval Relative lookback window for prompt insights.
|
|
275
|
-
* @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
|
|
276
|
-
* @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
|
|
277
|
-
* @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **policyDecision**: *eq* **category**: *eq* **severity**: *eq* **user**: *eq, sw, co* **agent**: *eq, sw, co* **reason**: *eq, sw, co* **rule**: *eq, sw, co* **policy**: *eq, sw, co*
|
|
278
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
279
|
-
* @throws {RequiredError}
|
|
280
|
-
*/
|
|
281
|
-
listPromptInsightsV1: async (interval: ListPromptInsightsV1IntervalEnum, limit?: number, offset?: number, filters?: string, axiosOptions: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
282
|
-
// verify required parameter 'interval' is not null or undefined
|
|
283
|
-
assertParamExists('listPromptInsightsV1', 'interval', interval)
|
|
284
|
-
const localVarPath = `/prompt-insights/v1`;
|
|
285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
286
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
287
|
-
let baseOptions;
|
|
288
|
-
if (configuration) {
|
|
289
|
-
baseOptions = configuration.baseOptions;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...axiosOptions};
|
|
293
|
-
const localVarHeaderParameter = {} as any;
|
|
294
|
-
const localVarQueryParameter = {} as any;
|
|
295
|
-
|
|
296
|
-
if (interval !== undefined) {
|
|
297
|
-
localVarQueryParameter['interval'] = interval;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
if (limit !== undefined) {
|
|
301
|
-
localVarQueryParameter['limit'] = limit;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
if (offset !== undefined) {
|
|
305
|
-
localVarQueryParameter['offset'] = offset;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
if (filters !== undefined) {
|
|
309
|
-
localVarQueryParameter['filters'] = filters;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
315
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...axiosOptions.headers};
|
|
317
|
-
|
|
318
|
-
return {
|
|
319
|
-
url: toPathString(localVarUrlObj),
|
|
320
|
-
axiosOptions: localVarRequestOptions,
|
|
321
|
-
};
|
|
322
|
-
},
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* PromptInsightsApi - functional programming interface
|
|
328
|
-
* @export
|
|
329
|
-
*/
|
|
330
|
-
export const PromptInsightsApiFp = function(configuration?: Configuration) {
|
|
331
|
-
const localVarAxiosParamCreator = PromptInsightsApiAxiosParamCreator(configuration)
|
|
332
|
-
return {
|
|
333
|
-
/**
|
|
334
|
-
* Returns aggregate prompt insights metrics for the requested time window.
|
|
335
|
-
* @summary Get prompt insights metrics
|
|
336
|
-
* @param {GetPromptInsightsMetricsV1IntervalEnum} interval Relative lookback window for metrics aggregation.
|
|
337
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
338
|
-
* @throws {RequiredError}
|
|
339
|
-
*/
|
|
340
|
-
async getPromptInsightsMetricsV1(interval: GetPromptInsightsMetricsV1IntervalEnum, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Promptinsightsmetrics>> {
|
|
341
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPromptInsightsMetricsV1(interval, axiosOptions);
|
|
342
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
343
|
-
const localVarOperationServerBasePath = operationServerMap['PromptInsightsApi.getPromptInsightsMetricsV1']?.[localVarOperationServerIndex]?.url;
|
|
344
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
345
|
-
},
|
|
346
|
-
/**
|
|
347
|
-
* Returns a paginated list of prompt insights within a lookback window, with optional structured filters. Results are sorted by timestamp descending (most recent first).
|
|
348
|
-
* @summary List prompt insights
|
|
349
|
-
* @param {ListPromptInsightsV1IntervalEnum} interval Relative lookback window for prompt insights.
|
|
350
|
-
* @param {number} [limit] Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
|
|
351
|
-
* @param {number} [offset] Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
|
|
352
|
-
* @param {string} [filters] Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **policyDecision**: *eq* **category**: *eq* **severity**: *eq* **user**: *eq, sw, co* **agent**: *eq, sw, co* **reason**: *eq, sw, co* **rule**: *eq, sw, co* **policy**: *eq, sw, co*
|
|
353
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
354
|
-
* @throws {RequiredError}
|
|
355
|
-
*/
|
|
356
|
-
async listPromptInsightsV1(interval: ListPromptInsightsV1IntervalEnum, limit?: number, offset?: number, filters?: string, axiosOptions?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Promptinsight>>> {
|
|
357
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPromptInsightsV1(interval, limit, offset, filters, axiosOptions);
|
|
358
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
359
|
-
const localVarOperationServerBasePath = operationServerMap['PromptInsightsApi.listPromptInsightsV1']?.[localVarOperationServerIndex]?.url;
|
|
360
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
361
|
-
},
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
/**
|
|
366
|
-
* PromptInsightsApi - factory interface
|
|
367
|
-
* @export
|
|
368
|
-
*/
|
|
369
|
-
export const PromptInsightsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
370
|
-
const localVarFp = PromptInsightsApiFp(configuration)
|
|
371
|
-
return {
|
|
372
|
-
/**
|
|
373
|
-
* Returns aggregate prompt insights metrics for the requested time window.
|
|
374
|
-
* @summary Get prompt insights metrics
|
|
375
|
-
* @param {PromptInsightsApiGetPromptInsightsMetricsV1Request} requestParameters Request parameters.
|
|
376
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
377
|
-
* @throws {RequiredError}
|
|
378
|
-
*/
|
|
379
|
-
getPromptInsightsMetricsV1(requestParameters: PromptInsightsApiGetPromptInsightsMetricsV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<Promptinsightsmetrics> {
|
|
380
|
-
return localVarFp.getPromptInsightsMetricsV1(requestParameters.interval, axiosOptions).then((request) => request(axios, basePath));
|
|
381
|
-
},
|
|
382
|
-
/**
|
|
383
|
-
* Returns a paginated list of prompt insights within a lookback window, with optional structured filters. Results are sorted by timestamp descending (most recent first).
|
|
384
|
-
* @summary List prompt insights
|
|
385
|
-
* @param {PromptInsightsApiListPromptInsightsV1Request} requestParameters Request parameters.
|
|
386
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
387
|
-
* @throws {RequiredError}
|
|
388
|
-
*/
|
|
389
|
-
listPromptInsightsV1(requestParameters: PromptInsightsApiListPromptInsightsV1Request, axiosOptions?: RawAxiosRequestConfig): AxiosPromise<Array<Promptinsight>> {
|
|
390
|
-
return localVarFp.listPromptInsightsV1(requestParameters.interval, requestParameters.limit, requestParameters.offset, requestParameters.filters, axiosOptions).then((request) => request(axios, basePath));
|
|
391
|
-
},
|
|
392
|
-
};
|
|
393
|
-
};
|
|
394
|
-
|
|
395
|
-
/**
|
|
396
|
-
* Request parameters for getPromptInsightsMetricsV1 operation in PromptInsightsApi.
|
|
397
|
-
* @export
|
|
398
|
-
* @interface PromptInsightsApiGetPromptInsightsMetricsV1Request
|
|
399
|
-
*/
|
|
400
|
-
export interface PromptInsightsApiGetPromptInsightsMetricsV1Request {
|
|
401
|
-
/**
|
|
402
|
-
* Relative lookback window for metrics aggregation.
|
|
403
|
-
* @type {'-1h' | '-1d' | '-7d' | '-30d'}
|
|
404
|
-
* @memberof PromptInsightsApiGetPromptInsightsMetricsV1
|
|
405
|
-
*/
|
|
406
|
-
readonly interval: GetPromptInsightsMetricsV1IntervalEnum
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Request parameters for listPromptInsightsV1 operation in PromptInsightsApi.
|
|
411
|
-
* @export
|
|
412
|
-
* @interface PromptInsightsApiListPromptInsightsV1Request
|
|
413
|
-
*/
|
|
414
|
-
export interface PromptInsightsApiListPromptInsightsV1Request {
|
|
415
|
-
/**
|
|
416
|
-
* Relative lookback window for prompt insights.
|
|
417
|
-
* @type {'-1h' | '-1d' | '-7d' | '-30d'}
|
|
418
|
-
* @memberof PromptInsightsApiListPromptInsightsV1
|
|
419
|
-
*/
|
|
420
|
-
readonly interval: ListPromptInsightsV1IntervalEnum
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
|
|
424
|
-
* @type {number}
|
|
425
|
-
* @memberof PromptInsightsApiListPromptInsightsV1
|
|
426
|
-
*/
|
|
427
|
-
readonly limit?: number
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information.
|
|
431
|
-
* @type {number}
|
|
432
|
-
* @memberof PromptInsightsApiListPromptInsightsV1
|
|
433
|
-
*/
|
|
434
|
-
readonly offset?: number
|
|
435
|
-
|
|
436
|
-
/**
|
|
437
|
-
* Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **policyDecision**: *eq* **category**: *eq* **severity**: *eq* **user**: *eq, sw, co* **agent**: *eq, sw, co* **reason**: *eq, sw, co* **rule**: *eq, sw, co* **policy**: *eq, sw, co*
|
|
438
|
-
* @type {string}
|
|
439
|
-
* @memberof PromptInsightsApiListPromptInsightsV1
|
|
440
|
-
*/
|
|
441
|
-
readonly filters?: string
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
/**
|
|
445
|
-
* PromptInsightsApi - object-oriented interface
|
|
446
|
-
* @export
|
|
447
|
-
* @class PromptInsightsApi
|
|
448
|
-
* @extends {BaseAPI}
|
|
449
|
-
*/
|
|
450
|
-
export class PromptInsightsApi extends BaseAPI {
|
|
451
|
-
/**
|
|
452
|
-
* Returns aggregate prompt insights metrics for the requested time window.
|
|
453
|
-
* @summary Get prompt insights metrics
|
|
454
|
-
* @param {PromptInsightsApiGetPromptInsightsMetricsV1Request} requestParameters Request parameters.
|
|
455
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
456
|
-
* @throws {RequiredError}
|
|
457
|
-
* @memberof PromptInsightsApi
|
|
458
|
-
*/
|
|
459
|
-
public getPromptInsightsMetricsV1(requestParameters: PromptInsightsApiGetPromptInsightsMetricsV1Request, axiosOptions?: RawAxiosRequestConfig) {
|
|
460
|
-
return PromptInsightsApiFp(this.configuration).getPromptInsightsMetricsV1(requestParameters.interval, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
/**
|
|
464
|
-
* Returns a paginated list of prompt insights within a lookback window, with optional structured filters. Results are sorted by timestamp descending (most recent first).
|
|
465
|
-
* @summary List prompt insights
|
|
466
|
-
* @param {PromptInsightsApiListPromptInsightsV1Request} requestParameters Request parameters.
|
|
467
|
-
* @param {*} [axiosOptions] Override http request option.
|
|
468
|
-
* @throws {RequiredError}
|
|
469
|
-
* @memberof PromptInsightsApi
|
|
470
|
-
*/
|
|
471
|
-
public listPromptInsightsV1(requestParameters: PromptInsightsApiListPromptInsightsV1Request, axiosOptions?: RawAxiosRequestConfig) {
|
|
472
|
-
return PromptInsightsApiFp(this.configuration).listPromptInsightsV1(requestParameters.interval, requestParameters.limit, requestParameters.offset, requestParameters.filters, axiosOptions).then((request) => request(this.axios, this.basePath));
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
/**
|
|
477
|
-
* @export
|
|
478
|
-
*/
|
|
479
|
-
export const GetPromptInsightsMetricsV1IntervalEnum = {
|
|
480
|
-
_1h: '-1h',
|
|
481
|
-
_1d: '-1d',
|
|
482
|
-
_7d: '-7d',
|
|
483
|
-
_30d: '-30d'
|
|
484
|
-
} as const;
|
|
485
|
-
export type GetPromptInsightsMetricsV1IntervalEnum = typeof GetPromptInsightsMetricsV1IntervalEnum[keyof typeof GetPromptInsightsMetricsV1IntervalEnum];
|
|
486
|
-
/**
|
|
487
|
-
* @export
|
|
488
|
-
*/
|
|
489
|
-
export const ListPromptInsightsV1IntervalEnum = {
|
|
490
|
-
_1h: '-1h',
|
|
491
|
-
_1d: '-1d',
|
|
492
|
-
_7d: '-7d',
|
|
493
|
-
_30d: '-30d'
|
|
494
|
-
} as const;
|
|
495
|
-
export type ListPromptInsightsV1IntervalEnum = typeof ListPromptInsightsV1IntervalEnum[keyof typeof ListPromptInsightsV1IntervalEnum];
|
|
496
|
-
|
|
497
|
-
|
package/prompt_insights/base.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Identity Security Cloud API - Prompt Insights
|
|
5
|
-
* Use these APIs to interact with the Identity Security Cloud platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: v1
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
* https://openapi-generator.tech
|
|
12
|
-
* Do not edit the class manually.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
import type { Configuration } from '../configuration';
|
|
17
|
-
// Some imports not used depending on template conditions
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
20
|
-
import globalAxios from 'axios';
|
|
21
|
-
|
|
22
|
-
export const BASE_PATH = "https://sailpoint.api.identitynow.com".replace(/\/+$/, "");
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @export
|
|
27
|
-
*/
|
|
28
|
-
export const COLLECTION_FORMATS = {
|
|
29
|
-
csv: ",",
|
|
30
|
-
ssv: " ",
|
|
31
|
-
tsv: "\t",
|
|
32
|
-
pipes: "|",
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @export
|
|
38
|
-
* @interface RequestArgs
|
|
39
|
-
*/
|
|
40
|
-
export interface RequestArgs {
|
|
41
|
-
url: string;
|
|
42
|
-
axiosOptions: RawAxiosRequestConfig;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @export
|
|
48
|
-
* @class BaseAPI
|
|
49
|
-
*/
|
|
50
|
-
export class BaseAPI {
|
|
51
|
-
protected configuration: Configuration | undefined;
|
|
52
|
-
|
|
53
|
-
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = configuration?.axiosInstance ?? globalAxios) {
|
|
54
|
-
if (configuration) {
|
|
55
|
-
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath || this.basePath;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @export
|
|
64
|
-
* @class RequiredError
|
|
65
|
-
* @extends {Error}
|
|
66
|
-
*/
|
|
67
|
-
export class RequiredError extends Error {
|
|
68
|
-
constructor(public field: string, msg?: string) {
|
|
69
|
-
super(msg);
|
|
70
|
-
this.name = "RequiredError"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface ServerMap {
|
|
75
|
-
[key: string]: {
|
|
76
|
-
url: string,
|
|
77
|
-
description: string,
|
|
78
|
-
}[];
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export const operationServerMap: ServerMap = {
|
|
86
|
-
}
|