@owbase/node 1.0.1 → 2.0.1
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.
- package/README.md +1 -1
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/client.mjs +3 -3
- package/dist/client.mjs.map +1 -1
- package/dist/enums/databases-index-type.d.mts +2 -1
- package/dist/enums/databases-index-type.d.ts +2 -1
- package/dist/enums/databases-index-type.js +1 -0
- package/dist/enums/databases-index-type.js.map +1 -1
- package/dist/enums/databases-index-type.mjs +1 -0
- package/dist/enums/databases-index-type.mjs.map +1 -1
- package/dist/enums/project-policy-id.d.mts +1 -0
- package/dist/enums/project-policy-id.d.ts +1 -0
- package/dist/enums/project-policy-id.js +1 -0
- package/dist/enums/project-policy-id.js.map +1 -1
- package/dist/enums/project-policy-id.mjs +1 -0
- package/dist/enums/project-policy-id.mjs.map +1 -1
- package/dist/enums/tables-db-index-type.d.mts +2 -1
- package/dist/enums/tables-db-index-type.d.ts +2 -1
- package/dist/enums/tables-db-index-type.js +1 -0
- package/dist/enums/tables-db-index-type.js.map +1 -1
- package/dist/enums/tables-db-index-type.mjs +1 -0
- package/dist/enums/tables-db-index-type.mjs.map +1 -1
- package/dist/models.d.mts +236 -3
- package/dist/models.d.ts +236 -3
- package/dist/services/account.d.mts +32 -0
- package/dist/services/account.d.ts +32 -0
- package/dist/services/account.js +27 -0
- package/dist/services/account.js.map +1 -1
- package/dist/services/account.mjs +27 -0
- package/dist/services/account.mjs.map +1 -1
- package/dist/services/databases.d.mts +211 -47
- package/dist/services/databases.d.ts +211 -47
- package/dist/services/databases.js +301 -41
- package/dist/services/databases.js.map +1 -1
- package/dist/services/databases.mjs +301 -41
- package/dist/services/databases.mjs.map +1 -1
- package/dist/services/functions.d.mts +30 -12
- package/dist/services/functions.d.ts +30 -12
- package/dist/services/functions.js +34 -4
- package/dist/services/functions.js.map +1 -1
- package/dist/services/functions.mjs +34 -4
- package/dist/services/functions.mjs.map +1 -1
- package/dist/services/messaging.d.mts +56 -44
- package/dist/services/messaging.d.ts +56 -44
- package/dist/services/messaging.js +96 -76
- package/dist/services/messaging.js.map +1 -1
- package/dist/services/messaging.mjs +96 -76
- package/dist/services/messaging.mjs.map +1 -1
- package/dist/services/organization.d.mts +4 -1
- package/dist/services/organization.d.ts +4 -1
- package/dist/services/organization.js +6 -1
- package/dist/services/organization.js.map +1 -1
- package/dist/services/organization.mjs +6 -1
- package/dist/services/organization.mjs.map +1 -1
- package/dist/services/project.d.mts +115 -65
- package/dist/services/project.d.ts +115 -65
- package/dist/services/project.js +138 -77
- package/dist/services/project.js.map +1 -1
- package/dist/services/project.mjs +138 -77
- package/dist/services/project.mjs.map +1 -1
- package/dist/services/sites.d.mts +20 -8
- package/dist/services/sites.d.ts +20 -8
- package/dist/services/sites.js +24 -4
- package/dist/services/sites.js.map +1 -1
- package/dist/services/sites.mjs +24 -4
- package/dist/services/sites.mjs.map +1 -1
- package/dist/services/storage.d.mts +16 -4
- package/dist/services/storage.d.ts +16 -4
- package/dist/services/storage.js +22 -2
- package/dist/services/storage.js.map +1 -1
- package/dist/services/storage.mjs +22 -2
- package/dist/services/storage.mjs.map +1 -1
- package/dist/services/tables-db.d.mts +210 -47
- package/dist/services/tables-db.d.ts +210 -47
- package/dist/services/tables-db.js +296 -41
- package/dist/services/tables-db.js.map +1 -1
- package/dist/services/tables-db.mjs +296 -41
- package/dist/services/tables-db.mjs.map +1 -1
- package/dist/services/teams.d.mts +4 -1
- package/dist/services/teams.d.ts +4 -1
- package/dist/services/teams.js +6 -1
- package/dist/services/teams.js.map +1 -1
- package/dist/services/teams.mjs +6 -1
- package/dist/services/teams.mjs.map +1 -1
- package/dist/services/webhooks.d.mts +16 -10
- package/dist/services/webhooks.d.ts +16 -10
- package/dist/services/webhooks.js +12 -2
- package/dist/services/webhooks.js.map +1 -1
- package/dist/services/webhooks.mjs +12 -2
- package/dist/services/webhooks.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -71,11 +71,12 @@ declare class Messaging {
|
|
|
71
71
|
* @param {string[]} params.cc - Array of target IDs to be added as CC.
|
|
72
72
|
* @param {string[]} params.bcc - Array of target IDs to be added as BCC.
|
|
73
73
|
* @param {string[]} params.attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
|
|
74
|
-
* @param {string} params.replyToEmail - Email address to reply to. If not set, defaults to the sender email address.
|
|
75
|
-
* @param {string} params.replyToName - Name of the reply to recipient. If not set, defaults to the sender name.
|
|
76
74
|
* @param {boolean} params.draft - Is message a draft
|
|
77
75
|
* @param {boolean} params.html - Is content of type HTML
|
|
78
76
|
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
77
|
+
* @param {string} params.replyToEmail - Email address to reply to. If not set, defaults to the sender email address.
|
|
78
|
+
* @param {string} params.replyToName - Name of the reply to recipient. If not set, defaults to the sender name.
|
|
79
|
+
* @param {string[]} params.emails - List of email addresses to send the message to. Use this to deliver to recipients that are not backed by an Owbase user, target, or topic.
|
|
79
80
|
* @throws {OwbaseException}
|
|
80
81
|
* @returns {Promise<Models.Message>}
|
|
81
82
|
*/
|
|
@@ -89,11 +90,12 @@ declare class Messaging {
|
|
|
89
90
|
cc?: string[];
|
|
90
91
|
bcc?: string[];
|
|
91
92
|
attachments?: string[];
|
|
92
|
-
replyToEmail?: string;
|
|
93
|
-
replyToName?: string;
|
|
94
93
|
draft?: boolean;
|
|
95
94
|
html?: boolean;
|
|
96
95
|
scheduledAt?: string;
|
|
96
|
+
replyToEmail?: string;
|
|
97
|
+
replyToName?: string;
|
|
98
|
+
emails?: string[];
|
|
97
99
|
}): Promise<Models.Message>;
|
|
98
100
|
/**
|
|
99
101
|
* Create a new email message.
|
|
@@ -107,76 +109,80 @@ declare class Messaging {
|
|
|
107
109
|
* @param {string[]} cc - Array of target IDs to be added as CC.
|
|
108
110
|
* @param {string[]} bcc - Array of target IDs to be added as BCC.
|
|
109
111
|
* @param {string[]} attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
|
|
110
|
-
* @param {string} replyToEmail - Email address to reply to. If not set, defaults to the sender email address.
|
|
111
|
-
* @param {string} replyToName - Name of the reply to recipient. If not set, defaults to the sender name.
|
|
112
112
|
* @param {boolean} draft - Is message a draft
|
|
113
113
|
* @param {boolean} html - Is content of type HTML
|
|
114
114
|
* @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
115
|
+
* @param {string} replyToEmail - Email address to reply to. If not set, defaults to the sender email address.
|
|
116
|
+
* @param {string} replyToName - Name of the reply to recipient. If not set, defaults to the sender name.
|
|
117
|
+
* @param {string[]} emails - List of email addresses to send the message to. Use this to deliver to recipients that are not backed by an Owbase user, target, or topic.
|
|
115
118
|
* @throws {OwbaseException}
|
|
116
119
|
* @returns {Promise<Models.Message>}
|
|
117
120
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
118
121
|
*/
|
|
119
|
-
createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[],
|
|
122
|
+
createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], draft?: boolean, html?: boolean, scheduledAt?: string, replyToEmail?: string, replyToName?: string, emails?: string[]): Promise<Models.Message>;
|
|
120
123
|
/**
|
|
121
124
|
* Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
122
125
|
*
|
|
123
126
|
*
|
|
124
127
|
* @param {string} params.messageId - Message ID.
|
|
125
|
-
* @param {string} params.subject - Email Subject.
|
|
126
|
-
* @param {string} params.content - Email Content.
|
|
127
128
|
* @param {string[]} params.topics - List of Topic IDs.
|
|
128
129
|
* @param {string[]} params.users - List of User IDs.
|
|
129
130
|
* @param {string[]} params.targets - List of Targets IDs.
|
|
131
|
+
* @param {string} params.subject - Email Subject.
|
|
132
|
+
* @param {string} params.content - Email Content.
|
|
133
|
+
* @param {boolean} params.draft - Is message a draft
|
|
134
|
+
* @param {boolean} params.html - Is content of type HTML
|
|
130
135
|
* @param {string[]} params.cc - Array of target IDs to be added as CC.
|
|
131
136
|
* @param {string[]} params.bcc - Array of target IDs to be added as BCC.
|
|
137
|
+
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
132
138
|
* @param {string[]} params.attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
|
|
133
139
|
* @param {string} params.replyToEmail - Email address to reply to. Pass an empty string to restore the provider or sender default.
|
|
134
140
|
* @param {string} params.replyToName - Name of the reply to recipient. Pass an empty string to restore the provider or sender default.
|
|
135
|
-
* @param {
|
|
136
|
-
* @param {boolean} params.html - Is content of type HTML
|
|
137
|
-
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
141
|
+
* @param {string[]} params.emails - List of email addresses to send the message to. Use this to deliver to recipients that are not backed by an Owbase user, target, or topic.
|
|
138
142
|
* @throws {OwbaseException}
|
|
139
143
|
* @returns {Promise<Models.Message>}
|
|
140
144
|
*/
|
|
141
145
|
updateEmail(params: {
|
|
142
146
|
messageId: string;
|
|
143
|
-
subject?: string;
|
|
144
|
-
content?: string;
|
|
145
147
|
topics?: string[];
|
|
146
148
|
users?: string[];
|
|
147
149
|
targets?: string[];
|
|
150
|
+
subject?: string;
|
|
151
|
+
content?: string;
|
|
152
|
+
draft?: boolean;
|
|
153
|
+
html?: boolean;
|
|
148
154
|
cc?: string[];
|
|
149
155
|
bcc?: string[];
|
|
156
|
+
scheduledAt?: string;
|
|
150
157
|
attachments?: string[];
|
|
151
158
|
replyToEmail?: string;
|
|
152
159
|
replyToName?: string;
|
|
153
|
-
|
|
154
|
-
html?: boolean;
|
|
155
|
-
scheduledAt?: string;
|
|
160
|
+
emails?: string[];
|
|
156
161
|
}): Promise<Models.Message>;
|
|
157
162
|
/**
|
|
158
163
|
* Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
159
164
|
*
|
|
160
165
|
*
|
|
161
166
|
* @param {string} messageId - Message ID.
|
|
162
|
-
* @param {string} subject - Email Subject.
|
|
163
|
-
* @param {string} content - Email Content.
|
|
164
167
|
* @param {string[]} topics - List of Topic IDs.
|
|
165
168
|
* @param {string[]} users - List of User IDs.
|
|
166
169
|
* @param {string[]} targets - List of Targets IDs.
|
|
170
|
+
* @param {string} subject - Email Subject.
|
|
171
|
+
* @param {string} content - Email Content.
|
|
172
|
+
* @param {boolean} draft - Is message a draft
|
|
173
|
+
* @param {boolean} html - Is content of type HTML
|
|
167
174
|
* @param {string[]} cc - Array of target IDs to be added as CC.
|
|
168
175
|
* @param {string[]} bcc - Array of target IDs to be added as BCC.
|
|
176
|
+
* @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
169
177
|
* @param {string[]} attachments - Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
|
|
170
178
|
* @param {string} replyToEmail - Email address to reply to. Pass an empty string to restore the provider or sender default.
|
|
171
179
|
* @param {string} replyToName - Name of the reply to recipient. Pass an empty string to restore the provider or sender default.
|
|
172
|
-
* @param {
|
|
173
|
-
* @param {boolean} html - Is content of type HTML
|
|
174
|
-
* @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
180
|
+
* @param {string[]} emails - List of email addresses to send the message to. Use this to deliver to recipients that are not backed by an Owbase user, target, or topic.
|
|
175
181
|
* @throws {OwbaseException}
|
|
176
182
|
* @returns {Promise<Models.Message>}
|
|
177
183
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
178
184
|
*/
|
|
179
|
-
updateEmail(messageId: string,
|
|
185
|
+
updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string, attachments?: string[], replyToEmail?: string, replyToName?: string, emails?: string[]): Promise<Models.Message>;
|
|
180
186
|
/**
|
|
181
187
|
* Create a new push notification.
|
|
182
188
|
*
|
|
@@ -258,11 +264,11 @@ declare class Messaging {
|
|
|
258
264
|
*
|
|
259
265
|
*
|
|
260
266
|
* @param {string} params.messageId - Message ID.
|
|
261
|
-
* @param {string} params.title - Title for push notification.
|
|
262
|
-
* @param {string} params.body - Body for push notification.
|
|
263
267
|
* @param {string[]} params.topics - List of Topic IDs.
|
|
264
268
|
* @param {string[]} params.users - List of User IDs.
|
|
265
269
|
* @param {string[]} params.targets - List of Targets IDs.
|
|
270
|
+
* @param {string} params.title - Title for push notification.
|
|
271
|
+
* @param {string} params.body - Body for push notification.
|
|
266
272
|
* @param {object} params.data - Additional Data for push notification.
|
|
267
273
|
* @param {string} params.action - Action for push notification.
|
|
268
274
|
* @param {string} params.image - Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Owbase Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
|
|
@@ -282,11 +288,11 @@ declare class Messaging {
|
|
|
282
288
|
*/
|
|
283
289
|
updatePush(params: {
|
|
284
290
|
messageId: string;
|
|
285
|
-
title?: string;
|
|
286
|
-
body?: string;
|
|
287
291
|
topics?: string[];
|
|
288
292
|
users?: string[];
|
|
289
293
|
targets?: string[];
|
|
294
|
+
title?: string;
|
|
295
|
+
body?: string;
|
|
290
296
|
data?: object;
|
|
291
297
|
action?: string;
|
|
292
298
|
image?: string;
|
|
@@ -307,11 +313,11 @@ declare class Messaging {
|
|
|
307
313
|
*
|
|
308
314
|
*
|
|
309
315
|
* @param {string} messageId - Message ID.
|
|
310
|
-
* @param {string} title - Title for push notification.
|
|
311
|
-
* @param {string} body - Body for push notification.
|
|
312
316
|
* @param {string[]} topics - List of Topic IDs.
|
|
313
317
|
* @param {string[]} users - List of User IDs.
|
|
314
318
|
* @param {string[]} targets - List of Targets IDs.
|
|
319
|
+
* @param {string} title - Title for push notification.
|
|
320
|
+
* @param {string} body - Body for push notification.
|
|
315
321
|
* @param {object} data - Additional Data for push notification.
|
|
316
322
|
* @param {string} action - Action for push notification.
|
|
317
323
|
* @param {string} image - Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Owbase Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
|
|
@@ -330,7 +336,7 @@ declare class Messaging {
|
|
|
330
336
|
* @returns {Promise<Models.Message>}
|
|
331
337
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
332
338
|
*/
|
|
333
|
-
updatePush(messageId: string,
|
|
339
|
+
updatePush(messageId: string, topics?: string[], users?: string[], targets?: string[], title?: string, body?: string, data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority, channelId?: string): Promise<Models.Message>;
|
|
334
340
|
/**
|
|
335
341
|
* Create a new SMS message.
|
|
336
342
|
*
|
|
@@ -411,10 +417,10 @@ declare class Messaging {
|
|
|
411
417
|
*
|
|
412
418
|
*
|
|
413
419
|
* @param {string} params.messageId - Message ID.
|
|
414
|
-
* @param {string} params.content - Email Content.
|
|
415
420
|
* @param {string[]} params.topics - List of Topic IDs.
|
|
416
421
|
* @param {string[]} params.users - List of User IDs.
|
|
417
422
|
* @param {string[]} params.targets - List of Targets IDs.
|
|
423
|
+
* @param {string} params.content - Email Content.
|
|
418
424
|
* @param {boolean} params.draft - Is message a draft
|
|
419
425
|
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
420
426
|
* @throws {OwbaseException}
|
|
@@ -423,10 +429,10 @@ declare class Messaging {
|
|
|
423
429
|
*/
|
|
424
430
|
updateSms(params: {
|
|
425
431
|
messageId: string;
|
|
426
|
-
content?: string;
|
|
427
432
|
topics?: string[];
|
|
428
433
|
users?: string[];
|
|
429
434
|
targets?: string[];
|
|
435
|
+
content?: string;
|
|
430
436
|
draft?: boolean;
|
|
431
437
|
scheduledAt?: string;
|
|
432
438
|
}): Promise<Models.Message>;
|
|
@@ -435,26 +441,26 @@ declare class Messaging {
|
|
|
435
441
|
*
|
|
436
442
|
*
|
|
437
443
|
* @param {string} messageId - Message ID.
|
|
438
|
-
* @param {string} content - Email Content.
|
|
439
444
|
* @param {string[]} topics - List of Topic IDs.
|
|
440
445
|
* @param {string[]} users - List of User IDs.
|
|
441
446
|
* @param {string[]} targets - List of Targets IDs.
|
|
447
|
+
* @param {string} content - Email Content.
|
|
442
448
|
* @param {boolean} draft - Is message a draft
|
|
443
449
|
* @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
444
450
|
* @throws {OwbaseException}
|
|
445
451
|
* @returns {Promise<Models.Message>}
|
|
446
452
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
447
453
|
*/
|
|
448
|
-
updateSms(messageId: string,
|
|
454
|
+
updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
449
455
|
/**
|
|
450
456
|
* Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
|
|
451
457
|
*
|
|
452
458
|
*
|
|
453
459
|
* @param {string} params.messageId - Message ID.
|
|
454
|
-
* @param {string} params.content - Email Content.
|
|
455
460
|
* @param {string[]} params.topics - List of Topic IDs.
|
|
456
461
|
* @param {string[]} params.users - List of User IDs.
|
|
457
462
|
* @param {string[]} params.targets - List of Targets IDs.
|
|
463
|
+
* @param {string} params.content - Email Content.
|
|
458
464
|
* @param {boolean} params.draft - Is message a draft
|
|
459
465
|
* @param {string} params.scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
460
466
|
* @throws {OwbaseException}
|
|
@@ -462,10 +468,10 @@ declare class Messaging {
|
|
|
462
468
|
*/
|
|
463
469
|
updateSMS(params: {
|
|
464
470
|
messageId: string;
|
|
465
|
-
content?: string;
|
|
466
471
|
topics?: string[];
|
|
467
472
|
users?: string[];
|
|
468
473
|
targets?: string[];
|
|
474
|
+
content?: string;
|
|
469
475
|
draft?: boolean;
|
|
470
476
|
scheduledAt?: string;
|
|
471
477
|
}): Promise<Models.Message>;
|
|
@@ -474,17 +480,17 @@ declare class Messaging {
|
|
|
474
480
|
*
|
|
475
481
|
*
|
|
476
482
|
* @param {string} messageId - Message ID.
|
|
477
|
-
* @param {string} content - Email Content.
|
|
478
483
|
* @param {string[]} topics - List of Topic IDs.
|
|
479
484
|
* @param {string[]} users - List of User IDs.
|
|
480
485
|
* @param {string[]} targets - List of Targets IDs.
|
|
486
|
+
* @param {string} content - Email Content.
|
|
481
487
|
* @param {boolean} draft - Is message a draft
|
|
482
488
|
* @param {string} scheduledAt - Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
|
|
483
489
|
* @throws {OwbaseException}
|
|
484
490
|
* @returns {Promise<Models.Message>}
|
|
485
491
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
486
492
|
*/
|
|
487
|
-
updateSMS(messageId: string,
|
|
493
|
+
updateSMS(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message>;
|
|
488
494
|
/**
|
|
489
495
|
* Get a message by its unique ID.
|
|
490
496
|
*
|
|
@@ -1841,7 +1847,8 @@ declare class Messaging {
|
|
|
1841
1847
|
* @param {string} params.name - Topic Name.
|
|
1842
1848
|
* @param {string[]} params.subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
1843
1849
|
* @param {number} params.qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
|
|
1844
|
-
* @param {number} params.expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
|
|
1850
|
+
* @param {number} params.expiry - Message retention in seconds for offline delivery. Max 7 days (604800). Null inherits the lowest expiry of the project's enabled Owbase providers, or the 7-day ledger window if none sets one.
|
|
1851
|
+
* @param {string} params.description - Optional description for the topic.
|
|
1845
1852
|
* @throws {OwbaseException}
|
|
1846
1853
|
* @returns {Promise<Models.Topic>}
|
|
1847
1854
|
*/
|
|
@@ -1851,6 +1858,7 @@ declare class Messaging {
|
|
|
1851
1858
|
subscribe?: string[];
|
|
1852
1859
|
qos?: number;
|
|
1853
1860
|
expiry?: number;
|
|
1861
|
+
description?: string;
|
|
1854
1862
|
}): Promise<Models.Topic>;
|
|
1855
1863
|
/**
|
|
1856
1864
|
* Create a new topic.
|
|
@@ -1859,12 +1867,13 @@ declare class Messaging {
|
|
|
1859
1867
|
* @param {string} name - Topic Name.
|
|
1860
1868
|
* @param {string[]} subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
1861
1869
|
* @param {number} qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
|
|
1862
|
-
* @param {number} expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
|
|
1870
|
+
* @param {number} expiry - Message retention in seconds for offline delivery. Max 7 days (604800). Null inherits the lowest expiry of the project's enabled Owbase providers, or the 7-day ledger window if none sets one.
|
|
1871
|
+
* @param {string} description - Optional description for the topic.
|
|
1863
1872
|
* @throws {OwbaseException}
|
|
1864
1873
|
* @returns {Promise<Models.Topic>}
|
|
1865
1874
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1866
1875
|
*/
|
|
1867
|
-
createTopic(topicId: string, name: string, subscribe?: string[], qos?: number, expiry?: number): Promise<Models.Topic>;
|
|
1876
|
+
createTopic(topicId: string, name: string, subscribe?: string[], qos?: number, expiry?: number, description?: string): Promise<Models.Topic>;
|
|
1868
1877
|
/**
|
|
1869
1878
|
* Get a topic by its unique ID.
|
|
1870
1879
|
*
|
|
@@ -1894,7 +1903,8 @@ declare class Messaging {
|
|
|
1894
1903
|
* @param {string} params.name - Topic Name.
|
|
1895
1904
|
* @param {string[]} params.subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
1896
1905
|
* @param {number} params.qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
|
|
1897
|
-
* @param {number} params.expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
|
|
1906
|
+
* @param {number} params.expiry - Message retention in seconds for offline delivery. Max 7 days (604800). Null inherits the lowest expiry of the project's enabled Owbase providers, or the 7-day ledger window if none sets one.
|
|
1907
|
+
* @param {string} params.description - Optional description for the topic.
|
|
1898
1908
|
* @throws {OwbaseException}
|
|
1899
1909
|
* @returns {Promise<Models.Topic>}
|
|
1900
1910
|
*/
|
|
@@ -1904,6 +1914,7 @@ declare class Messaging {
|
|
|
1904
1914
|
subscribe?: string[];
|
|
1905
1915
|
qos?: number;
|
|
1906
1916
|
expiry?: number;
|
|
1917
|
+
description?: string;
|
|
1907
1918
|
}): Promise<Models.Topic>;
|
|
1908
1919
|
/**
|
|
1909
1920
|
* Update a topic by its unique ID.
|
|
@@ -1913,12 +1924,13 @@ declare class Messaging {
|
|
|
1913
1924
|
* @param {string} name - Topic Name.
|
|
1914
1925
|
* @param {string[]} subscribe - An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://docs.owbase.dev/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
|
|
1915
1926
|
* @param {number} qos - MQTT delivery quality of service for this topic. 0 is fire-and-forget (delivered only to clients connected at publish time). 1 persists each message and replays it when a client reconnects without having acknowledged it. Null lets the subscriber choose.
|
|
1916
|
-
* @param {number} expiry - Message retention in seconds for offline delivery. Max 7 days (604800).
|
|
1927
|
+
* @param {number} expiry - Message retention in seconds for offline delivery. Max 7 days (604800). Null inherits the lowest expiry of the project's enabled Owbase providers, or the 7-day ledger window if none sets one.
|
|
1928
|
+
* @param {string} description - Optional description for the topic.
|
|
1917
1929
|
* @throws {OwbaseException}
|
|
1918
1930
|
* @returns {Promise<Models.Topic>}
|
|
1919
1931
|
* @deprecated Use the object parameter style method for a better developer experience.
|
|
1920
1932
|
*/
|
|
1921
|
-
updateTopic(topicId: string, name?: string, subscribe?: string[], qos?: number, expiry?: number): Promise<Models.Topic>;
|
|
1933
|
+
updateTopic(topicId: string, name?: string, subscribe?: string[], qos?: number, expiry?: number, description?: string): Promise<Models.Topic>;
|
|
1922
1934
|
/**
|
|
1923
1935
|
* Delete a topic by its unique ID.
|
|
1924
1936
|
*
|