@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Methods

    Constructors

    Methods

    • List activity feed entries Returns a cursor-paginated list of activity feed entries visible to the authenticated user. Entries are ordered from newest to oldest by default. Use before_cursor to page backward and after_cursor to page forward. Results are scoped to the caller's app. All filter params are optional and can be combined. Passing multiple values in an array filter returns entries matching any of the supplied values (OR semantics). Invalid kind or level values return a 400 error listing the accepted values rather than being silently ignored.

      Parameters

      • Optionalparams: {
            afterCursor?: string;
            agent?: string[];
            beforeCursor?: string;
            correlationId?: string;
            kind?: string[];
            level?: string[];
            limit?: number;
            org?: string[];
            team?: string[];
            thread?: string[];
        }

        Query parameters.

        • OptionalafterCursor?: string

          Opaque cursor from a previous response's after_cursor field. Returns entries newer than the cursor's position.

        • Optionalagent?: string[]

          Restrict results to entries associated with these agent IDs (agt_...). Accepts multiple values.

        • OptionalbeforeCursor?: string

          Opaque cursor from a previous response's before_cursor field. Returns entries older than the cursor's position.

        • OptionalcorrelationId?: string

          Restrict results to entries that share this correlation group identifier. Useful for tracing a chain of related events.

        • Optionalkind?: string[]

          One or more entry kinds to include. Accepted values: routine_run, automation_run, thread_story, agent_quality_verdict, generic. Omit to return all kinds.

        • Optionallevel?: string[]

          One or more severity levels to include. Accepted values: debug, info, warn, error, audit. Omit to return all levels.

        • Optionallimit?: number

          Maximum number of entries to return per page. Defaults to 50; maximum is 100.

        • Optionalorg?: string[]

          Restrict results to entries associated with these organization IDs (org_...). Accepts multiple values.

        • Optionalteam?: string[]

          Restrict results to entries associated with these team IDs (tem_...). Accepts multiple values.

        • Optionalthread?: string[]

          Restrict results to entries associated with these thread IDs (thr_...). Accepts multiple values.

      Returns Promise<
          {
              after_cursor?: string;
              before_cursor?: string;
              data: {
                  agent?: | string
                  | {
                      acl?: {
                          add?: { actions: ...; principal?: ...; principal_type: ... }[];
                          grants?: { actions: ...; principal?: ...; principal_type: ... }[];
                          remove?: { principal?: ...; principal_type: ... }[];
                      };
                      app?: string;
                      created_at?: string;
                      default_model?: string;
                      email?: string;
                      id: string;
                      identity?: string;
                      last_applied_template_config?: string;
                      lookup_key?: string;
                      metadata?: Record<string, unknown>;
                      name?: string;
                      org?: string;
                      org_name?: string;
                      originator?: string;
                      phone_number?: string;
                      sandbox?: string;
                      source_solution?: {
                          solution: {
                              category_keys?: (...)[];
                              created_at?: string;
                              description?: string;
                              id: string;
                              kind: string;
                              latest_solution?: string;
                              latest_version?: string;
                              lookup_key?: string;
                              metadata?: Record<(...), (...)>;
                              name?: string;
                              org?: string;
                              org_logo?: {
                                  file?: ...;
                                  height?: ...;
                                  media?: ...;
                                  mime_type?: ...;
                                  refresh_url?: ...;
                                  url?: ...;
                                  width?: ...;
                              };
                              org_name?: string;
                              org_slug?: string;
                              owners: string[];
                              readme_url?: string;
                              solution_id?: string;
                              solution_version?: string;
                              tag_keys?: (...)[];
                              template_kind?: string;
                              templates: {
                                  description?: ...;
                                  display_name?: ...;
                                  id?: ...;
                                  kind: ...;
                                  lookup_key?: ...;
                                  name?: ...;
                                  readme_url?: ...;
                                  virtual_path?: ...;
                              }[];
                              updated_at?: string;
                              upgrade_available: boolean;
                              virtual_path?: string;
                          };
                          template: {
                              created_at?: string;
                              description?: string;
                              display_name?: string;
                              id: string;
                              kind: string;
                              lookup_key?: string;
                              name?: string;
                              updated_at?: string;
                              virtual_path?: string;
                          };
                      };
                      team?: string;
                      template_upgrade_available?: boolean;
                      updated_at?: string;
                      user?: string;
                  };
                  app?: string;
                  attachments?: Record<string, unknown>[];
                  automation_run?: string;
                  content?: string;
                  correlation_id?: string;
                  created_at?: string;
                  id: string;
                  kind?: string;
                  level?: string;
                  metadata?: Record<string, unknown>;
                  org?: string;
                  routine_run?: string;
                  sandbox?: string;
                  session_record?: string;
                  team?: string;
                  thread?: string;
                  title?: string;
                  updated_at?: string;
                  user?:
                      | string
                      | {
                          alias?: string;
                          app?: string;
                          app_name?: string;
                          email?: string;
                          id: string;
                          is_system_user?: boolean;
                          metadata?: Record<string, unknown>;
                          name?: string;
                          org?: string;
                          org_name?: string;
                          org_role?: string;
                          sandbox?: string;
                          sandbox_name?: string;
                      };
              }[];
              has_more: boolean;
          },
      >

      Successful response