orgnote-api 0.5.0 → 0.6.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.
- package/api.ts +22 -0
- package/package.json +1 -1
- package/remote-api/.openapi-generator/FILES +0 -1
- package/remote-api/api.ts +13 -0
package/api.ts
CHANGED
|
@@ -77,6 +77,27 @@ export interface OrgNoteApi {
|
|
|
77
77
|
configuration: () => OrgNoteConfig;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
export interface OrgNoteGpgEncryption {
|
|
81
|
+
type: 'gpg';
|
|
82
|
+
privateKey: string;
|
|
83
|
+
publicKey: string;
|
|
84
|
+
privateKeyPassphrase?: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export interface OrgNotePasswordEncryption {
|
|
88
|
+
type: 'password';
|
|
89
|
+
password: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface OrgNoteDisabledEncryption {
|
|
93
|
+
type: 'disabled';
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type OrgNoteEncryption =
|
|
97
|
+
| OrgNoteGpgEncryption
|
|
98
|
+
| OrgNotePasswordEncryption
|
|
99
|
+
| OrgNoteDisabledEncryption;
|
|
100
|
+
|
|
80
101
|
export interface OrgNoteConfig {
|
|
81
102
|
editor: {
|
|
82
103
|
showSpecialSymbols: boolean;
|
|
@@ -98,4 +119,5 @@ export interface OrgNoteConfig {
|
|
|
98
119
|
extensions: {
|
|
99
120
|
sources: string[];
|
|
100
121
|
};
|
|
122
|
+
encryption: OrgNoteEncryption;
|
|
101
123
|
}
|
package/package.json
CHANGED
package/remote-api/api.ts
CHANGED
|
@@ -572,6 +572,12 @@ export interface ModelsPublicNote {
|
|
|
572
572
|
* @memberof ModelsPublicNote
|
|
573
573
|
*/
|
|
574
574
|
'createdAt'?: string;
|
|
575
|
+
/**
|
|
576
|
+
* Encrypted note content
|
|
577
|
+
* @type {string}
|
|
578
|
+
* @memberof ModelsPublicNote
|
|
579
|
+
*/
|
|
580
|
+
'encrypted'?: ModelsPublicNoteEncryptedEnum;
|
|
575
581
|
/**
|
|
576
582
|
*
|
|
577
583
|
* @type {Array<string>}
|
|
@@ -615,6 +621,13 @@ export interface ModelsPublicNote {
|
|
|
615
621
|
*/
|
|
616
622
|
'updatedAt'?: string;
|
|
617
623
|
}
|
|
624
|
+
|
|
625
|
+
export const ModelsPublicNoteEncryptedEnum = {
|
|
626
|
+
Gpg: 'gpg'
|
|
627
|
+
} as const;
|
|
628
|
+
|
|
629
|
+
export type ModelsPublicNoteEncryptedEnum = typeof ModelsPublicNoteEncryptedEnum[keyof typeof ModelsPublicNoteEncryptedEnum];
|
|
630
|
+
|
|
618
631
|
/**
|
|
619
632
|
*
|
|
620
633
|
* @export
|