@autohq/cli 0.1.476 → 0.1.477

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.
@@ -30866,7 +30866,7 @@ Object.assign(lookup, {
30866
30866
  // package.json
30867
30867
  var package_default = {
30868
30868
  name: "@autohq/cli",
30869
- version: "0.1.476",
30869
+ version: "0.1.477",
30870
30870
  license: "SEE LICENSE IN README.md",
30871
30871
  publishConfig: {
30872
30872
  access: "public"
@@ -31611,7 +31611,22 @@ var ProviderCredentialKindSchema = external_exports.enum([
31611
31611
  "webhook",
31612
31612
  "internal"
31613
31613
  ]);
31614
- var ProviderGrantStatusSchema = external_exports.enum(["active", "revoked", "error"]);
31614
+ var ProviderGrantStatusSchema = external_exports.enum([
31615
+ "active",
31616
+ "suspended",
31617
+ "revoked",
31618
+ "error"
31619
+ ]);
31620
+ var PROVIDER_GRANT_STATUS_REASONS = [
31621
+ "suspended_from_github",
31622
+ "uninstalled_from_github",
31623
+ "superseded",
31624
+ "disconnected",
31625
+ "provider_error"
31626
+ ];
31627
+ var ProviderGrantStatusReasonSchema = external_exports.enum(
31628
+ PROVIDER_GRANT_STATUS_REASONS
31629
+ );
31615
31630
  var ProviderResourceSelectionSchema = external_exports.discriminatedUnion("kind", [
31616
31631
  external_exports.object({
31617
31632
  kind: external_exports.literal("all")
@@ -31640,6 +31655,8 @@ var ProviderGrantSchema = external_exports.object({
31640
31655
  kind: "all"
31641
31656
  }),
31642
31657
  status: ProviderGrantStatusSchema,
31658
+ statusReason: ProviderGrantStatusReasonSchema.nullable().default(null),
31659
+ statusDetectedAt: external_exports.coerce.date().nullable().default(null),
31643
31660
  /**
31644
31661
  * Scopes the server's current configuration requests that this grant has
31645
31662
  * not granted. Computed at read time against the deployed scope list, never
@@ -33704,6 +33721,8 @@ var GithubConnectionRepositorySchema = external_exports.object({
33704
33721
  fullName: external_exports.string().trim().min(1)
33705
33722
  });
33706
33723
  var GITHUB_CONNECTION_EVENTS = [
33724
+ "installation",
33725
+ "installation_repositories",
33707
33726
  "push",
33708
33727
  "pull_request",
33709
33728
  "check_run",
package/dist/index.js CHANGED
@@ -15237,7 +15237,7 @@ var init_primitives = __esm({
15237
15237
  });
15238
15238
 
15239
15239
  // ../../packages/schemas/src/provider-grants.ts
15240
- var ProviderNameSchema, ExternalAccountTypeSchema, ProviderCredentialKindSchema, ProviderGrantStatusSchema, ProviderResourceSelectionSchema, ExternalAccountSchema, ProviderGrantSchema, ProjectProviderAccessSchema, ConnectionViewSchema, ConnectionListResponseSchema, ConnectionRepositorySchema, ConnectionRepositorySourceSchema, ConnectionRepositoryListResponseSchema;
15240
+ var ProviderNameSchema, ExternalAccountTypeSchema, ProviderCredentialKindSchema, ProviderGrantStatusSchema, PROVIDER_GRANT_STATUS_REASONS, ProviderGrantStatusReasonSchema, ProviderResourceSelectionSchema, ExternalAccountSchema, ProviderGrantSchema, ProjectProviderAccessSchema, ConnectionViewSchema, ConnectionListResponseSchema, ConnectionRepositorySchema, ConnectionRepositorySourceSchema, ConnectionRepositoryListResponseSchema;
15241
15241
  var init_provider_grants = __esm({
15242
15242
  "../../packages/schemas/src/provider-grants.ts"() {
15243
15243
  "use strict";
@@ -15259,7 +15259,22 @@ var init_provider_grants = __esm({
15259
15259
  "webhook",
15260
15260
  "internal"
15261
15261
  ]);
15262
- ProviderGrantStatusSchema = external_exports.enum(["active", "revoked", "error"]);
15262
+ ProviderGrantStatusSchema = external_exports.enum([
15263
+ "active",
15264
+ "suspended",
15265
+ "revoked",
15266
+ "error"
15267
+ ]);
15268
+ PROVIDER_GRANT_STATUS_REASONS = [
15269
+ "suspended_from_github",
15270
+ "uninstalled_from_github",
15271
+ "superseded",
15272
+ "disconnected",
15273
+ "provider_error"
15274
+ ];
15275
+ ProviderGrantStatusReasonSchema = external_exports.enum(
15276
+ PROVIDER_GRANT_STATUS_REASONS
15277
+ );
15263
15278
  ProviderResourceSelectionSchema = external_exports.discriminatedUnion("kind", [
15264
15279
  external_exports.object({
15265
15280
  kind: external_exports.literal("all")
@@ -15288,6 +15303,8 @@ var init_provider_grants = __esm({
15288
15303
  kind: "all"
15289
15304
  }),
15290
15305
  status: ProviderGrantStatusSchema,
15306
+ statusReason: ProviderGrantStatusReasonSchema.nullable().default(null),
15307
+ statusDetectedAt: external_exports.coerce.date().nullable().default(null),
15291
15308
  /**
15292
15309
  * Scopes the server's current configuration requests that this grant has
15293
15310
  * not granted. Computed at read time against the deployed scope list, never
@@ -17537,6 +17554,8 @@ var init_connections = __esm({
17537
17554
  fullName: external_exports.string().trim().min(1)
17538
17555
  });
17539
17556
  GITHUB_CONNECTION_EVENTS = [
17557
+ "installation",
17558
+ "installation_repositories",
17540
17559
  "push",
17541
17560
  "pull_request",
17542
17561
  "check_run",
@@ -57665,7 +57684,7 @@ var init_package = __esm({
57665
57684
  "package.json"() {
57666
57685
  package_default = {
57667
57686
  name: "@autohq/cli",
57668
- version: "0.1.476",
57687
+ version: "0.1.477",
57669
57688
  license: "SEE LICENSE IN README.md",
57670
57689
  publishConfig: {
57671
57690
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.476",
3
+ "version": "0.1.477",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"