@oxy.so/contracts 5.0.0 → 5.2.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.
@@ -2282,6 +2282,19 @@ export declare const auditEventSchema: z.ZodObject<{
2282
2282
  capabilityTicketId?: string | undefined;
2283
2283
  };
2284
2284
  }>;
2285
+ /**
2286
+ * The executing actor types a catalogue tool may name in `actors` — exactly the
2287
+ * discriminator of {@link executionActorRefSchema}.
2288
+ */
2289
+ export declare const CATALOG_TOOL_ACTOR_TYPES: readonly ["alia", "agent", "requester"];
2290
+ export declare const catalogToolActorTypeSchema: z.ZodEnum<["alia", "agent", "requester"]>;
2291
+ /**
2292
+ * Who may execute a tool that declares no `actors`: the standing actors
2293
+ * (native Alia and agents, {@link actorRefSchema}). A present requester
2294
+ * (ADR 0025) is opt-in — a tool reaches that lane only by naming `requester`,
2295
+ * which is what every catalogue meant before the field existed.
2296
+ */
2297
+ export declare const CATALOG_TOOL_DEFAULT_ACTORS: readonly ["alia", "agent"];
2285
2298
  export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
2286
2299
  name: z.ZodString;
2287
2300
  version: z.ZodString;
@@ -2295,6 +2308,12 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
2295
2308
  idempotency: z.ZodEnum<["none", "supported", "required"]>;
2296
2309
  rollback: z.ZodEnum<["none", "manual", "supported"]>;
2297
2310
  exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
2311
+ /**
2312
+ * Executing actor types Oxy will issue a capability ticket for. Absent
2313
+ * means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
2314
+ * the tool to any other actor: Oxy refuses the authorization.
2315
+ */
2316
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
2298
2317
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
2299
2318
  key: z.ZodString;
2300
2319
  kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
@@ -2336,6 +2355,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
2336
2355
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2337
2356
  };
2338
2357
  outputSchema?: Record<string, unknown> | undefined;
2358
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2339
2359
  }, {
2340
2360
  effect: "security" | "read" | "write" | "external" | "financial";
2341
2361
  name: string;
@@ -2353,6 +2373,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
2353
2373
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2354
2374
  };
2355
2375
  outputSchema?: Record<string, unknown> | undefined;
2376
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2356
2377
  limitKeys?: {
2357
2378
  kind: "maximum_number" | "exact_boolean";
2358
2379
  key: string;
@@ -2378,6 +2399,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
2378
2399
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2379
2400
  };
2380
2401
  outputSchema?: Record<string, unknown> | undefined;
2402
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2381
2403
  }, {
2382
2404
  effect: "security" | "read" | "write" | "external" | "financial";
2383
2405
  name: string;
@@ -2395,6 +2417,7 @@ export declare const catalogToolSchema: z.ZodEffects<z.ZodObject<{
2395
2417
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2396
2418
  };
2397
2419
  outputSchema?: Record<string, unknown> | undefined;
2420
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2398
2421
  limitKeys?: {
2399
2422
  kind: "maximum_number" | "exact_boolean";
2400
2423
  key: string;
@@ -2493,6 +2516,12 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2493
2516
  idempotency: z.ZodEnum<["none", "supported", "required"]>;
2494
2517
  rollback: z.ZodEnum<["none", "manual", "supported"]>;
2495
2518
  exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
2519
+ /**
2520
+ * Executing actor types Oxy will issue a capability ticket for. Absent
2521
+ * means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
2522
+ * the tool to any other actor: Oxy refuses the authorization.
2523
+ */
2524
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
2496
2525
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
2497
2526
  key: z.ZodString;
2498
2527
  kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
@@ -2534,6 +2563,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2534
2563
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2535
2564
  };
2536
2565
  outputSchema?: Record<string, unknown> | undefined;
2566
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2537
2567
  }, {
2538
2568
  effect: "security" | "read" | "write" | "external" | "financial";
2539
2569
  name: string;
@@ -2551,6 +2581,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2551
2581
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2552
2582
  };
2553
2583
  outputSchema?: Record<string, unknown> | undefined;
2584
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2554
2585
  limitKeys?: {
2555
2586
  kind: "maximum_number" | "exact_boolean";
2556
2587
  key: string;
@@ -2576,6 +2607,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2576
2607
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2577
2608
  };
2578
2609
  outputSchema?: Record<string, unknown> | undefined;
2610
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2579
2611
  }, {
2580
2612
  effect: "security" | "read" | "write" | "external" | "financial";
2581
2613
  name: string;
@@ -2593,6 +2625,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2593
2625
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2594
2626
  };
2595
2627
  outputSchema?: Record<string, unknown> | undefined;
2628
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2596
2629
  limitKeys?: {
2597
2630
  kind: "maximum_number" | "exact_boolean";
2598
2631
  key: string;
@@ -2645,6 +2678,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2645
2678
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2646
2679
  };
2647
2680
  outputSchema?: Record<string, unknown> | undefined;
2681
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2648
2682
  }[];
2649
2683
  events: {
2650
2684
  type: string;
@@ -2687,6 +2721,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2687
2721
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2688
2722
  };
2689
2723
  outputSchema?: Record<string, unknown> | undefined;
2724
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2690
2725
  limitKeys?: {
2691
2726
  kind: "maximum_number" | "exact_boolean";
2692
2727
  key: string;
@@ -2737,6 +2772,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2737
2772
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2738
2773
  };
2739
2774
  outputSchema?: Record<string, unknown> | undefined;
2775
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2740
2776
  }[];
2741
2777
  events: {
2742
2778
  type: string;
@@ -2779,6 +2815,7 @@ export declare const appCapabilityCatalogSchema: z.ZodEffects<z.ZodObject<{
2779
2815
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2780
2816
  };
2781
2817
  outputSchema?: Record<string, unknown> | undefined;
2818
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2782
2819
  limitKeys?: {
2783
2820
  kind: "maximum_number" | "exact_boolean";
2784
2821
  key: string;
@@ -2854,6 +2891,12 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2854
2891
  idempotency: z.ZodEnum<["none", "supported", "required"]>;
2855
2892
  rollback: z.ZodEnum<["none", "manual", "supported"]>;
2856
2893
  exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
2894
+ /**
2895
+ * Executing actor types Oxy will issue a capability ticket for. Absent
2896
+ * means {@link CATALOG_TOOL_DEFAULT_ACTORS}. A coordinator must not offer
2897
+ * the tool to any other actor: Oxy refuses the authorization.
2898
+ */
2899
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
2857
2900
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
2858
2901
  key: z.ZodString;
2859
2902
  kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
@@ -2895,6 +2938,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2895
2938
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2896
2939
  };
2897
2940
  outputSchema?: Record<string, unknown> | undefined;
2941
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2898
2942
  }, {
2899
2943
  effect: "security" | "read" | "write" | "external" | "financial";
2900
2944
  name: string;
@@ -2912,6 +2956,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2912
2956
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2913
2957
  };
2914
2958
  outputSchema?: Record<string, unknown> | undefined;
2959
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2915
2960
  limitKeys?: {
2916
2961
  kind: "maximum_number" | "exact_boolean";
2917
2962
  key: string;
@@ -2937,6 +2982,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2937
2982
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2938
2983
  };
2939
2984
  outputSchema?: Record<string, unknown> | undefined;
2985
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2940
2986
  }, {
2941
2987
  effect: "security" | "read" | "write" | "external" | "financial";
2942
2988
  name: string;
@@ -2954,6 +3000,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
2954
3000
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
2955
3001
  };
2956
3002
  outputSchema?: Record<string, unknown> | undefined;
3003
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
2957
3004
  limitKeys?: {
2958
3005
  kind: "maximum_number" | "exact_boolean";
2959
3006
  key: string;
@@ -3006,6 +3053,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
3006
3053
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3007
3054
  };
3008
3055
  outputSchema?: Record<string, unknown> | undefined;
3056
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
3009
3057
  }[];
3010
3058
  events: {
3011
3059
  type: string;
@@ -3048,6 +3096,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
3048
3096
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3049
3097
  };
3050
3098
  outputSchema?: Record<string, unknown> | undefined;
3099
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
3051
3100
  limitKeys?: {
3052
3101
  kind: "maximum_number" | "exact_boolean";
3053
3102
  key: string;
@@ -3098,6 +3147,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
3098
3147
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3099
3148
  };
3100
3149
  outputSchema?: Record<string, unknown> | undefined;
3150
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
3101
3151
  }[];
3102
3152
  events: {
3103
3153
  type: string;
@@ -3140,6 +3190,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
3140
3190
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3141
3191
  };
3142
3192
  outputSchema?: Record<string, unknown> | undefined;
3193
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
3143
3194
  limitKeys?: {
3144
3195
  kind: "maximum_number" | "exact_boolean";
3145
3196
  key: string;
@@ -3196,6 +3247,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
3196
3247
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3197
3248
  };
3198
3249
  outputSchema?: Record<string, unknown> | undefined;
3250
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
3199
3251
  }[];
3200
3252
  events: {
3201
3253
  type: string;
@@ -3243,6 +3295,7 @@ export declare const catalogRegistrationSchema: z.ZodObject<{
3243
3295
  method: "GET" | "POST" | "PATCH" | "PUT" | "DELETE";
3244
3296
  };
3245
3297
  outputSchema?: Record<string, unknown> | undefined;
3298
+ actors?: ("alia" | "agent" | "requester")[] | undefined;
3246
3299
  limitKeys?: {
3247
3300
  kind: "maximum_number" | "exact_boolean";
3248
3301
  key: string;
@@ -3340,6 +3393,11 @@ export type PolicyDecision = z.infer<typeof policyDecisionSchema>;
3340
3393
  export type AuditEvent = z.infer<typeof auditEventSchema>;
3341
3394
  export type CatalogTool = z.infer<typeof catalogToolSchema>;
3342
3395
  export type CatalogEvent = z.infer<typeof catalogEventSchema>;
3396
+ export type CatalogToolActorType = z.infer<typeof catalogToolActorTypeSchema>;
3397
+ /** The actor types that may execute `tool`: the one reading of an absent `actors`. */
3398
+ export declare function catalogToolActors(tool: Pick<CatalogTool, 'actors'>): readonly CatalogToolActorType[];
3399
+ /** Whether Oxy will authorize `actorType` to execute `tool`. */
3400
+ export declare function catalogToolAllowsActor(tool: Pick<CatalogTool, 'actors'>, actorType: CatalogToolActorType): boolean;
3343
3401
  export type AppCapabilityCatalog = z.infer<typeof appCapabilityCatalogSchema>;
3344
3402
  export type CatalogFeature = z.infer<typeof catalogFeatureSchema>;
3345
3403
  export type CatalogInternalTransport = (typeof CATALOG_INTERNAL_TRANSPORTS)[number];
@@ -10,8 +10,10 @@ import type { EmailVerificationConfirmResponse, EmailVerificationStartResponse }
10
10
  * - `reauth`: a signed-in person proving it is them before a sensitive step
11
11
  * (`POST /users/me/reauth/email`): a password, an authenticator, deleting the
12
12
  * account, linking Commons.
13
+ * - `email_change`: a signed-in account proving the NEW address it moves to
14
+ * (`POST /users/me/email/verify/start`); bound to the account and that address.
13
15
  */
14
- export declare const EMAIL_VERIFICATION_PURPOSES: readonly ["signup", "signin", "reauth"];
16
+ export declare const EMAIL_VERIFICATION_PURPOSES: readonly ["signup", "signin", "reauth", "email_change"];
15
17
  export type EmailVerificationPurpose = (typeof EMAIL_VERIFICATION_PURPOSES)[number];
16
18
  /** Digits in a code. */
17
19
  export declare const EMAIL_CODE_LENGTH = 6;
@@ -50,7 +50,7 @@ export declare function isEmailSignInChooseAccount(result: EmailSignInStepResult
50
50
  * What a re-verification email code confirms. The code is bound to it: a code
51
51
  * asked for one change never authorises another, and the email names it.
52
52
  */
53
- export declare const REAUTH_ACTIONS: readonly ["change_password", "totp", "link_commons", "delete_account", "credentials_manage", "supervision", "supervision_purchase"];
53
+ export declare const REAUTH_ACTIONS: readonly ["change_password", "change_email", "totp", "link_commons", "delete_account", "credentials_manage", "supervision", "supervision_purchase"];
54
54
  export type ReauthAction = (typeof REAUTH_ACTIONS)[number];
55
55
  /**
56
56
  * Stable error codes (`error.code` in the API error body). Clients map these
@@ -87,6 +87,12 @@ export declare const SIGN_IN_ERROR_CODES: {
87
87
  readonly usernameTaken: "USERNAME_TAKEN";
88
88
  /** The email already holds `EMAIL_ACCOUNTS_MAX` accounts: no sign-up adds another. */
89
89
  readonly emailAccountsFull: "EMAIL_ACCOUNTS_FULL";
90
+ /** Removing the one way in left (the email when there is no password, or the reverse). */
91
+ readonly lastSignInMethod: "LAST_SIGN_IN_METHOD";
92
+ /** Removing the email needs a password set, and is confirmed with it. */
93
+ readonly passwordRequired: "PASSWORD_REQUIRED";
94
+ /** The new email is the one the account already has. */
95
+ readonly emailUnchanged: "EMAIL_UNCHANGED";
90
96
  };
91
97
  export type SignInErrorCode = (typeof SIGN_IN_ERROR_CODES)[keyof typeof SIGN_IN_ERROR_CODES];
92
98
  export declare const emailSignInStartResponseCheck: import("./check").Check<EmailSignInStartResponse>;
@@ -89,12 +89,13 @@ export declare const identityLinkProofRequestSchema: z.ZodObject<{
89
89
  export type IdentityLinkProofRequest = z.infer<typeof identityLinkProofRequestSchema>;
90
90
  /**
91
91
  * `POST /identity/link/:linkId/complete` — the account's own confirmation: a
92
- * code just sent to its email for this link (`reauth`, plus its authenticator
93
- * code when it has one).
92
+ * code just sent to its email for this link, or its password when it has no
93
+ * email (`reauth`, plus its authenticator code when it has one).
94
94
  */
95
95
  export declare const identityLinkCompleteRequestSchema: z.ZodObject<{
96
- reauth: z.ZodObject<{
97
- emailCode: z.ZodObject<{
96
+ reauth: z.ZodEffects<z.ZodObject<{
97
+ password: z.ZodOptional<z.ZodString>;
98
+ emailCode: z.ZodOptional<z.ZodObject<{
98
99
  verificationId: z.ZodString;
99
100
  code: z.ZodString;
100
101
  }, "strict", z.ZodTypeAny, {
@@ -103,35 +104,53 @@ export declare const identityLinkCompleteRequestSchema: z.ZodObject<{
103
104
  }, {
104
105
  code: string;
105
106
  verificationId: string;
106
- }>;
107
+ }>>;
107
108
  totpCode: z.ZodOptional<z.ZodString>;
108
109
  }, "strict", z.ZodTypeAny, {
109
- emailCode: {
110
+ password?: string | undefined;
111
+ emailCode?: {
110
112
  code: string;
111
113
  verificationId: string;
112
- };
114
+ } | undefined;
113
115
  totpCode?: string | undefined;
114
116
  }, {
115
- emailCode: {
117
+ password?: string | undefined;
118
+ emailCode?: {
116
119
  code: string;
117
120
  verificationId: string;
118
- };
121
+ } | undefined;
122
+ totpCode?: string | undefined;
123
+ }>, {
124
+ password?: string | undefined;
125
+ emailCode?: {
126
+ code: string;
127
+ verificationId: string;
128
+ } | undefined;
129
+ totpCode?: string | undefined;
130
+ }, {
131
+ password?: string | undefined;
132
+ emailCode?: {
133
+ code: string;
134
+ verificationId: string;
135
+ } | undefined;
119
136
  totpCode?: string | undefined;
120
137
  }>;
121
138
  }, "strict", z.ZodTypeAny, {
122
139
  reauth: {
123
- emailCode: {
140
+ password?: string | undefined;
141
+ emailCode?: {
124
142
  code: string;
125
143
  verificationId: string;
126
- };
144
+ } | undefined;
127
145
  totpCode?: string | undefined;
128
146
  };
129
147
  }, {
130
148
  reauth: {
131
- emailCode: {
149
+ password?: string | undefined;
150
+ emailCode?: {
132
151
  code: string;
133
152
  verificationId: string;
134
- };
153
+ } | undefined;
135
154
  totpCode?: string | undefined;
136
155
  };
137
156
  }>;
@@ -16,7 +16,7 @@ export type { AvatarCharacter } from './avatarCharacter';
16
16
  export { ACCOUNT_ACTOR_NATURES, ACCOUNT_SUBJECT_CONTRACT_VERSION, FINANCIAL_EFFECT_DIRECTIONS, KIND_INDEPENDENT_ACCOUNT_DIMENSIONS, accountActorChainFromSession, accountActorChainSchema, accountActorNatureSchema, accountKindActorNature, accountKindActsAsItself, attributeFinancialEffect, financialEffectAttributionSchema, } from './accountSubject';
17
17
  export type { AccountActorChain, AccountActorNature, FinancialEffectAttribution, FinancialEffectDirection, KindIndependentAccountDimension, } from './accountSubject';
18
18
  export { usernameSchema, usernameSchemaForAccountKind, isValidUsername, stripDisallowedUsernameCharacters, applyBotUsernameSuffix, USERNAME_MIN_LENGTH, USERNAME_MAX_LENGTH, USERNAME_INVALID_MESSAGE, BOT_USERNAME_INVALID_MESSAGE, RESERVED_USERNAME_MESSAGE, NUMERIC_USERNAME_MESSAGE, } from './username';
19
- export { userNameSchema, userRelationshipSchema, themePreferenceSchema, USER_PROFILE_COLOR_PRESETS, dateOfBirthSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
19
+ export { userNameSchema, userRelationshipSchema, themePreferenceSchema, dateOfBirthSchema, userResponseSchema, userProfileUpdateSchema, currentUserResponseSchema, deviceLinkedSessionSchema, deviceLinkedSessionsResponseSchema, resolveUserId, safeParseContract, } from './userResponse';
20
20
  export type { UserNameResponse, UserRelationship, ThemePreference, UserResponse, UserProfileUpdate, CurrentUserResponseContract, DeviceLinkedSessionResponse, DeviceLinkedSessionsResponseContract, } from './userResponse';
21
21
  export { applicationTypeSchema, publicApplicationSchema, sessionStatusSchema, } from './sessionStatus';
22
22
  export type { ApplicationTypeContract, PublicApplicationResponse, SessionStatusResponse, } from './sessionStatus';
@@ -58,8 +58,8 @@ export type { IdentityProofAction, IdentityErrorCode, IdentityProofClaims, Ident
58
58
  export { updatePlatformSchema, updateStatusSchema, updateAssetStatusSchema, sha256HexSchema, channelNameSchema, runtimeVersionSchema, rolloutPercentSchema, assetInitItemSchema, assetInitRequestSchema, assetUploadTicketSchema, assetInitResponseSchema, assetCompleteRequestSchema, assetCompleteResultItemSchema, assetCompleteResponseSchema, updateAssetRefSchema, createUpdateRequestSchema, updateSchema, createUpdateResponseSchema, rollbackToEmbeddedEntrySchema, channelSchema, channelListResponseSchema, updateListResponseSchema, rollbackRequestSchema, rollbackToEmbeddedRequestSchema, promoteRequestSchema, updateRolloutPatchSchema, } from './updates';
59
59
  export type { UpdatePlatform, UpdateStatus, UpdateAssetStatus, AssetInitItem, AssetInitRequest, AssetUploadTicket, AssetInitResponse, AssetCompleteRequest, AssetCompleteResultItem, AssetCompleteResponse, UpdateAssetRef, CreateUpdateRequest, Update, CreateUpdateResponse, RollbackToEmbeddedEntry, Channel, ChannelListResponse, UpdateListResponse, RollbackRequest, RollbackToEmbeddedRequest, PromoteRequest, UpdateRolloutPatch, } from './updates';
60
60
  export { EMAIL_VERIFICATION_PURPOSES, EMAIL_CODE_LENGTH, EMAIL_CODE_TTL_MS, EMAIL_CODE_MAX_ATTEMPTS, EMAIL_TICKET_TTL_MS, EMAIL_VERIFICATION_ERROR_CODES, emailAddressSchema, emailTicketSchema, emailVerificationStartRequestSchema, emailVerificationStartResponseSchema, emailVerificationConfirmRequestSchema, emailVerificationConfirmResponseSchema, } from './accountEmail';
61
- export { EMAIL_SIGNIN_LINK_TTL_MS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, PASSWORD_MIN_LENGTH, PASSWORD_MAX_LENGTH, TOTP_DIGITS, TOTP_PERIOD_SECONDS, TOTP_BACKUP_CODE_COUNT, SIGN_IN_ERROR_CODES, signInIdentifierSchema, passwordInputSchema, newPasswordSchema, secondFactorCodeSchema, emailSignInStartRequestSchema, emailSignInStartResponseSchema, emailSignInConfirmRequestSchema, emailSignInCodeSchema, normalizeEmailSignInCode, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, emailSignInCollectRequestSchema, emailSignInLinkRequestSchema, emailSignInLinkResponseSchema, emailSignInPendingSchema, EMAIL_SIGNIN_CHOICE_TTL_MS, EMAIL_ACCOUNTS_MAX, emailSignInAccountOptionSchema, emailSignInChooseAccountSchema, emailSignInChooseRequestSchema, isEmailSignInChooseAccount, passwordSignInRequestSchema, secondFactorSignInRequestSchema, secondFactorRequiredSchema, signUpRequestSchema, isSecondFactorRequired, reauthProofSchema, emailReauthProofSchema, REAUTH_ACTIONS, reauthEmailStartRequestSchema, passwordSetRequestSchema, signInMethodsSchema, totpEnrollResponseSchema, totpConfirmRequestSchema, totpReauthRequestSchema, totpBackupCodesResponseSchema, } from './signIn';
62
- export type { EmailSignInStartRequest, EmailSignInStartResponse, EmailSignInConfirmRequest, EmailSignInCollectRequest, EmailSignInLinkRequest, EmailSignInLinkResponse, EmailSignInPending, EmailSignInAccountOption, EmailSignInChooseAccount, EmailSignInChooseRequest, EmailSignInStepResult, PasswordSignInRequest, SecondFactorSignInRequest, SecondFactorRequired, SignInStepResult, SignUpRequest, ReauthProof, EmailReauthProof, ReauthAction, ReauthEmailStartRequest, PasswordSetRequest, SignInMethods, TotpEnrollResponse, TotpConfirmRequest, TotpReauthRequest, TotpBackupCodesResponse, SignInErrorCode, } from './signIn';
61
+ export { EMAIL_SIGNIN_LINK_TTL_MS, SIGNIN_SECOND_FACTOR_TTL_MS, SIGNIN_SECOND_FACTOR_MAX_ATTEMPTS, PASSWORD_MIN_LENGTH, PASSWORD_MAX_LENGTH, TOTP_DIGITS, TOTP_PERIOD_SECONDS, TOTP_BACKUP_CODE_COUNT, SIGN_IN_ERROR_CODES, signInIdentifierSchema, passwordInputSchema, newPasswordSchema, secondFactorCodeSchema, emailSignInStartRequestSchema, emailSignInStartResponseSchema, emailSignInConfirmRequestSchema, emailSignInCodeSchema, normalizeEmailSignInCode, EMAIL_SIGNIN_LONG_CODE_ALPHABET, EMAIL_SIGNIN_LONG_CODE_LENGTH, emailSignInCollectRequestSchema, emailSignInLinkRequestSchema, emailSignInLinkResponseSchema, emailSignInPendingSchema, EMAIL_SIGNIN_CHOICE_TTL_MS, EMAIL_ACCOUNTS_MAX, emailSignInAccountOptionSchema, emailSignInChooseAccountSchema, emailSignInChooseRequestSchema, isEmailSignInChooseAccount, passwordSignInRequestSchema, secondFactorSignInRequestSchema, secondFactorRequiredSchema, signUpRequestSchema, isSecondFactorRequired, reauthProofSchema, REAUTH_ACTIONS, reauthEmailStartRequestSchema, passwordSetRequestSchema, signInMethodRemoveRequestSchema, emailChangeStartRequestSchema, emailSetRequestSchema, signInMethodsSchema, totpEnrollResponseSchema, totpConfirmRequestSchema, totpReauthRequestSchema, totpBackupCodesResponseSchema, } from './signIn';
62
+ export type { EmailSignInStartRequest, EmailSignInStartResponse, EmailSignInConfirmRequest, EmailSignInCollectRequest, EmailSignInLinkRequest, EmailSignInLinkResponse, EmailSignInPending, EmailSignInAccountOption, EmailSignInChooseAccount, EmailSignInChooseRequest, EmailSignInStepResult, PasswordSignInRequest, SecondFactorSignInRequest, SecondFactorRequired, SignInStepResult, SignUpRequest, ReauthProof, ReauthAction, ReauthEmailStartRequest, PasswordSetRequest, SignInMethodRemoveRequest, EmailChangeStartRequest, EmailSetRequest, SignInMethods, TotpEnrollResponse, TotpConfirmRequest, TotpReauthRequest, TotpBackupCodesResponse, SignInErrorCode, } from './signIn';
63
63
  export { IDENTITY_LINK_STATUSES, IDENTITY_LINK_QR_PREFIX, identityLinkIdSchema, buildIdentityLinkQrPayload, parseIdentityLinkQrPayload, identityLinkCreateResponseSchema, identityLinkStateSchema, identityLinkProofRequestSchema, identityLinkCompleteRequestSchema, } from './identityLink';
64
64
  export type { IdentityLinkStatus, IdentityLinkCreateResponse, IdentityLinkState, IdentityLinkProofRequest, IdentityLinkCompleteRequest, } from './identityLink';
65
65
  export type { EmailVerificationPurpose, EmailVerificationStartRequest, EmailVerificationStartResponse, EmailVerificationConfirmRequest, EmailVerificationConfirmResponse, EmailVerificationErrorCode, } from './accountEmail';
@@ -102,8 +102,8 @@ export { PRODUCT_PLAN_STATUSES, productPlanStatusSchema, LIVE_PRODUCT_PLAN_STATU
102
102
  export type { ProductPlanStatus, PlanAllowance, ProductPlan, PayAsYouGoEntitlement, CostCenterStatus, CostCenter, CostCenterSpend, ProductEntitlement, } from './inference/entitlement';
103
103
  export { INFERENCE_ECONOMIC_TREATMENTS, inferenceEconomicTreatmentSchema, PROVIDER_COST_SOURCES, providerCostSourceSchema, costCenterUsageSchema, } from './inference/economics';
104
104
  export type { InferenceEconomicTreatment, ProviderCostSource, CostCenterUsage, } from './inference/economics';
105
- export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, AGENT_REQUESTER_CEILING_AUTONOMY, agentRequesterCeilingWriteSchema, agentRequesterCeilingSchema, APPLICATION_AGENT_AVAILABILITIES, applicationAgentAvailabilitySchema, applicationAgentWriteSchema, applicationAgentSchema, agentAvailabilitySchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, catalogToolSchema, catalogEventSchema, catalogFeatureSchema, CATALOG_INTERNAL_TRANSPORTS, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
106
- export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogEvent, AppCapabilityCatalog, CatalogFeature, CatalogInternalTransport, AgentRequesterCeilingWrite, AgentRequesterCeiling, AgentRequesterCeilingAutonomy, ApplicationAgentAvailability, ApplicationAgentWrite, ApplicationAgent, AgentAvailability, CatalogRegistration, NormalizedAppEvent, } from './agency';
105
+ export { AUTONOMY_LEVELS, CAPABILITY_PACKAGES, autonomyLevelSchema, capabilityPackageSchema, actorRefSchema, executionActorRefSchema, foregroundExecutionAuthorizationInputSchema, resourceRefSchema, toolGrantOverrideSchema, grantLimitSchema, capabilityCatalogBindingSchema, executionAuthorizationRefSchema, capabilityCoordinatorSchema, capabilityTicketRequestSchema, delegationGrantSchema, AGENT_REQUESTER_CEILING_AUTONOMY, agentRequesterCeilingWriteSchema, agentRequesterCeilingSchema, APPLICATION_AGENT_AVAILABILITIES, applicationAgentAvailabilitySchema, applicationAgentWriteSchema, applicationAgentSchema, agentAvailabilitySchema, automationTriggerSchema, automationActorSelectionSchema, automationDataFlowSchema, automationDefinitionSchema, capabilityTicketClaimsSchema, invocationPrincipalSchema, policyDecisionSchema, auditResultSchema, auditEventSchema, CATALOG_TOOL_ACTOR_TYPES, CATALOG_TOOL_DEFAULT_ACTORS, catalogToolActorTypeSchema, catalogToolActors, catalogToolAllowsActor, catalogToolSchema, catalogEventSchema, catalogFeatureSchema, CATALOG_INTERNAL_TRANSPORTS, appCapabilityCatalogSchema, catalogRegistrationSchema, normalizedAppEventSchema, } from './agency';
106
+ export type { AutonomyLevel, CapabilityPackage, ActorRef, ExecutionActorRef, ForegroundExecutionAuthorizationInput, ResourceRef, ToolGrantOverride, GrantLimit, CapabilityCatalogBinding, ExecutionAuthorizationRef, CapabilityCoordinator, CapabilityTicketRequest, DelegationGrant, AutomationTrigger, AutomationActorSelection, AutomationDefinition, CapabilityTicketClaims, InvocationPrincipal, PolicyDecision, AuditEvent, CatalogTool, CatalogToolActorType, CatalogEvent, AppCapabilityCatalog, CatalogFeature, CatalogInternalTransport, AgentRequesterCeilingWrite, AgentRequesterCeiling, AgentRequesterCeilingAutonomy, ApplicationAgentAvailability, ApplicationAgentWrite, ApplicationAgent, AgentAvailability, CatalogRegistration, NormalizedAppEvent, } from './agency';
107
107
  export { catalogInvocationPathParameters, catalogInvocationsOverlap, catalogInvocationTemplatesEquivalent, findOverlappingCatalogInvocations, matchCatalogInvocation, resolveCatalogInvocation, } from './capabilityInvocation';
108
108
  export type { CatalogInvocationMatch, CatalogInvocationTemplate, ResolvedCatalogInvocation, } from './capabilityInvocation';
109
109
  export { emailContextAddressSchema, emailContextMailboxSchema, emailContextMessageSchema, emailAgentContextSchema, } from './emailAgentContext';
@@ -132,3 +132,4 @@ export * from './applicationRoles';
132
132
  export * from './contentClaims';
133
133
  export * from './appAssertions';
134
134
  export * from './products/one';
135
+ export { USER_PROFILE_COLORS, USER_PROFILE_COLOR_PRESETS, FREE_USER_PROFILE_COLOR_PRESETS, } from './profileColors.generated';
@@ -149,6 +149,7 @@ export declare const mcpOAuthWriteActionSchema: z.ZodEffects<z.ZodObject<Pick<{
149
149
  idempotency: z.ZodEnum<["none", "supported", "required"]>;
150
150
  rollback: z.ZodEnum<["none", "manual", "supported"]>;
151
151
  exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
152
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
152
153
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
153
154
  key: z.ZodString;
154
155
  kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
@@ -348,6 +349,7 @@ export declare const mcpOAuthConsentContextSchema: z.ZodObject<{
348
349
  idempotency: z.ZodEnum<["none", "supported", "required"]>;
349
350
  rollback: z.ZodEnum<["none", "manual", "supported"]>;
350
351
  exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
352
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
351
353
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
352
354
  key: z.ZodString;
353
355
  kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
@@ -723,6 +725,7 @@ export declare const mcpOAuthConsentResponseSchema: z.ZodObject<{
723
725
  idempotency: z.ZodEnum<["none", "supported", "required"]>;
724
726
  rollback: z.ZodEnum<["none", "manual", "supported"]>;
725
727
  exposure: z.ZodArray<z.ZodEnum<["internal", "mcp"]>, "many">;
728
+ actors: z.ZodOptional<z.ZodArray<z.ZodEnum<["alia", "agent", "requester"]>, "many">>;
726
729
  limitKeys: z.ZodDefault<z.ZodArray<z.ZodObject<{
727
730
  key: z.ZodString;
728
731
  kind: z.ZodEnum<["maximum_number", "exact_boolean"]>;
@@ -0,0 +1,195 @@
1
+ export declare const USER_PROFILE_COLORS: readonly [{
2
+ readonly name: "teal";
3
+ readonly gate: null;
4
+ }, {
5
+ readonly name: "blue";
6
+ readonly gate: null;
7
+ }, {
8
+ readonly name: "green";
9
+ readonly gate: null;
10
+ }, {
11
+ readonly name: "yellow";
12
+ readonly gate: null;
13
+ }, {
14
+ readonly name: "red";
15
+ readonly gate: null;
16
+ }, {
17
+ readonly name: "purple";
18
+ readonly gate: null;
19
+ }, {
20
+ readonly name: "pink";
21
+ readonly gate: null;
22
+ }, {
23
+ readonly name: "sky";
24
+ readonly gate: null;
25
+ }, {
26
+ readonly name: "orange";
27
+ readonly gate: null;
28
+ }, {
29
+ readonly name: "mint";
30
+ readonly gate: null;
31
+ }, {
32
+ readonly name: "oxy";
33
+ readonly gate: "handle";
34
+ }, {
35
+ readonly name: "faircoin";
36
+ readonly gate: "handle";
37
+ }, {
38
+ readonly name: "pumpkin";
39
+ readonly gate: null;
40
+ }, {
41
+ readonly name: "gray";
42
+ readonly gate: null;
43
+ }, {
44
+ readonly name: "brown";
45
+ readonly gate: null;
46
+ }, {
47
+ readonly name: "peach";
48
+ readonly gate: null;
49
+ }, {
50
+ readonly name: "rose";
51
+ readonly gate: null;
52
+ }, {
53
+ readonly name: "mono";
54
+ readonly gate: "premium";
55
+ }, {
56
+ readonly name: "grove";
57
+ readonly gate: null;
58
+ }, {
59
+ readonly name: "ember";
60
+ readonly gate: null;
61
+ }, {
62
+ readonly name: "merlot";
63
+ readonly gate: null;
64
+ }, {
65
+ readonly name: "cobalt";
66
+ readonly gate: null;
67
+ }, {
68
+ readonly name: "jade";
69
+ readonly gate: null;
70
+ }, {
71
+ readonly name: "pine";
72
+ readonly gate: null;
73
+ }, {
74
+ readonly name: "olive";
75
+ readonly gate: null;
76
+ }, {
77
+ readonly name: "lagoon";
78
+ readonly gate: null;
79
+ }, {
80
+ readonly name: "navy";
81
+ readonly gate: null;
82
+ }, {
83
+ readonly name: "azure";
84
+ readonly gate: null;
85
+ }, {
86
+ readonly name: "violet";
87
+ readonly gate: null;
88
+ }, {
89
+ readonly name: "lavender";
90
+ readonly gate: null;
91
+ }, {
92
+ readonly name: "plum";
93
+ readonly gate: null;
94
+ }, {
95
+ readonly name: "cherry";
96
+ readonly gate: null;
97
+ }, {
98
+ readonly name: "chocolate";
99
+ readonly gate: null;
100
+ }, {
101
+ readonly name: "graphite";
102
+ readonly gate: null;
103
+ }, {
104
+ readonly name: "forest-fire";
105
+ readonly gate: null;
106
+ }, {
107
+ readonly name: "malachite-rush";
108
+ readonly gate: null;
109
+ }, {
110
+ readonly name: "moss-voltage";
111
+ readonly gate: null;
112
+ }, {
113
+ readonly name: "viridian-orbit";
114
+ readonly gate: null;
115
+ }, {
116
+ readonly name: "acid-canopy";
117
+ readonly gate: null;
118
+ }, {
119
+ readonly name: "pacific-flare";
120
+ readonly gate: null;
121
+ }, {
122
+ readonly name: "reef-pulse";
123
+ readonly gate: null;
124
+ }, {
125
+ readonly name: "electric-tide";
126
+ readonly gate: null;
127
+ }, {
128
+ readonly name: "arctic-signal";
129
+ readonly gate: null;
130
+ }, {
131
+ readonly name: "ultramarine-gold";
132
+ readonly gate: null;
133
+ }, {
134
+ readonly name: "midnight-citrus";
135
+ readonly gate: null;
136
+ }, {
137
+ readonly name: "persimmon-wave";
138
+ readonly gate: null;
139
+ }, {
140
+ readonly name: "solar-flux";
141
+ readonly gate: null;
142
+ }, {
143
+ readonly name: "paprika-current";
144
+ readonly gate: null;
145
+ }, {
146
+ readonly name: "crimson-spark";
147
+ readonly gate: null;
148
+ }, {
149
+ readonly name: "flamenco-sun";
150
+ readonly gate: null;
151
+ }, {
152
+ readonly name: "saffron-depth";
153
+ readonly gate: null;
154
+ }, {
155
+ readonly name: "clay-current";
156
+ readonly gate: null;
157
+ }, {
158
+ readonly name: "bronze-neon";
159
+ readonly gate: null;
160
+ }, {
161
+ readonly name: "copper-field";
162
+ readonly gate: null;
163
+ }, {
164
+ readonly name: "umber-signal";
165
+ readonly gate: null;
166
+ }, {
167
+ readonly name: "amethyst-current";
168
+ readonly gate: null;
169
+ }, {
170
+ readonly name: "ruby-current";
171
+ readonly gate: null;
172
+ }, {
173
+ readonly name: "orchid-flare";
174
+ readonly gate: null;
175
+ }, {
176
+ readonly name: "garnet-acid";
177
+ readonly gate: null;
178
+ }, {
179
+ readonly name: "indigo-ember";
180
+ readonly gate: null;
181
+ }, {
182
+ readonly name: "raspberry-gold";
183
+ readonly gate: null;
184
+ }, {
185
+ readonly name: "ink-orange";
186
+ readonly gate: null;
187
+ }, {
188
+ readonly name: "charcoal-lime";
189
+ readonly gate: null;
190
+ }, {
191
+ readonly name: "pewter-current";
192
+ readonly gate: null;
193
+ }];
194
+ export declare const USER_PROFILE_COLOR_PRESETS: ("pink" | "violet" | "blue" | "teal" | "yellow" | "green" | "red" | "purple" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "lavender" | "plum" | "cherry" | "chocolate" | "graphite" | "forest-fire" | "malachite-rush" | "moss-voltage" | "viridian-orbit" | "acid-canopy" | "pacific-flare" | "reef-pulse" | "electric-tide" | "arctic-signal" | "ultramarine-gold" | "midnight-citrus" | "persimmon-wave" | "solar-flux" | "paprika-current" | "crimson-spark" | "flamenco-sun" | "saffron-depth" | "clay-current" | "bronze-neon" | "copper-field" | "umber-signal" | "amethyst-current" | "ruby-current" | "orchid-flare" | "garnet-acid" | "indigo-ember" | "raspberry-gold" | "ink-orange" | "charcoal-lime" | "pewter-current")[];
195
+ export declare const FREE_USER_PROFILE_COLOR_PRESETS: ("pink" | "violet" | "blue" | "teal" | "yellow" | "green" | "red" | "purple" | "sky" | "orange" | "mint" | "oxy" | "faircoin" | "pumpkin" | "gray" | "brown" | "peach" | "rose" | "mono" | "grove" | "ember" | "merlot" | "cobalt" | "jade" | "pine" | "olive" | "lagoon" | "navy" | "azure" | "lavender" | "plum" | "cherry" | "chocolate" | "graphite" | "forest-fire" | "malachite-rush" | "moss-voltage" | "viridian-orbit" | "acid-canopy" | "pacific-flare" | "reef-pulse" | "electric-tide" | "arctic-signal" | "ultramarine-gold" | "midnight-citrus" | "persimmon-wave" | "solar-flux" | "paprika-current" | "crimson-spark" | "flamenco-sun" | "saffron-depth" | "clay-current" | "bronze-neon" | "copper-field" | "umber-signal" | "amethyst-current" | "ruby-current" | "orchid-flare" | "garnet-acid" | "indigo-ember" | "raspberry-gold" | "ink-orange" | "charcoal-lime" | "pewter-current")[];