@bctrl/sdk 1.0.6 → 1.0.7

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,73 +1,9 @@
1
- type V1VaultPageQuery = {
2
- cursor?: string;
3
- limit?: number;
4
- };
5
- export type V1VaultSecretType = 'login' | 'value';
6
- export interface V1VaultSecret {
7
- key: string;
8
- type: V1VaultSecretType;
9
- label?: string;
10
- origins?: string[];
11
- originPatterns?: string[];
12
- hasTotp: boolean;
13
- createdAt?: string;
14
- updatedAt?: string;
15
- }
16
- export interface V1VaultSecretListQuery extends V1VaultPageQuery {
17
- prefix?: string;
18
- origin?: string;
19
- hasTotp?: boolean;
20
- }
21
- export type V1VaultSecretUpsertRequest = {
22
- type: 'login';
23
- username: string;
24
- password: string;
25
- totpSecret?: string;
26
- label?: string;
27
- origins?: string[];
28
- originPatterns?: string[];
29
- notes?: string;
30
- } | {
31
- type: 'value';
32
- value: string;
33
- label?: string;
34
- origins?: string[];
35
- originPatterns?: string[];
36
- notes?: string;
37
- };
38
- export interface V1VaultSecretPatchRequest {
39
- username?: string;
40
- password?: string;
41
- value?: string;
42
- totpSecret?: string | null;
43
- label?: string | null;
44
- origins?: string[] | null;
45
- originPatterns?: string[] | null;
46
- notes?: string | null;
47
- }
48
- export type V1VaultSecretValue = {
49
- key: string;
50
- type: 'login';
51
- username: string;
52
- password: string;
53
- label?: string;
54
- origins?: string[];
55
- originPatterns?: string[];
56
- notes?: string;
57
- } | {
58
- key: string;
59
- type: 'value';
60
- value: string;
61
- label?: string;
62
- origins?: string[];
63
- originPatterns?: string[];
64
- notes?: string;
65
- };
66
- export interface V1VaultTotpResponse {
67
- code: string;
68
- }
69
- export interface V1VaultSecretDeleteResponse {
70
- key: string;
71
- deleted: true;
72
- }
73
- export {};
1
+ import type { OpenApiQuery, OpenApiSchemas } from './openapi.js';
2
+ export type V1VaultSecretType = OpenApiSchemas['VaultSecret']['type'];
3
+ export type V1VaultSecret = OpenApiSchemas['VaultSecret'];
4
+ export type V1VaultSecretListQuery = OpenApiQuery<'vault.secrets.list'>;
5
+ export type V1VaultSecretUpsertRequest = OpenApiSchemas['VaultSecretUpsertRequest'];
6
+ export type V1VaultSecretPatchRequest = OpenApiSchemas['VaultSecretPatchRequest'];
7
+ export type V1VaultSecretValue = OpenApiSchemas['VaultSecretValue'];
8
+ export type V1VaultTotpResponse = OpenApiSchemas['VaultTotpResponse'];
9
+ export type V1VaultSecretDeleteResponse = OpenApiSchemas['VaultSecretDeleteResponse'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bctrl/sdk",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "BCTRL SDK - Remote browser automation",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",