@agent-os-sdk/client 0.5.1 → 0.5.2

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.
@@ -518,6 +518,15 @@ export interface paths {
518
518
  "application/json": components["schemas"]["ProblemDetails"];
519
519
  };
520
520
  };
521
+ /** @description Unprocessable Content */
522
+ 422: {
523
+ headers: {
524
+ [name: string]: unknown;
525
+ };
526
+ content: {
527
+ "application/json": components["schemas"]["ProblemDetails"];
528
+ };
529
+ };
521
530
  };
522
531
  };
523
532
  delete?: never;
@@ -610,7 +619,7 @@ export interface paths {
610
619
  [name: string]: unknown;
611
620
  };
612
621
  content: {
613
- "application/json": components["schemas"]["AgentDraftResponse"];
622
+ "application/json": components["schemas"]["AgentDraftResponseApiEnvelope"];
614
623
  };
615
624
  };
616
625
  /** @description Bad Request */
@@ -6739,11 +6748,16 @@ export interface paths {
6739
6748
  path?: never;
6740
6749
  cookie?: never;
6741
6750
  };
6742
- /** List triggers for a workspace. */
6751
+ /**
6752
+ * List triggers for a workspace.
6753
+ * Use ?focus=triggerId to include request_contract for that item only.
6754
+ */
6743
6755
  get: {
6744
6756
  parameters: {
6745
6757
  query?: {
6746
6758
  workspaceId?: string;
6759
+ agent_id?: string;
6760
+ focus?: string;
6747
6761
  };
6748
6762
  header?: never;
6749
6763
  path?: never;
@@ -6877,6 +6891,45 @@ export interface paths {
6877
6891
  };
6878
6892
  trace?: never;
6879
6893
  };
6894
+ "/v1/api/triggers/{triggerId}/secret": {
6895
+ parameters: {
6896
+ query?: never;
6897
+ header?: never;
6898
+ path?: never;
6899
+ cookie?: never;
6900
+ };
6901
+ /**
6902
+ * Get trigger with secret (Law 065 - Security DTO).
6903
+ * SECURITY: Requires explicit Workspace context (Anti-IDOR).
6904
+ */
6905
+ get: {
6906
+ parameters: {
6907
+ query?: never;
6908
+ header?: never;
6909
+ path: {
6910
+ triggerId: string;
6911
+ };
6912
+ cookie?: never;
6913
+ };
6914
+ requestBody?: never;
6915
+ responses: {
6916
+ /** @description OK */
6917
+ 200: {
6918
+ headers: {
6919
+ [name: string]: unknown;
6920
+ };
6921
+ content?: never;
6922
+ };
6923
+ };
6924
+ };
6925
+ put?: never;
6926
+ post?: never;
6927
+ delete?: never;
6928
+ options?: never;
6929
+ head?: never;
6930
+ patch?: never;
6931
+ trace?: never;
6932
+ };
6880
6933
  "/v1/api/triggers/invoke/{triggerId}": {
6881
6934
  parameters: {
6882
6935
  query?: never;
@@ -6954,6 +7007,54 @@ export interface paths {
6954
7007
  patch?: never;
6955
7008
  trace?: never;
6956
7009
  };
7010
+ "/v1/api/triggers/{triggerId}/test": {
7011
+ parameters: {
7012
+ query?: never;
7013
+ header?: never;
7014
+ path?: never;
7015
+ cookie?: never;
7016
+ };
7017
+ get?: never;
7018
+ put?: never;
7019
+ /**
7020
+ * Test a trigger by executing a run directly (no HMAC required).
7021
+ * SECURITY: Requires authenticated session, no secret leakage.
7022
+ * Wave 3: Server-side testing with workspace isolation.
7023
+ * @description Executes a run using either the provided payload or the template's example_payload.
7024
+ * Uses Channel.Test for audit trail differentiation.
7025
+ */
7026
+ post: {
7027
+ parameters: {
7028
+ query?: never;
7029
+ header?: never;
7030
+ path: {
7031
+ triggerId: string;
7032
+ };
7033
+ cookie?: never;
7034
+ };
7035
+ requestBody?: {
7036
+ content: {
7037
+ "application/json": components["schemas"]["TestTriggerRequest"];
7038
+ "text/json": components["schemas"]["TestTriggerRequest"];
7039
+ "application/*+json": components["schemas"]["TestTriggerRequest"];
7040
+ };
7041
+ };
7042
+ responses: {
7043
+ /** @description OK */
7044
+ 200: {
7045
+ headers: {
7046
+ [name: string]: unknown;
7047
+ };
7048
+ content?: never;
7049
+ };
7050
+ };
7051
+ };
7052
+ delete?: never;
7053
+ options?: never;
7054
+ head?: never;
7055
+ patch?: never;
7056
+ trace?: never;
7057
+ };
6957
7058
  "/v1/api/quotas": {
6958
7059
  parameters: {
6959
7060
  query?: never;
@@ -7750,13 +7851,17 @@ export interface components {
7750
7851
  /** Format: uuid */
7751
7852
  id?: string;
7752
7853
  name?: string | null;
7753
- draft_graph_json?: string | null;
7854
+ draft_graph_revision?: string | null;
7754
7855
  /** Format: date-time */
7755
7856
  draft_updated_at?: string | null;
7756
7857
  /** Format: uuid */
7757
7858
  live_bundle_id?: string | null;
7758
7859
  e_tag?: string | null;
7759
7860
  };
7861
+ AgentDraftResponseApiEnvelope: {
7862
+ data?: components["schemas"]["AgentDraftResponse"];
7863
+ hints?: components["schemas"]["ApiHint"][] | null;
7864
+ };
7760
7865
  AgentExportAgent: {
7761
7866
  /** Format: uuid */
7762
7867
  id?: string;
@@ -7771,6 +7876,14 @@ export interface components {
7771
7876
  agent?: components["schemas"]["AgentExportAgent"];
7772
7877
  bundles?: components["schemas"]["AgentBundleItem"][] | null;
7773
7878
  };
7879
+ ApiHint: {
7880
+ type?: string | null;
7881
+ severity?: string | null;
7882
+ message?: string | null;
7883
+ node_id?: string | null;
7884
+ path?: string | null;
7885
+ required?: string | null;
7886
+ };
7774
7887
  ApprovalDecision: {
7775
7888
  decision?: string | null;
7776
7889
  comment?: string | null;
@@ -7784,7 +7897,7 @@ export interface components {
7784
7897
  };
7785
7898
  BatchInput: {
7786
7899
  idempotency_key?: string | null;
7787
- input?: unknown;
7900
+ input_json?: string | null;
7788
7901
  };
7789
7902
  BatchRunItem: {
7790
7903
  /** Format: uuid */
@@ -7817,6 +7930,7 @@ export interface components {
7817
7930
  BuilderChatRequest: {
7818
7931
  message?: string | null;
7819
7932
  thread_id?: string | null;
7933
+ history?: components["schemas"]["ChatHistoryMessage"][] | null;
7820
7934
  base_graph_etag?: string | null;
7821
7935
  };
7822
7936
  BundleResponse: {
@@ -7835,6 +7949,8 @@ export interface components {
7835
7949
  /** Format: date-time */
7836
7950
  created_at?: string;
7837
7951
  label?: string | null;
7952
+ webhook_trigger_ids?: string[] | null;
7953
+ scheduled_trigger_ids?: string[] | null;
7838
7954
  };
7839
7955
  CancelRequest: {
7840
7956
  reason?: string | null;
@@ -7849,7 +7965,11 @@ export interface components {
7849
7965
  * Format: int32
7850
7966
  * @enum {integer}
7851
7967
  */
7852
- Channel: 0 | 1 | 2 | 3;
7968
+ Channel: 0 | 1 | 2 | 3 | 4;
7969
+ ChatHistoryMessage: {
7970
+ role?: string | null;
7971
+ content?: string | null;
7972
+ };
7853
7973
  CheckpointDetail: {
7854
7974
  /** Format: uuid */
7855
7975
  id?: string;
@@ -7993,7 +8113,7 @@ export interface components {
7993
8113
  agent_id?: string | null;
7994
8114
  thread?: components["schemas"]["ThreadRequest"];
7995
8115
  idempotency_key?: string | null;
7996
- input?: unknown;
8116
+ input_json?: string | null;
7997
8117
  webhook_url?: string | null;
7998
8118
  /** Format: uuid */
7999
8119
  bundle_id?: string | null;
@@ -8033,6 +8153,7 @@ export interface components {
8033
8153
  agent_id?: string;
8034
8154
  name?: string | null;
8035
8155
  trigger_type?: string | null;
8156
+ template_slug?: string | null;
8036
8157
  config?: unknown;
8037
8158
  };
8038
8159
  CreateVectorStoreRequest: {
@@ -8309,10 +8430,10 @@ export interface components {
8309
8430
  /** Format: uuid */
8310
8431
  thread_id?: string;
8311
8432
  status?: components["schemas"]["RunStatus"];
8312
- input_json?: unknown;
8313
- output_json?: unknown;
8314
- error_json?: unknown;
8315
- metrics_json?: unknown;
8433
+ input_json?: string | null;
8434
+ output_json?: string | null;
8435
+ error_json?: string | null;
8436
+ metrics_json?: string | null;
8316
8437
  /** Format: date-time */
8317
8438
  started_at?: string | null;
8318
8439
  /** Format: date-time */
@@ -8435,9 +8556,16 @@ export interface components {
8435
8556
  agent_id?: string | null;
8436
8557
  thread?: components["schemas"]["ThreadRequest"];
8437
8558
  idempotency_key?: string | null;
8438
- input?: unknown;
8559
+ input_json?: string | null;
8439
8560
  stream_mode?: string | null;
8440
8561
  };
8562
+ /**
8563
+ * @description Request body for POST /triggers/{id}/test.
8564
+ * Payload is optional - falls back to template example_payload.
8565
+ */
8566
+ TestTriggerRequest: {
8567
+ payload?: unknown;
8568
+ };
8441
8569
  ThreadCopyRequest: {
8442
8570
  copy_history?: boolean;
8443
8571
  };
@@ -8630,7 +8758,7 @@ export interface components {
8630
8758
  agent_id?: string | null;
8631
8759
  thread?: components["schemas"]["ThreadRequest"];
8632
8760
  idempotency_key?: string | null;
8633
- input?: unknown;
8761
+ input_json?: string | null;
8634
8762
  /** Format: int32 */
8635
8763
  timeout_seconds?: number | null;
8636
8764
  };
@@ -8638,8 +8766,8 @@ export interface components {
8638
8766
  /** Format: uuid */
8639
8767
  run_id?: string;
8640
8768
  status?: string | null;
8641
- output_json?: unknown;
8642
- error_json?: unknown;
8769
+ output_json?: string | null;
8770
+ error_json?: string | null;
8643
8771
  /** Format: double */
8644
8772
  duration_ms?: number | null;
8645
8773
  };