@myagentroam/protocol 0.9.65 → 0.9.67

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -15110,30 +15110,35 @@ export declare const hostedConversationMessageInputSchema: z.ZodEffects<z.ZodObj
15110
15110
  prompt: z.ZodString;
15111
15111
  attachmentIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
15112
15112
  modelId: z.ZodOptional<z.ZodString>;
15113
+ deliveryIntent: z.ZodOptional<z.ZodLiteral<"REPLACE_CURRENT">>;
15113
15114
  }, "strict", z.ZodTypeAny, {
15114
15115
  clientMessageId: string;
15115
15116
  conversationId: string;
15116
15117
  prompt: string;
15117
15118
  attachmentIds: string[];
15118
15119
  modelId?: string | undefined;
15120
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15119
15121
  }, {
15120
15122
  clientMessageId: string;
15121
15123
  conversationId: string;
15122
15124
  prompt: string;
15123
15125
  modelId?: string | undefined;
15124
15126
  attachmentIds?: string[] | undefined;
15127
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15125
15128
  }>, {
15126
15129
  clientMessageId: string;
15127
15130
  conversationId: string;
15128
15131
  prompt: string;
15129
15132
  attachmentIds: string[];
15130
15133
  modelId?: string | undefined;
15134
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15131
15135
  }, {
15132
15136
  clientMessageId: string;
15133
15137
  conversationId: string;
15134
15138
  prompt: string;
15135
15139
  modelId?: string | undefined;
15136
15140
  attachmentIds?: string[] | undefined;
15141
+ deliveryIntent?: "REPLACE_CURRENT" | undefined;
15137
15142
  }>;
15138
15143
  export type HostedConversationMessageInput = z.infer<typeof hostedConversationMessageInputSchema>;
15139
15144
  export declare const hostedConversationConfigUpdateInputSchema: z.ZodObject<{
@@ -15539,7 +15544,7 @@ export declare const hostedConversationFileReadResultSchema: z.ZodEffects<z.ZodO
15539
15544
  eof: boolean;
15540
15545
  }>;
15541
15546
  export type HostedConversationFileReadResult = z.infer<typeof hostedConversationFileReadResultSchema>;
15542
- export declare const hostedConversationUploadPreflightInputSchema: z.ZodEffects<z.ZodObject<{
15547
+ export declare const hostedConversationUploadPreflightInputSchema: z.ZodObject<{
15543
15548
  conversationId: z.ZodString;
15544
15549
  } & {
15545
15550
  files: z.ZodArray<z.ZodObject<{
@@ -15569,20 +15574,6 @@ export declare const hostedConversationUploadPreflightInputSchema: z.ZodEffects<
15569
15574
  mimeType: string;
15570
15575
  size: number;
15571
15576
  }[];
15572
- }>, {
15573
- conversationId: string;
15574
- files: {
15575
- name: string;
15576
- mimeType: string;
15577
- size: number;
15578
- }[];
15579
- }, {
15580
- conversationId: string;
15581
- files: {
15582
- name: string;
15583
- mimeType: string;
15584
- size: number;
15585
- }[];
15586
15577
  }>;
15587
15578
  export type HostedConversationUploadPreflightInput = z.infer<typeof hostedConversationUploadPreflightInputSchema>;
15588
15579
  export declare const hostedConversationUploadPreflightResultSchema: z.ZodObject<{
package/dist/index.js CHANGED
@@ -1966,7 +1966,8 @@ export const hostedConversationMessageInputSchema = z
1966
1966
  clientMessageId: protocolIdSchema,
1967
1967
  prompt: z.string().max(100_000),
1968
1968
  attachmentIds: z.array(protocolIdSchema).max(32).default([]),
1969
- modelId: protocolIdSchema.optional()
1969
+ modelId: protocolIdSchema.optional(),
1970
+ deliveryIntent: z.literal('REPLACE_CURRENT').optional()
1970
1971
  })
1971
1972
  .strict()
1972
1973
  .superRefine((input, context) => {
@@ -2083,12 +2084,7 @@ export const hostedConversationUploadPreflightInputSchema = hostedConversationId
2083
2084
  .extend({
2084
2085
  files: z.array(hostedConversationUploadFileSchema).min(1).max(32)
2085
2086
  })
2086
- .strict()
2087
- .superRefine((input, context) => {
2088
- const normalized = input.files.map((file) => file.name.normalize('NFKC').toLocaleLowerCase());
2089
- if (new Set(normalized).size !== normalized.length)
2090
- context.addIssue({ code: 'custom', path: ['files'], message: 'upload names must be unique' });
2091
- });
2087
+ .strict();
2092
2088
  export const hostedConversationUploadPreflightResultSchema = z
2093
2089
  .object({
2094
2090
  files: z.array(z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myagentroam/protocol",
3
- "version": "0.9.65",
3
+ "version": "0.9.67",
4
4
  "description": "Shared runtime protocol schemas for MyAgentRoam.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",