@wildo-ai/saas-specifications 1.1.15 → 1.1.17

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.
Files changed (147) hide show
  1. package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts +2 -1
  2. package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts.map +1 -1
  3. package/dist/esm/_core/application-maturity/application-maturity-open-items.js +2 -1
  4. package/dist/esm/_core/application-maturity/application-maturity-open-items.js.map +1 -1
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
  7. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts.map +1 -1
  8. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js +5 -2
  9. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js.map +1 -1
  10. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +251 -0
  11. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  12. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +43 -0
  13. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  14. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +43 -0
  15. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  16. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +58 -0
  17. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  18. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +1 -0
  19. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +5 -1
  21. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  22. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +2 -0
  23. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  24. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +3 -0
  25. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +12 -1
  27. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  28. package/dist/esm/_core/execution-view-specification.schemas.d.ts +19 -3
  29. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/execution-view-specification.schemas.js +11 -1
  31. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  32. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +15 -0
  33. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +43 -0
  35. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  36. package/dist/esm/_core/service-method/service-method-derivation.d.ts +17 -1
  37. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -1
  38. package/dist/esm/_core/service-method/service-method-derivation.js +46 -0
  39. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -1
  40. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +5 -0
  41. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -1
  43. package/dist/esm/_core/service-method/service-method.family-aspects.js +1 -0
  44. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -1
  45. package/dist/esm/_core/service-method/service-method.schemas.d.ts +36 -1
  46. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/service-method/service-method.schemas.js +49 -1
  48. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -1
  49. package/dist/esm/_core/utils/extract-field-specs.d.ts +4 -3
  50. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  51. package/dist/esm/_core/utils/extract-field-specs.js +4 -3
  52. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  53. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +5 -4
  54. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  55. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +5 -4
  56. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  57. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +1 -1
  58. package/dist/esm/assurance/assurance-authority-basis.definitions.js +1 -1
  59. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  60. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  61. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +13 -5
  62. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  63. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  64. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +9 -2
  65. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  66. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  67. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +8 -4
  68. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  69. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -1
  70. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +8 -5
  71. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -1
  72. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  73. package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
  74. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  75. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -1
  76. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +4 -1
  77. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -1
  78. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -1
  79. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +3 -0
  80. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -1
  81. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.d.ts +3 -0
  82. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.d.ts.map +1 -0
  83. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.js +98 -0
  84. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.js.map +1 -0
  85. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.d.ts +3 -0
  86. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.d.ts.map +1 -0
  87. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.js +132 -0
  88. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.js.map +1 -0
  89. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +1 -1
  90. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -1
  91. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.d.ts +5 -0
  92. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.d.ts.map +1 -0
  93. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.js +79 -0
  94. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.js.map +1 -0
  95. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  96. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +1 -0
  97. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  98. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js +3 -3
  99. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js.map +1 -1
  100. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.d.ts +4 -0
  101. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.d.ts.map +1 -0
  102. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.js +29 -0
  103. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.js.map +1 -0
  104. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  105. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  106. package/dist/esm/engine/frontend-components/index.d.ts +2 -0
  107. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  108. package/dist/esm/engine/frontend-components/index.js +6 -0
  109. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  110. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.d.ts +8 -0
  111. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.d.ts.map +1 -0
  112. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.js +65 -0
  113. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.js.map +1 -0
  114. package/dist/esm/engine/notifications/system-emails/index.d.ts +1 -0
  115. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  116. package/dist/esm/engine/notifications/system-emails/index.js +3 -1
  117. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  118. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +9 -0
  119. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  120. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +50 -0
  121. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  122. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -1
  123. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +25 -0
  124. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -1
  125. package/dist/esm/engine/providers/antigravity.provider.specification.d.ts +7 -0
  126. package/dist/esm/engine/providers/antigravity.provider.specification.d.ts.map +1 -0
  127. package/dist/esm/engine/providers/antigravity.provider.specification.js +54 -0
  128. package/dist/esm/engine/providers/antigravity.provider.specification.js.map +1 -0
  129. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -1
  130. package/dist/esm/engine/providers/google-drive.provider.specification.js +8 -0
  131. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -1
  132. package/dist/esm/engine/providers/index.d.ts +2 -0
  133. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  134. package/dist/esm/engine/providers/index.js +5 -1
  135. package/dist/esm/engine/providers/index.js.map +1 -1
  136. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -1
  137. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +17 -0
  138. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -1
  139. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.d.ts +7 -0
  140. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.d.ts.map +1 -0
  141. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.js +41 -0
  142. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.js.map +1 -0
  143. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  144. package/dist/esm/engine/providers/twilio.provider.specification.js +3 -0
  145. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  146. package/dist/tsconfig.build.tsbuildinfo +1 -1
  147. package/package.json +8 -8
@@ -0,0 +1,8 @@
1
+ import { type SystemEmailTemplateSpecificationConfig } from '../../../_core';
2
+ /**
3
+ * The system emails about work an application's agents handed to ANOTHER company's agent (#4013): today, the news one of
4
+ * its A2A agents reports about a delegated task.
5
+ */
6
+ export declare const remoteAgentTaskUpdatedSystemTemplateSpecification: SystemEmailTemplateSpecificationConfig;
7
+ export declare const delegatedWorkSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[];
8
+ //# sourceMappingURL=delegated-work.system-emails.specification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegated-work.system-emails.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/delegated-work.system-emails.specification.ts"],"names":[],"mappings":"AASA,OAAO,EAIL,KAAK,sCAAsC,EAC5C,MAAM,6BAA6B,CAAC;AAuBrC;;;GAGG;AACH,eAAO,MAAM,iDAAiD,wCAsC7D,CAAC;AAEF,eAAO,MAAM,8CAA8C,EAAE,sCAAsC,EAElG,CAAC"}
@@ -0,0 +1,65 @@
1
+ import { CodeDeclarationKind, CodeSymbolKind, } from '@wildo-ai/zod-decorators';
2
+ import { SystemEmailTemplateRef, SystemEmailTemplateRegistry, } from '@wildo-ai/saas-models';
3
+ import { systemEmailTemplateSpecificationFromRegistryEntry, SpecificationOwnerKind, } from '../../../_core/index.js';
4
+ /** Owner ref for engine-shipped system-email template specifications (see `security.system-emails.specification.ts`). */
5
+ const ENGINE_OWNER_REF = {
6
+ ownerId: 'engine',
7
+ ownerKind: SpecificationOwnerKind.ENGINE,
8
+ };
9
+ const TEMPLATE_REF_DECLARATION = {
10
+ packageName: '@wildo-ai/saas-models',
11
+ exportName: 'SystemEmailTemplateRef',
12
+ symbolKind: CodeSymbolKind.ENUM,
13
+ declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,
14
+ };
15
+ const EVENT_DATA_SCHEMA_SYMBOL = {
16
+ packageName: '@wildo-ai/saas-models',
17
+ exportName: 'SystemEmailTemplateRegistry',
18
+ symbolKind: CodeSymbolKind.CONFIG,
19
+ declarationKind: CodeDeclarationKind.CONST_OBJECT,
20
+ notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],
21
+ };
22
+ /**
23
+ * The system emails about work an application's agents handed to ANOTHER company's agent (#4013): today, the news one of
24
+ * its A2A agents reports about a delegated task.
25
+ */
26
+ export const remoteAgentTaskUpdatedSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(SystemEmailTemplateRegistry[SystemEmailTemplateRef.REMOTE_AGENT_TASK_UPDATED], () => ({
27
+ purpose: 'Tell a person that another company\'s agent, to which one of their conversations with an assistant handed a task, has news about it (it finished, failed, or needs more information), so a person who is not in the application hears of it too.',
28
+ tone: 'Brief and neutral: a heads-up that something is waiting in a conversation, never an alarm.',
29
+ useWhen: 'Sent with the in-app notice `remote_agent_task_updated` when the application records a pushed update about such a task (#3930, #4013): once when the task ends, and when it asks for input or authorization — the first time, and again only after the person has taken a turn in that conversation since the last ask.',
30
+ avoidWhen: 'Never to anyone but the conversation\'s own person, never for a conversation an organization or the application owns (it has no person), and never to repeat a second delivery of the same update.',
31
+ textSlots: {
32
+ subject: {
33
+ purpose: 'Say that the agent (`{agent}`, the name the application declared for it) has news about a task, without saying what the news is.',
34
+ },
35
+ previewText: {
36
+ purpose: 'Short preview repeating the heading.',
37
+ },
38
+ body: {
39
+ purpose: 'Say that the agent, run by another company, has news about a task one of the reader\'s conversations handed to it, that it may have finished or may need something from the reader, and that opening the conversation lets their assistant go through it with them.',
40
+ notes: [
41
+ 'Never say which news it is (finished, failed, waiting): the email is sent before anyone has read the update, and the conversation is where it is read.',
42
+ 'Never quote or paraphrase anything the other company\'s agent wrote.',
43
+ ],
44
+ },
45
+ ctaLabel: {
46
+ purpose: 'Primary action label: opens the conversation at `eventData.conversationUrl` (the application\'s conversation-link page), else the application at `eventData.appUrl`.',
47
+ },
48
+ },
49
+ eventData: {
50
+ purpose: 'The agent\'s name as the application declared it, and optional conversation and application URLs. Never the remote agent\'s text, its task state, or anything from the conversation.',
51
+ },
52
+ businessConstraints: [
53
+ 'Never include the other company\'s words, the task\'s state, or anything from the conversation: the email reaches a mailbox and is sent before the update is read.',
54
+ 'Sent only to the person whose conversation handed the task on, never to an organization-wide list.',
55
+ ],
56
+ codeHandling: {
57
+ definitionOwner: ENGINE_OWNER_REF,
58
+ templateRefDeclaration: TEMPLATE_REF_DECLARATION,
59
+ eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,
60
+ },
61
+ }));
62
+ export const delegatedWorkSystemEmailTemplateSpecifications = [
63
+ remoteAgentTaskUpdatedSystemTemplateSpecification,
64
+ ];
65
+ //# sourceMappingURL=delegated-work.system-emails.specification.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delegated-work.system-emails.specification.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/delegated-work.system-emails.specification.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,cAAc,GAEf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,sBAAsB,EACtB,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iDAAiD,EACjD,sBAAsB,GAGvB,MAAM,6BAA6B,CAAC;AAErC,yHAAyH;AACzH,MAAM,gBAAgB,GAA0B;IAC9C,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,sBAAsB,CAAC,MAAM;CACzC,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,wBAAwB;IACpC,UAAU,EAAE,cAAc,CAAC,IAAI;IAC/B,eAAe,EAAE,mBAAmB,CAAC,eAAe;CACrD,CAAC;AAEF,MAAM,wBAAwB,GAAkB;IAC9C,WAAW,EAAE,uBAAuB;IACpC,UAAU,EAAE,6BAA6B;IACzC,UAAU,EAAE,cAAc,CAAC,MAAM;IACjC,eAAe,EAAE,mBAAmB,CAAC,YAAY;IACjD,KAAK,EAAE,CAAC,mGAAmG,CAAC;CAC7G,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,MAAM,iDAAiD,GAAG,iDAAiD,CAChH,2BAA2B,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,EAC7E,GAAG,EAAE,CAAC,CAAC;IACL,OAAO,EAAE,kPAAkP;IAC3P,IAAI,EAAE,4FAA4F;IAClG,OAAO,EAAE,yTAAyT;IAClU,SAAS,EAAE,oMAAoM;IAC/M,SAAS,EAAE;QACT,OAAO,EAAE;YACP,OAAO,EAAE,kIAAkI;SAC5I;QACD,WAAW,EAAE;YACX,OAAO,EAAE,sCAAsC;SAChD;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,qQAAqQ;YAC9Q,KAAK,EAAE;gBACL,wJAAwJ;gBACxJ,sEAAsE;aACvE;SACF;QACD,QAAQ,EAAE;YACR,OAAO,EAAE,sKAAsK;SAChL;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,sLAAsL;KAChM;IACD,mBAAmB,EAAE;QACnB,oKAAoK;QACpK,oGAAoG;KACrG;IACD,YAAY,EAAE;QACZ,eAAe,EAAE,gBAAgB;QACjC,sBAAsB,EAAE,wBAAwB;QAChD,qBAAqB,EAAE,wBAAwB;KAChD;CACF,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAA6C;IACtG,iDAAiD;CAClD,CAAC","sourcesContent":["import {\n CodeDeclarationKind,\n CodeSymbolKind,\n type CodeSymbolRef,\n} from '@wildo-ai/zod-decorators';\nimport {\n SystemEmailTemplateRef,\n SystemEmailTemplateRegistry,\n} from '@wildo-ai/saas-models';\nimport {\n systemEmailTemplateSpecificationFromRegistryEntry,\n SpecificationOwnerKind,\n type SpecificationOwnerRef,\n type SystemEmailTemplateSpecificationConfig,\n} from '~wildo-specifications/_core';\n\n/** Owner ref for engine-shipped system-email template specifications (see `security.system-emails.specification.ts`). */\nconst ENGINE_OWNER_REF: SpecificationOwnerRef = {\n ownerId: 'engine',\n ownerKind: SpecificationOwnerKind.ENGINE,\n};\n\nconst TEMPLATE_REF_DECLARATION: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRef',\n symbolKind: CodeSymbolKind.ENUM,\n declarationKind: CodeDeclarationKind.TYPESCRIPT_ENUM,\n};\n\nconst EVENT_DATA_SCHEMA_SYMBOL: CodeSymbolRef = {\n packageName: '@wildo-ai/saas-models',\n exportName: 'SystemEmailTemplateRegistry',\n symbolKind: CodeSymbolKind.CONFIG,\n declarationKind: CodeDeclarationKind.CONST_OBJECT,\n notes: ['Look up the entry by `SystemEmailTemplateRef.*` to reach the `eventDataSchema` for this template.'],\n};\n\n/**\n * The system emails about work an application's agents handed to ANOTHER company's agent (#4013): today, the news one of\n * its A2A agents reports about a delegated task.\n */\nexport const remoteAgentTaskUpdatedSystemTemplateSpecification = systemEmailTemplateSpecificationFromRegistryEntry(\n SystemEmailTemplateRegistry[SystemEmailTemplateRef.REMOTE_AGENT_TASK_UPDATED],\n () => ({\n purpose: 'Tell a person that another company\\'s agent, to which one of their conversations with an assistant handed a task, has news about it (it finished, failed, or needs more information), so a person who is not in the application hears of it too.',\n tone: 'Brief and neutral: a heads-up that something is waiting in a conversation, never an alarm.',\n useWhen: 'Sent with the in-app notice `remote_agent_task_updated` when the application records a pushed update about such a task (#3930, #4013): once when the task ends, and when it asks for input or authorization — the first time, and again only after the person has taken a turn in that conversation since the last ask.',\n avoidWhen: 'Never to anyone but the conversation\\'s own person, never for a conversation an organization or the application owns (it has no person), and never to repeat a second delivery of the same update.',\n textSlots: {\n subject: {\n purpose: 'Say that the agent (`{agent}`, the name the application declared for it) has news about a task, without saying what the news is.',\n },\n previewText: {\n purpose: 'Short preview repeating the heading.',\n },\n body: {\n purpose: 'Say that the agent, run by another company, has news about a task one of the reader\\'s conversations handed to it, that it may have finished or may need something from the reader, and that opening the conversation lets their assistant go through it with them.',\n notes: [\n 'Never say which news it is (finished, failed, waiting): the email is sent before anyone has read the update, and the conversation is where it is read.',\n 'Never quote or paraphrase anything the other company\\'s agent wrote.',\n ],\n },\n ctaLabel: {\n purpose: 'Primary action label: opens the conversation at `eventData.conversationUrl` (the application\\'s conversation-link page), else the application at `eventData.appUrl`.',\n },\n },\n eventData: {\n purpose: 'The agent\\'s name as the application declared it, and optional conversation and application URLs. Never the remote agent\\'s text, its task state, or anything from the conversation.',\n },\n businessConstraints: [\n 'Never include the other company\\'s words, the task\\'s state, or anything from the conversation: the email reaches a mailbox and is sent before the update is read.',\n 'Sent only to the person whose conversation handed the task on, never to an organization-wide list.',\n ],\n codeHandling: {\n definitionOwner: ENGINE_OWNER_REF,\n templateRefDeclaration: TEMPLATE_REF_DECLARATION,\n eventDataSchemaSymbol: EVENT_DATA_SCHEMA_SYMBOL,\n },\n }),\n);\n\nexport const delegatedWorkSystemEmailTemplateSpecifications: SystemEmailTemplateSpecificationConfig[] = [\n remoteAgentTaskUpdatedSystemTemplateSpecification,\n];\n"]}
@@ -2,6 +2,7 @@ export * from './authentication.system-emails.specification';
2
2
  export * from './organization.system-emails.specification';
3
3
  export * from './security.system-emails.specification';
4
4
  export * from './human-decision.system-emails.specification';
5
+ export * from './delegated-work.system-emails.specification';
5
6
  /**
6
7
  * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.
7
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAMA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,wEAKnD,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAOA,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,eAAO,MAAM,uCAAuC,wEAMnD,CAAC"}
@@ -3,10 +3,12 @@ import { authenticationSystemEmailTemplateSpecifications } from './authenticatio
3
3
  import { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification.js';
4
4
  import { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification.js';
5
5
  import { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification.js';
6
+ import { delegatedWorkSystemEmailTemplateSpecifications } from './delegated-work.system-emails.specification.js';
6
7
  export * from './authentication.system-emails.specification.js';
7
8
  export * from './organization.system-emails.specification.js';
8
9
  export * from './security.system-emails.specification.js';
9
10
  export * from './human-decision.system-emails.specification.js';
11
+ export * from './delegated-work.system-emails.specification.js';
10
12
  /**
11
13
  * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.
12
14
  *
@@ -14,5 +16,5 @@ export * from './human-decision.system-emails.specification.js';
14
16
  * system email-template surface, but the engine already provides a complete
15
17
  * baseline keyed by `SystemEmailTemplateRef.*`.
16
18
  */
17
- export const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(...authenticationSystemEmailTemplateSpecifications, ...organizationSystemEmailTemplateSpecifications, ...securitySystemEmailTemplateSpecifications, ...humanDecisionSystemEmailTemplateSpecifications);
19
+ export const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(...authenticationSystemEmailTemplateSpecifications, ...organizationSystemEmailTemplateSpecifications, ...securitySystemEmailTemplateSpecifications, ...humanDecisionSystemEmailTemplateSpecifications, ...delegatedWorkSystemEmailTemplateSpecifications);
18
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,+CAA+C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,8CAA8C,EAAE,MAAM,8CAA8C,CAAC;AAE9G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wCAAwC,CAC7F,GAAG,+CAA+C,EAClD,GAAG,6CAA6C,EAChD,GAAG,yCAAyC,EAC5C,GAAG,8CAA8C,CAClD,CAAC","sourcesContent":["import { buildSystemEmailTemplateSpecificationMap } from '~wildo-specifications/_core';\nimport { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification';\nimport { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification';\nimport { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification';\nimport { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification';\n\nexport * from './authentication.system-emails.specification';\nexport * from './organization.system-emails.specification';\nexport * from './security.system-emails.specification';\nexport * from './human-decision.system-emails.specification';\n\n/**\n * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.\n *\n * Applications can merge their own additions into this map when extending the\n * system email-template surface, but the engine already provides a complete\n * baseline keyed by `SystemEmailTemplateRef.*`.\n */\nexport const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(\n ...authenticationSystemEmailTemplateSpecifications,\n ...organizationSystemEmailTemplateSpecifications,\n ...securitySystemEmailTemplateSpecifications,\n ...humanDecisionSystemEmailTemplateSpecifications,\n);\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/engine/notifications/system-emails/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wCAAwC,EAAE,MAAM,6BAA6B,CAAC;AACvF,OAAO,EAAE,+CAA+C,EAAE,MAAM,8CAA8C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,4CAA4C,CAAC;AAC3G,OAAO,EAAE,yCAAyC,EAAE,MAAM,wCAAwC,CAAC;AACnG,OAAO,EAAE,8CAA8C,EAAE,MAAM,8CAA8C,CAAC;AAC9G,OAAO,EAAE,8CAA8C,EAAE,MAAM,8CAA8C,CAAC;AAE9G,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC;AACvD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAE7D;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uCAAuC,GAAG,wCAAwC,CAC7F,GAAG,+CAA+C,EAClD,GAAG,6CAA6C,EAChD,GAAG,yCAAyC,EAC5C,GAAG,8CAA8C,EACjD,GAAG,8CAA8C,CAClD,CAAC","sourcesContent":["import { buildSystemEmailTemplateSpecificationMap } from '~wildo-specifications/_core';\nimport { authenticationSystemEmailTemplateSpecifications } from './authentication.system-emails.specification';\nimport { organizationSystemEmailTemplateSpecifications } from './organization.system-emails.specification';\nimport { securitySystemEmailTemplateSpecifications } from './security.system-emails.specification';\nimport { humanDecisionSystemEmailTemplateSpecifications } from './human-decision.system-emails.specification';\nimport { delegatedWorkSystemEmailTemplateSpecifications } from './delegated-work.system-emails.specification';\n\nexport * from './authentication.system-emails.specification';\nexport * from './organization.system-emails.specification';\nexport * from './security.system-emails.specification';\nexport * from './human-decision.system-emails.specification';\nexport * from './delegated-work.system-emails.specification';\n\n/**\n * Framework-owned keyed map of every system email template specification, one per `SystemEmailTemplateRef`.\n *\n * Applications can merge their own additions into this map when extending the\n * system email-template surface, but the engine already provides a complete\n * baseline keyed by `SystemEmailTemplateRef.*`.\n */\nexport const engineSystemEmailTemplateSpecifications = buildSystemEmailTemplateSpecificationMap(\n ...authenticationSystemEmailTemplateSpecifications,\n ...organizationSystemEmailTemplateSpecifications,\n ...securitySystemEmailTemplateSpecifications,\n ...humanDecisionSystemEmailTemplateSpecifications,\n ...delegatedWorkSystemEmailTemplateSpecifications,\n);\n"]}
@@ -14,6 +14,15 @@ export declare const organizationMembersResourceSpecification: import("../../../
14
14
  organizationRelationshipId: import("zod").ZodOptional<import("zod").ZodString>;
15
15
  representingOrganizationId: import("zod").ZodOptional<import("zod").ZodString>;
16
16
  representingOrganizationName: import("zod").ZodOptional<import("zod").ZodString>;
17
+ relationshipDelegatedRoles: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
18
+ role: import("zod").ZodString;
19
+ organizationRelationshipId: import("zod").ZodString;
20
+ relationshipKind: import("zod").ZodString;
21
+ representingOrganizationId: import("zod").ZodString;
22
+ representingOrganizationName: import("zod").ZodOptional<import("zod").ZodString>;
23
+ grantedByUserId: import("zod").ZodString;
24
+ grantedAt: import("zod").ZodDate;
25
+ }, import("zod/v4/core").$strip>>>;
17
26
  instanceLabel: import("zod").ZodOptional<import("zod").ZodString>;
18
27
  createdAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodDate>>;
19
28
  updatedAt: import("zod").ZodOptional<import("zod").ZodDefault<import("zod").ZodDate>>;
@@ -1 +1 @@
1
- {"version":3,"file":"organization-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/organizations/resources/organization-members.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAK3B,wBAAwB,EACxB,8BAA8B,EAG/B,MAAM,uBAAuB,CAAC;AA2D/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;iCAkiBpD,CAAC"}
1
+ {"version":3,"file":"organization-members.resource.specification.d.ts","sourceRoot":"","sources":["../../../../../src/engine/organizations/resources/organization-members.resource.specification.ts"],"names":[],"mappings":"AAWA,OAAO,EAEL,cAAc,EACd,qBAAqB,IAAI,EAAE,EAK3B,wBAAwB,EACxB,8BAA8B,EAG/B,MAAM,uBAAuB,CAAC;AA2D/B,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAolBpD,CAAC"}
@@ -146,6 +146,11 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
146
146
  meaning: 'Present only on a relationship membership: the representing organization\'s name, copied from its relationship when the representative was assigned — what the directory shows as "via {Organization}".',
147
147
  whyItMatters: 'The granting organization can never read the representing organization\'s row, which lives in another tenant, so without this snapshot the directory could name that organization only by an opaque id. It is display only and decides nothing.',
148
148
  }),
149
+ relationshipDelegatedRoles: schemaShape.relationshipDelegatedRoles.arraySpec({
150
+ meaning: 'Roles a representing organization granted this member of the organization\'s OWN staff through a relationship whose kind delegates them (`confers.delegatedMemberRoles`, #4057): a firm recognising a client\'s in-house accountant, for instance. Each entry names the role, the relationship, its kind, the representing organization (with its name as the relationship carried it at the grant, #4059), who granted it and when. The member\'s page shows each grant as the role\'s word, that organization\'s name and the date; the identifiers name rows of another tenant and are not shown.',
151
+ elementMeaning: 'One grant: a role, and the relationship it came through.',
152
+ whyItMatters: 'The organization\'s owner cannot grant such a role (it carries the authority the relationship entrusts to the representing organization, which the role-grant ceiling keeps from the owner), so this is the only way the organization\'s own people hold it. A grant confers only while its relationship confers and still delegates the role, re-checked on every request; it joins the member\'s own roles (no relationship record separation applies to them). Written only by `applyRelationshipDelegatedRole`; the organization\'s administrators remove a grant with `withdrawRelationshipDelegatedRole`, and the representing organization with its `withdrawDelegatedMemberRole`.',
153
+ }),
149
154
  scheduledReactivationAt: schemaShape.scheduledReactivationAt.dateSpec({
150
155
  meaning: 'When an automated sweep lifts this suspension by dispatching REACTIVATE — to ACTIVE, or to INACTIVE for a relationship membership whose relationship has ended or whose person is no longer assigned. Set by SUSPEND when the caller time-boxes the suspension (its request contract calls this `suspensionEndDate`), cleared by REACTIVATE. Absent means the suspension is indefinite and only an explicit REACTIVATE lifts it — the default, since an unbounded suspension is the safer reading of “suspend”.',
151
156
  whyItMatters: 'The same field on a user (`users`), set by an administrator’s time-boxed suspension of the account, carries the same name and meaning. Read-only for clients: only the status operations write it, as for `status`.',
@@ -508,6 +513,50 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
508
513
  forStatus: HttpResponseStatusCode.OK_200,
509
514
  }],
510
515
  },
516
+ [OrganizationMembers_Operations.APPLY_RELATIONSHIP_DELEGATED_ROLE]: {
517
+ operationId: OrganizationMembers_Operations.APPLY_RELATIONSHIP_DELEGATED_ROLE,
518
+ purpose: 'INTERNAL (#4057): record, or remove, a role a representing organization grants one of this organization\'s own members through a relationship whose kind delegates it. The one writer of `relationshipDelegatedRoles`, run by the representing organization\'s `grantDelegatedMemberRole` / `withdrawDelegatedMemberRole` and by this organization\'s `withdrawRelationshipDelegatedRole`.',
519
+ outcome: 'A grant is recorded only on an ACTIVE own membership and only when it would confer right now: the relationship is active, within its term, organization-wide, still declared between the two organizations\' types, its kind delegates the role, and the role is the relationship\'s own role or one it inherits. A withdrawal removes the grant whatever the relationship\'s state. Recorded as `ORGANIZATION_MEMBER_ROLE_CHANGED` in this organization\'s trail, naming the relationship (`throughRelationship`), the person who acted and the justification.',
520
+ responseStatuses: [
521
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The member\'s grants are as asked. Idempotent: a grant already recorded, or nothing to withdraw, changes nothing and records nothing.' },
522
+ ],
523
+ errorScenarios: [
524
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'A representative\'s membership (its roles belong to its relationship), a membership that is not ACTIVE, a role the member already holds as their own, a relationship of another organization, a change with no acting person, or a grant the relationship does not let confer now (`relationship_delegated_role_not_admitted`, with the rule\'s `refusal`: `ROLE_NOT_DELEGATED_BY_KIND`, `ROLE_ABOVE_RELATIONSHIP_ROLE`, `RELATIONSHIP_UNIT_SCOPED`, or `RELATIONSHIP_NOT_CONFERRING`).' },
525
+ ],
526
+ idempotent: true,
527
+ examples: [{
528
+ title: 'Record the role a firm grants a client\'s in-house accountant',
529
+ request: { change: 'GRANT', role: 'QUALIFIED_ACCOUNTANT', grantedThroughRelationshipId: 'rel_01HX2EXAMPLE', justification: 'Chartered accountant; certificate checked by the firm.' },
530
+ response: {
531
+ ...ORGANIZATION_MEMBER_EXAMPLE,
532
+ relationshipDelegatedRoles: [{
533
+ role: 'QUALIFIED_ACCOUNTANT', organizationRelationshipId: 'rel_01HX2EXAMPLE', relationshipKind: 'service',
534
+ representingOrganizationId: 'org_01HX2FIRM', representingOrganizationName: 'Northgate Accountants', grantedByUserId: 'user_01HX2FIRMADMIN', grantedAt: '2026-11-18T10:00:00.000Z',
535
+ }],
536
+ },
537
+ forStatus: HttpResponseStatusCode.OK_200,
538
+ }],
539
+ },
540
+ [OrganizationMembers_Operations.WITHDRAW_RELATIONSHIP_DELEGATED_ROLE]: {
541
+ operationId: OrganizationMembers_Operations.WITHDRAW_RELATIONSHIP_DELEGATED_ROLE,
542
+ purpose: 'An administrator removes a role a representing organization granted one of the organization\'s own members through a relationship (#4057). The organization keeps the last word over its own people.',
543
+ outcome: 'The grant is removed and the member loses the role from the next request. Recorded like the grant, with the justification; the organization\'s administrators are notified.',
544
+ whenToUse: 'The member no longer takes the decisions the role guards, or the organization no longer wants the representing organization to vouch for them.',
545
+ responseStatuses: [
546
+ { code: HttpResponseStatusCode.OK_200, meaning: 'The grant is gone. Idempotent: nothing to remove changes nothing.' },
547
+ ],
548
+ errorScenarios: [
549
+ { code: HttpResponseStatusCode.FORBIDDEN_403, when: 'The caller is not an administrator of this organization.' },
550
+ { code: HttpResponseStatusCode.CONFLICT_409, when: 'The member holds no role granted through a relationship (the operation is disabled for them), or holds the role through several relationships and the request names none of them (`relationship_delegated_role_relationship_ambiguous`).' },
551
+ ],
552
+ idempotent: true,
553
+ examples: [{
554
+ title: 'Remove a role the firm granted',
555
+ request: { role: 'QUALIFIED_ACCOUNTANT', justification: 'She moved to the sales team.' },
556
+ response: { ...ORGANIZATION_MEMBER_EXAMPLE, relationshipDelegatedRoles: [] },
557
+ forStatus: HttpResponseStatusCode.OK_200,
558
+ }],
559
+ },
511
560
  [OrganizationMembers_Operations.RESEND]: {
512
561
  operationId: OrganizationMembers_Operations.RESEND,
513
562
  purpose: 'Re-mint and re-send the accept link for a still-pending invitation (an INVITED membership).',
@@ -575,6 +624,7 @@ export const organizationMembersResourceSpecification = resourceSpecificationFro
575
624
  [OrganizationMembers_Operations.RESEND]: { purpose: 'Re-issue the accept link for a still-pending invitation.', whenToUse: 'When an invitee lost or never received the original invite email.' },
576
625
  [OrganizationMembers_Operations.MAKE_OWNER]: { purpose: 'Offered to an owner on an active member who is not an owner yet.', whenToUse: 'Adding a second owner, or handing ownership over.' },
577
626
  [OrganizationMembers_Operations.STEP_DOWN_AS_OWNER]: { purpose: 'Offered to an owner on their own row only.', whenToUse: 'Once another member is an owner, to give up ownership and stay an administrator.' },
627
+ [OrganizationMembers_Operations.WITHDRAW_RELATIONSHIP_DELEGATED_ROLE]: { purpose: 'Offered to an administrator on a member holding a role granted through a relationship (#4057), picking among those roles.', whenToUse: 'Taking back a role a representing organization granted one of the organization\'s own people.' },
578
628
  },
579
629
  }));
580
630
  //# sourceMappingURL=organization-members.resource.specification.js.map