polytomic 25.9.4 → 25.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/BaseClient.js +2 -2
  2. package/Client.d.ts +3 -0
  3. package/Client.js +41 -36
  4. package/api/errors/GoneError.d.ts +7 -0
  5. package/api/errors/GoneError.js +54 -0
  6. package/api/errors/index.d.ts +1 -0
  7. package/api/errors/index.js +1 -0
  8. package/api/resources/activity/client/Client.d.ts +144 -0
  9. package/api/resources/activity/client/Client.js +359 -0
  10. package/api/resources/activity/client/index.d.ts +1 -0
  11. package/api/resources/activity/client/index.js +17 -0
  12. package/api/resources/activity/client/requests/ActivityGetSessionRequest.d.ts +17 -0
  13. package/api/resources/activity/client/requests/ActivityGetSessionRequest.js +3 -0
  14. package/api/resources/activity/client/requests/ActivityListRequest.d.ts +47 -0
  15. package/api/resources/activity/client/requests/ActivityListRequest.js +3 -0
  16. package/api/resources/activity/client/requests/index.d.ts +2 -0
  17. package/api/resources/activity/client/requests/index.js +2 -0
  18. package/api/resources/activity/exports.d.ts +2 -0
  19. package/api/resources/activity/exports.js +21 -0
  20. package/api/resources/activity/index.d.ts +2 -0
  21. package/api/resources/activity/index.js +18 -0
  22. package/api/resources/activity/types/ActivityGetSessionRequestOrder.d.ts +6 -0
  23. package/api/resources/activity/types/ActivityGetSessionRequestOrder.js +9 -0
  24. package/api/resources/activity/types/ActivityListRequestOrder.d.ts +6 -0
  25. package/api/resources/activity/types/ActivityListRequestOrder.js +9 -0
  26. package/api/resources/activity/types/index.d.ts +2 -0
  27. package/api/resources/activity/types/index.js +18 -0
  28. package/api/resources/bulkSync/resources/errorHandling/client/requests/UpdateBulkSyncErrorHandlingRequest.d.ts +2 -0
  29. package/api/resources/connections/client/Client.d.ts +12 -0
  30. package/api/resources/connections/client/Client.js +16 -0
  31. package/api/resources/harbors/client/Client.d.ts +4 -0
  32. package/api/resources/harbors/client/Client.js +4 -0
  33. package/api/resources/index.d.ts +3 -0
  34. package/api/resources/index.js +4 -1
  35. package/api/resources/queryRunner/client/Client.d.ts +11 -1
  36. package/api/resources/queryRunner/client/Client.js +29 -3
  37. package/api/resources/queryRunner/client/requests/QueryRunnerGetQueryRequest.d.ts +2 -0
  38. package/api/resources/queryRunner/client/requests/RunQueryRequest.d.ts +2 -0
  39. package/api/resources/recordViewLinks/client/Client.d.ts +2 -0
  40. package/api/resources/recordViewLinks/client/Client.js +21 -1
  41. package/api/resources/recordViewLinks/client/requests/CreateRecordViewLinkRequest.d.ts +2 -0
  42. package/api/types/BulkSyncErrorHandling.d.ts +2 -0
  43. package/api/types/Filter.d.ts +1 -0
  44. package/api/types/HarborActivityEventEnvelope.d.ts +4 -0
  45. package/api/types/HarborActivityEventEnvelope.js +3 -0
  46. package/api/types/HarborActivityListEnvelope.d.ts +5 -0
  47. package/api/types/HarborActivityListEnvelope.js +3 -0
  48. package/api/types/HarborActivitySessionEnvelope.d.ts +5 -0
  49. package/api/types/HarborActivitySessionEnvelope.js +3 -0
  50. package/api/types/HarboractivityapiHarborActivityActorSnapshot.d.ts +6 -0
  51. package/api/types/HarboractivityapiHarborActivityActorSnapshot.js +3 -0
  52. package/api/types/HarboractivityapiHarborActivityEvent.d.ts +24 -0
  53. package/api/types/HarboractivityapiHarborActivityEvent.js +3 -0
  54. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.d.ts +3 -0
  55. package/api/types/HarboractivityapiHarborActivityIdentitySnapshot.js +3 -0
  56. package/api/types/HarboractivityapiHarborActivityMetadata.d.ts +31 -0
  57. package/api/types/HarboractivityapiHarborActivityMetadata.js +3 -0
  58. package/api/types/HarboractivityapiHarborActivitySession.d.ts +27 -0
  59. package/api/types/HarboractivityapiHarborActivitySession.js +12 -0
  60. package/api/types/HarboractivityapiHarborActivityTarget.d.ts +6 -0
  61. package/api/types/HarboractivityapiHarborActivityTarget.js +3 -0
  62. package/api/types/ModelFilterCondition.d.ts +1 -1
  63. package/api/types/ModelFilters.d.ts +1 -1
  64. package/api/types/QueryStatus.d.ts +8 -0
  65. package/api/types/QueryStatus.js +11 -0
  66. package/api/types/RunQueryResult.d.ts +2 -2
  67. package/api/types/SchemaField.d.ts +4 -0
  68. package/api/types/SupportedFilterFunction.d.ts +12 -0
  69. package/api/types/SupportedFilterFunction.js +3 -0
  70. package/api/types/TargetField.d.ts +2 -0
  71. package/api/types/TargetFilterCondition.d.ts +2 -2
  72. package/api/types/TargetFilters.d.ts +1 -1
  73. package/api/types/index.d.ts +11 -0
  74. package/api/types/index.js +11 -0
  75. package/package.json +1 -1
  76. package/reference.md +291 -1
  77. package/version.d.ts +1 -1
  78. package/version.js +1 -1
package/BaseClient.js CHANGED
@@ -44,8 +44,8 @@ function normalizeClientOptions(options) {
44
44
  const headers = (0, headers_1.mergeHeaders)({
45
45
  "X-Fern-Language": "JavaScript",
46
46
  "X-Fern-SDK-Name": "polytomic",
47
- "X-Fern-SDK-Version": "25.9.4",
48
- "User-Agent": "polytomic/25.9.4",
47
+ "X-Fern-SDK-Version": "25.9.5",
48
+ "User-Agent": "polytomic/25.9.5",
49
49
  "X-Fern-Runtime": core.RUNTIME.type,
50
50
  "X-Fern-Runtime-Version": core.RUNTIME.version,
51
51
  "X-Polytomic-Version": (_a = options === null || options === void 0 ? void 0 : options.version) !== null && _a !== void 0 ? _a : "2025-09-18",
package/Client.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { ActivityClient } from "./api/resources/activity/client/Client";
1
2
  import { BulkSyncClient } from "./api/resources/bulkSync/client/Client";
2
3
  import { ConnectionsClient } from "./api/resources/connections/client/Client";
3
4
  import { EntitiesClient } from "./api/resources/entities/client/Client";
@@ -39,6 +40,7 @@ export declare class PolytomicClient {
39
40
  protected _identity: IdentityClient | undefined;
40
41
  protected _notifications: NotificationsClient | undefined;
41
42
  protected _organization: OrganizationClient | undefined;
43
+ protected _activity: ActivityClient | undefined;
42
44
  protected _users: UsersClient | undefined;
43
45
  protected _recordViewLinks: RecordViewLinksClient | undefined;
44
46
  protected _temporaryCredentials: TemporaryCredentialsClient | undefined;
@@ -58,6 +60,7 @@ export declare class PolytomicClient {
58
60
  get identity(): IdentityClient;
59
61
  get notifications(): NotificationsClient;
60
62
  get organization(): OrganizationClient;
63
+ get activity(): ActivityClient;
61
64
  get users(): UsersClient;
62
65
  get recordViewLinks(): RecordViewLinksClient;
63
66
  get temporaryCredentials(): TemporaryCredentialsClient;
package/Client.js CHANGED
@@ -44,24 +44,25 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  };
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.PolytomicClient = void 0;
47
- const Client_1 = require("./api/resources/bulkSync/client/Client");
48
- const Client_2 = require("./api/resources/connections/client/Client");
49
- const Client_3 = require("./api/resources/entities/client/Client");
50
- const Client_4 = require("./api/resources/events/client/Client");
51
- const Client_5 = require("./api/resources/harbors/client/Client");
52
- const Client_6 = require("./api/resources/identity/client/Client");
53
- const Client_7 = require("./api/resources/jobs/client/Client");
54
- const Client_8 = require("./api/resources/modelSync/client/Client");
55
- const Client_9 = require("./api/resources/models/client/Client");
56
- const Client_10 = require("./api/resources/notifications/client/Client");
57
- const Client_11 = require("./api/resources/organization/client/Client");
58
- const Client_12 = require("./api/resources/permissions/client/Client");
59
- const Client_13 = require("./api/resources/queryRunner/client/Client");
60
- const Client_14 = require("./api/resources/recordViewLinks/client/Client");
61
- const Client_15 = require("./api/resources/schemas/client/Client");
62
- const Client_16 = require("./api/resources/temporaryCredentials/client/Client");
63
- const Client_17 = require("./api/resources/users/client/Client");
64
- const Client_18 = require("./api/resources/webhooks/client/Client");
47
+ const Client_1 = require("./api/resources/activity/client/Client");
48
+ const Client_2 = require("./api/resources/bulkSync/client/Client");
49
+ const Client_3 = require("./api/resources/connections/client/Client");
50
+ const Client_4 = require("./api/resources/entities/client/Client");
51
+ const Client_5 = require("./api/resources/events/client/Client");
52
+ const Client_6 = require("./api/resources/harbors/client/Client");
53
+ const Client_7 = require("./api/resources/identity/client/Client");
54
+ const Client_8 = require("./api/resources/jobs/client/Client");
55
+ const Client_9 = require("./api/resources/modelSync/client/Client");
56
+ const Client_10 = require("./api/resources/models/client/Client");
57
+ const Client_11 = require("./api/resources/notifications/client/Client");
58
+ const Client_12 = require("./api/resources/organization/client/Client");
59
+ const Client_13 = require("./api/resources/permissions/client/Client");
60
+ const Client_14 = require("./api/resources/queryRunner/client/Client");
61
+ const Client_15 = require("./api/resources/recordViewLinks/client/Client");
62
+ const Client_16 = require("./api/resources/schemas/client/Client");
63
+ const Client_17 = require("./api/resources/temporaryCredentials/client/Client");
64
+ const Client_18 = require("./api/resources/users/client/Client");
65
+ const Client_19 = require("./api/resources/webhooks/client/Client");
65
66
  const BaseClient_1 = require("./BaseClient");
66
67
  const core = __importStar(require("./core"));
67
68
  class PolytomicClient {
@@ -70,75 +71,79 @@ class PolytomicClient {
70
71
  }
71
72
  get bulkSync() {
72
73
  var _a;
73
- return ((_a = this._bulkSync) !== null && _a !== void 0 ? _a : (this._bulkSync = new Client_1.BulkSyncClient(this._options)));
74
+ return ((_a = this._bulkSync) !== null && _a !== void 0 ? _a : (this._bulkSync = new Client_2.BulkSyncClient(this._options)));
74
75
  }
75
76
  get connections() {
76
77
  var _a;
77
- return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_2.ConnectionsClient(this._options)));
78
+ return ((_a = this._connections) !== null && _a !== void 0 ? _a : (this._connections = new Client_3.ConnectionsClient(this._options)));
78
79
  }
79
80
  get queryRunner() {
80
81
  var _a;
81
- return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_13.QueryRunnerClient(this._options)));
82
+ return ((_a = this._queryRunner) !== null && _a !== void 0 ? _a : (this._queryRunner = new Client_14.QueryRunnerClient(this._options)));
82
83
  }
83
84
  get schemas() {
84
85
  var _a;
85
- return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_15.SchemasClient(this._options)));
86
+ return ((_a = this._schemas) !== null && _a !== void 0 ? _a : (this._schemas = new Client_16.SchemasClient(this._options)));
86
87
  }
87
88
  get models() {
88
89
  var _a;
89
- return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_9.ModelsClient(this._options)));
90
+ return ((_a = this._models) !== null && _a !== void 0 ? _a : (this._models = new Client_10.ModelsClient(this._options)));
90
91
  }
91
92
  get modelSync() {
92
93
  var _a;
93
- return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_8.ModelSyncClient(this._options)));
94
+ return ((_a = this._modelSync) !== null && _a !== void 0 ? _a : (this._modelSync = new Client_9.ModelSyncClient(this._options)));
94
95
  }
95
96
  get entities() {
96
97
  var _a;
97
- return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_3.EntitiesClient(this._options)));
98
+ return ((_a = this._entities) !== null && _a !== void 0 ? _a : (this._entities = new Client_4.EntitiesClient(this._options)));
98
99
  }
99
100
  get events() {
100
101
  var _a;
101
- return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_4.EventsClient(this._options)));
102
+ return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_5.EventsClient(this._options)));
102
103
  }
103
104
  get harbors() {
104
105
  var _a;
105
- return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new Client_5.HarborsClient(this._options)));
106
+ return ((_a = this._harbors) !== null && _a !== void 0 ? _a : (this._harbors = new Client_6.HarborsClient(this._options)));
106
107
  }
107
108
  get jobs() {
108
109
  var _a;
109
- return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_7.JobsClient(this._options)));
110
+ return ((_a = this._jobs) !== null && _a !== void 0 ? _a : (this._jobs = new Client_8.JobsClient(this._options)));
110
111
  }
111
112
  get identity() {
112
113
  var _a;
113
- return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_6.IdentityClient(this._options)));
114
+ return ((_a = this._identity) !== null && _a !== void 0 ? _a : (this._identity = new Client_7.IdentityClient(this._options)));
114
115
  }
115
116
  get notifications() {
116
117
  var _a;
117
- return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_10.NotificationsClient(this._options)));
118
+ return ((_a = this._notifications) !== null && _a !== void 0 ? _a : (this._notifications = new Client_11.NotificationsClient(this._options)));
118
119
  }
119
120
  get organization() {
120
121
  var _a;
121
- return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_11.OrganizationClient(this._options)));
122
+ return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_12.OrganizationClient(this._options)));
123
+ }
124
+ get activity() {
125
+ var _a;
126
+ return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_1.ActivityClient(this._options)));
122
127
  }
123
128
  get users() {
124
129
  var _a;
125
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_17.UsersClient(this._options)));
130
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_18.UsersClient(this._options)));
126
131
  }
127
132
  get recordViewLinks() {
128
133
  var _a;
129
- return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new Client_14.RecordViewLinksClient(this._options)));
134
+ return ((_a = this._recordViewLinks) !== null && _a !== void 0 ? _a : (this._recordViewLinks = new Client_15.RecordViewLinksClient(this._options)));
130
135
  }
131
136
  get temporaryCredentials() {
132
137
  var _a;
133
- return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new Client_16.TemporaryCredentialsClient(this._options)));
138
+ return ((_a = this._temporaryCredentials) !== null && _a !== void 0 ? _a : (this._temporaryCredentials = new Client_17.TemporaryCredentialsClient(this._options)));
134
139
  }
135
140
  get webhooks() {
136
141
  var _a;
137
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_18.WebhooksClient(this._options)));
142
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_19.WebhooksClient(this._options)));
138
143
  }
139
144
  get permissions() {
140
145
  var _a;
141
- return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_12.PermissionsClient(this._options)));
146
+ return ((_a = this._permissions) !== null && _a !== void 0 ? _a : (this._permissions = new Client_13.PermissionsClient(this._options)));
142
147
  }
143
148
  /**
144
149
  * Make a passthrough request using the SDK's configured auth, retry, logging, etc.
@@ -0,0 +1,7 @@
1
+ import type * as core from "../../core";
2
+ import * as errors from "../../errors/index";
3
+ import type * as Polytomic from "../index";
4
+ export declare class GoneError extends errors.PolytomicError {
5
+ readonly body: Polytomic.ApiError;
6
+ constructor(body: Polytomic.ApiError, rawResponse?: core.RawResponse);
7
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.GoneError = void 0;
38
+ const errors = __importStar(require("../../errors/index"));
39
+ class GoneError extends errors.PolytomicError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "GoneError",
43
+ statusCode: 410,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, new.target.prototype);
48
+ if (Error.captureStackTrace) {
49
+ Error.captureStackTrace(this, this.constructor);
50
+ }
51
+ this.name = "GoneError";
52
+ }
53
+ }
54
+ exports.GoneError = GoneError;
@@ -3,6 +3,7 @@ export * from "./BadRequestError";
3
3
  export * from "./ConflictError";
4
4
  export * from "./ForbiddenError";
5
5
  export * from "./GatewayTimeoutError";
6
+ export * from "./GoneError";
6
7
  export * from "./InternalServerError";
7
8
  export * from "./NotFoundError";
8
9
  export * from "./RequestTimeoutError";
@@ -19,6 +19,7 @@ __exportStar(require("./BadRequestError"), exports);
19
19
  __exportStar(require("./ConflictError"), exports);
20
20
  __exportStar(require("./ForbiddenError"), exports);
21
21
  __exportStar(require("./GatewayTimeoutError"), exports);
22
+ __exportStar(require("./GoneError"), exports);
22
23
  __exportStar(require("./InternalServerError"), exports);
23
24
  __exportStar(require("./NotFoundError"), exports);
24
25
  __exportStar(require("./RequestTimeoutError"), exports);
@@ -0,0 +1,144 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient";
3
+ import * as core from "../../../../core";
4
+ import * as Polytomic from "../../../index";
5
+ export declare namespace ActivityClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class ActivityClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<ActivityClient.Options>;
12
+ constructor(options?: ActivityClient.Options);
13
+ /**
14
+ * Lists Harbor Activity recorded for the caller's organization.
15
+ *
16
+ * You must be an active Organization administrator to use this endpoint.
17
+ *
18
+ * `start_time` is inclusive and `end_time` is exclusive. Both filter the time at
19
+ * which Polytomic recorded each event, which can differ from `occurred_at`. A
20
+ * single request can cover at most 90 days.
21
+ *
22
+ * Results are ordered from newest to oldest by default. Set `order` to `asc` to
23
+ * retrieve the oldest events first. A page contains at most 100 events. Pass
24
+ * `next_page_token` from the response as `page_token` with the same time range,
25
+ * filters, order, and limit to retrieve the next page. The token expires 24 hours
26
+ * after the first page. Pagination uses a live descending cursor, so an event from
27
+ * a transaction that commits between pages can require a fresh traversal.
28
+ *
29
+ * Responses include stable identities, bounded resource snapshots, schema label
30
+ * snapshots with truncation state, field counts, and row counts when available.
31
+ * They do not include internal recorded-order values, submitted SQL, raw field
32
+ * names, detailed provider errors, result rows, or raw pagination tokens.
33
+ *
34
+ * > ℹ️ Activity retention
35
+ * >
36
+ * > Polytomic retains Activity events for at least 90 days. Pagination tokens
37
+ * > expire 24 hours after the first page.
38
+ *
39
+ * @param {Polytomic.ActivityListRequest} request
40
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
41
+ *
42
+ * @throws {@link Polytomic.BadRequestError}
43
+ * @throws {@link Polytomic.UnauthorizedError}
44
+ * @throws {@link Polytomic.ForbiddenError}
45
+ * @throws {@link Polytomic.GoneError}
46
+ * @throws {@link Polytomic.UnprocessableEntityError}
47
+ * @throws {@link errors.PolytomicError}
48
+ * @throws {@link errors.PolytomicTimeoutError}
49
+ *
50
+ * @example
51
+ * await client.activity.list({
52
+ * start_time: "2024-01-15T09:30:00Z",
53
+ * end_time: "2024-01-15T09:30:00Z",
54
+ * limit: 1,
55
+ * page_token: "page_token",
56
+ * order: "asc",
57
+ * harbor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
58
+ * event_type: ["event_type"],
59
+ * outcome: ["outcome"],
60
+ * operation_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
61
+ * session_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
62
+ * actor_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
63
+ * credential_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"],
64
+ * connection_id: ["248df4b7-aa70-47b8-a036-33ac447e668d"]
65
+ * })
66
+ */
67
+ list(request: Polytomic.ActivityListRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityListEnvelope>;
68
+ private __list;
69
+ /**
70
+ * Returns one Harbor Activity session and its events.
71
+ *
72
+ * You must be an active Organization administrator to use this endpoint. The
73
+ * session must belong to the Organization against which you authenticated.
74
+ *
75
+ * Events are ordered from oldest to newest by default. Set `order` to `desc` to
76
+ * retrieve the newest events first. A page contains at most 100 events. Pass
77
+ * `next_page_token` from the response as `page_token` with the same order and
78
+ * limit to retrieve the next page.
79
+ *
80
+ * `history_truncated` is `true` when Activity retention removed events from the
81
+ * beginning of the session. The lifecycle summary remains available while the
82
+ * session itself is retained.
83
+ *
84
+ * The response uses the same event allowlist as the Activity list and detail
85
+ * endpoints. It does not include session tokens, submitted SQL, raw field names,
86
+ * detailed provider errors, result rows, or raw pagination tokens.
87
+ *
88
+ * > ℹ️ Activity retention
89
+ * >
90
+ * > Polytomic retains Activity events for at least 90 days. Pagination tokens
91
+ * > expire 24 hours after the first page.
92
+ *
93
+ * @param {string} session_id - Harbor Activity session ID.
94
+ * @param {Polytomic.ActivityGetSessionRequest} request
95
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
96
+ *
97
+ * @throws {@link Polytomic.BadRequestError}
98
+ * @throws {@link Polytomic.UnauthorizedError}
99
+ * @throws {@link Polytomic.ForbiddenError}
100
+ * @throws {@link Polytomic.NotFoundError}
101
+ * @throws {@link Polytomic.GoneError}
102
+ * @throws {@link Polytomic.UnprocessableEntityError}
103
+ * @throws {@link errors.PolytomicError}
104
+ * @throws {@link errors.PolytomicTimeoutError}
105
+ *
106
+ * @example
107
+ * await client.activity.getSession("248df4b7-aa70-47b8-a036-33ac447e668d", {
108
+ * limit: 1,
109
+ * page_token: "page_token",
110
+ * order: "asc"
111
+ * })
112
+ */
113
+ getSession(session_id: string, request?: Polytomic.ActivityGetSessionRequest, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivitySessionEnvelope>;
114
+ private __getSession;
115
+ /**
116
+ * Returns one Harbor Activity event from the caller's organization.
117
+ *
118
+ * You must be an active Organization administrator to use this endpoint. The
119
+ * event must belong to the Organization against which you authenticated.
120
+ *
121
+ * The response can include stable identities, bounded resource snapshots, schema
122
+ * label snapshots with truncation state, field counts, and row counts. It does
123
+ * not include internal recorded-order values, submitted SQL, raw field names,
124
+ * detailed provider errors, result rows, or raw pagination tokens.
125
+ *
126
+ * > ℹ️ Activity retention
127
+ * >
128
+ * > Polytomic retains Activity events for at least 90 days.
129
+ *
130
+ * @param {string} event_id - Activity event ID.
131
+ * @param {ActivityClient.RequestOptions} requestOptions - Request-specific configuration.
132
+ *
133
+ * @throws {@link Polytomic.UnauthorizedError}
134
+ * @throws {@link Polytomic.ForbiddenError}
135
+ * @throws {@link Polytomic.NotFoundError}
136
+ * @throws {@link errors.PolytomicError}
137
+ * @throws {@link errors.PolytomicTimeoutError}
138
+ *
139
+ * @example
140
+ * await client.activity.get("248df4b7-aa70-47b8-a036-33ac447e668d")
141
+ */
142
+ get(event_id: string, requestOptions?: ActivityClient.RequestOptions): core.HttpResponsePromise<Polytomic.HarborActivityEventEnvelope>;
143
+ private __get;
144
+ }