atmn 2.0.33 → 2.0.35

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 (40) hide show
  1. package/dist/bin.js +1409 -188
  2. package/dist/index.js +220 -19
  3. package/dist/tsconfig.tsbuildinfo +1 -1
  4. package/package.json +2 -2
  5. package/src/actions/pull/webhooks/appendWebhook.ts +84 -0
  6. package/src/actions/pull/webhooks/applyWebhooksPull.ts +111 -0
  7. package/src/actions/pull/webhooks/locateWebhook.ts +22 -0
  8. package/src/actions/pull/webhooks/removeWebhookEnv.ts +141 -0
  9. package/src/actions/pull/webhooks/types.ts +20 -0
  10. package/src/actions/pull/webhooks/updateWebhook.ts +138 -0
  11. package/src/actions/pull.ts +32 -2
  12. package/src/actions/push/pushLanesError.ts +47 -0
  13. package/src/actions/push.ts +220 -60
  14. package/src/actions/webhooks/applyWebhooks.ts +52 -0
  15. package/src/actions/webhooks/isDashboardWebhook.ts +9 -0
  16. package/src/actions/webhooks/newWebhookId.ts +4 -0
  17. package/src/actions/webhooks/previewWebhooks.ts +40 -0
  18. package/src/actions/webhooks/resolveWebhookEnv.ts +34 -0
  19. package/src/actions/webhooks/resolveWebhooksForEnv.ts +29 -0
  20. package/src/actions/webhooks/types/webhookEnv.ts +9 -0
  21. package/src/actions/webhooks/webhookSecretName.ts +22 -0
  22. package/src/actions/webhooks/writeWebhookSecrets.ts +55 -0
  23. package/src/cli.ts +20 -1
  24. package/src/config/loadConfig.ts +3 -0
  25. package/src/generated/apiRoutes.ts +165 -1
  26. package/src/generated/client.ts +239 -1
  27. package/src/generated/emit.ts +20 -1
  28. package/src/generated/emitRuntime.ts +8 -0
  29. package/src/generated/isLocalWebhookUrl.ts +64 -0
  30. package/src/generated/lintRules.ts +95 -0
  31. package/src/generated/lintRuntime.ts +113 -10
  32. package/src/generated/sandboxName.ts +52 -0
  33. package/src/generated/skills.ts +10 -10
  34. package/src/generated/webhooks.ts +36 -0
  35. package/src/generated/wire.ts +32 -5
  36. package/src/index.ts +1 -0
  37. package/src/render/renderPreview.ts +17 -2
  38. package/src/render/renderWebhooks.ts +92 -0
  39. package/src/surgery/appendPropertyEdit.ts +9 -3
  40. package/src/surgery/patchFixturePaths.ts +57 -5
@@ -4048,7 +4048,8 @@ export const API_ROUTES: readonly ApiRoute[] = [
4048
4048
  name: "name",
4049
4049
  type: "string",
4050
4050
  required: true,
4051
- description: "A name for the sandbox, unique within your organization.",
4051
+ description:
4052
+ "A name for the sandbox, unique within your organization. No spaces, and it can't be `live` or `sandbox`.",
4052
4053
  },
4053
4054
  {
4054
4055
  name: "color",
@@ -4100,4 +4101,167 @@ export const API_ROUTES: readonly ApiRoute[] = [
4100
4101
  body: "none",
4101
4102
  fields: [],
4102
4103
  },
4104
+ {
4105
+ group: "webhooks",
4106
+ method: "create",
4107
+ path: "/v1/webhooks.create",
4108
+ description:
4109
+ "Creates a webhook: a URL Autumn sends the listed events to, in the environment of the calling key. You choose the `id`, and it can't be changed later. Returns the signing secret once, in this response — store it, it cannot be read back.",
4110
+ body: "object",
4111
+ fields: [
4112
+ {
4113
+ name: "id",
4114
+ type: "string",
4115
+ required: true,
4116
+ description:
4117
+ "Your ID for the webhook: letters, digits, `-` and `_`. It can't be changed after creation.",
4118
+ },
4119
+ {
4120
+ name: "url",
4121
+ type: "string",
4122
+ required: true,
4123
+ description:
4124
+ "The https URL Autumn sends events to. Localhost and private-network addresses are rejected; tunnels such as ngrok work.",
4125
+ },
4126
+ {
4127
+ name: "events",
4128
+ type: "json",
4129
+ required: true,
4130
+ description:
4131
+ "The events sent to this webhook. At least one. `vercel.*` events can't be mixed with other events.",
4132
+ },
4133
+ {
4134
+ name: "description",
4135
+ type: "string",
4136
+ required: false,
4137
+ description: "A note for your own reference.",
4138
+ },
4139
+ {
4140
+ name: "disabled",
4141
+ type: "boolean",
4142
+ required: false,
4143
+ description: "When true, no events are sent to the webhook.",
4144
+ },
4145
+ ],
4146
+ },
4147
+ {
4148
+ group: "webhooks",
4149
+ method: "get",
4150
+ path: "/v1/webhooks.get",
4151
+ description:
4152
+ "Gets one webhook by ID. The signing secret is never returned here — only `webhooks.create` and `webhooks.sync` show one, when they create the webhook.",
4153
+ body: "object",
4154
+ fields: [
4155
+ {
4156
+ name: "id",
4157
+ type: "string",
4158
+ required: true,
4159
+ description:
4160
+ "The webhook's ID. Webhooks made in the dashboard use the `ep_…` ID shown by `webhooks.list`.",
4161
+ },
4162
+ ],
4163
+ },
4164
+ {
4165
+ group: "webhooks",
4166
+ method: "list",
4167
+ path: "/v1/webhooks.list",
4168
+ description:
4169
+ "Lists every webhook in the environment of the calling key, including ones made in the dashboard (these show their `ep_…` ID).",
4170
+ body: "none",
4171
+ fields: [],
4172
+ },
4173
+ {
4174
+ group: "webhooks",
4175
+ method: "update",
4176
+ path: "/v1/webhooks.update",
4177
+ description:
4178
+ "Updates a webhook's URL, events, description or disabled state. Only the fields you pass change. The ID can't be changed — to rename, create a new webhook.",
4179
+ body: "object",
4180
+ fields: [
4181
+ {
4182
+ name: "id",
4183
+ type: "string",
4184
+ required: true,
4185
+ description:
4186
+ "The webhook's ID. Webhooks made in the dashboard use the `ep_…` ID shown by `webhooks.list`.",
4187
+ },
4188
+ {
4189
+ name: "url",
4190
+ type: "string",
4191
+ required: false,
4192
+ description:
4193
+ "The https URL Autumn sends events to. Localhost and private-network addresses are rejected; tunnels such as ngrok work.",
4194
+ },
4195
+ {
4196
+ name: "events",
4197
+ type: "json",
4198
+ required: false,
4199
+ description:
4200
+ "The events sent to this webhook. At least one. `vercel.*` events can't be mixed with other events.",
4201
+ },
4202
+ {
4203
+ name: "description",
4204
+ type: "string",
4205
+ required: false,
4206
+ description: "A note for your own reference.",
4207
+ },
4208
+ {
4209
+ name: "disabled",
4210
+ type: "boolean",
4211
+ required: false,
4212
+ description: "When true, no events are sent to the webhook.",
4213
+ },
4214
+ ],
4215
+ },
4216
+ {
4217
+ group: "webhooks",
4218
+ method: "delete",
4219
+ path: "/v1/webhooks.delete",
4220
+ description:
4221
+ "Permanently deletes a webhook. Autumn stops sending it events immediately. Cannot be undone.",
4222
+ body: "object",
4223
+ fields: [
4224
+ {
4225
+ name: "id",
4226
+ type: "string",
4227
+ required: true,
4228
+ description:
4229
+ "The webhook's ID. Webhooks made in the dashboard use the `ep_…` ID shown by `webhooks.list`.",
4230
+ },
4231
+ ],
4232
+ },
4233
+ {
4234
+ group: "webhooks",
4235
+ method: "preview_sync",
4236
+ path: "/v1/webhooks.preview_sync",
4237
+ description:
4238
+ "Shows what `webhooks.sync` would do with the same body, without changing anything: which webhooks it would create or update, and which existing ones it would leave alone because the body doesn't list them.",
4239
+ body: "object",
4240
+ fields: [
4241
+ {
4242
+ name: "webhooks",
4243
+ type: "json",
4244
+ required: true,
4245
+ description:
4246
+ "The webhooks to create or update. Webhooks not listed are left alone; nothing is deleted.",
4247
+ },
4248
+ ],
4249
+ },
4250
+ {
4251
+ group: "webhooks",
4252
+ method: "sync",
4253
+ path: "/v1/webhooks.sync",
4254
+ description:
4255
+ "Makes the listed webhooks exist as described: creates missing ones and updates ones that differ. Webhooks not listed are left alone — sync never deletes. Returns the signing secret of each webhook it created, once. Each webhook is applied on its own: failures are listed in `errors` while the rest still apply, and the request fails only when none could be applied.",
4256
+ body: "object",
4257
+ fields: [
4258
+ {
4259
+ name: "webhooks",
4260
+ type: "json",
4261
+ required: true,
4262
+ description:
4263
+ "The webhooks to create or update. Webhooks not listed are left alone; nothing is deleted.",
4264
+ },
4265
+ ],
4266
+ },
4103
4267
  ];