featurebase-node 0.14.2 → 0.15.0
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/CHANGELOG.md +16 -0
- package/client.d.mts +5 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -5
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs.d.mts +3 -3
- package/resources/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs.d.ts +3 -3
- package/resources/audit-logs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.d.mts +116 -116
- package/resources/changelogs/changelogs.d.mts.map +1 -1
- package/resources/changelogs/changelogs.d.ts +116 -116
- package/resources/changelogs/changelogs.d.ts.map +1 -1
- package/resources/changelogs/changelogs.js +74 -74
- package/resources/changelogs/changelogs.js.map +1 -1
- package/resources/changelogs/changelogs.mjs +74 -74
- package/resources/changelogs/changelogs.mjs.map +1 -1
- package/resources/changelogs/index.d.mts +1 -1
- package/resources/changelogs/index.d.mts.map +1 -1
- package/resources/changelogs/index.d.ts +1 -1
- package/resources/changelogs/index.d.ts.map +1 -1
- package/resources/changelogs/subscribers.d.mts +3 -3
- package/resources/changelogs/subscribers.d.mts.map +1 -1
- package/resources/changelogs/subscribers.d.ts +3 -3
- package/resources/changelogs/subscribers.d.ts.map +1 -1
- package/resources/conversation-attributes.d.mts +17 -17
- package/resources/conversation-attributes.d.mts.map +1 -1
- package/resources/conversation-attributes.d.ts +17 -17
- package/resources/conversation-attributes.d.ts.map +1 -1
- package/resources/conversation-attributes.js +19 -19
- package/resources/conversation-attributes.js.map +1 -1
- package/resources/conversation-attributes.mjs +19 -19
- package/resources/conversation-attributes.mjs.map +1 -1
- package/resources/feedback/boards.d.mts +19 -19
- package/resources/feedback/boards.d.mts.map +1 -1
- package/resources/feedback/boards.d.ts +19 -19
- package/resources/feedback/boards.d.ts.map +1 -1
- package/resources/feedback/boards.js +20 -20
- package/resources/feedback/boards.js.map +1 -1
- package/resources/feedback/boards.mjs +20 -20
- package/resources/feedback/boards.mjs.map +1 -1
- package/resources/feedback/comments.d.mts +113 -113
- package/resources/feedback/comments.d.mts.map +1 -1
- package/resources/feedback/comments.d.ts +113 -113
- package/resources/feedback/comments.d.ts.map +1 -1
- package/resources/feedback/comments.js +93 -93
- package/resources/feedback/comments.js.map +1 -1
- package/resources/feedback/comments.mjs +93 -93
- package/resources/feedback/comments.mjs.map +1 -1
- package/resources/feedback/custom-fields.d.mts +36 -36
- package/resources/feedback/custom-fields.d.mts.map +1 -1
- package/resources/feedback/custom-fields.d.ts +36 -36
- package/resources/feedback/custom-fields.d.ts.map +1 -1
- package/resources/feedback/custom-fields.js +36 -36
- package/resources/feedback/custom-fields.js.map +1 -1
- package/resources/feedback/custom-fields.mjs +36 -36
- package/resources/feedback/custom-fields.mjs.map +1 -1
- package/resources/feedback/feedback.d.mts +6 -6
- package/resources/feedback/feedback.d.mts.map +1 -1
- package/resources/feedback/feedback.d.ts +6 -6
- package/resources/feedback/feedback.d.ts.map +1 -1
- package/resources/feedback/feedback.js.map +1 -1
- package/resources/feedback/feedback.mjs.map +1 -1
- package/resources/feedback/index.d.mts +5 -5
- package/resources/feedback/index.d.mts.map +1 -1
- package/resources/feedback/index.d.ts +5 -5
- package/resources/feedback/index.d.ts.map +1 -1
- package/resources/feedback/index.js.map +1 -1
- package/resources/feedback/index.mjs.map +1 -1
- package/resources/feedback/post-statuses.d.mts +20 -20
- package/resources/feedback/post-statuses.d.mts.map +1 -1
- package/resources/feedback/post-statuses.d.ts +20 -20
- package/resources/feedback/post-statuses.d.ts.map +1 -1
- package/resources/feedback/post-statuses.js +23 -23
- package/resources/feedback/post-statuses.js.map +1 -1
- package/resources/feedback/post-statuses.mjs +23 -23
- package/resources/feedback/post-statuses.mjs.map +1 -1
- package/resources/feedback/posts/index.d.mts +1 -1
- package/resources/feedback/posts/index.d.mts.map +1 -1
- package/resources/feedback/posts/index.d.ts +1 -1
- package/resources/feedback/posts/index.d.ts.map +1 -1
- package/resources/feedback/posts/index.js.map +1 -1
- package/resources/feedback/posts/index.mjs.map +1 -1
- package/resources/feedback/posts/posts.d.mts +169 -102
- package/resources/feedback/posts/posts.d.mts.map +1 -1
- package/resources/feedback/posts/posts.d.ts +169 -102
- package/resources/feedback/posts/posts.d.ts.map +1 -1
- package/resources/feedback/posts/posts.js +144 -75
- package/resources/feedback/posts/posts.js.map +1 -1
- package/resources/feedback/posts/posts.mjs +144 -75
- package/resources/feedback/posts/posts.mjs.map +1 -1
- package/resources/feedback/posts/voters.d.mts +3 -3
- package/resources/feedback/posts/voters.d.mts.map +1 -1
- package/resources/feedback/posts/voters.d.ts +3 -3
- package/resources/feedback/posts/voters.d.ts.map +1 -1
- package/resources/help-center/articles.d.mts +213 -97
- package/resources/help-center/articles.d.mts.map +1 -1
- package/resources/help-center/articles.d.ts +213 -97
- package/resources/help-center/articles.d.ts.map +1 -1
- package/resources/help-center/articles.js +73 -73
- package/resources/help-center/articles.js.map +1 -1
- package/resources/help-center/articles.mjs +73 -73
- package/resources/help-center/articles.mjs.map +1 -1
- package/resources/help-center/collections.d.mts +158 -71
- package/resources/help-center/collections.d.mts.map +1 -1
- package/resources/help-center/collections.d.ts +158 -71
- package/resources/help-center/collections.d.ts.map +1 -1
- package/resources/help-center/collections.js +65 -65
- package/resources/help-center/collections.js.map +1 -1
- package/resources/help-center/collections.mjs +65 -65
- package/resources/help-center/collections.mjs.map +1 -1
- package/resources/help-center/help-center.d.mts +4 -4
- package/resources/help-center/help-center.d.mts.map +1 -1
- package/resources/help-center/help-center.d.ts +4 -4
- package/resources/help-center/help-center.d.ts.map +1 -1
- package/resources/help-center/help-centers.d.mts +77 -48
- package/resources/help-center/help-centers.d.mts.map +1 -1
- package/resources/help-center/help-centers.d.ts +77 -48
- package/resources/help-center/help-centers.d.ts.map +1 -1
- package/resources/help-center/help-centers.js +43 -43
- package/resources/help-center/help-centers.js.map +1 -1
- package/resources/help-center/help-centers.mjs +43 -43
- package/resources/help-center/help-centers.mjs.map +1 -1
- package/resources/help-center/index.d.mts +4 -4
- package/resources/help-center/index.d.mts.map +1 -1
- package/resources/help-center/index.d.ts +4 -4
- package/resources/help-center/index.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.d.mts +124 -124
- package/resources/help-center/redirect-rules.d.mts.map +1 -1
- package/resources/help-center/redirect-rules.d.ts +124 -124
- package/resources/help-center/redirect-rules.d.ts.map +1 -1
- package/resources/help-center/redirect-rules.js +112 -112
- package/resources/help-center/redirect-rules.js.map +1 -1
- package/resources/help-center/redirect-rules.mjs +112 -112
- package/resources/help-center/redirect-rules.mjs.map +1 -1
- package/resources/index.d.mts +5 -5
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -5
- package/resources/index.d.ts.map +1 -1
- package/resources/organization/admins.d.mts +26 -26
- package/resources/organization/admins.d.mts.map +1 -1
- package/resources/organization/admins.d.ts +26 -26
- package/resources/organization/admins.d.ts.map +1 -1
- package/resources/organization/admins.js +25 -25
- package/resources/organization/admins.js.map +1 -1
- package/resources/organization/admins.mjs +25 -25
- package/resources/organization/admins.mjs.map +1 -1
- package/resources/organization/brands.d.mts +52 -52
- package/resources/organization/brands.d.mts.map +1 -1
- package/resources/organization/brands.d.ts +52 -52
- package/resources/organization/brands.d.ts.map +1 -1
- package/resources/organization/brands.js +54 -54
- package/resources/organization/brands.js.map +1 -1
- package/resources/organization/brands.mjs +54 -54
- package/resources/organization/brands.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -3
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +3 -3
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +3 -3
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +3 -3
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/teams.d.mts +47 -47
- package/resources/organization/teams.d.mts.map +1 -1
- package/resources/organization/teams.d.ts +47 -47
- package/resources/organization/teams.d.ts.map +1 -1
- package/resources/organization/teams.js +44 -44
- package/resources/organization/teams.js.map +1 -1
- package/resources/organization/teams.mjs +44 -44
- package/resources/organization/teams.mjs.map +1 -1
- package/resources/reports.d.mts +347 -180
- package/resources/reports.d.mts.map +1 -1
- package/resources/reports.d.ts +347 -180
- package/resources/reports.d.ts.map +1 -1
- package/resources/reports.js +124 -99
- package/resources/reports.js.map +1 -1
- package/resources/reports.mjs +124 -99
- package/resources/reports.mjs.map +1 -1
- package/resources/support/conversation-tags.d.mts +43 -43
- package/resources/support/conversation-tags.d.mts.map +1 -1
- package/resources/support/conversation-tags.d.ts +43 -43
- package/resources/support/conversation-tags.d.ts.map +1 -1
- package/resources/support/conversation-tags.js +32 -32
- package/resources/support/conversation-tags.js.map +1 -1
- package/resources/support/conversation-tags.mjs +32 -32
- package/resources/support/conversation-tags.mjs.map +1 -1
- package/resources/support/conversations/conversations.d.mts +402 -351
- package/resources/support/conversations/conversations.d.mts.map +1 -1
- package/resources/support/conversations/conversations.d.ts +402 -351
- package/resources/support/conversations/conversations.d.ts.map +1 -1
- package/resources/support/conversations/conversations.js +340 -295
- package/resources/support/conversations/conversations.js.map +1 -1
- package/resources/support/conversations/conversations.mjs +340 -295
- package/resources/support/conversations/conversations.mjs.map +1 -1
- package/resources/support/conversations/index.d.mts +1 -1
- package/resources/support/conversations/index.d.mts.map +1 -1
- package/resources/support/conversations/index.d.ts +1 -1
- package/resources/support/conversations/index.d.ts.map +1 -1
- package/resources/support/conversations/participants.d.mts +2 -2
- package/resources/support/conversations/participants.d.mts.map +1 -1
- package/resources/support/conversations/participants.d.ts +2 -2
- package/resources/support/conversations/participants.d.ts.map +1 -1
- package/resources/support/index.d.mts +3 -3
- package/resources/support/index.d.mts.map +1 -1
- package/resources/support/index.d.ts +3 -3
- package/resources/support/index.d.ts.map +1 -1
- package/resources/support/support.d.mts +3 -3
- package/resources/support/support.d.mts.map +1 -1
- package/resources/support/support.d.ts +3 -3
- package/resources/support/support.d.ts.map +1 -1
- package/resources/support/tickets/categories.d.mts +20 -20
- package/resources/support/tickets/categories.d.mts.map +1 -1
- package/resources/support/tickets/categories.d.ts +20 -20
- package/resources/support/tickets/categories.d.ts.map +1 -1
- package/resources/support/tickets/categories.js +25 -25
- package/resources/support/tickets/categories.js.map +1 -1
- package/resources/support/tickets/categories.mjs +25 -25
- package/resources/support/tickets/categories.mjs.map +1 -1
- package/resources/support/tickets/custom-fields.d.mts +22 -22
- package/resources/support/tickets/custom-fields.d.mts.map +1 -1
- package/resources/support/tickets/custom-fields.d.ts +22 -22
- package/resources/support/tickets/custom-fields.d.ts.map +1 -1
- package/resources/support/tickets/custom-fields.js +19 -19
- package/resources/support/tickets/custom-fields.js.map +1 -1
- package/resources/support/tickets/custom-fields.mjs +19 -19
- package/resources/support/tickets/custom-fields.mjs.map +1 -1
- package/resources/support/tickets/index.d.mts +4 -4
- package/resources/support/tickets/index.d.mts.map +1 -1
- package/resources/support/tickets/index.d.ts +4 -4
- package/resources/support/tickets/index.d.ts.map +1 -1
- package/resources/support/tickets/statuses.d.mts +19 -19
- package/resources/support/tickets/statuses.d.mts.map +1 -1
- package/resources/support/tickets/statuses.d.ts +19 -19
- package/resources/support/tickets/statuses.d.ts.map +1 -1
- package/resources/support/tickets/statuses.js +21 -21
- package/resources/support/tickets/statuses.js.map +1 -1
- package/resources/support/tickets/statuses.mjs +21 -21
- package/resources/support/tickets/statuses.mjs.map +1 -1
- package/resources/support/tickets/tickets.d.mts +75 -75
- package/resources/support/tickets/tickets.d.mts.map +1 -1
- package/resources/support/tickets/tickets.d.ts +75 -75
- package/resources/support/tickets/tickets.d.ts.map +1 -1
- package/resources/support/tickets/tickets.js +44 -44
- package/resources/support/tickets/tickets.js.map +1 -1
- package/resources/support/tickets/tickets.mjs +44 -44
- package/resources/support/tickets/tickets.mjs.map +1 -1
- package/resources/surveys.d.mts +43 -43
- package/resources/surveys.d.mts.map +1 -1
- package/resources/surveys.d.ts +43 -43
- package/resources/surveys.d.ts.map +1 -1
- package/resources/surveys.js +44 -44
- package/resources/surveys.js.map +1 -1
- package/resources/surveys.mjs +44 -44
- package/resources/surveys.mjs.map +1 -1
- package/resources/users/companies/companies.d.mts +121 -130
- package/resources/users/companies/companies.d.mts.map +1 -1
- package/resources/users/companies/companies.d.ts +121 -130
- package/resources/users/companies/companies.d.ts.map +1 -1
- package/resources/users/companies/companies.js +125 -125
- package/resources/users/companies/companies.js.map +1 -1
- package/resources/users/companies/companies.mjs +125 -125
- package/resources/users/companies/companies.mjs.map +1 -1
- package/resources/users/companies/contacts.d.mts +3 -3
- package/resources/users/companies/contacts.d.mts.map +1 -1
- package/resources/users/companies/contacts.d.ts +3 -3
- package/resources/users/companies/contacts.d.ts.map +1 -1
- package/resources/users/companies/index.d.mts +1 -1
- package/resources/users/companies/index.d.mts.map +1 -1
- package/resources/users/companies/index.d.ts +1 -1
- package/resources/users/companies/index.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
- package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
- package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/contacts.d.mts +249 -235
- package/resources/users/contacts/contacts.d.mts.map +1 -1
- package/resources/users/contacts/contacts.d.ts +249 -235
- package/resources/users/contacts/contacts.d.ts.map +1 -1
- package/resources/users/contacts/contacts.js +211 -184
- package/resources/users/contacts/contacts.js.map +1 -1
- package/resources/users/contacts/contacts.mjs +211 -184
- package/resources/users/contacts/contacts.mjs.map +1 -1
- package/resources/users/contacts/email-preferences.d.mts +2 -2
- package/resources/users/contacts/email-preferences.d.mts.map +1 -1
- package/resources/users/contacts/email-preferences.d.ts +2 -2
- package/resources/users/contacts/email-preferences.d.ts.map +1 -1
- package/resources/users/contacts/index.d.mts +1 -1
- package/resources/users/contacts/index.d.mts.map +1 -1
- package/resources/users/contacts/index.d.ts +1 -1
- package/resources/users/contacts/index.d.ts.map +1 -1
- package/resources/users/index.d.mts +2 -2
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +2 -2
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/webhooks.d.mts +83 -83
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +83 -83
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +77 -77
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +77 -77
- package/resources/webhooks.mjs.map +1 -1
- package/src/client.ts +6 -6
- package/src/resources/audit-logs.ts +7 -1
- package/src/resources/changelogs/changelogs.ts +320 -175
- package/src/resources/changelogs/index.ts +1 -1
- package/src/resources/changelogs/subscribers.ts +31 -2
- package/src/resources/conversation-attributes.ts +34 -34
- package/src/resources/feedback/boards.ts +30 -30
- package/src/resources/feedback/comments.ts +137 -137
- package/src/resources/feedback/custom-fields.ts +46 -46
- package/src/resources/feedback/feedback.ts +9 -5
- package/src/resources/feedback/index.ts +7 -5
- package/src/resources/feedback/post-statuses.ts +33 -33
- package/src/resources/feedback/posts/index.ts +3 -1
- package/src/resources/feedback/posts/posts.ts +232 -128
- package/src/resources/feedback/posts/voters.ts +3 -3
- package/src/resources/help-center/articles.ts +631 -109
- package/src/resources/help-center/collections.ts +349 -88
- package/src/resources/help-center/help-center.ts +5 -5
- package/src/resources/help-center/help-centers.ts +202 -57
- package/src/resources/help-center/index.ts +5 -5
- package/src/resources/help-center/redirect-rules.ts +294 -178
- package/src/resources/index.ts +6 -6
- package/src/resources/organization/admins.ts +36 -36
- package/src/resources/organization/brands.ts +68 -68
- package/src/resources/organization/index.ts +3 -3
- package/src/resources/organization/organization.ts +3 -3
- package/src/resources/organization/teams.ts +54 -54
- package/src/resources/reports.ts +454 -232
- package/src/resources/support/conversation-tags.ts +62 -62
- package/src/resources/support/conversations/conversations.ts +489 -438
- package/src/resources/support/conversations/index.ts +4 -4
- package/src/resources/support/conversations/participants.ts +2 -2
- package/src/resources/support/index.ts +7 -7
- package/src/resources/support/support.ts +7 -7
- package/src/resources/support/tickets/categories.ts +35 -35
- package/src/resources/support/tickets/custom-fields.ts +29 -29
- package/src/resources/support/tickets/index.ts +4 -4
- package/src/resources/support/tickets/statuses.ts +31 -31
- package/src/resources/support/tickets/tickets.ts +101 -101
- package/src/resources/surveys.ts +60 -60
- package/src/resources/users/companies/companies.ts +158 -172
- package/src/resources/users/companies/contacts.ts +3 -3
- package/src/resources/users/companies/index.ts +2 -2
- package/src/resources/users/contacts/by-user-id/by-user-id.ts +2 -2
- package/src/resources/users/contacts/by-user-id/email-preferences.ts +2 -2
- package/src/resources/users/contacts/contacts.ts +284 -280
- package/src/resources/users/contacts/email-preferences.ts +2 -2
- package/src/resources/users/contacts/index.ts +3 -3
- package/src/resources/users/index.ts +5 -5
- package/src/resources/users/users.ts +5 -5
- package/src/resources/webhooks.ts +106 -100
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -11,69 +11,6 @@ import { path } from '../../internal/utils/path';
|
|
|
11
11
|
* Help centers allow organizations to create and manage knowledge bases with articles and collections. Currently, Featurebase supports one help center per organization.
|
|
12
12
|
*/
|
|
13
13
|
export class RedirectRules extends APIResource {
|
|
14
|
-
/**
|
|
15
|
-
* Returns a paginated list of redirect rules within your organization.
|
|
16
|
-
*
|
|
17
|
-
* Redirect rules map old Help Center URLs to new article or collection
|
|
18
|
-
* destinations, enabling seamless migration from legacy help center systems. Only
|
|
19
|
-
* Help Centers with a custom domain configured support redirect rules.
|
|
20
|
-
*
|
|
21
|
-
* ### Query Parameters
|
|
22
|
-
*
|
|
23
|
-
* - `limit` - Number of items to return (1-100, default 10)
|
|
24
|
-
* - `cursor` - Cursor for pagination
|
|
25
|
-
* - `helpCenterId` - Filter by help center ID
|
|
26
|
-
* - `locale` - Filter by locale code
|
|
27
|
-
* - `targetType` - Filter by target type ("article" or "collection")
|
|
28
|
-
*
|
|
29
|
-
* ### Response Format
|
|
30
|
-
*
|
|
31
|
-
* Returns a list object with:
|
|
32
|
-
*
|
|
33
|
-
* - `object` - Always "list"
|
|
34
|
-
* - `data` - Array of redirect rule objects
|
|
35
|
-
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
36
|
-
*
|
|
37
|
-
* ### Redirect Rule Object
|
|
38
|
-
*
|
|
39
|
-
* Each redirect rule includes:
|
|
40
|
-
*
|
|
41
|
-
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
42
|
-
* - `helpCenterId` - Help center this rule belongs to
|
|
43
|
-
* - `locale` - Locale code used to resolve the target translation
|
|
44
|
-
* - `fromUrl` - Canonical source URL (query/hash stripped, hostname lowercased)
|
|
45
|
-
* - `targetType` - "article" or "collection"
|
|
46
|
-
* - `targetId` - ID of the target article or collection
|
|
47
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
48
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* ```ts
|
|
52
|
-
* // Automatically fetches more pages as needed.
|
|
53
|
-
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
54
|
-
* // ...
|
|
55
|
-
* }
|
|
56
|
-
* ```
|
|
57
|
-
*/
|
|
58
|
-
list(
|
|
59
|
-
params: RedirectRuleListParams | null | undefined = {},
|
|
60
|
-
options?: RequestOptions,
|
|
61
|
-
): PagePromise<RedirectRulesCursorPage, RedirectRule> {
|
|
62
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
63
|
-
return this._client.getAPIList('/v2/help_center/redirect_rules', CursorPage<RedirectRule>, {
|
|
64
|
-
query,
|
|
65
|
-
...options,
|
|
66
|
-
headers: buildHeaders([
|
|
67
|
-
{
|
|
68
|
-
...(featurebaseVersion?.toString() != null ?
|
|
69
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
70
|
-
: undefined),
|
|
71
|
-
},
|
|
72
|
-
options?.headers,
|
|
73
|
-
]),
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
14
|
/**
|
|
78
15
|
* Creates a new redirect rule in your organization.
|
|
79
16
|
*
|
|
@@ -133,60 +70,6 @@ export class RedirectRules extends APIResource {
|
|
|
133
70
|
});
|
|
134
71
|
}
|
|
135
72
|
|
|
136
|
-
/**
|
|
137
|
-
* Retrieves a specific redirect rule by its source URL.
|
|
138
|
-
*
|
|
139
|
-
* The `url` query parameter is normalized before matching: query parameters and
|
|
140
|
-
* hash fragments are stripped, the hostname is lowercased, and trailing slashes
|
|
141
|
-
* are removed. This is the same normalization applied when creating a redirect
|
|
142
|
-
* rule.
|
|
143
|
-
*
|
|
144
|
-
* ### Query Parameters
|
|
145
|
-
*
|
|
146
|
-
* - `url` (required) - Full absolute URL to look up (http or https)
|
|
147
|
-
*
|
|
148
|
-
* ### Response
|
|
149
|
-
*
|
|
150
|
-
* Returns a redirect rule object with:
|
|
151
|
-
*
|
|
152
|
-
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
153
|
-
* - `helpCenterId` - Help center this rule belongs to
|
|
154
|
-
* - `locale` - Locale code
|
|
155
|
-
* - `fromUrl` - Canonical source URL being redirected from
|
|
156
|
-
* - `targetType` - "article" or "collection"
|
|
157
|
-
* - `targetId` - ID of the target article or collection
|
|
158
|
-
* - `createdAt` - ISO 8601 timestamp when created
|
|
159
|
-
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
160
|
-
*
|
|
161
|
-
* ### Errors
|
|
162
|
-
*
|
|
163
|
-
* - `400` - Invalid URL format
|
|
164
|
-
* - `404` - No redirect rule exists for the given URL
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```ts
|
|
168
|
-
* const redirectRule =
|
|
169
|
-
* await client.helpCenter.redirectRules.retrieveByURL({
|
|
170
|
-
* url: 'https://help.example.com/en/old/getting-started',
|
|
171
|
-
* });
|
|
172
|
-
* ```
|
|
173
|
-
*/
|
|
174
|
-
retrieveByURL(params: RedirectRuleRetrieveByURLParams, options?: RequestOptions): APIPromise<RedirectRule> {
|
|
175
|
-
const { 'Featurebase-Version': featurebaseVersion, ...query } = params;
|
|
176
|
-
return this._client.get('/v2/help_center/redirect_rules/by-url', {
|
|
177
|
-
query,
|
|
178
|
-
...options,
|
|
179
|
-
headers: buildHeaders([
|
|
180
|
-
{
|
|
181
|
-
...(featurebaseVersion?.toString() != null ?
|
|
182
|
-
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
183
|
-
: undefined),
|
|
184
|
-
},
|
|
185
|
-
options?.headers,
|
|
186
|
-
]),
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
|
|
190
73
|
/**
|
|
191
74
|
* Retrieves a specific redirect rule by its unique identifier.
|
|
192
75
|
*
|
|
@@ -290,6 +173,69 @@ export class RedirectRules extends APIResource {
|
|
|
290
173
|
});
|
|
291
174
|
}
|
|
292
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Returns a paginated list of redirect rules within your organization.
|
|
178
|
+
*
|
|
179
|
+
* Redirect rules map old Help Center URLs to new article or collection
|
|
180
|
+
* destinations, enabling seamless migration from legacy help center systems. Only
|
|
181
|
+
* Help Centers with a custom domain configured support redirect rules.
|
|
182
|
+
*
|
|
183
|
+
* ### Query Parameters
|
|
184
|
+
*
|
|
185
|
+
* - `limit` - Number of items to return (1-100, default 10)
|
|
186
|
+
* - `cursor` - Cursor for pagination
|
|
187
|
+
* - `helpCenterId` - Filter by help center ID
|
|
188
|
+
* - `locale` - Filter by locale code
|
|
189
|
+
* - `targetType` - Filter by target type ("article" or "collection")
|
|
190
|
+
*
|
|
191
|
+
* ### Response Format
|
|
192
|
+
*
|
|
193
|
+
* Returns a list object with:
|
|
194
|
+
*
|
|
195
|
+
* - `object` - Always "list"
|
|
196
|
+
* - `data` - Array of redirect rule objects
|
|
197
|
+
* - `nextCursor` - Cursor for next page (null if no more results)
|
|
198
|
+
*
|
|
199
|
+
* ### Redirect Rule Object
|
|
200
|
+
*
|
|
201
|
+
* Each redirect rule includes:
|
|
202
|
+
*
|
|
203
|
+
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
204
|
+
* - `helpCenterId` - Help center this rule belongs to
|
|
205
|
+
* - `locale` - Locale code used to resolve the target translation
|
|
206
|
+
* - `fromUrl` - Canonical source URL (query/hash stripped, hostname lowercased)
|
|
207
|
+
* - `targetType` - "article" or "collection"
|
|
208
|
+
* - `targetId` - ID of the target article or collection
|
|
209
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
210
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```ts
|
|
214
|
+
* // Automatically fetches more pages as needed.
|
|
215
|
+
* for await (const redirectRule of client.helpCenter.redirectRules.list()) {
|
|
216
|
+
* // ...
|
|
217
|
+
* }
|
|
218
|
+
* ```
|
|
219
|
+
*/
|
|
220
|
+
list(
|
|
221
|
+
params: RedirectRuleListParams | null | undefined = {},
|
|
222
|
+
options?: RequestOptions,
|
|
223
|
+
): PagePromise<RedirectRulesCursorPage, RedirectRule> {
|
|
224
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
|
|
225
|
+
return this._client.getAPIList('/v2/help_center/redirect_rules', CursorPage<RedirectRule>, {
|
|
226
|
+
query,
|
|
227
|
+
...options,
|
|
228
|
+
headers: buildHeaders([
|
|
229
|
+
{
|
|
230
|
+
...(featurebaseVersion?.toString() != null ?
|
|
231
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
232
|
+
: undefined),
|
|
233
|
+
},
|
|
234
|
+
options?.headers,
|
|
235
|
+
]),
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
|
|
293
239
|
/**
|
|
294
240
|
* Deletes an existing redirect rule. The associated Redis cache entry is also
|
|
295
241
|
* invalidated.
|
|
@@ -336,6 +282,60 @@ export class RedirectRules extends APIResource {
|
|
|
336
282
|
]),
|
|
337
283
|
});
|
|
338
284
|
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Retrieves a specific redirect rule by its source URL.
|
|
288
|
+
*
|
|
289
|
+
* The `url` query parameter is normalized before matching: query parameters and
|
|
290
|
+
* hash fragments are stripped, the hostname is lowercased, and trailing slashes
|
|
291
|
+
* are removed. This is the same normalization applied when creating a redirect
|
|
292
|
+
* rule.
|
|
293
|
+
*
|
|
294
|
+
* ### Query Parameters
|
|
295
|
+
*
|
|
296
|
+
* - `url` (required) - Full absolute URL to look up (http or https)
|
|
297
|
+
*
|
|
298
|
+
* ### Response
|
|
299
|
+
*
|
|
300
|
+
* Returns a redirect rule object with:
|
|
301
|
+
*
|
|
302
|
+
* - `id` - Unique identifier (MongoDB ObjectId)
|
|
303
|
+
* - `helpCenterId` - Help center this rule belongs to
|
|
304
|
+
* - `locale` - Locale code
|
|
305
|
+
* - `fromUrl` - Canonical source URL being redirected from
|
|
306
|
+
* - `targetType` - "article" or "collection"
|
|
307
|
+
* - `targetId` - ID of the target article or collection
|
|
308
|
+
* - `createdAt` - ISO 8601 timestamp when created
|
|
309
|
+
* - `updatedAt` - ISO 8601 timestamp when last updated
|
|
310
|
+
*
|
|
311
|
+
* ### Errors
|
|
312
|
+
*
|
|
313
|
+
* - `400` - Invalid URL format
|
|
314
|
+
* - `404` - No redirect rule exists for the given URL
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```ts
|
|
318
|
+
* const redirectRule =
|
|
319
|
+
* await client.helpCenter.redirectRules.retrieveByURL({
|
|
320
|
+
* url: 'https://help.example.com/en/old/getting-started',
|
|
321
|
+
* });
|
|
322
|
+
* ```
|
|
323
|
+
*/
|
|
324
|
+
retrieveByURL(params: RedirectRuleRetrieveByURLParams, options?: RequestOptions): APIPromise<RedirectRule> {
|
|
325
|
+
const { 'Featurebase-Version': featurebaseVersion, ...query } = params;
|
|
326
|
+
return this._client.get('/v2/help_center/redirect_rules/by-url', {
|
|
327
|
+
query,
|
|
328
|
+
...options,
|
|
329
|
+
headers: buildHeaders([
|
|
330
|
+
{
|
|
331
|
+
...(featurebaseVersion?.toString() != null ?
|
|
332
|
+
{ 'Featurebase-Version': featurebaseVersion?.toString() }
|
|
333
|
+
: undefined),
|
|
334
|
+
},
|
|
335
|
+
options?.headers,
|
|
336
|
+
]),
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
export type RedirectRulesCursorPage = CursorPage<RedirectRule>;
|
|
@@ -365,6 +365,35 @@ export interface RedirectRule {
|
|
|
365
365
|
* Locale code for the redirect rule
|
|
366
366
|
*/
|
|
367
367
|
locale:
|
|
368
|
+
| 'ar'
|
|
369
|
+
| 'am'
|
|
370
|
+
| 'fa'
|
|
371
|
+
| 'ht'
|
|
372
|
+
| 'lo'
|
|
373
|
+
| 'my'
|
|
374
|
+
| 'pa'
|
|
375
|
+
| 'ps'
|
|
376
|
+
| 'so'
|
|
377
|
+
| 'tl'
|
|
378
|
+
| 'ur'
|
|
379
|
+
| 'he'
|
|
380
|
+
| 'ta'
|
|
381
|
+
| 'te'
|
|
382
|
+
| 'mr'
|
|
383
|
+
| 'gu'
|
|
384
|
+
| 'kn'
|
|
385
|
+
| 'ml'
|
|
386
|
+
| 'ha'
|
|
387
|
+
| 'jv'
|
|
388
|
+
| 'yo'
|
|
389
|
+
| 'ig'
|
|
390
|
+
| 'uz'
|
|
391
|
+
| 'ne'
|
|
392
|
+
| 'sd'
|
|
393
|
+
| 'az'
|
|
394
|
+
| 'si'
|
|
395
|
+
| 'km'
|
|
396
|
+
| 'kk'
|
|
368
397
|
| 'bn'
|
|
369
398
|
| 'bs'
|
|
370
399
|
| 'pt-BR'
|
|
@@ -446,16 +475,53 @@ export interface RedirectRuleDeleteResponse {
|
|
|
446
475
|
object: 'redirect_rule';
|
|
447
476
|
}
|
|
448
477
|
|
|
449
|
-
export interface
|
|
478
|
+
export interface RedirectRuleCreateParams {
|
|
450
479
|
/**
|
|
451
|
-
*
|
|
480
|
+
* Body param: Full absolute URL to redirect from. Must use http or https protocol.
|
|
481
|
+
* Query parameters and hash fragments are stripped during normalization. The
|
|
482
|
+
* hostname must match the Help Center custom domain.
|
|
452
483
|
*/
|
|
453
|
-
|
|
484
|
+
fromUrl: string;
|
|
454
485
|
|
|
455
486
|
/**
|
|
456
|
-
*
|
|
487
|
+
* Body param: Help center identifier this redirect rule belongs to
|
|
457
488
|
*/
|
|
458
|
-
|
|
489
|
+
helpCenterId: string;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* Body param: Locale code for the redirect rule. Used to resolve the target
|
|
493
|
+
* article/collection translation.
|
|
494
|
+
*/
|
|
495
|
+
locale:
|
|
496
|
+
| 'ar'
|
|
497
|
+
| 'am'
|
|
498
|
+
| 'fa'
|
|
499
|
+
| 'ht'
|
|
500
|
+
| 'lo'
|
|
501
|
+
| 'my'
|
|
502
|
+
| 'pa'
|
|
503
|
+
| 'ps'
|
|
504
|
+
| 'so'
|
|
505
|
+
| 'tl'
|
|
506
|
+
| 'ur'
|
|
507
|
+
| 'he'
|
|
508
|
+
| 'ta'
|
|
509
|
+
| 'te'
|
|
510
|
+
| 'mr'
|
|
511
|
+
| 'gu'
|
|
512
|
+
| 'kn'
|
|
513
|
+
| 'ml'
|
|
514
|
+
| 'ha'
|
|
515
|
+
| 'jv'
|
|
516
|
+
| 'yo'
|
|
517
|
+
| 'ig'
|
|
518
|
+
| 'uz'
|
|
519
|
+
| 'ne'
|
|
520
|
+
| 'sd'
|
|
521
|
+
| 'az'
|
|
522
|
+
| 'si'
|
|
523
|
+
| 'km'
|
|
524
|
+
| 'kk'
|
|
459
525
|
| 'bn'
|
|
460
526
|
| 'bs'
|
|
461
527
|
| 'pt-BR'
|
|
@@ -500,35 +566,76 @@ export interface RedirectRuleListParams extends CursorPageParams {
|
|
|
500
566
|
| 'vi';
|
|
501
567
|
|
|
502
568
|
/**
|
|
503
|
-
*
|
|
569
|
+
* Body param: ID of the target article or collection
|
|
504
570
|
*/
|
|
505
|
-
|
|
571
|
+
targetId: string;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Body param: Type of content the redirect points to
|
|
575
|
+
*/
|
|
576
|
+
targetType: 'article' | 'collection';
|
|
506
577
|
|
|
507
578
|
/**
|
|
508
579
|
* Header param: API version for this request. Defaults to your organization's
|
|
509
580
|
* configured API version if not specified.
|
|
510
581
|
*/
|
|
511
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
582
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
512
583
|
}
|
|
513
584
|
|
|
514
|
-
export interface
|
|
585
|
+
export interface RedirectRuleRetrieveParams {
|
|
586
|
+
/**
|
|
587
|
+
* API version for this request. Defaults to your organization's configured API
|
|
588
|
+
* version if not specified.
|
|
589
|
+
*/
|
|
590
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
export interface RedirectRuleUpdateParams {
|
|
515
594
|
/**
|
|
516
595
|
* Body param: Full absolute URL to redirect from. Must use http or https protocol.
|
|
517
596
|
* Query parameters and hash fragments are stripped during normalization. The
|
|
518
597
|
* hostname must match the Help Center custom domain.
|
|
519
598
|
*/
|
|
520
|
-
fromUrl
|
|
599
|
+
fromUrl?: string;
|
|
521
600
|
|
|
522
601
|
/**
|
|
523
|
-
* Body param: Help center identifier
|
|
602
|
+
* Body param: Help center identifier
|
|
524
603
|
*/
|
|
525
|
-
helpCenterId
|
|
604
|
+
helpCenterId?: string;
|
|
526
605
|
|
|
527
606
|
/**
|
|
528
|
-
* Body param: Locale code for the redirect rule
|
|
529
|
-
* article/collection translation.
|
|
607
|
+
* Body param: Locale code for the redirect rule
|
|
530
608
|
*/
|
|
531
|
-
locale
|
|
609
|
+
locale?:
|
|
610
|
+
| 'ar'
|
|
611
|
+
| 'am'
|
|
612
|
+
| 'fa'
|
|
613
|
+
| 'ht'
|
|
614
|
+
| 'lo'
|
|
615
|
+
| 'my'
|
|
616
|
+
| 'pa'
|
|
617
|
+
| 'ps'
|
|
618
|
+
| 'so'
|
|
619
|
+
| 'tl'
|
|
620
|
+
| 'ur'
|
|
621
|
+
| 'he'
|
|
622
|
+
| 'ta'
|
|
623
|
+
| 'te'
|
|
624
|
+
| 'mr'
|
|
625
|
+
| 'gu'
|
|
626
|
+
| 'kn'
|
|
627
|
+
| 'ml'
|
|
628
|
+
| 'ha'
|
|
629
|
+
| 'jv'
|
|
630
|
+
| 'yo'
|
|
631
|
+
| 'ig'
|
|
632
|
+
| 'uz'
|
|
633
|
+
| 'ne'
|
|
634
|
+
| 'sd'
|
|
635
|
+
| 'az'
|
|
636
|
+
| 'si'
|
|
637
|
+
| 'km'
|
|
638
|
+
| 'kk'
|
|
532
639
|
| 'bn'
|
|
533
640
|
| 'bs'
|
|
534
641
|
| 'pt-BR'
|
|
@@ -575,60 +682,59 @@ export interface RedirectRuleCreateParams {
|
|
|
575
682
|
/**
|
|
576
683
|
* Body param: ID of the target article or collection
|
|
577
684
|
*/
|
|
578
|
-
targetId
|
|
685
|
+
targetId?: string;
|
|
579
686
|
|
|
580
687
|
/**
|
|
581
688
|
* Body param: Type of content the redirect points to
|
|
582
689
|
*/
|
|
583
|
-
targetType
|
|
584
|
-
|
|
585
|
-
/**
|
|
586
|
-
* Header param: API version for this request. Defaults to your organization's
|
|
587
|
-
* configured API version if not specified.
|
|
588
|
-
*/
|
|
589
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
export interface RedirectRuleRetrieveByURLParams {
|
|
593
|
-
/**
|
|
594
|
-
* Query param: Full absolute URL to look up. The URL is normalized before
|
|
595
|
-
* matching: query parameters and hash fragments are stripped, the hostname is
|
|
596
|
-
* lowercased, and trailing slashes are removed.
|
|
597
|
-
*/
|
|
598
|
-
url: string;
|
|
690
|
+
targetType?: 'article' | 'collection';
|
|
599
691
|
|
|
600
692
|
/**
|
|
601
693
|
* Header param: API version for this request. Defaults to your organization's
|
|
602
694
|
* configured API version if not specified.
|
|
603
695
|
*/
|
|
604
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
export interface RedirectRuleRetrieveParams {
|
|
608
|
-
/**
|
|
609
|
-
* API version for this request. Defaults to your organization's configured API
|
|
610
|
-
* version if not specified.
|
|
611
|
-
*/
|
|
612
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
696
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
613
697
|
}
|
|
614
698
|
|
|
615
|
-
export interface
|
|
616
|
-
/**
|
|
617
|
-
* Body param: Full absolute URL to redirect from. Must use http or https protocol.
|
|
618
|
-
* Query parameters and hash fragments are stripped during normalization. The
|
|
619
|
-
* hostname must match the Help Center custom domain.
|
|
620
|
-
*/
|
|
621
|
-
fromUrl?: string;
|
|
622
|
-
|
|
699
|
+
export interface RedirectRuleListParams extends CursorPageParams {
|
|
623
700
|
/**
|
|
624
|
-
*
|
|
701
|
+
* Query param: Filter redirect rules by help center ID
|
|
625
702
|
*/
|
|
626
703
|
helpCenterId?: string;
|
|
627
704
|
|
|
628
705
|
/**
|
|
629
|
-
*
|
|
706
|
+
* Query param: Filter redirect rules by locale
|
|
630
707
|
*/
|
|
631
708
|
locale?:
|
|
709
|
+
| 'ar'
|
|
710
|
+
| 'am'
|
|
711
|
+
| 'fa'
|
|
712
|
+
| 'ht'
|
|
713
|
+
| 'lo'
|
|
714
|
+
| 'my'
|
|
715
|
+
| 'pa'
|
|
716
|
+
| 'ps'
|
|
717
|
+
| 'so'
|
|
718
|
+
| 'tl'
|
|
719
|
+
| 'ur'
|
|
720
|
+
| 'he'
|
|
721
|
+
| 'ta'
|
|
722
|
+
| 'te'
|
|
723
|
+
| 'mr'
|
|
724
|
+
| 'gu'
|
|
725
|
+
| 'kn'
|
|
726
|
+
| 'ml'
|
|
727
|
+
| 'ha'
|
|
728
|
+
| 'jv'
|
|
729
|
+
| 'yo'
|
|
730
|
+
| 'ig'
|
|
731
|
+
| 'uz'
|
|
732
|
+
| 'ne'
|
|
733
|
+
| 'sd'
|
|
734
|
+
| 'az'
|
|
735
|
+
| 'si'
|
|
736
|
+
| 'km'
|
|
737
|
+
| 'kk'
|
|
632
738
|
| 'bn'
|
|
633
739
|
| 'bs'
|
|
634
740
|
| 'pt-BR'
|
|
@@ -673,12 +779,7 @@ export interface RedirectRuleUpdateParams {
|
|
|
673
779
|
| 'vi';
|
|
674
780
|
|
|
675
781
|
/**
|
|
676
|
-
*
|
|
677
|
-
*/
|
|
678
|
-
targetId?: string;
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* Body param: Type of content the redirect points to
|
|
782
|
+
* Query param: Filter redirect rules by target type
|
|
682
783
|
*/
|
|
683
784
|
targetType?: 'article' | 'collection';
|
|
684
785
|
|
|
@@ -686,7 +787,7 @@ export interface RedirectRuleUpdateParams {
|
|
|
686
787
|
* Header param: API version for this request. Defaults to your organization's
|
|
687
788
|
* configured API version if not specified.
|
|
688
789
|
*/
|
|
689
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
790
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
690
791
|
}
|
|
691
792
|
|
|
692
793
|
export interface RedirectRuleDeleteParams {
|
|
@@ -694,7 +795,22 @@ export interface RedirectRuleDeleteParams {
|
|
|
694
795
|
* API version for this request. Defaults to your organization's configured API
|
|
695
796
|
* version if not specified.
|
|
696
797
|
*/
|
|
697
|
-
'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
|
|
798
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
export interface RedirectRuleRetrieveByURLParams {
|
|
802
|
+
/**
|
|
803
|
+
* Query param: Full absolute URL to look up. The URL is normalized before
|
|
804
|
+
* matching: query parameters and hash fragments are stripped, the hostname is
|
|
805
|
+
* lowercased, and trailing slashes are removed.
|
|
806
|
+
*/
|
|
807
|
+
url: string;
|
|
808
|
+
|
|
809
|
+
/**
|
|
810
|
+
* Header param: API version for this request. Defaults to your organization's
|
|
811
|
+
* configured API version if not specified.
|
|
812
|
+
*/
|
|
813
|
+
'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
|
|
698
814
|
}
|
|
699
815
|
|
|
700
816
|
export declare namespace RedirectRules {
|
|
@@ -702,11 +818,11 @@ export declare namespace RedirectRules {
|
|
|
702
818
|
type RedirectRule as RedirectRule,
|
|
703
819
|
type RedirectRuleDeleteResponse as RedirectRuleDeleteResponse,
|
|
704
820
|
type RedirectRulesCursorPage as RedirectRulesCursorPage,
|
|
705
|
-
type RedirectRuleListParams as RedirectRuleListParams,
|
|
706
821
|
type RedirectRuleCreateParams as RedirectRuleCreateParams,
|
|
707
|
-
type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams,
|
|
708
822
|
type RedirectRuleRetrieveParams as RedirectRuleRetrieveParams,
|
|
709
823
|
type RedirectRuleUpdateParams as RedirectRuleUpdateParams,
|
|
824
|
+
type RedirectRuleListParams as RedirectRuleListParams,
|
|
710
825
|
type RedirectRuleDeleteParams as RedirectRuleDeleteParams,
|
|
826
|
+
type RedirectRuleRetrieveByURLParams as RedirectRuleRetrieveByURLParams,
|
|
711
827
|
};
|
|
712
828
|
}
|
package/src/resources/index.ts
CHANGED
|
@@ -11,10 +11,10 @@ export {
|
|
|
11
11
|
type Changelog,
|
|
12
12
|
type PublishUnpublishSuccess,
|
|
13
13
|
type ChangelogDeleteResponse,
|
|
14
|
-
type ChangelogListParams,
|
|
15
14
|
type ChangelogCreateParams,
|
|
16
15
|
type ChangelogRetrieveParams,
|
|
17
16
|
type ChangelogUpdateParams,
|
|
17
|
+
type ChangelogListParams,
|
|
18
18
|
type ChangelogDeleteParams,
|
|
19
19
|
type ChangelogPublishParams,
|
|
20
20
|
type ChangelogUnpublishParams,
|
|
@@ -25,8 +25,8 @@ export {
|
|
|
25
25
|
type ConversationAttribute,
|
|
26
26
|
type ConversationAttributeOption,
|
|
27
27
|
type ConversationAttributeListResponse,
|
|
28
|
-
type ConversationAttributeListParams,
|
|
29
28
|
type ConversationAttributeRetrieveParams,
|
|
29
|
+
type ConversationAttributeListParams,
|
|
30
30
|
} from './conversation-attributes';
|
|
31
31
|
export { Feedback } from './feedback/feedback';
|
|
32
32
|
export { HelpCenter } from './help-center/help-center';
|
|
@@ -46,10 +46,10 @@ export {
|
|
|
46
46
|
type ReportListDatasetsResponse,
|
|
47
47
|
type ReportLookupFilterValuesResponse,
|
|
48
48
|
type ReportQueryResponse,
|
|
49
|
+
type ReportDrillInParams,
|
|
49
50
|
type ReportListDatasetsParams,
|
|
50
|
-
type ReportQueryParams,
|
|
51
51
|
type ReportLookupFilterValuesParams,
|
|
52
|
-
type
|
|
52
|
+
type ReportQueryParams,
|
|
53
53
|
} from './reports';
|
|
54
54
|
export { Support } from './support/support';
|
|
55
55
|
export {
|
|
@@ -57,8 +57,8 @@ export {
|
|
|
57
57
|
type Survey,
|
|
58
58
|
type SurveyNextAction,
|
|
59
59
|
type SurveyListResponsesResponse,
|
|
60
|
-
type SurveyListParams,
|
|
61
60
|
type SurveyRetrieveParams,
|
|
61
|
+
type SurveyListParams,
|
|
62
62
|
type SurveyListResponsesParams,
|
|
63
63
|
type SurveysCursorPage,
|
|
64
64
|
type SurveyListResponsesResponsesCursorPage,
|
|
@@ -69,10 +69,10 @@ export {
|
|
|
69
69
|
type Webhook,
|
|
70
70
|
type WebhookRequestConfigInput,
|
|
71
71
|
type WebhookDeleteResponse,
|
|
72
|
-
type WebhookListParams,
|
|
73
72
|
type WebhookCreateParams,
|
|
74
73
|
type WebhookRetrieveParams,
|
|
75
74
|
type WebhookUpdateParams,
|
|
75
|
+
type WebhookListParams,
|
|
76
76
|
type WebhookDeleteParams,
|
|
77
77
|
type WebhookRefreshSecretParams,
|
|
78
78
|
type WebhooksCursorPage,
|