@trylimbo/sdk-plugin-mxf 0.2.25-canary.37 → 0.2.25
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 +48 -46
- package/gen/ffi/index.js +59 -55
- package/package.json +7 -7
package/gen/ffi/index.d.ts
CHANGED
|
@@ -150,32 +150,14 @@ 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 {
|
|
153
|
+
export { Code, FieldViolation, MxfAuthor, MxfAuthorInterface, MxfAuthorLike, MxfPlugin, MxfPluginInterface, MxfPluginLike, RangeSink, RangeSource, Region, 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
|
-
}>;
|
|
171
155
|
/**
|
|
172
156
|
* One `google.rpc.BadRequest.FieldViolation`: a request field that failed a constraint.
|
|
173
157
|
*/
|
|
174
158
|
export type FieldViolation = {
|
|
175
159
|
/**
|
|
176
|
-
*
|
|
177
|
-
* (`options.soft_bindings[1].alg`), at the request when a service does
|
|
178
|
-
* (`provenance.actions[0].label`).
|
|
160
|
+
* A dotted proto path to the offending field (`""` for a message-level rule).
|
|
179
161
|
*/
|
|
180
162
|
field: string;
|
|
181
163
|
/**
|
|
@@ -183,7 +165,7 @@ export type FieldViolation = {
|
|
|
183
165
|
*/
|
|
184
166
|
description: string;
|
|
185
167
|
/**
|
|
186
|
-
* The
|
|
168
|
+
* The constraint id that failed (a protovalidate/CEL rule id), stable across releases.
|
|
187
169
|
*/
|
|
188
170
|
reason: string;
|
|
189
171
|
};
|
|
@@ -195,8 +177,28 @@ export declare const FieldViolation: Readonly<{
|
|
|
195
177
|
new: (partial: Partial<FieldViolation> & Required<Omit<FieldViolation, never>>) => FieldViolation;
|
|
196
178
|
defaults: () => Partial<FieldViolation>;
|
|
197
179
|
}>;
|
|
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
|
+
}>;
|
|
198
196
|
/**
|
|
199
197
|
* 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.
|
|
200
202
|
*/
|
|
201
203
|
export declare enum Code {
|
|
202
204
|
Canceled = 0,
|
|
@@ -602,15 +604,15 @@ export interface MxfAuthorLike {
|
|
|
602
604
|
*
|
|
603
605
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
604
606
|
*/
|
|
605
|
-
locate(
|
|
607
|
+
locate(src: RangeSource, asyncOpts_?: {
|
|
606
608
|
signal: AbortSignal;
|
|
607
|
-
}): Promise<Array<
|
|
609
|
+
}): Promise<Array<Region>>;
|
|
608
610
|
/**
|
|
609
611
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
610
612
|
*/
|
|
611
613
|
mediaTypes(): Array<string>;
|
|
612
614
|
/**
|
|
613
|
-
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `
|
|
615
|
+
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `dst`, and
|
|
614
616
|
* return exactly where it landed. Never embeds: the SDK writes the signed manifest into
|
|
615
617
|
* the returned regions.
|
|
616
618
|
*
|
|
@@ -618,9 +620,9 @@ export interface MxfAuthorLike {
|
|
|
618
620
|
*
|
|
619
621
|
* [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
|
|
620
622
|
*/
|
|
621
|
-
reserveSlot(
|
|
623
|
+
reserveSlot(dst: RangeSink, reserve: bigint, asyncOpts_?: {
|
|
622
624
|
signal: AbortSignal;
|
|
623
|
-
}): Promise<Array<
|
|
625
|
+
}): Promise<Array<Region>>;
|
|
624
626
|
/**
|
|
625
627
|
* Recognize MXF from the real bytes, or `None` to decline.
|
|
626
628
|
*
|
|
@@ -628,7 +630,7 @@ export interface MxfAuthorLike {
|
|
|
628
630
|
*
|
|
629
631
|
* [`SdkError`] when the source cannot be read.
|
|
630
632
|
*/
|
|
631
|
-
sniff(
|
|
633
|
+
sniff(src: RangeSource, asyncOpts_?: {
|
|
632
634
|
signal: AbortSignal;
|
|
633
635
|
}): Promise<string | undefined>;
|
|
634
636
|
}
|
|
@@ -657,15 +659,15 @@ export declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthor
|
|
|
657
659
|
*
|
|
658
660
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
659
661
|
*/
|
|
660
|
-
locate(
|
|
662
|
+
locate(src: RangeSource, asyncOpts_?: {
|
|
661
663
|
signal: AbortSignal;
|
|
662
|
-
}): Promise<Array<
|
|
664
|
+
}): Promise<Array<Region>>;
|
|
663
665
|
/**
|
|
664
666
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
665
667
|
*/
|
|
666
668
|
mediaTypes(): Array<string>;
|
|
667
669
|
/**
|
|
668
|
-
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `
|
|
670
|
+
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `dst`, and
|
|
669
671
|
* return exactly where it landed. Never embeds: the SDK writes the signed manifest into
|
|
670
672
|
* the returned regions.
|
|
671
673
|
*
|
|
@@ -673,9 +675,9 @@ export declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthor
|
|
|
673
675
|
*
|
|
674
676
|
* [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
|
|
675
677
|
*/
|
|
676
|
-
reserveSlot(
|
|
678
|
+
reserveSlot(dst: RangeSink, reserve: bigint, asyncOpts_?: {
|
|
677
679
|
signal: AbortSignal;
|
|
678
|
-
}): Promise<Array<
|
|
680
|
+
}): Promise<Array<Region>>;
|
|
679
681
|
/**
|
|
680
682
|
* Recognize MXF from the real bytes, or `None` to decline.
|
|
681
683
|
*
|
|
@@ -683,7 +685,7 @@ export declare class MxfAuthor extends UniffiAbstractObject implements MxfAuthor
|
|
|
683
685
|
*
|
|
684
686
|
* [`SdkError`] when the source cannot be read.
|
|
685
687
|
*/
|
|
686
|
-
sniff(
|
|
688
|
+
sniff(src: RangeSource, asyncOpts_?: {
|
|
687
689
|
signal: AbortSignal;
|
|
688
690
|
}): Promise<string | undefined>;
|
|
689
691
|
uniffiDestroy(): void;
|
|
@@ -704,9 +706,9 @@ export interface MxfPluginLike {
|
|
|
704
706
|
*
|
|
705
707
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
706
708
|
*/
|
|
707
|
-
locate(
|
|
709
|
+
locate(src: RangeSource, asyncOpts_?: {
|
|
708
710
|
signal: AbortSignal;
|
|
709
|
-
}): Promise<Array<
|
|
711
|
+
}): Promise<Array<Region>>;
|
|
710
712
|
/**
|
|
711
713
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
712
714
|
*/
|
|
@@ -718,7 +720,7 @@ export interface MxfPluginLike {
|
|
|
718
720
|
*
|
|
719
721
|
* [`SdkError`] when the source cannot be read.
|
|
720
722
|
*/
|
|
721
|
-
sniff(
|
|
723
|
+
sniff(src: RangeSource, asyncOpts_?: {
|
|
722
724
|
signal: AbortSignal;
|
|
723
725
|
}): Promise<string | undefined>;
|
|
724
726
|
}
|
|
@@ -745,9 +747,9 @@ export declare class MxfPlugin extends UniffiAbstractObject implements MxfPlugin
|
|
|
745
747
|
*
|
|
746
748
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
747
749
|
*/
|
|
748
|
-
locate(
|
|
750
|
+
locate(src: RangeSource, asyncOpts_?: {
|
|
749
751
|
signal: AbortSignal;
|
|
750
|
-
}): Promise<Array<
|
|
752
|
+
}): Promise<Array<Region>>;
|
|
751
753
|
/**
|
|
752
754
|
* The media types this plugin owns. The SDK asserts any `sniff` result is a member.
|
|
753
755
|
*/
|
|
@@ -759,7 +761,7 @@ export declare class MxfPlugin extends UniffiAbstractObject implements MxfPlugin
|
|
|
759
761
|
*
|
|
760
762
|
* [`SdkError`] when the source cannot be read.
|
|
761
763
|
*/
|
|
762
|
-
sniff(
|
|
764
|
+
sniff(src: RangeSource, asyncOpts_?: {
|
|
763
765
|
signal: AbortSignal;
|
|
764
766
|
}): Promise<string | undefined>;
|
|
765
767
|
uniffiDestroy(): void;
|
|
@@ -779,13 +781,6 @@ declare function uniffiEnsureInitialized(): void;
|
|
|
779
781
|
declare const _default$1: Readonly<{
|
|
780
782
|
initialize: typeof uniffiEnsureInitialized;
|
|
781
783
|
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
|
-
};
|
|
789
784
|
FfiConverterTypeCode: {
|
|
790
785
|
readFromCursor(c: Cursor): Code;
|
|
791
786
|
writeIntoCursor(value: Code, c: Cursor): void;
|
|
@@ -802,6 +797,13 @@ declare const _default$1: Readonly<{
|
|
|
802
797
|
};
|
|
803
798
|
FfiConverterTypeMxfAuthor: FfiConverterObject<MxfAuthorLike>;
|
|
804
799
|
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
|
+
};
|
|
805
807
|
FfiConverterTypeSdkError: {
|
|
806
808
|
readFromCursor(c: Cursor): SdkError;
|
|
807
809
|
writeIntoCursor(value: SdkError, c: Cursor): void;
|
package/gen/ffi/index.js
CHANGED
|
@@ -1856,49 +1856,17 @@ 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,
|
|
1860
1859
|
Code: () => Code,
|
|
1861
1860
|
FieldViolation: () => FieldViolation,
|
|
1862
1861
|
MxfAuthor: () => MxfAuthor,
|
|
1863
1862
|
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
|
-
/**
|
|
1871
|
-
* Generated factory for {@link ByteRange} record objects.
|
|
1872
|
-
*/
|
|
1873
|
-
const ByteRange = (() => {
|
|
1874
|
-
const defaults = () => ({});
|
|
1875
|
-
const create = (() => {
|
|
1876
|
-
return uniffiCreateRecord(defaults);
|
|
1877
|
-
})();
|
|
1878
|
-
return Object.freeze({
|
|
1879
|
-
create,
|
|
1880
|
-
new: create,
|
|
1881
|
-
defaults: () => Object.freeze(defaults())
|
|
1882
|
-
});
|
|
1883
|
-
})();
|
|
1884
|
-
const FfiConverterTypeByteRange = (() => {
|
|
1885
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1886
|
-
readFromCursor(c) {
|
|
1887
|
-
return {
|
|
1888
|
-
offset: FfiConverterUInt64.readFromCursor(c),
|
|
1889
|
-
length: FfiConverterUInt64.readFromCursor(c)
|
|
1890
|
-
};
|
|
1891
|
-
}
|
|
1892
|
-
writeIntoCursor(value, c) {
|
|
1893
|
-
FfiConverterUInt64.writeIntoCursor(value.offset, c);
|
|
1894
|
-
FfiConverterUInt64.writeIntoCursor(value.length, c);
|
|
1895
|
-
}
|
|
1896
|
-
allocationSize(value) {
|
|
1897
|
-
return FfiConverterUInt64.allocationSize(value.offset) + FfiConverterUInt64.allocationSize(value.length);
|
|
1898
|
-
}
|
|
1899
|
-
}
|
|
1900
|
-
return new FFIConverter();
|
|
1901
|
-
})();
|
|
1902
1870
|
const FfiConverterString = uniffiCreateFfiConverterString((() => {
|
|
1903
1871
|
const encoder = new TextEncoder();
|
|
1904
1872
|
const decoder = new TextDecoder();
|
|
@@ -1948,7 +1916,43 @@ const FfiConverterTypeFieldViolation = (() => {
|
|
|
1948
1916
|
return new FFIConverter();
|
|
1949
1917
|
})();
|
|
1950
1918
|
/**
|
|
1919
|
+
* Generated factory for {@link Region} record objects.
|
|
1920
|
+
*/
|
|
1921
|
+
const Region = (() => {
|
|
1922
|
+
const defaults = () => ({});
|
|
1923
|
+
const create = (() => {
|
|
1924
|
+
return uniffiCreateRecord(defaults);
|
|
1925
|
+
})();
|
|
1926
|
+
return Object.freeze({
|
|
1927
|
+
create,
|
|
1928
|
+
new: create,
|
|
1929
|
+
defaults: () => Object.freeze(defaults())
|
|
1930
|
+
});
|
|
1931
|
+
})();
|
|
1932
|
+
const FfiConverterTypeRegion = (() => {
|
|
1933
|
+
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
1934
|
+
readFromCursor(c) {
|
|
1935
|
+
return {
|
|
1936
|
+
offset: FfiConverterUInt64.readFromCursor(c),
|
|
1937
|
+
length: FfiConverterUInt64.readFromCursor(c)
|
|
1938
|
+
};
|
|
1939
|
+
}
|
|
1940
|
+
writeIntoCursor(value, c) {
|
|
1941
|
+
FfiConverterUInt64.writeIntoCursor(value.offset, c);
|
|
1942
|
+
FfiConverterUInt64.writeIntoCursor(value.length, c);
|
|
1943
|
+
}
|
|
1944
|
+
allocationSize(value) {
|
|
1945
|
+
return FfiConverterUInt64.allocationSize(value.offset) + FfiConverterUInt64.allocationSize(value.length);
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1948
|
+
return new FFIConverter();
|
|
1949
|
+
})();
|
|
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.
|
|
1952
1956
|
*/
|
|
1953
1957
|
let Code = /* @__PURE__ */ function(Code) {
|
|
1954
1958
|
Code[Code["Canceled"] = 0] = "Canceled";
|
|
@@ -2362,14 +2366,14 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2362
2366
|
*
|
|
2363
2367
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
2364
2368
|
*/
|
|
2365
|
-
async locate(
|
|
2369
|
+
async locate(src, asyncOpts_) {
|
|
2366
2370
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2367
2371
|
try {
|
|
2368
2372
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2369
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_locate(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2373
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_locate(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(src, getter().rustbuffer_alloc));
|
|
2370
2374
|
}, 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) => {
|
|
2371
2375
|
try {
|
|
2372
|
-
return
|
|
2376
|
+
return FfiConverterSequenceTypeRegion.lift(__rb);
|
|
2373
2377
|
} finally {
|
|
2374
2378
|
getter().rustbuffer_free(__rb);
|
|
2375
2379
|
}
|
|
@@ -2393,7 +2397,7 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2393
2397
|
}
|
|
2394
2398
|
}
|
|
2395
2399
|
/**
|
|
2396
|
-
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `
|
|
2400
|
+
* Reserve `reserve` bytes of manifest slot by writing MXF structure through `dst`, and
|
|
2397
2401
|
* return exactly where it landed. Never embeds: the SDK writes the signed manifest into
|
|
2398
2402
|
* the returned regions.
|
|
2399
2403
|
*
|
|
@@ -2401,14 +2405,14 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2401
2405
|
*
|
|
2402
2406
|
* [`SdkError`] when the sink cannot be written or `reserve` exceeds a `u32` slot.
|
|
2403
2407
|
*/
|
|
2404
|
-
async reserveSlot(
|
|
2408
|
+
async reserveSlot(dst, reserve, asyncOpts_) {
|
|
2405
2409
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2406
2410
|
try {
|
|
2407
2411
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2408
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_reserve_slot(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSink.lower(
|
|
2412
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_reserve_slot(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSink.lower(dst, getter().rustbuffer_alloc), FfiConverterUInt64.lower(reserve, getter().rustbuffer_alloc));
|
|
2409
2413
|
}, 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) => {
|
|
2410
2414
|
try {
|
|
2411
|
-
return
|
|
2415
|
+
return FfiConverterSequenceTypeRegion.lift(__rb);
|
|
2412
2416
|
} finally {
|
|
2413
2417
|
getter().rustbuffer_free(__rb);
|
|
2414
2418
|
}
|
|
@@ -2425,11 +2429,11 @@ var MxfAuthor = class extends UniffiAbstractObject {
|
|
|
2425
2429
|
*
|
|
2426
2430
|
* [`SdkError`] when the source cannot be read.
|
|
2427
2431
|
*/
|
|
2428
|
-
async sniff(
|
|
2432
|
+
async sniff(src, asyncOpts_) {
|
|
2429
2433
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2430
2434
|
try {
|
|
2431
2435
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2432
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_sniff(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2436
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfauthor_sniff(uniffiTypeMxfAuthorObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(src, getter().rustbuffer_alloc));
|
|
2433
2437
|
}, 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) => {
|
|
2434
2438
|
try {
|
|
2435
2439
|
return FfiConverterOptionalString.lift(__rb);
|
|
@@ -2521,14 +2525,14 @@ var MxfPlugin = class extends UniffiAbstractObject {
|
|
|
2521
2525
|
*
|
|
2522
2526
|
* [`SdkError`] when the source cannot be read or the MXF structure is malformed.
|
|
2523
2527
|
*/
|
|
2524
|
-
async locate(
|
|
2528
|
+
async locate(src, asyncOpts_) {
|
|
2525
2529
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2526
2530
|
try {
|
|
2527
2531
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2528
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_locate(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2532
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_locate(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(src, getter().rustbuffer_alloc));
|
|
2529
2533
|
}, 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) => {
|
|
2530
2534
|
try {
|
|
2531
|
-
return
|
|
2535
|
+
return FfiConverterSequenceTypeRegion.lift(__rb);
|
|
2532
2536
|
} finally {
|
|
2533
2537
|
getter().rustbuffer_free(__rb);
|
|
2534
2538
|
}
|
|
@@ -2558,11 +2562,11 @@ var MxfPlugin = class extends UniffiAbstractObject {
|
|
|
2558
2562
|
*
|
|
2559
2563
|
* [`SdkError`] when the source cannot be read.
|
|
2560
2564
|
*/
|
|
2561
|
-
async sniff(
|
|
2565
|
+
async sniff(src, asyncOpts_) {
|
|
2562
2566
|
const __stack = uniffiIsDebug ? (/* @__PURE__ */ new Error()).stack : void 0;
|
|
2563
2567
|
try {
|
|
2564
2568
|
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
2565
|
-
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_sniff(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(
|
|
2569
|
+
return getter().uniffi_trylimbo_plugin_mxf_fn_method_mxfplugin_sniff(uniffiTypeMxfPluginObjectFactory.clonePointer(this), FfiConverterTypeRangeSource.lower(src, getter().rustbuffer_alloc));
|
|
2566
2570
|
}, 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) => {
|
|
2567
2571
|
try {
|
|
2568
2572
|
return FfiConverterOptionalString.lift(__rb);
|
|
@@ -2630,7 +2634,7 @@ const uniffiTypeMxfPluginObjectFactory = (() => {
|
|
|
2630
2634
|
const FfiConverterTypeMxfPlugin = new FfiConverterObject(uniffiTypeMxfPluginObjectFactory);
|
|
2631
2635
|
const FfiConverterMapStringString = new FfiConverterMap(FfiConverterString, FfiConverterString);
|
|
2632
2636
|
const FfiConverterSequenceTypeFieldViolation = new FfiConverterArray(FfiConverterTypeFieldViolation);
|
|
2633
|
-
const
|
|
2637
|
+
const FfiConverterSequenceTypeRegion = new FfiConverterArray(FfiConverterTypeRegion);
|
|
2634
2638
|
const FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
2635
2639
|
const FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
2636
2640
|
/**
|
|
@@ -2648,25 +2652,25 @@ function uniffiEnsureInitialized() {
|
|
|
2648
2652
|
const scaffoldingContractVersion = getter().ffi_trylimbo_plugin_mxf_uniffi_contract_version();
|
|
2649
2653
|
if (bindingsContractVersion !== scaffoldingContractVersion) throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
2650
2654
|
if (getter().uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfauthor_new() !== 26244) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfauthor_new");
|
|
2651
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_locate() !==
|
|
2655
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_locate() !== 45199) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_locate");
|
|
2652
2656
|
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");
|
|
2653
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_reserve_slot() !==
|
|
2654
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_sniff() !==
|
|
2657
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_reserve_slot() !== 48309) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_reserve_slot");
|
|
2658
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_sniff() !== 42367) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfauthor_sniff");
|
|
2655
2659
|
if (getter().uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfplugin_new() !== 63791) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_constructor_mxfplugin_new");
|
|
2656
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_locate() !==
|
|
2660
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_locate() !== 1210) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_locate");
|
|
2657
2661
|
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");
|
|
2658
|
-
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_sniff() !==
|
|
2662
|
+
if (getter().uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_sniff() !== 48535) throw new UniffiInternalError.ApiChecksumMismatch("uniffi_trylimbo_plugin_mxf_checksum_method_mxfplugin_sniff");
|
|
2659
2663
|
uniffiCallbackInterfaceRangeSource.register();
|
|
2660
2664
|
uniffiCallbackInterfaceRangeSink.register();
|
|
2661
2665
|
}
|
|
2662
2666
|
var trylimbo_plugin_mxf_default = Object.freeze({
|
|
2663
2667
|
initialize: uniffiEnsureInitialized,
|
|
2664
2668
|
converters: {
|
|
2665
|
-
FfiConverterTypeByteRange,
|
|
2666
2669
|
FfiConverterTypeCode,
|
|
2667
2670
|
FfiConverterTypeFieldViolation,
|
|
2668
2671
|
FfiConverterTypeMxfAuthor,
|
|
2669
2672
|
FfiConverterTypeMxfPlugin,
|
|
2673
|
+
FfiConverterTypeRegion,
|
|
2670
2674
|
FfiConverterTypeSdkError
|
|
2671
2675
|
}
|
|
2672
2676
|
});
|
|
@@ -2680,4 +2684,4 @@ if (!initialized) {
|
|
|
2680
2684
|
async function uniffiInitAsync() {}
|
|
2681
2685
|
var ffi_trylimbo_plugin_mxf_default = { trylimbo_plugin_mxf: trylimbo_plugin_mxf_exports };
|
|
2682
2686
|
//#endregion
|
|
2683
|
-
export {
|
|
2687
|
+
export { Code, FieldViolation, MxfAuthor, MxfPlugin, Region, 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.25
|
|
4
|
-
"@trylimbo/sdk-plugin-mxf-linux-x64-gnu": "0.2.25
|
|
3
|
+
"@trylimbo/sdk-plugin-mxf-linux-arm64-gnu": "0.2.25",
|
|
4
|
+
"@trylimbo/sdk-plugin-mxf-linux-x64-gnu": "0.2.25",
|
|
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.25
|
|
9
|
+
"version": "0.2.25",
|
|
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.25",
|
|
42
|
+
"@trylimbo/sdk-verifier": "0.2.25"
|
|
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.25",
|
|
54
|
+
"@trylimbo/sdk-verifier": "^0.2.25",
|
|
55
55
|
"typescript": "^7.0.2",
|
|
56
56
|
"uniffi-bindgen-react-native": "0.31.0-5"
|
|
57
57
|
}
|