@takeshape/schema 8.66.2 → 8.68.4

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 (113) hide show
  1. package/es/content-schema-transform.js +2 -2
  2. package/es/index.js +2 -1
  3. package/es/migration/index.js +13 -2
  4. package/es/migration/to/v3.14.0.js +10 -0
  5. package/es/migration/to/v3.15.0.js +10 -0
  6. package/es/project-schema/index.js +2 -0
  7. package/es/project-schema/v3.13.1.js +1 -0
  8. package/es/project-schema/v3.14.0.js +1 -0
  9. package/es/project-schema/v3.15.0.js +1 -0
  10. package/es/refs.js +78 -1
  11. package/es/rewrite.js +58 -0
  12. package/es/schema-util.js +32 -118
  13. package/es/schemas/index.js +5 -3
  14. package/es/schemas/index.ts +6 -2
  15. package/es/schemas/project-schema/v3.14.0.json +2379 -0
  16. package/es/schemas/project-schema/v3.15.0.json +2359 -0
  17. package/es/schemas/project-schema.json +2 -1
  18. package/es/template-shapes/templates.js +56 -52
  19. package/es/template-shapes/types.js +8 -1
  20. package/es/types/utils.js +5 -0
  21. package/es/util/detect-cycles.js +2 -2
  22. package/es/util/index.js +2 -1
  23. package/es/util/merge.js +36 -0
  24. package/es/validate.js +2 -10
  25. package/examples/latest/betzino.json +1 -1
  26. package/examples/latest/blog-schema.json +1 -1
  27. package/examples/latest/brewery-schema.json +1 -1
  28. package/examples/latest/complex-project-schema.json +1 -1
  29. package/examples/latest/fabric-ecommerce.json +1 -1
  30. package/examples/latest/frank-and-fred-schema.json +1 -1
  31. package/examples/latest/massive-schema.json +1 -1
  32. package/examples/latest/mill-components-schema.json +1 -1
  33. package/examples/latest/pet-oneof-array.json +1 -1
  34. package/examples/latest/post-schema.json +1 -1
  35. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  36. package/examples/latest/real-world-schema.json +1 -1
  37. package/examples/latest/recursive-repeater-schema.json +1 -1
  38. package/examples/latest/recursive-schema.json +1 -1
  39. package/examples/latest/rick-and-morty-ast.json +1 -1
  40. package/examples/latest/rick-and-morty-graphql.json +1 -1
  41. package/examples/latest/rick-and-morty-rest.json +1 -1
  42. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  43. package/examples/latest/shape-books-v3_2_0.json +1 -1
  44. package/examples/latest/shape-books.json +1 -1
  45. package/examples/latest/shopify-lookbook.json +1 -1
  46. package/examples/latest/shopify-store-with-widget.json +1 -1
  47. package/examples/latest/stripe-starter-resolved.json +1 -1
  48. package/examples/latest/user-schema-no-required.json +1 -1
  49. package/examples/latest/user-schema-with-defaults.json +1 -1
  50. package/lib/content-schema-transform.js +6 -6
  51. package/lib/index.d.ts +1 -0
  52. package/lib/index.d.ts.map +1 -1
  53. package/lib/index.js +14 -0
  54. package/lib/migration/index.d.ts.map +1 -1
  55. package/lib/migration/index.js +14 -1
  56. package/lib/migration/to/v3.14.0.d.ts +4 -0
  57. package/lib/migration/to/v3.14.0.d.ts.map +1 -0
  58. package/lib/migration/to/v3.14.0.js +18 -0
  59. package/lib/migration/to/v3.15.0.d.ts +4 -0
  60. package/lib/migration/to/v3.15.0.d.ts.map +1 -0
  61. package/lib/migration/to/v3.15.0.js +18 -0
  62. package/lib/project-schema/index.d.ts +5 -1
  63. package/lib/project-schema/index.d.ts.map +1 -1
  64. package/lib/project-schema/index.js +45 -19
  65. package/lib/project-schema/latest.d.ts +164 -23
  66. package/lib/project-schema/latest.d.ts.map +1 -1
  67. package/lib/project-schema/v3.13.1.d.ts +1413 -0
  68. package/lib/project-schema/v3.13.1.d.ts.map +1 -0
  69. package/lib/project-schema/v3.13.1.js +5 -0
  70. package/lib/project-schema/v3.14.0.d.ts +1437 -0
  71. package/lib/project-schema/v3.14.0.d.ts.map +1 -0
  72. package/lib/project-schema/v3.14.0.js +5 -0
  73. package/lib/project-schema/v3.15.0.d.ts +1459 -0
  74. package/lib/project-schema/v3.15.0.d.ts.map +1 -0
  75. package/lib/project-schema/v3.15.0.js +5 -0
  76. package/lib/refs.d.ts +11 -2
  77. package/lib/refs.d.ts.map +1 -1
  78. package/lib/refs.js +83 -0
  79. package/lib/rewrite.d.ts +10 -0
  80. package/lib/rewrite.d.ts.map +1 -0
  81. package/lib/rewrite.js +69 -0
  82. package/lib/schema-util.d.ts +3 -15
  83. package/lib/schema-util.d.ts.map +1 -1
  84. package/lib/schema-util.js +36 -135
  85. package/lib/schemas/index.d.ts +2302 -2
  86. package/lib/schemas/index.d.ts.map +1 -1
  87. package/lib/schemas/index.js +25 -21
  88. package/lib/schemas/index.ts +6 -2
  89. package/lib/schemas/project-schema/v3.14.0.json +2379 -0
  90. package/lib/schemas/project-schema/v3.15.0.json +2359 -0
  91. package/lib/schemas/project-schema.json +2 -1
  92. package/lib/template-shapes/templates.d.ts +11 -4
  93. package/lib/template-shapes/templates.d.ts.map +1 -1
  94. package/lib/template-shapes/templates.js +63 -57
  95. package/lib/template-shapes/types.d.ts +6 -0
  96. package/lib/template-shapes/types.d.ts.map +1 -1
  97. package/lib/template-shapes/types.js +11 -1
  98. package/lib/types/types.d.ts +2 -2
  99. package/lib/types/types.d.ts.map +1 -1
  100. package/lib/types/utils.d.ts +4 -1
  101. package/lib/types/utils.d.ts.map +1 -1
  102. package/lib/types/utils.js +10 -1
  103. package/lib/util/detect-cycles.d.ts +1 -1
  104. package/lib/util/detect-cycles.js +2 -2
  105. package/lib/util/index.d.ts +1 -0
  106. package/lib/util/index.d.ts.map +1 -1
  107. package/lib/util/index.js +13 -0
  108. package/lib/util/merge.d.ts +5 -0
  109. package/lib/util/merge.d.ts.map +1 -0
  110. package/lib/util/merge.js +51 -0
  111. package/lib/validate.d.ts.map +1 -1
  112. package/lib/validate.js +3 -10
  113. package/package.json +4 -4
@@ -0,0 +1,1413 @@
1
+ /**
2
+ * This file was automatically generated by json-schema-to-typescript.
3
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
4
+ * and run json-schema-to-typescript to regenerate this file.
5
+ */
6
+ /**
7
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
8
+ * via the `definition` "args".
9
+ */
10
+ export declare type ArgsV3_13_1 = string | ObjectSchemaV3_13_1;
11
+ /**
12
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
13
+ * via the `definition` "objectSchema".
14
+ */
15
+ export declare type ObjectSchemaV3_13_1 = PropertySchemaV3_13_1 & {
16
+ type: 'object';
17
+ properties: {
18
+ [k: string]: PropertySchemaV3_13_1;
19
+ };
20
+ };
21
+ /**
22
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
23
+ * via the `definition` "nonNegativeInteger".
24
+ */
25
+ export declare type NonNegativeIntegerV3_13_1 = number;
26
+ /**
27
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
28
+ * via the `definition` "nonNegativeIntegerDefault0".
29
+ */
30
+ export declare type NonNegativeIntegerDefault0V3_13_1 = NonNegativeIntegerV3_13_1;
31
+ /**
32
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
33
+ * via the `definition` "stringArray".
34
+ */
35
+ export declare type StringArrayV3_13_1 = string[];
36
+ /**
37
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
38
+ * via the `definition` "simpleTypes".
39
+ */
40
+ export declare type SimpleTypesV3_13_1 = 'array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string';
41
+ /**
42
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
43
+ * via the `definition` "schemaArray".
44
+ */
45
+ export declare type SchemaArrayV3_13_1 = PropertySchemaV3_13_1[];
46
+ /**
47
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
48
+ * via the `definition` "fieldMapping".
49
+ */
50
+ export declare type FieldMappingV3_13_1 = MappingStringV3_13_1 | MappingStringV3_13_1[];
51
+ /**
52
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
53
+ * via the `definition` "mappingString".
54
+ */
55
+ export declare type MappingStringV3_13_1 = string;
56
+ /**
57
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
58
+ * via the `definition` "resolver".
59
+ */
60
+ export declare type ResolverV3_13_1 = BasicResolverV3_13_1 | ComposeResolverV3_13_1;
61
+ /**
62
+ * A single resolver, can be composed with the ComposeResolver.
63
+ *
64
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
65
+ * via the `definition` "basicResolver".
66
+ */
67
+ export declare type BasicResolverV3_13_1 = UtilResolverV3_13_1 | TakeshapeResolverV3_13_1 | InternalTakeshapeResolverV3_13_1 | GraphqlResolverV3_13_1 | RestResolverV3_13_1 | AwsLambdaResolverV3_13_1;
68
+ /**
69
+ * Name of the resolver function.
70
+ */
71
+ export declare type UtilResolverNameV3_13_1 = 'debug:noop' | 'util:wrap';
72
+ /**
73
+ * An object describing an operation to generate a parameter.
74
+ *
75
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
76
+ * via the `definition` "parameterOp".
77
+ */
78
+ export declare type ParameterOpV3_13_1 = ParameterOpNestedV3_13_1 | ParameterOpValueV3_13_1 | ParameterOpMappingV3_13_1 | ParameterOpOpV3_13_1;
79
+ /**
80
+ * A tuple with a string directive name, and options to pass to the directive
81
+ *
82
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
83
+ * via the `definition` "directiveConfigItem".
84
+ */
85
+ export declare type DirectiveConfigItemV3_13_1 = [DirectiveNameV3_13_1, DirectiveOptionsV3_13_1];
86
+ export declare type DirectiveNameV3_13_1 = string;
87
+ /**
88
+ * An array of individual directive config items to process in order
89
+ *
90
+ * This interface was referenced by `DirectiveMappingMapV3_13_1`'s JSON-Schema definition
91
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
92
+ *
93
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
94
+ * via the `definition` "directiveConfig".
95
+ */
96
+ export declare type DirectiveConfigV3_13_1 = DirectiveConfigItemV3_13_1[];
97
+ /**
98
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
99
+ * via the `definition` "parameterOpList".
100
+ */
101
+ export declare type ParameterOpListV3_13_1 = ParameterOpV3_13_1[];
102
+ /**
103
+ * Maps a query's input args to the input expected by the service's endpoint.
104
+ *
105
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
106
+ * via the `definition` "argsMapping".
107
+ */
108
+ export declare type ArgsMappingV3_13_1 = DirectiveMappingMapV3_13_1 | DirectiveConfigV3_13_1;
109
+ /**
110
+ * Maps a service endpoint's response results to the expected shape of the query's response.
111
+ *
112
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
113
+ * via the `definition` "resultsMapping".
114
+ */
115
+ export declare type ResultsMappingV3_13_1 = DirectiveMappingMapV3_13_1 | DirectiveConfigV3_13_1;
116
+ /**
117
+ * Name of the resolver function.
118
+ */
119
+ export declare type TakeshapeResolverNameV3_13_1 = 'takeshape:get' | 'takeshape:create' | 'takeshape:update' | 'takeshape:delete' | 'takeshape:duplicate' | 'takeshape:find' | 'takeshape:queryApiIndex';
120
+ /**
121
+ * Name of the resolver function.
122
+ */
123
+ export declare type InternalTakeshapeResolverNameV3_13_1 = 'takeshape:getRelationship' | 'takeshape:taxonomySuggest' | 'takeshape:list' | 'takeshape:search';
124
+ /**
125
+ * Name of the resolver function.
126
+ */
127
+ export declare type GraphqlResolverNameV3_13_1 = 'graphql:query' | 'graphql:mutation';
128
+ /**
129
+ * Name of the resolver function.
130
+ */
131
+ export declare type RestResolverNameV3_13_1 = 'rest:get' | 'rest:head' | 'rest:post' | 'rest:put' | 'rest:patch' | 'rest:delete';
132
+ /**
133
+ * A tuple with a string key and a directive config to evaluate
134
+ *
135
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
136
+ * via the `definition` "directiveMappingArrayItem".
137
+ */
138
+ export declare type DirectiveMappingArrayItemV3_13_1 = [string, DirectiveConfigV3_13_1];
139
+ /**
140
+ * An array of key / value or directive config tuples
141
+ */
142
+ export declare type SearchParamsMappingV3_13_1 = DirectiveMappingArrayItemV3_13_1[];
143
+ /**
144
+ * Name of the resolver function.
145
+ */
146
+ export declare type AwsLambdaResolverNameV3_13_1 = 'awsLambda:invoke';
147
+ /**
148
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
149
+ * via the `definition` "ref".
150
+ */
151
+ export declare type RefV3_13_1 = string;
152
+ /**
153
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
154
+ * via the `definition` "returnShape".
155
+ */
156
+ export declare type ReturnShapeV3_13_1 = string | ReturnShapeArraySchemaV3_13_1;
157
+ /**
158
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
159
+ * via the `definition` "returnShapeArraySchema".
160
+ */
161
+ export declare type ReturnShapeArraySchemaV3_13_1 = PropertySchemaV3_13_1 & {
162
+ type: 'array';
163
+ items: RefSchemaV3_13_1 | {
164
+ type: 'boolean' | 'integer' | 'number' | 'string';
165
+ [k: string]: any;
166
+ };
167
+ };
168
+ export declare type ModelTypeV3_13_1 = 'single' | 'multiple' | 'taxonomy';
169
+ /**
170
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
171
+ * via the `definition` "shapeSchema".
172
+ */
173
+ export declare type ShapeSchemaV3_13_1 = ShapeSchemaAllOfV3_13_1 | ShapeSchemaOneOfV3_13_1 | ShapeSchemaEnumV3_13_1 | ObjectSchemaV3_13_1;
174
+ /**
175
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
176
+ * via the `definition` "paginationConfig".
177
+ */
178
+ export declare type PaginationConfigV3_13_1 = PaginationCursorConfigV3_13_1 | PaginationPageConfigV3_13_1 | PaginationOffsetConfigV3_13_1;
179
+ /**
180
+ * Human-readable id for use in the UI
181
+ */
182
+ export declare type WorkflowNameV3_13_1 = string;
183
+ /**
184
+ * machine-readable slug
185
+ */
186
+ export declare type NameV3_13_1 = string;
187
+ /**
188
+ * Human-readable id for use in the UI
189
+ */
190
+ export declare type TitleV3_13_1 = string;
191
+ export declare type DescriptionV3_13_1 = string;
192
+ /**
193
+ * Hex color code
194
+ */
195
+ export declare type ColorV3_13_1 = string;
196
+ /**
197
+ * Value to indicate whether items in the state should be returned in list queries
198
+ */
199
+ export declare type LiveV3_13_1 = boolean;
200
+ /**
201
+ * machine-readable id
202
+ */
203
+ export declare type KeyV3_13_1 = string;
204
+ export declare type StepsV3_13_1 = WorkflowStepV3_13_1[];
205
+ /**
206
+ * The general type of this service, specifying how and where it will be utilized.
207
+ *
208
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
209
+ * via the `definition` "serviceType".
210
+ */
211
+ export declare type ServiceTypeV3_13_1 = 'deployment' | 'authentication' | 'takeshape' | 'rest' | 'graphql' | 'openapi' | 'aws' | 'unknown';
212
+ /**
213
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
214
+ * via the `definition` "allOfSchema".
215
+ */
216
+ export declare type AllOfSchemaV3_13_1 = PropertySchemaV3_13_1 & {
217
+ allOf: (RefSchemaV3_13_1 | RefSchemaLegacyV3_13_1 | ObjectSchemaV3_13_1)[];
218
+ };
219
+ /**
220
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
221
+ * via the `definition` "oneOfSchema".
222
+ */
223
+ export declare type OneOfSchemaV3_13_1 = PropertySchemaV3_13_1 & {
224
+ oneOf: (RefSchemaV3_13_1 | RefSchemaLegacyV3_13_1 | ObjectSchemaV3_13_1)[];
225
+ };
226
+ /**
227
+ * Options to be passed to the serialization routine.
228
+ *
229
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
230
+ * via the `definition` "parameterSerializeOptions".
231
+ *
232
+ * This interface was referenced by `undefined`'s JSON-Schema definition
233
+ * via the `patternProperty` "^[^\n\r]*$".
234
+ */
235
+ export declare type ParameterSerializeOptionsV3_13_1 = ParameterSerializeStyleOptionsV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
236
+ /**
237
+ * An array of key / value or directive config tuples
238
+ *
239
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
240
+ * via the `definition` "directiveMappingArray".
241
+ */
242
+ export declare type DirectiveMappingArrayV3_13_1 = DirectiveMappingArrayItemV3_13_1[];
243
+ /**
244
+ * An array of key / value or directive config tuples
245
+ *
246
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
247
+ * via the `definition` "searchParamsMapping".
248
+ */
249
+ export declare type SearchParamsMappingV3_13_11 = DirectiveMappingArrayItemV3_13_1[];
250
+ /**
251
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
252
+ * via the `definition` "shapeWithObjectSchema".
253
+ */
254
+ export declare type ShapeWithObjectSchemaV3_13_1 = ShapeV3_13_1 & {
255
+ schema: ObjectSchemaV3_13_1;
256
+ };
257
+ /**
258
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
259
+ * via the `definition` "serviceAuthentication".
260
+ */
261
+ export declare type ServiceAuthenticationV3_13_1 = OAuth2AuthenticationV3_13_1 | OAuth2BearerAuthenticationV3_13_1 | BearerAuthenticationV3_13_1 | BasicAuthenticationV3_13_1 | SearchParamsAuthenticationV3_13_1 | AWSAuthenticationV3_13_1 | CustomAuthenticationV3_13_1;
262
+ /**
263
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
264
+ * via the `definition` "anyServiceConfig".
265
+ */
266
+ export declare type AnyServiceConfigV3_13_1 = StoredServiceConfigV3_13_1 | ServiceConfigV3_13_1;
267
+ export interface ProjectSchemaV3_13_1 {
268
+ $schema?: string;
269
+ /**
270
+ * This is the revision number of your schema. Every time your project schema is updated, this value should be incremented.
271
+ */
272
+ version: number;
273
+ /**
274
+ * The version of the TakeShape API your project is using. We increase the version as we make breaking changes to the API endpoints.
275
+ */
276
+ apiVersion: string;
277
+ /**
278
+ * The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
279
+ */
280
+ schemaVersion: '3.13.1';
281
+ /**
282
+ * The ID of the TakeShape project this schema belongs to.
283
+ */
284
+ projectId: string;
285
+ /**
286
+ * The ID of the TakeShape user who created the schema.
287
+ */
288
+ author?: string;
289
+ /**
290
+ * The date the schema was created
291
+ */
292
+ created: string;
293
+ /**
294
+ * The date the schema was last updated
295
+ */
296
+ updated: string;
297
+ deactivated?: number;
298
+ /**
299
+ * The locale that should be preferred when creating new Shape items. This must be an entry in the locales array.
300
+ */
301
+ defaultLocale: string;
302
+ locales: string[];
303
+ queries: QueryMapV3_13_1;
304
+ mutations: QueryMapV3_13_1;
305
+ shapes: ShapeMapV3_13_1;
306
+ indexedShapes?: IndexedShapeMapV3_13_1;
307
+ forms?: FormMapV3_13_1;
308
+ workflows: WorkflowMapV3_13_1;
309
+ dataKey: string;
310
+ services?: StoredServiceMapV3_13_1;
311
+ }
312
+ /**
313
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
314
+ * via the `definition` "queryMap".
315
+ */
316
+ export interface QueryMapV3_13_1 {
317
+ [k: string]: QueryV3_13_1;
318
+ }
319
+ /**
320
+ * This interface was referenced by `QueryMapV3_13_1`'s JSON-Schema definition
321
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
322
+ *
323
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
324
+ * via the `definition` "query".
325
+ */
326
+ export interface QueryV3_13_1 {
327
+ args?: ArgsV3_13_1;
328
+ resolver: ResolverV3_13_1;
329
+ shape: ReturnShapeV3_13_1;
330
+ /**
331
+ * Provides more detail about what the query or mutation is for. This will be displayed in the automatically-generated GraphQL API docs.
332
+ */
333
+ description?: string;
334
+ [k: string]: any;
335
+ }
336
+ /**
337
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
338
+ * via the `definition` "propertySchema".
339
+ */
340
+ export interface PropertySchemaV3_13_1 {
341
+ $ref?: string;
342
+ title?: string;
343
+ description?: string;
344
+ default?: any;
345
+ readOnly?: boolean;
346
+ multipleOf?: number;
347
+ maximum?: number;
348
+ exclusiveMaximum?: number;
349
+ minimum?: number;
350
+ exclusiveMinimum?: number;
351
+ maxLength?: NonNegativeIntegerV3_13_1;
352
+ minLength?: NonNegativeIntegerDefault0V3_13_1;
353
+ pattern?: string;
354
+ additionalItems?: PropertySchemaV3_13_1;
355
+ items?: PropertySchemaV3_13_1;
356
+ maxItems?: NonNegativeIntegerV3_13_1;
357
+ minItems?: NonNegativeIntegerDefault0V3_13_1;
358
+ uniqueItems?: boolean;
359
+ contains?: PropertySchemaV3_13_1;
360
+ maxProperties?: NonNegativeIntegerV3_13_1;
361
+ minProperties?: NonNegativeIntegerDefault0V3_13_1;
362
+ required?: StringArrayV3_13_1;
363
+ additionalProperties?: PropertySchemaV3_13_1 | false;
364
+ definitions?: {
365
+ [k: string]: PropertySchemaV3_13_1;
366
+ };
367
+ properties?: {
368
+ [k: string]: PropertySchemaV3_13_1;
369
+ };
370
+ const?: any;
371
+ enum?: any[];
372
+ type?: SimpleTypesV3_13_1 | SimpleTypesV3_13_1[];
373
+ format?: string;
374
+ contentMediaType?: string;
375
+ contentEncoding?: string;
376
+ allOf?: SchemaArrayV3_13_1;
377
+ oneOf?: SchemaArrayV3_13_1;
378
+ '@relationship'?: RelationshipV3_13_1;
379
+ '@backReference'?: BackReferenceV3_13_1;
380
+ '@input'?: InputV3_13_1;
381
+ '@syncLocaleStructure'?: boolean;
382
+ '@sensitive'?: boolean;
383
+ '@draftjs'?: boolean;
384
+ '@l10n'?: boolean;
385
+ '@key'?: string;
386
+ '@workflow'?: string;
387
+ '@mapping'?: FieldMappingV3_13_1;
388
+ '@tag'?: string;
389
+ '@tags'?: string[];
390
+ '@deprecationReason'?: string;
391
+ '@user'?: boolean;
392
+ '@args'?: ArgsV3_13_1;
393
+ '@resolver'?: ResolverV3_13_1;
394
+ '@ref'?: RefV3_13_1;
395
+ '@derivedFrom'?: string;
396
+ }
397
+ /**
398
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
399
+ * via the `definition` "relationship".
400
+ */
401
+ export interface RelationshipV3_13_1 {
402
+ shapeIds: string[];
403
+ type?: string;
404
+ }
405
+ /**
406
+ * A configuration object for a reverse reference in a relationship.
407
+ *
408
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
409
+ * via the `definition` "backReference".
410
+ */
411
+ export interface BackReferenceV3_13_1 {
412
+ enabled: boolean;
413
+ name?: string;
414
+ }
415
+ export interface InputV3_13_1 {
416
+ $ref?: string;
417
+ title?: string;
418
+ description?: string;
419
+ default?: any;
420
+ readOnly?: boolean;
421
+ multipleOf?: number;
422
+ maximum?: number;
423
+ exclusiveMaximum?: number;
424
+ minimum?: number;
425
+ exclusiveMinimum?: number;
426
+ maxLength?: NonNegativeIntegerV3_13_1;
427
+ minLength?: NonNegativeIntegerDefault0V3_13_1;
428
+ pattern?: string;
429
+ additionalItems?: PropertySchemaV3_13_1;
430
+ items?: PropertySchemaV3_13_1;
431
+ maxItems?: NonNegativeIntegerV3_13_1;
432
+ minItems?: NonNegativeIntegerDefault0V3_13_1;
433
+ uniqueItems?: boolean;
434
+ contains?: PropertySchemaV3_13_1;
435
+ maxProperties?: NonNegativeIntegerV3_13_1;
436
+ minProperties?: NonNegativeIntegerDefault0V3_13_1;
437
+ required?: StringArrayV3_13_1;
438
+ additionalProperties?: PropertySchemaV3_13_1 | false;
439
+ definitions?: {
440
+ [k: string]: PropertySchemaV3_13_1;
441
+ };
442
+ properties?: {
443
+ [k: string]: PropertySchemaV3_13_1;
444
+ };
445
+ const?: any;
446
+ enum?: any[];
447
+ type?: SimpleTypesV3_13_1 | SimpleTypesV3_13_1[];
448
+ format?: string;
449
+ contentMediaType?: string;
450
+ contentEncoding?: string;
451
+ allOf?: SchemaArrayV3_13_1;
452
+ oneOf?: SchemaArrayV3_13_1;
453
+ '@relationship'?: RelationshipV3_13_1;
454
+ '@backReference'?: BackReferenceV3_13_1;
455
+ '@input'?: InputV3_13_1;
456
+ '@syncLocaleStructure'?: boolean;
457
+ '@sensitive'?: boolean;
458
+ '@draftjs'?: boolean;
459
+ '@l10n'?: boolean;
460
+ '@key'?: string;
461
+ '@workflow'?: string;
462
+ '@mapping'?: FieldMappingV3_13_1;
463
+ '@tag'?: string;
464
+ '@tags'?: string[];
465
+ '@deprecationReason'?: string;
466
+ '@user'?: boolean;
467
+ '@args'?: ArgsV3_13_1;
468
+ '@resolver'?: ResolverV3_13_1;
469
+ '@ref'?: RefV3_13_1;
470
+ '@derivedFrom'?: string;
471
+ }
472
+ /**
473
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
474
+ * via the `definition` "utilResolver".
475
+ */
476
+ export interface UtilResolverV3_13_1 {
477
+ if?: string;
478
+ id?: string;
479
+ name: UtilResolverNameV3_13_1;
480
+ /**
481
+ * Configuration for a service to use with this resolver.
482
+ */
483
+ service: string;
484
+ options?: UtilResolverOptionsV3_13_1;
485
+ args?: ParameterConfigForJsonV3_13_1;
486
+ results?: ParameterConfigForJsonV3_13_1;
487
+ argsMapping?: ArgsMappingV3_13_1;
488
+ resultsMapping?: ResultsMappingV3_13_1;
489
+ }
490
+ export interface UtilResolverOptionsV3_13_1 {
491
+ [k: string]: any;
492
+ }
493
+ /**
494
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
495
+ * via the `definition` "parameterConfigForJson".
496
+ */
497
+ export interface ParameterConfigForJsonV3_13_1 {
498
+ ops: ParameterOpListV3_13_1;
499
+ }
500
+ /**
501
+ * An object describing an operation to generate a parameter, using a nested OpList.
502
+ *
503
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
504
+ * via the `definition` "parameterOpNested".
505
+ */
506
+ export interface ParameterOpNestedV3_13_1 {
507
+ /**
508
+ * A path to the parameter for this operation.
509
+ */
510
+ path: string;
511
+ /**
512
+ * A mode for this parameter's operation.
513
+ */
514
+ op?: 'set' | 'concat' | 'extend' | 'remove';
515
+ ops: ParameterOpListV3_13_1;
516
+ }
517
+ /**
518
+ * An object describing an operation to generate a parameter using a value.
519
+ *
520
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
521
+ * via the `definition` "parameterOpValue".
522
+ */
523
+ export interface ParameterOpValueV3_13_1 {
524
+ /**
525
+ * A path to the parameter for this operation.
526
+ */
527
+ path: string;
528
+ /**
529
+ * A mode for this parameter's operation.
530
+ */
531
+ op?: 'set' | 'concat' | 'extend' | 'remove';
532
+ /**
533
+ * A value to set directly at this path.
534
+ */
535
+ value: number | string | boolean | {
536
+ [k: string]: any;
537
+ } | any[] | null;
538
+ }
539
+ /**
540
+ * An object describing an operation to generate a parameter using a mapping.
541
+ *
542
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
543
+ * via the `definition` "parameterOpMapping".
544
+ */
545
+ export interface ParameterOpMappingV3_13_1 {
546
+ /**
547
+ * A path to the parameter for this operation.
548
+ */
549
+ path: string;
550
+ /**
551
+ * A mode for this parameter's operation.
552
+ */
553
+ op?: 'set' | 'concat' | 'extend' | 'remove';
554
+ /**
555
+ * Either a valid JSONPath or a directive pipeline to evaluate against the query context.
556
+ */
557
+ mapping: string | DirectiveConfigV3_13_1;
558
+ }
559
+ export interface DirectiveOptionsV3_13_1 {
560
+ [k: string]: any;
561
+ }
562
+ /**
563
+ * An object describing an operation to generate a parameter using a mapping.
564
+ *
565
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
566
+ * via the `definition` "parameterOpOp".
567
+ */
568
+ export interface ParameterOpOpV3_13_1 {
569
+ /**
570
+ * A path to the parameter for this operation.
571
+ */
572
+ path: string;
573
+ /**
574
+ * A mode for this parameter's operation.
575
+ */
576
+ op: 'set' | 'concat' | 'extend' | 'remove';
577
+ }
578
+ /**
579
+ * An map of object keys / key paths to directive configs
580
+ *
581
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
582
+ * via the `definition` "directiveMappingMap".
583
+ */
584
+ export interface DirectiveMappingMapV3_13_1 {
585
+ [k: string]: DirectiveConfigV3_13_1;
586
+ }
587
+ /**
588
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
589
+ * via the `definition` "takeshapeResolver".
590
+ */
591
+ export interface TakeshapeResolverV3_13_1 {
592
+ if?: string;
593
+ id?: string;
594
+ name: TakeshapeResolverNameV3_13_1;
595
+ /**
596
+ * Internal service identifier.
597
+ */
598
+ service: 'takeshape:local';
599
+ options?: TakeshapeResolverOptionsV3_13_1;
600
+ argsMapping?: ArgsMappingV3_13_1;
601
+ resultsMapping?: ResultsMappingV3_13_1;
602
+ /**
603
+ * A Shape name for the resolver to use.
604
+ */
605
+ shapeName: string;
606
+ args?: ParameterConfigForJsonV3_13_1;
607
+ results?: ParameterConfigForJsonV3_13_1;
608
+ }
609
+ export interface TakeshapeResolverOptionsV3_13_1 {
610
+ [k: string]: any;
611
+ }
612
+ /**
613
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
614
+ * via the `definition` "internalTakeshapeResolver".
615
+ */
616
+ export interface InternalTakeshapeResolverV3_13_1 {
617
+ if?: string;
618
+ id?: string;
619
+ name: InternalTakeshapeResolverNameV3_13_1;
620
+ /**
621
+ * Internal service identifier.
622
+ */
623
+ service: 'takeshape:local';
624
+ options?: TakeshapeResolverOptionsV3_13_11;
625
+ /**
626
+ * An optional Shape name for the resolver.
627
+ */
628
+ shapeName?: string;
629
+ args?: ParameterConfigForJsonV3_13_1;
630
+ results?: ParameterConfigForJsonV3_13_1;
631
+ argsMapping?: ArgsMappingV3_13_1;
632
+ resultsMapping?: ResultsMappingV3_13_1;
633
+ }
634
+ export interface TakeshapeResolverOptionsV3_13_11 {
635
+ [k: string]: any;
636
+ }
637
+ /**
638
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
639
+ * via the `definition` "graphqlResolver".
640
+ */
641
+ export interface GraphqlResolverV3_13_1 {
642
+ if?: string;
643
+ id?: string;
644
+ name: GraphqlResolverNameV3_13_1;
645
+ /**
646
+ * Configuration for a service to use with this resolver.
647
+ */
648
+ service: string;
649
+ argsMapping?: ArgsMappingV3_13_1;
650
+ resultsMapping?: ResultsMappingV3_13_1;
651
+ options?: GraphqlResolverOptionsV3_13_1;
652
+ /**
653
+ * A fieldname to use in queries.
654
+ */
655
+ fieldName: string;
656
+ headers?: ParameterConfigForHeadersV3_13_1;
657
+ searchParams?: ParameterConfigForSearchParamsV3_13_1;
658
+ args?: ParameterConfigForJsonV3_13_1;
659
+ results?: ParameterConfigForJsonV3_13_1;
660
+ }
661
+ export interface GraphqlResolverOptionsV3_13_1 {
662
+ selectionSet?: string;
663
+ unboxParentSelectionSet?: boolean;
664
+ ignoreErrors?: boolean;
665
+ skipWhenMissingArgs?: boolean;
666
+ ttl?: number;
667
+ timeout?: number;
668
+ retry?: number | {
669
+ [k: string]: any;
670
+ };
671
+ [k: string]: any;
672
+ }
673
+ /**
674
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
675
+ * via the `definition` "parameterConfigForHeaders".
676
+ */
677
+ export interface ParameterConfigForHeadersV3_13_1 {
678
+ ops: ParameterOpListV3_13_1;
679
+ serialize?: ParameterSerializeConfigForHeadersV3_13_1;
680
+ }
681
+ /**
682
+ * Top-level paths to use headers serialization options for.
683
+ *
684
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
685
+ * via the `definition` "parameterSerializeConfigForHeaders".
686
+ */
687
+ export interface ParameterSerializeConfigForHeadersV3_13_1 {
688
+ defaults?: ParameterSerializeStyleOptionsForHeadersV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
689
+ paths?: {
690
+ /**
691
+ * This interface was referenced by `undefined`'s JSON-Schema definition
692
+ * via the `patternProperty` "^[^\n\r]*$".
693
+ */
694
+ [k: string]: ParameterSerializeStyleOptionsForHeadersV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
695
+ };
696
+ }
697
+ /**
698
+ * Options to be passed to the serialization routine.
699
+ *
700
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
701
+ * via the `definition` "parameterSerializeStyleOptionsForHeaders".
702
+ */
703
+ export interface ParameterSerializeStyleOptionsForHeadersV3_13_1 {
704
+ style: 'simple' | 'none';
705
+ explode?: boolean;
706
+ }
707
+ /**
708
+ * Options to be passed to the serialization routine.
709
+ *
710
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
711
+ * via the `definition` "parameterSerializeContentOptions".
712
+ */
713
+ export interface ParameterSerializeContentOptionsV3_13_1 {
714
+ contentType: string;
715
+ /**
716
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
717
+ */
718
+ allowReserved?: boolean;
719
+ skipEncoding?: boolean;
720
+ /**
721
+ * Options to be passed directly to the content serializer library. Valid options depend upon your contentType.
722
+ */
723
+ options?: {
724
+ [k: string]: any;
725
+ };
726
+ }
727
+ /**
728
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
729
+ * via the `definition` "parameterConfigForSearchParams".
730
+ */
731
+ export interface ParameterConfigForSearchParamsV3_13_1 {
732
+ ops: ParameterOpListV3_13_1;
733
+ serialize?: ParameterSerializeConfigForSearchParamsV3_13_1;
734
+ }
735
+ /**
736
+ * Top-level paths to use search params serialization options for.
737
+ *
738
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
739
+ * via the `definition` "parameterSerializeConfigForSearchParams".
740
+ */
741
+ export interface ParameterSerializeConfigForSearchParamsV3_13_1 {
742
+ defaults?: ParameterSerializeStyleOptionsForSearchParamsV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
743
+ paths?: {
744
+ /**
745
+ * This interface was referenced by `undefined`'s JSON-Schema definition
746
+ * via the `patternProperty` "^[^\n\r]*$".
747
+ */
748
+ [k: string]: ParameterSerializeStyleOptionsForSearchParamsV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
749
+ };
750
+ }
751
+ /**
752
+ * Options to be passed to the serialization routine.
753
+ *
754
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
755
+ * via the `definition` "parameterSerializeStyleOptionsForSearchParams".
756
+ */
757
+ export interface ParameterSerializeStyleOptionsForSearchParamsV3_13_1 {
758
+ style: 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject' | 'none';
759
+ explode?: boolean;
760
+ allowEmptyValue?: boolean;
761
+ /**
762
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
763
+ */
764
+ allowReserved?: boolean;
765
+ skipEncoding?: boolean;
766
+ }
767
+ /**
768
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
769
+ * via the `definition` "restResolver".
770
+ */
771
+ export interface RestResolverV3_13_1 {
772
+ if?: string;
773
+ id?: string;
774
+ name: RestResolverNameV3_13_1;
775
+ /**
776
+ * Configuration for a service to use with this resolver.
777
+ */
778
+ service: string;
779
+ argsMapping?: ArgsMappingV3_13_1;
780
+ searchParamsMapping?: SearchParamsMappingV3_13_1;
781
+ resultsMapping?: ResultsMappingV3_13_1;
782
+ options?: RestResolverOptionsV3_13_1;
783
+ body?: ParameterConfigForBodyV3_13_1;
784
+ form?: ParameterConfigForSearchParamsV3_13_1;
785
+ headers?: ParameterConfigForHeadersV3_13_1;
786
+ json?: ParameterConfigForJsonV3_13_1;
787
+ /**
788
+ * Mapping and serialization configuration for the path, or a simple string.
789
+ */
790
+ path: ParameterConfigForPathParamsV3_13_1 | string;
791
+ searchParams?: ParameterConfigForSearchParamsV3_13_1;
792
+ args?: ParameterConfigForJsonV3_13_1;
793
+ results?: ParameterConfigForJsonV3_13_1;
794
+ }
795
+ export interface RestResolverOptionsV3_13_1 {
796
+ trailingSlash?: boolean;
797
+ ttl?: number;
798
+ timeout?: number;
799
+ retry?: number | {
800
+ [k: string]: any;
801
+ };
802
+ [k: string]: any;
803
+ }
804
+ /**
805
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
806
+ * via the `definition` "parameterConfigForBody".
807
+ */
808
+ export interface ParameterConfigForBodyV3_13_1 {
809
+ ops: ParameterOpListV3_13_1;
810
+ serialize?: ParameterSerializeConfigForBodyV3_13_1;
811
+ }
812
+ /**
813
+ * Top-level paths to use serialization options for.
814
+ *
815
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
816
+ * via the `definition` "parameterSerializeConfigForBody".
817
+ */
818
+ export interface ParameterSerializeConfigForBodyV3_13_1 {
819
+ content?: ParameterSerializeContentOptionsV3_13_1;
820
+ }
821
+ /**
822
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
823
+ * via the `definition` "parameterConfigForPathParams".
824
+ */
825
+ export interface ParameterConfigForPathParamsV3_13_1 {
826
+ ops: ParameterOpListV3_13_1;
827
+ serialize: ParameterSerializeConfigForPathParamsV3_13_1;
828
+ }
829
+ /**
830
+ * Top-level paths to use path params serialization options for.
831
+ *
832
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
833
+ * via the `definition` "parameterSerializeConfigForPathParams".
834
+ */
835
+ export interface ParameterSerializeConfigForPathParamsV3_13_1 {
836
+ /**
837
+ * For generating the path using tokens frpm the ParameterOps, e.g., '/products/{productId}'
838
+ */
839
+ template: string;
840
+ defaults?: ParameterSerializeStyleOptionsForPathParamsV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
841
+ paths?: {
842
+ /**
843
+ * This interface was referenced by `undefined`'s JSON-Schema definition
844
+ * via the `patternProperty` "^[^\n\r]*$".
845
+ */
846
+ [k: string]: ParameterSerializeStyleOptionsForPathParamsV3_13_1 | ParameterSerializeContentOptionsV3_13_1;
847
+ };
848
+ }
849
+ /**
850
+ * Options to be passed to the serialization routine.
851
+ *
852
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
853
+ * via the `definition` "parameterSerializeStyleOptionsForPathParams".
854
+ */
855
+ export interface ParameterSerializeStyleOptionsForPathParamsV3_13_1 {
856
+ style: 'simple' | 'label' | 'matrix' | 'none';
857
+ explode?: boolean;
858
+ allowEmptyValue?: boolean;
859
+ /**
860
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
861
+ */
862
+ allowReserved?: boolean;
863
+ skipEncoding?: boolean;
864
+ }
865
+ /**
866
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
867
+ * via the `definition` "awsLambdaResolver".
868
+ */
869
+ export interface AwsLambdaResolverV3_13_1 {
870
+ if?: string;
871
+ id?: string;
872
+ name: AwsLambdaResolverNameV3_13_1;
873
+ /**
874
+ * Configuration for a service to use with this resolver.
875
+ */
876
+ service: string;
877
+ options?: AwsLambdaResolverOptionsV3_13_1;
878
+ payload?: ParameterConfigForJsonV3_13_1;
879
+ /**
880
+ * Mapping configuration for the FunctionName.
881
+ */
882
+ functionName: string | ParameterConfigForAwsLambdaV3_13_1;
883
+ clientContext?: ParameterConfigForJsonV3_13_1;
884
+ args?: ParameterConfigForJsonV3_13_1;
885
+ results?: ParameterConfigForJsonV3_13_1;
886
+ argsMapping?: ArgsMappingV3_13_1;
887
+ searchParamsMapping?: SearchParamsMappingV3_13_1;
888
+ resultsMapping?: ResultsMappingV3_13_1;
889
+ }
890
+ export interface AwsLambdaResolverOptionsV3_13_1 {
891
+ [k: string]: any;
892
+ }
893
+ /**
894
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
895
+ * via the `definition` "parameterConfigForAwsLambda".
896
+ */
897
+ export interface ParameterConfigForAwsLambdaV3_13_1 {
898
+ ops: ParameterOpListV3_13_1;
899
+ serialize: ParameterSerializeConfigForPathParamsV3_13_1;
900
+ }
901
+ /**
902
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
903
+ * via the `definition` "composeResolver".
904
+ */
905
+ export interface ComposeResolverV3_13_1 {
906
+ compose: BasicResolverV3_13_1[];
907
+ resultsMapping?: DirectiveMappingMapV3_13_1 | DirectiveConfigV3_13_1;
908
+ results?: ParameterConfigForJsonV3_13_1;
909
+ }
910
+ /**
911
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
912
+ * via the `definition` "refSchema".
913
+ */
914
+ export interface RefSchemaV3_13_1 {
915
+ '@ref': RefV3_13_1;
916
+ [k: string]: any;
917
+ }
918
+ /**
919
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
920
+ * via the `definition` "shapeMap".
921
+ */
922
+ export interface ShapeMapV3_13_1 {
923
+ [k: string]: ShapeV3_13_1;
924
+ }
925
+ /**
926
+ * A Shape is a schema object for structuring and storing data from one or more sources, including the TakeShape data store and connected services
927
+ *
928
+ * This interface was referenced by `ShapeMapV3_13_1`'s JSON-Schema definition
929
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
930
+ *
931
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
932
+ * via the `definition` "shape".
933
+ */
934
+ export interface ShapeV3_13_1 {
935
+ /**
936
+ * The Pascal-cased human-readable id for a Shape. This value should match the shape's key in the shapes object. This value is used in @ref and @mapping annotations
937
+ */
938
+ name: string;
939
+ /**
940
+ * The machine-readable id for a Shape which should never change. When using TakeShape's built-in database to store Shape data, this value is used database as a stable "table name" and changing it will result in orphaning that data.
941
+ */
942
+ id: string;
943
+ /**
944
+ * The human-readable name for a Shape for use in a UI.
945
+ */
946
+ title: string;
947
+ description?: string;
948
+ /**
949
+ * Specifying a model type allows Shape data to be stored in TakeShape's built-in database
950
+ */
951
+ model?: {
952
+ type: ModelTypeV3_13_1;
953
+ };
954
+ workflow?: string;
955
+ schema: ShapeSchemaV3_13_1;
956
+ }
957
+ /**
958
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
959
+ * via the `definition` "shapeSchemaAllOf".
960
+ */
961
+ export interface ShapeSchemaAllOfV3_13_1 {
962
+ allOf: (RefSchemaV3_13_1 | RefSchemaLegacyV3_13_1 | ObjectSchemaV3_13_1)[];
963
+ }
964
+ /**
965
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
966
+ * via the `definition` "refSchemaLegacy".
967
+ */
968
+ export interface RefSchemaLegacyV3_13_1 {
969
+ $ref: RefV3_13_1;
970
+ [k: string]: any;
971
+ }
972
+ /**
973
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
974
+ * via the `definition` "shapeSchemaOneOf".
975
+ */
976
+ export interface ShapeSchemaOneOfV3_13_1 {
977
+ oneOf: (RefSchemaV3_13_1 | RefSchemaLegacyV3_13_1 | ObjectSchemaV3_13_1)[];
978
+ }
979
+ /**
980
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
981
+ * via the `definition` "shapeSchemaEnum".
982
+ */
983
+ export interface ShapeSchemaEnumV3_13_1 {
984
+ enum: string[];
985
+ }
986
+ /**
987
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
988
+ * via the `definition` "indexedShapeMap".
989
+ */
990
+ export interface IndexedShapeMapV3_13_1 {
991
+ [k: string]: IndexedShapeConfigV3_13_1;
992
+ }
993
+ /**
994
+ * This interface was referenced by `IndexedShapeMapV3_13_1`'s JSON-Schema definition
995
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
996
+ *
997
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
998
+ * via the `definition` "indexedShapeConfig".
999
+ */
1000
+ export interface IndexedShapeConfigV3_13_1 {
1001
+ idField?: string;
1002
+ searchSummaryField?: string;
1003
+ queries?: IndexedShapeQueriesConfigV3_13_1;
1004
+ }
1005
+ /**
1006
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1007
+ * via the `definition` "indexedShapeQueriesConfig".
1008
+ */
1009
+ export interface IndexedShapeQueriesConfigV3_13_1 {
1010
+ all: IndexedShapeQueryAllConfigV3_13_1;
1011
+ single?: IndexedShapeQuerySingleConfigV3_13_1;
1012
+ }
1013
+ /**
1014
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1015
+ * via the `definition` "indexedShapeQueryAllConfig".
1016
+ */
1017
+ export interface IndexedShapeQueryAllConfigV3_13_1 {
1018
+ name: string;
1019
+ ignoreFields?: string[];
1020
+ interval?: number;
1021
+ objectDepthLimit?: number;
1022
+ pagination?: PaginationConfigV3_13_1;
1023
+ }
1024
+ /**
1025
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1026
+ * via the `definition` "paginationCursorConfig".
1027
+ */
1028
+ export interface PaginationCursorConfigV3_13_1 {
1029
+ type: 'cursor';
1030
+ cursorArg: string;
1031
+ cursorPath: string;
1032
+ size?: number;
1033
+ sizeArg: string;
1034
+ hasMorePath: string;
1035
+ itemsPath: string;
1036
+ }
1037
+ /**
1038
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1039
+ * via the `definition` "paginationPageConfig".
1040
+ */
1041
+ export interface PaginationPageConfigV3_13_1 {
1042
+ type: 'page';
1043
+ pageArg: string;
1044
+ itemsPath: string;
1045
+ totalPagesPath: string;
1046
+ }
1047
+ /**
1048
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1049
+ * via the `definition` "paginationOffsetConfig".
1050
+ */
1051
+ export interface PaginationOffsetConfigV3_13_1 {
1052
+ type: 'offset';
1053
+ offsetParam: string;
1054
+ itemsPath: string;
1055
+ resultsPath: string;
1056
+ totalPath: string;
1057
+ }
1058
+ /**
1059
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1060
+ * via the `definition` "indexedShapeQuerySingleConfig".
1061
+ */
1062
+ export interface IndexedShapeQuerySingleConfigV3_13_1 {
1063
+ name: string;
1064
+ ignoreFields?: string[];
1065
+ objectDepthLimit?: number;
1066
+ }
1067
+ /**
1068
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1069
+ * via the `definition` "formMap".
1070
+ */
1071
+ export interface FormMapV3_13_1 {
1072
+ [k: string]: FormsConfigV3_13_1;
1073
+ }
1074
+ /**
1075
+ * This interface was referenced by `FormMapV3_13_1`'s JSON-Schema definition
1076
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1077
+ *
1078
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1079
+ * via the `definition` "formsConfig".
1080
+ */
1081
+ export interface FormsConfigV3_13_1 {
1082
+ default: FormConfigV3_13_1;
1083
+ [k: string]: FormConfigV3_13_1;
1084
+ }
1085
+ /**
1086
+ * This interface was referenced by `FormsConfigV3_13_1`'s JSON-Schema definition
1087
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1088
+ *
1089
+ * This interface was referenced by `undefined`'s JSON-Schema definition
1090
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1091
+ *
1092
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1093
+ * via the `definition` "formConfig".
1094
+ */
1095
+ export interface FormConfigV3_13_1 {
1096
+ [k: string]: any;
1097
+ }
1098
+ /**
1099
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1100
+ * via the `definition` "workflowMap".
1101
+ */
1102
+ export interface WorkflowMapV3_13_1 {
1103
+ [k: string]: WorkflowV3_13_1;
1104
+ }
1105
+ /**
1106
+ * This interface was referenced by `WorkflowMapV3_13_1`'s JSON-Schema definition
1107
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1108
+ *
1109
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1110
+ * via the `definition` "workflow".
1111
+ */
1112
+ export interface WorkflowV3_13_1 {
1113
+ /**
1114
+ * machine-readable id
1115
+ */
1116
+ name: string;
1117
+ title: WorkflowNameV3_13_1;
1118
+ steps: StepsV3_13_1;
1119
+ [k: string]: any;
1120
+ }
1121
+ /**
1122
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1123
+ * via the `definition` "workflowStep".
1124
+ */
1125
+ export interface WorkflowStepV3_13_1 {
1126
+ name: NameV3_13_1;
1127
+ title: TitleV3_13_1;
1128
+ description?: DescriptionV3_13_1;
1129
+ color: ColorV3_13_1;
1130
+ live: LiveV3_13_1;
1131
+ key: KeyV3_13_1;
1132
+ }
1133
+ /**
1134
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1135
+ * via the `definition` "storedServiceMap".
1136
+ */
1137
+ export interface StoredServiceMapV3_13_1 {
1138
+ [k: string]: StoredServiceConfigV3_13_1;
1139
+ }
1140
+ /**
1141
+ * This interface was referenced by `StoredServiceMapV3_13_1`'s JSON-Schema definition
1142
+ * via the `patternProperty` "[0-9A-Za-z_-]+".
1143
+ *
1144
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1145
+ * via the `definition` "storedServiceConfig".
1146
+ */
1147
+ export interface StoredServiceConfigV3_13_1 {
1148
+ /**
1149
+ * Machine-readable identifier, should typically be the same as the property name on the services object.
1150
+ */
1151
+ id: string;
1152
+ /**
1153
+ * Human-readable name for this service.
1154
+ */
1155
+ title: string;
1156
+ /**
1157
+ * The service provider id.
1158
+ */
1159
+ provider: string;
1160
+ /**
1161
+ * A namespace to use for the imported types tied to this service.
1162
+ */
1163
+ namespace?: string;
1164
+ serviceType: ServiceTypeV3_13_1;
1165
+ authenticationType: 'oauth2' | 'basic' | 'bearer' | 'searchParams' | 'oauth2Bearer' | 'custom' | 'aws' | 'none' | 'unknown';
1166
+ authentication?: string;
1167
+ webhookId?: string;
1168
+ /**
1169
+ * Configuration options passed to and handled by the provider.
1170
+ */
1171
+ options?: {
1172
+ [k: string]: any;
1173
+ };
1174
+ }
1175
+ /**
1176
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1177
+ * via the `definition` "input".
1178
+ */
1179
+ export interface PropertySchemaV3_13_11 {
1180
+ $ref?: string;
1181
+ title?: string;
1182
+ description?: string;
1183
+ default?: any;
1184
+ readOnly?: boolean;
1185
+ multipleOf?: number;
1186
+ maximum?: number;
1187
+ exclusiveMaximum?: number;
1188
+ minimum?: number;
1189
+ exclusiveMinimum?: number;
1190
+ maxLength?: NonNegativeIntegerV3_13_1;
1191
+ minLength?: NonNegativeIntegerDefault0V3_13_1;
1192
+ pattern?: string;
1193
+ additionalItems?: PropertySchemaV3_13_1;
1194
+ items?: PropertySchemaV3_13_1;
1195
+ maxItems?: NonNegativeIntegerV3_13_1;
1196
+ minItems?: NonNegativeIntegerDefault0V3_13_1;
1197
+ uniqueItems?: boolean;
1198
+ contains?: PropertySchemaV3_13_1;
1199
+ maxProperties?: NonNegativeIntegerV3_13_1;
1200
+ minProperties?: NonNegativeIntegerDefault0V3_13_1;
1201
+ required?: StringArrayV3_13_1;
1202
+ additionalProperties?: PropertySchemaV3_13_1 | false;
1203
+ definitions?: {
1204
+ [k: string]: PropertySchemaV3_13_1;
1205
+ };
1206
+ properties?: {
1207
+ [k: string]: PropertySchemaV3_13_1;
1208
+ };
1209
+ const?: any;
1210
+ enum?: any[];
1211
+ type?: SimpleTypesV3_13_1 | SimpleTypesV3_13_1[];
1212
+ format?: string;
1213
+ contentMediaType?: string;
1214
+ contentEncoding?: string;
1215
+ allOf?: SchemaArrayV3_13_1;
1216
+ oneOf?: SchemaArrayV3_13_1;
1217
+ '@relationship'?: RelationshipV3_13_1;
1218
+ '@backReference'?: BackReferenceV3_13_1;
1219
+ '@input'?: InputV3_13_1;
1220
+ '@syncLocaleStructure'?: boolean;
1221
+ '@sensitive'?: boolean;
1222
+ '@draftjs'?: boolean;
1223
+ '@l10n'?: boolean;
1224
+ '@key'?: string;
1225
+ '@workflow'?: string;
1226
+ '@mapping'?: FieldMappingV3_13_1;
1227
+ '@tag'?: string;
1228
+ '@tags'?: string[];
1229
+ '@deprecationReason'?: string;
1230
+ '@user'?: boolean;
1231
+ '@args'?: ArgsV3_13_1;
1232
+ '@resolver'?: ResolverV3_13_1;
1233
+ '@ref'?: RefV3_13_1;
1234
+ '@derivedFrom'?: string;
1235
+ }
1236
+ /**
1237
+ * All possible options for the more specific ParameterSerializeStyleOptions types.
1238
+ *
1239
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1240
+ * via the `definition` "parameterSerializeStyleOptions".
1241
+ */
1242
+ export interface ParameterSerializeStyleOptionsV3_13_1 {
1243
+ style: 'simple' | 'label' | 'matrix' | 'form' | 'spaceDelimited' | 'pipeDelimited' | 'deepObject' | 'none';
1244
+ explode?: boolean;
1245
+ allowEmptyValue?: boolean;
1246
+ /**
1247
+ * The allowReserved keyword specifies whether the reserved characters :/?#[]@!$&'()*+,;= in parameter values are allowed to be sent as they are.
1248
+ */
1249
+ allowReserved?: boolean;
1250
+ skipEncoding?: boolean;
1251
+ }
1252
+ /**
1253
+ * All possible options for the more specific ParameterSerializeConfig types.
1254
+ *
1255
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1256
+ * via the `definition` "parameterSerializeConfig".
1257
+ */
1258
+ export interface ParameterSerializeConfigV3_13_1 {
1259
+ content?: ParameterSerializeContentOptionsV3_13_1;
1260
+ defaults?: ParameterSerializeOptionsV3_13_1;
1261
+ paths?: {
1262
+ [k: string]: ParameterSerializeOptionsV3_13_1;
1263
+ };
1264
+ }
1265
+ /**
1266
+ * All possible options for the more specific ParameterConfig types.
1267
+ *
1268
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1269
+ * via the `definition` "parameterConfig".
1270
+ */
1271
+ export interface ParameterConfigV3_13_1 {
1272
+ ops: ParameterOpListV3_13_1;
1273
+ serialize?: ParameterSerializeConfigV3_13_1;
1274
+ }
1275
+ /**
1276
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1277
+ * via the `definition` "formScalarConfig".
1278
+ */
1279
+ export interface FormScalarConfigV3_13_1 {
1280
+ widget: string;
1281
+ }
1282
+ /**
1283
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1284
+ * via the `definition` "formObjectConfig".
1285
+ */
1286
+ export interface FormObjectConfigV3_13_1 {
1287
+ widget?: string;
1288
+ order?: string[];
1289
+ properties?: {
1290
+ [k: string]: FormConfigV3_13_1;
1291
+ };
1292
+ }
1293
+ /**
1294
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1295
+ * via the `definition` "formArrayConfig".
1296
+ */
1297
+ export interface FormArrayConfigV3_13_1 {
1298
+ widget: string;
1299
+ items: FormConfigV3_13_1;
1300
+ }
1301
+ /**
1302
+ * For use with a custom auth handler on a service provider.
1303
+ *
1304
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1305
+ * via the `definition` "customAuthentication".
1306
+ */
1307
+ export interface CustomAuthenticationV3_13_1 {
1308
+ type: 'custom';
1309
+ [k: string]: any;
1310
+ }
1311
+ /**
1312
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1313
+ * via the `definition` "searchParamsAuthentication".
1314
+ */
1315
+ export interface SearchParamsAuthenticationV3_13_1 {
1316
+ type: 'searchParams';
1317
+ params: {
1318
+ name: string;
1319
+ value: string;
1320
+ }[];
1321
+ }
1322
+ /**
1323
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1324
+ * via the `definition` "bearerAuthentication".
1325
+ */
1326
+ export interface BearerAuthenticationV3_13_1 {
1327
+ type: 'bearer';
1328
+ token: string;
1329
+ prefix?: string;
1330
+ header?: string;
1331
+ }
1332
+ /**
1333
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1334
+ * via the `definition` "oauth2BearerAuthentication".
1335
+ */
1336
+ export interface OAuth2BearerAuthenticationV3_13_1 {
1337
+ type: 'oauth2Bearer';
1338
+ token: string;
1339
+ prefix?: string;
1340
+ header?: string;
1341
+ scope?: string;
1342
+ expiresAt?: string;
1343
+ }
1344
+ /**
1345
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1346
+ * via the `definition` "basicAuthentication".
1347
+ */
1348
+ export interface BasicAuthenticationV3_13_1 {
1349
+ type: 'basic';
1350
+ username: string;
1351
+ password: string;
1352
+ useIso8859?: boolean;
1353
+ }
1354
+ /**
1355
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1356
+ * via the `definition` "oauth2Authentication".
1357
+ */
1358
+ export interface OAuth2AuthenticationV3_13_1 {
1359
+ type: 'oauth2';
1360
+ grantType: 'authorizationCode' | 'clientCredentials';
1361
+ authorizationUrl?: string;
1362
+ accessTokenUrl?: string;
1363
+ clientId: string;
1364
+ clientSecret?: string;
1365
+ scope?: string;
1366
+ usePkce?: boolean;
1367
+ redirectUrl?: string;
1368
+ headerPrefix?: string;
1369
+ audience?: string;
1370
+ resource?: string;
1371
+ }
1372
+ /**
1373
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1374
+ * via the `definition` "awsAuthentication".
1375
+ */
1376
+ export interface AWSAuthenticationV3_13_1 {
1377
+ type: 'aws';
1378
+ awsAccessKeyId: string;
1379
+ awsSecretAccessKey: string;
1380
+ }
1381
+ /**
1382
+ * This interface was referenced by `ProjectSchemaV3_13_1`'s JSON-Schema
1383
+ * via the `definition` "serviceConfig".
1384
+ */
1385
+ export interface ServiceConfigV3_13_1 {
1386
+ /**
1387
+ * Machine-readable identifier, should typically be the same as the property name on the services object.
1388
+ */
1389
+ id: string;
1390
+ /**
1391
+ * Human-readable name for this service.
1392
+ */
1393
+ title: string;
1394
+ /**
1395
+ * The service provider id.
1396
+ */
1397
+ provider: string;
1398
+ /**
1399
+ * A namespace to use for the imported types tied to this service.
1400
+ */
1401
+ namespace?: string;
1402
+ serviceType: ServiceTypeV3_13_1;
1403
+ authenticationType: 'oauth2' | 'basic' | 'bearer' | 'searchParams' | 'oauth2Bearer' | 'custom' | 'aws' | 'none' | 'unknown';
1404
+ authentication?: ServiceAuthenticationV3_13_1;
1405
+ webhookId?: string;
1406
+ /**
1407
+ * Configuration options passed to and handled by the provider.
1408
+ */
1409
+ options?: {
1410
+ [k: string]: any;
1411
+ };
1412
+ }
1413
+ //# sourceMappingURL=v3.13.1.d.ts.map