@jskit-ai/agent-docs 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/DISTR_AGENT.md +25 -0
- package/guide/agent/app-extras/assistant.md +636 -0
- package/guide/agent/app-extras/realtime.md +223 -0
- package/guide/agent/app-setup/a-more-interesting-shell.md +643 -0
- package/guide/agent/app-setup/authentication.md +948 -0
- package/guide/agent/app-setup/console.md +316 -0
- package/guide/agent/app-setup/database-layer.md +775 -0
- package/guide/agent/app-setup/initial-scaffolding.md +714 -0
- package/guide/agent/app-setup/multi-homing.md +655 -0
- package/guide/agent/app-setup/users.md +355 -0
- package/guide/agent/app-setup/working-with-the-jskit-cli.md +983 -0
- package/guide/agent/generators/advanced-cruds.md +923 -0
- package/guide/agent/generators/crud-generators.md +556 -0
- package/guide/agent/generators/intro.md +63 -0
- package/guide/agent/generators/ui-generators.md +648 -0
- package/guide/agent/index.md +39 -0
- package/guide/human/app-extras/assistant.md +695 -0
- package/guide/human/app-extras/realtime.md +270 -0
- package/guide/human/app-setup/a-more-interesting-shell.md +734 -0
- package/guide/human/app-setup/authentication.md +963 -0
- package/guide/human/app-setup/console.md +352 -0
- package/guide/human/app-setup/database-layer.md +822 -0
- package/guide/human/app-setup/initial-scaffolding.md +738 -0
- package/guide/human/app-setup/multi-homing.md +795 -0
- package/guide/human/app-setup/users.md +404 -0
- package/guide/human/app-setup/working-with-the-jskit-cli.md +997 -0
- package/guide/human/generators/advanced-cruds.md +923 -0
- package/guide/human/generators/crud-generators.md +556 -0
- package/guide/human/generators/intro.md +109 -0
- package/guide/human/generators/ui-generators.md +665 -0
- package/guide/human/index.md +39 -0
- package/package.json +28 -0
- package/reference/autogen/KERNEL_MAP.md +536 -0
- package/reference/autogen/README.md +44 -0
- package/reference/autogen/packages/agent-docs.md +13 -0
- package/reference/autogen/packages/assistant-core.md +310 -0
- package/reference/autogen/packages/assistant-runtime.md +219 -0
- package/reference/autogen/packages/assistant.md +73 -0
- package/reference/autogen/packages/auth-core.md +352 -0
- package/reference/autogen/packages/auth-provider-supabase-core.md +223 -0
- package/reference/autogen/packages/auth-web.md +267 -0
- package/reference/autogen/packages/console-core.md +116 -0
- package/reference/autogen/packages/console-web.md +37 -0
- package/reference/autogen/packages/crud-core.md +283 -0
- package/reference/autogen/packages/crud-server-generator.md +220 -0
- package/reference/autogen/packages/crud-ui-generator.md +154 -0
- package/reference/autogen/packages/database-runtime-mysql.md +61 -0
- package/reference/autogen/packages/database-runtime-postgres.md +39 -0
- package/reference/autogen/packages/database-runtime.md +216 -0
- package/reference/autogen/packages/http-runtime.md +213 -0
- package/reference/autogen/packages/kernel.md +1350 -0
- package/reference/autogen/packages/realtime.md +95 -0
- package/reference/autogen/packages/shell-web.md +349 -0
- package/reference/autogen/packages/storage-runtime.md +39 -0
- package/reference/autogen/packages/ui-generator.md +101 -0
- package/reference/autogen/packages/uploads-image-web.md +76 -0
- package/reference/autogen/packages/uploads-runtime.md +85 -0
- package/reference/autogen/packages/users-core.md +307 -0
- package/reference/autogen/packages/users-web.md +473 -0
- package/reference/autogen/packages/workspaces-core.md +415 -0
- package/reference/autogen/packages/workspaces-web.md +372 -0
- package/reference/autogen/tooling/config-eslint.md +52 -0
- package/reference/autogen/tooling/create-app.md +194 -0
- package/reference/autogen/tooling/jskit-catalog.md +27 -0
- package/reference/autogen/tooling/jskit-cli.md +624 -0
- package/reference/autogen/tooling/test-support.md +27 -0
- package/reference/autogen/tooling/testUtils.md +31 -0
- package/templates/APP_BLUEPRINT.md +57 -0
- package/workflow/app-state.md +33 -0
- package/workflow/bootstrap.md +24 -0
- package/workflow/feature-delivery.md +21 -0
- package/workflow/review.md +22 -0
- package/workflow/scoping.md +26 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# packages/database-runtime-mysql
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/database-runtime-mysql`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/database-runtime-mysql/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/client/index.js`
|
|
18
|
+
Exports
|
|
19
|
+
- None
|
|
20
|
+
|
|
21
|
+
### `src/server/providers/DatabaseRuntimeMysqlServiceProvider.js`
|
|
22
|
+
Exports
|
|
23
|
+
- `DatabaseRuntimeMysqlServiceProvider`
|
|
24
|
+
|
|
25
|
+
### `src/shared/dialect.js`
|
|
26
|
+
Exports
|
|
27
|
+
- `DIALECT_ID`
|
|
28
|
+
- `getDialectId()`
|
|
29
|
+
|
|
30
|
+
### `src/shared/index.js`
|
|
31
|
+
Exports
|
|
32
|
+
- `DIALECT_ID`
|
|
33
|
+
- `getDialectId`
|
|
34
|
+
- `introspectCrudTableSnapshot`
|
|
35
|
+
|
|
36
|
+
### `src/shared/introspectCrudTable.js`
|
|
37
|
+
Exports
|
|
38
|
+
- `introspectCrudTableSnapshot(knex, { tableName = "", idColumn = "id" } = {})`
|
|
39
|
+
Local functions
|
|
40
|
+
- `requireKnexRaw(knex)`
|
|
41
|
+
- `requireTableName(value)`
|
|
42
|
+
- `normalizeRows(rawResult)`
|
|
43
|
+
- `normalizeDbSchemaName(rows = [])`
|
|
44
|
+
- `toBoolean(value)`
|
|
45
|
+
- `toNullableNumber(value)`
|
|
46
|
+
- `normalizeColumnDefault(value)`
|
|
47
|
+
- `parseEnumValues(columnType = "")`
|
|
48
|
+
- `resolveTypeKind(column)`
|
|
49
|
+
- `normalizeColumn(row = {})`
|
|
50
|
+
- `normalizePrimaryKeyColumns(rows = [])`
|
|
51
|
+
- `normalizeIndexes(rows = [])`
|
|
52
|
+
- `normalizeForeignKeys(rows = [])`
|
|
53
|
+
- `normalizeCheckConstraints(rows = [])`
|
|
54
|
+
- `requireIdColumn(columns, idColumn)`
|
|
55
|
+
- `requirePrimaryKeyContainsId(primaryKeyColumns, idColumn)`
|
|
56
|
+
|
|
57
|
+
### root
|
|
58
|
+
|
|
59
|
+
### `package.descriptor.mjs`
|
|
60
|
+
Exports
|
|
61
|
+
- None
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# packages/database-runtime-postgres
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/database-runtime-postgres`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/database-runtime-postgres/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/client/index.js`
|
|
18
|
+
Exports
|
|
19
|
+
- None
|
|
20
|
+
|
|
21
|
+
### `src/server/providers/DatabaseRuntimePostgresServiceProvider.js`
|
|
22
|
+
Exports
|
|
23
|
+
- `DatabaseRuntimePostgresServiceProvider`
|
|
24
|
+
|
|
25
|
+
### `src/shared/dialect.js`
|
|
26
|
+
Exports
|
|
27
|
+
- `DIALECT_ID`
|
|
28
|
+
- `getDialectId()`
|
|
29
|
+
|
|
30
|
+
### `src/shared/index.js`
|
|
31
|
+
Exports
|
|
32
|
+
- `DIALECT_ID`
|
|
33
|
+
- `getDialectId`
|
|
34
|
+
|
|
35
|
+
### root
|
|
36
|
+
|
|
37
|
+
### `package.descriptor.mjs`
|
|
38
|
+
Exports
|
|
39
|
+
- None
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# packages/database-runtime
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/database-runtime`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/database-runtime/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/client/index.js`
|
|
18
|
+
Exports
|
|
19
|
+
- None
|
|
20
|
+
|
|
21
|
+
### `src/server/providers/DatabaseRuntimeServiceProvider.js`
|
|
22
|
+
Exports
|
|
23
|
+
- `DatabaseRuntimeServiceProvider`
|
|
24
|
+
Local functions
|
|
25
|
+
- `resolveDatabaseEnv(scope)`
|
|
26
|
+
- `resolveDriverDialectId(driver)`
|
|
27
|
+
- `loadKnexFactory()`
|
|
28
|
+
- `resolveRegisteredDriver(scope)`
|
|
29
|
+
- `resolveRegisteredDrivers(scope)`
|
|
30
|
+
- `resolveSingleRegisteredDriver(scope)`
|
|
31
|
+
- `createKnexConfig(scope)`
|
|
32
|
+
- `createKnexInstance(scope)`
|
|
33
|
+
|
|
34
|
+
### `src/shared/databaseClient.js`
|
|
35
|
+
Exports
|
|
36
|
+
- `normalizeText`
|
|
37
|
+
- `normalizeDatabaseClient(value, { allowEmpty = false } = {})`
|
|
38
|
+
- `toKnexClientId(databaseClient)`
|
|
39
|
+
|
|
40
|
+
### `src/shared/databaseConnection.js`
|
|
41
|
+
Exports
|
|
42
|
+
- `parseDatabaseUrl(databaseUrl, { context = "DATABASE_URL", allowEmpty = false } = {})`
|
|
43
|
+
- `resolveDatabaseClientFromEnvironment(env = {}, { allowEmpty = false } = {})`
|
|
44
|
+
- `resolveDatabaseConnectionFromEnvironment(env = {}, { defaultHost = "localhost", defaultPort = 3306, context = "database runtime" } = {})`
|
|
45
|
+
- `resolveKnexConnectionFromEnvironment(env = {}, { client = "", defaultHost = "localhost", defaultPort = 3306, context = "database runtime" } = {})`
|
|
46
|
+
Local functions
|
|
47
|
+
- `toPositiveInteger(value, fallback)`
|
|
48
|
+
|
|
49
|
+
### `src/shared/dateUtils.js`
|
|
50
|
+
Exports
|
|
51
|
+
- `normalizeDateInput(value)`
|
|
52
|
+
- `toIsoString(value)`
|
|
53
|
+
- `toInsertDateTime(dateLike, fallback = new Date())`
|
|
54
|
+
- `toNullableDateTime(value)`
|
|
55
|
+
- `toDatabaseDateTimeUtc(value)`
|
|
56
|
+
Local functions
|
|
57
|
+
- `toDateOrThrow(value)`
|
|
58
|
+
- `pad(value, size = 2)`
|
|
59
|
+
|
|
60
|
+
### `src/shared/dialect.js`
|
|
61
|
+
Exports
|
|
62
|
+
- `normalizeDialect(value)`
|
|
63
|
+
- `detectDialectFromClient(client)`
|
|
64
|
+
|
|
65
|
+
### `src/shared/duplicateEntry.js`
|
|
66
|
+
Exports
|
|
67
|
+
- `isDuplicateEntryError(error, { dialect = "", client = null } = {})`
|
|
68
|
+
Local functions
|
|
69
|
+
- `isMysqlDuplicateEntryError(error)`
|
|
70
|
+
- `isPostgresDuplicateEntryError(error)`
|
|
71
|
+
|
|
72
|
+
### `src/shared/index.js`
|
|
73
|
+
Exports
|
|
74
|
+
- `DatabaseRuntimeError`
|
|
75
|
+
- `TransactionManagerError`
|
|
76
|
+
- `RepositoryError`
|
|
77
|
+
- `TransactionManager`
|
|
78
|
+
- `createTransactionManager`
|
|
79
|
+
- `BaseRepository`
|
|
80
|
+
- `buildPaginationMeta`
|
|
81
|
+
- `registerDatabaseRuntime`
|
|
82
|
+
- `normalizeDateInput`
|
|
83
|
+
- `toIsoString`
|
|
84
|
+
- `toInsertDateTime`
|
|
85
|
+
- `toNullableDateTime`
|
|
86
|
+
- `toDatabaseDateTimeUtc`
|
|
87
|
+
- `normalizeDialect`
|
|
88
|
+
- `detectDialectFromClient`
|
|
89
|
+
- `normalizeText`
|
|
90
|
+
- `normalizeDatabaseClient`
|
|
91
|
+
- `toKnexClientId`
|
|
92
|
+
- `parseDatabaseUrl`
|
|
93
|
+
- `resolveDatabaseClientFromEnvironment`
|
|
94
|
+
- `resolveDatabaseConnectionFromEnvironment`
|
|
95
|
+
- `resolveKnexConnectionFromEnvironment`
|
|
96
|
+
- `isDuplicateEntryError`
|
|
97
|
+
- `normalizePath`
|
|
98
|
+
- `jsonTextExpression`
|
|
99
|
+
- `whereJsonTextEquals`
|
|
100
|
+
- `DEFAULT_VISIBILITY_COLUMNS`
|
|
101
|
+
- `applyVisibility`
|
|
102
|
+
- `applyVisibilityOwners`
|
|
103
|
+
- `createRepositoryScope`
|
|
104
|
+
- `resolveQueryOptions`
|
|
105
|
+
- `resolveRepoClient`
|
|
106
|
+
- `applyForUpdate`
|
|
107
|
+
- `mapRowNullable`
|
|
108
|
+
- `parseJsonObject`
|
|
109
|
+
- `stringifyJsonObject`
|
|
110
|
+
- `parseMetadataJson`
|
|
111
|
+
- `stringifyMetadataJson`
|
|
112
|
+
- `normalizeMetadataJsonInput`
|
|
113
|
+
- `normalizeNullableString`
|
|
114
|
+
- `normalizeDbRecordId`
|
|
115
|
+
- `resolveInsertedRecordId`
|
|
116
|
+
- `normalizeIdList`
|
|
117
|
+
- `normalizeCountRow`
|
|
118
|
+
- `parseJsonValue`
|
|
119
|
+
- `toDbJson`
|
|
120
|
+
- `runInTransaction`
|
|
121
|
+
- `createWithTransaction`
|
|
122
|
+
- `normalizeBatchSize`
|
|
123
|
+
- `normalizeCutoffDateOrThrow`
|
|
124
|
+
- `normalizeDeletedRowCount`
|
|
125
|
+
- `deleteRowsOlderThan`
|
|
126
|
+
- `retentionTestables`
|
|
127
|
+
- `createRepoTransaction`
|
|
128
|
+
|
|
129
|
+
### `src/shared/json.js`
|
|
130
|
+
Exports
|
|
131
|
+
- `normalizePath(path)`
|
|
132
|
+
- `jsonTextExpression({ client, column, path })`
|
|
133
|
+
- `whereJsonTextEquals(query, { column, path, value })`
|
|
134
|
+
|
|
135
|
+
### `src/shared/repository.js`
|
|
136
|
+
Exports
|
|
137
|
+
- `BaseRepository`
|
|
138
|
+
- `buildPaginationMeta({ total, page, pageSize } = {})`
|
|
139
|
+
|
|
140
|
+
### `src/shared/repositoryOptions.js`
|
|
141
|
+
Exports
|
|
142
|
+
- `resolveQueryOptions(options = {})`
|
|
143
|
+
- `resolveRepoClient(dbClient, options = {})`
|
|
144
|
+
- `applyForUpdate(query, options = {})`
|
|
145
|
+
- `mapRowNullable(mapper)`
|
|
146
|
+
- `parseJsonObject(value, fallback = {})`
|
|
147
|
+
- `stringifyJsonObject(value, fallback = "{}")`
|
|
148
|
+
- `parseMetadataJson(value, fallback = {})`
|
|
149
|
+
- `stringifyMetadataJson(metadata, fallback = "{}")`
|
|
150
|
+
- `normalizeMetadataJsonInput(value, fallback = null)`
|
|
151
|
+
- `normalizeNullableString(value, { trim = true } = {})`
|
|
152
|
+
- `normalizeDbRecordId(value, { fallback = null } = {})`
|
|
153
|
+
- `resolveInsertedRecordId(insertResult, { fallback = null } = {})`
|
|
154
|
+
- `normalizeIdList(values, { parseValue } = {})`
|
|
155
|
+
- `normalizeCountRow(row)`
|
|
156
|
+
- `parseJsonValue(value, fallback = null, options = {})`
|
|
157
|
+
- `toDbJson(value)`
|
|
158
|
+
- `runInTransaction(knex, callback)`
|
|
159
|
+
- `createWithTransaction(knex)`
|
|
160
|
+
|
|
161
|
+
### `src/shared/repositoryScope.js`
|
|
162
|
+
Exports
|
|
163
|
+
- `createRepositoryScope(knex, tableName, options = {})`
|
|
164
|
+
Local functions
|
|
165
|
+
- `normalizeTableName(value)`
|
|
166
|
+
- `normalizeIdColumn(value)`
|
|
167
|
+
|
|
168
|
+
### `src/shared/retention.js`
|
|
169
|
+
Exports
|
|
170
|
+
- `normalizeBatchSize(value, { fallback = 1000, max = 10_000 } = {})`
|
|
171
|
+
- `normalizeCutoffDateOrThrow(value)`
|
|
172
|
+
- `normalizeDeletedRowCount(value)`
|
|
173
|
+
- `deleteRowsOlderThan({ client, tableName, dateColumn, cutoffDate, batchSize, applyFilters })`
|
|
174
|
+
- `__testables`
|
|
175
|
+
|
|
176
|
+
### `src/shared/runtime.js`
|
|
177
|
+
Exports
|
|
178
|
+
- `registerDatabaseRuntime(app, { knex } = {})`
|
|
179
|
+
Local functions
|
|
180
|
+
- `ensureContainerInterface(app)`
|
|
181
|
+
- `ensureKnexInterface(knex)`
|
|
182
|
+
- `ensureKnexBinding(app, knex)`
|
|
183
|
+
- `ensureTransactionManagerBinding(app)`
|
|
184
|
+
|
|
185
|
+
### `src/shared/runtimeErrors.js`
|
|
186
|
+
Exports
|
|
187
|
+
- `DatabaseRuntimeError`
|
|
188
|
+
- `TransactionManagerError`
|
|
189
|
+
- `RepositoryError`
|
|
190
|
+
|
|
191
|
+
### `src/shared/transactionManager.js`
|
|
192
|
+
Exports
|
|
193
|
+
- `TransactionManager`
|
|
194
|
+
- `createTransactionManager(options = {})`
|
|
195
|
+
|
|
196
|
+
### `src/shared/transactions.js`
|
|
197
|
+
Exports
|
|
198
|
+
- `createRepoTransaction(dbClient)`
|
|
199
|
+
|
|
200
|
+
### `src/shared/visibility.js`
|
|
201
|
+
Exports
|
|
202
|
+
- `DEFAULT_VISIBILITY_COLUMNS`
|
|
203
|
+
- `applyVisibility(queryBuilder, visibilityContext = {})`
|
|
204
|
+
- `applyVisibilityOwners(payload = {}, visibilityContext = {})`
|
|
205
|
+
|
|
206
|
+
### templates
|
|
207
|
+
|
|
208
|
+
### `templates/knexfile.js`
|
|
209
|
+
Exports
|
|
210
|
+
- `default`
|
|
211
|
+
|
|
212
|
+
### root
|
|
213
|
+
|
|
214
|
+
### `package.descriptor.mjs`
|
|
215
|
+
Exports
|
|
216
|
+
- None
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
# packages/http-runtime
|
|
2
|
+
|
|
3
|
+
Generated by `npm run agent-docs:build`.
|
|
4
|
+
Do not edit manually.
|
|
5
|
+
|
|
6
|
+
Generated inventory for `packages/http-runtime`.
|
|
7
|
+
Use this on demand; do not load the full index at startup.
|
|
8
|
+
|
|
9
|
+
## Scope
|
|
10
|
+
- Source: `packages/http-runtime/**/*{.js,.mjs,.cjs,.vue}`
|
|
11
|
+
- Excludes: `test/`, `tests/`, `__tests__/`, `*.test.*`, `*.spec.*`, `*.vitest.*`, `node_modules/`, `dist/`, `coverage/`, `docs/`, `LEGACY/`
|
|
12
|
+
|
|
13
|
+
## Sections
|
|
14
|
+
|
|
15
|
+
### src
|
|
16
|
+
|
|
17
|
+
### `src/client/index.js`
|
|
18
|
+
Exports
|
|
19
|
+
- `createHttpClient`
|
|
20
|
+
- `createTransientRetryHttpClient`
|
|
21
|
+
- `normalizeFieldErrors`
|
|
22
|
+
- `resolveFieldErrors`
|
|
23
|
+
- `createValidationFailure`
|
|
24
|
+
- `createHttpError`
|
|
25
|
+
- `createNetworkError`
|
|
26
|
+
- `DEFAULT_RETRYABLE_CSRF_ERROR_CODES`
|
|
27
|
+
- `shouldRetryForCsrfFailure`
|
|
28
|
+
- `normalizeHeaderName`
|
|
29
|
+
- `hasHeader`
|
|
30
|
+
- `setHeaderIfMissing`
|
|
31
|
+
- `HttpValidatorsClientProvider`
|
|
32
|
+
- `HttpClientRuntimeClientProvider`
|
|
33
|
+
|
|
34
|
+
### `src/client/providers/HttpClientRuntimeClientProvider.js`
|
|
35
|
+
Exports
|
|
36
|
+
- `HttpClientRuntimeClientProvider`
|
|
37
|
+
|
|
38
|
+
### `src/client/providers/HttpValidatorsClientProvider.js`
|
|
39
|
+
Exports
|
|
40
|
+
- `HttpValidatorsClientProvider`
|
|
41
|
+
|
|
42
|
+
### `src/client/transientRetryHttpClient.js`
|
|
43
|
+
Exports
|
|
44
|
+
- `createTransientRetryHttpClient(options = {})`
|
|
45
|
+
Local functions
|
|
46
|
+
- `sleep(delayMs)`
|
|
47
|
+
- `shouldRetryTransientHttpFailure(error, method, attemptIndex)`
|
|
48
|
+
- `requestWithTransientRetry(executor, method)`
|
|
49
|
+
|
|
50
|
+
### `src/client/validationErrors.js`
|
|
51
|
+
Exports
|
|
52
|
+
- `normalizeFieldErrors`
|
|
53
|
+
- `resolveFieldErrors`
|
|
54
|
+
- `createValidationFailure({ error = "Validation failed.", code = "validation_failed", fieldErrors = {} } = {})`
|
|
55
|
+
|
|
56
|
+
### `src/server/providers/HttpClientRuntimeServiceProvider.js`
|
|
57
|
+
Exports
|
|
58
|
+
- `HttpClientRuntimeServiceProvider`
|
|
59
|
+
|
|
60
|
+
### `src/server/providers/HttpValidatorsServiceProvider.js`
|
|
61
|
+
Exports
|
|
62
|
+
- `HttpValidatorsServiceProvider`
|
|
63
|
+
|
|
64
|
+
### `src/shared/clientRuntime/client.js`
|
|
65
|
+
Exports
|
|
66
|
+
- `createHttpClient(options = {})`
|
|
67
|
+
Local functions
|
|
68
|
+
- `normalizeMethod(method)`
|
|
69
|
+
- `resolveUnsafeMethods(value)`
|
|
70
|
+
- `resolveFetch()`
|
|
71
|
+
- `isObjectBody(value)`
|
|
72
|
+
- `parseJsonSafely(response)`
|
|
73
|
+
- `emitNdjsonLine(line, handlers)`
|
|
74
|
+
- `readNdjsonStream(response, handlers = {})`
|
|
75
|
+
|
|
76
|
+
### `src/shared/clientRuntime/errors.js`
|
|
77
|
+
Exports
|
|
78
|
+
- `createHttpError(response, data = {})`
|
|
79
|
+
- `createNetworkError(cause)`
|
|
80
|
+
|
|
81
|
+
### `src/shared/clientRuntime/headers.js`
|
|
82
|
+
Exports
|
|
83
|
+
- `normalizeHeaderName(name)`
|
|
84
|
+
- `hasHeader(headers, name)`
|
|
85
|
+
- `setHeaderIfMissing(headers, name, value)`
|
|
86
|
+
|
|
87
|
+
### `src/shared/clientRuntime/index.js`
|
|
88
|
+
Exports
|
|
89
|
+
- `createHttpClient`
|
|
90
|
+
- `createHttpError`
|
|
91
|
+
- `createNetworkError`
|
|
92
|
+
- `DEFAULT_RETRYABLE_CSRF_ERROR_CODES`
|
|
93
|
+
- `shouldRetryForCsrfFailure`
|
|
94
|
+
- `normalizeHeaderName`
|
|
95
|
+
- `hasHeader`
|
|
96
|
+
- `setHeaderIfMissing`
|
|
97
|
+
|
|
98
|
+
### `src/shared/clientRuntime/retry.js`
|
|
99
|
+
Exports
|
|
100
|
+
- `DEFAULT_RETRYABLE_CSRF_ERROR_CODES`
|
|
101
|
+
- `shouldRetryForCsrfFailure({ response, method, state, data, unsafeMethods, retryableErrorCodes = DEFAULT_RETRYABLE_CSRF_ERROR_CODES })`
|
|
102
|
+
Local functions
|
|
103
|
+
- `toUpperStringSet(values, fallback = [])`
|
|
104
|
+
|
|
105
|
+
### `src/shared/index.js`
|
|
106
|
+
Exports
|
|
107
|
+
- `createPaginationQuerySchema`
|
|
108
|
+
- `registerTypeBoxFormats`
|
|
109
|
+
- `__testables`
|
|
110
|
+
- `fieldErrorsSchema`
|
|
111
|
+
- `apiErrorDetailsSchema`
|
|
112
|
+
- `apiErrorResponseSchema`
|
|
113
|
+
- `apiValidationErrorResponseSchema`
|
|
114
|
+
- `fastifyDefaultErrorResponseSchema`
|
|
115
|
+
- `STANDARD_ERROR_STATUS_CODES`
|
|
116
|
+
- `passthroughErrorResponses`
|
|
117
|
+
- `withStandardErrorResponses`
|
|
118
|
+
- `enumSchema`
|
|
119
|
+
- `createCursorPagedListResponseSchema`
|
|
120
|
+
- `createResource`
|
|
121
|
+
- `createCommand`
|
|
122
|
+
- `resolveSchemaMessages`
|
|
123
|
+
- `resolveFieldSchema`
|
|
124
|
+
- `resolveIssueField`
|
|
125
|
+
- `resolveMissingRequiredFields`
|
|
126
|
+
- `resolveIssueMessageFromSchema`
|
|
127
|
+
- `mapOperationIssues`
|
|
128
|
+
- `validateOperationSection`
|
|
129
|
+
- `validateOperationInput`
|
|
130
|
+
|
|
131
|
+
### `src/shared/providers/singletonApiProvider.js`
|
|
132
|
+
Exports
|
|
133
|
+
- `SingletonApiProvider`
|
|
134
|
+
|
|
135
|
+
### `src/shared/support/fieldErrors.js`
|
|
136
|
+
Exports
|
|
137
|
+
- `isRecord`
|
|
138
|
+
- `normalizeFieldErrors(value)`
|
|
139
|
+
- `resolveFieldErrors(value = null)`
|
|
140
|
+
|
|
141
|
+
### `src/shared/validators/command.js`
|
|
142
|
+
Exports
|
|
143
|
+
- `createCommand({ input, output, idempotent = null, invalidates = [] } = {})`
|
|
144
|
+
|
|
145
|
+
### `src/shared/validators/errorResponses.js`
|
|
146
|
+
Exports
|
|
147
|
+
- `fieldErrorsSchema`
|
|
148
|
+
- `apiErrorDetailsSchema`
|
|
149
|
+
- `apiErrorResponseSchema`
|
|
150
|
+
- `apiValidationErrorResponseSchema`
|
|
151
|
+
- `fastifyDefaultErrorResponseSchema`
|
|
152
|
+
- `STANDARD_ERROR_STATUS_CODES`
|
|
153
|
+
- `passthroughErrorResponses(successResponses)`
|
|
154
|
+
- `withStandardErrorResponses(successResponses, { includeValidation400 = false } = {})`
|
|
155
|
+
- `enumSchema(values)`
|
|
156
|
+
|
|
157
|
+
### `src/shared/validators/httpValidatorsApi.js`
|
|
158
|
+
Exports
|
|
159
|
+
- `HTTP_VALIDATORS_API`
|
|
160
|
+
|
|
161
|
+
### `src/shared/validators/operationMessages.js`
|
|
162
|
+
Exports
|
|
163
|
+
- `resolveSchemaMessages(schema = {})`
|
|
164
|
+
- `resolveFieldSchema(schema = {}, field = "")`
|
|
165
|
+
- `resolveIssueField(issue = {})`
|
|
166
|
+
- `resolveMissingRequiredFields(issue = {})`
|
|
167
|
+
- `resolveIssueMessageFromSchema(field, issue, schema = {})`
|
|
168
|
+
- `mapOperationIssues(issues = [], schema = {})`
|
|
169
|
+
Local functions
|
|
170
|
+
- `decodePointerSegment(value = "")`
|
|
171
|
+
- `resolveSchemaPathSegments(schemaPath = "")`
|
|
172
|
+
- `resolveFieldFromSchemaPath(schemaPath = "")`
|
|
173
|
+
- `resolveSchemaNode(schema = {}, schemaPath = "")`
|
|
174
|
+
- `collectSchemaFieldCandidates(schema = {})`
|
|
175
|
+
- `resolveConditionalIssueField(issue = {}, schema = {})`
|
|
176
|
+
- `resolveFallbackIssueField(issue = {}, schema = {})`
|
|
177
|
+
- `shouldSuppressRootUnionGlobalIssue(issue = {}, fieldErrors = {})`
|
|
178
|
+
|
|
179
|
+
### `src/shared/validators/operationValidation.js`
|
|
180
|
+
Exports
|
|
181
|
+
- `validateOperationSection({ operation = {}, section = "bodyValidator", value, context = {} } = {})`
|
|
182
|
+
- `validateOperationInput({ operation = {}, input = {}, context = {} } = {})`
|
|
183
|
+
Local functions
|
|
184
|
+
- `defaultNormalize(value)`
|
|
185
|
+
- `resolveOperationSection(operation = {}, section = "bodyValidator")`
|
|
186
|
+
|
|
187
|
+
### `src/shared/validators/paginationQuery.js`
|
|
188
|
+
Exports
|
|
189
|
+
- `createPaginationQuerySchema({ defaultPage = 1, defaultPageSize = 10, minPage = 1, minPageSize = 1, maxPageSize = 100 } = {})`
|
|
190
|
+
|
|
191
|
+
### `src/shared/validators/resource.js`
|
|
192
|
+
Exports
|
|
193
|
+
- `createCursorPagedListResponseSchema(itemSchema)`
|
|
194
|
+
- `createResource({ record, create, replace, patch, list = null, listItem = null } = {})`
|
|
195
|
+
|
|
196
|
+
### `src/shared/validators/schemaUtils.js`
|
|
197
|
+
Exports
|
|
198
|
+
- `asSchema(value, label)`
|
|
199
|
+
|
|
200
|
+
### `src/shared/validators/typeboxFormats.js`
|
|
201
|
+
Exports
|
|
202
|
+
- `registerTypeBoxFormats()`
|
|
203
|
+
- `__testables`
|
|
204
|
+
Local functions
|
|
205
|
+
- `isStrictUuid(value)`
|
|
206
|
+
- `isStrictIsoUtcDateTime(value)`
|
|
207
|
+
- `registerTypeBoxFormatsWith(formatRegistry)`
|
|
208
|
+
|
|
209
|
+
### root
|
|
210
|
+
|
|
211
|
+
### `package.descriptor.mjs`
|
|
212
|
+
Exports
|
|
213
|
+
- None
|