orangeslice 2.1.4-beta.2 → 2.1.4

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.
Files changed (77) hide show
  1. package/dist/cli.js +3 -5
  2. package/dist/ctx.d.ts +12 -7
  3. package/dist/ctx.js +6 -46
  4. package/dist/index.d.ts +1 -20
  5. package/dist/index.js +0 -2
  6. package/docs/integrations/attio/assertEntry.md +44 -0
  7. package/docs/integrations/attio/assertRecord.md +51 -0
  8. package/docs/integrations/attio/createAttribute.md +59 -0
  9. package/docs/integrations/attio/createComment.md +60 -0
  10. package/docs/integrations/attio/createEntry.md +44 -0
  11. package/docs/integrations/attio/createFolder.md +58 -0
  12. package/docs/integrations/attio/createList.md +51 -0
  13. package/docs/integrations/attio/createNote.md +47 -0
  14. package/docs/integrations/attio/createObject.md +39 -0
  15. package/docs/integrations/attio/createRecord.md +49 -0
  16. package/docs/integrations/attio/createSelectOption.md +37 -0
  17. package/docs/integrations/attio/createStatus.md +45 -0
  18. package/docs/integrations/attio/createTask.md +58 -0
  19. package/docs/integrations/attio/createWebhook.md +43 -0
  20. package/docs/integrations/attio/deleteComment.md +21 -0
  21. package/docs/integrations/attio/deleteEntry.md +23 -0
  22. package/docs/integrations/attio/deleteFile.md +21 -0
  23. package/docs/integrations/attio/deleteNote.md +21 -0
  24. package/docs/integrations/attio/deleteRecord.md +23 -0
  25. package/docs/integrations/attio/deleteTask.md +21 -0
  26. package/docs/integrations/attio/deleteWebhook.md +19 -0
  27. package/docs/integrations/attio/getAttribute.md +39 -0
  28. package/docs/integrations/attio/getCallRecording.md +33 -0
  29. package/docs/integrations/attio/getCallTranscript.md +38 -0
  30. package/docs/integrations/attio/getComment.md +31 -0
  31. package/docs/integrations/attio/getEntry.md +33 -0
  32. package/docs/integrations/attio/getFile.md +36 -0
  33. package/docs/integrations/attio/getList.md +33 -0
  34. package/docs/integrations/attio/getMeeting.md +39 -0
  35. package/docs/integrations/attio/getNote.md +33 -0
  36. package/docs/integrations/attio/getObject.md +31 -0
  37. package/docs/integrations/attio/getRecord.md +32 -0
  38. package/docs/integrations/attio/getSelf.md +27 -0
  39. package/docs/integrations/attio/getTask.md +34 -0
  40. package/docs/integrations/attio/getThread.md +36 -0
  41. package/docs/integrations/attio/getWebhook.md +31 -0
  42. package/docs/integrations/attio/getWorkspaceMember.md +32 -0
  43. package/docs/integrations/attio/index.md +122 -0
  44. package/docs/integrations/attio/listAttributes.md +38 -0
  45. package/docs/integrations/attio/listCallRecordings.md +35 -0
  46. package/docs/integrations/attio/listEntries.md +44 -0
  47. package/docs/integrations/attio/listEntryAttributeValues.md +36 -0
  48. package/docs/integrations/attio/listFiles.md +51 -0
  49. package/docs/integrations/attio/listLists.md +28 -0
  50. package/docs/integrations/attio/listMeetings.md +63 -0
  51. package/docs/integrations/attio/listNotes.md +39 -0
  52. package/docs/integrations/attio/listObjects.md +26 -0
  53. package/docs/integrations/attio/listRecordAttributeValues.md +35 -0
  54. package/docs/integrations/attio/listRecordEntries.md +37 -0
  55. package/docs/integrations/attio/listRecords.md +55 -0
  56. package/docs/integrations/attio/listSelectOptions.md +35 -0
  57. package/docs/integrations/attio/listStatuses.md +37 -0
  58. package/docs/integrations/attio/listTasks.md +45 -0
  59. package/docs/integrations/attio/listThreads.md +51 -0
  60. package/docs/integrations/attio/listWebhooks.md +31 -0
  61. package/docs/integrations/attio/listWorkspaceMembers.md +27 -0
  62. package/docs/integrations/attio/overwriteEntry.md +42 -0
  63. package/docs/integrations/attio/overwriteRecord.md +41 -0
  64. package/docs/integrations/attio/searchRecords.md +40 -0
  65. package/docs/integrations/attio/updateAttribute.md +53 -0
  66. package/docs/integrations/attio/updateEntry.md +42 -0
  67. package/docs/integrations/attio/updateList.md +49 -0
  68. package/docs/integrations/attio/updateObject.md +40 -0
  69. package/docs/integrations/attio/updateRecord.md +41 -0
  70. package/docs/integrations/attio/updateSelectOption.md +40 -0
  71. package/docs/integrations/attio/updateStatus.md +47 -0
  72. package/docs/integrations/attio/updateTask.md +57 -0
  73. package/docs/integrations/attio/updateWebhook.md +41 -0
  74. package/docs/integrations/index.md +42 -0
  75. package/docs/services/ctx/index.md +10 -9
  76. package/docs/services/index.md +0 -1
  77. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ # createRecord
2
+
3
+ Create a new record.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.createRecord({
7
+ object: "people",
8
+ data: {
9
+ values: {
10
+ email_addresses: [{ email_address: "jane@acme.com" }],
11
+ name: [{ first_name: "Jane", last_name: "Smith", full_name: "Jane Smith" }],
12
+ job_title: "VP of Engineering"
13
+ }
14
+ }
15
+ });
16
+ ```
17
+
18
+ ## Input
19
+
20
+ ```typescript
21
+ {
22
+ object: string;
23
+ data: {
24
+ values: Record<string, any>;
25
+ }
26
+ }
27
+ ```
28
+
29
+ `object` is a path parameter (e.g. `"people"`, `"companies"`, or a custom object slug). The `data` wrapper is sent as the request body.
30
+
31
+ ## Output
32
+
33
+ ```typescript
34
+ {
35
+ data: {
36
+ id: {
37
+ workspace_id: string;
38
+ object_id: string;
39
+ record_id: string;
40
+ }
41
+ created_at: string;
42
+ web_url: string;
43
+ values: Record<
44
+ string,
45
+ Array<{ active_from?: string; active_until?: string | null; attribute_type?: string; [key: string]: any }>
46
+ >;
47
+ }
48
+ }
49
+ ```
@@ -0,0 +1,37 @@
1
+ # createSelectOption
2
+
3
+ Add a select option to an attribute.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.createSelectOption({
7
+ target: "objects",
8
+ target_identifier: "companies",
9
+ attribute: "industry",
10
+ data: { title: "Financial Services" },
11
+ });
12
+ ```
13
+
14
+ ## Input
15
+
16
+ ```typescript
17
+ {
18
+ target: "objects" | "lists";
19
+ target_identifier: string;
20
+ attribute: string;
21
+ data: {
22
+ title: string;
23
+ };
24
+ }
25
+ ```
26
+
27
+ ## Output
28
+
29
+ ```typescript
30
+ {
31
+ data: {
32
+ id: { option_id: string };
33
+ title: string;
34
+ is_archived: boolean;
35
+ };
36
+ }
37
+ ```
@@ -0,0 +1,45 @@
1
+ # createStatus
2
+
3
+ Add a status to a status attribute.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.createStatus({
7
+ target: "objects",
8
+ target_identifier: "deals",
9
+ attribute: "stage",
10
+ data: {
11
+ title: "Negotiation",
12
+ celebration_enabled: false,
13
+ target_time_in_status: "P0Y0M7DT0H0M0S",
14
+ },
15
+ });
16
+ ```
17
+
18
+ ## Input
19
+
20
+ ```typescript
21
+ {
22
+ target: "objects" | "lists";
23
+ target_identifier: string;
24
+ attribute: string;
25
+ data: {
26
+ title: string;
27
+ celebration_enabled?: boolean;
28
+ target_time_in_status?: string | null; // ISO-8601 duration, e.g. "P0Y0M1DT0H0M0S"
29
+ };
30
+ }
31
+ ```
32
+
33
+ ## Output
34
+
35
+ ```typescript
36
+ {
37
+ data: {
38
+ id: { status_id: string };
39
+ title: string;
40
+ is_archived: boolean;
41
+ celebration_enabled: boolean;
42
+ target_time_in_status: string | null;
43
+ };
44
+ }
45
+ ```
@@ -0,0 +1,58 @@
1
+ # createTask
2
+
3
+ Create a new task.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.createTask({
7
+ data: {
8
+ content: "Send follow-up proposal to Acme Corp",
9
+ format: "plaintext",
10
+ deadline_at: "2026-03-21T17:00:00.000Z",
11
+ is_completed: false,
12
+ assignees: [
13
+ { workspace_member_email_address: "sales@example.com" },
14
+ ],
15
+ linked_records: [
16
+ { target_object: "companies", target_record_id: "rec_01abc123def456" },
17
+ ],
18
+ },
19
+ });
20
+ ```
21
+
22
+ ## Input
23
+
24
+ ```typescript
25
+ {
26
+ data: {
27
+ content: string;
28
+ format: "plaintext";
29
+ deadline_at: string | null;
30
+ is_completed: boolean;
31
+ assignees: Array<
32
+ | { referenced_actor_type: string; referenced_actor_id: string }
33
+ | { workspace_member_email_address: string }
34
+ >;
35
+ linked_records: Array<{
36
+ target_object: string;
37
+ target_record_id: string;
38
+ }>;
39
+ };
40
+ }
41
+ ```
42
+
43
+ ## Output
44
+
45
+ ```typescript
46
+ {
47
+ data: {
48
+ id: { task_id: string };
49
+ content_plaintext: string;
50
+ is_completed: boolean;
51
+ deadline_at: string | null;
52
+ created_at: string;
53
+ created_by_actor: { type: string; id: string | null };
54
+ assignees: Array<{ type: string; id: string | null }>;
55
+ linked_records: Array<{ target_object: string; target_record_id: string }>;
56
+ };
57
+ }
58
+ ```
@@ -0,0 +1,43 @@
1
+ # createWebhook
2
+
3
+ Create a new webhook subscription.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.createWebhook({
7
+ data: {
8
+ target_url: "https://example.com/webhooks/attio",
9
+ subscriptions: [
10
+ { event_type: "record.created", filter: { object: "companies" } },
11
+ { event_type: "record.updated", filter: null },
12
+ ],
13
+ },
14
+ });
15
+ ```
16
+
17
+ ## Input
18
+
19
+ ```typescript
20
+ {
21
+ data: {
22
+ target_url: string;
23
+ subscriptions: Array<{
24
+ event_type: string;
25
+ filter: Record<string, any> | null;
26
+ }>;
27
+ };
28
+ }
29
+ ```
30
+
31
+ ## Output
32
+
33
+ ```typescript
34
+ {
35
+ data: {
36
+ id: { webhook_id: string };
37
+ target_url: string;
38
+ subscriptions: Array<{ event_type: string; filter: Record<string, any> | null }>;
39
+ status: string;
40
+ created_at: string;
41
+ };
42
+ }
43
+ ```
@@ -0,0 +1,21 @@
1
+ # deleteComment
2
+
3
+ Delete a comment.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteComment({
7
+ comment_id: "com_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ comment_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ `void` - No return value on success.
@@ -0,0 +1,23 @@
1
+ # deleteEntry
2
+
3
+ Delete a list entry.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteEntry({
7
+ list_id: "list_01abc123def456",
8
+ entry_id: "entry_01xyz789ghi012",
9
+ });
10
+ ```
11
+
12
+ ## Input
13
+
14
+ ```typescript
15
+ {
16
+ list_id: string;
17
+ entry_id: string;
18
+ }
19
+ ```
20
+
21
+ ## Output
22
+
23
+ `void` - No return value on success.
@@ -0,0 +1,21 @@
1
+ # deleteFile
2
+
3
+ Delete a file or folder.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteFile({
7
+ file_id: "fil_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ file_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ `void` - No return value on success.
@@ -0,0 +1,21 @@
1
+ # deleteNote
2
+
3
+ Delete a note.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteNote({
7
+ note_id: "note_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ note_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ `void` - No return value on success.
@@ -0,0 +1,23 @@
1
+ # deleteRecord
2
+
3
+ Delete a record.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteRecord({
7
+ object: "people",
8
+ record_id: "rec_01abc123def456",
9
+ });
10
+ ```
11
+
12
+ ## Input
13
+
14
+ ```typescript
15
+ {
16
+ object: string;
17
+ record_id: string;
18
+ }
19
+ ```
20
+
21
+ ## Output
22
+
23
+ `void` - No return value on success.
@@ -0,0 +1,21 @@
1
+ # deleteTask
2
+
3
+ Delete a task.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteTask({
7
+ task_id: "task_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ task_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ `void` - No return value on success.
@@ -0,0 +1,19 @@
1
+ # deleteWebhook
2
+
3
+ Delete a webhook.
4
+
5
+ ```typescript
6
+ await integrations.attio.deleteWebhook({ webhook_id: "wh_01abc234def567" });
7
+ ```
8
+
9
+ ## Input
10
+
11
+ ```typescript
12
+ {
13
+ webhook_id: string;
14
+ }
15
+ ```
16
+
17
+ ## Output
18
+
19
+ `void` - No return value on success.
@@ -0,0 +1,39 @@
1
+ # getAttribute
2
+
3
+ Get a single attribute by ID or slug.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getAttribute({
7
+ target: "objects",
8
+ target_identifier: "companies",
9
+ attribute: "industry",
10
+ });
11
+ ```
12
+
13
+ ## Input
14
+
15
+ ```typescript
16
+ {
17
+ target: "objects" | "lists";
18
+ target_identifier: string;
19
+ attribute: string;
20
+ }
21
+ ```
22
+
23
+ ## Output
24
+
25
+ ```typescript
26
+ {
27
+ data: {
28
+ id: { attribute_id: string; object_id?: string; list_id?: string };
29
+ title: string;
30
+ api_slug: string;
31
+ type: string;
32
+ is_required: boolean;
33
+ is_unique: boolean;
34
+ is_multiselect: boolean;
35
+ is_writable: boolean;
36
+ created_at: string;
37
+ };
38
+ }
39
+ ```
@@ -0,0 +1,33 @@
1
+ # getCallRecording
2
+
3
+ Get a call recording by ID.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getCallRecording({
7
+ meeting_id: "mtg_01abc123def456",
8
+ call_recording_id: "cr_01xyz789ghi012",
9
+ });
10
+ ```
11
+
12
+ ## Input
13
+
14
+ ```typescript
15
+ {
16
+ meeting_id: string;
17
+ call_recording_id: string;
18
+ }
19
+ ```
20
+
21
+ ## Output
22
+
23
+ ```typescript
24
+ {
25
+ data: {
26
+ id: { workspace_id: string; meeting_id: string; call_recording_id: string };
27
+ status: "processing" | "completed" | "failed";
28
+ web_url: string;
29
+ created_by_actor: { type: string; id: string | null };
30
+ created_at: string;
31
+ };
32
+ }
33
+ ```
@@ -0,0 +1,38 @@
1
+ # getCallTranscript
2
+
3
+ Get the transcript for a call recording.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getCallTranscript({
7
+ meeting_id: "mtg_01abc123def456",
8
+ call_recording_id: "cr_01xyz789ghi012",
9
+ });
10
+ ```
11
+
12
+ ## Input
13
+
14
+ ```typescript
15
+ {
16
+ meeting_id: string;
17
+ call_recording_id: string;
18
+ cursor?: string;
19
+ }
20
+ ```
21
+
22
+ ## Output
23
+
24
+ ```typescript
25
+ {
26
+ data: {
27
+ id: { workspace_id: string; meeting_id: string; call_recording_id: string };
28
+ transcript: Array<{
29
+ speech: string;
30
+ start_time: number;
31
+ end_time: number;
32
+ speaker: { name: string };
33
+ }>;
34
+ raw_transcript: string;
35
+ web_url: string;
36
+ };
37
+ }
38
+ ```
@@ -0,0 +1,31 @@
1
+ # getComment
2
+
3
+ Get a comment by ID.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getComment({
7
+ comment_id: "com_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ comment_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ ```typescript
22
+ {
23
+ data: {
24
+ id: { comment_id: string };
25
+ thread_id: string;
26
+ content_plaintext: string;
27
+ created_at: string;
28
+ author: { type: string; id: string | null };
29
+ };
30
+ }
31
+ ```
@@ -0,0 +1,33 @@
1
+ # getEntry
2
+
3
+ Get a list entry by ID.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getEntry({
7
+ list_id: "list_01abc123def456",
8
+ entry_id: "entry_01xyz789ghi012",
9
+ });
10
+ ```
11
+
12
+ ## Input
13
+
14
+ ```typescript
15
+ {
16
+ list_id: string;
17
+ entry_id: string;
18
+ }
19
+ ```
20
+
21
+ ## Output
22
+
23
+ ```typescript
24
+ {
25
+ data: {
26
+ id: { workspace_id: string; entry_id: string; list_id: string };
27
+ parent_record_id: string;
28
+ parent_object: string;
29
+ created_at: string;
30
+ entry_values: Record<string, Array<{ active_from?: string; active_until?: string | null; attribute_type?: string; [key: string]: any }>>;
31
+ };
32
+ }
33
+ ```
@@ -0,0 +1,36 @@
1
+ # getFile
2
+
3
+ Get a file by ID.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getFile({
7
+ file_id: "fil_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ file_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ ```typescript
22
+ {
23
+ data: {
24
+ id: { file_id: string };
25
+ name: string;
26
+ type: "file" | "folder";
27
+ mime_type: string | null;
28
+ size: number | null;
29
+ parent_folder_id: string | null;
30
+ record_id: string;
31
+ object_id: string;
32
+ storage_provider: string;
33
+ created_at: string;
34
+ };
35
+ }
36
+ ```
@@ -0,0 +1,33 @@
1
+ # getList
2
+
3
+ Get a list by ID.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getList({
7
+ list_id: "lst_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ list_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ ```typescript
22
+ {
23
+ data: {
24
+ id: { list_id: string; workspace_id: string };
25
+ api_slug: string;
26
+ name: string;
27
+ parent_object: string[];
28
+ workspace_access: string;
29
+ created_by_actor: { type: string; id: string | null };
30
+ created_at: string;
31
+ };
32
+ }
33
+ ```
@@ -0,0 +1,39 @@
1
+ # getMeeting
2
+
3
+ Get a meeting by ID.
4
+
5
+ ```typescript
6
+ const result = await integrations.attio.getMeeting({
7
+ meeting_id: "mtg_01abc123def456",
8
+ });
9
+ ```
10
+
11
+ ## Input
12
+
13
+ ```typescript
14
+ {
15
+ meeting_id: string;
16
+ }
17
+ ```
18
+
19
+ ## Output
20
+
21
+ ```typescript
22
+ {
23
+ data: {
24
+ id: { workspace_id: string; meeting_id: string };
25
+ title: string | null;
26
+ description: string | null;
27
+ is_all_day: boolean;
28
+ start: { datetime?: string; date?: string; timezone?: string | null };
29
+ end: { datetime?: string; date?: string; timezone?: string | null };
30
+ participants: Array<{
31
+ status: "accepted" | "tentative" | "declined" | "pending";
32
+ is_organizer: boolean;
33
+ email_address: string | null;
34
+ }>;
35
+ linked_records: Array<{ object_slug: string; object_id: string; record_id: string }>;
36
+ created_at: string;
37
+ };
38
+ }
39
+ ```