{"_id":"@1440io/msp-types","_rev":"4-8a25e1f80727fb124b2c0bbdeaaf82e6","name":"@1440io/msp-types","dist-tags":{"latest":"0.4.0"},"versions":{"0.1.0":{"name":"@1440io/msp-types","version":"0.1.0","keywords":["1440","apple-messages-for-business","amb","msp","openapi","types"],"author":{"name":"1440"},"license":"MIT","_id":"@1440io/msp-types@0.1.0","maintainers":[{"name":"jtjessup","email":"jon@1440.io"}],"homepage":"https://github.com/1440io/msp-sdk/tree/main/packages/msp-types#readme","bugs":{"url":"https://github.com/1440io/msp-sdk/issues"},"dist":{"shasum":"452efaddd66e27e99d171e3bf6d5592416625004","tarball":"https://registry.npmjs.org/@1440io/msp-types/-/msp-types-0.1.0.tgz","fileCount":16,"integrity":"sha512-PNtW6PB3nK047gS4xRrOeYej7LVGs2K6Z0FvPxhDcZXfrmaIVvFqeVUotQhb9AH3IVIaTz5ins+AYrkJGAkYCg==","signatures":[{"sig":"MEUCIQCLYDuJRcyf9n4Cf3Uq5tS8AyjB6h4tU2rbWI0U3idASgIgExQ3eAjX6qMltv9WAPBKZdYVDG03ghOrh0XAFkEB0II=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":997802},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.10"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./openapi":{"types":"./dist/openapi.d.ts","import":"./dist/openapi.js","require":"./dist/openapi.cjs"},"./package.json":"./package.json"},"gitHead":"871499b0c8db29bd7baf9273fc90286ae14c16b6","scripts":{"build":"tsup","generate":"openapi-typescript ../../spec/1440-cloud-openapi.json --output ./src/openapi.ts --root-types --alphabetize","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"jtjessup","email":"jon@1440.io"},"repository":{"url":"git+https://github.com/1440io/msp-sdk.git","type":"git","directory":"packages/msp-types"},"_npmVersion":"11.14.1","description":"TypeScript types generated from the 1440 Apple Messages for Business MSP API OpenAPI spec, plus curated aliases and enum vocabularies.","directories":{},"sideEffects":false,"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.7.2","openapi-typescript":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/msp-types_0.1.0_1787704721380_0.3709753868378711","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@1440io/msp-types","version":"0.2.0","keywords":["1440","apple-messages-for-business","amb","msp","openapi","types"],"author":{"name":"1440"},"license":"MIT","_id":"@1440io/msp-types@0.2.0","maintainers":[{"name":"jtjessup","email":"jon@1440.io"}],"homepage":"https://github.com/1440io/msp-sdk/tree/main/packages/msp-types#readme","bugs":{"url":"https://github.com/1440io/msp-sdk/issues"},"dist":{"shasum":"e3d0cd04aad38bb060726446469a0843502342a6","tarball":"https://registry.npmjs.org/@1440io/msp-types/-/msp-types-0.2.0.tgz","fileCount":16,"integrity":"sha512-z8Y9Z+C2Xhp2xuIBP4Xkf+qhcdzWTVdvdm0vPXtxmLY7+pFSbz/yFP0WjQyzDGJPgzpcQXwWQ1xsd1KxwlzGOg==","signatures":[{"sig":"MEUCIQD7VhTG5aIMGpuzS2YLgoMmBFVndKrQ1h8bak+Igx1SwQIgJcriY9yNOSNtvnUwrQHV0PTs6sqs6FePh65rYFdcHkQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":643589},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.10"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./openapi":{"types":"./dist/openapi.d.ts","import":"./dist/openapi.js","require":"./dist/openapi.cjs"},"./package.json":"./package.json"},"gitHead":"e7c50bc7a1cb758fe903bbd6cb62068f640de86b","scripts":{"build":"tsup","generate":"openapi-typescript ../../spec/1440-cloud-openapi.json --output ./src/openapi.ts --root-types --alphabetize","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"jtjessup","email":"jon@1440.io"},"repository":{"url":"git+https://github.com/1440io/msp-sdk.git","type":"git","directory":"packages/msp-types"},"_npmVersion":"11.14.1","description":"TypeScript types generated from the 1440 Apple Messages for Business MSP API OpenAPI spec, plus curated aliases and enum vocabularies.","directories":{},"sideEffects":false,"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.7.2","openapi-typescript":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/msp-types_0.2.0_1789008397496_0.38601320134293404","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@1440io/msp-types","version":"0.3.0","keywords":["1440","apple-messages-for-business","amb","msp","openapi","types"],"author":{"name":"1440"},"license":"MIT","_id":"@1440io/msp-types@0.3.0","maintainers":[{"name":"jtjessup","email":"jon@1440.io"}],"homepage":"https://github.com/1440io/msp-sdk/tree/main/packages/msp-types#readme","bugs":{"url":"https://github.com/1440io/msp-sdk/issues"},"dist":{"shasum":"f5aa20df087d7bc06af118ff3f4633d4756e9a1c","tarball":"https://registry.npmjs.org/@1440io/msp-types/-/msp-types-0.3.0.tgz","fileCount":16,"integrity":"sha512-Kp5Ikx+PHJjs6zgwLXIukNbFLGnT0JBlUmlQY7unc6Qy4mTfaMBDLJjT4Rr43qfmzQUU+t9AaRVV03aUoIYsWg==","signatures":[{"sig":"MEYCIQCPLorw54kQqFvsGyQz9wrpWzM1niixhdj8IvHcua+vIwIhAI4+E4Ilxg5FLWsLJTFYVJMwY9I5ZyKH/F9ommwWItHX","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFk8+Myo6U8et9zoPvR00pMAJabz7uJo4oS0i6JiCU/SAiBM3e4GBfAI0mfWKuI9iVgETPfY9380P4actCriH4SZ3A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1024774},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.10"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./openapi":{"types":"./dist/openapi.d.ts","import":"./dist/openapi.js","require":"./dist/openapi.cjs"},"./package.json":"./package.json"},"gitHead":"449408485d0365df0e0edb776316e8652119d941","scripts":{"build":"tsup","generate":"openapi-typescript ../../spec/1440-cloud-openapi.json --output ./src/openapi.ts --root-types --alphabetize","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"jtjessup","email":"jon@1440.io"},"repository":{"url":"git+https://github.com/1440io/msp-sdk.git","type":"git","directory":"packages/msp-types"},"_npmVersion":"11.14.1","description":"TypeScript types generated from the 1440 Apple Messages for Business MSP API OpenAPI spec, plus curated aliases and enum vocabularies.","directories":{},"sideEffects":false,"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.7.2","openapi-typescript":"^7.13.0"},"_npmOperationalInternal":{"tmp":"tmp/msp-types_0.3.0_1789768866527_0.8143373444106288","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"_id":"@1440io/msp-types@0.4.0","bugs":{"url":"https://github.com/1440io/msp-sdk/issues"},"dist":{"shasum":"8a6a2e13b5083e429ce7c4d66128f96eb2bfcd91","tarball":"https://registry.npmjs.org/@1440io/msp-types/-/msp-types-0.4.0.tgz","fileCount":16,"integrity":"sha512-QpQEG927/DdVZWqFoz7H2jAPnKxxOYFOD1Cq1YhJst9QMsms4sxMCvZ/IeWjkR/mY5uiCUPeSkd+eum71DosoQ==","signatures":[{"sig":"MEQCIDekz4dY6cFfQOEVs8dbSptOGSuHAbr9vCvJx8pwE8nJAiBpKi2kq8NuQrUA+a8Z4qzhWnfByBwH7fH1BoUW9KTcuw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDjl+Goje2B4aqnBTzGtj89NEdJ3VR0PeYs3OLwQFCOmwIhAJWu0bjOZTprtN29zqZriaGaGXR0+8igMib9BEeLiDrC"}],"unpackedSize":1040957},"main":"./dist/index.cjs","name":"@1440io/msp-types","type":"module","types":"./dist/index.d.ts","author":{"name":"1440"},"module":"./dist/index.js","engines":{"node":">=20.10"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"},"./openapi":{"types":"./dist/openapi.d.ts","import":"./dist/openapi.js","require":"./dist/openapi.cjs"},"./package.json":"./package.json"},"gitHead":"5122f14ef8e132fb62e9ca50b47c63eb95a0ed2a","license":"MIT","scripts":{"build":"tsup","generate":"openapi-typescript ../../spec/1440-cloud-openapi.json --output ./src/openapi.ts --root-types --alphabetize","typecheck":"tsc --noEmit -p tsconfig.json"},"version":"0.4.0","_npmUser":{"name":"jtjessup","email":"jon@1440.io"},"homepage":"https://github.com/1440io/msp-sdk/tree/main/packages/msp-types#readme","keywords":["1440","apple-messages-for-business","amb","msp","openapi","types"],"repository":{"url":"git+https://github.com/1440io/msp-sdk.git","type":"git","directory":"packages/msp-types"},"_npmVersion":"11.14.1","description":"TypeScript types generated from the 1440 Apple Messages for Business MSP API OpenAPI spec, plus curated aliases and enum vocabularies.","directories":{},"maintainers":[{"name":"jtjessup","email":"jon@1440.io"}],"sideEffects":false,"_nodeVersion":"22.11.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.1","typescript":"^5.7.2","openapi-typescript":"^7.13.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/msp-types_0.4.0_1790034011523_0.40371238627743233"}}},"time":{"created":"2026-08-26T00:38:41.233Z","modified":"2026-09-21T23:40:11.853Z","0.1.0":"2026-08-26T00:38:41.521Z","0.2.0":"2026-09-10T02:46:37.644Z","0.3.0":"2026-09-18T22:01:06.643Z","0.4.0":"2026-09-21T23:40:11.640Z"},"bugs":{"url":"https://github.com/1440io/msp-sdk/issues"},"author":{"name":"1440"},"license":"MIT","homepage":"https://github.com/1440io/msp-sdk/tree/main/packages/msp-types#readme","keywords":["1440","apple-messages-for-business","amb","msp","openapi","types"],"repository":{"url":"git+https://github.com/1440io/msp-sdk.git","type":"git","directory":"packages/msp-types"},"description":"TypeScript types generated from the 1440 Apple Messages for Business MSP API OpenAPI spec, plus curated aliases and enum vocabularies.","maintainers":[{"name":"jtjessup","email":"jon@1440.io"}],"readme":"# @1440io/msp-types\n\nTypeScript types for the [1440](https://1440.io) Apple Messages for Business MSP API, generated from the OpenAPI 3.1 document with [`openapi-typescript`](https://github.com/openapi-ts/openapi-typescript).\n\n```bash\nnpm install --save-dev @1440io/msp-types\n```\n\nYou usually do not need to install this directly — [`@1440io/msp-api`](../msp-api) and [`@1440io/msp-webhooks`](../msp-webhooks) both depend on it and re-export what they use. Install it when you want the raw spec types in code that does not use either client.\n\n## Curated aliases\n\nThe short names for the shapes you actually touch:\n\n```ts\nimport type {\n  Conversation,\n  ConversationMessage,\n  SendMessageBody,\n  SendMessageSuccess,\n  MessagingInvitation,\n  RichTemplateDetail,\n  WebhookEvent,\n  WebhookMessageReceivedEvent,\n  InboundMessage,\n  InboundContent,\n  InboundContentOfKind,\n} from '@1440io/msp-types';\n```\n\n## Message content\n\nEvery content variant is a named type, so a function can be annotated with the\nexact shape it handles:\n\n```ts\nimport type {\n  InboundText, InboundQuickReplyResponse, InboundTimePickerResponse,\n  InboundFormResponse, InboundAuthenticationResponse,\n  InboundContent, InboundContentOfKind,\n  OutboundContent, RawContent,\n} from '@1440io/msp-types';\n\nfunction onSlotChosen(reply: InboundTimePickerResponse) { /* … */ }\n\n// Or pull a variant out of the union by its tag.\ntype OptOut = InboundContentOfKind<'opt_out'>;\n```\n\n`InboundMessageVisible` and `InboundMessageRedacted` split an inbound message\nby whether its body was delivered; `redacted` and `content` move together, so\nnarrowing on one settles the other.\n\n`RawContentOfKind` does the same job for the raw send union — including\n`RawContentOfKind<'amb.url_payload'>`, the Apple Music / Apple Maps / App Clip\nURL that Apple turns into a rich link at send time.\n\n## Raw generated surface\n\nEverything the spec declares, unmodified:\n\n```ts\nimport type { components, operations, paths, webhooks } from '@1440io/msp-types';\n\ntype Conversation = components['schemas']['ConversationListItem'];\ntype SendParams = operations['sendConversationMessage'];\n```\n\nOr by name, through the helpers:\n\n```ts\nimport type { Schema, Operation } from '@1440io/msp-types';\n\ntype Detail = Schema<'RichTemplateDetail'>;\ntype Send = Operation<'sendConversationMessage'>;\n```\n\nThe complete generated module is also exported at `@1440io/msp-types/openapi`.\n\n## Enum vocabularies\n\nThe spec declares its enums as string unions, which vanish at runtime. This package pairs each with a frozen array you can iterate, validate against, or drive a UI from:\n\n```ts\nimport {\n  CHANNEL_PLATFORMS,\n  CONVERSATION_STATUSES,\n  AGENT_STATUSES,\n  INVITATION_STATUSES,\n  TERMINAL_INVITATION_STATUSES,\n  RICH_TEMPLATE_STATUSES,\n  RICH_TEMPLATE_TYPES,\n  RICH_ASSET_USAGES,\n  RICH_REASON_CODES,\n  INBOUND_CONTENT_KINDS,\n  INTERACTIVE_CONTENT_KINDS,\n  DEVICE_CAPABILITIES,\n  isTerminalInvitationStatus,\n} from '@1440io/msp-types';\n\nif (isTerminalInvitationStatus(invitation.status)) {\n  // No further transitions are coming.\n}\n```\n\nEach array is `satisfies readonly T[]`, so if the spec adds a value and the array is not updated, the build fails rather than drifting quietly.\n\n## Regenerating\n\n```bash\nnpm run generate   # from the repo root\n```\n\n`src/openapi.ts` is generated wholesale from `spec/1440-cloud-openapi.json` — never hand-edit it. Curated aliases live in `src/index.ts`.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}