@harnessio/react-har-service-client 0.51.0 → 0.52.0

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 (74) hide show
  1. package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.d.ts +21 -0
  2. package/dist/har-service/src/services/hooks/useCreateFirewallExceptionV3Mutation.js +14 -0
  3. package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.d.ts +20 -0
  4. package/dist/har-service/src/services/hooks/useDeleteFirewallExceptionV3Mutation.js +14 -0
  5. package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.d.ts +22 -0
  6. package/dist/har-service/src/services/hooks/useGetSystemInfoV3Query.js +18 -0
  7. package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.d.ts +30 -0
  8. package/dist/har-service/src/services/hooks/useListFirewallExceptionVersionsV3Query.js +14 -0
  9. package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.d.ts +38 -0
  10. package/dist/har-service/src/services/hooks/useListFirewallExceptionsV3Query.js +14 -0
  11. package/dist/har-service/src/services/hooks/useListVersionsV3Query.d.ts +1 -1
  12. package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.d.ts +21 -0
  13. package/dist/har-service/src/services/hooks/useRebuildVersionMetadataV3Mutation.js +14 -0
  14. package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.d.ts +24 -0
  15. package/dist/har-service/src/services/hooks/useUpdateFirewallExceptionV3Mutation.js +14 -0
  16. package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.d.ts +24 -0
  17. package/dist/har-service/src/services/hooks/useUpdateStatusFirewallExceptionV3Mutation.js +14 -0
  18. package/dist/har-service/src/services/index.d.ts +35 -12
  19. package/dist/har-service/src/services/index.js +8 -6
  20. package/dist/har-service/src/services/requestBodies/FirewallExceptionApprovalRequestV3RequestBody.d.ts +2 -0
  21. package/dist/har-service/src/services/requestBodies/FirewallExceptionApprovalRequestV3RequestBody.js +1 -0
  22. package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.d.ts +2 -0
  23. package/dist/har-service/src/services/requestBodies/FirewallExceptionCreateRequestV3RequestBody.js +1 -0
  24. package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.d.ts +2 -0
  25. package/dist/har-service/src/services/requestBodies/FirewallExceptionUpdateRequestV3RequestBody.js +1 -0
  26. package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.d.ts +2 -0
  27. package/dist/har-service/src/services/responses/FirewallExceptionApprovedV3Response.js +1 -0
  28. package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.d.ts +2 -0
  29. package/dist/har-service/src/services/responses/FirewallExceptionCreatedV3Response.js +1 -0
  30. package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.d.ts +2 -0
  31. package/dist/har-service/src/services/responses/FirewallExceptionUpdatedV3Response.js +1 -0
  32. package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.d.ts +2 -0
  33. package/dist/har-service/src/services/responses/ListFirewallExceptionResponseV3Response.js +1 -0
  34. package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.d.ts +7 -0
  35. package/dist/har-service/src/services/responses/ListFirewallExceptionVersionsResponseV3Response.js +1 -0
  36. package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.d.ts +1 -0
  37. package/dist/har-service/src/services/responses/RebuildVersionMetadataAcceptedV3Response.js +1 -0
  38. package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.d.ts +4 -0
  39. package/dist/har-service/src/services/responses/SystemInfoResponseV3Response.js +1 -0
  40. package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.d.ts +11 -0
  41. package/dist/har-service/src/services/schemas/FirewallExceptionApprovalRequestV3.js +1 -0
  42. package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.d.ts +31 -0
  43. package/dist/har-service/src/services/schemas/FirewallExceptionCreateRequestV3.js +4 -0
  44. package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.d.ts +35 -0
  45. package/dist/har-service/src/services/schemas/FirewallExceptionMetaV3.js +4 -0
  46. package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.d.ts +94 -0
  47. package/dist/har-service/src/services/schemas/FirewallExceptionResponseV3.js +1 -0
  48. package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.d.ts +4 -0
  49. package/dist/har-service/src/services/schemas/FirewallExceptionStatusV3.js +4 -0
  50. package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.d.ts +22 -0
  51. package/dist/har-service/src/services/schemas/FirewallExceptionUpdateRequestV3.js +4 -0
  52. package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.d.ts +7 -0
  53. package/dist/har-service/src/services/schemas/ListFirewallExceptionsResponseBodyV3.js +1 -0
  54. package/dist/har-service/src/services/schemas/PackageMetadata.d.ts +0 -4
  55. package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.d.ts +9 -0
  56. package/dist/har-service/src/services/schemas/RebuildVersionMetadataRequestV3.js +4 -0
  57. package/dist/har-service/src/services/schemas/RegistryArtifactMetadata.d.ts +0 -4
  58. package/dist/har-service/src/services/schemas/RegistryMetadata.d.ts +0 -4
  59. package/dist/har-service/src/services/schemas/SystemInfoV3.d.ts +15 -0
  60. package/dist/har-service/src/services/schemas/SystemInfoV3.js +4 -0
  61. package/dist/har-service/src/services/schemas/VersionMetadata.d.ts +0 -4
  62. package/package.json +1 -1
  63. package/dist/har-service/src/services/hooks/useDeletePackageMutation.d.ts +0 -31
  64. package/dist/har-service/src/services/hooks/useDeletePackageMutation.js +0 -14
  65. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.d.ts +0 -31
  66. package/dist/har-service/src/services/hooks/useDeleteRegistryV2Mutation.js +0 -14
  67. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.d.ts +0 -31
  68. package/dist/har-service/src/services/hooks/useDeleteVersionMutation.js +0 -14
  69. package/dist/har-service/src/services/hooks/useRestorePackageMutation.d.ts +0 -30
  70. package/dist/har-service/src/services/hooks/useRestorePackageMutation.js +0 -14
  71. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.d.ts +0 -30
  72. package/dist/har-service/src/services/hooks/useRestoreRegistryMutation.js +0 -14
  73. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.d.ts +0 -30
  74. package/dist/har-service/src/services/hooks/useRestoreVersionMutation.js +0 -14
@@ -5,6 +5,7 @@ export { copyResourcesV3, useCopyResourcesV3Mutation } from './hooks/useCopyReso
5
5
  export { createBulkDownloadRequest, useCreateBulkDownloadRequestMutation, } from './hooks/useCreateBulkDownloadRequestMutation';
6
6
  export { createBulkDownloadRequestV1, useCreateBulkDownloadRequestV1Query, } from './hooks/useCreateBulkDownloadRequestV1Query';
7
7
  export { createBulkDownloadRequestV3, useCreateBulkDownloadRequestV3Mutation, } from './hooks/useCreateBulkDownloadRequestV3Mutation';
8
+ export { createFirewallExceptionV3, useCreateFirewallExceptionV3Mutation, } from './hooks/useCreateFirewallExceptionV3Mutation';
8
9
  export { createRegistry, useCreateRegistryMutation } from './hooks/useCreateRegistryMutation';
9
10
  export { createReplicationRule, useCreateReplicationRuleMutation, } from './hooks/useCreateReplicationRuleMutation';
10
11
  export { createWebhook, useCreateWebhookMutation } from './hooks/useCreateWebhookMutation';
@@ -12,18 +13,16 @@ export { defineSpaceLabel, useDefineSpaceLabelMutation } from './hooks/useDefine
12
13
  export { defineSpaceLabelValue, useDefineSpaceLabelValueMutation, } from './hooks/useDefineSpaceLabelValueMutation';
13
14
  export { deleteArtifact, useDeleteArtifactMutation } from './hooks/useDeleteArtifactMutation';
14
15
  export { deleteArtifactVersion, useDeleteArtifactVersionMutation, } from './hooks/useDeleteArtifactVersionMutation';
16
+ export { deleteFirewallExceptionV3, useDeleteFirewallExceptionV3Mutation, } from './hooks/useDeleteFirewallExceptionV3Mutation';
15
17
  export { deleteMetadata, useDeleteMetadataMutation } from './hooks/useDeleteMetadataMutation';
16
18
  export { deleteMetadataV3, useDeleteMetadataV3Mutation } from './hooks/useDeleteMetadataV3Mutation';
17
- export { deletePackage, useDeletePackageMutation } from './hooks/useDeletePackageMutation';
18
19
  export { deletePackageV3, useDeletePackageV3Mutation } from './hooks/useDeletePackageV3Mutation';
19
20
  export { deleteQuarantineFilePath, useDeleteQuarantineFilePathMutation, } from './hooks/useDeleteQuarantineFilePathMutation';
20
21
  export { deleteRegistry, useDeleteRegistryMutation } from './hooks/useDeleteRegistryMutation';
21
- export { deleteRegistryV2, useDeleteRegistryV2Mutation } from './hooks/useDeleteRegistryV2Mutation';
22
22
  export { deleteRegistryV3, useDeleteRegistryV3Mutation } from './hooks/useDeleteRegistryV3Mutation';
23
23
  export { deleteReplicationRule, useDeleteReplicationRuleMutation, } from './hooks/useDeleteReplicationRuleMutation';
24
24
  export { deleteSpaceLabel, useDeleteSpaceLabelMutation } from './hooks/useDeleteSpaceLabelMutation';
25
25
  export { deleteSpaceLabelValue, useDeleteSpaceLabelValueMutation, } from './hooks/useDeleteSpaceLabelValueMutation';
26
- export { deleteVersion, useDeleteVersionMutation } from './hooks/useDeleteVersionMutation';
27
26
  export { deleteVersionV3, useDeleteVersionV3Mutation } from './hooks/useDeleteVersionV3Mutation';
28
27
  export { deleteWebhook, useDeleteWebhookMutation } from './hooks/useDeleteWebhookMutation';
29
28
  export { evaluateArtifactScanV3, useEvaluateArtifactScanV3Mutation, } from './hooks/useEvaluateArtifactScanV3Mutation';
@@ -69,12 +68,15 @@ export { getRegistryMetadataV3, useGetRegistryMetadataV3Query, } from './hooks/u
69
68
  export { getRegistry, useGetRegistryQuery } from './hooks/useGetRegistryQuery';
70
69
  export { getReplicationRule, useGetReplicationRuleQuery } from './hooks/useGetReplicationRuleQuery';
71
70
  export { getStorageDetails, useGetStorageDetailsQuery } from './hooks/useGetStorageDetailsQuery';
71
+ export { getSystemInfoV3, useGetSystemInfoV3Query } from './hooks/useGetSystemInfoV3Query';
72
72
  export { getVersionMetadataV3, useGetVersionMetadataV3Query, } from './hooks/useGetVersionMetadataV3Query';
73
73
  export { getWebhookExecution, useGetWebhookExecutionQuery, } from './hooks/useGetWebhookExecutionQuery';
74
74
  export { getWebhook, useGetWebhookQuery } from './hooks/useGetWebhookQuery';
75
75
  export { initiateBulkScanEvaluationV3, useInitiateBulkScanEvaluationV3Mutation, } from './hooks/useInitiateBulkScanEvaluationV3Mutation';
76
76
  export { listArtifactLabels, useListArtifactLabelsQuery } from './hooks/useListArtifactLabelsQuery';
77
77
  export { listFilesV3, useListFilesV3Query } from './hooks/useListFilesV3Query';
78
+ export { listFirewallExceptionVersionsV3, useListFirewallExceptionVersionsV3Query, } from './hooks/useListFirewallExceptionVersionsV3Query';
79
+ export { listFirewallExceptionsV3, useListFirewallExceptionsV3Query, } from './hooks/useListFirewallExceptionsV3Query';
78
80
  export { listMigrationImages, useListMigrationImagesQuery, } from './hooks/useListMigrationImagesQuery';
79
81
  export { listPackages, useListPackagesQuery } from './hooks/useListPackagesQuery';
80
82
  export { listPackagesV3, useListPackagesV3Query } from './hooks/useListPackagesV3Query';
@@ -90,12 +92,10 @@ export { listWebhooks, useListWebhooksQuery } from './hooks/useListWebhooksQuery
90
92
  export { modifyRegistry, useModifyRegistryMutation } from './hooks/useModifyRegistryMutation';
91
93
  export { quarantineFilePath, useQuarantineFilePathMutation, } from './hooks/useQuarantineFilePathMutation';
92
94
  export { reTriggerWebhookExecution, useReTriggerWebhookExecutionQuery, } from './hooks/useReTriggerWebhookExecutionQuery';
95
+ export { rebuildVersionMetadataV3, useRebuildVersionMetadataV3Mutation, } from './hooks/useRebuildVersionMetadataV3Mutation';
93
96
  export { redirectHarnessArtifact, useRedirectHarnessArtifactQuery, } from './hooks/useRedirectHarnessArtifactQuery';
94
- export { restorePackage, useRestorePackageMutation } from './hooks/useRestorePackageMutation';
95
97
  export { restorePackageV3, useRestorePackageV3Mutation } from './hooks/useRestorePackageV3Mutation';
96
- export { restoreRegistry, useRestoreRegistryMutation } from './hooks/useRestoreRegistryMutation';
97
98
  export { restoreRegistryV3, useRestoreRegistryV3Mutation, } from './hooks/useRestoreRegistryV3Mutation';
98
- export { restoreVersion, useRestoreVersionMutation } from './hooks/useRestoreVersionMutation';
99
99
  export { restoreVersionV3, useRestoreVersionV3Mutation } from './hooks/useRestoreVersionV3Mutation';
100
100
  export { saveFileMetadataV3, useSaveFileMetadataV3Mutation, } from './hooks/useSaveFileMetadataV3Mutation';
101
101
  export { saveMetadata, useSaveMetadataMutation } from './hooks/useSaveMetadataMutation';
@@ -107,10 +107,12 @@ export { searchFiles, useSearchFilesQuery } from './hooks/useSearchFilesQuery';
107
107
  export { startMigration, useStartMigrationMutation } from './hooks/useStartMigrationMutation';
108
108
  export { stopMigration, useStopMigrationMutation } from './hooks/useStopMigrationMutation';
109
109
  export { updateArtifactLabels, useUpdateArtifactLabelsMutation, } from './hooks/useUpdateArtifactLabelsMutation';
110
+ export { updateFirewallExceptionV3, useUpdateFirewallExceptionV3Mutation, } from './hooks/useUpdateFirewallExceptionV3Mutation';
110
111
  export { updateMetadata, useUpdateMetadataMutation } from './hooks/useUpdateMetadataMutation';
111
112
  export { updateReplicationRule, useUpdateReplicationRuleMutation, } from './hooks/useUpdateReplicationRuleMutation';
112
113
  export { updateSpaceLabel, useUpdateSpaceLabelMutation } from './hooks/useUpdateSpaceLabelMutation';
113
114
  export { updateSpaceLabelValue, useUpdateSpaceLabelValueMutation, } from './hooks/useUpdateSpaceLabelValueMutation';
115
+ export { updateStatusFirewallExceptionV3, useUpdateStatusFirewallExceptionV3Mutation, } from './hooks/useUpdateStatusFirewallExceptionV3Mutation';
114
116
  export { updateWebhook, useUpdateWebhookMutation } from './hooks/useUpdateWebhookMutation';
115
117
  export { upsertFileMetadataV3, useUpsertFileMetadataV3Mutation, } from './hooks/useUpsertFileMetadataV3Mutation';
116
118
  export { upsertPackageMetadataV3, useUpsertPackageMetadataV3Mutation, } from './hooks/useUpsertPackageMetadataV3Mutation';
@@ -0,0 +1,2 @@
1
+ import type { FirewallExceptionApprovalRequestV3 } from '../schemas/FirewallExceptionApprovalRequestV3';
2
+ export type FirewallExceptionApprovalRequestV3RequestBody = FirewallExceptionApprovalRequestV3;
@@ -0,0 +1,2 @@
1
+ import type { FirewallExceptionCreateRequestV3 } from '../schemas/FirewallExceptionCreateRequestV3';
2
+ export type FirewallExceptionCreateRequestV3RequestBody = FirewallExceptionCreateRequestV3;
@@ -0,0 +1,2 @@
1
+ import type { FirewallExceptionUpdateRequestV3 } from '../schemas/FirewallExceptionUpdateRequestV3';
2
+ export type FirewallExceptionUpdateRequestV3RequestBody = FirewallExceptionUpdateRequestV3;
@@ -0,0 +1,2 @@
1
+ import type { FirewallExceptionResponseV3 } from '../schemas/FirewallExceptionResponseV3';
2
+ export type FirewallExceptionApprovedV3Response = FirewallExceptionResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { FirewallExceptionResponseV3 } from '../schemas/FirewallExceptionResponseV3';
2
+ export type FirewallExceptionCreatedV3Response = FirewallExceptionResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { FirewallExceptionResponseV3 } from '../schemas/FirewallExceptionResponseV3';
2
+ export type FirewallExceptionUpdatedV3Response = FirewallExceptionResponseV3;
@@ -0,0 +1,2 @@
1
+ import type { ListFirewallExceptionsResponseBodyV3 } from '../schemas/ListFirewallExceptionsResponseBodyV3';
2
+ export type ListFirewallExceptionResponseV3Response = ListFirewallExceptionsResponseBodyV3;
@@ -0,0 +1,7 @@
1
+ import type { PageInfoV3 } from '../schemas/PageInfoV3';
2
+ export interface ListFirewallExceptionVersionsResponseV3Response extends PageInfoV3 {
3
+ /**
4
+ * A list of versions
5
+ */
6
+ items: string[];
7
+ }
@@ -0,0 +1 @@
1
+ export type RebuildVersionMetadataAcceptedV3Response = unknown;
@@ -0,0 +1,4 @@
1
+ import type { SystemInfoV3 } from '../schemas/SystemInfoV3';
2
+ export interface SystemInfoResponseV3Response {
3
+ data: SystemInfoV3;
4
+ }
@@ -0,0 +1,11 @@
1
+ import type { FirewallExceptionStatusV3 } from '../schemas/FirewallExceptionStatusV3';
2
+ /**
3
+ * Request to approve or reject a firewall exception
4
+ */
5
+ export interface FirewallExceptionApprovalRequestV3 {
6
+ /**
7
+ * Note from approver explaining the decision
8
+ */
9
+ notes?: string | null;
10
+ status: FirewallExceptionStatusV3;
11
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Request to create a firewall exception
3
+ */
4
+ export interface FirewallExceptionCreateRequestV3 {
5
+ /**
6
+ * Business justification for the exception
7
+ */
8
+ businessJustification: string;
9
+ /**
10
+ * Number of days after approval when the exception expires. Null means never expires.
11
+ * @format int32
12
+ */
13
+ expireAfter?: number | null;
14
+ /**
15
+ * Name of the package
16
+ */
17
+ packageName: string;
18
+ /**
19
+ * UUID of the registry
20
+ * @format uuid
21
+ */
22
+ registryId: string;
23
+ /**
24
+ * Plan for remediation (optional)
25
+ */
26
+ remediationPlan?: string | null;
27
+ /**
28
+ * List of versions to except. Empty array means all versions.
29
+ */
30
+ versionList?: string[];
31
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Metadata counts for firewall exceptions
3
+ */
4
+ export interface FirewallExceptionMetaV3 {
5
+ /**
6
+ * Number of exceptions with APPROVED status (non-expired)
7
+ * @format int64
8
+ * @example 25
9
+ */
10
+ approvedCount: number;
11
+ /**
12
+ * Number of approved exceptions that have expired
13
+ * @format int64
14
+ * @example 10
15
+ */
16
+ expiredCount: number;
17
+ /**
18
+ * Number of exceptions with PENDING status
19
+ * @format int64
20
+ * @example 10
21
+ */
22
+ pendingCount: number;
23
+ /**
24
+ * Number of exceptions with REJECTED status
25
+ * @format int64
26
+ * @example 5
27
+ */
28
+ rejectedCount: number;
29
+ /**
30
+ * Total number of exceptions
31
+ * @format int64
32
+ * @example 50
33
+ */
34
+ totalCount: number;
35
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,94 @@
1
+ import type { FirewallExceptionStatusV3 } from '../schemas/FirewallExceptionStatusV3';
2
+ /**
3
+ * Firewall exception details
4
+ */
5
+ export interface FirewallExceptionResponseV3 {
6
+ /**
7
+ * Business justification for the exception
8
+ */
9
+ businessJustification: string;
10
+ /**
11
+ * Unix timestamp (milliseconds) when created
12
+ * @format int64
13
+ */
14
+ createdAt: number;
15
+ /**
16
+ * User ID who created the exception
17
+ * @format int64
18
+ */
19
+ createdBy: number;
20
+ /**
21
+ * Unique identifier for the exception
22
+ * @format uuid
23
+ */
24
+ exceptionId: string;
25
+ /**
26
+ * Unix timestamp (milliseconds) when the exception expires. Computed at approval time.
27
+ * @format int64
28
+ */
29
+ expirationAt?: number | null;
30
+ /**
31
+ * Number of days after approval when the exception expires
32
+ * @format int32
33
+ */
34
+ expireAfter?: number | null;
35
+ /**
36
+ * Note from approver (if approved/rejected)
37
+ */
38
+ notes?: string | null;
39
+ /**
40
+ * Name of the package
41
+ */
42
+ packageName: string;
43
+ /**
44
+ * type of the package
45
+ */
46
+ packageType: string;
47
+ /**
48
+ * Registry identifier
49
+ */
50
+ registryId: string;
51
+ /**
52
+ * Name of the registry
53
+ */
54
+ registryName?: string;
55
+ /**
56
+ * Plan for remediation
57
+ */
58
+ remediationPlan?: string | null;
59
+ status: FirewallExceptionStatusV3;
60
+ /**
61
+ * Unix timestamp (milliseconds) when status was changed
62
+ * @format int64
63
+ */
64
+ statusChangedAt?: number | null;
65
+ /**
66
+ * User ID who changed the status
67
+ * @format int64
68
+ */
69
+ statusChangedBy?: number | null;
70
+ /**
71
+ * Unix timestamp (milliseconds) when last updated
72
+ * @format int64
73
+ */
74
+ updatedAt: number;
75
+ /**
76
+ * User ID who last updated
77
+ * @format int64
78
+ */
79
+ updatedBy: number;
80
+ /**
81
+ * Version identifier
82
+ */
83
+ versionId?: string | null;
84
+ /**
85
+ * List of versions covered by exception
86
+ */
87
+ versionList: string[];
88
+ /**
89
+ * Map of version string to scan ID
90
+ */
91
+ versionScanMap?: {
92
+ [key: string]: string;
93
+ } | null;
94
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Status of the firewall exception
3
+ */
4
+ export type FirewallExceptionStatusV3 = 'APPROVED' | 'EXPIRED' | 'PENDING' | 'REJECTED';
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Request to update a firewall exception. Only allowed when status is PENDING.
3
+ */
4
+ export interface FirewallExceptionUpdateRequestV3 {
5
+ /**
6
+ * Updated business justification for the exception
7
+ */
8
+ businessJustification?: string;
9
+ /**
10
+ * Number of days after approval when the exception expires. Null means never expires.
11
+ * @format int32
12
+ */
13
+ expireAfter?: number | null;
14
+ /**
15
+ * Updated plan for remediation
16
+ */
17
+ remediationPlan?: string | null;
18
+ /**
19
+ * Updated list of versions to except. Empty array means all versions.
20
+ */
21
+ versionList?: string[];
22
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { FirewallExceptionResponseV3 } from '../schemas/FirewallExceptionResponseV3';
2
+ import type { FirewallExceptionMetaV3 } from '../schemas/FirewallExceptionMetaV3';
3
+ import type { PageInfoV3 } from '../schemas/PageInfoV3';
4
+ export interface ListFirewallExceptionsResponseBodyV3 extends PageInfoV3 {
5
+ items: FirewallExceptionResponseV3[];
6
+ meta?: FirewallExceptionMetaV3;
7
+ }
@@ -13,10 +13,6 @@ export interface PackageMetadata {
13
13
  * @format int64
14
14
  */
15
15
  downloadsCount?: number;
16
- /**
17
- * True if the registry is soft-deleted
18
- */
19
- isDeleted: boolean;
20
16
  isPublic: boolean;
21
17
  isQuarantined?: boolean;
22
18
  lastModified?: string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Request to rebuild metadata for all versions in a registry
3
+ */
4
+ export interface RebuildVersionMetadataRequestV3 {
5
+ /**
6
+ * UUID of the registry to rebuild metadata for
7
+ */
8
+ registryId: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -13,10 +13,6 @@ export interface RegistryArtifactMetadata {
13
13
  * @format int64
14
14
  */
15
15
  downloadsCount?: number;
16
- /**
17
- * True if the registry is soft-deleted
18
- */
19
- isDeleted: boolean;
20
16
  isPublic: boolean;
21
17
  isQuarantined?: boolean;
22
18
  labels?: string[];
@@ -18,10 +18,6 @@ export interface RegistryMetadata {
18
18
  */
19
19
  downloadsCount?: number;
20
20
  identifier: string;
21
- /**
22
- * True if the registry is soft-deleted
23
- */
24
- isDeleted: boolean;
25
21
  isPublic: boolean;
26
22
  lastModified?: string;
27
23
  packageType: PackageType;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * System-level information for the Harness Artifact Registry
3
+ */
4
+ export interface SystemInfoV3 {
5
+ /**
6
+ * The hostname of the registry without protocol or port
7
+ * @example "pkg.harness.io"
8
+ */
9
+ registryHost: string;
10
+ /**
11
+ * The full registry URL including protocol
12
+ * @example "https://pkg.harness.io"
13
+ */
14
+ registryUrl: string;
15
+ }
@@ -0,0 +1,4 @@
1
+ /* eslint-disable */
2
+ // This code is autogenerated using @harnessio/oats-cli.
3
+ // Please do not modify this code directly.
4
+ export {};
@@ -23,10 +23,6 @@ export interface VersionMetadata {
23
23
  downloadsCount?: number;
24
24
  fileCount?: number;
25
25
  firewallMode?: 'ALLOW' | 'BLOCK' | 'WARN';
26
- /**
27
- * True if the registry is soft-deleted
28
- */
29
- isDeleted: boolean;
30
26
  isQuarantined?: boolean;
31
27
  lastModified: string;
32
28
  lastScannedAt?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harnessio/react-har-service-client",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "Harness HAR Service APIs integrated with react hooks",
5
5
  "author": "Harness Inc",
6
6
  "license": "MIT",
@@ -1,31 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { SuccessResponse } from '../responses/SuccessResponse';
3
- import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
- import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
- import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
- import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
- import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
- import type { ResponseWithPagination } from '../helpers';
9
- import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface DeletePackageMutationPathParams {
11
- /**
12
- * @format uuid
13
- */
14
- uuid: string;
15
- }
16
- export interface DeletePackageMutationQueryParams {
17
- account_identifier: string;
18
- org_identifier?: string;
19
- project_identifier?: string;
20
- force?: boolean;
21
- }
22
- export type DeletePackageOkResponse = ResponseWithPagination<SuccessResponse>;
23
- export type DeletePackageErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
- export interface DeletePackageProps extends DeletePackageMutationPathParams, Omit<FetcherOptions<DeletePackageMutationQueryParams, unknown>, 'url'> {
25
- queryParams: DeletePackageMutationQueryParams;
26
- }
27
- export declare function deletePackage(props: DeletePackageProps): Promise<DeletePackageOkResponse>;
28
- /**
29
- * Delete a package/image (soft or hard delete based on deleteType parameter)
30
- */
31
- export declare function useDeletePackageMutation(options?: Omit<UseMutationOptions<DeletePackageOkResponse, DeletePackageErrorResponse, DeletePackageProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeletePackageOkResponse, import("..").Error, DeletePackageProps, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deletePackage(props) {
7
- return fetcher(Object.assign({ url: `/v2/packages/${props.uuid}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete a package/image (soft or hard delete based on deleteType parameter)
11
- */
12
- export function useDeletePackageMutation(options) {
13
- return useMutation((mutateProps) => deletePackage(mutateProps), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { SuccessResponse } from '../responses/SuccessResponse';
3
- import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
- import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
- import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
- import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
- import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
- import type { ResponseWithPagination } from '../helpers';
9
- import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface DeleteRegistryV2MutationPathParams {
11
- /**
12
- * @format uuid
13
- */
14
- uuid: string;
15
- }
16
- export interface DeleteRegistryV2MutationQueryParams {
17
- account_identifier: string;
18
- org_identifier?: string;
19
- project_identifier?: string;
20
- force?: boolean;
21
- }
22
- export type DeleteRegistryV2OkResponse = ResponseWithPagination<SuccessResponse>;
23
- export type DeleteRegistryV2ErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
- export interface DeleteRegistryV2Props extends DeleteRegistryV2MutationPathParams, Omit<FetcherOptions<DeleteRegistryV2MutationQueryParams, unknown>, 'url'> {
25
- queryParams: DeleteRegistryV2MutationQueryParams;
26
- }
27
- export declare function deleteRegistryV2(props: DeleteRegistryV2Props): Promise<DeleteRegistryV2OkResponse>;
28
- /**
29
- * Delete a registry (soft or hard delete based on deleteType parameter)
30
- */
31
- export declare function useDeleteRegistryV2Mutation(options?: Omit<UseMutationOptions<DeleteRegistryV2OkResponse, DeleteRegistryV2ErrorResponse, DeleteRegistryV2Props>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteRegistryV2OkResponse, import("..").Error, DeleteRegistryV2Props, unknown>;
@@ -1,14 +0,0 @@
1
- /* eslint-disable */
2
- // This code is autogenerated using @harnessio/oats-cli.
3
- // Please do not modify this code directly.
4
- import { useMutation } from '@tanstack/react-query';
5
- import { fetcher } from '../../../../fetcher/index.js';
6
- export function deleteRegistryV2(props) {
7
- return fetcher(Object.assign({ url: `/v2/registries/${props.uuid}`, method: 'DELETE' }, props));
8
- }
9
- /**
10
- * Delete a registry (soft or hard delete based on deleteType parameter)
11
- */
12
- export function useDeleteRegistryV2Mutation(options) {
13
- return useMutation((mutateProps) => deleteRegistryV2(mutateProps), options);
14
- }
@@ -1,31 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import type { SuccessResponse } from '../responses/SuccessResponse';
3
- import type { BadRequestResponse } from '../responses/BadRequestResponse';
4
- import type { UnauthenticatedResponse } from '../responses/UnauthenticatedResponse';
5
- import type { UnauthorizedResponse } from '../responses/UnauthorizedResponse';
6
- import type { NotFoundResponse } from '../responses/NotFoundResponse';
7
- import type { InternalServerErrorResponse } from '../responses/InternalServerErrorResponse';
8
- import type { ResponseWithPagination } from '../helpers';
9
- import { FetcherOptions } from '../../../../fetcher/index.js';
10
- export interface DeleteVersionMutationPathParams {
11
- /**
12
- * @format uuid
13
- */
14
- uuid: string;
15
- }
16
- export interface DeleteVersionMutationQueryParams {
17
- account_identifier: string;
18
- org_identifier?: string;
19
- project_identifier?: string;
20
- force?: boolean;
21
- }
22
- export type DeleteVersionOkResponse = ResponseWithPagination<SuccessResponse>;
23
- export type DeleteVersionErrorResponse = BadRequestResponse | UnauthenticatedResponse | UnauthorizedResponse | NotFoundResponse | InternalServerErrorResponse;
24
- export interface DeleteVersionProps extends DeleteVersionMutationPathParams, Omit<FetcherOptions<DeleteVersionMutationQueryParams, unknown>, 'url'> {
25
- queryParams: DeleteVersionMutationQueryParams;
26
- }
27
- export declare function deleteVersion(props: DeleteVersionProps): Promise<DeleteVersionOkResponse>;
28
- /**
29
- * Delete a version (soft or hard delete based on deleteType parameter)
30
- */
31
- export declare function useDeleteVersionMutation(options?: Omit<UseMutationOptions<DeleteVersionOkResponse, DeleteVersionErrorResponse, DeleteVersionProps>, 'mutationKey' | 'mutationFn'>): import("@tanstack/react-query").UseMutationResult<DeleteVersionOkResponse, import("..").Error, DeleteVersionProps, unknown>;