@tailor-platform/sdk 2.36.0 → 2.38.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.
Files changed (164) hide show
  1. package/CHANGELOG.md +132 -0
  2. package/dist/{application-DaJbleMi.mjs → application-Bz80INH4.mjs} +1 -1
  3. package/dist/application-CeqD1OK-.mjs +207 -0
  4. package/dist/application-CeqD1OK-.mjs.map +1 -0
  5. package/dist/cli/commands/deploy/deploy.d.mts +7 -1
  6. package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +3 -0
  7. package/dist/cli/commands/executor/jobs.d.mts +3 -0
  8. package/dist/cli/commands/tailordb/migrate/bundler.d.mts +3 -0
  9. package/dist/cli/commands/tailordb/migrate/config.d.mts +4 -0
  10. package/dist/cli/commands/tailordb/migrate/diff-calculator.d.mts +10 -0
  11. package/dist/cli/commands/tailordb/migrate/generate.d.mts +28 -2
  12. package/dist/cli/commands/tailordb/migrate/hints.d.mts +1 -0
  13. package/dist/cli/commands/tailordb/migrate/remote-state.d.mts +3 -0
  14. package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +3 -1
  15. package/dist/cli/commands/tailordb/migrate/snapshot-comparison.d.mts +4 -0
  16. package/dist/cli/commands/tailordb/migrate/snapshot-files.d.mts +44 -6
  17. package/dist/cli/commands/tailordb/migrate/snapshot-local.d.mts +2 -0
  18. package/dist/cli/commands/tailordb/migrate/snapshot-migrations.d.mts +2 -0
  19. package/dist/cli/commands/tailordb/migrate/snapshot-types.d.mts +8 -0
  20. package/dist/cli/commands/tailordb/migrate/types.d.mts +2 -0
  21. package/dist/cli/commands/workspace/create.d.mts +1 -1
  22. package/dist/cli/lib.d.mts +3 -3
  23. package/dist/cli/lib.mjs +1 -1
  24. package/dist/cli/lib.mjs.map +1 -1
  25. package/dist/cli/main.mjs +65 -58
  26. package/dist/cli/main.mjs.map +1 -1
  27. package/dist/cli/shared/args.d.mts +14 -5
  28. package/dist/cli/shared/client.d.mts +40 -3
  29. package/dist/cli/shared/error-json.d.mts +12 -26
  30. package/dist/cli/shared/function-execution.d.mts +2 -0
  31. package/dist/cli/shared/prompt.d.mts +9 -4
  32. package/dist/client-CHXix4LD.mjs +1 -0
  33. package/dist/client-DOQv-BP8.mjs +2 -0
  34. package/dist/client-DOQv-BP8.mjs.map +1 -0
  35. package/dist/completion/zsh-worker.zsh +151 -79
  36. package/dist/configure/config/index.d.mts +2 -0
  37. package/dist/configure/config/types.d.mts +2 -0
  38. package/dist/configure/index.mjs.map +1 -1
  39. package/dist/configure/services/executor/operation.d.mts +5 -4
  40. package/dist/configure/services/http-adapter/http-adapter.d.mts +1 -1
  41. package/dist/configure/services/index.d.mts +0 -1
  42. package/dist/configure/services/tailordb/schema.d.mts +1 -0
  43. package/dist/configure/services/tailordb/types.d.mts +12 -0
  44. package/dist/context-DSi5kfqr.mjs +23 -0
  45. package/dist/context-DSi5kfqr.mjs.map +1 -0
  46. package/dist/context-OOASEQLA.mjs +1 -0
  47. package/dist/{crashreport-DGU6lwiX.mjs → crashreport-CQTAlnbA.mjs} +4 -4
  48. package/dist/{crashreport-DGU6lwiX.mjs.map → crashreport-CQTAlnbA.mjs.map} +1 -1
  49. package/dist/crashreport-GRnWyDnF.mjs +1 -0
  50. package/dist/date-representation-Cr7W7Pn2.mjs.map +1 -1
  51. package/dist/{errors-BXmGBX-7.mjs → errors-9OOL3xOM.mjs} +6 -5
  52. package/dist/errors-9OOL3xOM.mjs.map +1 -0
  53. package/dist/field_behavior_pb-B196sUx6.mjs +2 -0
  54. package/dist/field_behavior_pb-B196sUx6.mjs.map +1 -0
  55. package/dist/{kysely-type-B0ri1-Xs.mjs → kysely-type-DhAZqdQg.mjs} +14 -10
  56. package/dist/kysely-type-DhAZqdQg.mjs.map +1 -0
  57. package/dist/notification_resource_pb-BZ0hCA01.mjs +1 -0
  58. package/dist/notification_resource_pb-Dwzah7gO.mjs +2 -0
  59. package/dist/notification_resource_pb-Dwzah7gO.mjs.map +1 -0
  60. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  61. package/dist/plugin/builtin/seed/seed-type-processor.d.mts +4 -3
  62. package/dist/plugin/get-generated-table.d.mts +4 -0
  63. package/dist/plugin/index.mjs.map +1 -1
  64. package/dist/plugin/types.d.mts +55 -3
  65. package/dist/plugin/with-context.d.mts +16 -0
  66. package/dist/register-ts-hook-CXYYYgCl.mjs +1094 -0
  67. package/dist/register-ts-hook-CXYYYgCl.mjs.map +1 -0
  68. package/dist/repl-editor-Bposemei.mjs +2 -0
  69. package/dist/repl-editor-Bposemei.mjs.map +1 -0
  70. package/dist/resource_pb-elY668ZB.mjs +2 -0
  71. package/dist/resource_pb-elY668ZB.mjs.map +1 -0
  72. package/dist/schema-BU1aIQ63.mjs.map +1 -1
  73. package/dist/{secret-file-BxZ-J_Nz.mjs → secret-file-CSXzcg4c.mjs} +2 -2
  74. package/dist/{secret-file-BxZ-J_Nz.mjs.map → secret-file-CSXzcg4c.mjs.map} +1 -1
  75. package/dist/{service-CaGmqg0r.mjs → service-B2vx6CGM.mjs} +2 -2
  76. package/dist/{service-CaGmqg0r.mjs.map → service-B2vx6CGM.mjs.map} +1 -1
  77. package/dist/service-DB-RHn25.mjs +9 -0
  78. package/dist/service-DB-RHn25.mjs.map +1 -0
  79. package/dist/service-DsAWXbVX.mjs +1 -0
  80. package/dist/service_pb-Bethc2NW.mjs +1 -0
  81. package/dist/service_pb-CfpSriCy.mjs +2 -0
  82. package/dist/service_pb-CfpSriCy.mjs.map +1 -0
  83. package/dist/tailor-proto/src/tailor/v1/function_pb.d.mts +3 -3
  84. package/dist/tailor-proto/src/tailor/v1/function_resource_pb.d.mts +92 -0
  85. package/dist/tailor-proto/src/tailor/v1/notification_pb.d.mts +176 -0
  86. package/dist/tailor-proto/src/tailor/v1/notification_resource_pb.d.mts +172 -0
  87. package/dist/tailor-proto/src/tailor/v1/service_pb.d.mts +78 -0
  88. package/dist/types/app-config.generated.d.mts +1 -1
  89. package/dist/types/auth-connection.generated.d.mts +2 -2
  90. package/dist/types/auth.generated.d.mts +13 -13
  91. package/dist/types/executor.generated.d.mts +25 -25
  92. package/dist/types/field.generated.d.mts +2 -2
  93. package/dist/types/http-adapter.generated.d.mts +4 -4
  94. package/dist/types/idp.generated.d.mts +272 -272
  95. package/dist/types/resolver.generated.d.mts +10 -10
  96. package/dist/types/tailordb.generated.d.mts +84 -80
  97. package/dist/types/workflow.generated.d.mts +2 -2
  98. package/dist/validation-errors-DqCeUW4L.mjs +3 -0
  99. package/dist/validation-errors-DqCeUW4L.mjs.map +1 -0
  100. package/{LICENSE → dist/vendor/graphql/LICENSE} +6 -6
  101. package/dist/vendor/graphql/language/KindTypeMap.d.mts +3 -0
  102. package/dist/vendor/graphql/language/ast.d.mts +784 -0
  103. package/dist/vendor/graphql/language/kinds_.d.mts +203 -0
  104. package/dist/vendor/graphql/language/source.d.mts +46 -0
  105. package/dist/vendor/graphql/language/tokenKind.d.mts +35 -0
  106. package/dist/vitest/date-representation.d.mts +2 -0
  107. package/dist/vitest/environment.d.mts +1 -0
  108. package/dist/vitest/environment.mjs.map +1 -1
  109. package/dist/vitest/index.mjs.map +1 -1
  110. package/dist/vitest/migration-steps.d.mts +13 -2
  111. package/dist/vitest/mock-kysely.d.mts +12 -2
  112. package/dist/vitest/mocks/aigateway.d.mts +7 -1
  113. package/dist/vitest/mocks/authconnection.d.mts +7 -1
  114. package/dist/vitest/mocks/file.d.mts +8 -2
  115. package/dist/vitest/mocks/iconv.d.mts +7 -1
  116. package/dist/vitest/mocks/idp.d.mts +7 -1
  117. package/dist/vitest/mocks/logger.d.mts +7 -1
  118. package/dist/vitest/mocks/secretmanager.d.mts +7 -1
  119. package/dist/vitest/mocks/tailordb-pglite.d.mts +12 -2
  120. package/dist/vitest/mocks/tailordb.d.mts +22 -4
  121. package/dist/vitest/mocks/workflow.d.mts +2 -1
  122. package/dist/vitest/pglite-kysely.d.mts +18 -2
  123. package/dist/vitest/pglite-temporal.d.mts +5 -1
  124. package/dist/vitest/workflow-local.d.mts +7 -0
  125. package/dist/workspace_resource_pb-Cow7mrJY.mjs +2 -0
  126. package/dist/workspace_resource_pb-Cow7mrJY.mjs.map +1 -0
  127. package/docs/cli/application.md +63 -29
  128. package/docs/cli/executor.md +2 -0
  129. package/docs/cli/function.md +3 -1
  130. package/docs/cli/notification.md +128 -0
  131. package/docs/cli/tailordb.md +45 -68
  132. package/docs/cli/workflow.md +2 -0
  133. package/docs/cli/workspace.md +20 -18
  134. package/docs/cli-reference.md +231 -50
  135. package/docs/configuration.md +2 -2
  136. package/docs/data-clone.md +1 -1
  137. package/docs/github-actions.md +266 -41
  138. package/docs/plugin/custom.md +4 -4
  139. package/docs/runtime.md +1 -1
  140. package/docs/services/auth.md +2 -0
  141. package/docs/services/idp.md +2 -0
  142. package/docs/services/tailordb/index.md +13 -4
  143. package/docs/services/tailordb/migration.md +109 -71
  144. package/docs/services/workflow.md +1 -1
  145. package/docs/testing.md +9 -10
  146. package/package.json +23 -19
  147. package/dist/application-BbORWCj-.mjs +0 -207
  148. package/dist/application-BbORWCj-.mjs.map +0 -1
  149. package/dist/configure/services/http-adapter/index.d.mts +0 -2
  150. package/dist/crashreport-WsYAWARW.mjs +0 -1
  151. package/dist/errors-BXmGBX-7.mjs.map +0 -1
  152. package/dist/kysely-type-B0ri1-Xs.mjs.map +0 -1
  153. package/dist/register-ts-hook-iAcG1dfz.mjs +0 -1057
  154. package/dist/register-ts-hook-iAcG1dfz.mjs.map +0 -1
  155. package/dist/repl-editor-DkrCZmmg.mjs +0 -2
  156. package/dist/repl-editor-DkrCZmmg.mjs.map +0 -1
  157. package/dist/service-DTrVVaDJ.mjs +0 -1
  158. package/dist/service-hIarp2Gl.mjs +0 -8
  159. package/dist/service-hIarp2Gl.mjs.map +0 -1
  160. package/dist/service_pb-6EkMfdOb.mjs +0 -2
  161. package/dist/service_pb-6EkMfdOb.mjs.map +0 -1
  162. package/dist/service_pb-CsJKokDl.mjs +0 -1
  163. package/dist/workspace_resource_pb-C4CkoYww.mjs +0 -2
  164. package/dist/workspace_resource_pb-C4CkoYww.mjs.map +0 -1
@@ -0,0 +1,203 @@
1
+ declare namespace kinds__d_exports {
2
+ export { ARGUMENT, ARGUMENT_COORDINATE, BOOLEAN, DIRECTIVE, DIRECTIVE_ARGUMENT_COORDINATE, DIRECTIVE_COORDINATE, DIRECTIVE_DEFINITION, DIRECTIVE_EXTENSION, DOCUMENT, ENUM, ENUM_TYPE_DEFINITION, ENUM_TYPE_EXTENSION, ENUM_VALUE_DEFINITION, FIELD, FIELD_DEFINITION, FLOAT, FRAGMENT_ARGUMENT, FRAGMENT_DEFINITION, FRAGMENT_SPREAD, INLINE_FRAGMENT, INPUT_OBJECT_TYPE_DEFINITION, INPUT_OBJECT_TYPE_EXTENSION, INPUT_VALUE_DEFINITION, INT, INTERFACE_TYPE_DEFINITION, INTERFACE_TYPE_EXTENSION, LIST, LIST_TYPE, MEMBER_COORDINATE, NAME, NAMED_TYPE, NON_NULL_TYPE, NULL, OBJECT, OBJECT_FIELD, OBJECT_TYPE_DEFINITION, OBJECT_TYPE_EXTENSION, OPERATION_DEFINITION, OPERATION_TYPE_DEFINITION, SCALAR_TYPE_DEFINITION, SCALAR_TYPE_EXTENSION, SCHEMA_DEFINITION, SCHEMA_EXTENSION, SELECTION_SET, STRING, TYPE_COORDINATE, UNION_TYPE_DEFINITION, UNION_TYPE_EXTENSION, VARIABLE, VARIABLE_DEFINITION };
3
+ }
4
+ /** @category Kinds */
5
+ /** AST kind for name nodes. */
6
+ export declare const NAME = "Name";
7
+ /** Type of the `Kind.NAME` AST kind value. */
8
+ export type NAME = typeof NAME;
9
+ /** AST kind for document nodes. */
10
+ export declare const DOCUMENT = "Document";
11
+ /** Type of the `Kind.DOCUMENT` AST kind value. */
12
+ export type DOCUMENT = typeof DOCUMENT;
13
+ /** AST kind for operation definition nodes. */
14
+ export declare const OPERATION_DEFINITION = "OperationDefinition";
15
+ /** Type of the `Kind.OPERATION_DEFINITION` AST kind value. */
16
+ export type OPERATION_DEFINITION = typeof OPERATION_DEFINITION;
17
+ /** AST kind for variable definition nodes. */
18
+ export declare const VARIABLE_DEFINITION = "VariableDefinition";
19
+ /** Type of the `Kind.VARIABLE_DEFINITION` AST kind value. */
20
+ export type VARIABLE_DEFINITION = typeof VARIABLE_DEFINITION;
21
+ /** AST kind for selection set nodes. */
22
+ export declare const SELECTION_SET = "SelectionSet";
23
+ /** Type of the `Kind.SELECTION_SET` AST kind value. */
24
+ export type SELECTION_SET = typeof SELECTION_SET;
25
+ /** AST kind for field selection nodes. */
26
+ export declare const FIELD = "Field";
27
+ /** Type of the `Kind.FIELD` AST kind value. */
28
+ export type FIELD = typeof FIELD;
29
+ /** AST kind for argument nodes. */
30
+ export declare const ARGUMENT = "Argument";
31
+ /** Type of the `Kind.ARGUMENT` AST kind value. */
32
+ export type ARGUMENT = typeof ARGUMENT;
33
+ /** AST kind for fragment argument nodes. */
34
+ export declare const FRAGMENT_ARGUMENT = "FragmentArgument";
35
+ /** Type of the `Kind.FRAGMENT_ARGUMENT` AST kind value. */
36
+ export type FRAGMENT_ARGUMENT = typeof FRAGMENT_ARGUMENT;
37
+ /** AST kind for fragment spread nodes. */
38
+ export declare const FRAGMENT_SPREAD = "FragmentSpread";
39
+ /** Type of the `Kind.FRAGMENT_SPREAD` AST kind value. */
40
+ export type FRAGMENT_SPREAD = typeof FRAGMENT_SPREAD;
41
+ /** AST kind for inline fragment nodes. */
42
+ export declare const INLINE_FRAGMENT = "InlineFragment";
43
+ /** Type of the `Kind.INLINE_FRAGMENT` AST kind value. */
44
+ export type INLINE_FRAGMENT = typeof INLINE_FRAGMENT;
45
+ /** AST kind for fragment definition nodes. */
46
+ export declare const FRAGMENT_DEFINITION = "FragmentDefinition";
47
+ /** Type of the `Kind.FRAGMENT_DEFINITION` AST kind value. */
48
+ export type FRAGMENT_DEFINITION = typeof FRAGMENT_DEFINITION;
49
+ /** AST kind for variable reference nodes. */
50
+ export declare const VARIABLE = "Variable";
51
+ /** Type of the `Kind.VARIABLE` AST kind value. */
52
+ export type VARIABLE = typeof VARIABLE;
53
+ /** AST kind for integer value nodes. */
54
+ export declare const INT = "IntValue";
55
+ /** Type of the `Kind.INT` AST kind value. */
56
+ export type INT = typeof INT;
57
+ /** AST kind for floating-point value nodes. */
58
+ export declare const FLOAT = "FloatValue";
59
+ /** Type of the `Kind.FLOAT` AST kind value. */
60
+ export type FLOAT = typeof FLOAT;
61
+ /** AST kind for string value nodes. */
62
+ export declare const STRING = "StringValue";
63
+ /** Type of the `Kind.STRING` AST kind value. */
64
+ export type STRING = typeof STRING;
65
+ /** AST kind for boolean value nodes. */
66
+ export declare const BOOLEAN = "BooleanValue";
67
+ /** Type of the `Kind.BOOLEAN` AST kind value. */
68
+ export type BOOLEAN = typeof BOOLEAN;
69
+ /** AST kind for null value nodes. */
70
+ export declare const NULL = "NullValue";
71
+ /** Type of the `Kind.NULL` AST kind value. */
72
+ export type NULL = typeof NULL;
73
+ /** AST kind for enum value nodes. */
74
+ export declare const ENUM = "EnumValue";
75
+ /** Type of the `Kind.ENUM` AST kind value. */
76
+ export type ENUM = typeof ENUM;
77
+ /** AST kind for list value nodes. */
78
+ export declare const LIST = "ListValue";
79
+ /** Type of the `Kind.LIST` AST kind value. */
80
+ export type LIST = typeof LIST;
81
+ /** AST kind for object value nodes. */
82
+ export declare const OBJECT = "ObjectValue";
83
+ /** Type of the `Kind.OBJECT` AST kind value. */
84
+ export type OBJECT = typeof OBJECT;
85
+ /** AST kind for object field nodes. */
86
+ export declare const OBJECT_FIELD = "ObjectField";
87
+ /** Type of the `Kind.OBJECT_FIELD` AST kind value. */
88
+ export type OBJECT_FIELD = typeof OBJECT_FIELD;
89
+ /** AST kind for directive nodes. */
90
+ export declare const DIRECTIVE = "Directive";
91
+ /** Type of the `Kind.DIRECTIVE` AST kind value. */
92
+ export type DIRECTIVE = typeof DIRECTIVE;
93
+ /** AST kind for named type reference nodes. */
94
+ export declare const NAMED_TYPE = "NamedType";
95
+ /** Type of the `Kind.NAMED_TYPE` AST kind value. */
96
+ export type NAMED_TYPE = typeof NAMED_TYPE;
97
+ /** AST kind for list type reference nodes. */
98
+ export declare const LIST_TYPE = "ListType";
99
+ /** Type of the `Kind.LIST_TYPE` AST kind value. */
100
+ export type LIST_TYPE = typeof LIST_TYPE;
101
+ /** AST kind for non-null type reference nodes. */
102
+ export declare const NON_NULL_TYPE = "NonNullType";
103
+ /** Type of the `Kind.NON_NULL_TYPE` AST kind value. */
104
+ export type NON_NULL_TYPE = typeof NON_NULL_TYPE;
105
+ /** AST kind for schema definition nodes. */
106
+ export declare const SCHEMA_DEFINITION = "SchemaDefinition";
107
+ /** Type of the `Kind.SCHEMA_DEFINITION` AST kind value. */
108
+ export type SCHEMA_DEFINITION = typeof SCHEMA_DEFINITION;
109
+ /** AST kind for operation type definition nodes. */
110
+ export declare const OPERATION_TYPE_DEFINITION = "OperationTypeDefinition";
111
+ /** Type of the `Kind.OPERATION_TYPE_DEFINITION` AST kind value. */
112
+ export type OPERATION_TYPE_DEFINITION = typeof OPERATION_TYPE_DEFINITION;
113
+ /** AST kind for scalar type definition nodes. */
114
+ export declare const SCALAR_TYPE_DEFINITION = "ScalarTypeDefinition";
115
+ /** Type of the `Kind.SCALAR_TYPE_DEFINITION` AST kind value. */
116
+ export type SCALAR_TYPE_DEFINITION = typeof SCALAR_TYPE_DEFINITION;
117
+ /** AST kind for object type definition nodes. */
118
+ export declare const OBJECT_TYPE_DEFINITION = "ObjectTypeDefinition";
119
+ /** Type of the `Kind.OBJECT_TYPE_DEFINITION` AST kind value. */
120
+ export type OBJECT_TYPE_DEFINITION = typeof OBJECT_TYPE_DEFINITION;
121
+ /** AST kind for field definition nodes. */
122
+ export declare const FIELD_DEFINITION = "FieldDefinition";
123
+ /** Type of the `Kind.FIELD_DEFINITION` AST kind value. */
124
+ export type FIELD_DEFINITION = typeof FIELD_DEFINITION;
125
+ /** AST kind for input value definition nodes. */
126
+ export declare const INPUT_VALUE_DEFINITION = "InputValueDefinition";
127
+ /** Type of the `Kind.INPUT_VALUE_DEFINITION` AST kind value. */
128
+ export type INPUT_VALUE_DEFINITION = typeof INPUT_VALUE_DEFINITION;
129
+ /** AST kind for interface type definition nodes. */
130
+ export declare const INTERFACE_TYPE_DEFINITION = "InterfaceTypeDefinition";
131
+ /** Type of the `Kind.INTERFACE_TYPE_DEFINITION` AST kind value. */
132
+ export type INTERFACE_TYPE_DEFINITION = typeof INTERFACE_TYPE_DEFINITION;
133
+ /** AST kind for union type definition nodes. */
134
+ export declare const UNION_TYPE_DEFINITION = "UnionTypeDefinition";
135
+ /** Type of the `Kind.UNION_TYPE_DEFINITION` AST kind value. */
136
+ export type UNION_TYPE_DEFINITION = typeof UNION_TYPE_DEFINITION;
137
+ /** AST kind for enum type definition nodes. */
138
+ export declare const ENUM_TYPE_DEFINITION = "EnumTypeDefinition";
139
+ /** AST kind for enum value definition nodes. */
140
+ export declare const ENUM_VALUE_DEFINITION = "EnumValueDefinition";
141
+ /** Type of the `Kind.ENUM_VALUE_DEFINITION` AST kind value. */
142
+ export type ENUM_VALUE_DEFINITION = typeof ENUM_VALUE_DEFINITION;
143
+ /** AST kind for input object type definition nodes. */
144
+ export declare const INPUT_OBJECT_TYPE_DEFINITION = "InputObjectTypeDefinition";
145
+ /** Type of the `Kind.INPUT_OBJECT_TYPE_DEFINITION` AST kind value. */
146
+ export type INPUT_OBJECT_TYPE_DEFINITION = typeof INPUT_OBJECT_TYPE_DEFINITION;
147
+ /** AST kind for directive definition nodes. */
148
+ export declare const DIRECTIVE_DEFINITION = "DirectiveDefinition";
149
+ /** Type of the `Kind.DIRECTIVE_DEFINITION` AST kind value. */
150
+ export type DIRECTIVE_DEFINITION = typeof DIRECTIVE_DEFINITION;
151
+ /** AST kind for schema extension nodes. */
152
+ export declare const SCHEMA_EXTENSION = "SchemaExtension";
153
+ /** Type of the `Kind.SCHEMA_EXTENSION` AST kind value. */
154
+ export type SCHEMA_EXTENSION = typeof SCHEMA_EXTENSION;
155
+ /** AST kind for directive extension nodes. */
156
+ export declare const DIRECTIVE_EXTENSION = "DirectiveExtension";
157
+ /** Type of the `Kind.DIRECTIVE_EXTENSION` AST kind value. */
158
+ export type DIRECTIVE_EXTENSION = typeof DIRECTIVE_EXTENSION;
159
+ /** AST kind for scalar type extension nodes. */
160
+ export declare const SCALAR_TYPE_EXTENSION = "ScalarTypeExtension";
161
+ /** Type of the `Kind.SCALAR_TYPE_EXTENSION` AST kind value. */
162
+ export type SCALAR_TYPE_EXTENSION = typeof SCALAR_TYPE_EXTENSION;
163
+ /** AST kind for object type extension nodes. */
164
+ export declare const OBJECT_TYPE_EXTENSION = "ObjectTypeExtension";
165
+ /** Type of the `Kind.OBJECT_TYPE_EXTENSION` AST kind value. */
166
+ export type OBJECT_TYPE_EXTENSION = typeof OBJECT_TYPE_EXTENSION;
167
+ /** AST kind for interface type extension nodes. */
168
+ export declare const INTERFACE_TYPE_EXTENSION = "InterfaceTypeExtension";
169
+ /** Type of the `Kind.INTERFACE_TYPE_EXTENSION` AST kind value. */
170
+ export type INTERFACE_TYPE_EXTENSION = typeof INTERFACE_TYPE_EXTENSION;
171
+ /** AST kind for union type extension nodes. */
172
+ export declare const UNION_TYPE_EXTENSION = "UnionTypeExtension";
173
+ /** Type of the `Kind.UNION_TYPE_EXTENSION` AST kind value. */
174
+ export type UNION_TYPE_EXTENSION = typeof UNION_TYPE_EXTENSION;
175
+ /** AST kind for enum type extension nodes. */
176
+ export declare const ENUM_TYPE_EXTENSION = "EnumTypeExtension";
177
+ /** Type of the `Kind.ENUM_TYPE_EXTENSION` AST kind value. */
178
+ export type ENUM_TYPE_EXTENSION = typeof ENUM_TYPE_EXTENSION;
179
+ /** AST kind for input object type extension nodes. */
180
+ export declare const INPUT_OBJECT_TYPE_EXTENSION = "InputObjectTypeExtension";
181
+ /** Type of the `Kind.INPUT_OBJECT_TYPE_EXTENSION` AST kind value. */
182
+ export type INPUT_OBJECT_TYPE_EXTENSION = typeof INPUT_OBJECT_TYPE_EXTENSION;
183
+ /** AST kind for type coordinate nodes. */
184
+ export declare const TYPE_COORDINATE = "TypeCoordinate";
185
+ /** Type of the `Kind.TYPE_COORDINATE` AST kind value. */
186
+ export type TYPE_COORDINATE = typeof TYPE_COORDINATE;
187
+ /** AST kind for member coordinate nodes. */
188
+ export declare const MEMBER_COORDINATE = "MemberCoordinate";
189
+ /** Type of the `Kind.MEMBER_COORDINATE` AST kind value. */
190
+ export type MEMBER_COORDINATE = typeof MEMBER_COORDINATE;
191
+ /** AST kind for argument coordinate nodes. */
192
+ export declare const ARGUMENT_COORDINATE = "ArgumentCoordinate";
193
+ /** Type of the `Kind.ARGUMENT_COORDINATE` AST kind value. */
194
+ export type ARGUMENT_COORDINATE = typeof ARGUMENT_COORDINATE;
195
+ /** AST kind for directive coordinate nodes. */
196
+ export declare const DIRECTIVE_COORDINATE = "DirectiveCoordinate";
197
+ /** Type of the `Kind.DIRECTIVE_COORDINATE` AST kind value. */
198
+ export type DIRECTIVE_COORDINATE = typeof DIRECTIVE_COORDINATE;
199
+ /** AST kind for directive argument coordinate nodes. */
200
+ export declare const DIRECTIVE_ARGUMENT_COORDINATE = "DirectiveArgumentCoordinate";
201
+ /** Type of the `Kind.DIRECTIVE_ARGUMENT_COORDINATE` AST kind value. */
202
+ export type DIRECTIVE_ARGUMENT_COORDINATE = typeof DIRECTIVE_ARGUMENT_COORDINATE;
203
+ export { kinds__d_exports };
@@ -0,0 +1,46 @@
1
+ /** @category Source */
2
+ interface Location {
3
+ line: number;
4
+ column: number;
5
+ }
6
+ /**
7
+ * A representation of source input to GraphQL. The `name` and `locationOffset` parameters are
8
+ * optional, but they are useful for clients who store GraphQL documents in source files.
9
+ * For example, if the GraphQL input starts at line 40 in a file named `Foo.graphql`, it might
10
+ * be useful for `name` to be `"Foo.graphql"` and location to be `{ line: 40, column: 1 }`.
11
+ * The `line` and `column` properties in `locationOffset` are 1-indexed.
12
+ */
13
+ export declare class Source {
14
+ /** The GraphQL source text. */
15
+ body: string;
16
+ /** Name used in diagnostics for this source, such as a file path or request name. */
17
+ name: string;
18
+ /** One-indexed line and column where this source begins. */
19
+ locationOffset: Location;
20
+ /**
21
+ * Creates a Source instance.
22
+ * @param body - The GraphQL source text.
23
+ * @param name - Name used in diagnostics for this source.
24
+ * @param locationOffset - One-indexed line and column where this source begins.
25
+ * @example
26
+ * ```ts
27
+ * import { Source } from 'graphql/language';
28
+ *
29
+ * const source = new Source('type Query { greeting: String }', 'schema.graphql', {
30
+ * line: 10,
31
+ * column: 1,
32
+ * });
33
+ *
34
+ * source.body; // => 'type Query { greeting: String }'
35
+ * source.name; // => 'schema.graphql'
36
+ * source.locationOffset; // => { line: 10, column: 1 }
37
+ * ```
38
+ */
39
+ constructor(body: string, name?: string, locationOffset?: Location);
40
+ /**
41
+ * Returns the value used by `Object.prototype.toString`.
42
+ * @returns The built-in string tag for this object.
43
+ */
44
+ get [Symbol.toStringTag](): string;
45
+ }
46
+ export {};
@@ -0,0 +1,35 @@
1
+ /** @category Lexing */
2
+ /**
3
+ * An exported enum describing the different kinds of tokens that the
4
+ * lexer emits.
5
+ */
6
+ export declare const TokenKind: {
7
+ readonly SOF: "<SOF>";
8
+ readonly EOF: "<EOF>";
9
+ readonly BANG: "!";
10
+ readonly DOLLAR: "$";
11
+ readonly AMP: "&";
12
+ readonly PAREN_L: "(";
13
+ readonly PAREN_R: ")";
14
+ readonly DOT: ".";
15
+ readonly SPREAD: "...";
16
+ readonly COLON: ":";
17
+ readonly EQUALS: "=";
18
+ readonly AT: "@";
19
+ readonly BRACKET_L: "[";
20
+ readonly BRACKET_R: "]";
21
+ readonly BRACE_L: "{";
22
+ readonly PIPE: "|";
23
+ readonly BRACE_R: "}";
24
+ readonly NAME: "Name";
25
+ readonly INT: "Int";
26
+ readonly FLOAT: "Float";
27
+ readonly STRING: "String";
28
+ readonly BLOCK_STRING: "BlockString";
29
+ readonly COMMENT: "Comment";
30
+ };
31
+ /**
32
+ * An exported enum describing the different kinds of tokens that the
33
+ * lexer emits.
34
+ */
35
+ export type TokenKind = (typeof TokenKind)[keyof typeof TokenKind];
@@ -15,6 +15,8 @@ export declare function applyDateDefault(dateDefault: EffectiveDateDefault): ()
15
15
  * migration tests call it with the representation recorded in the migration's
16
16
  * `diff.json`, so a later change to `tailor.config.ts` does not alter what the
17
17
  * test exercises.
18
+ *
19
+ * **Beta:** This API may change in future releases.
18
20
  * @param representation - The representation to apply, as `as` names it
19
21
  * @returns A function that restores the previous representation
20
22
  */
@@ -1,3 +1,4 @@
1
+ /** **Beta:** This API may change in future releases. */
1
2
  declare const _default: {
2
3
  name: string;
3
4
  viteEnvironment: string;
@@ -1 +1 @@
1
- {"version":3,"file":"environment.mjs","names":["ES_BUILTINS","cleanupPlatformGlobals","installPlatformGlobals","RUNTIME_FLAG_KEY","ALLOWED_GLOBALS","environment_default","g","global","temporalDescriptor","needsTemporal","temporal","saved","key","descriptor"],"sources":["../../src/vitest/environment.ts"],"sourcesContent":["import { ES_BUILTINS } from \"#/utils/es-builtins\";\n// Import from ./globals (NOT ./mock): this module runs in the Vitest environment\n// realm where `vi` is unavailable, and ./mock imports `vi`. ./globals is\n// dependency-free of vitest.\nimport { RUNTIME_FLAG_KEY, cleanupPlatformGlobals, installPlatformGlobals } from \"./globals\";\n\n// Globals allowed in the Tailor Platform runtime.\n// ES_BUILTINS is the free-variable allowlist the deploy-time check uses, so\n// the emulated runtime exposes exactly the same identifiers as the production\n// platform (ECMAScript builtins + shared Node/browser runtime globals like\n// console, fetch, setTimeout).\n// Platform API mocks (tailor, tailordb, etc.) are not listed here — the base\n// surface is injected by installPlatformGlobals() after the whitelist cleanup,\n// and per-namespace mocks are layered on at `using xMock()` acquisition time.\nconst ALLOWED_GLOBALS = new Set([\n ...ES_BUILTINS,\n\n // The environment-active flag (set in installPlatformGlobals, used by\n // setup.ts to detect the tailor-runtime environment).\n RUNTIME_FLAG_KEY,\n\n // Used by Vitest internally — not in the platform runtime, but removing breaks the test runner\n \"process\",\n \"require\",\n \"module\",\n \"exports\",\n \"__vitest_worker__\",\n \"__vitest_mocker__\",\n \"VITEST_POOL_ID\",\n]);\n\nexport default {\n name: \"tailor-runtime\",\n viteEnvironment: \"ssr\",\n\n async setup(global: typeof globalThis) {\n const g = global as Record<string, unknown>;\n\n const temporalDescriptor = Object.getOwnPropertyDescriptor(g, \"Temporal\");\n const needsTemporal = g.Temporal === undefined;\n const temporal = needsTemporal\n ? (await import(\"temporal-polyfill/full/implementation\")).Temporal\n : undefined;\n\n // Save and remove all non-whitelisted globals\n const saved: Record<string, PropertyDescriptor> = {};\n for (const key of Object.getOwnPropertyNames(g)) {\n if (!ALLOWED_GLOBALS.has(key)) {\n const descriptor = Object.getOwnPropertyDescriptor(g, key);\n if (descriptor?.configurable) {\n saved[key] = descriptor;\n delete g[key];\n }\n }\n }\n\n // Install the base platform surface after whitelist cleanup. Per-namespace\n // mocks (workflow, tailordb, …) are installed on demand by `using xMock()`.\n installPlatformGlobals(global);\n if (needsTemporal) {\n Object.defineProperty(g, \"Temporal\", {\n value: temporal,\n writable: true,\n configurable: true,\n });\n }\n\n return {\n teardown(global: typeof globalThis) {\n cleanupPlatformGlobals(global);\n\n if (needsTemporal) {\n if (temporalDescriptor) {\n Object.defineProperty(global, \"Temporal\", temporalDescriptor);\n } else {\n Reflect.deleteProperty(global, \"Temporal\");\n }\n }\n\n // Restore removed globals\n const g = global as Record<string, unknown>;\n for (const [key, descriptor] of Object.entries(saved)) {\n Object.defineProperty(g, key, descriptor);\n }\n },\n };\n },\n};\n"],"mappings":"A,0GAcA,MAAMI,kBAAkB,IAAI,IAAI,CAC9B,GAAGJ,EAIHG,EAGA,UACA,UACA,SACA,UACA,oBACA,oBACA,gBACF,CAAC,EAED,IAAAE,EAAe,CACb,KAAM,iBACN,gBAAiB,MAEjB,MAAM,MAAM,EAA2B,CACrC,IAAMC,EAAIC,EAEJC,EAAqB,OAAO,yBAAyBF,EAAG,UAAU,EAClEG,EAAgBH,EAAE,WAAa,IAAA,GAC/BI,EAAWD,GACZ,MAAM,OAAO,yCAAA,CAA0C,SACxD,IAAA,GAGEE,EAA4C,CAAC,EACnD,IAAK,IAAMC,KAAO,OAAO,oBAAoBN,CAAC,EAC5C,GAAI,CAACF,EAAgB,IAAIQ,CAAG,EAAG,CAC7B,IAAMC,EAAa,OAAO,yBAAyBP,EAAGM,CAAG,EACrDC,GAAY,eACd,EAAMD,GAAOC,EACb,OAAOP,EAAEM,GAEb,CAcF,OATAV,EAAuBK,CAAM,EACzBE,GACF,OAAO,eAAeH,EAAG,WAAY,CACnC,MAAOI,EACP,SAAU,GACV,aAAc,EAChB,CAAC,EAGI,CACL,SAAS,EAA2B,CAClCT,EAAuBM,CAAM,EAEzBE,IACED,EACF,OAAO,eAAeD,EAAQ,WAAYC,CAAkB,EAE5D,QAAQ,eAAeD,EAAQ,UAAU,GAK7C,IAAMD,EAAIC,EACV,IAAK,GAAM,CAACK,EAAKC,KAAe,OAAO,QAAQF,CAAK,EAClD,OAAO,eAAeL,EAAGM,EAAKC,CAAU,CAE5C,CACF,CACF,CACF,E"}
1
+ {"version":3,"file":"environment.mjs","names":["ES_BUILTINS","cleanupPlatformGlobals","installPlatformGlobals","RUNTIME_FLAG_KEY","ALLOWED_GLOBALS","environment_default","g","global","temporalDescriptor","needsTemporal","temporal","saved","key","descriptor"],"sources":["../../src/vitest/environment.ts"],"sourcesContent":["import { ES_BUILTINS } from \"#/utils/es-builtins\";\n// Import from ./globals (NOT ./mock): this module runs in the Vitest environment\n// realm where `vi` is unavailable, and ./mock imports `vi`. ./globals is\n// dependency-free of vitest.\nimport { RUNTIME_FLAG_KEY, cleanupPlatformGlobals, installPlatformGlobals } from \"./globals\";\n\n// Globals allowed in the Tailor Platform runtime.\n// ES_BUILTINS is the free-variable allowlist the deploy-time check uses, so\n// the emulated runtime exposes exactly the same identifiers as the production\n// platform (ECMAScript builtins + shared Node/browser runtime globals like\n// console, fetch, setTimeout).\n// Platform API mocks (tailor, tailordb, etc.) are not listed here — the base\n// surface is injected by installPlatformGlobals() after the whitelist cleanup,\n// and per-namespace mocks are layered on at `using xMock()` acquisition time.\nconst ALLOWED_GLOBALS = new Set([\n ...ES_BUILTINS,\n\n // The environment-active flag (set in installPlatformGlobals, used by\n // setup.ts to detect the tailor-runtime environment).\n RUNTIME_FLAG_KEY,\n\n // Used by Vitest internally — not in the platform runtime, but removing breaks the test runner\n \"process\",\n \"require\",\n \"module\",\n \"exports\",\n \"__vitest_worker__\",\n \"__vitest_mocker__\",\n \"VITEST_POOL_ID\",\n]);\n\n/** **Beta:** This API may change in future releases. */\nexport default {\n name: \"tailor-runtime\",\n viteEnvironment: \"ssr\",\n\n async setup(global: typeof globalThis) {\n const g = global as Record<string, unknown>;\n\n const temporalDescriptor = Object.getOwnPropertyDescriptor(g, \"Temporal\");\n const needsTemporal = g.Temporal === undefined;\n const temporal = needsTemporal\n ? (await import(\"temporal-polyfill/full/implementation\")).Temporal\n : undefined;\n\n // Save and remove all non-whitelisted globals\n const saved: Record<string, PropertyDescriptor> = {};\n for (const key of Object.getOwnPropertyNames(g)) {\n if (!ALLOWED_GLOBALS.has(key)) {\n const descriptor = Object.getOwnPropertyDescriptor(g, key);\n if (descriptor?.configurable) {\n saved[key] = descriptor;\n delete g[key];\n }\n }\n }\n\n // Install the base platform surface after whitelist cleanup. Per-namespace\n // mocks (workflow, tailordb, …) are installed on demand by `using xMock()`.\n installPlatformGlobals(global);\n if (needsTemporal) {\n Object.defineProperty(g, \"Temporal\", {\n value: temporal,\n writable: true,\n configurable: true,\n });\n }\n\n return {\n teardown(global: typeof globalThis) {\n cleanupPlatformGlobals(global);\n\n if (needsTemporal) {\n if (temporalDescriptor) {\n Object.defineProperty(global, \"Temporal\", temporalDescriptor);\n } else {\n Reflect.deleteProperty(global, \"Temporal\");\n }\n }\n\n // Restore removed globals\n const g = global as Record<string, unknown>;\n for (const [key, descriptor] of Object.entries(saved)) {\n Object.defineProperty(g, key, descriptor);\n }\n },\n };\n },\n};\n"],"mappings":"A,0GAcA,MAAMI,kBAAkB,IAAI,IAAI,CAC9B,GAAGJ,EAIHG,EAGA,UACA,UACA,SACA,UACA,oBACA,oBACA,gBACF,CAAC,EAGD,IAAAE,EAAe,CACb,KAAM,iBACN,gBAAiB,MAEjB,MAAM,MAAM,EAA2B,CACrC,IAAMC,EAAIC,EAEJC,EAAqB,OAAO,yBAAyBF,EAAG,UAAU,EAClEG,EAAgBH,EAAE,WAAa,IAAA,GAC/BI,EAAWD,GACZ,MAAM,OAAO,yCAAA,CAA0C,SACxD,IAAA,GAGEE,EAA4C,CAAC,EACnD,IAAK,IAAMC,KAAO,OAAO,oBAAoBN,CAAC,EAC5C,GAAI,CAACF,EAAgB,IAAIQ,CAAG,EAAG,CAC7B,IAAMC,EAAa,OAAO,yBAAyBP,EAAGM,CAAG,EACrDC,GAAY,eACd,EAAMD,GAAOC,EACb,OAAOP,EAAEM,GAEb,CAcF,OATAV,EAAuBK,CAAM,EACzBE,GACF,OAAO,eAAeH,EAAG,WAAY,CACnC,MAAOI,EACP,SAAU,GACV,aAAc,EAChB,CAAC,EAGI,CACL,SAAS,EAA2B,CAClCT,EAAuBM,CAAM,EAEzBE,IACED,EACF,OAAO,eAAeD,EAAQ,WAAYC,CAAkB,EAE5D,QAAQ,eAAeD,EAAQ,UAAU,GAK7C,IAAMD,EAAIC,EACV,IAAK,GAAM,CAACK,EAAKC,KAAe,OAAO,QAAQF,CAAK,EAClD,OAAO,eAAeL,EAAGM,EAAKC,CAAU,CAE5C,CACF,CACF,CACF,E"}