orgnote-api 0.4.1 → 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 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
  }
@@ -28,4 +28,13 @@ export enum DefaultCommands {
28
28
  TOGGLE_DARK_MODE = 'toggle dark mode',
29
29
  TOGGLE_DEBUG_MODE = 'toggle debug mode',
30
30
  SELECT_THEME = 'select theme',
31
+
32
+ // Routing
33
+ OPEN_MY_NOTES = 'my notes',
34
+ OPEN_DASHBOARD = 'dashboard',
35
+ OPEN_PUBLIC_NOTE_LIST = 'public note list',
36
+ OPEN_NOTE_EDITOR = 'edit mode',
37
+ OPEN_NOTE_VIEWER = 'view mode',
38
+ OPEN_GRAPH = 'graph',
39
+ OPEN_EXTENSIONS = 'extensions',
31
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orgnote-api",
3
- "version": "0.4.1",
3
+ "version": "0.6.0",
4
4
  "description": "Official API for creating extensions for OrgNote app",
5
5
  "type": "module",
6
6
  "main": "./index.ts",
@@ -1,6 +1,5 @@
1
1
  .gitignore
2
2
  .npmignore
3
- .openapi-generator-ignore
4
3
  api.ts
5
4
  base.ts
6
5
  common.ts
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