@temporary-name/shared 1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8 → 1.9.3-alpha.102eab0800942eb736f7669a86c850ebfdfcd4a3

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/dist/index.d.mts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { MaybeOptionalOptions as MaybeOptionalOptions$1, ThrowableError as ThrowableError$1 } from '@temporary-name/shared';
2
- import { Promisable } from 'type-fest';
3
- export { IsEqual, IsNever, JsonValue, PartialDeep, Promisable } from 'type-fest';
4
2
  import { Tracer, TraceAPI, ContextAPI, PropagationAPI, SpanOptions, Context, Span, AttributeValue, Exception } from '@opentelemetry/api';
5
3
  export { group, guard, mapEntries, mapValues, omit, retry, sleep } from 'radash';
6
4
 
@@ -31,7 +29,7 @@ type OmitChainMethodDeep<T extends object, K extends keyof any> = {
31
29
 
32
30
  declare const ORPC_NAME = "orpc";
33
31
  declare const ORPC_SHARED_PACKAGE_NAME = "@temporary-name/shared";
34
- declare const ORPC_SHARED_PACKAGE_VERSION = "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8";
32
+ declare const ORPC_SHARED_PACKAGE_VERSION = "1.9.3-alpha.102eab0800942eb736f7669a86c850ebfdfcd4a3";
35
33
 
36
34
  declare const ORPC_CLIENT_PACKAGE_NAME = "__ORPC_CLIENT_PACKAGE_NAME_PLACEHOLDER__";
37
35
  declare const ORPC_CLIENT_PACKAGE_VERSION = "__ORPC_CLIENT_PACKAGE_VERSION_PLACEHOLDER__";
@@ -227,6 +225,7 @@ declare class SequentialIdGenerator {
227
225
 
228
226
  type HTTPPath = `/${string}`;
229
227
  type HTTPMethod = 'HEAD' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
228
+ type HTTPEndpoint = `${HTTPMethod} ${HTTPPath}`;
230
229
  type ClientContext = Record<PropertyKey, any>;
231
230
  interface ClientOptions<T extends ClientContext> {
232
231
  signal?: AbortSignal;
@@ -271,6 +270,8 @@ type ThrowableError = Registry extends {
271
270
  throwableError: infer T;
272
271
  } ? T : Error;
273
272
  type InferAsyncIterableYield<T> = T extends AsyncIterable<infer U> ? U : never;
273
+ type IsEqual<A, B> = (<G>() => G extends (A & G) | G ? 1 : 2) extends <G>() => G extends (B & G) | G ? 1 : 2 ? true : false;
274
+ type Promisable<T> = T | PromiseLike<T>;
274
275
 
275
276
  type InterceptableOptions = Record<string, any>;
276
277
  type InterceptorOptions<TOptions extends InterceptableOptions, TResult> = Omit<TOptions, 'next'> & {
@@ -506,4 +507,4 @@ declare function safe<TOutput, TError = ThrowableError$1>(promise: ClientPromise
506
507
  declare function toHttpPath(path: readonly string[]): HTTPPath;
507
508
 
508
509
  export { AbortError, AsyncIdQueue, AsyncIteratorClass, COMMON_ORPC_ERROR_DEFS, EventPublisher, NullProtoObj, ORPCError, ORPC_CLIENT_PACKAGE_NAME, ORPC_CLIENT_PACKAGE_VERSION, ORPC_NAME, ORPC_SHARED_PACKAGE_NAME, ORPC_SHARED_PACKAGE_VERSION, SequentialIdGenerator, asyncIteratorToStream, asyncIteratorWithSpan, clone, createORPCErrorFromJson, defer, fallback, fallbackORPCErrorMessage, fallbackORPCErrorStatus, findDeepMatches, get, getConstructor, getGlobalOtelConfig, intercept, isAsyncIteratorObject, isDefinedError, isORPCErrorJson, isORPCErrorStatus, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, overlayProxy, parseEmptyableJSON, preventNativeAwait, readAsBuffer, replicateAsyncIterator, resolveMaybeOptionalOptions, runInSpanContext, runWithSpan, safe, sequential, setGlobalOtelConfig, setSpanAttribute, setSpanError, splitInHalf, startSpan, streamToAsyncIteratorClass, stringifyJSON, toArray, toHttpPath, toORPCError, toOtelException, toSpanAttributeValue, tryDecodeURIComponent, value };
509
- export type { AnyFunction, AsyncIdQueueCloseOptions, AsyncIteratorClassCleanupFn, AsyncIteratorClassNextFn, AsyncIteratorWithSpanOptions, Client, ClientContext, ClientLink, ClientOptions, ClientPromiseResult, ClientRest, CommonORPCErrorCode, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, FriendlyClientOptions, HTTPMethod, HTTPPath, InferAsyncIterableYield, InferClientContext, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, NestedClient, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, OmitChainMethodDeep, OnFinishState, OtelConfig, PromiseWithError, Registry, RunWithSpanOptions, SafeResult, Segment, SetOptional, SetSpanErrorOptions, ThrowableError, Value };
510
+ export type { AnyFunction, AsyncIdQueueCloseOptions, AsyncIteratorClassCleanupFn, AsyncIteratorClassNextFn, AsyncIteratorWithSpanOptions, Client, ClientContext, ClientLink, ClientOptions, ClientPromiseResult, ClientRest, CommonORPCErrorCode, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, FriendlyClientOptions, HTTPEndpoint, HTTPMethod, HTTPPath, InferAsyncIterableYield, InferClientContext, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, IsEqual, MaybeOptionalOptions, NestedClient, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, OmitChainMethodDeep, OnFinishState, OtelConfig, Promisable, PromiseWithError, Registry, RunWithSpanOptions, SafeResult, Segment, SetOptional, SetSpanErrorOptions, ThrowableError, Value };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { MaybeOptionalOptions as MaybeOptionalOptions$1, ThrowableError as ThrowableError$1 } from '@temporary-name/shared';
2
- import { Promisable } from 'type-fest';
3
- export { IsEqual, IsNever, JsonValue, PartialDeep, Promisable } from 'type-fest';
4
2
  import { Tracer, TraceAPI, ContextAPI, PropagationAPI, SpanOptions, Context, Span, AttributeValue, Exception } from '@opentelemetry/api';
5
3
  export { group, guard, mapEntries, mapValues, omit, retry, sleep } from 'radash';
6
4
 
@@ -31,7 +29,7 @@ type OmitChainMethodDeep<T extends object, K extends keyof any> = {
31
29
 
32
30
  declare const ORPC_NAME = "orpc";
33
31
  declare const ORPC_SHARED_PACKAGE_NAME = "@temporary-name/shared";
34
- declare const ORPC_SHARED_PACKAGE_VERSION = "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8";
32
+ declare const ORPC_SHARED_PACKAGE_VERSION = "1.9.3-alpha.102eab0800942eb736f7669a86c850ebfdfcd4a3";
35
33
 
36
34
  declare const ORPC_CLIENT_PACKAGE_NAME = "__ORPC_CLIENT_PACKAGE_NAME_PLACEHOLDER__";
37
35
  declare const ORPC_CLIENT_PACKAGE_VERSION = "__ORPC_CLIENT_PACKAGE_VERSION_PLACEHOLDER__";
@@ -227,6 +225,7 @@ declare class SequentialIdGenerator {
227
225
 
228
226
  type HTTPPath = `/${string}`;
229
227
  type HTTPMethod = 'HEAD' | 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
228
+ type HTTPEndpoint = `${HTTPMethod} ${HTTPPath}`;
230
229
  type ClientContext = Record<PropertyKey, any>;
231
230
  interface ClientOptions<T extends ClientContext> {
232
231
  signal?: AbortSignal;
@@ -271,6 +270,8 @@ type ThrowableError = Registry extends {
271
270
  throwableError: infer T;
272
271
  } ? T : Error;
273
272
  type InferAsyncIterableYield<T> = T extends AsyncIterable<infer U> ? U : never;
273
+ type IsEqual<A, B> = (<G>() => G extends (A & G) | G ? 1 : 2) extends <G>() => G extends (B & G) | G ? 1 : 2 ? true : false;
274
+ type Promisable<T> = T | PromiseLike<T>;
274
275
 
275
276
  type InterceptableOptions = Record<string, any>;
276
277
  type InterceptorOptions<TOptions extends InterceptableOptions, TResult> = Omit<TOptions, 'next'> & {
@@ -506,4 +507,4 @@ declare function safe<TOutput, TError = ThrowableError$1>(promise: ClientPromise
506
507
  declare function toHttpPath(path: readonly string[]): HTTPPath;
507
508
 
508
509
  export { AbortError, AsyncIdQueue, AsyncIteratorClass, COMMON_ORPC_ERROR_DEFS, EventPublisher, NullProtoObj, ORPCError, ORPC_CLIENT_PACKAGE_NAME, ORPC_CLIENT_PACKAGE_VERSION, ORPC_NAME, ORPC_SHARED_PACKAGE_NAME, ORPC_SHARED_PACKAGE_VERSION, SequentialIdGenerator, asyncIteratorToStream, asyncIteratorWithSpan, clone, createORPCErrorFromJson, defer, fallback, fallbackORPCErrorMessage, fallbackORPCErrorStatus, findDeepMatches, get, getConstructor, getGlobalOtelConfig, intercept, isAsyncIteratorObject, isDefinedError, isORPCErrorJson, isORPCErrorStatus, isObject, isPropertyKey, isTypescriptObject, onError, onFinish, onStart, onSuccess, once, overlayProxy, parseEmptyableJSON, preventNativeAwait, readAsBuffer, replicateAsyncIterator, resolveMaybeOptionalOptions, runInSpanContext, runWithSpan, safe, sequential, setGlobalOtelConfig, setSpanAttribute, setSpanError, splitInHalf, startSpan, streamToAsyncIteratorClass, stringifyJSON, toArray, toHttpPath, toORPCError, toOtelException, toSpanAttributeValue, tryDecodeURIComponent, value };
509
- export type { AnyFunction, AsyncIdQueueCloseOptions, AsyncIteratorClassCleanupFn, AsyncIteratorClassNextFn, AsyncIteratorWithSpanOptions, Client, ClientContext, ClientLink, ClientOptions, ClientPromiseResult, ClientRest, CommonORPCErrorCode, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, FriendlyClientOptions, HTTPMethod, HTTPPath, InferAsyncIterableYield, InferClientContext, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, MaybeOptionalOptions, NestedClient, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, OmitChainMethodDeep, OnFinishState, OtelConfig, PromiseWithError, Registry, RunWithSpanOptions, SafeResult, Segment, SetOptional, SetSpanErrorOptions, ThrowableError, Value };
510
+ export type { AnyFunction, AsyncIdQueueCloseOptions, AsyncIteratorClassCleanupFn, AsyncIteratorClassNextFn, AsyncIteratorWithSpanOptions, Client, ClientContext, ClientLink, ClientOptions, ClientPromiseResult, ClientRest, CommonORPCErrorCode, EventPublisherOptions, EventPublisherSubscribeIteratorOptions, FriendlyClientOptions, HTTPEndpoint, HTTPMethod, HTTPPath, InferAsyncIterableYield, InferClientContext, InterceptableOptions, Interceptor, InterceptorOptions, IntersectPick, IsEqual, MaybeOptionalOptions, NestedClient, ORPCErrorCode, ORPCErrorJSON, ORPCErrorOptions, OmitChainMethodDeep, OnFinishState, OtelConfig, Promisable, PromiseWithError, Registry, RunWithSpanOptions, SafeResult, Segment, SetOptional, SetSpanErrorOptions, ThrowableError, Value };
package/dist/index.mjs CHANGED
@@ -22,7 +22,7 @@ function readAsBuffer(source) {
22
22
 
23
23
  const ORPC_NAME = "orpc";
24
24
  const ORPC_SHARED_PACKAGE_NAME = "@temporary-name/shared";
25
- const ORPC_SHARED_PACKAGE_VERSION = "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8";
25
+ const ORPC_SHARED_PACKAGE_VERSION = "1.9.3-alpha.102eab0800942eb736f7669a86c850ebfdfcd4a3";
26
26
 
27
27
  const ORPC_CLIENT_PACKAGE_NAME = "__ORPC_CLIENT_PACKAGE_NAME_PLACEHOLDER__";
28
28
  const ORPC_CLIENT_PACKAGE_VERSION = "__ORPC_CLIENT_PACKAGE_VERSION_PLACEHOLDER__";
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@temporary-name/shared",
3
3
  "type": "module",
4
- "version": "1.9.3-alpha.0d2fa3247b6b23bbc2e3097a95f631b86740e4d8",
4
+ "version": "1.9.3-alpha.102eab0800942eb736f7669a86c850ebfdfcd4a3",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.stainless.com/",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "git+https://github.com/unnoq/krusty.git",
9
+ "url": "git+https://github.com/stainless-api/krusty.git",
10
10
  "directory": "packages/shared"
11
11
  },
12
12
  "keywords": [
@@ -32,13 +32,10 @@
32
32
  }
33
33
  },
34
34
  "dependencies": {
35
- "radash": "^12.1.1",
36
- "type-fest": "^5.0.1"
35
+ "radash": "^12.1.1"
37
36
  },
38
37
  "devDependencies": {
39
38
  "@opentelemetry/api": "^1.9.0",
40
- "arktype": "2.1.22",
41
- "valibot": "^1.1.0",
42
39
  "zod": "^4.1.11"
43
40
  },
44
41
  "scripts": {