@oxy.so/contracts 4.15.0 → 4.17.0
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/accountEmail.js +12 -34
- package/dist/cjs/accountGraph.js +22 -320
- package/dist/cjs/agentKeys.js +11 -13
- package/dist/cjs/client/accountEmail.js +48 -0
- package/dist/cjs/client/accountGraph.js +323 -0
- package/dist/cjs/client/agentKeys.js +77 -0
- package/dist/cjs/client/check.js +466 -0
- package/dist/cjs/client/deviceBoot.js +22 -0
- package/dist/cjs/client/deviceDirectory.js +51 -0
- package/dist/cjs/client/deviceSession.js +63 -0
- package/dist/cjs/client/externalIdentity.js +19 -0
- package/dist/cjs/client/identity.js +45 -0
- package/dist/cjs/client/identityLink.js +55 -0
- package/dist/cjs/client/identityProof.js +109 -0
- package/dist/cjs/client/index.js +190 -0
- package/dist/cjs/client/organizations.js +114 -0
- package/dist/cjs/client/products.js +153 -0
- package/dist/cjs/client/recommendations.js +33 -0
- package/dist/cjs/client/reputation.js +41 -0
- package/dist/cjs/client/safety.js +15 -0
- package/dist/cjs/client/sessionStatus.js +23 -0
- package/dist/cjs/client/signIn.js +157 -0
- package/dist/cjs/client/userResponse.js +15 -0
- package/dist/cjs/client/username.js +173 -0
- package/dist/cjs/deviceSession.js +3 -16
- package/dist/cjs/identityLink.js +13 -34
- package/dist/cjs/identityProof.js +18 -106
- package/dist/cjs/index.js +15 -10
- package/dist/cjs/inference/money.js +10 -0
- package/dist/cjs/inference/version.js +1 -1
- package/dist/cjs/organizations.js +21 -41
- package/dist/cjs/products/billing.js +0 -1
- package/dist/cjs/products/checkout.js +1 -14
- package/dist/cjs/products/plans.js +2 -18
- package/dist/cjs/reputation.js +3 -34
- package/dist/cjs/signIn.js +57 -96
- package/dist/cjs/userResponse.js +1 -8
- package/dist/cjs/username.js +23 -158
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/accountEmail.js +4 -32
- package/dist/esm/accountGraph.js +4 -309
- package/dist/esm/agentKeys.js +4 -10
- package/dist/esm/client/accountEmail.js +45 -0
- package/dist/esm/client/accountGraph.js +314 -0
- package/dist/esm/client/agentKeys.js +74 -0
- package/dist/esm/client/check.js +428 -0
- package/dist/esm/client/deviceBoot.js +19 -0
- package/dist/esm/client/deviceDirectory.js +48 -0
- package/dist/esm/client/deviceSession.js +60 -0
- package/dist/esm/client/externalIdentity.js +16 -0
- package/dist/esm/client/identity.js +42 -0
- package/dist/esm/client/identityLink.js +50 -0
- package/dist/esm/client/identityProof.js +104 -0
- package/dist/esm/client/index.js +37 -0
- package/dist/esm/client/organizations.js +111 -0
- package/dist/esm/client/products.js +150 -0
- package/dist/esm/client/recommendations.js +30 -0
- package/dist/esm/client/reputation.js +37 -0
- package/dist/esm/client/safety.js +12 -0
- package/dist/esm/client/sessionStatus.js +20 -0
- package/dist/esm/client/signIn.js +151 -0
- package/dist/esm/client/userResponse.js +12 -0
- package/dist/esm/client/username.js +167 -0
- package/dist/esm/deviceSession.js +1 -15
- package/dist/esm/identityLink.js +4 -27
- package/dist/esm/identityProof.js +4 -99
- package/dist/esm/index.js +2 -2
- package/dist/esm/inference/money.js +10 -0
- package/dist/esm/inference/version.js +1 -1
- package/dist/esm/organizations.js +4 -31
- package/dist/esm/products/billing.js +0 -1
- package/dist/esm/products/checkout.js +0 -13
- package/dist/esm/products/plans.js +1 -17
- package/dist/esm/reputation.js +1 -32
- package/dist/esm/signIn.js +29 -83
- package/dist/esm/userResponse.js +1 -8
- package/dist/esm/username.js +4 -148
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/accountEmail.d.ts +2 -34
- package/dist/types/accountGraph.d.ts +12 -208
- package/dist/types/agency.d.ts +24 -24
- package/dist/types/agentKeys.d.ts +8 -6
- package/dist/types/client/accountEmail.d.ts +44 -0
- package/dist/types/client/accountGraph.d.ts +203 -0
- package/dist/types/client/agentKeys.d.ts +113 -0
- package/dist/types/client/check.d.ts +184 -0
- package/dist/types/client/deviceBoot.d.ts +6 -0
- package/dist/types/client/deviceDirectory.d.ts +134 -0
- package/dist/types/client/deviceSession.d.ts +91 -0
- package/dist/types/client/externalIdentity.d.ts +14 -0
- package/dist/types/client/identity.d.ts +8 -0
- package/dist/types/client/identityLink.d.ts +21 -0
- package/dist/types/client/identityProof.d.ts +73 -0
- package/dist/types/client/index.d.ts +37 -0
- package/dist/types/client/organizations.d.ts +167 -0
- package/dist/types/client/products.d.ts +145 -0
- package/dist/types/client/recommendations.d.ts +27 -0
- package/dist/types/client/reputation.d.ts +28 -0
- package/dist/types/client/safety.d.ts +13 -0
- package/dist/types/client/sessionStatus.d.ts +19 -0
- package/dist/types/client/signIn.d.ts +107 -0
- package/dist/types/client/userResponse.d.ts +7 -0
- package/dist/types/client/username.d.ts +126 -0
- package/dist/types/deviceDirectory.d.ts +28 -28
- package/dist/types/deviceSession.d.ts +1 -12
- package/dist/types/externalIdentity.d.ts +11 -44
- package/dist/types/identityLink.d.ts +3 -11
- package/dist/types/identityProof.d.ts +2 -65
- package/dist/types/index.d.ts +3 -3
- package/dist/types/inference/catalogue.d.ts +7 -7
- package/dist/types/inference/decisions.d.ts +41 -41
- package/dist/types/inference/economics.d.ts +5 -5
- package/dist/types/inference/embeddings.d.ts +16 -16
- package/dist/types/inference/errors.d.ts +8 -8
- package/dist/types/inference/inbox.d.ts +8 -8
- package/dist/types/inference/money.d.ts +17 -8
- package/dist/types/inference/priceVersion.d.ts +12 -12
- package/dist/types/inference/privateAutoExecution.d.ts +6 -6
- package/dist/types/inference/realtime.d.ts +54 -54
- package/dist/types/inference/request.d.ts +28 -28
- package/dist/types/inference/routingPolicy.d.ts +7 -7
- package/dist/types/inference/streamEvents.d.ts +26 -26
- package/dist/types/inference/usage.d.ts +32 -32
- package/dist/types/inference/version.d.ts +1 -1
- package/dist/types/oauth.d.ts +2 -2
- package/dist/types/organizations.d.ts +8 -10
- package/dist/types/products/billing.d.ts +3 -8
- package/dist/types/products/checkout.d.ts +0 -36
- package/dist/types/products/plans.d.ts +5 -102
- package/dist/types/reputation.d.ts +1 -11
- package/dist/types/sessionStatus.d.ts +2 -2
- package/dist/types/signIn.d.ts +74 -76
- package/dist/types/userResponse.d.ts +23 -159
- package/dist/types/username.d.ts +1 -96
- package/package.json +20 -1
|
@@ -13,23 +13,8 @@
|
|
|
13
13
|
* (`reauth`) use the same code, through their own routes (`signIn.ts`).
|
|
14
14
|
*/
|
|
15
15
|
import { z } from 'zod';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* - `signin`: the code (and link) of an email sign-in (`POST /auth/signin/email/start`).
|
|
19
|
-
* - `reauth`: a signed-in person proving it is them before a sensitive step
|
|
20
|
-
* (`POST /users/me/reauth/email`): a password, an authenticator, deleting the
|
|
21
|
-
* account, linking Commons.
|
|
22
|
-
*/
|
|
23
|
-
export declare const EMAIL_VERIFICATION_PURPOSES: readonly ["signup", "signin", "reauth"];
|
|
24
|
-
export type EmailVerificationPurpose = (typeof EMAIL_VERIFICATION_PURPOSES)[number];
|
|
25
|
-
/** Digits in a code. */
|
|
26
|
-
export declare const EMAIL_CODE_LENGTH = 6;
|
|
27
|
-
/** How long a code can be confirmed. */
|
|
28
|
-
export declare const EMAIL_CODE_TTL_MS: number;
|
|
29
|
-
/** Wrong codes before a verification is spent and a new code is needed. */
|
|
30
|
-
export declare const EMAIL_CODE_MAX_ATTEMPTS = 5;
|
|
31
|
-
/** How long a confirmed code's ticket can be spent. */
|
|
32
|
-
export declare const EMAIL_TICKET_TTL_MS: number;
|
|
16
|
+
export { EMAIL_VERIFICATION_PURPOSES, EMAIL_CODE_LENGTH, EMAIL_CODE_TTL_MS, EMAIL_CODE_MAX_ATTEMPTS, EMAIL_TICKET_TTL_MS, EMAIL_VERIFICATION_ERROR_CODES, } from './client/accountEmail';
|
|
17
|
+
export type { EmailVerificationPurpose, EmailVerificationErrorCode } from './client/accountEmail';
|
|
33
18
|
/** An email address as the API stores it: trimmed and lowercase. */
|
|
34
19
|
export declare const emailAddressSchema: z.ZodString;
|
|
35
20
|
/** An opaque one-use ticket (32 random bytes, base64url). */
|
|
@@ -71,20 +56,3 @@ export interface EmailVerificationConfirmResponse {
|
|
|
71
56
|
expiresAt: number;
|
|
72
57
|
}
|
|
73
58
|
export declare const emailVerificationConfirmResponseSchema: z.ZodType<EmailVerificationConfirmResponse>;
|
|
74
|
-
/**
|
|
75
|
-
* Stable error codes (`error.code` in the API error body). Clients map these
|
|
76
|
-
* through their localization, never the English message.
|
|
77
|
-
*/
|
|
78
|
-
export declare const EMAIL_VERIFICATION_ERROR_CODES: {
|
|
79
|
-
/** The code is wrong, or its verification expired or was spent. */
|
|
80
|
-
readonly codeInvalid: "EMAIL_CODE_INVALID";
|
|
81
|
-
/** Too many wrong codes: request a new one. */
|
|
82
|
-
readonly tooManyAttempts: "EMAIL_CODE_TOO_MANY_ATTEMPTS";
|
|
83
|
-
/** The ticket is unknown, expired, spent, or for another email or purpose. */
|
|
84
|
-
readonly ticketInvalid: "EMAIL_TICKET_INVALID";
|
|
85
|
-
/** A sign-up without a confirmed email. */
|
|
86
|
-
readonly ticketRequired: "EMAIL_TICKET_REQUIRED";
|
|
87
|
-
/** This server cannot send mail. */
|
|
88
|
-
readonly unavailable: "EMAIL_UNAVAILABLE";
|
|
89
|
-
};
|
|
90
|
-
export type EmailVerificationErrorCode = (typeof EMAIL_VERIFICATION_ERROR_CODES)[keyof typeof EMAIL_VERIFICATION_ERROR_CODES];
|
|
@@ -7,138 +7,10 @@
|
|
|
7
7
|
* {@link ACCOUNT_CATEGORY_IDS} for the four rules that govern it.
|
|
8
8
|
*/
|
|
9
9
|
import { z } from 'zod';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
* `personal` is the only kind minted by signup and the only one that signs in
|
|
14
|
-
* as a device principal; every other kind is a child account created under a
|
|
15
|
-
* parent and reached through `account_members`. The API schema, the Drizzle
|
|
16
|
-
* table and the SDK all derive from this list rather than restating it, so a
|
|
17
|
-
* new kind is one edit here instead of four literals that can drift.
|
|
18
|
-
*
|
|
19
|
-
* The kind names what an account IS. It does not, on its own, answer who may
|
|
20
|
-
* switch into it, who may act as it, who the actor is, or anything commercial —
|
|
21
|
-
* each of those has its own predicate or contract, tabulated at the top of
|
|
22
|
-
* `accountSubject.ts`. In particular a `bot` is a COMPLETE account (issue
|
|
23
|
-
* #1520): it owns resources, holds roles, plans and a balance, receives funds
|
|
24
|
-
* and pays for itself under the same rules as a person, and is its own actor.
|
|
25
|
-
*/
|
|
26
|
-
export type AccountKind = 'personal' | 'organization' | 'project' | 'bot' | 'channel';
|
|
27
|
-
/**
|
|
28
|
-
* The union is spelled out above and the array proves coverage BOTH ways
|
|
29
|
-
* (`satisfies` here, the `Gap` alias below) — the same shape this package's
|
|
30
|
-
* `ACCOUNT_CATEGORY_IDS` / `TRUST_TIERS` pairs use, and the one
|
|
31
|
-
* `db/schema/users.ts` mirrors to keep the `users_kind_check` CHECK honest.
|
|
32
|
-
*
|
|
33
|
-
* Deriving the union from the array instead would cost nothing here and be paid
|
|
34
|
-
* by consumers: `kind` travels into `@oxy.so/services` on every device-directory
|
|
35
|
-
* context (`deviceContextSchema.kind` → `DeviceContext` → the switcher rows),
|
|
36
|
-
* and an indexed-access type is materially more expensive to check there than a
|
|
37
|
-
* literal union.
|
|
38
|
-
*/
|
|
39
|
-
export declare const ACCOUNT_KINDS: readonly ["personal", "organization", "project", "bot", "channel"];
|
|
40
|
-
/** `never` while `ACCOUNT_KINDS` covers the union. */
|
|
41
|
-
export type AccountKindGap = Exclude<AccountKind, (typeof ACCOUNT_KINDS)[number]>;
|
|
10
|
+
export { ACCOUNT_KINDS, CHILD_ACCOUNT_KINDS, isDelegatedActAsEligibleKind, isOperatorSwitchTargetKind, isAccountKind, ACCOUNT_CATEGORY_IDS, RETIRED_ACCOUNT_CATEGORY_IDS, isSelectableAccountCategoryId, SELECTABLE_ACCOUNT_CATEGORY_IDS, newlyAddedRetiredCategories, MAX_ACCOUNT_CATEGORIES, ACCOUNT_CATEGORY_KINDS, kindAcceptsAccountCategories, } from './client/accountGraph';
|
|
11
|
+
export type { AccountKind, AccountKindGap, ChildAccountKind, ChildAccountKindGap, AccountCategoryId, AccountCategoryKind, } from './client/accountGraph';
|
|
42
12
|
export declare const accountKindSchema: z.ZodEnum<["personal", "organization", "project", "bot", "channel"]>;
|
|
43
|
-
/**
|
|
44
|
-
* Kinds that may be CREATED as children of another account. Exactly
|
|
45
|
-
* `ACCOUNT_KINDS` minus `personal`, which is always a tree root.
|
|
46
|
-
*/
|
|
47
|
-
export type ChildAccountKind = Exclude<AccountKind, 'personal'>;
|
|
48
|
-
export declare const CHILD_ACCOUNT_KINDS: readonly ["organization", "project", "bot", "channel"];
|
|
49
|
-
/** `never` while `CHILD_ACCOUNT_KINDS` covers the child union. */
|
|
50
|
-
export type ChildAccountKindGap = Exclude<ChildAccountKind, (typeof CHILD_ACCOUNT_KINDS)[number]>;
|
|
51
13
|
export declare const childAccountKindSchema: z.ZodEnum<["organization", "project", "bot", "channel"]>;
|
|
52
|
-
/**
|
|
53
|
-
* Whether an account of this kind may be the SUBJECT OF A DELEGATION — an
|
|
54
|
-
* application acting as it on some person's authority. `POST /internal/accounts/
|
|
55
|
-
* :id/service-switch` and the OAuth delegated subject both gate on this.
|
|
56
|
-
*
|
|
57
|
-
* It is NOT the question an account switcher asks. See
|
|
58
|
-
* {@link isOperatorSwitchTargetKind}, and the note below on why the difference
|
|
59
|
-
* is `bot`.
|
|
60
|
-
*
|
|
61
|
-
* Two kinds are refused, for opposite reasons:
|
|
62
|
-
*
|
|
63
|
-
* - `personal` is a human login, so assuming it would be impersonation.
|
|
64
|
-
* - `channel` is a CONTENT identity, not an operating one. A channel exists so
|
|
65
|
-
* that posts can be authored BY it; it is never a seat anybody occupies. Its
|
|
66
|
-
* operators act on it through their own membership, and an application
|
|
67
|
-
* publishes to it with its own credential. Refusing act-as is what makes
|
|
68
|
-
* "no login, ever" structural rather than incidental: no session can be
|
|
69
|
-
* minted whose subject is a channel, so no bearer exists that could add an
|
|
70
|
-
* auth method to one (every auth-method write resolves its target from the
|
|
71
|
-
* authenticated subject, never from a parameter).
|
|
72
|
-
*
|
|
73
|
-
* Consumers must gate on this predicate rather than testing `kind === 'personal'`,
|
|
74
|
-
* which silently admits every kind added after it was written.
|
|
75
|
-
*
|
|
76
|
-
* Being act-as-eligible is NOT being without an identity of one's own. A bot is
|
|
77
|
-
* act-as-eligible AND its own actor (`accountKindActorNature` → `'agent'` in
|
|
78
|
-
* `accountSubject.ts`): an application acting as it on a person's authority
|
|
79
|
-
* records that person as the actor, and the bot acting with nobody operating it
|
|
80
|
-
* records the bot. Neither ever records the bot's owner in the bot's place.
|
|
81
|
-
*/
|
|
82
|
-
export declare function isDelegatedActAsEligibleKind(kind: AccountKind | null | undefined): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* Whether a PERSON may switch into an account of this kind — become it, in an
|
|
85
|
-
* account switcher, for the rest of their session.
|
|
86
|
-
*
|
|
87
|
-
* ## Why this is not the same question as {@link isDelegatedActAsEligibleKind}
|
|
88
|
-
*
|
|
89
|
-
* The two differ on exactly one kind, `bot`, and that difference is the whole
|
|
90
|
-
* reason both exist.
|
|
91
|
-
*
|
|
92
|
-
* **A bot is not something you become. It is somebody of its own.** It is an
|
|
93
|
-
* agent's identity, with its own resources, roles, plan and balance, and it is
|
|
94
|
-
* the actor of what it does unoperated. A person may still act AS it on their
|
|
95
|
-
* own authority — that is delegation, recorded with the person as actor, and it
|
|
96
|
-
* is what {@link isDelegatedActAsEligibleKind} admits it for. What a person
|
|
97
|
-
* never does is occupy its seat. This is a refusal of a SEAT, not a capability
|
|
98
|
-
* restriction: nothing a bot may do depends on this predicate.
|
|
99
|
-
*
|
|
100
|
-
* Handing a person the bot's seat instead inverts that. It puts a human inside
|
|
101
|
-
* the identity that exists to act without one, and it does so on the human's own
|
|
102
|
-
* device, next to their personal login — which is precisely what happened: a
|
|
103
|
-
* `bot` account held a live session on a person's device, offered to them by a
|
|
104
|
-
* switcher that had asked the delegation question by mistake.
|
|
105
|
-
*
|
|
106
|
-
* `channel` is refused here as well, for the reason set out above, and
|
|
107
|
-
* `personal` because assuming somebody else's login is impersonation.
|
|
108
|
-
*
|
|
109
|
-
* ## This is the narrower predicate, deliberately
|
|
110
|
-
*
|
|
111
|
-
* Everything a person may become, a service may also act as; the reverse does
|
|
112
|
-
* not hold. A caller that is unsure which question it is asking wants THIS one:
|
|
113
|
-
* being wrong here withholds an affordance, while being wrong the other way
|
|
114
|
-
* hands out a seat.
|
|
115
|
-
*/
|
|
116
|
-
export declare function isOperatorSwitchTargetKind(kind: AccountKind | null | undefined): boolean;
|
|
117
|
-
/**
|
|
118
|
-
* Narrow an unknown value to an {@link AccountKind}.
|
|
119
|
-
*
|
|
120
|
-
* The user-DTO serializers read from structurally-permissive `unknown` sources
|
|
121
|
-
* (a Drizzle row, a raw document, an already-formatted object), so each one
|
|
122
|
-
* would otherwise hand-roll this check and they would drift on what counts.
|
|
123
|
-
*/
|
|
124
|
-
export declare function isAccountKind(value: unknown): value is AccountKind;
|
|
125
|
-
/**
|
|
126
|
-
* Every account category, by stable id.
|
|
127
|
-
*
|
|
128
|
-
* Grouped by comment for readability only; the storage, the wire and the picker
|
|
129
|
-
* all treat this as one flat list. `other` is the escape hatch for an account
|
|
130
|
-
* that fits nothing here.
|
|
131
|
-
*
|
|
132
|
-
* TO ADD ONE: append an id (lowercase ASCII, `snake_case`) here, publish
|
|
133
|
-
* `@oxy.so/contracts`, then ship a migration that widens
|
|
134
|
-
* `users_account_categories_check` — never edit an existing migration — and add
|
|
135
|
-
* an `accounts.accountCategory.<id>` label to each client's locales.
|
|
136
|
-
*
|
|
137
|
-
* TO WITHDRAW ONE: leave the id here and add it to
|
|
138
|
-
* {@link RETIRED_ACCOUNT_CATEGORY_IDS}. See rule 3 above.
|
|
139
|
-
*/
|
|
140
|
-
export declare const ACCOUNT_CATEGORY_IDS: readonly ["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"];
|
|
141
|
-
export type AccountCategoryId = (typeof ACCOUNT_CATEGORY_IDS)[number];
|
|
142
14
|
/**
|
|
143
15
|
* Accepts EVERY id, withdrawn ones included — see rule 3.
|
|
144
16
|
*
|
|
@@ -148,55 +20,6 @@ export type AccountCategoryId = (typeof ACCOUNT_CATEGORY_IDS)[number];
|
|
|
148
20
|
* nullable `bio` / `avatar` fix addressed, wearing a different hat.
|
|
149
21
|
*/
|
|
150
22
|
export declare const accountCategoryIdSchema: z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>;
|
|
151
|
-
/**
|
|
152
|
-
* Ids withdrawn from the picker. Empty today.
|
|
153
|
-
*
|
|
154
|
-
* A withdrawn id keeps working everywhere it is already stored: it validates,
|
|
155
|
-
* it survives a round-trip save, it still renders from its label key, and it
|
|
156
|
-
* stays PRIMARY if it was primary. Nothing rewrites a stored list — a read-time
|
|
157
|
-
* or migration-time demotion would silently replace a choice its owner made,
|
|
158
|
-
* which is precisely what stable ids exist to prevent. The owner drops it on
|
|
159
|
-
* their next edit; until then it is honoured.
|
|
160
|
-
*
|
|
161
|
-
* What withdrawal changes is only this: the id leaves
|
|
162
|
-
* {@link SELECTABLE_ACCOUNT_CATEGORY_IDS}, so no picker offers it, and
|
|
163
|
-
* {@link newlyAddedRetiredCategories} refuses to let a write ADD it to an
|
|
164
|
-
* account that did not already have it.
|
|
165
|
-
*/
|
|
166
|
-
export declare const RETIRED_ACCOUNT_CATEGORY_IDS: readonly AccountCategoryId[];
|
|
167
|
-
/** Whether a category may still be OFFERED. A stored one is readable either way. */
|
|
168
|
-
export declare function isSelectableAccountCategoryId(id: AccountCategoryId): boolean;
|
|
169
|
-
/** The ids a picker may offer, in declaration order. */
|
|
170
|
-
export declare const SELECTABLE_ACCOUNT_CATEGORY_IDS: readonly AccountCategoryId[];
|
|
171
|
-
/**
|
|
172
|
-
* Which of `next` are withdrawn ids the account did not already carry — i.e.
|
|
173
|
-
* the ones a write must be refused for.
|
|
174
|
-
*
|
|
175
|
-
* `retired` is a parameter rather than a module read so the rule can be
|
|
176
|
-
* exercised against a non-empty set while the production one is empty; a test
|
|
177
|
-
* over `RETIRED_ACCOUNT_CATEGORY_IDS` alone would pass vacuously today and stay
|
|
178
|
-
* passing if the rule were deleted.
|
|
179
|
-
*/
|
|
180
|
-
export declare function newlyAddedRetiredCategories(next: readonly AccountCategoryId[], previous: readonly AccountCategoryId[], retired: readonly AccountCategoryId[]): AccountCategoryId[];
|
|
181
|
-
/**
|
|
182
|
-
* How many categories one account may carry.
|
|
183
|
-
*
|
|
184
|
-
* Four, not "as many as you like". Three reasons, in the order they bind:
|
|
185
|
-
*
|
|
186
|
-
* - The primary has to MEAN something. At ten categories the first element
|
|
187
|
-
* reads as a sort artifact rather than a choice, and rule 2 above is the
|
|
188
|
-
* entire mechanism by which a primary exists.
|
|
189
|
-
* - The profile RENDERS them as a row of chips; four labels of this length is
|
|
190
|
-
* what fits a phone-width profile header before the row wraps or truncates.
|
|
191
|
-
* - Four is enough to place a genuinely compound account without a tag cloud:
|
|
192
|
-
* a housing cooperative that is also a non-profit serving a local community
|
|
193
|
-
* spends `cooperative`, `nonprofit`, `community`, `real_estate` — and is the
|
|
194
|
-
* most compound real example in the ecosystem.
|
|
195
|
-
*
|
|
196
|
-
* One constant, read by the wire schema, the database CHECK and the picker, so
|
|
197
|
-
* changing it is one edit plus a migration.
|
|
198
|
-
*/
|
|
199
|
-
export declare const MAX_ACCOUNT_CATEGORIES = 4;
|
|
200
23
|
/**
|
|
201
24
|
* An account's categories on the wire. ORDER IS MEANINGFUL — index 0 is the
|
|
202
25
|
* primary (rule 2).
|
|
@@ -207,26 +30,7 @@ export declare const MAX_ACCOUNT_CATEGORIES = 4;
|
|
|
207
30
|
* property the list exists to carry. A duplicate only ever comes from a client
|
|
208
31
|
* bug, and a 400 naming the index is how that bug gets found.
|
|
209
32
|
*/
|
|
210
|
-
export declare const accountCategoriesSchema: z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "
|
|
211
|
-
/**
|
|
212
|
-
* Kinds that may carry categories: every kind EXCEPT `personal`.
|
|
213
|
-
*
|
|
214
|
-
* A person has interests, not a sector — and their interests are not a
|
|
215
|
-
* classification anybody else gets to read off their profile. Spelled out
|
|
216
|
-
* positively, like {@link isDelegatedActAsEligibleKind} and for the same reason: a `kind
|
|
217
|
-
* !== 'personal'` test silently admits every kind invented after it was
|
|
218
|
-
* written, whereas this list forces whoever adds one to decide.
|
|
219
|
-
*/
|
|
220
|
-
export declare const ACCOUNT_CATEGORY_KINDS: readonly ["organization", "project", "bot", "channel"];
|
|
221
|
-
export type AccountCategoryKind = (typeof ACCOUNT_CATEGORY_KINDS)[number];
|
|
222
|
-
/**
|
|
223
|
-
* Whether an account of this kind may carry categories.
|
|
224
|
-
*
|
|
225
|
-
* The API refuses the write and the `users_account_categories_kind_check`
|
|
226
|
-
* constraint makes it unrepresentable; both derive from
|
|
227
|
-
* {@link ACCOUNT_CATEGORY_KINDS}, so they cannot disagree.
|
|
228
|
-
*/
|
|
229
|
-
export declare function kindAcceptsAccountCategories(kind: AccountKind | null | undefined): boolean;
|
|
33
|
+
export declare const accountCategoriesSchema: z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>;
|
|
230
34
|
/**
|
|
231
35
|
* An account's name on the create/update wire.
|
|
232
36
|
*
|
|
@@ -314,7 +118,7 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
314
118
|
*/
|
|
315
119
|
color: z.ZodOptional<z.ZodString>;
|
|
316
120
|
/** Ordered, PRIMARY FIRST — see rule 2 above {@link ACCOUNT_CATEGORY_IDS}. */
|
|
317
|
-
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "
|
|
121
|
+
accountCategories: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodEnum<["news", "politics", "business", "startup", "finance", "crypto", "marketplace", "retail", "real_estate", "agency", "landlord", "cooperative", "architecture", "technology", "software", "ai", "security", "automation", "science", "education", "books", "health", "fitness", "sports", "gaming", "music", "film", "podcast", "art", "photography", "comedy", "food", "travel", "fashion", "home_garden", "diy", "automotive", "animals", "family", "nonprofit", "government", "community", "activism", "environment", "religion", "other"]>, "many">, ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[], ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[]>>;
|
|
318
122
|
organizationType: z.ZodOptional<z.ZodEnum<["business", "nonprofit", "public_body", "community", "other"]>>;
|
|
319
123
|
/**
|
|
320
124
|
* Create the account already opted OUT of discovery.
|
|
@@ -365,7 +169,7 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
365
169
|
*/
|
|
366
170
|
character: z.ZodOptional<z.ZodType<import("./avatarCharacter").AvatarCharacter, z.ZodTypeDef, unknown>>;
|
|
367
171
|
}, "strip", z.ZodTypeAny, {
|
|
368
|
-
kind: "organization" | "
|
|
172
|
+
kind: "organization" | "project" | "bot" | "channel";
|
|
369
173
|
username: string;
|
|
370
174
|
color?: string | undefined;
|
|
371
175
|
name?: {
|
|
@@ -378,11 +182,11 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
378
182
|
parentAccountId?: string | undefined;
|
|
379
183
|
bio?: string | undefined;
|
|
380
184
|
description?: string | undefined;
|
|
381
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
185
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
382
186
|
isPrivateAccount?: boolean | undefined;
|
|
383
187
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
384
188
|
}, {
|
|
385
|
-
kind: "organization" | "
|
|
189
|
+
kind: "organization" | "project" | "bot" | "channel";
|
|
386
190
|
username: string;
|
|
387
191
|
color?: string | undefined;
|
|
388
192
|
name?: {
|
|
@@ -395,11 +199,11 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
395
199
|
parentAccountId?: string | undefined;
|
|
396
200
|
bio?: string | undefined;
|
|
397
201
|
description?: string | undefined;
|
|
398
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
202
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
399
203
|
isPrivateAccount?: boolean | undefined;
|
|
400
204
|
character?: unknown;
|
|
401
205
|
}>, {
|
|
402
|
-
kind: "organization" | "
|
|
206
|
+
kind: "organization" | "project" | "bot" | "channel";
|
|
403
207
|
username: string;
|
|
404
208
|
color?: string | undefined;
|
|
405
209
|
name?: {
|
|
@@ -412,11 +216,11 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
412
216
|
parentAccountId?: string | undefined;
|
|
413
217
|
bio?: string | undefined;
|
|
414
218
|
description?: string | undefined;
|
|
415
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
219
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
416
220
|
isPrivateAccount?: boolean | undefined;
|
|
417
221
|
character?: import("./avatarCharacter").AvatarCharacter | undefined;
|
|
418
222
|
}, {
|
|
419
|
-
kind: "organization" | "
|
|
223
|
+
kind: "organization" | "project" | "bot" | "channel";
|
|
420
224
|
username: string;
|
|
421
225
|
color?: string | undefined;
|
|
422
226
|
name?: {
|
|
@@ -429,7 +233,7 @@ export declare const createAccountRequestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
429
233
|
parentAccountId?: string | undefined;
|
|
430
234
|
bio?: string | undefined;
|
|
431
235
|
description?: string | undefined;
|
|
432
|
-
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "
|
|
236
|
+
accountCategories?: ("business" | "nonprofit" | "community" | "other" | "news" | "politics" | "startup" | "finance" | "crypto" | "marketplace" | "retail" | "real_estate" | "agency" | "landlord" | "cooperative" | "architecture" | "technology" | "software" | "ai" | "security" | "automation" | "science" | "education" | "books" | "health" | "fitness" | "sports" | "gaming" | "music" | "film" | "podcast" | "art" | "photography" | "comedy" | "food" | "travel" | "fashion" | "home_garden" | "diy" | "automotive" | "animals" | "family" | "government" | "activism" | "environment" | "religion")[] | undefined;
|
|
433
237
|
isPrivateAccount?: boolean | undefined;
|
|
434
238
|
character?: unknown;
|
|
435
239
|
}>;
|
package/dist/types/agency.d.ts
CHANGED
|
@@ -319,7 +319,7 @@ export declare const delegationGrantSchema: z.ZodObject<{
|
|
|
319
319
|
version: string;
|
|
320
320
|
digest: string;
|
|
321
321
|
} | null;
|
|
322
|
-
capabilityPackages: ("create" | "
|
|
322
|
+
capabilityPackages: ("create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
|
|
323
323
|
capabilities: string[];
|
|
324
324
|
toolOverrides: {
|
|
325
325
|
decision: "allow" | "deny";
|
|
@@ -357,7 +357,7 @@ export declare const delegationGrantSchema: z.ZodObject<{
|
|
|
357
357
|
version: string;
|
|
358
358
|
digest: string;
|
|
359
359
|
} | null;
|
|
360
|
-
capabilityPackages: ("create" | "
|
|
360
|
+
capabilityPackages: ("create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate")[];
|
|
361
361
|
capabilities: string[];
|
|
362
362
|
maximumAutonomy: "read_only" | "draft" | "execute_on_request" | "autonomous";
|
|
363
363
|
toolOverrides?: {
|
|
@@ -2077,7 +2077,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2077
2077
|
version: string;
|
|
2078
2078
|
rollback: "none" | "manual" | "supported";
|
|
2079
2079
|
inputSchema: Record<string, unknown>;
|
|
2080
|
-
capabilityPackage: "create" | "
|
|
2080
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2081
2081
|
requiredCapabilities: string[];
|
|
2082
2082
|
resourceTypes: string[];
|
|
2083
2083
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2098,7 +2098,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2098
2098
|
version: string;
|
|
2099
2099
|
rollback: "none" | "manual" | "supported";
|
|
2100
2100
|
inputSchema: Record<string, unknown>;
|
|
2101
|
-
capabilityPackage: "create" | "
|
|
2101
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2102
2102
|
requiredCapabilities: string[];
|
|
2103
2103
|
resourceTypes: string[];
|
|
2104
2104
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2119,7 +2119,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2119
2119
|
version: string;
|
|
2120
2120
|
rollback: "none" | "manual" | "supported";
|
|
2121
2121
|
inputSchema: Record<string, unknown>;
|
|
2122
|
-
capabilityPackage: "create" | "
|
|
2122
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2123
2123
|
requiredCapabilities: string[];
|
|
2124
2124
|
resourceTypes: string[];
|
|
2125
2125
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2140,7 +2140,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2140
2140
|
version: string;
|
|
2141
2141
|
rollback: "none" | "manual" | "supported";
|
|
2142
2142
|
inputSchema: Record<string, unknown>;
|
|
2143
|
-
capabilityPackage: "create" | "
|
|
2143
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2144
2144
|
requiredCapabilities: string[];
|
|
2145
2145
|
resourceTypes: string[];
|
|
2146
2146
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2231,7 +2231,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2231
2231
|
version: string;
|
|
2232
2232
|
rollback: "none" | "manual" | "supported";
|
|
2233
2233
|
inputSchema: Record<string, unknown>;
|
|
2234
|
-
capabilityPackage: "create" | "
|
|
2234
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2235
2235
|
requiredCapabilities: string[];
|
|
2236
2236
|
resourceTypes: string[];
|
|
2237
2237
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2252,7 +2252,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2252
2252
|
version: string;
|
|
2253
2253
|
rollback: "none" | "manual" | "supported";
|
|
2254
2254
|
inputSchema: Record<string, unknown>;
|
|
2255
|
-
capabilityPackage: "create" | "
|
|
2255
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2256
2256
|
requiredCapabilities: string[];
|
|
2257
2257
|
resourceTypes: string[];
|
|
2258
2258
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2273,7 +2273,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2273
2273
|
version: string;
|
|
2274
2274
|
rollback: "none" | "manual" | "supported";
|
|
2275
2275
|
inputSchema: Record<string, unknown>;
|
|
2276
|
-
capabilityPackage: "create" | "
|
|
2276
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2277
2277
|
requiredCapabilities: string[];
|
|
2278
2278
|
resourceTypes: string[];
|
|
2279
2279
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2294,7 +2294,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2294
2294
|
version: string;
|
|
2295
2295
|
rollback: "none" | "manual" | "supported";
|
|
2296
2296
|
inputSchema: Record<string, unknown>;
|
|
2297
|
-
capabilityPackage: "create" | "
|
|
2297
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2298
2298
|
requiredCapabilities: string[];
|
|
2299
2299
|
resourceTypes: string[];
|
|
2300
2300
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2342,7 +2342,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2342
2342
|
version: string;
|
|
2343
2343
|
rollback: "none" | "manual" | "supported";
|
|
2344
2344
|
inputSchema: Record<string, unknown>;
|
|
2345
|
-
capabilityPackage: "create" | "
|
|
2345
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2346
2346
|
requiredCapabilities: string[];
|
|
2347
2347
|
resourceTypes: string[];
|
|
2348
2348
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2381,7 +2381,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2381
2381
|
version: string;
|
|
2382
2382
|
rollback: "none" | "manual" | "supported";
|
|
2383
2383
|
inputSchema: Record<string, unknown>;
|
|
2384
|
-
capabilityPackage: "create" | "
|
|
2384
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2385
2385
|
requiredCapabilities: string[];
|
|
2386
2386
|
resourceTypes: string[];
|
|
2387
2387
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2420,7 +2420,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2420
2420
|
version: string;
|
|
2421
2421
|
rollback: "none" | "manual" | "supported";
|
|
2422
2422
|
inputSchema: Record<string, unknown>;
|
|
2423
|
-
capabilityPackage: "create" | "
|
|
2423
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2424
2424
|
requiredCapabilities: string[];
|
|
2425
2425
|
resourceTypes: string[];
|
|
2426
2426
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2459,7 +2459,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2459
2459
|
version: string;
|
|
2460
2460
|
rollback: "none" | "manual" | "supported";
|
|
2461
2461
|
inputSchema: Record<string, unknown>;
|
|
2462
|
-
capabilityPackage: "create" | "
|
|
2462
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2463
2463
|
requiredCapabilities: string[];
|
|
2464
2464
|
resourceTypes: string[];
|
|
2465
2465
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2543,7 +2543,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2543
2543
|
version: string;
|
|
2544
2544
|
rollback: "none" | "manual" | "supported";
|
|
2545
2545
|
inputSchema: Record<string, unknown>;
|
|
2546
|
-
capabilityPackage: "create" | "
|
|
2546
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2547
2547
|
requiredCapabilities: string[];
|
|
2548
2548
|
resourceTypes: string[];
|
|
2549
2549
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2564,7 +2564,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2564
2564
|
version: string;
|
|
2565
2565
|
rollback: "none" | "manual" | "supported";
|
|
2566
2566
|
inputSchema: Record<string, unknown>;
|
|
2567
|
-
capabilityPackage: "create" | "
|
|
2567
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2568
2568
|
requiredCapabilities: string[];
|
|
2569
2569
|
resourceTypes: string[];
|
|
2570
2570
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2585,7 +2585,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2585
2585
|
version: string;
|
|
2586
2586
|
rollback: "none" | "manual" | "supported";
|
|
2587
2587
|
inputSchema: Record<string, unknown>;
|
|
2588
|
-
capabilityPackage: "create" | "
|
|
2588
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2589
2589
|
requiredCapabilities: string[];
|
|
2590
2590
|
resourceTypes: string[];
|
|
2591
2591
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2606,7 +2606,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2606
2606
|
version: string;
|
|
2607
2607
|
rollback: "none" | "manual" | "supported";
|
|
2608
2608
|
inputSchema: Record<string, unknown>;
|
|
2609
|
-
capabilityPackage: "create" | "
|
|
2609
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2610
2610
|
requiredCapabilities: string[];
|
|
2611
2611
|
resourceTypes: string[];
|
|
2612
2612
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2654,7 +2654,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2654
2654
|
version: string;
|
|
2655
2655
|
rollback: "none" | "manual" | "supported";
|
|
2656
2656
|
inputSchema: Record<string, unknown>;
|
|
2657
|
-
capabilityPackage: "create" | "
|
|
2657
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2658
2658
|
requiredCapabilities: string[];
|
|
2659
2659
|
resourceTypes: string[];
|
|
2660
2660
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2693,7 +2693,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2693
2693
|
version: string;
|
|
2694
2694
|
rollback: "none" | "manual" | "supported";
|
|
2695
2695
|
inputSchema: Record<string, unknown>;
|
|
2696
|
-
capabilityPackage: "create" | "
|
|
2696
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2697
2697
|
requiredCapabilities: string[];
|
|
2698
2698
|
resourceTypes: string[];
|
|
2699
2699
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2732,7 +2732,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2732
2732
|
version: string;
|
|
2733
2733
|
rollback: "none" | "manual" | "supported";
|
|
2734
2734
|
inputSchema: Record<string, unknown>;
|
|
2735
|
-
capabilityPackage: "create" | "
|
|
2735
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2736
2736
|
requiredCapabilities: string[];
|
|
2737
2737
|
resourceTypes: string[];
|
|
2738
2738
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2771,7 +2771,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2771
2771
|
version: string;
|
|
2772
2772
|
rollback: "none" | "manual" | "supported";
|
|
2773
2773
|
inputSchema: Record<string, unknown>;
|
|
2774
|
-
capabilityPackage: "create" | "
|
|
2774
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2775
2775
|
requiredCapabilities: string[];
|
|
2776
2776
|
resourceTypes: string[];
|
|
2777
2777
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2816,7 +2816,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2816
2816
|
version: string;
|
|
2817
2817
|
rollback: "none" | "manual" | "supported";
|
|
2818
2818
|
inputSchema: Record<string, unknown>;
|
|
2819
|
-
capabilityPackage: "create" | "
|
|
2819
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2820
2820
|
requiredCapabilities: string[];
|
|
2821
2821
|
resourceTypes: string[];
|
|
2822
2822
|
idempotency: "none" | "supported" | "required";
|
|
@@ -2860,7 +2860,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
|
|
|
2860
2860
|
version: string;
|
|
2861
2861
|
rollback: "none" | "manual" | "supported";
|
|
2862
2862
|
inputSchema: Record<string, unknown>;
|
|
2863
|
-
capabilityPackage: "create" | "
|
|
2863
|
+
capabilityPackage: "create" | "finance" | "security" | "read" | "publish" | "communicate" | "administer" | "delegate";
|
|
2864
2864
|
requiredCapabilities: string[];
|
|
2865
2865
|
resourceTypes: string[];
|
|
2866
2866
|
idempotency: "none" | "supported" | "required";
|