@imbue-ai/detent 1.0.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.
Files changed (104) hide show
  1. package/README.md +246 -0
  2. package/dist/src/builtinPatterns/any.json +3 -0
  3. package/dist/src/builtinPatterns/builtinPatterns/any.json +3 -0
  4. package/dist/src/builtinPatterns.d.ts +5 -0
  5. package/dist/src/builtinPatterns.d.ts.map +1 -0
  6. package/dist/src/builtinPatterns.js +50 -0
  7. package/dist/src/builtinPatterns.js.map +1 -0
  8. package/dist/src/check.d.ts +2 -0
  9. package/dist/src/check.d.ts.map +1 -0
  10. package/dist/src/check.js +8 -0
  11. package/dist/src/check.js.map +1 -0
  12. package/dist/src/cli.d.ts +3 -0
  13. package/dist/src/cli.d.ts.map +1 -0
  14. package/dist/src/cli.js +64 -0
  15. package/dist/src/cli.js.map +1 -0
  16. package/dist/src/config.d.ts +18 -0
  17. package/dist/src/config.d.ts.map +1 -0
  18. package/dist/src/config.js +157 -0
  19. package/dist/src/config.js.map +1 -0
  20. package/dist/src/curl.d.ts +5 -0
  21. package/dist/src/curl.d.ts.map +1 -0
  22. package/dist/src/curl.js +394 -0
  23. package/dist/src/curl.js.map +1 -0
  24. package/dist/src/decomposedRequest.d.ts +24 -0
  25. package/dist/src/decomposedRequest.d.ts.map +1 -0
  26. package/dist/src/decomposedRequest.js +51 -0
  27. package/dist/src/decomposedRequest.js.map +1 -0
  28. package/dist/src/detentConfig.d.ts +15 -0
  29. package/dist/src/detentConfig.d.ts.map +1 -0
  30. package/dist/src/detentConfig.js +169 -0
  31. package/dist/src/detentConfig.js.map +1 -0
  32. package/dist/src/dump.d.ts +6 -0
  33. package/dist/src/dump.d.ts.map +1 -0
  34. package/dist/src/dump.js +14 -0
  35. package/dist/src/dump.js.map +1 -0
  36. package/dist/src/environment.d.ts +3 -0
  37. package/dist/src/environment.d.ts.map +1 -0
  38. package/dist/src/environment.js +15 -0
  39. package/dist/src/environment.js.map +1 -0
  40. package/dist/src/index.d.ts +9 -0
  41. package/dist/src/index.d.ts.map +1 -0
  42. package/dist/src/index.js +7 -0
  43. package/dist/src/index.js.map +1 -0
  44. package/dist/src/patterns/builtin/any.json +3 -0
  45. package/dist/src/patterns/builtin/builtin/any.json +3 -0
  46. package/dist/src/patterns/builtin/builtin/aws.json +326 -0
  47. package/dist/src/patterns/builtin/builtin/calendly.json +274 -0
  48. package/dist/src/patterns/builtin/builtin/coolify.json +238 -0
  49. package/dist/src/patterns/builtin/builtin/discord.json +157 -0
  50. package/dist/src/patterns/builtin/builtin/dropbox.json +115 -0
  51. package/dist/src/patterns/builtin/builtin/figma.json +228 -0
  52. package/dist/src/patterns/builtin/builtin/github.json +248 -0
  53. package/dist/src/patterns/builtin/builtin/gitlab.json +262 -0
  54. package/dist/src/patterns/builtin/builtin/google-analytics.json +155 -0
  55. package/dist/src/patterns/builtin/builtin/google-calendar.json +227 -0
  56. package/dist/src/patterns/builtin/builtin/google-directions.json +67 -0
  57. package/dist/src/patterns/builtin/builtin/google-docs.json +102 -0
  58. package/dist/src/patterns/builtin/builtin/google-drive.json +162 -0
  59. package/dist/src/patterns/builtin/builtin/google-gmail.json +257 -0
  60. package/dist/src/patterns/builtin/builtin/google-people.json +142 -0
  61. package/dist/src/patterns/builtin/builtin/google-sheets.json +115 -0
  62. package/dist/src/patterns/builtin/builtin/linear.json +12 -0
  63. package/dist/src/patterns/builtin/builtin/mailchimp.json +263 -0
  64. package/dist/src/patterns/builtin/builtin/notion.json +230 -0
  65. package/dist/src/patterns/builtin/builtin/sentry.json +172 -0
  66. package/dist/src/patterns/builtin/builtin/slack.json +221 -0
  67. package/dist/src/patterns/builtin/builtin/stripe.json +347 -0
  68. package/dist/src/patterns/builtin/builtin/telegram.json +89 -0
  69. package/dist/src/patterns/builtin/builtin/umami.json +172 -0
  70. package/dist/src/patterns/builtin/builtin/yelp.json +147 -0
  71. package/dist/src/patterns/builtin/builtin/zoom.json +192 -0
  72. package/dist/src/patterns/requestPattern.d.ts +33 -0
  73. package/dist/src/patterns/requestPattern.d.ts.map +1 -0
  74. package/dist/src/patterns/requestPattern.js +157 -0
  75. package/dist/src/patterns/requestPattern.js.map +1 -0
  76. package/dist/src/requestPattern.d.ts +15 -0
  77. package/dist/src/requestPattern.d.ts.map +1 -0
  78. package/dist/src/requestPattern.js +35 -0
  79. package/dist/src/requestPattern.js.map +1 -0
  80. package/dist/tests/builtinPatterns.test.d.ts +2 -0
  81. package/dist/tests/builtinPatterns.test.d.ts.map +1 -0
  82. package/dist/tests/builtinPatterns.test.js +1293 -0
  83. package/dist/tests/builtinPatterns.test.js.map +1 -0
  84. package/dist/tests/check.test.d.ts +2 -0
  85. package/dist/tests/check.test.d.ts.map +1 -0
  86. package/dist/tests/check.test.js +671 -0
  87. package/dist/tests/check.test.js.map +1 -0
  88. package/dist/tests/cli.test.d.ts +2 -0
  89. package/dist/tests/cli.test.d.ts.map +1 -0
  90. package/dist/tests/cli.test.js +77 -0
  91. package/dist/tests/cli.test.js.map +1 -0
  92. package/dist/tests/codeQuality.test.d.ts +2 -0
  93. package/dist/tests/codeQuality.test.d.ts.map +1 -0
  94. package/dist/tests/codeQuality.test.js +15 -0
  95. package/dist/tests/codeQuality.test.js.map +1 -0
  96. package/dist/tests/curl.test.d.ts +2 -0
  97. package/dist/tests/curl.test.d.ts.map +1 -0
  98. package/dist/tests/curl.test.js +241 -0
  99. package/dist/tests/curl.test.js.map +1 -0
  100. package/dist/tests/dump.test.d.ts +2 -0
  101. package/dist/tests/dump.test.d.ts.map +1 -0
  102. package/dist/tests/dump.test.js +154 -0
  103. package/dist/tests/dump.test.js.map +1 -0
  104. package/package.json +67 -0
@@ -0,0 +1,274 @@
1
+ {
2
+ "calendly-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "api.calendly.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "calendly-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "calendly-write-all": {
23
+ "properties": {
24
+ "method": {
25
+ "enum": [
26
+ "POST",
27
+ "PUT",
28
+ "PATCH",
29
+ "DELETE"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "method"
35
+ ]
36
+ },
37
+ "calendly-read-scheduled-events": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/(scheduled_events|invitee_no_shows)(/.*)?$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "calendly-write-scheduled-events": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "DELETE"
58
+ ]
59
+ },
60
+ "path": {
61
+ "type": "string",
62
+ "pattern": "^/(scheduled_events/[^/]+/cancellation|invitees(/[^/]+/no_show)?|invitee_no_shows(/.*)?)$"
63
+ }
64
+ },
65
+ "required": [
66
+ "method",
67
+ "path"
68
+ ]
69
+ },
70
+ "calendly-read-event-types": {
71
+ "properties": {
72
+ "method": {
73
+ "const": "GET"
74
+ },
75
+ "path": {
76
+ "type": "string",
77
+ "pattern": "^/(event_types|event_type_available_times|event_type_memberships)(/.*)?$"
78
+ }
79
+ },
80
+ "required": [
81
+ "method",
82
+ "path"
83
+ ]
84
+ },
85
+ "calendly-write-event-types": {
86
+ "properties": {
87
+ "method": {
88
+ "enum": [
89
+ "POST",
90
+ "PATCH"
91
+ ]
92
+ },
93
+ "path": {
94
+ "type": "string",
95
+ "pattern": "^/(event_types|one_off_event_types)(/.*)?$"
96
+ }
97
+ },
98
+ "required": [
99
+ "method",
100
+ "path"
101
+ ]
102
+ },
103
+ "calendly-read-availability": {
104
+ "properties": {
105
+ "method": {
106
+ "const": "GET"
107
+ },
108
+ "path": {
109
+ "type": "string",
110
+ "pattern": "^/(user_busy_times|user_availability_schedules|event_type_availability_schedules)(/.*)?$"
111
+ }
112
+ },
113
+ "required": [
114
+ "method",
115
+ "path"
116
+ ]
117
+ },
118
+ "calendly-write-availability": {
119
+ "properties": {
120
+ "method": {
121
+ "const": "PATCH"
122
+ },
123
+ "path": {
124
+ "type": "string",
125
+ "pattern": "^/event_type_availability_schedules/[^/]+$"
126
+ }
127
+ },
128
+ "required": [
129
+ "method",
130
+ "path"
131
+ ]
132
+ },
133
+ "calendly-read-users": {
134
+ "properties": {
135
+ "method": {
136
+ "const": "GET"
137
+ },
138
+ "path": {
139
+ "type": "string",
140
+ "pattern": "^/users(/.*)?$"
141
+ }
142
+ },
143
+ "required": [
144
+ "method",
145
+ "path"
146
+ ]
147
+ },
148
+ "calendly-read-organizations": {
149
+ "properties": {
150
+ "method": {
151
+ "const": "GET"
152
+ },
153
+ "path": {
154
+ "type": "string",
155
+ "pattern": "^/(organizations|organization_memberships|organization_invitations)(/.*)?$"
156
+ }
157
+ },
158
+ "required": [
159
+ "method",
160
+ "path"
161
+ ]
162
+ },
163
+ "calendly-write-organizations": {
164
+ "properties": {
165
+ "method": {
166
+ "enum": [
167
+ "POST",
168
+ "DELETE"
169
+ ]
170
+ },
171
+ "path": {
172
+ "type": "string",
173
+ "pattern": "^/(organization_invitations|organization_memberships)(/.*)?$"
174
+ }
175
+ },
176
+ "required": [
177
+ "method",
178
+ "path"
179
+ ]
180
+ },
181
+ "calendly-read-webhooks": {
182
+ "properties": {
183
+ "method": {
184
+ "const": "GET"
185
+ },
186
+ "path": {
187
+ "type": "string",
188
+ "pattern": "^/webhook_subscriptions(/.*)?$"
189
+ }
190
+ },
191
+ "required": [
192
+ "method",
193
+ "path"
194
+ ]
195
+ },
196
+ "calendly-write-webhooks": {
197
+ "properties": {
198
+ "method": {
199
+ "enum": [
200
+ "POST",
201
+ "DELETE"
202
+ ]
203
+ },
204
+ "path": {
205
+ "type": "string",
206
+ "pattern": "^/webhook_subscriptions(/.*)?$"
207
+ }
208
+ },
209
+ "required": [
210
+ "method",
211
+ "path"
212
+ ]
213
+ },
214
+ "calendly-read-routing-forms": {
215
+ "properties": {
216
+ "method": {
217
+ "const": "GET"
218
+ },
219
+ "path": {
220
+ "type": "string",
221
+ "pattern": "^/(routing_forms|routing_form_submissions)(/.*)?$"
222
+ }
223
+ },
224
+ "required": [
225
+ "method",
226
+ "path"
227
+ ]
228
+ },
229
+ "calendly-write-scheduling-links": {
230
+ "properties": {
231
+ "method": {
232
+ "const": "POST"
233
+ },
234
+ "path": {
235
+ "type": "string",
236
+ "pattern": "^/scheduling_links$"
237
+ }
238
+ },
239
+ "required": [
240
+ "method",
241
+ "path"
242
+ ]
243
+ },
244
+ "calendly-write-shares": {
245
+ "properties": {
246
+ "method": {
247
+ "const": "POST"
248
+ },
249
+ "path": {
250
+ "type": "string",
251
+ "pattern": "^/shares$"
252
+ }
253
+ },
254
+ "required": [
255
+ "method",
256
+ "path"
257
+ ]
258
+ },
259
+ "calendly-write-data-compliance": {
260
+ "properties": {
261
+ "method": {
262
+ "const": "POST"
263
+ },
264
+ "path": {
265
+ "type": "string",
266
+ "pattern": "^/data_compliance/(deletion_event|invitee_deletion)$"
267
+ }
268
+ },
269
+ "required": [
270
+ "method",
271
+ "path"
272
+ ]
273
+ }
274
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "coolify-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "app.coolify.io"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "coolify-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "coolify-write-all": {
23
+ "properties": {
24
+ "method": {
25
+ "enum": [
26
+ "POST",
27
+ "PUT",
28
+ "PATCH",
29
+ "DELETE"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "method"
35
+ ]
36
+ },
37
+ "coolify-read-applications": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/api/v[0-9]+/applications(/.*)?$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "coolify-write-applications": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "PUT",
58
+ "PATCH",
59
+ "DELETE"
60
+ ]
61
+ },
62
+ "path": {
63
+ "type": "string",
64
+ "pattern": "^/api/v[0-9]+/applications(/.*)?$"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path"
70
+ ]
71
+ },
72
+ "coolify-deployments": {
73
+ "properties": {
74
+ "path": {
75
+ "type": "string",
76
+ "pattern": "^/api/v[0-9]+/deploy(ments)?(/.*)?$"
77
+ }
78
+ },
79
+ "required": [
80
+ "path"
81
+ ]
82
+ },
83
+ "coolify-read-databases": {
84
+ "properties": {
85
+ "method": {
86
+ "const": "GET"
87
+ },
88
+ "path": {
89
+ "type": "string",
90
+ "pattern": "^/api/v[0-9]+/databases(/.*)?$"
91
+ }
92
+ },
93
+ "required": [
94
+ "method",
95
+ "path"
96
+ ]
97
+ },
98
+ "coolify-write-databases": {
99
+ "properties": {
100
+ "method": {
101
+ "enum": [
102
+ "POST",
103
+ "PUT",
104
+ "PATCH",
105
+ "DELETE"
106
+ ]
107
+ },
108
+ "path": {
109
+ "type": "string",
110
+ "pattern": "^/api/v[0-9]+/databases(/.*)?$"
111
+ }
112
+ },
113
+ "required": [
114
+ "method",
115
+ "path"
116
+ ]
117
+ },
118
+ "coolify-read-servers": {
119
+ "properties": {
120
+ "method": {
121
+ "const": "GET"
122
+ },
123
+ "path": {
124
+ "type": "string",
125
+ "pattern": "^/api/v[0-9]+/servers(/.*)?$"
126
+ }
127
+ },
128
+ "required": [
129
+ "method",
130
+ "path"
131
+ ]
132
+ },
133
+ "coolify-write-servers": {
134
+ "properties": {
135
+ "method": {
136
+ "enum": [
137
+ "POST",
138
+ "PUT",
139
+ "PATCH",
140
+ "DELETE"
141
+ ]
142
+ },
143
+ "path": {
144
+ "type": "string",
145
+ "pattern": "^/api/v[0-9]+/servers(/.*)?$"
146
+ }
147
+ },
148
+ "required": [
149
+ "method",
150
+ "path"
151
+ ]
152
+ },
153
+ "coolify-read-services": {
154
+ "properties": {
155
+ "method": {
156
+ "const": "GET"
157
+ },
158
+ "path": {
159
+ "type": "string",
160
+ "pattern": "^/api/v[0-9]+/services(/.*)?$"
161
+ }
162
+ },
163
+ "required": [
164
+ "method",
165
+ "path"
166
+ ]
167
+ },
168
+ "coolify-write-services": {
169
+ "properties": {
170
+ "method": {
171
+ "enum": [
172
+ "POST",
173
+ "PUT",
174
+ "PATCH",
175
+ "DELETE"
176
+ ]
177
+ },
178
+ "path": {
179
+ "type": "string",
180
+ "pattern": "^/api/v[0-9]+/services(/.*)?$"
181
+ }
182
+ },
183
+ "required": [
184
+ "method",
185
+ "path"
186
+ ]
187
+ },
188
+ "coolify-read-projects": {
189
+ "properties": {
190
+ "method": {
191
+ "const": "GET"
192
+ },
193
+ "path": {
194
+ "type": "string",
195
+ "pattern": "^/api/v[0-9]+/projects(/.*)?$"
196
+ }
197
+ },
198
+ "required": [
199
+ "method",
200
+ "path"
201
+ ]
202
+ },
203
+ "coolify-write-projects": {
204
+ "properties": {
205
+ "method": {
206
+ "enum": [
207
+ "POST",
208
+ "PUT",
209
+ "PATCH",
210
+ "DELETE"
211
+ ]
212
+ },
213
+ "path": {
214
+ "type": "string",
215
+ "pattern": "^/api/v[0-9]+/projects(/.*)?$"
216
+ }
217
+ },
218
+ "required": [
219
+ "method",
220
+ "path"
221
+ ]
222
+ },
223
+ "coolify-read-teams": {
224
+ "properties": {
225
+ "method": {
226
+ "const": "GET"
227
+ },
228
+ "path": {
229
+ "type": "string",
230
+ "pattern": "^/api/v[0-9]+/teams(/.*)?$"
231
+ }
232
+ },
233
+ "required": [
234
+ "method",
235
+ "path"
236
+ ]
237
+ }
238
+ }
@@ -0,0 +1,157 @@
1
+ {
2
+ "discord-api": {
3
+ "properties": {
4
+ "domain": {
5
+ "const": "discord.com"
6
+ }
7
+ },
8
+ "required": [
9
+ "domain"
10
+ ]
11
+ },
12
+ "discord-read-all": {
13
+ "properties": {
14
+ "method": {
15
+ "const": "GET"
16
+ }
17
+ },
18
+ "required": [
19
+ "method"
20
+ ]
21
+ },
22
+ "discord-write-all": {
23
+ "properties": {
24
+ "method": {
25
+ "enum": [
26
+ "POST",
27
+ "PUT",
28
+ "PATCH",
29
+ "DELETE"
30
+ ]
31
+ }
32
+ },
33
+ "required": [
34
+ "method"
35
+ ]
36
+ },
37
+ "discord-read-messages": {
38
+ "properties": {
39
+ "method": {
40
+ "const": "GET"
41
+ },
42
+ "path": {
43
+ "type": "string",
44
+ "pattern": "^/api/v[0-9]+/channels/[^/]+/messages(/.*)?$"
45
+ }
46
+ },
47
+ "required": [
48
+ "method",
49
+ "path"
50
+ ]
51
+ },
52
+ "discord-write-messages": {
53
+ "properties": {
54
+ "method": {
55
+ "enum": [
56
+ "POST",
57
+ "PUT",
58
+ "PATCH",
59
+ "DELETE"
60
+ ]
61
+ },
62
+ "path": {
63
+ "type": "string",
64
+ "pattern": "^/api/v[0-9]+/channels/[^/]+/messages(/.*)?$"
65
+ }
66
+ },
67
+ "required": [
68
+ "method",
69
+ "path"
70
+ ]
71
+ },
72
+ "discord-read-channels": {
73
+ "properties": {
74
+ "method": {
75
+ "const": "GET"
76
+ },
77
+ "path": {
78
+ "type": "string",
79
+ "pattern": "^/api/v[0-9]+/channels(/.*)?$"
80
+ }
81
+ },
82
+ "required": [
83
+ "method",
84
+ "path"
85
+ ]
86
+ },
87
+ "discord-write-channels": {
88
+ "properties": {
89
+ "method": {
90
+ "enum": [
91
+ "POST",
92
+ "PUT",
93
+ "PATCH",
94
+ "DELETE"
95
+ ]
96
+ },
97
+ "path": {
98
+ "type": "string",
99
+ "pattern": "^/api/v[0-9]+/channels(/.*)?$"
100
+ }
101
+ },
102
+ "required": [
103
+ "method",
104
+ "path"
105
+ ]
106
+ },
107
+ "discord-read-guilds": {
108
+ "properties": {
109
+ "method": {
110
+ "const": "GET"
111
+ },
112
+ "path": {
113
+ "type": "string",
114
+ "pattern": "^/api/v[0-9]+/guilds(/.*)?$"
115
+ }
116
+ },
117
+ "required": [
118
+ "method",
119
+ "path"
120
+ ]
121
+ },
122
+ "discord-write-guilds": {
123
+ "properties": {
124
+ "method": {
125
+ "enum": [
126
+ "POST",
127
+ "PUT",
128
+ "PATCH",
129
+ "DELETE"
130
+ ]
131
+ },
132
+ "path": {
133
+ "type": "string",
134
+ "pattern": "^/api/v[0-9]+/guilds(/.*)?$"
135
+ }
136
+ },
137
+ "required": [
138
+ "method",
139
+ "path"
140
+ ]
141
+ },
142
+ "discord-read-users": {
143
+ "properties": {
144
+ "method": {
145
+ "const": "GET"
146
+ },
147
+ "path": {
148
+ "type": "string",
149
+ "pattern": "^/api/v[0-9]+/users(/.*)?$"
150
+ }
151
+ },
152
+ "required": [
153
+ "method",
154
+ "path"
155
+ ]
156
+ }
157
+ }