@cossistant/types 0.0.7 → 0.0.8

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.
Files changed (137) hide show
  1. package/api/common.d.ts +47 -0
  2. package/api/common.d.ts.map +1 -0
  3. package/api/contact.d.ts +140 -0
  4. package/api/contact.d.ts.map +1 -0
  5. package/api/conversation.d.ts +95 -0
  6. package/api/conversation.d.ts.map +1 -0
  7. package/api/organization.d.ts +17 -0
  8. package/{dist/api → api}/organization.d.ts.map +1 -1
  9. package/api/timeline-item.d.ts +274 -0
  10. package/api/timeline-item.d.ts.map +1 -0
  11. package/api/upload.d.ts +103 -0
  12. package/api/upload.d.ts.map +1 -0
  13. package/api/user.d.ts +29 -0
  14. package/api/user.d.ts.map +1 -0
  15. package/api/visitor.d.ts +127 -0
  16. package/api/visitor.d.ts.map +1 -0
  17. package/api/website.d.ts +194 -0
  18. package/api/website.d.ts.map +1 -0
  19. package/api.d.ts +71 -0
  20. package/api.d.ts.map +1 -0
  21. package/checks.d.ts +189 -0
  22. package/checks.d.ts.map +1 -0
  23. package/coerce.d.ts +9 -0
  24. package/coerce.d.ts.map +1 -0
  25. package/core.d.ts +35 -0
  26. package/core.d.ts.map +1 -0
  27. package/errors.d.ts +121 -0
  28. package/errors.d.ts.map +1 -0
  29. package/errors2.d.ts +24 -0
  30. package/errors2.d.ts.map +1 -0
  31. package/index2.d.ts +4 -0
  32. package/index3.d.ts +1 -0
  33. package/metadata.d.ts +1 -0
  34. package/openapi-generator.d.ts +1 -0
  35. package/openapi-generator2.d.ts +1 -0
  36. package/openapi-generator3.d.ts +1 -0
  37. package/openapi30.d.ts +125 -0
  38. package/openapi30.d.ts.map +1 -0
  39. package/openapi31.d.ts +131 -0
  40. package/openapi31.d.ts.map +1 -0
  41. package/package.json +12 -16
  42. package/parse.d.ts +17 -0
  43. package/parse.d.ts.map +1 -0
  44. package/realtime-events.d.ts +138 -0
  45. package/realtime-events.d.ts.map +1 -0
  46. package/registries.d.ts +32 -0
  47. package/registries.d.ts.map +1 -0
  48. package/schemas.d.ts +46 -0
  49. package/schemas.d.ts.map +1 -0
  50. package/schemas2.d.ts +685 -0
  51. package/schemas2.d.ts.map +1 -0
  52. package/schemas3.d.ts +325 -0
  53. package/schemas3.d.ts.map +1 -0
  54. package/specification-extension.d.ts +9 -0
  55. package/specification-extension.d.ts.map +1 -0
  56. package/standard-schema.d.ts +59 -0
  57. package/standard-schema.d.ts.map +1 -0
  58. package/trpc/contact.d.ts +70 -0
  59. package/trpc/contact.d.ts.map +1 -0
  60. package/trpc/conversation.d.ts +141 -0
  61. package/trpc/conversation.d.ts.map +1 -0
  62. package/trpc/visitor.d.ts +55 -0
  63. package/trpc/visitor.d.ts.map +1 -0
  64. package/util.d.ts +41 -0
  65. package/util.d.ts.map +1 -0
  66. package/versions.d.ts +9 -0
  67. package/versions.d.ts.map +1 -0
  68. package/zod-extensions.d.ts +39 -0
  69. package/zod-extensions.d.ts.map +1 -0
  70. package/dist/api/common.d.ts +0 -44
  71. package/dist/api/common.d.ts.map +0 -1
  72. package/dist/api/contact.d.ts +0 -138
  73. package/dist/api/contact.d.ts.map +0 -1
  74. package/dist/api/conversation.d.ts +0 -91
  75. package/dist/api/conversation.d.ts.map +0 -1
  76. package/dist/api/organization.d.ts +0 -15
  77. package/dist/api/timeline-item.d.ts +0 -270
  78. package/dist/api/timeline-item.d.ts.map +0 -1
  79. package/dist/api/upload.d.ts +0 -100
  80. package/dist/api/upload.d.ts.map +0 -1
  81. package/dist/api/user.d.ts +0 -27
  82. package/dist/api/user.d.ts.map +0 -1
  83. package/dist/api/visitor.d.ts +0 -125
  84. package/dist/api/visitor.d.ts.map +0 -1
  85. package/dist/api/website.d.ts +0 -192
  86. package/dist/api/website.d.ts.map +0 -1
  87. package/dist/realtime-events.d.ts +0 -136
  88. package/dist/realtime-events.d.ts.map +0 -1
  89. package/dist/schemas.d.ts +0 -44
  90. package/dist/schemas.d.ts.map +0 -1
  91. package/dist/trpc/contact.d.ts +0 -68
  92. package/dist/trpc/contact.d.ts.map +0 -1
  93. package/dist/trpc/conversation.d.ts +0 -139
  94. package/dist/trpc/conversation.d.ts.map +0 -1
  95. package/dist/trpc/visitor.d.ts +0 -53
  96. package/dist/trpc/visitor.d.ts.map +0 -1
  97. /package/{dist/api → api}/common.js +0 -0
  98. /package/{dist/api → api}/common.js.map +0 -0
  99. /package/{dist/api → api}/contact.js +0 -0
  100. /package/{dist/api → api}/contact.js.map +0 -0
  101. /package/{dist/api → api}/conversation.js +0 -0
  102. /package/{dist/api → api}/conversation.js.map +0 -0
  103. /package/{dist/api → api}/index.d.ts +0 -0
  104. /package/{dist/api → api}/index.js +0 -0
  105. /package/{dist/api → api}/organization.js +0 -0
  106. /package/{dist/api → api}/organization.js.map +0 -0
  107. /package/{dist/api → api}/timeline-item.js +0 -0
  108. /package/{dist/api → api}/timeline-item.js.map +0 -0
  109. /package/{dist/api → api}/upload.js +0 -0
  110. /package/{dist/api → api}/upload.js.map +0 -0
  111. /package/{dist/api → api}/user.js +0 -0
  112. /package/{dist/api → api}/user.js.map +0 -0
  113. /package/{dist/api → api}/visitor.js +0 -0
  114. /package/{dist/api → api}/visitor.js.map +0 -0
  115. /package/{dist/api → api}/website.js +0 -0
  116. /package/{dist/api → api}/website.js.map +0 -0
  117. /package/{dist/enums.d.ts → enums.d.ts} +0 -0
  118. /package/{dist/enums.d.ts.map → enums.d.ts.map} +0 -0
  119. /package/{dist/enums.js → enums.js} +0 -0
  120. /package/{dist/enums.js.map → enums.js.map} +0 -0
  121. /package/{dist/index.d.ts → index.d.ts} +0 -0
  122. /package/{dist/index.d.ts.map → index.d.ts.map} +0 -0
  123. /package/{dist/index.js → index.js} +0 -0
  124. /package/{dist/presence.d.ts → presence.d.ts} +0 -0
  125. /package/{dist/presence.d.ts.map → presence.d.ts.map} +0 -0
  126. /package/{dist/presence.js → presence.js} +0 -0
  127. /package/{dist/presence.js.map → presence.js.map} +0 -0
  128. /package/{dist/realtime-events.js → realtime-events.js} +0 -0
  129. /package/{dist/realtime-events.js.map → realtime-events.js.map} +0 -0
  130. /package/{dist/schemas.js → schemas.js} +0 -0
  131. /package/{dist/schemas.js.map → schemas.js.map} +0 -0
  132. /package/{dist/trpc → trpc}/contact.js +0 -0
  133. /package/{dist/trpc → trpc}/contact.js.map +0 -0
  134. /package/{dist/trpc → trpc}/conversation.js +0 -0
  135. /package/{dist/trpc → trpc}/conversation.js.map +0 -0
  136. /package/{dist/trpc → trpc}/visitor.js +0 -0
  137. /package/{dist/trpc → trpc}/visitor.js.map +0 -0
package/index3.d.ts ADDED
@@ -0,0 +1 @@
1
+ import "./index2.js";
package/metadata.d.ts ADDED
@@ -0,0 +1 @@
1
+ import "./zod-extensions.js";
@@ -0,0 +1 @@
1
+ import "./zod-extensions.js";
@@ -0,0 +1 @@
1
+ import "./openapi-generator.js";
@@ -0,0 +1 @@
1
+ import "./openapi-generator.js";
package/openapi30.d.ts ADDED
@@ -0,0 +1,125 @@
1
+ import { ISpecificationExtension } from "./specification-extension.js";
2
+
3
+ //#region ../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi30.d.ts
4
+
5
+ interface ExternalDocumentationObject extends ISpecificationExtension {
6
+ description?: string;
7
+ url: string;
8
+ }
9
+ type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';
10
+ type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
11
+ interface BaseParameterObject extends ISpecificationExtension {
12
+ description?: string;
13
+ required?: boolean;
14
+ deprecated?: boolean;
15
+ allowEmptyValue?: boolean;
16
+ style?: ParameterStyle;
17
+ explode?: boolean;
18
+ allowReserved?: boolean;
19
+ schema?: SchemaObject | ReferenceObject;
20
+ examples?: {
21
+ [param: string]: ExampleObject | ReferenceObject;
22
+ };
23
+ example?: any;
24
+ content?: ContentObject;
25
+ }
26
+ interface ParameterObject extends BaseParameterObject {
27
+ name: string;
28
+ in: ParameterLocation;
29
+ }
30
+ interface ContentObject {
31
+ [mediatype: string]: MediaTypeObject;
32
+ }
33
+ interface MediaTypeObject extends ISpecificationExtension {
34
+ schema?: SchemaObject | ReferenceObject;
35
+ examples?: ExamplesObject;
36
+ example?: any;
37
+ encoding?: EncodingObject;
38
+ }
39
+ interface EncodingObject extends ISpecificationExtension {
40
+ [property: string]: EncodingPropertyObject | any;
41
+ }
42
+ interface EncodingPropertyObject {
43
+ contentType?: string;
44
+ headers?: {
45
+ [key: string]: HeaderObject | ReferenceObject;
46
+ };
47
+ style?: string;
48
+ explode?: boolean;
49
+ allowReserved?: boolean;
50
+ [key: string]: any;
51
+ }
52
+ interface ExampleObject {
53
+ summary?: string;
54
+ description?: string;
55
+ value?: any;
56
+ externalValue?: string;
57
+ [property: string]: any;
58
+ }
59
+ interface HeaderObject extends BaseParameterObject {
60
+ $ref?: string;
61
+ }
62
+ interface ExamplesObject {
63
+ [name: string]: ExampleObject | ReferenceObject;
64
+ }
65
+ interface ReferenceObject {
66
+ $ref: string;
67
+ }
68
+ type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';
69
+ type SchemaObjectFormat = 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;
70
+ interface SchemaObject extends ISpecificationExtension {
71
+ nullable?: boolean;
72
+ discriminator?: DiscriminatorObject;
73
+ readOnly?: boolean;
74
+ writeOnly?: boolean;
75
+ xml?: XmlObject;
76
+ externalDocs?: ExternalDocumentationObject;
77
+ example?: any;
78
+ examples?: any[];
79
+ deprecated?: boolean;
80
+ type?: SchemaObjectType | SchemaObjectType[];
81
+ format?: SchemaObjectFormat;
82
+ allOf?: (SchemaObject | ReferenceObject)[];
83
+ oneOf?: (SchemaObject | ReferenceObject)[];
84
+ anyOf?: (SchemaObject | ReferenceObject)[];
85
+ not?: SchemaObject | ReferenceObject;
86
+ items?: SchemaObject | ReferenceObject;
87
+ properties?: {
88
+ [propertyName: string]: SchemaObject | ReferenceObject;
89
+ };
90
+ additionalProperties?: SchemaObject | ReferenceObject | boolean;
91
+ description?: string;
92
+ default?: any;
93
+ title?: string;
94
+ multipleOf?: number;
95
+ maximum?: number;
96
+ exclusiveMaximum?: boolean;
97
+ minimum?: number;
98
+ exclusiveMinimum?: boolean;
99
+ maxLength?: number;
100
+ minLength?: number;
101
+ pattern?: string;
102
+ maxItems?: number;
103
+ minItems?: number;
104
+ uniqueItems?: boolean;
105
+ maxProperties?: number;
106
+ minProperties?: number;
107
+ required?: string[];
108
+ enum?: any[];
109
+ }
110
+ interface DiscriminatorObject {
111
+ propertyName: string;
112
+ mapping?: {
113
+ [key: string]: string;
114
+ };
115
+ }
116
+ interface XmlObject extends ISpecificationExtension {
117
+ name?: string;
118
+ namespace?: string;
119
+ prefix?: string;
120
+ attribute?: boolean;
121
+ wrapped?: boolean;
122
+ }
123
+ //#endregion
124
+ export { ParameterObject, SchemaObject };
125
+ //# sourceMappingURL=openapi30.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi30.d.ts","names":["ServerObject","ISpecificationExtension","SpecificationExtension","OpenAPIObject","InfoObject","PathsObject","ComponentsObject","SecurityRequirementObject","TagObject","ExternalDocumentationObject","ContactObject","LicenseObject","SchemaObject","ReferenceObject","ResponseObject","ParameterObject","ExampleObject","RequestBodyObject","HeaderObject","SecuritySchemeObject","LinkObject","CallbackObject","PathItemObject","PathObject","getPath","OperationObject","ResponsesObject","CallbacksObject","ParameterLocation","ParameterStyle","BaseParameterObject","ContentObject","MediaTypeObject","ExamplesObject","EncodingObject","EncodingPropertyObject","HeadersObject","LinksObject","LinkParametersObject","isReferenceObject","SchemaObjectType","SchemaObjectFormat","DiscriminatorObject","XmlObject","isSchemaObject","SchemasObject","SecuritySchemeType","OAuthFlowsObject","OAuthFlowObject","ScopesObject"],"sources":["../../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi30.d.ts"],"sourcesContent":["import { ServerObject } from './oas-common';\nimport { ISpecificationExtension } from './specification-extension';\nexport * from './oas-common';\nexport type { ISpecificationExtension, SpecificationExtension } from './specification-extension';\nexport interface OpenAPIObject extends ISpecificationExtension {\n openapi: string;\n info: InfoObject;\n servers?: ServerObject[];\n paths: PathsObject;\n components?: ComponentsObject;\n security?: SecurityRequirementObject[];\n tags?: TagObject[];\n externalDocs?: ExternalDocumentationObject;\n}\nexport interface InfoObject extends ISpecificationExtension {\n title: string;\n description?: string;\n termsOfService?: string;\n contact?: ContactObject;\n license?: LicenseObject;\n version: string;\n}\nexport interface ContactObject extends ISpecificationExtension {\n name?: string;\n url?: string;\n email?: string;\n}\nexport interface LicenseObject extends ISpecificationExtension {\n name: string;\n url?: string;\n}\nexport interface ComponentsObject extends ISpecificationExtension {\n schemas?: {\n [schema: string]: SchemaObject | ReferenceObject;\n };\n responses?: {\n [response: string]: ResponseObject | ReferenceObject;\n };\n parameters?: {\n [parameter: string]: ParameterObject | ReferenceObject;\n };\n examples?: {\n [example: string]: ExampleObject | ReferenceObject;\n };\n requestBodies?: {\n [request: string]: RequestBodyObject | ReferenceObject;\n };\n headers?: {\n [header: string]: HeaderObject | ReferenceObject;\n };\n securitySchemes?: {\n [securityScheme: string]: SecuritySchemeObject | ReferenceObject;\n };\n links?: {\n [link: string]: LinkObject | ReferenceObject;\n };\n callbacks?: {\n [callback: string]: CallbackObject | ReferenceObject;\n };\n}\nexport interface PathsObject extends ISpecificationExtension {\n [path: string]: PathItemObject;\n}\nexport type PathObject = PathsObject;\nexport declare function getPath(pathsObject: PathsObject, path: string): PathItemObject | undefined;\nexport interface PathItemObject extends ISpecificationExtension {\n $ref?: string;\n summary?: string;\n description?: string;\n get?: OperationObject;\n put?: OperationObject;\n post?: OperationObject;\n delete?: OperationObject;\n options?: OperationObject;\n head?: OperationObject;\n patch?: OperationObject;\n trace?: OperationObject;\n servers?: ServerObject[];\n parameters?: (ParameterObject | ReferenceObject)[];\n}\nexport interface OperationObject extends ISpecificationExtension {\n tags?: string[];\n summary?: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n operationId?: string;\n parameters?: (ParameterObject | ReferenceObject)[];\n requestBody?: RequestBodyObject | ReferenceObject;\n responses: ResponsesObject;\n callbacks?: CallbacksObject;\n deprecated?: boolean;\n security?: SecurityRequirementObject[];\n servers?: ServerObject[];\n}\nexport interface ExternalDocumentationObject extends ISpecificationExtension {\n description?: string;\n url: string;\n}\nexport type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';\nexport type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';\nexport interface BaseParameterObject extends ISpecificationExtension {\n description?: string;\n required?: boolean;\n deprecated?: boolean;\n allowEmptyValue?: boolean;\n style?: ParameterStyle;\n explode?: boolean;\n allowReserved?: boolean;\n schema?: SchemaObject | ReferenceObject;\n examples?: {\n [param: string]: ExampleObject | ReferenceObject;\n };\n example?: any;\n content?: ContentObject;\n}\nexport interface ParameterObject extends BaseParameterObject {\n name: string;\n in: ParameterLocation;\n}\nexport interface RequestBodyObject extends ISpecificationExtension {\n description?: string;\n content: ContentObject;\n required?: boolean;\n}\nexport interface ContentObject {\n [mediatype: string]: MediaTypeObject;\n}\nexport interface MediaTypeObject extends ISpecificationExtension {\n schema?: SchemaObject | ReferenceObject;\n examples?: ExamplesObject;\n example?: any;\n encoding?: EncodingObject;\n}\nexport interface EncodingObject extends ISpecificationExtension {\n [property: string]: EncodingPropertyObject | any;\n}\nexport interface EncodingPropertyObject {\n contentType?: string;\n headers?: {\n [key: string]: HeaderObject | ReferenceObject;\n };\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n [key: string]: any;\n}\nexport interface ResponsesObject extends ISpecificationExtension {\n default?: ResponseObject | ReferenceObject;\n [statuscode: string]: ResponseObject | ReferenceObject | any;\n}\nexport interface ResponseObject extends ISpecificationExtension {\n description: string;\n headers?: HeadersObject;\n content?: ContentObject;\n links?: LinksObject;\n}\nexport interface CallbacksObject extends ISpecificationExtension {\n [name: string]: CallbackObject | ReferenceObject | any;\n}\nexport interface CallbackObject extends ISpecificationExtension {\n [name: string]: PathItemObject | any;\n}\nexport interface HeadersObject {\n [name: string]: HeaderObject | ReferenceObject;\n}\nexport interface ExampleObject {\n summary?: string;\n description?: string;\n value?: any;\n externalValue?: string;\n [property: string]: any;\n}\nexport interface LinksObject {\n [name: string]: LinkObject | ReferenceObject;\n}\nexport interface LinkObject extends ISpecificationExtension {\n operationRef?: string;\n operationId?: string;\n parameters?: LinkParametersObject;\n requestBody?: any | string;\n description?: string;\n server?: ServerObject;\n [property: string]: any;\n}\nexport interface LinkParametersObject {\n [name: string]: any | string;\n}\nexport interface HeaderObject extends BaseParameterObject {\n $ref?: string;\n}\nexport interface TagObject extends ISpecificationExtension {\n name: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n [extension: string]: any;\n}\nexport interface ExamplesObject {\n [name: string]: ExampleObject | ReferenceObject;\n}\nexport interface ReferenceObject {\n $ref: string;\n}\nexport declare function isReferenceObject(obj: any): obj is ReferenceObject;\nexport type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';\nexport type SchemaObjectFormat = 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;\nexport interface SchemaObject extends ISpecificationExtension {\n nullable?: boolean;\n discriminator?: DiscriminatorObject;\n readOnly?: boolean;\n writeOnly?: boolean;\n xml?: XmlObject;\n externalDocs?: ExternalDocumentationObject;\n example?: any;\n examples?: any[];\n deprecated?: boolean;\n type?: SchemaObjectType | SchemaObjectType[];\n format?: SchemaObjectFormat;\n allOf?: (SchemaObject | ReferenceObject)[];\n oneOf?: (SchemaObject | ReferenceObject)[];\n anyOf?: (SchemaObject | ReferenceObject)[];\n not?: SchemaObject | ReferenceObject;\n items?: SchemaObject | ReferenceObject;\n properties?: {\n [propertyName: string]: SchemaObject | ReferenceObject;\n };\n additionalProperties?: SchemaObject | ReferenceObject | boolean;\n description?: string;\n default?: any;\n title?: string;\n multipleOf?: number;\n maximum?: number;\n exclusiveMaximum?: boolean;\n minimum?: number;\n exclusiveMinimum?: boolean;\n maxLength?: number;\n minLength?: number;\n pattern?: string;\n maxItems?: number;\n minItems?: number;\n uniqueItems?: boolean;\n maxProperties?: number;\n minProperties?: number;\n required?: string[];\n enum?: any[];\n}\nexport declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;\nexport interface SchemasObject {\n [schema: string]: SchemaObject;\n}\nexport interface DiscriminatorObject {\n propertyName: string;\n mapping?: {\n [key: string]: string;\n };\n}\nexport interface XmlObject extends ISpecificationExtension {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\nexport type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';\nexport interface SecuritySchemeObject extends ISpecificationExtension {\n type: SecuritySchemeType;\n description?: string;\n name?: string;\n in?: string;\n scheme?: string;\n bearerFormat?: string;\n flows?: OAuthFlowsObject;\n openIdConnectUrl?: string;\n}\nexport interface OAuthFlowsObject extends ISpecificationExtension {\n implicit?: OAuthFlowObject;\n password?: OAuthFlowObject;\n clientCredentials?: OAuthFlowObject;\n authorizationCode?: OAuthFlowObject;\n}\nexport interface OAuthFlowObject extends ISpecificationExtension {\n authorizationUrl?: string;\n tokenUrl?: string;\n refreshUrl?: string;\n scopes: ScopesObject;\n}\nexport interface ScopesObject extends ISpecificationExtension {\n [scope: string]: any;\n}\nexport interface SecurityRequirementObject {\n [name: string]: string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;UA8FiBS,2BAAAA,SAAoCR;;;;KAIzC2B,iBAAAA;KACAC,cAAAA;UACKC,mBAAAA,SAA4B7B;;;;;UAKjC4B;;;WAGCjB,eAAeC;;qBAEHG,gBAAgBH;;;YAG3BkB;;UAEGhB,eAAAA,SAAwBe;;MAEjCF;;UAOSG,aAAAA;uBACQC;;UAERA,eAAAA,SAAwB/B;WAC5BW,eAAeC;aACboB;;aAEAC;;UAEEA,cAAAA,SAAuBjC;sBAChBkC;;UAEPA,sBAAAA;;;mBAGMjB,eAAeL;;;;;;;UA0BrBG,aAAAA;;;;;;;UAsBAE,YAAAA,SAAqBY;;;UASrBG,cAAAA;kBACGjB,gBAAgBH;;UAEnBA,eAAAA;;;KAIL2B,gBAAAA;KACAC,kBAAAA;UACK7B,YAAAA,SAAqBX;;kBAElByC;;;QAGVC;iBACSlC;;;;SAIR+B,mBAAmBA;WACjBC;WACA7B,eAAeC;WACfD,eAAeC;WACfD,eAAeC;QAClBD,eAAeC;UACbD,eAAeC;;4BAEKD,eAAeC;;yBAEpBD,eAAeC;;;;;;;;;;;;;;;;;;;;UAwBzB6B,mBAAAA;;;;;;UAMAC,SAAAA,SAAkB1C"}
package/openapi31.d.ts ADDED
@@ -0,0 +1,131 @@
1
+ import { ISpecificationExtension } from "./specification-extension.js";
2
+
3
+ //#region ../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi31.d.ts
4
+
5
+ interface ExternalDocumentationObject extends ISpecificationExtension {
6
+ description?: string;
7
+ url: string;
8
+ }
9
+ type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';
10
+ type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';
11
+ interface BaseParameterObject extends ISpecificationExtension {
12
+ description?: string;
13
+ required?: boolean;
14
+ deprecated?: boolean;
15
+ allowEmptyValue?: boolean;
16
+ style?: ParameterStyle;
17
+ explode?: boolean;
18
+ allowReserved?: boolean;
19
+ schema?: SchemaObject | ReferenceObject;
20
+ examples?: {
21
+ [param: string]: ExampleObject | ReferenceObject;
22
+ };
23
+ example?: any;
24
+ content?: ContentObject;
25
+ }
26
+ interface ParameterObject extends BaseParameterObject {
27
+ name: string;
28
+ in: ParameterLocation;
29
+ }
30
+ interface ContentObject {
31
+ [mediatype: string]: MediaTypeObject;
32
+ }
33
+ interface MediaTypeObject extends ISpecificationExtension {
34
+ schema?: SchemaObject | ReferenceObject;
35
+ examples?: ExamplesObject;
36
+ example?: any;
37
+ encoding?: EncodingObject;
38
+ }
39
+ interface EncodingObject extends ISpecificationExtension {
40
+ [property: string]: EncodingPropertyObject | any;
41
+ }
42
+ interface EncodingPropertyObject {
43
+ contentType?: string;
44
+ headers?: {
45
+ [key: string]: HeaderObject | ReferenceObject;
46
+ };
47
+ style?: string;
48
+ explode?: boolean;
49
+ allowReserved?: boolean;
50
+ [key: string]: any;
51
+ }
52
+ interface ExampleObject {
53
+ summary?: string;
54
+ description?: string;
55
+ value?: any;
56
+ externalValue?: string;
57
+ [property: string]: any;
58
+ }
59
+ interface HeaderObject extends BaseParameterObject {
60
+ $ref?: string;
61
+ }
62
+ interface ExamplesObject {
63
+ [name: string]: ExampleObject | ReferenceObject;
64
+ }
65
+ interface ReferenceObject {
66
+ $ref: string;
67
+ summary?: string;
68
+ description?: string;
69
+ }
70
+ type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';
71
+ interface SchemaObject extends ISpecificationExtension {
72
+ $ref?: string;
73
+ discriminator?: DiscriminatorObject;
74
+ readOnly?: boolean;
75
+ writeOnly?: boolean;
76
+ xml?: XmlObject;
77
+ externalDocs?: ExternalDocumentationObject;
78
+ example?: any;
79
+ examples?: any[];
80
+ deprecated?: boolean;
81
+ type?: SchemaObjectType | SchemaObjectType[];
82
+ format?: 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;
83
+ allOf?: (SchemaObject | ReferenceObject)[];
84
+ oneOf?: (SchemaObject | ReferenceObject)[];
85
+ anyOf?: (SchemaObject | ReferenceObject)[];
86
+ not?: SchemaObject | ReferenceObject;
87
+ items?: SchemaObject | ReferenceObject;
88
+ properties?: {
89
+ [propertyName: string]: SchemaObject | ReferenceObject;
90
+ };
91
+ additionalProperties?: SchemaObject | ReferenceObject | boolean;
92
+ propertyNames?: SchemaObject | ReferenceObject;
93
+ description?: string;
94
+ default?: any;
95
+ title?: string;
96
+ multipleOf?: number;
97
+ maximum?: number;
98
+ const?: any;
99
+ exclusiveMaximum?: number;
100
+ minimum?: number;
101
+ exclusiveMinimum?: number;
102
+ maxLength?: number;
103
+ minLength?: number;
104
+ pattern?: string;
105
+ maxItems?: number;
106
+ minItems?: number;
107
+ uniqueItems?: boolean;
108
+ maxProperties?: number;
109
+ minProperties?: number;
110
+ required?: string[];
111
+ enum?: any[];
112
+ prefixItems?: (SchemaObject | ReferenceObject)[];
113
+ contentMediaType?: string;
114
+ contentEncoding?: string;
115
+ }
116
+ interface DiscriminatorObject {
117
+ propertyName: string;
118
+ mapping?: {
119
+ [key: string]: string;
120
+ };
121
+ }
122
+ interface XmlObject extends ISpecificationExtension {
123
+ name?: string;
124
+ namespace?: string;
125
+ prefix?: string;
126
+ attribute?: boolean;
127
+ wrapped?: boolean;
128
+ }
129
+ //#endregion
130
+ export { ParameterObject, SchemaObject };
131
+ //# sourceMappingURL=openapi31.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi31.d.ts","names":["ServerObject","ISpecificationExtension","SpecificationExtension","OpenAPIObject","InfoObject","PathsObject","ComponentsObject","SecurityRequirementObject","TagObject","ExternalDocumentationObject","ContactObject","LicenseObject","SchemaObject","ReferenceObject","ResponseObject","ParameterObject","ExampleObject","RequestBodyObject","HeaderObject","SecuritySchemeObject","LinkObject","CallbackObject","PathItemObject","PathObject","getPath","OperationObject","ResponsesObject","CallbacksObject","ParameterLocation","ParameterStyle","BaseParameterObject","ContentObject","MediaTypeObject","ExamplesObject","EncodingObject","EncodingPropertyObject","HeadersObject","LinksObject","LinkParametersObject","isReferenceObject","SchemaObjectType","DiscriminatorObject","XmlObject","isSchemaObject","SchemasObject","SecuritySchemeType","OAuthFlowsObject","OAuthFlowObject","ScopesObject"],"sources":["../../../node_modules/.bun/openapi3-ts@4.5.0/node_modules/openapi3-ts/dist/model/openapi31.d.ts"],"sourcesContent":["import { ServerObject } from './oas-common';\nimport { ISpecificationExtension } from './specification-extension';\nexport * from './oas-common';\nexport type { ISpecificationExtension, SpecificationExtension } from './specification-extension';\nexport interface OpenAPIObject extends ISpecificationExtension {\n openapi: string;\n info: InfoObject;\n servers?: ServerObject[];\n paths?: PathsObject;\n components?: ComponentsObject;\n security?: SecurityRequirementObject[];\n tags?: TagObject[];\n externalDocs?: ExternalDocumentationObject;\n webhooks?: PathsObject;\n}\nexport interface InfoObject extends ISpecificationExtension {\n title: string;\n description?: string;\n termsOfService?: string;\n contact?: ContactObject;\n license?: LicenseObject;\n version: string;\n}\nexport interface ContactObject extends ISpecificationExtension {\n name?: string;\n url?: string;\n email?: string;\n}\nexport interface LicenseObject extends ISpecificationExtension {\n name: string;\n identifier?: string;\n url?: string;\n}\nexport interface ComponentsObject extends ISpecificationExtension {\n schemas?: {\n [schema: string]: SchemaObject | ReferenceObject;\n };\n responses?: {\n [response: string]: ResponseObject | ReferenceObject;\n };\n parameters?: {\n [parameter: string]: ParameterObject | ReferenceObject;\n };\n examples?: {\n [example: string]: ExampleObject | ReferenceObject;\n };\n requestBodies?: {\n [request: string]: RequestBodyObject | ReferenceObject;\n };\n headers?: {\n [header: string]: HeaderObject | ReferenceObject;\n };\n securitySchemes?: {\n [securityScheme: string]: SecuritySchemeObject | ReferenceObject;\n };\n links?: {\n [link: string]: LinkObject | ReferenceObject;\n };\n callbacks?: {\n [callback: string]: CallbackObject | ReferenceObject;\n };\n pathItems?: {\n [pathItem: string]: PathItemObject | ReferenceObject;\n };\n}\nexport interface PathsObject extends ISpecificationExtension {\n [path: string]: PathItemObject;\n}\nexport type PathObject = PathsObject;\nexport declare function getPath(pathsObject: PathsObject | undefined, path: string): PathItemObject | undefined;\nexport interface PathItemObject extends ISpecificationExtension {\n $ref?: string;\n summary?: string;\n description?: string;\n get?: OperationObject;\n put?: OperationObject;\n post?: OperationObject;\n delete?: OperationObject;\n options?: OperationObject;\n head?: OperationObject;\n patch?: OperationObject;\n trace?: OperationObject;\n servers?: ServerObject[];\n parameters?: (ParameterObject | ReferenceObject)[];\n}\nexport interface OperationObject extends ISpecificationExtension {\n tags?: string[];\n summary?: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n operationId?: string;\n parameters?: (ParameterObject | ReferenceObject)[];\n requestBody?: RequestBodyObject | ReferenceObject;\n responses?: ResponsesObject;\n callbacks?: CallbacksObject;\n deprecated?: boolean;\n security?: SecurityRequirementObject[];\n servers?: ServerObject[];\n}\nexport interface ExternalDocumentationObject extends ISpecificationExtension {\n description?: string;\n url: string;\n}\nexport type ParameterLocation = 'query' | 'header' | 'path' | 'cookie';\nexport type ParameterStyle = 'matrix' | 'label' | 'form' | 'simple' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject';\nexport interface BaseParameterObject extends ISpecificationExtension {\n description?: string;\n required?: boolean;\n deprecated?: boolean;\n allowEmptyValue?: boolean;\n style?: ParameterStyle;\n explode?: boolean;\n allowReserved?: boolean;\n schema?: SchemaObject | ReferenceObject;\n examples?: {\n [param: string]: ExampleObject | ReferenceObject;\n };\n example?: any;\n content?: ContentObject;\n}\nexport interface ParameterObject extends BaseParameterObject {\n name: string;\n in: ParameterLocation;\n}\nexport interface RequestBodyObject extends ISpecificationExtension {\n description?: string;\n content: ContentObject;\n required?: boolean;\n}\nexport interface ContentObject {\n [mediatype: string]: MediaTypeObject;\n}\nexport interface MediaTypeObject extends ISpecificationExtension {\n schema?: SchemaObject | ReferenceObject;\n examples?: ExamplesObject;\n example?: any;\n encoding?: EncodingObject;\n}\nexport interface EncodingObject extends ISpecificationExtension {\n [property: string]: EncodingPropertyObject | any;\n}\nexport interface EncodingPropertyObject {\n contentType?: string;\n headers?: {\n [key: string]: HeaderObject | ReferenceObject;\n };\n style?: string;\n explode?: boolean;\n allowReserved?: boolean;\n [key: string]: any;\n}\nexport interface ResponsesObject extends ISpecificationExtension {\n default?: ResponseObject | ReferenceObject;\n [statuscode: string]: ResponseObject | ReferenceObject | any;\n}\nexport interface ResponseObject extends ISpecificationExtension {\n description: string;\n headers?: HeadersObject;\n content?: ContentObject;\n links?: LinksObject;\n}\nexport interface CallbacksObject extends ISpecificationExtension {\n [name: string]: CallbackObject | ReferenceObject | any;\n}\nexport interface CallbackObject extends ISpecificationExtension {\n [name: string]: PathItemObject | any;\n}\nexport interface HeadersObject {\n [name: string]: HeaderObject | ReferenceObject;\n}\nexport interface ExampleObject {\n summary?: string;\n description?: string;\n value?: any;\n externalValue?: string;\n [property: string]: any;\n}\nexport interface LinksObject {\n [name: string]: LinkObject | ReferenceObject;\n}\nexport interface LinkObject extends ISpecificationExtension {\n operationRef?: string;\n operationId?: string;\n parameters?: LinkParametersObject;\n requestBody?: any | string;\n description?: string;\n server?: ServerObject;\n [property: string]: any;\n}\nexport interface LinkParametersObject {\n [name: string]: any | string;\n}\nexport interface HeaderObject extends BaseParameterObject {\n $ref?: string;\n}\nexport interface TagObject extends ISpecificationExtension {\n name: string;\n description?: string;\n externalDocs?: ExternalDocumentationObject;\n [extension: string]: any;\n}\nexport interface ExamplesObject {\n [name: string]: ExampleObject | ReferenceObject;\n}\nexport interface ReferenceObject {\n $ref: string;\n summary?: string;\n description?: string;\n}\nexport declare function isReferenceObject(obj: any): obj is ReferenceObject;\nexport type SchemaObjectType = 'integer' | 'number' | 'string' | 'boolean' | 'object' | 'null' | 'array';\nexport interface SchemaObject extends ISpecificationExtension {\n $ref?: string;\n discriminator?: DiscriminatorObject;\n readOnly?: boolean;\n writeOnly?: boolean;\n xml?: XmlObject;\n externalDocs?: ExternalDocumentationObject;\n example?: any;\n examples?: any[];\n deprecated?: boolean;\n type?: SchemaObjectType | SchemaObjectType[];\n format?: 'int32' | 'int64' | 'float' | 'double' | 'byte' | 'binary' | 'date' | 'date-time' | 'password' | string;\n allOf?: (SchemaObject | ReferenceObject)[];\n oneOf?: (SchemaObject | ReferenceObject)[];\n anyOf?: (SchemaObject | ReferenceObject)[];\n not?: SchemaObject | ReferenceObject;\n items?: SchemaObject | ReferenceObject;\n properties?: {\n [propertyName: string]: SchemaObject | ReferenceObject;\n };\n additionalProperties?: SchemaObject | ReferenceObject | boolean;\n propertyNames?: SchemaObject | ReferenceObject;\n description?: string;\n default?: any;\n title?: string;\n multipleOf?: number;\n maximum?: number;\n const?: any;\n exclusiveMaximum?: number;\n minimum?: number;\n exclusiveMinimum?: number;\n maxLength?: number;\n minLength?: number;\n pattern?: string;\n maxItems?: number;\n minItems?: number;\n uniqueItems?: boolean;\n maxProperties?: number;\n minProperties?: number;\n required?: string[];\n enum?: any[];\n prefixItems?: (SchemaObject | ReferenceObject)[];\n contentMediaType?: string;\n contentEncoding?: string;\n}\nexport declare function isSchemaObject(schema: SchemaObject | ReferenceObject): schema is SchemaObject;\nexport interface SchemasObject {\n [schema: string]: SchemaObject;\n}\nexport interface DiscriminatorObject {\n propertyName: string;\n mapping?: {\n [key: string]: string;\n };\n}\nexport interface XmlObject extends ISpecificationExtension {\n name?: string;\n namespace?: string;\n prefix?: string;\n attribute?: boolean;\n wrapped?: boolean;\n}\nexport type SecuritySchemeType = 'apiKey' | 'http' | 'oauth2' | 'openIdConnect';\nexport interface SecuritySchemeObject extends ISpecificationExtension {\n type: SecuritySchemeType;\n description?: string;\n name?: string;\n in?: string;\n scheme?: string;\n bearerFormat?: string;\n flows?: OAuthFlowsObject;\n openIdConnectUrl?: string;\n}\nexport interface OAuthFlowsObject extends ISpecificationExtension {\n implicit?: OAuthFlowObject;\n password?: OAuthFlowObject;\n clientCredentials?: OAuthFlowObject;\n authorizationCode?: OAuthFlowObject;\n}\nexport interface OAuthFlowObject extends ISpecificationExtension {\n authorizationUrl?: string;\n tokenUrl?: string;\n refreshUrl?: string;\n scopes: ScopesObject;\n}\nexport interface ScopesObject extends ISpecificationExtension {\n [scope: string]: any;\n}\nexport interface SecurityRequirementObject {\n [name: string]: string[];\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;UAmGiBS,2BAAAA,SAAoCR;;;;KAIzC2B,iBAAAA;KACAC,cAAAA;UACKC,mBAAAA,SAA4B7B;;;;;UAKjC4B;;;WAGCjB,eAAeC;;qBAEHG,gBAAgBH;;;YAG3BkB;;UAEGhB,eAAAA,SAAwBe;;MAEjCF;;UAOSG,aAAAA;uBACQC;;UAERA,eAAAA,SAAwB/B;WAC5BW,eAAeC;aACboB;;aAEAC;;UAEEA,cAAAA,SAAuBjC;sBAChBkC;;UAEPA,sBAAAA;;;mBAGMjB,eAAeL;;;;;;;UA0BrBG,aAAAA;;;;;;;UAsBAE,YAAAA,SAAqBY;;;UASrBG,cAAAA;kBACGjB,gBAAgBH;;UAEnBA,eAAAA;;;;;KAML2B,gBAAAA;UACK5B,YAAAA,SAAqBX;;kBAElBwC;;;QAGVC;iBACSjC;;;;SAIR+B,mBAAmBA;;WAEjB5B,eAAeC;WACfD,eAAeC;WACfD,eAAeC;QAClBD,eAAeC;UACbD,eAAeC;;4BAEKD,eAAeC;;yBAEpBD,eAAeC;kBACtBD,eAAeC;;;;;;;;;;;;;;;;;;;;iBAoBhBD,eAAeC;;;;UAQjB4B,mBAAAA;;;;;;UAMAC,SAAAA,SAAkBzC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cossistant/types",
3
3
  "type": "module",
4
- "version": "0.0.7",
4
+ "version": "0.0.8",
5
5
  "private": false,
6
6
  "author": "Cossistant Team",
7
7
  "description": "Shared TypeScript types for Cossistant packages",
@@ -13,28 +13,24 @@
13
13
  ],
14
14
  "license": "MIT",
15
15
  "exports": {
16
- ".": "./dist/index.d.ts",
17
- "./*": "./dist/*.d.ts"
16
+ ".": {
17
+ "types": "./index.d.ts",
18
+ "import": "./index.js"
19
+ },
20
+ "./*": {
21
+ "types": "./*.d.ts",
22
+ "import": "./*.js"
23
+ }
18
24
  },
19
- "main": "./dist/index.d.ts",
20
- "types": "./dist/index.d.ts",
25
+ "main": "./index.js",
26
+ "types": "./index.d.ts",
21
27
  "sideEffects": false,
22
- "files": [
23
- "dist"
24
- ],
25
28
  "publishConfig": {
26
29
  "access": "public"
27
30
  },
28
- "devDependencies": {
29
- "@cossistant/typescript-config": "workspace:*"
30
- },
31
31
  "dependencies": {
32
32
  "zod": "^4.1.8",
33
33
  "@hono/zod-openapi": "^1.1.0"
34
34
  },
35
- "scripts": {
36
- "build": "tsdown",
37
- "lint": "biome check .",
38
- "check-types": "tsc --noEmit --project tsconfig.json"
39
- }
35
+ "module": "./index.js"
40
36
  }
package/parse.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { ZodError } from "./errors2.js";
2
+
3
+ //#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/classic/parse.d.cts
4
+ type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
5
+ type ZodSafeParseSuccess<T> = {
6
+ success: true;
7
+ data: T;
8
+ error?: never;
9
+ };
10
+ type ZodSafeParseError<T> = {
11
+ success: false;
12
+ data?: never;
13
+ error: ZodError<T>;
14
+ };
15
+ //#endregion
16
+ export { ZodSafeParseResult };
17
+ //# sourceMappingURL=parse.d.ts.map
package/parse.d.ts.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parse.d.ts","names":["core","ZodError","ZodSafeParseResult","T","ZodSafeParseSuccess","ZodSafeParseError","parse","$ZodType","$ZodIssue","ParseContext","util","AnyFunc","$ZodErrorClass","output","parseAsync","Promise","safeParse","safeParseAsync","encode","input","decode","encodeAsync","decodeAsync","safeEncode","safeDecode","safeEncodeAsync","safeDecodeAsync"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/classic/parse.d.cts"],"sourcesContent":["import * as core from \"../core/index.cjs\";\nimport { type ZodError } from \"./errors.cjs\";\nexport type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;\nexport type ZodSafeParseSuccess<T> = {\n success: true;\n data: T;\n error?: never;\n};\nexport type ZodSafeParseError<T> = {\n success: false;\n data?: never;\n error: ZodError<T>;\n};\nexport declare const parse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {\n callee?: core.util.AnyFunc;\n Err?: core.$ZodErrorClass;\n}) => core.output<T>;\nexport declare const parseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>, _params?: {\n callee?: core.util.AnyFunc;\n Err?: core.$ZodErrorClass;\n}) => Promise<core.output<T>>;\nexport declare const safeParse: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;\nexport declare const safeParseAsync: <T extends core.$ZodType>(schema: T, value: unknown, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;\nexport declare const encode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.input<T>;\nexport declare const decode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => core.output<T>;\nexport declare const encodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.input<T>>;\nexport declare const decodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<core.output<T>>;\nexport declare const safeEncode: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.input<T>>;\nexport declare const safeDecode: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => ZodSafeParseResult<core.output<T>>;\nexport declare const safeEncodeAsync: <T extends core.$ZodType>(schema: T, value: core.output<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.input<T>>>;\nexport declare const safeDecodeAsync: <T extends core.$ZodType>(schema: T, value: core.input<T>, _ctx?: core.ParseContext<core.$ZodIssue>) => Promise<ZodSafeParseResult<core.output<T>>>;\n"],"x_google_ignoreList":[0],"mappings":";;;KAEYE,wBAAwBE,oBAAoBD,KAAKE,kBAAkBF;AAAnED,KACAE,mBADkB,CAAAD,CAAAA,CAAAA,GAAAA;EAA0BA,OAAAA,EAAAA,IAAAA;EAApBC,IAAAA,EAG1BD,CAH0BC;EAA2CD,KAAAA,CAAAA,EAAAA,KAAAA;CAAlBE;AAAiB,KAMlEA,iBANkE,CAAA,CAAA,CAAA,GAAA;EAClED,OAAAA,EAAAA,KAAAA;EAKAC,IAAAA,CAAAA,EAAAA,KAAAA;SAGDJ,SAASE"}
@@ -0,0 +1,138 @@
1
+ import { $strip } from "./schemas2.js";
2
+ import { output } from "./core.js";
3
+ import { ZodArray, ZodBoolean, ZodEnum, ZodNullable, ZodObject, ZodOptional, ZodString, ZodUnknown } from "./schemas3.js";
4
+
5
+ //#region src/realtime-events.d.ts
6
+ declare const baseRealtimeEvent: ZodObject<{
7
+ websiteId: ZodString;
8
+ organizationId: ZodString;
9
+ visitorId: ZodNullable<ZodString>;
10
+ userId: ZodNullable<ZodString>;
11
+ }, $strip>;
12
+ /**
13
+ * Central event system for real-time communication
14
+ * All WebSocket and Redis Pub/Sub events are defined here
15
+ */
16
+ declare const realtimeSchema: {
17
+ readonly userConnected: ZodObject<{
18
+ websiteId: ZodString;
19
+ organizationId: ZodString;
20
+ visitorId: ZodNullable<ZodString>;
21
+ userId: ZodNullable<ZodString>;
22
+ connectionId: ZodString;
23
+ }, $strip>;
24
+ readonly userDisconnected: ZodObject<{
25
+ websiteId: ZodString;
26
+ organizationId: ZodString;
27
+ visitorId: ZodNullable<ZodString>;
28
+ userId: ZodNullable<ZodString>;
29
+ connectionId: ZodString;
30
+ }, $strip>;
31
+ readonly visitorConnected: ZodObject<{
32
+ websiteId: ZodString;
33
+ organizationId: ZodString;
34
+ userId: ZodNullable<ZodString>;
35
+ visitorId: ZodString;
36
+ connectionId: ZodString;
37
+ }, $strip>;
38
+ readonly visitorDisconnected: ZodObject<{
39
+ websiteId: ZodString;
40
+ organizationId: ZodString;
41
+ userId: ZodNullable<ZodString>;
42
+ visitorId: ZodString;
43
+ connectionId: ZodString;
44
+ }, $strip>;
45
+ readonly userPresenceUpdate: ZodObject<{
46
+ websiteId: ZodString;
47
+ organizationId: ZodString;
48
+ visitorId: ZodNullable<ZodString>;
49
+ userId: ZodString;
50
+ status: ZodEnum<{
51
+ online: "online";
52
+ away: "away";
53
+ offline: "offline";
54
+ }>;
55
+ lastSeen: ZodString;
56
+ }, $strip>;
57
+ readonly conversationSeen: ZodObject<{
58
+ websiteId: ZodString;
59
+ organizationId: ZodString;
60
+ visitorId: ZodNullable<ZodString>;
61
+ userId: ZodNullable<ZodString>;
62
+ conversationId: ZodString;
63
+ aiAgentId: ZodNullable<ZodString>;
64
+ lastSeenAt: ZodString;
65
+ }, $strip>;
66
+ readonly conversationTyping: ZodObject<{
67
+ websiteId: ZodString;
68
+ organizationId: ZodString;
69
+ visitorId: ZodNullable<ZodString>;
70
+ userId: ZodNullable<ZodString>;
71
+ conversationId: ZodString;
72
+ aiAgentId: ZodNullable<ZodString>;
73
+ isTyping: ZodBoolean;
74
+ visitorPreview: ZodOptional<ZodNullable<ZodString>>;
75
+ }, $strip>;
76
+ readonly timelineItemCreated: ZodObject<{
77
+ websiteId: ZodString;
78
+ organizationId: ZodString;
79
+ visitorId: ZodNullable<ZodString>;
80
+ userId: ZodNullable<ZodString>;
81
+ conversationId: ZodString;
82
+ item: ZodObject<{
83
+ id: ZodString;
84
+ conversationId: ZodString;
85
+ organizationId: ZodString;
86
+ visibility: ZodEnum<{
87
+ [x: string]: any;
88
+ }>;
89
+ type: ZodEnum<{
90
+ [x: string]: any;
91
+ }>;
92
+ text: ZodNullable<ZodString>;
93
+ parts: ZodArray<ZodUnknown>;
94
+ userId: ZodNullable<ZodString>;
95
+ visitorId: ZodNullable<ZodString>;
96
+ aiAgentId: ZodNullable<ZodString>;
97
+ createdAt: ZodString;
98
+ deletedAt: ZodNullable<ZodString>;
99
+ tool: ZodOptional<ZodNullable<ZodString>>;
100
+ }, $strip>;
101
+ }, $strip>;
102
+ readonly conversationCreated: ZodObject<{
103
+ websiteId: ZodString;
104
+ organizationId: ZodString;
105
+ visitorId: ZodNullable<ZodString>;
106
+ userId: ZodNullable<ZodString>;
107
+ conversationId: ZodString;
108
+ conversation: any;
109
+ header: any;
110
+ }, $strip>;
111
+ readonly visitorIdentified: ZodObject<{
112
+ websiteId: ZodString;
113
+ organizationId: ZodString;
114
+ userId: ZodNullable<ZodString>;
115
+ visitorId: ZodString;
116
+ visitor: any;
117
+ }, $strip>;
118
+ };
119
+ type RealtimeEventType = keyof typeof realtimeSchema;
120
+ type RealtimeEventPayload<T extends RealtimeEventType> = output<(typeof realtimeSchema)[T]>;
121
+ type RealtimeEvent<T extends RealtimeEventType> = {
122
+ type: T;
123
+ payload: RealtimeEventPayload<T>;
124
+ };
125
+ type AnyRealtimeEvent = { [K in RealtimeEventType]: RealtimeEvent<K> }[RealtimeEventType];
126
+ type RealtimeEventData<T extends RealtimeEventType> = RealtimeEventPayload<T>;
127
+ /**
128
+ * Validates an event against its schema
129
+ */
130
+ declare function validateRealtimeEvent<T extends RealtimeEventType>(type: T, data: unknown): RealtimeEventPayload<T>;
131
+ /**
132
+ * Type guard to check if a string is a valid event type
133
+ */
134
+ declare function isValidEventType(type: unknown): type is RealtimeEventType;
135
+ declare function getEventPayload<T extends RealtimeEventType>(event: RealtimeEvent<T>): RealtimeEventPayload<T>;
136
+ //#endregion
137
+ export { AnyRealtimeEvent, RealtimeEvent, RealtimeEventData, RealtimeEventPayload, RealtimeEventType, baseRealtimeEvent, getEventPayload, isValidEventType, realtimeSchema, validateRealtimeEvent };
138
+ //# sourceMappingURL=realtime-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime-events.d.ts","names":[],"sources":["../src/realtime-events.ts"],"sourcesContent":[],"mappings":";;;;;cAMa,mBAAiB;;;;EAAjB,MAAA,aAKX,UAAA,CAAA;;;;;;cAMW;;IAXiB,SAAA,WAAA;IAAA,cAAA,WAAA;IAWjB,SAAA,aAiEH,UAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEE,iBAAA,gBAAiC;KAEjC,+BAA+B,qBAAqB,eACvD,gBAAgB;KAGb,wBAAwB;QAC7B;WACG,qBAAqB;;KAGnB,gBAAA,WACL,oBAAoB,cAAc,KACvC;KAEU,4BAA4B,qBACvC,qBAAqB;;;;iBAKN,gCAAgC,yBACzC,mBAEJ,qBAAqB;;;;iBAQR,gBAAA,yBAAyC;iBAIzC,0BAA0B,0BAClC,cAAc,KACnB,qBAAqB"}
@@ -0,0 +1,32 @@
1
+ import { $ZodType } from "./schemas2.js";
2
+ import { input, output } from "./core.js";
3
+
4
+ //#region ../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/registries.d.cts
5
+ declare const $output: unique symbol;
6
+ type $output = typeof $output;
7
+ declare const $input: unique symbol;
8
+ type $input = typeof $input;
9
+ type $replace<Meta, S extends $ZodType> = Meta extends $output ? output<S> : Meta extends $input ? input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends ((...args: infer P) => infer R) ? (...args: { [K in keyof P]: $replace<P[K], S> }) => $replace<R, S> : Meta extends object ? { [K in keyof Meta]: $replace<Meta[K], S> } : Meta;
10
+ type MetadataType = object | undefined;
11
+ declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {
12
+ _meta: Meta;
13
+ _schema: Schema;
14
+ _map: WeakMap<Schema, $replace<Meta, Schema>>;
15
+ _idmap: Map<string, Schema>;
16
+ add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;
17
+ clear(): this;
18
+ remove(schema: Schema): this;
19
+ get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;
20
+ has(schema: Schema): boolean;
21
+ }
22
+ interface JSONSchemaMeta {
23
+ id?: string | undefined;
24
+ title?: string | undefined;
25
+ description?: string | undefined;
26
+ deprecated?: boolean | undefined;
27
+ [k: string]: unknown;
28
+ }
29
+ interface GlobalMeta extends JSONSchemaMeta {}
30
+ //#endregion
31
+ export { $ZodRegistry, $replace, GlobalMeta };
32
+ //# sourceMappingURL=registries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registries.d.ts","names":["core","$ZodType","$output","$input","$replace","Meta","S","output","input","M","P","K","R","MetadataType","$ZodRegistry","Schema","WeakMap","Map","JSONSchemaMeta","GlobalMeta","registry","T","globalRegistry"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/registries.d.cts"],"sourcesContent":["import type * as core from \"./core.cjs\";\nimport type { $ZodType } from \"./schemas.cjs\";\nexport declare const $output: unique symbol;\nexport type $output = typeof $output;\nexport declare const $input: unique symbol;\nexport type $input = typeof $input;\nexport type $replace<Meta, S extends $ZodType> = Meta extends $output ? core.output<S> : Meta extends $input ? core.input<S> : Meta extends (infer M)[] ? $replace<M, S>[] : Meta extends (...args: infer P) => infer R ? (...args: {\n [K in keyof P]: $replace<P[K], S>;\n}) => $replace<R, S> : Meta extends object ? {\n [K in keyof Meta]: $replace<Meta[K], S>;\n} : Meta;\ntype MetadataType = object | undefined;\nexport declare class $ZodRegistry<Meta extends MetadataType = MetadataType, Schema extends $ZodType = $ZodType> {\n _meta: Meta;\n _schema: Schema;\n _map: WeakMap<Schema, $replace<Meta, Schema>>;\n _idmap: Map<string, Schema>;\n add<S extends Schema>(schema: S, ..._meta: undefined extends Meta ? [$replace<Meta, S>?] : [$replace<Meta, S>]): this;\n clear(): this;\n remove(schema: Schema): this;\n get<S extends Schema>(schema: S): $replace<Meta, S> | undefined;\n has(schema: Schema): boolean;\n}\nexport interface JSONSchemaMeta {\n id?: string | undefined;\n title?: string | undefined;\n description?: string | undefined;\n deprecated?: boolean | undefined;\n [k: string]: unknown;\n}\nexport interface GlobalMeta extends JSONSchemaMeta {\n}\nexport declare function registry<T extends MetadataType = MetadataType, S extends $ZodType = $ZodType>(): $ZodRegistry<T, S>;\nexport declare const globalRegistry: $ZodRegistry<GlobalMeta>;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;cAEqBE;KACTA,OAAAA,UAAiBA;AADRA,cAEAC,MAFsB,EAAA,OAAA,MAAA;AAC/BD,KAEAC,MAAAA,GAFO,OAESA,MAFCD;AACRC,KAETC,QAF8B,CAAA,IAAA,EAAA,UAELH,QAFK,CAAA,GAEOI,IAFP,SAEoBH,OAFpB,GAE8BF,MAF9B,CAE0CM,CAF1C,CAAA,GAE+CD,IAF/C,SAE4DF,MAF5D,GAEqEH,KAFrE,CAEgFM,CAFhF,CAAA,GAEqFD,IAFrF,SAAA,CAAA,KAAA,EAAA,CAAA,EAAA,GAEgHD,QAFhH,CAEyHK,CAFzH,EAE4HH,CAF5H,CAAA,EAAA,GAEmID,IAFnI,UAAA,CAAA,GAAA,IAAA,EAAA,KAAA,EAAA,EAAA,GAAA,KAAA,EAAA,IAAA,CAAA,GAAA,IAAA,EAAA,QAC9BF,MAEIO,CAFE,GAEEN,QAFQD,CAECO,CAFDP,CAEGQ,CAFHR,CAAAA,EAEOG,CAFD,CAAA,EAClC,EAAA,GAEMF,QAFMA,CAEGQ,CAFK,EAEFN,CAFE,CAAA,GAEGD,IAFHA,SAAA,MAAA,GAAA,QAAiBJ,MAGrBI,IAHqBJ,GAGdG,QAHcH,CAGLI,IAHKJ,CAGAU,CAHAV,CAAAA,EAGIK,CAHJL,CAAAA,EAAYI,GAI7CA,IAJ6CA;KAK5CQ,YAAAA,GALyDX,MAAAA,GAAAA,SAAAA;AAAsBI,cAM/DQ,YAN+DR,CAAAA,aAMrCO,YANqCP,GAMtBO,YANsBP,EAAAA,eAMOL,QANPK,GAMkBL,QANlBK,CAAAA,CAAAA;EAAZN,KAAAA,EAO7DK,IAP6DL;EAAiBK,OAAAA,EAQ5EU,MAR4EV;EAAaF,IAAAA,EAS5Fa,OAT4Fb,CASpFY,MAToFZ,EAS5EC,QAT4ED,CASnEE,IATmEF,EAS7DY,MAT6DZ,CAAAA,CAAAA;EAAoBG,MAAAA,EAU9GW,GAV8GX,CAAAA,MAAAA,EAUlGS,MAVkGT,CAAAA;EAAXN,GAAAA,CAAAA,UAW7Fe,MAX6Ff,CAAAA,CAAAA,MAAAA,EAW7EM,CAX6EN,EAAAA,GAAAA,KAAAA,EAAAA,SAAAA,SAW9CK,IAX8CL,GAAAA,CAWtCI,QAXsCJ,CAW7BK,IAX6BL,EAWvBM,CAXuBN,CAAAA,CAAAA,CAAAA,GAAAA,CAWfI,QAXeJ,CAWNK,IAXML,EAWAM,CAXAN,CAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAAgBK,KAAAA,CAAAA,CAAAA,EAAAA,IAAAA;EAAoCI,MAAAA,CAAAA,MAAAA,EAahJM,MAbgJN,CAAAA,EAAAA,IAAAA;EAAGH,GAAAA,CAAAA,UAcpJS,MAdoJT,CAAAA,CAAAA,MAAAA,EAcpIA,CAdoIA,CAAAA,EAchIF,QAdgIE,CAcvHD,IAduHC,EAcjHA,CAdiHA,CAAAA,GAAAA,SAAAA;EAAZF,GAAAA,CAAAA,MAAAA,EAe1IW,MAf0IX,CAAAA,EAAAA,OAAAA;;AAC1IM,UAgBCQ,cAAAA,CAhBDR;EAAaA,EAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EAAEC,KAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EAAIL,WAAAA,CAAAA,EAAAA,MAAAA,GAAAA,SAAAA;EAAfF,UAAAA,CAAAA,EAAAA,OAAAA,GAAAA,SAAAA;EACLQ,CAAAA,CAAAA,EAAAA,MAAAA,CAAAA,EAAAA,OAAAA;;AAATR,UAsBWe,UAAAA,SAAmBD,cAtB9Bd,CAAAA"}
package/schemas.d.ts ADDED
@@ -0,0 +1,46 @@
1
+ import { $strip } from "./schemas2.js";
2
+ import { output } from "./core.js";
3
+ import { ZodDefault, ZodEnum, ZodNullable, ZodObject, ZodOptional, ZodString } from "./schemas3.js";
4
+
5
+ //#region src/schemas.d.ts
6
+ declare const viewSchema: ZodObject<{
7
+ id: ZodString;
8
+ name: ZodString;
9
+ description: ZodNullable<ZodString>;
10
+ prompt: ZodNullable<ZodString>;
11
+ organizationId: ZodString;
12
+ websiteId: ZodString;
13
+ createdAt: ZodString;
14
+ updatedAt: ZodString;
15
+ deletedAt: ZodNullable<ZodString>;
16
+ }, $strip>;
17
+ type InboxView = output<typeof viewSchema>;
18
+ declare const conversationSchema: ZodObject<{
19
+ id: ZodString;
20
+ title: ZodOptional<ZodString>;
21
+ createdAt: ZodString;
22
+ updatedAt: ZodString;
23
+ visitorId: ZodString;
24
+ websiteId: ZodString;
25
+ status: ZodDefault<ZodEnum<{
26
+ [x: string]: any;
27
+ }>>;
28
+ deletedAt: ZodDefault<ZodNullable<ZodString>>;
29
+ lastTimelineItem: any;
30
+ }, $strip>;
31
+ type Conversation = output<typeof conversationSchema>;
32
+ declare const conversationSeenSchema: ZodObject<{
33
+ id: ZodString;
34
+ conversationId: ZodString;
35
+ userId: ZodNullable<ZodString>;
36
+ visitorId: ZodNullable<ZodString>;
37
+ aiAgentId: ZodNullable<ZodString>;
38
+ lastSeenAt: ZodString;
39
+ createdAt: ZodString;
40
+ updatedAt: ZodString;
41
+ deletedAt: ZodNullable<ZodString>;
42
+ }, $strip>;
43
+ type ConversationSeen = output<typeof conversationSeenSchema>;
44
+ //#endregion
45
+ export { Conversation, ConversationSeen, InboxView, conversationSchema, conversationSeenSchema, viewSchema };
46
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","names":[],"sources":["../src/schemas.ts"],"sourcesContent":[],"mappings":";;;;;cAIa,YAAU;;;;EAAV,MAAA,aAUX,UAAA,CAAA;;;;;;;KAEU,SAAA,GAAY,cAAe;cAE1B,oBAAkB;;;;;;EAdR,SAAA,WAAA;EAAA,MAAA,YAAA,QAAA,CAAA;IAYX,CAAA,CAAA,EAAA,MAAS,CAAA,EAAA,GAAA;EAER,CAAA,CAAA,CAAA;;;;KAkBD,YAAA,GAAe,cAAe;cAE7B,wBAAsB;;;;;;;;;EApBJ,SAAA,aAAA,UAAA,CAAA;CAAA,QAAA,CAAA;AAkBnB,KAcA,gBAAA,GAAmB,MAdW,CAAA,OAcI,sBAdZ,CAAA"}