@narrative.io/data-collaboration-sdk-ts 2.46.0 → 2.46.1

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,23 +1,32 @@
1
1
  export type EncryptionMaterialStatus = "active" | "archived";
2
- export interface DataEncryptionMaterial {
2
+ interface BaseDataEncryptionMaterial {
3
3
  id: string;
4
4
  company_id: number;
5
5
  created_at: string;
6
- created_by: number;
6
+ description: string;
7
+ display_name: string;
8
+ tags: string[];
7
9
  updated_at: string;
10
+ }
11
+ export interface OwnedDataEncryptionMaterial extends BaseDataEncryptionMaterial {
12
+ type: "owned";
13
+ collaborators: unknown;
8
14
  updated_by: number;
9
- name: string;
10
- description: string;
11
- status: EncryptionMaterialStatus;
12
- key: string;
13
15
  }
16
+ export interface SharedDataEncryptionMaterial extends BaseDataEncryptionMaterial {
17
+ type: "shared";
18
+ }
19
+ export type DataEncryptionMaterial = OwnedDataEncryptionMaterial | SharedDataEncryptionMaterial;
14
20
  export interface CreateEncryptionMaterialRequest {
15
- name: string;
21
+ display_name: string;
16
22
  description?: string;
17
- key: string;
23
+ tags: string[];
24
+ status: EncryptionMaterialStatus;
18
25
  }
19
26
  export interface UpdateEncryptionMaterialRequest {
20
- name?: string;
27
+ display_name?: string;
21
28
  description?: string;
22
- key?: string;
29
+ tags?: string[];
30
+ status?: EncryptionMaterialStatus;
23
31
  }
32
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narrative.io/data-collaboration-sdk-ts",
3
- "version": "2.46.0",
3
+ "version": "2.46.1",
4
4
  "main": "build/index.js",
5
5
  "repository": "github:narrative-io/data-collaboration-sdk-ts",
6
6
  "source": "src/index.ts",