@ttt-productions/ttt-core 0.79.0 → 0.79.1

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.
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ export declare const DeleteConversationFileInputSchema: z.ZodObject<{
3
+ conversation: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ kind: z.ZodLiteral<"guildInvite">;
5
+ guildInviteId: z.ZodString;
6
+ }, z.core.$strict>, z.ZodObject<{
7
+ kind: z.ZodLiteral<"adminSupport">;
8
+ adminDispatchId: z.ZodString;
9
+ }, z.core.$strict>], "kind">;
10
+ conversationFileId: z.ZodString;
11
+ }, z.core.$strict>;
12
+ export type DeleteConversationFileInput = z.infer<typeof DeleteConversationFileInputSchema>;
13
+ //# sourceMappingURL=conversation-files.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-files.d.ts","sourceRoot":"","sources":["../../src/schemas/conversation-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,iCAAiC;;;;;;;;;kBAGnC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { z } from 'zod';
2
+ import { ConversationFileRefSchema } from '../media/conversation-file-ref.js';
3
+ // ---- conversation files (guild-invite / admin-support Conversation Files) -------------
4
+ // Delete a single Conversation File. Authorization (uploader-owns-file, or admin on an
5
+ // admin-support thread) is enforced inside the callable core's transaction; the ref's
6
+ // two-kind union makes a guild-CHANNEL target unrepresentable at the wire boundary.
7
+ export const DeleteConversationFileInputSchema = z.object({
8
+ conversation: ConversationFileRefSchema,
9
+ conversationFileId: z.string().min(1),
10
+ }).strict();
11
+ //# sourceMappingURL=conversation-files.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-files.js","sourceRoot":"","sources":["../../src/schemas/conversation-files.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,0FAA0F;AAE1F,uFAAuF;AACvF,sFAAsF;AACtF,oFAAoF;AACpF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,YAAY,EAAE,yBAAyB;IACvC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CACtC,CAAC,CAAC,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { ConversationFileRefSchema } from '../media/conversation-file-ref.js';\n\n// ---- conversation files (guild-invite / admin-support Conversation Files) -------------\n\n// Delete a single Conversation File. Authorization (uploader-owns-file, or admin on an\n// admin-support thread) is enforced inside the callable core's transaction; the ref's\n// two-kind union makes a guild-CHANNEL target unrepresentable at the wire boundary.\nexport const DeleteConversationFileInputSchema = z.object({\n conversation: ConversationFileRefSchema,\n conversationFileId: z.string().min(1),\n}).strict();\nexport type DeleteConversationFileInput = z.infer<typeof DeleteConversationFileInputSchema>;\n"]}
@@ -18,6 +18,7 @@ export * from './users.js';
18
18
  export * from './utility.js';
19
19
  export * from './voting.js';
20
20
  export * from './notification.js';
21
+ export * from './conversation-files.js';
21
22
  export { AddToMentionHistoryResultSchema, type AddToMentionHistoryResult, } from '../doc-schemas/social.js';
22
23
  export { CreateCommissionProposalTextResultSchema, type CreateCommissionProposalTextResult, } from '../doc-schemas/commissions.js';
23
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WA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BAA0B,CAAC;AAClC,OAAO,EACL,wCAAwC,EACxC,KAAK,kCAAkC,GACxC,MAAM,+BAA+B,CAAC"}
@@ -18,6 +18,7 @@ export * from './users.js';
18
18
  export * from './utility.js';
19
19
  export * from './voting.js';
20
20
  export * from './notification.js';
21
+ export * from './conversation-files.js';
21
22
  // Authoritative mutation results homed in ../doc-schemas (each composes a doc schema
22
23
  // whose module already imports from ./schemas — the reverse runtime import would be a
23
24
  // module cycle). Surfaced here so callables/hooks import ALL wire contracts from the
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAElC,qFAAqF;AACrF,sFAAsF;AACtF,qFAAqF;AACrF,yBAAyB;AACzB,OAAO,EACL,+BAA+B,GAEhC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wCAAwC,GAEzC,MAAM,+BAA+B,CAAC","sourcesContent":["export * from './atoms.js';\nexport * from './stake-share-operation.js';\nexport * from './admin.js';\nexport * from './safety.js';\nexport * from './ncii.js';\nexport * from './uploads.js';\nexport * from './chat.js';\nexport * from './media.js';\nexport * from './commissions.js';\nexport * from './hall-library.js';\nexport * from './auditions.js';\nexport * from './payments.js';\nexport * from './work-project-management.js';\nexport * from './craft-skills.js';\nexport * from './social.js';\nexport * from './admin-dispatch-actions.js';\nexport * from './users.js';\nexport * from './utility.js';\nexport * from './voting.js';\nexport * from './notification.js';\n\n// Authoritative mutation results homed in ../doc-schemas (each composes a doc schema\n// whose module already imports from ./schemas — the reverse runtime import would be a\n// module cycle). Surfaced here so callables/hooks import ALL wire contracts from the\n// one ./schemas subpath.\nexport {\n AddToMentionHistoryResultSchema,\n type AddToMentionHistoryResult,\n} from '../doc-schemas/social.js';\nexport {\n CreateCommissionProposalTextResultSchema,\n type CreateCommissionProposalTextResult,\n} from '../doc-schemas/commissions.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AAExC,qFAAqF;AACrF,sFAAsF;AACtF,qFAAqF;AACrF,yBAAyB;AACzB,OAAO,EACL,+BAA+B,GAEhC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,wCAAwC,GAEzC,MAAM,+BAA+B,CAAC","sourcesContent":["export * from './atoms.js';\nexport * from './stake-share-operation.js';\nexport * from './admin.js';\nexport * from './safety.js';\nexport * from './ncii.js';\nexport * from './uploads.js';\nexport * from './chat.js';\nexport * from './media.js';\nexport * from './commissions.js';\nexport * from './hall-library.js';\nexport * from './auditions.js';\nexport * from './payments.js';\nexport * from './work-project-management.js';\nexport * from './craft-skills.js';\nexport * from './social.js';\nexport * from './admin-dispatch-actions.js';\nexport * from './users.js';\nexport * from './utility.js';\nexport * from './voting.js';\nexport * from './notification.js';\nexport * from './conversation-files.js';\n\n// Authoritative mutation results homed in ../doc-schemas (each composes a doc schema\n// whose module already imports from ./schemas — the reverse runtime import would be a\n// module cycle). Surfaced here so callables/hooks import ALL wire contracts from the\n// one ./schemas subpath.\nexport {\n AddToMentionHistoryResultSchema,\n type AddToMentionHistoryResult,\n} from '../doc-schemas/social.js';\nexport {\n CreateCommissionProposalTextResultSchema,\n type CreateCommissionProposalTextResult,\n} from '../doc-schemas/commissions.js';\n"]}
@@ -12,4 +12,5 @@ export * from './update-television-cover-photo-variables.js';
12
12
  export * from './update-episode-media-variables.js';
13
13
  export * from './update-chapter-media-variables.js';
14
14
  export * from './update-track-media-variables.js';
15
+ export * from './upload-conversation-file-variables.js';
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC"}
@@ -12,4 +12,5 @@ export * from './update-television-cover-photo-variables.js';
12
12
  export * from './update-episode-media-variables.js';
13
13
  export * from './update-chapter-media-variables.js';
14
14
  export * from './update-track-media-variables.js';
15
+ export * from './upload-conversation-file-variables.js';
15
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './square-streetz-post-variables.js';\nexport * from './create-commission-variables.js';\nexport * from './apply-to-commission-variables.js';\nexport * from './create-work-project-audition-variables.js';\nexport * from './create-admin-audition-variables.js';\nexport * from './create-audition-entry-variables.js';\nexport * from './upload-profile-picture-variables.js';\nexport * from './upload-craft-skill-variables.js';\nexport * from './update-tale-cover-photo-variables.js';\nexport * from './update-tune-cover-photo-variables.js';\nexport * from './update-television-cover-photo-variables.js';\nexport * from './update-episode-media-variables.js';\nexport * from './update-chapter-media-variables.js';\nexport * from './update-track-media-variables.js';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/upload-variables/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC","sourcesContent":["export * from './square-streetz-post-variables.js';\nexport * from './create-commission-variables.js';\nexport * from './apply-to-commission-variables.js';\nexport * from './create-work-project-audition-variables.js';\nexport * from './create-admin-audition-variables.js';\nexport * from './create-audition-entry-variables.js';\nexport * from './upload-profile-picture-variables.js';\nexport * from './upload-craft-skill-variables.js';\nexport * from './update-tale-cover-photo-variables.js';\nexport * from './update-tune-cover-photo-variables.js';\nexport * from './update-television-cover-photo-variables.js';\nexport * from './update-episode-media-variables.js';\nexport * from './update-chapter-media-variables.js';\nexport * from './update-track-media-variables.js';\nexport * from './upload-conversation-file-variables.js';\n"]}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ export declare const UploadConversationFileVariablesSchema: z.ZodObject<{
3
+ conversation: z.ZodDiscriminatedUnion<[z.ZodObject<{
4
+ kind: z.ZodLiteral<"guildInvite">;
5
+ guildInviteId: z.ZodString;
6
+ }, z.core.$strict>, z.ZodObject<{
7
+ kind: z.ZodLiteral<"adminSupport">;
8
+ adminDispatchId: z.ZodString;
9
+ }, z.core.$strict>], "kind">;
10
+ file: z.ZodCustom<File, File>;
11
+ onProgress: z.ZodOptional<z.ZodCustom<(state: import("@ttt-productions/media-schemas").UploadState | null) => void, (state: import("@ttt-productions/media-schemas").UploadState | null) => void>>;
12
+ signal: z.ZodOptional<z.ZodCustom<AbortSignal, AbortSignal>>;
13
+ }, z.core.$strict>;
14
+ export type UploadConversationFileVariables = z.infer<typeof UploadConversationFileVariablesSchema>;
15
+ //# sourceMappingURL=upload-conversation-file-variables.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-conversation-file-variables.d.ts","sourceRoot":"","sources":["../../src/upload-variables/upload-conversation-file-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,qCAAqC;;;;;;;;;;;kBAKvC,CAAC;AACZ,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { onProgressSchema } from './on-progress.js';
3
+ import { ConversationFileRefSchema } from '../media/conversation-file-ref.js';
4
+ // Variables for the conversation-file upload mutation hook (MEDIA-005). The
5
+ // conversation ref is the strict two-kind ConversationFileRef — a guild-CHANNEL
6
+ // target is unrepresentable.
7
+ export const UploadConversationFileVariablesSchema = z.object({
8
+ conversation: ConversationFileRefSchema,
9
+ file: z.instanceof(File),
10
+ onProgress: onProgressSchema,
11
+ signal: z.instanceof(AbortSignal).optional(),
12
+ }).strict();
13
+ //# sourceMappingURL=upload-conversation-file-variables.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"upload-conversation-file-variables.js","sourceRoot":"","sources":["../../src/upload-variables/upload-conversation-file-variables.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAE9E,4EAA4E;AAC5E,gFAAgF;AAChF,6BAA6B;AAC7B,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5D,YAAY,EAAE,yBAAyB;IACvC,IAAI,EAAE,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC;IACxB,UAAU,EAAE,gBAAgB;IAC5B,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC,MAAM,EAAE,CAAC","sourcesContent":["import { z } from 'zod';\nimport { onProgressSchema } from './on-progress.js';\nimport { ConversationFileRefSchema } from '../media/conversation-file-ref.js';\n\n// Variables for the conversation-file upload mutation hook (MEDIA-005). The\n// conversation ref is the strict two-kind ConversationFileRef — a guild-CHANNEL\n// target is unrepresentable.\nexport const UploadConversationFileVariablesSchema = z.object({\n conversation: ConversationFileRefSchema,\n file: z.instanceof(File),\n onProgress: onProgressSchema,\n signal: z.instanceof(AbortSignal).optional(),\n}).strict();\nexport type UploadConversationFileVariables = z.infer<typeof UploadConversationFileVariablesSchema>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttt-productions/ttt-core",
3
- "version": "0.79.0",
3
+ "version": "0.79.1",
4
4
  "description": "Core types, Firestore path constants, and shared constants for TTT Productions",
5
5
  "repository": {
6
6
  "type": "git",