@audiotool/nexus 0.0.9 → 0.0.10
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/api.js +2 -2
- package/dist/{audiotool-api-o8DnCQiu.js → audiotool-api-D9u-oGp3.js} +191 -184
- package/dist/document/backend/create-wasm-document-state.d.ts +11 -0
- package/dist/document/backend/document-service/connection/index.d.ts +37 -0
- package/dist/document/backend/document-service/connection/ping-notifier.d.ts +20 -0
- package/dist/document/backend/document-service/connection/transaction-receiver.d.ts +26 -0
- package/dist/document/backend/document-service/connection/transaction-receiver.test.d.ts +1 -0
- package/dist/document/backend/document-service/connection/transaction-sender.d.ts +17 -0
- package/dist/document/backend/document-service/connection/transaction-sender.test.d.ts +1 -0
- package/dist/document/backend/document-service/gateway.d.ts +19 -33
- package/dist/document/backend/gateway.d.ts +7 -0
- package/dist/document/backend/validator.d.ts +2 -0
- package/dist/document/document.d.ts +9 -1
- package/dist/document/event-manager.d.ts +5 -0
- package/dist/document/mock/mock-document-state.d.ts +1 -0
- package/dist/document.js +1 -1
- package/dist/{get-schema-location-details-D2lXBgbu.js → get-schema-location-details-CI3Fi5PK.js} +1 -1
- package/dist/{observable-notifier-value-pw47I_2-.js → hash-map-CMrPM1s6.js} +87 -88
- package/dist/index.js +1062 -1000
- package/dist/lang-K-8hAzE4.js +40 -0
- package/dist/login-status.d.ts +1 -2
- package/dist/synced-document.d.ts +19 -1
- package/dist/utils/combine-notifiers.d.ts +1 -1
- package/dist/utils/grpc/retrying-client.d.ts +2 -0
- package/dist/utils/lang.d.ts +17 -8
- package/dist/utils.js +3 -3
- package/package.json +1 -1
- package/dist/document/backend/document-service/wrapper/buffered-sender.d.ts +0 -29
- package/dist/document/backend/document-service/wrapper/create-ping-loop.d.ts +0 -8
- package/dist/document/backend/document-service/wrapper/create-receive-next-transaction-fn.d.ts +0 -15
- package/dist/document/backend/document-service/wrapper/wrapper.d.ts +0 -41
- package/dist/document/init-collab-gateway.d.ts +0 -6
- package/dist/lang-BqPY1uAS.js +0 -22
- /package/dist/{document/backend/document-service/wrapper/buffered-sender.test.d.ts → audiotool-client.test.d.ts} +0 -0
- /package/dist/document/backend/document-service/{wrapper/wrapper.test.d.ts → connection/ping-notifier.test.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var a = (i, s, t) =>
|
|
4
|
-
import { Message as e, proto3 as r, MethodKind as o, Any as Zt, Timestamp as d, FieldMask as mn, Duration as
|
|
5
|
-
import { createConnectTransport as
|
|
6
|
-
import { createClient as
|
|
7
|
-
import { s as
|
|
8
|
-
import { a as
|
|
1
|
+
var Sr = Object.defineProperty;
|
|
2
|
+
var wr = (i, s, t) => s in i ? Sr(i, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[s] = t;
|
|
3
|
+
var a = (i, s, t) => wr(i, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { Message as e, proto3 as r, MethodKind as o, Any as Zt, Timestamp as d, FieldMask as mn, Duration as cr, createRegistry as Er } from "@bufbuild/protobuf";
|
|
5
|
+
import { createConnectTransport as Ir } from "@connectrpc/connect-web";
|
|
6
|
+
import { createClient as gr, ConnectError as Jr, Code as Wa } from "@connectrpc/connect";
|
|
7
|
+
import { s as Pr, t as dr } from "./lang-K-8hAzE4.js";
|
|
8
|
+
import { a as fr, e as Or } from "./types-Cztu157p.js";
|
|
9
9
|
const S = class S extends e {
|
|
10
10
|
constructor(t) {
|
|
11
11
|
super();
|
|
@@ -173,7 +173,7 @@ a(g, "runtime", r), a(g, "typeName", "audiotool.audiograph.v1.GetAudiographsResp
|
|
|
173
173
|
{ no: 1, name: "audiographs", kind: "message", T: gn, repeated: !0 }
|
|
174
174
|
]));
|
|
175
175
|
let Pn = g;
|
|
176
|
-
const
|
|
176
|
+
const yr = {
|
|
177
177
|
typeName: "audiotool.audiograph.v1.AudiographService",
|
|
178
178
|
methods: {
|
|
179
179
|
/**
|
|
@@ -190,7 +190,7 @@ const Pr = {
|
|
|
190
190
|
}
|
|
191
191
|
};
|
|
192
192
|
var E;
|
|
193
|
-
let
|
|
193
|
+
let Tr = (E = class extends e {
|
|
194
194
|
constructor(t) {
|
|
195
195
|
super();
|
|
196
196
|
/**
|
|
@@ -312,7 +312,7 @@ a(J, "runtime", r), a(J, "typeName", "audiotool.project.v1.ProjectRole"), a(J, "
|
|
|
312
312
|
/* ScalarType.STRING */
|
|
313
313
|
}
|
|
314
314
|
]));
|
|
315
|
-
let
|
|
315
|
+
let sn = J;
|
|
316
316
|
const P = class P extends e {
|
|
317
317
|
constructor(t) {
|
|
318
318
|
super();
|
|
@@ -442,7 +442,7 @@ const O = class O extends e {
|
|
|
442
442
|
}
|
|
443
443
|
};
|
|
444
444
|
a(O, "runtime", r), a(O, "typeName", "audiotool.project.v1.ListProjectRolesResponse"), a(O, "fields", r.util.newFieldList(() => [
|
|
445
|
-
{ no: 1, name: "project_roles", kind: "message", T:
|
|
445
|
+
{ no: 1, name: "project_roles", kind: "message", T: sn, repeated: !0 },
|
|
446
446
|
{
|
|
447
447
|
no: 2,
|
|
448
448
|
name: "next_page_token",
|
|
@@ -495,7 +495,7 @@ a(y, "runtime", r), a(y, "typeName", "audiotool.project.v1.CreateProjectRoleRequ
|
|
|
495
495
|
T: 9
|
|
496
496
|
/* ScalarType.STRING */
|
|
497
497
|
},
|
|
498
|
-
{ no: 2, name: "project_role", kind: "message", T:
|
|
498
|
+
{ no: 2, name: "project_role", kind: "message", T: sn }
|
|
499
499
|
]));
|
|
500
500
|
let kn = y;
|
|
501
501
|
const k = class k extends e {
|
|
@@ -523,7 +523,7 @@ const k = class k extends e {
|
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
525
|
a(k, "runtime", r), a(k, "typeName", "audiotool.project.v1.CreateProjectRoleResponse"), a(k, "fields", r.util.newFieldList(() => [
|
|
526
|
-
{ no: 1, name: "project_role", kind: "message", T:
|
|
526
|
+
{ no: 1, name: "project_role", kind: "message", T: sn }
|
|
527
527
|
]));
|
|
528
528
|
let Nn = k;
|
|
529
529
|
const N = class N extends e {
|
|
@@ -611,11 +611,11 @@ const A = class A extends e {
|
|
|
611
611
|
}
|
|
612
612
|
};
|
|
613
613
|
a(A, "runtime", r), a(A, "typeName", "audiotool.project.v1.UpdateProjectRoleRequest"), a(A, "fields", r.util.newFieldList(() => [
|
|
614
|
-
{ no: 1, name: "project_role", kind: "message", T:
|
|
614
|
+
{ no: 1, name: "project_role", kind: "message", T: sn },
|
|
615
615
|
{ no: 2, name: "update_mask", kind: "message", T: mn }
|
|
616
616
|
]));
|
|
617
|
-
let
|
|
618
|
-
const
|
|
617
|
+
let Ln = A;
|
|
618
|
+
const L = class L extends e {
|
|
619
619
|
constructor(t) {
|
|
620
620
|
super();
|
|
621
621
|
/**
|
|
@@ -627,23 +627,23 @@ const p = class p extends e {
|
|
|
627
627
|
r.util.initPartial(t, this);
|
|
628
628
|
}
|
|
629
629
|
static fromBinary(t, n) {
|
|
630
|
-
return new
|
|
630
|
+
return new L().fromBinary(t, n);
|
|
631
631
|
}
|
|
632
632
|
static fromJson(t, n) {
|
|
633
|
-
return new
|
|
633
|
+
return new L().fromJson(t, n);
|
|
634
634
|
}
|
|
635
635
|
static fromJsonString(t, n) {
|
|
636
|
-
return new
|
|
636
|
+
return new L().fromJsonString(t, n);
|
|
637
637
|
}
|
|
638
638
|
static equals(t, n) {
|
|
639
|
-
return r.util.equals(
|
|
639
|
+
return r.util.equals(L, t, n);
|
|
640
640
|
}
|
|
641
641
|
};
|
|
642
|
-
a(
|
|
643
|
-
{ no: 1, name: "project_role", kind: "message", T:
|
|
642
|
+
a(L, "runtime", r), a(L, "typeName", "audiotool.project.v1.UpdateProjectRoleResponse"), a(L, "fields", r.util.newFieldList(() => [
|
|
643
|
+
{ no: 1, name: "project_role", kind: "message", T: sn }
|
|
644
644
|
]));
|
|
645
|
-
let
|
|
646
|
-
const
|
|
645
|
+
let pn = L;
|
|
646
|
+
const kr = {
|
|
647
647
|
typeName: "audiotool.project.v1.ProjectRoleService",
|
|
648
648
|
methods: {
|
|
649
649
|
/**
|
|
@@ -686,8 +686,8 @@ const Or = {
|
|
|
686
686
|
*/
|
|
687
687
|
updateProjectRole: {
|
|
688
688
|
name: "UpdateProjectRole",
|
|
689
|
-
I:
|
|
690
|
-
O:
|
|
689
|
+
I: Ln,
|
|
690
|
+
O: pn,
|
|
691
691
|
kind: o.Unary
|
|
692
692
|
}
|
|
693
693
|
}
|
|
@@ -701,7 +701,7 @@ r.util.setEnumType(Ha, "audiotool.project.v1.TrackLicense", [
|
|
|
701
701
|
{ no: 4, name: "TRACK_LICENSE_ALL_RIGHTS_RESERVED" },
|
|
702
702
|
{ no: 5, name: "TRACK_LICENSE_ROYALTY_FREE" }
|
|
703
703
|
]);
|
|
704
|
-
const
|
|
704
|
+
const p = class p extends e {
|
|
705
705
|
constructor(t) {
|
|
706
706
|
super();
|
|
707
707
|
/**
|
|
@@ -890,19 +890,19 @@ const L = class L extends e {
|
|
|
890
890
|
r.util.initPartial(t, this);
|
|
891
891
|
}
|
|
892
892
|
static fromBinary(t, n) {
|
|
893
|
-
return new
|
|
893
|
+
return new p().fromBinary(t, n);
|
|
894
894
|
}
|
|
895
895
|
static fromJson(t, n) {
|
|
896
|
-
return new
|
|
896
|
+
return new p().fromJson(t, n);
|
|
897
897
|
}
|
|
898
898
|
static fromJsonString(t, n) {
|
|
899
|
-
return new
|
|
899
|
+
return new p().fromJsonString(t, n);
|
|
900
900
|
}
|
|
901
901
|
static equals(t, n) {
|
|
902
|
-
return r.util.equals(
|
|
902
|
+
return r.util.equals(p, t, n);
|
|
903
903
|
}
|
|
904
904
|
};
|
|
905
|
-
a(
|
|
905
|
+
a(p, "runtime", r), a(p, "typeName", "audiotool.project.v1.Project"), a(p, "fields", r.util.newFieldList(() => [
|
|
906
906
|
{
|
|
907
907
|
no: 1,
|
|
908
908
|
name: "name",
|
|
@@ -962,7 +962,7 @@ a(L, "runtime", r), a(L, "typeName", "audiotool.project.v1.Project"), a(L, "fiel
|
|
|
962
962
|
},
|
|
963
963
|
{ no: 10, name: "create_time", kind: "message", T: d },
|
|
964
964
|
{ no: 11, name: "update_time", kind: "message", T: d },
|
|
965
|
-
{ no: 12, name: "play_duration", kind: "message", T:
|
|
965
|
+
{ no: 12, name: "play_duration", kind: "message", T: cr },
|
|
966
966
|
{ no: 13, name: "tags", kind: "scalar", T: 9, repeated: !0 },
|
|
967
967
|
{
|
|
968
968
|
no: 14,
|
|
@@ -1008,7 +1008,7 @@ a(L, "runtime", r), a(L, "typeName", "audiotool.project.v1.Project"), a(L, "fiel
|
|
|
1008
1008
|
},
|
|
1009
1009
|
{ no: 20, name: "license", kind: "enum", T: r.getEnumType(Ha) }
|
|
1010
1010
|
]));
|
|
1011
|
-
let f =
|
|
1011
|
+
let f = p;
|
|
1012
1012
|
const C = class C extends e {
|
|
1013
1013
|
constructor(t) {
|
|
1014
1014
|
super();
|
|
@@ -1699,7 +1699,7 @@ a(j, "runtime", r), a(j, "typeName", "audiotool.project.v1.CloseSessionRequest")
|
|
|
1699
1699
|
/* ScalarType.STRING */
|
|
1700
1700
|
}
|
|
1701
1701
|
]));
|
|
1702
|
-
let
|
|
1702
|
+
let $a = j;
|
|
1703
1703
|
const G = class G extends e {
|
|
1704
1704
|
constructor(s) {
|
|
1705
1705
|
super(), r.util.initPartial(s, this);
|
|
@@ -1718,7 +1718,7 @@ const G = class G extends e {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
};
|
|
1720
1720
|
a(G, "runtime", r), a(G, "typeName", "audiotool.project.v1.CloseSessionResponse"), a(G, "fields", r.util.newFieldList(() => []));
|
|
1721
|
-
let
|
|
1721
|
+
let Za = G;
|
|
1722
1722
|
const K = class K extends e {
|
|
1723
1723
|
constructor(t) {
|
|
1724
1724
|
super();
|
|
@@ -2025,7 +2025,7 @@ a(Z, "runtime", r), a(Z, "typeName", "audiotool.longrunning.v1.GetOperationReque
|
|
|
2025
2025
|
/* ScalarType.STRING */
|
|
2026
2026
|
}
|
|
2027
2027
|
]));
|
|
2028
|
-
let
|
|
2028
|
+
let tr = Z;
|
|
2029
2029
|
const tt = class tt extends e {
|
|
2030
2030
|
constructor(t) {
|
|
2031
2031
|
super();
|
|
@@ -2053,7 +2053,7 @@ const tt = class tt extends e {
|
|
|
2053
2053
|
a(tt, "runtime", r), a(tt, "typeName", "audiotool.longrunning.v1.GetOperationResponse"), a(tt, "fields", r.util.newFieldList(() => [
|
|
2054
2054
|
{ no: 1, name: "operation", kind: "message", T: ln }
|
|
2055
2055
|
]));
|
|
2056
|
-
let
|
|
2056
|
+
let nr = tt;
|
|
2057
2057
|
const nt = class nt extends e {
|
|
2058
2058
|
constructor(t) {
|
|
2059
2059
|
super();
|
|
@@ -2126,7 +2126,7 @@ a(nt, "runtime", r), a(nt, "typeName", "audiotool.longrunning.v1.ListOperationsR
|
|
|
2126
2126
|
/* ScalarType.STRING */
|
|
2127
2127
|
}
|
|
2128
2128
|
]));
|
|
2129
|
-
let
|
|
2129
|
+
let ar = nt;
|
|
2130
2130
|
const at = class at extends e {
|
|
2131
2131
|
constructor(t) {
|
|
2132
2132
|
super();
|
|
@@ -2167,7 +2167,7 @@ a(at, "runtime", r), a(at, "typeName", "audiotool.longrunning.v1.ListOperationsR
|
|
|
2167
2167
|
/* ScalarType.STRING */
|
|
2168
2168
|
}
|
|
2169
2169
|
]));
|
|
2170
|
-
let
|
|
2170
|
+
let rr = at;
|
|
2171
2171
|
const rt = class rt extends e {
|
|
2172
2172
|
constructor(t) {
|
|
2173
2173
|
super();
|
|
@@ -2201,7 +2201,7 @@ a(rt, "runtime", r), a(rt, "typeName", "audiotool.longrunning.v1.CancelOperation
|
|
|
2201
2201
|
/* ScalarType.STRING */
|
|
2202
2202
|
}
|
|
2203
2203
|
]));
|
|
2204
|
-
let
|
|
2204
|
+
let ir = rt;
|
|
2205
2205
|
const it = class it extends e {
|
|
2206
2206
|
constructor(s) {
|
|
2207
2207
|
super(), r.util.initPartial(s, this);
|
|
@@ -2220,7 +2220,7 @@ const it = class it extends e {
|
|
|
2220
2220
|
}
|
|
2221
2221
|
};
|
|
2222
2222
|
a(it, "runtime", r), a(it, "typeName", "audiotool.longrunning.v1.CancelOperationResponse"), a(it, "fields", r.util.newFieldList(() => []));
|
|
2223
|
-
let
|
|
2223
|
+
let sr = it;
|
|
2224
2224
|
const st = class st extends e {
|
|
2225
2225
|
constructor(t) {
|
|
2226
2226
|
super();
|
|
@@ -2254,7 +2254,7 @@ a(st, "runtime", r), a(st, "typeName", "audiotool.longrunning.v1.DeleteOperation
|
|
|
2254
2254
|
/* ScalarType.STRING */
|
|
2255
2255
|
}
|
|
2256
2256
|
]));
|
|
2257
|
-
let
|
|
2257
|
+
let er = st;
|
|
2258
2258
|
const et = class et extends e {
|
|
2259
2259
|
constructor(s) {
|
|
2260
2260
|
super(), r.util.initPartial(s, this);
|
|
@@ -2273,7 +2273,7 @@ const et = class et extends e {
|
|
|
2273
2273
|
}
|
|
2274
2274
|
};
|
|
2275
2275
|
a(et, "runtime", r), a(et, "typeName", "audiotool.longrunning.v1.DeleteOperationResponse"), a(et, "fields", r.util.newFieldList(() => []));
|
|
2276
|
-
let
|
|
2276
|
+
let or = et;
|
|
2277
2277
|
const ot = class ot extends e {
|
|
2278
2278
|
constructor(t) {
|
|
2279
2279
|
super();
|
|
@@ -2333,7 +2333,7 @@ a(ot, "runtime", r), a(ot, "typeName", "audiotool.longrunning.v1.Status"), a(ot,
|
|
|
2333
2333
|
{ no: 3, name: "details", kind: "message", T: Zt, repeated: !0 }
|
|
2334
2334
|
]));
|
|
2335
2335
|
let zn = ot;
|
|
2336
|
-
const
|
|
2336
|
+
const Nr = {
|
|
2337
2337
|
typeName: "audiotool.project.v1.ProjectService",
|
|
2338
2338
|
methods: {
|
|
2339
2339
|
/**
|
|
@@ -2675,7 +2675,7 @@ a(mt, "runtime", r), a(mt, "typeName", "audiotool.sample.v1.Sample"), a(mt, "fie
|
|
|
2675
2675
|
/* ScalarType.DOUBLE */
|
|
2676
2676
|
},
|
|
2677
2677
|
{ no: 9, name: "sample_type", kind: "enum", T: r.getEnumType(dn) },
|
|
2678
|
-
{ no: 10, name: "play_duration", kind: "message", T:
|
|
2678
|
+
{ no: 10, name: "play_duration", kind: "message", T: cr },
|
|
2679
2679
|
{ no: 11, name: "create_time", kind: "message", T: d },
|
|
2680
2680
|
{ no: 12, name: "update_time", kind: "message", T: d },
|
|
2681
2681
|
{ no: 13, name: "clearance", kind: "enum", T: r.getEnumType(fn) },
|
|
@@ -2711,7 +2711,7 @@ a(mt, "runtime", r), a(mt, "typeName", "audiotool.sample.v1.Sample"), a(mt, "fie
|
|
|
2711
2711
|
}
|
|
2712
2712
|
]));
|
|
2713
2713
|
let T = mt;
|
|
2714
|
-
const
|
|
2714
|
+
const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2715
2715
|
__proto__: null,
|
|
2716
2716
|
Sample: T,
|
|
2717
2717
|
SampleClearance: fn,
|
|
@@ -3392,7 +3392,7 @@ a(Nt, "runtime", r), a(Nt, "typeName", "audiotool.sample.v1.ListenResponse"), a(
|
|
|
3392
3392
|
{ no: 1, name: "event", kind: "message", T: Qn }
|
|
3393
3393
|
]));
|
|
3394
3394
|
let Ea = Nt;
|
|
3395
|
-
const
|
|
3395
|
+
const Br = {
|
|
3396
3396
|
typeName: "audiotool.sample.v1.SampleService",
|
|
3397
3397
|
methods: {
|
|
3398
3398
|
/**
|
|
@@ -3633,7 +3633,7 @@ a(Bt, "runtime", r), a(Bt, "typeName", "audiotool.user.v1.User"), a(Bt, "fields"
|
|
|
3633
3633
|
},
|
|
3634
3634
|
{ no: 11, name: "links", kind: "scalar", T: 9, repeated: !0 }
|
|
3635
3635
|
]));
|
|
3636
|
-
let
|
|
3636
|
+
let en = Bt;
|
|
3637
3637
|
var un = /* @__PURE__ */ ((i) => (i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.PUBLIC = 1] = "PUBLIC", i[i.USERS_FOLLOWING = 2] = "USERS_FOLLOWING", i[i.DISABLED = 3] = "DISABLED", i))(un || {});
|
|
3638
3638
|
r.util.setEnumType(un, "audiotool.user.v1.CommentMode", [
|
|
3639
3639
|
{ no: 0, name: "COMMENT_MODE_UNSPECIFIED" },
|
|
@@ -3761,7 +3761,7 @@ a(At, "runtime", r), a(At, "typeName", "audiotool.user.v1.Settings"), a(At, "fie
|
|
|
3761
3761
|
}
|
|
3762
3762
|
]));
|
|
3763
3763
|
let cn = At;
|
|
3764
|
-
const
|
|
3764
|
+
const Lt = class Lt extends e {
|
|
3765
3765
|
constructor(t) {
|
|
3766
3766
|
super();
|
|
3767
3767
|
/**
|
|
@@ -3815,19 +3815,19 @@ const pt = class pt extends e {
|
|
|
3815
3815
|
r.util.initPartial(t, this);
|
|
3816
3816
|
}
|
|
3817
3817
|
static fromBinary(t, n) {
|
|
3818
|
-
return new
|
|
3818
|
+
return new Lt().fromBinary(t, n);
|
|
3819
3819
|
}
|
|
3820
3820
|
static fromJson(t, n) {
|
|
3821
|
-
return new
|
|
3821
|
+
return new Lt().fromJson(t, n);
|
|
3822
3822
|
}
|
|
3823
3823
|
static fromJsonString(t, n) {
|
|
3824
|
-
return new
|
|
3824
|
+
return new Lt().fromJsonString(t, n);
|
|
3825
3825
|
}
|
|
3826
3826
|
static equals(t, n) {
|
|
3827
|
-
return r.util.equals(
|
|
3827
|
+
return r.util.equals(Lt, t, n);
|
|
3828
3828
|
}
|
|
3829
3829
|
};
|
|
3830
|
-
a(
|
|
3830
|
+
a(Lt, "runtime", r), a(Lt, "typeName", "audiotool.user.v1.ListUsersRequest"), a(Lt, "fields", r.util.newFieldList(() => [
|
|
3831
3831
|
{
|
|
3832
3832
|
no: 1,
|
|
3833
3833
|
name: "filter",
|
|
@@ -3857,8 +3857,8 @@ a(pt, "runtime", r), a(pt, "typeName", "audiotool.user.v1.ListUsersRequest"), a(
|
|
|
3857
3857
|
/* ScalarType.STRING */
|
|
3858
3858
|
}
|
|
3859
3859
|
]));
|
|
3860
|
-
let da =
|
|
3861
|
-
const
|
|
3860
|
+
let da = Lt;
|
|
3861
|
+
const pt = class pt extends e {
|
|
3862
3862
|
constructor(t) {
|
|
3863
3863
|
super();
|
|
3864
3864
|
/**
|
|
@@ -3877,20 +3877,20 @@ const Lt = class Lt extends e {
|
|
|
3877
3877
|
r.util.initPartial(t, this);
|
|
3878
3878
|
}
|
|
3879
3879
|
static fromBinary(t, n) {
|
|
3880
|
-
return new
|
|
3880
|
+
return new pt().fromBinary(t, n);
|
|
3881
3881
|
}
|
|
3882
3882
|
static fromJson(t, n) {
|
|
3883
|
-
return new
|
|
3883
|
+
return new pt().fromJson(t, n);
|
|
3884
3884
|
}
|
|
3885
3885
|
static fromJsonString(t, n) {
|
|
3886
|
-
return new
|
|
3886
|
+
return new pt().fromJsonString(t, n);
|
|
3887
3887
|
}
|
|
3888
3888
|
static equals(t, n) {
|
|
3889
|
-
return r.util.equals(
|
|
3889
|
+
return r.util.equals(pt, t, n);
|
|
3890
3890
|
}
|
|
3891
3891
|
};
|
|
3892
|
-
a(
|
|
3893
|
-
{ no: 1, name: "users", kind: "message", T:
|
|
3892
|
+
a(pt, "runtime", r), a(pt, "typeName", "audiotool.user.v1.ListUsersResponse"), a(pt, "fields", r.util.newFieldList(() => [
|
|
3893
|
+
{ no: 1, name: "users", kind: "message", T: en, repeated: !0 },
|
|
3894
3894
|
{
|
|
3895
3895
|
no: 2,
|
|
3896
3896
|
name: "next_page_token",
|
|
@@ -3899,7 +3899,7 @@ a(Lt, "runtime", r), a(Lt, "typeName", "audiotool.user.v1.ListUsersResponse"), a
|
|
|
3899
3899
|
/* ScalarType.STRING */
|
|
3900
3900
|
}
|
|
3901
3901
|
]));
|
|
3902
|
-
let fa =
|
|
3902
|
+
let fa = pt;
|
|
3903
3903
|
const Ct = class Ct extends e {
|
|
3904
3904
|
constructor(t) {
|
|
3905
3905
|
super();
|
|
@@ -3959,7 +3959,7 @@ const Ut = class Ut extends e {
|
|
|
3959
3959
|
}
|
|
3960
3960
|
};
|
|
3961
3961
|
a(Ut, "runtime", r), a(Ut, "typeName", "audiotool.user.v1.GetUserResponse"), a(Ut, "fields", r.util.newFieldList(() => [
|
|
3962
|
-
{ no: 1, name: "user", kind: "message", T:
|
|
3962
|
+
{ no: 1, name: "user", kind: "message", T: en }
|
|
3963
3963
|
]));
|
|
3964
3964
|
let Sa = Ut;
|
|
3965
3965
|
const Ft = class Ft extends e {
|
|
@@ -4021,7 +4021,7 @@ const Mt = class Mt extends e {
|
|
|
4021
4021
|
}
|
|
4022
4022
|
};
|
|
4023
4023
|
a(Mt, "runtime", r), a(Mt, "typeName", "audiotool.user.v1.DeleteUserResponse"), a(Mt, "fields", r.util.newFieldList(() => [
|
|
4024
|
-
{ no: 1, name: "user", kind: "message", T:
|
|
4024
|
+
{ no: 1, name: "user", kind: "message", T: en }
|
|
4025
4025
|
]));
|
|
4026
4026
|
let Ia = Mt;
|
|
4027
4027
|
const xt = class xt extends e {
|
|
@@ -4055,7 +4055,7 @@ const xt = class xt extends e {
|
|
|
4055
4055
|
}
|
|
4056
4056
|
};
|
|
4057
4057
|
a(xt, "runtime", r), a(xt, "typeName", "audiotool.user.v1.UpdateUserRequest"), a(xt, "fields", r.util.newFieldList(() => [
|
|
4058
|
-
{ no: 1, name: "user", kind: "message", T:
|
|
4058
|
+
{ no: 1, name: "user", kind: "message", T: en },
|
|
4059
4059
|
{ no: 2, name: "update_mask", kind: "message", T: mn }
|
|
4060
4060
|
]));
|
|
4061
4061
|
let ga = xt;
|
|
@@ -4084,7 +4084,7 @@ const ht = class ht extends e {
|
|
|
4084
4084
|
}
|
|
4085
4085
|
};
|
|
4086
4086
|
a(ht, "runtime", r), a(ht, "typeName", "audiotool.user.v1.UpdateUserResponse"), a(ht, "fields", r.util.newFieldList(() => [
|
|
4087
|
-
{ no: 1, name: "user", kind: "message", T:
|
|
4087
|
+
{ no: 1, name: "user", kind: "message", T: en }
|
|
4088
4088
|
]));
|
|
4089
4089
|
let Ja = ht;
|
|
4090
4090
|
const Vt = class Vt extends e {
|
|
@@ -4297,7 +4297,7 @@ a(Ht, "runtime", r), a(Ht, "typeName", "audiotool.user.v1.UploadAvatarResponse")
|
|
|
4297
4297
|
}
|
|
4298
4298
|
]));
|
|
4299
4299
|
let Ba = Ht;
|
|
4300
|
-
const
|
|
4300
|
+
const Ar = {
|
|
4301
4301
|
typeName: "audiotool.user.v1.UserService",
|
|
4302
4302
|
methods: {
|
|
4303
4303
|
/**
|
|
@@ -4378,25 +4378,25 @@ const Nr = {
|
|
|
4378
4378
|
kind: o.Unary
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
|
-
},
|
|
4381
|
+
}, mr = async (i, s) => {
|
|
4382
4382
|
try {
|
|
4383
4383
|
return await fetch(i, s);
|
|
4384
4384
|
} catch (t) {
|
|
4385
4385
|
return new Error("error during fetch", { cause: t });
|
|
4386
4386
|
}
|
|
4387
|
-
}, Aa = "###keepalive###",
|
|
4387
|
+
}, Aa = "###keepalive###", Lr = ({
|
|
4388
4388
|
baseUrl: i,
|
|
4389
4389
|
useBinaryFormat: s,
|
|
4390
4390
|
typeRegistry: t,
|
|
4391
4391
|
getToken: n
|
|
4392
|
-
}) =>
|
|
4392
|
+
}) => Ir({
|
|
4393
4393
|
baseUrl: i,
|
|
4394
4394
|
useBinaryFormat: s,
|
|
4395
|
-
fetch: async (
|
|
4396
|
-
const { headers: c, keepalive: tn } =
|
|
4397
|
-
return c.set("Authorization", await n()), fetch(
|
|
4395
|
+
fetch: async (rn, u) => {
|
|
4396
|
+
const { headers: c, keepalive: tn } = Cr(u == null ? void 0 : u.headers);
|
|
4397
|
+
return c.set("Authorization", await n()), fetch(rn, {
|
|
4398
4398
|
credentials: "omit",
|
|
4399
|
-
...
|
|
4399
|
+
...u,
|
|
4400
4400
|
headers: c,
|
|
4401
4401
|
keepalive: tn
|
|
4402
4402
|
});
|
|
@@ -4404,7 +4404,7 @@ const Nr = {
|
|
|
4404
4404
|
jsonOptions: {
|
|
4405
4405
|
typeRegistry: t
|
|
4406
4406
|
}
|
|
4407
|
-
}),
|
|
4407
|
+
}), pr = (i) => {
|
|
4408
4408
|
if (i === void 0)
|
|
4409
4409
|
return;
|
|
4410
4410
|
const s = (i == null ? void 0 : i.keepalive) ?? !1, t = new Headers(i == null ? void 0 : i.headers);
|
|
@@ -4412,49 +4412,56 @@ const Nr = {
|
|
|
4412
4412
|
...i,
|
|
4413
4413
|
headers: t
|
|
4414
4414
|
}, delete i.keepalive, i;
|
|
4415
|
-
},
|
|
4415
|
+
}, Cr = (i) => {
|
|
4416
4416
|
const s = new Headers(i), t = s.get(Aa) === "true";
|
|
4417
4417
|
return s.delete(Aa), { headers: s, keepalive: t };
|
|
4418
4418
|
}, on = (i, s, t) => {
|
|
4419
|
-
const
|
|
4420
|
-
return Object.entries(i.methods).forEach(([
|
|
4419
|
+
const u = ((l) => l instanceof Jr ? l.code === Wa.Unavailable || l.code === Wa.Unknown : !1), c = gr(i, s), tn = {};
|
|
4420
|
+
return Object.entries(i.methods).forEach(([l, ja]) => {
|
|
4421
4421
|
if (ja.kind !== o.Unary) {
|
|
4422
|
-
tn[
|
|
4422
|
+
tn[l] = c[l];
|
|
4423
4423
|
return;
|
|
4424
4424
|
}
|
|
4425
|
-
const Sn = c[
|
|
4426
|
-
tn[
|
|
4427
|
-
var Ga, Ka;
|
|
4428
|
-
for (
|
|
4425
|
+
const Sn = c[l];
|
|
4426
|
+
tn[l] = async (wn, m) => {
|
|
4427
|
+
var Ga, Ka, za, Qa;
|
|
4428
|
+
for (m = pr(m); ; )
|
|
4429
4429
|
try {
|
|
4430
|
-
const
|
|
4430
|
+
const nn = await Sn(
|
|
4431
4431
|
wn,
|
|
4432
|
-
|
|
4432
|
+
m
|
|
4433
4433
|
);
|
|
4434
|
-
return (Ga =
|
|
4435
|
-
} catch (
|
|
4436
|
-
if ((Ka =
|
|
4437
|
-
return new Error(`${i.typeName}.${
|
|
4438
|
-
cause:
|
|
4434
|
+
return (Ga = m == null ? void 0 : m.callIsOk) == null || Ga.setValue(!0), nn;
|
|
4435
|
+
} catch (nn) {
|
|
4436
|
+
if ((Ka = m == null ? void 0 : m.callIsOk) == null || Ka.setValue(!1), !(nn instanceof Error && u(nn)))
|
|
4437
|
+
return new Error(`${i.typeName}.${l} threw error`, {
|
|
4438
|
+
cause: nn
|
|
4439
|
+
});
|
|
4440
|
+
if ((za = m == null ? void 0 : m.onRetry) == null || za.call(m, nn), ((m == null ? void 0 : m.logIfRetrying) ?? !0) && console.warn(
|
|
4441
|
+
`${i.typeName}.${l} call failed, retrying in 2000 ms. Error:`,
|
|
4442
|
+
nn
|
|
4443
|
+
), await Pr(
|
|
4444
|
+
2e3 + Math.random() * 2e3 * 0.1,
|
|
4445
|
+
// pass in signal for earlier return in case of abort
|
|
4446
|
+
m == null ? void 0 : m.signal
|
|
4447
|
+
), ((Qa = m == null ? void 0 : m.signal) == null ? void 0 : Qa.aborted) ?? !1)
|
|
4448
|
+
return new Error(`${i.typeName}.${l} was aborted`, {
|
|
4449
|
+
cause: nn
|
|
4439
4450
|
});
|
|
4440
|
-
((l == null ? void 0 : l.logIfRetrying) ?? !0) && console.warn(
|
|
4441
|
-
`${i.typeName}.${u} call failed, retrying in 2000 ms. Error:`,
|
|
4442
|
-
en
|
|
4443
|
-
), await gr(2e3 + Math.random() * 2e3 * 0.1);
|
|
4444
4451
|
continue;
|
|
4445
4452
|
}
|
|
4446
4453
|
};
|
|
4447
4454
|
}), tn;
|
|
4448
|
-
},
|
|
4455
|
+
}, Ur = (i) => {
|
|
4449
4456
|
const s = i == null ? void 0 : i.typeUrl;
|
|
4450
4457
|
if (s === void 0)
|
|
4451
4458
|
return;
|
|
4452
4459
|
const t = s.split("/").pop();
|
|
4453
|
-
return
|
|
4454
|
-
},
|
|
4460
|
+
return fr[t];
|
|
4461
|
+
}, _r = (i) => fr[i.getType().typeName] ?? dr(), br = (i) => Zt.pack(i), Fr = Er(...Object.values(Or)), Mr = (i) => {
|
|
4455
4462
|
if (i !== void 0)
|
|
4456
|
-
return i.unpack(
|
|
4457
|
-
},
|
|
4463
|
+
return i.unpack(Fr);
|
|
4464
|
+
}, jr = (i) => Mr(i) ?? dr("couldn't unpack any entity of type " + (i == null ? void 0 : i.typeUrl)), Gr = (i) => i.charAt(0).toLowerCase() + i.slice(1);
|
|
4458
4465
|
var _a = /* @__PURE__ */ ((i) => (i[i.UNSPECIFIED = 0] = "UNSPECIFIED", i[i.AUTO_FILTER = 1] = "AUTO_FILTER", i[i.BAND_SPLITTER = 2] = "BAND_SPLITTER", i[i.BASSLINE = 3] = "BASSLINE", i[i.BEATBOX8 = 4] = "BEATBOX8", i[i.BEATBOX9 = 5] = "BEATBOX9", i[i.CROSSFADER = 6] = "CROSSFADER", i[i.CURVE = 7] = "CURVE", i[i.EXCITER = 8] = "EXCITER", i[i.GRAPHICAL_EQ = 9] = "GRAPHICAL_EQ", i[i.GRAVITY = 10] = "GRAVITY", i[i.HEISENBERG = 11] = "HEISENBERG", i[i.HELMHOLTZ = 12] = "HELMHOLTZ", i[i.MACHINISTE = 13] = "MACHINISTE", i[i.MATRIX = 14] = "MATRIX", i[i.NOTE_SPLITTER = 15] = "NOTE_SPLITTER", i[i.PANORAMA = 16] = "PANORAMA", i[i.PULSAR = 17] = "PULSAR", i[i.PULVERISATEUR = 18] = "PULVERISATEUR", i[i.QUANTUM = 19] = "QUANTUM", i[i.QUASAR = 20] = "QUASAR", i[i.RASSELBOCK = 21] = "RASSELBOCK", i[i.SPACE = 22] = "SPACE", i[i.STEREO_ENHANCER = 23] = "STEREO_ENHANCER", i[i.STOMPBOX_CHORUS = 24] = "STOMPBOX_CHORUS", i[i.STOMPBOX_COMPRESSOR = 25] = "STOMPBOX_COMPRESSOR", i[i.STOMPBOX_CRUSHER = 26] = "STOMPBOX_CRUSHER", i[i.STOMPBOX_DELAY = 27] = "STOMPBOX_DELAY", i[i.STOMPBOX_FLANGER = 28] = "STOMPBOX_FLANGER", i[i.STOMPBOX_GATE = 29] = "STOMPBOX_GATE", i[i.STOMPBOX_PARAMETRIC_EQUALIZER = 30] = "STOMPBOX_PARAMETRIC_EQUALIZER", i[i.STOMPBOX_PHASER = 31] = "STOMPBOX_PHASER", i[i.STOMPBOX_PITCH_DELAY = 32] = "STOMPBOX_PITCH_DELAY", i[i.STOMPBOX_REVERB = 33] = "STOMPBOX_REVERB", i[i.STOMPBOX_SLOPE = 34] = "STOMPBOX_SLOPE", i[i.STOMPBOX_STEREO_DETUNE = 35] = "STOMPBOX_STEREO_DETUNE", i[i.STOMPBOX_TUBE = 36] = "STOMPBOX_TUBE", i[i.TONEMATRIX = 37] = "TONEMATRIX", i[i.WAVESHAPER = 38] = "WAVESHAPER", i[i.GAKKI = 39] = "GAKKI", i))(_a || {});
|
|
4459
4466
|
r.util.setEnumType(_a, "audiotool.preset.v1.PresetDeviceType", [
|
|
4460
4467
|
{ no: 0, name: "PRESET_DEVICE_TYPE_UNSPECIFIED" },
|
|
@@ -4674,7 +4681,7 @@ a(qt, "runtime", r), a(qt, "typeName", "audiotool.preset.v1.Preset"), a(qt, "fie
|
|
|
4674
4681
|
/* ScalarType.STRING */
|
|
4675
4682
|
}
|
|
4676
4683
|
]));
|
|
4677
|
-
let
|
|
4684
|
+
let an = qt;
|
|
4678
4685
|
const Xt = class Xt extends e {
|
|
4679
4686
|
constructor(t) {
|
|
4680
4687
|
super();
|
|
@@ -4779,7 +4786,7 @@ a(Xt, "runtime", r), a(Xt, "typeName", "audiotool.preset.v1.ListPresetsRequest")
|
|
|
4779
4786
|
/* ScalarType.STRING */
|
|
4780
4787
|
}
|
|
4781
4788
|
]));
|
|
4782
|
-
let
|
|
4789
|
+
let La = Xt;
|
|
4783
4790
|
const _t = class _t extends e {
|
|
4784
4791
|
constructor(t) {
|
|
4785
4792
|
super();
|
|
@@ -4812,7 +4819,7 @@ const _t = class _t extends e {
|
|
|
4812
4819
|
}
|
|
4813
4820
|
};
|
|
4814
4821
|
a(_t, "runtime", r), a(_t, "typeName", "audiotool.preset.v1.ListPresetsResponse"), a(_t, "fields", r.util.newFieldList(() => [
|
|
4815
|
-
{ no: 1, name: "presets", kind: "message", T:
|
|
4822
|
+
{ no: 1, name: "presets", kind: "message", T: an, repeated: !0 },
|
|
4816
4823
|
{
|
|
4817
4824
|
no: 2,
|
|
4818
4825
|
name: "next_page_token",
|
|
@@ -4821,7 +4828,7 @@ a(_t, "runtime", r), a(_t, "typeName", "audiotool.preset.v1.ListPresetsResponse"
|
|
|
4821
4828
|
/* ScalarType.STRING */
|
|
4822
4829
|
}
|
|
4823
4830
|
]));
|
|
4824
|
-
let
|
|
4831
|
+
let pa = _t;
|
|
4825
4832
|
const bt = class bt extends e {
|
|
4826
4833
|
constructor(t) {
|
|
4827
4834
|
super();
|
|
@@ -4881,7 +4888,7 @@ const jt = class jt extends e {
|
|
|
4881
4888
|
}
|
|
4882
4889
|
};
|
|
4883
4890
|
a(jt, "runtime", r), a(jt, "typeName", "audiotool.preset.v1.GetPresetResponse"), a(jt, "fields", r.util.newFieldList(() => [
|
|
4884
|
-
{ no: 1, name: "preset", kind: "message", T:
|
|
4891
|
+
{ no: 1, name: "preset", kind: "message", T: an }
|
|
4885
4892
|
]));
|
|
4886
4893
|
let Ua = jt;
|
|
4887
4894
|
const Gt = class Gt extends e {
|
|
@@ -4915,7 +4922,7 @@ const Gt = class Gt extends e {
|
|
|
4915
4922
|
}
|
|
4916
4923
|
};
|
|
4917
4924
|
a(Gt, "runtime", r), a(Gt, "typeName", "audiotool.preset.v1.CreatePresetRequest"), a(Gt, "fields", r.util.newFieldList(() => [
|
|
4918
|
-
{ no: 1, name: "preset", kind: "message", T:
|
|
4925
|
+
{ no: 1, name: "preset", kind: "message", T: an },
|
|
4919
4926
|
{ no: 2, name: "data", kind: "message", T: Zt }
|
|
4920
4927
|
]));
|
|
4921
4928
|
let Fa = Gt;
|
|
@@ -4944,7 +4951,7 @@ const Kt = class Kt extends e {
|
|
|
4944
4951
|
}
|
|
4945
4952
|
};
|
|
4946
4953
|
a(Kt, "runtime", r), a(Kt, "typeName", "audiotool.preset.v1.CreatePresetResponse"), a(Kt, "fields", r.util.newFieldList(() => [
|
|
4947
|
-
{ no: 1, name: "preset", kind: "message", T:
|
|
4954
|
+
{ no: 1, name: "preset", kind: "message", T: an }
|
|
4948
4955
|
]));
|
|
4949
4956
|
let Ma = Kt;
|
|
4950
4957
|
const zt = class zt extends e {
|
|
@@ -4986,7 +4993,7 @@ const zt = class zt extends e {
|
|
|
4986
4993
|
}
|
|
4987
4994
|
};
|
|
4988
4995
|
a(zt, "runtime", r), a(zt, "typeName", "audiotool.preset.v1.UpdatePresetRequest"), a(zt, "fields", r.util.newFieldList(() => [
|
|
4989
|
-
{ no: 1, name: "preset", kind: "message", T:
|
|
4996
|
+
{ no: 1, name: "preset", kind: "message", T: an },
|
|
4990
4997
|
{ no: 2, name: "update_mask", kind: "message", T: mn },
|
|
4991
4998
|
{ no: 3, name: "data", kind: "message", T: Zt }
|
|
4992
4999
|
]));
|
|
@@ -5016,7 +5023,7 @@ const Qt = class Qt extends e {
|
|
|
5016
5023
|
}
|
|
5017
5024
|
};
|
|
5018
5025
|
a(Qt, "runtime", r), a(Qt, "typeName", "audiotool.preset.v1.UpdatePresetResponse"), a(Qt, "fields", r.util.newFieldList(() => [
|
|
5019
|
-
{ no: 1, name: "preset", kind: "message", T:
|
|
5026
|
+
{ no: 1, name: "preset", kind: "message", T: an }
|
|
5020
5027
|
]));
|
|
5021
5028
|
let ha = Qt;
|
|
5022
5029
|
const Wt = class Wt extends e {
|
|
@@ -5072,7 +5079,7 @@ const $t = class $t extends e {
|
|
|
5072
5079
|
};
|
|
5073
5080
|
a($t, "runtime", r), a($t, "typeName", "audiotool.preset.v1.DeletePresetResponse"), a($t, "fields", r.util.newFieldList(() => []));
|
|
5074
5081
|
let Ra = $t;
|
|
5075
|
-
const
|
|
5082
|
+
const xr = {
|
|
5076
5083
|
typeName: "audiotool.preset.v1.PresetService",
|
|
5077
5084
|
methods: {
|
|
5078
5085
|
/**
|
|
@@ -5082,8 +5089,8 @@ const Fr = {
|
|
|
5082
5089
|
*/
|
|
5083
5090
|
listPresets: {
|
|
5084
5091
|
name: "ListPresets",
|
|
5085
|
-
I:
|
|
5086
|
-
O:
|
|
5092
|
+
I: La,
|
|
5093
|
+
O: pa,
|
|
5087
5094
|
kind: o.Unary
|
|
5088
5095
|
},
|
|
5089
5096
|
/**
|
|
@@ -5134,39 +5141,39 @@ const Fr = {
|
|
|
5134
5141
|
kind: o.Unary
|
|
5135
5142
|
}
|
|
5136
5143
|
}
|
|
5137
|
-
},
|
|
5144
|
+
}, ur = (i) => {
|
|
5138
5145
|
const s = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/i, t = i.match(s);
|
|
5139
5146
|
return t == null ? new Error() : t[0];
|
|
5140
|
-
},
|
|
5141
|
-
const s = on(
|
|
5147
|
+
}, hr = (i) => {
|
|
5148
|
+
const s = on(xr, i);
|
|
5142
5149
|
return {
|
|
5143
5150
|
list: async (t, n) => {
|
|
5144
|
-
const
|
|
5145
|
-
n !== void 0 && n.length > 1 && (n = `${n.replace(/['"]/g, "").toLowerCase().split(" ").filter((
|
|
5146
|
-
const
|
|
5147
|
-
filter:
|
|
5151
|
+
const rn = `preset.device_type == '${Vr[t]}'`;
|
|
5152
|
+
n !== void 0 && n.length > 1 && (n = `${n.replace(/['"]/g, "").toLowerCase().split(" ").filter((l) => l.length > 1).join(" & ")}`);
|
|
5153
|
+
const u = await s.listPresets({
|
|
5154
|
+
filter: rn,
|
|
5148
5155
|
textSearch: n
|
|
5149
5156
|
});
|
|
5150
|
-
if (
|
|
5151
|
-
throw
|
|
5157
|
+
if (u instanceof Error)
|
|
5158
|
+
throw u;
|
|
5152
5159
|
return await Promise.all(
|
|
5153
|
-
|
|
5154
|
-
(c) =>
|
|
5160
|
+
u.presets.map(
|
|
5161
|
+
(c) => lr(c)
|
|
5155
5162
|
)
|
|
5156
5163
|
);
|
|
5157
5164
|
},
|
|
5158
5165
|
get: async (t) => {
|
|
5159
5166
|
const n = await s.getPreset({
|
|
5160
|
-
name: `presets/${
|
|
5167
|
+
name: `presets/${ur(t)}`
|
|
5161
5168
|
});
|
|
5162
5169
|
if (n instanceof Error)
|
|
5163
5170
|
throw n;
|
|
5164
5171
|
if (n.preset === void 0)
|
|
5165
|
-
throw new Error(`No preset found for UUID "${
|
|
5166
|
-
return
|
|
5172
|
+
throw new Error(`No preset found for UUID "${ur(t)}"`);
|
|
5173
|
+
return lr(n.preset);
|
|
5167
5174
|
}
|
|
5168
5175
|
};
|
|
5169
|
-
},
|
|
5176
|
+
}, Vr = {
|
|
5170
5177
|
autoFilter: "PRESET_DEVICE_TYPE_AUTO_FILTER",
|
|
5171
5178
|
bandSplitter: "PRESET_DEVICE_TYPE_BAND_SPLITTER",
|
|
5172
5179
|
bassline: "PRESET_DEVICE_TYPE_BASSLINE",
|
|
@@ -5206,86 +5213,86 @@ const Fr = {
|
|
|
5206
5213
|
stompboxTube: "PRESET_DEVICE_TYPE_STOMPBOX_TUBE",
|
|
5207
5214
|
tonematrix: "PRESET_DEVICE_TYPE_TONEMATRIX",
|
|
5208
5215
|
waveshaper: "PRESET_DEVICE_TYPE_WAVESHAPER"
|
|
5209
|
-
},
|
|
5216
|
+
}, lr = async (i) => {
|
|
5210
5217
|
const s = i, t = await fetch(i.dataUrl, {
|
|
5211
5218
|
credentials: "omit"
|
|
5212
|
-
}).then((c) => c.arrayBuffer()), n = new
|
|
5219
|
+
}).then((c) => c.arrayBuffer()), n = new Tr();
|
|
5213
5220
|
if (!Zt.fromBinary(new Uint8Array(t)).unpackTo(n))
|
|
5214
5221
|
throw new Error("Failed to unpack preset data");
|
|
5215
5222
|
if (n.target === void 0)
|
|
5216
5223
|
throw new Error("Preset data does not contain a target");
|
|
5217
|
-
const
|
|
5218
|
-
if (
|
|
5224
|
+
const u = Ur(n.target);
|
|
5225
|
+
if (u === void 0)
|
|
5219
5226
|
throw new Error("Preset data does not contain an entity");
|
|
5220
5227
|
return {
|
|
5221
5228
|
meta: s,
|
|
5222
5229
|
data: n,
|
|
5223
|
-
entityType:
|
|
5230
|
+
entityType: u
|
|
5224
5231
|
};
|
|
5225
|
-
},
|
|
5226
|
-
const t =
|
|
5232
|
+
}, Kr = async (i, s) => {
|
|
5233
|
+
const t = Lr({
|
|
5227
5234
|
baseUrl: s ?? "https://rpc.audiotool.com/",
|
|
5228
5235
|
useBinaryFormat: !1,
|
|
5229
|
-
typeRegistry:
|
|
5236
|
+
typeRegistry: Er(Tr),
|
|
5230
5237
|
getToken: i
|
|
5231
5238
|
}), n = on(
|
|
5232
|
-
|
|
5239
|
+
Nr,
|
|
5233
5240
|
t
|
|
5234
|
-
),
|
|
5235
|
-
Or,
|
|
5236
|
-
t
|
|
5237
|
-
), c = Mr(t), tn = on(
|
|
5241
|
+
), rn = on(Ar, t), u = on(
|
|
5238
5242
|
kr,
|
|
5239
5243
|
t
|
|
5240
|
-
),
|
|
5241
|
-
|
|
5244
|
+
), c = hr(t), tn = on(
|
|
5245
|
+
Br,
|
|
5246
|
+
t
|
|
5247
|
+
), l = on(
|
|
5248
|
+
yr,
|
|
5242
5249
|
t
|
|
5243
5250
|
);
|
|
5244
5251
|
return {
|
|
5245
|
-
authorizedFetch: async (Sn, wn) =>
|
|
5252
|
+
authorizedFetch: async (Sn, wn) => mr(Sn, {
|
|
5246
5253
|
credentials: "omit",
|
|
5247
5254
|
...wn
|
|
5248
5255
|
}),
|
|
5249
|
-
fetch:
|
|
5250
|
-
userService:
|
|
5256
|
+
fetch: mr,
|
|
5257
|
+
userService: rn,
|
|
5251
5258
|
projectService: n,
|
|
5252
|
-
projectRoleService:
|
|
5259
|
+
projectRoleService: u,
|
|
5253
5260
|
sampleService: tn,
|
|
5254
5261
|
presets: c,
|
|
5255
|
-
audioGraphService:
|
|
5262
|
+
audioGraphService: l
|
|
5256
5263
|
};
|
|
5257
5264
|
};
|
|
5258
5265
|
export {
|
|
5259
5266
|
hn as $,
|
|
5260
5267
|
gn as A,
|
|
5261
5268
|
Da as B,
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5269
|
+
ir as C,
|
|
5270
|
+
er as D,
|
|
5271
|
+
sn as E,
|
|
5272
|
+
kr as F,
|
|
5266
5273
|
In as G,
|
|
5267
5274
|
On as H,
|
|
5268
5275
|
yn as I,
|
|
5269
5276
|
kn as J,
|
|
5270
5277
|
Nn as K,
|
|
5271
|
-
|
|
5278
|
+
ar as L,
|
|
5272
5279
|
Bn as M,
|
|
5273
5280
|
An as N,
|
|
5274
5281
|
ln as O,
|
|
5275
5282
|
f as P,
|
|
5276
|
-
|
|
5277
|
-
|
|
5283
|
+
Ln as Q,
|
|
5284
|
+
pn as R,
|
|
5278
5285
|
qa as S,
|
|
5279
5286
|
Ha as T,
|
|
5280
5287
|
xa as U,
|
|
5281
|
-
|
|
5288
|
+
Nr as V,
|
|
5282
5289
|
Cn as W,
|
|
5283
5290
|
Un as X,
|
|
5284
5291
|
Fn as Y,
|
|
5285
5292
|
Mn as Z,
|
|
5286
5293
|
xn as _,
|
|
5287
|
-
|
|
5288
|
-
|
|
5294
|
+
yr as a,
|
|
5295
|
+
ur as a$,
|
|
5289
5296
|
Vn as a0,
|
|
5290
5297
|
Rn as a1,
|
|
5291
5298
|
Yn as a2,
|
|
@@ -5295,10 +5302,10 @@ export {
|
|
|
5295
5302
|
qn as a6,
|
|
5296
5303
|
Xn as a7,
|
|
5297
5304
|
_n as a8,
|
|
5298
|
-
|
|
5305
|
+
$a as a9,
|
|
5299
5306
|
cn as aA,
|
|
5300
|
-
|
|
5301
|
-
|
|
5307
|
+
en as aB,
|
|
5308
|
+
Ar as aC,
|
|
5302
5309
|
da as aD,
|
|
5303
5310
|
fa as aE,
|
|
5304
5311
|
Ta as aF,
|
|
@@ -5313,17 +5320,17 @@ export {
|
|
|
5313
5320
|
ka as aO,
|
|
5314
5321
|
Na as aP,
|
|
5315
5322
|
Ba as aQ,
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5323
|
+
Kr as aR,
|
|
5324
|
+
_r as aS,
|
|
5325
|
+
jr as aT,
|
|
5326
|
+
br as aU,
|
|
5327
|
+
Gr as aV,
|
|
5328
|
+
Mr as aW,
|
|
5329
|
+
Tr as aX,
|
|
5330
|
+
Ur as aY,
|
|
5324
5331
|
on as aZ,
|
|
5325
|
-
|
|
5326
|
-
|
|
5332
|
+
Lr as a_,
|
|
5333
|
+
Za as aa,
|
|
5327
5334
|
bn as ab,
|
|
5328
5335
|
jn as ac,
|
|
5329
5336
|
Gn as ad,
|
|
@@ -5332,7 +5339,7 @@ export {
|
|
|
5332
5339
|
Xa as ag,
|
|
5333
5340
|
Qn as ah,
|
|
5334
5341
|
Wn as ai,
|
|
5335
|
-
|
|
5342
|
+
Br as aj,
|
|
5336
5343
|
$n as ak,
|
|
5337
5344
|
Zn as al,
|
|
5338
5345
|
ta as am,
|
|
@@ -5353,20 +5360,20 @@ export {
|
|
|
5353
5360
|
va as c,
|
|
5354
5361
|
Jn as d,
|
|
5355
5362
|
Pn as e,
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5363
|
+
tr as f,
|
|
5364
|
+
nr as g,
|
|
5365
|
+
rr as h,
|
|
5366
|
+
sr as i,
|
|
5367
|
+
or as j,
|
|
5361
5368
|
zn as k,
|
|
5362
5369
|
_a as l,
|
|
5363
5370
|
ba as m,
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5371
|
+
mr as n,
|
|
5372
|
+
an as o,
|
|
5373
|
+
xr as p,
|
|
5374
|
+
La as q,
|
|
5375
|
+
pa as r,
|
|
5376
|
+
Xr as s,
|
|
5370
5377
|
Ca as t,
|
|
5371
5378
|
Ua as u,
|
|
5372
5379
|
Fa as v,
|