@copilotz/directory 1.0.0-rc.63 → 1.0.0-rc.64

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.
@@ -45,7 +45,21 @@ declare const creditCodeSchema: {
45
45
  };
46
46
  readonly required: readonly ["amount", "by", "at"];
47
47
  };
48
- export declare const creditCode: {
48
+ export declare const creditCode: Omit<import("copilotz").CollectionDef, "queries" | "schema"> & {
49
+ queries?: Record<string, import("copilotz").QueryDef<import("copilotz").WithId<{
50
+ [x: string]: unknown;
51
+ org?: string | undefined;
52
+ person?: string | undefined;
53
+ expires?: string | undefined;
54
+ until?: string | undefined;
55
+ note?: string | undefined;
56
+ claimed?: string | undefined;
57
+ revoked?: string | undefined;
58
+ at: string;
59
+ by: string;
60
+ amount: number;
61
+ }>>> | undefined;
62
+ } & {
49
63
  schema: {
50
64
  readonly type: "object";
51
65
  readonly properties: {
@@ -86,27 +100,6 @@ export declare const creditCode: {
86
100
  };
87
101
  readonly required: readonly ["amount", "by", "at"];
88
102
  };
89
- events?: boolean;
90
- records?: boolean;
91
- durable?: false;
92
- indexes?: string[][];
93
- private?: string[];
94
- queries?: Record<string, import("copilotz").QueryDef<{
95
- [x: string]: unknown;
96
- org?: string | undefined;
97
- person?: string | undefined;
98
- expires?: string | undefined;
99
- until?: string | undefined;
100
- note?: string | undefined;
101
- claimed?: string | undefined;
102
- revoked?: string | undefined;
103
- at: string;
104
- by: string;
105
- amount: number;
106
- } & {
107
- _id: string;
108
- }>> | undefined;
109
- vectors?: string[];
110
103
  };
111
104
  export type CreditCode = Infer<typeof creditCodeSchema> & {
112
105
  _id: string;
@@ -30,7 +30,17 @@ declare const inviteSchema: {
30
30
  };
31
31
  readonly required: readonly ["org", "email", "role", "by", "at"];
32
32
  };
33
- export declare const invite: {
33
+ export declare const invite: Omit<import("copilotz").CollectionDef, "queries" | "schema"> & {
34
+ queries?: Record<string, import("copilotz").QueryDef<import("copilotz").WithId<{
35
+ [x: string]: unknown;
36
+ from?: string | undefined;
37
+ at: string;
38
+ org: string;
39
+ email: string;
40
+ role: "admin" | "member" | "guest";
41
+ by: string;
42
+ }>>> | undefined;
43
+ } & {
34
44
  schema: {
35
45
  readonly type: "object";
36
46
  readonly properties: {
@@ -57,23 +67,6 @@ export declare const invite: {
57
67
  };
58
68
  readonly required: readonly ["org", "email", "role", "by", "at"];
59
69
  };
60
- events?: boolean;
61
- records?: boolean;
62
- durable?: false;
63
- indexes?: string[][];
64
- private?: string[];
65
- queries?: Record<string, import("copilotz").QueryDef<{
66
- [x: string]: unknown;
67
- from?: string | undefined;
68
- at: string;
69
- org: string;
70
- email: string;
71
- role: "admin" | "member" | "guest";
72
- by: string;
73
- } & {
74
- _id: string;
75
- }>> | undefined;
76
- vectors?: string[];
77
70
  };
78
71
  export type Invite = Infer<typeof inviteSchema> & {
79
72
  _id: string;
@@ -26,7 +26,16 @@ declare const membershipSchema: {
26
26
  };
27
27
  readonly required: readonly ["org", "person", "at"];
28
28
  };
29
- export declare const membership: {
29
+ export declare const membership: Omit<import("copilotz").CollectionDef, "queries" | "schema"> & {
30
+ queries?: Record<string, import("copilotz").QueryDef<import("copilotz").WithId<{
31
+ [x: string]: unknown;
32
+ role?: string | undefined;
33
+ entered?: string | undefined;
34
+ at: string;
35
+ org: string;
36
+ person: string;
37
+ }>>> | undefined;
38
+ } & {
30
39
  schema: {
31
40
  readonly type: "object";
32
41
  readonly properties: {
@@ -49,22 +58,6 @@ export declare const membership: {
49
58
  };
50
59
  readonly required: readonly ["org", "person", "at"];
51
60
  };
52
- events?: boolean;
53
- records?: boolean;
54
- durable?: false;
55
- indexes?: string[][];
56
- private?: string[];
57
- queries?: Record<string, import("copilotz").QueryDef<{
58
- [x: string]: unknown;
59
- role?: string | undefined;
60
- entered?: string | undefined;
61
- at: string;
62
- org: string;
63
- person: string;
64
- } & {
65
- _id: string;
66
- }>> | undefined;
67
- vectors?: string[];
68
61
  };
69
62
  export type Membership = Infer<typeof membershipSchema> & {
70
63
  _id: string;
@@ -23,7 +23,14 @@ declare const orgHostSchema: {
23
23
  };
24
24
  readonly required: readonly ["org", "at"];
25
25
  };
26
- export declare const orgHost: {
26
+ export declare const orgHost: Omit<import("copilotz").CollectionDef, "queries" | "schema"> & {
27
+ queries?: Record<string, import("copilotz").QueryDef<import("copilotz").WithId<{
28
+ [x: string]: unknown;
29
+ target?: string | undefined;
30
+ at: string;
31
+ org: string;
32
+ }>>> | undefined;
33
+ } & {
27
34
  schema: {
28
35
  readonly type: "object";
29
36
  readonly properties: {
@@ -41,20 +48,6 @@ export declare const orgHost: {
41
48
  };
42
49
  readonly required: readonly ["org", "at"];
43
50
  };
44
- events?: boolean;
45
- records?: boolean;
46
- durable?: false;
47
- indexes?: string[][];
48
- private?: string[];
49
- queries?: Record<string, import("copilotz").QueryDef<{
50
- [x: string]: unknown;
51
- target?: string | undefined;
52
- at: string;
53
- org: string;
54
- } & {
55
- _id: string;
56
- }>> | undefined;
57
- vectors?: string[];
58
51
  };
59
52
  export type OrgHost = Infer<typeof orgHostSchema> & {
60
53
  _id: string;
@@ -56,7 +56,27 @@ declare const orgSchema: {
56
56
  };
57
57
  readonly required: readonly ["name", "kind", "by", "placement", "at"];
58
58
  };
59
- export declare const org: {
59
+ export declare const org: Omit<import("copilotz").CollectionDef, "queries" | "schema"> & {
60
+ queries?: Record<string, import("copilotz").QueryDef<import("copilotz").WithId<{
61
+ [x: string]: unknown;
62
+ suspended?: boolean | undefined;
63
+ summary?: {
64
+ [x: string]: unknown;
65
+ at?: string | undefined;
66
+ people?: number | undefined;
67
+ spaces?: number | undefined;
68
+ active?: string | undefined;
69
+ } | undefined;
70
+ placement: {
71
+ [x: string]: unknown;
72
+ schema: string;
73
+ };
74
+ at: string;
75
+ name: string;
76
+ kind: "personal" | "team";
77
+ by: string;
78
+ }>>> | undefined;
79
+ } & {
60
80
  schema: {
61
81
  readonly type: "object";
62
82
  readonly properties: {
@@ -107,33 +127,6 @@ export declare const org: {
107
127
  };
108
128
  readonly required: readonly ["name", "kind", "by", "placement", "at"];
109
129
  };
110
- events?: boolean;
111
- records?: boolean;
112
- durable?: false;
113
- indexes?: string[][];
114
- private?: string[];
115
- queries?: Record<string, import("copilotz").QueryDef<{
116
- [x: string]: unknown;
117
- suspended?: boolean | undefined;
118
- summary?: {
119
- [x: string]: unknown;
120
- at?: string | undefined;
121
- people?: number | undefined;
122
- spaces?: number | undefined;
123
- active?: string | undefined;
124
- } | undefined;
125
- placement: {
126
- [x: string]: unknown;
127
- schema: string;
128
- };
129
- at: string;
130
- name: string;
131
- kind: "personal" | "team";
132
- by: string;
133
- } & {
134
- _id: string;
135
- }>> | undefined;
136
- vectors?: string[];
137
130
  };
138
131
  export type Org = Infer<typeof orgSchema> & {
139
132
  _id: string;
@@ -13,7 +13,12 @@ declare const staffSchema: {
13
13
  };
14
14
  readonly required: readonly ["at"];
15
15
  };
16
- export declare const staff: {
16
+ export declare const staff: Omit<import("copilotz").CollectionDef, "queries" | "schema"> & {
17
+ queries?: Record<string, import("copilotz").QueryDef<import("copilotz").WithId<{
18
+ [x: string]: unknown;
19
+ at: string;
20
+ }>>> | undefined;
21
+ } & {
17
22
  schema: {
18
23
  readonly type: "object";
19
24
  readonly properties: {
@@ -23,18 +28,6 @@ export declare const staff: {
23
28
  };
24
29
  readonly required: readonly ["at"];
25
30
  };
26
- events?: boolean;
27
- records?: boolean;
28
- durable?: false;
29
- indexes?: string[][];
30
- private?: string[];
31
- queries?: Record<string, import("copilotz").QueryDef<{
32
- [x: string]: unknown;
33
- at: string;
34
- } & {
35
- _id: string;
36
- }>> | undefined;
37
- vectors?: string[];
38
31
  };
39
32
  export type Staff = Infer<typeof staffSchema> & {
40
33
  _id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@copilotz/directory",
3
- "version": "1.0.0-rc.63",
3
+ "version": "1.0.0-rc.64",
4
4
  "description": "Many orgs behind one address: who signs in, which orgs they belong to, and going between them. A Copilotz plugin.",
5
5
  "keywords": [
6
6
  "copilotz",
@@ -56,7 +56,7 @@
56
56
  "dependencies": {},
57
57
  "peerDependencies": {
58
58
  "@types/react": "^19.3.0",
59
- "copilotz": "1.0.0-rc.63",
59
+ "copilotz": "1.0.0-rc.64",
60
60
  "react": "^19.3.1"
61
61
  },
62
62
  "peerDependenciesMeta": {
@@ -4,7 +4,7 @@
4
4
  * app's own words for them still hold; what an org is called where it shows is `directory.<key>`.
5
5
  */
6
6
  import { type Phrase } from "copilotz/web/words";
7
- export declare const say: import("copilotz/web/words").Say<"personal" | "team" | "placement" | "join" | "staff" | "cancel" | "name" | "status" | "suspended" | "rename" | "people" | "spaces" | "active" | "goHome" | "staffLine" | "orgSettings" | "aboutOrg" | "allOrgsConsole" | "organization" | "oneOrg" | "oneOrgAbout" | "notInOrg" | "chooseOrg" | "personalOrg" | "teamOrg" | "staffAccess" | "orgAboutStaff" | "orgAboutPersonal" | "orgAboutRuns" | "orgAboutGuest" | "orgAboutMember" | "orgSection" | "heldBack" | "orgSettingsOf" | "nothingToSet" | "nothingToSetAbout" | "justYou" | "yourOrgs" | "organizations" | "inAsStaffTitle" | "switchOrg" | "switchOrgWaiting" | "invitationsCount" | "signedInAs" | "inAsStaff" | "continueAs" | "invitations" | "newOrgMore" | "enterAsStaff" | "suspendedTitle" | "yourOwn" | "invitedFromAsAt" | "invitedAsAt" | "invitedFromAs" | "invitedAs" | "joinNamed" | "decline" | "newOrg" | "newOrgAbout" | "createOrg" | "newOrgNameHint" | "atMost" | "newOrgPlaceholder" | "goingInto" | "enteringAsStaff" | "switchingTo" | "movedOrg" | "youreIn" | "nameIt" | "createNamed" | "switchTo" | "yourOwnOrg" | "declineOrgInvite" | "keysSwitch" | "keysNewOrg" | "keysOrgSettings" | "keysConsole" | "keysAcceptOrgInvite" | "keysOrgInvite" | "filterAll" | "filterTeams" | "giftCodes" | "consoleTitle" | "forStaff" | "forStaffAbout" | "consoleShows" | "giftCodesAbout" | "consoleAbout" | "refresh" | "teamOrgs" | "searchPlaceholder" | "searchOrgs" | "whichOrgs" | "lastActive" | "actions" | "noMatch" | "nothingMatches" | "nothingYet" | "footAll" | "footSome" | "hereAsStaff" | "youreHere" | "copyOrgId" | "notYet" | "inItAsStaff" | "goIntoAsStaff" | "moreOf" | "renameMore" | "liftMore" | "suspendMore" | "moveMore" | "exportRows" | "deleteMore" | "unsupported" | "renamedTo" | "renameOrg" | "renameOrgAbout" | "liftTitle" | "suspendTitle" | "openAgain" | "isSuspended" | "lift" | "suspend" | "liftAbout" | "suspendAbout" | "nowLivesIn" | "moveTitle" | "moveAbout" | "moveRows" | "moveText" | "nowIn" | "newSchema" | "sameSchema" | "schemaRule" | "isDeleted" | "deleteTitle" | "deleteForGood" | "cantUndo" | "deleteAbout" | "exportFirst" | "typeToConfirm" | "codeWaiting" | "codeClaimed" | "codeRevoked" | "codeExpired" | "sayDollars" | "codesCount" | "newGiftCode" | "tryAgain" | "noCodes" | "noCodesAbout" | "termsLapse" | "termsNoLapse" | "termsLapseClaim" | "termsNoLapseClaim" | "codeShortTitle" | "codeMade" | "claimedBy" | "takeBack" | "makeCode" | "makeTheCode" | "credits" | "lapseOn" | "lapseHint" | "claimBy" | "claimHint" | "whatFor" | "whatForHint" | "notePlaceholder" | "yourCode" | "keptIt" | "copyCode" | "notShownAgain" | "notShownAgainAbout" | "takeBackTitle" | "takeItBack" | "takeBackAbout">;
7
+ export declare const say: import("copilotz/web/words").Say<"personal" | "team" | "placement" | "join" | "actions" | "staff" | "cancel" | "name" | "status" | "suspended" | "rename" | "people" | "spaces" | "active" | "goHome" | "staffLine" | "orgSettings" | "aboutOrg" | "allOrgsConsole" | "organization" | "oneOrg" | "oneOrgAbout" | "notInOrg" | "chooseOrg" | "personalOrg" | "teamOrg" | "staffAccess" | "orgAboutStaff" | "orgAboutPersonal" | "orgAboutRuns" | "orgAboutGuest" | "orgAboutMember" | "orgSection" | "heldBack" | "orgSettingsOf" | "nothingToSet" | "nothingToSetAbout" | "justYou" | "yourOrgs" | "organizations" | "inAsStaffTitle" | "switchOrg" | "switchOrgWaiting" | "invitationsCount" | "signedInAs" | "inAsStaff" | "continueAs" | "invitations" | "newOrgMore" | "enterAsStaff" | "suspendedTitle" | "yourOwn" | "invitedFromAsAt" | "invitedAsAt" | "invitedFromAs" | "invitedAs" | "joinNamed" | "decline" | "newOrg" | "newOrgAbout" | "createOrg" | "newOrgNameHint" | "atMost" | "newOrgPlaceholder" | "goingInto" | "enteringAsStaff" | "switchingTo" | "movedOrg" | "youreIn" | "nameIt" | "createNamed" | "switchTo" | "yourOwnOrg" | "declineOrgInvite" | "keysSwitch" | "keysNewOrg" | "keysOrgSettings" | "keysConsole" | "keysAcceptOrgInvite" | "keysOrgInvite" | "filterAll" | "filterTeams" | "giftCodes" | "consoleTitle" | "forStaff" | "forStaffAbout" | "consoleShows" | "giftCodesAbout" | "consoleAbout" | "refresh" | "teamOrgs" | "searchPlaceholder" | "searchOrgs" | "whichOrgs" | "lastActive" | "noMatch" | "nothingMatches" | "nothingYet" | "footAll" | "footSome" | "hereAsStaff" | "youreHere" | "copyOrgId" | "notYet" | "inItAsStaff" | "goIntoAsStaff" | "moreOf" | "renameMore" | "liftMore" | "suspendMore" | "moveMore" | "exportRows" | "deleteMore" | "unsupported" | "renamedTo" | "renameOrg" | "renameOrgAbout" | "liftTitle" | "suspendTitle" | "openAgain" | "isSuspended" | "lift" | "suspend" | "liftAbout" | "suspendAbout" | "nowLivesIn" | "moveTitle" | "moveAbout" | "moveRows" | "moveText" | "nowIn" | "newSchema" | "sameSchema" | "schemaRule" | "isDeleted" | "deleteTitle" | "deleteForGood" | "cantUndo" | "deleteAbout" | "exportFirst" | "typeToConfirm" | "codeWaiting" | "codeClaimed" | "codeRevoked" | "codeExpired" | "sayDollars" | "codesCount" | "newGiftCode" | "tryAgain" | "noCodes" | "noCodesAbout" | "termsLapse" | "termsNoLapse" | "termsLapseClaim" | "termsNoLapseClaim" | "codeShortTitle" | "codeMade" | "claimedBy" | "takeBack" | "makeCode" | "makeTheCode" | "credits" | "lapseOn" | "lapseHint" | "claimBy" | "claimHint" | "whatFor" | "whatForHint" | "notePlaceholder" | "yourCode" | "keptIt" | "copyCode" | "notShownAgain" | "notShownAgainAbout" | "takeBackTitle" | "takeItBack" | "takeBackAbout">;
8
8
  export declare const sayOrg: import("copilotz/web/words").Say<"personalOrg">;
9
9
  /** Every word of the directory's front end, by area (WORDS.md lists them). */
10
10
  export declare const PHRASES: Record<string, Record<string, Phrase>>;