@native-marketing/sdk 0.3.3 → 0.3.5
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.js +869 -680
- package/package.json +1 -1
- package/release.json +3 -3
- package/types/contracts/agent/business-document.d.ts +2 -0
- package/types/contracts/agent/compact-surface.d.ts +4 -0
- package/types/contracts/agent/document-page.d.ts +3 -0
- package/types/contracts/asset.d.ts +55 -0
- package/types/contracts/event-delivery.d.ts +22 -0
- package/types/contracts/event-exchange-browser.d.ts +26 -0
- package/types/contracts/event-exchange.d.ts +50 -0
- package/types/contracts/event-inbox.d.ts +136 -0
- package/types/contracts/event-outbox-browser.d.ts +10 -0
- package/types/contracts/event-readiness.d.ts +72 -0
- package/types/contracts/generated/eventsdk-exchange-registration.d.ts +109 -0
- package/types/contracts/generated/eventsdk-outbox-recovery.d.ts +37 -0
- package/types/contracts/index.d.ts +4 -1
- package/types/contracts/knowledge-discovery.d.ts +30 -0
- package/types/contracts/knowledge-material-delivery.d.ts +512 -2
- package/types/contracts/marketing-domain-events.d.ts +4 -4
- package/types/http/generated/schema.d.ts +2209 -995
- package/types/sdk/compact.d.ts +2 -2
- package/types/sdk/document-page.d.ts +3 -3
package/package.json
CHANGED
package/release.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"sourceCommit": "
|
|
2
|
+
"sourceCommit": "667f36fbe201292e233c4be3cc8ba84483867fd9",
|
|
3
3
|
"workingTreeDirty": false,
|
|
4
|
-
"version": "0.3.
|
|
5
|
-
"openapiTypesSha256": "
|
|
4
|
+
"version": "0.3.5",
|
|
5
|
+
"openapiTypesSha256": "4cf54da717c27d1df685ee4756f78c5094e90fe72c3d3047e7b901b7e8b6c1b8",
|
|
6
6
|
"localBuild": true
|
|
7
7
|
}
|
|
@@ -44,6 +44,7 @@ export declare const businessDocumentToolSchema: z.ZodEnum<{
|
|
|
44
44
|
cf_get_project_media: "cf_get_project_media";
|
|
45
45
|
cf_get_publication: "cf_get_publication";
|
|
46
46
|
cf_get_publication_feedback: "cf_get_publication_feedback";
|
|
47
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
47
48
|
cf_get_review_basis: "cf_get_review_basis";
|
|
48
49
|
cf_get_review_context: "cf_get_review_context";
|
|
49
50
|
cf_get_review_results: "cf_get_review_results";
|
|
@@ -127,6 +128,7 @@ export declare const businessDocumentInputSchema: z.ZodObject<{
|
|
|
127
128
|
cf_get_project_media: "cf_get_project_media";
|
|
128
129
|
cf_get_publication: "cf_get_publication";
|
|
129
130
|
cf_get_publication_feedback: "cf_get_publication_feedback";
|
|
131
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
130
132
|
cf_get_review_basis: "cf_get_review_basis";
|
|
131
133
|
cf_get_review_context: "cf_get_review_context";
|
|
132
134
|
cf_get_review_results: "cf_get_review_results";
|
|
@@ -84,6 +84,7 @@ export declare const agentSummarySourceSchema: z.ZodEnum<{
|
|
|
84
84
|
cf_get_preparation_basis: "cf_get_preparation_basis";
|
|
85
85
|
cf_get_project_access: "cf_get_project_access";
|
|
86
86
|
cf_get_publication: "cf_get_publication";
|
|
87
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
87
88
|
cf_get_review_context: "cf_get_review_context";
|
|
88
89
|
cf_get_saved_material_preparation: "cf_get_saved_material_preparation";
|
|
89
90
|
cf_get_strategy_learning_context: "cf_get_strategy_learning_context";
|
|
@@ -119,6 +120,7 @@ export declare const agentSummaryInputSchema: z.ZodObject<{
|
|
|
119
120
|
cf_get_preparation_basis: "cf_get_preparation_basis";
|
|
120
121
|
cf_get_project_access: "cf_get_project_access";
|
|
121
122
|
cf_get_publication: "cf_get_publication";
|
|
123
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
122
124
|
cf_get_review_context: "cf_get_review_context";
|
|
123
125
|
cf_get_saved_material_preparation: "cf_get_saved_material_preparation";
|
|
124
126
|
cf_get_strategy_learning_context: "cf_get_strategy_learning_context";
|
|
@@ -184,6 +186,7 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
184
186
|
cf_get_preparation_basis: "cf_get_preparation_basis";
|
|
185
187
|
cf_get_project_access: "cf_get_project_access";
|
|
186
188
|
cf_get_publication: "cf_get_publication";
|
|
189
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
187
190
|
cf_get_review_context: "cf_get_review_context";
|
|
188
191
|
cf_get_saved_material_preparation: "cf_get_saved_material_preparation";
|
|
189
192
|
cf_get_strategy_learning_context: "cf_get_strategy_learning_context";
|
|
@@ -247,6 +250,7 @@ export declare const agentSummarySchema: z.ZodObject<{
|
|
|
247
250
|
cf_get_project_media: "cf_get_project_media";
|
|
248
251
|
cf_get_publication: "cf_get_publication";
|
|
249
252
|
cf_get_publication_feedback: "cf_get_publication_feedback";
|
|
253
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
250
254
|
cf_get_review_basis: "cf_get_review_basis";
|
|
251
255
|
cf_get_review_context: "cf_get_review_context";
|
|
252
256
|
cf_get_review_results: "cf_get_review_results";
|
|
@@ -46,6 +46,7 @@ export declare const businessDocumentPageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
46
46
|
cf_get_project_media: "cf_get_project_media";
|
|
47
47
|
cf_get_publication: "cf_get_publication";
|
|
48
48
|
cf_get_publication_feedback: "cf_get_publication_feedback";
|
|
49
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
49
50
|
cf_get_review_basis: "cf_get_review_basis";
|
|
50
51
|
cf_get_review_context: "cf_get_review_context";
|
|
51
52
|
cf_get_review_results: "cf_get_review_results";
|
|
@@ -150,6 +151,7 @@ export declare const businessDocumentPageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
150
151
|
cf_get_project_media: "cf_get_project_media";
|
|
151
152
|
cf_get_publication: "cf_get_publication";
|
|
152
153
|
cf_get_publication_feedback: "cf_get_publication_feedback";
|
|
154
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
153
155
|
cf_get_review_basis: "cf_get_review_basis";
|
|
154
156
|
cf_get_review_context: "cf_get_review_context";
|
|
155
157
|
cf_get_review_results: "cf_get_review_results";
|
|
@@ -258,6 +260,7 @@ export declare const businessDocumentPageSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
258
260
|
cf_get_project_media: "cf_get_project_media";
|
|
259
261
|
cf_get_publication: "cf_get_publication";
|
|
260
262
|
cf_get_publication_feedback: "cf_get_publication_feedback";
|
|
263
|
+
cf_get_review_asset: "cf_get_review_asset";
|
|
261
264
|
cf_get_review_basis: "cf_get_review_basis";
|
|
262
265
|
cf_get_review_context: "cf_get_review_context";
|
|
263
266
|
cf_get_review_results: "cf_get_review_results";
|
|
@@ -130,3 +130,58 @@ export type ContentAsset = z.infer<typeof contentAssetSchema>;
|
|
|
130
130
|
export type ContentAssetType = z.infer<typeof contentAssetTypeSchema>;
|
|
131
131
|
export type CreateContentAssetInput = z.infer<typeof createContentAssetInputSchema>;
|
|
132
132
|
export type ReviewContentAssetInput = z.infer<typeof reviewContentAssetInputSchema>;
|
|
133
|
+
export declare const reviewAssetReadSchema: z.ZodObject<{
|
|
134
|
+
ref: z.ZodTemplateLiteral<`cf://asset/${string}`>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export declare const reviewAssetReadViewSchema: z.ZodObject<{
|
|
137
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
138
|
+
projectCode: z.ZodString;
|
|
139
|
+
resourceKind: z.ZodLiteral<"ASSET">;
|
|
140
|
+
resourceRef: z.ZodString;
|
|
141
|
+
record: z.ZodObject<{
|
|
142
|
+
id: z.ZodString;
|
|
143
|
+
ref: z.ZodString;
|
|
144
|
+
projectId: z.ZodString;
|
|
145
|
+
kernelRef: z.ZodString;
|
|
146
|
+
expansionJobRef: z.ZodNullable<z.ZodString>;
|
|
147
|
+
assetType: z.ZodEnum<{
|
|
148
|
+
AGENT_TALKING_POINTS: "AGENT_TALKING_POINTS";
|
|
149
|
+
ARTICLE: "ARTICLE";
|
|
150
|
+
FACEBOOK_POST: "FACEBOOK_POST";
|
|
151
|
+
HOOK_SET: "HOOK_SET";
|
|
152
|
+
LINKEDIN_LONG: "LINKEDIN_LONG";
|
|
153
|
+
LINKEDIN_SHORT: "LINKEDIN_SHORT";
|
|
154
|
+
SALES_BRIEF: "SALES_BRIEF";
|
|
155
|
+
SHOT_LIST: "SHOT_LIST";
|
|
156
|
+
TALKING_POINTS: "TALKING_POINTS";
|
|
157
|
+
TEXT_POST: "TEXT_POST";
|
|
158
|
+
TEXT_THREAD: "TEXT_THREAD";
|
|
159
|
+
THREADS_POST: "THREADS_POST";
|
|
160
|
+
VIDEO_120S_SCRIPT: "VIDEO_120S_SCRIPT";
|
|
161
|
+
VIDEO_30S_SCRIPT: "VIDEO_30S_SCRIPT";
|
|
162
|
+
VIDEO_60S_SCRIPT: "VIDEO_60S_SCRIPT";
|
|
163
|
+
WEBSITE_BRIEF: "WEBSITE_BRIEF";
|
|
164
|
+
WECHAT_COPY: "WECHAT_COPY";
|
|
165
|
+
X_POST: "X_POST";
|
|
166
|
+
}>;
|
|
167
|
+
editorialProfile: z.ZodString;
|
|
168
|
+
platformProfile: z.ZodString;
|
|
169
|
+
language: z.ZodString;
|
|
170
|
+
content: z.ZodString;
|
|
171
|
+
contentHash: z.ZodString;
|
|
172
|
+
usedClaims: z.ZodArray<z.ZodString>;
|
|
173
|
+
kernelGuardrailHash: z.ZodString;
|
|
174
|
+
status: z.ZodEnum<{
|
|
175
|
+
APPROVED: "APPROVED";
|
|
176
|
+
DRAFT: "DRAFT";
|
|
177
|
+
READY_FOR_REVIEW: "READY_FOR_REVIEW";
|
|
178
|
+
REJECTED: "REJECTED";
|
|
179
|
+
SUPERSEDED: "SUPERSEDED";
|
|
180
|
+
}>;
|
|
181
|
+
createdAt: z.ZodString;
|
|
182
|
+
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
183
|
+
reviewNote: z.ZodNullable<z.ZodString>;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
recordSha256: z.ZodString;
|
|
186
|
+
currentStateOnly: z.ZodLiteral<true>;
|
|
187
|
+
}, z.core.$strict>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const EVENTSDK_WORKER_OBSERVATION_MAX_AGE_MS = 90000;
|
|
2
3
|
export declare const eventWorkerObservationSchema: z.ZodObject<{
|
|
3
4
|
schemaVersion: z.ZodLiteral<1>;
|
|
4
5
|
status: z.ZodEnum<{
|
|
@@ -75,6 +76,27 @@ export declare const eventDeliveryPageSchema: z.ZodObject<{
|
|
|
75
76
|
revision: z.ZodOptional<z.ZodString>;
|
|
76
77
|
stale: z.ZodBoolean;
|
|
77
78
|
}, z.core.$strict>>;
|
|
79
|
+
runtimeConfiguration: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
81
|
+
status: z.ZodEnum<{
|
|
82
|
+
NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
83
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
84
|
+
VALID: "VALID";
|
|
85
|
+
}>;
|
|
86
|
+
mode: z.ZodNullable<z.ZodEnum<{
|
|
87
|
+
ACTIVE: "ACTIVE";
|
|
88
|
+
DISABLED: "DISABLED";
|
|
89
|
+
SHADOW: "SHADOW";
|
|
90
|
+
}>>;
|
|
91
|
+
publisherConfigured: z.ZodBoolean;
|
|
92
|
+
consumerConfigured: z.ZodBoolean;
|
|
93
|
+
workerConfiguration: z.ZodEnum<{
|
|
94
|
+
DIFFERENT: "DIFFERENT";
|
|
95
|
+
MATCHED: "MATCHED";
|
|
96
|
+
NOT_OBSERVED: "NOT_OBSERVED";
|
|
97
|
+
}>;
|
|
98
|
+
checkedAt: z.ZodString;
|
|
99
|
+
}, z.core.$strict>>;
|
|
78
100
|
backlog: z.ZodOptional<z.ZodObject<{
|
|
79
101
|
schemaVersion: z.ZodLiteral<1>;
|
|
80
102
|
observedAt: z.ZodString;
|
|
@@ -37,3 +37,29 @@ export declare const eventExchangeBrowserCommandSchema: z.ZodObject<{
|
|
|
37
37
|
}>;
|
|
38
38
|
}, z.core.$strict>;
|
|
39
39
|
export type EventExchangeBrowserCommand = z.infer<typeof eventExchangeBrowserCommandSchema>;
|
|
40
|
+
export declare const eventExchangeSubmissionSchema: z.ZodPipe<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodObject<{
|
|
41
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
42
|
+
requestId: z.ZodString;
|
|
43
|
+
expectedRevision: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
source: z.ZodObject<{
|
|
45
|
+
source: z.ZodString;
|
|
46
|
+
serviceRef: z.ZodString;
|
|
47
|
+
tenantRef: z.ZodString;
|
|
48
|
+
issuer: z.ZodString;
|
|
49
|
+
subject: z.ZodString;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
target: z.ZodObject<{
|
|
52
|
+
serviceRef: z.ZodString;
|
|
53
|
+
tenantRef: z.ZodString;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
grant: z.ZodObject<{
|
|
56
|
+
grantRef: z.ZodString;
|
|
57
|
+
version: z.ZodNumber;
|
|
58
|
+
eventType: z.ZodString;
|
|
59
|
+
consumerRef: z.ZodString;
|
|
60
|
+
}, z.core.$strict>;
|
|
61
|
+
status: z.ZodEnum<{
|
|
62
|
+
ACTIVE: "ACTIVE";
|
|
63
|
+
REVOKED: "REVOKED";
|
|
64
|
+
}>;
|
|
65
|
+
}, z.core.$strict>>;
|
|
@@ -61,6 +61,27 @@ export declare const eventExchangePageSchema: z.ZodObject<{
|
|
|
61
61
|
serviceRef: z.ZodString;
|
|
62
62
|
tenantRef: z.ZodString;
|
|
63
63
|
}, z.core.$strict>>;
|
|
64
|
+
runtimeConfiguration: z.ZodOptional<z.ZodObject<{
|
|
65
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
66
|
+
status: z.ZodEnum<{
|
|
67
|
+
NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
68
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
69
|
+
VALID: "VALID";
|
|
70
|
+
}>;
|
|
71
|
+
mode: z.ZodNullable<z.ZodEnum<{
|
|
72
|
+
ACTIVE: "ACTIVE";
|
|
73
|
+
DISABLED: "DISABLED";
|
|
74
|
+
SHADOW: "SHADOW";
|
|
75
|
+
}>>;
|
|
76
|
+
publisherConfigured: z.ZodBoolean;
|
|
77
|
+
consumerConfigured: z.ZodBoolean;
|
|
78
|
+
workerConfiguration: z.ZodEnum<{
|
|
79
|
+
DIFFERENT: "DIFFERENT";
|
|
80
|
+
MATCHED: "MATCHED";
|
|
81
|
+
NOT_OBSERVED: "NOT_OBSERVED";
|
|
82
|
+
}>;
|
|
83
|
+
checkedAt: z.ZodString;
|
|
84
|
+
}, z.core.$strict>>;
|
|
64
85
|
items: z.ZodArray<z.ZodObject<{
|
|
65
86
|
connectionRef: z.ZodString;
|
|
66
87
|
revision: z.ZodNumber;
|
|
@@ -84,6 +105,35 @@ export declare const eventExchangePageSchema: z.ZodObject<{
|
|
|
84
105
|
tenantRef: z.ZodString;
|
|
85
106
|
}, z.core.$strict>>;
|
|
86
107
|
grantsTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
readiness: z.ZodOptional<z.ZodObject<{
|
|
109
|
+
state: z.ZodEnum<{
|
|
110
|
+
BLOCKED: "BLOCKED";
|
|
111
|
+
CONFIGURED: "CONFIGURED";
|
|
112
|
+
PARTIAL: "PARTIAL";
|
|
113
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
114
|
+
}>;
|
|
115
|
+
issues: z.ZodArray<z.ZodEnum<{
|
|
116
|
+
AUDIENCE_NOT_CONFIGURED: "AUDIENCE_NOT_CONFIGURED";
|
|
117
|
+
BINDING_UNAVAILABLE: "BINDING_UNAVAILABLE";
|
|
118
|
+
CONSUMER_NOT_CONFIGURED: "CONSUMER_NOT_CONFIGURED";
|
|
119
|
+
CONSUMER_REF_MISMATCH: "CONSUMER_REF_MISMATCH";
|
|
120
|
+
GRANTS_TRUNCATED: "GRANTS_TRUNCATED";
|
|
121
|
+
INSTALLATION_SOURCE_MISMATCH: "INSTALLATION_SOURCE_MISMATCH";
|
|
122
|
+
LOCAL_AUTHORIZATION_INACTIVE: "LOCAL_AUTHORIZATION_INACTIVE";
|
|
123
|
+
OWN_PUBLIC_IDENTITY_UNAVAILABLE: "OWN_PUBLIC_IDENTITY_UNAVAILABLE";
|
|
124
|
+
PROFILE_NOT_ACTIVE: "PROFILE_NOT_ACTIVE";
|
|
125
|
+
PROFILE_NOT_CONFIGURED: "PROFILE_NOT_CONFIGURED";
|
|
126
|
+
PROFILE_UNAVAILABLE: "PROFILE_UNAVAILABLE";
|
|
127
|
+
PUBLISHER_NOT_CONFIGURED: "PUBLISHER_NOT_CONFIGURED";
|
|
128
|
+
SIGNER_IDENTITY_MISMATCH: "SIGNER_IDENTITY_MISMATCH";
|
|
129
|
+
SIGNER_NOT_CONFIGURED: "SIGNER_NOT_CONFIGURED";
|
|
130
|
+
SOURCE_NOT_TRUSTED: "SOURCE_NOT_TRUSTED";
|
|
131
|
+
SOURCE_TRUST_UNAVAILABLE: "SOURCE_TRUST_UNAVAILABLE";
|
|
132
|
+
}>>;
|
|
133
|
+
blockedEventTypes: z.ZodArray<z.ZodString>;
|
|
134
|
+
peerConsent: z.ZodLiteral<"NOT_OBSERVED">;
|
|
135
|
+
checkedAt: z.ZodString;
|
|
136
|
+
}, z.core.$strict>>;
|
|
87
137
|
grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
138
|
eventType: z.ZodString;
|
|
89
139
|
grantRef: z.ZodString;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventInboxDispositionSchema: z.ZodEnum<{
|
|
3
|
+
APPLIED: "APPLIED";
|
|
4
|
+
HOLD: "HOLD";
|
|
5
|
+
RECEIVED: "RECEIVED";
|
|
6
|
+
REJECTED: "REJECTED";
|
|
7
|
+
UNKNOWN: "UNKNOWN";
|
|
8
|
+
}>;
|
|
9
|
+
export declare const eventInboxPageQuerySchema: z.ZodObject<{
|
|
10
|
+
after: z.ZodDefault<z.ZodString>;
|
|
11
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
12
|
+
disposition: z.ZodOptional<z.ZodEnum<{
|
|
13
|
+
APPLIED: "APPLIED";
|
|
14
|
+
HOLD: "HOLD";
|
|
15
|
+
RECEIVED: "RECEIVED";
|
|
16
|
+
REJECTED: "REJECTED";
|
|
17
|
+
UNKNOWN: "UNKNOWN";
|
|
18
|
+
}>>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export declare const eventInboxReceiptQuerySchema: z.ZodObject<{
|
|
21
|
+
consumerRef: z.ZodString;
|
|
22
|
+
source: z.ZodString;
|
|
23
|
+
id: z.ZodString;
|
|
24
|
+
deliveryid: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strict>;
|
|
26
|
+
export declare const eventInboxEntrySchema: z.ZodObject<{
|
|
27
|
+
consumerRef: z.ZodString;
|
|
28
|
+
source: z.ZodString;
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
eventType: z.ZodString;
|
|
31
|
+
connectionRef: z.ZodString;
|
|
32
|
+
disposition: z.ZodEnum<{
|
|
33
|
+
APPLIED: "APPLIED";
|
|
34
|
+
HOLD: "HOLD";
|
|
35
|
+
RECEIVED: "RECEIVED";
|
|
36
|
+
REJECTED: "REJECTED";
|
|
37
|
+
UNKNOWN: "UNKNOWN";
|
|
38
|
+
}>;
|
|
39
|
+
receiptRef: z.ZodString;
|
|
40
|
+
receiptRevision: z.ZodNumber;
|
|
41
|
+
receiptRecordedAt: z.ZodString;
|
|
42
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
43
|
+
lastAttemptReason: z.ZodNullable<z.ZodString>;
|
|
44
|
+
receivedAt: z.ZodNullable<z.ZodString>;
|
|
45
|
+
attempt: z.ZodNumber;
|
|
46
|
+
nextAttemptAt: z.ZodNumber;
|
|
47
|
+
deliveryCount: z.ZodNumber;
|
|
48
|
+
baseline: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
baselineRef: z.ZodString;
|
|
50
|
+
watermark: z.ZodString;
|
|
51
|
+
sourceRevision: z.ZodString;
|
|
52
|
+
}, z.core.$strict>>;
|
|
53
|
+
appliedEffect: z.ZodEnum<{
|
|
54
|
+
NOT_CONFIRMED: "NOT_CONFIRMED";
|
|
55
|
+
REFRESH_NOTICE_RECORDED: "REFRESH_NOTICE_RECORDED";
|
|
56
|
+
}>;
|
|
57
|
+
}, z.core.$strict>;
|
|
58
|
+
export declare const eventInboxPageSchema: z.ZodObject<{
|
|
59
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
60
|
+
items: z.ZodArray<z.ZodObject<{
|
|
61
|
+
consumerRef: z.ZodString;
|
|
62
|
+
source: z.ZodString;
|
|
63
|
+
id: z.ZodString;
|
|
64
|
+
eventType: z.ZodString;
|
|
65
|
+
connectionRef: z.ZodString;
|
|
66
|
+
disposition: z.ZodEnum<{
|
|
67
|
+
APPLIED: "APPLIED";
|
|
68
|
+
HOLD: "HOLD";
|
|
69
|
+
RECEIVED: "RECEIVED";
|
|
70
|
+
REJECTED: "REJECTED";
|
|
71
|
+
UNKNOWN: "UNKNOWN";
|
|
72
|
+
}>;
|
|
73
|
+
receiptRef: z.ZodString;
|
|
74
|
+
receiptRevision: z.ZodNumber;
|
|
75
|
+
receiptRecordedAt: z.ZodString;
|
|
76
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
77
|
+
lastAttemptReason: z.ZodNullable<z.ZodString>;
|
|
78
|
+
receivedAt: z.ZodNullable<z.ZodString>;
|
|
79
|
+
attempt: z.ZodNumber;
|
|
80
|
+
nextAttemptAt: z.ZodNumber;
|
|
81
|
+
deliveryCount: z.ZodNumber;
|
|
82
|
+
baseline: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
baselineRef: z.ZodString;
|
|
84
|
+
watermark: z.ZodString;
|
|
85
|
+
sourceRevision: z.ZodString;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
appliedEffect: z.ZodEnum<{
|
|
88
|
+
NOT_CONFIRMED: "NOT_CONFIRMED";
|
|
89
|
+
REFRESH_NOTICE_RECORDED: "REFRESH_NOTICE_RECORDED";
|
|
90
|
+
}>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
nextAfter: z.ZodNullable<z.ZodString>;
|
|
93
|
+
sourceGapState: z.ZodLiteral<"NOT_OBSERVED">;
|
|
94
|
+
checkedAt: z.ZodString;
|
|
95
|
+
}, z.core.$strict>;
|
|
96
|
+
export declare const eventInboxReceiptSchema: z.ZodObject<{
|
|
97
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
98
|
+
state: z.ZodEnum<{
|
|
99
|
+
FOUND: "FOUND";
|
|
100
|
+
NOT_FOUND: "NOT_FOUND";
|
|
101
|
+
}>;
|
|
102
|
+
item: z.ZodNullable<z.ZodObject<{
|
|
103
|
+
consumerRef: z.ZodString;
|
|
104
|
+
source: z.ZodString;
|
|
105
|
+
id: z.ZodString;
|
|
106
|
+
eventType: z.ZodString;
|
|
107
|
+
connectionRef: z.ZodString;
|
|
108
|
+
disposition: z.ZodEnum<{
|
|
109
|
+
APPLIED: "APPLIED";
|
|
110
|
+
HOLD: "HOLD";
|
|
111
|
+
RECEIVED: "RECEIVED";
|
|
112
|
+
REJECTED: "REJECTED";
|
|
113
|
+
UNKNOWN: "UNKNOWN";
|
|
114
|
+
}>;
|
|
115
|
+
receiptRef: z.ZodString;
|
|
116
|
+
receiptRevision: z.ZodNumber;
|
|
117
|
+
receiptRecordedAt: z.ZodString;
|
|
118
|
+
reasonCode: z.ZodNullable<z.ZodString>;
|
|
119
|
+
lastAttemptReason: z.ZodNullable<z.ZodString>;
|
|
120
|
+
receivedAt: z.ZodNullable<z.ZodString>;
|
|
121
|
+
attempt: z.ZodNumber;
|
|
122
|
+
nextAttemptAt: z.ZodNumber;
|
|
123
|
+
deliveryCount: z.ZodNumber;
|
|
124
|
+
baseline: z.ZodNullable<z.ZodObject<{
|
|
125
|
+
baselineRef: z.ZodString;
|
|
126
|
+
watermark: z.ZodString;
|
|
127
|
+
sourceRevision: z.ZodString;
|
|
128
|
+
}, z.core.$strict>>;
|
|
129
|
+
appliedEffect: z.ZodEnum<{
|
|
130
|
+
NOT_CONFIRMED: "NOT_CONFIRMED";
|
|
131
|
+
REFRESH_NOTICE_RECORDED: "REFRESH_NOTICE_RECORDED";
|
|
132
|
+
}>;
|
|
133
|
+
}, z.core.$strict>>;
|
|
134
|
+
checkedAt: z.ZodString;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
export type EventInboxEntry = z.infer<typeof eventInboxEntrySchema>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventOutboxBrowserCommandSchema: z.ZodPipe<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>, z.ZodObject<{
|
|
3
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
4
|
+
requestId: z.ZodString;
|
|
5
|
+
source: z.ZodString;
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
deliveryid: z.ZodString;
|
|
8
|
+
expectedGeneration: z.ZodNumber;
|
|
9
|
+
}, z.core.$strict>>;
|
|
10
|
+
export type EventOutboxBrowserCommand = z.infer<typeof eventOutboxBrowserCommandSchema>;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const eventReadinessIssueSchema: z.ZodEnum<{
|
|
3
|
+
AUDIENCE_NOT_CONFIGURED: "AUDIENCE_NOT_CONFIGURED";
|
|
4
|
+
BINDING_UNAVAILABLE: "BINDING_UNAVAILABLE";
|
|
5
|
+
CONSUMER_NOT_CONFIGURED: "CONSUMER_NOT_CONFIGURED";
|
|
6
|
+
CONSUMER_REF_MISMATCH: "CONSUMER_REF_MISMATCH";
|
|
7
|
+
GRANTS_TRUNCATED: "GRANTS_TRUNCATED";
|
|
8
|
+
INSTALLATION_SOURCE_MISMATCH: "INSTALLATION_SOURCE_MISMATCH";
|
|
9
|
+
LOCAL_AUTHORIZATION_INACTIVE: "LOCAL_AUTHORIZATION_INACTIVE";
|
|
10
|
+
OWN_PUBLIC_IDENTITY_UNAVAILABLE: "OWN_PUBLIC_IDENTITY_UNAVAILABLE";
|
|
11
|
+
PROFILE_NOT_ACTIVE: "PROFILE_NOT_ACTIVE";
|
|
12
|
+
PROFILE_NOT_CONFIGURED: "PROFILE_NOT_CONFIGURED";
|
|
13
|
+
PROFILE_UNAVAILABLE: "PROFILE_UNAVAILABLE";
|
|
14
|
+
PUBLISHER_NOT_CONFIGURED: "PUBLISHER_NOT_CONFIGURED";
|
|
15
|
+
SIGNER_IDENTITY_MISMATCH: "SIGNER_IDENTITY_MISMATCH";
|
|
16
|
+
SIGNER_NOT_CONFIGURED: "SIGNER_NOT_CONFIGURED";
|
|
17
|
+
SOURCE_NOT_TRUSTED: "SOURCE_NOT_TRUSTED";
|
|
18
|
+
SOURCE_TRUST_UNAVAILABLE: "SOURCE_TRUST_UNAVAILABLE";
|
|
19
|
+
}>;
|
|
20
|
+
export declare const eventRuntimeConfigurationSchema: z.ZodObject<{
|
|
21
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
NOT_CONFIGURED: "NOT_CONFIGURED";
|
|
24
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
25
|
+
VALID: "VALID";
|
|
26
|
+
}>;
|
|
27
|
+
mode: z.ZodNullable<z.ZodEnum<{
|
|
28
|
+
ACTIVE: "ACTIVE";
|
|
29
|
+
DISABLED: "DISABLED";
|
|
30
|
+
SHADOW: "SHADOW";
|
|
31
|
+
}>>;
|
|
32
|
+
publisherConfigured: z.ZodBoolean;
|
|
33
|
+
consumerConfigured: z.ZodBoolean;
|
|
34
|
+
workerConfiguration: z.ZodEnum<{
|
|
35
|
+
DIFFERENT: "DIFFERENT";
|
|
36
|
+
MATCHED: "MATCHED";
|
|
37
|
+
NOT_OBSERVED: "NOT_OBSERVED";
|
|
38
|
+
}>;
|
|
39
|
+
checkedAt: z.ZodString;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export declare const eventConnectionReadinessSchema: z.ZodObject<{
|
|
42
|
+
state: z.ZodEnum<{
|
|
43
|
+
BLOCKED: "BLOCKED";
|
|
44
|
+
CONFIGURED: "CONFIGURED";
|
|
45
|
+
PARTIAL: "PARTIAL";
|
|
46
|
+
UNAVAILABLE: "UNAVAILABLE";
|
|
47
|
+
}>;
|
|
48
|
+
issues: z.ZodArray<z.ZodEnum<{
|
|
49
|
+
AUDIENCE_NOT_CONFIGURED: "AUDIENCE_NOT_CONFIGURED";
|
|
50
|
+
BINDING_UNAVAILABLE: "BINDING_UNAVAILABLE";
|
|
51
|
+
CONSUMER_NOT_CONFIGURED: "CONSUMER_NOT_CONFIGURED";
|
|
52
|
+
CONSUMER_REF_MISMATCH: "CONSUMER_REF_MISMATCH";
|
|
53
|
+
GRANTS_TRUNCATED: "GRANTS_TRUNCATED";
|
|
54
|
+
INSTALLATION_SOURCE_MISMATCH: "INSTALLATION_SOURCE_MISMATCH";
|
|
55
|
+
LOCAL_AUTHORIZATION_INACTIVE: "LOCAL_AUTHORIZATION_INACTIVE";
|
|
56
|
+
OWN_PUBLIC_IDENTITY_UNAVAILABLE: "OWN_PUBLIC_IDENTITY_UNAVAILABLE";
|
|
57
|
+
PROFILE_NOT_ACTIVE: "PROFILE_NOT_ACTIVE";
|
|
58
|
+
PROFILE_NOT_CONFIGURED: "PROFILE_NOT_CONFIGURED";
|
|
59
|
+
PROFILE_UNAVAILABLE: "PROFILE_UNAVAILABLE";
|
|
60
|
+
PUBLISHER_NOT_CONFIGURED: "PUBLISHER_NOT_CONFIGURED";
|
|
61
|
+
SIGNER_IDENTITY_MISMATCH: "SIGNER_IDENTITY_MISMATCH";
|
|
62
|
+
SIGNER_NOT_CONFIGURED: "SIGNER_NOT_CONFIGURED";
|
|
63
|
+
SOURCE_NOT_TRUSTED: "SOURCE_NOT_TRUSTED";
|
|
64
|
+
SOURCE_TRUST_UNAVAILABLE: "SOURCE_TRUST_UNAVAILABLE";
|
|
65
|
+
}>>;
|
|
66
|
+
blockedEventTypes: z.ZodArray<z.ZodString>;
|
|
67
|
+
peerConsent: z.ZodLiteral<"NOT_OBSERVED">;
|
|
68
|
+
checkedAt: z.ZodString;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export type EventReadinessIssue = z.infer<typeof eventReadinessIssueSchema>;
|
|
71
|
+
export type EventRuntimeConfiguration = z.infer<typeof eventRuntimeConfigurationSchema>;
|
|
72
|
+
export type EventConnectionReadiness = z.infer<typeof eventConnectionReadinessSchema>;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare const eventSdkExchangeRegistrationJsonSchema: {
|
|
2
|
+
readonly title: 'ExchangeRegistration';
|
|
3
|
+
readonly type: 'object';
|
|
4
|
+
readonly additionalProperties: false;
|
|
5
|
+
readonly required: readonly ['schemaVersion', 'requestId', 'expectedRevision', 'source', 'target', 'grant', 'status'];
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly schemaVersion: {
|
|
8
|
+
readonly const: 1;
|
|
9
|
+
};
|
|
10
|
+
readonly requestId: {
|
|
11
|
+
readonly type: 'string';
|
|
12
|
+
readonly minLength: 1;
|
|
13
|
+
readonly maxLength: 256;
|
|
14
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
15
|
+
};
|
|
16
|
+
readonly expectedRevision: {
|
|
17
|
+
readonly type: readonly ['integer', 'null'];
|
|
18
|
+
readonly minimum: 1;
|
|
19
|
+
readonly maximum: 2147483647;
|
|
20
|
+
};
|
|
21
|
+
readonly source: {
|
|
22
|
+
readonly type: 'object';
|
|
23
|
+
readonly additionalProperties: false;
|
|
24
|
+
readonly required: readonly ['source', 'serviceRef', 'tenantRef', 'issuer', 'subject'];
|
|
25
|
+
readonly properties: {
|
|
26
|
+
readonly source: {
|
|
27
|
+
readonly type: 'string';
|
|
28
|
+
readonly format: 'uri';
|
|
29
|
+
readonly maxLength: 2048;
|
|
30
|
+
};
|
|
31
|
+
readonly serviceRef: {
|
|
32
|
+
readonly type: 'string';
|
|
33
|
+
readonly minLength: 1;
|
|
34
|
+
readonly maxLength: 256;
|
|
35
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
36
|
+
};
|
|
37
|
+
readonly tenantRef: {
|
|
38
|
+
readonly type: 'string';
|
|
39
|
+
readonly minLength: 1;
|
|
40
|
+
readonly maxLength: 256;
|
|
41
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
42
|
+
};
|
|
43
|
+
readonly issuer: {
|
|
44
|
+
readonly type: 'string';
|
|
45
|
+
readonly format: 'uri';
|
|
46
|
+
readonly maxLength: 2048;
|
|
47
|
+
};
|
|
48
|
+
readonly subject: {
|
|
49
|
+
readonly type: 'string';
|
|
50
|
+
readonly minLength: 1;
|
|
51
|
+
readonly maxLength: 256;
|
|
52
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly target: {
|
|
57
|
+
readonly title: 'TenantContext';
|
|
58
|
+
readonly type: 'object';
|
|
59
|
+
readonly additionalProperties: false;
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly serviceRef: {
|
|
62
|
+
readonly type: 'string';
|
|
63
|
+
readonly minLength: 1;
|
|
64
|
+
readonly maxLength: 256;
|
|
65
|
+
readonly pattern: '^[^\\u0000-\\u001f\\u007f]+$';
|
|
66
|
+
};
|
|
67
|
+
readonly tenantRef: {
|
|
68
|
+
readonly type: 'string';
|
|
69
|
+
readonly minLength: 1;
|
|
70
|
+
readonly maxLength: 256;
|
|
71
|
+
readonly pattern: '^[^\\u0000-\\u001f\\u007f]+$';
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly required: readonly ['serviceRef', 'tenantRef'];
|
|
75
|
+
};
|
|
76
|
+
readonly grant: {
|
|
77
|
+
readonly type: 'object';
|
|
78
|
+
readonly additionalProperties: false;
|
|
79
|
+
readonly required: readonly ['grantRef', 'version', 'eventType', 'consumerRef'];
|
|
80
|
+
readonly properties: {
|
|
81
|
+
readonly grantRef: {
|
|
82
|
+
readonly type: 'string';
|
|
83
|
+
readonly minLength: 1;
|
|
84
|
+
readonly maxLength: 256;
|
|
85
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
86
|
+
};
|
|
87
|
+
readonly version: {
|
|
88
|
+
readonly type: 'integer';
|
|
89
|
+
readonly minimum: 1;
|
|
90
|
+
readonly maximum: 2147483647;
|
|
91
|
+
};
|
|
92
|
+
readonly eventType: {
|
|
93
|
+
readonly type: 'string';
|
|
94
|
+
readonly pattern: '^[A-Za-z0-9][A-Za-z0-9._-]*\\.v[1-9][0-9]*$';
|
|
95
|
+
readonly maxLength: 256;
|
|
96
|
+
};
|
|
97
|
+
readonly consumerRef: {
|
|
98
|
+
readonly type: 'string';
|
|
99
|
+
readonly minLength: 1;
|
|
100
|
+
readonly maxLength: 256;
|
|
101
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
readonly status: {
|
|
106
|
+
readonly enum: readonly ['ACTIVE', 'REVOKED'];
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare const eventSdkOutboxRecoveryJsonSchema: {
|
|
2
|
+
readonly title: 'OutboxRecoveryCommand';
|
|
3
|
+
readonly type: 'object';
|
|
4
|
+
readonly additionalProperties: false;
|
|
5
|
+
readonly required: readonly ['schemaVersion', 'requestId', 'source', 'id', 'deliveryid', 'expectedGeneration'];
|
|
6
|
+
readonly properties: {
|
|
7
|
+
readonly schemaVersion: {
|
|
8
|
+
readonly const: 1;
|
|
9
|
+
};
|
|
10
|
+
readonly requestId: {
|
|
11
|
+
readonly type: 'string';
|
|
12
|
+
readonly minLength: 1;
|
|
13
|
+
readonly maxLength: 256;
|
|
14
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
15
|
+
};
|
|
16
|
+
readonly source: {
|
|
17
|
+
readonly type: 'string';
|
|
18
|
+
readonly format: 'uri';
|
|
19
|
+
readonly maxLength: 2048;
|
|
20
|
+
};
|
|
21
|
+
readonly id: {
|
|
22
|
+
readonly type: 'string';
|
|
23
|
+
readonly minLength: 1;
|
|
24
|
+
readonly maxLength: 256;
|
|
25
|
+
readonly pattern: '^[^\\u0000-\\u0020\\u007f]+$';
|
|
26
|
+
};
|
|
27
|
+
readonly deliveryid: {
|
|
28
|
+
readonly type: 'string';
|
|
29
|
+
readonly pattern: '^[a-f0-9]{64}$';
|
|
30
|
+
};
|
|
31
|
+
readonly expectedGeneration: {
|
|
32
|
+
readonly type: 'integer';
|
|
33
|
+
readonly minimum: 0;
|
|
34
|
+
readonly maximum: 2147483647;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -109,7 +109,10 @@ export * from './feedback-facts.js';
|
|
|
109
109
|
export * from './knowledge-discovery.js';
|
|
110
110
|
export * from './event-exchange.js';
|
|
111
111
|
export * from './event-exchange-browser.js';
|
|
112
|
-
export { eventDeliveryPageQuerySchema, eventDeliveryPageSchema, eventDeliveryRecoveryResultSchema, eventDeliveryRecoveryReceiptSchema, } from './event-delivery.js';
|
|
112
|
+
export { EVENTSDK_WORKER_OBSERVATION_MAX_AGE_MS, eventDeliveryPageQuerySchema, eventDeliveryPageSchema, eventDeliveryRecoveryResultSchema, eventDeliveryRecoveryReceiptSchema, } from './event-delivery.js';
|
|
113
113
|
export { knowledgeReferenceAdoptedDataSchema } from './native-event-data.js';
|
|
114
114
|
export * from './marketing-domain-events.js';
|
|
115
115
|
export * from './event-backlog.js';
|
|
116
|
+
export * from './event-readiness.js';
|
|
117
|
+
export * from './event-inbox.js';
|
|
118
|
+
export * from './event-outbox-browser.js';
|