@geolens/sdk 1.22.0 → 1.23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,8 +151,19 @@ export const exportAuditLogsAdminAuditLogsExportFormatGet = (options) => (option
151
151
  *
152
152
  * Queue semantic-search embedding generation for records (admin only).
153
153
  *
154
- * Pass ?force=true to delete all existing embeddings and regenerate from
155
- * scratch (required after changing the embedding model or dimensions).
154
+ * Pass ?force=true to regenerate every record and replace its stored vectors.
155
+ * Without it, the run embeds only records that lack a current-model embedding.
156
+ *
157
+ * The run covers the calling tenant's records. In a multi-tenant deployment
158
+ * the embedding model and width are shared by every tenant, so a change
159
+ * leaves each tenant to regenerate. Pass ?all_tenants=true to also queue a
160
+ * run for every other registered tenant; there it needs
161
+ * manage_tenants instead of manage_users, and ``other_tenants`` reports
162
+ * each run. When the calling tenant already has a run in flight, the status
163
+ * is ``already_running``, ``job_id`` is that run (null when the caller may
164
+ * not read it) and the other tenants are still queued. This request did not queue that run and it may predate the
165
+ * change, so run the backfill again once it ends. A single-tenant
166
+ * deployment ignores the flag.
156
167
  *
157
168
  * The run happens on the job queue because a full regeneration can exceed
158
169
  * request timeouts. This endpoint returns the job id; poll
@@ -1056,6 +1067,29 @@ export const meUsageAuthMeUsageGet = (options) => (options?.client ?? client).ge
1056
1067
  url: '/auth/me/usage/',
1057
1068
  ...options
1058
1069
  });
1070
+ /**
1071
+ * Exchange Sign In Code
1072
+ *
1073
+ * Exchange a single sign-on code for a browser session.
1074
+ *
1075
+ * When the SPA shares the API's origin, an OAuth or SAML callback redirects
1076
+ * with a one-time code in the URL fragment instead of setting the refresh
1077
+ * cookie. The sign-in page posts that code here, and the response sets the
1078
+ * httpOnly refresh cookie and its CSRF cookie the way ``/auth/login`` does
1079
+ * in cookie mode, with a null ``refresh_token`` in the body.
1080
+ *
1081
+ * A code is valid once, for two minutes, only from the browser the
1082
+ * callback redirected, and only with the nonce the page started the sign-in
1083
+ * with. Every refusal is the same 401.
1084
+ */
1085
+ export const exchangeSignInCodeAuthOauthExchangePost = (options) => (options.client ?? client).post({
1086
+ url: '/auth/oauth/exchange/',
1087
+ ...options,
1088
+ headers: {
1089
+ 'Content-Type': 'application/json',
1090
+ ...options.headers
1091
+ }
1092
+ });
1059
1093
  /**
1060
1094
  * List Public Providers
1061
1095
  *
@@ -1065,13 +1099,13 @@ export const listPublicProvidersAuthOauthProvidersGet = (options) => (options?.c
1065
1099
  /**
1066
1100
  * Oauth Callback
1067
1101
  *
1068
- * Handle IdP callback: exchange code, find/create user, issue JWT, redirect to frontend.
1102
+ * Handle IdP callback: exchange code, find/create user, redirect to frontend.
1069
1103
  *
1070
- * The frontend redirect carries access tokens in the URL
1071
- * fragment. Without explicit-config resolution, an attacker controlling
1072
- * ``X-Forwarded-Host`` could steer the post-callback redirect to
1073
- * attacker.com and capture the tokens. Force explicit-config resolution
1074
- * by passing ``for_external_use=True``.
1104
+ * The frontend redirect carries a one-time sign-in code, or on a
1105
+ * cross-origin deployment the tokens, in the URL fragment. Without
1106
+ * explicit-config resolution, an attacker controlling ``X-Forwarded-Host``
1107
+ * could steer the post-callback redirect to attacker.com and capture them.
1108
+ * Force explicit-config resolution by passing ``for_external_use=True``.
1075
1109
  */
1076
1110
  export const oauthCallbackAuthOauthProviderSlugCallbackGet = (options) => (options.client ?? client).get({ url: '/auth/oauth/{provider_slug}/callback', ...options });
1077
1111
  /**
@@ -1115,7 +1149,17 @@ export const refreshAuthRefreshPost = (options) => (options?.client ?? client).p
1115
1149
  /**
1116
1150
  * Register
1117
1151
  *
1118
- * Register a new user. Account requires admin approval before login.
1152
+ * Create a password account.
1153
+ *
1154
+ * Needs both self-registration and password login enabled; otherwise 403.
1155
+ * When the allowed email domains list is set, an email address in one of
1156
+ * those domains is required.
1157
+ *
1158
+ * If email verification is required, the request includes an email address
1159
+ * and the server has SMTP configured, the account activates when its owner
1160
+ * follows the emailed link and gets the default self-registration role.
1161
+ * Otherwise it stays pending until an administrator approves it with a role.
1162
+ * The response is the same whether or not the username or email was taken.
1119
1163
  */
1120
1164
  export const registerAuthRegisterPost = (options) => (options.client ?? client).post({
1121
1165
  url: '/auth/register/',
@@ -2547,7 +2591,10 @@ export const getQuicklookDatasetsDatasetIdQuicklookGet = (options) => (options.c
2547
2591
  *
2548
2592
  * ``accept_blocked_run_id`` accepts a blocked run once. A blocked service
2549
2593
  * refresh is fetched again and publishes only if the result matches the run
2550
- * it accepts. A blocked file replacement (an ``upload`` run) is replaced
2594
+ * it accepts. A blocked service re-upload is fetched again from the dataset's
2595
+ * source and publishes only if its review reasons and changes match; it
2596
+ * answers 409 ``origin_changed`` once that source is not the one the
2597
+ * re-upload fetched. A blocked file replacement (an ``upload`` run) is replaced
2551
2598
  * again from the upload that run kept, and publishes only if its review
2552
2599
  * reasons and changes match. That answers 422 ``upload_unavailable`` once
2553
2600
  * the upload is gone, and 409 ``review_superseded`` once newer data has
@@ -4410,8 +4457,11 @@ export const visibilityCheckEndpointMapsMapIdVisibilityCheckGet = (options) => (
4410
4457
  *
4411
4458
  * The statement must be a single SELECT over `data.*` tables you can
4412
4459
  * access, name every table in `restrict_tables`, and fit the sandbox's
4413
- * function allowlist and cost bounds. Rows are capped by `row_limit` and
4414
- * execution by a server-side statement timeout.
4460
+ * function allowlist and cost bounds. Rows are capped by `row_limit`,
4461
+ * execution by a server-side statement timeout, and the result's size before
4462
+ * it leaves the database: `truncated` is true when either cap cut rows. A
4463
+ * result whose first row alone exceeds the size cap, or whose response would
4464
+ * exceed 8 MiB, is refused with 422.
4415
4465
  */
4416
4466
  export const sandboxQueryEndpointQueryPost = (options) => (options.client ?? client).post({
4417
4467
  security: [
@@ -4966,6 +5016,31 @@ export const probeServiceUrlServicesProbePost = (options) => (options.client ??
4966
5016
  ...options.headers
4967
5017
  }
4968
5018
  });
5019
+ /**
5020
+ * Stac Asset Sizes
5021
+ *
5022
+ * Look up the size of data assets whose item publishes no ``file:size``.
5023
+ *
5024
+ * Asks each asset's server for its length (HEAD, then a one-byte range
5025
+ * request). A size the server does not report comes back as null.
5026
+ */
5027
+ export const stacAssetSizesServicesStacAssetSizesPost = (options) => (options.client ?? client).post({
5028
+ security: [
5029
+ { scheme: 'bearer', type: 'http' },
5030
+ { name: 'X-Api-Key', type: 'apiKey' },
5031
+ {
5032
+ in: 'query',
5033
+ name: 'api_key',
5034
+ type: 'apiKey'
5035
+ }
5036
+ ],
5037
+ url: '/services/stac/asset-sizes',
5038
+ ...options,
5039
+ headers: {
5040
+ 'Content-Type': 'application/json',
5041
+ ...options.headers
5042
+ }
5043
+ });
4969
5044
  /**
4970
5045
  * Stac Collections
4971
5046
  *