@rivetkit/engine-api-full 2.0.25-rc.2 → 2.0.26

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.
@@ -2336,9 +2336,6 @@ function transformAndValidateUnion({
2336
2336
  };
2337
2337
  }
2338
2338
 
2339
- // src/Client.ts
2340
- var import_url_join6 = __toESM(require("url-join"));
2341
-
2342
2339
  // src/serialization/index.ts
2343
2340
  var serialization_exports = {};
2344
2341
  __export(serialization_exports, {
@@ -2785,6 +2782,9 @@ var NamespacesCreateRequest = schemas_exports.object({
2785
2782
  name: schemas_exports.string()
2786
2783
  });
2787
2784
 
2785
+ // src/Client.ts
2786
+ var import_url_join6 = __toESM(require("url-join"));
2787
+
2788
2788
  // src/errors/RivetError.ts
2789
2789
  var RivetError = class _RivetError extends Error {
2790
2790
  statusCode;
@@ -3038,7 +3038,7 @@ var Namespaces = class {
3038
3038
  * await client.namespaces.list()
3039
3039
  */
3040
3040
  async list(request = {}, requestOptions) {
3041
- const { limit, cursor, name, namespaceIds } = request;
3041
+ const { limit, cursor, name, namespaceIds, namespaceId } = request;
3042
3042
  const _queryParams = {};
3043
3043
  if (limit != null) {
3044
3044
  _queryParams["limit"] = limit.toString();
@@ -3052,6 +3052,15 @@ var Namespaces = class {
3052
3052
  if (namespaceIds != null) {
3053
3053
  _queryParams["namespace_ids"] = namespaceIds;
3054
3054
  }
3055
+ if (namespaceId != null) {
3056
+ if (Array.isArray(namespaceId)) {
3057
+ _queryParams["namespace_id"] = namespaceId.map(
3058
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3059
+ );
3060
+ } else {
3061
+ _queryParams["namespace_id"] = namespaceId;
3062
+ }
3063
+ }
3055
3064
  const _response = await (this._options.fetcher ?? fetcher)({
3056
3065
  url: (0, import_url_join4.default)(
3057
3066
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -3182,7 +3191,7 @@ var Runners = class {
3182
3191
  * })
3183
3192
  */
3184
3193
  async list(request, requestOptions) {
3185
- const { namespace, name, runnerIds, includeStopped, limit, cursor } = request;
3194
+ const { namespace, name, runnerIds, runnerId, includeStopped, limit, cursor } = request;
3186
3195
  const _queryParams = {};
3187
3196
  _queryParams["namespace"] = namespace;
3188
3197
  if (name != null) {
@@ -3191,6 +3200,15 @@ var Runners = class {
3191
3200
  if (runnerIds != null) {
3192
3201
  _queryParams["runner_ids"] = runnerIds;
3193
3202
  }
3203
+ if (runnerId != null) {
3204
+ if (Array.isArray(runnerId)) {
3205
+ _queryParams["runner_id"] = runnerId.map(
3206
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3207
+ );
3208
+ } else {
3209
+ _queryParams["runner_id"] = runnerId;
3210
+ }
3211
+ }
3194
3212
  if (includeStopped != null) {
3195
3213
  _queryParams["include_stopped"] = includeStopped.toString();
3196
3214
  }
@@ -3385,7 +3403,7 @@ var RivetClient = class {
3385
3403
  * })
3386
3404
  */
3387
3405
  async actorsList(request, requestOptions) {
3388
- const { namespace, name, key, actorIds, includeDestroyed, limit, cursor } = request;
3406
+ const { namespace, name, key, actorIds, actorId, includeDestroyed, limit, cursor } = request;
3389
3407
  const _queryParams = {};
3390
3408
  _queryParams["namespace"] = namespace;
3391
3409
  if (name != null) {
@@ -3397,6 +3415,15 @@ var RivetClient = class {
3397
3415
  if (actorIds != null) {
3398
3416
  _queryParams["actor_ids"] = actorIds;
3399
3417
  }
3418
+ if (actorId != null) {
3419
+ if (Array.isArray(actorId)) {
3420
+ _queryParams["actor_id"] = actorId.map(
3421
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3422
+ );
3423
+ } else {
3424
+ _queryParams["actor_id"] = actorId;
3425
+ }
3426
+ }
3400
3427
  if (includeDestroyed != null) {
3401
3428
  _queryParams["include_destroyed"] = includeDestroyed.toString();
3402
3429
  }
@@ -3841,7 +3868,7 @@ var RivetClient = class {
3841
3868
  * })
3842
3869
  */
3843
3870
  async runnerConfigsList(request, requestOptions) {
3844
- const { namespace, limit, cursor, variant, runnerNames } = request;
3871
+ const { namespace, limit, cursor, variant, runnerNames, runnerName } = request;
3845
3872
  const _queryParams = {};
3846
3873
  _queryParams["namespace"] = namespace;
3847
3874
  if (limit != null) {
@@ -3858,6 +3885,13 @@ var RivetClient = class {
3858
3885
  if (runnerNames != null) {
3859
3886
  _queryParams["runner_names"] = runnerNames;
3860
3887
  }
3888
+ if (runnerName != null) {
3889
+ if (Array.isArray(runnerName)) {
3890
+ _queryParams["runner_name"] = runnerName.map((item) => item);
3891
+ } else {
3892
+ _queryParams["runner_name"] = runnerName;
3893
+ }
3894
+ }
3861
3895
  const _response = await (this._options.fetcher ?? fetcher)({
3862
3896
  url: (0, import_url_join6.default)(
3863
3897
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -2303,9 +2303,6 @@ function transformAndValidateUnion({
2303
2303
  };
2304
2304
  }
2305
2305
 
2306
- // src/Client.ts
2307
- import urlJoin6 from "url-join";
2308
-
2309
2306
  // src/serialization/index.ts
2310
2307
  var serialization_exports = {};
2311
2308
  __export(serialization_exports, {
@@ -2752,6 +2749,9 @@ var NamespacesCreateRequest = schemas_exports.object({
2752
2749
  name: schemas_exports.string()
2753
2750
  });
2754
2751
 
2752
+ // src/Client.ts
2753
+ import urlJoin6 from "url-join";
2754
+
2755
2755
  // src/errors/RivetError.ts
2756
2756
  var RivetError = class _RivetError extends Error {
2757
2757
  statusCode;
@@ -3005,7 +3005,7 @@ var Namespaces = class {
3005
3005
  * await client.namespaces.list()
3006
3006
  */
3007
3007
  async list(request = {}, requestOptions) {
3008
- const { limit, cursor, name, namespaceIds } = request;
3008
+ const { limit, cursor, name, namespaceIds, namespaceId } = request;
3009
3009
  const _queryParams = {};
3010
3010
  if (limit != null) {
3011
3011
  _queryParams["limit"] = limit.toString();
@@ -3019,6 +3019,15 @@ var Namespaces = class {
3019
3019
  if (namespaceIds != null) {
3020
3020
  _queryParams["namespace_ids"] = namespaceIds;
3021
3021
  }
3022
+ if (namespaceId != null) {
3023
+ if (Array.isArray(namespaceId)) {
3024
+ _queryParams["namespace_id"] = namespaceId.map(
3025
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3026
+ );
3027
+ } else {
3028
+ _queryParams["namespace_id"] = namespaceId;
3029
+ }
3030
+ }
3022
3031
  const _response = await (this._options.fetcher ?? fetcher)({
3023
3032
  url: urlJoin4(
3024
3033
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -3149,7 +3158,7 @@ var Runners = class {
3149
3158
  * })
3150
3159
  */
3151
3160
  async list(request, requestOptions) {
3152
- const { namespace, name, runnerIds, includeStopped, limit, cursor } = request;
3161
+ const { namespace, name, runnerIds, runnerId, includeStopped, limit, cursor } = request;
3153
3162
  const _queryParams = {};
3154
3163
  _queryParams["namespace"] = namespace;
3155
3164
  if (name != null) {
@@ -3158,6 +3167,15 @@ var Runners = class {
3158
3167
  if (runnerIds != null) {
3159
3168
  _queryParams["runner_ids"] = runnerIds;
3160
3169
  }
3170
+ if (runnerId != null) {
3171
+ if (Array.isArray(runnerId)) {
3172
+ _queryParams["runner_id"] = runnerId.map(
3173
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3174
+ );
3175
+ } else {
3176
+ _queryParams["runner_id"] = runnerId;
3177
+ }
3178
+ }
3161
3179
  if (includeStopped != null) {
3162
3180
  _queryParams["include_stopped"] = includeStopped.toString();
3163
3181
  }
@@ -3352,7 +3370,7 @@ var RivetClient = class {
3352
3370
  * })
3353
3371
  */
3354
3372
  async actorsList(request, requestOptions) {
3355
- const { namespace, name, key, actorIds, includeDestroyed, limit, cursor } = request;
3373
+ const { namespace, name, key, actorIds, actorId, includeDestroyed, limit, cursor } = request;
3356
3374
  const _queryParams = {};
3357
3375
  _queryParams["namespace"] = namespace;
3358
3376
  if (name != null) {
@@ -3364,6 +3382,15 @@ var RivetClient = class {
3364
3382
  if (actorIds != null) {
3365
3383
  _queryParams["actor_ids"] = actorIds;
3366
3384
  }
3385
+ if (actorId != null) {
3386
+ if (Array.isArray(actorId)) {
3387
+ _queryParams["actor_id"] = actorId.map(
3388
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3389
+ );
3390
+ } else {
3391
+ _queryParams["actor_id"] = actorId;
3392
+ }
3393
+ }
3367
3394
  if (includeDestroyed != null) {
3368
3395
  _queryParams["include_destroyed"] = includeDestroyed.toString();
3369
3396
  }
@@ -3808,7 +3835,7 @@ var RivetClient = class {
3808
3835
  * })
3809
3836
  */
3810
3837
  async runnerConfigsList(request, requestOptions) {
3811
- const { namespace, limit, cursor, variant, runnerNames } = request;
3838
+ const { namespace, limit, cursor, variant, runnerNames, runnerName } = request;
3812
3839
  const _queryParams = {};
3813
3840
  _queryParams["namespace"] = namespace;
3814
3841
  if (limit != null) {
@@ -3825,6 +3852,13 @@ var RivetClient = class {
3825
3852
  if (runnerNames != null) {
3826
3853
  _queryParams["runner_names"] = runnerNames;
3827
3854
  }
3855
+ if (runnerName != null) {
3856
+ if (Array.isArray(runnerName)) {
3857
+ _queryParams["runner_name"] = runnerName.map((item) => item);
3858
+ } else {
3859
+ _queryParams["runner_name"] = runnerName;
3860
+ }
3861
+ }
3828
3862
  const _response = await (this._options.fetcher ?? fetcher)({
3829
3863
  url: urlJoin6(
3830
3864
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -2341,9 +2341,6 @@ function transformAndValidateUnion({
2341
2341
  };
2342
2342
  }
2343
2343
 
2344
- // src/Client.ts
2345
- var import_url_join6 = __toESM(require("url-join"));
2346
-
2347
2344
  // src/serialization/index.ts
2348
2345
  var serialization_exports = {};
2349
2346
  __export(serialization_exports, {
@@ -2790,6 +2787,9 @@ var NamespacesCreateRequest = schemas_exports.object({
2790
2787
  name: schemas_exports.string()
2791
2788
  });
2792
2789
 
2790
+ // src/Client.ts
2791
+ var import_url_join6 = __toESM(require("url-join"));
2792
+
2793
2793
  // src/errors/RivetError.ts
2794
2794
  var RivetError = class _RivetError extends Error {
2795
2795
  statusCode;
@@ -3043,7 +3043,7 @@ var Namespaces = class {
3043
3043
  * await client.namespaces.list()
3044
3044
  */
3045
3045
  async list(request = {}, requestOptions) {
3046
- const { limit, cursor, name, namespaceIds } = request;
3046
+ const { limit, cursor, name, namespaceIds, namespaceId } = request;
3047
3047
  const _queryParams = {};
3048
3048
  if (limit != null) {
3049
3049
  _queryParams["limit"] = limit.toString();
@@ -3057,6 +3057,15 @@ var Namespaces = class {
3057
3057
  if (namespaceIds != null) {
3058
3058
  _queryParams["namespace_ids"] = namespaceIds;
3059
3059
  }
3060
+ if (namespaceId != null) {
3061
+ if (Array.isArray(namespaceId)) {
3062
+ _queryParams["namespace_id"] = namespaceId.map(
3063
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3064
+ );
3065
+ } else {
3066
+ _queryParams["namespace_id"] = namespaceId;
3067
+ }
3068
+ }
3060
3069
  const _response = await (this._options.fetcher ?? fetcher)({
3061
3070
  url: (0, import_url_join4.default)(
3062
3071
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
@@ -3187,7 +3196,7 @@ var Runners = class {
3187
3196
  * })
3188
3197
  */
3189
3198
  async list(request, requestOptions) {
3190
- const { namespace, name, runnerIds, includeStopped, limit, cursor } = request;
3199
+ const { namespace, name, runnerIds, runnerId, includeStopped, limit, cursor } = request;
3191
3200
  const _queryParams = {};
3192
3201
  _queryParams["namespace"] = namespace;
3193
3202
  if (name != null) {
@@ -3196,6 +3205,15 @@ var Runners = class {
3196
3205
  if (runnerIds != null) {
3197
3206
  _queryParams["runner_ids"] = runnerIds;
3198
3207
  }
3208
+ if (runnerId != null) {
3209
+ if (Array.isArray(runnerId)) {
3210
+ _queryParams["runner_id"] = runnerId.map(
3211
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3212
+ );
3213
+ } else {
3214
+ _queryParams["runner_id"] = runnerId;
3215
+ }
3216
+ }
3199
3217
  if (includeStopped != null) {
3200
3218
  _queryParams["include_stopped"] = includeStopped.toString();
3201
3219
  }
@@ -3390,7 +3408,7 @@ var RivetClient = class {
3390
3408
  * })
3391
3409
  */
3392
3410
  async actorsList(request, requestOptions) {
3393
- const { namespace, name, key, actorIds, includeDestroyed, limit, cursor } = request;
3411
+ const { namespace, name, key, actorIds, actorId, includeDestroyed, limit, cursor } = request;
3394
3412
  const _queryParams = {};
3395
3413
  _queryParams["namespace"] = namespace;
3396
3414
  if (name != null) {
@@ -3402,6 +3420,15 @@ var RivetClient = class {
3402
3420
  if (actorIds != null) {
3403
3421
  _queryParams["actor_ids"] = actorIds;
3404
3422
  }
3423
+ if (actorId != null) {
3424
+ if (Array.isArray(actorId)) {
3425
+ _queryParams["actor_id"] = actorId.map(
3426
+ (item) => RivetId.jsonOrThrow(item, { unrecognizedObjectKeys: "strip" })
3427
+ );
3428
+ } else {
3429
+ _queryParams["actor_id"] = actorId;
3430
+ }
3431
+ }
3405
3432
  if (includeDestroyed != null) {
3406
3433
  _queryParams["include_destroyed"] = includeDestroyed.toString();
3407
3434
  }
@@ -3846,7 +3873,7 @@ var RivetClient = class {
3846
3873
  * })
3847
3874
  */
3848
3875
  async runnerConfigsList(request, requestOptions) {
3849
- const { namespace, limit, cursor, variant, runnerNames } = request;
3876
+ const { namespace, limit, cursor, variant, runnerNames, runnerName } = request;
3850
3877
  const _queryParams = {};
3851
3878
  _queryParams["namespace"] = namespace;
3852
3879
  if (limit != null) {
@@ -3863,6 +3890,13 @@ var RivetClient = class {
3863
3890
  if (runnerNames != null) {
3864
3891
  _queryParams["runner_names"] = runnerNames;
3865
3892
  }
3893
+ if (runnerName != null) {
3894
+ if (Array.isArray(runnerName)) {
3895
+ _queryParams["runner_name"] = runnerName.map((item) => item);
3896
+ } else {
3897
+ _queryParams["runner_name"] = runnerName;
3898
+ }
3899
+ }
3866
3900
  const _response = await (this._options.fetcher ?? fetcher)({
3867
3901
  url: (0, import_url_join6.default)(
3868
3902
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/engine-api-full",
3
- "version": "2.0.25-rc.2",
3
+ "version": "2.0.26",
4
4
  "repository": "https://github.com/rivet-gg/rivet/tree/main/sdks/typescript",
5
5
  "files": [
6
6
  "dist",
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Rivet from "../../index";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -11,7 +12,11 @@ export interface ActorsListRequest {
11
12
  namespace: string;
12
13
  name?: string;
13
14
  key?: string;
15
+ /**
16
+ * Deprecated.
17
+ */
14
18
  actorIds?: string;
19
+ actorId?: Rivet.RivetId | Rivet.RivetId[];
15
20
  includeDestroyed?: boolean;
16
21
  limit?: number;
17
22
  cursor?: string;
@@ -13,5 +13,9 @@ export interface RunnerConfigsListRequest {
13
13
  limit?: number;
14
14
  cursor?: string;
15
15
  variant?: Rivet.RunnerConfigVariant;
16
+ /**
17
+ * Deprecated.
18
+ */
16
19
  runnerNames?: string;
20
+ runnerName?: string | string[];
17
21
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Rivet from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {}
@@ -9,5 +10,9 @@ export interface NamespacesListRequest {
9
10
  limit?: number;
10
11
  cursor?: string;
11
12
  name?: string;
13
+ /**
14
+ * Deprecated.
15
+ */
12
16
  namespaceIds?: string;
17
+ namespaceId?: Rivet.RivetId | Rivet.RivetId[];
13
18
  }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Rivet from "../../../../index";
4
5
  /**
5
6
  * @example
6
7
  * {
@@ -10,7 +11,11 @@
10
11
  export interface RunnersListRequest {
11
12
  namespace: string;
12
13
  name?: string;
14
+ /**
15
+ * Deprecated.
16
+ */
13
17
  runnerIds?: string;
18
+ runnerId?: Rivet.RivetId | Rivet.RivetId[];
14
19
  includeStopped?: boolean;
15
20
  limit?: number;
16
21
  cursor?: string;