@tstdl/base 0.93.178 → 0.93.180
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/api/response.js +4 -3
- package/api/server/gateway.js +9 -3
- package/audit/auditor.d.ts +1 -2
- package/audit/drizzle/{0000_lumpy_thunderball.sql → 0000_shallow_elektra.sql} +1 -1
- package/audit/drizzle/meta/0000_snapshot.json +2 -2
- package/audit/drizzle/meta/_journal.json +2 -2
- package/authentication/README.md +87 -42
- package/authentication/authentication.api.d.ts +392 -53
- package/authentication/authentication.api.js +133 -28
- package/authentication/client/api.client.d.ts +3 -3
- package/authentication/client/api.client.js +4 -4
- package/authentication/client/authentication.service.d.ts +93 -23
- package/authentication/client/authentication.service.js +113 -28
- package/authentication/client/http-client.middleware.d.ts +1 -1
- package/authentication/client/http-client.middleware.js +5 -4
- package/authentication/client/module.d.ts +1 -1
- package/authentication/client/module.js +2 -2
- package/authentication/errors/index.d.ts +1 -1
- package/authentication/errors/index.js +1 -1
- package/authentication/errors/password-requirements.error.d.ts +5 -0
- package/authentication/errors/{secret-requirements.error.js → password-requirements.error.js} +2 -2
- package/authentication/models/authentication-password.model.d.ts +8 -0
- package/authentication/models/{authentication-credentials.model.js → authentication-password.model.js} +11 -17
- package/authentication/models/authentication-session.model.d.ts +0 -2
- package/authentication/models/authentication-session.model.js +1 -7
- package/authentication/models/authentication-totp-recovery-code.model.d.ts +6 -0
- package/authentication/models/authentication-totp-recovery-code.model.js +34 -0
- package/authentication/models/authentication-totp.model.d.ts +19 -0
- package/authentication/models/authentication-totp.model.js +51 -0
- package/authentication/models/authentication-used-totp-token.model.d.ts +5 -0
- package/authentication/models/authentication-used-totp-token.model.js +32 -0
- package/authentication/models/index.d.ts +6 -3
- package/authentication/models/index.js +6 -3
- package/authentication/models/{init-secret-reset-data.model.d.ts → init-password-reset-data.model.d.ts} +3 -3
- package/authentication/models/{init-secret-reset-data.model.js → init-password-reset-data.model.js} +5 -5
- package/authentication/models/password-check-result.model.d.ts +3 -0
- package/authentication/models/{secret-check-result.model.js → password-check-result.model.js} +6 -6
- package/authentication/models/subject.model.d.ts +0 -6
- package/authentication/models/subject.model.js +0 -6
- package/authentication/models/token.model.d.ts +16 -2
- package/authentication/server/authentication-ancillary.service.d.ts +6 -6
- package/authentication/server/authentication-ancillary.service.js +1 -1
- package/authentication/server/authentication-password-requirements.validator.d.ts +55 -0
- package/authentication/server/{authentication-secret-requirements.validator.js → authentication-password-requirements.validator.js} +22 -22
- package/authentication/server/authentication.api-controller.d.ts +55 -27
- package/authentication/server/authentication.api-controller.js +214 -39
- package/authentication/server/authentication.audit.d.ts +42 -5
- package/authentication/server/authentication.service.d.ts +182 -93
- package/authentication/server/authentication.service.js +628 -206
- package/authentication/server/drizzle/{0000_soft_tag.sql → 0000_odd_echo.sql} +59 -13
- package/authentication/server/drizzle/meta/0000_snapshot.json +345 -32
- package/authentication/server/drizzle/meta/_journal.json +2 -2
- package/authentication/server/helper.d.ts +16 -16
- package/authentication/server/helper.js +33 -34
- package/authentication/server/index.d.ts +1 -1
- package/authentication/server/index.js +1 -1
- package/authentication/server/module.d.ts +2 -2
- package/authentication/server/module.js +4 -2
- package/authentication/server/schemas.d.ts +11 -7
- package/authentication/server/schemas.js +7 -3
- package/authentication/tests/authentication-password-requirements.validator.test.js +29 -0
- package/authentication/tests/authentication.api-controller.test.js +49 -15
- package/authentication/tests/authentication.client-error-handling.test.js +3 -2
- package/authentication/tests/authentication.client-middleware.test.js +5 -5
- package/authentication/tests/authentication.client-service-methods.test.js +28 -14
- package/authentication/tests/authentication.client-service-refresh.test.js +7 -6
- package/authentication/tests/authentication.client-service.test.js +10 -8
- package/authentication/tests/authentication.service.test.js +37 -29
- package/authentication/tests/authentication.test-ancillary-service.d.ts +1 -1
- package/authentication/tests/authentication.test-ancillary-service.js +1 -1
- package/authentication/tests/brute-force-protection.test.js +211 -0
- package/authentication/tests/helper.test.js +25 -21
- package/authentication/tests/password-requirements.error.test.js +14 -0
- package/authentication/tests/remember.api.test.js +22 -14
- package/authentication/tests/remember.service.test.js +23 -16
- package/authentication/tests/subject.service.test.js +2 -2
- package/authentication/tests/suspended-subject.test.d.ts +1 -0
- package/authentication/tests/suspended-subject.test.js +120 -0
- package/authentication/tests/totp.enrollment.test.d.ts +1 -0
- package/authentication/tests/totp.enrollment.test.js +123 -0
- package/authentication/tests/totp.login.test.d.ts +1 -0
- package/authentication/tests/totp.login.test.js +213 -0
- package/authentication/tests/totp.recovery-codes.test.d.ts +1 -0
- package/authentication/tests/totp.recovery-codes.test.js +97 -0
- package/authentication/tests/totp.status.test.d.ts +1 -0
- package/authentication/tests/totp.status.test.js +72 -0
- package/circuit-breaker/postgres/drizzle/{0000_cooing_korath.sql → 0000_same_captain_cross.sql} +1 -1
- package/circuit-breaker/postgres/drizzle/meta/0000_snapshot.json +2 -2
- package/circuit-breaker/postgres/drizzle/meta/_journal.json +2 -2
- package/cryptography/cryptography.d.ts +336 -0
- package/cryptography/cryptography.js +328 -0
- package/cryptography/index.d.ts +4 -0
- package/cryptography/index.js +4 -0
- package/{utils → cryptography}/jwt.d.ts +22 -4
- package/{utils → cryptography}/jwt.js +36 -18
- package/cryptography/module.d.ts +35 -0
- package/cryptography/module.js +148 -0
- package/cryptography/tests/cryptography.test.d.ts +1 -0
- package/cryptography/tests/cryptography.test.js +175 -0
- package/cryptography/tests/jwt.test.d.ts +1 -0
- package/cryptography/tests/jwt.test.js +54 -0
- package/cryptography/tests/modern.test.d.ts +1 -0
- package/cryptography/tests/modern.test.js +105 -0
- package/cryptography/tests/module.test.d.ts +1 -0
- package/cryptography/tests/module.test.js +100 -0
- package/cryptography/tests/totp.test.d.ts +1 -0
- package/cryptography/tests/totp.test.js +108 -0
- package/cryptography/totp.d.ts +96 -0
- package/cryptography/totp.js +123 -0
- package/document-management/server/drizzle/{0000_curious_nighthawk.sql → 0000_sharp_scream.sql} +21 -21
- package/document-management/server/drizzle/meta/0000_snapshot.json +22 -22
- package/document-management/server/drizzle/meta/_journal.json +2 -2
- package/document-management/server/services/document-file.service.js +1 -1
- package/errors/errors.localization.d.ts +2 -2
- package/errors/errors.localization.js +2 -2
- package/errors/index.d.ts +1 -0
- package/errors/index.js +1 -0
- package/errors/too-many-requests.error.d.ts +5 -0
- package/errors/too-many-requests.error.js +7 -0
- package/examples/api/authentication.js +5 -5
- package/examples/api/custom-authentication.js +4 -3
- package/file/server/mime-type.js +1 -1
- package/http/http-body.d.ts +1 -0
- package/http/http-body.js +3 -0
- package/image-service/imgproxy/imgproxy-image-service.d.ts +0 -1
- package/image-service/imgproxy/imgproxy-image-service.js +9 -27
- package/key-value-store/postgres/drizzle/{0000_shocking_slipstream.sql → 0000_moaning_calypso.sql} +1 -1
- package/key-value-store/postgres/drizzle/meta/0000_snapshot.json +2 -2
- package/key-value-store/postgres/drizzle/meta/_journal.json +2 -2
- package/lock/postgres/drizzle/{0000_busy_tattoo.sql → 0000_nappy_wraith.sql} +1 -1
- package/lock/postgres/drizzle/meta/0000_snapshot.json +2 -2
- package/lock/postgres/drizzle/meta/_journal.json +2 -2
- package/logger/formatters/json.js +1 -1
- package/logger/formatters/pretty-print.js +1 -1
- package/mail/drizzle/{0000_numerous_the_watchers.sql → 0000_cultured_quicksilver.sql} +2 -2
- package/mail/drizzle/meta/0000_snapshot.json +4 -4
- package/mail/drizzle/meta/_journal.json +2 -9
- package/notification/server/drizzle/{0000_wise_pyro.sql → 0000_new_tenebrous.sql} +6 -6
- package/notification/server/drizzle/meta/0000_snapshot.json +7 -7
- package/notification/server/drizzle/meta/_journal.json +2 -2
- package/notification/tests/notification-flow.test.js +1 -8
- package/notification/tests/notification-type.service.test.js +3 -3
- package/openid-connect/oidc.service.js +2 -3
- package/orm/data-types/common.js +1 -1
- package/orm/server/drizzle/schema-converter.js +9 -4
- package/orm/server/encryption.js +1 -1
- package/orm/server/module.d.ts +0 -1
- package/orm/server/module.js +0 -4
- package/orm/server/repository.d.ts +2 -1
- package/orm/server/repository.js +7 -10
- package/orm/tests/encryption.test.js +4 -6
- package/orm/tests/repository-extra-coverage.test.js +0 -2
- package/orm/tests/repository-regression.test.js +0 -3
- package/package.json +9 -8
- package/password/README.md +1 -1
- package/password/have-i-been-pwned.js +1 -1
- package/rate-limit/postgres/drizzle/{0000_watery_rage.sql → 0000_serious_sauron.sql} +1 -1
- package/rate-limit/postgres/drizzle/meta/0000_snapshot.json +2 -2
- package/rate-limit/postgres/drizzle/meta/_journal.json +2 -2
- package/rate-limit/postgres/postgres-rate-limiter.d.ts +1 -1
- package/rate-limit/postgres/postgres-rate-limiter.js +1 -1
- package/rate-limit/rate-limiter.d.ts +1 -1
- package/rpc/tests/rpc.integration.test.js +25 -31
- package/supports.d.ts +1 -0
- package/supports.js +1 -0
- package/task-queue/postgres/drizzle/{0000_faithful_daimon_hellstrom.sql → 0000_dark_ronan.sql} +5 -5
- package/task-queue/postgres/drizzle/meta/0000_snapshot.json +10 -10
- package/task-queue/postgres/drizzle/meta/_journal.json +2 -9
- package/task-queue/postgres/task-queue.js +2 -2
- package/task-queue/tests/coverage-enhancement.test.js +2 -2
- package/test/drizzle/{0000_natural_cannonball.sql → 0000_organic_gamora.sql} +2 -2
- package/test/drizzle/meta/0000_snapshot.json +3 -4
- package/test/drizzle/meta/_journal.json +2 -9
- package/testing/integration-setup.d.ts +7 -3
- package/testing/integration-setup.js +119 -96
- package/utils/alphabet.d.ts +1 -0
- package/utils/alphabet.js +1 -0
- package/utils/base32.d.ts +4 -0
- package/utils/base32.js +49 -0
- package/utils/base64.d.ts +0 -2
- package/utils/base64.js +6 -70
- package/utils/equals.d.ts +13 -3
- package/utils/equals.js +29 -9
- package/utils/index.d.ts +1 -2
- package/utils/index.js +1 -2
- package/utils/random.d.ts +1 -0
- package/utils/random.js +14 -8
- package/authentication/errors/secret-requirements.error.d.ts +0 -5
- package/authentication/models/authentication-credentials.model.d.ts +0 -10
- package/authentication/models/secret-check-result.model.d.ts +0 -3
- package/authentication/server/authentication-secret-requirements.validator.d.ts +0 -55
- package/authentication/tests/authentication-ancillary.service.test.js +0 -13
- package/authentication/tests/authentication-secret-requirements.validator.test.js +0 -29
- package/authentication/tests/secret-requirements.error.test.js +0 -14
- package/mail/drizzle/0001_married_tarantula.sql +0 -12
- package/mail/drizzle/meta/0001_snapshot.json +0 -69
- package/orm/server/tokens.d.ts +0 -1
- package/orm/server/tokens.js +0 -2
- package/task-queue/postgres/drizzle/0001_rapid_infant_terrible.sql +0 -16
- package/task-queue/postgres/drizzle/meta/0001_snapshot.json +0 -753
- package/test/drizzle/0001_closed_the_captain.sql +0 -2
- package/test/drizzle/meta/0001_snapshot.json +0 -117
- package/utils/cryptography.d.ts +0 -137
- package/utils/cryptography.js +0 -201
- /package/authentication/tests/{authentication-ancillary.service.test.d.ts → authentication-password-requirements.validator.test.d.ts} +0 -0
- /package/authentication/tests/{authentication-secret-requirements.validator.test.d.ts → brute-force-protection.test.d.ts} +0 -0
- /package/authentication/tests/{secret-requirements.error.test.d.ts → password-requirements.error.test.d.ts} +0 -0
|
@@ -1,753 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "96329b65-d76d-42aa-a5c1-097cb79cbfcf",
|
|
3
|
-
"prevId": "f8a5fa74-ffdf-4135-a006-8c8f958ddefa",
|
|
4
|
-
"version": "7",
|
|
5
|
-
"dialect": "postgresql",
|
|
6
|
-
"tables": {
|
|
7
|
-
"task_queue.task": {
|
|
8
|
-
"name": "task",
|
|
9
|
-
"schema": "task_queue",
|
|
10
|
-
"columns": {
|
|
11
|
-
"id": {
|
|
12
|
-
"name": "id",
|
|
13
|
-
"type": "uuid",
|
|
14
|
-
"primaryKey": true,
|
|
15
|
-
"notNull": true,
|
|
16
|
-
"default": "gen_random_uuid()"
|
|
17
|
-
},
|
|
18
|
-
"namespace": {
|
|
19
|
-
"name": "namespace",
|
|
20
|
-
"type": "text",
|
|
21
|
-
"primaryKey": false,
|
|
22
|
-
"notNull": true
|
|
23
|
-
},
|
|
24
|
-
"type": {
|
|
25
|
-
"name": "type",
|
|
26
|
-
"type": "text",
|
|
27
|
-
"primaryKey": false,
|
|
28
|
-
"notNull": true
|
|
29
|
-
},
|
|
30
|
-
"status": {
|
|
31
|
-
"name": "status",
|
|
32
|
-
"type": "task_status",
|
|
33
|
-
"typeSchema": "task_queue",
|
|
34
|
-
"primaryKey": false,
|
|
35
|
-
"notNull": true
|
|
36
|
-
},
|
|
37
|
-
"idempotency_key": {
|
|
38
|
-
"name": "idempotency_key",
|
|
39
|
-
"type": "text",
|
|
40
|
-
"primaryKey": false,
|
|
41
|
-
"notNull": false
|
|
42
|
-
},
|
|
43
|
-
"trace_id": {
|
|
44
|
-
"name": "trace_id",
|
|
45
|
-
"type": "text",
|
|
46
|
-
"primaryKey": false,
|
|
47
|
-
"notNull": false
|
|
48
|
-
},
|
|
49
|
-
"parent_id": {
|
|
50
|
-
"name": "parent_id",
|
|
51
|
-
"type": "uuid",
|
|
52
|
-
"primaryKey": false,
|
|
53
|
-
"notNull": false
|
|
54
|
-
},
|
|
55
|
-
"tags": {
|
|
56
|
-
"name": "tags",
|
|
57
|
-
"type": "text[]",
|
|
58
|
-
"primaryKey": false,
|
|
59
|
-
"notNull": true
|
|
60
|
-
},
|
|
61
|
-
"abort_on_dependency_failure": {
|
|
62
|
-
"name": "abort_on_dependency_failure",
|
|
63
|
-
"type": "boolean",
|
|
64
|
-
"primaryKey": false,
|
|
65
|
-
"notNull": true
|
|
66
|
-
},
|
|
67
|
-
"priority": {
|
|
68
|
-
"name": "priority",
|
|
69
|
-
"type": "integer",
|
|
70
|
-
"primaryKey": false,
|
|
71
|
-
"notNull": true
|
|
72
|
-
},
|
|
73
|
-
"unresolved_schedule_dependencies": {
|
|
74
|
-
"name": "unresolved_schedule_dependencies",
|
|
75
|
-
"type": "integer",
|
|
76
|
-
"primaryKey": false,
|
|
77
|
-
"notNull": true
|
|
78
|
-
},
|
|
79
|
-
"unresolved_complete_dependencies": {
|
|
80
|
-
"name": "unresolved_complete_dependencies",
|
|
81
|
-
"type": "integer",
|
|
82
|
-
"primaryKey": false,
|
|
83
|
-
"notNull": true
|
|
84
|
-
},
|
|
85
|
-
"token": {
|
|
86
|
-
"name": "token",
|
|
87
|
-
"type": "uuid",
|
|
88
|
-
"primaryKey": false,
|
|
89
|
-
"notNull": false
|
|
90
|
-
},
|
|
91
|
-
"creation_timestamp": {
|
|
92
|
-
"name": "creation_timestamp",
|
|
93
|
-
"type": "timestamp with time zone",
|
|
94
|
-
"primaryKey": false,
|
|
95
|
-
"notNull": true
|
|
96
|
-
},
|
|
97
|
-
"priority_age_timestamp": {
|
|
98
|
-
"name": "priority_age_timestamp",
|
|
99
|
-
"type": "timestamp with time zone",
|
|
100
|
-
"primaryKey": false,
|
|
101
|
-
"notNull": true
|
|
102
|
-
},
|
|
103
|
-
"schedule_timestamp": {
|
|
104
|
-
"name": "schedule_timestamp",
|
|
105
|
-
"type": "timestamp with time zone",
|
|
106
|
-
"primaryKey": false,
|
|
107
|
-
"notNull": true
|
|
108
|
-
},
|
|
109
|
-
"start_timestamp": {
|
|
110
|
-
"name": "start_timestamp",
|
|
111
|
-
"type": "timestamp with time zone",
|
|
112
|
-
"primaryKey": false,
|
|
113
|
-
"notNull": false
|
|
114
|
-
},
|
|
115
|
-
"time_to_live": {
|
|
116
|
-
"name": "time_to_live",
|
|
117
|
-
"type": "timestamp with time zone",
|
|
118
|
-
"primaryKey": false,
|
|
119
|
-
"notNull": false
|
|
120
|
-
},
|
|
121
|
-
"visibility_deadline": {
|
|
122
|
-
"name": "visibility_deadline",
|
|
123
|
-
"type": "timestamp with time zone",
|
|
124
|
-
"primaryKey": false,
|
|
125
|
-
"notNull": false
|
|
126
|
-
},
|
|
127
|
-
"complete_timestamp": {
|
|
128
|
-
"name": "complete_timestamp",
|
|
129
|
-
"type": "timestamp with time zone",
|
|
130
|
-
"primaryKey": false,
|
|
131
|
-
"notNull": false
|
|
132
|
-
},
|
|
133
|
-
"tries": {
|
|
134
|
-
"name": "tries",
|
|
135
|
-
"type": "integer",
|
|
136
|
-
"primaryKey": false,
|
|
137
|
-
"notNull": true
|
|
138
|
-
},
|
|
139
|
-
"progress": {
|
|
140
|
-
"name": "progress",
|
|
141
|
-
"type": "double precision",
|
|
142
|
-
"primaryKey": false,
|
|
143
|
-
"notNull": true
|
|
144
|
-
},
|
|
145
|
-
"data": {
|
|
146
|
-
"name": "data",
|
|
147
|
-
"type": "jsonb",
|
|
148
|
-
"primaryKey": false,
|
|
149
|
-
"notNull": false
|
|
150
|
-
},
|
|
151
|
-
"state": {
|
|
152
|
-
"name": "state",
|
|
153
|
-
"type": "jsonb",
|
|
154
|
-
"primaryKey": false,
|
|
155
|
-
"notNull": false
|
|
156
|
-
},
|
|
157
|
-
"result": {
|
|
158
|
-
"name": "result",
|
|
159
|
-
"type": "jsonb",
|
|
160
|
-
"primaryKey": false,
|
|
161
|
-
"notNull": false
|
|
162
|
-
},
|
|
163
|
-
"errors": {
|
|
164
|
-
"name": "errors",
|
|
165
|
-
"type": "jsonb",
|
|
166
|
-
"primaryKey": false,
|
|
167
|
-
"notNull": true
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"indexes": {
|
|
171
|
-
"task_parent_id_partial_idx": {
|
|
172
|
-
"name": "task_parent_id_partial_idx",
|
|
173
|
-
"columns": [
|
|
174
|
-
{
|
|
175
|
-
"expression": "parent_id",
|
|
176
|
-
"isExpression": false,
|
|
177
|
-
"asc": true,
|
|
178
|
-
"nulls": "last"
|
|
179
|
-
}
|
|
180
|
-
],
|
|
181
|
-
"isUnique": false,
|
|
182
|
-
"where": "\"task_queue\".\"task\".\"parent_id\" is not null",
|
|
183
|
-
"concurrently": false,
|
|
184
|
-
"method": "btree",
|
|
185
|
-
"with": {}
|
|
186
|
-
},
|
|
187
|
-
"task_namespace_complete_timestamp_partial_idx": {
|
|
188
|
-
"name": "task_namespace_complete_timestamp_partial_idx",
|
|
189
|
-
"columns": [
|
|
190
|
-
{
|
|
191
|
-
"expression": "namespace",
|
|
192
|
-
"isExpression": false,
|
|
193
|
-
"asc": true,
|
|
194
|
-
"nulls": "last"
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
"expression": "complete_timestamp",
|
|
198
|
-
"isExpression": false,
|
|
199
|
-
"asc": true,
|
|
200
|
-
"nulls": "last"
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
"isUnique": false,
|
|
204
|
-
"where": "\"task_queue\".\"task\".\"status\" in ('completed', 'cancelled', 'dead', 'timed-out', 'expired', 'skipped', 'orphaned')",
|
|
205
|
-
"concurrently": false,
|
|
206
|
-
"method": "btree",
|
|
207
|
-
"with": {}
|
|
208
|
-
},
|
|
209
|
-
"task_namespace_start_timestamp_partial_idx": {
|
|
210
|
-
"name": "task_namespace_start_timestamp_partial_idx",
|
|
211
|
-
"columns": [
|
|
212
|
-
{
|
|
213
|
-
"expression": "namespace",
|
|
214
|
-
"isExpression": false,
|
|
215
|
-
"asc": true,
|
|
216
|
-
"nulls": "last"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"expression": "start_timestamp",
|
|
220
|
-
"isExpression": false,
|
|
221
|
-
"asc": true,
|
|
222
|
-
"nulls": "last"
|
|
223
|
-
}
|
|
224
|
-
],
|
|
225
|
-
"isUnique": false,
|
|
226
|
-
"where": "\"task_queue\".\"task\".\"status\" = 'running'",
|
|
227
|
-
"concurrently": false,
|
|
228
|
-
"method": "btree",
|
|
229
|
-
"with": {}
|
|
230
|
-
},
|
|
231
|
-
"task_namespace_visibility_deadline_partial_idx": {
|
|
232
|
-
"name": "task_namespace_visibility_deadline_partial_idx",
|
|
233
|
-
"columns": [
|
|
234
|
-
{
|
|
235
|
-
"expression": "namespace",
|
|
236
|
-
"isExpression": false,
|
|
237
|
-
"asc": true,
|
|
238
|
-
"nulls": "last"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"expression": "visibility_deadline",
|
|
242
|
-
"isExpression": false,
|
|
243
|
-
"asc": true,
|
|
244
|
-
"nulls": "last"
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
"isUnique": false,
|
|
248
|
-
"where": "\"task_queue\".\"task\".\"status\" = 'running'",
|
|
249
|
-
"concurrently": false,
|
|
250
|
-
"method": "btree",
|
|
251
|
-
"with": {}
|
|
252
|
-
},
|
|
253
|
-
"task_namespace_time_to_live_partial_idx": {
|
|
254
|
-
"name": "task_namespace_time_to_live_partial_idx",
|
|
255
|
-
"columns": [
|
|
256
|
-
{
|
|
257
|
-
"expression": "namespace",
|
|
258
|
-
"isExpression": false,
|
|
259
|
-
"asc": true,
|
|
260
|
-
"nulls": "last"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"expression": "time_to_live",
|
|
264
|
-
"isExpression": false,
|
|
265
|
-
"asc": true,
|
|
266
|
-
"nulls": "last"
|
|
267
|
-
}
|
|
268
|
-
],
|
|
269
|
-
"isUnique": false,
|
|
270
|
-
"where": "\"task_queue\".\"task\".\"status\" in ('pending', 'retrying', 'waiting', 'waiting-children')",
|
|
271
|
-
"concurrently": false,
|
|
272
|
-
"method": "btree",
|
|
273
|
-
"with": {}
|
|
274
|
-
},
|
|
275
|
-
"task_namespace_priority_age_timestamp_partial_idx": {
|
|
276
|
-
"name": "task_namespace_priority_age_timestamp_partial_idx",
|
|
277
|
-
"columns": [
|
|
278
|
-
{
|
|
279
|
-
"expression": "namespace",
|
|
280
|
-
"isExpression": false,
|
|
281
|
-
"asc": true,
|
|
282
|
-
"nulls": "last"
|
|
283
|
-
},
|
|
284
|
-
{
|
|
285
|
-
"expression": "priority_age_timestamp",
|
|
286
|
-
"isExpression": false,
|
|
287
|
-
"asc": true,
|
|
288
|
-
"nulls": "last"
|
|
289
|
-
}
|
|
290
|
-
],
|
|
291
|
-
"isUnique": false,
|
|
292
|
-
"where": "\"task_queue\".\"task\".\"status\" in ('pending', 'retrying')",
|
|
293
|
-
"concurrently": false,
|
|
294
|
-
"method": "btree",
|
|
295
|
-
"with": {}
|
|
296
|
-
},
|
|
297
|
-
"task_namespace_type_priority_schedule_timestamp_partial_idx": {
|
|
298
|
-
"name": "task_namespace_type_priority_schedule_timestamp_partial_idx",
|
|
299
|
-
"columns": [
|
|
300
|
-
{
|
|
301
|
-
"expression": "namespace",
|
|
302
|
-
"isExpression": false,
|
|
303
|
-
"asc": true,
|
|
304
|
-
"nulls": "last"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"expression": "type",
|
|
308
|
-
"isExpression": false,
|
|
309
|
-
"asc": true,
|
|
310
|
-
"nulls": "last"
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
"expression": "priority",
|
|
314
|
-
"isExpression": false,
|
|
315
|
-
"asc": true,
|
|
316
|
-
"nulls": "last"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"expression": "schedule_timestamp",
|
|
320
|
-
"isExpression": false,
|
|
321
|
-
"asc": true,
|
|
322
|
-
"nulls": "last"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
"isUnique": false,
|
|
326
|
-
"where": "\"task_queue\".\"task\".\"status\" in ('pending', 'retrying')",
|
|
327
|
-
"concurrently": false,
|
|
328
|
-
"method": "btree",
|
|
329
|
-
"with": {}
|
|
330
|
-
},
|
|
331
|
-
"task_namespace_priority_schedule_timestamp_partial_idx": {
|
|
332
|
-
"name": "task_namespace_priority_schedule_timestamp_partial_idx",
|
|
333
|
-
"columns": [
|
|
334
|
-
{
|
|
335
|
-
"expression": "namespace",
|
|
336
|
-
"isExpression": false,
|
|
337
|
-
"asc": true,
|
|
338
|
-
"nulls": "last"
|
|
339
|
-
},
|
|
340
|
-
{
|
|
341
|
-
"expression": "priority",
|
|
342
|
-
"isExpression": false,
|
|
343
|
-
"asc": true,
|
|
344
|
-
"nulls": "last"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
"expression": "schedule_timestamp",
|
|
348
|
-
"isExpression": false,
|
|
349
|
-
"asc": true,
|
|
350
|
-
"nulls": "last"
|
|
351
|
-
}
|
|
352
|
-
],
|
|
353
|
-
"isUnique": false,
|
|
354
|
-
"where": "\"task_queue\".\"task\".\"status\" in ('pending', 'retrying')",
|
|
355
|
-
"concurrently": false,
|
|
356
|
-
"method": "btree",
|
|
357
|
-
"with": {}
|
|
358
|
-
},
|
|
359
|
-
"task_namespace_tags_idx": {
|
|
360
|
-
"name": "task_namespace_tags_idx",
|
|
361
|
-
"columns": [
|
|
362
|
-
{
|
|
363
|
-
"expression": "namespace",
|
|
364
|
-
"isExpression": false,
|
|
365
|
-
"asc": true,
|
|
366
|
-
"nulls": "last"
|
|
367
|
-
},
|
|
368
|
-
{
|
|
369
|
-
"expression": "tags",
|
|
370
|
-
"isExpression": false,
|
|
371
|
-
"asc": true,
|
|
372
|
-
"nulls": "last"
|
|
373
|
-
}
|
|
374
|
-
],
|
|
375
|
-
"isUnique": false,
|
|
376
|
-
"concurrently": false,
|
|
377
|
-
"method": "gin",
|
|
378
|
-
"with": {}
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
"foreignKeys": {
|
|
382
|
-
"task_parentId_task_fkey": {
|
|
383
|
-
"name": "task_parentId_task_fkey",
|
|
384
|
-
"tableFrom": "task",
|
|
385
|
-
"tableTo": "task",
|
|
386
|
-
"schemaTo": "task_queue",
|
|
387
|
-
"columnsFrom": [
|
|
388
|
-
"parent_id"
|
|
389
|
-
],
|
|
390
|
-
"columnsTo": [
|
|
391
|
-
"id"
|
|
392
|
-
],
|
|
393
|
-
"onDelete": "no action",
|
|
394
|
-
"onUpdate": "no action"
|
|
395
|
-
}
|
|
396
|
-
},
|
|
397
|
-
"compositePrimaryKeys": {},
|
|
398
|
-
"uniqueConstraints": {
|
|
399
|
-
"task_namespace_idempotency_key_unique": {
|
|
400
|
-
"name": "task_namespace_idempotency_key_unique",
|
|
401
|
-
"nullsNotDistinct": false,
|
|
402
|
-
"columns": [
|
|
403
|
-
"namespace",
|
|
404
|
-
"idempotency_key"
|
|
405
|
-
]
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
"policies": {},
|
|
409
|
-
"checkConstraints": {},
|
|
410
|
-
"isRLSEnabled": false
|
|
411
|
-
},
|
|
412
|
-
"task_queue.task_archive": {
|
|
413
|
-
"name": "task_archive",
|
|
414
|
-
"schema": "task_queue",
|
|
415
|
-
"columns": {
|
|
416
|
-
"id": {
|
|
417
|
-
"name": "id",
|
|
418
|
-
"type": "uuid",
|
|
419
|
-
"primaryKey": true,
|
|
420
|
-
"notNull": true,
|
|
421
|
-
"default": "gen_random_uuid()"
|
|
422
|
-
},
|
|
423
|
-
"namespace": {
|
|
424
|
-
"name": "namespace",
|
|
425
|
-
"type": "text",
|
|
426
|
-
"primaryKey": false,
|
|
427
|
-
"notNull": true
|
|
428
|
-
},
|
|
429
|
-
"type": {
|
|
430
|
-
"name": "type",
|
|
431
|
-
"type": "text",
|
|
432
|
-
"primaryKey": false,
|
|
433
|
-
"notNull": true
|
|
434
|
-
},
|
|
435
|
-
"status": {
|
|
436
|
-
"name": "status",
|
|
437
|
-
"type": "task_status",
|
|
438
|
-
"typeSchema": "task_queue",
|
|
439
|
-
"primaryKey": false,
|
|
440
|
-
"notNull": true
|
|
441
|
-
},
|
|
442
|
-
"idempotency_key": {
|
|
443
|
-
"name": "idempotency_key",
|
|
444
|
-
"type": "text",
|
|
445
|
-
"primaryKey": false,
|
|
446
|
-
"notNull": false
|
|
447
|
-
},
|
|
448
|
-
"trace_id": {
|
|
449
|
-
"name": "trace_id",
|
|
450
|
-
"type": "text",
|
|
451
|
-
"primaryKey": false,
|
|
452
|
-
"notNull": false
|
|
453
|
-
},
|
|
454
|
-
"parent_id": {
|
|
455
|
-
"name": "parent_id",
|
|
456
|
-
"type": "uuid",
|
|
457
|
-
"primaryKey": false,
|
|
458
|
-
"notNull": false
|
|
459
|
-
},
|
|
460
|
-
"tags": {
|
|
461
|
-
"name": "tags",
|
|
462
|
-
"type": "text[]",
|
|
463
|
-
"primaryKey": false,
|
|
464
|
-
"notNull": true
|
|
465
|
-
},
|
|
466
|
-
"abort_on_dependency_failure": {
|
|
467
|
-
"name": "abort_on_dependency_failure",
|
|
468
|
-
"type": "boolean",
|
|
469
|
-
"primaryKey": false,
|
|
470
|
-
"notNull": true
|
|
471
|
-
},
|
|
472
|
-
"priority": {
|
|
473
|
-
"name": "priority",
|
|
474
|
-
"type": "integer",
|
|
475
|
-
"primaryKey": false,
|
|
476
|
-
"notNull": true
|
|
477
|
-
},
|
|
478
|
-
"unresolved_schedule_dependencies": {
|
|
479
|
-
"name": "unresolved_schedule_dependencies",
|
|
480
|
-
"type": "integer",
|
|
481
|
-
"primaryKey": false,
|
|
482
|
-
"notNull": true
|
|
483
|
-
},
|
|
484
|
-
"unresolved_complete_dependencies": {
|
|
485
|
-
"name": "unresolved_complete_dependencies",
|
|
486
|
-
"type": "integer",
|
|
487
|
-
"primaryKey": false,
|
|
488
|
-
"notNull": true
|
|
489
|
-
},
|
|
490
|
-
"token": {
|
|
491
|
-
"name": "token",
|
|
492
|
-
"type": "uuid",
|
|
493
|
-
"primaryKey": false,
|
|
494
|
-
"notNull": false
|
|
495
|
-
},
|
|
496
|
-
"creation_timestamp": {
|
|
497
|
-
"name": "creation_timestamp",
|
|
498
|
-
"type": "timestamp with time zone",
|
|
499
|
-
"primaryKey": false,
|
|
500
|
-
"notNull": true
|
|
501
|
-
},
|
|
502
|
-
"priority_age_timestamp": {
|
|
503
|
-
"name": "priority_age_timestamp",
|
|
504
|
-
"type": "timestamp with time zone",
|
|
505
|
-
"primaryKey": false,
|
|
506
|
-
"notNull": true
|
|
507
|
-
},
|
|
508
|
-
"schedule_timestamp": {
|
|
509
|
-
"name": "schedule_timestamp",
|
|
510
|
-
"type": "timestamp with time zone",
|
|
511
|
-
"primaryKey": false,
|
|
512
|
-
"notNull": true
|
|
513
|
-
},
|
|
514
|
-
"start_timestamp": {
|
|
515
|
-
"name": "start_timestamp",
|
|
516
|
-
"type": "timestamp with time zone",
|
|
517
|
-
"primaryKey": false,
|
|
518
|
-
"notNull": false
|
|
519
|
-
},
|
|
520
|
-
"time_to_live": {
|
|
521
|
-
"name": "time_to_live",
|
|
522
|
-
"type": "timestamp with time zone",
|
|
523
|
-
"primaryKey": false,
|
|
524
|
-
"notNull": false
|
|
525
|
-
},
|
|
526
|
-
"visibility_deadline": {
|
|
527
|
-
"name": "visibility_deadline",
|
|
528
|
-
"type": "timestamp with time zone",
|
|
529
|
-
"primaryKey": false,
|
|
530
|
-
"notNull": false
|
|
531
|
-
},
|
|
532
|
-
"complete_timestamp": {
|
|
533
|
-
"name": "complete_timestamp",
|
|
534
|
-
"type": "timestamp with time zone",
|
|
535
|
-
"primaryKey": false,
|
|
536
|
-
"notNull": false
|
|
537
|
-
},
|
|
538
|
-
"tries": {
|
|
539
|
-
"name": "tries",
|
|
540
|
-
"type": "integer",
|
|
541
|
-
"primaryKey": false,
|
|
542
|
-
"notNull": true
|
|
543
|
-
},
|
|
544
|
-
"progress": {
|
|
545
|
-
"name": "progress",
|
|
546
|
-
"type": "double precision",
|
|
547
|
-
"primaryKey": false,
|
|
548
|
-
"notNull": true
|
|
549
|
-
},
|
|
550
|
-
"data": {
|
|
551
|
-
"name": "data",
|
|
552
|
-
"type": "jsonb",
|
|
553
|
-
"primaryKey": false,
|
|
554
|
-
"notNull": false
|
|
555
|
-
},
|
|
556
|
-
"state": {
|
|
557
|
-
"name": "state",
|
|
558
|
-
"type": "jsonb",
|
|
559
|
-
"primaryKey": false,
|
|
560
|
-
"notNull": false
|
|
561
|
-
},
|
|
562
|
-
"result": {
|
|
563
|
-
"name": "result",
|
|
564
|
-
"type": "jsonb",
|
|
565
|
-
"primaryKey": false,
|
|
566
|
-
"notNull": false
|
|
567
|
-
},
|
|
568
|
-
"errors": {
|
|
569
|
-
"name": "errors",
|
|
570
|
-
"type": "jsonb",
|
|
571
|
-
"primaryKey": false,
|
|
572
|
-
"notNull": true
|
|
573
|
-
}
|
|
574
|
-
},
|
|
575
|
-
"indexes": {
|
|
576
|
-
"task_archive_namespace_complete_timestamp_idx": {
|
|
577
|
-
"name": "task_archive_namespace_complete_timestamp_idx",
|
|
578
|
-
"columns": [
|
|
579
|
-
{
|
|
580
|
-
"expression": "namespace",
|
|
581
|
-
"isExpression": false,
|
|
582
|
-
"asc": true,
|
|
583
|
-
"nulls": "last"
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
"expression": "complete_timestamp",
|
|
587
|
-
"isExpression": false,
|
|
588
|
-
"asc": true,
|
|
589
|
-
"nulls": "last"
|
|
590
|
-
}
|
|
591
|
-
],
|
|
592
|
-
"isUnique": false,
|
|
593
|
-
"concurrently": false,
|
|
594
|
-
"method": "btree",
|
|
595
|
-
"with": {}
|
|
596
|
-
}
|
|
597
|
-
},
|
|
598
|
-
"foreignKeys": {},
|
|
599
|
-
"compositePrimaryKeys": {},
|
|
600
|
-
"uniqueConstraints": {},
|
|
601
|
-
"policies": {},
|
|
602
|
-
"checkConstraints": {},
|
|
603
|
-
"isRLSEnabled": false
|
|
604
|
-
},
|
|
605
|
-
"task_queue.task_dependency": {
|
|
606
|
-
"name": "task_dependency",
|
|
607
|
-
"schema": "task_queue",
|
|
608
|
-
"columns": {
|
|
609
|
-
"id": {
|
|
610
|
-
"name": "id",
|
|
611
|
-
"type": "uuid",
|
|
612
|
-
"primaryKey": true,
|
|
613
|
-
"notNull": true,
|
|
614
|
-
"default": "gen_random_uuid()"
|
|
615
|
-
},
|
|
616
|
-
"task_id": {
|
|
617
|
-
"name": "task_id",
|
|
618
|
-
"type": "uuid",
|
|
619
|
-
"primaryKey": false,
|
|
620
|
-
"notNull": true
|
|
621
|
-
},
|
|
622
|
-
"dependency_task_id": {
|
|
623
|
-
"name": "dependency_task_id",
|
|
624
|
-
"type": "uuid",
|
|
625
|
-
"primaryKey": false,
|
|
626
|
-
"notNull": true
|
|
627
|
-
},
|
|
628
|
-
"type": {
|
|
629
|
-
"name": "type",
|
|
630
|
-
"type": "task_dependency_type",
|
|
631
|
-
"typeSchema": "task_queue",
|
|
632
|
-
"primaryKey": false,
|
|
633
|
-
"notNull": true
|
|
634
|
-
},
|
|
635
|
-
"required_statuses": {
|
|
636
|
-
"name": "required_statuses",
|
|
637
|
-
"type": "task_status[]",
|
|
638
|
-
"typeSchema": "task_queue",
|
|
639
|
-
"primaryKey": false,
|
|
640
|
-
"notNull": true
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
"indexes": {
|
|
644
|
-
"task_dependency_dependency_task_id_type_idx": {
|
|
645
|
-
"name": "task_dependency_dependency_task_id_type_idx",
|
|
646
|
-
"columns": [
|
|
647
|
-
{
|
|
648
|
-
"expression": "dependency_task_id",
|
|
649
|
-
"isExpression": false,
|
|
650
|
-
"asc": true,
|
|
651
|
-
"nulls": "last"
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"expression": "type",
|
|
655
|
-
"isExpression": false,
|
|
656
|
-
"asc": true,
|
|
657
|
-
"nulls": "last"
|
|
658
|
-
}
|
|
659
|
-
],
|
|
660
|
-
"isUnique": false,
|
|
661
|
-
"concurrently": false,
|
|
662
|
-
"method": "btree",
|
|
663
|
-
"with": {}
|
|
664
|
-
}
|
|
665
|
-
},
|
|
666
|
-
"foreignKeys": {
|
|
667
|
-
"task_dependency_dependencyTaskId_task_fkey": {
|
|
668
|
-
"name": "task_dependency_dependencyTaskId_task_fkey",
|
|
669
|
-
"tableFrom": "task_dependency",
|
|
670
|
-
"tableTo": "task",
|
|
671
|
-
"schemaTo": "task_queue",
|
|
672
|
-
"columnsFrom": [
|
|
673
|
-
"dependency_task_id"
|
|
674
|
-
],
|
|
675
|
-
"columnsTo": [
|
|
676
|
-
"id"
|
|
677
|
-
],
|
|
678
|
-
"onDelete": "cascade",
|
|
679
|
-
"onUpdate": "no action"
|
|
680
|
-
},
|
|
681
|
-
"task_dependency_taskId_task_fkey": {
|
|
682
|
-
"name": "task_dependency_taskId_task_fkey",
|
|
683
|
-
"tableFrom": "task_dependency",
|
|
684
|
-
"tableTo": "task",
|
|
685
|
-
"schemaTo": "task_queue",
|
|
686
|
-
"columnsFrom": [
|
|
687
|
-
"task_id"
|
|
688
|
-
],
|
|
689
|
-
"columnsTo": [
|
|
690
|
-
"id"
|
|
691
|
-
],
|
|
692
|
-
"onDelete": "cascade",
|
|
693
|
-
"onUpdate": "no action"
|
|
694
|
-
}
|
|
695
|
-
},
|
|
696
|
-
"compositePrimaryKeys": {},
|
|
697
|
-
"uniqueConstraints": {
|
|
698
|
-
"task_dependency_task_id_dependency_task_id_type_unique": {
|
|
699
|
-
"name": "task_dependency_task_id_dependency_task_id_type_unique",
|
|
700
|
-
"nullsNotDistinct": false,
|
|
701
|
-
"columns": [
|
|
702
|
-
"task_id",
|
|
703
|
-
"dependency_task_id",
|
|
704
|
-
"type"
|
|
705
|
-
]
|
|
706
|
-
}
|
|
707
|
-
},
|
|
708
|
-
"policies": {},
|
|
709
|
-
"checkConstraints": {},
|
|
710
|
-
"isRLSEnabled": false
|
|
711
|
-
}
|
|
712
|
-
},
|
|
713
|
-
"enums": {
|
|
714
|
-
"task_queue.task_dependency_type": {
|
|
715
|
-
"name": "task_dependency_type",
|
|
716
|
-
"schema": "task_queue",
|
|
717
|
-
"values": [
|
|
718
|
-
"schedule",
|
|
719
|
-
"complete",
|
|
720
|
-
"child"
|
|
721
|
-
]
|
|
722
|
-
},
|
|
723
|
-
"task_queue.task_status": {
|
|
724
|
-
"name": "task_status",
|
|
725
|
-
"schema": "task_queue",
|
|
726
|
-
"values": [
|
|
727
|
-
"pending",
|
|
728
|
-
"running",
|
|
729
|
-
"completed",
|
|
730
|
-
"cancelled",
|
|
731
|
-
"dead",
|
|
732
|
-
"waiting",
|
|
733
|
-
"waiting-children",
|
|
734
|
-
"paused",
|
|
735
|
-
"retrying",
|
|
736
|
-
"timed-out",
|
|
737
|
-
"expired",
|
|
738
|
-
"skipped",
|
|
739
|
-
"orphaned"
|
|
740
|
-
]
|
|
741
|
-
}
|
|
742
|
-
},
|
|
743
|
-
"schemas": {},
|
|
744
|
-
"sequences": {},
|
|
745
|
-
"roles": {},
|
|
746
|
-
"policies": {},
|
|
747
|
-
"views": {},
|
|
748
|
-
"_meta": {
|
|
749
|
-
"columns": {},
|
|
750
|
-
"schemas": {},
|
|
751
|
-
"tables": {}
|
|
752
|
-
}
|
|
753
|
-
}
|