@scaleway/sdk-audit-trail 1.0.3 → 1.1.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API } from './api.gen';
|
|
2
2
|
export * from './marshalling.gen';
|
|
3
|
-
export type { Event, EventPrincipal, KeyManagerKeyInfo, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
|
|
3
|
+
export type { AccountOrganizationInfo, AccountUserInfo, Event, EventPrincipal, KeyManagerKeyInfo, KubernetesACLInfo, KubernetesClusterInfo, KubernetesNodeInfo, KubernetesPoolInfo, ListEventsRequest, ListEventsRequestOrderBy, ListEventsResponse, ListProductsRequest, ListProductsResponse, Product, ProductService, Resource, ResourceType, SecretManagerSecretInfo, SecretManagerSecretVersionInfo, } from './types.gen';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen';
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const sdkClient = require("@scaleway/sdk-client");
|
|
4
|
+
const unmarshalAccountOrganizationInfo = (data) => {
|
|
5
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
6
|
+
throw new TypeError(
|
|
7
|
+
`Unmarshalling the type 'AccountOrganizationInfo' failed as data isn't a dictionary.`
|
|
8
|
+
);
|
|
9
|
+
}
|
|
10
|
+
return {};
|
|
11
|
+
};
|
|
12
|
+
const unmarshalAccountUserInfo = (data) => {
|
|
13
|
+
if (!sdkClient.isJSONObject(data)) {
|
|
14
|
+
throw new TypeError(
|
|
15
|
+
`Unmarshalling the type 'AccountUserInfo' failed as data isn't a dictionary.`
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
email: data.email
|
|
20
|
+
};
|
|
21
|
+
};
|
|
4
22
|
const unmarshalKeyManagerKeyInfo = (data) => {
|
|
5
23
|
if (!sdkClient.isJSONObject(data)) {
|
|
6
24
|
throw new TypeError(
|
|
@@ -84,6 +102,8 @@ const unmarshalResource = (data) => {
|
|
|
84
102
|
);
|
|
85
103
|
}
|
|
86
104
|
return {
|
|
105
|
+
accountOrganizationInfo: data.account_organization_info ? unmarshalAccountOrganizationInfo(data.account_organization_info) : void 0,
|
|
106
|
+
accountUserInfo: data.account_user_info ? unmarshalAccountUserInfo(data.account_user_info) : void 0,
|
|
87
107
|
createdAt: sdkClient.unmarshalDate(data.created_at),
|
|
88
108
|
deletedAt: sdkClient.unmarshalDate(data.deleted_at),
|
|
89
109
|
id: data.id,
|
|
@@ -1,4 +1,22 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalDate, unmarshalArrayOfObject } from "@scaleway/sdk-client";
|
|
2
|
+
const unmarshalAccountOrganizationInfo = (data) => {
|
|
3
|
+
if (!isJSONObject(data)) {
|
|
4
|
+
throw new TypeError(
|
|
5
|
+
`Unmarshalling the type 'AccountOrganizationInfo' failed as data isn't a dictionary.`
|
|
6
|
+
);
|
|
7
|
+
}
|
|
8
|
+
return {};
|
|
9
|
+
};
|
|
10
|
+
const unmarshalAccountUserInfo = (data) => {
|
|
11
|
+
if (!isJSONObject(data)) {
|
|
12
|
+
throw new TypeError(
|
|
13
|
+
`Unmarshalling the type 'AccountUserInfo' failed as data isn't a dictionary.`
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
email: data.email
|
|
18
|
+
};
|
|
19
|
+
};
|
|
2
20
|
const unmarshalKeyManagerKeyInfo = (data) => {
|
|
3
21
|
if (!isJSONObject(data)) {
|
|
4
22
|
throw new TypeError(
|
|
@@ -82,6 +100,8 @@ const unmarshalResource = (data) => {
|
|
|
82
100
|
);
|
|
83
101
|
}
|
|
84
102
|
return {
|
|
103
|
+
accountOrganizationInfo: data.account_organization_info ? unmarshalAccountOrganizationInfo(data.account_organization_info) : void 0,
|
|
104
|
+
accountUserInfo: data.account_user_info ? unmarshalAccountUserInfo(data.account_user_info) : void 0,
|
|
85
105
|
createdAt: unmarshalDate(data.created_at),
|
|
86
106
|
deletedAt: unmarshalDate(data.deleted_at),
|
|
87
107
|
id: data.id,
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { Region as ScwRegion } from '@scaleway/sdk-client';
|
|
2
2
|
export type ListEventsRequestOrderBy = 'recorded_at_desc' | 'recorded_at_asc';
|
|
3
|
-
export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key' | 'iam_user' | 'iam_application' | 'iam_group' | 'iam_policy' | 'iam_api_key' | 'iam_ssh_key' | 'iam_rule' | 'secret_manager_secret' | 'secret_manager_version' | 'key_manager_key';
|
|
3
|
+
export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key' | 'iam_user' | 'iam_application' | 'iam_group' | 'iam_policy' | 'iam_api_key' | 'iam_ssh_key' | 'iam_rule' | 'secret_manager_secret' | 'secret_manager_version' | 'key_manager_key' | 'account_user' | 'account_organization';
|
|
4
|
+
export interface AccountOrganizationInfo {
|
|
5
|
+
}
|
|
6
|
+
export interface AccountUserInfo {
|
|
7
|
+
email: string;
|
|
8
|
+
}
|
|
4
9
|
export interface KeyManagerKeyInfo {
|
|
5
10
|
}
|
|
6
11
|
export interface KubernetesACLInfo {
|
|
@@ -34,56 +39,66 @@ export interface Resource {
|
|
|
34
39
|
/**
|
|
35
40
|
* @deprecated
|
|
36
41
|
*
|
|
37
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
42
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
38
43
|
*/
|
|
39
44
|
secmSecretInfo?: SecretManagerSecretInfo;
|
|
40
45
|
/**
|
|
41
46
|
* @deprecated
|
|
42
47
|
*
|
|
43
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
48
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
44
49
|
*/
|
|
45
50
|
secmSecretVersionInfo?: SecretManagerSecretVersionInfo;
|
|
46
51
|
/**
|
|
47
52
|
*
|
|
48
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
53
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
49
54
|
*/
|
|
50
55
|
kubeClusterInfo?: KubernetesClusterInfo;
|
|
51
56
|
/**
|
|
52
57
|
*
|
|
53
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
58
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
54
59
|
*/
|
|
55
60
|
kubePoolInfo?: KubernetesPoolInfo;
|
|
56
61
|
/**
|
|
57
62
|
*
|
|
58
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
63
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
59
64
|
*/
|
|
60
65
|
kubeNodeInfo?: KubernetesNodeInfo;
|
|
61
66
|
/**
|
|
62
67
|
*
|
|
63
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
68
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
64
69
|
*/
|
|
65
70
|
kubeAclInfo?: KubernetesACLInfo;
|
|
66
71
|
/**
|
|
67
72
|
* @deprecated
|
|
68
73
|
*
|
|
69
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
74
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
70
75
|
*/
|
|
71
76
|
keymKeyInfo?: KeyManagerKeyInfo;
|
|
72
77
|
/**
|
|
73
78
|
*
|
|
74
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
79
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
75
80
|
*/
|
|
76
81
|
secretManagerSecretInfo?: SecretManagerSecretInfo;
|
|
77
82
|
/**
|
|
78
83
|
*
|
|
79
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
84
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
80
85
|
*/
|
|
81
86
|
secretManagerVersionInfo?: SecretManagerSecretVersionInfo;
|
|
82
87
|
/**
|
|
83
88
|
*
|
|
84
|
-
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo' could be set.
|
|
89
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
85
90
|
*/
|
|
86
91
|
keyManagerKeyInfo?: KeyManagerKeyInfo;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
95
|
+
*/
|
|
96
|
+
accountUserInfo?: AccountUserInfo;
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo', 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo', 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo', 'keyManagerKeyInfo', 'accountUserInfo', 'accountOrganizationInfo' could be set.
|
|
100
|
+
*/
|
|
101
|
+
accountOrganizationInfo?: AccountOrganizationInfo;
|
|
87
102
|
}
|
|
88
103
|
export interface ProductService {
|
|
89
104
|
name: string;
|