@wix/secrets 1.0.33 → 1.0.34
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/secrets",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"type-bundles"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@wix/secrets_secrets": "1.0.
|
|
21
|
+
"@wix/secrets_secrets": "1.0.23"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"glob": "^10.4.1",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"fqdn": ""
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"falconPackageHash": "
|
|
46
|
+
"falconPackageHash": "7265cf6fdf32e25578c271adf1416fe496af5336a7a1ca5a7d29f15d"
|
|
47
47
|
}
|
|
@@ -136,7 +136,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
136
136
|
slug?: string;
|
|
137
137
|
/** ID of the entity associated with the event. */
|
|
138
138
|
entityId?: string;
|
|
139
|
-
/** Event timestamp. */
|
|
139
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
140
140
|
eventTime?: Date;
|
|
141
141
|
/**
|
|
142
142
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -165,6 +165,9 @@ interface DomainEventBodyOneOf {
|
|
|
165
165
|
interface EntityCreatedEvent {
|
|
166
166
|
entity?: string;
|
|
167
167
|
}
|
|
168
|
+
interface RestoreInfo {
|
|
169
|
+
deletedDate?: Date;
|
|
170
|
+
}
|
|
168
171
|
interface EntityUpdatedEvent {
|
|
169
172
|
/**
|
|
170
173
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -253,7 +256,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
253
256
|
slug?: string;
|
|
254
257
|
/** ID of the entity associated with the event. */
|
|
255
258
|
entityId?: string;
|
|
256
|
-
/** Event timestamp. */
|
|
259
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
257
260
|
eventTime?: Date;
|
|
258
261
|
/**
|
|
259
262
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -279,10 +282,6 @@ interface SecretCreatedEnvelope {
|
|
|
279
282
|
interface SecretDeletedEnvelope {
|
|
280
283
|
metadata: EventMetadata;
|
|
281
284
|
}
|
|
282
|
-
interface SecretUpdatedEnvelope {
|
|
283
|
-
entity: Secret;
|
|
284
|
-
metadata: EventMetadata;
|
|
285
|
-
}
|
|
286
285
|
|
|
287
286
|
declare function getSecretValue$1(httpClient: HttpClient): GetSecretValueSignature;
|
|
288
287
|
interface GetSecretValueSignature {
|
|
@@ -365,7 +364,6 @@ interface UpdateSecretSignature {
|
|
|
365
364
|
}
|
|
366
365
|
declare const onSecretCreated$1: EventDefinition<SecretCreatedEnvelope, "wix.velo.secrets_vault.v1.secret_created">;
|
|
367
366
|
declare const onSecretDeleted$1: EventDefinition<SecretDeletedEnvelope, "wix.velo.secrets_vault.v1.secret_deleted">;
|
|
368
|
-
declare const onSecretUpdated$1: EventDefinition<SecretUpdatedEnvelope, "wix.velo.secrets_vault.v1.secret_updated">;
|
|
369
367
|
|
|
370
368
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
371
369
|
|
|
@@ -383,10 +381,6 @@ type _publicOnSecretDeletedType = typeof onSecretDeleted$1;
|
|
|
383
381
|
/** */
|
|
384
382
|
declare const onSecretDeleted: ReturnType<typeof createEventModule<_publicOnSecretDeletedType>>;
|
|
385
383
|
|
|
386
|
-
type _publicOnSecretUpdatedType = typeof onSecretUpdated$1;
|
|
387
|
-
/** */
|
|
388
|
-
declare const onSecretUpdated: ReturnType<typeof createEventModule<_publicOnSecretUpdatedType>>;
|
|
389
|
-
|
|
390
384
|
type context_ActionEvent = ActionEvent;
|
|
391
385
|
type context_BaseEventMetadata = BaseEventMetadata;
|
|
392
386
|
type context_CreateSecretRequest = CreateSecretRequest;
|
|
@@ -408,27 +402,25 @@ type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
|
408
402
|
type context_ListSecretInfoRequest = ListSecretInfoRequest;
|
|
409
403
|
type context_ListSecretInfoResponse = ListSecretInfoResponse;
|
|
410
404
|
type context_MessageEnvelope = MessageEnvelope;
|
|
405
|
+
type context_RestoreInfo = RestoreInfo;
|
|
411
406
|
type context_Secret = Secret;
|
|
412
407
|
type context_SecretCreatedEnvelope = SecretCreatedEnvelope;
|
|
413
408
|
type context_SecretDeletedEnvelope = SecretDeletedEnvelope;
|
|
414
|
-
type context_SecretUpdatedEnvelope = SecretUpdatedEnvelope;
|
|
415
409
|
type context_UpdateSecretRequest = UpdateSecretRequest;
|
|
416
410
|
type context_UpdateSecretResponse = UpdateSecretResponse;
|
|
417
411
|
type context_WebhookIdentityType = WebhookIdentityType;
|
|
418
412
|
declare const context_WebhookIdentityType: typeof WebhookIdentityType;
|
|
419
413
|
type context__publicOnSecretCreatedType = _publicOnSecretCreatedType;
|
|
420
414
|
type context__publicOnSecretDeletedType = _publicOnSecretDeletedType;
|
|
421
|
-
type context__publicOnSecretUpdatedType = _publicOnSecretUpdatedType;
|
|
422
415
|
declare const context_createSecret: typeof createSecret;
|
|
423
416
|
declare const context_deleteSecret: typeof deleteSecret;
|
|
424
417
|
declare const context_getSecretValue: typeof getSecretValue;
|
|
425
418
|
declare const context_listSecretInfo: typeof listSecretInfo;
|
|
426
419
|
declare const context_onSecretCreated: typeof onSecretCreated;
|
|
427
420
|
declare const context_onSecretDeleted: typeof onSecretDeleted;
|
|
428
|
-
declare const context_onSecretUpdated: typeof onSecretUpdated;
|
|
429
421
|
declare const context_updateSecret: typeof updateSecret;
|
|
430
422
|
declare namespace context {
|
|
431
|
-
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateSecretRequest as CreateSecretRequest, type context_CreateSecretResponse as CreateSecretResponse, type context_CreateSecretResponseNonNullableFields as CreateSecretResponseNonNullableFields, type context_DeleteSecretRequest as DeleteSecretRequest, type context_DeleteSecretResponse as DeleteSecretResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GetSecretValueRequest as GetSecretValueRequest, type context_GetSecretValueResponse as GetSecretValueResponse, type context_GetSecretValueResponseNonNullableFields as GetSecretValueResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListSecretInfoRequest as ListSecretInfoRequest, type context_ListSecretInfoResponse as ListSecretInfoResponse, type context_MessageEnvelope as MessageEnvelope, type
|
|
423
|
+
export { type context_ActionEvent as ActionEvent, type context_BaseEventMetadata as BaseEventMetadata, type context_CreateSecretRequest as CreateSecretRequest, type context_CreateSecretResponse as CreateSecretResponse, type context_CreateSecretResponseNonNullableFields as CreateSecretResponseNonNullableFields, type context_DeleteSecretRequest as DeleteSecretRequest, type context_DeleteSecretResponse as DeleteSecretResponse, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_GetSecretValueRequest as GetSecretValueRequest, type context_GetSecretValueResponse as GetSecretValueResponse, type context_GetSecretValueResponseNonNullableFields as GetSecretValueResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type context_ListSecretInfoRequest as ListSecretInfoRequest, type context_ListSecretInfoResponse as ListSecretInfoResponse, type context_MessageEnvelope as MessageEnvelope, type context_RestoreInfo as RestoreInfo, type context_Secret as Secret, type context_SecretCreatedEnvelope as SecretCreatedEnvelope, type context_SecretDeletedEnvelope as SecretDeletedEnvelope, type context_UpdateSecretRequest as UpdateSecretRequest, type context_UpdateSecretResponse as UpdateSecretResponse, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSecretCreatedType as _publicOnSecretCreatedType, type context__publicOnSecretDeletedType as _publicOnSecretDeletedType, context_createSecret as createSecret, context_deleteSecret as deleteSecret, context_getSecretValue as getSecretValue, context_listSecretInfo as listSecretInfo, context_onSecretCreated as onSecretCreated, context_onSecretDeleted as onSecretDeleted, onSecretCreated$1 as publicOnSecretCreated, onSecretDeleted$1 as publicOnSecretDeleted, context_updateSecret as updateSecret };
|
|
432
424
|
}
|
|
433
425
|
|
|
434
426
|
export { context as secrets };
|
|
@@ -136,7 +136,7 @@ interface DomainEvent extends DomainEventBodyOneOf {
|
|
|
136
136
|
slug?: string;
|
|
137
137
|
/** ID of the entity associated with the event. */
|
|
138
138
|
entityId?: string;
|
|
139
|
-
/** Event timestamp. */
|
|
139
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
140
140
|
eventTime?: Date;
|
|
141
141
|
/**
|
|
142
142
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -165,6 +165,9 @@ interface DomainEventBodyOneOf {
|
|
|
165
165
|
interface EntityCreatedEvent {
|
|
166
166
|
entity?: string;
|
|
167
167
|
}
|
|
168
|
+
interface RestoreInfo {
|
|
169
|
+
deletedDate?: Date;
|
|
170
|
+
}
|
|
168
171
|
interface EntityUpdatedEvent {
|
|
169
172
|
/**
|
|
170
173
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
@@ -253,7 +256,7 @@ interface EventMetadata extends BaseEventMetadata {
|
|
|
253
256
|
slug?: string;
|
|
254
257
|
/** ID of the entity associated with the event. */
|
|
255
258
|
entityId?: string;
|
|
256
|
-
/** Event timestamp. */
|
|
259
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
257
260
|
eventTime?: Date;
|
|
258
261
|
/**
|
|
259
262
|
* Whether the event was triggered as a result of a privacy regulation application
|
|
@@ -279,10 +282,6 @@ interface SecretCreatedEnvelope {
|
|
|
279
282
|
interface SecretDeletedEnvelope {
|
|
280
283
|
metadata: EventMetadata;
|
|
281
284
|
}
|
|
282
|
-
interface SecretUpdatedEnvelope {
|
|
283
|
-
entity: Secret;
|
|
284
|
-
metadata: EventMetadata;
|
|
285
|
-
}
|
|
286
285
|
|
|
287
286
|
declare function getSecretValue$1(httpClient: HttpClient): GetSecretValueSignature;
|
|
288
287
|
interface GetSecretValueSignature {
|
|
@@ -365,7 +364,6 @@ interface UpdateSecretSignature {
|
|
|
365
364
|
}
|
|
366
365
|
declare const onSecretCreated$1: EventDefinition<SecretCreatedEnvelope, "wix.velo.secrets_vault.v1.secret_created">;
|
|
367
366
|
declare const onSecretDeleted$1: EventDefinition<SecretDeletedEnvelope, "wix.velo.secrets_vault.v1.secret_deleted">;
|
|
368
|
-
declare const onSecretUpdated$1: EventDefinition<SecretUpdatedEnvelope, "wix.velo.secrets_vault.v1.secret_updated">;
|
|
369
367
|
|
|
370
368
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
371
369
|
|
|
@@ -383,10 +381,6 @@ type _publicOnSecretDeletedType = typeof onSecretDeleted$1;
|
|
|
383
381
|
/** */
|
|
384
382
|
declare const onSecretDeleted: ReturnType<typeof createEventModule<_publicOnSecretDeletedType>>;
|
|
385
383
|
|
|
386
|
-
type _publicOnSecretUpdatedType = typeof onSecretUpdated$1;
|
|
387
|
-
/** */
|
|
388
|
-
declare const onSecretUpdated: ReturnType<typeof createEventModule<_publicOnSecretUpdatedType>>;
|
|
389
|
-
|
|
390
384
|
type index_d_ActionEvent = ActionEvent;
|
|
391
385
|
type index_d_BaseEventMetadata = BaseEventMetadata;
|
|
392
386
|
type index_d_CreateSecretRequest = CreateSecretRequest;
|
|
@@ -408,27 +402,25 @@ type index_d_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
|
|
|
408
402
|
type index_d_ListSecretInfoRequest = ListSecretInfoRequest;
|
|
409
403
|
type index_d_ListSecretInfoResponse = ListSecretInfoResponse;
|
|
410
404
|
type index_d_MessageEnvelope = MessageEnvelope;
|
|
405
|
+
type index_d_RestoreInfo = RestoreInfo;
|
|
411
406
|
type index_d_Secret = Secret;
|
|
412
407
|
type index_d_SecretCreatedEnvelope = SecretCreatedEnvelope;
|
|
413
408
|
type index_d_SecretDeletedEnvelope = SecretDeletedEnvelope;
|
|
414
|
-
type index_d_SecretUpdatedEnvelope = SecretUpdatedEnvelope;
|
|
415
409
|
type index_d_UpdateSecretRequest = UpdateSecretRequest;
|
|
416
410
|
type index_d_UpdateSecretResponse = UpdateSecretResponse;
|
|
417
411
|
type index_d_WebhookIdentityType = WebhookIdentityType;
|
|
418
412
|
declare const index_d_WebhookIdentityType: typeof WebhookIdentityType;
|
|
419
413
|
type index_d__publicOnSecretCreatedType = _publicOnSecretCreatedType;
|
|
420
414
|
type index_d__publicOnSecretDeletedType = _publicOnSecretDeletedType;
|
|
421
|
-
type index_d__publicOnSecretUpdatedType = _publicOnSecretUpdatedType;
|
|
422
415
|
declare const index_d_createSecret: typeof createSecret;
|
|
423
416
|
declare const index_d_deleteSecret: typeof deleteSecret;
|
|
424
417
|
declare const index_d_getSecretValue: typeof getSecretValue;
|
|
425
418
|
declare const index_d_listSecretInfo: typeof listSecretInfo;
|
|
426
419
|
declare const index_d_onSecretCreated: typeof onSecretCreated;
|
|
427
420
|
declare const index_d_onSecretDeleted: typeof onSecretDeleted;
|
|
428
|
-
declare const index_d_onSecretUpdated: typeof onSecretUpdated;
|
|
429
421
|
declare const index_d_updateSecret: typeof updateSecret;
|
|
430
422
|
declare namespace index_d {
|
|
431
|
-
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateSecretRequest as CreateSecretRequest, type index_d_CreateSecretResponse as CreateSecretResponse, type index_d_CreateSecretResponseNonNullableFields as CreateSecretResponseNonNullableFields, type index_d_DeleteSecretRequest as DeleteSecretRequest, type index_d_DeleteSecretResponse as DeleteSecretResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetSecretValueRequest as GetSecretValueRequest, type index_d_GetSecretValueResponse as GetSecretValueResponse, type index_d_GetSecretValueResponseNonNullableFields as GetSecretValueResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSecretInfoRequest as ListSecretInfoRequest, type index_d_ListSecretInfoResponse as ListSecretInfoResponse, type index_d_MessageEnvelope as MessageEnvelope, type
|
|
423
|
+
export { type index_d_ActionEvent as ActionEvent, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_CreateSecretRequest as CreateSecretRequest, type index_d_CreateSecretResponse as CreateSecretResponse, type index_d_CreateSecretResponseNonNullableFields as CreateSecretResponseNonNullableFields, type index_d_DeleteSecretRequest as DeleteSecretRequest, type index_d_DeleteSecretResponse as DeleteSecretResponse, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GetSecretValueRequest as GetSecretValueRequest, type index_d_GetSecretValueResponse as GetSecretValueResponse, type index_d_GetSecretValueResponseNonNullableFields as GetSecretValueResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListSecretInfoRequest as ListSecretInfoRequest, type index_d_ListSecretInfoResponse as ListSecretInfoResponse, type index_d_MessageEnvelope as MessageEnvelope, type index_d_RestoreInfo as RestoreInfo, type index_d_Secret as Secret, type index_d_SecretCreatedEnvelope as SecretCreatedEnvelope, type index_d_SecretDeletedEnvelope as SecretDeletedEnvelope, type index_d_UpdateSecretRequest as UpdateSecretRequest, type index_d_UpdateSecretResponse as UpdateSecretResponse, index_d_WebhookIdentityType as WebhookIdentityType, type index_d__publicOnSecretCreatedType as _publicOnSecretCreatedType, type index_d__publicOnSecretDeletedType as _publicOnSecretDeletedType, index_d_createSecret as createSecret, index_d_deleteSecret as deleteSecret, index_d_getSecretValue as getSecretValue, index_d_listSecretInfo as listSecretInfo, index_d_onSecretCreated as onSecretCreated, index_d_onSecretDeleted as onSecretDeleted, onSecretCreated$1 as publicOnSecretCreated, onSecretDeleted$1 as publicOnSecretDeleted, index_d_updateSecret as updateSecret };
|
|
432
424
|
}
|
|
433
425
|
|
|
434
426
|
export { index_d as secrets };
|