@foru-ms/sdk 2.0.5 → 2.0.7

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 (98) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +1 -1
  3. package/dist/cjs/Client.js +1 -1
  4. package/dist/cjs/api/resources/auth/client/Client.d.ts +13 -1
  5. package/dist/cjs/api/resources/auth/client/Client.js +29 -5
  6. package/dist/cjs/api/resources/auth/types/GetAuthMeResponse.d.ts +7 -2
  7. package/dist/cjs/api/resources/auth/types/PostAuthForgotPasswordResponse.d.ts +7 -2
  8. package/dist/cjs/api/resources/auth/types/PostAuthLoginResponse.d.ts +20 -1
  9. package/dist/cjs/api/resources/auth/types/PostAuthRegisterResponse.d.ts +20 -1
  10. package/dist/cjs/api/resources/auth/types/PostAuthResetPasswordResponse.d.ts +6 -1
  11. package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
  12. package/dist/cjs/api/resources/integrations/client/Client.js +1 -1
  13. package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.d.ts +35 -32
  14. package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.js +15 -12
  15. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
  16. package/dist/cjs/api/resources/notifications/client/Client.js +1 -1
  17. package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.d.ts +35 -32
  18. package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
  19. package/dist/cjs/api/resources/posts/client/Client.js +1 -1
  20. package/dist/cjs/api/resources/posts/types/GetPostsResponse.d.ts +28 -25
  21. package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +1 -1
  22. package/dist/cjs/api/resources/privateMessages/client/Client.js +1 -1
  23. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.ts +31 -28
  24. package/dist/cjs/api/resources/reports/client/Client.d.ts +1 -1
  25. package/dist/cjs/api/resources/reports/client/Client.js +1 -1
  26. package/dist/cjs/api/resources/reports/types/GetReportsResponse.d.ts +33 -30
  27. package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
  28. package/dist/cjs/api/resources/roles/client/Client.js +1 -1
  29. package/dist/cjs/api/resources/roles/types/GetRolesResponse.d.ts +27 -24
  30. package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
  31. package/dist/cjs/api/resources/ssOs/client/Client.js +1 -1
  32. package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.d.ts +32 -29
  33. package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.js +12 -9
  34. package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
  35. package/dist/cjs/api/resources/tags/client/Client.js +1 -1
  36. package/dist/cjs/api/resources/tags/types/GetTagsResponse.d.ts +27 -24
  37. package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
  38. package/dist/cjs/api/resources/threads/client/Client.js +1 -1
  39. package/dist/cjs/api/resources/threads/types/GetThreadsResponse.d.ts +55 -52
  40. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  41. package/dist/cjs/api/resources/users/client/Client.js +1 -1
  42. package/dist/cjs/api/resources/users/types/GetUsersResponse.d.ts +46 -43
  43. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
  44. package/dist/cjs/api/resources/webhooks/client/Client.js +1 -1
  45. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.d.ts +29 -26
  46. package/dist/cjs/auth/HeaderAuthProvider.d.ts +1 -1
  47. package/dist/cjs/version.d.ts +1 -1
  48. package/dist/cjs/version.js +1 -1
  49. package/dist/esm/BaseClient.mjs +2 -2
  50. package/dist/esm/Client.d.mts +1 -1
  51. package/dist/esm/Client.mjs +1 -1
  52. package/dist/esm/api/resources/auth/client/Client.d.mts +13 -1
  53. package/dist/esm/api/resources/auth/client/Client.mjs +29 -5
  54. package/dist/esm/api/resources/auth/types/GetAuthMeResponse.d.mts +7 -2
  55. package/dist/esm/api/resources/auth/types/PostAuthForgotPasswordResponse.d.mts +7 -2
  56. package/dist/esm/api/resources/auth/types/PostAuthLoginResponse.d.mts +20 -1
  57. package/dist/esm/api/resources/auth/types/PostAuthRegisterResponse.d.mts +20 -1
  58. package/dist/esm/api/resources/auth/types/PostAuthResetPasswordResponse.d.mts +6 -1
  59. package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
  60. package/dist/esm/api/resources/integrations/client/Client.mjs +1 -1
  61. package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.d.mts +35 -32
  62. package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.mjs +15 -12
  63. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  64. package/dist/esm/api/resources/notifications/client/Client.mjs +1 -1
  65. package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.d.mts +35 -32
  66. package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
  67. package/dist/esm/api/resources/posts/client/Client.mjs +1 -1
  68. package/dist/esm/api/resources/posts/types/GetPostsResponse.d.mts +28 -25
  69. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +1 -1
  70. package/dist/esm/api/resources/privateMessages/client/Client.mjs +1 -1
  71. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.mts +31 -28
  72. package/dist/esm/api/resources/reports/client/Client.d.mts +1 -1
  73. package/dist/esm/api/resources/reports/client/Client.mjs +1 -1
  74. package/dist/esm/api/resources/reports/types/GetReportsResponse.d.mts +33 -30
  75. package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
  76. package/dist/esm/api/resources/roles/client/Client.mjs +1 -1
  77. package/dist/esm/api/resources/roles/types/GetRolesResponse.d.mts +27 -24
  78. package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
  79. package/dist/esm/api/resources/ssOs/client/Client.mjs +1 -1
  80. package/dist/esm/api/resources/ssOs/types/GetSsoResponse.d.mts +32 -29
  81. package/dist/esm/api/resources/ssOs/types/GetSsoResponse.mjs +12 -9
  82. package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
  83. package/dist/esm/api/resources/tags/client/Client.mjs +1 -1
  84. package/dist/esm/api/resources/tags/types/GetTagsResponse.d.mts +27 -24
  85. package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
  86. package/dist/esm/api/resources/threads/client/Client.mjs +1 -1
  87. package/dist/esm/api/resources/threads/types/GetThreadsResponse.d.mts +55 -52
  88. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  89. package/dist/esm/api/resources/users/client/Client.mjs +1 -1
  90. package/dist/esm/api/resources/users/types/GetUsersResponse.d.mts +46 -43
  91. package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
  92. package/dist/esm/api/resources/webhooks/client/Client.mjs +1 -1
  93. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.d.mts +29 -26
  94. package/dist/esm/auth/HeaderAuthProvider.d.mts +1 -1
  95. package/dist/esm/version.d.mts +1 -1
  96. package/dist/esm/version.mjs +1 -1
  97. package/package.json +2 -4
  98. package/reference.md +56 -0
@@ -9,7 +9,7 @@ export declare namespace NotificationsClient {
9
9
  }
10
10
  export declare class NotificationsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<NotificationsClient.Options>;
12
- constructor(options?: NotificationsClient.Options);
12
+ constructor(options: NotificationsClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetNotificationsRequest} request
15
15
  * @param {NotificationsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,7 +27,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
27
27
  import * as errors from "../../../../errors/index.mjs";
28
28
  import * as Forum from "../../../index.mjs";
29
29
  export class NotificationsClient {
30
- constructor(options = {}) {
30
+ constructor(options) {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
@@ -1,39 +1,42 @@
1
1
  export interface GetNotificationsResponse {
2
- data: GetNotificationsResponse.Data.Item[];
3
- meta: GetNotificationsResponse.Meta;
2
+ data: GetNotificationsResponse.Data;
4
3
  }
5
4
  export declare namespace GetNotificationsResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- id: string;
10
- /** Recipient user ID */
11
- userId: string;
12
- /** User ID who triggered the notification */
13
- notifierId: string;
14
- /** Notification type */
15
- type: string | null;
16
- /** Notification text content */
17
- description: string | null;
18
- /** Notification status (read, unread, dismissed, archived) */
19
- status: string | null;
20
- /** Related thread ID */
21
- threadId: string | null;
22
- /** Related post ID */
23
- postId: string | null;
24
- /** Related private message ID */
25
- privateMessageId: string | null;
26
- /** Additional notification data */
27
- extendedData: Record<string, unknown> | null;
28
- /** Notification creation timestamp */
29
- createdAt: string;
30
- /** Notification last update timestamp */
31
- updatedAt: string;
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ id: string;
17
+ /** Recipient user ID */
18
+ userId: string;
19
+ /** User ID who triggered the notification */
20
+ notifierId: string;
21
+ /** Notification type */
22
+ type: string | null;
23
+ /** Notification text content */
24
+ description: string | null;
25
+ /** Notification status (read, unread, dismissed, archived) */
26
+ status: string | null;
27
+ /** Related thread ID */
28
+ threadId: string | null;
29
+ /** Related post ID */
30
+ postId: string | null;
31
+ /** Related private message ID */
32
+ privateMessageId: string | null;
33
+ /** Additional notification data */
34
+ extendedData: Record<string, unknown> | null;
35
+ /** Notification creation timestamp */
36
+ createdAt: string;
37
+ /** Notification last update timestamp */
38
+ updatedAt: string;
39
+ }
32
40
  }
33
41
  }
34
- interface Meta {
35
- total: number;
36
- page: number;
37
- limit: number;
38
- }
39
42
  }
@@ -9,7 +9,7 @@ export declare namespace PostsClient {
9
9
  }
10
10
  export declare class PostsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<PostsClient.Options>;
12
- constructor(options?: PostsClient.Options);
12
+ constructor(options: PostsClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetPostsRequest} request
15
15
  * @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,7 +27,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
27
27
  import * as errors from "../../../../errors/index.mjs";
28
28
  import * as Forum from "../../../index.mjs";
29
29
  export class PostsClient {
30
- constructor(options = {}) {
30
+ constructor(options) {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
@@ -1,32 +1,35 @@
1
1
  export interface GetPostsResponse {
2
- data: GetPostsResponse.Data.Item[];
3
- meta: GetPostsResponse.Meta;
2
+ data: GetPostsResponse.Data;
4
3
  }
5
4
  export declare namespace GetPostsResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- /** Thread ID to post in */
10
- threadId: string;
11
- /** Post content (Markdown supported) */
12
- body: string;
13
- /** Author user ID (required for API key auth, ignored for JWT auth) */
14
- userId?: string;
15
- /** Parent post ID for threading */
16
- parentId?: string;
17
- extendedData?: Record<string, unknown>;
18
- id: string;
19
- /** Nesting level for threaded replies */
20
- depth: number | null;
21
- /** Post creation timestamp */
22
- createdAt: string;
23
- /** Post last update timestamp */
24
- updatedAt: string;
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ /** Thread ID to post in */
17
+ threadId: string;
18
+ /** Post content (Markdown supported) */
19
+ body: string;
20
+ /** Author user ID (required for API key auth, ignored for JWT auth) */
21
+ userId?: string;
22
+ /** Parent post ID for threading */
23
+ parentId?: string;
24
+ extendedData?: Record<string, unknown>;
25
+ id: string;
26
+ /** Nesting level for threaded replies */
27
+ depth: number | null;
28
+ /** Post creation timestamp */
29
+ createdAt: string;
30
+ /** Post last update timestamp */
31
+ updatedAt: string;
32
+ }
25
33
  }
26
34
  }
27
- interface Meta {
28
- total: number;
29
- page: number;
30
- limit: number;
31
- }
32
35
  }
@@ -9,7 +9,7 @@ export declare namespace PrivateMessagesClient {
9
9
  }
10
10
  export declare class PrivateMessagesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<PrivateMessagesClient.Options>;
12
- constructor(options?: PrivateMessagesClient.Options);
12
+ constructor(options: PrivateMessagesClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetPrivateMessagesRequest} request
15
15
  * @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,7 +27,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
27
27
  import * as errors from "../../../../errors/index.mjs";
28
28
  import * as Forum from "../../../index.mjs";
29
29
  export class PrivateMessagesClient {
30
- constructor(options = {}) {
30
+ constructor(options) {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
@@ -1,35 +1,38 @@
1
1
  export interface GetPrivateMessagesResponse {
2
- data: GetPrivateMessagesResponse.Data.Item[];
3
- meta: GetPrivateMessagesResponse.Meta;
2
+ data: GetPrivateMessagesResponse.Data;
4
3
  }
5
4
  export declare namespace GetPrivateMessagesResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- /** Recipient User ID */
10
- recipientId: string;
11
- /** Sender user ID (required for API key auth, ignored for JWT auth) */
12
- senderId?: string;
13
- /** Message title (optional for replies) */
14
- title?: string;
15
- /** Message content */
16
- body: string;
17
- /** Parent Message ID (for replies) */
18
- parentId?: string;
19
- /** Extended data */
20
- extendedData?: Record<string, unknown>;
21
- id: string;
22
- /** Message status (sent, delivered, read, archived) */
23
- status: string | null;
24
- /** Message sent timestamp */
25
- createdAt: string;
26
- /** Message last update timestamp */
27
- updatedAt: string;
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ /** Recipient User ID */
17
+ recipientId: string;
18
+ /** Sender user ID (required for API key auth, ignored for JWT auth) */
19
+ senderId?: string;
20
+ /** Message title (optional for replies) */
21
+ title?: string;
22
+ /** Message content */
23
+ body: string;
24
+ /** Parent Message ID (for replies) */
25
+ parentId?: string;
26
+ /** Extended data */
27
+ extendedData?: Record<string, unknown>;
28
+ id: string;
29
+ /** Message status (sent, delivered, read, archived) */
30
+ status: string | null;
31
+ /** Message sent timestamp */
32
+ createdAt: string;
33
+ /** Message last update timestamp */
34
+ updatedAt: string;
35
+ }
28
36
  }
29
37
  }
30
- interface Meta {
31
- total: number;
32
- page: number;
33
- limit: number;
34
- }
35
38
  }
@@ -9,7 +9,7 @@ export declare namespace ReportsClient {
9
9
  }
10
10
  export declare class ReportsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<ReportsClient.Options>;
12
- constructor(options?: ReportsClient.Options);
12
+ constructor(options: ReportsClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetReportsRequest} request
15
15
  * @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -16,7 +16,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
16
16
  import * as errors from "../../../../errors/index.mjs";
17
17
  import * as Forum from "../../../index.mjs";
18
18
  export class ReportsClient {
19
- constructor(options = {}) {
19
+ constructor(options) {
20
20
  this._options = normalizeClientOptionsWithAuth(options);
21
21
  }
22
22
  /**
@@ -1,37 +1,40 @@
1
1
  export interface GetReportsResponse {
2
- data: GetReportsResponse.Data.Item[];
3
- meta: GetReportsResponse.Meta;
2
+ data: GetReportsResponse.Data;
4
3
  }
5
4
  export declare namespace GetReportsResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- /** Report type (e.g. spam, abuse) */
10
- type: string;
11
- /** Reason for reporting */
12
- description?: string;
13
- /** Reporter user ID (required for API key auth, ignored for JWT auth) */
14
- userId?: string;
15
- /** ID of user being reported */
16
- reportedId?: string;
17
- /** ID of thread being reported */
18
- threadId?: string;
19
- /** ID of post being reported */
20
- postId?: string;
21
- /** ID of private message being reported */
22
- privateMessageId?: string;
23
- id: string;
24
- /** Report status (pending, reviewed, resolved, dismissed) */
25
- status: string | null;
26
- /** Report creation timestamp */
27
- createdAt: string;
28
- /** Report last update timestamp */
29
- updatedAt: string;
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ /** Report type (e.g. spam, abuse) */
17
+ type: string;
18
+ /** Reason for reporting */
19
+ description?: string;
20
+ /** Reporter user ID (required for API key auth, ignored for JWT auth) */
21
+ userId?: string;
22
+ /** ID of user being reported */
23
+ reportedId?: string;
24
+ /** ID of thread being reported */
25
+ threadId?: string;
26
+ /** ID of post being reported */
27
+ postId?: string;
28
+ /** ID of private message being reported */
29
+ privateMessageId?: string;
30
+ id: string;
31
+ /** Report status (pending, reviewed, resolved, dismissed) */
32
+ status: string | null;
33
+ /** Report creation timestamp */
34
+ createdAt: string;
35
+ /** Report last update timestamp */
36
+ updatedAt: string;
37
+ }
30
38
  }
31
39
  }
32
- interface Meta {
33
- total: number;
34
- page: number;
35
- limit: number;
36
- }
37
40
  }
@@ -9,7 +9,7 @@ export declare namespace RolesClient {
9
9
  }
10
10
  export declare class RolesClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<RolesClient.Options>;
12
- constructor(options?: RolesClient.Options);
12
+ constructor(options: RolesClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetRolesRequest} request
15
15
  * @param {RolesClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,7 +27,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
27
27
  import * as errors from "../../../../errors/index.mjs";
28
28
  import * as Forum from "../../../index.mjs";
29
29
  export class RolesClient {
30
- constructor(options = {}) {
30
+ constructor(options) {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
@@ -1,31 +1,34 @@
1
1
  export interface GetRolesResponse {
2
- data: GetRolesResponse.Data.Item[];
3
- meta: GetRolesResponse.Meta;
2
+ data: GetRolesResponse.Data;
4
3
  }
5
4
  export declare namespace GetRolesResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- /** Role name */
10
- name: string;
11
- /** Role slug (unique identifier) */
12
- slug?: string;
13
- /** Role description */
14
- description?: string;
15
- /** Role color hex */
16
- color?: string;
17
- /** Extended data */
18
- extendedData?: Record<string, unknown>;
19
- id: string;
20
- /** Role creation timestamp */
21
- createdAt: string;
22
- /** Role last update timestamp */
23
- updatedAt: string;
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ /** Role name */
17
+ name: string;
18
+ /** Role slug (unique identifier) */
19
+ slug?: string;
20
+ /** Role description */
21
+ description?: string;
22
+ /** Role color hex */
23
+ color?: string;
24
+ /** Extended data */
25
+ extendedData?: Record<string, unknown>;
26
+ id: string;
27
+ /** Role creation timestamp */
28
+ createdAt: string;
29
+ /** Role last update timestamp */
30
+ updatedAt: string;
31
+ }
24
32
  }
25
33
  }
26
- interface Meta {
27
- total: number;
28
- page: number;
29
- limit: number;
30
- }
31
34
  }
@@ -9,7 +9,7 @@ export declare namespace SsOsClient {
9
9
  }
10
10
  export declare class SsOsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<SsOsClient.Options>;
12
- constructor(options?: SsOsClient.Options);
12
+ constructor(options: SsOsClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetSsoRequest} request
15
15
  * @param {SsOsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,7 +27,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
27
27
  import * as errors from "../../../../errors/index.mjs";
28
28
  import * as Forum from "../../../index.mjs";
29
29
  export class SsOsClient {
30
- constructor(options = {}) {
30
+ constructor(options) {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
@@ -1,36 +1,39 @@
1
1
  export interface GetSsoResponse {
2
- data: GetSsoResponse.Data.Item[];
3
- meta: GetSsoResponse.Meta;
2
+ data: GetSsoResponse.Data;
4
3
  }
5
4
  export declare namespace GetSsoResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- id: string;
10
- /** SSO provider type */
11
- provider: Item.Provider;
12
- /** Email domain for this provider */
13
- domain: string;
14
- /** Whether SSO is active */
15
- active: boolean;
16
- /** SSO configuration creation timestamp */
17
- createdAt: string;
18
- /** SSO configuration last update timestamp */
19
- updatedAt: string;
20
- }
21
- namespace Item {
22
- /** SSO provider type */
23
- const Provider: {
24
- readonly Okta: "OKTA";
25
- readonly Auth0: "AUTH0";
26
- readonly Saml: "SAML";
27
- };
28
- type Provider = (typeof Provider)[keyof typeof Provider];
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ id: string;
17
+ /** SSO provider type */
18
+ provider: Item.Provider;
19
+ /** Email domain for this provider */
20
+ domain: string;
21
+ /** Whether SSO is active */
22
+ active: boolean;
23
+ /** SSO configuration creation timestamp */
24
+ createdAt: string;
25
+ /** SSO configuration last update timestamp */
26
+ updatedAt: string;
27
+ }
28
+ namespace Item {
29
+ /** SSO provider type */
30
+ const Provider: {
31
+ readonly Okta: "OKTA";
32
+ readonly Auth0: "AUTH0";
33
+ readonly Saml: "SAML";
34
+ };
35
+ type Provider = (typeof Provider)[keyof typeof Provider];
36
+ }
29
37
  }
30
38
  }
31
- interface Meta {
32
- total: number;
33
- page: number;
34
- limit: number;
35
- }
36
39
  }
@@ -3,14 +3,17 @@ export var GetSsoResponse;
3
3
  (function (GetSsoResponse) {
4
4
  let Data;
5
5
  (function (Data) {
6
- let Item;
7
- (function (Item) {
8
- /** SSO provider type */
9
- Item.Provider = {
10
- Okta: "OKTA",
11
- Auth0: "AUTH0",
12
- Saml: "SAML",
13
- };
14
- })(Item = Data.Item || (Data.Item = {}));
6
+ let Items;
7
+ (function (Items) {
8
+ let Item;
9
+ (function (Item) {
10
+ /** SSO provider type */
11
+ Item.Provider = {
12
+ Okta: "OKTA",
13
+ Auth0: "AUTH0",
14
+ Saml: "SAML",
15
+ };
16
+ })(Item = Items.Item || (Items.Item = {}));
17
+ })(Items = Data.Items || (Data.Items = {}));
15
18
  })(Data = GetSsoResponse.Data || (GetSsoResponse.Data = {}));
16
19
  })(GetSsoResponse || (GetSsoResponse = {}));
@@ -9,7 +9,7 @@ export declare namespace TagsClient {
9
9
  }
10
10
  export declare class TagsClient {
11
11
  protected readonly _options: NormalizedClientOptionsWithAuth<TagsClient.Options>;
12
- constructor(options?: TagsClient.Options);
12
+ constructor(options: TagsClient.Options);
13
13
  /**
14
14
  * @param {Forum.GetTagsRequest} request
15
15
  * @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -27,7 +27,7 @@ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCode
27
27
  import * as errors from "../../../../errors/index.mjs";
28
28
  import * as Forum from "../../../index.mjs";
29
29
  export class TagsClient {
30
- constructor(options = {}) {
30
+ constructor(options) {
31
31
  this._options = normalizeClientOptionsWithAuth(options);
32
32
  }
33
33
  /**
@@ -1,31 +1,34 @@
1
1
  export interface GetTagsResponse {
2
- data: GetTagsResponse.Data.Item[];
3
- meta: GetTagsResponse.Meta;
2
+ data: GetTagsResponse.Data;
4
3
  }
5
4
  export declare namespace GetTagsResponse {
6
- type Data = Data.Item[];
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ /** Cursor for next page */
8
+ nextCursor?: string;
9
+ /** Total count of items */
10
+ count: number;
11
+ }
7
12
  namespace Data {
8
- interface Item {
9
- /** Tag name */
10
- name: string;
11
- /** Tag slug (unique identifier) */
12
- slug?: string;
13
- /** Tag description */
14
- description?: string;
15
- /** Hex color code */
16
- color?: string;
17
- /** Extended data */
18
- extendedData?: Record<string, unknown>;
19
- id: string;
20
- /** Tag creation timestamp */
21
- createdAt: string;
22
- /** Tag last update timestamp */
23
- updatedAt: string;
13
+ type Items = Items.Item[];
14
+ namespace Items {
15
+ interface Item {
16
+ /** Tag name */
17
+ name: string;
18
+ /** Tag slug (unique identifier) */
19
+ slug?: string;
20
+ /** Tag description */
21
+ description?: string;
22
+ /** Hex color code */
23
+ color?: string;
24
+ /** Extended data */
25
+ extendedData?: Record<string, unknown>;
26
+ id: string;
27
+ /** Tag creation timestamp */
28
+ createdAt: string;
29
+ /** Tag last update timestamp */
30
+ updatedAt: string;
31
+ }
24
32
  }
25
33
  }
26
- interface Meta {
27
- total: number;
28
- page: number;
29
- limit: number;
30
- }
31
34
  }