@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 CHANGED
@@ -4,6 +4,17 @@ All notable changes to the Transcodely JavaScript / TypeScript SDK will be docum
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Breaking changes are allowed on minor bumps until 1.0.0.
6
6
 
7
+ ## [0.3.0](https://github.com/transcodely/transcodely-js/compare/v0.2.0...v0.3.0) (2026-07-15)
8
+
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+
12
+ * App.webhook, CreateAppRequest.webhook, and UpdateAppRequest.webhook (WebhookConfig / CreateWebhookConfig / UpdateWebhookConfig) are removed. App-level webhook configuration is superseded by the WebhookService endpoints API, already exposed in this SDK as client.webhookEndpoints (create / update / rotateSecret / list / sendTest) and client.webhooks.constructEvent for signature verification.
13
+
14
+ ### Features
15
+
16
+ * sync protos — explicit app scoping; remove legacy app webhook config ([#21](https://github.com/transcodely/transcodely-js/issues/21)) ([10b65fe](https://github.com/transcodely/transcodely-js/commit/10b65fece1c090c0298f24ff9f34554fdfbe9bd5))
17
+
7
18
  ## [0.2.0](https://github.com/transcodely/transcodely-js/compare/v0.1.4...v0.2.0) (2026-07-12)
8
19
 
9
20
 
package/dist/index.cjs CHANGED
@@ -364,6 +364,12 @@ var APIKey = class _APIKey extends protobuf.Message {
364
364
  * @generated from field: string id = 1;
365
365
  */
366
366
  id = "";
367
+ /**
368
+ * Parent app this key authenticates. Server-set; ignored on requests.
369
+ *
370
+ * @generated from field: string app_id = 13;
371
+ */
372
+ appId = "";
367
373
  /**
368
374
  * Human-readable name for the key.
369
375
  *
@@ -441,6 +447,13 @@ var APIKey = class _APIKey extends protobuf.Message {
441
447
  T: 9
442
448
  /* ScalarType.STRING */
443
449
  },
450
+ {
451
+ no: 13,
452
+ name: "app_id",
453
+ kind: "scalar",
454
+ T: 9
455
+ /* ScalarType.STRING */
456
+ },
444
457
  {
445
458
  no: 2,
446
459
  name: "name",
@@ -685,6 +698,15 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends protobuf.Message {
685
698
  * @generated from field: transcodely.v1.PaginationRequest pagination = 3;
686
699
  */
687
700
  pagination;
701
+ /**
702
+ * Optional app filter. API-key callers may omit it (their key's app is used)
703
+ * or pass their own app; a different app is rejected with PermissionDenied.
704
+ * Portal/JWT callers pass it to list a specific app in their org; omitted
705
+ * returns keys across all apps in the org.
706
+ *
707
+ * @generated from field: optional string app_id = 4;
708
+ */
709
+ appId;
688
710
  constructor(data) {
689
711
  super();
690
712
  protobuf.proto3.util.initPartial(data, this);
@@ -699,7 +721,8 @@ var ListAPIKeysRequest = class _ListAPIKeysRequest extends protobuf.Message {
699
721
  T: 8
700
722
  /* ScalarType.BOOL */
701
723
  },
702
- { no: 3, name: "pagination", kind: "message", T: PaginationRequest }
724
+ { no: 3, name: "pagination", kind: "message", T: PaginationRequest },
725
+ { no: 4, name: "app_id", kind: "scalar", T: 9, opt: true }
703
726
  ]);
704
727
  static fromBinary(bytes, options) {
705
728
  return new _ListAPIKeysRequest().fromBinary(bytes, options);
@@ -997,17 +1020,6 @@ var App = class _App extends protobuf.Message {
997
1020
  * @generated from field: optional string description = 4;
998
1021
  */
999
1022
  description;
1000
- /**
1001
- * Webhook configuration.
1002
- * Deprecated: Use WebhookService (webhook.proto) to manage webhook endpoints
1003
- * instead. The new WebhookEndpoint resource supports multiple endpoints per
1004
- * app, HMAC-SHA-256 signing with secret rotation, and per-event type
1005
- * subscriptions. This field is retained for backwards compatibility;
1006
- * field number 5 must never be reused.
1007
- *
1008
- * @generated from field: optional transcodely.v1.WebhookConfig webhook = 5;
1009
- */
1010
- webhook;
1011
1023
  /**
1012
1024
  * App status.
1013
1025
  *
@@ -1093,7 +1105,6 @@ var App = class _App extends protobuf.Message {
1093
1105
  /* ScalarType.STRING */
1094
1106
  },
1095
1107
  { no: 4, name: "description", kind: "scalar", T: 9, opt: true },
1096
- { no: 5, name: "webhook", kind: "message", T: WebhookConfig, opt: true },
1097
1108
  { no: 6, name: "status", kind: "enum", T: protobuf.proto3.getEnumType(AppStatus) },
1098
1109
  { no: 7, name: "created_at", kind: "message", T: protobuf.Timestamp },
1099
1110
  { no: 8, name: "updated_at", kind: "message", T: protobuf.Timestamp },
@@ -1123,72 +1134,6 @@ var App = class _App extends protobuf.Message {
1123
1134
  return protobuf.proto3.util.equals(_App, a, b);
1124
1135
  }
1125
1136
  };
1126
- var WebhookConfig = class _WebhookConfig extends protobuf.Message {
1127
- /**
1128
- * HTTPS endpoint for receiving webhooks.
1129
- *
1130
- * @generated from field: string url = 1;
1131
- */
1132
- url = "";
1133
- /**
1134
- * Secret for HMAC-SHA256 signature verification.
1135
- * Only the last 4 characters are shown (hint).
1136
- * Full secret is only returned when first configured.
1137
- *
1138
- * @generated from field: optional string secret_hint = 2;
1139
- */
1140
- secretHint;
1141
- /**
1142
- * Whether a secret is configured.
1143
- *
1144
- * @generated from field: bool has_secret = 3;
1145
- */
1146
- hasSecret = false;
1147
- /**
1148
- * Events to send.
1149
- * Possible values: job.completed, job.failed, job.progress, job.canceled,
1150
- * output.completed, output.failed
1151
- *
1152
- * @generated from field: repeated string events = 4;
1153
- */
1154
- events = [];
1155
- constructor(data) {
1156
- super();
1157
- protobuf.proto3.util.initPartial(data, this);
1158
- }
1159
- static runtime = protobuf.proto3;
1160
- static typeName = "transcodely.v1.WebhookConfig";
1161
- static fields = protobuf.proto3.util.newFieldList(() => [
1162
- {
1163
- no: 1,
1164
- name: "url",
1165
- kind: "scalar",
1166
- T: 9
1167
- /* ScalarType.STRING */
1168
- },
1169
- { no: 2, name: "secret_hint", kind: "scalar", T: 9, opt: true },
1170
- {
1171
- no: 3,
1172
- name: "has_secret",
1173
- kind: "scalar",
1174
- T: 8
1175
- /* ScalarType.BOOL */
1176
- },
1177
- { no: 4, name: "events", kind: "scalar", T: 9, repeated: true }
1178
- ]);
1179
- static fromBinary(bytes, options) {
1180
- return new _WebhookConfig().fromBinary(bytes, options);
1181
- }
1182
- static fromJson(jsonValue, options) {
1183
- return new _WebhookConfig().fromJson(jsonValue, options);
1184
- }
1185
- static fromJsonString(jsonString, options) {
1186
- return new _WebhookConfig().fromJsonString(jsonString, options);
1187
- }
1188
- static equals(a, b) {
1189
- return protobuf.proto3.util.equals(_WebhookConfig, a, b);
1190
- }
1191
- };
1192
1137
  var CreateAppRequest = class _CreateAppRequest extends protobuf.Message {
1193
1138
  /**
1194
1139
  * Parent organization ID.
@@ -1208,12 +1153,6 @@ var CreateAppRequest = class _CreateAppRequest extends protobuf.Message {
1208
1153
  * @generated from field: optional string description = 3;
1209
1154
  */
1210
1155
  description;
1211
- /**
1212
- * Optional webhook configuration.
1213
- *
1214
- * @generated from field: optional transcodely.v1.CreateWebhookConfig webhook = 4;
1215
- */
1216
- webhook;
1217
1156
  /**
1218
1157
  * Enable video hosting for this app. Provisions CDN infrastructure.
1219
1158
  * This cannot be disabled once enabled.
@@ -1243,7 +1182,6 @@ var CreateAppRequest = class _CreateAppRequest extends protobuf.Message {
1243
1182
  /* ScalarType.STRING */
1244
1183
  },
1245
1184
  { no: 3, name: "description", kind: "scalar", T: 9, opt: true },
1246
- { no: 4, name: "webhook", kind: "message", T: CreateWebhookConfig, opt: true },
1247
1185
  { no: 5, name: "enable_hosting", kind: "scalar", T: 8, opt: true }
1248
1186
  ]);
1249
1187
  static fromBinary(bytes, options) {
@@ -1259,63 +1197,6 @@ var CreateAppRequest = class _CreateAppRequest extends protobuf.Message {
1259
1197
  return protobuf.proto3.util.equals(_CreateAppRequest, a, b);
1260
1198
  }
1261
1199
  };
1262
- var CreateWebhookConfig = class _CreateWebhookConfig extends protobuf.Message {
1263
- /**
1264
- * HTTPS endpoint for receiving webhooks.
1265
- *
1266
- * @generated from field: string url = 1;
1267
- */
1268
- url = "";
1269
- /**
1270
- * If true, a webhook secret will be generated.
1271
- * The secret is returned once in the response.
1272
- *
1273
- * @generated from field: bool generate_secret = 2;
1274
- */
1275
- generateSecret = false;
1276
- /**
1277
- * Events to send.
1278
- * Default: ["job.completed", "job.failed"] if not specified.
1279
- *
1280
- * @generated from field: repeated string events = 3;
1281
- */
1282
- events = [];
1283
- constructor(data) {
1284
- super();
1285
- protobuf.proto3.util.initPartial(data, this);
1286
- }
1287
- static runtime = protobuf.proto3;
1288
- static typeName = "transcodely.v1.CreateWebhookConfig";
1289
- static fields = protobuf.proto3.util.newFieldList(() => [
1290
- {
1291
- no: 1,
1292
- name: "url",
1293
- kind: "scalar",
1294
- T: 9
1295
- /* ScalarType.STRING */
1296
- },
1297
- {
1298
- no: 2,
1299
- name: "generate_secret",
1300
- kind: "scalar",
1301
- T: 8
1302
- /* ScalarType.BOOL */
1303
- },
1304
- { no: 3, name: "events", kind: "scalar", T: 9, repeated: true }
1305
- ]);
1306
- static fromBinary(bytes, options) {
1307
- return new _CreateWebhookConfig().fromBinary(bytes, options);
1308
- }
1309
- static fromJson(jsonValue, options) {
1310
- return new _CreateWebhookConfig().fromJson(jsonValue, options);
1311
- }
1312
- static fromJsonString(jsonString, options) {
1313
- return new _CreateWebhookConfig().fromJsonString(jsonString, options);
1314
- }
1315
- static equals(a, b) {
1316
- return protobuf.proto3.util.equals(_CreateWebhookConfig, a, b);
1317
- }
1318
- };
1319
1200
  var CreateAppResponse = class _CreateAppResponse extends protobuf.Message {
1320
1201
  /**
1321
1202
  * The created app.
@@ -1323,13 +1204,6 @@ var CreateAppResponse = class _CreateAppResponse extends protobuf.Message {
1323
1204
  * @generated from field: transcodely.v1.App app = 1;
1324
1205
  */
1325
1206
  app;
1326
- /**
1327
- * Webhook secret (only returned if generate_secret was true).
1328
- * WARNING: This is the only time the secret is returned.
1329
- *
1330
- * @generated from field: optional string webhook_secret = 2;
1331
- */
1332
- webhookSecret;
1333
1207
  constructor(data) {
1334
1208
  super();
1335
1209
  protobuf.proto3.util.initPartial(data, this);
@@ -1337,8 +1211,7 @@ var CreateAppResponse = class _CreateAppResponse extends protobuf.Message {
1337
1211
  static runtime = protobuf.proto3;
1338
1212
  static typeName = "transcodely.v1.CreateAppResponse";
1339
1213
  static fields = protobuf.proto3.util.newFieldList(() => [
1340
- { no: 1, name: "app", kind: "message", T: App },
1341
- { no: 2, name: "webhook_secret", kind: "scalar", T: 9, opt: true }
1214
+ { no: 1, name: "app", kind: "message", T: App }
1342
1215
  ]);
1343
1216
  static fromBinary(bytes, options) {
1344
1217
  return new _CreateAppResponse().fromBinary(bytes, options);
@@ -1436,13 +1309,6 @@ var UpdateAppRequest = class _UpdateAppRequest extends protobuf.Message {
1436
1309
  * @generated from field: optional string description = 3;
1437
1310
  */
1438
1311
  description;
1439
- /**
1440
- * New webhook configuration (if provided).
1441
- * Set to empty message to clear webhook config.
1442
- *
1443
- * @generated from field: optional transcodely.v1.UpdateWebhookConfig webhook = 4;
1444
- */
1445
- webhook;
1446
1312
  constructor(data) {
1447
1313
  super();
1448
1314
  protobuf.proto3.util.initPartial(data, this);
@@ -1458,8 +1324,7 @@ var UpdateAppRequest = class _UpdateAppRequest extends protobuf.Message {
1458
1324
  /* ScalarType.STRING */
1459
1325
  },
1460
1326
  { no: 2, name: "name", kind: "scalar", T: 9, opt: true },
1461
- { no: 3, name: "description", kind: "scalar", T: 9, opt: true },
1462
- { no: 4, name: "webhook", kind: "message", T: UpdateWebhookConfig, opt: true }
1327
+ { no: 3, name: "description", kind: "scalar", T: 9, opt: true }
1463
1328
  ]);
1464
1329
  static fromBinary(bytes, options) {
1465
1330
  return new _UpdateAppRequest().fromBinary(bytes, options);
@@ -1474,58 +1339,6 @@ var UpdateAppRequest = class _UpdateAppRequest extends protobuf.Message {
1474
1339
  return protobuf.proto3.util.equals(_UpdateAppRequest, a, b);
1475
1340
  }
1476
1341
  };
1477
- var UpdateWebhookConfig = class _UpdateWebhookConfig extends protobuf.Message {
1478
- /**
1479
- * New webhook URL. HTTPS only (same constraint as CreateWebhookConfig).
1480
- * Set to empty string to disable webhooks.
1481
- *
1482
- * @generated from field: optional string url = 1;
1483
- */
1484
- url;
1485
- /**
1486
- * If true, regenerate the webhook secret.
1487
- * The new secret is returned in the response.
1488
- *
1489
- * @generated from field: bool regenerate_secret = 2;
1490
- */
1491
- regenerateSecret = false;
1492
- /**
1493
- * New events to send.
1494
- * Only applied if explicitly provided.
1495
- *
1496
- * @generated from field: repeated string events = 3;
1497
- */
1498
- events = [];
1499
- constructor(data) {
1500
- super();
1501
- protobuf.proto3.util.initPartial(data, this);
1502
- }
1503
- static runtime = protobuf.proto3;
1504
- static typeName = "transcodely.v1.UpdateWebhookConfig";
1505
- static fields = protobuf.proto3.util.newFieldList(() => [
1506
- { no: 1, name: "url", kind: "scalar", T: 9, opt: true },
1507
- {
1508
- no: 2,
1509
- name: "regenerate_secret",
1510
- kind: "scalar",
1511
- T: 8
1512
- /* ScalarType.BOOL */
1513
- },
1514
- { no: 3, name: "events", kind: "scalar", T: 9, repeated: true }
1515
- ]);
1516
- static fromBinary(bytes, options) {
1517
- return new _UpdateWebhookConfig().fromBinary(bytes, options);
1518
- }
1519
- static fromJson(jsonValue, options) {
1520
- return new _UpdateWebhookConfig().fromJson(jsonValue, options);
1521
- }
1522
- static fromJsonString(jsonString, options) {
1523
- return new _UpdateWebhookConfig().fromJsonString(jsonString, options);
1524
- }
1525
- static equals(a, b) {
1526
- return protobuf.proto3.util.equals(_UpdateWebhookConfig, a, b);
1527
- }
1528
- };
1529
1342
  var UpdateAppResponse = class _UpdateAppResponse extends protobuf.Message {
1530
1343
  /**
1531
1344
  * The updated app.
@@ -1533,12 +1346,6 @@ var UpdateAppResponse = class _UpdateAppResponse extends protobuf.Message {
1533
1346
  * @generated from field: transcodely.v1.App app = 1;
1534
1347
  */
1535
1348
  app;
1536
- /**
1537
- * New webhook secret (only returned if regenerate_secret was true).
1538
- *
1539
- * @generated from field: optional string webhook_secret = 2;
1540
- */
1541
- webhookSecret;
1542
1349
  constructor(data) {
1543
1350
  super();
1544
1351
  protobuf.proto3.util.initPartial(data, this);
@@ -1546,8 +1353,7 @@ var UpdateAppResponse = class _UpdateAppResponse extends protobuf.Message {
1546
1353
  static runtime = protobuf.proto3;
1547
1354
  static typeName = "transcodely.v1.UpdateAppResponse";
1548
1355
  static fields = protobuf.proto3.util.newFieldList(() => [
1549
- { no: 1, name: "app", kind: "message", T: App },
1550
- { no: 2, name: "webhook_secret", kind: "scalar", T: 9, opt: true }
1356
+ { no: 1, name: "app", kind: "message", T: App }
1551
1357
  ]);
1552
1358
  static fromBinary(bytes, options) {
1553
1359
  return new _UpdateAppResponse().fromBinary(bytes, options);
@@ -1989,7 +1795,7 @@ var AppService = {
1989
1795
  kind: protobuf.MethodKind.Unary
1990
1796
  },
1991
1797
  /**
1992
- * Update an app's name, description, and webhook configuration.
1798
+ * Update an app's name and description.
1993
1799
  *
1994
1800
  * @generated from rpc transcodely.v1.AppService.Update
1995
1801
  */
@@ -5974,6 +5780,12 @@ var Origin = class _Origin extends protobuf.Message {
5974
5780
  * @generated from field: string id = 1;
5975
5781
  */
5976
5782
  id = "";
5783
+ /**
5784
+ * Parent app that owns this origin. Server-set; ignored on requests.
5785
+ *
5786
+ * @generated from field: string app_id = 19;
5787
+ */
5788
+ appId = "";
5977
5789
  /**
5978
5790
  * Human-readable name for the origin.
5979
5791
  *
@@ -6107,6 +5919,13 @@ var Origin = class _Origin extends protobuf.Message {
6107
5919
  T: 9
6108
5920
  /* ScalarType.STRING */
6109
5921
  },
5922
+ {
5923
+ no: 19,
5924
+ name: "app_id",
5925
+ kind: "scalar",
5926
+ T: 9
5927
+ /* ScalarType.STRING */
5928
+ },
6110
5929
  {
6111
5930
  no: 2,
6112
5931
  name: "name",
@@ -6226,6 +6045,15 @@ var CreateOriginRequest = class _CreateOriginRequest extends protobuf.Message {
6226
6045
  * @generated from field: transcodely.v1.R2OriginConfig r2 = 9;
6227
6046
  */
6228
6047
  r2;
6048
+ /**
6049
+ * Optional target app. API-key callers may omit it (their key's app is used)
6050
+ * or pass their own app; a different app is rejected with PermissionDenied.
6051
+ * Portal/JWT callers pass it to create in a specific app in their org;
6052
+ * omitted selects the org's first active app.
6053
+ *
6054
+ * @generated from field: optional string app_id = 10;
6055
+ */
6056
+ appId;
6229
6057
  constructor(data) {
6230
6058
  super();
6231
6059
  protobuf.proto3.util.initPartial(data, this);
@@ -6265,7 +6093,8 @@ var CreateOriginRequest = class _CreateOriginRequest extends protobuf.Message {
6265
6093
  { no: 6, name: "gcs", kind: "message", T: GcsOriginConfig },
6266
6094
  { no: 7, name: "s3", kind: "message", T: S3OriginConfig },
6267
6095
  { no: 8, name: "http", kind: "message", T: HttpOriginConfig },
6268
- { no: 9, name: "r2", kind: "message", T: R2OriginConfig }
6096
+ { no: 9, name: "r2", kind: "message", T: R2OriginConfig },
6097
+ { no: 10, name: "app_id", kind: "scalar", T: 9, opt: true }
6269
6098
  ]);
6270
6099
  static fromBinary(bytes, options) {
6271
6100
  return new _CreateOriginRequest().fromBinary(bytes, options);
@@ -6505,6 +6334,15 @@ var ListOriginsRequest = class _ListOriginsRequest extends protobuf.Message {
6505
6334
  * @generated from field: transcodely.v1.PaginationRequest pagination = 5;
6506
6335
  */
6507
6336
  pagination;
6337
+ /**
6338
+ * Optional app filter. API-key callers may omit it (their key's app is used)
6339
+ * or pass their own app; a different app is rejected with PermissionDenied.
6340
+ * Portal/JWT callers pass it to list a specific app in their org; omitted
6341
+ * returns origins across all apps in the org.
6342
+ *
6343
+ * @generated from field: optional string app_id = 6;
6344
+ */
6345
+ appId;
6508
6346
  constructor(data) {
6509
6347
  super();
6510
6348
  protobuf.proto3.util.initPartial(data, this);
@@ -6522,7 +6360,8 @@ var ListOriginsRequest = class _ListOriginsRequest extends protobuf.Message {
6522
6360
  T: 8
6523
6361
  /* ScalarType.BOOL */
6524
6362
  },
6525
- { no: 5, name: "pagination", kind: "message", T: PaginationRequest }
6363
+ { no: 5, name: "pagination", kind: "message", T: PaginationRequest },
6364
+ { no: 6, name: "app_id", kind: "scalar", T: 9, opt: true }
6526
6365
  ]);
6527
6366
  static fromBinary(bytes, options) {
6528
6367
  return new _ListOriginsRequest().fromBinary(bytes, options);
@@ -8968,6 +8807,12 @@ var Job = class _Job extends protobuf.Message {
8968
8807
  * @generated from field: string id = 1;
8969
8808
  */
8970
8809
  id = "";
8810
+ /**
8811
+ * Parent app that owns this job. Server-set; ignored on requests.
8812
+ *
8813
+ * @generated from field: string app_id = 29;
8814
+ */
8815
+ appId = "";
8971
8816
  /**
8972
8817
  * URL of the input video file (direct URL mode).
8973
8818
  * Set if the job was created with input_url.
@@ -9161,6 +9006,13 @@ var Job = class _Job extends protobuf.Message {
9161
9006
  T: 9
9162
9007
  /* ScalarType.STRING */
9163
9008
  },
9009
+ {
9010
+ no: 29,
9011
+ name: "app_id",
9012
+ kind: "scalar",
9013
+ T: 9
9014
+ /* ScalarType.STRING */
9015
+ },
9164
9016
  {
9165
9017
  no: 2,
9166
9018
  name: "input_url",
@@ -9344,6 +9196,15 @@ var CreateJobRequest = class _CreateJobRequest extends protobuf.Message {
9344
9196
  * @generated from field: optional bool managed = 20;
9345
9197
  */
9346
9198
  managed;
9199
+ /**
9200
+ * Optional target app. API-key callers may omit it (their key's app is used)
9201
+ * or pass their own app; a different app is rejected with PermissionDenied.
9202
+ * Portal/JWT callers pass it to create in a specific app in their org;
9203
+ * omitted selects the org's first active app.
9204
+ *
9205
+ * @generated from field: optional string app_id = 21;
9206
+ */
9207
+ appId;
9347
9208
  constructor(data) {
9348
9209
  super();
9349
9210
  protobuf.proto3.util.initPartial(data, this);
@@ -9379,7 +9240,8 @@ var CreateJobRequest = class _CreateJobRequest extends protobuf.Message {
9379
9240
  },
9380
9241
  { no: 8, name: "thumbnails", kind: "message", T: ThumbnailSpec, repeated: true },
9381
9242
  { no: 12, name: "output_path_template", kind: "scalar", T: 9, opt: true },
9382
- { no: 20, name: "managed", kind: "scalar", T: 8, opt: true }
9243
+ { no: 20, name: "managed", kind: "scalar", T: 8, opt: true },
9244
+ { no: 21, name: "app_id", kind: "scalar", T: 9, opt: true }
9383
9245
  ]);
9384
9246
  static fromBinary(bytes, options) {
9385
9247
  return new _CreateJobRequest().fromBinary(bytes, options);
@@ -9507,6 +9369,15 @@ var ListJobsRequest = class _ListJobsRequest extends protobuf.Message {
9507
9369
  * @generated from field: transcodely.v1.PaginationRequest pagination = 2;
9508
9370
  */
9509
9371
  pagination;
9372
+ /**
9373
+ * Optional app filter. API-key callers may omit it (their key's app is used)
9374
+ * or pass their own app; a different app is rejected with PermissionDenied.
9375
+ * Portal/JWT callers pass it to list a specific app in their org; omitted
9376
+ * returns jobs across all apps in the org.
9377
+ *
9378
+ * @generated from field: optional string app_id = 3;
9379
+ */
9380
+ appId;
9510
9381
  constructor(data) {
9511
9382
  super();
9512
9383
  protobuf.proto3.util.initPartial(data, this);
@@ -9515,7 +9386,8 @@ var ListJobsRequest = class _ListJobsRequest extends protobuf.Message {
9515
9386
  static typeName = "transcodely.v1.ListJobsRequest";
9516
9387
  static fields = protobuf.proto3.util.newFieldList(() => [
9517
9388
  { no: 1, name: "status", kind: "enum", T: protobuf.proto3.getEnumType(JobStatus), opt: true },
9518
- { no: 2, name: "pagination", kind: "message", T: PaginationRequest }
9389
+ { no: 2, name: "pagination", kind: "message", T: PaginationRequest },
9390
+ { no: 3, name: "app_id", kind: "scalar", T: 9, opt: true }
9519
9391
  ]);
9520
9392
  static fromBinary(bytes, options) {
9521
9393
  return new _ListJobsRequest().fromBinary(bytes, options);
@@ -10970,6 +10842,15 @@ var ListVideosRequest = class _ListVideosRequest extends protobuf.Message {
10970
10842
  * @generated from field: optional string status = 3;
10971
10843
  */
10972
10844
  status;
10845
+ /**
10846
+ * Optional app filter. API-key callers may omit it (their key's app is used)
10847
+ * or pass their own app; a different app is rejected with PermissionDenied.
10848
+ * Portal/JWT callers pass it to list a specific app in their org; omitted
10849
+ * returns videos across all apps in the org.
10850
+ *
10851
+ * @generated from field: optional string app_id = 4;
10852
+ */
10853
+ appId;
10973
10854
  constructor(data) {
10974
10855
  super();
10975
10856
  protobuf.proto3.util.initPartial(data, this);
@@ -10985,7 +10866,8 @@ var ListVideosRequest = class _ListVideosRequest extends protobuf.Message {
10985
10866
  /* ScalarType.INT32 */
10986
10867
  },
10987
10868
  { no: 2, name: "page_token", kind: "scalar", T: 9, opt: true },
10988
- { no: 3, name: "status", kind: "scalar", T: 9, opt: true }
10869
+ { no: 3, name: "status", kind: "scalar", T: 9, opt: true },
10870
+ { no: 4, name: "app_id", kind: "scalar", T: 9, opt: true }
10989
10871
  ]);
10990
10872
  static fromBinary(bytes, options) {
10991
10873
  return new _ListVideosRequest().fromBinary(bytes, options);
@@ -11951,7 +11833,7 @@ function backoff(attempt) {
11951
11833
  }
11952
11834
 
11953
11835
  // src/version.ts
11954
- var SDK_VERSION = "0.2.0";
11836
+ var SDK_VERSION = "0.3.0";
11955
11837
  var API_VERSION = "2026-05-03";
11956
11838
  var DEFAULT_BASE_URL = "https://api.transcodely.com";
11957
11839
 
@@ -13824,6 +13706,13 @@ var Preset = class _Preset extends protobuf.Message {
13824
13706
  * @generated from field: string id = 1;
13825
13707
  */
13826
13708
  id = "";
13709
+ /**
13710
+ * Parent app that owns this preset. Server-set; ignored on requests.
13711
+ * Empty for system presets, which belong to no app and are visible to all.
13712
+ *
13713
+ * @generated from field: string app_id = 20;
13714
+ */
13715
+ appId = "";
13827
13716
  /**
13828
13717
  * URL-safe slug identifier (e.g., "film_1080p_standard").
13829
13718
  * Used for referencing presets in job creation.
@@ -13948,6 +13837,13 @@ var Preset = class _Preset extends protobuf.Message {
13948
13837
  T: 9
13949
13838
  /* ScalarType.STRING */
13950
13839
  },
13840
+ {
13841
+ no: 20,
13842
+ name: "app_id",
13843
+ kind: "scalar",
13844
+ T: 9
13845
+ /* ScalarType.STRING */
13846
+ },
13951
13847
  {
13952
13848
  no: 2,
13953
13849
  name: "slug",
@@ -14101,6 +13997,15 @@ var CreatePresetRequest = class _CreatePresetRequest extends protobuf.Message {
14101
13997
  * @generated from field: optional bool disable_audio = 15;
14102
13998
  */
14103
13999
  disableAudio;
14000
+ /**
14001
+ * Optional target app. API-key callers may omit it (their key's app is used)
14002
+ * or pass their own app; a different app is rejected with PermissionDenied.
14003
+ * Portal/JWT callers pass it to create in a specific app in their org;
14004
+ * omitted selects the org's first active app.
14005
+ *
14006
+ * @generated from field: optional string app_id = 16;
14007
+ */
14008
+ appId;
14104
14009
  constructor(data) {
14105
14010
  super();
14106
14011
  protobuf.proto3.util.initPartial(data, this);
@@ -14133,7 +14038,8 @@ var CreatePresetRequest = class _CreatePresetRequest extends protobuf.Message {
14133
14038
  { no: 10, name: "audio", kind: "message", T: AudioSettings },
14134
14039
  { no: 11, name: "quality_tier", kind: "enum", T: protobuf.proto3.getEnumType(QualityTier) },
14135
14040
  { no: 14, name: "variants", kind: "message", T: PresetVariant, repeated: true },
14136
- { no: 15, name: "disable_audio", kind: "scalar", T: 8, opt: true }
14041
+ { no: 15, name: "disable_audio", kind: "scalar", T: 8, opt: true },
14042
+ { no: 16, name: "app_id", kind: "scalar", T: 9, opt: true }
14137
14043
  ]);
14138
14044
  static fromBinary(bytes, options) {
14139
14045
  return new _CreatePresetRequest().fromBinary(bytes, options);
@@ -14342,6 +14248,16 @@ var ListPresetsRequest = class _ListPresetsRequest extends protobuf.Message {
14342
14248
  * @generated from field: transcodely.v1.PaginationRequest pagination = 5;
14343
14249
  */
14344
14250
  pagination;
14251
+ /**
14252
+ * Optional app filter for custom presets. API-key callers may omit it (their
14253
+ * key's app is used) or pass their own app; a different app is rejected with
14254
+ * PermissionDenied. Portal/JWT callers pass it to scope custom presets to a
14255
+ * specific app in their org; omitted spans all apps in the org. System
14256
+ * presets are unaffected (governed by include_system).
14257
+ *
14258
+ * @generated from field: optional string app_id = 7;
14259
+ */
14260
+ appId;
14345
14261
  constructor(data) {
14346
14262
  super();
14347
14263
  protobuf.proto3.util.initPartial(data, this);
@@ -14354,7 +14270,8 @@ var ListPresetsRequest = class _ListPresetsRequest extends protobuf.Message {
14354
14270
  { no: 3, name: "quality_tier", kind: "enum", T: protobuf.proto3.getEnumType(QualityTier), opt: true },
14355
14271
  { no: 4, name: "video_codec", kind: "enum", T: protobuf.proto3.getEnumType(VideoCodec), opt: true },
14356
14272
  { no: 6, name: "delivery_format", kind: "enum", T: protobuf.proto3.getEnumType(DeliveryFormat), opt: true },
14357
- { no: 5, name: "pagination", kind: "message", T: PaginationRequest }
14273
+ { no: 5, name: "pagination", kind: "message", T: PaginationRequest },
14274
+ { no: 7, name: "app_id", kind: "scalar", T: 9, opt: true }
14358
14275
  ]);
14359
14276
  static fromBinary(bytes, options) {
14360
14277
  return new _ListPresetsRequest().fromBinary(bytes, options);