@arrirpc/type-defs 0.78.0 → 0.79.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/dist/index.cjs CHANGED
@@ -19,7 +19,7 @@ const isHttpMethod = (input) => {
19
19
  const isRpcHttpMethod = (input) => {
20
20
  return isHttpMethod(input) && input !== "head";
21
21
  };
22
- const SCHEMA_VERSION = "0.0.7";
22
+ const SCHEMA_VERSION = "0.0.8";
23
23
  function isAppDefinition(input) {
24
24
  if (typeof input !== "object") {
25
25
  return false;
@@ -104,7 +104,7 @@ function createAppDefinition(input) {
104
104
  };
105
105
  }
106
106
  const result = {
107
- schemaVersion: "0.0.7",
107
+ schemaVersion: "0.0.8",
108
108
  ...input,
109
109
  procedures,
110
110
  definitions
@@ -118,14 +118,14 @@ function isObject(input) {
118
118
  function isSchema(input) {
119
119
  const allowedProperties = [
120
120
  "metadata",
121
- "nullable",
121
+ "isNullable",
122
+ "isStrict",
122
123
  "type",
123
124
  "enum",
124
125
  "elements",
125
126
  "values",
126
127
  "properties",
127
128
  "optionalProperties",
128
- "strict",
129
129
  "discriminator",
130
130
  "mapping",
131
131
  "ref",
package/dist/index.d.cts CHANGED
@@ -3,12 +3,13 @@ interface SchemaMetadata {
3
3
  id?: string;
4
4
  description?: string;
5
5
  isDeprecated?: boolean;
6
+ deprecatedNote?: string;
6
7
  }
7
8
  type Schema = SchemaFormEmpty | SchemaFormType | SchemaFormEnum | SchemaFormElements | SchemaFormProperties | SchemaFormValues | SchemaFormDiscriminator | SchemaFormRef;
8
9
  declare function isSchema(input: unknown): input is Schema;
9
10
  interface SchemaFormEmpty {
10
- nullable?: boolean;
11
11
  metadata?: SchemaMetadata;
12
+ isNullable?: boolean;
12
13
  }
13
14
  declare function isSchemaFormEmpty(input: unknown): input is SchemaFormEmpty;
14
15
  declare const TypeValues: readonly ["boolean", "float32", "float64", "int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "string", "timestamp"];
@@ -28,7 +29,7 @@ declare function isSchemaFormElements(input: unknown): input is SchemaFormElemen
28
29
  interface SchemaFormProperties extends SchemaFormEmpty {
29
30
  properties: Record<string, Schema>;
30
31
  optionalProperties?: Record<string, Schema>;
31
- strict?: boolean;
32
+ isStrict?: boolean;
32
33
  }
33
34
  declare function isSchemaFormProperties(input: unknown): input is SchemaFormProperties;
34
35
  interface SchemaFormValues extends SchemaFormEmpty {
@@ -50,7 +51,7 @@ type HttpMethod = (typeof HttpMethodValues)[number];
50
51
  type RpcHttpMethod = Exclude<HttpMethod, 'head'>;
51
52
  declare const isHttpMethod: (input: any) => input is HttpMethod;
52
53
  declare const isRpcHttpMethod: (input: any) => input is RpcHttpMethod;
53
- declare const SCHEMA_VERSION = "0.0.7";
54
+ declare const SCHEMA_VERSION = "0.0.8";
54
55
  interface AppDefinition {
55
56
  schemaVersion: typeof SCHEMA_VERSION;
56
57
  info?: {
@@ -73,6 +74,8 @@ interface RpcDefinitionBase<T = string> {
73
74
  response?: T;
74
75
  description?: string;
75
76
  isDeprecated?: boolean;
77
+ deprecatedNote?: string;
78
+ deprecatedSince?: string;
76
79
  }
77
80
  interface HttpRpcDefinition<T = string> extends RpcDefinitionBase<T> {
78
81
  transport: 'http';
package/dist/index.d.mts CHANGED
@@ -3,12 +3,13 @@ interface SchemaMetadata {
3
3
  id?: string;
4
4
  description?: string;
5
5
  isDeprecated?: boolean;
6
+ deprecatedNote?: string;
6
7
  }
7
8
  type Schema = SchemaFormEmpty | SchemaFormType | SchemaFormEnum | SchemaFormElements | SchemaFormProperties | SchemaFormValues | SchemaFormDiscriminator | SchemaFormRef;
8
9
  declare function isSchema(input: unknown): input is Schema;
9
10
  interface SchemaFormEmpty {
10
- nullable?: boolean;
11
11
  metadata?: SchemaMetadata;
12
+ isNullable?: boolean;
12
13
  }
13
14
  declare function isSchemaFormEmpty(input: unknown): input is SchemaFormEmpty;
14
15
  declare const TypeValues: readonly ["boolean", "float32", "float64", "int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "string", "timestamp"];
@@ -28,7 +29,7 @@ declare function isSchemaFormElements(input: unknown): input is SchemaFormElemen
28
29
  interface SchemaFormProperties extends SchemaFormEmpty {
29
30
  properties: Record<string, Schema>;
30
31
  optionalProperties?: Record<string, Schema>;
31
- strict?: boolean;
32
+ isStrict?: boolean;
32
33
  }
33
34
  declare function isSchemaFormProperties(input: unknown): input is SchemaFormProperties;
34
35
  interface SchemaFormValues extends SchemaFormEmpty {
@@ -50,7 +51,7 @@ type HttpMethod = (typeof HttpMethodValues)[number];
50
51
  type RpcHttpMethod = Exclude<HttpMethod, 'head'>;
51
52
  declare const isHttpMethod: (input: any) => input is HttpMethod;
52
53
  declare const isRpcHttpMethod: (input: any) => input is RpcHttpMethod;
53
- declare const SCHEMA_VERSION = "0.0.7";
54
+ declare const SCHEMA_VERSION = "0.0.8";
54
55
  interface AppDefinition {
55
56
  schemaVersion: typeof SCHEMA_VERSION;
56
57
  info?: {
@@ -73,6 +74,8 @@ interface RpcDefinitionBase<T = string> {
73
74
  response?: T;
74
75
  description?: string;
75
76
  isDeprecated?: boolean;
77
+ deprecatedNote?: string;
78
+ deprecatedSince?: string;
76
79
  }
77
80
  interface HttpRpcDefinition<T = string> extends RpcDefinitionBase<T> {
78
81
  transport: 'http';
package/dist/index.d.ts CHANGED
@@ -3,12 +3,13 @@ interface SchemaMetadata {
3
3
  id?: string;
4
4
  description?: string;
5
5
  isDeprecated?: boolean;
6
+ deprecatedNote?: string;
6
7
  }
7
8
  type Schema = SchemaFormEmpty | SchemaFormType | SchemaFormEnum | SchemaFormElements | SchemaFormProperties | SchemaFormValues | SchemaFormDiscriminator | SchemaFormRef;
8
9
  declare function isSchema(input: unknown): input is Schema;
9
10
  interface SchemaFormEmpty {
10
- nullable?: boolean;
11
11
  metadata?: SchemaMetadata;
12
+ isNullable?: boolean;
12
13
  }
13
14
  declare function isSchemaFormEmpty(input: unknown): input is SchemaFormEmpty;
14
15
  declare const TypeValues: readonly ["boolean", "float32", "float64", "int8", "uint8", "int16", "uint16", "int32", "uint32", "int64", "uint64", "string", "timestamp"];
@@ -28,7 +29,7 @@ declare function isSchemaFormElements(input: unknown): input is SchemaFormElemen
28
29
  interface SchemaFormProperties extends SchemaFormEmpty {
29
30
  properties: Record<string, Schema>;
30
31
  optionalProperties?: Record<string, Schema>;
31
- strict?: boolean;
32
+ isStrict?: boolean;
32
33
  }
33
34
  declare function isSchemaFormProperties(input: unknown): input is SchemaFormProperties;
34
35
  interface SchemaFormValues extends SchemaFormEmpty {
@@ -50,7 +51,7 @@ type HttpMethod = (typeof HttpMethodValues)[number];
50
51
  type RpcHttpMethod = Exclude<HttpMethod, 'head'>;
51
52
  declare const isHttpMethod: (input: any) => input is HttpMethod;
52
53
  declare const isRpcHttpMethod: (input: any) => input is RpcHttpMethod;
53
- declare const SCHEMA_VERSION = "0.0.7";
54
+ declare const SCHEMA_VERSION = "0.0.8";
54
55
  interface AppDefinition {
55
56
  schemaVersion: typeof SCHEMA_VERSION;
56
57
  info?: {
@@ -73,6 +74,8 @@ interface RpcDefinitionBase<T = string> {
73
74
  response?: T;
74
75
  description?: string;
75
76
  isDeprecated?: boolean;
77
+ deprecatedNote?: string;
78
+ deprecatedSince?: string;
76
79
  }
77
80
  interface HttpRpcDefinition<T = string> extends RpcDefinitionBase<T> {
78
81
  transport: 'http';
package/dist/index.mjs CHANGED
@@ -17,7 +17,7 @@ const isHttpMethod = (input) => {
17
17
  const isRpcHttpMethod = (input) => {
18
18
  return isHttpMethod(input) && input !== "head";
19
19
  };
20
- const SCHEMA_VERSION = "0.0.7";
20
+ const SCHEMA_VERSION = "0.0.8";
21
21
  function isAppDefinition(input) {
22
22
  if (typeof input !== "object") {
23
23
  return false;
@@ -102,7 +102,7 @@ function createAppDefinition(input) {
102
102
  };
103
103
  }
104
104
  const result = {
105
- schemaVersion: "0.0.7",
105
+ schemaVersion: "0.0.8",
106
106
  ...input,
107
107
  procedures,
108
108
  definitions
@@ -116,14 +116,14 @@ function isObject(input) {
116
116
  function isSchema(input) {
117
117
  const allowedProperties = [
118
118
  "metadata",
119
- "nullable",
119
+ "isNullable",
120
+ "isStrict",
120
121
  "type",
121
122
  "enum",
122
123
  "elements",
123
124
  "values",
124
125
  "properties",
125
126
  "optionalProperties",
126
- "strict",
127
127
  "discriminator",
128
128
  "mapping",
129
129
  "ref",
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "files": [
21
21
  "dist"
22
22
  ],
23
- "version": "0.78.0",
23
+ "version": "0.79.0",
24
24
  "dependencies": {
25
25
  "scule": "^1.3.0"
26
26
  }