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

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.
@@ -585,6 +585,7 @@ __export(api_exports, {
585
585
  RunnerConfigVariant: () => RunnerConfigVariant,
586
586
  datacenters: () => datacenters_exports,
587
587
  health: () => health_exports,
588
+ metadata: () => metadata_exports,
588
589
  namespaces: () => namespaces_exports,
589
590
  runners: () => runners_exports
590
591
  });
@@ -614,6 +615,9 @@ var datacenters_exports = {};
614
615
  // src/api/resources/health/index.ts
615
616
  var health_exports = {};
616
617
 
618
+ // src/api/resources/metadata/index.ts
619
+ var metadata_exports = {};
620
+
617
621
  // src/api/resources/namespaces/index.ts
618
622
  var namespaces_exports = {};
619
623
 
@@ -2333,7 +2337,7 @@ function transformAndValidateUnion({
2333
2337
  }
2334
2338
 
2335
2339
  // src/Client.ts
2336
- var import_url_join5 = __toESM(require("url-join"));
2340
+ var import_url_join6 = __toESM(require("url-join"));
2337
2341
 
2338
2342
  // src/serialization/index.ts
2339
2343
  var serialization_exports = {};
@@ -2355,6 +2359,7 @@ __export(serialization_exports, {
2355
2359
  HealthFanoutResponse: () => HealthFanoutResponse,
2356
2360
  HealthResponse: () => HealthResponse,
2357
2361
  HealthStatus: () => HealthStatus2,
2362
+ MetadataGetResponse: () => MetadataGetResponse,
2358
2363
  Namespace: () => Namespace,
2359
2364
  NamespaceListResponse: () => NamespaceListResponse,
2360
2365
  NamespacesCreateRequest: () => NamespacesCreateRequest,
@@ -2501,6 +2506,18 @@ var HealthFanoutResponse = schemas_exports.object({
2501
2506
  datacenters: schemas_exports.list(DatacenterHealth)
2502
2507
  });
2503
2508
 
2509
+ // src/serialization/types/MetadataGetResponse.ts
2510
+ var MetadataGetResponse = schemas_exports.object({
2511
+ buildTimestamp: schemas_exports.property("build_timestamp", schemas_exports.string()),
2512
+ cargoProfile: schemas_exports.property("cargo_profile", schemas_exports.string()),
2513
+ cargoTarget: schemas_exports.property("cargo_target", schemas_exports.string()),
2514
+ gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
2515
+ runtime: schemas_exports.string(),
2516
+ rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
2517
+ rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
2518
+ version: schemas_exports.string()
2519
+ });
2520
+
2504
2521
  // src/serialization/types/Namespace.ts
2505
2522
  var Namespace = schemas_exports.object({
2506
2523
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
@@ -2941,8 +2958,74 @@ var Health = class {
2941
2958
  }
2942
2959
  };
2943
2960
 
2944
- // src/api/resources/namespaces/client/Client.ts
2961
+ // src/api/resources/metadata/client/Client.ts
2945
2962
  var import_url_join3 = __toESM(require("url-join"));
2963
+ var Metadata = class {
2964
+ constructor(_options) {
2965
+ this._options = _options;
2966
+ }
2967
+ /**
2968
+ * @param {Metadata.RequestOptions} requestOptions - Request-specific configuration.
2969
+ *
2970
+ * @example
2971
+ * await client.metadata.get()
2972
+ */
2973
+ async get(requestOptions) {
2974
+ const _response = await (this._options.fetcher ?? fetcher)({
2975
+ url: (0, import_url_join3.default)(
2976
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2977
+ "metadata"
2978
+ ),
2979
+ method: "DELETE",
2980
+ headers: {
2981
+ Authorization: await this._getAuthorizationHeader(),
2982
+ "X-Fern-Language": "JavaScript",
2983
+ "X-Fern-Runtime": RUNTIME.type,
2984
+ "X-Fern-Runtime-Version": RUNTIME.version,
2985
+ ...requestOptions?.headers
2986
+ },
2987
+ contentType: "application/json",
2988
+ requestType: "json",
2989
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
2990
+ maxRetries: requestOptions?.maxRetries,
2991
+ abortSignal: requestOptions?.abortSignal
2992
+ });
2993
+ if (_response.ok) {
2994
+ return MetadataGetResponse.parseOrThrow(_response.body, {
2995
+ unrecognizedObjectKeys: "passthrough",
2996
+ allowUnrecognizedUnionMembers: true,
2997
+ allowUnrecognizedEnumValues: true,
2998
+ skipValidation: true,
2999
+ breadcrumbsPrefix: ["response"]
3000
+ });
3001
+ }
3002
+ if (_response.error.reason === "status-code") {
3003
+ throw new RivetError({
3004
+ statusCode: _response.error.statusCode,
3005
+ body: _response.error.body
3006
+ });
3007
+ }
3008
+ switch (_response.error.reason) {
3009
+ case "non-json":
3010
+ throw new RivetError({
3011
+ statusCode: _response.error.statusCode,
3012
+ body: _response.error.rawBody
3013
+ });
3014
+ case "timeout":
3015
+ throw new RivetTimeoutError("Timeout exceeded when calling DELETE /metadata.");
3016
+ case "unknown":
3017
+ throw new RivetError({
3018
+ message: _response.error.errorMessage
3019
+ });
3020
+ }
3021
+ }
3022
+ async _getAuthorizationHeader() {
3023
+ return `Bearer ${await Supplier.get(this._options.token)}`;
3024
+ }
3025
+ };
3026
+
3027
+ // src/api/resources/namespaces/client/Client.ts
3028
+ var import_url_join4 = __toESM(require("url-join"));
2946
3029
  var Namespaces = class {
2947
3030
  constructor(_options) {
2948
3031
  this._options = _options;
@@ -2970,7 +3053,7 @@ var Namespaces = class {
2970
3053
  _queryParams["namespace_ids"] = namespaceIds;
2971
3054
  }
2972
3055
  const _response = await (this._options.fetcher ?? fetcher)({
2973
- url: (0, import_url_join3.default)(
3056
+ url: (0, import_url_join4.default)(
2974
3057
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2975
3058
  "namespaces"
2976
3059
  ),
@@ -3030,7 +3113,7 @@ var Namespaces = class {
3030
3113
  */
3031
3114
  async create(request, requestOptions) {
3032
3115
  const _response = await (this._options.fetcher ?? fetcher)({
3033
- url: (0, import_url_join3.default)(
3116
+ url: (0, import_url_join4.default)(
3034
3117
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3035
3118
  "namespaces"
3036
3119
  ),
@@ -3084,7 +3167,7 @@ var Namespaces = class {
3084
3167
  };
3085
3168
 
3086
3169
  // src/api/resources/runners/client/Client.ts
3087
- var import_url_join4 = __toESM(require("url-join"));
3170
+ var import_url_join5 = __toESM(require("url-join"));
3088
3171
  var Runners = class {
3089
3172
  constructor(_options) {
3090
3173
  this._options = _options;
@@ -3118,7 +3201,7 @@ var Runners = class {
3118
3201
  _queryParams["cursor"] = cursor;
3119
3202
  }
3120
3203
  const _response = await (this._options.fetcher ?? fetcher)({
3121
- url: (0, import_url_join4.default)(
3204
+ url: (0, import_url_join5.default)(
3122
3205
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3123
3206
  "runners"
3124
3207
  ),
@@ -3191,7 +3274,7 @@ var Runners = class {
3191
3274
  _queryParams["cursor"] = cursor;
3192
3275
  }
3193
3276
  const _response = await (this._options.fetcher ?? fetcher)({
3194
- url: (0, import_url_join4.default)(
3277
+ url: (0, import_url_join5.default)(
3195
3278
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3196
3279
  "runners/names"
3197
3280
  ),
@@ -3251,6 +3334,7 @@ var RivetClient = class {
3251
3334
  }
3252
3335
  _datacenters;
3253
3336
  _health;
3337
+ _metadata;
3254
3338
  _namespaces;
3255
3339
  _runners;
3256
3340
  get datacenters() {
@@ -3259,6 +3343,9 @@ var RivetClient = class {
3259
3343
  get health() {
3260
3344
  return this._health ??= new Health(this._options);
3261
3345
  }
3346
+ get metadata() {
3347
+ return this._metadata ??= new Metadata(this._options);
3348
+ }
3262
3349
  get namespaces() {
3263
3350
  return this._namespaces ??= new Namespaces(this._options);
3264
3351
  }
@@ -3320,7 +3407,7 @@ var RivetClient = class {
3320
3407
  _queryParams["cursor"] = cursor;
3321
3408
  }
3322
3409
  const _response = await (this._options.fetcher ?? fetcher)({
3323
- url: (0, import_url_join5.default)(
3410
+ url: (0, import_url_join6.default)(
3324
3411
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3325
3412
  "actors"
3326
3413
  ),
@@ -3402,7 +3489,7 @@ var RivetClient = class {
3402
3489
  const _queryParams = {};
3403
3490
  _queryParams["namespace"] = namespace;
3404
3491
  const _response = await (this._options.fetcher ?? fetcher)({
3405
- url: (0, import_url_join5.default)(
3492
+ url: (0, import_url_join6.default)(
3406
3493
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3407
3494
  "actors"
3408
3495
  ),
@@ -3495,7 +3582,7 @@ var RivetClient = class {
3495
3582
  const _queryParams = {};
3496
3583
  _queryParams["namespace"] = namespace;
3497
3584
  const _response = await (this._options.fetcher ?? fetcher)({
3498
- url: (0, import_url_join5.default)(
3585
+ url: (0, import_url_join6.default)(
3499
3586
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3500
3587
  "actors"
3501
3588
  ),
@@ -3569,7 +3656,7 @@ var RivetClient = class {
3569
3656
  _queryParams["cursor"] = cursor;
3570
3657
  }
3571
3658
  const _response = await (this._options.fetcher ?? fetcher)({
3572
- url: (0, import_url_join5.default)(
3659
+ url: (0, import_url_join6.default)(
3573
3660
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3574
3661
  "actors/names"
3575
3662
  ),
@@ -3637,7 +3724,7 @@ var RivetClient = class {
3637
3724
  _queryParams["namespace"] = namespace;
3638
3725
  }
3639
3726
  const _response = await (this._options.fetcher ?? fetcher)({
3640
- url: (0, import_url_join5.default)(
3727
+ url: (0, import_url_join6.default)(
3641
3728
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3642
3729
  `actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}`
3643
3730
  ),
@@ -3695,7 +3782,7 @@ var RivetClient = class {
3695
3782
  */
3696
3783
  async actorsKvGet(actorId, key, requestOptions) {
3697
3784
  const _response = await (this._options.fetcher ?? fetcher)({
3698
- url: (0, import_url_join5.default)(
3785
+ url: (0, import_url_join6.default)(
3699
3786
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3700
3787
  `actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}/kv/keys/${encodeURIComponent(key)}`
3701
3788
  ),
@@ -3772,7 +3859,7 @@ var RivetClient = class {
3772
3859
  _queryParams["runner_names"] = runnerNames;
3773
3860
  }
3774
3861
  const _response = await (this._options.fetcher ?? fetcher)({
3775
- url: (0, import_url_join5.default)(
3862
+ url: (0, import_url_join6.default)(
3776
3863
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3777
3864
  "runner-configs"
3778
3865
  ),
@@ -3835,7 +3922,7 @@ var RivetClient = class {
3835
3922
  const _queryParams = {};
3836
3923
  _queryParams["namespace"] = namespace;
3837
3924
  const _response = await (this._options.fetcher ?? fetcher)({
3838
- url: (0, import_url_join5.default)(
3925
+ url: (0, import_url_join6.default)(
3839
3926
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3840
3927
  "runner-configs/serverless-health-check"
3841
3928
  ),
@@ -3906,7 +3993,7 @@ var RivetClient = class {
3906
3993
  const _queryParams = {};
3907
3994
  _queryParams["namespace"] = namespace;
3908
3995
  const _response = await (this._options.fetcher ?? fetcher)({
3909
- url: (0, import_url_join5.default)(
3996
+ url: (0, import_url_join6.default)(
3910
3997
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3911
3998
  `runner-configs/${encodeURIComponent(runnerName)}`
3912
3999
  ),
@@ -3970,7 +4057,7 @@ var RivetClient = class {
3970
4057
  const _queryParams = {};
3971
4058
  _queryParams["namespace"] = namespace;
3972
4059
  const _response = await (this._options.fetcher ?? fetcher)({
3973
- url: (0, import_url_join5.default)(
4060
+ url: (0, import_url_join6.default)(
3974
4061
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3975
4062
  `runner-configs/${encodeURIComponent(runnerName)}`
3976
4063
  ),
@@ -4038,7 +4125,7 @@ var RivetClient = class {
4038
4125
  const _queryParams = {};
4039
4126
  _queryParams["namespace"] = namespace;
4040
4127
  const _response = await (this._options.fetcher ?? fetcher)({
4041
- url: (0, import_url_join5.default)(
4128
+ url: (0, import_url_join6.default)(
4042
4129
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
4043
4130
  `runner-configs/${encodeURIComponent(runnerName)}/refresh-metadata`
4044
4131
  ),
@@ -47,6 +47,7 @@ __export(serialization_exports, {
47
47
  HealthFanoutResponse: () => HealthFanoutResponse,
48
48
  HealthResponse: () => HealthResponse,
49
49
  HealthStatus: () => HealthStatus,
50
+ MetadataGetResponse: () => MetadataGetResponse,
50
51
  Namespace: () => Namespace,
51
52
  NamespaceListResponse: () => NamespaceListResponse,
52
53
  NamespacesCreateRequest: () => NamespacesCreateRequest,
@@ -1656,6 +1657,18 @@ var HealthFanoutResponse = schemas_exports.object({
1656
1657
  datacenters: schemas_exports.list(DatacenterHealth)
1657
1658
  });
1658
1659
 
1660
+ // src/serialization/types/MetadataGetResponse.ts
1661
+ var MetadataGetResponse = schemas_exports.object({
1662
+ buildTimestamp: schemas_exports.property("build_timestamp", schemas_exports.string()),
1663
+ cargoProfile: schemas_exports.property("cargo_profile", schemas_exports.string()),
1664
+ cargoTarget: schemas_exports.property("cargo_target", schemas_exports.string()),
1665
+ gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
1666
+ runtime: schemas_exports.string(),
1667
+ rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
1668
+ rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
1669
+ version: schemas_exports.string()
1670
+ });
1671
+
1659
1672
  // src/serialization/types/Namespace.ts
1660
1673
  var Namespace = schemas_exports.object({
1661
1674
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
@@ -552,6 +552,7 @@ __export(api_exports, {
552
552
  RunnerConfigVariant: () => RunnerConfigVariant,
553
553
  datacenters: () => datacenters_exports,
554
554
  health: () => health_exports,
555
+ metadata: () => metadata_exports,
555
556
  namespaces: () => namespaces_exports,
556
557
  runners: () => runners_exports
557
558
  });
@@ -581,6 +582,9 @@ var datacenters_exports = {};
581
582
  // src/api/resources/health/index.ts
582
583
  var health_exports = {};
583
584
 
585
+ // src/api/resources/metadata/index.ts
586
+ var metadata_exports = {};
587
+
584
588
  // src/api/resources/namespaces/index.ts
585
589
  var namespaces_exports = {};
586
590
 
@@ -2300,7 +2304,7 @@ function transformAndValidateUnion({
2300
2304
  }
2301
2305
 
2302
2306
  // src/Client.ts
2303
- import urlJoin5 from "url-join";
2307
+ import urlJoin6 from "url-join";
2304
2308
 
2305
2309
  // src/serialization/index.ts
2306
2310
  var serialization_exports = {};
@@ -2322,6 +2326,7 @@ __export(serialization_exports, {
2322
2326
  HealthFanoutResponse: () => HealthFanoutResponse,
2323
2327
  HealthResponse: () => HealthResponse,
2324
2328
  HealthStatus: () => HealthStatus2,
2329
+ MetadataGetResponse: () => MetadataGetResponse,
2325
2330
  Namespace: () => Namespace,
2326
2331
  NamespaceListResponse: () => NamespaceListResponse,
2327
2332
  NamespacesCreateRequest: () => NamespacesCreateRequest,
@@ -2468,6 +2473,18 @@ var HealthFanoutResponse = schemas_exports.object({
2468
2473
  datacenters: schemas_exports.list(DatacenterHealth)
2469
2474
  });
2470
2475
 
2476
+ // src/serialization/types/MetadataGetResponse.ts
2477
+ var MetadataGetResponse = schemas_exports.object({
2478
+ buildTimestamp: schemas_exports.property("build_timestamp", schemas_exports.string()),
2479
+ cargoProfile: schemas_exports.property("cargo_profile", schemas_exports.string()),
2480
+ cargoTarget: schemas_exports.property("cargo_target", schemas_exports.string()),
2481
+ gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
2482
+ runtime: schemas_exports.string(),
2483
+ rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
2484
+ rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
2485
+ version: schemas_exports.string()
2486
+ });
2487
+
2471
2488
  // src/serialization/types/Namespace.ts
2472
2489
  var Namespace = schemas_exports.object({
2473
2490
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
@@ -2908,8 +2925,74 @@ var Health = class {
2908
2925
  }
2909
2926
  };
2910
2927
 
2911
- // src/api/resources/namespaces/client/Client.ts
2928
+ // src/api/resources/metadata/client/Client.ts
2912
2929
  import urlJoin3 from "url-join";
2930
+ var Metadata = class {
2931
+ constructor(_options) {
2932
+ this._options = _options;
2933
+ }
2934
+ /**
2935
+ * @param {Metadata.RequestOptions} requestOptions - Request-specific configuration.
2936
+ *
2937
+ * @example
2938
+ * await client.metadata.get()
2939
+ */
2940
+ async get(requestOptions) {
2941
+ const _response = await (this._options.fetcher ?? fetcher)({
2942
+ url: urlJoin3(
2943
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2944
+ "metadata"
2945
+ ),
2946
+ method: "DELETE",
2947
+ headers: {
2948
+ Authorization: await this._getAuthorizationHeader(),
2949
+ "X-Fern-Language": "JavaScript",
2950
+ "X-Fern-Runtime": RUNTIME.type,
2951
+ "X-Fern-Runtime-Version": RUNTIME.version,
2952
+ ...requestOptions?.headers
2953
+ },
2954
+ contentType: "application/json",
2955
+ requestType: "json",
2956
+ timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
2957
+ maxRetries: requestOptions?.maxRetries,
2958
+ abortSignal: requestOptions?.abortSignal
2959
+ });
2960
+ if (_response.ok) {
2961
+ return MetadataGetResponse.parseOrThrow(_response.body, {
2962
+ unrecognizedObjectKeys: "passthrough",
2963
+ allowUnrecognizedUnionMembers: true,
2964
+ allowUnrecognizedEnumValues: true,
2965
+ skipValidation: true,
2966
+ breadcrumbsPrefix: ["response"]
2967
+ });
2968
+ }
2969
+ if (_response.error.reason === "status-code") {
2970
+ throw new RivetError({
2971
+ statusCode: _response.error.statusCode,
2972
+ body: _response.error.body
2973
+ });
2974
+ }
2975
+ switch (_response.error.reason) {
2976
+ case "non-json":
2977
+ throw new RivetError({
2978
+ statusCode: _response.error.statusCode,
2979
+ body: _response.error.rawBody
2980
+ });
2981
+ case "timeout":
2982
+ throw new RivetTimeoutError("Timeout exceeded when calling DELETE /metadata.");
2983
+ case "unknown":
2984
+ throw new RivetError({
2985
+ message: _response.error.errorMessage
2986
+ });
2987
+ }
2988
+ }
2989
+ async _getAuthorizationHeader() {
2990
+ return `Bearer ${await Supplier.get(this._options.token)}`;
2991
+ }
2992
+ };
2993
+
2994
+ // src/api/resources/namespaces/client/Client.ts
2995
+ import urlJoin4 from "url-join";
2913
2996
  var Namespaces = class {
2914
2997
  constructor(_options) {
2915
2998
  this._options = _options;
@@ -2937,7 +3020,7 @@ var Namespaces = class {
2937
3020
  _queryParams["namespace_ids"] = namespaceIds;
2938
3021
  }
2939
3022
  const _response = await (this._options.fetcher ?? fetcher)({
2940
- url: urlJoin3(
3023
+ url: urlJoin4(
2941
3024
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2942
3025
  "namespaces"
2943
3026
  ),
@@ -2997,7 +3080,7 @@ var Namespaces = class {
2997
3080
  */
2998
3081
  async create(request, requestOptions) {
2999
3082
  const _response = await (this._options.fetcher ?? fetcher)({
3000
- url: urlJoin3(
3083
+ url: urlJoin4(
3001
3084
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3002
3085
  "namespaces"
3003
3086
  ),
@@ -3051,7 +3134,7 @@ var Namespaces = class {
3051
3134
  };
3052
3135
 
3053
3136
  // src/api/resources/runners/client/Client.ts
3054
- import urlJoin4 from "url-join";
3137
+ import urlJoin5 from "url-join";
3055
3138
  var Runners = class {
3056
3139
  constructor(_options) {
3057
3140
  this._options = _options;
@@ -3085,7 +3168,7 @@ var Runners = class {
3085
3168
  _queryParams["cursor"] = cursor;
3086
3169
  }
3087
3170
  const _response = await (this._options.fetcher ?? fetcher)({
3088
- url: urlJoin4(
3171
+ url: urlJoin5(
3089
3172
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3090
3173
  "runners"
3091
3174
  ),
@@ -3158,7 +3241,7 @@ var Runners = class {
3158
3241
  _queryParams["cursor"] = cursor;
3159
3242
  }
3160
3243
  const _response = await (this._options.fetcher ?? fetcher)({
3161
- url: urlJoin4(
3244
+ url: urlJoin5(
3162
3245
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3163
3246
  "runners/names"
3164
3247
  ),
@@ -3218,6 +3301,7 @@ var RivetClient = class {
3218
3301
  }
3219
3302
  _datacenters;
3220
3303
  _health;
3304
+ _metadata;
3221
3305
  _namespaces;
3222
3306
  _runners;
3223
3307
  get datacenters() {
@@ -3226,6 +3310,9 @@ var RivetClient = class {
3226
3310
  get health() {
3227
3311
  return this._health ??= new Health(this._options);
3228
3312
  }
3313
+ get metadata() {
3314
+ return this._metadata ??= new Metadata(this._options);
3315
+ }
3229
3316
  get namespaces() {
3230
3317
  return this._namespaces ??= new Namespaces(this._options);
3231
3318
  }
@@ -3287,7 +3374,7 @@ var RivetClient = class {
3287
3374
  _queryParams["cursor"] = cursor;
3288
3375
  }
3289
3376
  const _response = await (this._options.fetcher ?? fetcher)({
3290
- url: urlJoin5(
3377
+ url: urlJoin6(
3291
3378
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3292
3379
  "actors"
3293
3380
  ),
@@ -3369,7 +3456,7 @@ var RivetClient = class {
3369
3456
  const _queryParams = {};
3370
3457
  _queryParams["namespace"] = namespace;
3371
3458
  const _response = await (this._options.fetcher ?? fetcher)({
3372
- url: urlJoin5(
3459
+ url: urlJoin6(
3373
3460
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3374
3461
  "actors"
3375
3462
  ),
@@ -3462,7 +3549,7 @@ var RivetClient = class {
3462
3549
  const _queryParams = {};
3463
3550
  _queryParams["namespace"] = namespace;
3464
3551
  const _response = await (this._options.fetcher ?? fetcher)({
3465
- url: urlJoin5(
3552
+ url: urlJoin6(
3466
3553
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3467
3554
  "actors"
3468
3555
  ),
@@ -3536,7 +3623,7 @@ var RivetClient = class {
3536
3623
  _queryParams["cursor"] = cursor;
3537
3624
  }
3538
3625
  const _response = await (this._options.fetcher ?? fetcher)({
3539
- url: urlJoin5(
3626
+ url: urlJoin6(
3540
3627
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3541
3628
  "actors/names"
3542
3629
  ),
@@ -3604,7 +3691,7 @@ var RivetClient = class {
3604
3691
  _queryParams["namespace"] = namespace;
3605
3692
  }
3606
3693
  const _response = await (this._options.fetcher ?? fetcher)({
3607
- url: urlJoin5(
3694
+ url: urlJoin6(
3608
3695
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3609
3696
  `actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}`
3610
3697
  ),
@@ -3662,7 +3749,7 @@ var RivetClient = class {
3662
3749
  */
3663
3750
  async actorsKvGet(actorId, key, requestOptions) {
3664
3751
  const _response = await (this._options.fetcher ?? fetcher)({
3665
- url: urlJoin5(
3752
+ url: urlJoin6(
3666
3753
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3667
3754
  `actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}/kv/keys/${encodeURIComponent(key)}`
3668
3755
  ),
@@ -3739,7 +3826,7 @@ var RivetClient = class {
3739
3826
  _queryParams["runner_names"] = runnerNames;
3740
3827
  }
3741
3828
  const _response = await (this._options.fetcher ?? fetcher)({
3742
- url: urlJoin5(
3829
+ url: urlJoin6(
3743
3830
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3744
3831
  "runner-configs"
3745
3832
  ),
@@ -3802,7 +3889,7 @@ var RivetClient = class {
3802
3889
  const _queryParams = {};
3803
3890
  _queryParams["namespace"] = namespace;
3804
3891
  const _response = await (this._options.fetcher ?? fetcher)({
3805
- url: urlJoin5(
3892
+ url: urlJoin6(
3806
3893
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3807
3894
  "runner-configs/serverless-health-check"
3808
3895
  ),
@@ -3873,7 +3960,7 @@ var RivetClient = class {
3873
3960
  const _queryParams = {};
3874
3961
  _queryParams["namespace"] = namespace;
3875
3962
  const _response = await (this._options.fetcher ?? fetcher)({
3876
- url: urlJoin5(
3963
+ url: urlJoin6(
3877
3964
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3878
3965
  `runner-configs/${encodeURIComponent(runnerName)}`
3879
3966
  ),
@@ -3937,7 +4024,7 @@ var RivetClient = class {
3937
4024
  const _queryParams = {};
3938
4025
  _queryParams["namespace"] = namespace;
3939
4026
  const _response = await (this._options.fetcher ?? fetcher)({
3940
- url: urlJoin5(
4027
+ url: urlJoin6(
3941
4028
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3942
4029
  `runner-configs/${encodeURIComponent(runnerName)}`
3943
4030
  ),
@@ -4005,7 +4092,7 @@ var RivetClient = class {
4005
4092
  const _queryParams = {};
4006
4093
  _queryParams["namespace"] = namespace;
4007
4094
  const _response = await (this._options.fetcher ?? fetcher)({
4008
- url: urlJoin5(
4095
+ url: urlJoin6(
4009
4096
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
4010
4097
  `runner-configs/${encodeURIComponent(runnerName)}/refresh-metadata`
4011
4098
  ),
@@ -1570,6 +1570,18 @@ var HealthFanoutResponse = schemas_exports.object({
1570
1570
  datacenters: schemas_exports.list(DatacenterHealth)
1571
1571
  });
1572
1572
 
1573
+ // src/serialization/types/MetadataGetResponse.ts
1574
+ var MetadataGetResponse = schemas_exports.object({
1575
+ buildTimestamp: schemas_exports.property("build_timestamp", schemas_exports.string()),
1576
+ cargoProfile: schemas_exports.property("cargo_profile", schemas_exports.string()),
1577
+ cargoTarget: schemas_exports.property("cargo_target", schemas_exports.string()),
1578
+ gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
1579
+ runtime: schemas_exports.string(),
1580
+ rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
1581
+ rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
1582
+ version: schemas_exports.string()
1583
+ });
1584
+
1573
1585
  // src/serialization/types/Namespace.ts
1574
1586
  var Namespace = schemas_exports.object({
1575
1587
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
@@ -1854,6 +1866,7 @@ export {
1854
1866
  HealthFanoutResponse,
1855
1867
  HealthResponse,
1856
1868
  HealthStatus,
1869
+ MetadataGetResponse,
1857
1870
  Namespace,
1858
1871
  NamespaceListResponse,
1859
1872
  NamespacesCreateRequest,
@@ -589,6 +589,7 @@ __export(api_exports, {
589
589
  RunnerConfigVariant: () => RunnerConfigVariant,
590
590
  datacenters: () => datacenters_exports,
591
591
  health: () => health_exports,
592
+ metadata: () => metadata_exports,
592
593
  namespaces: () => namespaces_exports,
593
594
  runners: () => runners_exports
594
595
  });
@@ -618,6 +619,9 @@ var datacenters_exports = {};
618
619
  // src/api/resources/health/index.ts
619
620
  var health_exports = {};
620
621
 
622
+ // src/api/resources/metadata/index.ts
623
+ var metadata_exports = {};
624
+
621
625
  // src/api/resources/namespaces/index.ts
622
626
  var namespaces_exports = {};
623
627
 
@@ -2338,7 +2342,7 @@ function transformAndValidateUnion({
2338
2342
  }
2339
2343
 
2340
2344
  // src/Client.ts
2341
- var import_url_join5 = __toESM(require("url-join"));
2345
+ var import_url_join6 = __toESM(require("url-join"));
2342
2346
 
2343
2347
  // src/serialization/index.ts
2344
2348
  var serialization_exports = {};
@@ -2360,6 +2364,7 @@ __export(serialization_exports, {
2360
2364
  HealthFanoutResponse: () => HealthFanoutResponse,
2361
2365
  HealthResponse: () => HealthResponse,
2362
2366
  HealthStatus: () => HealthStatus2,
2367
+ MetadataGetResponse: () => MetadataGetResponse,
2363
2368
  Namespace: () => Namespace,
2364
2369
  NamespaceListResponse: () => NamespaceListResponse,
2365
2370
  NamespacesCreateRequest: () => NamespacesCreateRequest,
@@ -2506,6 +2511,18 @@ var HealthFanoutResponse = schemas_exports.object({
2506
2511
  datacenters: schemas_exports.list(DatacenterHealth)
2507
2512
  });
2508
2513
 
2514
+ // src/serialization/types/MetadataGetResponse.ts
2515
+ var MetadataGetResponse = schemas_exports.object({
2516
+ buildTimestamp: schemas_exports.property("build_timestamp", schemas_exports.string()),
2517
+ cargoProfile: schemas_exports.property("cargo_profile", schemas_exports.string()),
2518
+ cargoTarget: schemas_exports.property("cargo_target", schemas_exports.string()),
2519
+ gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
2520
+ runtime: schemas_exports.string(),
2521
+ rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
2522
+ rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
2523
+ version: schemas_exports.string()
2524
+ });
2525
+
2509
2526
  // src/serialization/types/Namespace.ts
2510
2527
  var Namespace = schemas_exports.object({
2511
2528
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
@@ -2946,8 +2963,74 @@ var Health = class {
2946
2963
  }
2947
2964
  };
2948
2965
 
2949
- // src/api/resources/namespaces/client/Client.ts
2966
+ // src/api/resources/metadata/client/Client.ts
2950
2967
  var import_url_join3 = __toESM(require("url-join"));
2968
+ var Metadata = class {
2969
+ constructor(_options) {
2970
+ this._options = _options;
2971
+ }
2972
+ /**
2973
+ * @param {Metadata.RequestOptions} requestOptions - Request-specific configuration.
2974
+ *
2975
+ * @example
2976
+ * await client.metadata.get()
2977
+ */
2978
+ async get(requestOptions) {
2979
+ const _response = await (this._options.fetcher ?? fetcher)({
2980
+ url: (0, import_url_join3.default)(
2981
+ await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2982
+ "metadata"
2983
+ ),
2984
+ method: "DELETE",
2985
+ headers: {
2986
+ Authorization: await this._getAuthorizationHeader(),
2987
+ "X-Fern-Language": "JavaScript",
2988
+ "X-Fern-Runtime": RUNTIME.type,
2989
+ "X-Fern-Runtime-Version": RUNTIME.version,
2990
+ ...requestOptions == null ? void 0 : requestOptions.headers
2991
+ },
2992
+ contentType: "application/json",
2993
+ requestType: "json",
2994
+ timeoutMs: (requestOptions == null ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1e3 : 18e4,
2995
+ maxRetries: requestOptions == null ? void 0 : requestOptions.maxRetries,
2996
+ abortSignal: requestOptions == null ? void 0 : requestOptions.abortSignal
2997
+ });
2998
+ if (_response.ok) {
2999
+ return MetadataGetResponse.parseOrThrow(_response.body, {
3000
+ unrecognizedObjectKeys: "passthrough",
3001
+ allowUnrecognizedUnionMembers: true,
3002
+ allowUnrecognizedEnumValues: true,
3003
+ skipValidation: true,
3004
+ breadcrumbsPrefix: ["response"]
3005
+ });
3006
+ }
3007
+ if (_response.error.reason === "status-code") {
3008
+ throw new RivetError({
3009
+ statusCode: _response.error.statusCode,
3010
+ body: _response.error.body
3011
+ });
3012
+ }
3013
+ switch (_response.error.reason) {
3014
+ case "non-json":
3015
+ throw new RivetError({
3016
+ statusCode: _response.error.statusCode,
3017
+ body: _response.error.rawBody
3018
+ });
3019
+ case "timeout":
3020
+ throw new RivetTimeoutError("Timeout exceeded when calling DELETE /metadata.");
3021
+ case "unknown":
3022
+ throw new RivetError({
3023
+ message: _response.error.errorMessage
3024
+ });
3025
+ }
3026
+ }
3027
+ async _getAuthorizationHeader() {
3028
+ return `Bearer ${await Supplier.get(this._options.token)}`;
3029
+ }
3030
+ };
3031
+
3032
+ // src/api/resources/namespaces/client/Client.ts
3033
+ var import_url_join4 = __toESM(require("url-join"));
2951
3034
  var Namespaces = class {
2952
3035
  constructor(_options) {
2953
3036
  this._options = _options;
@@ -2975,7 +3058,7 @@ var Namespaces = class {
2975
3058
  _queryParams["namespace_ids"] = namespaceIds;
2976
3059
  }
2977
3060
  const _response = await (this._options.fetcher ?? fetcher)({
2978
- url: (0, import_url_join3.default)(
3061
+ url: (0, import_url_join4.default)(
2979
3062
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
2980
3063
  "namespaces"
2981
3064
  ),
@@ -3035,7 +3118,7 @@ var Namespaces = class {
3035
3118
  */
3036
3119
  async create(request, requestOptions) {
3037
3120
  const _response = await (this._options.fetcher ?? fetcher)({
3038
- url: (0, import_url_join3.default)(
3121
+ url: (0, import_url_join4.default)(
3039
3122
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3040
3123
  "namespaces"
3041
3124
  ),
@@ -3089,7 +3172,7 @@ var Namespaces = class {
3089
3172
  };
3090
3173
 
3091
3174
  // src/api/resources/runners/client/Client.ts
3092
- var import_url_join4 = __toESM(require("url-join"));
3175
+ var import_url_join5 = __toESM(require("url-join"));
3093
3176
  var Runners = class {
3094
3177
  constructor(_options) {
3095
3178
  this._options = _options;
@@ -3123,7 +3206,7 @@ var Runners = class {
3123
3206
  _queryParams["cursor"] = cursor;
3124
3207
  }
3125
3208
  const _response = await (this._options.fetcher ?? fetcher)({
3126
- url: (0, import_url_join4.default)(
3209
+ url: (0, import_url_join5.default)(
3127
3210
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3128
3211
  "runners"
3129
3212
  ),
@@ -3196,7 +3279,7 @@ var Runners = class {
3196
3279
  _queryParams["cursor"] = cursor;
3197
3280
  }
3198
3281
  const _response = await (this._options.fetcher ?? fetcher)({
3199
- url: (0, import_url_join4.default)(
3282
+ url: (0, import_url_join5.default)(
3200
3283
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3201
3284
  "runners/names"
3202
3285
  ),
@@ -3256,6 +3339,7 @@ var RivetClient = class {
3256
3339
  }
3257
3340
  _datacenters;
3258
3341
  _health;
3342
+ _metadata;
3259
3343
  _namespaces;
3260
3344
  _runners;
3261
3345
  get datacenters() {
@@ -3264,6 +3348,9 @@ var RivetClient = class {
3264
3348
  get health() {
3265
3349
  return this._health ?? (this._health = new Health(this._options));
3266
3350
  }
3351
+ get metadata() {
3352
+ return this._metadata ?? (this._metadata = new Metadata(this._options));
3353
+ }
3267
3354
  get namespaces() {
3268
3355
  return this._namespaces ?? (this._namespaces = new Namespaces(this._options));
3269
3356
  }
@@ -3325,7 +3412,7 @@ var RivetClient = class {
3325
3412
  _queryParams["cursor"] = cursor;
3326
3413
  }
3327
3414
  const _response = await (this._options.fetcher ?? fetcher)({
3328
- url: (0, import_url_join5.default)(
3415
+ url: (0, import_url_join6.default)(
3329
3416
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3330
3417
  "actors"
3331
3418
  ),
@@ -3407,7 +3494,7 @@ var RivetClient = class {
3407
3494
  const _queryParams = {};
3408
3495
  _queryParams["namespace"] = namespace;
3409
3496
  const _response = await (this._options.fetcher ?? fetcher)({
3410
- url: (0, import_url_join5.default)(
3497
+ url: (0, import_url_join6.default)(
3411
3498
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3412
3499
  "actors"
3413
3500
  ),
@@ -3500,7 +3587,7 @@ var RivetClient = class {
3500
3587
  const _queryParams = {};
3501
3588
  _queryParams["namespace"] = namespace;
3502
3589
  const _response = await (this._options.fetcher ?? fetcher)({
3503
- url: (0, import_url_join5.default)(
3590
+ url: (0, import_url_join6.default)(
3504
3591
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3505
3592
  "actors"
3506
3593
  ),
@@ -3574,7 +3661,7 @@ var RivetClient = class {
3574
3661
  _queryParams["cursor"] = cursor;
3575
3662
  }
3576
3663
  const _response = await (this._options.fetcher ?? fetcher)({
3577
- url: (0, import_url_join5.default)(
3664
+ url: (0, import_url_join6.default)(
3578
3665
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3579
3666
  "actors/names"
3580
3667
  ),
@@ -3642,7 +3729,7 @@ var RivetClient = class {
3642
3729
  _queryParams["namespace"] = namespace;
3643
3730
  }
3644
3731
  const _response = await (this._options.fetcher ?? fetcher)({
3645
- url: (0, import_url_join5.default)(
3732
+ url: (0, import_url_join6.default)(
3646
3733
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3647
3734
  `actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}`
3648
3735
  ),
@@ -3700,7 +3787,7 @@ var RivetClient = class {
3700
3787
  */
3701
3788
  async actorsKvGet(actorId, key, requestOptions) {
3702
3789
  const _response = await (this._options.fetcher ?? fetcher)({
3703
- url: (0, import_url_join5.default)(
3790
+ url: (0, import_url_join6.default)(
3704
3791
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3705
3792
  `actors/${encodeURIComponent(RivetId.jsonOrThrow(actorId))}/kv/keys/${encodeURIComponent(key)}`
3706
3793
  ),
@@ -3777,7 +3864,7 @@ var RivetClient = class {
3777
3864
  _queryParams["runner_names"] = runnerNames;
3778
3865
  }
3779
3866
  const _response = await (this._options.fetcher ?? fetcher)({
3780
- url: (0, import_url_join5.default)(
3867
+ url: (0, import_url_join6.default)(
3781
3868
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3782
3869
  "runner-configs"
3783
3870
  ),
@@ -3840,7 +3927,7 @@ var RivetClient = class {
3840
3927
  const _queryParams = {};
3841
3928
  _queryParams["namespace"] = namespace;
3842
3929
  const _response = await (this._options.fetcher ?? fetcher)({
3843
- url: (0, import_url_join5.default)(
3930
+ url: (0, import_url_join6.default)(
3844
3931
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3845
3932
  "runner-configs/serverless-health-check"
3846
3933
  ),
@@ -3911,7 +3998,7 @@ var RivetClient = class {
3911
3998
  const _queryParams = {};
3912
3999
  _queryParams["namespace"] = namespace;
3913
4000
  const _response = await (this._options.fetcher ?? fetcher)({
3914
- url: (0, import_url_join5.default)(
4001
+ url: (0, import_url_join6.default)(
3915
4002
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3916
4003
  `runner-configs/${encodeURIComponent(runnerName)}`
3917
4004
  ),
@@ -3975,7 +4062,7 @@ var RivetClient = class {
3975
4062
  const _queryParams = {};
3976
4063
  _queryParams["namespace"] = namespace;
3977
4064
  const _response = await (this._options.fetcher ?? fetcher)({
3978
- url: (0, import_url_join5.default)(
4065
+ url: (0, import_url_join6.default)(
3979
4066
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
3980
4067
  `runner-configs/${encodeURIComponent(runnerName)}`
3981
4068
  ),
@@ -4043,7 +4130,7 @@ var RivetClient = class {
4043
4130
  const _queryParams = {};
4044
4131
  _queryParams["namespace"] = namespace;
4045
4132
  const _response = await (this._options.fetcher ?? fetcher)({
4046
- url: (0, import_url_join5.default)(
4133
+ url: (0, import_url_join6.default)(
4047
4134
  await Supplier.get(this._options.baseUrl) ?? await Supplier.get(this._options.environment),
4048
4135
  `runner-configs/${encodeURIComponent(runnerName)}/refresh-metadata`
4049
4136
  ),
@@ -47,6 +47,7 @@ __export(serialization_exports, {
47
47
  HealthFanoutResponse: () => HealthFanoutResponse,
48
48
  HealthResponse: () => HealthResponse,
49
49
  HealthStatus: () => HealthStatus,
50
+ MetadataGetResponse: () => MetadataGetResponse,
50
51
  Namespace: () => Namespace,
51
52
  NamespaceListResponse: () => NamespaceListResponse,
52
53
  NamespacesCreateRequest: () => NamespacesCreateRequest,
@@ -1657,6 +1658,18 @@ var HealthFanoutResponse = schemas_exports.object({
1657
1658
  datacenters: schemas_exports.list(DatacenterHealth)
1658
1659
  });
1659
1660
 
1661
+ // src/serialization/types/MetadataGetResponse.ts
1662
+ var MetadataGetResponse = schemas_exports.object({
1663
+ buildTimestamp: schemas_exports.property("build_timestamp", schemas_exports.string()),
1664
+ cargoProfile: schemas_exports.property("cargo_profile", schemas_exports.string()),
1665
+ cargoTarget: schemas_exports.property("cargo_target", schemas_exports.string()),
1666
+ gitSha: schemas_exports.property("git_sha", schemas_exports.string()),
1667
+ runtime: schemas_exports.string(),
1668
+ rustcHost: schemas_exports.property("rustc_host", schemas_exports.string()),
1669
+ rustcVersion: schemas_exports.property("rustc_version", schemas_exports.string()),
1670
+ version: schemas_exports.string()
1671
+ });
1672
+
1660
1673
  // src/serialization/types/Namespace.ts
1661
1674
  var Namespace = schemas_exports.object({
1662
1675
  createTs: schemas_exports.property("create_ts", schemas_exports.number()),
@@ -1942,6 +1955,7 @@ var NamespacesCreateRequest = schemas_exports.object({
1942
1955
  HealthFanoutResponse,
1943
1956
  HealthResponse,
1944
1957
  HealthStatus,
1958
+ MetadataGetResponse,
1945
1959
  Namespace,
1946
1960
  NamespaceListResponse,
1947
1961
  NamespacesCreateRequest,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/engine-api-full",
3
- "version": "2.0.24",
3
+ "version": "2.0.25-rc.2",
4
4
  "repository": "https://github.com/rivet-gg/rivet/tree/main/sdks/typescript",
5
5
  "files": [
6
6
  "dist",
package/types/Client.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as core from "./core";
5
5
  import * as Rivet from "./api/index";
6
6
  import { Datacenters } from "./api/resources/datacenters/client/Client";
7
7
  import { Health } from "./api/resources/health/client/Client";
8
+ import { Metadata } from "./api/resources/metadata/client/Client";
8
9
  import { Namespaces } from "./api/resources/namespaces/client/Client";
9
10
  import { Runners } from "./api/resources/runners/client/Client";
10
11
  export declare namespace RivetClient {
@@ -30,11 +31,13 @@ export declare class RivetClient {
30
31
  protected readonly _options: RivetClient.Options;
31
32
  protected _datacenters: Datacenters | undefined;
32
33
  protected _health: Health | undefined;
34
+ protected _metadata: Metadata | undefined;
33
35
  protected _namespaces: Namespaces | undefined;
34
36
  protected _runners: Runners | undefined;
35
37
  constructor(_options: RivetClient.Options);
36
38
  get datacenters(): Datacenters;
37
39
  get health(): Health;
40
+ get metadata(): Metadata;
38
41
  get namespaces(): Namespaces;
39
42
  get runners(): Runners;
40
43
  /**
@@ -1,5 +1,6 @@
1
1
  export * as datacenters from "./datacenters";
2
2
  export * as health from "./health";
3
+ export * as metadata from "./metadata";
3
4
  export * as namespaces from "./namespaces";
4
5
  export * as runners from "./runners";
5
6
  export * from "./namespaces/client/requests";
@@ -0,0 +1,36 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as core from "../../../../core";
5
+ import * as Rivet from "../../../index";
6
+ export declare namespace Metadata {
7
+ interface Options {
8
+ environment: core.Supplier<string>;
9
+ /** Specify a custom URL to connect the client to. */
10
+ baseUrl?: core.Supplier<string>;
11
+ token: core.Supplier<core.BearerToken>;
12
+ fetcher?: core.FetchFunction;
13
+ }
14
+ interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
16
+ timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
18
+ maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
21
+ /** Additional headers to include in the request. */
22
+ headers?: Record<string, string>;
23
+ }
24
+ }
25
+ export declare class Metadata {
26
+ protected readonly _options: Metadata.Options;
27
+ constructor(_options: Metadata.Options);
28
+ /**
29
+ * @param {Metadata.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
31
+ * @example
32
+ * await client.metadata.get()
33
+ */
34
+ get(requestOptions?: Metadata.RequestOptions): Promise<Rivet.MetadataGetResponse>;
35
+ protected _getAuthorizationHeader(): Promise<string>;
36
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface MetadataGetResponse {
5
+ buildTimestamp: string;
6
+ cargoProfile: string;
7
+ cargoTarget: string;
8
+ gitSha: string;
9
+ runtime: string;
10
+ rustcHost: string;
11
+ rustcVersion: string;
12
+ version: string;
13
+ }
@@ -13,6 +13,7 @@ export * from "./DatacentersListResponse";
13
13
  export * from "./HealthFanoutResponse";
14
14
  export * from "./HealthResponse";
15
15
  export * from "./HealthStatus";
16
+ export * from "./MetadataGetResponse";
16
17
  export * from "./Namespace";
17
18
  export * from "./NamespaceListResponse";
18
19
  export * from "./NamespacesCreateResponse";
@@ -0,0 +1,19 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../index";
5
+ import * as Rivet from "../../api/index";
6
+ import * as core from "../../core";
7
+ export declare const MetadataGetResponse: core.serialization.ObjectSchema<serializers.MetadataGetResponse.Raw, Rivet.MetadataGetResponse>;
8
+ export declare namespace MetadataGetResponse {
9
+ interface Raw {
10
+ build_timestamp: string;
11
+ cargo_profile: string;
12
+ cargo_target: string;
13
+ git_sha: string;
14
+ runtime: string;
15
+ rustc_host: string;
16
+ rustc_version: string;
17
+ version: string;
18
+ }
19
+ }
@@ -13,6 +13,7 @@ export * from "./DatacentersListResponse";
13
13
  export * from "./HealthFanoutResponse";
14
14
  export * from "./HealthResponse";
15
15
  export * from "./HealthStatus";
16
+ export * from "./MetadataGetResponse";
16
17
  export * from "./Namespace";
17
18
  export * from "./NamespaceListResponse";
18
19
  export * from "./NamespacesCreateResponse";