@transcodely/sdk 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +147 -230
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +102 -154
- package/dist/index.d.ts +102 -154
- package/dist/index.mjs +147 -230
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -2
package/dist/index.mjs
CHANGED
|
@@ -362,6 +362,12 @@ var APIKey = class _APIKey extends Message {
|
|
|
362
362
|
* @generated from field: string id = 1;
|
|
363
363
|
*/
|
|
364
364
|
id = "";
|
|
365
|
+
/**
|
|
366
|
+
* Parent app this key authenticates. Server-set; ignored on requests.
|
|
367
|
+
*
|
|
368
|
+
* @generated from field: string app_id = 13;
|
|
369
|
+
*/
|
|
370
|
+
appId = "";
|
|
365
371
|
/**
|
|
366
372
|
* Human-readable name for the key.
|
|
367
373
|
*
|
|
@@ -439,6 +445,13 @@ var APIKey = class _APIKey extends Message {
|
|
|
439
445
|
T: 9
|
|
440
446
|
/* ScalarType.STRING */
|
|
441
447
|
},
|
|
448
|
+
{
|
|
449
|
+
no: 13,
|
|
450
|
+
name: "app_id",
|
|
451
|
+
kind: "scalar",
|
|
452
|
+
T: 9
|
|
453
|
+
/* ScalarType.STRING */
|
|
454
|
+
},
|
|
442
455
|
{
|
|
443
456
|
no: 2,
|
|
444
457
|
name: "name",
|
|
@@ -683,6 +696,15 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends Message {
|
|
|
683
696
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 3;
|
|
684
697
|
*/
|
|
685
698
|
pagination;
|
|
699
|
+
/**
|
|
700
|
+
* Optional app filter. API-key callers may omit it (their key's app is used)
|
|
701
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
702
|
+
* Portal/JWT callers pass it to list a specific app in their org; omitted
|
|
703
|
+
* returns keys across all apps in the org.
|
|
704
|
+
*
|
|
705
|
+
* @generated from field: optional string app_id = 4;
|
|
706
|
+
*/
|
|
707
|
+
appId;
|
|
686
708
|
constructor(data) {
|
|
687
709
|
super();
|
|
688
710
|
proto3.util.initPartial(data, this);
|
|
@@ -697,7 +719,8 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends Message {
|
|
|
697
719
|
T: 8
|
|
698
720
|
/* ScalarType.BOOL */
|
|
699
721
|
},
|
|
700
|
-
{ no: 3, name: "pagination", kind: "message", T: PaginationRequest }
|
|
722
|
+
{ no: 3, name: "pagination", kind: "message", T: PaginationRequest },
|
|
723
|
+
{ no: 4, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
701
724
|
]);
|
|
702
725
|
static fromBinary(bytes, options) {
|
|
703
726
|
return new _ListAPIKeysRequest().fromBinary(bytes, options);
|
|
@@ -995,17 +1018,6 @@ var App = class _App extends Message {
|
|
|
995
1018
|
* @generated from field: optional string description = 4;
|
|
996
1019
|
*/
|
|
997
1020
|
description;
|
|
998
|
-
/**
|
|
999
|
-
* Webhook configuration.
|
|
1000
|
-
* Deprecated: Use WebhookService (webhook.proto) to manage webhook endpoints
|
|
1001
|
-
* instead. The new WebhookEndpoint resource supports multiple endpoints per
|
|
1002
|
-
* app, HMAC-SHA-256 signing with secret rotation, and per-event type
|
|
1003
|
-
* subscriptions. This field is retained for backwards compatibility;
|
|
1004
|
-
* field number 5 must never be reused.
|
|
1005
|
-
*
|
|
1006
|
-
* @generated from field: optional transcodely.v1.WebhookConfig webhook = 5;
|
|
1007
|
-
*/
|
|
1008
|
-
webhook;
|
|
1009
1021
|
/**
|
|
1010
1022
|
* App status.
|
|
1011
1023
|
*
|
|
@@ -1091,7 +1103,6 @@ var App = class _App extends Message {
|
|
|
1091
1103
|
/* ScalarType.STRING */
|
|
1092
1104
|
},
|
|
1093
1105
|
{ no: 4, name: "description", kind: "scalar", T: 9, opt: true },
|
|
1094
|
-
{ no: 5, name: "webhook", kind: "message", T: WebhookConfig, opt: true },
|
|
1095
1106
|
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(AppStatus) },
|
|
1096
1107
|
{ no: 7, name: "created_at", kind: "message", T: Timestamp },
|
|
1097
1108
|
{ no: 8, name: "updated_at", kind: "message", T: Timestamp },
|
|
@@ -1121,72 +1132,6 @@ var App = class _App extends Message {
|
|
|
1121
1132
|
return proto3.util.equals(_App, a, b);
|
|
1122
1133
|
}
|
|
1123
1134
|
};
|
|
1124
|
-
var WebhookConfig = class _WebhookConfig extends Message {
|
|
1125
|
-
/**
|
|
1126
|
-
* HTTPS endpoint for receiving webhooks.
|
|
1127
|
-
*
|
|
1128
|
-
* @generated from field: string url = 1;
|
|
1129
|
-
*/
|
|
1130
|
-
url = "";
|
|
1131
|
-
/**
|
|
1132
|
-
* Secret for HMAC-SHA256 signature verification.
|
|
1133
|
-
* Only the last 4 characters are shown (hint).
|
|
1134
|
-
* Full secret is only returned when first configured.
|
|
1135
|
-
*
|
|
1136
|
-
* @generated from field: optional string secret_hint = 2;
|
|
1137
|
-
*/
|
|
1138
|
-
secretHint;
|
|
1139
|
-
/**
|
|
1140
|
-
* Whether a secret is configured.
|
|
1141
|
-
*
|
|
1142
|
-
* @generated from field: bool has_secret = 3;
|
|
1143
|
-
*/
|
|
1144
|
-
hasSecret = false;
|
|
1145
|
-
/**
|
|
1146
|
-
* Events to send.
|
|
1147
|
-
* Possible values: job.completed, job.failed, job.progress, job.canceled,
|
|
1148
|
-
* output.completed, output.failed
|
|
1149
|
-
*
|
|
1150
|
-
* @generated from field: repeated string events = 4;
|
|
1151
|
-
*/
|
|
1152
|
-
events = [];
|
|
1153
|
-
constructor(data) {
|
|
1154
|
-
super();
|
|
1155
|
-
proto3.util.initPartial(data, this);
|
|
1156
|
-
}
|
|
1157
|
-
static runtime = proto3;
|
|
1158
|
-
static typeName = "transcodely.v1.WebhookConfig";
|
|
1159
|
-
static fields = proto3.util.newFieldList(() => [
|
|
1160
|
-
{
|
|
1161
|
-
no: 1,
|
|
1162
|
-
name: "url",
|
|
1163
|
-
kind: "scalar",
|
|
1164
|
-
T: 9
|
|
1165
|
-
/* ScalarType.STRING */
|
|
1166
|
-
},
|
|
1167
|
-
{ no: 2, name: "secret_hint", kind: "scalar", T: 9, opt: true },
|
|
1168
|
-
{
|
|
1169
|
-
no: 3,
|
|
1170
|
-
name: "has_secret",
|
|
1171
|
-
kind: "scalar",
|
|
1172
|
-
T: 8
|
|
1173
|
-
/* ScalarType.BOOL */
|
|
1174
|
-
},
|
|
1175
|
-
{ no: 4, name: "events", kind: "scalar", T: 9, repeated: true }
|
|
1176
|
-
]);
|
|
1177
|
-
static fromBinary(bytes, options) {
|
|
1178
|
-
return new _WebhookConfig().fromBinary(bytes, options);
|
|
1179
|
-
}
|
|
1180
|
-
static fromJson(jsonValue, options) {
|
|
1181
|
-
return new _WebhookConfig().fromJson(jsonValue, options);
|
|
1182
|
-
}
|
|
1183
|
-
static fromJsonString(jsonString, options) {
|
|
1184
|
-
return new _WebhookConfig().fromJsonString(jsonString, options);
|
|
1185
|
-
}
|
|
1186
|
-
static equals(a, b) {
|
|
1187
|
-
return proto3.util.equals(_WebhookConfig, a, b);
|
|
1188
|
-
}
|
|
1189
|
-
};
|
|
1190
1135
|
var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
1191
1136
|
/**
|
|
1192
1137
|
* Parent organization ID.
|
|
@@ -1206,12 +1151,6 @@ var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
|
1206
1151
|
* @generated from field: optional string description = 3;
|
|
1207
1152
|
*/
|
|
1208
1153
|
description;
|
|
1209
|
-
/**
|
|
1210
|
-
* Optional webhook configuration.
|
|
1211
|
-
*
|
|
1212
|
-
* @generated from field: optional transcodely.v1.CreateWebhookConfig webhook = 4;
|
|
1213
|
-
*/
|
|
1214
|
-
webhook;
|
|
1215
1154
|
/**
|
|
1216
1155
|
* Enable video hosting for this app. Provisions CDN infrastructure.
|
|
1217
1156
|
* This cannot be disabled once enabled.
|
|
@@ -1241,7 +1180,6 @@ var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
|
1241
1180
|
/* ScalarType.STRING */
|
|
1242
1181
|
},
|
|
1243
1182
|
{ no: 3, name: "description", kind: "scalar", T: 9, opt: true },
|
|
1244
|
-
{ no: 4, name: "webhook", kind: "message", T: CreateWebhookConfig, opt: true },
|
|
1245
1183
|
{ no: 5, name: "enable_hosting", kind: "scalar", T: 8, opt: true }
|
|
1246
1184
|
]);
|
|
1247
1185
|
static fromBinary(bytes, options) {
|
|
@@ -1257,63 +1195,6 @@ var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
|
1257
1195
|
return proto3.util.equals(_CreateAppRequest, a, b);
|
|
1258
1196
|
}
|
|
1259
1197
|
};
|
|
1260
|
-
var CreateWebhookConfig = class _CreateWebhookConfig extends Message {
|
|
1261
|
-
/**
|
|
1262
|
-
* HTTPS endpoint for receiving webhooks.
|
|
1263
|
-
*
|
|
1264
|
-
* @generated from field: string url = 1;
|
|
1265
|
-
*/
|
|
1266
|
-
url = "";
|
|
1267
|
-
/**
|
|
1268
|
-
* If true, a webhook secret will be generated.
|
|
1269
|
-
* The secret is returned once in the response.
|
|
1270
|
-
*
|
|
1271
|
-
* @generated from field: bool generate_secret = 2;
|
|
1272
|
-
*/
|
|
1273
|
-
generateSecret = false;
|
|
1274
|
-
/**
|
|
1275
|
-
* Events to send.
|
|
1276
|
-
* Default: ["job.completed", "job.failed"] if not specified.
|
|
1277
|
-
*
|
|
1278
|
-
* @generated from field: repeated string events = 3;
|
|
1279
|
-
*/
|
|
1280
|
-
events = [];
|
|
1281
|
-
constructor(data) {
|
|
1282
|
-
super();
|
|
1283
|
-
proto3.util.initPartial(data, this);
|
|
1284
|
-
}
|
|
1285
|
-
static runtime = proto3;
|
|
1286
|
-
static typeName = "transcodely.v1.CreateWebhookConfig";
|
|
1287
|
-
static fields = proto3.util.newFieldList(() => [
|
|
1288
|
-
{
|
|
1289
|
-
no: 1,
|
|
1290
|
-
name: "url",
|
|
1291
|
-
kind: "scalar",
|
|
1292
|
-
T: 9
|
|
1293
|
-
/* ScalarType.STRING */
|
|
1294
|
-
},
|
|
1295
|
-
{
|
|
1296
|
-
no: 2,
|
|
1297
|
-
name: "generate_secret",
|
|
1298
|
-
kind: "scalar",
|
|
1299
|
-
T: 8
|
|
1300
|
-
/* ScalarType.BOOL */
|
|
1301
|
-
},
|
|
1302
|
-
{ no: 3, name: "events", kind: "scalar", T: 9, repeated: true }
|
|
1303
|
-
]);
|
|
1304
|
-
static fromBinary(bytes, options) {
|
|
1305
|
-
return new _CreateWebhookConfig().fromBinary(bytes, options);
|
|
1306
|
-
}
|
|
1307
|
-
static fromJson(jsonValue, options) {
|
|
1308
|
-
return new _CreateWebhookConfig().fromJson(jsonValue, options);
|
|
1309
|
-
}
|
|
1310
|
-
static fromJsonString(jsonString, options) {
|
|
1311
|
-
return new _CreateWebhookConfig().fromJsonString(jsonString, options);
|
|
1312
|
-
}
|
|
1313
|
-
static equals(a, b) {
|
|
1314
|
-
return proto3.util.equals(_CreateWebhookConfig, a, b);
|
|
1315
|
-
}
|
|
1316
|
-
};
|
|
1317
1198
|
var CreateAppResponse = class _CreateAppResponse extends Message {
|
|
1318
1199
|
/**
|
|
1319
1200
|
* The created app.
|
|
@@ -1321,13 +1202,6 @@ var CreateAppResponse = class _CreateAppResponse extends Message {
|
|
|
1321
1202
|
* @generated from field: transcodely.v1.App app = 1;
|
|
1322
1203
|
*/
|
|
1323
1204
|
app;
|
|
1324
|
-
/**
|
|
1325
|
-
* Webhook secret (only returned if generate_secret was true).
|
|
1326
|
-
* WARNING: This is the only time the secret is returned.
|
|
1327
|
-
*
|
|
1328
|
-
* @generated from field: optional string webhook_secret = 2;
|
|
1329
|
-
*/
|
|
1330
|
-
webhookSecret;
|
|
1331
1205
|
constructor(data) {
|
|
1332
1206
|
super();
|
|
1333
1207
|
proto3.util.initPartial(data, this);
|
|
@@ -1335,8 +1209,7 @@ var CreateAppResponse = class _CreateAppResponse extends Message {
|
|
|
1335
1209
|
static runtime = proto3;
|
|
1336
1210
|
static typeName = "transcodely.v1.CreateAppResponse";
|
|
1337
1211
|
static fields = proto3.util.newFieldList(() => [
|
|
1338
|
-
{ no: 1, name: "app", kind: "message", T: App }
|
|
1339
|
-
{ no: 2, name: "webhook_secret", kind: "scalar", T: 9, opt: true }
|
|
1212
|
+
{ no: 1, name: "app", kind: "message", T: App }
|
|
1340
1213
|
]);
|
|
1341
1214
|
static fromBinary(bytes, options) {
|
|
1342
1215
|
return new _CreateAppResponse().fromBinary(bytes, options);
|
|
@@ -1434,13 +1307,6 @@ var UpdateAppRequest = class _UpdateAppRequest extends Message {
|
|
|
1434
1307
|
* @generated from field: optional string description = 3;
|
|
1435
1308
|
*/
|
|
1436
1309
|
description;
|
|
1437
|
-
/**
|
|
1438
|
-
* New webhook configuration (if provided).
|
|
1439
|
-
* Set to empty message to clear webhook config.
|
|
1440
|
-
*
|
|
1441
|
-
* @generated from field: optional transcodely.v1.UpdateWebhookConfig webhook = 4;
|
|
1442
|
-
*/
|
|
1443
|
-
webhook;
|
|
1444
1310
|
constructor(data) {
|
|
1445
1311
|
super();
|
|
1446
1312
|
proto3.util.initPartial(data, this);
|
|
@@ -1456,8 +1322,7 @@ var UpdateAppRequest = class _UpdateAppRequest extends Message {
|
|
|
1456
1322
|
/* ScalarType.STRING */
|
|
1457
1323
|
},
|
|
1458
1324
|
{ no: 2, name: "name", kind: "scalar", T: 9, opt: true },
|
|
1459
|
-
{ no: 3, name: "description", kind: "scalar", T: 9, opt: true }
|
|
1460
|
-
{ no: 4, name: "webhook", kind: "message", T: UpdateWebhookConfig, opt: true }
|
|
1325
|
+
{ no: 3, name: "description", kind: "scalar", T: 9, opt: true }
|
|
1461
1326
|
]);
|
|
1462
1327
|
static fromBinary(bytes, options) {
|
|
1463
1328
|
return new _UpdateAppRequest().fromBinary(bytes, options);
|
|
@@ -1472,58 +1337,6 @@ var UpdateAppRequest = class _UpdateAppRequest extends Message {
|
|
|
1472
1337
|
return proto3.util.equals(_UpdateAppRequest, a, b);
|
|
1473
1338
|
}
|
|
1474
1339
|
};
|
|
1475
|
-
var UpdateWebhookConfig = class _UpdateWebhookConfig extends Message {
|
|
1476
|
-
/**
|
|
1477
|
-
* New webhook URL. HTTPS only (same constraint as CreateWebhookConfig).
|
|
1478
|
-
* Set to empty string to disable webhooks.
|
|
1479
|
-
*
|
|
1480
|
-
* @generated from field: optional string url = 1;
|
|
1481
|
-
*/
|
|
1482
|
-
url;
|
|
1483
|
-
/**
|
|
1484
|
-
* If true, regenerate the webhook secret.
|
|
1485
|
-
* The new secret is returned in the response.
|
|
1486
|
-
*
|
|
1487
|
-
* @generated from field: bool regenerate_secret = 2;
|
|
1488
|
-
*/
|
|
1489
|
-
regenerateSecret = false;
|
|
1490
|
-
/**
|
|
1491
|
-
* New events to send.
|
|
1492
|
-
* Only applied if explicitly provided.
|
|
1493
|
-
*
|
|
1494
|
-
* @generated from field: repeated string events = 3;
|
|
1495
|
-
*/
|
|
1496
|
-
events = [];
|
|
1497
|
-
constructor(data) {
|
|
1498
|
-
super();
|
|
1499
|
-
proto3.util.initPartial(data, this);
|
|
1500
|
-
}
|
|
1501
|
-
static runtime = proto3;
|
|
1502
|
-
static typeName = "transcodely.v1.UpdateWebhookConfig";
|
|
1503
|
-
static fields = proto3.util.newFieldList(() => [
|
|
1504
|
-
{ no: 1, name: "url", kind: "scalar", T: 9, opt: true },
|
|
1505
|
-
{
|
|
1506
|
-
no: 2,
|
|
1507
|
-
name: "regenerate_secret",
|
|
1508
|
-
kind: "scalar",
|
|
1509
|
-
T: 8
|
|
1510
|
-
/* ScalarType.BOOL */
|
|
1511
|
-
},
|
|
1512
|
-
{ no: 3, name: "events", kind: "scalar", T: 9, repeated: true }
|
|
1513
|
-
]);
|
|
1514
|
-
static fromBinary(bytes, options) {
|
|
1515
|
-
return new _UpdateWebhookConfig().fromBinary(bytes, options);
|
|
1516
|
-
}
|
|
1517
|
-
static fromJson(jsonValue, options) {
|
|
1518
|
-
return new _UpdateWebhookConfig().fromJson(jsonValue, options);
|
|
1519
|
-
}
|
|
1520
|
-
static fromJsonString(jsonString, options) {
|
|
1521
|
-
return new _UpdateWebhookConfig().fromJsonString(jsonString, options);
|
|
1522
|
-
}
|
|
1523
|
-
static equals(a, b) {
|
|
1524
|
-
return proto3.util.equals(_UpdateWebhookConfig, a, b);
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
1340
|
var UpdateAppResponse = class _UpdateAppResponse extends Message {
|
|
1528
1341
|
/**
|
|
1529
1342
|
* The updated app.
|
|
@@ -1531,12 +1344,6 @@ var UpdateAppResponse = class _UpdateAppResponse extends Message {
|
|
|
1531
1344
|
* @generated from field: transcodely.v1.App app = 1;
|
|
1532
1345
|
*/
|
|
1533
1346
|
app;
|
|
1534
|
-
/**
|
|
1535
|
-
* New webhook secret (only returned if regenerate_secret was true).
|
|
1536
|
-
*
|
|
1537
|
-
* @generated from field: optional string webhook_secret = 2;
|
|
1538
|
-
*/
|
|
1539
|
-
webhookSecret;
|
|
1540
1347
|
constructor(data) {
|
|
1541
1348
|
super();
|
|
1542
1349
|
proto3.util.initPartial(data, this);
|
|
@@ -1544,8 +1351,7 @@ var UpdateAppResponse = class _UpdateAppResponse extends Message {
|
|
|
1544
1351
|
static runtime = proto3;
|
|
1545
1352
|
static typeName = "transcodely.v1.UpdateAppResponse";
|
|
1546
1353
|
static fields = proto3.util.newFieldList(() => [
|
|
1547
|
-
{ no: 1, name: "app", kind: "message", T: App }
|
|
1548
|
-
{ no: 2, name: "webhook_secret", kind: "scalar", T: 9, opt: true }
|
|
1354
|
+
{ no: 1, name: "app", kind: "message", T: App }
|
|
1549
1355
|
]);
|
|
1550
1356
|
static fromBinary(bytes, options) {
|
|
1551
1357
|
return new _UpdateAppResponse().fromBinary(bytes, options);
|
|
@@ -1987,7 +1793,7 @@ var AppService = {
|
|
|
1987
1793
|
kind: MethodKind.Unary
|
|
1988
1794
|
},
|
|
1989
1795
|
/**
|
|
1990
|
-
* Update an app's name
|
|
1796
|
+
* Update an app's name and description.
|
|
1991
1797
|
*
|
|
1992
1798
|
* @generated from rpc transcodely.v1.AppService.Update
|
|
1993
1799
|
*/
|
|
@@ -5972,6 +5778,12 @@ var Origin = class _Origin extends Message {
|
|
|
5972
5778
|
* @generated from field: string id = 1;
|
|
5973
5779
|
*/
|
|
5974
5780
|
id = "";
|
|
5781
|
+
/**
|
|
5782
|
+
* Parent app that owns this origin. Server-set; ignored on requests.
|
|
5783
|
+
*
|
|
5784
|
+
* @generated from field: string app_id = 19;
|
|
5785
|
+
*/
|
|
5786
|
+
appId = "";
|
|
5975
5787
|
/**
|
|
5976
5788
|
* Human-readable name for the origin.
|
|
5977
5789
|
*
|
|
@@ -6105,6 +5917,13 @@ var Origin = class _Origin extends Message {
|
|
|
6105
5917
|
T: 9
|
|
6106
5918
|
/* ScalarType.STRING */
|
|
6107
5919
|
},
|
|
5920
|
+
{
|
|
5921
|
+
no: 19,
|
|
5922
|
+
name: "app_id",
|
|
5923
|
+
kind: "scalar",
|
|
5924
|
+
T: 9
|
|
5925
|
+
/* ScalarType.STRING */
|
|
5926
|
+
},
|
|
6108
5927
|
{
|
|
6109
5928
|
no: 2,
|
|
6110
5929
|
name: "name",
|
|
@@ -6224,6 +6043,15 @@ var CreateOriginRequest = class _CreateOriginRequest extends Message {
|
|
|
6224
6043
|
* @generated from field: transcodely.v1.R2OriginConfig r2 = 9;
|
|
6225
6044
|
*/
|
|
6226
6045
|
r2;
|
|
6046
|
+
/**
|
|
6047
|
+
* Optional target app. API-key callers may omit it (their key's app is used)
|
|
6048
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
6049
|
+
* Portal/JWT callers pass it to create in a specific app in their org;
|
|
6050
|
+
* omitted selects the org's first active app.
|
|
6051
|
+
*
|
|
6052
|
+
* @generated from field: optional string app_id = 10;
|
|
6053
|
+
*/
|
|
6054
|
+
appId;
|
|
6227
6055
|
constructor(data) {
|
|
6228
6056
|
super();
|
|
6229
6057
|
proto3.util.initPartial(data, this);
|
|
@@ -6263,7 +6091,8 @@ var CreateOriginRequest = class _CreateOriginRequest extends Message {
|
|
|
6263
6091
|
{ no: 6, name: "gcs", kind: "message", T: GcsOriginConfig },
|
|
6264
6092
|
{ no: 7, name: "s3", kind: "message", T: S3OriginConfig },
|
|
6265
6093
|
{ no: 8, name: "http", kind: "message", T: HttpOriginConfig },
|
|
6266
|
-
{ no: 9, name: "r2", kind: "message", T: R2OriginConfig }
|
|
6094
|
+
{ no: 9, name: "r2", kind: "message", T: R2OriginConfig },
|
|
6095
|
+
{ no: 10, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
6267
6096
|
]);
|
|
6268
6097
|
static fromBinary(bytes, options) {
|
|
6269
6098
|
return new _CreateOriginRequest().fromBinary(bytes, options);
|
|
@@ -6503,6 +6332,15 @@ var ListOriginsRequest = class _ListOriginsRequest extends Message {
|
|
|
6503
6332
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 5;
|
|
6504
6333
|
*/
|
|
6505
6334
|
pagination;
|
|
6335
|
+
/**
|
|
6336
|
+
* Optional app filter. API-key callers may omit it (their key's app is used)
|
|
6337
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
6338
|
+
* Portal/JWT callers pass it to list a specific app in their org; omitted
|
|
6339
|
+
* returns origins across all apps in the org.
|
|
6340
|
+
*
|
|
6341
|
+
* @generated from field: optional string app_id = 6;
|
|
6342
|
+
*/
|
|
6343
|
+
appId;
|
|
6506
6344
|
constructor(data) {
|
|
6507
6345
|
super();
|
|
6508
6346
|
proto3.util.initPartial(data, this);
|
|
@@ -6520,7 +6358,8 @@ var ListOriginsRequest = class _ListOriginsRequest extends Message {
|
|
|
6520
6358
|
T: 8
|
|
6521
6359
|
/* ScalarType.BOOL */
|
|
6522
6360
|
},
|
|
6523
|
-
{ no: 5, name: "pagination", kind: "message", T: PaginationRequest }
|
|
6361
|
+
{ no: 5, name: "pagination", kind: "message", T: PaginationRequest },
|
|
6362
|
+
{ no: 6, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
6524
6363
|
]);
|
|
6525
6364
|
static fromBinary(bytes, options) {
|
|
6526
6365
|
return new _ListOriginsRequest().fromBinary(bytes, options);
|
|
@@ -8966,6 +8805,12 @@ var Job = class _Job extends Message {
|
|
|
8966
8805
|
* @generated from field: string id = 1;
|
|
8967
8806
|
*/
|
|
8968
8807
|
id = "";
|
|
8808
|
+
/**
|
|
8809
|
+
* Parent app that owns this job. Server-set; ignored on requests.
|
|
8810
|
+
*
|
|
8811
|
+
* @generated from field: string app_id = 29;
|
|
8812
|
+
*/
|
|
8813
|
+
appId = "";
|
|
8969
8814
|
/**
|
|
8970
8815
|
* URL of the input video file (direct URL mode).
|
|
8971
8816
|
* Set if the job was created with input_url.
|
|
@@ -9159,6 +9004,13 @@ var Job = class _Job extends Message {
|
|
|
9159
9004
|
T: 9
|
|
9160
9005
|
/* ScalarType.STRING */
|
|
9161
9006
|
},
|
|
9007
|
+
{
|
|
9008
|
+
no: 29,
|
|
9009
|
+
name: "app_id",
|
|
9010
|
+
kind: "scalar",
|
|
9011
|
+
T: 9
|
|
9012
|
+
/* ScalarType.STRING */
|
|
9013
|
+
},
|
|
9162
9014
|
{
|
|
9163
9015
|
no: 2,
|
|
9164
9016
|
name: "input_url",
|
|
@@ -9342,6 +9194,15 @@ var CreateJobRequest = class _CreateJobRequest extends Message {
|
|
|
9342
9194
|
* @generated from field: optional bool managed = 20;
|
|
9343
9195
|
*/
|
|
9344
9196
|
managed;
|
|
9197
|
+
/**
|
|
9198
|
+
* Optional target app. API-key callers may omit it (their key's app is used)
|
|
9199
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
9200
|
+
* Portal/JWT callers pass it to create in a specific app in their org;
|
|
9201
|
+
* omitted selects the org's first active app.
|
|
9202
|
+
*
|
|
9203
|
+
* @generated from field: optional string app_id = 21;
|
|
9204
|
+
*/
|
|
9205
|
+
appId;
|
|
9345
9206
|
constructor(data) {
|
|
9346
9207
|
super();
|
|
9347
9208
|
proto3.util.initPartial(data, this);
|
|
@@ -9377,7 +9238,8 @@ var CreateJobRequest = class _CreateJobRequest extends Message {
|
|
|
9377
9238
|
},
|
|
9378
9239
|
{ no: 8, name: "thumbnails", kind: "message", T: ThumbnailSpec, repeated: true },
|
|
9379
9240
|
{ no: 12, name: "output_path_template", kind: "scalar", T: 9, opt: true },
|
|
9380
|
-
{ no: 20, name: "managed", kind: "scalar", T: 8, opt: true }
|
|
9241
|
+
{ no: 20, name: "managed", kind: "scalar", T: 8, opt: true },
|
|
9242
|
+
{ no: 21, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
9381
9243
|
]);
|
|
9382
9244
|
static fromBinary(bytes, options) {
|
|
9383
9245
|
return new _CreateJobRequest().fromBinary(bytes, options);
|
|
@@ -9505,6 +9367,15 @@ var ListJobsRequest = class _ListJobsRequest extends Message {
|
|
|
9505
9367
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 2;
|
|
9506
9368
|
*/
|
|
9507
9369
|
pagination;
|
|
9370
|
+
/**
|
|
9371
|
+
* Optional app filter. API-key callers may omit it (their key's app is used)
|
|
9372
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
9373
|
+
* Portal/JWT callers pass it to list a specific app in their org; omitted
|
|
9374
|
+
* returns jobs across all apps in the org.
|
|
9375
|
+
*
|
|
9376
|
+
* @generated from field: optional string app_id = 3;
|
|
9377
|
+
*/
|
|
9378
|
+
appId;
|
|
9508
9379
|
constructor(data) {
|
|
9509
9380
|
super();
|
|
9510
9381
|
proto3.util.initPartial(data, this);
|
|
@@ -9513,7 +9384,8 @@ var ListJobsRequest = class _ListJobsRequest extends Message {
|
|
|
9513
9384
|
static typeName = "transcodely.v1.ListJobsRequest";
|
|
9514
9385
|
static fields = proto3.util.newFieldList(() => [
|
|
9515
9386
|
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus), opt: true },
|
|
9516
|
-
{ no: 2, name: "pagination", kind: "message", T: PaginationRequest }
|
|
9387
|
+
{ no: 2, name: "pagination", kind: "message", T: PaginationRequest },
|
|
9388
|
+
{ no: 3, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
9517
9389
|
]);
|
|
9518
9390
|
static fromBinary(bytes, options) {
|
|
9519
9391
|
return new _ListJobsRequest().fromBinary(bytes, options);
|
|
@@ -10968,6 +10840,15 @@ var ListVideosRequest = class _ListVideosRequest extends Message {
|
|
|
10968
10840
|
* @generated from field: optional string status = 3;
|
|
10969
10841
|
*/
|
|
10970
10842
|
status;
|
|
10843
|
+
/**
|
|
10844
|
+
* Optional app filter. API-key callers may omit it (their key's app is used)
|
|
10845
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
10846
|
+
* Portal/JWT callers pass it to list a specific app in their org; omitted
|
|
10847
|
+
* returns videos across all apps in the org.
|
|
10848
|
+
*
|
|
10849
|
+
* @generated from field: optional string app_id = 4;
|
|
10850
|
+
*/
|
|
10851
|
+
appId;
|
|
10971
10852
|
constructor(data) {
|
|
10972
10853
|
super();
|
|
10973
10854
|
proto3.util.initPartial(data, this);
|
|
@@ -10983,7 +10864,8 @@ var ListVideosRequest = class _ListVideosRequest extends Message {
|
|
|
10983
10864
|
/* ScalarType.INT32 */
|
|
10984
10865
|
},
|
|
10985
10866
|
{ no: 2, name: "page_token", kind: "scalar", T: 9, opt: true },
|
|
10986
|
-
{ no: 3, name: "status", kind: "scalar", T: 9, opt: true }
|
|
10867
|
+
{ no: 3, name: "status", kind: "scalar", T: 9, opt: true },
|
|
10868
|
+
{ no: 4, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
10987
10869
|
]);
|
|
10988
10870
|
static fromBinary(bytes, options) {
|
|
10989
10871
|
return new _ListVideosRequest().fromBinary(bytes, options);
|
|
@@ -11949,7 +11831,7 @@ function backoff(attempt) {
|
|
|
11949
11831
|
}
|
|
11950
11832
|
|
|
11951
11833
|
// src/version.ts
|
|
11952
|
-
var SDK_VERSION = "0.
|
|
11834
|
+
var SDK_VERSION = "0.3.0";
|
|
11953
11835
|
var API_VERSION = "2026-05-03";
|
|
11954
11836
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
11955
11837
|
|
|
@@ -13822,6 +13704,13 @@ var Preset = class _Preset extends Message {
|
|
|
13822
13704
|
* @generated from field: string id = 1;
|
|
13823
13705
|
*/
|
|
13824
13706
|
id = "";
|
|
13707
|
+
/**
|
|
13708
|
+
* Parent app that owns this preset. Server-set; ignored on requests.
|
|
13709
|
+
* Empty for system presets, which belong to no app and are visible to all.
|
|
13710
|
+
*
|
|
13711
|
+
* @generated from field: string app_id = 20;
|
|
13712
|
+
*/
|
|
13713
|
+
appId = "";
|
|
13825
13714
|
/**
|
|
13826
13715
|
* URL-safe slug identifier (e.g., "film_1080p_standard").
|
|
13827
13716
|
* Used for referencing presets in job creation.
|
|
@@ -13946,6 +13835,13 @@ var Preset = class _Preset extends Message {
|
|
|
13946
13835
|
T: 9
|
|
13947
13836
|
/* ScalarType.STRING */
|
|
13948
13837
|
},
|
|
13838
|
+
{
|
|
13839
|
+
no: 20,
|
|
13840
|
+
name: "app_id",
|
|
13841
|
+
kind: "scalar",
|
|
13842
|
+
T: 9
|
|
13843
|
+
/* ScalarType.STRING */
|
|
13844
|
+
},
|
|
13949
13845
|
{
|
|
13950
13846
|
no: 2,
|
|
13951
13847
|
name: "slug",
|
|
@@ -14099,6 +13995,15 @@ var CreatePresetRequest = class _CreatePresetRequest extends Message {
|
|
|
14099
13995
|
* @generated from field: optional bool disable_audio = 15;
|
|
14100
13996
|
*/
|
|
14101
13997
|
disableAudio;
|
|
13998
|
+
/**
|
|
13999
|
+
* Optional target app. API-key callers may omit it (their key's app is used)
|
|
14000
|
+
* or pass their own app; a different app is rejected with PermissionDenied.
|
|
14001
|
+
* Portal/JWT callers pass it to create in a specific app in their org;
|
|
14002
|
+
* omitted selects the org's first active app.
|
|
14003
|
+
*
|
|
14004
|
+
* @generated from field: optional string app_id = 16;
|
|
14005
|
+
*/
|
|
14006
|
+
appId;
|
|
14102
14007
|
constructor(data) {
|
|
14103
14008
|
super();
|
|
14104
14009
|
proto3.util.initPartial(data, this);
|
|
@@ -14131,7 +14036,8 @@ var CreatePresetRequest = class _CreatePresetRequest extends Message {
|
|
|
14131
14036
|
{ no: 10, name: "audio", kind: "message", T: AudioSettings },
|
|
14132
14037
|
{ no: 11, name: "quality_tier", kind: "enum", T: proto3.getEnumType(QualityTier) },
|
|
14133
14038
|
{ no: 14, name: "variants", kind: "message", T: PresetVariant, repeated: true },
|
|
14134
|
-
{ no: 15, name: "disable_audio", kind: "scalar", T: 8, opt: true }
|
|
14039
|
+
{ no: 15, name: "disable_audio", kind: "scalar", T: 8, opt: true },
|
|
14040
|
+
{ no: 16, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
14135
14041
|
]);
|
|
14136
14042
|
static fromBinary(bytes, options) {
|
|
14137
14043
|
return new _CreatePresetRequest().fromBinary(bytes, options);
|
|
@@ -14340,6 +14246,16 @@ var ListPresetsRequest = class _ListPresetsRequest extends Message {
|
|
|
14340
14246
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 5;
|
|
14341
14247
|
*/
|
|
14342
14248
|
pagination;
|
|
14249
|
+
/**
|
|
14250
|
+
* Optional app filter for custom presets. API-key callers may omit it (their
|
|
14251
|
+
* key's app is used) or pass their own app; a different app is rejected with
|
|
14252
|
+
* PermissionDenied. Portal/JWT callers pass it to scope custom presets to a
|
|
14253
|
+
* specific app in their org; omitted spans all apps in the org. System
|
|
14254
|
+
* presets are unaffected (governed by include_system).
|
|
14255
|
+
*
|
|
14256
|
+
* @generated from field: optional string app_id = 7;
|
|
14257
|
+
*/
|
|
14258
|
+
appId;
|
|
14343
14259
|
constructor(data) {
|
|
14344
14260
|
super();
|
|
14345
14261
|
proto3.util.initPartial(data, this);
|
|
@@ -14352,7 +14268,8 @@ var ListPresetsRequest = class _ListPresetsRequest extends Message {
|
|
|
14352
14268
|
{ no: 3, name: "quality_tier", kind: "enum", T: proto3.getEnumType(QualityTier), opt: true },
|
|
14353
14269
|
{ no: 4, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec), opt: true },
|
|
14354
14270
|
{ no: 6, name: "delivery_format", kind: "enum", T: proto3.getEnumType(DeliveryFormat), opt: true },
|
|
14355
|
-
{ no: 5, name: "pagination", kind: "message", T: PaginationRequest }
|
|
14271
|
+
{ no: 5, name: "pagination", kind: "message", T: PaginationRequest },
|
|
14272
|
+
{ no: 7, name: "app_id", kind: "scalar", T: 9, opt: true }
|
|
14356
14273
|
]);
|
|
14357
14274
|
static fromBinary(bytes, options) {
|
|
14358
14275
|
return new _ListPresetsRequest().fromBinary(bytes, options);
|