@netlify/agent-runner-cli 2.16.0-server.1 → 2.16.0-server.3

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/dist/index.d.ts CHANGED
@@ -22,8 +22,27 @@ interface RepoComplexityMetrics {
22
22
  declare const RESUME_ACTIONS: readonly ["continue", "wrap_up"];
23
23
  type ResumeAction = (typeof RESUME_ACTIONS)[number];
24
24
 
25
+ interface SetupRequestRecordTarget {
26
+ name: string;
27
+ state: 'missing' | 'satisfied';
28
+ required: boolean;
29
+ }
30
+ interface SetupRequestRecordItemBase {
31
+ kind: string;
32
+ reason: string;
33
+ }
34
+ interface SetupRequestInputItem extends SetupRequestRecordItemBase {
35
+ interaction: 'input';
36
+ targets: SetupRequestRecordTarget[];
37
+ }
38
+ interface SetupRequestApprovalItem extends SetupRequestRecordItemBase {
39
+ interaction: 'approval';
40
+ state: 'pending' | 'applying' | 'applied' | 'satisfied' | 'declined' | 'failed';
41
+ result: string | null;
42
+ }
43
+
25
44
  declare const ENV_VAR_MODES: readonly ["exist", "change"];
26
- declare const setupItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
45
+ declare const envVarItem: z.ZodObject<{
27
46
  kind: z.ZodLiteral<"env_var">;
28
47
  reason: z.ZodString;
29
48
  key: z.ZodString;
@@ -41,28 +60,58 @@ declare const setupItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
41
60
  }>;
42
61
  required: z.ZodDefault<z.ZodBoolean>;
43
62
  }, z.core.$strip>>;
44
- }, z.core.$strip>], "kind">;
45
- type SetupItem = z.infer<typeof setupItemSchema>;
46
- type EnvVarItem = Extract<SetupItem, {
47
- kind: 'env_var';
48
- }>;
49
- interface SetupRequestRecordTarget {
50
- name: string;
51
- state: 'missing' | 'satisfied';
52
- required: boolean;
53
- }
54
- interface SetupRequestRecordItemBase {
55
- kind: string;
56
- reason: string;
57
- targets: SetupRequestRecordTarget[];
58
- }
59
- interface EnvVarRecordItem extends SetupRequestRecordItemBase {
63
+ }, z.core.$strip>;
64
+ type EnvVarItem = z.infer<typeof envVarItem>;
65
+ interface EnvVarRecordItem extends SetupRequestInputItem {
60
66
  kind: EnvVarItem['kind'];
61
67
  key: string;
62
68
  secret?: boolean;
63
69
  mode?: (typeof ENV_VAR_MODES)[number];
64
70
  }
65
- type SetupRequestRecordItem = EnvVarRecordItem | SetupRequestRecordItemBase;
71
+
72
+ declare const identityUserItem: z.ZodObject<{
73
+ kind: z.ZodLiteral<"identity_user">;
74
+ reason: z.ZodString;
75
+ user_id: z.ZodString;
76
+ proposed: z.ZodObject<{
77
+ full_name: z.ZodOptional<z.ZodString>;
78
+ email: z.ZodOptional<z.ZodString>;
79
+ roles: z.ZodOptional<z.ZodArray<z.ZodString>>;
80
+ }, z.core.$strip>;
81
+ targets: z.ZodArray<z.ZodObject<{
82
+ name: z.ZodEnum<{
83
+ full_name: "full_name";
84
+ email: "email";
85
+ roles: "roles";
86
+ }>;
87
+ required: z.ZodDefault<z.ZodBoolean>;
88
+ }, z.core.$strip>>;
89
+ }, z.core.$strip>;
90
+ type IdentityUserItem = z.infer<typeof identityUserItem>;
91
+ type IdentityUserFields = IdentityUserItem['proposed'];
92
+ interface IdentityUserRecordItem extends SetupRequestInputItem {
93
+ kind: IdentityUserItem['kind'];
94
+ user_id: string;
95
+ proposed?: IdentityUserFields;
96
+ }
97
+
98
+ declare const identitySignupSettingsItem: z.ZodObject<{
99
+ kind: z.ZodLiteral<"identity_signup_settings">;
100
+ reason: z.ZodString;
101
+ proposed: z.ZodObject<{
102
+ disable_signup: z.ZodBoolean;
103
+ autoconfirm: z.ZodBoolean;
104
+ }, z.core.$strict>;
105
+ }, z.core.$strict>;
106
+ type IdentitySignupSettingsItem = z.infer<typeof identitySignupSettingsItem>;
107
+ interface IdentitySignupSettingsRecordItem extends SetupRequestApprovalItem {
108
+ id: string;
109
+ kind: 'identity_signup_settings';
110
+ current: IdentitySignupSettingsItem['proposed'];
111
+ proposed: IdentitySignupSettingsItem['proposed'];
112
+ }
113
+
114
+ type SetupRequestRecordItem = EnvVarRecordItem | IdentityUserRecordItem | IdentitySignupSettingsRecordItem | SetupRequestInputItem | SetupRequestApprovalItem;
66
115
 
67
116
  declare const ACCOUNT_TYPE_OTHER = "other";
68
117
  declare const ACCOUNT_TYPE_PERSONAL = "personal";