skapi-js 1.8.3 → 2.0.0-rc.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/dist/skapi.browser.mjs +6 -6
- package/dist/skapi.browser.mjs.map +1 -1
- package/dist/skapi.cjs +4 -4
- package/dist/skapi.cjs.map +1 -1
- package/dist/skapi.d.mts +11 -2
- package/dist/skapi.d.ts +11 -2
- package/dist/skapi.js +6 -6
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.mjs +4 -4
- package/dist/skapi.mjs.map +1 -1
- package/package.json +1 -1
package/dist/skapi.d.mts
CHANGED
|
@@ -519,6 +519,8 @@ type FileInfo = {
|
|
|
519
519
|
fileKey: string;
|
|
520
520
|
};
|
|
521
521
|
type ConnectionInfo = {
|
|
522
|
+
/** Public project ID (service + owner composed into the two-segment token). Empty when the service has no uuid owner. */
|
|
523
|
+
project_id: string;
|
|
522
524
|
user_ip: string;
|
|
523
525
|
user_agent: string;
|
|
524
526
|
user_location: string;
|
|
@@ -638,7 +640,7 @@ declare function extractFormData(form: FormData | HTMLFormElement | SubmitEvent
|
|
|
638
640
|
file: File;
|
|
639
641
|
}[];
|
|
640
642
|
};
|
|
641
|
-
declare function
|
|
643
|
+
declare function decodeProjectId(service: any): {
|
|
642
644
|
service: any;
|
|
643
645
|
owner: any;
|
|
644
646
|
};
|
|
@@ -662,6 +664,13 @@ declare class Skapi {
|
|
|
662
664
|
private __version;
|
|
663
665
|
service: string;
|
|
664
666
|
owner: string;
|
|
667
|
+
/**
|
|
668
|
+
* The public project ID: the single two-segment token composed from service + owner
|
|
669
|
+
* (the same value formatServiceId returns, and the form external tools accept).
|
|
670
|
+
* Empty string when the service has no uuid owner (e.g. host-owned), since the
|
|
671
|
+
* compound form cannot be built without one.
|
|
672
|
+
*/
|
|
673
|
+
project_id: string;
|
|
665
674
|
session: Record<string, any> | null;
|
|
666
675
|
connection: Connection | null;
|
|
667
676
|
/**
|
|
@@ -729,7 +738,7 @@ declare class Skapi {
|
|
|
729
738
|
generateRandom: typeof generateRandom;
|
|
730
739
|
toBase62: typeof toBase62;
|
|
731
740
|
fromBase62: typeof fromBase62;
|
|
732
|
-
|
|
741
|
+
decodeProjectId: typeof decodeProjectId;
|
|
733
742
|
formatServiceId: typeof formatServiceId;
|
|
734
743
|
extractFormData: typeof extractFormData;
|
|
735
744
|
terminatePendingRequests: typeof terminatePendingRequests;
|
package/dist/skapi.d.ts
CHANGED
|
@@ -519,6 +519,8 @@ type FileInfo = {
|
|
|
519
519
|
fileKey: string;
|
|
520
520
|
};
|
|
521
521
|
type ConnectionInfo = {
|
|
522
|
+
/** Public project ID (service + owner composed into the two-segment token). Empty when the service has no uuid owner. */
|
|
523
|
+
project_id: string;
|
|
522
524
|
user_ip: string;
|
|
523
525
|
user_agent: string;
|
|
524
526
|
user_location: string;
|
|
@@ -638,7 +640,7 @@ declare function extractFormData(form: FormData | HTMLFormElement | SubmitEvent
|
|
|
638
640
|
file: File;
|
|
639
641
|
}[];
|
|
640
642
|
};
|
|
641
|
-
declare function
|
|
643
|
+
declare function decodeProjectId(service: any): {
|
|
642
644
|
service: any;
|
|
643
645
|
owner: any;
|
|
644
646
|
};
|
|
@@ -662,6 +664,13 @@ declare class Skapi {
|
|
|
662
664
|
private __version;
|
|
663
665
|
service: string;
|
|
664
666
|
owner: string;
|
|
667
|
+
/**
|
|
668
|
+
* The public project ID: the single two-segment token composed from service + owner
|
|
669
|
+
* (the same value formatServiceId returns, and the form external tools accept).
|
|
670
|
+
* Empty string when the service has no uuid owner (e.g. host-owned), since the
|
|
671
|
+
* compound form cannot be built without one.
|
|
672
|
+
*/
|
|
673
|
+
project_id: string;
|
|
665
674
|
session: Record<string, any> | null;
|
|
666
675
|
connection: Connection | null;
|
|
667
676
|
/**
|
|
@@ -729,7 +738,7 @@ declare class Skapi {
|
|
|
729
738
|
generateRandom: typeof generateRandom;
|
|
730
739
|
toBase62: typeof toBase62;
|
|
731
740
|
fromBase62: typeof fromBase62;
|
|
732
|
-
|
|
741
|
+
decodeProjectId: typeof decodeProjectId;
|
|
733
742
|
formatServiceId: typeof formatServiceId;
|
|
734
743
|
extractFormData: typeof extractFormData;
|
|
735
744
|
terminatePendingRequests: typeof terminatePendingRequests;
|