@secrecy/lib 1.67.0 → 1.68.0-feat-anonymous-upload.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.
@@ -148,7 +148,7 @@ export class SecrecyCloudClient {
148
148
  signal,
149
149
  });
150
150
  if (uploadData.parts.length === 0) {
151
- if (uploadData.keyPair.pub !== this.#keys.publicKey) {
151
+ if (uploadData.keyPair?.pub !== this.#keys.publicKey) {
152
152
  throw new Error('The public key does not match with cached key!');
153
153
  }
154
154
  await uploadProgress?.({
@@ -106,16 +106,22 @@ export declare class SecrecyCloudClient {
106
106
  getPublicDataLink(input: RouterInputs['cloud']['dataLink']): Promise<{
107
107
  name: string;
108
108
  id: string;
109
- dataId: string;
110
- expireAt: Date | null;
109
+ createdByUserId: string | null;
110
+ createdByAppId: string | null;
111
+ createdByOrgId: string | null;
111
112
  slug: string;
113
+ expireAt: Date | null;
114
+ dataId: string;
112
115
  }>;
113
116
  getPublicDataLinks(input: RouterInputs['cloud']['dataLinks']): Promise<{
114
117
  name: string;
115
118
  id: string;
116
- dataId: string;
117
- expireAt: Date | null;
119
+ createdByUserId: string | null;
120
+ createdByAppId: string | null;
121
+ createdByOrgId: string | null;
118
122
  slug: string;
123
+ expireAt: Date | null;
124
+ dataId: string;
119
125
  }[]>;
120
126
  checkAccesses(input: RouterInputs['cloud']['checkAccesses']): Promise<{
121
127
  isMatching: true;
@@ -156,23 +162,32 @@ export declare class SecrecyCloudClient {
156
162
  createPublicDataLink(input: RouterInputs['cloud']['createDataLink']): Promise<{
157
163
  name: string;
158
164
  id: string;
159
- dataId: string;
160
- expireAt: Date | null;
165
+ createdByUserId: string | null;
166
+ createdByAppId: string | null;
167
+ createdByOrgId: string | null;
161
168
  slug: string;
169
+ expireAt: Date | null;
170
+ dataId: string;
162
171
  }>;
163
172
  updatePublicDataLink(input: RouterInputs['cloud']['updateDataLink']): Promise<{
164
173
  name: string;
165
174
  id: string;
166
- dataId: string;
167
- expireAt: Date | null;
175
+ createdByUserId: string | null;
176
+ createdByAppId: string | null;
177
+ createdByOrgId: string | null;
168
178
  slug: string;
179
+ expireAt: Date | null;
180
+ dataId: string;
169
181
  }>;
170
182
  deletePublicDataLink(input: RouterInputs['cloud']['deleteDataLink']): Promise<{
171
183
  name: string;
172
184
  id: string;
173
- dataId: string;
174
- expireAt: Date | null;
185
+ createdByUserId: string | null;
186
+ createdByAppId: string | null;
187
+ createdByOrgId: string | null;
175
188
  slug: string;
189
+ expireAt: Date | null;
190
+ dataId: string;
176
191
  }>;
177
192
  private _handleDataContent;
178
193
  }