@pam-ai/pam-ordo-contracts 3.4.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.
- package/README.md +72 -0
- package/dist/generated.d.ts +1848 -0
- package/dist/generated.d.ts.map +1 -0
- package/dist/generated.js +6 -0
- package/dist/generated.js.map +1 -0
- package/dist/inbox-policy.d.ts +9 -0
- package/dist/inbox-policy.d.ts.map +1 -0
- package/dist/inbox-policy.js +27 -0
- package/dist/inbox-policy.js.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -0
- package/dist/ordo-capability.d.ts +27 -0
- package/dist/ordo-capability.d.ts.map +1 -0
- package/dist/ordo-capability.js +37 -0
- package/dist/ordo-capability.js.map +1 -0
- package/dist/producer-command.d.ts +18 -0
- package/dist/producer-command.d.ts.map +1 -0
- package/dist/producer-command.js +38 -0
- package/dist/producer-command.js.map +1 -0
- package/fixtures/acknowledge-attention-command.json +8 -0
- package/fixtures/add-customer-note-command.json +6 -0
- package/fixtures/add-internal-comment-command.json +9 -0
- package/fixtures/advance-read-cursor-command.json +6 -0
- package/fixtures/assign-command.json +11 -0
- package/fixtures/assign-team-routing-command.json +11 -0
- package/fixtures/command-result.json +10 -0
- package/fixtures/contact-search.json +111 -0
- package/fixtures/conversation-detail-missing-body.json +133 -0
- package/fixtures/customer-note-command-result.json +10 -0
- package/fixtures/customer-notes-page.json +17 -0
- package/fixtures/delete-customer-note-command.json +7 -0
- package/fixtures/inbox-list-customer-no-work.json +93 -0
- package/fixtures/inbox-list-partial-hydration.json +175 -0
- package/fixtures/inbox-policy-v1.json +33 -0
- package/fixtures/inbox-target-resolution-request-v1.json +8 -0
- package/fixtures/inbox-target-resolution-response-v1.json +23 -0
- package/fixtures/internal-comment-result.json +13 -0
- package/fixtures/manifest.json +32 -0
- package/fixtures/notification-command-result.json +10 -0
- package/fixtures/notification-command.json +5 -0
- package/fixtures/notification-list.json +25 -0
- package/fixtures/permissions-unavailable.json +7 -0
- package/fixtures/producer-attention-command-v1.json +28 -0
- package/fixtures/producer-invalid-actor-command-v1.json +17 -0
- package/fixtures/producer-invalid-customer-identity-v1.json +15 -0
- package/fixtures/producer-invalid-missing-source-version-v1.json +16 -0
- package/fixtures/producer-invalid-oversized-v1.json +15 -0
- package/fixtures/producer-invalid-unknown-field-v1.json +17 -0
- package/fixtures/producer-overdue-fire-command-v1.json +21 -0
- package/fixtures/producer-reminder-fire-command-v1.json +20 -0
- package/fixtures/producer-snooze-return-command-v1.json +20 -0
- package/fixtures/producer-source-activity-command-v1.json +34 -0
- package/fixtures/read-cursor-result.json +10 -0
- package/fixtures/resolve-attention-command.json +9 -0
- package/fixtures/version-conflict.json +11 -0
- package/openapi/openapi.json +4577 -0
- package/package.json +67 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "invalid-version",
|
|
4
|
+
"commandType": "reminder.fire",
|
|
5
|
+
"clientOrgId": "clone-test",
|
|
6
|
+
"traceId": "trace-invalid",
|
|
7
|
+
"occurredAt": "2026-09-03T14:00:00.000Z",
|
|
8
|
+
"actor": { "type": "system" },
|
|
9
|
+
"source": { "system": "scheduler", "eventId": "1" },
|
|
10
|
+
"target": { "conversationId": "0199082e-8d80-7000-8000-000000000001" },
|
|
11
|
+
"payload": {
|
|
12
|
+
"reminderId": "0199082e-8d80-7000-8000-000000000003",
|
|
13
|
+
"dueAt": "2026-09-03T14:00:00.000Z",
|
|
14
|
+
"expectedReminderVersion": 1
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "invalid-oversized-template",
|
|
4
|
+
"commandType": "work_cycle.source_activity",
|
|
5
|
+
"clientOrgId": "clone-test",
|
|
6
|
+
"traceId": "trace-invalid",
|
|
7
|
+
"occurredAt": "2026-09-03T13:45:00.000Z",
|
|
8
|
+
"actor": { "type": "source" },
|
|
9
|
+
"source": { "system": "sms", "eventId": "1", "eventVersion": "1" },
|
|
10
|
+
"target": { "conversationId": "0199082e-8d80-7000-8000-000000000001" },
|
|
11
|
+
"payload": {
|
|
12
|
+
"activityType": "informational",
|
|
13
|
+
"interaction": { "kind": "system_event", "direction": "internal", "senderType": "system" }
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "invalid-unknown",
|
|
4
|
+
"commandType": "snooze.return",
|
|
5
|
+
"clientOrgId": "clone-test",
|
|
6
|
+
"traceId": "trace-invalid",
|
|
7
|
+
"occurredAt": "2026-09-03T15:00:00.000Z",
|
|
8
|
+
"actor": { "type": "system" },
|
|
9
|
+
"source": { "system": "scheduler", "eventId": "1", "eventVersion": "1" },
|
|
10
|
+
"target": { "conversationId": "0199082e-8d80-7000-8000-000000000001" },
|
|
11
|
+
"payload": {
|
|
12
|
+
"workCycleId": "0199082e-8d80-7000-8000-000000000002",
|
|
13
|
+
"scheduledFor": "2026-09-03T15:00:00.000Z",
|
|
14
|
+
"snoozeOperationId": "dashboard-snooze-01"
|
|
15
|
+
},
|
|
16
|
+
"unexpected": true
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "overdue:fire:01",
|
|
4
|
+
"commandType": "overdue.fire",
|
|
5
|
+
"clientOrgId": "clone_aeef094b-616c-48fd-aefa-768eab85212c",
|
|
6
|
+
"traceId": "trace-overdue-01",
|
|
7
|
+
"occurredAt": "2026-09-03T14:15:00.000Z",
|
|
8
|
+
"actor": { "type": "system" },
|
|
9
|
+
"source": {
|
|
10
|
+
"system": "eventbridge-scheduler",
|
|
11
|
+
"eventId": "overdue-schedule-01",
|
|
12
|
+
"eventVersion": "1"
|
|
13
|
+
},
|
|
14
|
+
"target": { "conversationId": "0199082e-8d80-7000-8000-000000000001" },
|
|
15
|
+
"payload": {
|
|
16
|
+
"workCycleId": "0199082e-8d80-7000-8000-000000000002",
|
|
17
|
+
"deadline": "2026-09-03T14:15:00.000Z",
|
|
18
|
+
"oldestUnrespondedAt": "2026-09-03T13:45:00.000Z",
|
|
19
|
+
"recipientUserExternalId": "user-owner-1"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "reminder:fire:01:v1",
|
|
4
|
+
"commandType": "reminder.fire",
|
|
5
|
+
"clientOrgId": "clone_aeef094b-616c-48fd-aefa-768eab85212c",
|
|
6
|
+
"traceId": "trace-reminder-01",
|
|
7
|
+
"occurredAt": "2026-09-03T14:00:00.000Z",
|
|
8
|
+
"actor": { "type": "system" },
|
|
9
|
+
"source": {
|
|
10
|
+
"system": "eventbridge-scheduler",
|
|
11
|
+
"eventId": "reminder-schedule-01-v1",
|
|
12
|
+
"eventVersion": "1"
|
|
13
|
+
},
|
|
14
|
+
"target": { "conversationId": "0199082e-8d80-7000-8000-000000000001" },
|
|
15
|
+
"payload": {
|
|
16
|
+
"reminderId": "0199082e-8d80-7000-8000-000000000003",
|
|
17
|
+
"dueAt": "2026-09-03T14:00:00.000Z",
|
|
18
|
+
"expectedReminderVersion": 1
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "snooze:return:01",
|
|
4
|
+
"commandType": "snooze.return",
|
|
5
|
+
"clientOrgId": "clone_aeef094b-616c-48fd-aefa-768eab85212c",
|
|
6
|
+
"traceId": "trace-snooze-01",
|
|
7
|
+
"occurredAt": "2026-09-03T15:00:00.000Z",
|
|
8
|
+
"actor": { "type": "system" },
|
|
9
|
+
"source": {
|
|
10
|
+
"system": "eventbridge-scheduler",
|
|
11
|
+
"eventId": "snooze-schedule-01",
|
|
12
|
+
"eventVersion": "1"
|
|
13
|
+
},
|
|
14
|
+
"target": { "conversationId": "0199082e-8d80-7000-8000-000000000001" },
|
|
15
|
+
"payload": {
|
|
16
|
+
"workCycleId": "0199082e-8d80-7000-8000-000000000002",
|
|
17
|
+
"scheduledFor": "2026-09-03T15:00:00.000Z",
|
|
18
|
+
"snoozeOperationId": "dashboard-snooze-01"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"operationId": "sms:customer-message:01",
|
|
4
|
+
"commandType": "work_cycle.source_activity",
|
|
5
|
+
"clientOrgId": "clone_aeef094b-616c-48fd-aefa-768eab85212c",
|
|
6
|
+
"traceId": "trace-source-activity-01",
|
|
7
|
+
"occurredAt": "2026-09-03T13:45:00.000Z",
|
|
8
|
+
"actor": { "type": "source" },
|
|
9
|
+
"source": {
|
|
10
|
+
"system": "pam_messaging_dynamodb",
|
|
11
|
+
"eventId": "CUSTOMER#123|MESSAGE#456",
|
|
12
|
+
"eventVersion": "1"
|
|
13
|
+
},
|
|
14
|
+
"target": {
|
|
15
|
+
"customerIdentity": {
|
|
16
|
+
"customerSourceSystem": "pam-customers-service",
|
|
17
|
+
"customerExternalId": "customer-123"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"payload": {
|
|
21
|
+
"activityType": "customer_activity",
|
|
22
|
+
"interaction": {
|
|
23
|
+
"kind": "sms",
|
|
24
|
+
"channel": "sms",
|
|
25
|
+
"direction": "inbound",
|
|
26
|
+
"senderType": "customer",
|
|
27
|
+
"lineType": "rooftop",
|
|
28
|
+
"dynamoLocator": {
|
|
29
|
+
"partitionKey": "CUSTOMER#123",
|
|
30
|
+
"sortKey": "MESSAGE#456"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"data": {
|
|
3
|
+
"operationId": "advance-read-cursor-01",
|
|
4
|
+
"applied": true,
|
|
5
|
+
"replayed": false,
|
|
6
|
+
"conversationId": "01a05847-dde0-7000-8000-000000000001",
|
|
7
|
+
"lastReadInteractionRefId": "01a05847-dde0-7000-8000-000000000010",
|
|
8
|
+
"lastReadSequenceNumber": 7
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
{
|
|
2
|
+
"operationId": "attention-resolve-01",
|
|
3
|
+
"clientOrgId": "clone_aeef094b-616c-48fd-aefa-768eab85212c",
|
|
4
|
+
"conversationId": "01a05847-dde0-7000-8000-000000000001",
|
|
5
|
+
"workCycleId": "01a05847-dde0-7000-8000-000000000002",
|
|
6
|
+
"attentionCycleId": "01a05847-dde0-7000-8000-000000000003",
|
|
7
|
+
"expectedVersion": 3,
|
|
8
|
+
"reason": "Customer concern was reviewed and addressed."
|
|
9
|
+
}
|