@archastro/sdk
    Preparing search index...
    Index

    Constructors

    Properties

    task_lease_delegations: TaskLeaseDelegationResource

    Methods

    • List completed organization artifacts Returns completed system-owned organization snapshots, newest first. Private user, team, agent and thread artifacts are excluded.

      Parameters

      • org: string

        Organization ID.

      • Optionalparams: {
            afterCursor?: string;
            groupKey?: string;
            groupKeyPrefix?: string;
            limit?: number;
        }

        Query parameters.

        • OptionalafterCursor?: string

          Opaque cursor for the next page of older snapshots.

        • OptionalgroupKey?: string

          Exact, case-sensitive grouping key.

        • OptionalgroupKeyPrefix?: string

          Nonempty literal group prefix; mutually exclusive with group_key.

        • Optionallimit?: number

          Maximum snapshots returned, from 1 to 100.

      Returns Promise<
          {
              after_cursor?: string
              | null;
              before_cursor?: string | null;
              data: {
                  acl?:
                      | {
                          add?: {
                              actions: string[];
                              principal?: string;
                              principal_type: string;
                          }[];
                          add_denies?: {
                              actions: string[];
                              principal?: string;
                              principal_type: string;
                          }[];
                          denies?: {
                              actions: string[];
                              principal?: string;
                              principal_type: string;
                          }[];
                          grants?: {
                              actions: string[];
                              principal?: string;
                              principal_type: string;
                          }[];
                          preserve_denies?: boolean;
                          remove?: { principal?: string; principal_type: string }[];
                          remove_denies?: { principal?: string; principal_type: string }[];
                      }
                      | null;
                  agent?: string;
                  content_type?: string;
                  created_at?: string;
                  current_version?: string;
                  description?: string;
                  file?: string;
                  file_name?: string;
                  file_url?: string;
                  group_key?: string
                  | null;
                  id: string;
                  image_source?: {
                      content_url?: string | null;
                      file?: string | null;
                      height?: number | null;
                      media?: string | null;
                      mime_type?: string | null;
                      refresh_url?: string | null;
                      url?: string | null;
                      width?: number | null;
                  };
                  name?: string;
                  org?: string;
                  sandbox?: string;
                  system?: boolean;
                  team?: string;
                  thread?: string;
                  updated_at?: string;
                  user?: string;
                  version?: number;
              }[];
              has_more: boolean;
          },
      >

      Successful response

    • List an organization's linked accounts Returns the GitHub login each user in the organization signed in with, so clients can tell that a pull request's author and a Platform user are the same person. Users who never signed in with GitHub are absent. Any viewer acting within the organization can list them; other viewers get 404. Pass user to look up specific users instead of listing the whole organization. Results are ordered by user and paginated forward with after_cursor.

      Parameters

      • org: string

        Organization ID (org_...) whose linked accounts should be listed.

      • Optionalparams: { afterCursor?: string; limit?: number; user?: string[] }

        Query parameters.

        • OptionalafterCursor?: string

          Opaque cursor for the next page.

        • Optionallimit?: number

          Maximum accounts returned, from 1 to 100.

        • Optionaluser?: string[]

          Up to 100 user IDs (usr_...) to look up. Omit to list every user in the organization. Users in the list who are outside the organization or have no linked account are absent.

      Returns Promise<
          {
              after_cursor?: string
              | null;
              before_cursor?: string | null;
              data: { account_id: string; provider: string; user: string }[];
              has_more: boolean;
          },
      >

      Successful response

    • Search organizations Returns a paginated list of organizations within the authenticated app scope, optionally filtered by a free-text search term matched against name, slug, and domain (case-insensitive). Results are ordered by relevance when a search term is provided, and by creation time descending otherwise. The response includes only public-facing organization fields: ID, name, domain, and logo. Use the developer-scoped org endpoints to access full organization records. Pagination is offset-based. Pass page and page_size to navigate through results. The has_next and has_prev fields indicate whether adjacent pages exist.

      Parameters

      • Optionalparams: { page?: number; pageSize?: number; search?: string }

        Query parameters.

        • Optionalpage?: number

          Page number to retrieve, starting at 1. Defaults to 1 when omitted.

        • OptionalpageSize?: number

          Number of organizations to return per page. Defaults to 25; maximum is 100.

        • Optionalsearch?: string

          Free-text search term matched against organization name, slug, and domain (case-insensitive). Omit to return all organizations in the app.

      Returns Promise<
          {
              data: {
                  domain?: string;
                  id: string;
                  kind: "personal"
                  | "company";
                  name: string;
              }[];
              has_next?: boolean;
              has_prev?: boolean;
              page?: number;
              page_size?: number;
              total_entries?: number;
              total_pages?: number;
          },
      >

      Successful response

    • List visible task deletions Returns visible task tombstones in ascending (deleted_at, task) order. Tombstones are retained for seven days. Clients must fully resynchronize after retention gaps, and periodically reconcile delayed projections. This is not an immutable mutation log. Upsert live tasks by ID and aggregate version.

      Parameters

      • org: string

        Organization ID (org_...).

      • Optionalparams: { afterCursor?: string; limit?: number }

        Query parameters.

        • OptionalafterCursor?: string

          Opaque cursor from the previous page.

        • Optionallimit?: number

          Page size, capped at 100.

      Returns Promise<
          {
              after_cursor?: string
              | null;
              before_cursor?: string | null;
              data: { deleted_at: string; task: string }[];
              has_more: boolean;
          },
      >

      Successful response