codify-schemas 1.0.79 → 1.0.81

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.
@@ -18,6 +18,12 @@
18
18
  "items": {
19
19
  "type": "string"
20
20
  }
21
+ },
22
+ "sensitiveParameters": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
21
27
  }
22
28
  },
23
29
  "required": [
@@ -100,7 +100,7 @@ export interface GetResourceInfoResponseData {
100
100
  requiredParameters: string[] | null;
101
101
  preventImport?: boolean;
102
102
  };
103
- sensitiveParameters: string[];
103
+ sensitiveParameters?: string[];
104
104
  allowMultiple: boolean;
105
105
  }
106
106
  export interface MatchRequestData {
@@ -123,7 +123,6 @@ export interface ImportRequestData {
123
123
  core: ResourceConfig;
124
124
  parameters: Record<string, unknown>;
125
125
  autoSearchAll?: boolean;
126
- includeSensitive?: boolean;
127
126
  }
128
127
  export interface ImportResponseData {
129
128
  request: ResourceJson;
@@ -147,6 +146,7 @@ export interface ApplyRequestData {
147
146
  export interface ResourceDefinition {
148
147
  type: string;
149
148
  dependencies: string[];
149
+ sensitiveParameters?: string[];
150
150
  }
151
151
  export interface InitializeRequestData {
152
152
  verbosityLevel?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codify-schemas",
3
- "version": "1.0.79",
3
+ "version": "1.0.81",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,6 @@ describe('Get resources response data schema', () => {
41
41
  "type": "string"
42
42
  }
43
43
  },
44
- "sensitiveParameters": ['schema']
45
44
  },
46
45
  dependencies: [
47
46
  "typeA",
@@ -57,11 +56,7 @@ describe('Get resources response data schema', () => {
57
56
  requiredParameters: ['plugin']
58
57
  },
59
58
  allowMultiple: true,
60
- })).to.be.true;
61
-
62
- expect(validate({
63
- type: 'type',
64
- plugin: 'core-plugin',
59
+ sensitiveParameters: [],
65
60
  })).to.be.true;
66
61
 
67
62
  // For testing the typescript type
@@ -18,6 +18,12 @@
18
18
  "items": {
19
19
  "type": "string"
20
20
  }
21
+ },
22
+ "sensitiveParameters": {
23
+ "type": "array",
24
+ "items": {
25
+ "type": "string"
26
+ }
21
27
  }
22
28
  },
23
29
  "required": [
@@ -22,6 +22,7 @@ describe('Get resources response data schema', () => {
22
22
  {
23
23
  type: 'typeB',
24
24
  dependencies: [],
25
+ sensitiveParameters: ['paramA', 'paramB'],
25
26
  }
26
27
  ]
27
28
  })).to.be.true;
@@ -116,7 +116,7 @@ export interface GetResourceInfoResponseData {
116
116
  requiredParameters: string[] | null;
117
117
  preventImport?: boolean;
118
118
  },
119
- sensitiveParameters: string[];
119
+ sensitiveParameters?: string[];
120
120
  allowMultiple: boolean;
121
121
  }
122
122
 
@@ -142,7 +142,6 @@ export interface ImportRequestData {
142
142
  core: ResourceConfig;
143
143
  parameters: Record<string, unknown>;
144
144
  autoSearchAll?: boolean;
145
- includeSensitive?: boolean;
146
145
  }
147
146
 
148
147
  export interface ImportResponseData {
@@ -169,6 +168,7 @@ export interface ApplyRequestData {
169
168
  export interface ResourceDefinition {
170
169
  type: string;
171
170
  dependencies: string[];
171
+ sensitiveParameters?: string[];
172
172
  }
173
173
 
174
174
  export interface InitializeRequestData {