@resolution/organizations-api-client 0.14.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.
Files changed (75) hide show
  1. package/LICENSE.md +19 -0
  2. package/README.md +110 -0
  3. package/lib/index.d.ts +39 -0
  4. package/lib/index.js +46 -0
  5. package/lib/index.js.map +1 -0
  6. package/lib/openapi/core/CommonHttpClient.d.ts +316 -0
  7. package/lib/openapi/core/CommonHttpClient.js +639 -0
  8. package/lib/openapi/core/CommonHttpClient.js.map +1 -0
  9. package/lib/openapi/core/CommonHttpService.d.ts +26 -0
  10. package/lib/openapi/core/CommonHttpService.js +40 -0
  11. package/lib/openapi/core/CommonHttpService.js.map +1 -0
  12. package/lib/openapi/core/CommonValidationSchemaStorage.d.ts +35 -0
  13. package/lib/openapi/core/CommonValidationSchemaStorage.js +63 -0
  14. package/lib/openapi/core/CommonValidationSchemaStorage.js.map +1 -0
  15. package/lib/openapi/organizations/BaseOrganizationsApiClient.d.ts +94 -0
  16. package/lib/openapi/organizations/BaseOrganizationsApiClient.js +127 -0
  17. package/lib/openapi/organizations/BaseOrganizationsApiClient.js.map +1 -0
  18. package/lib/openapi/organizations/models/common.d.ts +222 -0
  19. package/lib/openapi/organizations/models/common.js +66 -0
  20. package/lib/openapi/organizations/models/common.js.map +1 -0
  21. package/lib/openapi/organizations/models/directory.d.ts +151 -0
  22. package/lib/openapi/organizations/models/directory.js +58 -0
  23. package/lib/openapi/organizations/models/directory.js.map +1 -0
  24. package/lib/openapi/organizations/models/domains.d.ts +52 -0
  25. package/lib/openapi/organizations/models/domains.js +35 -0
  26. package/lib/openapi/organizations/models/domains.js.map +1 -0
  27. package/lib/openapi/organizations/models/events.d.ts +280 -0
  28. package/lib/openapi/organizations/models/events.js +129 -0
  29. package/lib/openapi/organizations/models/events.js.map +1 -0
  30. package/lib/openapi/organizations/models/groups.d.ts +297 -0
  31. package/lib/openapi/organizations/models/groups.js +114 -0
  32. package/lib/openapi/organizations/models/groups.js.map +1 -0
  33. package/lib/openapi/organizations/models/orgs.d.ts +52 -0
  34. package/lib/openapi/organizations/models/orgs.js +36 -0
  35. package/lib/openapi/organizations/models/orgs.js.map +1 -0
  36. package/lib/openapi/organizations/models/policies.d.ts +169 -0
  37. package/lib/openapi/organizations/models/policies.js +101 -0
  38. package/lib/openapi/organizations/models/policies.js.map +1 -0
  39. package/lib/openapi/organizations/models/users.d.ts +477 -0
  40. package/lib/openapi/organizations/models/users.js +178 -0
  41. package/lib/openapi/organizations/models/users.js.map +1 -0
  42. package/lib/openapi/organizations/models/workspaces.d.ts +200 -0
  43. package/lib/openapi/organizations/models/workspaces.js +106 -0
  44. package/lib/openapi/organizations/models/workspaces.js.map +1 -0
  45. package/lib/openapi/organizations/services/DirectoryService.d.ts +637 -0
  46. package/lib/openapi/organizations/services/DirectoryService.js +599 -0
  47. package/lib/openapi/organizations/services/DirectoryService.js.map +1 -0
  48. package/lib/openapi/organizations/services/DomainsService.d.ts +51 -0
  49. package/lib/openapi/organizations/services/DomainsService.js +89 -0
  50. package/lib/openapi/organizations/services/DomainsService.js.map +1 -0
  51. package/lib/openapi/organizations/services/EventsService.d.ts +142 -0
  52. package/lib/openapi/organizations/services/EventsService.js +187 -0
  53. package/lib/openapi/organizations/services/EventsService.js.map +1 -0
  54. package/lib/openapi/organizations/services/GroupsService.d.ts +268 -0
  55. package/lib/openapi/organizations/services/GroupsService.js +210 -0
  56. package/lib/openapi/organizations/services/GroupsService.js.map +1 -0
  57. package/lib/openapi/organizations/services/OrgsService.d.ts +38 -0
  58. package/lib/openapi/organizations/services/OrgsService.js +79 -0
  59. package/lib/openapi/organizations/services/OrgsService.js.map +1 -0
  60. package/lib/openapi/organizations/services/PoliciesService.d.ts +172 -0
  61. package/lib/openapi/organizations/services/PoliciesService.js +272 -0
  62. package/lib/openapi/organizations/services/PoliciesService.js.map +1 -0
  63. package/lib/openapi/organizations/services/UsersService.d.ts +310 -0
  64. package/lib/openapi/organizations/services/UsersService.js +214 -0
  65. package/lib/openapi/organizations/services/UsersService.js.map +1 -0
  66. package/lib/openapi/organizations/services/ValidateService.d.ts +25 -0
  67. package/lib/openapi/organizations/services/ValidateService.js +38 -0
  68. package/lib/openapi/organizations/services/ValidateService.js.map +1 -0
  69. package/lib/openapi/organizations/services/WorkspacesService.d.ts +78 -0
  70. package/lib/openapi/organizations/services/WorkspacesService.js +63 -0
  71. package/lib/openapi/organizations/services/WorkspacesService.js.map +1 -0
  72. package/lib/openapi/organizations/validationSchemaStorage.d.ts +3 -0
  73. package/lib/openapi/organizations/validationSchemaStorage.js +134 -0
  74. package/lib/openapi/organizations/validationSchemaStorage.js.map +1 -0
  75. package/package.json +47 -0
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerCommonValidationSchemas = void 0;
4
+ const groups_1 = require("./groups");
5
+ const zod_1 = require("zod");
6
+ function registerCommonValidationSchemas(validationSchemaStorage) {
7
+ validationSchemaStorage.register("ApplicationError", zod_1.z.object({
8
+ id: zod_1.z.string().optional(),
9
+ status: zod_1.z.string().optional(),
10
+ code: zod_1.z.string().optional(),
11
+ title: zod_1.z.string().optional(),
12
+ detail: zod_1.z.string().optional()
13
+ }).catchall(zod_1.z.unknown()).describe("ApplicationError"));
14
+ validationSchemaStorage.register("ErrorCdenPolicyValidationFailedModel", zod_1.z.object({
15
+ errors: zod_1.z.array(zod_1.z.intersection(validationSchemaStorage.lazy("ApplicationError"), zod_1.z.object({
16
+ code: zod_1.z.literal("ADMIN-500-2").optional()
17
+ }).catchall(zod_1.z.unknown()))).optional()
18
+ }).catchall(zod_1.z.unknown()).describe("ErrorCdenPolicyValidationFailedModel"));
19
+ validationSchemaStorage.register("ErrorInternalErrorModel", zod_1.z.object({
20
+ errors: zod_1.z.array(zod_1.z.intersection(validationSchemaStorage.lazy("ApplicationError"), zod_1.z.object({
21
+ code: zod_1.z.literal("ADMIN-500-1").optional()
22
+ }).catchall(zod_1.z.unknown()))).optional()
23
+ }).catchall(zod_1.z.unknown()).describe("ErrorInternalErrorModel"));
24
+ validationSchemaStorage.register("ErrorInvalidPageCursorModel", zod_1.z.object({
25
+ errors: zod_1.z.array(zod_1.z.intersection(validationSchemaStorage.lazy("ApplicationError"), zod_1.z.object({
26
+ code: zod_1.z.literal("ADMIN-400-1").optional()
27
+ }).catchall(zod_1.z.unknown()))).optional()
28
+ }).catchall(zod_1.z.unknown()).describe("ErrorInvalidPageCursorModel"));
29
+ validationSchemaStorage.register("ErrorOrgNotFoundModel", zod_1.z.object({
30
+ errors: zod_1.z.array(zod_1.z.intersection(validationSchemaStorage.lazy("ApplicationError"), zod_1.z.object({
31
+ code: zod_1.z.literal("ADMIN-404-2").optional()
32
+ }).catchall(zod_1.z.unknown()))).optional()
33
+ }).catchall(zod_1.z.unknown()).describe("ErrorOrgNotFoundModel"));
34
+ validationSchemaStorage.register("Errors", zod_1.z.object({
35
+ errors: zod_1.z.array(validationSchemaStorage.lazy("Error")).optional()
36
+ }).catchall(zod_1.z.unknown()).describe("Errors"));
37
+ validationSchemaStorage.register("ErrorsApplicationErrorsModel", zod_1.z.object({
38
+ errors: zod_1.z.array(validationSchemaStorage.lazy("ApplicationError")).optional()
39
+ }).catchall(zod_1.z.unknown()).describe("ErrorsApplicationErrorsModel"));
40
+ validationSchemaStorage.register("LinkPageCursor", zod_1.z.object({
41
+ self: zod_1.z.string().optional(),
42
+ prev: zod_1.z.string().optional(),
43
+ next: zod_1.z.string().optional()
44
+ }).catchall(zod_1.z.unknown()).describe("LinkPageCursor"));
45
+ validationSchemaStorage.register("LinkPageModel", zod_1.z.object({
46
+ self: zod_1.z.string().optional(),
47
+ prev: zod_1.z.string().optional(),
48
+ next: zod_1.z.string().optional()
49
+ }).catchall(zod_1.z.unknown()).describe("LinkPageModel"));
50
+ validationSchemaStorage.register("LinkSelfCursor", zod_1.z.object({
51
+ self: zod_1.z.string().optional()
52
+ }).catchall(zod_1.z.unknown()).describe("LinkSelfCursor"));
53
+ validationSchemaStorage.register("LinkSelfModel", zod_1.z.object({
54
+ self: zod_1.z.string()
55
+ }).catchall(zod_1.z.unknown()).describe("LinkSelfModel"));
56
+ validationSchemaStorage.register("ProxyError", zod_1.z.object({
57
+ code: zod_1.z.number().optional(),
58
+ message: zod_1.z.string().optional()
59
+ }).catchall(zod_1.z.unknown()).describe("ProxyError"));
60
+ validationSchemaStorage.register("ResourceId", zod_1.z.string().describe("ResourceId"));
61
+ validationSchemaStorage.register("ResourceOwner", zod_1.z.string().describe("ResourceOwner"));
62
+ validationSchemaStorage.register("RoleIds", zod_1.z.array(zod_1.z.string()).describe("RoleIds"));
63
+ validationSchemaStorage.registerOnce([groups_1.registerGroupsValidationSchemas]);
64
+ }
65
+ exports.registerCommonValidationSchemas = registerCommonValidationSchemas;
66
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../src/openapi/organizations/models/common.ts"],"names":[],"mappings":";;;AAIA,qCAAuE;AACvE,6BAAyC;AA2NzC,SAAgB,+BAA+B,CAAC,uBAAkE;IAChH,uBAAuB,CAAC,QAAQ,CAAC,kBAAkB,EAAE,OAAC,CAAC,MAAM,CAAC;QAC5D,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACzB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC,CAAC;IACvD,uBAAuB,CAAC,QAAQ,CAAC,sCAAsC,EAAE,OA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OAAC,CAAC,MAAM,CAAC;QACtD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC/B,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;IACjD,uBAAuB,CAAC,QAAQ,CAAC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;IAClF,uBAAuB,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;IACxF,uBAAuB,CAAC,QAAQ,CAAC,SAAS,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IACrF,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AA1DD,0EA0DC"}
@@ -0,0 +1,151 @@
1
+ import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
2
+ import { type ZodTypeAny } from "zod";
3
+ /** @category Models */
4
+ export interface AddGroupMembershipInput extends Record<string, unknown> {
5
+ /**
6
+ * Unique ID of the user's account that you are adding to the group.
7
+ * Use the [Jira User Search
8
+ * API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-users-search-get)
9
+ * to get the accountId (if Jira is available for your Organization). **Jira APIs
10
+ * use a different [authentication method
11
+ * ](https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/).**
12
+ * If you don’t have Jira, export a .csv of the user list. Learn how to [export
13
+ * users from a
14
+ * site](https://support.atlassian.com/organization-administration/docs/export-users-from-a-site/).
15
+ */
16
+ account_id: string;
17
+ }
18
+ /** @category Models */
19
+ export interface ApiError extends Record<string, unknown> {
20
+ /** A unique identifier for this particular occurrence of the error. */
21
+ id?: string;
22
+ /**
23
+ * The code of the error. It can be one of the following values: -
24
+ * ADMIN-UAM-400-1: Bad Request - ADMIN-UAM-400-2: Inactive user -
25
+ * ADMIN-UAM-400-3: Invalid Role for Resource - ADMIN-UAM-400-4: Product not
26
+ * licensed - ADMIN-UAM-401-1: Unauthenticated - ADMIN-UAM-401-2: Unauthorized -
27
+ * ADMIN-UAM-403-1: Forbidden - ADMIN-UAM-403-2: Not allowed to manage the org -
28
+ * ADMIN-UAM-404-1: Unknown Resource - ADMIN-UAM-404-2: Organization not found -
29
+ * ADMIN-UAM-404-3: Group Not Found - ADMIN-UAM-405-1: Method Not Supported -
30
+ * ADMIN-UAM-409-1: Cannot create default group - ADMIN-UAM-409-2: Resource
31
+ * Conflicts - ADMIN-UAM-409-3: Product License Limit Exceeded - ADMIN-UAM-415-1:
32
+ * Unsupported Media Type - ADMIN-UAM-500-1: Internal Error
33
+ */
34
+ code?: string;
35
+ /** The HTTP status code applicable to this error. */
36
+ status?: string;
37
+ /** Human-readable summary of the error. */
38
+ title?: string;
39
+ /**
40
+ * Human-readable explanation specific to this occurrence of the error, and a
41
+ * suggested action to resolve it.
42
+ */
43
+ detail?: string | null;
44
+ }
45
+ /** @category Models */
46
+ export interface ApiErrorResponse extends Record<string, unknown> {
47
+ errors?: ApiError[];
48
+ }
49
+ /** @category Models */
50
+ export interface CreateGroupInput extends Record<string, unknown> {
51
+ /** The name of the group. */
52
+ name: string;
53
+ /** The description of the group. */
54
+ description?: string;
55
+ }
56
+ /**
57
+ * Cursors for REST API pagination
58
+ *
59
+ * @category Models
60
+ */
61
+ export interface CursorNextPageModel extends Record<string, unknown> {
62
+ /** Cursor to fetch next page */
63
+ next?: string;
64
+ }
65
+ /** @category Models */
66
+ export interface GroupRoleAssignmentInput extends Record<string, unknown> {
67
+ roleAssociations: RoleAssociation[];
68
+ }
69
+ /** @category Models */
70
+ export interface InviteApiRequest extends Record<string, unknown> {
71
+ email: string;
72
+ permissionRule?: RoleAssociation;
73
+ sendNotification?: boolean;
74
+ notificationText?: string;
75
+ }
76
+ /** @category Models */
77
+ export interface RoleApiRequest extends Record<string, unknown> {
78
+ /** Role to assign/revoke for a user */
79
+ role: "atlassian/user" | "atlassian/user-access-admin" | "atlassian/admin" | "atlassian/guest" | "atlassian/contributor" | "atlassian/customer" | "atlassian/basic" | "atlassian/stakeholder" | "atlassian/site-admin" | "atlassian/org-admin";
80
+ /**
81
+ * Use the [Get Workspaces
82
+ * API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-workspaces/#api-v2-orgs-orgid-workspaces-post)
83
+ * to get an id.
84
+ * Resource is required for all roles other than org-admin. Any resource passed
85
+ * for org-admin shall be ignored
86
+ *
87
+ * @example
88
+ * ```
89
+ * ari:cloud:platform::site/70ef3a32-d0da-4e09-b35e-0109f91969c3
90
+ * ```
91
+ */
92
+ resource?: string;
93
+ }
94
+ /** @category Models */
95
+ export interface RoleAssociation extends Record<string, unknown> {
96
+ /**
97
+ * Use the [Get Workspaces
98
+ * API](https://developer.atlassian.com/cloud/admin/organization/rest/api-group-workspaces/#api-v2-orgs-orgid-workspaces-post)
99
+ * to get an id.
100
+ * Only the following resources are valid:
101
+ * - avp
102
+ * - beacon
103
+ * - bitbucket
104
+ * - compass
105
+ * - confluence
106
+ * - jira-admin
107
+ * - jira-core
108
+ * - jira-software
109
+ * - jira-servicedesk
110
+ * - jira-product-discovery
111
+ * - loom
112
+ * - mercury
113
+ * - opsgenie
114
+ * - platform
115
+ * - statuspage
116
+ * - townsquare
117
+ * - trello
118
+ * - unified-help
119
+ *
120
+ * @example
121
+ * ```
122
+ * ari:cloud:jira::site/70ef3a32-d0da-4e09-b35e-0109f91969c3
123
+ * ```
124
+ */
125
+ resource: string;
126
+ /** Role to assign to a resource */
127
+ role: "atlassian/user" | "atlassian/admin" | "atlassian/guest" | "atlassian/customer" | "atlassian/contributor" | "atlassian/basic" | "atlassian/stakeholder";
128
+ }
129
+ /** @category Models */
130
+ export interface UserProductAccessActivityPage extends Record<string, unknown> {
131
+ data?: UserProductAccessModel;
132
+ /** Cursors for REST API pagination */
133
+ links?: CursorNextPageModel;
134
+ }
135
+ /** @category Models */
136
+ export interface UserProductAccessModel extends Record<string, unknown> {
137
+ /** Products accessed by the user */
138
+ product_access: UserProductLastActive[];
139
+ /** Date the user was added to the organization in ISO 8601 format. */
140
+ added_to_org?: string | null;
141
+ }
142
+ /** @category Models */
143
+ export interface UserProductLastActive extends Record<string, unknown> {
144
+ /** Unique ID of the Product instance */
145
+ id: string;
146
+ /** Unique key of the Product */
147
+ key: "jira-software" | "jira-service-desk" | "jira-core" | "jira-ops" | "stride" | "hipchat" | "confluence" | "bitbucket" | "trello" | "opsgenie" | "statuspage";
148
+ /** Last active date for a product */
149
+ last_active?: string;
150
+ }
151
+ export declare function registerDirectoryValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerDirectoryValidationSchemas = void 0;
4
+ const zod_1 = require("zod");
5
+ function registerDirectoryValidationSchemas(validationSchemaStorage) {
6
+ validationSchemaStorage.register("AddGroupMembershipInput", zod_1.z.object({
7
+ account_id: zod_1.z.string()
8
+ }).catchall(zod_1.z.unknown()).describe("AddGroupMembershipInput"));
9
+ validationSchemaStorage.register("ApiError", zod_1.z.object({
10
+ id: zod_1.z.string().optional(),
11
+ code: zod_1.z.string().optional(),
12
+ status: zod_1.z.string().optional(),
13
+ title: zod_1.z.string().optional(),
14
+ detail: zod_1.z.nullable(zod_1.z.string()).optional()
15
+ }).catchall(zod_1.z.unknown()).describe("ApiError"));
16
+ validationSchemaStorage.register("ApiErrorResponse", zod_1.z.object({
17
+ errors: zod_1.z.array(validationSchemaStorage.lazy("ApiError")).optional()
18
+ }).catchall(zod_1.z.unknown()).describe("ApiErrorResponse"));
19
+ validationSchemaStorage.register("CreateGroupInput", zod_1.z.object({
20
+ name: zod_1.z.string(),
21
+ description: zod_1.z.string().optional()
22
+ }).catchall(zod_1.z.unknown()).describe("CreateGroupInput"));
23
+ validationSchemaStorage.register("CursorNextPageModel", zod_1.z.object({
24
+ next: zod_1.z.string().optional()
25
+ }).catchall(zod_1.z.unknown()).describe("CursorNextPageModel"));
26
+ validationSchemaStorage.register("GroupRoleAssignmentInput", zod_1.z.object({
27
+ roleAssociations: zod_1.z.array(validationSchemaStorage.lazy("RoleAssociation"))
28
+ }).catchall(zod_1.z.unknown()).describe("GroupRoleAssignmentInput"));
29
+ validationSchemaStorage.register("InviteApiRequest", zod_1.z.object({
30
+ email: zod_1.z.string(),
31
+ permissionRule: validationSchemaStorage.lazy("RoleAssociation").optional(),
32
+ sendNotification: zod_1.z.boolean().optional(),
33
+ notificationText: zod_1.z.string().optional()
34
+ }).catchall(zod_1.z.unknown()).describe("InviteApiRequest"));
35
+ validationSchemaStorage.register("RoleApiRequest", zod_1.z.object({
36
+ role: zod_1.z.enum(["atlassian/user", "atlassian/user-access-admin", "atlassian/admin", "atlassian/guest", "atlassian/contributor", "atlassian/customer", "atlassian/basic", "atlassian/stakeholder", "atlassian/site-admin", "atlassian/org-admin"]),
37
+ resource: zod_1.z.string().optional()
38
+ }).catchall(zod_1.z.unknown()).describe("RoleApiRequest"));
39
+ validationSchemaStorage.register("RoleAssociation", zod_1.z.object({
40
+ resource: zod_1.z.string(),
41
+ role: zod_1.z.enum(["atlassian/user", "atlassian/admin", "atlassian/guest", "atlassian/customer", "atlassian/contributor", "atlassian/basic", "atlassian/stakeholder"])
42
+ }).catchall(zod_1.z.unknown()).describe("RoleAssociation"));
43
+ validationSchemaStorage.register("UserProductAccessActivityPage", zod_1.z.object({
44
+ data: validationSchemaStorage.lazy("UserProductAccessModel").optional(),
45
+ links: validationSchemaStorage.lazy("CursorNextPageModel").optional()
46
+ }).catchall(zod_1.z.unknown()).describe("UserProductAccessActivityPage"));
47
+ validationSchemaStorage.register("UserProductAccessModel", zod_1.z.object({
48
+ product_access: zod_1.z.array(validationSchemaStorage.lazy("UserProductLastActive")),
49
+ added_to_org: zod_1.z.nullable(zod_1.z.string()).optional()
50
+ }).catchall(zod_1.z.unknown()).describe("UserProductAccessModel"));
51
+ validationSchemaStorage.register("UserProductLastActive", zod_1.z.object({
52
+ id: zod_1.z.string(),
53
+ key: zod_1.z.enum(["jira-software", "jira-service-desk", "jira-core", "jira-ops", "stride", "hipchat", "confluence", "bitbucket", "trello", "opsgenie", "statuspage"]),
54
+ last_active: zod_1.z.string().optional()
55
+ }).catchall(zod_1.z.unknown()).describe("UserProductLastActive"));
56
+ }
57
+ exports.registerDirectoryValidationSchemas = registerDirectoryValidationSchemas;
58
+ //# sourceMappingURL=directory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directory.js","sourceRoot":"","sources":["../../../../src/openapi/organizations/models/directory.ts"],"names":[],"mappings":";;;AAIA,6BAAyC;AAqJzC,SAAgB,kCAAkC,CAAC,uBAAkE;IACnH,uBAAuB,CAAC,QAAQ,CAAC,yBAAyB,EAAE,OAAC,CAAC,MAAM,CAAC;QACnE,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;KACvB,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC;IAC9D,uBAAuB,CAAC,QAAQ,CAAC,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC;QACpD,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC5B,MAAM,EAAE,OAAC,CAA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AAnDD,gFAmDC"}
@@ -0,0 +1,52 @@
1
+ import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
2
+ import { type LinkSelfModel, type LinkPageModel, type ApplicationError } from "./common";
3
+ import { type ZodTypeAny } from "zod";
4
+ /** @category Models */
5
+ export interface Domain extends Record<string, unknown> {
6
+ data?: DomainModel;
7
+ }
8
+ /** @category Models */
9
+ export interface DomainModel extends Record<string, unknown> {
10
+ /** Unique identifier of the Domain */
11
+ id: string;
12
+ /** Type name of this object */
13
+ type: "domains";
14
+ /** Attributes of this object */
15
+ attributes: {
16
+ /** Domain Name */
17
+ name?: string;
18
+ /** Claim for the domain */
19
+ claim?: {
20
+ type?: "http" | "dns";
21
+ /** Verification Status of the Domain Claim */
22
+ status?: "verified" | "deleted" | "unverified" | "superseded" | "missing_token";
23
+ } & {
24
+ [key: string]: unknown;
25
+ };
26
+ } & {
27
+ [key: string]: unknown;
28
+ };
29
+ links: LinkSelfModel;
30
+ }
31
+ /** @category Models */
32
+ export interface DomainPage extends Record<string, unknown> {
33
+ /** 0 or more values of Domain are returned */
34
+ data?: DomainModel[];
35
+ /** Links for a Paginated response */
36
+ links?: LinkPageModel;
37
+ }
38
+ /**
39
+ * Domain not found
40
+ *
41
+ * @category Models
42
+ */
43
+ export interface ErrorDomainNotFoundModel extends Record<string, unknown> {
44
+ errors?: (ApplicationError & ({
45
+ code?: "ADMIN-404-3";
46
+ } & {
47
+ [key: string]: unknown;
48
+ }))[];
49
+ }
50
+ /** @category Models */
51
+ export type ErrorNoPermsModel = unknown;
52
+ export declare function registerDomainsValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.registerDomainsValidationSchemas = void 0;
4
+ const common_1 = require("./common");
5
+ const zod_1 = require("zod");
6
+ function registerDomainsValidationSchemas(validationSchemaStorage) {
7
+ validationSchemaStorage.register("Domain", zod_1.z.object({
8
+ data: validationSchemaStorage.lazy("DomainModel").optional()
9
+ }).catchall(zod_1.z.unknown()).describe("Domain"));
10
+ validationSchemaStorage.register("DomainModel", zod_1.z.object({
11
+ id: zod_1.z.string(),
12
+ type: zod_1.z.literal("domains"),
13
+ attributes: zod_1.z.object({
14
+ name: zod_1.z.string().optional(),
15
+ claim: zod_1.z.object({
16
+ type: zod_1.z.enum(["http", "dns"]).optional(),
17
+ status: zod_1.z.enum(["verified", "deleted", "unverified", "superseded", "missing_token"]).optional()
18
+ }).catchall(zod_1.z.unknown()).optional()
19
+ }).catchall(zod_1.z.unknown()),
20
+ links: validationSchemaStorage.lazy("LinkSelfModel")
21
+ }).catchall(zod_1.z.unknown()).describe("DomainModel"));
22
+ validationSchemaStorage.register("DomainPage", zod_1.z.object({
23
+ data: zod_1.z.array(validationSchemaStorage.lazy("DomainModel")).optional(),
24
+ links: validationSchemaStorage.lazy("LinkPageModel").optional()
25
+ }).catchall(zod_1.z.unknown()).describe("DomainPage"));
26
+ validationSchemaStorage.register("ErrorDomainNotFoundModel", zod_1.z.object({
27
+ errors: zod_1.z.array(zod_1.z.intersection(validationSchemaStorage.lazy("ApplicationError"), zod_1.z.object({
28
+ code: zod_1.z.literal("ADMIN-404-3").optional()
29
+ }).catchall(zod_1.z.unknown()))).optional()
30
+ }).catchall(zod_1.z.unknown()).describe("ErrorDomainNotFoundModel"));
31
+ validationSchemaStorage.register("ErrorNoPermsModel", zod_1.z.unknown().describe("ErrorNoPermsModel"));
32
+ validationSchemaStorage.registerOnce([common_1.registerCommonValidationSchemas]);
33
+ }
34
+ exports.registerDomainsValidationSchemas = registerDomainsValidationSchemas;
35
+ //# sourceMappingURL=domains.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../../src/openapi/organizations/models/domains.ts"],"names":[],"mappings":";;;AAIA,qCAA0H;AAC1H,6BAAyC;AAiDzC,SAAgB,gCAAgC,CAAC,uBAAkE;IAC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,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ,EAAE;QACrE,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,QAAQ,EAAE;KAChE,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;IACjD,uBAAuB,CAAC,QAAQ,CAAC,0BAA0B,EAAE,OAAC,CAAC,MAAM,CAAC;QACpE,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,YAAY,CAAC,uBAAuB,CAAC,IAAI,CAAC,kBAAkB,CAAC,EAAE,OAAC,CAAC,MAAM,CAAC;YACxF,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;SAC1C,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;KACtC,CAAC,CAAC,QAAQ,CAAC,OAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC,CAAC;IAC/D,uBAAuB,CAAC,QAAQ,CAAC,mBAAmB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,CAAC,CAAC;IACjG,uBAAuB,CAAC,YAAY,CAAC,CAAC,wCAA+B,CAAC,CAAC,CAAC;AAC1E,CAAC;AA3BD,4EA2BC"}
@@ -0,0 +1,280 @@
1
+ import type { CommonValidationSchemaStorage } from "../../core/CommonValidationSchemaStorage";
2
+ import { type ApplicationError, type LinkSelfModel, type LinkPageModel } from "./common";
3
+ import { type ZodTypeAny } from "zod";
4
+ /**
5
+ * Event not found
6
+ *
7
+ * @category Models
8
+ */
9
+ export interface ErrorEventNotFoundModel extends Record<string, unknown> {
10
+ errors?: (ApplicationError & ({
11
+ code?: "ADMIN-404-4";
12
+ } & {
13
+ [key: string]: unknown;
14
+ }))[];
15
+ }
16
+ /**
17
+ * The number of queries exceeded the limit
18
+ *
19
+ * @category Models
20
+ */
21
+ export interface ErrorInvalidQueryCountModel extends Record<string, unknown> {
22
+ errors?: (ApplicationError & ({
23
+ code?: "ADMIN-400-21";
24
+ } & {
25
+ [key: string]: unknown;
26
+ }))[];
27
+ }
28
+ /**
29
+ * Request syntax is not valid
30
+ *
31
+ * @category Models
32
+ */
33
+ export interface ErrorInvalidRequestSyntaxModel extends Record<string, unknown> {
34
+ errors?: (ApplicationError & ({
35
+ code?: "ADMIN-400-19";
36
+ } & {
37
+ [key: string]: unknown;
38
+ }))[];
39
+ }
40
+ /**
41
+ * Invalid time date
42
+ *
43
+ * @category Models
44
+ */
45
+ export interface ErrorInvalidSearchTimeDateModel extends Record<string, unknown> {
46
+ errors?: (ApplicationError & ({
47
+ code?: "ADMIN-400-3";
48
+ } & {
49
+ [key: string]: unknown;
50
+ }))[];
51
+ }
52
+ /** @category Models */
53
+ export interface Event extends Record<string, unknown> {
54
+ data?: EventModel;
55
+ }
56
+ /** @category Models */
57
+ export interface EventActionModel extends Record<string, unknown> {
58
+ /** Unique identifier of the event action object. */
59
+ id: string;
60
+ /** Type name of this object. */
61
+ type: string;
62
+ /** Attributes of this object. */
63
+ attributes: {
64
+ /** Display name of the event action. */
65
+ displayName: string;
66
+ /** Display name of the event action group. */
67
+ groupDisplayName: string;
68
+ } & {
69
+ [key: string]: unknown;
70
+ };
71
+ }
72
+ /** @category Models */
73
+ export interface EventActions extends Record<string, unknown> {
74
+ /** 0 or more values of event actions are returned. */
75
+ data?: EventActionModel[];
76
+ }
77
+ /**
78
+ * The entity that performed the action
79
+ *
80
+ * @category Models
81
+ */
82
+ export interface EventActorModel extends Record<string, unknown> {
83
+ /** Id of the Actor */
84
+ id: string;
85
+ /** The display name of the Actor. */
86
+ name?: string;
87
+ /** The email of the Actor. */
88
+ email?: string;
89
+ /** Authentication used by the actor */
90
+ auth?: {
91
+ /** The type of authentication used by the actor */
92
+ authType: "container-token" | "api-token" | "connect-token" | "auth-token-for-2LO" | "auth-token-for-3LO";
93
+ /** The id of the authentication token */
94
+ tokenId?: string;
95
+ /** The label/name of the authentication token */
96
+ tokenLabel?: string;
97
+ } & {
98
+ [key: string]: unknown;
99
+ };
100
+ /** The user the actor is acting on behalf of */
101
+ onBehalfOf?: {
102
+ /** Id of the user the actor is acting on behalf of */
103
+ id: string;
104
+ /** The display name of the user the actor is acting on behalf of */
105
+ name?: string;
106
+ /** The email of the user the actor is acting on behalf of */
107
+ email?: string;
108
+ } & {
109
+ [key: string]: unknown;
110
+ };
111
+ links?: LinkSelfModel;
112
+ }
113
+ /** @category Models */
114
+ export interface EventLocationModel extends Record<string, unknown> {
115
+ /** IP address */
116
+ ip?: string;
117
+ /**
118
+ * Geo location of the IP address
119
+ *
120
+ * @deprecated
121
+ */
122
+ geo?: string;
123
+ /** Country location according to the IP address */
124
+ countryName?: string;
125
+ /** Region location according to the IP address */
126
+ regionName?: string;
127
+ /** City location according to the IP address */
128
+ city?: string;
129
+ }
130
+ /** @category Models */
131
+ export interface EventMessageModel extends Record<string, unknown> {
132
+ /** Encrypted message of audit log activity */
133
+ content?: string;
134
+ /** Format of the audit log message */
135
+ format?: string;
136
+ }
137
+ /** @category Models */
138
+ export interface EventModel extends Record<string, unknown> {
139
+ /** Unique identifier of the Event */
140
+ id: string;
141
+ /** Type name of this object */
142
+ type: "events";
143
+ /** Attributes of this object */
144
+ attributes: {
145
+ /**
146
+ * The date and time of the event
147
+ *
148
+ * @example
149
+ * ```
150
+ * 2025-02-27T18:50:12.281Z
151
+ * ```
152
+ */
153
+ time: string;
154
+ /** Kind of Event. Complete list see `event-actions` API. */
155
+ action: string;
156
+ /** The entity that performed the action */
157
+ actor: EventActorModel;
158
+ /**
159
+ * Describes one or more entities that the action was performed against. This
160
+ * field describes the "what" of the event.
161
+ */
162
+ context: EventObjectModel[];
163
+ /**
164
+ * Describes the location where the action was performed. This field describes the
165
+ * "where" of the event.
166
+ */
167
+ container?: EventObjectModel[];
168
+ location?: EventLocationModel;
169
+ } & {
170
+ [key: string]: unknown;
171
+ };
172
+ links: LinkSelfModel;
173
+ message?: EventMessageModel;
174
+ }
175
+ /** @category Models */
176
+ export interface EventObjectModel extends Record<string, unknown> {
177
+ /** Unique identifier of the event object */
178
+ id: string;
179
+ /** Type name of this object */
180
+ type?: string;
181
+ /** Attributes of this object */
182
+ attributes?: {
183
+ [key: string]: unknown;
184
+ };
185
+ links?: LinkSelfAltModel | LinkAltModel;
186
+ }
187
+ /** @category Models */
188
+ export interface EventPage extends Record<string, unknown> {
189
+ /** 0 or more values of Event are returned */
190
+ data?: EventModel[];
191
+ meta?: {
192
+ /** Value for the next cursor */
193
+ next?: string;
194
+ /** Number of items in a page */
195
+ page_size?: number;
196
+ } & {
197
+ [key: string]: unknown;
198
+ };
199
+ /** Links for a Paginated response */
200
+ links?: LinkPageModel;
201
+ }
202
+ /** @category Models */
203
+ export interface LinkAltModel extends Record<string, unknown> {
204
+ /** Alternate URL to fetch this resource */
205
+ alt: string;
206
+ }
207
+ /**
208
+ * Links for a resources with self and alternate links
209
+ *
210
+ * @category Models
211
+ */
212
+ export interface LinkSelfAltModel extends Record<string, unknown> {
213
+ /** URL to fetch this resource */
214
+ self?: string;
215
+ /** Alternate URL to fetch this resource */
216
+ alt?: string;
217
+ }
218
+ /** @category Models */
219
+ export interface PollingEventModel extends Record<string, unknown> {
220
+ /** Unique identifier of the event */
221
+ id: string;
222
+ /** Type name of this object */
223
+ type: "events";
224
+ /** Attributes of this object */
225
+ attributes: {
226
+ /**
227
+ * The date and time of the event.
228
+ *
229
+ * @example
230
+ * ```
231
+ * 2025-02-27T18:50:12.281Z
232
+ * ```
233
+ */
234
+ time: string;
235
+ /**
236
+ * The date and time the event was processed.
237
+ *
238
+ * @example
239
+ * ```
240
+ * 2025-02-27T18:50:12.281Z
241
+ * ```
242
+ */
243
+ processedAt: string;
244
+ /** The kind of event. Complete list see `event-actions` API. */
245
+ action: string;
246
+ /** The entity that performed the action */
247
+ actor: EventActorModel;
248
+ /**
249
+ * Describes one or more entities that the action was performed against. This
250
+ * field describes the "what" of the event.
251
+ */
252
+ context: EventObjectModel[];
253
+ /**
254
+ * Describes the location where the action was performed. This field describes the
255
+ * "where" of the event.
256
+ */
257
+ container?: EventObjectModel[];
258
+ location?: EventLocationModel;
259
+ } & {
260
+ [key: string]: unknown;
261
+ };
262
+ links: LinkSelfModel;
263
+ message?: EventMessageModel;
264
+ }
265
+ /** @category Models */
266
+ export interface PollingEventPage extends Record<string, unknown> {
267
+ /** 0 or more values of Event are returned */
268
+ data?: PollingEventModel[];
269
+ meta?: {
270
+ /** Value for the next cursor. */
271
+ next?: string;
272
+ /** Number of items on a page. */
273
+ page_size?: number;
274
+ } & {
275
+ [key: string]: unknown;
276
+ };
277
+ /** Links for a Paginated response */
278
+ links?: LinkPageModel;
279
+ }
280
+ export declare function registerEventsValidationSchemas(validationSchemaStorage: CommonValidationSchemaStorage<ZodTypeAny>): void;