@8wave/ai-elements 0.121.0-beta.19 → 0.121.0-beta.20

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.
@@ -10,8 +10,8 @@ declare const __VLS_export: __VLS_WithSlots< DefineComponent<{
10
10
  rows?: number | string;
11
11
  rowClasses?: string[];
12
12
  }> & Readonly<{}>, {
13
- loading: boolean;
14
13
  rows: number | string;
14
+ loading: boolean;
15
15
  rowClasses: string[];
16
16
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
17
17
  skeleton?: (props: {}) => any;
@@ -494,6 +494,7 @@ export declare const OrganizationCapabilitiesSchema: z.ZodObject<{
494
494
  }, z.core.$strip>;
495
495
  export type OrganizationCapabilities = z.infer<typeof OrganizationCapabilitiesSchema>;
496
496
  export declare const OrganizationsQuerystringSchema: z.ZodObject<{
497
+ "include[deleted]": z.ZodOptional<z.ZodString | z.ZodArray<z.ZodString>>;
497
498
  ids: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
498
499
  "filter[fullText]": z.ZodOptional<z.ZodString>;
499
500
  sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
@@ -0,0 +1,197 @@
1
+ import * as z from 'zod';
2
+ /**
3
+ * The permanent deletion of an organization by a system administrator
4
+ * (docs/specs/organization-deletion.md): a preview, a confirmation that
5
+ * freezes the organization, and a job that erases its data step by step.
6
+ */
7
+ export declare enum OrganizationDeletionStatus {
8
+ /** Confirmed and frozen, the job has not started yet. */
9
+ Pending = "pending",
10
+ Running = "running",
11
+ Completed = "completed",
12
+ /** Stopped after too many consecutive errors: a retry resumes it. */
13
+ Failed = "failed"
14
+ }
15
+ /** The steps of the job, in the order it runs them. */
16
+ export declare enum OrganizationDeletionStep {
17
+ Vectors = "vectors",
18
+ Files = "files",
19
+ Users = "users",
20
+ Rows = "rows",
21
+ Tombstone = "tombstone",
22
+ Report = "report"
23
+ }
24
+ export declare const ORGANIZATION_DELETION_STEPS: readonly [OrganizationDeletionStep.Vectors, OrganizationDeletionStep.Files, OrganizationDeletionStep.Users, OrganizationDeletionStep.Rows, OrganizationDeletionStep.Tombstone, OrganizationDeletionStep.Report];
25
+ /** What the deletion does to a person with data in the organization. */
26
+ export declare enum OrganizationDeletionUserGroup {
27
+ /** Only this organization holds data of the account: anonymized. */
28
+ Erase = "erase",
29
+ /** An anonymous user (widget, channels) only this organization knew: deleted. */
30
+ Delete = "delete",
31
+ /**
32
+ * Other organizations hold data of the account, or it is a system
33
+ * administrator: it loses what it has here and stays.
34
+ */
35
+ Detach = "detach"
36
+ }
37
+ export declare const OrganizationDeletionTableCountSchema: z.ZodObject<{
38
+ table: z.ZodString;
39
+ rows: z.ZodNumber;
40
+ }, z.core.$strip>;
41
+ export type OrganizationDeletionTableCount = z.infer<typeof OrganizationDeletionTableCountSchema>;
42
+ export declare const OrganizationDeletionUserCountsSchema: z.ZodObject<{
43
+ erase: z.ZodNumber;
44
+ delete: z.ZodNumber;
45
+ detach: z.ZodNumber;
46
+ }, z.core.$strip>;
47
+ export type OrganizationDeletionUserCounts = z.infer<typeof OrganizationDeletionUserCountsSchema>;
48
+ /** Why a deletion cannot start. */
49
+ export declare const OrganizationDeletionBlockerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
50
+ kind: z.ZodLiteral<"unclassified_table">;
51
+ table: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ kind: z.ZodLiteral<"outside_reference">;
54
+ table: z.ZodString;
55
+ column: z.ZodString;
56
+ references: z.ZodString;
57
+ rows: z.ZodNumber;
58
+ }, z.core.$strip>, z.ZodObject<{
59
+ kind: z.ZodLiteral<"deletion_exists">;
60
+ }, z.core.$strip>], "kind">;
61
+ export type OrganizationDeletionBlocker = z.infer<typeof OrganizationDeletionBlockerSchema>;
62
+ /** The preview: what goes, what stays, and what stops the deletion. */
63
+ export declare const OrganizationDeletionPlanSchema: z.ZodObject<{
64
+ organizationId: z.ZodString;
65
+ organizationName: z.ZodString;
66
+ organizationSlug: z.ZodString;
67
+ deleted: z.ZodArray<z.ZodObject<{
68
+ table: z.ZodString;
69
+ rows: z.ZodNumber;
70
+ }, z.core.$strip>>;
71
+ kept: z.ZodArray<z.ZodObject<{
72
+ table: z.ZodString;
73
+ rows: z.ZodNumber;
74
+ }, z.core.$strip>>;
75
+ users: z.ZodObject<{
76
+ erase: z.ZodNumber;
77
+ delete: z.ZodNumber;
78
+ detach: z.ZodNumber;
79
+ }, z.core.$strip>;
80
+ points: z.ZodObject<{
81
+ chunks: z.ZodNullable<z.ZodNumber>;
82
+ memories: z.ZodNumber;
83
+ }, z.core.$strip>;
84
+ blockers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
85
+ kind: z.ZodLiteral<"unclassified_table">;
86
+ table: z.ZodString;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ kind: z.ZodLiteral<"outside_reference">;
89
+ table: z.ZodString;
90
+ column: z.ZodString;
91
+ references: z.ZodString;
92
+ rows: z.ZodNumber;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ kind: z.ZodLiteral<"deletion_exists">;
95
+ }, z.core.$strip>], "kind">>;
96
+ }, z.core.$strip>;
97
+ export type OrganizationDeletionPlan = z.infer<typeof OrganizationDeletionPlanSchema>;
98
+ /** What the job did, filled in as it goes. Counts only, no personal data. */
99
+ export declare const OrganizationDeletionReportSchema: z.ZodObject<{
100
+ rows: z.ZodRecord<z.ZodString, z.ZodNumber>;
101
+ users: z.ZodObject<{
102
+ erase: z.ZodNumber;
103
+ delete: z.ZodNumber;
104
+ detach: z.ZodNumber;
105
+ }, z.core.$strip>;
106
+ files: z.ZodObject<{
107
+ deleted: z.ZodNumber;
108
+ missing: z.ZodNumber;
109
+ kept: z.ZodNumber;
110
+ }, z.core.$strip>;
111
+ shortUrls: z.ZodNumber;
112
+ points: z.ZodObject<{
113
+ chunks: z.ZodNumber;
114
+ memories: z.ZodNumber;
115
+ }, z.core.$strip>;
116
+ signIns: z.ZodObject<{
117
+ removed: z.ZodNumber;
118
+ revokedAtProvider: z.ZodNumber;
119
+ }, z.core.$strip>;
120
+ }, z.core.$strip>;
121
+ export type OrganizationDeletionReport = z.infer<typeof OrganizationDeletionReportSchema>;
122
+ export declare const OrganizationDeletionSchema: z.ZodObject<{
123
+ id: z.ZodString;
124
+ organizationId: z.ZodString;
125
+ organizationName: z.ZodString;
126
+ organizationSlug: z.ZodString;
127
+ requestedBy: z.ZodString;
128
+ requestedByName: z.ZodNullable<z.ZodString>;
129
+ requestedAt: z.ZodCoercedDate<unknown>;
130
+ startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
131
+ finishedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
132
+ status: z.ZodEnum<typeof OrganizationDeletionStatus>;
133
+ step: z.ZodNullable<z.ZodEnum<typeof OrganizationDeletionStep>>;
134
+ attempts: z.ZodNumber;
135
+ error: z.ZodNullable<z.ZodString>;
136
+ plan: z.ZodObject<{
137
+ organizationId: z.ZodString;
138
+ organizationName: z.ZodString;
139
+ organizationSlug: z.ZodString;
140
+ deleted: z.ZodArray<z.ZodObject<{
141
+ table: z.ZodString;
142
+ rows: z.ZodNumber;
143
+ }, z.core.$strip>>;
144
+ kept: z.ZodArray<z.ZodObject<{
145
+ table: z.ZodString;
146
+ rows: z.ZodNumber;
147
+ }, z.core.$strip>>;
148
+ users: z.ZodObject<{
149
+ erase: z.ZodNumber;
150
+ delete: z.ZodNumber;
151
+ detach: z.ZodNumber;
152
+ }, z.core.$strip>;
153
+ points: z.ZodObject<{
154
+ chunks: z.ZodNullable<z.ZodNumber>;
155
+ memories: z.ZodNumber;
156
+ }, z.core.$strip>;
157
+ blockers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
158
+ kind: z.ZodLiteral<"unclassified_table">;
159
+ table: z.ZodString;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ kind: z.ZodLiteral<"outside_reference">;
162
+ table: z.ZodString;
163
+ column: z.ZodString;
164
+ references: z.ZodString;
165
+ rows: z.ZodNumber;
166
+ }, z.core.$strip>, z.ZodObject<{
167
+ kind: z.ZodLiteral<"deletion_exists">;
168
+ }, z.core.$strip>], "kind">>;
169
+ }, z.core.$strip>;
170
+ report: z.ZodObject<{
171
+ rows: z.ZodRecord<z.ZodString, z.ZodNumber>;
172
+ users: z.ZodObject<{
173
+ erase: z.ZodNumber;
174
+ delete: z.ZodNumber;
175
+ detach: z.ZodNumber;
176
+ }, z.core.$strip>;
177
+ files: z.ZodObject<{
178
+ deleted: z.ZodNumber;
179
+ missing: z.ZodNumber;
180
+ kept: z.ZodNumber;
181
+ }, z.core.$strip>;
182
+ shortUrls: z.ZodNumber;
183
+ points: z.ZodObject<{
184
+ chunks: z.ZodNumber;
185
+ memories: z.ZodNumber;
186
+ }, z.core.$strip>;
187
+ signIns: z.ZodObject<{
188
+ removed: z.ZodNumber;
189
+ revokedAtProvider: z.ZodNumber;
190
+ }, z.core.$strip>;
191
+ }, z.core.$strip>;
192
+ }, z.core.$strip>;
193
+ export type OrganizationDeletion = z.infer<typeof OrganizationDeletionSchema>;
194
+ export declare const OrganizationDeletionConfirmBodySchema: z.ZodObject<{
195
+ confirmSlug: z.ZodString;
196
+ }, z.core.$strip>;
197
+ export type OrganizationDeletionConfirmBody = z.infer<typeof OrganizationDeletionConfirmBodySchema>;
@@ -30,6 +30,7 @@ export * from './MessageFeedback';
30
30
  export * from './Notification';
31
31
  export * from './OpenAiCompat';
32
32
  export * from './Organization';
33
+ export * from './OrganizationDeletion';
33
34
  export * from './OrganizationExternalAuth';
34
35
  export * from './OrganizationIdentityProvider';
35
36
  export * from './PageAccess';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@8wave/ai-elements",
3
3
  "private": false,
4
- "version": "0.121.0-beta.19",
4
+ "version": "0.121.0-beta.20",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 8082 --open --host",