samva 0.51.0 → 0.52.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/AGENTS.md +5 -2
- package/README.md +1 -0
- package/dist/client/sdk.gen.d.ts +67 -28
- package/dist/client/sdk.gen.js +157 -29
- package/dist/client/types.gen.d.ts +520 -281
- package/dist/effect/campaigns.d.ts +56 -56
- package/dist/effect/descriptors/integrations-catalog.d.ts +1 -1
- package/dist/effect/descriptors/integrations-catalog.js +1 -1
- package/dist/effect/descriptors/integrations.d.ts +1 -1
- package/dist/effect/descriptors/integrations.js +1 -1
- package/dist/effect/descriptors/logs.d.ts +21 -0
- package/dist/effect/descriptors/logs.js +23 -0
- package/dist/effect/descriptors/whats-app.d.ts +1 -1
- package/dist/effect/descriptors/whats-app.js +1 -1
- package/dist/effect/generated/agents.js +4 -4
- package/dist/effect/generated/campaigns.d.ts +18 -6
- package/dist/effect/generated/campaigns.js +2 -6
- package/dist/effect/generated/email.js +3 -3
- package/dist/effect/generated/index.d.ts +3 -1
- package/dist/effect/generated/integrations-catalog.d.ts +93 -49
- package/dist/effect/generated/integrations-catalog.js +17 -28
- package/dist/effect/generated/integrations.d.ts +20 -40
- package/dist/effect/generated/integrations.js +9 -13
- package/dist/effect/generated/journeys.d.ts +61 -13
- package/dist/effect/generated/journeys.js +5 -5
- package/dist/effect/generated/logs.d.ts +2311 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +30 -24
- package/dist/effect/generated/mailboxes.js +20 -20
- package/dist/effect/generated/messages.d.ts +1 -882
- package/dist/effect/generated/messages.js +4 -243
- package/dist/effect/generated/newsletter-domains.d.ts +61 -13
- package/dist/effect/generated/newsletter-domains.js +5 -5
- package/dist/effect/generated/newsletter-issues.d.ts +166 -34
- package/dist/effect/generated/newsletter-issues.js +12 -12
- package/dist/effect/generated/newsletters.d.ts +76 -16
- package/dist/effect/generated/newsletters.js +6 -6
- package/dist/effect/generated/organizations.js +1 -1
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1138 -257
- package/dist/effect/generated/shared.js +321 -82
- package/dist/effect/generated/subscriptions.d.ts +4 -4
- package/dist/effect/generated/subscriptions.js +2 -6
- package/dist/effect/generated/template-registrations.d.ts +46 -10
- package/dist/effect/generated/template-registrations.js +4 -4
- package/dist/effect/generated/templates.js +2 -2
- package/dist/effect/generated/whats-app-flows.d.ts +151 -31
- package/dist/effect/generated/whats-app-flows.js +11 -11
- package/dist/effect/generated/whats-app-setup-links.d.ts +61 -13
- package/dist/effect/generated/whats-app-setup-links.js +5 -5
- package/dist/effect/generated/whats-app.d.ts +187 -65
- package/dist/effect/generated/whats-app.js +18 -24
- package/dist/effect/generated-metadata.d.ts +15 -3
- package/dist/effect/generated-metadata.js +375 -349
- package/dist/effect/index.d.ts +1 -0
- package/dist/effect/index.js +2 -1
- package/dist/effect/integrations-catalog.d.ts +92 -4
- package/dist/effect/integrations.d.ts +40 -8
- package/dist/effect/internal/client.js +25 -3
- package/dist/effect/internal/log-events.d.ts +19 -0
- package/dist/effect/internal/log-events.js +53 -0
- package/dist/effect/internal/mailbox-events.d.ts +6 -2
- package/dist/effect/internal/mailbox-events.js +4 -3
- package/dist/effect/journeys.d.ts +148 -148
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +156 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/whatsapp-setup-links.d.ts +2 -2
- package/dist/effect/whatsapp.d.ts +73 -3
- package/dist/mailbox-events.d.ts +50 -3
- package/dist/mailbox-events.js +38 -19
- package/dist/package.js +1 -1
- package/dist/promises/client.d.ts +3 -1
- package/dist/promises/client.js +3 -1
- package/dist/promises/errors.gen.d.ts +2 -0
- package/dist/promises/errors.gen.js +137 -34
- package/dist/promises/types.gen.d.ts +1 -1
- package/dist/request-id.d.ts +3 -0
- package/dist/request-id.js +7 -0
- package/dist/service-map.d.ts +14 -3
- package/package.json +6 -2
|
@@ -734,6 +734,20 @@ export declare const list: ((input?: {
|
|
|
734
734
|
readonly name: string;
|
|
735
735
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
736
736
|
readonly content: {
|
|
737
|
+
readonly channel: "sms";
|
|
738
|
+
readonly sms: {
|
|
739
|
+
readonly text?: string | null;
|
|
740
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
741
|
+
readonly templateSlug?: string | null;
|
|
742
|
+
readonly templateData?: {
|
|
743
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
744
|
+
} | null;
|
|
745
|
+
};
|
|
746
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
747
|
+
readonly metadata?: {
|
|
748
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
749
|
+
} | null;
|
|
750
|
+
} | {
|
|
737
751
|
readonly channel: "email";
|
|
738
752
|
readonly email: {
|
|
739
753
|
readonly subject?: string | null;
|
|
@@ -783,20 +797,6 @@ export declare const list: ((input?: {
|
|
|
783
797
|
readonly metadata?: {
|
|
784
798
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
785
799
|
} | null;
|
|
786
|
-
} | {
|
|
787
|
-
readonly channel: "sms";
|
|
788
|
-
readonly sms: {
|
|
789
|
-
readonly text?: string | null;
|
|
790
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
791
|
-
readonly templateSlug?: string | null;
|
|
792
|
-
readonly templateData?: {
|
|
793
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
794
|
-
} | null;
|
|
795
|
-
};
|
|
796
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
797
|
-
readonly metadata?: {
|
|
798
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
799
|
-
} | null;
|
|
800
800
|
} | {
|
|
801
801
|
readonly channel: "whatsapp";
|
|
802
802
|
readonly whatsapp: {
|
|
@@ -860,6 +860,20 @@ export declare const list: ((input?: {
|
|
|
860
860
|
readonly name: string;
|
|
861
861
|
readonly channel: "email" | "sms" | "whatsapp";
|
|
862
862
|
readonly content: {
|
|
863
|
+
readonly channel: "sms";
|
|
864
|
+
readonly sms: {
|
|
865
|
+
readonly text?: string | null;
|
|
866
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
867
|
+
readonly templateSlug?: string | null;
|
|
868
|
+
readonly templateData?: {
|
|
869
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
870
|
+
} | null;
|
|
871
|
+
};
|
|
872
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
873
|
+
readonly metadata?: {
|
|
874
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
875
|
+
} | null;
|
|
876
|
+
} | {
|
|
863
877
|
readonly channel: "email";
|
|
864
878
|
readonly email: {
|
|
865
879
|
readonly subject?: string | null;
|
|
@@ -909,20 +923,6 @@ export declare const list: ((input?: {
|
|
|
909
923
|
readonly metadata?: {
|
|
910
924
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
911
925
|
} | null;
|
|
912
|
-
} | {
|
|
913
|
-
readonly channel: "sms";
|
|
914
|
-
readonly sms: {
|
|
915
|
-
readonly text?: string | null;
|
|
916
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
917
|
-
readonly templateSlug?: string | null;
|
|
918
|
-
readonly templateData?: {
|
|
919
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
920
|
-
} | null;
|
|
921
|
-
};
|
|
922
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
923
|
-
readonly metadata?: {
|
|
924
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
925
|
-
} | null;
|
|
926
926
|
} | {
|
|
927
927
|
readonly channel: "whatsapp";
|
|
928
928
|
readonly whatsapp: {
|
|
@@ -1250,6 +1250,20 @@ export declare const listRuns: ((input: {
|
|
|
1250
1250
|
readonly startedAt: string | null;
|
|
1251
1251
|
readonly completedAt: string | null;
|
|
1252
1252
|
readonly contentSnapshot: {
|
|
1253
|
+
readonly channel: "sms";
|
|
1254
|
+
readonly sms: {
|
|
1255
|
+
readonly text?: string | null;
|
|
1256
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1257
|
+
readonly templateSlug?: string | null;
|
|
1258
|
+
readonly templateData?: {
|
|
1259
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1260
|
+
} | null;
|
|
1261
|
+
};
|
|
1262
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1263
|
+
readonly metadata?: {
|
|
1264
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1265
|
+
} | null;
|
|
1266
|
+
} | {
|
|
1253
1267
|
readonly channel: "email";
|
|
1254
1268
|
readonly email: {
|
|
1255
1269
|
readonly subject?: string | null;
|
|
@@ -1299,20 +1313,6 @@ export declare const listRuns: ((input: {
|
|
|
1299
1313
|
readonly metadata?: {
|
|
1300
1314
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1301
1315
|
} | null;
|
|
1302
|
-
} | {
|
|
1303
|
-
readonly channel: "sms";
|
|
1304
|
-
readonly sms: {
|
|
1305
|
-
readonly text?: string | null;
|
|
1306
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1307
|
-
readonly templateSlug?: string | null;
|
|
1308
|
-
readonly templateData?: {
|
|
1309
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1310
|
-
} | null;
|
|
1311
|
-
};
|
|
1312
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1313
|
-
readonly metadata?: {
|
|
1314
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1315
|
-
} | null;
|
|
1316
1316
|
} | {
|
|
1317
1317
|
readonly channel: "whatsapp";
|
|
1318
1318
|
readonly whatsapp: {
|
|
@@ -1380,6 +1380,20 @@ export declare const listRuns: ((input: {
|
|
|
1380
1380
|
readonly startedAt: string | null;
|
|
1381
1381
|
readonly completedAt: string | null;
|
|
1382
1382
|
readonly contentSnapshot: {
|
|
1383
|
+
readonly channel: "sms";
|
|
1384
|
+
readonly sms: {
|
|
1385
|
+
readonly text?: string | null;
|
|
1386
|
+
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1387
|
+
readonly templateSlug?: string | null;
|
|
1388
|
+
readonly templateData?: {
|
|
1389
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1390
|
+
} | null;
|
|
1391
|
+
};
|
|
1392
|
+
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1393
|
+
readonly metadata?: {
|
|
1394
|
+
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1395
|
+
} | null;
|
|
1396
|
+
} | {
|
|
1383
1397
|
readonly channel: "email";
|
|
1384
1398
|
readonly email: {
|
|
1385
1399
|
readonly subject?: string | null;
|
|
@@ -1429,20 +1443,6 @@ export declare const listRuns: ((input: {
|
|
|
1429
1443
|
readonly metadata?: {
|
|
1430
1444
|
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1431
1445
|
} | null;
|
|
1432
|
-
} | {
|
|
1433
|
-
readonly channel: "sms";
|
|
1434
|
-
readonly sms: {
|
|
1435
|
-
readonly text?: string | null;
|
|
1436
|
-
readonly templateId?: (string & import("effect/Brand").Brand<"TemplateId">) | null;
|
|
1437
|
-
readonly templateSlug?: string | null;
|
|
1438
|
-
readonly templateData?: {
|
|
1439
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1440
|
-
} | null;
|
|
1441
|
-
};
|
|
1442
|
-
readonly conversationId?: (string & import("effect/Brand").Brand<"ConversationId">) | null;
|
|
1443
|
-
readonly metadata?: {
|
|
1444
|
-
readonly [x: string]: import("./generated/index.js").JsonValue;
|
|
1445
|
-
} | null;
|
|
1446
1446
|
} | {
|
|
1447
1447
|
readonly channel: "whatsapp";
|
|
1448
1448
|
readonly whatsapp: {
|
|
@@ -146,7 +146,7 @@ export declare const integrationCatalogOperations: {
|
|
|
146
146
|
readonly group: "Integrations catalog";
|
|
147
147
|
readonly method: "GET";
|
|
148
148
|
readonly idempotent: false;
|
|
149
|
-
readonly paginated:
|
|
149
|
+
readonly paginated: true;
|
|
150
150
|
readonly call: {
|
|
151
151
|
readonly kind: "params";
|
|
152
152
|
};
|
|
@@ -21,7 +21,7 @@ export declare const integrationsOperations: {
|
|
|
21
21
|
readonly group: "Integrations";
|
|
22
22
|
readonly method: "GET";
|
|
23
23
|
readonly idempotent: false;
|
|
24
|
-
readonly paginated:
|
|
24
|
+
readonly paginated: true;
|
|
25
25
|
readonly call: {
|
|
26
26
|
readonly kind: "pathParams";
|
|
27
27
|
readonly paths: readonly ["integrationId"];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const logsOperations: {
|
|
2
|
+
readonly logsList: {
|
|
3
|
+
readonly group: "Logs";
|
|
4
|
+
readonly method: "GET";
|
|
5
|
+
readonly idempotent: false;
|
|
6
|
+
readonly paginated: true;
|
|
7
|
+
readonly call: {
|
|
8
|
+
readonly kind: "params";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
readonly logsGet: {
|
|
12
|
+
readonly group: "Logs";
|
|
13
|
+
readonly method: "GET";
|
|
14
|
+
readonly idempotent: false;
|
|
15
|
+
readonly paginated: false;
|
|
16
|
+
readonly call: {
|
|
17
|
+
readonly kind: "path";
|
|
18
|
+
readonly paths: readonly ["id"];
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/effect/descriptors/logs.ts
|
|
2
|
+
const logsOperations = {
|
|
3
|
+
logsList: {
|
|
4
|
+
group: "Logs",
|
|
5
|
+
method: "GET",
|
|
6
|
+
idempotent: false,
|
|
7
|
+
paginated: true,
|
|
8
|
+
call: { kind: "params" }
|
|
9
|
+
},
|
|
10
|
+
logsGet: {
|
|
11
|
+
group: "Logs",
|
|
12
|
+
method: "GET",
|
|
13
|
+
idempotent: false,
|
|
14
|
+
paginated: false,
|
|
15
|
+
call: {
|
|
16
|
+
kind: "path",
|
|
17
|
+
paths: ["id"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
export { logsOperations };
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=logs.js.map
|
|
@@ -353,7 +353,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
353
353
|
AgentsCreate500,
|
|
354
354
|
AgentsCreate504.pipe(HttpApiSchema.status(504))
|
|
355
355
|
]
|
|
356
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.create").annotate(OpenApi.Summary, "Create an agent").annotate(OpenApi.Description, "Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. The namespace is set at creation and cannot change."), HttpApiEndpoint.get("agentsGet", "/v1/agents/:id", {
|
|
356
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.create").annotate(OpenApi.Summary, "Create an agent").annotate(OpenApi.Description, "Creates an agent with a draft and returns it with status 201. The agent answers nothing until its draft is published. The default policy requires a person to approve replies and final actions. API keys need organization-wide reach to create with a custom policy. The namespace is set at creation and cannot change."), HttpApiEndpoint.get("agentsGet", "/v1/agents/:id", {
|
|
357
357
|
params: AgentsGetPathParams,
|
|
358
358
|
success: AgentsGet200,
|
|
359
359
|
error: [
|
|
@@ -418,7 +418,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
418
418
|
AgentsReplaceDraft500,
|
|
419
419
|
AgentsReplaceDraft504.pipe(HttpApiSchema.status(504))
|
|
420
420
|
]
|
|
421
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.replaceDraft").annotate(OpenApi.Summary, "Replace an agent draft").annotate(OpenApi.Description, "Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level."), HttpApiEndpoint.post("agentsPublish", "/v1/agents/:id/publish", {
|
|
421
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.replaceDraft").annotate(OpenApi.Summary, "Replace an agent draft").annotate(OpenApi.Description, "Replaces the whole draft and returns the agent with a new revision. The request names the revision it read; a stale revision returns 409. API keys need organization-wide reach to change the draft policy. Published versions, and the conversations answered on them, do not change. An endpoint answers for one agent at a time: a draft that names an endpoint another agent answers on returns 409. A draft that pins a catalog model returns 402 unless your plan is Growth or Scale, and 422 when the model is not available or does not support the reasoning level."), HttpApiEndpoint.post("agentsPublish", "/v1/agents/:id/publish", {
|
|
422
422
|
params: AgentsPublishPathParams,
|
|
423
423
|
payload: AgentsPublishRequestJson,
|
|
424
424
|
success: AgentsPublish200,
|
|
@@ -433,7 +433,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
433
433
|
AgentsPublish500,
|
|
434
434
|
AgentsPublish504.pipe(HttpApiSchema.status(504))
|
|
435
435
|
]
|
|
436
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publish").annotate(OpenApi.Summary, "Publish an agent").annotate(OpenApi.Description, "Publishes the draft as the next immutable version. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action."), HttpApiEndpoint.post("agentsRerunTests", "/v1/agents/:id/tests/rerun", {
|
|
436
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publish").annotate(OpenApi.Summary, "Publish an agent").annotate(OpenApi.Description, "Publishes the draft as the next immutable version. API keys need organization-wide reach to publish a policy change. Each conversation moves to it from its next agent reply; a reply already running finishes on the version it started on. The request names the revision it read; a stale revision returns 409. Publishing a draft identical to the newest version changes nothing and answers published false. An endpoint answers for one agent at a time: publishing a draft whose endpoint another agent answers on returns 409. The published policy governs review of each proposed action."), HttpApiEndpoint.post("agentsRerunTests", "/v1/agents/:id/tests/rerun", {
|
|
437
437
|
params: AgentsRerunTestsPathParams,
|
|
438
438
|
payload: AgentsRerunTestsRequestJson,
|
|
439
439
|
success: AgentsRerunTests200,
|
|
@@ -474,7 +474,7 @@ var AgentsGroup = class extends HttpApiGroup.make("Agents").add(HttpApiEndpoint.
|
|
|
474
474
|
AgentsPublishVersion500,
|
|
475
475
|
AgentsPublishVersion504.pipe(HttpApiSchema.status(504))
|
|
476
476
|
]
|
|
477
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."), HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
|
|
477
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "agents.publishVersion").annotate(OpenApi.Summary, "Publish an agent module").annotate(OpenApi.Description, "Publishes a self-contained JavaScript module and its manifest as the next immutable version. API keys need organization-wide reach to publish a policy change. Source is stored by its SHA-256 digest without execution. The revision protects the draft read by the publisher; a stale revision returns 409. Publishing the same manifest, source, and definition again returns published false. The manifest controls the model, endpoints, integration grants, and action policy. Draft instructions and knowledge remain editable builder data; the hosted runtime reads instructions and tools from the published module."), HttpApiEndpoint.get("agentsGetVersion", "/v1/agents/:id/versions/:version", {
|
|
478
478
|
params: AgentsGetVersionPathParams,
|
|
479
479
|
success: AgentsGetVersion200,
|
|
480
480
|
error: [
|
|
@@ -2901,8 +2901,8 @@ export type CampaignsPreview400 = MalformedRequestError;
|
|
|
2901
2901
|
export declare const CampaignsPreview400: typeof MalformedRequestError;
|
|
2902
2902
|
export type CampaignsPreview401 = UnauthorizedError;
|
|
2903
2903
|
export declare const CampaignsPreview401: typeof UnauthorizedError;
|
|
2904
|
-
export type CampaignsPreview403 =
|
|
2905
|
-
export declare const CampaignsPreview403:
|
|
2904
|
+
export type CampaignsPreview403 = ForbiddenError;
|
|
2905
|
+
export declare const CampaignsPreview403: typeof ForbiddenError;
|
|
2906
2906
|
export type CampaignsPreview404 = ResourceNotFoundError;
|
|
2907
2907
|
export declare const CampaignsPreview404: typeof ResourceNotFoundError;
|
|
2908
2908
|
export type CampaignsPreview409 = ConflictError;
|
|
@@ -3009,8 +3009,8 @@ export type CampaignsSendTest401 = UnauthorizedError;
|
|
|
3009
3009
|
export declare const CampaignsSendTest401: typeof UnauthorizedError;
|
|
3010
3010
|
export type CampaignsSendTest402 = PaymentRequiredError;
|
|
3011
3011
|
export declare const CampaignsSendTest402: typeof PaymentRequiredError;
|
|
3012
|
-
export type CampaignsSendTest403 = ForbiddenError | OnboardingReviewRequiredError
|
|
3013
|
-
export declare const CampaignsSendTest403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError
|
|
3012
|
+
export type CampaignsSendTest403 = ForbiddenError | OnboardingReviewRequiredError;
|
|
3013
|
+
export declare const CampaignsSendTest403: Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]>;
|
|
3014
3014
|
export type CampaignsSendTest404 = ResourceNotFoundError;
|
|
3015
3015
|
export declare const CampaignsSendTest404: typeof ResourceNotFoundError;
|
|
3016
3016
|
export type CampaignsSendTest409 = ConflictError;
|
|
@@ -5196,7 +5196,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5196
5196
|
readonly preheader: Schema.optionalKey<Schema.String>;
|
|
5197
5197
|
readonly html: Schema.String;
|
|
5198
5198
|
readonly text: Schema.String;
|
|
5199
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
5199
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
5200
5200
|
readonly _tag: "ConflictError";
|
|
5201
5201
|
readonly message: string;
|
|
5202
5202
|
readonly resource: string;
|
|
@@ -5216,6 +5216,18 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5216
5216
|
readonly message: Schema.String;
|
|
5217
5217
|
readonly resource: Schema.String;
|
|
5218
5218
|
readonly id: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Null]>>;
|
|
5219
|
+
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<ForbiddenError, {
|
|
5220
|
+
readonly _tag: "ForbiddenError";
|
|
5221
|
+
readonly message: string;
|
|
5222
|
+
}, readonly [Schema.Struct<{
|
|
5223
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5224
|
+
readonly message: Schema.String;
|
|
5225
|
+
}>], {
|
|
5226
|
+
readonly _tag: "ForbiddenError";
|
|
5227
|
+
readonly message: string;
|
|
5228
|
+
}>, Schema.Struct<{
|
|
5229
|
+
readonly _tag: Schema.tag<"ForbiddenError">;
|
|
5230
|
+
readonly message: Schema.String;
|
|
5219
5231
|
}>, never, never> | Schema.decodeTo<Schema.declareConstructor<GatewayTimeoutError, {
|
|
5220
5232
|
readonly _tag: "GatewayTimeoutError";
|
|
5221
5233
|
readonly message: string;
|
|
@@ -5860,7 +5872,7 @@ declare const CampaignsGroup_base: HttpApiGroup.HttpApiGroup<"Campaigns", HttpAp
|
|
|
5860
5872
|
readonly contactId: Schema.optionalKey<Schema.Union<readonly [Schema.brand<Schema.String, "ContactId">, Schema.Null]>>;
|
|
5861
5873
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
5862
5874
|
readonly id: Schema.brand<Schema.String, "MessageId">;
|
|
5863
|
-
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof
|
|
5875
|
+
}>>, Schema.toCodecJson<Schema.Union<readonly [typeof ForbiddenError, typeof OnboardingReviewRequiredError]> | Schema.Union<readonly [typeof BillingProviderError, typeof ExternalServiceError]> | Schema.Union<readonly [typeof ServiceUnavailableError, typeof SenderNotReadyError, typeof DeliveryUnavailableError]> | Schema.Union<readonly [typeof TemplateSourceError, typeof ValidationError, typeof FromAddressRequiredError, typeof BrandAddressRequiredError, typeof CampaignFooterRequiredError]> | Schema.decodeTo<Schema.declareConstructor<ConflictError, {
|
|
5864
5876
|
readonly _tag: "ConflictError";
|
|
5865
5877
|
readonly message: string;
|
|
5866
5878
|
readonly resource: string;
|
|
@@ -460,7 +460,7 @@ const CampaignsPreviewRequestJson = /* @__PURE__ */ (() => Schema.Struct({
|
|
|
460
460
|
const CampaignsPreview200 = CampaignPreview;
|
|
461
461
|
const CampaignsPreview400 = MalformedRequestError;
|
|
462
462
|
const CampaignsPreview401 = UnauthorizedError;
|
|
463
|
-
const CampaignsPreview403 =
|
|
463
|
+
const CampaignsPreview403 = ForbiddenError;
|
|
464
464
|
const CampaignsPreview404 = ResourceNotFoundError;
|
|
465
465
|
const CampaignsPreview409 = ConflictError;
|
|
466
466
|
const CampaignsPreview422 = /* @__PURE__ */ (() => Schema.Union([TemplateSourceError, ValidationError]))();
|
|
@@ -476,11 +476,7 @@ const CampaignsSendTest200 = CampaignTestSend;
|
|
|
476
476
|
const CampaignsSendTest400 = MalformedRequestError;
|
|
477
477
|
const CampaignsSendTest401 = UnauthorizedError;
|
|
478
478
|
const CampaignsSendTest402 = PaymentRequiredError;
|
|
479
|
-
const CampaignsSendTest403 = /* @__PURE__ */ (() => Schema.Union([
|
|
480
|
-
ForbiddenError,
|
|
481
|
-
OnboardingReviewRequiredError,
|
|
482
|
-
FlagDisabledError
|
|
483
|
-
]))();
|
|
479
|
+
const CampaignsSendTest403 = /* @__PURE__ */ (() => Schema.Union([ForbiddenError, OnboardingReviewRequiredError]))();
|
|
484
480
|
const CampaignsSendTest404 = ResourceNotFoundError;
|
|
485
481
|
const CampaignsSendTest409 = ConflictError;
|
|
486
482
|
const CampaignsSendTest422 = /* @__PURE__ */ (() => Schema.Union([
|
|
@@ -2325,7 +2325,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
2325
2325
|
EmailGetOnboardingReview500,
|
|
2326
2326
|
EmailGetOnboardingReview504.pipe(HttpApiSchema.status(504))
|
|
2327
2327
|
]
|
|
2328
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getOnboardingReview").annotate(OpenApi.Summary, "Get email
|
|
2328
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.getOnboardingReview").annotate(OpenApi.Summary, "Get email review status").annotate(OpenApi.Description, "Returns whether the organization's email can send and where Samva's review of it stands: the decision, stage, stable block reason, next action, and current sending-identity clearances. Samva reviews some new organizations before their first email; while it does, `canSend` is false and `nextAction` is `wait_for_review`. Mailbox sends wait as `queued` with wait reason `onboarding-review` and go out once the review approves the organization; other sends are refused with `OnboardingReviewRequiredError`."), HttpApiEndpoint.post("emailReapplyOnboardingReview", "/v1/email/onboarding-review/reapply", {
|
|
2329
2329
|
payload: EmailReapplyOnboardingReviewRequestJson,
|
|
2330
2330
|
success: EmailReapplyOnboardingReview200,
|
|
2331
2331
|
error: [
|
|
@@ -2337,7 +2337,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
2337
2337
|
EmailReapplyOnboardingReview500,
|
|
2338
2338
|
EmailReapplyOnboardingReview504.pipe(HttpApiSchema.status(504))
|
|
2339
2339
|
]
|
|
2340
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.reapplyOnboardingReview").annotate(OpenApi.Summary, "Reapply for email
|
|
2340
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.reapplyOnboardingReview").annotate(OpenApi.Summary, "Reapply for email review").annotate(OpenApi.Description, "Allows an organization owner or admin to submit a rejected organization for review again. The expected generation prevents acting on stale status."), HttpApiEndpoint.post("emailRespondToOnboardingInformationRequest", "/v1/email/onboarding-review/respond", {
|
|
2341
2341
|
payload: EmailRespondToOnboardingInformationRequestRequestJson,
|
|
2342
2342
|
success: EmailRespondToOnboardingInformationRequest200,
|
|
2343
2343
|
error: [
|
|
@@ -2349,7 +2349,7 @@ var EmailGroup = class extends HttpApiGroup.make("Email").add(HttpApiEndpoint.ge
|
|
|
2349
2349
|
EmailRespondToOnboardingInformationRequest500,
|
|
2350
2350
|
EmailRespondToOnboardingInformationRequest504.pipe(HttpApiSchema.status(504))
|
|
2351
2351
|
]
|
|
2352
|
-
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.respondToOnboardingInformationRequest").annotate(OpenApi.Summary, "Respond to an email
|
|
2352
|
+
}).middleware(ApiKeySecurityMiddleware).annotate(OpenApi.Identifier, "email.respondToOnboardingInformationRequest").annotate(OpenApi.Summary, "Respond to an email review information request").annotate(OpenApi.Description, "Allows organization owners and admins to submit a text response and up to three evidence uploads for the current information request."), HttpApiEndpoint.get("emailListSenders", "/v1/email/senders", {
|
|
2353
2353
|
query: EmailListSendersQuery,
|
|
2354
2354
|
success: EmailListSenders200,
|
|
2355
2355
|
error: [
|
|
@@ -18,6 +18,7 @@ import { FeedbackGroup } from "./feedback.js";
|
|
|
18
18
|
import { IntegrationsGroup } from "./integrations.js";
|
|
19
19
|
import { IntegrationsCatalogGroup } from "./integrations-catalog.js";
|
|
20
20
|
import { JourneysGroup } from "./journeys.js";
|
|
21
|
+
import { LogsGroup } from "./logs.js";
|
|
21
22
|
import { MailboxesGroup } from "./mailboxes.js";
|
|
22
23
|
import { MediaGroup } from "./media.js";
|
|
23
24
|
import { MessagesGroup } from "./messages.js";
|
|
@@ -60,6 +61,7 @@ export * from "./feedback.js";
|
|
|
60
61
|
export * from "./integrations.js";
|
|
61
62
|
export * from "./integrations-catalog.js";
|
|
62
63
|
export * from "./journeys.js";
|
|
64
|
+
export * from "./logs.js";
|
|
63
65
|
export * from "./mailboxes.js";
|
|
64
66
|
export * from "./media.js";
|
|
65
67
|
export * from "./messages.js";
|
|
@@ -82,6 +84,6 @@ export * from "./whats-app.js";
|
|
|
82
84
|
export * from "./whats-app-flows.js";
|
|
83
85
|
export * from "./whats-app-setup-links.js";
|
|
84
86
|
export * from "./whoami.js";
|
|
85
|
-
declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
|
|
87
|
+
declare const SamvaApi_base: HttpApi.HttpApi<"SamvaApi", typeof AccountsGroup | typeof AgentsGroup | typeof AnalyticsGroup | typeof APIKeysGroup | typeof ApprovalRequestsGroup | typeof AttachmentsGroup | typeof BrandsGroup | typeof CampaignsGroup | typeof ContactEventsGroup | typeof ContactGroupsGroup | typeof ContactsGroup | typeof ConversationsGroup | typeof CustomFieldsGroup | typeof EmailGroup | typeof EventsGroup | typeof FeedbackGroup | typeof IntegrationsGroup | typeof IntegrationsCatalogGroup | typeof JourneysGroup | typeof LogsGroup | typeof MailboxesGroup | typeof MediaGroup | typeof MessagesGroup | typeof NamespacesGroup | typeof NewsletterDomainsGroup | typeof NewsletterIssuesGroup | typeof NewslettersGroup | typeof OperationsGroup | typeof OrganizationsGroup | typeof PoliciesGroup | typeof ScheduledMessagesGroup | typeof SubscriptionsGroup | typeof TemplateRegistrationsGroup | typeof TemplateShareLinksGroup | typeof TemplatesGroup | typeof TopicFormsGroup | typeof TopicsGroup | typeof WebhooksGroup | typeof WhatsAppGroup | typeof WhatsAppFlowsGroup | typeof WhatsAppSetupLinksGroup | typeof WhoamiGroup>;
|
|
86
88
|
export declare class SamvaApi extends SamvaApi_base {
|
|
87
89
|
}
|