@wix/secrets 1.0.44 → 1.0.46

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,173 +0,0 @@
1
- interface Secret$1 {
2
- /**
3
- * Unique secret ID.
4
- * @readonly
5
- */
6
- id?: string | null;
7
- /**
8
- * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value.
9
- *
10
- * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
11
- */
12
- name?: string | null;
13
- /** Optional text describing the secret's purpose or any other notes about it. */
14
- description?: string | null;
15
- /** The encrypted confidential value. */
16
- value?: string | null;
17
- /**
18
- * Date and time when the secret was created.
19
- * @readonly
20
- */
21
- createdDate?: Date | null;
22
- /**
23
- * Date and time when the secret was updated.
24
- * @readonly
25
- */
26
- updatedDate?: Date | null;
27
- }
28
- interface GetSecretValueRequest$1 {
29
- /** Secret name. */
30
- name: string;
31
- }
32
- interface GetSecretValueResponse$1 {
33
- /** The confidential value to protect, such as an API key. */
34
- value?: string;
35
- }
36
- interface ListSecretInfoRequest$1 {
37
- }
38
- interface ListSecretInfoResponse$1 {
39
- /** A list of secrets with encrypted values. */
40
- secrets?: Secret$1[];
41
- }
42
- interface CreateSecretRequest$1 {
43
- /** Details of a secret. */
44
- secret: Secret$1;
45
- }
46
- interface CreateSecretResponse$1 {
47
- /** Unique secret ID. */
48
- id?: string;
49
- }
50
- interface DeleteSecretRequest$1 {
51
- /** ID of the secret to delete. */
52
- id: string;
53
- }
54
- interface DeleteSecretResponse$1 {
55
- }
56
- interface UpdateSecretRequest$1 {
57
- /** ID of the secret to update. */
58
- id: string;
59
- /** Details of a secret. */
60
- secret: Secret$1;
61
- }
62
- interface UpdateSecretResponse$1 {
63
- }
64
- interface GetSecretValueResponseNonNullableFields$1 {
65
- value: string;
66
- }
67
- interface CreateSecretResponseNonNullableFields$1 {
68
- id: string;
69
- }
70
-
71
- interface Secret {
72
- /**
73
- * Unique secret ID.
74
- * @readonly
75
- */
76
- _id?: string | null;
77
- /**
78
- * A unique, human-friendly name for the secret. Use it to retrieve the secret value with Get Secret Value.
79
- *
80
- * **Note:** You can use alphanumeric characters and the following special characters: `_+=-@#$`. Spaces are not supported.
81
- */
82
- name?: string | null;
83
- /** Optional text describing the secret's purpose or any other notes about it. */
84
- description?: string | null;
85
- /** The encrypted confidential value. */
86
- value?: string | null;
87
- /**
88
- * Date and time when the secret was created.
89
- * @readonly
90
- */
91
- _createdDate?: Date | null;
92
- /**
93
- * Date and time when the secret was updated.
94
- * @readonly
95
- */
96
- _updatedDate?: Date | null;
97
- }
98
- interface GetSecretValueRequest {
99
- /** Secret name. */
100
- name: string;
101
- }
102
- interface GetSecretValueResponse {
103
- /** The confidential value to protect, such as an API key. */
104
- value?: string;
105
- }
106
- interface ListSecretInfoRequest {
107
- }
108
- interface ListSecretInfoResponse {
109
- /** A list of secrets with encrypted values. */
110
- secrets?: Secret[];
111
- }
112
- interface CreateSecretRequest {
113
- /** Details of a secret. */
114
- secret: Secret;
115
- }
116
- interface CreateSecretResponse {
117
- /** Unique secret ID. */
118
- _id?: string;
119
- }
120
- interface DeleteSecretRequest {
121
- /** ID of the secret to delete. */
122
- _id: string;
123
- }
124
- interface DeleteSecretResponse {
125
- }
126
- interface UpdateSecretRequest {
127
- /** ID of the secret to update. */
128
- _id: string;
129
- /** Details of a secret. */
130
- secret: Secret;
131
- }
132
- interface UpdateSecretResponse {
133
- }
134
- interface GetSecretValueResponseNonNullableFields {
135
- value: string;
136
- }
137
- interface CreateSecretResponseNonNullableFields {
138
- _id: string;
139
- }
140
-
141
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
142
- getUrl: (context: any) => string;
143
- httpMethod: K;
144
- path: string;
145
- pathParams: M;
146
- __requestType: T;
147
- __originalRequestType: S;
148
- __responseType: Q;
149
- __originalResponseType: R;
150
- };
151
- declare function getSecretValue(): __PublicMethodMetaInfo<'GET', {
152
- name: string;
153
- }, GetSecretValueRequest, GetSecretValueRequest$1, GetSecretValueResponse & GetSecretValueResponseNonNullableFields, GetSecretValueResponse$1 & GetSecretValueResponseNonNullableFields$1>;
154
- declare function listSecretInfo(): __PublicMethodMetaInfo<'GET', {}, ListSecretInfoRequest, ListSecretInfoRequest$1, ListSecretInfoResponse, ListSecretInfoResponse$1>;
155
- declare function createSecret(): __PublicMethodMetaInfo<'POST', {}, CreateSecretRequest, CreateSecretRequest$1, CreateSecretResponse & CreateSecretResponseNonNullableFields, CreateSecretResponse$1 & CreateSecretResponseNonNullableFields$1>;
156
- declare function deleteSecret(): __PublicMethodMetaInfo<'DELETE', {
157
- id: string;
158
- }, DeleteSecretRequest, DeleteSecretRequest$1, DeleteSecretResponse, DeleteSecretResponse$1>;
159
- declare function updateSecret(): __PublicMethodMetaInfo<'PATCH', {
160
- id: string;
161
- }, UpdateSecretRequest, UpdateSecretRequest$1, UpdateSecretResponse, UpdateSecretResponse$1>;
162
-
163
- type meta___PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = __PublicMethodMetaInfo<K, M, T, S, Q, R>;
164
- declare const meta_createSecret: typeof createSecret;
165
- declare const meta_deleteSecret: typeof deleteSecret;
166
- declare const meta_getSecretValue: typeof getSecretValue;
167
- declare const meta_listSecretInfo: typeof listSecretInfo;
168
- declare const meta_updateSecret: typeof updateSecret;
169
- declare namespace meta {
170
- export { type meta___PublicMethodMetaInfo as __PublicMethodMetaInfo, meta_createSecret as createSecret, meta_deleteSecret as deleteSecret, meta_getSecretValue as getSecretValue, meta_listSecretInfo as listSecretInfo, meta_updateSecret as updateSecret };
171
- }
172
-
173
- export { meta as secrets };