@transcodely/sdk 0.1.4 → 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 +28 -0
- package/README.md +16 -2
- package/dist/index.cjs +299 -298
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +217 -214
- package/dist/index.d.ts +217 -214
- package/dist/index.mjs +300 -298
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -2
package/dist/index.mjs
CHANGED
|
@@ -355,17 +355,6 @@ var FieldViolation = class _FieldViolation extends Message {
|
|
|
355
355
|
};
|
|
356
356
|
|
|
357
357
|
// src/gen/transcodely/v1/api_key_pb.ts
|
|
358
|
-
var APIKeyEnvironment = /* @__PURE__ */ ((APIKeyEnvironment2) => {
|
|
359
|
-
APIKeyEnvironment2[APIKeyEnvironment2["API_KEY_ENVIRONMENT_UNSPECIFIED"] = 0] = "API_KEY_ENVIRONMENT_UNSPECIFIED";
|
|
360
|
-
APIKeyEnvironment2[APIKeyEnvironment2["API_KEY_ENVIRONMENT_LIVE"] = 1] = "API_KEY_ENVIRONMENT_LIVE";
|
|
361
|
-
APIKeyEnvironment2[APIKeyEnvironment2["API_KEY_ENVIRONMENT_TEST"] = 2] = "API_KEY_ENVIRONMENT_TEST";
|
|
362
|
-
return APIKeyEnvironment2;
|
|
363
|
-
})(APIKeyEnvironment || {});
|
|
364
|
-
proto3.util.setEnumType(APIKeyEnvironment, "transcodely.v1.APIKeyEnvironment", [
|
|
365
|
-
{ no: 0, name: "API_KEY_ENVIRONMENT_UNSPECIFIED" },
|
|
366
|
-
{ no: 1, name: "API_KEY_ENVIRONMENT_LIVE" },
|
|
367
|
-
{ no: 2, name: "API_KEY_ENVIRONMENT_TEST" }
|
|
368
|
-
]);
|
|
369
358
|
var APIKey = class _APIKey extends Message {
|
|
370
359
|
/**
|
|
371
360
|
* Unique API key identifier (e.g., "ak_a1b2c3d4...").
|
|
@@ -373,6 +362,12 @@ var APIKey = class _APIKey extends Message {
|
|
|
373
362
|
* @generated from field: string id = 1;
|
|
374
363
|
*/
|
|
375
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 = "";
|
|
376
371
|
/**
|
|
377
372
|
* Human-readable name for the key.
|
|
378
373
|
*
|
|
@@ -386,7 +381,7 @@ var APIKey = class _APIKey extends Message {
|
|
|
386
381
|
*/
|
|
387
382
|
description = "";
|
|
388
383
|
/**
|
|
389
|
-
* Key prefix for identification (e.g., "
|
|
384
|
+
* Key prefix for identification (e.g., "ak_...").
|
|
390
385
|
* Safe to display in logs and dashboards.
|
|
391
386
|
*
|
|
392
387
|
* @generated from field: string key_prefix = 4;
|
|
@@ -399,12 +394,6 @@ var APIKey = class _APIKey extends Message {
|
|
|
399
394
|
* @generated from field: string key_hint = 5;
|
|
400
395
|
*/
|
|
401
396
|
keyHint = "";
|
|
402
|
-
/**
|
|
403
|
-
* Environment the key is valid for.
|
|
404
|
-
*
|
|
405
|
-
* @generated from field: transcodely.v1.APIKeyEnvironment environment = 6;
|
|
406
|
-
*/
|
|
407
|
-
environment = 0 /* API_KEY_ENVIRONMENT_UNSPECIFIED */;
|
|
408
397
|
/**
|
|
409
398
|
* Permission scopes (empty means full access).
|
|
410
399
|
* Future: granular permissions like "jobs:read", "jobs:write".
|
|
@@ -456,6 +445,13 @@ var APIKey = class _APIKey extends Message {
|
|
|
456
445
|
T: 9
|
|
457
446
|
/* ScalarType.STRING */
|
|
458
447
|
},
|
|
448
|
+
{
|
|
449
|
+
no: 13,
|
|
450
|
+
name: "app_id",
|
|
451
|
+
kind: "scalar",
|
|
452
|
+
T: 9
|
|
453
|
+
/* ScalarType.STRING */
|
|
454
|
+
},
|
|
459
455
|
{
|
|
460
456
|
no: 2,
|
|
461
457
|
name: "name",
|
|
@@ -484,7 +480,6 @@ var APIKey = class _APIKey extends Message {
|
|
|
484
480
|
T: 9
|
|
485
481
|
/* ScalarType.STRING */
|
|
486
482
|
},
|
|
487
|
-
{ no: 6, name: "environment", kind: "enum", T: proto3.getEnumType(APIKeyEnvironment) },
|
|
488
483
|
{ no: 7, name: "scopes", kind: "scalar", T: 9, repeated: true },
|
|
489
484
|
{ no: 8, name: "last_used_at", kind: "message", T: Timestamp, opt: true },
|
|
490
485
|
{ no: 9, name: "expires_at", kind: "message", T: Timestamp, opt: true },
|
|
@@ -524,12 +519,6 @@ var CreateAPIKeyRequest = class _CreateAPIKeyRequest extends Message {
|
|
|
524
519
|
* @generated from field: string description = 2;
|
|
525
520
|
*/
|
|
526
521
|
description = "";
|
|
527
|
-
/**
|
|
528
|
-
* Environment for the key.
|
|
529
|
-
*
|
|
530
|
-
* @generated from field: transcodely.v1.APIKeyEnvironment environment = 3;
|
|
531
|
-
*/
|
|
532
|
-
environment = 0 /* API_KEY_ENVIRONMENT_UNSPECIFIED */;
|
|
533
522
|
/**
|
|
534
523
|
* Optional expiration time. Null means the key never expires.
|
|
535
524
|
*
|
|
@@ -564,7 +553,6 @@ var CreateAPIKeyRequest = class _CreateAPIKeyRequest extends Message {
|
|
|
564
553
|
T: 9
|
|
565
554
|
/* ScalarType.STRING */
|
|
566
555
|
},
|
|
567
|
-
{ no: 3, name: "environment", kind: "enum", T: proto3.getEnumType(APIKeyEnvironment) },
|
|
568
556
|
{ no: 4, name: "expires_at", kind: "message", T: Timestamp, opt: true },
|
|
569
557
|
{
|
|
570
558
|
no: 5,
|
|
@@ -696,12 +684,6 @@ var GetAPIKeyResponse = class _GetAPIKeyResponse extends Message {
|
|
|
696
684
|
}
|
|
697
685
|
};
|
|
698
686
|
var ListAPIKeysRequest = class _ListAPIKeysRequest extends Message {
|
|
699
|
-
/**
|
|
700
|
-
* Optional filter by environment.
|
|
701
|
-
*
|
|
702
|
-
* @generated from field: optional transcodely.v1.APIKeyEnvironment environment = 1;
|
|
703
|
-
*/
|
|
704
|
-
environment;
|
|
705
687
|
/**
|
|
706
688
|
* If true, include revoked keys in the response.
|
|
707
689
|
*
|
|
@@ -714,6 +696,15 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends Message {
|
|
|
714
696
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 3;
|
|
715
697
|
*/
|
|
716
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;
|
|
717
708
|
constructor(data) {
|
|
718
709
|
super();
|
|
719
710
|
proto3.util.initPartial(data, this);
|
|
@@ -721,7 +712,6 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends Message {
|
|
|
721
712
|
static runtime = proto3;
|
|
722
713
|
static typeName = "transcodely.v1.ListAPIKeysRequest";
|
|
723
714
|
static fields = proto3.util.newFieldList(() => [
|
|
724
|
-
{ no: 1, name: "environment", kind: "enum", T: proto3.getEnumType(APIKeyEnvironment), opt: true },
|
|
725
715
|
{
|
|
726
716
|
no: 2,
|
|
727
717
|
name: "include_revoked",
|
|
@@ -729,7 +719,8 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends Message {
|
|
|
729
719
|
T: 8
|
|
730
720
|
/* ScalarType.BOOL */
|
|
731
721
|
},
|
|
732
|
-
{ 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 }
|
|
733
724
|
]);
|
|
734
725
|
static fromBinary(bytes, options) {
|
|
735
726
|
return new _ListAPIKeysRequest().fromBinary(bytes, options);
|
|
@@ -1027,17 +1018,6 @@ var App = class _App extends Message {
|
|
|
1027
1018
|
* @generated from field: optional string description = 4;
|
|
1028
1019
|
*/
|
|
1029
1020
|
description;
|
|
1030
|
-
/**
|
|
1031
|
-
* Webhook configuration.
|
|
1032
|
-
* Deprecated: Use WebhookService (webhook.proto) to manage webhook endpoints
|
|
1033
|
-
* instead. The new WebhookEndpoint resource supports multiple endpoints per
|
|
1034
|
-
* app, HMAC-SHA-256 signing with secret rotation, and per-event type
|
|
1035
|
-
* subscriptions. This field is retained for backwards compatibility;
|
|
1036
|
-
* field number 5 must never be reused.
|
|
1037
|
-
*
|
|
1038
|
-
* @generated from field: optional transcodely.v1.WebhookConfig webhook = 5;
|
|
1039
|
-
*/
|
|
1040
|
-
webhook;
|
|
1041
1021
|
/**
|
|
1042
1022
|
* App status.
|
|
1043
1023
|
*
|
|
@@ -1123,7 +1103,6 @@ var App = class _App extends Message {
|
|
|
1123
1103
|
/* ScalarType.STRING */
|
|
1124
1104
|
},
|
|
1125
1105
|
{ no: 4, name: "description", kind: "scalar", T: 9, opt: true },
|
|
1126
|
-
{ no: 5, name: "webhook", kind: "message", T: WebhookConfig, opt: true },
|
|
1127
1106
|
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(AppStatus) },
|
|
1128
1107
|
{ no: 7, name: "created_at", kind: "message", T: Timestamp },
|
|
1129
1108
|
{ no: 8, name: "updated_at", kind: "message", T: Timestamp },
|
|
@@ -1153,72 +1132,6 @@ var App = class _App extends Message {
|
|
|
1153
1132
|
return proto3.util.equals(_App, a, b);
|
|
1154
1133
|
}
|
|
1155
1134
|
};
|
|
1156
|
-
var WebhookConfig = class _WebhookConfig extends Message {
|
|
1157
|
-
/**
|
|
1158
|
-
* HTTPS endpoint for receiving webhooks.
|
|
1159
|
-
*
|
|
1160
|
-
* @generated from field: string url = 1;
|
|
1161
|
-
*/
|
|
1162
|
-
url = "";
|
|
1163
|
-
/**
|
|
1164
|
-
* Secret for HMAC-SHA256 signature verification.
|
|
1165
|
-
* Only the last 4 characters are shown (hint).
|
|
1166
|
-
* Full secret is only returned when first configured.
|
|
1167
|
-
*
|
|
1168
|
-
* @generated from field: optional string secret_hint = 2;
|
|
1169
|
-
*/
|
|
1170
|
-
secretHint;
|
|
1171
|
-
/**
|
|
1172
|
-
* Whether a secret is configured.
|
|
1173
|
-
*
|
|
1174
|
-
* @generated from field: bool has_secret = 3;
|
|
1175
|
-
*/
|
|
1176
|
-
hasSecret = false;
|
|
1177
|
-
/**
|
|
1178
|
-
* Events to send.
|
|
1179
|
-
* Possible values: job.completed, job.failed, job.progress, job.canceled,
|
|
1180
|
-
* output.completed, output.failed
|
|
1181
|
-
*
|
|
1182
|
-
* @generated from field: repeated string events = 4;
|
|
1183
|
-
*/
|
|
1184
|
-
events = [];
|
|
1185
|
-
constructor(data) {
|
|
1186
|
-
super();
|
|
1187
|
-
proto3.util.initPartial(data, this);
|
|
1188
|
-
}
|
|
1189
|
-
static runtime = proto3;
|
|
1190
|
-
static typeName = "transcodely.v1.WebhookConfig";
|
|
1191
|
-
static fields = proto3.util.newFieldList(() => [
|
|
1192
|
-
{
|
|
1193
|
-
no: 1,
|
|
1194
|
-
name: "url",
|
|
1195
|
-
kind: "scalar",
|
|
1196
|
-
T: 9
|
|
1197
|
-
/* ScalarType.STRING */
|
|
1198
|
-
},
|
|
1199
|
-
{ no: 2, name: "secret_hint", kind: "scalar", T: 9, opt: true },
|
|
1200
|
-
{
|
|
1201
|
-
no: 3,
|
|
1202
|
-
name: "has_secret",
|
|
1203
|
-
kind: "scalar",
|
|
1204
|
-
T: 8
|
|
1205
|
-
/* ScalarType.BOOL */
|
|
1206
|
-
},
|
|
1207
|
-
{ no: 4, name: "events", kind: "scalar", T: 9, repeated: true }
|
|
1208
|
-
]);
|
|
1209
|
-
static fromBinary(bytes, options) {
|
|
1210
|
-
return new _WebhookConfig().fromBinary(bytes, options);
|
|
1211
|
-
}
|
|
1212
|
-
static fromJson(jsonValue, options) {
|
|
1213
|
-
return new _WebhookConfig().fromJson(jsonValue, options);
|
|
1214
|
-
}
|
|
1215
|
-
static fromJsonString(jsonString, options) {
|
|
1216
|
-
return new _WebhookConfig().fromJsonString(jsonString, options);
|
|
1217
|
-
}
|
|
1218
|
-
static equals(a, b) {
|
|
1219
|
-
return proto3.util.equals(_WebhookConfig, a, b);
|
|
1220
|
-
}
|
|
1221
|
-
};
|
|
1222
1135
|
var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
1223
1136
|
/**
|
|
1224
1137
|
* Parent organization ID.
|
|
@@ -1238,12 +1151,6 @@ var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
|
1238
1151
|
* @generated from field: optional string description = 3;
|
|
1239
1152
|
*/
|
|
1240
1153
|
description;
|
|
1241
|
-
/**
|
|
1242
|
-
* Optional webhook configuration.
|
|
1243
|
-
*
|
|
1244
|
-
* @generated from field: optional transcodely.v1.CreateWebhookConfig webhook = 4;
|
|
1245
|
-
*/
|
|
1246
|
-
webhook;
|
|
1247
1154
|
/**
|
|
1248
1155
|
* Enable video hosting for this app. Provisions CDN infrastructure.
|
|
1249
1156
|
* This cannot be disabled once enabled.
|
|
@@ -1273,7 +1180,6 @@ var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
|
1273
1180
|
/* ScalarType.STRING */
|
|
1274
1181
|
},
|
|
1275
1182
|
{ no: 3, name: "description", kind: "scalar", T: 9, opt: true },
|
|
1276
|
-
{ no: 4, name: "webhook", kind: "message", T: CreateWebhookConfig, opt: true },
|
|
1277
1183
|
{ no: 5, name: "enable_hosting", kind: "scalar", T: 8, opt: true }
|
|
1278
1184
|
]);
|
|
1279
1185
|
static fromBinary(bytes, options) {
|
|
@@ -1289,63 +1195,6 @@ var CreateAppRequest = class _CreateAppRequest extends Message {
|
|
|
1289
1195
|
return proto3.util.equals(_CreateAppRequest, a, b);
|
|
1290
1196
|
}
|
|
1291
1197
|
};
|
|
1292
|
-
var CreateWebhookConfig = class _CreateWebhookConfig extends Message {
|
|
1293
|
-
/**
|
|
1294
|
-
* HTTPS endpoint for receiving webhooks.
|
|
1295
|
-
*
|
|
1296
|
-
* @generated from field: string url = 1;
|
|
1297
|
-
*/
|
|
1298
|
-
url = "";
|
|
1299
|
-
/**
|
|
1300
|
-
* If true, a webhook secret will be generated.
|
|
1301
|
-
* The secret is returned once in the response.
|
|
1302
|
-
*
|
|
1303
|
-
* @generated from field: bool generate_secret = 2;
|
|
1304
|
-
*/
|
|
1305
|
-
generateSecret = false;
|
|
1306
|
-
/**
|
|
1307
|
-
* Events to send.
|
|
1308
|
-
* Default: ["job.completed", "job.failed"] if not specified.
|
|
1309
|
-
*
|
|
1310
|
-
* @generated from field: repeated string events = 3;
|
|
1311
|
-
*/
|
|
1312
|
-
events = [];
|
|
1313
|
-
constructor(data) {
|
|
1314
|
-
super();
|
|
1315
|
-
proto3.util.initPartial(data, this);
|
|
1316
|
-
}
|
|
1317
|
-
static runtime = proto3;
|
|
1318
|
-
static typeName = "transcodely.v1.CreateWebhookConfig";
|
|
1319
|
-
static fields = proto3.util.newFieldList(() => [
|
|
1320
|
-
{
|
|
1321
|
-
no: 1,
|
|
1322
|
-
name: "url",
|
|
1323
|
-
kind: "scalar",
|
|
1324
|
-
T: 9
|
|
1325
|
-
/* ScalarType.STRING */
|
|
1326
|
-
},
|
|
1327
|
-
{
|
|
1328
|
-
no: 2,
|
|
1329
|
-
name: "generate_secret",
|
|
1330
|
-
kind: "scalar",
|
|
1331
|
-
T: 8
|
|
1332
|
-
/* ScalarType.BOOL */
|
|
1333
|
-
},
|
|
1334
|
-
{ no: 3, name: "events", kind: "scalar", T: 9, repeated: true }
|
|
1335
|
-
]);
|
|
1336
|
-
static fromBinary(bytes, options) {
|
|
1337
|
-
return new _CreateWebhookConfig().fromBinary(bytes, options);
|
|
1338
|
-
}
|
|
1339
|
-
static fromJson(jsonValue, options) {
|
|
1340
|
-
return new _CreateWebhookConfig().fromJson(jsonValue, options);
|
|
1341
|
-
}
|
|
1342
|
-
static fromJsonString(jsonString, options) {
|
|
1343
|
-
return new _CreateWebhookConfig().fromJsonString(jsonString, options);
|
|
1344
|
-
}
|
|
1345
|
-
static equals(a, b) {
|
|
1346
|
-
return proto3.util.equals(_CreateWebhookConfig, a, b);
|
|
1347
|
-
}
|
|
1348
|
-
};
|
|
1349
1198
|
var CreateAppResponse = class _CreateAppResponse extends Message {
|
|
1350
1199
|
/**
|
|
1351
1200
|
* The created app.
|
|
@@ -1353,13 +1202,6 @@ var CreateAppResponse = class _CreateAppResponse extends Message {
|
|
|
1353
1202
|
* @generated from field: transcodely.v1.App app = 1;
|
|
1354
1203
|
*/
|
|
1355
1204
|
app;
|
|
1356
|
-
/**
|
|
1357
|
-
* Webhook secret (only returned if generate_secret was true).
|
|
1358
|
-
* WARNING: This is the only time the secret is returned.
|
|
1359
|
-
*
|
|
1360
|
-
* @generated from field: optional string webhook_secret = 2;
|
|
1361
|
-
*/
|
|
1362
|
-
webhookSecret;
|
|
1363
1205
|
constructor(data) {
|
|
1364
1206
|
super();
|
|
1365
1207
|
proto3.util.initPartial(data, this);
|
|
@@ -1367,8 +1209,7 @@ var CreateAppResponse = class _CreateAppResponse extends Message {
|
|
|
1367
1209
|
static runtime = proto3;
|
|
1368
1210
|
static typeName = "transcodely.v1.CreateAppResponse";
|
|
1369
1211
|
static fields = proto3.util.newFieldList(() => [
|
|
1370
|
-
{ no: 1, name: "app", kind: "message", T: App }
|
|
1371
|
-
{ no: 2, name: "webhook_secret", kind: "scalar", T: 9, opt: true }
|
|
1212
|
+
{ no: 1, name: "app", kind: "message", T: App }
|
|
1372
1213
|
]);
|
|
1373
1214
|
static fromBinary(bytes, options) {
|
|
1374
1215
|
return new _CreateAppResponse().fromBinary(bytes, options);
|
|
@@ -1466,13 +1307,6 @@ var UpdateAppRequest = class _UpdateAppRequest extends Message {
|
|
|
1466
1307
|
* @generated from field: optional string description = 3;
|
|
1467
1308
|
*/
|
|
1468
1309
|
description;
|
|
1469
|
-
/**
|
|
1470
|
-
* New webhook configuration (if provided).
|
|
1471
|
-
* Set to empty message to clear webhook config.
|
|
1472
|
-
*
|
|
1473
|
-
* @generated from field: optional transcodely.v1.UpdateWebhookConfig webhook = 4;
|
|
1474
|
-
*/
|
|
1475
|
-
webhook;
|
|
1476
1310
|
constructor(data) {
|
|
1477
1311
|
super();
|
|
1478
1312
|
proto3.util.initPartial(data, this);
|
|
@@ -1488,8 +1322,7 @@ var UpdateAppRequest = class _UpdateAppRequest extends Message {
|
|
|
1488
1322
|
/* ScalarType.STRING */
|
|
1489
1323
|
},
|
|
1490
1324
|
{ no: 2, name: "name", kind: "scalar", T: 9, opt: true },
|
|
1491
|
-
{ no: 3, name: "description", kind: "scalar", T: 9, opt: true }
|
|
1492
|
-
{ no: 4, name: "webhook", kind: "message", T: UpdateWebhookConfig, opt: true }
|
|
1325
|
+
{ no: 3, name: "description", kind: "scalar", T: 9, opt: true }
|
|
1493
1326
|
]);
|
|
1494
1327
|
static fromBinary(bytes, options) {
|
|
1495
1328
|
return new _UpdateAppRequest().fromBinary(bytes, options);
|
|
@@ -1504,58 +1337,6 @@ var UpdateAppRequest = class _UpdateAppRequest extends Message {
|
|
|
1504
1337
|
return proto3.util.equals(_UpdateAppRequest, a, b);
|
|
1505
1338
|
}
|
|
1506
1339
|
};
|
|
1507
|
-
var UpdateWebhookConfig = class _UpdateWebhookConfig extends Message {
|
|
1508
|
-
/**
|
|
1509
|
-
* New webhook URL. HTTPS only (same constraint as CreateWebhookConfig).
|
|
1510
|
-
* Set to empty string to disable webhooks.
|
|
1511
|
-
*
|
|
1512
|
-
* @generated from field: optional string url = 1;
|
|
1513
|
-
*/
|
|
1514
|
-
url;
|
|
1515
|
-
/**
|
|
1516
|
-
* If true, regenerate the webhook secret.
|
|
1517
|
-
* The new secret is returned in the response.
|
|
1518
|
-
*
|
|
1519
|
-
* @generated from field: bool regenerate_secret = 2;
|
|
1520
|
-
*/
|
|
1521
|
-
regenerateSecret = false;
|
|
1522
|
-
/**
|
|
1523
|
-
* New events to send.
|
|
1524
|
-
* Only applied if explicitly provided.
|
|
1525
|
-
*
|
|
1526
|
-
* @generated from field: repeated string events = 3;
|
|
1527
|
-
*/
|
|
1528
|
-
events = [];
|
|
1529
|
-
constructor(data) {
|
|
1530
|
-
super();
|
|
1531
|
-
proto3.util.initPartial(data, this);
|
|
1532
|
-
}
|
|
1533
|
-
static runtime = proto3;
|
|
1534
|
-
static typeName = "transcodely.v1.UpdateWebhookConfig";
|
|
1535
|
-
static fields = proto3.util.newFieldList(() => [
|
|
1536
|
-
{ no: 1, name: "url", kind: "scalar", T: 9, opt: true },
|
|
1537
|
-
{
|
|
1538
|
-
no: 2,
|
|
1539
|
-
name: "regenerate_secret",
|
|
1540
|
-
kind: "scalar",
|
|
1541
|
-
T: 8
|
|
1542
|
-
/* ScalarType.BOOL */
|
|
1543
|
-
},
|
|
1544
|
-
{ no: 3, name: "events", kind: "scalar", T: 9, repeated: true }
|
|
1545
|
-
]);
|
|
1546
|
-
static fromBinary(bytes, options) {
|
|
1547
|
-
return new _UpdateWebhookConfig().fromBinary(bytes, options);
|
|
1548
|
-
}
|
|
1549
|
-
static fromJson(jsonValue, options) {
|
|
1550
|
-
return new _UpdateWebhookConfig().fromJson(jsonValue, options);
|
|
1551
|
-
}
|
|
1552
|
-
static fromJsonString(jsonString, options) {
|
|
1553
|
-
return new _UpdateWebhookConfig().fromJsonString(jsonString, options);
|
|
1554
|
-
}
|
|
1555
|
-
static equals(a, b) {
|
|
1556
|
-
return proto3.util.equals(_UpdateWebhookConfig, a, b);
|
|
1557
|
-
}
|
|
1558
|
-
};
|
|
1559
1340
|
var UpdateAppResponse = class _UpdateAppResponse extends Message {
|
|
1560
1341
|
/**
|
|
1561
1342
|
* The updated app.
|
|
@@ -1563,12 +1344,6 @@ var UpdateAppResponse = class _UpdateAppResponse extends Message {
|
|
|
1563
1344
|
* @generated from field: transcodely.v1.App app = 1;
|
|
1564
1345
|
*/
|
|
1565
1346
|
app;
|
|
1566
|
-
/**
|
|
1567
|
-
* New webhook secret (only returned if regenerate_secret was true).
|
|
1568
|
-
*
|
|
1569
|
-
* @generated from field: optional string webhook_secret = 2;
|
|
1570
|
-
*/
|
|
1571
|
-
webhookSecret;
|
|
1572
1347
|
constructor(data) {
|
|
1573
1348
|
super();
|
|
1574
1349
|
proto3.util.initPartial(data, this);
|
|
@@ -1576,8 +1351,7 @@ var UpdateAppResponse = class _UpdateAppResponse extends Message {
|
|
|
1576
1351
|
static runtime = proto3;
|
|
1577
1352
|
static typeName = "transcodely.v1.UpdateAppResponse";
|
|
1578
1353
|
static fields = proto3.util.newFieldList(() => [
|
|
1579
|
-
{ no: 1, name: "app", kind: "message", T: App }
|
|
1580
|
-
{ no: 2, name: "webhook_secret", kind: "scalar", T: 9, opt: true }
|
|
1354
|
+
{ no: 1, name: "app", kind: "message", T: App }
|
|
1581
1355
|
]);
|
|
1582
1356
|
static fromBinary(bytes, options) {
|
|
1583
1357
|
return new _UpdateAppResponse().fromBinary(bytes, options);
|
|
@@ -2019,7 +1793,7 @@ var AppService = {
|
|
|
2019
1793
|
kind: MethodKind.Unary
|
|
2020
1794
|
},
|
|
2021
1795
|
/**
|
|
2022
|
-
* Update an app's name
|
|
1796
|
+
* Update an app's name and description.
|
|
2023
1797
|
*
|
|
2024
1798
|
* @generated from rpc transcodely.v1.AppService.Update
|
|
2025
1799
|
*/
|
|
@@ -2377,13 +2151,6 @@ var Event = class _Event extends Message {
|
|
|
2377
2151
|
* @generated from field: string api_version = 8;
|
|
2378
2152
|
*/
|
|
2379
2153
|
apiVersion = "";
|
|
2380
|
-
/**
|
|
2381
|
-
* True when the event was emitted from production (live mode) traffic.
|
|
2382
|
-
* Reserved for a future test-mode concept; always `true` today.
|
|
2383
|
-
*
|
|
2384
|
-
* @generated from field: bool livemode = 9;
|
|
2385
|
-
*/
|
|
2386
|
-
livemode = false;
|
|
2387
2154
|
/**
|
|
2388
2155
|
* Resource type discriminator. Always "event" for this message.
|
|
2389
2156
|
* Mirrored into the webhook envelope as the top-level `object`.
|
|
@@ -2442,13 +2209,6 @@ var Event = class _Event extends Message {
|
|
|
2442
2209
|
T: 9
|
|
2443
2210
|
/* ScalarType.STRING */
|
|
2444
2211
|
},
|
|
2445
|
-
{
|
|
2446
|
-
no: 9,
|
|
2447
|
-
name: "livemode",
|
|
2448
|
-
kind: "scalar",
|
|
2449
|
-
T: 8
|
|
2450
|
-
/* ScalarType.BOOL */
|
|
2451
|
-
},
|
|
2452
2212
|
{
|
|
2453
2213
|
no: 10,
|
|
2454
2214
|
name: "object",
|
|
@@ -2490,8 +2250,11 @@ var WebhookDelivery = class _WebhookDelivery extends Message {
|
|
|
2490
2250
|
*/
|
|
2491
2251
|
eventId = "";
|
|
2492
2252
|
/**
|
|
2493
|
-
* Delivery status: "pending", "succeeded", or "
|
|
2494
|
-
*
|
|
2253
|
+
* Delivery status: "pending", "succeeded", "failed", or "exhausted".
|
|
2254
|
+
* "exhausted" means the retry curve ran out (attempt 15) without a success;
|
|
2255
|
+
* "failed" is a single failed attempt (a retry may still be scheduled) or an
|
|
2256
|
+
* early stop on a non-retryable 4xx. Wire value is lowercase per project
|
|
2257
|
+
* convention.
|
|
2495
2258
|
*
|
|
2496
2259
|
* @generated from field: string status = 4;
|
|
2497
2260
|
*/
|
|
@@ -2544,7 +2307,8 @@ var WebhookDelivery = class _WebhookDelivery extends Message {
|
|
|
2544
2307
|
latencyMs;
|
|
2545
2308
|
/**
|
|
2546
2309
|
* Reason a response was not received. Absent when response_status is set.
|
|
2547
|
-
* One of: "timeout", "connection_refused", "
|
|
2310
|
+
* One of: "timeout", "connection_refused", "connection_reset",
|
|
2311
|
+
* "connection_closed", "host_unreachable", "dns_failure",
|
|
2548
2312
|
* "tls_handshake_failed", "ssrf_blocked", "unknown".
|
|
2549
2313
|
* Wire value is lowercase per project convention.
|
|
2550
2314
|
*
|
|
@@ -2563,6 +2327,15 @@ var WebhookDelivery = class _WebhookDelivery extends Message {
|
|
|
2563
2327
|
* @generated from field: optional string response_headers = 13;
|
|
2564
2328
|
*/
|
|
2565
2329
|
responseHeaders;
|
|
2330
|
+
/**
|
|
2331
|
+
* Human-readable detail for the failure: the transport error text when
|
|
2332
|
+
* transport_error is set, or "non-2xx response: <status>" for a completed
|
|
2333
|
+
* request that the endpoint rejected. Absent for pending or succeeded
|
|
2334
|
+
* deliveries.
|
|
2335
|
+
*
|
|
2336
|
+
* @generated from field: optional string error_message = 14;
|
|
2337
|
+
*/
|
|
2338
|
+
errorMessage;
|
|
2566
2339
|
constructor(data) {
|
|
2567
2340
|
super();
|
|
2568
2341
|
proto3.util.initPartial(data, this);
|
|
@@ -2612,7 +2385,8 @@ var WebhookDelivery = class _WebhookDelivery extends Message {
|
|
|
2612
2385
|
{ no: 10, name: "updated_at", kind: "message", T: Timestamp },
|
|
2613
2386
|
{ no: 11, name: "latency_ms", kind: "scalar", T: 5, opt: true },
|
|
2614
2387
|
{ no: 12, name: "transport_error", kind: "scalar", T: 9, opt: true },
|
|
2615
|
-
{ no: 13, name: "response_headers", kind: "scalar", T: 9, opt: true }
|
|
2388
|
+
{ no: 13, name: "response_headers", kind: "scalar", T: 9, opt: true },
|
|
2389
|
+
{ no: 14, name: "error_message", kind: "scalar", T: 9, opt: true }
|
|
2616
2390
|
]);
|
|
2617
2391
|
static fromBinary(bytes, options) {
|
|
2618
2392
|
return new _WebhookDelivery().fromBinary(bytes, options);
|
|
@@ -3436,7 +3210,7 @@ var ListWebhookDeliveriesRequest = class _ListWebhookDeliveriesRequest extends M
|
|
|
3436
3210
|
*/
|
|
3437
3211
|
eventId;
|
|
3438
3212
|
/**
|
|
3439
|
-
* Filter by status: "pending", "succeeded", or "
|
|
3213
|
+
* Filter by status: "pending", "succeeded", "failed", or "exhausted".
|
|
3440
3214
|
*
|
|
3441
3215
|
* @generated from field: optional string status = 3;
|
|
3442
3216
|
*/
|
|
@@ -6004,6 +5778,12 @@ var Origin = class _Origin extends Message {
|
|
|
6004
5778
|
* @generated from field: string id = 1;
|
|
6005
5779
|
*/
|
|
6006
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 = "";
|
|
6007
5787
|
/**
|
|
6008
5788
|
* Human-readable name for the origin.
|
|
6009
5789
|
*
|
|
@@ -6137,6 +5917,13 @@ var Origin = class _Origin extends Message {
|
|
|
6137
5917
|
T: 9
|
|
6138
5918
|
/* ScalarType.STRING */
|
|
6139
5919
|
},
|
|
5920
|
+
{
|
|
5921
|
+
no: 19,
|
|
5922
|
+
name: "app_id",
|
|
5923
|
+
kind: "scalar",
|
|
5924
|
+
T: 9
|
|
5925
|
+
/* ScalarType.STRING */
|
|
5926
|
+
},
|
|
6140
5927
|
{
|
|
6141
5928
|
no: 2,
|
|
6142
5929
|
name: "name",
|
|
@@ -6256,6 +6043,15 @@ var CreateOriginRequest = class _CreateOriginRequest extends Message {
|
|
|
6256
6043
|
* @generated from field: transcodely.v1.R2OriginConfig r2 = 9;
|
|
6257
6044
|
*/
|
|
6258
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;
|
|
6259
6055
|
constructor(data) {
|
|
6260
6056
|
super();
|
|
6261
6057
|
proto3.util.initPartial(data, this);
|
|
@@ -6295,7 +6091,8 @@ var CreateOriginRequest = class _CreateOriginRequest extends Message {
|
|
|
6295
6091
|
{ no: 6, name: "gcs", kind: "message", T: GcsOriginConfig },
|
|
6296
6092
|
{ no: 7, name: "s3", kind: "message", T: S3OriginConfig },
|
|
6297
6093
|
{ no: 8, name: "http", kind: "message", T: HttpOriginConfig },
|
|
6298
|
-
{ 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 }
|
|
6299
6096
|
]);
|
|
6300
6097
|
static fromBinary(bytes, options) {
|
|
6301
6098
|
return new _CreateOriginRequest().fromBinary(bytes, options);
|
|
@@ -6535,6 +6332,15 @@ var ListOriginsRequest = class _ListOriginsRequest extends Message {
|
|
|
6535
6332
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 5;
|
|
6536
6333
|
*/
|
|
6537
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;
|
|
6538
6344
|
constructor(data) {
|
|
6539
6345
|
super();
|
|
6540
6346
|
proto3.util.initPartial(data, this);
|
|
@@ -6552,7 +6358,8 @@ var ListOriginsRequest = class _ListOriginsRequest extends Message {
|
|
|
6552
6358
|
T: 8
|
|
6553
6359
|
/* ScalarType.BOOL */
|
|
6554
6360
|
},
|
|
6555
|
-
{ 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 }
|
|
6556
6363
|
]);
|
|
6557
6364
|
static fromBinary(bytes, options) {
|
|
6558
6365
|
return new _ListOriginsRequest().fromBinary(bytes, options);
|
|
@@ -6973,13 +6780,16 @@ var VideoStreamInfo = class _VideoStreamInfo extends Message {
|
|
|
6973
6780
|
*/
|
|
6974
6781
|
codec = "";
|
|
6975
6782
|
/**
|
|
6976
|
-
* Frame width in pixels.
|
|
6783
|
+
* Frame width in pixels, as displayed (container rotation applied).
|
|
6784
|
+
* For a portrait phone recording stored as 1920x1440 with a 90° rotation
|
|
6785
|
+
* side-matrix this is 1440 — matching the media players render and the
|
|
6786
|
+
* outputs Transcodely produces. See `rotation` for the stored orientation.
|
|
6977
6787
|
*
|
|
6978
6788
|
* @generated from field: int32 width = 2;
|
|
6979
6789
|
*/
|
|
6980
6790
|
width = 0;
|
|
6981
6791
|
/**
|
|
6982
|
-
* Frame height in pixels.
|
|
6792
|
+
* Frame height in pixels, as displayed (container rotation applied).
|
|
6983
6793
|
*
|
|
6984
6794
|
* @generated from field: int32 height = 3;
|
|
6985
6795
|
*/
|
|
@@ -7051,7 +6861,9 @@ var VideoStreamInfo = class _VideoStreamInfo extends Message {
|
|
|
7051
6861
|
*/
|
|
7052
6862
|
frameCount;
|
|
7053
6863
|
/**
|
|
7054
|
-
* Display aspect ratio as string (e.g., "16:9", "2.35:1")
|
|
6864
|
+
* Display aspect ratio as string (e.g., "16:9", "2.35:1"), rotation-aware:
|
|
6865
|
+
* for a 90°/270° rotated stream the ratio describes the displayed frame
|
|
6866
|
+
* (consistent with width/height above), not the coded one.
|
|
7055
6867
|
*
|
|
7056
6868
|
* @generated from field: optional string display_aspect_ratio = 15;
|
|
7057
6869
|
*/
|
|
@@ -7062,6 +6874,16 @@ var VideoStreamInfo = class _VideoStreamInfo extends Message {
|
|
|
7062
6874
|
* @generated from field: optional string sample_aspect_ratio = 16;
|
|
7063
6875
|
*/
|
|
7064
6876
|
sampleAspectRatio;
|
|
6877
|
+
/**
|
|
6878
|
+
* Container-level rotation metadata in degrees clockwise: 0, 90, 180 or
|
|
6879
|
+
* 270. Parsed from the display-matrix side data (or legacy rotate tag).
|
|
6880
|
+
* width/height/display_aspect_ratio already have this rotation applied;
|
|
6881
|
+
* the field is informational so callers can recover the coded orientation.
|
|
6882
|
+
* Absent when the stream carries no rotation metadata.
|
|
6883
|
+
*
|
|
6884
|
+
* @generated from field: optional int32 rotation = 17;
|
|
6885
|
+
*/
|
|
6886
|
+
rotation;
|
|
7065
6887
|
constructor(data) {
|
|
7066
6888
|
super();
|
|
7067
6889
|
proto3.util.initPartial(data, this);
|
|
@@ -7126,7 +6948,8 @@ var VideoStreamInfo = class _VideoStreamInfo extends Message {
|
|
|
7126
6948
|
{ no: 13, name: "interlaced", kind: "scalar", T: 8, opt: true },
|
|
7127
6949
|
{ no: 14, name: "frame_count", kind: "scalar", T: 3, opt: true },
|
|
7128
6950
|
{ no: 15, name: "display_aspect_ratio", kind: "scalar", T: 9, opt: true },
|
|
7129
|
-
{ no: 16, name: "sample_aspect_ratio", kind: "scalar", T: 9, opt: true }
|
|
6951
|
+
{ no: 16, name: "sample_aspect_ratio", kind: "scalar", T: 9, opt: true },
|
|
6952
|
+
{ no: 17, name: "rotation", kind: "scalar", T: 5, opt: true }
|
|
7130
6953
|
]);
|
|
7131
6954
|
static fromBinary(bytes, options) {
|
|
7132
6955
|
return new _VideoStreamInfo().fromBinary(bytes, options);
|
|
@@ -8604,6 +8427,38 @@ var JobOutput = class _JobOutput extends Message {
|
|
|
8604
8427
|
* @generated from field: string object = 21;
|
|
8605
8428
|
*/
|
|
8606
8429
|
object = "";
|
|
8430
|
+
/**
|
|
8431
|
+
* Actual encoded frame width in pixels, measured from the produced media
|
|
8432
|
+
* (rotation applied, so it matches what players display). For multi-variant
|
|
8433
|
+
* outputs (ABR ladders) this is the highest-resolution variant's width;
|
|
8434
|
+
* per-variant dimensions are in variant_results. Set when completed.
|
|
8435
|
+
*
|
|
8436
|
+
* @generated from field: optional int32 width = 22;
|
|
8437
|
+
*/
|
|
8438
|
+
width;
|
|
8439
|
+
/**
|
|
8440
|
+
* Actual encoded frame height in pixels (see width for semantics).
|
|
8441
|
+
*
|
|
8442
|
+
* @generated from field: optional int32 height = 23;
|
|
8443
|
+
*/
|
|
8444
|
+
height;
|
|
8445
|
+
/**
|
|
8446
|
+
* Measured average bitrate of the encoded output in kbps
|
|
8447
|
+
* (total bytes × 8 / encoded duration). For multi-variant outputs this
|
|
8448
|
+
* aggregates all variants; per-variant bitrates are in variant_results.
|
|
8449
|
+
* Set when completed.
|
|
8450
|
+
*
|
|
8451
|
+
* @generated from field: optional int32 average_bitrate_kbps = 24;
|
|
8452
|
+
*/
|
|
8453
|
+
averageBitrateKbps;
|
|
8454
|
+
/**
|
|
8455
|
+
* Per-variant encode results for multi-variant outputs (ABR ladders),
|
|
8456
|
+
* indexed like variant_pricing. Empty for single-variant outputs (use
|
|
8457
|
+
* width/height/average_bitrate_kbps instead). Set when completed.
|
|
8458
|
+
*
|
|
8459
|
+
* @generated from field: repeated transcodely.v1.OutputVariantResult variant_results = 25;
|
|
8460
|
+
*/
|
|
8461
|
+
variantResults = [];
|
|
8607
8462
|
constructor(data) {
|
|
8608
8463
|
super();
|
|
8609
8464
|
proto3.util.initPartial(data, this);
|
|
@@ -8647,7 +8502,11 @@ var JobOutput = class _JobOutput extends Message {
|
|
|
8647
8502
|
kind: "scalar",
|
|
8648
8503
|
T: 9
|
|
8649
8504
|
/* ScalarType.STRING */
|
|
8650
|
-
}
|
|
8505
|
+
},
|
|
8506
|
+
{ no: 22, name: "width", kind: "scalar", T: 5, opt: true },
|
|
8507
|
+
{ no: 23, name: "height", kind: "scalar", T: 5, opt: true },
|
|
8508
|
+
{ no: 24, name: "average_bitrate_kbps", kind: "scalar", T: 5, opt: true },
|
|
8509
|
+
{ no: 25, name: "variant_results", kind: "message", T: OutputVariantResult, repeated: true }
|
|
8651
8510
|
]);
|
|
8652
8511
|
static fromBinary(bytes, options) {
|
|
8653
8512
|
return new _JobOutput().fromBinary(bytes, options);
|
|
@@ -8662,6 +8521,81 @@ var JobOutput = class _JobOutput extends Message {
|
|
|
8662
8521
|
return proto3.util.equals(_JobOutput, a, b);
|
|
8663
8522
|
}
|
|
8664
8523
|
};
|
|
8524
|
+
var OutputVariantResult = class _OutputVariantResult extends Message {
|
|
8525
|
+
/**
|
|
8526
|
+
* Variant index within the output (0-based).
|
|
8527
|
+
*
|
|
8528
|
+
* @generated from field: int32 index = 1;
|
|
8529
|
+
*/
|
|
8530
|
+
index = 0;
|
|
8531
|
+
/**
|
|
8532
|
+
* Actual encoded frame width in pixels.
|
|
8533
|
+
*
|
|
8534
|
+
* @generated from field: int32 width = 2;
|
|
8535
|
+
*/
|
|
8536
|
+
width = 0;
|
|
8537
|
+
/**
|
|
8538
|
+
* Actual encoded frame height in pixels.
|
|
8539
|
+
*
|
|
8540
|
+
* @generated from field: int32 height = 3;
|
|
8541
|
+
*/
|
|
8542
|
+
height = 0;
|
|
8543
|
+
/**
|
|
8544
|
+
* Measured average bitrate for this variant in kbps.
|
|
8545
|
+
*
|
|
8546
|
+
* @generated from field: optional int32 average_bitrate_kbps = 4;
|
|
8547
|
+
*/
|
|
8548
|
+
averageBitrateKbps;
|
|
8549
|
+
/**
|
|
8550
|
+
* Total encoded size of this variant in bytes.
|
|
8551
|
+
*
|
|
8552
|
+
* @generated from field: optional int64 size_bytes = 5;
|
|
8553
|
+
*/
|
|
8554
|
+
sizeBytes;
|
|
8555
|
+
constructor(data) {
|
|
8556
|
+
super();
|
|
8557
|
+
proto3.util.initPartial(data, this);
|
|
8558
|
+
}
|
|
8559
|
+
static runtime = proto3;
|
|
8560
|
+
static typeName = "transcodely.v1.OutputVariantResult";
|
|
8561
|
+
static fields = proto3.util.newFieldList(() => [
|
|
8562
|
+
{
|
|
8563
|
+
no: 1,
|
|
8564
|
+
name: "index",
|
|
8565
|
+
kind: "scalar",
|
|
8566
|
+
T: 5
|
|
8567
|
+
/* ScalarType.INT32 */
|
|
8568
|
+
},
|
|
8569
|
+
{
|
|
8570
|
+
no: 2,
|
|
8571
|
+
name: "width",
|
|
8572
|
+
kind: "scalar",
|
|
8573
|
+
T: 5
|
|
8574
|
+
/* ScalarType.INT32 */
|
|
8575
|
+
},
|
|
8576
|
+
{
|
|
8577
|
+
no: 3,
|
|
8578
|
+
name: "height",
|
|
8579
|
+
kind: "scalar",
|
|
8580
|
+
T: 5
|
|
8581
|
+
/* ScalarType.INT32 */
|
|
8582
|
+
},
|
|
8583
|
+
{ no: 4, name: "average_bitrate_kbps", kind: "scalar", T: 5, opt: true },
|
|
8584
|
+
{ no: 5, name: "size_bytes", kind: "scalar", T: 3, opt: true }
|
|
8585
|
+
]);
|
|
8586
|
+
static fromBinary(bytes, options) {
|
|
8587
|
+
return new _OutputVariantResult().fromBinary(bytes, options);
|
|
8588
|
+
}
|
|
8589
|
+
static fromJson(jsonValue, options) {
|
|
8590
|
+
return new _OutputVariantResult().fromJson(jsonValue, options);
|
|
8591
|
+
}
|
|
8592
|
+
static fromJsonString(jsonString, options) {
|
|
8593
|
+
return new _OutputVariantResult().fromJsonString(jsonString, options);
|
|
8594
|
+
}
|
|
8595
|
+
static equals(a, b) {
|
|
8596
|
+
return proto3.util.equals(_OutputVariantResult, a, b);
|
|
8597
|
+
}
|
|
8598
|
+
};
|
|
8665
8599
|
var ExecutionTiming = class _ExecutionTiming extends Message {
|
|
8666
8600
|
/**
|
|
8667
8601
|
* Worker instance details
|
|
@@ -8871,6 +8805,12 @@ var Job = class _Job extends Message {
|
|
|
8871
8805
|
* @generated from field: string id = 1;
|
|
8872
8806
|
*/
|
|
8873
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 = "";
|
|
8874
8814
|
/**
|
|
8875
8815
|
* URL of the input video file (direct URL mode).
|
|
8876
8816
|
* Set if the job was created with input_url.
|
|
@@ -9064,6 +9004,13 @@ var Job = class _Job extends Message {
|
|
|
9064
9004
|
T: 9
|
|
9065
9005
|
/* ScalarType.STRING */
|
|
9066
9006
|
},
|
|
9007
|
+
{
|
|
9008
|
+
no: 29,
|
|
9009
|
+
name: "app_id",
|
|
9010
|
+
kind: "scalar",
|
|
9011
|
+
T: 9
|
|
9012
|
+
/* ScalarType.STRING */
|
|
9013
|
+
},
|
|
9067
9014
|
{
|
|
9068
9015
|
no: 2,
|
|
9069
9016
|
name: "input_url",
|
|
@@ -9247,6 +9194,15 @@ var CreateJobRequest = class _CreateJobRequest extends Message {
|
|
|
9247
9194
|
* @generated from field: optional bool managed = 20;
|
|
9248
9195
|
*/
|
|
9249
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;
|
|
9250
9206
|
constructor(data) {
|
|
9251
9207
|
super();
|
|
9252
9208
|
proto3.util.initPartial(data, this);
|
|
@@ -9282,7 +9238,8 @@ var CreateJobRequest = class _CreateJobRequest extends Message {
|
|
|
9282
9238
|
},
|
|
9283
9239
|
{ no: 8, name: "thumbnails", kind: "message", T: ThumbnailSpec, repeated: true },
|
|
9284
9240
|
{ no: 12, name: "output_path_template", kind: "scalar", T: 9, opt: true },
|
|
9285
|
-
{ 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 }
|
|
9286
9243
|
]);
|
|
9287
9244
|
static fromBinary(bytes, options) {
|
|
9288
9245
|
return new _CreateJobRequest().fromBinary(bytes, options);
|
|
@@ -9410,6 +9367,15 @@ var ListJobsRequest = class _ListJobsRequest extends Message {
|
|
|
9410
9367
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 2;
|
|
9411
9368
|
*/
|
|
9412
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;
|
|
9413
9379
|
constructor(data) {
|
|
9414
9380
|
super();
|
|
9415
9381
|
proto3.util.initPartial(data, this);
|
|
@@ -9418,7 +9384,8 @@ var ListJobsRequest = class _ListJobsRequest extends Message {
|
|
|
9418
9384
|
static typeName = "transcodely.v1.ListJobsRequest";
|
|
9419
9385
|
static fields = proto3.util.newFieldList(() => [
|
|
9420
9386
|
{ no: 1, name: "status", kind: "enum", T: proto3.getEnumType(JobStatus), opt: true },
|
|
9421
|
-
{ 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 }
|
|
9422
9389
|
]);
|
|
9423
9390
|
static fromBinary(bytes, options) {
|
|
9424
9391
|
return new _ListJobsRequest().fromBinary(bytes, options);
|
|
@@ -10873,6 +10840,15 @@ var ListVideosRequest = class _ListVideosRequest extends Message {
|
|
|
10873
10840
|
* @generated from field: optional string status = 3;
|
|
10874
10841
|
*/
|
|
10875
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;
|
|
10876
10852
|
constructor(data) {
|
|
10877
10853
|
super();
|
|
10878
10854
|
proto3.util.initPartial(data, this);
|
|
@@ -10888,7 +10864,8 @@ var ListVideosRequest = class _ListVideosRequest extends Message {
|
|
|
10888
10864
|
/* ScalarType.INT32 */
|
|
10889
10865
|
},
|
|
10890
10866
|
{ no: 2, name: "page_token", kind: "scalar", T: 9, opt: true },
|
|
10891
|
-
{ 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 }
|
|
10892
10869
|
]);
|
|
10893
10870
|
static fromBinary(bytes, options) {
|
|
10894
10871
|
return new _ListVideosRequest().fromBinary(bytes, options);
|
|
@@ -11503,7 +11480,6 @@ function protoEventToSdk(proto) {
|
|
|
11503
11480
|
created: proto.createdAt ? proto.createdAt.toDate().toISOString() : "",
|
|
11504
11481
|
type: proto.type,
|
|
11505
11482
|
data,
|
|
11506
|
-
livemode: proto.livemode,
|
|
11507
11483
|
pendingWebhooks: proto.pendingWebhooks,
|
|
11508
11484
|
// proto Event carries only `request_id`; `idempotency_key` is always
|
|
11509
11485
|
// null until JobService.Create propagates it (out-of-scope feature).
|
|
@@ -11855,7 +11831,7 @@ function backoff(attempt) {
|
|
|
11855
11831
|
}
|
|
11856
11832
|
|
|
11857
11833
|
// src/version.ts
|
|
11858
|
-
var SDK_VERSION = "0.
|
|
11834
|
+
var SDK_VERSION = "0.3.0";
|
|
11859
11835
|
var API_VERSION = "2026-05-03";
|
|
11860
11836
|
var DEFAULT_BASE_URL = "https://api.transcodely.com";
|
|
11861
11837
|
|
|
@@ -13728,6 +13704,13 @@ var Preset = class _Preset extends Message {
|
|
|
13728
13704
|
* @generated from field: string id = 1;
|
|
13729
13705
|
*/
|
|
13730
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 = "";
|
|
13731
13714
|
/**
|
|
13732
13715
|
* URL-safe slug identifier (e.g., "film_1080p_standard").
|
|
13733
13716
|
* Used for referencing presets in job creation.
|
|
@@ -13852,6 +13835,13 @@ var Preset = class _Preset extends Message {
|
|
|
13852
13835
|
T: 9
|
|
13853
13836
|
/* ScalarType.STRING */
|
|
13854
13837
|
},
|
|
13838
|
+
{
|
|
13839
|
+
no: 20,
|
|
13840
|
+
name: "app_id",
|
|
13841
|
+
kind: "scalar",
|
|
13842
|
+
T: 9
|
|
13843
|
+
/* ScalarType.STRING */
|
|
13844
|
+
},
|
|
13855
13845
|
{
|
|
13856
13846
|
no: 2,
|
|
13857
13847
|
name: "slug",
|
|
@@ -14005,6 +13995,15 @@ var CreatePresetRequest = class _CreatePresetRequest extends Message {
|
|
|
14005
13995
|
* @generated from field: optional bool disable_audio = 15;
|
|
14006
13996
|
*/
|
|
14007
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;
|
|
14008
14007
|
constructor(data) {
|
|
14009
14008
|
super();
|
|
14010
14009
|
proto3.util.initPartial(data, this);
|
|
@@ -14037,7 +14036,8 @@ var CreatePresetRequest = class _CreatePresetRequest extends Message {
|
|
|
14037
14036
|
{ no: 10, name: "audio", kind: "message", T: AudioSettings },
|
|
14038
14037
|
{ no: 11, name: "quality_tier", kind: "enum", T: proto3.getEnumType(QualityTier) },
|
|
14039
14038
|
{ no: 14, name: "variants", kind: "message", T: PresetVariant, repeated: true },
|
|
14040
|
-
{ 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 }
|
|
14041
14041
|
]);
|
|
14042
14042
|
static fromBinary(bytes, options) {
|
|
14043
14043
|
return new _CreatePresetRequest().fromBinary(bytes, options);
|
|
@@ -14246,6 +14246,16 @@ var ListPresetsRequest = class _ListPresetsRequest extends Message {
|
|
|
14246
14246
|
* @generated from field: transcodely.v1.PaginationRequest pagination = 5;
|
|
14247
14247
|
*/
|
|
14248
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;
|
|
14249
14259
|
constructor(data) {
|
|
14250
14260
|
super();
|
|
14251
14261
|
proto3.util.initPartial(data, this);
|
|
@@ -14258,7 +14268,8 @@ var ListPresetsRequest = class _ListPresetsRequest extends Message {
|
|
|
14258
14268
|
{ no: 3, name: "quality_tier", kind: "enum", T: proto3.getEnumType(QualityTier), opt: true },
|
|
14259
14269
|
{ no: 4, name: "video_codec", kind: "enum", T: proto3.getEnumType(VideoCodec), opt: true },
|
|
14260
14270
|
{ no: 6, name: "delivery_format", kind: "enum", T: proto3.getEnumType(DeliveryFormat), opt: true },
|
|
14261
|
-
{ 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 }
|
|
14262
14273
|
]);
|
|
14263
14274
|
static fromBinary(bytes, options) {
|
|
14264
14275
|
return new _ListPresetsRequest().fromBinary(bytes, options);
|
|
@@ -16228,13 +16239,6 @@ function requireString(obj, key) {
|
|
|
16228
16239
|
}
|
|
16229
16240
|
return v;
|
|
16230
16241
|
}
|
|
16231
|
-
function requireBoolean(obj, key) {
|
|
16232
|
-
const v = obj[key];
|
|
16233
|
-
if (typeof v !== "boolean") {
|
|
16234
|
-
throw new WebhookPayloadError(`Webhook envelope field \`${key}\` must be a boolean`);
|
|
16235
|
-
}
|
|
16236
|
-
return v;
|
|
16237
|
-
}
|
|
16238
16242
|
function requireNumber(obj, key) {
|
|
16239
16243
|
const v = obj[key];
|
|
16240
16244
|
if (typeof v !== "number" || !Number.isFinite(v)) {
|
|
@@ -16253,7 +16257,6 @@ function buildEvent(parsed) {
|
|
|
16253
16257
|
const apiVersion = requireString(parsed, "api_version");
|
|
16254
16258
|
const created = requireString(parsed, "created");
|
|
16255
16259
|
const type = requireString(parsed, "type");
|
|
16256
|
-
const livemode = requireBoolean(parsed, "livemode");
|
|
16257
16260
|
const pendingWebhooks = requireNumber(parsed, "pending_webhooks");
|
|
16258
16261
|
const dataRaw = parsed["data"];
|
|
16259
16262
|
if (!isPlainObject(dataRaw)) {
|
|
@@ -16284,7 +16287,6 @@ function buildEvent(parsed) {
|
|
|
16284
16287
|
created,
|
|
16285
16288
|
type,
|
|
16286
16289
|
data,
|
|
16287
|
-
livemode,
|
|
16288
16290
|
pendingWebhooks,
|
|
16289
16291
|
request: { id: requestIdRaw, idempotencyKey: idempotencyKeyRaw }
|
|
16290
16292
|
};
|
|
@@ -16372,6 +16374,6 @@ var Transcodely = class {
|
|
|
16372
16374
|
Transcodely.API_VERSION = API_VERSION;
|
|
16373
16375
|
Transcodely.SDK_VERSION = SDK_VERSION;
|
|
16374
16376
|
|
|
16375
|
-
export { APIConnectionError, APIError,
|
|
16377
|
+
export { APIConnectionError, APIError, API_VERSION, AppStatus, AudioCodec, AuthenticationError, BitrateMode, ConflictError, Container, ContentAwareMode, ContentType, DEFAULT_BASE_URL, DEFAULT_TOLERANCE_SECONDS, DRMSystem, DeliveryFormat, EVENT_ID_HEADER, EncryptionScheme, GOPAlignmentMode, HDRFormat, HDRMode, HLSPlaylistType, HLSSegmentFormat, InvalidRequestError, JobPriority, JobStatus, MembershipRole, MembershipStatus, NotFoundError, OrganizationStatus, OriginPermission, OriginProvider, OriginStatus, OutputFormat, OutputStatus, Page, PermissionError, PreconditionError, QualityTier, R2Jurisdiction, RateLimitError, Resolution, SDK_VERSION, SIGNATURE_HEADER, SubtitleFormat, SubtitleOperation, ThumbnailFormat, ThumbnailMode, ToneMapping, Transcodely, TranscodelyError, UserApprovalStatus, UserStatus, VideoCodec, VideoStatus, VideoVisibility, WEBHOOK_EVENT_TYPES, WatchEventType, WebhookError, WebhookPayloadError, WebhookSignatureError, WebhookTimestampError, Webhooks, constructEvent, verifySignature };
|
|
16376
16378
|
//# sourceMappingURL=index.mjs.map
|
|
16377
16379
|
//# sourceMappingURL=index.mjs.map
|