@onesi/genesis 0.2.13 → 0.2.14

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.
@@ -9950,6 +9950,26 @@ export interface paths {
9950
9950
  patch?: never;
9951
9951
  trace?: never;
9952
9952
  };
9953
+ "/v1/dials/workflows/{workflow_id}": {
9954
+ parameters: {
9955
+ query?: never;
9956
+ header?: never;
9957
+ path?: never;
9958
+ cookie?: never;
9959
+ };
9960
+ get?: never;
9961
+ put?: never;
9962
+ post?: never;
9963
+ /**
9964
+ * Delete an owned workflow and its routing descriptor
9965
+ * @description Needs `dials:write`. Deletes the workflow with this id (the `id` you deployed it with) and every routing-rule descriptor row it was deployed as, in the verified org/workspace/project/environment only, and records a `workflows.delete` audit event whose actor is the verified gateway identity. Another organization's, workspace's, project's or environment's workflow, and a repeat delete, are 404 `workflow_not_found`. If a held (not released) number is assigned to the workflow (kind `workflow` or `routing_rule`), the delete is refused with 409 `workflow_number_attached` and nothing changes: unassign the number first with `assignNumber` and no resource. Managed inbound policies (`/v1/routing/rules`) are never deleted here. Scope is required in the JSON body, not query parameters.
9966
+ */
9967
+ delete: operations["dials_deleteWorkflow"];
9968
+ options?: never;
9969
+ head?: never;
9970
+ patch?: never;
9971
+ trace?: never;
9972
+ };
9953
9973
  "/v1/dials/numbers/{number_id}": {
9954
9974
  parameters: {
9955
9975
  query?: never;
@@ -24592,6 +24612,46 @@ export interface paths {
24592
24612
  patch?: never;
24593
24613
  trace?: never;
24594
24614
  };
24615
+ "/v1/agents/search": {
24616
+ parameters: {
24617
+ query?: never;
24618
+ header?: never;
24619
+ path?: never;
24620
+ cookie?: never;
24621
+ };
24622
+ /**
24623
+ * Search public agents
24624
+ * @description Public, no credential. Ranked full-text search over public Live agents: matches in the name rank above the organization name, then the description, then the agent id; every word must match, as a prefix. An exact agent id ranks that agent first. GET only, no body, no other query key. Cached at the edge for up to 30 seconds. Rate limited per client address (429 RATE_LIMITED with Retry-After).
24625
+ */
24626
+ get: operations["agents_search"];
24627
+ put?: never;
24628
+ post?: never;
24629
+ delete?: never;
24630
+ options?: never;
24631
+ head?: never;
24632
+ patch?: never;
24633
+ trace?: never;
24634
+ };
24635
+ "/v1/agents/sitemap": {
24636
+ parameters: {
24637
+ query?: never;
24638
+ header?: never;
24639
+ path?: never;
24640
+ cookie?: never;
24641
+ };
24642
+ /**
24643
+ * List every public agent for crawlers
24644
+ * @description Public, no credential. Every public Live agent id (at most 50,000) with when its public content last changed, for sitemaps and spiders. GET only, no query string, no body. Cached at the edge for up to 5 minutes. Rate limited per client address.
24645
+ */
24646
+ get: operations["agents_sitemap"];
24647
+ put?: never;
24648
+ post?: never;
24649
+ delete?: never;
24650
+ options?: never;
24651
+ head?: never;
24652
+ patch?: never;
24653
+ trace?: never;
24654
+ };
24595
24655
  }
24596
24656
  export type webhooks = Record<string, never>;
24597
24657
  export interface components {
@@ -33795,6 +33855,24 @@ export interface components {
33795
33855
  actorId: string;
33796
33856
  workflow: components["schemas"]["Dials.WorkflowDocument"];
33797
33857
  };
33858
+ "Dials.DeleteWorkflow": {
33859
+ scope: components["schemas"]["Dials.Scope"];
33860
+ /** @description Optional compatibility field; the actual actor comes from the verified gateway identity. */
33861
+ actorId?: string | null;
33862
+ };
33863
+ /** @description The deleted workflow as it was, with status "deleted". */
33864
+ "Dials.DeleteWorkflowReceipt": {
33865
+ /** @constant */
33866
+ ok: true;
33867
+ /** @constant */
33868
+ deleted: true;
33869
+ workflow: components["schemas"]["Dials.WorkflowDocument"];
33870
+ /** @description The routing-rule descriptor ids that were deleted. */
33871
+ routeIds: string[];
33872
+ auditId: string;
33873
+ /** @constant */
33874
+ next: "workflow_deleted";
33875
+ };
33798
33876
  /** @description Saved call session. Admission/recovery receipts return this session without the separate carrier outcome fields in calls.list. */
33799
33877
  "Dials.CallSession": {
33800
33878
  id: string;
@@ -41414,6 +41492,43 @@ export interface components {
41414
41492
  data: components["schemas"]["Connections.ConnectedTool"][];
41415
41493
  session_tainted?: boolean;
41416
41494
  };
41495
+ "Agents.AgentSearchResults": {
41496
+ results: components["schemas"]["Agents.AgentSearchHit"][];
41497
+ };
41498
+ /** @description One public agent. Optional keys are omitted when the owner did not disclose them. */
41499
+ "Agents.AgentSearchHit": {
41500
+ /** @description The agent's IAM id (a_...) */
41501
+ agentId: string;
41502
+ /** @description The agent's canonical DID (did:oas:agent:...) */
41503
+ did: string;
41504
+ /**
41505
+ * @description IAM vouches for this public identity
41506
+ * @constant
41507
+ */
41508
+ verified: true;
41509
+ /**
41510
+ * @description Always live; Sandbox agents are never indexed
41511
+ * @constant
41512
+ */
41513
+ environment: "live";
41514
+ /** @description The agent's name (when disclosed) */
41515
+ name?: string;
41516
+ /** @description The owning organization (when its name is disclosed). Never a person. */
41517
+ owner?: {
41518
+ name: string;
41519
+ };
41520
+ /** @description The owner's public description (when disclosed) */
41521
+ description?: string;
41522
+ /** @description When the agent was created */
41523
+ createdAt?: number;
41524
+ };
41525
+ "Agents.AgentSitemap": {
41526
+ agents: {
41527
+ agentId: string;
41528
+ /** @description When the agent's public content last changed */
41529
+ updatedAt: number;
41530
+ }[];
41531
+ };
41417
41532
  };
41418
41533
  responses: {
41419
41534
  /** @description Foundry API error. */
@@ -70721,6 +70836,95 @@ export interface operations {
70721
70836
  };
70722
70837
  };
70723
70838
  };
70839
+ dials_deleteWorkflow: {
70840
+ parameters: {
70841
+ query?: never;
70842
+ header?: never;
70843
+ path: {
70844
+ workflow_id: string;
70845
+ };
70846
+ cookie?: never;
70847
+ };
70848
+ requestBody: {
70849
+ content: {
70850
+ "application/json": components["schemas"]["Dials.DeleteWorkflow"];
70851
+ };
70852
+ };
70853
+ responses: {
70854
+ /** @description Deleted. The descriptor rows are gone; audit records are kept. */
70855
+ 200: {
70856
+ headers: {
70857
+ [name: string]: unknown;
70858
+ };
70859
+ content: {
70860
+ "application/json": components["schemas"]["Dials.DeleteWorkflowReceipt"];
70861
+ };
70862
+ };
70863
+ /** @description Invalid scope or request shape. */
70864
+ 400: {
70865
+ headers: {
70866
+ [name: string]: unknown;
70867
+ };
70868
+ content: {
70869
+ "application/json": components["schemas"]["Dials.CustomerError"];
70870
+ };
70871
+ };
70872
+ /** @description Missing or invalid verified identity. */
70873
+ 401: {
70874
+ headers: {
70875
+ [name: string]: unknown;
70876
+ };
70877
+ content: {
70878
+ "application/json": components["schemas"]["Dials.CustomerError"];
70879
+ };
70880
+ };
70881
+ /** @description Selected scope is not authorized by signed identity or lacks the required Dials grant. */
70882
+ 403: {
70883
+ headers: {
70884
+ [name: string]: unknown;
70885
+ };
70886
+ content: {
70887
+ "application/json": components["schemas"]["Dials.CustomerError"];
70888
+ };
70889
+ };
70890
+ /** @description No workflow with this id in the authorized scope (workflow_not_found). */
70891
+ 404: {
70892
+ headers: {
70893
+ [name: string]: unknown;
70894
+ };
70895
+ content: {
70896
+ "application/json": components["schemas"]["Dials.CustomerError"];
70897
+ };
70898
+ };
70899
+ /** @description A held number is assigned to this workflow (workflow_number_attached); unassign it first. */
70900
+ 409: {
70901
+ headers: {
70902
+ [name: string]: unknown;
70903
+ };
70904
+ content: {
70905
+ "application/json": components["schemas"]["Dials.CustomerError"];
70906
+ };
70907
+ };
70908
+ /** @description Durable store failed. */
70909
+ 500: {
70910
+ headers: {
70911
+ [name: string]: unknown;
70912
+ };
70913
+ content: {
70914
+ "application/json": components["schemas"]["Dials.CustomerError"];
70915
+ };
70916
+ };
70917
+ /** @description Backend is not ready. */
70918
+ 503: {
70919
+ headers: {
70920
+ [name: string]: unknown;
70921
+ };
70922
+ content: {
70923
+ "application/json": components["schemas"]["Dials.CustomerError"];
70924
+ };
70925
+ };
70926
+ };
70927
+ };
70724
70928
  dials_deleteNumber: {
70725
70929
  parameters: {
70726
70930
  query: {
@@ -110742,4 +110946,119 @@ export interface operations {
110742
110946
  };
110743
110947
  };
110744
110948
  };
110949
+ agents_search: {
110950
+ parameters: {
110951
+ query: {
110952
+ /** @description What to search for, 1 to 200 characters. */
110953
+ q: string;
110954
+ /** @description Most results to return, 1 to 20 (default 20). */
110955
+ limit?: number;
110956
+ };
110957
+ header?: never;
110958
+ path?: never;
110959
+ cookie?: never;
110960
+ };
110961
+ requestBody?: never;
110962
+ responses: {
110963
+ /** @description Matching public agents, best first */
110964
+ 200: {
110965
+ headers: {
110966
+ [name: string]: unknown;
110967
+ };
110968
+ content: {
110969
+ "application/json": components["schemas"]["Agents.AgentSearchResults"];
110970
+ };
110971
+ };
110972
+ /** @description INVALID_QUERY (q or limit out of range) or INVALID_REQUEST (another query key */
110973
+ 400: {
110974
+ headers: {
110975
+ [name: string]: unknown;
110976
+ };
110977
+ content?: never;
110978
+ };
110979
+ /** @description METHOD_NOT_ALLOWED (after a credential verifies; without one */
110980
+ 405: {
110981
+ headers: {
110982
+ [name: string]: unknown;
110983
+ };
110984
+ content?: never;
110985
+ };
110986
+ /** @description RATE_LIMITED */
110987
+ 429: {
110988
+ headers: {
110989
+ [name: string]: unknown;
110990
+ };
110991
+ content?: never;
110992
+ };
110993
+ /** @description BAD_GATEWAY (the index answered outside its contract; nothing is passed through) */
110994
+ 502: {
110995
+ headers: {
110996
+ [name: string]: unknown;
110997
+ };
110998
+ content?: never;
110999
+ };
111000
+ /** @description AGENT_INDEX_UNAVAILABLE or SERVICE_DISABLED */
111001
+ 503: {
111002
+ headers: {
111003
+ [name: string]: unknown;
111004
+ };
111005
+ content?: never;
111006
+ };
111007
+ };
111008
+ };
111009
+ agents_sitemap: {
111010
+ parameters: {
111011
+ query?: never;
111012
+ header?: never;
111013
+ path?: never;
111014
+ cookie?: never;
111015
+ };
111016
+ requestBody?: never;
111017
+ responses: {
111018
+ /** @description Public agent ids */
111019
+ 200: {
111020
+ headers: {
111021
+ [name: string]: unknown;
111022
+ };
111023
+ content: {
111024
+ "application/json": components["schemas"]["Agents.AgentSitemap"];
111025
+ };
111026
+ };
111027
+ /** @description INVALID_REQUEST (a query string or a body) */
111028
+ 400: {
111029
+ headers: {
111030
+ [name: string]: unknown;
111031
+ };
111032
+ content?: never;
111033
+ };
111034
+ /** @description METHOD_NOT_ALLOWED (after a credential verifies; without one */
111035
+ 405: {
111036
+ headers: {
111037
+ [name: string]: unknown;
111038
+ };
111039
+ content?: never;
111040
+ };
111041
+ /** @description RATE_LIMITED */
111042
+ 429: {
111043
+ headers: {
111044
+ [name: string]: unknown;
111045
+ };
111046
+ content?: never;
111047
+ };
111048
+ /** @description BAD_GATEWAY */
111049
+ 502: {
111050
+ headers: {
111051
+ [name: string]: unknown;
111052
+ };
111053
+ content?: never;
111054
+ };
111055
+ /** @description AGENT_INDEX_UNAVAILABLE or SERVICE_DISABLED */
111056
+ 503: {
111057
+ headers: {
111058
+ [name: string]: unknown;
111059
+ };
111060
+ content?: never;
111061
+ };
111062
+ };
111063
+ };
110745
111064
  }
package/dist/genesis.d.ts CHANGED
@@ -1418,7 +1418,7 @@ export declare class Genesis extends GenesisClient {
1418
1418
  offset: number;
1419
1419
  }>;
1420
1420
  get: (slug: string, init?: {
1421
- signal? /** Explicit KMS reveal with a persisted names-only audit. Do not log the plaintext. */: AbortSignal;
1421
+ signal?: AbortSignal;
1422
1422
  }) => Promise<{
1423
1423
  provider: components["schemas"]["Blinds.ProviderSummary"];
1424
1424
  oauth2?: {
@@ -1754,6 +1754,14 @@ export declare class Genesis extends GenesisClient {
1754
1754
  next: string;
1755
1755
  route: components["schemas"]["Dials.RoutingRule"];
1756
1756
  }>;
1757
+ delete: (workflowId: string, body: In<"dials_deleteWorkflow">["body"]) => Promise<{
1758
+ ok: true;
1759
+ deleted: true;
1760
+ workflow: components["schemas"]["Dials.WorkflowDocument"];
1761
+ routeIds: string[];
1762
+ auditId: string;
1763
+ next: "workflow_deleted";
1764
+ }>;
1757
1765
  };
1758
1766
  overview: {
1759
1767
  summary: (scope: import("./dials.js").DialsScope) => Promise<{
@@ -5239,7 +5247,7 @@ export declare class Genesis extends GenesisClient {
5239
5247
  updated_at: string;
5240
5248
  }>;
5241
5249
  counterparties: (books: string, filter?: {
5242
- kind?: "customer" | "vendor";
5250
+ kind? /** Generic escape hatch: genesis.call('hives_list_projects', {...}) */: "customer" | "vendor";
5243
5251
  include_archived?: boolean;
5244
5252
  }) => Promise<{
5245
5253
  data: components["schemas"]["Garden.Counterparty"][];
@@ -6415,6 +6423,20 @@ export declare class Genesis extends GenesisClient {
6415
6423
  }>;
6416
6424
  };
6417
6425
  };
6426
+ /** Public agent search and the crawler sitemap: Live agents their owners made public. No credential, never metered. */
6427
+ readonly agents: {
6428
+ search: (q: string, options?: {
6429
+ limit?: number;
6430
+ signal?: AbortSignal;
6431
+ }) => Promise<{
6432
+ results: import("./agents.js").AgentSearchHit[];
6433
+ }>;
6434
+ sitemap: (options?: {
6435
+ signal?: AbortSignal;
6436
+ }) => Promise<{
6437
+ agents: import("./agents.js").AgentSitemapEntry[];
6438
+ }>;
6439
+ };
6418
6440
  /** Your organization's usage and billing reads, and Orgs: legal entities, seats, resolutions, documents, filings, formation and the record. */
6419
6441
  readonly orgs: {
6420
6442
  whoami: () => Promise<{
package/dist/genesis.js CHANGED
@@ -21,6 +21,7 @@ import { lanesModule } from './lanes.js';
21
21
  import { flaresModule } from './flares.js';
22
22
  import { tracesModule } from './traces.js';
23
23
  import { billingModule, creditsModule, gatewayModule, orgsModule } from './gateway.js';
24
+ import { agentsModule } from './agents.js';
24
25
  import { orgsEntitiesModule } from './orgs.js';
25
26
  import { iamModule } from './iam.js';
26
27
  import { boxesModule } from './boxes.js';
@@ -61,6 +62,8 @@ export class Genesis extends GenesisClient {
61
62
  lanes = lanesModule(this);
62
63
  flares = flaresModule(this);
63
64
  gateway = gatewayModule(this);
65
+ /** Public agent search and the crawler sitemap: Live agents their owners made public. No credential, never metered. */
66
+ agents = agentsModule(this);
64
67
  /** Your organization's usage and billing reads, and Orgs: legal entities, seats, resolutions, documents, filings, formation and the record. */
65
68
  orgs = { ...orgsModule(this), ...orgsEntitiesModule(this) };
66
69
  billing = billingModule(this);