assembly-kit 0.0.4 → 0.0.5

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 (102) hide show
  1. package/CLAUDE.md +33 -30
  2. package/README.md +37 -30
  3. package/dist/client/index.d.mts +6 -0
  4. package/dist/client/index.mjs +9 -0
  5. package/dist/client/index.mjs.map +1 -1
  6. package/dist/index.d.mts +14 -11
  7. package/dist/index.mjs +14 -11
  8. package/dist/lib/modules/app-installs/resource.d.mts +13 -1
  9. package/dist/lib/modules/app-installs/resource.mjs +25 -1
  10. package/dist/lib/modules/app-installs/resource.mjs.map +1 -1
  11. package/dist/lib/modules/app-installs/schema.d.mts +47 -1
  12. package/dist/lib/modules/app-installs/schema.mjs +37 -1
  13. package/dist/lib/modules/app-installs/schema.mjs.map +1 -1
  14. package/dist/lib/modules/clients/resource.d.mts +3 -1
  15. package/dist/lib/modules/clients/resource.mjs +9 -1
  16. package/dist/lib/modules/clients/resource.mjs.map +1 -1
  17. package/dist/lib/modules/clients/schema.d.mts +11 -3
  18. package/dist/lib/modules/clients/schema.mjs +12 -4
  19. package/dist/lib/modules/clients/schema.mjs.map +1 -1
  20. package/dist/lib/modules/companies/resource.d.mts +7 -1
  21. package/dist/lib/modules/companies/resource.mjs +10 -1
  22. package/dist/lib/modules/companies/resource.mjs.map +1 -1
  23. package/dist/lib/modules/companies/schema.d.mts +18 -1
  24. package/dist/lib/modules/companies/schema.mjs +13 -1
  25. package/dist/lib/modules/companies/schema.mjs.map +1 -1
  26. package/dist/lib/modules/custom-fields/resource.d.mts +3 -1
  27. package/dist/lib/modules/custom-fields/resource.mjs +9 -1
  28. package/dist/lib/modules/custom-fields/resource.mjs.map +1 -1
  29. package/dist/lib/modules/custom-fields/schema.d.mts +19 -1
  30. package/dist/lib/modules/custom-fields/schema.mjs +9 -1
  31. package/dist/lib/modules/custom-fields/schema.mjs.map +1 -1
  32. package/dist/lib/modules/files/resource.d.mts +15 -1
  33. package/dist/lib/modules/files/resource.mjs +29 -1
  34. package/dist/lib/modules/files/resource.mjs.map +1 -1
  35. package/dist/lib/modules/files/schema.d.mts +15 -1
  36. package/dist/lib/modules/files/schema.mjs +8 -1
  37. package/dist/lib/modules/files/schema.mjs.map +1 -1
  38. package/dist/lib/modules/forms/resource.d.mts +15 -1
  39. package/dist/lib/modules/forms/resource.mjs +25 -0
  40. package/dist/lib/modules/forms/resource.mjs.map +1 -1
  41. package/dist/lib/modules/forms/schema.d.mts +35 -1
  42. package/dist/lib/modules/forms/schema.mjs +40 -1
  43. package/dist/lib/modules/forms/schema.mjs.map +1 -1
  44. package/dist/lib/modules/index.d.mts +13 -10
  45. package/dist/lib/modules/index.mjs +3 -0
  46. package/dist/lib/modules/internal-users/resource.d.mts +8 -1
  47. package/dist/lib/modules/internal-users/resource.mjs +17 -1
  48. package/dist/lib/modules/internal-users/resource.mjs.map +1 -1
  49. package/dist/lib/modules/internal-users/schema.d.mts +22 -1
  50. package/dist/lib/modules/internal-users/schema.mjs +22 -1
  51. package/dist/lib/modules/internal-users/schema.mjs.map +1 -1
  52. package/dist/lib/modules/invoices/schema.d.mts +1 -1
  53. package/dist/lib/modules/invoices/schema.mjs +1 -0
  54. package/dist/lib/modules/invoices/schema.mjs.map +1 -1
  55. package/dist/lib/modules/me/resource.d.mts +19 -0
  56. package/dist/lib/modules/me/resource.mjs +23 -0
  57. package/dist/lib/modules/me/resource.mjs.map +1 -0
  58. package/dist/lib/modules/me/schema.d.mts +15 -0
  59. package/dist/lib/modules/me/schema.mjs +13 -0
  60. package/dist/lib/modules/me/schema.mjs.map +1 -0
  61. package/dist/lib/modules/message-channels/resource.d.mts +5 -1
  62. package/dist/lib/modules/message-channels/resource.mjs +9 -1
  63. package/dist/lib/modules/message-channels/resource.mjs.map +1 -1
  64. package/dist/lib/modules/message-channels/schema.d.mts +10 -1
  65. package/dist/lib/modules/message-channels/schema.mjs +7 -1
  66. package/dist/lib/modules/message-channels/schema.mjs.map +1 -1
  67. package/dist/lib/modules/notifications/resource.d.mts +2 -0
  68. package/dist/lib/modules/notifications/resource.mjs +8 -0
  69. package/dist/lib/modules/notifications/resource.mjs.map +1 -1
  70. package/dist/lib/modules/prices/resource.d.mts +3 -1
  71. package/dist/lib/modules/prices/resource.mjs +8 -0
  72. package/dist/lib/modules/prices/resource.mjs.map +1 -1
  73. package/dist/lib/modules/prices/schema.d.mts +14 -1
  74. package/dist/lib/modules/prices/schema.mjs +19 -1
  75. package/dist/lib/modules/prices/schema.mjs.map +1 -1
  76. package/dist/lib/modules/products/resource.d.mts +3 -1
  77. package/dist/lib/modules/products/resource.mjs +8 -0
  78. package/dist/lib/modules/products/resource.mjs.map +1 -1
  79. package/dist/lib/modules/products/schema.d.mts +7 -1
  80. package/dist/lib/modules/products/schema.mjs +6 -1
  81. package/dist/lib/modules/products/schema.mjs.map +1 -1
  82. package/dist/lib/modules/refunds/resource.d.mts +27 -0
  83. package/dist/lib/modules/refunds/resource.mjs +40 -0
  84. package/dist/lib/modules/refunds/resource.mjs.map +1 -0
  85. package/dist/lib/modules/refunds/schema.d.mts +35 -0
  86. package/dist/lib/modules/refunds/schema.mjs +32 -0
  87. package/dist/lib/modules/refunds/schema.mjs.map +1 -0
  88. package/dist/lib/modules/task-comments/resource.d.mts +29 -0
  89. package/dist/lib/modules/task-comments/resource.mjs +44 -0
  90. package/dist/lib/modules/task-comments/resource.mjs.map +1 -0
  91. package/dist/lib/modules/task-comments/schema.d.mts +24 -0
  92. package/dist/lib/modules/task-comments/schema.mjs +21 -0
  93. package/dist/lib/modules/task-comments/schema.mjs.map +1 -0
  94. package/dist/lib/modules/tasks/schema.d.mts +1 -1
  95. package/dist/lib/modules/tasks/schema.mjs +1 -1
  96. package/dist/lib/modules/tasks/schema.mjs.map +1 -1
  97. package/dist/schemas/index.d.mts +14 -11
  98. package/dist/schemas/index.mjs +14 -11
  99. package/dist/transport/http.d.mts +2 -0
  100. package/dist/transport/http.mjs +1 -0
  101. package/dist/transport/http.mjs.map +1 -1
  102. package/package.json +2 -2
package/CLAUDE.md CHANGED
@@ -45,36 +45,39 @@ const kit = createAssemblyKit({
45
45
 
46
46
  Access API resources via `kit.<namespace>.<method>()`:
47
47
 
48
- | Namespace | Methods |
49
- | ----------------------- | ------------------------------------------------------------------ |
50
- | `workspace` | `retrieve()` |
51
- | `clients` | `list()` `retrieve()` `create()` `delete()` `listAll()` |
52
- | `companies` | `list()` `retrieve()` `create()` `update()` `delete()` `listAll()` |
53
- | `internalUsers` | `list()` `retrieve()` `listAll()` |
54
- | `notes` | `list()` `retrieve()` `create()` `update()` `delete()` `listAll()` |
55
- | `tasks` | `list()` `retrieve()` `create()` `update()` `delete()` `listAll()` |
56
- | `taskTemplates` | `list()` `retrieve()` `listAll()` |
57
- | `invoices` | `list()` `retrieve()` `create()` `listAll()` |
58
- | `invoiceTemplates` | `list()` `listAll()` |
59
- | `subscriptions` | `list()` `retrieve()` `create()` `cancel()` `listAll()` |
60
- | `subscriptionTemplates` | `list()` `listAll()` |
61
- | `payments` | `list()` `listAll()` |
62
- | `products` | `list()` `retrieve()` `listAll()` |
63
- | `prices` | `list()` `retrieve()` `listAll()` |
64
- | `contracts` | `retrieve()` `send()` |
65
- | `contractTemplates` | `list()` `retrieve()` |
66
- | `forms` | `list()` `retrieve()` `listAll()` |
67
- | `formResponses` | `list()` `create()` |
68
- | `files` | `list()` `retrieve()` `delete()` `listAll()` |
69
- | `fileChannels` | `list()` `retrieve()` `create()` `listAll()` |
70
- | `messageChannels` | `list()` `retrieve()` `create()` `listAll()` |
71
- | `messages` | `list()` `send()` `listAll()` |
72
- | `events` | `list()` `retrieve()` `create()` `listAll()` |
73
- | `notifications` | `list()` `create()` `delete()` `markRead()` `markUnread()` |
74
- | `customFields` | `list()` |
75
- | `customFieldOptions` | `list()` |
76
- | `appConnections` | `list()` `create()` |
77
- | `appInstalls` | `list()` `retrieve()` |
48
+ | Namespace | Methods |
49
+ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
50
+ | `workspace` | `retrieve()` |
51
+ | `me` | `retrieve()` |
52
+ | `clients` | `list()` `retrieve()` `retrieveWithAppVisibility()` `create()` `update()` `delete()` `listAll()` |
53
+ | `companies` | `list()` `retrieve()` `create()` `update()` `delete()` `addClients()` `listAll()` |
54
+ | `internalUsers` | `list()` `retrieve()` `update()` `retrieveNotificationSettings()` `listAll()` |
55
+ | `notes` | `list()` `retrieve()` `create()` `update()` `delete()` `listAll()` |
56
+ | `tasks` | `list()` `retrieve()` `create()` `update()` `delete()` `listAll()` |
57
+ | `taskComments` | `list()` `retrieve()` `delete()` `listAll()` |
58
+ | `taskTemplates` | `list()` `retrieve()` `listAll()` |
59
+ | `invoices` | `list()` `retrieve()` `create()` `listAll()` |
60
+ | `invoiceTemplates` | `list()` `listAll()` |
61
+ | `subscriptions` | `list()` `retrieve()` `create()` `cancel()` `listAll()` |
62
+ | `subscriptionTemplates` | `list()` `listAll()` |
63
+ | `refunds` | `list()` `create()` `listAll()` |
64
+ | `payments` | `list()` `listAll()` |
65
+ | `products` | `list()` `retrieve()` `create()` `listAll()` |
66
+ | `prices` | `list()` `retrieve()` `create()` `listAll()` |
67
+ | `contracts` | `retrieve()` `send()` |
68
+ | `contractTemplates` | `list()` `retrieve()` |
69
+ | `forms` | `list()` `retrieve()` `create()` `listSubmissions()` `listAllSubmissions()` `listAll()` |
70
+ | `formResponses` | `list()` `create()` |
71
+ | `files` | `list()` `retrieve()` `create()` `delete()` `retrieveDownloadUrl()` `download()` `updateFolderPermissions()` `updateRootFolderPermissions()` `listAll()` |
72
+ | `fileChannels` | `list()` `retrieve()` `create()` `listAll()` |
73
+ | `messageChannels` | `list()` `retrieve()` `create()` `listUnread()` `listAll()` |
74
+ | `messages` | `list()` `send()` `listAll()` |
75
+ | `events` | `list()` `retrieve()` `create()` `listAll()` |
76
+ | `notifications` | `list()` `retrieve()` `create()` `delete()` `markRead()` `markUnread()` |
77
+ | `customFields` | `list()` `create()` |
78
+ | `customFieldOptions` | `list()` |
79
+ | `appConnections` | `list()` `create()` |
80
+ | `appInstalls` | `list()` `retrieve()` `retrieveNotificationSettings()` `createNotificationSettings()` `updateNotificationSettings()` |
78
81
 
79
82
  ## Pagination
80
83
 
package/README.md CHANGED
@@ -141,36 +141,43 @@ const kit = createAssemblyKit({
141
141
 
142
142
  #### Resource namespaces
143
143
 
144
- | Namespace | Methods |
145
- | ----------------------- | ----------------------------------------------------------------------- |
146
- | `workspace` | `retrieve()` |
147
- | `clients` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `listAll()` |
148
- | `companies` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `listAll()` |
149
- | `internalUsers` | `list()`, `retrieve()`, `listAll()` |
150
- | `customFields` | `list()` |
151
- | `customFieldOptions` | `list()` |
152
- | `notes` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `listAll()` |
153
- | `messageChannels` | `list()`, `retrieve()`, `create()`, `listAll()` |
154
- | `messages` | `list()`, `send()`, `listAll()` |
155
- | `products` | `list()`, `retrieve()`, `listAll()` |
156
- | `prices` | `list()`, `retrieve()`, `listAll()` |
157
- | `invoiceTemplates` | `list()`, `listAll()` |
158
- | `invoices` | `list()`, `retrieve()`, `create()`, `listAll()` |
159
- | `subscriptionTemplates` | `list()`, `listAll()` |
160
- | `subscriptions` | `list()`, `retrieve()`, `create()`, `cancel()`, `listAll()` |
161
- | `payments` | `list()`, `listAll()` |
162
- | `fileChannels` | `list()`, `retrieve()`, `create()`, `listAll()` |
163
- | `files` | `list()`, `retrieve()`, `create()`, `delete()`, `listAll()` |
164
- | `contractTemplates` | `list()`, `retrieve()`, `listAll()` |
165
- | `contracts` | `list()`, `retrieve()`, `send()` |
166
- | `forms` | `list()`, `retrieve()`, `listAll()` |
167
- | `formResponses` | `list()`, `create()` |
168
- | `tasks` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `listAll()` |
169
- | `taskTemplates` | `list()`, `retrieve()`, `listAll()` |
170
- | `notifications` | `list()`, `create()`, `delete()`, `markRead()`, `markUnread()` |
171
- | `events` | `list()`, `retrieve()`, `create()`, `listAll()` |
172
- | `appConnections` | `list()`, `create()` |
173
- | `appInstalls` | `list()`, `retrieve()` |
144
+ | Namespace | Methods |
145
+ | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
146
+ | `workspace` | `retrieve()` |
147
+ | `me` | `retrieve()` |
148
+ | `clients` | `list()`, `retrieve()`, `retrieveWithAppVisibility()`, `create()`, `update()`, `delete()`, `listAll()` |
149
+ | `companies` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `addClients()`, `listAll()` |
150
+ | `internalUsers` | `list()`, `retrieve()`, `update()`, `retrieveNotificationSettings()`, `listAll()` |
151
+ | `customFields` | `list()`, `create()` |
152
+ | `customFieldOptions` | `list()` |
153
+ | `notes` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `listAll()` |
154
+ | `messageChannels` | `list()`, `retrieve()`, `create()`, `listUnread()`, `listAll()` |
155
+ | `messages` | `list()`, `send()`, `listAll()` |
156
+ | `products` | `list()`, `retrieve()`, `create()`, `listAll()` |
157
+ | `prices` | `list()`, `retrieve()`, `create()`, `listAll()` |
158
+ | `invoiceTemplates` | `list()`, `listAll()` |
159
+ | `invoices` | `list()`, `retrieve()`, `create()`, `listAll()` |
160
+ | `subscriptionTemplates` | `list()`, `listAll()` |
161
+ | `subscriptions` | `list()`, `retrieve()`, `create()`, `cancel()`, `listAll()` |
162
+ | `refunds` | `list()`, `create()`, `listAll()` |
163
+ | `payments` | `list()`, `listAll()` |
164
+ | `fileChannels` | `list()`, `retrieve()`, `create()`, `listAll()` |
165
+ | `files` | `list()`, `retrieve()`, `create()`, `delete()`, `retrieveDownloadUrl()`, `download()`, `updateFolderPermissions()`, `updateRootFolderPermissions()`, `listAll()` |
166
+ | `contractTemplates` | `list()`, `retrieve()`, `listAll()` |
167
+ | `contracts` | `list()`, `retrieve()`, `send()` |
168
+ | `forms` | `list()`, `retrieve()`, `create()`, `listSubmissions()`, `listAllSubmissions()`, `listAll()` |
169
+ | `formResponses` | `list()`, `create()` |
170
+ | `tasks` | `list()`, `retrieve()`, `create()`, `update()`, `delete()`, `listAll()` |
171
+ | `taskComments` | `list()`, `retrieve()`, `delete()`, `listAll()` |
172
+ | `taskTemplates` | `list()`, `retrieve()`, `listAll()` |
173
+ | `notifications` | `list()`, `retrieve()`, `create()`, `delete()`, `markRead()`, `markUnread()` |
174
+ | `events` | `list()`, `retrieve()`, `create()`, `listAll()` |
175
+ | `appConnections` | `list()`, `create()` |
176
+ | `appInstalls` | `list()`, `retrieve()`, `retrieveNotificationSettings()`, `createNotificationSettings()`, `updateNotificationSettings()` |
177
+
178
+ `files.download()` returns an `ArrayBuffer` — the endpoint streams `application/octet-stream`
179
+ rather than JSON. Use `files.retrieveDownloadUrl()` instead when you want a presigned URL to
180
+ hand to a browser.
174
181
 
175
182
  ### Pagination
176
183
 
@@ -14,6 +14,7 @@ import { FormsResource } from "../lib/modules/forms/resource.mjs";
14
14
  import { InternalUsersResource } from "../lib/modules/internal-users/resource.mjs";
15
15
  import { InvoiceTemplatesResource } from "../lib/modules/invoice-templates/resource.mjs";
16
16
  import { InvoicesResource } from "../lib/modules/invoices/resource.mjs";
17
+ import { MeResource } from "../lib/modules/me/resource.mjs";
17
18
  import { MessageChannelsResource } from "../lib/modules/message-channels/resource.mjs";
18
19
  import { MessagesResource } from "../lib/modules/messages/resource.mjs";
19
20
  import { NotesResource } from "../lib/modules/notes/resource.mjs";
@@ -21,8 +22,10 @@ import { NotificationsResource } from "../lib/modules/notifications/resource.mjs
21
22
  import { PaymentsResource } from "../lib/modules/payments/resource.mjs";
22
23
  import { PricesResource } from "../lib/modules/prices/resource.mjs";
23
24
  import { ProductsResource } from "../lib/modules/products/resource.mjs";
25
+ import { RefundsResource } from "../lib/modules/refunds/resource.mjs";
24
26
  import { SubscriptionTemplatesResource } from "../lib/modules/subscription-templates/resource.mjs";
25
27
  import { SubscriptionsResource } from "../lib/modules/subscriptions/resource.mjs";
28
+ import { TaskCommentsResource } from "../lib/modules/task-comments/resource.mjs";
26
29
  import { TaskTemplatesResource } from "../lib/modules/task-templates/resource.mjs";
27
30
  import { TasksResource } from "../lib/modules/tasks/resource.mjs";
28
31
  import { WorkspaceResource } from "../lib/modules/workspace/resource.mjs";
@@ -85,6 +88,7 @@ declare class AssemblyKit<TClientCustomFields extends Record<string, unknown> =
85
88
  readonly internalUsers: InternalUsersResource;
86
89
  readonly invoiceTemplates: InvoiceTemplatesResource;
87
90
  readonly invoices: InvoicesResource;
91
+ readonly me: MeResource;
88
92
  readonly messageChannels: MessageChannelsResource;
89
93
  readonly messages: MessagesResource;
90
94
  readonly notes: NotesResource;
@@ -92,8 +96,10 @@ declare class AssemblyKit<TClientCustomFields extends Record<string, unknown> =
92
96
  readonly payments: PaymentsResource;
93
97
  readonly prices: PricesResource;
94
98
  readonly products: ProductsResource;
99
+ readonly refunds: RefundsResource;
95
100
  readonly subscriptionTemplates: SubscriptionTemplatesResource;
96
101
  readonly subscriptions: SubscriptionsResource;
102
+ readonly taskComments: TaskCommentsResource;
97
103
  readonly taskTemplates: TaskTemplatesResource;
98
104
  readonly tasks: TasksResource;
99
105
  readonly workspace: WorkspaceResource;
@@ -15,6 +15,7 @@ import { FormsResource } from "../lib/modules/forms/resource.mjs";
15
15
  import { InternalUsersResource } from "../lib/modules/internal-users/resource.mjs";
16
16
  import { InvoiceTemplatesResource } from "../lib/modules/invoice-templates/resource.mjs";
17
17
  import { InvoicesResource } from "../lib/modules/invoices/resource.mjs";
18
+ import { MeResource } from "../lib/modules/me/resource.mjs";
18
19
  import { MessageChannelsResource } from "../lib/modules/message-channels/resource.mjs";
19
20
  import { MessagesResource } from "../lib/modules/messages/resource.mjs";
20
21
  import { NotesResource } from "../lib/modules/notes/resource.mjs";
@@ -22,8 +23,10 @@ import { NotificationsResource } from "../lib/modules/notifications/resource.mjs
22
23
  import { PaymentsResource } from "../lib/modules/payments/resource.mjs";
23
24
  import { PricesResource } from "../lib/modules/prices/resource.mjs";
24
25
  import { ProductsResource } from "../lib/modules/products/resource.mjs";
26
+ import { RefundsResource } from "../lib/modules/refunds/resource.mjs";
25
27
  import { SubscriptionTemplatesResource } from "../lib/modules/subscription-templates/resource.mjs";
26
28
  import { SubscriptionsResource } from "../lib/modules/subscriptions/resource.mjs";
29
+ import { TaskCommentsResource } from "../lib/modules/task-comments/resource.mjs";
27
30
  import { TaskTemplatesResource } from "../lib/modules/task-templates/resource.mjs";
28
31
  import { TasksResource } from "../lib/modules/tasks/resource.mjs";
29
32
  import { WorkspaceResource } from "../lib/modules/workspace/resource.mjs";
@@ -89,6 +92,7 @@ var AssemblyKit = class {
89
92
  internalUsers;
90
93
  invoiceTemplates;
91
94
  invoices;
95
+ me;
92
96
  messageChannels;
93
97
  messages;
94
98
  notes;
@@ -96,8 +100,10 @@ var AssemblyKit = class {
96
100
  payments;
97
101
  prices;
98
102
  products;
103
+ refunds;
99
104
  subscriptionTemplates;
100
105
  subscriptions;
106
+ taskComments;
101
107
  taskTemplates;
102
108
  tasks;
103
109
  workspace;
@@ -138,6 +144,7 @@ var AssemblyKit = class {
138
144
  this.internalUsers = new InternalUsersResource(ctx);
139
145
  this.invoiceTemplates = new InvoiceTemplatesResource(ctx);
140
146
  this.invoices = new InvoicesResource(ctx);
147
+ this.me = new MeResource(ctx);
141
148
  this.messageChannels = new MessageChannelsResource(ctx);
142
149
  this.messages = new MessagesResource(ctx);
143
150
  this.notes = new NotesResource(ctx);
@@ -145,8 +152,10 @@ var AssemblyKit = class {
145
152
  this.payments = new PaymentsResource(ctx);
146
153
  this.prices = new PricesResource(ctx);
147
154
  this.products = new ProductsResource(ctx);
155
+ this.refunds = new RefundsResource(ctx);
148
156
  this.subscriptionTemplates = new SubscriptionTemplatesResource(ctx);
149
157
  this.subscriptions = new SubscriptionsResource(ctx);
158
+ this.taskComments = new TaskCommentsResource(ctx);
150
159
  this.taskTemplates = new TaskTemplatesResource(ctx);
151
160
  this.tasks = new TasksResource(ctx);
152
161
  this.workspace = new WorkspaceResource(ctx);
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../../src/client/index.ts"],"sourcesContent":["import { AssemblyNoTokenError } from \"src/errors/no-token\";\nimport { AppConnectionsResource } from \"src/lib/modules/app-connections/resource\";\nimport { AppInstallsResource } from \"src/lib/modules/app-installs/resource\";\nimport { ClientsResource } from \"src/lib/modules/clients/resource\";\nimport { CompaniesResource } from \"src/lib/modules/companies/resource\";\nimport { ContractTemplatesResource } from \"src/lib/modules/contract-templates/resource\";\nimport { ContractsResource } from \"src/lib/modules/contracts/resource\";\nimport { CustomFieldOptionsResource } from \"src/lib/modules/custom-field-options/resource\";\nimport { CustomFieldsResource } from \"src/lib/modules/custom-fields/resource\";\nimport { EventsResource } from \"src/lib/modules/events/resource\";\nimport { FileChannelsResource } from \"src/lib/modules/file-channels/resource\";\nimport { FilesResource } from \"src/lib/modules/files/resource\";\nimport { FormResponsesResource } from \"src/lib/modules/form-responses/resource\";\nimport { FormsResource } from \"src/lib/modules/forms/resource\";\nimport { InternalUsersResource } from \"src/lib/modules/internal-users/resource\";\nimport { InvoiceTemplatesResource } from \"src/lib/modules/invoice-templates/resource\";\nimport { InvoicesResource } from \"src/lib/modules/invoices/resource\";\nimport { MessageChannelsResource } from \"src/lib/modules/message-channels/resource\";\nimport { MessagesResource } from \"src/lib/modules/messages/resource\";\nimport { NotesResource } from \"src/lib/modules/notes/resource\";\nimport { NotificationsResource } from \"src/lib/modules/notifications/resource\";\nimport { PaymentsResource } from \"src/lib/modules/payments/resource\";\nimport { PricesResource } from \"src/lib/modules/prices/resource\";\nimport { ProductsResource } from \"src/lib/modules/products/resource\";\nimport { SubscriptionTemplatesResource } from \"src/lib/modules/subscription-templates/resource\";\nimport { SubscriptionsResource } from \"src/lib/modules/subscriptions/resource\";\nimport { TaskTemplatesResource } from \"src/lib/modules/task-templates/resource\";\nimport { TasksResource } from \"src/lib/modules/tasks/resource\";\nimport { WorkspaceResource } from \"src/lib/modules/workspace/resource\";\nimport {\n AssemblyToken,\n type ClientTokenPayload,\n type InternalUserTokenPayload,\n} from \"src/token/assembly-token\";\nimport { createTransport } from \"src/transport/http\";\nimport { SDK_VERSION } from \"src/version\";\n\nimport { KitMode } from \"src/constants/kit-mode\";\n\nimport type { AssemblyKitOptions } from \"./options\";\n\nexport type { AssemblyKitOptions } from \"./options\";\n\n/**\n * Create a new `AssemblyKit` instance. Each call produces an independent client\n * with its own HTTP transport, rate limiter, and credentials — safe for\n * multi-workspace and serverless usage.\n *\n * Pass an optional `TClientCustomFields` (and optional `TCompanyCustomFields`)\n * generic to type the `customFields` shape returned from\n * `kit.clients.*` and `kit.companies.*` endpoints.\n *\n * @example\n * ```ts\n * // Untyped customFields (default)\n * const kit = createAssemblyKit({ apiKey, workspaceId });\n *\n * // Typed customFields — applies to both clients and companies\n * const kit = createAssemblyKit<{ roles: string[] }>({ apiKey, workspaceId });\n * const c = await kit.clients.retrieve(\"id\"); // c.customFields: { roles: string[] } | null | undefined\n *\n * // Different shapes per resource\n * const kit = createAssemblyKit<\n * { roles: string[] },\n * { industry: string }\n * >({ apiKey, workspaceId });\n * ```\n */\nexport function createAssemblyKit<\n TClientCustomFields extends Record<string, unknown> = Record<string, unknown>,\n TCompanyCustomFields extends Record<string, unknown> = TClientCustomFields,\n>(options: AssemblyKitOptions): AssemblyKit<TClientCustomFields, TCompanyCustomFields> {\n return new AssemblyKit<TClientCustomFields, TCompanyCustomFields>(options);\n}\n\n/**\n * Assembly SDK client with typed resource namespaces and Zod response validation.\n *\n * Each instance has its own `ky`-based HTTP transport with independent\n * rate limiting, retry, and auth headers. No shared singletons.\n *\n * Generic parameters:\n * - `TClientCustomFields` — shape of `customFields` on Client responses\n * - `TCompanyCustomFields` — shape of `customFields` on Company responses (defaults to `TClientCustomFields`)\n */\nexport class AssemblyKit<\n TClientCustomFields extends Record<string, unknown> = Record<string, unknown>,\n TCompanyCustomFields extends Record<string, unknown> = TClientCustomFields,\n> {\n /** The decrypted AssemblyToken instance, or undefined when no token was provided. */\n readonly token: AssemblyToken | undefined;\n readonly appConnections: AppConnectionsResource;\n readonly appInstalls: AppInstallsResource;\n readonly clients: ClientsResource<TClientCustomFields>;\n readonly companies: CompaniesResource<TCompanyCustomFields>;\n readonly contractTemplates: ContractTemplatesResource;\n readonly contracts: ContractsResource;\n readonly customFieldOptions: CustomFieldOptionsResource;\n readonly customFields: CustomFieldsResource;\n readonly events: EventsResource;\n readonly fileChannels: FileChannelsResource;\n readonly files: FilesResource;\n readonly formResponses: FormResponsesResource;\n readonly forms: FormsResource;\n readonly internalUsers: InternalUsersResource;\n readonly invoiceTemplates: InvoiceTemplatesResource;\n readonly invoices: InvoicesResource;\n readonly messageChannels: MessageChannelsResource;\n readonly messages: MessagesResource;\n readonly notes: NotesResource;\n readonly notifications: NotificationsResource;\n readonly payments: PaymentsResource;\n readonly prices: PricesResource;\n readonly products: ProductsResource;\n readonly subscriptionTemplates: SubscriptionTemplatesResource;\n readonly subscriptions: SubscriptionsResource;\n readonly taskTemplates: TaskTemplatesResource;\n readonly tasks: TasksResource;\n readonly workspace: WorkspaceResource;\n\n constructor(options: AssemblyKitOptions) {\n const mode: KitMode = options.kitMode ?? KitMode.Local;\n\n if (mode === KitMode.Marketplace && !options.token && !options.workspaceId) {\n throw new AssemblyNoTokenError({\n message: \"Marketplace mode requires either `token` or `workspaceId`.\",\n });\n }\n\n this.token = options.token\n ? new AssemblyToken({ token: options.token, apiKey: options.apiKey })\n : undefined;\n\n let compoundKey: string;\n if (this.token) {\n compoundKey = this.token.buildCompoundKey({ apiKey: options.apiKey });\n } else if (options.workspaceId) {\n compoundKey = `${options.workspaceId}/${options.apiKey}`;\n } else {\n compoundKey = options.apiKey;\n }\n\n const transport = createTransport({\n baseUrl: options.baseUrl,\n compoundKey,\n fetch: options.fetch,\n requestsPerSecond: options.requestsPerSecond,\n retryCount: options.retryCount,\n sdkVersion: SDK_VERSION,\n });\n\n const validate: boolean = options.validateResponses ?? true;\n const ctx = { transport, validateResponses: validate };\n\n this.appConnections = new AppConnectionsResource(ctx);\n this.appInstalls = new AppInstallsResource(ctx);\n this.clients = new ClientsResource<TClientCustomFields>(ctx);\n this.companies = new CompaniesResource<TCompanyCustomFields>(ctx);\n this.contractTemplates = new ContractTemplatesResource(ctx);\n this.contracts = new ContractsResource(ctx);\n this.customFieldOptions = new CustomFieldOptionsResource(ctx);\n this.customFields = new CustomFieldsResource(ctx);\n this.events = new EventsResource(ctx);\n this.fileChannels = new FileChannelsResource(ctx);\n this.files = new FilesResource(ctx);\n this.formResponses = new FormResponsesResource(ctx);\n this.forms = new FormsResource(ctx);\n this.internalUsers = new InternalUsersResource(ctx);\n this.invoiceTemplates = new InvoiceTemplatesResource(ctx);\n this.invoices = new InvoicesResource(ctx);\n this.messageChannels = new MessageChannelsResource(ctx);\n this.messages = new MessagesResource(ctx);\n this.notes = new NotesResource(ctx);\n this.notifications = new NotificationsResource(ctx);\n this.payments = new PaymentsResource(ctx);\n this.prices = new PricesResource(ctx);\n this.products = new ProductsResource(ctx);\n this.subscriptionTemplates = new SubscriptionTemplatesResource(ctx);\n this.subscriptions = new SubscriptionsResource(ctx);\n this.taskTemplates = new TaskTemplatesResource(ctx);\n this.tasks = new TasksResource(ctx);\n this.workspace = new WorkspaceResource(ctx);\n }\n\n /** Assert that a token was provided and belongs to a client user. */\n ensureIsClient(): ClientTokenPayload {\n if (!this.token) throw new AssemblyNoTokenError();\n return this.token.ensureIsClient();\n }\n\n /** Assert that a token was provided and belongs to an internal user. */\n ensureIsInternalUser(): InternalUserTokenPayload {\n if (!this.token) throw new AssemblyNoTokenError();\n return this.token.ensureIsInternalUser();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEA,SAAgB,kBAGd,SAAqF;AACrF,QAAO,IAAI,YAAuD,QAAQ;;;;;;;;;;;;AAa5E,IAAa,cAAb,MAGE;;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,YAAY,SAA6B;AAGvC,OAFsB,QAAQ,WAAW,QAAQ,WAEpC,QAAQ,eAAe,CAAC,QAAQ,SAAS,CAAC,QAAQ,YAC7D,OAAM,IAAI,qBAAqB,EAC7B,SAAS,8DACV,CAAC;AAGJ,OAAK,QAAQ,QAAQ,QACjB,IAAI,cAAc;GAAE,OAAO,QAAQ;GAAO,QAAQ,QAAQ;GAAQ,CAAC,GACnE,KAAA;EAEJ,IAAI;AACJ,MAAI,KAAK,MACP,eAAc,KAAK,MAAM,iBAAiB,EAAE,QAAQ,QAAQ,QAAQ,CAAC;WAC5D,QAAQ,YACjB,eAAc,GAAG,QAAQ,YAAY,GAAG,QAAQ;MAEhD,eAAc,QAAQ;EAaxB,MAAM,MAAM;GAAE,WAVI,gBAAgB;IAChC,SAAS,QAAQ;IACjB;IACA,OAAO,QAAQ;IACf,mBAAmB,QAAQ;IAC3B,YAAY,QAAQ;IACpB,YAAY;IACb,CAGsB;GAAE,mBADC,QAAQ,qBAAqB;GACD;AAEtD,OAAK,iBAAiB,IAAI,uBAAuB,IAAI;AACrD,OAAK,cAAc,IAAI,oBAAoB,IAAI;AAC/C,OAAK,UAAU,IAAI,gBAAqC,IAAI;AAC5D,OAAK,YAAY,IAAI,kBAAwC,IAAI;AACjE,OAAK,oBAAoB,IAAI,0BAA0B,IAAI;AAC3D,OAAK,YAAY,IAAI,kBAAkB,IAAI;AAC3C,OAAK,qBAAqB,IAAI,2BAA2B,IAAI;AAC7D,OAAK,eAAe,IAAI,qBAAqB,IAAI;AACjD,OAAK,SAAS,IAAI,eAAe,IAAI;AACrC,OAAK,eAAe,IAAI,qBAAqB,IAAI;AACjD,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,mBAAmB,IAAI,yBAAyB,IAAI;AACzD,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,kBAAkB,IAAI,wBAAwB,IAAI;AACvD,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,SAAS,IAAI,eAAe,IAAI;AACrC,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,wBAAwB,IAAI,8BAA8B,IAAI;AACnE,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,YAAY,IAAI,kBAAkB,IAAI;;;CAI7C,iBAAqC;AACnC,MAAI,CAAC,KAAK,MAAO,OAAM,IAAI,sBAAsB;AACjD,SAAO,KAAK,MAAM,gBAAgB;;;CAIpC,uBAAiD;AAC/C,MAAI,CAAC,KAAK,MAAO,OAAM,IAAI,sBAAsB;AACjD,SAAO,KAAK,MAAM,sBAAsB"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../src/client/index.ts"],"sourcesContent":["import { AssemblyNoTokenError } from \"src/errors/no-token\";\nimport { AppConnectionsResource } from \"src/lib/modules/app-connections/resource\";\nimport { AppInstallsResource } from \"src/lib/modules/app-installs/resource\";\nimport { ClientsResource } from \"src/lib/modules/clients/resource\";\nimport { CompaniesResource } from \"src/lib/modules/companies/resource\";\nimport { ContractTemplatesResource } from \"src/lib/modules/contract-templates/resource\";\nimport { ContractsResource } from \"src/lib/modules/contracts/resource\";\nimport { CustomFieldOptionsResource } from \"src/lib/modules/custom-field-options/resource\";\nimport { CustomFieldsResource } from \"src/lib/modules/custom-fields/resource\";\nimport { EventsResource } from \"src/lib/modules/events/resource\";\nimport { FileChannelsResource } from \"src/lib/modules/file-channels/resource\";\nimport { FilesResource } from \"src/lib/modules/files/resource\";\nimport { FormResponsesResource } from \"src/lib/modules/form-responses/resource\";\nimport { FormsResource } from \"src/lib/modules/forms/resource\";\nimport { InternalUsersResource } from \"src/lib/modules/internal-users/resource\";\nimport { InvoiceTemplatesResource } from \"src/lib/modules/invoice-templates/resource\";\nimport { InvoicesResource } from \"src/lib/modules/invoices/resource\";\nimport { MeResource } from \"src/lib/modules/me/resource\";\nimport { MessageChannelsResource } from \"src/lib/modules/message-channels/resource\";\nimport { MessagesResource } from \"src/lib/modules/messages/resource\";\nimport { NotesResource } from \"src/lib/modules/notes/resource\";\nimport { NotificationsResource } from \"src/lib/modules/notifications/resource\";\nimport { PaymentsResource } from \"src/lib/modules/payments/resource\";\nimport { PricesResource } from \"src/lib/modules/prices/resource\";\nimport { ProductsResource } from \"src/lib/modules/products/resource\";\nimport { RefundsResource } from \"src/lib/modules/refunds/resource\";\nimport { SubscriptionTemplatesResource } from \"src/lib/modules/subscription-templates/resource\";\nimport { SubscriptionsResource } from \"src/lib/modules/subscriptions/resource\";\nimport { TaskCommentsResource } from \"src/lib/modules/task-comments/resource\";\nimport { TaskTemplatesResource } from \"src/lib/modules/task-templates/resource\";\nimport { TasksResource } from \"src/lib/modules/tasks/resource\";\nimport { WorkspaceResource } from \"src/lib/modules/workspace/resource\";\nimport {\n AssemblyToken,\n type ClientTokenPayload,\n type InternalUserTokenPayload,\n} from \"src/token/assembly-token\";\nimport { createTransport } from \"src/transport/http\";\nimport { SDK_VERSION } from \"src/version\";\n\nimport { KitMode } from \"src/constants/kit-mode\";\n\nimport type { AssemblyKitOptions } from \"./options\";\n\nexport type { AssemblyKitOptions } from \"./options\";\n\n/**\n * Create a new `AssemblyKit` instance. Each call produces an independent client\n * with its own HTTP transport, rate limiter, and credentials — safe for\n * multi-workspace and serverless usage.\n *\n * Pass an optional `TClientCustomFields` (and optional `TCompanyCustomFields`)\n * generic to type the `customFields` shape returned from\n * `kit.clients.*` and `kit.companies.*` endpoints.\n *\n * @example\n * ```ts\n * // Untyped customFields (default)\n * const kit = createAssemblyKit({ apiKey, workspaceId });\n *\n * // Typed customFields — applies to both clients and companies\n * const kit = createAssemblyKit<{ roles: string[] }>({ apiKey, workspaceId });\n * const c = await kit.clients.retrieve(\"id\"); // c.customFields: { roles: string[] } | null | undefined\n *\n * // Different shapes per resource\n * const kit = createAssemblyKit<\n * { roles: string[] },\n * { industry: string }\n * >({ apiKey, workspaceId });\n * ```\n */\nexport function createAssemblyKit<\n TClientCustomFields extends Record<string, unknown> = Record<string, unknown>,\n TCompanyCustomFields extends Record<string, unknown> = TClientCustomFields,\n>(options: AssemblyKitOptions): AssemblyKit<TClientCustomFields, TCompanyCustomFields> {\n return new AssemblyKit<TClientCustomFields, TCompanyCustomFields>(options);\n}\n\n/**\n * Assembly SDK client with typed resource namespaces and Zod response validation.\n *\n * Each instance has its own `ky`-based HTTP transport with independent\n * rate limiting, retry, and auth headers. No shared singletons.\n *\n * Generic parameters:\n * - `TClientCustomFields` — shape of `customFields` on Client responses\n * - `TCompanyCustomFields` — shape of `customFields` on Company responses (defaults to `TClientCustomFields`)\n */\nexport class AssemblyKit<\n TClientCustomFields extends Record<string, unknown> = Record<string, unknown>,\n TCompanyCustomFields extends Record<string, unknown> = TClientCustomFields,\n> {\n /** The decrypted AssemblyToken instance, or undefined when no token was provided. */\n readonly token: AssemblyToken | undefined;\n readonly appConnections: AppConnectionsResource;\n readonly appInstalls: AppInstallsResource;\n readonly clients: ClientsResource<TClientCustomFields>;\n readonly companies: CompaniesResource<TCompanyCustomFields>;\n readonly contractTemplates: ContractTemplatesResource;\n readonly contracts: ContractsResource;\n readonly customFieldOptions: CustomFieldOptionsResource;\n readonly customFields: CustomFieldsResource;\n readonly events: EventsResource;\n readonly fileChannels: FileChannelsResource;\n readonly files: FilesResource;\n readonly formResponses: FormResponsesResource;\n readonly forms: FormsResource;\n readonly internalUsers: InternalUsersResource;\n readonly invoiceTemplates: InvoiceTemplatesResource;\n readonly invoices: InvoicesResource;\n readonly me: MeResource;\n readonly messageChannels: MessageChannelsResource;\n readonly messages: MessagesResource;\n readonly notes: NotesResource;\n readonly notifications: NotificationsResource;\n readonly payments: PaymentsResource;\n readonly prices: PricesResource;\n readonly products: ProductsResource;\n readonly refunds: RefundsResource;\n readonly subscriptionTemplates: SubscriptionTemplatesResource;\n readonly subscriptions: SubscriptionsResource;\n readonly taskComments: TaskCommentsResource;\n readonly taskTemplates: TaskTemplatesResource;\n readonly tasks: TasksResource;\n readonly workspace: WorkspaceResource;\n\n constructor(options: AssemblyKitOptions) {\n const mode: KitMode = options.kitMode ?? KitMode.Local;\n\n if (mode === KitMode.Marketplace && !options.token && !options.workspaceId) {\n throw new AssemblyNoTokenError({\n message: \"Marketplace mode requires either `token` or `workspaceId`.\",\n });\n }\n\n this.token = options.token\n ? new AssemblyToken({ token: options.token, apiKey: options.apiKey })\n : undefined;\n\n let compoundKey: string;\n if (this.token) {\n compoundKey = this.token.buildCompoundKey({ apiKey: options.apiKey });\n } else if (options.workspaceId) {\n compoundKey = `${options.workspaceId}/${options.apiKey}`;\n } else {\n compoundKey = options.apiKey;\n }\n\n const transport = createTransport({\n baseUrl: options.baseUrl,\n compoundKey,\n fetch: options.fetch,\n requestsPerSecond: options.requestsPerSecond,\n retryCount: options.retryCount,\n sdkVersion: SDK_VERSION,\n });\n\n const validate: boolean = options.validateResponses ?? true;\n const ctx = { transport, validateResponses: validate };\n\n this.appConnections = new AppConnectionsResource(ctx);\n this.appInstalls = new AppInstallsResource(ctx);\n this.clients = new ClientsResource<TClientCustomFields>(ctx);\n this.companies = new CompaniesResource<TCompanyCustomFields>(ctx);\n this.contractTemplates = new ContractTemplatesResource(ctx);\n this.contracts = new ContractsResource(ctx);\n this.customFieldOptions = new CustomFieldOptionsResource(ctx);\n this.customFields = new CustomFieldsResource(ctx);\n this.events = new EventsResource(ctx);\n this.fileChannels = new FileChannelsResource(ctx);\n this.files = new FilesResource(ctx);\n this.formResponses = new FormResponsesResource(ctx);\n this.forms = new FormsResource(ctx);\n this.internalUsers = new InternalUsersResource(ctx);\n this.invoiceTemplates = new InvoiceTemplatesResource(ctx);\n this.invoices = new InvoicesResource(ctx);\n this.me = new MeResource(ctx);\n this.messageChannels = new MessageChannelsResource(ctx);\n this.messages = new MessagesResource(ctx);\n this.notes = new NotesResource(ctx);\n this.notifications = new NotificationsResource(ctx);\n this.payments = new PaymentsResource(ctx);\n this.prices = new PricesResource(ctx);\n this.products = new ProductsResource(ctx);\n this.refunds = new RefundsResource(ctx);\n this.subscriptionTemplates = new SubscriptionTemplatesResource(ctx);\n this.subscriptions = new SubscriptionsResource(ctx);\n this.taskComments = new TaskCommentsResource(ctx);\n this.taskTemplates = new TaskTemplatesResource(ctx);\n this.tasks = new TasksResource(ctx);\n this.workspace = new WorkspaceResource(ctx);\n }\n\n /** Assert that a token was provided and belongs to a client user. */\n ensureIsClient(): ClientTokenPayload {\n if (!this.token) throw new AssemblyNoTokenError();\n return this.token.ensureIsClient();\n }\n\n /** Assert that a token was provided and belongs to an internal user. */\n ensureIsInternalUser(): InternalUserTokenPayload {\n if (!this.token) throw new AssemblyNoTokenError();\n return this.token.ensureIsInternalUser();\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,SAAgB,kBAGd,SAAqF;AACrF,QAAO,IAAI,YAAuD,QAAQ;;;;;;;;;;;;AAa5E,IAAa,cAAb,MAGE;;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA,YAAY,SAA6B;AAGvC,OAFsB,QAAQ,WAAW,QAAQ,WAEpC,QAAQ,eAAe,CAAC,QAAQ,SAAS,CAAC,QAAQ,YAC7D,OAAM,IAAI,qBAAqB,EAC7B,SAAS,8DACV,CAAC;AAGJ,OAAK,QAAQ,QAAQ,QACjB,IAAI,cAAc;GAAE,OAAO,QAAQ;GAAO,QAAQ,QAAQ;GAAQ,CAAC,GACnE,KAAA;EAEJ,IAAI;AACJ,MAAI,KAAK,MACP,eAAc,KAAK,MAAM,iBAAiB,EAAE,QAAQ,QAAQ,QAAQ,CAAC;WAC5D,QAAQ,YACjB,eAAc,GAAG,QAAQ,YAAY,GAAG,QAAQ;MAEhD,eAAc,QAAQ;EAaxB,MAAM,MAAM;GAAE,WAVI,gBAAgB;IAChC,SAAS,QAAQ;IACjB;IACA,OAAO,QAAQ;IACf,mBAAmB,QAAQ;IAC3B,YAAY,QAAQ;IACpB,YAAY;IACb,CAGsB;GAAE,mBADC,QAAQ,qBAAqB;GACD;AAEtD,OAAK,iBAAiB,IAAI,uBAAuB,IAAI;AACrD,OAAK,cAAc,IAAI,oBAAoB,IAAI;AAC/C,OAAK,UAAU,IAAI,gBAAqC,IAAI;AAC5D,OAAK,YAAY,IAAI,kBAAwC,IAAI;AACjE,OAAK,oBAAoB,IAAI,0BAA0B,IAAI;AAC3D,OAAK,YAAY,IAAI,kBAAkB,IAAI;AAC3C,OAAK,qBAAqB,IAAI,2BAA2B,IAAI;AAC7D,OAAK,eAAe,IAAI,qBAAqB,IAAI;AACjD,OAAK,SAAS,IAAI,eAAe,IAAI;AACrC,OAAK,eAAe,IAAI,qBAAqB,IAAI;AACjD,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,mBAAmB,IAAI,yBAAyB,IAAI;AACzD,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,KAAK,IAAI,WAAW,IAAI;AAC7B,OAAK,kBAAkB,IAAI,wBAAwB,IAAI;AACvD,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,SAAS,IAAI,eAAe,IAAI;AACrC,OAAK,WAAW,IAAI,iBAAiB,IAAI;AACzC,OAAK,UAAU,IAAI,gBAAgB,IAAI;AACvC,OAAK,wBAAwB,IAAI,8BAA8B,IAAI;AACnE,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,eAAe,IAAI,qBAAqB,IAAI;AACjD,OAAK,gBAAgB,IAAI,sBAAsB,IAAI;AACnD,OAAK,QAAQ,IAAI,cAAc,IAAI;AACnC,OAAK,YAAY,IAAI,kBAAkB,IAAI;;;CAI7C,iBAAqC;AACnC,MAAI,CAAC,KAAK,MAAO,OAAM,IAAI,sBAAsB;AACjD,SAAO,KAAK,MAAM,gBAAgB;;;CAIpC,uBAAiD;AAC/C,MAAI,CAAC,KAAK,MAAO,OAAM,IAAI,sBAAsB;AACjD,SAAO,KAAK,MAAM,sBAAsB"}
package/dist/index.d.mts CHANGED
@@ -1,30 +1,33 @@
1
1
  import { MembershipType, MembershipTypeSchema } from "./schemas/shared/membership-type.mjs";
2
2
  import { AppConnection, AppConnectionCreateRequest, AppConnectionCreateRequestSchema, AppConnectionResponse, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionType, AppConnectionTypeSchema, AppConnectionsResponse, AppConnectionsResponseSchema } from "./lib/modules/app-connections/schema.mjs";
3
- import { AppInstall, AppInstallResponse, AppInstallResponseSchema, AppInstallSchema, AppInstallType, AppInstallTypeSchema, AppInstallsResponse, AppInstallsResponseSchema } from "./lib/modules/app-installs/schema.mjs";
4
- import { Client, ClientCreateRequest, ClientCreateRequestSchema, ClientResponse, ClientResponseSchema, ClientSchema, ClientUpdateRequest, ClientUpdateRequestSchema, ClientsResponse, ClientsResponseSchema } from "./lib/modules/clients/schema.mjs";
3
+ import { AppInstall, AppInstallResponse, AppInstallResponseSchema, AppInstallSchema, AppInstallType, AppInstallTypeSchema, AppInstallsResponse, AppInstallsResponseSchema, AppNotificationActionLabel, AppNotificationActionLabelSchema, AppNotificationSetting, AppNotificationSettingSchema, AppNotificationSettingsCreateRequest, AppNotificationSettingsCreateRequestSchema, AppNotificationSettingsResponse, AppNotificationSettingsResponseSchema, AppNotificationSettingsUpdateRequest, AppNotificationSettingsUpdateRequestSchema, NotificationSurface, NotificationSurfaceSchema } from "./lib/modules/app-installs/schema.mjs";
4
+ import { Client, ClientCreateRequest, ClientCreateRequestSchema, ClientResponse, ClientResponseSchema, ClientSchema, ClientUpdateRequest, ClientUpdateRequestSchema, ClientWithAppVisibility, ClientWithAppVisibilitySchema, ClientsResponse, ClientsResponseSchema } from "./lib/modules/clients/schema.mjs";
5
5
  import { HexColor, HexColorSchema } from "./schemas/shared/hex-color.mjs";
6
- import { CompaniesResponse, CompaniesResponseSchema, Company, CompanyCreateRequest, CompanyCreateRequestSchema, CompanyResponse, CompanyResponseSchema, CompanySchema, CompanyUpdateRequest, CompanyUpdateRequestSchema } from "./lib/modules/companies/schema.mjs";
6
+ import { CompaniesResponse, CompaniesResponseSchema, Company, CompanyAddClientError, CompanyAddClientsRequest, CompanyAddClientsRequestSchema, CompanyAddClientsResponse, CompanyAddClientsResponseSchema, CompanyCreateRequest, CompanyCreateRequestSchema, CompanyResponse, CompanyResponseSchema, CompanySchema, CompanyUpdateRequest, CompanyUpdateRequestSchema } from "./lib/modules/companies/schema.mjs";
7
7
  import { ContractTemplate, ContractTemplateResponse, ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponse, ContractTemplatesResponseSchema } from "./lib/modules/contract-templates/schema.mjs";
8
8
  import { Contract, ContractField, ContractFieldInputType, ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponse, ContractResponseSchema, ContractSchema, ContractSendRequest, ContractSendRequestSchema, ContractStatus, ContractStatusSchema, ContractsResponse, ContractsResponseSchema } from "./lib/modules/contracts/schema.mjs";
9
9
  import { CustomFieldOption, CustomFieldOptionSchema, ListCustomFieldOptionResponse, ListCustomFieldOptionResponseSchema } from "./lib/modules/custom-field-options/schema.mjs";
10
- import { AddressValue, AddressValueSchema, CustomField, CustomFieldEntityType, CustomFieldEntityTypeSchema, CustomFieldSchema, CustomFieldType, CustomFieldTypeSchema, CustomFieldValue, CustomFieldValueSchema, ListCustomFieldResponse, ListCustomFieldResponseSchema } from "./lib/modules/custom-fields/schema.mjs";
10
+ import { AddressValue, AddressValueSchema, CustomField, CustomFieldCreateInput, CustomFieldCreateInputSchema, CustomFieldEntityType, CustomFieldEntityTypeSchema, CustomFieldSchema, CustomFieldType, CustomFieldTypeSchema, CustomFieldValue, CustomFieldValueSchema, CustomFieldsCreateRequest, CustomFieldsCreateRequestSchema, CustomFieldsCreateResponse, CustomFieldsCreateResponseSchema, ListCustomFieldResponse, ListCustomFieldResponseSchema } from "./lib/modules/custom-fields/schema.mjs";
11
11
  import { AuditLogEvent, AuditLogEventResponse, AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponse, AuditLogEventsResponseSchema, ClientUserEventCreateRequest, EventActorType, EventActorTypeSchema, EventCreateRequest, EventCreateRequestSchema, EventSource, EventSourceSchema, InternalUserEventCreateRequest } from "./lib/modules/events/schema.mjs";
12
12
  import { FileChannel, FileChannelCreateRequest, FileChannelCreateRequestSchema, FileChannelResponse, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponse, FileChannelsResponseSchema } from "./lib/modules/file-channels/schema.mjs";
13
- import { AssemblyFile, AssemblyFileResponse, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponse, AssemblyFilesResponseSchema, FileType, FileTypeSchema } from "./lib/modules/files/schema.mjs";
13
+ import { AssemblyFile, AssemblyFileResponse, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponse, AssemblyFilesResponseSchema, ClientPermissions, ClientPermissionsSchema, FileDownloadUrlResponse, FileDownloadUrlResponseSchema, FilePermissionsResponse, FilePermissionsResponseSchema, FileType, FileTypeSchema } from "./lib/modules/files/schema.mjs";
14
14
  import { FormResponse, FormResponseCreateRequest, FormResponseCreateRequestSchema, FormResponseItemResponse, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponse, FormResponsesResponseSchema } from "./lib/modules/form-responses/schema.mjs";
15
- import { Form, FormDataResponse, FormDataResponseSchema, FormSchema, FormsDataResponse, FormsDataResponseSchema } from "./lib/modules/forms/schema.mjs";
16
- import { InternalUser, InternalUserResponse, InternalUserResponseSchema, InternalUserSchema, InternalUsersResponse, InternalUsersResponseSchema } from "./lib/modules/internal-users/schema.mjs";
15
+ import { Form, FormAdditionalFields, FormAdditionalFieldsSchema, FormCreateRequest, FormCreateRequestSchema, FormDataResponse, FormDataResponseSchema, FormField, FormFieldSchema, FormFieldType, FormFieldTypeSchema, FormFields, FormFieldsSchema, FormSchema, FormVisibility, FormVisibilitySchema, FormsDataResponse, FormsDataResponseSchema } from "./lib/modules/forms/schema.mjs";
16
+ import { InternalUser, InternalUserEmailSetting, InternalUserEmailSettingSchema, InternalUserNotificationSettings, InternalUserNotificationSettingsSchema, InternalUserResponse, InternalUserResponseSchema, InternalUserSchema, InternalUserUpdateRequest, InternalUserUpdateRequestSchema, InternalUsersResponse, InternalUsersResponseSchema, NotificationCategorySetting, NotificationCategorySettingSchema } from "./lib/modules/internal-users/schema.mjs";
17
17
  import { InvoiceTemplate, InvoiceTemplateResponse, InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponse, InvoiceTemplatesResponseSchema } from "./lib/modules/invoice-templates/schema.mjs";
18
18
  import { Invoice, InvoiceCreateRequest, InvoiceCreateRequestSchema, InvoiceLineItem, InvoiceLineItemRequest, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequest, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponse, InvoiceResponseSchema, InvoiceSchema, InvoiceStatus, InvoiceStatusSchema, InvoicesResponse, InvoicesResponseSchema, PaymentMethodPreference, PaymentMethodPreferenceSchema, PaymentMethodType, PaymentMethodTypeSchema } from "./lib/modules/invoices/schema.mjs";
19
- import { MessageChannel, MessageChannelCreateRequest, MessageChannelCreateRequestSchema, MessageChannelResponse, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponse, MessageChannelsResponseSchema } from "./lib/modules/message-channels/schema.mjs";
19
+ import { CurrentUser, CurrentUserResponse, CurrentUserResponseSchema, CurrentUserSchema } from "./lib/modules/me/schema.mjs";
20
+ import { MessageChannel, MessageChannelCreateRequest, MessageChannelCreateRequestSchema, MessageChannelResponse, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponse, MessageChannelsResponseSchema, UnreadMessageChannelsResponse, UnreadMessageChannelsResponseSchema } from "./lib/modules/message-channels/schema.mjs";
20
21
  import { Message, MessageResponse, MessageResponseSchema, MessageSchema, MessagesResponse, MessagesResponseSchema, SendMessageRequest, SendMessageRequestSchema } from "./lib/modules/messages/schema.mjs";
21
22
  import { Note, NoteCreateRequest, NoteCreateRequestSchema, NoteResponse, NoteResponseSchema, NoteSchema, NoteUpdateRequest, NoteUpdateRequestSchema, NotesResponse, NotesResponseSchema } from "./lib/modules/notes/schema.mjs";
22
23
  import { EmailDeliveryTarget, EmailDeliveryTargetSchema, InProductDeliveryTarget, InProductDeliveryTargetSchema, Notification, NotificationCreateRequest, NotificationCreateRequestSchema, NotificationDeliveryTargets, NotificationDeliveryTargetsSchema, NotificationResponse, NotificationResponseSchema, NotificationSchema, NotificationsResponse, NotificationsResponseSchema } from "./lib/modules/notifications/schema.mjs";
23
24
  import { Payment, PaymentResponse, PaymentResponseSchema, PaymentSchema, PaymentsResponse, PaymentsResponseSchema } from "./lib/modules/payments/schema.mjs";
24
- import { Price, PriceResponse, PriceResponseSchema, PriceSchema, PricesResponse, PricesResponseSchema } from "./lib/modules/prices/schema.mjs";
25
- import { Product, ProductResponse, ProductResponseSchema, ProductSchema, ProductsResponse, ProductsResponseSchema } from "./lib/modules/products/schema.mjs";
25
+ import { BillingPeriod, BillingPeriodSchema, Price, PriceCreateRequest, PriceCreateRequestSchema, PriceResponse, PriceResponseSchema, PriceSchema, PriceType, PriceTypeSchema, PricesResponse, PricesResponseSchema } from "./lib/modules/prices/schema.mjs";
26
+ import { Product, ProductCreateRequest, ProductCreateRequestSchema, ProductResponse, ProductResponseSchema, ProductSchema, ProductsResponse, ProductsResponseSchema } from "./lib/modules/products/schema.mjs";
27
+ import { Refund, RefundCreateRequest, RefundCreateRequestSchema, RefundResponse, RefundResponseSchema, RefundSchema, RefundStatus, RefundStatusSchema, RefundsResponse, RefundsResponseSchema } from "./lib/modules/refunds/schema.mjs";
26
28
  import { SubscriptionTemplate, SubscriptionTemplateResponse, SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponse, SubscriptionTemplatesResponseSchema } from "./lib/modules/subscription-templates/schema.mjs";
27
29
  import { Subscription, SubscriptionCreateRequest, SubscriptionCreateRequestSchema, SubscriptionResponse, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionsResponse, SubscriptionsResponseSchema } from "./lib/modules/subscriptions/schema.mjs";
30
+ import { TaskComment, TaskCommentResponse, TaskCommentResponseSchema, TaskCommentSchema, TaskCommentsResponse, TaskCommentsResponseSchema } from "./lib/modules/task-comments/schema.mjs";
28
31
  import { TaskTemplate, TaskTemplateResponse, TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponse, TaskTemplatesResponseSchema } from "./lib/modules/task-templates/schema.mjs";
29
32
  import { Task, TaskCreateRequest, TaskCreateRequestSchema, TaskResponse, TaskResponseSchema, TaskSchema, TaskStatus, TaskStatusSchema, TaskUpdateRequest, TaskUpdateRequestSchema, TasksResponse, TasksResponseSchema } from "./lib/modules/tasks/schema.mjs";
30
33
  import { Workspace, WorkspaceResponse, WorkspaceResponseSchema, WorkspaceSchema } from "./lib/modules/workspace/schema.mjs";
@@ -46,4 +49,4 @@ import { AssemblyServerError } from "./errors/server.mjs";
46
49
  import { AssemblyUnauthorizedError } from "./errors/unauthorized.mjs";
47
50
  import { AssemblyValidationError } from "./errors/validation.mjs";
48
51
  import { createToken } from "./token/parse.mjs";
49
- export { AddressValue, AddressValueSchema, AppConnection, AppConnectionCreateRequest, AppConnectionCreateRequestSchema, AppConnectionResponse, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionType, AppConnectionTypeSchema, AppConnectionsResponse, AppConnectionsResponseSchema, AppInstall, AppInstallResponse, AppInstallResponseSchema, AppInstallSchema, AppInstallType, AppInstallTypeSchema, AppInstallsResponse, AppInstallsResponseSchema, AssemblyConnectionError, AssemblyError, AssemblyErrorOptions, AssemblyFile, AssemblyFileResponse, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponse, AssemblyFilesResponseSchema, AssemblyForbiddenError, AssemblyInvalidTokenError, AssemblyKit, AssemblyKitOptions, AssemblyMissingApiKeyError, AssemblyNoTokenError, AssemblyNotFoundError, AssemblyRateLimitError, AssemblyRateLimitErrorOptions, AssemblyResponseParseError, AssemblyResponseParseErrorOptions, AssemblyServerError, AssemblyToken, AssemblyUnauthorizedError, AssemblyValidationError, AuditLogEvent, AuditLogEventResponse, AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponse, AuditLogEventsResponseSchema, Client, ClientCreateRequest, ClientCreateRequestSchema, ClientResponse, ClientResponseSchema, ClientSchema, ClientTokenPayload, ClientUpdateRequest, ClientUpdateRequestSchema, ClientUserEventCreateRequest, ClientsResponse, ClientsResponseSchema, CompaniesResponse, CompaniesResponseSchema, Company, CompanyCreateRequest, CompanyCreateRequestSchema, CompanyResponse, CompanyResponseSchema, CompanySchema, CompanyUpdateRequest, CompanyUpdateRequestSchema, Contract, ContractField, ContractFieldInputType, ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponse, ContractResponseSchema, ContractSchema, ContractSendRequest, ContractSendRequestSchema, ContractStatus, ContractStatusSchema, ContractTemplate, ContractTemplateResponse, ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponse, ContractTemplatesResponseSchema, ContractsResponse, ContractsResponseSchema, CustomField, CustomFieldEntityType, CustomFieldEntityTypeSchema, CustomFieldOption, CustomFieldOptionSchema, CustomFieldSchema, CustomFieldType, CustomFieldTypeSchema, CustomFieldValue, CustomFieldValueSchema, EmailDeliveryTarget, EmailDeliveryTargetSchema, EventActorType, EventActorTypeSchema, EventCreateRequest, EventCreateRequestSchema, EventSource, EventSourceSchema, FileChannel, FileChannelCreateRequest, FileChannelCreateRequestSchema, FileChannelResponse, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponse, FileChannelsResponseSchema, FileType, FileTypeSchema, Form, FormDataResponse, FormDataResponseSchema, FormResponse, FormResponseCreateRequest, FormResponseCreateRequestSchema, FormResponseItemResponse, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponse, FormResponsesResponseSchema, FormSchema, FormsDataResponse, FormsDataResponseSchema, HexColor, HexColorSchema, InProductDeliveryTarget, InProductDeliveryTargetSchema, InternalUser, InternalUserEventCreateRequest, InternalUserResponse, InternalUserResponseSchema, InternalUserSchema, InternalUserTokenPayload, InternalUsersResponse, InternalUsersResponseSchema, Invoice, InvoiceCreateRequest, InvoiceCreateRequestSchema, InvoiceLineItem, InvoiceLineItemRequest, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequest, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponse, InvoiceResponseSchema, InvoiceSchema, InvoiceStatus, InvoiceStatusSchema, InvoiceTemplate, InvoiceTemplateResponse, InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponse, InvoiceTemplatesResponseSchema, InvoicesResponse, InvoicesResponseSchema, KitMode, ListCustomFieldOptionResponse, ListCustomFieldOptionResponseSchema, ListCustomFieldResponse, ListCustomFieldResponseSchema, MembershipType, MembershipTypeSchema, Message, MessageChannel, MessageChannelCreateRequest, MessageChannelCreateRequestSchema, MessageChannelResponse, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponse, MessageChannelsResponseSchema, MessageResponse, MessageResponseSchema, MessageSchema, MessagesResponse, MessagesResponseSchema, Note, NoteCreateRequest, NoteCreateRequestSchema, NoteResponse, NoteResponseSchema, NoteSchema, NoteUpdateRequest, NoteUpdateRequestSchema, NotesResponse, NotesResponseSchema, Notification, NotificationCreateRequest, NotificationCreateRequestSchema, NotificationDeliveryTargets, NotificationDeliveryTargetsSchema, NotificationResponse, NotificationResponseSchema, NotificationSchema, NotificationsResponse, NotificationsResponseSchema, Payment, PaymentMethodPreference, PaymentMethodPreferenceSchema, PaymentMethodType, PaymentMethodTypeSchema, PaymentResponse, PaymentResponseSchema, PaymentSchema, PaymentsResponse, PaymentsResponseSchema, Price, PriceResponse, PriceResponseSchema, PriceSchema, PricesResponse, PricesResponseSchema, Product, ProductResponse, ProductResponseSchema, ProductSchema, ProductsResponse, ProductsResponseSchema, SendMessageRequest, SendMessageRequestSchema, Subscription, SubscriptionCreateRequest, SubscriptionCreateRequestSchema, SubscriptionResponse, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionTemplate, SubscriptionTemplateResponse, SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponse, SubscriptionTemplatesResponseSchema, SubscriptionsResponse, SubscriptionsResponseSchema, Task, TaskCreateRequest, TaskCreateRequestSchema, TaskResponse, TaskResponseSchema, TaskSchema, TaskStatus, TaskStatusSchema, TaskTemplate, TaskTemplateResponse, TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponse, TaskTemplatesResponseSchema, TaskUpdateRequest, TaskUpdateRequestSchema, TasksResponse, TasksResponseSchema, TokenPayload, TokenPayloadSchema, Workspace, WorkspaceResponse, WorkspaceResponseSchema, WorkspaceSchema, createAssemblyKit, createToken };
52
+ export { AddressValue, AddressValueSchema, AppConnection, AppConnectionCreateRequest, AppConnectionCreateRequestSchema, AppConnectionResponse, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionType, AppConnectionTypeSchema, AppConnectionsResponse, AppConnectionsResponseSchema, AppInstall, AppInstallResponse, AppInstallResponseSchema, AppInstallSchema, AppInstallType, AppInstallTypeSchema, AppInstallsResponse, AppInstallsResponseSchema, AppNotificationActionLabel, AppNotificationActionLabelSchema, AppNotificationSetting, AppNotificationSettingSchema, AppNotificationSettingsCreateRequest, AppNotificationSettingsCreateRequestSchema, AppNotificationSettingsResponse, AppNotificationSettingsResponseSchema, AppNotificationSettingsUpdateRequest, AppNotificationSettingsUpdateRequestSchema, AssemblyConnectionError, AssemblyError, AssemblyErrorOptions, AssemblyFile, AssemblyFileResponse, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponse, AssemblyFilesResponseSchema, AssemblyForbiddenError, AssemblyInvalidTokenError, AssemblyKit, AssemblyKitOptions, AssemblyMissingApiKeyError, AssemblyNoTokenError, AssemblyNotFoundError, AssemblyRateLimitError, AssemblyRateLimitErrorOptions, AssemblyResponseParseError, AssemblyResponseParseErrorOptions, AssemblyServerError, AssemblyToken, AssemblyUnauthorizedError, AssemblyValidationError, AuditLogEvent, AuditLogEventResponse, AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponse, AuditLogEventsResponseSchema, BillingPeriod, BillingPeriodSchema, Client, ClientCreateRequest, ClientCreateRequestSchema, ClientPermissions, ClientPermissionsSchema, ClientResponse, ClientResponseSchema, ClientSchema, ClientTokenPayload, ClientUpdateRequest, ClientUpdateRequestSchema, ClientUserEventCreateRequest, ClientWithAppVisibility, ClientWithAppVisibilitySchema, ClientsResponse, ClientsResponseSchema, CompaniesResponse, CompaniesResponseSchema, Company, CompanyAddClientError, CompanyAddClientsRequest, CompanyAddClientsRequestSchema, CompanyAddClientsResponse, CompanyAddClientsResponseSchema, CompanyCreateRequest, CompanyCreateRequestSchema, CompanyResponse, CompanyResponseSchema, CompanySchema, CompanyUpdateRequest, CompanyUpdateRequestSchema, Contract, ContractField, ContractFieldInputType, ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponse, ContractResponseSchema, ContractSchema, ContractSendRequest, ContractSendRequestSchema, ContractStatus, ContractStatusSchema, ContractTemplate, ContractTemplateResponse, ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponse, ContractTemplatesResponseSchema, ContractsResponse, ContractsResponseSchema, CurrentUser, CurrentUserResponse, CurrentUserResponseSchema, CurrentUserSchema, CustomField, CustomFieldCreateInput, CustomFieldCreateInputSchema, CustomFieldEntityType, CustomFieldEntityTypeSchema, CustomFieldOption, CustomFieldOptionSchema, CustomFieldSchema, CustomFieldType, CustomFieldTypeSchema, CustomFieldValue, CustomFieldValueSchema, CustomFieldsCreateRequest, CustomFieldsCreateRequestSchema, CustomFieldsCreateResponse, CustomFieldsCreateResponseSchema, EmailDeliveryTarget, EmailDeliveryTargetSchema, EventActorType, EventActorTypeSchema, EventCreateRequest, EventCreateRequestSchema, EventSource, EventSourceSchema, FileChannel, FileChannelCreateRequest, FileChannelCreateRequestSchema, FileChannelResponse, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponse, FileChannelsResponseSchema, FileDownloadUrlResponse, FileDownloadUrlResponseSchema, FilePermissionsResponse, FilePermissionsResponseSchema, FileType, FileTypeSchema, Form, FormAdditionalFields, FormAdditionalFieldsSchema, FormCreateRequest, FormCreateRequestSchema, FormDataResponse, FormDataResponseSchema, FormField, FormFieldSchema, FormFieldType, FormFieldTypeSchema, FormFields, FormFieldsSchema, FormResponse, FormResponseCreateRequest, FormResponseCreateRequestSchema, FormResponseItemResponse, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponse, FormResponsesResponseSchema, FormSchema, FormVisibility, FormVisibilitySchema, FormsDataResponse, FormsDataResponseSchema, HexColor, HexColorSchema, InProductDeliveryTarget, InProductDeliveryTargetSchema, InternalUser, InternalUserEmailSetting, InternalUserEmailSettingSchema, InternalUserEventCreateRequest, InternalUserNotificationSettings, InternalUserNotificationSettingsSchema, InternalUserResponse, InternalUserResponseSchema, InternalUserSchema, InternalUserTokenPayload, InternalUserUpdateRequest, InternalUserUpdateRequestSchema, InternalUsersResponse, InternalUsersResponseSchema, Invoice, InvoiceCreateRequest, InvoiceCreateRequestSchema, InvoiceLineItem, InvoiceLineItemRequest, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequest, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponse, InvoiceResponseSchema, InvoiceSchema, InvoiceStatus, InvoiceStatusSchema, InvoiceTemplate, InvoiceTemplateResponse, InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponse, InvoiceTemplatesResponseSchema, InvoicesResponse, InvoicesResponseSchema, KitMode, ListCustomFieldOptionResponse, ListCustomFieldOptionResponseSchema, ListCustomFieldResponse, ListCustomFieldResponseSchema, MembershipType, MembershipTypeSchema, Message, MessageChannel, MessageChannelCreateRequest, MessageChannelCreateRequestSchema, MessageChannelResponse, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponse, MessageChannelsResponseSchema, MessageResponse, MessageResponseSchema, MessageSchema, MessagesResponse, MessagesResponseSchema, Note, NoteCreateRequest, NoteCreateRequestSchema, NoteResponse, NoteResponseSchema, NoteSchema, NoteUpdateRequest, NoteUpdateRequestSchema, NotesResponse, NotesResponseSchema, Notification, NotificationCategorySetting, NotificationCategorySettingSchema, NotificationCreateRequest, NotificationCreateRequestSchema, NotificationDeliveryTargets, NotificationDeliveryTargetsSchema, NotificationResponse, NotificationResponseSchema, NotificationSchema, NotificationSurface, NotificationSurfaceSchema, NotificationsResponse, NotificationsResponseSchema, Payment, PaymentMethodPreference, PaymentMethodPreferenceSchema, PaymentMethodType, PaymentMethodTypeSchema, PaymentResponse, PaymentResponseSchema, PaymentSchema, PaymentsResponse, PaymentsResponseSchema, Price, PriceCreateRequest, PriceCreateRequestSchema, PriceResponse, PriceResponseSchema, PriceSchema, PriceType, PriceTypeSchema, PricesResponse, PricesResponseSchema, Product, ProductCreateRequest, ProductCreateRequestSchema, ProductResponse, ProductResponseSchema, ProductSchema, ProductsResponse, ProductsResponseSchema, Refund, RefundCreateRequest, RefundCreateRequestSchema, RefundResponse, RefundResponseSchema, RefundSchema, RefundStatus, RefundStatusSchema, RefundsResponse, RefundsResponseSchema, SendMessageRequest, SendMessageRequestSchema, Subscription, SubscriptionCreateRequest, SubscriptionCreateRequestSchema, SubscriptionResponse, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionTemplate, SubscriptionTemplateResponse, SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponse, SubscriptionTemplatesResponseSchema, SubscriptionsResponse, SubscriptionsResponseSchema, Task, TaskComment, TaskCommentResponse, TaskCommentResponseSchema, TaskCommentSchema, TaskCommentsResponse, TaskCommentsResponseSchema, TaskCreateRequest, TaskCreateRequestSchema, TaskResponse, TaskResponseSchema, TaskSchema, TaskStatus, TaskStatusSchema, TaskTemplate, TaskTemplateResponse, TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponse, TaskTemplatesResponseSchema, TaskUpdateRequest, TaskUpdateRequestSchema, TasksResponse, TasksResponseSchema, TokenPayload, TokenPayloadSchema, UnreadMessageChannelsResponse, UnreadMessageChannelsResponseSchema, Workspace, WorkspaceResponse, WorkspaceResponseSchema, WorkspaceSchema, createAssemblyKit, createToken };
package/dist/index.mjs CHANGED
@@ -3,31 +3,34 @@ import { AssemblyNoTokenError } from "./errors/no-token.mjs";
3
3
  import { AssemblyResponseParseError } from "./errors/response-parse.mjs";
4
4
  import { MembershipTypeSchema } from "./schemas/shared/membership-type.mjs";
5
5
  import { AppConnectionCreateRequestSchema, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionTypeSchema, AppConnectionsResponseSchema } from "./lib/modules/app-connections/schema.mjs";
6
- import { AppInstallResponseSchema, AppInstallSchema, AppInstallTypeSchema, AppInstallsResponseSchema } from "./lib/modules/app-installs/schema.mjs";
7
- import { ClientCreateRequestSchema, ClientResponseSchema, ClientSchema, ClientUpdateRequestSchema, ClientsResponseSchema } from "./lib/modules/clients/schema.mjs";
6
+ import { AppInstallResponseSchema, AppInstallSchema, AppInstallTypeSchema, AppInstallsResponseSchema, AppNotificationActionLabelSchema, AppNotificationSettingSchema, AppNotificationSettingsCreateRequestSchema, AppNotificationSettingsResponseSchema, AppNotificationSettingsUpdateRequestSchema, NotificationSurfaceSchema } from "./lib/modules/app-installs/schema.mjs";
7
+ import { ClientCreateRequestSchema, ClientResponseSchema, ClientSchema, ClientUpdateRequestSchema, ClientWithAppVisibilitySchema, ClientsResponseSchema } from "./lib/modules/clients/schema.mjs";
8
8
  import { HexColorSchema } from "./schemas/shared/hex-color.mjs";
9
- import { CompaniesResponseSchema, CompanyCreateRequestSchema, CompanyResponseSchema, CompanySchema, CompanyUpdateRequestSchema } from "./lib/modules/companies/schema.mjs";
9
+ import { CompaniesResponseSchema, CompanyAddClientsRequestSchema, CompanyAddClientsResponseSchema, CompanyCreateRequestSchema, CompanyResponseSchema, CompanySchema, CompanyUpdateRequestSchema } from "./lib/modules/companies/schema.mjs";
10
10
  import { ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponseSchema } from "./lib/modules/contract-templates/schema.mjs";
11
11
  import { ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponseSchema, ContractSchema, ContractSendRequestSchema, ContractStatusSchema, ContractsResponseSchema } from "./lib/modules/contracts/schema.mjs";
12
12
  import { CustomFieldOptionSchema, ListCustomFieldOptionResponseSchema } from "./lib/modules/custom-field-options/schema.mjs";
13
- import { AddressValueSchema, CustomFieldEntityTypeSchema, CustomFieldSchema, CustomFieldTypeSchema, CustomFieldValueSchema, ListCustomFieldResponseSchema } from "./lib/modules/custom-fields/schema.mjs";
13
+ import { AddressValueSchema, CustomFieldCreateInputSchema, CustomFieldEntityTypeSchema, CustomFieldSchema, CustomFieldTypeSchema, CustomFieldValueSchema, CustomFieldsCreateRequestSchema, CustomFieldsCreateResponseSchema, ListCustomFieldResponseSchema } from "./lib/modules/custom-fields/schema.mjs";
14
14
  import { AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponseSchema, EventActorTypeSchema, EventCreateRequestSchema, EventSourceSchema } from "./lib/modules/events/schema.mjs";
15
15
  import { FileChannelCreateRequestSchema, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponseSchema } from "./lib/modules/file-channels/schema.mjs";
16
- import { AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponseSchema, FileTypeSchema } from "./lib/modules/files/schema.mjs";
16
+ import { AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponseSchema, ClientPermissionsSchema, FileDownloadUrlResponseSchema, FilePermissionsResponseSchema, FileTypeSchema } from "./lib/modules/files/schema.mjs";
17
17
  import { FormResponseCreateRequestSchema, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponseSchema } from "./lib/modules/form-responses/schema.mjs";
18
- import { FormDataResponseSchema, FormSchema, FormsDataResponseSchema } from "./lib/modules/forms/schema.mjs";
19
- import { InternalUserResponseSchema, InternalUserSchema, InternalUsersResponseSchema } from "./lib/modules/internal-users/schema.mjs";
18
+ import { FormAdditionalFieldsSchema, FormCreateRequestSchema, FormDataResponseSchema, FormFieldSchema, FormFieldTypeSchema, FormFieldsSchema, FormSchema, FormVisibilitySchema, FormsDataResponseSchema } from "./lib/modules/forms/schema.mjs";
19
+ import { InternalUserEmailSettingSchema, InternalUserNotificationSettingsSchema, InternalUserResponseSchema, InternalUserSchema, InternalUserUpdateRequestSchema, InternalUsersResponseSchema, NotificationCategorySettingSchema } from "./lib/modules/internal-users/schema.mjs";
20
20
  import { InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponseSchema } from "./lib/modules/invoice-templates/schema.mjs";
21
21
  import { InvoiceCreateRequestSchema, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponseSchema, InvoiceSchema, InvoiceStatusSchema, InvoicesResponseSchema, PaymentMethodPreferenceSchema, PaymentMethodTypeSchema } from "./lib/modules/invoices/schema.mjs";
22
- import { MessageChannelCreateRequestSchema, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponseSchema } from "./lib/modules/message-channels/schema.mjs";
22
+ import { CurrentUserResponseSchema, CurrentUserSchema } from "./lib/modules/me/schema.mjs";
23
+ import { MessageChannelCreateRequestSchema, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponseSchema, UnreadMessageChannelsResponseSchema } from "./lib/modules/message-channels/schema.mjs";
23
24
  import { MessageResponseSchema, MessageSchema, MessagesResponseSchema, SendMessageRequestSchema } from "./lib/modules/messages/schema.mjs";
24
25
  import { NoteCreateRequestSchema, NoteResponseSchema, NoteSchema, NoteUpdateRequestSchema, NotesResponseSchema } from "./lib/modules/notes/schema.mjs";
25
26
  import { EmailDeliveryTargetSchema, InProductDeliveryTargetSchema, NotificationCreateRequestSchema, NotificationDeliveryTargetsSchema, NotificationResponseSchema, NotificationSchema, NotificationsResponseSchema } from "./lib/modules/notifications/schema.mjs";
26
27
  import { PaymentResponseSchema, PaymentSchema, PaymentsResponseSchema } from "./lib/modules/payments/schema.mjs";
27
- import { PriceResponseSchema, PriceSchema, PricesResponseSchema } from "./lib/modules/prices/schema.mjs";
28
- import { ProductResponseSchema, ProductSchema, ProductsResponseSchema } from "./lib/modules/products/schema.mjs";
28
+ import { BillingPeriodSchema, PriceCreateRequestSchema, PriceResponseSchema, PriceSchema, PriceTypeSchema, PricesResponseSchema } from "./lib/modules/prices/schema.mjs";
29
+ import { ProductCreateRequestSchema, ProductResponseSchema, ProductSchema, ProductsResponseSchema } from "./lib/modules/products/schema.mjs";
30
+ import { RefundCreateRequestSchema, RefundResponseSchema, RefundSchema, RefundStatusSchema, RefundsResponseSchema } from "./lib/modules/refunds/schema.mjs";
29
31
  import { SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponseSchema } from "./lib/modules/subscription-templates/schema.mjs";
30
32
  import { SubscriptionCreateRequestSchema, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionsResponseSchema } from "./lib/modules/subscriptions/schema.mjs";
33
+ import { TaskCommentResponseSchema, TaskCommentSchema, TaskCommentsResponseSchema } from "./lib/modules/task-comments/schema.mjs";
31
34
  import { TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponseSchema } from "./lib/modules/task-templates/schema.mjs";
32
35
  import { TaskCreateRequestSchema, TaskResponseSchema, TaskSchema, TaskStatusSchema, TaskUpdateRequestSchema, TasksResponseSchema } from "./lib/modules/tasks/schema.mjs";
33
36
  import { WorkspaceResponseSchema, WorkspaceSchema } from "./lib/modules/workspace/schema.mjs";
@@ -48,4 +51,4 @@ import { AssemblyMissingApiKeyError } from "./errors/missing-api-key.mjs";
48
51
  import "./errors/index.mjs";
49
52
  import "./schemas/index.mjs";
50
53
  import "./token/index.mjs";
51
- export { AddressValueSchema, AppConnectionCreateRequestSchema, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionTypeSchema, AppConnectionsResponseSchema, AppInstallResponseSchema, AppInstallSchema, AppInstallTypeSchema, AppInstallsResponseSchema, AssemblyConnectionError, AssemblyError, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponseSchema, AssemblyForbiddenError, AssemblyInvalidTokenError, AssemblyKit, AssemblyMissingApiKeyError, AssemblyNoTokenError, AssemblyNotFoundError, AssemblyRateLimitError, AssemblyResponseParseError, AssemblyServerError, AssemblyToken, AssemblyUnauthorizedError, AssemblyValidationError, AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponseSchema, ClientCreateRequestSchema, ClientResponseSchema, ClientSchema, ClientUpdateRequestSchema, ClientsResponseSchema, CompaniesResponseSchema, CompanyCreateRequestSchema, CompanyResponseSchema, CompanySchema, CompanyUpdateRequestSchema, ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponseSchema, ContractSchema, ContractSendRequestSchema, ContractStatusSchema, ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponseSchema, ContractsResponseSchema, CustomFieldEntityTypeSchema, CustomFieldOptionSchema, CustomFieldSchema, CustomFieldTypeSchema, CustomFieldValueSchema, EmailDeliveryTargetSchema, EventActorTypeSchema, EventCreateRequestSchema, EventSourceSchema, FileChannelCreateRequestSchema, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponseSchema, FileTypeSchema, FormDataResponseSchema, FormResponseCreateRequestSchema, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponseSchema, FormSchema, FormsDataResponseSchema, HexColorSchema, InProductDeliveryTargetSchema, InternalUserResponseSchema, InternalUserSchema, InternalUsersResponseSchema, InvoiceCreateRequestSchema, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponseSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponseSchema, InvoicesResponseSchema, KitMode, ListCustomFieldOptionResponseSchema, ListCustomFieldResponseSchema, MembershipTypeSchema, MessageChannelCreateRequestSchema, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponseSchema, MessageResponseSchema, MessageSchema, MessagesResponseSchema, NoteCreateRequestSchema, NoteResponseSchema, NoteSchema, NoteUpdateRequestSchema, NotesResponseSchema, NotificationCreateRequestSchema, NotificationDeliveryTargetsSchema, NotificationResponseSchema, NotificationSchema, NotificationsResponseSchema, PaymentMethodPreferenceSchema, PaymentMethodTypeSchema, PaymentResponseSchema, PaymentSchema, PaymentsResponseSchema, PriceResponseSchema, PriceSchema, PricesResponseSchema, ProductResponseSchema, ProductSchema, ProductsResponseSchema, SendMessageRequestSchema, SubscriptionCreateRequestSchema, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponseSchema, SubscriptionsResponseSchema, TaskCreateRequestSchema, TaskResponseSchema, TaskSchema, TaskStatusSchema, TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponseSchema, TaskUpdateRequestSchema, TasksResponseSchema, TokenPayloadSchema, WorkspaceResponseSchema, WorkspaceSchema, createAssemblyKit, createToken };
54
+ export { AddressValueSchema, AppConnectionCreateRequestSchema, AppConnectionResponseSchema, AppConnectionSchema, AppConnectionTypeSchema, AppConnectionsResponseSchema, AppInstallResponseSchema, AppInstallSchema, AppInstallTypeSchema, AppInstallsResponseSchema, AppNotificationActionLabelSchema, AppNotificationSettingSchema, AppNotificationSettingsCreateRequestSchema, AppNotificationSettingsResponseSchema, AppNotificationSettingsUpdateRequestSchema, AssemblyConnectionError, AssemblyError, AssemblyFileResponseSchema, AssemblyFileSchema, AssemblyFilesResponseSchema, AssemblyForbiddenError, AssemblyInvalidTokenError, AssemblyKit, AssemblyMissingApiKeyError, AssemblyNoTokenError, AssemblyNotFoundError, AssemblyRateLimitError, AssemblyResponseParseError, AssemblyServerError, AssemblyToken, AssemblyUnauthorizedError, AssemblyValidationError, AuditLogEventResponseSchema, AuditLogEventSchema, AuditLogEventsResponseSchema, BillingPeriodSchema, ClientCreateRequestSchema, ClientPermissionsSchema, ClientResponseSchema, ClientSchema, ClientUpdateRequestSchema, ClientWithAppVisibilitySchema, ClientsResponseSchema, CompaniesResponseSchema, CompanyAddClientsRequestSchema, CompanyAddClientsResponseSchema, CompanyCreateRequestSchema, CompanyResponseSchema, CompanySchema, CompanyUpdateRequestSchema, ContractFieldInputTypeSchema, ContractFieldSchema, ContractResponseSchema, ContractSchema, ContractSendRequestSchema, ContractStatusSchema, ContractTemplateResponseSchema, ContractTemplateSchema, ContractTemplatesResponseSchema, ContractsResponseSchema, CurrentUserResponseSchema, CurrentUserSchema, CustomFieldCreateInputSchema, CustomFieldEntityTypeSchema, CustomFieldOptionSchema, CustomFieldSchema, CustomFieldTypeSchema, CustomFieldValueSchema, CustomFieldsCreateRequestSchema, CustomFieldsCreateResponseSchema, EmailDeliveryTargetSchema, EventActorTypeSchema, EventCreateRequestSchema, EventSourceSchema, FileChannelCreateRequestSchema, FileChannelResponseSchema, FileChannelSchema, FileChannelsResponseSchema, FileDownloadUrlResponseSchema, FilePermissionsResponseSchema, FileTypeSchema, FormAdditionalFieldsSchema, FormCreateRequestSchema, FormDataResponseSchema, FormFieldSchema, FormFieldTypeSchema, FormFieldsSchema, FormResponseCreateRequestSchema, FormResponseItemResponseSchema, FormResponseSchema, FormResponsesResponseSchema, FormSchema, FormVisibilitySchema, FormsDataResponseSchema, HexColorSchema, InProductDeliveryTargetSchema, InternalUserEmailSettingSchema, InternalUserNotificationSettingsSchema, InternalUserResponseSchema, InternalUserSchema, InternalUserUpdateRequestSchema, InternalUsersResponseSchema, InvoiceCreateRequestSchema, InvoiceLineItemRequestSchema, InvoiceLineItemSchema, InvoicePaymentMethodPreferenceRequestSchema, InvoiceResponseSchema, InvoiceSchema, InvoiceStatusSchema, InvoiceTemplateResponseSchema, InvoiceTemplateSchema, InvoiceTemplatesResponseSchema, InvoicesResponseSchema, KitMode, ListCustomFieldOptionResponseSchema, ListCustomFieldResponseSchema, MembershipTypeSchema, MessageChannelCreateRequestSchema, MessageChannelResponseSchema, MessageChannelSchema, MessageChannelsResponseSchema, MessageResponseSchema, MessageSchema, MessagesResponseSchema, NoteCreateRequestSchema, NoteResponseSchema, NoteSchema, NoteUpdateRequestSchema, NotesResponseSchema, NotificationCategorySettingSchema, NotificationCreateRequestSchema, NotificationDeliveryTargetsSchema, NotificationResponseSchema, NotificationSchema, NotificationSurfaceSchema, NotificationsResponseSchema, PaymentMethodPreferenceSchema, PaymentMethodTypeSchema, PaymentResponseSchema, PaymentSchema, PaymentsResponseSchema, PriceCreateRequestSchema, PriceResponseSchema, PriceSchema, PriceTypeSchema, PricesResponseSchema, ProductCreateRequestSchema, ProductResponseSchema, ProductSchema, ProductsResponseSchema, RefundCreateRequestSchema, RefundResponseSchema, RefundSchema, RefundStatusSchema, RefundsResponseSchema, SendMessageRequestSchema, SubscriptionCreateRequestSchema, SubscriptionResponseSchema, SubscriptionSchema, SubscriptionTemplateResponseSchema, SubscriptionTemplateSchema, SubscriptionTemplatesResponseSchema, SubscriptionsResponseSchema, TaskCommentResponseSchema, TaskCommentSchema, TaskCommentsResponseSchema, TaskCreateRequestSchema, TaskResponseSchema, TaskSchema, TaskStatusSchema, TaskTemplateResponseSchema, TaskTemplateSchema, TaskTemplatesResponseSchema, TaskUpdateRequestSchema, TasksResponseSchema, TokenPayloadSchema, UnreadMessageChannelsResponseSchema, WorkspaceResponseSchema, WorkspaceSchema, createAssemblyKit, createToken };
@@ -1,5 +1,5 @@
1
1
  import { Transport } from "../../../transport/http.mjs";
2
- import { AppInstall, AppInstallsResponse } from "./schema.mjs";
2
+ import { AppInstall, AppInstallsResponse, AppNotificationSettingsCreateRequest, AppNotificationSettingsResponse, AppNotificationSettingsUpdateRequest } from "./schema.mjs";
3
3
 
4
4
  //#region src/lib/modules/app-installs/resource.d.ts
5
5
  declare class AppInstallsResource {
@@ -15,6 +15,18 @@ declare class AppInstallsResource {
15
15
  list(): Promise<AppInstallsResponse>;
16
16
  /** Retrieve a single app install by ID. */
17
17
  retrieve(installId: string): Promise<AppInstall>;
18
+ /** Retrieve the notification settings the install's backing app declares. */
19
+ retrieveNotificationSettings(installId: string): Promise<AppNotificationSettingsResponse>;
20
+ /** Declare the initial notification settings of the install's backing app. Create-only — fails with 409 when settings already exist. */
21
+ createNotificationSettings(args: {
22
+ installId: string;
23
+ body: AppNotificationSettingsCreateRequest;
24
+ }): Promise<AppNotificationSettingsResponse>;
25
+ /** Apply partial changes to the notification settings of the install's backing app. */
26
+ updateNotificationSettings(args: {
27
+ installId: string;
28
+ body: AppNotificationSettingsUpdateRequest;
29
+ }): Promise<AppNotificationSettingsResponse>;
18
30
  }
19
31
  //#endregion
20
32
  export { AppInstallsResource };
@@ -1,5 +1,5 @@
1
1
  import { parseResponse } from "../../../transport/parse-response.mjs";
2
- import { AppInstallResponseSchema, AppInstallsResponseSchema } from "./schema.mjs";
2
+ import { AppInstallResponseSchema, AppInstallsResponseSchema, AppNotificationSettingsResponseSchema } from "./schema.mjs";
3
3
  //#region src/lib/modules/app-installs/resource.ts
4
4
  var AppInstallsResource = class {
5
5
  #transport;
@@ -24,6 +24,30 @@ var AppInstallsResource = class {
24
24
  validate: this.#validate
25
25
  });
26
26
  }
27
+ /** Retrieve the notification settings the install's backing app declares. */
28
+ async retrieveNotificationSettings(installId) {
29
+ return parseResponse({
30
+ schema: AppNotificationSettingsResponseSchema,
31
+ data: await this.#transport.get(`v1/installs/${installId}/notification-settings`),
32
+ validate: this.#validate
33
+ });
34
+ }
35
+ /** Declare the initial notification settings of the install's backing app. Create-only — fails with 409 when settings already exist. */
36
+ async createNotificationSettings(args) {
37
+ return parseResponse({
38
+ schema: AppNotificationSettingsResponseSchema,
39
+ data: await this.#transport.post(`v1/installs/${args.installId}/notification-settings`, args.body),
40
+ validate: this.#validate
41
+ });
42
+ }
43
+ /** Apply partial changes to the notification settings of the install's backing app. */
44
+ async updateNotificationSettings(args) {
45
+ return parseResponse({
46
+ schema: AppNotificationSettingsResponseSchema,
47
+ data: await this.#transport.patch(`v1/installs/${args.installId}/notification-settings`, args.body),
48
+ validate: this.#validate
49
+ });
50
+ }
27
51
  };
28
52
  //#endregion
29
53
  export { AppInstallsResource };
@@ -1 +1 @@
1
- {"version":3,"file":"resource.mjs","names":["#transport","#validate"],"sources":["../../../../src/lib/modules/app-installs/resource.ts"],"sourcesContent":["import type { Transport } from \"src/transport/http\";\nimport { parseResponse } from \"src/transport/parse-response\";\n\nimport { AppInstallResponseSchema, AppInstallsResponseSchema } from \"./schema\";\nimport type { AppInstall, AppInstallsResponse } from \"./schema\";\n\nexport class AppInstallsResource {\n readonly #transport: Transport;\n readonly #validate: boolean;\n\n constructor({\n transport,\n validateResponses,\n }: {\n transport: Transport;\n validateResponses: boolean;\n }) {\n this.#transport = transport;\n this.#validate = validateResponses;\n }\n\n /** List all app installs. */\n async list(): Promise<AppInstallsResponse> {\n const raw: unknown = await this.#transport.get(\"v1/installs\");\n return parseResponse({\n schema: AppInstallsResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Retrieve a single app install by ID. */\n async retrieve(installId: string): Promise<AppInstall> {\n const raw: unknown = await this.#transport.get(`v1/installs/${installId}`);\n return parseResponse({ schema: AppInstallResponseSchema, data: raw, validate: this.#validate });\n }\n}\n"],"mappings":";;;AAMA,IAAa,sBAAb,MAAiC;CAC/B;CACA;CAEA,YAAY,EACV,WACA,qBAIC;AACD,QAAA,YAAkB;AAClB,QAAA,WAAiB;;;CAInB,MAAM,OAAqC;AAEzC,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,IAAI,cAAc;GAI3D,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,SAAS,WAAwC;AAErD,SAAO,cAAc;GAAE,QAAQ;GAA0B,MAAM,MADpC,MAAA,UAAgB,IAAI,eAAe,YAAY;GACN,UAAU,MAAA;GAAgB,CAAC"}
1
+ {"version":3,"file":"resource.mjs","names":["#transport","#validate"],"sources":["../../../../src/lib/modules/app-installs/resource.ts"],"sourcesContent":["import type { Transport } from \"src/transport/http\";\nimport { parseResponse } from \"src/transport/parse-response\";\n\nimport {\n AppInstallResponseSchema,\n AppInstallsResponseSchema,\n AppNotificationSettingsResponseSchema,\n} from \"./schema\";\nimport type {\n AppInstall,\n AppInstallsResponse,\n AppNotificationSettingsCreateRequest,\n AppNotificationSettingsResponse,\n AppNotificationSettingsUpdateRequest,\n} from \"./schema\";\n\nexport class AppInstallsResource {\n readonly #transport: Transport;\n readonly #validate: boolean;\n\n constructor({\n transport,\n validateResponses,\n }: {\n transport: Transport;\n validateResponses: boolean;\n }) {\n this.#transport = transport;\n this.#validate = validateResponses;\n }\n\n /** List all app installs. */\n async list(): Promise<AppInstallsResponse> {\n const raw: unknown = await this.#transport.get(\"v1/installs\");\n return parseResponse({\n schema: AppInstallsResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Retrieve a single app install by ID. */\n async retrieve(installId: string): Promise<AppInstall> {\n const raw: unknown = await this.#transport.get(`v1/installs/${installId}`);\n return parseResponse({ schema: AppInstallResponseSchema, data: raw, validate: this.#validate });\n }\n\n /** Retrieve the notification settings the install's backing app declares. */\n async retrieveNotificationSettings(installId: string): Promise<AppNotificationSettingsResponse> {\n const raw: unknown = await this.#transport.get(\n `v1/installs/${installId}/notification-settings`,\n );\n return parseResponse({\n schema: AppNotificationSettingsResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Declare the initial notification settings of the install's backing app. Create-only — fails with 409 when settings already exist. */\n async createNotificationSettings(args: {\n installId: string;\n body: AppNotificationSettingsCreateRequest;\n }): Promise<AppNotificationSettingsResponse> {\n const raw: unknown = await this.#transport.post(\n `v1/installs/${args.installId}/notification-settings`,\n args.body,\n );\n return parseResponse({\n schema: AppNotificationSettingsResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n\n /** Apply partial changes to the notification settings of the install's backing app. */\n async updateNotificationSettings(args: {\n installId: string;\n body: AppNotificationSettingsUpdateRequest;\n }): Promise<AppNotificationSettingsResponse> {\n const raw: unknown = await this.#transport.patch(\n `v1/installs/${args.installId}/notification-settings`,\n args.body,\n );\n return parseResponse({\n schema: AppNotificationSettingsResponseSchema,\n data: raw,\n validate: this.#validate,\n });\n }\n}\n"],"mappings":";;;AAgBA,IAAa,sBAAb,MAAiC;CAC/B;CACA;CAEA,YAAY,EACV,WACA,qBAIC;AACD,QAAA,YAAkB;AAClB,QAAA,WAAiB;;;CAInB,MAAM,OAAqC;AAEzC,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MAHmB,MAAA,UAAgB,IAAI,cAAc;GAI3D,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,SAAS,WAAwC;AAErD,SAAO,cAAc;GAAE,QAAQ;GAA0B,MAAM,MADpC,MAAA,UAAgB,IAAI,eAAe,YAAY;GACN,UAAU,MAAA;GAAgB,CAAC;;;CAIjG,MAAM,6BAA6B,WAA6D;AAI9F,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MALmB,MAAA,UAAgB,IACzC,eAAe,UAAU,wBAC1B;GAIC,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,2BAA2B,MAGY;AAK3C,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MANmB,MAAA,UAAgB,KACzC,eAAe,KAAK,UAAU,yBAC9B,KAAK,KACN;GAIC,UAAU,MAAA;GACX,CAAC;;;CAIJ,MAAM,2BAA2B,MAGY;AAK3C,SAAO,cAAc;GACnB,QAAQ;GACR,MAAM,MANmB,MAAA,UAAgB,MACzC,eAAe,KAAK,UAAU,yBAC9B,KAAK,KACN;GAIC,UAAU,MAAA;GACX,CAAC"}