@inneropen/marvin-sdk 1.9.6 → 1.10.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.
- package/dist/platform.cjs +15 -8
- package/dist/platform.d.cts +15 -7
- package/dist/platform.d.ts +15 -7
- package/dist/platform.js +15 -8
- package/package.json +1 -1
package/dist/platform.cjs
CHANGED
|
@@ -415,12 +415,6 @@ var AssetsModule = class {
|
|
|
415
415
|
}
|
|
416
416
|
return this.http.post("/api/platform/assets/upload", formData);
|
|
417
417
|
}
|
|
418
|
-
/**
|
|
419
|
-
* Create a new asset (legacy metadata-only method)
|
|
420
|
-
*/
|
|
421
|
-
async create(data) {
|
|
422
|
-
return this.http.post("/api/platform/assets", data);
|
|
423
|
-
}
|
|
424
418
|
/**
|
|
425
419
|
* Update an asset (editable fields only: slug, name, altText, description, metadata)
|
|
426
420
|
*/
|
|
@@ -661,10 +655,23 @@ var InvitesModule = class {
|
|
|
661
655
|
return this.http.post("/api/groups/invitations", data);
|
|
662
656
|
}
|
|
663
657
|
/**
|
|
664
|
-
* Send an email invitation
|
|
658
|
+
* Send an email invitation with an existing token
|
|
665
659
|
*/
|
|
666
660
|
async sendEmail(data) {
|
|
667
|
-
|
|
661
|
+
return this.http.post("/api/groups/invitations/email", data);
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* Delete/revoke an invite token
|
|
665
|
+
*/
|
|
666
|
+
async delete(tokenId) {
|
|
667
|
+
await this.http.delete(`/api/groups/invitations/${tokenId}`);
|
|
668
|
+
}
|
|
669
|
+
/**
|
|
670
|
+
* Generate invitation URL from a token
|
|
671
|
+
*/
|
|
672
|
+
getInvitationUrl(token, baseUrl) {
|
|
673
|
+
const base = baseUrl || process.env.MARVIN_API_URL || "http://localhost:8080";
|
|
674
|
+
return `${base}/register?token=${token}`;
|
|
668
675
|
}
|
|
669
676
|
};
|
|
670
677
|
|
package/dist/platform.d.cts
CHANGED
|
@@ -2654,10 +2654,6 @@ declare class AssetsModule {
|
|
|
2654
2654
|
* @returns The created asset with extracted metadata
|
|
2655
2655
|
*/
|
|
2656
2656
|
upload(file: File | Blob, metadata: PlatformAssetUpload): Promise<PlatformAsset>;
|
|
2657
|
-
/**
|
|
2658
|
-
* Create a new asset (legacy metadata-only method)
|
|
2659
|
-
*/
|
|
2660
|
-
create(data: PlatformAssetCreate): Promise<PlatformAsset>;
|
|
2661
2657
|
/**
|
|
2662
2658
|
* Update an asset (editable fields only: slug, name, altText, description, metadata)
|
|
2663
2659
|
*/
|
|
@@ -2871,7 +2867,11 @@ type InviteTokenSummary = components['schemas']['InviteTokenSummary'];
|
|
|
2871
2867
|
type InviteTokenPagination = components['schemas']['InviteTokenPagination'];
|
|
2872
2868
|
interface EmailInvitationRequest {
|
|
2873
2869
|
email: string;
|
|
2874
|
-
|
|
2870
|
+
token: string;
|
|
2871
|
+
}
|
|
2872
|
+
interface EmailInvitationResponse {
|
|
2873
|
+
success: boolean;
|
|
2874
|
+
error?: string;
|
|
2875
2875
|
}
|
|
2876
2876
|
declare class InvitesModule {
|
|
2877
2877
|
private http;
|
|
@@ -2885,9 +2885,17 @@ declare class InvitesModule {
|
|
|
2885
2885
|
*/
|
|
2886
2886
|
create(data: InviteTokenCreate): Promise<InviteTokenSummary>;
|
|
2887
2887
|
/**
|
|
2888
|
-
* Send an email invitation
|
|
2888
|
+
* Send an email invitation with an existing token
|
|
2889
|
+
*/
|
|
2890
|
+
sendEmail(data: EmailInvitationRequest): Promise<EmailInvitationResponse>;
|
|
2891
|
+
/**
|
|
2892
|
+
* Delete/revoke an invite token
|
|
2893
|
+
*/
|
|
2894
|
+
delete(tokenId: string): Promise<void>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Generate invitation URL from a token
|
|
2889
2897
|
*/
|
|
2890
|
-
|
|
2898
|
+
getInvitationUrl(token: string, baseUrl?: string): string;
|
|
2891
2899
|
}
|
|
2892
2900
|
|
|
2893
2901
|
/**
|
package/dist/platform.d.ts
CHANGED
|
@@ -2654,10 +2654,6 @@ declare class AssetsModule {
|
|
|
2654
2654
|
* @returns The created asset with extracted metadata
|
|
2655
2655
|
*/
|
|
2656
2656
|
upload(file: File | Blob, metadata: PlatformAssetUpload): Promise<PlatformAsset>;
|
|
2657
|
-
/**
|
|
2658
|
-
* Create a new asset (legacy metadata-only method)
|
|
2659
|
-
*/
|
|
2660
|
-
create(data: PlatformAssetCreate): Promise<PlatformAsset>;
|
|
2661
2657
|
/**
|
|
2662
2658
|
* Update an asset (editable fields only: slug, name, altText, description, metadata)
|
|
2663
2659
|
*/
|
|
@@ -2871,7 +2867,11 @@ type InviteTokenSummary = components['schemas']['InviteTokenSummary'];
|
|
|
2871
2867
|
type InviteTokenPagination = components['schemas']['InviteTokenPagination'];
|
|
2872
2868
|
interface EmailInvitationRequest {
|
|
2873
2869
|
email: string;
|
|
2874
|
-
|
|
2870
|
+
token: string;
|
|
2871
|
+
}
|
|
2872
|
+
interface EmailInvitationResponse {
|
|
2873
|
+
success: boolean;
|
|
2874
|
+
error?: string;
|
|
2875
2875
|
}
|
|
2876
2876
|
declare class InvitesModule {
|
|
2877
2877
|
private http;
|
|
@@ -2885,9 +2885,17 @@ declare class InvitesModule {
|
|
|
2885
2885
|
*/
|
|
2886
2886
|
create(data: InviteTokenCreate): Promise<InviteTokenSummary>;
|
|
2887
2887
|
/**
|
|
2888
|
-
* Send an email invitation
|
|
2888
|
+
* Send an email invitation with an existing token
|
|
2889
|
+
*/
|
|
2890
|
+
sendEmail(data: EmailInvitationRequest): Promise<EmailInvitationResponse>;
|
|
2891
|
+
/**
|
|
2892
|
+
* Delete/revoke an invite token
|
|
2893
|
+
*/
|
|
2894
|
+
delete(tokenId: string): Promise<void>;
|
|
2895
|
+
/**
|
|
2896
|
+
* Generate invitation URL from a token
|
|
2889
2897
|
*/
|
|
2890
|
-
|
|
2898
|
+
getInvitationUrl(token: string, baseUrl?: string): string;
|
|
2891
2899
|
}
|
|
2892
2900
|
|
|
2893
2901
|
/**
|
package/dist/platform.js
CHANGED
|
@@ -195,12 +195,6 @@ var AssetsModule = class {
|
|
|
195
195
|
}
|
|
196
196
|
return this.http.post("/api/platform/assets/upload", formData);
|
|
197
197
|
}
|
|
198
|
-
/**
|
|
199
|
-
* Create a new asset (legacy metadata-only method)
|
|
200
|
-
*/
|
|
201
|
-
async create(data) {
|
|
202
|
-
return this.http.post("/api/platform/assets", data);
|
|
203
|
-
}
|
|
204
198
|
/**
|
|
205
199
|
* Update an asset (editable fields only: slug, name, altText, description, metadata)
|
|
206
200
|
*/
|
|
@@ -441,10 +435,23 @@ var InvitesModule = class {
|
|
|
441
435
|
return this.http.post("/api/groups/invitations", data);
|
|
442
436
|
}
|
|
443
437
|
/**
|
|
444
|
-
* Send an email invitation
|
|
438
|
+
* Send an email invitation with an existing token
|
|
445
439
|
*/
|
|
446
440
|
async sendEmail(data) {
|
|
447
|
-
|
|
441
|
+
return this.http.post("/api/groups/invitations/email", data);
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Delete/revoke an invite token
|
|
445
|
+
*/
|
|
446
|
+
async delete(tokenId) {
|
|
447
|
+
await this.http.delete(`/api/groups/invitations/${tokenId}`);
|
|
448
|
+
}
|
|
449
|
+
/**
|
|
450
|
+
* Generate invitation URL from a token
|
|
451
|
+
*/
|
|
452
|
+
getInvitationUrl(token, baseUrl) {
|
|
453
|
+
const base = baseUrl || process.env.MARVIN_API_URL || "http://localhost:8080";
|
|
454
|
+
return `${base}/register?token=${token}`;
|
|
448
455
|
}
|
|
449
456
|
};
|
|
450
457
|
|