@cdot65/prisma-airs-sdk 0.7.0 → 0.7.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/dist/index.cjs +23 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +978 -208
- package/dist/index.d.ts +978 -208
- package/dist/index.js +23 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -478,7 +478,7 @@ var MAX_NUMBER_OF_BATCH_SCAN_OBJECTS = 5;
|
|
|
478
478
|
var MAX_CONNECTION_POOL_SIZE = 100;
|
|
479
479
|
var MAX_NUMBER_OF_RETRIES = 5;
|
|
480
480
|
var HTTP_FORCE_RETRY_STATUS_CODES = [500, 502, 503, 504];
|
|
481
|
-
var SDK_VERSION = "0.7.
|
|
481
|
+
var SDK_VERSION = "0.7.1";
|
|
482
482
|
var USER_AGENT = `PAN-AIRS/${SDK_VERSION}-typescript-sdk`;
|
|
483
483
|
var DEFAULT_MGMT_ENDPOINT = "https://api.sase.paloaltonetworks.com/aisec";
|
|
484
484
|
var DEFAULT_TOKEN_ENDPOINT = "https://auth.apps.paloaltonetworks.com/oauth2/access_token";
|
|
@@ -2281,8 +2281,7 @@ var RedTeamCategory = {
|
|
|
2281
2281
|
};
|
|
2282
2282
|
var ResponseMode = {
|
|
2283
2283
|
REST: "REST",
|
|
2284
|
-
STREAMING: "STREAMING"
|
|
2285
|
-
WEBSOCKET: "WEBSOCKET"
|
|
2284
|
+
STREAMING: "STREAMING"
|
|
2286
2285
|
};
|
|
2287
2286
|
var RiskRating = {
|
|
2288
2287
|
LOW: "LOW",
|
|
@@ -3009,43 +3008,26 @@ var ErrorLogSchema = import_zod25.z.object({
|
|
|
3009
3008
|
version: import_zod25.z.number().int().optional()
|
|
3010
3009
|
}).passthrough();
|
|
3011
3010
|
var ErrorLogListResponseSchema = import_zod25.z.object({ pagination: RedTeamPaginationSchema, data: import_zod25.z.array(ErrorLogSchema) }).passthrough();
|
|
3012
|
-
var
|
|
3011
|
+
var TargetRequestBaseFields = {
|
|
3013
3012
|
name: import_zod25.z.string(),
|
|
3014
|
-
description: import_zod25.z.
|
|
3015
|
-
target_type: import_zod25.z.
|
|
3016
|
-
connection_type: import_zod25.z.
|
|
3017
|
-
api_endpoint_type: import_zod25.z.
|
|
3018
|
-
response_mode: import_zod25.z.
|
|
3019
|
-
connection_params: import_zod25.z.
|
|
3020
|
-
session_supported: import_zod25.z.boolean().optional(),
|
|
3021
|
-
target_metadata: import_zod25.z.unknown().optional(),
|
|
3022
|
-
target_background: import_zod25.z.unknown().optional(),
|
|
3023
|
-
additional_context: import_zod25.z.unknown().optional(),
|
|
3024
|
-
extra_info: import_zod25.z.unknown().optional(),
|
|
3025
|
-
network_broker_channel_uuid: import_zod25.z.unknown().optional(),
|
|
3026
|
-
auth_type: import_zod25.z.string().nullable().optional(),
|
|
3027
|
-
auth_config: import_zod25.z.unknown().nullable().optional()
|
|
3028
|
-
}).passthrough();
|
|
3029
|
-
var TargetUpdateRequestSchema = import_zod25.z.object({
|
|
3030
|
-
name: import_zod25.z.string(),
|
|
3031
|
-
description: import_zod25.z.unknown().optional(),
|
|
3032
|
-
target_type: import_zod25.z.unknown().optional(),
|
|
3033
|
-
connection_type: import_zod25.z.unknown().optional(),
|
|
3034
|
-
api_endpoint_type: import_zod25.z.unknown().optional(),
|
|
3035
|
-
response_mode: import_zod25.z.unknown().optional(),
|
|
3036
|
-
connection_params: import_zod25.z.unknown().optional(),
|
|
3013
|
+
description: import_zod25.z.string().nullable().optional(),
|
|
3014
|
+
target_type: import_zod25.z.string().nullable().optional(),
|
|
3015
|
+
connection_type: import_zod25.z.string().nullable().optional(),
|
|
3016
|
+
api_endpoint_type: import_zod25.z.string().nullable().optional(),
|
|
3017
|
+
response_mode: import_zod25.z.string().nullable().optional(),
|
|
3018
|
+
connection_params: import_zod25.z.union([RestConnectionParamsSchema, StreamingConnectionParamsSchema]).nullable().optional(),
|
|
3037
3019
|
session_supported: import_zod25.z.boolean().optional(),
|
|
3038
|
-
target_metadata:
|
|
3039
|
-
target_background:
|
|
3040
|
-
additional_context:
|
|
3041
|
-
extra_info: import_zod25.z.unknown().optional(),
|
|
3042
|
-
network_broker_channel_uuid: import_zod25.z.
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3020
|
+
target_metadata: TargetMetadataSchema.optional(),
|
|
3021
|
+
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3022
|
+
additional_context: TargetAdditionalContextSchema.nullable().optional(),
|
|
3023
|
+
extra_info: import_zod25.z.record(import_zod25.z.unknown()).nullable().optional(),
|
|
3024
|
+
network_broker_channel_uuid: import_zod25.z.string().nullable().optional()
|
|
3025
|
+
};
|
|
3026
|
+
var TargetCreateRequestSchema = import_zod25.z.object(TargetRequestBaseFields).strict();
|
|
3027
|
+
var TargetUpdateRequestSchema = import_zod25.z.object(TargetRequestBaseFields).strict();
|
|
3046
3028
|
var TargetContextUpdateSchema = import_zod25.z.object({
|
|
3047
|
-
target_background:
|
|
3048
|
-
additional_context:
|
|
3029
|
+
target_background: TargetBackgroundSchema.nullable().optional(),
|
|
3030
|
+
additional_context: TargetAdditionalContextSchema.nullable().optional()
|
|
3049
3031
|
}).passthrough();
|
|
3050
3032
|
var TargetResponseSchema = import_zod25.z.object({
|
|
3051
3033
|
uuid: import_zod25.z.string(),
|
|
@@ -3097,24 +3079,10 @@ var TargetListItemSchema = import_zod25.z.object({
|
|
|
3097
3079
|
}).passthrough();
|
|
3098
3080
|
var TargetListSchema = import_zod25.z.object({ pagination: RedTeamPaginationSchema, data: import_zod25.z.array(TargetListItemSchema).optional() }).passthrough();
|
|
3099
3081
|
var TargetProbeRequestSchema = import_zod25.z.object({
|
|
3100
|
-
|
|
3101
|
-
uuid: import_zod25.z.
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
connection_type: import_zod25.z.unknown().optional(),
|
|
3105
|
-
api_endpoint_type: import_zod25.z.unknown().optional(),
|
|
3106
|
-
response_mode: import_zod25.z.unknown().optional(),
|
|
3107
|
-
connection_params: import_zod25.z.unknown().optional(),
|
|
3108
|
-
session_supported: import_zod25.z.boolean().optional(),
|
|
3109
|
-
target_metadata: import_zod25.z.unknown().optional(),
|
|
3110
|
-
target_background: import_zod25.z.unknown().optional(),
|
|
3111
|
-
additional_context: import_zod25.z.unknown().optional(),
|
|
3112
|
-
extra_info: import_zod25.z.unknown().optional(),
|
|
3113
|
-
network_broker_channel_uuid: import_zod25.z.unknown().optional(),
|
|
3114
|
-
probe_fields: import_zod25.z.unknown().optional(),
|
|
3115
|
-
auth_type: import_zod25.z.string().nullable().optional(),
|
|
3116
|
-
auth_config: import_zod25.z.unknown().nullable().optional()
|
|
3117
|
-
}).passthrough();
|
|
3082
|
+
...TargetRequestBaseFields,
|
|
3083
|
+
uuid: import_zod25.z.string().nullable().optional(),
|
|
3084
|
+
probe_fields: import_zod25.z.array(import_zod25.z.string()).nullable().optional()
|
|
3085
|
+
}).strict();
|
|
3118
3086
|
var TargetAuthValidationRequestSchema = import_zod25.z.object({
|
|
3119
3087
|
auth_type: import_zod25.z.string(),
|
|
3120
3088
|
auth_config: import_zod25.z.unknown(),
|