@naturali/sdk 0.311.0 → 0.313.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/dist/index.cjs +38 -1
- package/dist/index.d.cts +153 -3
- package/dist/index.d.mts +153 -3
- package/dist/index.mjs +38 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -636,6 +636,40 @@ var Activity = class {
|
|
|
636
636
|
});
|
|
637
637
|
}
|
|
638
638
|
};
|
|
639
|
+
var ActorAuth = class {
|
|
640
|
+
/**
|
|
641
|
+
* Email an actor sign-in code
|
|
642
|
+
*
|
|
643
|
+
* Emails a short numeric code, single-use and expiring, to the address, in a message that names the project. Answers `204` whether or not the address is an actor yet, so it never says which addresses are. A new code replaces the address's previous one. Sends are not billed; they are limited per address and per project.
|
|
644
|
+
*
|
|
645
|
+
*/
|
|
646
|
+
static sendActorSignInCode(options) {
|
|
647
|
+
return (options.client ?? client).post({
|
|
648
|
+
url: "/v1/projects/{project_id}/actor-auth/code",
|
|
649
|
+
...options,
|
|
650
|
+
headers: {
|
|
651
|
+
"Content-Type": "application/json",
|
|
652
|
+
...options.headers
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
/**
|
|
657
|
+
* Redeem an actor sign-in code
|
|
658
|
+
*
|
|
659
|
+
* Exchanges a code for an actor token for the address's actor, creating the actor (`created: true`) on its first sign-in. The access token's `aud` is `audience`; refresh it with `POST /v1/projects/{project_id}/actor-tokens/refresh`. A code is destroyed after too many wrong guesses; then request a new one.
|
|
660
|
+
*
|
|
661
|
+
*/
|
|
662
|
+
static verifyActorSignInCode(options) {
|
|
663
|
+
return (options.client ?? client).post({
|
|
664
|
+
url: "/v1/projects/{project_id}/actor-auth/code/verify",
|
|
665
|
+
...options,
|
|
666
|
+
headers: {
|
|
667
|
+
"Content-Type": "application/json",
|
|
668
|
+
...options.headers
|
|
669
|
+
}
|
|
670
|
+
});
|
|
671
|
+
}
|
|
672
|
+
};
|
|
639
673
|
var ActorIssuer = class {
|
|
640
674
|
/**
|
|
641
675
|
* Get the project's actor issuer
|
|
@@ -5171,7 +5205,7 @@ var Playbooks = class {
|
|
|
5171
5205
|
/**
|
|
5172
5206
|
* Create a case
|
|
5173
5207
|
*
|
|
5174
|
-
* Creates a case for one subject on the playbook's current version. The case stays on that version however the playbook changes later. A playbook that declares `upstreams` needs each bound to a case of the declared playbook, in the same project, of the same `actor_id`, that the caller may read (`playbooks:GetPlaybookCase`); anything else is `400 PLAYBOOK_CASE_UPSTREAM_INVALID`. The binding is fixed for the life of the case.
|
|
5208
|
+
* Creates a case for one subject on the playbook's current version. The case stays on that version however the playbook changes later. A playbook that declares `upstreams` needs each bound to a case of the declared playbook, in the same project, of the same `actor_id`, that the caller may read (`playbooks:GetPlaybookCase`); anything else is `400 PLAYBOOK_CASE_UPSTREAM_INVALID`. The binding is fixed for the life of the case. A request serving an actor (a session turn of the actor, an `On-Behalf-Of` assertion naming it) creates only that actor's cases: an `actor_id` absent or naming another actor is `400 PLAYBOOK_CASE_ACTOR_MISMATCH`.
|
|
5175
5209
|
*/
|
|
5176
5210
|
static createPlaybookCase(options) {
|
|
5177
5211
|
return (options.client ?? client).post({
|
|
@@ -7320,6 +7354,7 @@ var NaturaliClient = class {
|
|
|
7320
7354
|
activity;
|
|
7321
7355
|
admin;
|
|
7322
7356
|
actors;
|
|
7357
|
+
actorAuth;
|
|
7323
7358
|
actorIssuer;
|
|
7324
7359
|
actorTokens;
|
|
7325
7360
|
agents;
|
|
@@ -7381,6 +7416,7 @@ var NaturaliClient = class {
|
|
|
7381
7416
|
this.activity = bindResource(Activity, this.http);
|
|
7382
7417
|
this.admin = bindResource(Admin, this.http);
|
|
7383
7418
|
this.actors = bindResource(Actors, this.http);
|
|
7419
|
+
this.actorAuth = bindResource(ActorAuth, this.http);
|
|
7384
7420
|
this.actorIssuer = bindResource(ActorIssuer, this.http);
|
|
7385
7421
|
this.actorTokens = bindResource(ActorTokens, this.http);
|
|
7386
7422
|
this.agents = bindResource(Agents, this.http);
|
|
@@ -7432,4 +7468,4 @@ var NaturaliClient = class {
|
|
|
7432
7468
|
}
|
|
7433
7469
|
};
|
|
7434
7470
|
//#endregion
|
|
7435
|
-
export { Activity, ActorIssuer as ActorIssuer2, ActorTokens, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
|
|
7471
|
+
export { Activity, ActorAuth, ActorIssuer as ActorIssuer2, ActorTokens, Actors, Admin, AgentVersions, Agents, AiProviders, ApiKeys, Approvals, Assistant, AuditLog, Auth, Chains, Channels, Collections, Conversations, Deciders, Documents, Embeddings, Evaluations, Exceptions, Files, Formations, Generations, Guardrails, IngestionRules, Knowledge, McpServers, Memories, MemoryRules, MemoryStores, MetadataSchemas, ModelRoutes, Models, NaturaliClient, OauthClients, OauthConnections, Orchestrations, Playbooks, Policies, Projects, Quotas, Secrets, Sessions, Tasks, Tools, Traces, Triggers, Users, Webhooks, Workflows, createClient, createConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturali/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.313.0",
|
|
4
4
|
"description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"naturali",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@hey-api/openapi-ts": "^0.99.0",
|
|
41
|
-
"@naturali/api": "0.
|
|
41
|
+
"@naturali/api": "0.313.0",
|
|
42
42
|
"@ttoss/openapi-codegen": "^0.10.1",
|
|
43
43
|
"@types/node": "^26.5.1",
|
|
44
44
|
"tsdown": "^0.23.0",
|