@trylimbo/sdk-plugin-mxf 0.2.23 → 0.2.25-canary.37
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/gen/ffi/index.d.ts +46 -48
- package/gen/ffi/index.js +55 -59
- package/package.json +7 -7
package/gen/ffi/index.d.ts
CHANGED
|
@@ -150,14 +150,32 @@ declare const pointerLiteralSymbol: unique symbol;
|
|
|
150
150
|
*/
|
|
151
151
|
declare const uniffiTypeNameSymbol: unique symbol;
|
|
152
152
|
declare namespace trylimbo_plugin_mxf_d_exports {
|
|
153
|
-
export { Code, FieldViolation, MxfAuthor, MxfAuthorInterface, MxfAuthorLike, MxfPlugin, MxfPluginInterface, MxfPluginLike, RangeSink, RangeSource,
|
|
153
|
+
export { ByteRange, Code, FieldViolation, MxfAuthor, MxfAuthorInterface, MxfAuthorLike, MxfPlugin, MxfPluginInterface, MxfPluginLike, RangeSink, RangeSource, SdkError, SdkError_Tags, _default$1 as default };
|
|
154
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* A byte window a manifest occupies. Structurally identical to the SDKs' `ByteRange`, so the two
|
|
157
|
+
* cross the boundary without sharing a Rust type.
|
|
158
|
+
*/
|
|
159
|
+
export type ByteRange = {
|
|
160
|
+
offset: bigint;
|
|
161
|
+
length: bigint;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Generated factory for {@link ByteRange} record objects.
|
|
165
|
+
*/
|
|
166
|
+
export declare const ByteRange: Readonly<{
|
|
167
|
+
create: (partial: Partial<ByteRange> & Required<Omit<ByteRange, never>>) => ByteRange;
|
|
168
|
+
new: (partial: Partial<ByteRange> & Required<Omit<ByteRange, never>>) => ByteRange;
|
|
169
|
+
defaults: () => Partial<ByteRange>;
|
|
170
|
+
}>;
|
|
155
171
|
/**
|
|
156
172
|
* One `google.rpc.BadRequest.FieldViolation`: a request field that failed a constraint.
|
|
157
173
|
*/
|
|
158
174
|
export type FieldViolation = {
|
|
159
175
|
/**
|
|
160
|
-
*
|
|
176
|
+
* The offending field: rooted at the call's argument when an SDK refuses it
|
|
177
|
+
* (`options.soft_bindings[1].alg`), at the request when a service does
|
|
178
|
+
* (`provenance.actions[0].label`).
|
|
161
179
|
*/
|
|
162
180
|
field: string;
|
|
163
181
|
/**
|
|
@@ -165,7 +183,7 @@ export type FieldViolation = {
|
|
|
165
183
|
*/
|
|
166
184
|
description: string;
|
|
167
185
|
/**
|
|
168
|
-
* The
|
|
186
|
+
* The rule that failed, such as `string.min_len` or `alg.unlisted`: the stable branch key.
|
|
169
187
|
*/
|
|
170
188
|
reason: string;
|
|
171
189
|
};
|
|
@@ -177,28 +195,8 @@ export declare const FieldViolation: Readonly<{
|
|
|
177
195
|
new: (partial: Partial<FieldViolation> & Required<Omit<FieldViolation, never>>) => FieldViolation;
|
|
178
196
|
defaults: () => Partial<FieldViolation>;
|
|
179
197
|
}>;
|
|
180
|
-
/**
|
|
181
|
-
* A byte window a manifest occupies. Structurally identical to the SDKs' `Region`, so the two
|
|
182
|
-
* cross the boundary without sharing a Rust type.
|
|
183
|
-
*/
|
|
184
|
-
export type Region = {
|
|
185
|
-
offset: bigint;
|
|
186
|
-
length: bigint;
|
|
187
|
-
};
|
|
188
|
-
/**
|
|
189
|
-
* Generated factory for {@link Region} record objects.
|
|
190
|
-
*/
|
|
191
|
-
export declare const Region: Readonly<{
|
|
192
|
-
create: (partial: Partial<Region> & Required<Omit<Region, never>>) => Region;
|
|
193
|
-
new: (partial: Partial<Region> & Required<Omit<Region, never>>) => Region;
|
|
194
|
-
defaults: () => Partial<Region>;
|
|
195
|
-
}>;
|
|
196
198
|
/**
|
|
197
199
|
* A canonical gRPC/Connect status code: the coarse, closed failure class.
|
|
198
|
-
*
|
|
199
|
-
* The wasm lane projects this as a camelCase string like every other tagged value
|
|
200
|
-
* there, so a consumer narrows on `err.code === "resourceExhausted"`; the native lane
|
|
201
|
-
* projects an enum.
|
|
202
200
|
*/
|
|
203
201
|
export declare enum Code {
|
|
204
202
|
Canceled = 0,
|
|
@@ -604,15 +602,15 @@ export interface MxfAuthorLike {
|
|
|
604
602
|
*
|
|
605
603
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
606
604
|
*/
|
|
607
|
-
locate(
|
|
605
|
+
locate(source: RangeSource, asyncOpts_?: {
|
|
608
606
|
signal: AbortSignal;
|
|
609
|
-
}): Promise<Array<
|
|
607
|
+
}): Promise<Array<ByteRange>>;
|
|
610
608
|
/**
|
|
611
609
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
612
610
|
*/
|
|
613
611
|
mediaTypes(): Array<string>;
|
|
614
612
|
/**
|
|
615
|
-
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `
|
|
613
|
+
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `sink`, and
|
|
616
614
|
* return exactly where it landed. Never embeds: the SDK writes the signed manifest into
|
|
617
615
|
* the returned regions.
|
|
618
616
|
*
|
|
@@ -620,9 +618,9 @@ export interface MxfAuthorLike {
|
|
|
620
618
|
*
|
|
621
619
|
* [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
|
|
622
620
|
*/
|
|
623
|
-
reserveSlot(
|
|
621
|
+
reserveSlot(sink: RangeSink, reserve: bigint, asyncOpts_?: {
|
|
624
622
|
signal: AbortSignal;
|
|
625
|
-
}): Promise<Array<
|
|
623
|
+
}): Promise<Array<ByteRange>>;
|
|
626
624
|
/**
|
|
627
625
|
* Recognize MXF from the real bytes, or `None` to decline.
|
|
628
626
|
*
|
|
@@ -630,7 +628,7 @@ export interface MxfAuthorLike {
|
|
|
630
628
|
*
|
|
631
629
|
* [`SdkError`] when the source cannot be read.
|
|
632
630
|
*/
|
|
633
|
-
sniff(
|
|
631
|
+
sniff(source: RangeSource, asyncOpts_?: {
|
|
634
632
|
signal: AbortSignal;
|
|
635
633
|
}): Promise<string | undefined>;
|
|
636
634
|
}
|
|
@@ -659,15 +657,15 @@ export declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthor
|
|
|
659
657
|
*
|
|
660
658
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
661
659
|
*/
|
|
662
|
-
locate(
|
|
660
|
+
locate(source: RangeSource, asyncOpts_?: {
|
|
663
661
|
signal: AbortSignal;
|
|
664
|
-
}): Promise<Array<
|
|
662
|
+
}): Promise<Array<ByteRange>>;
|
|
665
663
|
/**
|
|
666
664
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
667
665
|
*/
|
|
668
666
|
mediaTypes(): Array<string>;
|
|
669
667
|
/**
|
|
670
|
-
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `
|
|
668
|
+
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `sink`, and
|
|
671
669
|
* return exactly where it landed. Never embeds: the SDK writes the signed manifest into
|
|
672
670
|
* the returned regions.
|
|
673
671
|
*
|
|
@@ -675,9 +673,9 @@ export declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthor
|
|
|
675
673
|
*
|
|
676
674
|
* [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
|
|
677
675
|
*/
|
|
678
|
-
reserveSlot(
|
|
676
|
+
reserveSlot(sink: RangeSink, reserve: bigint, asyncOpts_?: {
|
|
679
677
|
signal: AbortSignal;
|
|
680
|
-
}): Promise<Array<
|
|
678
|
+
}): Promise<Array<ByteRange>>;
|
|
681
679
|
/**
|
|
682
680
|
* Recognize MXF from the real bytes, or `None` to decline.
|
|
683
681
|
*
|
|
@@ -685,7 +683,7 @@ export declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthor
|
|
|
685
683
|
*
|
|
686
684
|
* [`SdkError`] when the source cannot be read.
|
|
687
685
|
*/
|
|
688
|
-
sniff(
|
|
686
|
+
sniff(source: RangeSource, asyncOpts_?: {
|
|
689
687
|
signal: AbortSignal;
|
|
690
688
|
}): Promise<string | undefined>;
|
|
691
689
|
uniffiDestroy(): void;
|
|
@@ -706,9 +704,9 @@ export interface MxfPluginLike {
|
|
|
706
704
|
*
|
|
707
705
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
708
706
|
*/
|
|
709
|
-
locate(
|
|
707
|
+
locate(source: RangeSource, asyncOpts_?: {
|
|
710
708
|
signal: AbortSignal;
|
|
711
|
-
}): Promise<Array<
|
|
709
|
+
}): Promise<Array<ByteRange>>;
|
|
712
710
|
/**
|
|
713
711
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
714
712
|
*/
|
|
@@ -720,7 +718,7 @@ export interface MxfPluginLike {
|
|
|
720
718
|
*
|
|
721
719
|
* [`SdkError`] when the source cannot be read.
|
|
722
720
|
*/
|
|
723
|
-
sniff(
|
|
721
|
+
sniff(source: RangeSource, asyncOpts_?: {
|
|
724
722
|
signal: AbortSignal;
|
|
725
723
|
}): Promise<string | undefined>;
|
|
726
724
|
}
|
|
@@ -747,9 +745,9 @@ export declare class MxfPlugin extends UniffiAbstractObject implements MxfPlugin
|
|
|
747
745
|
*
|
|
748
746
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
749
747
|
*/
|
|
750
|
-
locate(
|
|
748
|
+
locate(source: RangeSource, asyncOpts_?: {
|
|
751
749
|
signal: AbortSignal;
|
|
752
|
-
}): Promise<Array<
|
|
750
|
+
}): Promise<Array<ByteRange>>;
|
|
753
751
|
/**
|
|
754
752
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
755
753
|
*/
|
|
@@ -761,7 +759,7 @@ export declare class MxfPlugin extends UniffiAbstractObject implements MxfPlugin
|
|
|
761
759
|
*
|
|
762
760
|
* [`SdkError`] when the source cannot be read.
|
|
763
761
|
*/
|
|
764
|
-
sniff(
|
|
762
|
+
sniff(source: RangeSource, asyncOpts_?: {
|
|
765
763
|
signal: AbortSignal;
|
|
766
764
|
}): Promise<string | undefined>;
|
|
767
765
|
uniffiDestroy(): void;
|
|
@@ -781,6 +779,13 @@ declare function uniffiEnsureInitialized(): void;
|
|
|
781
779
|
declare const _default$1: Readonly<{
|
|
782
780
|
initialize: typeof uniffiEnsureInitialized;
|
|
783
781
|
converters: {
|
|
782
|
+
FfiConverterTypeByteRange: {
|
|
783
|
+
readFromCursor(c: Cursor): ByteRange;
|
|
784
|
+
writeIntoCursor(value: ByteRange, c: Cursor): void;
|
|
785
|
+
allocationSize(value: ByteRange): number;
|
|
786
|
+
lift(value: UniffiByteArray): ByteRange;
|
|
787
|
+
lower(value: ByteRange, alloc: RustBufferAllocator): UniffiByteArray;
|
|
788
|
+
};
|
|
784
789
|
FfiConverterTypeCode: {
|
|
785
790
|
readFromCursor(c: Cursor): Code;
|
|
786
791
|
writeIntoCursor(value: Code, c: Cursor): void;
|
|
@@ -797,13 +802,6 @@ declare const _default$1: Readonly<{
|
|
|
797
802
|
};
|
|
798
803
|
FfiConverterTypeMxfAuthor: FfiConverterObject<MxfAuthorLike>;
|
|
799
804
|
FfiConverterTypeMxfPlugin: FfiConverterObject<MxfPluginLike>;
|
|
800
|
-
FfiConverterTypeRegion: {
|
|
801
|
-
readFromCursor(c: Cursor): Region;
|
|
802
|
-
writeIntoCursor(value: Region, c: Cursor): void;
|
|
803
|
-
allocationSize(value: Region): number;
|
|
804
|
-
lift(value: UniffiByteArray): Region;
|
|
805
|
-
lower(value: Region, alloc: RustBufferAllocator): UniffiByteArray;
|
|
806
|
-
};
|
|
807
805
|
FfiConverterTypeSdkError: {
|
|
808
806
|
readFromCursor(c: Cursor): SdkError;
|
|
809
807
|
writeIntoCursor(value: SdkError, c: Cursor): void;
|
package/gen/ffi/index.js
CHANGED
|
@@ -1856,35 +1856,21 @@ const getter = () => {
|
|
|
1856
1856
|
//#endregion
|
|
1857
1857
|
//#region ../../../../../target/trylimbo/codegen/ffi-trylimbo_plugin_mxf/trylimbo_plugin_mxf.ts
|
|
1858
1858
|
var trylimbo_plugin_mxf_exports = /* @__PURE__ */ __exportAll({
|
|
1859
|
+
ByteRange: () => ByteRange,
|
|
1859
1860
|
Code: () => Code,
|
|
1860
1861
|
FieldViolation: () => FieldViolation,
|
|
1861
1862
|
MxfAuthor: () => MxfAuthor,
|
|
1862
1863
|
MxfPlugin: () => MxfPlugin,
|
|
1863
|
-
Region: () => Region,
|
|
1864
1864
|
SdkError: () => SdkError,
|
|
1865
1865
|
SdkError_Tags: () => SdkError_Tags,
|
|
1866
1866
|
default: () => trylimbo_plugin_mxf_default
|
|
1867
1867
|
});
|
|
1868
1868
|
const uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
1869
1869
|
const uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
|
|
1870
|
-
const FfiConverterString = uniffiCreateFfiConverterString((() => {
|
|
1871
|
-
const encoder = new TextEncoder();
|
|
1872
|
-
const decoder = new TextDecoder();
|
|
1873
|
-
return {
|
|
1874
|
-
stringToBytes: (s) => encoder.encode(s),
|
|
1875
|
-
bytesToString: (ab) => decoder.decode(ab),
|
|
1876
|
-
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
1877
|
-
writeStringIntoBuffer: (s, buf, offset) => {
|
|
1878
|
-
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
1879
|
-
return encoder.encodeInto(s, view).written;
|
|
1880
|
-
},
|
|
1881
|
-
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
|
|
1882
|
-
};
|
|
1883
|
-
})());
|
|
1884
1870
|
/**
|
|
1885
|
-
* Generated factory for {@link
|
|
1871
|
+
* Generated factory for {@link ByteRange} record objects.
|
|
1886
1872
|
*/
|
|
1887
|
-
const
|
|
1873
|
+
const ByteRange = (() => {
|
|
1888
1874
|
const defaults = () => ({});
|
|
1889
1875
|
const create = (() => {
|
|
1890
1876
|
return uniffiCreateRecord(defaults);
|
|
@@ -1895,30 +1881,42 @@ const FieldViolation = (() => {
|
|
|
1895
1881
|
defaults: () => Object.freeze(defaults())
|
|
1896
1882
|
});
|
|
1897
1883
|
})();
|
|
1898
|
-
const
|
|
1884
|
+
const FfiConverterTypeByteRange = (() => {
|
|
1899
1885
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1900
1886
|
readFromCursor(c) {
|
|
1901
1887
|
return {
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
reason: FfiConverterString.readFromCursor(c)
|
|
1888
|
+
offset: FfiConverterUInt64.readFromCursor(c),
|
|
1889
|
+
length: FfiConverterUInt64.readFromCursor(c)
|
|
1905
1890
|
};
|
|
1906
1891
|
}
|
|
1907
1892
|
writeIntoCursor(value, c) {
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
FfiConverterString.writeIntoCursor(value.reason, c);
|
|
1893
|
+
FfiConverterUInt64.writeIntoCursor(value.offset, c);
|
|
1894
|
+
FfiConverterUInt64.writeIntoCursor(value.length, c);
|
|
1911
1895
|
}
|
|
1912
1896
|
allocationSize(value) {
|
|
1913
|
-
return
|
|
1897
|
+
return FfiConverterUInt64.allocationSize(value.offset) + FfiConverterUInt64.allocationSize(value.length);
|
|
1914
1898
|
}
|
|
1915
1899
|
}
|
|
1916
1900
|
return new FFIConverter();
|
|
1917
1901
|
})();
|
|
1902
|
+
const FfiConverterString = uniffiCreateFfiConverterString((() => {
|
|
1903
|
+
const encoder = new TextEncoder();
|
|
1904
|
+
const decoder = new TextDecoder();
|
|
1905
|
+
return {
|
|
1906
|
+
stringToBytes: (s) => encoder.encode(s),
|
|
1907
|
+
bytesToString: (ab) => decoder.decode(ab),
|
|
1908
|
+
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
1909
|
+
writeStringIntoBuffer: (s, buf, offset) => {
|
|
1910
|
+
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
1911
|
+
return encoder.encodeInto(s, view).written;
|
|
1912
|
+
},
|
|
1913
|
+
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
|
|
1914
|
+
};
|
|
1915
|
+
})());
|
|
1918
1916
|
/**
|
|
1919
|
-
* Generated factory for {@link
|
|
1917
|
+
* Generated factory for {@link FieldViolation} record objects.
|
|
1920
1918
|
*/
|
|
1921
|
-
const
|
|
1919
|
+
const FieldViolation = (() => {
|
|
1922
1920
|
const defaults = () => ({});
|
|
1923
1921
|
const create = (() => {
|
|
1924
1922
|
return uniffiCreateRecord(defaults);
|
|
@@ -1929,30 +1927,28 @@ const Region = (() => {
|
|
|
1929
1927
|
defaults: () => Object.freeze(defaults())
|
|
1930
1928
|
});
|
|
1931
1929
|
})();
|
|
1932
|
-
const
|
|
1930
|
+
const FfiConverterTypeFieldViolation = (() => {
|
|
1933
1931
|
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1934
1932
|
readFromCursor(c) {
|
|
1935
1933
|
return {
|
|
1936
|
-
|
|
1937
|
-
|
|
1934
|
+
field: FfiConverterString.readFromCursor(c),
|
|
1935
|
+
description: FfiConverterString.readFromCursor(c),
|
|
1936
|
+
reason: FfiConverterString.readFromCursor(c)
|
|
1938
1937
|
};
|
|
1939
1938
|
}
|
|
1940
1939
|
writeIntoCursor(value, c) {
|
|
1941
|
-
|
|
1942
|
-
|
|
1940
|
+
FfiConverterString.writeIntoCursor(value.field, c);
|
|
1941
|
+
FfiConverterString.writeIntoCursor(value.description, c);
|
|
1942
|
+
FfiConverterString.writeIntoCursor(value.reason, c);
|
|
1943
1943
|
}
|
|
1944
1944
|
allocationSize(value) {
|
|
1945
|
-
return
|
|
1945
|
+
return FfiConverterString.allocationSize(value.field) + FfiConverterString.allocationSize(value.description) + FfiConverterString.allocationSize(value.reason);
|
|
1946
1946
|
}
|
|
1947
1947
|
}
|
|
1948
1948
|
return new FFIConverter();
|
|
1949
1949
|
})();
|
|
1950
1950
|
/**
|
|
1951
1951
|
* A canonical gRPC/Connect status code: the coarse, closed failure class.
|
|
1952
|
-
*
|
|
1953
|
-
* The wasm lane projects this as a camelCase string like every other tagged value
|
|
1954
|
-
* there, so a consumer narrows on `err.code === "resourceExhausted"`; the native lane
|
|
1955
|
-
* projects an enum.
|
|
1956
1952
|
*/
|
|
1957
1953
|
let Code = /* @__PURE__ */ function(Code) {
|
|
1958
1954
|
Code[Code["Canceled"] = 0] = "Canceled";
|
|
@@ -2366,14 +2362,14 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2366
2362
|
*
|
|
2367
2363
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
2368
2364
|
*/
|
|
2369
|
-
async locate(
|
|
2365
|
+
async locate(source, asyncOpts_) {
|
|
2370
2366
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2371
2367
|
try {
|
|
2372
2368
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2373
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_locate(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2369
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_locate(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(source, getter().rustbuffer_alloc));
|
|
2374
2370
|
}, getter().ffi_trylimbo_plugin_mxf_rust_future_poll_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_complete_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_free_rust_buffer, (__rb) => {
|
|
2375
2371
|
try {
|
|
2376
|
-
return
|
|
2372
|
+
return FfiConverterSequenceTypeByteRange.lift(__rb);
|
|
2377
2373
|
} finally {
|
|
2378
2374
|
getter().rustbuffer_free(__rb);
|
|
2379
2375
|
}
|
|
@@ -2397,7 +2393,7 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2397
2393
|
}
|
|
2398
2394
|
}
|
|
2399
2395
|
/**
|
|
2400
|
-
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `
|
|
2396
|
+
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `sink`, and
|
|
2401
2397
|
* return exactly where it landed. Never embeds: the SDK writes the signed manifest into
|
|
2402
2398
|
* the returned regions.
|
|
2403
2399
|
*
|
|
@@ -2405,14 +2401,14 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2405
2401
|
*
|
|
2406
2402
|
* [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
|
|
2407
2403
|
*/
|
|
2408
|
-
async reserveSlot(
|
|
2404
|
+
async reserveSlot(sink, reserve, asyncOpts_) {
|
|
2409
2405
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2410
2406
|
try {
|
|
2411
2407
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2412
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_reserve_slot(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSink.lower(
|
|
2408
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_reserve_slot(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSink.lower(sink, getter().rustbuffer_alloc), FfiConverterUInt64.lower(reserve, getter().rustbuffer_alloc));
|
|
2413
2409
|
}, getter().ffi_trylimbo_plugin_mxf_rust_future_poll_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_complete_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_free_rust_buffer, (__rb) => {
|
|
2414
2410
|
try {
|
|
2415
|
-
return
|
|
2411
|
+
return FfiConverterSequenceTypeByteRange.lift(__rb);
|
|
2416
2412
|
} finally {
|
|
2417
2413
|
getter().rustbuffer_free(__rb);
|
|
2418
2414
|
}
|
|
@@ -2429,11 +2425,11 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2429
2425
|
*
|
|
2430
2426
|
* [`SdkError`] when the source cannot be read.
|
|
2431
2427
|
*/
|
|
2432
|
-
async sniff(
|
|
2428
|
+
async sniff(source, asyncOpts_) {
|
|
2433
2429
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2434
2430
|
try {
|
|
2435
2431
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2436
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_sniff(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2432
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_sniff(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(source, getter().rustbuffer_alloc));
|
|
2437
2433
|
}, getter().ffi_trylimbo_plugin_mxf_rust_future_poll_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_complete_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_free_rust_buffer, (__rb) => {
|
|
2438
2434
|
try {
|
|
2439
2435
|
return FfiConverterOptionalString.lift(__rb);
|
|
@@ -2525,14 +2521,14 @@ var MxfPlugin = class extends UniffiAbstractObject {
|
|
|
2525
2521
|
*
|
|
2526
2522
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
2527
2523
|
*/
|
|
2528
|
-
async locate(
|
|
2524
|
+
async locate(source, asyncOpts_) {
|
|
2529
2525
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2530
2526
|
try {
|
|
2531
2527
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2532
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_locate(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2528
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_locate(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(source, getter().rustbuffer_alloc));
|
|
2533
2529
|
}, getter().ffi_trylimbo_plugin_mxf_rust_future_poll_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_complete_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_free_rust_buffer, (__rb) => {
|
|
2534
2530
|
try {
|
|
2535
|
-
return
|
|
2531
|
+
return FfiConverterSequenceTypeByteRange.lift(__rb);
|
|
2536
2532
|
} finally {
|
|
2537
2533
|
getter().rustbuffer_free(__rb);
|
|
2538
2534
|
}
|
|
@@ -2562,11 +2558,11 @@ var MxfPlugin = class extends UniffiAbstractObject {
|
|
|
2562
2558
|
*
|
|
2563
2559
|
* [`SdkError`] when the source cannot be read.
|
|
2564
2560
|
*/
|
|
2565
|
-
async sniff(
|
|
2561
|
+
async sniff(source, asyncOpts_) {
|
|
2566
2562
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2567
2563
|
try {
|
|
2568
2564
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2569
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_sniff(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2565
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_sniff(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(source, getter().rustbuffer_alloc));
|
|
2570
2566
|
}, getter().ffi_trylimbo_plugin_mxf_rust_future_poll_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_cancel_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_complete_rust_buffer, getter().ffi_trylimbo_plugin_mxf_rust_future_free_rust_buffer, (__rb) => {
|
|
2571
2567
|
try {
|
|
2572
2568
|
return FfiConverterOptionalString.lift(__rb);
|
|
@@ -2634,7 +2630,7 @@ const uniffiTypeMxfPluginObjectFactory = (() => {
|
|
|
2634
2630
|
const FfiConverterTypeMxfPlugin = new FfiConverterObject(uniffiTypeMxfPluginObjectFactory);
|
|
2635
2631
|
const FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
2636
2632
|
const FfiConverterSequenceTypeFieldViolation = new FfiConverterArray(FfiConverterTypeFieldViolation);
|
|
2637
|
-
const
|
|
2633
|
+
const FfiConverterSequenceTypeByteRange = new FfiConverterArray(FfiConverterTypeByteRange);
|
|
2638
2634
|
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
2639
2635
|
const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
2640
2636
|
/**
|
|
@@ -2652,25 +2648,25 @@ function uniffiEnsureInitialized() {
|
|
|
2652
2648
|
const scaffoldingContractVersion = getter().ffi_trylimbo_plugin_mxf_uniffi_contract_version();
|
|
2653
2649
|
if (bindingsContractVersion !== scaffoldingContractVersion) throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
2654
2650
|
if (getter().uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfauthor_new() !== 26244) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfauthor_new");
|
|
2655
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_locate() !==
|
|
2651
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_locate() !== 31161) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_locate");
|
|
2656
2652
|
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_media_types() !== 26985) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_media_types");
|
|
2657
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_reserve_slot() !==
|
|
2658
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_sniff() !==
|
|
2653
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_reserve_slot() !== 12744) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_reserve_slot");
|
|
2654
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_sniff() !== 36852) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_sniff");
|
|
2659
2655
|
if (getter().uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfplugin_new() !== 63791) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfplugin_new");
|
|
2660
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_locate() !==
|
|
2656
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_locate() !== 32154) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_locate");
|
|
2661
2657
|
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_media_types() !== 44782) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_media_types");
|
|
2662
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_sniff() !==
|
|
2658
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_sniff() !== 4832) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_sniff");
|
|
2663
2659
|
uniffiCallbackInterfaceRangeSource.register();
|
|
2664
2660
|
uniffiCallbackInterfaceRangeSink.register();
|
|
2665
2661
|
}
|
|
2666
2662
|
var trylimbo_plugin_mxf_default = Object.freeze({
|
|
2667
2663
|
initialize: uniffiEnsureInitialized,
|
|
2668
2664
|
converters: {
|
|
2665
|
+
FfiConverterTypeByteRange,
|
|
2669
2666
|
FfiConverterTypeCode,
|
|
2670
2667
|
FfiConverterTypeFieldViolation,
|
|
2671
2668
|
FfiConverterTypeMxfAuthor,
|
|
2672
2669
|
FfiConverterTypeMxfPlugin,
|
|
2673
|
-
FfiConverterTypeRegion,
|
|
2674
2670
|
FfiConverterTypeSdkError
|
|
2675
2671
|
}
|
|
2676
2672
|
});
|
|
@@ -2684,4 +2680,4 @@ if (!initialized) {
|
|
|
2684
2680
|
async function uniffiInitAsync() {}
|
|
2685
2681
|
var ffi_trylimbo_plugin_mxf_default = { trylimbo_plugin_mxf: trylimbo_plugin_mxf_exports };
|
|
2686
2682
|
//#endregion
|
|
2687
|
-
export { Code, FieldViolation, MxfAuthor, MxfPlugin,
|
|
2683
|
+
export { ByteRange, Code, FieldViolation, MxfAuthor, MxfPlugin, SdkError, SdkError_Tags, ffi_trylimbo_plugin_mxf_default as default, uniffiInitAsync };
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"optionalDependencies": {
|
|
3
|
-
"@trylimbo/sdk-plugin-mxf-linux-arm64-gnu": "0.2.
|
|
4
|
-
"@trylimbo/sdk-plugin-mxf-linux-x64-gnu": "0.2.
|
|
3
|
+
"@trylimbo/sdk-plugin-mxf-linux-arm64-gnu": "0.2.25-canary.37",
|
|
4
|
+
"@trylimbo/sdk-plugin-mxf-linux-x64-gnu": "0.2.25-canary.37",
|
|
5
5
|
"@ubjs/node-linux-arm64-gnu": "0.31.0-5",
|
|
6
6
|
"@ubjs/node-linux-x64-gnu": "0.31.0-5"
|
|
7
7
|
},
|
|
8
8
|
"name": "@trylimbo/sdk-plugin-mxf",
|
|
9
|
-
"version": "0.2.
|
|
9
|
+
"version": "0.2.25-canary.37",
|
|
10
10
|
"license": "UNLICENSED",
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"test": "node --test \"test/*.test.mjs\""
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"@trylimbo/sdk-issuer": "0.2.
|
|
42
|
-
"@trylimbo/sdk-verifier": "0.2.
|
|
41
|
+
"@trylimbo/sdk-issuer": "0.2.24",
|
|
42
|
+
"@trylimbo/sdk-verifier": "0.2.24"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@trylimbo/sdk-issuer": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@trylimbo/sdk-issuer": "^0.2.
|
|
54
|
-
"@trylimbo/sdk-verifier": "^0.2.
|
|
53
|
+
"@trylimbo/sdk-issuer": "^0.2.24",
|
|
54
|
+
"@trylimbo/sdk-verifier": "^0.2.24",
|
|
55
55
|
"typescript": "^7.0.2",
|
|
56
56
|
"uniffi-bindgen-react-native": "0.31.0-5"
|
|
57
57
|
}
|