samva 0.51.0 → 0.53.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 +82 -36
- package/dist/client/sdk.gen.js +192 -57
- package/dist/client/types.gen.d.ts +607 -291
- 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/events.d.ts +16 -0
- 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/events.d.ts +48 -0
- package/dist/effect/generated/events.js +1 -1
- 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 +1113 -67
- package/dist/effect/generated/journeys.js +14 -8
- package/dist/effect/generated/logs.d.ts +2323 -0
- package/dist/effect/generated/logs.js +312 -0
- package/dist/effect/generated/mailboxes.d.ts +38 -24
- package/dist/effect/generated/mailboxes.js +22 -21
- package/dist/effect/generated/messages.d.ts +11 -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.d.ts +36 -0
- package/dist/effect/generated/scheduled-messages.js +1 -1
- package/dist/effect/generated/shared.d.ts +1706 -442
- package/dist/effect/generated/shared.js +370 -93
- 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 +173 -35
- package/dist/effect/generated/whats-app-flows.js +19 -17
- 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 +212 -146
- package/dist/effect/logs.d.ts +149 -0
- package/dist/effect/logs.js +18 -0
- package/dist/effect/mailboxes.d.ts +158 -150
- package/dist/effect/mailboxes.js +1 -1
- package/dist/effect/newsletter-domains.d.ts +2 -2
- package/dist/effect/scheduled-messages.d.ts +66 -0
- package/dist/effect/whatsapp-flows.d.ts +30 -0
- 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
package/dist/client/sdk.gen.js
CHANGED
|
@@ -192,7 +192,7 @@ var Messages = class {
|
|
|
192
192
|
/**
|
|
193
193
|
* Send a message
|
|
194
194
|
*
|
|
195
|
-
* An email send whose namespace has no sending setup returns ValidationError: share the sender domain with namespaces, or use a sender owned by that namespace. Sending setup that has stopped after failure returns ValidationError; restart or reconcile the domain's sending setup. Setup still in progress returns ConflictError. Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Email and WhatsApp sends are available.
|
|
195
|
+
* An email send whose namespace has no sending setup returns ValidationError: share the sender domain with namespaces, or use a sender owned by that namespace. Sending setup that has stopped after failure returns ValidationError; restart or reconcile the domain's sending setup. Setup still in progress returns ConflictError. Sends a message on the requested channel and returns its receipt (id, status, and why it waits when it does) with a 201 Created status. Requires `messages:create` or the send permission of the channel it sends on, such as `email:send`. `channel` selects the payload variant. Email and WhatsApp sends are available. Once a send succeeds, repeating the request with the same `Idempotency-Key` and body returns the original receipt. While it is still in progress, a 409 includes a `Retry-After` header. Reusing the key for different content returns a 409 without a retry hint.
|
|
196
196
|
*/
|
|
197
197
|
static send(parameters, options) {
|
|
198
198
|
const params = { body: parameters };
|
|
@@ -465,6 +465,124 @@ var Messages = class {
|
|
|
465
465
|
}));
|
|
466
466
|
}
|
|
467
467
|
};
|
|
468
|
+
var Logs = class {
|
|
469
|
+
/**
|
|
470
|
+
* List message log events
|
|
471
|
+
*
|
|
472
|
+
* Lists the organization's message events in its plan's log window. The default sort is by event timestamp. Use orderBy=recorded and order=asc to poll events in ingestion order, including events with older timestamps. Pass the last event's cursor as after. Keep the same sort and direction when paging.
|
|
473
|
+
*/
|
|
474
|
+
static list(parameters, options) {
|
|
475
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
476
|
+
{
|
|
477
|
+
in: "query",
|
|
478
|
+
key: "limit"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
in: "query",
|
|
482
|
+
key: "cursor"
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
in: "query",
|
|
486
|
+
key: "after"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
in: "query",
|
|
490
|
+
key: "orderBy"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
in: "query",
|
|
494
|
+
key: "order"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
in: "query",
|
|
498
|
+
key: "since"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
in: "query",
|
|
502
|
+
key: "until"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
in: "query",
|
|
506
|
+
key: "status"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
in: "query",
|
|
510
|
+
key: "event"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
in: "query",
|
|
514
|
+
key: "channel"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
in: "query",
|
|
518
|
+
key: "direction"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
in: "query",
|
|
522
|
+
key: "origin"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
in: "query",
|
|
526
|
+
key: "credential"
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
in: "query",
|
|
530
|
+
key: "from"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
in: "query",
|
|
534
|
+
key: "messageId"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
in: "query",
|
|
538
|
+
key: "mailboxId"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
in: "query",
|
|
542
|
+
key: "requestId"
|
|
543
|
+
}
|
|
544
|
+
] }]);
|
|
545
|
+
return requestWithPolicy(options?.client ?? client, "logsList", options, (headers, signal) => (options?.client ?? client).get({
|
|
546
|
+
security: [{
|
|
547
|
+
name: "x-api-key",
|
|
548
|
+
type: "apiKey"
|
|
549
|
+
}],
|
|
550
|
+
url: "/v1/logs",
|
|
551
|
+
...options,
|
|
552
|
+
...params,
|
|
553
|
+
headers: {
|
|
554
|
+
...headers,
|
|
555
|
+
...params.headers
|
|
556
|
+
},
|
|
557
|
+
signal
|
|
558
|
+
}));
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* Get message log detail
|
|
562
|
+
*
|
|
563
|
+
* Returns the message and its event timeline, or a rejected submission, by message, rejection, or request ID.
|
|
564
|
+
*/
|
|
565
|
+
static get(parameters, options) {
|
|
566
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
567
|
+
in: "path",
|
|
568
|
+
key: "id"
|
|
569
|
+
}] }]);
|
|
570
|
+
return requestWithPolicy(options?.client ?? client, "logsGet", options, (headers, signal) => (options?.client ?? client).get({
|
|
571
|
+
security: [{
|
|
572
|
+
name: "x-api-key",
|
|
573
|
+
type: "apiKey"
|
|
574
|
+
}],
|
|
575
|
+
url: "/v1/logs/{id}",
|
|
576
|
+
...options,
|
|
577
|
+
...params,
|
|
578
|
+
headers: {
|
|
579
|
+
...headers,
|
|
580
|
+
...params.headers
|
|
581
|
+
},
|
|
582
|
+
signal
|
|
583
|
+
}));
|
|
584
|
+
}
|
|
585
|
+
};
|
|
468
586
|
var Operations = class {
|
|
469
587
|
/**
|
|
470
588
|
* List asynchronous operations
|
|
@@ -694,7 +812,7 @@ var ScheduledMessages = class {
|
|
|
694
812
|
/**
|
|
695
813
|
* Resume a review-paused scheduled message
|
|
696
814
|
*
|
|
697
|
-
* Explicitly resumes a scheduled message
|
|
815
|
+
* Explicitly resumes a scheduled message once Samva's email review approves the organization. An overdue message requires either send_now or a new future scheduledFor value.
|
|
698
816
|
*/
|
|
699
817
|
static resume(parameters, options) {
|
|
700
818
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -1226,9 +1344,9 @@ var Campaigns = class {
|
|
|
1226
1344
|
};
|
|
1227
1345
|
var Email = class {
|
|
1228
1346
|
/**
|
|
1229
|
-
* Get email
|
|
1347
|
+
* Get email review status
|
|
1230
1348
|
*
|
|
1231
|
-
* Returns the
|
|
1349
|
+
* 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`.
|
|
1232
1350
|
*/
|
|
1233
1351
|
static getOnboardingReview(options) {
|
|
1234
1352
|
return requestWithPolicy(options?.client ?? client, "emailGetOnboardingReview", options, (headers, signal) => (options?.client ?? client).get({
|
|
@@ -1243,7 +1361,7 @@ var Email = class {
|
|
|
1243
1361
|
}));
|
|
1244
1362
|
}
|
|
1245
1363
|
/**
|
|
1246
|
-
* Reapply for email
|
|
1364
|
+
* Reapply for email review
|
|
1247
1365
|
*
|
|
1248
1366
|
* Allows an organization owner or admin to submit a rejected organization for review again. The expected generation prevents acting on stale status.
|
|
1249
1367
|
*/
|
|
@@ -1270,7 +1388,7 @@ var Email = class {
|
|
|
1270
1388
|
}));
|
|
1271
1389
|
}
|
|
1272
1390
|
/**
|
|
1273
|
-
* Respond to an email
|
|
1391
|
+
* Respond to an email review information request
|
|
1274
1392
|
*
|
|
1275
1393
|
* Allows organization owners and admins to submit a text response and up to three evidence uploads for the current information request.
|
|
1276
1394
|
*/
|
|
@@ -4996,7 +5114,7 @@ var Events = class {
|
|
|
4996
5114
|
/**
|
|
4997
5115
|
* Record a contact event
|
|
4998
5116
|
*
|
|
4999
|
-
* Records a custom contact event. Identify the contact by exactly one ID, external ID, or
|
|
5117
|
+
* Records a custom contact event. Identify the contact by exactly one ID, external ID, email, or E.164 phone number. An unmatched external ID, email, or phone number creates a contact; an unknown contact ID returns 404. An idempotency key replays the original event in the credential’s scope. Event names use letters, digits, underscores, hyphens, and dots, up to 255 characters; contact. and samva. prefixes are reserved. Properties allow at most 50 keys and 32 KiB of UTF-8 JSON. Events are retained for 90 days.
|
|
5000
5118
|
*/
|
|
5001
5119
|
static create(parameters, options) {
|
|
5002
5120
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -5103,10 +5221,14 @@ var Journeys = class {
|
|
|
5103
5221
|
/**
|
|
5104
5222
|
* List journeys
|
|
5105
5223
|
*
|
|
5106
|
-
* Returns the
|
|
5224
|
+
* Returns the journeys the caller can access, newest first. Filter by namespaceId or status. Pass nextCursor back as cursor for the next page.
|
|
5107
5225
|
*/
|
|
5108
5226
|
static list(parameters, options) {
|
|
5109
5227
|
const params = buildClientParams([parameters], [{ args: [
|
|
5228
|
+
{
|
|
5229
|
+
in: "query",
|
|
5230
|
+
key: "namespaceId"
|
|
5231
|
+
},
|
|
5110
5232
|
{
|
|
5111
5233
|
in: "query",
|
|
5112
5234
|
key: "status"
|
|
@@ -5138,16 +5260,23 @@ var Journeys = class {
|
|
|
5138
5260
|
/**
|
|
5139
5261
|
* Create a journey
|
|
5140
5262
|
*
|
|
5141
|
-
* Creates a draft journey from a definition: a trigger, a root node, and a graph of at most 200 nodes that is acyclic and fully reachable.
|
|
5263
|
+
* Creates a draft journey from a definition: a trigger, a root node, and a graph of at most 200 nodes that is acyclic and fully reachable. A namespace key creates in its own namespace. An organization key can pass namespaceId to place the journey in a namespace. The journey can use resources available in its scope. Requires a plan that includes journeys.
|
|
5142
5264
|
*/
|
|
5143
5265
|
static create(parameters, options) {
|
|
5144
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5266
|
+
const params = buildClientParams([parameters], [{ args: [
|
|
5267
|
+
{
|
|
5268
|
+
in: "body",
|
|
5269
|
+
key: "name"
|
|
5270
|
+
},
|
|
5271
|
+
{
|
|
5272
|
+
in: "body",
|
|
5273
|
+
key: "namespaceId"
|
|
5274
|
+
},
|
|
5275
|
+
{
|
|
5276
|
+
in: "body",
|
|
5277
|
+
key: "definition"
|
|
5278
|
+
}
|
|
5279
|
+
] }]);
|
|
5151
5280
|
return requestWithPolicy(options?.client ?? client, "journeysCreate", options, (headers, signal) => (options?.client ?? client).post({
|
|
5152
5281
|
security: [{
|
|
5153
5282
|
name: "x-api-key",
|
|
@@ -5591,7 +5720,7 @@ var Agents = class {
|
|
|
5591
5720
|
/**
|
|
5592
5721
|
* Create an agent
|
|
5593
5722
|
*
|
|
5594
|
-
* 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.
|
|
5723
|
+
* 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.
|
|
5595
5724
|
*/
|
|
5596
5725
|
static create(parameters, options) {
|
|
5597
5726
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -5736,7 +5865,7 @@ var Agents = class {
|
|
|
5736
5865
|
/**
|
|
5737
5866
|
* Replace an agent draft
|
|
5738
5867
|
*
|
|
5739
|
-
* 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.
|
|
5868
|
+
* 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.
|
|
5740
5869
|
*/
|
|
5741
5870
|
static replaceDraft(parameters, options) {
|
|
5742
5871
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -5773,7 +5902,7 @@ var Agents = class {
|
|
|
5773
5902
|
/**
|
|
5774
5903
|
* Publish an agent
|
|
5775
5904
|
*
|
|
5776
|
-
* 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.
|
|
5905
|
+
* 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.
|
|
5777
5906
|
*/
|
|
5778
5907
|
static publish(parameters, options) {
|
|
5779
5908
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -5838,7 +5967,7 @@ var Agents = class {
|
|
|
5838
5967
|
/**
|
|
5839
5968
|
* Publish an agent module
|
|
5840
5969
|
*
|
|
5841
|
-
* 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.
|
|
5970
|
+
* 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.
|
|
5842
5971
|
*/
|
|
5843
5972
|
static publishVersion(parameters, options) {
|
|
5844
5973
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -6490,7 +6619,7 @@ var IntegrationCatalog = class {
|
|
|
6490
6619
|
/**
|
|
6491
6620
|
* Read Shopify post-delivery check-in readiness
|
|
6492
6621
|
*
|
|
6493
|
-
* Checks selected resources and
|
|
6622
|
+
* Checks selected resources and plan access. A namespace caller sees its reachable resources. Shopify account and plan fields are null, and full recipe readiness requires organization-wide access. Omit the email sender or WhatsApp account to see the sender or number selected for the publication and caller scope. Requires email:read and domains:read for email, or whatsappAccounts:read for WhatsApp.
|
|
6494
6623
|
*/
|
|
6495
6624
|
static recipeReadiness(parameters, options) {
|
|
6496
6625
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -6571,7 +6700,7 @@ var IntegrationCatalog = class {
|
|
|
6571
6700
|
/**
|
|
6572
6701
|
* Search the integrations catalog
|
|
6573
6702
|
*
|
|
6574
|
-
* Searches the providers this organization can connect, by key, text or category. Each entry carries its connection requirements and whether it can connect.
|
|
6703
|
+
* Searches the providers this organization can connect, by key, text or category. Each entry carries its connection requirements and whether it can connect. Pass nextCursor back as cursor until it is null.
|
|
6575
6704
|
*/
|
|
6576
6705
|
static search(parameters, options) {
|
|
6577
6706
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -6589,11 +6718,11 @@ var IntegrationCatalog = class {
|
|
|
6589
6718
|
},
|
|
6590
6719
|
{
|
|
6591
6720
|
in: "query",
|
|
6592
|
-
key: "
|
|
6721
|
+
key: "limit"
|
|
6593
6722
|
},
|
|
6594
6723
|
{
|
|
6595
6724
|
in: "query",
|
|
6596
|
-
key: "
|
|
6725
|
+
key: "cursor"
|
|
6597
6726
|
}
|
|
6598
6727
|
] }]);
|
|
6599
6728
|
return requestWithPolicy(options?.client ?? client, "integrationCatalogSearch", options, (headers, signal) => (options?.client ?? client).get({
|
|
@@ -6633,7 +6762,7 @@ var Integrations = class {
|
|
|
6633
6762
|
/**
|
|
6634
6763
|
* List integrations
|
|
6635
6764
|
*
|
|
6636
|
-
* Returns a bounded page of installed integrations, newest first, with compact tool summaries. Follow nextCursor and each integration's toolPage.
|
|
6765
|
+
* Returns a bounded page of installed integrations, newest first, with compact tool summaries. Follow nextCursor and each integration's toolPage.nextCursor for the complete inventory.
|
|
6637
6766
|
*/
|
|
6638
6767
|
static list(parameters, options) {
|
|
6639
6768
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -6698,7 +6827,7 @@ var Integrations = class {
|
|
|
6698
6827
|
/**
|
|
6699
6828
|
* List integration tools
|
|
6700
6829
|
*
|
|
6701
|
-
* Returns a page of the tools an integration gives agents.
|
|
6830
|
+
* Returns a page of the tools an integration gives agents. Pass nextCursor back as cursor. If the integration's tools change during pagination, the request returns 409. Restart without a cursor.
|
|
6702
6831
|
*/
|
|
6703
6832
|
static listTools(parameters, options) {
|
|
6704
6833
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -6708,11 +6837,11 @@ var Integrations = class {
|
|
|
6708
6837
|
},
|
|
6709
6838
|
{
|
|
6710
6839
|
in: "query",
|
|
6711
|
-
key: "
|
|
6840
|
+
key: "limit"
|
|
6712
6841
|
},
|
|
6713
6842
|
{
|
|
6714
6843
|
in: "query",
|
|
6715
|
-
key: "
|
|
6844
|
+
key: "cursor"
|
|
6716
6845
|
}
|
|
6717
6846
|
] }]);
|
|
6718
6847
|
return requestWithPolicy(options?.client ?? client, "integrationsListTools", options, (headers, signal) => (options?.client ?? client).get({
|
|
@@ -6733,7 +6862,7 @@ var Integrations = class {
|
|
|
6733
6862
|
/**
|
|
6734
6863
|
* Read an integration tool descriptor
|
|
6735
6864
|
*
|
|
6736
|
-
* Returns one tool's
|
|
6865
|
+
* Returns one tool's descriptor in chunks. Pass nextOffset back as offset with the same revision. A revision that no longer matches the integration's tools returns 409.
|
|
6737
6866
|
*/
|
|
6738
6867
|
static readTool(parameters, options) {
|
|
6739
6868
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -6822,7 +6951,7 @@ var Integrations = class {
|
|
|
6822
6951
|
/**
|
|
6823
6952
|
* Update an integration
|
|
6824
6953
|
*
|
|
6825
|
-
* Changes an integration's settings, enabled tools, which tools run without approval, and whether replies using its data need approval.
|
|
6954
|
+
* Changes an integration's settings, enabled tools, which tools run without approval, and whether replies using its data need approval. Changing answerWithoutApproval requires an organization owner and, for an API key, organization-wide reach. An organization owner or an API key with organization-wide reach can change a tool's runsWithoutApproval for its current effect. False makes a read tool ask first. True lets a tool that changes something run. Fields not named keep their values. What an agent may do with the integration is the agent's grant.
|
|
6826
6955
|
*/
|
|
6827
6956
|
static update(parameters, options) {
|
|
6828
6957
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -11126,9 +11255,9 @@ var Organizations = class {
|
|
|
11126
11255
|
}));
|
|
11127
11256
|
}
|
|
11128
11257
|
/**
|
|
11129
|
-
* Get organization
|
|
11258
|
+
* Get the organization's sending limits
|
|
11130
11259
|
*
|
|
11131
|
-
* Returns the
|
|
11260
|
+
* Returns which sending limits apply to the organization and its progress toward the plan's limits. `tier` is `screened` while the organization waits for Samva's review before its first email, `probation` while a new organization sends on starting limits (`sendingLimits.probation`), and `established` once it sends on its plan's limits. `graduation` measures the delivery record a new organization needs before it moves to its plan's limits, and is checked as deliveries arrive. Billing allowance, domain readiness, and sending pauses apply as well.
|
|
11132
11261
|
*/
|
|
11133
11262
|
static getTrustTier(options) {
|
|
11134
11263
|
return requestWithPolicy(options?.client ?? client, "organizationsGetTrustTier", options, (headers, signal) => (options?.client ?? client).get({
|
|
@@ -12487,7 +12616,7 @@ var Mailboxes = class {
|
|
|
12487
12616
|
/**
|
|
12488
12617
|
* List mailbox decisions awaiting you
|
|
12489
12618
|
*
|
|
12490
|
-
* Returns held actions this caller can approve
|
|
12619
|
+
* Returns held actions this caller can approve across their visible mailboxes. Counts cover all actionable items across pages. The queue excludes the caller’s own proposals. Read Spam through the thread list and use the held-mail endpoint for malware metadata.
|
|
12491
12620
|
*/
|
|
12492
12621
|
static getNeedsYou(parameters, options) {
|
|
12493
12622
|
const params = buildClientParams([parameters], [{ args: [{
|
|
@@ -12558,7 +12687,7 @@ var Mailboxes = class {
|
|
|
12558
12687
|
/**
|
|
12559
12688
|
* List threads across your mailboxes
|
|
12560
12689
|
*
|
|
12561
|
-
* Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes what the caller finished; state=done selects the caller's Done, closed shared threads, and personal-mailbox threads in the archived folder, without duplicates. Other filters and cursor pagination match the per-mailbox list.
|
|
12690
|
+
* Lists only threads in mailboxes the caller can read. With `q`, semantic and keyword search returns the best-matching threads in relevance order, capped across cursor pages. Without `q`, threads use newest activity first. Use `snoozed=true&order=wake` for earliest wake first, with ascending thread ID for ties. Repeat mailboxId to narrow the scope; kind selects personal or shared mailboxes. conversation selects the threads of one conversation (the conversationId a thread reports), one per readable mailbox it reached. state=active excludes what the caller finished; state=done selects the caller's Done, closed shared threads, and personal-mailbox threads in the archived folder, without duplicates. Other filters and cursor pagination match the per-mailbox list.
|
|
12562
12691
|
*/
|
|
12563
12692
|
static listOrganizationThreads(parameters, options) {
|
|
12564
12693
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12618,6 +12747,10 @@ var Mailboxes = class {
|
|
|
12618
12747
|
in: "query",
|
|
12619
12748
|
key: "snoozed"
|
|
12620
12749
|
},
|
|
12750
|
+
{
|
|
12751
|
+
in: "query",
|
|
12752
|
+
key: "order"
|
|
12753
|
+
},
|
|
12621
12754
|
{
|
|
12622
12755
|
in: "query",
|
|
12623
12756
|
key: "mailboxId"
|
|
@@ -12649,7 +12782,7 @@ var Mailboxes = class {
|
|
|
12649
12782
|
/**
|
|
12650
12783
|
* List threads in a mailbox
|
|
12651
12784
|
*
|
|
12652
|
-
* Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first
|
|
12785
|
+
* Returns thread summaries. With `q`, semantic and keyword search returns up to 100 best-matching threads in relevance order across cursor pages. It searches subjects, participants, message text including quoted history, and attachment filenames, not attachment contents. New mail can take a few seconds to become searchable. Other filters narrow the searchable set. Without `q`, threads use most recent activity first. Use `snoozed=true&order=wake` for earliest wake first, with ascending thread ID for ties. The `after` and `before` filters always use last activity. Pass `nextCursor` back as `cursor` for the next page; it is null on the last page. In an activity-ordered list, a thread that gains activity while you page moves ahead of the cursor, so a walk lists each thread at most once. Omit `folder` to list every folder. A thread's folder is set when it is created and does not move on later replies: a thread a send started stays in `sent`, so find replies with `unread: true` and no `folder`.
|
|
12653
12786
|
*/
|
|
12654
12787
|
static listThreads(parameters, options) {
|
|
12655
12788
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -12712,6 +12845,10 @@ var Mailboxes = class {
|
|
|
12712
12845
|
{
|
|
12713
12846
|
in: "query",
|
|
12714
12847
|
key: "snoozed"
|
|
12848
|
+
},
|
|
12849
|
+
{
|
|
12850
|
+
in: "query",
|
|
12851
|
+
key: "order"
|
|
12715
12852
|
}
|
|
12716
12853
|
] }]);
|
|
12717
12854
|
return requestWithPolicy(options?.client ?? client, "mailboxesListThreads", options, (headers, signal) => (options?.client ?? client).get({
|
|
@@ -15077,17 +15214,17 @@ var Whatsapp = class {
|
|
|
15077
15214
|
/**
|
|
15078
15215
|
* List WhatsApp business accounts
|
|
15079
15216
|
*
|
|
15080
|
-
*
|
|
15217
|
+
* Lists connected WhatsApp business accounts, newest first. Pass nextCursor back as cursor to continue.
|
|
15081
15218
|
*/
|
|
15082
15219
|
static listBusinessAccounts(parameters, options) {
|
|
15083
15220
|
const params = buildClientParams([parameters], [{ args: [
|
|
15084
15221
|
{
|
|
15085
15222
|
in: "query",
|
|
15086
|
-
key: "
|
|
15223
|
+
key: "limit"
|
|
15087
15224
|
},
|
|
15088
15225
|
{
|
|
15089
15226
|
in: "query",
|
|
15090
|
-
key: "
|
|
15227
|
+
key: "cursor"
|
|
15091
15228
|
},
|
|
15092
15229
|
{
|
|
15093
15230
|
in: "query",
|
|
@@ -15300,7 +15437,7 @@ var WhatsappFlows = class {
|
|
|
15300
15437
|
/**
|
|
15301
15438
|
* List flows
|
|
15302
15439
|
*
|
|
15303
|
-
* Returns the
|
|
15440
|
+
* Returns flows visible to the caller, newest first, each with its current version.
|
|
15304
15441
|
*/
|
|
15305
15442
|
static list(options) {
|
|
15306
15443
|
return requestWithPolicy(options?.client ?? client, "whatsappFlowsList", options, (headers, signal) => (options?.client ?? client).get({
|
|
@@ -15317,7 +15454,7 @@ var WhatsappFlows = class {
|
|
|
15317
15454
|
/**
|
|
15318
15455
|
* Create a flow
|
|
15319
15456
|
*
|
|
15320
|
-
* Creates a WhatsApp flow whose versions read `flows/<handle>.json` in the template project. The handle is unique in
|
|
15457
|
+
* Creates a WhatsApp flow whose versions read `flows/<handle>.json` in the template project. The handle is unique in its namespace or at organization level; the categories are Meta's and go with every version to Meta.
|
|
15321
15458
|
*/
|
|
15322
15459
|
static create(parameters, options) {
|
|
15323
15460
|
const params = buildClientParams([parameters], [{ args: [
|
|
@@ -15332,6 +15469,10 @@ var WhatsappFlows = class {
|
|
|
15332
15469
|
{
|
|
15333
15470
|
in: "body",
|
|
15334
15471
|
key: "categories"
|
|
15472
|
+
},
|
|
15473
|
+
{
|
|
15474
|
+
in: "body",
|
|
15475
|
+
key: "submissionHandler"
|
|
15335
15476
|
}
|
|
15336
15477
|
] }]);
|
|
15337
15478
|
return requestWithPolicy(options?.client ?? client, "whatsappFlowsCreate", options, (headers, signal) => (options?.client ?? client).post({
|
|
@@ -15404,23 +15545,16 @@ var WhatsappFlows = class {
|
|
|
15404
15545
|
/**
|
|
15405
15546
|
* Record a flow version
|
|
15406
15547
|
*
|
|
15407
|
-
*
|
|
15548
|
+
* Supply Flow JSON to commit the flow's file and record its version, or name a commit and workspace revision to record a file already on the project's default branch. The same content returns the version that already recorded it.
|
|
15408
15549
|
*/
|
|
15409
15550
|
static recordVersion(parameters, options) {
|
|
15410
|
-
const params = buildClientParams([parameters], [{ args: [
|
|
15411
|
-
|
|
15412
|
-
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
|
|
15416
|
-
|
|
15417
|
-
key: "commitSha"
|
|
15418
|
-
},
|
|
15419
|
-
{
|
|
15420
|
-
in: "body",
|
|
15421
|
-
key: "expectedWorkspaceRevision"
|
|
15422
|
-
}
|
|
15423
|
-
] }]);
|
|
15551
|
+
const params = buildClientParams([parameters], [{ args: [{
|
|
15552
|
+
in: "path",
|
|
15553
|
+
key: "id"
|
|
15554
|
+
}, {
|
|
15555
|
+
key: "body",
|
|
15556
|
+
map: "body"
|
|
15557
|
+
}] }]);
|
|
15424
15558
|
return requestWithPolicy(options?.client ?? client, "whatsappFlowsRecordVersion", options, (headers, signal) => (options?.client ?? client).post({
|
|
15425
15559
|
security: [{
|
|
15426
15560
|
name: "x-api-key",
|
|
@@ -15429,7 +15563,6 @@ var WhatsappFlows = class {
|
|
|
15429
15563
|
url: "/v1/whatsapp/flows/{id}/versions",
|
|
15430
15564
|
...options,
|
|
15431
15565
|
...params,
|
|
15432
|
-
body: params.body ?? {},
|
|
15433
15566
|
headers: {
|
|
15434
15567
|
"Content-Type": "application/json",
|
|
15435
15568
|
...headers,
|
|
@@ -15818,6 +15951,8 @@ Object.assign(Messages.getEmail, { operation: "messagesGetEmail" });
|
|
|
15818
15951
|
Object.assign(Messages.validateEmail, { operation: "messagesValidateEmail" });
|
|
15819
15952
|
Object.assign(Messages.getStatus, { operation: "messagesGetStatus" });
|
|
15820
15953
|
Object.assign(Messages.getEvents, { operation: "messagesGetEvents" });
|
|
15954
|
+
Object.assign(Logs.list, { operation: "logsList" });
|
|
15955
|
+
Object.assign(Logs.get, { operation: "logsGet" });
|
|
15821
15956
|
Object.assign(Operations.list, { operation: "operationsList" });
|
|
15822
15957
|
Object.assign(Operations.get, { operation: "operationsGet" });
|
|
15823
15958
|
Object.assign(Operations.retry, { operation: "operationsRetry" });
|
|
@@ -16267,6 +16402,6 @@ Object.assign(WhatsappSetupLinks.revoke, { operation: "whatsappSetupLinksRevoke"
|
|
|
16267
16402
|
Object.assign(TemplateRegistrations.list, { operation: "templateRegistrationsList" });
|
|
16268
16403
|
Object.assign(TemplateRegistrations.submit, { operation: "templateRegistrationsSubmit" });
|
|
16269
16404
|
Object.assign(TemplateRegistrations.get, { operation: "templateRegistrationsGet" });
|
|
16270
|
-
export { Accounts, Agents, Analytics, ApiKeys, ApprovalRequests, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Domains, Email, Events, Feedback, IntegrationCatalog, Integrations, Issues, Journeys, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, TemplateShareLinks, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami };
|
|
16405
|
+
export { Accounts, Agents, Analytics, ApiKeys, ApprovalRequests, Attachments, Brands, Campaigns, ContactEvents, ContactGroups, Contacts, Conversations, CustomFields, Domains, Email, Events, Feedback, IntegrationCatalog, Integrations, Issues, Journeys, Logs, Mailboxes, Media, Messages, Namespaces, Newsletters, Operations, Organizations, Policies, ScheduledMessages, Subscriptions, TemplateRegistrations, TemplateShareLinks, Templates, TopicForms, Topics, Webhooks, Whatsapp, WhatsappFlows, WhatsappSetupLinks, Whoami };
|
|
16271
16406
|
|
|
16272
16407
|
//# sourceMappingURL=sdk.gen.js.map
|