@inverted-tech/fragments 0.12.1 → 0.12.2

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.
@@ -0,0 +1,83 @@
1
+ // @generated by protoc-gen-es v2.9.0 with parameter "target=ts,import_extension=none"
2
+ // @generated from file Protos/IT/WebServices/Fragments/Content/Backup.proto (package IT.WebServices.Fragments.Content, syntax proto3)
3
+ /* eslint-disable */
4
+ import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_Protos_IT_WebServices_Fragments_Content_ContentRecord } from "./ContentRecord_pb.js";
6
+ /**
7
+ * Describes the file Protos/IT/WebServices/Fragments/Content/Backup.proto.
8
+ */
9
+ export const file_Protos_IT_WebServices_Fragments_Content_Backup = /*@__PURE__*/ fileDesc("CjRQcm90b3MvSVQvV2ViU2VydmljZXMvRnJhZ21lbnRzL0NvbnRlbnQvQmFja3VwLnByb3RvEiBJVC5XZWJTZXJ2aWNlcy5GcmFnbWVudHMuQ29udGVudCIvChRCYWNrdXBBbGxEYXRhUmVxdWVzdBIXCg9DbGllbnRQdWJsaWNKd2sYASABKAkiowEKFUJhY2t1cEFsbERhdGFSZXNwb25zZRIZCg9TZXJ2ZXJQdWJsaWNKd2sYASABKAlIABJdCg9FbmNyeXB0ZWRSZWNvcmQYCiABKAsyQi5JVC5XZWJTZXJ2aWNlcy5GcmFnbWVudHMuQ29udGVudC5FbmNyeXB0ZWRDb250ZW50QmFja3VwRGF0YVJlY29yZEgAQhAKDlJlc3BvbnNlX29uZW9mImsKF0NvbnRlbnRCYWNrdXBEYXRhUmVjb3JkEhEKCUV4dHJhRGF0YRgBIAEoDBI9CgREYXRhGAIgASgLMi8uSVQuV2ViU2VydmljZXMuRnJhZ21lbnRzLkNvbnRlbnQuQ29udGVudFJlY29yZCJGCiBFbmNyeXB0ZWRDb250ZW50QmFja3VwRGF0YVJlY29yZBIUCgxFbmNyeXB0aW9uSVYYASABKA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udFJlc3BvbnNlIgAwARKHAQoOUmVzdG9yZUFsbERhdGESNy5JVC5XZWJTZXJ2aWNlcy5GcmFnbWVudHMuQ29udGVudC5SZXN0b3JlQWxsRGF0YVJlcXVlc3QaOC5JVC5XZWJTZXJ2aWNlcy5GcmFnbWVudHMuQ29udGVudC5SZXN0b3JlQWxsRGF0YVJlc3BvbnNlIgAoAWIGcHJvdG8z", [file_Protos_IT_WebServices_Fragments_Content_ContentRecord]);
10
+ /**
11
+ * Describes the message IT.WebServices.Fragments.Content.BackupAllDataRequest.
12
+ * Use `create(BackupAllDataRequestSchema)` to create a new message.
13
+ */
14
+ export const BackupAllDataRequestSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 0);
15
+ /**
16
+ * Describes the message IT.WebServices.Fragments.Content.BackupAllDataResponse.
17
+ * Use `create(BackupAllDataResponseSchema)` to create a new message.
18
+ */
19
+ export const BackupAllDataResponseSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 1);
20
+ /**
21
+ * Describes the message IT.WebServices.Fragments.Content.ContentBackupDataRecord.
22
+ * Use `create(ContentBackupDataRecordSchema)` to create a new message.
23
+ */
24
+ export const ContentBackupDataRecordSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 2);
25
+ /**
26
+ * Describes the message IT.WebServices.Fragments.Content.EncryptedContentBackupDataRecord.
27
+ * Use `create(EncryptedContentBackupDataRecordSchema)` to create a new message.
28
+ */
29
+ export const EncryptedContentBackupDataRecordSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 3);
30
+ /**
31
+ * Describes the message IT.WebServices.Fragments.Content.ExportContentRequest.
32
+ * Use `create(ExportContentRequestSchema)` to create a new message.
33
+ */
34
+ export const ExportContentRequestSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 4);
35
+ /**
36
+ * Describes the message IT.WebServices.Fragments.Content.ExportContentResponse.
37
+ * Use `create(ExportContentResponseSchema)` to create a new message.
38
+ */
39
+ export const ExportContentResponseSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 5);
40
+ /**
41
+ * Describes the message IT.WebServices.Fragments.Content.RestoreAllDataRequest.
42
+ * Use `create(RestoreAllDataRequestSchema)` to create a new message.
43
+ */
44
+ export const RestoreAllDataRequestSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 6);
45
+ /**
46
+ * @generated from enum IT.WebServices.Fragments.Content.RestoreAllDataRequest.RestoreMode
47
+ */
48
+ export var RestoreAllDataRequest_RestoreMode;
49
+ (function (RestoreAllDataRequest_RestoreMode) {
50
+ /**
51
+ * Wipe entire content database and restore content. Any data new content will be deleted.
52
+ *
53
+ * @generated from enum value: Wipe = 0;
54
+ */
55
+ RestoreAllDataRequest_RestoreMode[RestoreAllDataRequest_RestoreMode["Wipe"] = 0] = "Wipe";
56
+ /**
57
+ * Overwrite all records with corresponding record. Will not delete new records not in list.
58
+ *
59
+ * @generated from enum value: Overwrite = 1;
60
+ */
61
+ RestoreAllDataRequest_RestoreMode[RestoreAllDataRequest_RestoreMode["Overwrite"] = 1] = "Overwrite";
62
+ /**
63
+ * Only restore missing content records. Will not overwrite content records that already exist.
64
+ *
65
+ * @generated from enum value: MissingOnly = 2;
66
+ */
67
+ RestoreAllDataRequest_RestoreMode[RestoreAllDataRequest_RestoreMode["MissingOnly"] = 2] = "MissingOnly";
68
+ })(RestoreAllDataRequest_RestoreMode || (RestoreAllDataRequest_RestoreMode = {}));
69
+ /**
70
+ * Describes the enum IT.WebServices.Fragments.Content.RestoreAllDataRequest.RestoreMode.
71
+ */
72
+ export const RestoreAllDataRequest_RestoreModeSchema = /*@__PURE__*/ enumDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 6, 0);
73
+ /**
74
+ * Describes the message IT.WebServices.Fragments.Content.RestoreAllDataResponse.
75
+ * Use `create(RestoreAllDataResponseSchema)` to create a new message.
76
+ */
77
+ export const RestoreAllDataResponseSchema = /*@__PURE__*/ messageDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 7);
78
+ /**
79
+ * Service for Content backup fragment interface
80
+ *
81
+ * @generated from service IT.WebServices.Fragments.Content.BackupInterface
82
+ */
83
+ export const BackupInterface = /*@__PURE__*/ serviceDesc(file_Protos_IT_WebServices_Fragments_Content_Backup, 0);
@@ -2,7 +2,6 @@
2
2
  // @generated from file Protos/IT/WebServices/Fragments/Content/Backup.proto (package IT.WebServices.Fragments.Content, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { BackupAllDataRequest, BackupAllDataResponse, ExportContentRequest, ExportContentResponse, RestoreAllDataRequest, RestoreAllDataResponse } from "../Backup_pb.js";
6
5
  import { MethodKind } from "@bufbuild/protobuf";
7
6
  /**
8
7
  * Service for Content backup fragment interface
@@ -0,0 +1,232 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
2
+ import type { ContentPublicRecord, ContentRecord } from "./ContentRecord_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
+ /**
5
+ * Describes the file Protos/IT/WebServices/Fragments/Content/Backup.proto.
6
+ */
7
+ export declare const file_Protos_IT_WebServices_Fragments_Content_Backup: GenFile;
8
+ /**
9
+ * @generated from message IT.WebServices.Fragments.Content.BackupAllDataRequest
10
+ */
11
+ export type BackupAllDataRequest = Message<"IT.WebServices.Fragments.Content.BackupAllDataRequest"> & {
12
+ /**
13
+ * @generated from field: string ClientPublicJwk = 1;
14
+ */
15
+ ClientPublicJwk: string;
16
+ };
17
+ /**
18
+ * Describes the message IT.WebServices.Fragments.Content.BackupAllDataRequest.
19
+ * Use `create(BackupAllDataRequestSchema)` to create a new message.
20
+ */
21
+ export declare const BackupAllDataRequestSchema: GenMessage<BackupAllDataRequest>;
22
+ /**
23
+ * @generated from message IT.WebServices.Fragments.Content.BackupAllDataResponse
24
+ */
25
+ export type BackupAllDataResponse = Message<"IT.WebServices.Fragments.Content.BackupAllDataResponse"> & {
26
+ /**
27
+ * @generated from oneof IT.WebServices.Fragments.Content.BackupAllDataResponse.Response_oneof
28
+ */
29
+ ResponseOneof: {
30
+ /**
31
+ * @generated from field: string ServerPublicJwk = 1;
32
+ */
33
+ value: string;
34
+ case: "ServerPublicJwk";
35
+ } | {
36
+ /**
37
+ * @generated from field: IT.WebServices.Fragments.Content.EncryptedContentBackupDataRecord EncryptedRecord = 10;
38
+ */
39
+ value: EncryptedContentBackupDataRecord;
40
+ case: "EncryptedRecord";
41
+ } | {
42
+ case: undefined;
43
+ value?: undefined;
44
+ };
45
+ };
46
+ /**
47
+ * Describes the message IT.WebServices.Fragments.Content.BackupAllDataResponse.
48
+ * Use `create(BackupAllDataResponseSchema)` to create a new message.
49
+ */
50
+ export declare const BackupAllDataResponseSchema: GenMessage<BackupAllDataResponse>;
51
+ /**
52
+ * @generated from message IT.WebServices.Fragments.Content.ContentBackupDataRecord
53
+ */
54
+ export type ContentBackupDataRecord = Message<"IT.WebServices.Fragments.Content.ContentBackupDataRecord"> & {
55
+ /**
56
+ * Generic byte structure to save all application specific data for content record
57
+ *
58
+ * @generated from field: bytes ExtraData = 1;
59
+ */
60
+ ExtraData: Uint8Array;
61
+ /**
62
+ * Structured content data, including both private and public data
63
+ *
64
+ * @generated from field: IT.WebServices.Fragments.Content.ContentRecord Data = 2;
65
+ */
66
+ Data?: ContentRecord;
67
+ };
68
+ /**
69
+ * Describes the message IT.WebServices.Fragments.Content.ContentBackupDataRecord.
70
+ * Use `create(ContentBackupDataRecordSchema)` to create a new message.
71
+ */
72
+ export declare const ContentBackupDataRecordSchema: GenMessage<ContentBackupDataRecord>;
73
+ /**
74
+ * @generated from message IT.WebServices.Fragments.Content.EncryptedContentBackupDataRecord
75
+ */
76
+ export type EncryptedContentBackupDataRecord = Message<"IT.WebServices.Fragments.Content.EncryptedContentBackupDataRecord"> & {
77
+ /**
78
+ * @generated from field: bytes EncryptionIV = 1;
79
+ */
80
+ EncryptionIV: Uint8Array;
81
+ /**
82
+ * @generated from field: bytes Data = 10;
83
+ */
84
+ Data: Uint8Array;
85
+ };
86
+ /**
87
+ * Describes the message IT.WebServices.Fragments.Content.EncryptedContentBackupDataRecord.
88
+ * Use `create(EncryptedContentBackupDataRecordSchema)` to create a new message.
89
+ */
90
+ export declare const EncryptedContentBackupDataRecordSchema: GenMessage<EncryptedContentBackupDataRecord>;
91
+ /**
92
+ * @generated from message IT.WebServices.Fragments.Content.ExportContentRequest
93
+ */
94
+ export type ExportContentRequest = Message<"IT.WebServices.Fragments.Content.ExportContentRequest"> & {};
95
+ /**
96
+ * Describes the message IT.WebServices.Fragments.Content.ExportContentRequest.
97
+ * Use `create(ExportContentRequestSchema)` to create a new message.
98
+ */
99
+ export declare const ExportContentRequestSchema: GenMessage<ExportContentRequest>;
100
+ /**
101
+ * @generated from message IT.WebServices.Fragments.Content.ExportContentResponse
102
+ */
103
+ export type ExportContentResponse = Message<"IT.WebServices.Fragments.Content.ExportContentResponse"> & {
104
+ /**
105
+ * @generated from field: IT.WebServices.Fragments.Content.ContentPublicRecord ContentRecord = 1;
106
+ */
107
+ ContentRecord?: ContentPublicRecord;
108
+ };
109
+ /**
110
+ * Describes the message IT.WebServices.Fragments.Content.ExportContentResponse.
111
+ * Use `create(ExportContentResponseSchema)` to create a new message.
112
+ */
113
+ export declare const ExportContentResponseSchema: GenMessage<ExportContentResponse>;
114
+ /**
115
+ * @generated from message IT.WebServices.Fragments.Content.RestoreAllDataRequest
116
+ */
117
+ export type RestoreAllDataRequest = Message<"IT.WebServices.Fragments.Content.RestoreAllDataRequest"> & {
118
+ /**
119
+ * @generated from oneof IT.WebServices.Fragments.Content.RestoreAllDataRequest.Request_oneof
120
+ */
121
+ RequestOneof: {
122
+ /**
123
+ * @generated from field: IT.WebServices.Fragments.Content.RestoreAllDataRequest.RestoreMode Mode = 1;
124
+ */
125
+ value: RestoreAllDataRequest_RestoreMode;
126
+ case: "Mode";
127
+ } | {
128
+ /**
129
+ * @generated from field: IT.WebServices.Fragments.Content.ContentBackupDataRecord Record = 10;
130
+ */
131
+ value: ContentBackupDataRecord;
132
+ case: "Record";
133
+ } | {
134
+ case: undefined;
135
+ value?: undefined;
136
+ };
137
+ };
138
+ /**
139
+ * Describes the message IT.WebServices.Fragments.Content.RestoreAllDataRequest.
140
+ * Use `create(RestoreAllDataRequestSchema)` to create a new message.
141
+ */
142
+ export declare const RestoreAllDataRequestSchema: GenMessage<RestoreAllDataRequest>;
143
+ /**
144
+ * @generated from enum IT.WebServices.Fragments.Content.RestoreAllDataRequest.RestoreMode
145
+ */
146
+ export declare enum RestoreAllDataRequest_RestoreMode {
147
+ /**
148
+ * Wipe entire content database and restore content. Any data new content will be deleted.
149
+ *
150
+ * @generated from enum value: Wipe = 0;
151
+ */
152
+ Wipe = 0,
153
+ /**
154
+ * Overwrite all records with corresponding record. Will not delete new records not in list.
155
+ *
156
+ * @generated from enum value: Overwrite = 1;
157
+ */
158
+ Overwrite = 1,
159
+ /**
160
+ * Only restore missing content records. Will not overwrite content records that already exist.
161
+ *
162
+ * @generated from enum value: MissingOnly = 2;
163
+ */
164
+ MissingOnly = 2
165
+ }
166
+ /**
167
+ * Describes the enum IT.WebServices.Fragments.Content.RestoreAllDataRequest.RestoreMode.
168
+ */
169
+ export declare const RestoreAllDataRequest_RestoreModeSchema: GenEnum<RestoreAllDataRequest_RestoreMode>;
170
+ /**
171
+ * @generated from message IT.WebServices.Fragments.Content.RestoreAllDataResponse
172
+ */
173
+ export type RestoreAllDataResponse = Message<"IT.WebServices.Fragments.Content.RestoreAllDataResponse"> & {
174
+ /**
175
+ * @generated from field: int32 NumRecordsRestored = 1;
176
+ */
177
+ NumRecordsRestored: number;
178
+ /**
179
+ * @generated from field: int32 NumRecordsSkipped = 2;
180
+ */
181
+ NumRecordsSkipped: number;
182
+ /**
183
+ * @generated from field: int32 NumRecordsOverwriten = 3;
184
+ */
185
+ NumRecordsOverwriten: number;
186
+ /**
187
+ * @generated from field: int32 NumRecordsWiped = 4;
188
+ */
189
+ NumRecordsWiped: number;
190
+ };
191
+ /**
192
+ * Describes the message IT.WebServices.Fragments.Content.RestoreAllDataResponse.
193
+ * Use `create(RestoreAllDataResponseSchema)` to create a new message.
194
+ */
195
+ export declare const RestoreAllDataResponseSchema: GenMessage<RestoreAllDataResponse>;
196
+ /**
197
+ * Service for Content backup fragment interface
198
+ *
199
+ * @generated from service IT.WebServices.Fragments.Content.BackupInterface
200
+ */
201
+ export declare const BackupInterface: GenService<{
202
+ /**
203
+ * Export a list of all data.
204
+ *
205
+ * @generated from rpc IT.WebServices.Fragments.Content.BackupInterface.BackupAllData
206
+ */
207
+ backupAllData: {
208
+ methodKind: "server_streaming";
209
+ input: typeof BackupAllDataRequestSchema;
210
+ output: typeof BackupAllDataResponseSchema;
211
+ };
212
+ /**
213
+ * Export a list of all public data.
214
+ *
215
+ * @generated from rpc IT.WebServices.Fragments.Content.BackupInterface.ExportContent
216
+ */
217
+ exportContent: {
218
+ methodKind: "server_streaming";
219
+ input: typeof ExportContentRequestSchema;
220
+ output: typeof ExportContentResponseSchema;
221
+ };
222
+ /**
223
+ * Restore a list of all data.
224
+ *
225
+ * @generated from rpc IT.WebServices.Fragments.Content.BackupInterface.RestoreAllData
226
+ */
227
+ restoreAllData: {
228
+ methodKind: "client_streaming";
229
+ input: typeof RestoreAllDataRequestSchema;
230
+ output: typeof RestoreAllDataResponseSchema;
231
+ };
232
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inverted-tech/fragments",
3
- "version": "0.12.1",
3
+ "version": "0.12.2",
4
4
  "description": "Types and JS runtime for Inverted protocol buffers (Fragments)",
5
5
  "types": "dist/protos/index.d.ts",
6
6
  "module": "dist/esm/index.js",